1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./B3jeTz34.js","./CTnVQoI7.js","./DrEjR7nu.js","./B9NPFpHg.js","./ButtonClose.C2Eym7iy.css","./BO8wGXfE.js","./CttoZwzJ.js","./DMpfjKhI.js","./ButtonProgress.BQUSUgh3.css","./CNLw6JBO.js","./FilterToggle.CDNxO88i.css","./rXw0foA_.js","./ButtonSocial.Da_4Juj7.css","./Dpr1g5cG.js","./mMESegVH.js","./ContentStream.CPcCuaiq.css","./Hero.CYgYIAHz.css","./DB0tvkm4.js","./qNr-1jGt.js","./DcpkWjGN.js","./D7n499DT.js","./ContentCard.BJMKwGyq.css","./CardList.Bq9cUTqg.css","./k20YQKy6.js","./_slug_.DjjPazZG.css","./C_c8evdR.js","./CUMr72WA.js","./SidebarLayout.COwWLCe1.css","./BL2LF4ba.js","./CardCarousel.CAjTmpNJ.css","./LLVmo9SN.js","./_slug_.DribRU9D.css","./Be6uQUgL.js","./DZuQO2D7.js","./useAlgolia.WWNUQxSk.css","./index.v38dUApL.css","./D5ryZzU-.js","./1Fh_g1AI.js","./_id_.B118mERK.css","./Duk0Y3WW.js","./index.DTZLf-y-.css","./BmKZVUry.js","./_slug_.BieLDG-r.css","./Bik14U7e.js","./index.CT78u8ne.css","./Emhr2sok.js","./default.CFBCwCck.css","./CRsGVGj_.js"])))=>i.map(i=>d[i]); 2var _B=Object.defineProperty;var EB=(t,e,n)=>e in t?_B(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Uu=(t,e,n)=>EB(t,typeof e!="symbol"?e+"":e,n);/** 3* @vue/shared v3.5.13 4* (c) 2018-present Yuxi (Evan) You and Vue contributors 5* @license MIT
6**//*! #__NO_SIDE_EFFECTS__ */try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="644ae26f-35af-4645-9385-6ece3daaead2",t._sentryDebugIdIdentifier="sentry-dbid-644ae26f-35af-4645-9385-6ece3daaead2")}catch{}function iT(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const mt={},Ac=[],As=()=>{},bB=()=>!1,Dd=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),sT=t=>t.startsWith("onUpdate:"),an=Object.assign,aT=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},TB=Object.prototype.hasOwnProperty,bt=(t,e)=>TB.call(t,e),Re=Array.isArray,Rc=t=>vu(t)==="[object Map]",yu=t=>vu(t)==="[object Set]",Ew=t=>vu(t)==="[object Date]",SB=t=>vu(t)==="[object RegExp]",Be=t=>typeof t=="function",Ht=t=>typeof t=="string",Ji=t=>typeof t=="symbol",Lt=t=>t!==null&&typeof t=="object",oT=t=>(Lt(t)||Be(t))&&Be(t.then)&&Be(t.catch),sI=Object.prototype.toString,vu=t=>sI.call(t),wB=t=>vu(t).slice(8,-1),aI=t=>vu(t)==="[object Object]",lT=t=>Ht(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Lc=iT(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ng=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},xB=/-(\w)/g,yi=ng(t=>t.replace(xB,(e,n)=>n?n.toUpperCase():"")),AB=/\B([A-Z])/g,ga=ng(t=>t.replace(AB,"-$1").toLowerCase()),rg=ng(t=>t.charAt(0).toUpperCase()+t.slice(1)),oy=ng(t=>t?`on${rg(t)}`:""),qr=(t,e)=>!Object.is(t,e),Cc=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},oI=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},zp=t=>{const e=parseFloat(t);return isNaN(e)?t:e},lI=t=>{const e=Ht(t)?Number(t):NaN;return isNaN(e)?t:e};let bw;const ig=()=>bw||(bw=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function uo(t){if(Re(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],i=Ht(r)?IB(r):uo(r);if(i)for(const s in i)e[s]=i[s]}return e}else if(Ht(t)||Lt(t))return t}const RB=/;(?![^(]*\))/g,LB=/:([^]+)/,CB=/\/\*[^]*?\*\//g;function IB(t){const e={};return t.replace(CB,"").split(RB).forEach(n=>{if(n){const r=n.split(LB);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function fo(t){let e="";if(Ht(t))e=t;else if(Re(t))for(let n=0;n<t.length;n++){const r=fo(t[n]);r&&(e+=r+" ")}else if(Lt(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function cI(t){if(!t)return null;let{class:e,style:n}=t;return e&&!Ht(e)&&(t.class=fo(e)),n&&(t.style=uo(n)),t}const kB="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",PB=iT(kB);function uI(t){return!!t||t===""}function DB(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=Od(t[r],e[r]);return n}function Od(t,e){if(t===e)return!0;let n=Ew(t),r=Ew(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=Ji(t),r=Ji(e),n||r)return t===e;if(n=Re(t),r=Re(e),n||r)return n&&r?DB(t,e):!1;if(n=Lt(t),r=Lt(e),n||r){if(!n||!r)return!1;const i=Object.keys(t).length,s=Object.keys(e).length;if(i!==s)return!1;for(const a in t){const o=t.hasOwnProperty(a),l=e.hasOwnProperty(a);if(o&&!l||!o&&l||!Od(t[a],e[a]))return!1}}return String(t)===String(e)}function cT(t,e){return t.findIndex(n=>Od(n,e))}const fI=t=>!!(t&&t.__v_isRef===!0),wl=t=>Ht(t)?t:t==null?"":Re(t)||Lt(t)&&(t.toString===sI||!Be(t.toString))?fI(t)?wl(t.value):JSON.stringify(t,dI,2):String(t),dI=(t,e)=>fI(e)?dI(t,e.value):Rc(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,i],s)=>(n[ly(r,s)+" =>"]=i,n),{})}:yu(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>ly(n))}:Ji(e)?ly(e):Lt(e)&&!Re(e)&&!aI(e)?String(e):e,ly=(t,e="")=>{var n;return Ji(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/** 7* @vue/reactivity v3.5.13 8* (c) 2018-present Yuxi (Evan) You and Vue contributors 9* @license MIT
vendor: 16,801 bytes, lines 10-13
10**/let Pr;class hI{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Pr,!e&&Pr&&(this.index=(Pr.scopes||(Pr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){const n=Pr;try{return Pr=this,e()}finally{Pr=n}}}on(){Pr=this}off(){Pr=this.parent}stop(e){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function uT(t){return new hI(t)}function fT(){return Pr}function OB(t,e=!1){Pr&&Pr.cleanups.push(t)}let Ft;const cy=new WeakSet;class pI{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Pr&&Pr.active&&Pr.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,cy.has(this)&&(cy.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||gI(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Tw(this),yI(this);const e=Ft,n=Yi;Ft=this,Yi=!0;try{return this.fn()}finally{vI(this),Ft=e,Yi=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)pT(e);this.deps=this.depsTail=void 0,Tw(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?cy.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){P_(this)&&this.run()}get dirty(){return P_(this)}}let mI=0,Sf,wf;function gI(t,e=!1){if(t.flags|=8,e){t.next=wf,wf=t;return}t.next=Sf,Sf=t}function dT(){mI++}function hT(){if(--mI>0)return;if(wf){let e=wf;for(wf=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;Sf;){let e=Sf;for(Sf=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function yI(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function vI(t){let e,n=t.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),pT(r),MB(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}t.deps=e,t.depsTail=n}function P_(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(_I(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function _I(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===td))return;t.globalVersion=td;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!P_(t)){t.flags&=-3;return}const n=Ft,r=Yi;Ft=t,Yi=!0;try{yI(t);const i=t.fn(t._value);(e.version===0||qr(i,t._value))&&(t._value=i,e.version++)}catch(i){throw e.version++,i}finally{Ft=n,Yi=r,vI(t),t.flags&=-3}}function pT(t,e=!1){const{dep:n,prevSub:r,nextSub:i}=t;if(r&&(r.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)pT(s,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function MB(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let Yi=!0;const EI=[];function ho(){EI.push(Yi),Yi=!1}function po(){const t=EI.pop();Yi=t===void 0?!0:t}function Tw(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=Ft;Ft=void 0;try{e()}finally{Ft=n}}}let td=0;class NB{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class sg{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!Ft||!Yi||Ft===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ft)n=this.activeLink=new NB(Ft,this),Ft.deps?(n.prevDep=Ft.depsTail,Ft.depsTail.nextDep=n,Ft.depsTail=n):Ft.deps=Ft.depsTail=n,bI(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Ft.depsTail,n.nextDep=void 0,Ft.depsTail.nextDep=n,Ft.depsTail=n,Ft.deps===n&&(Ft.deps=r)}return n}trigger(e){this.version++,td++,this.notify(e)}notify(e){dT();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{hT()}}}function bI(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)bI(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const Yp=new WeakMap,al=Symbol(""),D_=Symbol(""),nd=Symbol("");function mr(t,e,n){if(Yi&&Ft){let r=Yp.get(t);r||Yp.set(t,r=new Map);let i=r.get(n);i||(r.set(n,i=new sg),i.map=r,i.key=n),i.track()}}function Zs(t,e,n,r,i,s){const a=Yp.get(t);if(!a){td++;return}const o=l=>{l&&l.trigger()};if(dT(),e==="clear")a.forEach(o);else{const l=Re(t),c=l&&lT(n);if(l&&n==="length"){const u=Number(r);a.forEach((f,d)=>{(d==="length"||d===nd||!Ji(d)&&d>=u)&&o(f)})}else switch((n!==void 0||a.has(void 0))&&o(a.get(n)),c&&o(a.get(nd)),e){case"add":l?c&&o(a.get("length")):(o(a.get(al)),Rc(t)&&o(a.get(D_)));break;case"delete":l||(o(a.get(al)),Rc(t)&&o(a.get(D_)));break;case"set":Rc(t)&&o(a.get(al));break}}hT()}function FB(t,e){const n=Yp.get(t);return n&&n.get(e)}function Wl(t){const e=lt(t);return e===t?e:(mr(e,"iterate",nd),Pi(t)?e:e.map(gr))}function ag(t){return mr(t=lt(t),"iterate",nd),t}const $B={__proto__:null,[Symbol.iterator](){return uy(this,Symbol.iterator,gr)},concat(...t){return Wl(this).concat(...t.map(e=>Re(e)?Wl(e):e))},entries(){return uy(this,"entries",t=>(t[1]=gr(t[1]),t))},every(t,e){return Bs(this,"every",t,e,void 0,arguments)},filter(t,e){return Bs(this,"filter",t,e,n=>n.map(gr),arguments)},find(t,e){return Bs(this,"find",t,e,gr,arguments)},findIndex(t,e){return Bs(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Bs(this,"findLast",t,e,gr,arguments)},findLastIndex(t,e){return Bs(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Bs(this,"forEach",t,e,void 0,arguments)},includes(...t){return fy(this,"includes",t)},indexOf(...t){return fy(this,"indexOf",t)},join(t){return Wl(this).join(t)},lastIndexOf(...t){return fy(this,"lastIndexOf",t)},map(t,e){return Bs(this,"map",t,e,void 0,arguments)},pop(){return Hu(this,"pop")},push(...t){return Hu(this,"push",t)},reduce(t,...e){return Sw(this,"reduce",t,e)},reduceRight(t,...e){return Sw(this,"reduceRight",t,e)},shift(){return Hu(this,"shift")},some(t,e){return Bs(this,"some",t,e,void 0,arguments)},splice(...t){return Hu(this,"splice",t)},toReversed(){return Wl(this).toReversed()},toSorted(t){return Wl(this).toSorted(t)},toSpliced(...t){return Wl(this).toSpliced(...t)},unshift(...t){return Hu(this,"unshift",t)},values(){return uy(this,"values",gr)}};function uy(t,e,n){const r=ag(t),i=r[e]();return r!==t&&!Pi(t)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const BB=Array.prototype;function Bs(t,e,n,r,i,s){const a=ag(t),o=a!==t&&!Pi(t),l=a[e];if(l!==BB[e]){const f=l.apply(t,s);return o?gr(f):f}let c=n;a!==t&&(o?c=function(f,d){return n.call(this,gr(f),d,t)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,t)}));const u=l.call(a,c,r);return o&&i?i(u):u}function Sw(t,e,n,r){const i=ag(t);let s=n;return i!==t&&(Pi(t)?n.length>3&&(s=function(a,o,l){return n.call(this,a,o,l,t)}):s=function(a,o,l){return n.call(this,a,gr(o),l,t)}),i[e](s,...r)}function fy(t,e,n){const r=lt(t);mr(r,"iterate",nd);const i=r[e](...n);return(i===-1||i===!1)&&yT(n[0])?(n[0]=lt(n[0]),r[e](...n)):i}function Hu(t,e,n=[]){ho(),dT();const r=lt(t)[e].apply(t,n);return hT(),po(),r}const UB=iT("__proto__,__v_isRef,__isVue"),TI=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Ji));function HB(t){Ji(t)||(t=String(t));const e=lt(this);return mr(e,"has",t),e.hasOwnProperty(t)}class SI{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?JB:RI:s?AI:xI).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const a=Re(e);if(!i){let l;if(a&&(l=$B[n]))return l;if(n==="hasOwnProperty")return HB}const o=Reflect.get(e,n,Wt(e)?e:r);return(Ji(n)?TI.has(n):UB(n))||(i||mr(e,"get",n),s)?o:Wt(o)?a&&lT(n)?o:o.value:Lt(o)?i?LI(o):ts(o):o}}class wI extends SI{constructor(e=!1){super(!1,e)}set(e,n,r,i){let s=e[n];if(!this._isShallow){const l=ro(s);if(!Pi(r)&&!ro(r)&&(s=lt(s),r=lt(r)),!Re(e)&&Wt(s)&&!Wt(r))return l?!1:(s.value=r,!0)}const a=Re(e)&&lT(n)?Number(n)<e.length:bt(e,n),o=Reflect.set(e,n,r,Wt(e)?e:i);return e===lt(i)&&(a?qr(r,s)&&Zs(e,"set",n,r):Zs(e,"add",n,r)),o}deleteProperty(e,n){const r=bt(e,n);e[n];const i=Reflect.deleteProperty(e,n);return i&&r&&Zs(e,"delete",n,void 0),i}has(e,n){const r=Reflect.has(e,n);return(!Ji(n)||!TI.has(n))&&mr(e,"has",n),r}ownKeys(e){return mr(e,"iterate",Re(e)?"length":al),Reflect.ownKeys(e)}}class GB extends SI{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const jB=new wI,VB=new GB,qB=new wI(!0);const O_=t=>t,Qd=t=>Reflect.getPrototypeOf(t);function KB(t,e,n){return function(...r){const i=this.__v_raw,s=lt(i),a=Rc(s),o=t==="entries"||t===Symbol.iterator&&a,l=t==="keys"&&a,c=i[t](...r),u=n?O_:e?M_:gr;return!e&&mr(s,"iterate",l?D_:al),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:o?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Zd(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function WB(t,e){const n={get(i){const s=this.__v_raw,a=lt(s),o=lt(i);t||(qr(i,o)&&mr(a,"get",i),mr(a,"get",o));const{has:l}=Qd(a),c=e?O_:t?M_:gr;if(l.call(a,i))return c(s.get(i));if(l.call(a,o))return c(s.get(o));s!==a&&s.get(i)},get size(){const i=this.__v_raw;return!t&&mr(lt(i),"iterate",al),Reflect.get(i,"size",i)},has(i){const s=this.__v_raw,a=lt(s),o=lt(i);return t||(qr(i,o)&&mr(a,"has",i),mr(a,"has",o)),i===o?s.has(i):s.has(i)||s.has(o)},forEach(i,s){const a=this,o=a.__v_raw,l=lt(o),c=e?O_:t?M_:gr;return!t&&mr(l,"iterate",al),o.forEach((u,f)=>i.call(s,c(u),c(f),a))}};return an(n,t?{add:Zd("add"),set:Zd("set"),delete:Zd("delete"),clear:Zd("clear")}:{add(i){!e&&!Pi(i)&&!ro(i)&&(i=lt(i));const s=lt(this);return Qd(s).has.call(s,i)||(s.add(i),Zs(s,"add",i,i)),this},set(i,s){!e&&!Pi(s)&&!ro(s)&&(s=lt(s));const a=lt(this),{has:o,get:l}=Qd(a);let c=o.call(a,i);c||(i=lt(i),c=o.call(a,i));const u=l.call(a,i);return a.set(i,s),c?qr(s,u)&&Zs(a,"set",i,s):Zs(a,"add",i,s),this},delete(i){const s=lt(this),{has:a,get:o}=Qd(s);let l=a.call(s,i);l||(i=lt(i),l=a.call(s,i)),o&&o.call(s,i);const c=s.delete(i);return l&&Zs(s,"delete",i,void 0),c},clear(){const i=lt(this),s=i.size!==0,a=i.clear();return s&&Zs(i,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=KB(i,t,e)}),n}function mT(t,e){const n=WB(t,e);return(r,i,s)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?r:Reflect.get(bt(n,i)&&i in r?n:r,i,s)}const zB={get:mT(!1,!1)},YB={get:mT(!1,!0)},XB={get:mT(!0,!1)};const xI=new WeakMap,AI=new WeakMap,RI=new WeakMap,JB=new WeakMap;function QB(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ZB(t){return t.__v_skip||!Object.isExtensible(t)?0:QB(wB(t))}function ts(t){return ro(t)?t:gT(t,!1,jB,zB,xI)}function ra(t){return gT(t,!1,qB,YB,AI)}function LI(t){return gT(t,!0,VB,XB,RI)}function gT(t,e,n,r,i){if(!Lt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=i.get(t);if(s)return s;const a=ZB(t);if(a===0)return t;const o=new Proxy(t,a===2?r:n);return i.set(t,o),o}function Rs(t){return ro(t)?Rs(t.__v_raw):!!(t&&t.__v_isReactive)}function ro(t){return!!(t&&t.__v_isReadonly)}function Pi(t){return!!(t&&t.__v_isShallow)}function yT(t){return t?!!t.__v_raw:!1}function lt(t){const e=t&&t.__v_raw;return e?lt(e):t}function vT(t){return!bt(t,"__v_skip")&&Object.isExtensible(t)&&oI(t,"__v_skip",!0),t}const gr=t=>Lt(t)?ts(t):t,M_=t=>Lt(t)?LI(t):t;function Wt(t){return t?t.__v_isRef===!0:!1}function it(t){return CI(t,!1)}function jc(t){return CI(t,!0)}function CI(t,e){return Wt(t)?t:new eU(t,e)}class eU{constructor(e,n){this.dep=new sg,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:lt(e),this._value=n?e:gr(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||Pi(e)||ro(e);e=r?e:lt(e),qr(e,n)&&(this._rawValue=e,this._value=r?e:gr(e),this.dep.trigger())}}function _e(t){return Wt(t)?t.value:t}function tU(t){return Be(t)?t():_e(t)}const nU={get:(t,e,n)=>e==="__v_raw"?t:_e(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return Wt(i)&&!Wt(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function II(t){return Rs(t)?t:new Proxy(t,nU)}class rU{constructor(e){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new sg,{get:r,set:i}=e(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function iU(t){return new rU(t)}function sU(t){const e=Re(t)?new Array(t.length):{};for(const n in t)e[n]=kI(t,n);return e}class aU{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return FB(lt(this._object),this._key)}}class oU{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function _T(t,e,n){return Wt(t)?t:Be(t)?new oU(t):Lt(t)&&arguments.length>1?kI(t,e,n):it(t)}function kI(t,e,n){const r=t[e];return Wt(r)?r:new aU(t,e,n)}class lU{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new sg(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=td-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ft!==this)return gI(this,!0),!0}get value(){const e=this.dep.track();return _I(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function cU(t,e,n=!1){let r,i;return Be(t)?r=t:(r=t.get,i=t.set),new lU(r,i,n)}const eh={},Xp=new WeakMap;let ko;function uU(t,e=!1,n=ko){if(n){let r=Xp.get(n);r||Xp.set(n,r=[]),r.push(t)}}function fU(t,e,n=mt){const{immediate:r,deep:i,once:s,scheduler:a,augmentJob:o,call:l}=n,c=E=>i?E:Pi(E)||i===!1||i===0?ea(E,1):ea(E);let u,f,d,h,p=!1,m=!1;if(Wt(t)?(f=()=>t.value,p=Pi(t)):Rs(t)?(f=()=>c(t),p=!0):Re(t)?(m=!0,p=t.some(E=>Rs(E)||Pi(E)),f=()=>t.map(E=>{if(Wt(E))return E.value;if(Rs(E))return c(E);if(Be(E))return l?l(E,2):E()})):Be(t)?e?f=l?()=>l(t,2):t:f=()=>{if(d){ho();try{d()}finally{po()}}const E=ko;ko=u;try{return l?l(t,3,[h]):t(h)}finally{ko=E}}:f=As,e&&i){const E=f,b=i===!0?1/0:i;f=()=>ea(E(),b)}const g=fT(),_=()=>{u.stop(),g&&g.active&&aT(g.effects,u)};if(s&&e){const E=e;e=(...b)=>{E(...b),_()}}let v=m?new Array(t.length).fill(eh):eh;const y=E=>{if(!(!(u.flags&1)||!u.dirty&&!E))if(e){const b=u.run();if(i||p||(m?b.some((T,S)=>qr(T,v[S])):qr(b,v))){d&&d();const T=ko;ko=u;try{const S=[b,v===eh?void 0:m&&v[0]===eh?[]:v,h];l?l(e,3,S):e(...S),v=b}finally{ko=T}}}else u.run()};return o&&o(y),u=new pI(f),u.scheduler=a?()=>a(y,!1):y,h=E=>uU(E,!1,u),d=u.onStop=()=>{const E=Xp.get(u);if(E){if(l)l(E,4);else for(const b of E)b();Xp.delete(u)}},e?r?y(!0):v=u.run():a?a(y.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function ea(t,e=1/0,n){if(e<=0||!Lt(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,Wt(t))ea(t.value,e,n);else if(Re(t))for(let r=0;r<t.length;r++)ea(t[r],e,n);else if(yu(t)||Rc(t))t.forEach(r=>{ea(r,e,n)});else if(aI(t)){for(const r in t)ea(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&ea(t[r],e,n)}return t}/** 11* @vue/runtime-core v3.5.13 12* (c) 2018-present Yuxi (Evan) You and Vue contributors 13* @license MIT
14**/function Md(t,e,n,r){try{return r?t(...r):t()}catch(i){_u(i,e,n)}}function Qi(t,e,n,r){if(Be(t)){const i=Md(t,e,n,r);return i&&oT(i)&&i.catch(s=>{_u(s,e,n)}),i}if(Re(t)){const i=[];for(let s=0;s<t.length;s++)i.push(Qi(t[s],e,n,r));return i}}function _u(t,e,n,r=!0){const i=e?e.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:a}=e&&e.appContext.config||mt;if(e){let o=e.parent;const l=e.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const u=o.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](t,l,c)===!1)return}o=o.parent}if(s){ho(),Md(s,null,10,[t,l,c]),po();return}}dU(t,n,i,r,a)}function dU(t,e,n,r=!0,i=!1){if(i)throw t;console.error(t)}const Mr=[];let fs=-1;const Ic=[];let Ca=null,ac=0;const PI=Promise.resolve();let Jp=null;function tr(t){const e=Jp||PI;return t?e.then(this?t.bind(this):t):e}function hU(t){let e=fs+1,n=Mr.length;for(;e<n;){const r=e+n>>>1,i=Mr[r],s=rd(i);s<t||s===t&&i.flags&2?e=r+1:n=r}return e}function ET(t){if(!(t.flags&1)){const e=rd(t),n=Mr[Mr.length-1];!n||!(t.flags&2)&&e>=rd(n)?Mr.push(t):Mr.splice(hU(e),0,t),t.flags|=1,DI()}}function DI(){Jp||(Jp=PI.then(OI))}function N_(t){Re(t)?Ic.push(...t):Ca&&t.id===-1?Ca.splice(ac+1,0,t):t.flags&1||(Ic.push(t),t.flags|=1),DI()}function ww(t,e,n=fs+1){for(;n<Mr.length;n++){const r=Mr[n];if(r&&r.flags&2){if(t&&r.id!==t.uid)continue;Mr.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Qp(t){if(Ic.length){const e=[...new Set(Ic)].sort((n,r)=>rd(n)-rd(r));if(Ic.length=0,Ca){Ca.push(...e);return}for(Ca=e,ac=0;ac<Ca.length;ac++){const n=Ca[ac];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ca=null,ac=0}}const rd=t=>
vendor: 55,374 bytes, lines 14-18
14t.id==null?t.flags&2?-1:1/0:t.id;function OI(t){try{for(fs=0;fs<Mr.length;fs++){const e=Mr[fs];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Md(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;fs<Mr.length;fs++){const e=Mr[fs];e&&(e.flags&=-2)}fs=-1,Mr.length=0,Qp(),Jp=null,(Mr.length||Ic.length)&&OI()}}let Mn=null,MI=null;function Zp(t){const e=Mn;return Mn=t,MI=t&&t.type.__scopeId||null,e}function Ds(t,e=Mn,n){if(!e||t._n)return t;const r=(...i)=>{r._d&&Uw(-1);const s=Zp(e);let a;try{a=t(...i)}finally{Zp(s),r._d&&Uw(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function ba(t,e){if(Mn===null)return t;const n=hg(Mn),r=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[s,a,o,l=mt]=e[i];s&&(Be(s)&&(s={mounted:s,updated:s}),s.deep&&ea(a),r.push({dir:s,instance:n,value:a,oldValue:void 0,arg:o,modifiers:l}))}return t}function ds(t,e,n,r){const i=t.dirs,s=e&&e.dirs;for(let a=0;a<i.length;a++){const o=i[a];s&&(o.oldValue=s[a].value);let l=o.dir[r];l&&(ho(),Qi(l,n,8,[t.el,o,t,e]),po())}}const NI=Symbol("_vte"),FI=t=>t.__isTeleport,xf=t=>t&&(t.disabled||t.disabled===""),xw=t=>t&&(t.defer||t.defer===""),Aw=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Rw=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,F_=(t,e)=>{const n=t&&t.to;return Ht(n)?e?e(n):null:n},$I={name:"Teleport",__isTeleport:!0,process(t,e,n,r,i,s,a,o,l,c){const{mc:u,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:m,createComment:g}}=c,_=xf(e.props);let{shapeFlag:v,children:y,dynamicChildren:E}=e;if(t==null){const b=e.el=m(""),T=e.anchor=m("");h(b,n,r),h(T,n,r);const S=(w,x)=>{v&16&&(i&&i.isCE&&(i.ce._teleportTarget=w),u(y,w,x,i,s,a,o,l))},A=()=>{const w=e.target=F_(e.props,p),x=BI(w,e,m,h);w&&(a!=="svg"&&Aw(w)?a="svg":a!=="mathml"&&Rw(w)&&(a="mathml"),_||(S(w,x),Xh(e,!1)))};_&&(S(n,T),Xh(e,!0)),xw(e.props)?kn(()=>{A(),e.el.__isMounted=!0},s):A()}else{if(xw(e.props)&&!t.el.__isMounted){kn(()=>{$I.process(t,e,n,r,i,s,a,o,l,c),delete t.el.__isMounted},s);return}e.el=t.el,e.targetStart=t.targetStart;const b=e.anchor=t.anchor,T=e.target=t.target,S=e.targetAnchor=t.targetAnchor,A=xf(t.props),w=A?n:T,x=A?b:S;if(a==="svg"||Aw(T)?a="svg":(a==="mathml"||Rw(T))&&(a="mathml"),E?(d(t.dynamicChildren,E,w,i,s,a,o),xT(t,e,!0)):l||f(t,e,w,x,i,s,a,o,!1),_)A?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):th(e,n,b,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const L=e.target=F_(e.props,p);L&&th(e,L,null,c,0)}else A&&th(e,T,S,c,1);Xh(e,_)}},remove(t,e,n,{um:r,o:{remove:i}},s){const{shapeFlag:a,children:o,anchor:l,targetStart:c,targetAnchor:u,target:f,props:d}=t;if(f&&(i(c),i(u)),s&&i(l),a&16){const h=s||!xf(d);for(let p=0;p<o.length;p++){const m=o[p];r(m,e,n,h,!!m.dynamicChildren)}}},move:th,hydrate:pU};function th(t,e,n,{o:{insert:r},m:i},s=2){s===0&&r(t.targetAnchor,e,n);const{el:a,anchor:o,shapeFlag:l,children:c,props:u}=t,f=s===2;if(f&&r(a,e,n),(!f||xf(u))&&l&16)for(let d=0;d<c.length;d++)i(c[d],e,n,2);f&&r(o,e,n)}function pU(t,e,n,r,i,s,{o:{nextSibling:a,parentNode:o,querySelector:l,insert:c,createText:u}},f){const d=e.target=F_(e.props,l);if(d){const h=xf(e.props),p=d._lpa||d.firstChild;if(e.shapeFlag&16)if(h)e.anchor=f(a(t),e,o(t),n,r,i,s),e.targetStart=p,e.targetAnchor=p&&a(p);else{e.anchor=a(t);let m=p;for(;m;){if(m&&m.nodeType===8){if(m.data==="teleport start anchor")e.targetStart=m;else if(m.data==="teleport anchor"){e.targetAnchor=m,d._lpa=e.targetAnchor&&a(e.targetAnchor);break}}m=a(m)}e.targetAnchor||BI(d,e,u,c),f(p&&a(p),e,d,n,r,i,s)}Xh(e,h)}return e.anchor&&a(e.anchor)}const mU=$I;function Xh(t,e){const n=t.ctx;if(n&&n.ut){let r,i;for(e?(r=t.el,i=t.anchor):(r=t.targetStart,i=t.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function BI(t,e,n,r){const i=e.targetStart=n(""),s=e.targetAnchor=n("");return i[NI]=s,t&&(r(i,t),r(s,t)),s}const Ia=Symbol("_leaveCb"),nh=Symbol("_enterCb");function gU(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Mi(()=>{t.isMounted=!0}),go(()=>{t.isUnmounting=!0}),t}const Ei=[Function,Array],UI={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ei,onEnter:Ei,onAfterEnter:Ei,onEnterCancelled:Ei,onBeforeLeave:Ei,onLeave:Ei,onAfterLeave:Ei,onLeaveCancelled:Ei,onBeforeAppear:Ei,onAppear:Ei,onAfterAppear:Ei,onAppearCancelled:Ei},HI=t=>{const e=t.subTree;return e.component?HI(e.component):e},yU={name:"BaseTransition",props:UI,setup(t,{slots:e}){const n=_a(),r=gU();return()=>{const i=e.default&&VI(e.default(),!0);if(!i||!i.length)return;const s=GI(i),a=lt(t),{mode:o}=a;if(r.isLeaving)return dy(s);const l=Lw(s);if(!l)return dy(s);let c=$_(l,a,r,n,f=>c=f);l.type!==Dn&&Vc(l,c);let u=n.subTree&&Lw(n.subTree);if(u&&u.type!==Dn&&!zi(l,u)&&HI(n).type!==Dn){let f=$_(u,a,r,n);if(Vc(u,f),o==="out-in"&&l.type!==Dn)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},dy(s);o==="in-out"&&l.type!==Dn?f.delayLeave=(d,h,p)=>{const m=jI(r,u);m[String(u.key)]=u,d[Ia]=()=>{h(),d[Ia]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return s}}};function GI(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==Dn){e=n;break}}return e}const vU=yU;function jI(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function $_(t,e,n,r,i){const{appear:s,mode:a,persisted:o=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:g,onAppear:_,onAfterAppear:v,onAppearCancelled:y}=e,E=String(t.key),b=jI(n,t),T=(w,x)=>{w&&Qi(w,r,9,x)},S=(w,x)=>{const L=x[1];T(w,x),Re(w)?w.every(R=>R.length<=1)&&L():w.length<=1&&L()},A={mode:a,persisted:o,beforeEnter(w){let x=l;if(!n.isMounted)if(s)x=g||l;else return;w[Ia]&&w[Ia](!0);const L=b[E];L&&zi(t,L)&&L.el[Ia]&&L.el[Ia](),T(x,[w])},enter(w){let x=c,L=u,R=f;if(!n.isMounted)if(s)x=_||c,L=v||u,R=y||f;else return;let k=!1;const F=w[nh]=U=>{k||(k=!0,U?T(R,[w]):T(L,[w]),A.delayedLeave&&A.delayedLeave(),w[nh]=void 0)};x?S(x,[w,F]):F()},leave(w,x){const L=String(t.key);if(w[nh]&&w[nh](!0),n.isUnmounting)return x();T(d,[w]);let R=!1;const k=w[Ia]=F=>{R||(R=!0,x(),F?T(m,[w]):T(p,[w]),w[Ia]=void 0,b[L]===t&&delete b[L])};b[L]=t,h?S(h,[w,k]):k()},clone(w){const x=$_(w,e,n,r,i);return i&&i(x),x}};return A}function dy(t){if(Nd(t))return t=ua(t),t.children=null,t}function Lw(t){if(!Nd(t))return FI(t.type)&&t.children?GI(t.children):t;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&Be(n.default))return n.default()}}function Vc(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Vc(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function VI(t,e=!1,n){let r=[],i=0;for(let s=0;s<t.length;s++){let a=t[s];const o=n==null?a.key:String(n)+String(a.key!=null?a.key:s);a.type===er?(a.patchFlag&128&&i++,r=r.concat(VI(a.children,e,o))):(e||a.type!==Dn)&&r.push(o!=null?ua(a,{key:o}):a)}if(i>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function ya(t,e){return Be(t)?an({name:t.name},e,{setup:t}):t}function Soe(){const t=_a();return t?(t.appContext.config.idPrefix||"v")+"-"+t.ids[0]+t.ids[1]++:""}function bT(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function mo(t){const e=_a(),n=jc(null);if(e){const i=e.refs===mt?e.refs={}:e.refs;Object.defineProperty(i,t,{enumerable:!0,get:()=>n.value,set:s=>n.value=s})}return n}function id(t,e,n,r,i=!1){if(Re(t)){t.forEach((p,m)=>id(p,e&&(Re(e)?e[m]:e),n,r,i));return}if(Ka(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&id(t,e,n,r.component.subTree);return}const s=r.shapeFlag&4?hg(r.component):r.el,a=i?null:s,{i:o,r:l}=t,c=e&&e.r,u=o.refs===mt?o.refs={}:o.refs,f=o.setupState,d=lt(f),h=f===mt?()=>!1:p=>bt(d,p);if(c!=null&&c!==l&&(Ht(c)?(u[c]=null,h(c)&&(f[c]=null)):Wt(c)&&(c.value=null)),Be(l))Md(l,o,12,[a,u]);else{const p=Ht(l),m=Wt(l);if(p||m){const g=()=>{if(t.f){const _=p?h(l)?f[l]:u[l]:l.value;i?Re(_)&&aT(_,s):Re(_)?_.includes(s)||_.push(s):p?(u[l]=[s],h(l)&&(f[l]=u[l])):(l.value=[s],t.k&&(u[t.k]=l.value))}else p?(u[l]=a,h(l)&&(f[l]=a)):m&&(l.value=a,t.k&&(u[t.k]=a))};a?(g.id=-1,kn(g,n)):g()}}}let Cw=!1;const zl=()=>{Cw||(console.error("Hydration completed but contains mismatches."),Cw=!0)},_U=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",EU=t=>t.namespaceURI.includes("MathML"),rh=t=>{if(t.nodeType===1){if(_U(t))return"svg";if(EU(t))return"mathml"}},gc=t=>t.nodeType===8;function bU(t){const{mt:e,p:n,o:{patchProp:r,createText:i,nextSibling:s,parentNode:a,remove:o,insert:l,createComment:c}}=t,u=(y,E)=>{if(!E.hasChildNodes()){n(null,y,E),Qp(),E._vnode=y;return}f(E.firstChild,y,null,null,null),Qp(),E._vnode=y},f=(y,E,b,T,S,A=!1)=>{A=A||!!E.dynamicChildren;const w=gc(y)&&y.data==="[",x=()=>m(y,E,b,T,S,w),{type:L,ref:R,shapeFlag:k,patchFlag:F}=E;let U=y.nodeType;E.el=y,F===-2&&(A=!1,E.dynamicChildren=null);let H=null;switch(L){case ul:U!==3?E.children===""?(l(E.el=i(""),a(y),y),H=y):H=x():(y.data!==E.children&&(zl(),y.data=E.children),H=s(y));break;case Dn:v(y)?(H=s(y),_(E.el=y.content.firstChild,y,b)):U!==8||w?H=x():H=s(y);break;case Rf:if(w&&(y=s(y),U=y.nodeType),U===1||U===3){H=y;const M=!E.children.length;for(let O=0;O<E.staticCount;O++)M&&(E.children+=H.nodeType===1?H.outerHTML:H.data),O===E.staticCount-1&&(E.anchor=H),H=s(H);return w?s(H):H}else x();break;case er:w?H=p(y,E,b,T,S,A):H=x();break;default:if(k&1)(U!==1||E.type.toLowerCase()!==y.tagName.toLowerCase())&&!v(y)?H=x():H=d(y,E,b,T,S,A);else if(k&6){E.slotScopeIds=S;const M=a(y);if(w?H=g(y):gc(y)&&y.data==="teleport start"?H=g(y,y.data,"teleport end"):H=s(y),e(E,M,null,b,T,rh(M),A),Ka(E)&&!E.type.__asyncResolved){let O;w?(O=Je(er),O.anchor=H?H.previousSibling:M.lastChild):O=y.nodeType===3?Kc(""):Je("div"),O.el=y,E.component.subTree=O}}else k&64?U!==8?H=x():H=E.type.hydrate(y,E,b,T,S,A,t,h):k&128&&(H=E.type.hydrate(y,E,b,T,rh(a(y)),S,A,t,f))}return R!=null&&id(R,null,T,E),H},d=(y,E,b,T,S,A)=>{A=A||!!E.dynamicChildren;const{type:w,props:x,patchFlag:L,shapeFlag:R,dirs:k,transition:F}=E,U=w==="input"||w==="option";if(U||L!==-1){k&&ds(E,null,b,"created");let H=!1;if(v(y)){H=pk(null,F)&&b&&b.vnode.props&&b.vnode.props.appear;const O=y.content.firstChild;H&&F.beforeEnter(O),_(O,y,b),E.el=y=O}if(R&16&&!(x&&(x.innerHTML||x.textContent))){let O=h(y.firstChild,E,y,b,T,S,A);for(;O;){ih(y,1)||zl();const q=O;O=O.nextSibling,o(q)}}else if(R&8){let O=E.children;O[0]===` 15`&&(y.tagName==="PRE"||y.tagName==="TEXTAREA")&&(O=O.slice(1)),y.textContent!==O&&(ih(y,0)||zl(),y.textContent=E.children)}if(x){if(U||!A||L&48){const O=y.tagName.includes("-");for(const q in x)(U&&(q.endsWith("value")||q==="indeterminate")||Dd(q)&&!Lc(q)||q[0]==="."||O)&&r(y,q,null,x[q],void 0,b)}else if(x.onClick)r(y,"onClick",null,x.onClick,void 0,b);else if(L&4&&Rs(x.style))for(const O in x.style)x.style[O]}let M;(M=x&&x.onVnodeBeforeMount)&&jr(M,b,E),k&&ds(E,null,b,"beforeMount"),((M=x&&x.onVnodeMounted)||k||H)&&Ek(()=>{M&&jr(M,b,E),H&&F.enter(y),k&&ds(E,null,b,"mounted")},T)}return y.nextSibling},h=(y,E,b,T,S,A,w)=>{w=w||!!E.dynamicChildren;const x=E.children,L=x.length;for(let R=0;R<L;R++){const k=w?x[R]:x[R]=ci(x[R]),F=k.type===ul;y?(F&&!w&&R+1<L&&ci(x[R+1]).type===ul&&(l(i(y.data.slice(k.children.length)),b,s(y)),y.data=k.children),y=f(y,k,T,S,A,w)):F&&!k.children?l(k.el=i(""),b):(ih(b,1)||zl(),n(null,k,b,null,T,S,rh(b),A))}return y},p=(y,E,b,T,S,A)=>{const{slotScopeIds:w}=E;w&&(S=S?S.concat(w):w);const x=a(y),L=h(s(y),E,x,b,T,S,A);return L&&gc(L)&&L.data==="]"?s(E.anchor=L):(zl(),l(E.anchor=c("]"),x,L),L)},m=(y,E,b,T,S,A)=>{if(ih(y.parentElement,1)||zl(),E.el=null,A){const L=g(y);for(;;){const R=s(y);if(R&&R!==L)o(R);else break}}const w=s(y),x=a(y);return o(y),n(null,E,x,w,b,T,rh(x),S),b&&(b.vnode.el=E.el,dg(b,E.el)),w},g=(y,E="[",b="]")=>{let T=0;for(;y;)if(y=s(y),y&&gc(y)&&(y.data===E&&T++,y.data===b)){if(T===0)return s(y);T--}return y},_=(y,E,b)=>{const T=E.parentNode;T&&T.replaceChild(y,E);let S=b;for(;S;)S.vnode.el===E&&(S.vnode.el=S.subTree.el=y),S=S.parent},v=y=>y.nodeType===1&&y.tagName==="TEMPLATE";return[u,f]}const Iw="data-allow-mismatch",TU={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function ih(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(Iw);)t=t.parentElement;const n=t&&t.getAttribute(Iw);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return e===0&&r.includes("children")?!0:n.split(",").includes(TU[e])}}ig().requestIdleCallback;ig().cancelIdleCallback;function SU(t,e){if(gc(t)&&t.data==="["){let n=1,r=t.nextSibling;for(;r;){if(r.nodeType===1){if(e(r)===!1)break}else if(gc(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else e(t)}const Ka=t=>!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function kw(t){Be(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:s,timeout:a,suspensible:o=!0,onError:l}=t;let c=null,u,f=0;const d=()=>(f++,c=null,h()),h=()=>{let p;return c||(p=c=e().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((g,_)=>{l(m,()=>g(d()),()=>_(m),f+1)});throw m}).then(m=>p!==c&&c?c:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),u=m,m)))};return ya({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(p,m,g){const _=s?()=>{const v=s(g,y=>SU(p,y));v&&(m.bum||(m.bum=[])).push(v)}:g;u?_():h().then(()=>!m.isUnmounted&&_())},get __asyncResolved(){return u},setup(){const p=On;if(bT(p),u)return()=>hy(u,p);const m=y=>{c=null,_u(y,p,13,!r)};if(o&&p.suspense||Wc)return h().then(y=>()=>hy(y,p)).catch(y=>(m(y),()=>r?Je(r,{error:y}):null));const g=it(!1),_=it(),v=it(!!i);return i&&setTimeout(()=>{v.value=!1},i),a!=null&&setTimeout(()=>{if(!g.value&&!_.value){const y=new Error(`Async component timed out after ${a}ms.`);m(y),_.value=y}},a),h().then(()=>{g.value=!0,p.parent&&Nd(p.parent.vnode)&&p.parent.update()}).catch(y=>{m(y),_.value=y}),()=>{if(g.value&&u)return hy(u,p);if(_.value&&r)return Je(r,{error:_.value});if(n&&!v.value)return Je(n)}}})}function hy(t,e){const{ref:n,props:r,children:i,ce:s}=e.vnode,a=Je(t,r,i);return a.ref=n,a.ce=s,delete e.vnode.ce,a}const Nd=t=>t.type.__isKeepAlive,wU={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=_a(),r=n.ctx;if(!r.renderer)return()=>{const v=e.default&&e.default();return v&&v.length===1?v[0]:v};const i=new Map,s=new Set;let a=null;const o=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:f}}}=r,d=f("div");r.activate=(v,y,E,b,T)=>{const S=v.component;c(v,y,E,0,o),l(S.vnode,v,y,E,S,o,b,v.slotScopeIds,T),kn(()=>{S.isDeactivated=!1,S.a&&Cc(S.a);const A=v.props&&v.props.onVnodeMounted;A&&jr(A,S.parent,v)},o)},r.deactivate=v=>{const y=v.component;nm(y.m),nm(y.a),c(v,d,null,1,o),kn(()=>{y.da&&Cc(y.da);const E=v.props&&v.props.onVnodeUnmounted;E&&jr(E,y.parent,v),y.isDeactivated=!0},o)};function h(v){py(v),u(v,n,o,!0)}function p(v){i.forEach((y,E)=>{const b=W_(y.type);b&&!v(b)&&m(E)})}function m(v){const y=i.get(v);y&&(!a||!zi(y,a))?h(y):a&&py(a),i.delete(v),s.delete(v)}ar(()=>[t.include,t.exclude],([v,y])=>{v&&p(E=>Zu(v,E)),y&&p(E=>!Zu(y,E))},{flush:"post",deep:!0});let g=null;const _=()=>{g!=null&&(rm(n.subTree.type)?kn(()=>{i.set(g,sh(n.subTree))},n.subTree.suspense):i.set(g,sh(n.subTree)))};return Mi(_),zI(_),go(()=>{i.forEach(v=>{const{subTree:y,suspense:E}=n,b=sh(y);if(v.type===b.type&&v.key===b.key){py(b);const T=b.component.da;T&&kn(T,E);return}h(v)})}),()=>{if(g=null,!e.default)return a=null;const v=e.default(),y=v[0];if(v.length>1)return a=null,v;if(!xl(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return a=null,y;let E=sh(y);if(E.type===Dn)return a=null,E;const b=E.type,T=W_(Ka(E)?E.type.__asyncResolved||{}:b),{include:S,exclude:A,max:w}=t;if(S&&(!T||!Zu(S,T))||A&&T&&Zu(A,T))return E.shapeFlag&=-257,a=E,y;const x=E.key==null?b:E.key,L=i.get(x);return E.el&&(E=ua(E),y.shapeFlag&128&&(y.ssContent=E)),g=x,L?(E.el=L.el,E.component=L.component,E.transition&&Vc(E,E.transition),E.shapeFlag|=512,s.delete(x),s.add(x)):(s.add(x),w&&s.size>parseInt(w,10)&&m(s.values().next().value)),E.shapeFlag|=256,a=E,rm(y.type)?y:E}}},xU=wU;function Zu(t,e){return Re(t)?t.some(n=>Zu(n,e)):Ht(t)?t.split(",").includes(e):SB(t)?(t.lastIndex=0,t.test(e)):!1}function qI(t,e){WI(t,"a",e)}function KI(t,e){WI(t,"da",e)}function WI(t,e,n=On){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(og(e,r,n),n){let i=n.parent;for(;i&&i.parent;)Nd(i.parent.vnode)&&AU(r,e,n,i),i=i.parent}}function AU(t,e,n,r){const i=og(e,t,r,!0);YI(()=>{aT(r[e],i)},n)}function py(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function sh(t){return t.shapeFlag&128?t.ssContent:t}function og(t,e,n=On,r=!1){if(n){const i=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...a)=>{ho();const o=Al(n),l=Qi(e,n,t,a);return o(),po(),l});return r?i.unshift(s):i.push(s),s}}const va=t=>(e,n=On)=>{(!Wc||t==="sp")&&og(t,(...r)=>e(...r),n)},RU=va("bm"),Mi=va("m"),LU=va("bu"),zI=va("u"),go=va("bum"),YI=va("um"),CU=va("sp"),IU=va("rtg"),kU=va("rtc");function XI(t,e=On){og("ec",t,e)}const JI="components";function Pw(t,e){return ek(JI,t,!0,e)||t}const QI=Symbol.for("v-ndc");function ZI(t){return Ht(t)?ek(JI,t,!1)||t:t||QI}function ek(t,e,n=!0,r=!1){const i=Mn||On;if(i){const s=i.type;{const o=W_(s,!1);if(o&&(o===e||o===yi(e)||o===rg(yi(e))))return s}const a=Dw(i[t]||s[t],e)||Dw(i.appContext[t],e);return!a&&r?s:a}}function Dw(t,e){return t&&(t[e]||t[yi(e)]||t[rg(yi(e))])}function woe(t,e,n,r){let i;const s=n,a=Re(t);if(a||Ht(t)){const o=a&&Rs(t);let l=!1;o&&(l=!Pi(t),t=ag(t)),i=new Array(t.length);for(let c=0,u=t.length;c<u;c++)i[c]=e(l?gr(t[c]):t[c],c,void 0,s)}else if(typeof t=="number"){i=new Array(t);for(let o=0;o<t;o++)i[o]=e(o+1,o,void 0,s)}else if(Lt(t))if(t[Symbol.iterator])i=Array.from(t,(o,l)=>e(o,l,void 0,s));else{const o=Object.keys(t);i=new Array(o.length);for(let l=0,c=o.length;l<c;l++){const u=o[l];i[l]=e(t[u],u,l,s)}}else i=[];return i}function lg(t,e,n={},r,i){if(Mn.ce||Mn.parent&&Ka(Mn.parent)&&Mn.parent.ce)return e!=="default"&&(n.name=e),ze(),Xt(er,null,[Je("slot",n,r&&r())],64);let s=t[e];s&&s._c&&(s._d=!1),ze();const a=s&&tk(s(n)),o=n.key||a&&a.key,l=Xt(er,{key:(o&&!Ji(o)?o:`_${e}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&t._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function tk(t){return t.some(e=>xl(e)?!(e.type===Dn||e.type===er&&!tk(e.children)):!0)?t:null}const B_=t=>t?wk(t)?hg(t):B_(t.parent):null,Af=an(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>B_(t.parent),$root:t=>B_(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>TT(t),$forceUpdate:t=>t.f||(t.f=()=>{ET(t.update)}),$nextTick:t=>t.n||(t.n=tr.bind(t.proxy)),$watch:t=>e2.bind(t)}),my=(t,e)=>t!==mt&&!t.__isScriptSetup&&bt(t,e),PU={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:a,type:o,appContext:l}=t;let c;if(e[0]!=="$"){const h=a[e];if(h!==void 0)switch(h){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return s[e]}else{if(my(r,e))return a[e]=1,r[e];if(i!==mt&&bt(i,e))return a[e]=2,i[e];if((c=t.propsOptions[0])&&bt(c,e))return a[e]=3,s[e];if(n!==mt&&bt(n,e))return a[e]=4,n[e];U_&&(a[e]=0)}}const u=Af[e];let f,d;if(u)return e==="$attrs"&&mr(t.attrs,"get",""),u(t);if((f=o.__cssModules)&&(f=f[e]))return f;if(n!==mt&&bt(n,e))return a[e]=4,n[e];if(d=l.config.globalProperties,bt(d,e))return d[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:s}=t;return my(i,e)?(i[e]=n,!0):r!==mt&&bt(r,e)?(r[e]=n,!0):bt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,propsOptions:s}},a){let o;return!!n[a]||t!==mt&&bt(t,a)||my(e,a)||(o=s[0])&&bt(o,a)||bt(r,a)||bt(Af,a)||bt(i.config.globalProperties,a)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:bt(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function DU(){return OU().attrs}function OU(){const t=_a();return t.setupContext||(t.setupContext=Ak(t))}function em(t){return Re(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function xoe(t,e){return!t||!e?t||e:Re(t)&&Re(e)?t.concat(e):an({},em(t),em(e))}function ol(t){const e=_a();let n=t();return q_(),oT(n)&&(n=n.catch(r=>{throw Al(e),r})),[n,()=>Al(e)]}let U_=!0;function MU(t){const e=TT(t),n=t.proxy,r=t.ctx;U_=!1,e.beforeCreate&&Ow(e.beforeCreate,t,"bc");const{data:i,computed:s,methods:a,watch:o,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:m,deactivated:g,beforeDestroy:_,beforeUnmount:v,destroyed:y,unmounted:E,render:b,renderTracked:T,renderTriggered:S,errorCaptured:A,serverPrefetch:w,expose:x,inheritAttrs:L,components:R,directives:k,filters:F}=e;if(c&&NU(c,r,null),a)for(const M in a){const O=a[M];Be(O)&&(r[M]=O.bind(n))}if(i){const M=i.call(n,n);Lt(M)&&(t.data=ts(M))}if(U_=!0,s)for(const M in s){const O=s[M],q=Be(O)?O.bind(n,n):Be(O.get)?O.get.bind(n,n):As,P=!Be(O)&&Be(O.set)?O.set.bind(n):As,ae=$e({get:q,set:P});Object.defineProperty(r,M,{enumerable:!0,configurable:!0,get:()=>ae.value,set:ce=>ae.value=ce})}if(o)for(const M in o)nk(o[M],r,n,M);if(l){const M=Be(l)?l.call(n):l;Reflect.ownKeys(M).forEach(O=>{cl(O,M[O])})}u&&Ow(u,t,"c");function H(M,O){Re(O)?O.forEach(q=>M(q.bind(n))):O&&M(O.bind(n))}if(H(RU,f),H(Mi,d),H(LU,h),H(zI,p),H(qI,m),H(KI,g),H(XI,A),H(kU,T),H(IU,S),H(go,v),H(YI,E),H(CU,w),Re(x))if(x.length){const M=t.exposed||(t.exposed={});x.forEach(O=>{Object.defineProperty(M,O,{get:()=>n[O],set:q=>n[O]=q})})}else t.exposed||(t.exposed={});b&&t.render===As&&(t.render=b),L!=null&&(t.inheritAttrs=L),R&&(t.components=R),k&&(t.directives=k),w&&bT(t)}function NU(t,e,n=As){Re(t)&&(t=H_(t));for(const r in t){const i=t[r];let s;Lt(i)?"default"in i?s=sr(i.from||r,i.default,!0):s=sr(i.from||r):s=sr(i),Wt(s)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):e[r]=s}}function Ow(t,e,n){Qi(Re(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function nk(t,e,n,r){let i=r.includes(".")?gk(n,r):()=>n[r];if(Ht(t)){const s=e[t];Be(s)&&ar(i,s)}else if(Be(t))ar(i,t.bind(n));else if(Lt(t))if(Re(t))t.forEach(s=>nk(s,e,n,r));else{const s=Be(t.handler)?t.handler.bind(n):e[t.handler];Be(s)&&ar(i,s,t)}}function TT(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:s,config:{optionMergeStrategies:a}}=t.appContext,o=s.get(e);let l;return o?l=o:!i.length&&!n&&!r?l=e:(l={},i.length&&i.forEach(c=>tm(l,c,a,!0)),tm(l,e,a)),Lt(e)&&s.set(e,l),l}function tm(t,e,n,r=!1){const{mixins:i,extends:s}=e;s&&tm(t,s,n,!0),i&&i.forEach(a=>tm(t,a,n,!0));for(const a in e)if(!(r&&a==="expose")){const o=FU[a]||n&&n[a];t[a]=o?o(t[a],e[a]):e[a]}return t}const FU={data:Mw,props:Nw,emits:Nw,methods:ef,computed:ef,beforeCreate:Cr,created:Cr,beforeMount:Cr,mounted:Cr,beforeUpdate:Cr,updated:Cr,beforeDestroy:Cr,beforeUnmount:Cr,destroyed:Cr,unmounted:Cr,activated:Cr,deactivated:Cr,errorCaptured:Cr,serverPrefetch:Cr,components:ef,directives:ef,watch:BU,provide:Mw,inject:$U};function Mw(t,e){return e?t?function(){return an(Be(t)?t.call(this,this):t,Be(e)?e.call(this,this):e)}:e:t}function $U(t,e){return ef(H_(t),H_(e))}function H_(t){if(Re(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Cr(t,e){return t?[...new Set([].concat(t,e))]:e}function ef(t,e){return t?an(Object.create(null),t,e):e}function Nw(t,e){return t?Re(t)&&Re(e)?[...new Set([...t,...e])]:an(Object.create(null),em(t),em(e??{})):e}function BU(t,e){if(!t)return e;if(!e)return t;const n=an(Object.create(null),t);for(const r in e)n[r]=Cr(t[r],e[r]);return n}function rk(){return{app:null,config:{isNativeTag:bB,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let UU=0;function HU(t,e){return function(r,i=null){Be(r)||(r=an({},r)),i!=null&&!Lt(i)&&(i=null);const s=rk(),a=new WeakSet,o=[];let l=!1;const c=s.app={_uid:UU++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:Rk,get config(){return s.config},set config(u){},use(u,...f){return a.has(u)||(u&&Be(u.install)?(a.add(u),u.install(c,...f)):Be(u)&&(a.add(u),u(c,...f))),c},mixin(u){return s.mixins.includes(u)||s.mixins.push(u),c},component(u,f){return f?(s.components[u]=f,c):s.components[u]},directive(u,f){return f?(s.directives[u]=f,c):s.directives[u]},mount(u,f,d){if(!l){const h=c._ceVNode||Je(r,i);return h.appContext=s,d===!0?d="svg":d===!1&&(d=void 0),f&&e?e(h,u):t(h,u,d),l=!0,c._container=u,u.__vue_app__=c,hg(h.component)}},onUnmount(u){o.push(u)},unmount(){l&&(Qi(o,c._instance,16),t(null,c._container),delete c._container.__vue_app__)},provide(u,f){return s.provides[u]=f,c},runWithContext(u){const f=ll;ll=c;try{return u()}finally{ll=f}}};return c}}let ll=null;function cl(t,e){if(On){let n=On.provides;const r=On.parent&&On.parent.provides;r===n&&(n=On.provides=Object.create(r)),n[t]=e}}function sr(t,e,n=!1){const r=On||Mn;if(r||ll){const i=ll?ll._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&t in i)return i[t];if(arguments.length>1)return n&&Be(e)?e.call(r&&r.proxy):e}}function ST(){return!!(On||Mn||ll)}const ik={},sk=()=>Object.create(ik),ak=t=>Object.getPrototypeOf(t)===ik;function GU(t,e,n,r=!1){const i={},s=sk();t.propsDefaults=Object.create(null),ok(t,e,i,s);for(const a in t.propsOptions[0])a in i||(i[a]=void 0);n?t.props=r?i:ra(i):t.type.props?t.props=i:t.props=s,t.attrs=s}function jU(t,e,n,r){const{props:i,attrs:s,vnode:{patchFlag:a}}=t,o=lt(i),[l]=t.propsOptions;let c=!1;if((r||a>0)&&!(a&16)){if(a&8){const u=t.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(fg(t.emitsOptions,d))continue;const h=e[d];if(l)if(bt(s,d))h!==s[d]&&(s[d]=h,c=!0);else{const p=yi(d);i[p]=G_(l,o,p,h,t,!1)}else h!==s[d]&&(s[d]=h,c=!0)}}}else{ok(t,e,i,s)&&(c=!0);let u;for(const f in o)(!e||!bt(e,f)&&((u=ga(f))===f||!bt(e,u)))&&(l?n&&(n[f]!==void 0||n[u]!==void 0)&&(i[f]=G_(l,o,f,void 0,t,!0)):delete i[f]);if(s!==o)for(const f in s)(!e||!bt(e,f))&&(delete s[f],c=!0)}c&&Zs(t.attrs,"set","")}function ok(t,e,n,r){const[i,s]=t.propsOptions;let a=!1,o;if(e)for(let l in e){if(Lc(l))continue;const c=e[l];let u;i&&bt(i,u=yi(l))?!s||!s.includes(u)?n[u]=c:(o||(o={}))[u]=c:fg(t.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,a=!0)}if(s){const l=lt(n),c=o||mt;for(let u=0;u<s.length;u++){const f=s[u];n[f]=G_(i,l,f,c[f],t,!bt(c,f))}}return a}function G_(t,e,n,r,i,s){const a=t[n];if(a!=null){const o=bt(a,"default");if(o&&r===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&Be(l)){const{propsDefaults:c}=i;if(n in c)r=c[n];else{const u=Al(i);r=c[n]=l.call(null,e),u()}}else r=l;i.ce&&i.ce._setProp(n,r)}a[0]&&(s&&!o?r=!1:a[1]&&(r===""||r===ga(n))&&(r=!0))}return r}const VU=new WeakMap;function lk(t,e,n=!1){const r=n?VU:e.propsCache,i=r.get(t);if(i)return i;const s=t.props,a={},o=[];let l=!1;if(!Be(t)){const u=f=>{l=!0;const[d,h]=lk(f,e,!0);an(a,d),h&&o.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!s&&!l)return Lt(t)&&r.set(t,Ac),Ac;if(Re(s))for(let u=0;u<s.length;u++){const f=yi(s[u]);Fw(f)&&(a[f]=mt)}else if(s)for(const u in s){const f=yi(u);if(Fw(f)){const d=s[u],h=a[f]=Re(d)||Be(d)?{type:d}:an({},d),p=h.type;let m=!1,g=!0;if(Re(p))for(let _=0;_<p.length;++_){const v=p[_],y=Be(v)&&v.name;if(y==="Boolean"){m=!0;break}else y==="String"&&(g=!1)}else m=Be(p)&&p.name==="Boolean";h[0]=m,h[1]=g,(m||bt(h,"default"))&&o.push(f)}}const c=[a,o];return Lt(t)&&r.set(t,c),c}function Fw(t){return t[0]!=="$"&&!Lc(t)}const ck=t=>t[0]==="_"||t==="$stable",wT=t=>Re(t)?t.map(ci):[ci(t)],qU=(t,e,n)=>{if(e._n)return e;const r=Ds((...i)=>wT(e(...i)),n);return r._c=!1,r},uk=(t,e,n)=>{const r=t._ctx;for(const i in t){if(ck(i))continue;const s=t[i];if(Be(s))e[i]=qU(i,s,r);else if(s!=null){const a=wT(s);e[i]=()=>a}}},fk=(t,e)=>{const n=wT(e);t.slots.default=()=>n},dk=(t,e,n)=>{for(const r in e)(n||r!=="_")&&(t[r]=e[r])},KU=(t,e,n)=>{const r=t.slots=sk();if(t.vnode.shapeFlag&32){const i=e._;i?(dk(r,e,n),n&&oI(r,"_",i,!0)):uk(e,r)}else e&&fk(t,e)},WU=(t,e,n)=>{const{vnode:r,slots:i}=t;let s=!0,a=mt;if(r.shapeFlag&32){const o=e._;o?n&&o===1?s=!1:dk(i,e,n):(s=!e.$stable,uk(e,i)),a=e}else e&&(fk(t,e),a={default:1});if(s)for(const o in i)!ck(o)&&a[o]==null&&delete i[o]},kn=Ek;function zU(t){return hk(t)}function YU(t){return hk(t,bU)}function hk(t,e){const n=ig();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:a,createText:o,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:h=As,insertStaticContent:p}=t,m=(C,D,K,ee=null,B=null,ie=null,fe=void 0,ue=null,se=!!D.dynamicChildren)=>{if(C===D)return;C&&!zi(C,D)&&(ee=N(C),ce(C,B,ie,!0),C=null),D.patchFlag===-2&&(se=!1,D.dynamicChildren=null);const{type:oe,ref:Ee,shapeFlag:he}=D;switch(oe){case ul:g(C,D,K,ee);break;case Dn:_(C,D,K,ee);break;case Rf:C==null&&v(D,K,ee,fe);break;case er:R(C,D,K,ee,B,ie,fe,ue,se);break;default:he&1?b(C,D,K,ee,B,ie,fe,ue,se):he&6?k(C,D,K,ee,B,ie,fe,ue,se):(he&64||he&128)&&oe.process(C,D,K,ee,B,ie,fe,ue,se,V)}Ee!=null&&B&&id(Ee,C&&C.ref,ie,D||C,!D)},g=(C,D,K,ee)=>{if(C==null)r(D.el=o(D.children),K,ee);else{const B=D.el=C.el;D.children!==C.children&&c(B,D.children)}},_=(C,D,K,ee)=>{C==null?r(D.el=l(D.children||""),K,ee):D.el=C.el},v=(C,D,K,ee)=>{[C.el,C.anchor]=p(C.children,D,K,ee,C.el,C.anchor)},y=({el:C,anchor:D},K,ee)=>{let B;for(;C&&C!==D;)B=d(C),r(C,K,ee),C=B;r(D,K,ee)},E=({el:C,anchor:D})=>{let K;for(;C&&C!==D;)K=d(C),i(C),C=K;i(D)},b=(C,D,K,ee,B,ie,fe,ue,se)=>{D.type==="svg"?fe="svg":D.type==="math"&&(fe="mathml"),C==null?T(D,K,ee,B,ie,fe,ue,se):w(C,D,B,ie,fe,ue,se)},T=(C,D,K,ee,B,ie,fe,ue)=>{let se,oe;const{props:Ee,shapeFlag:he,transition:me,dirs:we}=C;if(se=C.el=a(C.type,ie,Ee&&Ee.is,Ee),he&8?u(se,C.children):he&16&&A(C.children,se,null,ee,B,gy(C,ie),fe,ue),we&&ds(C,null,ee,"created"),S(se,C,C.scopeId,fe,ee),Ee){for(const Ne in Ee)Ne!=="value"&&!Lc(Ne)&&s(se,Ne,null,Ee[Ne],ie,ee);"value"in Ee&&s(se,"value",null,Ee.value,ie),(oe=Ee.onVnodeBeforeMount)&&jr(oe,ee,C)}we&&ds(C,null,ee,"beforeMount");const Ae=pk(B,me);Ae&&me.beforeEnter(se),r(se,D,K),((oe=Ee&&Ee.onVnodeMounted)||Ae||we)&&kn(()=>{oe&&jr(oe,ee,C),Ae&&me.enter(se),we&&ds(C,null,ee,"mounted")},B)},S=(C,D,K,ee,B)=>{if(K&&h(C,K),ee)for(let ie=0;ie<ee.length;ie++)h(C,ee[ie]);if(B){let ie=B.subTree;if(D===ie||rm(ie.type)&&(ie.ssContent===D||ie.ssFallback===D)){const fe=B.vnode;S(C,fe,fe.scopeId,fe.slotScopeIds,B.parent)}}},A=(C,D,K,ee,B,ie,fe,ue,se=0)=>{for(let oe=se;oe<C.length;oe++){const Ee=C[oe]=ue?ka(C[oe]):ci(C[oe]);m(null,Ee,D,K,ee,B,ie,fe,ue)}},w=(C,D,K,ee,B,ie,fe)=>{const ue=D.el=C.el;let{patchFlag:se,dynamicChildren:oe,dirs:Ee}=D;se|=C.patchFlag&16;const he=C.props||mt,me=D.props||mt;let we;if(K&&bo(K,!1),(we=me.onVnodeBeforeUpdate)&&jr(we,K,D,C),Ee&&ds(D,C,K,"beforeUpdate"),K&&bo(K,!0),(he.innerHTML&&me.innerHTML==null||he.textContent&&me.textContent==null)&&u(ue,""),oe?x(C.dynamicChildren,oe,ue,K,ee,gy(D,B),ie):fe||O(C,D,ue,null,K,ee,gy(D,B),ie,!1),se>0){if(se&16)L(ue,he,me,K,B);else if(se&2&&he.class!==me.class&&s(ue,"class",null,me.class,B),se&4&&s(ue,"style",he.style,me.style,B),se&8){const Ae=D.dynamicProps;for(let Ne=0;Ne<Ae.length;Ne++){const qe=Ae[Ne],Mt=he[qe],Gt=me[qe];(Gt!==Mt||qe==="value")&&s(ue,qe,Mt,Gt,B,K)}}se&1&&C.children!==D.children&&u(ue,D.children)}else!fe&&oe==null&&L(ue,he,me,K,B);((we=me.onVnodeUpdated)||Ee)&&kn(()=>{we&&jr(we,K,D,C),Ee&&ds(D,C,K,"updated")},ee)},x=(C,D,K,ee,B,ie,fe)=>{for(let ue=0;ue<D.length;ue++){const se=C[ue],oe=D[ue],Ee=se.el&&(se.type===er||!zi(se,oe)||se.shapeFlag&70)?f(se.el):K;m(se,oe,Ee,null,ee,B,ie,fe,!0)}},L=(C,D,K,ee,B)=>{if(D!==K){if(D!==mt)for(const ie in D)!Lc(ie)&&!(ie in K)&&s(C,ie,D[ie],null,B,ee);for(const ie in K){if(Lc(ie))continue;const fe=K[ie],ue=D[ie];fe!==ue&&ie!=="value"&&s(C,ie,ue,fe,B,ee)}"value"in K&&s(C,"value",D.value,K.value,B)}},R=(C,D,K,ee,B,ie,fe,ue,se)=>{const oe=D.el=C?C.el:o(""),Ee=D.anchor=C?C.anchor:o("");let{patchFlag:he,dynamicChildren:me,slotScopeIds:we}=D;we&&(ue=ue?ue.concat(we):we),C==null?(r(oe,K,ee),r(Ee,K,ee),A(D.children||[],K,Ee,B,ie,fe,ue,se)):he>0&&he&64&&me&&C.dynamicChildren?(x(C.dynamicChildren,me,K,B,ie,fe,ue),(D.key!=null||B&&D===B.subTree)&&xT(C,D,!0)):O(C,D,K,Ee,B,ie,fe,ue,se)},k=(C,D,K,ee,B,ie,fe,ue,se)=>{D.slotScopeIds=ue,C==null?D.shapeFlag&512?B.ctx.activate(D,K,ee,fe,se):F(D,K,ee,B,ie,fe,se):U(C,D,se)},F=(C,D,K,ee,B,ie,fe)=>{const ue=C.component=m2(C,ee,B);if(Nd(C)&&(ue.ctx.renderer=V),g2(ue,!1,fe),ue.asyncDep){if(B&&B.registerDep(ue,H,fe),!C.el){const se=ue.subTree=Je(Dn);_(null,se,D,K)}}else H(ue,C,D,K,B,ie,fe)},U=(C,D,K)=>{const ee=D.component=C.component;if(s2(C,D,K))if(ee.asyncDep&&!ee.asyncResolved){M(ee,D,K);return}else ee.next=D,ee.update();else D.el=C.el,ee.vnode=D},H=(C,D,K,ee,B,ie,fe)=>{const ue=()=>{if(C.isMounted){let{next:he,bu:me,u:we,parent:Ae,vnode:Ne}=C;{const Zt=mk(C);if(Zt){he&&(he.el=Ne.el,M(C,he,fe)),Zt.asyncDep.then(()=>{C.isUnmounted||ue()});return}}let qe=he,Mt;bo(C,!1),he?(he.el=Ne.el,M(C,he,fe)):he=Ne,me&&Cc(me),(Mt=he.props&&he.props.onVnodeBeforeUpdate)&&jr(Mt,Ae,he,Ne),bo(C,!0);const Gt=yy(C),ut=C.subTree;C.subTree=Gt,m(ut,Gt,f(ut.el),N(ut),C,B,ie),he.el=Gt.el,qe===null&&dg(C,Gt.el),we&&kn(we,B),(Mt=he.props&&he.props.onVnodeUpdated)&&kn(()=>jr(Mt,Ae,he,Ne),B)}else{let he;const{el:me,props:we}=D,{bm:Ae,m:Ne,parent:qe,root:Mt,type:Gt}=C,ut=Ka(D);if(bo(C,!1),Ae&&Cc(Ae),!ut&&(he=we&&we.onVnodeBeforeMount)&&jr(he,qe,D),bo(C,!0),me&&Y){const Zt=()=>{C.subTree=yy(C),Y(me,C.subTree,C,B,null)};ut&&Gt.__asyncHydrate?Gt.__asyncHydrate(me,C,Zt):Zt()}else{Mt.ce&&Mt.ce._injectChildStyle(Gt);const Zt=C.subTree=yy(C);m(null,Zt,K,ee,C,B,ie),D.el=Zt.el}if(Ne&&kn(Ne,B),!ut&&(he=we&&we.onVnodeMounted)){const Zt=D;kn(()=>jr(he,qe,Zt),B)}(D.shapeFlag&256||qe&&Ka(qe.vnode)&&qe.vnode.shapeFlag&256)&&C.a&&kn(C.a,B),C.isMounted=!0,D=K=ee=null}};C.scope.on();const se=C.effect=new pI(ue);C.scope.off();const oe=C.update=se.run.bind(se),Ee=C.job=se.runIfDirty.bind(se);Ee.i=C,Ee.id=C.uid,se.scheduler=()=>ET(Ee),bo(C,!0),oe()},M=(C,D,K)=>{D.component=C;const ee=C.vnode.props;C.vnode=D,C.next=null,jU(C,D.props,ee,K),WU(C,D.children,K),ho(),ww(C),po()},O=(C,D,K,ee,B,ie,fe,ue,se=!1)=>{const oe=C&&C.children,Ee=C?C.shapeFlag:0,he=D.children,{patchFlag:me,shapeFlag:we}=D;if(me>0){if(me&128){P(oe,he,K,ee,B,ie,fe,ue,se);return}else if(me&256){q(oe,he,K,ee,B,ie,fe,ue,se);return}}we&8?(Ee&16&&G(oe,B,ie),he!==oe&&u(K,he)):Ee&16?we&16?P(oe,he,K,ee,B,ie,fe,ue,se):G(oe,B,ie,!0):(Ee&8&&u(K,""),we&16&&A(he,K,ee,B,ie,fe,ue,se))},q=(C,D,K,ee,B,ie,fe,ue,se)=>{C=C||Ac,D=D||Ac;const oe=C.length,Ee=D.length,he=Math.min(oe,Ee);let me;for(me=0;me<he;me++){const we=D[me]=se?ka(D[me]):ci(D[me]);m(C[me],we,K,null,B,ie,fe,ue,se)}oe>Ee?G(C,B,ie,!0,!1,he):A(D,K,ee,B,ie,fe,ue,se,he)},P=(C,D,K,ee,B,ie,fe,ue,se)=>{let oe=0;const Ee=D.length;let he=C.length-1,me=Ee-1;for(;oe<=he&&oe<=me;){const we=C[oe],Ae=D[oe]=se?ka(D[oe]):ci(D[oe]);if(zi(we,Ae))m(we,Ae,K,null,B,ie,fe,ue,se);else break;oe++}for(;oe<=he&&oe<=me;){const we=C[he],Ae=D[me]=se?ka(D[me]):ci(D[me]);if(zi(we,Ae))m(we,Ae,K,null,B,ie,fe,ue,se);else break;he--,me--}if(oe>he){if(oe<=me){const we=me+1,Ae=we<Ee?D[we].el:ee;for(;oe<=me;)m(null,D[oe]=se?ka(D[oe]):ci(D[oe]),K,Ae,B,ie,fe,ue,se),oe++}}else if(oe>me)for(;oe<=he;)ce(C[oe],B,ie,!0),oe++;else{const we=oe,Ae=oe,Ne=new Map;for(oe=Ae;oe<=me;oe++){const Z=D[oe]=se?ka(D[oe]):ci(D[oe]);Z.key!=null&&Ne.set(Z.key,oe)}let qe,Mt=0;const Gt=me-Ae+1;let ut=!1,Zt=0;const on=new Array(Gt);for(oe=0;oe<Gt;oe++)on[oe]=0;for(oe=we;oe<=he;oe++){const Z=C[oe];if(Mt>=Gt){ce(Z,B,ie,!0);continue}let Oe;if(Z.key!=null)Oe=Ne.get(Z.key);else for(qe=Ae;qe<=me;qe++)if(on[qe-Ae]===0&&zi(Z,D[qe])){Oe=qe;break}Oe===void 0?ce(Z,B,ie,!0):(on[Oe-Ae]=oe+1,Oe>=Zt?Zt=Oe:ut=!0,m(Z,D[Oe],K,null,B,ie,fe,ue,se),Mt++)}const Q=ut?XU(on):Ac;for(qe=Q.length-1,oe=Gt-1;oe>=0;oe--){const Z=Ae+oe,Oe=D[Z],st=Z+1<Ee?D[Z+1].el:ee;on[oe]===0?m(null,Oe,K,st,B,ie,fe,ue,se):ut&&(qe<0||oe!==Q[qe]?ae(Oe,K,st,2):qe--)}}},ae=(C,D,K,ee,B=null)=>{const{el:ie,type:fe,transition:ue,children:se,shapeFlag:oe}=C;if(oe&6){ae(C.component.subTree,D,K,ee);return}if(oe&128){C.suspense.move(D,K,ee);return}if(oe&64){fe.move(C,D,K,V);return}if(fe===er){r(ie,D,K);for(let he=0;he<se.length;he++)ae(se[he],D,K,ee);r(C.anchor,D,K);return}if(fe===Rf){y(C,D,K);return}if(ee!==2&&oe&1&&ue)if(ee===0)ue.beforeEnter(ie),r(ie,D,K),kn(()=>ue.enter(ie),B);else{const{leave:he,delayLeave:me,afterLeave:we}=ue,Ae=()=>r(ie,D,K),Ne=()=>{he(ie,()=>{Ae(),we&&we()})};me?me(ie,Ae,Ne):Ne()}else r(ie,D,K)},ce=(C,D,K,ee=!1,B=!1)=>{const{type:ie,props:fe,ref:ue,children:se,dynamicChildren:oe,shapeFlag:Ee,patchFlag:he,dirs:me,cacheIndex:we}=C;if(he===-2&&(B=!1),ue!=null&&id(ue,null,K,C,!0),we!=null&&(D.renderCache[we]=void 0),Ee&256){D.ctx.deactivate(C);return}const Ae=Ee&1&&me,Ne=!Ka(C);let qe;if(Ne&&(qe=fe&&fe.onVnodeBeforeUnmount)&&jr(qe,D,C),Ee&6)z(C.component,K,ee);else{if(Ee&128){C.suspense.unmount(K,ee);return}Ae&&ds(C,null,D,"beforeUnmount"),Ee&64?C.type.remove(C,D,K,V,ee):oe&&!oe.hasOnce&&(ie!==er||he>0&&he&64)?G(oe,D,K,!1,!0):(ie===er&&he&384||!B&&Ee&16)&&G(se,D,K),ee&&ye(C)}(Ne&&(qe=fe&&fe.onVnodeUnmounted)||Ae)&&kn(()=>{qe&&jr(qe,D,C),Ae&&ds(C,null,D,"unmounted")},K)},ye=C=>{const{type:D,el:K,anchor:ee,transition:B}=C;if(D===er){ve(K,ee);return}if(D===Rf){E(C);return}const ie=()=>{i(K),B&&!B.persisted&&B.afterLeave&&B.afterLeave()};if(C.shapeFlag&1&&B&&!B.persisted){const{leave:fe,delayLeave:ue}=B,se=()=>fe(K,ie);ue?ue(C.el,ie,se):se()}else ie()},ve=(C,D)=>{let K;for(;C!==D;)K=d(C),i(C),C=K;i(D)},z=(C,D,K)=>{const{bum:ee,scope:B,job:ie,subTree:fe,um:ue,m:se,a:oe}=C;nm(se),nm(oe),ee&&Cc(ee),B.stop(),ie&&(ie.flags|=8,ce(fe,C,D,K)),ue&&kn(ue,D),kn(()=>{C.isUnmounted=!0},D),D&&D.pendingBranch&&!D.isUnmounted&&C.asyncDep&&!C.asyncResolved&&C.suspenseId===D.pendingId&&(D.deps--,D.deps===0&&D.resolve())},G=(C,D,K,ee=!1,B=!1,ie=0)=>{for(let fe=ie;fe<C.length;fe++)ce(C[fe],D,K,ee,B)},N=C=>{if(C.shapeFlag&6)return N(C.component.subTree);if(C.shapeFlag&128)return C.suspense.next();const D=d(C.anchor||C.el),K=D&&D[NI];return K?d(K):D};let $=!1;const j=(C,D,K)=>{C==null?D._vnode&&ce(D._vnode,null,null,!0):m(D._vnode||null,C,D,null,null,null,K),D._vnode=C,$||($=!0,ww(),Qp(),$=!1)},V={p:m,um:ce,m:ae,r:ye,mt:F,mc:A,pc:O,pbc:x,n:N,o:t};let W,Y;return e&&([W,Y]=e(V)),{render:j,hydrate:W,createApp:HU(j,W)}}function gy({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function bo({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function pk(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function xT(t,e,n=!1){const r=t.children,i=e.children;if(Re(r)&&Re(i))for(let s=0;s<r.length;s++){const a=r[s];let o=i[s];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[s]=ka(i[s]),o.el=a.el),!n&&o.patchFlag!==-2&&xT(a,o)),o.type===ul&&(o.el=a.el)}}function XU(t){const e=t.slice(),n=[0];let r,i,s,a,o;const l=t.length;for(r=0;r<l;r++){const c=t[r];if(c!==0){if(i=n[n.length-1],t[i]<c){e[r]=i,n.push(r);continue}for(s=0,a=n.length-1;s<a;)o=s+a>>1,t[n[o]]<c?s=o+1:a=o;c<t[n[s]]&&(s>0&&(e[r]=n[s-1]),n[s]=r)}}for(s=n.length,a=n[s-1];s-- >0;)n[s]=a,a=e[a];return n}function mk(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:mk(e)}function nm(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const JU=Symbol.for("v-scx"),QU=()=>sr(JU);function cg(t,e){return ug(t,null,e)}function ZU(t,e){return ug(t,null,{flush:"sync"})}function ar(t,e,n){return ug(t,e,n)}function ug(t,e,n=mt){const{immediate:r,deep:i,flush:s,once:a}=n,o=an({},n),l=e&&r||!e&&s!=="post";let c;if(Wc){if(s==="sync"){const h=QU();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=As,h.resume=As,h.pause=As,h}}const u=On;o.call=(h,p,m)=>Qi(h,u,p,m);let f=!1;s==="post"?o.scheduler=h=>{kn(h,u&&u.suspense)}:s!=="sync"&&(f=!0,o.scheduler=(h,p)=>{p?h():ET(h)}),o.augmentJob=h=>{e&&(h.flags|=4),f&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const d=fU(t,e,o);return Wc&&(c?c.push(d):l&&d()),d}function e2(t,e,n){const r=this.proxy,i=Ht(t)?t.includes(".")?gk(r,t):()=>r[t]:t.bind(r,r);let s;Be(e)?s=e:(s=e.handler,n=e);const a=Al(this),o=ug(i,s.bind(r),n);return a(),o}function gk(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function Aoe(t,e,n=mt){const r=_a(),i=yi(e),s=ga(e),a=yk(t,i),o=iU((l,c)=>{let u,f=mt,d;return ZU(()=>{const h=t[i];qr(u,h)&&(u=h,c())}),{get(){return l(),n.get?n.get(u):u},set(h){const p=n.set?n.set(h):h;if(!qr(p,u)&&!(f!==mt&&qr(h,f)))return;const m=r.vnode.props;m&&(e in m||i in m||s in m)&&(`onUpdate:${e}`in m||`onUpdate:${i}`in m||`onUpdate:${s}`in m)||(u=h,c()),r.emit(`update:${e}`,p),qr(h,p)&&qr(h,f)&&!qr(p,d)&&c(),f=h,d=p}}});return o[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?a||mt:o,done:!1}:{done:!0}}}},o}const yk=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${yi(e)}Modifiers`]||t[`${ga(e)}Modifiers`];function t2(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||mt;let i=n;const s=e.startsWith("update:"),a=s&&yk(r,e.slice(7));a&&(a.trim&&(i=n.map(u=>Ht(u)?u.trim():u)),a.number&&(i=n.map(zp)));let o,l=r[o=oy(e)]||r[o=oy(yi(e))];!l&&s&&(l=r[o=oy(ga(e))]),l&&Qi(l,t,6,i);const c=r[o+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[o])return;t.emitted[o]=!0,Qi(c,t,6,i)}}function vk(t,e,n=!1){const r=e.emitsCache,i=r.get(t);if(i!==void 0)return i;const s=t.emits;let a={},o=!1;if(!Be(t)){const l=c=>{const u=vk(c,e,!0);u&&(o=!0,an(a,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!s&&!o?(Lt(t)&&r.set(t,null),null):(Re(s)?s.forEach(l=>a[l]=null):an(a,s),Lt(t)&&r.set(t,a),a)}function fg(t,e){return!t||!Dd(e)?!1:(e=e.slice(2).replace(/Once$/,""),bt(t,e[0].toLowerCase()+e.slice(1))||bt(t,ga(e))||bt(t,e))}function yy(t){const{type:e,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:a,attrs:o,emit:l,render:c,renderCache:u,props:f,data:d,setupState:h,ctx:p,inheritAttrs:m}=t,g=Zp(t);let _,v;try{if(n.shapeFlag&4){const E=i||r,b=E;_=ci(c.call(b,E,u,f,h,d,p)),v=o}else{const E=e;_=ci(E.length>1?E(f,{attrs:o,slots:a,emit:l}):E(f,null)),v=e.props?o:r2(o)}}catch(E){Lf.length=0,_u(E,t,1),_=Je(Dn)}let y=_;if(v&&m!==!1){const E=Object.keys(v),{shapeFlag:b}=y;E.length&&b&7&&(s&&E.some(sT)&&(v=i2(v,s)),y=ua(y,v,!1,!0))}return n.dirs&&(y=ua(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&Vc(y,n.transition),_=y,Zp(g),_}function n2(t,e=!0){let n;for(let r=0;r<t.length;r++){const i=t[r];if(xl(i)){if(i.type!==Dn||i.children==="v-if"){if(n)return;n=i}}else return}return n}const r2=t=>{let e;for(const n in t)(n==="class"||n==="style"||Dd(n))&&((e||(e={}))[n]=t[n]);return e},i2=(t,e)=>{const n={};for(const r in t)(!sT(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function s2(t,e,n){const{props:r,children:i,component:s}=t,{props:a,children:o,patchFlag:l}=e,c=s.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?$w(r,a,c):!!a;if(l&8){const u=e.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(a[d]!==r[d]&&!fg(c,d))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===a?!1:r?a?$w(r,a,c):!0:!!a;return!1}function $w(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const s=r[i];if(e[s]!==t[s]&&!fg(n,s))return!0}return!1}function dg({vnode:t,parent:e},n){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.el=t.el),r===t)(t=e.vnode).el=n,e=e.parent;else break}}const rm=t=>t.__isSuspense;let j_=0;const a2={name:"Suspense",__isSuspense:!0,process(t,e,n,r,i,s,a,o,l,c){if(t==null)o2(e,n,r,i,s,a,o,l,c);else{if(s&&s.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}l2(t,e,n,r,i,a,o,l,c)}},hydrate:c2,normalize:u2},AT=a2;function sd(t,e){const n=t.props&&t.props[e];Be(n)&&n()}function o2(t,e,n,r,i,s,a,o,l){const{p:c,o:{createElement:u}}=l,f=u("div"),d=t.suspense=_k(t,i,r,e,f,n,s,a,o,l);c(null,d.pendingBranch=t.ssContent,f,null,r,d,s,a),d.deps>0?(sd(t,"onPending"),sd(t,"onFallback"),c(null,t.ssFallback,e,n,r,null,s,a),kc(d,t.ssFallback)):d.resolve(!1,!0)}function l2(t,e,n,r,i,s,a,o,{p:l,um:c,o:{createElement:u}}){const f=e.suspense=t.suspense;f.vnode=e,e.el=t.el;const d=e.ssContent,h=e.ssFallback,{activeBranch:p,pendingBranch:m,isInFallback:g,isHydrating:_}=f;if(m)f.pendingBranch=d,zi(d,m)?(l(m,d,f.hiddenContainer,null,i,f,s,a,o),f.deps<=0?f.resolve():g&&(_||(l(p,h,n,r,i,null,s,a,o),kc(f,h)))):(f.pendingId=j_++,_?(f.isHydrating=!1,f.activeBranch=m):c(m,i,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),g?(l(null,d,f.hiddenContainer,null,i,f,s,a,o),f.deps<=0?f.resolve():(l(p,h,n,r,i,null,s,a,o),kc(f,h))):p&&zi(d,p)?(l(p,d,n,r,i,f,s,a,o),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,i,f,s,a,o),f.deps<=0&&f.resolve()));else if(p&&zi(d,p))l(p,d,n,r,i,f,s,a,o),kc(f,d);else if(sd(e,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=j_++,l(null,d,f.hiddenContainer,null,i,f,s,a,o),f.deps<=0)f.resolve();else{const{timeout:v,pendingId:y}=f;v>0?setTimeout(()=>{f.pendingId===y&&f.fallback(h)},v):v===0&&f.fallback(h)}}function _k(t,e,n,r,i,s,a,o,l,c,u=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:m,remove:g}}=c;let _;const v=f2(t);v&&e&&e.pendingBranch&&(_=e.pendingId,e.deps++);const y=t.props?lI(t.props.timeout):void 0,E=s,b={vnode:t,parent:e,parentComponent:n,namespace:a,container:r,hiddenContainer:i,deps:0,pendingId:j_++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(T=!1,S=!1){const{vnode:A,activeBranch:w,pendingBranch:x,pendingId:L,effects:R,parentComponent:k,container:F}=b;let U=!1;b.isHydrating?b.isHydrating=!1:T||(U=w&&x.transition&&x.transition.mode==="out-in",U&&(w.transition.afterLeave=()=>{L===b.pendingId&&(d(x,F,s===E?p(w):s,0),N_(R))}),w&&(m(w.el)===F&&(s=p(w)),h(w,k,b,!0)),U||d(x,F,s,0)),kc(b,x),b.pendingBranch=null,b.isInFallback=!1;let H=b.parent,M=!1;for(;H;){if(H.pendingBranch){H.effects.push(...R),M=!0;break}H=H.parent}!M&&!U&&N_(R),b.effects=[],v&&e&&e.pendingBranch&&_===e.pendingId&&(e.deps--,e.deps===0&&!S&&e.resolve()),sd(A,"onResolve")},fallback(T){if(!b.pendingBranch)return;const{vnode:S,activeBranch:A,parentComponent:w,container:x,namespace:L}=b;sd(S,"onFallback");const R=p(A),k=()=>{b.isInFallback&&(f(null,T,x,R,w,null,L,o,l),kc(b,T))},F=T.transition&&T.transition.mode==="out-in";F&&(A.transition.afterLeave=k),b.isInFallback=!0,h(A,w,null,!0),F||k()},move(T,S,A){b.activeBranch&&d(b.activeBranch,T,S,A),b.container=T},next(){return b.activeBranch&&p(b.activeBranch)},registerDep(T,S,A){const w=!!b.pendingBranch;w&&b.deps++;const x=T.vnode.el;T.asyncDep.catch(L=>{_u(L,T,0)}).then(L=>{if(T.isUnmounted||b.isUnmounted||b.pendingId!==T.suspenseId)return;T.asyncResolved=!0;const{vnode:R}=T;K_(T,L,!1),x&&(R.el=x);const k=!x&&T.subTree.el;S(T,R,m(x||T.subTree.el),x?null:p(T.subTree),b,a,A),k&&g(k),dg(T,R.el),w&&--b.deps===0&&b.resolve()})},unmount(T,S){b.isUnmounted=!0,b.activeBranch&&h(b.activeBranch,n,T,S),b.pendingBranch&&h(b.pendingBranch,n,T,S)}};return b}function c2(t,e,n,r,i,s,a,o,l){const c=e.suspense=_k(e,r,n,t.parentNode,document.createElement("div"),null,i,s,a,o,!0),u=l(t,c.pendingBranch=e.ssContent,n,c,s,a);return c.deps===0&&c.resolve(!1,!0),u}function u2(t){const{shapeFlag:e,children:n}=t,r=e&32;t.ssContent=Bw(r?n.default:n),t.ssFallback=r?Bw(n.fallback):Je(Dn)}function Bw(t){let e;if(Be(t)){const n=qc&&t._c;n&&(t._d=!1,ze()),t=t(),n&&(t._d=!0,e=Wr,bk())}return Re(t)&&(t=n2(t)),t=ci(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function Ek(t,e){e&&e.pendingBranch?Re(t)?e.effects.push(...t):e.effects.push(t):N_(t)}function kc(t,e){t.activeBranch=e;const{vnode:n,parentComponent:r}=t;let i=e.el;for(;!i&&e.component;)e=e.component.subTree,i=e.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,dg(r,i))}function f2(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const er=Symbol.for("v-fgt"),ul=Symbol.for("v-txt"),Dn=Symbol.for("v-cmt"),Rf=Symbol.for("v-stc"),Lf=[];let Wr=null;function ze(t=!1){Lf.push(Wr=t?null:[])}function bk(){Lf.pop(),Wr=Lf[Lf.length-1]||null}let qc=1;function Uw(t,e=!1){qc+=t,t<0&&Wr&&e&&(Wr.hasOnce=!0)}function Tk(t){return t.dynamicChildren=qc>0?Wr||Ac:null,bk(),qc>0&&Wr&&Wr.push(t),t}function vn(t,e,n,r,i,s){return Tk(Un(t,e,n,r,i,s,!0))}function Xt(t,e,n,r,i){return Tk(Je(t,e,n,r,i,!0))}function xl(t){return t?t.__v_isVNode===!0:!1}function zi(t,e){return t.type===e.type&&t.key===e.key}const Sk=({key:t})=>t??null,Jh=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Ht(t)||Wt(t)||Be(t)?{i:Mn,r:t,k:e,f:!!n}:t:null);function Un(t,e=null,n=null,r=0,i=null,s=t===er?0:1,a=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Sk(e),ref:e&&Jh(e),scopeId:MI,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Mn};return o?(LT(l,n),s&128&&t.normalize(l)):n&&(l.shapeFlag|=Ht(n)?8:16),qc>0&&!a&&Wr&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Wr.push(l),l}const Je=d2;function d2(t,e=null,n=null,r=0,i=null,s=!1){if((!t||t===QI)&&(t=Dn),xl(t)){const o=ua(t,e,!0);return n&<(o,n),qc>0&&!s&&Wr&&(o.shapeFlag&6?Wr[Wr.indexOf(t)]=o:Wr.push(o)),o.patchFlag=-2,o}if(_2(t)&&(t=t.__vccOpts),e){e=RT(e);let{class:o,style:l}=e;o&&!Ht(o)&&(e.class=fo(o)),Lt(l)&&(yT(l)&&!Re(l)&&(l=an({},l)),e.style=uo(l))}const a=Ht(t)?1:rm(t)?128:FI(t)?64:Lt(t)?4:Be(t)?2:0;return Un(t,e,n,r,i,a,s,!0)}function RT(t){return t?yT(t)||ak(t)?an({},t):t:null}function ua(t,e,n=!1,r=!1){const{props:i,ref:s,patchFlag:a,children:o,transition:l}=t,c=e?Wa(i||{},e):i,u={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&Sk(c),ref:e&&e.ref?n&&s?Re(s)?s.concat(Jh(e)):[s,Jh(e)]:Jh(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==er?a===-1?16:a|16:a,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ua(t.ssContent),ssFallback:t.ssFallback&&ua(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&Vc(u,l.clone(u)),u}function Kc(t=" ",e=0){return Je(ul,null,t,e)}function Roe(t,e){const n=Je(Rf,null,t);return n.staticCount=e,n}function Zn(t="",e=!1){return e?(ze(),Xt(Dn,null,t)):Je(Dn,null,t)}function ci(t){return t==null||typeof t=="boolean"?Je(Dn):Re(t)?Je(er,null,t.slice()):xl(t)?ka(t):Je(ul,null,String(t))}function ka(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:ua(t)}function LT(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(Re(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),LT(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!ak(e)?e._ctx=Mn:i===3&&Mn&&(Mn.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Be(e)?(e={default:e,_ctx:Mn},n=32):(e=String(e),r&64?(n=16,e=[Kc(e)]):n=8);t.children=e,t.shapeFlag|=n}function Wa(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const i in r)if(i==="class")e.class!==r.class&&(e.class=fo([e.class,r.class]));else if(i==="style")e.style=uo([e.style,r.style]);else if(Dd(i)){const s=e[i],a=r[i];a&&s!==a&&!(Re(s)&&s.includes(a))&&(e[i]=s?[].concat(s,a):a)}else i!==""&&(e[i]=r[i])}return e}function jr(t,e,n,r=null){Qi(t,e,7,[n,r])}const h2=rk();let p2=0;function m2(t,e,n){const r=t.type,i=(e?e.appContext:t.appContext)||h2,s={uid:p2++,vnode:t,type:r,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new hI(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:lk(r,i),emitsOptions:vk(r,i),emit:null,emitted:null,propsDefaults:mt,inheritAttrs:r.inheritAttrs,ctx:mt,data:mt,props:mt,attrs:mt,slots:mt,refs:mt,setupState:mt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=e?e.root:s,s.emit=t2.bind(null,s),t.ce&&t.ce(s),s}let On=null;const _a=()=>On||Mn;let im,V_;{const t=ig(),e=(n,r)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(r),s=>{i.length>1?i.forEach(a=>a(s)):i[0](s)}};im=e("__VUE_INSTANCE_SETTERS__",n=>On=n),V_=e("__VUE_SSR_SETTERS__",n=>Wc=n)}const Al=t=>{const e=On;return im(t),t.scope.on(),()=>{t.scope.off(),im(e)}},q_=()=>{On&&On.scope.off(),im(null)};function wk(t){return t.vnode.shapeFlag&4}let Wc=!1;function g2(t,e=!1,n=!1){e&&V_(e);const{props:r,children:i}=t.vnode,s=wk(t);GU(t,r,s,e),KU(t,i,n);const a=s?y2(t,e):void 0;return e&&V_(!1),a}function y2(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,PU);const{setup:r}=n;if(r){ho();const i=t.setupContext=r.length>1?Ak(t):null,s=Al(t),a=Md(r,t,0,[t.props,i]),o=oT(a);if(po(),s(),(o||t.sp)&&!Ka(t)&&bT(t),o){if(a.then(q_,q_),e)return a.then(l=>{K_(t,l,e)}).catch(l=>{_u(l,t,0)});t.asyncDep=a}else K_(t,a,e)}else xk(t,e)}function K_(t,e,n){Be(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Lt(e)&&(t.setupState=II(e)),xk(t,n)}let Hw;function xk(t,e,n){const r=t.type;if(!t.render){if(!e&&Hw&&!r.render){const i=r.template||TT(t).template;if(i){const{isCustomElement:s,compilerOptions:a}=t.appContext.config,{delimiters:o,compilerOptions:l}=r,c=an(an({isCustomElement:s,delimiters:o},a),l);r.render=Hw(i,c)}}t.render=r.render||As}{const i=Al(t);ho();try{MU(t)}finally{po(),i()}}}const v2={get(t,e){return mr(t,"get",""),t[e]}};function Ak(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,v2),slots:t.slots,emit:t.emit,expose:e}}function hg(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(II(vT(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Af)return Af[n](t)},has(e,n){return n in e||n in Af}})):t.proxy}function W_(t,e=!0){return Be(t)?t.displayName||t.name:t.name||e&&t.__name}function _2(t){return Be(t)&&"__vccOpts"in t}const $e=(t,e)=>cU(t,e,Wc);function Ke(t,e,n){const r=arguments.length;return r===2?Lt(e)&&!Re(e)?xl(e)?Je(t,null,[e]):Je(t,e):Je(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&xl(n)&&(n=[n]),Je(t,e,n))}const Rk="3.5.13";/** 16* @vue/runtime-dom v3.5.13 17* (c) 2018-present Yuxi (Evan) You and Vue contributors 18* @license MIT
19**/let z_;const Gw=typeof window<"u"&&window.trustedTypes;if(Gw)try{z_=Gw.createPolicy("vue",{createHTML:t=>t})}catch{}const Lk=z_?t=>z_.createHTML(t):t=>t,E2="http://www.w3.org/2000/svg",b2="http://www.w3.org/1998/Math/MathML",qs=typeof document<"u"?document:null,jw=qs&&qs.createElement("template"),T2={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e==="svg"?qs.createElementNS(E2,t):e==="mathml"?qs.createElementNS(b2,t):n?qs.createElement(t,{is:n}):qs.createElement(t);return t==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:t=>qs.createTextNode(t),createComment:t=>qs.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>qs.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,i,s){const a=n?n.previousSibling:e.lastChild;if(i&&(i===s||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{jw.innerHTML=Lk(r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t);const o=jw.content;if(r==="svg"||r==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}e.insertBefore(o,n)}return[a?a.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Ta="transition",Gu="animation",ad=Symbol("_vtc"),Ck={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},S2=an({},UI,Ck),w2=t=>(t.displayName="Transition",t.props=S2,t),pg=w2((t,{slots:e})=>Ke(vU,x2(t),e)),To=(t,e=[])=>{Re(t)?t.forEach(n=>n(...e)):t&&t(...e)},Vw=t=>t?Re(t)?t.some(e=>e.length>1):t.length>1:!1;function x2(t){const e={};for(const R in t)R in Ck||(e[R]=t[R]);if(t.css===!1)return e;const{name:n="v",type:r,duration:i,enterFromClass:s=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=a,appearToClass:u=o,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,p=A2(i),m=p&&p[0],g=p&&p[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:E,onLeaveCancelled:b,onBeforeAppear:T=_,onAppear:S=v,onAppearCancelled:A=y}=e,w=(R,k,F,U)=>{R._enterCancelled=U,So(R,k?u:o),So(R,k?c:a),F&&F()},x=(R,k)=>{R._isLeaving=!1,So(R,f),So(R,h),So(R,d),k&&k()},L=R=>(k,F)=>{const U=R?S:v,H=()=>w(k,R,F);To(U,[k,H]),qw(()=>{So(k,R?l:s),Us(k,R?u:o),Vw(U)||Kw(k,r,m,H)})};return an(e,{onBeforeEnter(R){To(_,[R]),Us(R,s),Us(R,a)},onBeforeAppear(R){To(T,[R]),Us(R,l),Us(R,c)},onEnter:L(!1),onAppear:L(!0),onLeave(R,k){R._isLeaving=!0;const F=()=>x(R,k);Us(R,f),R._enterCancelled?(Us(R,d),Yw()):(Yw(),Us(R,d)),qw(()=>{R._isLeaving&&(So(R,f),Us(R,h),Vw(E)||Kw(R,r,g,F))}),To(E,[R,F])},onEnterCancelled(R){w(R,!1,void 0,!0),To(y,[R])},onAppearCancelled(R){w(R,!0,void 0,!0),To(A,[R])},onLeaveCancelled(R){x(R),To(b,[R])}})}function A2(t){if(t==null)return null;if(Lt(t))return[vy(t.enter),vy(t.leave)];{const e=vy(t);return[e,e]}}function vy(t){return lI(t)}function Us(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[ad]||(t[ad]=new Set)).add(e)}function So(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[ad];n&&(n.delete(e),n.size||(t[ad]=void 0))}function qw(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let R2=0;function Kw(t,e,n,r){const i=t._endId=++R2,s=()=>{i===t._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:a,timeout:o,propCount:l}=L2(t,e);if(!a)return r();const c=a+"end";let u=0;const f=()=>{t.removeEventListener(c,d),s()},d=h=>{h.target===t&&++u>=l&&f()};setTimeout(()=>{u<l&&f()},o+1),t.addEventListener(c,d)}function L2(t,e){const n=window.getComputedStyle(t),r=p=>(n[p]||"").split(", "),i=r(`${Ta}Delay`),s=r(`${Ta}Duration`),a=Ww(i,s),o=r(`${Gu}Delay`),l=r(`${Gu}Duration`),c=Ww(o,l);let u=null,f=0,d=0;e===Ta?a>0&&(u=Ta,f=a,d=s.length):e===Gu?c>0&&(u=Gu,f=c,d=l.length):(f=Math.max(a,c),u=f>0?a>
vendor: 6,619 bytes, line 19
19c?Ta:Gu:null,d=u?u===Ta?s.length:l.length:0);const h=u===Ta&&/\b(transform|all)(,|$)/.test(r(`${Ta}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:h}}function Ww(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>zw(n)+zw(t[r])))}function zw(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Yw(){return document.body.offsetHeight}function C2(t,e,n){const r=t[ad];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const sm=Symbol("_vod"),Ik=Symbol("_vsh"),Sa={beforeMount(t,{value:e},{transition:n}){t[sm]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):ju(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),ju(t,!0),r.enter(t)):r.leave(t,()=>{ju(t,!1)}):ju(t,e))},beforeUnmount(t,{value:e}){ju(t,e)}};function ju(t,e){t.style.display=e?t[sm]:"none",t[Ik]=!e}const I2=Symbol(""),k2=/(^|;)\s*display\s*:/;function P2(t,e,n){const r=t.style,i=Ht(n);let s=!1;if(n&&!i){if(e)if(Ht(e))for(const a of e.split(";")){const o=a.slice(0,a.indexOf(":")).trim();n[o]==null&&Qh(r,o,"")}else for(const a in e)n[a]==null&&Qh(r,a,"");for(const a in n)a==="display"&&(s=!0),Qh(r,a,n[a])}else if(i){if(e!==n){const a=r[I2];a&&(n+=";"+a),r.cssText=n,s=k2.test(n)}}else e&&t.removeAttribute("style");sm in t&&(t[sm]=s?r.display:"",t[Ik]&&(r.display="none"))}const Xw=/\s*!important$/;function Qh(t,e,n){if(Re(n))n.forEach(r=>Qh(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=D2(t,e);Xw.test(n)?t.setProperty(ga(r),n.replace(Xw,""),"important"):t[r]=n}}const Jw=["Webkit","Moz","ms"],_y={};function D2(t,e){const n=_y[e];if(n)return n;let r=yi(e);if(r!=="filter"&&r in t)return _y[e]=r;r=rg(r);for(let i=0;i<Jw.length;i++){const s=Jw[i]+r;if(s in t)return _y[e]=s}return e}const Qw="http://www.w3.org/1999/xlink";function Zw(t,e,n,r,i,s=PB(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(Qw,e.slice(6,e.length)):t.setAttributeNS(Qw,e,n):n==null||s&&!uI(n)?t.removeAttribute(e):t.setAttribute(e,s?"":Ji(n)?String(n):n)}function ex(t,e,n,r,i){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?Lk(n):n);return}const s=t.tagName;if(e==="value"&&s!=="PROGRESS"&&!s.includes("-")){const o=s==="OPTION"?t.getAttribute("value")||"":t.value,l=n==null?t.type==="checkbox"?"on":"":String(n);(o!==l||!("_value"in t))&&(t.value=l),n==null&&t.removeAttribute(e),t._value=n;return}let a=!1;if(n===""||n==null){const o=typeof t[e];o==="boolean"?n=uI(n):n==null&&o==="string"?(n="",a=!0):o==="number"&&(n=0,a=!0)}try{t[e]=n}catch{}a&&t.removeAttribute(i||e)}function Na(t,e,n,r){t.addEventListener(e,n,r)}function O2(t,e,n,r){t.removeEventListener(e,n,r)}const tx=Symbol("_vei");function M2(t,e,n,r,i=null){const s=t[tx]||(t[tx]={}),a=s[e];if(r&&a)a.value=r;else{const[o,l]=N2(e);if(r){const c=s[e]=B2(r,i);Na(t,o,c,l)}else a&&(O2(t,o,a,l),s[e]=void 0)}}const nx=/(?:Once|Passive|Capture)$/;function N2(t){let e;if(nx.test(t)){e={};let r;for(;r=t.match(nx);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):ga(t.slice(2)),e]}let Ey=0;const F2=Promise.resolve(),$2=()=>Ey||(F2.then(()=>Ey=0),Ey=Date.now());function B2(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Qi(U2(r,n.value),e,5,[r])};return n.value=t,n.attached=$2(),n}function U2(t,e){if(Re(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const rx=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,H2=(t,e,n,r,i,s)=>{const a=i==="svg";e==="class"?C2(t,r,a):e==="style"?P2(t,n,r):Dd(e)?sT(e)||M2(t,e,n,r,s):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):G2(t,e,r,a))?(ex(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Zw(t,e,r,a,s,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!Ht(r))?ex(t,yi(e),r,s,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),Zw(t,e,r,a))};function G2(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&rx(e)&&Be(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return rx(e)&&Ht(n)?!1:e in t}const zc=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Re(e)?n=>Cc(e,n):e};function j2(t){t.target.composing=!0}function ix(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const aa=Symbol("_assign"),Loe={created(t,{modifiers:{lazy:e,trim:n,number:r}},i){t[aa]=zc(i);const s=r||i.props&&i.props.type==="number";Na(t,e?"change":"input",a=>{if(a.target.composing)return;let o=t.value;n&&(o=o.trim()),s&&(o=zp(o)),t[aa](o)}),n&&Na(t,"change",()=>{t.value=t.value.trim()}),e||(Na(t,"compositionstart",j2),Na(t,"compositionend",ix),Na(t,"change",ix))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},a){if(t[aa]=zc(a),t.composing)return;const o=(s||t.type==="number")&&!/^0\d/.test(t.value)?zp(t.value):t.value,l=e??"";o!==l&&(document.activeElement===t&&t.type!=="range"&&(r&&e===n||i&&t.value.trim()===l)||(t.value=l))}},Coe={deep:!0,created(t,e,n){t[aa]=zc(n),Na(t,"change",()=>{const r=t._modelValue,i=od(t),s=t.checked,a=t[aa];if(Re(r)){const o=cT(r,i),l=o!==-1;if(s&&!l)a(r.concat(i));else if(!s&&l){const c=[...r];c.splice(o,1),a(c)}}else if(yu(r)){const o=new Set(r);s?o.add(i):o.delete(i),a(o)}else a(kk(t,s))})},mounted:sx,beforeUpdate(t,e,n){t[aa]=zc(n),sx(t,e,n)}};function sx(t,{value:e,oldValue:n},r){t._modelValue=e;let i;if(Re(e))i=cT(e,r.props.value)>-1;else if(yu(e))i=e.has(r.props.value);else{if(e===n)return;i=Od(e,kk(t,!0))}t.checked!==i&&(t.checked=i)}const Ioe={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const i=yu(e);Na(t,"change",()=>{const s=Array.prototype.filter.call(t.options,a=>a.selected).map(a=>n?zp(od(a)):od(a));t[aa](t.multiple?i?new Set(s):s:s[0]),t._assigning=!0,tr(()=>{t._assigning=!1})}),t[aa]=zc(r)},mounted(t,{value:e}){ax(t,e)},beforeUpdate(t,e,n){t[aa]=zc(n)},updated(t,{value:e}){t._assigning||ax(t,e)}};function ax(t,e){const n=t.multiple,r=Re(e);if(!(n&&!r&&!yu(e))){for(let i=0,s=t.options.length;i<s;i++){const a=t.options[i],o=od(a);if(n)if(r){const l=typeof o;l==="string"||l==="number"?a.selected=e.some(c=>
19String(c)===String(o)):a.selected=cT(e,o)>-1}else a.selected=e.has(o);else if(Od(od(a),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function od(t){return"_value"in t?t._value:t.value}function kk(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const V2=["ctrl","shift","alt","meta"],q2={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>V2.some(n=>t[`${n}Key`]&&!e.includes(n))},oc=(t,e)=>{const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=(i,...s)=>{for(let a=0;a<e.length;a++){const o=q2[e[a]];if(o&&o(i,e))return}return t(i,...s)})},K2={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},koe=(t,e)=>{const n=t._withKeys||(t._withKeys={}),r=e.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const s=ga(i.key);if(e.some(a=>a===s||K2[a]===s))return t(i)})},Pk=an({patchProp:H2},T2);let Cf,ox=!1;function W2(){return Cf||(Cf=zU(Pk))}function z2(){return Cf=ox?Cf:YU(Pk),ox=!0,Cf}const Y2=(...t)=>{const e=W2().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=Ok(r);if(!i)return;const s=e._component;!Be(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=n(i,!1,Dk(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},e},X2=(...t)=>{const e=z2().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=Ok(r);if(i)return n(i,!0,Dk(i))},e};function Dk(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Ok(t){return Ht(t)?document.querySelector(t):t}const J2=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Q2=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Z2=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function eH(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){tH(t);return}return e}function tH(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function am(t,e={}){if(typeof t!="string")return t;if(t[0]==='"'&&t[t.length-1]==='"'&&t.indexOf("\\")===-1)return t.slice(1,-1);const n=t.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Z2.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(J2.test(t)||Q2.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,eH)}return JSON.parse(t)}catch(r){if(e.strict)throw r;return t}}const nH=/#/g,rH=/&/g,iH=/\//g,sH=/=/g,CT=/\+/g,aH=/%5e/gi,oH=/%60/gi,lH=/%7c/gi,cH=/%20/gi;function uH(t){return encodeURI(""+t).replace(lH,"|")}function Y_(t){return uH(typeof t=="string"?t:JSON.stringify(t)).replace(CT,"%2B").replace(cH,"+").replace(nH,"%23").replace(rH,"%26").replace(oH,"`").replace(aH,"^").replace(iH,"%2F")}function by(t){return Y_(t).replace(sH,"%3D")}function om(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function fH(t){return om(t.replace(CT," "))}function dH(t){return om(t.replace(CT," "))}function Mk(t=""){const e=Object.create(null);t[0]==="?"&&(t=t.slice(1));for(const n of t.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const i=fH(r[1]);if(i==="__proto__"||i==="constructor")continue;const s=dH(r[2]||"");e[i]===void 0?e[i]=s:Array.isArray(e[i])?e[i].push(s):e[i]=[e[i],s]}return e}function hH(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(n=>`${by(t)}=${Y_(n)}`).join("&"):`${by(t)}=${Y_(e)}`:by(t)}function pH(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>
19hH(e,t[e])).filter(Boolean).join("&")}const mH=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Nk=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,gH=/^([/\\]\s*){2,}[^/\\]/,yH=/^[\s\0]*(blob|data|javascript|vbscript):$/i,vH=/\/$|\/\?|\/#/,_H=/^\.?\//;function Fs(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?mH.test(t):Nk.test(t)||(e.acceptRelative?gH.test(t):!1)}function EH(t){return!!t&&yH.test(t)}function X_(t="",e){return e?vH.test(t):t.endsWith("/")}function mg(t="",e){if(!e)return(X_(t)?t.slice(0,-1):t)||"/";if(!X_(t,!0))return t||"/";let n=t,r="";const i=t.indexOf("#");i!==-1&&(n=t.slice(0,i),r=t.slice(i));const[s,...a]=n.split("?");return((s.endsWith("/")?s.slice(0,-1):s)||"/")+(a.length>0?`?${a.join("?")}`:"")+r}function lm(t="",e){if(!e)return t.endsWith("/")?t:t+"/";if(X_(t,!0))return t||"/";let n=t,r="";const i=t.indexOf("#");if(i!==-1&&(n=t.slice(0,i),r=t.slice(i),!n))return r;const[s,...a]=n.split("?");return s+"/"+(a.length>0?`?${a.join("?")}`:"")+r}function bH(t=""){return t.startsWith("/")}function lx(t=""){return bH(t)?t:"/"+t}function TH(t,e){if($k(e)||Fs(t))return t;const n=mg(e);return t.startsWith(n)?t:gg(n,t)}function cx(t,e){if($k(e))return t;const n=mg(e);if(!t.startsWith(n))return t;const r=t.slice(n.length);return r[0]==="/"?r:"/"+r}function Fk(t,e){const n=RH(t),r={...Mk(n.search),...e};return n.search=pH(r),LH(n)}function $k(t){return!t||t==="/"}function SH(t){return t&&t!=="/"}function gg(t,...e){let n=t||"";for(const r of e.filter(i=>SH(i)))if(n){const i=r.replace(_H,"");n=lm(n)+i}else n=r;return n}function Bk(...t){var a,o,l,c;const e=/\/(?!\/)/,n=t.filter(Boolean),r=[];let i=0;for(const u of n)if(!(!u||u==="/")){for(const[f,d]of u.split(e).entries())if(!(!d||d===".")){if(d===".."){if(r.length===1&&Fs(r[0]))continue;r.pop(),i--;continue}if(f===1&&((a=r[r.length-1])!=null&&a.endsWith(":/"))){r[r.length-1]+="/"+d;continue}r.push(d),i++}}let s=r.join("/");return i>=0?(o=n[0])!=null&&o.startsWith("/")&&!s.startsWith("/")?s="/"+s:(l=n[0])!=null&&l.startsWith("./")&&!s.startsWith("./")&&(s="./"+s):s="../".repeat(-1*i)+s,(c=n[n.length-1])!=null&&c.endsWith("/")&&!s.endsWith("/")&&(s+="/"),s}function wH(t){return xH(t,"https://")}function xH(t,e){let n=t.match(Nk);return n||(n=t.match(/^\/{2,}/)),n?e+t.slice(n[0].length):e+t}function AH(t,e,n={}){return n.trailingSlash||(t=lm(t),e=lm(e)),n.leadingSlash||(t=lx(t),e=lx(e)),n.encoding||(t=om(t),e=om(e)),t===e}const Uk=Symbol.for("ufo:protocolRelative");function RH(t="",e){const n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!Fs(t,{acceptRelative:!0}))return ux(t);const[,r="",i,s=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,a="",o=""]=s.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(o=o.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=ux(o);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:a,pathname:l,search:c,hash:u,[Uk]:!r}}function ux(t=""){const[e="",n="",r=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:n,hash:r}}function LH(t){const e=t.pathname||"",n=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",r=t.hash||"",i=t.auth?t.auth+"@":"",s=t.host||"";return(t.protocol||t[Uk]?(t.protocol||"")+"//":"")+i+s+e+n+r}let CH=class extends Error{constructor(e,n){super(e,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}};function IH(t){var l,c,u,f,d;const e=((l=t.error)==null?void 0:l.message)||((c=t.error)==null?void 0:c.toString())||"",n=((u=t.request)==null?void 0:u.method)||((f=t.options)==null?void 0:f.method)||"GET",r=((d=t.request)==null?void 0:d.url)||String(t.request)||"/",i=`[${n}] ${JSON.stringify(r)}`,s=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",a=`${i}: ${s}${e?` ${e}`:""}`,o=new CH(a,t.error?{cause:t.error}:void 0);for(const h of["request","options","response"])Object.defineProperty(o,h,{get(){return t[h]}});for(const[h,p]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(o,h,{get(){return t.response&&t.response[p]}});return o}const kH=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function fx(t="GET"){return kH.has(t.toUpperCase())}function PH(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const DH=new Set(["image/svg","application/xml","application/xhtml","application/html"]),OH=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function MH(t=""){if(!t)return"json";const e=t.split(";").shift()||"";return OH.test(e)?"json":DH.has(e)||e.startsWith("text/")?"text":"blob"}function NH(t,e,n,r){const i=FH((e==null?void 0:e.headers)??(t==null?void 0:t.headers),n==null?void 0:n.headers,r);let s;return(n!=null&&n.query||n!=null&&n.params||e!=null&&e.params||e!=null&&e.query)&&(s={...n==null?void 0:n.params,...n==null?void 0:n.query,...e==null?void 0:e.params,...e==null?void 0:e.query}),{...n,...e,query:s,params:s,headers:i}}function FH(t,e,n){if(!e)return new n(t);const r=new n(e);if(t)for(const[i,s]of Symbol.iterator in t||Array.isArray(t)?t:new n(t))r.set(i,s);return r}async function ah(t,e){if(e)if(Array.isArray(e))for(const n of e)await n(t);else await e(t)}const $H=new Set([408,409,425,429,500,502,503,504]),BH=new Set([101,204,205,304]);function Hk(t={}){const{fetch:e=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=t;async function i(o){const l=o.error&&o.error.name==="AbortError"&&!o.options.timeout||!1;if(o.options.retry!==!1&&!l){let u;typeof o.options.retry=="number"?u=o.options.retry:u=fx(o.options.method)?0:1;const f=o.response&&o.response.status||500;if(u>0&&(Array.isArray(o.options.retryStatusCodes)?o.options.retryStatusCodes.includes(f):$H.has(f))){const d=typeof o.options.retryDelay=="function"?o.options.retryDelay(o):o.options.retryDelay||0;return d>0&&await new Promise(h=>setTimeout(h,d)),s(o.request,{...o.options,retry:u-1})}}const c=IH(o);throw Error.captureStackTrace&&Error.captureStackTrace(c,s),c}const s=async function(l,c={}){const u={request:l,options:NH(l,c,t.defaults,n),response:void 0,error:void 0};u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&await ah(u,u.options.onRequest),typeof u.request=="string"&&(u.options.baseURL&&(u.request=TH(u.request,u.options.baseURL)),u.options.query&&(u.request=Fk(u.request,u.options.query),delete u.options.query),"query"in u.options&&delete u.options.query,"params"in u.options&&delete u.options.params),u.options.body&&fx(u.options.method)&&(PH(u.options.body)?(u.options.body=typeof u.options.body=="str
19ing"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half")));let f;if(!u.options.signal&&u.options.timeout){const h=new r;f=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,h.abort(p)},u.options.timeout),u.options.signal=h.signal}try{u.response=await e(u.request,u.options)}catch(h){return u.error=h,u.options.onRequestError&&await ah(u,u.options.onRequestError),await i(u)}finally{f&&clearTimeout(f)}if((u.response.body||u.response._bodyInit)&&!BH.has(u.response.status)&&u.options.method!=="HEAD"){const h=(u.options.parseResponse?"json":u.options.responseType)||MH(u.response.headers.get("content-type")||"");switch(h){case"json":{const p=await u.response.text(),m=u.options.parseResponse||am;u.response._data=m(p);break}case"stream":{u.response._data=u.response.body||u.response._bodyInit;break}default:u.response._data=await u.response[h]()}}return u.options.onResponse&&await ah(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await ah(u,u.options.onResponseError),await i(u)):u.response},a=async function(l,c){return(await s(l,c))._data};return a.raw=s,a.native=(...o)=>e(...o),a.create=(o={},l={})=>Hk({...t,...l,defaults:{...t.defaults,...l.defaults,...o}}),a}const cm=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),UH=cm.fetch?(...t)=>cm.fetch(...t):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),HH=cm.Headers,GH=cm.AbortController,jH=Hk({fetch:UH,Headers:HH,AbortController:GH}),VH=jH;{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"9cc757430a8aa182d574aa50a8a5183cda226ccf"}}const qH=()=>{var t;return((t=window==null?void 0:window.__NUXT__)==null?void 0:t.config)||{}},um=qH().app,KH=()=>um.baseURL,WH=()=>um.buildAssetsDir,IT=(...t)=>Bk(Gk(),WH(),...t),Gk=(...t)=>{const e=um.cdnURL||um.baseURL;return t.length?Bk(e,...t):e};globalThis.__buildAssetsURL=IT,globalThis.__publicAssetsURL=Gk;globalThis.$fetch||(globalThis.$fetch=VH.create({baseURL:KH()}));function J_(t,e={},n){for(const r in t){const i=t[r],s=n?`${n}:${r}`:r;typeof i=="object"&&i!==null?J_(i,e,s):typeof i=="function"&&(e[s]=i)}return e}const zH={run:t=>t()},YH=()=>zH,jk=typeof console.createTask<"u"?console.createTask:YH;function XH(t,e){const n=e.shift(),r=jk(n);return t.reduce((i,s)=>i.then(()=>r.run(()=>s(...e))),Promise.resolve())}function JH(t,e){const n=e.shift(),r=jk(n);return Promise.all(t.map(i=>r.run(()=>i(...e))))}function Ty(t,e){for(const n of[...t])n(e)}class QH{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,n,r={}){if(!e||typeof n!="function")return()=>{};const i=e;let s;for(;this._deprecatedHooks[e];)s=this._deprecatedHooks[e],e=s.to;if(s&&!r.allowDeprecated){let a=s.message;a||(a=`${i} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(a)||(console.warn(a),this._deprecatedMessages.add(a))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(n),()=>{n&&(this.removeHook(e,n),n=void 0)}}hookOnce(e,n){let r,i=(...s)=>(typeof r=="function"&&r(),r=void 0,i=void 0,n(...s));return r=this.hook(e,i),r}removeHook(e,n){if(this._hooks[e]){const r=this._hooks[e].indexOf(n);r!==-1&&this._hooks[e].splice(r,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,n){this._deprecatedHooks[e]=typeof n=="string"?{to:n}:n;const r=this._hooks[e]||[];delete this._hooks[e];for(const i of r)this.hook(e,i)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const n in e)this.deprecateHook(n,e[n])}addHooks(e){const n=J_(e),r=Object.keys(n).map(i=>this.hook(i,n[i]));return()=>{for(const i of r.splice(0,r.length))i()}}removeHooks(e){const n=J_(e);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...n){return n.unshift(e),this.callHookWith(XH,e,...n)}callHookParallel(e,...n){return n.unshift(e),this.callHookWith(JH,e,...n)}callHookWith(e,n,...r){const i=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Ty(this._before,i);const s=e(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&i&&Ty(this._after,i)}):(this._after&&i&&Ty(this._after,i),s)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const n=this._before.indexOf(e);n!==-1&&this._before.splice(n,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const n=this._after.indexOf(e);n!==-1&&this._after.splice(n,1)}}}}function Vk(){return new QH}function ZH(t={}){let e,n=!1;const r=a=>{if(e&&e!==a)throw new Error("Context conflict")};let i;if(t.asyncContext){const a=t.AsyncLocalStorage||globalThis.AsyncLocalStorage;a?i=new a:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const s=()=>
19{if(i){const a=i.getStore();if(a!==void 0)return a}return e};return{use:()=>{const a=s();if(a===void 0)throw new Error("Context is not available");return a},tryUse:()=>s(),set:(a,o)=>{o||r(a),e=a,n=!0},unset:()=>{e=void 0,n=!1},call:(a,o)=>{r(a),e=a;try{return i?i.run(a,o):o()}finally{n||(e=void 0)}},async callAsync(a,o){e=a;const l=()=>{e=a},c=()=>e===a?l:void 0;Q_.add(c);try{const u=i?i.run(a,o):o();return n||(e=void 0),await u}finally{Q_.delete(c)}}}}function eG(t={}){const e={};return{get(n,r={}){return e[n]||(e[n]=ZH({...t,...r})),e[n]}}}const fm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},dx="__unctx__",tG=fm[dx]||(fm[dx]=eG()),nG=(t,e={})=>tG.get(t,e),hx="__unctx_async_handlers__",Q_=fm[hx]||(fm[hx]=new Set);function za(t){const e=[];for(const i of Q_){const s=i();s&&e.push(s)}const n=()=>{for(const i of e)i()};let r=t();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(i=>{throw n(),i})),[r,n]}const rG=!1,Z_=!1,iG=!1,sG={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Doe={value:null,errorValue:null,deep:!0},aG=null,Ooe={},oG="#__nuxt",qk="nuxt-app",px=36e5,lG="vite:preloadError";function Kk(t=qk){return nG(t,{asyncContext:!1})}const cG="__nuxt_plugin";function uG(t){var i;let e=0;const n={_id:t.id||qk||"nuxt-app",_scope:uT(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.15.1"},get vue(){return n.vueApp.version}},payload:ra({...((i=t.ssrContext)==null?void 0:i.payload)||{},data:ra({}),state:ts({}),once:new Set,_errors:ra({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!fT()?n._scope.run(()=>mx(n,s)):mx(n,s)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};e++;let s=!1;return()=>{if(!s&&(s=!0,e--,e===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:ra({}),_payloadRevivers:{},...t};{const s=window.__NUXT__;if(s)for(const a in s)switch(a){case"data":case"state":case"_errors":Object.assign(n.payload[a],s[a]);break;default:n.payload[a]=s[a]}}n.hooks=Vk(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,a)=>{const o="$"+s;oh(n,o,a),oh(n.vueApp.config.globalProperties,o,a)},oh(n.vueApp,"$nuxt",n),oh(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(lG,a=>{n.callHook("app:chunkError",{error:a.payload}),(n.isHydrating||a.payload.message.includes("Unable to preload CSS"))&&a.preventDefault()}),window.useNuxtApp=window.useNuxtApp||At;const s=n.hook("app:error",(...a)=>{console.error("[nuxt] error caught during app initialization",...a)});n.hook("app:mounted",s)}const r=n.payload.config;return n.provide("config",r),n}function fG(t,e){e.hooks&&t.hooks.addHooks(e.hooks)}async function dG(t,e){if(typeof e=="function"){const{provide:n}=await t.runWithContext(()=>e(t))||{};if(n&&typeof n=="object")for(const r in n)t.provide(r,n[r])}}async function hG(t,e){const n=[],r=[],i=[],s=[];let a=0;async function o(l){var u;const c=((u=l.dependsOn)==null?void 0:u.filter(f=>e.some(d=>d._name===f)&&!n.includes(f)))??[];if(c.length>0)r.push([new Set(c),l]);else{const f=dG(t,l).then(async()=>{l._name&&(n.push(l._name),await Promise.all(r.map(async([d,h])=>{d.has(l._name)&&(d.delete(l._name),d.size===0&&(a++,await o(h)))})))});l.parallel?i.push(f.catch(d=>s.push(d))):await f}}for(const l of e)fG(t,l);for(const l of e)await o(l);if(await Promise.all(i),a)for(let l=0;l<a;l++)await Promise.all(i);if(s.length)throw s[0]}function wn(t){if(typeof t=="function")return t;const e=t._name||t.name;return delete t.name,Object.assign(t.setup||(()=>{}),t,{[cG]:!0,_name:e})}const pG=wn;function mx(t,e,n){const r=()=>e();return Kk(t._id).set(t),t.vueApp.runWithContext(r)}function mG(t){var n;let e;return ST()&&(e=(n=_a())==null?void 0:n.appContext.app.$nuxt),e=e||Kk(t).tryUse(),e||null}function At(t){const e=mG(t);if(!e)throw new Error("[nuxt] instance unavailable");return e}function Eu(t){return At().$config}function oh(t,e,n){Object.defineProperty(t,e,{get:()=>n})}function gG(t,e){return{ctx:{table:t},matchAll:n=>zk(n,t)}}function Wk(t){const e={};for(const n in t)e[n]=n==="dynamic"?new Map(Object.entries(t[n]).map(([r,i])=>[r,Wk(i)])):new Map(Object.entries(t[n]));return e}function yG(t){return gG(Wk(t))}
19function zk(t,e,n){t.endsWith("/")&&(t=t.slice(0,-1)||"/");const r=[];for(const[s,a]of gx(e.wildcard))(t===s||t.startsWith(s+"/"))&&r.push(a);for(const[s,a]of gx(e.dynamic))if(t.startsWith(s+"/")){const o="/"+t.slice(s.length).split("/").splice(2).join("/");r.push(...zk(o,a))}const i=e.static.get(t);return i&&r.push(i),r.filter(Boolean)}function gx(t){return[...t.entries()].sort((e,n)=>e[0].length-n[0].length)}function Sy(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function eE(t,e,n=".",r){if(!Sy(e))return eE(t,{},n,r);const i=Object.assign({},e);for(const s in t){if(s==="__proto__"||s==="constructor")continue;const a=t[s];a!=null&&(r&&r(i,s,a,n)||(Array.isArray(a)&&Array.isArray(i[s])?i[s]=[...a,...i[s]]:Sy(a)&&Sy(i[s])?i[s]=eE(a,i[s],(n?`${n}.`:"")+s.toString(),r):i[s]=a))}return i}function vG(t){return(...e)=>e.reduce((n,r)=>eE(n,r,"",t),{})}const Yk=vG();function _G(t,e){try{return e in t}catch{return!1}}var EG=Object.defineProperty,bG=(t,e,n)=>e in t?EG(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Po=(t,e,n)=>(bG(t,typeof e!="symbol"?e+"":e,n),n);class tE extends Error{constructor(e,n={}){super(e,n),Po(this,"statusCode",500),Po(this,"fatal",!1),Po(this,"unhandled",!1),Po(this,"statusMessage"),Po(this,"data"),Po(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const e={message:this.message,statusCode:rE(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=Xk(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}}Po(tE,"__h3_error__",!0);function nE(t){if(typeof t=="string")return new tE(t);if(TG(t))return t;const e=new tE(t.message??t.statusMessage??"",{cause:t.cause||t});if(_G(t,"stack"))try{Object.defineProperty(e,"stack",{get(){return t.stack}})}catch{try{e.stack=t.stack}catch{}}if(t.data&&(e.data=t.data),t.statusCode?e.statusCode=rE(t.statusCode,e.statusCode):t.status&&(e.statusCode=rE(t.status,e.statusCode)),t.statusMessage?e.statusMessage=t.statusMessage:t.statusText&&(e.statusMessage=t.statusText),e.statusMessage){const n=e.statusMessage;Xk(e.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return t.fatal!==void 0&&(e.fatal=t.fatal),t.unhandled!==void 0&&(e.unhandled=t.unhandled),e}function TG(t){var e;return((e=t==null?void 0:t.constructor)==null?void 0:e.__h3_error__)===!0}const SG=/[^\u0009\u0020-\u007E]/g;function Xk(t=""){return t.replace(SG,"")}function rE(t,e=200){return!t||(typeof t=="string"&&(t=Number.parseInt(t,10)),t<100||t>999)?e:t}const Jk=Symbol("layout-meta"),Fd=Symbol("route"),xr=()=>{var t;return(t=At())==null?void 0:t.$router},yo=()=>ST()?sr(Fd,At()._route):At()._route;const wG=()=>{try{if(At()._processingMiddleware)return!0}catch{return!1}return!1},ri=(t,e)=>{t||(t="/");const n=typeof t=="string"?t:"path"in t?iE(t):xr().resolve(t).href;if(e!=null&&e.open){const{target:l="_blank",windowFeatures:c={}}=e.open,u=Object.entries(c).filter(([f,d])=>d!==void 0).map(([f,d])=>`${f.toLowerCase()}=${d}`).join(", ");return open(n,l,u),Promise.resolve()}const r=Fs(n,{acceptRelative:!0}),i=(e==null?void 0:e.external)||r;if(i){if(!(e!=null&&e.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&EH(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const s=wG();if(!i&&s)return e!=null&&e.replace?typeof t=="string"?{path:t,replace:!0}:{...t,replace:!0}:t;const a=xr(),o=At();return i?(o._scope.stop(),e!=null&&e.replace?location.replace(n):location.href=n,s?o.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):e!=null&&e.replace?a.replace(t):a.push(t)};function iE(t){return Fk(t.path||"",t.query||{})+(t.hash||"")}const Qk="__nuxt_error",yg=()=>_T(At().payload,"error"),yc=t=>{const e=vg(t);try{const n=At(),r=yg();n.hooks.callHook("app:error",e),r.value=r.value||e}catch{throw e}return e},xG=async(t={})=>{const e=At(),n=yg();e.callHook("app:error:cleared",t),t.redirect&&await xr().replace(t.redirect),n.value=aG},Zk=t=>!!t&&typeof t=="object"&&Qk in t,vg=t=>{const e=nE(t);return Object.defineProperty(e,Qk,{value:!0,configurable:!1,writable:!1}),e},AG={trailing:!0};function RG(t,e=25,n={}){if(n={...AG,...n},!Number.isFinite(e))throw new TypeError("Expected `wait` to be a finite number");let r,i,s=[],a,o;const l=(c,u)=>(a=LG(t,c,u),a.finally(()=>
vendor: 4,319 bytes, lines 19-23
19{if(a=null,n.trailing&&o&&!i){const f=l(c,o);return o=null,f}}),a);return function(...c){return a?(n.trailing&&(o=c),a):new Promise(u=>{const f=!i&&n.leading;clearTimeout(i),i=setTimeout(()=>{i=null;const d=n.leading?r:l(this,c);for(const h of s)h(d);s=[]},e),f?(r=l(this,c),u(r)):s.push(u)})}}async function LG(t,e,n){return await t.apply(e,n)}/*! 20 * pinia v3.0.4 21 * (c) 2025 Eduardo San Martin Morote 22 * @license MIT 23 */let eP;const Yc=t=>eP=t,tP=Symbol();function sE(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var If;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(If||(If={}));function CG(){const t=uT(!0),e=t.run(()=>it({}));let n=[],r=[];const i=vT({install(s){Yc(i),i._a=s,s.provide(tP,i),s.config.globalProperties.$pinia=i,r.forEach(a=>n.push(a)),r=[]},use(s){return this._a?n.push(s):r.push(s),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return i}const nP=()=>{};function yx(t,e,n,r=nP){t.add(e);const i=()=>{t.delete(e)&&r()};return!n&&fT()&&OB(i),i}function Yl(t,...e){t.forEach(n=>{n(...e)})}const IG=t=>t(),vx=Symbol(),wy=Symbol();function aE(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,r)=>t.set(r,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],i=t[n];sE(i)&&sE(r)&&t.hasOwnProperty(n)&&!Wt(r)&&!Rs(r)?t[n]=aE(i,r):t[n]=r}return t}const kG=Symbol();function PG(t){return!sE(t)||!Object.prototype.hasOwnProperty.call(t,kG)}const{assign:xa}=Object;function DG(t){return!!(Wt(t)&&t.effect)}function OG(t,e,n,r){const{state:i,actions:s,getters:a}=e,o=n.state.value[t];let l;function c(){o||(n.state.value[t]=i?i():{});const u=sU(n.state.value[t]);return xa(u,s,Object.keys(a||{}).reduce((f,d)=>(f[d]=vT($e(()=>{Yc(n);const h=n._s.get(t);return a[d].call(h,h)})),f),{}))}return l=rP(t,c,e,n,r,!0),l}function rP(t,e,n={},r,i,s){let a;const o=xa({actions:{}},n),l={deep:!0};let c,u,f=new Set,d=new Set,h;const p=r.state.value[t];!s&&!p&&(r.state.value[t]={}),it({});let m;function g(A){let w;c=u=!1,typeof A=="function"?(A(r.state.value[t]),w={type:If.patchFunction,storeId:t,events:h}):(aE(r.state.value[t],A),w={type:If.patchObject,payload:A,storeId:t,events:h});const x=m=Symbol();tr().then(()=>{m===x&&(c=!0)}),u=!0,Yl(f,w,r.state.value[t])}const _=s?function(){const{state:w}=n,x=w?w():{};this.$patch(L=>{xa(L,x)})}:nP;function v(){a.stop(),f.clear(),d.clear(),r._s.delete(t)}const y=(A,w="")=>{if(vx in A)return A[wy]=w,A;const x=function(){Yc(r);const L=Array.from(arguments),R=new Set,k=new Set;function F(M){R.add(M)}function U(M){k.add(M)}Yl(d,{args:L,name:x[wy],store:b,after:F,onError:U});let H;try{H=A.apply(this&&this.$id===t?this:b,L)}catch(M){throw Yl(k,M),M}return H instanceof Promise?H.then(M=>(Yl(R,M),M)).catch(M=>(Yl(k,M),Promise.reject(M))):(Yl(R,H),H)};return x[vx]=!0,x[wy]=w,x},E={_p:r,$id:t,$onAction:yx.bind(null,d),$patch:g,$reset:_,$subscribe(A,w={}){const x=yx(f,A,w.detached,()=>L()),L=a.run(()=>ar(()=>r.state.value[t],R=>{(w.flush==="sync"?u:c)&&A({storeId:t,type:If.direct,events:h},R)},xa({},l,w)));return x},$dispose:v},b=ts(E);r._s.set(t,b);const S=(r._a&&r._a.runWithContext||IG)(()=>r._e.run(()=>(a=uT()).run(()=>e({action:y}))));for(const A in S){const w=S[A];if(Wt(w)&&!DG(w)||Rs(w))s||(p&&PG(w)&&(Wt(w)?w.value=p[A]:aE(w,p[A])),r.state.value[t][A]=w);else if(typeof w=="function"){const x=y(w,A);S[A]=x,o.actions[A]=w}}return xa(b,S),xa(lt(b),S),Object.defineProperty(b,"$state",{get:()=>r.state.value[t],set:A=>{g(w=>{xa(w,A)})}}),r._p.forEach(A=>{xa(b,a.run(()=>A({store:b,app:r._a,pinia:r,options:o})))}),p&&s&&n.hydrate&&n.hydrate(b.$state,p),c=!0,u=!0,b}/*! #__NO_SIDE_EFFECTS__ */function _g(t,e,n){let r;const i=typeof e=="function";r=i?n:e;function s(a,o){const l=ST();return a=a||(l?sr(tP,null):null),a&&Yc(a),a=eP,a._s.has(t)||(i?rP(t,e,r,a):OG(t,r,a)),a._s.get(t)}return s.$id=t,s}function Moe(t){const e=lt(t),n={};for(const r in e){const i=e[r];i.effect?n[r]=$e({get:()=>t[r],set(s){t[r]=s}}):(Wt(i)||Rs(i))&&(n[r]=_T(t,r))}return n}function _x(t){const e=NG(t),n=new ArrayBuffer(e.length),r=new DataView(n);for(let i=0;i<n.byteLength;i++)r.setUint8(i,e.charCodeAt(i));return n}const MG="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
23+/";function NG(t){t.length%4===0&&(t=t.replace(/==?$/,""));let e="",n=0,r=0;for(let i=0;i<t.length;i++)n<<=6,n|=MG.indexOf(t[i]),r+=6,r===24&&(e+=String.fromCharCode((n&16711680)>>16),e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,e+=String.fromCharCode(n)):r===18&&(n>>=2,e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255)),e}const FG=-1,$G=-2,BG=-3,UG=-4,HG=-5,GG=-6;function jG(t,e){return VG(JSON.parse(t),e)}function VG(t,e){if(typeof t=="number")return i(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const n=t,r=Array(n.length);function i(s,a=!1){if(s===FG)return;if(s===BG)return NaN;if(s===UG)return 1/0;if(s===HG)return-1/0;if(s===GG)return-0;if(a)throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const l=o[0],c=e==null?void 0:e[l];if(c)return r[s]=c(i(o[1]));switch(l){case"Date":r[s]=new Date(o[1]);break;case"Set":const u=new Set;r[s]=u;for(let h=1;h<o.length;h+=1)u.add(i(o[h]));break;case"Map":const f=new Map;r[s]=f;for(let h=1;h<o.length;h+=2)f.set(i(o[h]),i(o[h+1]));break;case"RegExp":r[s]=new RegExp(o[1],o[2]);break;case"Object":r[s]=Object(o[1]);break;case"BigInt":r[s]=BigInt(o[1]);break;case"null":const d=Object.create(null);r[s]=d;for(let h=1;h<o.length;h+=2)d[o[h]]=i(o[h+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const h=globalThis[l],p=o[1],m=_x(p),g=new h(m);r[s]=g;break}case"ArrayBuffer":{const h=o[1],p=_x(h);r[s]=p;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(o.length);r[s]=l;for(let c=0;c<o.length;c+=1){const u=o[c];u!==$G&&(l[c]=i(u))}}else{const l={};r[s]=l;for(const c in o){const u=o[c];l[c]=i(u)}}return r[s]}return i(0)}function iP(t,e){const n=[],r=e.resolveKeyData||(s=>s.key),i=e.resolveValueData||(s=>s.value);for(const[s,a]of Object.entries(t))n.push(...(Array.isArray(a)?a:[a]).map(o=>{const l={key:s,value:o},c=i(l);return typeof c=="object"?iP(c,e):Array.isArray(c)?c:{[typeof e.key=="function"?e.key(l):e.key]:r(l),[typeof e.value=="function"?e.value(l):e.value]:c}}).flat());return n}function sP(t,e){return Object.entries(t).map(([n,r])=>{if(typeof r=="object"&&(r=sP(r,e)),e.resolve){const i=e.resolve({key:n,value:r});if(typeof i<"u")return i}return typeof r=="number"&&(r=r.toString()),typeof r=="string"&&e.wrapValue&&(r=r.replace(new RegExp(e.wrapValue,"g"),`\\${e.wrapValue}`),r=`${e.wrapValue}${r}${e.wrapValue}`),`${n}${e.keyValueSeparator||""}${r}`}).join(e.entrySeparator||"")}const qG=new Set(["title","titleTemplate","script","style","noscript"]),Zh=new Set(["base","meta","link","style","script","noscript"]),KG=new Set(["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),WG=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),aP=new Set(["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"]),zG=typeof window<"u";function dm(t){let e=9;for(let n=0;n<t.length;)e=Math.imul(e^t.charCodeAt(n++),9**9);return((e^e>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function oE(t){if(t._h)return t._h;
23if(t._d)return dm(t._d);let e=`${t.tag}:${t.textContent||t.innerHTML||""}:`;for(const n in t.props)e+=`${n}:${String(t.props[n])},`;return dm(e)}const Rr=t=>({keyValue:t,metaKey:"property"}),xy=t=>({keyValue:t}),kT={appleItunesApp:{unpack:{entrySeparator:", ",resolve({key:t,value:e}){return`${ia(t)}=${e}`}}},articleExpirationTime:Rr("article:expiration_time"),articleModifiedTime:Rr("article:modified_time"),articlePublishedTime:Rr("article:published_time"),bookReleaseDate:Rr("book:release_date"),charset:{metaKey:"charset"},contentSecurityPolicy:{unpack:{entrySeparator:"; ",resolve({key:t,value:e}){return`${ia(t)} ${e}`}},metaKey:"http-equiv"},contentType:{metaKey:"http-equiv"},defaultStyle:{metaKey:"http-equiv"},fbAppId:Rr("fb:app_id"),msapplicationConfig:xy("msapplication-Config"),msapplicationTileColor:xy("msapplication-TileColor"),msapplicationTileImage:xy("msapplication-TileImage"),ogAudioSecureUrl:Rr("og:audio:secure_url"),ogAudioUrl:Rr("og:audio"),ogImageSecureUrl:Rr("og:image:secure_url"),ogImageUrl:Rr("og:image"),ogSiteName:Rr("og:site_name"),ogVideoSecureUrl:Rr("og:video:secure_url"),ogVideoUrl:Rr("og:video"),profileFirstName:Rr("profile:first_name"),profileLastName:Rr("profile:last_name"),profileUsername:Rr("profile:username"),refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve({key:t,value:e}){if(t==="seconds")return`${e}`}}},robots:{unpack:{entrySeparator:", ",resolve({key:t,value:e}){return typeof e=="boolean"?`${ia(t)}`:`${ia(t)}:${e}`}}},xUaCompatible:{metaKey:"http-equiv"}},oP=new Set(["og","book","article","profile"]);function lP(t){var r;const e=ia(t),n=e.indexOf(":");return oP.has(e.substring(0,n))?"property":((r=kT[t])==null?void 0:r.metaKey)||"name"}function YG(t){var e;return((e=kT[t])==null?void 0:e.keyValue)||ia(t)}function ia(t){const e=t.replace(/([A-Z])/g,"-$1").toLowerCase(),n=e.indexOf("-"),r=e.substring(0,n);return r==="twitter"||oP.has(r)?t.replace(/([A-Z])/g,":$1").toLowerCase():e}function lE(t){if(Array.isArray(t))return t.map(n=>lE(n));if(typeof t!="object"||Array.isArray(t))return t;const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[ia(n)]=lE(t[n]));return e}function XG(t,e){const n=kT[e];return e==="refresh"?`${t.seconds};url=${t.url}`:sP(lE(t),{keyValueSeparator:"=",entrySeparator:", ",resolve({value:r,key:i}){if(r===null)return"";if(typeof r=="boolean")return`${i}`},...n==null?void 0:n.unpack})}const cP=new Set(["og:image","og:video","og:audio","twitter:image"]);function uP(t){const e={};for(const n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;const r=t[n];String(r)!=="false"&&n&&(e[n]=r)}return e}function Ex(t,e){const n=uP(e),r=ia(t),i=lP(r);if(cP.has(r)){const s={};for(const a in n)Object.prototype.hasOwnProperty.call(n,a)&&(s[`${t}${a==="url"?"":`${a[0].toUpperCase()}${a.slice(1)}`}`]=n[a]);return fP(s).sort((a,o)=>{var l,c;return(((l=a[i])==null?void 0:l.length)||0)-(((c=o[i])==null?void 0:c.length)||0)})}return[{[i]:r,...n}]}function fP(t){const e=[],n={};for(const i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;const s=t[i];if(!Array.isArray(s)){if(typeof s=="object"&&s){if(cP.has(ia(i))){e.push(...Ex(i,s));continue}n[i]=uP(s)}else n[i]=s;continue}for(const a of s)e.push(...typeof a=="string"?fP({[i]:a}):Ex(i,a))}const r=iP(n,{key({key:i}
23){return lP(i)},value({key:i}){return i==="charset"?"charset":"content"},resolveKeyData({key:i}){return YG(i)},resolveValueData({value:i,key:s}){return i===null?"_null":typeof i=="object"?XG(i,s):typeof i=="number"?i.toString():i}});return[...e,...r].map(i=>(i.content==="_null"&&(i.content=null),i))}function JG(t,e){return t instanceof Promise?t.then(e):e(t)}function cE(t,e,n,r){const i=r||hP(typeof e=="object"&&typeof e!="function"&&!(e instanceof Promise)?{...e}:{[t==="script"||t==="noscript"||t==="style"?"innerHTML":"textContent"]:e},t==="templateParams"||t==="titleTemplate");if(i instanceof Promise)return i.then(a=>cE(t,e,n,a));const s={tag:t,props:i};for(const a of aP){const o=s.props[a]!==void 0?s.props[a]:n[a];o!==void 0&&((!(a==="innerHTML"||a==="textContent"||a==="children")||qG.has(s.tag))&&(s[a==="children"?"innerHTML":a]=o),delete s.props[a])}return s.props.body&&(s.tagPosition="bodyClose",delete s.props.body),s.tag==="script"&&typeof s.innerHTML=="object"&&(s.innerHTML=JSON.stringify(s.innerHTML),s.props.type=s.props.type||"application/json"),Array.isArray(s.props.content)?s.props.content.map(a=>({...s,props:{...s.props,content:a}})):s}function QG(t,e){var r;const n=t==="class"?" ":";";return e&&typeof e=="object"&&!Array.isArray(e)&&(e=Object.entries(e).filter(([,i])=>i).map(([i,s])=>t==="style"?`${i}:${s}`:i)),(r=String(Array.isArray(e)?e.join(n):e))==null?void 0:r.split(n).filter(i=>!!i.trim()).join(n)}function dP(t,e,n,r){for(let i=r;i<n.length;i+=1){const s=n[i];if(s==="class"||s==="style"){t[s]=QG(s,t[s]);continue}if(t[s]instanceof Promise)return t[s].then(a=>(t[s]=a,dP(t,e,n,i)));if(!e&&!aP.has(s)){const a=String(t[s]),o=s.startsWith("data-");a==="true"||a===""?t[s]=o?"true":!0:t[s]||(o&&a==="false"?t[s]="false":delete t[s])}}}function hP(t,e=!1){const n=dP(t,e,Object.keys(t),0);return n instanceof Promise?n.then(()=>t):t}const ZG=10;function pP(t,e,n){for(let r=n;r<e.length;r+=1){const i=e[r];if(i instanceof Promise)return i.then(s=>(e[r]=s,pP(t,e,r)));Array.isArray(i)?t.push(...i):t.push(i)}}function ej(t){const e=[],n=t.resolvedInput;for(const i in n){if(!Object.prototype.hasOwnProperty.call(n,i))continue;const s=n[i];if(!(s===void 0||!KG.has(i))){if(Array.isArray(s)){for(const a of s)e.push(cE(i,a,t));continue}e.push(cE(i,s,t))}}if(e.length===0)return[];const r=[];return JG(pP(r,e,0),()=>r.map((i,s)=>(i._e=t._i,t.mode&&(i._m=t.mode),i._p=(t._i<<ZG)+s,i)))}const bx=new Set(["onload","onerror","onabort","onprogress","onloadstart"]),Tx={base:-10,title:10},Sx={critical:-80,high:-10,low:20};function hm(t){const e=t.tagPriority;if(typeof e=="number")return e;let n=100;return t.tag==="meta"?t.props["http-equiv"]==="content-security-policy"?n=-30:t.props.charset?n=-20:t.props.name==="viewport"&&(n=-15):t.tag==="link"&&t.props.rel==="preconnect"?n=20:t.tag in Tx&&(n=Tx[t.tag]),e&&e in Sx?n+Sx[e]:n}const tj=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],nj=["name","property","http-equiv"];function mP(t){const{props:e,tag:n}=t;if(WG.has(n))return n;if(n==="link"&&e.rel==="canonical")return"canonical";if(e.charset)return"charset";if(e.id)return`${n}:id:${e.id}`;for(const r of nj)if(e[r]!==void 0)return`${n}:${r}:${e[r]}`;return!1}const Pa="%separator";function rj(t,e,n=!1){var i;let r;if(e==="s"||e==="pageTitle")r=t.pageTitle;else if(e.includes(".")){const s=e.indexOf(".");r=(i=t[e.substring(0,s)])==null?void 0:i[e.substring(s+1)]}else r=t[e];if(r!==void 0)return n?(r||"").replace(/"/g,'\\"'):r||""}const ij=new RegExp(`${Pa}(?:\\s*${Pa})*`,"g");function lh(t,e,n,r=!1){if(typeof t!="string"||!t.includes("%"))return t;let i=t;try{i=decodeURI(t)}catch{}const s=i.match(/%\w+(?:\.\w+)?/g);if(!s)return t;const a=t.includes(Pa);return t=t.replace(/%\w+(?:\.\w+)?/g,o=>{if(o===Pa||!s.includes(o))return o;const l=rj(e,o.slice(1),r);return l!==void 0?l:o}).trim(),a&&(t.endsWith(Pa)&&(t=t.slice(0,-Pa.length)),t.startsWith(Pa)&&(t=t.slice(Pa.length)),t=t.replace(ij,n).trim()),t}function wx(t,e){return t==null?e||null:typeof t=="function"?t(e):t}async function gP(t,e={}){const n=e.document||t.resolvedOptions.document;if(!n||!t.dirty)return;const r={shouldRender:!0,tags:[]};if(await t.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return t._domUpdatePromise||(t._domUpdatePromise=new Promise(async i=>{var f;const s=(await t.resolveTags()).map(d=>({tag:d,id:Zh.has(d.tag)?oE(d):d.tag,shouldRender:!0}));let a=t._dom;if(!a){a={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};const d=new Set;for(const h of["body","head"]){const p=(f=n[h])==null?void 0:f.children;for(const m of p){const g=m.tagName.toLowerCase();if(!Zh.has(g))continue;const _={tag:g,props:await hP(m.getAttributeNames().reduce((b,T)=>({...b,[T]:m.getAttribute(T)}),{})),innerHTML:m.innerHTML},v=mP(_);let y=v,E=1;for(;y&&d.has(y);)y=`${v}:${E++}`;y&&(_._d=y,d.add(y)),a.elMap[m.getAttribute("data-hid")||oE(_)]=m}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function o(d,h,p){const m=`${d}:${h}`;a.sideEffects[m]=p,delete a.pendingSideEffects[m]}
23function l({id:d,$el:h,tag:p}){const m=p.tag.endsWith("Attrs");if(a.elMap[d]=h,m||(p.textContent&&p.textContent!==h.textContent&&(h.textContent=p.textContent),p.innerHTML&&p.innerHTML!==h.innerHTML&&(h.innerHTML=p.innerHTML),o(d,"el",()=>{var g;(g=a.elMap[d])==null||g.remove(),delete a.elMap[d]})),p._eventHandlers)for(const g in p._eventHandlers)Object.prototype.hasOwnProperty.call(p._eventHandlers,g)&&h.getAttribute(`data-${g}`)!==""&&((p.tag==="bodyAttrs"?n.defaultView:h).addEventListener(g.substring(2),p._eventHandlers[g].bind(h)),h.setAttribute(`data-${g}`,""));for(const g in p.props){if(!Object.prototype.hasOwnProperty.call(p.props,g))continue;const _=p.props[g],v=`attr:${g}`;if(g==="class"){if(!_)continue;for(const y of _.split(" "))m&&o(d,`${v}:${y}`,()=>h.classList.remove(y)),!h.classList.contains(y)&&h.classList.add(y)}else if(g==="style"){if(!_)continue;for(const y of _.split(";")){const E=y.indexOf(":"),b=y.substring(0,E).trim(),T=y.substring(E+1).trim();o(d,`${v}:${b}`,()=>{h.style.removeProperty(b)}),h.style.setProperty(b,T)}}else h.getAttribute(g)!==_&&h.setAttribute(g,_===!0?"":String(_)),m&&o(d,v,()=>h.removeAttribute(g))}}const c=[],u={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const d of s){const{tag:h,shouldRender:p,id:m}=d;if(p){if(h.tag==="title"){n.title=h.textContent;continue}d.$el=d.$el||a.elMap[m],d.$el?l(d):Zh.has(h.tag)&&c.push(d)}}for(const d of c){const h=d.tag.tagPosition||"head";d.$el=n.createElement(d.tag.tag),l(d),u[h]=u[h]||n.createDocumentFragment(),u[h].appendChild(d.$el)}for(const d of s)await t.hooks.callHook("dom:renderTag",d,n,o);u.head&&n.head.appendChild(u.head),u.bodyOpen&&n.body.insertBefore(u.bodyOpen,n.body.firstChild),u.bodyClose&&n.body.appendChild(u.bodyClose);for(const d in a.pendingSideEffects)a.pendingSideEffects[d]();t._dom=a,await t.hooks.callHook("dom:rendered",{renders:s}),i()}).finally(()=>{t._domUpdatePromise=void 0,t.dirty=!1})),t._domUpdatePromise}function sj(t,e={}){const n=e.delayFn||(r=>setTimeout(r,10));return t._domDebouncedUpdatePromise=t._domDebouncedUpdatePromise||new Promise(r=>n(()=>gP(t,e).then(()=>{delete t._domDebouncedUpdatePromise,r()})))}function aj(t){return e=>{var r,i;const n=((i=(r=e.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:i.innerHTML)||!1;return n&&e.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":s=>{sj(s,t)}}}}}const oj=new Set(["templateParams","htmlAttrs","bodyAttrs"]),lj={hooks:{"tag:normalise":({tag:t})=>{t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.key&&(t.key=t.props.key,delete t.props.key);const e=mP(t);e&&!e.startsWith("meta:og:")&&!e.startsWith("meta:twitter:")&&delete t.key;const n=e||(t.key?`${t.tag}:${t.key}`:!1);n&&(t._d=n)},"tags:resolve":t=>{const e=Object.create(null);for(const r of t.tags){const i=(r.key?`${r.tag}:${r.key}`:r._d)||oE(r),s=e[i];if(s){let o=r==null?void 0:r.tagDuplicateStrategy;if(!o&&oj.has(r.tag)&&(o="merge"),o==="merge"){const l=s.props;l.style&&r.props.style&&(l.style[l.style.length-1]!==";"&&(l.style+=";"),r.props.style=`${l.style} ${r.props.style}`),l.class&&r.props.class?r.props.class=`${l.class} ${r.props.class}`:l.class&&(r.props.class=l.class),e[i].props={...l,...r.props};continue}else if(r._e===s._e){s._duped=s._duped||[],r._d=`${s._d}:${s._duped.length+1}`,s._duped.push(r);continue}else if(hm(r)>hm(s))continue}if(!(r.innerHTML||r.textContent||Object.keys(r.props).length!==0)&&Zh.has(r.tag)){delete e[i];continue}e[i]=r}const n=[];for(const r in e){const i=e[r],s=i._duped;n.push(i),s&&(delete i._duped,n.push(...s))}t.tags=n,t.tags=t.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},cj=new Set(["script","link","bodyAttrs"]),uj=t=>({hooks:{"tags:resolve":e=>{for(const n of e.tags){if(!cj.has(n.tag))continue;const r=n.props;for(const i in r){if(i[0]!=="o"||i[1]!=="n"||!Object.prototype.hasOwnProperty.call(r,i))continue;const s=r[i];typeof s=="function"&&(t.ssr&&bx.has(i)?r[i]=`this.dataset.${i}fired = true`:delete r[i],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[i]=s)}t.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||dm(n.props.src||n.props.href))}},"dom:renderTag":({$el:e,tag:n})=>{var i,s;const r=e==null?void 0:e.dataset;if(r)for(const a in r){if(!a.endsWith("fired"))continue;const o=a.slice(0,-5);bx.has(o)&&((s=(i=n._eventHandlers)==null?void 0:i[o])==null||s.call(e,new Event(o.substring(2))))}}}}),fj=new Set(["link","style","script","noscript"]),dj={hooks:{"tag:normalise":({tag:t})=>{t.key&&fj.has(t.tag)&&(t.props["data-hid"]=t._h=dm(t.key))}}},hj={mode:"server",hooks:{"tags:beforeResolve":t=>{const e={};let n=!1;for(const r of t.tags)r._m!=="server"||r.tag!=="titleTemplate"&&r.tag!=="templateParams"&&r.tag!=="title"||(e[r.tag]=r.tag==="title"||r.tag==="titleTemplate"?r.textContent:r.props,n=!0);n&&t.tags.push({tag:"script",innerHTML:JSON.stringify(e),props:{id:"unhead:payload",type:"application/json"}})}}},pj={hooks:{"tags:resolve":t=>{var e;
23for(const n of t.tags)if(typeof n.tagPriority=="string")for(const{prefix:r,offset:i}of tj){if(!n.tagPriority.startsWith(r))continue;const s=n.tagPriority.substring(r.length),a=(e=t.tags.find(o=>o._d===s))==null?void 0:e._p;if(a!==void 0){n._p=a+i;break}}t.tags.sort((n,r)=>{const i=hm(n),s=hm(r);return i<s?-1:i>s?1:n._p-r._p})}}},mj={meta:"content",link:"href",htmlAttrs:"lang"},gj=["innerHTML","textContent"],yj=t=>({hooks:{"tags:resolve":e=>{var a;const{tags:n}=e;let r;for(let o=0;o<n.length;o+=1)n[o].tag==="templateParams"&&(r=e.tags.splice(o,1)[0].props,o-=1);const i=r||{},s=i.separator||"|";delete i.separator,i.pageTitle=lh(i.pageTitle||((a=n.find(o=>o.tag==="title"))==null?void 0:a.textContent)||"",i,s);for(const o of n){if(o.processTemplateParams===!1)continue;const l=mj[o.tag];if(l&&typeof o.props[l]=="string")o.props[l]=lh(o.props[l],i,s);else if(o.processTemplateParams||o.tag==="titleTemplate"||o.tag==="title")for(const c of gj)typeof o[c]=="string"&&(o[c]=lh(o[c],i,s,o.tag==="script"&&o.props.type.endsWith("json")))}t._templateParams=i,t._separator=s},"tags:afterResolve":({tags:e})=>{let n;for(let r=0;r<e.length;r+=1){const i=e[r];i.tag==="title"&&i.processTemplateParams!==!1&&(n=i)}n!=null&&n.textContent&&(n.textContent=lh(n.textContent,t._templateParams,t._separator))}}}),vj={hooks:{"tags:resolve":t=>{const{tags:e}=t;let n,r;for(let i=0;i<e.length;i+=1){const s=e[i];s.tag==="title"?n=s:s.tag==="titleTemplate"&&(r=s)}if(r&&n){const i=wx(r.textContent,n.textContent);i!==null?n.textContent=i||n.textContent:t.tags.splice(t.tags.indexOf(n),1)}else if(r){const i=wx(r.textContent);i!==null&&(r.textContent=i,r.tag="title",r=void 0)}r&&t.tags.splice(t.tags.indexOf(r),1)}}},_j={hooks:{"tags:afterResolve":t=>{for(const e of t.tags)typeof e.innerHTML=="string"&&(e.innerHTML&&(e.props.type==="application/ld+json"||e.props.type==="application/json")?e.innerHTML=e.innerHTML.replace(/</g,"\\u003C"):e.innerHTML=e.innerHTML.replace(new RegExp(`</${e.tag}`,"g"),`<\\/${e.tag}`))}}};let yP;function Ej(t={}){const e=bj(t);return e.use(aj()),yP=e}function xx(t,e){return!t||t==="server"&&e||t==="client"&&!e}function bj(t={}){const e=Vk();e.addHooks(t.hooks||{}),t.document=t.document||(zG?document:void 0);const n=!t.document,r=()=>{o.dirty=!0,e.callHook("entries:updated",o)};let i=0,s=[];const a=[],o={plugins:a,dirty:!1,resolvedOptions:t,hooks:e,headEntries(){return s},use(l){const c=typeof l=="function"?l(o):l;(!c.key||!a.some(u=>u.key===c.key))&&(a.push(c),xx(c.mode,n)&&e.addHooks(c.hooks||{}))},push(l,c){c==null||delete c.head;const u={_i:i++,input:l,...c};return xx(u.mode,n)&&(s.push(u),r()),{dispose(){s=s.filter(f=>f._i!==u._i),r()},patch(f){for(const d of s)d._i===u._i&&(d.input=u.input=f);r()}}},async resolveTags(){const l={tags:[],entries:[...s]};await e.callHook("entries:resolve",l);for(const c of l.entries){const u=c.resolvedInput||c.input;if(c.resolvedInput=await(c.transform?c.transform(u):u),c.resolvedInput)for(const f of await ej(c)){const d={tag:f,entry:c,resolvedOptions:o.resolvedOptions};await e.callHook("tag:normalise",d),l.tags.push(d.tag)}}return await e.callHook("tags:beforeResolve",l),await e.callHook("tags:resolve",l),await e.callHook("tags:afterResolve",l),l.tags},ssr:n};return[lj,hj,uj,dj,pj,yj,vj,_j,...(t==null?void 0:t.plugins)||[]].forEach(l=>o.use(l)),o.hooks.callHook("init",o),o}function Tj(){return yP}const Sj=Rk[0]==="3";function wj(t){return typeof t=="function"?t():_e(t)}function pm(t){if(t instanceof Promise||t instanceof Date||t instanceof RegExp)return t;const e=wj(t);if(!t||!e)return e;if(Array.isArray(e))return e.map(n=>pm(n));if(typeof e=="object"){const n={};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(r==="titleTemplate"||r[0]==="o"&&r[1]==="n"){n[r]=_e(e[r]);continue}n[r]=pm(e[r])}return n}return e}const xj={hooks:{"entries:resolve":t=>{for(const e of t.entries)e.resolvedInput=pm(e.input)}}},vP="usehead";function Aj(t){return{install(n){Sj&&(n.config.globalProperties.$unhead=t,n.config.globalProperties.$head=t,n.provide(vP,t))}}.install}function Rj(t={}){t.domDelayFn=t.domDelayFn||(n=>tr(()=>setTimeout(()=>n(),0)));const e=Ej(t);return e.use(xj),e.install=Aj(e),e}const uE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fE="__unhead_injection_handler__";function Lj(t){uE[fE]=t}function Cj(){return fE in uE?uE[fE]():sr(vP)||Tj()}function _P(t,e={}){const n=e.head||Cj();if(n)return n.ssr?n.push(t,e):Ij(n,t,e)}function Ij(t,e,n={}){const r=it(!1),i=it({});cg(()=>{i.value=r.value?{}:pm(e)});
23const s=t.push(i.value,n);return ar(i,o=>{s.patch(o)}),_a()&&(go(()=>{s.dispose()}),KI(()=>{r.value=!0}),qI(()=>{r.value=!1})),s}const kj="modulepreload",Pj=function(t,e){return new URL(t,e).href},Ax={},Ve=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){const a=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(c=>{if(c=Pj(c,r),c in Ax)return;Ax[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(!!r)for(let p=a.length-1;p>=0;p--){const m=a[p];if(m.href===c&&(!u||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${f}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":kj,u||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),u)return new Promise((p,m)=>{h.addEventListener("load",p),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(a){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a}return i.then(a=>{for(const o of a||[])o.status==="rejected"&&s(o.reason);return e().catch(s)})};let ep,tp;function Dj(){return ep=$fetch(IT(`builds/meta/${Eu().app.buildId}.json`),{responseType:"json"}),ep.then(t=>{tp=yG(t.matcher)}).catch(t=>{console.error("[nuxt] Error fetching app manifest.",t)}),ep}function Eg(){return ep||Dj()}async function PT(t){const e=typeof t=="string"?t:t.path;if(await Eg(),!tp)return console.error("[nuxt] Error creating app manifest matcher.",tp),{};try{return Yk({},...tp.matchAll(e).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function Rx(t,e={}){const n=await Mj(t,e),r=At(),i=r._payloadCache=r._payloadCache||{};return n in i?i[n]||null:(i[n]=bP(t).then(s=>s?EP(n).then(a=>a||(delete i[n],null)):(i[n]=null,null)),i[n])}const Oj="_payload.json";async function Mj(t,e={}){const n=new URL(t,"http://localhost");if(n.host!=="localhost"||Fs(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+t);const r=Eu(),i=e.hash||(e.fresh?Date.now():r.app.buildId),s=r.app.cdnURL,a=s&&await bP(t)?s:r.app.baseURL;return gg(a,n.pathname,Oj+(i?`?${i}`:""))}async function EP(t){const e=fetch(t).then(n=>n.text().then(TP));try{return await e}catch(n){console.warn("[nuxt] Cannot load payload ",t,n)}return null}async function bP(t=yo().path){const e=At();return t=mg(t),(await Eg()).prerendered.includes(t)?!0:e.runWithContext(async()=>{const r=await PT({path:t});return!!r.prerender&&!r.redirect})}let wo=null;async function Nj(){var r;if(wo)return wo;const t=document.getElementById("__NUXT_DATA__");if(!t)return{};const e=await TP(t.textContent||""),n=t.dataset.src?await EP(t.dataset.src):void 0;return wo={...e,...n,...window.__NUXT__},(r=wo.config)!=null&&r.public&&(wo.config.public=ts(wo.config.public)),wo}async function TP(t){return await jG(t,At()._payloadRevivers)}function SP(t,e){At()._payloadRevivers[t]=e}const Fj=pG(()=>{SP("skipHydrate",t=>{})}),$j=[["NuxtError",t=>vg(t)],["EmptyShallowRef",t=>jc(t==="_"?void 0:t==="0n"?BigInt(0):am(t))],["EmptyRef",t=>it(t==="_"?void 0:t==="0n"?BigInt(0):am(t))],["ShallowRef",t=>jc(t)],["ShallowReactive",t=>ra(t)],["Ref",t=>it(t)],["Reactive",t=>ts(t)]],Bj=wn({name:"nuxt:revive-payload:client",order:-30,async setup(t){let e,n;for(const[r,i]of $j)SP(r,i);Object.assign(t.payload,([e,n]=za(()=>t.runWithContext(Nj)),e=await e,n(),e)),window.__NUXT__=t.payload}}),Uj=[],Hj=wn({name:"nuxt:head",enforce:"pre",setup(t){const e=Rj({plugins:Uj});Lj(()=>At().vueApp._context.provides.usehead),t.vueApp.use(e);{let n=!0;const r=async()=>{n=!1,await gP(e)};e.hooks.hook("dom:beforeRender",i=>{i.shouldRender=!n}),t.hooks.hook("page:start",()=>{n=!0}),t.hooks.hook("page:finish",()=>{t.isHydrating||r()}),t.hooks.hook("app:error",r),t.hooks.hook("app:suspense:resolve",r)}}});/*! 24 * vue-router v4.5.0 25 * (c) 2024 Eduardo San Martin Morote 26 * @license MIT 27 */const lc=typeof document<"u";function wP(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function Gj(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&wP(t.default)}const _t=Object.assign;function Ay(t,e){const n={};for(const r in e){const i=e[r];n[r]=Zi(i)?i.map(t):t(i)}return n}const kf=()=>{},Zi=Array.isArray,xP=/#/g,jj=/&/g,Vj=/\//g,qj=/=/g,Kj=/\?/g,AP=/\+/g,Wj=/%5B/g,zj=/%5D/g,RP=/%5E/g,Yj=/%60/g,LP=/%7B/g,Xj=/%7C/g,CP=/%7D/g,Jj=/%20/g;function DT(t){return encodeURI(""+t).replace(Xj,"|").replace(Wj,"[").replace(zj,"]")}function Qj(t){return DT(t).replace(LP,"{").replace(CP,"}").replace(RP,"^")}function dE(t){return DT(t).replace(AP,"%2B").replace(Jj,"+").replace(xP,"%23").replace(jj,"%26").replace(Yj,"`").replace(LP,"{").replace(CP,"}").replace(RP,"^")}function Zj(t){return dE(t).replace(qj,"%3D")}function eV(t){return DT(t).replace(xP,"%23").replace(Kj,"%3F")}function tV(t){return t==null?"":eV(t).replace(Vj,"%2F")}function ld(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const nV=/\/$/,rV=t=>t.replace(nV,"");function Ry(t,e,n="/"){let r,i={},s="",a="";const o=e.indexOf("#");let l=e.indexOf("?");return o<l&&o>=0&&(l=-1),l>-1&&(r=e.slice(0,l),s=e.slice(l+1,o>-1?o:e.length),i=t(s)),o>-1&&(r=r||e.slice(0,o),a=e.slice(o,e.length)),r=oV(r??e,n),{fullPath:r+(s&&"?")+s+a,path:r,query:i,hash:ld(a)}}function iV(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function Lx(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function sV(t,e,n){const r=e.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Xc(e.matched[r],n.matched[i])&&IP(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Xc(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function IP(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!aV(t[n],e[n]))return!1;return!0}function aV(t,e){return Zi(t)?Cx(t,e):Zi(e)?Cx(e,t):t===e}function Cx(t,e){return Zi(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function oV(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let s=n.length-1,a,o;for(a=0;a<r.length;a++)if(o=r[a],o!==".")if(o==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(a).join("/")}const qi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var cd;(function(t){t.pop="pop",t.push="push"})(cd||(cd={}));var Pf;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Pf||(Pf={}));function lV(t){if(!t)if(lc){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),rV(t)}const cV=/^[^#]+#/;function uV(t,e){return t.replace(cV,"#")+e}function fV(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const bg=()=>({left:window.scrollX,top:window.scrollY});function dV(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;e=fV(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}
27function Ix(t,e){return(history.state?history.state.position-e:-1)+t}const hE=new Map;function hV(t,e){hE.set(t,e)}function pV(t){const e=hE.get(t);return hE.delete(t),e}let mV=()=>location.protocol+"//"+location.host;function kP(t,e){const{pathname:n,search:r,hash:i}=e,s=t.indexOf("#");if(s>-1){let o=i.includes(t.slice(s))?t.slice(s).length:1,l=i.slice(o);return l[0]!=="/"&&(l="/"+l),Lx(l,"")}return Lx(n,t)+r+i}function gV(t,e,n,r){let i=[],s=[],a=null;const o=({state:d})=>{const h=kP(t,location),p=n.value,m=e.value;let g=0;if(d){if(n.value=h,e.value=d,a&&a===p){a=null;return}g=m?d.position-m.position:0}else r(h);i.forEach(_=>{_(n.value,p,{delta:g,type:cd.pop,direction:g?g>0?Pf.forward:Pf.back:Pf.unknown})})};function l(){a=n.value}function c(d){i.push(d);const h=()=>{const p=i.indexOf(d);p>-1&&i.splice(p,1)};return s.push(h),h}function u(){const{history:d}=window;d.state&&d.replaceState(_t({},d.state,{scroll:bg()}),"")}function f(){for(const d of s)d();s=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function kx(t,e,n,r=!1,i=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:i?bg():null}}function yV(t){const{history:e,location:n}=window,r={value:kP(t,n)},i={value:e.state};i.value||s(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const f=t.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?t:t.slice(f))+l:mV()+t+l;try{e[u?"replaceState":"pushState"](c,"",d),i.value=c}catch(h){console.error(h),n[u?"replace":"assign"](d)}}function a(l,c){const u=_t({},e.state,kx(i.value.back,l,i.value.forward,!0),c,{position:i.value.position});s(l,u,!0),r.value=l}function o(l,c){const u=_t({},i.value,e.state,{forward:l,scroll:bg()});s(u.current,u,!0);const f=_t({},kx(r.value,l,null),{position:u.position+1},c);s(l,f,!1),r.value=l}return{location:r,state:i,push:o,replace:a}}function PP(t){t=lV(t);const e=yV(t),n=gV(t,e.state,e.location,e.replace);function r(s,a=!0){a||n.pauseListeners(),history.go(s)}const i=_t({location:"",base:t,go:r,createHref:uV.bind(null,t)},e,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}function vV(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),PP(t)}function _V(t){return typeof t=="string"||t&&typeof t=="object"}function DP(t){return typeof t=="string"||typeof t=="symbol"}const OP=Symbol("");var Px;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Px||(Px={}));function Jc(t,e){return _t(new Error,{type:t,[OP]:!0},e)}function Hs(t,e){return t instanceof Error&&OP in t&&(e==null||!!(t.type&e))}const Dx="[^/]+?",EV={sensitive:!1,strict:!1,start:!0,end:!0},bV=/[.+*?^${}()[\]/\\]/g;function TV(t,e){const n=_t({},EV,e),r=[];let i=n.start?"^":"";const s=[];for(const c of t){const u=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let f=0;f<c.length;f++){const d=c[f];let h=40+(n.sensitive?.25:0);if(d.type===0)f||(i+="/"),i+=d.value.replace(bV,"\\$&"),h+=40;else if(d.type===1){const{value:p,repeatable:m,optional:g,regexp:_}=d;s.push({name:p,repeatable:m,optional:g});const v=_||Dx;if(v!==Dx){h+=10;try{new RegExp(`(${v})`)}catch(E){throw new Error(`Invalid custom RegExp for param "${p}" (${v}): `+E.message)}}let y=m?`((?:${v})(?:/(?:${v}))*)`:`(${v})`;f||(y=g&&c.length<2?`(?:/${y})`:"/"+y),g&&(y+="?"),i+=y,h+=20,g&&(h+=-8),m&&(h+=-20),v===".*"&&(h+=-50)}u.push(h)}r.push(u)}if(n.strict&&n.end){const c=r.length-1;r[c][r[c].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const a=new RegExp(i,n.sensitive?"":"i");function o(c){const u=c.match(a),f={};if(!u)return null;for(let d=1;d<u.length;d++){const h=u[d]||"",p=s[d-1];f[p.name]=h&&p.repeatable?h.split("/"):h}return f}function l(c){let u="",f=!1;for(const d of t){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const h of d)if(h.type===0)u+=h.value;else if(h.type===1){const{value:p,repeatable:m,optional:g}=h,_=p in c?c[p]:"";if(Zi(_)&&!m)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const v=Zi(_)?_.join("/"):_;if(!v)if(g)d.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);u+=v}}return u||"/"}return{re:a,score:r,keys:s,parse:o,stringify:l}}function SV(t,e){let n=0;for(;n<t.length&&n<e.length;){const r=e[n]-t[n];if(r)return r;n++}
27return t.length<e.length?t.length===1&&t[0]===80?-1:1:t.length>e.length?e.length===1&&e[0]===80?1:-1:0}function MP(t,e){let n=0;const r=t.score,i=e.score;for(;n<r.length&&n<i.length;){const s=SV(r[n],i[n]);if(s)return s;n++}if(Math.abs(i.length-r.length)===1){if(Ox(r))return 1;if(Ox(i))return-1}return i.length-r.length}function Ox(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const wV={type:0,value:""},xV=/[a-zA-Z0-9_]/;function AV(t){if(!t)return[[]];if(t==="/")return[[wV]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,r=n;const i=[];let s;function a(){s&&i.push(s),s=[]}let o=0,l,c="",u="";function f(){c&&(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function d(){c+=l}for(;o<t.length;){if(l=t[o++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(c&&f(),a()):l===":"?(f(),n=1):d();break;case 4:d(),n=r;break;case 1:l==="("?n=2:xV.test(l)?d():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&o--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=3:u+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&o--,u="";break;default:e("Unknown state");break}}return n===2&&e(`Unfinished custom RegExp for param "${c}"`),f(),a(),i}function RV(t,e,n){const r=TV(AV(t.path),n),i=_t(r,{record:t,parent:e,children:[],alias:[]});return e&&!i.record.aliasOf==!e.record.aliasOf&&e.children.push(i),i}function LV(t,e){const n=[],r=new Map;e=$x({strict:!1,end:!0,sensitive:!1},e);function i(f){return r.get(f)}function s(f,d,h){const p=!h,m=Nx(f);m.aliasOf=h&&h.record;const g=$x(e,f),_=[m];if("alias"in f){const E=typeof f.alias=="string"?[f.alias]:f.alias;for(const b of E)_.push(Nx(_t({},m,{components:h?h.record.components:m.components,path:b,aliasOf:h?h.record:m})))}let v,y;for(const E of _){const{path:b}=E;if(d&&b[0]!=="/"){const T=d.record.path,S=T[T.length-1]==="/"?"":"/";E.path=d.record.path+(b&&S+b)}if(v=RV(E,d,g),h?h.alias.push(v):(y=y||v,y!==v&&y.alias.push(v),p&&f.name&&!Fx(v)&&a(f.name)),NP(v)&&l(v),m.children){const T=m.children;for(let S=0;S<T.length;S++)s(T[S],v,h&&h.children[S])}h=h||v}return y?()=>{a(y)}:kf}function a(f){if(DP(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(a),d.alias.forEach(a))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function o(){return n}function l(f){const d=kV(f,n);n.splice(d,0,f),f.record.name&&!Fx(f)&&r.set(f.record.name,f)}function c(f,d){let h,p={},m,g;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw Jc(1,{location:f});g=h.record.name,p=_t(Mx(d.params,h.keys.filter(y=>!y.optional).concat(h.parent?h.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),f.params&&Mx(f.params,h.keys.map(y=>y.name))),m=h.stringify(p)}else if(f.path!=null)m=f.path,h=n.find(y=>y.re.test(m)),h&&(p=h.parse(m),g=h.record.name);else{if(h=d.name?r.get(d.name):n.find(y=>y.re.test(d.path)),!h)throw Jc(1,{location:f,currentLocation:d});g=h.record.name,p=_t({},d.params,f.params),m=h.stringify(p)}const _=[];let v=h;for(;v;)_.unshift(v.record),v=v.parent;return{name:g,path:m,params:p,matched:_,meta:IV(_)}}t.forEach(f=>s(f));function u(){n.length=0,r.clear()}return{addRoute:s,resolve:c,removeRoute:a,clearRoutes:u,getRoutes:o,getRecordMatcher:i}}function Mx(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function Nx(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:CV(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function CV(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="object"?n[r]:n;return e}function Fx(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function IV(t){return t.reduce((e,n)=>_t(e,n.meta),{})}function $x(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function kV(t,e){let n=0,r=e.length;for(;n!==r;){const s=n+r>>1;MP(t,e[s])<0?r=s:n=s+1}const i=PV(t);return i&&(r=e.lastIndexOf(i,r-1)),r}function PV(t){let e=t;for(;e=e.parent;)if(NP(e)&&MP(t,e)===0)return e}function NP({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function DV(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;i<r.length;++i){const s=r[i].replace(AP," "),a=s.indexOf("="),o=ld(a<0?s:s.slice(0,a)),l=a<0?null:ld(s.slice(a+1));if(o in e){let c=e[o];Zi(c)||(c=e[o]=[c]),c.push(l)}else e[o]=l}return e}function Bx(t){let e="";for(let n in t){const r=t[n];if(n=Zj(n),r==null){r!==void 0&&(e+=(e.length?"&":"")+n);continue}(Zi(r)?r.map(s=>
vendor: 5,090 bytes, line 27
27s&&dE(s)):[r&&dE(r)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+n,s!=null&&(e+="="+s))})}return e}function OV(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=Zi(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return e}const MV=Symbol(""),Ux=Symbol(""),Tg=Symbol(""),OT=Symbol(""),pE=Symbol("");function Vu(){let t=[];function e(r){return t.push(r),()=>{const i=t.indexOf(r);i>-1&&t.splice(i,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function Da(t,e,n,r,i,s=a=>a()){const a=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,l)=>{const c=d=>{d===!1?l(Jc(4,{from:n,to:e})):d instanceof Error?l(d):_V(d)?l(Jc(2,{from:e,to:d})):(a&&r.enterCallbacks[i]===a&&typeof d=="function"&&a.push(d),o())},u=s(()=>t.call(r&&r.instances[i],e,n,c));let f=Promise.resolve(u);t.length<3&&(f=f.then(c)),f.catch(d=>l(d))})}function Ly(t,e,n,r,i=s=>s()){const s=[];for(const a of t)for(const o in a.components){let l=a.components[o];if(!(e!=="beforeRouteEnter"&&!a.instances[o]))if(wP(l)){const u=(l.__vccOpts||l)[e];u&&s.push(Da(u,n,r,a,o,i))}else{let c=l();s.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${o}" at "${a.path}"`);const f=Gj(u)?u.default:u;a.mods[o]=u,a.components[o]=f;const h=(f.__vccOpts||f)[e];return h&&Da(h,n,r,a,o,i)()}))}}return s}function Hx(t){const e=sr(Tg),n=sr(OT),r=$e(()=>{const l=_e(t.to);return e.resolve(l)}),i=$e(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(Xc.bind(null,u));if(d>-1)return d;const h=Gx(l[c-2]);return c>1&&Gx(u)===h&&f[f.length-1].path!==h?f.findIndex(Xc.bind(null,l[c-2])):d}),s=$e(()=>i.value>-1&&UV(n.params,r.value.params)),a=$e(()=>i.value>-1&&i.value===n.matched.length-1&&IP(n.params,r.value.params));function o(l={}){if(BV(l)){const c=e[_e(t.replace)?"replace":"push"](_e(t.to)).catch(kf);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:$e(()=>r.value.href),isActive:s,isExactActive:a,navigate:o}}function NV(t){return t.length===1?t[0]:t}const FV=ya({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Hx,setup(t,{slots:e}){const n=ts(Hx(t)),{options:r}=sr(Tg),i=$e(()=>({[jx(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[jx(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=e.default&&NV(e.default(n));return t.custom?s:Ke("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},s)}}}),$V=FV;function BV(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function UV(t,e){for(const n in e){const r=e[n],i=t[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Zi(i)||i.length!==r.length||r.some((s,a)=>s!==i[a]))return!1}return!0}function Gx(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const jx=(t,e,n)=>t??e??n,HV=ya({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=sr(pE),i=$e(()=>t.route||r.value),s=sr(Ux,0),a=$e(()=>{let c=_e(s);const{matched:u}=i.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),o=$e(()=>i.value.matched[a.value]);cl(Ux,$e(()=>a.value+1)),cl(MV,o),cl(pE,i);const l=it();return ar(()=>[l.value,o.value,t.name],([c,u,f],[d,h,p])=>{u&&(u.instances[f]=c,h&&h!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!Xc(u,h)||!d)&&(u.enterCallbacks[f]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=i.value,u=t.name,f=o.value,d=f&&f.components[u];if(!d)return Vx(n.default,{Component:d,route:c});const h=f.props[u],p=h?h===!0?c.params:typeof h=="function"?h(c):h:null,g=Ke(d,_t({},p,e,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return Vx(n.default,{Component:g,route:c})||g}}});function Vx(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const FP=HV;function GV(t){const e=LV(t.routes,t),n=t.parseQuery||DV,r=t.stringifyQuery||Bx,i=t.history,s=Vu(),a=Vu(),o=Vu(),l=jc(qi);let c=qi;lc&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ay.bind(null,N=>""+N),f=Ay.bind(null,tV),d=Ay.bind(null,ld);function h(N,$){let j,V;return DP(N)?(j=e.getRecordMatcher(N),V=$):V=N,e.addRoute(V,j)}function p(N){const $=e.getRecordMatcher(N);$&&e.removeRoute($)}function m(){return e.getRoutes().map(N=>N.record)}function g(N){return!!e.getRecordMatcher(N)}function _(N,$){if($=_t({},$||l.value),typeof N=="string"){const D=Ry(n,N,$.path),K=e.resolve({path:D.path}
27,$),ee=i.createHref(D.fullPath);return _t(D,K,{params:d(K.params),hash:ld(D.hash),redirectedFrom:void 0,href:ee})}let j;if(N.path!=null)j=_t({},N,{path:Ry(n,N.path,$.path).path});else{const D=_t({},N.params);for(const K in D)D[K]==null&&delete D[K];j=_t({},N,{params:f(D)}),$.params=f($.params)}const V=e.resolve(j,$),W=N.hash||"";V.params=u(d(V.params));const Y=iV(r,_t({},N,{hash:Qj(W),path:V.path})),C=i.createHref(Y);return _t({fullPath:Y,hash:W,query:r===Bx?OV(N.query):N.query||{}},V,{redirectedFrom:void 0,href:C})}function v(N){return typeof N=="string"?Ry(n,N,l.value.path):_t({},N)}function y(N,$){if(c!==N)return Jc(8,{from:$,to:N})}function E(N){return S(N)}function b(N){return E(_t(v(N),{replace:!0}))}function T(N){const $=N.matched[N.matched.length-1];if($&&$.redirect){const{redirect:j}=$;let V=typeof j=="function"?j(N):j;return typeof V=="string"&&(V=V.includes("?")||V.includes("#")?V=v(V):{path:V},V.params={}),_t({query:N.query,hash:N.hash,params:V.path!=null?{}:N.params},V)}}function S(N,$){const j=c=_(N),V=l.value,W=N.state,Y=N.force,C=N.replace===!0,D=T(j);if(D)return S(_t(v(D),{state:typeof D=="object"?_t({},W,D.state):W,force:Y,replace:C}),$||j);const K=j;K.redirectedFrom=$;let ee;return!Y&&sV(r,V,j)&&(ee=Jc(16,{to:K,from:V}),ae(V,V,!0,!1)),(ee?Promise.resolve(ee):x(K,V)).catch(B=>Hs(B)?Hs(B,2)?B:P(B):O(B,K,V)).then(B=>{if(B){if(Hs(B,2))return S(_t({replace:C},v(B.to),{state:typeof B.to=="object"?_t({},W,B.to.state):W,force:Y}),$||K)}else B=R(K,V,!0,C,W);return L(K,V,B),B})}function A(N,$){const j=y(N,$);return j?Promise.reject(j):Promise.resolve()}function w(N){const $=ve.values().next().value;return $&&typeof $.runWithContext=="function"?$.runWithContext(N):N()}function x(N,$){let j;const[V,W,Y]=jV(N,$);j=Ly(V.reverse(),"beforeRouteLeave",N,$);for(const D of V)D.leaveGuards.forEach(K=>{j.push(Da(K,N,$))});const C=A.bind(null,N,$);return j.push(C),G(j).then(()=>{j=[];for(const D of s.list())j.push(Da(D,N,$));return j.push(C),G(j)}).then(()=>{j=Ly(W,"beforeRouteUpdate",N,$);for(const D of W)D.updateGuards.forEach(K=>{j.push(Da(K,N,$))});return j.push(C),G(j)}).then(()=>{j=[];for(const D of Y)if(D.beforeEnter)if(Zi(D.beforeEnter))for(const K of D.beforeEnter)j.push(Da(K,N,$));else j.push(Da(D.beforeEnter,N,$));return j.push(C),G(j)}).then(()=>(N.matched.forEach(D=>D.enterCallbacks={}),j=Ly(Y,"beforeRouteEnter",N,$,w),j.push(C),G(j))).then(()=>{j=[];for(const D of a.list())j.push(Da(D,N,$));return j.push(C),G(j)}).catch(D=>Hs(D,8)?D:Promise.reject(D))}function L(N,$,j){o.list().forEach(V=>w(()=>V(N,$,j)))}function R(N,$,j,V,W){const Y=y(N,$);if(Y)return Y;const C=$===qi,D=lc?history.state:{};j&&(V||C?i.replace(N.fullPath,_t({scroll:C&&D&&D.scroll},W)):i.push(N.fullPath,W)),l.value=N,ae(N,$,j,C),P()}let k;function F(){k||(k=i.listen((N,$,j)=>{if(!z.listening)return;const V=_(N),W=T(V);if(W){S(_t(W,{replace:!0,force:!0}),V).catch(kf);return}c=V;const Y=l.value;lc&&hV(Ix(Y.fullPath,j.delta),bg()),x(V,Y).catch(C=>Hs(C,12)?C:Hs(C,2)?(S(_t(v(C.to),{force:!0}),V).then(D=>{Hs(D,20)&&!j.delta&&j.type===cd.pop&&i.go(-1,!1)}).catch(kf),Promise.reject()):(j.delta&&i.go(-j.delta,!1),O(C,V,Y))).then(C=>{C=C||R(V,Y,!1),C&&(j.delta&&!Hs(C,8)?i.go(-j.delta,!1):j.type===cd.pop&&Hs(C,20)&&i.go(-1,!1)),L(V,Y,C)}).catch(kf)}))}let U=Vu(),H=Vu(),M;function O(N,$,j){P(N);const V=H.list();return V.length?V.forEach(W=>W(N,$,j)):console.error(N),Promise.reject(N)}function q(){return M&&l.value!==qi?Promise.resolve():new Promise((N,$)=>{U.add([N,$])})}function P(N){return M||(M=!N,F(),U.list().forEach(([$,j])=>N?j(N):$()),U.reset()),N}function ae(N,$,j,V){const{scrollBehavior:W}=t;if(!lc||!W)return Promise.resolve();const Y=!j&&pV(Ix(N.fullPath,0))||(V||!j)&&history.state&&history.state.scroll||null;return tr().then(()=>W(N,$,Y)).then(C=>C&&dV(C)).catch(C=>O(C,N,$))}const ce=N=>i.go(N);let ye;const ve=new Set,z={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,clearRoutes:e.clearRoutes,hasRoute:g,getRoutes:m,resolve:_,options:t,push:E,replace:b,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:s.add,beforeResolve:a.add,afterEach:o.add,onError:H.add,isReady:q,install(N){const $=this;N.component("RouterLink",$V),N.component("RouterView",FP),N.config.globalProperties.$router=$,Object.defineProperty(N.config.globalProperties,"$route",{enumerable:!0,get:()=>_e(l)}),lc&&!ye&&l.value===qi&&(ye=!0,E(i.location).catch(W=>{}));const j={};for(const W in qi)Object.defineProperty(j,W,{get:()=>l.value[W],enumerable:!0});N.provide(Tg,$),N.provide(OT,ra(j)),N.provide(pE,l);const V=N.unmount;ve.add(N),N.unmount=function(){ve.delete(N),ve.size<1&&(c=qi,k&&k(),k=null,l.value=qi,ye=!1,M=!1),V()}}};function G(N){return N.reduce(($,j)=>$.then(()=>w(j)),Promise.resolve())}return z}function jV(t,e){const n=[],r=[],i=[],s=Math.max(e.matched.length,t.matched.length);for(let a=0;a<s;a++){const o=e.matched[a];o&&(t.matched.find(c=>Xc(c,o))?r.push(o):n.push(o));const l=t.matched[a];l&&(e.matched.find(c=>Xc(c,l))||i.push(l))}return[n,r,i]}function Noe(){return sr(Tg)}function VV(t){return sr(OT)}const qV=/(:\w+)\([^)]+\)/g,KV=/(:\w+)[?+*]/g,WV=/:\w+/g,zV=(t,e)=>e.path.replace(qV,"$1").replace(KV,"$1").replace(WV,n=>{var r;return((r=t.params[n.slice(1)])==null?void 0:r.toString())||""}),mE=(t,e)=>{const n=t.route.matched.find(i=>{var s;return((s=i.components)==null?void 0:s.default)===t.Component.type}),r=e??(n==null?void 0:n.meta.key)??(n&&zV(t.route,n));return typeof r=="function"?r(t.route):r},YV=(t,e)=>({default:()=>t?Ke(xU,t===!0?{}:t,e):e});function MT(t){return Array.isArray(t)?t:[t]}const Cy=[{name:"slug",path:"/:slug()",component:()=>Ve(()=>import("./B3jeTz34.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url)},{name:"author-slug",path:"/author/:slug()",component:()=>Ve(()=>import("./qNr-1jGt.js"),__vite__mapDeps([18,11,12,19,20,5,21,22,23,13,14,24]),import.meta.url)},{name:"capabilities-slug",path:"/capabilities/:slug()",component:()=>Ve(()=>import("./C_c8evdR.js"),__vite__mapDeps([25,26,11,12,5,27,28,7,8,20,21,6,29,30,14,17,31]),import.meta.url)},{name:"capabilities",path:"/capabilities",component:()=>Ve(()=>import("./Be6uQUgL.js"),__vite__mapDeps([32,33,9,10,34,19,20,5,21,22,30,17,14,35]),import.meta.url)},{name:"careers-id",path:"/careers/:id()",component:()=>Ve(()=>import("./D5ryZzU-.js"),__vite__mapDeps([36,14,37,38]),import.meta.url)},{name:"index",path:"/",component:()=>Ve(()=>import("./Duk0Y3WW.js"),__vite__mapDeps([39,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,40]),import.meta.url)},{name:"newsroom-slug",path:"/newsroom/:slug()",component:()=>Ve(()=>import("./BmKZVUry.js"),__vite__mapDeps([41,26,11,12,5,27,2,3,4,6,7,8,9,10,13,14,15,28,20,21,29,23,17,42]),import.meta.url)},{name:"newsroom",path:"/newsroom",component:()=>Ve(()=>import("./Bik14U7e.js"),__vite__mapDeps([43,28,7,8,20,5,21,6,29,33,9,10,34,19,22,2,3,4,11,12,13,14,15,17,44]),import.meta.url)}],$P=(t,e,n)=>(e=e===!0?{}:e,{default:()=>{var r;return e?Ke(t,e,n):(r=n.default)==null?void 0:r.call(n)}}),XV=/(:\w+)\([^)]+\)/g,JV=/(:\w+)[?+*]/g,QV=/:\w+/g;function qx(t){const e=(t==null?void 0:t.meta.key)??t.path.replace(XV,"$1").replace(JV,"$1").replace(QV,n=>{var r;return((r=t.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof e=="function"?e(t):e}function ZV(t,e){return t===e||e===qi?!1:qx(t)!==qx(e)?!0:!t.matched.every((r,i)=>{var s,a;return r.components&&r.components.default===((a=(s=e.matched[i])==null?void 0:s.components)==null?void 0:a.default)})}const BP={scrollBehavior(t,e,n){var c;const r=At(),i=((c=xr().options)==null?void 0:c.scrollBehaviorType)??"auto";let s=n||void 0;const a=typeof t.meta.scrollToTop=="function"?t.meta.scrollToTop(t,e):t.meta.scrollToTop;if(!s&&e&&t&&a!==!1&&ZV(t,e)&&(s={left:0,top:0}),t.path===e.path)return e.hash&&!t.hash?{left:0,top:0}:t.hash?{el:t.hash,top:Kx(t.hash),behavior:i}:!1;const o=u=>!!(u.meta.pageTransition??Z_),l=o(e)&&o(t)?"page:transition:finish":"page:finish";return new Promise(u=>{r.hooks.hookOnce(l,async()=>{await new Promise(f=>setTimeout(f,0)),t.hash&&(s={el:t.hash,top:Kx(t.hash),behavior:i}),u(s)})})}};function Kx(t){try{const e=document.querySelector(t);if(e)return(Number.parseFloat(getComputedStyle(e).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}var vc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}
27function eq(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var ch={exports:{}},Iy={exports:{}},ky,Wx;function UP(){if(Wx)return ky;Wx=1;var t=void 0;return ky=function(e){return e!==t&&e!==null},ky}var Py,zx;function tq(){if(zx)return Py;zx=1;var t=UP(),e={object:!0,function:!0,undefined:!0};return Py=function(n){return t(n)?hasOwnProperty.call(e,typeof n):!1},Py}var Dy,Yx;function nq(){if(Yx)return Dy;Yx=1;var t=tq();return Dy=function(e){if(!t(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch{return!1}},Dy}var Oy,Xx;function rq(){if(Xx)return Oy;Xx=1;var t=nq();return Oy=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch{return!1}return!t(e)},Oy}var My,Jx;function iq(){if(Jx)return My;Jx=1;var t=rq(),e=/^\s*class[\s{/}]/,n=Function.prototype.toString;return My=function(r){return!(!t(r)||e.test(n.call(r)))},My}var Ny,Qx;function sq(){return Qx||(Qx=1,Ny=function(){var t=Object.assign,e;return typeof t!="function"?!1:(e={foo:"raz"},t(e,{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}),Ny}var Fy,Zx;function aq(){return Zx||(Zx=1,Fy=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),Fy}var $y,eA;function oq(){return eA||(eA=1,$y=function(){}),$y}var By,tA;function NT(){if(tA)return By;tA=1;var t=oq()();return By=function(e){return e!==t&&e!==null},By}var Uy,nA;function lq(){if(nA)return Uy;nA=1;var t=NT(),e=Object.keys;return Uy=function(n){return e(t(n)?Object(n):n)},Uy}var Hy,rA;function cq(){return rA||(rA=1,Hy=aq()()?Object.keys:lq()),Hy}var Gy,iA;function uq(){if(iA)return Gy;iA=1;var t=NT();return Gy=function(e){if(!t(e))throw new TypeError("Cannot use null or undefined");return e},Gy}var jy,sA;function fq(){if(sA)return jy;sA=1;var t=cq(),e=uq(),n=Math.max;return jy=function(r,i){var s,a,o=n(arguments.length,2),l;for(r=Object(e(r)),l=function(c){try{r[c]=i[c]}catch(u){s||(s=u)}},a=1;a<o;++a)i=arguments[a],t(i).forEach(l);if(s!==void 0)throw s;return r},jy}var Vy,aA;function dq(){return aA||(aA=1,Vy=sq()()?Object.assign:fq()),Vy}var qy,oA;function hq(){if(oA)return qy;oA=1;var t=NT(),e=Array.prototype.forEach,n=Object.create,r=function(i,s){var a;for(a in i)s[a]=i[a]};return qy=function(i){var s=n(null);return e.call(arguments,function(a){t(a)&&r(Object(a),s)}),s},qy}var Ky,lA;function pq(){if(lA)return Ky;lA=1;var t="razdwatrzy";return Ky=function(){return typeof t.contains!="function"?!1:t.contains("dwa")===!0&&t.contains("foo")===!1},Ky}var Wy,cA;function mq(){if(cA)return Wy;cA=1;var t=String.prototype.indexOf;return Wy=function(e){return t.call(this,e,arguments[1])>-1},Wy}var zy,uA;function gq(){return uA||(uA=1,zy=pq()()?String.prototype.contains:mq()),zy}var fA;function yq(){if(fA)return Iy.exports;fA=1;var t=UP(),e=iq(),n=dq(),r=hq(),i=gq(),s=Iy.exports=function(a,o){var l,c,u,f,d;return arguments.length<2||typeof a!="string"?(f=o,o=a,a=null):f=arguments[2],t(a)?(l=i.call(a,"c"),c=i.call(a,"e"),u=i.call(a,"w")):(l=u=!0,c=!1),d={value:o,configurable:l,enumerable:c,writable:u},f?n(r(f),d):d};return s.gs=function(a,o,l){var c,u,f,d;return typeof a!="string"?(f=l,l=o,o=a,a=null):f=arguments[3],t(o)?e(o)?t(l)?e(l)||(f=l,l=void 0):l=void 0:(f=o,o=l=void 0):o=void 0,t(a)?(c=i.call(a,"c"),u=i.call(a,"e")):(c=!0,u=!1),d={get:o,set:l,configurable:c,enumerable:u},f?n(r(f),d):d},Iy.exports}var Yy,dA;function vq(){return dA||(dA=1,Yy=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t}),Yy}var hA;function _q(){return hA||(hA=1,function(t,e){var n=yq(),r=vq(),i=Function.prototype.apply,s=Function.prototype.call,a=Object.create,o=Object.defineProperty,l=Object.defineProperties,c=Object.prototype.hasOwnProperty,u={configurable:!0,enumerable:!1,writable:!0},f,d,h,p,m,g,_;f=function(v,y){var E;return r(y),c.call(this,"__ee__")?E=this.__ee__:(E=u.value=a(null),o(this,"__ee__",u),u.value=null),E[v]?typeof E[v]=="object"?E[v].push(y):E[v]=[E[v],y]:E[v]=y,this},d=function(v,y){var E,b;return r(y),b=this,f.call(this,v,E=function(){h.call(b,v,E),i.call(y,this,arguments)}),E.__eeOnceListener__=y,this},h=function(v,y){var E,b,T,S;if(r(y),!c.call(this,"__ee__"))return this;if(E=this.__ee__,!E[v])return this;if(b=E[v],typeof b=="object")for(S=0;T=b[S];++S)(T===y||T.__eeOnceListener__===y)&&(b.length===2?E[v]=b[S?0:1]:b.splice(S,1));else(b===y||b.__eeOnceListener__===y)&&delete E[v];return this},p=function(v){var y,E,b,T,S;if(c.call(this,"__ee__")&&(T=this.__ee__[v],!!T))if(typeof T=="object"){for(E=arguments.length,S=new Array(E-1),y=1;y<E;++y)S[y-1]=arguments[y];for(T=T.slice(),y=0;b=T[y];++y)i.call(b,this,S)}else switch(arguments.length){case 1:s.call(T,this);break;case 2:s.call(T,this,arguments[1]);break;case 3:s.call(T,this,arguments[1],arguments[2]);break;default:for(E=arguments.length,S=new Array(E-1),y=1;y<E;++y)S[y-1]=arguments[y];i.call(T,this,S)}},m={on:f,once:d,off:h,emit:p},g={on:n(f),once:n(d),off:n(h),emit:n(p)},_=l({},g),t.exports=e=function(v){return v==null?a(_):l(Object(v),g)},e.methods=m}
27(ch,ch.exports)),ch.exports}var Eq=_q();const bq=bu(Eq),Fr=new bq,Tq={scrollBehavior(t,e,n){return new Promise(r=>{(t.path==="/careers"||t.hash==="#opportunities")&&e.path.includes("/careers/")&&n?Fr.once("transition:enter:after",async()=>{await tr(),setTimeout(()=>{r({...n,behavior:"instant"})},200)}):t.path==="/newsroom"&&t.query&&Object.keys(t.query).length>0&&n?Fr.once("transition:enter:after",async()=>{await tr(),setTimeout(()=>{r({...n,behavior:"instant"})},500)}):n?Fr.once("transition:enter:after",async()=>{await tr(),r({...n,behavior:"instant"})}):t.hash?Fr.once("transition:enter:after",async()=>{await tr();const i=document.querySelector(t.hash);r({el:i,behavior:"smooth"})}):Fr.once("transition:enter:after",async()=>{await tr(),r({left:0,top:0,behavior:"instant"})})})}},Sq={hashMode:!1,scrollBehaviorType:"auto"},gE=BP.hashMode??!1,bi={...Sq,...BP,...Tq},wq=async t=>{var l;let e,n;if(!((l=t.meta)!=null&&l.validate))return;const r=At(),i=xr(),s=([e,n]=za(()=>Promise.resolve(t.meta.validate(t))),e=await e,n(),e);if(s===!0)return;const a=vg({statusCode:s&&s.statusCode||404,statusMessage:s&&s.statusMessage||`Page Not Found: ${t.fullPath}`,data:{path:t.fullPath}}),o=i.beforeResolve(c=>{if(o(),c===t){const u=i.afterEach(async()=>{u(),await r.runWithContext(()=>yc(a)),window==null||window.history.pushState({},"",t.fullPath)});return!1}})};function HP(t){return new URL(window.location.href)}const xq={"/culture":"/careers","/rides":"/","/press":"/aurora-media-kit","/purchase_terms":"/terms-of-service","/aurora-driver":"/","/aurora-horizion":"/freight","/aurora-connect":"/","/our-service":"/","/ai":"/"},Aq=async(t,e)=>{let n,r;const i=HP();try{const s=([n,r]=za(()=>$fetch("/api/redirects")),n=await n,r(),n);if(s!=null&&s.length){const a=s.find(o=>o.source===t.path);if(a)return ri(a.destination,{redirectCode:a.statusCode||301,external:a.destination.startsWith("http")})}}catch(s){console.error("Error fetching redirects:",s)}if(i.host==="showcase.aurora.tech")return ri(`${i.protocol}//aurora.tech/capabilities`,{redirectCode:301,external:!0});if(i.host==="blog.aurora.tech")return ri(`${i.protocol}//aurora.tech/newsroom`,{redirectCode:301,external:!0});if(i.host==="events.aurora.tech")return ri(`${i.protocol}//aurora.tech/newsroom`,{redirectCode:301,external:!0});if(t.path.startsWith("/blog"))return ri("/newsroom"+t.path.replace("/blog",""),{redirectCode:301});if(t.path.startsWith("/jobs"))return ri({path:"/careers"+t.path.replace("/jobs",""),query:t.query},{redirectCode:301});if(t.path.startsWith("/security"))return ri("/manage-your-data"+t.path.replace("/security",""),{redirectCode:301});if(t.path.startsWith("/aurora-horizon"))return ri("/freight"+t.path.replace("/aurora-horizon",""),{redirectCode:301});if(t.path.startsWith("/purchase_terms"))return ri("/purchase-terms"+t.path.replace("/purchase_terms",""),{redirectCode:301});if(t.query.ashby_jid){const{ashby_jid:s,...a}=t.query,o=`/careers/${s}`;return t.path===o?void 0:t.path.startsWith("/careers/")?ri({path:t.path,query:a},{replace:!0}):ri({path:o,query:a})}for(const[s,a]of Object.entries(xq))if(t.path===s)return ri(a,{redirectCode:301})},Rq=(t,e)=>{t.path.startsWith("/careers/")||sessionStorage.removeItem("jobBoardSearch")},Lq=async t=>{let e,n;const r=([e,n]=za(()=>PT({path:t.path})),e=await e,n(),e);if(r.redirect)return Fs(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},Cq=[wq,Aq,Rq,Lq],Df={};function Iq(t,e,n){const{pathname:r,search:i,hash:s}=e,a=t.indexOf("#");if(a>-1){const c=s.includes(t.slice(a))?t.slice(a).length:1;let u=s.slice(c);return u[0]!=="/"&&(u="/"+u),cx(u,"")}const o=cx(r,t),l=!n||AH(o,n,{trailingSlash:!0})?o:n;return l+(l.includes("?")?"":i)+s}const kq=wn({name:"nuxt:router",enforce:"pre",async setup(t){var g;let e,n,r=Eu().app.baseURL;gE&&!r.includes("#")&&(r+="#");const i=((g=bi.history)==null?void 0:g.call(bi,r))??(gE?vV(r):PP(r)),s=bi.routes?([e,n]=za(()=>bi.routes(Cy)),e=await e,n(),e??Cy):Cy;let a;const o=GV({...bi,scrollBehavior:(_,v,y)=>{if(v===qi){a=y;return}if(bi.scrollBehavior){if(o.options.scrollBehavior=bi.scrollBehavior,"scrollRestoration"in window.history){const E=o.beforeEach(()=>{E(),window.history.scrollRestoration="manual"})}return bi.scrollBehavior(_,qi,a||y)}},history:i,routes:s}
27);bi.routes&&bi.routes,"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),t.vueApp.use(o);const l=jc(o.currentRoute.value);o.afterEach((_,v)=>{l.value=v}),Object.defineProperty(t.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const c=Iq(r,window.location,t.payload.path),u=jc(o.currentRoute.value),f=()=>{u.value=o.currentRoute.value};t.hook("page:finish",f),o.afterEach((_,v)=>{var y,E,b,T;((E=(y=_.matched[0])==null?void 0:y.components)==null?void 0:E.default)===((T=(b=v.matched[0])==null?void 0:b.components)==null?void 0:T.default)&&f()});const d={};for(const _ in u.value)Object.defineProperty(d,_,{get:()=>u.value[_],enumerable:!0});t._route=ra(d),t._middleware=t._middleware||{global:[],named:{}};const h=yg();o.afterEach(async(_,v,y)=>{delete t._processingMiddleware,!t.isHydrating&&h.value&&await t.runWithContext(xG),y&&await t.callHook("page:loading:end")});try{[e,n]=za(()=>o.isReady()),await e,n()}catch(_){[e,n]=za(()=>t.runWithContext(()=>yc(_))),await e,n()}const p=c!==o.currentRoute.value.fullPath?o.resolve(c):o.currentRoute.value;f();const m=t.payload.state._layout;return o.beforeEach(async(_,v)=>{var y;await t.callHook("page:loading:start"),_.meta=ts(_.meta),t.isHydrating&&m&&!ro(_.meta.layout)&&(_.meta.layout=m),t._processingMiddleware=!0;{const E=new Set([...Cq,...t._middleware.global]);for(const b of _.matched){const T=b.meta.middleware;if(T)for(const S of MT(T))E.add(S)}{const b=await t.runWithContext(()=>PT({path:_.path}));if(b.appMiddleware)for(const T in b.appMiddleware)b.appMiddleware[T]?E.add(T):E.delete(T)}for(const b of E){const T=typeof b=="string"?t._middleware.named[b]||await((y=Df[b])==null?void 0:y.call(Df).then(A=>A.default||A)):b;if(!T)throw new Error(`Unknown route middleware: '${b}'.`);const S=await t.runWithContext(()=>T(_,v));if(!t.payload.serverRendered&&t.isHydrating&&(S===!1||S instanceof Error)){const A=S||nE({statusCode:404,statusMessage:`Page Not Found: ${c}`});return await t.runWithContext(()=>yc(A)),!1}if(S!==!0&&(S||S===!1))return S}}}),o.onError(async()=>{delete t._processingMiddleware,await t.callHook("page:loading:end")}),o.afterEach(async(_,v)=>{_.matched.length===0&&await t.runWithContext(()=>yc(nE({statusCode:404,fatal:!1,statusMessage:`Page not found: ${_.fullPath}`,data:{path:_.fullPath}})))}),t.hooks.hookOnce("app:created",async()=>{try{"name"in p&&(p.name=void 0),await o.replace({...p,force:!0}),o.options.scrollBehavior=bi.scrollBehavior}catch(_){await t.runWithContext(()=>yc(_))}}),{provide:{router:o}}}}),yE=globalThis.requestIdleCallback||(t=>{const e=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-e))};return setTimeout(()=>{t(n)},1)}),Pq=globalThis.cancelIdleCallback||(t=>{clearTimeout(t)}),Sg=t=>{const e=At();e.isHydrating?e.hooks.hookOnce("app:suspense:resolve",()=>{yE(()=>t())}):yE(()=>t())};async function Pc(...t){const e=typeof t[t.length-1]=="string"?t.pop():void 0;typeof t[0]!="string"&&t.unshift(e);const[n,r,i]=t;if(!n||typeof n!="string")throw new TypeError("[nuxt] [callOnce] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [callOnce] fn must be a function: "+r);const s=At();(i==null?void 0:i.mode)==="navigation"&&s.hooks.hookOnce("page:start",()=>{s.payload.once.delete(n)}),!s.payload.once.has(n)&&(s._once=s._once||{},s._once[n]=s._once[n]||r()||!0,await s._once[n],s.payload.once.add(n),delete s._once[n])}const Dq="$s";function GP(...t){const e=typeof t[t.length-1]=="string"?t.pop():void 0;typeof t[0]!="string"&&t.unshift(e);const[n,r]=t;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const i=Dq+n,s=At(),a=_T(s.payload.state,i);if(a.value===void 0&&r){const o=r();if(Wt(o))return s.payload.state[i]=o,o;a.value=o}return a}async function jP(t,e=xr()){const{path:n,matched:r}=e.resolve(t);if(!r.length||(e._routePreloaded||(e._routePreloaded=new Set),e._routePreloaded.has(n)))return;const i=e._preloadPromises=e._preloadPromises||[];if(i.length>4)return Promise.all(i).then(()=>jP(t,e));e._routePreloaded.add(n);const s=r.map(a=>{var o;return(o=a.components)==null?void 0:o.default}).filter(a=>typeof a=="function");for(const a of s){const o=Promise.resolve(a()).catch(()=>{}).finally(()=>i.splice(i.indexOf(o)));i.push(o)}await Promise.all(i)}function Oq(t={}){const e=t.path||window.location.pathname;let n={};try{n=am(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(t.force||(n==null?void 0:n.path)!==e||(n==null?void 0:n.expires)<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:e,expires:Date.now()+(t.ttl??1e4)}))}catch{}if(t.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:At().payload.state}))}catch{}window.location.pathname!==e?window.location.href=e:window.location.reload()}}const Mq=(...t)=>t.find(e=>e!==void 0);function Nq(t){const e=t.componentName||"NuxtLink";function n(s){return!gE&&typeof s=="string"&&s.startsWith("#")}function r(s,a){if(!s||t.trailingSlash!=="append"&&t.trailingSlash!=="remove")return s;if(typeof s=="string")return pA(s,t.trailingSlash);const o="path"in s&&s.path!==void 0?s.path:a(s).path;return{...s,name:void 0,path:pA(o,t.trailingSlash)}}function i(s){const a=xr(),o=Eu(),l=$e(()=>!!s.target&&s.target!=="_self"),c=$e(()=>{const g=s.to||s.href||"";return typeof g=="string"&&Fs(g,{acceptRelative:!0})}),u=Pw("RouterLink"),f=typeof u!="string"?u.useLink:void 0,d=$e(()=>{if(s.external)return!0;const g=s.to||s.href||"";return typeof g=="object"?!1:g===""||c.value}),h=$e(()=>{const g=s.to||s.href||"";return d.value?g:r(g,a.resolve)}),p=d.value||f==null?void 0:f({...s,to:h}),m=$e(()=>{var g;if(!h.value||c.value||n(h.value))return h.value;if(d.value){const _=typeof h.value=="object"&&"path"in h.value?iE(h.value):h.value,v=typeof _=="object"?a.resolve(_).href:_;return r(v,a.resolve)}return typeof h.value=="object"?((g=a.resolve(h.value))==null?void 0:g.href)??null:r(gg(o.app.baseURL,h.value),a.resolve)});return{to:h,hasTarget:l,isAbsoluteUrl:c,isExternal:d,href:m,isActive:(p==null?void 0:p.isActive)??$e(()=>h.value===a.currentRoute.value.path),isExactActive:(p==null?void 0:p.isExactActive)??$e(()=>h.value===a.currentRoute.value.path),route:(p==null?void 0:p.route)??$e(()=>a.resolve(h.value)),async navigate(){await ri(m.value,{replace:s.replace,external:d.value||l.value})}}}return ya({name:e,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},useLink:i,setup(s,{slots:a}){const o=xr(),{to:l,href:c,navigate:u,isExternal:f,hasTarget:d,isAbsoluteUrl:h}=i(s),p=it(!1),m=it(null),g=y=>{var E;m.value=s.custom?(E=y==null?void 0:y.$el)==null?void 0:E.nextElementSibling:y==null?void 0:y.$el};function _(y){var E,b;
27return!p.value&&(typeof s.prefetchOn=="string"?s.prefetchOn===y:((E=s.prefetchOn)==null?void 0:E[y])??((b=t.prefetchOn)==null?void 0:b[y]))&&(s.prefetch??t.prefetch)!==!1&&s.noPrefetch!==!0&&s.target!=="_blank"&&!Bq()}async function v(y=At()){if(p.value)return;p.value=!0;const E=typeof l.value=="string"?l.value:f.value?iE(l.value):o.resolve(l.value).fullPath,b=f.value?new URL(E,window.location.href).href:E;await Promise.all([y.hooks.callHook("link:prefetch",b).catch(()=>{}),!f.value&&!d.value&&jP(l.value,o).catch(()=>{})])}if(_("visibility")){const y=At();let E,b=null;Mi(()=>{const T=Fq();Sg(()=>{E=yE(()=>{var S;(S=m==null?void 0:m.value)!=null&&S.tagName&&(b=T.observe(m.value,async()=>{b==null||b(),b=null,await v(y)}))})})}),go(()=>{E&&Pq(E),b==null||b(),b=null})}return()=>{var b;if(!f.value&&!d.value&&!n(l.value)){const T={ref:g,to:l.value,activeClass:s.activeClass||t.activeClass,exactActiveClass:s.exactActiveClass||t.exactActiveClass,replace:s.replace,ariaCurrentValue:s.ariaCurrentValue,custom:s.custom};return s.custom||(_("interaction")&&(T.onPointerenter
27=v.bind(null,void 0),T.onFocus=v.bind(null,void 0)),p.value&&(T.class=s.prefetchedClass||t.prefetchedClass),T.rel=s.rel||void 0),Ke(Pw("RouterLink"),T,a.default)}const y=s.target||null,E=Mq(s.noRel?"":s.rel,t.externalRelAttribute,h.value||d.value?"noopener noreferrer":"")||null;return s.custom?a.default?a.default({href:c.value,navigate:u,prefetch:v,get route(){if(!c.value)return;const T=new URL(c.value,window.location.href);return{path:T.pathname,fullPath:T.pathname,get query(){return Mk(T.search)},hash:T.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:c.value}},rel:E,target:y,isExternal:f.value||d.value,isActive:!1,isExactActive:!1}):null:Ke("a",{ref:m,href:c.value||null,rel:E,target:y},(b=a.default)==null?void 0:b.call(a))}}})}const FT=Nq(sG);function pA(t,e){const n=e==="append"?lm:mg;return Fs(t)&&!t.startsWith("http")?t:n(t,!0)}function Fq(){const t=At();if(t._observer)return t._observer;let e=null;const n=new Map,r=(s,a)=>(e||(e=new IntersectionObserver(o=>{for(const l of o){const c=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&c&&c()}})),n.set(s,a),e.observe(s),()=>{n.delete(s),e==null||e.unobserve(s),n.size===0&&(e==null||e.disconnect(),e=null)});return t._observer={observe:r}}const $q=/2g/;function Bq(){const t=navigator.connection;return!!(t&&(t.saveData||$q.test(t.effectiveType)))}function Uq(t){typeof t.indexable<"u"&&(t.indexable=String(t.indexable)!=="false"),typeof t.trailingSlash<"u"&&!t.trailingSlash&&(t.trailingSlash=String(t.trailingSlash)!=="false"),t.url&&!Fs(String(t.url),{acceptRelative:!0,strict:!1})&&(t.url=wH(String(t.url)));const e=Object.keys(t).sort((r,i)=>r.localeCompare(i)),n={};for(const r of e)n[r]=t[r];return n}function Hq(t){const n=[];function r(s){if(!s||typeof s!="object"||Object.keys(s).length===0)return()=>{};s._context;const a={};for(const l in s){const c=s[l];typeof c<"u"&&c!==""&&(a[l]=c)}let o;return Object.keys(a).filter(l=>!l.startsWith("_")).length>0&&(o=n.push(a)),()=>{typeof o<"u"&&n.splice(o-1,1)}}function i(s){var o;const a={};s!=null&&s.debug&&(a._context={}),a._priority={};for(const l in n.sort((c,u)=>(c._priority||0)-(u._priority||0)))for(const c in n[l]){const u=c,f=s!=null&&s.resolveRefs?tU(n[l][c]):n[l][c];!c.startsWith("_")&&typeof f<"u"&&f!==""&&(a[c]=f,typeof n[l]._priority<"u"&&n[l]._priority!==-1&&(a._priority[u]=n[l]._priority),s!=null&&s.debug&&(a._context[u]=((o=n[l]._context)==null?void 0:o[u])||n[l]._context||"anonymous"))}return s!=null&&s.skipNormalize?a:Uq(a)}return{stack:n,push:r,get:i}}const Gq=wn({name:"nuxt-site-config:init",enforce:"pre",async setup(t){var r;const e=Hq(),n=GP("site-config");{const i=n.value||window.__NUXT_SITE_CONFIG__||{};for(const s in i)s[0]!=="_"&&e.push({[s]:i[s],_priority:((r=i._priority)==null?void 0:r[s])||-1})}return{provide:{nuxtSiteConfig:e}}}}),jq=wn({name:"nuxt:payload",setup(t){xr().beforeResolve(async(e,n)=>{if(e.path===n.path)return;const r=await Rx(e.path);r&&Object.assign(t.static.data,r.data)}),Sg(()=>{var e;t.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await Rx(n)}),((e=navigator.connection)==null?void 0:e.effectiveType)!=="slow-2g"&&setTimeout(Eg,1e3)})}}),Vq=wn(()=>{const t=xr();Sg(()=>{t.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),qq=wn(t=>{let e;async function n(){const r=await Eg();e&&clearTimeout(e),e=setTimeout(n,px);try{const i=await $fetch(IT("builds/latest.json")+`?${Date.now()}`);i.id!==r.id&&t.hooks.callHook("app:manifest:update",i)}catch{}}Sg(()=>{e=setTimeout(n,px)})}),Kq=wn({name:"nuxt:chunk-reload",setup(t){const e=xr(),n=Eu(),r=new Set;e.beforeEach(()=>{r.clear()}),t.hook("app:chunkError",({error:s})=>{r.add(s)});function i(s){const o="href"in s&&s.href[0]==="#"?n.app.baseURL+s.href:gg(n.app.baseURL,s.fullPath);Oq({path:o,persistState:!0})}t.hook("app:manifest:update",()=>{e.beforeResolve(i)}),e.onError((s,a)=>{r.has(s)&&i(a)})}}),Wq=wn({name:"pinia",setup(t){const e=CG();return t.vueApp.use(e),Yc(e),t.payload&&t.payload.pinia&&(e.state.value=t.payload.pinia),{provide:{pinia:e}}},hooks:{"app:rendered"(){const t=At();t.payload.pinia=lt(t.$pinia).state.value,Yc(void 0)}}}),zq=wn({name:"nuxt:global-components"}),$a={default:kw(()=>Ve(()=>import("./Emhr2sok.js"),__vite__mapDeps([45,37,3,4,6,46]),import.meta.url).then(t=>t.default||t)),minimal:kw(()=>Ve(()=>import("./CRsGVGj_.js"),__vite__mapDeps([47,37]),import.meta.url).then(t=>t.default||t))},Yq=wn({name:"nuxt:prefetch",setup(t){const e=xr();t.hooks.hook("app:mounted",()=>{e.beforeEach(async n=>{var i;const r=(i=n==null?void 0:n.meta)==null?void 0:i.layout;r&&typeof $a[r]=="function"&&await $a[r]()})}),t.hooks.hook("link:prefetch",n=>{if(Fs(n))return;const r=e.resolve(n);if(!r)return;const i=r.meta.layout;let s=MT(r.meta.middleware);s=s.filter(a=>
27typeof a=="string");for(const a of s)typeof Df[a]=="function"&&Df[a]();i&&typeof $a[i]=="function"&&$a[i]()})}}),Gn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Of="9.15.0",Ot=globalThis;function Ul(){return wg(Ot),Ot}function wg(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||Of,e[Of]=e[Of]||{}}function xg(t,e,n=Ot){const r=n.__SENTRY__=n.__SENTRY__||{},i=r[Of]=r[Of]||{};return i[t]||(i[t]=e())}const VP=Object.prototype.toString;function qP(t){switch(VP.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Su(t,Error)}}function Tu(t,e){return VP.call(t)===`[object ${e}]`}function Foe(t){return Tu(t,"ErrorEvent")}function $oe(t){return Tu(t,"DOMError")}function Boe(t){return Tu(t,"DOMException")}function Ya(t){return Tu(t,"String")}function Xq(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Uoe(t){return t===null||Xq(t)||typeof t!="object"&&typeof t!="function"}function KP(t){return Tu(t,"Object")}function Jq(t){return typeof Event<"u"&&Su(t,Event)}function Qq(t){return typeof Element<"u"&&Su(t,Element)}function Zq(t){return Tu(t,"RegExp")}function $T(t){return!!(t!=null&&t.then&&typeof t.then=="function")}function e3(t){return KP(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Su(t,e){try{return t instanceof e}catch{return!1}}function WP(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function zP(t){return typeof Request<"u"&&Su(t,Request)}const BT=Ot,t3=80;function Qc(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,i=[];let s=0,a=0;const o=" > ",l=o.length;let c;const u=Array.isArray(e)?e:e.keyAttrs,f=!Array.isArray(e)&&e.maxStringLength||t3;for(;n&&s++<r&&(c=n3(n,u),!(c==="html"||s>1&&a+i.length*l+c.length>=f));)i.push(c),a+=c.length,n=n.parentNode;return i.reverse().join(o)}catch{return"<unknown>"}}function n3(t,e){const n=t,r=[];if(!(n!=null&&n.tagName))return"";if(BT.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const i=e!=null&&e.length?e.filter(a=>n.getAttribute(a)).map(a=>[a,n.getAttribute(a)]):null;if(i!=null&&i.length)i.forEach(a=>{r.push(`[${a[0]}="${a[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const a=n.className;if(a&&Ya(a)){const o=a.split(/\s+/);for(const l of o)r.push(`.${l}`)}}const s=["aria-label","type","name","title","alt"];for(const a of s){const o=n.getAttribute(a);o&&r.push(`[${a}="${o}"]`)}return r.join("")}function YP(){try{return BT.document.location.href}catch{return""}}function r3(t){if(!BT.HTMLElement)return null;let e=t;const n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}const vo=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,i3="Sentry Logger ",mA=["debug","info","warn","error","log","assert","trace"],gA={};function wu(t){if(!("console"in Ot))return t();const e=Ot.console,n={},r=Object.keys(gA);r.forEach(i=>{const s=gA[i];n[i]=e[i],e[i]=s});try{return t()}finally{r.forEach(i=>{e[i]=n[i]})}}function s3(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return vo?mA.forEach(n=>{e[n]=(...r)=>{t&&wu(()=>{Ot.console[n](`${i3}[${n}]:`,...r)})}}):mA.forEach(n=>{e[n]=()=>{}}),e}const Ye=xg("logger",s3);function mm(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function Hoe(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const i=t[r];try{WP(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function a3(t,e,n=!1){return Ya(t)?Zq(e)?e.test(t):Ya(e)?n?t===e:t.includes(e):!1:!1}function Xy(t,e=[],n=!1){return e.some(r=>a3(t,r,n))}function vE(t,e,n){if(!(e in t))return;const r=t[e];if(typeof r!="function")return;const i=n(r);typeof i=="function"&&XP(i,r);try{t[e]=i}catch{vo&&Ye.log(`Failed to replace method "${e}" in object`,t)}}function es(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{vo&&Ye.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function XP(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,es(t,"__sentry_original__",e)}catch{}}function o3(t){return t.__sentry_original__}function JP(t){if(qP(t))return{message:t.message,name:t.name,stack:t.stack,...vA(t)};if(Jq(t)){const e={type:t.type,target:yA(t.target),currentTarget:yA(t.currentTarget),...vA(t)};return typeof CustomEvent<"u"&&Su(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function yA(t){try{return Qq(t)?Qc(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function vA(t){if(typeof t=="object"&&t!==null){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function Goe(t,e=40){const n=Object.keys(JP(t));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return mm(r,e);for(let i=n.length;i>0;i--){const s=n.slice(0,i).join(", ");
27if(!(s.length>e))return i===n.length?s:mm(s,e)}return""}function l3(){const t=Ot;return t.crypto||t.msCrypto}function Xa(t=l3()){let e=()=>Math.random()*16;try{if(t!=null&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t!=null&&t.getRandomValues&&(e=()=>{const n=new Uint8Array(1);return t.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(e()&15)>>n/4).toString(16))}function QP(t){var e,n;return(n=(e=t.exception)==null?void 0:e.values)==null?void 0:n[0]}function joe(t){const{message:e,event_id:n}=t;if(e)return e;const r=QP(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function c3(t,e,n){const r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=e||""),s.type||(s.type="Error")}function ZP(t,e){const n=QP(t);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...e},e&&"data"in e){const s={...i==null?void 0:i.data,...e.data};n.mechanism.data=s}}function Voe(t){if(u3(t))return!0;try{es(t,"__sentry_captured__",!0)}catch{}return!1}function u3(t){try{return t.__sentry_captured__}catch{}}const eD=1e3;function UT(){return Date.now()/eD}function f3(){const{performance:t}=Ot;if(!(t!=null&&t.now))return UT;const e=Date.now()-t.now(),n=t.timeOrigin==null?e:t.timeOrigin;return()=>(n+t.now())/eD}const Tr=f3();let Jy;function d3(){var u;const{performance:t}=Ot;if(!(t!=null&&t.now))return[void 0,"none"];const e=3600*1e3,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,s=i<e,a=(u=t.timing)==null?void 0:u.navigationStart,l=typeof a=="number"?Math.abs(a+n-r):e,c=l<e;return s||c?i<=l?[t.timeOrigin,"timeOrigin"]:[a,"navigationStart"]:[r,"dateNow"]}function Ni(){return Jy||(Jy=d3()),Jy[0]}function h3(t){const e=Tr(),n={sid:Xa(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>m3(n)};return Ag(n,t),n}function Ag(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Tr(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:Xa()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function p3(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),Ag(t,n)}function m3(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}function Rg(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&Object.keys(e).length===0)return t;const r={...t};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=Rg(r[i],e[i],n-1));return r}const _E="_sentrySpan";function ud(t,e){e?es(t,_E,e):delete t[_E]}function gm(t){return t[_E]}function io(){return Xa()}function $d(){return Xa().substring(16)}const g3=100;class Os{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:io(),sampleRand:Math.random()}}clone(){const e=new Os;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,ud(e,gm(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ag(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e,r=n instanceof Os?n.getScopeData():KP(n)?e:void 0,{tags:i,extra:s,user:a,contexts:o,level:l,fingerprint:c=[],propagationContext:u}=r||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...s},this._contexts={...this._contexts,...o},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),c.length&&(this._fingerprint=c),u&&(this._propagationContext=u),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,ud(this,void 0),this._attachments=[],this.setPropagationContext({traceId:io(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){var s;const r=typeof n=="number"?n:g3;if(r<=0)return this;const i={timestamp:UT(),...e,message:e.message?mm(e.message,2048):e.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),(s=this._client)==null||s.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:gm(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Rg(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=(n==null?void 0:n.event_id)||Xa();if(!this._client)return Ye.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureMessage(e,n,r){const i=(r==null?void 0:r.event_id)||Xa();if(!this._client)return Ye.warn("No client configured on scope - will not capture message!"),i;const s=new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:s,...r,event_id:i},this),i}captureEvent(e,n){const r=(n==null?void 0:n.event_id)||Xa();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(Ye.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
27h(e=>{e(this)}),this._notifyingListeners=!1)}}function y3(){return xg("defaultCurrentScope",()=>new Os)}function v3(){return xg("defaultIsolationScope",()=>new Os)}class _3{constructor(e,n){let r;e?r=e:r=new Os;let i;n?i=n:i=new Os,this._stack=[{scope:r}],this._isolationScope=i}withScope(e){const n=this._pushScope();let r;try{r=e(n)}catch(i){throw this._popScope(),i}return $T(r)?r.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Zc(){const t=Ul(),e=wg(t);return e.stack=e.stack||new _3(y3(),v3())}function E3(t){return Zc().withScope(t)}function b3(t,e){const n=Zc();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function _A(t){return Zc().withScope(()=>t(Zc().getIsolationScope()))}function T3(){return{withIsolationScope:_A,withScope:E3,withSetScope:b3,withSetIsolationScope:(t,e)=>_A(e),getCurrentScope:()=>Zc().getScope(),getIsolationScope:()=>Zc().getIsolationScope()}}function xu(t){const e=wg(t);return e.acs?e.acs:T3()}function _n(){const t=Ul();return xu(t).getCurrentScope()}function Bd(){const t=Ul();return xu(t).getIsolationScope()}function S3(){return xg("globalScope",()=>new Os)}function HT(...t){const e=Ul(),n=xu(e);if(t.length===2){const[r,i]=t;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(t[0])}function bn(){return _n().getClient()}function qoe(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=e,s={trace_id:n,span_id:i||$d()};return r&&(s.parent_span_id=r),s}const Ci="sentry.source",tD="sentry.sample_rate",Rl="sentry.op",Qt="sentry.origin",EE="sentry.idle_span_finish_reason",Lg="sentry.measurement_unit",Cg="sentry.measurement_value",EA="sentry.custom_span_name",w3="sentry.profile_id",GT="sentry.exclusive_time",x3="sentry.link.type",A3=0,nD=1,$n=2;function R3(t){if(t<400&&t>=100)return{code:nD};if(t>=400&&t<500)switch(t){case 401:return{code:$n,message:"unauthenticated"};case 403:return{code:$n,message:"permission_denied"};case 404:return{code:$n,message:"not_found"};case 409:return{code:$n,message:"already_exists"};case 413:return{code:$n,message:"failed_precondition"};case 429:return{code:$n,message:"resource_exhausted"};case 499:return{code:$n,message:"cancelled"};default:return{code:$n,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:$n,message:"unimplemented"};case 503:return{code:$n,message:"unavailable"};case 504:return{code:$n,message:"deadline_exceeded"};default:return{code:$n,message:"internal_error"}}return{code:$n,message:"unknown_error"}}function rD(t,e){t.setAttribute("http.response.status_code",e);const n=R3(e);n.message!=="unknown_error"&&t.setStatus(n)}const iD="_sentryScope",sD="_sentryIsolationScope";function L3(t,e,n){t&&(es(t,sD,n),es(t,iD,e))}function ym(t){return{scope:t[iD],isolationScope:t[sD]}}function vm(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}const jT="sentry-",C3=/^sentry-/,I3=8192;function aD(t){const e=P3(t);if(!e)return;const n=Object.entries(e).reduce((r,[i,s])=>{if(i.match(C3)){const a=i.slice(jT.length);r[a]=s}return r},{});if(Object.keys(n).length>0)return n}function k3(t){if(!t)return;const e=Object.entries(t).reduce((n,[r,i])=>(i&&(n[`${jT}${r}`]=i),n),{});return D3(e)}function P3(t){if(!(!t||!Ya(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const r=bA(n);return Object.entries(r).forEach(([i,s])=>{e[i]=s}),e},{}):bA(t)}function bA(t){return t.split(",").map(e=>e.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}function D3(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[n,r],i)=>{const s=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,a=i===0?s:`${e},${s}`;return a.length>I3?(vo&&Ye.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):a},"")}const oD=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function O3(t){if(!t)return;const e=t.match(oD);if(!e)return;let n;return e[3]==="1"?n=!0:e[3]==="0"&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}function M3(t,e){const n=O3(t),r=aD(e);if(!(n!=null&&n.traceId))return{traceId:io(),sampleRand:Math.random()};const i=N3(n,r);r&&(r.sample_rand=i.toString());const{traceId:s,parentSpanId:a,parentSampled:o}=n;return{traceId:s,parentSpanId:a,sampled:o,dsc:r||{},sampleRand:i}}function lD(t=io(),e=$d(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function N3(t,e){const n=vm(e==null?void 0:e.sample_rand);if(n!==void 0)return n;const r=vm(e==null?void 0:e.sample_rate);return r&&(t==null?void 0:t.parentSampled)!==void 0?t.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}const cD=0,VT=1;let TA=!1;function F3(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:i,parent_span_id:s,status:a,origin:o,links:l}=gt(t);return{parent_span_id:s,span_id:e,trace_id:n,data:r,op:i,status:a,origin:o,links:l}}function $3(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),i=r?e:gt(t).parent_span_id,s=ym(t).scope,a=r?(s==null?void 0:s.getPropagationContext().propagationSpanId)||$d():e;return{parent_span_id:i,span_id:a,trace_id:n}}function B3(t){const{traceId:e,spanId:n}=t.spanContext(),r=Hl(t);return lD(e,n,r)}function uD(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:n,traceFlags:r,...i},attributes:s})=>({span_id:e,trace_id:n,sampled:r===VT,attributes:s,...i}))}function fl(t){return typeof t=="number"?SA(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?SA(t.getTime()):Tr()}function SA(t){return t>9999999999?t/1e3:t}function gt(t){if(H3(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(U3(t)){const{attributes:r,startTime:i,name:s,endTime:a,parentSpanId:o,status:l,links:c}=t;return{span_id:e,trace_id:n,data:r,description:s,parent_span_id:o,start_timestamp:fl(i),timestamp:fl(a)||void 0,status:fD(l),op:r[Rl],origin:r[Qt],links:uD(c)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function U3(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function H3(t){return typeof t.getSpanJSON=="function"}function Hl(t){const{traceFlags:e}=t.spanContext();return e===VT}function fD(t){if(!(!t||t.code===A3))return t.code===nD?"ok":t.message||"unknown_error"}const dl="_sentryChildSpans",bE="_sentryRootSpan";function dD(t,e){const n=t[bE]||t;es(e,bE,n),t[dl]?t[dl].add(e):es(t,dl,new Set([e]))}function G3(t,e){t[dl]&&t[dl].delete(e)}function np(t){const e=new Set;function n(r){if(!e.has(r)&&Hl(r)){e.add(r);const i=r[dl]?Array.from(r[dl]):[];for(const s of i)n(s)}}return n(t),Array.from(e)}function Sr(t){return t[bE]||t}function Ur(){const t=Ul(),e=xu(t);return e.getActiveSpan?e.getActiveSpan():gm(_n())}function j3(){TA||(wu(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),TA=!0)}const hD=50,V3="?",wA=/\(error: (.*)\)/,xA=/captureMessage|captureException/;function q3(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const s=[],a=n.split(` 28`);for(let o=r;o<a.length;o++){const l=a[o];if(l.length>1024)continue;const c=wA.test(l)?l.replace(wA,"$1"):l;if(!c.match(/\S*Error: /)){for(const u of e){const f=u(c);if(f){s.push(f);break}}if(s.length>=hD+i)break}}return K3(s.slice(i))}}function Koe(t){return Array.isArray(t)?q3(...t):t}function K3(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(uh(e).function||"")&&e.pop(),e.reverse(),xA.test(uh(e).function||"")&&(e.pop(),xA.test(uh(e).function||"")&&e.pop()),e.slice(0,hD).map(n=>({...n,filename:n.filename||uh(e).filename,function:n.function||V3}))}function uh(t){return t[t.length-1]||{}}const Qy="<anonymous>";function qT(t){try{return!t||typeof t!="function"?Qy:t.name||Qy}catch{return Qy}}function Woe(t){const e=t.exception;if(e){const n=[];
28try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const rp={},AA={};function Au(t,e){rp[t]=rp[t]||[],rp[t].push(e)}function Ru(t,e){if(!AA[t]){AA[t]=!0;try{e()}catch(n){vo&&Ye.error(`Error while instrumenting ${t}`,n)}}}function Ls(t,e){const n=t&&rp[t];if(n)for(const r of n)try{r(e)}catch(i){vo&&Ye.error(`Error while triggering instrumentation handler. 29Type: ${t} 30Name: ${qT(r)} 31Error:`,i)}}let Zy=null;function W3(t){const e="error";Au(e,t),Ru(e,z3)}function z3(){Zy=Ot.onerror,Ot.onerror=function(t,e,n,r,i){return Ls("error",{column:r,error:i,line:n,msg:t,url:e}),Zy?Zy.apply(this,arguments):!1},Ot.onerror.__SENTRY_INSTRUMENTED__=!0}let ev=null;function Y3(t){const e="unhandledrejection";Au(e,t),Ru(e,X3)}function X3(){ev=Ot.onunhandledrejection,Ot.onunhandledrejection=function(t){return Ls("unhandledrejection",t),ev?ev.apply(this,arguments):!0},Ot.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let RA=!1;function J3(){RA||(RA=!0,W3(TE),Y3(TE))}function TE(){const t=Ur(),e=t&&Sr(t);if(e){const n="internal_error";Gn&&Ye.log(`[Tracing] Root span: ${n} -> Global error occurred`),e.setStatus({code:$n,message:n})}}TE.tag="sentry_tracingErrorCallback";function fa(t){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=t||((n=bn())==null?void 0:n.getOptions());return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}const pD="production",mD="_frozenDsc";function ip(t,e){es(t,mD,e)}function gD(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},i={environment:n.environment||pD,release:n.release,public_key:r,trace_id:t};return e.emit("createDsc",i),i}function Q3(t,e){const n=e.getPropagationContext();return n.dsc||gD(n.traceId,t)}function so(t){var p;const e=bn();if(!e)return{};const n=Sr(t),r=gt(n),i=r.data,s=n.spanContext().traceState,a=(s==null?void 0:s.get("sentry.sample_rate"))??i[tD];function o(m){return(typeof a=="number"||typeof a=="string")&&(m.sample_rate=`${a}`),m}const l=n[mD];if(l)return o(l);const c=s==null?void 0:s.get("sentry.dsc"),u=c&&aD(c);if(u)return o(u);const f=gD(t.spanContext().traceId,e),d=i[Ci],h=r.description;return d!=="url"&&h&&(f.transaction=h),fa()&&(f.sampled=String(Hl(n)),f.sample_rand=(s==null?void 0:s.get("sentry.sample_rand"))??((p=ym(n).scope)==null?void 0:p.getPropagationContext().sampleRand.toString())),o(f),e.emit("createDsc",f,n),f}class Ll{constructor(e={}){this._traceId=e.traceId||io(),this._spanId=e.spanId||$d()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:cD}}end(e){}setAttribute(e,n){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,n,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,n){}}function Z3(t){if(!Gn)return;const{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=gt(t),{spanId:i}=t.spanContext(),s=Hl(t),a=Sr(t),o=a===t,l=`[Tracing] Starting ${s?"sampled":"unsampled"} ${o?"root ":""}span`,c=[`op: ${n}`,`name: ${e}`,`ID: ${i}`];if(r&&c.push(`parent ID: ${r}`),!o){const{op:u,description:f}=gt(a);c.push(`root ID: ${a.spanContext().spanId}`),u&&c.push(`root op: ${u}`),f&&c.push(`root description: ${f}`)}Ye.log(`${l} 32 ${c.join(` 33 `)}`)}function eK(t){if(!Gn)return;const{description:e="< unknown name >",op:n="< unknown op >"}=gt(t),{spanId:r}=t.spanContext(),s=Sr(t)===t,a=`[Tracing] Finishing "${n}" ${s?"root ":""}span "${e}" with ID ${r}`;Ye.log(a)}function tK(t,e,n){if(!fa(t))return[!1];let r,i;typeof t.tracesSampler=="function"?(i=t.tracesSampler({...e,inheritOrSampleWith:o=>typeof e.parentSampleRate=="number"?e.parentSampleRate:typeof e.parentSampled=="boolean"?Number(e.parentSampled):o}),r=!0):e.parentSampled!==void 0?i=e.parentSampled:typeof t.tracesSampleRate<"u"&&(i=t.tracesSampleRate,r=!0);const s=vm(i);if(s===void 0)return Gn&&Ye.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!s)return Gn&&Ye.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,s,r];const a=n<s;return a||Gn&&Ye.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[a,s,r]}const nK=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function rK(t){return t==="http"||t==="https"}function KT(t,e=!1){const{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:l}=t;return`${o}://${l}${e&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${a}`}function iK(t){const e=nK.exec(t);if(!e){wu(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,r,i="",s="",a="",o=""]=e.slice(1);let l="",c=o;const u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){const f=c.match(/^\d+/);f&&(c=f[0])}return yD({host:s,pass:i,path:l,projectId:c,port:a,protocol:n,publicKey:r})}function yD(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function sK(t){if(!vo)return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(a=>t[a]?!1:(Ye.error(`Invalid Sentry Dsn: ${a} missing`),!0))?!1:n.match(/^\d+$/)?rK(r)?e&&isNaN(parseInt(e,10))?(Ye.error(`Invalid Sentry Dsn: Invalid port ${e}
33`),!1):!0:(Ye.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Ye.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function zoe(t){const e=typeof t=="string"?iK(t):yD(t);if(!(!e||!sK(e)))return e}function Ks(t,e=100,n=1/0){try{return SE("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function aK(t,e=3,n=100*1024){const r=Ks(t,e);return uK(r)>n?aK(t,e-1,n):r}function SE(t,e,n=1/0,r=1/0,i=fK()){const[s,a]=i;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const o=oK(t,e);if(!o.startsWith("[object "))return o;if(e.__sentry_skip_normalization__)return e;const l=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(l===0)return o.replace("object ","");if(s(e))return"[Circular ~]";const c=e;if(c&&typeof c.toJSON=="function")try{const h=c.toJSON();return SE("",h,l-1,r,i)}catch{}const u=Array.isArray(e)?[]:{};let f=0;const d=JP(e);for(const h in d){if(!Object.prototype.hasOwnProperty.call(d,h))continue;if(f>=r){u[h]="[MaxProperties ~]";break}const p=d[h];u[h]=SE(h,p,l-1,r,i),f++}return a(e),u}function oK(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(WP(e))return"[VueViewModel]";if(e3(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${qT(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=lK(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function lK(t){const e=Object.getPrototypeOf(t);return e!=null&&e.constructor?e.constructor.name:"null prototype"}function cK(t){return~-encodeURI(t).split(/%..|./).length}function uK(t){return cK(JSON.stringify(t))}function fK(){const t=new WeakSet;function e(r){return t.has(r)?!0:(t.add(r),!1)}function n(r){t.delete(r)}return[e,n]}function WT(t,e=[]){return[t,e]}function Yoe(t,e){const[n,r]=t;return[n,[...r,e]]}function Xoe(t,e){const n=t[1];for(const r of n){const i=r[0].type;if(e(r,i))return!0}return!1}function wE(t){const e=wg(Ot);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function Joe(t){const[e,n]=t;let r=JSON.stringify(e);function i(s){typeof r=="string"?r=typeof s=="string"?r+s:[wE(r),s]:r.push(typeof s=="string"?wE(s):s)}for(const s of n){const[a,o]=s;if(i(` 34${JSON.stringify(a)} 35`),typeof o=="string"||o instanceof Uint8Array)i(o);else{let l;try{l=JSON.stringify(o)}catch{l=JSON.stringify(Ks(o))}i(l)}}return typeof r=="string"?r:dK(r)}function dK(t){const e=t.reduce((i,s)=>i+s.length,0),n=new Uint8Array(e);let r=0;for(const i of t)n.set(i,r),r+=i.length;return n}function hK(t){return[{type:"span"},t]}function Qoe(t){const e=typeof t.data=="string"?wE(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const pK={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",otel_log:"log_item"};function Zoe(t){return pK[t]}function vD(t){if(!(t!=null&&t.sdk))return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function mK(t,e,n,r){var s;const i=(s=t.sdkProcessingMetadata)==null?void 0:s.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:KT(r)},...i&&{trace:i}}}function gK(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function ele(t,e,n,r){const i=vD(n),s={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:KT(e)}},a="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return WT(s,[a])}function tle(t,e,n,r){const i=vD(n),s=t.type&&t.type!=="replay_event"?t.type:"event";gK(t,n==null?void 0:n.sdk);const a=mK(t,i,r,e);return delete t.sdkProcessingMetadata,WT(a,[[{type:s},t]])}function yK(t,e){function n(u){return!!u.trace_id&&!!u.public_key}const r=so(t[0]),i=e==null?void 0:e.getDsn(),s=e==null?void 0:e.getOptions().tunnel,a={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!s&&i&&{dsn:KT(i)}},o=e==null?void 0:e.getOptions().beforeSendSpan,l=o?u=>{const f=gt(u),d=o(f);return d||(j3(),f)}:gt,c=[];for(const u of t){const f=l(u);f&&c.push(hK(f))}return WT(a,c)}function vK(t,e,n,r=Ur()){const i=r&&Sr(r);i&&(Gn&&Ye.log(`[Measurement] Setting measurement on root span: ${t} = ${e} ${n}`),i.addEvent(t,{[Cg]:e,[Lg]:n}))}function LA(t){if(!t||t.length===0)return;const e={};return t.forEach(n=>{const r=n.attributes||{},i=r[Lg],s=r[Cg];typeof i=="string"&&typeof s=="number"&&(e[n.name]={value:s,unit:i})}),e}const CA=1e3;class zT{constructor(e={}){this._traceId=e.traceId||io(),this._spanId=e.spanId||$d(),this._startTime=e.startTimestamp||Tr(),this._links=e.links,this._attributes={},this.setAttributes({[Qt]:"manual",[Rl]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}
35addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,n){}spanContext(){const{_spanId:e,_traceId:n,_sampled:r}=this;return{spanId:e,traceId:n,traceFlags:r?VT:cD}}setAttribute(e,n){return n===void 0?delete this._attributes[e]:this._attributes[e]=n,this}setAttributes(e){return Object.keys(e).forEach(n=>this.setAttribute(n,e[n])),this}updateStartTime(e){this._startTime=fl(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(Ci,"custom"),this}end(e){this._endTime||(this._endTime=fl(e),eK(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[Rl],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:fD(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Qt],profile_id:this._attributes[w3],exclusive_time:this._attributes[GT],measurements:LA(this._events),is_segment:this._isStandaloneSpan&&Sr(this)===this||void 0,segment_id:this._isStandaloneSpan?Sr(this).spanContext().spanId:void 0,links:uD(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,n,r){Gn&&Ye.log("[Tracing] Adding an event to span:",e);const i=IA(n)?n:r||Tr(),s=IA(n)?{}:n||{},a={name:e,time:fl(i),attributes:s};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=bn();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===Sr(this)))return;if(this._isStandaloneSpan){this._sampled?EK(yK([this],e)):(Gn&&Ye.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(ym(this).scope||_n()).captureEvent(r)}_convertSpanToTransaction(){if(!kA(gt(this)))return;this._name||(Gn&&Ye.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:n}=ym(this);if(this._sampled!==!0)return;const i=np(this).filter(c=>c!==this&&!_K(c)).map(c=>gt(c)).filter(kA),s=this._attributes[Ci];delete this._attributes[EA],i.forEach(c=>{delete c.data[EA]});const a={contexts:{trace:F3(this)},spans:i.length>CA?i.sort((c,u)=>c.start_timestamp-u.start_timestamp).slice(0,CA):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:n,dynamicSamplingContext:so(this)},...s&&{transaction_info:{source:s}}},o=LA(this._events);return o&&Object.keys(o).length&&(Gn&&Ye.log("[Measurements] Adding measurements to transaction event",JSON.stringify(o,void 0,2)),a.measurements=o),a}}function IA(t){return t&&typeof t=="number"||t instanceof Date||Array.isArray(t)}function kA(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}function _K(t){return t instanceof zT&&t.isStandaloneSpan()}function EK(t){const e=bn();if(!e)return;const n=t[1];if(!n||n.length===0){e.recordDroppedEvent("before_send","span");return}e.sendEnvelope(t)}const _D="__SENTRY_SUPPRESS_TRACING__";function Cl(t){const e=bD();if(e.startInactiveSpan)return e.startInactiveSpan(t);const n=TK(t),{forceTransaction:r,parentSpan:i}=t;return(t.scope?a=>HT(t.scope,a):i!==void 0?a=>ED(i,a):a=>a())(()=>{const a=_n(),o=wK(a);return t.onlyIfParent&&!o?new Ll:bK({parentSpan:o,spanArguments:n,forceTransaction:r,scope:a})})}function ED(t,e){const n=bD();return n.withActiveSpan?n.withActiveSpan(t,e):HT(r=>(ud(r,t||void 0),e(r)))}function bK({parentSpan:t,spanArguments:e,forceTransaction:n,scope:r}){if(!fa()){const a=new Ll;if(n||!t){const o={sampled:"false",sample_rate:"0",transaction:e.name,...so(a)};ip(a,o)}return a}const i=Bd();let s;if(t&&!n)s=SK(t,r,e),dD(t,s);else if(t){const a=so(t),{traceId:o,spanId:l}=t.spanContext(),c=Hl(t);s=PA({traceId:o,parentSpanId:l,...e},r,c),ip(s,a)}else{const{traceId:a,dsc:o,parentSpanId:l,sampled:c}={...i.getPropagationContext(),...r.getPropagationContext()};s=PA({traceId:a,parentSpanId:l,...e},r,c),o&&ip(s,o)}return Z3(s),L3(s,r,i),s}function TK(t){const n={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){const r={...n};return r.startTimestamp=fl(t.startTime),delete r.startTime,r}return n}function bD(){const t=Ul();return xu(t)}function PA(t,e,n){var d;const r=bn(),i=(r==null?void 0:r.getOptions())||{},{name:s="",attributes:a}=t,o=e.getPropagationContext(),[l,c,u]=e.getScopeData().sdkProcessingMetadata[_D]?[!1]:tK(i,{name:s,parentSampled:n,attributes:a,parentSampleRate:vm((d=o.dsc)==null?void 0:d.sample_rate)},o.sampleRand),f=new zT({...t,attributes:{[Ci]:"custom",[tD]:c!==void 0&&u?c:void 0,...t.attributes},sampled:l});return!l&&r&&(Gn&&Ye.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",f),f}function SK(t,e,n){const{spanId:r,traceId:i}=t.spanContext(),s=e.getScopeData().sdkProcessingMetadata[_D]?!1:Hl(t),a=s?new zT({...n,parentSpanId:r,traceId:i,sampled:s}):new Ll({traceId:i});dD(t,a);const o=bn();return o&&(o.emit("spanStart",a),n.endTimestamp&&o.emit("spanEnd",a)),a}function wK(t){const e=gm(t);if(!e)return;const n=bn();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?Sr(e):e}const sp={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},xK="heartbeatFailed",AK="idleTimeout",RK="finalTimeout",LK="externalFinish";function TD(t,e={}){const n=new Map;let r=!1,i,s=LK,a=!e.disableAutoFinish;const o=[],{idleTimeout:l=sp.idleTimeout,finalTimeout:c=sp.finalTimeout,childSpanTimeout:u=sp.childSpanTimeout,beforeSpanEnd:f}=e,d=bn();
35if(!d||!fa()){const T=new Ll,S={sample_rate:"0",sampled:"false",...so(T)};return ip(T,S),T}const h=_n(),p=Ur(),m=CK(t);m.end=new Proxy(m.end,{apply(T,S,A){if(f&&f(m),S instanceof Ll)return;const[w,...x]=A,L=w||Tr(),R=fl(L),k=np(m).filter(O=>O!==m);if(!k.length)return b(R),Reflect.apply(T,S,[R,...x]);const F=k.map(O=>gt(O).timestamp).filter(O=>!!O),U=F.length?Math.max(...F):void 0,H=gt(m).start_timestamp,M=Math.min(H?H+c/1e3:1/0,Math.max(H||-1/0,Math.min(R,U||1/0)));return b(M),Reflect.apply(T,S,[M,...x])}});function g(){i&&(clearTimeout(i),i=void 0)}function _(T){g(),i=setTimeout(()=>{!r&&n.size===0&&a&&(s=AK,m.end(T))},l)}function v(T){i=setTimeout(()=>{!r&&a&&(s=xK,m.end(T))},u)}function y(T){g(),n.set(T,!0);const S=Tr();v(S+u/1e3)}function E(T){if(n.has(T)&&n.delete(T),n.size===0){const S=Tr();_(S+l/1e3)}}function b(T){r=!0,n.clear(),o.forEach(R=>R()),ud(h,p);const S=gt(m),{start_timestamp:A}=S;if(!A)return;S.data[EE]||m.setAttribute(EE,s),Ye.log(`[Tracing] Idle span "${S.op}" finished`);const x=np(m).filter(R=>R!==m);let L=0;x.forEach(R=>{R.isRecording()&&(R.setStatus({code:$n,message:"cancelled"}),R.end(T),Gn&&Ye.log("[Tracing] Cancelling span since span ended early",JSON.stringify(R,void 0,2)));const k=gt(R),{timestamp:F=0,start_timestamp:U=0}=k,H=U<=T,M=(c+l)/1e3,O=F-U<=M;if(Gn){const q=JSON.stringify(R,void 0,2);H?O||Ye.log("[Tracing] Discarding span since it finished after idle span final timeout",q):Ye.log("[Tracing] Discarding span since it happened after idle span was finished",q)}(!O||!H)&&(G3(m,R),L++)}),L>0&&m.setAttribute("sentry.idle_span_discarded_spans",L)}return o.push(d.on("spanStart",T=>{if(r||T===m||gt(T).timestamp)return;np(m).includes(T)&&y(T.spanContext().spanId)})),o.push(d.on("spanEnd",T=>{r||E(T.spanContext().spanId)})),o.push(d.on("idleSpanEnableAutoFinish",T=>{T===m&&(a=!0,_(),n.size&&v())})),e.disableAutoFinish||_(),setTimeout(()=>{r||(m.setStatus({code:$n,message:"deadline_exceeded"}),s=RK,m.end())},c),m}function CK(t){const e=Cl(t);return ud(_n(),e),Gn&&Ye.log("[Tracing] Started span is an idle span"),e}var Ws;(function(t){t[t.PENDING=0]="PENDING";const n=1;t[t.RESOLVED=n]="RESOLVED";const r=2;t[t.REJECTED=r]="REJECTED"})(Ws||(Ws={}));function nle(t){return new eu(e=>{e(t)})}function rle(t){return new eu((e,n)=>{n(t)})}class eu{constructor(e){this._state=Ws.PENDING,this._handlers=[],this._runExecutor(e)}then(e,n){return new eu((r,i)=>{this._handlers.push([!1,s=>{if(!e)r(s);else try{r(e(s))}catch(a){i(a)}},s=>{if(!n)i(s);else try{r(n(s))}catch(a){i(a)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new eu((n,r)=>{let i,s;return this.then(a=>{s=!1,i=a,e&&e()},a=>{s=!0,i=a,e&&e()}).then(()=>{if(s){r(i);return}n(i)})})}_executeHandlers(){if(this._state===Ws.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===Ws.RESOLVED&&n[1](this._value),this._state===Ws.REJECTED&&n[2](this._value),n[0]=!0)})}_runExecutor(e){const n=(s,a)=>{if(this._state===Ws.PENDING){if($T(a)){a.then(r,i);return}this._state=s,this._value=a,this._executeHandlers()}},r=s=>{n(Ws.RESOLVED,s)},i=s=>{n(Ws.REJECTED,s)};try{e(r,i)}catch(s){i(s)}}}function xE(t,e,n,r=0){return new eu((i,s)=>{const a=t[r];if(e===null||typeof a!="function")i(e);else{const o=a({...e},n);Gn&&a.id&&o===null&&Ye.log(`Event processor "${a.id}" dropped event`),$T(o)?o.then(l=>xE(t,l,n,r+1).then(i)).then(null,s):xE(t,o,n,r+1).then(i).then(null,s)}})}let fh,DA,dh;function IK(t){const e=Ot._sentryDebugIds;if(!e)return{};const n=Object.keys(e);return dh&&n.length===DA||(DA=n.length,dh=n.reduce((r,i)=>{fh||(fh={});const s=fh[i];if(s)r[s[0]]=s[1];else{const a=t(i);for(let o=a.length-1;o>=0;o--){const l=a[o],c=l==null?void 0:l.filename,u=e[i];if(c&&u){r[c]=u,fh[i]=[c,u];break}}}return r},{})),dh}function kK(t,e){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=e;PK(t,e),r&&MK(t,r),NK(t,n),DK(t,i),OK(t,s)}function OA(t,e){const{extra:n,tags:r,user:i,contexts:s,level:a,sdkProcessingMetadata:o,breadcrumbs:l,fingerprint:c,eventProcessors:u,attachments:f,propagationContext:d,transactionName:h,span:p}=e;hh(t,"extra",n),hh(t,"tags",r),hh(t,"user",i),hh(t,"contexts",s),t.sdkProcessingMetadata=Rg(t.sdkProcessingMetadata,o,2),a&&(t.level=a),h&&(t.transactionName=h),p&&(t.span=p),l.length&&(t.breadcrumbs=[...t.breadcrumbs,...l]),c.length&&(t.fingerprint=[...t.fingerprint,...c]),u.length&&(t.eventProcessors=[...t.eventProcessors,...u]),f.length&&(t.attachments=[...t.attachments,...f]),t.propagationContext={...t.propagationContext,...d}}function hh(t,e,n){t[e]=Rg(t[e],n,1)}function PK(t,e){const{extra:n,tags:r,user:i,contexts:s,level:a,transactionName:o}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(i).length&&(t.user={...i,...t.user}),Object.keys(s).length&&(t.contexts={...s,...t.contexts}),a&&(t.level=a),o&&t.type!=="transaction"&&(t.transaction=o)}function DK(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function OK(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function MK(t,e){t.contexts={trace:$3(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:so(e),...t.sdkProcessingMetadata};const n=Sr(e),r=gt(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function NK(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}function ile(t,e,n,r,i,s){const{normalizeDepth:a=3,normalizeMaxBreadth:o=1e3}=t,l={...e,event_id:e.event_id||n.event_id||Xa(),timestamp:e.timestamp||UT()},c=n.integrations||t.integrations.map(g=>g.name);FK(l,t),UK(l,c),i&&i.emit("applyFrameMetadata",e),e.type===void 0&&$K(l,t.stackParser);const u=GK(r,n.captureContext);n.mechanism&&ZP(l,n.mechanism);const f=i?i.getEventProcessors():[],d=S3().getScopeData();if(s){const g=s.getScopeData();OA(d,g)}if(u){const g=u.getScopeData();OA(d,g)}const h=[...n.attachments||[],...d.attachments];h.length&&(n.attachments=h),kK(l,d);const p=[...f,...d.eventProcessors];return xE(p,l,n).then(g=>(g&&BK(g),typeof a=="number"&&a>0?HK(g,a,o):g))}function FK(t,e){const{environment:n,release:r,dist:i,maxValueLength:s=250}=e;t.environment=t.environment||n||pD,!t.release&&r&&(t.release=r),!t.dist&&i&&(t.dist=i);const a=t.request;a!=null&&a.url&&(a.url=mm(a.url,s))}function $K(t,e){var r,i;const n=IK(e);
35(i=(r=t.exception)==null?void 0:r.values)==null||i.forEach(s=>{var a,o;(o=(a=s.stacktrace)==null?void 0:a.frames)==null||o.forEach(l=>{l.filename&&(l.debug_id=n[l.filename])})})}function BK(t){var r,i;const e={};if((i=(r=t.exception)==null?void 0:r.values)==null||i.forEach(s=>{var a,o;(o=(a=s.stacktrace)==null?void 0:a.frames)==null||o.forEach(l=>{l.debug_id&&(l.abs_path?e[l.abs_path]=l.debug_id:l.filename&&(e[l.filename]=l.debug_id),delete l.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([s,a])=>{n.push({type:"sourcemap",code_file:s,debug_id:a})})}function UK(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function HK(t,e,n){var i,s;if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(a=>({...a,...a.data&&{data:Ks(a.data,e,n)}}))},...t.user&&{user:Ks(t.user,e,n)},...t.contexts&&{contexts:Ks(t.contexts,e,n)},...t.extra&&{extra:Ks(t.extra,e,n)}};return(i=t.contexts)!=null&&i.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Ks(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(a=>({...a,...a.data&&{data:Ks(a.data,e,n)}}))),(s=t.contexts)!=null&&s.flags&&r.contexts&&(r.contexts.flags=Ks(t.contexts.flags,3,n)),r}function GK(t,e){if(!e)return t;const n=t?t.clone():new Os;return n.update(e),n}function jK(t){if(t)return VK(t)?{captureContext:t}:KK(t)?{captureContext:t}:t}function VK(t){return t instanceof Os||typeof t=="function"}const qK=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function KK(t){return Object.keys(t).some(e=>qK.includes(e))}function Ig(t,e){return _n().captureException(t,jK(e))}function sle(t,e){return _n().captureEvent(t,e)}function WK(){const t=bn();return(t==null?void 0:t.getOptions().enabled)!==!1&&!!(t!=null&&t.getTransport())}function ale(t){const e=Bd(),n=_n(),{userAgent:r}=Ot.navigator||{},i=h3({user:n.getUser()||e.getUser(),...r&&{userAgent:r},...t}),s=e.getSession();return(s==null?void 0:s.status)==="ok"&&Ag(s,{status:"exited"}),SD(),e.setSession(i),i}function SD(){const t=Bd(),n=_n().getSession()||t.getSession();n&&p3(n),wD(),t.setSession()}function wD(){const t=Bd(),e=bn(),n=t.getSession();n&&e&&e.captureSession(n)}function ole(t=!1){if(t){SD();return}wD()}const MA=[];function zK(t){const e={};return t.forEach(n=>{const{name:r}=n,i=e[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.values(e)}function lle(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...e,...n];else if(typeof n=="function"){const i=n(e);r=Array.isArray(i)?i:[i]}else r=e;return zK(r)}function cle(t,e){const n={};return e.forEach(r=>{r&&YK(t,r,n)}),n}function ule(t,e){for(const n of e)n!=null&&n.afterAllSetup&&n.afterAllSetup(t)}function YK(t,e,n){if(n[e.name]){Gn&&Ye.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,MA.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),MA.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(i,s)=>r(i,s,t))}if(typeof e.processEvent=="function"){const r=e.processEvent.bind(e),i=Object.assign((s,a)=>r(s,a,t),{id:e.name});t.addEventProcessor(i)}Gn&&Ye.log(`Integration installed: ${e.name}`)}function fle(t){return t}function xD(t={}){const e=bn();if(!WK()||!e)return{};const n=Ul(),r=xu(n);if(r.getTraceData)return r.getTraceData(t);const i=_n(),s=t.span||Ur(),a=s?B3(s):XK(i),o=s?so(s):Q3(e,i),l=k3(o);return oD.test(a)?{"sentry-trace":a,baggage:l}:(Ye.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function XK(t){const{traceId:e,sampled:n,propagationSpanId:r}=t.getPropagationContext();return lD(e,r,n)}const JK="thismessage:/";function AD(t){return"isRelative"in t}function QK(t,e){const n=t.startsWith("/"),r=n?JK:void 0;try{if("canParse"in URL&&!URL.canParse(t,r))return;const i=new URL(t,r);return n?{isRelative:n,pathname:i.pathname,search:i.search,hash:i.hash}:i}catch{}}function ZK(t){if(AD(t))return t.pathname;const e=new URL(t);return e.search="",e.hash="",["80","443"].includes(e.port)&&(e.port=""),e.password&&(e.password="%filtered%"),e.username&&(e.username="%filtered%"),e.toString()}function _m(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function eW(t){return t.split(/[?#]/,1)[0]}function tW(t,e,n,r,i="auto.http.browser"){if(!t.fetchData)return;const{method:s,url:a}=t.fetchData,o=fa()&&e(a);if(t.endTimestamp&&o){const f=t.fetchData.__span;if(!f)return;const d=r[f];d&&(rW(d,t),delete r[f]);return}const l=!!Ur(),c=o&&l?Cl(sW(a,s,i)):new Ll;if(t.fetchData.__span=c.spanContext().spanId,r[c.spanContext().spanId]=c,n(t.fetchData.url)){const f=t.args[0],d=t.args[1]||{},h=nW(f,d,fa()&&l?c:void 0);h&&(t.args[1]=d,d.headers=h)}const u=bn();if(u){const f={input:t.args,response:t.response,startTimestamp:t.startTimestamp,endTimestamp:t.endTimestamp};u.emit("beforeOutgoingRequestSpan",c,f)}return c}function nW(t,e,n){const r=xD({span:n}),i=r["sentry-trace"],s=r.baggage;if(!i)return;const a=e.headers||(zP(t)?t.headers:void 0);if(a)if(iW(a)){const o=new Headers(a);if(o.set("sentry-trace",i),s){const l=o.get("baggage");if(l){const c=ph(l);o.set("baggage",c?`${c},${s}`:s)}else o.set("baggage",s)}return o}else if(Array.isArray(a)){const o=[...a.filter(l=>
35!(Array.isArray(l)&&l[0]==="sentry-trace")).map(l=>{if(Array.isArray(l)&&l[0]==="baggage"&&typeof l[1]=="string"){const[c,u,...f]=l;return[c,ph(u),...f]}else return l}),["sentry-trace",i]];return s&&o.push(["baggage",s]),o}else{const o="baggage"in a?a.baggage:void 0;let l=[];return Array.isArray(o)?l=o.map(c=>typeof c=="string"?ph(c):c).filter(c=>c===""):o&&l.push(ph(o)),s&&l.push(s),{...a,"sentry-trace":i,baggage:l.length>0?l.join(","):void 0}}else return{...r}}function rW(t,e){var n;if(e.response){rD(t,e.response.status);const r=((n=e.response)==null?void 0:n.headers)&&e.response.headers.get("content-length");if(r){const i=parseInt(r);i>0&&t.setAttribute("http.response_content_length",i)}}else e.error&&t.setStatus({code:$n,message:"internal_error"});t.end()}function ph(t){return t.split(",").filter(e=>!e.split("=")[0].startsWith(jT)).join(",")}function iW(t){return typeof Headers<"u"&&Su(t,Headers)}function sW(t,e,n){const r=QK(t);return{name:r?`${e} ${ZK(r)}`:e,attributes:aW(t,r,e,n)}}function aW(t,e,n,r){const i={url:t,type:"fetch","http.method":n,[Qt]:r,[Rl]:"http.client"};return e&&(AD(e)||(i["http.url"]=e.href,i["server.address"]=e.host),e.search&&(i["http.query"]=e.search),e.hash&&(i["http.fragment"]=e.hash)),i}const fd=Ot;function oW(){return"history"in fd&&!!fd.history}function lW(){if(!("fetch"in fd))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function NA(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function cW(){var n;if(typeof EdgeRuntime=="string")return!0;if(!lW())return!1;if(NA(fd.fetch))return!0;let t=!1;const e=fd.document;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(t=NA(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){vo&&Ye.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function uW(t,e){const n="fetch";Au(n,t),Ru(n,()=>RD(void 0,e))}function fW(t){const e="fetch-body-resolved";Au(e,t),Ru(e,()=>RD(hW))}function RD(t,e=!1){e&&!cW()||vE(Ot,"fetch",function(n){return function(...r){const i=new Error,{method:s,url:a}=pW(r),o={args:r,fetchData:{method:s,url:a},startTimestamp:Tr()*1e3,virtualError:i,headers:mW(r)};return t||Ls("fetch",{...o}),n.apply(Ot,r).then(async l=>(t?t(l):Ls("fetch",{...o,endTimestamp:Tr()*1e3,response:l}),l),l=>{if(Ls("fetch",{...o,endTimestamp:Tr()*1e3,error:l}),qP(l)&&l.stack===void 0&&(l.stack=i.stack,es(l,"framesToPop",1)),l instanceof TypeError&&(l.message==="Failed to fetch"||l.message==="Load failed"||l.message==="NetworkError when attempting to fetch resource."))try{const c=new URL(o.fetchData.url);l.message=`${l.message} (${c.host})`}catch{}throw l})}})}async function dW(t,e){if(t!=null&&t.body){const n=t.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let s=!0;for(;s;){let a;try{a=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:o}=await r.read();clearTimeout(a),o&&(e(),s=!1)}catch{s=!1}finally{clearTimeout(a)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function hW(t){let e;try{e=t.clone()}catch{return}dW(e,()=>{Ls("fetch-body-resolved",{endTimestamp:Tr()*1e3,response:t})})}function AE(t,e){return!!t&&typeof t=="object"&&!!t[e]}function FA(t){return typeof t=="string"?t:t?AE(t,"url")?t.url:t.toString?t.toString():"":""}function pW(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:FA(n),method:AE(r,"method")?String(r.method).toUpperCase():"GET"}}const e=t[0];return{url:FA(e),method:AE(e,"method")?String(e.method).toUpperCase():"GET"}}function mW(t){const[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(zP(e))return new Headers(e.headers)}catch{}}const Ii=Ot;let RE=0;function dle(){return RE>0}function gW(){RE++,setTimeout(()=>{RE--})}function yW(t,e={}){function n(i){return typeof i=="function"}if(!n(t))return t;try{const i=t.__sentry_wrapped__;if(i)return typeof i=="function"?i:t;if(o3(t))return t}catch{return t}const r=function(...i){try{const s=i.map(a=>yW(a,e));return t.apply(this,s)}catch(s){throw gW(),HT(a=>{a.addEventProcessor(o=>(e.mechanism&&(c3(o,void 0),ZP(o,e.mechanism)),o.extra={...o.extra,arguments:i},o)),Ig(s)}),s}};try{for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}catch{}XP(r,t),es(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}const LD=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vW=(t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good",Lu=(t,e,n,r)=>{let i,s;return a=>{e.value>=0&&(a||r)&&(s=e.value-(i||0),(s||i===void 0)&&(i=e.value,e.delta=s,e.rating=vW(e.value,n),t(e)))}},xt=Ot,_W=()=>`v4-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Ud=(t=!0)=>{var n,r;const e=(r=(n=xt.performance)==null?void 0:n.getEntriesByType)==null?void 0:r.call(n,"navigation")[0];if(!t||e&&e.responseStart>0&&e.responseStart<performance.now())return e},Hd=()=>{const t=Ud();return(t==null?void 0:t.activationStart)||0},Cu=(t,e)=>{var s,a;const n=Ud();let r="navigate";return n&&((s=xt.document)!=null&&s.prerendering||Hd()>0?r="prerender":(a=xt.document)!=null&&a.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:typeof e>"u"?-1:e,rating:"good",delta:0,entries:[],id:_W(),navigationType:r}},Gl=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{e(i.getEntries())})});return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch{}},Iu=t=>{const e=n=>{var r;(n.type==="pagehide"||((r=xt.document)==null?void 0:r.visibilityState)==="hidden")&&t(n)};xt.document&&(addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0))},kg=t=>{let e=!1;return()=>{e||(t(),e=!0)}};let Mf=-1;const EW=()=>xt.document.visibilityState==="hidden"&&!xt.document.prerendering?0:1/0,Em=t=>{xt.document.visibilityState==="hidden"&&Mf>-1&&(Mf=t.type==="visibilitychange"?t.timeStamp:0,TW())},bW=()=>{addEventListener("visibilitychange",Em,!0),addEventListener("prerenderingchange",Em,!0)},TW=()=>{removeEventListener("visibilitychange",Em,!0),removeEventListener("prerenderingchange",Em,!0)},Pg=()=>(xt.document&&Mf<0&&(Mf=EW(),bW()),{get firstHiddenTime(){return Mf}}),Gd=t=>{var e;(e=xt.document)!=null&&e.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()},SW=[1800,3e3],wW=(t,e={})=>{Gd(()=>{const n=Pg(),r=Cu("FCP");let i;const a=Gl("paint",o=>{o.forEach(l=>{l.name==="first-contentful-paint"&&(a.disconnect(),l.startTime<n.firstHiddenTime&&(r.value=Math.max(l.startTime-Hd(),0),r.entries.push(l),i(!0)))})});a&&(i=Lu(t,r,SW,e.reportAllChanges))})},xW=[.1,.25],AW=(t,e={})=>{wW(kg(()=>{const n=Cu("CLS",0);let r,i=0,s=[];const a=l=>{l.forEach(c=>{if(!c.hadRecentInput){const u=s[0],f=s[s.length-1];i&&u&&f&&c.startTime-f.startTime<1e3&&c.startTime-u.startTime<5e3?(i+=c.value,s.push(c)):(i=c.value,s=[c])}}),i>n.value&&(n.value=i,n.entries=s,r())},o=Gl("layout-shift",a);o&&(r=Lu(t,n,xW,e.reportAllChanges),Iu(()=>{a(o.takeRecords()),r(!0)}),setTimeout(r,0))}))},RW=[100,300],LW=(t,e={})=>{Gd(()=>{const n=Pg(),r=Cu("FID");let i;const s=l=>{l.startTime<n.firstHiddenTime&&(r.value=l.processingStart-l.startTime,r.entries.push(l),i(!0))},a=l=>{l.forEach(s)},o=Gl("first-input",a);i=Lu(t,r,RW,e.reportAllChanges),o&&Iu(kg(()=>{a(o.takeRecords()),o.disconnect()}))})};let CD=0,tv=1/0,mh=0;const CW=t=>
35{t.forEach(e=>{e.interactionId&&(tv=Math.min(tv,e.interactionId),mh=Math.max(mh,e.interactionId),CD=mh?(mh-tv)/7+1:0)})};let LE;const IW=()=>LE?CD:performance.interactionCount||0,kW=()=>{"interactionCount"in performance||LE||(LE=Gl("event",CW,{type:"event",buffered:!0,durationThreshold:0}))},zs=[],nv=new Map,PW=40;let DW=0;const OW=()=>IW()-DW,MW=()=>{const t=Math.min(zs.length-1,Math.floor(OW()/50));return zs[t]},rv=10,NW=[],FW=t=>{var r;if(NW.forEach(i=>i(t)),!(t.interactionId||t.entryType==="first-input"))return;const e=zs[zs.length-1],n=nv.get(t.interactionId);if(n||zs.length<rv||e&&t.duration>e.latency){if(n)t.duration>n.latency?(n.entries=[t],n.latency=t.duration):t.duration===n.latency&&t.startTime===((r=n.entries[0])==null?void 0:r.startTime)&&n.entries.push(t);else{const i={id:t.interactionId,latency:t.duration,entries:[t]};nv.set(i.id,i),zs.push(i)}zs.sort((i,s)=>s.latency-i.latency),zs.length>rv&&zs.splice(rv).forEach(i=>nv.delete(i.id))}},ID=t=>{var r;const e=xt.requestIdleCallback||xt.setTimeout;let n=-1;return t=kg(t),((r=xt.document)==null?void 0:r.visibilityState)==="hidden"?t():(n=e(t),Iu(t)),n},$W=[200,500],BW=(t,e={})=>{"PerformanceEventTiming"in xt&&"interactionId"in PerformanceEventTiming.prototype&&Gd(()=>{kW();const n=Cu("INP");let r;const i=a=>{ID(()=>{a.forEach(FW);const o=MW();o&&o.latency!==n.value&&(n.value=o.latency,n.entries=o.entries,r())})},s=Gl("event",i,{durationThreshold:e.durationThreshold!=null?e.durationThreshold:PW});r=Lu(t,n,$W,e.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),Iu(()=>{i(s.takeRecords()),r(!0)}))})},UW=[2500,4e3],$A={},HW=(t,e={})=>{Gd(()=>{const n=Pg(),r=Cu("LCP");let i;const s=o=>{e.reportAllChanges||(o=o.slice(-1)),o.forEach(l=>{l.startTime<n.firstHiddenTime&&(r.value=Math.max(l.startTime-Hd(),0),r.entries=[l],i())})},a=Gl("largest-contentful-paint",s);if(a){i=Lu(t,r,UW,e.reportAllChanges);const o=kg(()=>{$A[r.id]||(s(a.takeRecords()),a.disconnect(),$A[r.id]=!0,i(!0))});["keydown","click"].forEach(l=>{xt.document&&addEventListener(l,()=>ID(o),{once:!0,capture:!0})}),Iu(o)}})},GW=[800,1800],CE=t=>{var e,n;(e=xt.document)!=null&&e.prerendering?Gd(()=>CE(t)):((n=xt.document)==null?void 0:n.readyState)!=="complete"?addEventListener("load",()=>CE(t),!0):setTimeout(t,0)},jW=(t,e={})=>{const n=Cu("TTFB"),r=Lu(t,n,GW,e.reportAllChanges);CE(()=>{const i=Ud();i&&(n.value=Math.max(i.responseStart-Hd(),0),n.entries=[i],r(!0))})},Nf={},bm={};let kD,PD,DD,OD,MD;function ND(t,e=!1){return jd("cls",t,zW,kD,e)}function VW(t,e=!1){return jd("lcp",t,XW,DD,e)}function qW(t){return jd("fid",t,YW,PD)}function KW(t){return jd("ttfb",t,JW,OD)}function WW(t){return jd("inp",t,QW,MD)}function dd(t,e){return FD(t,e),bm[t]||(ZW(t),bm[t]=!0),$D(t,e)}function ku(t,e){const n=Nf[t];if(n!=null&&n.length)for(const r of n)try{r(e)}catch(i){LD&&Ye.error(`Error while triggering instrumentation handler. 36Type: ${t} 37Name: ${qT(r)} 38Error:`,i)}}function zW(){return AW(t=>{ku("cls",{metric:t}),kD=t},{reportAllChanges:!0})}function YW(){return LW(t=>{ku("fid",{metric:t}),PD=t})}function XW(){return HW(t=>{ku("lcp",{metric:t}),DD=t},{reportAllChanges:!0})}function JW(){return jW(t=>{ku("ttfb",{metric:t}),OD=t})}function QW(){return BW(t=>{ku("inp",{metric:t}),MD=t})}function jd(t,e,n,r,i=!1){FD(t,e);let s;return bm[t]||(s=n(),bm[t]=!0),r&&e({metric:r}),$D(t,e,i?s:void 0)}function ZW(t){const e={};t==="event"&&(e.durationThreshold=0),Gl(t,n=>{ku(t,{entries:n})},e)}function FD(t,e){Nf[t]=Nf[t]||[],Nf[t].push(e)}function $D(t,e,n){return()=>{n&&n();const r=Nf[t];if(!r)return;const i=r.indexOf(e);i!==-1&&r.splice(i,1)}}function ez(t){return"duration"in t}function iv(t){return typeof t=="number"&&isFinite(t)}function da(t,e,n,{...r}){const i=gt(t).start_timestamp;return i&&i>e&&typeof t.updateStartTime=="function"&&t.updateStartTime(e),ED(t,()=>{const s=Cl({startTime:e,...r});return s&&s.end(n),s})}function BD(t){var g;const e=bn();if(!e)return;const{name:n,transaction:r,attributes:i,startTime:s}=t,{release:a,environment:o,sendDefaultPii:l}=e.getOptions(),c=e.getIntegrationByName("Replay"),u=c==null?void 0:c.getReplayId(),f=_n(),d=f.getUser(),h=d!==void 0?d.email||d.id||d.ip_address:void 0;let p;try{p=f.getScopeData().contexts.profile.profile_id}catch{}const m={release:a,environment:o,user:h||void 0,profile_id:p||void 0,replay_id:u||void 0,transaction:r,"user_agent.original":(g=xt.navigator)==null?void 0:g.userAgent,"client.address":l?"{{auto}}":void 0,...i};return Cl({name:n,attributes:m,startTime:s,experimental:{standalone:!0}})}
38function YT(){return xt.addEventListener&&xt.performance}function rn(t){return t/1e3}function UD(t){let e="unknown",n="unknown",r="";for(const i of t){if(i==="/"){[e,n]=t.split("/");break}if(!isNaN(Number(i))){e=r==="h"?"http":r,n=t.split(r)[1];break}r+=i}return r===t&&(e=r),{name:e,version:n}}function tz(){let t=0,e,n;if(!rz())return;let r=!1;function i(){r||(r=!0,n&&nz(t,e,n),s())}const s=ND(({metric:a})=>{const o=a.entries[a.entries.length-1];o&&(t=a.value,e=o)},!0);Iu(()=>{i()}),setTimeout(()=>{const a=bn();if(!a)return;const o=a.on("startNavigationSpan",()=>{i(),o==null||o()}),l=Ur();if(l){const c=Sr(l);gt(c).op==="pageload"&&(n=c.spanContext().spanId)}},0)}function nz(t,e,n){var l;LD&&Ye.log(`Sending CLS span (${t})`);const r=rn((Ni()||0)+((e==null?void 0:e.startTime)||0)),i=_n().getScopeData().transactionName,s=e?Qc((l=e.sources[0])==null?void 0:l.node):"Layout shift",a={[Qt]:"auto.http.browser.cls",[Rl]:"ui.webvital.cls",[GT]:(e==null?void 0:e.duration)||0,"sentry.pageload.span_id":n},o=BD({name:s,transaction:i,attributes:a,startTime:r});o&&(o.addEvent("cls",{[Lg]:"",[Cg]:t}),o.end(r))}function rz(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}const iz=2147483647;let BA=0,Xn={},Gr,_c;function sz({recordClsStandaloneSpans:t}){const e=YT();if(e&&Ni()){e.mark&&xt.performance.mark("sentry-tracing-init");const n=fz(),r=uz(),i=dz(),s=t?tz():cz();return()=>{n(),r(),i(),s==null||s()}}return()=>{}}function az(){dd("longtask",({entries:t})=>{const e=Ur();if(!e)return;const{op:n,start_timestamp:r}=gt(e);for(const i of t){const s=rn(Ni()+i.startTime),a=rn(i.duration);n==="navigation"&&r&&s<r||da(e,s,s+a,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[Qt]:"auto.ui.browser.metrics"}})}})}function oz(){new PerformanceObserver(e=>{const n=Ur();if(n)for(const r of e.getEntries()){if(!r.scripts[0])continue;const i=rn(Ni()+r.startTime),{start_timestamp:s,op:a}=gt(n);if(a==="navigation"&&s&&i<s)continue;const o=rn(r.duration),l={[Qt]:"auto.ui.browser.metrics"},c=r.scripts[0],{invoker:u,invokerType:f,sourceURL:d,sourceFunctionName:h,sourceCharPosition:p}=c;l["browser.script.invoker"]=u,l["browser.script.invoker_type"]=f,d&&(l["code.filepath"]=d),h&&(l["code.function"]=h),p!==-1&&(l["browser.script.source_char_position"]=p),da(n,i,i+o,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:l})}}).observe({type:"long-animation-frame",buffered:!0})}function lz(){dd("event",({entries:t})=>{const e=Ur();if(e){for(const n of t)if(n.name==="click"){const r=rn(Ni()+n.startTime),i=rn(n.duration),s={name:Qc(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[Qt]:"auto.ui.browser.metrics"}},a=r3(n.target);a&&(s.attributes["ui.component_name"]=a),da(e,r,r+i,s)}}})}function cz(){return ND(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(Xn.cls={value:t.value,unit:""},_c=e)},!0)}function uz(){return VW(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(Xn.lcp={value:t.value,unit:"millisecond"},Gr=e)},!0)}function fz(){return qW(({metric:t})=>{const e=t.entries[t.entries.length-1];if(!e)return;const n=rn(Ni()),r=rn(e.startTime);Xn.fid={value:t.value,unit:"millisecond"},Xn["mark.fid"]={value:n+r,unit:"second"}})}function dz(){return KW(({metric:t})=>{t.entries[t.entries.length-1]&&(Xn.ttfb={value:t.value,unit:"millisecond"})})}function hz(t,e){const n=YT(),r=Ni();if(!(n!=null&&n.getEntries)||!r)return;const i=rn(r),s=n.getEntries(),{op:a,start_timestamp:o}=gt(t);if(s.slice(BA).forEach(l=>{const c=rn(l.startTime),u=rn(Math.max(0,l.duration));if(!(a==="navigation"&&o&&i+c<o))switch(l.entryType){case"navigation":{mz(t,l,i);break}case"mark":case"paint":case"measure":{pz(t,l,c,u,i);const f=Pg(),d=l.startTime<f.firstHiddenTime;l.name==="first-paint"&&d&&(Xn.fp={value:l.startTime,unit:"millisecond"}),l.name==="first-contentful-paint"&&d&&(Xn.fcp={value:l.startTime,unit:"millisecond"});break}case"resource":{vz(t,l,l.name,c,u,i);break}}}),BA=Math.max(s.length-1,0),_z(t),a==="pageload"){bz(Xn);const l=Xn["mark.fid"];l&&Xn.fid&&(da(t,l.value,l.value+rn(Xn.fid.value),{name:"first input delay",op:"ui.action",attributes:{[Qt]:"auto.ui.browser.metrics"}}),delete Xn["mark.fid"]),(!("fcp"in Xn)||!e.recordClsOnPageloadSpan)&&delete Xn.cls,Object.entries(Xn).forEac
38h(([c,u])=>{vK(c,u.value,u.unit)}),t.setAttribute("performance.timeOrigin",i),t.setAttribute("performance.activationStart",Hd()),Ez(t)}Gr=void 0,_c=void 0,Xn={}}function pz(t,e,n,r,i){const s=Ud(!1),a=rn(s?s.requestStart:0),o=i+Math.max(n,a),l=i+n,c=l+r,u={[Qt]:"auto.resource.browser.metrics"};o!==l&&(u["sentry.browser.measure_happened_before_request"]=!0,u["sentry.browser.measure_start_time"]=o),o<=c&&da(t,o,c,{name:e.name,op:e.entryType,attributes:u})}function mz(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{gh(t,e,r,n)}),gh(t,e,"secureConnection",n,"TLS/SSL"),gh(t,e,"fetch",n,"cache"),gh(t,e,"domainLookup",n,"DNS"),yz(t,e,n)}function gh(t,e,n,r,i=n){const s=gz(n),a=e[s],o=e[`${n}Start`];!o||!a||da(t,r+rn(o),r+rn(a),{op:`browser.${i}`,name:e.name,attributes:{[Qt]:"auto.ui.browser.metrics",...n==="redirect"&&e.redirectCount!=null?{"http.redirect_count":e.redirectCount}:{}}})}function gz(t){return t==="secureConnection"?"connectEnd":t==="fetch"?"domainLookupStart":`${t}End`}function yz(t,e,n){const r=n+rn(e.requestStart),i=n+rn(e.responseEnd),s=n+rn(e.responseStart);e.responseEnd&&(da(t,r,i,{op:"browser.request",name:e.name,attributes:{[Qt]:"auto.ui.browser.metrics"}}),da(t,s,i,{op:"browser.response",name:e.name,attributes:{[Qt]:"auto.ui.browser.metrics"}}))}function vz(t,e,n,r,i,s){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;const a=_m(n),o={[Qt]:"auto.resource.browser.metrics"};sv(o,e,"transferSize","http.response_transfer_size"),sv(o,e,"encodedBodySize","http.response_content_length"),sv(o,e,"decodedBodySize","http.decoded_response_content_length");const l=e.deliveryType;l!=null&&(o["http.response_delivery_type"]=l);const c=e.renderBlockingStatus;c&&(o["resource.render_blocking_status"]=c),a.protocol&&(o["url.scheme"]=a.protocol.split(":").pop()),a.host&&(o["server.address"]=a.host),o["url.same_origin"]=n.includes(xt.location.origin);const{name:u,version:f}=UD(e.nextHopProtocol);o["network.protocol.name"]=u,o["network.protocol.version"]=f;const d=s+r,h=d+i;da(t,d,h,{name:n.replace(xt.location.origin,""),op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",attributes:o})}function _z(t){const e=xt.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&t.setAttribute("connectionType",n.type),iv(n.rtt)&&(Xn["connection.rtt"]={value:n.rtt,unit:"millisecond"})),iv(e.deviceMemory)&&t.setAttribute("deviceMemory",`${e.deviceMemory} GB`),iv(e.hardwareConcurrency)&&t.setAttribute("hardwareConcurrency",String(e.hardwareConcurrency))}function Ez(t){Gr&&(Gr.element&&t.setAttribute("lcp.element",Qc(Gr.element)),Gr.id&&t.setAttribute("lcp.id",Gr.id),Gr.url&&t.setAttribute("lcp.url",Gr.url.trim().slice(0,200)),Gr.loadTime!=null&&t.setAttribute("lcp.loadTime",Gr.loadTime),Gr.renderTime!=null&&t.setAttribute("lcp.renderTime",Gr.renderTime),t.setAttribute("lcp.size",Gr.size)),_c!=null&&_c.sources&&_c.sources.forEach((e,n)=>t.setAttribute(`cls.source.${n+1}`,Qc(e.node)))}function sv(t,e,n,r){const i=e[n];i!=null&&i<iz&&(t[r]=i)}function bz(t){const e=Ud(!1);if(!e)return;const{responseStart:n,requestStart:r}=e;r<=n&&(t["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}let yh;function Tz(t){const e="history";Au(e,t),Ru(e,Sz)}function Sz(){if(xt.addEventListener("popstate",()=>{const e=xt.location.href,n=yh;if(yh=e,n===e)return;Ls("history",{from:n,to:e})}),!oW())return;function t(e){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const i=yh,s=String(r);if(yh=s,i===s)return e.apply(this,n);Ls("history",{from:i,to:s})}return e.apply(this,n)}}vE(xt.history,"pushState",t),vE(xt.history,"replaceState",t)}const tf="__sentry_xhr_v3__";function wz(t){const e="xhr";Au(e,t),Ru(e,xz)}function xz(){if(!xt.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){const i=new Error,s=Tr()*1e3,a=Ya(r[0])?r[0].toUpperCase():void 0,o=Az(r[1]);if(!a||!o)return e.apply(n,r);n[tf]={method:a,url:o,request_headers:{}},a==="POST"&&o.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const l=()=>{const c=n[tf];if(c&&n.readyState===4){try{c.status_code=n.status}catch{}const u={endTimestamp:Tr()*1e3,startTimestamp:s,xhr:n,virtualError:i};Ls("xhr",u)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(c,u,f){return l(),c.apply(u,f)}}):n.addEventListener("readystatechange",l),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(c,u,f){const[d,h]=f,p=u[tf];return p&&Ya(d)&&Ya(h)&&(p.request_headers[d.toLowerCase()]=h),c.apply(u,f)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){const i=n[tf];if(!i)return e.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const s={startTimestamp:Tr()*1e3,xhr:n};return Ls("xhr",s),e.apply(n,r)}})}function Az(t){if(Ya(t))return t;try{return t.toString()}catch{}}const av=[],ap=new Map;function Rz(){if(YT()&&Ni()){const e=Lz();return()=>{e()}}return()=>{}}const UA={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Lz(){return WW(({metric:t})=>{if(t.value==null)return;const e=t.entries.find(p=>p.duration===t.value&&UA[p.name]);if(!e)return;const{interactionId:n}
38=e,r=UA[e.name],i=rn(Ni()+e.startTime),s=rn(t.value),a=Ur(),o=a?Sr(a):void 0,c=(n!=null?ap.get(n):void 0)||o,u=c?gt(c).description:_n().getScopeData().transactionName,f=Qc(e.target),d={[Qt]:"auto.http.browser.inp",[Rl]:`ui.interaction.${r}`,[GT]:e.duration},h=BD({name:f,transaction:u,attributes:d,startTime:i});h&&(h.addEvent("inp",{[Lg]:"millisecond",[Cg]:t.value}),h.end(i+s))})}function Cz(){const t=({entries:e})=>{const n=Ur(),r=n&&Sr(n);e.forEach(i=>{if(!ez(i)||!r)return;const s=i.interactionId;if(s!=null&&!ap.has(s)){if(av.length>10){const a=av.shift();ap.delete(a)}av.push(s),ap.set(s,r)}})};dd("event",t),dd("first-input",t)}const Il=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,HA=new WeakMap,ov=new Map,HD={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Iz(t,e){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:s,enableHTTPTimings:a,tracePropagationTargets:o,onRequestSpanStart:l}={...HD,...e},c=typeof s=="function"?s:d=>!0,u=d=>Dz(d,o),f={};n&&(t.addEventProcessor(d=>(d.type==="transaction"&&d.spans&&d.spans.forEach(h=>{if(h.op==="http.client"){const p=ov.get(h.span_id);p&&(h.timestamp=p/1e3,ov.delete(h.span_id))}}),d)),i&&fW(d=>{if(d.response){const h=HA.get(d.response);h&&d.endTimestamp&&ov.set(h,d.endTimestamp)}}),uW(d=>{const h=tW(d,c,u,f);if(d.response&&d.fetchData.__span&&HA.set(d.response,d.fetchData.__span),h){const p=GD(d.fetchData.url),m=p?_m(p).host:void 0;h.setAttributes({"http.url":p,"server.address":m}),a&&GA(h),l==null||l(h,{headers:d.headers})}})),r&&wz(d=>{var p;const h=Oz(d,c,u,f);if(h){a&&GA(h);let m;try{m=new Headers((p=d.xhr.__sentry_xhr_v3__)==null?void 0:p.request_headers)}catch{}l==null||l(h,{headers:m})}})}function kz(t){return t.entryType==="resource"&&"initiatorType"in t&&typeof t.nextHopProtocol=="string"&&(t.initiatorType==="fetch"||t.initiatorType==="xmlhttprequest")}function GA(t){const{url:e}=gt(t).data;if(!e||typeof e!="string")return;const n=dd("resource",({entries:r})=>{r.forEach(i=>{kz(i)&&i.name.endsWith(e)&&(Pz(i).forEach(a=>t.setAttribute(...a)),setTimeout(n))})})}function os(t=0){return((Ni()||performance.timeOrigin)+t)/1e3}function Pz(t){const{name:e,version:n}=UD(t.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",e]),Ni()?[...r,["http.request.redirect_start",os(t.redirectStart)],["http.request.fetch_start",os(t.fetchStart)],["http.request.domain_lookup_start",os(t.domainLookupStart)],["http.request.domain_lookup_end",os(t.domainLookupEnd)],["http.request.connect_start",os(t.connectStart)],["http.request.secure_connection_start",os(t.secureConnectionStart)],["http.request.connection_end",os(t.connectEnd)],["http.request.request_start",os(t.requestStart)],["http.request.response_start",os(t.responseStart)],["http.request.response_end",os(t.responseEnd)]]:r}function Dz(t,e){const n=YP();if(n){let r,i;try{r=new URL(t,n),i=new URL(n).origin}catch{return!1}const s=r.origin===i;return e?Xy(r.toString(),e)||s&&Xy(r.pathname,e):s}else{const r=!!t.match(/^\/(?!\/)/);return e?Xy(t,e):r}}function Oz(t,e,n,r){const i=t.xhr,s=i==null?void 0:i[tf];if(!i||i.__sentry_own_request__||!s)return;const{url:a,method:o}=s,l=fa()&&e(a);if(t.endTimestamp&&l){const m=i.__sentry_xhr_span_id__;if(!m)return;const g=r[m];g&&s.status_code!==void 0&&(rD(g,s.status_code),g.end(),delete r[m]);return}const c=GD(a),u=_m(c||a),f=eW(a),d=!!Ur(),h=l&&d?Cl({name:`${o} ${f}`,attributes:{url:a,type:"xhr","http.method":o,"http.url":c,"server.address":u==null?void 0:u.host,[Qt]:"auto.http.browser",[Rl]:"http.client",...(u==null?void 0:u.search)&&{"http.query":u==null?void 0:u.search},...(u==null?void 0:u.hash)&&{"http.fragment":u==null?void 0:u.hash}}}):new Ll;i.__sentry_xhr_span_id__=h.spanContext().spanId,r[i.__sentry_xhr_span_id__]=h,n(a)&&Mz(i,fa()&&d?h:void 0);const p=bn();return p&&p.emit("beforeOutgoingRequestSpan",h,t),h}function Mz(t,e){const{"sentry-trace":n,baggage:r}=xD({span:e});n&&Nz(t,n,r)}function Nz(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader("baggage",n)}catch{}}function GD(t){try{return new URL(t,Ii.location.origin).href}catch{return}}function Fz(){Ii.document?Ii.document.addEventListener("visibilitychange",()=>{const t=Ur();if(!t)return;const e=Sr(t);if(Ii.document.hidden&&e){const n="cancelled",{op:r,status:i}=gt(e);Il&&Ye.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||e.setStatus({code:$n,message:n}),e.setAttribute("sentry.cancellation_reason","document.hidden"),e.end()}}):Il&&Ye.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const $z=3600,jD="sentry_previous_trace",Bz="sentry.previous_trace";function jA(t,e){const n=gt(e);if(!t)return{spanContext:e.spanContext(),startTimestamp:n.start_timestamp};const r=t.spanContext;return r.traceId===n.trace_id?t:(Date.now()/1e3-t.startTimestamp<=$z&&(Il&&Ye.info(`Adding previous_trace ${r} link to span ${{op:n.op,...e.spanContext()}}`),e.addLink({context:r,attributes:{[x3]:"previous_trace"}}),e.setAttribute(Bz,`${r.traceId}-${r.spanId}-${r.traceFlags===1?1:0}`)),{spanContext:e.spanContext(),startTimestamp:gt(e).start_timestamp})}function Uz(t){try{Ii.sessionStorage.setItem(jD,JSON.stringify(t))}catch(e){Il&&Ye.warn("Could not store previous trace in sessionStorage",e)}}function Hz(){var t;try{const e=(t=Ii.sessionStorage)==null?void 0:t.getItem(jD);return JSON.parse(e)}catch{return}}const Gz="BrowserTracing",jz={...sp,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
38dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,linkPreviousTrace:"in-memory",_experiments:{},...HD};let VA=!1;const qA=(t={})=>{VA&&wu(()=>{console.warn("Multiple browserTracingIntegration instances are not supported.")}),VA=!0;const e=Ii.document;J3();const{enableInp:n,enableLongTask:r,enableLongAnimationFrame:i,_experiments:{enableInteractions:s,enableStandaloneClsSpans:a},beforeStartSpan:o,idleTimeout:l,finalTimeout:c,childSpanTimeout:u,markBackgroundSpan:f,traceFetch:d,traceXHR:h,trackFetchStreamPerformance:p,shouldCreateSpanForRequest:m,enableHTTPTimings:g,instrumentPageLoad:_,instrumentNavigation:v,linkPreviousTrace:y,onRequestSpanStart:E}={...jz,...t},b=sz({recordClsStandaloneSpans:a||!1});n&&Rz(),i&&Ot.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?oz():r&&az(),s&&lz();const T={name:void 0,source:void 0};function S(A,w){const x=w.op==="pageload",L=o?o(w):w,R=L.attributes||{};w.name!==L.name&&(R[Ci]="custom",L.attributes=R),T.name=L.name,T.source=R[Ci];const k=TD(L,{idleTimeout:l,finalTimeout:c,childSpanTimeout:u,disableAutoFinish:x,beforeSpanEnd:U=>{b(),hz(U,{recordClsOnPageloadSpan:!a}),WA(A,void 0);const H=_n(),M=H.getPropagationContext();H.setPropagationContext({...M,traceId:k.spanContext().traceId,sampled:Hl(k),dsc:so(U)})}});WA(A,k);function F(){e&&["interactive","complete"].includes(e.readyState)&&A.emit("idleSpanEnableAutoFinish",k)}x&&e&&(e.addEventListener("readystatechange",()=>{F()}),F())}return{name:Gz,afterAllSetup(A){let w=YP();function x(){const L=Dg(A);L&&!gt(L).timestamp&&(Il&&Ye.log(`[Tracing] Finishing current active span with op: ${gt(L).op}`),L.end())}if(A.on("startNavigationSpan",L=>{bn()===A&&(x(),Bd().setPropagationContext({traceId:io(),sampleRand:Math.random()}),_n().setPropagationContext({traceId:io(),sampleRand:Math.random()}),S(A,{op:"navigation",...L}))}),A.on("startPageLoadSpan",(L,R={})=>{if(bn()!==A)return;x();const k=R.sentryTrace||KA("sentry-trace"),F=R.baggage||KA("baggage"),U=M3(k,F);_n().setPropagationContext(U),S(A,{op:"pageload",...L})}),y!=="off"){let L;A.on("spanStart",R=>{if(Sr(R)===R)if(y==="session-storage"){const k=jA(Hz(),R);Uz(k)}else L=jA(L,R)})}if(Ii.location){if(_){const L=Ni();Vz(A,{name:Ii.location.pathname,startTime:L?L/1e3:void 0,attributes:{[Ci]:"url",[Qt]:"auto.pageload.browser"}})}v&&Tz(({to:L,from:R})=>{if(R===void 0&&(w==null?void 0:w.indexOf(L))!==-1){w=void 0;return}R!==L&&(w=void 0,VD(A,{name:Ii.location.pathname,attributes:{[Ci]:"url",[Qt]:"auto.navigation.browser"}}))})}f&&Fz(),s&&qz(A,l,c,u,T),n&&Cz(),Iz(A,{traceFetch:d,traceXHR:h,trackFetchStreamPerformance:p,tracePropagationTargets:A.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:m,enableHTTPTimings:g,onRequestSpanStart:E})}}};function Vz(t,e,n){return t.emit("startPageLoadSpan",e,n),_n().setTransactionName(e.name),Dg(t)}function VD(t,e){return t.emit("startNavigationSpan",e),_n().setTransactionName(e.name),Dg(t)}function KA(t){const e=Ii.document,n=e==null?void 0:e.querySelector(`meta[name=${t}]`);return(n==null?void 0:n.getAttribute("content"))||void 0}function qz(t,e,n,r,i){const s=Ii.document;let a;const o=()=>{const l="ui.action.click",c=Dg(t);if(c){const u=gt(c).op;if(["navigation","pageload"].includes(u)){Il&&Ye.warn(`[Tracing] Did not create ${l} span because a pageload or navigation span is in progress.`);return}}if(a&&(a.setAttribute(EE,"interactionInterrupted"),a.end(),a=void 0),!i.name){Il&&Ye.warn(`[Tracing] Did not create ${l} transaction because _latestRouteName is missing.`);return}a=TD({name:i.name,op:l,attributes:{[Ci]:i.source||"url"}},{idleTimeout:e,finalTimeout:n,childSpanTimeout:r})};s&&addEventListener("click",o,{once:!1,capture:!0})}const qD="_sentry_idleSpan";function Dg(t){return t[qD]}function WA(t,e){es(t,qD,e)}const KD=["activate","mount"],WD=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Kz=/(?:^|[-_])(\w)/g,Wz=t=>t.replace(Kz,e=>e.toUpperCase()).replace(/[-_]/g,""),zz="<Root>",lv="<Anonymous>",Yz=(t,e)=>t.repeat(e),Ff=(t,e)=>{if(!t)return lv;if(t.$root===t)return zz;if(!t.$options)return lv;const n=t.$options;let r=n.name||n._componentTag||n.__name;const i=n.__file;if(!r&&i){const s=i.match(/([^/\\]+)\.vue$/);s&&(r=s[1])}return(r?`<${Wz(r)}>`:lv)+(i&&e!==!1?` at ${i}`:"")},Xz=t=>{if(t&&(t._isVue||t.__isVue)&&t.$parent){const e=[];let n=0;for(;t;){if(e.length>0){const i=e[e.length-1];if(i.constructor===t.constructor){n++,t=t.$parent;continue}else n>0&&(e[e.length-1]=[i,n],n=0)}
38e.push(t),t=t.$parent}return` 39 40found in 41 42${e.map((i,s)=>`${(s===0?"---> ":Yz(" ",5+s*2))+(Array.isArray(i)?`${Ff(i[0])}... (${i[1]} recursive calls)`:Ff(i))}`).join(` 43`)}`}return` 44 45(found in ${Ff(t)})`},Jz=(t,e)=>{const{errorHandler:n}=t.config;t.config.errorHandler=(r,i,s)=>{var c;const a=Ff(i,!1),o=i?Xz(i):"",l={componentName:a,lifecycleHook:s,trace:o};if(e.attachProps&&i&&((c=i.$options)!=null&&c.propsData?l.propsData=i.$options.propsData:i.$props&&(l.propsData=i.$props)),setTimeout(()=>{Ig(r,{captureContext:{contexts:{vue:l}},mechanism:{handled:!!n,type:"vue"}})}),typeof n=="function"&&t.config.errorHandler)n.call(t,r,i,s);else throw r}},zA="ui.vue",Qz={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function Zz(t,e,n){t.$_sentryRootSpanTimer&&clearTimeout(t.$_sentryRootSpanTimer),t.$_sentryRootSpanTimer=setTimeout(()=>{var r;(r=t.$root)!=null&&r.$_sentryRootSpan&&(t.$root.$_sentryRootSpan.end(e),t.$root.$_sentryRootSpan=void 0)},n)}function e8(t,e){function n(i){return i.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,"$1")}return t.some(i=>n(e)===n(i))}const t8=(t={})=>{const e=(t.hooks||[]).concat(KD).filter((r,i,s)=>s.indexOf(r)===i),n={};for(const r of e){const i=Qz[r];if(!i){WD&&Ye.warn(`Unknown hook: ${r}`);continue}for(const s of i)n[s]=function(){var c;const a=this.$root===this;a&&(this.$_sentryRootSpan=this.$_sentryRootSpan||Cl({name:"Application Render",op:`${zA}.render`,attributes:{[Qt]:"auto.ui.vue"},onlyIfParent:!0}));const o=Ff(this,!1),l=Array.isArray(t.trackComponents)?e8(t.trackComponents,o):t.trackComponents;if(!(!a&&!l))if(this.$_sentrySpans=this.$_sentrySpans||{},s==i[0]){if(((c=this.$root)==null?void 0:c.$_sentryRootSpan)||Ur()){const f=this.$_sentrySpans[r];f&&f.end(),this.$_sentrySpans[r]=Cl({name:`Vue ${o}`,op:`${zA}.${r}`,attributes:{[Qt]:"auto.ui.vue"},onlyIfParent:!0})}}else{const u=this.$_sentrySpans[r];if(!u)return;u.end(),Zz(this,Tr(),t.timeout||2e3)}}}return n},n8=Ot,r8={Vue:n8.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:KD,timeout:2e3,trackComponents:!1}},i8="Vue",s8=(t={})=>({name:i8,setup(e){const n={...r8,...e.getOptions(),...t};if(!n.Vue&&!n.app){wu(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(i=>YA(i,n)):n.Vue&&YA(n.Vue,n)}}),YA=(t,e)=>{var n;WD&&((n=t._instance)==null?void 0:n.isMounted)===!0&&wu(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),e.attachErrorHandler&&Jz(t,e),fa(e)&&t.mixin(t8(e.tracingOptions))};function a8(t,e,n){let r=!0;t.onError(i=>Ig(i,{mechanism:{handled:!1}})),t.beforeEach((i,s,a)=>{const o=s.name==null&&s.matched.length===0||s.name===void 0&&r;r&&(r=!1);const l={[Qt]:"auto.navigation.vue"};for(const f of Object.keys(i.params))l[`params.${f}`]=i.params[f];for(const f of Object.keys(i.query)){const d=i.query[f];d&&(l[`query.${f}`]=d)}let c=i.path,u="url";if(i.name&&e.routeLabel!=="path")c=i.name.toString(),u="custom";else if(i.matched.length>0){const f=i.matched.length-1;c=i.matched[f].path,u="route"}if(_n().setTransactionName(c),e.instrumentPageLoad&&o){const f=o8();f&&(gt(f).data[Ci]!=="custom"&&(f.updateName(c),f.setAttribute(Ci,u)),f.setAttributes({...l,[Qt]:"auto.pageload.vue"}))}e.instrumentNavigation&&!o&&(l[Ci]=u,l[Qt]="auto.navigation.vue",n({name:c,op:"navigation",attributes:l})),a&&a()})}function o8(){const t=Ur(),e=t&&Sr(t);if(!e)return;const n=gt(e).op;return n==="navigation"||n==="pageload"?e:void 0}function l8(t={}){if(!t.router)return qA(t);const e=qA({...t,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:i=!0,routeLabel:s="name"}=t;return{...e,afterAllSetup(a){e.afterAllSetup(a),a8(n,{routeLabel:s,instrumentNavigation:r,instrumentPageLoad:i},l=>{VD(a,l)})}}}function XA(t){const{error:e,instance:n,info:r}=t,i={info:r};if(n!=null&&n.$props){const s=bn(),a=s?s.getOptions():null;a!=null&&a.attachProps&&n.$props!==!1&&(i.propsData=n.$props)}setTimeout(()=>{Ig(e,{captureContext:{contexts:{nuxt:i}},mechanism:{handled:!1}})})}const c8=wn({name:"sentry-client-integrations",dependsOn:["sentry-client-config"],async setup(t){if(typeof __SENTRY_TRACING__>"u"||__SENTRY_TRACING__){const e=bn();e&&"$router"in t&&e.addIntegration(l8({router:t.$router,routeLabel:"path"}))}t.hook("app:created",e=>{const n=bn();n&&n.addIntegration(s8({...Ot._sentryNuxtVueIntegrationOptions,app:e,attachErrorHandler:!1}))}),t.hook("app:error",e=>{Zk(e)&&e.statusCode>=300&&e.statusCode<500||XA({error:e})}),t.hook("vue:error",(e,n,r)=>{XA({error:e,instance:n,info:r})})}}),u8=wn({name:"sentry-client-config",async setup(){let t,e;[t,e]=za(()=>Ve(()=>import("./DjY2oI0z.js"),[],import.meta.url)),await t,e()}});var JA=/^GTM-[0-9A-Z]+$/;function cv(t){if(typeof t!="string"||!JA.test(t)){let e=String(t).toUpperCase().replace(/.*-|[^0-9A-Z]/g,""),n=e.length===0?"":` Did you mean 'GTM-${e}'?`;throw new Error(`'${t}' is not a valid GTM-ID (${JA}).${n}`)}}function nf(t,e="dataLayer"){return t[e]||(t[e]=[]),t[e]}function Dc(t,e){let n=document,r=n.createElement("script"),i=c=>{var u;(u=e.onReady)==null||u.call(e,{id:t,script:r}),r.removeEventListener("load",i)};r.addEventListener("load",i);let s=e.dataLayerName??"dataLayer";if(nf(window,s).push({event:"gtm.js","gtm.start":new Date().getTime()}),!t)return r;r.async=!e.defer,r.defer=!!(e.defer||e.compatibility),e.nonce&&r.setAttribute("nonce",e.nonce),e.scriptType&&(r.type=e.scriptType);let a=new URLSearchParams({id:t,...e.dataLayerName?{l:e.dataLayerName}:{},...e.queryParams??{}}),o=e.source??"https://www.googletagmanager.com/gtm.js";r.src=`${o}?${a}`;let l=e.parentElement??n.body;if(typeof(l==null?void 0:l.appendChild)!="function")throw new Error("parentElement must be a DOM element");return l.appendChild(r),r}function f8(t="https://www.googletagmanager.com/gtm.js"){return Array.from(document.getElementsByTagName("script")).some(e=>e.src.includes(t))}var d8=class{constructor(e){Uu(this,"id");Uu(this,"options");Uu(this,"scriptElements",[]);Uu(this,"isInBrowserContext",()=>typeof window<"u");if(Array.isArray(e.id))for(let n of e.id)cv(typeof n=="string"?n:n.id);else cv(e.id);this.id=e.id,this.options={enabled:!0,debug:!1,loadScript:!0,defer:!1,compatibility:!1,dataLayerName:"dataLayer",...e},delete this.options.id}enabled(){return this.options.enabled??!0}
45enable(e=!0,n){if(this.options.enabled=e,this.isInBrowserContext()&&e&&!f8(n)&&this.options.loadScript)if(Array.isArray(this.id))this.id.forEach(r=>{let i;typeof r=="string"?i=Dc(r,{...this.options}):i=Dc(r.id,{...this.options,queryParams:r.queryParams}),this.scriptElements.push(i)});else{let r=Dc(this.id,{...this.options});this.scriptElements.push(r)}}debugEnabled(){return this.options.debug??!1}debug(e){this.options.debug=e}dataLayer(){return this.isInBrowserContext()&&this.options.enabled?nf(window,this.options.dataLayerName):!1}trackView(e,n,r={}){let i=this.isInBrowserContext()&&(this.options.enabled??!1);this.options.debug&&console.log(`[GTM-Support${i?"":"(disabled)"}]: Dispatching TrackView`,{screenName:e,path:n}),i&&nf(window,this.options.dataLayerName).push({...r,event:this.options.trackViewEventProperty??"content-view","content-name":n,"content-view-name":e})}trackEvent({event:e,category:n=null,action:r=null,label:i=null,value:s=null,noninteraction:a=!1,...o}={}){let l=this.isInBrowserContext()&&(this.options.enabled??!1);this.options.debug&&console.log(`[GTM-Support${l?"":"(disabled)"}]: Dispatching event`,{event:e,category:n,action:r,label:i,value:s,...o}),l&&nf(window,this.options.dataLayerName).push({event:e??"interaction",target:n,action:r,"target-properties":i,value:s,"interaction-type":a,...o})}push(e){let n=this.isInBrowserContext()&&(this.options.enabled??!1);this.options.debug&&console.log(`[GTM-Support${n?"":"(disabled)"}]: Dispatching event`,e),n&&nf(window,this.options.dataLayerName).push(e)}},Yn;function h8(t,e={id:""}){e={trackOnNextTick:!1,...e},Yn=new d8(e),t.config.globalProperties.$gtm=Yn,Yn.isInBrowserContext()&&(e.vueRouter&&p8(t,e.vueRouter,e.ignoredViews,e.trackOnNextTick,e.vueRouterAdditionalEventData),Yn.options.enabled&&Yn.options.loadScript&&(Array.isArray(e.id)?e.id.forEach(n=>{if(typeof n=="string")Dc(n,e);else{let r={...e};n.queryParams!=null&&(r.queryParams={...r.queryParams,...n.queryParams}),Dc(n.id,r)}}):Dc(e.id,e))),t.provide("gtm",e)}function p8(t,e,n=[],r,i=()=>({})){function s(a,o){return a instanceof Error?!!(a.type&o):!1}e.afterEach(async(a,o,l)=>{var d,h,p;if(typeof a.name!="string"||Array.isArray(n)&&n.includes(a.name)||typeof n=="function"&&n(a,o))return;let c=a.meta&&typeof a.meta.gtm=="string"&&a.meta.gtm?a.meta.gtm:a.name;s(l,4)?Yn!=null&&Yn.debugEnabled()&&console.log(`[VueGtm]: '${c}' not tracked due to navigation aborted`):s(l,8)&&(Yn!=null&&Yn.debugEnabled())&&console.log(`[VueGtm]: '${c}' not tracked due to navigation cancelled`);let u={...await i(a,o),...(d=a.meta)==null?void 0:d.gtmAdditionalEventData},f=((p=(h=e.options)==null?void 0:h.history)==null?void 0:p.base)??"";f.endsWith("/")||(f+="/"),f+=a.fullPath.startsWith("/")?a.fullPath.substring(1):a.fullPath,r?tr(()=>{Yn==null||Yn.trackView(c,f,u)}):Yn==null||Yn.trackView(c,f,u)})}function m8(t){return{install:e=>h8(e,t)}}const g8=wn(t=>{{const e=t.$config.public.gtm,n=xr(),r={...e,vueRouter:e.enableRouterSync&&n?n:void 0};t.vueApp.use(m8(r))}});function y8(t){var e=[],n="";for(n in t)e.push(n);return e}function IE(t){return t=JSON.stringify(t),!(typeof t!="string"||!/^\{[\s\S]*\}$/.test(t))}function v8(t){return t instanceof Array}function _8(t){return Array.prototype.slice.call(t)}function tu(){if(!(this instanceof tu))return new tu}tu.prototype={get:function(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(e)==0)return decodeURI(i.substring(e.length,i.length))}return!1},set:function(t,e,n){if(IE(t))for(const r in t)this.set(r,t[r],e,n);else if(typeof t=="string"){const r=IE(n)?n:{expires:n},i=r.path!==void 0?`;path=${r.path};path=/`:";path=/",s=r.domain?`;domain=${r.domain}`:"",a=r.secure?";secure":"";let o=r.expires!==void 0?r.expires:"";typeof o=="string"&&o!==""?o=new Date(o):typeof o=="number"&&(o=new Date(+new Date+1e3*60*60*24*o)),o!==""&&"toGMTString"in o&&(o=`;expires=${o.toGMTString()}`);const l=r.sameSite?`;SameSite=${r.sameSite}`:"";document.cookie=`${t}=${encodeURI(e)+o+i+s+a+l}`}}
45,remove:function(t){t=v8(t)?t:_8(arguments);for(var e=0,n=t.length;e<n;e++)this.set(t[e],"",-1);return t},clear:function(t){return t?this.remove(t):this.remove(y8(this.all()))},all:function(){if(document.cookie==="")return{};for(var t=document.cookie.split("; "),e={},n=0,r=t.length;n<r;n++){var i=t[n].split("=");e[decodeURI(i[0])]=decodeURI(i[1])}return e}};let xo=null;const zD=function(t,e,n){const r=arguments;if(xo||(xo=tu()),r.length===0)return xo.all();if(r.length===1&&t===null)return xo.clear();if(r.length===2&&!e)return xo.clear(t);if(typeof t=="string"&&!e)return xo.get(t);if(typeof t=="string"&&e||IE(t))return xo.set(t,e,n)};for(const t in tu.prototype)zD[t]=tu.prototype[t];const E8="viewportState";function b8(t,e){const n=$e({get(){return e.value||t.fallbackBreakpoint},set(d){e.value=d,typeof window<"u"&&t.cookie.name&&zD.set(t.cookie.name,e.value,t.cookie)}}),r=$e(()=>{const d=t.breakpoints||{},h=Object.keys(d).sort((g,_)=>d[g]-d[_]),p={};let m=h.length;for(;m--;){const g=h[m],_=d[g],v=d[h[m+1]],y=d[h[m-1]];let E="";t.feature==="minWidth"?(m>0?E=`(min-width: ${_}px)`:E="(min-width: 1px)",v&&(E+=` and (max-width: ${v-1}px)`)):(E=`(max-width: ${_}px)`,y&&(E=`(min-width: ${y-1}px) and ${E}`)),p[g]={mediaQuery:E,size:_}}return p}),i=$e(()=>Object.keys(r.value));return{breakpoint:n,breakpointValue:s,isGreaterThan:a,isGreaterOrEquals:o,isLessThan:l,isLessOrEquals:c,match:u,matches:f,queries:r};function s(d){return(t.breakpoints||{})[d]}function a(d){const h=i.value.indexOf(n.value),p=i.value.indexOf(d);return p===-1?!1:p>h}function o(d){return a(d)||u(d)}function l(d){const h=i.value.indexOf(n.value),p=i.value.indexOf(d);return p===-1?!1:p<h}function c(d){return l(d)||u(d)}function u(d){return n.value===d}function f(...d){return d.includes(n.value)}}const T8={breakpoints:{xxxs:0,xxs:320,xs:450,s:600,m:768,l:1024,xl:1340,xxl:1440,xxxl:1920},cookie:{expires:365,name:"viewport",path:"/",sameSite:"Strict",secure:!0},defaultBreakpoints:{desktop:"l",tablet:"m",mobile:"xxxs"},fallbackBreakpoint:"l",feature:"minWidth"},S8=wn(async t=>{const e=GP(E8,"$KgRndbOnZb"),n=b8(T8,e);return t.hook("app:suspense:resolve",()=>{for(const r in n.queries.value){const{mediaQuery:i}=n.queries.value[r],s=window.matchMedia(i);s.matches&&(n.breakpoint.value=r),s.onchange=a=>{a.matches&&(n.breakpoint.value=r)}}}),t.provide("viewport",n)}),w8=wn(()=>{const t=yo(),{protocol:e,host:n}=HP(),r=n.replace(/\.$/,"");_P({link:[{rel:"canonical",href:()=>`${e}//${r}${t.path}`}]})});function Ys(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function YD(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*! 46 * GSAP 3.12.7 47 * https://gsap.com 48 * 49 * @license Copyright 2008-2025, GreenSock. All rights reserved. 50 * Subject to the terms at https://gsap.com/standard-license or for 51 * Club GSAP members, the agreement issued with that membership. 52 * @author: Jack Doyle, [email protected] 53*/var mi={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},nu={duration:.5,overwrite:!1,delay:0},XT,or,qt,Cs=1e8,br=1/Cs,kE=Math.PI*2,x8=kE/4,A8=0,XD=Math.sqrt,R8=Math.cos,L8=Math.sin,qn=function(e){return typeof e=="string"},tn=function(e){return typeof e=="function"},ha=function(e){return typeof e=="number"},JT=function(e){return typeof e>"u"},Ms=function(e){return typeof e=="object"},Yr=function(e){return e!==!1},QT=function(){return typeof window<"u"},vh=function(e){return tn(e)||qn(e)},JD=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},wr=Array.isArray,PE=/(?:-?\.?\d|\.)+/gi,QD=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ec=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,uv=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ZD=/[+-]=-?[.\d]+/,eO=/[^,'"\[\]\s]+/gi,C8=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Yt,hs,DE,ZT,vi={},Tm={},tO,nO=function(e){return(Tm=ru(e,vi))&&ei},eS=function(e,n){return console.warn("Invalid property",e,"set to",n,"Missing plugin? gsap.registerPlugin()")},hd=function(e,n){return!n&&console.warn(e)},rO=function(e,n){return e&&(vi[e]=n)&&Tm&&(Tm[e]=n)||vi},pd=function(){return 0},I8={suppressEvents:!0,isStart:!0,kill:!1},op={suppressEvents:!0,kill:!1},k8={suppressEvents:!0},tS={},Ja=[],OE={},iO,oi={},fv={},QA=30,lp=[],nS="",rS=function(e){var n=e[0],r,i;if(Ms(n)||tn(n)||(e=[e]),!(r=(n._gsap||{}).harness)){for(i=lp.length;i--&&!lp[i].targetTest(n););r=lp[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new LO(e[i],r)))||e.splice(i,1);return e},hl=function(e){return e._gsap||rS(ki(e))[0]._gsap},sO=function(e,n,r){return(r=e[n])&&tn(r)?e[n]():JT(r)&&e.getAttribute&&e.getAttribute(n)||r}
vendor: 4,093 bytes, line 53
53,Xr=function(e,n){return(e=e.split(",")).forEach(n)||e},nn=function(e){return Math.round(e*1e5)/1e5||0},gn=function(e){return Math.round(e*1e7)/1e7||0},Oc=function(e,n){var r=n.charAt(0),i=parseFloat(n.substr(2));return e=parseFloat(e),r==="+"?e+i:r==="-"?e-i:r==="*"?e*i:e/i},P8=function(e,n){for(var r=n.length,i=0;e.indexOf(n[i])<0&&++i<r;);return i<r},Sm=function(){var e=Ja.length,n=Ja.slice(0),r,i;for(OE={},Ja.length=0,r=0;r<e;r++)i=n[r],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},aO=function(e,n,r,i){Ja.length&&!or&&Sm(),e.render(n,r,or&&n<0&&(e._initted||e._startAt)),Ja.length&&!or&&Sm()},oO=function(e){var n=parseFloat(e);return(n||n===0)&&(e+"").match(eO).length<2?n:qn(e)?e.trim():e},lO=function(e){return e},_i=function(e,n){for(var r in n)r in e||(e[r]=n[r]);return e},D8=function(e){return function(n,r){for(var i in r)i in n||i==="duration"&&e||i==="ease"||(n[i]=r[i])}},ru=function(e,n){for(var r in n)e[r]=n[r];return e},ZA=function t(e,n){for(var r in n)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=Ms(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},wm=function(e,n){var r={},i;for(i in e)i in n||(r[i]=e[i]);return r},$f=function(e){var n=e.parent||Yt,r=e.keyframes?D8(wr(e.keyframes)):_i;if(Yr(e.inherit))for(;n;)r(e,n.vars.defaults),n=n.parent||n._dp;return e},O8=function(e,n){for(var r=e.length,i=r===n.length;i&&r--&&e[r]===n[r];);return r<0},cO=function(e,n,r,i,s){var a=e[i],o;if(s)for(o=n[s];a&&a[s]>o;)a=a._prev;return a?(n._next=a._next,a._next=n):(n._next=e[r],e[r]=n),n._next?n._next._prev=n:e[i]=n,n._prev=a,n.parent=n._dp=e,n},Og=function(e,n,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var s=n._prev,a=n._next;s?s._next=a:e[r]===n&&(e[r]=a),a?a._prev=s:e[i]===n&&(e[i]=s),n._next=n._prev=n.parent=null},ao=function(e,n){e.parent&&(!n||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},pl=function(e,n){if(e&&(!n||n._end>e._dur||n._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},M8=function(e){for(var n=e.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return e},ME=function(e,n,r,i){return e._startAt&&(or?e._startAt.revert(op):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(n,!0,i))},N8=function t(e){return!e||e._ts&&t(e.parent)},eR=function(e){return e._repeat?iu(e._tTime,e=e.duration()+e._rDelay)*e:0},iu=function(e,n){var r=Math.floor(e=gn(e/n));return e&&r===e?r-1:r},xm=function(e,n){return(e-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},Mg=function(e){return e._end=gn(e._start+(e._tDur/Math.abs(e._ts||e._rts||br)||0))},Ng=function(e,n){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=gn(r._time-(e._ts>0?n/e._ts:((e._dirty?e.totalDuration():e._tDur)-n)/-e._ts)),Mg(e),r._dirty||pl(r,e)),e},uO=function(e,n){var r;if((n._time||!n._dur&&n._initted||n._start<e._time&&(n._dur||!n.add))&&(r=xm(e.rawTime(),n),(!n._dur||Vd(0,n.totalDuration(),r)-n._tTime>br)&&n.render(r,!0)),pl(e,n)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-1e-8}},ys=function(e,n,r,i){return n.parent&&ao(n),n._start=gn((ha(r)?r:r||e!==Yt?Si(e,r,n):e._time)+n._delay),n._end=gn(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),cO(e,n,"_first","_last",e._sort?"_start":0),NE(n)||(e._recent=n),i||uO(e,n),e._ts<0&&Ng(e,e._tTime),e},fO=function(e,n){return(vi.ScrollTrigger||eS("scrollTrigger",n))&&vi.ScrollTrigger.create(n,e)},dO=function(e,n,r,i,s){if(sS(e,n,s),!e._initted)return 1;if(!r&&e._pt&&!or&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&iO!==fi.frame)return Ja.push(e),e._lazy=[s,i],1},F8=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},NE=function(e){var n=e.data;return n==="isFromStart"||n==="isStart"},$8=function(e,n,r,i){var s=e.ratio,a=n<0||!n&&(!e._start&&F8(e)&&!(!e._initted&&NE(e))||(e._ts<0||e._dp._ts<0)&&!NE(e))?0:1,o=e._rDelay,l=0,c,u,f;if(o&&e._repeat&&(l=Vd(0,e._tDur,n),u=iu(l,o),e._yoyo&&u&1&&(a=1-a),u!==iu(e._tTime,o)&&(s=1-a,e.vars.repeatRefresh&&e._initted&&e.invali
vendor: 16,722 bytes, line 53
53date())),a!==s||or||i||e._zTime===br||!n&&e._zTime){if(!e._initted&&dO(e,n,i,r,l))return;for(f=e._zTime,e._zTime=n||(r?br:0),r||(r=n&&!f),e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=l,c=e._pt;c;)c.r(a,c.d),c=c._next;n<0&&ME(e,n,r,!0),e._onUpdate&&!r&&hi(e,"onUpdate"),l&&e._repeat&&!r&&e.parent&&hi(e,"onRepeat"),(n>=e._tDur||n<0)&&e.ratio===a&&(a&&ao(e,1),!r&&!or&&(hi(e,a?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=n)},B8=function(e,n,r){var i;if(r>n)for(i=e._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>n)return i;i=i._next}else for(i=e._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start<n)return i;i=i._prev}},su=function(e,n,r,i){var s=e._repeat,a=gn(n)||0,o=e._tTime/e._tDur;return o&&!i&&(e._time*=a/e._dur),e._dur=a,e._tDur=s?s<0?1e10:gn(a*(s+1)+e._rDelay*s):a,o>0&&!i&&Ng(e,e._tTime=e._tDur*o),e.parent&&Mg(e),r||pl(e.parent,e),e},tR=function(e){return e instanceof $r?pl(e):su(e,e._dur)},U8={_start:0,endTime:pd,totalDuration:pd},Si=function t(e,n,r){var i=e.labels,s=e._recent||U8,a=e.duration()>=Cs?s.endTime(!1):e._dur,o,l,c;return qn(n)&&(isNaN(n)||n in i)?(l=n.charAt(0),c=n.substr(-1)==="%",o=n.indexOf("="),l==="<"||l===">"?(o>=0&&(n=n.replace(/=/,"")),(l==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(n.substr(1))||0)*(c?(o<0?s:r).totalDuration()/100:1)):o<0?(n in i||(i[n]=a),i[n]):(l=parseFloat(n.charAt(o-1)+n.substr(o+1)),c&&r&&(l=l/100*(wr(r)?r[0]:r).totalDuration()),o>1?t(e,n.substr(0,o-1),r)+l:a+l)):n==null?a:+n},Bf=function(e,n,r){var i=ha(n[1]),s=(i?2:1)+(e<2?0:1),a=n[s],o,l;if(i&&(a.duration=n[1]),a.parent=r,e){for(o=a,l=r;l&&!("immediateRender"in o);)o=l.vars.defaults||{},l=Yr(l.vars.inherit)&&l.parent;a.immediateRender=Yr(o.immediateRender),e<2?a.runBackwards=1:a.startAt=n[s-1]}return new mn(n[0],a,n[s+1])},_o=function(e,n){return e||e===0?n(e):n},Vd=function(e,n,r){return r<e?e:r>n?n:r},yr=function(e,n){return!qn(e)||!(n=C8.exec(e))?"":n[1]},H8=function(e,n,r){return _o(r,function(i){return Vd(e,n,i)})},FE=[].slice,hO=function(e,n){return e&&Ms(e)&&"length"in e&&(!n&&!e.length||e.length-1 in e&&Ms(e[0]))&&!e.nodeType&&e!==hs},G8=function(e,n,r){return r===void 0&&(r=[]),e.forEach(function(i){var s;return qn(i)&&!n||hO(i,1)?(s=r).push.apply(s,ki(i)):r.push(i)})||r},ki=function(e,n,r){return qt&&!n&&qt.selector?qt.selector(e):qn(e)&&!r&&(DE||!au())?FE.call((n||ZT).querySelectorAll(e),0):wr(e)?G8(e,r):hO(e)?FE.call(e,0):e?[e]:[]},$E=function(e){return e=ki(e)[0]||hd("Invalid scope")||{},function(n){var r=e.current||e.nativeElement||e;return ki(n,r.querySelectorAll?r:r===e?hd("Invalid scope")||ZT.createElement("div"):e)}},pO=function(e){return e.sort(function(){return .5-Math.random()})},mO=function(e){if(tn(e))return e;var n=Ms(e)?e:{each:e},r=ml(n.ease),i=n.from||0,s=parseFloat(n.base)||0,a={},o=i>0&&i<1,l=isNaN(i)||o,c=n.axis,u=i,f=i;return qn(i)?u=f={center:.5,edges:.5,end:1}[i]||0:!o&&l&&(u=i[0],f=i[1]),function(d,h,p){var m=(p||n).length,g=a[m],_,v,y,E,b,T,S,A,w;if(!g){if(w=n.grid==="auto"?0:(n.grid||[1,Cs])[1],!w){for(S=-1e8;S<(S=p[w++].getBoundingClientRect().left)&&w<m;);w<m&&w--}for(g=a[m]=[],_=l?Math.min(w,m)*u-.5:i%w,v=w===Cs?0:l?m*f/w-.5:i/w|0,S=0,A=Cs,T=0;T<m;T++)y=T%w-_,E=v-(T/w|0),g[T]=b=c?Math.abs(c==="y"?E:y):XD(y*y+E*E),b>S&&(S=b),b<A&&(A=b);i==="random"&&pO(g),g.max=S-A,g.min=A,g.v=m=(parseFloat(n.amount)||parseFloat(n.each)*(w>m?m-1:c?c==="y"?m/w:w:Math.max(w,m/w))||0)*(i==="edges"?-1:1),g.b=m<0?s-m:s,g.u=yr(n.amount||n.each)||0,r=r&&m<0?xO(r):r}return m=(g[d]-g.min)/g.max||0,gn(g.b+(r?r(m):m)*g.v)+g.u}},BE=function(e){var n=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var i=gn(Math.round(parseFloat(r)/e)*e*n);return(i-i%1)/n+(ha(r)?0:yr(r))}},gO=function(e,n){var r=wr(e),i,s;return!r&&Ms(e)&&(i=r=e.radius||Cs,e.values?(e=ki(e.values),(s=!ha(e[0]))&&(i*=i)):e=BE(e.increment)),_o(n,r?tn(e)?function(a){return s=e(a),Math.abs(s-a)<=i?s:a}:function(a){for(var o=parseFloat(s?a.x:a),l=parseFloat(s?a.y:0),c=Cs,u=0,f=e.length,d,h;f--;)s?(d=e[f].x-o,h=e[f].y-l,d=d*d+h*h):d=Math.abs(e[f]-o),d<c&&(c=d,u=f);return u=!i||c<=i?e[u]:a,s||u===a||ha(a)?u:u+yr(a)}:BE(e))},yO=function(e,n,r,i){return _o(wr(e)?!n:r===!0?!!(r=0):!i,function(){return wr(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(n-e+r*.99))/r)*r*i)/i})},j8=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(i){return n.reduce(function(s,a){return a(s)},i)}},V8=function(e,n){return function(r){return e(parseFloat(r))+(n||yr(r))}},q8=function(e,n,r){return _O(e,n,0,1,r)},vO=function(e,n,r){return _o(r,function(i){return e[~~n(i)]})},K8=function t(e,n,r){var i=n-e;return wr(e)?vO(e,t(0,e.length),n):_o(r,function(s){return(i+(s-e)%i)%i+e})},W8=function t(e,n,r){var i=n-e,s=i*2;return wr(e)?vO(e,t(0,e.length-1),n):_o(r,function(a){return a=(s+(a-e)%s)%s||0,e+(a>i?s-a:a)})},md=function(e){for(var n=0,r="",i,s,a,o;~(i=e.indexOf("random(",n));)a=e.indexOf(")",i),o=e.charAt(i+7)==="[",s=e.substr(i+7,a-i-7).match(o?eO:PE),r+=e.substr(n,i-n)+yO(o?s:+s[0],o?0:+s[1],+s[2]||1e-5),n=a+1;return r+e.substr(n,e.length-n)},_O=function(e,n,r,i,s){var a=n-e,o=i-r;return _o(s,function(l){return r+((l-e)/a*o||0)})},z8=function t(e,n,r,i){var s=isNaN(e+n)?0:function(h){return(1-h)*e+h*n};if(!s){var a=qn(e),o={},l,c,u,f,d;if(r===!0&&(i=1)&&(r=null),a)e={p:e},n={p:n};else if(wr(e)&&!wr(n)){for(u=[],f=e.length,d=f-2,c=1;c<f;c++)u.push(t(e[c-1],e[c]));f--,s=function(p){p*=f;var m=Math.min(d,~~p);return u[m](p-m)},r=n}else i||(e=ru(wr(e)?[]:{},e));if(!u){for(l in n)iS.call(o,e,l,"get",n[l]);s=function(p){return lS(p,o)||(a?e.p:e)}}}return _o(r,s)},nR=function(e,n,r){var i=e.labels,s=Cs,a,o,l;for(a in i)o=i[a]-n,o<0==!!r&&o&&s>(o=Math.abs(o))&&(l=a,s=o);return l},hi=function(e,n,r){var i=e.vars,s=i[n],a=qt,o=e._ctx,l,c,u;if(s)return l=i[n+"Params"],c=i.callbackScope||e,r&&Ja.length&&Sm(),o&&(qt=o),u=l?s.apply(c,l):s.call(c),qt=a,u},rf=function(e){return ao(e),e.scrollTrigger&&e.scrollTrigger.kill(!!or),e.progress()<1&&hi(e,"onInterrupt"),e},bc,EO=[],bO=function(e){if(e)if(e=!e.name&&e.default||e,QT()||e.headless){var n=e.name,r=tn(e),i=n&&!r&&e.init?function(){this._props=[]}:e,s={init:pd,render:lS,add:iS,kill:u4,modifier:c4,rawVars:0},a={targetTest:0,get:0,getSetter:oS,aliases:{},register:0};if(au(),e!==i){if(oi[n])return;_i(i,_i(wm(e,s),a)),ru(i.prototype,ru(s,wm(e,a))),oi[i.prop=n]=i,e.targetTest&&(lp.push(i),tS[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}rO(n,i),e.register&&e.register(ei,i,Jr)}else EO.push(e)},It=255,sf={aqua:[0,It,It],lime:[0,It,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,It],navy:[0,0,128],white:[It,It,It],olive:[128,128,0],yellow:[It,It,0],orange:[It,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[It,0,0],pink:[It,192,203],cyan:[0,It,It],transparent:[It,It,It,0]},dv=function(e,n,r){return e+=e<0?1:e>1?-1:0,(e*6<1?n+(r-n)*e*6:e<.5?r:e*3<2?n+(r-n)*(2/3-e)*6:n)*It+.5|0},TO=function(e,n,r){var i=e?ha(e)?[e>>16,e>>8&It,e&It]:0:sf.black,s,a,o,l,c,u,f,d,h,p;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),sf[e])i=sf[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e="#"+s+s+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&It,i&It,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&It,e&It]}else if(e.substr(0,3)==="hsl"){if(i=p=e.match(PE),!n)l=+i[0]%360/360,c=+i[1]/100,u=+i[2]/100,a=u<=.5?u*(c+1):u+c-u*c,s=u*2-a,i.length>3&&(i[3]*=1),i[0]=dv(l+1/3,s,a),i[1]=dv(l,s,a),i[2]=dv(l-1/3,s,a);else if(~e.indexOf("="))return i=e.match(QD),r&&i.length<4&&(i[3]=1),i}else i=e.match(PE)||sf.transparent;i=i.map(Number)}return n&&!p&&(s=i[0]/It,a=i[1]/It,o=i[2]/It,f=Math.max(s,a,o),d=Math.min(s,a,o),u=(f+d)/2,f===d?l=c=0:(h=f-d,c=u>.5?h/(2-f-d):h/(f+d),l=f===s?(a-o)/h+(a<o?6:0):f===a?(o-s)/h+2:(s-a)/h+4,l*=60),i[0]=~~(l+.5),i[1]=~~(c*100+.5),i[2]=~~(u*100+.5)),r&&i.length<4&&(i[3]=1),i},SO=function(e){var n=[],r=[],i=-1;return e.split(Qa).forEach(function(s){var a=s.match(Ec)||[];n.push.apply(n,a),r.push(i+=a.length+1)}),n.c=r,n},rR=function(e,n,r){var i="",s=(e+i).match(Qa),a=n?"hsla(":"rgba(",o=0,l,c,u,f;if(!s)return e;if(s=s.map(function(d){return(d=TO(d,n,1))&&a+(n?d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:d.join(","))+")"}),r&&(u=SO(e),l=r.c,l.join(i)!==u.c.join(i)))for(c=e.replace(Qa,"1").split(Ec),f=c.length-1;o<f;o++)i+=c[o]+(~l.indexOf(o)?s.shift()||a+"0,0,0,0)":(u.length?u:s.length?s:r).shift());if(!c)for(c=e.split(Qa),f=c.length-1;o<f;o++)i+=c[o]+s[o];return i+c[f]},Qa=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in sf)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),Y8=/hsl[a]?\(/,wO=function(e){var n=e.join(" "),r;if(Qa.lastIndex=0,Qa.test(n))return r=Y8.test(n),e[1]=rR(e[1],r),e[0]=rR(e[0],r,SO(e[1])),!0},gd,fi=function(){var t=Date.now,e=500,n=33,r=t(),i=r,s=1e3/240,a=s,o=[],l,c,u,f,d,h,p=function m(g){var _=t()-i,v=g===!0,y,E,b,T;if((_>e||_<0)&&(r+=_-n),i+=_,b=i-r,y=b-a,(y>0||v)&&(T=++f.frame,d=b-f.time*1e3,f.time=b=b/1e3,a+=y+(y>=s?4:s-y),E=1),v||(l=c(m)),E)for(h=0;h<o.length;h++)o[h](b,d,T,g)};return f={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(g){return d/(1e3/(g||60))},wake:function(){tO&&(!DE&&QT()&&(hs=DE=window,ZT=hs.document||{},vi.gsap=ei,(hs.gsapVersions||(hs.gsapVersions=[])).push(ei.version),nO(Tm||hs.GreenSockGlobals||!hs.gsap&&hs||{}),EO.forEach(bO)),u=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),c=u||function(g){return setTimeout(g,a-f.time*1e3+1|0)},gd=1,p(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(l),gd=0,c=pd},lagSmoothing:function(g,_){e=g||1/0,n=Math.min(_||33,e)},fps:function(g){s=1e3/(g||240),a=f.time*1e3+s},add:function(g,_,v){var y=_?function(E,b,T,S){g(E,b,T,S),f.remove(y)}:g;return f.remove(g),o[v?"unshift":"push"](y),au(),y},remove:function(g,_){~(_=o.indexOf(g))&&o.splice(_,1)&&h>=_&&h--},_listeners:o},f}(),au=function(){return!gd&&fi.wake()},ct={},X8=/^[\d.\-M][\d.\-,\s]/,J8=/["']/g,Q8=function(e){for(var n={},r=e.substr(1,e.length-3).split(":"),i=r[0],s=1,a=r.length,o,l,c;s<a;s++)l=r[s],o=s!==a-1?l.lastIndexOf(","):l.length,c=l.substr(0,o),n[i]=isNaN(c)?c.replace(J8,"").trim():+c,i=l.substr(o+1).trim();return n},Z8=function(e){var n=e.indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",n);return e.substring(n,~i&&i<r?e.indexOf(")",r+1):r)},e4=function(e){var n=(e+"").split("("),r=ct[n[0]];return r&&n.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[Q8(n[1])]:Z8(e).split(",").map(oO)):ct._CE&&X8.test(e)?ct._CE("",e):r},xO=function(e){return function(n){return 1-e(1-n)}},AO=function t(e,n){for(var r=e._first,i;r;)r instanceof $r?t(r,n):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==n&&(r.timeline?t(r.timeline,n):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=n)),r=r._next},ml=function(e,n){return e&&(tn(e)?e:ct[e]||e4(e))||n},jl=function(e,n,r,i){r===void 0&&(r=function(l){return 1-n(1-l)}),i===void 0&&(i=function(l){return l<.5?n(l*2)/2:1-n((1-l)*2)/2});var s={easeIn:n,easeOut:r,easeInOut:i},a;return Xr(e,function(o){ct[o]=vi[o]=s,ct[a=o.toLowerCase()]=r;for(var l in s)ct[a+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=ct[o+"."+l]=s[l]}),s},RO=function(e){return function(n){return n<.5?(1-e(1-n*2))/2:.5+e((n-.5)*2)/2}},hv=function t(e,n,r){var i=n>=1?n:1,s=(r||(e?.3:.45))/(n<1?n:1),a=s/kE*(Math.asin(1/i)||0),o=function(u){return u===1?1:i*Math.pow(2,-10*u)*L8((u-a)*s)+1},l=e==="out"?o:e==="in"?function(c){return 1-o(1-c)}:RO(o);return s=kE/s,l.config=function(c,u){return t(e,c,u)},l},pv=function t(e,n){n===void 0&&(n=1.70158);var r=function(a){return a?--a*a*((n+1)*a+n)+1:0},i=e==="out"?r:e==="in"?function(s){return 1-r(1-s)}:RO(r);return i.config=function(s){return t(e,s)},i};Xr("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;jl(t+",Power"+(n-1),e?function(r){return Math.pow(r,n)}:function(r){return r},function(r){return 1-Math.pow(1-r,n)},function(r){return r<.5?Math.pow(r*2,n)/2:1-Math.pow((1-r)*2,n)/2})});ct.Linear.easeNone=ct.none=ct.Linear.easeIn;jl("Elastic",hv("in"),hv("out"),hv());(function(t,e){var n=1/e,r=2*n,i=2.5*n,s=function(o){return o<n?t*o*o:o<r?t*Math.pow(o-1.5/e,2)+.75:o<i?t*(o-=2.25/e)*o+.9375:t*Math.pow(o-2.625/e,2)+.984375};jl("Bounce",function(a){return 1-s(1-a)},s)})(7.5625,2.75);jl("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)});jl("Circ",function(t){return-(XD(1-t*t)-1)});jl("Sine",function(t){return t===1?1:-R8(t*x8)+1});jl("Back",pv("in"),pv("out"),pv());ct.SteppedEase=ct.steps=vi.SteppedEase={config:function(e,n){e===void 0&&(e=1);var r=1/e,i=e+(n?0:1),s=n?1:0,a=1-br;return function(o){return((i*Vd(0,a,o)|0)+s)*r}}};nu.ease=ct["quad.out"];Xr("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return nS+=t+","+t+"Params,"});var LO=function(e,n){this.id=A8++,e._gsap=this,this.target=e,this.harness=n,this.get=n?n.get:sO,this.set=n?n.getSetter:oS},yd=function(){function t(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,su(this,+n.duration,1,1),this.data=n.data,qt&&(this._ctx=qt,qt.data.push(this)),gd||fi.wake()}var e=t.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,su(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,i){if(au(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(Ng(this,r),!s._dp||s.parent||uO(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&ys(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===br||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),aO(this,r,i)),this},e.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+eR(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},e.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+eR(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,i){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*s,i):this._repeat?iu(this._tTime,s)+1:1},e.timeScale=function(r,i){if(!arguments.length)return this._rts===-1e-8?0:this._rts;if(this._rts===r)return this;var s=this.parent&&this._ts?xm(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-1e-8?0:this._rts,this.totalTime(Vd(-Math.abs(this._delay),this._tDur,s),i!==!1),Mg(this),M8(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(au(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==br&&(this._tTime-=br)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&ys(i,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(Yr(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?xm(i.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=k8);var i=or;return or=r,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),or=i,this},e.globalTime=function(r){for(var i=this,s=arguments.length?r:i.rawTime();i;
vendor: 11,583 bytes, line 53
53)s=i._start+s/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):s},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,tR(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,tR(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,i){return this.totalTime(Si(this,r),Yr(i))},e.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,Yr(i)),this._dur||(this._zTime=-1e-8),this},e.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},e.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var r=this.parent||this._dp,i=this._start,s;return!!(!r||this._ts&&this._initted&&r.isActive()&&(s=r.rawTime(!0))>=i&&s<this.endTime(!0)-br)},e.eventCallback=function(r,i,s){var a=this.vars;return arguments.length>1?(i?(a[r]=i,s&&(a[r+"Params"]=s),r==="onUpdate"&&(this._onUpdate=i)):delete a[r],this):a[r]},e.then=function(r){var i=this;return new Promise(function(s){var a=tn(r)?r:lO,o=function(){var c=i.then;i.then=null,tn(a)&&(a=a(i))&&(a.then||a===i)&&(i.then=c),s(a),i.then=c};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?o():i._prom=o})},e.kill=function(){rf(this)},t}();_i(yd.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var $r=function(t){YD(e,t);function e(r,i){var s;return r===void 0&&(r={}),s=t.call(this,r)||this,s.labels={},s.smoothChildTiming=!!r.smoothChildTiming,s.autoRemoveChildren=!!r.autoRemoveChildren,s._sort=Yr(r.sortChildren),Yt&&ys(r.parent||Yt,Ys(s),i),r.reversed&&s.reverse(),r.paused&&s.paused(!0),r.scrollTrigger&&fO(Ys(s),r.scrollTrigger),s}var n=e.prototype;return n.to=function(i,s,a){return Bf(0,arguments,this),this},n.from=function(i,s,a){return Bf(1,arguments,this),this},n.fromTo=function(i,s,a,o){return Bf(2,arguments,this),this},n.set=function(i,s,a){return s.duration=0,s.parent=this,$f(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new mn(i,s,Si(this,a),1),this},n.call=function(i,s,a){return ys(this,mn.delayedCall(0,i,s),a)},n.staggerTo=function(i,s,a,o,l,c,u){return a.duration=s,a.stagger=a.stagger||o,a.onComplete=c,a.onCompleteParams=u,a.parent=this,new mn(i,a,Si(this,l)),this},n.staggerFrom=function(i,s,a,o,l,c,u){return a.runBackwards=1,$f(a).immediateRender=Yr(a.immediateRender),this.staggerTo(i,s,a,o,l,c,u)},n.staggerFromTo=function(i,s,a,o,l,c,u,f){return o.startAt=a,$f(o).immediateRender=Yr(o.immediateRender),this.staggerTo(i,s,o,l,c,u,f)},n.render=function(i,s,a){var o=this._time,l=this._dirty?this.totalDuration():this._tDur,c=this._dur,u=i<=0?0:gn(i),f=this._zTime<0!=i<0&&(this._initted||!c),d,h,p,m,g,_,v,y,E,b,T,S;if(this!==Yt&&u>l&&i>=0&&(u=l),u!==this._tTime||a||f){if(o!==this._time&&c&&(u+=this._time-o,i+=this._time-o),d=u,E=this._start,y=this._ts,_=!y,f&&(c||(o=this._zTime),(i||!s)&&(this._zTime=i)),this._repeat){if(T=this._yoyo,g=c+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(g*100+i,s,a);if(d=gn(u%g),u===l?(m=this._repeat,d=c):(b=gn(u/g),m=~~b,m&&m===b&&(d=c,m--),d>c&&(d=c)),b=iu(this._tTime,g),!o&&this._tTime&&b!==m&&this._tTime-b*g-this._dur<=0&&(b=m),T&&m&1&&(d=c-d,S=1),m!==b&&!this._lock){var A=T&&b&1,w=A===(T&&m&1);if(m<b&&(A=!A),o=A?0:u%c?c:u,this._lock=1,this.render(o||(S?0:gn(m*g)),s,!c)._lock=0,this._tTime=u,!s&&this.parent&&hi(this,"onRepeat"),this.vars.repeatRefresh&&!S&&(this.invalidate()._lock=1),o&&o!==this._time||_!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(c=this._dur,l=this._tDur,w&&(this._lock=2,o=A?c:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!S&&this.invalidate()),this._lock=0,!this._ts&&!_)return this;AO(this,S)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(v=B8(this,gn(o),gn(d)),v&&(u-=d-(d=v._start))),this._tTime=u,this._time=d,this._act=!y,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,o=0),!o&&d&&!s&&!m&&(hi(this,"onStart"),this._tTime!==u))return this;if(d>=o&&i>=0)for(h=this._first;h;){if(p=h._next,(h._act||d>=h._start)&&h._ts&&v!==h){if(h.parent!==this)return this.render(i,s,a);if(h.render(h._ts>0?(d-h._start)*h._ts:(h._dirty?h.totalDuration():h._tDur)+(d-h._start)*h._ts,s,a),d!==this._time||!this._ts&&!_){v=0,p&&(u+=this._zTime=-1e-8);break}}h=p}else{h=this._last;for(var x=i<0?i:d;h;){if(p=h._prev,(h._act||x<=h._end)&&h._ts&&v!==h){if(h.parent!==this)return this.render(i,s,a);if(h.render(h._ts>0?(x-h._start)*h._ts:(h._dirty?h.totalDuration():h._tDur)+(x-h._start)*h._ts,s,a||or&&(h._initted||h._startAt)),d!==this._time||!this._ts&&!_){v=0,p&&(u+=this._zTime=x?-1e-8:br);break}}h=p}}if(v&&!s&&(this.pause(),v.render(d>=o?0:-1e-8)._zTime=d>=o?1:-1,this._ts))return this._start=E,Mg(this),this.render(i,s,a);this._onUpdate&&!s&&hi(this,"onUpdate",!0),(u===l&&this._tTime>=this.totalDuration()||!u&&o)&&(E===this._start||Math.abs(y)!==Math.abs(this._ts))&&(this._lock||((i||!c)&&(u===l&&this._ts>0||!u&&this._ts<0)&&ao(this,1),!s&&!(i<0&&!o)&&(u||o||!l)&&(hi(this,u===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u<l&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(i,s){var a=this;if(ha(s)||(s=Si(this,s,i)),!(i instanceof yd)){if(wr(i))return i.forEach(function(o){return a.add(o,s)}),this;if(qn(i))return this.addLabel(i,s);if(tn(i))i=mn.delayedCall(0,i);else return this}return this!==i?ys(this,i,s):this},n.getChildren=function(i,s,a,o){i===void 0&&(i=!0),s===void 0&&(s=!0),a===void 0&&(a=!0),o===void 0&&(o=-1e8);for(var l=[],c=this._first;c;)c._start>=o&&(c instanceof mn?s&&l.push(c):(a&&l.push(c),i&&l.push.apply(l,c.getChildren(!0,s,a)))),c=c._next;return l},n.getById=function(i){for(var s=this.getChildren(1,1,1),a=s.length;a--;)if(s[a].vars.id===i)return s[a]},n.remove=function(i){return qn(i)?this.removeLabel(i):tn(i)?this.killTweensOf(i):(i.parent===this&&Og(this,i),i===this._recent&&(this._recent=this._last),pl(this))},n.totalTime=function(i,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=gn(fi.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),t.prototype.totalTime.call(this,i,s),this._forcing=0,this):this._tTime},n.addLabel=function(i,s){return this.labels[i]=Si(this,s),this},n.removeLabel=function(i){return delete this.labels[i],this},n.addPause=function(i,s,a){var o=mn.delayedCall(0,s||pd,a);return o.data="isPause",this._hasPause=1,ys(this,o,Si(this,i))},n.removePause=function(i){var s=this._first;for(i=Si(this,i);s;)s._start===i&&s.data==="isPause"&&ao(s),s=s._next},n.killTweensOf=function(i,s,a){for(var o=this.getTweensOf(i,a),l=o.length;l--;)Ba!==o[l]&&o[l].kill(i,s);return this},n.getTweensOf=function(i,s){for(var a=[],o=ki(i),l=this._first,c=ha(s),u;l;)l instanceof mn?P8(l._targets,o)&&(c?(!Ba||l._initted&&l._ts)&&l.globalTime(0)<=s&&l.globalTime(l.totalDuration())>s:!s||l.isActive())&&a.push(l):(u=l.getTweensOf(o,s)).length&&a.push.apply(a,u),l=l._next;return a},n.tweenTo=function(i,s){s=s||{};var a=this,o=Si(a,i),l=s,c=l.startAt,u=l.onStart,f=l.onStartParams,d=l.immediateRender,h,p=mn.to(a,_i({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:s.duration||Math.abs((o-(c&&"time"in c?c.time:a._time))/a.timeScale())||br,onStart:function(){if(a.pause(),!h){var g=s.duration||Math.abs((o-(c&&"time"in c?c.time:a._time))/a.timeScale());p._dur!==g&&su(p,g,0,1).render(p._time,!0,!0),h=1}u&&u.apply(p,f||[])}},s));return d?p.render(0):p},n.tweenFromTo=function(i,s,a){return this.tweenTo(s,_i({startAt:{time:Si(this,i)}},a))},n.recent=function(){return this._recent},n.nextLabel=function(i){return i===void 0&&(i=this._time),nR(this,Si(this,i))},n.previousLabel=function(i){return i===void 0&&(i=this._time),nR(this,Si(this,i),1)},n.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+br)},n.shiftChildren=function(i,s,a){a===void 0&&(a=0);for(var o=this._first,l=this.labels,c;o;)o._start>=a&&(o._start+=i,o._end+=i),o=o._next;if(s)for(c in l)l[c]>=a&&(l[c]+=i);return pl(this)},n.invalidate=function(i){var s=this._first;for(this._lock=0;s;)s.invalidate(i),s=s._next;return t.prototype.invalidate.call(this,i)},n.clear=function(i){i===void 0&&(i=!0);for(var s=this._first,a;s;)a=s._next,this.remove(s),s=a;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),pl(this)},n.totalDuration=function(i){var s=0,a=this,o=a._last,l=Cs,c,u,f;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-i:i));if(a._dirty){for(f=a.parent;o;)c=o._prev,o._dirty&&o.totalDuration(),u=o._start,u>l&&a._sort&&o._ts&&!a._lock?(a._lock=1,ys(a,o,u-o._delay,1)._lock=0):l=u,u<0&&o._ts&&(s-=u,(!f&&!a._dp||f&&f.smoothChildTiming)&&(a._start+=u/a._ts,a._time-=u,a._tTime-=u),a.shiftChildren(-u,!1,-1/0),l=0),o._end>s&&o._ts&&(s=o._end),o=c;su(a,a===Yt&&a._time>s?a._time:s,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(i){if(Yt._ts&&(aO(Yt,xm(i,Yt)),iO=fi.frame),fi.frame>=QA){QA+=mi.autoSleep||120;var s=Yt._first;if((!s||!s._ts)&&mi.autoSleep&&fi._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||fi.sleep()}}},e}(yd);_i($r.prototype,{_lock:0,_hasPause:0,_forcing:0});var t4=function(e,n,r,i,s,a,o){var l=new Jr(this._pt,e,n,0,1,OO,null,s),c=0,u=0,f,d,h,p,m,g,_,v;for(l.b=r,l.e=i,r+="",i+="",(_=~i.indexOf("random("))&&(i=md(i)),a&&(v=[r,i],a(v,e,n),r=v[0],i=v[1]),d=r.match(uv)||[];f=uv.exec(i);)p=f[0],m=i.substring(c,f.index),h?h=(h+1)%5:m.substr(-5)==="rgba("&&(h=1),p!==d[u++]&&(g=parseFloat(d[u-1])||0,l._pt={_next:l._pt,p:m||u===1?m:",",s:g,c:p.charAt(1)==="="?Oc(g,p)-g:parseFloat(p)-g,m:h&&h<4?Math.round:0},c=uv.lastIndex);return l.c=c<i.length?i.substring(c,i.length):"",l.fp=o,(ZD.test(i)||_)&&(l.e=0),this._pt=l,l},iS=function(e,n,r,i,s,a,o,l,c,u){tn(i)&&(i=i(s||0,e,a));var f=e[n],d=r!=="get"?r:tn(f)?c?e[n.indexOf("set")||!tn(e["get"+n.substr(3)])?n:"get"+n.substr(3)](c):e[n]():f,h=tn(f)?c?a4:PO:aS,p;if(qn(i)&&(~i.indexOf("random(")&&(i=md(i)),i.charAt(1)==="="&&(p=Oc(d,i)+(yr(d)||0),(p||p===0)&&(i=p))),!u||d!==i||UE)return!isNaN(d*i)&&i!==""?(p=new Jr(this._pt,e,n,+d||0,i-(d||0),typeof f=="boolean"?l4:DO,0,h),c&&(p.fp=c),o&&p.modifier(o,this,e),this._pt=p):(!f&&!(n in e)&&eS(n,i),t4.call(this,e,n,d,i,h,l||mi.stringFilter,c))},n4=function(e,n,r,i,s){if(tn(e)&&(e=Uf(e,s,n,r,i)),!Ms(e)||e.style&&e.nodeType||wr(e)||JD(e))return qn(e)?Uf(e,s,n,r,i):e;var a={},o;for(o in e)a[o]=Uf(e[o],s,n,r,i);return a},CO=function(e,n,r,i,s,a){var o,l,c,u;if(oi[e]&&(o=new oi[e]).init(s,o.rawVars?n[e]:n4(n[e],i,s,a,r),r,i,a)!==!1&&(r._pt=l=new Jr(r._pt,s,e,0,1,o.render,o,0,o.priority),r!==bc))for(c=r._ptLookup[r._targets.indexOf(s)],u=o._props.length;u--;)c[o._props[u]]=l;return o},Ba,UE,sS=function t(e,n,r){var i=e.vars,s=i.ease,a=i.startAt,o=i.immediateRender,l=i.lazy,c=i.onUpdate,u=i.runBackwards,f=i.yoyoEase,d=i.keyframes,h=i.autoRevert,p=e._dur,m=e._startAt,g=e._targets,_=e.parent,v=_&&_.data==="nested"?_.vars.targets:g,y=e._overwrite==="auto"&&!XT,E=e.timeline,b,T,S,A,w,x,L,R,k,F,U,H,M;
vendor: 2,335 bytes, line 53
53if(E&&(!d||!s)&&(s="none"),e._ease=ml(s,nu.ease),e._yEase=f?xO(ml(f===!0?s:f,nu.ease)):0,f&&e._yoyo&&!e._repeat&&(f=e._yEase,e._yEase=e._ease,e._ease=f),e._from=!E&&!!i.runBackwards,!E||d&&!i.stagger){if(R=g[0]?hl(g[0]).harness:0,H=R&&i[R.prop],b=wm(i,tS),m&&(m._zTime<0&&m.progress(1),n<0&&u&&o&&!h?m.render(-1,!0):m.revert(u&&p?op:I8),m._lazy=0),a){if(ao(e._startAt=mn.set(g,_i({data:"isStart",overwrite:!1,parent:_,immediateRender:!0,lazy:!m&&Yr(l),startAt:null,delay:0,onUpdate:c&&function(){return hi(e,"onUpdate")},stagger:0},a))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(or||!o&&!h)&&e._startAt.revert(op),o&&p&&n<=0&&r<=0){n&&(e._zTime=n);return}}else if(u&&p&&!m){if(n&&(o=!1),S=_i({overwrite:!1,data:"isFromStart",lazy:o&&!m&&Yr(l),immediateRender:o,stagger:0,parent:_},b),H&&(S[R.prop]=H),ao(e._startAt=mn.set(g,S)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(or?e._startAt.revert(op):e._startAt.render(-1,!0)),e._zTime=n,!o)t(e._startAt,br,br);else if(!n)return}for(e._pt=e._ptCache=0,l=p&&Yr(l)||l&&!p,T=0;T<g.length;T++){if(w=g[T],L=w._gsap||rS(g)[T]._gsap,e._ptLookup[T]=F={},OE[L.id]&&Ja.length&&Sm(),U=v===g?T:v.indexOf(w),R&&(k=new R).init(w,H||b,e,U,v)!==!1&&(e._pt=A=new Jr(e._pt,w,k.name,0,1,k.render,k,0,k.priority),k._props.forEach(function(O){F[O]=A}),k.priority&&(x=1)),!R||H)for(S in b)oi[S]&&(k=CO(S,b,e,U,w,v))?k.priority&&(x=1):F[S]=A=iS.call(e,w,S,"get",b[S],U,v,0,i.stringFilter);e._op&&e._op[T]&&e.kill(w,e._op[T]),y&&e._pt&&(Ba=e,Yt.killTweensOf(w,F,e.globalTime(n)),M=!e.parent,Ba=0),e._pt&&l&&(OE[L.id]=1)}x&&MO(e),e._onInit&&e._onInit(e)}e._onUpdate=c,e._initted=(!e._op||e._pt)&&!M,d&&n<=0&&E.render(Cs,!0,!0)},r4=function(e,n,r,i,s,a,o,l){var c=(e._pt&&e._ptCache||(e._ptCache={}))[n],u,f,d,h;if(!c)for(c=e._ptCache[n]=[],d=e._ptLookup,h=e._targets.length;h--;){if(u=d[h][n],u&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==n&&u.fp!==n;)u=u._next;if(!u)return UE=1,e.vars[n]="+=0",sS(e,o),UE=0,l?hd(n+" not eligible for reset"):1;c.push(u)}for(h=c.length;h--;)f=c[h],u=f._pt||f,u.s=(i||i===0)&&!s?i:u.s+(i||0)+a*u.c,u.c=r-u.s,f.e&&(f.e=nn(r)+yr(f.e)),f.b&&(f.b=u.s+yr(f.b))},i4=function(e,n){var r=e[0]?hl(e[0]).harness:0,i=r&&r.aliases,s,a,o,l;if(!i)return n;s=ru({},n);for(a in i)if(a in s)for(l=i[a].split(","),o=l.length;o--;)s[l[o]]=s[a];return s},s4=function(e,n,r,i){var s=n.ease||i||"power1.inOut",a,o;
vendor: 4,251 bytes, line 53
53if(wr(n))o=r[e]||(r[e]=[]),n.forEach(function(l,c){return o.push({t:c/(n.length-1)*100,v:l,e:s})});else for(a in n)o=r[a]||(r[a]=[]),a==="ease"||o.push({t:parseFloat(e),v:n[a],e:s})},Uf=function(e,n,r,i,s){return tn(e)?e.call(n,r,i,s):qn(e)&&~e.indexOf("random(")?md(e):e},IO=nS+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",kO={};Xr(IO+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return kO[t]=1});var mn=function(t){YD(e,t);function e(r,i,s,a){var o;typeof i=="number"&&(s.duration=i,i=s,s=null),o=t.call(this,a?i:$f(i))||this;var l=o.vars,c=l.duration,u=l.delay,f=l.immediateRender,d=l.stagger,h=l.overwrite,p=l.keyframes,m=l.defaults,g=l.scrollTrigger,_=l.yoyoEase,v=i.parent||Yt,y=(wr(r)||JD(r)?ha(r[0]):"length"in i)?[r]:ki(r),E,b,T,S,A,w,x,L;if(o._targets=y.length?rS(y):hd("GSAP target "+r+" not found. https://gsap.com",!mi.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=h,p||d||vh(c)||vh(u)){if(i=o.vars,E=o.timeline=new $r({data:"nested",defaults:m||{},targets:v&&v.data==="nested"?v.vars.targets:y}),E.kill(),E.parent=E._dp=Ys(o),E._start=0,d||vh(c)||vh(u)){if(S=y.length,x=d&&mO(d),Ms(d))for(A in d)~IO.indexOf(A)&&(L||(L={}),L[A]=d[A]);for(b=0;b<S;b++)T=wm(i,kO),T.stagger=0,_&&(T.yoyoEase=_),L&&ru(T,L),w=y[b],T.duration=+Uf(c,Ys(o),b,w,y),T.delay=(+Uf(u,Ys(o),b,w,y)||0)-o._delay,!d&&S===1&&T.delay&&(o._delay=u=T.delay,o._start+=u,T.delay=0),E.to(w,T,x?x(b,w,y):0),E._ease=ct.none;E.duration()?c=u=0:o.timeline=0}else if(p){$f(_i(E.vars.defaults,{ease:"none"})),E._ease=ml(p.ease||i.ease||"none");var R=0,k,F,U;if(wr(p))p.forEach(function(H){return E.to(y,H,">")}),E.duration();else{T={};for(A in p)A==="ease"||A==="easeEach"||s4(A,p[A],T,p.easeEach);for(A in T)for(k=T[A].sort(function(H,M){return H.t-M.t}),R=0,b=0;b<k.length;b++)F=k[b],U={ease:F.e,duration:(F.t-(b?k[b-1].t:0))/100*c},U[A]=F.v,E.to(y,U,R),R+=U.duration;E.duration()<c&&E.to({},{duration:c-E.duration()})}}c||o.duration(c=E.duration())}else o.timeline=0;return h===!0&&!XT&&(Ba=Ys(o),Yt.killTweensOf(y),Ba=0),ys(v,Ys(o),s),i.reversed&&o.reverse(),i.paused&&o.paused(!0),(f||!c&&!p&&o._start===gn(v._time)&&Yr(f)&&N8(Ys(o))&&v.data!=="nested")&&(o._tTime=-1e-8,o.render(Math.max(0,-u)||0)),g&&fO(Ys(o),g),o}var n=e.prototype;return n.render=function(i,s,a){var o=this._time,l=this._tDur,c=this._dur,u=i<0,f=i>l-br&&!u?l:i<br?0:i,d,h,p,m,g,_,v,y,E;if(!c)$8(this,i,s,a);else if(f!==this._tTime||!i||a||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==u||this._lazy){if(d=f,y=this.timeline,this._repeat){if(m=c+this._rDelay,this._repeat<-1&&u)return this.totalTime(m*100+i,s,a);if(d=gn(f%m),f===l?(p=this._repeat,d=c):(g=gn(f/m),p=~~g,p&&p===g?(d=c,p--):d>c&&(d=c)),_=this._yoyo&&p&1,_&&(E=this._yEase,d=c-d),g=iu(this._tTime,m),d===o&&!a&&this._initted&&p===g)return this._tTime=f,this;p!==g&&(y&&this._yEase&&AO(y,_),this.vars.repeatRefresh&&!_&&!this._lock&&d!==m&&this._initted&&(this._lock=a=1,this.render(gn(m*p),!0).invalidate()._lock=0))}if(!this._initted){if(dO(this,u?i:d,a,s,f))return this._tTime=0,this;if(o!==this._time&&!(a&&this.vars.repeatRefresh&&p!==g))return this;if(c!==this._dur)return this.render(i,s,a)}if(this._tTime=f,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=v=(E||this._ease)(d/c),this._from&&(this.ratio=v=1-v),d&&!o&&!s&&!p&&(hi(this,"onStart"),this._tTime!==f))return this;for(h=this._pt;h;)h.r(v,h.d),h=h._next;y&&y.render(i<0?i:y._dur*y._ease(d/this._dur),s,a)||this._startAt&&(this._zTime=i),this._onUpdate&&!s&&(u&&ME(this,i,s,a),hi(this,"onUpdate")),this._repeat&&p!==g&&this.vars.onRepeat&&!s&&this.parent&&hi(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(u&&!this._onUpdate&&ME(this,i,!0,!0),(i||!c)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&ao(this,1),!s&&!(u&&!o)&&(f||o||_)&&(hi(this,f===l?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),t.prototype.invalidate.call(this,i)},n.resetTo=function(i,s,a,o,l){gd||fi.wake(),this._ts||this.play();
vendor: 6,269 bytes, line 53
53var c=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||sS(this,c),u=this._ease(c/this._dur),r4(this,i,s,a,o,u,c,l)?this.resetTo(i,s,a,o,1):(Ng(this,0),this.parent||cO(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(i,s){if(s===void 0&&(s="all"),!i&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?rf(this):this.scrollTrigger&&this.scrollTrigger.kill(!!or),this;if(this.timeline){var a=this.timeline.totalDuration();return this.timeline.killTweensOf(i,s,Ba&&Ba.vars.overwrite!==!0)._first||rf(this),this.parent&&a!==this.timeline.totalDuration()&&su(this,this._dur*this.timeline._tDur/a,0,1),this}var o=this._targets,l=i?ki(i):o,c=this._ptLookup,u=this._pt,f,d,h,p,m,g,_;if((!s||s==="all")&&O8(o,l))return s==="all"&&(this._pt=0),rf(this);for(f=this._op=this._op||[],s!=="all"&&(qn(s)&&(m={},Xr(s,function(v){return m[v]=1}),s=m),s=i4(o,s)),_=o.length;_--;)if(~l.indexOf(o[_])){d=c[_],s==="all"?(f[_]=s,p=d,h={}):(h=f[_]=f[_]||{},p=s);for(m in p)g=d&&d[m],g&&((!("kill"in g.d)||g.d.kill(m)===!0)&&Og(this,g,"_pt"),delete d[m]),h!=="all"&&(h[m]=1)}return this._initted&&!this._pt&&u&&rf(this),this},e.to=function(i,s){return new e(i,s,arguments[2])},e.from=function(i,s){return Bf(1,arguments)},e.delayedCall=function(i,s,a,o){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:s,onReverseComplete:s,onCompleteParams:a,onReverseCompleteParams:a,callbackScope:o})},e.fromTo=function(i,s,a){return Bf(2,arguments)},e.set=function(i,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(i,s)},e.killTweensOf=function(i,s,a){return Yt.killTweensOf(i,s,a)},e}(yd);_i(mn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Xr("staggerTo,staggerFrom,staggerFromTo",function(t){mn[t]=function(){var e=new $r,n=FE.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,n)}});var aS=function(e,n,r){return e[n]=r},PO=function(e,n,r){return e[n](r)},a4=function(e,n,r,i){return e[n](i.fp,r)},o4=function(e,n,r){return e.setAttribute(n,r)},oS=function(e,n){return tn(e[n])?PO:JT(e[n])&&e.setAttribute?o4:aS},DO=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e6)/1e6,n)},l4=function(e,n){return n.set(n.t,n.p,!!(n.s+n.c*e),n)},OO=function(e,n){var r=n._pt,i="";if(!e&&n.b)i=n.b;else if(e===1&&n.e)i=n.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+i,r=r._next;i+=n.c}n.set(n.t,n.p,i,n)},lS=function(e,n){for(var r=n._pt;r;)r.r(e,r.d),r=r._next},c4=function(e,n,r,i){for(var s=this._pt,a;s;)a=s._next,s.p===i&&s.modifier(e,n,r),s=a},u4=function(e){for(var n=this._pt,r,i;n;)i=n._next,n.p===e&&!n.op||n.op===e?Og(this,n,"_pt"):n.dep||(r=1),n=i;return!r},f4=function(e,n,r,i){i.mSet(e,n,i.m.call(i.tween,r,i.mt),i)},MO=function(e){for(var n=e._pt,r,i,s,a;n;){for(r=n._next,i=s;i&&i.pr>n.pr;)i=i._next;(n._prev=i?i._prev:a)?n._prev._next=n:s=n,(n._next=i)?i._prev=n:a=n,n=r}e._pt=s},Jr=function(){function t(n,r,i,s,a,o,l,c,u){this.t=r,this.s=s,this.c=a,this.p=i,this.r=o||DO,this.d=l||this,this.set=c||aS,this.pr=u||0,this._next=n,n&&(n._prev=this)}var e=t.prototype;return e.modifier=function(r,i,s){this.mSet=this.mSet||this.set,this.set=f4,this.m=r,this.mt=s,this.tween=i},t}();Xr(nS+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return tS[t]=1});vi.TweenMax=vi.TweenLite=mn;vi.TimelineLite=vi.TimelineMax=$r;Yt=new $r({sortChildren:!1,defaults:nu,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});mi.stringFilter=wO;var gl=[],cp={},d4=[],iR=0,h4=0,mv=function(e){return(cp[e]||d4).map(function(n){return n()})},HE=function(){var e=Date.now(),n=[];e-iR>2&&(mv("matchMediaInit"),gl.forEach(function(r){var i=r.queries,s=r.conditions,a,o,l,c;for(o in i)a=hs.matchMedia(i[o]).matches,a&&(l=1),a!==s[o]&&(s[o]=a,c=1);c&&(r.revert(),l&&n.push(r))}),mv("matchMediaRevert"),n.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),iR=e,mv("matchMedia"))},NO=function(){function t(n,r){this.selector=r&&$E(r),this.data=[],this._r=[],this.isReverted=!1,this.id=h4++,n&&this.add(n)}var e=t.prototype;return e.add=function(r,i,s){tn(r)&&(s=i,i=r,r=tn);var a=this,o=function(){var c=qt,u=a.selector,f;return c&&c!==a&&c.data.push(a),s&&(a.selector=$E(s)),qt=a,f=i.apply(a,arguments),tn(f)&&a._r.push(f),qt=c,a.selector=u,a.isReverted=!1,f};return a.last=o,r===tn?o(a,function(l){return a.add(null,l)}):r?a[r]=o:o},e.ignore=function(r){var i=qt;qt=null,r(this),qt=i},e.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof t?r.push.apply(r,i.getTweens()):i instanceof mn&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,i){var s=this;if(r?function(){for(var o=s.getTweens(),l=s.data.length,c;l--;)c=s.data[l],c.data==="isFlip"&&(c.revert(),c.getChildren(!0,!0,!1).forEach(function(u){return o.splice(o.indexOf(u),1)}));for(o.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,f){return f.g-u.g||-1/0}).forEach(function(u){return u.t.revert(r)}),l=s.data.length;l--;)c=s.data[l],c instanceof $r?c.data!=="nested"&&(c.scrollTrigger&&c.scrollTrigger.revert(),c.kill()):!(c instanceof mn)&&c.revert&&c.revert(r);s._r.forEach(function(u){return u(r,s)}),s.isReverted=!0}():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),i)for(var a=gl.length;a--;)gl[a].id===this.id&&gl.splice(a,1)},e.revert=function(r){this.kill(r||{})},t}(),p4=function(){function t(n){this.contexts=[],this.scope=n,qt&&qt.data.push(this)}var e=t.prototype;return e.add=function(r,i,s){Ms(r)||(r={matches:r});var a=new NO(0,s||this.scope),o=a.conditions={},l,c,u;qt&&!a.selector&&(a.selector=qt.selector),this.contexts.push(a),i=a.add("onMatch",i),a.queries=r;for(c in r)c==="all"?u=1:(l=hs.matchMedia(r[c]),l&&(gl.indexOf(a)<0&&gl.push(a),(o[c]=l.matches)&&(u=1),l.addListener?l.addListener(HE):l.addEventListener("change",HE)));return u&&i(a,function(f){return a.add(null,f)}),this},e.revert=function(r){this.kill(r||{})}
vendor: 16,021 bytes, lines 53-61
53,e.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},t}(),Am={registerPlugin:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(function(i){return bO(i)})},timeline:function(e){return new $r(e)},getTweensOf:function(e,n){return Yt.getTweensOf(e,n)},getProperty:function(e,n,r,i){qn(e)&&(e=ki(e)[0]);var s=hl(e||{}).get,a=r?lO:oO;return r==="native"&&(r=""),e&&(n?a((oi[n]&&oi[n].get||s)(e,n,r,i)):function(o,l,c){return a((oi[o]&&oi[o].get||s)(e,o,l,c))})},quickSetter:function(e,n,r){if(e=ki(e),e.length>1){var i=e.map(function(u){return ei.quickSetter(u,n,r)}),s=i.length;return function(u){for(var f=s;f--;)i[f](u)}}e=e[0]||{};var a=oi[n],o=hl(e),l=o.harness&&(o.harness.aliases||{})[n]||n,c=a?function(u){var f=new a;bc._pt=0,f.init(e,r?u+r:u,bc,0,[e]),f.render(1,f),bc._pt&&lS(1,bc)}:o.set(e,l);return a?c:function(u){return c(e,l,r?u+r:u,o,1)}},quickTo:function(e,n,r){var i,s=ei.to(e,_i((i={},i[n]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),a=function(l,c,u){return s.resetTo(n,l,c,u)};return a.tween=s,a},isTweening:function(e){return Yt.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=ml(e.ease,nu.ease)),ZA(nu,e||{})},config:function(e){return ZA(mi,e||{})},registerEffect:function(e){var n=e.name,r=e.effect,i=e.plugins,s=e.defaults,a=e.extendTimeline;(i||"").split(",").forEach(function(o){return o&&!oi[o]&&!vi[o]&&hd(n+" effect requires "+o+" plugin.")}),fv[n]=function(o,l,c){return r(ki(o),_i(l||{},s),c)},a&&($r.prototype[n]=function(o,l,c){return this.add(fv[n](o,Ms(l)?l:(c=l)&&{},this),c)})},registerEase:function(e,n){ct[e]=ml(n)},parseEase:function(e,n){return arguments.length?ml(e,n):ct},getById:function(e){return Yt.getById(e)},exportRoot:function(e,n){e===void 0&&(e={});var r=new $r(e),i,s;for(r.smoothChildTiming=Yr(e.smoothChildTiming),Yt.remove(r),r._dp=0,r._time=r._tTime=Yt._time,i=Yt._first;i;)s=i._next,(n||!(!i._dur&&i instanceof mn&&i.vars.onComplete===i._targets[0]))&&ys(r,i,i._start-i._delay),i=s;return ys(Yt,r,0),r},context:function(e,n){return e?new NO(e,n):qt},matchMedia:function(e){return new p4(e)},matchMediaRefresh:function(){return gl.forEach(function(e){var n=e.conditions,r,i;for(i in n)n[i]&&(n[i]=!1,r=1);r&&e.revert()})||HE()},addEventListener:function(e,n){var r=cp[e]||(cp[e]=[]);~r.indexOf(n)||r.push(n)},removeEventListener:function(e,n){var r=cp[e],i=r&&r.indexOf(n);i>=0&&r.splice(i,1)},utils:{wrap:K8,wrapYoyo:W8,distribute:mO,random:yO,snap:gO,normalize:q8,getUnit:yr,clamp:H8,splitColor:TO,toArray:ki,selector:$E,mapRange:_O,pipe:j8,unitize:V8,interpolate:z8,shuffle:pO},install:nO,effects:fv,ticker:fi,updateRoot:$r.updateRoot,plugins:oi,globalTimeline:Yt,core:{PropTween:Jr,globals:rO,Tween:mn,Timeline:$r,Animation:yd,getCache:hl,_removeLinkedListItem:Og,reverting:function(){return or},context:function(e){return e&&qt&&(qt.data.push(e),e._ctx=qt),qt},suppressOverwrites:function(e){return XT=e}}};Xr("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Am[t]=mn[t]});fi.add($r.updateRoot);bc=Am.to({},{duration:0});var m4=function(e,n){for(var r=e._pt;r&&r.p!==n&&r.op!==n&&r.fp!==n;)r=r._next;return r},g4=function(e,n){var r=e._targets,i,s,a;for(i in n)for(s=r.length;s--;)a=e._ptLookup[s][i],a&&(a=a.d)&&(a._pt&&(a=m4(a,i)),a&&a.modifier&&a.modifier(n[i],e,r[s],i))},gv=function(e,n){return{name:e,rawVars:1,init:function(i,s,a){a._onInit=function(o){var l,c;if(qn(s)&&(l={},Xr(s,function(u){return l[u]=1}),s=l),n){l={};for(c in s)l[c]=n(s[c]);s=l}g4(o,s)}}}},ei=Am.registerPlugin({name:"attr",init:function(e,n,r,i,s){var a,o,l;this.tween=r;for(a in n)l=e.getAttribute(a)||"",o=this.add(e,"setAttribute",(l||0)+"",n[a],i,s,0,0,a),o.op=a,o.b=l,this._props.push(a)},render:function(e,n){for(var r=n._pt;r;)or?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",init:function(e,n){for(var r=n.length;r--;)this.add(e,r,e[r]||0,n[r],0,0,0,0,0,1)}},gv("roundProps",BE),gv("modifiers"),gv("snap",gO))||Am;mn.version=$r.version=ei.version="3.12.7";tO=1;QT()&&au();ct.Power0;ct.Power1;var ple=ct.Power2;ct.Power3;ct.Power4;ct.Linear;ct.Quad;ct.Cubic;ct.Quart;ct.Quint;ct.Strong;ct.Elastic;ct.Back;ct.SteppedEase;ct.Bounce;ct.Sine;ct.Expo;ct.Circ;/*! 54 * CSSPlugin 3.12.7 55 * https://gsap.com 56 * 57 * Copyright 2008-2025, GreenSock. All rights reserved. 58 * Subject to the terms at https://gsap.com/standard-license or for 59 * Club GSAP members, the agreement issued with that membership. 60 * @author: Jack Doyle, [email protected] 61*/var sR,Ua,Mc,cS,Jo,aR,uS,y4=function(){return typeof window<"u"},pa={},Do=180/Math.PI,Nc=Math.PI/180,Xl=Math.atan2,oR=1e8,fS=/([A-Z])/g,v4=/(left|right|width|margin|padding|x)/i,_4=/[\s,\(]\S/,_s={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},GE=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},E4=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},b4=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},T4=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},FO=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},$O=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},S4=function(e,n,r){return e.style[n]=r},w4=function(e,n,r){return e.style.setProperty(n,r)},x4=function(e,n,r){return e._gsap[n]=r},A4=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},R4=function(e,n,r,i,s){var a=e._gsap;a.scaleX=a.scaleY=r,a.renderTransform(s,a)},L4=function(e,n,r,i,s){var a=e._gsap;a[n]=r,a.renderTransform(s,a)},Jt="transform",Qr=Jt+"Origin",C4=function t(e,n){var r=this,i=this.target,s=i.style,a=i._gsap;if(e in pa&&s){if(this.tfm=this.tfm||{},e!=="transform")e=_s[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return r.tfm[o]=Qs(i,o)}):this.tfm[e]=a.x?a[e]:Qs(i,e),e===Qr&&(this.tfm.zOrigin=a.zOrigin);else return _s.transform.split(",").forEach(function(o){return t.call(r,o,n)});if(this.props.indexOf(Jt)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Qr,n,"")),e=Jt}(s||n)&&this.props.push(e,n,s[e])},BO=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},I4=function(){var e=this.props,n=this.target,r=n.style,i=n._gsap,s,a;for(s=0;s<e.length;s+=3)e[s+1]?e[s+1]===2?n[e[s]](e[s+2]):n[e[s]]=e[s+2]:e[s+2]?r[e[s]]=e[s+2]:r.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(fS,"-$1").toLowerCase());if(this.tfm){for(a in this.tfm)i[a]=this.tfm[a];i.svg&&(i.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),s=uS(),(!s||!s.isStart)&&!r[Jt]&&(BO(r),i.zOrigin&&r[Qr]&&(r[Qr]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},UO=function(e,n){var r={target:e,props:[],revert:I4,save:C4};return e._gsap||ei.core.getCache(e),n&&e.style&&e.nodeType&&n.split(",").forEach(function(i){return r.save(i)}),r},HO,jE=function(e,n){var r=Ua.createElementNS?Ua.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Ua.createElement(e);return r&&r.style?r:Ua.createElement(e)},Is=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(fS,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,ou(n)||n,1)||""},lR="O,Moz,ms,Ms,Webkit".split(","),ou=function(e,n,r){var i=n||Jo,s=i.style,a=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);a--&&!(lR[a]+e in s););return a<0?null:(a===3?"ms":a>=0?lR[a]:"")+e},VE=function(){y4()&&window.document&&(sR=window,Ua=sR.document,Mc=Ua.documentElement,Jo=jE("div")||{style:{}},jE("div"),Jt=ou(Jt),Qr=Jt+"Origin",Jo.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",HO=!!ou("perspective"),uS=ei.core.reverting,cS=1)},cR=function(e){var n=e.ownerSVGElement,r=jE("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),s;i.style.display="block",r.appendChild(i),Mc.appendChild(r);try{s=i.getBBox()}catch{}return r.removeChild(i),Mc.removeChild(r),s},uR=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},GO=function(e){var n,r;try{n=e.getBBox()}catch{n=cR(e),r=1}return n&&(n.width||n.height)||r||(n=cR(e)),n&&!n.width&&!n.x&&!n.y?{x:+uR(e,["x","cx","x1"])||0,y:+uR(e,["y","cy","y1"])||0,width:0,height:0}:n},jO=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&GO(e))},kl=function(e,n){if(n){var r=e.style,i;n in pa&&n!==Qr&&(n=Jt),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(fS,"-$1").toLowerCase())):r.removeAttribute(n)}},Ha=function(e,n,r,i,s,a){var o=new Jr(e._pt,n,r,0,1,a?$O:FO);return e._pt=o,o.b=i,o.e=s,e._props.push(r),o},fR={deg:1,rad:1,turn:1},k4={grid:1,flex:1},oo=function t(e,n,r,i){var s=parseFloat(r)||0,a=(r+"").trim().substr((s+"").length)||"px",o=Jo.style,l=v4.test(n),c=e.tagName.toLowerCase()==="svg",u=(c?"client":"offset")+(l?"Width":"Height"),f=100,d=i==="px",h=i==="%",p,m,g,_;if(i===a||!s||fR[i]||fR[a])return s;if(a!=="px"&&!d&&(s=t(e,n,r,"px")),_=e.getCTM&&jO(e),(h||a==="%")&&(pa[n]||~n.indexOf("adius")))return p=_?e.getBBox()[l?"width":"height"]:e[u],nn(h?s/p*f:s/100*p);if(o[l?"width":"height"]=f+(d?a:i),m=i!=="rem"&&~n.indexOf("adius")||i==="em"&&e.appendChild&&!c?e:e.parentNode,_&&(m=(e.ownerSVGElement||{}).parentNode),(!m||m===Ua||!m.appendChild)&&(m=Ua.body),g=m._gsap,g&&h&&g.width&&l&&g.time===fi.time&&!g.uncache)return nn(s/g.width*f);if(h&&(n==="height"||n==="width")){var v=e.style[n];e.style[n]=f+i,p=e[u],v?e.style[n]=v:kl(e,n)}else(h||a==="%")&&!k4[Is(m,"display")]&&(o.position=Is(e,"position")),m===e&&(o.position="static"),m.appendChild(Jo),p=Jo[u],m.removeChild(Jo),o.position="absolute";return l&&h&&(g=hl(m),g.time=fi.time,g.width=m[u]),nn(d?p*s/f:p&&s?f/p*s:0)},Qs=function(e,n,r,i){var s;return cS||VE(),n in _s&&n!=="transform"&&(n=_s[n],~n.indexOf(",")&&(n=n.split(",")[0])),pa[n]&&n!=="transform"?(s=_d(e,i),s=n!=="transformOrigin"?s[n]:s.svg?s.origin:Lm(Is(e,Qr))+" "+s.zOrigin+"px"):(s=e.style[n],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=Rm[n]&&Rm[n](e,n,r)||Is(e,n)||sO(e,n)||(n==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?oo(e,n,s,r)+r:s},P4=function(e,n,r,i){if(!r||r==="none"){var s=ou(n,e,1),a=s&&Is(e,s,1);a&&a!==r?(n=s,r=a):n==="borderColor"&&(r=Is(e,"borderTopColor"))}var o=new Jr(this._pt,e.style,n,0,1,OO),l=0,c=0,u,f,d,h,p,m,g,_,v,y,E,b;if(o.b=r,o.e=i,r+="",i+="",i==="auto"&&(m=e.style[n],e.style[n]=i,i=Is(e,n)||i,m?e.style[n]=m:kl(e,n)),u=[r,i],wO(u),r=u[0],i=u[1],d=r.match(Ec)||[],b=i.match(Ec)||[],b.length){for(;f=Ec.exec(i);)g=f[0],v=i.substring(l,f.index),p?p=(p+1)%5:(v.substr(-5)==="rgba("||v.substr(-5)==="hsla(")&&(p=1),g!==(m=d[c++]||"")&&(h=parseFloat(m)||0,E=m.substr((h+"").length),g.charAt(1)==="="&&(g=Oc(h,g)+E),_=parseFloat(g),y=g.substr((_+"").length),l=Ec.lastIndex-y.length,y||(y=y||mi.units[n]||E,l===i.length&&(i+=y,o.e+=y)),E!==y&&(h=oo(e,n,m,y)||0),o._pt={_next:o._pt,p:v||c===1?v:",",s:h,c:_-h,m:p&&p<4||n==="zIndex"?Math.round:0});o.c=l<i.length?i.substring(l,i.length):""}else o.r=n==="display"&&i==="none"?$O:FO;return ZD.test(i)&&(o.e=0),this._pt=o,o},dR={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},D4=function(e){var n=e.split(" "),r=n[0],i=n[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(e=r,r=i,i=e),n[0]=dR[r]||r,n[1]=dR[i]||i,n.join(" ")},O4=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,i=r.style,s=n.u,a=r._gsap,o,l,c;if(s==="all"||s===!0)i.cssText="",l=1;else for(s=s.split(","),c=s.length;--c>-1;)o=s[c],pa[o]&&(l=1,o=o==="transformOrigin"?Qr:Jt),kl(r,o);l&&(kl(r,Jt),a&&(a.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",_d(r,1),a.uncache=1,BO(i)))}},Rm={clearProps:function(e,n,r,i,s){if(s.data!=="isFromStart"){var a=e._pt=new Jr(e._pt,n,r,0,0,O4);return a.u=i,a.pr=-10,a.tween=s,e._props.push(r),1}}},vd=[1,0,0,1,0,0],VO={},qO=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},hR=function(e){var n=Is(e,Jt);return qO(n)?vd:n.substr(7).match(QD).map(nn)},dS=function(e,n){var r=e._gsap||hl(e),i=e.style,s=hR(e),a,o,l,c;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,s=[l.a,l.b,l.c,l.d,l.e,l.f],s.join(",")==="1,0,0,1,0,0"?vd:s):(s===vd&&!e.offsetParent&&e!==Mc&&!r.svg&&(l=i.display,i.display="block",a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,Mc.appendChild(e)),s=hR(e),l?i.display=l:kl(e,"display"),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):Mc.removeChild(e))),n&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},qE=function(e,n,r,i,s,a){var o=e._gsap,l=s||dS(e,!0),c=o.xOrigin||0,u=o.yOrigin||0,f=o.xOffset||0,d=o.yOffset||0,h=l[0],p=l[1],m=l[2],g=l[3],_=l[4],v=l[5],y=n.split(" "),E=parseFloat(y[0])||0,b=parseFloat(y[1])||0,T,S,A,w;r?l!==vd&&(S=h*g-p*m)&&(A=E*(g/S)+b*(-m/S)+(m*v-g*_)/S,w=E*(-p/S)+b*(h/S)-(h*v-p*_)/S,E=A,b=w):(T=GO(e),E=T.x+(~y[0].indexOf("%")?E/100*T.width:E),b=T.y+(~(y[1]||y[0]).indexOf("%")?b/100*T.height:b)),i||i!==!1&&o.smooth?(_=E-c,v=b-u,o.xOffset=f+(_*h+v*m)-_,o.yOffset=d+(_*p+v*g)-v):o.xOffset=o.yOffset=0,o.xOrigin=E,o.yOrigin=b,o.smooth=!!i,o.origin=n,o.originIsAbsolute=!!r,e.style[Qr]="0px 0px",a&&(Ha(a,o,"xOrigin",c,E),Ha(a,o,"yOrigin",u,b),Ha(a,o,"xOffset",f,o.xOffset),Ha(a,o,"yOffset",d,o.yOffset)),e.setAttribute("data-svg-origin",E+" "+b)},_d=function(e,n){var r=e._gsap||new LO(e);if("x"in r&&!n&&!r.uncache)return r;var i=e.style,s=r.scaleX<0,a="px",o="deg",l=getComputedStyle(e),c=Is(e,Qr)||"0",u,f,d,h,p,m,g,_,v,y,E,b,T,S,A,w,x,L,R,k,F,U,H,M,O,q,P,ae,ce,ye,ve,z;return u=f=d=m=g=_=v=y=E=0,h=p=1,r.svg=!!(e.getCTM&&jO(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[Jt]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[Jt]!=="none"?l[Jt]:"")),i.scale=i.rotate=i.translate="none"),S=dS(e,r.svg),r.svg&&(r.uncache?(O=e.getBBox(),c=r.xOrigin-O.x+"px "+(r.yOrigin-O.y)+"px",M=""):M=!n&&e.getAttribute("data-svg-origin"),qE(e,M||c,!!M||r.originIsAbsolute,r.smooth!==!1,S)),b=r.xOrigin||0,T=r.yOrigin||0,S!==vd&&(L=S[0],R=S[1],k=S[2],F=S[3],u=U=S[4],f=H=S[5],S.length===6?(h=Math.sqrt(L*L+R*R),p=Math.sqrt(F*F+k*k),m=L||R?Xl(R,L)*Do:0,v=k||F?Xl(k,F)*Do+m:0,v&&(p*=Math.abs(Math.cos(v*Nc))),r.svg&&(u-=b-(b*L+T*k),f-=T-(b*R+T*F))):(z=S[6],ye=S[7],P=S[8],ae=S[9],ce=S[10],ve=S[11],u=S[12],f=S[13],d=S[14],A=Xl(z,ce),g=A*Do,A&&(w=Math.cos(-A),x=Math.sin(-A),M=U*w+P*x,O=H*w+ae*x,q=z*w+ce*x,P=U*-x+P*w,ae=H*-x+ae*w,ce=z*-x+ce*w,ve=ye*-x+ve*w,U=M,H=O,z=q),A=Xl(-k,ce),_=A*Do,A&&(w=Math.cos(-A),x=Math.sin(-A),M=L*w-P*x,O=R*w-ae*x,q=k*w-ce*x,ve=F*x+ve*w,L=M,R=O,k=q),A=Xl(R,L),m=A*Do,A&&(w=Math.cos(A),x=Math.sin(A),M=L*w+R*x,O=U*w+H*x,R=R*w-L*x,H=H*w-U*x,L=M,U=O),g&&Math.abs(g)+Math.abs(m)>359.9&&(g=m=0,_=180-_),h=nn(Math.sqrt(L*L+R*R+k*k)),p=nn(Math.sqrt(H*H+z*z)),A=Xl(U,H),v=Math.abs(A)>2e-4?A*Do:0,E=ve?1/(ve<0?-ve:ve):0),r.svg&&(M=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!qO(Is(e,Jt)),M&&e.setAttribute("transform",M))),Math.abs(v)>90&&Math.abs(v)<270&&(s?(h*=-1,v+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,v+=v<=0?180:-180)),n=n||r.uncache,r.x=u-((r.xPercent=u&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+a,r.y=f-((r.yPercent=f&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-f)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+a,r.z=d+a,r.scaleX=nn(h),r.scaleY=nn(p),r.rotation=nn(m)+o,r.rotationX=nn(g)+o,r.rotationY=nn(_)+o,r.skewX=v+o,r.skewY=y+o,r.transformPerspective=E+a,(r.zOrigin=parseFloat(c.split(" ")[2])||!n&&r.zOrigin||0)&&(i[Qr]=Lm(c)),r.xOffset=r.yOffset=0,r.force3D=mi.force3D,r.renderTransform=r.svg?N4:HO?KO:M4,r.uncache=0,r},Lm=function(e){return(e=e.split(" "))[0]+" "+e[1]},yv=function(e,n,r){var i=yr(n);return nn(parseFloat(n)+parseFloat(oo(e,"x",r+"px",i)))+i}
vendor: 4,447 bytes, line 61
61,M4=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,KO(e,n)},Ao="0deg",qu="0px",Ro=") ",KO=function(e,n){var r=n||this,i=r.xPercent,s=r.yPercent,a=r.x,o=r.y,l=r.z,c=r.rotation,u=r.rotationY,f=r.rotationX,d=r.skewX,h=r.skewY,p=r.scaleX,m=r.scaleY,g=r.transformPerspective,_=r.force3D,v=r.target,y=r.zOrigin,E="",b=_==="auto"&&e&&e!==1||_===!0;if(y&&(f!==Ao||u!==Ao)){var T=parseFloat(u)*Nc,S=Math.sin(T),A=Math.cos(T),w;T=parseFloat(f)*Nc,w=Math.cos(T),a=yv(v,a,S*w*-y),o=yv(v,o,-Math.sin(T)*-y),l=yv(v,l,A*w*-y+y)}g!==qu&&(E+="perspective("+g+Ro),(i||s)&&(E+="translate("+i+"%, "+s+"%) "),(b||a!==qu||o!==qu||l!==qu)&&(E+=l!==qu||b?"translate3d("+a+", "+o+", "+l+") ":"translate("+a+", "+o+Ro),c!==Ao&&(E+="rotate("+c+Ro),u!==Ao&&(E+="rotateY("+u+Ro),f!==Ao&&(E+="rotateX("+f+Ro),(d!==Ao||h!==Ao)&&(E+="skew("+d+", "+h+Ro),(p!==1||m!==1)&&(E+="scale("+p+", "+m+Ro),v.style[Jt]=E||"translate(0, 0)"},N4=function(e,n){var r=n||this,i=r.xPercent,s=r.yPercent,a=r.x,o=r.y,l=r.rotation,c=r.skewX,u=r.skewY,f=r.scaleX,d=r.scaleY,h=r.target,p=r.xOrigin,m=r.yOrigin,g=r.xOffset,_=r.yOffset,v=r.forceCSS,y=parseFloat(a),E=parseFloat(o),b,T,S,A,w;l=parseFloat(l),c=parseFloat(c),u=parseFloat(u),u&&(u=parseFloat(u),c+=u,l+=u),l||c?(l*=Nc,c*=Nc,b=Math.cos(l)*f,T=Math.sin(l)*f,S=Math.sin(l-c)*-d,A=Math.cos(l-c)*d,c&&(u*=Nc,w=Math.tan(c-u),w=Math.sqrt(1+w*w),S*=w,A*=w,u&&(w=Math.tan(u),w=Math.sqrt(1+w*w),b*=w,T*=w)),b=nn(b),T=nn(T),S=nn(S),A=nn(A)):(b=f,A=d,T=S=0),(y&&!~(a+"").indexOf("px")||E&&!~(o+"").indexOf("px"))&&(y=oo(h,"x",a,"px"),E=oo(h,"y",o,"px")),(p||m||g||_)&&(y=nn(y+p-(p*b+m*S)+g),E=nn(E+m-(p*T+m*A)+_)),(i||s)&&(w=h.getBBox(),y=nn(y+i/100*w.width),E=nn(E+s/100*w.height)),w="matrix("+b+","+T+","+S+","+A+","+y+","+E+")",h.setAttribute("transform",w),v&&(h.style[Jt]=w)},F4=function(e,n,r,i,s){var a=360,o=qn(s),l=parseFloat(s)*(o&&~s.indexOf("rad")?Do:1),c=l-i,u=i+c+"deg",f,d;return o&&(f=s.split("_")[1],f==="short"&&(c%=a,c!==c%(a/2)&&(c+=c<0?a:-360)),f==="cw"&&c<0?c=(c+a*oR)%a-~~(c/a)*a:f==="ccw"&&c>0&&(c=(c-a*oR)%a-~~(c/a)*a)),e._pt=d=new Jr(e._pt,n,r,i,c,E4),d.e=u,d.u="deg",e._props.push(r),d},pR=function(e,n){for(var r in n)e[r]=n[r];return e},$4=function(e,n,r){var i=pR({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",a=r.style,o,l,c,u,f,d,h,p;i.svg?(c=r.getAttribute("transform"),r.setAttribute("transform",""),a[Jt]=n,o=_d(r,1),kl(r,Jt),r.setAttribute("transform",c)):(c=getComputedStyle(r)[Jt],a[Jt]=n,o=_d(r,1),a[Jt]=c);for(l in pa)c=i[l],u=o[l],c!==u&&s.indexOf(l)<0&&(h=yr(c),p=yr(u),f=h!==p?oo(r,l,c,p):parseFloat(c),d=parseFloat(u),e._pt=new Jr(e._pt,o,l,f,d-f,GE),e._pt.u=p||0,e._props.push(l));pR(o,i)};Xr("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",s="Left",a=(e<3?[n,r,i,s]:[n+s,n+r,i+r,i+s]).map(function(o){return e<2?t+o:"border"+o+t});Rm[e>1?"border"+t:t]=function(o,l,c,u,f){var d,h;if(arguments.length<4)return d=a.map(function(p){return Qs(o,p,c)}),h=d.join(" "),h.split(d[0]).length===5?d[0]:h;d=(u+"").split(" "),h={},a.forEach(function(p,m){return h[p]=d[m]=d[m]||d[(m-1)/2|0]}),o.init(l,h,f)}});var WO={name:"css",register:VE,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,i,s){var a=this._props,o=e.style,l=r.vars.startAt,c,u,f,d,h,p,m,g,_,v,y,E,b,T,S,A;cS||VE(),this.styles=this.styles||UO(e),A=this.styles.props,this.tween=r;for(m in n)if(m!=="autoRound"&&(u=n[m],!(oi[m]&&CO(m,n,r,i,e,s)))){if(h=typeof u,p=Rm[m],h==="function"&&(u=u.call(r,i,e,s),h=typeof u),h==="string"&&~u.indexOf("random(")&&(u=md(u)),p)p(this,e,m,u,r)&&(S=1);else if(m.substr(0,2)==="--")c=(getComputedStyle(e).getPropertyValue(m)+"").trim(),u+="",Qa.lastIndex=0,Qa.test(c)||(g=yr(c),_=yr(u)),_?g!==_&&(c=oo(e,m,c,_)+_):g&&(u+=g),this.add(o,"setProperty",c,u,i,s,0,0,m),a.push(m),A.push(m,0,o[m]);else if(h!=="undefined"){if(l&&m in l?(c=typeof l[m]=="function"?l[m].call(r,i,e,s):l[m],qn(c)&&~c.indexOf("random(")&&(c=md(c)),yr(c+"")||c==="auto"||(c+=mi.units[m]||yr(Qs(e,m))||""),(c+"").charAt(1)==="="&&(c=Qs(e,m))):c=Qs(e,m),d=parseFloat(c),v=h==="string"&&u.charAt(1)==="="&&u.substr(0,2),v&&(u=u.substr(2)),f=parseFloat(u),m in _s&&(m==="autoAlpha"&&(d===1&&Qs(e,"visibility")==="hidden"&&f&&(d=0),A.push("visibility",0,o.visibility),Ha(this,o,"visibility",d?"inherit":"hidden",f?"inherit":"hidden",!f)),m!=="scale"&&m!=="transform"&&(m=_s[m],~m.indexOf(",")&&(m=m.split(",")[0]))),y=m in pa,y){if(this.styles.save(m),E||(b=e._gs
vendor: 10,541 bytes, lines 61-69
61ap,b.renderTransform&&!n.parseTransform||_d(e,n.parseTransform),T=n.smoothOrigin!==!1&&b.smooth,E=this._pt=new Jr(this._pt,o,Jt,0,1,b.renderTransform,b,0,-1),E.dep=1),m==="scale")this._pt=new Jr(this._pt,b,"scaleY",b.scaleY,(v?Oc(b.scaleY,v+f):f)-b.scaleY||0,GE),this._pt.u=0,a.push("scaleY",m),m+="X";else if(m==="transformOrigin"){A.push(Qr,0,o[Qr]),u=D4(u),b.svg?qE(e,u,0,T,0,this):(_=parseFloat(u.split(" ")[2])||0,_!==b.zOrigin&&Ha(this,b,"zOrigin",b.zOrigin,_),Ha(this,o,m,Lm(c),Lm(u)));continue}else if(m==="svgOrigin"){qE(e,u,1,T,0,this);continue}else if(m in VO){F4(this,b,m,d,v?Oc(d,v+u):u);continue}else if(m==="smoothOrigin"){Ha(this,b,"smooth",b.smooth,u);continue}else if(m==="force3D"){b[m]=u;continue}else if(m==="transform"){$4(this,u,e);continue}}else m in o||(m=ou(m)||m);if(y||(f||f===0)&&(d||d===0)&&!_4.test(u)&&m in o)g=(c+"").substr((d+"").length),f||(f=0),_=yr(u)||(m in mi.units?mi.units[m]:g),g!==_&&(d=oo(e,m,c,_)),this._pt=new Jr(this._pt,y?b:o,m,d,(v?Oc(d,v+f):f)-d,!y&&(_==="px"||m==="zIndex")&&n.autoRound!==!1?T4:GE),this._pt.u=_||0,g!==_&&_!=="%"&&(this._pt.b=c,this._pt.r=b4);else if(m in o)P4.call(this,e,m,c,v?v+u:u);else if(m in e)this.add(e,m,c||e[m],v?v+u:u,i,s);else if(m!=="parseTransform"){eS(m,u);continue}y||(m in o?A.push(m,0,o[m]):typeof e[m]=="function"?A.push(m,2,e[m]()):A.push(m,1,c||e[m])),a.push(m)}}S&&MO(this)},render:function(e,n){if(n.tween._time||!uS())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:Qs,aliases:_s,getSetter:function(e,n,r){var i=_s[n];return i&&i.indexOf(",")<0&&(n=i),n in pa&&n!==Qr&&(e._gsap.x||Qs(e,"x"))?r&&aR===r?n==="scale"?A4:x4:(aR=r||{})&&(n==="scale"?R4:L4):e.style&&!JT(e.style[n])?S4:~n.indexOf("-")?w4:oS(e,n)},core:{_removeProperty:kl,_getMatrix:dS}};ei.utils.checkPrefix=ou;ei.core.getStyleSaver=UO;(function(t,e,n,r){var i=Xr(t+","+e+","+n,function(s){pa[s]=1});Xr(e,function(s){mi.units[s]="deg",VO[s]=1}),_s[i[13]]=t+","+e,Xr(r,function(s){var a=s.split(":");_s[a[1]]=i[a[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Xr("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){mi.units[t]="px"});ei.registerPlugin(WO);var nr=ei.registerPlugin(WO)||ei;nr.core.Tween;function B4(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function U4(t,e,n){return B4(t.prototype,e),t}/*! 62 * Observer 3.12.7 63 * https://gsap.com 64 * 65 * @license Copyright 2008-2025, GreenSock. All rights reserved. 66 * Subject to the terms at https://gsap.com/standard-license or for 67 * Club GSAP members, the agreement issued with that membership. 68 * @author: Jack Doyle, [email protected] 69*/var rr,up,di,Ga,ja,Fc,zO,Oo,Hf,YO,sa,Bi,XO,JO=function(){return rr||typeof window<"u"&&(rr=window.gsap)&&rr.registerPlugin&&rr},QO=1,Tc=[],rt=[],ks=[],Gf=Date.now,KE=function(e,n){return n},H4=function(){var e=Hf.core,n=e.bridge||{},r=e._scrollers,i=e._proxies;r.push.apply(r,rt),i.push.apply(i,ks),rt=r,ks=i,KE=function(a,o){return n[a](o)}},Za=function(e,n){return~ks.indexOf(e)&&ks[ks.indexOf(e)+1][n]},jf=function(e){return!!~YO.indexOf(e)},Ir=function(e,n,r,i,s){return e.addEventListener(n,r,{passive:i!==!1,capture:!!s})},Lr=function(e,n,r,i){return e.removeEventListener(n,r,!!i)},_h="scrollLeft",Eh="scrollTop",WE=function(){return sa&&sa.isPressed||rt.cache++},Cm=function(e,n){var r=function i(s){if(s||s===0){QO&&(di.history.scrollRestoration="manual");var a=sa&&sa.isPressed;s=i.v=Math.round(s)||(sa&&sa.iOS?1:0),e(s),i.cacheID=rt.cache,a&&KE("ss",s)}else(n||rt.cache!==i.cacheID||KE("ref"))&&(i.cacheID=rt.cache,i.v=e());return i.v+i.offset};return r.offset=0,e&&r},Br={s:_h,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Cm(function(t){return arguments.length?di.scrollTo(t,Pn.sc()):di.pageXOffset||Ga[_h]||ja[_h]||Fc[_h]||0})},Pn={s:Eh,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Br,sc:Cm(function(t){return arguments.length?di.scrollTo(Br.sc(),t):di.pageYOffset||Ga[Eh]||ja[Eh]||Fc[Eh]||0})},Vr=function(e,n){return(n&&n._ctx&&n._ctx.selector||rr.utils.toArray)(e)[0]||(typeof e=="string"&&rr.config().nullTargetWarn!==!1?console.warn("Element not found:",e):null)},lo=function(e,n){var r=n.s,i=n.sc;jf(e)&&(e=Ga.scrollingElement||ja);var s=rt.indexOf(e),a=i===Pn.sc?1:2;!~s&&(s=rt.push(e)-1),rt[s+a]||Ir(e,"scroll",WE);var o=rt[s+a],l=o||(rt[s+a]=Cm(Za(e,r),!0)||(jf(e)?i:Cm(function(c){return arguments.length?e[r]=c:e[r]})));return l.target=e,o||(l.smooth=rr.getProperty(e,"scrollBehavior")==="smooth"),l},zE=function(e,n,r){var i=e,s=e,a=Gf(),o=a,l=n||50,c=Math.max(500,l*3),u=function(p,m){var g=Gf();m||g-a>l?(s=i,i=p,o=a,a=g):r?i+=p:i=s+(p-s)/(g-o)*(a-o)},f=function(){s=i=r?0:i,o=a=0},d=function(p){var m=o,g=s,_=Gf();return(p||p===0)&&p!==i&&u(p),a===o||_-o>c?0:(i+(r?g:-g))/((r?_:a)-m)*1e3};return{update:u,reset:f,getVelocity:d}},Ku=function(e,n){return n&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},mR=function(e){var n=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(n)>=Math.abs(r)?n:r},ZO=function(){Hf=rr.core.globals().ScrollTrigger,Hf&&Hf.core&&H4()},eM=function(e){return rr=e||JO(),!up&&rr&&typeof document<"u"&&document.body&&(di=window,Ga=document,ja=Ga.documentElement,Fc=Ga.body,YO=[di,Ga,ja,Fc],rr.utils.clamp,XO=rr.core.context||function(){},Oo="onpointerenter"in Fc?"pointer":"mouse",zO=sn.isTouch=di.matchMedia&&di.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in di||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Bi=sn.eventTypes=("ontouchstart"in ja?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in ja?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return QO=0},500),ZO(),up=1),up};Br.op=Pn;rt.cache=0;var sn=function(){function t(n){this.init(n)}var e=t.prototype;return e.init=function(r){up||eM(rr)||console.warn("Please gsap.registerPlugin(Observer)"),Hf||ZO();var i=r.tolerance,s=r.dragMinimum,a=r.type,o=r.target,l=r.lineHeight,c=r.debounce,u=r.preventDefault,f=r.onStop,d=r.onStopDelay,h=r.ignore,p=r.wheelSpeed,m=r.event,g=r.onDragStart,_=r.onDragEnd,v=r.onDrag,y=r.onPress,E=r.onRelease,b=r.onRight,T=r.onLeft,S=r.onUp,A=r.onDown,w=r.onChangeX,x=r.onChangeY,L=r.onChange,R=r.onToggleX,k=r.onToggleY,F=r.onHover,U=r.onHoverEnd,H=r.onMove,M=r.ignoreCheck,O=r.isNormalizer,q=r.onGestureStart,P=r.onGestureEnd,ae=r.onWheel,ce=r.onEnable,ye=r.onDisable,ve=r.onClick,z=r.scrollSpeed,G=r.capture,N=r.allowClicks,$=r.lockAxis,j=r.onLockAxis;this.target=o=Vr(o)||ja,this.vars=r,h&&(h=rr.utils.toArray(h)),i=i||1e-9,s=s||0,p=p||1,z=z||1,a=a||"wheel,touch,pointer",c=c!==!1,l||(l=parseFloat(di.getComputedStyle(Fc).lineHeight)||22);var V,W,Y,C,D,K,ee,B=this,ie=0,fe=0,ue=r.passive||!u&&r.passive!==!1,se=lo(o,Br),oe=lo(o,Pn),Ee=se(),he=oe(),me=~a.indexOf("touch")&&!~a.indexOf("pointer")&&Bi[0]==="pointerdown",we=jf(o),Ae=o.ownerDocument||Ga,Ne=[0,0,0],qe=[0,0,0],Mt=0,Gt=function(){return Mt=Gf()},ut=function(ke,ft){return(B.event=ke)&&h&&~h.indexOf(ke.target)||ft&&me&&ke.pointerType!=="touch"||M&&M(ke,ft)},Zt=function(){B._vx.reset(),B._vy.reset(),W.pause(),f&&f(B)},on=function(){var ke=B.deltaX=mR(Ne),ft=B.deltaY=mR(qe),ge=Math.abs(ke)>=i,He=Math.abs(ft)>=i;L&&(ge||He)&&L(B,ke,ft,Ne,qe),ge&&(b&&B.deltaX>0&&b(B),T&&B.deltaX<0&&T(B),w&&w(B),R&&B.deltaX<0!=ie<0&&R(B),ie=B.deltaX,Ne[0]=Ne[1]=Ne[2]=0),He&&(A&&B.deltaY>0&&A(B),S&&B.deltaY<0&&S(B),x&&x(B),k&&B.deltaY<0!=fe<0&&k(B),fe=B.deltaY,qe[0]=qe[1]=qe[2]=0),(C||Y)&&(H&&H(B),Y&&(g&&Y===1&&g(B),v&&v(B),Y=0),C=!1),K&&!(K=!1)&&j&&j(B),D&&(ae(B),D=!1),V=0},Q=function(ke,ft,ge){Ne[ge]+=ke,qe[ge]+=ft,B._vx.update(ke),B._vy.update(ft),c?V||(V=requestAnimationFrame(on)):on()},Z=function(ke,ft){$&&!ee&&(B.axis=ee=Math.abs(ke)>Math.abs(ft)?"x":"y",K=!0),ee!=="y"&&(Ne[2]+=ke,B._vx.update(ke,!0)),ee!=="x"&&(qe[2]+=ft,B._vy.update(ft,!0)),c?V||(V=requestAnimationFrame(on)):on()},Oe=function(ke){if(!ut(ke,1)){ke=Ku(ke,u);var ft=ke.clientX,ge=ke.clientY,He=ft-B.x,Le=ge-B.y,Ge=B.isDragging;B.x=ft,B.y=ge,(Ge||(He||Le)&&(Math.abs(B.startX-ft)>=s||Math.abs(B.startY-ge)>=s))&&(Y=Ge?2:1,Ge||(B.isDragging=!0),Z(He,Le))}},st=B.onPress=function(We){ut(We,1)||We&&We.button||(B.axis=ee=null,W.pause(),B.isPressed=!0,We=Ku(We),ie=fe=0,B.startX=B.x=We.clientX,B.startY=B.y=We.clientY,B._vx.reset(),B._vy.reset(),Ir(O?o:Ae,Bi[1],Oe,ue,!0),B.deltaX=B.deltaY=0,y&&y(B))},xe=B.onRelease=function(We){if(!ut(We,1)){Lr(O?o:Ae,Bi[1],Oe,!0);var ke=!isNaN(B.y-B.startY),ft=B.isDragging,ge=ft&&(Math.abs(B.x-B.startX)>3||Math.abs(B.y-B.startY)>3),He=Ku(We);!ge&&ke&&(B._vx.reset(),B._vy.reset(),u&&N&&rr.delayedCall(.08,function(){if(Gf()-Mt>300&&!We.defaultPrevented){if(We.target.click)We.target.click();else if(Ae.createEvent){var Le=Ae.createEvent("MouseEvents");Le.initMouseEvent("click",!0,!0,di,1,He.screenX,He.screenY,He.clientX,He.clientY,!1,!1,!1,!1,0,null),We.target.dispatchEvent(Le)}}})),B.isDragging=B.isGesturing=B.isPressed=!1,f&&ft&&!O&&W.restart(!0),Y&&on(),_&&ft&&_(B),E&&E(B,ge)}},Ue=function(ke){return ke.touches&&ke.touches.length>1&&(B.isGesturing=!0)&&q(ke,B.isDragging)},ln=function(){return(B.isGesturing=!1)||P(B)},xn=function(ke){if(!ut(ke)){var ft=se(),ge=oe();Q((ft-Ee)*z,(ge-he)*z,1),Ee=ft,he=ge,f&&W.restart(!0)}},Bt=function(ke){if(!ut(ke)){ke=Ku(ke,u),ae&&(D=!0);var ft=(ke.deltaMode===1?l:ke.deltaMode===2?di.innerHeight:1)*p;Q(ke.deltaX*ft,ke.deltaY*ft,0),f&&!O&&W.restart(!0)}},lr=function(ke){if(!ut(ke)){var ft=ke.clientX,ge=ke.clientY,He=ft-B.x,Le=ge-B.y;B.x=ft,B.y=ge,C=!0,f&&W.restart(!0),(He||Le)&&Z(He,Le)}},is=function(ke){B.event=ke,F(B)},cr=function(ke){B.event=ke,U(B)},zn=function(ke){return ut(ke)||Ku(ke,u)&&ve(B)};W=B._dc=rr.delayedCall(d||.25,Zt).pause(),B.deltaX=B.deltaY=0,B._vx=zE(0,50,!0),B._vy=zE(0,50,!0),B.scrollX=se,B.scrollY=oe,B.isDragging=B.isGesturing=B.isPressed=!1,XO(this),B.enable=function(We){return B.isEnabled||(Ir(we?Ae:o,"scroll",WE),a.indexOf("scroll")>=0&&Ir(we?Ae:o,"scroll",xn,ue,G),a.indexOf("wheel")>=0&&Ir(o,"wheel",Bt,ue,G),(a.indexOf("touch")>=0&&zO||a.indexOf("pointer")>=0)&&(Ir(o,Bi[0],st,ue,G),Ir(Ae,Bi[2],xe),Ir(Ae,Bi[3],xe),N&&Ir(o,"click",Gt,!0,!0),ve&&Ir(o,"click",zn),q&&Ir(Ae,"gesturestart",
69Ue),P&&Ir(Ae,"gestureend",ln),F&&Ir(o,Oo+"enter",is),U&&Ir(o,Oo+"leave",cr),H&&Ir(o,Oo+"move",lr)),B.isEnabled=!0,B.isDragging=B.isGesturing=B.isPressed=C=Y=!1,B._vx.reset(),B._vy.reset(),Ee=se(),he=oe(),We&&We.type&&st(We),ce&&ce(B)),B},B.disable=function(){B.isEnabled&&(Tc.filter(function(We){return We!==B&&jf(We.target)}).length||Lr(we?Ae:o,"scroll",WE),B.isPressed&&(B._vx.reset(),B._vy.reset(),Lr(O?o:Ae,Bi[1],Oe,!0)),Lr(we?Ae:o,"scroll",xn,G),Lr(o,"wheel",Bt,G),Lr(o,Bi[0],st,G),Lr(Ae,Bi[2],xe),Lr(Ae,Bi[3],xe),Lr(o,"click",Gt,!0),Lr(o,"click",zn),Lr(Ae,"gesturestart",Ue),Lr(Ae,"gestureend",ln),Lr(o,Oo+"enter",is),Lr(o,Oo+"leave",cr),Lr(o,Oo+"move",lr),B.isEnabled=B.isPressed=B.isDragging=!1,ye&&ye(B))},B.kill=B.revert=function(){B.disable();var We=Tc.indexOf(B);We>=0&&Tc.splice(We,1),sa===B&&(sa=0)},Tc.push(B),O&&jf(o)&&(sa=B),B.enable(m)},U4(t,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),t}();sn.version="3.12.7";sn.create=function(t){return new sn(t)};sn.register=eM;sn.getAll=function(){return Tc.slice()};sn.getById=function(t){return Tc.filter(function(e){return e.vars.id===t})[0]};JO()&&rr.registerPlugin(sn);/*! 70 * ScrollToPlugin 3.12.7 71 * https://gsap.com 72 * 73 * @license Copyright 2008-2025, GreenSock. All rights reserved. 74 * Subject to the terms at https://gsap.com/standard-license or for 75 * Club GSAP members, the agreement issued with that membership. 76 * @author: Jack Doyle, [email protected] 77*/var vr,tM,oa,Es,eo,nM,$c,bh,rM=function(){return typeof window<"u"},iM=function(){return vr||rM()&&(vr=window.gsap)&&vr.registerPlugin&&vr},sM=function(e){return typeof e=="string"},gR=function(e){return typeof e=="function"},Ed=function(e,n){var r=n==="x"?"Width":"Height",i="scroll"+r,s="client"+r;return e===oa||e===Es||e===eo?Math.max(Es[i],eo[i])-(oa["inner"+r]||Es[s]||eo[s]):e[i]-e["offset"+r]},bd=function(e,n){var r="scroll"+(n==="x"?"Left":"Top");return e===oa&&(e.pageXOffset!=null?r="page"+n.toUpperCase()+"Offset":e=Es[r]!=null?Es:eo),function(){return e[r]}},G4=function(e,n,r,i){if(gR(e)&&(e=e(n,r,i)),typeof e!="object")return sM(e)&&e!=="max"&&e.charAt(1)!=="="?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var s={},a;for(a in e)s[a]=a!=="onAutoKill"&&gR(e[a])?e[a](n,r,i):e[a];return s},aM=function(e,n){if(e=nM(e)[0],!e||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var r=e.getBoundingClientRect(),i=!n||n===oa||n===eo,s=i?{top:Es.clientTop-(oa.pageYOffset||Es.scrollTop||eo.scrollTop||0),left:Es.clientLeft-(oa.pageXOffset||Es.scrollLeft||eo.scrollLeft||0)}:n.getBoundingClientRect(),a={x:r.left-s.left,y:r.top-s.top};return!i&&n&&(a.x+=bd(n,"x")(),a.y+=bd(n,"y")()),a},yR=function(e,n,r,i,s){return!isNaN(e)&&typeof e!="object"?parseFloat(e)-s:sM(e)&&e.charAt(1)==="="?parseFloat(e.substr(2))*(e.charAt(0)==="-"?-1:1)+i-s:e==="max"?Ed(n,r)-s:Math.min(Ed(n,r),aM(e,n
77)[r]-s)},YE=function(){vr=iM(),rM()&&vr&&typeof document<"u"&&document.body&&(oa=window,eo=document.body,Es=document.documentElement,nM=vr.utils.toArray,vr.config({autoKillThreshold:7}),$c=vr.config(),tM=1)},Pu={version:"3.12.7",name:"scrollTo",rawVars:1,register:function(e){vr=e,YE()},init:function(e,n,r,i,s){tM||YE();var a=this,o=vr.getProperty(e,"scrollSnapType");a.isWin=e===oa,a.target=e,a.tween=r,n=G4(n,i,e,s),a.vars=n,a.autoKill=!!("autoKill"in n?n:$c).autoKill,a.getX=bd(e,"x"),a.getY=bd(e,"y"),a.x=a.xPrev=a.getX(),a.y=a.yPrev=a.getY(),bh||(bh=vr.core.globals().ScrollTrigger),vr.getProperty(e,"scrollBehavior")==="smooth"&&vr.set(e,{scrollBehavior:"auto"}),o&&o!=="none"&&(a.snap=1,a.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),n.x!=null?(a.add(a,"x",a.x,yR(n.x,e,"x",a.x,n.offsetX||0),i,s),a._props.push("scrollTo_x")):a.skipX=1,n.y!=null?(a.add(a,"y",a.y,yR(n.y,e,"y",a.y,n.offsetY||0),i,s),a._props.push("scrollTo_y")):a.skipY=1},render:function(e,n){for(var r=n._pt,i=n.target,s=n.tween,a=n.autoKill,o=n.xPrev,l=n.yPrev,c=n.isWin,u=n.snap,f=n.snapInline,d,h,p,m,g;r;)r.r(e,r.d),r=r._next;d=c||!n.skipX?n.getX():o,h=c||!n.skipY?n.getY():l,p=h-l,m=d-o,g=$c.autoKillThreshold,n.x<0&&(n.x=0),n.y<0&&(n.y=0),a&&(!n.skipX&&(m>g||m<-g)&&d<Ed(i,"x")&&(n.skipX=1),!n.skipY&&(p>g||p<-g)&&h<Ed(i,"y")&&(n.skipY=1),n.skipX&&n.skipY&&(s.kill(),n.vars.onAutoKill&&n.vars.onAutoKill.apply(s,n.vars.onAutoKillParams||[]))),c?oa.scrollTo(n.skipX?d:n.x,n.skipY?h:n.y):(n.skipY||(i.scrollTop=n.y),n.skipX||(i.scrollLeft=n.x)),u&&(e===1||e===0)&&(h=i.scrollTop,d=i.scrollLeft,f?i.style.scrollSnapType=f:i.style.removeProperty("scroll-snap-type"),i.scrollTop=h+1,i.scrollLeft=d+1,i.scrollTop=h,i.scrollLeft=d),n.xPrev=n.x,n.yPrev=n.y,bh&&bh.update()},kill:function(e){var n=e==="scrollTo",r=this._props.indexOf(e);return(n||e==="scrollTo_x")&&(this.skipX=1),(n||e==="scrollTo_y")&&(this.skipY=1),r>-1&&this._props.splice(r,1),!this._props.length}};Pu.max=Ed;Pu.getOffset=aM;Pu.buildGetter=bd;Pu.config=function(t){$c||YE()||($c=vr.config());for(var e in t)$c[e]=t[e]};iM()&&vr.registerPlugin(Pu);/*! 78 * ScrollTrigger 3.12.7 79 * https://gsap.com 80 * 81 * @license Copyright 2008-2025, GreenSock. All rights reserved. 82 * Subject to the terms at https://gsap.com/standard-license or for 83 * Club GSAP members, the agreement issued with that membership. 84 * @author: Jack Doyle, [email protected] 85*/var Se,cc,nt,Nt,ui,Et,hS,Im,Td,Vf,af,Th,dr,Fg,XE,Dr,vR,_R,uc,oM,vv,lM,kr,JE,cM,uM,Aa,QE,pS,Bc,mS,km,ZE,_v,Sh=1,pr=Date.now,Ev=pr(),Di=0,of=0,ER=function(e,n,r){var i=si(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return r["_"+n+"Clamp"]=i,i?e.substr(6,e.length-7):e},bR=function(e,n){return n&&(!si(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},j4=function t(){return of&&requestAnimationFrame(t)},TR=function(){return Fg=1},SR=function(){return Fg=0},ps=function(e){return e},lf=function(e){return Math.round(e*1e5)/1e5||0},fM=function(){return typeof window<"u"},dM=function(){return Se||fM()&&(Se=window.gsap)&&Se.registerPlugin&&Se},Pl=function(e){return!!~hS.indexOf(e)},hM=function(e){return(e==="Height"?mS:nt["inner"+e])||ui["client"+e]||Et["client"+e]},pM=function(e){return Za(e,"getBoundingClientRect")||(Pl(e)?function(){return mp.width=nt.innerWidth,mp.height=mS,mp}:function(){return ta(e)})},V4=function(e,n,r){var i=r.d,s=r.d2,a=r.a;return(a=Za(e,"getBoundingClientRect"))?function(){return a()[i]}:function(){return(n?hM(s):e["client"+s])||0}},q4=function(e,n){return!n||~ks.indexOf(e)?pM(e):function(){return mp}},bs=function(e,n){var r=n.s,i=n.d2,s=n.d,a=n.a;return Math.max(0,(r="scroll"+i)&&(a=Za(e,r))?a()-pM(e)()[s]:Pl(e)?(ui[r]||Et[r])-hM(i):e[r]-e["offset"+i])},wh=function(e,n){for(var r=0;r<uc.length;r+=3)(!n||~n.indexOf(uc[r+1]))&&e(uc[r],uc[r+1],uc[r+2])},si=function(e){return typeof e=="string"},_r=function(e){return typeof e=="function"},cf=function(e){return typeof e=="number"},Mo=function(e){return typeof e=="object"},Wu=function(e,n,r){return e&&e.progress(n?0:1)&&r&&e.pause()},bv=function(e,n){if(e.enabled){var r=e._ctx?e._ctx.add(function(){return n(e)}):n(e);
vendor: 29,397 bytes, line 85
85r&&r.totalTime&&(e.callbackAnimation=r)}},Jl=Math.abs,mM="left",gM="top",gS="right",yS="bottom",yl="width",vl="height",qf="Right",Kf="Left",Wf="Top",zf="Bottom",hn="padding",Ai="margin",lu="Width",vS="Height",Ln="px",Ri=function(e){return nt.getComputedStyle(e)},K4=function(e){var n=Ri(e).position;e.style.position=n==="absolute"||n==="fixed"?n:"relative"},wR=function(e,n){for(var r in n)r in e||(e[r]=n[r]);return e},ta=function(e,n){var r=n&&Ri(e)[XE]!=="matrix(1, 0, 0, 1, 0, 0)"&&Se.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=e.getBoundingClientRect();return r&&r.progress(0).kill(),i},Pm=function(e,n){var r=n.d2;return e["offset"+r]||e["client"+r]||0},yM=function(e){var n=[],r=e.labels,i=e.duration(),s;for(s in r)n.push(r[s]/i);return n},W4=function(e){return function(n){return Se.utils.snap(yM(e),n)}},_S=function(e){var n=Se.utils.snap(e),r=Array.isArray(e)&&e.slice(0).sort(function(i,s){return i-s});return r?function(i,s,a){a===void 0&&(a=.001);var o;if(!s)return n(i);if(s>0){for(i-=a,o=0;o<r.length;o++)if(r[o]>=i)return r[o];return r[o-1]}else for(o=r.length,i+=a;o--;)if(r[o]<=i)return r[o];return r[0]}:function(i,s,a){a===void 0&&(a=.001);var o=n(i);return!s||Math.abs(o-i)<a||o-i<0==s<0?o:n(s<0?i-e:i+e)}},z4=function(e){return function(n,r){return _S(yM(e))(n,r.direction)}},xh=function(e,n,r,i){return r.split(",").forEach(function(s){return e(n,s,i)})},Bn=function(e,n,r,i,s){return e.addEventListener(n,r,{passive:!i,capture:!!s})},Fn=function(e,n,r,i){return e.removeEventListener(n,r,!!i)},Ah=function(e,n,r){r=r&&r.wheelHandler,r&&(e(n,"wheel",r),e(n,"touchmove",r))},xR={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Rh={toggleActions:"play",anticipatePin:0},Dm={top:0,left:0,center:.5,bottom:1,right:1},fp=function(e,n){if(si(e)){var r=e.indexOf("="),i=~r?+(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(i*=n/100),e=e.substr(0,r-1)),e=i+(e in Dm?Dm[e]*n:~e.indexOf("%")?parseFloat(e)*n/100:parseFloat(e)||0)}return e},Lh=function(e,n,r,i,s,a,o,l){var c=s.startColor,u=s.endColor,f=s.fontSize,d=s.indent,h=s.fontWeight,p=Nt.createElement("div"),m=Pl(r)||Za(r,"pinType")==="fixed",g=e.indexOf("scroller")!==-1,_=m?Et:r,v=e.indexOf("start")!==-1,y=v?c:u,E="border-color:"+y+";font-size:"+f+";color:"+y+";font-weight:"+h+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return E+="position:"+((g||l)&&m?"fixed;":"absolute;"),(g||l||!m)&&(E+=(i===Pn?gS:yS)+":"+(a+parseFloat(d))+"px;"),o&&(E+="box-sizing:border-box;text-align:left;width:"+o.offsetWidth+"px;"),p._isStart=v,p.setAttribute("class","gsap-marker-"+e+(n?" marker-"+n:"")),p.style.cssText=E,p.innerText=n||n===0?e+"-"+n:e,_.children[0]?_.insertBefore(p,_.children[0]):_.appendChild(p),p._offset=p["offset"+i.op.d2],dp(p,0,i,v),p},dp=function(e,n,r,i){var s={display:"block"},a=r[i?"os2":"p2"],o=r[i?"p2":"os2"];e._isFlipped=i,s[r.a+"Percent"]=i?-100:0,s[r.a]=i?"1px":0,s["border"+a+lu]=1,s["border"+o+lu]=0,s[r.p]=n+"px",Se.set(e,s)},et=[],eb={},Sd,AR=function(){return pr()-Di>34&&(Sd||(Sd=requestAnimationFrame(la)))},Ql=function(){(!kr||!kr.isPressed||kr.startX>Et.clientWidth)&&(rt.cache++,kr?Sd||(Sd=requestAnimationFrame(la)):la(),Di||Ol("scrollStart"),Di=pr())},Tv=function(){uM=nt.innerWidth,cM=nt.innerHeight},uf=function(e){rt.cache++,(e===!0||!dr&&!lM&&!Nt.fullscreenElement&&!Nt.webkitFullscreenElement&&(!JE||uM!==nt.innerWidth||Math.abs(nt.innerHeight-cM)>nt.innerHeight*.25))&&Im.restart(!0)},Dl={},Y4=[],vM=function t(){return Fn(Ze,"scrollEnd",t)||Qo(!0)},Ol=function(e){return Dl[e]&&Dl[e].map(function(n){return n()})||Y4},ii=[],_M=function(e){for(var n=0;n<ii.length;n+=5)(!e||ii[n+4]&&ii[n+4].query===e)&&(ii[n].style.cssText=ii[n+1],ii[n].getBBox&&ii[n].setAttribute("transform",ii[n+2]||""),ii[n+3].uncache=1)},ES=function(e,n){var r;for(Dr=0;Dr<et.length;Dr++)r=et[Dr],r&&(!n||r._ctx===n)&&(e?r.kill(1):r.revert(!0,!0));km=!0,n&&_M(n),n||Ol("revert")},EM=function(e,n){rt.cache++,(n||!Or)&&rt.forEach(function(r){return _r(r)&&r.cacheID++&&(r.rec=0)}),si(e)&&(nt.history.scrollRestoration=pS=e)},Or,_l=0,RR,X4=function(){if(RR!==_l){var e=RR=_l;requestAnimationFrame(function(){return e===_l&&Qo(!0)})}},bM=function(){Et.appendChild(Bc),mS=!kr&&Bc.offsetHeight||nt.innerHeight,Et.removeChild(Bc)},LR=function(e){return Td(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(n){return n.style.display=e?"none":"block"})},Qo=function(e,n){if(ui=Nt.documentElement,Et=Nt.body,hS=[nt,Nt,ui,Et],Di&&!e&&!km){Bn(Ze,"scrollEnd",vM);return}bM(),Or=Ze.isRefreshing=!0,rt.forEach(function(i){return _r(i)&&++i.cacheID&&(i.rec=i())});var r=Ol("refreshInit");oM&&Ze.sort(),n||ES(),rt.forEach(function(i){_r(i)&&(i.smooth&&(i.target.style.scrollBehavior="auto"),i(0))}),et.slice(0).forEach(function(i){return i.refresh()}),km=!1,et.forEach(function(i){if(i._subPinOffset&&i.pin){var s=i.vars.horizontal?"offsetWidth":"offsetHeight",a=i.pin[s];i.revert(!0,1),i.adjustPinSpacing(i.pin[s]-a),i.refresh()}}),ZE=1,LR(!0),et.forEach(function(i){var s=bs(i.scroller,i._dir),a=i.vars.end==="max"||i._endClamp&&i.end>s,o=i._startClamp&&i.start>=s;(a||o)&&i.setPositions(o?s-1:i.start,a?Math.max(o?s:i.start+1,s):i.end,!0)}),LR(!1),ZE=0,r.forEach(function(i){return i&&i.render&&i.render(-1)}),rt.forEach(function(i){_r(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),EM(pS,1),Im.pause(),_l++,Or=2,la(2),et.forEach(function(i){return _r(i.vars.onRefresh)&&i.vars.onRefresh(i)}),Or=Ze.isRefreshing=!1,Ol("refresh")},tb=0,hp=1,Yf,la=function(e){if(e===2||!Or&&!km){Ze.isUpdating=!0,Yf&&Yf.update(0);var n=et.length,r=pr(),i=r-Ev>=50,s=n&&et[0].scroll();if(hp=tb>s?-1:1,Or||(tb=s),i&&(Di&&!Fg&&r-Di>200&&(Di=0,Ol("scrollEnd")),af=Ev,Ev=r),hp<0){for(Dr=n;Dr-- >0;)et[Dr]&&et[Dr].update(0,i);hp=1}else for(Dr=0;Dr<n;Dr++)et[Dr]&&et[Dr].update(0,i);Ze.isUpdating=!1}Sd=0},nb=[mM,gM,yS,gS,Ai+zf,Ai+qf,Ai+Wf,Ai+Kf,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],pp=nb.concat([yl,vl,"boxSizing","max"+lu,"max"+vS,"position",Ai,hn,hn+Wf,hn+qf,hn+zf,hn+Kf]),J4=function(e,n,r){Uc(r);var i=e._gsap;if(i.spacerIsNative)Uc(i.spacerState);else if(e._gsap.swappedIn){var s=n.parentNode;s&&(s.insertBefore(e,n),s.removeChild(n))}e._gsap.swappedIn=!1},Sv=function(e,n,r,i){if(!e._gsap.swappedIn){for(var s=nb.length,a=n.style,o=e.style,l;s--;)l=nb[s],a[l]=r[l];a.position=r.position==="absolute"?"absolute":"relative",r.display==="inline"&&(a.display="inline-block"),o[yS]=o[gS]="auto",a.flexBasis=r.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[yl]=Pm(e,Br)+Ln,a[vl]=Pm(e,Pn)+Ln,a[hn]=o[Ai]=o[gM]=o[mM]="0",Uc(i),o[yl]=o["max"+lu]=r[yl],o[vl]=o["max"+vS]=r[vl],o[hn]=r[hn],e.parentNode!==n&&(e.parentNode.insertBefore(n,e),n.appendChild(e)),e._gsap.swappedIn=!0}},Q4=/([A-Z])/g,Uc=function(e){if(e){var n=e.t.style,r=e.length,i=0,s,a;for((e.t._gsap||Se.core.getCache(e.t)).uncache=1;i<r;i+=2)a=e[i+1],s=e[i],a?n[s]=a:n[s]&&n.removeProperty(s.replace(Q4,"-$1").toLowerCase())}},Ch=function(e){for(var n=pp.length,r=e.style,i=[],s=0;s<n;s++)i.push(pp[s],r[pp[s]]);return i.t=e,i},Z4=function(e,n,r){for(var i=[],s=e.length,a=r?8:0,o;a<s;a+=2)o=e[a],i.push(o,o in n?n[o]:e[a+1]);return i.t=e.t,i},mp={left:0,top:0},CR=function(e,n,r,i,s,a,o,l,c,u,f,d,h,p){_r(e)&&(e=e(l)),si(e)&&e.substr(0,3)==="max"&&(e=d+(e.charAt(4)==="="?fp("0"+e.substr(3),r):0));var m=h?h.time():0,g,_,v;if(h&&h.seek(0),isNaN(e)||(e=+e),cf(e))h&&(e=Se.utils.mapRange(h.scrollTrigger.start,h.scrollTrigger.end,0,d,e)),o&&dp(o,r,i,!0);else{_r(n)&&(n=n(l));var y=(e||"0").split(" "),E,b,T,S;v=Vr(n,l)||Et,E=ta(v)||{},(!E||!E.left&&!E.top)&&Ri(v).display==="none"&&(S=v.style.display,v.style.display="block",E=ta(v),S?v.style.display=S:v.style.removeProperty("display")),b=fp(y[0],E[i.d]),T=fp(y[1]||"0",r),e=E[i.p]-c[i.p]-u+b+s-T,o&&dp(o,T,i,r-T<20||o._isStart&&T>20),r-=r-T}if(p&&(l[p]=e||-.001,e<0&&(e=0)),a){var A=e+r,w=a._isStart;g="scroll"+i.d2,dp(a,A,i,w&&A>20||!w&&(f?Math.max(Et[g],ui[g]):a.parentNode[g])<=A+1),f&&(c=ta(o),f&&(a.style[i.op.p]=c[i.op.p]-i.op.m-a._offset+Ln))}return h&&v&&(g=ta(v),h.seek(d),_=ta(v),h._caScrollDist=g[i.p]-_[i.p],e=e/h._caScrollDist*d),h&&h.seek(m),h?e:Math.round(e)},eY=/(webkit|moz|length|cssText|inset)/i,IR=function(e,n,r,i){if(e.parentNode!==n){var s=e.style,a,o;if(n===Et){e._stOrig=s.cssText,o=Ri(e);for(a in o)!+a&&!eY.test(a)&&o[a]&&typeof s[a]=="string"&&a!=="0"&&(s[a]=o[a]);s.top=r,s.left=i}else s.cssText=e._stOrig;Se.core.getCache(e).uncache=1,n.appendChild(e)}},TM=function(e,n,r){var i=n,s=i;return function(a){var o=Math.round(e());return o!==i&&o!==s&&Math.abs(o-i)>3&&Math.abs(o-s)>3&&(a=o,r&&r()),s=i,i=Math.round(a),i}},Ih=function(e,n,r){var i={};i[n.p]="+="+r,Se.set(e,i)},kR=function(e,n){var r=lo(e,n),i="_scroll"+n.p2,s=function a(o,l,c,u,f){var d=a.tween,h=l.onComplete,p={};c=c||r();var m=TM(r,c,function(){d.kill(),a.tween=0});return f=u&&f||0,u=u||o-c,d&&d.kill(),l[i]=o,l.inherit=!1,l.modifiers=p,p[i]=function(){return m(c+u*d.ratio+f*d.ratio*d.ratio)},l.onUpdate=function(){rt.cache++,a.tween&&la()},l.onComplete=function(){a.tween=0,h&&h.call(d)},d=a.tween=Se.to(e,l),d};return e[i]=r,r.wheelHandler=function(){return s.tween&&s.tween.kill()&&(s.tween=0)},Bn(e,"wheel",r.wheelHandler),Ze.isTouch&&Bn(e,"touchmove",r.wheelHandler),s},Ze=function(){function t(n,r){cc||t.register(Se)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),QE(this),this.init(n,r)}var e=t.prototype;return e.init=function(r,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!of){this.update=this.refresh=this.kill=ps;return}r=wR(si(r)||cf(r)||r.nodeType?{trigger:r}:r,Rh);var s=r,a=s.onUpdate,o=s.toggleClass,l=s.id,c=s.onToggle,u=s.onRefresh,f=s.scrub,d=s.trigger,h=s.pin,p=s.pinSpacing,m=s.invalidateOnRefresh,g=s.anticipatePin,_=s.onScrubComplete,v=s.onSnapComplete,y=s.once,E=s.snap,b=s.pinReparent,T=s.pinSpacer,S=s.containerAnimation,A=s.fastScrollEnd,w=s.preventOverlaps,x=r.horizontal||r.containerAnimation&&r.horizontal!==!1?Br:Pn,L=!f&&f!==0,R=Vr(r.scroller||nt),k=Se.core.getCache(R),F=Pl(R),U=("pinType"in r?r.pinType:Za(R,"pinType")||F&&"fixed")==="fixed",H=[r.onEnter,r.onLeave,r.onEnterBack,r.onLeaveBack],M=L&&r.toggleActions.split(" "),O="markers"in r?r.markers:Rh.markers,q=F?0:parseFloat(Ri(R)["border"+x.p2+lu])||0,P=this,ae=r.onRefreshInit&&function(){return r.onRefreshInit(P)},ce=V4(R,F,x),ye=q4(R,F),ve=0,z=0,G=0,N=lo(R,x),$,j,V,W,Y,C,D,K,ee,B,ie,fe,ue,se,oe,Ee,he,me,we,Ae,Ne,qe,Mt,Gt,ut,Zt,on,Q,Z,Oe,st,xe,Ue,ln,xn,Bt,lr,is,cr;if(P._startClamp=P._endClamp=!1,P._dir=x,g*=45,P.scroller=R,P.scroll=S?S.time.bind(S):N,W=N(),P.vars=r,i=i||r.animation,"refreshPriority"in r&&(oM=1,r.refreshPriority===-9999&&(Yf=P)),k.tweenScroll=k.tweenScroll||{top:kR(R,Pn),left:kR(R,Br)},P.tweenTo=$=k.tweenScroll[x.p],P.scrubDuration=function(ge){Ue=cf(ge)&&ge,Ue?xe?xe.duration(ge):xe=Se.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:Ue,paused:!0,onComplete:function(){return _&&_(P)}}):(xe&&xe.progress(1).kill(),xe=0)},i&&(i.vars.lazy=!1,i._initted&&!P.isReverted||i.vars.immediateRender!==!1&&r.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),P.animation=i.pause(),i.scrollTrigger=P,P.scrubDuration(f),Oe=0,l||(l=i.vars.id)),E&&((!Mo(E)||E.push)&&(E={snapTo:E}),"scrollBehavior"in Et.style&&Se.set(F?[Et,ui]:R,{scrollBehavior:"auto"}),rt.forEach(function(ge){return _r(ge)&&ge.target===(F?Nt.scrollingElement||ui:R)&&(ge.smooth=!1)}),V=_r(E.snapTo)?E.snapTo:E.snapTo==="labels"?W4(i):E.snapTo==="labelsDirectional"?z4(i):E.directional!==!1?function(ge,He){return _S(E.snapTo)(ge,pr()-z<500?0:He.direction)}:Se.utils.snap(E.snapTo),ln=E.duration||{min:.1,max:2},ln=Mo(ln)?Vf(ln.min,ln.max):Vf(ln,ln),xn=Se.delayedCall(E.delay||Ue/2||.1,function(){var ge=N(),He=pr()-z<500,Le=$.tween;if((He||Math.abs(P.getVelocity())<10)&&!Le&&!Fg&&ve!==ge){var Ge=(ge-C)/se,en=i&&!L?i.totalProgress():Ge,tt=He?0:(en-st)/(pr()-af)*1e3||0,jt=Se.utils.clamp(-Ge,1-Ge,Jl(tt/2)*tt/.185),cn=Ge+(E.inertia===!1?0:jt),Ut,Rt,yt=E,ni=yt.onStart,Ct=yt.onInterrupt,un=yt.onComplete;if(Ut=V(cn,P),cf(Ut)||(Ut=cn),Rt=Math.max(0,Math.round(C+Ut*se)),ge<=D&&ge>=C&&Rt!==ge){if(Le&&!Le._initted&&Le.data<=Jl(Rt-ge))return;E.inertia===!1&&(jt=Ut-Ge),$(Rt,{duration:ln(Jl(Math.max(Jl(cn-en),Jl(Ut-en))*.185/tt/.05||0)),ease:E.ease||"power3",data:Jl(Rt-ge),onInterrupt:function(){return xn.restart(!0)&&Ct&&Ct(P)},onComplete:function(){P.update(),ve=N(),i&&!L&&(xe?xe.resetTo("totalProgress",Ut,i._tTime/i._tDur):i.progress(Ut)),Oe=st=i&&!L?i.totalProgress():P.progress,v&&v(P),un&&un(P)}},ge,jt*se,Rt-ge-jt*se),ni&&ni(P,$.tween)}}else P.isActive&&ve!==ge&&xn.restart(!0)}).pause()),l&&(eb[l]=P),d=P.trigger=Vr(d||h!==!0&&h),cr=d&&d._gsap&&d._gsap.stRevert,cr&&(cr=cr(P)),h=h===!0?d:Vr(h),si(o)&&(o={targets:d,className:o}),h&&(p===!1||p===Ai||(p=!p&&h.parentNode&&h.parentNode.style&&Ri(h.parentNode).display==="flex"?!1:hn),P.pin=h,j=Se.core.getCache(h),j.spacer?oe=j.pinState:(T&&(T=Vr(T),T&&!T.nodeType&&(T=T.current||T.nativeElement),j.spacerIsNative=!!T,T&&(j.spacerState=Ch(T))),j.spacer=me=T||Nt.createElement("div"),me.classList.add("pin-spacer"),l&&me.classList.add("pin-spacer-"+l),j.pinState=oe=Ch(h)),r.force3D!==!1&&Se.set(h,{force3D:!0}),P.spacer=me=j.spacer,Z=Ri(h),Gt=Z[p+x.os2],Ae=Se.getProperty(h),Ne=Se.quickSetter(h,x.a,Ln),Sv(h,me,Z),he=Ch(h)),O){fe=Mo(O)?wR(O,xR):xR,B=Lh("scroller-start",l,R,x,fe,0),ie=Lh("scroller-end",l,R,x,fe,0,B),we=B["offset"+x.op.d2];var zn=Vr(Za(R,"content")||R);K=this.markerStart=Lh("start",l,zn,x,fe,we,0,S),ee=this.markerEnd=Lh("end",l,zn,x,fe,we,0,S),S&&(is=Se.quickSetter([K,ee],x.a,Ln)),!U&&!(ks.length&&Za(R,"fixedMarkers")===!0)&&(K4(F?Et:R),Se.set([B,ie],{force3D:!0}),Zt=Se.quickSetter(B,x.a,Ln),Q=Se.quickSetter(ie,x.a,Ln))}if(S){var We=S.vars.onUpdate,ke=S.vars.onUpdateParams;S.eventCallback("onUpdate",function(){P.update(0,0,1),We&&We.apply(S,ke||[])})}if(P.previous=function(){return et[et.indexOf(P)-1]},P.next=function(){return et[et.indexOf(P)+1]},P.revert=function(ge,He){if(!He)return P.kill(!0);var Le=ge!==!1||!P.enabled,Ge=dr;Le!==P.isReverted&&(Le&&(Bt=Math.max(N(),P.scroll.rec||0),G=P.progress,lr=i&&i.progress()),K&&[K,ee,B,ie].forEach(function(en){return en.style.display=Le?"none":"block"}),Le&&(dr=P,P.update(Le)),h&&(!b||!P.isActive)&&(Le?J4(h,me,oe):Sv(h,me,Ri(h),ut)),Le||P.update(Le),dr=Ge,P.isReverted=Le)},P.refresh=function(ge,He,Le,Ge){if(!((dr||!P.enabled)&&!He)){if(h&&ge&&Di){Bn(t,"scrollEnd",vM);return}!Or&&ae&&ae(P),dr=P,$.tween&&!Le&&($.tween.kill(),$.tween=0),xe&&xe.pause(),m&&i&&i.revert({kill:!1}).invalidate(),P.isReverted||P.revert(!0,!0),P._subPinOffset=!1;var en=ce(),tt=ye(),jt=S?S.duration():bs(R,x),cn=se<=.01,Ut=0,Rt=Ge||0,yt=Mo(Le)?Le.end:r.end,ni=r.endTrigger||d,Ct=Mo(Le)?Le.start:r.start||(r.start===0||!d?0:h?"0 0":"0 100%"),un=P.pinnedContainer=r.pinnedContainer&&Vr(r.pinnedContainer,P),Ar=d&&Math.max(0,et.indexOf(P))||0,An=Ar,fn,ur,Eo,Xd,fr,Rn,ss,ay,_w,Fu,as,$u,Jd;for(O&&Mo(Le)&&($u=Se.getProperty(B,x.p),Jd=Se.getProperty(ie,x.p));An-- >0;)Rn=et[An],Rn.end||Rn.refresh(0,1)||(dr=P),ss=Rn.pin,ss&&(ss===d||ss===h||ss===un)&&!Rn.isReverted&&(Fu||(Fu=[]),Fu.unshift(Rn),Rn.revert(!0,!0)),Rn!==et[An]&&(Ar--,An--);for(_r(Ct)&&(Ct=Ct(P)),Ct=ER(Ct,"start",P),C=CR(Ct,d,en,x,N(),K,B,P,tt,q,U,jt,S,P._startClamp&&"_startClamp")||(h?-.001:0),_r(yt)&&(yt=yt(P)),si(yt)&&!yt.indexOf("+=")&&(~yt.indexOf(" ")?yt=(si(Ct)?Ct.split(" ")[0]:"")+yt:(Ut=fp(yt.substr(2),en),yt=si(Ct)?Ct:(S?Se.utils.mapRange(0,S.duration(),S.scrollTrigger.start,S.scrollTrigger.end,C):C)+Ut,ni=d)),yt=ER(yt,"end",P),D=Math.max(C,CR(yt||(ni?"100% 0":jt),ni,en,x,N()+Ut,ee,ie,P,tt,q,U,jt,S,P._endClamp&&"_endClamp"))||-.001,Ut=0,An=Ar;An--;)Rn=et[An],ss=Rn.pin,ss&&Rn.start-Rn._pinPush<=C&&!S&&Rn.end>0&&(fn=Rn.end-(P._startClamp?Math.max(0,Rn.start):Rn.start),(ss===d&&Rn.start-Rn._pinPush<C||ss===un)&&isNaN(Ct)&&(Ut+=fn*(1-Rn.progress)),ss===h&&(Rt+=fn));if(C+=Ut,D+=Ut,P._startClamp&&(P._startClamp+=Ut),P._endClamp&&!Or&&(P._endClamp=D||-.001,D=Math.min(D,bs(R,x))),se=D-C||(C-=.01)&&.001,cn&&(G=Se.utils.clamp(0,1,Se.utils.normalize(C,D,Bt))),P._pinPush=Rt,K&&Ut&&(fn={},fn[x.a]="+="+Ut,un&&(fn[x.p]="-="+N()),Se.set([K,ee],fn)),h&&!(ZE&&P.end>=bs(R,x)))fn=Ri(h),Xd=x===Pn,Eo=N(),qe=parseFloat(Ae(x.a))+Rt,!jt&&D>1&&(as=(F?Nt.scrollingElement||ui:R).style,as={style:as,value:as["overflow"+x.a.toUpperCase()]},F&&Ri(Et)["overflow"+x.a.toUpperCase()]!=="scroll"&&(as.style["overflow"+x.a.toUpperCase()]="scroll")),Sv(h,me,fn),he=Ch(h),ur=ta(h,!0),ay=U&&lo(R,Xd?Br:Pn)(),p?(ut=[p+x.os2,se+Rt+Ln],ut.t=me,An=p===hn?Pm(h,x)+se+Rt:0,An&&(ut.push(x.d,An+Ln),me.style.flexBasis!=="auto"&&(me.style.flexBasis=An+Ln)),Uc(ut),un&&et.forEach(function(Bu){Bu.pin===un&&Bu.vars.pinSpacing!==!1&&(Bu._subPinOffset=!0)}),U&&N(Bt)):(An=Pm(h,x),An&&me.style.flexBasis!=="auto"&&(me.style.flexBasis=An+Ln)),U&&(fr={top:ur.top+(Xd?Eo-C:ay)+Ln,left:ur.left+(Xd?ay:Eo-C)+Ln,boxSizing:"border-box",position:"fixed"},fr[yl]=fr["max"+lu]=Math.ceil(ur.width)+Ln,fr[vl]=fr["max"+vS]=Math.ceil(ur.height)+Ln,fr[Ai]=fr[Ai+Wf]=fr[Ai+qf]=fr[Ai+zf]=fr[Ai+Kf]="0",fr[hn]=fn[hn],fr[hn+Wf]=fn[hn+Wf],fr[hn+qf]=fn[hn+qf],fr[hn+zf]=fn[hn+zf],fr[hn+Kf]=fn[hn+Kf],Ee=Z4(oe,fr,b),Or&&N(0)),i?(_w=i._initted,vv(1),i.render(i.duration(),!0,!0),Mt=Ae(x.a)-qe+se+Rt,on=Math.abs(se-Mt)>1,U&&on&&Ee.splice(Ee.length-2,2),i.render(0,!0,!0),_w||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),vv(0)):Mt=se,as&&(as.value?as.style["overflow"+x.a.toUpperCase()]=as.value:as.style.removeProperty("overflow-"+x.a));else if(d&&N()&&!S)for(ur=d.parentNode;ur&&ur!==Et;)ur._pinOffset&&(C-=ur._pinOffset,D-=ur._pinOffset),ur=ur.parentNode;Fu&&Fu.forEach(function(Bu){return Bu.revert(!1,!0)}),P.start=C,P.end=D,W=Y=Or?Bt:N(),!S&&!Or&&(W<Bt&&N(Bt),P.scroll.rec=0),P.revert(!1,!0),z=pr(),xn&&(ve=-1,xn.restart(!0)),dr=0,i&&L&&(i._initted||lr)&&i.progress()!==lr&&i.progress(lr||0,!0).render(i.time(),!0,!0),(cn||G!==P.progress||S||m||i&&!i._initted)&&(i&&!L&&i.totalProgress(S&&C<-.001&&!G?Se.utils.normalize(C,D,0):G,!0),P.progress=cn||(W-C)/se===G?0:G),h&&p&&(me._pinOffset=Math.round(P.progress*Mt)),xe&&xe.invalidate(),isNaN($u)||($u-=Se.getProperty(B,x.p),Jd-=Se.getProperty(ie,x.p),Ih(B,x,$u),Ih(K,x,$u-(Ge||0)),Ih(ie,x,Jd),Ih(ee,x,Jd-(Ge||0))),cn&&!Or&&P.update(),u&&!Or&&!ue&&(ue=!0,u(P),ue=!1)}},P.getVelocity=function(){return(N()-Y)/(pr()-af)*1e3||0},P.endAnimation=function(){Wu(P.callbackAnimation),i&&(xe?xe.progress(1):i.paused()?L||Wu(i,P.direction<0,1):Wu(i,i.reversed()))},P.labelToScroll=function(ge){return i&&i.labels&&(C||P.refresh()||C)+i.labels[ge]/i.duration()*se||0},P.getTrailing=function(ge){var He=et.indexOf(P),Le=P.direction>0?et.slice(0,He).reverse():et.slice(He+1);return(si(ge)?Le.filter(function(Ge){return Ge.vars.preventOverlaps===ge}):Le).filter(function(Ge){return P.direction>0?Ge.end<=C:Ge.start>=D})},P.update=function(ge,He,Le){if(!(S&&!Le&&!ge)){var Ge=Or===!0?Bt:P.scroll(),en=ge?0:(Ge-C)/se,tt=en<0?0:en>1?1:en||0,jt=P.progress,cn,Ut,Rt,yt,ni,Ct,un,Ar;if(He&&(Y=W,W=S?N():Ge,E&&(st=Oe,Oe=i&&!L?i.totalProgress():tt)),g&&h&&!dr&&!Sh&&Di&&(!tt&&C<Ge+(Ge-Y)/(pr()-af)*g?tt=1e-4:tt===1&&D>Ge+(Ge-Y)/(pr()-af)*g&&(tt=.9999)),tt!==jt&&P.enabled){if(cn=P.isActive=!!tt&&tt<1,Ut=!!jt&&jt<1,Ct=cn!==Ut,ni=Ct||!!tt!=!!jt,P.direction=tt>jt?1:-1,P.progress=tt,ni&&!dr&&(Rt=tt&&!jt?0:tt===1?1:jt===1?2:3,L&&(yt=!Ct&&M[Rt+1]!=="none"&&M[Rt+1]||M[Rt],Ar=i&&(yt==="complete"||yt==="reset"||yt in i))),w&&(Ct||Ar)&&(Ar||f||!i)&&(_r(w)?w(P):P.getTrailing(w).forEach(function(Eo){return Eo.endAnimation()})),L||(xe&&!dr&&!Sh?(xe._dp._time-xe._start!==xe._time&&xe.render(xe._dp._time-xe._start),xe.resetTo?xe.resetTo("totalProgress",tt,i._tTime/i._tDur):(xe.vars.totalProgress=tt,xe.invalidate().restart())):i&&i.totalProgress(tt,!!(dr&&(z||ge)))),h){if(ge&&p&&(me.style[p+x.os2]=Gt),!U)Ne(lf(qe+Mt*tt));else if(ni){if(un=!ge&&tt>jt&&D+1>Ge&&Ge+1>=bs(R,x),b)if(!ge&&(cn||un)){var An=ta(h,!0),fn=Ge-C;IR(h,Et,An.top+(x===Pn?fn:0)+Ln,An.left+(x===Pn?0:fn)+Ln)}else IR(h,me);Uc(cn||un?Ee:he),on&&tt<1&&cn||Ne(qe+(tt===1&&!un?Mt:0))}}E&&!$.tween&&!dr&&!Sh&&xn.restart(!0),o&&(Ct||y&&tt&&(tt<1||!_v))&&Td(o.targets).forEach(function(Eo){return Eo.classList[cn||y?"add":"remove"](o.className)}),a&&!L&&!ge&&a(P),ni&&!dr?(L&&(Ar&&(yt==="complete"?i.pause().totalProgress(1):yt==="reset"?i.restart(!0).pause():yt==="restart"?i.restart(!0):i[yt]()),a&&a(P)),(Ct||!_v)&&(c&&Ct&&bv(P,c),H[Rt]&&bv(P,H[Rt]),y&&(tt===1?P.kill(!1,1):H[Rt]=0),Ct||(Rt=tt===1?1:3,H[Rt]&&bv(P,H[Rt]))),A&&!cn&&Math.abs(P.getVelocity())>(cf(A)?A:2500)&&(Wu(P.callbackAnimation),xe?xe.progress(1):Wu(i,yt==="reverse"?1:!tt,1))):L&&a&&!dr&&a(P)}if(Q){var ur=S?Ge/S.duration()*(S._caScrollDist||0):Ge;Zt(ur+(B._isFlipped?1:0)),Q(ur)}is&&is(-Ge/S.duration()*(S._caScrollDist||0))}},P.enable=function(ge,He){P.enabled||(P.enabled=!0,Bn(R,"resize",uf),F||Bn(R,"scroll",Ql),ae&&Bn(t,"refreshInit",ae),ge!==!1&&(P.progress=G=0,W=Y=ve=N()),He!==!1&&P.refresh())},P.getTween=function(ge){return ge&&$?$.tween:xe},P.setPositions=function(ge,He,Le,Ge){if(S){var en=S.scrollTrigger,tt=S.duration(),jt=en.end-en.start;ge=en.start+jt*ge/tt,He=en.start+jt*He/tt}P.refresh(!1,!1,{start:bR(ge,Le&&!!P._startClamp),end:bR(He,Le&&!!P._endClamp)},Ge),P.update()},P.adjustPinSpacing=function(ge){if(ut&&ge){var He=ut.indexOf(x.d)+1;ut[He]=parseFloat(ut[He])+ge+Ln,ut[1]=parseFloat(ut[1])+ge+Ln,Uc(ut)}},P.disable=function(ge,He){if(P.enabled&&(ge!==!1&&P.revert(!0,!0),P.enabled=P.isActive=!1,He||xe&&xe.pause(),Bt=0,j&&(j.uncache=1),ae&&Fn(t,"refreshInit",ae),xn&&(xn.pause(),$.tween&&$.tween.kill()&&($.tween=0)),!F)){for(var Le=et.length;Le--;)if(et[Le].scroller===R&&et[Le]!==P)return;Fn(R,"resize",uf),F||Fn(R,"scroll",Ql)}},P.kill=function(ge,He){P.disable(ge,He),xe&&!He&&xe.kill(),l&&delete eb[l];var Le=et.indexOf(P);Le>=0&&et.splice(Le,1),Le===Dr&&hp>0&&Dr--,Le=0,et.forEach(function(Ge){return Ge.scroller===P.scroller&&(Le=1)}),Le||Or||(P.scroll.rec=0),i&&(i.scrollTrigger=null,ge&&i.revert({kill:!1}),He||i.kill()),K&&[K,ee,B,ie].forEach(function(Ge){return Ge.parentNode&&Ge.parentNode.removeChild(Ge)}),Yf===P&&(Yf=0),h&&(j&&(j.uncache=1),Le=0,et.forEach(function(Ge){return Ge.pin===h&&Le++}),Le||(j.spacer=0)),r.onKill&&r.onKill(P)},et.push(P),P.enable(!1,!1),cr&&cr(P),i&&i.add&&!se){var ft=P.update;P.update=function(){P.update=ft,rt.cache++,C||D||P.refresh()},Se.delayedCall(.01,P.update),se=.01,C=D=0}else P.refresh();h&&X4()},t.register=function(r){return cc||(Se=r||dM(),fM()&&window.document&&t.enable(),cc=of),cc},t.defaults=function(r){if(r)for(var i in r)Rh[i]=r[i];return Rh},t.disable=function(r,i){of=0,et.forEach(function(a){return a[i?"kill":"disable"](r)}),Fn(nt,"wheel",Ql),Fn(Nt,"scroll",Ql),clearInterval(Th),Fn(Nt,"touchcancel",ps),Fn(Et,"touchstart",ps),xh(Fn,Nt,"pointerdown,touchstart,mousedown",TR),xh(Fn,Nt,"pointerup,touchend,mouseup",SR),Im.kill(),wh(Fn);for(var s=0;s<rt.length;s+=3)Ah(Fn,rt[s],rt[s+1]),Ah(Fn,rt[s],rt[s+2])},t.enable=function(){if(nt=window,Nt=document,ui=Nt.documentElement,Et=Nt.body,Se&&(Td=Se.utils.toArray,Vf=Se.utils.clamp,QE=Se.core.context||ps,vv=Se.core.suppressOverwrites||ps,pS=nt.history.scrollRestoration||"auto",tb=nt.pageYOffset||0,Se.core.globals("ScrollTrigger",t),Et)){of=1,Bc=document.createElement("div"),Bc.style.height="100vh",Bc.style.position="absolute",bM(),j4(),sn.register(Se),t.isTouch=sn.isTouch,Aa=sn.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),JE=sn.isTouch===1,Bn(nt,"wheel",Ql),hS=[nt,Nt,ui,Et],Se.matchMedia?(t.matchMedia=function(c){var u=Se.matchMedia(),f;for(f in c)u.add(f,c[f]);return u},Se.addEventListener("matchMediaInit",function(){return ES()}),Se.addEventListener("matchMediaRevert",function(){return _M()}),Se.addEventListener("matchMedia",function(){Qo(0,1),Ol("matchMedia")}),Se.matchMedia().add("(orientation: portrait)",function(){return Tv(),Tv})):console.warn("Requires GSAP 3.11.0 or later"),Tv(),Bn(Nt,"scroll",Ql);var r=Et.hasAttribute("style"),i=Et.style,s=i.borderTopStyle,a=Se.core.Animation.prototype,o,l;for(a.revert||Object.defineProperty(a,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",o=ta(Et),Pn.m=Math.round(o.top+Pn.sc())||0,Br.m=Math.round(o.left+Br.sc())||0,s?i.borderTopStyle=s:i.removeProperty("border-top-style"),r||(Et.setAttribute("style",""),Et.removeAttribute("style")),Th=setInterval(AR,250),Se.delayedCall(.5,function(){return Sh=0}),Bn(Nt,"touchcancel",ps),Bn(Et,"touchstart",ps),xh(Bn,Nt,"pointerdown,touchstart,mousedown",TR),xh(Bn,Nt,"pointerup,touchend,mouseup",SR),XE=Se.utils.checkPrefix("transform"),pp.push(XE),cc=pr(),Im=Se.delayedCall(.2,Qo).pause(),uc=[Nt,"visibilitychange",function(){var c=nt.innerWidth,u=nt.innerHeight;Nt.hidden?(vR=c,_R=u):(vR!==c||_R!==u)&&uf()},Nt,"DOMContentLoaded",Qo,nt,"load",Qo,nt,"resize",uf],wh(Bn),et.forEach(function(c){return c.enable(0,1)}),l=0;l<rt.length;l+=3)Ah(Fn,rt[l],rt[l+1]),Ah(Fn,rt[l],rt[l+2])}},t.config=function(r){"limitCallbacks"in r&&(_v=!!r.limitCallbacks);var i=r.syncInterval;i&&clearInterval(Th)||(Th=i)&&setInterval(AR,i),"ignoreMobileResize"in r&&(JE=t.isTouch===1&&r.ignoreMobileResize),"autoRefreshEvents"in r&&(wh(Fn)||wh(Bn,r.autoRefreshEvents||"none"),lM=(r.autoRefreshEvents+"").indexOf("resize")===-1)},t.scrollerProxy=function(r,i){var s=Vr(r),a=rt.indexOf(s),o=Pl(s);~a&&rt.splice(a,o?6:2),i&&(o?ks.unshift(nt,i,Et,i,ui,i):ks.unshift(s,i))},t.clearMatchMedia=function(r){et.forEach(function(i){return i._ctx&&i._ctx.query===r&&i._ctx.kill(!0,!0)})},t.isInViewport=function(r,i,s){var a=(si(r)?Vr(r):r).getBoundingClientRect(),o=a[s?yl:vl]*i||0;return s?a.right-o>0&&a.left+o<nt.innerWidth:a.bottom-o>0&&a.top+o<nt.innerHeight},t.positionInViewport=function(r,i,s){si(r)&&(r=Vr(r));var a=r.getBoundingClientRect(),o=a[s?yl:vl],l=i==null?o/2:i in Dm?Dm[i]*o:~i.indexOf("%")?parseFloat(i)*o/100:parseFloat(i)||0;return s?(a.left+l)/nt.innerWidth:(a.top+l)/nt.innerHeight},t.killAll=function(r){if(et.slice(0).forEach(function(s){return s.vars.id!=="ScrollSmoother"&&s.kill()}),r!==!0){var i=Dl.killAll||[];Dl={},i.forEach(function(s){return s()})}},t}();Ze.version="3.12.7";Ze.saveStyles=function(t){return t?Td(t).forEach(function(e){if(e&&e.style){var n=ii.indexOf(e);n>=0&&ii.splice(n,5),ii.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),Se.core.getCache(e),QE())}}):ii};Ze.revert=function(t,e){return ES(!t,e)};Ze.create=function(t,e){return new Ze(t,e)};Ze.refresh=function(t){return t?uf(!0):(cc||Ze.register())&&Qo(!0)};Ze.update=function(t){return++rt.cache&&la(t===!0?2:0)};Ze.clearScrollMemory=EM;Ze.maxScroll=function(t,e){return bs(t,e?Br:Pn)};Ze.getScrollFunc=function(t,e){return lo(Vr(t),e?Br:Pn)};Ze.getById=function(t){return eb[t]};Ze.getAll=function(){return et.filter(function(t){return t.vars.id!=="ScrollSmoother"})};Ze.isScrolling=function(){return!!Di};Ze.snapDirectional=_S;Ze.addEventListener=function(t,e){var n=Dl[t]||(Dl[t]=[]);~n.indexOf(e)||n.push(e)};Ze.removeEventListener=function(t,e){var n=Dl[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)};Ze.batch=function(t,e){var n=[],r={},i=e.interval||.016,s=e.batchMax||1e9,a=function(c,u){var f=[],d=[],h=Se.delayedCall(i,function(){u(f,d),f=[],d=[]}).pause();return function(p){f.length||h.restart(!0),f.push(p.trigger),d.push(p),s<=f.length&&h.progress(1)}},o;for(o in e)r[o]=o.substr(0,2)==="on"&&_r(e[o])&&o!=="onRefreshInit"?a(o,e[o]):e[o];return _r(s)&&(s=s(),Bn(Ze,"refresh",function(){return s=e.batchMax()})),Td(t).forEach(function(l){var c={};for(o in r)c[o]=r[o];c.trigger=l,n.push(Ze.create(c))}),n};var PR=function(e,n,r,i){return n>i?e(i):n<0&&e(0),r>i?(i-n)/(r-n):r<0?n/(n-r):1},wv=function t(e,n){n===!0?e.style.removeProperty("touch-action"):e.style.touchAction=n===!0?"auto":n?"pan-"+n+(sn.isTouch?" pinch-zoom":""):"none",e===ui&&t(Et,n)},kh={auto:1,scroll:1},tY=function(e){var n=e.event,r=e.target,i=e.axis,s=(n.changedTouches?n.changedTouches[0]:n).target,a=s._gsap||Se.core.getCache(s),o=pr(),l;if(!a._isScrollT||o-a._isScrollT>2e3){for(;s&&s!==Et&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!(kh[(l=Ri(s)).overflowY]||kh[l.overflowX]));)s=s.parentNode;a._isScroll=s&&s!==r&&!Pl(s)&&(kh[(l=Ri(s)).overflowY]||kh[l.overflowX]),a._isScrollT=o}(a._isScroll||i==="x")&&(n.stopPropagation(),n._gsapAllow=!0)},SM=function(e,n,r,i){return sn.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:n,onWheel:i=i&&tY,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return r&&Bn(Nt,sn.eventTypes[0],OR,!1,!0)},onDisable:function(){return Fn(Nt,sn.eventTypes[0],OR,!0)}})},nY=/(input|label|select|textarea)/i,DR,OR=function(e){var n=nY.test(e.target.tagName);(n||DR)&&(e._gsapAllow=!0,DR=n)},rY=function(e){Mo(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var n=e,r=n.normalizeScrollX,i=n.momentum,s=n.allowNestedScroll,a=n.onRelease,o,l,c=Vr(e.target)||ui,u=Se.core.globals().ScrollSmoother,f=u&&u.get(),d=Aa&&(e.content&&Vr(e.content)||f&&e.content!==!1&&!f.smooth()&&f.content()),h=lo(c,Pn),p=lo(c,Br),m=1,g=(sn.isTouch&&nt.visualVie
85wport?nt.visualViewport.scale*nt.visualViewport.width:nt.outerWidth)/nt.innerWidth,_=0,v=_r(i)?function(){return i(o)}:function(){return i||2.8},y,E,b=SM(c,e.type,!0,s),T=function(){return E=!1},S=ps,A=ps,w=function(){l=bs(c,Pn),A=Vf(Aa?1:0,l),r&&(S=Vf(0,bs(c,Br))),y=_l},x=function(){d._gsap.y=lf(parseFloat(d._gsap.y)+h.offset)+"px",d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(d._gsap.y)+", 0, 1)",h.offset=h.cacheID=0},L=function(){if(E){requestAnimationFrame(T);var O=lf(o.deltaY/2),q=A(h.v-O);if(d&&q!==h.v+h.offset){h.offset=q-h.v;var P=lf((parseFloat(d&&d._gsap.y)||0)-h.offset);d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+P+", 0, 1)",d._gsap.y=P+"px",h.cacheID=rt.cache,la()}return!0}h.offset&&x(),E=!0},R,k,F,U,H=function(){w(),R.isActive()&&R.vars.scrollY>l&&(h()>l?R.progress(1)&&h(l):R.resetTo("scrollY",l))};return d&&Se.set(d,{y:"+=0"}),e.ignoreCheck=function(M){return Aa&&M.type==="touchmove"&&L()||m>1.05&&M.type!=="touchstart"||o.isGesturing||M.touches&&M.touches.length>1},e.onPress=function(){E=!1;var M=m;m=lf((nt.visualViewport&&nt.visualViewport.scale||1)/g),R.pause(),M!==m&&wv(c,m>1.01?!0:r?!1:"x"),k=p(),F=h(),w(),y=_l},e.onRelease=e.onGestureStart=function(M,O){if(h.offset&&x(),!O)U.restart(!0);else{rt.cache++;var q=v(),P,ae;r&&(P=p(),ae=P+q*.05*-M.velocityX/.227,q*=PR(p,P,ae,bs(c,Br)),R.vars.scrollX=S(ae)),P=h(),ae=P+q*.05*-M.velocityY/.227,q*=PR(h,P,ae,bs(c,Pn)),R.vars.scrollY=A(ae),R.invalidate().duration(q).play(.01),(Aa&&R.vars.scrollY>=l||P>=l-1)&&Se.to({},{onUpdate:H,duration:q})}a&&a(M)},e.onWheel=function(){R._ts&&R.pause(),pr()-_>1e3&&(y=0,_=pr())},e.onChange=function(M,O,q,P,ae){if(_l!==y&&w(),O&&r&&p(S(P[2]===O?k+(M.startX-M.x):p()+O-P[1])),q){h.offset&&x();var ce=ae[2]===q,ye=ce?F+M.startY-M.y:h()+q-ae[1],ve=A(ye);ce&&ye!==ve&&(F+=ve-ye),h(ve)}(q||O)&&la()},e.onEnable=function(){wv(c,r?!1:"x"),Ze.addEventListener("refresh",H),Bn(nt,"resize",H),h.smooth&&(h.target.style.scrollBehavior="auto",h.smooth=p.smooth=!1),b.enable()},e.onDisable=function(){wv(c,!0),Fn(nt,"resize",H),Ze.removeEventListener("refresh",H),b.kill()},e.lockAxis=e.lockAxis!==!1,o=new sn(e),o.iOS=Aa,Aa&&!h()&&h(1),Aa&&Se.ticker.add(ps),U=o._dc,R=Se.to(o,{ease:"power4",paused:!0,inherit:!1,scrollX:r?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:TM(h,h(),function(){return R.pause()})},onUpdate:la,onComplete:U.vars.onComplete}),o};Ze.sort=function(t){if(_r(t))return et.sort(t);var e=nt.pageYOffset||0;return Ze.getAll().forEach(function(n){return n._sortY=n.trigger?e+n.trigger.getBoundingClientRect().top:n.start+nt.innerHeight}),et.sort(t||function(n,r){return(n.vars.refreshPriority||0)*-1e6+(n.vars.containerAnimation?1e6:n._sortY)-((r.vars.containerAnimation?1e6:r._sortY)+(r.vars.refreshPriority||0)*-1e6)})};Ze.observe=function(t){return new sn(t)};Ze.normalizeScroll=function(t){if(typeof t>"u")return kr;if(t===!0&&kr)return kr.enable();if(t===!1){kr&&kr.kill(),kr=t;return}var e=t instanceof sn?t:rY(t);return kr&&kr.target===e.target&&kr.kill(),Pl(e.target)&&(kr=e),e};Ze.core={_getVelocityProp:zE,_inputObserver:SM,_scrollers:rt,_proxies:ks,bridge:{ss:function(){Di||Ol("scrollStart"),Di=pr()},ref:function(){return dr}}};dM()&&Se.registerPlugin(Ze);const iY=wn(()=>{nr.registerPlugin(Ze,Pu)}),sY=wn(()=>{const t=()=>{const e=document.createElement("div");document.body.appendChild(e),e.style.position="absolute",e.style.width="100vw",e.style.height="100vh";const n=e.offsetHeight;e.style.height="100svh";const r=e.offsetHeight,i=e.offsetWidth;e.remove(),document.documentElement.style.setProperty("--100vh",`${n}px`),document.documentElement.style.setProperty("--100svh",`${r}px`),document.documentElement.style.setProperty("--100vw",`${i}px`),document.documentElement.style.setProperty("--real-height",`${window.innerHeight}px`)};window.addEventListener("resize",t),t()}),aY=wn(()=>{if(navigator.userAgent.toLowerCase().includes("chrome")){const t=[` 86 %c Made with ⥠by Dogstudio %c %c %c http://www.dogstudio.co/ %c %c 87`,"color: #fff; background: #e43333; padding:5px 0;","background: #131419; padding:5px 0;","background: #131419; padding:5px 0;","color: #fff; background: #1c1c1c; padding:5px 0;","background: #fff; padding:5px 0;","color: #e43333; background: #fff; padding:5px 0;"];window.console.log.apply(console,t)}else window.console&&window.console.log("Made with love ⥠Dogstudio - http://www.dogstudio.co/")}),oY=[Fj,Bj,Hj,kq,Gq,jq,Vq,qq,Kq,Wq,zq,Yq,c8,u8,g8,S8,w8,iY,sY,aY],lY=ya({props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const e=t.renderKey,n=t.route,r={};for(const i in t.route)Object.defineProperty(r,i,{get:()=>e===t.renderKey?t.route[i]:n[i],enumerable:!0});return cl(Fd,ra(r)),()=>Ke(t.vnode,{ref:t.vnodeRef})}}),cY=ya({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(t,{attrs:e,slots:n,expose:r}){const i=At(),s=it(),a=sr(Fd,null);let o;r({pageRef:s});const l=sr(Jk,null);let c;const u=i.deferHydration();if(i.isHydrating){const f=i.hooks.hookOnce("app:error",u);xr().beforeEach(f)}return t.pageKey&&ar(()=>t.pageKey,(f,d)=>{f!==d&&i.callHook("page:loading:start")}),()=>Ke(FP,{name:t.name,route:t.route,...e},{default:f=>{const d=fY(a,f.route,f.Component),h=a&&a.matched.length===f.route.matched.length;if(!f.Component){if(c&&!h)return c;
87u();return}if(c&&l&&!l.isCurrent(f.route))return c;if(d&&a&&(!l||l!=null&&l.isCurrent(a)))return h?c:null;const p=mE(f,t.pageKey);!i.isHydrating&&!dY(a,f.route,f.Component)&&o===p&&i.callHook("page:loading:end"),o=p;const m=!!(t.transition??f.route.meta.pageTransition??Z_),g=m&&uY([t.transition,f.route.meta.pageTransition,Z_,{onAfterLeave:()=>{i.callHook("page:transition:finish",f.Component)}}].filter(Boolean)),_=t.keepalive??f.route.meta.keepalive??iG;return c=$P(pg,m&&g,YV(_,Ke(AT,{suspensible:!0,onPending:()=>i.callHook("page:start",f.Component),onResolve:()=>{tr(()=>i.callHook("page:finish",f.Component).then(()=>i.callHook("page:loading:end")).finally(u))}},{default:()=>{const v=Ke(lY,{key:p||void 0,vnode:n.default?Ke(er,void 0,n.default(f)):f.Component,route:f.route,renderKey:p||void 0,trackRootNodes:m,vnodeRef:s});return _&&(v.type.name=f.Component.type.name||f.Component.type.__name||"RouteProvider"),v}}))).default(),c}})}});function uY(t){const e=t.map(n=>({...n,onAfterLeave:n.onAfterLeave?MT(n.onAfterLeave):void 0}));return Yk(...e)}function fY(t,e,n){if(!t)return!1;const r=e.matched.findIndex(i=>{var s;return((s=i.components)==null?void 0:s.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:e.matched.slice(0,r).some((i,s)=>{var a,o,l;return((a=i.components)==null?void 0:a.default)!==((l=(o=t.matched[s])==null?void 0:o.components)==null?void 0:l.default)})||n&&mE({route:e,Component:n})!==mE({route:t,Component:n})}function dY(t,e,n){return t?e.matched.findIndex(i=>{var s;return((s=i.components)==null?void 0:s.default)===(n==null?void 0:n.type)})<e.matched.length-1:!1}const hY=ya({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(t,e){return()=>Ke($a[t.name],t.layoutProps,e.slots)}}),wM=ya({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(t,e){const n=At(),r=sr(Fd),i=r===yo()?VV():r,s=$e(()=>{let l=_e(t.name)??i.meta.layout??"default";return l&&!(l in $a)&&t.fallback&&(l=_e(t.fallback)),l}),a=it();e.expose({layoutRef:a});const o=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",o);xr().beforeEach(l)}return()=>{const l=s.value&&s.value in $a,c=i.meta.layoutTransition??rG;return $P(pg,l&&c,{default:()=>Ke(AT,{suspensible:!0,onResolve:()=>{tr(o)}},{default:()=>Ke(pY,{layoutProps:Wa(e.attrs,{ref:a}),key:s.value||void 0,name:s.value,shouldProvide:!t.name,hasTransition:!!c},e.slots)})}).default()}}}),pY=ya({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(t,e){const n=t.name;return t.shouldProvide&&cl(Jk,{isCurrent:r=>n===(r.meta.layout??"default")}),()=>{var r,i;return!n||typeof n=="string"&&!(n in $a)?(i=(r=e.slots).default)==null?void 0:i.call(r):Ke(hY,{key:n,layoutProps:t.layoutProps,name:n},e.slots)}}});var mY=Object.create,xM=Object.defineProperty,gY=Object.getOwnPropertyDescriptor,yY=Object.getOwnPropertyNames,vY=Object.getPrototypeOf,_Y=Object.prototype.hasOwnProperty,AM=function(t,e){return function(){return t&&(e=t(t=0)),e}},ti=function(t,e){return function(){return e||t((e={exports:{}}).exports,e),e.exports}},EY=function(t,e,n,r){if(e&&typeof e=="object"||typeof e=="function")for(var i=yY(e),s=0,a=i.length,o;s<a;s++)o=i[s],!_Y.call(t,o)&&o!==n&&xM(t,o,{get:(function(l){return e[l]}).bind(null,o),enumerable:!(r=gY(e,o))||r.enumerable});return t},Fi=function(t,e,n){return n=t!=null?mY(vY(t)):{},EY(!t||!t.__esModule?xM(n,"default",{value:t,enumerable:!0}):n,t)},ns=ti(function(t,e){var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n={},e.exports=n});function Vl(t,e){return e!=null&&typeof Symbol<"u"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):Vl(t,e)}var ql=AM(function(){ql()});function RM(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}var LM=AM(function(){}),CM=ti(function(t,e){var n=Array.prototype.slice;e.exports=r;function r(i,s){for(("length"in i)||(i=[i]),i=n.call(i);i.length;){var a=i.shift(),o=s(a);if(o)return o;a.childNodes&&a.childNodes.length&&(i=n.call(a.childNodes).concat(i))}}}),bY=ti(function(t,e){ql(),e.exports=n;function n(r,i){if(!Vl(this,n))return new n(r,i);this.data=r,this.nodeValue=r,this.length=r.length,this.ownerDocument=i||null}n.prototype.nodeType=8,n.prototype.nodeName="#comment",n.prototype.toString=function(){return"[object Comment]"}}),TY=ti(function(t,e){ql(),e.exports=n;function n(r,i){if(!Vl(this,n))return new n(r);this.data=r||"",this.length=this.data.length,this.ownerDocument=i||null}n.prototype.type="DOMTextNode",n.prototype.nodeType=3,n.prototype.nodeName="#text",n.prototype.toString=function(){return this.data},n.prototype.replaceData=function(r,i,s){var a=this.data,o=a.substring(0,r),l=a.substring(r+i,a.length);this.data=o+s+l,this.length=this.data.length}}),IM=ti(function(t,e){e.exports=n;function n(r){var i=this,s=r.type;r.target||(r.target=i),i.listeners||(i.listeners={});var a=i.listeners[s];if(a)return a.forEach(function(o){r.currentTarget=i,typeof o=="function"?o(r):o.handleEvent(r)});i.parentNode&&i.parentNode.dispatchEvent(r)}}),kM=ti(function(t,e){e.exports=n;function n(r,i){var s=this;s.listeners||(s.listeners={}),s.listeners[r]||(s.listeners[r]=[]),s.listeners[r].indexOf(i)===-1&&s.listeners[r].push(i)}}),PM=ti(function(t,e){e.exports=n;function n(r,i){var s=this;if(s.listeners&&s.listeners[r]){var a=s.listeners[r],o=a.indexOf(i);o!==-1&&a.splice(o,1)}}}),SY=ti(function(t,e){LM(),e.exports=r;var n=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function r(d){switch(d.nodeType){case 3:return u(d.data);case 8:return"<!--"+d.data+"-->";default:return i(d)}}function i(d){var h=[],p=d.tagName;return d.namespaceURI==="http://www.w3.org/1999/xhtml"&&(p=p.toLowerCase()),h.push("<"+p+c(d)+o(d)),n.indexOf(p)>-1?h.push(" />"):(h.push(">"),d.childNodes.length?h.push.apply(h,d.childNodes.map(r)):d.textContent||d.innerText?h.push(u(d.textContent||d.innerText)):d.innerHTML&&h.push(d.innerHTML),h.push("</"+p+">")),h.join("")}function s(d,h){var p=RM(d[h]);
vendor: 6,261 bytes, line 87
87return h==="style"&&Object.keys(d.style).length>0?!0:d.hasOwnProperty(h)&&(p==="string"||p==="boolean"||p==="number")&&h!=="nodeName"&&h!=="className"&&h!=="tagName"&&h!=="textContent"&&h!=="innerText"&&h!=="namespaceURI"&&h!=="innerHTML"}function a(d){if(typeof d=="string")return d;var h="";return Object.keys(d).forEach(function(p){var m=d[p];p=p.replace(/[A-Z]/g,function(g){return"-"+g.toLowerCase()}),h+=p+":"+m+";"}),h}function o(d){var h=d.dataset,p=[];for(var m in h)p.push({name:"data-"+m,value:h[m]});return p.length?l(p):""}function l(d){var h=[];return d.forEach(function(p){var m=p.name,g=p.value;m==="style"&&(g=a(g)),h.push(m+'="'+f(g)+'"')}),h.length?" "+h.join(" "):""}function c(d){var h=[];for(var p in d)s(d,p)&&h.push({name:p,value:d[p]});for(var m in d._attributes)for(var g in d._attributes[m]){var _=d._attributes[m][g],v=(_.prefix?_.prefix+":":"")+g;h.push({name:v,value:_.value})}return d.className&&h.push({name:"class",value:d.className}),h.length?l(h):""}function u(d){var h="";return typeof d=="string"?h=d:d&&(h=d.toString()),h.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function f(d){return u(d).replace(/"/g,""")}}),DM=ti(function(t,e){ql();var n=CM(),r=IM(),i=kM(),s=PM(),a=SY(),o="http://www.w3.org/1999/xhtml";e.exports=l;function l(c,u,f){if(!Vl(this,l))return new l(c);var d=f===void 0?o:f||null;this.tagName=d===o?String(c).toUpperCase():c,this.nodeName=this.tagName,this.className="",this.dataset={},this.childNodes=[],this.parentNode=null,this.style={},this.ownerDocument=u||null,this.namespaceURI=d,this._attributes={},this.tagName==="INPUT"&&(this.type="text")}l.prototype.type="DOMElement",l.prototype.nodeType=1,l.prototype.appendChild=function(c){return c.parentNode&&c.parentNode.removeChild(c),this.childNodes.push(c),c.parentNode=this,c},l.prototype.replaceChild=function(c,u){c.parentNode&&c.parentNode.removeChild(c);var f=this.childNodes.indexOf(u);return u.parentNode=null,this.childNodes[f]=c,c.parentNode=this,u},l.prototype.removeChild=function(c){var u=this.childNodes.indexOf(c);return this.childNodes.splice(u,1),c.parentNode=null,c},l.prototype.insertBefore=function(c,u){c.parentNode&&c.parentNode.removeChild(c);var f=u==null?-1:this.childNodes.indexOf(u);return f>-1?this.childNodes.splice(f,0,c):this.childNodes.push(c),c.parentNode=this,c},l.prototype.setAttributeNS=function(c,u,f){var d=null,h=u,p=u.indexOf(":");if(p>-1&&(d=u.substr(0,p),h=u.substr(p+1)),this.tagName==="INPUT"&&u==="type")this.type=f;else{var m=this._attributes[c]||(this._attributes[c]={});m[h]={value:f,prefix:d}}},l.prototype.getAttributeNS=function(c,u){var f=this._attributes[c],d=f&&f[u]&&f[u].value;return this.tagName==="INPUT"&&u==="type"?this.type:typeof d!="string"?null:d},l.prototype.removeAttributeNS=function(c,u){var f=this._attributes[c];f&&delete f[u]},l.prototype.hasAttributeNS=function(c,u){var f=this._attributes[c];return!!f&&u in f},l.prototype.setAttribute=function(c,u){return this.setAttributeNS(null,c,u)},l.prototype.getAttribute=function(c){return this.getAttributeNS(null,c)},l.prototype.removeAttribute=function(c){return this.removeAttributeNS(null,c)},l.prototype.hasAttribute=function(c){return this.hasAttributeNS(null,c)},l.prototype.removeEventListener=s,l.prototype.addEventListener=i,l.prototype.dispatchEvent=r,l.prototype.focus=function(){},l.prototype.toString=function(){return a(this)},l.prototype.getElementsByClassName=function(c){var u=c.split(" "),f=[];return n(this,function(d){if(d.nodeType===1){var h=d.className||"",p=h.split(" ");u.every(function(m){return p.indexOf(m)!==-1})&&f.push(d)}}),f},l.prototype.getElementsByTagName=function(c){c=c.toLowerCase();var u=[];return n(this.childNodes,function(f){f.nodeType===1&&(c==="*"||f.tagName.toLowerCase()===c)&&u.push(f)}),u},l.prototype.contains=function(c){return n(this,function(u){return c===u})||!1}}),wY=ti(function(t,e){ql();var n=DM();e.exports=r;function r(i){if(!Vl(this,r))return new r;this.childNodes=[],this.parentNode=null,this.ownerDocument=i||null}r.prototype.type="DocumentFragment",r.prototype.nodeType=11,r.prototype.nodeName="#document-fragment",r.prototype.appendChild=n.prototype.appendChild,r.prototype.replaceChild=n.prototype.replaceChild,r.prototype.removeChild=n.prototype.removeChild,r.prototype.toString=function(){return this.childNodes.map(function(i){return String(i)}).join("")}}),xY=ti(function(t,e){e.exports=n;function n(r){}n.prototype.initEvent=function(r,i,s){this.type=r,this.bubbles=i,this.cancelable=s},n.prototype.preventDefault=function(){}}),AY=ti(function(t,e){ql();var n=CM(),r=bY(),i=TY(),s=DM(),a=wY(),o=xY(),l=IM(),c=kM(),u=PM();e.exports=f;function f(){if(!Vl(this,f))return new f;this.head=this.createElement("head"),this.body=this.createElement("body"),this.documentElement=this.createElement("html"),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body),this.childNodes=[this.documentElement],this.nodeType=9}var d=f.prototype;d.createTextNode=function(h){return new i(h,this)},d.createElementNS=function(h,p){var m=h===null?null:String(h);return new s(p,this,m)},d.createElement=function(h){return new s(h,this)},d.createDocumentFragment=function(){return new a(this)},d.createEvent=function(h){return new o(h)},d.createComment=function(h){return new r(h,this)},d.getElementById=function(h){h=String(h);var p=n(this.childNodes,function(m){if(String(m.id)===h)return m});return p||null},d.getElementsByClassName=s.prototype.getElementsByClassName,d.getElementsByTagName=s.prototype.getElementsByTagName,d.contains=s.prototype.contains,d.removeEventListener=u,d.addEventListener=c,d.dispatchEvent=l}),RY=ti(function(t,e){var n=AY();e.exports=new n}),LY=ti(function(t,e){var n=typeof global<"u"?global:typeof window<"u"?window:{},r=RY(),i;typeof document<"u"?i=document:(i=n["__GLOBAL_DOCUMENT_CACHE@4"],i||(i=n["__GLOBAL_DOCUMENT_CACHE@4"]=r)),e.exports=i});function CY(t){if(Array.isArray(t))return t}function IY(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,a,o;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(r.push(a.value),!(e&&r.length===e));i=!0);}catch(l){s=!0,o=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw o}}return r}}
vendor: 4,372 bytes, lines 87-89
87function kY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 88In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rb(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function OM(t,e){if(t){if(typeof t=="string")return rb(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rb(t,e)}}function ma(t,e){return CY(t)||IY(t,e)||OM(t,e)||kY()}var Xf=Fi(ns()),MR=Fi(ns()),PY=Fi(ns()),DY={now:function(){var t=PY.default.performance,e=t&&t.timing,n=e&&e.navigationStart,r=typeof n=="number"&&typeof t.now=="function"?n+t.now():Date.now();return Math.round(r)}},En=DY,wd=function(){var t,e,n;if(typeof((t=MR.default.crypto)===null||t===void 0?void 0:t.getRandomValues)=="function"){n=new Uint8Array(32),MR.default.crypto.getRandomValues(n);for(var r=0;r<32;r++)n[r]=n[r]%16}else{n=[];for(var i=0;i<32;i++)n[i]=Math.random()*16|0}var s=0;e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(l){var c=l==="x"?n[s]:n[s]&3|8;return s++,c.toString(16)});var a=En.now(),o=a==null?void 0:a.toString(16).substring(3);return o?e.substring(0,28)+o:e},MM=function(){return("000000"+(Math.random()*Math.pow(36,6)<<0).toString(36)).slice(-6)},Ui=function(t){if(t&&typeof t.nodeName<"u")return t.muxId||(t.muxId=MM()),t.muxId;var e;try{e=document.querySelector(t)}catch{}return e&&!e.muxId&&(e.muxId=t),(e==null?void 0:e.muxId)||t},Om=function(t){var e;t&&typeof t.nodeName<"u"?(e=t,t=Ui(e)):e=document.querySelector(t);var n=e&&e.nodeName?e.nodeName.toLowerCase():"";return[e,t,n]};function OY(t){if(Array.isArray(t))return rb(t)}function MY(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function NY(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 89In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hi(t){return OY(t)||MY(t)||OM(t)||NY()}var Xo={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},FY=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3,n,r,i,s,a,o=[console,t],l=(n=console.trace).bind.apply(n,Hi(o)),c=(r=console.info).bind.apply(r,Hi(o)),u=(i=console.debug).bind.apply(i,Hi(o)),f=(s=console.warn).bind.apply(s,Hi(o)),d=(a=console.error).bind.apply(a,Hi(o)),h=e;return{trace:function(){for(var p=arguments.length,m=new Array(p),g=0;g<p;g++)m[g]=arguments[g];if(!(h>Xo.TRACE))return l.apply(void 0,Hi(m))},debug:function(){for(var p=arguments.length,m=new Array(p),g=0;g<p;g++)m[g]=arguments[g];if(!(h>Xo.DEBUG))return u.apply(void 0,Hi(m))},info:function(){for(var p=arguments.length,m=new Array(p),g=0;g<p;g++)m[g]=arguments[g];if(!(h>Xo.INFO))return c.apply(void 0,Hi(m))},warn:function(){for(var p=arguments.length,m=new Array(p),g=0;g<p;g++)m[g]=arguments[g];if(!(h>Xo.WARN))return f.apply(void 0,Hi(m))},error:function(){for(var p=arguments.length,m=new Array(p),g=0;g<p;g++)m[g]=arguments[g];if(!(h>Xo.ERROR))return d.apply(void 0,Hi(m))},get level(){return h},set level(p){p!==this.level&&(h=p??e)}}},Pt=FY("[mux]"),xv=Fi(ns());function ib(){var t=xv.default.doNotTrack||xv.default.navigator&&xv.default.navigator.doNotTrack;return t==="1"}function je(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}ql();function Wn(t,e){if(!Vl(t,e))throw new TypeError("Cannot call a class as a function")}function $Y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $s(t,e,n){return e&&$Y(t.prototype,e),t}function pe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cu(t){return cu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},cu(t)}function BY(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=cu(t),t!==null););return t}function gp(t,e,n){return typeof Reflect<"u"&&Reflect.get?gp=Reflect.get:gp=function(r,i,s){var a=BY(r,i);if(a){var o=Object.getOwnPropertyDescriptor(a,i);return o.get?o.get.call(s||r):o.value}},gp(t,e,n||t)}
vendor: 2,048 bytes, line 89
89function sb(t,e){return sb=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},sb(t,e)}function UY(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),sb(t,e)}function HY(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}LM();function GY(t,e){return e&&(RM(e)==="object"||typeof e=="function")?e:je(t)}function jY(t){var e=HY();return function(){var n=cu(t),r;if(e){var i=cu(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return GY(this,r)}}var Ki=function(t){return xd(t)[0]},xd=function(t){if(typeof t!="string"||t==="")return["localhost"];var e=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,n=t.match(e)||[],r=n[4],i;return r&&(i=(r.match(/[^\.]+\.[^\.]+$/)||[])[0]),[r,i]},Av=Fi(ns()),VY={exists:function(){var t=Av.default.performance,e=t&&t.timing;return e!==void 0},domContentLoadedEventEnd:function(){var t=Av.default.performance,e=t&&t.timing;return e&&e.domContentLoadedEventEnd},navigationStart:function(){var t=Av.default.performance,e=t&&t.timing;return e&&e.navigationStart}},Mm=VY;function yn(t,e,n){n=n===void 0?1:n,t[e]=t[e]||0,t[e]+=n}function Nm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){pe(t,i,n[i])})}return t}function qY(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n}function bS(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):qY(Object(e)).forEac
vendor: 9,106 bytes, lines 89-98
89h(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}var KY=["x-cdn","content-type"],NM=["x-request-id","cf-ray","x-amz-cf-id","x-akamai-request-id"],WY=KY.concat(NM);function TS(t){t=t||"";var e={},n=t.trim().split(/[\r\n]+/);return n.forEach(function(r){if(r){var i=r.split(": "),s=i.shift();s&&(WY.indexOf(s.toLowerCase())>=0||s.toLowerCase().indexOf("x-litix-")===0)&&(e[s]=i.join(": "))}}),e}function Fm(t){if(t){var e=NM.find(function(n){return t[n]!==void 0});return e?t[e]:void 0}}var zY=function(t){var e={};for(var n in t){var r=t[n],i=r["DATA-ID"].search("io.litix.data.");if(i!==-1){var s=r["DATA-ID"].replace("io.litix.data.","");e[s]=r.VALUE}}return e},FM=zY,Ph=function(t){if(!t)return{};var e=Mm.navigationStart(),n=t.loading,r=n?n.start:t.trequest,i=n?n.first:t.tfirst,s=n?n.end:t.tload;return{bytesLoaded:t.total,requestStart:Math.round(e+r),responseStart:Math.round(e+i),responseEnd:Math.round(e+s)}},zu=function(t){if(!(!t||typeof t.getAllResponseHeaders!="function"))return TS(t.getAllResponseHeaders())},YY=function(t,e,n){var r=arguments.length>4?arguments[4]:void 0,i=t.log,s=t.utils.secondsToMs,a=function(g){var _=parseInt(r.version),v;return _===1&&g.programDateTime!==null&&(v=g.programDateTime),_===0&&g.pdt!==null&&(v=g.pdt),v};if(!Mm.exists()){i.warn("performance timing not supported. Not tracking HLS.js.");return}var o=function(g,_){return t.emit(e,g,_)},l=function(g,_){var v=_.levels,y=_.audioTracks,E=_.url,b=_.stats,T=_.networkDetails,S=_.sessionData,A={},w={};v.forEach(function(U,H){A[H]={width:U.width,height:U.height,bitrate:U.bitrate,attrs:U.attrs}}),y.forEach(function(U,H){w[H]={name:U.name,language:U.lang,bitrate:U.bitrate}});var x=Ph(b),L=x.bytesLoaded,R=x.requestStart,k=x.responseStart,F=x.responseEnd;o("requestcompleted",bS(Nm({},FM(S)),{request_event_type:g,request_bytes_loaded:L,request_start:R,request_response_start:k,request_response_end:F,request_type:"manifest",request_hostname:Ki(E),request_response_headers:zu(T),request_rendition_lists:{media:A,audio:w,video:{}}}))};n.on(r.Events.MANIFEST_LOADED,l);var c=function(g,_){var v=_.details,y=_.level,E=_.networkDetails,b=_.stats,T=Ph(b),S=T.bytesLoaded,A=T.requestStart,w=T.responseStart,x=T.responseEnd,L=v.fragments[v.fragments.length-1],R=a(L)+s(L.duration);o("requestcompleted",{request_event_type:g,request_bytes_loaded:S,request_start:A,request_response_start:w,request_response_end:x,request_current_level:y,request_type:"manifest",request_hostname:Ki(v.url),request_response_headers:zu(E),video_holdback:v.holdBack&&s(v.holdBack),video_part_holdback:v.partHoldBack&&s(v.partHoldBack),video_part_target_duration:v.partTarget&&s(v.partTarget),video_target_duration:v.targetduration&&s(v.targetduration),video_source_is_live:v.live,player_manifest_newest_program_time:isNaN(R)?void 0:R})};n.on(r.Events.LEVEL_LOADED,c);var u=function(g,_){var v=_.details,y=_.networkDetails,E=_.stats,b=Ph(E),T=b.bytesLoaded,S=b.requestStart,A=b.responseStart,w=b.responseEnd;o("requestcompleted",{request_event_type:g,request_bytes_loaded:T,request_start:S,request_response_start:A,request_response_end:w,request_type:"manifest",request_hostname:Ki(v.url),request_response_headers:zu(y)})};n.on(r.Events.AUDIO_TRACK_LOADED,u);var f=function(g,_){var v=_.stats,y=_.networkDetails,E=_.frag;v=v||E.stats;var b=Ph(v),T=b.bytesLoaded,S=b.requestStart,A=b.responseStart,w=b.responseEnd,x=y?zu(y):void 0,L={request_event_type:g,request_bytes_loaded:T,request_start:S,request_response_start:A,request_response_end:w,request_hostname:y?Ki(y.responseURL):void 0,request_id:x?Fm(x):void 0,request_response_headers:x,request_media_duration:E.duration,request_url:y==null?void 0:y.responseURL};E.type==="main"?(L.request_type="media",L.request_current_level=E.level,L.request_video_width=(n.levels[E.level]||{}).width,L.request_video_height=(n.levels[E.level]||{}).height,L.request_labeled_bitrate=(n.levels[E.level]||{}).bitrate):L.request_type=E.type,o("requestcompleted",L)};n.on(r.Events.FRAG_LOADED,f);var d=function(g,_){var v=_.frag,y=v.start,E=a(v),b={currentFragmentPDT:E,currentFragmentStart:s(y)};o("fragmentchange",b)};n.on(r.Events.FRAG_CHANGED,d);var h=function(g,_){var v=_.type,y=_.details,E=_.response,b=_.fatal,T=_.frag,S=_.networkDetails,A=(T==null?void 0:T.url)||_.url||"",w=S?zu(S):void 0;if((y===r.ErrorDetails.MANIFEST_LOAD_ERROR||y===r.ErrorDetails.MANIFEST_LOAD_TIMEOUT||y===r.ErrorDetails.FRAG_LOAD_ERROR||y===r.ErrorDetails.FRAG_LOAD_TIMEOUT||y===r.ErrorDetails.LEVEL_LOAD_ERROR||y===r.ErrorDetails.LEVEL_LOAD_TIMEOUT||y===r.ErrorDetails.AUDIO_TRACK_LOAD_ERROR||y===r.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT||y===r.ErrorDetails.SUBTITLE_LOAD_ERROR||y===r.ErrorDetails.SUBTITLE_LOAD_TIMEOUT||y===r.ErrorDetails.KEY_LOAD_ERROR||y===r.ErrorDetails.KEY_LOAD_TIMEOUT)&&o("requestfailed",{request_error:y,request_url:A,request_hostname:Ki(A),request_id:w?Fm(w):void 0,request_type:y===r.ErrorDetails.FRAG_LOAD_ERROR||y===r.ErrorDetails.FRAG_LOAD_TIMEOUT?"media":y===r.ErrorDetails.AUDIO_TRACK_LOAD_ERROR||y===r.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT?"audio":y===r.ErrorDetails.SUBTITLE_LOAD_ERROR||y===r.ErrorDetails.SUBTITLE_LOAD_TIMEOUT?"subtitle":y===r.ErrorDetails.KEY_LOAD_ERROR||y===r.ErrorDetails.KEY_LOAD_TIMEOUT?"encryption":"manifest",request_error_code:E==null?void 0:E.code,request_error_text:E==null?void 0:E.text}),b){var x,L="".concat(A?"url: ".concat(A,` 90`):"")+"".concat(E&&(E.code||E.text)?"response: ".concat(E.code,", ").concat(E.text,` 91`):"")+"".concat(_.reason?"failure reason: ".concat(_.reason,` 92`):"")+"".concat(_.level?"level: ".concat(_.level,` 93`):"")+"".concat(_.parent?"parent stream controller: ".concat(_.parent,` 94`):"")+"".concat(_.buffer?"buffer length: ".concat(_.buffer,` 95`):"")+"".concat(_.error?"error: ".concat(_.error,` 96`):"")+"".concat(_.event?"event: ".concat(_.event,` 97`):"")+"".concat(_.err?"error message: ".concat((x=_.err)===null||x===void 0?void 0:x.message,` 98`):"");o("error",{player_error_code:v,player_error_message:y,player_error_context:L})}};n.on(r.Events.ERROR,h);var p=function(g,_){var v=_.frag,y=v&&v._url||"";o("requestcanceled",{request_event_type:g,request_url:y,request_type:"media",request_hostname:Ki(y)})};n.on(r.Events.FRAG_LOAD_EMERGENCY_ABORTED,p);var m=function(g,_){var v=_.level,y=n.levels[v];if(y&&y.attrs&&y.attrs.BANDWIDTH){var E=y.attrs.BANDWIDTH,b,T=parseFloat(y.attrs["FRAME-RATE"]);isNaN(T)||(b=T),E?o("renditionchange",{video_source_fps:b,video_source_bitrate:E,video_source_width:y.width,video_source_height:y.height,video_source_rendition_name:y.name,video_source_codec:y==null?void 0:y.videoCodec}):i.warn("missing BANDWIDTH from HLS manifest parsed by HLS.js")}};n.on(r.Events.LEVEL_SWITCHED,m),n._stopMuxMonitor=function(){n.off(r.Events.MANIFEST_LOADED,l),n.off(r.Events.LEVEL_LOADED,c),n.off(r.Events.AUDIO_TRACK_LOADED,u),n.off(r.Events.FRAG_LOADED,f),n.off(r.Events.FRAG_CHANGED,d),n.off(r.Events.ERROR,h),n.off(r.Events.FRAG_LOAD_EMERGENCY_ABORTED,p),n.off(r.Events.LEVEL_SWITCHED,m),n.off(r.Events.DESTROYING,n._stopMuxMonitor),delete n._stopMuxMonitor},n.on(r.Events.DESTROYING,n._stopMuxMonitor)},XY=function(t){t&&typeof t._stopMuxMonitor=="function"&&t._stopMuxMonitor()},NR=function(t,e){if(!t||!t.requestEndDate)return{};var n=Ki(t.url),r=t.url,i=t.bytesLoaded,s=new Date(t.requestStartDate).getTime(),a=new Date(t.firstByteDate).getTime(),o=new Date(t.requestEndDate).getTime(),l=isNaN(t.duration)?0:t.duration,c=typeof e.getMetricsFor=="function"?e.getMetricsFor(t.mediaType).HttpList:e.getDashMetrics().getHttpRequests(t.mediaType),u;c.length>0&&(u=TS(c[c.length-1]._responseHeaders||""));var f=u?Fm(u):void 0;return{requestStart:s,requestResponseStart:a,requestResponseEnd:o,requestBytesLoaded:i,requestResponseHeaders:u,requestMediaDuration:l,requestHostname:n,requestUrl:r,requestId:f}},JY=function(t,e){var n=e.getQualityFor(t),r=e.getCurrentTrackFor(t).bitrateList;return r?{currentLevel:n,renditionWidth:r[n].width||null,renditionHeight:r[n].height||null,renditionBitrate:r[n].bandwidth}:{}},QY=function(t){var e;return(e=t.match(/.*codecs\*?="(.*)"/))===null||e===void 0?void 0:e[1]},ZY=function(t){try{var e,n,r=(n=t.getVersion)===null||n===void 0||(e=n.call(t))===null||e===void 0?void 0:e.split(".").map(function(i){return parseInt(i)})[0];return r}catch{return!1}},e5=function(t,e,n){var r=t.log;if(!n||!n.on){r.warn("Invalid dash.js player reference. Monitoring blocked.");return}var i=ZY(n),s=function(v,y){return t.emit(e,v,y)},a=function(v){var y=v.type,E=v.data,b=(E||{}).url;s("requestcompleted",{request_event_type:y,request_start:0,request_response_start:0,request_response_end:0,request_bytes_loaded:-1,request_type:"manifest",request_hostname:Ki(b),request_url:b})};n.on("manifestLoaded",a);var o={},l=function(v){if(typeof v.getRequests!="function")return null;var y=v.getRequests({state:"executed"});return y.length===0?null:y[y.length-1]},c=function(v){var y=v.type,E=v.fragmentModel,b=v.chunk,T=l(E);u({type:y,request:T,chunk:b})},u=function(v){var y=v.type,E=v.chunk,b=v.request,T=(E||{}).mediaInfo,S=T||{},A=S.type,w=S.bitrateList;w=w||[];var x={};
vendor: 23,932 bytes, lines 98-100
98w.forEach(function(P,ae){x[ae]={},x[ae].width=P.width,x[ae].height=P.height,x[ae].bitrate=P.bandwidth,x[ae].attrs={}}),A==="video"?o.video=x:A==="audio"?o.audio=x:o.media=x;var L=NR(b,n),R=L.requestStart,k=L.requestResponseStart,F=L.requestResponseEnd,U=L.requestResponseHeaders,H=L.requestMediaDuration,M=L.requestHostname,O=L.requestUrl,q=L.requestId;s("requestcompleted",{request_event_type:y,request_start:R,request_response_start:k,request_response_end:F,request_bytes_loaded:-1,request_type:A+"_init",request_response_headers:U,request_hostname:M,request_id:q,request_url:O,request_media_duration:H,request_rendition_lists:o})};i>=4?n.on("initFragmentLoaded",u):n.on("initFragmentLoaded",c);var f=function(v){var y=v.type,E=v.fragmentModel,b=v.chunk,T=l(E);d({type:y,request:T,chunk:b})},d=function(v){var y=v.type,E=v.chunk,b=v.request,T=E||{},S=T.mediaInfo,A=T.start,w=S||{},x=w.type,L=NR(b,n),R=L.requestStart,k=L.requestResponseStart,F=L.requestResponseEnd,U=L.requestBytesLoaded,H=L.requestResponseHeaders,M=L.requestMediaDuration,O=L.requestHostname,q=L.requestUrl,P=L.requestId,ae=JY(x,n),ce=ae.currentLevel,ye=ae.renditionWidth,ve=ae.renditionHeight,z=ae.renditionBitrate;s("requestcompleted",{request_event_type:y,request_start:R,request_response_start:k,request_response_end:F,request_bytes_loaded:U,request_type:x,request_response_headers:H,request_hostname:O,request_id:P,request_url:q,request_media_start_time:A,request_media_duration:M,request_current_level:ce,request_labeled_bitrate:z,request_video_width:ye,request_video_height:ve})};i>=4?n.on("mediaFragmentLoaded",d):n.on("mediaFragmentLoaded",f);var h={video:void 0,audio:void 0,totalBitrate:void 0},p=function(){if(h.video&&typeof h.video.bitrate=="number"){if(!(h.video.width&&h.video.height)){r.warn("have bitrate info for video but missing width/height");return}var v=h.video.bitrate;if(h.audio&&typeof h.audio.bitrate=="number"&&(v+=h.audio.bitrate),v!==h.totalBitrate)return h.totalBitrate=v,{video_source_bitrate:v,video_source_height:h.video.height,video_source_width:h.video.width,video_source_codec:QY(h.video.codec)}}},m=function(v,y,E){if(typeof v.newQuality!="number"){r.warn("missing evt.newQuality in qualityChangeRendered event",v);return}var b=v.mediaType;if(b==="audio"||b==="video"){var T=n.getBitrateInfoListFor(b).find(function(A){var w=A.qualityIndex;return w===v.newQuality});if(!(T&&typeof T.bitrate=="number")){r.warn("missing bitrate info for ".concat(b));return}h[b]=bS(Nm({},T),{codec:n.getCurrentTrackFor(b).codec});var S=p();S&&s("renditionchange",S)}};n.on("qualityChangeRendered",m);var g=function(v){var y=v.request,E=v.mediaType;y=y||{},s("requestcanceled",{request_event_type:y.type+"_"+y.action,request_url:y.url,request_type:E,request_hostname:Ki(y.url)})};n.on("fragmentLoadingAbandoned",g);var _=function(v){var y=v.error,E,b,T=(y==null||(E=y.data)===null||E===void 0?void 0:E.request)||{},S=(y==null||(b=y.data)===null||b===void 0?void 0:b.response)||{};(y==null?void 0:y.code)===27&&s("requestfailed",{request_error:T.type+"_"+T.action,request_url:T.url,request_hostname:Ki(T.url),request_type:T.mediaType,request_error_code:S.status,request_error_text:S.statusText});var A="".concat(T!=null&&T.url?"url: ".concat(T.url,` 99`):"")+"".concat(S!=null&&S.status||S!=null&&S.statusText?"response: ".concat(S==null?void 0:S.status,", ").concat(S==null?void 0:S.statusText,` 100`):"");s("error",{player_error_code:y==null?void 0:y.code,player_error_message:y==null?void 0:y.message,player_error_context:A})};n.on("error",_),n._stopMuxMonitor=function(){n.off("manifestLoaded",a),n.off("initFragmentLoaded",u),n.off("mediaFragmentLoaded",d),n.off("qualityChangeRendered",m),n.off("error",_),n.off("fragmentLoadingAbandoned",g),delete n._stopMuxMonitor}},t5=function(t){t&&typeof t._stopMuxMonitor=="function"&&t._stopMuxMonitor()},FR=0,n5=function(){function t(){Wn(this,t),pe(this,"_listeners",void 0)}return $s(t,[{key:"on",value:function(e,n,r){return n._eventEmitterGuid=n._eventEmitterGuid||++FR,this._listeners=this._listeners||{},this._listeners[e]=this._listeners[e]||[],r&&(n=n.bind(r)),this._listeners[e].push(n),n}},{key:"off",value:function(e,n){var r=this._listeners&&this._listeners[e];r&&r.forEach(function(i,s){i._eventEmitterGuid===n._eventEmitterGuid&&r.splice(s,1)})}},{key:"one",value:function(e,n,r){var i=this;n._eventEmitterGuid=n._eventEmitterGuid||++FR;var s=function(){i.off(e,s),n.apply(r||this,arguments)};s._eventEmitterGuid=n._eventEmitterGuid,this.on(e,s)}},{key:"emit",value:function(e,n){var r=this;if(this._listeners){n=n||{};var i=this._listeners["before*"]||[],s=this._listeners[e]||[],a=this._listeners["after"+e]||[],o=function(l,c){l=l.slice(),l.forEach(function(u){u.call(r,{type:e},c)})};o(i,n),o(s,n),o(a,n)}}}]),t}(),r5=n5,Rv=Fi(ns()),i5=function(){function t(e){var n=this;Wn(this,t),pe(this,"_playbackHeartbeatInterval",void 0),pe(this,"_playheadShouldBeProgressing",void 0),pe(this,"pm",void 0),this.pm=e,this._playbackHeartbeatInterval=null,this._playheadShouldBeProgressing=!1,e.on("playing",function(){n._playheadShouldBeProgressing=!0}),e.on("play",this._startPlaybackHeartbeatInterval.bind(this)),e.on("playing",this._startPlaybackHeartbeatInterval.bind(this)),e.on("adbreakstart",this._startPlaybackHeartbeatInterval.bind(this)),e.on("adplay",this._startPlaybackHeartbeatInterval.bind(this)),e.on("adplaying",this._startPlaybackHeartbeatInterval.bind(this)),e.on("devicewake",this._startPlaybackHeartbeatInterval.bind(this)),e.on("viewstart",this._startPlaybackHeartbeatInterval.bind(this)),e.on("rebufferstart",this._startPlaybackHeartbeatInterval.bind(this)),e.on("pause",this._stopPlaybackHeartbeatInterval.bind(this)),e.on("ended",this._stopPlaybackHeartbeatInterval.bind(this)),e.on("viewend",this._stopPlaybackHeartbeatInterval.bind(this)),e.on("error",this._stopPlaybackHeartbeatInterval.bind(this)),e.on("aderror",this._stopPlaybackHeartbeatInterval.bind(this)),e.on("adpause",this._stopPlaybackHeartbeatInterval.bind(this)),e.on("adended",this._stopPlaybackHeartbeatInterval.bind(this)),e.on("adbreakend",this._stopPlaybackHeartbeatInterval.bind(this)),e.on("seeked",function(){e.data.player_is_paused?n._stopPlaybackHeartbeatInterval():n._startPlaybackHeartbeatInterval()}),e.on("timeupdate",function(){n._playbackHeartbeatInterval!==null&&e.emit("playbackheartbeat")}),e.on("devicesleep",function(r,i){n._playbackHeartbeatInterval!==null&&(Rv.default.clearInterval(n._playbackHeartbeatInterval),e.emit("playbackheartbeatend",{viewer_time:i.viewer_time}),n._playbackHeartbeatInterval=null)})}return $s(t,[{key:"_startPlaybackHeartbeatInterval",value:function(){var e=this;this._playbackHeartbeatInterval===null&&(this.pm.emit("playbackheartbeat"),this._playbackHeartbeatInterval=Rv.default.setInterval(function(){e.pm.emit("playbackheartbeat")},this.pm.playbackHeartbeatTime))}},{key:"_stopPlaybackHeartbeatInterval",value:function(){this._playheadShouldBeProgressing=!1,this._playbackHeartbeatInterval!==null&&(Rv.default.clearInterval(this._playbackHeartbeatInterval),this.pm.emit("playbackheartbeatend"),this._playbackHeartbeatInterval=null)}}]),t}(),s5=i5,a5=function t(e){var n=this;Wn(this,t),pe(this,"viewErrored",void 0),e.on("viewinit",function(){n.viewErrored=!1}),e.on("error",function(r,i){try{var s=e.errorTranslator({player_error_code:i.player_error_code,player_error_message:i.player_error_message,player_error_context:i.player_error_context,player_error_severity:i.player_error_severity,player_error_business_exception:i.player_error_business_exception});s&&(e.data.player_error_code=s.player_error_code||i.player_error_code,e.data.player_error_message=s.player_error_message||i.player_error_message,e.data.player_error_context=s.player_error_context||i.player_error_context,e.data.player_error_severity=s.player_error_severity||i.player_error_severity,e.data.player_error_business_exception=s.player_error_business_exception||i.player_error_business_exception,n.viewErrored=!0)}catch(a){e.mux.log.warn("Exception in error translator callback.",a),n.viewErrored=!0}}),e.on("aftererror",function(){var r,i,s,a,o;(r=e.data)===null||r===void 0||delete r.player_error_code,(i=e.data)===null||i===void 0||delete i.player_error_message,(s=e.data)===null||s===void 0||delete s.player_error_context,(a=e.data)===null||a===void 0||delete a.player_error_severity,(o=e.data)===null||o===void 0||delete o.player_error_business_exception})},o5=a5,l5=function(){function t(e){Wn(this,t),pe(this,"_watchTimeTrackerLastCheckedTime",void 0),pe(this,"pm",void 0),this.pm=e,this._watchTimeTrackerLastCheckedTime=null,e.on("playbackheartbeat",this._updateWatchTime.bind(this)),e.on("playbackheartbeatend",this._clearWatchTimeState.bind(this))}return $s(t,[{key:"_updateWatchTime",value:function(e,n){var r=n.viewer_time;this._watchTimeTrackerLastCheckedTime===null&&(this._watchTimeTrackerLastCheckedTime=r),yn(this.pm.data,"view_watch_time",r-this._watchTimeTrackerLastCheckedTime),this._watchTimeTrackerLastCheckedTime=r}},{key:"_clearWatchTimeState",value:function(e,n){this._updateWatchTime(e,n),this._watchTimeTrackerLastCheckedTime=null}}]),t}(),c5=l5,u5=function(){function t(e){var n=this;Wn(this,t),pe(this,"_playbackTimeTrackerLastPlayheadPosition",void 0),pe(this,"_lastTime",void 0),pe(this,"_isAdPlaying",void 0),pe(this,"_callbackUpdatePlaybackTime",void 0),pe(this,"pm",void 0),this.pm=e,this._playbackTimeTrackerLastPlayheadPosition=-1,this._lastTime=En.now(),this._isAdPlaying=!1,this._callbackUpdatePlaybackTime=null;var r=this._startPlaybackTimeTracking.bind(this);e.on("playing",r),e.on("adplaying",r),e.on("seeked",r);var i=this._stopPlaybackTimeTracking.bind(this);e.on("playbackheartbeatend",i),e.on("seeking",i),e.on("adplaying",function(){n._isAdPlaying=!0}),e.on("adended",function(){n._isAdPlaying=!1}),e.on("adpause",function(){n._isAdPlaying=!1}),e.on("adbreakstart",function(){n._isAdPlaying=!1}),e.on("adbreakend",function(){n._isAdPlaying=!1}),e.on("adplay",function(){n._isAdPlaying=!1}),e.on("viewinit",function(){n._playbackTimeTrackerLastPlayheadPosition=-1,n._lastTime=En.now(),n._isAdPlaying=!1,n._callbackUpdatePlaybackTime=null})}return $s(t,[{key:"_startPlaybackTimeTracking",value:function(){this._callbackUpdatePlaybackTime===null&&(this._callbackUpdatePlaybackTime=this._updatePlaybackTime.bind(this),this._playbackTimeTrackerLastPlayheadPosition=this.pm.data.player_playhead_time,this.pm.on("playbackheartbeat",this._callbackUpdatePlaybackTime))}},{key:"_stopPlaybackTimeTracking",value:function(){this._callbackUpdatePlaybackTime&&(this._updatePlaybackTime(),this.pm.off("playbackheartbeat",this._callbackUpdatePlaybackTime),this._callbackUpdatePlaybackTime=null,this._playbackTimeTrackerLastPlayheadPosition=-1)}},{key:"_updatePlaybackTime",value:function(){var e=this.pm.data.player_playhead_time,n=En.now(),r=-1;this._playbackTimeTrackerLastPlayheadPosition>=0&&e>this._playbackTimeTrackerLastPlayheadPosition?r=e-this._playbackTimeTrackerLastPlayheadPosition:this._isAdPlaying&&(r=n-this._lastTime),r>0&&r<=1e3&&yn(this.pm.data,"view_content_playback_time",r),this._playbackTimeTrackerLastPlayheadPosition=e,this._lastTime=n}}]),t}(),f5=u5,d5=function(){function t(e){Wn(this,t),pe(this,"pm",void 0),this.pm=e;var n=this._updatePlayheadTime.bind(this);e.on("playbackheartbeat",n),e.on("playbackheartbeatend",n),e.on("timeupdate",n),e.on("destroy",function(){e.off("timeupdate",n)})}return $s(t,[{key:"_updateMaxPlayheadPosition",value:function(){this.pm.data.view_max_playhead_position=typeof this.pm.data.view_max_playhead_position>"u"?this.pm.data.player_playhead_time:Math.max(this.pm.data.view_max_playhead_position,this.pm.data.player_playhead_time)}},{key:"_updatePlayheadTime",value:function(e,n){var r=this,i=function(){r.pm.currentFragmentPDT&&r.pm.currentFragmentStart&&(r.pm.data.player_program_time=r.pm.currentFragmentPDT+r.pm.data.player_playhead_time-r.pm.currentFragmentStart)};if(n&&n.player_playhead_time)this.pm.data.player_playhead_time=n.player_playhead_time,i(),this._updateMaxPlayheadPosition();else if(this.pm.getPlayheadTime){var s=this.pm.getPlayheadTime();typeof s<"u"&&(this.pm.data.player_playhead_time=s,i(),this._updateMaxPlayheadPosition())}}}]),t}(),h5=d5,$R=5*60*1e3,p5=function t(e){if(Wn(this,t),!e.disableRebufferTracking){var n,r=function(s,a){i(a),n=void 0},i=function(s){if(n){var a=s.viewer_time-n;yn(e.data,"view_rebuffer_duration",a),n=s.viewer_time,e.data.view_rebuffer_duration>$R&&(e.emit("viewend"),e.send("viewend"),e.mux.log.warn("Ending view after rebuffering for longer than ".concat($R,"ms, future events will be ignored unless a programchange or videochange occurs.")))}e.data.view_watch_time>=0&&e.data.view_rebuffer_count>0&&(e.data.view_rebuffer_frequency=e.data.view_rebuffer_count/e.data.view_watch_time,e.data.view_rebuffer_percentage=e.data.view_rebuffer_duration/e.data.view_watch_time)};e.on("playbackheartbeat",function(s,a){return i(a)}),e.on("rebufferstart",function(s,a){n||(yn(e.data,"view_rebuffer_count",1),n=a.viewer_time,e.one("rebufferend",r))}),e.on("viewinit",function(){n=void 0,e.off("rebufferend",r)})}},m5=p5,g5=function(){function t(e){var n=this;Wn(this,t),pe(this,"_lastCheckedTime",void 0),pe(this,"_lastPlayheadTime",void 0),pe(this,"_lastPlayheadTimeUpdatedTime",void 0),pe(this,"_rebuffering",void 0),pe(this,"pm",void 0),this.pm=e,!(e.disableRebufferTracking||e.disablePlayheadRebufferTracking)&&(this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null,e.on("playbackheartbeat",this._checkIfRebuffering.bind(this)),e.on("playbackheartbeatend",this._cleanupRebufferTracker.bind(this)),e.on("seeking",function(){n._cleanupRebufferTracker(null,{viewer_time:En.now()})}))}return $s(t,[{key:"_checkIfRebuffering",value:function(e,n){if(this.pm.seekingTracker.isSeeking||this.pm.adTracker.isAdBreak||!this.pm.playbackHeartbeat._playheadShouldBeProgressing){this._cleanupRebufferTracker(e,n);return}if(this._lastCheckedTime===null){this._prepareRebufferTrackerState(n.viewer_time);return}if(this._lastPlayheadTime!==this.pm.data.player_playhead_time){this._cleanupRebufferTracker(e,n,!0);return}var r=n.viewer_time-this._lastPlayheadTimeUpdatedTime;typeof this.pm.sustainedRebufferThreshold=="number"&&r>=this.pm.sustainedRebufferThreshold&&(this._rebuffering||(this._rebuffering=!0,this.pm.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}))),this._lastCheckedTime=n.viewer_time}},{key:"_clearRebufferTrackerState",value:function(){this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null}},{key:"_prepareRebufferTrackerState",value:function(e){this._lastCheckedTime=e,this._lastPlayheadTime=this.pm.data.player_playhead_time,this._lastPlayheadTimeUpdatedTime=e}},{key:"_cleanupRebufferTracker",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this._rebuffering)this._rebuffering=!1,this.pm.emit("rebufferend",{viewer_time:n.viewer_time});else{if(this._lastCheckedTime===null)return;var i=this.pm.data.player_playhead_time-this._lastPlayheadTime,s=n.viewer_time-this._lastPlayheadTimeUpdatedTime;typeof this.pm.minimumRebufferDuration=="number"&&i>0&&s-i>this.pm.minimumRebufferDuration&&(this._lastCheckedTime=null,this.pm.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}),this.pm.emit("rebufferend",{viewer_time:this._lastPlayheadTimeUpdatedTime+s-i}))}r?this._prepareRebufferTrackerState(n.viewer_time):this._clearRebufferTrackerState()}}]),t}(),y5=g5,v5=function(){function t(e){var n=this;Wn(this,t),pe(this,"NAVIGATION_START",void 0),pe(this,"pm",void 0),this.pm=e,e.on("viewinit",function(){var r=e.data,i=r.view_id;if(!r.view_program_changed){var s=function(a,o){var l=o.viewer_time;(a.type==="playing"&&typeof e.data.view_time_to_first_frame>"u"||a.type==="adplaying"&&(typeof e.data.view_time_to_first_frame>"u"||n._inPrerollPosition()))&&n.calculateTimeToFirstFrame(l||En.now(),i)};e.one("playing",s),e.one("adplaying",s),e.one("viewend",function(){e.off("playing",s),e.off("adplaying",s)})}})}return $s(t,[{key:"_inPrerollPosition",value:function(){return typeof this.pm.data.view_content_playback_time>"u"||this.pm.data.view_content_playback_time<=1e3}},{key:"calculateTimeToFirstFrame",value:function(e,n){n===this.pm.data.view_id&&(this.pm.watchTimeTracker._updateWatchTime(null,{viewer_time:e}),this.pm.data.view_time_to_first_frame=this.pm.data.view_watch_time,(this.pm.data.player_autoplay_on||this.pm.data.video_is_autoplay)&&this.NAVIGATION_START&&(this.pm.data.view_aggregate_startup_time=this.pm.data.view_start+this.pm.data.view_watch_time-this.NAVIGATION_START))}}]),t}(),_5=v5,E5=function t(e){var n=this;Wn(this,t),pe(this,"_lastPlayerHeight",void 0),pe(this,"_lastPlayerWidth",void 0),pe(this,"_lastPlayheadPosition",void 0),pe(this,"_lastSourceHeight",void 0),pe(this,"_lastSourceWidth",void 0),e.on("viewinit",function(){n._lastPlayheadPosition=-1});var r=["pause","rebufferstart","seeking","error","adbreakstart","hb"],i=["playing","hb"];r.forEach(function(s){e.on(s,function(){if(n._lastPlayheadPosition>=0&&e.data.player_playhead_time>=0&&n._lastPlayerWidth>=0&&n._lastSourceWidth>0&&n._lastPlayerHeight>=0&&n._lastSourceHeight>0){var a=e.data.player_playhead_time-n._lastPlayheadPosition;if(a<0){n._lastPlayheadPosition=-1;return}var o=Math.min(n._lastPlayerWidth/n._lastSourceWidth,n._lastPlayerHeight/n._lastSourceHeight),l=Math.max(0,o-1),c=Math.max(0,1-o);e.data.view_max_upscale_percentage=Math.max(e.data.view_max_upscale_percentage||0,l),e.data.view_max_downscale_percentage=Math.max(e.data.view_max_downscale_percentage||0,c),yn(e.data,"view_total_content_playback_time",a),yn(e.data,"view_total_upscaling",l*a),yn(e.data,"view_total_downscaling",c*a)}n._lastPlayheadPosition=-1})}),i.forEach(function(s){e.on(s,function(){n._lastPlayheadPosition=e.data.player_playhead_time,n._lastPlayerWidth=e.data.player_width,n._lastPlayerHeight=e.data.player_height,n._lastSourceWidth=e.data.video_source_width,n._lastSourceHeight=e.data.video_source_height})})},b5=E5,T5=2e3,S5=function t(e){var n=this;Wn(this,t),pe(this,"isSeeking",void 0),this.isSeeking=!1;var r=-1,i=function(){var s=En.now(),a=(e.data.viewer_time||s)-(r||s);yn(e.data,"view_seek_duration",a),e.data.view_max_seek_time=Math.max(e.data.view_max_seek_time||0,a),n.isSeeking=!1,r=-1};e.on("seeking",function(s,a){if(Object.assign(e.data,a),n.isSeeking&&a.viewer_time-r<=T5){r=a.viewer_time;return}n.isSeeking&&i(),n.isSeeking=!0,r=a.viewer_time,yn(e.data,"view_seek_count",1),e.send("seeking")}),e.on("seeked",function(){i()}),e.on("viewend",function(){n.isSeeking&&(i(),e.send("seeked")),n.isSeeking=!1,r=-1})},w5=S5,BR=function(t,e){t.push(e),t.sort(function(n,r){return n.viewer_time-r.viewer_time})},x5=["adbreakstart","adrequest","adresponse","adplay","adplaying","adpause","adended","adbreakend","aderror","adclicked","adskipped"],A5=function(){function t(e){var n=this;Wn(this,t),pe(this,"_adHasPlayed",void 0),pe(this,"_adRequests",void 0),pe(this,"_adResponses",void 0),pe(this,"_currentAdRequestNumber",void 0),pe(this,"_currentAdResponseNumber",void 0),pe(this,"_prerollPlayTime",void 0),pe(this,"_wouldBeNewAdPlay",void 0),pe(this,"isAdBreak",void 0),pe(this,"pm",void 0),this.pm=e,e.on("viewinit",function(){n.isAdBreak=!1,n._currentAdRequestNumber=0,n._currentAdResponseNumber=0,n._adRequests=[],n._adResponses=[],n._adHasPlayed=!1,n._wouldBeNewAdPlay=!0,n._prerollPlayTime=void 0}),x5.forEach(function(i){return e.on(i,n._updateAdData.bind(n))});var r=function(){n.isAdBreak=!1};e.on("adbreakstart",function(){n.isAdBreak=!0}),e.on("play",r),e.on("playing",r),e.on("viewend",r),e.on("adrequest",function(i,s){s=Object.assign({ad_request_id:"generatedAdRequestId"+n._currentAdRequestNumber++},s),BR(n._adRequests,s),yn(e.data,"view_ad_request_count"),n.inPrerollPosition()&&(e.data.view_preroll_requested=!0,n._adHasPlayed||yn(e.data,"view_preroll_request_count"))}),e.on("adresponse",function(i,s){s=Object.assign({ad_request_id:"generatedAdRequestId"+n._currentAdResponseNumber++},s),BR(n._adResponses,s);var a=n.findAdRequest(s.ad_request_id);a&&yn(e.data,"view_ad_request_time",Math.max(0,s.viewer_time-a.viewer_time))}),e.on("adplay",function(i,s){n._adHasPlayed=!0,n._wouldBeNewAdPlay&&(n._wouldBeNewAdPlay=!1,yn(e.data,"view_ad_played_count")),n.inPrerollPosition()&&!e.data.view_preroll_played&&(e.data.view_preroll_played=!0,n._adRequests.length>0&&(e.data.view_preroll_request_time=Math.max(0,s.viewer_time-n._adRequests[0].viewer_time)),e.data.view_start&&(e.data.view_startup_preroll_request_time=Math.max(0,s.viewer_time-e.data.view_start)),n._prerollPlayTime=s.viewer_time)}),e.on("adplaying",function(i,s){n.inPrerollPosition()&&typeof e.data.view_preroll_load_time>"u"&&typeof n._prerollPlayTime<"u"&&(e.data.view_preroll_load_time=s.viewer_time-n._prerollPlayTime,e.data.view_startup_preroll_load_time=s.viewer_time-n._prerollPlayTime)}),e.on("adclicked",function(i,s){n._wouldBeNewAdPlay||yn(e.data,"view_ad_clicked_count")}),e.on("adskipped",function(i,s){n._wouldBeNewAdPlay||yn(e.data,"view_ad_skipped_count")}),e.on("adended",function(){n._wouldBeNewAdPlay=!0}),e.on("aderror",function(){n._wouldBeNewAdPlay=!0})}return $s(t,[{key:"inPrerollPosition",value:function(){return typeof this.pm.data.view_content_playback_time>"u"||this.pm.data.view_content_playback_time<=1e3}},{key:"findAdRequest",value:function(e){for(var n=0;n<this._adRequests.length;n++)if(this._adRequests[n].ad_request_id===e)return this._adRequests[n]}},{key:"_updateAdData",value:function(e,n){if(this.inPrerollPosition()){if(!this.pm.data.view_preroll_ad_tag_hostname&&n.ad_tag_url){var r=ma(xd(n.ad_tag_url),2),i=r[0],s=r[1];this.pm.data.view_preroll_ad_tag_domain=s,this.pm.data.view_preroll_ad_tag_hostname=i}if(!this.pm.data.view_preroll_ad_asset_hostname&&n.ad_asset_url){var a=ma(xd(n.ad_asset_url),2),o=a[0],l=a[1];this.pm.data.view_preroll_ad_asset_domain=l,this.pm.data.view_preroll_ad_asset_hostname=o}}this.pm.data.ad_asset_url=n==null?void 0:n.ad_asset_url,this.pm.data.ad_tag_url=n==null?void 0:n.ad_tag_url,this.pm.data.ad_creative_id=n==null?void 0:n.ad_creative_id,this.pm.data.ad_id=n==null?void 0:n.ad_id,this.pm.data.ad_universal_id=n==null?void 0:n.ad_universal_id}}]),t}(),R5=A5,UR=Fi(ns()),L5=function t(e){Wn(this,t);var n,r,i=function(){e.disableRebufferTracking||(yn(e.data,"view_waiting_rebuffer_count",1),n=En.now(),r=UR.default.setInterval(function(){if(n){var c=En.now();yn(e.data,"view_waiting_rebuffer_duration",c-n),n=c}},250))},s=function(){e.disableRebufferTracking||n&&(yn(e.data,"view_waiting_rebuffer_duration",En.now()-n),n=!1,UR.default.clearInterval(r))},a=!1,o=function(){a=!0},l=function(){a=!1,s()};e.on("waiting",function(){a&&i()}),e.on("playing",function(){s(),o()}),e.on("pause",l),e.on("seeking",l)},C5=L5,I5=function t(e){var n=this;Wn(this,t),pe(this,"lastWallClockTime",void 0);var r=function(){n.lastWallClockTime=En.now(),e.on("before*",i)},i=function(s){var a=En.now(),o=n.lastWallClockTime;n.lastWallClockTime=a,a-o>3e4&&(e.emit("devicesleep",{viewer_time:o}),Object.assign(e.data,{viewer_time:o}),e.send("devicesleep"),e.emit("devicewake",{viewer_time:a}),Object.assign(e.data,{viewer_time:a}),e.send("devicewake"))};e.one("playbackheartbeat",r),e.on("playbackheartbeatend",function(){e.off("before*",i),e.one("playbackheartbeat",r)})},k5=I5,Lv=Fi(ns()),$M=function(t){return t()}(function(){var t=function(){for(var n=0,r={};n<arguments.length;n++){var i=arguments[n];for(var s in i)r[s]=i[s]}return r};function e(n){function r(i,s,a){var o;if(typeof document<"u"){if(arguments.length>1){if(a=t({path:"/"},r.defaults,a),typeof a.expires=="number"){var l=new Date;l.setMilliseconds(l.getMilliseconds()+a.expires*864e5),a.expires=l}try{o=JSON.stringify(s),/^[\{\[]/.test(o)&&(s=o)}catch{}return n.write?s=n.write(s,i):s=encodeURIComponent(String(s)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decode
vendor: 4,510 bytes, line 100
100URIComponent),i=encodeURIComponent(String(i)),i=i.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),i=i.replace(/[\(\)]/g,escape),document.cookie=[i,"=",s,a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}i||(o={});for(var c=document.cookie?document.cookie.split("; "):[],u=/(%[0-9A-Z]{2})+/g,f=0;f<c.length;f++){var d=c[f].split("="),h=d.slice(1).join("=");h.charAt(0)==='"'&&(h=h.slice(1,-1));try{var p=d[0].replace(u,decodeURIComponent);if(h=n.read?n.read(h,p):n(h,p)||h.replace(u,decodeURIComponent),this.json)try{h=JSON.parse(h)}catch{}if(i===p){o=h;break}i||(o[p]=h)}catch{}}return o}}return r.set=r,r.get=function(i){return r.call(r,i)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(i,s){r(i,"",t(s,{expires:-1}))},r.withConverter=e,r}return e(function(){})}),BM="muxData",P5=function(t){return Object.entries(t).map(function(e){var n=ma(e,2),r=n[0],i=n[1];return"".concat(r,"=").concat(i)}).join("&")},D5=function(t){return t.split("&").reduce(function(e,n){var r=ma(n.split("="),2),i=r[0],s=r[1],a=+s,o=s&&a==s?a:s;return e[i]=o,e},{})},UM=function(){var t;try{t=D5($M.get(BM)||"")}catch{t={}}return t},HM=function(t){try{$M.set(BM,P5(t),{expires:365})}catch{}},O5=function(){var t=UM();return t.mux_viewer_id=t.mux_viewer_id||wd(),t.msn=t.msn||Math.random(),HM(t),{mux_viewer_id:t.mux_viewer_id,mux_sample_number:t.msn}},M5=function(){var t=UM(),e=En.now();return t.session_start&&(t.sst=t.session_start,delete t.session_start),t.session_id&&(t.sid=t.session_id,delete t.session_id),t.session_expires&&(t.sex=t.session_expires,delete t.session_expires),(!t.sex||t.sex<e)&&(t.sid=wd(),t.sst=e),t.sex=e+25*60*1e3,HM(t),{session_id:t.sid,session_start:t.sst,session_expires:t.sex}};function N5(t,e){var n=e.beaconCollectionDomain,r=e.beaconDomain;if(n)return"https://"+n;t=t||"inferred";var i=r||"litix.io";return t.match(/^[a-z0-9]+$/)?"https://"+t+"."+i:"https://img.litix.io/a.gif"}var F5=Fi(ns()),GM=function(){var t;switch(jM()){case"cellular":t="cellular";break;case"ethernet":t="wired";break;case"wifi":t="wifi";break;case void 0:break;default:t="other"}return t},jM=function(){var t=F5.default.navigator,e=t&&(t.connection||t.mozConnection||t.webkitConnection);return e&&e.type};GM.getConnectionFromAPI=jM;var $5=GM,B5={a:"env",b:"beacon",c:"custom",d:"ad",e:"event",f:"experiment",i:"internal",m:"mux",n:"response",p:"player",q:"request",r:"retry",s:"session",t:"timestamp",u:"viewer",v:"video",w:"page",x:"view",y:"sub"},U5=VM(B5),H5={ad:"ad",ag:"aggregate",ap:"api",al:"application",ar:"architecture",as:"asset",au:"autoplay",av:"average",bi:"bitrate",br:"break",bw:"browser",by:"bytes",bz:"business",ca:"cached",cb:"cancel",cc:"codec",cd:"code",cg:"category",ch:"changed",ck:"clicked",cl:"canceled",cn:"config",co:"count",ce:"counter",cp:"complete",cr:"creative",ct:"content",cu:"current",cx:"connection",cz:"context",dg:"downscaling",dm:"domain",dn:"cdn",do:"downscale",dr:"drm",dp:"dropped",du:"duration",dv:"device",ec:"encoding",ed:"edge",en:"end",eg:"engine",em:"embed",er:"error",ep:"experiments",es:"errorcode",et:"errortext",ee:"event",ev:"events",ex:"expires",ez:"exception",fa:"failed",fi:"first",fm:"family",ft:"format",fp:"fps",fq:"frequency",fr:"frame",fs:"fullscreen",ha:"has",hb:"holdback",he:"headers",ho:"host",hn:"hostname",ht:"height",id:"id",ii:"init",in:"instance",ip:"ip",is:"is",ke:"key",la:"language",lb:"labeled",le:"level",li:"live",ld:"loaded",lo:"load",ls:"lists",lt:"latency",ma:"max",md:"media",me:"message",mf:"manifest",mi:"mime",ml:"midroll",mm:"min",mn:"manufacturer",mo:"model",mx:"mux",ne:"newest",nm:"name",no:"number",on:"on",os:"os",pa:"paused",pb:"playback",pd:"producer",pe:"percentage",pf:"played",pg:"program",ph:"playhead",pi:"plugin",pl:"preroll",pn:"playing",po:"poster",pr:"preload",ps:"position",pt:"part",py:"property",ra:"rate",rd:"requested",re:"rebuffer",rf:"rendition",rm:"remote",ro:"ratio",rp:"response",rq:"request",rs:"requests",sa:"sample",sd:"skipped",se:"session",sk:"seek",sm:"stream",so:"source",sq:"sequence",sr:"series",st:"start",su:"startup",sv:"server",sw:"software",sy:"severity",ta:"tag",tc:"tech",te:"text",tg:"target",th:"throughput",ti:"time",tl:"total",to:"to",tt:"title",ty:"type",ug:"upscaling",un:"universal",up:"upscale",ur:"url",us:"user",va:"variant",vd:"viewed",vi:"video",ve:"version",vw:"view",vr:"viewer",wd:"width",wa:"watch",wt:"waiting"},HR=VM(H5);
vendor: 12,885 bytes, line 100
100function VM(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function ab(t){var e={},n={};return Object.keys(t).forEach(function(r){var i=!1;if(t.hasOwnProperty(r)&&t[r]!==void 0){var s=r.split("_"),a=s[0],o=U5[a];o||(Pt.info("Data key word `"+s[0]+"` not expected in "+r),o=a+"_"),s.splice(1).forEach(function(l){l==="url"&&(i=!0),HR[l]?o+=HR[l]:Number(l)&&Math.floor(Number(l))===Number(l)?o+=l:(Pt.info("Data key word `"+l+"` not expected in "+r),o+="_"+l+"_")}),i?n[o]=t[r]:e[o]=t[r]}}),Object.assign(e,n)}var Zo=Fi(ns()),G5={maxBeaconSize:300,maxQueueLength:3600,baseTimeBetweenBeacons:1e4,maxPayloadKBSize:500},j5=56*1024,V5=["hb","requestcompleted","requestfailed","requestcanceled"],q5="https://img.litix.io",Ea=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this._beaconUrl=t||q5,this._eventQueue=[],this._postInFlight=!1,this._failureCount=0,this._sendTimeout=!1,this._options=Object.assign({},G5,e)};Ea.prototype.queueEvent=function(t,e){var n=Object.assign({},e);return this._eventQueue.length<=this._options.maxQueueLength||t==="eventrateexceeded"?(this._eventQueue.push(n),this._sendTimeout||this._startBeaconSending(),this._eventQueue.length<=this._options.maxQueueLength):!1};Ea.prototype.flushEvents=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(t&&this._eventQueue.length===1){this._eventQueue.pop();return}this._eventQueue.length&&this._sendBeaconQueue(),this._startBeaconSending()};Ea.prototype.destroy=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.destroyed=!0,t?this._clearBeaconQueue():this.flushEvents(),Zo.default.clearTimeout(this._sendTimeout)};Ea.prototype._clearBeaconQueue=function(){var t=this._eventQueue.length>this._options.maxBeaconSize?this._eventQueue.length-this._options.maxBeaconSize:0,e=this._eventQueue.slice(t);t>0&&Object.assign(e[e.length-1],ab({mux_view_message:"event queue truncated"}));var n=this._createPayload(e);qM(this._beaconUrl,n,!0,function(){})};Ea.prototype._sendBeaconQueue=function(){var t=this;if(!this._postInFlight){var e=this._eventQueue.slice(0,this._options.maxBeaconSize);this._eventQueue=this._eventQueue.slice(this._options.maxBeaconSize),this._postInFlight=!0;var n=this._createPayload(e),r=En.now();qM(this._beaconUrl,n,!1,function(i,s){s?(t._eventQueue=e.concat(t._eventQueue),t._failureCount+=1,Pt.info("Error sending beacon: "+s)):t._failureCount=0,t._roundTripTime=En.now()-r,t._postInFlight=!1})}};Ea.prototype._getNextBeaconTime=function(){if(!this._failureCount)return this._options.baseTimeBetweenBeacons;var t=Math.pow(2,this._failureCount-1);return t=t*Math.random(),(1+t)*this._options.baseTimeBetweenBeacons};Ea.prototype._startBeaconSending=function(){var t=this;Zo.default.clearTimeout(this._sendTimeout),!this.destroyed&&(this._sendTimeout=Zo.default.setTimeout(function(){t._eventQueue.length&&t._sendBeaconQueue(),t._startBeaconSending()},this._getNextBeaconTime()))};Ea.prototype._createPayload=function(t){var e=this,n={transmission_timestamp:Math.round(En.now())};this._roundTripTime&&(n.rtt_ms=Math.round(this._roundTripTime));var r,i,s,a=function(){r=JSON.stringify({metadata:n,events:i||t}),s=r.length/1024},o=function(){return s<=e._options.maxPayloadKBSize};return a(),o()||(Pt.info("Payload size is too big ("+s+" kb). Removing unnecessary events."),i=t.filter(function(l){return V5.indexOf(l.e)===-1}),a()),o()||(Pt.info("Payload size still too big ("+s+" kb). Cropping fields.."),i.forEach(function(l){for(var c in l){var u=l[c],f=50*1024;typeof u=="string"&&u.length>f&&(l[c]=u.substring(0,f))}}),a()),r};var K5=function(t){return t.length<=j5},qM=function(t,e,n,r){if(n&&navigator&&navigator.sendBeacon&&navigator.sendBeacon(t,e)){r();return}if(Zo.default.fetch){Zo.default.fetch(t,{method:"POST",body:e,headers:{"Content-Type":"text/plain"},keepalive:K5(e)}).then(function(s){return r(null,s.ok?null:"Error")}).catch(function(s){return r(null,s)});return}if(Zo.default.XMLHttpRequest){var i=new Zo.default.XMLHttpRequest;i.onreadystatechange=function(){if(i.readyState===4)return r(null,i.status!==200?"error":void 0)},i.open("POST",t),i.setRequestHeader("Content-Type","text/plain"),i.send(e);return}r()},W5=Ea,z5=["env_key","view_id","view_sequence_number","player_sequence_number","beacon_domain","player_playhead_time","viewer_time","mux_api_version","event","video_id","player_instance_id","player_error_code","player_error_message","player_error_context","player_error_severity","player_error_business_exception"],Y5=["adplay","adplaying","adpause","adfirstquartile","admidpoint","adthirdquartile","adended","adresponse","adrequest"],X5=["ad_id","ad_creative_id","ad_universal_id"],J5=["viewstart","error","ended","viewend"],Q5=10*60*1e3,Z5=function(){function t(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Wn(this,t);var i,s,a,o,l,c,u,f,d,h,p,m;pe(this,"mux",void 0),pe(this,"envKey",void 0),pe(this,"options",void 0),pe(this,"eventQueue",void 0),pe(this,"sampleRate",void 0),pe(this,"disableCookies",void 0),pe(this,"respectDoNotTrack",void 0),pe(this,"previousBeaconData",void 0),pe(this,"lastEventTime",void 0),pe(this,"rateLimited",void 0),pe(this,"pageLevelData",void 0),pe(this,"viewerData",void 0),this.mux=e,this.envKey=n,this.options=r,this.previousBeaconData=null,this.lastEventTime=0,this.rateLimited=!1,this.eventQueue=new W5(N5(this.envKey,this.options));var g;this.sampleRate=(g=this.options.sampleRate)!==null&&g!==void 0?g:1;var _;this.disableCookies=(_=this.options.disableCookies)!==null&&_!==void 0?_:!1;var v;this.respectDoNotTrack=(v=this.options.respectDoNotTrack)!==null&&v!==void 0?v:!1,this.previousBeaconData=null,this.lastEventTime=0,this.rateLimited=!1,this.pageLevelData={mux_api_version:this.mux.API_VERSION,mux_embed:this.mux.NAME,mux_embed_version:this.mux.VERSION,viewer_application_name:(i=this.options.platform)===null||i===void 0?void 0:i.name,viewer_application_version:(s=this.options.platform)===null||s===void 0?void 0:s.version,viewer_application_engine:(a=this.options.platform)===null||a===void 0?void 0:a.layout,viewer_device_name:(o=this.options.platform)===null||o===void 0?void 0:o.product,viewer_device_category:"",viewer_device_manufacturer:(l=this.options.platform)===null||l===void 0?void 0:l.manufacturer,viewer_os_family:(u=this.options.platform)===null||u===void 0||(c=u.os)===null||c===void 0?void 0:c.family,viewer_os_architecture:(d=this.options.platform)===null||d===void 0||(f=d.os)===null||f===void 0?void 0:f.architecture,viewer_os_version:(p=this.options.platform)===null||p===void 0||(h=p.os)===null||h===void 0?void 0:h.version,viewer_connection_type:$5(),page_url:Lv.default===null||Lv.default===void 0||(m=Lv.default.location)===null||m===void 0?void 0:m.href},this.viewerData=this.disableCookies?{}:O5()}return $s(t,[{key:"send",value:function(e,n){if(!(!e||!(n!=null&&n.view_id))){if(this.respectDoNotTrack&&ib())return Pt.info("Not sending `"+e+"` because Do Not Track is enabled");if(!n||typeof n!="object")return Pt.error("A data object was expected in send() but was not provided");var r=this.disableCookies?{}:M5(),i=bS(Nm({},this.pageLevelData,n,r,this.viewerData),{event:e,env_key:this.envKey});i.user_id&&(i.viewer_user_id=i.user_id,delete i.user_id);var s,a=((s=i.mux_sample_number)!==null&&s!==void 0?s:0)>=this.sampleRate,o=this._deduplicateBeaconData(e,i),l=ab(o);if(this.lastEventTime=this.mux.utils.now(),a)return Pt.info("Not sending event due to sample rate restriction",e,i,l);if(this.envKey||Pt.info("Missing environment key (envKey) - beacons will be dropped if the video source is not a valid mux video URL",e,i,l),!this.rateLimited){if(Pt.info("Sending event",e,i,l),this.rateLimited=!this.eventQueue.queueEvent(e,l),this.mux.WINDOW_UNLOADING&&e==="viewend")this.eventQueue.destroy(!0);else if(this.mux.WINDOW_HIDDEN&&e==="hb"?this.eventQueue.flushEvents(!0):J5.indexOf(e)>=0&&this.eventQueue.flushEvents(),this.rateLimited)return i.event="eventrateexceeded",l=ab(i),this.eventQueue.queueEvent(i.event,l),Pt.error("Beaconing disabled due to rate limit.")}}}},{key:"destroy",value:function(){this.eventQueue.destroy(!1)}},{key:"_deduplicateBeaconData",value:function(e,n){var r=this,i={},s=n.view_id;if(s==="-1"||e==="viewstart"||e==="viewend"||!this.previousBeaconData||this.mux.utils.now()-this.lastEventTime>=Q5)i=Nm({},n),s&&(this.previousBeaconData=i),s&&e==="viewend"&&(this.previousBeaconData=null);else{var a=e.indexOf("request")===0;Object.entries(n).forEach(function(o){var l=ma(o,2),c=l[0],u=l[1];r.previousBeaconData&&(u!==r.previousBeaconData[c]||z5.indexOf(c)>-1||r.objectHasChanged(a,c,u,r.previousBeaconData[c])||r.eventRequiresKey(e,c))&&(i[c]=u,r.previousBeaconData[c]=u)})}return i}},{key:"objectHasChanged",value:function(e,n,r,i){return!e||n.indexOf("request_")!==0?!1:n==="request_response_headers"||typeof r!="object"||typeof i!="object"?!0:Object.keys(r||{}).length!==Object.keys(i||{}).length}},{key:"eventRequiresKey",value:function(e,n){return!!(e==="renditionchange"&&n.indexOf("video_source_")===0||X5.includes(n)&&Y5.includes(e))}}]),t}(),e6=function t(e){Wn(this,t);var n=0,r=0,i=0,s=0,a=0,o=0,l=0,c=function(d,h){var p=h.request_start,m=h.request_response_start,g=h.request_response_end,_=h.request_bytes_loaded;s++;var v,y;if(m?(v=m-(p??0),y=(g??0)-m):y=(g??0)-(p??0),y>0&&_&&_>0){var E=_/y*8e3;a++,r+=_,i+=y,e.data.view_min_request_throughput=Math.min(e.data.view_min_request_throughput||1/0,E),e.data.view_average_request_throughput=r/i*8e3,e.data.view_request_count=s,v>0&&(n+=v,e.data.view_max_request_latency=Math.max(e.data.view_max_request_latency||0,v),e.data.view_average_request_latency=n/a)}},u=function(d,h){s++,o++,e.data.view_request_count=s,e.data.view_request_failed_count=o},f=function(d,h){s++,l++,e.data.view_request_count=s,e.data.view_request_canceled_count=l};e.on("requestcompleted",c),e.on("requestfailed",u),e.on("requestcanceled",f)},t6=e6,n6=60*60*1e3,r6=function t(e){var n=this;Wn(this,t),pe(this,"_lastEventTime",void 0),e.on("before*",function(r,i){var s=i.viewer_time,a=En.now(),o=n._lastEventTime;if(n._lastEventTime=a,o&&a-o>n6){var l=Object.keys(e.data).reduce(function(u,f){return f.indexOf("video_")===0?Object.assign(u,pe({},f,e.data[f])):u},{});e.mux.log.info("Received event after at least an hour inactivity, creating a new view");var c=e.playbackHeartbeat._playheadShouldBeProgressing;e._resetView(Object.assign({viewer_time:s},l)),e.playbackHeartbeat._playheadShouldBeProgressing=c,e.playbackHeartbeat._playheadShouldBeProgressing&&r.type!=="play"&&r.type!=="adbreakstart"&&(e.emit("play",{viewer_time:s}),r.type!=="playing"&&e.emit("playing",{viewer_time:s}))}})},i6=r6,s6=["viewstart","ended","loadstart","pause","play","playing","ratechange","waiting","adplay","adpause","adended","aderror","adplaying","adrequest","adresponse","adbreakstart","adbreakend","adfirstquartile","admidpoint","adthirdquartile","rebufferstart","rebufferend","seeked","error","hb","requestcompleted","requestfailed","requestcanceled","renditionchange"],a6=new Set(["requestcompleted","requestfailed","requestcanceled"]),o6=function(t){UY(n,t);var e=jY(n);function n(r,i,s){Wn(this,n);var a;a=e.call(this),pe(je(a),"DOM_CONTENT_LOADED_EVENT_END",void 0),pe(je(a),"NAVIGATION_START",void 0),pe(je(a),"_destroyed",void 0),pe(je(a),"_heartBeatTimeout",void 0),pe(je(a),"adTracker",void 0),pe(je(a),"dashjs",void 0),pe(je(a),"data",void 0),pe(je(a),"disablePlayheadRebufferTracking",void 0),pe(je(a),"disableRebufferTracking",void 0),pe(je(a),"errorTracker",void 0),pe(je(a),"errorTranslator",void 0),pe(je(a),"emitTranslator",void 0),pe(je(a),"getAdData",void 0),pe(je(a),"getPlayheadTime",void 0),pe(je(a),"getStateData",void 0),pe(je(a),"stateDataTranslator",void 0),pe(je(a),"hlsjs",void 0),pe(je(a),"id",void 0),pe(je(a),"longResumeTracker",void 0),pe(je(a),"minimumRebufferDuration",void 0),pe(je(a),"mux",void 0),pe(je(a),"playbackEventDispatcher",void 0),pe(je(a),"playbackHeartbeat",void 0),pe(je(a),"playbackHeartbeatTime",void 0),pe(je(a),"playheadTime",void 0),pe(je(a),"seekingTracker",void 0),pe(je(a),"sustainedRebufferThreshold",void 0),pe(je(a),"watchTimeTracker",void 0),pe(je(a),"currentFragmentPDT",void 0),pe(je(a),"currentFragmentStart",void 0),a.DOM_CONTENT_LOADED_EVENT_END=Mm.domContentLoadedEventEnd(),a.NAVIGATION_START=Mm.navigationStart();var o={debug:!1,minimumRebufferDuration:250,sustainedRebufferThreshold:1e3,playbackHeartbeatTime:25,beaconDomain:"litix.io",sampleRate:1,disableCookies:!1,respectDoNotTrack:!1,disableRebufferTracking:!1,disablePlayheadRebufferTracking:!1,errorTranslator:function(d){return d},emitTranslator:function(){for(var d=arguments.length,h=new Array(d),p=0;p<d;p++)h[p]=arguments[p];return h},stateDataTranslator:function(d){return d}};a.mux=r,a.id=i,s!=null&&s.beaconDomain&&a.mux.log.warn("The `beaconDomain` setting has been deprecated
100in favor of `beaconCollectionDomain`. Please change your integration to use `beaconCollectionDomain` instead of `beaconDomain`."),s=Object.assign(o,s),s.data=s.data||{},s.data.property_key&&(s.data.env_key=s.data.property_key,delete s.data.property_key),Pt.level=s.debug?Xo.DEBUG:Xo.WARN,a.getPlayheadTime=s.getPlayheadTime,a.getStateData=s.getStateData||function(){return{}},a.getAdData=s.getAdData||function(){},a.minimumRebufferDuration=s.minimumRebufferDuration,a.sustainedRebufferThreshold=s.sustainedRebufferThreshold,a.playbackHeartbeatTime=s.playbackHeartbeatTime,a.disableRebufferTracking=s.disableRebufferTracking,a.disableRebufferTracking&&a.mux.log.warn("Disabling rebuffer tracking. This should only be used in specific circumstances as a last resort when your player is known to unreliably track rebuffering."),a.disablePlayheadRebufferTracking=s.disablePlayheadRebufferTracking,a.errorTranslator=s.errorTranslator,a.emitTranslator=s.emitTranslator,a.stateDataTranslator=s.stateDataTranslator,a.playbackEventDispatcher=new Z5(r,s.data.env_key,s),a.data={player_instance_id:wd(),mux_sample_rate:s.sampleRate,beacon_domain:s.beaconCollectionDomain||s.beaconDomain},a.data.view_sequence_number=1,a.data.player_sequence_number=1;var l=(function(){typeof this.data.view_start>"u"&&(this.data.view_start=this.mux.utils.now(),this.emit("viewstart"))}).bind(je(a));if(a.on("viewinit",function(d,h){this._resetVideoData(),this._resetViewData(),this._resetErrorData(),this._updateStateData(),Object.assign(this.data,h),this._initializeViewData(),this.one("play",l),this.one("adbreakstart",l)}),a.on("videochange",function(d,h){this._resetView(h)}),a.on("programchange",function(d,h){this.data.player_is_paused&&this.mux.log.warn("The `programchange` event is intended to be used when the content changes mid playback without the video source changing, however the video is not currently playing. If the video source is changing please use the videochange event otherwise you will lose startup time information."),this._resetView(Object.assign(h,{view_program_changed:!0})),l(),this.emit("play"),this.emit("playing")}),a.on("fragmentchange",function(d,h){this.currentFragmentPDT=h.currentFragmentPDT,this.currentFragmentStart=h.currentFragmentStart}),a.on("destroy",a.destroy),typeof window<"u"&&typeof window.addEventListener=="function"&&typeof window.removeEventListener=="function"){var c=function(){var d=typeof a.data.view_start<"u";a.mux.WINDOW_HIDDEN=document.visibilityState==="hidden",d&&a.mux.WINDOW_HIDDEN&&(a.data.player_is_paused||a.emit("hb"))};window.addEventListener("visibilitychange",c,!1);var u=function(d){d.persisted||a.destroy()};window.addEventListener("pagehide",u,!1),a.on("destroy",function(){window.removeEventListener("visibilitychange",c),window.removeEventListener("pagehide",u)})}a.on("playerready",function(d,h){Object.assign(this.data,h)}),s6.forEach(function(d){a.on(d,function(h,p){d.indexOf("ad")!==0&&this._updateStateData(),Object.assign(this.data,p),this._sanitizeData()}),a.on("after"+d,function(){(d!=="error"||this.errorTracker.viewErrored)&&this.send(d)})}),a.on("viewend",function(d,h){Object.assign(a.data,h)});var f=function(d){var h=this.mux.utils.now();this.data.player_init_time&&(this.data.player_startup_time=h-this.data.player_init_time),!this.mux.PLAYER_TRACKED&&this.NAVIGATION_START&&(this.mux.PLAYER_TRACKED=!0,(this.data.player_init_time||this.DOM_CONTENT_LOADED_EVENT_END)&&(this.data.page_load_time=Math.min(this.data.player_init_time||1/0,this.DOM_CONTENT_LOADED_EVENT_END||1/0)-this.NAVIGATION_START)),this.send("playerready"),delete this.data.player_startup_time,delete this.data.page_load_time};return a.one("playerready",f),a.longResumeTracker=new i6(je(a)),a.errorTracker=new o5(je(a)),new k5(je(a)),a.seekingTracker=new w5(je(a)),a.playheadTime=new h5(je(a)),a.playbackHeartbeat=new s5(je(a)),new b5(je(a)),a.watchTimeTracker=new c5(je(a)),new f5(je(a)),a.adTracker=new R5(je(a)),new y5(je(a)),new m5(je(a)),new _5(je(a)),new C5(je(a)),new t6(je(a)),s.hlsjs&&a.addHLSJS(s),s.dashjs&&a.addDashJS(s),a.emit("viewinit",s.data),a}return $s(n,[{key:"emit",value:function(r,i){var s,a=Object.assign({viewer_time:this.mux.utils.now()},i),o=[r,a];if(this.emitTranslator)try{o=this.emitTranslator(r,a)}catch(l){this.mux.log.warn("Exception in emit translator callback.",l)}o!=null&&o.length&&(s=gp(cu(n.prototype),"emit",this)).call.apply(s,[this].concat(Hi(o)))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,typeof this.data.view_start<"u"&&(this.emit
vendor: 14,902 bytes, lines 100-108
100("viewend"),this.send("viewend")),this.playbackEventDispatcher.destroy(),this.removeHLSJS(),this.removeDashJS(),window.clearTimeout(this._heartBeatTimeout))}},{key:"send",value:function(r){if(this.data.view_id){var i=Object.assign({},this.data),s=["player_program_time","player_manifest_newest_program_time","player_live_edge_program_time","player_program_time","video_holdback","video_part_holdback","video_target_duration","video_part_target_duration"];if(i.video_source_is_live===void 0&&(i.player_source_duration===1/0||i.video_source_duration===1/0?i.video_source_is_live=!0:(i.player_source_duration>0||i.video_source_duration>0)&&(i.video_source_is_live=!1)),i.video_source_is_live||s.forEach(function(c){i[c]=void 0}),i.video_source_url=i.video_source_url||i.player_source_url,i.video_source_url){var a=ma(xd(i.video_source_url),2),o=a[0],l=a[1];i.video_source_domain=l,i.video_source_hostname=o}delete i.ad_request_id,this.playbackEventDispatcher.send(r,i),this.data.view_sequence_number++,this.data.player_sequence_number++,a6.has(r)||this._restartHeartBeat(),r==="viewend"&&delete this.data.view_id}}},{key:"_resetView",value:function(r){this.emit("viewend"),this.send("viewend"),this.emit("viewinit",r)}},{key:"_updateStateData",value:function(){var r=this.getStateData();if(typeof this.stateDataTranslator=="function")try{r=this.stateDataTranslator(r)}catch(i){this.mux.log.warn("Exception in stateDataTranslator translator callback.",i)}Object.assign(this.data,r),this.playheadTime._updatePlayheadTime(),this._sanitizeData()}},{key:"_sanitizeData",value:function(){var r=this,i=["player_width","player_height","video_source_width","video_source_height","player_playhead_time","video_source_bitrate"];i.forEach(function(a){var o=parseInt(r.data[a],10);r.data[a]=isNaN(o)?void 0:o});var s=["player_source_url","video_source_url"];s.forEach(function(a){if(r.data[a]){var o=r.data[a].toLowerCase();(o.indexOf("data:")===0||o.indexOf("blob:")===0)&&(r.data[a]="MSE style URL")}})}},{key:"_resetVideoData",value:function(){var r=this;Object.keys(this.data).forEach(function(i){i.indexOf("video_")===0&&delete r.data[i]})}},{key:"_resetViewData",value:function(){var r=this;Object.keys(this.data).forEach(function(i){i.indexOf("view_")===0&&delete r.data[i]}),this.data.view_sequence_number=1}},{key:"_resetErrorData",value:function(){delete this.data.player_error_code,delete this.data.player_error_message,delete this.data.player_error_context,delete this.data.player_error_severity,delete this.data.player_error_business_exception}},{key:"_initializeViewData",value:function(){var r=this,i=this.data.view_id=wd(),s=function(){i===r.data.view_id&&yn(r.data,"player_view_count",1)};this.data.player_is_paused?this.one("play",s):s()}},{key:"_restartHeartBeat",value:function(){var r=this;window.clearTimeout(this._heartBeatTimeout),this._heartBeatTimeout=window.setTimeout(function(){r.data.player_is_paused||r.emit("hb")},1e4)}},{key:"addHLSJS",value:function(r){if(!r.hlsjs){this.mux.log.warn("You must pass a valid hlsjs instance in order to track it.");return}if(this.hlsjs){this.mux.log.warn("An instance of HLS.js is already being monitored for this player.");return}this.hlsjs=r.hlsjs,YY(this.mux,this.id,r.hlsjs,{},r.Hls||window.Hls)}},{key:"removeHLSJS",value:function(){this.hlsjs&&(XY(this.hlsjs),this.hlsjs=void 0)}},{key:"addDashJS",value:function(r){if(!r.dashjs){this.mux.log.warn("You must pass a valid dashjs instance in order to track it.");return}if(this.dashjs){this.mux.log.warn("An instance of Dash.js is already being monitored for this player.");return}this.dashjs=r.dashjs,e5(this.mux,this.id,r.dashjs)}},{key:"removeDashJS",value:function(){this.dashjs&&(t5(this.dashjs),this.dashjs=void 0)}}]),n}(r5),l6=o6,Yu=Fi(LY());function c6(){return Yu.default&&!!(Yu.default.fullscreenElement||Yu.default.webkitFullscreenElement||Yu.default.mozFullScreenElement||Yu.default.msFullscreenElement)}var u6=["loadstart","pause","play","playing","seeking","seeked","timeupdate","ratechange","stalled","waiting","error","ended"],f6={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"};function d6(t,e,n){var r=ma(Om(e),3),i=r[0],s=r[1],a=r[2],o=t.log,l=t.utils.getComputedStyle,c=t.utils.secondsToMs,u={automaticErrorTracking:!0};if(i){if(a!=="video"&&a!=="audio")return o.error("The element of `"+s+"` was not a media element.")}else return o.error("No element was found with the `"+s+"` query selector.");i.mux&&(i.mux.destroy(),delete i.mux,o.warn("Already monitoring this video element, replacing existing event listeners"));var f={getPlayheadTime:function(){return c(i.currentTime)},getStateData:function(){var h,p,m,g=((h=(p=this).getPlayheadTime)===null||h===void 0?void 0:h.call(p))||c(i.currentTime),_=this.hlsjs&&this.hlsjs.url,v=this.dashjs&&typeof this.dashjs.getSource=="function"&&this.dashjs.getSource(),y={player_is_paused:i.paused,player_width:parseInt(l(i,"width")),player_height:parseInt(l(i,"height")),player_autoplay_on:i.autoplay,player_preload_on:i.preload,player_language_code:i.lang,player_is_fullscreen:c6(),video_poster_url:i.poster,video_source_url:_||v||i.currentSrc,video_source_duration:c(i.duration),video_source_height:i.videoHeight,video_source_width:i.videoWidth,view_dropped_frame_count:i==null||(m=i.getVideoPlaybackQuality)===null||m===void 0?void 0:m.call(i).droppedVideoFrames};if(i.getStartDate&&g>0){var E=i.getStartDate();if(E&&typeof E.getTime=="function"&&E.getTime()){var b=E.getTime();if(y.player_program_time=b+g,i.seekable.length>0){var T=b+i.seekable.end(i.seekable.length-1);y.player_live_edge_program_time=T}}}return y}};n=Object.assign(u,n,f),n.data=Object.assign({player_software:"HTML5 Video Element",player_mux_plugin_name:"VideoElementMonitor",player_mux_plugin_version:t.VERSION},n.data),i.mux=i.mux||{},i.mux.deleted=!1,i.mux.emit=function(h,p){t.emit(s,h,p)},i.mux.updateData=function(h){i.mux.emit("hb",h)};var d=function(){o.error("The monitor for this video element has already been destroyed.")};i.mux.destroy=function(){Object.keys(i.mux.listeners).forEach(function(h){i.removeEventListener(h,i.mux.listeners[h],!1)}),delete i.mux.listeners,i.mux.destroy=d,i.mux.swapElement=d,i.mux.emit=d,i.mux.addHLSJS=d,i.mux.addDashJS=d,i.mux.removeHLSJS=d,i.mux.removeDashJS=d,i.mux.updateData=d,i.mux.setEmitTranslator=d,i.mux.setStateDataTranslator=d,i.mux.setGetPlayheadTime=d,i.mux.deleted=!0,t.emit(s,"destroy")},i.mux.swapElement=function(h){var p=ma(Om(h),3),m=p[0],g=p[1],_=p[2];if(m){if(_!=="video"&&_!=="audio")return t.log.error("The element of `"+g+"` was not a media element.")}else return t.log.error("No element was found with the `"+g+"` query selector.");m.muxId=i.muxId,delete i.muxId,m.mux=m.mux||{},m.mux.listeners=Object.assign({},i.mux.listeners),delete i.mux.listeners,Object.keys(m.mux.listeners).forEach(function(v){i.removeEventListener(v,m.mux.listeners[v],!1),m.addEventListener(v,m.mux.listeners[v],!1)}),m.mux.swapElement=i.mux.swapElement,m.mux.destroy=i.mux.destroy,delete i.mux,i=m},i.mux.addHLSJS=function(h){t.addHLSJS(s,h)},i.mux.addDashJS=function(h){t.addDashJS(s,h)},i.mux.removeHLSJS=function(){t.removeHLSJS(s)},i.mux.removeDashJS=function(){t.removeDashJS(s)},i.mux.setEmitTranslator=function(h){t.setEmitTranslator(s,h)},i.mux.setStateDataTranslator=function(h){t.setStateDataTranslator(s,h)},i.mux.setGetPlayheadTime=function(h){h||(h=n.getPlayheadTime),t.setGetPlayheadTime(s,h)},t.init(s,n),t.emit(s,"playerready"),i.paused||(t.emit(s,"play"),i.readyState>2&&t.emit(s,"playing")),i.mux.listeners={},u6.forEach(function(h){h==="error"&&!n.automaticErrorTracking||(i.mux.listeners[h]=function(){var p={};if(h==="error"){if(!i.error||i.error.code===1)return;p.player_error_code=i.error.code,p.player_error_message=f6[i.error.code]||i.error.message}t.emit(s,h,p)},i.addEventListener(h,i.mux.listeners[h],!1))})}function h6(t,e,n,r){var i=r;if(t&&typeof t[e]=="function")try{i=t[e].apply(t,n)}catch(s){Pt.info("safeCall error",s)}return i}var Jf=Fi(ns()),fc;Jf.default&&Jf.default.WeakMap&&(fc=new WeakMap);function p6(t,e){if(!t||!e||!Jf.default||typeof Jf.default.getComputedStyle!="function")return"";var n;return fc&&fc.has(t)&&(n=fc.get(t)),n||(n=Jf.default.getComputedStyle(t,null),fc&&fc.set(t,n)),n.getPropertyValue(e)}function m6(t){return Math.floor(t*1e3)}var Lo={TARGET_DURATION:"#EXT-X-TARGETDURATION",PART_INF:"#EXT-X-PART-INF",SERVER_CONTROL:"#EXT-X-SERVER-CONTROL",INF:"#EXTINF",PROGRAM_DATE_TIME:"#EXT-X-PROGRAM-DATE-TIME",VERSION:"#EXT-X-VERSION",SESSION_DATA:"#EXT-X-SESSION-DATA"},$g=function(t){return this.buffer="",this.manifest={segments:[],serverControl:{},sessionData:{}},this.currentUri={},this.process(t),this.manifest};$g.prototype.process=function(t){var e;for(this.buffer+=t,e=this.buffer.indexOf(` 101`);e>-1;e=this.buffer.indexOf(` 102`))this.processLine(this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)};$g.prototype.processLine=function(t){var e=t.indexOf(":"),n=_6(t,e),r=n[0],i=n.length===2?SS(n[1]):void 0;if(r[0]!=="#")this.currentUri.uri=r,this.manifest.segments.push(this.currentUri),this.manifest.targetDuration&&!("duration"in this.currentUri)&&(this.currentUri.duration=this.manifest.targetDuration),this.currentUri={};else switch(r){case Lo.TARGET_DURATION:{if(!isFinite(i)||i<0)return;this.manifest.targetDuration=i,this.setHoldBack();break}case Lo.PART_INF:{Cv(this.manifest,n),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),this.setHoldBack();break}case Lo.SERVER_CONTROL:{Cv(this.manifest,n),this.setHoldBack();break}case Lo.INF:{i===0?this.currentUri.duration=.01:i>0&&(this.currentUri.duration=i);break}case Lo.PROGRAM_DATE_TIME:{var s=i,a=new Date(s);this.manifest.dateTimeString||(this.manifest.dateTimeString=s,this.manifest.dateTimeObject=a),this.currentUri.dateTimeString=s,this.currentUri.dateTimeObject=a;break}case Lo.VERSION:{Cv(this.manifest,n);break}case Lo.SESSION_DATA:{var o=E6(n[1]),l=FM(o);Object.assign(this.manifest.sessionData,l)}}};$g.prototype.setHoldBack=function(){var t=this.manifest,e=t.serverControl,n=t.targetDuration,r=t.partTargetDuration;if(e){var i="holdBack",s="partHoldBack",a=n&&n*3,o=r&&r*2;n&&!e.hasOwnProperty(i)&&(e[i]=a),a&&e[i]<a&&(e[i]=a),r&&!e.hasOwnProperty(s)&&(e[s]=r*3),r&&e[s]<o&&(e[s]=o)}};var Cv=function(t,e){var n=KM(e[0].replace("#EXT-X-","")),r;v6(e[1])?(r={},r=Object.assign(y6(e[1]),r)):r=SS(e[1]),t[n]=r},KM=function(t){return t.toLowerCase().replace(/-(\w)/g,function(e){return e[1].toUpperCase()})},SS=function(t){if(t.toLowerCase()==="yes"||t.toLowerCase()==="no")return t.toLowerCase()==="yes";var e=t.indexOf(":")!==-1?t:parseFloat(t);return isNaN(e)?t:e},g6=function(t){var e={},n=t.split("=");if(n.length>1){var r=KM(n[0]);e[r]=SS(n[1])}return e},y6=function(t){for(var e=t.split(","),n={},r=0;e.length>r;r++){var i=e[r],s=g6(i);n=Object.assign(s,n)}return n},v6=function(t){return t.indexOf("=")>-1},_6=function(t,e){return e===-1?[t]:[t.substring(0,e),t.substring(e+1)]},E6=function(t){var e={};if(t){var n=t.search(","),r=t.slice(0,n),i=t.slice(n+1),s=[r,i];return s.forEach(function(a,o){for(var l=a.replace(/['"]+/g,"").split("="),c=0;c<l.length;c++)l[c]==="DATA-ID"&&(e["DATA-ID"]=l[1-c]),l[c]==="VALUE"&&(e.VALUE=l[1-c])}),{data:e}}},b6=$g,T6={safeCall:h6,safeIncrement:yn,getComputedStyle:p6,secondsToMs:m6,assign:Object.assign,headersStringToObject:TS,cdnHeadersToRequestId:Fm,extractHostnameAndDomain:xd,extractHostname:Ki,manifestParser:b6,generateShortID:MM,generateUUID:wd,now:En.now,findMediaElement:Om},S6=T6,w6={PLAYER_READY:"playerready",VIEW_INIT:"viewinit",VIDEO_CHANGE:"videochange",PLAY:"play",PAUSE:"pause",PLAYING:"playing",TIME_UPDATE:"timeupdate",SEEKING:"seeking",SEEKED:"seeked",REBUFFER_START:"rebufferstart",REBUFFER_END:"rebufferend",ERROR:"error",ENDED:"ended",RENDITION_CHANGE:"renditionchange",ORIENTATION_CHANGE:"orientationchange",AD_REQUEST:"adrequest",AD_RESPONSE:"adresponse",AD_BREAK_START:"adbreakstart",AD_PLAY:"adplay",AD_PLAYING:"adplaying",AD_PAUSE:"adpause",AD_FIRST_QUARTILE:"adfirstquartile",AD_MID_POINT:"admidpoint",AD_THIRD_QUARTILE:"adthirdquartile",AD_ENDED:"adended",AD_BREAK_END:"adbreakend",AD_ERROR:"aderror",REQUEST_COMPLETED:"requestcompleted",REQUEST_FAILED:"requestfailed",REQUEST_CANCELLED:"requestcanceled",HEARTBEAT:"hb",DESTROY:"destroy"},x6=w6,A6="mux-embed",R6="5.5.0",L6="2.1",dn={},to=function(t){var e=arguments;typeof t=="string"?to.hasOwnProperty(t)?Xf.default.setTimeout(function(){e=Array.prototype.splice.call(e,1),to[t].apply(null,e)},0):Pt.warn("`"+t+"` is an unknown task"):typeof t=="function"?Xf.default.setTimeout(function(){t(to)},0):Pt.warn("`"+t+"` is invalid.")},C6={loaded:En.now(),NAME:A6,VERSION:R6,API_VERSION:L6,PLAYER_TRACKED:!1,monitor:function(t,e){return d6(to,t,e)},destroyMonitor:function(t){var e=ma(Om(t),1),n=e[0];n&&n.mux&&typeof n.mux.destroy=="function"?n.mux.destroy():Pt.error("A video element monitor for `"+t+"` has not been initialized via `mux.monitor`.")},addHLSJS:function(t,e){var n=Ui(t);dn[n]?dn[n].addHLSJS(e):Pt.error("A monitor for `"+n+"` has not been initialized.")},addDashJS:function(t,e){var n=Ui(t);dn[n]?dn[n].addDashJS(e):Pt.error("A monitor for `"+n+"` has not been initialized.")},removeHLSJS:function(t){var e=Ui(t);dn[e]?dn[e].removeHLSJS():Pt.error("A monitor for `"+e+"` has not been initialized.")},removeDashJS:function(t){var e=Ui(t);dn[e]?dn[e].removeDashJS():Pt.error("A monitor for `"+e+"` has not been initialized.")},init:function(t,e){ib()&&e&&e.respectDoNotTrack&&Pt.info("The browser's Do Not Track flag is enabled - Mux beaconing is disabled.");var n=Ui(t);dn[n]=new l6(to,n,e)},emit:function(t,e,n){var r=Ui(t);dn[r]?(dn[r].emit(e,n),e==="destroy"&&delete dn[r]):Pt.error("A monitor for `"+r+"` has not been initialized.")},updateData:function(t,e){var n=Ui(t);dn[n]?dn[n].emit("hb",e):Pt.error("A monitor for `"+n+"` has not been initialized.")},setEmitTranslator:function(t,e){var n=Ui(t);dn[n]?dn[n].emitTranslator=e:Pt.error("A monitor for `"+n+"` has not been initialized.")},setStateDataTranslator:function(t,e){var n=Ui(t);dn[n]?dn[n].stateDataTranslator=e:Pt.error("A monitor for `"+n+"` has not been initialized.")},setGetPlayheadTime:function(t,e){var n=Ui(t);dn[n]?dn[n].getPlayheadTime=e:Pt.error("A monitor for `"+n+"` has not been initialized.")},checkDoNotTrack:ib,log:Pt,utils:S6,events:x6,WINDOW_HIDDEN:!1,WINDOW_UNLOADING:!1};Object.assign(to,C6);typeof Xf.default<"u"&&typeof Xf.default.addEventListener=="function"&&Xf.default.addEventListener("pagehide",function(t){t.persisted||(to.WINDOW_UNLOADING=!0)},!1);var wS=to;/*! 103* JavaScript Cookie v2.1.3 104* https://github.com/js-cookie/js-cookie 105* 106* Copyright 2006, 2015 Klaus Hartl & Fagner Brack 107* Released under the MIT license 108*/function I6(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var WM={exports:{}};
vendor: 3,204 bytes, line 108
108(function(t,e){(function(n){var r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,s=/(?:\/|^)\.(?=\/)/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 f=o.parseURL(l);if(!f)throw new Error("Error trying to parse base URL.");return f.path=o.normalizePath(f.path),o.buildURLFromParts(f)}var d=o.parseURL(c);if(!d)throw new Error("Error trying to parse relative URL.");if(d.scheme)return u.alwaysNormalize?(d.path=o.normalizePath(d.path),o.buildURLFromParts(d)):c;var h=o.parseURL(l);if(!h)throw new Error("Error trying to parse base URL.");if(!h.netLoc&&h.path&&h.path[0]!=="/"){var p=i.exec(h.path);h.netLoc=p[1],h.path=p[2]}h.netLoc&&!h.path&&(h.path="/");var m={scheme:h.scheme,netLoc:d.netLoc,path:null,params:d.params,query:d.query,fragment:d.fragment};if(!d.netLoc&&(m.netLoc=h.netLoc,d.path[0]!=="/"))if(!d.path)m.path=h.path,d.params||(m.params=h.params,d.query||(m.query=h.query));else{var g=h.path,_=g.substring(0,g.lastIndexOf("/")+1)+d.path;m.path=o.normalizePath(_)}return m.path===null&&(m.path=u.alwaysNormalize?o.normalizePath(d.path):d.path),o.buildURLFromParts(m)},parseURL:function(l){var c=r.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(s,"");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}};t.exports=o})()})(WM);var xS=WM.exports;function GR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Kn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?GR(Object(n),!0).forEach(function(r){D6(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):GR(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function k6(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function P6(t){var e=k6(t,"string");return typeof e=="symbol"?e:String(e)}function D6(t,e,n){return e=P6(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Tn(){return Tn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Tn.apply(this,arguments)}const Te=Number.isFinite||function(t){return typeof t=="number"&&isFinite(t)},O6=Number.isSafeInteger||function(t){return typeof t=="number"&&Math.abs(t)<=M6},M6=Number.MAX_SAFE_INTEGER||9007199254740991;
108let I=function(t){return t.MEDIA_ATTACHING="hlsMediaAttaching",t.MEDIA_ATTACHED="hlsMediaAttached",t.MEDIA_DETACHING="hlsMediaDetaching",t.MEDIA_DETACHED="hlsMediaDetached",t.BUFFER_RESET="hlsBufferReset",t.BUFFER_CODECS="hlsBufferCodecs",t.BUFFER_CREATED="hlsBufferCreated",t.BUFFER_APPENDING="hlsBufferAppending",t.BUFFER_APPENDED="hlsBufferAppended",t.BUFFER_EOS="hlsBufferEos",t.BUFFER_FLUSHING="hlsBufferFlushing",t.BUFFER_FLUSHED="hlsBufferFlushed",t.MANIFEST_LOADING="hlsManifestLoading",t.MANIFEST_LOADED="hlsManifestLoaded",t.MANIFEST_PARSED="hlsManifestParsed",t.LEVEL_SWITCHING="hlsLevelSwitching",t.LEVEL_SWITCHED="hlsLevelSwitched",t.LEVEL_LOADING="hlsLevelLoading",t.LEVEL_LOADED="hlsLevelLoaded",t.LEVEL_UPDATED="hlsLevelUpdated",t.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",t.LEVELS_UPDATED="hlsLevelsUpdated",t.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",t.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",t.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",t.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",t.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",t.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",t.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",t.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",t.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",t.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",t.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",t.CUES_PARSED="hlsCuesParsed",t.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",t.INIT_PTS_FOUND="hlsInitPtsFound",t.FRAG_LOADING="hlsFragLoading",t.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",t.FRAG_LOADED="hlsFragLoaded",t.FRAG_DECRYPTED="hlsFragDecrypted",t.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",t.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",t.FRAG_PARSING_METADATA="hlsFragParsingMetadata",t.FRAG_PARSED="hlsFragParsed",t.FRAG_BUFFERED="hlsFragBuffered",t.FRAG_CHANGED="hlsFragChanged",t.FPS_DROP="hlsFpsDrop",t.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",t.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",t.ERROR="hlsError",t.DESTROYING="hlsDestroying",t.KEY_LOADING="hlsKeyLoading",t.KEY_LOADED="hlsKeyLoaded",t.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",t.BACK_BUFFER_REACHED="hlsBackBufferReached",t.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",t}({}),Fe=function(t){return t.NETWORK_ERROR="networkError",t.MEDIA_ERROR="mediaError",t.KEY_SYSTEM_ERROR="keySystemError",t.MUX_ERROR="muxError",t.OTHER_ERROR="otherError",t}({}),ne=function(t){return t.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",t.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",t.KEY_SYSTEM_NO_SESSION="keySystemNoSession",t.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",t.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",t.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",t.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",t.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",t.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",t.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",t.MANIFEST_LOAD_ERROR="manifestLoadError",t.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",t.MANIFEST_PARSING_ERROR="manifestParsingError",t.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",t.LEVEL_EMPTY_ERROR="levelEmptyError",t.LEVEL_LOAD_ERROR="levelLoadError",t.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",t.LEVEL_PARSING_ERROR="levelParsingError",t.LEVEL_SWITCH_ERROR="levelSwitchError",t.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",t.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",t.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",t.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",t.FRAG_LOAD_ERROR="fragLoadError",t.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",t.FRAG_DECRYPT_ERROR="fragDecryptError",t.FRAG_PARSING_ERROR="fragParsingError",t.FRAG_GAP="fragGap",t.REMUX_ALLOC_ERROR="remuxAllocError",t.KEY_LOAD_ERROR="keyLoadError",t.KEY_LOAD_TIMEOUT="keyLoadTimeOut",t.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",t.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",t.BUFFER_APPEND_ERROR="bufferAppendError",t.BUFFER_APPENDING_ERROR="bufferAppendingError",t.BUFFER_STALLED_ERROR="bufferStalledError",t.BUFFER_FULL_ERROR="bufferFullError",t.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",t.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",t.INTERNAL_EXCEPTION="internalException",t.INTERNAL_ABORTED="aborted",t.UNKNOWN="unknown",t}({});const No=function(){},ob={trace:No,debug:No,log:No,warn:No,info:No,error:No};let Qf=ob;function N6(t){const e=self.console[t];return e?e.bind(self.console,`[${t}] >`):No}function F6(t,...e){e.forEach(function(n){Qf[n]=t[n]?t[n].bind(t):N6(n)})}function $6(t,e){if(typeof console=="object"&&t===!0||typeof t=="object"){F6(t,"debug","log","info","warn","error");try{Qf.log(`Debug logs enabled for "${e}
108" in hls.js version 1.5.19`)}catch{Qf=ob}}else Qf=ob}const J=Qf,B6=/^(\d+)x(\d+)$/,jR=/(.+?)=(".*?"|.*?)(?:,|$)/g;class zt{constructor(e){typeof e=="string"&&(e=zt.parseAttrList(e)),Tn(this,e)}get clientAttrs(){return Object.keys(this).filter(e=>e.substring(0,2)==="X-")}decimalInteger(e){const n=parseInt(this[e],10);return n>Number.MAX_SAFE_INTEGER?1/0:n}hexadecimalInteger(e){if(this[e]){let n=(this[e]||"0x").slice(2);n=(n.length&1?"0":"")+n;const r=new Uint8Array(n.length/2);for(let i=0;i<n.length/2;i++)r[i]=parseInt(n.slice(i*2,i*2+2),16);return r}else return null}hexadecimalIntegerAsNumber(e){const n=parseInt(this[e],16);return n>Number.MAX_SAFE_INTEGER?1/0:n}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,n){const r=this[e];return r?parseFloat(r):n}enumeratedString(e){return this[e]}bool(e){return this[e]==="YES"}decimalResolution(e){const n=B6.exec(this[e]);if(n!==null)return{width:parseInt(n[1],10),height:parseInt(n[2],10)}}static parseAttrList(e){let n;const r={},i='"';for(jR.lastIndex=0;(n=jR.exec(e))!==null;){let s=n[2];s.indexOf(i)===0&&s.lastIndexOf(i)===s.length-1&&(s=s.slice(1,-1));const a=n[1].trim();r[a]=s}return r}}function U6(t){return t!=="ID"&&t!=="CLASS"&&t!=="START-DATE"&&t!=="DURATION"&&t!=="END-DATE"&&t!=="END-ON-NEXT"}function H6(t){return t==="SCTE35-OUT"||t==="SCTE35-IN"}class zM{constructor(e,n){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,n){const r=n.attr;for(const i in r)if(Object.prototype.hasOwnProperty.call(e,i)&&e[i]!==r[i]){J.warn(`DATERANGE tag attribute: "${i}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=i;break}e=Tn(new zt({}),r,e)}if(this.attr=e,this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const r=new Date(this.attr["END-DATE"]);Te(r.getTime())&&(this._endDate=r)}}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(Te(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&&Te(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}class Bg{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 wt={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class YM{constructor(e){this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams={[wt.AUDIO]:null,[wt.VIDEO]:null,[wt.AUDIOVIDEO]:null},this.baseurl=e}setByteRange(e,n){const r=e.split("@",2);let i;r.length===1?i=(n==null?void 0:n.byteRangeEndOffset)||0:i=parseInt(r[1]),this._byteRange=[i,parseInt(r[0])+i]}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=xS.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}}class Iv extends YM{constructor(e,n){super(n),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 Bg,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 n=this.levelkeys.identity;if(n)this._decryptdata=n.getDecryptData(this.sn);else{const r=Object.keys(this.levelkeys);if(r.length===1)return this._decryptdata=this.levelkeys[r[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null||!Te(this.programDateTime))return null;const e=Te(this.duration)?this.duration:0;return this.programDateTime+e*1e3}get encrypted(){var e;if((e=this._decryptdata)!=null&&e.encrypted)return!0;
108if(this.levelkeys){const n=Object.keys(this.levelkeys),r=n.length;if(r>1||r===1&&this.levelkeys[n[0]].encrypted)return!0}return!1}setKeyFormat(e){if(this.levelkeys){const n=this.levelkeys[e];n&&!this._decryptdata&&(this._decryptdata=n.getDecryptData(this.sn))}}abortRequests(){var e,n;(e=this.loader)==null||e.abort(),(n=this.keyLoader)==null||n.abort()}setElementaryStreamInfo(e,n,r,i,s,a=!1){const{elementaryStreams:o}=this,l=o[e];if(!l){o[e]={startPTS:n,endPTS:r,startDTS:i,endDTS:s,partial:a};return}l.startPTS=Math.min(l.startPTS,n),l.endPTS=Math.max(l.endPTS,r),l.startDTS=Math.min(l.startDTS,i),l.endDTS=Math.max(l.endDTS,s)}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[wt.AUDIO]=null,e[wt.VIDEO]=null,e[wt.AUDIOVIDEO]=null}}class G6 extends YM{constructor(e,n,r,i,s){super(r),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 Bg,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=n,this.index=i;const a=e.enumeratedString("BYTERANGE");a&&this.setByteRange(a,s),s&&(this.fragOffset=s.fragOffset+s.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 j6=10;class V6{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 n=this.lastPartSn-e.lastPartSn,r=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!r||!!n||!this.live,this.advanced=this.endSN>e.endSN||n>0||n===0&&r>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?Te(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||j6}
108get 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 AS(t){return Uint8Array.from(atob(t),e=>e.charCodeAt(0))}function q6(t){const e=lb(t).subarray(0,16),n=new Uint8Array(16);return n.set(e,16-e.length),n}function K6(t){const e=function(r,i,s){const a=r[i];r[i]=r[s],r[s]=a};e(t,0,3),e(t,1,2),e(t,4,5),e(t,6,7)}function W6(t){const e=t.split(":");let n=null;if(e[0]==="data"&&e.length===2){const r=e[1].split(";"),i=r[r.length-1].split(",");if(i.length===2){const s=i[0]==="base64",a=i[1];s?(r.splice(-1,1),n=AS(a)):n=q6(a)}}return n}function lb(t){return Uint8Array.from(unescape(encodeURIComponent(t)),e=>e.charCodeAt(0))}const uu=typeof self<"u"?self:void 0;var Tt={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Kr={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function kv(t){switch(t){case Kr.FAIRPLAY:return Tt.FAIRPLAY;case Kr.PLAYREADY:return Tt.PLAYREADY;case Kr.WIDEVINE:return Tt.WIDEVINE;case Kr.CLEARKEY:return Tt.CLEARKEY}}var Dh={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",FAIRPLAY:"94ce86fb07ff4f43adb893d2fa968ca2",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function Pv(t){if(t===Dh.WIDEVINE)return Tt.WIDEVINE;if(t===Dh.PLAYREADY)return Tt.PLAYREADY;if(t===Dh.CENC||t===Dh.CLEARKEY)return Tt.CLEARKEY}function Dv(t){switch(t){case Tt.FAIRPLAY:return Kr.FAIRPLAY;case Tt.PLAYREADY:return Kr.PLAYREADY;case Tt.WIDEVINE:return Kr.WIDEVINE;case Tt.CLEARKEY:return Kr.CLEARKEY}}function Oh(t){const{drmSystems:e,widevineLicenseUrl:n}=t,r=e?[Tt.FAIRPLAY,Tt.WIDEVINE,Tt.PLAYREADY,Tt.CLEARKEY].filter(i=>!!e[i]):[];return!r[Tt.WIDEVINE]&&n&&r.push(Tt.WIDEVINE),r}const XM=function(t){return uu!=null&&(t=uu.navigator)!=null&&t.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function z6(t,e,n,r){let i;switch(t){case Tt.FAIRPLAY:i=["cenc","sinf"];break;case Tt.WIDEVINE:case Tt.PLAYREADY:i=["cenc"];break;case Tt.CLEARKEY:i=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${t}`)}return Y6(i,e,n,r)}function Y6(t,e,n,r){return[{initDataTypes:t,persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",sessionTypes:r.sessionTypes||[r.sessionType||"temporary"],audioCapabilities:e.map(s=>({contentType:`audio/mp4; codecs="${s}"`,robustness:r.audioRobustness||"",encryptionScheme:r.audioEncryptionScheme||null})),videoCapabilities:n.map(s=>({contentType:`video/mp4; codecs="${s}"`,robustness:r.videoRobustness||"",encryptionScheme:r.videoEncryptionScheme||null}))}]}function JM(t){const e=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2),n=String.fromCharCode.apply(null,Array.from(e)),r=n.substring(n.indexOf("<"),n.length),a=new DOMParser().parseFromString(r,"text/xml").getElementsByTagName("KID")[0];if(a){const o=a.childNodes[0]?a.childNodes[0].nodeValue:a.getAttribute("VALUE");if(o){const l=AS(o).subarray(0,16);return K6(l),l}}return null}function El(t,e,n){return Uint8Array.prototype.slice?t.slice(e,n):new Uint8Array(Array.prototype.slice.call(t,e,n))}const RS=(t,e)=>e+10<=t.length&&t[e]===73&&t[e+1]===68&&t[e+2]===51&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128,QM=(t,e)=>e+10<=t.length&&t[e]===51&&t[e+1]===68&&t[e+2]===73&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128,Ad=(t,e)=>{const n=e;let r=0;for(;RS(t,e);){r+=10;const i=Ug(t,e+6);r+=i,QM(t,e+10)&&(r+=10),e+=r}if(r>0)return t.subarray(n,n+r)},Ug=(t,e)=>{let n=0;return n=(t[e]&127)<<21,n|=(t[e+1]&127)<<14,n|=(t[e+2]&127)<<7,n|=t[e+3]&127,n},X6=(t,e)=>RS(t,e)&&Ug(t,e+6)+10<=t.length-e,LS=t=>{const e=eN(t);for(let n=0;n<e.length;n++){const r=e[n];if(ZM(r))return nX(r)}},ZM=t=>t&&t.key==="PRIV"&&t.info==="com.apple.streaming.transportStreamTimestamp",J6=t=>{const e=String.fromCharCode(t[0],t[1],t[2],t[3]),n=Ug(t,4),r=10;return{type:e,size:n,data:t.subarray(r,r+n)}},eN=t=>{let e=0;const n=[];for(;RS(t,e);){const r=Ug(t,e+6);e+=10;const i=e+r;for(;e+8<i;){const s=J6(t.subarray(e)),a=Q6(s);a&&n.push(a),e+=s.size+10}QM(t,e)&&(e+=10)}return n},Q6=t=>t.type==="PRIV"?Z6(t):t.type[0]==="W"?tX(t):eX(t),Z6=t=>{if(t.size<2)return;const e=Ps(t.data,!0),n=new Uint8Array(t.data.subarray(e.length+1));return{key:t.type,info:e,data:n.buffer}},eX=t=>{if(t.size<2)return;if(t.type==="TXXX"){let n=1;const r=Ps(t.data.subarray(n),!0);n+=r.length+1;const i=Ps(t.data.subarray(n));return{key:t.type,info:r,data:i}}const e=Ps(t.data.subarray(1));return{key:t.type,data:e}},tX=t=>{if(t.type==="WXXX"){if(t.size<2)return;let n=1;const r=Ps(t.data.subarray(n),!0);n+=r.length+1;const i=Ps(t.data.subarray(n));return{key:t.type,info:r,data:i}}const e=Ps(t.data);return{key:t.type,data:e}},nX=t=>{if(t.data.byteLength===8){const e=new Uint8Array(t.data),n=e[3]&1;let r=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return r/=45,n&&(r+=4772185884e-2),Math.round(r)}},Ps=(t,e=!1)=>{const n=rX();if(n){const c=n.decode(t);if(e){const u=c.indexOf("\0");return u!==-1?c.substring(0,u):c}return c.replace(/\0/g,"")}const r=t.length;let i,s,a,o="",l=0;for(;l<r;){if(i=t[l++],i===0&&e)return o;if(i===0||i===3)continue;switch(i>>
1084){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:o+=String.fromCharCode(i);break;case 12:case 13:s=t[l++],o+=String.fromCharCode((i&31)<<6|s&63);break;case 14:s=t[l++],a=t[l++],o+=String.fromCharCode((i&15)<<12|(s&63)<<6|(a&63)<<0);break}}return o};let Ov;function rX(){if(!navigator.userAgent.includes("PlayStation 4"))return!Ov&&typeof self.TextDecoder<"u"&&(Ov=new self.TextDecoder("utf-8")),Ov}const ms={hexDump:function(t){let e="";for(let n=0;n<t.length;n++){let r=t[n].toString(16);r.length<2&&(r="0"+r),e+=r}return e}},$m=Math.pow(2,32)-1,iX=[].push,tN={video:1,audio:2,id3:3,text:4};function In(t){return String.fromCharCode.apply(null,t)}function nN(t,e){const n=t[e]<<8|t[e+1];return n<0?65536+n:n}function Pe(t,e){const n=rN(t,e);return n<0?4294967296+n:n}function VR(t,e){let n=Pe(t,e);return n*=Math.pow(2,32),n+=Pe(t,e+4),n}function rN(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]}function Mv(t,e,n){t[e]=n>>24,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=n&255}function sX(t){const e=t.byteLength;for(let n=0;n<e;){const r=Pe(t,n);if(r>8&&t[n+4]===109&&t[n+5]===111&&t[n+6]===111&&t[n+7]===102)return!0;n=r>1?n+r:e}return!1}function Xe(t,e){const n=[];if(!e.length)return n;const r=t.byteLength;for(let i=0;i<r;){const s=Pe(t,i),a=In(t.subarray(i+4,i+8)),o=s>1?i+s:r;if(a===e[0])if(e.length===1)n.push(t.subarray(i+8,o));else{const l=Xe(t.subarray(i+8,o),e.slice(1));l.length&&iX.apply(n,l)}i=o}return n}function aX(t){const e=[],n=t[0];let r=8;const i=Pe(t,r);r+=4;let s=0,a=0;n===0?(s=Pe(t,r),a=Pe(t,r+4),r+=8):(s=VR(t,r),a=VR(t,r+8),r+=16),r+=2;let o=t.length+a;const l=nN(t,r);r+=2;for(let c=0;c<l;c++){let u=r;const f=Pe(t,u);u+=4;const d=f&2147483647;if((f&2147483648)>>>31===1)return J.warn("SIDX has hierarchical references (not supported)"),null;const p=Pe(t,u);u+=4,e.push({referenceSize:d,subsegmentDuration:p,info:{duration:p/i,start:o,end:o+d-1}}),o+=d,u+=4,r=u}return{earliestPresentationTime:s,timescale:i,version:n,referencesCount:l,references:e}}function iN(t){const e=[],n=Xe(t,["moov","trak"]);for(let i=0;i<n.length;i++){const s=n[i],a=Xe(s,["tkhd"])[0];if(a){let o=a[0];const l=Pe(a,o===0?12:20),c=Xe(s,["mdia","mdhd"])[0];if(c){o=c[0];const u=Pe(c,o===0?12:20),f=Xe(s,["mdia","hdlr"])[0];if(f){const d=In(f.subarray(8,12)),h={soun:wt.AUDIO,vide:wt.VIDEO}[d];if(h){const p=Xe(s,["mdia","minf","stbl","stsd"])[0],m=oX(p);e[l]={timescale:u,type:h},e[h]=Kn({timescale:u,id:l},m)}}}}}return Xe(t,["moov","mvex","trex"]).forEach(i=>{const s=Pe(i,4),a=e[s];a&&(a.default={duration:Pe(i,12),flags:Pe(i,20)})}),e}function oX(t){const e=t.subarray(8),n=e.subarray(86),r=In(e.subarray(4,8));let i=r;const s=r==="enca"||r==="encv";if(s){const o=Xe(e,[r])[0].subarray(r==="enca"?28:78);Xe(o,["sinf"]).forEach(c=>{const u=Xe(c,["schm"])[0];if(u){const f=In(u.subarray(4,8));if(f==="cbcs"||f==="cenc"){const d=Xe(c,["frma"])[0];d&&(i=In(d))}}})}switch(i){case"avc1":case"avc2":case"avc3":case"avc4":{const a=Xe(n,["avcC"])[0];i+="."+Mh(a[1])+Mh(a[2])+Mh(a[3]);break}case"mp4a":{const a=Xe(e,[r])[0],o=Xe(a.subarray(28),["esds"])[0];if(o&&o.length>12){let l=4;if(o[l++]!==3)break;l=Nv(o,l),l+=2;const c=o[l++];if(c&128&&(l+=2),c&64&&(l+=o[l++]),o[l++]!==4)break;l=Nv(o,l);const u=o[l++];if(u===64)i+="."+Mh(u);else break;if(l+=12,o[l++]!==5)break;l=Nv(o,l);const f=o[l++];let d=(f&248)>>3;d===31&&(d+=1+((f&7)<<3)+((o[l]&224)>>5)),i+="."+d}break}case"hvc1":case"hev1":{const a=Xe(n,["hvcC"])[0],o=a[1],l=["","A","B","C"][o>>6],c=o&31,u=Pe(a,2),f=(o&32)>>5?"H":"L",d=a[12],h=a.subarray(6,12);i+="."+l+c,i+="."+u.toString(16).toUpperCase(),i+="."+f+d;let p="";for(let m=h.length;m--;){const g=h[m];(g||p)&&(p="."+g.toString(16).toUpperCase()+p)}i+=p;break}case"dvh1":case"dvhe":{const a=Xe(n,["dvcC"])[0],o=a[2]>>1&127,l=a[2]<<5&32|a[3]>>3&31;i+="."+ls(o)+"."+ls(l);break}case"vp09":{const a=Xe(n,["vpcC"])[0],o=a[4],l=a[5],c=a[6]>>4&15;i+="."+ls(o)+"."+ls(l)+"."+ls(c);break}case"av01":{const a=Xe(n,["av1C"])[0],o=a[1]>>>5,l=a[1]&31,c=a[2]>>>7?"H":"M",u=(a[2]&64)>>6,f=(a[2]&32)>>5,d=o===2&&u?f?12:10:u?10:8,h=(a[2]&16)>>4,p=(a[2]&8)>>3,m=(a[2]&4)>>2,g=a[2]&3;i+="."+o+"."+ls(l)+c+"."+ls(d)+"."+h+"."+p+m+g+"."+ls(1)+"."+ls(1)+"."+ls(1)+"."+0;break}}return{codec:i,encrypted:s}}function Nv(t,e){const n=e+5;for(;t[e++]&128&&e<n;);return e}function Mh(t){return("0"+t.toString(16).toUpperCase()).slice(-2)}function ls(t){return(t<10?"0":"")+t}function lX(t,e){if(!t||!e)return t;const n=e.keyId;
vendor: 2,766 bytes, line 108
108return n&&e.isCommonEncryption&&Xe(t,["moov","trak"]).forEach(i=>{const a=Xe(i,["mdia","minf","stbl","stsd"])[0].subarray(8);let o=Xe(a,["enca"]);const l=o.length>0;l||(o=Xe(a,["encv"])),o.forEach(c=>{const u=l?c.subarray(28):c.subarray(78);Xe(u,["sinf"]).forEach(d=>{const h=sN(d);if(h){const p=h.subarray(8,24);p.some(m=>m!==0)||(J.log(`[eme] Patching keyId in 'enc${l?"a":"v"}>sinf>>tenc' box: ${ms.hexDump(p)} -> ${ms.hexDump(n)}`),h.set(n,8))}})})}),t}function sN(t){const e=Xe(t,["schm"])[0];if(e){const n=In(e.subarray(4,8));if(n==="cbcs"||n==="cenc")return Xe(t,["schi","tenc"])[0]}return null}function cX(t,e){return Xe(e,["moof","traf"]).reduce((n,r)=>{const i=Xe(r,["tfdt"])[0],s=i[0],a=Xe(r,["tfhd"]).reduce((o,l)=>{const c=Pe(l,4),u=t[c];if(u){let f=Pe(i,4);if(s===1){if(f===$m)return J.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),o;f*=$m+1,f+=Pe(i,8)}const d=u.timescale||9e4,h=f/d;if(Te(h)&&(o===null||h<o))return h}return o},null);return a!==null&&Te(a)&&(n===null||a<n)?a:n},null)}function uX(t,e){let n=0,r=0,i=0;const s=Xe(t,["moof","traf"]);for(let a=0;a<s.length;a++){const o=s[a],l=Xe(o,["tfhd"])[0],c=Pe(l,4),u=e[c];if(!u)continue;const f=u.default,d=Pe(l,0)|(f==null?void 0:f.flags);let h=f==null?void 0:f.duration;d&8&&(d&2?h=Pe(l,12):h=Pe(l,8));const p=u.timescale||9e4,m=Xe(o,["trun"]);for(let g=0;g<m.length;g++){if(n=fX(m[g]),!n&&h){const _=Pe(m[g],4);n=h*_}u.type===wt.VIDEO?r+=n/p:u.type===wt.AUDIO&&(i+=n/p)}}if(r===0&&i===0){let a=1/0,o=0,l=0;const c=Xe(t,["sidx"]);for(let u=0;u<c.length;u++){const f=aX(c[u]);if(f!=null&&f.references){a=Math.min(a,f.earliestPresentationTime/f.timescale);const d=f.references.reduce((h,p)=>h+p.info.duration||0,0);o=Math.max(o,d+f.earliestPresentationTime/f.timescale),l=o-a}}if(l&&Te(l))return l}return r||i}function fX(t){const e=Pe(t,0);let n=8;e&1&&(n+=4),e&4&&(n+=4);let r=0;const i=Pe(t,4);for(let s=0;s<i;s++){if(e&256){const a=Pe(t,n);r+=a,n+=4}e&512&&(n+=4),e&1024&&(n+=4),e&2048&&(n+=4)}return r}function dX(t,e,n){Xe(e,["moof","traf"]).forEach(r=>{Xe(r,["tfhd"]).forEach(i=>{const s=Pe(i,4),a=t[s];if(!a)return;const o=a.timescale||9e4;Xe(r,["tfdt"]).forEach(l=>{const c=l[0],u=n*o;if(u){let f=Pe(l,4);if(c===0)f-=u,f=Math.max(f,0),Mv(l,4,f);else{f*=Math.pow(2,32),f+=Pe(l,8),f-=u,f=Math.max(f,0);const d=Math.floor(f/($m+1)),h=Math.floor(f%($m+1));Mv(l,4,d),Mv(l,8,h)}}})})})}function hX(t){const e={valid:null,remainder:null},n=Xe(t,["moof"]);if(n.length<2)return e.remainder=t,e;const r=n[n.length-1];return e.valid=El(t,0,r.byteOffset-8),e.remainder=El(t,r.byteOffset-8),e}function Oi(t,e){const n=new Uint8Array(t.length+e.length);return n.set(t),n.set(e,t.length),n}function qR(t,e){const n=[],r=e.samples,i=e.timescale,s=e.id;let a=!1;
vendor: 4,967 bytes, line 108
108return Xe(r,["moof"]).map(l=>{const c=l.byteOffset-8;Xe(l,["traf"]).map(f=>{const d=Xe(f,["tfdt"]).map(h=>{const p=h[0];let m=Pe(h,4);return p===1&&(m*=Math.pow(2,32),m+=Pe(h,8)),m/i})[0];return d!==void 0&&(t=d),Xe(f,["tfhd"]).map(h=>{const p=Pe(h,4),m=Pe(h,0)&16777215,g=(m&1)!==0,_=(m&2)!==0,v=(m&8)!==0;let y=0;const E=(m&16)!==0;let b=0;const T=(m&32)!==0;let S=8;p===s&&(g&&(S+=8),_&&(S+=4),v&&(y=Pe(h,S),S+=4),E&&(b=Pe(h,S),S+=4),T&&(S+=4),e.type==="video"&&(a=pX(e.codec)),Xe(f,["trun"]).map(A=>{const w=A[0],x=Pe(A,0)&16777215,L=(x&1)!==0;let R=0;const k=(x&4)!==0,F=(x&256)!==0;let U=0;const H=(x&512)!==0;let M=0;const O=(x&1024)!==0,q=(x&2048)!==0;let P=0;const ae=Pe(A,4);let ce=8;L&&(R=Pe(A,ce),ce+=4),k&&(ce+=4);let ye=R+c;for(let ve=0;ve<ae;ve++){if(F?(U=Pe(A,ce),ce+=4):U=y,H?(M=Pe(A,ce),ce+=4):M=b,O&&(ce+=4),q&&(w===0?P=Pe(A,ce):P=rN(A,ce),ce+=4),e.type===wt.VIDEO){let z=0;for(;z<M;){const G=Pe(r,ye);if(ye+=4,mX(a,r[ye])){const N=r.subarray(ye,ye+G);aN(N,a?2:1,t+P/i,n)}ye+=G,z+=G+4}}t+=U/i}}))})})}),n}function pX(t){if(!t)return!1;const e=t.indexOf("."),n=e<0?t:t.substring(0,e);return n==="hvc1"||n==="hev1"||n==="dvh1"||n==="dvhe"}function mX(t,e){if(t){const n=e>>1&63;return n===39||n===40}else return(e&31)===6}function aN(t,e,n,r){const i=oN(t);let s=0;s+=e;let a=0,o=0,l=0;for(;s<i.length;){a=0;do{if(s>=i.length)break;l=i[s++],a+=l}while(l===255);o=0;do{if(s>=i.length)break;l=i[s++],o+=l}while(l===255);const c=i.length-s;let u=s;if(o<c)s+=o;else if(o>c){J.error(`Malformed SEI payload. ${o} is too small, only ${c} bytes left to parse.`);break}if(a===4){if(i[u++]===181){const d=nN(i,u);if(u+=2,d===49){const h=Pe(i,u);if(u+=4,h===1195456820){const p=i[u++];if(p===3){const m=i[u++],g=31&m,_=64&m,v=_?2+g*3:0,y=new Uint8Array(v);if(_){y[0]=m;for(let E=1;E<v;E++)y[E]=i[u++]}r.push({type:p,payloadType:a,pts:n,bytes:y})}}}}}else if(a===5&&o>16){const f=[];for(let p=0;p<16;p++){const m=i[u++].toString(16);f.push(m.length==1?"0"+m:m),(p===3||p===5||p===7||p===9)&&f.push("-")}const d=o-16,h=new Uint8Array(d);for(let p=0;p<d;p++)h[p]=i[u++];r.push({payloadType:a,pts:n,uuid:f.join(""),userData:Ps(h),userDataBytes:h})}}}function oN(t){const e=t.byteLength,n=[];let r=1;for(;r<e-2;)t[r]===0&&t[r+1]===0&&t[r+2]===3?(n.push(r+2),r+=2):r++;if(n.length===0)return t;const i=e-n.length,s=new Uint8Array(i);let a=0;for(r=0;r<i;a++,r++)a===n[0]&&(a++,n.shift()),s[r]=t[a];return s}function gX(t){const e=t[0];let n="",r="",i=0,s=0,a=0,o=0,l=0,c=0;if(e===0){for(;In(t.subarray(c,c+1))!=="\0";)n+=In(t.subarray(c,c+1)),c+=1;for(n+=In(t.subarray(c,c+1)),c+=1;In(t.subarray(c,c+1))!=="\0";)r+=In(t.subarray(c,c+1)),c+=1;r+=In(t.subarray(c,c+1)),c+=1,i=Pe(t,12),s=Pe(t,16),o=Pe(t,20),l=Pe(t,24),c=28}else if(e===1){c+=4,i=Pe(t,c),c+=4;const f=Pe(t,c);c+=4;const d=Pe(t,c);for(c+=4,a=2**32*f+d,O6(a)||(a=Number.MAX_SAFE_INTEGER,J.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),o=Pe(t,c),c+=4,l=Pe(t,c),c+=4;In(t.subarray(c,c+1))!=="\0";)n+=In(t.subarray(c,c+1)),c+=1;for(n+=In(t.subarray(c,c+1)),c+=1;In(t.subarray(c,c+1))!=="\0";)r+=In(t.subarray(c,c+1)),c+=1;r+=In(t.subarray(c,c+1)),c+=1}const u=t.subarray(c,t.byteLength);return{schemeIdUri:n,value:r,timeScale:i,presentationTime:a,presentationTimeDelta:s,eventDuration:o,id:l,payload:u}}function yX(t,...e){const n=e.length;let r=8,i=n;for(;i--;)r+=e[i].byteLength;const s=new Uint8Array(r);for(s[0]=r>>24&255,s[1]=r>>16&255,s[2]=r>>8&255,s[3]=r&255,s.set(t,4),i=0,r=8;i<n;i++)s.set(e[i],r),r+=e[i].byteLength;return s}function vX(t,e,n){if(t.byteLength!==16)throw new RangeError("Invalid system id");let r,i;r=0,i=new Uint8Array;let s;r>0?(s=new Uint8Array(4),e.length>0&&new DataView(s.buffer).setUint32(0,e.length,!1)):s=new Uint8Array;const a=new Uint8Array(4);return n&&n.byteLength>0&&new DataView(a.buffer).setUint32(0,n.byteLength,!1),yX([112,115,115,104],new Uint8Array([r,0,0,0]),t,s,i,a,n||new Uint8Array)}function _X(t){const e=[];if(t instanceof ArrayBuffer){const n=t.byteLength;let r=0;for(;r+32<n;){const i=new DataView(t,r),s=EX(i);e.push(s),r+=s.size}}return e}function EX(t){const e=t.getUint32(0),n=t.byteOffset,r=t.byteLength;if(r<e)return{offset:n,size:r};if(t.getUint32(4)!==1886614376)return{offset:n,size:e};const s=t.getUint32(8)>>>24;if(s!==0&&s!==1)return{offset:n,size:e};const a=t.buffer,o=ms.hexDump(new Uint8Array(a,n+12,16)),l=t.getUint32(28);let c=null,u=null;if(s===0){if(e-32<l||l<22)return{offset:n,size:e};u=new Uint8Array(a,n+32,l)}else if(s===1){if(!l||r<n+32+l*16+16)return{offset:n,size:e};c=[];for(let f=0;f<l;f++)c.push(new Uint8Array(a,n+32+f*16,16))}return{version:s,systemId:o,kids:c,data:u,offset:n,size:e}}let Nh={};class Rd{static clearKeyUriToKeyIdMap(){Nh={}}constructor(e,n,r,i=[1],s=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.pss
108h=null,this.method=e,this.uri=n,this.keyFormat=r,this.keyFormatVersions=i,this.iv=s,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 Kr.FAIRPLAY:case Kr.WIDEVINE:case Kr.PLAYREADY:case Kr.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&&J.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const r=bX(e);return new Rd(this.method,this.uri,"identity",this.keyFormatVersions,r)}const n=W6(this.uri);if(n)switch(this.keyFormat){case Kr.WIDEVINE:this.pssh=n,n.length>=22&&(this.keyId=n.subarray(n.length-22,n.length-6));break;case Kr.PLAYREADY:{const r=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=vX(r,null,n),this.keyId=JM(n);break}default:{let r=n.subarray(0,16);if(r.length!==16){const i=new Uint8Array(16);i.set(r,16-r.length),r=i}this.keyId=r;break}}if(!this.keyId||this.keyId.byteLength!==16){let r=Nh[this.uri];if(!r){const i=Object.keys(Nh).length%Number.MAX_SAFE_INTEGER;r=new Uint8Array(16),new DataView(r.buffer,12,4).setUint32(0,i),Nh[this.uri]=r}this.keyId=r}return this}}function bX(t){const e=new Uint8Array(16);for(let n=12;n<16;n++)e[n]=t>>8*(15-n)&255;return e}const lN=/\{\$([a-zA-Z0-9-_]+)\}/g;function KR(t){return lN.test(t)}function Hr(t,e,n){if(t.variableList!==null||t.hasVariableRefs)for(let r=n.length;r--;){const i=n[r],s=e[i];s&&(e[i]=cb(t,s))}}function cb(t,e){if(t.variableList!==null||t.hasVariableRefs){const n=t.variableList;return e.replace(lN,r=>{const i=r.substring(2,r.length-1),s=n==null?void 0:n[i];return s===void 0?(t.playlistParsingError||(t.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${i}"`)),r):s})}return e}function WR(t,e,n){let r=t.variableList;r||(t.variableList=r={});let i,s;if("QUERYPARAM"in e){i=e.QUERYPARAM;try{const a=new self.URL(n).searchParams;if(a.has(i))s=a.get(i);else throw new Error(`"${i}" does not match any query parameter in URI: "${n}"`)}catch(a){t.playlistParsingError||(t.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${a.message}`))}}else i=e.NAME,s=e.VALUE;i in r?t.playlistParsingError||(t.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${i}"`)):r[i]=s||""}function TX(t,e,n){const r=e.IMPORT;if(n&&r in n){let i=t.variableList;i||(t.variableList=i={}),i[r]=n[r]}else t.playlistParsingError||(t.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${r}"`))}function Ml(t=!0){return typeof self>"u"?void 0:(t||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function SX(t){return typeof self<"u"&&t===self.ManagedMediaSource}const Bm={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 wX(t,e){const n=Bm[e];return!!n&&!!n[t.slice(0,4)]}function Fv(t,e,n=!0){return!t.split(",").some(r=>!cN(r,e,n))}function cN(t,e,n=!0){var r;const i=Ml(n);return(r=i==null?void 0:i.isTypeSupported(Ld(t,e)))!=null?r:!1}function Ld(t,e){return`${e}/mp4;codecs="${t}"`}function zR(t){if(t){const e=t.substring(0,4);return Bm.video[e]}return 2}function Um(t){return t.split(",").reduce((e,n)=>{const r=Bm.video[n];return r?(r*2+e)/(e?3:2):(Bm.audio[n]+e)/(e?2:1)},0)}const $v={};function xX(t,e=!0){if($v[t])return $v[t];const n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[t];for(let r=0;r<n.length;r++)if(cN(n[r],"audio",e))return $v[t]=n[r],n[r];return t}const AX=/flac|opus/i;function Hm(t,e=!0){return t.replace(AX,n=>xX(n.toLowerCase(),e))}function YR(t,e){return t&&t!=="mp4a"?t:e&&e.split(",")[0]}function RX(t){const e=t.split(",");for(let n=0;n<e.length;n++){const r=e[n].split(".");if(r.length>2){let i=r.shift()+".";i+=parseInt(r.shift()).toString(16),i+=("000"+parseInt(r.shift()).toString(16)).slice(-4),e[n]=i}}return e.join(",")}const XR=/#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,JR=/#EXT-X-MEDIA:(.*)/g,LX=/^#EXT(?:INF|-X-TARGETDURATION):/m,QR=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"),CX=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 Ts{static findGroup(e,n){for(let r=0;r<e.length;r++){const i=e[r];if(i.id===n)return i}}static resolve(e,n){return xS.buildAbsoluteURL(n,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return LX.test(e)}static parseMasterPlaylist(e,n){const r=KR(e),i={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:r},s=[];XR.lastIndex=0;let a;for(;(a=XR.exec(e))!=null;)if(a[1]){var o;const c=new zt(a[1]);Hr(i,c,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);const u=cb(i,a[2]),f={attrs:c,bitrate:c.decimalInteger("BANDWIDTH")||c.decimalInteger("AVERAGE-BANDWIDTH"),name:c.NAME,url:Ts.resolve(u,n)},d=c.decimalResolution("RESOLUTION");d&&(f.width=d.width,f.height=d.height),IX(c.CODECS,f),(o=f.unknownCodecs)!=null&&o.length||s.push(f),i.levels.push(f)}else if(a[3]){const c=a[3],u=a[4];switch(c){case"SESSION-DATA":{const f=new zt(u);Hr(i,f,["DATA-ID","LANGUAGE","VALUE","URI"]);const d=f["DATA-ID"];d&&(i.sessionData===null&&(i.sessionData={}),i.sessionData[d]=f);break}case"SESSION-KEY":{const f=ZR(u,n,i);f.encrypted&&f.isSupported()?(i.sessionKeys===null&&(i.sessionKeys=[]),i.sessionKeys.push(f)):J.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${u}"`);break}case"DEFINE":{{const f=new zt(u);Hr(i,f,["NAME","VALUE","QUERYPARAM"]),WR(i,f,n)}break}case"CONTENT-STEERING":{const f=new zt(u);Hr(i,f,["SERVER-URI","PATHWAY-ID"]),i.contentSteering={uri:Ts.resolve(f["SERVER-URI"],n),pathwayId:f["PATHWAY-ID"]||"."};break}case"START":{i.startTimeOffset=eL(u);break}}}const l=s.length>0&&s.length<i.levels.length;return i.levels=l?s:i.levels,i.levels.length===0&&(i.playlistParsingError=new Error("no levels found in manifest")),i}static parseMasterPlaylistMedia(e,n,r){let i;const s={},a=r.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(JR.lastIndex=0;(i=JR.exec(e))!==null;){const c=new zt(i[1]),u=c.TYPE;if(u){const f=o[u],d=s[u]||[];s[u]=d,Hr(r,c,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);const h=c.LANGUAGE,p=c["ASSOC-LANGUAGE"],m=c.CHANNELS,g=c.CHARACTERISTICS,_=c["INSTREAM-ID"],v={attrs:c,bitrate:0,id:l++,groupId:c["GROUP-ID"]||"",name:c.NAME||h||"",type:u,default:c.bool("DEFAULT"),autoselect:c.bool("AUTOSELECT"),forced:c.bool("FORCED"),lang:h,url:c.URI?Ts.resolve(c.URI,n):""};if(p&&(v.assocLang=p),m&&(v.channels=m),g&&(v.characteristics=g),_&&(v.instreamId=_),f!=null&&f.length){const y=Ts.findGroup(f,v.groupId)||f[0];tL(v,y,"audioCodec"),tL(v,y,"textCodec")}d.push(v)}}return s}static parseLevelPlaylist(e,n,r,i,s,a){const o=new V6(n),l=o.fragments;let c=null,u=0,f=0,d=0,h=0,p=null,m=new Iv(i,n),g,_,v,y=-1,E=!1,b=null;for(QR.lastIndex=0,o.m3u8=e,o.hasVariableRefs=KR(e);(g=QR.exec(e))!==null;){E&&(E=!1,m=new Iv(i,n),m.start=d,m.sn=u,m.cc=h,m.level=r,c&&(m.initSegment=c,m.rawProgramDateTime=c.rawProgramDateTime,c.rawProgramDateTime=null,b&&(m.setByteRange(b),b=null)));const w=g[1];if(w){m.duration=parseFloat(w);const x=(" "+g[2]).slice(1);m.title=x||null,m.tagList.push(x?["INF",w,x]:["INF",w])}else if(g[3]){if(Te(m.duration)){m.start=d,v&&iL(m,v,o),m.sn=u,m.level=r,m.cc=h,l.push(m);const x=(" "+g[3]).slice(1);m.relurl=cb(o,x),nL(m,p),p=m,d+=m.duration,u++,f=0,E=!0}}else if(g[4]){const x=(" "+g[4]).slice(1);p?m.setByteRange(x,p):m.setByteRange(x)}else if(g[5])m.rawProgramDateTime=(" "+g[5]).slice(1),m.tagList.push(["PROGRAM-DATE-TIME",m.rawProgramDateTime]),y===-1&&(y=l.length);
108else{if(g=g[0].match(CX),!g){J.warn("No matches on slow regex match for level playlist!");continue}for(_=1;_<g.length&&!(typeof g[_]<"u");_++);const x=(" "+g[_]).slice(1),L=(" "+g[_+1]).slice(1),R=g[_+2]?(" "+g[_+2]).slice(1):"";switch(x){case"PLAYLIST-TYPE":o.type=L.toUpperCase();break;case"MEDIA-SEQUENCE":u=o.startSN=parseInt(L);break;case"SKIP":{const k=new zt(L);Hr(o,k,["RECENTLY-REMOVED-DATERANGES"]);const F=k.decimalInteger("SKIPPED-SEGMENTS");if(Te(F)){o.skippedSegments=F;for(let H=F;H--;)l.unshift(null);u+=F}const U=k.enumeratedString("RECENTLY-REMOVED-DATERANGES");U&&(o.recentlyRemovedDateranges=U.split(" "));break}case"TARGETDURATION":o.targetduration=Math.max(parseInt(L),1);break;case"VERSION":o.version=parseInt(L);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":o.live=!1;break;case"#":(L||R)&&m.tagList.push(R?[L,R]:[L]);break;case"DISCONTINUITY":h++,m.tagList.push(["DIS"]);break;case"GAP":m.gap=!0,m.tagList.push([x]);break;case"BITRATE":m.tagList.push([x,L]);break;case"DATERANGE":{const k=new zt(L);Hr(o,k,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),Hr(o,k,k.clientAttrs);const F=new zM(k,o.dateRanges[k.ID]);F.isValid||o.skippedSegments?o.dateRanges[F.id]=F:J.warn(`Ignoring invalid DATERANGE tag: "${L}"`),m.tagList.push(["EXT-X-DATERANGE",L]);break}case"DEFINE":{{const k=new zt(L);Hr(o,k,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in k?TX(o,k,a):WR(o,k,n)}break}case"DISCONTINUITY-SEQUENCE":h=parseInt(L);break;case"KEY":{const k=ZR(L,n,o);if(k.isSupported()){if(k.method==="NONE"){v=void 0;break}v||(v={}),v[k.keyFormat]&&(v=Tn({},v)),v[k.keyFormat]=k}else J.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${L}"`);break}case"START":o.startTimeOffset=eL(L);break;case"MAP":{const k=new zt(L);if(Hr(o,k,["BYTERANGE","URI"]),m.duration){const F=new Iv(i,n);rL(F,k,r,v),c=F,m.initSegment=c,c.rawProgramDateTime&&!m.rawProgramDateTime&&(m.rawProgramDateTime=c.rawProgramDateTime)}else{const F=m.byteRangeEndOffset;if(F){const U=m.byteRangeStartOffset;b=`${F-U}@${U}`}else b=null;rL(m,k,r,v),c=m,E=!0}break}case"SERVER-CONTROL":{const k=new zt(L);o.canBlockReload=k.bool("CAN-BLOCK-RELOAD"),o.canSkipUntil=k.optionalFloat("CAN-SKIP-UNTIL",0),o.canSkipDateRanges=o.canSkipUntil>0&&k.bool("CAN-SKIP-DATERANGES"),o.partHoldBack=k.optionalFloat("PART-HOLD-BACK",0),o.holdBack=k.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{const k=new zt(L);o.partTarget=k.decimalFloatingPoint("PART-TARGET");break}case"PART":{let k=o.partList;k||(k=o.partList=[]);const F=f>0?k[k.length-1]:void 0,U=f++,H=new zt(L);Hr(o,H,["BYTERANGE","URI"]);const M=new G6(H,m,n,U,F);k.push(M),m.duration+=M.duration;break}case"PRELOAD-HINT":{const k=new zt(L);Hr(o,k,["URI"]),o.preloadHint=k;break}case"RENDITION-REPORT":{const k=new zt(L);Hr(o,k,["URI"]),o.renditionReports=o.renditionReports||[],o.renditionReports.push(k);break}default:J.warn(`line parsed but not handled: ${g}`);break}}}p&&!p.relurl?(l.pop(),d-=p.duration,o.partList&&(o.fragmentHint=p)):o.partList&&(nL(m,p),m.cc=h,o.fragmentHint=m,v&&iL(m,v,o));const T=l.length,S=l[0],A=l[T-1];if(d+=o.skippedSegments*o.targetduration,d>0&&T&&A){o.averagetargetduration=d/T;const w=A.sn;o.endSN=w!=="initSegment"?w:0,o.live||(A.endList=!0),S&&(o.startCC=S.cc)}else o.endSN=0,o.startCC=0;return o.fragmentHint&&(d+=o.fragmentHint.duration),o.totalduration=d,o.endCC=h,y>0&&kX(l,y),o}}function ZR(t,e,n){var r,i;const s=new zt(t);Hr(n,s,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);const a=(r=s.METHOD)!=null?r:"",o=s.URI,l=s.hexadecimalInteger("IV"),c=s.KEYFORMATVERSIONS,u=(i=s.KEYFORMAT)!=null?i:"identity";o&&s.IV&&!l&&J.error(`Invalid IV: ${s.IV}`);const f=o?Ts.resolve(o,e):"",d=(c||"1").split("/").map(Number).filter(Number.isFinite);return new Rd(a,f,u,d,l)}function eL(t){const n=new zt(t).decimalFloatingPoint("TIME-OFFSET");return Te(n)?n:null}function IX(t,e){let n=(t||"").split(/[ ,]+/).filter(r=>r);["video","audio","text"].forEach(r=>{const i=n.filter(s=>wX(s,r));i.length&&(e[`${r}Codec`]=i.join(","),n=n.filter(s=>i.indexOf(s)===-1))}),e.unknownCodecs=n}function tL(t,e,n){const r=e[n];r&&(t[n]=r)}function kX(t,e){let n=t[e];for(let r=e;r--;){const i=t[r];
vendor: 9,271 bytes, line 108
108if(!i)return;i.programDateTime=n.programDateTime-i.duration*1e3,n=i}}function nL(t,e){t.rawProgramDateTime?t.programDateTime=Date.parse(t.rawProgramDateTime):e!=null&&e.programDateTime&&(t.programDateTime=e.endProgramDateTime),Te(t.programDateTime)||(t.programDateTime=null,t.rawProgramDateTime=null)}function rL(t,e,n,r){t.relurl=e.URI,e.BYTERANGE&&t.setByteRange(e.BYTERANGE),t.level=n,t.sn="initSegment",r&&(t.levelkeys=r),t.initSegment=null}function iL(t,e,n){t.levelkeys=e;const{encryptedFragments:r}=n;(!r.length||r[r.length-1].levelkeys!==e)&&Object.keys(e).some(i=>e[i].isCommonEncryption)&&r.push(t)}var dt={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},De={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function sL(t){const{type:e}=t;switch(e){case dt.AUDIO_TRACK:return De.AUDIO;case dt.SUBTITLE_TRACK:return De.SUBTITLE;default:return De.MAIN}}function Bv(t,e){let n=t.url;return(n===void 0||n.indexOf("data:")===0)&&(n=e.url),n}class PX{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(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.LEVEL_LOADING,this.onLevelLoading,this),e.on(I.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(I.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}unregisterListeners(){const{hls:e}=this;e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.LEVEL_LOADING,this.onLevelLoading,this),e.off(I.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(I.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}createInternalLoader(e){const n=this.hls.config,r=n.pLoader,i=n.loader,s=r||i,a=new s(n);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 n=this.loaders[e];n&&n.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,n){const{url:r}=n;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:dt.MANIFEST,url:r,deliveryDirectives:null})}onLevelLoading(e,n){const{id:r,level:i,pathwayId:s,url:a,deliveryDirectives:o}=n;this.load({id:r,level:i,pathwayId:s,responseType:"text",type:dt.LEVEL,url:a,deliveryDirectives:o})}onAudioTrackLoading(e,n){const{id:r,groupId:i,url:s,deliveryDirectives:a}=n;this.load({id:r,groupId:i,level:null,responseType:"text",type:dt.AUDIO_TRACK,url:s,deliveryDirectives:a})}onSubtitleTrackLoading(e,n){const{id:r,groupId:i,url:s,deliveryDirectives:a}=n;this.load({id:r,groupId:i,level:null,responseType:"text",type:dt.SUBTITLE_TRACK,url:s,deliveryDirectives:a})}load(e){var n;const r=this.hls.config;let i=this.getInternalLoader(e);if(i){const c=i.context;if(c&&c.url===e.url&&c.level===e.level){J.trace("[playlist-loader]: playlist request ongoing");return}J.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),i.abort()}let s;if(e.type===dt.MANIFEST?s=r.manifestLoadPolicy.default:s=Tn({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),i=this.createInternalLoader(e),Te((n=e.deliveryDirectives)==null?void 0:n.part)){let c;if(e.type===dt.LEVEL&&e.level!==null?c=this.hls.levels[e.level].details:e.type===dt.AUDIO_TRACK&&e.id!==null?c=this.hls.audioTracks[e.id].details:e.type===dt.SUBTITLE_TRACK&&e.id!==null&&(c=this.hls.subtitleTracks[e.id].details),c){const u=c.partTarget,f=c.targetduration;if(u&&f){const d=Math.max(u*3,f*.8)*1e3;s=Tn({},s,{maxTimeToFirstByteMs:Math.min(d,s.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(d,s.maxTimeToFirstByteMs)})}}}const a=s.errorRetry||s.timeoutRetry||{},o={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:a.maxNumRetry||0,retryDelay:a.retryDelayMs||0,maxRetryDelay:a.maxRetryDelayMs||0},l={onSuccess:(c,u,f,d)=>{const h=this.getInternalLoader(f);this.resetInternalLoader(f.type);const p=c.data;if(p.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(c,f,new Error("no EXTM3U delimiter"),d||null,u);return}u.parsing.start=performance.now(),Ts.isMediaPlaylist(p)?this.handleTrackOrLevelPlaylist(c,u,f,d||null,h):this.handleMasterPlaylist(c,u,f,d)},onError:(c,u,f,d)=>{this.handleNetworkError(u,f,!1,c,d)},onTimeout:(c,u,f)=>{this.handleNetworkError(u,f,!0,void 0,c)}};i.load(e,o,l)}handleMasterPlaylist(e,n,r,i){const s=this.hls,a=e.data,o=Bv(e,r),l=Ts.parseMasterPlaylist(a,o);if(l.playlistParsingError){this.handleManifestParsingError(e,r,l.playlistParsingError,i,n);return}const{contentSteering:c,levels:u,sessionData:f,sessionKeys:d,startTimeOffset:h,variableList:p}=l;this.variableList=p;const{AUDIO:m=[],SUBTITLES:g,"CLOSED-CAPTIONS":_}=Ts.parseMasterPlaylistMedia(a,o,l);m.length&&!m.some(y=>!y.url)&&u[0].audioCodec&&!u[0].attrs.AUDIO&&(J.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 zt({}),bitrate:0,url:""})),s.trigger(I.MANIFEST_LOADED,{levels:u,audioTracks:m,subtitles:g,captions:_,contentSteering:c,url:o,stats:n,networkDetails:i,sessionData:f,sessionKeys:d,startTimeOffset:h,variableList:p})}handleTrackOrLevelPlaylist(e,n,r,i,s){const a=this.hls,{id:o,level:l,type:c}=r,u=Bv(e,r),f=0,d=Te(l)?l:Te(o)?o:0,h=sL(r),p=Ts.parseLevelPlaylist(e.data,u,d,h,f,this.variableList);if(c===dt.MANIFEST){const m={attrs:new zt({}),bitrate:0,details:p,name:"",url:u};a.trigger(I.MANIFEST_LOADED,{levels:[m],audioTracks:[],url:u,stats:n,networkDetails:i,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}n.parsing.end=performance.now(),r.levelDetails=p,this.handlePlaylistLoaded(p,e,n,r,i,s)}handleManifestParsingError(e,n,r,i,s){this.hls.trigger(I.ERROR,{type:Fe.NETWORK_ERROR,details:ne.MANIFEST_PARSING_ERROR,fatal:n.type===dt.MANIFEST,url:e.url,err:r,error:r,reason:r.message,response:e,context:n,networkDetails:i,stats:s})}handleNetworkError(e,n,r=!1,i,s){let a=`A network ${r?"timeout":"error"+(i?" (status "+i.code+")":"")} occurred while loading ${e.type}`;e.type===dt.LEVEL?a+=`: ${e.level} id: ${e.id}`:(e.type===dt.AUDIO_TRACK||e.type===dt.SUBTITLE_TRACK)&&(a+=` id: ${e.id} group-id: "${e.groupId}"`);const o=new Error(a);J.warn(`[playlist-loader]: ${a}`);let l=ne.UNKNOWN,c=!1;const u=this.getInternalLoader(e);switch(e.type){case dt.MANIFEST:l=r?ne.MANIFEST_LOAD_TIMEOUT:ne.MANIFEST_LOAD_ERROR,c=!0;break;case dt.LEVEL:l=r?ne.LEVEL_LOAD_TIMEOUT:ne.LEVEL_LOAD_ERROR,c=!1;break;case dt.AUDIO_TRACK:l=r?ne.AUDIO_TRACK_LOAD_TIMEOUT:ne.AUDIO_TRACK_LOAD_ERROR,c=!1;break;case dt.SUBTITLE_TRACK:l=r?ne.SUBTITLE_TRACK_LOAD_TIMEOUT:ne.SUBTITLE_LOAD_ERROR,c=!1;break}u&&this.resetInternalLoader(e.type);const f={type:Fe.NETWORK_ERROR,details:l,fatal:c,url:e.url,loader:u,context:e,error:o,networkDetails:n,stats:s};if(i){const d=(n==null?void 0:n.url)||e.url;f.response=Kn({url:d,data:void 0},i)}this.hls.trigger(I.ERROR,f)}handlePlaylistLoaded(e,n,r,i,s,a){const o=this.hls,{type:l,level:c,id:u,groupId:f,deliveryDirectives:d}=i,h=Bv(n,i),p=sL(i),m=typeof i.level=="number"&&p===De.MAIN?c:void 0;if(!e.fragments.length){const _=new Error("No Segments found in Playlist");o.trigger(I.ERROR,{type:Fe.NETWORK_ERROR,details:ne.LEVEL_EMPTY_ERROR,fatal:!1,url:h,error:_,reason:_.message,response:n,context:i,level:m,parent:p,networkDetails:s,stats:r});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const g=e.playlistParsingError;if(g){o.trigger(I.ERROR,{type:Fe.NETWORK_ERROR,details:ne.LEVEL_PARSING_ERROR,fatal:!1,url:h,error:g,reason:g.message,response:n,context:i,level:m,parent:p,networkDetails:s,stats:r});return}switch(e.live&&a&&(a.getCacheAge&&(e.ageHeader=a.getCacheAge()||0),(!a.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),l){case dt.MANIFEST:case dt.LEVEL:o.trigger(I.LEVEL_LOADED,{details:e,level:m||0,id:u||0,stats:r,networkDetails:s,deliveryDirectives:d});break;case dt.AUDIO_TRACK:o.trigger(I.AUDIO_TRACK_LOADED,{details:e,id:u||0,groupId:f||"",stats:r,networkDetails:s,deliveryDirectives:d});break;case dt.SUBTITLE_TRACK:o.trigger(I.SUBTITLE_TRACK_LOADED,{details:e,id:u||0,groupId:f||"",stats:r,networkDetails:s,deliveryDirectives:d});break}}}function uN(t,e){let n;try{n=new Event("addtrack")}catch{n=document.createEvent("Event"),n.initEvent("addtrack",!1,!1)}n.track=t,e.dispatchEvent(n)}function fN(t,e){const n=t.mode;if(n==="disabled"&&(t.mode="hidden"),t.cues&&!t.cues.getCueById(e.id))try{if(t.addCue(e),!t.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(r){J.debug(`[texttrack-utils]: ${r}`);try{const i=new self.TextTrackCue(e.startTime,e.endTime,e.text);i.id=e.id,t.addCue(i)}catch(i){J.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${i}`)}}n==="disabled"&&(t.mode=n)}function Sc(t){const e=t.mode;if(e==="disabled"&&(t.mode="hidden"),t.cues)for(let n=t.cues.length;n--;)t.removeCue(t.cues[n]);e==="disabled"&&(t.mode=e)}function ub(t,e,n,r){const i=t.mode;if(i==="disabled"&&(t.mode="hidden"),t.cues&&t.cues.length>0){const s=OX(t.cues,e,n);for(let a=0;a<s.length;
108a++)(!r||r(s[a]))&&t.removeCue(s[a])}i==="disabled"&&(t.mode=i)}function DX(t,e){if(e<t[0].startTime)return 0;const n=t.length-1;if(e>t[n].endTime)return-1;let r=0,i=n;for(;r<=i;){const s=Math.floor((i+r)/2);if(e<t[s].startTime)i=s-1;else if(e>t[s].startTime&&r<n)r=s+1;else return s}return t[r].startTime-e<e-t[i].startTime?r:i}function OX(t,e,n){const r=[],i=DX(t,e);if(i>-1)for(let s=i,a=t.length;s<a;s++){const o=t[s];if(o.startTime>=e&&o.endTime<=n)r.push(o);else if(o.startTime>n)return r}return r}function yp(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n];(r.kind==="subtitles"||r.kind==="captions")&&r.label&&e.push(t[n])}return e}var Wi={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"};const MX=.25;function fb(){if(!(typeof self>"u"))return self.VTTCue||self.TextTrackCue}function aL(t,e,n,r,i){let s=new t(e,n,"");try{s.value=r,i&&(s.type=i)}catch{s=new t(e,n,JSON.stringify(i?Kn({type:i},r):r))}return s}const Fh=(()=>{const t=fb();try{t&&new t(0,Number.POSITIVE_INFINITY,"")}catch{return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function Uv(t,e){return t.getTime()/1e3-e}function NX(t){return Uint8Array.from(t.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class FX{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(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(I.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(I.LEVEL_UPDATED,this.onLevelUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(I.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(I.LEVEL_UPDATED,this.onLevelUpdated,this)}onMediaAttached(e,n){this.media=n.media}onMediaDetaching(){this.id3Track&&(Sc(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const n=this.getID3Track(e.textTracks);return n.mode="hidden",n}getID3Track(e){if(this.media){for(let n=0;n<e.length;n++){const r=e[n];if(r.kind==="metadata"&&r.label==="id3")return uN(r,this.media),r}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,n){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:r,enableID3MetadataCues:i}}}=this;if(!r&&!i)return;const{samples:s}=n;this.id3Track||(this.id3Track=this.createTrack(this.media));const a=fb();if(a)for(let o=0;o<s.length;o++){const l=s[o].type;if(l===Wi.emsg&&!r||!i)continue;const c=eN(s[o].data);if(c){const u=s[o].pts;let f=u+s[o].duration;f>Fh&&(f=Fh),f-u<=0&&(f=u+MX);for(let h=0;h<c.length;h++){const p=c[h];if(!ZM(p)){this.updateId3CueEnds(u,l);const m=aL(a,u,f,p,l);m&&this.id3Track.addCue(m)}}}}}updateId3CueEnds(e,n){var r;const i=(r=this.id3Track)==null?void 0:r.cues;if(i)for(let s=i.length;s--;){const a=i[s];a.type===n&&a.startTime<e&&a.endTime===Fh&&(a.endTime=e)}}onBufferFlushing(e,{startOffset:n,endOffset:r,type:i}){const{id3Track:s,hls:a}=this;if(!a)return;const{config:{enableEmsgMetadataCues:o,enableID3MetadataCues:l}}=a;if(s&&(o||l)){let c;i==="audio"?c=u=>u.type===Wi.audioId3&&l:i==="video"?c=u=>u.type===Wi.emsg&&o:c=u=>u.type===Wi.audioId3&&l||u.type===Wi.emsg&&o,ub(s,n,r,c)}}onLevelUpdated(e,{details:n}){if(!this.media||!n.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{dateRangeCuesAppended:r,id3Track:i}=this,{dateRanges:s}=n,a=Object.keys(s);if(i){const u=Object.keys(r).filter(f=>!a.includes(f));for(let f=u.length;f--;){const d=u[f];
108Object.keys(r[d].cues).forEach(h=>{i.removeCue(r[d].cues[h])}),delete r[d]}}const o=n.fragments[n.fragments.length-1];if(a.length===0||!Te(o==null?void 0:o.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const l=o.programDateTime/1e3-o.start,c=fb();for(let u=0;u<a.length;u++){const f=a[u],d=s[f],h=Uv(d.startDate,l),p=r[f],m=(p==null?void 0:p.cues)||{};let g=(p==null?void 0:p.durationKnown)||!1,_=Fh;const v=d.endDate;if(v)_=Uv(v,l),g=!0;else if(d.endOnNext&&!g){const E=a.reduce((b,T)=>{if(T!==d.id){const S=s[T];if(S.class===d.class&&S.startDate>d.startDate&&(!b||d.startDate<b.startDate))return S}return b},null);E&&(_=Uv(E.startDate,l),g=!0)}const y=Object.keys(d.attr);for(let E=0;E<y.length;E++){const b=y[E];if(!U6(b))continue;const T=m[b];if(T)g&&!p.durationKnown&&(T.endTime=_);else if(c){let S=d.attr[b];H6(b)&&(S=NX(S));const A=aL(c,h,_,{key:b,data:S},Wi.dateRange);A&&(A.id=f,this.id3Track.addCue(A),m[b]=A)}}r[f]={cues:m,dateRange:d,durationKnown:g}}}}class $X{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:n}=this;return e.liveMaxLatencyDuration!==void 0?e.liveMaxLatencyDuration:n?e.liveMaxLatencyDurationCount*n.targetduration:0}get targetLatency(){const{levelDetails:e}=this;if(e===null)return null;const{holdBack:n,partHoldBack:r,targetduration:i}=e,{liveSyncDuration:s,liveSyncDurationCount:a,lowLatencyMode:o}=this.config,l=this.hls.userConfig;let c=o&&r||n;(l.liveSyncDuration||l.liveSyncDurationCount||c===0)&&(c=s!==void 0?s:a*i);const u=i;return c+Math.min(this.stallCount*1,u)}get liveSyncPosition(){const e=this.estimateLiveEdge(),n=this.targetLatency,r=this.levelDetails;if(e===null||n===null||r===null)return null;const i=r.edge,s=e-n-this.edgeStalled,a=i-r.totalduration,o=i-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(a,s),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 n=(this.config.lowLatencyMode&&e.partTarget||e.targetduration)*3;return Math.max(e.age-n,0)}get forwardBufferLength(){const{media:e,levelDetails:n}=this;if(!e||!n)return 0;const r=e.buffered.length;return(r?e.buffered.end(r-1):n.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null}registerListeners(){this.hls.on(I.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(I.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(I.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(I.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(I.ERROR,this.onError,this)}unregisterListeners(){this.hls.off(I.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(I.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(I.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(I.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(I.ERROR,this.onError,this)}onMediaAttached(e,n){this.media=n.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:n}){this.levelDetails=n,n.advanced&&this.timeupdate(),!n.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}onError(e,n){var r;n.details===ne.BUFFER_STALLED_ERROR&&(this.stallCount++,(r=this.levelDetails)!=null&&r.live&&J.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))}timeupdate(){const{media:e,levelDetails:n}=this;if(!e||!n)return;this.currentTime=e.currentTime;const r=this.computeLatency();if(r===null)return;this._latency=r;const{lowLatencyMode:i,maxLiveSyncPlaybackRate:s}=this.config;if(!i||s===1||!n.live)return;const a=this.targetLatency;if(a===null)return;const o=r-a,l=Math.min(this.maxLatency,a+n.targetduration);if(o<l&&o>.05&&this.forwardBufferLength>1){const u=Math.min(2,Math.max(1,s)),f=Math.round(2/(1+Math.exp(-.75*o-this.edgeStalled))*20)/20;e.playbackRate=Math.min(u,Math.max(1,f))}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 db=["NONE","TYPE-0","TYPE-1",null];function BX(t){return db.indexOf(t)>-1}const Gm=["SDR","PQ","HLG"];function UX(t){return!!t&&Gm.indexOf(t)>-1}var vp={No:"",Yes:"YES",v2:"v2"};function oL(t){const{canSkipUntil:e,canSkipDateRanges:n,age:r}=t,i=r<e/2;return e&&i?n?vp.v2:vp.Yes:vp.No}class lL{constructor(e,n,r){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=n,this.skip=r}addDirectives(e){const n=new self.URL(e);return this.msn!==void 0&&n.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&n.searchParams.set("_HLS_part",this.part.toString()),this.skip&&n.searchParams.set("_HLS_skip",this.skip),n.href}}class fu{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(n=>!!n).map(n=>n.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 cL(this._audioGroups,e)}hasSubtitleGroup(e){return cL(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,n){if(n){if(e==="audio"){let r=this._audioGroups;r||(r=this._audioGroups=[]),r.indexOf(n)===-1&&r.push(n)}else if(e==="text"){let r=this._subtitleGroups;r||(r=this._subtitleGroups=[]),r.indexOf(n)===-1&&r.push(n)}}}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 cL(t,e){return!e||!t?!1:t.indexOf(e)!==-1}function Hv(t,e){const n=e.startPTS;if(Te(n)){let r=0,i;e.sn>t.sn?(r=n-t.start,i=t):(r=t.start-n,i=e),i.duration!==r&&(i.duration=r)}else e.sn>t.sn?t.cc===e.cc&&t.minEndPTS?e.start=t.start+(t.minEndPTS-t.start):e.start=t.start+t.duration:e.start=Math.max(t.start-e.duration,0)}function dN(t,e,n,r,i,s){r-n<=0&&(J.warn("Fragment should have a positive duration",e),r=n+e.duration,s=i+e.duration);let o=n,l=r;const c=e.startPTS,u=e.endPTS;if(Te(c)){const g=Math.abs(c-n);Te(e.deltaPTS)?e.deltaPTS=Math.max(g,e.deltaPTS):e.deltaPTS=g,o=Math.max(n,c),n=Math.min(n,c),i=Math.min(i,e.startDTS),l=Math.min(r,u),r=Math.max(r,u),s=Math.max(s,e.endDTS)}const f=n-e.start;e.start!==0&&(e.start=n),e.duration=r-e.start,e.startPTS=n,e.maxStartPTS=o,e.startDTS=i,e.endPTS=r,e.minEndPTS=l,e.endDTS=s;const d=e.sn;if(!t||d<t.startSN||d>t.endSN)return 0;let h;const p=d-t.startSN,m=t.fragments;for(m[p]=e,h=p;h>0;h--)Hv(m[h],m[h-1]);for(h=p;h<m.length-1;h++)Hv(m[h],m[h+1]);return t.fragmentHint&&Hv(m[m.length-1],t.fragmentHint),t.PTSKnown=t.alignedSliding=!0,f}function HX(t,e){let n=null;const r=t.fragments;for(let o=r.length-1;o>=0;
108o--){const l=r[o].initSegment;if(l){n=l;break}}t.fragmentHint&&delete t.fragmentHint.endPTS;let i;VX(t,e,(o,l,c,u)=>{if(e.skippedSegments&&l.cc!==o.cc){const f=o.cc-l.cc;for(let d=c;d<u.length;d++)u[d].cc+=f}Te(o.startPTS)&&Te(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&&(i=l),e.PTSKnown=e.alignedSliding=!0),l.elementaryStreams=o.elementaryStreams,l.loader=o.loader,l.stats=o.stats,o.initSegment&&(l.initSegment=o.initSegment,n=o.initSegment)});const s=e.fragments;if(n&&(e.fragmentHint?s.concat(e.fragmentHint):s).forEach(l=>{var c;l&&(!l.initSegment||l.initSegment.relurl===((c=n)==null?void 0:c.relurl))&&(l.initSegment=n)}),e.skippedSegments){if(e.deltaUpdateFailed=s.some(o=>!o),e.deltaUpdateFailed){J.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let o=e.skippedSegments;o--;)s.shift();e.startSN=s[0].sn}else e.canSkipDateRanges&&(e.dateRanges=GX(t.dateRanges,e.dateRanges,e.recentlyRemovedDateranges));e.startCC=e.fragments[0].cc,e.endCC=s[s.length-1].cc}jX(t.partList,e.partList,(o,l)=>{l.elementaryStreams=o.elementaryStreams,l.stats=o.stats}),i?dN(e,i,i.startPTS,i.endPTS,i.startDTS,i.endDTS):hN(t,e),s.length&&(e.totalduration=e.edge-s[0].start),e.driftStartTime=t.driftStartTime,e.driftStart=t.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=t.driftEndTime,e.driftEnd=t.driftEnd,e.advancedDateTime=t.advancedDateTime}function GX(t,e,n){const r=Tn({},t);return n&&n.forEach(i=>{delete r[i]}),Object.keys(e).forEach(i=>{const s=new zM(e[i].attr,r[i]);s.isValid?r[i]=s:J.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[i].attr)}"`)}),r}function jX(t,e,n){if(t&&e){let r=0;for(let i=0,s=t.length;i<=s;i++){const a=t[i],o=e[i+r];a&&o&&a.index===o.index&&a.fragment.sn===o.fragment.sn?n(a,o):r--}}}function VX(t,e,n){const r=e.skippedSegments,i=Math.max(t.startSN,e.startSN)-e.startSN,s=(t.fragmentHint?1:0)+(r?e.endSN:Math.min(t.endSN,e.endSN))-e.startSN,a=e.startSN-t.startSN,o=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,l=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments;for(let c=i;c<=s;c++){const u=l[a+c];let f=o[c];r&&!f&&c<r&&(f=e.fragments[c]=u),u&&f&&n(u,f,c,o)}}function hN(t,e){const n=e.startSN+e.skippedSegments-t.startSN,r=t.fragments;n<0||n>=r.length||hb(e,r[n].start)}function hb(t,e){if(e){const n=t.fragments;for(let r=t.skippedSegments;r<n.length;r++)n[r].start+=e;t.fragmentHint&&(t.fragmentHint.start+=e)}}function qX(t,e=1/0){let n=1e3*t.targetduration;if(t.updated){const r=t.fragments;if(r.length&&n*4>e){const s=r[r.length-1].duration*1e3;s<n&&(n=s)}}else n/=2;return Math.round(n)}function KX(t,e,n){if(!(t!=null&&t.details))return null;const r=t.details;let i=r.fragments[e-r.startSN];return i||(i=r.fragmentHint,i&&i.sn===e)?i:e<r.startSN&&n&&n.sn===e?n:null}function uL(t,e,n){var r;return t!=null&&t.details?pN((r=t.details)==null?void 0:r.partList,e,n):null}function pN(t,e,n){if(t)for(let r=t.length;r--;){const i=t[r];if(i.index===n&&i.fragment.sn===e)return i}return null}function mN(t){t.forEach((e,n)=>{const{details:r}=e;r!=null&&r.fragments&&r.fragments.forEach(i=>{i.level=n})})}function jm(t){switch(t.details){case ne.FRAG_LOAD_TIMEOUT:case ne.KEY_LOAD_TIMEOUT:case ne.LEVEL_LOAD_TIMEOUT:case ne.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function fL(t,e){const n=jm(e);return t.default[`${n?"timeout":"error"}Retry`]}function CS(t,e){const n=t.backoff==="linear"?1:Math.pow(2,e);return Math.min(n*t.retryDelayMs,t.maxRetryDelayMs)}function dL(t){return Kn(Kn({},t),{errorRetry:null,timeoutRetry:null})}function Vm(t,e,n,r){if(!t)return!1;const i=r==null?void 0:r.code,s=e<t.maxNumRetry&&(WX(i)||!!n);return t.shouldRetry?t.shouldRetry(t,e,n,r,s):s}function WX(t){return t===0&&navigator.onLine===!1||!!t&&(t<400||t>499)}const gN={search:function(t,e){let n=0,r=t.length-1,i=null,s=null;for(;n<=r;){i=(n+r)/2|0,s=t[i];const a=e(s);if(a>0)n=i+1;else if(a<0)r=i-1;else return s}return null}};function zX(t,e,n){if(e===null||!Array.isArray(t)||!t.length||!Te(e))return null;const r=t[0].programDateTime;if(e<(r||0))return null;const i=t[t.length-1].endProgramDateTime;if(e>=(i||0))return null;n=n||0;for(let s=0;s<t.length;++s){const a=t[s];if(XX(e,n,a))return a}return null}function qm(t,e,n=0,r=0,i=.005){let s=null;if(t){s=e[t.sn-e[0].sn+1]||null;const o=t.endDTS-n;o>0&&o<15e-7&&(n+=15e-7)}else n===0&&e[0].start===0&&(s=e[0]);if(s&&((!t||t.level===s.level)&&pb(n,r,s)===0||YX(s,t,Math.min(i,r))))return s;const a=gN.search(e,pb.bind(null,n,r));return a&&(a!==t||!s)?a:s}function YX(t,e,n){if(e&&e.start===0&&e.level<t.level&&(e.endPTS||0)>0){const r=e.tagList.reduce((i,s)=>(s[0]==="INF"&&(i+=parseFloat(s[1])),i),n);return t.start<=r}return!1}function pb(t=0,e=0,n){if(n.start<=t&&n.start+n.duration>t)return 0;const r=Math.min(e,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-r<=t?1:n.start-r>t&&n.start?-1:0}function XX(t,e,n){const r=Math.min(e,n.duration+(n.deltaPTS?n.deltaPTS:0))*1e3;return(n.endProgramDateTime||0)-r>t}function JX(t,e){return gN.search(t,n=>n.cc<e?1:n.cc>e?-1:0)}var Jn={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},Gi={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class QX{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=J.log.bind(J,"[info]:"),this.warn=J.warn.bind(J,"[warning]:"),this.error=J.error.bind(J,"[error]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(I.ERROR,this.onError,this),e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(I.ERROR,this.onError,this),e.off(I.ERROR,this.onErrorOut,this),e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.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)===De.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,n){var r,i;if(n.fatal)return;const s=this.hls,a=n.context;switch(n.details){case ne.FRAG_LOAD_ERROR:case ne.FRAG_LOAD_TIMEOUT:case ne.KEY_LOAD_ERROR:case ne.KEY_LOAD_TIMEOUT:n.errorAction=this.getFragRetryOrSwitchAction(n);return;case ne.FRAG_PARSING_ERROR:if((r=n.frag)!=null&&r.gap){n.errorAction={action:Jn.DoNothing,flags:Gi.None};return}case ne.FRAG_GAP:case ne.FRAG_DECRYPT_ERROR:{n.errorAction=this.getFragRetryOrSwitchAction(n),n.errorAction.action=Jn.SendAlternateToPenaltyBox;return}case ne.LEVEL_EMPTY_ERROR:case ne.LEVEL_PARSING_ERROR:{var o,l;const c=n.parent===De.MAIN?n.level:s.loadLevel;n.details===ne.LEVEL_EMPTY_ERROR&&((o=n.context)!=null&&(l=o.levelDetails)!=null&&l.live)?n.errorAction=this.getPlaylistRetryOrSwitchAction(n,c):(n.levelRetry=!1,n.errorAction=this.getLevelSwitchAction(n,c))}return;case ne.LEVEL_LOAD_ERROR:case ne.LEVEL_LOAD_TIMEOUT:typeof(a==null?void 0:a.level)=="number"&&(n.errorAction=this.getPlaylistRetryOrSwitchAction(n,a.level));return;case ne.AUDIO_TRACK_LOAD_ERROR:case ne.AUDIO_TRACK_LOAD_TIMEOUT:case ne.SUBTITLE_LOAD_ERROR:case ne.SUBTITLE_TRACK_LOAD_TIMEOUT:if(a){const c=s.levels[s.loadLevel];if(c&&(a.type===dt.AUDIO_TRACK&&c.hasAudioGroup(a.groupId)||a.type===dt.SUBTITLE_TRACK&&c.hasSubtitleGroup(a.groupId))){n.errorAction=this.getPlaylistRetryOrSwitchAction(n,s.loadLevel),n.errorAction.action=Jn.SendAlternateToPenaltyBox,n.errorAction.flags=Gi.MoveAllAlternatesMatchingHost;return}}return;case ne.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const c=s.levels[s.loadLevel],u=c==null?void 0:c.attrs["HDCP-LEVEL"];u?n.errorAction={action:Jn.SendAlternateToPenaltyBox,flags:Gi.MoveAllAlternatesMatchingHDCP,hdcpLevel:u}:this.keySystemError(n)}return;
vendor: 4,315 bytes, line 108
108case ne.BUFFER_ADD_CODEC_ERROR:case ne.REMUX_ALLOC_ERROR:case ne.BUFFER_APPEND_ERROR:n.errorAction=this.getLevelSwitchAction(n,(i=n.level)!=null?i:s.loadLevel);return;case ne.INTERNAL_EXCEPTION:case ne.BUFFER_APPENDING_ERROR:case ne.BUFFER_FULL_ERROR:case ne.LEVEL_SWITCH_ERROR:case ne.BUFFER_STALLED_ERROR:case ne.BUFFER_SEEK_OVER_HOLE:case ne.BUFFER_NUDGE_ON_STALL:n.errorAction={action:Jn.DoNothing,flags:Gi.None};return}n.type===Fe.KEY_SYSTEM_ERROR&&this.keySystemError(n)}keySystemError(e){const n=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,n)}getPlaylistRetryOrSwitchAction(e,n){const r=this.hls,i=fL(r.config.playlistLoadPolicy,e),s=this.playlistError++;if(Vm(i,s,jm(e),e.response))return{action:Jn.RetryRequest,flags:Gi.None,retryConfig:i,retryCount:s};const o=this.getLevelSwitchAction(e,n);return i&&(o.retryConfig=i,o.retryCount=s),o}getFragRetryOrSwitchAction(e){const n=this.hls,r=this.getVariantLevelIndex(e.frag),i=n.levels[r],{fragLoadPolicy:s,keyLoadPolicy:a}=n.config,o=fL(e.details.startsWith("key")?a:s,e),l=n.levels.reduce((u,f)=>u+f.fragmentError,0);if(i&&(e.details!==ne.FRAG_GAP&&i.fragmentError++,Vm(o,l,jm(e),e.response)))return{action:Jn.RetryRequest,flags:Gi.None,retryConfig:o,retryCount:l};const c=this.getLevelSwitchAction(e,r);return o&&(c.retryConfig=o,c.retryCount=l),c}getLevelSwitchAction(e,n){const r=this.hls;n==null&&(n=r.loadLevel);const i=this.hls.levels[n];if(i){var s,a;const c=e.details;i.loadError++,c===ne.BUFFER_APPEND_ERROR&&i.fragmentError++;let u=-1;const{levels:f,loadLevel:d,minAutoLevel:h,maxAutoLevel:p}=r;r.autoLevelEnabled||(r.loadLevel=-1);const m=(s=e.frag)==null?void 0:s.type,_=(m===De.AUDIO&&c===ne.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(c===ne.BUFFER_ADD_CODEC_ERROR||c===ne.BUFFER_APPEND_ERROR))&&f.some(({audioCodec:T})=>i.audioCodec!==T),y=e.sourceBufferName==="video"&&(c===ne.BUFFER_ADD_CODEC_ERROR||c===ne.BUFFER_APPEND_ERROR)&&f.some(({codecSet:T,audioCodec:S})=>i.codecSet!==T&&i.audioCodec===S),{type:E,groupId:b}=(a=e.context)!=null?a:{};for(let T=f.length;T--;){const S=(T+d)%f.length;if(S!==d&&S>=h&&S<=p&&f[S].loadError===0){var o,l;const A=f[S];if(c===ne.FRAG_GAP&&m===De.MAIN&&e.frag){const w=f[S].details;if(w){const x=qm(e.frag,w.fragments,e.frag.start);if(x!=null&&x.gap)continue}}else{if(E===dt.AUDIO_TRACK&&A.hasAudioGroup(b)||E===dt.SUBTITLE_TRACK&&A.hasSubtitleGroup(b))continue;if(m===De.AUDIO&&(o=i.audioGroups)!=null&&o.some(w=>A.hasAudioGroup(w))||m===De.SUBTITLE&&(l=i.subtitleGroups)!=null&&l.some(w=>A.hasSubtitleGroup(w))||_&&i.audioCodec===A.audioCodec||!_&&i.audioCodec!==A.audioCodec||y&&i.codecSet===A.codecSet)continue}u=S;break}}if(u>-1&&r.loadLevel!==u)return e.levelRetry=!0,this.playlistError=0,{action:Jn.SendAlternateToPenaltyBox,flags:Gi.None,nextAutoLevel:u}}return{action:Jn.SendAlternateToPenaltyBox,flags:Gi.MoveAllAlternatesMatchingHost}}onErrorOut(e,n){var r;switch((r=n.errorAction)==null?void 0:r.action){case Jn.DoNothing:break;case Jn.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(n),!n.errorAction.resolved&&n.details!==ne.FRAG_GAP?n.fatal=!0:/MediaSource readyState: ended/.test(n.error.message)&&(this.warn(`MediaSource ended after "${n.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break}if(n.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const n=this.hls,r=e.errorAction;if(!r)return;const{flags:i,hdcpLevel:s,nextAutoLevel:a}=r;switch(i){case Gi.None:this.switchLevel(e,a);break;case Gi.MoveAllAlternatesMatchingHDCP:s&&(n.maxHdcpLevel=db[db.indexOf(s)-1],r.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${n.maxHdcpLevel}" or lower`);break}r.resolved||this.switchLevel(e,a)}switchLevel(e,n){n!==void 0&&e.errorAction&&(this.warn(`switching to level ${n} after ${e.details}`),this.hls.nextAutoLevel=n,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)}}class IS{constructor(e,n){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=J.log.bind(J,`${n}:`),this.warn=J.warn.bind(J,`${n}:`),this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}
108startLoad(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,n,r){const i=n==null?void 0:n.renditionReports;if(i){let s=-1;for(let a=0;a<i.length;a++){const o=i[a];let l;try{l=new self.URL(o.URI,n.url).href}catch(c){J.warn(`Could not construct new URL for Rendition Report: ${c}`),l=o.URI||""}if(l===e){s=a;break}else l===e.substring(0,l.length)&&(s=a)}if(s!==-1){const a=i[s],o=parseInt(a["LAST-MSN"])||(n==null?void 0:n.lastPartSn);let l=parseInt(a["LAST-PART"])||(n==null?void 0:n.lastPartIndex);if(this.hls.config.lowLatencyMode){const u=Math.min(n.age-n.partTarget,n.targetduration);l>=0&&u>n.partTarget&&(l+=1)}const c=r&&oL(r);return new lL(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,n,r){const{details:i,stats:s}=n,a=self.performance.now(),o=s.loading.first?Math.max(0,a-s.loading.first):0;if(i.advancedDateTime=Date.now()-o,i.live||r!=null&&r.live){if(i.reloaded(r),r&&this.log(`live playlist ${e} ${i.advanced?"REFRESHED "+i.lastPartSn+"-"+i.lastPartIndex:i.updated?"UPDATED":"MISSED"}`),r&&i.fragments.length>0&&HX(r,i),!this.canLoad||!i.live)return;let l,c,u;if(i.canBlockReload&&i.endSN&&i.advanced){const g=this.hls.config.lowLatencyMode,_=i.lastPartSn,v=i.endSN,y=i.lastPartIndex,E=y!==-1,b=_===v,T=g?0:y;E?(c=b?v+1:_,u=b?T:y+1):c=v+1;const S=i.age,A=S+i.ageHeader;let w=Math.min(A-i.partTarget,i.targetduration*1.5);if(w>0){if(r&&w>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${w} with playlist age: ${i.age}`),w=0;else{const x=Math.floor(w/i.targetduration);if(c+=x,u!==void 0){const L=Math.round(w%i.targetduration/i.partTarget);u+=L}this.log(`CDN Tune-in age: ${i.ageHeader}s last advanced ${S.toFixed(2)}s goal: ${w} skip sn ${x} to part ${u}`)}i.tuneInGoal=w}if(l=this.getDeliveryDirectives(i,n.deliveryDirectives,c,u),g||!b){this.loadPlaylist(l);return}}else(i.canBlockReload||i.canSkipUntil)&&(l=this.getDeliveryDirectives(i,n.deliveryDirectives,c,u));const f=this.hls.mainForwardBufferInfo,d=f?f.end-f.len:0,h=(i.edge-d)*1e3,p=qX(i,h);i.updated&&a>this.requestScheduled+p&&(this.requestScheduled=s.loading.start),c!==void 0&&i.canBlockReload?this.requestScheduled=s.loading.first+p-(i.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+p<a?this.requestScheduled=a:this.requestScheduled-a<=0&&(this.requestScheduled+=p);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,n,r,i){let s=oL(e);return n!=null&&n.skip&&e.deltaUpdateFailed&&(r=n.msn,i=n.part,s=vp.No),new lL(r,i,s)}checkRetry(e){const n=e.details,r=jm(e),i=e.errorAction,{action:s,retryCount:a=0,retryConfig:o}=i||{},l=!!i&&!!o&&(s===Jn.RetryRequest||!i.resolved&&s===Jn.SendAlternateToPenaltyBox);if(l){var c;if(this.requestScheduled=-1,a>=o.maxNumRetry)return!1;if(r&&(c=e.context)!=null&&c.deliveryDirectives)this.warn(`Retrying playlist loading ${a+1}/${o.maxNumRetry} after "${n}" without delivery-directives`),this.loadPlaylist();else{const u=CS(o,a);this.timer=self.setTimeout(()=>this.loadPlaylist(),u),this.warn(`Retrying playlist loading ${a+1}/${o.maxNumRetry} after "${n}" in ${u}ms`)}e.levelRetry=!0,i.resolved=!0}return l}}class Zl{constructor(e,n=0,r=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=n,this.totalWeight_=r}sample(e,n){const r=Math.pow(this.alpha_,e);this.estimate_=n*(1-r)+r*this.estimate_,this.totalWeight_+=e}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class ZX{constructor(e,n,r,i=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_
108=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new Zl(e),this.fast_=new Zl(n),this.defaultTTFB_=i,this.ttfb_=new Zl(e)}update(e,n){const{slow_:r,fast_:i,ttfb_:s}=this;r.halfLife!==e&&(this.slow_=new Zl(e,r.getEstimate(),r.getTotalWeight())),i.halfLife!==n&&(this.fast_=new Zl(n,i.getEstimate(),i.getTotalWeight())),s.halfLife!==e&&(this.ttfb_=new Zl(e,s.getEstimate(),s.getTotalWeight()))}sample(e,n){e=Math.max(e,this.minDelayMs_);const r=8*n,i=e/1e3,s=r/i;this.fast_.sample(i,s),this.slow_.sample(i,s)}sampleTTFB(e){const n=e/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(n,2)/2);this.ttfb_.sample(r,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}destroy(){}}const yN={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},hL={};function e9(t,e,n,r,i,s){const a=t.audioCodec?t.audioGroups:null,o=s==null?void 0:s.audioCodec,l=s==null?void 0:s.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((f,d)=>{if(d){const h=e.groups[d];if(!h)throw new Error(`Audio track group ${d} not found`);Object.keys(h.channels).forEach(p=>{f[p]=(f[p]||0)+h.channels[p]})}return f},{2:0})}catch{return!0}return t.videoCodec!==void 0&&(t.width>1920&&t.height>1088||t.height>1920&&t.width>1088||t.frameRate>Math.max(r,30)||t.videoRange!=="SDR"&&t.videoRange!==n||t.bitrate>Math.max(i,8e6))||!!u&&Te(c)&&Object.keys(u).some(f=>parseInt(f)>c)}function t9(t,e,n){const r=t.videoCodec,i=t.audioCodec;if(!r||!i||!n)return Promise.resolve(yN);const s={width:t.width,height:t.height,bitrate:Math.ceil(Math.max(t.bitrate*.9,t.averageBitrate)),framerate:t.frameRate||30},a=t.videoRange;a!=="SDR"&&(s.transferFunction=a.toLowerCase());const o=r.split(",").map(l=>({type:"media-source",video:Kn(Kn({},s),{},{contentType:Ld(l,"video")})}));return i&&t.audioGroups&&t.audioGroups.forEach(l=>{var c;l&&((c=e.groups[l])==null||c.tracks.forEach(u=>{if(u.groupId===l){const f=u.channels||"",d=parseFloat(f);Te(d)&&d>2&&o.push.apply(o,i.split(",").map(h=>({type:"media-source",audio:{contentType:Ld(h,"audio"),channels:""+d}})))}}))}),Promise.all(o.map(l=>{const c=n9(l);return hL[c]||(hL[c]=n.decodingInfo(l))})).then(l=>({supported:!l.some(c=>!c.supported),configurations:o,decodingInfoResults:l})).catch(l=>({supported:!1,configurations:o,decodingInfoResults:[],error:l}))}function n9(t){const{audio:e,video:n}=t,r=n||e;if(r){const i=r.contentType.split('"')[1];if(n)return`r${n.height}x${n.width}f${Math.ceil(n.framerate)}${n.transferFunction||"sd"}_${i}_${Math.ceil(n.bitrate/1e5)}`;if(e)return`c${e.channels}${e.spatialRendering?"s":"n"}_${i}`}return""}function r9(){if(typeof matchMedia=="function"){const t=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(t.media!==e.media)return t.matches===!0}return!1}function i9(t,e){let n=!1,r=[];return t&&(n=t!=="SDR",r=[t]),e&&(r=e.allowedVideoRanges||Gm.slice(0),n=e.preferHDR!==void 0?e.preferHDR:r9(),n?r=r.filter(i=>i!=="SDR"):r=["SDR"]),{preferHDR:n,allowedVideoRanges:r}}function s9(t,e,n,r,i){const s=Object.keys(t),a=r==null?void 0:r.channels,o=r==null?void 0:r.audioCodec,l=a&&parseInt(a)===2;let c=!0,u=!1,f=1/0,d=1/0,h=1/0,p=0,m=[];const{preferHDR:g,allowedVideoRanges:_}=i9(e,i);for(let b=s.length;b--;){const T=t[s[b]];c=T.channels[2]>0,f=Math.min(f,T.minHeight),d=Math.min(d,T.minFramerate),h=Math.min(h,T.minBitrate);const S=_.filter(A=>T.videoRanges[A]>0);S.length>0&&(u=!0,m=S)}f=Te(f)?f:0,d=Te(d)?d:0;const v=Math.max(1080,f),y=Math.max(30,d);return h=Te(h)?h:n,n=Math.max(h,n),u||(e=void 0,m=[]),{codecSet:s.reduce((b,T)=>{const S=t[T];if(T===b)return b;if(S.minBitrate>n)return Gs(T,`min bitrate of ${S.minBitrate} > current estimate of ${n}`),b;if(!S.hasDefaultAudio)return Gs(T,"no renditions with default or auto-select sound found"),b;if(o&&T.indexOf(o.substring(0,4))%5!==0)return Gs(T,`audio codec preference "${o}" not found`),b;if(a&&!l){if(!S.channels[a])return Gs(T,`no renditions with ${a} channel sound found (channels options: ${Object.keys(S.channels)})`),b}else if((!o||l)&&c&&S.channels[2]===0)return Gs(T,"no renditions with stereo sound found"),b;return S.minHeight>
vendor: 3,445 bytes, line 108
108v?(Gs(T,`min resolution of ${S.minHeight} > maximum of ${v}`),b):S.minFramerate>y?(Gs(T,`min framerate of ${S.minFramerate} > maximum of ${y}`),b):m.some(A=>S.videoRanges[A]>0)?S.maxScore<p?(Gs(T,`max score of ${S.maxScore} < selected max of ${p}`),b):b&&(Um(T)>=Um(b)||S.fragmentError>t[b].fragmentError)?b:(p=S.maxScore,T):(Gs(T,`no variants with VIDEO-RANGE of ${JSON.stringify(m)} found`),b)},void 0),videoRanges:m,preferHDR:g,minFramerate:d,minBitrate:h}}function Gs(t,e){J.log(`[abr] start candidates with "${t}" ignored because ${e}`)}function a9(t){return t.reduce((e,n)=>{let r=e.groups[n.groupId];r||(r=e.groups[n.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),r.tracks.push(n);const i=n.channels||"2";return r.channels[i]=(r.channels[i]||0)+1,r.hasDefault=r.hasDefault||n.default,r.hasAutoSelect=r.hasAutoSelect||n.autoselect,r.hasDefault&&(e.hasDefaultAudio=!0),r.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function o9(t,e,n,r){return t.slice(n,r+1).reduce((i,s)=>{if(!s.codecSet)return i;const a=s.audioGroups;let o=i[s.codecSet];o||(i[s.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,s.bitrate);const l=Math.min(s.height,s.width);return o.minHeight=Math.min(o.minHeight,l),o.minFramerate=Math.min(o.minFramerate,s.frameRate),o.maxScore=Math.max(o.maxScore,s.score),o.fragmentError+=s.fragmentError,o.videoRanges[s.videoRange]=(o.videoRanges[s.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(f=>{o.channels[f]=(o.channels[f]||0)+u.channels[f]}))}),i},{})}function Ss(t,e,n){if("attrs"in t){const r=e.indexOf(t);if(r!==-1)return r}for(let r=0;r<e.length;r++){const i=e[r];if(Hc(t,i,n))return r}return-1}function Hc(t,e,n){const{groupId:r,name:i,lang:s,assocLang:a,characteristics:o,default:l}=t,c=t.forced;return(r===void 0||e.groupId===r)&&(i===void 0||e.name===i)&&(s===void 0||e.lang===s)&&(s===void 0||e.assocLang===a)&&(l===void 0||e.default===l)&&(c===void 0||e.forced===c)&&(o===void 0||l9(o,e.characteristics))&&(n===void 0||n(t,e))}function l9(t,e=""){const n=t.split(","),r=e.split(",");return n.length===r.length&&!n.some(i=>r.indexOf(i)===-1)}function ec(t,e){const{audioCodec:n,channels:r}=t;return(n===void 0||(e.audioCodec||"").substring(0,4)===n.substring(0,4))&&(r===void 0||r===(e.channels||"2"))}function c9(t,e,n,r,i){const s=e[r],o=e.reduce((d,h,p)=>{const m=h.uri;return(d[m]||(d[m]=[])).push(p),d},{})[s.uri];o.length>1&&(r=Math.max.apply(Math,o));const l=s.videoRange,c=s.frameRate,u=s.codecSet.substring(0,4),f=pL(e,r,d=>{if(d.videoRange!==l||d.frameRate!==c||d.codecSet.substring(0,4)!==u)return!1;const h=d.audioGroups,p=n.filter(m=>!h||h.indexOf(m.groupId)!==-1);return Ss(t,p,i)>-1});return f>-1?f:pL(e,r,d=>{const h=d.audioGroups,p=n.filter(m=>!h||h.indexOf(m.groupId)!==-1);return Ss(t,p,i)>-1})}function pL(t,e,n){for(let r=e;r>-1;r--)if(n(t[r]))return r;for(let r=e+1;r<t.length;r++)if(n(t[r]))return r;return-1}class u9{constructor(e){this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.co
108decTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this._abandonRulesCheck=()=>{const{fragCurrent:n,partCurrent:r,hls:i}=this,{autoLevelEnabled:s,media:a}=i;if(!n||!a)return;const o=performance.now(),l=r?r.stats:n.stats,c=r?r.duration:n.duration,u=o-l.loading.start,f=i.minAutoLevel;if(l.aborted||l.loaded&&l.loaded===l.total||n.level<=f){this.clearTimer(),this._nextAutoLevel=-1;return}if(!s||a.paused||!a.playbackRate||!a.readyState)return;const d=i.mainForwardBufferInfo;if(d===null)return;const h=this.bwEstimator.getEstimateTTFB(),p=Math.abs(a.playbackRate);if(u<=Math.max(h,1e3*(c/(p*2))))return;const m=d.len/p,g=l.loading.first?l.loading.first-l.loading.start:-1,_=l.loaded&&g>-1,v=this.getBwEstimate(),y=i.levels,E=y[n.level],b=l.total||Math.max(l.loaded,Math.round(c*E.averageBitrate/8));let T=_?u-g:u;T<1&&_&&(T=Math.min(u,l.loaded*8/v));const S=_?l.loaded*1e3/T:0,A=S?(b-l.loaded)/S:b*8/v+h/1e3;if(A<=m)return;const w=S?S*8:v;let x=Number.POSITIVE_INFINITY,L;for(L=n.level-1;L>f;L--){const k=y[L].maxBitrate;if(x=this.getTimeToLoadFrag(h/1e3,w,c*k,!y[L].details),x<m)break}if(x>=A||x>c*10)return;i.nextLoadLevel=i.nextAutoLevel=L,_?this.bwEstimator.sample(u-Math.min(h,g),l.loaded):this.bwEstimator.sampleTTFB(u);const R=y[L].maxBitrate;this.getBwEstimate()*this.hls.config.abrBandWidthUpFactor>R&&this.resetEstimator(R),this.clearTimer(),J.warn(`[abr] Fragment ${n.sn}${r?" part "+r.index:""} of level ${n.level} is loading too slowly; 109 Time to underbuffer: ${m.toFixed(3)} s 110 Estimated load time for current fragment: ${A.toFixed(3)} s 111 Estimated load time for down switch fragment: ${x.toFixed(3)} s 112 TTFB estimate: ${g|0} ms 113 Current BW estimate: ${Te(v)?v|0:"Unknown"} bps 114 New BW estimate: ${this.getBwEstimate()|0} bps 115 Switching to level ${L} @ ${R|0} bps`),i.trigger(I.FRAG_LOAD_EMERGENCY_ABORTED,{frag:n,part:r,stats:l})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(J.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const e=this.hls.config;return new ZX(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.FRAG_LOADING,this.onFragLoading,this),e.on(I.FRAG_LOADED,this.onFragLoaded,this),e.on(I.FRAG_BUFFERED,this.onFragBuffered,this),e.on(I.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(I.LEVEL_LOADED,this.onLevelLoaded,this),e.on(I.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(I.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(I.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.FRAG_LOADING,this.onFragLoading,this),e.off(I.FRAG_LOADED,this.onFragLoaded,this),e.off(I.FRAG_BUFFERED,this.onFragBuffered,this),e.off(I.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(I.LEVEL_LOADED,this.onLevelLoaded,this),e.off(I.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(I.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(I.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,n){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(e,n){const r=n.frag;if(!this.ignoreFragment(r)){if(!r.bitrateTest){var i;this.fragCurrent=r,this.partCurrent=(i=n.part)!=null?i:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,n){this.clearTimer()}onError(e,n){if(!n.fatal)switch(n.details){case ne.BUFFER_ADD_CODEC_ERROR:case ne.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case ne.FRAG_LOAD_TIMEOUT:{const r=n.frag,{fragCurrent:i,partCurrent:s}=this;if(r&&i&&r.sn===i.sn&&r.level===i.level){const a=performance.now(),o=s?s.stats:r.stats,l=a-o.loading.start,c=o.loading.first?o.loading.first-o.loading.start:-1;if(o.loaded&&c>-1){const f=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(l-Math.min(f,c),o.loaded)}else this.bwEstimator.sampleTTFB(l)}break}}}getTimeToLoadFrag(e,n,r,i){const s=e+r/n,a=i?this.lastLevelLoadSec:0;return s+a}onLevelLoaded(e,n){const r=this.hls.config,{loading:i}=n.stats,s=i.end-i.start;Te(s)&&(this.lastLevelLoadSec=s/1e3),n.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD)}onFragLoaded(e,{frag:n,part:r}){const i=r?r.stats:n.stats;if(n.type===De.MAIN&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(n)){if
vendor: 1,910 bytes, line 115
115(this.clearTimer(),n.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const s=r?r.duration:n.duration,a=this.hls.levels[n.level],o=(a.loaded?a.loaded.bytes:0)+i.loaded,l=(a.loaded?a.loaded.duration:0)+s;a.loaded={bytes:o,duration:l},a.realBitrate=Math.round(8*o/l)}if(n.bitrateTest){const s={stats:i,frag:n,part:r,id:n.type};this.onFragBuffered(I.FRAG_BUFFERED,s),n.bitrateTest=!1}else this.lastLoadedFragLevel=n.level}}onFragBuffered(e,n){const{frag:r,part:i}=n,s=i!=null&&i.stats.loaded?i.stats:r.stats;if(s.aborted||this.ignoreFragment(r))return;const a=s.parsing.end-s.loading.start-Math.min(s.loading.first-s.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(a,s.loaded),s.bwEstimate=this.getBwEstimate(),r.bitrateTest?this.bitrateTestDelay=a/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==De.MAIN||e.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:n}=this.hls,r=this.getBwEstimate(),i=this.hls.config.maxStarvationDelay,s=this.findBestLevel(r,n,e,0,i,1,1);if(s>-1)return s;const a=this.hls.firstLevel,o=Math.min(Math.max(a,n),e);return J.warn(`[abr] Could not find best starting auto level. Defaulting to first in playlist ${a} clamped to ${o}`),o}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,r=this.bwEstimator.canEstimate(),i=this.lastLoadedFragLevel>-1;if(e!==-1&&(!r||!i||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const s=r&&i?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const a=this.hls.levels;if(a.length>Math.max(e,s)&&a[e].loadError<=a[s].loadError)return e}return this._nextAutoLevel=s,this.nextAutoLevelKey=this.getAutoLevelKey(),s}getAutoLevelKey(){return`${this.getBwEstimate()}
115_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:n,hls:r}=this,{maxAutoLevel:i,config:s,minAutoLevel:a}=r,o=n?n.duration:e?e.duration:0,l=this.getBwEstimate(),c=this.getStarvationDelay();let u=s.abrBandWidthFactor,f=s.abrBandWidthUpFactor;if(c){const g=this.findBestLevel(l,a,i,c,0,u,f);if(g>=0)return g}let d=o?Math.min(o,s.maxStarvationDelay):s.maxStarvationDelay;if(!c){const g=this.bitrateTestDelay;g&&(d=(o?Math.min(o,s.maxLoadingDelay):s.maxLoadingDelay)-g,J.info(`[abr] bitrate test took ${Math.round(1e3*g)}ms, set first fragment max fetchDuration to ${Math.round(1e3*d)} ms`),u=f=1)}const h=this.findBestLevel(l,a,i,c,d,u,f);if(J.info(`[abr] ${c?"rebuffering expected":"buffer is empty"}, optimal quality level ${h}`),h>-1)return h;const p=r.levels[a],m=r.levels[r.loadLevel];return(p==null?void 0:p.bitrate)<(m==null?void 0:m.bitrate)?a:r.loadLevel}getStarvationDelay(){const e=this.hls,n=e.media;if(!n)return 1/0;const r=n&&n.playbackRate!==0?Math.abs(n.playbackRate):1,i=e.mainForwardBufferInfo;return(i?i.len:0)/r}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,n,r,i,s,a,o){var l;const c=i+s,u=this.lastLoadedFragLevel,f=u===-1?this.hls.firstLevel:u,{fragCurrent:d,partCurrent:h}=this,{levels:p,allAudioTracks:m,loadLevel:g,config:_}=this.hls;if(p.length===1)return 0;const v=p[f],y=!!(v!=null&&(l=v.details)!=null&&l.live),E=g===-1||u===-1;let b,T="SDR",S=(v==null?void 0:v.frameRate)||0;const{audioPreference:A,videoPreference:w}=_,x=this.audioTracksByGroup||(this.audioTracksByGroup=a9(m));if(E){if(this.firstSelection!==-1)return this.firstSelection;const U=this.codecTiers||(this.codecTiers=o9(p,x,n,r)),H=s9(U,T,e,A,w),{codecSet:M,videoRanges:O,minFramerate:q,minBitrate:P,preferHDR:ae}=H;b=M,T=ae?O[O.length-1]:O[0],S=q,e=Math.max(e,P),J.log(`[abr] picked start tier ${JSON.stringify(H)}`)}else b=v==null?void 0:v.codecSet,T=v==null?void 0:v.videoRange;const L=h?h.duration:d?d.duration:0,R=this.bwEstimator.getEstimateTTFB()/1e3,k=[];for(let U=r;U>=n;U--){var F;const H=p[U],M=U>f;if(!H)continue;if(_.useMediaCapabilities&&!H.supportedResult&&!H.supportedPromise){const ve=navigator.mediaCapabilities;typeof(ve==null?void 0:ve.decodingInfo)=="function"&&e9(H,x,T,S,e,A)?(H.supportedPromise=t9(H,x,ve),H.supportedPromise.then(z=>{if(!this.hls)return;H.supportedResult=z;const G=this.hls.levels,N=G.indexOf(H);z.error?J.warn(`[abr] MediaCapabilities decodingInfo error: "${z.error}" for level ${N} ${JSON.stringify(z)}`):z.supported||(J.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${N} ${JSON.stringify(z)}`),N>-1&&G.length>1&&(J.log(`[abr] Removing unsupported level ${N}`),this.hls.removeLevel(N)))})):H.supportedResult=yN}if(b&&H.codecSet!==b||T&&H.videoRange!==T||M&&S>H.frameRate||!M&&S>0&&S<H.frameRate||H.supportedResult&&!((F=H.supportedResult.decodingInfoResults)!=null&&F[0].smooth)){k.push(U);continue}const O=H.details,q=(h?O==null?void 0:O.partTarget:O==null?void 0:O.averagetargetduration)||L;let P;M?P=o*e:P=a*e;const ae=L&&i>=L*2&&s===0?p[U].averageBitrate:p[U].maxBitrate,ce=this.getTimeToLoadFrag(R,P,ae*q,O===void 0);if(P>=ae&&(U===u||H.loadError===0&&H.fragmentError===0)&&(ce<=R||!Te(ce)||y&&!this.bitrateTestDelay||ce<c)){const ve=this.forcedAutoLevel;return U!==g&&(ve===-1||ve!==g)&&(k.length&&J.trace(`[abr] Skipped level(s) ${k.join(",")} of ${r} max with CODECS and VIDEO-RANGE:"${p[k[0]].codecs}" ${p[k[0]].videoRange}; not compatible with "${v.codecs}" ${T}`),J.info(`[abr] switch candidate:${f}->${U} adjustedbw(${Math.round(P)})-bitrate=${Math.round(P-ae)} ttfb:${R.toFixed(1)} avgDuration:${q.toFixed(1)} maxFetchDuration:${c.toFixed(1)} fetchDuration:${ce.toFixed(1)} firstSelection:${E} codecSet:${b} videoRange:${T} hls.loadLevel:${g}`)),E&&(this.firstSelection=U),U}}return-1}set nextAutoLevel(e){const{maxAutoLevel:n,minAutoLevel:r}=this.hls,i=Math.min(Math.max(e,r),n);this._nextAutoLevel!==i&&(this.nextAutoLevelKey="",this._nextAutoLevel=i)}}class f9{constructor(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}var Hn={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class d9{constructor(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(I.BUFFER_APPENDED,this.onBufferAppended,this),e.on(I.FRAG_BUFFERED,this.onFragBuffered,this),e.on(I.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(I.BUFFER_APPENDED,this.onBufferAppended,this),e.off(I.FRAG_BUFFERED,this.onFragBuffered,this),e.off(I.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,n){const r=this.activePartLists[n];if(r)for(let i=r.length;i--;){const s=r[i];if(!s)break;const a=s.end;if(s.start<=e&&a!==null&&e<=a)return s}return this.getBufferedFrag(e,n)}getBufferedFrag(e,n){const{fragments:r}=this,i=Object.keys(r);for(let s=i.length;s--;){const a=r[i[s]];if((a==null?void 0:a.body.type)===n&&a.buffered){const o=a.body;if(o.start<=e&&e<=o.end)return o}}return null}detectEvictedFragments(e,n,r,i){this.timeRanges&&(this.timeRanges[e]=n);const s=(i==null?void 0:i.fragment.sn)||-1;
115Object.keys(this.fragments).forEach(a=>{const o=this.fragments[a];if(!o||s>=o.body.sn)return;if(!o.buffered&&!o.loaded){o.body.type===r&&this.removeFragment(o.body);return}const l=o.range[e];l&&l.time.some(c=>{const u=!this.isTimeBuffered(c.startPTS,c.endPTS,n);return u&&this.removeFragment(o.body),u})})}detectPartialFragments(e){const n=this.timeRanges,{frag:r,part:i}=e;if(!n||r.sn==="initSegment")return;const s=tc(r),a=this.fragments[s];if(!a||a.buffered&&r.gap)return;const o=!r.relurl;Object.keys(n).forEach(l=>{const c=r.elementaryStreams[l];if(!c)return;const u=n[l],f=o||c.partial===!0;a.range[l]=this.getBufferedTimes(r,i,f,u)}),a.loaded=null,Object.keys(a.range).length?(a.buffered=!0,(a.body.endList=r.endList||a.body.endList)&&(this.endListFragments[a.body.type]=a),$h(a)||this.removeParts(r.sn-1,r.type)):this.removeFragment(a.body)}removeParts(e,n){const r=this.activePartLists[n];r&&(this.activePartLists[n]=r.filter(i=>i.fragment.sn>=e))}fragBuffered(e,n){const r=tc(e);let i=this.fragments[r];!i&&n&&(i=this.fragments[r]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),i&&(i.loaded=null,i.buffered=!0)}getBufferedTimes(e,n,r,i){const s={time:[],partial:r},a=e.start,o=e.end,l=e.minEndPTS||o,c=e.maxStartPTS||a;for(let u=0;u<i.length;u++){const f=i.start(u)-this.bufferPadding,d=i.end(u)+this.bufferPadding;if(c>=f&&l<=d){s.time.push({startPTS:Math.max(a,i.start(u)),endPTS:Math.min(o,i.end(u))});break}else if(a<d&&o>f){const h=Math.max(a,i.start(u)),p=Math.min(o,i.end(u));p>h&&(s.partial=!0,s.time.push({startPTS:h,endPTS:p}))}else if(o<=f)break}return s}getPartialFragment(e){let n=null,r,i,s,a=0;const{bufferPadding:o,fragments:l}=this;return Object.keys(l).forEach(c=>{const u=l[c];u&&$h(u)&&(i=u.body.start-o,s=u.body.end+o,e>=i&&e<=s&&(r=Math.min(e-i,s-e),a<=r&&(n=u.body,a=r)))}),n}isEndListAppended(e){const n=this.endListFragments[e];return n!==void 0&&(n.buffered||$h(n))}getState(e){const n=tc(e),r=this.fragments[n];return r?r.buffered?$h(r)?Hn.PARTIAL:Hn.OK:Hn.APPENDING:Hn.NOT_LOADED}isTimeBuffered(e,n,r){let i,s;for(let a=0;a<r.length;a++){if(i=r.start(a)-this.bufferPadding,s=r.end(a)+this.bufferPadding,e>=i&&n<=s)return!0;if(n<=i)return!1}return!1}onFragLoaded(e,n){const{frag:r,part:i}=n;if(r.sn==="initSegment"||r.bitrateTest)return;const s=i?null:n,a=tc(r);this.fragments[a]={body:r,appendedPTS:null,loaded:s,buffered:!1,range:Object.create(null)}}onBufferAppended(e,n){const{frag:r,part:i,timeRanges:s}=n;if(r.sn==="initSegment")return;const a=r.type;if(i){let o=this.activePartLists[a];o||(this.activePartLists[a]=o=[]),o.push(i)}this.timeRanges=s,Object.keys(s).forEach(o=>{const l=s[o];this.detectEvictedFragments(o,l,a,i)})}onFragBuffered(e,n){this.detectPartialFragments(n)}hasFragment(e){const n=tc(e);return!!this.fragments[n]}hasParts(e){var n;return!!((n=this.activePartLists[e])!=null&&n.length)}removeFragmentsInRange(e,n,r,i,s){i&&!this.hasGaps||Object.keys(this.fragments).forEach(a=>{const o=this.fragments[a];if(!o)return;const l=o.body;l.type!==r||i&&!l.gap||l.start<n&&l.end>e&&(o.buffered||s)&&this.removeFragment(l)})}removeFragment(e){const n=tc(e);e.stats.loaded=0,e.clearElementaryStreamInfo();const r=this.activePartLists[e.type];if(r){const i=e.sn;this.activePartLists[e.type]=r.filter(s=>s.fragment.sn!==i)}delete this.fragments[n],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}function $h(t){var e,n,r;return t.buffered&&(t.body.gap||((e=t.range.video)==null?void 0:e.partial)||((n=t.range.audio)==null?void 0:n.partial)||((r=t.range.audiovideo)==null?void 0:r.partial))}function tc(t){return`${t.type}_${t.level}_${t.sn}`}const h9={length:0,start:()=>0,end:()=>0};class $t{static isBuffered(e,n){try{if(e){const r=$t.getBuffered(e);for(let i=0;i<r.length;i++)if(n>=r.start(i)&&n<=r.end(i))return!0}}catch{}return!1}static bufferInfo(e,n,r){try{if(e){const i=$t.getBuffered(e),s=[];let a;for(a=0;a<i.length;a++)s.push({start:i.start(a),end:i.end(a)});return this.bufferedInfo(s,n,r)}}catch{}return{len:0,start:n,end:n,nextStart:void 0}}static bufferedInfo(e,n,r){n=Math.max(0,n),e.sort(function(c,u){const f=c.start-u.start;return f||u.end-c.end});let i=[];if(r)for(let c=0;c<e.length;c++){const u=i.length;if(u){const f=i[u-1].end;e[c].start-f<r?e[c].end>f&&(i[u-1].end=e[c].end):i.push(e[c])}else i.push(e[c])}else i=e;let s=0,a,o=n,l=n;for(let c=0;c<i.length;c++){const u=i[c].start,f=i[c].end;if(n+r>=u&&n<f)o=u,l=f,s=l-n;else if(n+r<u){a=u;break}}return{len:s,start:o||0,end:l||0,nextStart:a}}static getBuffered(e){try{return e.buffered}catch(n){return J.log("failed to get media.buffered",n),h9}}}class kS{constructor(e,n,r,i=0,s=-1,a=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=Bh(),this.buffering={audio:Bh(),video:Bh(),audiovideo:Bh()},this.level=e,this.sn=n,this.id=r,this.size=i,this.part=s,this.partial=a}}function Bh(){return{start:0,executeStart:0,executeEnd:0,end:0}}function _p(t,e){for(let r=0,i=t.length;r<i;r++){var n;if(((n=t[r])==null?void 0:n.cc)===e)return t[r]}return null}function p9(t,e,n){return!!(e&&(n.endCC>n.startCC||t&&t.cc<n.startCC))}function m9(t,e){const n=t.fragments,r=e.fragments;if(!r.length||!n.length){J.log("No fragments to align");return}const i=_p(n,r[0].cc);if(!i||i&&!i.startPTS){J.log("No frag in previous level to align on");return}return i}function mL(t,e){if(t){const n=t.start+e;t.start=t.startPTS=n,t.endPTS=n+t.duration}}function vN(t,e){const n=e.fragments;for(let r=0,i=n.length;r<i;r++)mL(n[r],t);e.fragmentHint&&mL(e.fragmentHint,t),e.alignedSliding=!0}function g9(t,e,n){e&&(y9(t,n,e),!n.alignedSliding&&e&&Km(n,e),!n.alignedSliding&&e&&!n.skippedSegments&&hN(e,n))}function y9(t,e,n){if(p9(t,n,e)){const r=m9(n,e);r&&Te(r.start)&&(J.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),vN(r.start,e))}}function Km(t,e){if(!t.hasProgramDateTime||!e.hasProgramDateTime)return;const n=t.fragments,r=e.fragments;if(!n.length||!r.length)return;let i,s;const a=Math.min(e.endCC,t.endCC);e.startCC<a&&t.startCC<a&&(i=_p(r,a),s=_p(n,a)),(!i||!s)&&(i=r[Math.floor(r.length/2)],s=_p(n,i.cc)||n[Math.floor(n.length/2)]);const o=i.programDateTime,l=s.programDateTime;if(!o||!l)return;const c=(l-o)/1e3-(s.start-i.start);vN(c,t)}const gL=Math.pow(2,17);class v9{constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,n){const r=e.url;
vendor: 5,441 bytes, line 115
115if(!r)return Promise.reject(new Xs({type:Fe.NETWORK_ERROR,details:ne.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${r?"part list":"url"}`),networkDetails:null}));this.abort();const i=this.config,s=i.fLoader,a=i.loader;return new Promise((o,l)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(h=>h[0]==="GAP")){l(vL(e));return}else e.gap=!1;const c=this.loader=e.loader=s?new s(i):new a(i),u=yL(e),f=dL(i.fragLoadPolicy.default),d={loadPolicy:f,timeout:f.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:gL};e.stats=c.stats,c.load(u,d,{onSuccess:(h,p,m,g)=>{this.resetLoader(e,c);let _=h.data;m.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(_.slice(0,16)),_=_.slice(16)),o({frag:e,part:null,payload:_,networkDetails:g})},onError:(h,p,m,g)=>{this.resetLoader(e,c),l(new Xs({type:Fe.NETWORK_ERROR,details:ne.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:Kn({url:r,data:void 0},h),error:new Error(`HTTP Error ${h.code} ${h.text}`),networkDetails:m,stats:g}))},onAbort:(h,p,m)=>{this.resetLoader(e,c),l(new Xs({type:Fe.NETWORK_ERROR,details:ne.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:m,stats:h}))},onTimeout:(h,p,m)=>{this.resetLoader(e,c),l(new Xs({type:Fe.NETWORK_ERROR,details:ne.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${d.timeout}ms`),networkDetails:m,stats:h}))},onProgress:(h,p,m,g)=>{n&&n({frag:e,part:null,payload:m,networkDetails:g})}})})}loadPart(e,n,r){this.abort();const i=this.config,s=i.fLoader,a=i.loader;return new Promise((o,l)=>{if(this.loader&&this.loader.destroy(),e.gap||n.gap){l(vL(e,n));return}const c=this.loader=e.loader=s?new s(i):new a(i),u=yL(e,n),f=dL(i.fragLoadPolicy.default),d={loadPolicy:f,timeout:f.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:gL};n.stats=c.stats,c.load(u,d,{onSuccess:(h,p,m,g)=>{this.resetLoader(e,c),this.updateStatsFromPart(e,n);const _={frag:e,part:n,payload:h.data,networkDetails:g};r(_),o(_)},onError:(h,p,m,g)=>{this.resetLoader(e,c),l(new Xs({type:Fe.NETWORK_ERROR,details:ne.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:n,response:Kn({url:u.url,data:void 0},h),error:new Error(`HTTP Error ${h.code} ${h.text}`),networkDetails:m,stats:g}))},onAbort:(h,p,m)=>{e.stats.aborted=n.stats.aborted,this.resetLoader(e,c),l(new Xs({type:Fe.NETWORK_ERROR,details:ne.INTERNAL_ABORTED,fatal:!1,frag:e,part:n,error:new Error("Aborted"),networkDetails:m,stats:h}))},onTimeout:(h,p,m)=>{this.resetLoader(e,c),l(new Xs({type:Fe.NETWORK_ERROR,details:ne.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:n,error:new Error(`Timeout after ${d.timeout}ms`),networkDetails:m,stats:h}))}})})}updateStatsFromPart(e,n){const r=e.stats,i=n.stats,s=i.total;if(r.loaded+=i.loaded,s){const l=Math.round(e.duration/n.duration),c=Math.min(Math.round(r.loaded/s),l),f=(l-c)*Math.round(r.loaded/c);r.total=r.loaded+f}else r.total=Math.max(r.loaded,r.total);const a=r.loading,o=i.loading;a.start?a.first+=o.first-o.start:(a.start=o.start,a.first=o.first),a.end=o.end}resetLoader(e,n){e.loader=null,this.loader===n&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),n.destroy()}}function yL(t,e=null){const n=e||t,r={frag:t,part:e,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},i=n.byteRangeStartOffset,s=n.byteRangeEndOffset;if(Te(i)&&Te(s)){var a;let o=i,l=s;if(t.sn==="initSegment"&&((a=t.decryptdata)==null?void 0:a.method)==="AES-128"){const c=s-i;c%16&&(l=s+(16-c%16)),i!==0&&(r.resetIV=!0,o=i-16)}r.rangeStart=o,r.rangeEnd=l}return r}function vL(t,e){const n=new Error(`GAP ${t.gap?"tag":"attribute"} found`),r={type:Fe.MEDIA_ERROR,details:ne.FRAG_GAP,fatal:!1,frag:t,error:n,networkDetails:null};return e&&(r.part=e),(e||t).stats.aborted=!0,new Xs(r)}class Xs extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class _9{constructor(e,n){this.subtle=void 0,this.aesIV=void 0,this.subtle=e,this.aesIV=n}decrypt(e,n){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},n,e)}}class E9{constructor(e,n){this.subtle=void 0,this.key=void 0,this.subtle=e,this.key=n}expandKey(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}function b9(t){const e=t.byteLength,n=e&&new DataView(t.buffer).getUint8(e-1);return n?El(t,0,e-n):t}class T9{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(e){const n=new DataView(e),r=new Uint32Array(4);for(let i=0;i<4;i++)r[i]=n.getUint32(i*4);return r}initTable(){const e=this.sBox,n=this.invSBox,r=this.subMix,i=r[0],s=r[1],a=r[2],o=r[3],l=this.invSubMix,c=l[0],u=l[1],f=l[2],d=l[3],h=new Uint32Array(256);let p=0,m=0,g=0;for(g=0;g<256;g++)g<128?h[g]=g<<1:h[g]=g<<1^283;for(g=0;g<256;g++){let _=m^m<<1^m<<2^m<<3^m<<4;_=_>>>8^_&255^99,e[p]=_,n[_]=p;const v=h[p],y=h[v],E=h[y];let b=h[_]*257^_*16843008;i[p]=b<<24|b>>>8,s[p]=b<<16|b>>>16,a[p]=b<<8|b>>>24,o[p]=b,b=E*16843009^y*65537^v*257^p*16843008,c[_]=b<<24|b>>>8,u[_]=b<<16|b>>>16,f[_]=b<<8|b>>>24,d[_]=b,p?(p=v^h[h[h[E^v]]],m^=h[h[m]]):p=m=1}}
vendor: 1,617 bytes, line 115
115expandKey(e){const n=this.uint8ArrayToUint32Array_(e);let r=!0,i=0;for(;i<n.length&&r;)r=n[i]===this.key[i],i++;if(r)return;this.key=n;const s=this.keySize=n.length;if(s!==4&&s!==6&&s!==8)throw new Error("Invalid aes key size="+s);const a=this.ksRows=(s+6+1)*4;let o,l;const c=this.keySchedule=new Uint32Array(a),u=this.invKeySchedule=new Uint32Array(a),f=this.sBox,d=this.rcon,h=this.invSubMix,p=h[0],m=h[1],g=h[2],_=h[3];let v,y;for(o=0;o<a;o++){if(o<s){v=c[o]=n[o];continue}y=v,o%s===0?(y=y<<8|y>>>24,y=f[y>>>24]<<24|f[y>>>16&255]<<16|f[y>>>8&255]<<8|f[y&255],y^=d[o/s|0]<<24):s>6&&o%s===4&&(y=f[y>>>24]<<24|f[y>>>16&255]<<16|f[y>>>8&255]<<8|f[y&255]),c[o]=v=(c[o-s]^y)>>>0}for(l=0;l<a;l++)o=a-l,l&3?y=c[o]:y=c[o-4],l<4||o<=4?u[l]=y:u[l]=p[f[y>>>24]]^m[f[y>>>16&255]]^g[f[y>>>8&255]]^_[f[y&255]],u[l]=u[l]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,n,r){const i=this.keySize+6,s=this.invKeySchedule,a=this.invSBox,o=this.invSubMix,l=o[0],c=o[1],u=o[2],f=o[3],d=this.uint8ArrayToUint32Array_(r);let h=d[0],p=d[1],m=d[2],g=d[3];const _=new Int32Array(e),v=new Int32Array(_.length);let y,E,b,T,S,A,w,x,L,R,k,F,U,H;const M=this.networkToHostOrderSwap;for(;n<_.length;){for(L=M(_[n]),R=M(_[n+1]),k=M(_[n+2]),F=M(_[n+3]),S=L^s[0],A=F^s[1],w=k^s[2],x=R^s[3],U=4,H=1;H<i;H++)y=l[S>>>24]^c[A>>16&255]^u[w>>8&255]^f[x&255]^s[U],E=l[A>>>24]^c[w>>16&255]^u[x>>8&255]^f[S&255]^s[U+1],b=l[w>>>24]^c[x>>16&255]^u[S>>8&255]^f[A&255]^s[U+2],T=l[x>>>24]^c[S>>16&255]^u[A>>8&255]^f[w&255]^s[U+3],S=y,A=E,w=b,x=T,U=U+4;y=a[S>>>24]<<24^a[A>>16&255]<<16^a[w>>8&255]<<8^a[x&255]^s[U],E=a[A>>
115>24]<<24^a[w>>16&255]<<16^a[x>>8&255]<<8^a[S&255]^s[U+1],b=a[w>>>24]<<24^a[x>>16&255]<<16^a[S>>8&255]<<8^a[A&255]^s[U+2],T=a[x>>>24]<<24^a[S>>16&255]<<16^a[A>>8&255]<<8^a[w&255]^s[U+3],v[n]=M(y^h),v[n+1]=M(T^p),v[n+2]=M(b^m),v[n+3]=M(E^g),h=L,p=R,m=k,g=F,n=n+4}return v.buffer}}const S9=16;class PS{constructor(e,{removePKCS7Padding:n=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=e.enableSoftwareAES,this.removePKCS7Padding=n,n)try{const r=self.crypto;r&&(this.subtle=r.subtle||r.webkitSubtle)}catch{}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:n}=this;if(!e||n)return this.reset(),null;const r=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?b9(r):r}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,n,r){return this.useSoftware?new Promise((i,s)=>{this.softwareDecrypt(new Uint8Array(e),n,r);const a=this.flush();a?i(a.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),n,r)}softwareDecrypt(e,n,r){const{currentIV:i,currentResult:s,remainderData:a}=this;this.logOnce("JS AES decrypt"),a&&(e=Oi(a,e),this.remainderData=null);const o=this.getValidChunk(e);if(!o.length)return null;i&&(r=i);let l=this.softwareDecrypter;l||(l=this.softwareDecrypter=new T9),l.expandKey(n);const c=s;return this.currentResult=l.decrypt(o.buffer,0,r),this.currentIV=El(o,-16).buffer,c||null}webCryptoDecrypt(e,n,r){if(this.key!==n||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,n,r));this.key=n,this.fastAesKey=new E9(this.subtle,n)}return this.fastAesKey.expandKey().then(i=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new _9(this.subtle,new Uint8Array(r)).decrypt(e.buffer,i)):Promise.reject(new Error("web crypto not initialized"))).catch(i=>(J.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(e,n,r)))}onWebCryptoError(e,n,r){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,n,r);const i=this.flush();if(i)return i.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}getValidChunk(e){let n=e;const r=e.length-e.length%S9;return r!==e.length&&(n=El(e,0,r),this.remainderData=El(e,r)),n}logOnce(e){this.logEnabled&&(J.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const w9={toString:function(t){let e="";const n=t.length;for(let r=0;r<n;r++)e+=`[${t.start(r).toFixed(3)}-${t.end(r).toFixed(3)}]`;return e}},le={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"};class DS extends f9{constructor(e,n,r,i,s){super(),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=le.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.loadedmetadata=!1,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.onvseeking=null,this.onvended=null,this.logPrefix="",this.log=void 0,this.warn=void 0,this.playlistType=s,this.logPrefix=i,this.log=J.log.bind(J,`${i}:`),this.warn=J.warn.bind(J,`${i}:`),this.hls=e,this.fragmentLoader=new v9(e.config),this.keyLoader=r,this.fragmentTracker=n,this.config=e.config,this.decrypter=new PS(e.config),e.on(I.MANIFEST_LOADED,this.onManifestLoaded,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;e!=null&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=le.STOPPED}
115pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}_streamEnded(e,n){if(n.live||e.nextStart||!e.end||!this.media)return!1;const r=n.partList;if(r!=null&&r.length){const s=r[r.length-1];return $t.isBuffered(this.media,s.start+s.duration/2)}const i=n.fragments[n.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(i)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var e;return(e=this.levelLastLoaded)==null?void 0:e.details}}onMediaAttached(e,n){const r=this.media=this.mediaBuffer=n.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),r.addEventListener("seeking",this.onvseeking),r.addEventListener("ended",this.onvended);const i=this.config;this.levels&&i.autoStartLoad&&this.state===le.STOPPED&&this.startLoad(i.startPosition)}onMediaDetaching(){const e=this.media;e!=null&&e.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),e&&this.onvseeking&&this.onvended&&(e.removeEventListener("seeking",this.onvseeking),e.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}onMediaSeeking(){const{config:e,fragCurrent:n,media:r,mediaBuffer:i,state:s}=this,a=r?r.currentTime:0,o=$t.bufferInfo(i||r,a,e.maxBufferHole);if(this.log(`media seeking to ${Te(a)?a.toFixed(3):a}, state: ${s}`),this.state===le.ENDED)this.resetLoadingState();else if(n){const l=e.maxFragLookUpTolerance,c=n.start-l,u=n.start+n.duration+l;if(!o.len||u<o.start||c>o.end){const f=a>u;(a<c||f)&&(f&&n.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),n.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}r&&(this.fragmentTracker.removeFragmentsInRange(a,1/0,this.playlistType,!0),this.lastCurrentTime=a),!this.loadedmetadata&&!o.len&&(this.nextLoadPosition=this.startPosition=a),this.tickImmediate()}onMediaEnded(){this.startPosition=this.lastCurrentTime=0}onManifestLoaded(e,n){this.startTimeOffset=n.startTimeOffset,this.initPTS=[]}onHandlerDestroying(){this.hls.off(I.MANIFEST_LOADED,this.onManifestLoaded,this),this.stopLoad(),super.onHandlerDestroying(),this.hls=null}onHandlerDestroyed(){this.state=le.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,n,r){this._loadFragForPlayback(e,n,r)}_loadFragForPlayback(e,n,r){const i=s=>{if(this.fragContextChanged(e)){this.warn(`Fragment ${e.sn}${s.part?" p: "+s.part.index:""} of level ${e.level} was dropped during download.`),this.fragmentTracker.removeFragment(e);return}e.stats.chunkCount++,this._handleFragmentLoadProgress(s)};this._doFragLoad(e,n,r,i).then(s=>{if(!s)return;const a=this.state;if(this.fragContextChanged(e)){(a===le.FRAG_LOADING||!this.fragCurrent&&a===le.PARSING)&&(this.fragmentTracker.removeFragment(e),this.state=le.IDLE);return}"payload"in s&&(this.log(`Loaded fragment ${e.sn} of level ${e.level}`),this.hls.trigger(I.FRAG_LOADED,s)),this._handleFragmentLoadComplete(s)}).catch(s=>{this.state===le.STOPPED||this.state===le.ERROR||(this.warn(`Frag error: ${(s==null?void 0:s.message)||s}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var n;const{fragmentTracker:r}=this;if(r.getState(e)===Hn.APPENDING){const s=e.type,a=this.getFwdBufferInfo(this.mediaBuffer,s),o=Math.max(e.duration,a?a.len:this.config.maxBufferLength),l=this.backtrackFragment;((l?e.sn-l.sn:0)===1||this.reduceMaxBufferLength(o,e.duration))&&r.removeFragment(e)}else((n=this.mediaBuffer)==null?void 0:n.buffered.length)===0?r.removeAllFragments():r.hasParts(e.type)&&(r.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),r.getState(e)===Hn.PARTIAL&&r.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const n=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:n,part:null,stats:n.stats,id:n.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}flushMainBuffer(e,n,r=null){if(!(e-n))return;const i={startOffset:e,endOffset:n,type:r};this.hls.trigger(I.BUFFER_FLUSHING,i)}_loadInitSegment(e,n){this._doFragLoad(e,n).then(r=>{if(!r||this.fragContextChanged(e)||!this.levels)throw new Error("init load aborted");return r}).then(r=>{const{hls:i}=this,{payload:s}=r,a=e.decryptdata;if(s&&s.byteLength>0&&a!=null&&a.key&&a.iv&&a.method==="AES-128"){const o=self.performance.now();
115return this.decrypter.decrypt(new Uint8Array(s),a.key.buffer,a.iv.buffer).catch(l=>{throw i.trigger(I.ERROR,{type:Fe.MEDIA_ERROR,details:ne.FRAG_DECRYPT_ERROR,fatal:!1,error:l,reason:l.message,frag:e}),l}).then(l=>{const c=self.performance.now();return i.trigger(I.FRAG_DECRYPTED,{frag:e,payload:l,stats:{tstart:o,tdecrypt:c}}),r.payload=l,this.completeInitSegmentLoad(r)})}return this.completeInitSegmentLoad(r)}).catch(r=>{this.state===le.STOPPED||this.state===le.ERROR||(this.warn(r),this.resetFragmentLoading(e))})}completeInitSegmentLoad(e){const{levels:n}=this;if(!n)throw new Error("init load aborted, missing levels");const r=e.frag.stats;this.state=le.IDLE,e.frag.data=new Uint8Array(e.payload),r.parsing.start=r.buffering.start=self.performance.now(),r.parsing.end=r.buffering.end=self.performance.now(),this.tick()}fragContextChanged(e){const{fragCurrent:n}=this;return!e||!n||e.sn!==n.sn||e.level!==n.level}fragBufferedComplete(e,n){var r,i,s,a;const o=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${n?" part: "+n.index:""} of ${this.playlistType===De.MAIN?"level":"track"} ${e.level} (frag:[${((r=e.startPTS)!=null?r:NaN).toFixed(3)}-${((i=e.endPTS)!=null?i:NaN).toFixed(3)}] > buffer:${o?w9.toString($t.getBuffered(o)):"(detached)"})`),e.sn!=="initSegment"){var l;if(e.type!==De.SUBTITLE){const u=e.elementaryStreams;if(!Object.keys(u).some(f=>!!u[f])){this.state=le.IDLE;return}}const c=(l=this.levels)==null?void 0:l[e.level];c!=null&&c.fragmentError&&(this.log(`Resetting level fragment error count of ${c.fragmentError} on frag buffered`),c.fragmentError=0)}this.state=le.IDLE,o&&(!this.loadedmetadata&&e.type==De.MAIN&&o.buffered.length&&((s=this.fragCurrent)==null?void 0:s.sn)===((a=this.fragPrevious)==null?void 0:a.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())}seekToStartPos(){}_handleFragmentLoadComplete(e){const{transmuxer:n}=this;if(!n)return;const{frag:r,part:i,partsLoaded:s}=e,a=!s||s.length===0||s.some(l=>!l),o=new kS(r.level,r.sn,r.stats.chunkCount+1,0,i?i.index:-1,!a);n.flush(o)}_handleFragmentLoadProgress(e){}_doFragLoad(e,n,r=null,i){var s;const a=n==null?void 0:n.details;if(!this.levels||!a)throw new Error(`frag load aborted, missing level${a?"":" detail"}s`);let o=null;if(e.encrypted&&!((s=e.decryptdata)!=null&&s.key)?(this.log(`Loading key for ${e.sn} of [${a.startSN}-${a.endSN}], ${this.logPrefix==="[stream-controller]"?"level":"track"} ${e.level}`),this.state=le.KEY_LOADING,this.fragCurrent=e,o=this.keyLoader.load(e).then(u=>{if(!this.fragContextChanged(u.frag))return this.hls.trigger(I.KEY_LOADED,u),this.state===le.KEY_LOADING&&(this.state=le.IDLE),u}),this.hls.trigger(I.KEY_LOADING,{frag:e}),this.fragCurrent===null&&(o=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!e.encrypted&&a.encryptedFragments.length&&this.keyLoader.loadClear(e,a.encryptedFragments),r=Math.max(e.start,r||0),this.config.lowLatencyMode&&e.sn!=="initSegment"){const u=a.partList;if(u&&i){r>e.end&&a.fragmentHint&&(e=a.fragmentHint);const f=this.getNextPart(u,e,r);if(f>-1){const d=u[f];this.log(`Loading part sn: ${e.sn} p: ${d.index} cc: ${e.cc} of playlist [${a.startSN}-${a.endSN}] parts [0-${f}-${u.length-1}] ${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=d.start+d.duration,this.state=le.FRAG_LOADING;let h;return o?h=o.then(p=>!p||this.fragContextChanged(p.frag)?null:this.doFragPartsLoad(e,d,n,i)).catch(p=>this.handleFragLoadError(p)):h=this.doFragPartsLoad(e,d,n,i).catch(p=>this.handleFragLoadError(p)),this.hls.trigger(I.FRAG_LOADING,{frag:e,part:d,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):h}else if(!e.url||this.loadedEndOfParts(u,r))return Promise.resolve(null)}}this.log(`Loading fragment ${e.sn} cc: ${e.cc} ${a?"of ["+a.startSN+"-"+a.endSN+"] ":""}${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(r.toFixed(3))}`),Te(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=le.FRAG_LOADING;const l=this.config.progressive;let c;return l&&o?c=o.then(u=>!u||this.fragContextChanged(u==null?void 0:u.frag)?null:this.fragmentLoader.load(e,i)).catch(u=>
115this.handleFragLoadError(u)):c=Promise.all([this.fragmentLoader.load(e,l?i:void 0),o]).then(([u])=>(!l&&u&&i&&i(u),u)).catch(u=>this.handleFragLoadError(u)),this.hls.trigger(I.FRAG_LOADING,{frag:e,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):c}doFragPartsLoad(e,n,r,i){return new Promise((s,a)=>{var o;const l=[],c=(o=r.details)==null?void 0:o.partList,u=f=>{this.fragmentLoader.loadPart(e,f,i).then(d=>{l[f.index]=d;const h=d.part;this.hls.trigger(I.FRAG_LOADED,d);const p=uL(r,e.sn,f.index+1)||pN(c,e.sn,f.index+1);if(p)u(p);else return s({frag:e,part:h,partsLoaded:l})}).catch(a)};u(n)})}handleFragLoadError(e){if("data"in e){const n=e.data;e.data&&n.details===ne.INTERNAL_ABORTED?this.handleFragLoadAborted(n.frag,n.part):this.hls.trigger(I.ERROR,n)}else this.hls.trigger(I.ERROR,{type:Fe.OTHER_ERROR,details:ne.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const n=this.getCurrentContext(e);if(!n||this.state!==le.PARSING){!this.fragCurrent&&this.state!==le.STOPPED&&this.state!==le.ERROR&&(this.state=le.IDLE);return}const{frag:r,part:i,level:s}=n,a=self.performance.now();r.stats.parsing.end=a,i&&(i.stats.parsing.end=a),this.updateLevelTiming(r,i,s,e.partial)}getCurrentContext(e){const{levels:n,fragCurrent:r}=this,{level:i,sn:s,part:a}=e;if(!(n!=null&&n[i]))return this.warn(`Levels object was unset while buffering fragment ${s} of level ${i}. The current chunk will not be buffered.`),null;const o=n[i],l=a>-1?uL(o,s,a):null,c=l?l.fragment:KX(o,s,r);return c?(r&&r!==c&&(c.stats=r.stats),{frag:c,part:l,level:o}):null}bufferFragmentData(e,n,r,i,s){var a;if(!e||this.state!==le.PARSING)return;const{data1:o,data2:l}=e;let c=o;if(o&&l&&(c=Oi(o,l)),!((a=c)!=null&&a.length))return;const u={type:e.type,frag:n,part:r,chunkMeta:i,parent:n.type,data:c};if(this.hls.trigger(I.BUFFER_APPENDING,u),e.dropped&&e.independent&&!r){if(s)return;this.flushBufferGap(n)}}flushBufferGap(e){const n=this.media;if(!n)return;if(!$t.isBuffered(n,n.currentTime)){this.flushMainBuffer(0,e.start);return}const r=n.currentTime,i=$t.bufferInfo(n,r,0),s=e.duration,a=Math.min(this.config.maxFragLookUpTolerance*2,s*.25),o=Math.max(Math.min(e.start-a,i.end-a),r+a);e.start-o>a&&this.flushMainBuffer(o,e.start)}getFwdBufferInfo(e,n){const r=this.getLoadPosition();return Te(r)?this.getFwdBufferInfoAtPos(e,r,n):null}getFwdBufferInfoAtPos(e,n,r){const{config:{maxBufferHole:i}}=this,s=$t.bufferInfo(e,n,i);if(s.len===0&&s.nextStart!==void 0){const a=this.fragmentTracker.getBufferedFrag(n,r);if(a&&s.nextStart<a.end)return $t.bufferInfo(e,n,Math.max(s.nextStart,i))}return s}getMaxBufferLength(e){const{config:n}=this;let r;return e?r=Math.max(8*n.maxBufferSize/e,n.maxBufferLength):r=n.maxBufferLength,Math.min(r,n.maxMaxBufferLength)}reduceMaxBufferLength(e,n){const r=this.config,i=Math.max(Math.min(e-n,r.maxBufferLength),n),s=Math.max(e-n*3,r.maxMaxBufferLength/2,i);return s>=i?(r.maxMaxBufferLength=s,this.warn(`Reduce max buffer length to ${s}s`),!0):!1}getAppendedFrag(e,n=De.MAIN){const r=this.fragmentTracker.getAppendedFrag(e,De.MAIN);return r&&"fragment"in r?r.fragment:r}getNextFragment(e,n){const r=n.fragments,i=r.length;if(!i)return null;const{config:s}=this,a=r[0].start;let o;if(n.live){const l=s.initialLiveManifestSize;if(i<l)return this.warn(`Not enough fragments to start playback (have: ${i}, need: ${l})`),null;(!n.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<a)&&(o=this.getInitialLiveFragment(n,r),this.startPosition=this.nextLoadPosition=o?this.hls.liveSyncPosition||o.start:e)}else e<=a&&(o=r[0]);if(!o){const l=s.lowLatencyMode?n.partEnd:n.fragmentEnd;o=this.getFragmentAtPosition(e,l,n)}return this.mapToInitFragWhenRequired(o)}isLoopLoading(e,n){const r=this.fragmentTracker.getState(e);return(r===Hn.OK||r===Hn.PARTIAL&&!!e.gap)&&this.nextLoadPosition>n}getNextFragmentLoopLoading(e,n,r,i,s){const a=e.gap,o=this.getNextFragment(this.nextLoadPosition,n);if(o===null)return o;if(e=o,a&&e&&!e.gap&&r.nextStart){const l=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,i);if(l!==null&&r.len+l.len>=s)return this.log(`buffer full after gaps in "${i}" playlist starting at sn: ${e.sn}`),null}return e}mapToInitFragWhenRequired(e){return e!=null&&e.initSegment&&!(e!=null&&e.initSegment.data)&&!this.bitrateTest?e.
115initSegment:e}getNextPart(e,n,r){let i=-1,s=!1,a=!0;for(let o=0,l=e.length;o<l;o++){const c=e[o];if(a=a&&!c.independent,i>-1&&r<c.start)break;const u=c.loaded;u?i=-1:(s||c.independent||a)&&c.fragment===n&&(i=o),s=u}return i}loadedEndOfParts(e,n){const r=e[e.length-1];return r&&n>r.start&&r.loaded}getInitialLiveFragment(e,n){const r=this.fragPrevious;let i=null;if(r){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${r.programDateTime}`),i=zX(n,r.endProgramDateTime,this.config.maxFragLookUpTolerance)),!i){const s=r.sn+1;if(s>=e.startSN&&s<=e.endSN){const a=n[s-e.startSN];r.cc===a.cc&&(i=a,this.log(`Live playlist, switching playlist, load frag with next SN: ${i.sn}`))}i||(i=JX(n,r.cc),i&&this.log(`Live playlist, switching playlist, load frag with same CC: ${i.sn}`))}}else{const s=this.hls.liveSyncPosition;s!==null&&(i=this.getFragmentAtPosition(s,this.bitrateTest?e.fragmentEnd:e.edge,e))}return i}getFragmentAtPosition(e,n,r){const{config:i}=this;let{fragPrevious:s}=this,{fragments:a,endSN:o}=r;const{fragmentHint:l}=r,{maxFragLookUpTolerance:c}=i,u=r.partList,f=!!(i.lowLatencyMode&&u!=null&&u.length&&l);f&&l&&!this.bitrateTest&&(a=a.concat(l),o=l.sn);let d;if(e<n){const h=e>n-c?0:c;d=qm(s,a,e,h)}else d=a[a.length-1];if(d){const h=d.sn-r.startSN,p=this.fragmentTracker.getState(d);if((p===Hn.OK||p===Hn.PARTIAL&&d.gap)&&(s=d),s&&d.sn===s.sn&&(!f||u[0].fragment.sn>d.sn)&&s&&d.level===s.level){const g=a[h+1];d.sn<o&&this.fragmentTracker.getState(g)!==Hn.OK?d=g:d=null}}return d}synchronizeToLiveEdge(e){const{config:n,media:r}=this;if(!r)return;const i=this.hls.liveSyncPosition,s=r.currentTime,a=e.fragments[0].start,o=e.edge,l=s>=a-n.maxFragLookUpTolerance&&s<=o;if(i!==null&&r.duration>i&&(s<i||!l)){const c=n.liveMaxLatencyDuration!==void 0?n.liveMaxLatencyDuration:n.liveMaxLatencyDurationCount*e.targetduration;(!l&&r.readyState<4||s<o-c)&&(this.loadedmetadata||(this.nextLoadPosition=i),r.readyState&&(this.warn(`Playback: ${s.toFixed(3)} is located too far from the end of live sliding playlist: ${o}, reset currentTime to : ${i.toFixed(3)}`),r.currentTime=i))}}alignPlaylists(e,n,r){const i=e.fragments.length;if(!i)return this.warn("No fragments in live playlist"),0;const s=e.fragments[0].start,a=!n,o=e.alignedSliding&&Te(s);if(a||!o&&!s){const{fragPrevious:l}=this;g9(l,r,e);const c=e.fragments[0].start;return this.log(`Live playlist sliding: ${c.toFixed(2)} start-sn: ${n?n.startSN:"na"}->${e.startSN} prev-sn: ${l?l.sn:"na"} fragments: ${i}`),c}return s}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,n){let r=this.startPosition;if(r<n&&(r=-1),r===-1||this.lastCurrentTime===-1){const i=this.startTimeOffset!==null,s=i?this.startTimeOffset:e.startTimeOffset;s!==null&&Te(s)?(r=n+s,s<0&&(r+=e.totalduration),r=Math.min(Math.max(n,r),n+e.totalduration),this.log(`Start time offset ${s} found in ${i?"multivariant":"media"} playlist, adjust startPosition to ${r}`),this.startPosition=r):e.live?r=this.hls.liveSyncPosition||n:this.startPosition=r=0,this.lastCurrentTime=r}this.nextLoadPosition=r}getLoadPosition(){const{media:e}=this;let n=0;return this.loadedmetadata&&e?n=e.currentTime:this.nextLoadPosition&&(n=this.nextLoadPosition),n}handleFragLoadAborted(e,n){this.transmuxer&&e.sn!=="initSegment"&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${n?" part "+n.index:""} of level ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==le.FRAG_LOADING_WAITING_RETRY)&&(this.state=le.IDLE)}onFragmentOrKeyLoadError(e,n){if(n.chunkMeta&&!n.frag){const u=this.getCurrentContext(n.chunkMeta);u&&(n.frag=u.frag)}const r=n.frag;if(!r||r.type!==e||!this.levels)return;if(this.fragContextChanged(r)){var i;this.warn(`Frag load error must match current frag to retry ${r.url} > ${(i=this.fragCurrent)==null?void 0:i.url}`);return}const s=n.details===ne.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(r,!0);const a=n.errorAction,{action:o,retryCount:l=0,retryConfig:c}=a||{};if(a&&o===Jn.RetryRequest&&c){this.resetStartWhenNotLoaded(this.levelLastLoaded);const u=CS(c,l);this.warn(`Fragment ${r.sn} of ${e} ${r.level} errored with ${n.details}, retrying loading ${l+1}/${c.maxNumRetry} in ${u}ms`),a.resolved=!0,this.retryDate=self.performance.now()+u,this.state=le.FRAG_LOADING_WAITING_RETRY}else if(c&&a)if(this.resetFragmentErrors(e),l<c.maxNumRetry)!s&&o!==Jn.RemoveAlternatePermanently&&(a.resolved=!0);else{J.warn(`${n.details} reached or exceeded max retry (${l})`);return}else(a==null?void 0:a.action)===Jn.SendAlternateToPenaltyBox?this.state=le.WAITING_LEVEL:this.state=le.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===le.PARSING||this.state===le.PARSED){const n=e.frag,r=e.parent,i=this.getFwdBufferInfo(this.mediaBuffer,r),s=i&&i.len>.5;s&&this.reduceMaxBufferLength(i.len,(n==null?void 0:n.duration)||10);const a=!s;return a&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${r} buffer`),n&&(this.fragmentTracker.removeFragment(n),this.nextLoadPosition=n.start),this.resetLoadingState(),a}return!1}resetFragmentErrors(e){e===De.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==le.STOPPED&&(this.state=le.IDLE)}afterBufferFlushed(e,n,r){if(!e)return;const i=$t.getBuffered(e);this.fragmentTracker.detectEvictedFragments(n,i,r),this.state===le.ENDED&&this.resetLoadingState()}
115resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=le.IDLE}resetStartWhenNotLoaded(e){if(!this.loadedmetadata){this.startFragRequested=!1;const n=e?e.details:null;n!=null&&n.live?(this.startPosition=-1,this.setStartPosition(n,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of level ${e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,n,r,i){var s;const a=r.details;if(!a){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((l,c)=>{const u=e.elementaryStreams[c];if(u){const f=u.endPTS-u.startPTS;if(f<=0)return this.warn(`Could not parse fragment ${e.sn} ${c} duration reliably (${f})`),l||!1;const d=i?0:dN(a,e,u.startPTS,u.endPTS,u.startDTS,u.endDTS);return this.hls.trigger(I.LEVEL_PTS_UPDATED,{details:a,level:r,drift:d,type:c,frag:e,start:u.startPTS,end:u.endPTS}),!0}return l},!1)&&((s=this.transmuxer)==null?void 0:s.error)===null){const l=new Error(`Found no media in fragment ${e.sn} of level ${e.level} resetting transmuxer to fallback to playlist timing`);if(r.fragmentError===0&&(r.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)),this.warn(l.message),this.hls.trigger(I.ERROR,{type:Fe.MEDIA_ERROR,details:ne.FRAG_PARSING_ERROR,fatal:!1,error:l,frag:e,reason:`Found no media in msn ${e.sn} of level "${r.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=le.PARSED,this.hls.trigger(I.FRAG_PARSED,{frag:e,part:n})}resetTransmuxer(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){const n=this._state;n!==e&&(this._state=e,this.log(`${n}->${e}`))}get state(){return this._state}}class _N{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:n}=this;let r;if(e.length)e.length===1?r=e[0]:r=x9(e,n);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function x9(t,e){const n=new Uint8Array(e);let r=0;for(let i=0;i<t.length;i++){const s=t[i];n.set(s,r),r+=s.length}return n}function A9(){return typeof __HLS_WORKER_BUNDLE__=="function"}function R9(){const t=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),e=self.URL.createObjectURL(t);return{worker:new self.Worker(e),objectURL:e}}function L9(t){const e=new self.URL(t,self.location.href).href;return{worker:new self.Worker(e),scriptURL:e}}function gs(t="",e=9e4){return{type:t,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class OS{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(e,n,r,i){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(e){this.initPTS=e,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(e,n){return!1}appendFrame(e,n,r){}demux(e,n){this.cachedData&&(e=Oi(this.cachedData,e),this.cachedData=null);let r=Ad(e,0),i=r?r.length:0,s;const a=this._audioTrack,o=this._id3Track,l=r?LS(r):void 0,c=e.length;for((this.basePTS===null||this.frameIndex===0&&Te(l))&&(this.basePTS=C9(l,n,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),r&&r.length>0&&o.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:Wi.audioId3,duration:Number.POSITIVE_INFINITY});i<c;){if(this.canParse(e,i)){const u=this.appendFrame(a,e,i);u?(this.frameIndex++,this.lastPTS=u.sample.pts,i+=u.length,s=i):i=c}else X6(e,i)?(r=Ad(e,i),o.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:Wi.audioId3,duration:Number.POSITIVE_INFINITY}),i+=r.length,s=i):i++;if(i===c&&s!==c){const u=El(e,s);this.cachedData?this.cachedData=Oi(this.cachedData,u):this.cachedData=u}}return{audioTrack:a,videoTrack:gs(),id3Track:o,textTrack:gs()}}demuxSampleAes(e,n,r){return Promise.reject(new Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(e){const n=this.cachedData;return n&&(this.cachedData=null,this.demux(n,0)),{audioTrack:this._audioTrack,videoTrack:gs(),id3Track:this._id3Track,textTrack:gs()}}destroy(){}}const C9=(t,e,n)=>{if(Te(t))return t*90;const r=n?n.baseTime*9e4/n.timescale:0;return e*9e4+r};function I9(t,e,n,r){let i,s,a,o;const l=navigator.userAgent.toLowerCase(),c=r,u=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];i=((e[n+2]&192)>>>6)+1;const f=(e[n+2]&60)>>>2;if(f>u.length-1){const d=new Error(`invalid ADTS sampling index:${f}`);t.emit(I.ERROR,I.ERROR,{type:Fe.MEDIA_ERROR,details:ne.FRAG_PARSING_ERROR,fatal:!0,error:d,reason:d.message});return}return a=(e[n+2]&1)<<2,a|=(e[n+3]&192)>>>6,J.log(`manifest codec:${r}, ADTS type:${i}, samplingIndex:${f}`),/firefox/i.test(l)?f>=6?(i=5,o=new Array(4),s=f-3):(i=2,o=new Array(2),s=f):l.indexOf("android")!==-1?(i=2,o=new Array(2),s=f):(i=5,o=new Array(4),r&&(r.indexOf("mp4a.40.29")!==-1||r.indexOf("mp4a.40.5")!==-1)||!r&&f>=6?s=f-3:((r&&r.indexOf("mp4a.40.2")!==-1&&(f>=6&&a===1||/vivaldi/i.test(l))||!r&&a===1)&&(i=2,o=new Array(2)),s=f)),o[0]=i<<3,o[0]|=(f&14)>>1,o[1]|=(f&1)<<7,o[1]|=a<<3,i===5&&(o[1]|=(s&14)>>1,o[2]=(s&1)<<7,o[2]|=8,o[3]=0),{config:o,samplerate:u[f],channelCount:a,codec:"mp4a.40."+i,manifestCodec:c}}function EN(t,e){return t[e]===255&&(t[e+1]&246)===240}function bN(t,e){return t[e+1]&1?7:9}function MS(t,e){return(t[e+3]&3)<<11|t[e+4]<<3|(t[e+5]&224)>>>5}function k9(t,e){return e+5<t.length}function Wm(t,e){return e+1<t.length&&EN(t,e)}function P9(t,e){return k9(t,e)&&EN(t,e)&&MS(t,e)<=t.length-e}function D9(t,e){if(Wm(t,e)){const n=bN(t,e);if(e+n>=t.length)return!1;const r=MS(t,e);if(r<=n)return!1;const i=e+r;return i===t.length||Wm(t,i)}return!1}function TN(t,e,n,r,i){if(!t.samplerate){const s=I9(e,n,r,i);if(!s)return;t.config=s.config,t.samplerate=s.samplerate,t.channelCount=s.channelCount,t.codec=s.codec,t.manifestCodec=s.manifestCodec,J.log(`parsed codec:${t.codec}, rate:${s.samplerate}, channels:${s.channelCount}`)}}function SN(t){return 1024*9e4/t}function O9(t,e){const n=bN(t,e);if(e+n<=t.length){const r=MS(t,e)-n;if(r>0)return{headerLength:n,frameLength:r}}}function wN(t,e,n,r,i){const s=SN(t.samplerate),a=r+i*s,o=O9(e,n);let l;if(o){const{frameLength:f,headerLength:d}=o,h=d+f,p=Math.max(0,n+h-e.length);p?(l=new Uint8Array(h-d),l.set(e.subarray(n+d,e.length),0)):l=e.subarray(n+d,n+h);const m={unit:l,pts:a};return p||t.samples.push(m),{sample:m,length:h,missing:p}}const c=e.length-n;return l=new Uint8Array(c),l.set(e.subarray(n,e.length),0),{sample:{unit:l,pts:a},length:c,missing:-1}}let Uh=null;const M9=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],N9=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],F9=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],$9=[0,1,1,4];function xN(t,e,n,r,i){if(n+24>e.length)return;const s=AN(e,n);if(s&&n+s.frameLength<=e.length){const a=s.samplesPerFrame*9e4/s.sampleRate,o=r+i*a,l={unit:e.subarray(n,n+s.frameLength),pts:o,dts:o};return t.config=[],t.channelCount=s.channelCount,t.samplerate=s.sampleRate,t.samples.push(l),{sample:l,length:s.frameLength,missing:0}}}function AN(t,e){const n=t[e+1]>>3&3,r=t[e+1]>>1&3,i=t[e+2]>>4&15,s=t[e+2]>>2&3;if(n!==1&&i!==0&&i!==15&&s!==3){const a=t[e+2]>>1&1,o=t[e+3]>>6,l=n===3?3-r:r===3?3:4,c=M9[l*14+i-1]*1e3,f=N9[(n===3?0:n===2?1:2)*3+s],d=o===3?1:2,h=F9[n][r],p=$9[r],m=h*8*p,g=Math.floor(h*c/f+a)*p;if(Uh===null){const y=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Uh=y?parseInt(y[1]):0}return!!Uh&&Uh<=87&&r===2&&c>=224e3&&o===0&&(t[e+3]=t[e+3]|128),{sampleRate:f,channelCount:d,frameLength:g,samplesPerFrame:m}}}function NS(t,e){return t[e]===255&&(t[e+1]&224)===224&&(t[e+1]&6)!==0}function RN(t,e){return e+1<t.length&&NS(t,e)}function B9(t,e){return NS(t,e)&&4<=t.length-e}function LN(t,e){if(e+1<t.length&&NS(t,e)){const r=AN(t,e);let i=4;r!=null&&r.frameLength&&(i=r.frameLength);const s=e+i;return s===t.length||RN(t,s)}return!1}class U9 extends OS{constructor(e,n){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=n}resetInitSegment(e,n,r,i){super.resetInitSegment(e,n,r,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:n,duration:i,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const n=Ad(e,0);let r=(n==null?void 0:n.length)||0;if(LN(e,r))return!1;for(let i=e.length;r<i;r++)if(D9(e,r))return J.log("ADTS sync word found !"),!0;return!1}canParse(e,n){return P9(e,n)}appendFrame(e,n,r){TN(e,this.observer,n,r,e.manifestCodec);const i=wN(e,n,r,this.basePTS,this.frameIndex);if(i&&i.missing===0)return i}}const H9=/\/emsg[-/]ID3/i;class G9{constructor(e,n){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=n}resetTimeStamp(){}resetInitSegment(e,n,r,i){const s=this.videoTrack=gs("video",1),a=this.audioTrack=gs("audio",1),o=this.txtTrack=gs("text",1);if(this.id3Track=gs("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const l=iN(e);if(l.video){const{id:c,timescale:u,codec:f}=l.video;s.id=c,s.timescale=o.timescale=u,s.codec=f}if(l.audio){const{id:c,timescale:u,codec:f}=l.audio;a.id=c,a.timescale=u,a.codec=f}o.id=tN.text,s.sampleDuration=0,s.duration=a.duration=i}resetContiguity(){this.remainderData=null}static probe(e){return sX(e)}demux(e,n){this.timeOffset=n;let r=e;const i=this.videoTrack,s=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=Oi(this.remainderData,e));const o=hX(r);this.remainderData=o.remainder,i.samples=o.valid||new Uint8Array}else i.samples=r;const a=this.extractID3Track(i,n);return s.samples=qR(n,i),{videoTrack:i,audioTrack:this.audioTrack,id3Track:a,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,n=this.videoTrack,r=this.txtTrack;n.samples=this.remainderData||new Uint8Array,this.remainderData=null;const i=this.extractID3Track(n,this.timeOffset);
vendor: 5,531 bytes, line 115
115return r.samples=qR(e,n),{videoTrack:n,audioTrack:gs(),id3Track:i,textTrack:gs()}}extractID3Track(e,n){const r=this.id3Track;if(e.samples.length){const i=Xe(e.samples,["emsg"]);i&&i.forEach(s=>{const a=gX(s);if(H9.test(a.schemeIdUri)){const o=Te(a.presentationTime)?a.presentationTime/a.timeScale:n+a.presentationTimeDelta/a.timeScale;let l=a.eventDuration===4294967295?Number.POSITIVE_INFINITY:a.eventDuration/a.timeScale;l<=.001&&(l=Number.POSITIVE_INFINITY);const c=a.payload;r.samples.push({data:c,len:c.byteLength,dts:o,pts:o,type:Wi.emsg,duration:l})}})}return r}demuxSampleAes(e,n,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){}}const CN=(t,e)=>{let n=0,r=5;e+=r;const i=new Uint32Array(1),s=new Uint32Array(1),a=new Uint8Array(1);for(;r>0;){a[0]=t[e];const o=Math.min(r,8),l=8-o;s[0]=4278190080>>>24+l<<l,i[0]=(a[0]&s[0])>>l,n=n?n<<o|i[0]:i[0],e+=1,r-=o}return n};class j9 extends OS{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,n,r,i){super.resetInitSegment(e,n,r,i),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:n,duration:i,inputTimeScale:9e4,dropped:0}}canParse(e,n){return n+64<e.length}appendFrame(e,n,r){const i=IN(e,n,r,this.basePTS,this.frameIndex);if(i!==-1)return{sample:e.samples[e.samples.length-1],length:i,missing:0}}static probe(e){if(!e)return!1;const n=Ad(e,0);if(!n)return!1;const r=n.length;return e[r]===11&&e[r+1]===119&&LS(n)!==void 0&&CN(e,r)<16}}function IN(t,e,n,r,i){if(n+8>e.length||e[n]!==11||e[n+1]!==119)return-1;const s=e[n+4]>>6;if(s>=3)return-1;const o=[48e3,44100,32e3][s],l=e[n+4]&63,u=[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][l*3+s]*2;if(n+u>e.length)return-1;const f=e[n+6]>>5;let d=0;f===2?d+=2:(f&1&&f!==1&&(d+=2),f&4&&(d+=2));const h=(e[n+6]<<8|e[n+7])>>12-d&1,m=[2,1,2,3,3,4,4,5][f]+h,g=e[n+5]>>3,_=e[n+5]&7,v=new Uint8Array([s<<6|g<<1|_>>2,(_&3)<<6|f<<3|h<<2|l>>4,l<<4&224]),y=1536/o*9e4,E=r+i*y,b=e.subarray(n,n+u);return t.config=v,t.channelCount=m,t.samplerate=o,t.samples.push({unit:b,pts:E}),u}class V9{constructor(){this.VideoSample=null}createVideoSample(e,n,r,i){return{key:e,frame:!1,pts:n,dts:r,units:[],debug:i,length:0}}getLastNalUnit(e){var n;let r=this.VideoSample,i;if((!r||r.units.length===0)&&(r=e[e.length-1]),(n=r)!=null&&n.units){const s=r.units;i=s[s.length-1]}return i}pushAccessUnit(e,n){if(e.units.length&&e.frame){if(e.pts===void 0){const r=n.samples,i=r.length;if(i){const s=r[i-1];e.pts=s.pts,e.dts=s.dts}else{n.dropped++;return}}n.samples.push(e)}e.debug.length&&J.log(e.pts+"/"+e.dts+":"+e.debug)}}class _L{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const e=this.data,n=this.bytesAvailable,r=e.byteLength-n,i=new Uint8Array(4),s=Math.min(4,n);if(s===0)throw new Error("no bytes available");i.set(e.subarray(r,r+s)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=s*8,this.bytesAvailable-=s}skipBits(e){let n;e=Math.min(e,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,n=e>>3,e-=n<<3,this.bytesAvailable-=n,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let n=Math.min(this.bitsAvailable,e);const r=this.word>>>32-n;if(e>32&&J.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=n,this.bitsAvailable>0)this.word<<=n;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return n=e-n,n>0&&this.bitsAvailable?r<<n|this.readBits(n):r}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if(this.word&2147483648>>>e)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}skipScalingList(e){let n=8,r=8,i;for(let s=0;s<e;s++)r!==0&&(i=this.readEG(),r=(n+i+256)%256),n=r===0?n:r}readSPS(){let e=0,n=0,r=0,i=0,s,a,o;const l=this.readUByte.bind(this),c=this.readBits.bind(this),u=this.readUEG.bind(this),f=this.readBoolean.bind(this),d=this.skipBits.bind(this),h=this.skipEG.bind(this),p=this.skipUEG.bind(this),m=this.skipScalingList.bind(this);l();const g=l();if(c(5),d(3),l(),p(),g===100||g===110||g===122||g===244||g===44||g===83||g===86||g===118||g===128){const T=u();if(T===3&&d(1),p(),p(),d(1),f())for(a=T!==3?8:12,o=0;o<a;o++)f()&&(o<6?m(16):m(64))}p();const _=u();if(_===0)u();else if(_===1)for(d(1),h(),h(),s=u(),o=0;o<s;o++)h();p(),d(1);const v=u(),y=u(),E=c(1);E===0&&d(1),d(1),f()&&(e=u(),n=u(),r=u(),i=u());let b=[1,1];if(f()&&f())switch(l()){case 1:b=[1,1];break;case 2:b=[12,11];break;case 3:b=[10,11];break;case 4:b=[16,11];break;case 5:b=[40,33];break;
115case 6:b=[24,11];break;case 7:b=[20,11];break;case 8:b=[32,11];break;case 9:b=[80,33];break;case 10:b=[18,11];break;case 11:b=[15,11];break;case 12:b=[64,33];break;case 13:b=[160,99];break;case 14:b=[4,3];break;case 15:b=[3,2];break;case 16:b=[2,1];break;case 255:{b=[l()<<8|l(),l()<<8|l()];break}}return{width:Math.ceil((v+1)*16-e*2-n*2),height:(2-E)*(y+1)*16-(E?2:4)*(r+i),pixelRatio:b}}readSliceType(){return this.readUByte(),this.readUEG(),this.readUEG()}}class q9 extends V9{parseAVCPES(e,n,r,i,s){const a=this.parseAVCNALu(e,r.data);let o=this.VideoSample,l,c=!1;r.data=null,o&&a.length&&!e.audFound&&(this.pushAccessUnit(o,e),o=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts,"")),a.forEach(u=>{var f;switch(u.type){case 1:{let m=!1;l=!0;const g=u.data;if(c&&g.length>4){const _=new _L(g).readSliceType();(_===2||_===4||_===7||_===9)&&(m=!0)}if(m){var d;(d=o)!=null&&d.frame&&!o.key&&(this.pushAccessUnit(o,e),o=this.VideoSample=null)}o||(o=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts,"")),o.frame=!0,o.key=m;break}case 5:l=!0,(f=o)!=null&&f.frame&&!o.key&&(this.pushAccessUnit(o,e),o=this.VideoSample=null),o||(o=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts,"")),o.key=!0,o.frame=!0;break;case 6:{l=!0,aN(u.data,1,r.pts,n.samples);break}case 7:{var h,p;l=!0,c=!0;const m=u.data,_=new _L(m).readSPS();if(!e.sps||e.width!==_.width||e.height!==_.height||((h=e.pixelRatio)==null?void 0:h[0])!==_.pixelRatio[0]||((p=e.pixelRatio)==null?void 0:p[1])!==_.pixelRatio[1]){e.width=_.width,e.height=_.height,e.pixelRatio=_.pixelRatio,e.sps=[m],e.duration=s;const v=m.subarray(1,4);let y="avc1.";for(let E=0;E<3;E++){let b=v[E].toString(16);b.length<2&&(b="0"+b),y+=b}e.codec=y}break}case 8:l=!0,e.pps=[u.data];break;case 9:l=!0,e.audFound=!0,o&&this.pushAccessUnit(o,e),o=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts,"");break;case 12:l=!0;break;default:l=!1,o&&(o.debug+="unknown NAL "+u.type+" ");break}o&&l&&o.units.push(u)}),i&&o&&(this.pushAccessUnit(o,e),this.VideoSample=null)}parseAVCNALu(e,n){const r=n.byteLength;let i=e.naluState||0;const s=i,a=[];let o=0,l,c,u,f=-1,d=0;for(i===-1&&(f=0,d=n[0]&31,i=0,o=1);o<r;){if(l=n[o++],!i){i=l?0:1;continue}if(i===1){i=l?0:2;continue}if(!l)i=3;else if(l===1){if(c=o-i-1,f>=0){const h={data:n.subarray(f,c),type:d};a.push(h)}else{const h=this.getLastNalUnit(e.samples);h&&(s&&o<=4-s&&h.state&&(h.data=h.data.subarray(0,h.data.byteLength-s)),c>0&&(h.data=Oi(h.data,n.subarray(0,c)),h.state=0))}o<r?(u=n[o]&31,f=o,d=u,i=0):i=-1}else i=0}if(f>=0&&i>=0){const h={data:n.subarray(f,r),type:d,state:i};a.push(h)}if(a.length===0){const h=this.getLastNalUnit(e.samples);h&&(h.data=Oi(h.data,n))}return e.naluState=i,a}}class K9{constructor(e,n,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new PS(n,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer)}decryptAacSample(e,n,r){const i=e[n].unit;if(i.length<=16)return;const s=i.subarray(16,i.length-i.length%16),a=s.buffer.slice(s.byteOffset,s.byteOffset+s.length);this.decryptBuffer(a).then(o=>{const l=new Uint8Array(o);i.set(l,16),this.decrypter.isSync()||this.decryptAacSamples(e,n+1,r)})}decryptAacSamples(e,n,r){for(;;n++){if(n>=e.length){r();return}if(!(e[n].unit.length<32)&&(this.decryptAacSample(e,n,r),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const n=Math.floor((e.length-48)/160)*16+16,r=new Int8Array(n);let i=0;for(let s=32;s<e.length-16;s+=160,i+=16)r.set(e.subarray(s,s+16),i);return r}getAvcDecryptedUnit(e,n){const r=new Uint8Array(n);let i=0;for(let s=32;s<e.length-16;s+=160,i+=16)e.set(r.subarray(i,i+16),s);return e}decryptAvcSample(e,n,r,i,s){const a=oN(s.data),o=this.getAvcEncryptedData(a);this.decryptBuffer(o.buffer).then(l=>{s.data=this.getAvcDecryptedUnit(a,l),this.decrypter.isSync()||this.decryptAvcSamples(e,n,r+1,i)})}decryptAvcSamples(e,n,r,i){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;n++,r=0){if(n>=e.length){i();return}const s=e[n].units;for(;!(r>=s.length);r++){const a=s[r];if(!(a.data.length<=48||a.type!==1&&a.type!==5)&&(this.decryptAvcSample(e,n,r,i,a),!this.decrypter.isSync()))return}}}}const Nn=188;class Oa{constructor(e,n,r){this.observer=void 0,this.config=void 0,this.typeSupp
vendor: 15,651 bytes, line 115
115orted=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=n,this.typeSupported=r,this.videoParser=new q9}static probe(e){const n=Oa.syncOffset(e);return n>0&&J.warn(`MPEG2-TS detected but first sync word found @ offset ${n}`),n!==-1}static syncOffset(e){const n=e.length;let r=Math.min(Nn*5,n-Nn)+1,i=0;for(;i<r;){let s=!1,a=-1,o=0;for(let l=i;l<n;l+=Nn)if(e[l]===71&&(n-l===Nn||e[l+Nn]===71)){if(o++,a===-1&&(a=l,a!==0&&(r=Math.min(a+Nn*99,e.length-Nn)+1)),s||(s=mb(e,l)===0),s&&o>1&&(a===0&&o>2||l+Nn>r))return a}else{if(o)return-1;break}i++}return-1}static createTrack(e,n){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:tN[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?n:void 0}}resetInitSegment(e,n,r,i){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=Oa.createTrack("video"),this._audioTrack=Oa.createTrack("audio",i),this._id3Track=Oa.createTrack("id3"),this._txtTrack=Oa.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=n,this.videoCodec=r,this._duration=i}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:n,_id3Track:r}=this;e&&(e.pesData=null),n&&(n.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,n,r=!1,i=!1){r||(this.sampleAes=null);let s;const a=this._videoTrack,o=this._audioTrack,l=this._id3Track,c=this._txtTrack;let u=a.pid,f=a.pesData,d=o.pid,h=l.pid,p=o.pesData,m=l.pesData,g=null,_=this.pmtParsed,v=this._pmtId,y=e.length;if(this.remainderData&&(e=Oi(this.remainderData,e),y=e.length,this.remainderData=null),y<Nn&&!i)return this.remainderData=e,{audioTrack:o,videoTrack:a,id3Track:l,textTrack:c};const E=Math.max(0,Oa.syncOffset(e));y-=(y-E)%Nn,y<e.byteLength&&!i&&(this.remainderData=new Uint8Array(e.buffer,y,e.buffer.byteLength-y));let b=0;for(let S=E;S<y;S+=Nn)if(e[S]===71){const A=!!(e[S+1]&64),w=mb(e,S),x=(e[S+3]&48)>>4;let L;if(x>1){if(L=S+5+e[S+4],L===S+Nn)continue}else L=S+4;switch(w){case u:A&&(f&&(s=nc(f))&&this.videoParser.parseAVCPES(a,c,s,!1,this._duration),f={data:[],size:0}),f&&(f.data.push(e.subarray(L,S+Nn)),f.size+=S+Nn-L);break;case d:if(A){if(p&&(s=nc(p)))switch(o.segmentCodec){case"aac":this.parseAACPES(o,s);break;case"mp3":this.parseMPEGPES(o,s);break;case"ac3":this.parseAC3PES(o,s);break}p={data:[],size:0}}p&&(p.data.push(e.subarray(L,S+Nn)),p.size+=S+Nn-L);break;case h:A&&(m&&(s=nc(m))&&this.parseID3PES(l,s),m={data:[],size:0}),m&&(m.data.push(e.subarray(L,S+Nn)),m.size+=S+Nn-L);break;case 0:A&&(L+=e[L]+1),v=this._pmtId=W9(e,L);break;case v:{A&&(L+=e[L]+1);const R=z9(e,L,this.typeSupported,r,this.observer);u=R.videoPid,u>0&&(a.pid=u,a.segmentCodec=R.segmentVideoCodec),d=R.audioPid,d>0&&(o.pid=d,o.segmentCodec=R.segmentAudioCodec),h=R.id3Pid,h>0&&(l.pid=h),g!==null&&!_&&(J.warn(`MPEG-TS PMT found at ${S} after unknown PID '${g}'. Backtracking to sync byte @${E} to parse all TS packets.`),g=null,S=E-188),_=this.pmtParsed=!0;break}case 17:case 8191:break;default:g=w;break}}else b++;b>0&&zm(this.observer,new Error(`Found ${b} TS packet/s that do not start with 0x47`)),a.pesData=f,o.pesData=p,l.pesData=m;const T={audioTrack:o,videoTrack:a,id3Track:l,textTrack:c};return i&&this.extractRemainingSamples(T),T}flush(){const{remainderData:e}=this;this.remainderData=null;let n;return e?n=this.demux(e,-1,!1,!0):n={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(n),this.sampleAes?this.decrypt(n,this.sampleAes):n}extractRemainingSamples(e){const{audioTrack:n,videoTrack:r,id3Track:i,textTrack:s}=e,a=r.pesData,o=n.pesData,l=i.pesData;let c;if(a&&(c=nc(a))?(this.videoParser.parseAVCPES(r,s,c,!0,this._duration),r.pesData=null):r.pesData=a,o&&(c=nc(o))){switch(n.segmentCodec){case"aac":this.parseAACPES(n,c);break;case"mp3":this.parseMPEGPES(n,c);break;case"ac3":this.parseAC3PES(n,c);break}n.pesData=null}else o!=null&&o.size&&J.log("last AAC PES packet truncated,might overlap between fragments"),n.pesData=o;l&&(c=nc(l))?(this.parseID3PES(i,c),i.pesData=null):i.pesData=l}demuxSampleAes(e,n,r){const i=this.demux(e,r,!0,!this.config.progressive),s=this.sampleAes=new K9(this.observer,this.config,n);return this.decrypt(i,s)}decrypt(e,n){return new Promise(r=>{const{audioTrack:i,videoTrack:s}=e;i.samples&&i.segmentCodec==="aac"?n.decryptAacSamples(i.samples,0,()=>{s.samples?n.decryptAvcSamples(s.samples,0,0,()=>{r(e)}):r(e)}):s.samples&&n.decryptAvcSamples(s.samples,0,0,()=>{r(e)})})}destroy(){this._duration=0}parseAACPES(e,n){let r=0;const i=this.aacOverFlow;let s=n.data;if(i){this.aacOverFlow=null;const f=i.missing,d=i.sample.unit.byteLength;if(f===-1)s=Oi(i.sample.unit,s);else{const h=d-f;i.sample.unit.set(s.subarray(0,f),h),e.samples.push(i.sample),r=i.missing}}let a,o;for(a=r,o=s.length;a<o-1&&!Wm(s,a);a++);if(a!==r){let f;const d=a<o-1;if(d?f=`AAC PES did not start with ADTS header,offset:${a}`:f="No ADTS header found in AAC PES",zm(this.observer,new Error(f),d),!d)return}TN(e,this.observer,s,a,this.audioCodec);let l;if(n.pts!==void 0)l=n.pts;else if(i){const f=SN(e.samplerate);l=i.sample.pts+f}else{J.warn("[tsdemuxer]: AAC PES unknown PTS");return}let c=0,u;for(;a<o;)if(u=wN(e,s,a,l,c),a+=u.length,u.missing){this.aacOverFlow=u;break}else for(c++;a<o-1&&!Wm(s,a);a++);}parseMPEGPES(e,n){const r=n.data,i=r.length;let s=0,a=0;const o=n.pts;if(o===void 0){J.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;a<i;)if(RN(r,a)){const l=xN(e,r,a,o,s);if(l)a+=l.length,s++;else break}else a++}parseAC3PES(e,n){{const r=n.data,i=n.pts;if(i===void 0){J.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const s=r.length;let a=0,o=0,l;for(;o<s&&(l=IN(e,r,o,i,a++))>0;)o+=l}}parseID3PES(e,n){if(n.pts===void 0){J.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const r=Tn({},n,{type:this._videoTrack?Wi.emsg:Wi.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(r)}}function mb(t,e){return((t[e+1]&31)<<8)+t[e+2]}function W9(t,e){return(t[e+10]&31)<<8|t[e+11]}function z9(t,e,n,r,i){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},a=(t[e+1]&15)<<8|t[e+2],o=e+3+a-4,l=(t[e+10]&15)<<8|t[e+11];for(e+=12+l;e<o;){const c=mb(t,e),u=(t[e+3]&15)<<8|t[e+4];switch(t[e]){case 207:if(!r){Gv("ADTS AAC");break}case 15:s.audioPid===-1&&(s.audioPid=c);break;case 21:s.id3Pid===-1&&(s.id3Pid=c);break;case 219:if(!r){Gv("H.264");break}case 27:s.videoPid===-1&&(s.videoPid=c,s.segmentVideoCodec="avc");break;case 3:case 4:!n.mpeg&&!n.mp3?J.log("MPEG audio found, not supported in this browser"):s.audioPid===-1&&(s.audioPid=c,s.segmentAudioCodec="mp3");break;case 193:if(!r){Gv("AC-3");break}case 129:n.ac3?s.audioPid===-1&&(s.audioPid=c,s.segmentAudioCodec="ac3"):J.log("AC-3 audio found, not supported in this browser");break;case 6:if(s.audioPid===-1&&u>0){let f=e+5,d=u;for(;d>2;){switch(t[f]){case 106:n.ac3!==!0?J.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=c,s.segmentAudioCodec="ac3");break}const p=t[f+1]+2;f+=p,d-=p}}break;case 194:case 135:return zm(i,new Error("Unsupported EC-3 in M2TS found")),s;case 36:return zm(i,new Error("Unsupported HEVC in M2TS found")),s}e+=u+5}return s}function zm(t,e,n){J.warn(`parsing error: ${e.message}`),t.emit(I.ERROR,I.ERROR,{type:Fe.MEDIA_ERROR,details:ne.FRAG_PARSING_ERROR,fatal:!1,levelRetry:n,error:e,reason:e.message})}function Gv(t){J.log(`${t} with AES-128-CBC encryption found in unencrypted stream`)}function nc(t){let e=0,n,r,i,s,a;const o=t.data;if(!t||t.size===0)return null;for(;o[0].length<19&&o.length>1;)o[0]=Oi(o[0],o[1]),o.splice(1,1);if(n=o[0],(n[0]<<16)+(n[1]<<8)+n[2]===1){if(r=(n[4]<<8)+n[5],r&&r>t.size-6)return null;const c=n[7];c&192&&(s=(n[9]&14)*536870912+(n[10]&255)*4194304+(n[11]&254)*16384+(n[12]&255)*128+(n[13]&254)/2,c&64?(a=(n[14]&14)*536870912+(n[15]&255)*4194304+(n[16]&254)*16384+(n[17]&255)*128+(n[18]&254)/2,s-a>60*9e4&&(J.warn(`${Math.round((s-a)/9e4)}s delta between PTS and DTS, align them`),s=a)):a=s),i=n[8];let u=i+9;if(t.size<=u)return null;t.size-=u;const f=new Uint8Array(t.size);for(let d=0,h=o.length;d<h;d++){n=o[d];let p=n.byteLength;if(u)if(u>p){u-=p;continue}else n=n.subarray(u),p-=u,u=0;f.set(n,e),e+=p}return r&&(r-=i+3),{data:f,pts:s,dts:a,len:r}}return null}class Y9 extends OS{resetInitSegment(e,n,r,i){super.resetInitSegment(e,n,r,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:n,duration:i,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const n=Ad(e,0);let r=(n==null?void 0:n.length)||0;if(n&&e[r]===11&&e[r+1]===119&&LS(n)!==void 0&&CN(e,r)<=16)return!1;for(let i=e.length;r<i;r++)if(LN(e,r))return J.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,n){return B9(e,n)}appendFrame(e,n,r){if(this.basePTS!==null)return xN(e,n,r,this.basePTS,this.frameIndex)}}class EL{static getSilentFrame(e,n){switch(e){case"mp4a.40.2":if(n===1)return new Uint8Array([0,200,0,128,35,128]);if(n===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(n===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(n===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(n===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(n===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(n===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(n===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(n===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}}}const wa=Math.pow(2,32)-1;class te{static init(){te.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let e;for(e in te.types)te.types.hasOwnProperty(e)&&(te.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);const n=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),r=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);te.HDLR_TYPES={video:n,audio:r};const i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),s=new Uint8Array([0,0,0,0,0,0,0,0]);te.STTS=te.STSC=te.STCO=s,te.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),te.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),te.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),te.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const a=new Uint8Array([105,115,111,109]),o=new Uint8Array([97,118,99,49]),l=new Uint8Array([0,0,0,1]);te.FTYP=te.box(te.types.ftyp,a,l,a,o),te.DINF=te.box(te.types.dinf,te.box(te.types.dref,i))}static box(e,...n){let r=8,i=n.length;const s=i;for(;i--;)r+=n[i].byteLength;const a=new Uint8Array(r);for(a[0]=r>>24&255,a[1]=r>>16&255,a[2]=r>>8&255,a[3]=r&255,a.set(e,4),i=0,r=8;i<s;i++)a.set(n[i],r),r+=n[i].byteLength;return a}static hdlr(e){return te.box(te.types.hdlr,te.HDLR_TYPES[e])}static mdat(e){return te.box(te.types.mdat,e)}static mdhd(e,n){n*=e;const r=Math.floor(n/(wa+1)),i=Math.floor(n%(wa+1));return te.box(te.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,r>>24,r>>16&255,r>>8&255,r&255,i>>24,i>>16&255,i>>8&255,i&255,85,196,0,0]))}static mdia(e){return te.box(te.types.mdia,te.mdhd(e.timescale,e.duration),te.hdlr(e.type),te.minf(e))}static mfhd(e){return te.box(te.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255]))}static minf(e){return e.type==="audio"?te.box(te.types.minf,te.box(te.types.smhd,te.SMHD),te.DINF,te.stbl(e)):te.box(te.types.minf,te.box(te.types.vmhd,te.VMHD),te.DINF,te.stbl(e))}static moof(e,n,r){return te.box(te.types.moof,te.mfhd(e),te.traf(r,n))}static moov(e){let n=e.length;const r=[];for(;n--;)r[n]=te.trak(e[n]);return te.box.apply(null,[te.types.moov,te.mvhd(e[0].timescale,e[0].duration)].concat(r).concat(te.mvex(e)))}static mvex(e){let n=e.length;const r=[];for(;n--;)r[n]=te.trex(e[n]);return te.box.apply(null,[te.types.mvex,...r])}static mvhd(e,n){n*=e;const r=Math.floor(n/(wa+1)),i=Math.floor(n%(wa+1)),s=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,r>>24,r>>16&255,r>>8&255,r&255,i>>24,i>>16&255,i>>8&255,i&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return te.box(te.types.mvhd,s)}static sdtp(e){const n=e.samples||[],r=new Uint8Array(4+n.length);let i,s;for(i=0;i<n.length;i++)s=n[i].flags,r[i+4]=s.dependsOn<<4|s.isDependedOn<<2|s.hasRedundancy;return te.box(te.types.sdtp,r)}static stbl(e){return te.box(te.types.stbl,te.stsd(e),te.box(te.types.stts,te.STTS),te.box(te.types.stsc,te.STSC),te.box(te.types.stsz,te.STSZ),te.box(te.types.stco,te.STCO))}static avc1(e){let n=[],r=[],i,s,a;for(i=0;i<e.sps.length;i++)s=e.sps[i],a=s.byteLength,n.push(a>>>8&255),n.push(a&255),n=n.concat(Array.prototype.slice.call(s));for(i=0;i<e.pps.length;i++)s=e.pps[i],a=s.byteLength,r.push(a>>>8&255),r.push(a&255),r=r.concat(Array.prototype.slice.call(s));const o=te.box(te.types.avcC,new Uint8Array([1,n[3],n[4],n[5],255,224|e.sps.length].concat(n).concat([e.pps.length]).concat(r))),l=e.width,c=e.height,u=e.pixelRatio[0],f=e.pixelRatio[1];return te.box(te.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,l>>8&255,l&255,c>>8&255,c&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o,te.box(te.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),te.box(te.types.pasp,new Uint8Array([u>>24,u>>16&255,u>>8&255,u&255,f>>24,f>>16&255,f>>8&255,f&255])))}static esds(e){const n=e.config.length;return new Uint8Array([0,0,0,0,3,23+n,0,1,0,4,15+n,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([n]).concat(e.config).concat([6,1,2]))}static audioStsd(e){const n=e.samplerate;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,n>>8&255,n&255,0,0])}static mp4a(e){return te.box(te.types.mp4a,te.audioStsd(e),te.box(te.types.esds,te.esds(e)))}static mp3(e){return te.box(te.types[".mp3"],te.audioStsd(e))}static ac3(e){return te.box(te.types["ac-3"],te.audioStsd(e),te.box(te.types.dac3,e.config))}static stsd(e){return e.type==="audio"?e.segmentCodec==="mp3"&&e.codec==="mp3"?te.box(te.types.stsd,te.STSD,te.mp3(e)):e.segmentCodec==="ac3"?te.box(te.types.stsd,te.STSD,te.ac3(e)):te.box(te.types.stsd,te.STSD,te.mp4a(e)):te.box(te.types.stsd,te.STSD,te.avc1(e))}static tkhd(e){const n=e.id,r=e.duration*e.timescale,i=e.width,s=e.he
115ight,a=Math.floor(r/(wa+1)),o=Math.floor(r%(wa+1));return te.box(te.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,n>>24&255,n>>16&255,n>>8&255,n&255,0,0,0,0,a>>24,a>>16&255,a>>8&255,a&255,o>>24,o>>16&255,o>>8&255,o&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,i&255,0,0,s>>8&255,s&255,0,0]))}static traf(e,n){const r=te.sdtp(e),i=e.id,s=Math.floor(n/(wa+1)),a=Math.floor(n%(wa+1));return te.box(te.types.traf,te.box(te.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,i&255])),te.box(te.types.tfdt,new Uint8Array([1,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,a>>24,a>>16&255,a>>8&255,a&255])),te.trun(e,r.length+16+20+8+16+8+8),r)}static trak(e){return e.duration=e.duration||4294967295,te.box(te.types.trak,te.tkhd(e),te.mdia(e))}static trex(e){const n=e.id;return te.box(te.types.trex,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,n){const r=e.samples||[],i=r.length,s=12+16*i,a=new Uint8Array(s);let o,l,c,u,f,d;for(n+=8+s,a.set([e.type==="video"?1:0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,i&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255],0),o=0;o<i;o++)l=r[o],c=l.duration,u=l.size,f=l.flags,d=l.cts,a.set([c>>>24&255,c>>>16&255,c>>>8&255,c&255,u>>>24&255,u>>>16&255,u>>>8&255,u&255,f.isLeading<<2|f.dependsOn,f.isDependedOn<<6|f.hasRedundancy<<4|f.paddingValue<<1|f.isNonSync,f.degradPrio&61440,f.degradPrio&15,d>>>24&255,d>>>16&255,d>>>8&255,d&255],12+16*o);return te.box(te.types.trun,a)}static initSegment(e){te.types||te.init();const n=te.moov(e);return Oi(te.FTYP,n)}}te.types=void 0;te.HDLR_TYPES=void 0;te.STTS=void 0;te.STSC=void 0;te.STCO=void 0;te.STSZ=void 0;te.VMHD=void 0;te.SMHD=void 0;te.STSD=void 0;te.FTYP=void 0;te.DINF=void 0;const kN=9e4;function FS(t,e,n=1,r=!1){const i=t*e*n;return r?Math.round(i):i}function X9(t,e,n=1,r=!1){return FS(t,e,1/n,r)}function Xu(t,e=!1){return FS(t,1e3,1/kN,e)}function J9(t,e=1){return FS(t,kN,1/e)}const Q9=10*1e3,bL=1024,Z9=1152,e7=1536;let rc=null,jv=null;class Ep{constructor(e,n,r,i=""){if(this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=n,this.typeSupported=r,this.ISGenerated=!1,rc===null){const a=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);rc=a?parseInt(a[1]):0}if(jv===null){const s=navigator.userAgent.match(/Safari\/(\d+)/i);jv=s?parseInt(s[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){J.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){J.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){J.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let n=!1;const r=e[0].pts,i=e.reduce((s,a)=>{let o=a.pts,l=o-s;return l<-4294967296&&(n=!0,o=xi(o,r),l=o-s),l>0?s:o},r);return n&&J.debug("PTS rollover detected"),i}remux(e,n,r,i,s,a,o,l){let c,u,f,d,h,p,m=s,g=s;const _=e.pid>-1,v=n.pid>-1,y=n.samples.length,E=e.samples.length>0,b=o&&y>0||y>1;if((!_||E)&&(!v||b)||this.ISGenerated||o){if(this.ISGenerated){var S,A,w,x;const F=this.videoTrackConfig;F&&(n.width!==F.width||n.height!==F.height||((S=n.pixelRatio)==null?void 0:S[0])!==((A=F.pixelRatio)==null?void 0:A[0])||((w=n.pixelRatio)==null?void 0:w[1])!==((x=F.pixelRatio)==null?void 0:x[1]))&&this.resetInitSegment()}else f=this.generateIS(e,n,s,a);const L=this.isVideoContiguous;let R=-1,k;if(b&&(R=t7(n.samples),!L&&this.config.forceKeyFrameOnDiscontinuity))if(p=!0,R>0){J.warn(`[mp4-remuxer]: Dropped ${R} out of ${y} video samples due to a missing keyframe`);const F=this.getVideoStartPts(n.samples);n.samples=n.samples.slice(R),n.dropped+=R,g+=(n.samples[0].pts-F)/n.inputTimeScale,k=g}else R===-1&&(J.warn(`[mp4-remuxer]: No keyframe found out of ${y} video samples`),p=!1);if(this.ISGenerated){if(E&&b){const F=this.getVideoStartPts(n.samples),H=(xi(e.samples[0].pts,F)-F)/n.inputTimeScale;m+=Math.max(0,H),g+=Math.max(0,-H)}if(E){if(e.samplerate||(J.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),f=this.generateIS(e,n,s,a)),u=this.remuxAudio(e,m,this.isAudioContiguous,a,v||b||l===De.AUDIO?g:void 0),b){const F=u?u.endPTS-u.startPTS:0;n.inputTimeScale||(J.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),f=this.generateIS(e,n,s,a)),c=this.remuxVideo(n,g,L,F)}}else b&&(c=this.remuxVideo(n,g,L,0));
vendor: 4,357 bytes, line 115
115c&&(c.firstKeyFrame=R,c.independent=R!==-1,c.firstKeyFramePTS=k)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(h=PN(r,s,this._initPTS,this._initDTS)),i.samples.length&&(d=DN(i,s,this._initPTS))),{audio:u,video:c,initSegment:f,independent:p,text:d,id3:h}}generateIS(e,n,r,i){const s=e.samples,a=n.samples,o=this.typeSupported,l={},c=this._initPTS;let u=!c||i,f="audio/mp4",d,h,p;if(u&&(d=h=1/0),e.config&&s.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":o.mpeg?(f="audio/mpeg",e.codec=""):o.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}l.audio={id:"audio",container:f,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&o.mpeg?new Uint8Array(0):te.initSegment([e]),metadata:{channelCount:e.channelCount}},u&&(p=e.inputTimeScale,!c||p!==c.timescale?d=h=s[0].pts-Math.round(p*r):u=!1)}if(n.sps&&n.pps&&a.length){if(n.timescale=n.inputTimeScale,l.video={id:"main",container:"video/mp4",codec:n.codec,initSegment:te.initSegment([n]),metadata:{width:n.width,height:n.height}},u)if(p=n.inputTimeScale,!c||p!==c.timescale){const m=this.getVideoStartPts(a),g=Math.round(p*r);h=Math.min(h,xi(a[0].dts,m)-g),d=Math.min(d,m-g)}else u=!1;this.videoTrackConfig={width:n.width,height:n.height,pixelRatio:n.pixelRatio}}if(Object.keys(l).length)return this.ISGenerated=!0,u?(this._initPTS={baseTime:d,timescale:p},this._initDTS={baseTime:h,timescale:p}):d=p=void 0,{tracks:l,initPTS:d,timescale:p}}remuxVideo(e,n,r,i){const s=e.inputTimeScale,a=e.samples,o=[],l=a.length,c=this._initPTS;let u=this.nextAvcDts,f=8,d=this.videoSampleDuration,h,p,m=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY,_=!1;if(!r||u===null){const q=n*s,P=a[0].pts-xi(a[0].dts,a[0].pts);rc&&u!==null&&Math.abs(q-P-u)<15e3?r=!0:u=q-P}const v=c.baseTime*s/c.timescale;for(let q=0;q<l;q++){const P=a[q];P.pts=xi(P.pts-v,u),P.dts=xi(P.dts-v,u),P.dts<a[q>0?q-1:q].dts&&(_=!0)}_&&a.sort(function(q,P){const ae=q.dts-P.dts,ce=q.pts-P.pts;return ae||ce}),h=a[0].dts,p=a[a.length-1].dts;const y=p-h,E=y?Math.round(y/(l-1)):d||e.inputTimeScale/30;if(r){const q=h-u,P=q>E,ae=q<-1;if((P||ae)&&(P?J.warn(`AVC: ${Xu(q,!0)} ms (${q}dts) hole between fragments detected at ${n.toFixed(3)}`):J.warn(`AVC: ${Xu(-q,!0)} ms (${q}dts) overlapping between fragments detected at ${n.toFixed(3)}`),!ae||u>=a[0].pts||rc)){h=u;const ce=a[0].pts-q;if(P)a[0].dts=h,a[0].pts=ce;else for(let ye=0;ye<a.length&&!(a[ye].dts>ce);ye++)a[ye].dts-=q,a[ye].pts-=q;J.log(`Video: Initial PTS/DTS adjusted: ${Xu(ce,!0)}/${Xu(h,!0)}, delta: ${Xu(q,!0)} ms`)}}h=Math.max(0,h);let b=0,T=0,S=h;for(let q=0;q<l;q++){const P=a[q],ae=P.units,ce=ae.length;let ye=0;for(let ve=0;ve<ce;ve++)ye+=ae[ve].data.length;T+=ye,b+=ce,P.length=ye,P.dts<S?(P.dts=S,S+=E/4|0||1):S=P.dts,m=Math.min(P.pts,m),g=Math.max(P.pts,g)}p=a[l-1].dts;const A=T+4*b+8;let w;try{w=new Uint8Array(A)}catch(q){this.observer.emit(I.ERROR,I.ERROR,{type:Fe.MUX_ERROR,details:ne.REMUX_ALLOC_ERROR,fatal:!1,error:q,bytes:A,reason:`fail allocating video mdat ${A}`});return}const x=new DataView(w.buffer);x.setUint32(0,A),w.set(te.types.mdat,4);let L=!1,R=Number.POSITIVE_INFINITY,k=Number.POSITIVE_INFINITY,F=Number.NEGATIVE_INFINITY,U=Number.NEGATIVE_INFINITY;for(let q=0;q<l;q++){const P=a[q],ae=P.units;let ce=0;for(let z=0,G=ae.length;z<G;z++){const N=ae[z],$=N.data,j=N.data.byteLength;x.setUint32(f,j),f+=4,w.set($,f),f+=j,ce+=4+j}let ye;if(q<l-1)d=a[q+1].dts-P.dts,ye=a[q+1].pts-P.pts;else{const z=this.config,G=q>0?P.dts-a[q-1].dts:E;if(ye=q>0?P.pts-a[q-1].pts:E,z.stretchShortVideoTrack&&this.nextAudioPts!==null){const N=Math.floor(z.maxBufferHole*s),$=(i?m+i*s:this.nextAudioPts)-P.pts;$>N?(d=$-G,d<0?d=G:L=!0,J.log(`[mp4-remuxer]: It is approximately ${$/90} ms to the next segment; using duration ${d/90} ms for the last video frame.`)):d=G}else d=G}const ve=Math.round(P.pts-P.dts);R=Math.min(R,d),F=Math.max(F,d),k=Math.min(k,ye),U=Math.max(U,ye),o.push(new TL(P.key,d,ce,ve))}if(o.length){if(rc){if(rc<70){const q=o[0].flags;q.dependsOn=2,q.isNonSync=0}}else if(jv&&U-k<F-R&&E/F<.025&&o[0].cts===0){J.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let q=h;for(let P=0,ae=o.length;P<ae;P++){const ce=q+o[P].duration,ye=q+o[P].cts;if(P<ae-1){const ve=ce+o[P+1].cts;o[P].duration=ve-ye}else o[P].duration=P?o[P-1].duration:E;o[P].cts=0,q=ce}}}
115d=L||!d?E:d,this.nextAvcDts=u=p+d,this.videoSampleDuration=d,this.isVideoContiguous=!0;const O={data1:te.moof(e.sequenceNumber++,h,Tn({},e,{samples:o})),data2:w,startPTS:m/s,endPTS:(g+d)/s,startDTS:h/s,endDTS:u/s,type:"video",hasAudio:!1,hasVideo:!0,nb:o.length,dropped:e.dropped};return e.samples=[],e.dropped=0,O}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return Z9;case"ac3":return e7;default:return bL}}remuxAudio(e,n,r,i,s){const a=e.inputTimeScale,o=e.samplerate?e.samplerate:a,l=a/o,c=this.getSamplesPerFrame(e),u=c*l,f=this._initPTS,d=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,h=[],p=s!==void 0;let m=e.samples,g=d?0:8,_=this.nextAudioPts||-1;const v=n*a,y=f.baseTime*a/f.timescale;if(this.isAudioContiguous=r=r||m.length&&_>0&&(i&&Math.abs(v-_)<9e3||Math.abs(xi(m[0].pts-y,v)-_)<20*u),m.forEach(function(H){H.pts=xi(H.pts-y,v)}),!r||_<0){if(m=m.filter(H=>H.pts>=0),!m.length)return;s===0?_=0:i&&!p?_=Math.max(0,v):_=m[0].pts}if(e.segmentCodec==="aac"){const H=this.config.maxAudioFramesDrift;for(let M=0,O=_;M<m.length;M++){const q=m[M],P=q.pts,ae=P-O,ce=Math.abs(1e3*ae/a);if(ae<=-H*u&&p)M===0&&(J.warn(`Audio frame @ ${(P/a).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*ae/a)} ms.`),this.nextAudioPts=_=O=P);else if(ae>=H*u&&ce<Q9&&p){let ye=Math.round(ae/u);O=P-ye*u,O<0&&(ye--,O+=u),M===0&&(this.nextAudioPts=_=O),J.warn(`[mp4-remuxer]: Injecting ${ye} audio frame @ ${(O/a).toFixed(3)}s due to ${Math.round(1e3*ae/a)} ms gap.`);for(let ve=0;ve<ye;ve++){const z=Math.max(O,0);let G=EL.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);G||(J.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),G=q.unit.subarray()),m.splice(M,0,{unit:G,pts:z}),O+=u,M++}}q.pts=O,O+=u}}let E=null,b=null,T,S=0,A=m.length;for(;A--;)S+=m[A].unit.byteLength;for(let H=0,M=m.length;H<M;H++){const O=m[H],q=O.unit;let P=O.pts;if(b!==null){const ce=h[H-1];ce.duration=Math.round((P-b)/l)}else if(r&&e.segmentCodec==="aac"&&(P=_),E=P,S>0){S+=g;try{T=new Uint8Array(S)}catch(ce){this.observer.emit(I.ERROR,I.ERROR,{type:Fe.MUX_ERROR,details:ne.REMUX_ALLOC_ERROR,fatal:!1,error:ce,bytes:S,reason:`fail allocating audio mdat ${S}`});return}d||(new DataView(T.buffer).setUint32(0,S),T.set(te.types.mdat,4))}else return;T.set(q,g);const ae=q.byteLength;g+=ae,h.push(new TL(!0,c,ae,0)),b=P}const w=h.length;if(!w)return;const x=h[h.length-1];this.nextAudioPts=_=b+l*x.duration;const L=d?new Uint8Array(0):te.moof(e.sequenceNumber++,E/l,Tn({},e,{samples:h}));e.samples=[];const R=E/a,k=_/a,U={data1:L,data2:T,startPTS:R,endPTS:k,startDTS:R,endDTS:k,type:"audio",hasAudio:!0,hasVideo:!1,nb:w};return this.isAudioContiguous=!0,U}remuxEmptyAudio(e,n,r,i){const s=e.inputTimeScale,a=e.samplerate?e.samplerate:s,o=s/a,l=this.nextAudioPts,c=this._initDTS,u=c.baseTime*9e4/c.timescale,f=(l!==null?l:i.startDTS*s)+u,d=i.endDTS*s+u,h=o*bL,p=Math.ceil((d-f)/h),m=EL.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(J.warn("[mp4-remuxer]: remux empty Audio"),!m){J.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}const g=[];for(let _=0;_<p;_++){const v=f+_*h;g.push({unit:m,pts:v,dts:v})}return e.samples=g,this.remuxAudio(e,n,r,!1)}}function xi(t,e){let n;if(e===null)return t;for(e<t?n=-8589934592:n=8589934592;Math.abs(t-e)>4294967296;)t+=n;return t}function t7(t){for(let e=0;e<t.length;e++)if(t[e].key)return e;return-1}function PN(t,e,n,r){const i=t.samples.length;if(!i)return;const s=t.inputTimeScale;for(let o=0;o<i;o++){const l=t.samples[o];l.pts=xi(l.pts-n.baseTime*s/n.timescale,e*s)/s,l.dts=xi(l.dts-r.baseTime*s/r.timescale,e*s)/s}const a=t.samples;return t.samples=[],{samples:a}}function DN(t,e,n){const r=t.samples.length;if(!r)return;const i=t.inputTimeScale;for(let a=0;a<r;a++){const o=t.samples[a];o.pts=xi(o.pts-n.baseTime*i/n.timescale,e*i)/i}t.samples.sort((a,o)=>a.pts-o.pts);const s=t.samples;return t.samples=[],{samples:s}}class TL{constructor(e,n,r,i){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=n,this.size=r,this.cts=i,this.flags={isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class n7{constructor(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(e,n,r,i){this.audioCodec=n,this.videoCodec=r,this.generateInitSegment(lX(e,i)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:n,videoCodec:r}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const i=this.initData=iN(e);i.audio&&(n=SL(i.audio,wt.AUDIO)),i.video&&(r=SL(i.video,wt.VIDEO));const s={};i.audio&&i.video?s.audiovideo={container:"video/mp4",codec:n+","+r,initSegment:e,id:"main"}:i.audio?s.audio={container:"audio/mp4",codec:n,initSegment:e,id:"audio"}:i.video?s.video={container:"video/mp4",codec:r,initSegment:e,id:"main"}:J.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=s}remux(e,n,r,i,s,a){var o,l;let{initPTS:c,lastEndTime:u}=this;const f={audio:void 0,video:void 0,text:i,id3:r,initSegment:void 0};Te(u)||(u=this.lastEndTime=s||0);const d=n.samples;if(!(d!=null&&d.length))return f;const h={initPTS:void 0,timescale:1};let p=this.initData;if((o=p)!=null&&o.length||(this.generateInitSegment(d),p=this.initData),!((l=p)!=null&&l.length))return J.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),f;this.emitInitSegment&&(h.tracks=this.initTracks,this.emitInitSegment=!1);const m=uX(d,p),g=cX(p,d),_=g===null?s:g;(r7(c,_,s,m)||h.timescale!==c.timescale&&a)&&(h.initPTS=_-s,c&&c.timescale===1&&J.warn(`Adjusting initPTS by ${h.initPTS-c.baseTime}`),this.initPTS=c={baseTime:h.initPTS,timescale:1});const v=e?_-c.baseTime/c.timescale:u,y=v+m;dX(p,d,c.baseTime/c.timescale),m>0?this.lastEndTime=y:(J.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const E=!!p.audio,b=!!p.video;let T="";E&&(T+="audio"),b&&(T+="video");const S={data1:d,startPTS:v,startDTS:v,endPTS:y,endDTS:y,type:T,hasAudio:E,hasVideo:b,nb:1,dropped:0};
115return f.audio=S.type==="audio"?S:void 0,f.video=S.type!=="audio"?S:void 0,f.initSegment=h,f.id3=PN(r,s,c,c),i.samples.length&&(f.text=DN(i,s,c)),f}}function r7(t,e,n,r){if(t===null)return!0;const i=Math.max(r,1),s=e-t.baseTime/t.timescale;return Math.abs(s-n)>i}function SL(t,e){const n=t==null?void 0:t.codec;if(n&&n.length>4)return n;if(e===wt.AUDIO){if(n==="ec-3"||n==="ac-3"||n==="alac")return n;if(n==="fLaC"||n==="Opus")return Hm(n,!1);const r="mp4a.40.5";return J.info(`Parsed audio codec "${n}" or audio object type not handled. Using "${r}"`),r}return J.warn(`Unhandled video codec "${n}"`),n==="hvc1"||n==="hev1"?"hvc1.1.6.L120.90":n==="av01"?"av01.0.04M.08":"avc1.42e01e"}let Js;try{Js=self.performance.now.bind(self.performance)}catch{J.debug("Unable to use Performance API on this environment"),Js=uu==null?void 0:uu.Date.now}const bp=[{demux:G9,remux:n7},{demux:Oa,remux:Ep},{demux:U9,remux:Ep},{demux:Y9,remux:Ep}];bp.splice(2,0,{demux:j9,remux:Ep});class wL{constructor(e,n,r,i,s){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=n,this.config=r,this.vendor=i,this.id=s}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,n,r,i){const s=r.transmuxing;s.executeStart=Js();let a=new Uint8Array(e);const{currentTransmuxState:o,transmuxConfig:l}=this;i&&(this.currentTransmuxState=i);const{contiguous:c,discontinuity:u,trackSwitch:f,accurateTimeOffset:d,timeOffset:h,initSegmentChange:p}=i||o,{audioCodec:m,videoCodec:g,defaultInitPts:_,duration:v,initSegmentData:y}=l,E=i7(a,n);if(E&&E.method==="AES-128"){const A=this.getDecrypter();if(A.isSync()){let w=A.softwareDecrypt(a,E.key.buffer,E.iv.buffer);if(r.part>-1&&(w=A.flush()),!w)return s.executeEnd=Js(),Vv(r);a=new Uint8Array(w)}else return this.decryptionPromise=A.webCryptoDecrypt(a,E.key.buffer,E.iv.buffer).then(w=>{const x=this.push(w,null,r);return this.decryptionPromise=null,x}),this.decryptionPromise}const b=this.needsProbing(u,f);if(b){const A=this.configureTransmuxer(a);if(A)return J.warn(`[transmuxer] ${A.message}`),this.observer.emit(I.ERROR,I.ERROR,{type:Fe.MEDIA_ERROR,details:ne.FRAG_PARSING_ERROR,fatal:!1,error:A,reason:A.message}),s.executeEnd=Js(),Vv(r)}(u||f||p||b)&&this.resetInitSegment(y,m,g,v,n),(u||p||b)&&this.resetInitialTimestamp(_),c||this.resetContiguity();const T=this.transmux(a,E,h,d,r),S=this.currentTransmuxState;return S.contiguous=!0,S.discontinuity=!1,S.trackSwitch=!1,s.executeEnd=Js(),T}flush(e){const n=e.transmuxing;n.executeStart=Js();const{decrypter:r,currentTransmuxState:i,decryptionPromise:s}=this;if(s)return s.then(()=>this.flush(e));const a=[],{timeOffset:o}=i;if(r){const f=r.flush();f&&a.push(this.push(f,null,e))}const{demuxer:l,remuxer:c}=this;if(!l||!c)return n.executeEnd=Js(),[Vv(e)];const u=l.flush(o);return Tp(u)?u.then(f=>(this.flushRemux(a,f,e),a)):(this.flushRemux(a,u,e),a)}flushRemux(e,n,r){const{audioTrack:i,videoTrack:s,id3Track:a,textTrack:o}=n,{accurateTimeOffset:l,timeOffset:c}=this.currentTransmuxState;J.log(`[transmuxer.ts]: Flushed fragment ${r.sn}${r.part>-1?" p: "+r.part:""} of level ${r.level}`);const u=this.remuxer.remux(i,s,a,o,c,l,!0,this.id);e.push({remuxResult:u,chunkMeta:r}),r.transmuxing.executeEnd=Js()}resetInitialTimestamp(e){const{demuxer:n,remuxer:r}=this;!n||!r||(n.resetTimeStamp(e),r.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:n}=this;!e||!n||(e.resetContiguity(),n.resetNextTimestamp())}resetInitSegment(e,n,r,i,s){const{demuxer:a,remuxer:o}=this;!a||!o||(a.resetInitSegment(e,n,r,i),o.resetInitSegment(e,n,r,s))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,n,r,i,s){let a;return n&&n.method==="SAMPLE-AES"?a=this.transmuxSampleAes(e,n,r,i,s):a=this.transmuxUnencrypted(e,r,i,s),a}transmuxUnencrypted(e,n,r,i){const{audioTrack:s,videoTrack:a,id3Track:o,textTrack:l}=this.demuxer.demux(e,n,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(s,a,o,l,n,r,!1,this.id),chunkMeta:i}}transmuxSampleAes(e,n,r,i,s){return this.demuxer.demuxSampleAes(e,n,r).then(a=>({remuxResult:this.remuxer.remux(a.audioTrack,a.videoTrack,a.id3Track,a.textTrack,r,i,!1,this.id),chunkMeta:s}))}
vendor: 4,750 bytes, line 115
115configureTransmuxer(e){const{config:n,observer:r,typeSupported:i,vendor:s}=this;let a;for(let d=0,h=bp.length;d<h;d++){var o;if((o=bp[d].demux)!=null&&o.probe(e)){a=bp[d];break}}if(!a)return new Error("Failed to find demuxer by probing fragment data");const l=this.demuxer,c=this.remuxer,u=a.remux,f=a.demux;(!c||!(c instanceof u))&&(this.remuxer=new u(r,n,i,s)),(!l||!(l instanceof f))&&(this.demuxer=new f(r,n,i),this.probe=f.probe)}needsProbing(e,n){return!this.demuxer||!this.remuxer||e||n}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new PS(this.config)),e}}function i7(t,e){let n=null;return t.byteLength>0&&(e==null?void 0:e.key)!=null&&e.iv!==null&&e.method!=null&&(n=e),n}const Vv=t=>({remuxResult:{},chunkMeta:t});function Tp(t){return"then"in t&&t.then instanceof Function}class s7{constructor(e,n,r,i,s){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=n,this.initSegmentData=r,this.duration=i,this.defaultInitPts=s||null}}class a7{constructor(e,n,r,i,s,a){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=n,this.accurateTimeOffset=r,this.trackSwitch=i,this.timeOffset=s,this.initSegmentChange=a}}var ON={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function s(l,c,u,f,d){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,f||l,d),p=n?n+c:c;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],h]:l._events[p].push(h):(l._events[p]=h,l._eventsCount++),l}function a(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function o(){this._events=new r,this._eventsCount=0}o.prototype.eventNames=function(){var c=[],u,f;if(this._eventsCount===0)return c;for(f in u=this._events)e.call(u,f)&&c.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},o.prototype.listeners=function(c){var u=n?n+c:c,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,p=new Array(h);d<h;d++)p[d]=f[d].fn;return p},o.prototype.listenerCount=function(c){var u=n?n+c:c,f=this._events[u];return f?f.fn?1:f.length:0},o.prototype.emit=function(c,u,f,d,h,p){var m=n?n+c:c;if(!this._events[m])return!1;var g=this._events[m],_=arguments.length,v,y;if(g.fn){switch(g.once&&this.removeListener(c,g.fn,void 0,!0),_){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,u),!0;case 3:return g.fn.call(g.context,u,f),!0;case 4:return g.fn.call(g.context,u,f,d),!0;case 5:return g.fn.call(g.context,u,f,d,h),!0;case 6:return g.fn.call(g.context,u,f,d,h,p),!0}for(y=1,v=new Array(_-1);y<_;y++)v[y-1]=arguments[y];g.fn.apply(g.context,v)}else{var E=g.length,b;for(y=0;y<E;y++)switch(g[y].once&&this.removeListener(c,g[y].fn,void 0,!0),_){case 1:g[y].fn.call(g[y].context);break;case 2:g[y].fn.call(g[y].context,u);break;case 3:g[y].fn.call(g[y].context,u,f);break;case 4:g[y].fn.call(g[y].context,u,f,d);break;default:if(!v)for(b=1,v=new Array(_-1);b<_;b++)v[b-1]=arguments[b];g[y].fn.apply(g[y].context,v)}}return!0},o.prototype.on=function(c,u,f){return s(this,c,u,f,!1)},o.prototype.once=function(c,u,f){return s(this,c,u,f,!0)},o.prototype.removeListener=function(c,u,f,d){var h=n?n+c:c;if(!this._events[h])return this;if(!u)return a(this,h),this;var p=this._events[h];if(p.fn)p.fn===u&&(!d||p.once)&&(!f||p.context===f)&&a(this,h);else{for(var m=0,g=[],_=p.length;m<_;m++)(p[m].fn!==u||d&&!p[m].once||f&&p[m].context!==f)&&g.push(p[m]);g.length?this._events[h]=g.length===1?g[0]:g:a(this,h)}return this},o.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&a(this,u)):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,t.exports=o})(ON);var o7=ON.exports,$S=I6(o7);class MN{constructor(e,n,r,i){this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;const s=e.config;this.hls=e,this.id=n,this.useWorker=!!s.enableWorker,this.onTransmuxComplete=r,this.onFlush=i;const a=(c,u)=>{u=u||{},u.frag=this.frag,u.id=this.id,c===I.ERROR&&(this.error=u.error),this.hls.trigger(c,u)};this.observer=new $S,this.observer.on(I.FRAG_DECRYPTED,a),this.observer.on(I.ERROR,a);
115const o=Ml(s.preferManagedMediaSource)||{isTypeSupported:()=>!1},l={mpeg:o.isTypeSupported("audio/mpeg"),mp3:o.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:o.isTypeSupported('audio/mp4; codecs="ac-3"')};if(this.useWorker&&typeof Worker<"u"&&(s.workerPath||A9())){try{s.workerPath?(J.log(`loading Web Worker ${s.workerPath} for "${n}"`),this.workerContext=L9(s.workerPath)):(J.log(`injecting Web Worker for "${n}"`),this.workerContext=R9()),this.onwmsg=f=>this.onWorkerMessage(f);const{worker:u}=this.workerContext;u.addEventListener("message",this.onwmsg),u.onerror=f=>{const d=new Error(`${f.message} (${f.filename}:${f.lineno})`);s.enableWorker=!1,J.warn(`Error in "${n}" Web Worker, fallback to inline`),this.hls.trigger(I.ERROR,{type:Fe.OTHER_ERROR,details:ne.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:d})},u.postMessage({cmd:"init",typeSupported:l,vendor:"",id:n,config:JSON.stringify(s)})}catch(u){J.warn(`Error setting up "${n}" Web Worker, fallback to inline`,u),this.resetWorker(),this.error=null,this.transmuxer=new wL(this.observer,l,s,"",n)}return}this.transmuxer=new wL(this.observer,l,s,"",n)}resetWorker(){if(this.workerContext){const{worker:e,objectURL:n}=this.workerContext;n&&self.URL.revokeObjectURL(n),e.removeEventListener("message",this.onwmsg),e.onerror=null,e.terminate(),this.workerContext=null}}destroy(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{const n=this.transmuxer;n&&(n.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}push(e,n,r,i,s,a,o,l,c,u){var f,d;c.transmuxing.start=self.performance.now();const{transmuxer:h}=this,p=a?a.start:s.start,m=s.decryptdata,g=this.frag,_=!(g&&s.cc===g.cc),v=!(g&&c.level===g.level),y=g?c.sn-g.sn:-1,E=this.part?c.part-this.part.index:-1,b=y===0&&c.id>1&&c.id===(g==null?void 0:g.stats.chunkCount),T=!v&&(y===1||y===0&&(E===1||b&&E<=0)),S=self.performance.now();(v||y||s.stats.parsing.start===0)&&(s.stats.parsing.start=S),a&&(E||!T)&&(a.stats.parsing.start=S);const A=!(g&&((f=s.initSegment)==null?void 0:f.url)===((d=g.initSegment)==null?void 0:d.url)),w=new a7(_,T,l,v,p,A);if(!T||_||A){J.log(`[transmuxer-interface, ${s.type}]: Starting new transmux session for sn: ${c.sn} p: ${c.part} level: ${c.level} id: ${c.id} 116 discontinuity: ${_} 117 trackSwitch: ${v} 118 contiguous: ${T} 119 accurateTimeOffset: ${l} 120 timeOffset: ${p} 121 initSegmentChange: ${A}`);const x=new s7(r,i,n,o,u);this.configureTransmuxer(x)}if(this.frag=s,this.part=a,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:e,decryptdata:m,chunkMeta:c,state:w},e instanceof ArrayBuffer?[e]:[]);else if(h){const x=h.push(e,m,c,w);Tp(x)?(h.async=!0,x.then(L=>{this.handleTransmuxComplete(L)}).catch(L=>{this.transmuxerError(L,c,"transmuxer-interface push error")})):(h.async=!1,this.handleTransmuxComplete(x))}}flush(e){e.transmuxing.start=self.performance.now();const{transmuxer:n}=this;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:e});else if(n){let r=n.flush(e);Tp(r)||n.async?(Tp(r)||(r=Promise.resolve(r)),r.then(s=>{this.handleFlushResult(s,e)}).catch(s=>{this.transmuxerError(s,e,"transmuxer-interface flush error")})):this.handleFlushResult(r,e)}}transmuxerError(e,n,r){this.hls&&(this.error=e,this.hls.trigger(I.ERROR,{type:Fe.MEDIA_ERROR,details:ne.FRAG_PARSING_ERROR,chunkMeta:n,frag:this.frag||void 0,fatal:!1,error:e,err:e,reason:r}))}handleFlushResult(e,n){e.forEach(r=>{this.handleTransmuxComplete(r)}),this.onFlush(n)}onWorkerMessage(e){const n=e.data;if(!(n!=null&&n.event)){J.warn(`worker message received with no ${n?"event name":"data"}`);return}const r=this.hls;if(this.hls)switch(n.event){case"init":{var i;const s=(i=this.workerContext)==null?void 0:i.objectURL;s&&self.URL.revokeObjectURL(s);break}case"transmuxComplete":{this.handleTransmuxComplete(n.data);break}case"flush":{this.onFlush(n.data);break}case"workerLog":J[n.data.logType]&&J[n.data.logType](n.data.message);break;default:{n.data=n.data||{},n.data.frag=this.frag,n.data.id=this.id,r.trigger(n.event,n.data);break}}}configureTransmuxer(e){const{transmuxer:n}=this;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:e}):n&&n.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}function NN(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!du(t[n].attrs,e[n].attrs))return!1;return!0}function du(t,e,n){const r=t["STABLE-RENDITION-ID"];return r&&!n?r===e["STABLE-RENDITION-ID"]:!(n||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(i=>t[i]!==e[i])}function gb(t,e){return e.label.toLowerCase()===t.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(t.lang||"").toLowerCase())}const xL=100;class l7 extends DS{constructor(e,n,r){super(e,n,r,"[audio-stream-controller]",De.AUDIO),this.videoBuffer=null,this.videoTrackCC=-1,this.waitingVideoCC=-1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null}_registerListeners(){const{hls:e}=this;
121e.on(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.LEVEL_LOADED,this.onLevelLoaded,this),e.on(I.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(I.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(I.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(I.ERROR,this.onError,this),e.on(I.BUFFER_RESET,this.onBufferReset,this),e.on(I.BUFFER_CREATED,this.onBufferCreated,this),e.on(I.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(I.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(I.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(I.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.LEVEL_LOADED,this.onLevelLoaded,this),e.off(I.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(I.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(I.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(I.ERROR,this.onError,this),e.off(I.BUFFER_RESET,this.onBufferReset,this),e.off(I.BUFFER_CREATED,this.onBufferCreated,this),e.off(I.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(I.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(I.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(I.FRAG_BUFFERED,this.onFragBuffered,this)}onInitPtsFound(e,{frag:n,id:r,initPTS:i,timescale:s}){if(r==="main"){const a=n.cc;this.initPTS[n.cc]={baseTime:i,timescale:s},this.log(`InitPTS for cc: ${a} found from main: ${i}`),this.videoTrackCC=a,this.state===le.WAITING_INIT_PTS&&this.tick()}}startLoad(e){if(!this.levels){this.startPosition=e,this.state=le.STOPPED;return}const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(xL),n>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n,this.state=le.IDLE):(this.loadedmetadata=!1,this.state=le.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}doTick(){switch(this.state){case le.IDLE:this.doTickIdle();break;case le.WAITING_TRACK:{var e;const{levels:r,trackId:i}=this,s=r==null||(e=r[i])==null?void 0:e.details;if(s){if(this.waitForCdnTuneIn(s))break;this.state=le.WAITING_INIT_PTS}break}case le.FRAG_LOADING_WAITING_RETRY:{var n;const r=performance.now(),i=this.retryDate;if(!i||r>=i||(n=this.media)!=null&&n.seeking){const{levels:s,trackId:a}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((s==null?void 0:s[a])||null),this.state=le.IDLE}break}case le.WAITING_INIT_PTS:{const r=this.waitingData;if(r){const{frag:i,part:s,cache:a,complete:o}=r;if(this.initPTS[i.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=le.FRAG_LOADING;const l=a.flush(),c={frag:i,part:s,payload:l,networkDetails:null};this._handleFragmentLoadProgress(c),o&&super._handleFragmentLoadComplete(c)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log(`Waiting fragment cc (${i.cc}) cancelled because video is at cc ${this.videoTrackCC}`),this.clearWaitingFragment();else{const l=this.getLoadPosition(),c=$t.bufferInfo(this.mediaBuffer,l,this.config.maxBufferHole);pb(c.end,this.config.maxFragLookUpTolerance,i)<0&&(this.log(`Waiting fragment cc (${i.cc}) @ ${i.start} cancelled because another fragment at ${c.end} is needed`),this.clearWaitingFragment())}}else this.state=le.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=le.IDLE)}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){const{hls:e,levels:n,media:r,trackId:i}=this,s=e.config;if(!this.buffering||!r&&(this.startFragRequested||!s.startFragPrefetch)||!(n!=null&&n[i]))return;const a=n[i],o=a.details;if(!o||o.live&&this.levelLastLoaded!==a||this.waitForCdnTuneIn(o)){this.state=le.WAITING_TRACK;return}const l=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&l&&(this.bufferFlushed=!1,this.afterBufferFlushed(l,wt.AUDIO,De.AUDIO));const c=this.getFwdBufferInfo(l,De.AUDIO);if(c===null)return;const{bufferedTrack:u,switchingTrack:f}=this;if(!f&&this._streamEnded(c,o)){e.trigger(I.BUFFER_EOS,{type:"audio"}),this.state=le.ENDED;return}const d=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,De.MAIN),h=c.len,p=this.getMaxBufferLength(d==null?void 0:d.len),m=o.fragments,g=m[0].start;let _=this.flushing?this.getLoadPosition():c.end;if(f&&r){const b=this.getLoadPosition();u&&!du(f.attrs,u.attrs)&&(_=b),o.PTSKnown&&b<g&&(c.end>g||c.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=g+.05)}if(h>=p&&!f&&_<m[m.length-1].start)return;let v=this.getNextFragment(_,o),y=!1;if(v&&this.isLoopLoading(v,_)&&(y=!!v.gap,v=this.getNextFragmentLoopLoading(v,o,c,De.MAIN,p)),!v){this.bufferFlushed=!0;return}const E=d&&v.start>d.end+o.targetduration;if(E||!(d!=null&&d.len)&&c.len){const b=this.getAppendedFrag(v.start,De.MAIN);if(b===null||(y||(y=!!b.gap||!!E&&d.len===0),E&&!y||y&&c.nextStart&&c.nextStart<b.end))return}this.loadFragment(v,a,_)}getMaxBufferLength(e){const n=super.getMaxBufferLength();
121return e?Math.min(Math.max(n,e),this.config.maxMaxBufferLength):n}onMediaDetaching(){this.videoBuffer=null,this.bufferFlushed=this.flushing=!1,super.onMediaDetaching()}onAudioTracksUpdated(e,{audioTracks:n}){this.resetTransmuxer(),this.levels=n.map(r=>new fu(r))}onAudioTrackSwitching(e,n){const r=!!n.url;this.trackId=n.id;const{fragCurrent:i}=this;i&&(i.abortRequests(),this.removeUnbufferedFrags(i.start)),this.resetLoadingState(),r?this.setInterval(xL):this.resetTransmuxer(),r?(this.switchingTrack=n,this.state=le.IDLE,this.flushAudioIfNeeded(n)):(this.switchingTrack=null,this.bufferedTrack=n,this.state=le.STOPPED),this.tick()}onManifestLoading(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=this.flushing=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}onLevelLoaded(e,n){this.mainDetails=n.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(I.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}onAudioTrackLoaded(e,n){var r;if(this.mainDetails==null){this.cachedTrackLoadedData=n;return}const{levels:i}=this,{details:s,id:a}=n;if(!i){this.warn(`Audio tracks were reset while loading level ${a}`);return}this.log(`Audio track ${a} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`);const o=i[a];let l=0;if(s.live||(r=o.details)!=null&&r.live){this.checkLiveUpdate(s);const u=this.mainDetails;if(s.deltaUpdateFailed||!u)return;if(!o.details&&s.hasProgramDateTime&&u.hasProgramDateTime)Km(s,u),l=s.fragments[0].start;else{var c;l=this.alignPlaylists(s,o.details,(c=this.levelLastLoaded)==null?void 0:c.details)}}o.details=s,this.levelLastLoaded=o,!this.startFragRequested&&(this.mainDetails||!s.live)&&this.setStartPosition(this.mainDetails||s,l),this.state===le.WAITING_TRACK&&!this.waitForCdnTuneIn(s)&&(this.state=le.IDLE),this.tick()}_handleFragmentLoadProgress(e){var n;const{frag:r,part:i,payload:s}=e,{config:a,trackId:o,levels:l}=this;if(!l){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const c=l[o];if(!c){this.warn("Audio track is undefined on fragment load progress");return}const u=c.details;if(!u){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const f=a.defaultAudioCodec||c.audioCodec||"mp4a.40.2";let d=this.transmuxer;d||(d=this.transmuxer=new MN(this.hls,De.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const h=this.initPTS[r.cc],p=(n=r.initSegment)==null?void 0:n.data;if(h!==void 0){const g=i?i.index:-1,_=g!==-1,v=new kS(r.level,r.sn,r.stats.chunkCount,s.byteLength,g,_);d.push(s,p,f,"",r,i,u.totalduration,!1,v,h)}else{this.log(`Unknown video PTS for cc ${r.cc}, waiting for video PTS before demuxing audio frag ${r.sn} of [${u.startSN} ,${u.endSN}],track ${o}`);const{cache:m}=this.waitingData=this.waitingData||{frag:r,part:i,cache:new _N,complete:!1};m.push(new Uint8Array(s)),this.waitingVideoCC=this.videoTrackCC,this.state=le.WAITING_INIT_PTS}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}onBufferCreated(e,n){const r=n.tracks.audio;r&&(this.mediaBuffer=r.buffer||null),n.tracks.video&&(this.videoBuffer=n.tracks.video.buffer||null)}onFragBuffered(e,n){const{frag:r,part:i}=n;if(r.type!==De.AUDIO){if(!this.loadedmetadata&&r.type===De.MAIN){const s=this.videoBuffer||this.media;s&&$t.getBuffered(s).length&&(this.loadedmetadata=!0)}return}if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${i?" p: "+i.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(r.sn!=="initSegment"){this.fragPrevious=r;const s=this.switchingTrack;
121s&&(this.bufferedTrack=s,this.switchingTrack=null,this.hls.trigger(I.AUDIO_TRACK_SWITCHED,Kn({},s)))}this.fragBufferedComplete(r,i)}onError(e,n){var r;if(n.fatal){this.state=le.ERROR;return}switch(n.details){case ne.FRAG_GAP:case ne.FRAG_PARSING_ERROR:case ne.FRAG_DECRYPT_ERROR:case ne.FRAG_LOAD_ERROR:case ne.FRAG_LOAD_TIMEOUT:case ne.KEY_LOAD_ERROR:case ne.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(De.AUDIO,n);break;case ne.AUDIO_TRACK_LOAD_ERROR:case ne.AUDIO_TRACK_LOAD_TIMEOUT:case ne.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===le.WAITING_TRACK&&((r=n.context)==null?void 0:r.type)===dt.AUDIO_TRACK&&(this.state=le.IDLE);break;case ne.BUFFER_APPEND_ERROR:case ne.BUFFER_FULL_ERROR:if(!n.parent||n.parent!=="audio")return;if(n.details===ne.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(n)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case ne.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onBufferFlushing(e,{type:n}){n!==wt.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:n}){if(n!==wt.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===le.ENDED&&(this.state=le.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,n,De.AUDIO),this.tick())}}_handleTransmuxComplete(e){var n;const r="audio",{hls:i}=this,{remuxResult:s,chunkMeta:a}=e,o=this.getCurrentContext(a);if(!o){this.resetWhenMissingContext(a);return}const{frag:l,part:c,level:u}=o,{details:f}=u,{audio:d,text:h,id3:p,initSegment:m}=s;if(this.fragContextChanged(l)||!f){this.fragmentTracker.removeFragment(l);return}if(this.state=le.PARSING,this.switchingTrack&&d&&this.completeAudioSwitch(this.switchingTrack),m!=null&&m.tracks){const g=l.initSegment||l;this._bufferInitSegment(u,m.tracks,g,a),i.trigger(I.FRAG_PARSING_INIT_SEGMENT,{frag:g,id:r,tracks:m.tracks})}if(d){const{startPTS:g,endPTS:_,startDTS:v,endDTS:y}=d;c&&(c.elementaryStreams[wt.AUDIO]={startPTS:g,endPTS:_,startDTS:v,endDTS:y}),l.setElementaryStreamInfo(wt.AUDIO,g,_,v,y),this.bufferFragmentData(d,l,c,a)}if(p!=null&&(n=p.samples)!=null&&n.length){const g=Tn({id:r,frag:l,details:f},p);i.trigger(I.FRAG_PARSING_METADATA,g)}if(h){const g=Tn({id:r,frag:l,details:f},h);i.trigger(I.FRAG_PARSING_USERDATA,g)}}_bufferInitSegment(e,n,r,i){if(this.state!==le.PARSING)return;n.video&&delete n.video;const s=n.audio;if(!s)return;s.id="audio";const a=e.audioCodec;this.log(`Init audio buffer, container:${s.container}, codecs[level/parsed]=[${a}/${s.codec}]`),a&&a.split(",").length===1&&(s.levelCodec=a),this.hls.trigger(I.BUFFER_CODECS,n);const o=s.initSegment;if(o!=null&&o.byteLength){const l={type:"audio",frag:r,part:null,chunkMeta:i,parent:r.type,data:o};this.hls.trigger(I.BUFFER_APPENDING,l)}this.tickImmediate()}loadFragment(e,n,r){const i=this.fragmentTracker.getState(e);if(this.fragCurrent=e,this.switchingTrack||i===Hn.NOT_LOADED||i===Hn.PARTIAL){var s;if(e.sn==="initSegment")this._loadInitSegment(e,n);else if((s=n.details)!=null&&s.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=le.WAITING_INIT_PTS;const a=this.mainDetails;a&&a.fragments[0].start!==n.details.fragments[0].start&&Km(n.details,a)}else this.startFragRequested=!0,super.loadFragment(e,n,r)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){const{media:n,bufferedTrack:r}=this,i=r==null?void 0:r.attrs,s=e.attrs;n&&i&&(i.CHANNELS!==s.CHANNELS||r.name!==e.name||r.lang!==e.lang)&&(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null)}completeAudioSwitch(e){const{hls:n}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,n.trigger(I.AUDIO_TRACK_SWITCHED,Kn({},e))}}class c7 extends IS{constructor(e){super(e,"[audio-track-controller]"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:e}=this;e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.MANIFEST_PARSED,this.onManifestParsed,this),e.on(I.LEVEL_LOADING,this.onLevelLoading,this),e.on(I.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(I.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(I.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.MANIFEST_PARSED,this.onManifestParsed,this),e.off(I.LEVEL_LOADING,this.onLevelLoading,this),e.off(I.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(I.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(I.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(e,n){this.tracks=n.audioTracks||[]}onAudioTrackLoaded(e,n){const{id:r,groupId:i,details:s}=n,a=this.tracksInGroup[r];if(!a||a.groupId!==i){this.warn(`Audio track with id:${r} and group:${i} not found in active group ${a==null?void 0:a.groupId}`);return}const o=a.details;a.details=n.details,this.log(`Audio track ${r} "${a.name}" lang:${a.lang} group:${i} loaded [${s.startSN}-${s.endSN}]`),r===this.trackId&&this.playlistLoaded(r,n,o)}onLevelLoading(e,n){this.switchLevel(n.level)}onLevelSwitching(e,n){this.switchLevel(n.level)}switchLevel(e){const n=this.hls.levels[e];if(!n)return;const r=n.audioGroups||null,i=this.groupIds;let s=this.currentTrack;if(!r||(i==null?void 0:i.length)!==(r==null?void 0:r.length)||r!=null&&r.some(o=>(i==null?void 0:i.indexOf(o))===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const o=this.tracks.filter(d=>!r||r.indexOf(d.groupId)!==-1);if(o.length)this.selectDefaultTrack&&!o.some(d=>d.default)&&(this.selectDefaultTrack=!1),o.forEach((d,h)=>{d.id=h});else if(!s&&!this.tracksInGroup.length)return;this.tracksInGroup=o;const l=this.hls.config.audioPreference;if(!s&&l){const d=Ss(l,o,ec);if(d>-1)s=o[d];else{const h=Ss(l,this.tracks);s=this.tracks[h]}}let c=this.findTrackId(s);c===-1&&s&&(c=this.findTrackId(null));const u={audioTracks:o};this.log(`Updating audio tracks, ${o.length} track(s) found in group(s): ${r==null?void 0:r.join(",")}`),this.hls.trigger(I.AUDIO_TRACKS_UPDATED,u);const f=this.trackId;if(c!==-1&&f===-1)this.setAudioTrack(c);else if(o.length&&f===-1){var a;const d=new Error(`No audio track selected for current audio group-ID(s): ${(a=this.groupIds)==null?void 0:a.join(",")} track count: ${o.length}`);this.warn(d.message),this.hls.trigger(I.ERROR,{type:Fe.MEDIA_ERROR,details:ne.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:d})}}else this.shouldReloadPlaylist(s)&&this.setAudioTrack(this.trackId)}onError(e,n){n.fatal||!n.context||n.context.type===dt.AUDIO_TRACK&&n.c
121ontext.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(n.context.groupId)!==-1)&&(this.requestScheduled=-1,this.checkRetry(n))}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){const n=this.hls;if(n.config.audioPreference=e,e){const r=this.allAudioTracks;if(this.selectDefaultTrack=!1,r.length){const i=this.currentTrack;if(i&&Hc(e,i,ec))return i;const s=Ss(e,this.tracksInGroup,ec);if(s>-1){const a=this.tracksInGroup[s];return this.setAudioTrack(s),a}else if(i){let a=n.loadLevel;a===-1&&(a=n.firstAutoLevel);const o=c9(e,n.levels,r,a,ec);if(o===-1)return null;n.nextLoadLevel=o}if(e.channels||e.audioCodec){const a=Ss(e,r);if(a>-1)return r[a]}}}return null}setAudioTrack(e){const n=this.tracksInGroup;if(e<0||e>=n.length){this.warn(`Invalid audio track id: ${e}`);return}this.clearTimer(),this.selectDefaultTrack=!1;const r=this.currentTrack,i=n[e],s=i.details&&!i.details.live;if(e===this.trackId&&i===r&&s||(this.log(`Switching to audio-track ${e} "${i.name}" lang:${i.lang} group:${i.groupId} channels:${i.channels}`),this.trackId=e,this.currentTrack=i,this.hls.trigger(I.AUDIO_TRACK_SWITCHING,Kn({},i)),s))return;const a=this.switchParams(i.url,r==null?void 0:r.details,i.details);this.loadPlaylist(a)}findTrackId(e){const n=this.tracksInGroup;for(let r=0;r<n.length;r++){const i=n[r];if(!(this.selectDefaultTrack&&!i.default)&&(!e||Hc(e,i,ec)))return r}if(e){const{name:r,lang:i,assocLang:s,characteristics:a,audioCodec:o,channels:l}=e;for(let c=0;c<n.length;c++){const u=n[c];if(Hc({name:r,lang:i,assocLang:s,characteristics:a,audioCodec:o,channels:l},u,ec))return c}for(let c=0;c<n.length;c++){const u=n[c];if(du(e.attrs,u.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return c}for(let c=0;c<n.length;c++){const u=n[c];if(du(e.attrs,u.attrs,["LANGUAGE"]))return c}}return-1}loadPlaylist(e){const n=this.currentTrack;if(this.shouldLoadPlaylist(n)&&n){super.loadPlaylist();const r=n.id,i=n.groupId;let s=n.url;if(e)try{s=e.addDirectives(s)}catch(a){this.warn(`Could not construct new URL with HLS Delivery Directives: ${a}`)}this.log(`loading audio-track playlist ${r} "${n.name}" lang:${n.lang} group:${i}`),this.clearTimer(),this.hls.trigger(I.AUDIO_TRACK_LOADING,{url:s,id:r,groupId:i,deliveryDirectives:e||null})}}}const AL=500;class u7 extends DS{constructor(e,n,r){super(e,n,r,"[subtitle-stream-controller]",De.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}_registerListeners(){const{hls:e}=this;e.on(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.LEVEL_LOADED,this.onLevelLoaded,this),e.on(I.ERROR,this.onError,this),e.on(I.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(I.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(I.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(I.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(I.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(I.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.LEVEL_LOADED,this.onLevelLoaded,this),e.off(I.ERROR,this.onError,this),e.off(I.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(I.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(I.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(I.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(I.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(I.FRAG_BUFFERED,this.onFragBuffered,this)}startLoad(e){this.stopLoad(),this.state=le.IDLE,this.setInterval(AL),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}onManifestLoading(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}onMediaDetaching(){this.tracksBuffered=[],super.onMediaDetaching()}onLevelLoaded(e,n){this.mainDetails=n.details}onSubtitleFragProcessed(e,n){const{frag:r,success:i}=n;if(this.fragPrevious=r,this.state=le.IDLE,!i)return;const s=this.tracksBuffered[this.currentTrackId];if(!s)return;let a;const o=r.start;for(let c=0;c<s.length;c++)if(o>=s[c].start&&o<=s[c].end){a=s[c];break}const l=r.start+r.duration;a?a.end=l:(a={start:o,end:l},s.push(a)),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null)}onBufferFlushing(e,n){const{startOffset:r,endOffset:i}=n;if(r===0&&i!==Number.POSITIVE_INFINITY){const s=i-1;if(s<=0)return;n.endOffsetSubtitles=Math.max(0,s),this.tracksBuffered.forEach(a=>{for(let o=0;o<a.length;){if(a[o].end<=s){a.shift();continue}else if(a[o].start<s)a[o].start=s;else break;o++}}),this.fragmentTracker.removeFragmentsInRange(r,s,De.SUBTITLE)}}onFragBuffered(e,n){if(!this.loadedmetadata&&n.frag.type===De.MAIN){var r;(r=this.media)!=null&&r.buffered.length&&(this.loadedmetadata=!0)}}onError(e,n){const r=n.frag;(r==null?void 0:r.type)===De.SUBTITLE&&(n.details===ne.FRAG_GAP&&this.fragmentTracker.fragBuffered(r,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==le.STOPPED&&(this.state=le.IDLE))}
121onSubtitleTracksUpdated(e,{subtitleTracks:n}){if(this.levels&&NN(this.levels,n)){this.levels=n.map(r=>new fu(r));return}this.tracksBuffered=[],this.levels=n.map(r=>{const i=new fu(r);return this.tracksBuffered[i.id]=[],i}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,De.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,n){var r;if(this.currentTrackId=n.id,!((r=this.levels)!=null&&r.length)||this.currentTrackId===-1){this.clearInterval();return}const i=this.levels[this.currentTrackId];i!=null&&i.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,i&&this.setInterval(AL)}onSubtitleTrackLoaded(e,n){var r;const{currentTrackId:i,levels:s}=this,{details:a,id:o}=n;if(!s){this.warn(`Subtitle tracks were reset while loading level ${o}`);return}const l=s[o];if(o>=s.length||!l)return;this.log(`Subtitle track ${o} loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""},duration:${a.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let c=0;if(a.live||(r=l.details)!=null&&r.live){const f=this.mainDetails;if(a.deltaUpdateFailed||!f)return;const d=f.fragments[0];if(!l.details)a.hasProgramDateTime&&f.hasProgramDateTime?(Km(a,f),c=a.fragments[0].start):d&&(c=d.start,hb(a,c));else{var u;c=this.alignPlaylists(a,l.details,(u=this.levelLastLoaded)==null?void 0:u.details),c===0&&d&&(c=d.start,hb(a,c))}}l.details=a,this.levelLastLoaded=l,o===i&&(!this.startFragRequested&&(this.mainDetails||!a.live)&&this.setStartPosition(this.mainDetails||a,c),this.tick(),a.live&&!this.fragCurrent&&this.media&&this.state===le.IDLE&&(qm(null,a.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),l.details=void 0)))}_handleFragmentLoadComplete(e){const{frag:n,payload:r}=e,i=n.decryptdata,s=this.hls;if(!this.fragContextChanged(n)&&r&&r.byteLength>0&&i!=null&&i.key&&i.iv&&i.method==="AES-128"){const a=performance.now();this.decrypter.decrypt(new Uint8Array(r),i.key.buffer,i.iv.buffer).catch(o=>{throw s.trigger(I.ERROR,{type:Fe.MEDIA_ERROR,details:ne.FRAG_DECRYPT_ERROR,fatal:!1,error:o,reason:o.message,frag:n}),o}).then(o=>{const l=performance.now();s.trigger(I.FRAG_DECRYPTED,{frag:n,payload:o,stats:{tstart:a,tdecrypt:l}})}).catch(o=>{this.warn(`${o.name}: ${o.message}`),this.state=le.IDLE})}}doTick(){if(!this.media){this.state=le.IDLE;return}if(this.state===le.IDLE){const{currentTrackId:e,levels:n}=this,r=n==null?void 0:n[e];if(!r||!n.length||!r.details)return;const{config:i}=this,s=this.getLoadPosition(),a=$t.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],s,i.maxBufferHole),{end:o,len:l}=a,c=this.getFwdBufferInfo(this.media,De.MAIN),u=r.details,f=this.getMaxBufferLength(c==null?void 0:c.len)+u.levelTargetDuration;if(l>f)return;const d=u.fragments,h=d.length,p=u.edge;let m=null;const g=this.fragPrevious;if(o<p){const _=i.maxFragLookUpTolerance,v=o>p-_?0:_;m=qm(g,d,Math.max(d[0].start,o),v),!m&&g&&g.start<d[0].start&&(m=d[0])}else m=d[h-1];if(!m)return;if(m=this.mapToInitFragWhenRequired(m),m.sn!=="initSegment"){const _=m.sn-u.startSN,v=d[_-1];v&&v.cc===m.cc&&this.fragmentTracker.getState(v)===Hn.NOT_LOADED&&(m=v)}this.fragmentTracker.getState(m)===Hn.NOT_LOADED&&this.loadFragment(m,r,o)}}getMaxBufferLength(e){const n=super.getMaxBufferLength();return e?Math.max(n,e):n}loadFragment(e,n,r){this.fragCurrent=e,e.sn==="initSegment"?this._loadInitSegment(e,n):(this.startFragRequested=!0,super.loadFragment(e,n,r))}get mediaBufferTimeRanges(){return new f7(this.tracksBuffered[this.currentTrackId]||[])}}class f7{constructor(e){this.buffered=void 0;const n=(r,i,s)=>{if(i=i>>>0,i>s-1)throw new DOMException(`Failed to execute '${r}' on 'TimeRanges': The index provided (${i}) is greater than the maximum bound (${s})`);return e[i][r]};this.buffered={get length(){return e.length},end(r){return n("end",r,e.length)},start(r){return n("start",r,e.length)}}}}class d7 extends IS{constructor(e){super(e,"[subtitle-track-controller]"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.onTextTracksChanged=()=>
121{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let n=null;const r=yp(this.media.textTracks);for(let s=0;s<r.length;s++)if(r[s].mode==="hidden")n=r[s];else if(r[s].mode==="showing"){n=r[s];break}const i=this.findTrackForTextTrack(n);this.subtitleTrack!==i&&this.setSubtitleTrack(i)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){const{hls:e}=this;e.on(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.MANIFEST_PARSED,this.onManifestParsed,this),e.on(I.LEVEL_LOADING,this.onLevelLoading,this),e.on(I.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(I.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(I.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.MANIFEST_PARSED,this.onManifestParsed,this),e.off(I.LEVEL_LOADING,this.onLevelLoading,this),e.off(I.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(I.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(I.ERROR,this.onError,this)}onMediaAttached(e,n){this.media=n.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),yp(this.media.textTracks).forEac
vendor: 2,407 bytes, line 121
121h(n=>{Sc(n)}),this.subtitleTrack=-1,this.media=null}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,n){this.tracks=n.subtitleTracks}onSubtitleTrackLoaded(e,n){const{id:r,groupId:i,details:s}=n,a=this.tracksInGroup[r];if(!a||a.groupId!==i){this.warn(`Subtitle track with id:${r} and group:${i} not found in active group ${a==null?void 0:a.groupId}`);return}const o=a.details;a.details=n.details,this.log(`Subtitle track ${r} "${a.name}" lang:${a.lang} group:${i} loaded [${s.startSN}-${s.endSN}]`),r===this.trackId&&this.playlistLoaded(r,n,o)}onLevelLoading(e,n){this.switchLevel(n.level)}onLevelSwitching(e,n){this.switchLevel(n.level)}switchLevel(e){const n=this.hls.levels[e];if(!n)return;const r=n.subtitleGroups||null,i=this.groupIds;let s=this.currentTrack;if(!r||(i==null?void 0:i.length)!==(r==null?void 0:r.length)||r!=null&&r.some(a=>(i==null?void 0:i.indexOf(a))===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const a=this.tracks.filter(u=>!r||r.indexOf(u.groupId)!==-1);if(a.length)this.selectDefaultTrack&&!a.some(u=>u.default)&&(this.selectDefaultTrack=!1),a.forEach((u,f)=>{u.id=f});else if(!s&&!this.tracksInGroup.length)return;this.tracksInGroup=a;const o=this.hls.config.subtitlePreference;if(!s&&o){this.selectDefaultTrack=!1;const u=Ss(o,a);if(u>-1)s=a[u];else{const f=Ss(o,this.tracks);s=this.tracks[f]}}let l=this.findTrackId(s);l===-1&&s&&(l=this.findTrackId(null));const c={subtitleTracks:a};this.log(`Updating subtitle tracks, ${a.length} track(s) found in "${r==null?void 0:r.join(",")}" group-id`),this.hls.trigger(I.SUBTITLE_TRACKS_UPDATED,c),l!==-1&&this.trackId===-1&&this.setSubtitleTrack(l)}else this.shouldReloadPlaylist(s)&&this.setSubtitleTrack(this.trackId)}findTrackId(e){const n=this.tracksInGroup,r=this.selectDefaultTrack;for(let i=0;i<n.length;i++){const s=n[i];if(!(r&&!s.default||!r&&!e)&&(!e||Hc(s,e)))return i}if(e){for(let i=0;i<n.length;i++){const s=n[i];if(du(e.attrs,s.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return i}for(let i=0;i<n.length;i++){const s=n[i];if(du(e.attrs,s.attrs,["LANGUAGE"]))return i}}return-1}findTrackForTextTrack(e){if(e){const n=this.tracksInGroup;for(let r=0;r<n.length;r++){const i=n[r];if(gb(i,e))return r}}return-1}onError(e,n){n.fatal||!n.context||n.context.type===dt.SUBTITLE_TRACK&&n.c
121ontext.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(n.context.groupId)!==-1)&&this.checkRetry(n)}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){const n=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,n.length){const r=this.currentTrack;if(r&&Hc(e,r))return r;const i=Ss(e,this.tracksInGroup);if(i>-1){const s=this.tracksInGroup[i];return this.setSubtitleTrack(i),s}else{if(r)return null;{const s=Ss(e,n);if(s>-1)return n[s]}}}}return null}loadPlaylist(e){super.loadPlaylist();const n=this.currentTrack;if(this.shouldLoadPlaylist(n)&&n){const r=n.id,i=n.groupId;let s=n.url;if(e)try{s=e.addDirectives(s)}catch(a){this.warn(`Could not construct new URL with HLS Delivery Directives: ${a}`)}this.log(`Loading subtitle playlist for id ${r}`),this.hls.trigger(I.SUBTITLE_TRACK_LOADING,{url:s,id:r,groupId:i,deliveryDirectives:e||null})}}toggleTrackModes(){const{media:e}=this;if(!e)return;const n=yp(e.textTracks),r=this.currentTrack;let i;if(r&&(i=n.filter(s=>gb(r,s))[0],i||this.warn(`Unable to find subtitle TextTrack with name "${r.name}" and language "${r.lang}"`)),[].slice.call(n).forEach(s=>{s.mode!=="disabled"&&s!==i&&(s.mode="disabled")}),i){const s=this.subtitleDisplay?"showing":"hidden";i.mode!==s&&(i.mode=s)}}setSubtitleTrack(e){const n=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=n.length||!Te(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.clearTimer(),this.selectDefaultTrack=!1;const r=this.currentTrack,i=n[e]||null;if(this.trackId=e,this.currentTrack=i,this.toggleTrackModes(),!i){this.hls.trigger(I.SUBTITLE_TRACK_SWITCH,{id:e});return}const s=!!i.details&&!i.details.live;if(e===this.trackId&&i===r&&s)return;this.log(`Switching to subtitle-track ${e}`+(i?` "${i.name}" lang:${i.lang} group:${i.groupId}`:""));const{id:a,groupId:o="",name:l,type:c,url:u}=i;this.hls.trigger(I.SUBTITLE_TRACK_SWITCH,{id:a,groupId:o,name:l,type:c,url:u});const f=this.switchParams(i.url,r==null?void 0:r.details,i.details);this.loadPlaylist(f)}}class h7{constructor(e){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=e}append(e,n,r){const i=this.queues[n];i.push(e),i.length===1&&!r&&this.executeNext(n)}insertAbort(e,n){this.queues[n].unshift(e),this.executeNext(n)}appendBlocker(e){let n;const r=new Promise(s=>{n=s}),i={execute:n,onStart:()=>{},onComplete:()=>{},onError:()=>{}};return this.append(i,e),r}executeNext(e){const n=this.queues[e];if(n.length){const r=n[0];try{r.execute()}catch(i){J.warn(`[buffer-operation-queue]: Exception executing "${e}" SourceBuffer operation: ${i}`),r.onError(i);const s=this.buffers[e];s!=null&&s.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){this.queues[e].shift(),this.executeNext(e)}current(e){return this.queues[e][0]}}const RL=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/;class p7{constructor(e){this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendSource=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this.log=void 0,this.warn=void 0,this.error=void 0,this._onEndStreaming=r=>{this.hls&&this.hls.pauseBuffering()},this._onStartStreaming=r=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=()=>{const{media:r,mediaSource:i}=this;this.log("Media source opened"),r&&(r.removeEventListener("emptied",this._onMediaEmptied),this.updateMediaElementDuration(),this.hls.trigger(I.MEDIA_ATTACHED,{media:r,mediaSource:i})),i&&i.removeEventListener("sourceopen",this._onMediaSourceOpen),this.checkPendingTracks()},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:r,_objectUrl:i}=this;r!==i&&J.error(`Media element src was set while attaching MediaSource (${i} > ${r})`)},this.hls=e;const n="[buffer-controller]";this.appendSource=SX(Ml(e.config.preferManagedMediaSource)),this.log=J.log.bind(J,n),this.warn=J.warn.bind(J,n),this.error=J.error.bind(J,n),this._initSourceBuffer(),this.registerListeners()}
121hasSourceTypes(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.hls=null}registerListeners(){const{hls:e}=this;e.on(I.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.MANIFEST_PARSED,this.onManifestParsed,this),e.on(I.BUFFER_RESET,this.onBufferReset,this),e.on(I.BUFFER_APPENDING,this.onBufferAppending,this),e.on(I.BUFFER_CODECS,this.onBufferCodecs,this),e.on(I.BUFFER_EOS,this.onBufferEos,this),e.on(I.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(I.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(I.FRAG_PARSED,this.onFragParsed,this),e.on(I.FRAG_CHANGED,this.onFragChanged,this)}unregisterListeners(){const{hls:e}=this;e.off(I.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.MANIFEST_PARSED,this.onManifestParsed,this),e.off(I.BUFFER_RESET,this.onBufferReset,this),e.off(I.BUFFER_APPENDING,this.onBufferAppending,this),e.off(I.BUFFER_CODECS,this.onBufferCodecs,this),e.off(I.BUFFER_EOS,this.onBufferEos,this),e.off(I.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(I.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(I.FRAG_PARSED,this.onFragParsed,this),e.off(I.FRAG_CHANGED,this.onFragChanged,this)}_initSourceBuffer(){this.sourceBuffer={},this.operationQueue=new h7(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.appendErrors={audio:0,video:0,audiovideo:0},this.lastMpegAudioChunk=null}onManifestLoading(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,n){let r=2;(n.audio&&!n.video||!n.altAudio)&&(r=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=r,this.log(`${this.bufferCodecEventsExpected} bufferCodec event(s) expected`)}onMediaAttaching(e,n){const r=this.media=n.media,i=Ml(this.appendSource);if(r&&i){var s;const a=this.mediaSource=new i;this.log(`created media source: ${(s=a.constructor)==null?void 0:s.name}`),a.addEventListener("sourceopen",this._onMediaSourceOpen),a.addEventListener("sourceended",this._onMediaSourceEnded),a.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(a.addEventListener("startstreaming",this._onStartStreaming),a.addEventListener("endstreaming",this._onEndStreaming));const o=this._objectUrl=self.URL.createObjectURL(a);if(this.appendSource)try{r.removeAttribute("src");const l=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||l&&a instanceof l,LL(r),m7(r,o),r.load()}catch{r.src=o}else r.src=o;r.addEventListener("emptied",this._onMediaEmptied)}}onMediaDetaching(){const{media:e,mediaSource:n,_objectUrl:r}=this;if(n){if(this.log("media source detaching"),n.readyState==="open")try{n.endOfStream()}catch(i){this.warn(`onMediaDetaching: ${i.message} while calling endOfStream`)}this.onBufferReset(),n.removeEventListener("sourceopen",this._onMediaSourceOpen),n.removeEventListener("sourceended",this._onMediaSourceEnded),n.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(n.removeEventListener("startstreaming",this._onStartStreaming),n.removeEventListener("endstreaming",this._onEndStreaming)),e&&(e.removeEventListener("emptied",this._onMediaEmptied),r&&self.URL.revokeObjectURL(r),this.mediaSrc===r?(e.removeAttribute("src"),this.appendSource&&LL(e),e.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(I.MEDIA_DETACHED,void 0)}onBufferReset(){this.getSourceBufferTypes().forEach(e=>{this.resetBuffer(e)}),this._initSourceBuffer(),this.hls.resumeBuffering()}resetBuffer(e){const n=this.sourceBuffer[e];try{if(n){var r;this.removeBufferListeners(e),this.sourceBuffer[e]=void 0,(r=this.mediaSource)!=null&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(n)}}catch(i){this.warn(`onBufferReset ${e}`,i)}}onBufferCodecs(e,n){const r=this.getSourceBufferTypes().length,i=Object.keys(n);if(i.forEach(a=>{if(r){const l=this.tracks[a];if(l&&typeof l.buffer.changeType=="function"){var o;const{id:c,codec:u,levelCodec:f,container:d,metadata:h}=n[a],p=YR(l.codec,l.levelCodec),m=p==null?void 0:p.replace(RL,"$1");let g=YR(u,f);const _=(o=g)==null?void 0:o.replace(RL,"$1");if(g&&m!==_){a.slice(0,5)==="audio"&&(g=Hm(g,this.appendSource));const v=`${d};codecs=${g}`;this.appendChangeType(a,v),this.log(`switching codec ${p} to ${g}`),this.tracks[a]={buffer:l.buffer,codec:u,container:d,levelCodec:f,metadata:h,id:c}}}}else this.pendingTracks[a]=n[a]}),r)return;const s=Math.max(this.bufferCodecEventsExpected-1,0);this.bufferCodecEventsExpected!==s&&(this.log(`${s}
121 bufferCodec event(s) expected ${i.join(",")}`),this.bufferCodecEventsExpected=s),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}appendChangeType(e,n){const{operationQueue:r}=this,i={execute:()=>{const s=this.sourceBuffer[e];s&&(this.log(`changing ${e} sourceBuffer type to ${n}`),s.changeType(n)),r.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:s=>{this.warn(`Failed to change ${e} SourceBuffer type`,s)}};r.append(i,e,!!this.pendingTracks[e])}onBufferAppending(e,n){const{hls:r,operationQueue:i,tracks:s}=this,{data:a,type:o,frag:l,part:c,chunkMeta:u}=n,f=u.buffering[o],d=self.performance.now();f.start=d;const h=l.stats.buffering,p=c?c.stats.buffering:null;h.start===0&&(h.start=d),p&&p.start===0&&(p.start=d);const m=s.audio;let g=!1;o==="audio"&&(m==null?void 0:m.container)==="audio/mpeg"&&(g=!this.lastMpegAudioChunk||u.id===1||this.lastMpegAudioChunk.sn!==u.sn,this.lastMpegAudioChunk=u);const _=l.start,v={execute:()=>{if(f.executeStart=self.performance.now(),g){const y=this.sourceBuffer[o];if(y){const E=_-y.timestampOffset;Math.abs(E)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${_} (delta: ${E}) sn: ${l.sn})`),y.timestampOffset=_)}}this.appendExecutor(a,o)},onStart:()=>{},onComplete:()=>{const y=self.performance.now();f.executeEnd=f.end=y,h.first===0&&(h.first=y),p&&p.first===0&&(p.first=y);const{sourceBuffer:E}=this,b={};for(const T in E)b[T]=$t.getBuffered(E[T]);this.appendErrors[o]=0,o==="audio"||o==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(I.BUFFER_APPENDED,{type:o,frag:l,part:c,chunkMeta:u,parent:l.type,timeRanges:b})},onError:y=>{const E={type:Fe.MEDIA_ERROR,parent:l.type,details:ne.BUFFER_APPEND_ERROR,sourceBufferName:o,frag:l,part:c,chunkMeta:u,error:y,err:y,fatal:!1};if(y.code===DOMException.QUOTA_EXCEEDED_ERR)E.details=ne.BUFFER_FULL_ERROR;else{const b=++this.appendErrors[o];E.details=ne.BUFFER_APPEND_ERROR,this.warn(`Failed ${b}/${r.config.appendErrorMaxRetry} times to append segment in "${o}" sourceBuffer`),b>=r.config.appendErrorMaxRetry&&(E.fatal=!0)}r.trigger(I.ERROR,E)}};i.append(v,o,!!this.pendingTracks[o])}onBufferFlushing(e,n){const{operationQueue:r}=this,i=s=>({execute:this.removeExecutor.bind(this,s,n.startOffset,n.endOffset),onStart:()=>{},onComplete:()=>{this.hls.trigger(I.BUFFER_FLUSHED,{type:s})},onError:a=>{this.warn(`Failed to remove from ${s} SourceBuffer`,a)}});n.type?r.append(i(n.type),n.type):this.getSourceBufferTypes().forEach(s=>{r.append(i(s),s)})}onFragParsed(e,n){const{frag:r,part:i}=n,s=[],a=i?i.elementaryStreams:r.elementaryStreams;a[wt.AUDIOVIDEO]?s.push("audiovideo"):(a[wt.AUDIO]&&s.push("audio"),a[wt.VIDEO]&&s.push("video"));const o=()=>{const l=self.performance.now();r.stats.buffering.end=l,i&&(i.stats.buffering.end=l);const c=i?i.stats:r.stats;this.hls.trigger(I.FRAG_BUFFERED,{frag:r,part:i,stats:c,id:r.type})};s.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${r.type} level: ${r.level} sn: ${r.sn}`),this.blockBuffers(o,s)}onFragChanged(e,n){this.trimBuffers()}onBufferEos(e,n){this.getSourceBufferTypes().reduce((i,s)=>{const a=this.sourceBuffer[s];return a&&(!n.type||n.type===s)&&(a.ending=!0,a.ended||(a.ended=!0,this.log(`${s} sourceBuffer now EOS`))),i&&!!(!a||a.ended)},!0)&&(this.log("Queueing mediaSource.endOfStream()"),this.blockBuffers(()=>{this.getSourceBufferTypes().forEach(s=>{const a=this.sourceBuffer[s];a&&(a.ending=!1)});const{mediaSource:i}=this;if(!i||i.readyState!=="open"){i&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${i.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),i.endOfStream()}))}onLevelUpdated(e,{details:n}){n.fragments.length&&(this.details=n,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())}trimBuffers(){const{hls:e,details:n,media:r}=this;if(!r||n===null||!this.getSourceBufferTypes().length)return;const s=e.config,a=r.currentTime,o=n.levelTargetDuration,l=n.live&&s.liveBackBufferLength!==null?s.liveBackBufferLength:s.backBufferLength;if(Te(l)&&l>0){const c=Math.max(l,o),u=Math.floor(a/o)*o-c;this.flushBackBuffer(a,o,u)}if(Te(s.frontBufferFlushThreshold)&&s.frontBufferFlushThreshold>0){const c=Math.max(s.maxBufferLength,s.frontBufferFlushThreshold),u=Math.max(c,o),f=Math.floor(a/o)*o+u;this.flushFrontBuffer(a,o,f)}}flushBackBuffer(e,n,r){const{details:i,sourceBuffer:s}=this;
121this.getSourceBufferTypes().forEach(o=>{const l=s[o];if(l){const c=$t.getBuffered(l);if(c.length>0&&r>c.start(0)){if(this.hls.trigger(I.BACK_BUFFER_REACHED,{bufferEnd:r}),i!=null&&i.live)this.hls.trigger(I.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(l.ended&&c.end(c.length-1)-e<n*2){this.log(`Cannot flush ${o} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(I.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:o})}}})}flushFrontBuffer(e,n,r){const{sourceBuffer:i}=this;this.getSourceBufferTypes().forEach(a=>{const o=i[a];if(o){const l=$t.getBuffered(o),c=l.length;if(c<2)return;const u=l.start(c-1),f=l.end(c-1);if(r>u||e>=u&&e<=f)return;if(o.ended&&e-f<2*n){this.log(`Cannot flush ${a} front buffer while SourceBuffer is in ended state`);return}this.hls.trigger(I.BUFFER_FLUSHING,{startOffset:u,endOffset:1/0,type:a})}})}updateMediaElementDuration(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;const{details:e,hls:n,media:r,mediaSource:i}=this,s=e.fragments[0].start+e.totalduration,a=r.duration,o=Te(i.duration)?i.duration:0;e.live&&n.config.liveDurationInfinity?(i.duration=1/0,this.updateSeekableRange(e)):(s>o&&s>a||!Te(a))&&(this.log(`Updating Media Source duration to ${s.toFixed(3)}`),i.duration=s)}updateSeekableRange(e){const n=this.mediaSource,r=e.fragments;if(r.length&&e.live&&n!=null&&n.setLiveSeekableRange){const s=Math.max(0,r[0].start),a=Math.max(s,s+e.totalduration);this.log(`Media Source duration is set to ${n.duration}. Setting seekable range to ${s}-${a}.`),n.setLiveSeekableRange(s,a)}}checkPendingTracks(){const{bufferCodecEventsExpected:e,operationQueue:n,pendingTracks:r}=this,i=Object.keys(r).length;if(i&&(!e||i===2||"audiovideo"in r)){this.createSourceBuffers(r),this.pendingTracks={};const s=this.getSourceBufferTypes();if(s.length)this.hls.trigger(I.BUFFER_CREATED,{tracks:this.tracks}),s.forEach(a=>{n.executeNext(a)});else{const a=new Error("could not create source buffer for media codec(s)");this.hls.trigger(I.ERROR,{type:Fe.MEDIA_ERROR,details:ne.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:a,reason:a.message})}}}createSourceBuffers(e){const{sourceBuffer:n,mediaSource:r}=this;if(!r)throw Error("createSourceBuffers called when mediaSource was null");for(const s in e)if(!n[s]){var i;const a=e[s];if(!a)throw Error(`source buffer exists for track ${s}, however track does not`);let o=((i=a.levelCodec)==null?void 0:i.indexOf(","))===-1?a.levelCodec:a.codec;o&&s.slice(0,5)==="audio"&&(o=Hm(o,this.appendSource));const l=`${a.container};codecs=${o}`;this.log(`creating sourceBuffer(${l})`);try{const c=n[s]=r.addSourceBuffer(l),u=s;this.addBufferListener(u,"updatestart",this._onSBUpdateStart),this.addBufferListener(u,"updateend",this._onSBUpdateEnd),this.addBufferListener(u,"error",this._onSBUpdateError),this.appendSource&&this.addBufferListener(u,"bufferedchange",(f,d)=>{const h=d.removedRanges;h!=null&&h.length&&this.hls.trigger(I.BUFFER_FLUSHED,{type:s})}),this.tracks[s]={buffer:c,codec:o,container:a.container,levelCodec:a.levelCodec,metadata:a.metadata,id:a.id}}catch(c){this.error(`error while trying to add sourceBuffer: ${c.message}`),this.hls.trigger(I.ERROR,{type:Fe.MEDIA_ERROR,details:ne.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:c,sourceBufferName:s,mimeType:l})}}}get mediaSrc(){var e,n;const r=((e=this.media)==null||(n=e.querySelector)==null?void 0:n.call(e,"source"))||this.media;return r==null?void 0:r.src}_onSBUpdateStart(e){const{operationQueue:n}=this;n.current(e).onStart()}_onSBUpdateEnd(e){var n;if(((n=this.mediaSource)==null?void 0:n.readyState)==="closed"){this.resetBuffer(e);return}const{operationQueue:r}=this;r.current(e).onComplete(),r.shiftAndExecuteNext(e)}_onSBUpdateError(e,n){var r;const i=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(r=this.mediaSource)==null?void 0:r.readyState}`);this.error(`${i}`,n),this.hls.trigger(I.ERROR,{type:Fe.MEDIA_ERROR,details:ne.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:i,fatal:!1});const s=this.operationQueue.current(e);s&&s.onError(i)}removeExecutor(e,n,r){const{media:i,mediaSource:s,operationQueue:a,sourceBuffer:o}=this,l=o[e];if(!i||!s||!l){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),a.shiftAndExecuteNext(e);return}const c=Te(i.duration)?i.duration:1/0,u=Te(s.duration)?s.duration:1/0,f=Math.max(0,n),d=Math.min(r,c,u);d>f&&(!l.ending||l.ended)?(l.ended=!1,this.log(`Removing [${f},${d}] from the ${e} SourceBuffer`),l.remove(f,d)):a.shiftAndExecuteNext(e)}appendExecutor(e,n){const r=this.sourceBuffer[n];if(!r){if(!this.pendingTracks[n])throw new Error(`Attempting to append to the ${n} SourceBuffer, but it does not exist`);return}r.ended=!1,r.appendBuffer(e)}blockBuffers(e,n=this.getSourceBufferTypes()){if(!n.length){this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);return}const{operationQueue:r}=this,i=n.map(s=>r.appendBlocker(s));Promise.all(i).then(()=>
vendor: 40,024 bytes, lines 121-132
121{e(),n.forEach(s=>{const a=this.sourceBuffer[s];a!=null&&a.updating||r.shiftAndExecuteNext(s)})})}getSourceBufferTypes(){return Object.keys(this.sourceBuffer)}addBufferListener(e,n,r){const i=this.sourceBuffer[e];if(!i)return;const s=r.bind(this,e);this.listeners[e].push({event:n,listener:s}),i.addEventListener(n,s)}removeBufferListeners(e){const n=this.sourceBuffer[e];n&&this.listeners[e].forEach(r=>{n.removeEventListener(r.event,r.listener)})}}function LL(t){const e=t.querySelectorAll("source");[].slice.call(e).forEach(n=>{t.removeChild(n)})}function m7(t,e){const n=self.document.createElement("source");n.type="video/mp4",n.src=e,t.appendChild(n)}const g7={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},FN=t=>String.fromCharCode(g7[t]||t),Vi=15,js=100,y7={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},v7={17:2,18:4,21:6,22:8,23:10,19:13,20:15},_7={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},E7={25:2,26:4,29:6,30:8,31:10,27:13,28:15},b7=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class T7{constructor(){this.time=null,this.verboseLevel=0}log(e,n){if(this.verboseLevel>=e){const r=typeof n=="function"?n():n;J.log(`${this.time} [${e}] ${r}`)}}}const Co=function(e){const n=[];for(let r=0;r<e.length;r++)n.push(e[r].toString(16));return n};class $N{constructor(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}reset(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}setStyles(e){const n=["foreground","underline","italics","background","flash"];for(let r=0;r<n.length;r++){const i=n[r];e.hasOwnProperty(i)&&(this[i]=e[i])}}isDefault(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}equals(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash}copy(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class S7{constructor(){this.uchar=" ",this.penState=new $N}reset(){this.uchar=" ",this.penState.reset()}setChar(e,n){this.uchar=e,this.penState.copy(n)}setPenState(e){this.penState.copy(e)}equals(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)}copy(e){this.uchar=e.uchar,this.penState.copy(e.penState)}isEmpty(){return this.uchar===" "&&this.penState.isDefault()}}class w7{constructor(e){this.chars=[],this.pos=0,this.currPenState=new $N,this.cueStartTime=null,this.logger=void 0;for(let n=0;n<js;n++)this.chars.push(new S7);this.logger=e}equals(e){for(let n=0;n<js;n++)if(!this.chars[n].equals(e.chars[n]))return!1;return!0}copy(e){for(let n=0;n<js;n++)this.chars[n].copy(e.chars[n])}isEmpty(){let e=!0;for(let n=0;n<js;n++)if(!this.chars[n].isEmpty()){e=!1;break}return e}setCursor(e){this.pos!==e&&(this.pos=e),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>js&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=js)}moveCursor(e){const n=this.pos+e;if(e>1)for(let r=this.pos+1;r<n+1;r++)this.chars[r].setPenState(this.currPenState);this.setCursor(n)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(e){e>=144&&this.backSpace();const n=FN(e);if(this.pos>=js){this.logger.log(0,()=>"Cannot insert "+e.toString(16)+" ("+n+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(n,this.currPenState),this.moveCursor(1)}clearFromPos(e){let n;for(n=e;n<js;n++)this.chars[n].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){const e=[];let n=!0;for(let r=0;r<js;r++){const i=this.chars[r].uchar;i!==" "&&(n=!1),e.push(i)}return n?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}}class qv{constructor(e){this.rows=[],this.currRow=Vi-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let n=0;n<Vi;n++)this.rows.push(new w7(e));this.logger=e}reset(){for(let e=0;e<Vi;e++)this.rows[e].clear();this.currRow=Vi-1}equals(e){let n=!0;for(let r=0;r<Vi;r++)if(!this.rows[r].equals(e.rows[r])){n=!1;break}return n}copy(e){for(let n=0;n<Vi;n++)this.rows[n].copy(e.rows[n])}isEmpty(){let e=!0;for(let n=0;n<Vi;n++)if(!this.rows[n].isEmpty()){e=!1;break}return e}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(e){this.rows[this.currRow].insertChar(e)}setPen(e){this.rows[this.currRow].setPenStyles(e)}moveCursor(e){this.rows[this.currRow].moveCursor(e)}setCursor(e){this.logger.log(2,"setCursor: "+e),this.rows[this.currRow].setCursor(e)}setPAC(e){this.logger.log(2,()=>"pacData = "+JSON.stringify(e));let n=e.row-1;if(this.nrRollUpRows&&n<this.nrRollUpRows-1&&(n=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==n){for(let o=0;o<Vi;o++)this.rows[o].clear();const s=this.currRow+1-this.nrRollUpRows,a=this.lastOutputScreen;if(a){const o=a.rows[s].cueStartTime,l=this.logger.time;if(o!==null&&l!==null&&o<l)for(let c=0;c<this.nrRollUpRows;c++)this.rows[n-this.nrRollUpRows+c+1].copy(a.rows[s+c])}}this.currRow=n;const r=this.rows[this.currRow];if(e.indent!==null){const s=e.indent,a=Math.max(s-1,0);r.setCursor(e.indent),e.color=r.chars[a].penState.foreground}const i={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(i)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+JSON.stringify(e)),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const e=this.currRow+1-this.nrRollUpRows,n=this.rows.splice(e,1)[0];n.clear(),this.rows.splice(this.currRow,0,n),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;const n=[];let r="",i=-1;for(let s=0;s<Vi;s++){const a=this.rows[s].getTextString();a&&(i=s+1,e?n.push("Row "+i+": '"+a+"'"):n.push(a.trim()))}return n.length>0&&(e?r="["+n.join(" | ")+"]":r=n.join(` 122`)),r}getTextAndFormat(){return this.rows}}class CL{constructor(e,n,r){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=n,this.mode=null,this.verbose=0,this.displayedMemory=new qv(r),this.nonDisplayedMemory=new qv(r),this.lastOutputScreen=new qv(r),this.currRollUpRow=this.displayedMemory.rows[Vi-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[Vi-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,()=>"MODE="+e),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let r=0;r<e.length;r++)this.writeScreen.insertChar(e[r]);const n=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,()=>n+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){const e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){const n={flash:!1};if(n.underline=e%2===1,n.italics=e>=46,n.italics)n.foreground="white";else{const r=Math.floor(e/2)-16,i=["white","green","blue","cyan","red","yellow","magenta"];n.foreground=i[r]}this.logger.log(2,"MIDROW: "+JSON.stringify(n)),this.writeScreen.setPen(n)}outputDataUpdate(e=!1){const n=this.logger.time;n!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=n:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,n,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:n),this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}class IL{constructor(e,n,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=A7(),this.logger=void 0;const i=this.logger=new T7;this.channels=[null,new CL(e,n,i),new CL(e+1,r,i)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,n){this.channels[e].setHandler(n)}addData(e,n){this.logger.time=e;for(let r=0;r<n.length;r+=2){const i=n[r]&127,s=n[r+1]&127;let a=!1,o=null;if(i===0&&s===0)continue;this.logger.log(3,()=>"["+Co([n[r],n[r+1]])+"] -> ("+Co([i,s])+")");const l=this.cmdHistory;if(i>=16&&i<=31){if(x7(i,s,l)){Hh(null,null,l),this.logger.log(3,()=>"Repeated command ("+Co([i,s])+") is dropped");continue}Hh(i,s,this.cmdHistory),a=this.parseCmd(i,s),a||(a=this.parseMidrow(i,s)),a||(a=this.parsePAC(i,s)),a||(a=this.parseBackgroundAttributes(i,s))}else Hh(null,null,l);if(!a&&(o=this.parseChars(i,s),o)){const u=this.currentChannel;u&&u>0?this.channels[u].insertChars(o):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!a&&!o&&this.logger.log(2,()=>"Couldn't parse cleaned data "+Co([i,s])+" orig: "+Co([n[r],n[r+1]]))}}parseCmd(e,n){const r=(e===20||e===28||e===21||e===29)&&n>=32&&n<=47,i=(e===23||e===31)&&n>=33&&n<=35;if(!(r||i))return!1;const s=e===20||e===21||e===23?1:2,a=this.channels[s];return e===20||e===21||e===28||e===29?n===32?a.ccRCL():n===33?a.ccBS():n===34?a.ccAOF():n===35?a.ccAON():n===36?a.ccDER():n===37?a.ccRU(2):n===38?a.ccRU(3):n===39?a.ccRU(4):n===40?a.ccFON():n===41?a.ccRDC():n===42?a.ccTR():n===43?a.ccRTD():n===44?a.ccEDM():n===45?a.ccCR():n===46?a.ccENM():n===47&&a.ccEOC():a.ccTO(n-32),this.currentChannel=s,!0}parseMidrow(e,n){let r=0;if((e===17||e===25)&&n>=32&&n<=47){if(e===17?r=1:r=2,r!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const i=this.channels[r];return i?(i.ccMIDROW(n),this.logger.log(3,()=>"MIDROW ("+Co([e,n])+")"),!0):!1}return!1}parsePAC(e,n){let r;const i=(e>=17&&e<=23||e>=25&&e<=31)&&n>=64&&n<=127,s=(e===16||e===24)&&n>=64&&n<=95;if(!(i||s))return!1;const a=e<=23?1:2;n>=64&&n<=95?r=a===1?y7[e]:_7[e]:r=a===1?v7[e]:E7[e];const o=this.channels[a];return o?(o.setPAC(this.interpretPAC(r,n)),this.currentChannel=a,!0):!1}interpretPAC(e,n){let r;const i={color:null,italics:!1,indent:null,underline:!1,row:e};return n>95?r=n-96:r=n-64,i.underline=(r&1)===1,r<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(i.italics=!0,i.color="white"):i.indent=Math.floor((r-16)/2)*4,i}parseChars(e,n){let r,i=null,s=null;if(e>=25?(r=2,s=e-8):(r=1,s=e),s>=17&&s<=19){let a;s===17?a=n+80:s===18?a=n+112:a=n+144,this.logger.log(2,()=>"Special char '"+FN(a)+"' in channel "+r),i=[a]}else e>=32&&e<=127&&(i=n===0?[e]:[e,n]);return i&&this.logger.log(3,()=>"Char codes = "+Co(i).join(",")),i}parseBackgroundAttributes(e,n){const r=(e===16||e===24)&&n>=32&&n<=47,i=(e===23||e===31)&&n>=45&&n<=47;if(!(r||i))return!1;let s;const a={};e===16||e===24?(s=Math.floor((n-32)/2),a.background=b7[s],n%2===1&&(a.background=a.background+"_semi")):n===45?a.background="transparent":(a.foreground="black",n===47&&(a.underline=!0));const o=e<=23?1:2;return this.channels[o].setBkgData(a),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const n=this.channels[e];n&&n.reset()}Hh(null,null,this.cmdHistory)}cueSplitAtTime(e){for(let n=0;n<this.channels.length;n++){const r=this.channels[n];r&&r.cueSplitAtTime(e)}}}function Hh(t,e,n){n.a=t,n.b=e}function x7(t,e,n){return n.a===t&&n.b===e}function A7(){return{a:null,b:null}}class Gh{constructor(e,n){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=n}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,n,r){(this.startTime===null||this.startTime>e)&&(this.startTime=e),this.endTime=n,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}var BS=function(){if(uu!=null&&uu.VTTCue)return self.VTTCue;const t=["","lr","rl"],e=["start","middle","end","left","right"];function n(o,l){if(typeof l!="string"||!Array.isArray(o))return!1;const c=l.toLowerCase();return~o.indexOf(c)?c:!1}function r(o){return n(t,o)}function i(o){return n(e,o)}function s(o,...l){let c=1;for(;c<arguments.length;c++){const u=arguments[c];for(const f in u)o[f]=u[f]}return o}function a(o,l,c){const u=this,f={enumerable:!0};u.hasBeenReset=!1;let d="",h=!1,p=o,m=l,g=c,_=null,v="",y=!0,E="auto",b="start",T=50,S="middle",A=50,w="middle";Object.defineProperty(u,"id",s({},f,{get:function(){return d},set:function(x){d=""+x}})),Object.defineProperty(u,"pauseOnExit",s({},f,{get:function(){return h},set:function(x){h=!!x}})),Object.defineProperty(u,"startTime",s({},f,{get:function(){return p},set:function(x){if(typeof x!="number")throw new TypeError("Start time must be set to a number.");p=x,this.hasBeenReset=!0}})),Object.defineProperty(u,"endTime",s({},f,{get:function(){return m},set:function(x){if(typeof x!="number")throw new TypeError("End time must be set to a number.");m=x,this.hasBeenReset=!0}})),Object.defineProperty(u,"text",s({},f,{get:function(){return g},set:function(x){g=""+x,this.hasBeenReset=!0}})),Object.defineProperty(u,"region",s({},f,{get:function(){return _},set:function(x){_=x,this.hasBeenReset=!0}})),Object.defineProperty(u,"vertical",s({},f,{get:function(){return v},set:function(x){const L=r(x);if(L===!1)throw new SyntaxError("An invalid or illegal string was specified.");v=L,this.hasBeenReset=!0}})),Object.defineProperty(u,"snapToLines",s({},f,{get:function(){return y},set:function(x){y=!!x,this.hasBeenReset=!0}})),Object.defineProperty(u,"line",s({},f,{get:function(){return E},set:function(x){if(typeof x!="number"&&x!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");E=x,this.hasBeenReset=!0}})),Object.defineProperty(u,"lineAlign",s({},f,{get:function(){return b},set:function(x){const L=i(x);if(!L)throw new SyntaxError("An invalid or illegal string was specified.");b=L,this.hasBeenReset=!0}})),Object.defineProperty(u,"position",s({},f,{get:function(){return T},set:function(x){if(x<0||x>100)throw new Error("Position must be between 0 and 100.");T=x,this.hasBeenReset=!0}})),Object.defineProperty(u,"positionAlign",s({},f,{get:function(){return S},set:function(x){const L=i(x);if(!L)throw new SyntaxError("An invalid or illegal string was specified.");S=L,this.hasBeenReset=!0}})),Object.defineProperty(u,"size",s({},f,{get:function(){return A},set:function(x){if(x<0||x>100)throw new Error("Size must be between 0 and 100.");A=x,this.hasBeenReset=!0}})),Object.defineProperty(u,"align",s({},f,{get:function(){return w},set:function(x){const L=i(x);if(!L)throw new SyntaxError("An invalid or illegal string was specified.");w=L,this.hasBeenReset=!0}})),u.displayState=void 0}return a.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},a}();class R7{decode(e,n){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function BN(t){function e(r,i,s,a){return(r|0)*3600+(i|0)*60+(s|0)+parseFloat(a||0)}const n=t.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return n?parseFloat(n[2])>59?e(n[2],n[3],0,n[4]):e(n[1],n[2],n[3],n[4]):null}class L7{constructor(){this.values=Object.create(null)}set(e,n){!this.get(e)&&n!==""&&(this.values[e]=n)}get(e,n,r){return r?this.has(e)?this.values[e]:n[r]:this.has(e)?this.values[e]:n}has(e){return e in this.values}alt(e,n,r){for(let i=0;i<r.length;++i)if(n===r[i]){this.set(e,n);break}}integer(e,n){/^-?\d+$/.test(n)&&this.set(e,parseInt(n,10))}percent(e,n){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(n)){const r=parseFloat(n);if(r>=0&&r<=100)return this.set(e,r),!0}return!1}}function UN(t,e,n,r){const i=r?t.split(r):[t];for(const s in i){if(typeof i[s]!="string")continue;const a=i[s].split(n);if(a.length!==2)continue;const o=a[0],l=a[1];e(o,l)}}const yb=new BS(0,0,""),jh=yb.align==="middle"?"middle":"center";function C7(t,e,n){const r=t;function i(){const o=BN(t);if(o===null)throw new Error("Malformed timestamp: "+r);return t=t.replace(/^[^\sa-zA-Z-]+/,""),o}function s(o,l){const c=new L7;UN(o,function(d,h){let p;switch(d){case"region":for(let m=n.length-1;m>=0;m--)if(n[m].id===h){c.set(d,n[m].region);break}break;case"vertical":c.alt(d,h,["rl","lr"]);break;case"line":p=h.split(","),c.integer(d,p[0]),c.percent(d,p[0])&&c.set("snapToLines",!1),c.alt(d,p[0],["auto"]),p.length===2&&c.alt("lineAlign",p[1],["start",jh,"end"]);break;case"position":p=h.split(","),c.percent(d,p[0]),p.length===2&&c.alt("positionAlign",p[1],["start",jh,"end","line-left","line-right","auto"]);break;case"size":c.percent(d,h);break;case"align":c.alt(d,h,["start",jh,"end","left","right"]);break}},/:/,/\s/),l.region=c.get("region",null),l.vertical=c.get("vertical","");let u=c.get("line","auto");u==="auto"&&yb.line===-1&&(u=-1),l.line=u,l.lineAlign=c.get("lineAlign","start"),l.snapToLines=c.get("snapToLines",!0),l.size=c.get("size",100),l.align=c.get("align",jh);let f=c.get("position","auto");f==="auto"&&yb.position===50&&(f=l.align==="start"||l.align==="left"?0:l.align==="end"||l.align==="right"?100:50),l.position=f}function a(){t=t.replace(/^\s+/,"")}if(a(),e.startTime=i(),a(),t.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+r);t=t.slice(3),a(),e.endTime=i(),a(),s(t,e)}function HN(t){return t.replace(/<br(?: \/)?>/gi,` 123`)}class I7{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new R7,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){const n=this;e&&(n.buffer+=n.decoder.decode(e,{stream:!0}));function r(){let s=n.buffer,a=0;for(s=HN(s);a<s.length&&s[a]!=="\r"&&s[a]!==` 124`;)++a;const o=s.slice(0,a);return s[a]==="\r"&&++a,s[a]===` 125`&&++a,n.buffer=s.slice(a),o}function i(s){UN(s,function(a,o){},/:/)}try{let s="";if(n.state==="INITIAL"){if(!/\r\n|\n/.test(n.buffer))return this;s=r();const o=s.match(/^()?WEBVTT([ \t].*)?$/);if(!(o!=null&&o[0]))throw new Error("Malformed WebVTT signature.");n.state="HEADER"}let a=!1;for(;n.buffer;){if(!/\r\n|\n/.test(n.buffer))return this;switch(a?a=!1:s=r(),n.state){case"HEADER":/:/.test(s)?i(s):s||(n.state="ID");continue;case"NOTE":s||(n.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(s)){n.state="NOTE";break}if(!s)continue;if(n.cue=new BS(0,0,""),n.state="CUE",s.indexOf("-->")===-1){n.cue.id=s;continue}case"CUE":if(!n.cue){n.state="BADCUE";continue}try{C7(s,n.cue,n.regionList)}catch{n.cue=null,n.state="BADCUE";continue}n.state="CUETEXT";continue;case"CUETEXT":{const o=s.indexOf("-->")!==-1;if(!s||o&&(a=!0)){n.oncue&&n.cue&&n.oncue(n.cue),n.cue=null,n.state="ID";continue}if(n.cue===null)continue;n.cue.text&&(n.cue.text+=` 126`),n.cue.text+=s}continue;case"BADCUE":s||(n.state="ID")}}}catch{n.state==="CUETEXT"&&n.cue&&n.oncue&&n.oncue(n.cue),n.cue=null,n.state=n.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}flush(){const e=this;try{if((e.cue||e.state==="HEADER")&&(e.buffer+=` 127 128`,e.parse()),e.state==="INITIAL"||e.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(n){e.onparsingerror&&e.onparsingerror(n)}return e.onflush&&e.onflush(),this}}const k7=/\r\n|\n\r|\n|\r/g,Kv=function(e,n,r=0){return e.slice(r,r+n.length)===n},P7=function(e){let n=parseInt(e.slice(-3));const r=parseInt(e.slice(-6,-4)),i=parseInt(e.slice(-9,-7)),s=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!Te(n)||!Te(r)||!Te(i)||!Te(s))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return n+=1e3*r,n+=60*1e3*i,n+=60*60*1e3*s,n},Wv=function(e){let n=5381,r=e.length;for(;r;)n=n*33^e.charCodeAt(--r);return(n>>>0).toString()};function US(t,e,n){return Wv(t.toString())+Wv(e.toString())+Wv(n)}const D7=function(e,n,r){let i=e[n],s=e[i.prevCC];if(!s||!s.new&&i.new){e.ccOffset=e.presentationOffset=i.start,i.new=!1;return}for(;(a=s)!=null&&a.new;){var a;e.ccOffset+=i.start-s.start,i.new=!1,i=s,s=e[i.prevCC]}e.presentationOffset=r};function O7(t,e,n,r,i,s,a){const o=new I7,l=Ps(new Uint8Array(t)).trim().replace(k7,` 129`).split(` 130`),c=[],u=e?J9(e.baseTime,e.timescale):0;let f="00:00.000",d=0,h=0,p,m=!0;o.oncue=function(g){const _=n[r];let v=n.ccOffset;const y=(d-u)/9e4;if(_!=null&&_.new&&(h!==void 0?v=n.ccOffset=_.start:D7(n,r,y)),y){if(!e){p=new Error("Missing initPTS for VTT MPEGTS");return}v=y-n.presentationOffset}const E=g.endTime-g.startTime,b=xi((g.startTime+v-h)*9e4,i*9e4)/9e4;g.startTime=Math.max(b,0),g.endTime=Math.max(b+E,0);const T=g.text.trim();g.text=decodeURIComponent(encodeURIComponent(T)),g.id||(g.id=US(g.startTime,g.endTime,T)),g.endTime>0&&c.push(g)},o.onparsingerror=function(g){p=g},o.onflush=function(){if(p){a(p);return}s(c)},l.forEach(g=>{if(m)if(Kv(g,"X-TIMESTAMP-MAP=")){m=!1,g.slice(16).split(",").forEach(_=>{Kv(_,"LOCAL:")?f=_.slice(6):Kv(_,"MPEGTS:")&&(d=parseInt(_.slice(7)))});try{h=P7(f)/1e3}catch(_){p=_}return}else g===""&&(m=!1);o.parse(g+` 131`)}),o.flush()}const zv="stpp.ttml.im1t",GN=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,jN=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,M7={left:"start",center:"center",right:"end",start:"start",end:"end"};function kL(t,e,n,r){const i=Xe(new Uint8Array(t),["mdat"]);if(i.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const s=i.map(o=>Ps(o)),a=X9(e.baseTime,1,e.timescale);try{s.forEach(o=>n(N7(o,a)))}catch(o){r(o)}}function N7(t,e){const i=new DOMParser().parseFromString(t,"text/xml").getElementsByTagName("tt")[0];if(!i)throw new Error("Invalid ttml");const s={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},a=Object.keys(s).reduce((f,d)=>(f[d]=i.getAttribute(`ttp:${d}`)||s[d],f),{}),o=i.getAttribute("xml:space")!=="preserve",l=PL(Yv(i,"styling","style")),c=PL(Yv(i,"layout","region")),u=Yv(i,"body","[begin]");return[].map.call(u,f=>{const d=VN(f,o);if(!d||!f.hasAttribute("begin"))return null;const h=Jv(f.getAttribute("begin"),a),p=Jv(f.getAttribute("dur"),a);let m=Jv(f.getAttribute("end"),a);if(h===null)throw DL(f);if(m===null){if(p===null)throw DL(f);m=h+p}const g=new BS(h-e,m-e,d);g.id=US(g.startTime,g.endTime,g.text);const _=c[f.getAttribute("region")],v=l[f.getAttribute("style")],y=F7(_,v,l),{textAlign:E}=y;if(E){const b=M7[E];b&&(g.lineAlign=b),g.align=E}return Tn(g,y),g}).filter(f=>f!==null)}function Yv(t,e,n){const r=t.getElementsByTagName(e)[0];return r?[].slice.call(r.querySelectorAll(n)):[]}function PL(t){return t.reduce((e,n)=>{const r=n.getAttribute("xml:id");return r&&(e[r]=n),e},{})}function VN(t,e){return[].slice.call(t.childNodes).reduce((n,r,i)=>{var s;return r.nodeName==="br"&&i?n+` 132`:(s=r.childNodes)!=null&&s.length?VN(r,e):e?n+r.textContent.trim().replace(/\s+/g," "):n+r.textContent},"")}function F7(t,e,n){const r="http://www.w3.org/ns/ttml#styling";let i=null;const s=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],a=t!=null&&t.hasAttribute("style")?t.getAttribute("style"):null;return a&&n.hasOwnProperty(a)&&(i=n[a]),s.reduce((o,l)=>{const c=Xv(e,r,l)||Xv(t,r,l)||Xv(i,r,l);return c&&(o[l]=c),o},{})}function Xv(t,e,n){return t&&t.hasAttributeNS(e,n)?t.getAttributeNS(e,n):null}function DL(t){return new Error(`Could not parse ttml timestamp ${t}`)}function Jv(t,e){if(!t)return null;let n=BN(t);return n===null&&(GN.test(t)?n=$7(t,e):jN.test(t)&&(n=B7(t,e))),n}function $7(t,e){const n=GN.exec(t),r=(n[4]|0)+(n[5]|0)/e.subFrameRate;return(n[1]|0)*3600+(n[2]|0)*60+(n[3]|0)+r/e.frameRate}function B7(t,e){const n=jN.exec(t),r=Number(n[1]);switch(n[2]){case"h":return r*3600;case"m":return r*60;case"ms":return r*1e3;case"f":return r/e.frameRate;case"t":return r/e.tickRate}return r}class U7{constructor(e){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=ML(),this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},e.on(I.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(I.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(I.FRAG_LOADING,this.onFragLoading,this),e.on(I.FRAG_LOADED,this.onFragLoaded,this),e.on(I.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(I.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(I.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(I.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(I.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(I.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(I.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(I.FRAG_LOADING,this.onFragLoading,this),e.off(I.FRAG_LOADED,this.onFragLoaded,this),e.off(I.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(I.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(I.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(I.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(I.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){const e=new Gh(this,"textTrack1"),n=new Gh(this,"textTrack2"),r=new Gh(this,"textTrack3"),i=new Gh(this,"textTrack4");this.cea608Parser1=new IL(1,e,n),this.cea608Parser2=new IL(3,r,i)}}addCues(e,n,r,i,s){let a=!1;for(let o=s.length;o--;){const l=s[o],c=H7(l[0],l[1],n,r);if(c>=0&&(l[0]=Math.min(l[0],n),l[1]=Math.max(l[1],r),a=!0,c/(r-n)>.5))return}if(a||s.push([n,r]),this.config.renderTextTracksNatively){const o=this.captionsTracks[e];this.Cues.newCue(o,n,r,i)}else{const o=this.Cues.newCue(null,n,r,i);this.hls.trigger(I.CUES_PARSED,{type:"captions",cues:o,track:e})}}onInitPtsFound(e,{frag:n,id:r,initPTS:i,timescale:s}){const{unparsedVttFrags:a}=this;r==="main"&&(this.initPTS[n.cc]={baseTime:i,timescale:s}),a.length&&(this.unparsedVttFrags=[],a.forEach(o=>{this.onFragLoaded(I.FRAG_LOADED,o)}))}getExistingTrack(e,n){const{media:r}=this;if(r)for(let i=0;i<r.textTracks.length;i++){const s=r.textTracks[i];if(OL(s,{name:e,lang:n,attrs:{}}))return s}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:n,captionsTracks:r,media:i}=this,{label:s,languageCode:a}=n[e],o=this.getExistingTrack(s,a);if(o)r[e]=o,Sc(r[e]),uN(r[e],i);else{const l=this.createTextTrack("captions",s,a);l&&(l[e]=!0,r[e]=l)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const n=this.captionsProperties[e];if(!n)return;const r=n.label,i={_id:e,label:r,kind:"captions",default:n.media?!!n.media.default:!1,closedCaptions:n.media};this.nonNativeCaptionsTracks[e]=i,this.hls.trigger(I.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[i]})}createTextTrack(e,n,r){const i=this.media;if(i)return i.addTextTrack(e,n,r)}onMediaAttaching(e,n){this.media=n.media,this._cleanTracks()}onMediaDetaching(){const{captionsTracks:e}=this;Object.keys(e).forEach(n=>{Sc(e[n]),delete e[n]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=ML(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:e}=this;if(!e)return;const n=e.textTracks;if(n)for(let r=0;r<n.length;r++)Sc(n[r])}onSubtitleTracksUpdated(e,n){const r=n.subtitleTracks||[],i=r.some(s=>s.textCodec===zv);if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(NN(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const a=this.media,o=a?yp(a.textTracks):null;if(this.tracks.forEach((l,c)=>{let u;if(o){let f=null;for(let d=0;d<o.length;d++)if(o[d]&&OL(o[d],l)){f=o[d],o[d]=null;break}f&&(u=f)}if(u)Sc(u);else{const f=qN(l);u=this.createTextTrack(f,l.name,l.lang),u&&(u.mode="disabled")}u&&this.textTracks.push(u)}),o!=null&&o.length){const l=o.filter(c=>c!==null).map(c=>c.label);l.length&&J.warn(`Media element contains unused subtitle tracks: ${l.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const a=this.tracks.map(o=>({label:o.name,kind:o.type.toLowerCase(),default:o.default,subtitleTrack:o}));this.hls.trigger(I.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:a})}}}onManifestLoaded(e,n){this.config.enableCEA708Captions&&n.captions&&n.captions.forEach(r=>{const i=/(?:CC|SERVICE)([1-4])/.exec(r.instreamId);if(!i)return;const s=`textTrack${i[1]}`,a=this.captionsProperties[s];a&&(a.label=r.name,r.lang&&(a.languageCode=r.lang),a.media=r)})}closedCaptionsForLevel(e){const n=this.hls.levels[e.level];return n==null?void 0:n.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,n){if(this.enabled&&n.frag.type===De.MAIN){var r,i;const{cea608Parser1:s,cea608Parser2:a,lastSn:o}=this,{cc:l,sn:c}=n.frag,u=(r=(i=n.part)==null?void 0:i.index)!=null?r:-1;s&&a&&(c!==o+1||c===o&&u!==this.lastPartIndex+1||l!==this.lastCc)&&(s.reset(),a.reset()),this.lastCc=l,this.lastSn=c,this.lastPartIndex=u}}onFragLoaded(e,n){const{frag:r,payload:i}=n;if(r.type===De.SUBTITLE)if(i.byteLength){const s=r.decryptdata,a="stats"in n;if(s==null||!s.encrypted||a){const o=this.tracks[r.level],l=this.vttCCs;l[r.cc]||(l[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),o&&o.textCodec===zv?this._parseIMSC1(r,i):this._parseVTTs(n)}}else this.hls.trigger(I.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,n){const r=this.hls;kL(n,this.initPTS[e.cc],i=>{this._appendCues(i,e.level),r.trigger(I.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},i=>{J.log(`Failed to parse IMSC1: ${i}`),r.trigger(I.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:i})})}_parseVTTs(e){var n;const{frag:r,payload:i}=e,{initPTS:s,unparsedVttFrags:a}=this,o=s.length-1;if(!s[r.cc]&&o===-1){a.push(e);return}const l=this.hls,c=(n=r.initSegment)!=null&&n.data?Oi(r.initSegment.data,new Uint8Array(i)):i;O7(c,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,u=>{this._appendCues(u,r.level),l.trigger(I.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})},u=>{const f=u.message==="Missing initPTS for VTT MPEGTS";f?a.push(e):this._fallbackToIMSC1(r,i),J.log(`Failed to parse VTT cue: ${u}`),!(f&&o>r.cc)&&l.trigger(I.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:u})})}_fallbackToIMSC1(e,n){const r=this.tracks[e.level];r.textCodec||kL(n,this.initPTS[e.cc],()=>{r.textCodec=zv,this._parseIMSC1(e,n)},()=>{r.textCodec="wvtt"})}_appendCues(e,n){const r=this.hls;if(this.config.renderTextTracksNatively){const i=this.textTracks[n];if(!i||i.mode==="disabled")return;e.forEach(s=>fN(i,s))}else{const i=this.tracks[n];if(!i)return;const s=i.default?"default":"subtitles"+n;r.trigger(I.CUES_PARSED,{type:"subtitles",cues:e,track:s})}}onFragDecrypted(e,n){const{frag:r}=n;r.type===De.SUBTITLE&&this.onFragLoaded(I.FRAG_LOADED,n)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,n){this.initCea608Parsers();const{cea608Parser1:r,cea608Parser2:i}=this;if(!this.enabled||!r||!i)return;const{frag:s,samples:a}=n;if(!(s.type===De.MAIN&&this.closedCaptionsForLevel(s)==="NONE"))for(let o=0;o<a.length;o++){const l=a[o].bytes;if(l){const c=this.extractCea608Data(l);r.addData(a[o].pts,c[0]),i.addData(a[o].pts,c[1])}}}onBufferFlushing(e,{startOffset:n,endOffset:r,endOffsetSubtitles:i,type:s}){const{media:a}=this;if(!(!a||a.currentTime<r)){if(!s||s==="video"){const{captionsTracks:o}=this;Object.keys(o).forEach(l=>ub(o[l],n,r))}if(this.config.renderTextTracksNatively&&n===0&&i!==void 0){const{textTracks:o}=this;Object.keys(o).forEach(l=>ub(o[l],n,i))}}}extractCea608Data(e){const n=[[],[]],r=e[0]&31;let i=2;for(let s=0;s<r;s++){const a=e[i++],o=127&e[i++],l=127&e[i++];if(o===0&&l===0)continue;if((4&a)!==0){const u=3&a;(u===0||u===1)&&(n[u].push(o),n[u].push(l))}}return n}}function qN(t){return t.characteristics&&/transcribes-spoken-dialog/gi.test(t.characteristics)&&/describes-music-and-sound/gi.test(t.characteristics)?"captions":"subtitles"}function OL(t,e){return!!t&&t.kind===qN(e)&&gb(e,t)}function H7(t,e,n,r){return Math.min(e,r)-Math.max(t,n)}function ML(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}class HS{constructor(e){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(e){this.streamController=e}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:e}=this;e.on(I.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(I.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(I.MANIFEST_PARSED,this.onManifestParsed,this),e.on(I.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(I.BUFFER_CODECS,this.onBufferCodecs,this),e.on(I.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(I.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(I.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(I.MANIFEST_PARSED,this.onManifestParsed,this),e.off(I.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(I.BUFFER_CODECS,this.onBufferCodecs,this),e.off(I.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,n){const r=this.hls.levels[n.droppedLevel];this.isLevelAllowed(r)&&this.restrictedLevels.push({bitrate:r.bitrate,height:r.height,width:r.width})}onMediaAttaching(e,n){this.media=n.media instanceof HTMLVideoElement?n.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(e,n){const r=this.hls;this.restrictedLevels=[],this.firstLevel=n.firstLevel,r.config.capLevelToPlayerSize&&n.video&&this.startCapping()}onLevelsUpdated(e,n){this.timer&&Te(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,n){this.hls.config.capLevelToPlayerSize&&n.video&&this.startCapping()}onMediaDetaching(){this.stopCapping()}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const e=this.hls.levels;if(e.length){const n=this.hls,r=this.getMaxLevel(e.length-1);r!==this.autoLevelCapping&&J.log(`Setting autoLevelCapping to ${r}: ${e[r].height}p@${e[r].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),n.autoLevelCapping=r,n.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=n.autoLevelCapping}}}getMaxLevel(e){const n=this.hls.levels;if(!n.length)return-1;const r=n.filter((i,s)=>this.isLevelAllowed(i)&&s<=e);return this.clientRect=null,HS.getMaxLevelByMediaSize(r,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const e=this.media,n={width:0,height:0};if(e){const r=e.getBoundingClientRect();n.width=r.width,n.height=r.height,!n.width&&!n.height&&(n.width=r.right-r.left||e.
132width||0,n.height=r.bottom-r.top||e.height||0)}return this.clientRect=n,n}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch{}return e}isLevelAllowed(e){return!this.restrictedLevels.some(r=>e.bitrate===r.bitrate&&e.width===r.width&&e.height===r.height)}static getMaxLevelByMediaSize(e,n,r){if(!(e!=null&&e.length))return-1;const i=(o,l)=>l?o.width!==l.width||o.height!==l.height:!0;let s=e.length-1;const a=Math.max(n,r);for(let o=0;o<e.length;o+=1){const l=e[o];if((l.width>=a||l.height>=a)&&i(l,e[o+1])){s=o;break}}return s}}class G7{constructor(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}setStreamController(e){this.streamController=e}registerListeners(){this.hls.on(I.MEDIA_ATTACHING,this.onMediaAttaching,this)}unregisterListeners(){this.hls.off(I.MEDIA_ATTACHING,this.onMediaAttaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,n){const r=this.hls.config;if(r.capLevelOnFPSDrop){const i=n.media instanceof self.HTMLVideoElement?n.media:null;this.media=i,i&&typeof i.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}}checkFPS(e,n,r){const i=performance.now();if(n){if(this.lastTime){const s=i-this.lastTime,a=r-this.lastDroppedFrames,o=n-this.lastDecodedFrames,l=1e3*a/s,c=this.hls;if(c.trigger(I.FPS_DROP,{currentDropped:a,currentDecoded:o,totalDroppedFrames:r}),l>0&&a>c.config.fpsDroppedMonitoringThreshold*o){let u=c.currentLevel;J.warn("drop FPS ratio greater than max allowed value for currentLevel: "+u),u>0&&(c.autoLevelCapping===-1||c.autoLevelCapping>=u)&&(u=u-1,c.trigger(I.FPS_DROP_LEVEL_CAPPING,{level:u,droppedLevel:c.currentLevel}),c.autoLevelCapping=u,this.streamController.nextLevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=r,this.lastDecodedFrames=n}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const n=e.getVideoPlaybackQuality();this.checkFPS(e,n.totalVideoFrames,n.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}}const Vh="[eme]";class Gc{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=Gc.CDMCleanupPromise?[Gc.CDMCleanupPromise]:[],this.debug=J.debug.bind(J,Vh),this.log=J.log.bind(J,Vh),this.warn=J.warn.bind(J,Vh),this.error=J.error.bind(J,Vh),this.onMediaEncrypted=n=>{const{initDataType:r,initData:i}=n,s=`"${n.type}" event: init data type: "${r}"`;if(this.debug(s),i!==null){if(!this.keyFormatPromise){let a=Object.keys(this.keySystemAccessPromises);a.length||(a=Oh(this.config));const o=a.map(Dv).filter(l=>!!l);this.keyFormatPromise=this.getKeyFormatPromise(o)}this.keyFormatPromise.then(a=>{const o=kv(a);let l,c;if(r==="sinf"){if(o!==Tt.FAIRPLAY){this.warn(`Ignoring unexpected "${n.type}" event with init data type: "${r}" for selected key-system ${o}`);return}const p=In(new Uint8Array(i));try{const m=AS(JSON.parse(p).sinf),g=sN(m);if(!g)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");l=g.subarray(8,24),c=Tt.FAIRPLAY}catch(m){this.warn(`${s} Failed to parse sinf: ${m}`);return}}else{if(o!==Tt.WIDEVINE&&o!==Tt.PLAYREADY){this.warn(`Ignoring unexpected "${n.type}" event with init data type: "${r}" for selected key-system ${o}`);return}const p=_X(i),m=p.filter(_=>!!_.systemId&&Pv(_.systemId)===o);m.length>1&&this.warn(`${s} Using first of ${m.length} pssh found for selected key-system ${o}`);const g=m[0];if(!g){p.length===0||p.some(_=>!_.systemId)?this.warn(`${s} contains incomplete or invalid pssh data`):this.log(`ignoring ${s} for ${p.map(_=>Pv(_.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(c=Pv(g.systemId),g.version===0&&g.data)if(c===Tt.WIDEVINE){const _=g.data.length-22;l=g.data.subarray(_,_+16)}else c===Tt.PLAYREADY&&(l=JM(g.data))}if(!c||!l){this.log(`Unable to handle ${s} with key-system ${o}`);return}const u=ms.hexDump(l),{keyIdToKeySessionPromise:f,mediaKeySessions:d}=this;let h=f[u];for(let p=0;p<d.length;p++){const m=d[p],g=m.decryptdata;if(!g.keyId)continue;const _=ms.hexDump(g.keyId);if(u===_||g.uri.replace(/-/g,"").indexOf(u)!==-1){if(h=f[_],g.pssh)break;delete f[_],g.pssh=new Uint8Array(i),g.keyId=l,h=f[u]=h.then(()=>this.generateRequestWithPreferredKeySession(m,r,i,"encrypted-event-key-match")),h.catch(v=>this.handleError(v));break}}if(!h){if(c!==o){this.log(`Ignoring "${s}" with ${c} init data for selected key-system ${o}`);return}h=f[u]=this.getKeySystemSelectionPromise([c]).then(({keySystem:p,mediaKeys:m})=>{var g;this.throwIfDestroyed();const _=new Rd("ISO-23001-7",u,(g=Dv(p))!=null?g:"");return _.pssh=new Uint8Array(i),_.keyId=l,this.attemptSetMediaKeys(p,m).then(()=>{this.throwIfDestroyed();const v=this.createMediaKeySessionContext({decryptdata:_,keySystem:p,mediaKeys:m});return this.generateRequestWithPreferredKeySession(v,r,i,"encrypted-event-no-match")})}),h.catch(p=>this.handleError(p))}})}},this.onWaitingForKey=n=>{this.log(`"${n.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.unregisterListeners(),this.onMediaDetached();const e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}
132registerListeners(){this.hls.on(I.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(I.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(I.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(I.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(I.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(I.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(I.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(I.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(e){const{drmSystems:n,widevineLicenseUrl:r}=this.config,i=n[e];if(i)return i.licenseUrl;if(e===Tt.WIDEVINE&&r)return r}getLicenseServerUrlOrThrow(e){const n=this.getLicenseServerUrl(e);if(n===void 0)throw new Error(`no license server URL configured for key-system "${e}"`);return n}getServerCertificateUrl(e){const{drmSystems:n}=this.config,r=n[e];if(r)return r.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){const n=this.hls.levels,r=(a,o,l)=>!!a&&l.indexOf(a)===o,i=n.map(a=>a.audioCodec).filter(r),s=n.map(a=>a.videoCodec).filter(r);return i.length+s.length===0&&s.push("avc1.42e01e"),new Promise((a,o)=>{const l=c=>{const u=c.shift();this.getMediaKeysPromise(u,i,s).then(f=>a({keySystem:u,mediaKeys:f})).catch(f=>{c.length?l(c):f instanceof Ti?o(f):o(new Ti({type:Fe.KEY_SYSTEM_ERROR,details:ne.KEY_SYSTEM_NO_ACCESS,error:f,fatal:!0},f.message))})};l(e)})}requestMediaKeySystemAccess(e,n){const{requestMediaKeySystemAccessFunc:r}=this.config;if(typeof r!="function"){let i=`Configured requestMediaKeySystemAccess is not a function ${r}`;return XM===null&&self.location.protocol==="http:"&&(i=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(i))}return r(e,n)}getMediaKeysPromise(e,n,r){const i=z6(e,n,r,this.config.drmSystemOptions),s=this.keySystemAccessPromises[e];let a=s==null?void 0:s.keySystemAccess;if(!a){this.log(`Requesting encrypted media "${e}" key-system access with config: ${JSON.stringify(i)}`),a=this.requestMediaKeySystemAccess(e,i);const o=this.keySystemAccessPromises[e]={keySystemAccess:a};return a.catch(l=>{this.log(`Failed to obtain access to key-system "${e}": ${l}`)}),a.then(l=>{this.log(`Access for key-system "${l.keySystem}" obtained`);const c=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),o.mediaKeys=l.createMediaKeys().then(u=>(this.log(`Media-keys created for "${e}"`),c.then(f=>f?this.setMediaKeysServerCertificate(u,e,f):u))),o.mediaKeys.catch(u=>{this.error(`Failed to create media-keys for "${e}"}: ${u}`)}),o.mediaKeys})}return a.then(()=>s.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:n,mediaKeys:r}){this.log(`Creating key-system session "${n}" keyId: ${ms.hexDump(e.keyId||[])}`);const i=r.createSession(),s={decryptdata:e,keySystem:n,mediaKeys:r,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(s),s}renewKeySession(e){const n=e.decryptdata;if(n.pssh){const r=this.createMediaKeySessionContext(e),i=this.getKeyIdString(n),s="cenc";this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(r,s,n.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}getKeyIdString(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return ms.hexDump(e.keyId)}updateKeySession(e,n){var r;const i=e.mediaKeysSession;return this.log(`Updating key-session "${i.sessionId}" for keyID ${ms.hexDump(((r=e.decryptdata)==null?void 0:r.keyId)||[])} 133 } (data length: ${n&&n.byteLength})`),i.update(n)}selectKeySystemFormat(e){const n=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${e.sn} ${e.type}: ${e.level}) key formats ${n.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(n)),this.keyFormatPromise}getKeyFormatPromise(e){return new Promise((n,r)=>{const i=Oh(this.config),s=e.map(kv).filter(a=>!!a&&i.indexOf(a)!==-1);return this.getKeySystemSelectionPromise(s).then(({keySystem:a})=>{const o=Dv(a);o?n(o):r(new Error(`Unable to find format for key-system "${a}"`))}).catch(r)})}loadKey(e){const n=e.keyInfo.decryptdata,r=this.getKeyIdString(n),i=`(keyId: ${r} format: "${n.keyFormat}" method: ${n.method} uri: ${n.uri})`;this.log(`Starting session for key ${i}`);let s=this.keyIdToKeySessionPromise[r];return s||(s=this.keyIdToKeySessionPromise[r]=this.getKeySystemForKeyPromise(n).then(({keySystem:a,mediaKeys:o})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${i}`),this.attemptSetMediaKeys(a,o).then(()=>{this.throwIfDestroyed();const l=this.createMediaKeySessionContext({keySystem:a,mediaKeys:o,decryptdata:n});return this.generateRequestWithPreferredKeySession(l,"cenc",n.pssh,"playlist-key")}))),s.catch(a=>this.handleError(a))),s}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof Ti?this.hls.trigger(I.ERROR,e.data):this.hls.trigger(I.ERROR,{type:Fe.KEY_SYSTEM_ERROR,details:ne.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}
vendor: 5,936 bytes, line 133
133getKeySystemForKeyPromise(e){const n=this.getKeyIdString(e),r=this.keyIdToKeySessionPromise[n];if(!r){const i=kv(e.keyFormat),s=i?[i]:Oh(this.config);return this.attemptKeySystemAccess(s)}return r}getKeySystemSelectionPromise(e){if(e.length||(e=Oh(this.config)),e.length===0)throw new Ti({type:Fe.KEY_SYSTEM_ERROR,details:ne.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${JSON.stringify({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,n){const r=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const i=Promise.all(r).then(()=>{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(n)});return this.setMediaKeysQueue.push(i),i.then(()=>{this.log(`Media-keys set for "${e}"`),r.push(i),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(s=>r.indexOf(s)===-1)})}generateRequestWithPreferredKeySession(e,n,r,i){var s,a;const o=(s=this.config.drmSystems)==null||(a=s[e.keySystem])==null?void 0:a.generateRequest;if(o)try{const p=o.call(this.hls,n,r,e);if(!p)throw new Error("Invalid response from configured generateRequest filter");n=p.initDataType,r=e.decryptdata.pssh=p.initData?new Uint8Array(p.initData):null}catch(p){var l;if(this.warn(p.message),(l=this.hls)!=null&&l.config.debug)throw p}if(r===null)return this.log(`Skipping key-session request for "${i}" (no initData)`),Promise.resolve(e);const c=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${i}": ${c} (init data type: ${n} length: ${r?r.byteLength:null})`);const u=new $S,f=e._onmessage=p=>{const m=e.mediaKeysSession;if(!m){u.emit("error",new Error("invalid state"));return}const{messageType:g,message:_}=p;this.log(`"${g}" message event for session "${m.sessionId}" message size: ${_.byteLength}`),g==="license-request"||g==="license-renewal"?this.renewLicense(e,_).catch(v=>{this.handleError(v),u.emit("error",v)}):g==="license-release"?e.keySystem===Tt.FAIRPLAY&&(this.updateKeySession(e,lb("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${g}"`)},d=e._onkeystatuseschange=p=>{if(!e.mediaKeysSession){u.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const g=e.keyStatus;u.emit("keyStatus",g),g==="expired"&&(this.warn(`${e.keySystem} expired for key ${c}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",f),e.mediaKeysSession.addEventListener("keystatuseschange",d);const h=new Promise((p,m)=>{u.on("error",m),u.on("keyStatus",g=>{g.startsWith("usable")?p():g==="output-restricted"?m(new Ti({type:Fe.KEY_SYSTEM_ERROR,details:ne.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):g==="internal-error"?m(new Ti({type:Fe.KEY_SYSTEM_ERROR,details:ne.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${g}"`)):g==="expired"?m(new Error("key expired while generating request")):this.warn(`unhandled key status change "${g}"`)})});return e.mediaKeysSession.generateRequest(n,r).then(()=>{var p;this.log(`Request generated for key-session "${(p=e.mediaKeysSession)==null?void 0:p.sessionId}" keyId: ${c}`)}).catch(p=>{throw new Ti({type:Fe.KEY_SYSTEM_ERROR,details:ne.KEY_SYSTEM_NO_SESSION,error:p,fatal:!1},`Error generating key-session request: ${p}`)}).then(()=>h).catch(p=>{throw u.removeAllListeners(),this.removeSession(e),p}).then(()=>(u.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((n,r)=>{this.log(`key status change "${n}" for keyStatuses keyId: ${ms.hexDump("buffer"in r?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):new Uint8Array(r))} session keyId: ${ms.hexDump(new Uint8Array(e.decryptdata.keyId||[]))} uri: ${e.decryptdata.uri}`),e.keyStatus=n})}fetchServerCertificate(e){const n=this.config,r=n.loader,i=new r(n),s=this.getServerCertificateUrl(e);return s?(this.log(`Fetching server certificate for "${e}"`),new Promise((a,o)=>{const l={responseType:"arraybuffer",url:s},c=n.certLoadPolicy.default,u={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},f={onSuccess:(d,h,p,m)=>{a(d.data)},onError:(d,h,p,m)=>{o(new Ti({type:Fe.KEY_SYSTEM_ERROR,details:ne.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:p,response:Kn({url:l.url,data:void 0},d)},`"${e}" certificate request failed (${s}). Status: ${d.code} (${d.text})`))},onTimeout:(d,h,p)=>{o(new Ti({type:Fe.KEY_SYSTEM_ERROR,details:ne.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:p,response:{url:l.url,data:void 0}},`"${e}" certificate request timed out (${s})`))},onAbort:(d,h,p)=>{o(new Error("aborted"))}};i.load(l,u,f)})):Promise.resolve()}setMediaKeysServerCertificate(e,n,r){return new Promise((i,s)=>{e.setServerCertificate(r).then(a=>{this.log(`setServerCertificate ${a?"success":"not supported by CDM"} (${r==null?void 0:r.byteLength}) on "${n}"`),i(e)}).catch(a=>{s(new Ti({type:Fe.KEY_SYSTEM_ERROR,details:ne.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:a,fatal:!0},a.message))})})}renewLicense(e,n){return this.requestLicense(e,new Uint8Array(n)).then(r=>this.updateKeySession(e,new Uint8Array(r)).catch(i=>{throw new Ti({type:Fe.KEY_SYSTEM_ERROR,details:ne.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:i,fatal:!0},i.message)}))}unpackPlayReadyKeyMessage(e,n){const r=String.fromCharCode.apply(null,new Uint16Array(n.buffer));if(!r.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),n;const i=new DOMParser().parseFromString(r,"application/xml"),s=i.querySelectorAll("HttpHeader");if(s.length>0){let u;for(let f=0,d=s.length;f<d;f++){var a,o;u=s[f];const h=(a=u.querySelector("name"))==null?void 0:a.textContent,p=(o=u.querySelector("value"))==null?void 0:o.textContent;h&&p&&e.setRequestHeader(h,p)}}const l=i.querySelector("Challenge"),c=l==null?void 0:l.textContent;
133if(!c)throw new Error("Cannot find <Challenge> in key message");return lb(atob(c))}setupLicenseXHR(e,n,r,i){const s=this.config.licenseXhrSetup;return s?Promise.resolve().then(()=>{if(!r.decryptdata)throw new Error("Key removed");return s.call(this.hls,e,n,r,i)}).catch(a=>{if(!r.decryptdata)throw a;return e.open("POST",n,!0),s.call(this.hls,e,n,r,i)}).then(a=>(e.readyState||e.open("POST",n,!0),{xhr:e,licenseChallenge:a||i})):(e.open("POST",n,!0),Promise.resolve({xhr:e,licenseChallenge:i}))}requestLicense(e,n){const r=this.config.keyLoadPolicy.default;return new Promise((i,s)=>{const a=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${a}`);const o=new XMLHttpRequest;o.responseType="arraybuffer",o.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return s(new Error("invalid state"));if(o.readyState===4)if(o.status===200){this._requestLicenseFailureCount=0;let l=o.response;this.log(`License received ${l instanceof ArrayBuffer?l.byteLength:l}`);const c=this.config.licenseResponseCallback;if(c)try{l=c.call(this.hls,o,a,e)}catch(u){this.error(u)}i(l)}else{const l=r.errorRetry,c=l?l.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>c||o.status>=400&&o.status<500)s(new Ti({type:Fe.KEY_SYSTEM_ERROR,details:ne.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:o,response:{url:a,data:void 0,code:o.status,text:o.statusText}},`License Request XHR failed (${a}). Status: ${o.status} (${o.statusText})`));else{const u=c-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${u} attempts left`),this.requestLicense(e,n).then(i,s)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=o,this.setupLicenseXHR(o,a,e,n).then(({xhr:l,licenseChallenge:c})=>{e.keySystem==Tt.PLAYREADY&&(c=this.unpackPlayReadyKeyMessage(l,c)),l.send(c)})})}onMediaAttached(e,n){if(!this.config.emeEnabled)return;const r=n.media;this.media=r,r.removeEventListener("encrypted",this.onMediaEncrypted),r.removeEventListener("waitingforkey",this.onWaitingForKey),r.addEventListener("encrypted",this.onMediaEncrypted),r.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media,n=this.mediaKeySessions;e&&(e.removeEventListener("encrypted",this.onMediaEncrypted),e.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},Rd.clearKeyUriToKeyIdMap();const r=n.length;Gc.CDMCleanupPromise=Promise.all(n.map(i=>this.removeSession(i)).concat(e==null?void 0:e.setMediaKeys(null).catch(i=>{this.log(`Could not clear media keys: ${i}`)}))).then(()=>{r&&(this.log("finished closing key sessions and clearing media keys"),n.length=0)}).catch(i=>{this.log(`Could not close sessions and clear media keys: ${i}`)})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:n}){if(!(!n||!this.config.emeEnabled)&&!this.keyFormatPromise){const r=n.reduce((i,s)=>(i.indexOf(s.keyFormat)===-1&&i.push(s.keyFormat),i),[]);this.log(`Selecting key-system from session-keys ${r.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(r)}}removeSession(e){const{mediaKeysSession:n,licenseXhr:r}=e;if(n){this.log(`Remove licenses and keys and close session ${n.sessionId}`),e._onmessage&&(n.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(n.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),r&&r.readyState!==XMLHttpRequest.DONE&&r.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const i=this.mediaKeySessions.indexOf(e);return i>-1&&this.mediaKeySessions.splice(i,1),n.remove().catch(s=>{this.log(`Could not remove session: ${s}`)}).then(()=>n.close()).catch(s=>{this.log(`Could not close session: ${s}`)})}}}Gc.CDMCleanupPromise=void 0;class Ti extends Error{constructor(e,n){super(n),this.data=void 0,e.error||(e.error=new Error(n)),this.data=e,e.err=e.error}}var hr;(function(t){t.MANIFEST="m",t.AUDIO="a",t.VIDEO="v",t.MUXED="av",t.INIT="i",t.CAPTION="c",t.TIMED_TEXT="tt",t.KEY="k",t.OTHER="o"})(hr||(hr={}));var vb;(function(t){t.DASH="d",t.HLS="h",t.SMOOTH="s",t.OTHER="o"})(vb||(vb={}));var el;(function(t){t.OBJECT="CMCD-Object",t.REQUEST="CMCD-Request",t.SESSION="CMCD-Session",t.STATUS="CMCD-Status"})(el||(el={}));const j7={[el.OBJECT]:["br","d","ot","tb"],[el.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[el.SESSION]:["cid","pr","sf","sid","st","v"],[el.STATUS]:["bs","rtp"]};class hu{constructor(e,n){this.value=void 0,this.params=void 0,Array.isArray(e)&&(e=e.map(r=>r instanceof hu?r:new hu(r))),this.value=e,this.params=n}}class KN{constructor(e){this.description=void 0,this.description=e}}const V7="Dict";function q7(t){return Array.isArray(t)?JSON.stringify(t):t instanceof Map?"Map{}":t instanceof Set?"Set{}":typeof t=="object"?JSON.stringify(t):String(t)}function K7(t,e,n,r){return new Error(`failed to ${t} "${q7(e)}" as ${n}`,{cause:r})}const NL="Bare Item",W7="Boolean",z7="Byte Sequence",Y7="Decimal",X7="Integer";function J7(t){return t<-999999999999999||999999999999999<t}
vendor: 5,227 bytes, line 133
133const Q7=/[\x00-\x1f\x7f]+/,Z7="Token",eJ="Key";function Ns(t,e,n){return K7("serialize",t,e,n)}function tJ(t){if(typeof t!="boolean")throw Ns(t,W7);return t?"?1":"?0"}function nJ(t){return btoa(String.fromCharCode(...t))}function rJ(t){if(ArrayBuffer.isView(t)===!1)throw Ns(t,z7);return`:${nJ(t)}:`}function WN(t){if(J7(t))throw Ns(t,X7);return t.toString()}function iJ(t){return`@${WN(t.getTime()/1e3)}`}function zN(t,e){if(t<0)return-zN(-t,e);const n=Math.pow(10,e);if(Math.abs(t*n%1-.5)<Number.EPSILON){const i=Math.floor(t*n);return(i%2===0?i:i+1)/n}else return Math.round(t*n)/n}function sJ(t){const e=zN(t,3);if(Math.floor(Math.abs(e)).toString().length>12)throw Ns(t,Y7);const n=e.toString();return n.includes(".")?n:`${n}.0`}const aJ="String";function oJ(t){if(Q7.test(t))throw Ns(t,aJ);return`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function lJ(t){return t.description||t.toString().slice(7,-1)}function FL(t){const e=lJ(t);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw Ns(e,Z7);return e}function _b(t){switch(typeof t){case"number":if(!Te(t))throw Ns(t,NL);return Number.isInteger(t)?WN(t):sJ(t);case"string":return oJ(t);case"symbol":return FL(t);case"boolean":return tJ(t);case"object":if(t instanceof Date)return iJ(t);if(t instanceof Uint8Array)return rJ(t);if(t instanceof KN)return FL(t);default:throw Ns(t,NL)}}function Eb(t){if(/^[a-z*][a-z0-9\-_.*]*$/.test(t)===!1)throw Ns(t,eJ);return t}function GS(t){return t==null?"":Object.entries(t).map(([e,n])=>n===!0?`;${Eb(e)}`:`;${Eb(e)}=${_b(n)}`).join("")}function YN(t){return t instanceof hu?`${_b(t.value)}${GS(t.params)}`:_b(t)}function cJ(t){return`(${t.value.map(YN).join(" ")})${GS(t.params)}`}function uJ(t,e={whitespace:!0}){if(typeof t!="object")throw Ns(t,V7);const n=t instanceof Map?t.entries():Object.entries(t),r=e!=null&&e.whitespace?" ":"";return Array.from(n).map(([i,s])=>{s instanceof hu||(s=new hu(s));let a=Eb(i);return s.value===!0?a+=GS(s.params):(a+="=",Array.isArray(s.value)?a+=cJ(s):a+=YN(s)),a}).join(`,${r}`)}function fJ(t,e){return uJ(t,e)}const dJ=t=>t==="ot"||t==="sf"||t==="st",hJ=t=>typeof t=="number"?Te(t):t!=null&&t!==""&&t!==!1;function pJ(t,e){const n=new URL(t),r=new URL(e);if(n.origin!==r.origin)return t;const i=n.pathname.split("/").slice(1),s=r.pathname.split("/").slice(1,-1);for(;i[0]===s[0];)i.shift(),s.shift();for(;s.length;)s.shift(),i.unshift("..");return i.join("/")}function mJ(){try{return crypto.randomUUID()}catch{try{const e=URL.createObjectURL(new Blob),n=e.toString();return URL.revokeObjectURL(e),n.slice(n.lastIndexOf("/")+1)}catch{let n=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,i=>{const s=(n+Math.random()*16)%16|0;return n=Math.floor(n/16),(i=="x"?s:s&3|8).toString(16)})}}}const Sp=t=>Math.round(t),gJ=(t,e)=>(e!=null&&e.baseUrl&&(t=pJ(t,e.baseUrl)),encodeURIComponent(t)),qh=t=>Sp(t/100)*100,yJ={br:Sp,d:Sp,bl:qh,dl:qh,mtp:qh,nor:gJ,rtp:qh,tb:Sp};function vJ(t,e){const n={};if(t==null||typeof t!="object")return n;const r=Object.keys(t).sort(),i=Tn({},yJ,e==null?void 0:e.formatters),s=e==null?void 0:e.filter;return r.forEach(a=>{if(s!=null&&s(a))return;let o=t[a];const l=i[a];l&&(o=l(o,e)),!(a==="v"&&o===1)&&(a=="pr"&&o===1||hJ(o)&&(dJ(a)&&typeof o=="string"&&(o=new KN(o)),n[a]=o))}),n}function XN(t,e={}){return t?fJ(vJ(t,e),Tn({whitespace:!1},e)):""}function _J(t,e={}){if(!t)return{};const n=Object.entries(t),r=Object.entries(j7).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),i=n.reduce((s,a)=>{var o,l;const[c,u]=a,f=((o=r.find(d=>d[1].includes(c)))==null?void 0:o[0])||el.REQUEST;return(l=s[f])!=null||(s[f]={}),s[f][c]=u,s},{});return Object.entries(i).reduce((s,[a,o])=>(s[a]=XN(o,e),s),{})}function EJ(t,e,n){return Tn(t,_J(e,n))}const bJ="CMCD";function TJ(t,e={}){if(!t)return"";const n=XN(t,e);return`${bJ}=${encodeURIComponent(n)}`}const $L=/CMCD=[^&#]+/;function SJ(t,e,n){const r=TJ(e,n);if(!r)return t;if($L.test(t))return t.replace($L,r);const i=t.includes("?")?"&":"?";return`${t}${i}${r}`}class wJ{constructor(e){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=i=>{try{this.apply(i,{ot:hr.MANIFEST,su:!this.initialized})}catch(s){J.warn("Could not generate manifest CMCD data.",s)}},this.applyFragmentData=i=>{try{const s=i.frag,a=this.hls.levels[s.level],o=this.getObjectType(s),l={d:s.duration*1e3,ot:o};(o===hr.VIDEO||o===hr.AUDIO||o==hr.MUXED)&&(l.br=a.bitrate/1e3,l.tb=this.getTopBandwidth(o)/1e3,l.bl=this.getBufferLength(o)),this.apply(i,l)}catch(s){J.warn("Could not generate segment CMCD data.",s)}},this.hls=e;const n=this.config=e.config,{cmcd:r}=n;r!=null&&(n.pLoader=this.createPlaylistLoader(),n.fLoader=this.createFragmentLoader(),this.sid=r.sessionId||mJ(),this.cid=r.contentId,this.useHeaders=r.useHeaders===!0,this.includeKeys=r.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;
133e.on(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(I.MEDIA_DETACHED,this.onMediaDetached,this),e.on(I.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(I.MEDIA_DETACHED,this.onMediaDetached,this),e.off(I.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null}onMediaAttached(e,n){this.media=n.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,n){var r,i;this.audioBuffer=(r=n.tracks.audio)==null?void 0:r.buffer,this.videoBuffer=(i=n.tracks.video)==null?void 0:i.buffer}createData(){var e;return{v:1,sf:vb.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,n={}){Tn(n,this.createData());const r=n.ot===hr.INIT||n.ot===hr.VIDEO||n.ot===hr.MUXED;this.starved&&r&&(n.bs=!0,n.su=!0,this.starved=!1),n.su==null&&(n.su=this.buffering);const{includeKeys:i}=this;i&&(n=Object.keys(n).reduce((s,a)=>(i.includes(a)&&(s[a]=n[a]),s),{})),this.useHeaders?(e.headers||(e.headers={}),EJ(e.headers,n)):e.url=SJ(e.url,n)}getObjectType(e){const{type:n}=e;if(n==="subtitle")return hr.TIMED_TEXT;if(e.sn==="initSegment")return hr.INIT;if(n==="audio")return hr.AUDIO;if(n==="main")return this.hls.audioTracks.length?hr.VIDEO:hr.MUXED}getTopBandwidth(e){let n=0,r;const i=this.hls;if(e===hr.AUDIO)r=i.audioTracks;else{const s=i.maxAutoLevel,a=s>-1?s+1:i.levels.length;r=i.levels.slice(0,a)}for(const s of r)s.bitrate>n&&(n=s.bitrate);return n>0?n:NaN}getBufferLength(e){const n=this.hls.media,r=e===hr.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!n?NaN:$t.bufferInfo(r,n.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:e}=this.config,n=this.applyPlaylistData,r=e||this.config.loader;return class{constructor(s){this.loader=void 0,this.loader=new r(s)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(s,a,o){n(s),this.loader.load(s,a,o)}}}createFragmentLoader(){const{fLoader:e}=this.config,n=this.applyFragmentData,r=e||this.config.loader;return class{constructor(s){this.loader=void 0,this.loader=new r(s)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(s,a,o){n(s),this.loader.load(s,a,o)}}}}const xJ=3e5;class AJ{constructor(e){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.log=J.log.bind(J,"[content-steering]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(I.MANIFEST_PARSED,this.onManifestParsed,this),e.on(I.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(I.MANIFEST_PARSED,this.onManifestParsed,this),e.off(I.ERROR,this.onError,this))}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=this.timeToLoad*1e3-(performance.now()-this.updated);if(e>0){this.scheduleRefresh(this.uri,e);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const n=this.levels;n&&(this.levels=n.filter(r=>r!==e))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,n){const{contentSteering:r}=n;r!==null&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())}onManifestParsed(e,n){this.audioTracks=n.audioTracks,this.subtitleTracks=n.subtitleTracks}onError(e,n){const{errorAction:r}=n;if((r==null?void 0:r.action)===Jn.SendAlternateToPenaltyBox&&r.flags===Gi.MoveAllAlternatesMatchingHost){const i=this.levels;let s=this.pathwayPriority,a=this.pathwayId;if(n.context){const{groupId:o,pathwayId:l,type:c}=n.context;o&&i?a=this.getPathwayForGroupId(o,c,a):l&&(a=l)}a in this.penalizedPathways||(this.penalizedPathways[a]=performance.now()),!s&&i&&(s=i.reduce((o,l)=>(o.indexOf(l.pathwayId)===-1&&o.push(l.pathwayId),o),[])),s&&s.length>1&&(this.updatePathwayPriority(s),r.resolved=this.pathwayId!==a),r.resolved||J.warn(`Could not resolve ${n.details} ("${n.error.message}") with content-steering for Pathway: ${a} levels: ${i&&i.length} priorities: ${JSON.stringify(s)} penalized: ${JSON.stringify(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let n=this.getLevelsForPathway(this.pathwayId);if(n.length===0){const r=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${r}"`),n=this.getLevelsForPathway(r),this.pathwayId=r}return n.length!==e.length&&this.log(`Found ${n.length}/${e.length} levels in Pathway "${this.pathwayId}"`),n}getLevelsForPathway(e){return this.levels===null?[]:this.levels.filter(n=>e===n.pathwayId)}updatePathwayPriority(e){this.pathwayPriority=e;let n;const r=this.penalizedPathways,i=performance.now();Object.keys(r).forEach(s=>{i-r[s]>xJ&&delete r[s]});for(let s=0;s<e.length;s++){const a=e[s];if(a in r)continue;if(a===this.pathwayId)return;const o=this.hls.nextLoadLevel,l=this.hls.levels[o];if(n=this.getLevelsForPathway(a),n.length>0){this.log(`Setting Pathway to "${a}"`),this.pathwayId=a,mN(n),this.hls.trigger(I.LEVELS_UPDATED,{levels:n});const c=this.hls.levels[o];l&&c&&this.levels&&(c.attrs["STABLE-VARIANT-ID"]!==l.attrs["STABLE-VARIANT-ID"]&&c.bitrate!==l.bitrate&&this.log(`Unstable Pathways change from bitrate ${l.bitrate} to ${c.bitrate}`),this.hls.nextLoadLevel=o);break}}}getPathwayForGroupId(e,n,r){const i=this.getLevelsForPathway(r).concat(this.levels||[]);for(let s=0;s<i.length;s++)if(n===dt.AUDIO_TRACK&&i[s].hasAudioGroup(e)||n===dt.SUBTITLE_TRACK&&i[s].hasSubtitleGroup(e))return i[s].pathwayId;return r}clonePathways(e){const n=this.levels;if(!n)return;const r={},i={};e.forEach(s=>{const{ID:a,"BASE-ID":o,"URI-REPLACEMENT":l}=s;if(n.some(u=>u.pathwayId===a))return;const c=this.getLevelsForPathway(o).map(u=>{const f=new zt(u.attrs);f["PATHWAY-ID"]=a;const d=f.AUDIO&&`${f.AUDIO}_clone_${a}`,h=f.SUBTITLES&&`${f.SUBTITLES}_clone_${a}`;d&&(r[f.AUDIO]=d,f.AUDIO=d),h&&(i[f.SUBTITLES]=h,f.SUBTITLES=h);
133const p=JN(u.uri,f["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",l),m=new fu({attrs:f,audioCodec:u.audioCodec,bitrate:u.bitrate,height:u.height,name:u.name,url:p,videoCodec:u.videoCodec,width:u.width});if(u.audioGroups)for(let g=1;g<u.audioGroups.length;g++)m.addGroupId("audio",`${u.audioGroups[g]}_clone_${a}`);if(u.subtitleGroups)for(let g=1;g<u.subtitleGroups.length;g++)m.addGroupId("text",`${u.subtitleGroups[g]}_clone_${a}`);return m});n.push(...c),BL(this.audioTracks,r,l,a),BL(this.subtitleTracks,i,l,a)})}loadSteeringManifest(e){const n=this.hls.config,r=n.loader;this.loader&&this.loader.destroy(),this.loader=new r(n);let i;try{i=new self.URL(e)}catch{this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(i.protocol!=="data:"){const u=(this.hls.bandwidthEstimate||n.abrEwmaDefaultEstimate)|0;i.searchParams.set("_HLS_pathway",this.pathwayId),i.searchParams.set("_HLS_throughput",""+u)}const s={responseType:"json",url:i.href},a=n.steeringManifestLoadPolicy.default,o=a.errorRetry||a.timeoutRetry||{},l={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:o.maxNumRetry||0,retryDelay:o.retryDelayMs||0,maxRetryDelay:o.maxRetryDelayMs||0},c={onSuccess:(u,f,d,h)=>{this.log(`Loaded steering manifest: "${i}"`);const p=u.data;if(p.VERSION!==1){this.log(`Steering VERSION ${p.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=p.TTL;const{"RELOAD-URI":m,"PATHWAY-CLONES":g,"PATHWAY-PRIORITY":_}=p;if(m)try{this.uri=new self.URL(m,i).href}catch{this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${m}`);return}this.scheduleRefresh(this.uri||d.url),g&&this.clonePathways(g);const v={steeringManifest:p,url:i.toString()};this.hls.trigger(I.STEERING_MANIFEST_LOADED,v),_&&this.updatePathwayPriority(_)},onError:(u,f,d,h)=>{if(this.log(`Error loading steering manifest: ${u.code} ${u.text} (${f.url})`),this.stopLoad(),u.code===410){this.enabled=!1,this.log(`Steering manifest ${f.url} no longer available`);return}let p=this.timeToLoad*1e3;if(u.code===429){const m=this.loader;if(typeof(m==null?void 0:m.getResponseHeader)=="function"){const g=m.getResponseHeader("Retry-After");g&&(p=parseFloat(g)*1e3)}this.log(`Steering manifest ${f.url} rate limited`);return}this.scheduleRefresh(this.uri||f.url,p)},onTimeout:(u,f,d)=>{this.log(`Timeout loading steering manifest (${f.url})`),this.scheduleRefresh(this.uri||f.url)}};this.log(`Requesting steering manifest: ${i}`),this.loader.load(s,l,c)}scheduleRefresh(e,n=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var r;const i=(r=this.hls)==null?void 0:r.media;if(i&&!i.ended){this.loadSteeringManifest(e);return}this.scheduleRefresh(e,this.timeToLoad*1e3)},n)}}function BL(t,e,n,r){t&&Object.keys(e).forEach(i=>{const s=t.filter(a=>a.groupId===i).map(a=>{const o=Tn({},a);return o.details=void 0,o.attrs=new zt(o.attrs),o.url=o.attrs.URI=JN(a.url,a.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",n),o.groupId=o.attrs["GROUP-ID"]=e[i],o.attrs["PATHWAY-ID"]=r,o});t.push(...s)})}function JN(t,e,n,r){const{HOST:i,PARAMS:s,[n]:a}=r;let o;e&&(o=a==null?void 0:a[e],o&&(t=o));const l=new self.URL(t);return i&&!o&&(l.host=i),s&&Object.keys(s).sort().forEach(c=>{c&&l.searchParams.set(c,s[c])}),l.href}const RJ=/^age:\s*[\d.]+\s*$/im;class QN{constructor(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new Bg,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,e.readyState!==4&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(e,n,r){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=n,this.callbacks=r,this.loadInternal()}loadInternal(){const{config:e,context:n}=this;if(!e||!n)return;const r=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;const s=this.xhrSetup;s?Promise.resolve().then(()=>
133{if(!(this.loader!==r||this.stats.aborted))return s(r,n.url)}).catch(a=>{if(!(this.loader!==r||this.stats.aborted))return r.open("GET",n.url,!0),s(r,n.url)}).then(()=>{this.loader!==r||this.stats.aborted||this.openAndSendXhr(r,n,e)}).catch(a=>{this.callbacks.onError({code:r.status,text:a.message},n,r,i)}):this.openAndSendXhr(r,n,e)}openAndSendXhr(e,n,r){e.readyState||e.open("GET",n.url,!0);const i=n.headers,{maxTimeToFirstByteMs:s,maxLoadTimeMs:a}=r.loadPolicy;if(i)for(const o in i)e.setRequestHeader(o,i[o]);n.rangeEnd&&e.setRequestHeader("Range","bytes="+n.rangeStart+"-"+(n.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=n.responseType,self.clearTimeout(this.requestTimeout),r.timeout=s&&Te(s)?s:a,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),e.send()}readystatechange(){const{context:e,loader:n,stats:r}=this;if(!e||!n)return;const i=n.readyState,s=this.config;if(!r.aborted&&i>=2&&(r.loading.first===0&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),s.timeout!==s.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),s.timeout=s.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),s.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),i===4)){self.clearTimeout(this.requestTimeout),n.onreadystatechange=null,n.onprogress=null;const a=n.status,o=n.responseType==="text"?n.responseText:null;if(a>=200&&a<300){const f=o??n.response;if(f!=null){r.loading.end=Math.max(self.performance.now(),r.loading.first);const d=n.responseType==="arraybuffer"?f.byteLength:f.length;if(r.loaded=r.total=d,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first),!this.callbacks)return;const h=this.callbacks.onProgress;if(h&&h(r,e,f,n),!this.callbacks)return;const p={url:n.responseURL,data:f,code:a};this.callbacks.onSuccess(p,r,e,n);return}}const l=s.loadPolicy.errorRetry,c=r.retry,u={url:e.url,data:void 0,code:a};Vm(l,c,!1,u)?this.retry(l):(J.error(`${a} while loading ${e.url}`),this.callbacks.onError({code:a,text:n.statusText},e,n,r))}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,n=this.stats.retry;if(Vm(e,n,!0))this.retry(e);else{var r;J.warn(`timeout while loading ${(r=this.context)==null?void 0:r.url}`);const i=this.callbacks;i&&(this.abortInternal(),i.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:n,stats:r}=this;this.retryDelay=CS(e,r.retry),r.retry++,J.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${n==null?void 0:n.url}, retrying ${r.retry}/${e.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(e){const n=this.stats;n.loaded=e.loaded,e.lengthComputable&&(n.total=e.total)}getCacheAge(){let e=null;if(this.loader&&RJ.test(this.loader.getAllResponseHeaders())){const n=this.loader.getResponseHeader("age");e=n?parseFloat(n):null}return e}getResponseHeader(e){return this.loader&&new RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}function LJ(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch{}return!1}const CJ=/(\d+)-(\d+)\/(\d+)/;class UL{constructor(e){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=e.fetchSetup||DJ,this.controller=new self.AbortController,this.stats=new Bg}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(e,n,r){const i=this.stats;if(i.loading.start)throw new Error("Loader can only be used once.");i.loading.start=self.performance.now();const s=IJ(e,this.controller.signal),a=r.onProgress,o=e.responseType==="arraybuffer",l=o?"byteLength":"length",{maxTimeToFirstByteMs:c,maxLoadTimeMs:u}=n.loadPolicy;this.context=e,this.config=n,this.callbacks=r,this.request=this.fetchSetup(e,s),self.clearTimeout(this.requestTimeout),n.timeout=c&&Te(c)?c:u,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),r.onTimeout(i,e,this.response)},n.timeout),self.fetch(this.request).then(f=>{this.response=this.loader=f;const d=Math.max(self.performance.now(),i.loading.start);if(self.clearTimeout(this.requestTimeout),n.timeout=u,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),r.onTimeout(i,e,this.response)},u-(d-i.loading.start)),!f.ok){const{status:h,statusText:p}=f;throw new OJ(p||"fetch, bad network response",h,f)}return i.loading.first=d,i.total=PJ(f.headers)||i.total,a&&Te(n.highWaterMark)?this.loadProgressively(f,i,e,n.highWaterMark,a):o?f.arrayBuffer():e.responseType==="json"?f.json():f.text()}).then(f=>{const d=this.response;if(!d)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),i.loading.end=Math.max(self.performance.now(),i.loading.first);const h=f[l];h&&(i.loaded=i.total=h);const p={url:d.url,data:f,code:d.status};a&&!Te(n.highWaterMark)&&a(i,e,f,d),r.onSuccess(p,i,e,d)}).catch(f=>{if(self.clearTimeout(this.requestTimeout),i.aborted)return;const d=f&&f.code||0,h=f?f.message:null;r.onError({code:d,text:h},e,f?f.details:null,i)})}getCacheAge(){let e=null;if(this.response){const n=this.response.headers.get("age");e=n?parseFloat(n):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,n,r,i=0,s){const a=new _N,o=e.body.getReader(),l=()=>o.read().then(c=>{if(c.done)return a.dataLength&&s(n,r,a.flush(),e),Promise.resolve(new ArrayBuffer(0));const u=c.value,f=u.length;return n.loaded+=f,f<i||a.dataLength?(a.push(u),a.dataLength>=i&&s(n,r,a.flush(),e)):s(n,r,u,e),l()}).catch(()=>Promise.reject());return l()}}function IJ(t,e){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(Tn({},t.headers))};return t.rangeEnd&&n.headers.set("Range","bytes="+t.rangeStart+"-"+String(t.rangeEnd-1)),n}function kJ(t){const e=CJ.exec(t);if(e)return parseInt(e[2])-parseInt(e[1])+1}function PJ(t){const e=t.get("Content-Range");if(e){const r=kJ(e);if(Te(r))return r}const n=t.get("Content-Length");if(n)return parseInt(n)}
vendor: 5,438 bytes, line 133
133function DJ(t,e){return new self.Request(t.url,e)}class OJ extends Error{constructor(e,n,r){super(e),this.code=void 0,this.details=void 0,this.code=n,this.details=r}}const MJ=/\s/,NJ={newCue(t,e,n,r){const i=[];let s,a,o,l,c;const u=self.VTTCue||self.TextTrackCue;for(let d=0;d<r.rows.length;d++)if(s=r.rows[d],o=!0,l=0,c="",!s.isEmpty()){var f;for(let m=0;m<s.chars.length;m++)MJ.test(s.chars[m].uchar)&&o?l++:(c+=s.chars[m].uchar,o=!1);s.cueStartTime=e,e===n&&(n+=1e-4),l>=16?l--:l++;const h=HN(c.trim()),p=US(e,n,h);t!=null&&(f=t.cues)!=null&&f.getCueById(p)||(a=new u(e,n,h),a.id=p,a.line=d+1,a.align="left",a.position=10+Math.min(80,Math.floor(l*8/32)*10),i.push(a))}return t&&i.length&&(i.sort((d,h)=>d.line==="auto"||h.line==="auto"?0:d.line>8&&h.line>8?h.line-d.line:d.line-h.line),i.forEach(d=>fN(t,d))),i}},FJ={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},ZN=Kn(Kn({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:QN,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:u9,bufferController:p7,capLevelController:HS,errorController:QX,fpsController:G7,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:XM,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:FJ},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},$J()),{},{subtitleStreamController:u7,subtitleTrackController:d7,timelineController:U7,audioStreamController:l7,audioTrackController:c7,emeController:Gc,cmcdController:wJ,contentSteeringController:AJ});function $J(){return{cueHandler:NJ,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function BJ(t,e){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(e.liveMaxLatencyDurationCount!==void 0&&(e.liveSyncDurationCount===void 0||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(e.liveMaxLatencyDuration!==void 0&&(e.liveSyncDuration===void 0||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const n=bb(t),r=["manifest","level","frag"],i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return r.forEach(s=>{const a=`${s==="level"?"playlist":s}LoadPolicy`,o=e[a]===void 0,l=[];
133i.forEach(c=>{const u=`${s}Loading${c}`,f=e[u];if(f!==void 0&&o){l.push(u);const d=n[a].default;switch(e[a]={default:d},c){case"TimeOut":d.maxLoadTimeMs=f,d.maxTimeToFirstByteMs=f;break;case"MaxRetry":d.errorRetry.maxNumRetry=f,d.timeoutRetry.maxNumRetry=f;break;case"RetryDelay":d.errorRetry.retryDelayMs=f,d.timeoutRetry.retryDelayMs=f;break;case"MaxRetryTimeout":d.errorRetry.maxRetryDelayMs=f,d.timeoutRetry.maxRetryDelayMs=f;break}}}),l.length&&J.warn(`hls.js config: "${l.join('", "')}" setting(s) are deprecated, use "${a}": ${JSON.stringify(e[a])}`)}),Kn(Kn({},n),e)}function bb(t){return t&&typeof t=="object"?Array.isArray(t)?t.map(bb):Object.keys(t).reduce((e,n)=>(e[n]=bb(t[n]),e),{}):t}function UJ(t){const e=t.loader;e!==UL&&e!==QN?(J.log("[config]: Custom loader detected, cannot enable progressive streaming"),t.progressive=!1):LJ()&&(t.loader=UL,t.progressive=!0,t.enableSoftwareAES=!0,J.log("[config]: Progressive streaming enabled, using FetchLoader"))}let Qv;class HJ extends IS{constructor(e,n){super(e,"[level-controller]"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=n,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(I.LEVEL_LOADED,this.onLevelLoaded,this),e.on(I.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(I.FRAG_BUFFERED,this.onFragBuffered,this),e.on(I.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(I.LEVEL_LOADED,this.onLevelLoaded,this),e.off(I.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(I.FRAG_BUFFERED,this.onFragBuffered,this),e.off(I.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(n=>{n.loadError=0,n.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(e,n){this.resetLevels()}onManifestLoaded(e,n){const r=this.hls.config.preferManagedMediaSource,i=[],s={},a={};let o=!1,l=!1,c=!1;n.levels.forEach(u=>{var f,d;const h=u.attrs;let{audioCodec:p,videoCodec:m}=u;((f=p)==null?void 0:f.indexOf("mp4a.40.34"))!==-1&&(Qv||(Qv=/chrome|firefox/i.test(navigator.userAgent)),Qv&&(u.audioCodec=p=void 0)),p&&(u.audioCodec=p=Hm(p,r)),((d=m)==null?void 0:d.indexOf("avc1"))===0&&(m=u.videoCodec=RX(m));const{width:g,height:_,unknownCodecs:v}=u;if(o||(o=!!(g&&_)),l||(l=!!m),c||(c=!!p),v!=null&&v.length||p&&!Fv(p,"audio",r)||m&&!Fv(m,"video",r))return;const{CODECS:y,"FRAME-RATE":E,"HDCP-LEVEL":b,"PATHWAY-ID":T,RESOLUTION:S,"VIDEO-RANGE":A}=h,x=`${`${T||"."}-`}${u.bitrate}-${S}-${E}-${y}-${A}-${b}`;if(s[x])if(s[x].uri!==u.url&&!u.attrs["PATHWAY-ID"]){const L=a[x]+=1;u.attrs["PATHWAY-ID"]=new Array(L+1).join(".");const R=new fu(u);s[x]=R,i.push(R)}else s[x].addGroupId("audio",h.AUDIO),s[x].addGroupId("text",h.SUBTITLES);else{const L=new fu(u);s[x]=L,a[x]=1,i.push(L)}}),this.filterAndSortMediaOptions(i,n,o,l,c)}filterAndSortMediaOptions(e,n,r,i,s){let a=[],o=[],l=e;if((r||i)&&s&&(l=l.filter(({videoCodec:p,videoRange:m,width:g,height:_})=>(!!p||!!(g&&_))&&UX(m))),l.length===0){Promise.resolve().then(()=>{if(this.hls){n.levels.length&&this.warn(`One or more CODECS in variant not supported: ${JSON.stringify(n.levels[0].attrs)}`);const p=new Error("no level with compatible codecs found in manifest");this.hls.trigger(I.ERROR,{type:Fe.MEDIA_ERROR,details:ne.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:n.url,error:p,reason:p.message})}});return}if(n.audioTracks){const{preferManagedMediaSource:p}=this.hls.config;a=n.audioTracks.filter(m=>!m.audioCodec||Fv(m.audioCodec,"audio",p)),HL(a)}n.subtitles&&(o=n.subtitles,HL(o));const c=l.slice(0);l.sort((p,m)=>{if(p.attrs["HDCP-LEVEL"]!==m.attrs["HDCP-LEVEL"])return(p.attrs["HDCP-LEVEL"]||"")>(m.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&p.height!==m.height)return p.height-m.height;if(p.frameRate!==m.frameRate)return p.frameRate-m.frameRate;if(p.videoRange!==m.videoRange)return Gm.indexOf(p.videoRange)-Gm.indexOf(m.videoRange);
133if(p.videoCodec!==m.videoCodec){const g=zR(p.videoCodec),_=zR(m.videoCodec);if(g!==_)return _-g}if(p.uri===m.uri&&p.codecSet!==m.codecSet){const g=Um(p.codecSet),_=Um(m.codecSet);if(g!==_)return _-g}return p.averageBitrate!==m.averageBitrate?p.averageBitrate-m.averageBitrate:0});let u=c[0];if(this.steering&&(l=this.steering.filterParsedLevels(l),l.length!==c.length)){for(let p=0;p<c.length;p++)if(c[p].pathwayId===l[0].pathwayId){u=c[p];break}}this._levels=l;for(let p=0;p<l.length;p++)if(l[p]===u){var f;this._firstLevel=p;const m=u.bitrate,g=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${l.length} level(s) found, first bitrate: ${m}`),((f=this.hls.userConfig)==null?void 0:f.abrEwmaDefaultEstimate)===void 0){const _=Math.min(m,this.hls.config.abrEwmaDefaultEstimateMax);_>g&&g===ZN.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=_)}break}const d=s&&!i,h={levels:l,audioTracks:a,subtitleTracks:o,sessionData:n.sessionData,sessionKeys:n.sessionKeys,firstLevel:this._firstLevel,stats:n.stats,audio:s,video:i,altAudio:!d&&a.some(p=>!!p.url)};this.hls.trigger(I.MANIFEST_PARSED,h),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}get levels(){return this._levels.length===0?null:this._levels}get level(){return this.currentLevelIndex}set level(e){const n=this._levels;if(n.length===0)return;if(e<0||e>=n.length){const u=new Error("invalid level idx"),f=e<0;if(this.hls.trigger(I.ERROR,{type:Fe.OTHER_ERROR,details:ne.LEVEL_SWITCH_ERROR,level:e,fatal:f,error:u,reason:u.message}),f)return;e=Math.min(e,n.length-1)}const r=this.currentLevelIndex,i=this.currentLevel,s=i?i.attrs["PATHWAY-ID"]:void 0,a=n[e],o=a.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=a,r===e&&a.details&&i&&s===o)return;this.log(`Switching to level ${e} (${a.height?a.height+"p ":""}${a.videoRange?a.videoRange+" ":""}${a.codecSet?a.codecSet+" ":""}@${a.bitrate})${o?" with Pathway "+o:""} from level ${r}${s?" with Pathway "+s:""}`);const l={level:e,attrs:a.attrs,details:a.details,bitrate:a.bitrate,averageBitrate:a.averageBitrate,maxBitrate:a.maxBitrate,realBitrate:a.realBitrate,width:a.width,height:a.height,codecSet:a.codecSet,audioCodec:a.audioCodec,videoCodec:a.videoCodec,audioGroups:a.audioGroups,subtitleGroups:a.subtitleGroups,loaded:a.loaded,loadError:a.loadError,fragmentError:a.fragmentError,name:a.name,id:a.id,uri:a.uri,url:a.url,urlId:0,audioGroupIds:a.audioGroupIds,textGroupIds:a.textGroupIds};this.hls.trigger(I.LEVEL_SWITCHING,l);const c=a.details;if(!c||c.live){const u=this.switchParams(a.uri,i==null?void 0:i.details,c);this.loadPlaylist(u)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,this._startLevel===void 0&&(this._startLevel=e),e!==-1&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(this._startLevel===void 0){const e=this.hls.config.startLevel;return e!==void 0?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}onError(e,n){n.fatal||!n.context||n.context.type===dt.LEVEL&&n.context.level===this.level&&this.checkRetry(n)}onFragBuffered(e,{frag:n}){if(n!==void 0&&n.type===De.MAIN){const r=n.elementaryStreams;if(!Object.keys(r).some(s=>!!r[s]))return;const i=this._levels[n.level];i!=null&&i.loadError&&(this.log(`Resetting level error count of ${i.loadError} on frag buffered`),i.loadError=0)}}onLevelLoaded(e,n){var r;const{level:i,details:s}=n,a=this._levels[i];if(!a){var o;this.warn(`Invalid level index ${i}`),(o=n.deliveryDirectives)!=null&&o.skip&&(s.deltaUpdateFailed=!0);return}i===this.currentLevelIndex?(a.fragmentError===0&&(a.loadError=0),this.playlistLoaded(i,n,a.details)):(r=n.deliveryDirectives)!=null&&r.skip&&(s.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist();const n=this.currentLevelIndex,r=this.currentLevel;if(r&&this.shouldLoadPlaylist(r)){let i=r.uri;if(e)try{i=e.addDirectives(i)}catch(a){this.warn(`Could not construct new URL with HLS Delivery Directives: ${a}`)}const s=r.attrs["PATHWAY-ID"];this.log(`Loading level index ${n}${(e==null?void 0:e.msn)!==void 0?" at sn "+e.msn+" part "+e.part:""} with${s?" Pathway "+s:""} ${i}`),this.clearTimer(),this.hls.trigger(I.LEVEL_LOADING,{url:i,level:n,pathwayId:r.attrs["PATHWAY-ID"],id:0,deliveryDirectives:e||null})}}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=e)}removeLevel(e){var n;const r=this._levels.filter((i,s)=>s!==e?!0:(this.steering&&this.steering.removeLevel(i),i===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,i.details&&i.details.fragments.forEac
vendor: 4,441 bytes, line 133
133h(a=>a.level=-1)),!1));mN(r),this._levels=r,this.currentLevelIndex>-1&&(n=this.currentLevel)!=null&&n.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(I.LEVELS_UPDATED,{levels:r})}onLevelsUpdated(e,{levels:n}){this._levels=n}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:n,maxHdcpLevel:r}=this.hls;this._maxAutoLevel!==n&&(this._maxAutoLevel=n,this.hls.trigger(I.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:n,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function HL(t){const e={};t.forEach(n=>{const r=n.groupId||"";n.id=e[r]=e[r]||0,e[r]++})}class GJ{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const r in this.keyUriToKeyInfo){const i=this.keyUriToKeyInfo[r].loader;if(i){var n;if(e&&e!==((n=i.context)==null?void 0:n.frag.type))return;i.abort()}}}detach(){for(const e in this.keyUriToKeyInfo){const n=this.keyUriToKeyInfo[e];(n.mediaKeySessionContext||n.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyUriToKeyInfo){const n=this.keyUriToKeyInfo[e].loader;n&&n.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(e,n=ne.KEY_LOAD_ERROR,r,i,s){return new Xs({type:Fe.NETWORK_ERROR,details:n,fatal:!1,frag:e,response:s,error:r,networkDetails:i})}loadClear(e,n){if(this.emeController&&this.config.emeEnabled){const{sn:r,cc:i}=e;for(let s=0;s<n.length;s++){const a=n[s];if(i<=a.cc&&(r==="initSegment"||a.sn==="initSegment"||r<a.sn)){this.emeController.selectKeySystemFormat(a).then(o=>{a.setKeyFormat(o)});break}}}}load(e){return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then(n=>this.loadInternal(e,n)):this.loadInternal(e)}loadInternal(e,n){var r,i;n&&e.setKeyFormat(n);const s=e.decryptdata;if(!s){const c=new Error(n?`Expected frag.decryptdata to be defined after setting format ${n}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,ne.KEY_LOAD_ERROR,c))}const a=s.uri;if(!a)return Promise.reject(this.createKeyLoadError(e,ne.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${a}"`)));let o=this.keyUriToKeyInfo[a];if((r=o)!=null&&r.decryptdata.key)return s.key=o.decryptdata.key,Promise.resolve({frag:e,keyInfo:o});if((i=o)!=null&&i.keyLoadPromise){var l;switch((l=o.mediaKeySessionContext)==null?void 0:l.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return o.keyLoadPromise.then(c=>(s.key=c.keyInfo.decryptdata.key,{frag:e,keyInfo:o}))}}switch(o=this.keyUriToKeyInfo[a]={decryptdata:s,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},s.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return s.keyFormat==="identity"?this.loadKeyHTTP(o,e):this.loadKeyEME(o,e);case"AES-128":return this.loadKeyHTTP(o,e);default:return Promise.reject(this.createKeyLoadError(e,ne.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${s.method}"`)))}}loadKeyEME(e,n){const r={frag:n,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const i=this.emeController.loadKey(r);if(i)return(e.keyLoadPromise=i.then(s=>(e.mediaKeySessionContext=s,r))).catch(s=>{throw e.keyLoadPromise=null,s})}return Promise.resolve(r)}loadKeyHTTP(e,n){const r=this.config,i=r.loader,s=new i(r);return n.keyLoader=e.loader=s,e.keyLoadPromise=new Promise((a,o)=>{const l={keyInfo:e,frag:n,responseType:"arraybuffer",url:e.decryptdata.uri},c=r.keyLoadPolicy.default,u={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},f={onSuccess:(d,h,p,m)=>{const{frag:g,keyInfo:_,url:v}=p;if(!g.decryptdata||_!==this.keyUriToKeyInfo[v])return o(this.createKeyLoadError(g,ne.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),m));_.decryptdata.key=g.decryptdata.key=new Uint8Array(d.data),g.keyLoader=null,_.loader=null,a({frag:g,keyInfo:_})},onError:(d,h,p,m)=>{this.resetLoader(h),o(this.createKeyLoadError(n,ne.KEY_LOAD_ERROR,new Error(`HTTP Error ${d.code} loading key ${d.text}`),p,Kn({url:l.url,data:void 0},d)))},onTimeout:(d,h,p)=>{this.resetLoader(h),o(this.createKeyLoadError(n,ne.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),p))},onAbort:(d,h,p)=>{this.resetLoader(h),o(this.createKeyLoadError(n,ne.INTERNAL_ABORTED,new Error("key loading aborted"),p))}};s.load(l,u,f)})}
133resetLoader(e){const{frag:n,keyInfo:r,url:i}=e,s=r.loader;n.keyLoader===s&&(n.keyLoader=null,r.loader=null),delete this.keyUriToKeyInfo[i],s&&s.destroy()}}function eF(){return self.SourceBuffer||self.WebKitSourceBuffer}function tF(){if(!Ml())return!1;const e=eF();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function jJ(){if(!tF())return!1;const t=Ml();return typeof(t==null?void 0:t.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(e=>t.isTypeSupported(Ld(e,"video")))||["mp4a.40.2","fLaC"].some(e=>t.isTypeSupported(Ld(e,"audio"))))}function VJ(){var t;const e=eF();return typeof(e==null||(t=e.prototype)==null?void 0:t.changeType)=="function"}const qJ=250,wp=2,KJ=.1,WJ=.05;class zJ{constructor(e,n,r,i){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=e,this.media=n,this.fragmentTracker=r,this.hls=i}destroy(){this.media=null,this.hls=this.fragmentTracker=null}poll(e,n){const{config:r,media:i,stalled:s}=this;if(i===null)return;const{currentTime:a,seeking:o}=i,l=this.seeking&&!o,c=!this.seeking&&o;if(this.seeking=o,a!==e){if(this.moved=!0,o||(this.nudgeRetry=0),s!==null){if(this.stallReported){const g=self.performance.now()-s;J.warn(`playback not stuck anymore @${a}, after ${Math.round(g)}ms`),this.stallReported=!1}this.stalled=null}return}if(c||l){this.stalled=null;return}if(i.paused&&!o||i.ended||i.playbackRate===0||!$t.getBuffered(i).length){this.nudgeRetry=0;return}const u=$t.bufferInfo(i,a,0),f=u.nextStart||0;if(o){const g=u.len>wp,_=!f||n&&n.start<=a||f-a>wp&&!this.fragmentTracker.getPartialFragment(a);if(g||_)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var d;if(!(u.len>0)&&!f)return;const _=Math.max(f,u.start||0)-a,v=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,E=(v==null||(d=v.details)==null?void 0:d.live)?v.details.targetduration*2:wp,b=this.fragmentTracker.getPartialFragment(a);if(_>0&&(_<=E||b)){i.paused||this._trySkipBufferHole(b);return}}const h=self.performance.now();if(s===null){this.stalled=h;return}const p=h-s;if(!o&&p>=qJ&&(this._reportStall(u),!this.media))return;const m=$t.bufferInfo(i,a,r.maxBufferHole);this._tryFixBufferStall(m,p)}_tryFixBufferStall(e,n){const{config:r,fragmentTracker:i,media:s}=this;if(s===null)return;const a=s.currentTime,o=i.getPartialFragment(a);o&&(this._trySkipBufferHole(o)||!this.media)||(e.len>r.maxBufferHole||e.nextStart&&e.nextStart-a<r.maxBufferHole)&&n>r.highBufferWatchdogPeriod*1e3&&(J.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}_reportStall(e){const{hls:n,media:r,stallReported:i}=this;if(!i&&r){this.stallReported=!0;const s=new Error(`Playback stalling at @${r.currentTime} due to low buffer (${JSON.stringify(e)})`);J.warn(s.message),n.trigger(I.ERROR,{type:Fe.MEDIA_ERROR,details:ne.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:e.len})}}_trySkipBufferHole(e){const{config:n,hls:r,media:i}=this;if(i===null)return 0;const s=i.currentTime,a=$t.bufferInfo(i,s,0),o=s<a.start?a.start:a.nextStart;if(o){const l=a.len<=n.maxBufferHole,c=a.len>0&&a.len<1&&i.readyState<3,u=o-s;if(u>0&&(l||c)){if(u>n.maxBufferHole){const{fragmentTracker:d}=this;let h=!1;if(s===0){const p=d.getAppendedFrag(0,De.MAIN);p&&o<p.end&&(h=!0)}if(!h){const p=e||d.getAppendedFrag(s,De.MAIN);if(p){let m=!1,g=p.end;for(;g<o;){const _=d.getPartialFragment(g);if(_)g+=_.duration;else{m=!0;break}}if(m)return 0}}}const f=Math.max(o+WJ,s+KJ);if(J.warn(`skipping hole, adjusting currentTime from ${s} to ${f}`),this.moved=!0,this.stalled=null,i.currentTime=f,e&&!e.gap){const d=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${f}`);r.trigger(I.ERROR,{type:Fe.MEDIA_ERROR,details:ne.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:d,reason:d.message,frag:e})}return f}}return 0}_tryNudgeBuffer(){const{config:e,hls:n,media:r,nudgeRetry:i}=this;if(r===null)return;const s=r.currentTime;if(this.nudgeRetry++,i<e.nudgeMaxRetry){const a=s+(i+1)*e.nudgeOffset,o=new Error(`Nudging 'currentTime' from ${s} to ${a}`);J.warn(o.message),r.currentTime=a,n.trigger(I.ERROR,{type:Fe.MEDIA_ERROR,details:ne.BUFFER_NUDGE_ON_STALL,error:o,fatal:!1})}else{const a=new Error(`Playhead still not moving while enough data buffered @${s} after ${e.nudgeMaxRetry} nudges`);J.error(a.message),n.trigger(I.ERROR,{type:Fe.MEDIA_ERROR,details:ne.BUFFER_STALLED_ERROR,error:a,fatal:!0})}}}const YJ=100;class XJ extends DS{constructor(e,n,r){super(e,n,r,"[stream-controller]",De.MAIN),this.audioCodecSwap=!1,this.gapController=null,this.level=-1,this._forceStartLoad=!1,this.altAudio=!1,this.audioOnly=!1,this.fragPlaying=null,this.onvplaying=null,this.onvseeked=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this._registerListeners()}_registerListeners(){const{hls:e}=this;
133e.on(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(I.MANIFEST_LOADING,this.onManifestLoading,this),e.on(I.MANIFEST_PARSED,this.onManifestParsed,this),e.on(I.LEVEL_LOADING,this.onLevelLoading,this),e.on(I.LEVEL_LOADED,this.onLevelLoaded,this),e.on(I.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(I.ERROR,this.onError,this),e.on(I.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(I.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(I.BUFFER_CREATED,this.onBufferCreated,this),e.on(I.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(I.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(I.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(I.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(I.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(I.MANIFEST_LOADING,this.onManifestLoading,this),e.off(I.MANIFEST_PARSED,this.onManifestParsed,this),e.off(I.LEVEL_LOADED,this.onLevelLoaded,this),e.off(I.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(I.ERROR,this.onError,this),e.off(I.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(I.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(I.BUFFER_CREATED,this.onBufferCreated,this),e.off(I.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(I.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(I.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying()}startLoad(e){if(this.levels){const{lastCurrentTime:n,hls:r}=this;if(this.stopLoad(),this.setInterval(YJ),this.level=-1,!this.startFragRequested){let i=r.startLevel;i===-1&&(r.config.testBandwidth&&this.levels.length>1?(i=0,this.bitrateTest=!0):i=r.firstAutoLevel),r.nextLoadLevel=i,this.level=r.loadLevel,this.loadedmetadata=!1}n>0&&e===-1&&(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n),this.state=le.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this._forceStartLoad=!0,this.state=le.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case le.WAITING_LEVEL:{const{levels:n,level:r}=this,i=n==null?void 0:n[r],s=i==null?void 0:i.details;if(s&&(!s.live||this.levelLastLoaded===i)){if(this.waitForCdnTuneIn(s))break;this.state=le.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=le.IDLE;break}break}case le.FRAG_LOADING_WAITING_RETRY:{var e;const n=self.performance.now(),r=this.retryDate;if(!r||n>=r||(e=this.media)!=null&&e.seeking){const{levels:i,level:s}=this,a=i==null?void 0:i[s];this.resetStartWhenNotLoaded(a||null),this.state=le.IDLE}}break}this.state===le.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){super.onTickEnd(),this.checkBuffer(),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:n,levels:r,media:i}=this;if(n===null||!i&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const s=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(r!=null&&r[s]))return;const a=r[s],o=this.getMainFwdBufferInfo();if(o===null)return;const l=this.getLevelDetails();if(l&&this._streamEnded(o,l)){const m={};this.altAudio&&(m.type="video"),this.hls.trigger(I.BUFFER_EOS,m),this.state=le.ENDED;return}if(!this.buffering)return;e.loadLevel!==s&&e.manualLevel===-1&&this.log(`Adapting to level ${s} from level ${this.level}`),this.level=e.nextLoadLevel=s;const c=a.details;if(!c||this.state===le.WAITING_LEVEL||c.live&&this.levelLastLoaded!==a){this.level=s,this.state=le.WAITING_LEVEL;return}const u=o.len,f=this.getMaxBufferLength(a.maxBitrate);if(u>=f)return;this.backtrackFragment&&this.backtrackFragment.start>o.end&&(this.backtrackFragment=null);const d=this.backtrackFragment?this.backtrackFragment.start:o.end;let h=this.getNextFragment(d,c);if(this.couldBacktrack&&!this.fragPrevious&&h&&h.sn!=="initSegment"&&this.fragmentTracker.getState(h)!==Hn.OK){var p;const g=((p=this.backtrackFragment)!=null?p:h).sn-c.startSN,_=c.fragments[g-1];_&&h.cc===_.cc&&(h=_,this.fragmentTracker.removeFragment(_))}else this.backtrackFragment&&o.len&&(this.backtrackFragment=null);if(h&&this.isLoopLoading(h,d)){if(!h.gap){const g=this.audioOnly&&!this.altAudio?wt.AUDIO:wt.VIDEO,_=(g===wt.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;_&&this.afterBufferFlushed(_,g,De.MAIN)}h=this.getNextFragmentLoopLoading(h,c,o,De.MAIN,f)}h&&(h.initSegment&&!h.initSegment.data&&!this.bitrateTest&&(h=h.initSegment),this.loadFragment(h,a,d))}loadFragment(e,n,r){const i=this.fragmentTracker.getState(e);this.fragCurrent=e,i===Hn.NOT_LOADED||i===Hn.PARTIAL?e.sn==="initSegment"?this._loadInitSegment(e,n):this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,n)):(this.startFragRequested=!0,super.loadFragment(e,n,r)):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,De.MAIN)}followingBufferedFrag(e){return e?this.getBufferedFrag(e.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:e,media:n}=this;if(n!=null&&n.readyState){let r;const i=this.getAppendedFrag(n.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);const s=this.getLevelDetails();if(s!=null&&s.live){const o=this.getMainFwdBufferInfo();if(!o||o.len<s.targetduration*2)return}if(!n.paused&&e){const o=this.hls.nextLoadLevel,l=e[o],c=this.fragLastKbps;
133c&&this.fragCurrent?r=this.fragCurrent.duration*l.maxBitrate/(1e3*c)+1:r=0}else r=0;const a=this.getBufferedFrag(n.currentTime+r);if(a){const o=this.followingBufferedFrag(a);if(o){this.abortCurrentFrag();const l=o.maxStartPTS?o.maxStartPTS:o.start,c=o.duration,u=Math.max(a.end,l+Math.min(Math.max(c-this.config.maxFragLookUpTolerance,c*(this.couldBacktrack?.5:.125)),c*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(u,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){const e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case le.KEY_LOADING:case le.FRAG_LOADING:case le.FRAG_LOADING_WAITING_RETRY:case le.PARSING:case le.PARSED:this.state=le.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,n){super.flushMainBuffer(e,n,this.altAudio?"video":null)}onMediaAttached(e,n){super.onMediaAttached(e,n);const r=n.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),r.addEventListener("playing",this.onvplaying),r.addEventListener("seeked",this.onvseeked),this.gapController=new zJ(this.config,r,this.fragmentTracker,this.hls)}onMediaDetaching(){const{media:e}=this;e&&this.onvplaying&&this.onvseeked&&(e.removeEventListener("playing",this.onvplaying),e.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),super.onMediaDetaching()}onMediaPlaying(){this.tick()}onMediaSeeked(){const e=this.media,n=e?e.currentTime:null;Te(n)&&this.log(`Media seeked to ${n.toFixed(3)}`);const r=this.getMainFwdBufferInfo();if(r===null||r.len===0){this.warn(`Main forward buffer length on "seeked" event ${r?r.len:"empty"})`);return}this.tick()}onManifestLoading(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(I.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=this.fragLastKbps=0,this.levels=this.fragPlaying=this.backtrackFragment=this.levelLastLoaded=null,this.altAudio=this.audioOnly=this.startFragRequested=!1}onManifestParsed(e,n){let r=!1,i=!1;n.levels.forEach(s=>{const a=s.audioCodec;a&&(r=r||a.indexOf("mp4a.40.2")!==-1,i=i||a.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=r&&i&&!VJ(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=n.levels,this.startFragRequested=!1}onLevelLoading(e,n){const{levels:r}=this;if(!r||this.state!==le.IDLE)return;const i=r[n.level];(!i.details||i.details.live&&this.levelLastLoaded!==i||this.waitForCdnTuneIn(i.details))&&(this.state=le.WAITING_LEVEL)}onLevelLoaded(e,n){var r;const{levels:i}=this,s=n.level,a=n.details,o=a.totalduration;if(!i){this.warn(`Levels were reset while loading level ${s}`);return}this.log(`Level ${s} loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""}, cc [${a.startCC}, ${a.endCC}] duration:${o}`);const l=i[s],c=this.fragCurrent;c&&(this.state===le.FRAG_LOADING||this.state===le.FRAG_LOADING_WAITING_RETRY)&&c.level!==n.level&&c.loader&&this.abortCurrentFrag();let u=0;if(a.live||(r=l.details)!=null&&r.live){var f;if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;u=this.alignPlaylists(a,l.details,(f=this.levelLastLoaded)==null?void 0:f.details)}if(l.details=a,this.levelLastLoaded=l,this.hls.trigger(I.LEVEL_UPDATED,{details:a,level:s}),this.state===le.WAITING_LEVEL){if(this.waitForCdnTuneIn(a))return;this.state=le.IDLE}this.startFragRequested?a.live&&this.synchronizeToLiveEdge(a):this.setStartPosition(a,u),this.tick()}_handleFragmentLoadProgress(e){var n;const{frag:r,part:i,payload:s}=e,{levels:a}=this;if(!a){this.warn(`Levels were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const o=a[r.level],l=o.details;if(!l){this.warn(`Dropping fragment ${r.sn} of level ${r.level} after level details were reset`),this.fragmentTracker.removeFragment(r);return}const c=o.videoCodec,u=l.PTSKnown||!l.live,f=(n=r.initSegment)==null?void 0:n.data,d=this._getAudioCodec(o),h=this.transmuxer=this.transmuxer||new MN(this.hls,De.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),p=i?i.index:-1,m=p!==-1,g=new kS(r.level,r.sn,r.stats.chunkCount,s.byteLength,p,m),_=this.initPTS[r.cc];h.push(s,f,d,c,r,i,l.totalduration,u,g,_)}onAudioTrackSwitching(e,n){const r=this.altAudio;if(!!!n.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const a=this.fragCurrent;a&&(this.log("Switching to main audio track, cancel main fragment load"),a.abortRequests(),this.fragmentTracker.removeFragment(a)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();const s=this.hls;r&&(s.trigger(I.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),s.trigger(I.AUDIO_TRACK_SWITCHED,n)}}onAudioTrackSwitched(e,n){const r=n.id,i=!!this.hls.audioTracks[r].url;if(i){const s=this.videoBuffer;s&&this.mediaBuffer!==s&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=s)}this.altAudio=i,this.tick()}onBufferCreated(e,n){const r=n.tracks;let i,s,a=!1;
133for(const o in r){const l=r[o];if(l.id==="main"){if(s=o,i=l,o==="video"){const c=r[o];c&&(this.videoBuffer=c.buffer)}}else a=!0}a&&i?(this.log(`Alternate track found, use ${s}.buffered to schedule main fragment loading`),this.mediaBuffer=i.buffer):this.mediaBuffer=this.media}onFragBuffered(e,n){const{frag:r,part:i}=n;if(r&&r.type!==De.MAIN)return;if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${i?" p: "+i.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}`),this.state===le.PARSED&&(this.state=le.IDLE);return}const s=i?i.stats:r.stats;this.fragLastKbps=Math.round(8*s.total/(s.buffering.end-s.loading.first)),r.sn!=="initSegment"&&(this.fragPrevious=r),this.fragBufferedComplete(r,i)}onError(e,n){var r;if(n.fatal){this.state=le.ERROR;return}switch(n.details){case ne.FRAG_GAP:case ne.FRAG_PARSING_ERROR:case ne.FRAG_DECRYPT_ERROR:case ne.FRAG_LOAD_ERROR:case ne.FRAG_LOAD_TIMEOUT:case ne.KEY_LOAD_ERROR:case ne.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(De.MAIN,n);break;case ne.LEVEL_LOAD_ERROR:case ne.LEVEL_LOAD_TIMEOUT:case ne.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===le.WAITING_LEVEL&&((r=n.context)==null?void 0:r.type)===dt.LEVEL&&(this.state=le.IDLE);break;case ne.BUFFER_APPEND_ERROR:case ne.BUFFER_FULL_ERROR:if(!n.parent||n.parent!=="main")return;if(n.details===ne.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(n)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case ne.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}checkBuffer(){const{media:e,gapController:n}=this;if(!(!e||!n||!e.readyState)){if(this.loadedmetadata||!$t.getBuffered(e).length){const r=this.state!==le.IDLE?this.fragCurrent:null;n.poll(this.lastCurrentTime,r)}this.lastCurrentTime=e.currentTime}}onFragLoadEmergencyAborted(){this.state=le.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(e,{type:n}){if(n!==wt.AUDIO||this.audioOnly&&!this.altAudio){const r=(n===wt.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(r,n,De.MAIN),this.tick()}}onLevelsUpdated(e,n){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),this.levels=n.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const n=e.currentTime;let r=this.startPosition;if(r>=0&&n<r){if(e.seeking){this.log(`could not seek to ${r}, already seeking at ${n}`);return}const i=$t.getBuffered(e),a=(i.length?i.start(0):0)-r;a>0&&(a<this.config.maxBufferHole||a<this.config.maxFragLookUpTolerance)&&(this.log(`adjusting start position by ${a} to match buffer start`),r+=a,this.startPosition=r),this.log(`seek to target start position ${r} from current time ${n}`),e.currentTime=r}}_getAudioCodec(e){let n=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&n&&(this.log("Swapping audio codec"),n.indexOf("mp4a.40.5")!==-1?n="mp4a.40.2":n="mp4a.40.5"),n}_loadBitrateTestFrag(e,n){e.bitrateTest=!0,this._doFragLoad(e,n).then(r=>{const{hls:i}=this;if(!r||this.fragContextChanged(e))return;n.fragmentError=0,this.state=le.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const s=e.stats;s.parsing.start=s.parsing.end=s.buffering.start=s.buffering.end=self.performance.now(),i.trigger(I.FRAG_LOADED,r),e.bitrateTest=!1})}_handleTransmuxComplete(e){var n;const r="main",{hls:i}=this,{remuxResult:s,chunkMeta:a}=e,o=this.getCurrentContext(a);if(!o){this.resetWhenMissingContext(a);return}const{frag:l,part:c,level:u}=o,{video:f,text:d,id3:h,initSegment:p}=s,{details:m}=u,g=this.altAudio?void 0:s.audio;if(this.fragContextChanged(l)){this.fragmentTracker.removeFragment(l);return}if(this.state=le.PARSING,p){if(p!=null&&p.tracks){const y=l.initSegment||l;this._bufferInitSegment(u,p.tracks,y,a),i.trigger(I.FRAG_PARSING_INIT_SEGMENT,{frag:y,id:r,tracks:p.tracks})}const _=p.initPTS,v=p.timescale;Te(_)&&(this.initPTS[l.cc]={baseTime:_,timescale:v},i.trigger(I.INIT_PTS_FOUND,{frag:l,id:r,initPTS:_,timescale:v}))}if(f&&m&&l.sn!=="initSegment"){const _=m.fragments[l.sn-1-m.startSN],v=l.sn===m.startSN,y=!_||l.cc>_.cc;if(s.independent!==!1){const{startPTS:E,endPTS:b,startDTS:T,endDTS:S}=f;if(c)c.elementaryStreams[f.type]={startPTS:E,endPTS:b,startDTS:T,endDTS:S};else if(f.firstKeyFrame&&f.independent&&a.id===1&&!y&&(this.couldBacktrack=!0),f.dropped&&f.independent){const A=this.getMainFwdBufferInfo(),w=(A?A.end:this.getLoadPosition())+this.config.maxBufferHole,x=f.firstKeyFramePTS?f.firstKeyFramePTS:E;if(!v&&w<x-this.config.maxBufferHole&&!y){this.backtrack(l);return}
133else y&&(l.gap=!0);l.setElementaryStreamInfo(f.type,l.start,b,l.start,S,!0)}else v&&E>wp&&(l.gap=!0);l.setElementaryStreamInfo(f.type,E,b,T,S),this.backtrackFragment&&(this.backtrackFragment=l),this.bufferFragmentData(f,l,c,a,v||y)}else if(v||y)l.gap=!0;else{this.backtrack(l);return}}if(g){const{startPTS:_,endPTS:v,startDTS:y,endDTS:E}=g;c&&(c.elementaryStreams[wt.AUDIO]={startPTS:_,endPTS:v,startDTS:y,endDTS:E}),l.setElementaryStreamInfo(wt.AUDIO,_,v,y,E),this.bufferFragmentData(g,l,c,a)}if(m&&h!=null&&(n=h.samples)!=null&&n.length){const _={id:r,frag:l,details:m,samples:h.samples};i.trigger(I.FRAG_PARSING_METADATA,_)}if(m&&d){const _={id:r,frag:l,details:m,samples:d.samples};i.trigger(I.FRAG_PARSING_USERDATA,_)}}_bufferInitSegment(e,n,r,i){if(this.state!==le.PARSING)return;this.audioOnly=!!n.audio&&!n.video,this.altAudio&&!this.audioOnly&&delete n.audio;const{audio:s,video:a,audiovideo:o}=n;if(s){let l=e.audioCodec;const c=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){l&&(l.indexOf("mp4a.40.5")!==-1?l="mp4a.40.2":l="mp4a.40.5");const u=s.metadata;u&&"channelCount"in u&&(u.channelCount||1)!==1&&c.indexOf("firefox")===-1&&(l="mp4a.40.5")}l&&l.indexOf("mp4a.40.5")!==-1&&c.indexOf("android")!==-1&&s.container!=="audio/mpeg"&&(l="mp4a.40.2",this.log(`Android: force audio codec to ${l}`)),e.audioCodec&&e.audioCodec!==l&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${l}"`),s.levelCodec=l,s.id="main",this.log(`Init audio buffer, container:${s.container}, codecs[selected/level/parsed]=[${l||""}/${e.audioCodec||""}/${s.codec}]`)}a&&(a.levelCodec=e.videoCodec,a.id="main",this.log(`Init video buffer, container:${a.container}, codecs[level/parsed]=[${e.videoCodec||""}/${a.codec}]`)),o&&this.log(`Init audiovideo buffer, container:${o.container}, codecs[level/parsed]=[${e.codecs}/${o.codec}]`),this.hls.trigger(I.BUFFER_CODECS,n),Object.keys(n).forEach(l=>{const u=n[l].initSegment;u!=null&&u.byteLength&&this.hls.trigger(I.BUFFER_APPENDING,{type:l,data:u,frag:r,part:null,chunkMeta:i,parent:r.type})}),this.tickImmediate()}getMainFwdBufferInfo(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,De.MAIN)}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=le.IDLE}checkFragmentChanged(){const e=this.media;let n=null;if(e&&e.readyState>1&&e.seeking===!1){const r=e.currentTime;if($t.isBuffered(e,r)?n=this.getAppendedFrag(r):$t.isBuffered(e,r+.1)&&(n=this.getAppendedFrag(r+.1)),n){this.backtrackFragment=null;const i=this.fragPlaying,s=n.level;(!i||n.sn!==i.sn||i.level!==s)&&(this.fragPlaying=n,this.hls.trigger(I.FRAG_CHANGED,{frag:n}),(!i||i.level!==s)&&this.hls.trigger(I.LEVEL_SWITCHED,{level:s}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){const e=this.media;return e?this.fragPlaying||this.getAppendedFrag(e.currentTime):null}get currentProgramDateTime(){const e=this.media;if(e){const n=e.currentTime,r=this.currentFrag;if(r&&Te(n)&&Te(r.programDateTime)){const i=r.programDateTime+(n-r.start)*1e3;return new Date(i)}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class tl{static get version(){return"1.5.19"}static isMSESupported(){return tF()}static isSupported(){return jJ()}static getMediaSource(){return Ml()}static get Events(){return I}static get ErrorTypes(){return Fe}static get ErrorDetails(){return ne}static get DefaultConfig(){return tl.defaultConfig?tl.defaultConfig:ZN}static set DefaultConfig(e){tl.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new $S,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,$6(e.debug||!1,"Hls instance");const n=this.config=BJ(tl.DefaultConfig,e);this.userConfig=e,n.progressive&&UJ(n);const{abrController:r,bufferController:i,capLevelController:s,errorController:a,fpsController:o}=n,l=new a(this),c=this.abrController=new r(this),u=this.bufferController=new i(this),f=this.capLevelController=new s(this),d=new o(this),h=new PX(this),p=new FX(this),m=n.contentSteeringController,g=m?new m(this):null,_=this.levelController=new HJ(this,g),v=new d9(this),y=new GJ(this.config),E=this.streamController=new XJ(this,v,y);f.setStreamController(E),d.setStreamController(E);const b=[h,_,E];g&&b.splice(1,0,g),this.networkControllers=b;const T=[c,u,f,d,p,v];this.audioTrackController=this.createController(n.audioTrackController,b);const S=n.audioStreamController;S&&b.push(new S(this,v,y)),this.subtitleTrackController=this.createController(n.subtitleTrackController,b);const A=n.subtitleStreamController;
133A&&b.push(new A(this,v,y)),this.createController(n.timelineController,T),y.emeController=this.emeController=this.createController(n.emeController,T),this.cmcdController=this.createController(n.cmcdController,T),this.latencyController=this.createController($X,T),this.coreComponents=T,b.push(l);const w=l.onErrorOut;typeof w=="function"&&this.on(I.ERROR,w,l)}createController(e,n){if(e){const r=new e(this);return n&&n.push(r),r}return null}on(e,n,r=this){this._emitter.on(e,n,r)}once(e,n,r=this){this._emitter.once(e,n,r)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,n,r=this,i){this._emitter.off(e,n,r,i)}listeners(e){return this._emitter.listeners(e)}emit(e,n,r){return this._emitter.emit(e,n,r)}trigger(e,n){if(this.config.debug)return this.emit(e,e,n);try{return this.emit(e,e,n)}catch(r){if(J.error("An internal error happened while handling event "+e+'. Error message: "'+r.message+'". Here is a stacktrace:',r),!this.triggeringException){this.triggeringException=!0;const i=e===I.ERROR;this.trigger(I.ERROR,{type:Fe.OTHER_ERROR,details:ne.INTERNAL_EXCEPTION,fatal:i,event:e,error:r}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){J.log("destroy"),this.trigger(I.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(n=>n.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(n=>n.destroy()),this.coreComponents.length=0;const e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){J.log("attachMedia"),this._media=e,this.trigger(I.MEDIA_ATTACHING,{media:e})}detachMedia(){J.log("detachMedia"),this.trigger(I.MEDIA_DETACHING,void 0),this._media=null}loadSource(e){this.stopLoad();const n=this.media,r=this.url,i=this.url=xS.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,J.log(`loadSource:${i}`),n&&r&&(r!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(n)),this.trigger(I.MANIFEST_LOADING,{url:e})}startLoad(e=-1){J.log(`startLoad(${e})`),this.started=!0,this.resumeBuffering();for(let n=0;n<this.networkControllers.length&&(this.networkControllers[n].startLoad(e),!(!this.started||!this.networkControllers));n++);}stopLoad(){J.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}resumeBuffering(){J.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()})}pauseBuffering(){J.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()})}swapAudioCodec(){J.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){J.log("recoverMediaError");const e=this._media;this.detachMedia(),e&&this.attachMedia(e)}removeLevel(e){this.levelController.removeLevel(e)}get levels(){const e=this.levelController.levels;return e||[]}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){J.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){J.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){J.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){J.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){const e=this.levelController.startLevel;return e===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){J.log(`set startLevel:${e}`),e!==-1&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const n=!!e;n!==this.config.capLevelToPlayerSize&&(n?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=n)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(J.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){BX(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:e,config:{minAutoBitrate:n}}=this;if(!e)return 0;const r=e.length;for(let i=0;i<r;i++)if(e[i].maxBitrate>=n)return i;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:n,maxHdcpLevel:r}=this;let i;
133if(n===-1&&e!=null&&e.length?i=e.length-1:i=n,r)for(let s=i;s--;){const a=e[s].attrs["HDCP-LEVEL"];if(a&&a<=r)return s}return i}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}setAudioOption(e){var n;return(n=this.audioTrackController)==null?void 0:n.setAudioOption(e)}setSubtitleOption(e){var n;return(n=this.subtitleTrackController)==null||n.setSubtitleOption(e),null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const n=this.audioTrackController;n&&(n.audioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const n=this.subtitleTrackController;n&&(n.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return e?e.subtitleDisplay:!1}set subtitleDisplay(e){const n=this.subtitleTrackController;n&&(n.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}}tl.defaultConfig=void 0;var ot=tl,Vt={VIDEO:"video",THUMBNAIL:"thumbnail",STORYBOARD:"storyboard",DRM:"drm"},Dt={NOT_AN_ERROR:0,NETWORK_OFFLINE:2000002,NETWORK_UNKNOWN_ERROR:2e6,NETWORK_NO_STATUS:2000001,NETWORK_INVALID_URL:24e5,NETWORK_NOT_FOUND:2404e3,NETWORK_NOT_READY:2412e3,NETWORK_GENERIC_SERVER_FAIL:25e5,NETWORK_TOKEN_MISSING:2403201,NETWORK_TOKEN_MALFORMED:2412202,NETWORK_TOKEN_EXPIRED:2403210,NETWORK_TOKEN_AUD_MISSING:2403221,NETWORK_TOKEN_AUD_MISMATCH:2403222,NETWORK_TOKEN_SUB_MISMATCH:2403232,ENCRYPTED_ERROR:5e6,ENCRYPTED_UNSUPPORTED_KEY_SYSTEM:5000001,ENCRYPTED_GENERATE_REQUEST_FAILED:5000002,ENCRYPTED_UPDATE_LICENSE_FAILED:5000003,ENCRYPTED_UPDATE_SERVER_CERT_FAILED:5000004,ENCRYPTED_CDM_ERROR:5000005,ENCRYPTED_OUTPUT_RESTRICTED:5000006,ENCRYPTED_MISSING_TOKEN:5000002},nF=t=>t===Vt.VIDEO?"playback":t,Ra=class ff extends Error{constructor(e,n=ff.MEDIA_ERR_CUSTOM,r,i){var s;super(e),this.name="MediaError",this.code=n,this.context=i,this.fatal=r??(n>=ff.MEDIA_ERR_NETWORK&&n<=ff.MEDIA_ERR_ENCRYPTED),this.message||(this.message=(s=ff.defaultMessages[this.code])!=null?s:"")}};Ra.MEDIA_ERR_ABORTED=1,Ra.MEDIA_ERR_NETWORK=2,Ra.MEDIA_ERR_DECODE=3,Ra.MEDIA_ERR_SRC_NOT_SUPPORTED=4,Ra.MEDIA_ERR_ENCRYPTED=5,Ra.MEDIA_ERR_CUSTOM=100,Ra.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail.",3:"A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format.",4:"An unsupported error occurred. The server or network failed, or your browser does not support this format.",5:"The media is encrypted and there are no keys to decrypt it."};var Ce=Ra,JJ=t=>t==null,jS=(t,e)=>JJ(e)?!1:t in e,Tb={ANY:"any",MUTED:"muted"},zr={ON_DEMAND:"on-demand",LIVE:"live",UNKNOWN:"unknown"},wc={MSE:"mse",NATIVE:"native"},xp={HEADER:"header",QUERY:"query",NONE:"none"},GL=Object.values(xp),co={M3U8:"application/vnd.apple.mpegurl",MP4:"video/mp4"},jL={HLS:co.M3U8};[...Object.values(co)];var QJ="en",Sb={code:QJ},pn=(t,e,n,r,i=t)=>{i.addEventListener(e,n,r),t.addEventListener("teardown",()=>{i.removeEventListener(e,n)},{once:!0})};function ZJ(t,e,n){e&&n>e&&(n=e);for(let r=0;r<t.length;r++)if(t.start(r)<=n&&t.end(r)>=n)return!0;return!1}var VS=t=>{let e=t.indexOf("?");if(e<0)return[t];let n=t.slice(0,e),r=t.slice(e);return[n,r]},Hg=t=>{let e=t.type;if(e){let r=e.toUpperCase();return jS(r,jL)?jL[r]:e}let{src:n}=t;return n?eQ(n):""},rF=t=>t==="VOD"?zr.ON_DEMAND:zr.LIVE,iF=t=>t==="EVENT"?Number.POSITIVE_INFINITY:t==="VOD"?Number.NaN:0,eQ=t=>{let e="";try{e=new URL(t).pathname}catch{console.error("invalid url")}let n=e.lastIndexOf(".");if(n<0)return"";let r=e.slice(n+1).toUpperCase();return jS(r,co)?co[r]:""},tQ=t=>{let e=(t??"").split(".")[1];if(e)try{let n=e.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(atob(n).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(r)}catch{return}},nQ=({exp:t},e=Date.now())=>!t||t*1e3<e,rQ=({sub:t},e)=>t!==e,iQ=({aud:t},e)=>!t,sQ=({aud:t},e)=>t!==e,sF="en";function pt(t,e=!0){var n,r;let i=e&&(r=(n=Sb)==null?void 0:n[t])!=null?r:t,s=e?Sb.code:sF;return new aQ(i,s)}var aQ=class{constructor(e,n=(r=>(r=Sb)!=null?r:sF)()){this.message=e,this.locale=n}format(e){return this.message.replace(/\{(\w+)\}/g,(n,r)=>{var i;return(i=e[r])!=null?i:""})}toString(){return this.message}},oQ=Object.values(Tb),VL=t=>typeof t=="boolean"||typeof t=="string"&&oQ.includes(t),lQ=(t,e,n)=>{let{autoplay:r}=t,i=!1,s=!1,a=VL(r)?r:!!r,o=()=>{i||pn(e,"playing",()=>{i=!0},{once:!0})};if(o(),pn(e,"loadstart",()=>{i=!1,o(),Zv(e,a)},{once:!0}),pn(e,"loadstart",()=>{n||(t.streamType&&t.streamType!==zr.UNKNOWN?s=t.streamType===zr.LIVE:s=!Number.isFinite(e.duration)),Zv(e,a)},{once:!0}),n&&n.once(ot.Events.LEVEL_LOADED,(l,c)=>{var u;t.streamType&&t.streamType!==zr.UNKNOWN?s=t.streamType===zr.LIVE:s=(u=c.details.live)!=null?u:!1}),!a){let l=()=>{!s||Number.isFinite(t.startTime)||(n!=null&&n.liveSyncPosition?e.currentTime=n.liveSyncPosition:Number.isFinite(e.seekable.end(0))&&(e.currentTime=e.seekable.end(0)))};n&&pn(e,"play",()=>{e.preload==="metadata"?n.once(ot.Events.LEVEL_UPDATED,l):l()},{once:!0})}return l=>{i||(a=VL(l)?l:!!l,Zv(e,a))}},Zv=(t,e)=>{if(!e)return;let n=t.muted,r=()=>t.muted=n;switch(e){case Tb.ANY:t.play().catch(()=>{t.muted=!0,t.play().catch(r)});break;case Tb.MUTED:t.muted=!0,t.play().catch(r);break;default:t.play().catch(()=>{});break}},cQ=({preload:t,src:e},n,r)=>{let i=f=>{f!=null&&["","none","metadata","auto"].includes(f)?n.setAttribute("preload",f):n.removeAttribute("preload")};if(!r)return i(t),i;let s=!1,a=!1,o=r.config.maxBufferLength,l=r.config.maxBufferSize,c=f=>{i(f);let d=f??n.preload;a||d==="none"||(d==="metadata"?(r.config.maxBufferLength=1,r.config.maxBufferSize=1):(r.config.maxBufferLength=o,r.config.maxBufferSize=l),u())},u=()=>{!s&&e&&(s=!0,r.loadSource(e))};return pn(n,"play",()=>{a=!0,r.config.maxBufferLength=o,r.config.maxBufferSize=l,u()},{once:!0}),c(t),c};function uQ(t,e){var n;if(!("videoTracks"in t))return;let r=new WeakMap;e.on(ot.Events.MANIFEST_PARSED,function(c,u){l();let f=t.addVideoTrack("main");f.selected=!0;for(let[d,h]of u.levels.entries()){let p=f.addRendition(h.url[0],h.width,h.height,h.videoCodec,h.bitrate);r.set(h,`${d}`),p.id=`${d}`}}),e.on(ot.Events.AUDIO_TRACKS_UPDATED,function(c,u){o();for(let f of u.audioTracks){let d=f.default?"main":"alternative",h=t.addAudioTrack(d,f.name,f.lang);h.id=`${f.id}`,f.default&&(h.enabled=!0)}}),t.audioTracks.addEventListener("change",()=>{var c;let u=+((c=[...t.audioTracks].find(d=>d.enabled))==null?void 0:c.id),f=e.audioTracks.map(d=>d.id);u!=e.audioTrack&&f.includes(u)&&(e.audioTrack=u)}),e.on(ot.Events.LEVELS_UPDATED,function(c,u){var f;let d=t.videoTracks[(f=t.videoTracks.selectedIndex)!=null?f:0];if(!d)return;let h=u.levels.map(p=>r.get(p));for(let p of t.videoRenditions)p.id&&!h.includes(p.id)&&d.removeRendition(p)});let i=c=>{let u=c.target.selectedIndex;u!=e.nextLevel&&s(u)},s=c=>{let u=t.currentTime,f=!1,d=(h,p)=>{f||(f=!Number.isFinite(p.endOffset))};e.on(ot.Events.BUFFER_FLUSHING,d),e.nextLevel=c,e.off(ot.Events.BUFFER_FLUSHING,d),f||e.trigger(ot.Events.BUFFER_FLUSHING,{startOffset:u+10,endOffset:1/0,type:"video"})};
vendor: 6,273 bytes, line 133
133(n=t.videoRenditions)==null||n.addEventListener("change",i);let a=()=>{for(let c of t.videoTracks)t.removeVideoTrack(c)},o=()=>{for(let c of t.audioTracks)t.removeAudioTrack(c)},l=()=>{a(),o()};e.once(ot.Events.DESTROYING,l)}var e0=t=>"time"in t?t.time:t.startTime;function fQ(t,e){e.on(ot.Events.NON_NATIVE_TEXT_TRACKS_FOUND,(i,{tracks:s})=>{s.forEach(a=>{var o,l;let c=(o=a.subtitleTrack)!=null?o:a.closedCaptions,u=e.subtitleTracks.findIndex(({lang:d,name:h,type:p})=>d==(c==null?void 0:c.lang)&&h===a.label&&p.toLowerCase()===a.kind),f=((l=a._id)!=null?l:a.default)?"default":`${a.kind}${u}`;aF(t,a.kind,a.label,c==null?void 0:c.lang,f,a.default)})});let n=()=>{if(!e.subtitleTracks.length)return;let i=Array.from(t.textTracks).find(o=>o.id&&o.mode==="showing"&&["subtitles","captions"].includes(o.kind));if(!i)return;let s=e.subtitleTracks[e.subtitleTrack],a=s?s.default?"default":`${e.subtitleTracks[e.subtitleTrack].type.toLowerCase()}${e.subtitleTrack}`:void 0;if(e.subtitleTrack<0||(i==null?void 0:i.id)!==a){let o=e.subtitleTracks.findIndex(({lang:l,name:c,type:u,default:f})=>i.id==="default"&&f||l==i.language&&c===i.label&&u.toLowerCase()===i.kind);e.subtitleTrack=o}(i==null?void 0:i.id)===a&&i.cues&&Array.from(i.cues).forEach(o=>{i.addCue(o)})};t.textTracks.addEventListener("change",n),e.on(ot.Events.CUES_PARSED,(i,{track:s,cues:a})=>{let o=t.textTracks.getTrackById(s);if(!o)return;let l=o.mode==="disabled";l&&(o.mode="hidden"),a.forEach(c=>{var u;(u=o.cues)!=null&&u.getCueById(c.id)||o.addCue(c)}),l&&(o.mode="disabled")}),e.once(ot.Events.DESTROYING,()=>{t.textTracks.removeEventListener("change",n),t.querySelectorAll("track[data-removeondestroy]").forEach(i=>{i.remove()})});let r=()=>{Array.from(t.textTracks).forEach(i=>{var s,a;if(!["subtitles","caption"].includes(i.kind)&&(i.label==="thumbnails"||i.kind==="chapters")){if(!((s=i.cues)!=null&&s.length)){let o="track";i.kind&&(o+=`[kind="${i.kind}"]`),i.label&&(o+=`[label="${i.label}"]`);let l=t.querySelector(o),c=(a=l==null?void 0:l.getAttribute("src"))!=null?a:"";l==null||l.removeAttribute("src"),setTimeout(()=>{l==null||l.setAttribute("src",c)},0)}i.mode!=="hidden"&&(i.mode="hidden")}})};e.once(ot.Events.MANIFEST_LOADED,r),e.once(ot.Events.MEDIA_ATTACHED,r)}function aF(t,e,n,r,i,s){let a=document.createElement("track");return a.kind=e,a.label=n,r&&(a.srclang=r),i&&(a.id=i),s&&(a.default=!0),a.track.mode=["subtitles","captions"].includes(e)?"disabled":"hidden",a.setAttribute("data-removeondestroy",""),t.append(a),a.track}function qd(t,e,n){var r;return(r=Array.from(t.querySelectorAll("track")).find(i=>i.track.label===e&&i.track.kind===n))==null?void 0:r.track}async function oF(t,e,n,r){let i=qd(t,n,r);return i||(i=aF(t,r,n),i.mode="hidden",await new Promise(s=>setTimeout(()=>s(void 0),0))),i.mode!=="hidden"&&(i.mode="hidden"),[...e].sort((s,a)=>e0(a)-e0(s)).forEach(s=>{var a,o;let l=s.value,c=e0(s);if("endTime"in s&&s.endTime!=null)i==null||i.addCue(new VTTCue(c,s.endTime,r==="chapters"?l:JSON.stringify(l??null)));else{let u=Array.prototype.findIndex.call(i==null?void 0:i.cues,p=>p.startTime>=c),f=(a=i==null?void 0:i.cues)==null?void 0:a[u],d=f?f.startTime:Number.isFinite(t.duration)?t.duration:Number.MAX_SAFE_INTEGER,h=(o=i==null?void 0:i.cues)==null?void 0:o[u-1];h&&(h.endTime=c),i==null||i.addCue(new VTTCue(c,d,r==="chapters"?l:JSON.stringify(l??null)))}}),t.textTracks.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),i}var qS="cuepoints",lF=Object.freeze({label:qS});async function cF(t,e,n=lF){return oF(t,e,n.label,"metadata")}var wb=t=>({time:t.startTime,value:JSON.parse(t.text)});function dQ(t,e={label:qS}){let n=qd(t,e.label,"metadata");return n!=null&&n.cues?Array.from(n.cues,r=>wb(r)):[]}function uF(t,e={label:qS}){var n,r;let i=qd(t,e.label,"metadata");if(!((n=i==null?void 0:i.activeCues)!=null&&n.length))return;if(i.activeCues.length===1)return wb(i.activeCues[0]);let{currentTime:s}=t,a=Array.prototype.find.call((r=i.activeCues)!=null?r:[],({startTime:o,endTime:l})=>o<=s&&l>s);return wb(a||i.activeCues[0])}async function hQ(t,e=lF){return new Promise(n=>{pn(t,"loadstart",async()=>{let r=await cF(t,[],e);pn(t,"cuechange",()=>{let i=uF(t);if(i){let s=new CustomEvent("cuepointchange",{composed:!0,bubbles:!0,detail:i});t.dispatchEvent(s)}},{},r),n(r)})})}var KS="chapters",fF=Object.freeze({label:KS}),xb=t=>({startTime:t.startTime,endTime:t.endTime,value:t.text});async function dF(t,e,n=fF){return oF(t,e,n.label,"chapters")}function pQ(t,e={label:KS}){var n;let r=qd(t,e.label,"chapters");return(n=r==null?void 0:r.cues)!=null&&n.length?Array.from(r.cues,i=>xb(i)):[]}function hF(t,e={label:KS}){var n,r;let i=qd(t,e.label,"chapters");if(!((n=i==null?void 0:i.activeCues)!=null&&n.length))return;if(i.activeCues.length===1)return xb(i.activeCues[0]);let{currentTime:s}=t,a=Array.prototype.find.call((r=i.activeCues)!=null?r:[],({startTime:o,endTime:l})=>o<=s&&l>s);return xb(a||i.activeCues[0])}async function mQ(t,e=fF){return new Promise(n=>{pn(t,"loadstart",async()=>{let r=await dF(t,[],e);pn(t,"cuechange",()=>{let i=hF(t);if(i){let s=new CustomEvent("chapterchange",{composed:!0,bubbles:!0,detail:i});t.dispatchEvent(s)}},{},r),n(r)})})}function gQ(t,e){if(e){let n=e.playingDate;if(n!=null)return new Date(n.getTime()-t.currentTime*1e3)}return typeof t.getStartDate=="function"?t.getStartDate():new Date(NaN)}function yQ(t,e){if(e&&e.playingDate)return e.playingDate;if(typeof t.getStartDate=="function"){let n=t.getStartDate();return new Date(n.getTime()+t.currentTime*1e3)}return new Date(NaN)}var qL={VIDEO:"v",THUMBNAIL:"t",STORYBOARD:"s",DRM:"d"},vQ=t=>{if(t===Vt.VIDEO)return qL.VIDEO;if(t===Vt.DRM)return qL.DRM},_Q=(t,e)=>{var n,r;let i=nF(t),s=`${i}Token`;return(n=e.tokens)!=null&&n[i]?(r=e.tokens)==null?void 0:r[i]:jS(s,e)?e[s]:void 0},Ym=(t,e,n,r=!1,i=!(s=>(s=globalThis.navigator)==null?void 0:s.onLine)())=>{var s,a;if(i){let g=pt("Your device appears to be offline",r),_,v=Ce.MEDIA_ERR_NETWORK,y=new Ce(g,v,!0,_);return y.errorCategory=e,y.muxCode=Dt.NETWORK_OFFLINE,y.data=t,y}let o="status"in t?t.status:t.code,l=Date.now(),c=Ce.MEDIA_ERR_NETWORK;if(o===200)return;let u=nF(e),f=_Q(e,n),d=vQ(e),[h]=VS((s=n.playbackId)!=null?s:"");if(!o||!h)return;let p=tQ(f);if(f&&!p){let g=pt("The {tokenNamePrefix}
133-token provided is invalid or malformed.",r).format({tokenNamePrefix:u}),_=pt("Compact JWT string: {token}",r).format({token:f}),v=new Ce(g,c,!0,_);return v.errorCategory=e,v.muxCode=Dt.NETWORK_TOKEN_MALFORMED,v.data=t,v}if(o>=500){let g=new Ce("",c,!0);return g.errorCategory=e,g.muxCode=Dt.NETWORK_UNKNOWN_ERROR,g}if(o===403)if(p){if(nQ(p,l)){let g={timeStyle:"medium",dateStyle:"medium"},_=pt("The videoâs secured {tokenNamePrefix}-token has expired.",r).format({tokenNamePrefix:u}),v=pt("Expired at: {expiredDate}. Current time: {currentDate}.",r).format({expiredDate:new Intl.DateTimeFormat("en",g).format((a=p.exp)!=null?a:0*1e3),currentDate:new Intl.DateTimeFormat("en",g).format(l)}),y=new Ce(_,c,!0,v);return y.errorCategory=e,y.muxCode=Dt.NETWORK_TOKEN_EXPIRED,y.data=t,y}if(rQ(p,h)){let g=pt("The videoâs playback ID does not match the one encoded in the {tokenNamePrefix}-token.",r).format({tokenNamePrefix:u}),_=pt("Specified playback ID: {playbackId} and the playback ID encoded in the {tokenNamePrefix}-token: {tokenPlaybackId}",r).format({tokenNamePrefix:u,playbackId:h,tokenPlaybackId:p.sub}),v=new Ce(g,c,!0,_);return v.errorCategory=e,v.muxCode=Dt.NETWORK_TOKEN_SUB_MISMATCH,v.data=t,v}if(iQ(p)){let g=pt("The {tokenNamePrefix}-token is formatted with incorrect information.",r).format({tokenNamePrefix:u}),_=pt("The {tokenNamePrefix}-token has no aud value. aud value should be {expectedAud}.",r).format({tokenNamePrefix:u,expectedAud:d}),v=new Ce(g,c,!0,_);return v.errorCategory=e,v.muxCode=Dt.NETWORK_TOKEN_AUD_MISSING,v.data=t,v}if(sQ(p,d)){let g=pt("The {tokenNamePrefix}-token is formatted with incorrect information.",r).format({tokenNamePrefix:u}),_=pt("The {tokenNamePrefix}-token has an incorrect aud value: {aud}. aud value should be {expectedAud}.",r).format({tokenNamePrefix:u,expectedAud:d,aud:p.aud}),v=new Ce(g,c,!0,_);return v.errorCategory=e,v.muxCode=Dt.NETWORK_TOKEN_AUD_MISMATCH,v.data=t,v}}else{let g=pt("Authorization error trying to access this {category} URL. If this is a signed URL, you might need to provide a {tokenNamePrefix}-token.",r).format({tokenNamePrefix:u,category:e}),_=pt("Specified playback ID: {playbackId}",r).format({playbackId:h}),v=new Ce(g,c,!0,_);return v.errorCategory=e,v.muxCode=Dt.NETWORK_TOKEN_MISSING,v.data=t,v}if(o===412){let g=pt("This playback-id may belong to a live stream that is not currently active or an asset that is not ready.",r),_=pt("Specified playback ID: {playbackId}",r).format({playbackId:h}),v=new Ce(g,c,!0,_);return v.errorCategory=e,v.muxCode=Dt.NETWORK_NOT_READY,v.data=t,v}if(o===404){let g=pt("This URL or playback-id does not exist. You may have used an Asset ID or an ID from a different resource.",r),_=pt("Specified playback ID: {playbackId}",r).format({playbackId:h}),v=new Ce(g,c,!0,_);return v.errorCategory=e,v.muxCode=Dt.NETWORK_NOT_FOUND,v.data=t,v}if(o===400){let g=pt("The URL or playback-id was invalid. You may have used an invalid value as a playback-id."),_=pt("Specified playback ID: {playbackId}",r).format({playbackId:h}),v=new Ce(g,c,!0,_);return v.errorCategory=e,v.muxCode=Dt.NETWORK_INVALID_URL,v.data=t,v}let m=new Ce("",c,!0);return m.errorCategory=e,m.muxCode=Dt.NETWORK_UNKNOWN_ERROR,m.data=t,m},KL=ot.DefaultConfig.capLevelController,pF=class mF extends KL{constructor(e){super(e)}get levels(){var e;return(e=this.hls.levels)!=null?e:[]}getValidLevels(e){return this.levels.filter((n,r)=>this.isLevelAllowed(n)&&r<=e)}getMaxLevel(e){let n=super.getMaxLevel(e),r=this.getValidLevels(e);if(!r[n])return n;let i=Math.min(r[n].width,r[n].height),s=mF.minMaxResolution;return i>=s?n:KL.getMaxLevelByMediaSize(r,s*(16/9),s)}};pF.minMaxResolution=720;var EQ=pF,bQ=EQ,Ap={FAIRPLAY:"fairplay",PLAYREADY:"playready",WIDEVINE:"widevine"},TQ=t=>{if(t.includes("fps"))return Ap.FAIRPLAY;if(t.includes("playready"))return Ap.PLAYREADY;if(t.includes("widevine"))return Ap.WIDEVINE},SQ=async t=>fetch(t).then(e=>e.status!==200?Promise.reject(e):e.text()).then(e=>{let n=e.split(` 134`).find((r,i,s)=>i&&s[i-1].startsWith("#EXT-X-STREAM-INF"));return fetch(n).then(r=>r.status!==200?Promise.reject(r):r.text()).then(r=>r.split(` 135`))}),wQ=t=>{var e,n,r;let i=(n=((e=t.find(l=>l.startsWith("#EXT-X-PLAYLIST-TYPE")))!=null?e:"").split(":")[1])==null?void 0:n.trim(),s=rF(i),a=iF(i),o;if(s===zr.LIVE){let l=t.find(c=>c.startsWith("#EXT-X-PART-INF"));if(l)o=+l.split(":")[1].split("=")[1]*2;else{let c=t.find(f=>f.startsWith("#EXT-X-TARGETDURATION")),u=(r=c==null?void 0:c.split(":"))==null?void 0:r[1];o=+(u??6)*3}}return{streamType:s,targetLiveWindow:a,liveEdgeStartOffset:o}},xQ=async(t,e)=>{if(e===co.MP4)return{streamType:zr.ON_DEMAND,targetLiveWindow:Number.NaN,liveEdgeStartOffset:void 0};if(e===co.M3U8){let n=await SQ(t);return wQ(n)}return console.error(`Media type ${e} is an unrecognized or unsupported type for src ${t}.`),{streamType:void 0,targetLiveWindow:void 0,liveEdgeStartOffset:void 0}},AQ=async(t,e,n=Hg({src:t}))=>{var r,i,s;let{streamType:a,targetLiveWindow:o,liveEdgeStartOffset:l}=await xQ(t,n);((r=jn.get(e))!=null?r:{}).liveEdgeStartOffset=l,((i=jn.get(e))!=null?i:{}).targetLiveWindow=o,e.dispatchEvent(new CustomEvent("targetlivewindowch
135ange",{composed:!0,bubbles:!0})),((s=jn.get(e))!=null?s:{}).streamType=a,e.dispatchEvent(new CustomEvent("streamtypechange",{composed:!0,bubbles:!0}))},RQ=t=>{var e;let n=t.type,r=rF(n),i=iF(n),s,a=!!((e=t.partList)!=null&&e.length);return r===zr.LIVE&&(s=a?t.partTarget*2:t.targetduration*3),{streamType:r,targetLiveWindow:i,liveEdgeStartOffset:s,lowLatency:a}},LQ=(t,e,n)=>{var r,i,s,a,o,l,c,u;let{streamType:f,targetLiveWindow:d,liveEdgeStartOffset:h,lowLatency:p}=RQ(t);if(f===zr.LIVE){p?(n.config.backBufferLength=(r=n.userConfig.backBufferLength)!=null?r:4,n.config.maxFragLookUpTolerance=(i=n.userConfig.maxFragLookUpTolerance)!=null?i:.001,n.config.abrBandWidthUpFactor=(s=n.userConfig.abrBandWidthUpFactor)!=null?s:n.config.abrBandWidthFactor):n.config.backBufferLength=(a=n.userConfig.backBufferLength)!=null?a:8;let m=Object.freeze({get length(){return e.seekable.length},start(g){return e.seekable.start(g)},end(g){var _;return g>this.length||g<0||Number.isFinite(e.duration)?e.seekable.end(g):(_=n.liveSyncPosition)!=null?_:e.seekable.end(g)}});((o=jn.get(e))!=null?o:{}).seekable=m}((l=jn.get(e))!=null?l:{}).liveEdgeStartOffset=h,((c=jn.get(e))!=null?c:{}).targetLiveWindow=d,e.dispatchEvent(new CustomEvent("targetlivewindowchange",{composed:!0,bubbles:!0})),((u=jn.get(e))!=null?u:{}).streamType=f,e.dispatchEvent(new CustomEvent("streamtypechange",{composed:!0,bubbles:!0}))},WL,zL,CQ=(zL=(WL=globalThis==null?void 0:globalThis.navigator)==null?void 0:WL.userAgent)!=null?zL:"",YL,XL,JL,IQ=(JL=(XL=(YL=globalThis==null?void 0:globalThis.navigator)==null?void 0:YL.userAgentData)==null?void 0:XL.platform)!=null?JL:"",kQ=CQ.toLowerCase().includes("android")||["x11","android"].some(t=>IQ.toLowerCase().includes(t)),jn=new WeakMap,no="mux.com",QL,ZL,gF=(ZL=(QL=ot).isSupported)==null?void 0:ZL.call(QL),PQ=kQ,DQ=()=>wS.utils.now(),OQ=wS.utils.generateUUID,MQ=({playbackId:t,customDomain:e=no,maxResolution:n,minResolution:r,renditionOrder:i,programStartTime:s,programEndTime:a,assetStartTime:o,assetEndTime:l,playbackToken:c,tokens:{playback:u=c}={},extraSourceParams:f={}}={})=>{if(!t)return;let[d,h=""]=VS(t),p=new URL(`https://stream.${e}/${d}.m3u8${h}`);return u||p.searchParams.has("token")?(p.searchParams.forEach((m,g)=>{g!="token"&&p.searchParams.delete(g)}),u&&p.searchParams.set("token",u)):(n&&p.searchParams.set("max_resolution",n),r&&(p.searchParams.set("min_resolution",r),n&&+n.slice(0,-1)<+r.slice(0,-1)&&console.error("minResolution must be <= maxResolution","minResolution",r,"maxResolution",n)),i&&p.searchParams.set("rendition_order",i),s&&p.searchParams.set("program_start_time",`${s}`),a&&p.searchParams.set("program_end_time",`${a}`),o&&p.searchParams.set("asset_start_time",`${o}`),l&&p.searchParams.set("asset_end_time",`${l}`),Object.entries(f).forEach(([m,g])=>{g!=null&&p.searchParams.set(m,g)})),p.toString()},Gg=t=>{if(!t)return;let[e]=t.split("?");return e||void 0},yF=t=>{if(!t||!t.startsWith("https://stream."))return;let[e]=new URL(t).pathname.slice(1).split(".m3u8");return e||void 0},NQ=t=>{var e,n,r;return(e=t==null?void 0:t.metadata)!=null&&e.video_id?t.metadata.video_id:xF(t)&&(r=(n=Gg(t.playbackId))!=null?n:yF(t.src))!=null?r:t.src},vF=t=>{var e;return(e=jn.get(t))==null?void 0:e.error},Ab=t=>{var e,n;return(n=(e=jn.get(t))==null?void 0:e.streamType)!=null?n:zr.UNKNOWN},FQ=t=>{var e,n;return(n=(e=jn.get(t))==null?void 0:e.targetLiveWindow)!=null?n:Number.NaN},WS=t=>{var e,n;return(n=(e=jn.get(t))==null?void 0:e.seekable)!=null?n:t.seekable},$Q=t=>{var e;let n=(e=jn.get(t))==null?void 0:e.liveEdgeStartOffset;if(typeof n!="number")return Number.NaN;let r=WS(t);return r.length?r.end(r.length-1)-n:Number.NaN},zS=.034,BQ=(t,e,n=zS)=>Math.abs(t-e)<=n,_F=(t,e,n=zS)=>t>e||BQ(t,e,n),UQ=(t,e=zS)=>t.paused&&_F(t.currentTime,t.duration,e),EF=(t,e)=>{var n,r,i;if(!e||!t.buffered.length)return;if(t.readyState>2)return!1;let s=e.currentLevel>=0?(r=(n=e.levels)==null?void 0:n[e.currentLevel])==null?void 0:r.details:(i=e.levels.find(f=>!!f.details))==null?void 0:i.details;if(!s||s.live)return;let{fragments:a}=s;if(!(a!=null&&a.length))return;if(t.currentTime<t.duration-(s.targetduration+.5))return!1;let o=a[a.length-1];if(t.currentTime<=o.start)return!1;let l=o.start+o.duration/2,c=t.buffered.start(t.buffered.length-1),u=t.buffered.end(t.buffered.length-1);return l>c&&l<u},bF=(t,e)=>t.ended||t.loop?t.ended:e&&EF(t,e)?!0:UQ(t),HQ=(t,e,n)=>{TF(e,n);let{metadata:r={}}=t,{view_session_id:i=OQ()}=r,s=NQ(t);r.view_session_id=i,r.video_id=s,t.metadata=r;let a=u=>{var f;(f=e.mux)==null||f.emit("hb",{view_drm_type:u})};t.drmTypeCb=a,jn.set(e,{});let o=GQ(t,e),l=cQ(t,e,o);zQ(t,e,o),YQ(t,e,o),hQ(e),mQ(e);let c=lQ(t,e,o);return{engine:o,setAutoplay:c,setPreload:l}},TF=(t,e)=>{let n=e==null?void 0:e.engine;n&&(n.detachMedia(),n.destroy()),t!=null&&t.mux&&!t.mux.deleted&&(t.mux.destroy(),delete t.mux),t&&(t.removeAttribute("src"),t.load(),t.removeEventListener("error",RF),t.removeEventListener("error",Rb),t.removeEventListener("durationchange",AF),jn.delete(t),t.dispatchEvent(new Event("teardown")))};function SF(t,e){var n;let r=Hg(t);if(r!==co.M3U8)return!0;let i=!r||((n=e.canPlayType(r))!=null?n:!0),{preferPlayback:s}=t,a=s===wc.MSE,o=s===wc.NATIVE;return i&&(o||!(gF&&(a||PQ)))}var GQ=(t,e)=>{let{debug:n,streamType:r,startTime:i=-1,metadata:s,preferCmcd:a,_hlsConfig:o={}}=t,l=Hg(t)===co.M3U8,c=SF(t,e);if(l&&!c&&gF){let u={backBufferLength:30,renderTextTracksNatively:!1,liveDurationInfinity:!0,capLevelToPlayerSize:!0,capLevelOnFPSDrop:!0},f=jQ(r),d=VQ(t),h=a!==xp.NONE?{useHeaders:a===xp.HEADER,sessionId:s==null?void 0:s.view_session_id,contentId:s==null?void 0:s.video_id}:void 0;return new ot({debug:n,startPosition:i,cmcd:h,xhrSetup:(p,m)=>{var g,_;if(a&&a!==xp.QUERY)return;let v=new URL(m);if(!v.searchParams.has("CMCD"))return;let y=((_=(g=v.searchParams.get("CMCD"))==null?void 0:g.split(","))!=null?_:[]).filter(E=>E.startsWith("sid")||E.startsWith("cid")).join(",");v.searchParams.set("CMCD",y),p.open("GET",v)},capLevelController:bQ,...u,...f,...d,...o})}},jQ=t=>t===zr.LIVE?{backBufferLength:8}:{},VQ=t=>{let{tokens:{drm:e}={},playbackId:n,drmTypeCb:r}=t,i=Gg(n);return!e||!i?{}:{emeEnabled:!0,drmSystems:{"com.apple.fps":{licenseUrl:Rp(t,"fairplay"),serverCertificateUrl:wF(t,"fairplay")},"com.widevine.alpha":{licenseUrl:Rp(t,"widevine")},"com.microsoft.playready":{licenseUrl:Rp(t,"playready")}},requestMediaKeySystemAccessFunc:(s,a)=>(s==="com.widevine.alpha"&&(a=[...a.map(o=>{var l;let c=(l=o.videoCapabilities)==null?void 0:l.map(u=>({...u,robustness:"HW_SECURE_ALL"}));return{...o,videoCapabilities:c}}),...a]),navigator.requestMediaKeySystemAccess(s,a).then(o=>{let l=TQ(s);return r==null||r(l),o}))}},qQ=async t=>{let e=await fetch(t);return e.status!==200?Promise.reject(e):await e.arrayBuffer()},KQ=async(t,e)=>{let n=await fetch(e,{method:"POST",headers:{"Content-type":"application/octet-stream"},body:t});if(n.status!==200)return Promise.reject(n);let r=await n.arrayBuffer();return new Uint8Array(r)},WQ=(t,e)=>{pn(e,"encrypted",async n=>{try{let r=n.initDataType;if(r!=="skd"){console.error(`Received unexpected initialization data type "${r}"`);return}if(!e.mediaKeys){let l=await navigator.requestMediaKeySystemAccess("com.apple.fps",[{initDataTypes:[r],videoCapabilities:[{contentType:"application/vnd.apple.mpegurl",robustness:""}],distinctiveIdentifier:"not-allowed",persistentState:"not-allowed",sessionTypes:["temporary"]}]).then(u=>{var f;return(f=t.drmTypeCb)==null||f.call(t,Ap.FAIRPLAY),u}).catch(()=>{let u=pt("Cannot play DRM-protected content with current security configuration on this browser. Try playing in another browser."),f=new Ce(u,Ce.MEDIA_ERR_ENCRYPTED,!0);
135f.errorCategory=Vt.DRM,f.muxCode=Dt.ENCRYPTED_UNSUPPORTED_KEY_SYSTEM,vs(e,f)});if(!l)return;let c=await l.createMediaKeys();try{let u=await qQ(wF(t,"fairplay")).catch(f=>{if(f instanceof Response){let d=Ym(f,Vt.DRM,t);return console.error("mediaError",d==null?void 0:d.message,d==null?void 0:d.context),d?Promise.reject(d):Promise.reject(new Error("Unexpected error in app cert request"))}return Promise.reject(f)});await c.setServerCertificate(u).catch(()=>{let f=pt("Your server certificate failed when attempting to set it. This may be an issue with a no longer valid certificate."),d=new Ce(f,Ce.MEDIA_ERR_ENCRYPTED,!0);return d.errorCategory=Vt.DRM,d.muxCode=Dt.ENCRYPTED_UPDATE_SERVER_CERT_FAILED,Promise.reject(d)})}catch(u){vs(e,u);return}await e.setMediaKeys(c)}let i=n.initData;if(i==null){console.error(`Could not start encrypted playback due to missing initData in ${n.type} event`);return}let s=e.mediaKeys.createSession();s.addEventListener("keystatuseschange",()=>{s.keyStatuses.forEach(l=>{let c;if(l==="internal-error"){let u=pt("The DRM Content Decryption Module system had an internal failure. Try reloading the page, upading your browser, or playing in another browser.");c=new Ce(u,Ce.MEDIA_ERR_ENCRYPTED,!0),c.errorCategory=Vt.DRM,c.muxCode=Dt.ENCRYPTED_CDM_ERROR}else if(l==="output-restricted"||l==="output-downscaled"){let u=pt("DRM playback is being attempted in an environment that is not sufficiently secure. User may see black screen.");c=new Ce(u,Ce.MEDIA_ERR_ENCRYPTED,!1),c.errorCategory=Vt.DRM,c.muxCode=Dt.ENCRYPTED_OUTPUT_RESTRICTED}c&&vs(e,c)})});let a=await Promise.all([s.generateRequest(r,i).catch(()=>{let l=pt("Failed to generate a DRM license request. This may be an issue with the player or your protected content."),c=new Ce(l,Ce.MEDIA_ERR_ENCRYPTED,!0);c.errorCategory=Vt.DRM,c.muxCode=Dt.ENCRYPTED_GENERATE_REQUEST_FAILED,vs(e,c)}),new Promise(l=>{s.addEventListener("message",c=>{l(c.message)},{once:!0})})]).then(([,l])=>l);s.generateRequest(r,i);let o=await KQ(a,Rp(t,"fairplay")).catch(l=>{if(l instanceof Response){let c=Ym(l,Vt.DRM,t);return console.error("mediaError",c==null?void 0:c.message,c==null?void 0:c.context),c?Promise.reject(c):Promise.reject(new Error("Unexpected error in license key request"))}return Promise.reject(l)});await s.update(o).catch(()=>{let l=pt("Failed to update DRM license. This may be an issue with the player or your protected content."),c=new Ce(l,Ce.MEDIA_ERR_ENCRYPTED,!0);return c.errorCategory=Vt.DRM,c.muxCode=Dt.ENCRYPTED_UPDATE_LICENSE_FAILED,Promise.reject(c)})}catch(r){vs(e,r);return}})},Rp=({playbackId:t,tokens:{drm:e}={},customDomain:n=no},r)=>{let i=Gg(t);return`https://license.${n.toLocaleLowerCase().endsWith(no)?n:no}/license/${r}/${i}?token=${e}`},wF=({playbackId:t,tokens:{drm:e}={},customDomain:n=no},r)=>{let i=Gg(t);return`https://license.${n.toLocaleLowerCase().endsWith(no)?n:no}/appcert/${r}/${i}?token=${e}`},xF=({playbackId:t,src:e,customDomain:n})=>{if(t)return!0;if(typeof e!="string")return!1;let r=window==null?void 0:window.location.href,i=new URL(e,r).hostname.toLocaleLowerCase();return i.includes(no)||!!n&&i.includes(n.toLocaleLowerCase())},zQ=(t,e,n)=>{var r;let{envKey:i,disableTracking:s}=t,a=xF(t);if(!s&&(i||a)){let{playerInitTime:o,playerSoftwareName:l,playerSoftwareVersion:c,beaconCollectionDomain:u,debug:f,disableCookies:d}=t,h={...t.metadata,video_title:((r=t==null?void 0:t.metadata)==null?void 0:r.video_title)||void 0},p=m=>typeof m.player_error_code=="string"?!1:typeof t.errorTranslator=="function"?t.errorTranslator(m):m;wS.monitor(e,{debug:f,beaconCollectionDomain:u,hlsjs:n,Hls:n?ot:void 0,automaticErrorTracking:!1,errorTranslator:p,disableCookies:d,data:{...i?{env_key:i}:{},player_software_name:l,player_software:l,player_software_version:c,player_init_time:o,...h}})}},YQ=(t,e,n)=>{var r,i;let s=SF(t,e),{src:a}=t,o=()=>{e.ended||!bF(e,n)||(EF(e,n)?e.currentTime=e.buffered.end(e.buffered.length-1):e.dispatchEvent(new Event("ended")))},l,c,u=()=>{let f=WS(e),d,h;f.length>0&&(d=f.start(0),h=f.end(0)),(c!==h||l!==d)&&e.dispatchEvent(new CustomEvent("seekablechange",{composed:!0})),l=d,c=h};if(pn(e,"durationchange",u),e&&s){let f=Hg(t);
vendor: 4,213 bytes, line 135
135if(typeof a=="string"){let d=()=>{if(Ab(e)!==zr.LIVE||Number.isFinite(e.duration))return;let p=setInterval(u,1e3);e.addEventListener("teardown",()=>{clearInterval(p)},{once:!0}),pn(e,"durationchange",()=>{Number.isFinite(e.duration)&&clearInterval(p)})},h=async()=>AQ(a,e,f).then(d).catch(p=>{if(p instanceof Response){let m=Ym(p,Vt.VIDEO,t);if(m){vs(e,m);return}}});if(e.preload==="none"){let p=()=>{h(),e.removeEventListener("loadedmetadata",m)},m=()=>{h(),e.removeEventListener("play",p)};pn(e,"play",p,{once:!0}),pn(e,"loadedmetadata",m,{once:!0})}else h();(r=t.tokens)!=null&&r.drm?WQ(t,e):pn(e,"encrypted",()=>{let p=pt("Attempting to play DRM-protected content without providing a DRM token."),m=new Ce(p,Ce.MEDIA_ERR_ENCRYPTED,!0);m.errorCategory=Vt.DRM,m.muxCode=Dt.ENCRYPTED_MISSING_TOKEN,vs(e,m)},{once:!0}),e.setAttribute("src",a),t.startTime&&(((i=jn.get(e))!=null?i:{}).startTime=t.startTime,e.addEventListener("durationchange",AF,{once:!0}))}else e.removeAttribute("src");e.addEventListener("error",RF),e.addEventListener("error",Rb),e.addEventListener("emptied",()=>{e.querySelectorAll("track[data-removeondestroy]").forEach(d=>{d.remove()})},{once:!0}),pn(e,"pause",o),pn(e,"seeked",o),pn(e,"play",()=>{e.ended||_F(e.currentTime,e.duration)&&(e.currentTime=e.seekable.length?e.seekable.start(0):0)})}else n&&a?(n.once(ot.Events.LEVEL_LOADED,(f,d)=>{LQ(d.details,e,n),u(),Ab(e)===zr.LIVE&&!Number.isFinite(e.duration)&&(n.on(ot.Events.LEVEL_UPDATED,u),pn(e,"durationchange",()=>{Number.isFinite(e.duration)&&n.off(ot.Events.LEVELS_UPDATED,u)}))}),n.on(ot.Events.ERROR,(f,d)=>{vs(e,XQ(d,t))}),e.addEventListener("error",Rb),pn(e,"waiting",o),uQ(t,n),fQ(e,n),n.attachMedia(e)):console.error("It looks like the video you're trying to play will not work on this system! If possible, try upgrading to the newest versions of your browser or software.")};function AF(t){var e;let n=t.target,r=(e=jn.get(n))==null?void 0:e.startTime;if(r&&ZJ(n.seekable,n.duration,r)){let i=n.preload==="auto";i&&(n.preload="none"),n.currentTime=r,i&&(n.preload="auto")}}async function RF(t){if(!t.isTrusted)return;t.stopImmediatePropagation();let e=t.target;if(!(e!=null&&e.error))return;let{message:n,code:r}=e.error,i=new Ce(n,r);if(e.src&&r===Ce.MEDIA_ERR_SRC_NOT_SUPPORTED&&e.readyState===HTMLMediaElement.HAVE_NOTHING){setTimeout(()=>{var s;let a=(s=vF(e))!=null?s:e.error;(a==null?void 0:a.code)===Ce.MEDIA_ERR_SRC_NOT_SUPPORTED&&vs(e,i)},500);return}if(e.src&&(r!==Ce.MEDIA_ERR_DECODE||r!==void 0))try{let{status:s}=await fetch(e.src);i.data={response:{code:s}}}catch{}vs(e,i)}function vs(t,e){var n;e.fatal&&(((n=jn.get(t))!=null?n:{}).error=e,t.dispatchEvent(new CustomEvent("error",{detail:e})))}function Rb(t){var e,n;if(!(t instanceof CustomEvent)||!(t.detail instanceof Ce))return;let r=t.target,i=t.detail;!i||!i.fatal||(((e=jn.get(r))!=null?e:{}).error=i,(n=r.mux)==null||n.emit("error",{player_error_code:i.code,player_error_message:i.message,player_error_context:i.context}))}var XQ=(t,e)=>{var n,r,i;console.error("getErrorFromHlsErrorData()",t);let s={[ot.ErrorTypes.NETWORK_ERROR]:Ce.MEDIA_ERR_NETWORK,[ot.ErrorTypes.MEDIA_ERROR]:Ce.MEDIA_ERR_DECODE,[ot.ErrorTypes.KEY_SYSTEM_ERROR]:Ce.MEDIA_ERR_ENCRYPTED},a=u=>[ot.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,ot.ErrorDetails.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED].includes(u.details)?Ce.MEDIA_ERR_NETWORK:s[u.type],o=u=>{if(u.type===ot.ErrorTypes.KEY_SYSTEM_ERROR)return Vt.DRM;if(u.type===ot.ErrorTypes.NETWORK_ERROR)return Vt.VIDEO},l,c=a(t);if(c===Ce.MEDIA_ERR_NETWORK&&t.response){let u=(n=o(t))!=null?n:Vt.VIDEO;l=(r=Ym(t.response,u,e))!=null?r:new Ce("",c)}else if(c===Ce.MEDIA_ERR_ENCRYPTED)if(t.details===ot.ErrorDetails.KEY_SYSTEM_NO_CONFIGURED_LICENSE){let u=pt("Attempting to play DRM-protected content without providing a DRM token.");l=new Ce(u,Ce.MEDIA_ERR_ENCRYPTED,t.fatal),l.errorCategory=Vt.DRM,l.muxCode=Dt.ENCRYPTED_MISSING_TOKEN}else if(t.details===ot.ErrorDetails.KEY_SYSTEM_NO_ACCESS){let u=pt("Cannot play DRM-protected content with current security configuration on this browser. Try playing in another browser.");l=new Ce(u,Ce.MEDIA_ERR_ENCRYPTED,t.fatal),l.errorCategory=Vt.DRM,l.muxCode=Dt.ENCRYPTED_UNSUPPORTED_
135KEY_SYSTEM}else if(t.details===ot.ErrorDetails.KEY_SYSTEM_NO_SESSION){let u=pt("Failed to generate a DRM license request. This may be an issue with the player or your protected content.");l=new Ce(u,Ce.MEDIA_ERR_ENCRYPTED,!0),l.errorCategory=Vt.DRM,l.muxCode=Dt.ENCRYPTED_GENERATE_REQUEST_FAILED}else if(t.details===ot.ErrorDetails.KEY_SYSTEM_SESSION_UPDATE_FAILED){let u=pt("Failed to update DRM license. This may be an issue with the player or your protected content.");l=new Ce(u,Ce.MEDIA_ERR_ENCRYPTED,t.fatal),l.errorCategory=Vt.DRM,l.muxCode=Dt.ENCRYPTED_UPDATE_LICENSE_FAILED}else if(t.details===ot.ErrorDetails.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED){let u=pt("Your server certificate failed when attempting to set it. This may be an issue with a no longer valid certificate.");l=new Ce(u,Ce.MEDIA_ERR_ENCRYPTED,t.fatal),l.errorCategory=Vt.DRM,l.muxCode=Dt.ENCRYPTED_UPDATE_SERVER_CERT_FAILED}else if(t.details===ot.ErrorDetails.KEY_SYSTEM_STATUS_INTERNAL_ERROR){let u=pt("The DRM Content Decryption Module system had an internal failure. Try reloading the page, upading your browser, or playing in another browser.");l=new Ce(u,Ce.MEDIA_ERR_ENCRYPTED,t.fatal),l.errorCategory=Vt.DRM,l.muxCode=Dt.ENCRYPTED_CDM_ERROR}else if(t.details===ot.ErrorDetails.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED){let u=pt("DRM playback is being attempted in an environment that is not sufficiently secure. User may see black screen.");l=new Ce(u,Ce.MEDIA_ERR_ENCRYPTED,!1),l.errorCategory=Vt.DRM,l.muxCode=Dt.ENCRYPTED_OUTPUT_RESTRICTED}else l=new Ce(t.error.message,Ce.MEDIA_ERR_ENCRYPTED,t.fatal),l.errorCategory=Vt.DRM,l.muxCode=Dt.ENCRYPTED_ERROR;else l=new Ce("",c,t.fatal);return l.context||(l.context=`${t.url?`url: ${t.url} 136`:""}${t.response&&(t.response.code||t.response.text)?`response: ${t.response.code}, ${t.response.text} 137`:""}${t.reason?`failure reason: ${t.reason} 138`:""}${t.level?`level: ${t.level} 139`:""}${t.parent?`parent stream controller: ${t.parent} 140`:""}${t.buffer?`buffer length: ${t.buffer} 141`:""}${t.error?`error: ${t.error} 142`:""}${t.event?`event: ${t.event} 143`:""}${t.err?`error message: ${(i=t.err)==null?void 0:i.message} 144`:""}`),l.data=t,l},JQ=Object.defineProperty,QQ=Object.getPrototypeOf,ZQ=Reflect.get,LF=t=>{throw TypeError(t)},eZ=(t,e,n)=>e in t?JQ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,St=(t,e,n)=>eZ(t,typeof e!="symbol"?e+"":e,n),YS=(t,e,n)=>e.has(t)||LF("Cannot "+n),X=(t,e,n)=>(YS(t,e,"read from private field"),n?n.call(t):e.get(t)),Me=(t,e,n)=>e.has(t)?LF("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Ie=(t,e,n,r)=>(YS(t,e,"write to private field"),e.set(t,n),n),kt=(t,e,n)=>(YS(t,e,"access private method"),n),t0=(t,e,n)=>ZQ(QQ(t),n,e),jg=class{addEventListener(){}removeEventListener(){}dispatchEvent(t){return!0}};if(typeof DocumentFragment>"u"){class t extends jg{}globalThis.DocumentFragment=t}var XS=class extends jg{},tZ=class extends jg{},nZ={get(t){},define(t,e,n){},getName(t){return null},upgrade(t){},whenDefined(t){return Promise.resolve(XS)}},Lp,rZ=class{constructor(t,e={}){Me(this,Lp),Ie(this,Lp,e==null?void 0:e.detail)}get detail(){return X(this,Lp)}initCustomEvent(){}};Lp=new WeakMap;function iZ(t,e){return new XS}var sZ={document:{createElement:iZ},DocumentFragment,customElements:nZ,CustomEvent:rZ,EventTarget:jg,HTMLElement:XS,HTMLVideoElement:tZ},aZ=typeof window>"u"||typeof globalThis.customElements>"u",n0=aZ?sZ:globalThis,oZ=()=>{try{return"0.24.2"}catch{}return"UNKNOWN"},lZ=oZ(),cZ=()=>lZ,CF=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"],IF=["autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"];function uZ(t){return` 145 <style> 146 :host { 147 display: inline-flex; 148 line-height: 0; 149 flex-direction: column; 150 justify-content: end; 151 } 152 153 audio { 154 width: 100%; 155 } 156 </style> 157 <slot name="media"> 158 <audio${PF(t)}></audio> 159 </slot> 160 <slot></slot> 161 `}function fZ(t){return` 162 <style> 163 :host { 164 display: inline-block; 165 line-height: 0; 166 } 167 168 video { 169 max-width: 100%; 170 max-height: 100%; 171 min-width: 100%; 172 min-height: 100%; 173 object-fit: var(--media-object-fit, contain); 174 object-position: var(--media-object-position, 50% 50%); 175 } 176 177 video::-webkit-media-text-track-container { 178 transform: var(--media-webkit-text-track-transform); 179 transition: var(--media-webkit-text-track-transition); 180 } 181 </style> 182 <slot name="media"> 183 <video${PF(t)}></video> 184 </slot> 185 <slot></slot> 186 `}function kF(t,{tag:e,is:n}){var r,i,s,a,o,l,c,u,f,d,h,p,m,g,_,v,y;let E=(i=(r=globalThis.document)==null?void 0:r.createElement)==null?void 0:i.call(r,e,{is:n}),b=E?dZ(E):[];return s=class extends t{constructor(){super(...arguments),Me(this,h),Me(this,c,!1),Me(this,u,null),Me(this,f,new Map),Me(this,d),St(this,"get"),St(this,"set"),St(this,"call")}static get observedAttributes(){var T,S,A;
vendor: 16,668 bytes, line 186
186return kt(T=s,o,l).call(T),[...(A=(S=E==null?void 0:E.constructor)==null?void 0:S.observedAttributes)!=null?A:[],...IF]}get nativeEl(){var T,S,A,w,x;return kt(this,h,p).call(this),(x=(w=(S=(T=X(this,u))!=null?T:this.querySelector(":scope > [slot=media]"))!=null?S:this.querySelector(e))!=null?w:(A=this.shadowRoot)==null?void 0:A.querySelector(e))!=null?x:null}set nativeEl(T){Ie(this,u,T)}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(T){this.toggleAttribute("muted",T)}get src(){return this.getAttribute("src")}set src(T){this.setAttribute("src",`${T}`)}get preload(){var T,S;return(S=this.getAttribute("preload"))!=null?S:(T=this.nativeEl)==null?void 0:T.preload}set preload(T){this.setAttribute("preload",`${T}`)}init(){var T;if(!this.shadowRoot){this.attachShadow({mode:"open"});let S=hZ(this.attributes);n&&(S.is=n),e&&(S.part=e),this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(S)}this.nativeEl.muted=this.hasAttribute("muted");for(let S of b)kt(this,h,v).call(this,S);Ie(this,d,new MutationObserver(kt(this,h,g).bind(this))),this.shadowRoot.addEventListener("slotchange",this),kt(this,h,m).call(this);for(let S of this.constructor.Events)(T=this.shadowRoot)==null||T.addEventListener(S,this,!0)}handleEvent(T){if(T.type==="slotchange"){kt(this,h,m).call(this);return}T.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(T.type,{detail:T.detail}))}attributeChangedCallback(T,S,A){kt(this,h,p).call(this),kt(this,h,y).call(this,T,S,A)}connectedCallback(){kt(this,h,p).call(this)}},a=new WeakMap,o=new WeakSet,l=function(){if(X(this,a))return;Ie(this,a,!0);let T=new Set(this.observedAttributes);T.delete("muted");for(let S of b)if(!(S in this.prototype))if(typeof E[S]=="function")this.prototype[S]=function(...A){return kt(this,h,p).call(this),(()=>{var w;if(this.call)return this.call(S,...A);let x=(w=this.nativeEl)==null?void 0:w[S];return x==null?void 0:x.apply(this.nativeEl,A)})()};else{let A={get(){var w,x,L;kt(this,h,p).call(this);let R=S.toLowerCase();if(T.has(R)){let k=this.getAttribute(R);return k===null?!1:k===""?!0:k}return(L=(w=this.get)==null?void 0:w.call(this,S))!=null?L:(x=this.nativeEl)==null?void 0:x[S]}};S!==S.toUpperCase()&&(A.set=function(w){kt(this,h,p).call(this);let x=S.toLowerCase();if(T.has(x)){w===!0||w===!1||w==null?this.toggleAttribute(x,!!w):this.setAttribute(x,w);return}if(this.set){this.set(S,w);return}this.nativeEl&&(this.nativeEl[S]=w)}),Object.defineProperty(this.prototype,S,A)}},c=new WeakMap,u=new WeakMap,f=new WeakMap,d=new WeakMap,h=new WeakSet,p=function(){X(this,c)||(Ie(this,c,!0),this.init())},m=function(){var T;let S=new Map(X(this,f)),A=(T=this.shadowRoot)==null?void 0:T.querySelector("slot:not([name])");(A==null?void 0:A.assignedElements({flatten:!0}).filter(w=>["track","source"].includes(w.localName))).forEach(w=>{var x,L;S.delete(w);let R=X(this,f).get(w);R||(R=w.cloneNode(),X(this,f).set(w,R),(x=X(this,d))==null||x.observe(w,{attributes:!0})),(L=this.nativeEl)==null||L.append(R),kt(this,h,_).call(this,R)}),S.forEach((w,x)=>{w.remove(),X(this,f).delete(x)})},g=function(T){var S;for(let A of T)if(A.type==="attributes"){let{target:w,attributeName:x}=A,L=X(this,f).get(w);L&&x&&(L.setAttribute(x,(S=w.getAttribute(x))!=null?S:""),kt(this,h,_).call(this,L))}},_=function(T){T&&T.localName==="track"&&T.default&&(T.kind==="chapters"||T.kind==="metadata")&&T.track.mode==="disabled"&&(T.track.mode="hidden")},v=function(T){if(Object.prototype.hasOwnProperty.call(this,T)){let S=this[T];delete this[T],this[T]=S}},y=function(T,S,A){var w,x,L;["id","class"].includes(T)||!s.observedAttributes.includes(T)&&this.constructor.observedAttributes.includes(T)||(A===null?(w=this.nativeEl)==null||w.removeAttribute(T):((x=this.nativeEl)==null?void 0:x.getAttribute(T))!==A&&((L=this.nativeEl)==null||L.setAttribute(T,A)))},Me(s,o),St(s,"getTemplateHTML",e.endsWith("audio")?uZ:fZ),St(s,"shadowRootOptions",{mode:"open"}),St(s,"Events",CF),Me(s,a,!1),s}function dZ(t){let e=[];for(let n=Object.getPrototypeOf(t);n&&n!==HTMLElement.prototype;n=Object.getPrototypeOf(n)){let r=Object.getOwnPropertyNames(n);e.push(...r)}return e}function PF(t){let e="";for(let n in t){if(!IF.includes(n))continue;let r=t[n];r===""?e+=` ${n}`:e+=` ${n}="${r}"`}return e}function hZ(t){let e={};for(let n of t)e[n.name]=n.value;return e}var eC,r0=kF((eC=globalThis.HTMLElement)!=null?eC:class{},{tag:"video"}),tC;kF((tC=globalThis.HTMLElement)!=null?tC:class{},{tag:"audio"});var bl=new WeakMap,i0=class extends Error{},pZ=class extends Error{},mZ=globalThis.WeakRef?class extends Set{add(t){super.add(new WeakRef(t))}forEach(t){super.forEach(e=>{let n=e.deref();n&&t(n)})}}:Set;function gZ(t){var e,n,r;(n=(e=globalThis.chrome)==null?void 0:e.cast)!=null&&n.isAvailable?(r=globalThis.cast)!=null&&r.framework?t():customElements.whenDefined("google-cast-button").then(t):globalThis.__onGCastApiAvailable=()=>{customElements.whenDefined("google-cast-button").then(t)}}function yZ(){return globalThis.chrome}function vZ(){var t;let e="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1";if((t=globalThis.chrome)!=null&&t.cast||document.querySelector(`script[src="${e}"]`))return;let n=document.createElement("script");n.src=e,document.head.append(n)}function Nl(){var t,e;return(e=(t=globalThis.cast)==null?void 0:t.framework)==null?void 0:e.CastContext.getInstance()}function JS(){var t;return(t=Nl())==null?void 0:t.getCurrentSession()}function QS(){var t;return(t=JS())==null?void 0:t.getSessionObj().media[0]}function _Z(t){return new Promise((e,n)=>{QS().editTracksInfo(t,e,n)})}function EZ(t){return new Promise((e,n)=>{QS().getStatus(t,e,n)})}function DF(t){return Nl().setOptions({...OF(),...t})}function OF(){return{receiverApplicationId:"CC1AD845",autoJoinPolicy:"origin_scoped",androidReceiverCompatible:!1,language:"en-US",resumeSavedSession:!0}}var Cp=new mZ,Fa=new WeakSet,Cn;gZ(()=>{var t,e,n,r;if(!((e=(t=globalThis.chrome)==null?void 0:t.cast)!=null&&e.isAvailable)){console.debug("chrome.cast.isAvailable",(r=(n=globalThis.chrome)==null?void 0:n.cast)==null?void 0:r.isAvailable);return}Cn||(Cn=cast.framework,Nl().addEventListener(Cn.CastContextEventType.CAST_STATE_CHANGED,i=>{Cp.forEach(s=>{var a,o;return(o=(a=bl.get(s)).onCastStateChanged)==null?void 0:o.call(a,i)})}),Nl().addEventListener(Cn.CastContextEventType.SESSION_STATE_CHANGED,i=>{Cp.forEach(s=>{var a,o;return(o=(a=bl.get(s)).onSessionStateChanged)==null?void 0:o.call(a,i)})}),Cp.forEach(i=>{var s,a;return(a=(s=bl.get(i)).init)==null?void 0:a.call(s)}))});var nC=0,vt,Ip,wi,Ma,xc,dc,nl,Lb,Qn,Fo,rC,Cb,MF,Ib,iC,s0,bZ=class extends EventTarget{constructor(t){super(),Me(this,Qn),Me(this,vt),Me(this,Ip),Me(this,wi),Me(this,Ma),Me(this,xc,"disconnected"),Me(this,dc,!1),Me(this,nl,new Set),Me(this,Lb,new WeakMap),Ie(this,vt,t),Cp.add(this),bl.set(this,{init:()=>kt(this,Qn,Ib).call(this),onCastStateChanged:()=>kt(this,Qn,Cb).call(this),onSessionStateChanged:()=>kt(this,Qn,MF).call(this),getCastPlayer:()=>X(this,Qn,Fo)}),kt(this,Qn,Ib).call(this)}get state(){return X(this,xc)}async watchAvailability(t){if(X(this,vt).disableRemotePlayback)throw new i0("disableRemotePlayback attribute is present.");return X(this,Lb).set(t,++nC),X(this,nl).add(t),nC}async cancelWatchAvailability(t){if(X(this,vt).disableRemotePlayback)throw new i0("disableRemotePlayback attribute is present.");t?X(this,nl).delete(t):X(this,nl).clear()}async prompt(){var t,e,n,r;if(X(this,vt).disableRemotePlayback)throw new i0("disableRemotePlayback attribute is present.");if(!((e=(t=globalThis.chrome)==null?void 0:t.cast)!=null&&e.isAvailable))throw new pZ("The RemotePlayback API is disabled on this platform.");let i=Fa.has(X(this,vt));Fa.add(X(this,vt)),DF(X(this,vt).castOptions),Object.entries(X(this,Ma)).forEach(([s,a])=>{X(this,wi).controller.addEventListener(s,a)});try{await Nl().requestSession()}catch(s){if(s==="cancel"){i||Fa.delete(X(this,vt));return}throw new Error(s)}(r=(n=bl.get(X(this,vt)))==null?void 0:n.loadOnPrompt)==null||r.call(n)}};vt=new WeakMap,Ip=new WeakMap,wi=new WeakMap,Ma=new WeakMap,xc=new WeakMap,dc=new WeakMap,nl=new WeakMap,Lb=new WeakMap,Qn=new WeakSet,Fo=function(){if(Fa.has(X(this,vt)))return X(this,wi)},rC=function(){Fa.has(X(this,vt))&&(Object.entries(X(this,Ma)).forEach(([t,e])=>{X(this,wi).controller.removeEventListener(t,e)}),Fa.delete(X(this,vt)),X(this,vt).muted=X(this,wi).isMuted,X(this,vt).currentTime=X(this,wi).savedPlayerState.currentTime,X(this,wi).savedPlayerState.isPaused===!1&&X(this,vt).play())},Cb=function(){let t=Nl().getCastState();if(Fa.has(X(this,vt))&&t==="CONNECTING"&&(Ie(this,xc,"connecting"),this.dispatchEvent(new Event("connecting"))),!X(this,dc)&&t!=null&&t.includes("CONNECT")){Ie(this,dc,!0);for(let e of X(this,nl))e(!0)}else if(X(this,dc)&&(!t||t==="NO_DEVICES_AVAILABLE")){Ie(this,dc,!1);for(let e of X(this,nl))e(!1)}},MF=async function(){var t;let{SESSION_RESUMED:e}=Cn.SessionState;if(Nl().getSessionState()===e&&X(this,vt).castSrc===((t=QS())==null?void 0:t.media.contentId)){Fa.add(X(this,vt)),Object.entries(X(this,Ma)).forEach(([n,r])=>{X(this,wi).controller.addEventListener(n,r)});try{await EZ(new chrome.cast.media.GetStatusRequest)}catch(n){console.error(n)}X(this,Ma)[Cn.RemotePlayerEventType.IS_PAUSED_CHANGED](),X(this,Ma)[Cn.RemotePlayerEventType.PLAYER_STATE_CHANGED]()}},Ib=function(){!Cn||X(this,Ip)||(Ie(this,Ip,!0),DF(X(this,vt).castOptions),X(this,vt).textTracks.addEventListener("change",()=>kt(this,Qn,s0).call(this)),kt(this,Qn,Cb).call(this),Ie(this,wi,new Cn.RemotePlayer),new Cn.RemotePlayerController(X(this,wi)),Ie(this,Ma,{[Cn.RemotePlayerEventType.IS_CONNECTED_CHANGED]:({value:t})=>{t===!0?(Ie(this,xc,"connected"),this.dispatchEvent(new Event("connect"))):(kt(this,Qn,rC).call(this),Ie(this,xc,"disconnected"),this.dispatchEvent(new Event("disconnect")))},[Cn.RemotePlayerEventType.DURATION_CHANGED]:()=>{X(this,vt).dispatchEvent(new Event("durationchange"))},[Cn.RemotePlayerEventType.VOLUME_LEVEL_CHANGED]:()=>{X(this,vt).dispatchEvent(new Event("volumechange"))},[Cn.RemotePlayerEventType.IS_MUTED_CHANGED]:()=>{X(this,vt).dispatchEvent(new Event("volumechange"))},[Cn.RemotePlayerEventType.CURRENT_TIME_CHANGED]:()=>{var t;(t=X(this,Qn,Fo))!=null&&t.isMediaLoaded&&X(this,vt).dispatchEvent(new Event("timeupdate"))},[Cn.RemotePlayerEventType.VIDEO_INFO_CHANGED]:()=>{X(this,vt).dispatchEvent(new Event("resize"))},[Cn.RemotePlayerEventType.IS_PAUSED_CHANGED]:()=>{X(this,vt).dispatchEvent(new Event(this.paused?"pause":"play"))},[Cn.RemotePlayerEventType.PLAYER_STATE_CHANGED]:()=>{var t,e;((t=X(this,Qn,Fo))==null?void 0:t.playerState)!==chrome.cast.media.PlayerState.PAUSED&&X(this,vt).dispatchEvent(new Event({[chrome.cast.media.PlayerState.PLAYING]:"playing",[chrome.cast.media.PlayerState.BUFFERING]:"waiting",[chrome.cast.media.PlayerState.IDLE]:"emptied"}[(e=X(this,Qn,Fo))==null?void 0:e.playerState]))},[Cn.RemotePlayerEventType.IS_MEDIA_LOADED_CHANGED]:async()=>{var t;(t=X(this,Qn,Fo))!=null&&t.isMediaLoaded&&(await Promise.resolve(),kt(this,Qn,iC).call(this))}}))},iC=function(){kt(this,Qn,s0).call(this)},s0=async function(){var t,e,n,r,i;if(!X(this,Qn,Fo))return;let s=((e=(t=X(this,wi).mediaInfo)==null?void 0:t.tracks)!=null?e:[]).filter(({type:d})=>d===chrome.cast.media.TrackType.TEXT),a=[...X(this,vt).textTracks].filter(({kind:d})=>d==="subtitles"||d==="captions"),o=s.map(({language:d,name:h,trackId:p})=>{var m;let{mode:g}=(m=a.find(_=>_.language===d&&_.label===h))!=null?m:{};return g?{mode:g,trackId:p}:!1}).filter(Boolean),l=o.filter(({mode:d})=>d!=="showing").map(({trackId:d})=>d),c=o.find(({mode:d})=>d==="showing"),u=(i=(r=(n=JS())==null?void 0:n.getSessionObj().media[0])==null?void 0:r.activeTrackIds)!=null?i:[],f=u;if(u.length&&(f=f.filter(d=>!l.includes(d))),c!=null&&c.trackId&&(f=[...f,c.trackId]),f=[...new Set(f)],!((d,h)=>d.length===h.length&&d.every(p=>h.includes(p)))(u,f))try{let d=new chrome.cast.media.EditTracksInfoRequest(f);await _Z(d)}catch(d){console.error(d)}};var TZ=t=>{var e,n,r,i,s,a,o,l,c;return n=class extends t{constructor(){super(...arguments),Me(this,o),Me(this,r,{paused:!1}),Me(this,i,OF()),Me(this,s),Me(this,a)}get remote(){return X(this,a)?X(this,a):yZ()?(this.disableRemotePlayback||vZ(),bl.set(this,{loadOnPrompt:()=>kt(this,o,c).call(this)}),Ie(this,a,new bZ(this))):super.remote}attributeChangedCallback(u,f,d){if(super.attributeChangedCallback(u,f,d),u==="cast-receiver"&&d){X(this,i).receiverApplicationId=d;return}if(X(this,o,l))switch(u){case"cast-stream-type":case"cast-src":this.load();break}}async load(){var u,f;if(!X(this,o,l))return super.load();let d=new chrome.cast.media.MediaInfo(this.castSrc,this.castContentType);d.customData=this.castCustomData;let h=[...this.querySelectorAll("track")].filter(({kind:_,src:v})=>v&&(_==="subtitles"||_==="captions")),p=[],m=0;h.length&&(d.tracks=h.map(_=>{let v=++m;p.length===0&&_.track.mode==="showing"&&p.push(v);let y=new chrome.cast.media.Track(v,chrome.cast.media.TrackType.TEXT);return y.trackContentId=_.src,y.trackContentType="text/vtt",y.subtype=_.kind==="captions"?chrome.cast.media.TextTrackType.CAPTIONS:chrome.cast.media.TextTrackType.SUBTITLES,y.name=_.label,y.language=_.srclang,y})),this.castStreamType==="live"?d.streamType=chrome.cast.media.StreamType.LIVE:d.streamType=chrome.cast.media.StreamType.BUFFERED,d.metadata=new chrome.cast.media.GenericMediaMetadata,d.metadata.title=this.title,d.metadata.images=[{url:this.poster}];let g=new chrome.cast.media.LoadRequest(d);g.currentTime=(u=super.currentTime)!=null?u:0,g.autoplay=!X(this,r).paused,g.activeTrackIds=p,await((f=JS())==null?void 0:f.loadMedia(g)),this.dispatchEvent(new Event("volumechange"))}play(){var u;if(X(this,o,l)){X(this,o,l).isPaused&&((u=X(this,o,l).controller)==null||u.playOrPause());return}return super.play()}pause(){var u;if(X(this,o,l)){X(this,o,l).isPaused||(u=X(this,o,l).controller)==null||u.playOrPause();return}super.pause()}get castOptions(){return X(this,i)}get castReceiver(){var u;return(u=this.getAttribute("cast-receiver"))!=null?u:void 0}set castReceiver(u){this.castReceiver!=u&&this.setAttribute("cast-receiver",`${u}`)}get castSrc(){var u,f,d;return(d=(f=this.getAttribute("cast-src"))!=null?f:(u=this.querySelector("source"))==null?void 0:u.src)!=null?d:this.currentSrc}set castSrc(u){this.castSrc!=u&&this.setAttribute("cast-src",`${u}`)}get castContentType(){var u;return(u=this.getAttribute("cast-content-type"))!=null?u:void 0}set castContentType(u){this.setAttribute("cast-content-type",`${u}`)}get castStreamType(){var u,f;return(f=(u=this.getAttribute("cast-stream-type"))!=null?u:this.streamType)!=null?f:void 0}set castStreamType(u){this.setAttribute("cast-stream-type",`${u}`)}get castCustomData(){return X(this,s)}set castCustomData(u){let f=typeof u;if(!["object","undefined"].includes(f)){console.error(`castCustomData must be nullish or an object but value was of type ${f}`);return}Ie(this,s,u)}get readyState(){if(X(this,o,l))switch(X(this,o,l).playerState){case chrome.cast.media.PlayerState.IDLE:return 0;case chrome.cast.media.PlayerState.BUFFERING:return 2;default:return 3}return super.readyState}get paused(){return X(this,o,l)?X(this,o,l).isPaused:super.paused}get muted(){var u;return X(this,o,l)?(u=X(this,o,l))==null?void 0:u.isMuted:super.muted}set muted(u){var f;if(X(this,o,l)){(u&&!X(this,o,l).isMuted||!u&&X(this,o,l).isMuted)&&((f=X(this,o,l).controller)==null||f.muteOrUnmute());return}super.muted=u}get volume(){var u,f;return X(this,o,l)?(f=(u=X(this,o,l))==null?void 0:u.volumeLevel)!=null?f:1:super.volume}set volume(u){var f;if(X(this,o,l)){X(this,o,l).volumeLevel=+u,(f=X(this,o,l).controller)==null||f.setVolumeLevel();return}super.volume=u}get duration(){var u,f,d;return X(this,o,l)&&(u=X(this,o,l))!=null&&u.isMediaLoaded?(d=(f=X(this,o,l))==null?void 0:f.duration)!=null?d:NaN:super.duration}get currentTime(){var u,f,d;return X(this,o,l)&&(u=X(this,o,l))!=null&&u.isMediaLoaded?(d=(f=X(this,o,l))==null?void 0:f.currentTime)!=null?d:0:super.currentTime}set currentTime(u){var f;if(X(this,o,l)){X(this,o,l).currentTime=u,(f=X(this,o,l).controller)==null||f.seek();return}super.currentTime=u}},r=new WeakMap,i=new WeakMap,s=new WeakMap,a=new WeakMap,o=new WeakSet,l=function(){var u,f;return(f=(u=bl.get(this.remote))==null?void 0:u.getCastPlayer)==null?void 0:f.call(u)},c=async function(){X(this,r).paused=t0(n.prototype,this,"paused"),t0(n.prototype,this,"pause").call(this),this.muted=t0(n.prototype,this,"muted");try{await this.load()}catch(u){console.error(u)}},St(n,"observedAttributes",[...(e=t.observedAttributes)!=null?e:[],"cast-src","cast-content-type","cast-stream-type","cast-receiver"]),n}
186,Vg=class extends Event{constructor(e,n){super(e),St(this,"track"),this.track=n.track}},kb=new WeakMap;function be(t){var e;return(e=kb.get(t))!=null?e:SZ(t,{})}function SZ(t,e){let n=kb.get(t);return n||kb.set(t,n={}),Object.assign(n,e)}function Pb(t,e){let n=t.videoTracks;be(e).media=t,be(e).renditionSet||(be(e).renditionSet=new Set);let r=be(n).trackSet;r.add(e);let i=r.size-1;i in Ob.prototype||Object.defineProperty(Ob.prototype,i,{get(){return[...be(this).trackSet][i]}}),queueMicrotask(()=>{n.dispatchEvent(new Vg("addtrack",{track:e}))})}function Db(t){var e;let n=(e=be(t).media)==null?void 0:e.videoTracks;n&&(be(n).trackSet.delete(t),queueMicrotask(()=>{n.dispatchEvent(new Vg("removetrack",{track:t}))}))}function wZ(t){var e;let n=(e=be(t).media.videoTracks)!=null?e:[],r=!1;for(let i of n)i!==t&&(i.selected=!1,r=!0);if(r){if(be(n).changeRequested)return;be(n).changeRequested=!0,queueMicrotask(()=>{delete be(n).changeRequested,n.dispatchEvent(new Event("change"))})}}var $o,Bo,Uo,hc,df,Ob=class extends EventTarget{constructor(){super(),Me(this,hc),Me(this,$o),Me(this,Bo),Me(this,Uo),be(this).trackSet=new Set}[Symbol.iterator](){return X(this,hc,df).values()}get length(){return X(this,hc,df).size}getTrackById(t){var e;return(e=[...X(this,hc,df)].find(n=>n.id===t))!=null?e:null}get selectedIndex(){return[...X(this,hc,df)].findIndex(t=>t.selected)}get onaddtrack(){return X(this,$o)}set onaddtrack(t){X(this,$o)&&(this.removeEventListener("addtrack",X(this,$o)),Ie(this,$o,void 0)),typeof t=="function"&&(Ie(this,$o,t),this.addEventListener("addtrack",t))}get onremovetrack(){return X(this,Bo)}set onremovetrack(t){X(this,Bo)&&(this.removeEventListener("removetrack",X(this,Bo)),Ie(this,Bo,void 0)),typeof t=="function"&&(Ie(this,Bo,t),this.addEventListener("removetrack",t))}get onchange(){return X(this,Uo)}set onchange(t){X(this,Uo)&&(this.removeEventListener("change",X(this,Uo)),Ie(this,Uo,void 0)),typeof t=="function"&&(Ie(this,Uo,t),this.addEventListener("change",t))}};$o=new WeakMap,Bo=new WeakMap,Uo=new WeakMap,hc=new WeakSet,df=function(){return be(this).trackSet};var qg=class extends Event{constructor(e,n){super(e),St(this,"rendition"),this.rendition=n.rendition}};function xZ(t,e){let n=be(t).media.videoRenditions;be(e).media=be(t).media,be(e).track=t;let r=be(t).renditionSet;r.add(e);let i=r.size-1;i in Mb.prototype||Object.defineProperty(Mb.prototype,i,{get(){return pc(this)[i]}}),queueMicrotask(()=>{t.selected&&n.dispatchEvent(new qg("addrendition",{rendition:e}))})}function AZ(t){let e=be(t).media.videoRenditions,n=be(t).track;be(n).renditionSet.delete(t),queueMicrotask(()=>{be(t).track.selected&&e.dispatchEvent(new qg("removerendition",{rendition:t}))})}function RZ(t){let e=be(t).media.videoRenditions;!e||be(e).changeRequested||(be(e).changeRequested=!0,queueMicrotask(()=>{delete be(e).changeRequested,be(t).track.selected&&e.dispatchEvent(new Event("change"))}))}function pc(t){return[...be(t).media.videoTracks].filter(e=>e.selected).flatMap(e=>[...be(e).renditionSet])}var Ho,Go,jo,Mb=class extends EventTarget{constructor(){super(...arguments),Me(this,Ho),Me(this,Go),Me(this,jo)}[Symbol.iterator](){return pc(this).values()}get length(){return pc(this).length}getRenditionById(t){var e;return(e=pc(this).find(n=>`${n.id}`==`${t}`))!=null?e:null}get selectedIndex(){return pc(this).findIndex(t=>t.selected)}set selectedIndex(t){for(let[e,n]of pc(this).entries())n.selected=e===t}get onaddrendition(){return X(this,Ho)}set onaddrendition(t){X(this,Ho)&&(this.removeEventListener("addrendition",X(this,Ho)),Ie(this,Ho,void 0)),typeof t=="function"&&(Ie(this,Ho,t),this.addEventListener("addrendition",t))}get onremoverendition(){return X(this,Go)}set onremoverendition(t){X(this,Go)&&(this.removeEventListener("removerendition",X(this,Go)),Ie(this,Go,void 0)),typeof t=="function"&&(Ie(this,Go,t),this.addEventListener("removerendition",t))}get onchange(){return X(this,jo)}set onchange(t){X(this,jo)&&(this.removeEventListener("change",X(this,jo)),Ie(this,jo,void 0)),typeof t=="function"&&(Ie(this,jo,t),this.addEventListener("change",t))}};Ho=new WeakMap,Go=new WeakMap,jo=new WeakMap;var hf,LZ=class{constructor(){St(this,"src"),St(this,"id"),St(this,"width"),St(this,"height"),St(this,"bitrate"),St(this,"frameRate"),St(this,"codec"),Me(this,hf,!1)}get selected(){return X(this,hf)}set selected(t){X(this,hf)!==t&&(Ie(this,hf,t),RZ(this))}};hf=new WeakMap;var pf,NF=class{constructor(){St(this,"id"),St(this,"kind"),St(this,"label",""),St(this,"language",""),St(this,"sourceBuffer"),Me(this,pf,!1)}addRendition(t,e,n,r,i,s){let a=new LZ;return a.src=t,a.width=e,a.height=n,a.frameRate=s,a.bitrate=i,a.codec=r,xZ(this,a),a}removeRendition(t){AZ(t)}get selected(){return X(this,pf)}set selected(t){X(this,pf)!==t&&(Ie(this,pf,t),t===!0&&wZ(this))}};pf=new WeakMap;function CZ(t,e){let n=be(t).media.audioRenditions;be(e).media=be(t).media,be(e).track=t;let r=be(t).renditionSet;r.add(e);let i=r.size-1;
186i in Nb.prototype||Object.defineProperty(Nb.prototype,i,{get(){return mc(this)[i]}}),queueMicrotask(()=>{t.enabled&&n.dispatchEvent(new qg("addrendition",{rendition:e}))})}function IZ(t){let e=be(t).media.audioRenditions,n=be(t).track;be(n).renditionSet.delete(t),queueMicrotask(()=>{be(t).track.enabled&&e.dispatchEvent(new qg("removerendition",{rendition:t}))})}function kZ(t){let e=be(t).media.audioRenditions;!e||be(e).changeRequested||(be(e).changeRequested=!0,queueMicrotask(()=>{delete be(e).changeRequested,be(t).track.enabled&&e.dispatchEvent(new Event("change"))}))}function mc(t){return[...be(t).media.audioTracks].filter(e=>e.enabled).flatMap(e=>[...be(e).renditionSet])}var Vo,qo,Ko,Nb=class extends EventTarget{constructor(){super(...arguments),Me(this,Vo),Me(this,qo),Me(this,Ko)}[Symbol.iterator](){return mc(this).values()}get length(){return mc(this).length}getRenditionById(t){var e;return(e=mc(this).find(n=>`${n.id}`==`${t}`))!=null?e:null}get selectedIndex(){return mc(this).findIndex(t=>t.selected)}set selectedIndex(t){for(let[e,n]of mc(this).entries())n.selected=e===t}get onaddrendition(){return X(this,Vo)}set onaddrendition(t){X(this,Vo)&&(this.removeEventListener("addrendition",X(this,Vo)),Ie(this,Vo,void 0)),typeof t=="function"&&(Ie(this,Vo,t),this.addEventListener("addrendition",t))}get onremoverendition(){return X(this,qo)}set onremoverendition(t){X(this,qo)&&(this.removeEventListener("removerendition",X(this,qo)),Ie(this,qo,void 0)),typeof t=="function"&&(Ie(this,qo,t),this.addEventListener("removerendition",t))}get onchange(){return X(this,Ko)}set onchange(t){X(this,Ko)&&(this.removeEventListener("change",X(this,Ko)),Ie(this,Ko,void 0)),typeof t=="function"&&(Ie(this,Ko,t),this.addEventListener("change",t))}};Vo=new WeakMap,qo=new WeakMap,Ko=new WeakMap;var mf,PZ=class{constructor(){St(this,"src"),St(this,"id"),St(this,"bitrate"),St(this,"codec"),Me(this,mf,!1)}get selected(){return X(this,mf)}set selected(t){X(this,mf)!==t&&(Ie(this,mf,t),kZ(this))}};mf=new WeakMap;function Fb(t,e){let n=t.audioTracks;be(e).media=t,be(e).renditionSet||(be(e).renditionSet=new Set);let r=be(n).trackSet;r.add(e);let i=r.size-1;i in Bb.prototype||Object.defineProperty(Bb.prototype,i,{get(){return[...be(this).trackSet][i]}}),queueMicrotask(()=>{n.dispatchEvent(new Vg("addtrack",{track:e}))})}function $b(t){var e;let n=(e=be(t).media)==null?void 0:e.audioTracks;n&&(be(n).trackSet.delete(t),queueMicrotask(()=>{n.dispatchEvent(new Vg("removetrack",{track:t}))}))}function DZ(t){let e=be(t).media.audioTracks;!e||be(e).changeRequested||(be(e).changeRequested=!0,queueMicrotask(()=>{delete be(e).changeRequested,e.dispatchEvent(new Event("change"))}))}var Wo,zo,Yo,gf,kp,Bb=class extends EventTarget{constructor(){super(),Me(this,gf),Me(this,Wo),Me(this,zo),Me(this,Yo),be(this).trackSet=new Set}[Symbol.iterator](){return X(this,gf,kp).values()}get length(){return X(this,gf,kp).size}getTrackById(t){var e;return(e=[...X(this,gf,kp)].find(n=>n.id===t))!=null?e:null}get onaddtrack(){return X(this,Wo)}set onaddtrack(t){X(this,Wo)&&(this.removeEventListener("addtrack",X(this,Wo)),Ie(this,Wo,void 0)),typeof t=="function"&&(Ie(this,Wo,t),this.addEventListener("addtrack",t))}get onremovetrack(){return X(this,zo)}set onremovetrack(t){X(this,zo)&&(this.removeEventListener("removetrack",X(this,zo)),Ie(this,zo,void 0)),typeof t=="function"&&(Ie(this,zo,t),this.addEventListener("removetrack",t))}get onchange(){return X(this,Yo)}set onchange(t){X(this,Yo)&&(this.removeEventListener("change",X(this,Yo)),Ie(this,Yo,void 0)),typeof t=="function"&&(Ie(this,Yo,t),this.addEventListener("change",t))}};Wo=new WeakMap,zo=new WeakMap,Yo=new WeakMap,gf=new WeakSet,kp=function(){return be(this).trackSet};var yf,FF=class{constructor(){St(this,"id"),St(this,"kind"),St(this,"label",""),St(this,"language",""),St(this,"sourceBuffer"),Me(this,yf,!1)}addRendition(t,e,n){let r=new PZ;return r.src=t,r.codec=e,r.bitrate=n,CZ(this,r),r}removeRendition(t){IZ(t)}get enabled(){return X(this,yf)}set enabled(t){X(this,yf)!==t&&(Ie(this,yf,t),DZ(this))}};yf=new WeakMap;var sC=Xm(globalThis.HTMLMediaElement,"video"),aC=Xm(globalThis.HTMLMediaElement,"audio");function OZ(t){if(!(t!=null&&t.prototype))return t;let e=Xm(t,"video");(!e||`${e}`.includes("[native code]"))&&Object.defineProperty(t.prototype,"videoTracks",{get(){return MZ(this)}});let n=Xm(t,"audio");(!n||`${n}`.includes("[native code]"))&&Object.defineProperty(t.prototype,"audioTracks",{get(){return NZ(this)}}),"addVideoTrack"in t.prototype||(t.prototype.addVideoTrack=function(s,a="",o=""){let l=new NF;return l.kind=s,l.label=a,l.language=o,Pb(this,l),l}),"removeVideoTrack"in t.prototype||(t.prototype.removeVideoTrack=Db),"addAudioTrack"in t.prototype||(t.prototype.addAudioTrack=function(s,a="",o=""){let l=new FF;return l.kind=s,l.label=a,l.language=o,Fb(this,l),l}),"removeAudioTrack"in t.prototype||(t.prototype.removeAudioTrack=$b),"videoRenditions"in t.prototype||Ob
vendor: 11,243 bytes, line 186
186ject.defineProperty(t.prototype,"videoRenditions",{get(){return r(this)}});let r=s=>{let a=be(s).videoRenditions;return a||(a=new Mb,be(a).media=s,be(s).videoRenditions=a),a};"audioRenditions"in t.prototype||Object.defineProperty(t.prototype,"audioRenditions",{get(){return i(this)}});let i=s=>{let a=be(s).audioRenditions;return a||(a=new Nb,be(a).media=s,be(s).audioRenditions=a),a};return t}function Xm(t,e){var n;if(t!=null&&t.prototype)return(n=Object.getOwnPropertyDescriptor(t.prototype,`${e}Tracks`))==null?void 0:n.get}function MZ(t){var e;let n=be(t).videoTracks;if(!n&&(n=new Ob,be(t).videoTracks=n,sC)){let r=sC.call((e=t.nativeEl)!=null?e:t);for(let i of r)Pb(t,i);r.addEventListener("change",()=>{n.dispatchEvent(new Event("change"))}),r.addEventListener("addtrack",i=>{if([...n].some(s=>s instanceof NF)){for(let s of r)Db(s);return}Pb(t,i.track)}),r.addEventListener("removetrack",i=>{Db(i.track)})}return n}function NZ(t){var e;let n=be(t).audioTracks;if(!n&&(n=new Bb,be(t).audioTracks=n,aC)){let r=aC.call((e=t.nativeEl)!=null?e:t);for(let i of r)Fb(t,i);r.addEventListener("change",()=>{n.dispatchEvent(new Event("change"))}),r.addEventListener("addtrack",i=>{if([...n].some(s=>s instanceof FF)){for(let s of r)$b(s);return}Fb(t,i.track)}),r.addEventListener("removetrack",i=>{$b(i.track)})}return n}CF.push("castchange","entercast","leavecast");var de={BEACON_COLLECTION_DOMAIN:"beacon-collection-domain",CUSTOM_DOMAIN:"custom-domain",DEBUG:"debug",DISABLE_TRACKING:"disable-tracking",DISABLE_COOKIES:"disable-cookies",DRM_TOKEN:"drm-token",PLAYBACK_TOKEN:"playback-token",ENV_KEY:"env-key",MAX_RESOLUTION:"max-resolution",MIN_RESOLUTION:"min-resolution",RENDITION_ORDER:"rendition-order",PROGRAM_START_TIME:"program-start-time",PROGRAM_END_TIME:"program-end-time",ASSET_START_TIME:"asset-start-time",ASSET_END_TIME:"asset-end-time",METADATA_URL:"metadata-url",PLAYBACK_ID:"playback-id",PLAYER_SOFTWARE_NAME:"player-software-name",PLAYER_SOFTWARE_VERSION:"player-software-version",PLAYER_INIT_TIME:"player-init-time",PREFER_CMCD:"prefer-cmcd",PREFER_PLAYBACK:"prefer-playback",START_TIME:"start-time",STREAM_TYPE:"stream-type",TARGET_LIVE_WINDOW:"target-live-window",LIVE_EDGE_OFFSET:"live-edge-offset",TYPE:"type"},FZ=Object.values(de),oC=cZ(),lC="mux-video",us,vf,Pp,_f,Dp,Op,Mp,Np,Fp,Ef,$p,$Z=class extends r0{constructor(){super(),Me(this,Ef),Me(this,us),Me(this,vf),Me(this,Pp),Me(this,_f,{}),Me(this,Dp,{}),Me(this,Op),Me(this,Mp),Me(this,Np),Me(this,Fp),Ie(this,Pp,DQ())}static get NAME(){return lC}static get VERSION(){return oC}static get observedAttributes(){var t;return[...FZ,...(t=r0.observedAttributes)!=null?t:[]]}get preferCmcd(){var t;return(t=this.getAttribute(de.PREFER_CMCD))!=null?t:void 0}set preferCmcd(t){t!==this.preferCmcd&&(t?GL.includes(t)?this.setAttribute(de.PREFER_CMCD,t):console.warn(`Invalid value for preferCmcd. Must be one of ${GL.join()}`):this.removeAttribute(de.PREFER_CMCD))}get playerInitTime(){return this.hasAttribute(de.PLAYER_INIT_TIME)?+this.getAttribute(de.PLAYER_INIT_TIME):X(this,Pp)}set playerInitTime(t){t!=this.playerInitTime&&(t==null?this.removeAttribute(de.PLAYER_INIT_TIME):this.setAttribute(de.PLAYER_INIT_TIME,`${+t}`))}get playerSoftwareName(){var t;return(t=X(this,Np))!=null?t:lC}set playerSoftwareName(t){Ie(this,Np,t)}get playerSoftwareVersion(){var t;return(t=X(this,Mp))!=null?t:oC}set playerSoftwareVersion(t){Ie(this,Mp,t)}get _hls(){var t;return(t=X(this,us))==null?void 0:t.engine}get mux(){var t;return(t=this.nativeEl)==null?void 0:t.mux}get error(){var t;return(t=vF(this.nativeEl))!=null?t:null}get errorTranslator(){return X(this,Fp)}set errorTranslator(t){Ie(this,Fp,t)}get src(){return this.getAttribute("src")}set src(t){t!==this.src&&(t==null?this.removeAttribute("src"):this.setAttribute("src",t))}get type(){var t;return(t=this.getAttribute(de.TYPE))!=null?t:void 0}set type(t){t!==this.type&&(t?this.setAttribute(de.TYPE,t):this.removeAttribute(de.TYPE))}get autoplay(){let t=this.getAttribute("autoplay");return t===null?!1:t===""?!0:t}set autoplay(t){let e=this.autoplay;t!==e&&(t?this.setAttribute("autoplay",typeof t=="string"?t:""):this.removeAttribute("autoplay"))}get preload(){let t=this.getAttribute("preload");return t===""?"auto":["none","metadata","auto"].includes(t)?t:super.preload}set preload(t){t!=this.getAttribute("preload")&&(["","none","metadata","auto"].includes(t)?this.setAttribute("preload",t):this.removeAttribute("preload"))}get debug(){return this.getAttribute(de.DEBUG)!=null}set debug(t){t!==this.debug&&(t?this.setAttribute(de.DEBUG,""):this.removeAttribute(de.DEBUG))}get disableTracking(){return this.hasAttribute(de.DISABLE_TRACKING)}set disableTracking(t){t!==this.disableTracking&&this.toggleAttribute(de.DISABLE_TRACKING,!!t)}get disableCookies(){return this.hasAttribute(de.DISABLE_COOKIES)}set disableCookies(t){t!==this.disableCookies&&(t?this.setAttribute(de.DISABLE_COOKIES,""):this.removeAttribute(de.DISABLE_COOKIES))}get startTime(){let t=this.getAttribute(de.START_TIME);if(t==null)return;let e=+t;return Number.isNaN(e)?void 0:e}set startTime(t){t!==this.startTime&&(t==null?this.removeAttribute(de.START_TIME):this.setAttribute(de.START_TIME,`${t}`))}get playbackId(){var t;return this.hasAttribute(de.PLAYBACK_ID)?this.getAttribute(de.PLAYBACK_ID):(t=yF(this.src))!=null?t:void 0}set playbackId(t){t!==this.playbackId&&(t?this.setAttribute(de.PLAYBACK_ID,t):this.removeAttribute(de.PLAYBACK_ID))}get maxResolution(){var t;return(t=this.getAttribute(de.MAX_RESOLUTION))!=null?t:void 0}set maxResolution(t){t!==this.maxResolution&&(t?this.setAttribute(de.MAX_RESOLUTION,t):this.removeAttribute(de.MAX_RESOLUTION))}get minResolution(){var t;return(t=this.getAttribute(de.MIN_RESOLUTION))!=null?t:void 0}set minResolution(t){t!==this.minResolution&&(t?this.setAttribute(de.MIN_RESOLUTION,t):this.removeAttribute(de.MIN_RESOLUTION))}get renditionOrder(){var t;return(t=this.getAttribute(de.RENDITION_ORDER))!=null?t:void 0}set renditionOrder(t){t!==this.renditionOrder&&(t?this.setAttribute(de.RENDITION_ORDER,t):this.removeAttribute(de.RENDITION_ORDER))}get programStartTime(){let t=this.getAttribute(de.PROGRAM_START_TIME);if(t==null)return;let e=+t;return Number.isNaN(e)?void 0:e}set programStartTime(t){t==null?this.removeAttribute(de.PROGRAM_START_TIME):this.setAttribute(de.PROGRAM_START_TIME,`${t}`)}get programEndTime(){let t=this.getAttribute(de.PROGRAM_END_TIME);if(t==null)return;let e=+t;return Number.isNaN(e)?void 0:e}set programEndTime(t){t==null?this.removeAttribute(de.PROGRAM_END_TIME):this.setAttribute(de.PROGRAM_END_TIME,`${t}`)}get assetStartTime(){let t=this.getAttribute(de.ASSET_START_TIME);if(t==null)return;let e=+t;return Number.isNaN(e)?void 0:e}set assetStartTime(t){t==null?this.removeAttribute(de.ASSET_START_TIME):this.setAttribute(de.ASSET_START_TIME,`${t}`)}get assetEndTime(){let t=this.getAttribute(de.ASSET_END_TIME);if(t==null)return;let e=+t;return Number.isNaN(e)?void 0:e}set assetEndTime(t){t==null?this.removeAttribute(de.ASSET_END_TIME):this.setAttribute(de.ASSET_END_TIME,`${t}`)}get customDomain(){var t;return(t=this.getAttribute(de.CUSTOM_DOMAIN))!=null?t:void 0}set customDomain(t){t!==this.customDomain&&(t?this.setAttribute(de.CUSTOM_DOMAIN,t):this.removeAttribute(de.CUSTOM_DOMAIN))}get drmToken(){var t;return(t=this.getAttribute(de.DRM_TOKEN))!=null?t:void 0}set drmToken(t){t!==this.drmToken&&(t?this.setAttribute(de.DRM_TOKEN,t):this.removeAttribute(de.DRM_TOKEN))}get playbackToken(){var t,e,n,r;if(this.hasAttribute(de.PLAYBACK_TOKEN))return(t=this.getAttribute(de.PLAYBACK_TOKEN))!=null?t:void 0;if(this.hasAttribute(de.PLAYBACK_ID)){let[,i]=VS((e=this.playbackId)!=null?e:"");return(n=new URLSearchParams(i).get("token"))!=null?n:void 0}if(this.src)return(r=new URLSearchParams(this.src).get("token"))!=null?r:void 0}set playbackToken(t){t!==this.playbackToken&&(t?this.setAttribute(de.PLAYBACK_TOKEN,t):this.removeAttribute(de.PLAYBACK_TOKEN))}get tokens(){let t=this.getAttribute(de.PLAYBACK_TOKEN),e=this.getAttribute(de.DRM_TOKEN);return{...X(this,Dp),...t!=null?{playback:t}:{},...e!=null?{drm:e}:{}}}set tokens(t){Ie(this,Dp,t??{})}get ended(){return bF(this.nativeEl,this._hls)}get envKey(){var t;return(t=this.getAttribute(de.ENV_KEY))!=null?t:void 0}set envKey(t){t!==this.envKey&&(t?this.setAttribute(de.ENV_KEY,t):this.removeAttribute(de.ENV_KEY))}get beaconCollectionDomain(){var t;return(t=this.getAttribute(de.BEACON_COLLECTION_DOMAIN))!=null?t:void 0}set beaconCollectionDomain(t){t!==this.beaconCollectionDomain&&(t?this.setAttribute(de.BEACON_COLLECTION_DOMAIN,t):this.removeAttribute(de.BEACON_COLLECTION_DOMAIN))}get streamType(){var t;return(t=this.getAttribute(de.STREAM_TYPE))!=null?t:Ab(this.nativeEl)}set streamType(t){t!==this.streamType&&(t?this.setAttribute(de.STREAM_TYPE,t):this.removeAttribute(de.STREAM_TYPE))}get targetLiveWindow(){return this.hasAttribute(de.TARGET_LIVE_WINDOW)?+this.getAttribute(de.TARGET_LIVE_WINDOW):FQ(this.nativeEl)}set targetLiveWindow(t){t!=this.targetLiveWindow&&(t==null?this.removeAttribute(de.TARGET_LIVE_WINDOW):this.setAttribute(de.TARGET_LIVE_WINDOW,`${+t}`))}get liveEdgeStart(){var t,e;if(this.hasAttribute(de.LIVE_EDGE_OFFSET)){let{liveEdgeOffset:n}=this,r=(t=this.nativeEl.seekable.end(0))!=null?t:0,i=(e=this.nativeEl.seekable.start(0))!=null?e:0;return Math.max(i,r-n)}return $Q(this.nativeEl)}get liveEdgeOffset(){if(this.hasAttribute(de.LIVE_EDGE_OFFSET))return+this.getAttribute(de.LIVE_EDGE_OFFSET)}set liveEdgeOffset(t){t!=this.liveEdgeOffset&&(t==null?this.removeAttribute(de.LIVE_EDGE_OFFSET):this.setAttribute(de.LIVE_EDGE_OFFSET,`${+t}`))}get seekable(){return WS(this.nativeEl)}async addCuePoints(t){return cF(this.nativeEl,t)}get activeCuePoint(){return uF(this.nativeEl)}get cuePoints(){return dQ(this.nativeEl)}async addChapters(t){return dF(this.nativeEl,t)}get activeChapter(){return hF(this.nativeEl)}get chapters(){return pQ(this.nativeEl)}getStartDate(){return gQ(this.nativeEl,this._hls)}get currentPdt(){return yQ(this.nativeEl,this._hls)}get preferPlayback(){let t=this.getAttribute(de.PREFER_PLAYBACK);if(t===wc.MSE||t===wc.NATIVE)return t}set preferPlayback(t){t!==this.preferPlayback&&(t===wc.MSE||t===wc.NATIVE?this.setAttribute(de.PREFER_PLAYBACK,t):this.removeAttribute(de.PREFER_PLAYBACK))}get metadata(){return{...this.getAttributeNames().filter(t=>t.startsWith("metadata-")&&![de.METADATA_URL].includes(t)).reduce((t,e)=>{let n=this.getAttribute(e);return n!=null&&(t[e.replace(/^metadata-/,"").replace(/-/g,"_")]=n),t},{}),...X(this,_f)}}set metadata(t){Ie(this,_f,t??{}),this.mux&&this.mux.emit("hb",X(this,_f))}get _hlsConfig(){return X(this,Op)}set _hlsConfig(t){Ie(this,Op,t)}load(){Ie(this,us,HQ(this,this.nativeEl,X(this,us)))}unload(){TF(this.nativeEl,X(this,us)),Ie(this,us,void 0)}attributeChangedCallback(t,e,n){var r,i;switch(r0.observedAttributes.includes(t)&&!["src","autoplay","preload"].includes(t)&&super.attributeChangedCallback(t,e,n),t){case de.PLAYER_SOFTWARE_NAME:this.playerSoftwareName=n??void 0;break;case de.PLAYER_SOFTWARE_VERSION:this.playerSoftwareVersion=n??void 0;break;case"src":{let s=!!e,a=!!n;!s&&a?kt(this,Ef,$p).call(this):s&&!a?this.unload():s&&a&&(this.unload(),kt(this,Ef,$p).call(this));break}
186case"autoplay":if(n===e)break;(r=X(this,us))==null||r.setAutoplay(this.autoplay);break;case"preload":if(n===e)break;(i=X(this,us))==null||i.setPreload(n);break;case de.PLAYBACK_ID:this.src=MQ(this);break;case de.DEBUG:{let s=this.debug;this.mux&&console.info("Cannot toggle debug mode of mux data after initialization. Make sure you set all metadata to override before setting the src."),this._hls&&(this._hls.config.debug=s);break}case de.METADATA_URL:n&&fetch(n).then(s=>s.json()).then(s=>this.metadata=s).catch(()=>console.error(`Unable to load or parse metadata JSON from metadata-url ${n}!`));break;case de.STREAM_TYPE:(n==null||n!==e)&&this.dispatchEvent(new CustomEvent("streamtypechange",{composed:!0,bubbles:!0}));break;case de.TARGET_LIVE_WINDOW:(n==null||n!==e)&&this.dispatchEvent(new CustomEvent("targetlivewindowchange",{composed:!0,bubbles:!0,detail:this.targetLiveWindow}));break}}connectedCallback(){var t;(t=super.connectedCallback)==null||t.call(this),this.nativeEl&&this.src&&!X(this,us)&&kt(this,Ef,$p).call(this)}disconnectedCallback(){this.unload()}};us=new WeakMap,vf=new WeakMap,Pp=new WeakMap,_f=new WeakMap,Dp=new WeakMap,Op=new WeakMap,Mp=new WeakMap,Np=new WeakMap,Fp=new WeakMap,Ef=new WeakSet,$p=async function(){X(this,vf)||(await Ie(this,vf,Promise.resolve()),Ie(this,vf,null),this.load())};var Bp,cC=class extends TZ(OZ($Z)){constructor(){super(...arguments),Me(this,Bp)}get muxCastCustomData(){return{mux:{playbackId:this.playbackId,minResolution:this.minResolution,maxResolution:this.maxResolution,renditionOrder:this.renditionOrder,customDomain:this.customDomain,tokens:{drm:this.drmToken},envKey:this.envKey,metadata:this.metadata,disableCookies:this.disableCookies,disableTracking:this.disableTracking,beaconCollectionDomain:this.beaconCollectionDomain,startTime:this.startTime,preferCmcd:this.preferCmcd}}}get castCustomData(){var t;return(t=X(this,Bp))!=null?t:this.muxCastCustomData}set castCustomData(t){Ie(this,Bp,t)}};Bp=new WeakMap;n0.customElements.get("mux-video")||(n0.customElements.define("mux-video",cC),n0.MuxVideoElement=cC);function uC(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function ZS(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:uC(e[n])&&uC(t[n])&&Object.keys(e[n]).length>0&&ZS(t[n],e[n])})}const $F={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Vn(){const t=typeof document<"u"?document:{};return ZS(t,$F),t}const BZ={document:$F,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function Kt(){const t=typeof window<"u"?window:{};return ZS(t,BZ),t}function La(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function UZ(t){const e=t;Object.keys(e).forEach(n=>{try{e[n]=null}catch{}try{delete e[n]}catch{}})}function Fl(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Li(){return Date.now()}function HZ(t){const e=Kt();let n;return e.getComputedStyle&&(n=e.getComputedStyle(t,null)),!n&&t.currentStyle&&(n=t.currentStyle),n||(n=t.style),n}function Ub(t,e){e===void 0&&(e="x");const n=Kt();let r,i,s;const a=HZ(t);return n.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(o=>o.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(i==="none"?"":i)):(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),e==="x"&&(n.WebKitCSSMatrix?i=s.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),e==="y"&&(n.WebKitCSSMatrix?i=s.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function bf(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function GZ(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function li(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const r=n<0||arguments.length<=n?void 0:arguments[n];if(r!=null&&!GZ(r)){const i=Object.keys(Object(r)).filter(s=>e.indexOf(s)<0);for(let s=0,a=i.length;s<a;s+=1){const o=i[s],l=Object.getOwnPropertyDescriptor(r,o);l!==void 0&&l.enumerable&&(bf(t[o])&&bf(r[o])?r[o].__swiper__?t[o]=r[o]:li(t[o],r[o]):!bf(t[o])&&bf(r[o])?(t[o]={},r[o].__swiper__?t[o]=r[o]:li(t[o],r[o])):t[o]=r[o])}}}return t}function Tf(t,e,n){t.style.setProperty(e,n)}function BF(t){let{swiper:e,targetPosition:n,side:r}=t;const i=Kt(),s=-e.translate;let a=null,o;const l=e.params.speed;e.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(e.cssModeFrameID);const c=n>s?"next":"prev",u=(d,h)=>c==="next"&&d>=h||c==="prev"&&d<=h,f=()=>{o=new Date().getTime(),a===null&&(a=o);const d=Math.max(Math.min((o-a)/l,1),0),h=.5-Math.cos(d*Math.PI)/2;let p=s+h*(n-s);if(u(p,n)&&(p=n),e.wrapperEl.scrollTo({[r]:p}),u(p,n)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[r]:p})}),i.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=i.requestAnimationFrame(f)};f()}function Kl(t){return t.querySelector(".swiper-slide-transform")||t.shadowRoot&&t.shadowRoot.querySelector(".swiper-slide-transform")||t}function ir(t,e){e===void 0&&(e="");const n=Kt(),r=[...t.children];return n.HTMLSlotElement&&t instanceof HTMLSlotElement&&r.push(...t.assignedElements()),e?r.filter(i=>i.matches(e)):r}function jZ(t,e){var r,i;const n=[e];for(;n.length>0;){const s=n.shift();if(t===s)return!0;n.push(...s.children,...((r=s.shadowRoot)==null?void 0:r.children)||[],...((i=s.assignedElements)==null?void 0:i.call(s))||[])}}function VZ(t,e){const n=Kt();let r=e.contains(t);return!r&&n.HTMLSlotElement&&e instanceof HTMLSlotElement&&(r=[...e.assignedElements()].includes(t),r||(r=jZ(t,e))),r}function Jm(t){try{console.warn(t);return}catch{}}function pi(t,e){e===void 0&&(e=[]);const n=document.createElement(t);return n.classList.add(...Array.isArray(e)?e:La(e)),n}function Qm(t){const e=Kt(),n=Vn(),r=t.getBoundingClientRect(),i=n.body,s=t.clientTop||i.clientTop||0,a=t.clientLeft||i.clientLeft||0,o=t===e?e.scrollY:t.scrollTop,l=t===e?e.scrollX:t.scrollLeft;return{top:r.top+o-s,left:r.left+l-a}}function qZ(t,e){const n=[];for(;t.previousElementSibling;){const r=t.previousElementSibling;e?r.matches(e)&&n.push(r):n.push(r),t=r}return n}function KZ(t,e){const n=[];for(;t.nextElementSibling;){const r=t.nextElementSibling;e?r.matches(e)&&n.push(r):n.push(r),t=r}return n}function Va(t,e){return Kt().getComputedStyle(t,null).getPropertyValue(e)}function Cd(t){let e=t,n;if(e){for(n=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(n+=1);return n}}function Tl(t,e){const n=[];let r=t.parentElement;for(;r;)e?r.matches(e)&&n.push(r):n.push(r),r=r.parentElement;return n}function Zf(t,e){function n(r){r.target===t&&(e.call(t,r),t.removeEventListener("transitionend",n))}e&&t.addEventListener("transitionend",n)}function Hb(t,e,n){const r=Kt();return t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}function at(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function Kg(t){return e=>Math.abs(e)>0&&t.browser&&t.browser.need3dFix&&Math.abs(e)%90===0?e+.001:e}let a0;function WZ(){const t=Kt(),e=Vn();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function UF(){return a0||(a0=WZ()),a0}let o0;function zZ(t){let{userAgent:e}=t===void 0?{}:t;const n=UF(),r=Kt(),i=r.navigator.platform,s=e||r.navigator.userAgent,a={ios:!1,android:!1},o=r.screen.width,l=r.screen.height,c=s.match(/(Android);?[\s\/]+([\d.]+)?/);let u=s.match(/(iPad).*OS\s([\d_]+)/);const f=s.match(/(iPod)(.*OS\s([\d_]+))?/),d=!u&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=i==="Win32";let p=i==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&p&&n.touch&&m.indexOf(`${o}x${l}`)>=0&&(u=s.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),p=!1),c&&!h&&(a.os="android",a.android=!0),(u||d||f)&&(a.os="ios",a.ios=!0),a}function HF(t){return t===void 0&&(t={}),o0||(o0=zZ(t)),o0}let l0;function YZ(){const t=Kt(),e=HF();let n=!1;function r(){const o=t.navigator.userAgent.toLowerCase();return o.indexOf("safari")>=0&&o.indexOf("chrome")<0&&o.indexOf("android")<0}if(r()){const o=String(t.navigator.userAgent);if(o.includes("Version/")){const[l,c]=o.split("Version/")[1].split(" ")[0].split(".").map(u=>Number(u));n=l<16||l===16&&c<2}}
vendor: 15,646 bytes, line 186
186const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),s=r(),a=s||i&&e.ios;return{isSafari:n||s,needPerspectiveFix:n,need3dFix:a,isWebView:i}}function XZ(){return l0||(l0=YZ()),l0}function JZ(t){let{swiper:e,on:n,emit:r}=t;const i=Kt();let s=null,a=null;const o=()=>{!e||e.destroyed||!e.initialized||(r("beforeResize"),r("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(s=new ResizeObserver(f=>{a=i.requestAnimationFrame(()=>{const{width:d,height:h}=e;let p=d,m=h;f.forEach(g=>{let{contentBoxSize:_,contentRect:v,target:y}=g;y&&y!==e.el||(p=v?v.width:(_[0]||_).inlineSize,m=v?v.height:(_[0]||_).blockSize)}),(p!==d||m!==h)&&o()})}),s.observe(e.el))},c=()=>{a&&i.cancelAnimationFrame(a),s&&s.unobserve&&e.el&&(s.unobserve(e.el),s=null)},u=()=>{!e||e.destroyed||!e.initialized||r("orientationchange")};n("init",()=>{if(e.params.resizeObserver&&typeof i.ResizeObserver<"u"){l();return}i.addEventListener("resize",o),i.addEventListener("orientationchange",u)}),n("destroy",()=>{c(),i.removeEventListener("resize",o),i.removeEventListener("orientationchange",u)})}function QZ(t){let{swiper:e,extendParams:n,on:r,emit:i}=t;const s=[],a=Kt(),o=function(u,f){f===void 0&&(f={});const d=a.MutationObserver||a.WebkitMutationObserver,h=new d(p=>{if(e.__preventObserver__)return;if(p.length===1){i("observerUpdate",p[0]);return}const m=function(){i("observerUpdate",p[0])};a.requestAnimationFrame?a.requestAnimationFrame(m):a.setTimeout(m,0)});h.observe(u,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:e.isElement||(typeof f.childList>"u"?!0:f).childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),s.push(h)},l=()=>{if(e.params.observer){if(e.params.observeParents){const u=Tl(e.hostEl);for(let f=0;f<u.length;f+=1)o(u[f])}o(e.hostEl,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1})}},c=()=>{s.forEach(u=>{u.disconnect()}),s.splice(0,s.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",l),r("destroy",c)}var ZZ={on(t,e,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;const i=n?"unshift":"push";return t.split(" ").forEach(s=>{r.eventsListeners[s]||(r.eventsListeners[s]=[]),r.eventsListeners[s][i](e)}),r},once(t,e,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;function i(){r.off(t,i),i.__emitterProxy&&delete i.__emitterProxy;for(var s=arguments.length,a=new Array(s),o=0;o<s;o++)a[o]=arguments[o];e.apply(r,a)}return i.__emitterProxy=e,r.on(t,i,n)},onAny(t,e){const n=this;if(!n.eventsListeners||n.destroyed||typeof t!="function")return n;const r=e?"unshift":"push";return n.eventsAnyListeners.indexOf(t)<0&&n.eventsAnyListeners[r](t),n},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const n=e.eventsAnyListeners.indexOf(t);return n>=0&&e.eventsAnyListeners.splice(n,1),e},off(t,e){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||t.split(" ").forEach(r=>{typeof e>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,s)=>{(i===e||i.__emitterProxy&&i.__emitterProxy===e)&&n.eventsListeners[r].splice(s,1)})}),n},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,n,r;for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return typeof s[0]=="string"||Array.isArray(s[0])?(e=s[0],n=s.slice(1,s.length),r=t):(e=s[0].events,n=s[0].data,r=s[0].context||t),n.unshift(r),(Array.isArray(e)?e:e.split(" ")).forEach(l=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(r,[l,...n])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(c=>{c.apply(r,n)})}),t}};function eee(){const t=this;let e,n;const r=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=r.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?n=t.params.height:n=r.clientHeight,!(e===0&&t.isHorizontal()||n===0&&t.isVertical())&&(e=e-parseInt(Va(r,"padding-left")||0,10)-parseInt(Va(r,"padding-right")||0,10),n=n-parseInt(Va(r,"padding-top")||0,10)-parseInt(Va(r,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(n)&&(n=0),Object.assign(t,{width:e,height:n,size:t.isHorizontal()?e:n}))}function tee(){const t=this;function e(x,L){return parseFloat(x.getPropertyValue(t.getDirectionLabel(L))||0)}const n=t.params,{wrapperEl:r,slidesEl:i,size:s,rtlTranslate:a,wrongRTL:o}=t,l=t.virtual&&n.virtual.enabled,c=l?t.virtual.slides.length:t.slides.length,u=ir(i,`.${t.params.slideClass}, swiper-slide`),f=l?t.virtual.slides.length:u.length;let d=[];const h=[],p=[];let m=n.slidesOffsetBefore;typeof m=="function"&&(m=n.slidesOffsetBefore.call(t));let g=n.slidesOffsetAfter;typeof g=="function"&&(g=n.slidesOffsetAfter.call(t));const _=t.snapGrid.length,v=t.slidesGrid.length;let y=n.spaceBetween,E=-m,b=0,T=0;if(typeof s>"u")return;typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*s:typeof y=="string"&&(y=parseFloat(y)),t.virtualSize=-y,u.forEach(x=>{a?x.style.marginLeft="":x.style.marginRight="",x.style.marginBottom="",x.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(Tf(r,"--swiper-centered-offset-before",""),Tf(r,"--swiper-centered-offset-after",""));const S=n.grid&&n.grid.rows>1&&t.grid;S?t.grid.initSlides(u):t.grid&&t.grid.unsetSlides();let A;const w=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(x=>typeof n.breakpoints[x].slidesPerView<"u").length>0;for(let x=0;x<f;x+=1){A=0;let L;if(u[x]&&(L=u[x]),S&&t.grid.updateSlide(x,L,u),!(u[x]&&Va(L,"display")==="none")){if(n.slidesPerView==="auto"){w&&(u[x].style[t.getDirectionLabel("width")]="");const R=getComputedStyle(L),k=L.style.transform,F=L.style.webkitTransform;if(k&&(L.style.transform="none"),F&&(L.style.webkitTransform="none"),n.roundLengths)A=t.isHorizontal()?Hb(L,"width"):Hb(L,"height");else{const U=e(R,"width"),H=e(R,"padding-left"),M=e(R,"padding-right"),O=e(R,"margin-left"),q=e(R,"margin-right"),P=R.getPropertyValue("box-sizing");if(P&&P==="border-box")A=U+O+q;else{const{clientWidth:ae,offsetWidth:ce}=L;A=U+H+M+O+q+(ce-ae)}}k&&(L.style.transform=k),F&&(L.style.webkitTransform=F),n.roundLengths&&(A=Math.floor(A))}else A=(s-(n.slidesPerView-1)*y)/n.slidesPerView,n.roundLengths&&(A=Math.floor(A)),u[x]&&(u[x].style[t.getDirectionLabel("width")]=`${A}px`);u[x]&&(u[x].swiperSlideSize=A),p.push(A),n.centeredSlides?(E=E+A/2+b/2+y,b===0&&x!==0&&(E=E-s/2-y),x===0&&(E=E-s/2-y),Math.abs(E)<1/1e3&&(E=0),n.roundLengths&&(E=Math.floor(E)),T%n.slidesPerGroup===0&&d.push(E),h.push(E)):(n.roundLengths&&(E=Math.floor(E)),(T-Math.min(t.params.slidesPerGroupSkip,T))%t.params.slidesPerGroup===0&&d.push(E),h.push(E),E=E+A+y),t.virtualSize+=A+y,b=A,T+=1}}if(t.virtualSize=Math.max(t.virtualSize,s)+g,a&&o&&(n.effect==="slide"||n.effect==="coverflow")&&(r.style.width=`${t.virtualSize+y}px`),n.setWrapperSize&&(r.style[t.getDirectionLabel("width")]=`${t.virtualSize+y}px`),S&&t.grid.updateWrapperSize(A,d),!n.centeredSlides){const x=[];for(let L=0;L<d.length;L+=1){let R=d[L];n.roundLengths&&(R=Math.floor(R)),d[L]<=t.virtualSize-s&&x.push(R)}d=x,Math.floor(t.virtualSize-s)-Math.floor(d[d.length-1])>1&&d.push(t.virtualSize-s)}if(l&&n.loop){const x=p[0]+y;if(n.slidesPerGroup>1){const L=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/n.slidesPerGroup),R=x*n.slidesPerGroup;for(let k=0;k<L;k+=1)d.push(d[d.length-1]+R)}for(let L=0;L<t.virtual.slidesBefore+t.virtual.slidesAfter;L+=1)n.slidesPerGroup===1&&d.push(d[d.length-1]+x),h.push(h[h.length-1]+x),t.virtualSize+=x}if(d.length===0&&(d=[0]),y!==0){const x=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");u.filter((L,R)=>!n.cssMode||n.loop?!0:R!==u.length-1).forEach(L=>{L.style[x]=`${y}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let x=0;p.forEach(R=>{x+=R+(y||0)}),x-=y;const L=x>s?x-s:0;d=d.map(R=>R<=0?-m:R>L?L+g:R)}if(n.centerInsufficientSlides){let x=0;p.forEach(R=>{x+=R+(y||0)}),x-=y;const L=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(x+L<s){const R=(s-x-L)/2;d.forEach((k,F)=>{d[F]=k-R}),h.forEach((k,F)=>{h[F]=k+R})}}if(Object.assign(t,{slides:u,snapGrid:d,slidesGrid:h,slidesSizesGrid:p}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Tf(r,"--swiper-centered-offset-before",`${-d[0]}px`),Tf(r,"--swiper-centered-offset-after",`${t.size/2-p[p.length-1]/2}px`);const x=-t.snapGrid[0],L=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(R=>R+x),t.slidesGrid=t.slidesGrid.map(R=>R+L)}if(f!==c&&t.emit("slidesLengthChange"),d.length!==_&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),h.length!==v&&t.emit("slidesGridLengthChange"),n.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!l&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const x=`${n.containerModifierClass}backface-hidden`,L=t.el.classList.contains(x);f<=n.maxBackfaceHiddenSlides?L||t.el.classList.add(x):L&&t.el.classList.remove(x)}}function nee(t){const e=this,n=[],r=e.virtual&&e.params.virtual.enabled;let i=0,s;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const a=o=>r?e.slides[e.getSlideIndexByData(o)]:e.slides[o];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(o=>{n.push(o)});else for(s=0;s<Math.ceil(e.params.slidesPerView);s+=1){const o=e.activeIndex+s;if(o>e.slides.length&&!r)break;n.push(a(o))}else n.push(a(e.activeIndex));for(s=0;s<n.length;s+=1)if(typeof n[s]<"u"){const o=n[s].offsetHeight;i=o>i?o:i}(i||i===0)&&(e.wrapperEl.style.height=`${i}px`)}function ree(){const t=this,e=t.slides,n=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let r=0;r<e.length;r+=1)e[r].swiperSlideOffset=(t.isHorizontal()?e[r].offsetLeft:e[r].offsetTop)-n-t.cssOverflowAdjustment()}const fC=(t,e,n)=>{e&&!t.classList.contains(n)?t.classList.add(n):!e&&t.classList.contains(n)&&t.classList.remove(n)};function iee(t){t===void 0&&(t=this&&this.translate||0);const e=this,n=e.params,{slides:r,rtlTranslate:i,snapGrid:s}=e;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;i&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let o=n.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*e.size:typeof o=="string"&&(o=parseFloat(o));for(let l=0;l<r.length;l+=1){const c=r[l];let u=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=r[0].swiperSlideOffset);const f=(a+(n.centeredSlides?e.minTranslate():0)-u)/(c.swiperSlideSize+o),d=(a-s[0]+(n.centeredSlides?e.minTranslate():0)-u)/(c.swiperSlideSize+o),h=-(a-u),p=h+e.slidesSizesGrid[l],m=h>=0&&h<=e.size-e.slidesSizesGrid[l],g=h>=0&&h<e.size-1||p>1&&p<=e.size||h<=0&&p>=e.size;g&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(l)),fC(c,g,n.slideVisibleClass),fC(c,m,n.slideFullyVisibleClass),c.progress=i?-f:f,c.originalProgress=i?-d:d}}function see(t){const e=this;if(typeof t>"u"){const u=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*u||0}const n=e.params,r=e.maxTranslate()-e.minTranslate();let{progress:i,isBeginning:s,isEnd:a,progressLoop:o}=e;const l=s,c=a;if(r===0)i=0,s=!0,a=!0;else{i=(t-e.minTranslate())/r;const u=Math.abs(t-e.minTranslate())<1,f=Math.abs(t-e.maxTranslate())<1;s=u||i<=0,a=f||i>=1,u&&(i=0),f&&(i=1)}if(n.loop){const u=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),d=e.slidesGrid[u],h=e.slidesGrid[f],p=e.slidesGrid[e.slidesGrid.length-1],m=Math.abs(t);m>=d?o=(m-d)/p:o=(m+p-h)/p,o>1&&(o-=1)}Object.assign(e,{progress:i,progressLoop:o,isBeginning:s,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&e.updateSlidesProgress(t),s&&!l&&e.emit("reachBeginning toEdge"),a&&!c&&e.emit("reachEnd toEdge"),(l&&!s||c&&!a)&&e.emit("fromEdge"),e.emit("progress",i)}const c0=(t,e,n)=>{e&&!t.classList.contains(n)?t.classList.add(n):!e&&t.classList.contains(n)&&t.classList.remove(n)};function aee(){const t=this,{slides:e,params:n,slidesEl:r,activeIndex:i}=t,s=t.virtual&&n.virtual.enabled,a=t.grid&&n.grid&&n.grid.rows>1,o=f=>ir(r,`.${n.slideClass}${f}, swiper-slide${f}`)[0];let l,c,u;if(s)if(n.loop){let f=i-t.virtual.slidesBefore;f<0&&(f=t.virtual.slides.length+f),f>=t.virtual.slides.length&&(f-=t.virtual.slides.length),l=o(`[data-swiper-slide-index="${f}"]`)}else l=o(`[data-swiper-slide-index="${i}"]`);else a?(l=e.find(f=>f.column===i),u=e.find(f=>f.column===i+1),c=e.find(f=>f.column===i-1)):l=e[i];l&&(a||(u=KZ(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=e[0]),c=qZ(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(f=>{c0(f,f===l,n.slideActiveClass),c0(f,f===u,n.slideNextClass),c0(f,f===c,n.slidePrevClass)}),t.emitSlidesClasses()}const Up=(t,e)=>{if(!t||t.destroyed||!t.params)return;const n=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,r=e.closest(n());if(r){let i=r.querySelector(`.${t.params.lazyPreloaderClass}`);!i&&t.isElement&&(r.shadowRoot?i=r.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(i=r.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),i&&i.remove())})),i&&i.remove()}},u0=(t,e)=>{if(!t.slides[e])return;const n=t.slides[e].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Gb=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const n=t.slides.length;if(!n||!e||e<0)return;e=Math.min(e,n);const r=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),i=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=i,o=[a-e];o.push(...Array.from({length:e}).map((l,c)=>a+r+c)),t.slides.forEach((l,c)=>{o.includes(l.column)&&u0(t,c)});return}const s=i+r-1;if(t.params.rewind||t.params.loop)for(let a=i-e;a<=s+e;a+=1){const o=(a%n+n)%n;(o<i||o>s)&&u0(t,o)}else for(let a=Math.max(i-e,0);a<=Math.min(s+e,n-1);a+=1)a!==i&&(a>s||a<i)&&u0(t,a)};function oee(t){const{slidesGrid:e,params:n}=t,r=t.rtlTranslate?t.translate:-t.translate;let i;for(let s=0;s<e.length;s+=1)typeof e[s+1]<"u"?r>=e[s]&&r<e[s+1]-(e[s+1]-e[s])/2?i=s:r>=e[s]&&r<e[s+1]&&(i=s+1):r>=e[s]&&(i=s);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function lee(t){const e=this,n=e.rtlTranslate?e.translate:-e.translate,{snapGrid:r,params:i,activeIndex:s,realIndex:a,snapIndex:o}=e;let l=t,c;const u=h=>{let p=h-e.virtual.slidesBefore;return p<0&&(p=e.virtual.slides.length+p),p>=e.virtual.slides.length&&(p-=e.virtual.slides.length),p};if(typeof l>"u"&&(l=oee(e)),r.indexOf(n)>=0)c=r.indexOf(n);else{const h=Math.min(i.slidesPerGroupSkip,l);c=h+Math.floor((l-h)/i.slidesPerGroup)}if(c>=r.length&&(c=r.length-1),l===s&&!e.params.loop){c!==o&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(l===s&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=u(l);return}const f=e.grid&&i.grid&&i.grid.rows>1;let d;if(e.virtual&&i.virtual.enabled&&i.loop)d=u(l);else if(f){const h=e.slides.find(m=>m.column===l);let p=parseInt(h.getAttribute("data-swiper-slide-index"),10);Number.isNaN(p)&&(p=Math.max(e.slides.indexOf(h),0)),d=Math.floor(p/i.grid.rows)}else if(e.slides[l]){const h=e.slides[l].getAttribute("data-swiper-slide-index");h?d=parseInt(h,10):d=l}else d=l;Object.assign(e,{previousSnapIndex:o,snapIndex:c,previousRealIndex:a,realIndex:d,previousIndex:s,activeIndex:l}),e.initialized&&Gb(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==d&&e.emit("realIndexChange"),e.emit("slideChange"))}function cee(t,e){const n=this,r=n.params;let i=t.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&e&&e.length>
1861&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(o=>{!i&&o.matches&&o.matches(`.${r.slideClass}, swiper-slide`)&&(i=o)});let s=!1,a;if(i){for(let o=0;o<n.slides.length;o+=1)if(n.slides[o]===i){s=!0,a=o;break}}if(i&&s)n.clickedSlide=i,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=a;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}r.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var uee={updateSize:eee,updateSlides:tee,updateAutoHeight:nee,updateSlidesOffset:ree,updateSlidesProgress:iee,updateProgress:see,updateSlidesClasses:aee,updateActiveIndex:lee,updateClickedSlide:cee};function fee(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:n,rtlTranslate:r,translate:i,wrapperEl:s}=e;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let a=Ub(s,t);return a+=e.cssOverflowAdjustment(),r&&(a=-a),a||0}function dee(t,e){const n=this,{rtlTranslate:r,params:i,wrapperEl:s,progress:a}=n;let o=0,l=0;const c=0;n.isHorizontal()?o=r?-t:t:l=t,i.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?o:l,i.cssMode?s[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-o:-l:i.virtualTranslate||(n.isHorizontal()?o-=n.cssOverflowAdjustment():l-=n.cssOverflowAdjustment(),s.style.transform=`translate3d(${o}px, ${l}px, ${c}px)`);let u;const f=n.maxTranslate()-n.minTranslate();f===0?u=0:u=(t-n.minTranslate())/f,u!==a&&n.updateProgress(t),n.emit("setTranslate",n.translate,e)}function hee(){return-this.snapGrid[0]}function pee(){return-this.snapGrid[this.snapGrid.length-1]}function mee(t,e,n,r,i){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),n===void 0&&(n=!0),r===void 0&&(r=!0);const s=this,{params:a,wrapperEl:o}=s;if(s.animating&&a.preventInteractionOnTransition)return!1;const l=s.minTranslate(),c=s.maxTranslate();let u;if(r&&t>l?u=l:r&&t<c?u=c:u=t,s.updateProgress(u),a.cssMode){const f=s.isHorizontal();if(e===0)o[f?"scrollLeft":"scrollTop"]=-u;else{if(!s.support.smoothScroll)return BF({swiper:s,targetPosition:-u,side:f?"left":"top"}),!0;
186o.scrollTo({[f?"left":"top"]:-u,behavior:"smooth"})}return!0}return e===0?(s.setTransition(0),s.setTranslate(u),n&&(s.emit("beforeTransitionStart",e,i),s.emit("transitionEnd"))):(s.setTransition(e),s.setTranslate(u),n&&(s.emit("beforeTransitionStart",e,i),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(d){!s||s.destroyed||d.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,s.animating=!1,n&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}var gee={getTranslate:fee,setTranslate:dee,minTranslate:hee,maxTranslate:pee,translateTo:mee};function yee(t,e){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${t}ms`,n.wrapperEl.style.transitionDelay=t===0?"0ms":""),n.emit("setTransition",t,e)}function GF(t){let{swiper:e,runCallbacks:n,direction:r,step:i}=t;const{activeIndex:s,previousIndex:a}=e;let o=r;if(o||(s>a?o="next":s<a?o="prev":o="reset"),e.emit(`transition${i}`),n&&s!==a){if(o==="reset"){e.emit(`slideResetTransition${i}`);return}e.emit(`slideChangeTransition${i}`),o==="next"?e.emit(`slideNextTransition${i}`):e.emit(`slidePrevTransition${i}`)}}function vee(t,e){t===void 0&&(t=!0);const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),GF({swiper:n,runCallbacks:t,direction:e,step:"Start"}))}function _ee(t,e){t===void 0&&(t=!0);const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),GF({swiper:n,runCallbacks:t,direction:e,step:"End"}))}var Eee={setTransition:yee,transitionStart:vee,transitionEnd:_ee};function bee(t,e,n,r,i){t===void 0&&(t=0),n===void 0&&(n=!0),typeof t=="string"&&(t=parseInt(t,10));const s=this;let a=t;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:f,rtlTranslate:d,wrapperEl:h,enabled:p}=s;if(!p&&!r&&!i||s.destroyed||s.animating&&o.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=s.params.speed);const m=Math.min(s.params.slidesPerGroupSkip,a);let g=m+Math.floor((a-m)/s.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const _=-l[g];if(o.normalizeSlideIndex)for(let b=0;b<c.length;b+=1){const T=-Math.floor(_*100),S=Math.floor(c[b]*100),A=Math.floor(c[b+1]*100);typeof c[b+1]<"u"?T>=S&&T<A-(A-S)/2?a=b:T>=S&&T<A&&(a=b+1):T>=S&&(a=b)}if(s.initialized&&a!==f&&(!s.allowSlideNext&&(d?_>s.translate&&_>s.minTranslate():_<s.translate&&_<s.minTranslate())||!s.allowSlidePrev&&_>s.translate&&_>s.maxTranslate()&&(f||0)!==a))return!1;a!==(u||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(_);let v;a>f?v="next":a<f?v="prev":v="reset";const y=s.virtual&&s.params.virtual.enabled;if(!(y&&i)&&(d&&-_===s.translate||!d&&_===s.translate))return s.updateActiveIndex(a),o.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),o.effect!=="slide"&&s.setTranslate(_),v!=="reset"&&(s.transitionStart(n,v),s.transitionEnd(n,v)),!1;if(o.cssMode){const b=s.isHorizontal(),T=d?_:-_;if(e===0)y&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),y&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[b?"scrollLeft":"scrollTop"]=T})):h[b?"scrollLeft":"scrollTop"]=T,y&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1});else{if(!s.support.smoothScroll)return BF({swiper:s,targetPosition:T,side:b?"left":"top"}),!0;
186h.scrollTo({[b?"left":"top"]:T,behavior:"smooth"})}return!0}return s.setTransition(e),s.setTranslate(_),s.updateActiveIndex(a),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,r),s.transitionStart(n,v),e===0?s.transitionEnd(n,v):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(T){!s||s.destroyed||T.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,v))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function Tee(t,e,n,r){t===void 0&&(t=0),n===void 0&&(n=!0),typeof t=="string"&&(t=parseInt(t,10));const i=this;if(i.destroyed)return;typeof e>"u"&&(e=i.params.speed);const s=i.grid&&i.params.grid&&i.params.grid.rows>1;let a=t;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)a=a+i.virtual.slidesBefore;else{let o;if(s){const d=a*i.params.grid.rows;o=i.slides.find(h=>h.getAttribute("data-swiper-slide-index")*1===d).column}else o=i.getSlideIndexByData(a);const l=s?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:c}=i.params;let u=i.params.slidesPerView;u==="auto"?u=i.slidesPerViewDynamic():(u=Math.ceil(parseFloat(i.params.slidesPerView,10)),c&&u%2===0&&(u=u+1));let f=l-o<u;if(c&&(f=f||o<Math.ceil(u/2)),r&&c&&i.params.slidesPerView!=="auto"&&!s&&(f=!1),f){const d=c?o<i.activeIndex?"prev":"next":o-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:d,slideTo:!0,activeSlideIndex:d==="next"?o+1:o-l+1,slideRealIndex:d==="next"?i.realIndex:void 0})}if(s){const d=a*i.params.grid.rows;a=i.slides.find(h=>h.getAttribute("data-swiper-slide-index")*1===d).column}else a=i.getSlideIndexByData(a)}return requestAnimationFrame(()=>{i.slideTo(a,e,n,r)}),i}function See(t,e,n){e===void 0&&(e=!0);const r=this,{enabled:i,params:s,animating:a}=r;if(!i||r.destroyed)return r;typeof t>"u"&&(t=r.params.speed);let o=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(o=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<s.slidesPerGroupSkip?1:o,c=r.virtual&&s.virtual.enabled;if(s.loop){if(a&&!c&&s.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+l,t,e,n)}),!0}return s.rewind&&r.isEnd?r.slideTo(0,t,e,n):r.slideTo(r.activeIndex+l,t,e,n)}function wee(t,e,n){e===void 0&&(e=!0);const r=this,{params:i,snapGrid:s,slidesGrid:a,rtlTranslate:o,enabled:l,animating:c}=r;if(!l||r.destroyed)return r;typeof t>"u"&&(t=r.params.speed);const u=r.virtual&&i.virtual.enabled;if(i.loop){if(c&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const f=o?r.translate:-r.translate;function d(_){return _<0?-Math.floor(Math.abs(_)):Math.floor(_)}const h=d(f),p=s.map(_=>d(_));let m=s[p.indexOf(h)-1];if(typeof m>"u"&&i.cssMode){let _;
186s.forEach((v,y)=>{h>=v&&(_=y)}),typeof _<"u"&&(m=s[_>0?_-1:_])}let g=0;if(typeof m<"u"&&(g=a.indexOf(m),g<0&&(g=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(g=g-r.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),i.rewind&&r.isBeginning){const _=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(_,t,e,n)}else if(i.loop&&r.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(g,t,e,n)}),!0;return r.slideTo(g,t,e,n)}function xee(t,e,n){e===void 0&&(e=!0);const r=this;if(!r.destroyed)return typeof t>"u"&&(t=r.params.speed),r.slideTo(r.activeIndex,t,e,n)}function Aee(t,e,n,r){e===void 0&&(e=!0),r===void 0&&(r=.5);const i=this;if(i.destroyed)return;typeof t>"u"&&(t=i.params.speed);let s=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,s),o=a+Math.floor((s-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[o]){const c=i.snapGrid[o],u=i.snapGrid[o+1];l-c>(u-c)*r&&(s+=i.params.slidesPerGroup)}else{const c=i.snapGrid[o-1],u=i.snapGrid[o];l-c<=(u-c)*r&&(s-=i.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,i.slidesGrid.length-1),i.slideTo(s,t,e,n)}function Ree(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:n}=t,r=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let i=t.clickedIndex,s;const a=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?i<t.loopedSlides-r/2||i>t.slides.length-t.loopedSlides+r/2?(t.loopFix(),i=t.getSlideIndex(ir(n,`${a}[data-swiper-slide-index="${s}"]`)[0]),Fl(()=>{t.slideTo(i)})):t.slideTo(i):i>t.slides.length-r?(t.loopFix(),i=t.getSlideIndex(ir(n,`${a}[data-swiper-slide-index="${s}"]`)[0]),Fl(()=>{t.slideTo(i)})):t.slideTo(i)}else t.slideTo(i)}var Lee={slideTo:bee,slideToLoop:Tee,slideNext:See,slidePrev:wee,slideReset:xee,slideToClosest:Aee,slideToClickedSlide:Ree};function Cee(t){const e=this,{params:n,slidesEl:r}=e;if(!n.loop||e.virtual&&e.params.virtual.enabled)return;const i=()=>{ir(r,`.${n.slideClass}, swiper-slide`).forEach((f,d)=>{f.setAttribute("data-swiper-slide-index",d)})},s=e.grid&&n.grid&&n.grid.rows>1,a=n.slidesPerGroup*(s?n.grid.rows:1),o=e.slides.length%a!==0,l=s&&e.slides.length%n.grid.rows!==0,c=u=>{for(let f=0;f<u;f+=1){const d=e.isElement?pi("swiper-slide",[n.slideBlankClass]):pi("div",[n.slideClass,n.slideBlankClass]);e.slidesEl.append(d)}};if(o){if(n.loopAddBlankSlides){const u=a-e.slides.length%a;c(u),e.recalcSlides(),e.updateSlides()}else Jm("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");i()}else if(l){if(n.loopAddBlankSlides){const u=n.grid.rows-e.slides.length%n.grid.rows;c(u),e.recalcSlides(),e.updateSlides()}else Jm("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");i()}else i();e.loopFix({slideRealIndex:t,direction:n.centeredSlides?void 0:"next"})}function Iee(t){let{slideRealIndex:e,slideTo:n=!0,direction:r,setTranslate:i,activeSlideIndex:s,byController:a,byMousewheel:o}=t===void 0?{}:t;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:u,allowSlideNext:f,slidesEl:d,params:h}=l,{centeredSlides:p}=h;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&h.virtual.enabled){n&&(!h.centeredSlides&&l.snapIndex===0?l.slideTo(l.virtual.slides.length,0,!1,!0):h.centeredSlides&&l.snapIndex<h.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0)),l.allowSlidePrev=u,l.allowSlideNext=f,l.emit("loopFix");return}let m=h.slidesPerView;m==="auto"?m=l.slidesPerViewDynamic():(m=Math.ceil(parseFloat(h.slidesPerView,10)),p&&m%2===0&&(m=m+1));const g=h.slidesPerGroupAuto?m:h.slidesPerGroup;let _=g;_%g!==0&&(_+=g-_%g),_+=h.loopAdditionalSlides,l.loopedSlides=_;const v=l.grid&&h.grid&&h.grid.rows>1;c.length<m+_?Jm("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):v&&h.grid.fill==="row"&&Jm("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const y=[],E=[];let b=l.activeIndex;typeof s>"u"?s=l.getSlideIndex(c.find(k=>k.classList.contains(h.slideActiveClass))):b=s;const T=r==="next"||!r,S=r==="prev"||!r;let A=0,w=0;const x=v?Math.ceil(c.length/h.grid.rows):c.length,R=(v?c[s].column:s)+(p&&typeof i>"u"?-m/2+.5:0);if(R<_){A=Math.max(_-R,g);for(let k=0;k<_-R;k+=1){const F=k-Math.floor(k/x)*x;if(v){const U=x-F-1;for(let H=c.length-1;H>=0;H-=1)c[H].column===U&&y.push(H)}else y.push(x-F-1)}}else if(R+m>x-_){w=Math.max(R-(x-_*2),g);for(let k=0;k<w;k+=1){const F=k-Math.floor(k/x)*x;
vendor: 18,683 bytes, line 186
186v?c.forEach((U,H)=>{U.column===F&&E.push(H)}):E.push(F)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),S&&y.forEach(k=>{c[k].swiperLoopMoveDOM=!0,d.prepend(c[k]),c[k].swiperLoopMoveDOM=!1}),T&&E.forEach(k=>{c[k].swiperLoopMoveDOM=!0,d.append(c[k]),c[k].swiperLoopMoveDOM=!1}),l.recalcSlides(),h.slidesPerView==="auto"?l.updateSlides():v&&(y.length>0&&S||E.length>0&&T)&&l.slides.forEach((k,F)=>{l.grid.updateSlide(F,k,l.slides)}),h.watchSlidesProgress&&l.updateSlidesOffset(),n){if(y.length>0&&S){if(typeof e>"u"){const k=l.slidesGrid[b],U=l.slidesGrid[b+A]-k;o?l.setTranslate(l.translate-U):(l.slideTo(b+Math.ceil(A),0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-U,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-U))}else if(i){const k=v?y.length/h.grid.rows:y.length;l.slideTo(l.activeIndex+k,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(E.length>0&&T)if(typeof e>"u"){const k=l.slidesGrid[b],U=l.slidesGrid[b-w]-k;o?l.setTranslate(l.translate-U):(l.slideTo(b-w,0,!1,!0),i&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-U,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-U))}else{const k=v?E.length/h.grid.rows:E.length;l.slideTo(l.activeIndex-k,0,!1,!0)}}if(l.allowSlidePrev=u,l.allowSlideNext=f,l.controller&&l.controller.control&&!a){const k={slideRealIndex:e,direction:r,setTranslate:i,activeSlideIndex:s,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(F=>{!F.destroyed&&F.params.loop&&F.loopFix({...k,slideTo:F.params.slidesPerView===h.slidesPerView?n:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...k,slideTo:l.controller.control.params.slidesPerView===h.slidesPerView?n:!1})}l.emit("loopFix")}function kee(){const t=this,{params:e,slidesEl:n}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const r=[];t.slides.forEach(i=>{const s=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;r[s]=i}),t.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var Pee={loopCreate:Cee,loopFix:Iee,loopDestroy:kee};function Dee(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const n=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function Oee(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var Mee={setGrabCursor:Dee,unsetGrabCursor:Oee};function Nee(t,e){e===void 0&&(e=this);function n(r){if(!r||r===Vn()||r===Kt())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(t);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(e)}function dC(t,e,n){const r=Kt(),{params:i}=t,s=i.edgeSwipeDetection,a=i.edgeSwipeThreshold;return s&&(n<=a||n>=r.innerWidth-a)?s==="prevent"?(e.preventDefault(),!0):!1:!0}function Fee(t){const e=this,n=Vn();let r=t;r.originalEvent&&(r=r.originalEvent);const i=e.touchEventsData;if(r.type==="pointerdown"){if(i.pointerId!==null&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(i.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){dC(e,r,r.targetTouches[0].pageX);return}const{params:s,touches:a,enabled:o}=e;if(!o||!s.simulateTouch&&r.pointerType==="mouse"||e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let l=r.target;if(s.touchEventsTarget==="wrapper"&&!VZ(l,e.wrapperEl)||"which"in r&&r.which===3||"button"in r&&r.button>0||i.isTouched&&i.isMoved)return;const c=!!s.noSwipingClass&&s.noSwipingClass!=="",u=r.composedPath?r.composedPath():r.path;c&&r.target&&r.target.shadowRoot&&u&&(l=u[0]);const f=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,d=!!(r.target&&r.target.shadowRoot);if(s.noSwiping&&(d?Nee(f,l):l.closest(f))){e.allowClick=!0;return}if(s.swipeHandler&&!l.closest(s.swipeHandler))return;a.currentX=r.pageX,a.currentY=r.pageY;const h=a.currentX,p=a.currentY;if(!dC(e,r,h))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=h,a.startY=p,i.touchStartTime=Li(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1);let m=!0;l.matches(i.focusableElements)&&(m=!1,l.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==l&&(r.pointerType==="mouse"||r.pointerType!=="mouse"&&!l.matches(i.focusableElements))&&n.activeElement.blur();const g=m&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||g)&&!l.isContentEditable&&r.preventDefault(),s.freeMode&&s.freeMode.enabled&&e.freeMode&&e.animating&&!s.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",r)}function $ee(t){const e=Vn(),n=this,r=n.touchEventsData,{params:i,touches:s,rtlTranslate:a,enabled:o}=n;if(!o||!i.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(r.touchId!==null||l.pointerId!==r.pointerId))return;let c;if(l.type==="touchmove"){if(c=[...l.changedTouches].find(b=>b.identifier===r.touchId),!c||c.identifier!==r.touchId)return}else c=l;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const u=c.pageX,f=c.pageY;if(l.preventedByNestedSwiper){s.startX=u,s.startY=f;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(s,{startX:u,startY:f,currentX:u,currentY:f}),r.touchStartTime=Li());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(f<s.startY&&n.translate<=n.maxTranslate()||f>s.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(u<s.startX&&n.translate<=n.maxTranslate()||u>s.startX&&n.translate>=n.minTranslate())return}if(e.activeElement&&e.activeElement.matches(r.focusableElements)&&e.activeElement!==l.target&&l.pointerType!=="mouse"&&e.activeElement.blur(),e.activeElement&&l.target===e.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",l),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=u,s.currentY=f;const d=s.currentX-s.startX,h=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(d**2+h**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let b;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:d*d+h*h>=25&&(b=Math.atan2(Math.abs(h),Math.abs(d))*180/Math.PI,r.isScrolling=n.isHorizontal()?b>i.touchAngle:90-b>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(r.startMoving=!0),r.isScrolling||l.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let p=n.isHorizontal()?d:h,m=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;i.oneWayMovement&&(p=Math.abs(p)*(a?1:-1),m=Math.abs(m)*(a?1:-1)),s.diff=p,p*=i.touchRatio,a&&(p=-p,m=-m);const g=n.touchesDirection;n.swipeDirection=p>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const _=n.params.loop&&!i.cssMode,v=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(_&&v&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const b=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(b)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}if(new Date().getTime(),r.isMoved&&r.allowThresholdMove&&g!==n.touchesDirection&&_&&v&&Math.abs(p)>=1){Object.assign(s,{startX:u,startY:f,currentX:u,currentY:f,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=p+r.startTranslate;let y=!0,E=i.resistanceRatio;if(i.touchReleaseOnEdges&&(E=0),p>0?(_&&v&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(i.slidesPerView!=="auto"&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(y=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+p)**E))):p<0&&(_&&v&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(i.slidesPerView!=="auto"&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(y=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-p)**E))),y&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(p)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function Bee(t){const e=this,n=e.touchEventsData;let r=t;r.originalEvent&&(r=r.originalEvent);let i;if(r.type==="touchend"||r.type==="touchcancel"){if(i=[...r.changedTouches].find(b=>b.identifier===n.touchId),!i||i.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(e.browser.isSafari||e.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:a,touches:o,rtlTranslate:l,slidesGrid:c,enabled:u}=e;if(!u||!a.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&e.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const f=Li(),d=f-n.touchStartTime;if(e.allowClick){const b=r.path||r.composedPath&&r.composedPath();e.updateClickedSlide(b&&b[0]||r.target,b),e.emit("tap click",r),d<300&&f-n.lastClickTime<300&&e.emit("doubleTap doubleClick",r)}if(n.lastClickTime=Li(),Fl(()=>{e.destroyed||(e.allowClick=!0)}),!n.isTouched||!n.isMoved||!e.swipeDirection||o.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let h;if(a.followFinger?h=l?e.translate:-e.translate:h=-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:h});return}const p=h>=-e.maxTranslate()&&!e.params.loop;let m=0,g=e.slidesSizesGrid[0];for(let b=0;b<c.length;b+=b<a.slidesPerGroupSkip?1:a.slidesPerGroup){const T=b<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof c[b+T]<"u"?(p||h>=c[b]&&h<c[b+T])&&(m=b,g=c[b+T]-c[b]):(p||h>=c[b])&&(m=b,g=c[c.length-1]-c[c.length-2])}let _=null,v=null;a.rewind&&(e.isBeginning?v=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(_=0));const y=(h-c[m])/g,E=m<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(d>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(y>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?_:m+E):e.slideTo(m)),e.swipeDirection==="prev"&&(y>1-a.longSwipesRatio?e.slideTo(m+E):v!==null&&y<0&&Math.abs(y)>a.longSwipesRatio?e.slideTo(v):e.slideTo(m))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(r.target===e.navigation.nextEl||r.target===e.navigation.prevEl)?r.target===e.navigation.nextEl?e.slideTo(m+E):e.slideTo(m):(e.swipeDirection==="next"&&e.slideTo(_!==null?_:m+E),e.swipeDirection==="prev"&&e.slideTo(v!==null?v:m))}}function hC(){const t=this,{params:e,el:n}=t;if(n&&n.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:s}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const o=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!o?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=i,t.allowSlideNext=r,t.params.watchOverflow&&s!==t.snapGrid&&t.checkOverflow()}function Uee(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function Hee(){const t=this,{wrapperEl:e,rtlTranslate:n,enabled:r}=t;if(!r)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let i;const s=t.maxTranslate()-t.minTranslate();s===0?i=0:i=(t.translate-t.minTranslate())/s,i!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function Gee(t){const e=this;Up(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function jee(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const jF=(t,e)=>{const n=Vn(),{params:r,el:i,wrapperEl:s,device:a}=t,o=!!r.nested,l=e==="on"?"addEventListener":"removeEventListener",c=e;!i||typeof i=="string"||(n[l]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:o}),i[l]("touchstart",t.onTouchStart,{passive:!1}),i[l]("pointerdown",t.onTouchStart,{passive:!1}),n[l]("touchmove",t.onTouchMove,{passive:!1,capture:o}),n[l]("pointermove",t.onTouchMove,{passive:!1,capture:o}),n[l]("touchend",t.onTouchEnd,{passive:!0}),n[l]("pointerup",t.onTouchEnd,{passive:!0}),n[l]("pointercancel",t.onTouchEnd,{passive:!0}),n[l]("touchcancel",t.onTouchEnd,{passive:!0}),n[l]("pointerout",t.onTouchEnd,{passive:!0}),n[l]("pointerleave",t.onTouchEnd,{passive:!0}),n[l]("contextmenu",t.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",t.onClick,!0),r.cssMode&&s[l]("scroll",t.onScroll),r.updateOnWindowResize?t[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",hC,!0):t[c]("observerUpdate",hC,!0),i[l]("load",t.onLoad,{capture:!0}))};function Vee(){const t=this,{params:e}=t;t.onTouchStart=Fee.bind(t),t.onTouchMove=$ee.bind(t),t.onTouchEnd=Bee.bind(t),t.onDocumentTouchStart=jee.bind(t),e.cssMode&&(t.onScroll=Hee.bind(t)),t.onClick=Uee.bind(t),t.onLoad=Gee.bind(t),jF(t,"on")}function qee(){jF(this,"off")}var Kee={attachEvents:Vee,detachEvents:qee};const pC=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Wee(){const t=this,{realIndex:e,initialized:n,params:r,el:i}=t,s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const a=Vn(),o=r.breakpointsBase==="window"||!r.breakpointsBase?r.breakpointsBase:"container",l=["window","container"].includes(r.breakpointsBase)||!r.breakpointsBase?t.el:a.querySelector(r.breakpointsBase),c=t.getBreakpoint(s,o,l);if(!c||t.currentBreakpoint===c)return;const f=(c in s?s[c]:void 0)||t.originalParams,d=pC(t,r),h=pC(t,f),p=t.params.grabCursor,m=f.grabCursor,g=r.enabled;d&&!h?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),t.emitContainerClasses()):!d&&h&&(i.classList.add(`${r.containerModifierClass}grid`),(f.grid.fill&&f.grid.fill==="column"||!f.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),t.emitContainerClasses()),p&&!m?t.unsetGrabCursor():!p&&m&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(T=>{if(typeof f[T]>"u")return;const S=r[T]&&r[T].enabled,A=f[T]&&f[T].enabled;S&&!A&&t[T].disable(),!S&&A&&t[T].enable()});const _=f.direction&&f.direction!==r.direction,v=r.loop&&(f.slidesPerView!==r.slidesPerView||_),y=r.loop;_&&n&&t.changeDirection(),li(t.params,f);const E=t.params.enabled,b=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),g&&!E?t.disable():!g&&E&&t.enable(),t.currentBreakpoint=c,t.emit("_beforeBreakpoint",f),n&&(v?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!y&&b?(t.loopCreate(e),t.updateSlides()):y&&!b&&t.loopDestroy()),t.emit("breakpoint",f)}function zee(t,e,n){if(e===void 0&&(e="window"),!t||e==="container"&&!n)return;let r=!1;const i=Kt(),s=e==="window"?i.innerHeight:n.clientHeight,a=Object.keys(t).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const l=parseFloat(o.substr(1));return{value:s*l,point:o}}return{value:o,point:o}});a.sort((o,l)=>
vendor: 24,827 bytes, line 186
186parseInt(o.value,10)-parseInt(l.value,10));for(let o=0;o<a.length;o+=1){const{point:l,value:c}=a[o];e==="window"?i.matchMedia(`(min-width: ${c}px)`).matches&&(r=l):c<=n.clientWidth&&(r=l)}return r||"max"}var Yee={setBreakpoint:Wee,getBreakpoint:zee};function Xee(t,e){const n=[];return t.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(e+i)}):typeof r=="string"&&n.push(e+r)}),n}function Jee(){const t=this,{classNames:e,params:n,rtl:r,el:i,device:s}=t,a=Xee(["initialized",n.direction,{"free-mode":t.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);e.push(...a),i.classList.add(...e),t.emitContainerClasses()}function Qee(){const t=this,{el:e,classNames:n}=t;!e||typeof e=="string"||(e.classList.remove(...n),t.emitContainerClasses())}var Zee={addClasses:Jee,removeClasses:Qee};function ete(){const t=this,{isLocked:e,params:n}=t,{slidesOffsetBefore:r}=n;if(r){const i=t.slides.length-1,s=t.slidesGrid[i]+t.slidesSizesGrid[i]+r*2;t.isLocked=t.size>s}else t.isLocked=t.snapGrid.length===1;n.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),n.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var tte={checkOverflow:ete},jb={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function nte(t,e){return function(r){r===void 0&&(r={});const i=Object.keys(r)[0],s=r[i];if(typeof s!="object"||s===null){li(e,r);return}if(t[i]===!0&&(t[i]={enabled:!0}),i==="navigation"&&t[i]&&t[i].enabled&&!t[i].prevEl&&!t[i].nextEl&&(t[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&t[i]&&t[i].enabled&&!t[i].el&&(t[i].auto=!0),!(i in t&&"enabled"in s)){li(e,r);return}typeof t[i]=="object"&&!("enabled"in t[i])&&(t[i].enabled=!0),t[i]||(t[i]={enabled:!1}),li(e,r)}}const f0={eventsEmitter:ZZ,update:uee,translate:gee,transition:Eee,slide:Lee,loop:Pee,grabCursor:Mee,events:Kee,breakpoints:Yee,checkOverflow:tte,classes:Zee},d0={};class ai{constructor(){let e,n;for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];i.length===1&&i[0].constructor&&Object.prototype.toString.call(i[0]).slice(8,-1)==="Object"?n=i[0]:[e,n]=i,n||(n={}),n=li({},n),e&&!n.el&&(n.el=e);const a=Vn();if(n.el&&typeof n.el=="string"&&a.querySelectorAll(n.el).length>1){const u=[];return a.querySelectorAll(n.el).forEach(f=>{const d=li({},n,{el:f});u.push(new ai(d))}),u}const o=this;o.__swiper__=!0,o.support=UF(),o.device=HF({userAgent:n.userAgent}),o.browser=XZ(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],n.modules&&Array.isArray(n.modules)&&o.modules.push(...n.modules);const l={};o.modules.forEach(u=>{u({params:n,swiper:o,extendParams:nte(n,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const c=li({},jb,l);return o.params=li({},c,d0,n),o.originalParams=li({},o.params),o.passedParams=li({},n),o.params&&o.params.on&&Object.keys(o.params.on).forEach(u=>{o.on(u,o.params.on[u])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:n,params:r}=this,i=ir(n,`.${r.slideClass}, swiper-slide`),s=Cd(i[0]);return Cd(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(n=>n.getAttribute("data-swiper-slide-index")*1===e))}recalcSlides(){const e=this,{slidesEl:n,params:r}=e;e.slides=ir(n,`.${r.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,n){const r=this;e=Math.min(Math.max(e,0),1);const i=r.minTranslate(),a=(r.maxTranslate()-i)*e+i;r.translateTo(a,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=e.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",n.join(" "))}getSlideClasses(e){const n=this;return n.destroyed?"":e.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=[];e.slides.forEach(r=>{const i=e.getSlideClasses(r);n.push({slideEl:r,classNames:i}),e.emit("_slideClass",r,i)}),e.emit("_slideClasses",n)}slidesPerViewDynamic(e,n){e===void 0&&(e="current"),n===void 0&&(n=!1);const r=this,{params:i,slides:s,slidesGrid:a,slidesSizesGrid:o,size:l,activeIndex:c}=r;let u=1;if(typeof i.slidesPerView=="number")return i.slidesPerView;if(i.centeredSlides){let f=s[c]?Math.ceil(s[c].swiperSlideSize):0,d;for(let h=c+1;h<s.length;h+=1)s[h]&&!d&&(f+=Math.ceil(s[h].swiperSlideSize),u+=1,f>l&&(d=!0));for(let h=c-1;h>=0;h-=1)s[h]&&!d&&(f+=s[h].swiperSlideSize,u+=1,f>l&&(d=!0))}else if(e==="current")for(let f=c+1;f<s.length;f+=1)(n?a[f]+o[f]-a[c]<l:a[f]-a[c]<l)&&(u+=1);else for(let f=c-1;f>=0;f-=1)a[c]-a[f]<l&&(u+=1);return u}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:n,params:r}=e;r.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&Up(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function i(){const a=e.rtlTranslate?e.translate*-1:e.translate,o=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&e.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&e.isEnd&&!r.centeredSlides){const a=e.virtual&&r.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(a.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||i()}r.watchOverflow&&n!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,n){n===void 0&&(n=!0);const r=this,i=r.params.direction;return e||(e=i==="horizontal"?"vertical":"horizontal"),e===i||e!=="horizontal"&&e!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${e}`),r.emitContainerClasses(),r.params.direction=e,r.slides.forEach(s=>{e==="vertical"?s.style.width="":s.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(e){const n=this;n.rtl&&e==="rtl"||!n.rtl&&e==="ltr"||(n.rtl=e==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(e){const n=this;if(n.mounted)return!0;let r=e||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):ir(r,i())[0];return!a&&n.params.createElements&&(a=pi("div",n.params.wrapperClass),r.append(a),ir(r,`.${n.params.slideClass}`).forEach(o=>{a.append(o)})),Object.assign(n,{el:r,wrapperEl:a,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:a,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||Va(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||Va(r,"direction")==="rtl"),wrongRTL:Va(a,"display")==="-webkit-box"}),!0}init(e){const n=this;if(n.initialized||n.mount(e)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents();const i=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&i.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(s=>{s.complete?Up(n,s):s.addEventListener("load",a=>{Up(n,a.target)})}),Gb(n),n.initialized=!0,Gb(n),n.emit("init"),n.emit("afterInit"),n}destroy(e,n){e===void 0&&(e=!0),n===void 0&&(n=!0);const r=this,{params:i,el:s,wrapperEl:a,slides:o}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),s&&typeof s!="string"&&s.removeAttribute("style"),a&&a.removeAttribute("style"),o&&o.length&&o.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),e!==!1&&(r.el&&typeof r.el!="string"&&(r.el.swiper=null),UZ(r)),r.destroyed=!0),null}static extendDefaults(e){li(d0,e)}static get extendedDefaults(){return d0}static get defaults(){return jb}static installModule(e){ai.prototype.__modules__||(ai.prototype.__modules__=[]);const n=ai.prototype.__modules__;typeof e=="function"&&n.indexOf(e)<0&&n.push(e)}static use(e){return Array.isArray(e)?(e.forEach(n=>ai.installModule(n)),ai):(ai.installModule(e),ai)}}Object.keys(f0).forEach(t=>{Object.keys(f0[t]).forEach(e=>{ai.prototype[e]=f0[t][e]})});ai.use([JZ,QZ]);function rte(t){let{swiper:e,extendParams:n,on:r,emit:i}=t;n({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let s;const a=Vn();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const o=a.createElement("div");function l(p,m){const g=e.params.virtual;if(g.cache&&e.virtual.cache[m])return e.virtual.cache[m];let _;return g.renderSlide?(_=g.renderSlide.call(e,p,m),typeof _=="string"&&(o.innerHTML=_,_=o.children[0])):e.isElement?_=pi("swiper-slide"):_=pi("div",e.params.slideClass),_.setAttribute("data-swiper-slide-index",m),g.renderSlide||(_.innerHTML=p),g.cache&&(e.virtual.cache[m]=_),_}function c(p,m){const{slidesPerView:g,slidesPerGroup:_,centeredSlides:v,loop:y,initialSlide:E}=e.params;if(m&&!y&&E>0)return;const{addSlidesBefore:b,addSlidesAfter:T}=e.params.virtual,{from:S,to:A,slides:w,slidesGrid:x,offset:L}=e.virtual;e.params.cssMode||e.updateActiveIndex();const R=e.activeIndex||0;let k;e.rtlTranslate?k="right":k=e.isHorizontal()?"left":"top";let F,U;v?(F=Math.floor(g/2)+_+T,U=Math.floor(g/2)+_+b):(F=g+(_-1)+T,U=(y?g:_)+b);let H=R-U,M=R+F;y||(H=Math.max(H,0),M=Math.min(M,w.length-1));let O=(e.slidesGrid[H]||0)-(e.slidesGrid[0]||0);y&&R>=U?(H-=U,v||(O+=e.slidesGrid[0])):y&&R<U&&(H=-U,v&&(O+=e.slidesGrid[0])),Object.assign(e.virtual,{from:H,to:M,offset:O,slidesGrid:e.slidesGrid,slidesBefore:U,slidesAfter:F});function q(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),i("virtualUpdate")}if(S===H&&A===M&&!p){e.slidesGrid!==x&&O!==L&&e.slides.forEach(z=>{z.style[k]=`${O-Math.abs(e.cssOverflowAdjustment())}px`}),e.updateProgress(),i("virtualUpdate");return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:O,from:H,to:M,slides:function(){const G=[];for(let N=H;N<=M;N+=1)G.push(w[N]);return G}()}),e.params.virtual.renderExternalUpdate?q():i("virtualUpdate");return}const P=[],ae=[],ce=z=>{let G=z;return z<0?G=w.length+z:G>=w.length&&(G=G-w.length),G};if(p)e.slides.filter(z=>z.matches(`.${e.params.slideClass}, swiper-slide`)).forEach(z=>{z.remove()});else for(let z=S;z<=A;z+=1)if(z<H||z>M){const G=ce(z);e.slides.filter(N=>N.matches(`.${e.params.slideClass}[data-swiper-slide-index="${G}"], swiper-slide[data-swiper-slide-index="${G}"]`)).forEach(N=>{N.remove()})}const ye=y?-w.length:0,ve=y?w.length*2:w.length;for(let z=ye;z<ve;z+=1)if(z>=H&&z<=M){const G=ce(z);typeof A>"u"||p?ae.push(G):(z>A&&ae.push(G),z<S&&P.push(G))}if(ae.forEach(z=>{e.slidesEl.append(l(w[z],z))}),y)for(let z=P.length-1;z>=0;z-=1){const G=P[z];e.slidesEl.prepend(l(w[G],G))}else P.sort((z,G)=>G-z),P.forEach(z=>{e.slidesEl.prepend(l(w[z],z))});ir(e.slidesEl,".swiper-slide, swiper-slide").forEach(z=>{z.style[k]=`${O-Math.abs(e.cssOverflowAdjustment())}px`}),q()}function u(p){if(typeof p=="object"&&"length"in p)for(let m=0;m<p.length;m+=1)p[m]&&e.virtual.slides.push(p[m]);else e.virtual.slides.push(p);c(!0)}function f(p){const m=e.activeIndex;let g=m+1,_=1;if(Array.isArray(p)){for(let v=0;v<p.length;v+=1)p[v]&&e.virtual.slides.unshift(p[v]);g=m+p.length,_=p.length}else e.virtual.slides.unshift(p);if(e.params.virtual.cache){const v=e.virtual.cache,y={};Object.keys(v).forEach(E=>{const b=v[E],T=b.getAttribute("data-swiper-slide-index");T&&b.setAttribute("data-swiper-slide-index",parseInt(T,10)+_),y[parseInt(E,10)+_]=b}),e.virtual.cache=y}c(!0),e.slideTo(g,0)}function d(p){if(typeof p>"u"||p===null)return;let m=e.activeIndex;if(Array.isArray(p))for(let g=p.length-1;g>=0;g-=1)e.params.virtual.cache&&(delete e.virtual.cache[p[g]],Object.keys(e.virtual.cache).forEach(_=>{_>p&&(e.virtual.cache[_-1]=e.virtual.cache[_],e.virtual.cache[_-1].setAttribute("data-swiper-slide-index",_-1),delete e.virtual.cache[_])})),e.virtual.slides.splice(p[g],1),p[g]<m&&(m-=1),m=Math.max(m,0);else e.params.virtual.cache&&(delete e.virtual.cache[p],Object.keys(e.virtual.cache).forEach(g=>{g>p&&(e.virtual.cache[g-1]=e.virtual.cache[g],e.virtual.cache[g-1].setAttribute("data-swiper-slide-index",g-1),delete e.virtual.cache[g])})),e.virtual.slides.splice(p,1),p<m&&(m-=1),m=Math.max(m,0);c(!0),e.slideTo(m,0)}function h(){e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),c(!0),e.slideTo(0,0)}r("beforeInit",()=>{if(!e.params.virtual.enabled)return;let p;if(typeof e.passedParams.virtual.slides>"u"){const m=[...e.slidesEl.children].filter(g=>g.matches(`.${e.params.slideClass}, swiper-slide`));m.length&&(e.virtual.slides=[...m],p=!0,m.forEach((g,_)=>{g.setAttribute("data-swiper-slide-index",_),e.virtual.cache[_]=g,g.remove()}))}p||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,c(!1,!0)}),r("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(s),s=setTimeout(()=>{c()},100)):c())}),r("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&Tf(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:u,prependSlide:f,removeSlide:d,removeAllSlides:h,update:c})}function ite(t){let{swiper:e,extendParams:n,on:r,emit:i}=t;const s=Vn(),a=Kt();e.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function o(u){if(!e.enabled)return;const{rtlTranslate:f}=e;let d=u;d.originalEvent&&(d=d.originalEvent);const h=d.keyCode||d.charCode,p=e.params.keyboard.pageUpDown,m=p&&h===33,g=p&&h===34,_=h===37,v=h===39,y=h===38,E=h===40;if(!e.allowSlideNext&&(e.isHorizontal()&&v||e.isVertical()&&E||g)||!e.allowSlidePrev&&(e.isHorizontal()&&_||e.isVertical()&&y||m))return!1;if(!(d.shiftKey||d.altKey||d.ctrlKey||d.metaKey)&&!(s.activeElement&&s.activeElement.nodeName&&(s.activeElement.nodeName.toLowerCase()==="input"||s.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(m||g||_||v||y||E)){let b=!1;if(Tl(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Tl(e.el,`.${e.params.slideActiveClass}`).length===0)return;const T=e.el,S=T.clientWidth,A=T.clientHeight,w=a.innerWidth,x=a.innerHeight,L=Qm(T);f&&(L.left-=T.scrollLeft);const R=[[L.left,L.top],[L.left+S,L.top],[L.left,L.top+A],[L.left+S,L.top+A]];for(let k=0;k<R.length;k+=1){const F=R[k];if(F[0]>=0&&F[0]<=w&&F[1]>=0&&F[1]<=x){if(F[0]===0&&F[1]===0)continue;b=!0}}if(!b)return}e.isHorizontal()?((m||g||_||v)&&(d.preventDefault?d.preventDefault():d.returnValue=!1),((g||v)&&!f||(m||_)&&f)&&e.slideNext(),((m||_)&&!f||(g||v)&&f)&&e.slidePrev()):((m||g||y||E)&&(d.preventDefault?d.preventDefault():d.returnValue=!1),(g||E)&&e.slideNext(),(m||y)&&e.slidePrev()),i("keyPress",h)}}function l(){e.keyboard.enabled||(s.addEventListener("keydown",o),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(s.removeEventListener("keydown",o),e.keyboard.enabled=!1)}r("init",()=>{e.params.keyboard.enabled&&l()}),r("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:l,disable:c})}function ste(t){let{swiper:e,extendParams:n,on:r,emit:i}=t;const s=Kt();n({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let a,o=Li(),l;const c=[];function u(y){let S=0,A=0,w=0,x=0;return"detail"in y&&(A=y.detail),"wheelDelta"in y&&(A=-y.wheelDelta/120),"wheelDeltaY"in y&&(A=-y.wheelDeltaY/120),"wheelDeltaX"in y&&(S=-y.wheelDeltaX/120),"axis"in y&&y.axis===y.HORIZONTAL_AXIS&&(S=A,A=0),w=S*10,x=A*10,"deltaY"in y&&(x=y.deltaY),"deltaX"in y&&(w=y.deltaX),y.shiftKey&&!w&&(w=x,x=0),(w||x)&&y.deltaMode&&(y.deltaMode===1?(w*=40,x*=40):(w*=800,x*=800)),w&&!S&&(S=w<1?-1:1),x&&!A&&(A=x<1?-1:1),{spinX:S,spinY:A,pixelX:w,pixelY:x}}function f(){e.enabled&&(e.mouseEntered=!0)}function d(){e.enabled&&(e.mouseEntered=!1)}function h(y){return e.params.mousewheel.thresholdDelta&&y.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Li()-o<e.params.mousewheel.thresholdTime?!1:y.delta>=6&&Li()-o<60?!0:(y.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),i("scroll",y.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),i("scroll",y.raw)),o=new s.Date().getTime(),!1)}function p(y){const E=e.params.mousewheel;if(y.direction<0){if(e.isEnd&&!e.params.loop&&E.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&E.releaseOnEdges)return!0;return!1}function m(y){let E=y,b=!0;if(!e.enabled||y.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const T=e.params.mousewheel;e.params.cssMode&&E.preventDefault();let S=e.el;e.params.mousewheel.eventsTarget!=="container"&&(S=document.querySelector(e.params.mousewheel.eventsTarget));const A=S&&S.contains(E.target);if(!e.mouseEntered&&!A&&!T.releaseOnEdges)return!0;E.originalEvent&&(E=E.originalEvent);let w=0;const x=e.rtlTranslate?-1:1,L=u(E);if(T.forceToAxis)if(e.isHorizontal())if(Math.abs(L.pixelX)>Math.abs(L.pixelY))w=-L.pixelX*x;else return!0;else if(Math.abs(L.pixelY)>Math.abs(L.pixelX))w=-L.pixelY;else return!0;else w=Math.abs(L.pixelX)>Math.abs(L.pixelY)?-L.pixelX*x:-L.pixelY;if(w===0)return!0;T.invert&&(w=-w);let R=e.getTranslate()+w*T.sensitivity;if(R>=e.minTranslate()&&(R=e.minTranslate()),R<=e.maxTranslate()&&(R=e.maxTranslate()),b=e.params.loop?!0:!(R===e.minTranslate()||R===e.maxTranslate()),b&&e.params.nested&&E.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const k={time:Li(),delta:Math.abs(w),direction:Math.sign(w),raw:y};c.length>=2&&c.shift();const F=c.length?c[c.length-1]:void 0;if(c.push(k),F?(k.direction!==F.direction||k.delta>F.delta||k.time>F.time+150)&&h(k):h(k),p(k))return!0}else{const k={time:Li(),delta:Math.abs(w),direction:Math.sign(w)},F=l&&k.time<l.time+500&&k.delta<=l.delta&&k.direction===l.direction;if(!F){l=void 0;let U=e.getTranslate()+w*T.sensitivity;const H=e.isBeginning,M=e.isEnd;if(U>=e.minTranslate()&&(U=e.minTranslate()),U<=e.maxTranslate()&&(U=e.maxTranslate()),e.setTransition(0),e.setTranslate(U),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!H&&e.isBeginning||!M&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:k.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(a),a=void 0,c.length>=15&&c.shift();const O=c.length?c[c.length-1]:void 0,q=c[0];if(c.push(k),O&&(k.delta>O.delta||k.direction!==O.direction))c.splice(0);else if(c.length>=15&&k.time-q.time<500&&q.delta-k.delta>=1&&k.delta<=6){const P=w>0?.8:.2;l=k,c.splice(0),a=Fl(()=>{e.destroyed||!e.params||e.slideToClosest(e.params.speed,!0,void 0,P)},0)}a||(a=Fl(()=>{if(e.destroyed||!e.params)return;const P=.5;l=k,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,P)},500))}if(F||i("scroll",E),e.params.autoplay&&e.params.autoplay.disableOnInteraction&&e.autoplay.stop(),T.releaseOnEdges&&(U===e.minTranslate()||U===e.maxTranslate()))return!0}}return E.preventDefault?E.preventDefault():E.returnValue=!1,!1}function g(y){let E=e.el;e.params.mousewheel.eventsTarget!=="container"&&(E=document.querySelector(e.params.mousewheel.eventsTarget)),E[y]("mouseenter",f),E[y]("mouseleave",d),E[y]("wheel",m)}function _(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",m),!0):e.mousewheel.enabled?!1:(g("addEventListener"),e.mousewheel.enabled=!0,!0)}function v(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,m),!0):e.mousewheel.enabled?(g("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}r("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&v(),e.params.mousewheel.enabled&&_()}),r("destroy",()=>{e.params.cssMode&&_(),e.mousewheel.enabled&&v()}),Object.assign(e.mousewheel,{enable:_,disable:v})}function ew(t,e,n,r){return t.params.createElements&&Object.keys(r).forEach(i=>
vendor: 5,347 bytes, line 186
186{if(!n[i]&&n.auto===!0){let s=ir(t.el,`.${r[i]}`)[0];s||(s=pi("div",r[i]),s.className=r[i],t.el.append(s)),n[i]=s,e[i]=s}}),n}function ate(t){let{swiper:e,extendParams:n,on:r,emit:i}=t;n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function s(p){let m;return p&&typeof p=="string"&&e.isElement&&(m=e.el.querySelector(p)||e.hostEl.querySelector(p),m)?m:(p&&(typeof p=="string"&&(m=[...document.querySelectorAll(p)]),e.params.uniqueNavElements&&typeof p=="string"&&m&&m.length>1&&e.el.querySelectorAll(p).length===1?m=e.el.querySelector(p):m&&m.length===1&&(m=m[0])),p&&!m?p:m)}function a(p,m){const g=e.params.navigation;p=at(p),p.forEach(_=>{_&&(_.classList[m?"add":"remove"](...g.disabledClass.split(" ")),_.tagName==="BUTTON"&&(_.disabled=m),e.params.watchOverflow&&e.enabled&&_.classList[e.isLocked?"add":"remove"](g.lockClass))})}function o(){const{nextEl:p,prevEl:m}=e.navigation;if(e.params.loop){a(m,!1),a(p,!1);return}a(m,e.isBeginning&&!e.params.rewind),a(p,e.isEnd&&!e.params.rewind)}function l(p){p.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),i("navigationPrev"))}function c(p){p.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),i("navigationNext"))}function u(){const p=e.params.navigation;if(e.params.navigation=ew(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(p.nextEl||p.prevEl))return;let m=s(p.nextEl),g=s(p.prevEl);Object.assign(e.navigation,{nextEl:m,prevEl:g}),m=at(m),g=at(g);const _=(v,y)=>{v&&v.addEventListener("click",y==="next"?c:l),!e.enabled&&v&&v.classList.add(...p.lockClass.split(" "))};m.forEach(v=>_(v,"next")),g.forEach(v=>_(v,"prev"))}function f(){let{nextEl:p,prevEl:m}=e.navigation;p=at(p),m=at(m);const g=(_,v)=>{_.removeEventListener("click",v==="next"?c:l),_.classList.remove(...e.params.navigation.disabledClass.split(" "))};p.forEach(_=>g(_,"next")),m.forEach(_=>g(_,"prev"))}r("init",()=>{e.params.navigation.enabled===!1?h():(u(),o())}),r("toEdge fromEdge lock unlock",()=>{o()}),r("destroy",()=>{f()}),r("enable disable",()=>{let{nextEl:p,prevEl:m}=e.navigation;if(p=at(p),m=at(m),e.enabled){o();return}[...p,...m].filter(g=>!!g).forEach(g=>g.classList.add(e.params.navigation.lockClass))}),r("click",(p,m)=>{let{nextEl:g,prevEl:_}=e.navigation;g=at(g),_=at(_);const v=m.target;let y=_.includes(v)||g.includes(v);if(e.isElement&&!y){const E=m.path||m.composedPath&&m.composedPath();E&&(y=E.find(b=>g.includes(b)||_.includes(b)))}if(e.params.navigation.hideOnClick&&!y){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===v||e.pagination.el.contains(v)))return;let E;g.length?E=g[0].classList.contains(e.params.navigation.hiddenClass):_.length&&(E=_[0].classList.contains(e.params.navigation.hiddenClass)),i(E===!0?"navigationShow":"navigationHide"),[...g,..._].filter(b=>!!b).forEach(b=>b.classList.toggle(e.params.navigation.hiddenClass))}});const d=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),o()},h=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),f()};Object.assign(e.navigation,{enable:d,disable:h,update:o,init:u,destroy:f})}function na(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function ote(t){let{swiper:e,extendParams:n,on:r,emit:i}=t;const s="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:v=>v,formatFractionTotal:v=>v,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,bullets:[]};let a,o=0;function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(v,y){const{bulletActiveClass:E}=e.params.pagination;v&&(v=v[`${y==="prev"?"previous":"next"}ElementSibling`],v&&(v.classList.add(`${E}-${y}`),v=v[`${y==="prev"?"previous":"next"}ElementSibling`],v&&v.classList.add(`${E}-${y}-${y}`)))}function u(v,y,E){if(v=v%E,y=y%E,y===v+1)return"next";if(y===v-1)return"previous"}function f(v){const y=v.target.closest(na(e.params.pagination.bulletClass));if(!y)return;v.preventDefault();const E=Cd(y)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===E)return;const b=u(e.realIndex,E,e.slides.length);b==="next"?e.slideNext():b==="previous"?e.slidePrev():e.slideToLoop(E)}else e.slideTo(E)}function d(){const v=e.rtl,y=e.params.pagination;if(l())return;let E=e.pagination.el;E=at(E);let b,T;const S=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,A=e.params.loop?Math.
186ceil(S/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(T=e.previousRealIndex||0,b=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(b=e.snapIndex,T=e.previousSnapIndex):(T=e.previousIndex||0,b=e.activeIndex||0),y.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const w=e.pagination.bullets;let x,L,R;if(y.dynamicBullets&&(a=Hb(w[0],e.isHorizontal()?"width":"height"),E.forEach(k=>{k.style[e.isHorizontal()?"width":"height"]=`${a*(y.dynamicMainBullets+4)}px`}),y.dynamicMainBullets>1&&T!==void 0&&(o+=b-(T||0),o>y.dynamicMainBullets-1?o=y.dynamicMainBullets-1:o<0&&(o=0)),x=Math.max(b-o,0),L=x+(Math.min(w.length,y.dynamicMainBullets)-1),R=(L+x)/2),w.forEach(k=>{const F=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(U=>`${y.bulletActiveClass}${U}`)].map(U=>typeof U=="string"&&U.includes(" ")?U.split(" "):U).flat();k.classList.remove(...F)}),E.length>1)w.forEach(k=>{const F=Cd(k);F===b?k.classList.add(...y.bulletActiveClass.split(" ")):e.isElement&&k.setAttribute("part","bullet"),y.dynamicBullets&&(F>=x&&F<=L&&k.classList.add(...`${y.bulletActiveClass}-main`.split(" ")),F===x&&c(k,"prev"),F===L&&c(k,"next"))});
186else{const k=w[b];if(k&&k.classList.add(...y.bulletActiveClass.split(" ")),e.isElement&&w.forEach((F,U)=>{F.setAttribute("part",U===b?"bullet-active":"bullet")}),y.dynamicBullets){const F=w[x],U=w[L];for(let H=x;H<=L;H+=1)w[H]&&w[H].classList.add(...`${y.bulletActiveClass}-main`.split(" "));c(F,"prev"),c(U,"next")}}if(y.dynamicBullets){const k=Math.min(w.length,y.dynamicMainBullets+4),F=(a*k-a)/2-R*a,U=v?"right":"left";w.forEach(H=>{H.style[e.isHorizontal()?U:"top"]=`${F}px`})}}E.forEach((w,x)=>{if(y.type==="fraction"&&(w.querySelectorAll(na(y.currentClass)).forEach(L=>{L.textContent=y.formatFractionCurrent(b+1)}),w.querySelectorAll(na(y.totalClass)).forEach(L=>{L.textContent=y.formatFractionTotal(A)})),y.type==="progressbar"){let L;y.progressbarOpposite?L=e.isHorizontal()?"vertical":"horizontal":L=e.isHorizontal()?"horizontal":"vertical";const R=(b+1)/A;let k=1,F=1;L==="horizontal"?k=R:F=R,w.querySelectorAll(na(y.progressbarFillClass)).forEach(U=>{U.style.transform=`translate3d(0,0,0) scaleX(${k}) scaleY(${F})`,U.style.transitionDuration=`${e.params.speed}ms`})}y.type==="custom"&&y.renderCustom?(w.innerHTML=y.renderCustom(e,b+1,A),x===0&&i("paginationRender",w)):(x===0&&i("paginationRender",w),i("paginationUpdate",w)),e.params.watchOverflow&&e.enabled&&w.classList[e.isLocked?"add":"remove"](y.lockClass)})}function h(){const v=e.params.pagination;if(l())return;const y=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let E=e.pagination.el;E=at(E);let b="";if(v.type==="bullets"){let T=e.params.loop?Math.ceil(y/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&T>y&&(T=y);for(let S=0;S<T;S+=1)v.renderBullet?b+=v.renderBullet.call(e,S,v.bulletClass):b+=`<${v.bulletElement} ${e.isElement?'part="bullet"':""} class="${v.bulletClass}"></${v.bulletElement}>`}v.type==="fraction"&&(v.renderFraction?b=v.renderFraction.call(e,v.currentClass,v.totalClass):b=`<span class="${v.currentClass}"></span> / <span class="${v.totalClass}"></span>`),v.type==="progressbar"&&(v.renderProgressbar?b=v.renderProgressbar.call(e,v.progressbarFillClass):b=`<span class="${v.progressbarFillClass}"></span>`),e.pagination.bullets=[],E.forEach(T=>{v.type!=="custom"&&(T.innerHTML=b||""),v.type==="bullets"&&e.pagination.bullets.push(...T.querySelectorAll(na(v.bulletClass)))}),v.type!=="custom"&&i("paginationRender",E[0])}function p(){e.params.pagination=ew(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const v=e.params.pagination;if(!v.el)return;let y;typeof v.el=="string"&&e.isElement&&(y=e.el.querySelector(v.el)),!y&&typeof v.el=="string"&&(y=[...document.querySelectorAll(v.el)]),y||(y=v.el),!(!y||y.length===0)&&(e.params.uniqueNavElements&&typeof v.el=="string"&&Array.isArray(y)&&y.length>1&&(y=[...e.el.querySelectorAll(v.el)],y.length>1&&(y=y.find(E=>Tl(E,".swiper")[0]===e.el))),Array.isArray(y)&&y.length===1&&(y=y[0]),Object.assign(e.pagination,{el:y}),y=at(y),y.forEach(E=>{v.type==="bullets"&&v.clickable&&E.classList.add(...(v.clickableClass||"").split(" ")),E.classList.add(v.modifierClass+v.type),E.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.type==="bullets"&&v.dynamicBullets&&(E.classList.add(`${v.modifierClass}${v.type}-dynamic`),o=0,v.dynamicMainBullets<1&&(v.dynamicMainBullets=1)),v.type==="progressbar"&&v.progressbarOpposite&&E.classList.add(v.progressbarOppositeClass),v.clickable&&E.addEventListener("click",f),e.enabled||E.classList.add(v.lockClass)}))}function m(){const v=e.params.pagination;if(l())return;let y=e.pagination.el;y&&(y=at(y),y.forEach(E=>{E.classList.remove(v.hiddenClass),E.classList.remove(v.modifierClass+v.type),E.classList.remove(e.isHorizontal()?v.horizontalClass:v.verticalClass),v.clickable&&(E.classList.remove(...(v.clickableClass||"").split(" ")),E.removeEventListener("click",f))})),e.pagination.bullets&&e.pagination.bullets.forEach(E=>E.classList.remove(...v.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const v=e.params.pagination;let{el:y}=e.pagination;
186y=at(y),y.forEach(E=>{E.classList.remove(v.horizontalClass,v.verticalClass),E.classList.add(e.isHorizontal()?v.horizontalClass:v.verticalClass)})}),r("init",()=>{e.params.pagination.enabled===!1?_():(p(),h(),d())}),r("activeIndexChange",()=>{typeof e.snapIndex>"u"&&d()}),r("snapIndexChange",()=>{d()}),r("snapGridLengthChange",()=>{h(),d()}),r("destroy",()=>{m()}),r("enable disable",()=>{let{el:v}=e.pagination;v&&(v=at(v),v.forEach(y=>y.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),r("lock unlock",()=>{d()}),r("click",(v,y)=>{const E=y.target,b=at(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&b&&b.length>0&&!E.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&E===e.navigation.nextEl||e.navigation.prevEl&&E===e.navigation.prevEl))return;const T=b[0].classList.contains(e.params.pagination.hiddenClass);i(T===!0?"paginationShow":"paginationHide"),b.forEach(S=>S.classList.toggle(e.params.pagination.hiddenClass))}});const g=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=at(v),v.forEach(y=>y.classList.remove(e.params.pagination.paginationDisabledClass))),p(),h(),d()},_=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:v}=e.pagination;v&&(v=at(v),v.forEach(y=>y.classList.add(e.params.pagination.paginationDisabledClass))),m()};Object.assign(e.pagination,{enable:g,disable:_,render:h,update:d,init:p,destroy:m})}function lte(t){let{swiper:e,extendParams:n,on:r,emit:i}=t;const s=Vn();let a=!1,o=null,l=null,c,u,f,d;n({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function h(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:R,rtlTranslate:k}=e,{dragEl:F,el:U}=R,H=e.params.scrollbar,M=e.params.loop?e.progressLoop:e.progress;let O=u,q=(f-u)*M;k?(q=-q,q>0?(O=u-q,q=0):-q+u>f&&(O=f+q)):q<0?(O=u+q,q=0):q+u>f&&(O=f-q),e.isHorizontal()?(F.style.transform=`translate3d(${q}px, 0, 0)`,F.style.width=`${O}px`):(F.style.transform=`translate3d(0px, ${q}px, 0)`,F.style.height=`${O}px`),H.hide&&(clearTimeout(o),U.style.opacity=1,o=setTimeout(()=>{U.style.opacity=0,U.style.transitionDuration="400ms"},1e3))}function p(R){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${R}ms`)}function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:R}=e,{dragEl:k,el:F}=R;k.style.width="",k.style.height="",f=e.isHorizontal()?F.offsetWidth:F.offsetHeight,d=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?u=f*d:u=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?k.style.width=`${u}px`:k.style.height=`${u}px`,d>=1?F.style.display="none":F.style.display="",e.params.scrollbar.hide&&(F.style.opacity=0),e.params.watchOverflow&&e.enabled&&R.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function g(R){return e.isHorizontal()?R.clientX:R.clientY}function _(R){const{scrollbar:k,rtlTranslate:F}=e,{el:U}=k;let H;H=(g(R)-Qm(U)[e.isHorizontal()?"left":"top"]-(c!==null?c:u/2))/(f-u),H=Math.max(Math.min(H,1),0),F&&(H=1-H);const M=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*H;e.updateProgress(M),e.setTranslate(M),e.updateActiveIndex(),e.updateSlidesClasses()}function v(R){const k=e.params.scrollbar,{scrollbar:F,wrapperEl:U}=e,{el:H,dragEl:M}=F;a=!0,c=R.target===M?g(R)-R.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,R.preventDefault(),R.stopPropagation(),U.style.transitionDuration="100ms",M.style.transitionDuration="100ms",_(R),clearTimeout(l),H.style.transitionDuration="0ms",k.hide&&(H.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),i("scrollbarDragStart",R)}function y(R){const{scrollbar:k,wrapperEl:F}=e,{el:U,dragEl:H}=k;a&&(R.preventDefault&&R.cancelable?R.preventDefault():R.returnValue=!1,_(R),F.style.transitionDuration="0ms",U.style.transitionDuration="0ms",H.style.transitionDuration="0ms",i("scrollbarDragMove",R))}function E(R){const k=e.params.scrollbar,{scrollbar:F,wrapperEl:U}=e,{el:H}=F;a&&(a=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",U.style.transitionDuration=""),k.hide&&(clearTimeout(l),l=Fl(()=>{H.style.opacity=0,H.style.transitionDuration="400ms"},1e3)),i("scrollbarDragEnd",R),k.snapOnRelease&&e.slideToClosest())}function b(R){const{scrollbar:k,params:F}=e,U=k.el;if(!U)return;const H=U,M=F.passiveListeners?{passive:!1,capture:!1}:!1,O=F.passiveListeners?{passive:!0,capture:!1}:!1;if(!H)return;const q=R==="on"?"addEventListener":"removeEventListener";H[q]("pointerdown",v,M),s[q]("pointermove",y,M),s[q]("pointerup",E,O)}function T(){!e.params.scrollbar.el||!e.scrollbar.el||b("on")}function S(){!e.params.scrollbar.el||!e.scrollbar.el||b("off")}function A(){const{scrollbar:R,el:k}=e;e.params.scrollbar=ew(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const F=e.params.scrollbar;if(!F.el)return;let U;if(typeof F.el=="string"&&e.isElement&&(U=e.el.querySelector(F.el)),!U&&typeof F.el=="string"){if(U=s.querySelectorAll(F.el),!U.length)return}else U||(U=F.el);e.params.uniqueNavElements&&typeof F.el=="string"&&U.length>1&&k.querySelectorAll(F.el).length===1&&(U=k.querySelector(F.el)),U.length>0&&(U=U[0]),U.classList.add(e.isHorizontal()?F.horizontalClass:F.verticalClass);let H;U&&(H=U.querySelector(na(e.params.scrollbar.dragClass)),H||(H=pi("div",e.params.scrollbar.dragClass),U.append(H))),Object.assign(R,{el:U,dragEl:H}),F.draggable&&T(),U&&U.classList[e.enabled?"remove":"add"](...La(e.params.scrollbar.lockClass))}function w(){const R=e.params.scrollbar,k=e.scrollbar.el;k&&k.classList.remove(...La(e.isHorizontal()?R.horizontalClass:R.verticalClass)),S()}r("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const R=e.params.scrollbar;let{el:k}=e.scrollbar;
186k=at(k),k.forEach(F=>{F.classList.remove(R.horizontalClass,R.verticalClass),F.classList.add(e.isHorizontal()?R.horizontalClass:R.verticalClass)})}),r("init",()=>{e.params.scrollbar.enabled===!1?L():(A(),m(),h())}),r("update resize observerUpdate lock unlock changeDirection",()=>{m()}),r("setTranslate",()=>{h()}),r("setTransition",(R,k)=>{p(k)}),r("enable disable",()=>{const{el:R}=e.scrollbar;R&&R.classList[e.enabled?"remove":"add"](...La(e.params.scrollbar.lockClass))}),r("destroy",()=>{w()});const x=()=>{e.el.classList.remove(...La(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...La(e.params.scrollbar.scrollbarDisabledClass)),A(),m(),h()},L=()=>{e.el.classList.add(...La(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...La(e.params.scrollbar.scrollbarDisabledClass)),w()};Object.assign(e.scrollbar,{enable:x,disable:L,updateSize:m,setTranslate:h,init:A,destroy:w})}function cte(t){let{swiper:e,extendParams:n,on:r}=t;n({parallax:{enabled:!1}});const i="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",s=(l,c)=>{const{rtl:u}=e,f=u?-1:1,d=l.getAttribute("data-swiper-parallax")||"0";let h=l.getAttribute("data-swiper-parallax-x"),p=l.getAttribute("data-swiper-parallax-y");const m=l.getAttribute("data-swiper-parallax-scale"),g=l.getAttribute("data-swiper-parallax-opacity"),_=l.getAttribute("data-swiper-parallax-rotate");if(h||p?(h=h||"0",p=p||"0"):e.isHorizontal()?(h=d,p="0"):(p=d,h="0"),h.indexOf("%")>=0?h=`${parseInt(h,10)*c*f}%`:h=`${h*c*f}px`,p.indexOf("%")>=0?p=`${parseInt(p,10)*c}%`:p=`${p*c}px`,typeof g<"u"&&g!==null){const y=g-(g-1)*(1-Math.abs(c));l.style.opacity=y}let v=`translate3d(${h}, ${p}, 0px)`;if(typeof m<"u"&&m!==null){const y=m-(m-1)*(1-Math.abs(c));v+=` scale(${y})`}if(_&&typeof _<"u"&&_!==null){const y=_*c*-1;v+=` rotate(${y}deg)`}l.style.transform=v},a=()=>{const{el:l,slides:c,progress:u,snapGrid:f,isElement:d}=e,h=ir(l,i);e.isElement&&h.push(...ir(e.hostEl,i)),h.forEach(p=>{s(p,u)}),c.forEach((p,m)=>{let g=p.progress;e.params.slidesPerGroup>1&&e.params.slidesPerView!=="auto"&&(g+=Math.ceil(m/2)-u*(f.length-1)),g=Math.min(Math.max(g,-1),1),p.querySelectorAll(`${i}, [data-swiper-parallax-rotate]`).forEach(_=>{s(_,g)})})},o=function(l){l===void 0&&(l=e.params.speed);const{el:c,hostEl:u}=e,f=[...c.querySelectorAll(i)];e.isElement&&f.push(...u.querySelectorAll(i)),f.forEach(d=>{let h=parseInt(d.getAttribute("data-swiper-parallax-duration"),10)||l;l===0&&(h=0),d.style.transitionDuration=`${h}ms`})};r("beforeInit",()=>{e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)}),r("init",()=>{e.params.parallax.enabled&&a()}),r("setTranslate",()=>{e.params.parallax.enabled&&a()}),r("setTransition",(l,c)=>{e.params.parallax.enabled&&o(c)})}function ute(t){let{swiper:e,extendParams:n,on:r,emit:i}=t;const s=Kt();n({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,panOnMouseMove:!1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let a=1,o=!1,l=!1,c={x:0,y:0};const u=-3;let f,d;const h=[],p={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},m={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},g={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let _=1;Object.defineProperty(e.zoom,"scale",{get(){return _},set(z){if(_!==z){const G=p.imageEl,N=p.slideEl;i("zoomChange",z,G,N)}_=z}});function v(){if(h.length<2)return 1;const z=h[0].pageX,G=h[0].pageY,N=h[1].pageX,$=h[1].pageY;return Math.sqrt((N-z)**2+($-G)**2)}function y(){const z=e.params.zoom,G=p.imageWrapEl.getAttribute("data-swiper-zoom")||z.maxRatio;if(z.limitToOriginalSize&&p.imageEl&&p.imageEl.naturalWidth){const N=p.imageEl.naturalWidth/p.imageEl.offsetWidth;return Math.min(N,G)}return G}
186function E(){if(h.length<2)return{x:null,y:null};const z=p.imageEl.getBoundingClientRect();return[(h[0].pageX+(h[1].pageX-h[0].pageX)/2-z.x-s.scrollX)/a,(h[0].pageY+(h[1].pageY-h[0].pageY)/2-z.y-s.scrollY)/a]}function b(){return e.isElement?"swiper-slide":`.${e.params.slideClass}`}function T(z){const G=b();return!!(z.target.matches(G)||e.slides.filter(N=>N.contains(z.target)).length>0)}function S(z){const G=`.${e.params.zoom.containerClass}`;return!!(z.target.matches(G)||[...e.hostEl.querySelectorAll(G)].filter(N=>N.contains(z.target)).length>0)}function A(z){if(z.pointerType==="mouse"&&h.splice(0,h.length),!T(z))return;const G=e.params.zoom;if(f=!1,d=!1,h.push(z),!(h.length<2)){if(f=!0,p.scaleStart=v(),!p.slideEl){p.slideEl=z.target.closest(`.${e.params.slideClass}, swiper-slide`),p.slideEl||(p.slideEl=e.slides[e.activeIndex]);let N=p.slideEl.querySelector(`.${G.containerClass}`);if(N&&(N=N.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),p.imageEl=N,N?p.imageWrapEl=Tl(p.imageEl,`.${G.containerClass}`)[0]:p.imageWrapEl=void 0,!p.imageWrapEl){p.imageEl=void 0;return}p.maxRatio=y()}if(p.imageEl){const[N,$]=E();p.originX=N,p.originY=$,p.imageEl.style.transitionDuration="0ms"}o=!0}}function w(z){if(!T(z))return;const G=e.params.zoom,N=e.zoom,$=h.findIndex(j=>j.pointerId===z.pointerId);$>=0&&(h[$]=z),!(h.length<2)&&(d=!0,p.scaleMove=v(),p.imageEl&&(N.scale=p.scaleMove/p.scaleStart*a,N.scale>p.maxRatio&&(N.scale=p.maxRatio-1+(N.scale-p.maxRatio+1)**.5),N.scale<G.minRatio&&(N.scale=G.minRatio+1-(G.minRatio-N.scale+1)**.5),p.imageEl.style.transform=`translate3d(0,0,0) scale(${N.scale})`))}function x(z){if(!T(z)||z.pointerType==="mouse"&&z.type==="pointerout")return;const G=e.params.zoom,N=e.zoom,$=h.findIndex(j=>j.pointerId===z.pointerId);$>=0&&h.splice($,1),!(!f||!d)&&(f=!1,d=!1,p.imageEl&&(N.scale=Math.max(Math.min(N.scale,p.maxRatio),G.minRatio),p.imageEl.style.transitionDuration=`${e.params.speed}ms`,p.imageEl.style.transform=`translate3d(0,0,0) scale(${N.scale})`,a=N.scale,o=!1,N.scale>1&&p.slideEl?p.slideEl.classList.add(`${G.zoomedSlideClass}`):N.scale<=1&&p.slideEl&&p.slideEl.classList.remove(`${G.zoomedSlideClass}`),N.scale===1&&(p.originX=0,p.originY=0,p.slideEl=void 0)))}let L;function R(){e.touchEventsData.preventTouchMoveFromPointerMove=!1}function k(){clearTimeout(L),e.touchEventsData.preventTouchMoveFromPointerMove=!0,L=setTimeout(()=>{e.destroyed||R()})}function F(z){const G=e.device;if(!p.imageEl||m.isTouched)return;G.android&&z.cancelable&&z.preventDefault(),m.isTouched=!0;const N=h.length>0?h[0]:z;m.touchesStart.x=N.pageX,m.touchesStart.y=N.pageY}function U(z){const N=z.pointerType==="mouse"&&e.params.zoom.panOnMouseMove;if(!T(z)||!S(z))return;const $=e.zoom;if(!p.imageEl)return;if(!m.isTouched||!p.slideEl){N&&O(z);return}if(N){O(z);return}m.isMoved||(m.width=p.imageEl.offsetWidth||p.imageEl.clientWidth,m.height=p.imageEl.offsetHeight||p.imageEl.clientHeight,m.startX=Ub(p.imageWrapEl,"x")||0,m.startY=Ub(p.imageWrapEl,"y")||0,p.slideWidth=p.slideEl.offsetWidth,p.slideHeight=p.slideEl.offsetHeight,p.imageWrapEl.style.transitionDuration="0ms");const j=m.width*$.scale,V=m.height*$.scale;if(m.minX=Math.min(p.slideWidth/2-j/2,0),m.maxX=-m.minX,m.minY=Math.min(p.slideHeight/2-V/2,0),m.maxY=-m.minY,m.touchesCurrent.x=h.length>0?h[0].pageX:z.pageX,m.touchesCurrent.y=h.length>0?h[0].pageY:z.pageY,Math.max(Math.abs(m.touchesCurrent.x-m.touchesStart.x),Math.abs(m.touchesCurrent.y-m.touchesStart.y))>5&&(e.allowClick=!1),!m.isMoved&&!o){if(e.isHorizontal()&&(Math.floor(m.minX)===Math.floor(m.startX)&&m.touchesCurrent.x<m.touchesStart.x||Math.floor(m.maxX)===Math.floor(m.startX)&&m.touchesCurrent.x>m.touchesStart.x)){m.isTouched=!1,R();return}if(!e.isHorizontal()&&(Math.floor(m.minY)===Math.floor(m.startY)&&m.touchesCurrent.y<m.touchesStart.y||Math.floor(m.maxY)===Math.floor(m.startY)&&m.touchesCurrent.y>m.touchesStart.y)){m.isTouched=!1,R();return}}z.cancelable&&z.preventDefault(),z.stopPropagation(),k(),m.isMoved=!0;const Y=($.scale-a)/(p.maxRatio-e.params.zoom.minRatio),{originX:C,originY:D}=p;m.currentX=m.touchesCurrent.x-m.touchesStart.x+m.startX+Y*(m.width-C*2),m.currentY=m.touchesCurrent.y-m.touchesStart.y+m.startY+Y*(m.height-D*2),m.currentX<m.minX&&(m.currentX=m.minX+1-(m.minX-m.currentX+1)**.8),m.currentX>m.maxX&&(m.currentX=m.maxX-1+(m.currentX-m.maxX+1)**.8),m.currentY<m.minY&&(m.currentY=m.minY+1-(m.minY-m.currentY+1)**.8),m.currentY>m.maxY&&(m.currentY=m.maxY-1+(m.currentY-m.maxY+1)**.8),g.prevPositionX||(g.prevPositionX=m.touchesCurrent.x),g.prevPositionY||(g.prevPositionY=m.touchesCurrent.y),g.prevTime||(g.prevTime=Date.now()),g.x=(m.touchesCurrent.x-g.prevPositionX)/(Date.now()-g.prevTime)/2,g.y=(m.touchesCurrent.y-g.prevPositionY)/(Date.now()-g.prevTime)/2,Math.abs(m.touchesCurrent.x-g.prevPositionX)<2&&(g.x=0),Math.abs(m.touchesCurrent.y-g.prevPositionY)<2&&(g.y=0),g.prevPositionX=m.touchesCurrent.x,g.prevPositionY=m.touchesCurrent.y,g.prevTime=Date.now(),p.imageWrapEl.style.transform=`translate3d(${m.currentX}px, ${m.currentY}px,0)`}function H(){const z=e.zoom;if(h.length=0,!p.imageEl)return;if(!m.isTouched||!m.isMoved){m.isTouched=!1,m.isMoved=!1;return}m.isTouched=!1,m.isMoved=!1;let G=300,N=300;const $=g.x*G,j=m.currentX+$,V=g.y*N,W=m.currentY+V;g.x!==0&&(G=Math.abs((j-m.currentX)/g.x)),g.y!==0&&(N=Math.abs((W-m.currentY)/g.y
186));const Y=Math.max(G,N);m.currentX=j,m.currentY=W;const C=m.width*z.scale,D=m.height*z.scale;m.minX=Math.min(p.slideWidth/2-C/2,0),m.maxX=-m.minX,m.minY=Math.min(p.slideHeight/2-D/2,0),m.maxY=-m.minY,m.currentX=Math.max(Math.min(m.currentX,m.maxX),m.minX),m.currentY=Math.max(Math.min(m.currentY,m.maxY),m.minY),p.imageWrapEl.style.transitionDuration=`${Y}ms`,p.imageWrapEl.style.transform=`translate3d(${m.currentX}px, ${m.currentY}px,0)`}function M(){const z=e.zoom;p.slideEl&&e.activeIndex!==e.slides.indexOf(p.slideEl)&&(p.imageEl&&(p.imageEl.style.transform="translate3d(0,0,0) scale(1)"),p.imageWrapEl&&(p.imageWrapEl.style.transform="translate3d(0,0,0)"),p.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),z.scale=1,a=1,p.slideEl=void 0,p.imageEl=void 0,p.imageWrapEl=void 0,p.originX=0,p.originY=0)}function O(z){if(a<=1||!p.imageWrapEl||!T(z)||!S(z))return;const G=s.getComputedStyle(p.imageWrapEl).transform,N=new s.DOMMatrix(G);if(!l){l=!0,c.x=z.clientX,c.y=z.clientY,m.startX=N.e,m.startY=N.f,m.width=p.imageEl.offsetWidth||p.imageEl.clientWidth,m.height=p.imageEl.offsetHeight||p.imageEl.clientHeight,p.slideWidth=p.slideEl.offsetWidth,p.slideHeight=p.slideEl.offsetHeight;return}const $=(z.clientX-c.x)*u,j=(z.clientY-c.y)*u,V=m.width*a,W=m.height*a,Y=p.slideWidth,C=p.slideHeight,D=Math.min(Y/2-V/2,0),K=-D,ee=Math.min(C/2-W/2,0),B=-ee,ie=Math.max(Math.min(m.startX+$,K),D),fe=Math.max(Math.min(m.startY+j,B),ee);p.imageWrapEl.style.transitionDuration="0ms",p.imageWrapEl.style.transform=`translate3d(${ie}px, ${fe}px, 0)`,c.x=z.clientX,c.y=z.clientY,m.startX=ie,m.startY=fe}function q(z){const G=e.zoom,N=e.params.zoom;if(!p.slideEl){z&&z.target&&(p.slideEl=z.target.closest(`.${e.params.slideClass}, swiper-slide`)),p.slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?p.slideEl=ir(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:p.slideEl=e.slides[e.activeIndex]);let Ne=p.slideEl.querySelector(`.${N.containerClass}`);Ne&&(Ne=Ne.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),p.imageEl=Ne,Ne?p.imageWrapEl=Tl(p.imageEl,`.${N.containerClass}`)[0]:p.imageWrapEl=void 0}if(!p.imageEl||!p.imageWrapEl)return;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),p.slideEl.classList.add(`${N.zoomedSlideClass}`);let $,j,V,W,Y,C,D,K,ee,B,ie,fe,ue,se,oe,Ee,he,me;typeof m.touchesStart.x>"u"&&z?($=z.pageX,j=z.pageY):($=m.touchesStart.x,j=m.touchesStart.y);const we=typeof z=="number"?z:null;a===1&&we&&($=void 0,j=void 0,m.touchesStart.x=void 0,m.touchesStart.y=void 0);const Ae=y();G.scale=we||Ae,a=we||Ae,z&&!(a===1&&we)?(he=p.slideEl.offsetWidth,me=p.slideEl.offsetHeight,V=Qm(p.slideEl).left+s.scrollX,W=Qm(p.slideEl).top+s.scrollY,Y=V+he/2-$,C=W+me/2-j,ee=p.imageEl.offsetWidth||p.imageEl.clientWidth,B=p.imageEl.offsetHeight||p.imageEl.clientHeight,ie=ee*G.scale,fe=B*G.scale,ue=Math.min(he/2-ie/2,0),se=Math.min(me/2-fe/2,0),oe=-ue,Ee=-se,D=Y*G.scale,K=C*G.scale,D<ue&&(D=ue),D>oe&&(D=oe),K<se&&(K=se),K>Ee&&(K=Ee)):(D=0,K=0),we&&G.scale===1&&(p.originX=0,p.originY=0),p.imageWrapEl.style.transitionDuration="300ms",p.imageWrapEl.style.transform=`translate3d(${D}px, ${K}px,0)`,p.imageEl.style.transitionDuration="300ms",p.imageEl.style.transform=`translate3d(0,0,0) scale(${G.scale})`}function P(){const z=e.zoom,G=e.params.zoom;if(!p.slideEl){e.params.virtual&&e.params.virtual.enabled&&e.virtual?p.slideEl=ir(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:p.slideEl=e.slides[e.activeIndex];let N=p.slideEl.querySelector(`.${G.containerClass}`);N&&(N=N.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),p.imageEl=N,N?p.imageWrapEl=Tl(p.imageEl,`.${G.containerClass}`)[0]:p.imageWrapEl=void 0}!p.imageEl||!p.imageWrapEl||(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),z.scale=1,a=1,m.touchesStart.x=void 0,m.touchesStart.y=void 0,p.imageWrapEl.style.transitionDuration="300ms",p.imageWrapEl.style.transform="translate3d(0,0,0)",p.imageEl.style.transitionDuration="300ms",p.imageEl.style.transform="translate3d(0,0,0) scale(1)",p.slideEl.classList.remove(`${G.zoomedSlideClass}`),p.slideEl=void 0,p.originX=0,p.originY=0,e.params.zoom.panOnMouseMove&&(c={x:0,y:0},l&&(l=!1,m.startX=0,m.startY=0)))}function ae(z){const G=e.zoom;G.scale&&G.scale!==1?P():q(z)}function ce(){const z=e.params.passiveListeners?{passive:!0,capture:!1}:!1,G=e.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:z,activeListenerWithCapture:G}}function ye(){const z=e.zoom;if(z.enabled)return;z.enabled=!0;const{passiveListener:G,activeListenerWithCapture:N}=ce();e.wrapperEl.addEventListener("pointerdown",A,G),e.wrapperEl.addEventListener("pointermove",w,N),["pointerup","pointercancel","pointerout"].forEach($=>{e.wrapperEl.addEventListener($,x,G)}),e.wrapperEl.addEventListener("pointermove",U,N)}function ve(){const z=e.zoom;if(!z.enabled)return;z.enabled=!1;const{passiveListener:G,activeListenerWithCapture:N}=ce();e.wrapperEl.removeEventListener("pointerdown",A,G),e.wrapperEl.removeEventListener("pointermove",w,N),["pointerup","pointercancel","pointerout"].forEach($=>{e.wrapperEl.removeEventListener($,x,G)}),e.wrapperEl.removeEventListener("pointermove",U,N)}r("init",()=>{e.params.zoom.enabled&&ye()}),r("destroy",()=>{ve()}),r("touchStart",(z,G)=>{e.zoom.enabled&&F(G)}),r("touchEnd",(z,G)=>{e.zoom.enabled&&H()}),r("doubleTap",(z,G)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&ae(G)}),r("transitionEnd",()=>{e.zoom.enabled&&e.params.zoom.enabled&&M()}),r("slideChange",()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&M()}),Object.assign(e.zoom,{enable:ye,disable:ve,in:q,out:P,toggle:ae})}function fte(t){let{swiper:e,extendParams:n,on:r}=t;n({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0};function i(c,u){const f=function(){let m,g,_;return(v,y)=>{for(g=-1,m=v.length;m-g>1;)_=m+g>>1,v[_]<=y?g=_:m=_;return m}}();this.x=c,this.y=u,this.lastIndex=c.length-1;let d,h;return this.interpolate=function(m){return m?(h=f(this.x,m),d=h-1,(m-this.x[d])*(this.y[h]-this.y[d])/(this.x[h]-this.x[d])+this.y[d]):0},this}function s(c){e.controller.spline=e.params.loop?new i(e.slidesGrid,c.slidesGrid):new i(e.snapGrid,c.snapGrid)}function a(c,u){const f=e.controller.control;let d,h;const p=e.constructor;function m(g){if(g.destroyed)return;const _=e.rtlTranslate?-e.translate:e.translate;e.params.controller.by==="slide"&&(s(g),h=-e.controller.spline.interpolate(-_)),(!h||e.params.controller.by==="container")&&(d=(g.maxTranslate()-g.minTranslate())/(e.maxTranslate()-e.minTranslate()),(Number.isNaN(d)||!Number.isFinite(d))&&(d=1),h=(_-e.minTranslate())*d+g.minTranslate()),e.params.controller.inverse&&(h=g.maxTranslate()-h),g.updateProgress(h),g.setTranslate(h,e),g.updateActiveIndex(),g.updateSlidesClasses()}if(Array.isArray(f))for(let g=0;g<f.length;g+=1)f[g]!==u&&f[g]instanceof p&&m(f[g]);else f instanceof p&&u!==f&&m(f)}function o(c,u){const f=e.constructor,d=e.controller.control;let h;
186function p(m){m.destroyed||(m.setTransition(c,e),c!==0&&(m.transitionStart(),m.params.autoHeight&&Fl(()=>{m.updateAutoHeight()}),Zf(m.wrapperEl,()=>{d&&m.transitionEnd()})))}if(Array.isArray(d))for(h=0;h<d.length;h+=1)d[h]!==u&&d[h]instanceof f&&p(d[h]);else d instanceof f&&u!==d&&p(d)}function l(){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)}r("beforeInit",()=>{if(typeof window<"u"&&(typeof e.params.controller.control=="string"||e.params.controller.control instanceof HTMLElement)){(typeof e.params.controller.control=="string"?[...document.querySelectorAll(e.params.controller.control)]:[e.params.controller.control]).forEach(u=>{if(e.controller.control||(e.controller.control=[]),u&&u.swiper)e.controller.control.push(u.swiper);else if(u){const f=`${e.params.eventsPrefix}init`,d=h=>{e.controller.control.push(h.detail[0]),e.update(),u.removeEventListener(f,d)};u.addEventListener(f,d)}});return}e.controller.control=e.params.controller.control}),r("update",()=>{l()}),r("resize",()=>{l()}),r("observerUpdate",()=>{l()}),r("setTranslate",(c,u,f)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTranslate(u,f)}),r("setTransition",(c,u,f)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTransition(u,f)}),Object.assign(e.controller,{setTranslate:a,setTransition:o})}function dte(t){let{swiper:e,extendParams:n,on:r}=t;n({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),e.a11y={clicked:!1};let i=null,s,a,o=new Date().getTime();function l(M){const O=i;O.length!==0&&(O.innerHTML="",O.innerHTML=M)}function c(M){const O=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(M).replace(/x/g,O)}function u(M){M=at(M),M.forEach(O=>{O.setAttribute("tabIndex","0")})}function f(M){M=at(M),M.forEach(O=>{O.setAttribute("tabIndex","-1")})}function d(M,O){M=at(M),M.forEach(q=>{q.setAttribute("role",O)})}function h(M,O){M=at(M),M.forEach(q=>{q.setAttribute("aria-roledescription",O)})}function p(M,O){M=at(M),M.forEach(q=>{q.setAttribute("aria-controls",O)})}function m(M,O){M=at(M),M.forEach(q=>{q.setAttribute("aria-label",O)})}function g(M,O){M=at(M),M.forEach(q=>{q.setAttribute("id",O)})}function _(M,O){M=at(M),M.forEach(q=>{q.setAttribute("aria-live",O)})}function v(M){M=at(M),M.forEach(O=>{O.setAttribute("aria-disabled",!0)})}function y(M){M=at(M),M.forEach(O=>{O.setAttribute("aria-disabled",!1)})}function E(M){if(M.keyCode!==13&&M.keyCode!==32)return;const O=e.params.a11y,q=M.target;if(!(e.pagination&&e.pagination.el&&(q===e.pagination.el||e.pagination.el.contains(M.target))&&!M.target.matches(na(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const P=at(e.navigation.prevEl);at(e.navigation.nextEl).includes(q)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?l(O.lastSlideMessage):l(O.nextSlideMessage)),P.includes(q)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?l(O.firstSlideMessage):l(O.prevSlideMessage))}e.pagination&&q.matches(na(e.params.pagination.bulletClass))&&q.click()}}function b(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:M,prevEl:O}=e.navigation;O&&(e.isBeginning?(v(O),f(O)):(y(O),u(O))),M&&(e.isEnd?(v(M),f(M)):(y(M),u(M)))}function T(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function S(){return T()&&e.params.pagination.clickable}function A(){const M=e.params.a11y;T()&&e.pagination.bullets.forEach(O=>{e.params.pagination.clickable&&(u(O),e.params.pagination.renderBullet||(d(O,"button"),m(O,M.paginationBulletMessage.replace(/\{\{index\}\}/,Cd(O)+1)))),O.matches(na(e.params.pagination.bulletActiveClass))?O.setAttribute("aria-current","true"):O.removeAttribute("aria-current")})}const w=(M,O,q)=>{u(M),M.tagName!=="BUTTON"&&(d(M,"button"),M.addEventListener("keydown",E)),m(M,q),p(M,O)},x=M=>{a&&a!==M.target&&!a.contains(M.target)&&(s=!0),e.a11y.clicked=!0},L=()=>{s=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},R=M=>{o=new Date().getTime()},k=M=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus||new Date().getTime()-o<100)return;const O=M.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!O||!e.slides.includes(O))return;a=O;const q=e.slides.indexOf(O)===e.activeIndex,P=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(O);q||P||M.sourceCapabilities&&M.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{s||(e.params.loop?e.slideToLoop(parseInt(O.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(O),0),s=!1)}))},F=()=>{const M=e.params.a11y;M.itemRoleDescriptionMessage&&h(e.slides,M.itemRoleDescriptionMessage),M.slideRole&&d(e.slides,M.slideRole);const O=e.slides.length;
186M.slideLabelMessage&&e.slides.forEach((q,P)=>{const ae=e.params.loop?parseInt(q.getAttribute("data-swiper-slide-index"),10):P,ce=M.slideLabelMessage.replace(/\{\{index\}\}/,ae+1).replace(/\{\{slidesLength\}\}/,O);m(q,ce)})},U=()=>{const M=e.params.a11y;e.el.append(i);const O=e.el;M.containerRoleDescriptionMessage&&h(O,M.containerRoleDescriptionMessage),M.containerMessage&&m(O,M.containerMessage),M.containerRole&&d(O,M.containerRole);const q=e.wrapperEl,P=M.id||q.getAttribute("id")||`swiper-wrapper-${c(16)}`,ae=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";g(q,P),_(q,ae),F();let{nextEl:ce,prevEl:ye}=e.navigation?e.navigation:{};ce=at(ce),ye=at(ye),ce&&ce.forEach(z=>w(z,P,M.nextSlideMessage)),ye&&ye.forEach(z=>w(z,P,M.prevSlideMessage)),S()&&at(e.pagination.el).forEach(G=>{G.addEventListener("keydown",E)}),Vn().addEventListener("visibilitychange",R),e.el.addEventListener("focus",k,!0),e.el.addEventListener("focus",k,!0),e.el.addEventListener("pointerdown",x,!0),e.el.addEventListener("pointerup",L,!0)};function H(){i&&i.remove();let{nextEl:M,prevEl:O}=e.navigation?e.navigation:{};M=at(M),O=at(O),M&&M.forEach(P=>P.removeEventListener("keydown",E)),O&&O.forEach(P=>P.removeEventListener("keydown",E)),S()&&at(e.pagination.el).forEach(ae=>{ae.removeEventListener("keydown",E)}),Vn().removeEventListener("visibilitychange",R),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",k,!0),e.el.removeEventListener("pointerdown",x,!0),e.el.removeEventListener("pointerup",L,!0))}r("beforeInit",()=>{i=pi("span",e.params.a11y.notificationClass),i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true")}),r("afterInit",()=>{e.params.a11y.enabled&&U()}),r("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&F()}),r("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&b()}),r("paginationUpdate",()=>{e.params.a11y.enabled&&A()}),r("destroy",()=>{e.params.a11y.enabled&&H()})}function hte(t){let{swiper:e,extendParams:n,on:r}=t;n({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let i=!1,s={};const a=h=>h.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o=h=>{const p=Kt();let m;h?m=new URL(h):m=p.location;const g=m.pathname.slice(1).split("/").filter(E=>E!==""),_=g.length,v=g[_-2],y=g[_-1];return{key:v,value:y}},l=(h,p)=>{const m=Kt();if(!i||!e.params.history.enabled)return;let g;e.params.url?g=new URL(e.params.url):g=m.location;const _=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${p}"]`):e.slides[p];let v=a(_.getAttribute("data-history"));if(e.params.history.root.length>0){let E=e.params.history.root;E[E.length-1]==="/"&&(E=E.slice(0,E.length-1)),v=`${E}/${h?`${h}/`:""}${v}`}else g.pathname.includes(h)||(v=`${h?`${h}/`:""}${v}`);e.params.history.keepQuery&&(v+=g.search);const y=m.history.state;y&&y.value===v||(e.params.history.replaceState?m.history.replaceState({value:v},null,v):m.history.pushState({value:v},null,v))},c=(h,p,m)=>{if(p)for(let g=0,_=e.slides.length;g<_;g+=1){const v=e.slides[g];if(a(v.getAttribute("data-history"))===p){const E=e.getSlideIndex(v);e.slideTo(E,h,m)}}else e.slideTo(0,h,m)},u=()=>{s=o(e.params.url),c(e.params.speed,s.value,!1)},f=()=>{const h=Kt();if(e.params.history){if(!h.history||!h.history.pushState){e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0;return}if(i=!0,s=o(e.params.url),!s.key&&!s.value){e.params.history.replaceState||h.addEventListener("popstate",u);return}c(0,s.value,e.params.runCallbacksOnInit),e.params.history.replaceState||h.addEventListener("popstate",u)}},d=()=>{const h=Kt();e.params.history.replaceState||h.removeEventListener("popstate",u)};r("init",()=>{e.params.history.enabled&&f()}),r("destroy",()=>{e.params.history.enabled&&d()}),r("transitionEnd _freeModeNoMomentumRelease",()=>{i&&l(e.params.history.key,e.activeIndex)}),r("slideChange",()=>{i&&e.params.cssMode&&l(e.params.history.key,e.activeIndex)})}function pte(t){let{swiper:e,extendParams:n,emit:r,on:i}=t,s=!1;const a=Vn(),o=Kt();n({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(d,h){
186if(e.virtual&&e.params.virtual.enabled){const p=e.slides.find(g=>g.getAttribute("data-hash")===h);return p?parseInt(p.getAttribute("data-swiper-slide-index"),10):0}return e.getSlideIndex(ir(e.slidesEl,`.${e.params.slideClass}[data-hash="${h}"], swiper-slide[data-hash="${h}"]`)[0])}}});const l=()=>{r("hashChange");const d=a.location.hash.replace("#",""),h=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],p=h?h.getAttribute("data-hash"):"";if(d!==p){const m=e.params.hashNavigation.getSlideIndex(e,d);if(typeof m>"u"||Number.isNaN(m))return;e.slideTo(m)}},c=()=>{if(!s||!e.params.hashNavigation.enabled)return;const d=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],h=d?d.getAttribute("data-hash")||d.getAttribute("data-history"):"";e.params.hashNavigation.replaceState&&o.history&&o.history.replaceState?(o.history.replaceState(null,null,`#${h}`||""),r("hashSet")):(a.location.hash=h||"",r("hashSet"))},u=()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;s=!0;const d=a.location.hash.replace("#","");if(d){const p=e.params.hashNavigation.getSlideIndex(e,d);e.slideTo(p||0,0,e.params.runCallbacksOnInit,!0)}e.params.hashNavigation.watchState&&o.addEventListener("hashchange",l)},f=()=>{e.params.hashNavigation.watchState&&o.removeEventListener("hashchange",l)};i("init",()=>{e.params.hashNavigation.enabled&&u()}),i("destroy",()=>{e.params.hashNavigation.enabled&&f()}),i("transitionEnd _freeModeNoMomentumRelease",()=>{s&&c()}),i("slideChange",()=>{s&&e.params.cssMode&&c()})}function mte(t){let{swiper:e,extendParams:n,on:r,emit:i,params:s}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,o,l=s&&s.autoplay?s.autoplay.delay:3e3,c=s&&s.autoplay?s.autoplay.delay:3e3,u,f=new Date().getTime(),d,h,p,m,g,_,v;function y(O){!e||e.destroyed||!e.wrapperEl||O.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",y),!(v||O.detail&&O.detail.bySwiperTouchMove)&&x())}const E=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?d=!0:d&&(c=u,d=!1);const O=e.autoplay.paused?u:f+c-new Date().getTime();e.autoplay.timeLeft=O,i("autoplayTimeLeft",O,O/l),o=requestAnimationFrame(()=>{E()})},b=()=>{let O;return e.virtual&&e.params.virtual.enabled?O=e.slides.find(P=>P.classList.contains("swiper-slide-active")):O=e.slides[e.activeIndex],O?parseInt(O.getAttribute("data-swiper-autoplay"),10):void 0},T=O=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(o),E();let q=typeof O>"u"?e.params.autoplay.delay:O;l=e.params.autoplay.delay,c=e.params.autoplay.delay;const P=b();!Number.isNaN(P)&&P>0&&typeof O>"u"&&(q=P,l=P,c=P),u=q;const ae=e.params.speed,ce=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(ae,!0,!0),i("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,ae,!0,!0),i("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(ae,!0,!0),i("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,ae,!0,!0),i("autoplay")),e.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{T()})))};return q>0?(clearTimeout(a),a=setTimeout(()=>{ce()},q)):requestAnimationFrame(()=>{ce()}),q},S=()=>{f=new Date().getTime(),e.autoplay.running=!0,T(),i("autoplayStart")},A=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(o),i("autoplayStop")},w=(O,q)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),O||(_=!0);const P=()=>{i("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",y):x()};if(e.autoplay.paused=!0,q){g&&(u=e.params.autoplay.delay),g=!1,P();return}u=(u||e.params.autoplay.delay)-(new Date().getTime()-f),!(e.isEnd&&u<0&&!e.params.loop)&&(u<0&&(u=0),P())},x=()=>{e.isEnd&&u<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(f=ne
186w Date().getTime(),_?(_=!1,T(u)):T(),e.autoplay.paused=!1,i("autoplayResume"))},L=()=>{if(e.destroyed||!e.autoplay.running)return;const O=Vn();O.visibilityState==="hidden"&&(_=!0,w(!0)),O.visibilityState==="visible"&&x()},R=O=>{O.pointerType==="mouse"&&(_=!0,v=!0,!(e.animating||e.autoplay.paused)&&w(!0))},k=O=>{O.pointerType==="mouse"&&(v=!1,e.autoplay.paused&&x())},F=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",R),e.el.addEventListener("pointerleave",k))},U=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",R),e.el.removeEventListener("pointerleave",k))},H=()=>{Vn().addEventListener("visibilitychange",L)},M=()=>{Vn().removeEventListener("visibilitychange",L)};r("init",()=>{e.params.autoplay.enabled&&(F(),H(),S())}),r("destroy",()=>{U(),M(),e.autoplay.running&&A()}),r("_freeModeStaticRelease",()=>{(p||_)&&x()}),r("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?A():w(!0,!0)}),r("beforeTransitionStart",(O,q,P)=>{e.destroyed||!e.autoplay.running||(P||!e.params.autoplay.disableOnInteraction?w(!0,!0):A())}),r("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){A();return}h=!0,p=!1,_=!1,m=setTimeout(()=>{_=!0,p=!0,w(!0)},200)}}),r("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!h)){if(clearTimeout(m),clearTimeout(a),e.params.autoplay.disableOnInteraction){p=!1,h=!1;return}p&&e.params.cssMode&&x(),p=!1,h=!1}}),r("slideChange",()=>{e.destroyed||!e.autoplay.running||(g=!0)}),Object.assign(e.autoplay,{start:S,stop:A,pause:w,resume:x})}function gte(t){let{swiper:e,extendParams:n,on:r}=t;n({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let i=!1,s=!1;e.thumbs={swiper:null};function a(){const c=e.thumbs.swiper;if(!c||c.destroyed)return;const u=c.clickedIndex,f=c.clickedSlide;if(f&&f.classList.contains(e.params.thumbs.slideThumbActiveClass)||typeof u>"u"||u===null)return;let d;c.params.loop?d=parseInt(c.clickedSlide.getAttribute("data-swiper-slide-index"),10):d=u,e.params.loop?e.slideToLoop(d):e.slideTo(d)}function o(){const{thumbs:c}=e.params;if(i)return!1;i=!0;const u=e.constructor;if(c.swiper instanceof u)e.thumbs.swiper=c.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(bf(c.swiper)){const f=Object.assign({},c.swiper);Object.assign(f,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new u(f),s=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",a),!0}function l(c){const u=e.thumbs.swiper;if(!u||u.destroyed)return;const f=u.params.slidesPerView==="auto"?u.slidesPerViewDynamic():u.params.slidesPerView;let d=1;const h=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(d=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(d=1),d=Math.floor(d),u.slides.forEach(g=>g.classList.remove(h)),u.params.loop||u.params.virtual&&u.params.virtual.enabled)for(let g=0;g<d;g+=1)ir(u.slidesEl,`[data-swiper-slide-index="${e.realIndex+g}"]`).forEach(_=>{_.classList.add(h)});else for(let g=0;g<d;g+=1)u.slides[e.realIndex+g]&&u.slides[e.realIndex+g].classList.add(h);const p=e.params.thumbs.autoScrollOffset,m=p&&!u.params.loop;if(e.realIndex!==u.realIndex||m){const g=u.activeIndex;let _,v;if(u.params.loop){const y=u.slides.find(E=>E.getAttribute("data-swiper-slide-index")===`${e.realIndex}`);_=u.slides.indexOf(y),v=e.activeIndex>e.previousIndex?"next":"prev"}else _=e.realIndex,v=_>e.previousIndex?"next":"prev";m&&(_+=v==="next"?p:-1*p),u.visibleSlidesIndexes&&u.visibleSlidesIndexes.indexOf(_)<0&&(u.params.centeredSlides?_>g?_=_-Math.floor(f/2)+1:_=_+Math.floor(f/2)-1:_>g&&u.params.slidesPerGroup,u.slideTo(_,c?0:void 0))}}r("beforeInit",()=>{const{thumbs:c}=e.params;if(!(!c||!c.swiper))if(typeof c.swiper=="string"||c.swiper instanceof HTMLElement){const u=Vn(),f=()=>{const h=typeof c.swiper=="string"?u.querySelector(c.swiper):c.swiper;if(h&&h.swiper)c.swiper=h.swiper,o(),l(!0);else if(h){const p=`${e.params.eventsPrefix}init`,m=g=>{c.swiper=g.detail[0],h.removeEventListener(p,m),o(),l(!0),c.swiper.update(
186),e.update()};h.addEventListener(p,m)}return h},d=()=>{if(e.destroyed)return;f()||requestAnimationFrame(d)};requestAnimationFrame(d)}else o(),l(!0)}),r("slideChange update resize observerUpdate",()=>{l()}),r("setTransition",(c,u)=>{const f=e.thumbs.swiper;!f||f.destroyed||f.setTransition(u)}),r("beforeDestroy",()=>{const c=e.thumbs.swiper;!c||c.destroyed||s&&c.destroy()}),Object.assign(e.thumbs,{init:o,update:l})}function yte(t){let{swiper:e,extendParams:n,emit:r,once:i}=t;n({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function s(){if(e.params.cssMode)return;const l=e.getTranslate();e.setTranslate(l),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function a(){if(e.params.cssMode)return;const{touchEventsData:l,touches:c}=e;l.velocities.length===0&&l.velocities.push({position:c[e.isHorizontal()?"startX":"startY"],time:l.touchStartTime}),l.velocities.push({position:c[e.isHorizontal()?"currentX":"currentY"],time:Li()})}function o(l){let{currentPos:c}=l;if(e.params.cssMode)return;const{params:u,wrapperEl:f,rtlTranslate:d,snapGrid:h,touchEventsData:p}=e,g=Li()-p.touchStartTime;if(c<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(c>-e.maxTranslate()){e.slides.length<h.length?e.slideTo(h.length-1):e.slideTo(e.slides.length-1);return}if(u.freeMode.momentum){if(p.velocities.length>1){const A=p.velocities.pop(),w=p.velocities.pop(),x=A.position-w.position,L=A.time-w.time;e.velocity=x/L,e.velocity/=2,Math.abs(e.velocity)<u.freeMode.minimumVelocity&&(e.velocity=0),(L>150||Li()-A.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=u.freeMode.momentumVelocityRatio,p.velocities.length=0;let _=1e3*u.freeMode.momentumRatio;const v=e.velocity*_;let y=e.translate+v;d&&(y=-y);let E=!1,b;const T=Math.abs(e.velocity)*20*u.freeMode.momentumBounceRatio;let S;if(y<e.maxTranslate())u.freeMode.momentumBounce?(y+e.maxTranslate()<-T&&(y=e.maxTranslate()-T),b=e.maxTranslate(),E=!0,p.allowMomentumBounce=!0):y=e.maxTranslate(),u.loop&&u.centeredSlides&&(S=!0);else if(y>e.minTranslate())u.freeMode.momentumBounce?(y-e.minTranslate()>T&&(y=e.minTranslate()+T),b=e.minTranslate(),E=!0,p.allowMomentumBounce=!0):y=e.minTranslate(),u.loop&&u.centeredSlides&&(S=!0);else if(u.freeMode.sticky){let A;for(let w=0;w<h.length;w+=1)if(h[w]>-y){A=w;break}Math.abs(h[A]-y)<Math.abs(h[A-1]-y)||e.swipeDirection==="next"?y=h[A]:y=h[A-1],y=-y}if(S&&i("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(d?_=Math.abs((-y-e.translate)/e.velocity):_=Math.abs((y-e.translate)/e.velocity),u.freeMode.sticky){const A=Math.abs((d?-y:y)-e.translate),w=e.slidesSizesGrid[e.activeIndex];A<w?_=u.speed:A<2*w?_=u.speed*1.5:_=u.speed*2.5}}else if(u.freeMode.sticky){e.slideToClosest();return}u.freeMode.momentumBounce&&E?(e.updateProgress(b),e.setTransition(_),e.setTranslate(y),e.transitionStart(!0,e.swipeDirection),e.animating=!0,Zf(f,()=>{!e||e.destroyed||!p.allowMomentumBounce||(r("momentumBounce"),e.setTransition(u.speed),setTimeout(()=>{e.setTranslate(b),Zf(f,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(r("_freeModeNoMomentumRelease"),e.updateProgress(y),e.setTransition(_),e.setTranslate(y),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,Zf(f,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(y),e.updateActiveIndex(),e.updateSlidesClasses()}else if(u.freeMode.sticky){e.slideToClosest();return}else u.freeMode&&r("_freeModeNoMomentumRelease");(!u.freeMode.momentum||g>=u.longSwipesMs)&&(r("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:s,onTouchMove:a,onTouchEnd:o}})}function vte(t){let{swiper:e,extendParams:n,on:r}=t;n({grid:{rows:1,fill:"column"}});let i,s,a,o;const l=()=>{let m=e.params.spaceBetween;return typeof m=="string"&&m.indexOf("%")>=0?m=parseFloat(m.replace("%",""))/100*e.size:typeof m=="string"&&(m=parseFloat(m)),m},c=m=>{const{slidesPerView:g}=e.params,{rows:_,fill:v}=e.params.grid,y=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:m.length;a=Math.floor(y/_),Math.floor(y/_)===y/_?i=y:i=Math.ceil(y/_)*_,g!=="auto"&&v==="row"&&(i=Math.max(i,g*_)),s=i/_},u=()=>
186{e.slides&&e.slides.forEach(m=>{m.swiperSlideGridSet&&(m.style.height="",m.style[e.getDirectionLabel("margin-top")]="")})},f=(m,g,_)=>{const{slidesPerGroup:v}=e.params,y=l(),{rows:E,fill:b}=e.params.grid,T=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:_.length;let S,A,w;if(b==="row"&&v>1){const x=Math.floor(m/(v*E)),L=m-E*v*x,R=x===0?v:Math.min(Math.ceil((T-x*E*v)/E),v);w=Math.floor(L/R),A=L-w*R+x*v,S=A+w*i/E,g.style.order=S}else b==="column"?(A=Math.floor(m/E),w=m-A*E,(A>a||A===a&&w===E-1)&&(w+=1,w>=E&&(w=0,A+=1))):(w=Math.floor(m/s),A=m-w*s);g.row=w,g.column=A,g.style.height=`calc((100% - ${(E-1)*y}px) / ${E})`,g.style[e.getDirectionLabel("margin-top")]=w!==0?y&&`${y}px`:"",g.swiperSlideGridSet=!0},d=(m,g)=>{const{centeredSlides:_,roundLengths:v}=e.params,y=l(),{rows:E}=e.params.grid;if(e.virtualSize=(m+y)*i,e.virtualSize=Math.ceil(e.virtualSize/E)-y,e.params.cssMode||(e.wrapperEl.style[e.getDirectionLabel("width")]=`${e.virtualSize+y}px`),_){const b=[];for(let T=0;T<g.length;T+=1){let S=g[T];v&&(S=Math.floor(S)),g[T]<e.virtualSize+g[0]&&b.push(S)}g.splice(0,g.length),g.push(...b)}},h=()=>{o=e.params.grid&&e.params.grid.rows>1},p=()=>{const{params:m,el:g}=e,_=m.grid&&m.grid.rows>1;o&&!_?(g.classList.remove(`${m.containerModifierClass}grid`,`${m.containerModifierClass}grid-column`),a=1,e.emitContainerClasses()):!o&&_&&(g.classList.add(`${m.containerModifierClass}grid`),m.grid.fill==="column"&&g.classList.add(`${m.containerModifierClass}grid-column`),e.emitContainerClasses()),o=_};r("init",h),r("update",p),e.grid={initSlides:c,unsetSlides:u,updateSlide:f,updateWrapperSize:d}}function _te(t){const e=this,{params:n,slidesEl:r}=e;n.loop&&e.loopDestroy();const i=s=>{if(typeof s=="string"){const a=document.createElement("div");a.innerHTML=s,r.append(a.children[0]),a.innerHTML=""}else r.append(s)};if(typeof t=="object"&&"length"in t)for(let s=0;s<t.length;s+=1)t[s]&&i(t[s]);else i(t);e.recalcSlides(),n.loop&&e.loopCreate(),(!n.observer||e.isElement)&&e.update()}function Ete(t){const e=this,{params:n,activeIndex:r,slidesEl:i}=e;n.loop&&e.loopDestroy();let s=r+1;const a=o=>{if(typeof o=="string"){const l=document.createElement("div");l.innerHTML=o,i.prepend(l.children[0]),l.innerHTML=""}else i.prepend(o)};if(typeof t=="object"&&"length"in t){for(let o=0;o<t.length;o+=1)t[o]&&a(t[o]);s=r+t.length}else a(t);e.recalcSlides(),n.loop&&e.loopCreate(),(!n.observer||e.isElement)&&e.update(),e.slideTo(s,0,!1)}function bte(t,e){const n=this,{params:r,activeIndex:i,slidesEl:s}=n;let a=i;r.loop&&(a-=n.loopedSlides,n.loopDestroy(),n.recalcSlides());const o=n.slides.length;if(t<=0){n.prependSlide(e);return}if(t>=o){n.appendSlide(e);return}let l=a>t?a+1:a;const c=[];for(let u=o-1;u>=t;u-=1){const f=n.slides[u];f.remove(),c.unshift(f)}if(typeof e=="object"&&"length"in e){for(let u=0;u<e.length;u+=1)e[u]&&s.append(e[u]);l=a>t?a+e.length:a}else s.append(e);for(let u=0;u<c.length;u+=1)s.append(c[u]);n.recalcSlides(),r.loop&&n.loopCreate(),(!r.observer||n.isElement)&&n.update(),r.loop?n.slideTo(l+n.loopedSlides,0,!1):n.slideTo(l,0,!1)}function Tte(t){const e=this,{params:n,activeIndex:r}=e;let i=r;n.loop&&(i-=e.loopedSlides,e.loopDestroy());let s=i,a;if(typeof t=="object"&&"length"in t){for(let o=0;o<t.length;o+=1)a=t[o],e.slides[a]&&e.slides[a].remove(),a<s&&(s-=1);s=Math.max(s,0)}else a=t,e.slides[a]&&e.slides[a].remove(),a<s&&(s-=1),s=Math.max(s,0);e.recalcSlides(),n.loop&&e.loopCreate(),(!n.observer||e.isElement)&&e.update(),n.loop?e.slideTo(s+e.loopedSlides,0,!1):e.slideTo(s,0,!1)}function Ste(){const t=this,e=[];for(let n=0;n<t.slides.length;n+=1)e.push(n);t.removeSlide(e)}function wte(t){let{swiper:e}=t;Object.assign(e,{appendSlide:_te.bind(e),prependSlide:Ete.bind(e),addSlide:bte.bind(e),removeSlide:Tte.bind(e),removeAllSlides:Ste.bind(e)})}function Du(t){const{effect:e,swiper:n,on:r,setTranslate:i,setTransition:s,overwriteParams:a,perspective:o,recreateShadows:l,getEffectParams:c}=t;r("beforeInit",()=>{if(n.params.effect!==e)return;n.classNames.push(`${n.params.containerModifierClass}${e}`),o&&o()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const f=a?a():{};Object.assign(n.params,f),Object.assign(n.originalParams,f)}),r("setTranslate",()=>{n.params.effect===e&&i()}),r("setTransition",(f,d)=>{n.params.effect===e&&s(d)}),r("transitionEnd",()=>{if(n.params.effect===e&&l){if(!c||!c().slideShadows)return;
186n.slides.forEach(f=>{f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(d=>d.remove())}),l()}});let u;r("virtualUpdate",()=>{n.params.effect===e&&(n.slides.length||(u=!0),requestAnimationFrame(()=>{u&&n.slides&&n.slides.length&&(i(),u=!1)}))})}function Kd(t,e){const n=Kl(e);return n!==e&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function Wg(t){let{swiper:e,duration:n,transformElements:r,allSlides:i}=t;const{activeIndex:s}=e,a=o=>o.parentElement?o.parentElement:e.slides.find(c=>c.shadowRoot&&c.shadowRoot===o.parentNode);if(e.params.virtualTranslate&&n!==0){let o=!1,l;i?l=r:l=r.filter(c=>{const u=c.classList.contains("swiper-slide-transform")?a(c):c;return e.getSlideIndex(u)===s}),l.forEach(c=>{Zf(c,()=>{if(o||!e||e.destroyed)return;o=!0,e.animating=!1;const u=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(u)})})}}function xte(t){let{swiper:e,extendParams:n,on:r}=t;n({fadeEffect:{crossFade:!1}}),Du({effect:"fade",swiper:e,on:r,setTranslate:()=>{const{slides:a}=e,o=e.params.fadeEffect;for(let l=0;l<a.length;l+=1){const c=e.slides[l];let f=-c.swiperSlideOffset;e.params.virtualTranslate||(f-=e.translate);let d=0;e.isHorizontal()||(d=f,f=0);const h=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(c.progress),0):1+Math.min(Math.max(c.progress,-1),0),p=Kd(o,c);p.style.opacity=h,p.style.transform=`translate3d(${f}px, ${d}px, 0px)`}},setTransition:a=>{const o=e.slides.map(l=>Kl(l));o.forEach(l=>{l.style.transitionDuration=`${a}ms`}),Wg({swiper:e,duration:a,transformElements:o,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function Ate(t){let{swiper:e,extendParams:n,on:r}=t;n({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(l,c,u)=>{let f=u?l.querySelector(".swiper-slide-shadow-left"):l.querySelector(".swiper-slide-shadow-top"),d=u?l.querySelector(".swiper-slide-shadow-right"):l.querySelector(".swiper-slide-shadow-bottom");f||(f=pi("div",`swiper-slide-shadow-cube swiper-slide-shadow-${u?"left":"top"}`.split(" ")),l.append(f)),d||(d=pi("div",`swiper-slide-shadow-cube swiper-slide-shadow-${u?"right":"bottom"}`.split(" ")),l.append(d)),f&&(f.style.opacity=Math.max(-c,0)),d&&(d.style.opacity=Math.max(c,0))};Du({effect:"cube",swiper:e,on:r,setTranslate:()=>{const{el:l,wrapperEl:c,slides:u,width:f,height:d,rtlTranslate:h,size:p,browser:m}=e,g=Kg(e),_=e.params.cubeEffect,v=e.isHorizontal(),y=e.virtual&&e.params.virtual.enabled;let E=0,b;_.shadow&&(v?(b=e.wrapperEl.querySelector(".swiper-cube-shadow"),b||(b=pi("div","swiper-cube-shadow"),e.wrapperEl.append(b)),b.style.height=`${f}px`):(b=l.querySelector(".swiper-cube-shadow"),b||(b=pi("div","swiper-cube-shadow"),l.append(b))));for(let S=0;S<u.length;S+=1){const A=u[S];let w=S;y&&(w=parseInt(A.getAttribute("data-swiper-slide-index"),10));let x=w*90,L=Math.floor(x/360);h&&(x=-x,L=Math.floor(-x/360));const R=Math.max(Math.min(A.progress,1),-1);let k=0,F=0,U=0;w%4===0?(k=-L*4*p,U=0):(w-1)%4===0?(k=0,U=-L*4*p):(w-2)%4===0?(k=p+L*4*p,U=p):(w-3)%4===0&&(k=-p,U=3*p+p*4*L),h&&(k=-k),v||(F=k,k=0);const H=`rotateX(${g(v?0:-x)}deg) rotateY(${g(v?x:0)}deg) translate3d(${k}px, ${F}px, ${U}px)`;R<=1&&R>-1&&(E=w*90+R*90,h&&(E=-w*90-R*90)),A.style.transform=H,_.slideShadows&&i(A,R,v)}if(c.style.transformOrigin=`50% 50% -${p/2}px`,c.style["-webkit-transform-origin"]=`50% 50% -${p/2}px`,_.shadow)if(v)b.style.transform=`translate3d(0px, ${f/2+_.shadowOffset}px, ${-f/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${_.shadowScale})`;else{const S=Math.abs(E)-Math.floor(Math.abs(E)/90)*90,A=1.5-(Math.sin(S*2*Math.PI/360)/2+Math.cos(S*2*Math.PI/360)/2),w=_.shadowScale,x=_.shadowScale/A,L=_.shadowOffset;b.style.transform=`scale3d(${w}, 1, ${x}) translate3d(0px, ${d/2+L}px, ${-d/2/x}px) rotateX(-89.99deg)`}const T=(m.isSafari||m.isWebView)&&m.needPerspectiveFix?-p/2:0;c.style.transform=`translate3d(0px,0,${T}px) rotateX(${g(e.isHorizontal()?0:E)}deg) rotateY(${g(e.isHorizontal()?-E:0)}deg)`,c.style.setProperty("--swiper-cube-translate-z",`${T}px`)},setTransition:l=>{const{el:c,slides:u}=e;if(u.forEach(f=>{f.style.transitionDuration=`${l}ms`,f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(d=>{d.style.transitionDuration=`${l}ms`})}),e.params.cubeEffect.shadow&&!e.isHorizontal()){const f=c.querySelector(".swiper-cube-shadow");f&&(f.style.transitionDuration=`${l}ms`)}},recreateShadows:()=>{const l=e.isHorizontal();
186e.slides.forEach(c=>{const u=Math.max(Math.min(c.progress,1),-1);i(c,u,l)})},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function pu(t,e,n){const r=`swiper-slide-shadow${n?`-${n}`:""}${t?` swiper-slide-shadow-${t}`:""}`,i=Kl(e);let s=i.querySelector(`.${r.split(" ").join(".")}`);return s||(s=pi("div",r.split(" ")),i.append(s)),s}function Rte(t){let{swiper:e,extendParams:n,on:r}=t;n({flipEffect:{slideShadows:!0,limitRotation:!0}});const i=(l,c)=>{let u=e.isHorizontal()?l.querySelector(".swiper-slide-shadow-left"):l.querySelector(".swiper-slide-shadow-top"),f=e.isHorizontal()?l.querySelector(".swiper-slide-shadow-right"):l.querySelector(".swiper-slide-shadow-bottom");u||(u=pu("flip",l,e.isHorizontal()?"left":"top")),f||(f=pu("flip",l,e.isHorizontal()?"right":"bottom")),u&&(u.style.opacity=Math.max(-c,0)),f&&(f.style.opacity=Math.max(c,0))};Du({effect:"flip",swiper:e,on:r,setTranslate:()=>{const{slides:l,rtlTranslate:c}=e,u=e.params.flipEffect,f=Kg(e);for(let d=0;d<l.length;d+=1){const h=l[d];let p=h.progress;e.params.flipEffect.limitRotation&&(p=Math.max(Math.min(h.progress,1),-1));const m=h.swiperSlideOffset;let _=-180*p,v=0,y=e.params.cssMode?-m-e.translate:-m,E=0;e.isHorizontal()?c&&(_=-_):(E=y,y=0,v=-_,_=0),h.style.zIndex=-Math.abs(Math.round(p))+l.length,u.slideShadows&&i(h,p);const b=`translate3d(${y}px, ${E}px, 0px) rotateX(${f(v)}deg) rotateY(${f(_)}deg)`,T=Kd(u,h);T.style.transform=b}},setTransition:l=>{const c=e.slides.map(u=>Kl(u));c.forEach(u=>{u.style.transitionDuration=`${l}ms`,u.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>{f.style.transitionDuration=`${l}ms`})}),Wg({swiper:e,duration:l,transformElements:c})},recreateShadows:()=>{e.params.flipEffect,e.slides.forEach(l=>{let c=l.progress;e.params.flipEffect.limitRotation&&(c=Math.max(Math.min(l.progress,1),-1)),i(l,c)})},getEffectParams:()=>e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function Lte(t){let{swiper:e,extendParams:n,on:r}=t;n({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),Du({effect:"coverflow",swiper:e,on:r,setTranslate:()=>{const{width:a,height:o,slides:l,slidesSizesGrid:c}=e,u=e.params.coverflowEffect,f=e.isHorizontal(),d=e.translate,h=f?-d+a/2:-d+o/2,p=f?u.rotate:-u.rotate,m=u.depth,g=Kg(e);for(let _=0,v=l.length;_<v;_+=1){const y=l[_],E=c[_],b=y.swiperSlideOffset,T=(h-b-E/2)/E,S=typeof u.modifier=="function"?u.modifier(T):T*u.modifier;let A=f?p*S:0,w=f?0:p*S,x=-m*Math.abs(S),L=u.stretch;typeof L=="string"&&L.indexOf("%")!==-1&&(L=parseFloat(u.stretch)/100*E);let R=f?0:L*S,k=f?L*S:0,F=1-(1-u.scale)*Math.abs(S);Math.abs(k)<.001&&(k=0),Math.abs(R)<.001&&(R=0),Math.abs(x)<.001&&(x=0),Math.abs(A)<.001&&(A=0),Math.abs(w)<.001&&(w=0),Math.abs(F)<.001&&(F=0);const U=`translate3d(${k}px,${R}px,${x}px) rotateX(${g(w)}deg) rotateY(${g(A)}deg) scale(${F})`,H=Kd(u,y);if(H.style.transform=U,y.style.zIndex=-Math.abs(Math.round(S))+1,u.slideShadows){let M=f?y.querySelector(".swiper-slide-shadow-left"):y.querySelector(".swiper-slide-shadow-top"),O=f?y.querySelector(".swiper-slide-shadow-right"):y.querySelector(".swiper-slide-shadow-bottom");M||(M=pu("coverflow",y,f?"left":"top")),O||(O=pu("coverflow",y,f?"right":"bottom")),M&&(M.style.opacity=S>0?S:0),O&&(O.style.opacity=-S>0?-S:0)}}},setTransition:a=>{e.slides.map(l=>Kl(l)).forEach(l=>{l.style.transitionDuration=`${a}ms`,l.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(c=>{c.style.transitionDuration=`${a}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function Cte(t){let{swiper:e,extendParams:n,on:r}=t;n({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const i=o=>
186typeof o=="string"?o:`${o}px`;Du({effect:"creative",swiper:e,on:r,setTranslate:()=>{const{slides:o,wrapperEl:l,slidesSizesGrid:c}=e,u=e.params.creativeEffect,{progressMultiplier:f}=u,d=e.params.centeredSlides,h=Kg(e);if(d){const p=c[0]/2-e.params.slidesOffsetBefore||0;l.style.transform=`translateX(calc(50% - ${p}px))`}for(let p=0;p<o.length;p+=1){const m=o[p],g=m.progress,_=Math.min(Math.max(m.progress,-u.limitProgress),u.limitProgress);let v=_;d||(v=Math.min(Math.max(m.originalProgress,-u.limitProgress),u.limitProgress));const y=m.swiperSlideOffset,E=[e.params.cssMode?-y-e.translate:-y,0,0],b=[0,0,0];let T=!1;e.isHorizontal()||(E[1]=E[0],E[0]=0);let S={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};_<0?(S=u.next,T=!0):_>0&&(S=u.prev,T=!0),E.forEach((F,U)=>{E[U]=`calc(${F}px + (${i(S.translate[U])} * ${Math.abs(_*f)}))`}),b.forEach((F,U)=>{let H=S.rotate[U]*Math.abs(_*f);b[U]=H}),m.style.zIndex=-Math.abs(Math.round(g))+o.length;const A=E.join(", "),w=`rotateX(${h(b[0])}deg) rotateY(${h(b[1])}deg) rotateZ(${h(b[2])}deg)`,x=v<0?`scale(${1+(1-S.scale)*v*f})`:`scale(${1-(1-S.scale)*v*f})`,L=v<0?1+(1-S.opacity)*v*f:1-(1-S.opacity)*v*f,R=`translate3d(${A}) ${w} ${x}`;if(T&&S.shadow||!T){let F=m.querySelector(".swiper-slide-shadow");if(!F&&S.shadow&&(F=pu("creative",m)),F){const U=u.shadowPerProgress?_*(1/u.limitProgress):_;F.style.opacity=Math.min(Math.max(Math.abs(U),0),1)}}const k=Kd(u,m);k.style.transform=R,k.style.opacity=L,S.origin&&(k.style.transformOrigin=S.origin)}},setTransition:o=>{const l=e.slides.map(c=>Kl(c));l.forEach(c=>{c.style.transitionDuration=`${o}ms`,c.querySelectorAll(".swiper-slide-shadow").forEach(u=>{u.style.transitionDuration=`${o}ms`})}),Wg({swiper:e,duration:o,transformElements:l,allSlides:!0})},perspective:()=>e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}function Ite(t){let{swiper:e,extendParams:n,on:r}=t;n({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),Du({effect:"cards",swiper:e,on:r,setTranslate:()=>{const{slides:a,activeIndex:o,rtlTranslate:l}=e,c=e.params.cardsEffect,{startTranslate:u,isTouched:f}=e.touchEventsData,d=l?-e.translate:e.translate;for(let h=0;h<a.length;h+=1){const p=a[h],m=p.progress,g=Math.min(Math.max(m,-4),4);let _=p.swiperSlideOffset;e.params.centeredSlides&&!e.params.cssMode&&(e.wrapperEl.style.transform=`translateX(${e.minTranslate()}px)`),e.params.centeredSlides&&e.params.cssMode&&(_-=a[0].swiperSlideOffset);let v=e.params.cssMode?-_-e.translate:-_,y=0;const E=-100*Math.abs(g);let b=1,T=-c.perSlideRotate*g,S=c.perSlideOffset-Math.abs(g)*.75;const A=e.virtual&&e.params.virtual.enabled?e.virtual.from+h:h,w=(A===o||A===o-1)&&g>0&&g<1&&(f||e.params.cssMode)&&d<u,x=(A===o||A===o+1)&&g<0&&g>-1&&(f||e.params.cssMode)&&d>u;if(w||x){const F=(1-Math.abs((Math.abs(g)-.5)/.5))**.5;T+=-28*g*F,b+=-.5*F,S+=96*F,y=`${-25*F*Math.abs(g)}%`}if(g<0?v=`calc(${v}px ${l?"-":"+"} (${S*Math.abs(g)}%))`:g>0?v=`calc(${v}px ${l?"-":"+"} (-${S*Math.abs(g)}%))`:v=`${v}px`,!e.isHorizontal()){const F=y;y=v,v=F}const L=g<0?`${1+(1-b)*g}`:`${1-(1-b)*g}`,R=` 187 translate3d(${v}, ${y}, ${E}px) 188 rotateZ(${c.rotate?l?-T:T:0}deg) 189 scale(${L}) 190 `;if(c.slideShadows){let F=p.querySelector(".swiper-slide-shadow");F||(F=pu("cards",p)),F&&(F.style.opacity=Math.min(Math.max((Math.abs(g)-.5)/.5,0),1))}p.style.zIndex=-Math.abs(Math.round(m))+a.length;const k=Kd(c,p);k.style.transform=R}},setTransition:a=>{const o=e.slides.map(l=>Kl(l));o.forEach(l=>{l.style.transitionDuration=`${a}ms`,l.querySelectorAll(".swiper-slide-shadow").forEach(c=>{c.style.transitionDuration=`${a}ms`})}),Wg({swiper:e,duration:a,transformElements:o})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}const kte=[rte,ite,ste,ate,ote,lte,cte,ute,fte,dte,hte,pte,mte,gte,yte,vte,wte,xte,Ate,Rte,Lte,Cte,Ite];ai.use(kte);const zg=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesB
190ounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function mu(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function Vb(t,e){const n=["__proto__","constructor","prototype"];Object.keys(e).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof t[r]>"u"?t[r]=e[r]:mu(e[r])&&mu(t[r])&&Object.keys(e[r]).length>0?e[r].__swiper__?t[r]=e[r]:Vb(t[r],e[r]):t[r]=e[r]})}function Pte(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Dte(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function Ote(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Hp(t){return t===void 0&&(t=""),t.replace(/-[a-z]/g,e=>e.toUpperCase().replace("-",""))}function Mte(t){let{swiper:e,slides:n,passedParams:r,changedParams:i,nextEl:s,prevEl:a,scrollbarEl:o,paginationEl:l}=t;const c=i.filter(w=>w!=="children"&&w!=="direction"&&w!=="wrapperClass"),{params:u,pagination:f,navigation:d,scrollbar:h,virtual:p,thumbs:m}=e;let g,_,v,y,E,b,T,S;i.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&!r.thumbs.swiper.destroyed&&u.thumbs&&(!u.thumbs.swiper||u.thumbs.swiper.destroyed)&&(g=!0),i.includes("controller")&&r.controller&&r.controller.control&&u.controller&&!u.controller.control&&(_=!0),i.includes("pagination")&&r.pagination&&(r.pagination.el||l)&&(u.pagination||u.pagination===!1)&&f&&!f.el&&(v=!0),i.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||o)&&(u.scrollbar||u.scrollbar===!1)&&h&&!h.el&&(y=!0),i.includes("navigation")&&r.navigation&&(r.navigation.prevEl||a)&&(r.navigation.nextEl||s)&&(u.navigation||u.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(E=!0);const A=w=>{e[w]&&(e[w].destroy(),w==="navigation"?(e.isElement&&(e[w].prevEl.remove(),e[w].nextEl.remove()),u[w].prevEl=void 0,u[w].nextEl=void 0,e[w].prevEl=void 0,e[w].nextEl=void 0):(e.isElement&&e[w].el.remove(),u[w].el=void 0,e[w].el=void 0))};i.includes("loop")&&e.isElement&&(u.loop&&!r.loop?b=!0:!u.loop&&r.loop?T=!0:S=!0),c.forEach(w=>{if(mu(u[w])&&mu(r[w]))Object.assign(u[w],r[w]),(w==="navigation"||w==="pagination"||w==="scrollbar")&&"enabled"in r[w]&&!r[w].enabled&&A(w);else{const x=r[w];(x===!0||x===!1)&&(w==="navigation"||w==="pagination"||w==="scrollbar")?x===!1&&A(w):u[w]=r[w]}}),c.includes("controller")&&!_&&e.controller&&e.controller.control&&u.controller&&u.controller.control&&(e.controller.control=u.controller.control),i.includes("children")&&n&&p&&u.virtual.enabled?(p.slides=n,p.update(!0)):i.includes("virtual")&&p&&u.virtual.enabled&&(n&&(p.slides=n),p.update(!0)),i.includes("children")&&n&&u.loop&&(S=!0),g&&m.init()&&m.update(!0),_&&(e.controller.control=u.controller.control),v&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),e.el.appendChild(l)),l&&(u.pagination.el=l),f.init(),f.render(),f.update(
190)),y&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),o.part.add("scrollbar"),e.el.appendChild(o)),o&&(u.scrollbar.el=o),h.init(),h.updateSize(),h.setTranslate()),E&&(e.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),s.innerHTML=e.hostEl.constructor.nextButtonSvg,s.part.add("button-next"),e.el.appendChild(s)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=e.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),e.el.appendChild(a))),s&&(u.navigation.nextEl=s),a&&(u.navigation.prevEl=a),d.init(),d.update()),i.includes("allowSlideNext")&&(e.allowSlideNext=r.allowSlideNext),i.includes("allowSlidePrev")&&(e.allowSlidePrev=r.allowSlidePrev),i.includes("direction")&&e.changeDirection(r.direction,!1),(b||S)&&e.loopDestroy(),(T||S)&&e.loopCreate(),e.update()}const mC=t=>{if(parseFloat(t)===Number(t))return Number(t);if(t==="true"||t==="")return!0;if(t==="false")return!1;if(t==="null")return null;if(t!=="undefined"){if(typeof t=="string"&&t.includes("{")&&t.includes("}")&&t.includes('"')){let e;try{e=JSON.parse(t)}catch{e=t}return e}return t}},gC=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function yC(t,e,n){const r={},i={};Vb(r,jb);const s=[...zg,"on"],a=s.map(l=>l.replace(/_/,""));s.forEach(l=>{l=l.replace("_",""),typeof t[l]<"u"&&(i[l]=t[l])});const o=[...t.attributes];return typeof e=="string"&&typeof n<"u"&&o.push({name:e,value:mu(n)?{...n}:n}),o.forEach(l=>{const c=gC.find(u=>l.name.startsWith(`${u}-`));if(c){const u=Hp(c),f=Hp(l.name.split(`${c}-`)[1]);typeof i[u]>"u"&&(i[u]={}),i[u]===!0&&(i[u]={enabled:!0}),i[u][f]=mC(l.value)}else{const u=Hp(l.name);if(!a.includes(u))return;const f=mC(l.value);i[u]&&gC.includes(l.name)&&!mu(f)?(i[u].constructor!==Object&&(i[u]={}),i[u].enabled=!!f):i[u]=f}}),Vb(r,i),r.navigation?r.navigation={prevEl:".swiper-button-prev",nextEl:".swiper-button-next",...r.navigation!==!0?r.navigation:{}}:r.navigation===!1&&delete r.navigation,r.scrollbar?r.scrollbar={el:".swiper-scrollbar",...r.scrollbar!==!0?r.scrollbar:{}}:r.scrollbar===!1&&delete r.scrollbar,r.pagination?r.pagination={el:".swiper-pagination",...r.pagination!==!0?r.pagination:{}}:r.pagination===!1&&delete r.pagination,{params:r,passedParams:i}}const Nte=":host{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{width:100%;height:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(swiper-slide){scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-virtual ::slotted(swiper-slide){-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;
190left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}
190.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;
190left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}::slotted(.swiper-slide-zoomed){cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode ::slotted(swiper-slide){transition-timing-function:ease-out}.swiper-fade ::slotted(swiper-slide){pointer-events:none;transition-property:opacity}.swiper-fade ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-fade ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-fade ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper.swiper-cube{overflow:visible}.swiper-cube ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-cube.swiper-rtl ::slotted(swiper-slide){transform-origin:100% 0}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-next),.swiper-cube ::slotted(.swiper-slide-prev){pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube ::slotted(.swiper-slide-next)+::slotted(swiper-slide){pointer-events:auto;visibility:visible}.swiper.swiper-flip{overflow:visible}.swiper-flip ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-flip ::slotted(.swiper-slide-active),.swiper-flip ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-creative ::slotted(swiper-slide){-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}",Fte="::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}::slotted(.swiper-slide-shadow){background:rgba(0,0,0,.15)}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear;width:42px;height:42px;position:absolute;
190left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-zoom-container){width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}::slotted(.swiper-zoom-container)>canvas,::slotted(.swiper-zoom-container)>img,::slotted(.swiper-zoom-container)>svg{max-width:100%;max-height:100%;object-fit:contain}";class $te{}const VF=typeof window>"u"||typeof HTMLElement>"u"?$te:HTMLElement,vC=`<svg width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg> 191 `,qF=(t,e)=>{if(typeof CSSStyleSheet<"u"&&t.adoptedStyleSheets){const n=new CSSStyleSheet;n.replaceSync(e),t.adoptedStyleSheets=[n]}else{const n=document.createElement("style");n.rel="stylesheet",n.textContent=e,t.appendChild(n)}};class KF extends VF{constructor(){super(),this.attachShadow({mode:"open"})}static get nextButtonSvg(){return vC}static get prevButtonSvg(){return vC.replace("/></svg>",' transform-origin="center" transform="rotate(180)"/></svg>')}cssStyles(){return[Nte,...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join(` 192`)}cssLinks(){return this.injectStylesUrls||[]}calcSlideSlots(){const e=this.slideSlots||0,n=[...this.querySelectorAll("[slot^=slide-]")].map(r=>parseInt(r.getAttribute("slot").split("slide-")[1],10));if(this.slideSlots=n.length?Math.max(...n)+1:0,!!this.rendered){if(this.slideSlots>e)for(let r=e;r<this.slideSlots;r+=1){const i=document.createElement("swiper-slide");i.setAttribute("part",`slide slide-${r+1}`);const s=document.createElement("slot");s.setAttribute("name",`slide-${r+1}`),i.appendChild(s),this.shadowRoot.querySelector(".swiper-wrapper").appendChild(i)}else if(this.slideSlots<e){const r=this.swiper.slides;for(let i=r.length-1;i>=0;i-=1)i>this.slideSlots&&r[i].remove()}}}render(){if(this.rendered)return;this.calcSlideSlots();let e=this.cssStyles();this.slideSlots>0&&(e=e.replace(/::slotted\(([a-z-0-9.]*)\)/g,"$1")),e.length&&qF(this.shadowRoot,e),this.cssLinks().forEach(r=>{if(this.shadowRoot.querySelector(`link[href="${r}"]`))return;const s=document.createElement("link");s.rel="stylesheet",s.href=r,this.shadowRoot.appendChild(s)});const n=document.createElement("div");n.classList.add("swiper"),n.part="container",n.innerHTML=` 193 <slot name="container-start"></slot> 194 <div class="swiper-wrapper" part="wrapper"> 195 <slot></slot> 196 ${Array.from({length:this.slideSlots}).map((r,i)=>` 197 <swiper-slide part="slide slide-${i}"> 198 <slot name="slide-${i}"></slot> 199 </swiper-slide> 200 `).join("")} 201 </div> 202 <slot name="container-end"></slot> 203 ${Pte(this.passedParams)?` 204 <div part="button-prev" class="swiper-button-prev">${this.constructor.prevButtonSvg}</div> 205 <div part="button-next" class="swiper-button-next">${this.constructor.nextButtonSvg}</div> 206 `:""} 207 ${Dte(this.passedParams)?` 208 <div part="pagination" class="swiper-pagination"></div> 209 `:""} 210 ${Ote(this.passedParams)?` 211 <div part="scrollbar" class="swiper-scrollbar"></div> 212 `:""} 213 `,this.shadowRoot.appendChild(n),this.rendered=!0}initialize(){var e=this;if(this.initialized)return;this.initialized=!0;const{params:n,passedParams:r}=yC(this);this.swiperParams=n,this.passedParams=r,delete this.swiperParams.init,this.render(),this.swiper=new ai(this.shadowRoot.querySelector(".swiper"),{...n.virtual?{}:{observer:!0},...n,touchEventsTarget:"container",onAny:function(i){i==="observerUpdate"&&e.calcSlideSlots();const s=n.eventsPrefix?`${n.eventsPrefix}${i.toLowerCase()}`:i.toLowerCase();for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;l<a;l++)o[l-1]=arguments[l];const c=new CustomEvent(s,{detail:o,bubbles:i!=="hashChange",cancelable:!0});e.dispatchEvent(c)}})}connectedCallback(){this.initialized&&this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||this.init===!1||this.getAttribute("init")==="false"||this.initialize()}disconnectedCallback(){this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||(this.swiper&&this.swiper.destroy&&this.swiper.destroy(),this.initialized=!1)}updateSwiperOnPropChange(e,n){const{params:r,passedParams:i}=yC(this,e,n);this.passedParams=i,this.swiperParams=r,!(this.swiper&&this.swiper.params[e]===n)&&Mte({swiper:this.swiper,passedParams:this.passedParams,changedParams:[Hp(e)],...e==="navigation"&&i[e]?{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}:{},...e==="pagination"&&i[e]?{paginationEl:".swiper-pagination"}:{},...e==="scrollbar"&&i[e]?{scrollbarEl:".swiper-scrollbar"}:{}})}attributeChangedCallback(e,n,r){this.initialized&&(n==="true"&&r===null&&(r=!1),this.updateSwiperOnPropChange(e,r))}static get observedAttributes(){return zg.filter(n=>n.includes("_")).map(n=>n.replace(/[A-Z]/g,r=>`-${r}`).replace("_","").toLowerCase())}}zg.forEach(t=>{t!=="init"&&(t=t.replace("_",""),Object.defineProperty(KF.prototype,t,{configurable:!0,get(){return(this.passedParams||{})[t]},set(e){this.passedParams||(this.passedParams={}),this.passedParams[t]=e,this.initialized&&this.updateSwiperOnPropChange(t,e)}}))});class Bte extends VF{constructor(){super(),this.attachShadow({mode:"open"})}render(){const e=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if(qF(this.shadowRoot,Fte),this.shadowRoot.appendChild(document.createElement("slot")),e){const n=document.createElement("div");n.classList.add("swiper-lazy-preloader"),n.part.add("preloader"),this.shadowRoot.appendChild(n)}}initialize(){this.render()}connectedCallback(){this.initialize()}}const WF=()=>{typeof window>"u"||(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",KF),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",Bte))};typeof window<"u"&&(window.SwiperElementRegisterParams=t=>{zg.push(...t)});function zF(t,e){return function(){return t.apply(e,arguments)}}const{toString:Ute}=Object.prototype,{getPrototypeOf:tw}=Object,Yg=(t=>e=>{const n=Ute.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rs=t=>(t=t.toLowerCase(),e=>Yg(e)===t),Xg=t=>e=>typeof e===t,{isArray:Ou}=Array,Id=Xg("undefined");function Hte(t){return t!==null&&!Id(t)&&t.constructor!==null&&!Id(t.constructor)&&gi(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const YF=rs("ArrayBuffer");function Gte(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&YF(t.buffer),e}const jte=Xg("string"),gi=Xg("function"),XF=Xg("number"),Jg=t=>t!==null&&typeof t=="object",Vte=t=>t===!0||t===!1,Gp=t=>{if(Yg(t)!=="object")return!1;const e=tw(t);
213return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},qte=rs("Date"),Kte=rs("File"),Wte=rs("Blob"),zte=rs("FileList"),Yte=t=>Jg(t)&&gi(t.pipe),Xte=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||gi(t.append)&&((e=Yg(t))==="formdata"||e==="object"&&gi(t.toString)&&t.toString()==="[object FormData]"))},Jte=rs("URLSearchParams"),[Qte,Zte,ene,tne]=["ReadableStream","Request","Response","Headers"].map(rs),nne=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wd(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),Ou(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let o;for(r=0;r<a;r++)o=s[r],e.call(null,t[o],o,t)}}function JF(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const rl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,QF=t=>!Id(t)&&t!==rl;function qb(){const{caseless:t}=QF(this)&&this||{},e={},n=(r,i)=>{const s=t&&JF(e,i)||i;Gp(e[s])&&Gp(r)?e[s]=qb(e[s],r):Gp(r)?e[s]=qb({},r):Ou(r)?e[s]=r.slice():e[s]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Wd(arguments[r],n);return e}const rne=(t,e,n,{allOwnKeys:r}={})=>(Wd(e,(i,s)=>{n&&gi(i)?t[s]=zF(i,n):t[s]=i},{allOwnKeys:r}),t),ine=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),sne=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},ane=(t,e,n,r)=>{let i,s,a;const o={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)a=i[s],(!r||r(a,t,e))&&!o[a]&&(e[a]=t[a],o[a]=!0);t=n!==!1&&tw(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},one=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},lne=t=>{if(!t)return null;if(Ou(t))return t;let e=t.length;if(!XF(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},cne=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&tw(Uint8Array)),une=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let i;for(;
213(i=r.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},fne=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},dne=rs("HTMLFormElement"),hne=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),_C=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),pne=rs("RegExp"),ZF=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Wd(n,(i,s)=>{let a;(a=e(i,s,t))!==!1&&(r[s]=a||i)}),Object.defineProperties(t,r)},mne=t=>{ZF(t,(e,n)=>{if(gi(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(gi(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},gne=(t,e)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return Ou(t)?r(t):r(String(t).split(e)),n},yne=()=>{},vne=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,h0="abcdefghijklmnopqrstuvwxyz",EC="0123456789",e$={DIGIT:EC,ALPHA:h0,ALPHA_DIGIT:h0+h0.toUpperCase()+EC},_ne=(t=16,e=e$.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Ene(t){return!!(t&&gi(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const bne=t=>{const e=new Array(10),n=(r,i)=>{if(Jg(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const s=Ou(r)?[]:{};return Wd(r,(a,o)=>{const l=n(a,i+1);!Id(l)&&(s[o]=l)}),e[i]=void 0,s}}return r};return n(t,0)},Tne=rs("AsyncFunction"),Sne=t=>t&&(Jg(t)||gi(t))&&gi(t.then)&&gi(t.catch),t$=((t,e)=>t?setImmediate:e?((n,r)=>(rl.addEventListener("message",({source:i,data:s})=>{i===rl&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),rl.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",gi(rl.postMessage)),wne=typeof queueMicrotask<"u"?queueMicrotask.bind(rl):typeof process<"u"&&process.nextTick||t$,re={isArray:Ou,isArrayBuffer:YF,isBuffer:Hte,isFormData:Xte,isArrayBufferView:Gte,isString:jte,isNumber:XF,isBoolean:Vte,isObject:Jg,isPlainObject:Gp,isReadableStream:Qte,isRequest:Zte,isResponse:ene,isHeaders:tne,isUndefined:Id,isDate:qte,isFile:Kte,isBlob:Wte,isRegExp:pne,isFunction:gi,isStream:Yte,isURLSearchParams:Jte,isTypedArray:cne,isFileList:zte,forEach:Wd,merge:qb,extend:rne,trim:nne,stripBOM:ine,inherits:sne,toFlatObject:ane,kindOf:Yg,kindOfTest:rs,endsWith:one,toArray:lne,forEachEntry:une,matchAll:fne,isHTMLForm:dne,hasOwnProperty:_C,hasOwnProp:_C,reduceDescriptors:ZF,freezeMethods:mne,toObjectSet:gne,toCamelCase:hne,noop:yne,toFiniteNumber:vne,findKey:JF,global:rl,isContextDefined:QF,ALPHABET:e$,generateString:_ne,isSpecCompliantForm:Ene,toJSONObject:bne,isAsyncFn:Tne,isThenable:Sne,setImmediate:t$,asap:wne};function Qe(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}re.inherits(Qe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:re.toJSONObject(this.config),code:this.code,status:this.status}}});const n$=Qe.prototype,r$={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{r$[t]={value:t}});Object.defineProperties(Qe,r$);Object.defineProperty(n$,"isAxiosError",{value:!0});Qe.from=(t,e,n,r,i,s)=>{const a=Object.create(n$);return re.toFlatObject(t,a,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),Qe.call(a,t.message,e,n,r,i),a.cause=t,a.name=t.name,s&&Object.assign(a,s),a};const xne=null;function Kb(t){return re.isPlainObject(t)||re.isArray(t)}function i$(t){return re.endsWith(t,"[]")?t.slice(0,-2):t}function bC(t,e,n){return t?t.concat(e).map(function(i,s){return i=i$(i),!n&&s?"["+i+"]":i}).join(n?".":""):e}function Ane(t){return re.isArray(t)&&!t.some(Kb)}const Rne=re.toFlatObject(re,{},null,function(e){return/^is[A-Z]/.test(e)});function Qg(t,e,n){if(!re.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!re.isUndefined(g[m])});const r=n.metaTokens,i=n.visitor||u,s=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&re.isSpecCompliantForm(e);if(!re.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(re.isDate(p))return p.toISOString();if(!l&&re.isBlob(p))throw new Qe("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(p)||re.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,g){let _=p;if(p&&!g&&typeof p=="object"){if(re.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(re.isArray(p)&&Ane(p)||(re.isFileList(p)||re.endsWith(m,"[]"))&&(_=re.toArray(p)))return m=i$(m),_.forEach(function(y,E){!(re.isUndefined(y)||y===null)&&e.append(a===!0?bC([m],E,s):a===null?m:m+"[]",c(y))}),!1}return Kb(p)?!0:(e.append(bC(g,m,s),c(p)),!1)}const f=[],d=Object.assign(Rne,{defaultVisitor:u,convertValue:c,isVisitable:Kb});function h(p,m){if(!re.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(p),re.forEach(p,function(_,v){(!(re.isUndefined(_)||_===null)&&i.call(e,_,re.isString(v)?v.trim():v,m,d))===!0&&h(_,m?m.concat(v):[v])}),f.pop()}}if(!re.isObject(t))throw new TypeError("data must be an object");return h(t),e}
213function TC(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function nw(t,e){this._pairs=[],t&&Qg(t,this,e)}const s$=nw.prototype;s$.append=function(e,n){this._pairs.push([e,n])};s$.toString=function(e){const n=e?function(r){return e.call(this,r,TC)}:TC;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Lne(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function a$(t,e,n){if(!e)return t;const r=n&&n.encode||Lne;re.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(e,n):s=re.isURLSearchParams(e)?e.toString():new nw(e,n).toString(r),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class SC{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){re.forEach(this.handlers,function(r){r!==null&&e(r)})}}const o$={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cne=typeof URLSearchParams<"u"?URLSearchParams:nw,Ine=typeof FormData<"u"?FormData:null,kne=typeof Blob<"u"?Blob:null,Pne={isBrowser:!0,classes:{URLSearchParams:Cne,FormData:Ine,Blob:kne},protocols:["http","https","file","blob","url","data"]},rw=typeof window<"u"&&typeof document<"u",Wb=typeof navigator=="object"&&navigator||void 0,Dne=rw&&(!Wb||["ReactNative","NativeScript","NS"].indexOf(Wb.product)<0),One=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Mne=rw&&window.location.href||"http://localhost",Nne=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:rw,hasStandardBrowserEnv:Dne,hasStandardBrowserWebWorkerEnv:One,navigator:Wb,origin:Mne},Symbol.toStringTag,{value:"Module"})),Er={...Nne,...Pne};function Fne(t,e){return Qg(t,new Er.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return Er.isNode&&re.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function $ne(t){return re.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Bne(t){const e={},n=Object.keys(t);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],e[s]=t[s];return e}function l$(t){function e(n,r,i,s){let a=n[s++];if(a==="__proto__")return!0;const o=Number.isFinite(+a),l=s>=n.length;return a=!a&&re.isArray(i)?i.length:a,l?(re.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!o):((!i[a]||!re.isObject(i[a]))&&(i[a]=[]),e(n,r,i[a],s)&&re.isArray(i[a])&&(i[a]=Bne(i[a])),!o)}if(re.isFormData(t)&&re.isFunction(t.entries)){const n={};return re.forEachEntry(t,(r,i)=>{e($ne(r),i,n,0)}),n}return null}function Une(t,e,n){if(re.isString(t))try{return(e||JSON.parse)(t),re.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const zd={transitional:o$,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=re.isObject(e);if(s&&re.isHTMLForm(e)&&(e=new FormData(e)),re.isFormData(e))return i?JSON.stringify(l$(e)):e;if(re.isArrayBuffer(e)||re.isBuffer(e)||re.isStream(e)||re.isFile(e)||re.isBlob(e)||re.isReadableStream(e))return e;if(re.isArrayBufferView(e))return e.buffer;if(re.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Fne(e,this.formSerializer).toString();if((o=re.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Qg(o?{"files[]":e}:e,l&&new l,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),Une(e)):e}],transformResponse:[function(e){const n=this.transitional||zd.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(re.isResponse(e)||re.isReadableStream(e))return e;if(e&&re.isString(e)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?Qe.from(o,Qe.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Er.classes.FormData,Blob:Er.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};re.forEach(["delete","get","head","post","put","patch"],t=>{zd.headers[t]={}});const Hne=re.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Gne=t=>{const e={};let n,r,i;return t&&t.split(` 214`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||e[n]&&Hne[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},wC=Symbol("internals");function Ju(t){return t&&String(t).trim().toLowerCase()}
214function jp(t){return t===!1||t==null?t:re.isArray(t)?t.map(jp):String(t)}function jne(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Vne=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function p0(t,e,n,r,i){if(re.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!re.isString(e)){if(re.isString(r))return e.indexOf(r)!==-1;if(re.isRegExp(r))return r.test(e)}}function qne(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Kne(t,e){const n=re.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,s,a){return this[r].call(this,e,i,s,a)},configurable:!0})})}class Zr{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function s(o,l,c){const u=Ju(l);if(!u)throw new Error("header name must be a non-empty string");const f=re.findKey(i,u);(!f||i[f]===void 0||c===!0||c===void 0&&i[f]!==!1)&&(i[f||l]=jp(o))}const a=(o,l)=>re.forEach(o,(c,u)=>s(c,u,l));if(re.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(re.isString(e)&&(e=e.trim())&&!Vne(e))a(Gne(e),n);else if(re.isHeaders(e))for(const[o,l]of e.entries())s(l,o,r);else e!=null&&s(n,e,r);return this}get(e,n){if(e=Ju(e),e){const r=re.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return jne(i);if(re.isFunction(n))return n.call(this,i,r);if(re.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Ju(e),e){const r=re.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||p0(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function s(a){if(a=Ju(a),a){const o=re.findKey(r,a);o&&(!n||p0(r,r[o],o,n))&&(delete r[o],i=!0)}}return re.isArray(e)?e.forEach(s):s(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!e||p0(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const n=this,r={};return re.forEach(this,(i,s)=>{const a=re.findKey(r,s);if(a){n[a]=jp(i),delete n[s];return}const o=e?qne(s):String(s).trim();o!==s&&delete n[s],n[o]=jp(i),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return re.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&re.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` 215`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[wC]=this[wC]={accessors:{}}).accessors,i=this.prototype;function s(a){const o=Ju(a);r[o]||(Kne(i,a),r[o]=!0)}return re.isArray(e)?e.forEach(s):s(e),this}}Zr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);re.reduceDescriptors(Zr.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});re.freezeMethods(Zr);function m0(t,e){const n=this||zd,r=e||n,i=Zr.from(r.headers);let s=r.data;return re.forEach(t,function(o){s=o.call(n,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function c$(t){return!!(t&&t.__CANCEL__)}function Mu(t,e,n){Qe.call(this,t??"canceled",Qe.ERR_CANCELED,e,n),this.name="CanceledError"}re.inherits(Mu,Qe,{__CANCEL__:!0});function u$(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new Qe("Request failed with status code "+n.status,[Qe.ERR_BAD_REQUEST,Qe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Wne(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function zne(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,s=0,a;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),u=r[s];a||(a=c),n[i]=l,r[i]=c;let f=s,d=0;for(;f!==i;)d+=n[f++],f=f%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),c-a<e)return;const h=u&&c-u;return h?Math.round(d*1e3/h):void 0}}function Yne(t,e){let n=0,r=1e3/e,i,s;const a=(c,u=Date.now())=>{n=u,i=null,s&&(clearTimeout(s),s=null),t.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?a(c,u):(i=c,s||(s=setTimeout(()=>{s=null,a(i)},r-f)))},()=>i&&a(i)]}const Zm=(t,e,n=3)=>{let r=0;const i=zne(50,250);return Yne(s=>{const a=s.loaded,o=s.lengthComputable?s.total:void 0,l=a-r,c=i(l),u=a<=o;r=a;const f={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:s,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(f)},n)},xC=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},AC=t=>(...e)=>re.asap(()=>t(...e)),Xne=Er.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Er.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Er.origin),Er.navigator&&/(msie|trident)/i.test(Er.navigator.userAgent)):()=>!0,Jne=Er.hasStandardBrowserEnv?{write(t,e,n,r,i,s){const a=[t+"="+encodeURIComponent(e)];re.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),re.isString(r)&&a.push("path="+r),re.isString(i)&&a.push("domain="+i),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Qne(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Zne(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function f$(t,e){return t&&!Qne(e)?Zne(t,e):e}const RC=t=>t instanceof Zr?{...t}:t;function $l(t,e){e=e||{};const n={};function r(c,u,f,d){return re.isPlainObject(c)&&re.isPlainObject(u)?re.merge.call({caseless:d},c,u):re.isPlainObject(u)?re.merge({},u):re.isArray(u)?u.slice():u}function i(c,u,f,d){if(re.isUndefined(u)){if(!re.isUndefined(c))return r(void 0,c,f,d)}else return r(c,u,f,d)}function s(c,u){if(!re.isUndefined(u))return r(void 0,u)}function a(c,u){if(re.isUndefined(u)){if(!re.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function o(c,u,f){if(f in e)return r(c,u);if(f in t)return r(void 0,c)}const l={url:s,method:s,data:s,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,maxBo
215dyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(c,u,f)=>i(RC(c),RC(u),f,!0)};return re.forEach(Object.keys(Object.assign({},t,e)),function(u){const f=l[u]||i,d=f(t[u],e[u],u);re.isUndefined(d)&&f!==o||(n[u]=d)}),n}const d$=t=>{const e=$l({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:o}=e;e.headers=a=Zr.from(a),e.url=a$(f$(e.baseURL,e.url),t.params,t.paramsSerializer),o&&a.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(re.isFormData(n)){if(Er.hasStandardBrowserEnv||Er.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Er.hasStandardBrowserEnv&&(r&&re.isFunction(r)&&(r=r(e)),r||r!==!1&&Xne(e.url))){const c=i&&s&&Jne.read(s);c&&a.set(i,c)}return e},ere=typeof XMLHttpRequest<"u",tre=ere&&function(t){return new Promise(function(n,r){const i=d$(t);let s=i.data;const a=Zr.from(i.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:c}=i,u,f,d,h,p;function m(){h&&h(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function _(){if(!g)return;const y=Zr.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),b={data:!o||o==="text"||o==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:y,config:t,request:g};u$(function(S){n(S),m()},function(S){r(S),m()},b),g=null}"onloadend"in g?g.onloadend=_:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(_)},g.onabort=function(){g&&(r(new Qe("Request aborted",Qe.ECONNABORTED,t,g)),g=null)},g.onerror=function(){r(new Qe("Network Error",Qe.ERR_NETWORK,t,g)),g=null},g.ontimeout=function(){let E=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const b=i.transitional||o$;i.timeoutErrorMessage&&(E=i.timeoutErrorMessage),r(new Qe(E,b.clarifyTimeoutError?Qe.ETIMEDOUT:Qe.ECONNABORTED,t,g)),g=null},s===void 0&&a.setContentType(null),"setRequestHeader"in g&&re.forEach(a.toJSON(),function(E,b){g.setRequestHeader(b,E)}),re.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),o&&o!=="json"&&(g.responseType=i.responseType),c&&([d,p]=Zm(c,!0),g.addEventListener("progress",d)),l&&g.upload&&([f,h]=Zm(l),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(u=y=>{g&&(r(!y||y.type?new Mu(null,t,g):y),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const v=Wne(i.url);if(v&&Er.protocols.indexOf(v)===-1){r(new Qe("Unsupported protocol "+v+":",Qe.ERR_BAD_REQUEST,t));return}g.send(s||null)})},nre=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,i;const s=function(c){if(!i){i=!0,o();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Qe?u:new Mu(u instanceof Error?u.message:u))}};let a=e&&setTimeout(()=>{a=null,s(new Qe(`timeout ${e} of ms exceeded`,Qe.ETIMEDOUT))},e);const o=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(s):c.removeEventListener("abort",s)}),t=null)};t.forEach(c=>c.addEventListener("abort",s));const{signal:l}=r;return l.unsubscribe=()=>re.asap(o),l}},rre=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},ire=async function*(t,e){for await(const n of sre(t))yield*rre(n,e)},sre=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},LC=(t,e,n,r)=>{const i=ire(t,e);let s=0,a,o=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){o(),l.close();return}let f=u.byteLength;if(n){let d=s+=f;n(d)}l.enqueue(new Uint8Array(u))}catch(c){throw o(c),c}},cancel(l){return o(l),i.return()}},{highWaterMark:2})},Zg=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",h$=Zg&&typeof ReadableStream=="function",are=Zg&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),p$=(t,...e)=>{try{return!!t(...e)}catch{return!1}},ore=h$&&p$(()=>{let t=!1;
215const e=new Request(Er.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),CC=64*1024,zb=h$&&p$(()=>re.isReadableStream(new Response("").body)),eg={stream:zb&&(t=>t.body)};Zg&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!eg[e]&&(eg[e]=re.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new Qe(`Response type '${e}' is not supported`,Qe.ERR_NOT_SUPPORT,r)})})})(new Response);const lre=async t=>{if(t==null)return 0;if(re.isBlob(t))return t.size;if(re.isSpecCompliantForm(t))return(await new Request(Er.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(re.isArrayBufferView(t)||re.isArrayBuffer(t))return t.byteLength;if(re.isURLSearchParams(t)&&(t=t+""),re.isString(t))return(await are(t)).byteLength},cre=async(t,e)=>{const n=re.toFiniteNumber(t.getContentLength());return n??lre(e)},ure=Zg&&(async t=>{let{url:e,method:n,data:r,signal:i,cancelToken:s,timeout:a,onDownloadProgress:o,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:d}=d$(t);c=c?(c+"").toLowerCase():"text";let h=nre([i,s&&s.toAbortSignal()],a),p;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&ore&&n!=="get"&&n!=="head"&&(g=await cre(u,r))!==0){let b=new Request(e,{method:"POST",body:r,duplex:"half"}),T;if(re.isFormData(r)&&(T=b.headers.get("content-type"))&&u.setContentType(T),b.body){const[S,A]=xC(g,Zm(AC(l)));r=LC(b.body,CC,S,A)}}re.isString(f)||(f=f?"include":"omit");const _="credentials"in Request.prototype;p=new Request(e,{...d,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:_?f:void 0});let v=await fetch(p);const y=zb&&(c==="stream"||c==="response");if(zb&&(o||y&&m)){const b={};["status","statusText","headers"].forEach(w=>{b[w]=v[w]});const T=re.toFiniteNumber(v.headers.get("content-length")),[S,A]=o&&xC(T,Zm(AC(o),!0))||[];v=new Response(LC(v.body,CC,S,()=>{A&&A(),m&&m()}),b)}c=c||"text";let E=await eg[re.findKey(eg,c)||"text"](v,t);return!y&&m&&m(),await new Promise((b,T)=>{u$(b,T,{data:E,headers:Zr.from(v.headers),status:v.status,statusText:v.statusText,config:t,request:p})})}catch(_){throw m&&m(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new Qe("Network Error",Qe.ERR_NETWORK,t,p),{cause:_.cause||_}):Qe.from(_,_&&_.code,t,p)}}),Yb={http:xne,xhr:tre,fetch:ure};re.forEach(Yb,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const IC=t=>`- ${t}`,fre=t=>re.isFunction(t)||t===null||t===!1,m$={getAdapter:t=>{t=re.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let s=0;s<e;s++){n=t[s];let a;if(r=n,!fre(n)&&(r=Yb[(a=String(n)).toLowerCase()],r===void 0))throw new Qe(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+s]=r}if(!r){const s=Object.entries(i).map(([o,l])=>`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=e?s.length>1?`since : 216`+s.map(IC).join(` 217`):" "+IC(s[0]):"as no adapter specified";throw new Qe("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Yb};function g0(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Mu(null,t)}function kC(t){return g0(t),t.headers=Zr.from(t.headers),t.data=m0.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),m$.getAdapter(t.adapter||zd.adapter)(t).then(function(r){return g0(t),r.data=m0.call(t,t.transformResponse,r),r.headers=Zr.from(r.headers),r},function(r){return c$(r)||(g0(t),r&&r.response&&(r.response.data=m0.call(t,t.transformResponse,r.response),r.response.headers=Zr.from(r.response.headers))),Promise.reject(r)})}const g$="1.7.9",ey={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ey[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const PC={};ey.transitional=function(e,n,r){function i(s,a){return"[Axios v"+g$+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,o)=>
217{if(e===!1)throw new Qe(i(a," has been removed"+(n?" in "+n:"")),Qe.ERR_DEPRECATED);return n&&!PC[a]&&(PC[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,a,o):!0}};ey.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function dre(t,e,n){if(typeof t!="object")throw new Qe("options must be an object",Qe.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const s=r[i],a=e[s];if(a){const o=t[s],l=o===void 0||a(o,s,t);if(l!==!0)throw new Qe("option "+s+" must be "+l,Qe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Qe("Unknown option "+s,Qe.ERR_BAD_OPTION)}}const Vp={assertOptions:dre,validators:ey},cs=Vp.validators;class Sl{constructor(e){this.defaults=e,this.interceptors={request:new SC,response:new SC}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` 218`+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=$l(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Vp.assertOptions(r,{silentJSONParsing:cs.transitional(cs.boolean),forcedJSONParsing:cs.transitional(cs.boolean),clarifyTimeoutError:cs.transitional(cs.boolean)},!1),i!=null&&(re.isFunction(i)?n.paramsSerializer={serialize:i}:Vp.assertOptions(i,{encode:cs.function,serialize:cs.function},!0)),Vp.assertOptions(n,{baseUrl:cs.spelling("baseURL"),withXsrfToken:cs.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&re.merge(s.common,s[n.method]);s&&re.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),n.headers=Zr.concat(a,s);const o=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!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,f=0,d;if(!l){const p=[kC.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,c),d=p.length,u=Promise.resolve(n);f<d;)u=u.then(p[f++],p[f++]);return u}d=o.length;let h=n;for(f=0;f<d;){const p=o[f++],m=o[f++];try{h=p(h)}catch(g){m.call(this,g);break}}try{u=kC.call(this,h)}catch(p){return Promise.reject(p)}for(f=0,d=c.length;f<d;)u=u.then(c[f++],c[f++]);return u}getUri(e){e=$l(this.defaults,e);const n=f$(e.baseURL,e.url);return a$(n,e.params,e.paramsSerializer)}}re.forEach(["delete","get","head","options"],function(e){Sl.prototype[e]=function(n,r){return this.request($l(r||{},{method:e,url:n,data:(r||{}).data}))}});re.forEach(["post","put","patch"],function(e){function n(r){return function(s,a,o){return this.request($l(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Sl.prototype[e]=n(),Sl.prototype[e+"Form"]=n(!0)});class iw{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const a=new Promise(o=>{r.subscribe(o),s=o}).then(i);return a.cancel=function(){r.unsubscribe(s)},a},e(function(s,a,o){r.reason||(r.reason=new Mu(s,a,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new iw(function(i){e=i}),cancel:e}}}function hre(t){return function(n){return t.apply(null,n)}}function pre(t){return re.isObject(t)&&t.isAxiosError===!0}const Xb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
218setContent: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(Xb).forEach(([t,e])=>{Xb[e]=t});function y$(t){const e=new Sl(t),n=zF(Sl.prototype.request,e);return re.extend(n,Sl.prototype,e,{allOwnKeys:!0}),re.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return y$($l(t,i))},n}const Sn=y$(zd);Sn.Axios=Sl;Sn.CanceledError=Mu;Sn.CancelToken=iw;Sn.isCancel=c$;Sn.VERSION=g$;Sn.toFormData=Qg;Sn.AxiosError=Qe;Sn.Cancel=Sn.CanceledError;Sn.all=function(e){return Promise.all(e)};Sn.spread=hre;Sn.isAxiosError=pre;Sn.mergeConfig=$l;Sn.AxiosHeaders=Zr;Sn.formToJSON=t=>l$(re.isHTMLForm(t)?new FormData(t):t);Sn.getAdapter=m$.getAdapter;Sn.HttpStatusCode=Xb;Sn.default=Sn;var mre=Function.prototype.toString,y0=Object.create,gre=Object.prototype.toString,yre=function(){function t(){this._keys=[],this._values=[]}return t.prototype.has=function(e){return!!~this._keys.indexOf(e)},t.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},t.prototype.set=function(e,n){this._keys.push(e),this._values.push(n)},t}();function vre(){return new yre}function _re(){return new WeakMap}var Ere=typeof WeakMap<"u"?_re:vre;function sw(t){if(!t)return y0(null);var e=t.constructor;if(e===Object)return t===Object.prototype?{}:y0(t);if(e&&~mre.call(e).indexOf("[native code]"))try{return new e}catch{}return y0(t)}function bre(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}function Tre(t){return t.flags}var Sre=/test/g.flags==="g"?Tre:bre;function v$(t){var e=gre.call(t);return e.substring(8,e.length-1)}function wre(t){return t[Symbol.toStringTag]||v$(t)}var xre=typeof Symbol<"u"?wre:v$,Are=Object.defineProperty,Rre=Object.getOwnPropertyDescriptor,_$=Object.getOwnPropertyNames,aw=Object.getOwnPropertySymbols,E$=Object.prototype,b$=E$.hasOwnProperty,Lre=E$.propertyIsEnumerable,T$=typeof aw=="function";function Cre(t){return _$(t).concat(aw(t))}var Ire=T$?Cre:_$;function ty(t,e,n){for(var r=Ire(t),i=0,s=r.length,a=void 0,o=void 0;i<s;
218++i)if(a=r[i],!(a==="callee"||a==="caller")){if(o=Rre(t,a),!o){e[a]=n.copier(t[a],n);continue}!o.get&&!o.set&&(o.value=n.copier(o.value,n));try{Are(e,a,o)}catch{e[a]=o.value}}return e}function kre(t,e){var n=new e.Constructor;e.cache.set(t,n);for(var r=0,i=t.length;r<i;++r)n[r]=e.copier(t[r],e);return n}function Pre(t,e){var n=new e.Constructor;return e.cache.set(t,n),ty(t,n,e)}function S$(t,e){return t.slice(0)}function Dre(t,e){return t.slice(0,t.size,t.type)}function Ore(t,e){return new e.Constructor(S$(t.buffer))}function Mre(t,e){return new e.Constructor(t.getTime())}function w$(t,e){var n=new e.Constructor;return e.cache.set(t,n),t.forEach(function(r,i){n.set(i,e.copier(r,e))}),n}function Nre(t,e){return ty(t,w$(t,e),e)}function Fre(t,e){var n=sw(e.prototype);e.cache.set(t,n);for(var r in t)b$.call(t,r)&&(n[r]=e.copier(t[r],e));return n}function $re(t,e){var n=sw(e.prototype);e.cache.set(t,n);for(var r in t)b$.call(t,r)&&(n[r]=e.copier(t[r],e));for(var i=aw(t),s=0,a=i.length,o=void 0;s<a;++s)o=i[s],Lre.call(t,o)&&(n[o]=e.copier(t[o],e));return n}var Bre=T$?$re:Fre;function Ure(t,e){var n=sw(e.prototype);return e.cache.set(t,n),ty(t,n,e)}function v0(t,e){return new e.Constructor(t.valueOf())}function Hre(t,e){var n=new e.Constructor(t.source,Sre(t));return n.lastIndex=t.lastIndex,n}function qp(t,e){return t}function x$(t,e){var n=new e.Constructor;return e.cache.set(t,n),t.forEach(function(r){n.add(e.copier(r,e))}),n}function Gre(t,e){return ty(t,x$(t,e),e)}var jre=Array.isArray,ow=Object.assign,Vre=Object.getPrototypeOf||function(t){return t.__proto__},A$={array:kre,arrayBuffer:S$,blob:Dre,dataView:Ore,date:Mre,error:qp,map:w$,object:Bre,regExp:Hre,set:x$},qre=ow({},A$,{array:Pre,map:Nre,object:Ure,set:Gre});function Kre(t){return{Arguments:t.object,Array:t.array,ArrayBuffer:t.arrayBuffer,Blob:t.blob,Boolean:v0,DataView:t.dataView,Date:t.date,Error:t.error,Float32Array:t.arrayBuffer,Float64Array:t.arrayBuffer,Int8Array:t.arrayBuffer,Int16Array:t.arrayBuffer,Int32Array:t.arrayBuffer,Map:t.map,Number:v0,Object:t.object,Promise:qp,RegExp:t.regExp,Set:t.set,String:v0,WeakMap:qp,WeakSet:qp,Uint8Array:t.arrayBuffer,Uint8ClampedArray:t.arrayBuffer,Uint16Array:t.arrayBuffer,Uint32Array:t.arrayBuffer,Uint64Array:t.arrayBuffer}}function R$(t){var e=ow({},A$,t),n=Kre(e),r=n.Array,i=n.Object;function s(a,o){if(o.prototype=o.Constructor=void 0,!a||typeof a!="object")return a;
218if(o.cache.has(a))return o.cache.get(a);if(o.prototype=Vre(a),o.Constructor=o.prototype&&o.prototype.constructor,!o.Constructor||o.Constructor===Object)return i(a,o);if(jre(a))return r(a,o);var l=n[xre(a)];return l?l(a,o):typeof a.then=="function"?a:i(a,o)}return function(o){return s(o,{Constructor:void 0,cache:Ere(),copier:s,prototype:void 0})}}function Wre(t){return R$(ow({},qre,t))}Wre({});var lw=R$({}),_0,DC;function Nu(){return DC||(DC=1,_0=TypeError),_0}const zre={},Yre=Object.freeze(Object.defineProperty({__proto__:null,default:zre},Symbol.toStringTag,{value:"Module"})),Xre=eq(Yre);var E0,OC;function ny(){if(OC)return E0;OC=1;var t=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=t&&e&&typeof e.get=="function"?e.get:null,r=t&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=i&&s&&typeof s.get=="function"?s.get:null,o=i&&Set.prototype.forEach,l=typeof WeakMap=="function"&&WeakMap.prototype,c=l?WeakMap.prototype.has:null,u=typeof WeakSet=="function"&&WeakSet.prototype,f=u?WeakSet.prototype.has:null,d=typeof WeakRef=="function"&&WeakRef.prototype,h=d?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,_=String.prototype.match,v=String.prototype.slice,y=String.prototype.replace,E=String.prototype.toUpperCase,b=String.prototype.toLowerCase,T=RegExp.prototype.test,S=Array.prototype.concat,A=Array.prototype.join,w=Array.prototype.slice,x=Math.floor,L=typeof BigInt=="function"?BigInt.prototype.valueOf:null,R=Object.getOwnPropertySymbols,k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,F=typeof Symbol=="function"&&typeof Symbol.iterator=="object",U=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===F||!0)?Symbol.toStringTag:null,H=Object.prototype.propertyIsEnumerable,M=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(Q){return Q.__proto__}:null);function O(Q,Z){if(Q===1/0||Q===-1/0||Q!==Q||Q&&Q>-1e3&&Q<1e3||T.call(/e/,Z))return Z;var Oe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof Q=="number"){var st=Q<0?-x(-Q):x(Q);if(st!==Q){var xe=String(st),Ue=v.call(Z,xe.length+1);return y.call(xe,Oe,"$&_")+"."+y.call(y.call(Ue,/([0-9]{3})/g,"$&_"),/_$/,"")}}return y.call(Z,Oe,"$&_")}var q=Xre,P=q.custom,ae=C(P)?P:null,ce={__proto__:null,double:'"',single:"'"},ye={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};E0=function Q(Z,Oe,st,xe){var Ue=Oe||{};if(ee(Ue,"quoteStyle")&&!ee(ce,Ue.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ee(Ue,"maxStringLength")&&(typeof Ue.maxStringLength=="number"?Ue.maxStringLength<0&&Ue.maxStringLength!==1/0:Ue.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ln=ee(Ue,"customInspect")?Ue.customInspect:!0;if(typeof ln!="boolean"&&ln!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ee(Ue,"indent")&&Ue.indent!==null&&Ue.indent!==" "&&!(parseInt(Ue.indent,10)===Ue.indent&&Ue.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ee(Ue,"numericSeparator")&&typeof Ue.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var xn=Ue.numericSeparator;if(typeof Z>"u")return"undefined";if(Z===null)return"null";if(typeof Z=="boolean")return Z?"true":"false";if(typeof Z=="string")return we(Z,Ue);if(typeof Z=="number"){if(Z===0)return 1/0/Z>0?"0":"-0";var Bt=String(Z);return xn?O(Z,Bt):Bt}if(typeof Z=="bigint"){var lr=String(Z)+"n";return xn?O(Z,lr):lr}var is=typeof Ue.depth>"u"?5:Ue.depth;if(typeof st>"u"&&(st=0),st>=is&&is>0&&typeof Z=="object")return G(Z)?"[Array]":"[Object]";var cr=ut(Ue,st);if(typeof xe>"u")xe=[];else if(fe(xe,Z)>=0)return"[Circular]";function zn(un,Ar,An){if(Ar&&(xe=w.call(xe),xe.push(Ar)),An){var fn={depth:Ue.depth};return ee(Ue,"quoteStyle")&&(fn.quoteStyle=Ue.quoteStyle),Q(un,fn,st+1,xe)}return Q(un,Ue,st+1,xe)}if(typeof Z=="function"&&!$(Z)){var We=ie(Z),ke=on(Z,zn);
vendor: 28,140 bytes, lines 218-221
218return"[Function"+(We?": "+We:" (anonymous)")+"]"+(ke.length>0?" { "+A.call(ke,", ")+" }":"")}if(C(Z)){var ft=F?y.call(String(Z),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(Z);return typeof Z=="object"&&!F?Ne(ft):ft}if(me(Z)){for(var ge="<"+b.call(String(Z.nodeName)),He=Z.attributes||[],Le=0;Le<He.length;Le++)ge+=" "+He[Le].name+"="+ve(z(He[Le].value),"double",Ue);return ge+=">",Z.childNodes&&Z.childNodes.length&&(ge+="..."),ge+="</"+b.call(String(Z.nodeName))+">",ge}if(G(Z)){if(Z.length===0)return"[]";var Ge=on(Z,zn);return cr&&!Gt(Ge)?"["+Zt(Ge,cr)+"]":"[ "+A.call(Ge,", ")+" ]"}if(j(Z)){var en=on(Z,zn);return!("cause"in Error.prototype)&&"cause"in Z&&!H.call(Z,"cause")?"{ ["+String(Z)+"] "+A.call(S.call("[cause]: "+zn(Z.cause),en),", ")+" }":en.length===0?"["+String(Z)+"]":"{ ["+String(Z)+"] "+A.call(en,", ")+" }"}if(typeof Z=="object"&&ln){if(ae&&typeof Z[ae]=="function"&&q)return q(Z,{depth:is-st});if(ln!=="symbol"&&typeof Z.inspect=="function")return Z.inspect()}if(ue(Z)){var tt=[];return r&&r.call(Z,function(un,Ar){tt.push(zn(Ar,Z,!0)+" => "+zn(un,Z))}),Mt("Map",n.call(Z),tt,cr)}if(Ee(Z)){var jt=[];return o&&o.call(Z,function(un){jt.push(zn(un,Z))}),Mt("Set",a.call(Z),jt,cr)}if(se(Z))return qe("WeakMap");if(he(Z))return qe("WeakSet");if(oe(Z))return qe("WeakRef");if(W(Z))return Ne(zn(Number(Z)));if(D(Z))return Ne(zn(L.call(Z)));if(Y(Z))return Ne(p.call(Z));if(V(Z))return Ne(zn(String(Z)));if(typeof window<"u"&&Z===window)return"{ [object Window] }";if(typeof globalThis<"u"&&Z===globalThis||typeof vc<"u"&&Z===vc)return"{ [object globalThis] }";if(!N(Z)&&!$(Z)){var cn=on(Z,zn),Ut=M?M(Z)===Object.prototype:Z instanceof Object||Z.constructor===Object,Rt=Z instanceof Object?"":"null prototype",yt=!Ut&&U&&Object(Z)===Z&&U in Z?v.call(B(Z),8,-1):Rt?"Object":"",ni=Ut||typeof Z.constructor!="function"?"":Z.constructor.name?Z.constructor.name+" ":"",Ct=ni+(yt||Rt?"["+A.call(S.call([],yt||[],Rt||[]),": ")+"] ":"");return cn.length===0?Ct+"{}":cr?Ct+"{"+Zt(cn,cr)+"}":Ct+"{ "+A.call(cn,", ")+" }"}return String(Z)};function ve(Q,Z,Oe){var st=Oe.quoteStyle||Z,xe=ce[st];return xe+Q+xe}function z(Q){return y.call(String(Q),/"/g,""")}function G(Q){return B(Q)==="[object Array]"&&(!U||!(typeof Q=="object"&&U in Q))}function N(Q){return B(Q)==="[object Date]"&&(!U||!(typeof Q=="object"&&U in Q))}function $(Q){return B(Q)==="[object RegExp]"&&(!U||!(typeof Q=="object"&&U in Q))}function j(Q){return B(Q)==="[object Error]"&&(!U||!(typeof Q=="object"&&U in Q))}function V(Q){return B(Q)==="[object String]"&&(!U||!(typeof Q=="object"&&U in Q))}function W(Q){return B(Q)==="[object Number]"&&(!U||!(typeof Q=="object"&&U in Q))}function Y(Q){return B(Q)==="[object Boolean]"&&(!U||!(typeof Q=="object"&&U in Q))}function C(Q){if(F)return Q&&typeof Q=="object"&&Q instanceof Symbol;if(typeof Q=="symbol")return!0;if(!Q||typeof Q!="object"||!k)return!1;try{return k.call(Q),!0}catch{}return!1}function D(Q){if(!Q||typeof Q!="object"||!L)return!1;try{return L.call(Q),!0}catch{}return!1}var K=Object.prototype.hasOwnProperty||function(Q){return Q in this};function ee(Q,Z){return K.call(Q,Z)}function B(Q){return m.call(Q)}function ie(Q){if(Q.name)return Q.name;var Z=_.call(g.call(Q),/^function\s*([\w$]+)/);return Z?Z[1]:null}function fe(Q,Z){if(Q.indexOf)return Q.indexOf(Z);for(var Oe=0,st=Q.length;Oe<st;Oe++)if(Q[Oe]===Z)return Oe;return-1}function ue(Q){if(!n||!Q||typeof Q!="object")return!1;try{n.call(Q);try{a.call(Q)}catch{return!0}return Q instanceof Map}catch{}return!1}function se(Q){if(!c||!Q||typeof Q!="object")return!1;try{c.call(Q,c);try{f.call(Q,f)}catch{return!0}return Q instanceof WeakMap}catch{}return!1}function oe(Q){if(!h||!Q||typeof Q!="object")return!1;try{return h.call(Q),!0}catch{}return!1}function Ee(Q){if(!a||!Q||typeof Q!="object")return!1;try{a.call(Q);try{n.call(Q)}catch{return!0}return Q instanceof Set}catch{}return!1}function he(Q){if(!f||!Q||typeof Q!="object")return!1;try{f.call(Q,f);try{c.call(Q,c)}catch{return!0}return Q instanceof WeakSet}catch{}return!1}function me(Q){return!Q||typeof Q!="object"?!1:typeof HTMLElement<"u"&&Q instanceof HTMLElement?!0:typeof Q.nodeName=="string"&&typeof Q.getAttribute=="function"}function we(Q,Z){if(Q.length>Z.maxStringLength){var Oe=Q.length-Z.maxStringLength,st="... "+Oe+" more character"+(Oe>1?"s":"");return we(v.call(Q,0,Z.maxStringLength),Z)+st}var xe=ye[Z.quoteStyle||"single"];xe.lastIndex=0;var Ue=y.call(y.call(Q,xe,"\\$1"),/[\x00-\x1f]/g,Ae);return ve(Ue,"single",Z)}function Ae(Q){var Z=Q.charCodeAt(0),Oe={8:"b",9:"t",10:"n",12:"f",13:"r"}[Z];return Oe?"\\"+Oe:"\\x"+(Z<16?"0":"")+E.call(Z.toString(16))}function Ne(Q){return"Object("+Q+")"}function qe(Q){return Q+" { ? }"}function Mt(Q,Z,Oe,st){var xe=st?Zt(Oe,st):A.call(Oe,", ");return Q+" ("+Z+") {"+xe+"}"}function Gt(Q){for(var Z=0;Z<Q.length;Z++)if(fe(Q[Z],` 219`)>=0)return!1;return!0}function ut(Q,Z){var Oe;if(Q.indent===" ")Oe=" ";else if(typeof Q.indent=="number"&&Q.indent>0)Oe=A.call(Array(Q.indent+1)," ");else return null;return{base:Oe,prev:A.call(Array(Z+1),Oe)}}function Zt(Q,Z){if(Q.length===0)return"";var Oe=` 220`+Z.prev+Z.base;return Oe+A.call(Q,","+Oe)+` 221`+Z.prev}function on(Q,Z){var Oe=G(Q),st=[];if(Oe){st.length=Q.length;for(var xe=0;xe<Q.length;xe++)st[xe]=ee(Q,xe)?Z(Q[xe],Q):""}var Ue=typeof R=="function"?R(Q):[],ln;if(F){ln={};for(var xn=0;xn<Ue.length;xn++)ln["$"+Ue[xn]]=Ue[xn]}for(var Bt in Q)ee(Q,Bt)&&(Oe&&String(Number(Bt))===Bt&&Bt<Q.length||F&&ln["$"+Bt]instanceof Symbol||(T.call(/[^\w$]/,Bt)?st.push(Z(Bt,Q)+": "+Z(Q[Bt],Q)):st.push(Bt+": "+Z(Q[Bt],Q))));if(typeof R=="function")for(var lr=0;lr<Ue.length;lr++)H.call(Q,Ue[lr])&&st.push("["+Z(Ue[lr])+"]: "+Z(Q[Ue[lr]],Q));return st}return E0}var b0,MC;function Jre(){if(MC)return b0;MC=1;var t=ny(),e=Nu(),n=function(o,l,c){for(var u=o,f;(f=u.next)!=null;u=f)if(f.key===l)return u.next=f.next,c||(f.next=o.next,o.next=f),f},r=function(o,l){if(o){var c=n(o,l);return c&&c.value}},i=function(o,l,c){var u=n(o,l);u?u.value=c:o.next={key:l,next:o.next,value:c}},s=function(o,l){return o?!!n(o,l):!1},a=function(o,l){if(o)return n(o,l,!0)};return b0=function(){var l,c={assert:function(u){if(!c.has(u))throw new e("Side channel does not contain "+t(u))},delete:function(u){var f=l&&l.next,d=a(l,u);return d&&f&&f===d&&(l=void 0),!!d},get:function(u){return r(l,u)},has:function(u){return s(l,u)},set:function(u,f){l||(l={next:void 0}),i(l,u,f)}};return c},b0}var T0,NC;function L$(){return NC||(NC=1,T0=Object),T0}var S0,FC;function Qre(){return FC||(FC=1,S0=Error),S0}var w0,$C;function Zre(){return $C||($C=1,w0=EvalError),w0}var x0,BC;function eie(){return BC||(BC=1,x0=RangeError),x0}var A0,UC;function tie(){return UC||(UC=1,A0=ReferenceError),A0}var R0,HC;function nie(){return HC||(HC=1,R0=SyntaxError),R0}var L0,GC;function rie(){return GC||(GC=1,L0=URIError),L0}var C0,jC;function iie(){return jC||(jC=1,C0=Math.abs),C0}var I0,VC;function sie(){return VC||(VC=1,I0=Math.floor),I0}var k0,qC;function aie(){return qC||(qC=1,k0=Math.max),k0}var P0,KC;function oie(){return KC||(KC=1,P0=Math.min),P0}var D0,WC;function lie(){return WC||(WC=1,D0=Math.pow),D0}var O0,zC;function cie(){return zC||(zC=1,O0=Math.round),O0}var M0,YC;function uie(){return YC||(YC=1,M0=Number.isNaN||function(e){return e!==e}),M0}var N0,XC;function fie(){if(XC)return N0;XC=1;var t=uie();return N0=function(n){return t(n)||n===0?n:n<0?-1:1},N0}var F0,JC;function die(){return JC||(JC=1,F0=Object.getOwnPropertyDescriptor),F0}var $0,QC;function C$(){if(QC)return $0;QC=1;var t=die();if(t)try{t([],"length")}catch{t=null}return $0=t,$0}var B0,ZC;function hie(){if(ZC)return B0;ZC=1;var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return B0=t,B0}var U0,e1;function pie(){return e1||(e1=1,U0=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[n]=i;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,n);if(o.value!==i||o.enumerable!==!0)return!1}return!0}),U0}var H0,t1;function mie(){if(t1)return H0;t1=1;var t=typeof Symbol<"u"&&Symbol,e=pie();return H0=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},H0}var G0,n1;function I$(){return n1||(n1=1,G0=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),G0}var j0,r1;function k$(){if(r1)return j0;r1=1;var t=L$();return j0=t.getPrototypeOf||null,j0}var V0,i1;function gie(){if(i1)return V0;i1=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,n=Math.max,r="[object Function]",i=function(l,c){for(var u=[],f=0;f<l.length;f+=1)u[f]=l[f];for(var d=0;d<c.length;d+=1)u[d+l.length]=c[d];return u},s=function(l,c){for(var u=[],f=c,d=0;f<l.length;f+=1,d+=1)u[d]=l[f];return u},a=function(o,l){for(var c="",u=0;u<o.length;u+=1)c+=o[u],u+1<o.length&&(c+=l);return c};return V0=function(l){var c=this;if(typeof c!="function"||e.apply(c)!==r)throw new TypeError(t+c);for(var u=s(arguments,1),f,d=function(){if(this instanceof f){var _=c.apply(this,i(u,arguments));return Object(_)===_?_:this}return c.apply(l,i(u,arguments))},h=n(0,c.length-u.length),p=[],m=0;m<h;m++)p[m]="$"+m;if(f=Function("binder","return function ("+a(p,",")+"){ return binder.apply(this,arguments); }")(d),c.prototype){var g=function(){};g.prototype=c.prototype,f.prototype=new g,g.prototype=null}return f},V0}var q0,s1;function ry(){if(s1)return q0;s1=1;var t=gie();return q0=Function.prototype.bind||t,q0}var K0,a1;function cw(){return a1||(a1=1,K0=Function.prototype.call),K0}var W0,o1;function P$(){return o1||(o1=1,W0=Function.prototype.apply),W0}var z0,l1;function yie(){return l1||(l1=1,z0=typeof Reflect<"u"&&Reflect&&Reflect.apply),z0}var Y0,c1;function vie(){if(c1)return Y0;c1=1;var t=ry(),e=P$(),n=cw(),r=yie();return Y0=r||t.call(n,e),Y0}var X0,u1;function D$(){if(u1)return X0;u1=1;var t=ry(),e=Nu(),n=cw(),r=vie();return X0=function(s){if(s.length<1||typeof s[0]!="function")throw new e("a function is required");return r(t,n,s)},X0}var J0,f1;function _ie(){if(f1)return J0;f1=1;var t=D$(),e=C$(),n;try{n=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var r=!!n&&e&&e(Object.prototype,"__proto__"),i=Object,s=i.getPrototypeOf;return J0=r&&typeof r.get=="function"?t([r.get]):typeof s=="function"?function(o){return s(o==null?o:i(o))}:!1,J0}var Q0,d1;function Eie(){if(d1)return Q0;d1=1;var t=I$(),e=k$(),n=_ie();return Q0=t?function(i){return t(i)}:e?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return e(i)}:n?function(i){return n(i)}:null,Q0}var Z0,h1;function bie(){if(h1)return Z0;h1=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,n=ry();return Z0=n.call(t,e),Z0}var e_,p1;function uw(){if(p1)return e_;p1=1;var t,e=L$(),n=Qre(),r=Zre(),i=eie(),s=tie(),a=nie(),o=Nu(),l=rie(),c=iie(),u=sie(),f=aie(),d=oie(),h=lie(),p=cie(),m=fie(),g=Function,_=function(j){try{return g('"use strict"; return ('+j+").constructor;")()}catch{}},v=C$(),y=hie(),E=function(){throw new o},b=v?function(){try{return arguments.callee,E}catch{try{return v(arguments,"callee").get}catch{return E}}}():E,T=mie()(),S=Eie(),A=k$(),w=I$(),x=P$(),L=cw(),R={},k=typeof Uint8Array>"u"||!S?t:S(Uint8Array),F={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":T&&S?S([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":r,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":R,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&S?S(S([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!S?t:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":v,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":i,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!S?t:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&S?S(""[Symbol.iterator]()):t,"%Symbol%":T?Symbol:t,"%SyntaxError%":a,"%ThrowTypeError%":b,"%TypedArray%":k,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":x,"%Object.defineProperty%":y,"%Object.getPrototypeOf%":A,"%Math.abs%":c,"%Math.floor%":u,"%Math.max%":f,"%Math.min%":d,"%Math.pow%":h,"%Math.round%":p,"%Math.sign%":m,"%Reflect.getPrototypeOf%":w};if(S)try{null.error}catch(j){var U=S(S(j));F["%Error.prototype%"]=U}var H=function j(V){var W;if(V==="%AsyncFunction%")W=_("async function () {}");else if(V==="%GeneratorFunction%")W=_("function* () {}");else if(V==="%AsyncGeneratorFunction%")W=_("async function* () {}");else if(V==="%AsyncGenerator%"){var Y=j("%AsyncGeneratorFunction%");Y&&(W=Y.prototype)}else if(V==="%AsyncIteratorPrototype%"){var C=j("%AsyncGenerator%");C&&S&&(W=S(C.prototype))}return F[V]=W,W},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=ry(),q=bie(),P=O.call(L,Array.prototype.concat),ae=O.call(x,Array.prototype.splice),ce=O.call(L,String.prototype.replace),ye=O.call(L,String.prototype.slice),ve=O.call(L,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,N=function(V){var W=ye(V,0,1),Y=ye(V,-1);if(W==="%"&&Y!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(Y==="%"&&W!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var C=[];return ce(V,z,function(D,K,ee,B){C[C.length]=ee?ce(B,G,"$1"):K||D}),C},$=function(V,W){var Y=V,C;if(q(M,Y)&&(C=M[Y],Y="%"+C[0]+"%"),q(F,Y)){var D=F[Y];if(D===R&&(D=H(Y)),typeof D>"u"&&!W)throw new o("intrinsic "+V+" exists, but is not available. Please file an issue!");return{alias:C,name:Y,value:D}}throw new a("intrinsic "+V+" does not exist!")};return e_=function(V,W){if(typeof V!="string"||V.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof W!="boolean")throw new o('"allowMissing" argument must be a boolean');if(ve(/^%?[^%]*%?$/,V)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Y=N(V),C=Y.length>0?Y[0]:"",D=$("%"+C+"%",W),K=D.name,ee=D.value,B=!1,ie=D.alias;ie&&(C=ie[0],ae(Y,P([0,1],ie)));for(var fe=1,ue=!0;fe<Y.length;fe+=1){var se=Y[fe],oe=ye(se,0,1),Ee=ye(se,-1);if((oe==='"'||oe==="'"||oe==="`"||Ee==='"'||Ee==="'"||Ee==="`")&&oe!==Ee)throw new a("property names with quotes must have matching quotes");if((se==="constructor"||!ue)&&(B=!0),C+="."+se,K="%"+C+"%",q(F,K))ee=F[K];else if(ee!=null){if(!(se in ee)){if(!W)throw new o("base intrinsic for "+V+" exists, but the property is not available.");return}if(v&&fe+1>=Y.length){var he=v(ee,se);ue=!!he,ue&&"get"in he&&!("originalValue"in he.get)?ee=he.get:ee=ee[se]}else ue=q(ee,se),ee=ee[se];ue&&!B&&(F[K]=ee)}}return ee},e_}var t_,m1;function O$(){if(m1)return t_;m1=1;var t=uw(),e=D$(),n=e([t("%String.prototype.indexOf%")]);return t_=function(i,s){var a=t(i,!!s);return typeof a=="function"&&n(i,".prototype.")>-1?e([a]):a},t_}var n_,g1;function M$(){if(g1)return n_;g1=1;var t=uw(),e=O$(),n=ny(),r=Nu(),i=t("%Map%",!0),s=e("Map.prototype.get",!0),a=e("Map.prototype.set",!0),o=e("Map.prototype.has",!0),l=e("Map.prototype.delete",!0),c=e("Map.prototype.size",!0);return n_=!!i&&function(){var f,d={assert:function(h){if(!d.has(h))throw new r("Side channel does not contain "+n(h))},delete:function(h){if(f){var p=l(f,h);return c(f)===0&&(f=void 0),p}return!1},get:function(h){if(f)return s(f,h)},has:function(h){return f?o(f,h):!1},set:function(h,p){f||(f=new i),a(f,h,p)}};return d},n_}var r_,y1;function Tie(){if(y1)return r_;y1=1;var t=uw(),e=O$(),n=ny(),r=M$(),i=Nu(),s=t("%WeakMap%",!0),a=e("WeakMap.prototype.get",!0),o=e("WeakMap.prototype.set",!0),l=e("WeakMap.prototype.has",!0),c=e("WeakMap.prototype.delete",!0);return r_=s?function(){var f,d,h={assert:function(p){if(!h.has(p))throw new i("Side channel does not contain "+n(p))},delete:function(p){if(s&&p&&(typeof p=="object"||typeof p=="function")){if(f)return c(f,p)}else if(r&&d)return d.delete(p);return!1},get:function(p){return s&&p&&(typeof p=="object"||typeof p=="function")&&f?a(f,p):d&&d.get(p)},has:function(p){return s&&p&&(typeof p=="object"||typeof p=="function")&&f?l(f,p):!!d&&d.has(p)},set:function(p,m){s&&p&&(typeof p=="object"||typeof p=="function")?(f||(f=new s),o(f,p,m)):r&&(d||(d=r()),d.set(p,m))}};return h}:r,r_}var i_,v1;function Sie(){if(v1)return i_;v1=1;var t=Nu(),e=ny(),n=Jre(),r=M$(),i=Tie(),s=i||r||n;return i_=function(){var o,l={assert:function(c){if(!l.has(c))throw new t("Side channel does not contain "+e(c))},delete:function(c){return!!o&&o.delete(c)},get:function(c){return o&&o.get(c)},has:function(c){return!!o&&o.has(c)},set:function(c,u){o||(o=s()),o.set(c,u)}};return l},i_}var s_,_1;function fw(){if(_1)return s_;_1=1;var t=String.prototype.replace,e=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return s_={default:n.RFC3986,formatters:{RFC1738:function(r){return t.call(r,e,"+")},RFC3986:function(r){return String(r)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},s_}var a_,E1;function N$(){if(E1)return a_;E1=1;var t=fw(),e=Object.prototype.hasOwnProperty,n=Array.isArray,r=function(){for(var g=[],_=0;_<256;++_)g.push("%"+((_<16?"0":"")+_.toString(16)).toUpperCase());return g}(),i=function(_){for(;_.length>1;){var v=_.pop(),y=v.obj[v.prop];if(n(y)){for(var E=[],b=0;b<y.length;++b)typeof y[b]<"u"&&E.push(y[b]);v.obj[v.prop]=E}}},s=function(_,v){for(var y=v&&v.plainObjects?{__proto__:null}:{},E=0;E<_.length;++E)typeof _[E]<"u"&&(y[E]=_[E]);return y},a=function g(_,v,y){if(!v)return _;if(typeof v!="object"&&typeof v!="function"){if(n(_))_.push(v);else if(_&&typeof _=="object")(y&&(y.plainObjects||y.allowPrototypes)||!e.call(Object.prototype,v))&&(_[v]=!0);else return[_,v];return _}if(!_||typeof _!="object")return[_].concat(v);var E=_;return n(_)&&!n(v)&&(E=s(_,y)),n(_)&&n(v)?(v.forEach(function(b,T){if(e.call(_,T)){var S=_[T];S&&typeof S=="object"&&b&&typeof b=="object"?_[T]=g(S,b,y):_.push(b)}else _[T]=b}),_):Object.keys(v).reduce(function(b,T){var S=v[T];return e.call(b,T)?b[T]=g(b[T],S,y):b[T]=S,b},E)},o=function(_,v){return Object.keys(v).reduce(function(y,E){return y[E]=v[E],y},_)},l=function(g,_,v){var y=g.replace(/\+/g," ");if(v==="iso-8859-1")return y.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(y)}catch{return y}},c=1024,u=function(_,v,y,E,b){if(_.length===0)return _;var T=_;if(typeof _=="symbol"?T=Symbol.prototype.toString.call(_):typeof _!="string"&&(T=String(_)),y==="iso-8859-1")return escape(T).replace(/%u[0-9a-f]{4}/gi,function(k){return"%26%23"+parseInt(k.slice(2),16)+"%3B"});for(var S="",A=0;A<T.length;A+=c){for(var w=T.length>=c?T.slice(A,A+c):T,x=[],L=0;L<w.length;++L){var R=w.charCodeAt(L);if(R===45||R===46||R===95||R===126||R>=48&&R<=57||R>=65&&R<=90||R>=97&&R<=122||b===t.RFC1738&&(R===40||R===41)){x[x.length]=w.charAt(L);continue}if(R<128){x[x.length]=r[R];continue}if(R<2048){x[x.length]=r[192|R>>6]+r[128|R&63];continue}if(R<55296||R>=57344){x[x.length]=r[224|R>>12]+r[128|R>>6&63]+r[128|R&63];continue}L+=1,R=65536+((R&1023)<<10|w.charCodeAt(L)&1023),x[x.length]=r[240|R>>18]+r[128|R>>12&63]+r[128|R>>6&63]+r[128|R&63]}S+=x.join("")}return S},f=function(_){for(var v=[{obj:{o:_},prop:"o"}],y=[],E=0;E<v.length;++E)for(var b=v[E],T=b.obj[b.prop],S=Object.keys(T),A=0;A<S.length;++A){var w=S[A],x=T[w];typeof x=="object"&&x!==null&&y.indexOf(x)===-1&&(v.push({obj:T,prop:w}),y.push(x))}return i(v),_},d=function(_){return Object.prototype.toString.call(_)==="[object RegExp]"},h=function(_){return!_||typeof _!="object"?!1:!!(_.constructor&&_.constructor.isBuffer&&_.constructor.isBuffer(_))},p=function(_,v){return[].concat(_,v)},m=function(_,v){if(n(_)){for(var y=[],E=0;E<_.length;E+=1)y.push(v(_[E]));return y}return v(_)};return a_={arrayToObject:s,assign:o,combine:p,compact:f,decode:l,encode:u,isBuffer:h,isRegExp:d,maybeMap:m,merge:a},a_}var o_,b1;function wie(){if(b1)return o_;b1=1;var t=Sie(),e=N$(),n=fw(),r=Object.prototype.hasOwnProperty,i={brackets:function(g){return g+"[]"},comma:"comma",indices:function(g,_){return g+"["+_+"]"},repeat:function(g){return g}},s=Array.isArray,a=Array.prototype.push,o=function(m,g){a.apply(m,s(g)?g:[g])},l=Date.prototype.toISOString,c=n.default,u={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:c,formatter:n.formatters[c],indices:!1,serializeDate:function(g){return l.call(g)},skipNulls:!1,strictNullHandling:!1},f=function(g){return typeof g=="string"||typeof g=="number"||typeof g=="boolean"||typeof g=="symbol"||typeof g=="bigint"},d={},h=function m(g,_,v,y,E,b,T,S,A,w,x,L,R,k,F,U,H,M){for(var O=g,q=M,P=0,ae=!1;(q=q.get(d))!==void 0&&!ae;){var ce=q.get(g);if(P+=1,typeof ce<"u"){if(ce===P)throw new RangeError("Cyclic object value");ae=!0}typeof q.get(d)>"u"&&(P=0)}if(typeof w=="function"?O=w(_,O):O instanceof Date?O=R(O):v==="comma"&&s(O)&&(O=e.maybeMap(O,function(K){return K instanceof Date?R(K):K})),O===null){if(b)return A&&!U?A(_,u.encoder,H,"key",k):_;O=""}if(f(O)||e.isBuffer(O)){if(A){var ye=U?_:A(_,u.encoder,H,"key",k);return[F(ye)+"="+F(A(O,u.encoder,H,"value",k))]}return[F(_)+"="+F(String(O))]}var ve=[];if(typeof O>"u")return ve;var z;if(v==="comma"&&s(O))U&&A&&(O=e.maybeMap(O,A)),z=[{value:O.length>0?O.join(",")||null:void 0}];else if(s(w))z=w;else{var G=Object.keys(O);z=x?G.sort(x):G}var N=S?String(_).replace(/\./g,"%2E"):String(_),$=y&&s(O)&&O.length===1?N+"[]":N;if(E&&s(O)&&O.length===0)return $+"[]";for(var j=0;j<z.length;++j){var V=z[j],W=typeof V=="object"&&V&&typeof V.value<"u"?V.value:O[V];if(!(T&&W===null)){var Y=L&&S?String(V).replace(/\./g,"%2E"):String(V),C=s(O)?typeof v=="function"?v($,Y):$:$+(L?"."+Y:"["+Y+"]");M.set(g,P);var D=t();D.set(d,M),o(ve,m(W,C,v,y,E,b,T,S,v==="comma"&&U&&s(O)?null:A,w,x,L,R,k,F,U,H,D))}}return ve},p=function(g){if(!g)return u;if(typeof g.allowEmptyArrays<"u"&&typeof g.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof g.encodeDotInKeys<"u"&&typeof g.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(g.encoder!==null&&typeof g.encoder<"u"&&typeof g.encoder!="function")throw new TypeError("Encoder has to be a function.");var _=g.charset||u.charset;if(typeof g.charset<"u"&&g.charset!=="utf-8"&&g.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var v=n.default;if(typeof g.format<"u"){if(!r.call(n.formatters,g.format))throw new TypeError("Unknown format option provided.");v=g.format}var y=n.formatters[v],E=u.filter;(typeof g.filter=="function"||s(g.filter))&&(E=g.filter);var b;if(g.arrayFormat in i?b=g.arrayFormat:"indices"in g?b=g.indices?"indices":"repeat":b=u.arrayFormat,"commaRoundTrip"in g&&typeof g.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var T=typeof g.allowDots>"u"?g.encodeDotInKeys===!0?!0:u.allowDots:!!g.allowDots;return{addQueryPrefix:typeof g.addQueryPrefix=="boolean"?g.addQueryPrefix:u.addQueryPrefix,allowDots:T,allowEmptyArrays:typeof g.allowEmptyArrays=="boolean"?!!g.allowEmptyArrays:u.allowEmptyArrays,arrayFormat:b,charset
221:_,charsetSentinel:typeof g.charsetSentinel=="boolean"?g.charsetSentinel:u.charsetSentinel,commaRoundTrip:!!g.commaRoundTrip,delimiter:typeof g.delimiter>"u"?u.delimiter:g.delimiter,encode:typeof g.encode=="boolean"?g.encode:u.encode,encodeDotInKeys:typeof g.encodeDotInKeys=="boolean"?g.encodeDotInKeys:u.encodeDotInKeys,encoder:typeof g.encoder=="function"?g.encoder:u.encoder,encodeValuesOnly:typeof g.encodeValuesOnly=="boolean"?g.encodeValuesOnly:u.encodeValuesOnly,filter:E,format:v,formatter:y,serializeDate:typeof g.serializeDate=="function"?g.serializeDate:u.serializeDate,skipNulls:typeof g.skipNulls=="boolean"?g.skipNulls:u.skipNulls,sort:typeof g.sort=="function"?g.sort:null,strictNullHandling:typeof g.strictNullHandling=="boolean"?g.strictNullHandling:u.strictNullHandling}};return o_=function(m,g){var _=m,v=p(g),y,E;typeof v.filter=="function"?(E=v.filter,_=E("",_)):s(v.filter)&&(E=v.filter,y=E);var b=[];if(typeof _!="object"||_===null)return"";var T=i[v.arrayFormat],S=T==="comma"&&v.commaRoundTrip;y||(y=Object.keys(_)),v.sort&&y.sort(v.sort);for(var A=t(),w=0;w<y.length;++w){var x=y[w],L=_[x];v.skipNulls&&L===null||o(b,h(L,x,T,S,v.allowEmptyArrays,v.strictNullHandling,v.skipNulls,v.encodeDotInKeys,v.encode?v.encoder:null,v.filter,v.sort,v.allowDots,v.serializeDate,v.format,v.formatter,v.encodeValuesOnly,v.charset,A))}var R=b.join(v.delimiter),k=v.addQueryPrefix===!0?"?":"";return v.charsetSentinel&&(v.charset==="iso-8859-1"?k+="utf8=%26%2310003%3B&":k+="utf8=%E2%9C%93&"),R.length>0?k+R:""},o_}var l_,T1;function xie(){if(T1)return l_;T1=1;var t=N$(),e=Object.prototype.hasOwnProperty,n=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(d){return d.replace(/&#(\d+);/g,function(h,p){return String.fromCharCode(parseInt(p,10))})},s=function(d,h,p){if(d&&typeof d=="string"&&h.comma&&d.indexOf(",")>-1)return d.split(",");if(h.throwOnLimitExceeded&&p>=h.arrayLimit)throw new RangeError("Array limit exceeded. Only "+h.arrayLimit+" element"+(h.arrayLimit===1?"":"s")+" allowed in an array.");return d},a="utf8=%26%2310003%3B",o="utf8=%E2%9C%93",l=function(h,p){var m={__proto__:null},g=p.ignoreQueryPrefix?h.replace(/^\?/,""):h;g=g.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var _=p.parameterLimit===1/0?void 0:p.parameterLimit,v=g.split(p.delimiter,p.throwOnLimitExceeded?_+1:_);if(p.throwOnLimitExceeded&&v.length>_)throw new RangeError("Parameter limit exceeded. Only "+_+" parameter"+(_===1?"":"s")+" allowed.");var y=-1,E,b=p.charset;if(p.charsetSentinel)for(E=0;E<v.length;++E)v[E].indexOf("utf8=")===0&&(v[E]===o?b="utf-8":v[E]===a&&(b="iso-8859-1"),y=E,E=v.length);for(E=0;E<v.length;++E)if(E!==y){var T=v[E],S=T.indexOf("]="),A=S===-1?T.indexOf("="):S+1,w,x;A===-1?(w=p.decoder(T,r.decoder,b,"key"),x=p.strictNullHandling?null:""):(w=p.decoder(T.slice(0,A),r.decoder,b,"key"),x=t.maybeMap(s(T.slice(A+1),p,n(m[w])?m[w].length:0),function(R){return p.decoder(R,r.decoder,b,"value")})),x&&p.interpretNumericEntities&&b==="iso-8859-1"&&(x=i(String(x))),T.indexOf("[]=")>-1&&(x=n(x)?[x]:x);var L=e.call(m,w);L&&p.duplicates==="combine"?m[w]=t.combine(m[w],x):(!L||p.duplicates==="last")&&(m[w]=x)}return m},c=function(d,h,p,m){var g=0;if(d.length>0&&d[d.length-1]==="[]"){var _=d.slice(0,-1).join("");g=Array.isArray(h)&&h[_]?h[_].length:0}for(var v=m?h:s(h,p,g),y=d.length-1;y>=0;--y){var E,b=d[y];if(b==="[]"&&p.parseArrays)E=p.allowEmptyArrays&&(v===""||p.strictNullHandling&&v===null)?[]:t.combine([],v);else{E=p.plainObjects?{__proto__:null}:{};var T=b.charAt(0)==="["&&b.charAt(b.length-1)==="]"?b.slice(1,-1):b,S=p.decodeDotInKeys?T.replace(/%2E/g,"."):T,A=parseInt(S,10);!p.parseArrays&&S===""?E={0:v}:!isNaN(A)&&b!==S&&String(A)===S&&A>=0&&p.parseArrays&&A<=p.arrayLimit?(E=[],E[A]=v):S!=="__proto__"&&(E[S]=v)}v=E}return v},u=function(h,p,m,g){if(h){var _=m.allowDots?h.replace(/\.([^.[]+)/g,"[$1]"):h,v=/(\[[^[\]]*])/,y=/(\[[^[\]]*])/g,E=m.depth>0&&v.exec(_),b=E?_.slice(0,E.index):_,T=[];if(b){if(!m.plainObjects&&e.call(Object.prototype,b)&&!m.allowPrototypes)return;T.push(b)}for(var S=0;m.depth>0&&(E=y.exec(_))!==null&&S<m.depth;){if(S+=1,!m.plainObjects&&e.call(Object.prototype,E[1].slice(1,-1))&&!m.allowPrototypes)return;T.push(E[1])}if(E){if(m.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+m.depth+" and strictDepth is true");T.push("["+_.slice(E.index)+"]")}return c(T,p,m,g)}},f=function(h){if(!h)return r;if(typeof h.allowEmptyArrays<"u"&&typeof h.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
221if(typeof h.decodeDotInKeys<"u"&&typeof h.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(h.decoder!==null&&typeof h.decoder<"u"&&typeof h.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof h.charset<"u"&&h.charset!=="utf-8"&&h.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof h.throwOnLimitExceeded<"u"&&typeof h.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var p=typeof h.charset>"u"?r.charset:h.charset,m=typeof h.duplicates>"u"?r.duplicates:h.duplicates;if(m!=="combine"&&m!=="first"&&m!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var g=typeof h.allowDots>"u"?h.decodeDotInKeys===!0?!0:r.allowDots:!!h.allowDots;return{allowDots:g,allowEmptyArrays:typeof h.allowEmptyArrays=="boolean"?!!h.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:typeof h.allowPrototypes=="boolean"?h.allowPrototypes:r.allowPrototypes,allowSparse:typeof h.allowSparse=="boolean"?h.allowSparse:r.allowSparse,arrayLimit:typeof h.arrayLimit=="number"?h.arrayLimit:r.arrayLimit,charset:p,charsetSentinel:typeof h.charsetSentinel=="boolean"?h.charsetSentinel:r.charsetSentinel,comma:typeof h.comma=="boolean"?h.comma:r.comma,decodeDotInKeys:typeof h.decodeDotInKeys=="boolean"?h.decodeDotInKeys:r.decodeDotInKeys,decoder:typeof h.decoder=="function"?h.decoder:r.decoder,delimiter:typeof h.delimiter=="string"||t.isRegExp(h.delimiter)?h.delimiter:r.delimiter,depth:typeof h.depth=="number"||h.depth===!1?+h.depth:r.depth,duplicates:m,ignoreQueryPrefix:h.ignoreQueryPrefix===!0,interpretNumericEntities:typeof h.interpretNumericEntities=="boolean"?h.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:typeof h.parameterLimit=="number"?h.parameterLimit:r.parameterLimit,parseArrays:h.parseArrays!==!1,plainObjects:typeof h.plainObjects=="boolean"?h.plainObjects:r.plainObjects,strictDepth:typeof h.strictDepth=="boolean"?!!h.strictDepth:r.strictDepth,strictNullHandling:typeof h.strictNullHandling=="boolean"?h.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:typeof h.throwOnLimitExceeded=="boolean"?h.throwOnLimitExceeded:!1}};return l_=function(d,h){var p=f(h);if(d===""||d===null||typeof d>"u")return p.plainObjects?{__proto__:null}:{};for(var m=typeof d=="string"?l(d,p):d,g=p.plainObjects?{__proto__:null}:{},_=Object.keys(m),v=0;v<_.length;++v){var y=_[v],E=u(y,m[y],p,typeof d=="string");g=t.merge(g,E,p)}return p.allowSparse===!0?g:t.compact(g)},l_}var c_,S1;function Aie(){if(S1)return c_;S1=1;var t=wie(),e=xie(),n=fw();return c_={formats:n,parse:e,stringify:t},c_}var Rie=Aie();const Lie=bu(Rie);function Cie(t,e){t.interceptors.request.use(function(n){return e().then(r=>(n.headers.set("Authorization",`Bearer ${r}`),n))})}var u_={exports:{}},w1;function Iie(){if(w1)return u_.exports;w1=1;var t=u_.exports={},e,n;function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=r}catch{e=r}try{typeof clearTimeout=="function"?n=clearTimeout:n=i}catch{n=i}})();function s(m){if(e===setTimeout)return setTimeout(m,0);if((e===r||!e)&&setTimeout)return e=setTimeout,setTimeout(m,0);try{return e(m,0)}catch{try{return e.call(null,m,0)}catch{return e.call(this,m,0)}}}function a(m){if(n===clearTimeout)return clearTimeout(m);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(m);try{return n(m)}catch{try{return n.call(null,m)}catch{return n.call(this,m)}}}var o=[],l=!1,c,u=-1;function f(){!l||!c||(l=!1,c.length?o=c.concat(o):u=-1,o.length&&d())}function d(){if(!l){var m=s(f);l=!0;for(var g=o.length;g;){for(c=o,o=[];++u<g;)c&&c[u].run();u=-1,g=o.length}c=null,l=!1,a(m)}}t.nextTick=function(m){var g=new Array(arguments.length-1);if(arguments.length>1)for(var _=1;_<arguments.length;_++)g[_-1]=arguments[_];o.push(new h(m,g)),o.length===1&&!l&&s(d)};function h(m,g){this.fun=m,this.array=g}h.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={};function p(){}return t.on=p,t.addListener=p,t.once=p,t.off=p,t.removeListener=p,t.removeAllListeners=p,t.emit=p,t.prependListener=p,t.prependOnceListener=p,t.listeners=function(m){return[]},t.binding=function(m){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(m){throw new Error("process.chdir is not supported")},t.umask=function(){return 0},u_.exports}var kie=Iie();const qa=bu(kie);function Pie(){return typeof qa<"u"&&!qa.browser}function Die(){return typeof window<"u"&&"navigator"in window&&"product"in window.navigator&&window.navigator.product==="ReactNative"}function Oie(){return qa.versions&&qa.versions.node?`v${qa.versions.node}`:qa.version}function Mie(){return window}
221function Jb(){}const Nie=t=>new Promise(e=>{setTimeout(e,t)}),Fie=t=>Math.pow(Math.SQRT2,t);function $ie(t,e=5){const{responseLogger:n=Jb,requestLogger:r=Jb}=t.defaults;t.interceptors.request.use(function(i){return r(i),i},function(i){return r(i),Promise.reject(i)}),t.interceptors.response.use(function(i){return n(i),i},async function(i){const{response:s}=i,{config:a}=i;if(n(i),!a||!t.defaults.retryOnError)return Promise.reject(i);const o=a.attempts||1;if(o>e)return i.attempts=a.attempts,Promise.reject(i);let l=null,c=Fie(o);return s?s.status>=500&&s.status<600?l=`Server ${s.status}`:s.status===429&&(l="Rate limit",s.headers&&i.response.headers["x-contentful-ratelimit-reset"]&&(c=s.headers["x-contentful-ratelimit-reset"])):l="Connection",l?(c=Math.floor(c*1e3+Math.random()*200+500),t.defaults.logHandler("warning",`${l} error occurred. Waiting for ${c} ms before retrying...`),a.attempts=o+1,delete a.httpAgent,delete a.httpsAgent,Nie(c).then(()=>t(a))):Promise.reject(i)})}var f_,x1;function Bie(){if(x1)return f_;x1=1;var t=typeof vc=="object"&&vc&&vc.Object===Object&&vc;return f_=t,f_}var d_,A1;function Uie(){if(A1)return d_;A1=1;var t=Bie(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return d_=n,d_}var h_,R1;function F$(){if(R1)return h_;R1=1;var t=Uie(),e=t.Symbol;return h_=e,h_}var p_,L1;function Hie(){if(L1)return p_;L1=1;var t=F$(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,i=t?t.toStringTag:void 0;function s(a){var o=n.call(a,i),l=a[i];try{a[i]=void 0;var c=!0}catch{}var u=r.call(a);return c&&(o?a[i]=l:delete a[i]),u}return p_=s,p_}var m_,C1;function Gie(){if(C1)return m_;C1=1;var t=Object.prototype,e=t.toString;function n(r){return e.call(r)}return m_=n,m_}var g_,I1;function $$(){if(I1)return g_;I1=1;var t=F$(),e=Hie(),n=Gie(),r="[object Null]",i="[object Undefined]",s=t?t.toStringTag:void 0;function a(o){return o==null?o===void 0?i:r:s&&s in Object(o)?e(o):n(o)}return g_=a,g_}var y_,k1;function jie(){if(k1)return y_;k1=1;var t=Array.isArray;return y_=t,y_}var v_,P1;function B$(){if(P1)return v_;P1=1;function t(e){return e!=null&&typeof e=="object"}return v_=t,v_}var __,D1;function Vie(){if(D1)return __;D1=1;var t=$$(),e=jie(),n=B$(),r="[object String]";function i(s){return typeof s=="string"||!e(s)&&n(s)&&t(s)==r}return __=i,__}var qie=Vie();const O1=bu(qie);class Kie extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}}function Wie({limit:t,interval:e,strict:n,onDelay:r}){if(!Number.isFinite(t))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(e))throw new TypeError("Expected `interval` to be a finite number");const i=new Map;let s=0,a=0;function o(){const f=Date.now();return f-s>e?(a=1,s=f,0):(a<t?a++:(s+=e,a=1),s-f)}const l=[];function c(){const f=Date.now();if(l.length>0&&f-l.at(-1)>e&&(l.length=0),l.length<t)return l.push(f),0;const d=l[0]+e;return l.shift(),l.push(d),Math.max(0,d-f)}const u=n?c:o;return f=>{const d=function(...h){if(!d.isEnabled)return(async()=>f.apply(this,h))();let p;return new Promise((m,g)=>{const _=()=>{m(f.apply(this,h)),i.delete(p)},v=u();v>0?(p=setTimeout(_,v),i.set(p,g),r==null||r(...h)):_()})};return d.abort=()=>{for(const h of i.keys())clearTimeout(h),i.get(h)(new Kie);i.clear(),l.splice(0,l.length)},d.isEnabled=!0,Object.defineProperty(d,"queueSize",{get(){return i.size}}),d}}const Qb=/(?<value>\d+)(%)/;function E_(t,e=7){var r;let n=e;if(Qb.test(t)){const i=(r=t.match(Qb))==null?void 0:r.groups;if(i&&i.value){const s=parseInt(i.value)/100;n=Math.round(e*s)}}return Math.min(30,Math.max(1,n))}function M1(t,e){return e("info",`Throttle request to ${t}/s`),Wie({limit:t,interval:1e3,strict:!1})}const zie=(t,e="auto")=>{const{logHandler:n=Jb}=t.defaults;let r=O1(e)?E_(e):E_("auto",e),i=M1(r,n),s=!1,a=t.interceptors.request.use(l=>i(()=>l)(),function(l){return Promise.reject(l)});const o=t.interceptors.response.use(l=>{if(!s&&O1(e)&&(e==="auto"||Qb.test(e))&&l.headers&&l.headers["x-contentful-ratelimit-second-limit"]){const c=parseInt(l.headers["x-contentful-ratelimit-second-limit"]),u=E_(e,c);u!==r&&(a&&t.interceptors.request.eject(a),r=u,i=M1(u,n),a=t.interceptors.request.use(f=>i(()=>f)(),function(f){return Promise.reject(f)})),s=!0}return l},function(l){return Promise.reject(l)});return()=>{t.interceptors.request.eject(a),t.interceptors.response.eject(o)}},Yie=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function Xie(t){const e=lw(t);return e.httpAgent=t.httpAgent,e.httpsAgent=t.httpsAgent,e}function U$(t,e){const r={...{insecure:!1,retryOnError:!0,logHandler:(f,d)=>{if(f==="error"&&d){const h=[d.name,d.message].filter(p=>p).join(" - ");console.error(`[error] ${h}`),console.error(d);return}console.log(`[${f}] ${d}`)},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824},...e};if(!r.accessToken){const f=new TypeError("Expected parameter accessToken");throw r.logHandler("error",f),f}const i=r.insecure?"http":"https",s=r.space?`${r.space}/`:"";let a=r.defaultHostname,o=r.insecure?80:443;if(r.host&&Yie.test(r.host)){const f=r.host.split(":");f.length===2?[a,o]=f:a=f[0]}
221r.basePath&&(r.basePath=`/${r.basePath.split("/").filter(Boolean).join("/")}`);const l=e.baseURL||`${i}://${a}:${o}${r.basePath}/spaces/${s}`;!r.headers.Authorization&&typeof r.accessToken!="function"&&(r.headers.Authorization="Bearer "+r.accessToken);const c={baseURL:l,headers:r.headers,httpAgent:r.httpAgent,httpsAgent:r.httpsAgent,proxy:r.proxy,timeout:r.timeout,adapter:r.adapter,maxContentLength:r.maxContentLength,maxBodyLength:r.maxBodyLength,paramsSerializer:{serialize:f=>Lie.stringify(f)},logHandler:r.logHandler,responseLogger:r.responseLogger,requestLogger:r.requestLogger,retryOnError:r.retryOnError},u=t.create(c);return u.httpClientParams=e,u.cloneWithNewParams=function(f){return U$(t,{...Xie(e),...f})},r.onBeforeRequest&&u.interceptors.request.use(r.onBeforeRequest),typeof r.accessToken=="function"&&Cie(u,r.accessToken),r.throttle&&zie(u,r.throttle),$ie(u,r.retryLimit),r.onError&&u.interceptors.response.use(f=>f,r.onError),u}function ji({query:t}){const e={};return delete t.resolveLinks,e.params=lw(t),e}function H$(t){const e=Object.getOwnPropertyNames(t);for(const n of e){const r=t[n];r&&typeof r=="object"&&H$(r)}return Object.freeze(t)}function Jie(t){return H$(t.sys||{}),t}function N1(){const t=Mie();if(!t)return null;const e=t.navigator.userAgent,n=t.navigator.platform,r=["Macintosh","MacIntel","MacPPC","Mac68K"],i=["Win32","Win64","Windows","WinCE"],s=["iPhone","iPad","iPod"];return r.indexOf(n)!==-1?"macOS":s.indexOf(n)!==-1?"iOS":i.indexOf(n)!==-1?"Windows":/Android/.test(e)?"Android":/Linux/.test(n)?"Linux":null}function Qie(){const t=qa.platform||"linux",e=qa.version||"0.0.0",n={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return t in n?`${n[t]||"Linux"}/${e}`:null}function Zie(t,e,n,r){const i=[];e&&i.push(`app ${e}`),n&&i.push(`integration ${n}`),i.push(`sdk ${t}`);let s=null;try{Die()?(s=N1(),i.push("platform ReactNative")):Pie()?(s=Qie(),i.push(`platform node.js/${Oie()}`)):(s=N1(),i.push("platform browser"))}catch{s=null}return s&&i.push(`os ${s}`),`${i.filter(a=>a!=="").join("; ")};`}function G$(t){return Object.defineProperty(t,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return lw(this)}})}var b_,F1;function ese(){if(F1)return b_;F1=1;function t(e,n){return function(r){return e(n(r))}}return b_=t,b_}var T_,$1;function tse(){if($1)return T_;$1=1;var t=ese(),e=t(Object.getPrototypeOf,Object);return T_=e,T_}var S_,B1;function nse(){if(B1)return S_;B1=1;var t=$$(),e=tse(),n=B$(),r="[object Object]",i=Function.prototype,s=Object.prototype,a=i.toString,o=s.hasOwnProperty,l=a.call(Object);function c(u){if(!n(u)||t(u)!=r)return!1;var f=e(u);if(f===null)return!0;var d=o.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&a.call(d)==l}return S_=c,S_}var rse=nse();const w_=bu(rse);function $i(t){var o;const{config:e,response:n}=t;let r;if(e&&e.headers&&e.headers.Authorization){const l=`...${e.headers.Authorization.toString().substr(-5)}`;e.headers.Authorization=`Bearer ${l}`}if(!w_(n)||!w_(e))throw t;const i=n==null?void 0:n.data,s={status:n==null?void 0:n.status,statusText:n==null?void 0:n.statusText,message:"",details:{}};e&&w_(e)&&(s.request={url:e.url,headers:e.headers,method:e.method,payloadData:e.data}),i&&typeof i=="object"&&("requestId"in i&&(s.requestId=i.requestId||"UNKNOWN"),"message"in i&&(s.message=i.message||""),"details"in i&&(s.details=i.details||{}),r=(o=i.sys)==null?void 0:o.id);const a=new Error;a.name=r&&r!=="Unknown"?r:`${n==null?void 0:n.status} ${n==null?void 0:n.statusText}`;try{a.message=JSON.stringify(s,null," ")}catch{a.message=(s==null?void 0:s.message)??""}throw a}function ise(t){return function(n){return Object.assign({},t,n)}}var j$={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},dw={0:8203,1:8204,2:8205,3:65279},sse=new Array(4).fill(String.fromCodePoint(dw[0])).join("");function ase(t){let e=JSON.stringify(t);return`${sse}${Array.from(e).map(n=>{let r=n.charCodeAt(0);if(r>255)throw new Error(`Only ASCII edit info can be encoded. Error attempting to encode ${e} on character ${n} (${r})`);return Array.from(r.toString(4).padStart(4,"0")).map(i=>String.fromCodePoint(dw[i])).join("")}).join("")}`}function ose(t){return!Number.isNaN(Number(t))||/[a-z]/i.test(t)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(t)?!1:!!Date.parse(t)}function lse(t){try{new URL(t,t.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}function cse(t,e,n="auto"){return n===!0||n==="auto"&&(ose(t)||lse(t))?t:`${t}${ase(e)}`}Object.fromEntries(Object.entries(dw).map(t=>t.reverse()));Object.fromEntries(Object.entries(j$).map(t=>t.reverse()));`${Object.values(j$).map(t=>`\\u{${t.toString(16)}}`).join("")}`;function ed(t,e){return cse(t,e)}var x_,U1;
221function use(){if(U1)return x_;U1=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString;return x_=function(n,r,i){if(e.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");var s=n.length;if(s===+s)for(var a=0;a<s;a++)r.call(i,n[a],a,n);else for(var o in n)t.call(n,o)&&r.call(i,n[o],o,n)},x_}var A_,H1;function fse(){if(H1)return A_;H1=1;var t=use();A_=e;function e(n,r,i){if(arguments.length===3)return e.set(n,r,i);if(arguments.length===2)return e.get(n,r);var s=e.bind(e,n);for(var a in e)e.hasOwnProperty(a)&&(s[a]=e[a].bind(s,n));return s}return e.get=function(n,r){for(var i=Array.isArray(r)?r:e.parse(r),s=0;s<i.length;++s){var a=i[s];if(!(typeof n=="object"&&a in n))throw new Error("Invalid reference token: "+a);n=n[a]}return n},e.set=function(n,r,i){var s=Array.isArray(r)?r:e.parse(r),a=s[0];if(s.length===0)throw Error("Can not set the root object");for(var o=0;o<s.length-1;++o){var l=s[o];typeof l!="string"&&typeof l!="number"&&(l=String(l)),!(l==="__proto__"||l==="constructor"||l==="prototype")&&(l==="-"&&Array.isArray(n)&&(l=n.length),a=s[o+1],l in n||(a.match(/^(\d+|-)$/)?n[l]=[]:n[l]={}),n=n[l])}return a==="-"&&Array.isArray(n)&&(a=n.length),n[a]=i,this},e.remove=function(n,r){var i=Array.isArray(r)?r:e.parse(r),s=i[i.length-1];if(s===void 0)throw new Error('Invalid JSON pointer for remove: "'+r+'"');var a=e.get(n,i.slice(0,-1));if(Array.isArray(a)){var o=+s;if(s===""&&isNaN(o))throw new Error('Invalid array index: "'+s+'"');Array.prototype.splice.call(a,o,1)}else delete a[s]},e.dict=function(n,r){var i={};return e.walk(n,function(s,a){i[a]=s},r),i},e.walk=function(n,r,i){var s=[];i=i||function(a){var o=Object.prototype.toString.call(a);return o==="[object Object]"||o==="[object Array]"},function a(o){t(o,function(l,c){s.push(String(c)),i(l)?a(l):r(l,e.compile(s)),s.pop()})}(n)},e.has=function(n,r){try{e.get(n,r)}catch{return!1}return!0},e.escape=function(n){return n.toString().replace(/~/g,"~0").replace(/\//g,"~1")},e.unescape=function(n){return n.replace(/~1/g,"/").replace(/~0/g,"~")},e.parse=function(n){if(n==="")return[];if(n.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+n);return n.substring(1).split(/\//).map(e.unescape)},e.compile=function(n){return n.length===0?"":"/"+n.map(e.escape).join("/")},A_}var ws=fse();const dse=({pointer:t,mappings:e,data:n,hiddenStrings:r})=>{const i=e[t];if(i){delete e[t];const s=Zb(n,t);for(const a of s){e[a]=i;const o=ws.get(n,a),l=ed(o,r);ws.set(n,a,l)}}else{const s=Zb(n,t);for(const a of s){const o=ws.get(n,a),l=ed(o,r);ws.set(n,a,l)}}},Zb=(t,e="")=>{const n=[],r=ws.get(t,e);if(r.content)for(let i=0;i<r.content.length;i++)r.content[i].nodeType==="text"?n.push(`${e}/content/${i}/value`):n.push(...Zb(t,`${e}/content/${i}`));return n},G1=({entityId:t,entityType:e,space:n,environment:r,field:i,locale:s,editorInterface:a,fieldType:o,targetOrigin:l,platform:c})=>{const u={origin:"contentful.com",href:`${`${l||"https://app.contentful.com"}/spaces/${n}/environments/${r}`}/${e==="Entry"?"entries":"assets"}/${t}/?focusedField=${i}&focusedLocale=${s}&source=vercel-content-link`,contentful:{editorInterface:a,fieldType:o}};return c==="vercel"&&delete u.contentful,u},hse=t=>["builtin","sidebar-builtin","editor-builtin"].includes(t),pse=t=>gse.includes(t);function mse(t){if(typeof structuredClone=="function")return structuredClone(t);try{return JSON.parse(JSON.stringify(t))}catch(e){return console.warn("Failed to clone data:",t,e),t}}const gse=["singleLine","tagEditor","listInput","checkbox","richTextEditor","multipleLine"];function j1(t,e,n,r,i,s,a){const o=a?e[a]:e;switch(t){case"Symbol":{const l=ed(o,n);ws.set(r,i,l);break}case"Text":{const l=ed(o,n);ws.set(r,i,l);break}case"RichText":{dse({pointer:"",mappings:s,data:o,hiddenStrings:n});break}case"Array":{const l=o.map(c=>typeof c=="string"?ed(c,n):c);ws.set(r,i,l);break}}}const Kh=(t,e,n,r,i)=>{if(!t.fields)return;const{contentSourceMaps:s}=t.sys;if(!s){console.error("Content source maps data is missing");return}const{mappings:a}=s;for(const o in a){const{source:l}=a[o],c=t.sys.space.sys.id,u=t.sys.environment.sys.id,f=t.sys.id,d=t.sys.type,h=e[l.fieldType],p=n[l.editorInterface];if(hse(p.widgetNamespace)&&!pse(p.widgetId))continue;const m=o.startsWith("/")?o:`/${o}`;if(ws.has(t,m)){const g=ws.get(t,m);if(g===null)return;const _=m.split("/").pop();if(!_){console.error("Field name could not be extracted from the pointer",m);return}const v=t.sys.locale;if(v){const y=G1({entityId:f,entityType:d,space:c,environment:u,field:_,locale:v,editorInterface:p,fieldType:h,targetOrigin:r,platform:i});j1(h,g,y,t,m,a)}else Object.keys(g).forEach(y=>{const E=G1({entityId:f,entityType:d,space:c,environment:u,field:_,locale:y,editorInterface:p,fieldType:h,targetOrigin:r,platform:i});j1(h,g,E,t,`${m}/${y}`,a,y)})}}},yse=(t,e,n)=>{var r;const i=mse(t);if(i.sys&&"items"in i){const s=i;if(!((r=s.sys)!=null&&r.contentSourceMapsLookup))return console.error("Content source maps lookup data is missing"),s;const{contentSourceMapsLookup:{fieldTypes:a,editorInterfaces:o}}=s.sys,{items:l,includes:c}=s;l.forEach(u=>
221Kh(u,a,o,e,n)),c&&c.Entry&&c.Entry.forEach(u=>Kh(u,a,o,e,n)),c&&c.Asset&&c.Asset.forEach(u=>Kh(u,a,o,e,n))}else{const s=i;if(!s.sys.contentSourceMapsLookup)return console.error("Content source maps lookup data is missing"),s;Kh(s,s.sys.contentSourceMapsLookup.fieldTypes,s.sys.contentSourceMapsLookup.editorInterfaces,e,n)}return i};var vse=Function.prototype.toString,R_=Object.create,_se=Object.defineProperty,Ese=Object.getOwnPropertyDescriptor,V1=Object.getOwnPropertyNames,hw=Object.getOwnPropertySymbols,bse=Object.getPrototypeOf,V$=Object.prototype,Tse=V$.hasOwnProperty,Sse=V$.propertyIsEnumerable,q$=typeof hw=="function",wse=typeof WeakMap=="function",xse=function(){if(wse)return function(){return new WeakMap};var t=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(n){return!!~this._keys.indexOf(n)},e.prototype.get=function(n){return this._values[this._keys.indexOf(n)]},e.prototype.set=function(n,r){this._keys.push(n),this._values.push(r)},e}();return function(){return new t}}(),K$=function(t,e){var n=t.__proto__||bse(t);if(!n)return R_(null);var r=n.constructor;if(r===e.Object)return n===e.Object.prototype?{}:R_(n);if(~vse.call(r).indexOf("[native code]"))try{return new r}catch{}return R_(n)},Ase=function(t,e,n,r){var i=K$(t,e);r.set(t,i);for(var s in t)Tse.call(t,s)&&(i[s]=n(t[s],r));if(q$)for(var a=hw(t),o=0,l=a.length,c=void 0;o<l;++o)c=a[o],Sse.call(t,c)&&(i[c]=n(t[c],r));return i},q1=function(t,e,n,r){var i=K$(t,e);r.set(t,i);for(var s=q$?V1(t).concat(hw(t)):V1(t),a=0,o=s.length,l=void 0,c=void 0;a<o;++a)if(l=s[a],l!=="callee"&&l!=="caller")if(c=Ese(t,l),c){!c.get&&!c.set&&(c.value=n(t[l],r));try{_se(i,l,c)}catch{i[l]=c.value}}else i[l]=n(t[l],r);return i},Rse=function(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Lse=Array.isArray,Cse=Object.getPrototypeOf,Ise=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function kd(t,e){var n=!!(e&&e.isStrict),r=e&&e.realm||Ise,i=n?q1:Ase,s=function(a,o){if(!a||typeof a!="object")return a;
221if(o.has(a))return o.get(a);var l=a.__proto__||Cse(a),c=l&&l.constructor;if(!c||c===r.Object)return i(a,r,s,o);var u;if(Lse(a)){if(n)return q1(a,r,s,o);u=new c,o.set(a,u);for(var f=0,d=a.length;f<d;++f)u[f]=s(a[f],o);return u}if(a instanceof r.Date)return new c(a.getTime());if(a instanceof r.RegExp)return u=new c(a.source,a.flags||Rse(a)),u.lastIndex=a.lastIndex,u;if(r.Map&&a instanceof r.Map)return u=new c,o.set(a,u),a.forEach(function(h,p){u.set(p,s(h,o))}),u;if(r.Set&&a instanceof r.Set)return u=new c,o.set(a,u),a.forEach(function(h){u.add(s(h,o))}),u;if(r.Blob&&a instanceof r.Blob)return a.slice(0,a.size,a.type);if(r.Buffer&&r.Buffer.isBuffer(a))return u=r.Buffer.allocUnsafe?r.Buffer.allocUnsafe(a.length):new c(a.length),o.set(a,u),a.copy(u),u;if(r.ArrayBuffer){if(r.ArrayBuffer.isView(a))return u=new c(a.buffer.slice(0)),o.set(a,u),u;if(a instanceof r.ArrayBuffer)return u=a.slice(0),o.set(a,u),u}return typeof a.then=="function"||a instanceof Error||r.WeakMap&&a instanceof r.WeakMap||r.WeakSet&&a instanceof r.WeakSet?a:i(a,r,s,o)};return s(t,xse())}kd.default=kd;kd.strict=function(e,n){return kd(e,{isStrict:!0,realm:n?n.realm:void 0})};var kse=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pse=function(){function t(e,n){var r=[],i=!0,s=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(i=(l=o.next()).done)&&(r.push(l.value),!(n&&r.length===n));i=!0);}catch(c){s=!0,a=c}finally{try{!i&&o.return&&o.return()}finally{if(s)throw a}}return r}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function Qu(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}else return Array.from(t)}var Pd={},Dse=function(e){return e&&e.sys&&e.sys.type==="Link"},Ose=function(e){return e&&e.sys&&e.sys.type==="ResourceLink"},Mse=function(e){return e.space&&e.environment?[e.type+"!"+e.id,e.space.sys.id+"!"+e.environment.sys.id+"!"+e.type+"!"+e.id]:[e.type+"!"+e.id]},K1=function(e,n){var r=n.entryId,i=n.linkType,s=n.spaceId,a=n.environmentId;return s&&a?e.get(s+"!"+a+"!"+i+"!"+r):e.get(i+"!"+r)},Nse=function(e){var n=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(n.test(e)){var r=e.match(n),i=Pse(r,4);i[0];var s=i[1],a=i[2],o=a===void 0?"master":a,l=i[3];return{spaceId:s,environmentId:o,entryId:l}}},Fse=function(e,n){var r=n.sys,i=r.type,s=r.linkType;if(i==="ResourceLink"){if(!s.startsWith("Contentful:"))return n;var a=n.sys.urn,o=Nse(a),l=o.spaceId,c=o.environmentId,u=o.entryId,f=s.split(":")[1];return K1(e,{linkType:f,entryId:u,spaceId:l,environmentId:c})||Pd}var d=n.sys.id;return K1(e,{linkType:s,entryId:d})||Pd},$se=function(e){if(Array.isArray(e))return e.filter(function(r){return r!==Pd});for(var n in e)e[n]===Pd&&delete e[n];return e},Bse=function t(e,n,r,i){if(n(e))return r(e);if(e&&(typeof e>"u"?"undefined":kse(e))==="object"){for(var s in e)e.hasOwnProperty(s)&&(e[s]=t(e[s],n,r,i));i&&(e=$se(e))}return e},Use=function(e,n,r){var i=Fse(e,n);return i===Pd?r?i:n:i},Hse=function(e,n){if(!Array.isArray(n))return e;var r=Object.keys(e).filter(function(i){return n.indexOf(i)!==-1});return r.reduce(function(i,s){return i[s]=e[s],i},{})},W$=function(e,n){if(n=n||{},!e.items)return[];var r=kd(e),i=Object.keys(r.includes||{}).reduce(function(o,l){return[].concat(Qu(o),Qu(e.includes[l]))},[]),s=[].concat(Qu(r.items),Qu(i)).filter(function(o){return!!o.sys}),a=new Map(s.reduce(function(o,l){var c=Mse(l.sys).map(function(u){return[u,l]});return o.push.apply(o,Qu(c)),o},[]));return s.forEach(function(o){var l=Hse(o,n.itemEntryPoints);Object.assign(o,Bse(l,function(c){return Dse(c)||Ose(c)},function(c){return Use(a,c,n.removeUnresolved)},n.removeUnresolved))}),r.items},Wh={exports:{}},W1;function Gse(){return W1||(W1=1,function(t,e){e=t.exports=n,e.getSerialize=r;function n(i,s,a,o){return JSON.stringify(i,r(s,o),a)}function r(i,s){var a=[],o=[];return s==null&&(s=function(l,c){return a[0]===c?"[Circular ~]":"[Circular ~."+o.slice(0,a.indexOf(c)).join(".")+"]"}
221),function(l,c){if(a.length>0){var u=a.indexOf(this);~u?a.splice(u+1):a.push(this),~u?o.splice(u,1/0,l):o.push(l),~a.indexOf(c)&&(c=s.call(this,l,c))}else a.push(c);return i==null?c:i.call(this,l,c)}}}(Wh,Wh.exports)),Wh.exports}var jse=Gse();const Vse=bu(jse);function z$(t){return Object.defineProperty(t,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(e=null,n=""){return Vse(this,e,n,(r,i)=>({sys:{type:"Link",linkType:"Entry",id:i.sys.id,circular:!0}}))}})}async function qse(t,e,n){if(!e||!e.initial&&!e.nextSyncToken&&!e.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(e.content_type&&!e.type)e.type="Entry";else if(e.content_type&&e.type&&e.type!=="Entry")throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");const r={withoutLinkResolution:!1,withoutUnresolvableLinks:!1,paginate:!0},{withoutLinkResolution:i,withoutUnresolvableLinks:s,paginate:a}=Object.assign(Object.assign({},r),n),o=await Y$(t,[],e,{paginate:a});i||(o.items=W$(o,{removeUnresolved:s,itemEntryPoints:["fields"]}));const l=Kse(o.items);return o.nextSyncToken&&(l.nextSyncToken=o.nextSyncToken),o.nextPageToken&&(l.nextPageToken=o.nextPageToken),Jie(z$(G$(l)))}function Kse(t){const e=n=>(r,i)=>(i.sys.type===n&&r.push(G$(i)),r);return{entries:t.reduce(e("Entry"),[]),assets:t.reduce(e("Asset"),[]),deletedEntries:t.reduce(e("DeletedEntry"),[]),deletedAssets:t.reduce(e("DeletedAsset"),[])}}function Wse(t){return t.nextPageToken?{sync_token:t.nextPageToken}:t.nextSyncToken?{sync_token:t.nextSyncToken}:t.sync_token?{sync_token:t.sync_token}:t}async function Y$(t,e,n,{paginate:r}){const i=Wse(n),a=(await t.get("sync",ji({query:i}))).data||{};return e=e.concat(a.items||[]),a.nextPageUrl?r?(delete i.initial,i.sync_token=L_(a.nextPageUrl),Y$(t,e,i,{paginate:r})):{items:e,nextPageToken:L_(a.nextPageUrl)}:a.nextSyncUrl?{items:e,nextSyncToken:L_(a.nextSyncUrl)}:{items:[]}}function L_(t){const e=t.split("?");return e.length>0?e[1].replace("sync_token=",""):""}function Io(t){const e={};let n=!1;for(const r in t)Array.isArray(t[r])&&(e[r]=t[r].join(","),n=!0);return n?Object.assign(Object.assign({},t),e):t}function X$(t){if(!t.select)return new Set;const e=Array.isArray(t.select)?t.select:t.select.split(",").map(n=>n.trim());return new Set(e)}function Vs(t){if(!t.select)return t;const e=X$(t);return e.has("sys")?t:(e.add("sys.id"),e.add("sys.type"),Object.assign(Object.assign({},t),{select:[...e].join(",")}))}function z1(t,{resolveLinks:e,removeUnresolved:n}){const r=z$(t);return e&&(r.items=W$(r,{removeUnresolved:n,itemEntryPoints:["fields"]})),r}class ca extends Error{constructor(e,n){super(`Invalid "${e}" provided, `+n),this.name="ValidationError"}}function zse(t,e,n){if(n=n||{},typeof e!="number")throw new ca(t,`only numeric values are allowed for timestamps, provided type was "${typeof e}"`);if(n.maximum&&e>n.maximum)throw new ca(t,`value (${e}) cannot be further in the future than expected maximum (${n.maximum})`);if(n.now&&e<n.now)throw new ca(t,`value (${e}) cannot be in the past, current time was ${n.now}`)}function Yse(t){if(t.locale==="*")throw new ca("locale",`The use of locale='*' is no longer supported.To fetch an entry in all existing locales, 222 use client.withAllLocales instead of the locale='*' parameter.`)}function Xse(t){if(t.locale)throw new ca("locale","The `locale` parameter is not allowed")}function zh(t,e){e?Xse(t):Yse(t)}function Kp(t){if("resolveLinks"in t)throw new ca("resolveLinks",`The use of the 'resolveLinks' parameter is no longer supported. By default, links are resolved. 223 If you do not want to resolve links, use client.withoutLinkResolution.`)}function Wp(t){if("removeUnresolved"in t)throw new ca("removeUnresolved",`The use of the 'removeUnresolved' parameter is no longer supported. By default, unresolved links are kept as link objects. 224 If you do not want to include unresolved links, use client.withoutUnresolvableLinks.`)}function Jse(t,e){if(e===void 0)return!1;if(typeof e!="boolean")throw new ca("includeContentSourceMaps","The 'includeContentSourceMaps' parameter must be a boolean.");if(e&&!(t==="preview.contentful.com"))throw new ca("includeContentSourceMaps",`The 'includeContentSourceMaps' parameter can only be used with the CPA. Please set host to 'preview.contentful.com' to include Content Source Maps. 225 `);return e}function ic(t){for(const e in t){const n=t[e];if(typeof n=="object"&&n!==null&&!Array.isArray(n))throw new Error(`Objects are not supported as value for the "${e}" query parameter.`)}}const Qse=48*60*60;
225class Zse extends Error{constructor(e,n,r){super("The resource could not be found."),this.sys={type:"Error",id:"NotFound"},this.details={type:"Entry",id:e,environment:n,space:r}}}function J$({http:t,getGlobalOptions:e},n){const r=(G="unknown")=>new Zse(G,e().environment,e().space),i=G=>{let N=G==="space"?e().spaceBaseUrl:e().environmentBaseUrl;if(!N)throw new Error("Please define baseUrl for "+G);return N.endsWith("/")||(N+="/"),N};function s(G={}){var N,$;const j=t.httpClientParams,V=(N=j==null?void 0:j.includeContentSourceMaps)!==null&&N!==void 0?N:($=j==null?void 0:j.alphaFeatures)===null||$===void 0?void 0:$.includeContentSourceMaps,W=j==null?void 0:j.host;if(Jse(W,V)&&(G.includeContentSourceMaps=!0,G.select)){const C=X$(G);C.add("sys"),G.select=Array.from(C).join(",")}return G}function a(G,N){var $;return(($=N==null?void 0:N.params)===null||$===void 0?void 0:$.includeContentSourceMaps)?yse(G):G}async function o({context:G,path:N,config:$}){const j=i(G);try{const V=await t.get(j+N,$);return a(V.data,$)}catch(V){$i(V)}}async function l({context:G,path:N,data:$,config:j}){const V=i(G);try{return(await t.post(V+N,$,j)).data}catch(W){$i(W)}}async function c(){return o({context:"space",path:""})}async function u(G){return o({context:"environment",path:`content_types/${G}`})}async function f(G={}){return o({context:"environment",path:"content_types",config:ji({query:G})})}async function d(G,N={}){return p(G,N,n)}async function h(G={}){return g(G,n)}async function p(G,N,$={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){const{withAllLocales:j}=$;return zh(N,j),Kp(N),Wp(N),ic(N),m(G,j?Object.assign(Object.assign({},N),{locale:"*"}):N,$)}async function m(G,N,$){if(!G)throw r(G);try{const j=await _(Object.assign({"sys.id":G},s(N)),$);if(j.items.length>0)return j.items[0];throw r(G)}catch(j){$i(j)}}async function g(G,N={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){const{withAllLocales:$}=N;return zh(G,$),Kp(G),Wp(G),ic(G),_($?Object.assign(Object.assign({},G),{locale:"*"}):G,N)}async function _(G,N){const{withoutLinkResolution:$,withoutUnresolvableLinks:j}=N;try{const V=await o({context:"environment",path:"entries",config:ji({query:s(Io(Vs(G)))})});return z1(V,{resolveLinks:!$,removeUnresolved:j??!1})}catch(V){$i(V)}}async function v(G,N={}){return T(G,N,n)}async function y(G={}){return E(G,n)}async function E(G,N={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){const{withAllLocales:$}=N;zh(G,$),ic(G);const j=$?Object.assign(Object.assign({},G),{locale:"*"}):G;return S(j)}async function b(G,N){try{return o({context:"environment",path:`assets/${G}`,config:ji({query:s(Vs(N))})})}catch($){$i($)}}async function T(G,N,$={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){const{withAllLocales:j}=$;zh(N,j),ic(N);const V=j?Object.assign(Object.assign({},N),{locale:"*"}):N;return b(G,V)}async function S(G){try{return o({context:"environment",path:"assets",config:ji({query:s(Io(Vs(G)))})})}catch(N){$i(N)}}async function A(G){return o({context:"environment",path:`tags/${G}`})}async function w(G={}){return ic(G),o({context:"environment",path:"tags",config:ji({query:Io(Vs(G))})})}async function x(G){try{const N=Math.floor(Date.now()/1e3),$=N+Qse;zse("expiresAt",G,{maximum:$,now:N})}catch(N){$i(N)}return l({context:"environment",path:"asset_keys",data:{expiresAt:G}})}async function L(G={}){return ic(G),o({context:"environment",path:"locales",config:ji({query:Vs(G)})})}async function R(G,N={paginate:!0}){return k(G,N,n)}async function k(G,N,$={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){Kp(G),Wp(G);const j=Object.assign(Object.assign({},N),$);return z(t),qse(t,G,j)}function F(G){return U(G,n)}function U(G,N={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){return H(G,N)}function H(G,N){const{withoutLinkResolution:$,withoutUnresolvableLinks:j}=N;return z1(G,{resolveLinks:!$,removeUnresolved:j??!1})}function M(G,N={}){return O(G,N)}async function O(G,N={}){try{return o({context:"environment",path:`taxonomy/concept-schemes/${G}`,config:ji({query:Io(Vs(N))})})}catch($){$i($)}}function q(G={}){return P(G)}async function P(G={}){try{return o({context:"environment",path:"taxonomy/concept-schemes",config:ji({query:Io(Vs(G))})})}catch(N){$i(N)}}function ae(G,N={}){return ce(G,N)}async function ce(G,N={}){try{return o({context:"environment",path:`taxonomy/concepts/${G}`,config:ji({query:Io(Vs(N))})})}catch($){$i($)}}function ye(G={}){return ve(G)}async function ve(G={}){try{return o({context:"environment",path:"taxonomy/concepts",config:ji({query:Io(Vs(G))})})}catch(N){$i(N)}}function z(G){G.defaults.baseURL=e().environmentBaseUrl}
225return{version:"11.4.3",getSpace:c,getContentType:u,getContentTypes:f,getAsset:v,getAssets:y,getTag:A,getTags:w,getLocales:L,parseEntries:F,sync:R,getEntry:d,getEntries:h,getConceptScheme:M,getConceptSchemes:q,getConcept:ae,getConcepts:ye,createAssetKey:x}}function eae({http:t,getGlobalOptions:e},n,r){const s=J$({http:t,getGlobalOptions:e},n);return Object.defineProperty(s,"withAllLocales",{get:()=>r(Object.assign(Object.assign({},n),{withAllLocales:!0}))}),Object.defineProperty(s,"withoutLinkResolution",{get:()=>r(Object.assign(Object.assign({},n),{withoutLinkResolution:!0}))}),Object.defineProperty(s,"withoutUnresolvableLinks",{get:()=>r(Object.assign(Object.assign({},n),{withoutUnresolvableLinks:!0}))}),Object.create(s)}const tae=({http:t,getGlobalOptions:e})=>{function n(i){return eae({http:t,getGlobalOptions:e},i,n)}const r=J$({http:t,getGlobalOptions:e},{withoutLinkResolution:!1,withAllLocales:!1,withoutUnresolvableLinks:!1});return Object.assign(Object.assign({},r),{get withAllLocales(){return n({withAllLocales:!0,withoutLinkResolution:!1,withoutUnresolvableLinks:!1})},get withoutLinkResolution(){return n({withAllLocales:!1,withoutLinkResolution:!0,withoutUnresolvableLinks:!1})},get withoutUnresolvableLinks(){return n({withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!0})}})};function nae(t){if(!t.accessToken)throw new TypeError("Expected parameter accessToken");if(!t.space)throw new TypeError("Expected parameter space");Kp(t),Wp(t);const n=Object.assign(Object.assign({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"}),t),r=Zie("contentful.js/11.4.3",n.application,n.integration);n.headers=Object.assign(Object.assign({},n.headers),{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":r});const i=U$(Sn,n);if(!i.defaults.baseURL)throw new Error("Please define a baseURL");const s=ise({space:n.space,environment:n.environment,spaceBaseUrl:i.defaults.baseURL,environmentBaseUrl:`${i.defaults.baseURL}environments/${n.environment}`});return i.defaults.baseURL=s({}).environmentBaseUrl,tae({http:i,getGlobalOptions:s})}function gu(){const t=Eu(),e=nae({space:t.public.ctfSpaceId,accessToken:t.public.ctfCdaAccessToken,environment:t.public.ctfEnv}),{query:n}=yo(),r=(n==null?void 0:n.preview)==="true",i="en-US";return{client:e,graphql:(l,c={})=>{const u=`https://graphql.contentful.com/content/v1/spaces/${t.public.ctfSpaceId}/environments/${t.public.ctfEnv}`,f={query:l,variables:{preview:r,locale:i,...c}};return fetch(u,{method:"POST",headers:{Authorization:`Bearer ${r?t.public.ctfPreviewAccessToken:t.public.ctfCdaAccessToken}`,"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(f)})},cda:l=>e.getEntry(l),asset:l=>e.getAsset(l)}}const pw=_g("uiStore",()=>{const t=yo(),e=$e(()=>t.name==="index"),n=it(!1),r=it(!1),i=it([]),s=it(!0);function a(p){s.value=!1,i.value.includes(p)||i.value.push(p)}function o(p){const m=i.value.indexOf(p);m!==-1&&i.value.splice(m,1),i.value.length===0&&(s.value=!0)}const l=it([]),c=$e(()=>t.name==="index"?!0:t.name==="slug"?l.value.includes(t.params.slug):!1),u=it(c.value);Mi(()=>{u.value=c.value}),ar(r,p=>{p||(u.value=c.value)});const f=it(null),d=it(!1),h=it(0);return ar(h,async p=>{document.documentElement.style.setProperty("--notification-height",`${p}px`),await tr(),Ze.refresh()}),{loaderPlayed:n,shouldUseLoader:e,pageTransitioning:r,loadables:i,loaded:s,addLoadable:a,resolveLoadable:o,transparentHeaderSlugs:l,transparentHeader:u,notification:f,hasNotification:d,notificationHeight:h}}),Q$=_g("navStore",()=>{const t=ts([]);function e(n){return t.find(r=>r.slug===n)}return{navs:t,getNav:e}}),rae=String.raw,iae=rae` 226 fragment Link on Link { 227 sys { 228 id 229 } 230 label 231 externalUrl 232 internalPage { 233 __typename 234 ... on Page { 235 sys { 236 id 237 } 238 slug 239 } 240 ... on NewsPage { 241 sys { 242 id 243 } 244 slug 245 } 246 ... on CapabilityVideo { 247 sys { 248 id 249 } 250 slug 251 } 252 } 253 download { 254 title 255 description 256 contentType 257 fileName 258 size 259 url 260 width 261 height 262 } 263 anchor 264 } 265`,sae=String.raw,Z$=sae` 266 query ($preview: Boolean) { 267 navigationCollection(preview: $preview, limit: 20) { 268 total 269 items { 270 sys { 271 id 272 } 273 title 274 slug 275 itemsCollection { 276 total 277 items { 278 sys { 279 id 280 } 281 ...Link 282 } 283 } 284 } 285 } 286 } 287 288 ${iae} 289`,aae={__name:"app",async setup(t){let e,n;const r=pw();WF();const i=gu(),s=String.raw,a=s` 290 query ($preview: Boolean) { 291 notificationCollection( 292 limit: 1 293 preview: $preview 294 where: { activeOnSite: true } 295 ) { 296 items { 297 sys { 298 id 299 } 300 title 301 externalUrl 302 internalPage { 303 __typename 304 ... on Page { 305 sys { 306 id 307 } 308 slug 309 } 310 ... on NewsPage { 311 sys { 312 id 313 } 314 slug 315 } 316 ... on CapabilityVideo { 317 sys { 318 id 319 } 320 slug 321 } 322 } 323 download { 324 title 325 description 326 contentType 327 fileName 328 size 329 url 330 width 331 height 332 } 333 } 334 } 335 } 336`;[e,n]=ol(async()=>Pc(async()=>{var g;const d=await i.graphql(a),{data:h,errors:p}=await d.json();if(p){console.error(p);return}const m=(g=h.notificationCollection)==null?void 0:g.items[0];r.hasNotification=!!m,r.notification=m||null},"$E3KxD8SGyR")),await e,n();const o=s` 337 query ($preview: Boolean) { 338 heroCollection(limit: 1000, preview: $preview) { 339 items { 340 linkedFrom { 341 pageCollection(limit: 10, preview: $preview) { 342 items { 343 slug 344 } 345 } 346 } 347 } 348 } 349 } 350`;[e,n]=ol(async()=>Pc(async()=>{const d=await i.graphql(o),{data:h,errors:p}=await d.json();if(p){console.error(p);return}r.transparentHeaderSlugs=h.heroCollection.items.map(m=>m.linkedFrom.pageCollection.items).flat().map(m=>m.slug)},"$wgZfXAGDMG")),await e,n();const l=Q$();[e,n]=ol(async()=>Pc(async()=>{const p=await(await gu().graphql(Z$)).json();l.navs.push(...p.data.navigationCollection.items)},"$Kgcp1dFIer")),await e,n();const c=mo("transitionCoverRef"),u={css:!1,onLeave(d,h){r.pageTransitioning=!0,r.loadables=[],r.loaded=!0,Fr.emit("transition:leave"),nr.set(c.value,{opacity:1}),h()},onAfterLeave(){Fr.emit("transition:leave:after")},onBeforeEnter(d){Fr.emit("transition:enter:before"),nr.set(d,{opacity:0}
350)},async onEnter(d,h){await new Promise(p=>{if(r.loaded){p();return}const m=cg(()=>{r.loaded&&(p(),m())})}),nr.set(d,{opacity:1}),Fr.emit("transition:enter"),r.pageTransitioning=!1,Ze.refresh(),await new Promise(p=>setTimeout(p,250)),nr.to(c.value,{onComplete(){h()},opacity:0,duration:.5})},onAfterEnter(){Fr.emit("transition:enter:after")}};Mi(()=>{window&&document.body.classList.toggle("is-safari",/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent))});const f=yo();return(d,h)=>{const p=cY,m=wM;return ze(),Xt(m,null,{default:Ds(()=>[Je(pg,cI(RT(u)),{default:Ds(()=>[(ze(),vn("div",{key:_e(f).path,class:"transition-wrapper"},[Je(p)]))]),_:1},16),Un("div",{ref_key:"transitionCoverRef",ref:c,class:"transition-cover"},null,512),h[0]||(h[0]=Un("div",{id:"teleports"},null,-1))]),_:1})}}},oae=["innerHTML"],iy=Object.assign({name:"IconElement"},{__name:"Icon",props:{name:{type:String,required:!0},width:{type:Number,default:null},height:{type:Number,default:null}},async setup(t,{expose:e}){let n,r;const i=t,s=mo("el");e({el:s});const a=it(null);async function o(){try{const h=await Object.assign({
350"/assets/icons/arrow-hover.svg":()=>Ve(()=>import("./Bak-Q-To.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/arrow-left.svg":()=>Ve(()=>import("./DdJS8Plz.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/arrow.svg":()=>Ve(()=>import("./BoY3U92o.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/captions-enabled.svg":()=>Ve(()=>import("./D5BQX0d7.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/captions.svg":()=>Ve(()=>import("./D5eWTK82.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/check.svg":()=>Ve(()=>import("./DSyCivkS.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/chevron-right.svg":()=>Ve(()=>import("./D4tJd8-3.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/chevron-small-left.svg":()=>Ve(()=>import("./NBpi9Bjv.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/chevron-small-right.svg":()=>Ve(()=>import("./C5vXjL5M.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/close.svg":()=>Ve(()=>import("./CJECR55j.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/contract.svg":()=>Ve(()=>import("./B-oWgF-O.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/download.svg":()=>Ve(()=>import("./CM88l8kt.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/dropdown.svg":()=>Ve(()=>import("./DK9oCt1w.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/enter-down.svg":()=>Ve(()=>import("./BjfatKhn.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/enter.svg":()=>Ve(()=>import("./D3Ph42Uv.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/expand.svg":()=>Ve(()=>import("./BQkoiiCB.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/external-link.svg":()=>Ve(()=>import("./5vPMEXk3.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/facebook.svg":()=>Ve(()=>import("./RP-2_cZ7.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/filter.svg":()=>Ve(()=>import("./C1zveEJM.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/info.svg":()=>Ve(()=>import("./DG_o6YIF.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/instagram.svg":()=>Ve(()=>import("./Bbzs6G-c.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/link.svg":()=>Ve(()=>import("./BhG_kwwd.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/linkedin.svg":()=>Ve(()=>import("./BFAhR-jR.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/log-in.svg":()=>Ve(()=>import("./Csbz-6wd.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/menu.svg":()=>Ve(()=>import("./Cz6DSNlh.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/minus.svg":()=>Ve(()=>import("./ClyCnOzX.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/pause.svg":()=>Ve(()=>import("./xDyvMN6Z.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/play.svg":()=>Ve(()=>import("./D5WfXw2V.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/plus.svg":()=>Ve(()=>import("./D8TVgYAq.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/profile.svg":()=>Ve(()=>import("./BSZU-xj9.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/rss.svg":()=>Ve(()=>import("./DOQ6DQgk.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/search.svg":()=>Ve(()=>import("./D8LuK5Zc.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/sound-muted.svg":()=>Ve(()=>import("./CovbpIdu.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/sound.svg":()=>Ve(()=>import("./ZP_qQd0p.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/x.svg":()=>Ve(()=>import("./dmrO24K2.js"),[],import.meta.url).then(p=>p.default),
350"/assets/icons/youtube.svg":()=>Ve(()=>import("./mnaEbGZ0.js"),[],import.meta.url)
350.then(p=>p.default)})[`/assets/icons/${i.name}.svg`]();a.value=h}catch{console.error(`Icon '${i.name}' doesn't exist in 'assets/icons'`)}}const l={x:[10,12],linkedin:[16,16],facebook:[16,16],youtube:[14,10],instagram:[14,14],rss:[16,16],link:[12,10],default:[20,20]},c=l[i.name]||l.default,u=$e(()=>i.width||c[0]),f=$e(()=>i.height||c[1]);return[n,r]=ol(()=>o()),await n,r(),(d,h)=>(ze(),vn("span",{ref_key:"el",ref:s,class:fo(["svg icon",`svg--${t.name}`]),style:uo({width:`${_e(u)}px`,height:`${_e(f)}px`}),innerHTML:_e(a)},null,14,oae))}});(function(){function t(){for(var r=arguments.length,i=0;i<r;i++){var s=i<0||arguments.length<=i?void 0:arguments[i];s.nodeType===1||s.nodeType===11?this.appendChild(s):this.appendChild(document.createTextNode(String(s)))}}function e(){for(;this.lastChild;)this.removeChild(this.lastChild);arguments.length&&this.append.apply(this,arguments)}function n(){for(var r=this.parentNode,i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var o=s.length;if(r)for(o||r.removeChild(this);o--;){var l=s[o];typeof l!="object"?l=this.ownerDocument.createTextNode(l):l.parentNode&&l.parentNode.removeChild(l),o?r.insertBefore(this.previousSibling,l):r.replaceChild(l,this)}}typeof Element<"u"&&(Element.prototype.append||(Element.prototype.append=t,DocumentFragment.prototype.append=t),Element.prototype.replaceChildren||(Element.prototype.replaceChildren=e,DocumentFragment.prototype.replaceChildren=e),Element.prototype.replaceWith||(Element.prototype.replaceWith=n,DocumentFragment.prototype.replaceWith=n))})();function lae(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Y1(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function X1(t,e,n){return e&&Y1(t.prototype,e),n&&Y1(t,n),t}function cae(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function J1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Q1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?J1(Object(n),!0).forEach(function(r){cae(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J1(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function eB(t,e){return fae(t)||hae(t,e)||tB(t,e)||mae()}function Nr(t){return uae(t)||dae(t)||tB(t)||pae()}function uae(t){if(Array.isArray(t))return eT(t)}function fae(t){if(Array.isArray(t))return t}function dae(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function hae(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var n=[],r=!0,i=!1,s=void 0;try{for(var a=t[Symbol.iterator](),o;!(r=(o=a.next()).done)&&(n.push(o.value),!(e&&n.length===e));r=!0);}catch(l){i=!0,s=l}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw s}}return n}}function tB(t,e){if(t){if(typeof t=="string")return eT(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eT(t,e)}}function eT(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function pae(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 351In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 352In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function il(t,e){return Object.getOwnPropertyNames(Object(t)).reduce(function(n,r){var i=Object.getOwnPropertyDescriptor(Object(t),r),s=Object.getOwnPropertyDescriptor(Object(e),r);return Object.defineProperty(n,r,s||i)},{})}function Yd(t){return typeof t=="string"}function mw(t){return Array.isArray(t)}function Yh(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=il(t),n;return e.types!==void 0?n=e.types:e.split!==void 0&&(n=e.split),n!==void 0&&(e.types=(Yd(n)||mw(n)?String(n):"").split(",").map(function(r){return String(r).trim()}).filter(function(r){return/((line)|(word)|(char))/i.test(r)})),(e.absolute||e.position)&&(e.absolute=e.absolute||/absolute/.test(t.position)),e}function gw(t){var e=Yd(t)||mw(t)?String(t):"";return{none:!e,lines:/line/i.test(e),words:/word/i.test(e),chars:/char/i.test(e)}}function sy(t){return t!==null&&typeof t=="object"}
352function gae(t){return sy(t)&&/^(1|3|11)$/.test(t.nodeType)}function yae(t){return typeof t=="number"&&t>-1&&t%1===0}function vae(t){return sy(t)&&yae(t.length)}function Bl(t){return mw(t)?t:t==null?[]:vae(t)?Array.prototype.slice.call(t):[t]}function Z1(t){var e=t;return Yd(t)&&(/^(#[a-z]\w+)$/.test(t.trim())?e=document.getElementById(t.trim().slice(1)):e=document.querySelectorAll(t)),Bl(e).reduce(function(n,r){return[].concat(Nr(n),Nr(Bl(r).filter(gae)))},[])}var _ae=Object.entries,tg="_splittype",Xi={},Eae=0;function xs(t,e,n){if(!sy(t))return console.warn("[data.set] owner is not an object"),null;var r=t[tg]||(t[tg]=++Eae),i=Xi[r]||(Xi[r]={});return n===void 0?e&&Object.getPrototypeOf(e)===Object.prototype&&(Xi[r]=Q1(Q1({},i),e)):e!==void 0&&(i[e]=n),n}function sl(t,e){var n=sy(t)?t[tg]:null,r=n&&Xi[n]||{};return r}function nB(t){var e=t&&t[tg];e&&(delete t[e],delete Xi[e])}function bae(){Object.keys(Xi).forEach(function(t){delete Xi[t]})}function Tae(){_ae(Xi).forEach(function(t){var e=eB(t,2),n=e[0],r=e[1],i=r.isRoot,s=r.isSplit;(!i||!s)&&(Xi[n]=null,delete Xi[n])})}function Sae(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ",n=t?String(t):"";return n.trim().replace(/\s+/g," ").split(e)}var yw="\\ud800-\\udfff",rB="\\u0300-\\u036f\\ufe20-\\ufe23",iB="\\u20d0-\\u20f0",sB="\\ufe0e\\ufe0f",wae="[".concat(yw,"]"),tT="[".concat(rB).concat(iB,"]"),nT="\\ud83c[\\udffb-\\udfff]",xae="(?:".concat(tT,"|").concat(nT,")"),aB="[^".concat(yw,"]"),oB="(?:\\ud83c[\\udde6-\\uddff]){2}",lB="[\\ud800-\\udbff][\\udc00-\\udfff]",cB="\\u200d",uB="".concat(xae,"?"),fB="[".concat(sB,"]?"),Aae="(?:"+cB+"(?:"+[aB,oB,lB].join("|")+")"+fB+uB+")*",Rae=fB+uB+Aae,Lae="(?:".concat(["".concat(aB).concat(tT,"?"),tT,oB,lB,wae].join("|"),` 353)`),Cae=RegExp("".concat(nT,"(?=").concat(nT,")|").concat(Lae).concat(Rae),"g"),Iae=[cB,yw,rB,iB,sB],kae=RegExp("[".concat(Iae.join(""),"]"));function Pae(t){return t.split("")}function dB(t){return kae.test(t)}function Dae(t){return t.match(Cae)||[]}function Oae(t){return dB(t)?Dae(t):Pae(t)}function Mae(t){return t==null?"":String(t)}function Nae(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return t=Mae(t),t&&Yd(t)&&!e&&dB(t)?Oae(t):t.split(e)}function rT(t,e){var n=document.createElement(t);return e&&Object.keys(e).forEach(function(r){var i=e[r],s=Yd(i)?i.trim():i;s===null||s===""||(r==="children"?n.append.apply(n,Nr(Bl(s))):n.setAttribute(r,s))}),n}var vw={splitClass:"",lineClass:"line",wordClass:"word",charClass:"char",types:["lines","words","chars"],absolute:!1,tagName:"div"};function Fae(t,e){e=il(vw,e);var n=gw(e.types),r=e.tagName,i=t.nodeValue,s=document.createDocumentFragment(),a=[],o=[];return/^\s/.test(i)&&s.append(" "),a=Sae(i).reduce(function(l,c,u,f){var d,h;return n.chars&&(h=Nae(c).map(function(p){var m=rT(r,{class:"".concat(e.splitClass," ").concat(e.charClass),style:"display: inline-block;",children:p});return xs(m,"isChar",!0),o=[].concat(Nr(o),[m]),m})),n.words||n.lines?(d=rT(r,{class:"".concat(e.wordClass," ").concat(e.splitClass),style:"display: inline-block; ".concat(n.words&&e.absolute?"position: relative;":""),children:n.chars?h:c}),xs(d,{isWord:!0,isWordStart:!0,isWordEnd:!0}),s.appendChild(d)):h.forEach(function(p){s.appendChild(p)}),u<f.length-1&&s.append(" "),n.words?l.concat(d):l},[]),/\s$/.test(i)&&s.append(" "),t.replaceWith(s),{words:a,chars:o}}function hB(t,e){var n=t.nodeType,r={words:[],chars:[]};if(!/(1|3|11)/.test(n))return r;if(n===3&&/\S/.test(t.nodeValue))return Fae(t,e);var i=Bl(t.childNodes);if(i.length&&(xs(t,"isSplit",!0),!sl(t).isRoot)){t.style.display="inline-block",t.style.position="relative";var s=t.nextSibling,a=t.previousSibling,o=t.textContent||"",l=s?s.textContent:" ",c=a?a.textContent:" ";xs(t,{isWordEnd:/\s$/.test(o)||/^\s/.test(l),isWordStart:/^\s/.test(o)||/\s$/.test(c)})}return i.reduce(function(u,f){var d=hB(f,e),h=d.words,p=d.chars;return{words:[].concat(Nr(u.words),Nr(h)),chars:[].concat(Nr(u.chars),Nr(p))}},r)}function $ae(t,e,n,r){if(!n.absolute)return{top:e?t.offsetTop:null};var i=t.offsetParent,s=eB(r,2),a=s[0],o=s[1],l=0,c=0;if(i&&i!==document.body){var u=i.getBoundingClientRect();l=u.x+a,c=u.y+o}var f=t.getBoundingClientRect(),d=f.width,h=f.height,p=f.x,m=f.y,g=m+o-c,_=p+a-l;return{width:d,height:h,top:g,left:_}}function pB(t){sl(t).isWord?(nB(t),t.replaceWith.apply(t,Nr(t.childNodes))):Bl(t.children).forEac
353h(function(e){return pB(e)})}var Bae=function(){return document.createDocumentFragment()};function Uae(t,e,n){var r=gw(e.types),i=e.tagName,s=t.getElementsByTagName("*"),a=[],o=[],l=null,c,u,f,d=[],h=t.parentElement,p=t.nextElementSibling,m=Bae(),g=window.getComputedStyle(t),_=g.textAlign,v=parseFloat(g.fontSize),y=v*.2;return e.absolute&&(f={left:t.offsetLeft,top:t.offsetTop,width:t.offsetWidth},u=t.offsetWidth,c=t.offsetHeight,xs(t,{cssWidth:t.style.width,cssHeight:t.style.height})),Bl(s).forEach(function(E){var b=E.parentElement===t,T=$ae(E,b,e,n),S=T.width,A=T.height,w=T.top,x=T.left;/^br$/i.test(E.nodeName)||(r.lines&&b&&((l===null||w-l>=y)&&(l=w,a.push(o=[])),o.push(E)),e.absolute&&xs(E,{top:w,left:x,width:S,height:A}))}),h&&h.removeChild(t),r.lines&&(d=a.map(function(E){var b=rT(i,{class:"".concat(e.splitClass," ").concat(e.lineClass),style:"display: block; text-align: ".concat(_,"; width: 100%;")});xs(b,"isLine",!0);var T={height:0,top:1e4};return m.appendChild(b),E.forEach(function(S,A,w){var x=sl(S),L=x.isWordEnd,R=x.top,k=x.height,F=w[A+1];T.height=Math.max(T.height,k),T.top=Math.min(T.top,R),b.appendChild(S),L&&sl(F).isWordStart&&b.append(" ")}),e.absolute&&xs(b,{height:T.height,top:T.top}),b}),r.words||pB(m),t.replaceChildren(m)),e.absolute&&(t.style.width="".concat(t.style.width||u,"px"),t.style.height="".concat(c,"px"),Bl(s).forEach(function(E){var b=sl(E),T=b.isLine,S=b.top,A=b.left,w=b.width,x=b.height,L=sl(E.parentElement),R=!T&&L.isLine;E.style.top="".concat(R?S-L.top:S,"px"),E.style.left=T?"".concat(f.left,"px"):"".concat(A-(R?f.left:0),"px"),E.style.height="".concat(x,"px"),E.style.width=T?"".concat(f.width,"px"):"".concat(w,"px"),E.style.position="absolute"})),h&&(p?h.insertBefore(t,p):h.appendChild(t)),d}var sc=il(vw,{}),eI=function(){X1(t,null,[{key:"clearData",value:function(){bae()}},{key:"setDefaults",value:function(n){return sc=il(sc,Yh(n)),vw}},{key:"revert",value:function(n){Z1(n).forEach(function(r){var i=sl(r),s=i.isSplit,a=i.html,o=i.cssWidth,l=i.cssHeight;s&&(r.innerHTML=a,r.style.width=o||"",r.style.height=l||"",nB(r))})}},{key:"create",value:function(n,r){return new t(n,r)}},{key:"data",get:function(){return Xi}},{key:"defaults",get:function(){return sc},set:function(n){sc=il(sc,Yh(n))}}]);function t(e,n){lae(this,t),this.isSplit=!1,this.settings=il(sc,Yh(n)),this.elements=Z1(e),this.split()}return X1(t,[{key:"split",value:function(n){var r=this;this.revert(),this.elements.forEach(function(a){xs(a,"html",a.innerHTML)}),this.lines=[],this.words=[],this.chars=[];var i=[window.pageXOffset,window.pageYOffset];n!==void 0&&(this.settings=il(this.settings,Yh(n)));var s=gw(this.settings.types);s.none||(this.elements.forEach(function(a){xs(a,"isRoot",!0);var o=hB(a,r.settings),l=o.words,c=o.chars;r.words=[].concat(Nr(r.words),Nr(l)),r.chars=[].concat(Nr(r.chars),Nr(c))}),this.elements.forEach(function(a){if(s.lines||r.settings.absolute){var o=Uae(a,r.settings,i);r.lines=[].concat(Nr(r.lines),Nr(o))}}),this.isSplit=!0,window.scrollTo(i[0],i[1]),Tae())}},{key:"revert",value:function(){this.isSplit&&(this.lines=null,this.words=null,this.chars=null,this.isSplit=!1),t.revert(this.elements)}}]),t}();const Hae={__name:"SlideRevealText",props:{stagger:{type:[Number,Object],default:.2},pinnedContainer:{type:[String,Object],default:null},manual:{type:Boolean,default:!1},progress:{type:Number,default:0},showOnScroll:{type:Boolean,default:!1},debug:{type:Boolean,default:!1}},emits:["split"],setup(t,{expose:e,emit:n}){const r=t,i=n,s=mo("el"),a=it(!1),o=nr.context(()=>{});let l=!1,c;ar(()=>r.pinnedContainer,(v,y)=>{v&&v!==y&&d()});function u(){var E;const v=[];((E=s.value)!=null&&E.children?[...s.value.children]:[]).forEach(b=>{if(!b.classList.contains("no-split")){if(b.classList.contains("contentful-text")||b.classList.contains("split-inner")){v.push(new eI(b.children,{types:"lines",tagName:"span"}));return}v.push(new eI(b,{types:"lines"}))}}),i("split")}function f(){if(!s.value)return;[...s.value.querySelectorAll(".line, .no-split")].forEach(y=>{y.style.height=`${y.offsetHeight}px`,y.innerHTML=`<div class="slide-reveal-text__outer"><div class="slide-reveal-text__inner">${y.innerHTML}</div></div>`})}
353function d(){if(s.value){if(o.revert(),u(),f(),r.manual){const v=s.value.querySelectorAll(".slide-reveal-text__inner");o.add(()=>{c=nr.timeline({paused:!0}).fromTo(v,{y:"100%",opacity:0},{y:0,opacity:1,duration:.8,ease:"circ.out",stagger:{each:r.stagger,onStart:function(){this.targets()&&this.targets()[0]&&this.targets()[0].parentNode&&(this.targets()[0].parentNode.style.overflow="hidden")},onComplete:function(){this.targets()&&this.targets()[0]&&this.targets()[0].parentNode&&(this.targets()[0].parentNode.style.overflow="visible")}}}),c.progress(r.progress)})}r.showOnScroll&&o.add(()=>{Ze.create({trigger:s.value,start:"bottom bottom",end:"top top",pinnedContainer:r.pinnedContainer,onEnter(){a.value||(a.value=!0,h(r.stagger))}}),Ze.create({trigger:s.value,start:"top bottom",end:"bottom top",pinnedContainer:r.pinnedContainer,refreshPriority:r.pinnedContainer?99:void 0,onLeaveBack(){p()}}),p()})}}function h(v=.2){if(l||!s.value)return;const y=s.value.querySelectorAll(".slide-reveal-text__inner");l=!0,nr.fromTo(y,{y:"100%",opacity:0}
353,{y:"0%",opacity:1,duration:.8,ease:"circ.out",stagger:{each:v,onStart:function(){this.targets()&&this.targets()[0]&&this.targets()[0].parentNode&&(this.targets()[0].parentNode.style.overflow="hidden")},onComplete:function(){this.targets()&&this.targets()[0]&&this.targets()[0].parentNode&&(this.targets()[0].parentNode.style.overflow="visible")}},onComplete:()=>{l=!1}})}function p(){if(!s.value)return;const v=s.value.querySelectorAll(".slide-reveal-text__inner");a.value=!1,nr.killTweensOf(v),l=!1,nr.set(v,{y:"100%",opacity:0})}ar(()=>r.progress,v=>{c&&c.progress(v)},{immediate:!0});let m=null;const g=RG(()=>{u(),f()},100);function _(){if(!s.value)return;new ResizeObserver(y=>{const b=y[0].contentRect.width;b!==m&&m!==null&&g(),m=b}).observe(s.value)}return Mi(()=>{_(),d()}),go(()=>{o.revert()}),e({animate:h,reset:p,el:s}),(v,y)=>(ze(),vn("div",{ref_key:"el",ref:s,class:"slide-reveal-text"},[lg(v.$slots,"default")],512))}};function mB(t,e){var r;if(!t)return null;if(typeof t=="string")return t;const n=((r=t.__typename)==null?void 0:r.toLowerCase())||(e==null?void 0:e.toLowerCase());if(n==="page")return`/${t.slug}`;if(n==="newspage")return`/newsroom/${t.slug}`;if(n==="capabilityvideo")return`/capabilities/${t.slug}`;if(n==="newsroomlisting")return"/newsroom";if(n==="capabilitieslisting")return"/capabilities";if(n==="homepage")return"/";console.warn("no url schema for page type",n)}const Gae={__name:"ContentfulLink",props:{label:{type:String,default:null},externalUrl:{type:String,default:null},internalPage:{type:[Object,String],default:null},anchor:{type:String,default:null},download:{type:Object,default:null},icon:{type:Boolean,default:!1}},setup(t){const e=t,n=$e(()=>e.externalUrl?"external":e.internalPage?"internal":e.download?"download":"none"),r=FT,i=$e(()=>n.value==="none"?"div":r),s=$e(()=>e.anchor==="$COOKIEBUTTON"),a=$e(()=>n.value==="external"?{href:e.externalUrl+(e.anchor?e.anchor:""),target:"_blank"}:n.value==="internal"?{to:mB(e.internalPage)+(e.anchor?e.anchor:"")}:n.value==="download"?{external:!0,href:e.download.url,download:e.download.fileName,target:"_blank"}:{}),o=$e(()=>n.value==="external"&&e.externalUrl.startsWith("#"));function l(c){if(s.value){(window._hsp=window._hsp||[]).push(["showBanner"]);return}if(!o.value)return;c.preventDefault();const u=e.externalUrl.slice(1),f=document.getElementById(u);f?f.scrollIntoView({behavior:"smooth"}):console.warn(`Element with ID "${u}" not found.`)}return(c,u)=>{const f=iy;return ze(),Xt(ZI(_e(i)),Wa({class:["contentful-link",`contentful-link--${_e(n)}`]},_e(a),{onClick:l}),{default:Ds(()=>[lg(c.$slots,"default",{},()=>[Kc(wl(t.label),1)]),t.icon?(ze(),vn(er,{key:0},[_e(n)==="external"?(ze(),Xt(f,{key:0,name:"external-link",class:"contentful-link__icon"})):Zn("",!0),_e(n)==="download"?(ze(),Xt(f,{key:1,name:"download",class:"contentful-link__icon"})):Zn("",!0),_e(n)==="internal"?(ze(),Xt(f,{key:2,name:"arrow",class:"contentful-link__icon"})):Zn("",!0)],64)):Zn("",!0)]),_:3},16,["class"])}}},jae=_g("linkedEntriesStore",()=>{const t=ts([]),e=async r=>{const s=await gu().cda(r),a=t.indexOf(o=>o.sys.id===s.sys.id);return a!==-1?t[a]=s:t.push(s),s};function n(r){return t.find(i=>i.sys.id===r)}return{entries:t,fetchLinkedEntry:e,getLinkedEntry:n}}),Vae={__name:"ContentfulEntryLink",props:{target:{type:Object,required:!0}},setup(t){const e=t,n=$e(()=>e.target.sys.id),r=jae(),i=$e(()=>r.getLinkedEntry(n.value)),s=$e(()=>{if(!i.value)return"#";const o=i.value.sys.contentType.sys.id;return mB(i.value,o)});function a(){i.value||r.fetchLinkedEntry(n.value)}return Mi(()=>{a()}),(o,l)=>{const c=iy,u=FT;return ze(),Xt(u,{class:"contentful-entry-link",to:_e(s)},{default:Ds(()=>[lg(o.$slots,"default"),l[0]||(l[0]=Kc()),Je(c,{name:"arrow"})]),_:3},8,["to"])}}};var C_={},I_,tI;function qae(){return tI||(tI=1,I_=t=>{if(Object.prototype.toString.call(t)!=="[object Object]")return!1;const e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}),I_}var nI;function Kae(){return nI||(nI=1,function(t){var e=qae();t.BLOCKS=void 0,function($){$.DOCUMENT="document",$.PARAGRAPH="paragraph",$.HEADING_1="heading-1",$.HEADING_2="heading-2",$.HEADING_3="heading-3",$.HEADING_4="heading-4",$.HEADING_5="heading-5",$.HEADING_6="heading-6",$.OL_LIST="ordered-list",$.UL_LIST="unordered-list",$.LIST_ITEM="list-item",$.HR="hr",$.QUOTE="blockquote",$.EMBEDDED_ENTRY="embedded-entry-block",$.EMBEDDED_ASSET="embedded-asset-block",$.EMBEDDED_RESOURCE="embedded-resource-block",$.TABLE="table",$.TABLE_ROW="table-row",$.TABLE_CELL="table-cell",$.TABLE_HEADER_CELL="table-header-cell"}(t.BLOCKS||(t.BLOCKS={})),t.INLINES=void 0,function($){$.ASSET_HYPERLINK="asset-hyperlink",$.EMBEDDED_ENTRY="embedded-entry-inline",$.EMBEDDED_RESOURCE="embedded-resource-inline",$.ENTRY_HYPERLINK="entry-hyperlink",$.HYPERLINK="hyperlink",$.RESOURCE_HYPERLINK="resource-hyperlink"}(t.INLINES||(t.INLINES={})),t.MARKS=void 0,function($){$.BOLD="bold",$.ITALIC="italic",$.UNDERLINE="underline",$.CODE="code",$.SUPERSCRIPT="superscript",$.SUBSCRIPT="subscript",$.STRIKETHROUGH="str
353ikethrough"}(t.MARKS||(t.MARKS={}));var n=function($,j){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,W){V.__proto__=W}||function(V,W){for(var Y in W)Object.prototype.hasOwnProperty.call(W,Y)&&(V[Y]=W[Y])},n($,j)};function r($,j){if(typeof j!="function"&&j!==null)throw new TypeError("Class extends value "+String(j)+" is not a constructor or null");n($,j);function V(){this.constructor=$}$.prototype=j===null?Object.create(j):(V.prototype=j.prototype,new V)}function i($,j,V){if(V||arguments.length===2)for(var W=0,Y=j.length,C;W<Y;W++)(C||!(W in j))&&(C||(C=Array.prototype.slice.call(j,0,W)),C[W]=j[W]);return $.concat(C||Array.prototype.slice.call(j))}typeof SuppressedError=="function"&&SuppressedError;var s,a=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE,t.BLOCKS.TABLE],o=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],l=[t.BLOCKS.TABLE,t.BLOCKS.TABLE_ROW,t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],c=[t.BLOCKS.HR,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],u=(s={},s[t.BLOCKS.OL_LIST]=[t.BLOCKS.LIST_ITEM],s[t.BLOCKS.UL_LIST]=[t.BLOCKS.LIST_ITEM],s[t.BLOCKS.LIST_ITEM]=o,s[t.BLOCKS.QUOTE]=[t.BLOCKS.PARAGRAPH],s[t.BLOCKS.TABLE]=[t.BLOCKS.TABLE_ROW],s[t.BLOCKS.TABLE_ROW]=[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],s[t.BLOCKS.TABLE_CELL]=[t.BLOCKS.PARAGRAPH,t.BLOCKS.UL_LIST,t.BLOCKS.OL_LIST],s[t.BLOCKS.TABLE_HEADER_CELL]=[t.BLOCKS.PARAGRAPH],s),f=[t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6],d=i([t.BLOCKS.PARAGRAPH],f,!0),h=[t.BLOCKS.DOCUMENT,t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.LIST_ITEM,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.INLINES.HYPERLINK,t.INLINES.ENTRY_HYPERLINK,t.INLINES.ASSET_HYPERLINK,t.INLINES.EMBEDDED_ENTRY,"text"],p=[t.MARKS.BOLD,t.MARKS.CODE,t.MARKS.ITALIC,t.MARKS.UNDERLINE],m={nodeType:t.BLOCKS.DOCUMENT,data:{},content:[{nodeType:t.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]};function g($,j){for(var V=0,W=Object.keys($);V<W.length;V++){var Y=W[V];if(j===$[Y])return!0}return!1}function _($){return g(t.INLINES,$.nodeType)}function v($){return g(t.BLOCKS,$.nodeType)}function y($){return $.nodeType==="text"}var E=Object.freeze({__proto__:null,isBlock:v,isInline:_,isText:y}),b=function($){var j=$.path,V=$.property,W=$.typeName,Y=$.value;return{details:'The type of "'.concat(V,'" is incorrect, expected type: ').concat(W),name:"type",path:j.toArray(),type:W,value:Y}},T=function($){var j=$.min,V=$.value,W=$.path;return{name:"size",min:j,path:W.toArray(),details:"Size must be at least ".concat(j),value:V}},S=function($){var j=$.max,V=$.value,W=$.path;return{name:"size",max:j,path:W.toArray(),details:"Size must be at most ".concat(j),value:V}},A=function($){var j=$.expected,V=$.value,W=$.path;return{details:"Value must be one of expected values",name:"in",expected:i([],j,!0).sort(),path:W.toArray(),value:V}},w=function($){var j=$.property,V=$.path;return{details:'The property "'.concat(j,'" is not expected'),name:"unexpected",path:V.toArray()}},x=function($){var j=$.property,V=$.path;return{details:'The property "'.concat(j,'" is required here'),name:"required",path:V.toArray()}},L=function(){function $(j,V){var W=this;this.obj=j,this.path=V,this._errors=[],this.catch=function(){for(var Y,C=[],D=0;D<arguments.length;D++)C[D]=arguments[D];(Y=W._errors).push.apply(Y,C)},this.exists=function(Y){return Y in W.obj?!0:(W.catch(x({property:Y,path:W.path.of(Y)})),!1)},this.object=function(Y){var C,D=Y?W.obj[Y]:W.obj;if(Y&&!W.exists(Y))return!1;if(e(D))return!0;var K=Y?W.path.of(Y):W.path,ee=(C=Y??W.path.last())!==null&&C!==void 0?C:"value";return W.catch(b({typeName:"Object",property:ee,path:K,value:D})),!1},this.string=function(Y){var C=W.obj[Y];return Y&&!W.exists(Y)?!1:typeof C=="string"?!0:(W.catch(b({typeName:"String",property:Y,path:W.path.of(Y),value:C})),!1)},this.number=function(Y,C){var D=W.obj[Y];return C&&!(Y in W.obj)?!0:W.exists(Y)?typeof D=="number"&&!Number.isNaN(D)?!0:(W.catch(b({typeName:"Number",property:Y,path:W.path.of(Y),value:D})),!1):!1},this.array=function(Y){var C=W.obj[Y];return Y&&!W.exists(Y)?!1:Array.isArray(C)?!0:(W.catch(b({typeName:"Array",property:Y,path:W.path.of(Y),value:C})),!1)},this.enum=function(Y,C){var D=W.obj[Y];
353return typeof D=="string"&&C.includes(D)?!0:(W.catch(A({expected:C,value:D,path:W.path.of(Y)})),!1)},this.empty=function(Y){if(!W.array(Y))return!1;var C=W.obj[Y];return C.length===0?!0:(W.catch(S({max:0,value:C,path:W.path.of(Y)})),!1)},this.minLength=function(Y,C){if(!W.array(Y))return!1;var D=W.obj[Y];return D.length>=C?!0:(W.catch(T({min:C,value:D,path:W.path.of(Y)})),!1)},this.noAdditionalProperties=function(Y){var C=Object.keys(W.obj).sort().filter(function(D){return!Y.includes(D)});return C.forEach(function(D){return W.catch(w({property:D,path:W.path.of(D)}))}),C.length===0},this.each=function(Y,C){if(W.array(Y)){var D=W.obj[Y],K=!1;D.forEach(function(ee,B){if(!K){var ie=C(ee,W.path.of(Y).of(B));ie.length>0&&(K=!0),W.catch.apply(W,ie)}})}}}return Object.defineProperty($.prototype,"errors",{get:function(){var j=this,V=function(W){return JSON.stringify({details:W.details,path:W.path})};return this._errors.filter(function(W,Y){return j._errors.findIndex(function(C){return V(W)===V(C)})===Y})},enumerable:!1,configurable:!0}),$}(),R=[],k=function(){function $(j,V){this.contentRule=j,this.validateData=V}return $.prototype.assert=function(j,V){var W,Y,C=new L(j,V);if(!C.object())return C.errors;C.noAdditionalProperties(["nodeType","data","content"]);var D=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(j,V),K=D.nodeTypes,ee=D.min,B=ee===void 0?0:ee;if(K.length===0&&B>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(B," with no nodeTypes"));if(C.minLength("content",B),K.length===0?C.empty("content"):C.each("content",function(fe,ue){var se=new L(fe,ue);return se.object()&&se.enum("nodeType",K),se.errors}),C.object("data")){var ie=(Y=(W=this.validateData)===null||W===void 0?void 0:W.call(this,j.data,V.of("data")))!==null&&Y!==void 0?Y:[];C.catch.apply(C,ie)}return C.errors},$}(),F=function($){r(j,$);function j(V,W){var Y=$.call(this,W,function(C,D){return Y.assertLink(C,D)})||this;return Y.linkType=V,Y.assertLink=function(C,D){var K=new L(C,D);if(K.object("target")){var ee=new L(C.target.sys,D.of("target").of("sys"));ee.object()&&(ee.enum("type",[Y.type]),ee.enum("linkType",[Y.linkType]),Y.type==="Link"?(ee.string("id"),ee.noAdditionalProperties(["type","linkType","id"])):Y.type==="ResourceLink"&&(ee.string("urn"),ee.noAdditionalProperties(["type","linkType","urn"]))),K.catch.apply(K,ee.errors)}return K.noAdditionalProperties(["target"]),K.errors},Y.type=Y.linkType.startsWith("Contentful:")?"ResourceLink":"Link",Y}return j}(k),U=function($){r(j,$);function j(){var V=$.call(this,["text"],function(W,Y){return V.assertLink(W,Y)})||this;return V.assertLink=function(W,Y){var C=new L(W,Y);return C.string("uri"),C.noAdditionalProperties(["uri"]),C.errors},V}return j}(k),H=function($,j){return new k($,j)},M=function($,j){return new F($,j)},O=function(){function $(j){j===void 0&&(j=[]);var V=this;this.path=j,this.of=function(W){return new $(i(i([],V.path,!0),[W],!1))},this.isRoot=function(){return V.path.length===0},this.last=function(){return V.path[V.path.length-1]},this.toArray=function(){return V.path}}return $}();function q($,j){var V=new L($,j);return V.object()&&(V.noAdditionalProperties(["nodeType","data","value","marks"]),V.object("data"),V.each("marks",function(W,Y){var C=new L(W,Y);return C.object()&&C.string("type"),C.errors}),V.string("value")),V.errors}var P,ae=H(i(i([],Object.values(t.INLINES),!0),["text"],!1).sort()),ce=H([t.BLOCKS.LIST_ITEM]),ye=M("Entry",R),ve=H(function(){return{nodeTypes:[t.BLOCKS.PARAGRAPH],min:1}},function($,j){var V=new L($,j);return V.noAdditionalProperties(["colspan","rowspan"]),V.number("colspan",!0),V.number("rowspan",!0),V.errors}),z=(P={},P[t.BLOCKS.DOCUMENT]=H(a),P[t.BLOCKS.PARAGRAPH]=ae,P[t.BLOCKS.HEADING_1]=ae,P[t.BLOCKS.HEADING_2]=ae,P[t.BLOCKS.HEADING_3]=ae,P[t.BLOCKS.HEADING_4]=ae,P[t.BLOCKS.HEADING_5]=ae,P[t.BLOCKS.HEADING_6]=ae,P[t.BLOCKS.QUOTE]=H(u[t.BLOCKS.QUOTE]),P[t.BLOCKS.EMBEDDED_ENTRY]=ye,P[t.BLOCKS.EMBEDDED_ASSET]=M("Asset",R),P[t.BLOCKS.EMBEDDED_RESOURCE]=M("Contentful:Entry",R),P[t.BLOCKS.HR]=H(R),P[t.BLOCKS.OL_LIST]=ce,P[t.BLOCKS.UL_LIST]=ce,P[t.BLOCKS.LIST_ITEM]=H(i([],o,!0).sort()),P[t.BLOCKS.TABLE]=H(function(){return{nodeTypes:[t.BLOCKS.TABLE_ROW],min:1}}),P[t.BLOCKS.TABLE_ROW]=H(function(){return{nodeTypes:[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],min:1}}),P[t.BLOCKS.TABLE_CELL]=ve,P[t.BLOCKS.TABLE_HEADER_CELL]=ve,P[t.INLINES.HYPERLINK]=new U,P[t.INLINES.EMBEDDED_ENTRY]=ye,P[t.INLINES.EMBEDDED_RESOURCE]=M("Contentful:Entry",R),P[t.INLINES.ENTRY_HYPERLINK]=M("Entry",["text"]),P[t.INLINES.ASSET_HYPERLINK]=M("Asset",["text"]),P[t.INLINES.RESOURCE_HYPERLINK]=M("Contentful:Entry",["text"]),P);
353function G($,j){if($.nodeType==="text")return q($,j);var V=z[$.nodeType].assert($,j);if(V.length>0)return V;var W=new L($,j);return W.each("content",function(Y,C){return G(Y,C)}),W.errors}var N=function($){var j=new O,V=new L($,j);return V.object()&&V.enum("nodeType",[t.BLOCKS.DOCUMENT]),V.errors.length>0?V.errors:G($,j)};t.CONTAINERS=u,t.EMPTY_DOCUMENT=m,t.HEADINGS=f,t.LIST_ITEM_BLOCKS=o,t.TABLE_BLOCKS=l,t.TEXT_CONTAINERS=d,t.TOP_LEVEL_BLOCKS=a,t.V1_MARKS=p,t.V1_NODE_TYPES=h,t.VOID_BLOCKS=c,t.helpers=E,t.validateRichTextDocument=N}(C_)),C_}var ht=Kae();const k_=(t,e,n)=>Ke("span",{key:n,style:{margin:"0px 5px",padding:"0 .25rem 0 .75rem",border:"1px solid #d3dce0",fontFamily:"monospace"}},`inline: ${t}, sys.id: ${e.data.target.sys.id}`),Wae={[ht.MARKS.BOLD]:(t,e)=>Ke("strong",{key:e},t),[ht.MARKS.ITALIC]:(t,e)=>Ke("em",{key:e},t),[ht.MARKS.UNDERLINE]:(t,e)=>Ke("u",{key:e},t),[ht.MARKS.CODE]:(t,e)=>Ke("code",{key:e},t),[ht.MARKS.SUPERSCRIPT]:(t,e)=>Ke("sup",{key:e},t),[ht.MARKS.SUBSCRIPT]:(t,e)=>Ke("sub",{key:e},t)},zae={[ht.BLOCKS.PARAGRAPH]:(t,e,n)=>Ke("p",{key:e},n(t.content,e,n)),[ht.BLOCKS.HEADING_1]:(t,e,n)=>Ke("h1",{key:e},n(t.content,e,n)),[ht.BLOCKS.HEADING_2]:(t,e,n)=>Ke("h2",{key:e},n(t.content,e,n)),[ht.BLOCKS.HEADING_3]:(t,e,n)=>Ke("h3",{key:e},n(t.content,e,n)),[ht.BLOCKS.HEADING_4]:(t,e,n)=>Ke("h4",{key:e},n(t.content,e,n)),[ht.BLOCKS.HEADING_5]:(t,e,n)=>Ke("h5",{key:e},n(t.content,e,n)),[ht.BLOCKS.HEADING_6]:(t,e,n)=>Ke("h6",{key:e},n(t.content,e,n)),[ht.BLOCKS.EMBEDDED_ENTRY]:(t,e,n)=>Ke("div",{key:e},n(t.content,e,n)),[ht.BLOCKS.UL_LIST]:(t,e,n)=>Ke("ul",{key:e},n(t.content,e,n)),[ht.BLOCKS.OL_LIST]:(t,e,n)=>Ke("ol",{key:e},n(t.content,e,n)),[ht.BLOCKS.LIST_ITEM]:(t,e,n)=>Ke("li",{key:e},n(t.content,e,n)),[ht.BLOCKS.QUOTE]:(t,e,n)=>Ke("blockquote",{key:e},n(t.content,e,n)),[ht.BLOCKS.TABLE]:(t,e,n)=>Ke("table",{key:e},n(t.content,e,n)),[ht.BLOCKS.TABLE_ROW]:(t,e,n)=>Ke("tr",{key:e},n(t.content,e,n)),[ht.BLOCKS.TABLE_CELL]:(t,e,n)=>Ke("td",{key:e},n(t.content,e,n)),[ht.BLOCKS.TABLE_HEADER_CELL]:(t,e,n)=>Ke("th",{key:e},n(t.content,e,n)),[ht.BLOCKS.HR]:(t,e)=>Ke("hr",{key:e}),[ht.INLINES.ASSET_HYPERLINK]:(t,e)=>k_(ht.INLINES.ASSET_HYPERLINK,t,e),[ht.INLINES.ENTRY_HYPERLINK]:(t,e)=>k_(ht.INLINES.ENTRY_HYPERLINK,t,e),[ht.INLINES.EMBEDDED_ENTRY]:(t,e)=>k_(ht.INLINES.EMBEDDED_ENTRY,t,e),[ht.INLINES.HYPERLINK]:(t,e,n)=>Ke("a",{key:e,href:t.data.uri},n(t.content,e,n)),text:({marks:t,value:e},n,r)=>t.length?[...t].reverse().reduce((s,a,o)=>r[a.type]([s],`${n}-${o}`,Ke),e):e},gB=(t,e,n)=>t.map((r,i)=>Yae(r,`${e}-${i}`,n)),Yae=(t,e,n)=>{const r=n.node;if(ht.helpers.isText(t)){const i=n.mark;return r.text(t,e,i)}else{const i=s=>gB(s,e,n);return r?!t.nodeType||!r[t.nodeType]?Ke("div",{key:e},"(Unrecognized node type) "+(t.nodeType||"empty")):r[t.nodeType](t,e,i):Ke("div",{key:e},`${e} ;lost nodeRenderer`)}},yB=({nodeRenderers:t,markRenderers:e,document:n})=>{if(!n)return console.warn("No document given to RichText renderer"),[];const r={node:{...zae,...t},mark:{...Wae,...e}};return gB(n.content,"RichText-",r)};yB.props=["document","nodeRenderers","markRenderers"];const Xae={class:"contentful-text"},Jae={__name:"ContentfulText",props:{json:{type:Object,default:null}},setup(t){const e=Vae;function n(){return{[ht.INLINES.ENTRY_HYPERLINK]:(r,i,s)=>{const{target:a}=r.data;return Ke(e,{key:i,target:a},()=>s(r.content,i,s))},[ht.INLINES.HYPERLINK]:(r,i,s)=>{const{uri:a}=r.data;return Ke("a",{key:i,href:a,target:"_blank",class:"contentful-external-link"},s(r.content,i,s))}}}return(r,i)=>(ze(),vn("div",Xae,[Je(_e(yB),{document:t.json,"node-renderers":n()},null,8,["document","node-renderers"])]))}},Qae=["src","srcset","sizes","alt","width","height","loading"],vB={__name:"Image",props:{sys:{type:Object,default:null},description:{type:String,default:null},title:{type:String,default:null},url:{type:String,default:null},width:{type:Number,default:null},height:{type:Number,default:null},query:{type:Object,default:()=>({})},noBorderRadius:{type:Boolean,default:!1},focalPoint:{type:Object,default:null},sizes:{type:String,default:"100vw"},loading:{type:String,default:"lazy",validator:t=>["lazy","eager"].includes(t)}},emits:["loaded"],setup(t,{emit:e}){const n=t,r=e,i=gu(),s=it(null),a=it(!1),o=[400,800,1200,1600,2e3];cg(async()=>{var _,v,y,E,b,T,S;if(!n.url&&((_=n.sys)!=null&&_.id)){a.value=!0;try{const A=await i.asset(n.sys.id);
353s.value={title:A.fields.title,description:A.fields.description,url:A.fields.file.url,width:((y=(v=A.fields.file.details)==null?void 0:v.image)==null?void 0:y.width)||((E=A.fields.file.details)==null?void 0:E.width),height:((T=(b=A.fields.file.details)==null?void 0:b.image)==null?void 0:T.height)||((S=A.fields.file.details)==null?void 0:S.height)}}catch(A){console.error("Failed to fetch Contentful asset:",A)}finally{a.value=!1}}});function l(_,v={}){const E={...{fm:"webp",q:90},...n.query,...v};return`${_}?${new URLSearchParams(E).toString()}`}const c=$e(()=>{var y,E,b;const _=n.url||((y=s.value)==null?void 0:y.url),v=((E=n.query)==null?void 0:E.w)||((b=n.query)==null?void 0:b.h);return!!(_&&!_.includes("?")&&!v)}),u=$e(()=>{var _;return n.url||((_=s.value)==null?void 0:_.url)}),f=$e(()=>{const _=u.value;return _&&_.includes("?")?_:_?l(_):null}),d=$e(()=>{var v;if(!c.value||!u.value)return null;const _=n.width||((v=s.value)==null?void 0:v.width);return o.filter(y=>!_||y<=_*1.5).map(y=>`${l(u.value,{w:y})} ${y}w`).join(", ")}),h=$e(()=>{var _,v;return n.description||n.title||((_=s.value)==null?void 0:_.description)||((v=s.value)==null?void 0:v.title)||"Image"}),p=$e(()=>{var b,T;if(!n.focalPoint)return null;const _=n.width||((b=s.value)==null?void 0:b.width),v=n.height||((T=s.value)==null?void 0:T.height);if(!_||!v)return null;const{x:y,y:E}=n.focalPoint;return`${y/_*100}% ${E/v*100}%`}),m=mo("imageEl");function g(){m.value&&r("loaded")}return ar(m,_=>{_&&_.addEventListener("load",g)},{immediate:!0}),go(()=>{m.value&&m.value.removeEventListener("load",g)}),(_,v)=>(ze(),vn("div",{class:fo(["image",{"image--no-border-radius":n.noBorderRadius}])},[Un("img",{ref_key:"imageEl",ref:m,src:f.value,srcset:d.value,sizes:t.sizes,alt:h.value,width:t.width,height:t.height,loading:t.loading,style:uo({objectPosition:p.value})},null,12,Qae)],2))}},Zae={__name:"BadgeTopic",props:{title:{type:String,default:null},slug:{type:String,default:null},color:{type:String,default:"gray"}},setup(t){return(e,n)=>(ze(),vn("div",{class:fo(["badge-topic",`badge-topic--${t.color}`])},wl(t.title),3))}},eoe={class:"progress-bar__track"},toe={__name:"ProgressBar",props:{current:{type:Number,default:0},total:{type:Number,default:0}},emits:["setProgress"],setup(t,{emit:e}){const n=t,r=mo("el"),i=e,s=$e(()=>n.total?n.current/n.total:0);function a({clientX:o}){const l=r.value.getBoundingClientRect(),c=o-l.left,u=l.width,f=Math.max(0,Math.min(1,c/u));i("setProgress",f)}return(o,l)=>(ze(),vn("button",{ref_key:"el",ref:r,class:"progress-bar",onClick:oc(a,["stop"])},[Un("div",eoe,[Un("div",{class:"progress-bar__inner",style:uo({transform:`scaleX(${_e(s)})`})},null,4)])],512))}};function noe(){var n;if(Date.now=Date.now||function(){return new Date().getTime()},typeof window<"u"&&("performance"in window||(window.performance={}),!("now"in window.performance))){const r=(n=performance.timing)!=null&&n.navigationStart?performance.timing.navigationStart:Date.now();window.performance.now=function(){return Date.now()-r}}class t{constructor(){this.funcs={},this.lastPass={},this.framerates={},this.nextFramePendingFuncs=[],this.nextFrameFuncs=[],this.postFrameFuncs=[],this.dt=1/0,this.timeElapsed=0,this.frame=0,this.dictonary=[],this.last=performance.now(),this.initTime=performance.now(),this.isBlurred=!1,this.onBefore=function(){},this.onAfter=function(){},typeof window<"u"&&this.init()}subscribe(i,s,a=null){this.funcs[i]||(this.dictonary.push(i),this.funcs[i]=s,this.lastPass[i]=Date.now(),a!==null?this.framerates[i]=1/a:this.framerates[i]=a)}unsubscribe(i){this.funcs[i]&&(this.dictonary.splice(this.dictonary.indexOf(i),1),delete this.funcs[i])}init(){window.addEventListener("focus",()=>{this.last=performance.now()}),window.addEventListener("visibilitychange",i=>{document.visibilityState==="visible"?this.isBlurred=!1:this.isBlurred=!0}),this.update=this.update.bind(this),this.update()}nextFrame(i){this.nextFramePendingFuncs.push(i)}postFrame(i){this.postFrameFuncs.push(i)}update(){if(requestAnimationFrame(this.update),this.isBlurred)return;for(this.onBefore(),this.frame++,this.dt=performance.now()-this.last,this.timeElapsed+=this.dt;this.nextFrameFuncs.length>0;)this.nextFrameFuncs.splice(0,1)[0]();for(;this.nextFramePendingFuncs.length>0;)this.nextFrameFuncs.push(this.nextFramePendingFuncs.splice(0,1)[0]);const i=Date.now();for(let s=0;s<this.dictonary.length;s++)this.framerates[this.dictonary[s]]!==null&&i-this.lastPass[this.dictonary[s]]<this.framerates[this.dictonary[s]]*1e3||typeof this.funcs[this.dictonary[s]]=="function"&&(this.lastPass[this.dictonary[s]]=i,this.funcs[this.dictonary[s]]());for(;this.postFrameFuncs.length>0;)this.postFrameFuncs.splice(0,1)[0]();this.onAfter(),this.last=performance.now()}}return new t}const roe=_g("videoStore",()=>{const t=it(!1),e=it(!1);return ar(t,n=>{typeof window>"u"||localStorage.setItem("captionsEnabled",n)}),Mi(()=>{typeof window>"u"||(t.value=localStorage.getItem("captionsEnabled")==="true"||!1)}),{captionsEnabled:t,muted:e}});function ioe(){return At().$viewport}const soe=["playback-id","muted","autoplay","playsinline","loop","poster"],aoe=["src","muted","autoplay","loop","playsinline","poster"],ooe={class:"video-player__play-icon"},loe={class:"video-player__controls"},coe={class:"video-player__time"},uoe={__name:"VideoPlayer",props:{ratio:{type:String,default:null},assetId:{type:String,default:null},duration:{type:Number,default:null},uploadId:{type:String,default:null},playbackId:{type:String,default:null},videoFile:{type:Object,default:null},topic:{type:Object,default:null},pip:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},posterImage:{type:Object,default:null},playFullscreen:{type:Boolean,default:!1},mini:{type:Boolean,default:!1},forcePlayOverlay:{type:Boolean,default:!1},focalPoint:{type:Object,default:null},posterImageQuery:{type:Object,default:null}},setup(t,{expose:e}){const n=t,r=DU(),i=ioe(),s=roe(),a=noe(),o=mo("player"),l=$e(()=>!!n.playbackId),c=it(!1),u=it(n.autoplay),f=it(n.autoplay?n.autoplay:s.muted),d=it(!1),h=it(n.duration),p=it(0),m=it(-4);function g(V){const W=Math.floor(V/60),Y=Math.floor(V%60);return`${W}:${Y.toString().padStart(2,"0")}`}function _(){m.value=-4}function v(){m.value=-2}async function y(){if(!o.value)return;const V=!u.value;V&&n.playFullscreen&&F(),await tr(),V?E():b()}function E(){o.value&&(c.value=!0,o.value.play())}function b(){o.value&&o.value.pause()}function T(){if(!o.value)return;const V=!f.value;f.value=V,s.muted=V}function S(){s.captionsEnabled=!s.captionsEnabled}function A(){for(let V=0;V<o.value.textTracks.length;V++){const W=o.value.textTracks[V];if(W.kind==="subtitles"||W.kind==="captions")return W}}function w(){if(!o.value)return;const V=A();V&&(V.mode="showing")}function x(){if(!o.value)return;const V=A();V&&(V.mode="hidden")}function L(){var W;if(!s.captionsEnabled)return;const V=A();if((W=V==null?void 0:V.cues)!=null&&W.length){for(let Y=0;Y<V.activeCues.length;Y++){const C=V.activeCues[Y];C.line=0}for(let Y=0;Y<V.cues.length;Y++){const C=V.cues[Y];C.line=m.value}}}ar(()=>s.captionsEnabled,V=>{V?w():x()});function R(){document.activeElement.blur()}function k(){d.value=!1,u.value=!1}function F(){o.value&&(i.isLessThan("l")||(d.value=!0))}async function U(){var V;if(d.value)k();else{const W=u.value,Y=((V=o.value)==null?void 0:V.currentTime)||0;F(),await tr(),o.value&&Y>0&&(o.value.currentTime=Y,E()),W||E()}}function H(V){if(!o.value)return;o.value.pause();const W=V*h.value;o.value.currentTime=W,setTimeout(()=>{o.value.play()},100)}function M(){p.value=o.value.currentTime}function O(){u.value=!1,d.value&&k()}function q(){!o.value||!s.captionsEnabled||L()}function P(){u.value=!0}function ae(){u.value=!1}function ce(){var V;h.value||(h.value=(V=o.value)==null?void 0:V.duration),s.captionsEnabled&&w()}function ye(V){V.key==="Escape"&&d.value&&k()}function ve(){o.value&&(o.value.addEventListener("timeupdate",M),o.value.addEventListener("ended",O),o.value.addEventListener("play",P),o.value.addEventListener("pause",ae),o.value.addEventListener("loadedmetadata",ce),window.addEventListener("keydown",ye),a.subscribe("video",q))}function z(){o.value&&(o.value.removeEventListener("timeupdate",M),o.value.removeEventListener("ended",O),o.value.removeEventListener("play",P),o.value.removeEventListener("pause",ae),o.value.removeEventListener("loadedmetadata",ce),window.removeEventListener("keydown",ye),a.unsubscribe("video",q))}ar(o,V=>{o&&ve()}),go(()=>{z()});const G=$e(()=>{if(n.mini)return!1;if(n.pip||n.forcePlayOverlay)return!u.value;if(n.playFullscreen)return!u.value&&!d.value}),N=$e(()=>n.posterImage?n.playFullscreen?!u.value&&!d.value:n.pip?!u.value:!c.value:!1),$=$e(()=>n.pip||n.mini?!1:n.playFullscreen?d.value:u.value&&c.value),j=$e(()=>{if(n.posterImage){const V=n.posterImageQuery||{w:750};return`${n.posterImage.url}?${new URLSearchParams(V).toString()}`}return l.value?`https://image.mux.com/${n.playbackId}/thumbnail.jpg?width=1920&height=1080&fit_mode=smartcrop`:null});return _P({bodyAttrs:{class:{"prevent-scroll":d}}}),e({requestFullscreen:F,play:E,pause:b}),(V,W)=>
353{const Y=iy,C=Zae,D=toe,K=vB;return ze(),Xt(mU,{to:"#teleports",disabled:!_e(d)||_e(i).isLessThan("l")},[Un("div",Wa({class:["video-player",{"video-player--has-played":_e(c),"video-player--playing":_e(u),"video-player--paused":!_e(u),"video-player--pip":t.pip,"video-player--fullscreen":_e(d),"video-player--captions":_e(s).captionsEnabled}]},_e(r),{onMouseleave:R}),[_e(l)?(ze(),vn("mux-video",{key:0,ref_key:"player",ref:o,class:"video-player__player mux","playback-id":n.playbackId,muted:_e(f),autoplay:t.autoplay,playsinline:t.autoplay?!0:void 0,loop:t.loop?!0:void 0,poster:_e(j),"min-resolution":"1080p","rendition-order":"desc","initial-bandwidth-estimate-kbps":"20000","prefer-playback":"mse",style:uo({backgroundImage:`url(${_e(j)})`,backgroundPosition:"center",backgroundSize:"cover"}),onClick:y},null,12,soe)):t.videoFile?(ze(),vn("video",{key:1,ref_key:"player",ref:o,class:"video-player__player",src:t.videoFile.url,muted:_e(f),autoplay:t.autoplay,loop:t.loop?!0:void 0,playsinline:t.autoplay?!0:void 0,poster:_e(j),onClick:y},null,8,aoe)):Zn("",!0),_e(G)?(ze(),vn("button",{key:2,class:"video-player__play-overlay",onClick:y},[lg(V.$slots,"play-overlay",{duration:g(_e(h))},()=>[Un("div",ooe,[Je(Y,{name:"play"})])])])):Zn("",!0),t.topic?(ze(),Xt(C,Wa({key:3},t.topic,{color:"blur",class:"video-player__topic"}),null,16)):Zn("",!0),_e($)?(ze(),vn("div",{key:4,class:"video-player__nav",onClick:y,onMouseenter:_,onMouseleave:v},[_e(d)?(ze(),vn("button",{key:0,class:"video-player__close",onClick:oc(k,["stop"])},[Je(Y,{name:"close"})])):Zn("",!0),Je(D,{class:"video-player__progress",total:_e(h),current:_e(p),onSetProgress:H},null,8,["total","current"]),Un("div",loe,[Un("button",{class:"video-player__play",onClick:oc(y,["stop"])},[ba(Je(Y,{name:"pause"},null,512),[[Sa,_e(u)]]),ba(Je(Y,{name:"play"},null,512),[[Sa,!_e(u)]])]),Un("div",coe,wl(g(_e(p)))+" / "+wl(g(_e(h))),1),Un("button",{class:"video-player__button video-player__button--captions",onClick:oc(S,["stop"])},[ba(Je(Y,{name:"captions-enabled"},null,512),[[Sa,_e(s).captionsEnabled]]),ba(Je(Y,{name:"captions"},null,512),[[Sa,!_e(s).captionsEnabled]])]),Un("button",{class:"video-player__button video-player__button--sound",onClick:oc(T,["stop"])},[ba(Je(Y,{name:"sound-muted"},null,512),[[Sa,_e(f)]]),ba(Je(Y,{name:"sound"},null,512),[[Sa,!_e(f)]])]),Un("button",{class:"video-player__button video-player__button--fullscreen",onClick:oc(U,["stop"])},[ba(Je(Y,{name:"contract"},null,512),[[Sa,_e(d)]]),ba(Je(Y,{name:"expand"},null,512),[[Sa,!_e(d)]])])])],32)):Zn("",!0),_e(N)?(ze(),Xt(K,{key:5,class:"video-player__poster",url:_e(j),"focal-point":t.focalPoint},null,8,["url","focal-point"])):Zn("",!0)],16)],8,["disabled"])}}};function foe(t,e){return e?t.split(/\n/g).filter(i=>!!i).map(i=>i.trim()?`<p>${i}</p>`:"").join(""):t.replace(/\n/g,"<br/>")}function doe(t){const e=pw();Mi(()=>{ar(()=>e.pageTransitioning,n=>{n||t()},{immediate:!0})})}const hoe={class:"hero-text__main"},poe=["innerHTML"],moe={key:1,class:"hero-text__label"},goe={key:2,class:"hero-text__divider"},yoe={key:1,class:"hero-text__subtitle-container"},voe={key:1,class:"hero-text__subtitle"},_oe=Object.assign({name:"HeroTextSection"},{__name:"HeroText",props:{title:{type:String,default:null},subtitle:{type:[String,Object],default:null},cta:{type:Object,default:null},image:{type:Object,default:null},video:{type:Object,default:null},autoplayVideo:{type:Boolean,default:!1},backButton:{type:Object,default:null},showScrollLabel:{type:Boolean,default:!1},heroStyle:{type:String,default:null}},setup(t){const e=mo("el"),n=nr.context(()=>{}),r=it(0);let i;function s(){if(!e.value)return;const a=e.value.querySelectorAll(".hero-text__cta, .hero-text__label"),o=e.value.querySelector(".hero-text__divider"),l=e.value.querySelectorAll(".hero-text__subtitle, .hero-text__image, .hero-text__video");n.add(()=>{i=nr.timeline({paused:!0}).fromTo(r,{value:0},{value:1,duration:1,ease:"linear"}),a&&a.length&&i.fromTo(a,{y:20,autoAlpha:0},{y:0,autoAlpha:1,duration:1,ease:"power2.out",stagger:.1},"<+=0.2"),o&&i.fromTo(o,{scaleX:0},{scaleX:1,duration:1.5,transformOrigin:"left center",ease:"power2.out"},"<+=0.2"),i.fromTo(l,{y:20,autoAlpha:0},{y:0,autoAlpha:1,duration:1,ease:"power2.out",stagger:.1},"<+=0.2")})}return Mi(()=>{s()}),doe(()=>{i&&i.play()}),(a,o)=>{const l=iy,c=FT,u=Hae,f=Gae,d=Jae,h=vB,p=uoe;return ze(),vn("header",{ref_key:"el",ref:e,class:fo(["hero-text",{"hero-text--minimal":t.heroStyle==="Minimal","hero-text--full":t.heroStyle==="Full"}])},[t.backButton?(ze(),Xt(c,{key:0,to:t.backButton.to,class:"hero-text__back"},{default:Ds(()=>[Je(l,{name:"chevron-small-left"}),Kc(" "+wl(t.backButton.label),1)]),_:1},8,["to"])):Zn("",!0),Un("div",hoe,[Je(u,{progress:_e(r),manual:""},{default:Ds(()=>[Un("h1",{class:"hero-text__title",innerHTML:("linebreaks"in a?a.linebreaks:_e(foe))(t.title)},null,8,poe)]),_:1},8,["progress"]),t.cta?(ze(),Xt(f,Wa({key:0,class:"hero-text__cta"},t.cta,{icon:""}),null,16)):Zn("",!0),t.showScrollLabel?(ze(),vn("span",moe,[o[0]||(o[0]=Kc(" Scroll to explore ")),Je(l,{name:"enter-down"})])):Zn("",!0),t.subtitle?(ze(),vn("div",goe)):Zn("",!0)]),t.subtitle?(ze(),vn("div",yoe,[typeof t.subtitle=="object"?(ze(),Xt(d,{key:0,class:"hero-text__subtitle",json:t.subtitle.json}
353,null,8,["json"])):(ze(),vn("p",voe,wl(t.subtitle),1))])):Zn("",!0),t.image?(ze(),Xt(h,Wa({key:2,class:"hero-text__image"},t.image),null,16)):Zn("",!0),t.video?(ze(),Xt(p,Wa({key:3,class:"hero-text__video"},t.video,{autoplay:t.autoplayVideo,loop:t.autoplayVideo}),null,16,["autoplay","loop"])):Zn("",!0)],2)}}}),Eoe={__name:"error",props:{error:{type:Object,required:!0}},async setup(t){let e,n;const r=pw();WF();const i=gu(),s=String.raw,a=s` 354 query ($preview: Boolean) { 355 notificationCollection( 356 limit: 1 357 preview: $preview 358 where: { activeOnSite: true } 359 ) { 360 items { 361 sys { 362 id 363 } 364 title 365 externalUrl 366 internalPage { 367 __typename 368 ... on Page { 369 sys { 370 id 371 } 372 slug 373 } 374 ... on NewsPage { 375 sys { 376 id 377 } 378 slug 379 } 380 ... on CapabilityVideo { 381 sys { 382 id 383 } 384 slug 385 } 386 } 387 download { 388 title 389 description 390 contentType 391 fileName 392 size 393 url 394 width 395 height 396 } 397 } 398 } 399 } 400`;[e,n]=ol(async()=>Pc(async()=>{var g;const d=await i.graphql(a),{data:h,errors:p}=await d.json();if(p){console.error(p);return}const m=(g=h.notificationCollection)==null?void 0:g.items[0];r.hasNotification=!!m,r.notification=m||null},"$8JMoJkaqoy")),await e,n();const o=s` 401 query ($preview: Boolean) { 402 heroCollection(limit: 1000, preview: $preview) { 403 items { 404 linkedFrom { 405 pageCollection(limit: 10, preview: $preview) { 406 items { 407 slug 408 } 409 } 410 } 411 } 412 } 413 } 414`;[e,n]=ol(async()=>Pc(async()=>{const d=await i.graphql(o),{data:h,errors:p}=await d.json();if(p){console.error(p);return}r.transparentHeaderSlugs=h.heroCollection.items.map(m=>m.linkedFrom.pageCollection.items).flat().map(m=>m.slug)},"$QKjDaDmlxB")),await e,n();const l=Q$();[e,n]=ol(async()=>Pc(async()=>{const p=await(await gu().graphql(Z$)).json();l.navs.push(...p.data.navigationCollection.items)},"$vPD4vS3kvI")),await e,n();const c=mo("transitionCoverRef"),u={css:!1,onLeave(d,h){r.pageTransitioning=!0,r.loadables=[],Fr.emit("transition:leave"),nr.set(c.value,{opacity:1}),h()},onAfterLeave(){Fr.emit("transition:leave:after")},onBeforeEnter(d){Fr.emit("transition:enter:before"),nr.set(d,{opacity:0})},async onEnter(d,h){await new Promise(p=>{if(r.loaded){p();return}const m=cg(()=>{r.loaded&&(p(),m())})}),nr.set(d,{opacity:1}),Fr.emit("transition:enter"),r.pageTransitioning=!1,Ze.refresh(),await new Promise(p=>setTimeout(p,250)),nr.to(c.value,{onComplete(){h()},opacity:0,duration:.5})},onAfterEnter(){Fr.emit("transition:enter:after")}};Mi(()=>{window&&document.body.classList.toggle("is-safari",/^((?!chrome|android).)*safari/i.test(window.navigator.userAgent))});const f=yo();return(d,h)=>{const p=_oe,m=wM;return ze(),Xt(m,null,{default:Ds(()=>[Je(pg,cI(RT(u)),{default:Ds(()=>[(ze(),vn("div",{key:_e(f).path,class:"transition-wrapper"},[Je(p,{title:"Looks like this page took a wrong turn.",subtitle:"The page youâre looking for doesnât exist",cta:{label:"Back to home",internalPage:"/"},"hero-style":"Full"})]))]),_:1},16),Un("div",{ref_key:"transitionCoverRef",ref:c,class:"transition-cover"},null,512)]),_:1})}}},boe={key:0},rI={__name:"nuxt-root",setup(t){const e=()=>null,n=At(),r=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",r);xr().beforeEach(l)}const i=!1;cl(Fd,yo()),n.hooks.callHookWith(l=>l.map(c=>c()),"vue:setup");const s=yg(),a=!1;XI((l,c,u)=>{if(n.hooks.callHook("vue:error",l,c,u).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),Zk(l)&&(l.fatal||l.unhandled))return n.runWithContext(()=>yc(l)),!1});const o=!1;return(l,c)=>(ze(),Xt(AT,{onResolve:_e(r)},{default:Ds(()=>[_e(a)?(ze(),vn("div",boe)):_e(s)?(ze(),Xt(_e(Eoe),{key:1,error:_e(s)},null,8,["error"])):_e(o)?(ze(),Xt(_e(e),{key:2,context:_e(o)},null,8,["context"])):_e(i)?(ze(),Xt(ZI(_e(i)),{key:3})):(ze(),Xt(_e(aae),{key:4}))]),_:1},8,["onResolve"]))}};let iI;{let t;iI=async function(){var a,o;if(t)return t;const r=!!(((a=window.__NUXT__)==null?void 0:a.serverRendered)??((o=document.getElementById("__NUXT_DATA__"))==null?void 0:o.dataset.ssr)==="true")?X2(rI):Y2(rI),i=uG({vueApp:r});async function s(l){await i.callHook("app:error",l),i.payload.error=i.payload.error||vg(l)}r.config.errorHandler=s,i.hook("app:suspense:resolve",()=>{r.config.errorHandler===s&&(r.config.errorHandler=void 0)});try{await hG(i,oY)}catch(l){s(l)}try{await i.hooks.callHook("app:created",r),await i.hooks.callHook("app:beforeMount",r),r.mount(oG),await i.hooks.callHook("app:mounted",r),await tr()}catch(l){s(l)}return r},t=iI().catch(e=>{throw console.error("Error while mounting app:",e),e})}export{ZP as $,KP as A,j3 as B,Rg as C,Gn as D,Xq as E,pD as F,vm as G,wu as H,Xoe as I,Zoe as J,Joe as K,Of as L,bn as M,fle as N,o3 as O,joe as P,Xy as Q,Su as R,w3 as S,Au as T,Ru as U,Ot as V,mA as W,vE as X,gA as Y,Ls as Z,Woe as _,GT as a,vB as a$,Foe as a0,$oe as a1,Boe as a2,c3 as a3,qP as a4,Jq as a5,aK as a6,Goe as a7,Ii as a8,xt as a9,lle as aA,gu as aB,yo as aC,ol as aD,ar as aE,cg as aF,_e as aG,vn as aH,er as aI,Xt as aJ,cI as aK,Wa as aL,Zn as aM,Je as aN,_oe as aO,ze as aP,iae as aQ,vg as aR,it as aS,mo as aT,RG as aU,Mi as aV,Un as aW,wl as aX,fo as aY,Kc as aZ,nr as a_,es as aa,NA as ab,LD as ac,q3 as ad,V3 as ae,wz as af,uW as ag,Tz as ah,tf as ai,_m as aj,Il as ak,Qc as al,r3 as am,Hoe as an,yW as ao,qT as ap,ale as aq,ole as ar,W3 as as,dle as at,sle as au,Y3 as av,Ya as aw,YP as ax,lW as ay,Koe as az,Voe as b,_a as b$,Ds as b0,Jae as b1,ts as b2,$e as b3,uoe as b4,Gae as b5,tU as b6,Ooe as b7,Eu as b8,Gk as b9,ZI as bA,ya as bB,cl as bC,eI as bD,bq as bE,bu as bF,Ve as bG,lt as bH,Fr as bI,pg as bJ,_g as bK,jc as bL,Moe as bM,koe as bN,Coe as bO,oc as bP,Roe as bQ,ple as bR,uo as bS,mU as bT,Loe as bU,fP as bV,At as bW,Doe as bX,_T as bY,RU as bZ,YI as b_,_P as ba,FT as bb,iy as bc,Soe as bd,pw as be,RT as bf,ioe as bg,doe as bh,go as bi,woe as bj,Hae as bk,tr as bl,ri as bm,HP as bn,foe as bo,Zae as bp,Ze as bq,xr as br,lg as bs,xoe as bt,Aoe as bu,ba as bv,Ioe as bw,Wt as bx,mB as by,noe as bz,WT as c,OB as c0,fT as c1,Noe as c2,VV as c3,Q$ as c4,GP as c5,UT as d,Ag as e,ule as f,tle as g,Yoe as h,Uoe as i,Qoe as j,ele as k,Ye as l,zoe as m,cle as n,eu as o,ile as p,qoe as q,nle as r,YK as s,Q3 as t,Xa as u,_n as v,Bd as w,rle as x,KT as y,$T as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.