1var S9=Object.defineProperty;var T9=(i,e,t)=>e in i?S9(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var O=(i,e,t)=>(T9(i,typeof e!="symbol"?e+"":e,t),t),_E=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)};var f=(i,e,t)=>(_E(i,e,"read from private field"),t?t.call(i):e.get(i)),b=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},D=(i,e,t,n)=>(_E(i,e,"write to private field"),n?n.call(i,t):e.set(i,t),t);var bL=(i,e,t,n)=>({set _(s){D(i,e,s,t)},get _(){return f(i,e,n)}}),y=(i,e,t)=>(_E(i,e,"access private method"),t);var $P=!1,LP=!1,lu=[],IP=-1;function k9(i){E9(i)}function E9(i){lu.includes(i)||lu.push(i),C9()}function P9(i){let e=lu.indexOf(i);e!==-1&&e>IP&&lu.splice(e,1)}function C9(){!LP&&!$P&&($P=!0,queueMicrotask(A9))}function A9(){$P=!1,LP=!0;for(let i=0;i<lu.length;i++)lu[i](),IP=i;lu.length=0,IP=-1,LP=!1}var tf,Ru,ef,YR,DP=!0;function M9(i){DP=!1,i(),DP=!0}function O9(i){tf=i.reactive,ef=i.release,Ru=e=>i.effect(e,{scheduler:t=>{DP?k9(t):t()}}),YR=i.raw}function yL(i){Ru=i}function $9(i){let e=()=>{};return[n=>{let s=Ru(n);return i._x_effects||(i._x_effects=new Set,i._x_runEffects=()=>{i._x_effects.forEach(r=>r())}),i._x_effects.add(s),e=()=>{s!==void 0&&(i._x_effects.delete(s),ef(s))},s},()=>{e()}]}function KR(i,e){let t=!0,n,s=Ru(()=>{let r=i();JSON.stringify(r),t?n=r:queueMicrotask(()=>{e(r,n),n=r}),t=!1});return()=>ef(s)}var XR=[],QR=[],JR=[];function L9(i){JR.push(i)}function HM(i,e){typeof e=="function"?(i._x_cleanups||(i._x_cleanups=[]),i._x_cleanups.push(e)):(e=i,QR.push(e))}function ZR(i){XR.push(i)}function t5(i,e,t){i._x_attributeCleanups||(i._x_attributeCleanups={}),i._x_attributeCleanups[e]||(i._x_attributeCleanups[e]=[]),i._x_attributeCleanups[e].push(t)}function e5(i,e){i._x_attributeCleanups&&Object.entries(i._x_attributeCleanups).forEach(([t,n])=>{(e===void 0||e.includes(t))&&(n.forEach(s=>s()),delete i._x_attributeCleanups[t])})}function I9(i){var e,t;for((e=i._x_effects)==null||e.forEach(P9);(t=i._x_cleanups)!=null&&t.length;)i._x_cleanups.pop()()}var WM=new MutationObserver(YM),jM=!1;function UM(){WM.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),jM=!0}function i5(){D9(),WM.disconnect(),jM=!1}var pf=[];function D9(){let i=WM.takeRecords();pf.push(()=>i.length>0&&YM(i));let e=pf.length;queueMicrotask(()=>{if(pf.length===e)for(;pf.length>0;)pf.shift()()})}function ti(i){if(!jM)return i();i5();let e=i();return UM(),e}var GM=!1,Ry=[];function R9(){GM=!0}function F9(){GM=!1,YM(Ry),Ry=[]}function YM(i){if(GM){Ry=Ry.concat(i);return}let e=[],t=new Set,n=new Map,s=new Map;for(let r=0;r<i.length;r++)if(!i[r].target._x_ignoreMutationObserver&&(i[r].type==="childList"&&(i[r].removedNodes.forEach(o=>{o.nodeType===1&&o._x_marker&&t.add(o)}),i[r].addedNodes.forEach(o=>{if(o.nodeType===1){if(t.has(o)){t.delete(o);return}o._x_marker||e.push(o)}})),i[r].type==="attributes")){let o=i[r].target,a=i[r].attributeName,l=i[r].oldValue,c=()=>{n.has(o)||n.set(o,[]),n.get(o).push({name:a,value:o.getAttribute(a)})},u=()=>{s.has(o)||s.set(o,[]),s.get(o).push(a)};o.hasAttribute(a)&&l===null?c():o.hasAttribute(a)?(u(),c()):u()}s.forEach((r,o)=>{e5(o,r)}),n.forEach((r,o)=>{XR.forEach(a=>a(o,r))});for(let r of t)e.some(o=>
vendor: 18,252 bytes, lines 1-5
1o.contains(r))||QR.forEach(o=>o(r));for(let r of e)r.isConnected&&JR.forEach(o=>o(r));e=null,t=null,n=null,s=null}function n5(i){return D0(Dh(i))}function I0(i,e,t){return i._x_dataStack=[e,...Dh(t||i)],()=>{i._x_dataStack=i._x_dataStack.filter(n=>n!==e)}}function Dh(i){return i._x_dataStack?i._x_dataStack:typeof ShadowRoot=="function"&&i instanceof ShadowRoot?Dh(i.host):i.parentNode?Dh(i.parentNode):[]}function D0(i){return new Proxy({objects:i},N9)}var N9={ownKeys({objects:i}){return Array.from(new Set(i.flatMap(e=>Object.keys(e))))},has({objects:i},e){return e==Symbol.unscopables?!1:i.some(t=>Object.prototype.hasOwnProperty.call(t,e)||Reflect.has(t,e))},get({objects:i},e,t){return e=="toJSON"?B9:Reflect.get(i.find(n=>Reflect.has(n,e))||{},e,t)},set({objects:i},e,t,n){const s=i.find(o=>Object.prototype.hasOwnProperty.call(o,e))||i[i.length-1],r=Object.getOwnPropertyDescriptor(s,e);return r!=null&&r.set&&(r!=null&&r.get)?r.set.call(n,t)||!0:Reflect.set(s,e,t)}};function B9(){return Reflect.ownKeys(this).reduce((e,t)=>(e[t]=Reflect.get(this,t),e),{})}function s5(i){let e=n=>typeof n=="object"&&!Array.isArray(n)&&n!==null,t=(n,s="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([r,{value:o,enumerable:a}])=>{if(a===!1||o===void 0||typeof o=="object"&&o!==null&&o.__v_skip)return;let l=s===""?r:`${s}.${r}`;typeof o=="object"&&o!==null&&o._x_interceptor?n[r]=o.initialize(i,l,r):e(o)&&o!==n&&!(o instanceof Element)&&t(o,l)})};return t(i)}function r5(i,e=()=>{}){let t={initialValue:void 0,_x_interceptor:!0,initialize(n,s,r){return i(this.initialValue,()=>z9(n,s),o=>RP(n,s,o),s,r)}};return e(t),n=>{if(typeof n=="object"&&n!==null&&n._x_interceptor){let s=t.initialize.bind(t);t.initialize=(r,o,a)=>{let l=n.initialize(r,o,a);return t.initialValue=l,s(r,o,a)}}else t.initialValue=n;return t}}function z9(i,e){return e.split(".").reduce((t,n)=>t[n],i)}function RP(i,e,t){if(typeof e=="string"&&(e=e.split(".")),e.length===1)i[e[0]]=t;else{if(e.length===0)throw error;return i[e[0]]||(i[e[0]]={}),RP(i[e[0]],e.slice(1),t)}}var o5={};function gr(i,e){o5[i]=e}function FP(i,e){let t=V9(e);return Object.entries(o5).forEach(([n,s])=>{Object.defineProperty(i,`$${n}`,{get(){return s(e,t)},enumerable:!1})}),i}function V9(i){let[e,t]=h5(i),n={interceptor:r5,...e};return HM(i,t),n}function q9(i,e,t,...n){try{return t(...n)}catch(s){xp(s,i,e)}}function xp(i,e,t=void 0){i=Object.assign(i??{message:"No error message given."},{el:e,expression:t}),console.warn(`Alpine Expression Error: ${i.message} 2 3${t?'Expression: "'+t+`" 4 5`:""}`,e),setTimeout(()=>{throw i},0)}var Hb=!0;function a5(i){let e=Hb;Hb=!1;let t=i();return Hb=e,t}function cu(i,e,t={}){let n;return kn(i,e)(s=>n=s,t),n}function kn(...i){return l5(...i)}var l5=c5;function H9(i){l5=i}function c5(i,e){let t={};FP(t,i);let n=[t,...Dh(i)],s=typeof e=="function"?W9(n,e):U9(n,e,i);return q9.bind(null,i,e,s)}function W9(i,e){return(t=()=>{},{scope:n={},params:s=[]}={})=>{let r=e.apply(D0([n,...i]),s);Fy(t,r)}}var xE={};function j9(i,e){if(xE[i])return xE[i];let t=Object.getPrototypeOf(async function(){}).constructor,n=/^[\n\s]*if.*\(.*\)/.test(i.trim())||/^(let|const)\s/.test(i.trim())?`(async()=>{ ${i} })()`:i,r=(()=>{try{let o=new t(["__self","scope"],`with (scope) { __self.result = ${n} }; __self.finished = true; return __self.result;`);return Object.defineProperty(o,"name",{value:`[Alpine] ${i}`}),o}catch(o){return xp(o,e,i),Promise.resolve()}})();return xE[i]=r,r}function U9(i,e,t){let n=j9(e,t);return(s=()=>{},{scope:r={},params:o=[]}={})=>{n.result=void 0,n.finished=!1;let a=D0([r,...i]);if(typeof n=="function"){let l=n(n,a).catch(c=>xp(c,t,e));n.finished?(Fy(s,n.result,a,o,t),n.result=void 0):l.then(c=>{Fy(s,c,a,o,t)}).catch(c=>xp(c,t,e)).finally(()=>n.result=void 0)}}}function Fy(i,e,t,n,s){if(Hb&&typeof e=="function"){let r=e.apply(t,n);r instanceof Promise?r.then(o=>Fy(i,o,t,n)).catch(o=>xp(o,s,e)):i(r)}else typeof e=="object"&&e instanceof Promise?e.then(r=>i(r)):i(e)}var KM="x-";function nf(i=""){return KM+i}function G9(i){KM=i}var Ny={};function gi(i,e){return Ny[i]=e,{before(t){if(!Ny[t]){console.warn(String.raw`Cannot find directive \`${t}\`. \`${i}\` will use the default order of execution`);return}const n=cc.indexOf(t);cc.splice(n>=0?n:cc.indexOf("DEFAULT"),0,i)}}}function Y9(i){return Object.keys(Ny).includes(i)}function XM(i,e,t){if(e=Array.from(e),i._x_virtualDirectives){let r=Object.entries(i._x_virtualDirectives).map(([a,l])=>({name:a,value:l})),o=u5(r);r=r.map(a=>o.find(l=>l.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),e=e.concat(r)}let n={};return e.map(g5((r,o)=>n[r]=o)).filter(b5).map(Q9(n,t)).sort(J9).map(r=>X9(i,r))}function u5(i){return Array.from(i).map(g5()).filter(e=>!b5(e))}var NP=!1,Of=new Map,d5=Symbol();function K9(i){NP=!0;let e=Symbol();d5=e,Of.set(e,[]);let t=()=>{for(;Of.get(e).length;)Of.get(e).shift()();Of.delete(e)},n=()=>{NP=!1,t()};i(t),n()}function h5(i){let e=[],t=a=>e.push(a),[n,s]=$9(i);return e.push(s),[{Alpine:R0,effect:n,cleanup:t,evaluateLater:kn.bind(kn,i),evaluate:cu.bind(cu,i)},()=>e.forEach(a=>a())]}function X9(i,e){let t=()=>{},n=Ny[e.type]||t,[s,r]=h5(i);t5(i,e.original,r);let o=()=>{i._x_ignore||i._x_ignoreSelf||(n.inline&&n.inline(i,e,s),n=n.bind(n,i,e,s),NP?Of.get(d5).push(n):n())};return o.runCleanups=r,o}var f5=(i,e)=>({name:t,value:n})=>(t.startsWith(i)&&(t=t.replace(i,e)),{name:t,value:n}),p5=i=>i;function g5(i=()=>{}){return({name:e,value:t})=>{let{name:n,value:s}=m5.reduce((r,o)=>o(r),{name:e,value:t});return n!==e&&i(n,e),{name:n,value:s}}}var m5=[];function QM(i){m5.push(i)}function b5({name:i}){return y5().test(i)}var y5=()=>new RegExp(`^${KM}([^:^.]+)\\b`);function Q9(i,e){return({name:t,value:n})=>{let s=t.match(y5()),r=t.match(/:([a-zA-Z0-9\-_:]+)/),o=t.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=e||i[t]||t;return{type:s?s[1]:null,value:r?r[1]:null,modifiers:o.map(l=>l.replace(".","")),expression:n,original:a}}}var BP="DEFAULT",cc=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",BP,"teleport"];function J9(i,e){let t=cc.indexOf(i.type)===-1?BP:i.type,n=cc.indexOf(e.type)===-1?BP:e.type;return cc.indexOf(t)-cc.indexOf(n)}function Qf(i,e,t={}){i.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0,cancelable:!0}))}function Tu(i,e){if(typeof ShadowRoot=="function"&&i instanceof ShadowRoot){Array.from(i.children).forEach(s=>Tu(s,e));return}let t=!1;if(e(i,()=>t=!0),t)return;let n=i.firstElementChild;for(;n;)Tu(n,e),n=n.nextElementSibling}function Ns(i,...e){console.warn(`Alpine Warning: ${i}`,...e)}var vL=!1;function Z9(){vL&&Ns("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),vL=!0,document.body||Ns("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),Qf(document,"alpine:init"),Qf(document,"alpine:initializing"),UM(),L9(e=>sa(e,Tu)),HM(e=>rf(e)),ZR((e,t)=>{XM(e,t).forEach(n=>n())});let i=e=>!Mk(e.parentElement,!0);Array.from(document.querySelectorAll(_5().join(","))).filter(i).forEach(e=>{sa(e)}),Qf(document,"alpine:initialized"),setTimeout(()=>{nU()})}var JM=[],v5=[];function w5(){return JM.map(i=>i())}function _5(){return JM.concat(v5).map(i=>i())}function x5(i){JM.push(i)}function S5(i){v5.push(i)}function Mk(i,e=!1){return sf(i,t=>{if((e?_5():w5()).some(s=>t.matches(s)))return!0})}function sf(i,e){if(i){if(e(i))return i;if(i._x_teleportBack&&(i=i._x_teleportBack),!!i.parentElement)return sf(i.parentElement,e)}}function tU(i){return w5().some(e=>i.matches(e))}var T5=[];function eU(i){T5.push(i)}var iU=1;function sa(i,e=Tu,t=()=>{}){sf(i,n=>n._x_ignore)||K9(()=>{e(i,(n,s)=>{n._x_marker||(t(n,s),T5.forEach(r=>r(n,s)),XM(n,n.attributes).forEach(r=>r()),n._x_ignore||(n._x_marker=iU++),n._x_ignore&&s())})})}function rf(i,e=Tu){e(i,t=>{I9(t),e5(t),delete t._x_marker})}function nU(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([e,t,n])=>{Y9(t)||n.some(s=>{if(document.querySelector(s))return Ns(`found "${s}", but missing ${e} plugin`),!0})})}var zP=[],ZM=!1;function tO(i=()=>{}){return queueMicrotask(()=>{ZM||setTimeout(()=>{VP()})}),new Promise(e=>{zP.push(()=>{i(),e()})})}function VP(){for(ZM=!1;zP.length;)zP.shift()()}function sU(){ZM=!0}function eO(i,e){return Array.isArray(e)?wL(i,e.join(" ")):typeof e=="object"&&e!==null?rU(i,e):typeof e=="function"?eO(i,e()):wL(i,e)}function wL(i,e){let t=s=>s.split(" ").filter(r=>!i.classList.contains(r)).filter(Boolean),n=s=>(i.classList.add(...s),()=>{i.classList.remove(...s)});return e=e===!0?e="":e||"",n(t(e))}function rU(i,e){let t=a=>a.split(" ").filter(Boolean),n=Object.entries(e).flatMap(([a,l])=>l?t(a):!1).filter(Boolean),s=Object.entries(e).flatMap(([a,l])=>l?!1:t(a)).filter(Boolean),r=[],o=[];return s.forEach(a=>{i.classList.contains(a)&&(i.classList.remove(a),o.push(a))}),n.forEach(a=>{i.classList.contains(a)||(i.classList.add(a),r.push(a))}),()=>{o.forEach(a=>i.classList.add(a)),r.forEach(a=>i.classList.remove(a))}}function Ok(i,e){return typeof e=="object"&&e!==null?oU(i,e):aU(i,e)}function oU(i,e){let t={};return Object.entries(e).forEach(([n,s])=>{t[n]=i.style[n],n.startsWith("--")||(n=lU(n)),i.style.setProperty(n,s)}),setTimeout(()=>{i.style.length===0&&i.removeAttribute("style")}),()=>{Ok(i,t)}}function aU(i,e){let t=i.getAttribute("style",e);return i.setAttribute("style",e),()=>{i.setAttribute("style",t||"")}}function lU(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function qP(i,e=()=>{}){let t=!1;return function(){t?e.apply(this,arguments):(t=!0,i.apply(this,arguments))}}gi("transition",(i,{value:e,modifiers:t,expression:n},{evaluate:s})=>{typeof n=="function"&&(n=s(n)),n!==!1&&(!n||typeof n=="boolean"?uU(i,t,e):cU(i,n,e))});function cU(i,e,t){k5(i,eO,""),{enter:s=>{i._x_transition.enter.during=s},"enter-start":s=>{i._x_transition.enter.start=s},"enter-end":s=>{i._x_transition.enter.end=s},leave:s=>{i._x_transition.leave.during=s},"leave-start":s=>{i._x_transition.leave.start=s},"leave-end":s=>{i._x_transition.leave.end=s}}[t](e)}function uU(i,e,t){k5(i,Ok);let n=!e.includes("in")&&!e.includes("out")&&!t,s=n||e.includes("in")||["enter"].includes(t),r=n||e.includes("out")||["leave"].includes(t);e.includes("in")&&!n&&(e=e.filter((w,_)=>_<e.indexOf("out"))),e.includes("out")&&!n&&(e=e.filter((w,_)=>_>e.indexOf("out")));let o=!e.includes("opacity")&&!e.includes("scale"),a=o||e.includes("opacity"),l=o||e.includes("scale"),c=a?0:1,u=l?gf(e,"scale",95)/100:1,d=gf(e,"delay",0)/1e3,h=gf(e,"origin","center"),p="opacity, transform",m=gf(e,"duration",150)/1e3,g=gf(e,"duration",75)/1e3,v="cubic-bezier(0.4, 0.0, 0.2, 1)";s&&(i._x_transition.enter.during={transformOrigin:h,transitionDelay:`${d}s`,transitionProperty:p,transitionDuration:`${m}s`,transitionTimingFunction:v},i._x_transition.enter.start={opacity:c,transform:`scale(${u})`},i._x_transition.enter.end={opacity:1,transform:"scale(1)"}),r&&(i._x_transition.leave.during={transformOrigin:h,transitionDelay:`${d}s`,transitionProperty:p,transitionDuration:`${g}s`,transitionTimingFunction:v},i._x_transition.leave.start={opacity:1,transform:"scale(1)"},i._x_transition.leave.end={opacity:c,transform:`scale(${u})`})}function k5(i,e,t={}){i._x_transition||(i._x_transition={enter:{during:t,start:t,end:t},leave:{during:t,start:t,end:t},in(n=()=>{},s=()=>{}){HP(i,e,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,s)},out(n=()=>{},s=()=>{}){HP(i,e,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,s)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(i,e,t,n){const s=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let r=()=>s(t);if(e){i._x_transition&&(i._x_transition.enter||i._x_transition.leave)?i._x_transition.enter&&(Object.entries(i._x_transition.enter.during).length||Object.entries(i._x_transition.enter.start).length||Object.entries(i._x_transition.enter.end).length)?i._x_transition.in(t):r():i._x_transition?i._x_transition.in(t):r();return}i._x_hidePromise=i._x_transition?new Promise((o,a)=>{i._x_transition.out(()=>{},()=>o(n)),i._x_transitioning&&i._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(n),queueMicrotask(()=>{let o=E5(i);o?(o._x_hideChildren||(o._x_hideChildren=[]),o._x_hideChildren.push(i)):s(()=>{let a=l=>{let c=Promise.all([l._x_hidePromise,...(l._x_hideChildren||[]).map(a)]).then(([u])=>u==null?void 0:u());return delete l._x_hidePromise,delete l._x_hideChildren,c};a(i).catch(l=>{if(!l.isFromCancelledTransition)throw l})})})};function E5(i){let e=i.parentNode;if(e)return e._x_hidePromise?e:E5(e)}function HP(i,e,{during:t,start:n,end:s}={},r=()=>{},o=()=>{}){if(i._x_transitioning&&i._x_transitioning.cancel(),Object.keys(t).length===0&&Object.keys(n).length===0&&Object.keys(s).length===0){r(),o();return}let a,l,c;dU(i,{start(){a=e(i,n)},during(){l=e(i,t)},before:r,end(){a(),c=e(i,s)},after:o,cleanup(){l(),c()}})}function dU(i,e){let t,n,s,r=qP(()=>{ti(()=>{t=!0,n||e.before(),s||(e.end(),VP()),e.after(),i.isConnected&&e.cleanup(),delete i._x_transitioning})});i._x_transitioning={beforeCancels:[],beforeCancel(o){this.beforeCancels.push(o)},cancel:qP(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();r()}),finish:r},ti(()=>{e.start(),e.during()}),sU(),requestAnimationFrame(()=>{if(t)return;let o=Number(getComputedStyle(i).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(i).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;o===0&&(o=Number(getComputedStyle(i).animationDuration.replace("s",""))*1e3),ti(()=>{e.before()}),n=!0,requestAnimationFrame(()=>{t||(ti(()=>{e.end()}),VP(),setTimeout(i._x_transitioning.finish,o+a),s=!0)})})}function gf(i,e,t){if(i.indexOf(e)===-1)return t;const n=i[i.indexOf(e)+1];if(!n||e==="scale"&&isNaN(n))return t;if(e==="duration"||e==="delay"){let s=n.match(/([0-9]+)ms/);if(s)return s[1]}return e==="origin"&&["top","right","left","center","bottom"].includes(i[i.indexOf(e)+2])?[n,i[i.indexOf(e)+2]].join(" "):n}var wl=!1;function Al(i,e=()=>{}){return(...t)=>wl?e(...t):i(...t)}function hU(i){return(...e)=>wl&&i(...e)}var P5=[];function $k(i){P5.push(i)}function fU(i,e){P5.forEach(t=>t(i,e)),wl=!0,C5(()=>{sa(e,(t,n)=>{n(t,()=>{})})}),wl=!1}var WP=!1;function pU(i,e){e._x_dataStack||(e._x_dataStack=i._x_dataStack),wl=!0,WP=!0,C5(()=>{gU(e)}),wl=!1,WP=!1}function gU(i){let e=!1;sa(i,(n,s)=>{Tu(n,(r,o)=>{if(e&&tU(r))return o();e=!0,s(r,o)})})}function C5(i){let e=Ru;yL((t,n)=>{let s=e(t);return ef(s),()=>{}}),i(),yL(e)}function A5(i,e,t,n=[]){switch(i._x_bindings||(i._x_bindings=tf({})),i._x_bindings[e]=t,e=n.includes("camel")?SU(e):e,e){case"value":mU(i,t);break;case"style":yU(i,t);break;case"class":bU(i,t);break;case"selected":case"checked":vU(i,e,t);break;default:M5(i,e,t);break}}function mU(i,e){if(L5(i))i.attributes.value===void 0&&(i.value=e),window.fromModel&&(typeof e=="boolean"?i.checked=Wb(i.value)===e:i.checked=_L(i.value,e));else if(iO(i))Number.isInteger(e)?i.value=e:!Array.isArray(e)&&typeof e!="boolean"&&![null,void 0].includes(e)?i.value=String(e):Array.isArray(e)?i.checked=e.some(t=>_L(t,i.value)):i.checked=!!e;else if(i.tagName==="SELECT")xU(i,e);else{if(i.value===e)return;i.value=e===void 0?"":e}}function bU(i,e){i._x_undoAddedClasses&&i._x_undoAddedClasses(),i._x_undoAddedClasses=eO(i,e)}function yU(i,e){i._x_undoAddedStyles&&i._x_undoAddedStyles(),i._x_undoAddedStyles=Ok(i,e)}function vU(i,e,t){M5(i,e,t),_U(i,e,t)}function M5(i,e,t){[null,void 0,!1].includes(t)&&kU(e)?i.removeAttribute(e):(O5(e)&&(t=e),wU(i,e,t))}function wU(i,e,t){i.getAttribute(e)!=t&&i.setAttribute(e,t)}function _U(i,e,t){i[e]!==t&&(i[e]=t)}function xU(i,e){const t=[].concat(e).map(n=>n+"");Array.from(i.options).forEach(n=>{n.selected=t.includes(n.value)})}function SU(i){return i.toLowerCase().replace(/-(\w)/g,(e,t)=>t.toUpperCase())}function _L(i,e){return i==e}function Wb(i){return[1,"1","true","on","yes",!0].includes(i)?!0:[0,"0","false","off","no",!1].includes(i)?!1:i?!!i:null}var TU=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function O5(i){return TU.has(i)}function kU(i){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(i)}function EU(i,e,t){return i._x_bindings&&i._x_bindings[e]!==void 0?i._x_bindings[e]:$5(i,e,t)}function PU(i,e,t,n=!0){if(i._x_bindings&&i._x_bindings[e]!==void 0)return i._x_bindings[e];if(i._x_inlineBindings&&i._x_inlineBindings[e]!==void 0){let s=i._x_inlineBindings[e];return s.extract=n,a5(()=>cu(i,s.expression))}return $5(i,e,t)}function $5(i,e,t){let n=i.getAttribute(e);return n===null?typeof t=="function"?t():t:n===""?!0:O5(e)?!![e,"true"].includes(n):n}function iO(i){return i.type==="checkbox"||i.localName==="ui-checkbox"||i.localName==="ui-switch"}function L5(i){return i.type==="radio"||i.localName==="ui-radio"}function I5(i,e){var t;return function(){var n=this,s=arguments,r=function(){t=null,i.apply(n,s)};clearTimeout(t),t=setTimeout(r,e)}}function D5(i,e){let t;return function(){let n=this,s=arguments;t||(i.apply(n,s),t=!0,setTimeout(()=>t=!1,e))}}function R5({get:i,set:e},{get:t,set:n}){let s=!0,r,o=Ru(()=>{let a=i(),l=t();if(s)n(SE(a)),s=!1;else{let c=JSON.stringify(a),u=JSON.stringify(l);c!==r?n(SE(a)):c!==u&&e(SE(l))}r=JSON.stringify(i()),JSON.stringify(t())});return()=>{ef(o)}}function SE(i){return typeof i=="object"?JSON.parse(JSON.stringify(i)):i}function CU(i){(Array.isArray(i)?i:[i]).forEach(t=>t(R0))}var Jl={},xL=!1;function AU(i,e){if(xL||(Jl=tf(Jl),xL=!0),e===void 0)return Jl[i];Jl[i]=e,s5(Jl[i]),typeof e=="object"&&e!==null&&e.hasOwnProperty("init")&&typeof e.init=="function"&&Jl[i].init()}function MU(){return Jl}var F5={};function OU(i,e){let t=typeof e!="function"?()=>e:e;return i instanceof Element?N5(i,t()):(F5[i]=t,()=>{})}
5function $U(i){return Object.entries(F5).forEach(([e,t])=>{Object.defineProperty(i,e,{get(){return(...n)=>t(...n)}})}),i}function N5(i,e,t){let n=[];for(;n.length;)n.pop()();let s=Object.entries(e).map(([o,a])=>({name:o,value:a})),r=u5(s);return s=s.map(o=>r.find(a=>a.name===o.name)?{name:`x-bind:${o.name}`,value:`"${o.value}"`}:o),XM(i,s,t).map(o=>{n.push(o.runCleanups),o()}),()=>{for(;n.length;)n.pop()()}}var B5={};function LU(i,e){B5[i]=e}function IU(i,e){return Object.entries(B5).forEach(([t,n])=>{Object.defineProperty(i,t,{get(){return(...s)=>n.bind(e)(...s)},enumerable:!1})}),i}var DU={get reactive(){return tf},get release(){return ef},get effect(){return Ru},get raw(){return YR},version:"3.14.8",flushAndStopDeferringMutations:F9,dontAutoEvaluateFunctions:a5,disableEffectScheduling:M9,startObservingMutations:UM,stopObservingMutations:i5,setReactivityEngine:O9,onAttributeRemoved:t5,onAttributesAdded:ZR,closestDataStack:Dh,skipDuringClone:Al,onlyDuringClone:hU,addRootSelector:x5,addInitSelector:S5,interceptClone:$k,addScopeToNode:I0,deferMutations:R9,mapAttributes:QM,evaluateLater:kn,interceptInit:eU,setEvaluator:H9,mergeProxies:D0,extractProp:PU,findClosest:sf,onElRemoved:HM,closestRoot:Mk,destroyTree:rf,interceptor:r5,transition:HP,setStyles:Ok,mutateDom:ti,directive:gi,entangle:R5,throttle:D5,debounce:I5,evaluate:cu,initTree:sa,nextTick:tO,prefixed:nf,prefix:G9,plugin:CU,magic:gr,store:AU,start:Z9,clone:pU,cloneNode:fU,bound:EU,$data:n5,watch:KR,walk:Tu,data:LU,bind:OU},R0=DU;function RU(i,e){const t=Object.create(null),n=i.split(",");for(let s=0;s<n.length;s++)t[n[s]]=!0;return e?s=>!!t[s.toLowerCase()]:s=>!!t[s]}var FU=Object.freeze({}),NU=Object.prototype.hasOwnProperty,Lk=(i,e)=>NU.call(i,e),uu=Array.isArray,Jf=i=>z5(i)==="[object Map]",BU=i=>typeof i=="string",nO=i=>typeof i=="symbol",Ik=i=>i!==null&&typeof i=="object",zU=Object.prototype.toString,z5=i=>zU.call(i),V5=i=>z5(i).slice(8,-1),sO=i=>BU(i)&&i!=="NaN"&&i[0]!=="-"&&""+parseInt(i,10)===i,VU=i=>{const e=Object.create(null);return t=>e[t]||(e[t]=i(t))},qU=VU(i=>i.charAt(0).toUpperCase()+i.slice(1)),q5=(i,e)=>i!==e&&(i===i||e===e),jP=new WeakMap,mf=[],Sr,du=Symbol("iterate"),UP=Symbol("Map key iterate");function HU(i){return i&&i._isEffect===!0}function WU(i,e=FU){HU(i)&&(i=i.raw);const t=GU(i,e);return e.lazy||t(),t}function jU(i){i.active&&(H5(i),i.options.onStop&&i.options.onStop(),i.active=!1)}var UU=0;function GU(i,e){const t=function(){if(!t.active)return i();if(!mf.includes(t)){H5(t);try{return KU(),mf.push(t),Sr=t,i()}finally{mf.pop(),W5(),Sr=mf[mf.length-1]}}};return t.id=UU++,t.allowRecurse=!!e.allowRecurse,t._isEffect=!0,t.active=!0,t.raw=i,t.deps=[],t.options=e,t}function H5(i){const{deps:e}=i;if(e.length){for(let t=0;t<e.length;t++)e[t].delete(i);e.length=0}}var Rh=!0,rO=[];function YU(){rO.push(Rh),Rh=!1}function KU(){rO.push(Rh),Rh=!0}function W5(){const i=rO.pop();Rh=i===void 0?!0:i}function dr(i,e,t){if(!Rh||Sr===void 0)return;let n=jP.get(i);n||jP.set(i,n=new Map);let s=n.get(t);s||n.set(t,s=new Set),s.has(Sr)||(s.add(Sr),Sr.deps.push(s),Sr.options.onTrack&&Sr.options.onTrack({effect:Sr,target:i,type:e,key:t}))}function _l(i,e,t,n,s,r){const o=jP.get(i);if(!o)return;const a=new Set,l=u=>{u&&u.forEach(d=>{(d!==Sr||d.allowRecurse)&&a.add(d)})};if(e==="clear")o.forEach(l);else if(t==="length"&&uu(i))o.forEach((u,d)=>{(d==="length"||d>=n)&&l(u)});else switch(t!==void 0&&l(o.get(t)),e){case"add":uu(i)?sO(t)&&l(o.get("length")):(l(o.get(du)),Jf(i)&&l(o.get(UP)));break;case"delete":uu(i)||(l(o.get(du)),Jf(i)&&l(o.get(UP)));break;case"set":Jf(i)&&l(o.get(du));break}const c=u=>{u.options.onTrigger&&u.options.onTrigger({effect:u,target:i,key:t,type:e,newValue:n,oldValue:s,oldTarget:r}),u.options.scheduler?u.options.scheduler(u):u()};a.forEach(c)}var XU=RU("__proto__,__v_isRef,__isVue"),j5=new Set(Object.getOwnPropertyNames(Symbol).map(i=>Symbol[i]).filter(nO)),QU=U5(),JU=U5(!0),SL=ZU();function ZU(){const i={};return["includes","indexOf","lastIndexOf"].forEach(e=>{i[e]=function(...t){const n=Ne(this);for(let r=0,o=this.length;r<o;r++)dr(n,"get",r+"");const s=n[e](...t);return s===-1||s===!1?n[e](...t.map(Ne)):s}}
5),["push","pop","shift","unshift","splice"].forEach(e=>{i[e]=function(...t){YU();const n=Ne(this)[e].apply(this,t);return W5(),n}}),i}function U5(i=!1,e=!1){return function(n,s,r){if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_raw"&&r===(i?e?g7:X5:e?p7:K5).get(n))return n;const o=uu(n);if(!i&&o&&Lk(SL,s))return Reflect.get(SL,s,r);const a=Reflect.get(n,s,r);return(nO(s)?j5.has(s):XU(s))||(i||dr(n,"get",s),e)?a:GP(a)?!o||!sO(s)?a.value:a:Ik(a)?i?Q5(a):cO(a):a}}var t7=e7();function e7(i=!1){return function(t,n,s,r){let o=t[n];if(!i&&(s=Ne(s),o=Ne(o),!uu(t)&&GP(o)&&!GP(s)))return o.value=s,!0;const a=uu(t)&&sO(n)?Number(n)<t.length:Lk(t,n),l=Reflect.set(t,n,s,r);return t===Ne(r)&&(a?q5(s,o)&&_l(t,"set",n,s,o):_l(t,"add",n,s)),l}}function i7(i,e){const t=Lk(i,e),n=i[e],s=Reflect.deleteProperty(i,e);return s&&t&&_l(i,"delete",e,void 0,n),s}function n7(i,e){const t=Reflect.has(i,e);return(!nO(e)||!j5.has(e))&&dr(i,"has",e),t}function s7(i){return dr(i,"iterate",uu(i)?"length":du),Reflect.ownKeys(i)}var r7={get:QU,set:t7,deleteProperty:i7,has:n7,ownKeys:s7},o7={get:JU,set(i,e){return console.warn(`Set operation on key "${String(e)}" failed: target is readonly.`,i),!0},deleteProperty(i,e){return console.warn(`Delete operation on key "${String(e)}" failed: target is readonly.`,i),!0}},oO=i=>Ik(i)?cO(i):i,aO=i=>Ik(i)?Q5(i):i,lO=i=>i,Dk=i=>Reflect.getPrototypeOf(i);function Z0(i,e,t=!1,n=!1){i=i.__v_raw;const s=Ne(i),r=Ne(e);e!==r&&!t&&dr(s,"get",e),!t&&dr(s,"get",r);const{has:o}=Dk(s),a=n?lO:t?aO:oO;if(o.call(s,e))return a(i.get(e));if(o.call(s,r))return a(i.get(r));i!==s&&i.get(e)}function tb(i,e=!1){const t=this.__v_raw,n=Ne(t),s=Ne(i);return i!==s&&!e&&dr(n,"has",i),!e&&dr(n,"has",s),i===s?t.has(i):t.has(i)||t.has(s)}function eb(i,e=!1){return i=i.__v_raw,!e&&dr(Ne(i),"iterate",du),Reflect.get(i,"size",i)}function TL(i){i=Ne(i);const e=Ne(this);return Dk(e).has.call(e,i)||(e.add(i),_l(e,"add",i,i)),this}function kL(i,e){e=Ne(e);const t=Ne(this),{has:n,get:s}=Dk(t);let r=n.call(t,i);r?Y5(t,n,i):(i=Ne(i),r=n.call(t,i));const o=s.call(t,i);return t.set(i,e),r?q5(e,o)&&_l(t,"set",i,e,o):_l(t,"add",i,e),this}function EL(i){const e=Ne(this),{has:t,get:n}=Dk(e);let s=t.call(e,i);s?Y5(e,t,i):(i=Ne(i),s=t.call(e,i));const r=n?n.call(e,i):void 0,o=e.delete(i);return s&&_l(e,"delete",i,void 0,r),o}function PL(){const i=Ne(this),e=i.size!==0,t=Jf(i)?new Map(i):new Set(i),n=i.clear();return e&&_l(i,"clear",void 0,void 0,t),n}function ib(i,e){return function(n,s){const r=this,o=r.__v_raw,a=Ne(o),l=e?lO:i?aO:oO;return!i&&dr(a,"iterate",du),o.forEach((c,u)=>n.call(s,l(c),l(u),r))}}function nb(i,e,t){return function(...n){const s=this.__v_raw,r=Ne(s),o=Jf(r),a=i==="entries"||i===Symbol.iterator&&o,l=i==="keys"&&o,c=s[i](...n),u=t?lO:e?aO:oO;return!e&&dr(r,"iterate",l?UP:du),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:a?[u(d[0]),u(d[1])]:u(d),done:h}},[Symbol.iterator](){return this}}}}function pa(i){return function(...e){{const t=e[0]?`on key "${e[0]}" `:"";console.warn(`${qU(i)} operation ${t}failed: target is readonly.`,Ne(this))}return i==="delete"?!1:this}}function a7(){const i={get(r){return Z0(this,r)},get size(){return eb(this)},has:tb,add:TL,set:kL,delete:EL,clear:PL,forEach:ib(!1,!1)},e={get(r){return Z0(this,r,!1,!0)},get size(){return eb(this)},has:tb,add:TL,set:kL,delete:EL,clear:PL,forEach:ib(!1,!0)},t={get(r){return Z0(this,r,!0)},get size(){return eb(this,!0)},has(r){return tb.call(this,r,!0)},add:pa("add"),set:pa("set"),delete:pa("delete"),clear:pa("clear"),forEach:ib(!0,!1)},n={get(r){return Z0(this,r,!0,!0)},get size(){return eb(this,!0)},has(r){return tb.call(this,r,!0)},add:pa("add"),set:pa("set"),delete:pa("delete"),clear:pa("clear"),forEach:ib(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{i[r]=nb(r,!1,!1),t[r]=nb(r,!0,!1),e[r]=nb(r,!1,!0),n[r]=nb(r,!0,!0)}),[i,t,e,n]}var[l7,c7,u7,d7]=a7();function G5(i,e){const t=e?i?d7:u7:i?c7:l7;return(n,s,r)=>s==="__v_isReactive"?!i:s==="__v_isReadonly"?i:s==="__v_raw"?n:Reflect.get(Lk(t,s)&&s in n?t:n,s,r)}var h7={get:G5(!1,!1)},f7={get:G5(!0,!1)};function Y5(i,e,t){const n=Ne(t);if(n!==t&&e.call(i,n)){const s=V5(i);console.warn(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var K5=new WeakMap,p7=new WeakMap,X5=new WeakMap,g7=new WeakMap;function m7(i){switch(i){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function b7(i){return i.__v_skip||!Object.isExtensible(i)?0:m7(V5(i))}function cO(i){return i&&i.__v_isReadonly?i:J5(i,!1,r7,h7,K5)}function Q5(i){return J5(i,!0,o7,f7,X5)}function J5(i,e,t,n,s){if(!Ik(i))return console.warn(`value cannot be made reactive: ${String(i)}`),i;if(i.__v_raw&&!(e&&i.__v_isReactive))return i;const r=s.get(i);if(r)return r;const o=b7(i);if(o===0)return i;const a=new Proxy(i,o===2?n:t);return s.set(i,a),a}function Ne(i){return i&&Ne(i.__v_raw)||i}function GP(i){return!!(i&&i.__v_isRef===!0)}gr("nextTick",()=>tO);gr("dispatch",i=>Qf.bind(Qf,i));gr("watch",(i,{evaluateLater:e,cleanup:t})=>(n,s)=>{let r=e(n),a=KR(()=>{let l;return r(c=>l=c),l},s);t(a)});gr("store",MU);gr("data",i=>n5(i));gr("root",i=>Mk(i));gr("refs",i=>(i._x_refs_proxy||(i._x_refs_proxy=D0(y7(i))),i._x_refs_proxy));function y7(i){let e=[];return sf(i,t=>{t._x_refs&&e.push(t._x_refs)}),e}var TE={};function Z5(i){return TE[i]||(TE[i]=0),++TE[i]}function v7(i,e){return sf(i,t=>{if(t._x_ids&&t._x_ids[e])return!0})}function w7(i,e){i._x_ids||(i._x_ids={}),i._x_ids[e]||(i._x_ids[e]=Z5(e))}gr("id",(i,{cleanup:e})=>(t,n=null)=>{let s=`${t}${n?`-${n}`:""}`;return _7(i,s,e,()=>{let r=v7(i,t),o=r?r._x_ids[t]:Z5(t);return n?`${t}-${o}-${n}`:`${t}-${o}`})});$k((i,e)=>{i._x_id&&(e._x_id=i._x_id)});function _7(i,e,t,n){if(i._x_id||(i._x_id={}),i._x_id[e])return i._x_id[e];let s=n();return i._x_id[e]=s,t(()=>{delete i._x_id[e]}),s}gr("el",i=>i);tF("Focus","focus","focus");tF("Persist","persist","persist");function tF(i,e,t){gr(e,n=>Ns(`You can't use [$${e}] without first installing the "${i}" plugin here: https://alpinejs.dev/plugins/${t}`,n))}gi("modelable",(i,{expression:e},{effect:t,evaluateLater:n,cleanup:s})=>{let r=n(e),o=()=>{let u;return r(d=>u=d),u},a=n(`${e} = __placeholder`),l=u=>a(()=>{},{scope:{__placeholder:u}}),c=o();l(c),queueMicrotask(()=>
vendor: 5,304 bytes, line 5
5{if(!i._x_model)return;i._x_removeModelListeners.default();let u=i._x_model.get,d=i._x_model.set,h=R5({get(){return u()},set(p){d(p)}},{get(){return o()},set(p){l(p)}});s(h)})});gi("teleport",(i,{modifiers:e,expression:t},{cleanup:n})=>{i.tagName.toLowerCase()!=="template"&&Ns("x-teleport can only be used on a <template> tag",i);let s=CL(t),r=i.content.cloneNode(!0).firstElementChild;i._x_teleport=r,r._x_teleportBack=i,i.setAttribute("data-teleport-template",!0),r.setAttribute("data-teleport-target",!0),i._x_forwardEvents&&i._x_forwardEvents.forEach(a=>{r.addEventListener(a,l=>{l.stopPropagation(),i.dispatchEvent(new l.constructor(l.type,l))})}),I0(r,{},i);let o=(a,l,c)=>{c.includes("prepend")?l.parentNode.insertBefore(a,l):c.includes("append")?l.parentNode.insertBefore(a,l.nextSibling):l.appendChild(a)};ti(()=>{o(r,s,e),Al(()=>{sa(r)})()}),i._x_teleportPutBack=()=>{let a=CL(t);ti(()=>{o(i._x_teleport,a,e)})},n(()=>ti(()=>{r.remove(),rf(r)}))});var x7=document.createElement("div");function CL(i){let e=Al(()=>document.querySelector(i),()=>x7)();return e||Ns(`Cannot find x-teleport element for selector: "${i}"`),e}var eF=()=>{};eF.inline=(i,{modifiers:e},{cleanup:t})=>{e.includes("self")?i._x_ignoreSelf=!0:i._x_ignore=!0,t(()=>{e.includes("self")?delete i._x_ignoreSelf:delete i._x_ignore})};gi("ignore",eF);gi("effect",Al((i,{expression:e},{effect:t})=>{t(kn(i,e))}));function YP(i,e,t,n){let s=i,r=l=>n(l),o={},a=(l,c)=>u=>c(l,u);if(t.includes("dot")&&(e=S7(e)),t.includes("camel")&&(e=T7(e)),t.includes("passive")&&(o.passive=!0),t.includes("capture")&&(o.capture=!0),t.includes("window")&&(s=window),t.includes("document")&&(s=document),t.includes("debounce")){let l=t[t.indexOf("debounce")+1]||"invalid-wait",c=By(l.split("ms")[0])?Number(l.split("ms")[0]):250;r=I5(r,c)}if(t.includes("throttle")){let l=t[t.indexOf("throttle")+1]||"invalid-wait",c=By(l.split("ms")[0])?Number(l.split("ms")[0]):250;r=D5(r,c)}return t.includes("prevent")&&(r=a(r,(l,c)=>{c.preventDefault(),l(c)})),t.includes("stop")&&(r=a(r,(l,c)=>{c.stopPropagation(),l(c)})),t.includes("once")&&(r=a(r,(l,c)=>{l(c),s.removeEventListener(e,r,o)})),(t.includes("away")||t.includes("outside"))&&(s=document,r=a(r,(l,c)=>{i.contains(c.target)||c.target.isConnected!==!1&&(i.offsetWidth<1&&i.offsetHeight<1||i._x_isShown!==!1&&l(c))})),t.includes("self")&&(r=a(r,(l,c)=>{c.target===i&&l(c)})),(E7(e)||iF(e))&&(r=a(r,(l,c)=>{P7(c,t)||l(c)})),s.addEventListener(e,r,o),()=>{s.removeEventListener(e,r,o)}}function S7(i){return i.replace(/-/g,".")}function T7(i){return i.toLowerCase().replace(/-(\w)/g,(e,t)=>t.toUpperCase())}function By(i){return!Array.isArray(i)&&!isNaN(i)}function k7(i){return[" ","_"].includes(i)?i:i.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function E7(i){return["keydown","keyup"].includes(i)}function iF(i){return["contextmenu","click","mouse"].some(e=>i.includes(e))}function P7(i,e){let t=e.filter(r=>!["window","document","prevent","stop","once","capture","self","away","outside","passive"].includes(r));if(t.includes("debounce")){let r=t.indexOf("debounce");t.splice(r,By((t[r+1]||"invalid-wait").split("ms")[0])?2:1)}if(t.includes("throttle")){let r=t.indexOf("throttle");t.splice(r,By((t[r+1]||"invalid-wait").split("ms")[0])?2:1)}if(t.length===0||t.length===1&&AL(i.key).includes(t[0]))return!1;const s=["ctrl","shift","alt","meta","cmd","super"].filter(r=>t.includes(r));return t=t.filter(r=>!s.includes(r)),!(s.length>0&&s.filter(o=>((o==="cmd"||o==="super")&&(o="meta"),i[`${o}Key`])).length===s.length&&(iF(i.type)||AL(i.key).includes(t[0])))}function AL(i){if(!i)return[];i=k7(i);let e={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return e[i]=i,Object.keys(e).map(t=>{if(e[t]===i)return t}).filter(t=>t)}gi("model",(i,{modifiers:e,expression:t},{effect:n,cleanup:s})=>{let r=i;e.includes("parent")&&(r=i.parentNode);let o=kn(r,t),a;typeof t=="string"?a=kn(r,`${t} = __placeholder`):typeof t=="function"&&typeof t()=="string"?a=kn(r,`${t()} = __placeholder`):a=()=>{};let l=()=>{let h;return o(p=>h=p),ML(h)?h.get():h},c=h=>{let p;o(m=>p=m),ML(p)?p.set(h):a(()=>{},{scope:{__placeholder:h}})};typeof t=="string"&&i.type==="radio"&&ti(()=>{i.hasAttribute("name")||i.setAttribute("name",t)});var u=i.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(i.type)||e.includes("lazy")?"change":"input";let d=wl?()=>{}:YP(i,u,e,h=>{c(kE(i,e,h,l()))});if(e.includes("fill")&&([void 0,null,""].includes(l())||iO(i)&&Array.isArray(l())||i.tagName.toLowerCase()==="select"&&i.multiple)&&c(kE(i,e,{target:i},l())),i._x_removeModelListeners||(i._x_removeModelListeners={}),i._x_removeModelListeners.default=d,s(()=>i._x_removeModelListeners.default()),i.form){let h=YP(i.form,"reset",[],p=>{tO(()=>i._x_model&&i._x_model.set(kE(i,e,{target:i},l())))});s(()=>h())}i._x_model={get(){return l()},set(h){c(h)}},i._x_forceModelUpdate=h=>{h===void 0&&typeof t=="string"&&t.match(/\./)&&(h=""),window.fromModel=!0,ti(()=>A5(i,"value",h)),delete window.fromModel},n(()=>{let h=l();e.includes("unintrusive")&&document.activeElement.isSameNode(i)||i._x_forceModelUpdate(h)})});function kE(i,e,t,n){return ti(()=>
5{if(t instanceof CustomEvent&&t.detail!==void 0)return t.detail!==null&&t.detail!==void 0?t.detail:t.target.value;if(iO(i))if(Array.isArray(n)){let s=null;return e.includes("number")?s=EE(t.target.value):e.includes("boolean")?s=Wb(t.target.value):s=t.target.value,t.target.checked?n.includes(s)?n:n.concat([s]):n.filter(r=>!C7(r,s))}else return t.target.checked;else{if(i.tagName.toLowerCase()==="select"&&i.multiple)return e.includes("number")?Array.from(t.target.selectedOptions).map(s=>{let r=s.value||s.text;return EE(r)}):e.includes("boolean")?Array.from(t.target.selectedOptions).map(s=>{let r=s.value||s.text;return Wb(r)}):Array.from(t.target.selectedOptions).map(s=>s.value||s.text);{let s;return L5(i)?t.target.checked?s=t.target.value:s=n:s=t.target.value,e.includes("number")?EE(s):e.includes("boolean")?Wb(s):e.includes("trim")?s.trim():s}}})}function EE(i){let e=i?parseFloat(i):null;return A7(e)?e:i}function C7(i,e){return i==e}function A7(i){return!Array.isArray(i)&&!isNaN(i)}function ML(i){return i!==null&&typeof i=="object"&&typeof i.get=="function"&&typeof i.set=="function"}gi("cloak",i=>queueMicrotask(()=>ti(()=>i.removeAttribute(nf("cloak")))));S5(()=>`[${nf("init")}]`);gi("init",Al((i,{expression:e},{evaluate:t})=>typeof e=="string"?!!e.trim()&&t(e,{},!1):t(e,{},!1)));gi("text",(i,{expression:e},{effect:t,evaluateLater:n})=>{let s=n(e);t(()=>{s(r=>{ti(()=>{i.textContent=r})})})});gi("html",(i,{expression:e},{effect:t,evaluateLater:n})=>{let s=n(e);t(()=>{s(r=>{ti(()=>{i.innerHTML=r,i._x_ignoreSelf=!0,sa(i),delete i._x_ignoreSelf})})})});QM(f5(":",p5(nf("bind:"))));var nF=(i,{value:e,modifiers:t,expression:n,original:s},{effect:r,cleanup:o})=>{if(!e){let l={};$U(l),kn(i,n)(u=>{N5(i,u,s)},{scope:l});return}if(e==="key")return M7(i,n);if(i._x_inlineBindings&&i._x_inlineBindings[e]&&i._x_inlineBindings[e].extract)return;let a=kn(i,n);r(()=>a(l=>{l===void 0&&typeof n=="string"&&n.match(/\./)&&(l=""),ti(()=>A5(i,e,l,t))})),o(()=>{i._x_undoAddedClasses&&i._x_undoAddedClasses(),i._x_undoAddedStyles&&i._x_undoAddedStyles()})};nF.inline=(i,{value:e,modifiers:t,expression:n})=>{e&&(i._x_inlineBindings||(i._x_inlineBindings={}),i._x_inlineBindings[e]={expression:n,extract:!1})};gi("bind",nF);function M7(i,e){i._x_keyExpression=e}x5(()=>`[${nf("data")}]`);gi("data",(i,{expression:e},{cleanup:t})=>{if(O7(i))return;e=e===""?"{}":e;let n={};FP(n,i);let s={};IU(s,n);let r=cu(i,e,{scope:s});(r===void 0||r===!0)&&(r={}),FP(r,i);let o=tf(r);s5(o);let a=I0(i,o);o.init&&cu(i,o.init),t(()=>{o.destroy&&cu(i,o.destroy),a()})});$k((i,e)=>{i._x_dataStack&&(e._x_dataStack=i._x_dataStack,e.setAttribute("data-has-alpine-state",!0))});function O7(i){return wl?WP?!0:i.hasAttribute("data-has-alpine-state"):!1}gi("show",(i,{modifiers:e,expression:t},{effect:n})=>{let s=kn(i,t);i._x_doHide||(i._x_doHide=()=>{ti(()=>{i.style.setProperty("display","none",e.includes("important")?"important":void 0)})}),i._x_doShow||(i._x_doShow=()=>{ti(()=>{i.style.length===1&&i.style.display==="none"?i.removeAttribute("style"):i.style.removeProperty("display")})});let r=()=>{i._x_doHide(),i._x_isShown=!1},o=()=>{i._x_doShow(),i._x_isShown=!0},a=()=>setTimeout(o),l=qP(d=>d?o():r(),d=>{typeof i._x_toggleAndCascadeWithTransitions=="function"?i._x_toggleAndCascadeWithTransitions(i,d,o,r):d?a():r()}),c,u=!0;n(()=>s(d=>{!u&&d===c||(e.includes("immediate")&&(d?a():r()),l(d),c=d,u=!1)}))});gi("for",(i,{expression:e},{effect:t,cleanup:n})=>{let s=L7(e),r=kn(i,s.items),o=kn(i,i._x_keyExpression||"index");i._x_prevKeys=[],i._x_lookup={},t(()=>$7(i,s,r,o)),n(()=>{Object.values(i._x_lookup).forEach(a=>ti(()=>{rf(a),a.remove()})),delete i._x_prevKeys,delete i._x_lookup})});function $7(i,e,t,n){let s=o=>typeof o=="object"&&!Array.isArray(o),r=i;t(o=>{I7(o)&&o>=0&&(o=Array.from(Array(o).keys(),v=>v+1)),o===void 0&&(o=[]);let a=i._x_lookup,l=i._x_prevKeys,c=[],u=[];if(s(o))o=Object.entries(o).map(([v,w])=>{let _=OL(e,w,v,o);n(x=>{u.includes(x)&&Ns("Duplicate key on x-for",i),u.push(x)},{scope:{index:v,..._}}),c.push(_)});else for(let v=0;v<o.length;v++){let w=OL(e,o[v],v,o);n(_=>{u.includes(_)&&Ns("Duplicate key on x-for",i),u.push(_)},{scope:{index:v,...w}}),c.push(w)}let d=[],h=[],p=[],m=[];for(let v=0;v<l.length;v++){let w=l[v];u.indexOf(w)===-1&&p.push(w)}l=l.filter(v=>!p.includes(v));let g="template";for(let v=0;v<u.length;v++){let w=u[v],_=l.indexOf(w);if(_===-1)l.splice(v,0,w),d.push([g,v]);else if(_!==v){let x=l.splice(v,1)[0],k=l.splice(_-1,1)[0];l.splice(v,0,k),l.splice(_,0,x),h.push([x,k])}else m.push(w);g=w}for(let v=0;v<p.length;v++){let w=p[v];w in a&&(ti(()=>{rf(a[w]),a[w].remove()}),delete a[w])}for(let v=0;v<h.length;v++){let[w,_]=h[v],x=a[w],k=a[_],S=document.createElement("div");ti(()=>{k||Ns('x-for ":key" is undefined or invalid',r,_,a),k.after(S),x.after(k),k._x_currentIfEl&&k.after(k._x_currentIfEl),S.before(x),x._x_currentIfEl&&x.after(x._x_currentIfEl),S.remove()}),k._x_refreshXForScope(c[u.indexOf(_)])}for(let v=0;v<d.length;v++){let[w,_]=d[v],x=w==="template"?r:a[w];x._x_currentIfEl&&(x=x._x_currentIfEl);let k=c[_],S=u[_],T=document.importNode(r.content,!0).firstElementChild,E=tf(k);I0(T,E,r),T._x_refreshXForScope=M=>
5{Object.entries(M).forEach(([A,P])=>{E[A]=P})},ti(()=>{x.after(T),Al(()=>sa(T))()}),typeof S=="object"&&Ns("x-for key cannot be an object, it must be a string or an integer",r),a[S]=T}for(let v=0;v<m.length;v++)a[m[v]]._x_refreshXForScope(c[u.indexOf(m[v])]);r._x_prevKeys=u})}function L7(i){let e=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,t=/^\s*\(|\)\s*$/g,n=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,s=i.match(n);if(!s)return;let r={};r.items=s[2].trim();let o=s[1].replace(t,"").trim(),a=o.match(e);return a?(r.item=o.replace(e,"").trim(),r.index=a[1].trim(),a[2]&&(r.collection=a[2].trim())):r.item=o,r}function OL(i,e,t,n){let s={};return/^\[.*\]$/.test(i.item)&&Array.isArray(e)?i.item.replace("[","").replace("]","").split(",").map(o=>o.trim()).forEach((o,a)=>{s[o]=e[a]}):/^\{.*\}$/.test(i.item)&&!Array.isArray(e)&&typeof e=="object"?i.item.replace("{","").replace("}","").split(",").map(o=>o.trim()).forEach(o=>{s[o]=e[o]}):s[i.item]=e,i.index&&(s[i.index]=t),i.collection&&(s[i.collection]=n),s}function I7(i){return!Array.isArray(i)&&!isNaN(i)}function sF(){}sF.inline=(i,{expression:e},{cleanup:t})=>{let n=Mk(i);n._x_refs||(n._x_refs={}),n._x_refs[e]=i,t(()=>delete n._x_refs[e])};gi("ref",sF);gi("if",(i,{expression:e},{effect:t,cleanup:n})=>{i.tagName.toLowerCase()!=="template"&&Ns("x-if can only be used on a <template> tag",i);let s=kn(i,e),r=()=>{if(i._x_currentIfEl)return i._x_currentIfEl;let a=i.content.cloneNode(!0).firstElementChild;return I0(a,{},i),ti(()=>{i.after(a),Al(()=>sa(a))()}),i._x_currentIfEl=a,i._x_undoIf=()=>{ti(()=>{rf(a),a.remove()}),delete i._x_currentIfEl},a},o=()=>{i._x_undoIf&&(i._x_undoIf(),delete i._x_undoIf)};t(()=>s(a=>{a?r():o()})),n(()=>i._x_undoIf&&i._x_undoIf())});gi("id",(i,{expression:e},{evaluate:t})=>{t(e).forEach(s=>w7(i,s))});$k((i,e)=>{i._x_ids&&(e._x_ids=i._x_ids)});QM(f5("@",p5(nf("on:"))));gi("on",Al((i,{value:e,modifiers:t,expression:n},{cleanup:s})=>{let r=n?kn(i,n):()=>{};i.tagName.toLowerCase()==="template"&&(i._x_forwardEvents||(i._x_forwardEvents=[]),i._x_forwardEvents.includes(e)||i._x_forwardEvents.push(e));let o=YP(i,e,t,a=>{r(()=>{},{scope:{$event:a},params:[a]})});s(()=>o())}));Rk("Collapse","collapse","collapse");Rk("Intersect","intersect","intersect");Rk("Focus","trap","focus");Rk("Mask","mask","mask");function Rk(i,e,t){gi(e,n=>Ns(`You can't use [x-${e}] without first installing the "${i}" plugin here: https://alpinejs.dev/plugins/${t}`,n))}R0.setEvaluator(c5);R0.setReactivityEngine({reactive:cO,effect:WU,release:jU,raw:Ne});var D7=R0,yi=D7,rF=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],zy=rF.join(","),oF=typeof Element>"u",ku=oF?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,KP=!oF&&Element.prototype.getRootNode?function(i){return i.getRootNode()}:function(i){return i.ownerDocument},aF=function(e,t,n){var s=Array.prototype.slice.apply(e.querySelectorAll(zy));return t&&ku.call(e,zy)&&s.unshift(e),s=s.filter(n),s},lF=function i(e,t,n){for(var s=[],r=Array.from(e);r.length;){var o=r.shift();if(o.tagName==="SLOT"){var a=o.assignedElements(),l=a.length?a:o.children,c=i(l,!0,n);n.flatten?s.push.apply(s,c):s.push({scope:o,candidates:c})}else{var u=ku.call(o,zy);u&&n.filter(o)&&(t||!e.includes(o))&&s.push(o);var d=o.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(o),h=!n.shadowRootFilter||n.shadowRootFilter(o);if(d&&h){var p=i(d===!0?o.children:d.children,!0,n);n.flatten?s.push.apply(s,p):s.push({scope:o,candidates:p})}else r.unshift.apply(r,o.children)}}return s},cF=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},R7=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},uF=function(e){return e.tagName==="INPUT"},F7=function(e){return uF(e)&&e.type==="hidden"},N7=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},B7=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},z7=function(e){if(!e.name)return!0;var t=e.form||KP(e),n=function(a){return t.querySelectorAll('input[type="radio"][name="'+a+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=n(window.CSS.escape(e.name));else try{s=n(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var r=B7(s,e.form);return!r||r===e},V7=function(e){return uF(e)&&e.type==="radio"},q7=function(e){return V7(e)&&!z7(e)}
vendor: 5,847 bytes, line 5
5,$L=function(e){var t=e.getBoundingClientRect(),n=t.width,s=t.height;return n===0&&s===0},H7=function(e,t){var n=t.displayCheck,s=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var r=ku.call(e,"details>summary:first-of-type"),o=r?e.parentElement:e;if(ku.call(o,"details:not([open]) *"))return!0;var a=KP(e).host,l=(a==null?void 0:a.ownerDocument.contains(a))||e.ownerDocument.contains(e);if(!n||n==="full"){if(typeof s=="function"){for(var c=e;e;){var u=e.parentElement,d=KP(e);if(u&&!u.shadowRoot&&s(u)===!0)return $L(e);e.assignedSlot?e=e.assignedSlot:!u&&d!==e.ownerDocument?e=d.host:e=u}e=c}if(l)return!e.getClientRects().length}else if(n==="non-zero-area")return $L(e);return!1},W7=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n<t.children.length;n++){var s=t.children.item(n);if(s.tagName==="LEGEND")return ku.call(t,"fieldset[disabled] *")?!0:!s.contains(e)}return!0}t=t.parentElement}return!1},Vy=function(e,t){return!(t.disabled||F7(t)||H7(t,e)||N7(t)||W7(t))},XP=function(e,t){return!(q7(t)||cF(t)<0||!Vy(e,t))},j7=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},U7=function i(e){var t=[],n=[];return e.forEach(function(s,r){var o=!!s.scope,a=o?s.scope:s,l=cF(a,o),c=o?i(s.candidates):a;l===0?o?t.push.apply(t,c):t.push(a):n.push({documentOrder:r,tabIndex:l,item:s,isScope:o,content:c})}),n.sort(R7).reduce(function(s,r){return r.isScope?s.push.apply(s,r.content):s.push(r.content),s},[]).concat(t)},G7=function(e,t){t=t||{};var n;return t.getShadowRoot?n=lF([e],t.includeContainer,{filter:XP.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:j7}):n=aF(e,t.includeContainer,XP.bind(null,t)),U7(n)},dF=function(e,t){t=t||{};var n;return t.getShadowRoot?n=lF([e],t.includeContainer,{filter:Vy.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=aF(e,t.includeContainer,Vy.bind(null,t)),n},sb=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return ku.call(e,zy)===!1?!1:XP(t,e)},Y7=rF.concat("iframe").join(","),jb=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return ku.call(e,Y7)===!1?!1:Vy(t,e)};function LL(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(i,s).enumerable})),t.push.apply(t,n)}return t}function IL(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?LL(Object(t),!0).forEach(function(n){K7(i,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):LL(Object(t)).forEach(function(n){Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(t,n))})}return i}function K7(i,e,t){return e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var DL=function(){var i=[];return{activateTrap:function(t){if(i.length>0){var n=i[i.length-1];n!==t&&n.pause()}var s=i.indexOf(t);s===-1||i.splice(s,1),i.push(t)},deactivateTrap:function(t){var n=i.indexOf(t);n!==-1&&i.splice(n,1),i.length>0&&i[i.length-1].unpause()}}}(),X7=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Q7=function(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27},J7=function(e){return e.key==="Tab"||e.keyCode===9},RL=function(e){return setTimeout(e,0)},FL=function(e,t){var n=-1;return e.every(function(s,r){return t(s)?(n=r,!1):!0}),n},bf=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return typeof e=="function"?e.apply(void 0,n):e},rb=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Z7=function(e,t){var n=(t==null?void 0:t.document)||document,s=IL({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),r={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},o,a=function(T,E,M){return T&&T[E]!==void 0?T[E]:s[M||E]},l=function(T){return r.containerGroups.findIndex(function(E){var M=E.container,A=E.tabbableNodes;return M.contains(T)||A.find(function(P){return P===T})})},c=function(T){var E=s[T];if(typeof E=="function"){for(var M=arguments.length,A=new Array(M>1?M-1:0),P=1;P<M;P++)A[P-1]=arguments[P];E=E.apply(void 0,A)}if(E===!0&&(E=void 0),!E){if(E===void 0||E===!1)return E;throw new Error("`".concat(T,"` was specified but was not a node, or did not return a node"))}var L=E;if(typeof E=="string"&&(L=n.querySelector(E),!L))throw new Error("`".concat(T,"` as selector refers to no known node"));return L},u=function(){var T=c("initialFocus");if(T===!1)return!1;if(T===void 0)if(l(n.activeElement)>=0)T=n.activeElement;else{var E=r.tabbableGroups[0],M=E&&E.firstTabbableNode;T=M||c("fallbackFocus")}if(!T)throw new Error("Your focus-trap needs to have at least one focusable element");return T},d=function(){if(r.containerGroups=r.containers.map(function(T){var E=G7(T,s.tabbableOptions),M=dF(T,s.tabbableOptions);return{container:T,tabbableNodes:E,focusableNodes:M,firstTabbableNode:E.length>0?E[0]:null,lastTabbableNode:E.length>0?E[E.length-1]:null,nextTabbableNode:function(P){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,I=M.findIndex(function(z){return z===P});if(!(I<0))return L?M.slice(I+1).find(function(z){return sb(z,s.tabbableOptions)}):M.slice(0,I).reverse().find(function(z){return sb(z,s.tabbableOptions)})}}}),r.tabbableGroups=r.containerGroups.filter(function(T){return T.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")}
5,h=function S(T){if(T!==!1&&T!==n.activeElement){if(!T||!T.focus){S(u());return}T.focus({preventScroll:!!s.preventScroll}),r.mostRecentlyFocusedNode=T,X7(T)&&T.select()}},p=function(T){var E=c("setReturnFocus",T);return E||(E===!1?!1:T)},m=function(T){var E=rb(T);if(!(l(E)>=0)){if(bf(s.clickOutsideDeactivates,T)){o.deactivate({returnFocus:s.returnFocusOnDeactivate&&!jb(E,s.tabbableOptions)});return}bf(s.allowOutsideClick,T)||T.preventDefault()}},g=function(T){var E=rb(T),M=l(E)>=0;M||E instanceof Document?M&&(r.mostRecentlyFocusedNode=E):(T.stopImmediatePropagation(),h(r.mostRecentlyFocusedNode||u()))},v=function(T){var E=rb(T);d();var M=null;if(r.tabbableGroups.length>0){var A=l(E),P=A>=0?r.containerGroups[A]:void 0;if(A<0)T.shiftKey?M=r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:M=r.tabbableGroups[0].firstTabbableNode;else if(T.shiftKey){var L=FL(r.tabbableGroups,function($){var B=$.firstTabbableNode;return E===B});if(L<0&&(P.container===E||jb(E,s.tabbableOptions)&&!sb(E,s.tabbableOptions)&&!P.nextTabbableNode(E,!1))&&(L=A),L>=0){var I=L===0?r.tabbableGroups.length-1:L-1,z=r.tabbableGroups[I];M=z.lastTabbableNode}}else{var q=FL(r.tabbableGroups,function($){var B=$.lastTabbableNode;return E===B});if(q<0&&(P.container===E||jb(E,s.tabbableOptions)&&!sb(E,s.tabbableOptions)&&!P.nextTabbableNode(E))&&(q=A),q>=0){var H=q===r.tabbableGroups.length-1?0:q+1,j=r.tabbableGroups[H];M=j.firstTabbableNode}}}else M=c("fallbackFocus");M&&(T.preventDefault(),h(M))},w=function(T){if(Q7(T)&&bf(s.escapeDeactivates,T)!==!1){T.preventDefault(),o.deactivate();return}if(J7(T)){v(T);return}},_=function(T){var E=rb(T);l(E)>=0||bf(s.clickOutsideDeactivates,T)||bf(s.allowOutsideClick,T)||(T.preventDefault(),T.stopImmediatePropagation())},x=function(){if(r.active)return DL.activateTrap(o),r.delayInitialFocusTimer=s.delayInitialFocus?RL(function(){h(u())}):h(u()),n.addEventListener("focusin",g,!0),n.addEventListener("mousedown",m,{capture:!0,passive:!1}),n.addEventListener("touchstart",m,{capture:!0,passive:!1}),n.addEventListener("click",_,{capture:!0,passive:!1}),n.addEventListener("keydown",w,{capture:!0,passive:!1}),o},k=function(){if(r.active)return n.removeEventListener("focusin",g,!0),n.removeEventListener("mousedown",m,!0),n.removeEventListener("touchstart",m,!0),n.removeEventListener("click",_,!0),n.removeEventListener("keydown",w,!0),o};return o={get active(){return r.active},get paused(){return r.paused},activate:function(T){if(r.active)return this;var E=a(T,"onActivate"),M=a(T,"onPostActivate"),A=a(T,"checkCanFocusTrap");A||d(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=n.activeElement,E&&E();var P=function(){A&&d(),x(),M&&M()};return A?(A(r.containers.concat()).then(P,P),this):(P(),this)},deactivate:function(T){if(!r.active)return this;var E=IL({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},T);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,k(),r.active=!1,r.paused=!1,DL.deactivateTrap(o);var M=a(E,"onDeactivate"),A=a(E,"onPostDeactivate"),P=a(E,"checkCanReturnFocus"),L=a(E,"returnFocus","returnFocusOnDeactivate");M&&M();var I=function(){RL(function(){L&&h(p(r.nodeFocusedBeforeActivation)),A&&A()})};return L&&P?(P(p(r.nodeFocusedBeforeActivation)).then(I,I),this):(I(),this)},pause:function(){return r.paused||!r.active?this:(r.paused=!0,k(),this)},unpause:function(){return!r.paused||!r.active?this:(r.paused=!1,d(),x(),this)},updateContainerElements:function(T){var E=[].concat(T).filter(Boolean);return r.containers=E.map(function(M){return typeof M=="string"?n.querySelector(M):M}),r.active&&d(),this}},o.updateContainerElements(e),o};function tG(i){let e,t;window.addEventListener("focusin",()=>{e=t,t=document.activeElement}),i.magic("focus",n=>{let s=n;return{__noscroll:!1,__wrapAround:!1,within(r){return s=r,this},withoutScrolling(){return this.__noscroll=!0,this},noscroll(){return this.__noscroll=!0,this},withWrapAround(){return this.__wrapAround=!0,this},wrap(){return this.withWrapAround()},focusable(r){return jb(r)},previouslyFocused(){return e},lastFocused(){return e},focused(){return t},focusables(){return Array.isArray(s)?s:dF(s,{displayCheck:"none"})},all(){return this.focusables()},isFirst(r){let o=this.all();return o[0]&&o[0].isSameNode(r)},isLast(r){let o=this.all();return o.length&&o.slice(-1)[0].isSameNode(r)},getFirst(){return this.all()[0]},getLast(){return this.all().slice(-1)[0]},getNext(){let r=this.all(),o=document.activeElement;if(r.indexOf(o)!==-1)return this.__wrapAround&&r.indexOf(o)===r.length-1?r[0]:r[r.indexOf(o)+1]},getPrevious(){let r=this.all(),o=document.activeElement;if(r.indexOf(o)!==-1)return this.__wrapAround&&r.indexOf(o)===0?r.slice(-1)[0]:r[r.indexOf(o)-1]},first(){this.focus(this.getFirst())},last(){this.focus(this.getLast())},next(){this.focus(this.getNext())},previous(){this.focus(this.getPrevious())},prev(){return this.previous()},focus(r){r&&setTimeout(()=>{r.hasAttribute("tabindex")||r.setAttribute("tabindex","0"),r.focus({preventScroll:this.__noscroll})})}}}
5),i.directive("trap",i.skipDuringClone((n,{expression:s,modifiers:r},{effect:o,evaluateLater:a,cleanup:l})=>{let c=a(s),u=!1,d={escapeDeactivates:!1,allowOutsideClick:!0,fallbackFocus:()=>n};if(r.includes("noautofocus"))d.initialFocus=!1;else{let v=n.querySelector("[autofocus]");v&&(d.initialFocus=v)}let h=Z7(n,d),p=()=>{},m=()=>{};const g=()=>{p(),p=()=>{},m(),m=()=>{},h.deactivate({returnFocus:!r.includes("noreturn")})};o(()=>c(v=>{u!==v&&(v&&!u&&(r.includes("noscroll")&&(m=eG()),r.includes("inert")&&(p=NL(n)),setTimeout(()=>{h.activate()},15)),!v&&u&&g(),u=!!v)})),l(g)},(n,{expression:s,modifiers:r},{evaluate:o})=>{r.includes("inert")&&o(s)&&NL(n)}))}function NL(i){let e=[];return hF(i,t=>{let n=t.hasAttribute("aria-hidden");t.setAttribute("aria-hidden","true"),e.push(()=>n||t.removeAttribute("aria-hidden"))}),()=>{for(;e.length;)e.pop()()}}function hF(i,e){i.isSameNode(document.body)||!i.parentNode||Array.from(i.parentNode.children).forEach(t=>{t.isSameNode(i)?hF(i.parentNode,e):e(t)})}function eG(){let i=document.documentElement.style.overflow,e=document.documentElement.style.paddingRight,t=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=`${t}px`,()=>{document.documentElement.style.overflow=i,document.documentElement.style.paddingRight=e}}var iG=tG;/*! Bundled license information: 6 7tabbable/dist/index.esm.js: 8 (*! 9 * tabbable 5.3.3 10 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 11 *) 12 13focus-trap/dist/focus-trap.esm.js: 14 (*! 15 * focus-trap 6.9.4 16 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE 17 *) 18*/function nG(i){i.directive("collapse",e),e.inline=(t,{modifiers:n})=>{n.includes("min")&&(t._x_doShow=()=>{},t._x_doHide=()=>{})};function e(t,{modifiers:n}){let s=BL(n,"duration",250)/1e3,r=BL(n,"min",0),o=!n.includes("min");t._x_isShown||(t.style.height=`${r}px`),!t._x_isShown&&o&&(t.hidden=!0),t._x_isShown||(t.style.overflow="hidden");let a=(c,u)=>{let d=i.setStyles(c,u);return u.height?()=>{}:d},l={transitionProperty:"height",transitionDuration:`${s}s`,transitionTimingFunction:"cubic-bezier(0.4, 0.0, 0.2, 1)"};t._x_transition={in(c=()=>{},u=()=>{}){o&&(t.hidden=!1),o&&(t.style.display=null);let d=t.getBoundingClientRect().height;t.style.height="auto";let h=t.getBoundingClientRect().height;d===h&&(d=r),i.transition(t,i.setStyles,{during:l,start:{height:d+"px"},end:{height:h+"px"}},()=>t._x_isShown=!0,()=>{Math.abs(t.getBoundingClientRect().height-h)<1&&(t.style.overflow=null)})},out(c=()=>{},u=()=>{}){let d=t.getBoundingClientRect().height;i.transition(t,a,{during:l,start:{height:d+"px"},end:{height:r+"px"}},()=>t.style.overflow="hidden",()=>{t._x_isShown=!1,t.style.height==`${r}px`&&o&&(t.style.display="none",t.hidden=!0)})}}}}function BL(i,e,t){if(i.indexOf(e)===-1)return t;const n=i[i.indexOf(e)+1];if(!n)return t;if(e==="duration"){let s=n.match(/([0-9]+)ms/);if(s)return s[1]}if(e==="min"){let s=n.match(/([0-9]+)px/);if(s)return s[1]}return n}var sG=nG;function uO(i,e,t){aG();let n,s,r,o,a,l,c,u,d;function h(T={}){let E=A=>A.getAttribute("key"),M=()=>{};o=T.updating||M,a=T.updated||M,l=T.removing||M,c=T.removed||M,u=T.adding||M,d=T.added||M,s=T.key||E,r=T.lookahead||!1}function p(T,E){if(m(T,E))return g(T,E);let M=!1;if(!Uu(o,T,E,()=>M=!0)){if(T.nodeType===1&&window.Alpine&&(window.Alpine.cloneNode(T,E),T._x_teleport&&E._x_teleport&&p(T._x_teleport,E._x_teleport)),oG(E)){v(T,E),a(T,E);return}M||w(T,E),a(T,E),_(T,E)}}function m(T,E){return T.nodeType!=E.nodeType||T.nodeName!=E.nodeName||x(T)!=x(E)}function g(T,E){if(Uu(l,T))return;let M=E.cloneNode(!0);Uu(u,M)||(T.replaceWith(M),c(T),d(M))}function v(T,E){let M=E.nodeValue;T.nodeValue!==M&&(T.nodeValue=M)}function w(T,E){if(T._x_transitioning||T._x_isShown&&!E._x_isShown||!T._x_isShown&&E._x_isShown)return;let M=Array.from(T.attributes),A=Array.from(E.attributes);for(let P=M.length-1;P>=0;P--){let L=M[P].name;E.hasAttribute(L)||T.removeAttribute(L)}for(let P=A.length-1;P>=0;P--){let L=A[P].name,I=A[P].value;T.getAttribute(L)!==I&&T.setAttribute(L,I)}}function _(T,E){let M=k(T.children),A={},P=VL(E),L=VL(T);for(;P;){lG(P,L);let z=x(P),q=x(L);if(!L)if(z&&A[z]){let B=A[z];T.appendChild(B),L=B,q=x(L)}else{if(!Uu(u,P)){let B=P.cloneNode(!0);T.appendChild(B),d(B)}P=Cs(E,P);continue}let H=B=>B&&B.nodeType===8&&B.textContent==="[if BLOCK]><![endif]",j=B=>B&&B.nodeType===8&&B.textContent==="[if ENDBLOCK]><![endif]";if(H(P)&&H(L)){let B=0,K=L;for(;L;){let tt=Cs(T,L);if(H(tt))B++;else if(j(tt)&&B>0)B--;else if(j(tt)&&B===0){L=tt;break}L=tt}let N=L;B=0;let J=P;for(;P;){let tt=Cs(E,P);if(H(tt))B++;else if(j(tt)&&B>0)B--;else if(j(tt)&&B===0){P=tt;break}P=tt}let et=P,Z=new QP(K,N),U=new QP(J,et);_(Z,U);continue}if(L.nodeType===1&&r&&!L.isEqualNode(P)){let B=Cs(E,P),K=!1;for(;!K&&B;
18)B.nodeType===1&&L.isEqualNode(B)&&(K=!0,L=S(T,P,L),q=x(L)),B=Cs(E,B)}if(z!==q){if(!z&&q){A[q]=L,L=S(T,P,L),A[q].remove(),L=Cs(T,L),P=Cs(E,P);continue}if(z&&!q&&M[z]&&(L.replaceWith(M[z]),L=M[z],q=x(L)),z&&q){let B=M[z];if(B)A[q]=L,L.replaceWith(B),L=B,q=x(L);else{A[q]=L,L=S(T,P,L),A[q].remove(),L=Cs(T,L),P=Cs(E,P);continue}}}let $=L&&Cs(T,L);p(L,P),P=P&&Cs(E,P),L=$}let I=[];for(;L;)Uu(l,L)||I.push(L),L=Cs(T,L);for(;I.length;){let z=I.shift();z.remove(),c(z)}}function x(T){return T&&T.nodeType===1&&s(T)}function k(T){let E={};for(let M of T){let A=x(M);A&&(E[A]=M)}return E}function S(T,E,M){if(!Uu(u,E)){let A=E.cloneNode(!0);return T.insertBefore(A,M),d(A),A}return E}return h(t),n=typeof e=="string"?rG(e):e,window.Alpine&&window.Alpine.closestDataStack&&!i._x_dataStack&&(n._x_dataStack=window.Alpine.closestDataStack(i),n._x_dataStack&&window.Alpine.cloneNode(i,n)),p(i,n),n=void 0,i}uO.step=()=>{};uO.log=()=>{};function Uu(i,...e){let t=!1;return i(...e,()=>t=!0),t}var zL=!1;function rG(i){const e=document.createElement("template");return e.innerHTML=i,e.content.firstElementChild}function oG(i){return i.nodeType===3||i.nodeType===8}var QP=class{constructor(i,e){this.startComment=i,this.endComment=e}get children(){let i=[],e=this.startComment.nextSibling;for(;e&&e!==this.endComment;)i.push(e),e=e.nextSibling;return i}appendChild(i){this.endComment.before(i)}get firstChild(){let i=this.startComment.nextSibling;if(i!==this.endComment)return i}nextNode(i){let e=i.nextSibling;if(e!==this.endComment)return e}insertBefore(i,e){return e.before(i),i}};function VL(i){return i.firstChild}function Cs(i,e){let t;return i instanceof QP?t=i.nextNode(e):t=e.nextSibling,t}function aG(){if(zL)return;zL=!0;let i=Element.prototype.setAttribute,e=document.createElement("div");Element.prototype.setAttribute=function(n,s){if(!n.includes("@"))return i.call(this,n,s);e.innerHTML=`<span ${n}="${s}"></span>`;let r=e.firstElementChild.getAttributeNode(n);e.firstElementChild.removeAttributeNode(r),this.setAttributeNode(r)}}function lG(i,e){let t=e&&e._x_bindings&&e._x_bindings.id;t&&i.setAttribute&&(i.setAttribute("id",t),i.id=t)}function cG(i){i.morph=uO}var uG=cG;function dG(i){i.directive("intersect",i.skipDuringClone((e,{value:t,expression:n,modifiers:s},{evaluateLater:r,cleanup:o})=>{let a=r(n),l={rootMargin:pG(s),threshold:hG(s)},c=new IntersectionObserver(u=>{u.forEach(d=>{d.isIntersecting!==(t==="leave")&&(a(),s.includes("once")&&c.disconnect())})},l);c.observe(e),o(()=>{c.disconnect()})}))}function hG(i){if(i.includes("full"))return .99;if(i.includes("half"))return .5;if(!i.includes("threshold"))return 0;let e=i[i.indexOf("threshold")+1];return e==="100"?1:e==="0"?0:+`.${e}`}function fG(i){let e=i.match(/^(-?[0-9]+)(px|%)?$/);return e?e[1]+(e[2]||"px"):void 0}function pG(i){const e="margin",t="0px 0px 0px 0px",n=i.indexOf(e);if(n===-1)return t;let s=[];for(let r=1;r<5;r++)s.push(fG(i[n+r]||""));return s=s.filter(r=>r!==void 0),s.length?s.join(" ").trim():t}var gG=dG;function dO(){}dO.prototype={on:function(i,e,t){var n=this.e||(this.e={});return(n[i]||(n[i]=[])).push({fn:e,ctx:t}),this},once:function(i,e,t){var n=this;function s(){n.off(i,s),e.apply(t,arguments)}return s._=e,this.on(i,s,t)},emit:function(i){for(var e=[].slice.call(arguments,1),t=((this.e||(this.e={}))[i]||[]).slice(),n=0,s=t.length;n<s;n++)t[n].fn.apply(t[n].ctx,e);return this},off:function(i,e){var t=this.e||(this.e={}),n=t[i],s=[];if(n&&e)for(var r=0,o=n.length;r<o;r++)n[r].fn!==e&&n[r].fn._!==e&&s.push(n[r]);return s.length?t[i]=s:delete t[i],this}};var fF=dO;fF.TinyEmitter=dO;var Go=function(i){this.wrap=document.querySelector("[data-router-wrapper]"),this.properties=i,this.Transition=i.transition?new i.transition.class(this.wrap,i.transition.name):null};Go.prototype.setup=function(){this.onEnter&&this.onEnter(),this.onEnterCompleted&&this.onEnterCompleted()},Go.prototype.add=function(){this.wrap.insertAdjacentHTML("beforeend",this.properties.view.outerHTML)},Go.prototype.update=function(){document.title=this.properties.page.title},Go.prototype.show=function(i){var e=this;return new Promise(function(t){try{let n=function(s){e.onEnterCompleted&&e.onEnterCompleted(),t()};
18return e.update(),e.onEnter&&e.onEnter(),Promise.resolve(e.Transition?Promise.resolve(e.Transition.show(i)).then(n):n())}catch(n){return Promise.reject(n)}})},Go.prototype.hide=function(i){var e=this;return new Promise(function(t){try{let n=function(s){e.onLeaveCompleted&&e.onLeaveCompleted(),t()};return e.onLeave&&e.onLeave(),Promise.resolve(e.Transition?Promise.resolve(e.Transition.hide(i)).then(n):n())}catch(n){return Promise.reject(n)}})};var mG=new window.DOMParser,ts=function(i,e){this.renderers=i,this.transitions=e};ts.prototype.getOrigin=function(i){var e=i.match(/(https?:\/\/[\w\-.]+)/);return e?e[1].replace(/https?:\/\//,""):null},ts.prototype.getPathname=function(i){var e=i.match(/https?:\/\/.*?(\/[\w_\-./]+)/);return e?e[1]:"/"},ts.prototype.getAnchor=function(i){var e=i.match(/(#.*)$/);return e?e[1]:null},ts.prototype.getParams=function(i){var e=i.match(/\?([\w_\-.=&]+)/);if(!e)return null;for(var t=e[1].split("&"),n={},s=0;s<t.length;s++){var r=t[s].split("=");n[r[0]]=r[1]}return n},ts.prototype.getDOM=function(i){return typeof i=="string"?mG.parseFromString(i,"text/html"):i},ts.prototype.getView=function(i){return i.querySelector("[data-router-view]")},ts.prototype.getSlug=function(i){return i.getAttribute("data-router-view")},ts.prototype.getRenderer=function(i){if(!this.renderers)return Promise.resolve(Go);if(i in this.renderers){var e=this.renderers[i];return typeof e!="function"||Go.isPrototypeOf(e)?typeof e.then=="function"?Promise.resolve(e).then(function(t){return t.default}):Promise.resolve(e):Promise.resolve(e()).then(function(t){return t.default})}return Promise.resolve(Go)},ts.prototype.getTransition=function(i){return this.transitions?i in this.transitions?{class:this.transitions[i],name:i}:"default"in this.transitions?{class:this.transitions.default,name:"default"}:null:null},ts.prototype.getProperties=function(i){var e=this.getDOM(i),t=this.getView(e),n=this.getSlug(t);return{page:e,view:t,slug:n,renderer:this.getRenderer(n,this.renderers),transition:this.getTransition(n,this.transitions)}},ts.prototype.getLocation=function(i){return{href:i,anchor:this.getAnchor(i),origin:this.getOrigin(i),params:this.getParams(i),pathname:this.getPathname(i)}};var bG=function(i){function e(t){var n=this;t===void 0&&(t={});var s=t.renderers,r=t.transitions;i.call(this),this.Helpers=new ts(s,r),this.Transitions=r,this.Contextual=!1,this.location=this.Helpers.getLocation(window.location.href),this.properties=this.Helpers.getProperties(document.cloneNode(!0)),this.popping=!1,this.running=!1,this.trigger=null,this.cache=new Map,this.cache.set(this.location.href,this.properties),this.properties.renderer.then(function(o){n.From=new o(n.properties),n.From.setup()}),this._navigate=this.navigate.bind(this),window.addEventListener("popstate",this.popState.bind(this)),this.links=document.querySelectorAll("a:not([target]):not([data-router-disabled])"),this.attach(this.links)}return i&&(e.__proto__=i),(e.prototype=Object.create(i&&i.prototype)).constructor=e,e.prototype.attach=function(t){for(var n=0,s=t;n<s.length;n+=1)s[n].addEventListener("click",this._navigate)},e.prototype.detach=function(t){for(var n=0,s=t;n<s.length;n+=1)s[n].removeEventListener("click",this._navigate)},e.prototype.navigate=function(t){if(!t.metaKey&&!t.ctrlKey){t.preventDefault();var n=!!t.currentTarget.hasAttribute("data-transition")&&t.currentTarget.dataset.transition;this.redirect(t.currentTarget.href,n,t.currentTarget)}},e.prototype.redirect=function(t,n,s){if(n===void 0&&(n=!1),s===void 0&&(s="script"),this.trigger=s,!this.running&&t!==this.location.href){var r=this.Helpers.getLocation(t);this.Contextual=!1,n&&(this.Contextual=this.Transitions.contextual[n].prototype,this.Contextual.name=n),r.origin!==this.location.origin||r.anchor&&r.pathname===this.location.pathname?window.location.href=t:(this.location=r,this.beforeFetch())}},e.prototype.popState=function(){this.trigger="popstate",this.Contextual=!1;var t=this.Helpers.getLocation(window.location.href);this.location.pathname!==t.pathname||!this.location.anchor&&!t.anchor?(this.popping=!0,this.location=t,this.beforeFetch()):this.location=t},e.prototype.pushState=function(){this.popping||window.history.pushState(this.location,"",this.location.href)},e.prototype.fetch=function(){try{var t=this;return Promise.resolve(fetch(t.location.href,{mode:"same-origin",method:"GET",headers:{"X-Requested-With":"Highway"},credentials:"same-origin"})).then(function(n){if(n.status>=200&&n.status<300)return n.text();window.location.href=t.location.href})}catch(n){return Promise.reject(n)}},e.prototype.beforeFetch=function(){try{let r=function(){t.afterFetch()};var t=this;t.pushState(),t.running=!0,t.emit("NAVIGATE_OUT",{from:{page:t.From.properties.page,view:t.From.properties.view},trigger:t.trigger,location:t.location});var n={trigger:t.trigger,contextual:t.Contextual},s=t.cache.has(t.location.href)?Promise.resolve(t.From.hide(n)).then(function(){t.properties=t.cache.get(t.location.href)}):Promise.resolve(Promise.all([t.fetch(),t.From.hide(n)])).then(function(o){t.properties=t.Helpers.getProperties(o[0]),t.cache.set(t.location.href,t.properties)});return Promise.resolve(s&&s.then?s.then(r):r())}catch(r){return Promise.reject(r)}},e.prototype.afterFetch=function(){try{var t=this;return Promise.resolve(t.properties.renderer).then(function(n){return t.To=new n(t.properties),t.To.add(),t.emit("NAVIGATE_IN",{to:{page:t.To.properties.page,view:t.To.wrap.lastElementChild},trigger:t.trigger,location:t.location}),Promise.resolve(t.To.show({trigger:t.trigger,contextual:t.Contextual})).then(function(){t.popping=!1,t.running=!1,t.detach(t.links),t.links=document.querySelectorAll("a:not([target]):not([data-router-disabled])"),t.attach(t.links),t.emit("NAVIGATE_END",{to:{page:t.To.properties.page,view:t.To.wrap.lastElementChild},from:{page:t.From.properties.page,view:t.From.properties.view},trigger:t.trigger,location:t.location}),t.From=t.To,t.trigger=null})})}catch(n){return Promise.reject(n)}},e}(fF),JP=function(i,e){this.wrap=i,this.name=e};JP.prototype.show=function(i){var e=this,t=i.trigger,n=i.contextual,s=this.wrap.lastElementChild,r=this.wrap.firstElementChild;return new Promise(function(o){n?(s.setAttribute("data-transition-in",n.name),s.removeAttribute("data-transition-out",n.name),n.in&&n.in({to:s,from:r,trigger:t,done:o})):(s.setAttribute("data-transition-in",e.name),s.removeAttribute("data-transition-out",e.name),e.in&&e.in({to:s,from:r,trigger:t,done:o}))})},JP.prototype.hide=function(i){var e=this,t=i.trigger,n=i.contextual,s=this.wrap.firstElementChild;return new Promise(function(r){n?(s.setAttribute("data-transition-out",n.name),s.removeAttribute("data-transition-in",n.name),n.out&&n.out({from:s,trigger:t,done:r})):(s.setAttribute("data-transition-out",e.name),s.removeAttribute("data-transition-in",e.name),e.out&&e.out({from:s,trigger:t,done:r}))})},console.log("Highway v2.2.0");const Fk={Core:bG,Helpers:ts,Renderer:Go,Transition:JP};class yG extends Fk.Renderer{onEnter(){var n;let e="#D10513",t="";if((n=this.properties)!=null&&n.page){const s=this.properties.page,r=s.querySelector("html"),o=s.querySelector("body");if(r){const a=r.getAttribute("data-accent-color");a&&(e=a)}if(o){const a=o.getAttribute("data-bg-color");a!=null&&a.trim()&&(t=a)}}document.documentElement.style.setProperty("--accent-color",e),document.body.style.backgroundColor=t,t?document.body.style.setProperty("--page-bg",t):document.body.style.removeProperty("--page-bg"),document.documentElement.setAttribute("data-accent-color",e),document.body.setAttribute("data-bg-color",t)}onLeave(){}onEnterCompleted(){}onLeaveCompleted(){}}function fo(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function pF(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,i.__proto__=e}/*! 19 * GSAP 3.12.7 20 * https://gsap.com 21 * 22 * @license Copyright 2008-2025, GreenSock. All rights reserved. 23 * Subject to the terms at https://gsap.com/standard-license or for 24 * Club GSAP members, the agreement issued with that membership. 25 * @author: Jack Doyle, [email protected] 26*/var ms={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Fh={duration:.5,overwrite:!1,delay:0},hO,Gi,We,Bs=1e8,xe=1/Bs,ZP=Math.PI*2,vG=ZP/4,wG=0,gF=Math.sqrt,_G=Math.cos,xG=Math.sin,Fi=function(e){return typeof e=="string"},ni=function(e){return typeof e=="function"},ra=function(e){return typeof e=="number"},fO=function(e){return typeof e>"u"},Jr=function(e){return typeof e=="object"},Hn=function(e){return e!==!1},pO=function(){return typeof window<"u"},ob=function(e){return ni(e)||Fi(e)},mF=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},rn=Array.isArray,tC=/(?:-?\.?\d|\.)+/gi,bF=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,id=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,P
vendor: 5,084 bytes, line 26
26E=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,yF=/[+-]=-?[.\d]+/,vF=/[^,'"\[\]\s]+/gi,SG=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Je,Tr,eC,gO,ys={},qy={},wF,_F=function(e){return(qy=Nh(e,ys))&&on},mO=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},Sp=function(e,t){return!t&&console.warn(e)},xF=function(e,t){return e&&(ys[e]=t)&&qy&&(qy[e]=t)||ys},Tp=function(){return 0},TG={suppressEvents:!0,isStart:!0,kill:!1},Ub={suppressEvents:!0,kill:!1},kG={suppressEvents:!0},bO={},ml=[],iC={},SF,ls={},CE={},qL=30,Gb=[],yO="",vO=function(e){var t=e[0],n,s;if(Jr(t)||ni(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(s=Gb.length;s--&&!Gb[s].targetTest(t););n=Gb[s]}for(s=e.length;s--;)e[s]&&(e[s]._gsap||(e[s]._gsap=new GF(e[s],n)))||e.splice(s,1);return e},hu=function(e){return e._gsap||vO(zs(e))[0]._gsap},TF=function(e,t,n){return(n=e[t])&&ni(n)?e[t]():fO(n)&&e.getAttribute&&e.getAttribute(t)||n},Wn=function(e,t){return(e=e.split(",")).forEach(t)||e},li=function(e){return Math.round(e*1e5)/1e5||0},pi=function(e){return Math.round(e*1e7)/1e7||0},od=function(e,t){var n=t.charAt(0),s=parseFloat(t.substr(2));return e=parseFloat(e),n==="+"?e+s:n==="-"?e-s:n==="*"?e*s:e/s},EG=function(e,t){for(var n=t.length,s=0;e.indexOf(t[s])<0&&++s<n;);return s<n},Hy=function(){var e=ml.length,t=ml.slice(0),n,s;for(iC={},ml.length=0,n=0;n<e;n++)s=t[n],s&&s._lazy&&(s.render(s._lazy[0],s._lazy[1],!0)._lazy=0)},kF=function(e,t,n,s){ml.length&&!Gi&&Hy(),e.render(t,n,s||Gi&&t<0&&(e._initted||e._startAt)),ml.length&&!Gi&&Hy()},EF=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(vF).length<2?t:Fi(e)?e.trim():e},PF=function(e){return e},vs=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},PG=function(e){return function(t,n){for(var s in n)s in t||s==="duration"&&e||s==="ease"||(t[s]=n[s])}},Nh=function(e,t){for(var n in t)e[n]=t[n];return e},HL=function i(e,t){for(var n in t)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(e[n]=Jr(t[n])?i(e[n]||(e[n]={}),t[n]):t[n]);return e},Wy=function(e,t){var n={},s;for(s in e)s in t||(n[s]=e[s]);return n},Zf=function(e){var t=e.parent||Je,n=e.keyframes?PG(rn(e.keyframes)):vs;if(Hn(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},CG=function(e,t){for(var n=e.length,s=n===t.length;s&&n--&&e[n]===t[n];);return n<0},CF=function(e,t,n,s,r){n===void 0&&(n="_first"),s===void 0&&(s="_last");var o=e[s],a;if(r)for(a=t[r];o&&o[r]>a;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[s]=t,t._prev=o,t.parent=t._dp=e,t},Nk=function(e,t,n,s){n===void 0&&(n="_first"),s===void 0&&(s="_last");var r=t._prev,o=t._next;r?r._next=o:e[n]===t&&(e[n]=o),o?o._prev=r:e[s]===t&&(e[s]=r),t._next=t._prev=t.parent=null},xl=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},fu=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},AG=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},nC=function(e,t,n,s){return e._startAt&&(Gi?e._startAt.revert(Ub):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,s))},MG=function i(e){return!e||e._ts&&i(e.parent)},WL=function(e){return e._repeat?Bh(e._tTime,e=e.duration()+e._rDelay)*e:0},Bh=function(e,t){var n=Math.floor(e=pi(e/t));return e&&n===e?n-1:n},jy=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Bk=function(e){return e._end=pi(e._start+(e._tDur/Math.abs(e._ts||e._rts||xe)||0))},zk=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=pi(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Bk(e),n._dirty||fu(n,e)),e},AF=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=jy(e.rawTime(),t),(!t._dur||F0(0,t.totalDuration(),n)-t._tTime>xe)&&t.render(n,!0)),fu(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-xe}},qr=function(e,t,n,s){return t.parent&&xl(t),t._start=pi((ra(n)?n:n||e!==Je?Os(e,n,t):e._time)+t._delay),t._end=pi(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),CF(e,t,"_first","_last",e._sort?"_start":0),sC(t)||(e._recent=t),s||AF(e,t),e._ts<0&&zk(e,e._tTime),e},MF=function(e,t){return(ys.ScrollTrigger||mO("scrollTrigger",t))&&ys.ScrollTrigger.create(t,e)},OF=function(e,t,n,s,r){if(_O(e,t,r),!e._initted)return 1;if(!n&&e._pt&&!Gi&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&SF!==hs.frame)return ml.push(e),e._lazy=[r,s],1},OG=function i(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||i(t))},sC=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},$G=function(e,t,n,s){var r=e.ratio,o=t<0||!t&&(!e._start&&OG(e)&&!(!e._initted&&sC(e))||(e._ts<0||e._dp._ts<0)&&!sC(e))?0:1,a=e._rDelay,l=0,c,u,d;if(a&&e._repeat&&(l=F0(0,e._tDur,t),u=Bh(l,a),e._yoyo&&u&1&&(o=1-o),u!==Bh(e._tTime,a)&&(r=1-o,e.vars.repeatRefresh&&e._initted&&e.invali
vendor: 17,750 bytes, line 26
26date())),o!==r||Gi||s||e._zTime===xe||!t&&e._zTime){if(!e._initted&&OF(e,t,s,n,l))return;for(d=e._zTime,e._zTime=t||(n?xe:0),n||(n=t&&!d),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=l,c=e._pt;c;)c.r(o,c.d),c=c._next;t<0&&nC(e,t,n,!0),e._onUpdate&&!n&&ps(e,"onUpdate"),l&&e._repeat&&!n&&e.parent&&ps(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===o&&(o&&xl(e,1),!n&&!Gi&&(ps(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},LG=function(e,t,n){var s;if(n>t)for(s=e._first;s&&s._start<=n;){if(s.data==="isPause"&&s._start>t)return s;s=s._next}else for(s=e._last;s&&s._start>=n;){if(s.data==="isPause"&&s._start<t)return s;s=s._prev}},zh=function(e,t,n,s){var r=e._repeat,o=pi(t)||0,a=e._tTime/e._tDur;return a&&!s&&(e._time*=o/e._dur),e._dur=o,e._tDur=r?r<0?1e10:pi(o*(r+1)+e._rDelay*r):o,a>0&&!s&&zk(e,e._tTime=e._tDur*a),e.parent&&Bk(e),n||fu(e.parent,e),e},jL=function(e){return e instanceof Sn?fu(e):zh(e,e._dur)},IG={_start:0,endTime:Tp,totalDuration:Tp},Os=function i(e,t,n){var s=e.labels,r=e._recent||IG,o=e.duration()>=Bs?r.endTime(!1):e._dur,a,l,c;return Fi(t)&&(isNaN(t)||t in s)?(l=t.charAt(0),c=t.substr(-1)==="%",a=t.indexOf("="),l==="<"||l===">"?(a>=0&&(t=t.replace(/=/,"")),(l==="<"?r._start:r.endTime(r._repeat>=0))+(parseFloat(t.substr(1))||0)*(c?(a<0?r:n).totalDuration()/100:1)):a<0?(t in s||(s[t]=o),s[t]):(l=parseFloat(t.charAt(a-1)+t.substr(a+1)),c&&n&&(l=l/100*(rn(n)?n[0]:n).totalDuration()),a>1?i(e,t.substr(0,a-1),n)+l:o+l)):t==null?o:+t},tp=function(e,t,n){var s=ra(t[1]),r=(s?2:1)+(e<2?0:1),o=t[r],a,l;if(s&&(o.duration=t[1]),o.parent=n,e){for(a=o,l=n;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=Hn(l.vars.inherit)&&l.parent;o.immediateRender=Hn(a.immediateRender),e<2?o.runBackwards=1:o.startAt=t[r-1]}return new fi(t[0],o,t[r+1])},Ml=function(e,t){return e||e===0?t(e):t},F0=function(e,t,n){return n<e?e:n>t?t:n},Zi=function(e,t){return!Fi(e)||!(t=SG.exec(e))?"":t[1]},DG=function(e,t,n){return Ml(n,function(s){return F0(e,t,s)})},rC=[].slice,$F=function(e,t){return e&&Jr(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&Jr(e[0]))&&!e.nodeType&&e!==Tr},RG=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(s){var r;return Fi(s)&&!t||$F(s,1)?(r=n).push.apply(r,zs(s)):n.push(s)})||n},zs=function(e,t,n){return We&&!t&&We.selector?We.selector(e):Fi(e)&&!n&&(eC||!Vh())?rC.call((t||gO).querySelectorAll(e),0):rn(e)?RG(e,n):$F(e)?rC.call(e,0):e?[e]:[]},oC=function(e){return e=zs(e)[0]||Sp("Invalid scope")||{},function(t){var n=e.current||e.nativeElement||e;return zs(t,n.querySelectorAll?n:n===e?Sp("Invalid scope")||gO.createElement("div"):e)}},LF=function(e){return e.sort(function(){return .5-Math.random()})},IF=function(e){if(ni(e))return e;var t=Jr(e)?e:{each:e},n=pu(t.ease),s=t.from||0,r=parseFloat(t.base)||0,o={},a=s>0&&s<1,l=isNaN(s)||a,c=t.axis,u=s,d=s;return Fi(s)?u=d={center:.5,edges:.5,end:1}[s]||0:!a&&l&&(u=s[0],d=s[1]),function(h,p,m){var g=(m||t).length,v=o[g],w,_,x,k,S,T,E,M,A;if(!v){if(A=t.grid==="auto"?0:(t.grid||[1,Bs])[1],!A){for(E=-Bs;E<(E=m[A++].getBoundingClientRect().left)&&A<g;);A<g&&A--}for(v=o[g]=[],w=l?Math.min(A,g)*u-.5:s%A,_=A===Bs?0:l?g*d/A-.5:s/A|0,E=0,M=Bs,T=0;T<g;T++)x=T%A-w,k=_-(T/A|0),v[T]=S=c?Math.abs(c==="y"?k:x):gF(x*x+k*k),S>E&&(E=S),S<M&&(M=S);s==="random"&&LF(v),v.max=E-M,v.min=M,v.v=g=(parseFloat(t.amount)||parseFloat(t.each)*(A>g?g-1:c?c==="y"?g/A:A:Math.max(A,g/A))||0)*(s==="edges"?-1:1),v.b=g<0?r-g:r,v.u=Zi(t.amount||t.each)||0,n=n&&g<0?WF(n):n}return g=(v[h]-v.min)/v.max||0,pi(v.b+(n?n(g):g)*v.v)+v.u}},aC=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(n){var s=pi(Math.round(parseFloat(n)/e)*e*t);return(s-s%1)/t+(ra(n)?0:Zi(n))}},DF=function(e,t){var n=rn(e),s,r;return!n&&Jr(e)&&(s=n=e.radius||Bs,e.values?(e=zs(e.values),(r=!ra(e[0]))&&(s*=s)):e=aC(e.increment)),Ml(t,n?ni(e)?function(o){return r=e(o),Math.abs(r-o)<=s?r:o}:function(o){for(var a=parseFloat(r?o.x:o),l=parseFloat(r?o.y:0),c=Bs,u=0,d=e.length,h,p;d--;)r?(h=e[d].x-a,p=e[d].y-l,h=h*h+p*p):h=Math.abs(e[d]-a),h<c&&(c=h,u=d);return u=!s||c<=s?e[u]:o,r||u===o||ra(o)?u:u+Zi(o)}:aC(e))},RF=function(e,t,n,s){return Ml(rn(e)?!t:n===!0?!!(n=0):!s,function(){return rn(e)?e[~~(Math.random()*e.length)]:(n=n||1e-5)&&(s=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+n*.99))/n)*n*s)/s})},FG=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(s){return t.reduce(function(r,o){return o(r)},s)}},NG=function(e,t){return function(n){return e(parseFloat(n))+(t||Zi(n))}},BG=function(e,t,n){return NF(e,t,0,1,n)},FF=function(e,t,n){return Ml(n,function(s){return e[~~t(s)]})},zG=function i(e,t,n){var s=t-e;return rn(e)?FF(e,i(0,e.length),t):Ml(n,function(r){return(s+(r-e)%s)%s+e})},VG=function i(e,t,n){var s=t-e,r=s*2;return rn(e)?FF(e,i(0,e.length-1),t):Ml(n,function(o){return o=(r+(o-e)%r)%r||0,e+(o>s?r-o:o)})},kp=function(e){for(var t=0,n="",s,r,o,a;~(s=e.indexOf("random(",t));)o=e.indexOf(")",s),a=e.charAt(s+7)==="[",r=e.substr(s+7,o-s-7).match(a?vF:tC),n+=e.substr(t,s-t)+RF(a?r:+r[0],a?0:+r[1],+r[2]||1e-5),t=o+1;return n+e.substr(t,e.length-t)},NF=function(e,t,n,s,r){var o=t-e,a=s-n;return Ml(r,function(l){return n+((l-e)/o*a||0)})},qG=function i(e,t,n,s){var r=isNaN(e+t)?0:function(p){return(1-p)*e+p*t};if(!r){var o=Fi(e),a={},l,c,u,d,h;if(n===!0&&(s=1)&&(n=null),o)e={p:e},t={p:t};else if(rn(e)&&!rn(t)){for(u=[],d=e.length,h=d-2,c=1;c<d;c++)u.push(i(e[c-1],e[c]));d--,r=function(m){m*=d;var g=Math.min(h,~~m);return u[g](m-g)},n=t}else s||(e=Nh(rn(e)?[]:{},e));if(!u){for(l in t)wO.call(a,e,l,"get",t[l]);r=function(m){return TO(m,a)||(o?e.p:e)}}}return Ml(n,r)},UL=function(e,t,n){var s=e.labels,r=Bs,o,a,l;for(o in s)a=s[o]-t,a<0==!!n&&a&&r>(a=Math.abs(a))&&(l=o,r=a);return l},ps=function(e,t,n){var s=e.vars,r=s[t],o=We,a=e._ctx,l,c,u;if(r)return l=s[t+"Params"],c=s.callbackScope||e,n&&ml.length&&Hy(),a&&(We=a),u=l?r.apply(c,l):r.call(c),We=o,u},$f=function(e){return xl(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Gi),e.progress()<1&&ps(e,"onInterrupt"),e},nd,BF=[],zF=function(e){if(e)if(e=!e.name&&e.default||e,pO()||e.headless){var t=e.name,n=ni(e),s=t&&!n&&e.init?function(){this._props=[]}:e,r={init:Tp,render:TO,add:wO,kill:sY,modifier:nY,rawVars:0},o={targetTest:0,get:0,getSetter:SO,aliases:{},register:0};if(Vh(),e!==s){if(ls[t])return;vs(s,vs(Wy(e,r),o)),Nh(s.prototype,Nh(r,Wy(e,o))),ls[s.prop=t]=s,e.targetTest&&(Gb.push(s),bO[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}xF(t,s),e.register&&e.register(on,s,jn)}else BF.push(e)},_e=255,Lf={aqua:[0,_e,_e],lime:[0,_e,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,_e],navy:[0,0,128],white:[_e,_e,_e],olive:[128,128,0],yellow:[_e,_e,0],orange:[_e,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[_e,0,0],pink:[_e,192,203],cyan:[0,_e,_e],transparent:[_e,_e,_e,0]},AE=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*_e+.5|0},VF=function(e,t,n){var s=e?ra(e)?[e>>16,e>>8&_e,e&_e]:0:Lf.black,r,o,a,l,c,u,d,h,p,m;if(!s){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Lf[e])s=Lf[e];else if(e.charAt(0)==="#"){if(e.length<6&&(r=e.charAt(1),o=e.charAt(2),a=e.charAt(3),e="#"+r+r+o+o+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return s=parseInt(e.substr(1,6),16),[s>>16,s>>8&_e,s&_e,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),s=[e>>16,e>>8&_e,e&_e]}else if(e.substr(0,3)==="hsl"){if(s=m=e.match(tC),!t)l=+s[0]%360/360,c=+s[1]/100,u=+s[2]/100,o=u<=.5?u*(c+1):u+c-u*c,r=u*2-o,s.length>3&&(s[3]*=1),s[0]=AE(l+1/3,r,o),s[1]=AE(l,r,o),s[2]=AE(l-1/3,r,o);else if(~e.indexOf("="))return s=e.match(bF),n&&s.length<4&&(s[3]=1),s}else s=e.match(tC)||Lf.transparent;s=s.map(Number)}return t&&!m&&(r=s[0]/_e,o=s[1]/_e,a=s[2]/_e,d=Math.max(r,o,a),h=Math.min(r,o,a),u=(d+h)/2,d===h?l=c=0:(p=d-h,c=u>.5?p/(2-d-h):p/(d+h),l=d===r?(o-a)/p+(o<a?6:0):d===o?(a-r)/p+2:(r-o)/p+4,l*=60),s[0]=~~(l+.5),s[1]=~~(c*100+.5),s[2]=~~(u*100+.5)),n&&s.length<4&&(s[3]=1),s},qF=function(e){var t=[],n=[],s=-1;return e.split(bl).forEach(function(r){var o=r.match(id)||[];t.push.apply(t,o),n.push(s+=o.length+1)}),t.c=n,t},GL=function(e,t,n){var s="",r=(e+s).match(bl),o=t?"hsla(":"rgba(",a=0,l,c,u,d;if(!r)return e;if(r=r.map(function(h){return(h=VF(h,t,1))&&o+(t?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),n&&(u=qF(e),l=n.c,l.join(s)!==u.c.join(s)))for(c=e.replace(bl,"1").split(id),d=c.length-1;a<d;a++)s+=c[a]+(~l.indexOf(a)?r.shift()||o+"0,0,0,0)":(u.length?u:r.length?r:n).shift());if(!c)for(c=e.split(bl),d=c.length-1;a<d;a++)s+=c[a]+r[a];return s+c[d]},bl=function(){var i="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Lf)i+="|"+e+"\\b";return new RegExp(i+")","gi")}(),HG=/hsl[a]?\(/,HF=function(e){var t=e.join(" "),n;if(bl.lastIndex=0,bl.test(t))return n=HG.test(t),e[1]=GL(e[1],n),e[0]=GL(e[0],n,qF(e[1])),!0},Ep,hs=function(){var i=Date.now,e=500,t=33,n=i(),s=n,r=1e3/240,o=r,a=[],l,c,u,d,h,p,m=function g(v){var w=i()-s,_=v===!0,x,k,S,T;if((w>e||w<0)&&(n+=w-t),s+=w,S=s-n,x=S-o,(x>0||_)&&(T=++d.frame,h=S-d.time*1e3,d.time=S=S/1e3,o+=x+(x>=r?4:r-x),k=1),_||(l=c(g)),k)for(p=0;p<a.length;p++)a[p](S,h,T,v)};return d={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(v){return h/(1e3/(v||60))},wake:function(){wF&&(!eC&&pO()&&(Tr=eC=window,gO=Tr.document||{},ys.gsap=on,(Tr.gsapVersions||(Tr.gsapVersions=[])).push(on.version),_F(qy||Tr.GreenSockGlobals||!Tr.gsap&&Tr||{}),BF.forEach(zF)),u=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&d.sleep(),c=u||function(v){return setTimeout(v,o-d.time*1e3+1|0)},Ep=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(l),Ep=0,c=Tp},lagSmoothing:function(v,w){e=v||1/0,t=Math.min(w||33,e)},fps:function(v){r=1e3/(v||240),o=d.time*1e3+r},add:function(v,w,_){var x=w?function(k,S,T,E){v(k,S,T,E),d.remove(x)}:v;return d.remove(v),a[_?"unshift":"push"](x),Vh(),x},remove:function(v,w){~(w=a.indexOf(v))&&a.splice(w,1)&&p>=w&&p--},_listeners:a},d}(),Vh=function(){return!Ep&&hs.wake()},Qt={},WG=/^[\d.\-M][\d.\-,\s]/,jG=/["']/g,UG=function(e){for(var t={},n=e.substr(1,e.length-3).split(":"),s=n[0],r=1,o=n.length,a,l,c;r<o;r++)l=n[r],a=r!==o-1?l.lastIndexOf(","):l.length,c=l.substr(0,a),t[s]=isNaN(c)?c.replace(jG,"").trim():+c,s=l.substr(a+1).trim();return t},GG=function(e){var t=e.indexOf("(")+1,n=e.indexOf(")"),s=e.indexOf("(",t);return e.substring(t,~s&&s<n?e.indexOf(")",n+1):n)},YG=function(e){var t=(e+"").split("("),n=Qt[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf("{")?[UG(t[1])]:GG(e).split(",").map(EF)):Qt._CE&&WG.test(e)?Qt._CE("",e):n},WF=function(e){return function(t){return 1-e(1-t)}},jF=function i(e,t){for(var n=e._first,s;n;)n instanceof Sn?i(n,t):n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==t&&(n.timeline?i(n.timeline,t):(s=n._ease,n._ease=n._yEase,n._yEase=s,n._yoyo=t)),n=n._next},pu=function(e,t){return e&&(ni(e)?e:Qt[e]||YG(e))||t},Fu=function(e,t,n,s){n===void 0&&(n=function(l){return 1-t(1-l)}),s===void 0&&(s=function(l){return l<.5?t(l*2)/2:1-t((1-l)*2)/2});var r={easeIn:t,easeOut:n,easeInOut:s},o;return Wn(e,function(a){Qt[a]=ys[a]=r,Qt[o=a.toLowerCase()]=n;for(var l in r)Qt[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=Qt[a+"."+l]=r[l]}),r},UF=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},ME=function i(e,t,n){var s=t>=1?t:1,r=(n||(e?.3:.45))/(t<1?t:1),o=r/ZP*(Math.asin(1/s)||0),a=function(u){return u===1?1:s*Math.pow(2,-10*u)*xG((u-o)*r)+1},l=e==="out"?a:e==="in"?function(c){return 1-a(1-c)}:UF(a);return r=ZP/r,l.config=function(c,u){return i(e,c,u)},l},OE=function i(e,t){t===void 0&&(t=1.70158);var n=function(o){return o?--o*o*((t+1)*o+t)+1:0},s=e==="out"?n:e==="in"?function(r){return 1-n(1-r)}:UF(n);return s.config=function(r){return i(e,r)},s};Wn("Linear,Quad,Cubic,Quart,Quint,Strong",function(i,e){var t=e<5?e+1:e;Fu(i+",Power"+(t-1),e?function(n){return Math.pow(n,t)}:function(n){return n},function(n){return 1-Math.pow(1-n,t)},function(n){return n<.5?Math.pow(n*2,t)/2:1-Math.pow((1-n)*2,t)/2})});Qt.Linear.easeNone=Qt.none=Qt.Linear.easeIn;Fu("Elastic",ME("in"),ME("out"),ME());(function(i,e){var t=1/e,n=2*t,s=2.5*t,r=function(a){return a<t?i*a*a:a<n?i*Math.pow(a-1.5/e,2)+.75:a<s?i*(a-=2.25/e)*a+.9375:i*Math.pow(a-2.625/e,2)+.984375};Fu("Bounce",function(o){return 1-r(1-o)},r)})(7.5625,2.75);Fu("Expo",function(i){return Math.pow(2,10*(i-1))*i+i*i*i*i*i*i*(1-i)});Fu("Circ",function(i){return-(gF(1-i*i)-1)});Fu("Sine",function(i){return i===1?1:-_G(i*vG)+1});Fu("Back",OE("in"),OE("out"),OE());Qt.SteppedEase=Qt.steps=ys.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,s=e+(t?0:1),r=t?1:0,o=1-xe;return function(a){return((s*F0(0,o,a)|0)+r)*n}}};Fh.ease=Qt["quad.out"];Wn("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(i){return yO+=i+","+i+"Params,"});var GF=function(e,t){this.id=wG++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:TF,this.set=t?t.getSetter:SO},Pp=function(){function i(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,zh(this,+t.duration,1,1),this.data=t.data,We&&(this._ctx=We,We.data.push(this)),Ep||hs.wake()}var e=i.prototype;return e.delay=function(n){return n||n===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+n-this._delay),this._delay=n,this):this._delay},e.duration=function(n){return arguments.length?this.totalDuration(this._repeat>0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},e.totalDuration=function(n){return arguments.length?(this._dirty=0,zh(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(n,s){if(Vh(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(zk(this,n),!r._dp||r.parent||AF(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n<this._tDur||this._ts<0&&n>0||!this._tDur&&!n)&&qr(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!s||this._initted&&Math.abs(this._zTime)===xe||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),kF(this,n,s)),this},e.time=function(n,s){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+WL(this))%(this._dur+this._rDelay)||(n?this._dur:0),s):this._time},e.totalProgress=function(n,s){return arguments.length?this.totalTime(this.totalDuration()*n,s):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(n,s){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+WL(this),s):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(n,s){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*r,s):this._repeat?Bh(this._tTime,r)+1:1},e.timeScale=function(n,s){if(!arguments.length)return this._rts===-xe?0:this._rts;if(this._rts===n)return this;var r=this.parent&&this._ts?jy(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-xe?0:this._rts,this.totalTime(F0(-Math.abs(this._delay),this._tDur,r),s!==!1),Bk(this),AG(this)},e.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Vh(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==xe&&(this._tTime-=xe)))),this):this._ps},e.startTime=function(n){if(arguments.length){this._start=n;var s=this.parent||this._dp;return s&&(s._sort||!this.parent)&&qr(s,this,n-this._delay),this}return this._start},e.endTime=function(n){return this._start+(Hn(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(n){var s=this.parent||this._dp;return s?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?jy(s.rawTime(n),this):this._tTime:this._tTime},e.revert=function(n){n===void 0&&(n=kG);var s=Gi;return Gi=n,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),Gi=s,this},e.globalTime=function(n){for(var s=this,r=arguments.length?n:s.rawTime();s;)r=s._start+r/(Math.abs(s._ts)||1),s=s._dp;return!this.parent&&this._sat?this._sat.globalTime(n):r},e.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,jL(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(n){if(arguments.length){var s=this._time;return this._rDelay=n,jL(this),s?this.time(s):this}return this._rDelay},e.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},e.seek=function(n,s){return this.totalTime(Os(this,n),Hn(s))},e.restart=function(n,s){return this.play().totalTime(n?-this._delay:0,Hn(s)),this._dur||(this._zTime=-xe),this},e.play=function(n,s){return n!=null&&this.seek(n,s),this.reversed(!1).paused(!1)},e.reverse=function(n,s){return n!=null&&this.seek(n||this.totalDuration(),s),this.reversed(!0).paused(!1)},e.pause=function(n,s){return n!=null&&this.seek(n,s),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-xe:0)),this):this._rts<0}
vendor: 7,616 bytes, line 26
26,e.invalidate=function(){return this._initted=this._act=0,this._zTime=-xe,this},e.isActive=function(){var n=this.parent||this._dp,s=this._start,r;return!!(!n||this._ts&&this._initted&&n.isActive()&&(r=n.rawTime(!0))>=s&&r<this.endTime(!0)-xe)},e.eventCallback=function(n,s,r){var o=this.vars;return arguments.length>1?(s?(o[n]=s,r&&(o[n+"Params"]=r),n==="onUpdate"&&(this._onUpdate=s)):delete o[n],this):o[n]},e.then=function(n){var s=this;return new Promise(function(r){var o=ni(n)?n:PF,a=function(){var c=s.then;s.then=null,ni(o)&&(o=o(s))&&(o.then||o===s)&&(s.then=c),r(o),s.then=c};s._initted&&s.totalProgress()===1&&s._ts>=0||!s._tTime&&s._ts<0?a():s._prom=a})},e.kill=function(){$f(this)},i}();vs(Pp.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:-xe,_prom:0,_ps:!1,_rts:1});var Sn=function(i){pF(e,i);function e(n,s){var r;return n===void 0&&(n={}),r=i.call(this,n)||this,r.labels={},r.smoothChildTiming=!!n.smoothChildTiming,r.autoRemoveChildren=!!n.autoRemoveChildren,r._sort=Hn(n.sortChildren),Je&&qr(n.parent||Je,fo(r),s),n.reversed&&r.reverse(),n.paused&&r.paused(!0),n.scrollTrigger&&MF(fo(r),n.scrollTrigger),r}var t=e.prototype;return t.to=function(s,r,o){return tp(0,arguments,this),this},t.from=function(s,r,o){return tp(1,arguments,this),this},t.fromTo=function(s,r,o,a){return tp(2,arguments,this),this},t.set=function(s,r,o){return r.duration=0,r.parent=this,Zf(r).repeatDelay||(r.repeat=0),r.immediateRender=!!r.immediateRender,new fi(s,r,Os(this,o),1),this},t.call=function(s,r,o){return qr(this,fi.delayedCall(0,s,r),o)},t.staggerTo=function(s,r,o,a,l,c,u){return o.duration=r,o.stagger=o.stagger||a,o.onComplete=c,o.onCompleteParams=u,o.parent=this,new fi(s,o,Os(this,l)),this},t.staggerFrom=function(s,r,o,a,l,c,u){return o.runBackwards=1,Zf(o).immediateRender=Hn(o.immediateRender),this.staggerTo(s,r,o,a,l,c,u)},t.staggerFromTo=function(s,r,o,a,l,c,u,d){return a.startAt=o,Zf(a).immediateRender=Hn(a.immediateRender),this.staggerTo(s,r,a,l,c,u,d)},t.render=function(s,r,o){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,c=this._dur,u=s<=0?0:pi(s),d=this._zTime<0!=s<0&&(this._initted||!c),h,p,m,g,v,w,_,x,k,S,T,E;if(this!==Je&&u>l&&s>=0&&(u=l),u!==this._tTime||o||d){if(a!==this._time&&c&&(u+=this._time-a,s+=this._time-a),h=u,k=this._start,x=this._ts,w=!x,d&&(c||(a=this._zTime),(s||!r)&&(this._zTime=s)),this._repeat){if(T=this._yoyo,v=c+this._rDelay,this._repeat<-1&&s<0)return this.totalTime(v*100+s,r,o);if(h=pi(u%v),u===l?(g=this._repeat,h=c):(S=pi(u/v),g=~~S,g&&g===S&&(h=c,g--),h>c&&(h=c)),S=Bh(this._tTime,v),!a&&this._tTime&&S!==g&&this._tTime-S*v-this._dur<=0&&(S=g),T&&g&1&&(h=c-h,E=1),g!==S&&!this._lock){var M=T&&S&1,A=M===(T&&g&1);if(g<S&&(M=!M),a=M?0:u%c?c:u,this._lock=1,this.render(a||(E?0:pi(g*v)),r,!c)._lock=0,this._tTime=u,!r&&this.parent&&ps(this,"onRepeat"),this.vars.repeatRefresh&&!E&&(this.invalidate()._lock=1),a&&a!==this._time||w!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(c=this._dur,l=this._tDur,A&&(this._lock=2,a=M?c:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!E&&this.invalidate()),this._lock=0,!this._ts&&!w)return this;jF(this,E)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(_=LG(this,pi(a),pi(h)),_&&(u-=h-(h=_._start))),this._tTime=u,this._time=h,this._act=!x,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=s,a=0),!a&&h&&!r&&!g&&(ps(this,"onStart"),this._tTime!==u))return this;if(h>=a&&s>=0)for(p=this._first;p;){if(m=p._next,(p._act||h>=p._start)&&p._ts&&_!==p){if(p.parent!==this)return this.render(s,r,o);if(p.render(p._ts>0?(h-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(h-p._start)*p._ts,r,o),h!==this._time||!this._ts&&!w){_=0,m&&(u+=this._zTime=-xe);break}}p=m}else{p=this._last;for(var P=s<0?s:h;p;){if(m=p._prev,(p._act||P<=p._end)&&p._ts&&_!==p){if(p.parent!==this)return this.render(s,r,o);if(p.render(p._ts>0?(P-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(P-p._start)*p._ts,r,o||Gi&&(p._initted||p._startAt)),h!==this._time||!this._ts&&!w){_=0,m&&(u+=this._zTime=P?-xe:xe);break}}p=m}}if(_&&!r&&(this.pause(),_.render(h>=a?0:-xe)._zTime=h>=a?1:-1,this._ts))return this._start=k,Bk(this),this.render(s,r,o);this._onUpdate&&!r&&ps(this,"onUpdate",!0),(u===l&&this._tTime>=this.totalDuration()||!u&&a)&&(k===this._start||Math.abs(x)!==Math.abs(this._ts))&&(this._lock||((s||!c)&&(u===l&&this._ts>0||!u&&this._ts<0)&&xl(this,1),!r&&!(s<0&&!a)&&(u||a||!l)&&(ps(this,u===l&&s>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u<l&&this.timeScale()>0)&&this._prom())))}return this},t.add=function(s,r){var o=this;if(ra(r)||(r=Os(this,r,s)),!(s instanceof Pp)){if(rn(s))return s.forEach(function(a){return o.add(a,r)}),this;if(Fi(s))return this.addLabel(s,r);if(ni(s))s=fi.delayedCall(0,s);else return this}return this!==s?qr(this,s,r):this},t.getChildren=function(s,r,o,a){s===void 0&&(s=!0),r===void 0&&(r=!0),o===void 0&&(o=!0),a===void 0&&(a=-Bs);for(var l=[],c=this._first;c;)c._start>=a&&(c instanceof fi?r&&l.push(c):(o&&l.push(c),s&&l.push.apply(l,c.getChildren(!0,r,o)))),c=c._next;return l},t.getById=function(s){for(var r=this.getChildren(1,1,1),o=r.length;o--;)if(r[o].vars.id===s)return r[o]},t.remove=function(s){return Fi(s)?this.removeLabel(s):ni(s)?this.killTweensOf(s):(s.parent===this&&Nk(this,s),s===this._recent&&(this._recent=this._last),fu(this))},t.totalTime=function(s,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=pi(hs.time-(this._ts>0?s/this._ts:(this.totalDuration()-s)/-this._ts))),i.prototype.totalTime.call(this,s,r),this._forcing=0,this):this._tTime},t.addLabel=function(s,r){return this.labels[s]=Os(this,r),this},t.removeLabel=function(s){return delete this.labels[s],this},t.addPause=function(s,r,o){var a=fi.delayedCall(0,r||Tp,o);return a.data="isPause",this._hasPause=1,qr(this,a,Os(this,s))},t.removePause=function(s){var r=this._first;for(s=Os(this,s);r;)r._start===s&&r.data==="isPause"&&xl(r),r=r._next},t.killTweensOf=function(s,r,o){for(var a=this.getTweensOf(s,o),l=a.length;l--;)rl!==a[l]&&a[l].kill(s,r);return this},t.getTweensOf=function(s,r){for(var o=[],a=zs(s),l=this._first,c=ra(r),u;l;)l instanceof fi?EG(l._targets,a)&&(c?(!rl||l._initted&&l._ts)&&l.globalTime(0)<=r&&l.globalTime(l.totalDuration())>r:!r||l.isActive())&&o.push(l):(u=l.getTweensOf(a,r)).length&&o.push.apply(o,u),l=l._next;return o},t.tweenTo=function(s,r){r=r||{};var o=this,a=Os(o,s),l=r,c=l.startAt,u=l.onStart,d=l.onStartParams,h=l.immediateRender,p,m=fi.to(o,vs({ease:r.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:r.duration||Math.abs((a-(c&&"time"in c?c.time:o._time))/o.timeScale())||xe,onStart:function(){if(o.pause(),!p){var v=r.duration||Math.abs((a-(c&&"time"in c?c.time:o._time))/o.timeScale());m._dur!==v&&zh(m,v,0,1).render(m._time,!0,!0),p=1}u&&u.apply(m,d||[])}},r));return h?m.render(0):m},t.tweenFromTo=function(s,r,o){return this.tweenTo(r,vs({startAt:{time:Os(this,s)}},o))},t.recent=function(){return this._recent},t.nextLabel=function(s){return s===void 0&&(s=this._time),UL(this,Os(this,s))},t.previousLabel=function(s){return s===void 0&&(s=this._time),UL(this,Os(this,s),1)},t.currentLabel=function(s){return arguments.length?this.seek(s,!0):this.previousLabel(this._time+xe)},t.shiftChildren=function(s,r,o){o===void 0&&(o=0);for(var a=this._first,l=this.labels,c;a;)a._start>=o&&(a._start+=s,a._end+=s),a=a._next;if(r)for(c in l)l[c]>=o&&(l[c]+=s);return fu(this)},t.invalidate=function(s){var r=this._first;for(this._lock=0;r;
vendor: 4,457 bytes, line 26
26)r.invalidate(s),r=r._next;return i.prototype.invalidate.call(this,s)},t.clear=function(s){s===void 0&&(s=!0);for(var r=this._first,o;r;)o=r._next,this.remove(r),r=o;return this._dp&&(this._time=this._tTime=this._pTime=0),s&&(this.labels={}),fu(this)},t.totalDuration=function(s){var r=0,o=this,a=o._last,l=Bs,c,u,d;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-s:s));if(o._dirty){for(d=o.parent;a;)c=a._prev,a._dirty&&a.totalDuration(),u=a._start,u>l&&o._sort&&a._ts&&!o._lock?(o._lock=1,qr(o,a,u-a._delay,1)._lock=0):l=u,u<0&&a._ts&&(r-=u,(!d&&!o._dp||d&&d.smoothChildTiming)&&(o._start+=u/o._ts,o._time-=u,o._tTime-=u),o.shiftChildren(-u,!1,-1/0),l=0),a._end>r&&a._ts&&(r=a._end),a=c;zh(o,o===Je&&o._time>r?o._time:r,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(s){if(Je._ts&&(kF(Je,jy(s,Je)),SF=hs.frame),hs.frame>=qL){qL+=ms.autoSleep||120;var r=Je._first;if((!r||!r._ts)&&ms.autoSleep&&hs._listeners.length<2){for(;r&&!r._ts;)r=r._next;r||hs.sleep()}}},e}(Pp);vs(Sn.prototype,{_lock:0,_hasPause:0,_forcing:0});var KG=function(e,t,n,s,r,o,a){var l=new jn(this._pt,e,t,0,1,ZF,null,r),c=0,u=0,d,h,p,m,g,v,w,_;for(l.b=n,l.e=s,n+="",s+="",(w=~s.indexOf("random("))&&(s=kp(s)),o&&(_=[n,s],o(_,e,t),n=_[0],s=_[1]),h=n.match(PE)||[];d=PE.exec(s);)m=d[0],g=s.substring(c,d.index),p?p=(p+1)%5:g.substr(-5)==="rgba("&&(p=1),m!==h[u++]&&(v=parseFloat(h[u-1])||0,l._pt={_next:l._pt,p:g||u===1?g:",",s:v,c:m.charAt(1)==="="?od(v,m)-v:parseFloat(m)-v,m:p&&p<4?Math.round:0},c=PE.lastIndex);return l.c=c<s.length?s.substring(c,s.length):"",l.fp=a,(yF.test(s)||w)&&(l.e=0),this._pt=l,l},wO=function(e,t,n,s,r,o,a,l,c,u){ni(s)&&(s=s(r||0,e,o));var d=e[t],h=n!=="get"?n:ni(d)?c?e[t.indexOf("set")||!ni(e["get"+t.substr(3)])?t:"get"+t.substr(3)](c):e[t]():d,p=ni(d)?c?tY:QF:xO,m;if(Fi(s)&&(~s.indexOf("random(")&&(s=kp(s)),s.charAt(1)==="="&&(m=od(h,s)+(Zi(h)||0),(m||m===0)&&(s=m))),!u||h!==s||lC)return!isNaN(h*s)&&s!==""?(m=new jn(this._pt,e,t,+h||0,s-(h||0),typeof d=="boolean"?iY:JF,0,p),c&&(m.fp=c),a&&m.modifier(a,this,e),this._pt=m):(!d&&!(t in e)&&mO(t,s),KG.call(this,e,t,h,s,p,l||ms.stringFilter,c))},XG=function(e,t,n,s,r){if(ni(e)&&(e=ep(e,r,t,n,s)),!Jr(e)||e.style&&e.nodeType||rn(e)||mF(e))return Fi(e)?ep(e,r,t,n,s):e;var o={},a;for(a in e)o[a]=ep(e[a],r,t,n,s);return o},YF=function(e,t,n,s,r,o){var a,l,c,u;if(ls[e]&&(a=new ls[e]).init(r,a.rawVars?t[e]:XG(t[e],s,r,o,n),n,s,o)!==!1&&(n._pt=l=new jn(n._pt,r,e,0,1,a.render,a,0,a.priority),n!==nd))for(c=n._ptLookup[n._targets.indexOf(r)],u=a._props.length;u--;)c[a._props[u]]=l;return a},rl,lC,_O=function i(e,t,n){var s=e.vars,r=s.ease,o=s.startAt,a=s.immediateRender,l=s.lazy,c=s.onUpdate,u=s.runBackwards,d=s.yoyoEase,h=s.keyframes,p=s.autoRevert,m=e._dur,g=e._startAt,v=e._targets,w=e.parent,_=w&&w.data==="nested"?w.vars.targets:v,x=e._overwrite==="auto"&&!hO,k=e.timeline,S,T,E,M,A,P,L,I,z,q,H,j,$;if(k&&(!h||!r)&&(r="none"),e._ease=pu(r,Fh.ease),e._yEase=d?WF(pu(d===!0?r:d,Fh.ease)):0,d&&e._yoyo&&!e._repeat&&(d=e._yEase,e._yEase=e._ease,e._ease=d),e._from=!k&&!!s.runBackwards,!k||h&&!s.stagger){if(I=v[0]?hu(v[0]).harness:0,j=I&&s[I.prop],S=Wy(s,bO),g&&(g._zTime<0&&g.progress(1),t<0&&u&&a&&!p?g.render(-1,!0):g.revert(u&&m?Ub:TG),g._lazy=0),o){if(xl(e._startAt=fi.set(v,vs({data:"isStart",overwrite:!1,parent:w,immediateRender:!0,lazy:!g&&Hn(l),startAt:null,delay:0,onUpdate:c&&function(){return ps(e,"onUpdate")},stagger:0},o))),e._startAt._dp=0,e._startAt._sat=e,t<0&&(Gi||!a&&!p)&&e._startAt.revert(Ub),a&&m&&t<=0&&n<=0){t&&(e._zTime=t);return}}else if(u&&m&&!g){if(t&&(a=!1),E=vs({overwrite:!1,data:"isFromStart",lazy:a&&!g&&Hn(l),immediateRender:a,stagger:0,parent:w},S),j&&(E[I.prop]=j),xl(e._startAt=fi.set(v,E)),e._startAt._dp=0,e._startAt._sat=e,t<0&&(Gi?e._startAt.revert(Ub):e._startAt.render(-1,!0)),e._zTime=t,!a)i(e._startAt,xe,xe);else if(!t)return}for(e._pt=e._ptCache=0,l=m&&Hn(l)||l&&!m,T=0;T<v.length;T++){if(A=v[T],L=A._gsap||vO(v)[T]._gsap,e._ptLookup[T]=q={},iC[L.id]&&ml.length&&Hy(),H=_===v?T:_.indexOf(A),I&&(z=new I).init(A,j||S,e,H,_)!==!1&&(e._pt=M=new jn(e._pt,A,z.name,0,1,z.render,z,0,z.priority),z._props.forEach(function(B){q[B]=M}),z.priority&&(P=1)),!I||j)for(E in S)ls[E]&&(z=YF(E,S,e,H,A,_))?z.priority&&(P=1):q[E]=M=wO.call(e,A,E,"get",S[E],H,_,0,s.stringFilter);e._op&&e._op[T]&&e.kill(A,e._op[T]),x&&e._pt&&(rl=e,Je.killTweensOf(A,q,e.globalTime(t)),$=!e.parent,rl=0),e._pt&&l&&(iC[L.id]=1)}
vendor: 4,526 bytes, line 26
26P&&tN(e),e._onInit&&e._onInit(e)}e._onUpdate=c,e._initted=(!e._op||e._pt)&&!$,h&&t<=0&&k.render(Bs,!0,!0)},QG=function(e,t,n,s,r,o,a,l){var c=(e._pt&&e._ptCache||(e._ptCache={}))[t],u,d,h,p;if(!c)for(c=e._ptCache[t]=[],h=e._ptLookup,p=e._targets.length;p--;){if(u=h[p][t],u&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==t&&u.fp!==t;)u=u._next;if(!u)return lC=1,e.vars[t]="+=0",_O(e,a),lC=0,l?Sp(t+" not eligible for reset"):1;c.push(u)}for(p=c.length;p--;)d=c[p],u=d._pt||d,u.s=(s||s===0)&&!r?s:u.s+(s||0)+o*u.c,u.c=n-u.s,d.e&&(d.e=li(n)+Zi(d.e)),d.b&&(d.b=u.s+Zi(d.b))},JG=function(e,t){var n=e[0]?hu(e[0]).harness:0,s=n&&n.aliases,r,o,a,l;if(!s)return t;r=Nh({},t);for(o in s)if(o in r)for(l=s[o].split(","),a=l.length;a--;)r[l[a]]=r[o];return r},ZG=function(e,t,n,s){var r=t.ease||s||"power1.inOut",o,a;if(rn(t))a=n[e]||(n[e]=[]),t.forEach(function(l,c){return a.push({t:c/(t.length-1)*100,v:l,e:r})});else for(o in t)a=n[o]||(n[o]=[]),o==="ease"||a.push({t:parseFloat(e),v:t[o],e:r})},ep=function(e,t,n,s,r){return ni(e)?e.call(t,n,s,r):Fi(e)&&~e.indexOf("random(")?kp(e):e},KF=yO+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",XF={};Wn(KF+",id,stagger,delay,duration,paused,scrollTrigger",function(i){return XF[i]=1});var fi=function(i){pF(e,i);function e(n,s,r,o){var a;typeof s=="number"&&(r.duration=s,s=r,r=null),a=i.call(this,o?s:Zf(s))||this;var l=a.vars,c=l.duration,u=l.delay,d=l.immediateRender,h=l.stagger,p=l.overwrite,m=l.keyframes,g=l.defaults,v=l.scrollTrigger,w=l.yoyoEase,_=s.parent||Je,x=(rn(n)||mF(n)?ra(n[0]):"length"in s)?[n]:zs(n),k,S,T,E,M,A,P,L;if(a._targets=x.length?vO(x):Sp("GSAP target "+n+" not found. https://gsap.com",!ms.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=p,m||h||ob(c)||ob(u)){if(s=a.vars,k=a.timeline=new Sn({data:"nested",defaults:g||{},targets:_&&_.data==="nested"?_.vars.targets:x}),k.kill(),k.parent=k._dp=fo(a),k._start=0,h||ob(c)||ob(u)){if(E=x.length,P=h&&IF(h),Jr(h))for(M in h)~KF.indexOf(M)&&(L||(L={}),L[M]=h[M]);for(S=0;S<E;S++)T=Wy(s,XF),T.stagger=0,w&&(T.yoyoEase=w),L&&Nh(T,L),A=x[S],T.duration=+ep(c,fo(a),S,A,x),T.delay=(+ep(u,fo(a),S,A,x)||0)-a._delay,!h&&E===1&&T.delay&&(a._delay=u=T.delay,a._start+=u,T.delay=0),k.to(A,T,P?P(S,A,x):0),k._ease=Qt.none;k.duration()?c=u=0:a.timeline=0}else if(m){Zf(vs(k.vars.defaults,{ease:"none"})),k._ease=pu(m.ease||s.ease||"none");var I=0,z,q,H;if(rn(m))m.forEach(function(j){return k.to(x,j,">")}),k.duration();else{T={};for(M in m)M==="ease"||M==="easeEach"||ZG(M,m[M],T,m.easeEach);for(M in T)for(z=T[M].sort(function(j,$){return j.t-$.t}),I=0,S=0;S<z.length;S++)q=z[S],H={ease:q.e,duration:(q.t-(S?z[S-1].t:0))/100*c},H[M]=q.v,k.to(x,H,I),I+=H.duration;k.duration()<c&&k.to({},{duration:c-k.duration()})}}c||a.duration(c=k.duration())}else a.timeline=0;return p===!0&&!hO&&(rl=fo(a),Je.killTweensOf(x),rl=0),qr(_,fo(a),r),s.reversed&&a.reverse(),s.paused&&a.paused(!0),(d||!c&&!m&&a._start===pi(_._time)&&Hn(d)&&MG(fo(a))&&_.data!=="nested")&&(a._tTime=-xe,a.render(Math.max(0,-u)||0)),v&&MF(fo(a),v),a}var t=e.prototype;return t.render=function(s,r,o){var a=this._time,l=this._tDur,c=this._dur,u=s<0,d=s>l-xe&&!u?l:s<xe?0:s,h,p,m,g,v,w,_,x,k;if(!c)$G(this,s,r,o);else if(d!==this._tTime||!s||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==u||this._lazy){if(h=d,x=this.timeline,this._repeat){if(g=c+this._rDelay,this._repeat<-1&&u)return this.totalTime(g*100+s,r,o);if(h=pi(d%g),d===l?(m=this._repeat,h=c):(v=pi(d/g),m=~~v,m&&m===v?(h=c,m--):h>c&&(h=c)),w=this._yoyo&&m&1,w&&(k=this._yEase,h=c-h),v=Bh(this._tTime,g),h===a&&!o&&this._initted&&m===v)return this._tTime=d,this;m!==v&&(x&&this._yEase&&jF(x,w),this.vars.repeatRefresh&&!w&&!this._lock&&h!==g&&this._initted&&(this._lock=o=1,this.render(pi(g*m),!0).invalidate()._lock=0))}if(!this._initted){if(OF(this,u?s:h,o,r,d))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&m!==v))return this;if(c!==this._dur)return this.render(s,r,o)}if(this._tTime=d,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=_=(k||this._ease)(h/c),this._from&&(this.ratio=_=1-_),h&&!a&&!r&&!m&&(ps(this,"onStart"),this._tTime!==d))return this;for(p=this._pt;p;)p.r(_,p.d),p=p._next;x&&x.render(s<0?s:x._dur*x._ease(h/this._dur),r,o)||this._startAt&&(this._zTime=s),this._onUpdate&&!r&&(u&&nC(this,s,r,o),ps(this,"onUpdate")),this._repeat&&m!==v&&this.vars.onRepeat&&!r&&this.parent&&ps(this,"onRepeat"),(d===this._tDur||!d)&&this._tTime===d&&(u&&!this._onUpdate&&nC(this,s,!0,!0),(s||!c)&&(d===this._tDur&&this._ts>
vendor: 12,325 bytes, lines 26-34
260||!d&&this._ts<0)&&xl(this,1),!r&&!(u&&!a)&&(d||a||w)&&(ps(this,d===l?"onComplete":"onReverseComplete",!0),this._prom&&!(d<l&&this.timeScale()>0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(s){return(!s||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(s),i.prototype.invalidate.call(this,s)},t.resetTo=function(s,r,o,a,l){Ep||hs.wake(),this._ts||this.play();var c=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||_O(this,c),u=this._ease(c/this._dur),QG(this,s,r,o,a,u,c,l)?this.resetTo(s,r,o,a,1):(zk(this,0),this.parent||CF(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(s,r){if(r===void 0&&(r="all"),!s&&(!r||r==="all"))return this._lazy=this._pt=0,this.parent?$f(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Gi),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(s,r,rl&&rl.vars.overwrite!==!0)._first||$f(this),this.parent&&o!==this.timeline.totalDuration()&&zh(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,l=s?zs(s):a,c=this._ptLookup,u=this._pt,d,h,p,m,g,v,w;if((!r||r==="all")&&CG(a,l))return r==="all"&&(this._pt=0),$f(this);for(d=this._op=this._op||[],r!=="all"&&(Fi(r)&&(g={},Wn(r,function(_){return g[_]=1}),r=g),r=JG(a,r)),w=a.length;w--;)if(~l.indexOf(a[w])){h=c[w],r==="all"?(d[w]=r,m=h,p={}):(p=d[w]=d[w]||{},m=r);for(g in m)v=h&&h[g],v&&((!("kill"in v.d)||v.d.kill(g)===!0)&&Nk(this,v,"_pt"),delete h[g]),p!=="all"&&(p[g]=1)}return this._initted&&!this._pt&&u&&$f(this),this},e.to=function(s,r){return new e(s,r,arguments[2])},e.from=function(s,r){return tp(1,arguments)},e.delayedCall=function(s,r,o,a){return new e(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:s,onComplete:r,onReverseComplete:r,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},e.fromTo=function(s,r,o){return tp(2,arguments)},e.set=function(s,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new e(s,r)},e.killTweensOf=function(s,r,o){return Je.killTweensOf(s,r,o)},e}(Pp);vs(fi.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Wn("staggerTo,staggerFrom,staggerFromTo",function(i){fi[i]=function(){var e=new Sn,t=rC.call(arguments,0);return t.splice(i==="staggerFromTo"?5:4,0,0),e[i].apply(e,t)}});var xO=function(e,t,n){return e[t]=n},QF=function(e,t,n){return e[t](n)},tY=function(e,t,n,s){return e[t](s.fp,n)},eY=function(e,t,n){return e.setAttribute(t,n)},SO=function(e,t){return ni(e[t])?QF:fO(e[t])&&e.setAttribute?eY:xO},JF=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},iY=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},ZF=function(e,t){var n=t._pt,s="";if(!e&&t.b)s=t.b;else if(e===1&&t.e)s=t.e;else{for(;n;)s=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+s,n=n._next;s+=t.c}t.set(t.t,t.p,s,t)},TO=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},nY=function(e,t,n,s){for(var r=this._pt,o;r;)o=r._next,r.p===s&&r.modifier(e,t,n),r=o},sY=function(e){for(var t=this._pt,n,s;t;)s=t._next,t.p===e&&!t.op||t.op===e?Nk(this,t,"_pt"):t.dep||(n=1),t=s;return!n},rY=function(e,t,n,s){s.mSet(e,t,s.m.call(s.tween,n,s.mt),s)},tN=function(e){for(var t=e._pt,n,s,r,o;t;){for(n=t._next,s=r;s&&s.pr>t.pr;)s=s._next;(t._prev=s?s._prev:o)?t._prev._next=t:r=t,(t._next=s)?s._prev=t:o=t,t=n}e._pt=r},jn=function(){function i(t,n,s,r,o,a,l,c,u){this.t=n,this.s=r,this.c=o,this.p=s,this.r=a||JF,this.d=l||this,this.set=c||xO,this.pr=u||0,this._next=t,t&&(t._prev=this)}var e=i.prototype;return e.modifier=function(n,s,r){this.mSet=this.mSet||this.set,this.set=rY,this.m=n,this.mt=r,this.tween=s},i}();Wn(yO+"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(i){return bO[i]=1});ys.TweenMax=ys.TweenLite=fi;ys.TimelineLite=ys.TimelineMax=Sn;Je=new Sn({sortChildren:!1,defaults:Fh,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});ms.stringFilter=HF;var gu=[],Yb={},oY=[],YL=0,aY=0,$E=function(e){return(Yb[e]||oY).map(function(t){return t()})},cC=function(){var e=Date.now(),t=[];e-YL>2&&($E("matchMediaInit"),gu.forEach(function(n){var s=n.queries,r=n.conditions,o,a,l,c;for(a in s)o=Tr.matchMedia(s[a]).matches,o&&(l=1),o!==r[a]&&(r[a]=o,c=1);c&&(n.revert(),l&&t.push(n))}),$E("matchMediaRevert"),t.forEach(function(n){return n.onMatch(n,function(s){return n.add(null,s)})}),YL=e,$E("matchMedia"))},eN=function(){function i(t,n){this.selector=n&&oC(n),this.data=[],this._r=[],this.isReverted=!1,this.id=aY++,t&&this.add(t)}var e=i.prototype;return e.add=function(n,s,r){ni(n)&&(r=s,s=n,n=ni);var o=this,a=function(){var c=We,u=o.selector,d;return c&&c!==o&&c.data.push(o),r&&(o.selector=oC(r)),We=o,d=s.apply(o,arguments),ni(d)&&o._r.push(d),We=c,o.selector=u,o.isReverted=!1,d};return o.last=a,n===ni?a(o,function(l){return o.add(null,l)}):n?o[n]=a:a},e.ignore=function(n){var s=We;We=null,n(this),We=s},e.getTweens=function(){var n=[];return this.data.forEach(function(s){return s instanceof i?n.push.apply(n,s.getTweens()):s instanceof fi&&!(s.parent&&s.parent.data==="nested")&&n.push(s)}),n},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(n,s){var r=this;if(n?function(){for(var a=r.getTweens(),l=r.data.length,c;l--;)c=r.data[l],c.data==="isFlip"&&(c.revert(),c.getChildren(!0,!0,!1).forEach(function(u){return a.splice(a.indexOf(u),1)}));for(a.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,d){return d.g-u.g||-1/0}).forEach(function(u){return u.t.revert(n)}),l=r.data.length;l--;)c=r.data[l],c instanceof Sn?c.data!=="nested"&&(c.scrollTrigger&&c.scrollTrigger.revert(),c.kill()):!(c instanceof fi)&&c.revert&&c.revert(n);r._r.forEach(function(u){return u(n,r)}),r.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),s)for(var o=gu.length;o--;)gu[o].id===this.id&&gu.splice(o,1)},e.revert=function(n){this.kill(n||{})},i}(),lY=function(){function i(t){this.contexts=[],this.scope=t,We&&We.data.push(this)}var e=i.prototype;return e.add=function(n,s,r){Jr(n)||(n={matches:n});var o=new eN(0,r||this.scope),a=o.conditions={},l,c,u;We&&!o.selector&&(o.selector=We.selector),this.contexts.push(o),s=o.add("onMatch",s),o.queries=n;for(c in n)c==="all"?u=1:(l=Tr.matchMedia(n[c]),l&&(gu.indexOf(o)<0&&gu.push(o),(a[c]=l.matches)&&(u=1),l.addListener?l.addListener(cC):l.addEventListener("change",cC)));return u&&s(o,function(d){return o.add(null,d)}),this},e.revert=function(n){this.kill(n||{})},e.kill=function(n){this.contexts.forEach(function(s){return s.kill(n,!0)})},i}(),Uy={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(function(s){return zF(s)})},timeline:function(e){return new Sn(e)},getTweensOf:function(e,t){return Je.getTweensOf(e,t)},getProperty:function(e,t,n,s){Fi(e)&&(e=zs(e)[0]);var r=hu(e||{}).get,o=n?PF:EF;return n==="native"&&(n=""),e&&(t?o((ls[t]&&ls[t].get||r)(e,t,n,s)):function(a,l,c){return o((ls[a]&&ls[a].get||r)(e,a,l,c))})},quickSetter:function(e,t,n){if(e=zs(e),e.length>1){var s=e.map(function(u){return on.quickSetter(u,t,n)}),r=s.length;return function(u){for(var d=r;d--;)s[d](u)}}e=e[0]||{};var o=ls[t],a=hu(e),l=a.harness&&(a.harness.aliases||{})[t]||t,c=o?function(u){var d=new o;nd._pt=0,d.init(e,n?u+n:u,nd,0,[e]),d.render(1,d),nd._pt&&TO(1,nd)}:a.set(e,l);return o?c:function(u){return c(e,l,n?u+n:u,a,1)}},quickTo:function(e,t,n){var s,r=on.to(e,vs((s={},s[t]="+=0.1",s.paused=!0,s.stagger=0,s),n||{})),o=function(l,c,u){return r.resetTo(t,l,c,u)};return o.tween=r,o},isTweening:function(e){return Je.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=pu(e.ease,Fh.ease)),HL(Fh,e||{})},config:function(e){return HL(ms,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,s=e.plugins,r=e.defaults,o=e.extendTimeline;(s||"").split(",").forEach(function(a){return a&&!ls[a]&&!ys[a]&&Sp(t+" effect requires "+a+" plugin.")}),CE[t]=function(a,l,c){return n(zs(a),vs(l||{},r),c)},o&&(Sn.prototype[t]=function(a,l,c){return this.add(CE[t](a,Jr(l)?l:(c=l)&&{},this),c)})},registerEase:function(e,t){Qt[e]=pu(t)},parseEase:function(e,t){return arguments.length?pu(e,t):Qt},getById:function(e){return Je.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new Sn(e),s,r;for(n.smoothChildTiming=Hn(e.smoothChildTiming),Je.remove(n),n._dp=0,n._time=n._tTime=Je._time,s=Je._first;s;)r=s._next,(t||!(!s._dur&&s instanceof fi&&s.vars.onComplete===s._targets[0]))&&qr(n,s,s._start-s._delay),s=r;return qr(Je,n,0),n},context:function(e,t){return e?new eN(e,t):We},matchMedia:function(e){return new lY(e)},matchMediaRefresh:function(){return gu.forEach(function(e){var t=e.conditions,n,s;for(s in t)t[s]&&(t[s]=!1,n=1);n&&e.revert()})||cC()},addEventListener:function(e,t){var n=Yb[e]||(Yb[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=Yb[e],s=n&&n.indexOf(t);s>=0&&n.splice(s,1)},utils:{wrap:zG,wrapYoyo:VG,distribute:IF,random:RF,snap:DF,normalize:BG,getUnit:Zi,clamp:DG,splitColor:VF,toArray:zs,selector:oC,mapRange:NF,pipe:FG,unitize:NG,interpolate:qG,shuffle:LF},install:_F,effects:CE,ticker:hs,updateRoot:Sn.updateRoot,plugins:ls,globalTimeline:Je,core:{PropTween:jn,globals:xF,Tween:fi,Timeline:Sn,Animation:Pp,getCache:hu,_removeLinkedListItem:Nk,reverting:function(){return Gi},context:function(e){return e&&We&&(We.data.push(e),e._ctx=We),We},suppressOverwrites:function(e){return hO=e}}};Wn("to,from,fromTo,delayedCall,set,killTweensOf",function(i){return Uy[i]=fi[i]});hs.add(Sn.updateRoot);nd=Uy.to({},{duration:0});var cY=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},uY=function(e,t){var n=e._targets,s,r,o;for(s in t)for(r=n.length;r--;)o=e._ptLookup[r][s],o&&(o=o.d)&&(o._pt&&(o=cY(o,s)),o&&o.modifier&&o.modifier(t[s],e,n[r],s))},LE=function(e,t){return{name:e,rawVars:1,init:function(s,r,o){o._onInit=function(a){var l,c;if(Fi(r)&&(l={},Wn(r,function(u){return l[u]=1}),r=l),t){l={};for(c in r)l[c]=t(r[c]);r=l}uY(a,r)}}}},on=Uy.registerPlugin({name:"attr",init:function(e,t,n,s,r){var o,a,l;this.tween=n;for(o in t)l=e.getAttribute(o)||"",a=this.add(e,"setAttribute",(l||0)+"",t[o],s,r,0,0,o),a.op=o,a.b=l,this._props.push(o)},render:function(e,t){for(var n=t._pt;n;)Gi?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:"endArray",init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},LE("roundProps",aC),LE("modifiers"),LE("snap",DF))||Uy;fi.version=Sn.version=on.version="3.12.7";wF=1;pO()&&Vh();Qt.Power0;Qt.Power1;Qt.Power2;Qt.Power3;Qt.Power4;Qt.Linear;Qt.Quad;Qt.Cubic;Qt.Quart;Qt.Quint;Qt.Strong;Qt.Elastic;Qt.Back;Qt.SteppedEase;Qt.Bounce;Qt.Sine;Qt.Expo;Qt.Circ;/*! 27 * CSSPlugin 3.12.7 28 * https://gsap.com 29 * 30 * Copyright 2008-2025, GreenSock. All rights reserved. 31 * Subject to the terms at https://gsap.com/standard-license or for 32 * Club GSAP members, the agreement issued with that membership. 33 * @author: Jack Doyle, [email protected] 34*/var KL,ol,ad,kO,uc,XL,EO,dY=function(){return typeof window<"u"},oa={},Zl=180/Math.PI,ld=Math.PI/180,Gu=Math.atan2,QL=1e8,PO=/([A-Z])/g,hY=/(left|right|width|margin|padding|x)/i,fY=/[\s,\(]\S/,Wr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},uC=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},pY=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},gY=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},mY=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},iN=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},nN=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},bY=function(e,t,n){return e.style[t]=n},yY=function(e,t,n){return e.style.setProperty(t,n)},vY=function(e,t,n){return e._gsap[t]=n},wY=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},_Y=function(e,t,n,s,r){var o=e._gsap;o.scaleX=o.scaleY=n,o.renderTransform(r,o)},xY=function(e,t,n,s,r){var o=e._gsap;o[t]=n,o.renderTransform(r,o)}
vendor: 11,211 bytes, line 34
34,Ze="transform",Un=Ze+"Origin",SY=function i(e,t){var n=this,s=this.target,r=s.style,o=s._gsap;if(e in oa&&r){if(this.tfm=this.tfm||{},e!=="transform")e=Wr[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return n.tfm[a]=po(s,a)}):this.tfm[e]=o.x?o[e]:po(s,e),e===Un&&(this.tfm.zOrigin=o.zOrigin);else return Wr.transform.split(",").forEach(function(a){return i.call(n,a,t)});if(this.props.indexOf(Ze)>=0)return;o.svg&&(this.svgo=s.getAttribute("data-svg-origin"),this.props.push(Un,t,"")),e=Ze}(r||t)&&this.props.push(e,t,r[e])},sN=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},TY=function(){var e=this.props,t=this.target,n=t.style,s=t._gsap,r,o;for(r=0;r<e.length;r+=3)e[r+1]?e[r+1]===2?t[e[r]](e[r+2]):t[e[r]]=e[r+2]:e[r+2]?n[e[r]]=e[r+2]:n.removeProperty(e[r].substr(0,2)==="--"?e[r]:e[r].replace(PO,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)s[o]=this.tfm[o];s.svg&&(s.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),r=EO(),(!r||!r.isStart)&&!n[Ze]&&(sN(n),s.zOrigin&&n[Un]&&(n[Un]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},rN=function(e,t){var n={target:e,props:[],revert:TY,save:SY};return e._gsap||on.core.getCache(e),t&&e.style&&e.nodeType&&t.split(",").forEach(function(s){return n.save(s)}),n},oN,dC=function(e,t){var n=ol.createElementNS?ol.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):ol.createElement(e);return n&&n.style?n:ol.createElement(e)},Gr=function i(e,t,n){var s=getComputedStyle(e);return s[t]||s.getPropertyValue(t.replace(PO,"-$1").toLowerCase())||s.getPropertyValue(t)||!n&&i(e,qh(t)||t,1)||""},JL="O,Moz,ms,Ms,Webkit".split(","),qh=function(e,t,n){var s=t||uc,r=s.style,o=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);o--&&!(JL[o]+e in r););return o<0?null:(o===3?"ms":o>=0?JL[o]:"")+e},hC=function(){dY()&&window.document&&(KL=window,ol=KL.document,ad=ol.documentElement,uc=dC("div")||{style:{}},dC("div"),Ze=qh(Ze),Un=Ze+"Origin",uc.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",oN=!!qh("perspective"),EO=on.core.reverting,kO=1)},ZL=function(e){var t=e.ownerSVGElement,n=dC("svg",t&&t.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=e.cloneNode(!0),r;s.style.display="block",n.appendChild(s),ad.appendChild(n);try{r=s.getBBox()}catch{}return n.removeChild(s),ad.removeChild(n),r},tI=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},aN=function(e){var t,n;try{t=e.getBBox()}catch{t=ZL(e),n=1}return t&&(t.width||t.height)||n||(t=ZL(e)),t&&!t.width&&!t.x&&!t.y?{x:+tI(e,["x","cx","x1"])||0,y:+tI(e,["y","cy","y1"])||0,width:0,height:0}:t},lN=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&aN(e))},Eu=function(e,t){if(t){var n=e.style,s;t in oa&&t!==Un&&(t=Ze),n.removeProperty?(s=t.substr(0,2),(s==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),n.removeProperty(s==="--"?t:t.replace(PO,"-$1").toLowerCase())):n.removeAttribute(t)}},al=function(e,t,n,s,r,o){var a=new jn(e._pt,t,n,0,1,o?nN:iN);return e._pt=a,a.b=s,a.e=r,e._props.push(n),a},eI={deg:1,rad:1,turn:1},kY={grid:1,flex:1},Sl=function i(e,t,n,s){var r=parseFloat(n)||0,o=(n+"").trim().substr((r+"").length)||"px",a=uc.style,l=hY.test(t),c=e.tagName.toLowerCase()==="svg",u=(c?"client":"offset")+(l?"Width":"Height"),d=100,h=s==="px",p=s==="%",m,g,v,w;if(s===o||!r||eI[s]||eI[o])return r;if(o!=="px"&&!h&&(r=i(e,t,n,"px")),w=e.getCTM&&lN(e),(p||o==="%")&&(oa[t]||~t.indexOf("adius")))return m=w?e.getBBox()[l?"width":"height"]:e[u],li(p?r/m*d:r/100*m);if(a[l?"width":"height"]=d+(h?o:s),g=s!=="rem"&&~t.indexOf("adius")||s==="em"&&e.appendChild&&!c?e:e.parentNode,w&&(g=(e.ownerSVGElement||{}).parentNode),(!g||g===ol||!g.appendChild)&&(g=ol.body),v=g._gsap,v&&p&&v.width&&l&&v.time===hs.time&&!v.uncache)return li(r/v.width*d);if(p&&(t==="height"||t==="width")){var _=e.style[t];e.style[t]=d+s,m=e[u],_?e.style[t]=_:Eu(e,t)}else(p||o==="%")&&!kY[Gr(g,"display")]&&(a.position=Gr(e,"position")),g===e&&(a.position="static"),g.appendChild(uc),m=uc[u],g.removeChild(uc),a.position="absolute";return l&&p&&(v=hu(g),v.time=hs.time,v.width=g[u]),li(h?m*r/d:m&&r?d/m*r:0)},po=function(e,t,n,s){var r;return kO||hC(),t in Wr&&t!=="transform"&&(t=Wr[t],~t.indexOf(",")&&(t=t.split(",")[0])),oa[t]&&t!=="transform"?(r=Ap(e,s),r=t!=="transformOrigin"?r[t]:r.svg?r.origin:Yy(Gr(e,Un))+" "+r.zOrigin+"px"):(r=e.style[t],(!r||r==="auto"||s||~(r+"").indexOf("calc("))&&(r=Gy[t]&&Gy[t](e,t,n)||Gr(e,t)||TF(e,t)||(t==="opacity"?1:0))),n&&!~(r+"").trim().indexOf(" ")?Sl(e,t,r,n)+n:r},EY=function(e,t,n,s){if(!n||n==="none"){var r=qh(t,e,1),o=r&&Gr(e,r,1);o&&o!==n?(t=r,n=o):t==="borderColor"&&(n=Gr(e,"borderTopColor"))}var a=new jn(this._pt,e.style,t,0,1,ZF),l=0,c=0,u,d,h,p,m,g,v,w,_,x,k,S;if(a.b=n,a.e=s,n+="",s+="",s==="auto"&&(g=e.style[t],e.style[t]=s,s=Gr(e,t)||s,g?e.style[t]=g:Eu(e,t)),u=[n,s],HF(u),n=u[0],s=u[1],h=n.match(id)||[],S=s.match(id)||[],S.length){for(;d=id.exec(s);)v=d[0],_=s.substring(l,d.index),m?m=(m+1)%5:(_.substr(-5)==="rgba("||_.substr(-5)==="hsla(")&&(m=1),v!==(g=h[c++]||"")&&(p=parseFloat(g)||0,k=g.substr((p+"").length),v.charAt(1)==="="&&(v=od(p,v)+k),w=parseFloat(v),x=v.substr((w+"").length),l=id.lastIndex-x.length,x||(x=x||ms.units[t]||k,l===s.length&&(s+=x,a.e+=x)),k!==x&&(p=Sl(e,t,g,x)||0),a._pt={_next:a._pt,p:_||c===1?_:",",s:p,c:w-p,m:m&&m<4||t==="zIndex"?Math.round:0});a.c=l<s.length?s.substring(l,s.length):""}else a.r=t==="display"&&s==="none"?nN:iN;return yF.test(s)&&(a.e=0),this._pt=a,a},iI={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},PY=function(e){var t=e.split(" "),n=t[0],s=t[1]||"50%";return(n==="top"||n==="bottom"||s==="left"||s==="right")&&(e=n,n=s,s=e),t[0]=iI[n]||n,t[1]=iI[s]||s,t.join(" ")},CY=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n=t.t,s=n.style,r=t.u,o=n._gsap,a,l,c;if(r==="all"||r===!0)s.cssText="",l=1;else for(r=r.split(","),c=r.length;--c>-1;)a=r[c],oa[a]&&(l=1,a=a==="transformOrigin"?Un:Ze),Eu(n,a);l&&(Eu(n,Ze),o&&(o.svg&&n.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",Ap(n,1),o.uncache=1,sN(s)))}},Gy={clearProps:function(e,t,n,s,r){if(r.data!=="isFromStart"){var o=e._pt=new jn(e._pt,t,n,0,0,CY);return o.u=s,o.pr=-10,o.tween=r,e._props.push(n),1}}},Cp=[1,0,0,1,0,0],cN={},uN=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},nI=function(e){var t=Gr(e,Ze);return uN(t)?Cp:t.substr(7).match(bF).map(li)},CO=function(e,t){var n=e._gsap||hu(e),s=e.style,r=nI(e),o,a,l,c;return n.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,r=[l.a,l.b,l.c,l.d,l.e,l.f],r.join(",")==="1,0,0,1,0,0"?Cp:r):(r===Cp&&!e.offsetParent&&e!==ad&&!n.svg&&(l=s.display,s.display="block",o=e.parentNode,(!o||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,a=e.nextElementSibling,ad.appendChild(e)),r=nI(e),l?s.display=l:Eu(e,"display"),c&&(a?o.insertBefore(e,a):o?o.appendChild(e):ad.removeChild(e))),t&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r)},fC=function(e,t,n,s,r,o){var a=e._gsap,l=r||CO(e,!0),c=a.xOrigin||0,u=a.yOrigin||0,d=a.xOffset||0,h=a.yOffset||0,p=l[0],m=l[1],g=l[2],v=l[3],w=l[4],_=l[5],x=t.split(" "),k=parseFloat(x[0])||0,S=parseFloat(x[1])||0,T,E,M,A;n?l!==Cp&&(E=p*v-m*g)&&(M=k*(v/E)+S*(-g/E)+(g*_-v*w)/E,A=k*(-m/E)+S*(p/E)-(p*_-m*w)/E,k=M,S=A):(T=aN(e),k=T.x+(~x[0].indexOf("%")?k/100*T.width:k),S=T.y+(~(x[1]||x[0]).indexOf("%")?S/100*T.height:S)),s||s!==!1&&a.smooth?(w=k-c,_=S-u,a.xOffset=d+(w*p+_*g)-w,a.yOffset=h+(w*m+_*v)-_):a.xOffset=a.yOffset=0,a.xOrigin=k,a.yOrigin=S,a.smooth=!!s,a.origin=t,a.originIsAbsolute=!!n,e.style[Un]="0px 0px",o&&(al(o,a,"xOrigin",c,k),al(o,a,"yOrigin",u,S),al(o,a,"xOffset",d,a.xOffset),al(o,a,"yOffset",h,a.yOffset)),e.setAttribute("data-svg-origin",k+" "+S)},Ap=function(e,t){var n=e._gsap||new GF(e);if("x"in n&&!t&&!n.uncache)return n;var s=e.style,r=n.scaleX<0,o="px",a="deg",l=getComputedStyle(e),c=Gr(e,Un)||"0",u,d,h,p,m,g,v,w,_,x,k,S,T,E,M,A,P,L,I,z,q,H,j,$,B,K,N,J,et,Z,U,tt;return u=d=h=g=v=w=_=x=k=0,p=m=1,n.svg=!!(e.getCTM&&lN(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(s[Ze]=(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[Ze]!=="none"?l[Ze]:"")),s.scale=s.rotate=s.translate="none"),E=CO(e,n.svg),n.svg&&(n.uncache?(B=e.getBBox(),c=n.xOrigin-B.x+"px "+(n.yOrigin-B.y)+"px",$=""):$=!t&&e.getAttribute("data-svg-origin"),fC(e,$||c,!!$||n.originIsAbsolute,n.smooth!==!1,E)),S=n.xOrigin||0,T=n.yOrigin||0,E!==Cp&&(L=E[0],I=E[1],z=E[2],q=E[3],u=H=E[4],d=j=E[5],E.length===6?(p=Math.sqrt(L*L+I*I),m=Math.sqrt(q*q+z*z),g=L||I?Gu(I,L)*Zl:0,_=z||q?Gu(z,q)*Zl+g:0,_&&(m*=Math.abs(Math.cos(_*ld))),n.svg&&(u-=S-(S*L+T*z),d-=T-(S*I+T*q))):(tt=E[6],Z=E[7],N=E[8],J=E[9],et=E[10],U=E[11],u=E[12],d=E[13],h=E[14],M=Gu(tt,et),v=M*Zl,M&&(A=Math.cos(-M),P=Math.sin(-M),$=H*A+N*P,B=j*A+J*P,K=tt*A+et*P,N=H*-P+N*A,J=j*-P+J*A,et=tt*-P+et*A,U=Z*-P+U*A,H=$,j=B,tt=K),M=Gu(-z,et),w=M*Zl,M&&(A=Math.cos(-M),P=Math.sin(-M),$=L*A-N*P,B=I*A-J*P,K=z*A-et*P,U=q*P+U*A,L=$,I=B,z=K),M=Gu(I,L),g=M*Zl,M&&(A=Math.cos(M),P=Math.sin(M),$=L*A+I*P,B=H*A+j*P,I=I*A-L*P,j=j*A-H*P,L=$,H=B),v&&Math.abs(v)+Math.abs(g)>359.9&&(v=g=0,w=180-w),p=li(Math.sqrt(L*L+I*I+z*z)),m=li(Math.sqrt(j*j+tt*tt)),M=Gu(H,j),_=Math.abs(M)>2e-4?M*Zl:0,k=U?1/(U<0?-U:U):0),n.svg&&($=e.getAttribute("transform"),n.forceCSS=e.setAttribute("transform","")||!uN(Gr(e,Ze)),$&&e.setAttribute("transform",$))),Math.abs(_)>90&&Math.abs(_)<270&&(r?(p*=-1,_+=g<=0?180:-180,g+=g<=0?180:-180):(m*=-1,_+=_<=0?180:-180)),t=t||n.uncache,n.x=u-((n.xPercent=u&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+o,n.y=d-((n.yPercent=d&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-d)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+o,n.z=h+o,n.scaleX=li(p),n.scaleY=li(m),n.rotation=li(g)+a,n.rotationX=li(v)+a,n.rotationY=li(w)+a,n.skewX=_+a,n.skewY=x+a,n.transformPerspective=k+o,(n.zOrigin=parseFloat(c.split(" ")[2])||!t&&n.zOrigin||0)&&(s[Un]=Yy(c)),n.xOffset=n.yOffset=0,n.force3D=ms.force3D,n.renderTransform=n.svg?MY:oN?dN:AY,n.uncache=0,n},Yy=function(e){return(e=e.split(" "))[0]+" "+e[1]},IE=function(e,t,n){var s=Zi(t);return li(parseFloat(t)+parseFloat(Sl(e,"x",n+"px",s)))+s},AY=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,dN(e,t)},Hl="0deg",yf="0px",Wl=") ",dN=function(e,t){var n=t||this,s=n.xPercent,r=n.yPercent,o=n.x,a=n.y,l=n.z,c=n.rotation,u=n.rotationY,d=n.rotationX,h=n.skewX,p=n.skewY,m=n.scaleX,g=n.scaleY,v=n.transformPerspective,w=n.force3D,_=n.target,x=n.zOrigin,k="",S=w==="auto"&&e&&e!==1||w===!0;if(x&&(d!==Hl||u!==Hl)){var T=parseFloat(u)*ld,E=Math.sin(T),M=Math.cos(T),A;T=parseFloat(d)*ld,A=Math.cos(T),o=IE(_,o,E*A*-x),a=IE(_,a,-Math.sin(T)*-x),l=IE(_,l,M*A*-x+x)}v!==yf&&(k+="perspective("+v+Wl),(s||r)&&(k+="translate("+s+"%, "+r+"%) "),(S||o!==yf||a!==yf||l!==yf)&&(k+=l!==yf||S?"translate3d("+o+", "+a+", "+l+") ":"translate("+o+", "+a+Wl),c!==Hl&&(k+="rotate("+c+Wl),u!==
vendor: 48,077 bytes, lines 34-50
34Hl&&(k+="rotateY("+u+Wl),d!==Hl&&(k+="rotateX("+d+Wl),(h!==Hl||p!==Hl)&&(k+="skew("+h+", "+p+Wl),(m!==1||g!==1)&&(k+="scale("+m+", "+g+Wl),_.style[Ze]=k||"translate(0, 0)"},MY=function(e,t){var n=t||this,s=n.xPercent,r=n.yPercent,o=n.x,a=n.y,l=n.rotation,c=n.skewX,u=n.skewY,d=n.scaleX,h=n.scaleY,p=n.target,m=n.xOrigin,g=n.yOrigin,v=n.xOffset,w=n.yOffset,_=n.forceCSS,x=parseFloat(o),k=parseFloat(a),S,T,E,M,A;l=parseFloat(l),c=parseFloat(c),u=parseFloat(u),u&&(u=parseFloat(u),c+=u,l+=u),l||c?(l*=ld,c*=ld,S=Math.cos(l)*d,T=Math.sin(l)*d,E=Math.sin(l-c)*-h,M=Math.cos(l-c)*h,c&&(u*=ld,A=Math.tan(c-u),A=Math.sqrt(1+A*A),E*=A,M*=A,u&&(A=Math.tan(u),A=Math.sqrt(1+A*A),S*=A,T*=A)),S=li(S),T=li(T),E=li(E),M=li(M)):(S=d,M=h,T=E=0),(x&&!~(o+"").indexOf("px")||k&&!~(a+"").indexOf("px"))&&(x=Sl(p,"x",o,"px"),k=Sl(p,"y",a,"px")),(m||g||v||w)&&(x=li(x+m-(m*S+g*E)+v),k=li(k+g-(m*T+g*M)+w)),(s||r)&&(A=p.getBBox(),x=li(x+s/100*A.width),k=li(k+r/100*A.height)),A="matrix("+S+","+T+","+E+","+M+","+x+","+k+")",p.setAttribute("transform",A),_&&(p.style[Ze]=A)},OY=function(e,t,n,s,r){var o=360,a=Fi(r),l=parseFloat(r)*(a&&~r.indexOf("rad")?Zl:1),c=l-s,u=s+c+"deg",d,h;return a&&(d=r.split("_")[1],d==="short"&&(c%=o,c!==c%(o/2)&&(c+=c<0?o:-o)),d==="cw"&&c<0?c=(c+o*QL)%o-~~(c/o)*o:d==="ccw"&&c>0&&(c=(c-o*QL)%o-~~(c/o)*o)),e._pt=h=new jn(e._pt,t,n,s,c,pY),h.e=u,h.u="deg",e._props.push(n),h},sI=function(e,t){for(var n in t)e[n]=t[n];return e},$Y=function(e,t,n){var s=sI({},n._gsap),r="perspective,force3D,transformOrigin,svgOrigin",o=n.style,a,l,c,u,d,h,p,m;s.svg?(c=n.getAttribute("transform"),n.setAttribute("transform",""),o[Ze]=t,a=Ap(n,1),Eu(n,Ze),n.setAttribute("transform",c)):(c=getComputedStyle(n)[Ze],o[Ze]=t,a=Ap(n,1),o[Ze]=c);for(l in oa)c=s[l],u=a[l],c!==u&&r.indexOf(l)<0&&(p=Zi(c),m=Zi(u),d=p!==m?Sl(n,l,c,m):parseFloat(c),h=parseFloat(u),e._pt=new jn(e._pt,a,l,d,h-d,uC),e._pt.u=m||0,e._props.push(l));sI(a,s)};Wn("padding,margin,Width,Radius",function(i,e){var t="Top",n="Right",s="Bottom",r="Left",o=(e<3?[t,n,s,r]:[t+r,t+n,s+n,s+r]).map(function(a){return e<2?i+a:"border"+a+i});Gy[e>1?"border"+i:i]=function(a,l,c,u,d){var h,p;if(arguments.length<4)return h=o.map(function(m){return po(a,m,c)}),p=h.join(" "),p.split(h[0]).length===5?h[0]:p;h=(u+"").split(" "),p={},o.forEach(function(m,g){return p[m]=h[g]=h[g]||h[(g-1)/2|0]}),a.init(l,p,d)}});var AO={name:"css",register:hC,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,s,r){var o=this._props,a=e.style,l=n.vars.startAt,c,u,d,h,p,m,g,v,w,_,x,k,S,T,E,M;kO||hC(),this.styles=this.styles||rN(e),M=this.styles.props,this.tween=n;for(g in t)if(g!=="autoRound"&&(u=t[g],!(ls[g]&&YF(g,t,n,s,e,r)))){if(p=typeof u,m=Gy[g],p==="function"&&(u=u.call(n,s,e,r),p=typeof u),p==="string"&&~u.indexOf("random(")&&(u=kp(u)),m)m(this,e,g,u,n)&&(E=1);else if(g.substr(0,2)==="--")c=(getComputedStyle(e).getPropertyValue(g)+"").trim(),u+="",bl.lastIndex=0,bl.test(c)||(v=Zi(c),w=Zi(u)),w?v!==w&&(c=Sl(e,g,c,w)+w):v&&(u+=v),this.add(a,"setProperty",c,u,s,r,0,0,g),o.push(g),M.push(g,0,a[g]);else if(p!=="undefined"){if(l&&g in l?(c=typeof l[g]=="function"?l[g].call(n,s,e,r):l[g],Fi(c)&&~c.indexOf("random(")&&(c=kp(c)),Zi(c+"")||c==="auto"||(c+=ms.units[g]||Zi(po(e,g))||""),(c+"").charAt(1)==="="&&(c=po(e,g))):c=po(e,g),h=parseFloat(c),_=p==="string"&&u.charAt(1)==="="&&u.substr(0,2),_&&(u=u.substr(2)),d=parseFloat(u),g in Wr&&(g==="autoAlpha"&&(h===1&&po(e,"visibility")==="hidden"&&d&&(h=0),M.push("visibility",0,a.visibility),al(this,a,"visibility",h?"inherit":"hidden",d?"inherit":"hidden",!d)),g!=="scale"&&g!=="transform"&&(g=Wr[g],~g.indexOf(",")&&(g=g.split(",")[0]))),x=g in oa,x){if(this.styles.save(g),k||(S=e._gsap,S.renderTransform&&!t.parseTransform||Ap(e,t.parseTransform),T=t.smoothOrigin!==!1&&S.smooth,k=this._pt=new jn(this._pt,a,Ze,0,1,S.renderTransform,S,0,-1),k.dep=1),g==="scale")this._pt=new jn(this._pt,S,"scaleY",S.scaleY,(_?od(S.scaleY,_+d):d)-S.scaleY||0,uC),this._pt.u=0,o.push("scaleY",g),g+="X";else if(g==="transformOrigin"){M.push(Un,0,a[Un]),u=PY(u),S.svg?fC(e,u,0,T,0,this):(w=parseFloat(u.split(" ")[2])||0,w!==S.zOrigin&&al(this,S,"zOrigin",S.zOrigin,w),al(this,a,g,Yy(c),Yy(u)));continue}else if(g==="svgOrigin"){fC(e,u,1,T,0,this);continue}else if(g in cN){OY(this,S,g,h,_?od(h,_+u):u);continue}else if(g==="smoothOrigin"){al(this,S,"smooth",S.smooth,u);continue}else if(g==="force3D"){S[g]=u;continue}else if(g==="transform"){$Y(this,u,e);continue}}else g in a||(g=qh(g)||g);if(x||(d||d===0)&&(h||h===0)&&!fY.test(u)&&g in a)v=(c+"").substr((h+"").length),d||(d=0),w=Zi(u)||(g in ms.units?ms.units[g]:v),v!==w&&(h=Sl(e,g,c,w)),this._pt=new jn(this._pt,x?S:a,g,h,(_?od(h,_+d):d)-h,!x&&(w==="px"||g==="zIndex")&&t.autoRound!==!1?mY:uC),this._pt.u=w||0,v!==w&&w!=="%"&&(this._pt.b=c,this._pt.r=gY);else if(g in a)EY.call(this,e,g,c,_?_+u:u);else if(g in e)this.add(e,g,c||e[g],_?_+u:u,s,r);else if(g!=="parseTransform"){mO(g,u);continue}x||(g in a?M.push(g,0,a[g]):typeof e[g]=="function"?M.push(g,2,e[g]()):M.push(g,1,c||e[g])),o.push(g)}}E&&tN(this)},render:function(e,t){if(t.tween._time||!EO())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:po,aliases:Wr,getSetter:function(e,t,n){var s=Wr[t];return s&&s.indexOf(",")<0&&(t=s),t in oa&&t!==Un&&(e._gsap.x||po(e,"x"))?n&&XL===n?t==="scale"?wY:vY:(XL=n||{})&&(t==="scale"?_Y:xY):e.style&&!fO(e.style[t])?bY:~t.indexOf("-")?yY:SO(e,t)},core:{_removeProperty:Eu,_getMatrix:CO}};on.utils.checkPrefix=qh;on.core.getStyleSaver=rN;(function(i,e,t,n){var s=Wn(i+","+e+","+t,function(r){oa[r]=1});Wn(e,function(r){ms.units[r]="deg",cN[r]=1}),Wr[s[13]]=i+","+e,Wn(n,function(r){var o=r.split(":");Wr[o[1]]=s[o[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");Wn("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){ms.units[i]="px"});on.registerPlugin(AO);function rI(i,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}function LY(i,e,t){return e&&rI(i.prototype,e),t&&rI(i,t),i}/*! 35 * Observer 3.12.7 36 * https://gsap.com 37 * 38 * @license Copyright 2008-2025, GreenSock. All rights reserved. 39 * Subject to the terms at https://gsap.com/standard-license or for 40 * Club GSAP members, the agreement issued with that membership. 41 * @author: Jack Doyle, [email protected] 42*/var Ui,Kb,fs,ll,cl,cd,hN,tc,ip,fN,Ko,Ys,pN,gN=function(){return Ui||typeof window<"u"&&(Ui=window.gsap)&&Ui.registerPlugin&&Ui},mN=1,sd=[],Ht=[],Yr=[],np=Date.now,pC=function(e,t){return t},IY=function(){var e=ip.core,t=e.bridge||{},n=e._scrollers,s=e._proxies;n.push.apply(n,Ht),s.push.apply(s,Yr),Ht=n,Yr=s,pC=function(o,a){return t[o](a)}},yl=function(e,t){return~Yr.indexOf(e)&&Yr[Yr.indexOf(e)+1][t]},sp=function(e){return!!~fN.indexOf(e)},pn=function(e,t,n,s,r){return e.addEventListener(t,n,{passive:s!==!1,capture:!!r})},hn=function(e,t,n,s){return e.removeEventListener(t,n,!!s)},ab="scrollLeft",lb="scrollTop",gC=function(){return Ko&&Ko.isPressed||Ht.cache++},Ky=function(e,t){var n=function s(r){if(r||r===0){mN&&(fs.history.scrollRestoration="manual");var o=Ko&&Ko.isPressed;r=s.v=Math.round(r)||(Ko&&Ko.iOS?1:0),e(r),s.cacheID=Ht.cache,o&&pC("ss",r)}else(t||Ht.cache!==s.cacheID||pC("ref"))&&(s.cacheID=Ht.cache,s.v=e());return s.v+s.offset};return n.offset=0,e&&n},Tn={s:ab,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Ky(function(i){return arguments.length?fs.scrollTo(i,_i.sc()):fs.pageXOffset||ll[ab]||cl[ab]||cd[ab]||0})},_i={s:lb,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Tn,sc:Ky(function(i){return arguments.length?fs.scrollTo(Tn.sc(),i):fs.pageYOffset||ll[lb]||cl[lb]||cd[lb]||0})},zn=function(e,t){return(t&&t._ctx&&t._ctx.selector||Ui.utils.toArray)(e)[0]||(typeof e=="string"&&Ui.config().nullTargetWarn!==!1?console.warn("Element not found:",e):null)},Tl=function(e,t){var n=t.s,s=t.sc;sp(e)&&(e=ll.scrollingElement||cl);var r=Ht.indexOf(e),o=s===_i.sc?1:2;!~r&&(r=Ht.push(e)-1),Ht[r+o]||pn(e,"scroll",gC);var a=Ht[r+o],l=a||(Ht[r+o]=Ky(yl(e,n),!0)||(sp(e)?s:Ky(function(c){return arguments.length?e[n]=c:e[n]})));return l.target=e,a||(l.smooth=Ui.getProperty(e,"scrollBehavior")==="smooth"),l},mC=function(e,t,n){var s=e,r=e,o=np(),a=o,l=t||50,c=Math.max(500,l*3),u=function(m,g){var v=np();g||v-o>l?(r=s,s=m,a=o,o=v):n?s+=m:s=r+(m-r)/(v-a)*(o-a)},d=function(){r=s=n?0:s,a=o=0},h=function(m){var g=a,v=r,w=np();return(m||m===0)&&m!==s&&u(m),o===a||w-a>c?0:(s+(n?v:-v))/((n?w:o)-g)*1e3};return{update:u,reset:d,getVelocity:h}},vf=function(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},oI=function(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n},bN=function(){ip=Ui.core.globals().ScrollTrigger,ip&&ip.core&&IY()},yN=function(e){return Ui=e||gN(),!Kb&&Ui&&typeof document<"u"&&document.body&&(fs=window,ll=document,cl=ll.documentElement,cd=ll.body,fN=[fs,ll,cl,cd],Ui.utils.clamp,pN=Ui.core.context||function(){},tc="onpointerenter"in cd?"pointer":"mouse",hN=ci.isTouch=fs.matchMedia&&fs.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in fs||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Ys=ci.eventTypes=("ontouchstart"in cl?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in cl?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return mN=0},500),bN(),Kb=1),Kb};Tn.op=_i;Ht.cache=0;var ci=function(){function i(t){this.init(t)}var e=i.prototype;return e.init=function(n){Kb||yN(Ui)||console.warn("Please gsap.registerPlugin(Observer)"),ip||bN();var s=n.tolerance,r=n.dragMinimum,o=n.type,a=n.target,l=n.lineHeight,c=n.debounce,u=n.preventDefault,d=n.onStop,h=n.onStopDelay,p=n.ignore,m=n.wheelSpeed,g=n.event,v=n.onDragStart,w=n.onDragEnd,_=n.onDrag,x=n.onPress,k=n.onRelease,S=n.onRight,T=n.onLeft,E=n.onUp,M=n.onDown,A=n.onChangeX,P=n.onChangeY,L=n.onChange,I=n.onToggleX,z=n.onToggleY,q=n.onHover,H=n.onHoverEnd,j=n.onMove,$=n.ignoreCheck,B=n.isNormalizer,K=n.onGestureStart,N=n.onGestureEnd,J=n.onWheel,et=n.onEnable,Z=n.onDisable,U=n.onClick,tt=n.scrollSpeed,it=n.capture,Y=n.allowClicks,ot=n.lockAxis,pt=n.onLockAxis;this.target=a=zn(a)||cl,this.vars=n,p&&(p=Ui.utils.toArray(p)),s=s||1e-9,r=r||0,m=m||1,tt=tt||1,o=o||"wheel,touch,pointer",c=c!==!1,l||(l=parseFloat(fs.getComputedStyle(cd).lineHeight)||22);var mt,lt,xt,gt,ct,$t,fe,X=this,ue=0,pe=0,Ae=n.passive||!u&&n.passive!==!1,Ut=Tl(a,Tn),Ue=Tl(a,_i),Ge=Ut(),cn=Ue(),ye=~o.indexOf("touch")&&!~o.indexOf("pointer")&&Ys[0]==="pointerdown",Ss=sp(a),Me=a.ownerDocument||ll,ki=[0,0,0],Bi=[0,0,0],Pn=0,br=function(){return Pn=np()},Ye=function(vt,Rt){return(X.event=vt)&&p&&~p.indexOf(vt.target)||Rt&&ye&&vt.pointerType!=="touch"||$&&$(vt,Rt)},Rl=function(){X._vx.reset(),X._vy.reset(),lt.pause(),d&&d(X)},js=function(){var vt=X.deltaX=oI(ki),Rt=X.deltaY=oI(Bi),rt=Math.abs(vt)>=s,Et=Math.abs(Rt)>=s;L&&(rt||Et)&&L(X,vt,Rt,ki,Bi),rt&&(S&&X.deltaX>0&&S(X),T&&X.deltaX<0&&T(X),A&&A(X),I&&X.deltaX<0!=ue<0&&I(X),ue=X.deltaX,ki[0]=ki[1]=ki[2]=0),Et&&(M&&X.deltaY>0&&M(X),E&&X.deltaY<0&&E(X),P&&P(X),z&&X.deltaY<0!=pe<0&&z(X),pe=X.deltaY,Bi[0]=Bi[1]=Bi[2]=0),(gt||xt)&&(j&&j(X),xt&&(v&&xt===1&&v(X),_&&_(X),xt=0),gt=!1),$t&&!($t=!1)&&pt&&pt(X),ct&&(J(X),ct=!1),mt=0},da=function(vt,Rt,rt){ki[rt]+=vt,Bi[rt]+=Rt,X._vx.update(vt),X._vy.update(Rt),c?mt||(mt=requestAnimationFrame(js)):js()},Cn=function(vt,Rt){ot&&!fe&&(X.axis=fe=Math.abs(vt)>Math.abs(Rt)?"x":"y",$t=!0),fe!=="y"&&(ki[2]+=vt,X._vx.update(vt,!0)),fe!=="x"&&(Bi[2]+=Rt,X._vy.update(Rt,!0)),c?mt||(mt=requestAnimationFrame(js)):js()},Kn=function(vt){if(!Ye(vt,1)){vt=vf(vt,u);var Rt=vt.clientX,rt=vt.clientY,Et=Rt-X.x,bt=rt-X.y,Pt=X.isDragging;X.x=Rt,X.y=rt,(Pt||(Et||bt)&&(Math.abs(X.startX-Rt)>=r||Math.abs(X.startY-rt)>=r))&&(xt=Pt?2:1,Pt||(X.isDragging=!0),Cn(Et,bt))}},io=X.onPress=function(At){Ye(At,1)||At&&At.button||(X.axis=fe=null,lt.pause(),X.isPressed=!0,At=vf(At),ue=pe=0,X.startX=X.x=At.clientX,X.startY=X.y=At.clientY,X._vx.reset(),X._vy.reset(),pn(B?a:Me,Ys[1],Kn,Ae,!0),X.deltaX=X.deltaY=0,x&&x(X))},Bt=X.onRelease=function(At){if(!Ye(At,1)){hn(B?a:Me,Ys[1],Kn,!0);var vt=!isNaN(X.y-X.startY),Rt=X.isDragging,rt=Rt&&(Math.abs(X.x-X.startX)>3||Math.abs(X.y-X.startY)>3),Et=vf(At);!rt&&vt&&(X._vx.reset(),X._vy.reset(),u&&Y&&Ui.delayedCall(.08,function(){if(np()-Pn>300&&!At.defaultPrevented){if(At.target.click)At.target.click();else if(Me.createEvent){var bt=Me.createEvent("MouseEvents");bt.initMouseEvent("click",!0,!0,fs,1,Et.screenX,Et.screenY,Et.clientX,Et.clientY,!1,!1,!1,!1,0,null),At.target.dispatchEvent(bt)}}})),X.isDragging=X.isGesturing=X.isPressed=!1,d&&Rt&&!B&<.restart(!0),xt&&js(),w&&Rt&&w(X),k&&k(X,rt)}},no=function(vt){return vt.touches&&vt.touches.length>1&&(X.isGesturing=!0)&&K(vt,X.isDragging)},An=function(){return(X.isGesturing=!1)||N(X)},zi=function(vt){if(!Ye(vt)){var Rt=Ut(),rt=Ue();da((Rt-Ge)*tt,(rt-cn)*tt,1),Ge=Rt,cn=rt,d&<.restart(!0)}},Xn=function(vt){if(!Ye(vt)){vt=vf(vt,u),J&&(ct=!0);var Rt=(vt.deltaMode===1?l:vt.deltaMode===2?fs.innerHeight:1)*m;da(vt.deltaX*Rt,vt.deltaY*Rt,0),d&&!B&<.restart(!0)}},un=function(vt){if(!Ye(vt)){var Rt=vt.clientX,rt=vt.clientY,Et=Rt-X.x,bt=rt-X.y;X.x=Rt,X.y=rt,gt=!0,d&<.restart(!0),(Et||bt)&&Cn(Et,bt)}},ha=function(vt){X.event=vt,q(X)},Us=function(vt){X.event=vt,H(X)},Fl=function(vt){return Ye(vt)||vf(vt,u)&&U(X)};lt=X._dc=Ui.delayedCall(h||.25,Rl).pause(),X.deltaX=X.deltaY=0,X._vx=mC(0,50,!0),X._vy=mC(0,50,!0),X.scrollX=Ut,X.scrollY=Ue,X.isDragging=X.isGesturing=X.isPressed=!1,pN(this),X.enable=function(At){return X.isEnabled||(pn(Ss?Me:a,"scroll",gC),o.indexOf("scroll")>=0&&pn(Ss?Me:a,"scroll",zi,Ae,it),o.indexOf("wheel")>=0&&pn(a,"wheel",Xn,Ae,it),(o.indexOf("touch")>=0&&hN||o.indexOf("pointer")>=0)&&(pn(a,Ys[0],io,Ae,it),pn(Me,Ys[2],Bt),pn(Me,Ys[3],Bt),Y&&pn(a,"click",br,!0,!0),U&&pn(a,"click",Fl),K&&pn(Me,"gesturestart",no),N&&pn(Me,"gestureend",An),q&&pn(a,tc+"enter",ha),H&&pn(a,tc+"leave",Us),j&&pn(a,tc+"move",un)),X.isEnabled=!0,X.isDragging=X.isGesturing=X.isPressed=gt=xt=!1,X._vx.reset(),X._vy.reset(),Ge=Ut(),cn=Ue(),At&&At.type&&io(At),et&&et(X)),X},X.disable=function(){X.isEnabled&&(sd.filter(function(At){return At!==X&&sp(At.target)}).length||hn(Ss?Me:a,"scroll",gC),X.isPressed&&(X._vx.reset(),X._vy.reset(),hn(B?a:Me,Ys[1],Kn,!0)),hn(Ss?Me:a,"scroll",zi,it),hn(a,"wheel",Xn,it),hn(a,Ys[0],io,it),hn(Me,Ys[2],Bt),hn(Me,Ys[3],Bt),hn(a,"click",br,!0),hn(a,"click",Fl),hn(Me,"gesturestart",no),hn(Me,"gestureend",An),hn(a,tc+"enter",ha),hn(a,tc+"leave",Us),hn(a,tc+"move",un),X.isEnabled=X.isPressed=X.isDragging=!1,Z&&Z(X))},X.kill=X.revert=function(){X.disable();var At=sd.indexOf(X);At>=0&&sd.splice(At,1),Ko===X&&(Ko=0)},sd.push(X),B&&sp(a)&&(Ko=X),X.enable(g)},LY(i,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),i}();ci.version="3.12.7";ci.create=function(i){return new ci(i)};ci.register=yN;ci.getAll=function(){return sd.slice()};ci.getById=function(i){return sd.filter(function(e){return e.vars.id===i})[0]};gN()&&Ui.registerPlugin(ci);/*! 43 * ScrollTrigger 3.12.7 44 * https://gsap.com 45 * 46 * @license Copyright 2008-2025, GreenSock. All rights reserved. 47 * Subject to the terms at https://gsap.com/standard-license or for 48 * Club GSAP members, the agreement issued with that membership. 49 * @author: Jack Doyle, [email protected] 50*/var dt,Ju,qt,Te,ds,le,MO,Xy,Mp,rp,If,cb,Xi,Vk,bC,_n,aI,lI,Zu,vN,DE,wN,wn,yC,_N,xN,va,vC,OO,ud,$O,Qy,wC,RE,ub=1,Ji=Date.now,FE=Ji(),Vs=0,Df=0,cI=function(e,t,n){var s=os(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return n["_"+t+"Clamp"]=s,s?e.substr(6,e.length-7):e},uI=function(e,t){return t&&(!os(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},DY=function i(){return Df&&requestAnimationFrame(i)},dI=function(){return Vk=1},hI=function(){return Vk=0},kr=function(e){return e},Rf=function(e){return Math.round(e*1e5)/1e5||0},SN=function(){return typeof window<"u"},TN=function(){return dt||SN()&&(dt=window.gsap)&&dt.registerPlugin&&dt},Pu=function(e){return!!~MO.indexOf(e)},kN=function(e){return(e==="Height"?$O:qt["inner"+e])||ds["client"+e]||le["client"+e]},EN=function(e){return yl(e,"getBoundingClientRect")||(Pu(e)?function(){return ty.width=qt.innerWidth,ty.height=$O,ty}:function(){return Yo(e)})},RY=function(e,t,n){var s=n.d,r=n.d2,o=n.a;return(o=yl(e,"getBoundingClientRect"))?function(){return o()[s]}:function(){return(t?kN(r):e["client"+r])||0}},FY=function(e,t){return!t||~Yr.indexOf(e)?EN(e):function(){return ty}},jr=function(e,t){var n=t.s,s=t.d2,r=t.d,o=t.a;return Math.max(0,(n="scroll"+s)&&(o=yl(e,n))?o()-EN(e)()[r]:Pu(e)?(ds[n]||le[n])-kN(s):e[n]-e["offset"+s])},db=function(e,t){for(var n=0;n<Zu.length;n+=3)(!t||~t.indexOf(Zu[n+1]))&&e(Zu[n],Zu[n+1],Zu[n+2])},os=function(e){return typeof e=="string"},tn=function(e){return typeof e=="function"},Ff=function(e){return typeof e=="number"},ec=function(e){return typeof e=="object"},wf=function(e,t,n){return e&&e.progress(t?0:1)&&n&&e.pause()},NE=function(e,t){if(e.enabled){var n=e._ctx?e._ctx.add(function(){return t(e)}):t(e);n&&n.totalTime&&(e.callbackAnimation=n)}},Yu=Math.abs,PN="left",CN="top",LO="right",IO="bottom",mu="width",bu="height",op="Right",ap="Left",lp="Top",cp="Bottom",hi="padding",Is="margin",Hh="Width",DO="Height",wi="px",Ds=function(e){return qt.getComputedStyle(e)},NY=function(e){var t=Ds(e).position;e.style.position=t==="absolute"||t==="fixed"?t:"relative"},fI=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},Yo=function(e,t){var n=t&&Ds(e)[bC]!=="matrix(1, 0, 0, 1, 0, 0)"&&dt.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),s=e.getBoundingClientRect();return n&&n.progress(0).kill(),s},Jy=function(e,t){var n=t.d2;return e["offset"+n]||e["client"+n]||0},AN=function(e){var t=[],n=e.labels,s=e.duration(),r;for(r in n)t.push(n[r]/s);return t},BY=function(e){return function(t){return dt.utils.snap(AN(e),t)}},RO=function(e){var t=dt.utils.snap(e),n=Array.isArray(e)&&e.slice(0).sort(function(s,r){return s-r});return n?function(s,r,o){o===void 0&&(o=.001);var a;if(!r)return t(s);if(r>0){for(s-=o,a=0;a<n.length;a++)if(n[a]>=s)return n[a];return n[a-1]}else for(a=n.length,s+=o;a--;)if(n[a]<=s)return n[a];return n[0]}:function(s,r,o){o===void 0&&(o=.001);var a=t(s);return!r||Math.abs(a-s)<o||a-s<0==r<0?a:t(r<0?s-e:s+e)}},zY=function(e){return function(t,n){return RO(AN(e))(t,n.direction)}},hb=function(e,t,n,s){return n.split(",").forEach(function(r){return e(t,r,s)})},$i=function(e,t,n,s,r){return e.addEventListener(t,n,{passive:!s,capture:!!r})},Ai=function(e,t,n,s){return e.removeEventListener(t,n,!!s)},fb=function(e,t,n){n=n&&n.wheelHandler,n&&(e(t,"wheel",n),e(t,"touchmove",n))},pI={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},pb={toggleActions:"play",anticipatePin:0},Zy={top:0,left:0,center:.5,bottom:1,right:1},Xb=function(e,t){if(os(e)){var n=e.indexOf("="),s=~n?+(e.charAt(n-1)+1)*parseFloat(e.substr(n+1)):0;~n&&(e.indexOf("%")>n&&(s*=t/100),e=e.substr(0,n-1)),e=s+(e in Zy?Zy[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},gb=function(e,t,n,s,r,o,a,l){var c=r.startColor,u=r.endColor,d=r.fontSize,h=r.indent,p=r.fontWeight,m=Te.createElement("div"),g=Pu(n)||yl(n,"pinType")==="fixed",v=e.indexOf("scroller")!==-1,w=g?le:n,_=e.indexOf("start")!==-1,x=_?c:u,k="border-color:"+x+";font-size:"+d+";color:"+x+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return k+="position:"+((v||l)&&g?"fixed;":"absolute;"),(v||l||!g)&&(k+=(s===_i?LO:IO)+":"+(o+parseFloat(h))+"px;"),a&&(k+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),m._isStart=_,m.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),m.style.cssText=k,m.innerText=t||t===0?e+"-"+t:e,w.children[0]?w.insertBefore(m,w.children[0]):w.appendChild(m),m._offset=m["offset"+s.op.d2],Qb(m,0,s,_),m},Qb=function(e,t,n,s){var r={display:"block"},o=n[s?"os2":"p2"],a=n[s?"p2":"os2"];e._isFlipped=s,r[n.a+"Percent"]=s?-100:0,r[n.a]=s?"1px":0,r["border"+o+Hh]=1,r["border"+a+Hh]=0,r[n.p]=t+"px",dt.set(e,r)},Vt=[],_C={},Op,gI=function(){return Ji()-Vs>34&&(Op||(Op=requestAnimationFrame(ta)))},Ku=function(){(!wn||!wn.isPressed||wn.startX>le.clientWidth)&&(Ht.cache++,wn?Op||(Op=requestAnimationFrame(ta)):ta(),Vs||Au("scrollStart"),Vs=Ji())},BE=function(){xN=qt.innerWidth,_N=qt.innerHeight},Nf=function(e){Ht.cache++,(e===!0||!Xi&&!wN&&!Te.fullscreenElement&&!Te.webkitFullscreenElement&&(!yC||xN!==qt.innerWidth||Math.abs(qt.innerHeight-_N)>qt.innerHeight*.25))&&Xy.restart(!0)},Cu={},VY=[],MN=function i(){return Ai(Wt,"scrollEnd",i)||dc(!0)},Au=function(e){return Cu[e]&&Cu[e].map(function(t){return t()})||VY},rs=[],ON=function(e){for(var t=0;t<rs.length;t+=5)(!e||rs[t+4]&&rs[t+4].query===e)&&(rs[t].style.cssText=rs[t+1],rs[t].getBBox&&rs[t].setAttribute("transform",rs[t+2]||""),rs[t+3].uncache=1)},FO=function(e,t){var n;for(_n=0;_n<Vt.length;_n++)n=Vt[_n],n&&(!t||n._ctx===t)&&(e?n.kill(1):n.revert(!0,!0));Qy=!0,t&&ON(t),t||Au("revert")},$N=function(e,t){Ht.cache++,(t||!xn)&&Ht.forEach(function(n){return tn(n)&&n.cacheID++&&(n.rec=0)}),os(e)&&(qt.history.scrollRestoration=OO=e)},xn,yu=0,mI,qY=function(){if(mI!==yu){var e=mI=yu;requestAnimationFrame(function(){return e===yu&&dc(!0)})}},LN=function(){le.appendChild(ud),$O=!wn&&ud.offsetHeight||qt.innerHeight,le.removeChild(ud)},bI=function(e){return Mp(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(t){return t.style.display=e?"none":"block"})},dc=function(e,t){if(ds=Te.documentElement,le=Te.body,MO=[qt,Te,ds,le],Vs&&!e&&!Qy){$i(Wt,"scrollEnd",MN);return}LN(),xn=Wt.isRefreshing=!0,Ht.forEach(function(s){return tn(s)&&++s.cacheID&&(s.rec=s())});var n=Au("refreshInit");vN&&Wt.sort(),t||FO(),Ht.forEach(function(s){tn(s)&&(s.smooth&&(s.target.style.scrollBehavior="auto"),s(0))}),Vt.slice(0).forEach(function(s){return s.refresh()}),Qy=!1,Vt.forEach(function(s){if(s._subPinOffset&&s.pin){var r=s.vars.horizontal?"offsetWidth":"offsetHeight",o=s.pin[r];s.revert(!0,1),s.adjustPinSpacing(s.pin[r]-o),s.refresh()}}),wC=1,bI(!0),Vt.forEach(function(s){var r=jr(s.scroller,s._dir),o=s.vars.end==="max"||s._endClamp&&s.end>r,a=s._startClamp&&s.start>=r;(o||a)&&s.setPositions(a?r-1:s.start,o?Math.max(a?r:s.start+1,r):s.end,!0)}),bI(!1),wC=0,n.forEach(function(s){return s&&s.render&&s.render(-1)}),Ht.forEach(function(s){tn(s)&&(s.smooth&&requestAnimationFrame(function(){return s.target.style.scrollBehavior="smooth"}),s.rec&&s(s.rec))}),$N(OO,1),Xy.pause(),yu++,xn=2,ta(2),Vt.forEach(function(s){return tn(s.vars.onRefresh)&&s.vars.onRefresh(s)}),xn=Wt.isRefreshing=!1,Au("refresh")},xC=0,Jb=1,up,ta=function(e){if(e===2||!xn&&!Qy){Wt.isUpdating=!0,up&&up.update(0);var t=Vt.length,n=Ji(),s=n-FE>=50,r=t&&Vt[0].scroll();if(Jb=xC>r?-1:1,xn||(xC=r),s&&(Vs&&!Vk&&n-Vs>200&&(Vs=0,Au("scrollEnd")),If=FE,FE=n),Jb<0){for(_n=t;_n-- >0;)Vt[_n]&&Vt[_n].update(0,s);Jb=1}else for(_n=0;_n<t;_n++)Vt[_n]&&Vt[_n].update(0,s);Wt.isUpdating=!1}Op=0},SC=[PN,CN,IO,LO,Is+cp,Is+op,Is+lp,Is+ap,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Zb=SC.concat([mu,bu,"boxSizing","max"+Hh,"max"+DO,"position",Is,hi,hi+lp,hi+op,hi+cp,hi+ap]),HY=function(e,t,n){dd(n);var s=e._gsap;if(s.spacerIsNative)dd(s.spacerState);else if(e._gsap.swappedIn){var r=t.parentNode;r&&(r.insertBefore(e,t),r.removeChild(t))}e._gsap.swappedIn=!1},zE=function(e,t,n,s){if(!e._gsap.swappedIn){for(var r=SC.length,o=t.style,a=e.style,l;r--;)l=SC[r],o[l]=n[l];o.position=n.position==="absolute"?"absolute":"relative",n.display==="inline"&&(o.display="inline-block"),a[IO]=a[LO]="auto",o.flexBasis=n.flexBasis||"auto",o.overflow="visible",o.boxSizing="border-box",o[mu]=Jy(e,Tn)+wi,o[bu]=Jy(e,_i)+wi,o[hi]=a[Is]=a[CN]=a[PN]="0",dd(s),a[mu]=a["max"+Hh]=n[mu],a[bu]=a["max"+DO]=n[bu],a[hi]=n[hi],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},WY=/([A-Z])/g,dd=function(e){if(e){var t=e.t.style,n=e.length,s=0,r,o;for((e.t._gsap||dt.core.getCache(e.t)).uncache=1;s<n;s+=2)o=e[s+1],r=e[s],o?t[r]=o:t[r]&&t.removeProperty(r.replace(WY,"-$1").toLowerCase())}},mb=function(e){for(var t=Zb.length,n=e.style,s=[],r=0;r<t;r++)s.push(Zb[r],n[Zb[r]]);return s.t=e,s},jY=function(e,t,n){for(var s=[],r=e.length,o=n?8:0,a;o<r;o+=2)a=e[o],s.push(a,a in t?t[a]:e[o+1]);return s.t=e.t,s},ty={left:0,top:0},yI=function(e,t,n,s,r,o,a,l,c,u,d,h,p,m){tn(e)&&(e=e(l)),os(e)&&e.substr(0,3)==="max"&&(e=h+(e.charAt(4)==="="?Xb("0"+e.substr(3),n):0));var g=p?p.time():0,v,w,_;if(p&&p.seek(0),isNaN(e)||(e=+e),Ff(e))p&&(e=dt.utils.mapRange(p.scrollTrigger.start,p.scrollTrigger.end,0,h,e)),a&&Qb(a,n,s,!0);else{tn(t)&&(t=t(l));var x=(e||"0").split(" "),k,S,T,E;_=zn(t,l)||le,k=Yo(_)||{},(!k||!k.left&&!k.top)&&Ds(_).display==="none"&&(E=_.style.display,_.style.display="block",k=Yo(_),E?_.style.display=E:_.style.removeProperty("display")),S=Xb(x[0],k[s.d]),T=Xb(x[1]||"0",n),e=k[s.p]-c[s.p]-u+S+r-T,a&&Qb(a,T,s,n-T<20||a._isStart&&T>20),n-=n-T}if(m&&(l[m]=e||-.001,e<0&&(e=0)),o){var M=e+n,A=o._isStart;v="scroll"+s.d2,Qb(o,M,s,A&&M>20||!A&&(d?Math.max(le[v],ds[v]):o.parentNode[v])<=M+1),d&&(c=Yo(a),d&&(o.style[s.op.p]=c[s.op.p]-s.op.m-o._offset+wi))}return p&&_&&(v=Yo(_),p.seek(h),w=Yo(_),p._caScrollDist=v[s.p]-w[s.p],e=e/p._caScrollDist*h),p&&p.seek(g),p?e:Math.round(e)},UY=/(webkit|moz|length|cssText|inset)/i,vI=function(e,t,n,s){if(e.parentNode!==t){var r=e.style,o,a;if(t===le){e._stOrig=r.cssText,a=Ds(e);for(o in a)!+o&&!UY.test(o)&&a[o]&&typeof r[o]=="string"&&o!=="0"&&(r[o]=a[o]);r.top=n,r.left=s}else r.cssText=e._stOrig;dt.core.getCache(e).uncache=1,t.appendChild(e)}},IN=function(e,t,n){var s=t,r=s;return function(o){var a=Math.round(e());return a!==s&&a!==r&&Math.abs(a-s)>3&&Math.abs(a-r)>3&&(o=a,n&&n()),r=s,s=Math.round(o),s}},bb=function(e,t,n){var s={};s[t.p]="+="+n,dt.set(e,s)},wI=function(e,t){var n=Tl(e,t),s="_scroll"+t.p2,r=function o(a,l,c,u,d){var h=o.tween,p=l.onComplete,m={};c=c||n();var g=IN(n,c,function(){h.kill(),o.tween=0});return d=u&&d||0,u=u||a-c,h&&h.kill(),l[s]=a,l.inherit=!1,l.modifiers=m,m[s]=function(){return g(c+u*h.ratio+d*h.ratio*h.ratio)},l.onUpdate=function(){Ht.cache++,o.tween&&ta()},l.onComplete=function(){o.tween=0,p&&p.call(h)},h=o.tween=dt.to(e,l),h};return e[s]=n,n.wheelHandler=function(){return r.tween&&r.tween.kill()&&(r.tween=0)},$i(e,"wheel",n.wheelHandler),Wt.isTouch&&$i(e,"touchmove",n.wheelHandler),r},Wt=function(){function i(t,n){Ju||i.register(dt)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),vC(this),this.init(t,n)}var e=i.prototype;return e.init=function(n,s){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Df){this.update=this.refresh=this.kill=kr;return}n=fI(os(n)||Ff(n)||n.nodeType?{trigger:n}:n,pb);var r=n,o=r.onUpdate,a=r.toggleClass,l=r.id,c=r.onToggle,u=r.onRefresh,d=r.scrub,h=r.trigger,p=r.pin,m=r.pinSpacing,g=r.invalidateOnRefresh,v=r.anticipatePin,w=r.onScrubComplete,_=r.onSnapComplete,x=r.once,k=r.snap,S=r.pinReparent,T=r.pinSpacer,E=r.containerAnimation,M=r.fastScrollEnd,A=r.preventOverlaps,P=n.horizontal||n.containerAnimation&&n.horizontal!==!1?Tn:_i,L=!d&&d!==0,I=zn(n.scroller||qt),z=dt.core.getCache(I),q=Pu(I),H=("pinType"in n?n.pinType:yl(I,"pinType")||q&&"fixed")==="fixed",j=[n.onEnter,n.onLeave,n.onEnterBack,n.onLeaveBack],$=L&&n.toggleActions.split(" "),B="markers"in n?n.markers:pb.markers,K=q?0:parseFloat(Ds(I)["border"+P.p2+Hh])||0,N=this,J=n.onRefreshInit&&function(){return n.onRefreshInit(N)},et=RY(I,q,P),Z=FY(I,q),U=0,tt=0,it=0,Y=Tl(I,P),ot,pt,mt,lt,xt,gt,ct,$t,fe,X,ue,pe,Ae,Ut,Ue,Ge,cn,ye,Ss,Me,ki,Bi,Pn,br,Ye,Rl,js,da,Cn,Kn,io,Bt,no,An,zi,Xn,un,ha,Us;if(N._startClamp=N._endClamp=!1,N._dir=P,v*=45,N.scroller=I,N.scroll=E?E.time.bind(E):Y,lt=Y(),N.vars=n,s=s||n.animation,"refreshPriority"in n&&(vN=1,n.refreshPriority===-9999&&(up=N)),z.tweenScroll=z.tweenScroll||{top:wI(I,_i),left:wI(I,Tn)},N.tweenTo=ot=z.tweenScroll[P.p],N.scrubDuration=function(rt){no=Ff(rt)&&rt,no?Bt?Bt.duration(rt):Bt=dt.to(s,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:no,paused:!0,onComplete:function(){return w&&w(N)}}):(Bt&&Bt.progress(1).kill(),Bt=0)},s&&(s.vars.lazy=!1,s._initted&&!N.isReverted||s.vars.immediateRender!==!1&&n.immediateRender!==!1&&s.duration()&&s.render(0,!0,!0),N.animation=s.pause(),s.scrollTrigger=N,N.scrubDuration(d),Kn=0,l||(l=s.vars.id)),k&&((!ec(k)||k.push)&&(k={snapTo:k}),"scrollBehavior"in le.style&&dt.set(q?[le,ds]:I,{scrollBehavior:"auto"}),Ht.forEach(function(rt){return tn(rt)&&rt.target===(q?Te.scrollingElement||ds:I)&&(rt.smooth=!1)}),mt=tn(k.snapTo)?k.snapTo:k.snapTo==="labels"?BY(s):k.snapTo==="labelsDirectional"?zY(s):k.directional!==!1?function(rt,Et){return RO(k.snapTo)(rt,Ji()-tt<500?0:Et.direction)}:dt.utils.snap(k.snapTo),An=k.duration||{min:.1,max:2},An=ec(An)?rp(An.min,An.max):rp(An,An),zi=dt.delayedCall(k.delay||no/2||.1,function(){var rt=Y(),Et=Ji()-tt<500,bt=ot.tween;if((Et||Math.abs(N.getVelocity())<10)&&!bt&&!Vk&&U!==rt){var Pt=(rt-gt)/Ut,di=s&&!L?s.totalProgress():Pt,Lt=Et?0:(di-io)/(Ji()-If)*1e3||0,Ke=dt.utils.clamp(-Pt,1-Pt,Yu(Lt/2)*Lt/.185),Ei=Pt+(k.inertia===!1?0:Ke),ze,Se,de=k,Pi=de.onStart,Oe=de.onInterrupt,dn=de.onComplete;if(ze=mt(Ei,N),Ff(ze)||(ze=Ei),Se=Math.max(0,Math.round(gt+ze*Ut)),rt<=ct&&rt>=gt&&Se!==rt){if(bt&&!bt._initted&&bt.data<=Yu(Se-rt))return;k.inertia===!1&&(Ke=ze-Pt),ot(Se,{duration:An(Yu(Math.max(Yu(Ei-di),Yu(ze-di))*.185/Lt/.05||0)),ease:k.ease||"power3",data:Yu(Se-rt),onInterrupt:function(){return zi.restart(!0)&&Oe&&Oe(N)},onComplete:function(){N.update(),U=Y(),s&&!L&&(Bt?Bt.resetTo("totalProgress",ze,s._tTime/s._tDur):s.progress(ze)),Kn=io=s&&!L?s.totalProgress():N.progress,_&&_(N),dn&&dn(N)}},rt,Ke*Ut,Se-rt-Ke*Ut),Pi&&Pi(N,ot.tween)}}else N.isActive&&U!==rt&&zi.restart(!0)}).pause()),l&&(_C[l]=N),h=N.trigger=zn(h||p!==!0&&p),Us=h&&h._gsap&&h._gsap.stRevert,Us&&(Us=Us(N)),p=p===!0?h:zn(p),os(a)&&(a={targets:h,className:a}),p&&(m===!1||m===Is||(m=!m&&p.parentNode&&p.parentNode.style&&Ds(p.parentNode).display==="flex"?!1:hi),N.pin=p,pt=dt.core.getCache(p),pt.spacer?Ue=pt.pinState:(T&&(T=zn(T),T&&!T.nodeType&&(T=T.current||T.nativeElement),pt.spacerIsNative=!!T,T&&(pt.spacerState=mb(T))),pt.spacer=ye=T||Te.createElement("div"),ye.classList.add("pin-spacer"),l&&ye.classList.add("pin-spacer-"+l),pt.pinState=Ue=mb(p)),n.force3D!==!1&&dt.set(p,{force3D:!0}),N.spacer=ye=pt.spacer,Cn=Ds(p),br=Cn[m+P.os2],Me=dt.getProperty(p),ki=dt.quickSetter(p,P.a,wi),zE(p,ye,Cn),cn=mb(p)),B){pe=ec(B)?fI(B,pI):pI,X=gb("scroller-start",l,I,P,pe,0),ue=gb("scroller-end",l,I,P,pe,0,X),Ss=X["offset"+P.op.d2];var Fl=zn(yl(I,"content")||I);$t=this.markerStart=gb("start",l,Fl,P,pe,Ss,0,E),fe=this.markerEnd=gb("end",l,Fl,P,pe,Ss,0,E),E&&(ha=dt.quickSetter([$t,fe],P.a,wi)),!H&&!(Yr.length&&yl(I,"fixedMarkers")===!0)&&(NY(q?le:I),dt.set([X,ue],{force3D:!0}),Rl=dt.quickSetter(X,P.a,wi),da=dt.quickSetter(ue,P.a,wi))}if(E){var At=E.vars.onUpdate,vt=E.vars.onUpdateParams;E.eventCallback("onUpdate",function(){N.update(0,0,1),At&&At.apply(E,vt||[])})}if(N.previous=function(){return Vt[Vt.indexOf(N)-1]},N.next=function(){return Vt[Vt.indexOf(N)+1]},N.revert=function(rt,Et){if(!Et)return N.kill(!0);var bt=rt!==!1||!N.enabled,Pt=Xi;bt!==N.isReverted&&(bt&&(Xn=Math.max(Y(),N.scroll.rec||0),it=N.progress,un=s&&s.progress()),$t&&[$t,fe,X,ue].forEach(function(di){return di.style.display=bt?"none":"block"}),bt&&(Xi=N,N.update(bt)),p&&(!S||!N.isActive)&&(bt?HY(p,ye,Ue):zE(p,ye,Ds(p),Ye)),bt||N.update(bt),Xi=Pt,N.isReverted=bt)},N.refresh=function(rt,Et,bt,Pt){if(!((Xi||!N.enabled)&&!Et)){if(p&&rt&&Vs){$i(i,"scrollEnd",MN);return}!xn&&J&&J(N),Xi=N,ot.tween&&!bt&&(ot.tween.kill(),ot.tween=0),Bt&&Bt.pause(),g&&s&&s.revert({kill:!1}).invalidate(),N.isReverted||N.revert(!0,!0),N._subPinOffset=!1;var di=et(),Lt=Z(),Ke=E?E.duration():jr(I,P),Ei=Ut<=.01,ze=0,Se=Pt||0,de=ec(bt)?bt.end:n.end,Pi=n.endTrigger||h,Oe=ec(bt)?bt.start:n.start||(n.start===0||!h?0:p?"0 0":"0 100%"),dn=N.pinnedContainer=n.pinnedContainer&&zn(n.pinnedContainer,N),Ts=h&&Math.max(0,Vt.indexOf(N))||0,mi=Ts,bi,Ci,Gs,ju,ri,Xe,ks,fa,df,Nl,Es,Bl,zl;for(B&&ec(bt)&&(Bl=dt.getProperty(X,P.p),zl=dt.getProperty(ue,P.p));mi-- >0;)Xe=Vt[mi],Xe.end||Xe.refresh(0,1)||(Xi=N),ks=Xe.pin,ks&&(ks===h||ks===p||ks===dn)&&!Xe.isReverted&&(Nl||(Nl=[]),Nl.unshift(Xe),Xe.revert(!0,!0)),Xe!==Vt[mi]&&(Ts--,mi--);for(tn(Oe)&&(Oe=Oe(N)),Oe=cI(Oe,"start",N),gt=yI(Oe,h,di,P,Y(),$t,X,N,Lt,K,H,Ke,E,N._startClamp&&"_startClamp")||(p?-.001:0),tn(de)&&(de=de(N)),os(de)&&!de.indexOf("+=")&&(~de.indexOf(" ")?de=(os(Oe)?Oe.split(" ")[0]:"")+de:(ze=Xb(de.substr(2),di),de=os(Oe)?Oe:(E?dt.utils.mapRange(0,E.duration(),E.scrollTrigger.start,E.scrollTrigger.end,gt):gt)+ze,Pi=h)),de=cI(de,"end",N),ct=Math.max(gt,yI(de||(Pi?"100% 0":Ke),Pi,di,P,Y()+ze,fe,ue,N,Lt,K,H,Ke,E,N._endClamp&&"_endClamp"))||-.001,ze=0,mi=Ts;mi--;)Xe=Vt[mi],ks=Xe.pin,ks&&Xe.start-Xe._pinPush<=gt&&!E&&Xe.end>0&&(bi=Xe.end-(N._startClamp?Math.max(0,Xe.start):Xe.start),(ks===h&&Xe.start-Xe._pinPush<gt||ks===dn)&&isNaN(Oe)&&(ze+=bi*(1-Xe.progress)),ks===p&&(Se+=bi));if(gt+=ze,ct+=ze,N._startClamp&&(N._startClamp+=ze),N._endClamp&&!xn&&(N._endClamp=ct||-.001,ct=Math.min(ct,jr(I,P))),Ut=ct-gt||(gt-=.01)&&.001,Ei&&(it=dt.utils.clamp(0,1,dt.utils.normalize(gt,ct,Xn))),N._pinPush=Se,$t&&ze&&(bi={},bi[P.a]="+="+ze,dn&&(bi[P.p]="-="+Y()),dt.set([$t,fe],bi)),p&&!(wC&&N.end>=jr(I,P)))bi=Ds(p),ju=P===_i,Gs=Y(),Bi=parseFloat(Me(P.a))+Se,!Ke&&ct>1&&(Es=(q?Te.scrollingElement||ds:I).style,Es={style:Es,value:Es["overflow"+P.a.toUpperCase()]},q&&Ds(le)["overflow"+P.a.toUpperCase()]!=="scroll"&&(Es.style["overflow"+P.a.toUpperCase()]="scroll")),zE(p,ye,bi),cn=mb(p),Ci=Yo(p,!0),fa=H&&Tl(I,ju?Tn:_i)(),m?(Ye=[m+P.os2,Ut+Se+wi],Ye.t=ye,mi=m===hi?Jy(p,P)+Ut+Se:0,mi&&(Ye.push(P.d,mi+wi),ye.style.flexBasis!=="auto"&&(ye.style.flexBasis=mi+wi)),dd(Ye),dn&&Vt.forEach(function(Vl){Vl.pin===dn&&Vl.vars.pinSpacing!==!1&&(Vl._subPinOffset=!0)}),H&&Y(Xn)):(mi=Jy(p,P),mi&&ye.style.flexBasis!=="auto"&&(ye.style.flexBasis=mi+wi)),H&&(ri={top:Ci.top+(ju?Gs-gt:fa)+wi,left:Ci.left+(ju?fa:Gs-gt)+wi,boxSizing:"border-box",position:"fixed"},ri[mu]=ri["max"+Hh]=Math.ceil(Ci.width)+wi,ri[bu]=ri["max"+DO]=Math.ceil(Ci.height)+wi,ri[Is]=ri[Is+lp]=ri[Is+op]=ri[Is+cp]=ri[Is+ap]="0",ri[hi]=bi[hi],ri[hi+lp]=bi[hi+lp],ri[hi+op]=bi[hi+op],ri[hi+cp]=bi[hi+cp],ri[hi+ap]=bi[hi+ap],Ge=jY(Ue,ri,S),xn&&Y(0)),s?(df=s._initted,DE(1),s.render(s.duration(),!0,!0),Pn=Me(P.a)-Bi+Ut+Se,js=Math.abs(Ut-Pn)>1,H&&js&&Ge.splice(Ge.length-2,2),s.render(0,!0,!0),df||s.invalidate(!0),s.parent||s.totalTime(s.totalTime()),DE(0)):Pn=Ut,Es&&(Es.value?Es.style["overflow"+P.a.toUpperCase()]=Es.value:Es.style.removeProperty("overflow-"+P.a));else if(h&&Y()&&!E)for(Ci=h.parentNode;Ci&&Ci!==le;)Ci._pinOffset&&(gt-=Ci._pinOffset,ct-=Ci._pinOffset),Ci=Ci.parentNode;Nl&&Nl.forEach(function(Vl){return Vl.revert(!1,!0)}),N.start=gt,N.end=ct,lt=xt=xn?Xn:Y(),!E&&!xn&&(lt<Xn&&Y(Xn),N.scroll.rec=0),N.revert(!1,!0),tt=Ji(),zi&&(U=-1,zi.restart(!0)),Xi=0,s&&L&&(s._initted||un)&&s.progress()!==un&&s.progress(un||0,!0).render(s.time(),!0,!0),(Ei||it!==N.progress||E||g||s&&!s._initted)&&(s&&!L&&s.totalProgress(E&><-.001&&!it?dt.utils.normalize(gt,ct,0):it,!0),N.progress=Ei||(lt-gt)/Ut===it?0:it),p&&m&&(ye._pinOffset=Math.round(N.progress*Pn)),Bt&&Bt.invalidate(),isNaN(Bl)||(Bl-=dt.getProperty(X,P.p),zl-=dt.getProperty(ue,P.p),bb(X,P,Bl),bb($t,P,Bl-(Pt||0)),bb(ue,P,zl),bb(fe,P,zl-(Pt||0))),Ei&&!xn&&N.update(),u&&!xn&&!Ae&&(Ae=!0,u(N),Ae=!1)}},N.getVelocity=function(){return(Y()-xt)/(Ji()-If)*1e3||0},N.endAnimation=function(){wf(N.callbackAnimation),s&&(Bt?Bt.progress(1):s.paused()?L||wf(s,N.direction<0,1):wf(s,s.reversed()))},N.labelToScroll=function(rt){return s&&s.labels&&(gt||N.refresh()||gt)+s.labels[rt]/s.duration()*Ut||0},N.getTrailing=function(rt){var Et=Vt.indexOf(N),bt=N.direction>0?Vt.slice(0,Et).reverse():Vt.slice(Et+1);return(os(rt)?bt.filter(function(Pt){return Pt.vars.preventOverlaps===rt}):bt).filter(function(Pt){return N.direction>0?Pt.end<=gt:Pt.start>=ct})},N.update=function(rt,Et,bt){if(!(E&&!bt&&!rt)){var Pt=xn===!0?Xn:N.scroll(),di=rt?0:(Pt-gt)/Ut,Lt=di<0?0:di>1?1:di||0,Ke=N.progress,Ei,ze,Se,de,Pi,Oe,dn,Ts;if(Et&&(xt=lt,lt=E?Y():Pt,k&&(io=Kn,Kn=s&&!L?s.totalProgress():Lt)),v&&p&&!Xi&&!ub&&Vs&&(!Lt&><Pt+(Pt-xt)/(Ji()-If)*v?Lt=1e-4:Lt===1&&ct>Pt+(Pt-xt)/(Ji()-If)*v&&(Lt=.9999)),Lt!==Ke&&N.enabled){if(Ei=N.isActive=!!Lt&&Lt<1,ze=!!Ke&&Ke<1,Oe=Ei!==ze,Pi=Oe||!!Lt!=!!Ke,N.direction=Lt>Ke?1:-1,N.progress=Lt,Pi&&!Xi&&(Se=Lt&&!Ke?0:Lt===1?1:Ke===1?2:3,L&&(de=!Oe&&$[Se+1]!=="none"&&$[Se+1]||$[Se],Ts=s&&(de==="complete"||de==="reset"||de in s))),A&&(Oe||Ts)&&(Ts||d||!s)&&(tn(A)?A(N):N.getTrailing(A).forEach(function(Gs){return Gs.endAnimation()})),L||(Bt&&!Xi&&!ub?(Bt._dp._time-Bt._start!==Bt._time&&Bt.render(Bt._dp._time-Bt._start),Bt.resetTo?Bt.resetTo("totalProgress",Lt,s._tTime/s._tDur):(Bt.vars.totalProgress=Lt,Bt.invalidate().restart())):s&&s.totalProgress(Lt,!!(Xi&&(tt||rt)))),p){if(rt&&m&&(ye.style[m+P.os2]=br),!H)ki(Rf(Bi+Pn*Lt));else if(Pi){if(dn=!rt&&Lt>Ke&&ct+1>Pt&&Pt+1>=jr(I,P),S)if(!rt&&(Ei||dn)){var mi=Yo(p,!0),bi=Pt-gt;vI(p,le,mi.top+(P===_i?bi:0)+wi,mi.left+(P===_i?0:bi)+wi)}else vI(p,ye);dd(Ei||dn?Ge:cn),js&&Lt<1&&Ei||ki(Bi+(Lt===1&&!dn?Pn:0))}}k&&!ot.tween&&!Xi&&!ub&&zi.restart(!0),a&&(Oe||x&&Lt&&(Lt<1||!RE))&&Mp(a.targets).forEach(function(Gs){return Gs.classList[Ei||x?"add":"remove"](a.className)}),o&&!L&&!rt&&o(N),Pi&&!Xi?(L&&(Ts&&(de==="complete"?s.pause().totalProgress(1):de==="reset"?s.restart(!0).pause():de==="restart"?s.restart(!0):s[de]()),o&&o(N)),(Oe||!RE)&&(c&&Oe&&NE(N,c),j[Se]&&NE(N,j[Se]),x&&(Lt===1?N.kill(!1,1):j[Se]=0),Oe||(Se=Lt===1?1:3,j[Se]&&NE(N,j[Se]))),M&&!Ei&&Math.abs(N.getVelocity())>(Ff(M)?M:2500)&&(wf(N.callbackAnimation),Bt?Bt.progress(1):wf(s,de==="reverse"?1:!Lt,1))):L&&o&&!Xi&&o(N)}if(da){var Ci=E?Pt/E.duration()*(E._caScrollDist||0):Pt;Rl(Ci+(X._isFlipped?1:0)),da(Ci)}ha&&ha(-Pt/E.duration()*(E._caScrollDist||0))}},N.enable=function(rt,Et){N.enabled||(N.enabled=!0,$i(I,"resize",Nf),q||$i(I,"scroll",Ku),J&&$i(i,"refreshInit",J),rt!==!1&&(N.progress=it=0,lt=xt=U=Y()),Et!==!1&&N.refresh())},N.getTween=function(rt){return rt&&ot?ot.tween:Bt},N.setPositions=function(rt,Et,bt,Pt){if(E){var di=E.scrollTrigger,Lt=E.duration(),Ke=di.end-di.start;rt=di.start+Ke*rt/Lt,Et=di.start+Ke*Et/Lt}N.refresh(!1,!1,{start:uI(rt,bt&&!!N._startClamp),end:uI(Et,bt&&!!N._endClamp)},Pt),N.update()},N.adjustPinSpacing=function(rt){if(Ye&&rt){var Et=Ye.indexOf(P.d)+1;Ye[Et]=parseFloat(Ye[Et])+rt+wi,Ye[1]=parseFloat(Ye[1])+rt+wi,dd(Ye)}},N.disable=function(rt,Et){if(N.enabled&&(rt!==!1&&N.revert(!0,!0),N.enabled=N.isActive=!1,Et||Bt&&Bt.pause(),Xn=0,pt&&(pt.uncache=1),J&&Ai(i,"refreshInit",J),zi&&(zi.pause(),ot.tween&&ot.tween.kill()&&(ot.tween=0)),!q)){for(var bt=Vt.length;bt--;)if(Vt[bt].scroller===I&&Vt[bt]!==N)return;Ai(I,"resize",Nf),q||Ai(I,"scroll",Ku)}},N.kill=function(rt,Et){N.disable(rt,Et),Bt&&!Et&&Bt.kill(),l&&delete _C[l];var bt=Vt.indexOf(N);bt>=0&&Vt.splice(bt,1),bt===_n&&Jb>0&&_n--,bt=0,Vt.forEach(function(Pt){return Pt.scroller===N.scroller&&(bt=1)}),bt||xn||(N.scroll.rec=0),s&&(s.scrollTrigger=null,rt&&s.revert({kill:!1}),Et||s.kill()),$t&&[$t,fe,X,ue].forEach(function(Pt){return Pt.parentNode&&Pt.parentNode.removeChild(Pt)}),up===N&&(up=0),p&&(pt&&(pt.uncache=1),bt=0,Vt.forEach(function(Pt){return Pt.pin===p&&bt++}),bt||(pt.spacer=0)),n.onKill&&n.onKill(N)},Vt.push(N),N.enable(!1,!1),Us&&Us(N),s&&s.add&&!Ut){var Rt=N.update;N.update=function(){N.update=Rt,Ht.cache++,gt||ct||N.refresh()},dt.delayedCall(.01,N.update),Ut=.01,gt=ct=0}else N.refresh();p&&qY()},i.register=function(n){return Ju||(dt=n||TN(),SN()&&window.document&&i.enable(),Ju=Df),Ju},i.defaults=function(n){if(n)for(var s in n)pb[s]=n[s];return pb},i.disable=function(n,s){Df=0,Vt.forEach(function(o){return o[s?"kill":"disable"](n)}),Ai(qt,"wheel",Ku),Ai(Te,"scroll",Ku),clearInterval(cb),Ai(Te,"touchcancel",kr),Ai(le,"touchstart",kr),hb(Ai,Te,"pointerdown,touchstart,mousedown",dI),hb(Ai,Te,"pointerup,touchend,mouseup",hI),Xy.kill(),db(Ai);for(var r=0;r<Ht.length;r+=3)fb(Ai,Ht[r],Ht[r+1]),fb(Ai,Ht[r],Ht[r+2])},i.enable=function(){if(qt=window,Te=document,ds=Te.documentElement,le=Te.body,dt&&(Mp=dt.utils.toArray,rp=dt.utils.clamp,vC=dt.core.context||kr,DE=dt.core.suppressOverwrites||kr,OO=qt.history.scrollRestoration||"auto",xC=qt.pageYOffset||0,dt.core.globals("ScrollTrigger",i),le)){Df=1,ud=document.createElement("div"),ud.style.height="100vh",ud.style.position="absolute",LN(),DY(),ci.register(dt),i.isTouch=ci.isTouch,va=ci.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),yC=ci.isTouch===1,$i(qt,"wheel",Ku),MO=[qt,Te,ds,le],dt.matchMedia?(i.matchMedia=function(c){var u=dt.matchMedia(),d;for(d in c)u.add(d,c[d]);return u},dt.addEventListener("matchMediaInit",function(){return FO()}),dt.addEventListener("matchMediaRevert",function(){return ON()}),dt.addEventListener("matchMedia",function(){dc(0,1),Au("matchMedia")}),dt.matchMedia().add("(orientation: portrait)",function(){return BE(),BE})):console.warn("Requires GSAP 3.11.0 or later"),BE(),$i(Te,"scroll",Ku);var n=le.hasAttribute("style"),s=le.style,r=s.borderTopStyle,o=dt.core.Animation.prototype,a,l;for(o.revert||Object.defineProperty(o,"revert",{value:function(){return this.time(-.01,!0)}}),s.borderTopStyle="solid",a=Yo(le),_i.m=Math.round(a.top+_i.sc())||0,Tn.m=Math.round(a.left+Tn.sc())||0,r?s.borderTopStyle=r:s.removeProperty("border-top-style"),n||(le.setAttribute("style",""),le.removeAttribute("style")),cb=setInterval(gI,250),dt.delayedCall(.5,function(){return ub=0}),$i(Te,"touchcancel",kr),$i(le,"touchstart",kr),hb($i,Te,"pointerdown,touchstart,mousedown",dI),hb($i,Te,"pointerup,touchend,mouseup",hI),bC=dt.utils.checkPrefix("transform"),Zb.push(bC),Ju=Ji(),Xy=dt.delayedCall(.2,dc).pause(),Zu=[Te,"visibilitychange",function(){var c=qt.innerWidth,u=qt.innerHeight;Te.hidden?(aI=c,lI=u):(aI!==c||lI!==u)&&Nf()},Te,"DOMContentLoaded",dc,qt,"load",dc,qt,"resize",Nf],db($i),Vt.forEach(function(c){return c.enable(0,1)}),l=0;l<Ht.length;l+=3)fb(Ai,Ht[l],Ht[l+1]),fb(Ai,Ht[l],Ht[l+2])}},i.config=function(n){"limitCallbacks"in n&&(RE=!!n.limitCallbacks);var s=n.syncInterval;s&&clearInterval(cb)||(cb=s)&&setInterval(gI,s),"ignoreMobileResize"in n&&(yC=i.isTouch===1&&n.ignoreMobileResize),"autoRefreshEvents"in n&&(db(Ai)||db($i,n.autoRefreshEvents||"none"),wN=(n.autoRefreshEvents+"").indexOf("resize")===-1)},i.scrollerProxy=function(n,s){var r=zn(n),o=Ht.indexOf(r),a=Pu(r);~o&&Ht.splice(o,a?6:2),s&&(a?Yr.unshift(qt,s,le,s,ds,s):Yr.unshift(r,s))},i.clearMatchMedia=function(n){Vt.forEach(function(s){return s._ctx&&s._ctx.query===n&&s._ctx.kill(!0,!0)})},i.isInViewport=function(n,s,r){var o=(os(n)?zn(n):n).getBoundingClientRect(),a=o[r?mu:bu]*s||0;return r?o.right-a>0&&o.left+a<qt.innerWidth:o.bottom-a>0&&o.top+a<qt.innerHeight},i.positionInViewport=function(n,s,r){os(n)&&(n=zn(n));var o=n.getBoundingClientRect(),a=o[r?mu:bu],l=s==null?a/2:s in Zy?Zy[s]*a:~s.indexOf("%")?parseFloat(s)*a/100:parseFloat(s)||0;return r?(o.left+l)/qt.innerWidth:(o.top+l)/qt.innerHeight},i.killAll=function(n){if(Vt.slice(0).forEach(function(r){return r.vars.id!=="ScrollSmoother"&&r.kill()}),n!==!0){var s=Cu.killAll||[];Cu={},s.forEach(function(r){return r()})}},i}();Wt.version="3.12.7";Wt.saveStyles=function(i){return i?Mp(i).forEach(function(e){if(e&&e.style){var t=rs.indexOf(e);t>=0&&rs.splice(t,5),rs.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),dt.core.getCache(e),vC())}}):rs};Wt.revert=function(i,e){return FO(!i,e)};Wt.create=function(i,e){return new Wt(i,e)};Wt.refresh=function(i){return i?Nf(!0):(Ju||Wt.register())&&dc(!0)};Wt.update=function(i){return++Ht.cache&&ta(i===!0?2:0)};Wt.clearScrollMemory=$N;Wt.maxScroll=function(i,e){return jr(i,e?Tn:_i)};Wt.getScrollFunc=function(i,e){return Tl(zn(i),e?Tn:_i)};Wt.getById=function(i){return _C[i]};Wt.getAll=function(){return Vt.filter(function(i){return i.vars.id!=="ScrollSmoother"})};Wt.isScrolling=function(){return!!Vs};Wt.snapDirectional=RO;Wt.addEventListener=function(i,e){var t=Cu[i]||(Cu[i]=[]);~t.indexOf(e)||t.push(e)};Wt.removeEventListener=function(i,e){var t=Cu[i],n=t&&t.indexOf(e);n>=0&&t.splice(n,1)};Wt.batch=function(i,e){var t=[],n={},s=e.interval||.016,r=e.batchMax||1e9,o=function(c,u){var d=[],h=[],p=dt.delayedCall(s,function(){u(d,h),d=[],h=[]}).pause();return function(m){d.length||p.restart(!0),d.push(m.trigger),h.push(m),r<=d.length&&p.progress(1)}},a;for(a in e)n[a]=a.substr(0,2)==="on"&&tn(e[a])&&a!=="onRefreshInit"?o(a,e[a]):e[a];return tn(r)&&(r=r(),$i(Wt,"refresh",function(){return r=e.batchMax()})),Mp(i).forEach(function(l){var c={};for(a in n)c[a]=n[a];c.trigger=l,t.push(Wt.create(c))}),t};var _I=function(e,t,n,s){return t>s?e(s):t<0&&e(0),n>s?(s-t)/(n-t):n<0?t/(t-n):1},VE=function i(e,t){t===!0?e.style.removeProperty("touch-action"):e.style.touchAction=t===!0?"auto":t?"pan-"+t+(ci.isTouch?" pinch-zoom":""):"none",e===ds&&i(le,t)},yb={auto:1,scroll:1},GY=function(e){var t=e.event,n=e.target,s=e.axis,r=(t.changedTouches?t.changedTouches[0]:t).target,o=r._gsap||dt.core.getCache(r),a=Ji(),l;if(!o._isScrollT||a-o._isScrollT>2e3){for(;r&&r!==le&&(r.scrollHeight<=r.clientHeight&&r.scrollWidth<=r.clientWidth||!(yb[(l=Ds(r)).overflowY]||yb[l.overflowX]));)r=r.parentNode;o._isScroll=r&&r!==n&&!Pu(r)&&(yb[(l=Ds(r)).overflowY]||yb[l.overflowX]),o._isScrollT=a}(o._isScroll||s==="x")&&(t.stopPropagation(),t._gsapAllow=!0)},DN=function(e,t,n,s){return ci.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:s=s&&GY,onPress:s,onDrag:s,onScroll:s,onEnable:function(){return n&&$i(Te,ci.eventTypes[0],SI,!1,!0)},onDisable:function(){return Ai(Te,ci.eventTypes[0],SI,!0)}})},YY=/(input|label|select|textarea)/i,xI,SI=function(e){var t=YY.test(e.target.tagName);(t||xI)&&(e._gsapAllow=!0,xI=t)},KY=function(e){ec(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 t=e,n=t.normalizeScrollX,s=t.momentum,r=t.allowNestedScroll,o=t.onRelease,a,l,c=zn(e.target)||ds,u=dt.core.globals().ScrollSmoother,d=u&&u.get(),h=va&&(e.content&&zn(e.content)||d&&e.content!==!1&&!d.smooth()&&d.content()),p=Tl(c,_i),m=Tl(c,Tn),g=1,v=(ci.isTouch&&qt.visualViewport?qt.visualViewport.scale*qt.visualViewport.width:qt.outerWidth)/qt.innerWidth,w=0,_=tn(s)?function(){return s(a)}:function(){return s||2.8},x,k,S=DN(c,e.type,!0,r),T=function(){return k=!1},E=kr,M=kr,A=function(){l=jr(c,_i),M=rp(va?1:0,l),n&&(E=rp(0,jr(c,Tn))),x=yu},P=function(){h._gsap.y=Rf(parseFloat(h._gsap.y)+p.offset)+"px",h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(h._gsap.y)+", 0, 1)",p.offset=p.cacheID=0},L=function(){if(k){requestAnimationFrame(T);var B=Rf(a.deltaY/2),K=M(p.v-B);if(h&&K!==p.v+p.offset){p.offset=K-p.v;var N=Rf((parseFloat(h&&h._gsap.y)||0)-p.offset);h.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+N+", 0, 1)",h._gsap.y=N+"px",p.cacheID=Ht.cache,ta()}return!0}p.offset&&P(),k=!0},I,z,q,H,j=function(){A(),I.isActive()&&I.vars.scrollY>l&&(p()>l?I.progress(1)&&p(l):I.resetTo("scrollY",l))};return h&&dt.set(h,{y:"+=0"}),e.ignoreCheck=function($){return va&&$.type==="touchmove"&&L()||g>1.05&&$.type!=="touchstart"||a.isGesturing||$.touches&&$.touches.length>1},e.onPress=function(){k=!1;var $=g;
50g=Rf((qt.visualViewport&&qt.visualViewport.scale||1)/v),I.pause(),$!==g&&VE(c,g>1.01?!0:n?!1:"x"),z=m(),q=p(),A(),x=yu},e.onRelease=e.onGestureStart=function($,B){if(p.offset&&P(),!B)H.restart(!0);else{Ht.cache++;var K=_(),N,J;n&&(N=m(),J=N+K*.05*-$.velocityX/.227,K*=_I(m,N,J,jr(c,Tn)),I.vars.scrollX=E(J)),N=p(),J=N+K*.05*-$.velocityY/.227,K*=_I(p,N,J,jr(c,_i)),I.vars.scrollY=M(J),I.invalidate().duration(K).play(.01),(va&&I.vars.scrollY>=l||N>=l-1)&&dt.to({},{onUpdate:j,duration:K})}o&&o($)},e.onWheel=function(){I._ts&&I.pause(),Ji()-w>1e3&&(x=0,w=Ji())},e.onChange=function($,B,K,N,J){if(yu!==x&&A(),B&&n&&m(E(N[2]===B?z+($.startX-$.x):m()+B-N[1])),K){p.offset&&P();var et=J[2]===K,Z=et?q+$.startY-$.y:p()+K-J[1],U=M(Z);et&&Z!==U&&(q+=U-Z),p(U)}(K||B)&&ta()},e.onEnable=function(){VE(c,n?!1:"x"),Wt.addEventListener("refresh",j),$i(qt,"resize",j),p.smooth&&(p.target.style.scrollBehavior="auto",p.smooth=m.smooth=!1),S.enable()},e.onDisable=function(){VE(c,!0),Ai(qt,"resize",j),Wt.removeEventListener("refresh",j),S.kill()},e.lockAxis=e.lockAxis!==!1,a=new ci(e),a.iOS=va,va&&!p()&&p(1),va&&dt.ticker.add(kr),H=a._dc,I=dt.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:n?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:IN(p,p(),function(){return I.pause()})},onUpdate:ta,onComplete:H.vars.onComplete}),a};Wt.sort=function(i){if(tn(i))return Vt.sort(i);var e=qt.pageYOffset||0;return Wt.getAll().forEach(function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+qt.innerHeight}),Vt.sort(i||function(t,n){return(t.vars.refreshPriority||0)*-1e6+(t.vars.containerAnimation?1e6:t._sortY)-((n.vars.containerAnimation?1e6:n._sortY)+(n.vars.refreshPriority||0)*-1e6)})};Wt.observe=function(i){return new ci(i)};Wt.normalizeScroll=function(i){if(typeof i>"u")return wn;if(i===!0&&wn)return wn.enable();if(i===!1){wn&&wn.kill(),wn=i;return}var e=i instanceof ci?i:KY(i);return wn&&wn.target===e.target&&wn.kill(),Pu(e.target)&&(wn=e),e};Wt.core={_getVelocityProp:mC,_inputObserver:DN,_scrollers:Ht,_proxies:Yr,bridge:{ss:function(){Vs||Au("scrollStart"),Vs=Ji()},ref:function(){return Xi}}};TN()&&dt.registerPlugin(Wt);var TC=on.registerPlugin(AO)||on;TC.core.Tween;class XY extends Fk.Transition{out({from:e,done:t}){TC.fromTo(e,.5,{opacity:1},{opacity:0,onComplete:t})}in({from:e,to:t,done:n}){window.scrollTo(0,0),e.remove(),TC.fromTo(t,.5,{opacity:0},{opacity:1,onComplete:n})}}var hd=on.registerPlugin(AO)||on;hd.core.Tween;class QY extends Fk.Transition{out({from:e,trigger:t,done:n}){const s=e.querySelectorAll("[data-facets]");let r=[];s.forEach(o=>{const a=o.dataset.facetsEffect,l=o.querySelectorAll("[data-facets-content] a, [data-facets-content] button, [data-facets-content] label");if(a=="loading"){const c=hd.timeline({defaults:{duration:.2},onComplete:()=>{}});c.to(o.querySelector("[data-facets-placeholder]"),{opacity:1}),c.to(o.querySelector("[data-facets-content]"),{opacity:0},"<"),r.push(c)}if(a=="disabled"){const c=hd.timeline({defaults:{duration:.2}});c.set(o.querySelector("[data-facets-content]"),{cursor:"wait"},"<"),l.length&&c.set(l,{pointerEvents:"none"}),c.to(o.querySelectorAll("[data-facets-content]"),{opacity:.5},"<"),r.push(c)}}),Promise.all(r).then(()=>n())}in({from:e,to:t,trigger:n,done:s}){const r=e.querySelectorAll("[data-facets]"),o=t.querySelectorAll("[data-facets]");let a=[];r.forEach(l=>{const c=l.dataset.facetsEffect,u=Array.from(o).find(d=>d.dataset.facets===l.dataset.facets);if(u&&(window.Alpine.morph(l.querySelector("[data-facets-content]"),u.querySelector("[data-facets-content]")),l.querySelectorAll('input[type="checkbox"]').forEach(d=>{d.checked=d.hasAttribute("checked")}),l.querySelectorAll('input[type="text"], input[type="search"]').forEach(d=>{d.value=d.getAttribute("value")||""})),c=="loading"){const d=hd.timeline({defaults:{duration:.2}});d.to(l.querySelector("[data-facets-content]"),{opacity:1}),d.to(l.querySelector("[data-facets-placeholder]"),{opacity:0},"<"),a.push(d)}t.remove()}),Promise.all(a).then(()=>s())}}function TI(i){return i!==null&&typeof i=="object"&&"constructor"in i&&i.constructor===Object}function NO(i,e){i===void 0&&(i={}),e===void 0&&(e={});const t=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>
vendor: 6,920 bytes, line 50
50t.indexOf(n)<0).forEach(n=>{typeof i[n]>"u"?i[n]=e[n]:TI(e[n])&&TI(i[n])&&Object.keys(e[n]).length>0&&NO(i[n],e[n])})}const RN={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 aa(){const i=typeof document<"u"?document:{};return NO(i,RN),i}const JY={document:RN,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(i){return typeof setTimeout>"u"?(i(),null):setTimeout(i,0)},cancelAnimationFrame(i){typeof setTimeout>"u"||clearTimeout(i)}};function En(){const i=typeof window<"u"?window:{};return NO(i,JY),i}function ZY(i){return i===void 0&&(i=""),i.trim().split(" ").filter(e=>!!e.trim())}function tK(i){const e=i;Object.keys(e).forEach(t=>{try{e[t]=null}catch{}try{delete e[t]}catch{}})}function kC(i,e){return e===void 0&&(e=0),setTimeout(i,e)}function tv(){return Date.now()}function eK(i){const e=En();let t;return e.getComputedStyle&&(t=e.getComputedStyle(i,null)),!t&&i.currentStyle&&(t=i.currentStyle),t||(t=i.style),t}function iK(i,e){e===void 0&&(e="x");const t=En();let n,s,r;const o=eK(i);return t.WebKitCSSMatrix?(s=o.transform||o.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(a=>a.replace(",",".")).join(", ")),r=new t.WebKitCSSMatrix(s==="none"?"":s)):(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=r.toString().split(",")),e==="x"&&(t.WebKitCSSMatrix?s=r.m41:n.length===16?s=parseFloat(n[12]):s=parseFloat(n[4])),e==="y"&&(t.WebKitCSSMatrix?s=r.m42:n.length===16?s=parseFloat(n[13]):s=parseFloat(n[5])),s||0}function vb(i){return typeof i=="object"&&i!==null&&i.constructor&&Object.prototype.toString.call(i).slice(8,-1)==="Object"}function nK(i){return typeof window<"u"&&typeof window.HTMLElement<"u"?i instanceof HTMLElement:i&&(i.nodeType===1||i.nodeType===11)}function cs(){const i=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let t=1;t<arguments.length;t+=1){const n=t<0||arguments.length<=t?void 0:arguments[t];if(n!=null&&!nK(n)){const s=Object.keys(Object(n)).filter(r=>e.indexOf(r)<0);for(let r=0,o=s.length;r<o;r+=1){const a=s[r],l=Object.getOwnPropertyDescriptor(n,a);l!==void 0&&l.enumerable&&(vb(i[a])&&vb(n[a])?n[a].__swiper__?i[a]=n[a]:cs(i[a],n[a]):!vb(i[a])&&vb(n[a])?(i[a]={},n[a].__swiper__?i[a]=n[a]:cs(i[a],n[a])):i[a]=n[a])}}}return i}function wb(i,e,t){i.style.setProperty(e,t)}function FN(i){let{swiper:e,targetPosition:t,side:n}=i;const s=En(),r=-e.translate;let o=null,a;const l=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const c=t>r?"next":"prev",u=(h,p)=>c==="next"&&h>=p||c==="prev"&&h<=p,d=()=>{a=new Date().getTime(),o===null&&(o=a);const h=Math.max(Math.min((a-o)/l,1),0),p=.5-Math.cos(h*Math.PI)/2;let m=r+p*(t-r);if(u(m,t)&&(m=t),e.wrapperEl.scrollTo({[n]:m}),u(m,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:m})}),s.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=s.requestAnimationFrame(d)};d()}function Ur(i,e){e===void 0&&(e="");const t=En(),n=[...i.children];return t.HTMLSlotElement&&i instanceof HTMLSlotElement&&n.push(...i.assignedElements()),e?n.filter(s=>s.matches(e)):n}function sK(i,e){const t=[e];for(;t.length>0;){const n=t.shift();if(i===n)return!0;t.push(...n.children,...n.shadowRoot?n.shadowRoot.children:[],...n.assignedElements?n.assignedElements():[])}}function rK(i,e){const t=En();let n=e.contains(i);return!n&&t.HTMLSlotElement&&e instanceof HTMLSlotElement&&(n=[...e.assignedElements()].includes(i),n||(n=sK(i,e))),n}function ev(i){try{console.warn(i);return}catch{}}function $p(i,e){e===void 0&&(e=[]);const t=document.createElement(i);return t.classList.add(...Array.isArray(e)?e:ZY(e)),t}function oK(i,e){const t=[];for(;i.previousElementSibling;){const n=i.previousElementSibling;e?n.matches(e)&&t.push(n):t.push(n),i=n}return t}function aK(i,e){const t=[];for(;i.nextElementSibling;){const n=i.nextElementSibling;e?n.matches(e)&&t.push(n):t.push(n),i=n}return t}function ul(i,e){return En().getComputedStyle(i,null).getPropertyValue(e)}function EC(i){let e=i,t;if(e){for(t=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(t+=1);return t}}function lK(i,e){const t=[];let n=i.parentElement;for(;n;)e?n.matches(e)&&t.push(n):t.push(n),n=n.parentElement;return t}function kI(i,e,t){const n=En();return t?i[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(i,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(i,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):i.offsetWidth}function we(i){return(Array.isArray(i)?i:[i]).filter(e=>!!e)}let qE;function cK(){const i=En(),e=aa();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in i||i.DocumentTouch&&e instanceof i.DocumentTouch)}}function NN(){return qE||(qE=cK()),qE}let HE;function uK(i){let{userAgent:e}=i===void 0?{}:i;const t=NN(),n=En(),s=n.navigator.platform,r=e||n.navigator.userAgent,o={ios:!1,android:!1},a=n.screen.width,l=n.screen.height,c=r.match(/(Android);?[\s\/]+([\d.]+)?/);let u=r.match(/(iPad).*OS\s([\d_]+)/);const d=r.match(/(iPod)(.*OS\s([\d_]+))?/),h=!u&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=s==="Win32";let m=s==="MacIntel";const g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&m&&t.touch&&g.indexOf(`${a}x${l}`)>=0&&(u=r.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),m=!1),c&&!p&&(o.os="android",o.android=!0),(u||h||d)&&(o.os="ios",o.ios=!0),o}function BN(i){return i===void 0&&(i={}),HE||(HE=uK(i)),HE}let WE;function dK(){const i=En(),e=BN();let t=!1;function n(){const a=i.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(n()){const a=String(i.navigator.userAgent);if(a.includes("Version/")){const[l,c]=a.split("Version/")[1].split(" ")[0].split(".").map(u=>Number(u));t=l<16||l===16&&c<2}}
vendor: 4,916 bytes, line 50
50const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(i.navigator.userAgent),r=n(),o=r||s&&e.ios;return{isSafari:t||r,needPerspectiveFix:t,need3dFix:o,isWebView:s}}function zN(){return WE||(WE=dK()),WE}function hK(i){let{swiper:e,on:t,emit:n}=i;const s=En();let r=null,o=null;const a=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(r=new ResizeObserver(d=>{o=s.requestAnimationFrame(()=>{const{width:h,height:p}=e;let m=h,g=p;d.forEach(v=>{let{contentBoxSize:w,contentRect:_,target:x}=v;x&&x!==e.el||(m=_?_.width:(w[0]||w).inlineSize,g=_?_.height:(w[0]||w).blockSize)}),(m!==h||g!==p)&&a()})}),r.observe(e.el))},c=()=>{o&&s.cancelAnimationFrame(o),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null)},u=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof s.ResizeObserver<"u"){l();return}s.addEventListener("resize",a),s.addEventListener("orientationchange",u)}),t("destroy",()=>{c(),s.removeEventListener("resize",a),s.removeEventListener("orientationchange",u)})}function fK(i){let{swiper:e,extendParams:t,on:n,emit:s}=i;const r=[],o=En(),a=function(u,d){d===void 0&&(d={});const h=o.MutationObserver||o.WebkitMutationObserver,p=new h(m=>{if(e.__preventObserver__)return;if(m.length===1){s("observerUpdate",m[0]);return}const g=function(){s("observerUpdate",m[0])};o.requestAnimationFrame?o.requestAnimationFrame(g):o.setTimeout(g,0)});p.observe(u,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:e.isElement||(typeof d.childList>"u"?!0:d).childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),r.push(p)},l=()=>{if(e.params.observer){if(e.params.observeParents){const u=lK(e.hostEl);for(let d=0;d<u.length;d+=1)a(u[d])}a(e.hostEl,{childList:e.params.observeSlideChildren}),a(e.wrapperEl,{attributes:!1})}},c=()=>{r.forEach(u=>{u.disconnect()}),r.splice(0,r.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",l),n("destroy",c)}var pK={on(i,e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const s=t?"unshift":"push";return i.split(" ").forEach(r=>{n.eventsListeners[r]||(n.eventsListeners[r]=[]),n.eventsListeners[r][s](e)}),n},once(i,e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function s(){n.off(i,s),s.__emitterProxy&&delete s.__emitterProxy;for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];e.apply(n,o)}return s.__emitterProxy=e,n.on(i,s,t)},onAny(i,e){const t=this;if(!t.eventsListeners||t.destroyed||typeof i!="function")return t;const n=e?"unshift":"push";return t.eventsAnyListeners.indexOf(i)<0&&t.eventsAnyListeners[n](i),t},offAny(i){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const t=e.eventsAnyListeners.indexOf(i);return t>=0&&e.eventsAnyListeners.splice(t,1),e},off(i,e){const t=this;return!t.eventsListeners||t.destroyed||!t.eventsListeners||i.split(" ").forEach(n=>{typeof e>"u"?t.eventsListeners[n]=[]:t.eventsListeners[n]&&t.eventsListeners[n].forEach((s,r)=>{(s===e||s.__emitterProxy&&s.__emitterProxy===e)&&t.eventsListeners[n].splice(r,1)})}),t},emit(){const i=this;if(!i.eventsListeners||i.destroyed||!i.eventsListeners)return i;let e,t,n;for(var s=arguments.length,r=new Array(s),o=0;o<s;o++)r[o]=arguments[o];return typeof r[0]=="string"||Array.isArray(r[0])?(e=r[0],t=r.slice(1,r.length),n=i):(e=r[0].events,t=r[0].data,n=r[0].context||i),t.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(l=>{i.eventsAnyListeners&&i.eventsAnyListeners.length&&i.eventsAnyListeners.forEach(c=>{c.apply(n,[l,...t])}),i.eventsListeners&&i.eventsListeners[l]&&i.eventsListeners[l].forEach(c=>{c.apply(n,t)})}),i}};function gK(){const i=this;let e,t;const n=i.el;typeof i.params.width<"u"&&i.params.width!==null?e=i.params.width:e=n.clientWidth,typeof i.params.height<"u"&&i.params.height!==null?t=i.params.height:t=n.clientHeight,!(e===0&&i.isHorizontal()||t===0&&i.isVertical())&&(e=e-parseInt(ul(n,"padding-left")||0,10)-parseInt(ul(n,"padding-right")||0,10),t=t-parseInt(ul(n,"padding-top")||0,10)-parseInt(ul(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(i,{width:e,height:t,size:i.isHorizontal()?e:t}))}function mK(){const i=this;function e(P,L){return parseFloat(P.getPropertyValue(i.getDirectionLabel(L))||0)}const t=i.params,{wrapperEl:n,slidesEl:s,size:r,rtlTranslate:o,wrongRTL:a}=i,l=i.virtual&&t.virtual.enabled,c=l?i.virtual.slides.length:i.slides.length,u=Ur(s,`.${i.params.slideClass}, swiper-slide`),d=l?i.virtual.slides.length:u.length;let h=[];const p=[],m=[];let g=t.slidesOffsetBefore;typeof g=="function"&&(g=t.slidesOffsetBefore.call(i));let v=t.slidesOffsetAfter;typeof v=="function"&&(v=t.slidesOffsetAfter.call(i));const w=i.snapGrid.length,_=i.slidesGrid.length;let x=t.spaceBetween,k=-g,S=0,T=0;if(typeof r>"u")return;
50typeof x=="string"&&x.indexOf("%")>=0?x=parseFloat(x.replace("%",""))/100*r:typeof x=="string"&&(x=parseFloat(x)),i.virtualSize=-x,u.forEach(P=>{o?P.style.marginLeft="":P.style.marginRight="",P.style.marginBottom="",P.style.marginTop=""}),t.centeredSlides&&t.cssMode&&(wb(n,"--swiper-centered-offset-before",""),wb(n,"--swiper-centered-offset-after",""));const E=t.grid&&t.grid.rows>1&&i.grid;E?i.grid.initSlides(u):i.grid&&i.grid.unsetSlides();let M;const A=t.slidesPerView==="auto"&&t.breakpoints&&Object.keys(t.breakpoints).filter(P=>typeof t.breakpoints[P].slidesPerView<"u").length>0;for(let P=0;P<d;P+=1){M=0;let L;if(u[P]&&(L=u[P]),E&&i.grid.updateSlide(P,L,u),!(u[P]&&ul(L,"display")==="none")){if(t.slidesPerView==="auto"){A&&(u[P].style[i.getDirectionLabel("width")]="");const I=getComputedStyle(L),z=L.style.transform,q=L.style.webkitTransform;if(z&&(L.style.transform="none"),q&&(L.style.webkitTransform="none"),t.roundLengths)M=i.isHorizontal()?kI(L,"width",!0):kI(L,"height",!0);else{const H=e(I,"width"),j=e(I,"padding-left"),$=e(I,"padding-right"),B=e(I,"margin-left"),K=e(I,"margin-right"),N=I.getPropertyValue("box-sizing");if(N&&N==="border-box")M=H+B+K;else{const{clientWidth:J,offsetWidth:et}=L;M=H+j+$+B+K+(et-J)}}z&&(L.style.transform=z),q&&(L.style.webkitTransform=q),t.roundLengths&&(M=Math.floor(M))}else M=(r-(t.slidesPerView-1)*x)/t.slidesPerView,t.roundLengths&&(M=Math.floor(M)),u[P]&&(u[P].style[i.getDirectionLabel("width")]=`${M}px`);u[P]&&(u[P].swiperSlideSize=M),m.push(M),t.centeredSlides?(k=k+M/2+S/2+x,S===0&&P!==0&&(k=k-r/2-x),P===0&&(k=k-r/2-x),Math.abs(k)<1/1e3&&(k=0),t.roundLengths&&(k=Math.floor(k)),T%t.slidesPerGroup===0&&h.push(k),p.push(k)):(t.roundLengths&&(k=Math.floor(k)),(T-Math.min(i.params.slidesPerGroupSkip,T))%i.params.slidesPerGroup===0&&h.push(k),p.push(k),k=k+M+x),i.virtualSize+=M+x,S=M,T+=1}}if(i.virtualSize=Math.max(i.virtualSize,r)+v,o&&a&&(t.effect==="slide"||t.effect==="coverflow")&&(n.style.width=`${i.virtualSize+x}px`),t.setWrapperSize&&(n.style[i.getDirectionLabel("width")]=`${i.virtualSize+x}px`),E&&i.grid.updateWrapperSize(M,h),!t.centeredSlides){const P=[];for(let L=0;L<h.length;L+=1){let I=h[L];t.roundLengths&&(I=Math.floor(I)),h[L]<=i.virtualSize-r&&P.push(I)}h=P,Math.floor(i.virtualSize-r)-Math.floor(h[h.length-1])>1&&h.push(i.virtualSize-r)}if(l&&t.loop){const P=m[0]+x;if(t.slidesPerGroup>1){const L=Math.ceil((i.virtual.slidesBefore+i.virtual.slidesAfter)/t.slidesPerGroup),I=P*t.slidesPerGroup;for(let z=0;z<L;z+=1)h.push(h[h.length-1]+I)}for(let L=0;L<i.virtual.slidesBefore+i.virtual.slidesAfter;L+=1)t.slidesPerGroup===1&&h.push(h[h.length-1]+P),p.push(p[p.length-1]+P),i.virtualSize+=P}if(h.length===0&&(h=[0]),x!==0){const P=i.isHorizontal()&&o?"marginLeft":i.getDirectionLabel("marginRight");u.filter((L,I)=>!t.cssMode||t.loop?!0:I!==u.length-1).forEach(L=>{L.style[P]=`${x}px`})}if(t.centeredSlides&&t.centeredSlidesBounds){let P=0;m.forEach(I=>{P+=I+(x||0)}),P-=x;const L=P>r?P-r:0;h=h.map(I=>I<=0?-g:I>L?L+v:I)}if(t.centerInsufficientSlides){let P=0;m.forEach(I=>{P+=I+(x||0)}),P-=x;const L=(t.slidesOffsetBefore||0)+(t.slidesOffsetAfter||0);if(P+L<r){const I=(r-P-L)/2;h.forEach((z,q)=>{h[q]=z-I}),p.forEach((z,q)=>{p[q]=z+I})}}if(Object.assign(i,{slides:u,snapGrid:h,slidesGrid:p,slidesSizesGrid:m}),t.centeredSlides&&t.cssMode&&!t.centeredSlidesBounds){wb(n,"--swiper-centered-offset-before",`${-h[0]}px`),wb(n,"--swiper-centered-offset-after",`${i.size/2-m[m.length-1]/2}px`);const P=-i.snapGrid[0],L=-i.slidesGrid[0];i.snapGrid=i.snapGrid.map(I=>I+P),i.slidesGrid=i.slidesGrid.map(I=>I+L)}if(d!==c&&i.emit("slidesLengthChange"),h.length!==w&&(i.params.watchOverflow&&i.checkOverflow(),i.emit("snapGridLengthChange")),p.length!==_&&i.emit("slidesGridLengthChange"),t.watchSlidesProgress&&i.updateSlidesOffset(),i.emit("slidesUpdated"),!l&&!t.cssMode&&(t.effect==="slide"||t.effect==="fade")){const P=`${t.containerModifierClass}backface-hidden`,L=i.el.classList.contains(P);d<=t.maxBackfaceHiddenSlides?L||i.el.classList.add(P):L&&i.el.classList.remove(P)}}function bK(i){const e=this,t=[],n=e.virtual&&e.params.virtual.enabled;let s=0,r;typeof i=="number"?e.setTransition(i):i===!0&&e.setTransition(e.params.speed);const o=a=>n?e.slides[e.getSlideIndexByData(a)]:e.slides[a];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>
vendor: 6,386 bytes, line 50
501)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(a=>{t.push(a)});else for(r=0;r<Math.ceil(e.params.slidesPerView);r+=1){const a=e.activeIndex+r;if(a>e.slides.length&&!n)break;t.push(o(a))}else t.push(o(e.activeIndex));for(r=0;r<t.length;r+=1)if(typeof t[r]<"u"){const a=t[r].offsetHeight;s=a>s?a:s}(s||s===0)&&(e.wrapperEl.style.height=`${s}px`)}function yK(){const i=this,e=i.slides,t=i.isElement?i.isHorizontal()?i.wrapperEl.offsetLeft:i.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(i.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-t-i.cssOverflowAdjustment()}const EI=(i,e,t)=>{e&&!i.classList.contains(t)?i.classList.add(t):!e&&i.classList.contains(t)&&i.classList.remove(t)};function vK(i){i===void 0&&(i=this&&this.translate||0);const e=this,t=e.params,{slides:n,rtlTranslate:s,snapGrid:r}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let o=-i;s&&(o=i),e.visibleSlidesIndexes=[],e.visibleSlides=[];let a=t.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*e.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l<n.length;l+=1){const c=n[l];let u=c.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(u-=n[0].swiperSlideOffset);const d=(o+(t.centeredSlides?e.minTranslate():0)-u)/(c.swiperSlideSize+a),h=(o-r[0]+(t.centeredSlides?e.minTranslate():0)-u)/(c.swiperSlideSize+a),p=-(o-u),m=p+e.slidesSizesGrid[l],g=p>=0&&p<=e.size-e.slidesSizesGrid[l],v=p>=0&&p<e.size-1||m>1&&m<=e.size||p<=0&&m>=e.size;v&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(l)),EI(c,v,t.slideVisibleClass),EI(c,g,t.slideFullyVisibleClass),c.progress=s?-d:d,c.originalProgress=s?-h:h}}function wK(i){const e=this;if(typeof i>"u"){const u=e.rtlTranslate?-1:1;i=e&&e.translate&&e.translate*u||0}const t=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:s,isBeginning:r,isEnd:o,progressLoop:a}=e;const l=r,c=o;if(n===0)s=0,r=!0,o=!0;else{s=(i-e.minTranslate())/n;const u=Math.abs(i-e.minTranslate())<1,d=Math.abs(i-e.maxTranslate())<1;r=u||s<=0,o=d||s>=1,u&&(s=0),d&&(s=1)}if(t.loop){const u=e.getSlideIndexByData(0),d=e.getSlideIndexByData(e.slides.length-1),h=e.slidesGrid[u],p=e.slidesGrid[d],m=e.slidesGrid[e.slidesGrid.length-1],g=Math.abs(i);g>=h?a=(g-h)/m:a=(g+m-p)/m,a>1&&(a-=1)}Object.assign(e,{progress:s,progressLoop:a,isBeginning:r,isEnd:o}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&e.updateSlidesProgress(i),r&&!l&&e.emit("reachBeginning toEdge"),o&&!c&&e.emit("reachEnd toEdge"),(l&&!r||c&&!o)&&e.emit("fromEdge"),e.emit("progress",s)}const jE=(i,e,t)=>{e&&!i.classList.contains(t)?i.classList.add(t):!e&&i.classList.contains(t)&&i.classList.remove(t)};function _K(){const i=this,{slides:e,params:t,slidesEl:n,activeIndex:s}=i,r=i.virtual&&t.virtual.enabled,o=i.grid&&t.grid&&t.grid.rows>1,a=d=>Ur(n,`.${t.slideClass}${d}, swiper-slide${d}`)[0];let l,c,u;if(r)if(t.loop){let d=s-i.virtual.slidesBefore;d<0&&(d=i.virtual.slides.length+d),d>=i.virtual.slides.length&&(d-=i.virtual.slides.length),l=a(`[data-swiper-slide-index="${d}"]`)}else l=a(`[data-swiper-slide-index="${s}"]`);else o?(l=e.find(d=>d.column===s),u=e.find(d=>d.column===s+1),c=e.find(d=>d.column===s-1)):l=e[s];l&&(o||(u=aK(l,`.${t.slideClass}, swiper-slide`)[0],t.loop&&!u&&(u=e[0]),c=oK(l,`.${t.slideClass}, swiper-slide`)[0],t.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(d=>{jE(d,d===l,t.slideActiveClass),jE(d,d===u,t.slideNextClass),jE(d,d===c,t.slidePrevClass)}),i.emitSlidesClasses()}const ey=(i,e)=>{if(!i||i.destroyed||!i.params)return;const t=()=>i.isElement?"swiper-slide":`.${i.params.slideClass}`,n=e.closest(t());if(n){let s=n.querySelector(`.${i.params.lazyPreloaderClass}`);!s&&i.isElement&&(n.shadowRoot?s=n.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(s=n.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`),s&&s.remove())})),s&&s.remove()}},UE=(i,e)=>{if(!i.slides[e])return;const t=i.slides[e].querySelector('[loading="lazy"]');t&&t.removeAttribute("loading")},PC=i=>{if(!i||i.destroyed||!i.params)return;let e=i.params.lazyPreloadPrevNext;const t=i.slides.length;if(!t||!e||e<0)return;e=Math.min(e,t);const n=i.params.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(i.params.slidesPerView),s=i.activeIndex;if(i.params.grid&&i.params.grid.rows>1){const o=s,a=[o-e];a.push(...Array.from({length:e}).map((l,c)=>o+n+c)),i.slides.forEach((l,c)=>{a.includes(l.column)&&UE(i,c)});return}const r=s+n-1;if(i.params.rewind||i.params.loop)for(let o=s-e;o<=r+e;o+=1){const a=(o%t+t)%t;(a<s||a>r)&&UE(i,a)}else for(let o=Math.max(s-e,0);o<=Math.min(r+e,t-1);o+=1)o!==s&&(o>r||o<s)&&UE(i,o)};function xK(i){const{slidesGrid:e,params:t}=i,n=i.rtlTranslate?i.translate:-i.translate;let s;for(let r=0;r<e.length;r+=1)typeof e[r+1]<"u"?n>=e[r]&&n<e[r+1]-(e[r+1]-e[r])/2?s=r:n>=e[r]&&n<e[r+1]&&(s=r+1):n>=e[r]&&(s=r);return t.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}function SK(i){const e=this,t=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:s,activeIndex:r,realIndex:o,snapIndex:a}=e;let l=i,c;const u=p=>{let m=p-e.virtual.slidesBefore;return m<0&&(m=e.virtual.slides.length+m),m>=e.virtual.slides.length&&(m-=e.virtual.slides.length),m};if(typeof l>"u"&&(l=xK(e)),n.indexOf(t)>=0)c=n.indexOf(t);else{const p=Math.min(s.slidesPerGroupSkip,l);c=p+Math.floor((l-p)/s.slidesPerGroup)}if(c>=n.length&&(c=n.length-1),l===r&&!e.params.loop){c!==a&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(l===r&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=u(l);return}const d=e.grid&&s.grid&&s.grid.rows>1;let h;if(e.virtual&&s.virtual.enabled&&s.loop)h=u(l);else if(d){const p=e.slides.find(g=>g.column===l);let m=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(m)&&(m=Math.max(e.slides.indexOf(p),0)),h=Math.floor(m/s.grid.rows)}else if(e.slides[l]){const p=e.slides[l].getAttribute("data-swiper-slide-index");p?h=parseInt(p,10):h=l}else h=l;Object.assign(e,{previousSnapIndex:a,snapIndex:c,previousRealIndex:o,realIndex:h,previousIndex:r,activeIndex:l}),e.initialized&&PC(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(o!==h&&e.emit("realIndexChange"),e.emit("slideChange"))}function TK(i,e){const t=this,n=t.params;let s=i.closest(`.${n.slideClass}, swiper-slide`);!s&&t.isElement&&e&&e.length>
501&&e.includes(i)&&[...e.slice(e.indexOf(i)+1,e.length)].forEach(a=>{!s&&a.matches&&a.matches(`.${n.slideClass}, swiper-slide`)&&(s=a)});let r=!1,o;if(s){for(let a=0;a<t.slides.length;a+=1)if(t.slides[a]===s){r=!0,o=a;break}}if(s&&r)t.clickedSlide=s,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=o;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}var kK={updateSize:gK,updateSlides:mK,updateAutoHeight:bK,updateSlidesOffset:yK,updateSlidesProgress:vK,updateProgress:wK,updateSlidesClasses:_K,updateActiveIndex:SK,updateClickedSlide:TK};function EK(i){i===void 0&&(i=this.isHorizontal()?"x":"y");const e=this,{params:t,rtlTranslate:n,translate:s,wrapperEl:r}=e;if(t.virtualTranslate)return n?-s:s;if(t.cssMode)return s;let o=iK(r,i);return o+=e.cssOverflowAdjustment(),n&&(o=-o),o||0}function PK(i,e){const t=this,{rtlTranslate:n,params:s,wrapperEl:r,progress:o}=t;let a=0,l=0;const c=0;t.isHorizontal()?a=n?-i:i:l=i,s.roundLengths&&(a=Math.floor(a),l=Math.floor(l)),t.previousTranslate=t.translate,t.translate=t.isHorizontal()?a:l,s.cssMode?r[t.isHorizontal()?"scrollLeft":"scrollTop"]=t.isHorizontal()?-a:-l:s.virtualTranslate||(t.isHorizontal()?a-=t.cssOverflowAdjustment():l-=t.cssOverflowAdjustment(),r.style.transform=`translate3d(${a}px, ${l}px, ${c}px)`);let u;const d=t.maxTranslate()-t.minTranslate();d===0?u=0:u=(i-t.minTranslate())/d,u!==o&&t.updateProgress(i),t.emit("setTranslate",t.translate,e)}function CK(){return-this.snapGrid[0]}function AK(){return-this.snapGrid[this.snapGrid.length-1]}function MK(i,e,t,n,s){i===void 0&&(i=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),n===void 0&&(n=!0);const r=this,{params:o,wrapperEl:a}=r;if(r.animating&&o.preventInteractionOnTransition)return!1;const l=r.minTranslate(),c=r.maxTranslate();let u;if(n&&i>l?u=l:n&&i<c?u=c:u=i,r.updateProgress(u),o.cssMode){const d=r.isHorizontal();if(e===0)a[d?"scrollLeft":"scrollTop"]=-u;else{if(!r.support.smoothScroll)return FN({swiper:r,targetPosition:-u,side:d?"left":"top"}),!0;a.scrollTo({[d?"left":"top"]:-u,behavior:"smooth"})}return!0}return e===0?(r.setTransition(0),r.setTranslate(u),t&&(r.emit("beforeTransitionStart",e,s),r.emit("transitionEnd"))):(r.setTransition(e),r.setTranslate(u),t&&(r.emit("beforeTransitionStart",e,s),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(h){!r||r.destroyed||h.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,t&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}var OK={getTranslate:EK,setTranslate:PK,minTranslate:CK,maxTranslate:AK,translateTo:MK};function $K(i,e){const t=this;t.params.cssMode||(t.wrapperEl.style.transitionDuration=`${i}ms`,t.wrapperEl.style.transitionDelay=i===0?"0ms":""),t.emit("setTransition",i,e)}function VN(i){let{swiper:e,runCallbacks:t,direction:n,step:s}=i;const{activeIndex:r,previousIndex:o}=e;let a=n;if(a||(r>o?a="next":r<o?a="prev":a="reset"),e.emit(`transition${s}`),t&&r!==o){if(a==="reset"){e.emit(`slideResetTransition${s}`);return}e.emit(`slideChangeTransition${s}`),a==="next"?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`)}}function LK(i,e){i===void 0&&(i=!0);const t=this,{params:n}=t;n.cssMode||(n.autoHeight&&t.updateAutoHeight(),VN({swiper:t,runCallbacks:i,direction:e,step:"Start"}))}function IK(i,e){i===void 0&&(i=!0);const t=this,{params:n}=t;t.animating=!1,!n.cssMode&&(t.setTransition(0),VN({swiper:t,runCallbacks:i,direction:e,step:"End"}))}var DK={setTransition:$K,transitionStart:LK,transitionEnd:IK};function RK(i,e,t,n,s){i===void 0&&(i=0),t===void 0&&(t=!0),typeof i=="string"&&(i=parseInt(i,10));const r=this;let o=i;o<0&&(o=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:h,wrapperEl:p,enabled:m}=r;if(!m&&!n&&!s||r.destroyed||r.animating&&a.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=r.params.speed);const g=Math.min(r.params.slidesPerGroupSkip,o);let v=g+Math.floor((o-g)/r.params.slidesPerGroup);v>=l.length&&(v=l.length-1);const w=-l[v];
vendor: 6,379 bytes, line 50
50if(a.normalizeSlideIndex)for(let E=0;E<c.length;E+=1){const M=-Math.floor(w*100),A=Math.floor(c[E]*100),P=Math.floor(c[E+1]*100);typeof c[E+1]<"u"?M>=A&&M<P-(P-A)/2?o=E:M>=A&&M<P&&(o=E+1):M>=A&&(o=E)}if(r.initialized&&o!==d&&(!r.allowSlideNext&&(h?w>r.translate&&w>r.minTranslate():w<r.translate&&w<r.minTranslate())||!r.allowSlidePrev&&w>r.translate&&w>r.maxTranslate()&&(d||0)!==o))return!1;o!==(u||0)&&t&&r.emit("beforeSlideChangeStart"),r.updateProgress(w);let _;o>d?_="next":o<d?_="prev":_="reset";const x=r.virtual&&r.params.virtual.enabled;if(!(x&&s)&&(h&&-w===r.translate||!h&&w===r.translate))return r.updateActiveIndex(o),a.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),a.effect!=="slide"&&r.setTranslate(w),_!=="reset"&&(r.transitionStart(t,_),r.transitionEnd(t,_)),!1;if(a.cssMode){const E=r.isHorizontal(),M=h?w:-w;if(e===0)x&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),x&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[E?"scrollLeft":"scrollTop"]=M})):p[E?"scrollLeft":"scrollTop"]=M,x&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1});else{if(!r.support.smoothScroll)return FN({swiper:r,targetPosition:M,side:E?"left":"top"}),!0;p.scrollTo({[E?"left":"top"]:M,behavior:"smooth"})}return!0}const T=zN().isSafari;return x&&!s&&T&&r.isElement&&r.virtual.update(!1,!1,o),r.setTransition(e),r.setTranslate(w),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,n),r.transitionStart(t,_),e===0?r.transitionEnd(t,_):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(M){!r||r.destroyed||M.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(t,_))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0}function FK(i,e,t,n){i===void 0&&(i=0),t===void 0&&(t=!0),typeof i=="string"&&(i=parseInt(i,10));const s=this;if(s.destroyed)return;typeof e>"u"&&(e=s.params.speed);const r=s.grid&&s.params.grid&&s.params.grid.rows>1;let o=i;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)o=o+s.virtual.slidesBefore;else{let a;if(r){const h=o*s.params.grid.rows;a=s.slides.find(p=>p.getAttribute("data-swiper-slide-index")*1===h).column}else a=s.getSlideIndexByData(o);const l=r?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:c}=s.params;let u=s.params.slidesPerView;u==="auto"?u=s.slidesPerViewDynamic():(u=Math.ceil(parseFloat(s.params.slidesPerView,10)),c&&u%2===0&&(u=u+1));let d=l-a<u;if(c&&(d=d||a<Math.ceil(u/2)),n&&c&&s.params.slidesPerView!=="auto"&&!r&&(d=!1),d){const h=c?a<s.activeIndex?"prev":"next":a-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?a+1:a-l+1,slideRealIndex:h==="next"?s.realIndex:void 0})}if(r){const h=o*s.params.grid.rows;o=s.slides.find(p=>p.getAttribute("data-swiper-slide-index")*1===h).column}else o=s.getSlideIndexByData(o)}return requestAnimationFrame(()=>{s.slideTo(o,e,t,n)}),s}function NK(i,e,t){e===void 0&&(e=!0);const n=this,{enabled:s,params:r,animating:o}=n;if(!s||n.destroyed)return n;typeof i>"u"&&(i=n.params.speed);let a=r.slidesPerGroup;r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(a=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex<r.slidesPerGroupSkip?1:a,c=n.virtual&&r.virtual.enabled;if(r.loop){if(o&&!c&&r.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&r.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+l,i,e,t)}),!0}return r.rewind&&n.isEnd?n.slideTo(0,i,e,t):n.slideTo(n.activeIndex+l,i,e,t)}function BK(i,e,t){e===void 0&&(e=!0);const n=this,{params:s,snapGrid:r,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=n;if(!l||n.destroyed)return n;typeof i>"u"&&(i=n.params.speed);const u=n.virtual&&s.virtual.enabled;if(s.loop){if(c&&!u&&s.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const d=a?n.translate:-n.translate;function h(_){return _<0?-Math.floor(Math.abs(_)):Math.floor(_)}const p=h(d),m=r.map(_=>h(_)),g=s.freeMode&&s.freeMode.enabled;let v=r[m.indexOf(p)-1];if(typeof v>"u"&&(s.cssMode||g)){let _;r.forEach((x,k)=>{p>=x&&(_=k)}),typeof _<"u"&&(v=g?r[_]:r[_>0?_-1:_])}let w=0;if(typeof v<"u"&&(w=o.indexOf(v),w<0&&(w=n.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(w=w-n.slidesPerViewDynamic("previous",!0)+1,w=Math.max(w,0))),s.rewind&&n.isBeginning){const _=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(_,i,e,t)}else if(s.loop&&n.activeIndex===0&&s.cssMode)return requestAnimationFrame(()=>{n.slideTo(w,i,e,t)}),!0;return n.slideTo(w,i,e,t)}function zK(i,e,t){e===void 0&&(e=!0);const n=this;if(!n.destroyed)return typeof i>"u"&&(i=n.params.speed),n.slideTo(n.activeIndex,i,e,t)}function VK(i,e,t,n){e===void 0&&(e=!0),n===void 0&&(n=.5);const s=this;if(s.destroyed)return;typeof i>"u"&&(i=s.params.speed);let r=s.activeIndex;const o=Math.min(s.params.slidesPerGroupSkip,r),a=o+Math.floor((r-o)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[a]){const c=s.snapGrid[a],u=s.snapGrid[a+1];l-c>(u-c)*n&&(r+=s.params.slidesPerGroup)}else{const c=s.snapGrid[a-1],u=s.snapGrid[a];l-c<=(u-c)*n&&(r-=s.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,s.slidesGrid.length-1),s.slideTo(r,i,e,t)}function qK(){const i=this;if(i.destroyed)return;const{params:e,slidesEl:t}=i,n=e.slidesPerView==="auto"?i.slidesPerViewDynamic():e.slidesPerView;let s=i.clickedIndex,r;const o=i.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(i.animating)return;r=parseInt(i.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?s<i.loopedSlides-n/2||s>i.slides.length-i.loopedSlides+n/2?(i.loopFix(),s=i.getSlideIndex(Ur(t,`${o}[data-swiper-slide-index="${r}"]`)[0]),kC(()=>{i.slideTo(s)})):i.slideTo(s):s>i.slides.length-n?(i.loopFix(),s=i.getSlideIndex(Ur(t,`${o}[data-swiper-slide-index="${r}"]`)[0]),kC(()=>{i.slideTo(s)})):i.slideTo(s)}else i.slideTo(s)}
50var HK={slideTo:RK,slideToLoop:FK,slideNext:NK,slidePrev:BK,slideReset:zK,slideToClosest:VK,slideToClickedSlide:qK};function WK(i){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;const s=()=>{Ur(n,`.${t.slideClass}, swiper-slide`).forEach((d,h)=>{d.setAttribute("data-swiper-slide-index",h)})},r=e.grid&&t.grid&&t.grid.rows>1,o=t.slidesPerGroup*(r?t.grid.rows:1),a=e.slides.length%o!==0,l=r&&e.slides.length%t.grid.rows!==0,c=u=>{for(let d=0;d<u;d+=1){const h=e.isElement?$p("swiper-slide",[t.slideBlankClass]):$p("div",[t.slideClass,t.slideBlankClass]);e.slidesEl.append(h)}};if(a){if(t.loopAddBlankSlides){const u=o-e.slides.length%o;c(u),e.recalcSlides(),e.updateSlides()}else ev("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)");s()}else if(l){if(t.loopAddBlankSlides){const u=t.grid.rows-e.slides.length%t.grid.rows;c(u),e.recalcSlides(),e.updateSlides()}else ev("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)");s()}else s();e.loopFix({slideRealIndex:i,direction:t.centeredSlides?void 0:"next"})}function jK(i){let{slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:s,activeSlideIndex:r,byController:o,byMousewheel:a}=i===void 0?{}:i;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:u,allowSlideNext:d,slidesEl:h,params:p}=l,{centeredSlides:m}=p;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&p.virtual.enabled){t&&(!p.centeredSlides&&l.snapIndex===0?l.slideTo(l.virtual.slides.length,0,!1,!0):p.centeredSlides&&l.snapIndex<p.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=d,l.emit("loopFix");return}let g=p.slidesPerView;g==="auto"?g=l.slidesPerViewDynamic():(g=Math.ceil(parseFloat(p.slidesPerView,10)),m&&g%2===0&&(g=g+1));const v=p.slidesPerGroupAuto?g:p.slidesPerGroup;let w=v;w%v!==0&&(w+=v-w%v),w+=p.loopAdditionalSlides,l.loopedSlides=w;const _=l.grid&&p.grid&&p.grid.rows>1;c.length<g+w?ev("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"):_&&p.grid.fill==="row"&&ev("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const x=[],k=[];let S=l.activeIndex;typeof r>"u"?r=l.getSlideIndex(c.find(z=>z.classList.contains(p.slideActiveClass))):S=r;const T=n==="next"||!n,E=n==="prev"||!n;let M=0,A=0;const P=_?Math.ceil(c.length/p.grid.rows):c.length,I=(_?c[r].column:r)+(m&&typeof s>"u"?-g/2+.5:0);if(I<w){M=Math.max(w-I,v);for(let z=0;z<w-I;z+=1){const q=z-Math.floor(z/P)*P;if(_){const H=P-q-1;for(let j=c.length-1;j>=0;j-=1)c[j].column===H&&x.push(j)}else x.push(P-q-1)}}else if(I+g>P-w){A=Math.max(I-(P-w*2),v);for(let z=0;z<A;z+=1){const q=z-Math.floor(z/P)*P;_?c.forEach((H,j)=>{H.column===q&&k.push(j)}):k.push(q)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),E&&x.forEach(z=>{c[z].swiperLoopMoveDOM=!0,h.prepend(c[z]),c[z].swiperLoopMoveDOM=!1}),T&&k.forEach(z=>{c[z].swiperLoopMoveDOM=!0,h.append(c[z]),c[z].swiperLoopMoveDOM=!1}),l.recalcSlides(),p.slidesPerView==="auto"?l.updateSlides():_&&(x.length>0&&E||k.length>0&&T)&&l.slides.forEach((z,q)=>{l.grid.updateSlide(q,z,l.slides)}),p.watchSlidesProgress&&l.updateSlidesOffset(),t){if(x.length>0&&E){if(typeof e>"u"){const z=l.slidesGrid[S],H=l.slidesGrid[S+M]-z;a?l.setTranslate(l.translate-H):(l.slideTo(S+Math.ceil(M),0,!1,!0),s&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-H,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-H))}else if(s){const z=_?x.length/p.grid.rows:x.length;l.slideTo(l.activeIndex+z,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(k.length>0&&T)if(typeof e>"u"){const z=l.slidesGrid[S],H=l.slidesGrid[S-A]-z;a?l.setTranslate(l.translate-H):(l.slideTo(S-A,0,!1,!0),s&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-H,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-H))}else{const z=_?k.length/p.grid.rows:k.length;l.slideTo(l.activeIndex-z,0,!1,!0)}}if(l.allowSlidePrev=u,l.allowSlideNext=d,l.controller&&l.controller.control&&!o){const z={slideRealIndex:e,direction:n,setTranslate:s,activeSlideIndex:r,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(q=>{!q.destroyed&&q.params.loop&&q.loopFix({...z,slideTo:q.params.slidesPerView===p.slidesPerView?t:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...z,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView?t:!1})}l.emit("loopFix")}function UK(){const i=this,{params:e,slidesEl:t}=i;if(!e.loop||i.virtual&&i.params.virtual.enabled)return;i.recalcSlides();const n=[];
vendor: 21,446 bytes, line 50
50i.slides.forEach(s=>{const r=typeof s.swiperSlideIndex>"u"?s.getAttribute("data-swiper-slide-index")*1:s.swiperSlideIndex;n[r]=s}),i.slides.forEach(s=>{s.removeAttribute("data-swiper-slide-index")}),n.forEach(s=>{t.append(s)}),i.recalcSlides(),i.slideTo(i.realIndex,0)}var GK={loopCreate:WK,loopFix:jK,loopDestroy:UK};function YK(i){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const t=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),t.style.cursor="move",t.style.cursor=i?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function KK(){const i=this;i.params.watchOverflow&&i.isLocked||i.params.cssMode||(i.isElement&&(i.__preventObserver__=!0),i[i.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",i.isElement&&requestAnimationFrame(()=>{i.__preventObserver__=!1}))}var XK={setGrabCursor:YK,unsetGrabCursor:KK};function QK(i,e){e===void 0&&(e=this);function t(n){if(!n||n===aa()||n===En())return null;n.assignedSlot&&(n=n.assignedSlot);const s=n.closest(i);return!s&&!n.getRootNode?null:s||t(n.getRootNode().host)}return t(e)}function PI(i,e,t){const n=En(),{params:s}=i,r=s.edgeSwipeDetection,o=s.edgeSwipeThreshold;return r&&(t<=o||t>=n.innerWidth-o)?r==="prevent"?(e.preventDefault(),!0):!1:!0}function JK(i){const e=this,t=aa();let n=i;n.originalEvent&&(n=n.originalEvent);const s=e.touchEventsData;if(n.type==="pointerdown"){if(s.pointerId!==null&&s.pointerId!==n.pointerId)return;s.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(s.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){PI(e,n,n.targetTouches[0].pageX);return}const{params:r,touches:o,enabled:a}=e;if(!a||!r.simulateTouch&&n.pointerType==="mouse"||e.animating&&r.preventInteractionOnTransition)return;!e.animating&&r.cssMode&&r.loop&&e.loopFix();let l=n.target;if(r.touchEventsTarget==="wrapper"&&!rK(l,e.wrapperEl)||"which"in n&&n.which===3||"button"in n&&n.button>0||s.isTouched&&s.isMoved)return;const c=!!r.noSwipingClass&&r.noSwipingClass!=="",u=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&u&&(l=u[0]);const d=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,h=!!(n.target&&n.target.shadowRoot);if(r.noSwiping&&(h?QK(d,l):l.closest(d))){e.allowClick=!0;return}if(r.swipeHandler&&!l.closest(r.swipeHandler))return;o.currentX=n.pageX,o.currentY=n.pageY;const p=o.currentX,m=o.currentY;if(!PI(e,n,p))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=m,s.touchStartTime=tv(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,r.threshold>0&&(s.allowThresholdMove=!1);let g=!0;l.matches(s.focusableElements)&&(g=!1,l.nodeName==="SELECT"&&(s.isTouched=!1)),t.activeElement&&t.activeElement.matches(s.focusableElements)&&t.activeElement!==l&&(n.pointerType==="mouse"||n.pointerType!=="mouse"&&!l.matches(s.focusableElements))&&t.activeElement.blur();const v=g&&e.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||v)&&!l.isContentEditable&&n.preventDefault(),r.freeMode&&r.freeMode.enabled&&e.freeMode&&e.animating&&!r.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function ZK(i){const e=aa(),t=this,n=t.touchEventsData,{params:s,touches:r,rtlTranslate:o,enabled:a}=t;if(!a||!s.simulateTouch&&i.pointerType==="mouse")return;let l=i;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(n.touchId!==null||l.pointerId!==n.pointerId))return;let c;if(l.type==="touchmove"){if(c=[...l.changedTouches].find(T=>T.identifier===n.touchId),!c||c.identifier!==n.touchId)return}else c=l;if(!n.isTouched){n.startMoving&&n.isScrolling&&t.emit("touchMoveOpposite",l);return}const u=c.pageX,d=c.pageY;if(l.preventedByNestedSwiper){r.startX=u,r.startY=d;return}if(!t.allowTouchMove){l.target.matches(n.focusableElements)||(t.allowClick=!1),n.isTouched&&(Object.assign(r,{startX:u,startY:d,currentX:u,currentY:d}),n.touchStartTime=tv());return}if(s.touchReleaseOnEdges&&!s.loop){if(t.isVertical()){if(d<r.startY&&t.translate<=t.maxTranslate()||d>r.startY&&t.translate>=t.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(u<r.startX&&t.translate<=t.maxTranslate()||u>r.startX&&t.translate>=t.minTranslate())return}if(e.activeElement&&e.activeElement.matches(n.focusableElements)&&e.activeElement!==l.target&&l.pointerType!=="mouse"&&e.activeElement.blur(),e.activeElement&&l.target===e.activeElement&&l.target.matches(n.focusableElements)){n.isMoved=!0,t.allowClick=!1;return}n.allowTouchCallbacks&&t.emit("touchMove",l),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=u,r.currentY=d;const h=r.currentX-r.startX,p=r.currentY-r.startY;if(t.params.threshold&&Math.sqrt(h**2+p**2)<t.params.threshold)return;if(typeof n.isScrolling>"u"){let T;t.isHorizontal()&&r.currentY===r.startY||t.isVertical()&&r.currentX===r.startX?n.isScrolling=!1:h*h+p*p>=25&&(T=Math.atan2(Math.abs(p),Math.abs(h))*180/Math.PI,n.isScrolling=t.isHorizontal()?T>s.touchAngle:90-T>s.touchAngle)}if(n.isScrolling&&t.emit("touchMoveOpposite",l),typeof n.startMoving>"u"&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(n.startMoving=!0),n.isScrolling||l.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;t.allowClick=!1,!s.cssMode&&l.cancelable&&l.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&l.stopPropagation();let m=t.isHorizontal()?h:p,g=t.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;s.oneWayMovement&&(m=Math.abs(m)*(o?1:-1),g=Math.abs(g)*(o?1:-1)),r.diff=m,m*=s.touchRatio,o&&(m=-m,g=-g);const v=t.touchesDirection;t.swipeDirection=m>0?"prev":"next",t.touchesDirection=g>0?"prev":"next";const w=t.params.loop&&!s.cssMode,_=t.touchesDirection==="next"&&t.allowSlideNext||t.touchesDirection==="prev"&&t.allowSlidePrev;if(!n.isMoved){if(w&&_&&t.loopFix({direction:t.swipeDirection}),n.startTranslate=t.getTranslate(),t.setTransition(0),t.animating){const T=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});t.wrapperEl.dispatchEvent(T)}n.allowMomentumBounce=!1,s.grabCursor&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!0),t.emit("sliderFirstMove",l)}let x;if(new Date().getTime(),s._loopSwapReset!==!1&&n.isMoved&&n.allowThresholdMove&&v!==t.touchesDirection&&w&&_&&Math.abs(m)>=1){Object.assign(r,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}t.emit("sliderMove",l),n.isMoved=!0,n.currentTranslate=m+n.startTranslate;let k=!0,S=s.resistanceRatio;if(s.touchReleaseOnEdges&&(S=0),m>0?(w&&_&&!x&&n.allowThresholdMove&&n.currentTranslate>(s.centeredSlides?t.minTranslate()-t.slidesSizesGrid[t.activeIndex+1]-(s.slidesPerView!=="auto"&&t.slides.length-s.slidesPerView>=2?t.slidesSizesGrid[t.activeIndex+1]+t.params.spaceBetween:0)-t.params.spaceBetween:t.minTranslate())&&t.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>t.minTranslate()&&(k=!1,s.resistance&&(n.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+n.startTranslate+m)**S))):m<0&&(w&&_&&!x&&n.allowThresholdMove&&n.currentTranslate<(s.centeredSlides?t.maxTranslate()+t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween+(s.slidesPerView!=="auto"&&t.slides.length-s.slidesPerView>=2?t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween:0):t.maxTranslate())&&t.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:t.slides.length-(s.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),n.currentTranslate<t.maxTranslate()&&(k=!1,s.resistance&&(n.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-n.startTranslate-m)**S))),k&&(l.preventedByNestedSwiper=!0),!t.allowSlideNext&&t.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!t.allowSlidePrev&&t.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!t.allowSlidePrev&&!t.allowSlideNext&&(n.currentTranslate=n.startTranslate),s.threshold>0)if(Math.abs(m)>s.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,n.currentTranslate=n.startTranslate,r.diff=t.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY;return}}else{n.currentTranslate=n.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&t.freeMode||s.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(n.currentTranslate),t.setTranslate(n.currentTranslate))}function tX(i){const e=this,t=e.touchEventsData;let n=i;n.originalEvent&&(n=n.originalEvent);let s;if(n.type==="touchend"||n.type==="touchcancel"){if(s=[...n.changedTouches].find(S=>S.identifier===t.touchId),!s||s.identifier!==t.touchId)return}else{if(t.touchId!==null||n.pointerId!==t.pointerId)return;s=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;t.pointerId=null,t.touchId=null;const{params:o,touches:a,rtlTranslate:l,slidesGrid:c,enabled:u}=e;if(!u||!o.simulateTouch&&n.pointerType==="mouse")return;if(t.allowTouchCallbacks&&e.emit("touchEnd",n),t.allowTouchCallbacks=!1,!t.isTouched){t.isMoved&&o.grabCursor&&e.setGrabCursor(!1),t.isMoved=!1,t.startMoving=!1;return}o.grabCursor&&t.isMoved&&t.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const d=tv(),h=d-t.touchStartTime;if(e.allowClick){const S=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(S&&S[0]||n.target,S),e.emit("tap click",n),h<300&&d-t.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(t.lastClickTime=tv(),kC(()=>{e.destroyed||(e.allowClick=!0)}),!t.isTouched||!t.isMoved||!e.swipeDirection||a.diff===0&&!t.loopSwapReset||t.currentTranslate===t.startTranslate&&!t.loopSwapReset){t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;return}t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;let p;if(o.followFinger?p=l?e.translate:-e.translate:p=-t.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:p});return}const m=p>=-e.maxTranslate()&&!e.params.loop;let g=0,v=e.slidesSizesGrid[0];for(let S=0;S<c.length;S+=S<o.slidesPerGroupSkip?1:o.slidesPerGroup){const T=S<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;typeof c[S+T]<"u"?(m||p>=c[S]&&p<c[S+T])&&(g=S,v=c[S+T]-c[S]):(m||p>=c[S])&&(g=S,v=c[c.length-1]-c[c.length-2])}let w=null,_=null;o.rewind&&(e.isBeginning?_=o.virtual&&o.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(w=0));const x=(p-c[g])/v,k=g<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(h>o.longSwipesMs){if(!o.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(x>=o.longSwipesRatio?e.slideTo(o.rewind&&e.isEnd?w:g+k):e.slideTo(g)),e.swipeDirection==="prev"&&(x>1-o.longSwipesRatio?e.slideTo(g+k):_!==null&&x<0&&Math.abs(x)>o.longSwipesRatio?e.slideTo(_):e.slideTo(g))}else{if(!o.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(g+k):e.slideTo(g):(e.swipeDirection==="next"&&e.slideTo(w!==null?w:g+k),e.swipeDirection==="prev"&&e.slideTo(_!==null?_:g))}}function CI(){const i=this,{params:e,el:t}=i;if(t&&t.offsetWidth===0)return;e.breakpoints&&i.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:s,snapGrid:r}=i,o=i.virtual&&i.params.virtual.enabled;i.allowSlideNext=!0,i.allowSlidePrev=!0,i.updateSize(),i.updateSlides(),i.updateSlidesClasses();const a=o&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&i.isEnd&&!i.isBeginning&&!i.params.centeredSlides&&!a?i.slideTo(i.slides.length-1,0,!1,!0):i.params.loop&&!o?i.slideToLoop(i.realIndex,0,!1,!0):i.slideTo(i.activeIndex,0,!1,!0),i.autoplay&&i.autoplay.running&&i.autoplay.paused&&(clearTimeout(i.autoplay.resizeTimeout),i.autoplay.resizeTimeout=setTimeout(()=>{i.autoplay&&i.autoplay.running&&i.autoplay.paused&&i.autoplay.resume()},500)),i.allowSlidePrev=s,i.allowSlideNext=n,i.params.watchOverflow&&r!==i.snapGrid&&i.checkOverflow()}function eX(i){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&i.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(i.stopPropagation(),i.stopImmediatePropagation())))}function iX(){const i=this,{wrapperEl:e,rtlTranslate:t,enabled:n}=i;if(!n)return;i.previousTranslate=i.translate,i.isHorizontal()?i.translate=-e.scrollLeft:i.translate=-e.scrollTop,i.translate===0&&(i.translate=0),i.updateActiveIndex(),i.updateSlidesClasses();let s;const r=i.maxTranslate()-i.minTranslate();r===0?s=0:s=(i.translate-i.minTranslate())/r,s!==i.progress&&i.updateProgress(t?-i.translate:i.translate),i.emit("setTranslate",i.translate,!1)}function nX(i){const e=this;ey(e,i.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function sX(){const i=this;i.documentTouchHandlerProceeded||(i.documentTouchHandlerProceeded=!0,i.params.touchReleaseOnEdges&&(i.el.style.touchAction="auto"))}const qN=(i,e)=>{const t=aa(),{params:n,el:s,wrapperEl:r,device:o}=i,a=!!n.nested,l=e==="on"?"addEventListener":"removeEventListener",c=e;!s||typeof s=="string"||(t[l]("touchstart",i.onDocumentTouchStart,{passive:!1,capture:a}),s[l]("touchstart",i.onTouchStart,{passive:!1}),s[l]("pointerdown",i.onTouchStart,{passive:!1}),t[l]("touchmove",i.onTouchMove,{passive:!1,capture:a}),t[l]("pointermove",i.onTouchMove,{passive:!1,capture:a}),t[l]("touchend",i.onTouchEnd,{passive:!0}),t[l]("pointerup",i.onTouchEnd,{passive:!0}),t[l]("pointercancel",i.onTouchEnd,{passive:!0}),t[l]("touchcancel",i.onTouchEnd,{passive:!0}),t[l]("pointerout",i.onTouchEnd,{passive:!0}),t[l]("pointerleave",i.onTouchEnd,{passive:!0}),t[l]("contextmenu",i.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&s[l]("click",i.onClick,!0),n.cssMode&&r[l]("scroll",i.onScroll),n.updateOnWindowResize?i[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",CI,!0):i[c]("observerUpdate",CI,!0),s[l]("load",i.onLoad,{capture:!0}))};function rX(){const i=this,{params:e}=i;i.onTouchStart=JK.bind(i),i.onTouchMove=ZK.bind(i),i.onTouchEnd=tX.bind(i),i.onDocumentTouchStart=sX.bind(i),e.cssMode&&(i.onScroll=iX.bind(i)),i.onClick=eX.bind(i),i.onLoad=nX.bind(i),qN(i,"on")}function oX(){qN(this,"off")}var aX={attachEvents:rX,detachEvents:oX};const AI=(i,e)=>i.grid&&e.grid&&e.grid.rows>1;function lX(){const i=this,{realIndex:e,initialized:t,params:n,el:s}=i,r=n.breakpoints;if(!r||r&&Object.keys(r).length===0)return;const o=aa(),a=n.breakpointsBase==="window"||!n.breakpointsBase?n.breakpointsBase:"container",l=["window","container"].includes(n.breakpointsBase)||!n.breakpointsBase?i.el:o.querySelector(n.breakpointsBase),c=i.getBreakpoint(r,a,l);if(!c||i.currentBreakpoint===c)return;const d=(c in r?r[c]:void 0)||i.originalParams,h=AI(i,n),p=AI(i,d),m=i.params.grabCursor,g=d.grabCursor,v=n.enabled;h&&!p?(s.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),i.emitContainerClasses()):!h&&p&&(s.classList.add(`${n.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&n.grid.fill==="column")&&s.classList.add(`${n.containerModifierClass}grid-column`),i.emitContainerClasses()),m&&!g?i.unsetGrabCursor():!m&&g&&i.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(T=>{if(typeof d[T]>"u")return;const E=n[T]&&n[T].enabled,M=d[T]&&d[T].enabled;E&&!M&&i[T].disable(),!E&&M&&i[T].enable()});const w=d.direction&&d.direction!==n.direction,_=n.loop&&(d.slidesPerView!==n.slidesPerView||w),x=n.loop;w&&t&&i.changeDirection(),cs(i.params,d);const k=i.params.enabled,S=i.params.loop;Object.assign(i,{allowTouchMove:i.params.allowTouchMove,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev}),v&&!k?i.disable():!v&&k&&i.enable(),i.currentBreakpoint=c,i.emit("_beforeBreakpoint",d),t&&(_?(i.loopDestroy(),i.loopCreate(e),i.updateSlides()):!x&&S?(i.loopCreate(e),i.updateSlides()):x&&!S&&i.loopDestroy()),i.emit("breakpoint",d)}function cX(i,e,t){if(e===void 0&&(e="window"),!i||e==="container"&&!t)return;let n=!1;const s=En(),r=e==="window"?s.innerHeight:t.clientHeight,o=Object.keys(i).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:r*l,point:a}}return{value:a,point:a}});o.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a<o.length;a+=1){const{point:l,value:c}=o[a];e==="window"?s.matchMedia(`(min-width: ${c}px)`).matches&&(n=l):c<=t.clientWidth&&(n=l)}return n||"max"}var uX={setBreakpoint:lX,getBreakpoint:cX};function dX(i,e){const t=[];return i.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(s=>{n[s]&&t.push(e+s)}):typeof n=="string"&&t.push(e+n)}),t}function hX(){const i=this,{classNames:e,params:t,rtl:n,el:s,device:r}=i,o=dX(["initialized",t.direction,{"free-mode":i.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:n},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&t.grid.fill==="column"},{android:r.android},{ios:r.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...o),s.classList.add(...e),i.emitContainerClasses()}function fX(){const i=this,{el:e,classNames:t}=i;!e||typeof e=="string"||(e.classList.remove(...t),i.emitContainerClasses())}var pX={addClasses:hX,removeClasses:fX};function gX(){const i=this,{isLocked:e,params:t}=i,{slidesOffsetBefore:n}=t;if(n){const s=i.slides.length-1,r=i.slidesGrid[s]+i.slidesSizesGrid[s]+n*2;i.isLocked=i.size>r}else i.isLocked=i.snapGrid.length===1;t.allowSlideNext===!0&&(i.allowSlideNext=!i.isLocked),t.allowSlidePrev===!0&&(i.allowSlidePrev=!i.isLocked),e&&e!==i.isLocked&&(i.isEnd=!1),e!==i.isLocked&&i.emit(i.isLocked?"lock":"unlock")}var mX={checkOverflow:gX},MI={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 bX(i,e){return function(n){n===void 0&&(n={});const s=Object.keys(n)[0],r=n[s];if(typeof r!="object"||r===null){cs(e,n);return}if(i[s]===!0&&(i[s]={enabled:!0}),s==="navigation"&&i[s]&&i[s].enabled&&!i[s].prevEl&&!i[s].nextEl&&(i[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&i[s]&&i[s].enabled&&!i[s].el&&(i[s].auto=!0),!(s in i&&"enabled"in r)){cs(e,n);return}typeof i[s]=="object"&&!("enabled"in i[s])&&(i[s].enabled=!0),i[s]||(i[s]={enabled:!1}),cs(e,n)}}const GE={eventsEmitter:pK,update:kK,translate:OK,transition:DK,slide:HK,loop:GK,grabCursor:XK,events:aX,breakpoints:uX,checkOverflow:mX,classes:pX},YE={};let BO=class co{constructor(){let e,t;for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];s.length===1&&s[0].constructor&&Object.prototype.toString.call(s[0]).slice(8,-1)==="Object"?t=s[0]:[e,t]=s,t||(t={}),t=cs({},t),e&&!t.el&&(t.el=e);const o=aa();if(t.el&&typeof t.el=="string"&&o.querySelectorAll(t.el).length>1){const u=[];return o.querySelectorAll(t.el).forEach(d=>{const h=cs({},t,{el:d});u.push(new co(h))}),u}const a=this;a.__swiper__=!0,a.support=NN(),a.device=BN({userAgent:t.userAgent}),a.browser=zN(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],t.modules&&Array.isArray(t.modules)&&a.modules.push(...t.modules);const l={};
vendor: 1,933 bytes, line 50
50a.modules.forEach(u=>{u({params:t,swiper:a,extendParams:bX(t,l),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const c=cs({},MI,l);return a.params=cs({},c,YE,t),a.originalParams=cs({},a.params),a.passedParams=cs({},t),a.params&&a.params.on&&Object.keys(a.params.on).forEach(u=>{a.on(u,a.params.on[u])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.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:a.params.allowSlideNext,allowSlidePrev:a.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:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}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:t,params:n}=this,s=Ur(t,`.${n.slideClass}, swiper-slide`),r=EC(s[0]);return EC(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>t.getAttribute("data-swiper-slide-index")*1===e))}
vendor: 4,565 bytes, line 50
50recalcSlides(){const e=this,{slidesEl:t,params:n}=e;e.slides=Ur(t,`.${n.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,t){const n=this;e=Math.min(Math.max(e,0),1);const s=n.minTranslate(),o=(n.maxTranslate()-s)*e+s;n.translateTo(o,typeof t>"u"?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(t.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(n=>{const s=e.getSlideClasses(n);t.push({slideEl:n,classNames:s}),e.emit("_slideClass",n,s)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){e===void 0&&(e="current"),t===void 0&&(t=!1);const n=this,{params:s,slides:r,slidesGrid:o,slidesSizesGrid:a,size:l,activeIndex:c}=n;let u=1;if(typeof s.slidesPerView=="number")return s.slidesPerView;if(s.centeredSlides){let d=r[c]?Math.ceil(r[c].swiperSlideSize):0,h;for(let p=c+1;p<r.length;p+=1)r[p]&&!h&&(d+=Math.ceil(r[p].swiperSlideSize),u+=1,d>l&&(h=!0));for(let p=c-1;p>=0;p-=1)r[p]&&!h&&(d+=r[p].swiperSlideSize,u+=1,d>l&&(h=!0))}else if(e==="current")for(let d=c+1;d<r.length;d+=1)(t?o[d]+a[d]-o[c]<l:o[d]-o[c]<l)&&(u+=1);else for(let d=c-1;d>=0;d-=1)o[c]-o[d]<l&&(u+=1);return u}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(o=>{o.complete&&ey(e,o)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function s(){const o=e.rtlTranslate?e.translate*-1:e.translate,a=Math.min(Math.max(o,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let r;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)s(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const o=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;r=e.slideTo(o.length-1,0,!1,!0)}else r=e.slideTo(e.activeIndex,0,!1,!0);r||s()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){t===void 0&&(t=!0);const n=this,s=n.params.direction;return e||(e=s==="horizontal"?"vertical":"horizontal"),e===s||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${s}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(r=>{e==="vertical"?r.style.width="":r.style.height=""}),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&e==="rtl"||!t.rtl&&e==="ltr"||(t.rtl=e==="rtl",t.rtlTranslate=t.params.direction==="horizontal"&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const s=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(s()):Ur(n,s())[0])();return!o&&t.params.createElements&&(o=$p("div",t.params.wrapperClass),n.append(o),Ur(n,`.${t.params.slideClass}`).forEach(a=>{o.append(a)})),Object.assign(t,{el:n,wrapperEl:o,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:o,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||ul(n,"direction")==="rtl",rtlTranslate:t.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||ul(n,"direction")==="rtl"),wrongRTL:ul(o,"display")==="-webkit-box"}),!0}init(e){const t=this;if(t.initialized||t.mount(e)===!1)return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(
vendor: 4,515 bytes, line 50
50),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const s=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&s.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach(r=>{r.complete?ey(t,r):r.addEventListener("load",o=>{ey(t,o.target)})}),PC(t),t.initialized=!0,PC(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){e===void 0&&(e=!0),t===void 0&&(t=!0);const n=this,{params:s,el:r,wrapperEl:o,slides:a}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),s.loop&&n.loopDestroy(),t&&(n.removeClasses(),r&&typeof r!="string"&&r.removeAttribute("style"),o&&o.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(l=>{n.off(l)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),tK(n)),n.destroyed=!0),null}static extendDefaults(e){cs(YE,e)}static get extendedDefaults(){return YE}static get defaults(){return MI}static installModule(e){co.prototype.__modules__||(co.prototype.__modules__=[]);const t=co.prototype.__modules__;typeof e=="function"&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(t=>co.installModule(t)),co):(co.installModule(e),co)}};Object.keys(GE).forEach(i=>{Object.keys(GE[i]).forEach(e=>{BO.prototype[e]=GE[i][e]})});BO.use([hK,fK]);function yX(i,e,t,n){return i.params.createElements&&Object.keys(n).forEach(s=>{if(!t[s]&&t.auto===!0){let r=Ur(i.el,`.${n[s]}`)[0];r||(r=$p("div",n[s]),r.className=n[s],i.el.append(r)),t[s]=r,e[s]=r}}),t}function vX(i){let{swiper:e,extendParams:t,on:n,emit:s}=i;t({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 r(m){let g;return m&&typeof m=="string"&&e.isElement&&(g=e.el.querySelector(m)||e.hostEl.querySelector(m),g)?g:(m&&(typeof m=="string"&&(g=[...document.querySelectorAll(m)]),e.params.uniqueNavElements&&typeof m=="string"&&g&&g.length>1&&e.el.querySelectorAll(m).length===1?g=e.el.querySelector(m):g&&g.length===1&&(g=g[0])),m&&!g?m:g)}function o(m,g){const v=e.params.navigation;m=we(m),m.forEach(w=>{w&&(w.classList[g?"add":"remove"](...v.disabledClass.split(" ")),w.tagName==="BUTTON"&&(w.disabled=g),e.params.watchOverflow&&e.enabled&&w.classList[e.isLocked?"add":"remove"](v.lockClass))})}function a(){const{nextEl:m,prevEl:g}=e.navigation;if(e.params.loop){o(g,!1),o(m,!1);return}o(g,e.isBeginning&&!e.params.rewind),o(m,e.isEnd&&!e.params.rewind)}function l(m){m.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),s("navigationPrev"))}function c(m){m.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),s("navigationNext"))}function u(){const m=e.params.navigation;if(e.params.navigation=yX(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(m.nextEl||m.prevEl))return;let g=r(m.nextEl),v=r(m.prevEl);Object.assign(e.navigation,{nextEl:g,prevEl:v}),g=we(g),v=we(v);const w=(_,x)=>{_&&_.addEventListener("click",x==="next"?c:l),!e.enabled&&_&&_.classList.add(...m.lockClass.split(" "))};g.forEach(_=>w(_,"next")),v.forEach(_=>w(_,"prev"))}function d(){let{nextEl:m,prevEl:g}=e.navigation;m=we(m),g=we(g);const v=(w,_)=>{w.removeEventListener("click",_==="next"?c:l),w.classList.remove(...e.params.navigation.disabledClass.split(" "))};m.forEach(w=>v(w,"next")),g.forEach(w=>v(w,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?p():(u(),a())}),n("toEdge fromEdge lock unlock",()=>{a()}),n("destroy",()=>{d()}),n("enable disable",()=>{let{nextEl:m,prevEl:g}=e.navigation;if(m=we(m),g=we(g),e.enabled){a();return}[...m,...g].filter(v=>!!v).forEach(v=>v.classList.add(e.params.navigation.lockClass))}),n("click",(m,g)=>{let{nextEl:v,prevEl:w}=e.navigation;v=we(v),w=we(w);const _=g.target;let x=w.includes(_)||v.includes(_);if(e.isElement&&!x){const k=g.path||g.composedPath&&g.composedPath();k&&(x=k.find(S=>v.includes(S)||w.includes(S)))}
50if(e.params.navigation.hideOnClick&&!x){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===_||e.pagination.el.contains(_)))return;let k;v.length?k=v[0].classList.contains(e.params.navigation.hiddenClass):w.length&&(k=w[0].classList.contains(e.params.navigation.hiddenClass)),s(k===!0?"navigationShow":"navigationHide"),[...v,...w].filter(S=>!!S).forEach(S=>S.classList.toggle(e.params.navigation.hiddenClass))}});const h=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),a()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(e.navigation,{enable:h,disable:p,update:a,init:u,destroy:d})}function KE(i){return i===void 0&&(i=""),`.${i.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function wX(i){let{swiper:e,extendParams:t,on:n}=i;t({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 s=null,r,o,a=new Date().getTime();function l($){const B=s;B.length!==0&&(B.innerHTML="",B.innerHTML=$)}function c($){$===void 0&&($=16);const B=()=>Math.round(16*Math.random()).toString(16);return"x".repeat($).replace(/x/g,B)}function u($){$=we($),$.forEach(B=>{B.setAttribute("tabIndex","0")})}function d($){$=we($),$.forEach(B=>{B.setAttribute("tabIndex","-1")})}function h($,B){$=we($),$.forEach(K=>{K.setAttribute("role",B)})}function p($,B){$=we($),$.forEach(K=>{K.setAttribute("aria-roledescription",B)})}function m($,B){$=we($),$.forEach(K=>{K.setAttribute("aria-controls",B)})}function g($,B){$=we($),$.forEach(K=>{K.setAttribute("aria-label",B)})}function v($,B){$=we($),$.forEach(K=>{K.setAttribute("id",B)})}function w($,B){$=we($),$.forEach(K=>{K.setAttribute("aria-live",B)})}function _($){$=we($),$.forEach(B=>{B.setAttribute("aria-disabled",!0)})}function x($){$=we($),$.forEach(B=>{B.setAttribute("aria-disabled",!1)})}function k($){if($.keyCode!==13&&$.keyCode!==32)return;const B=e.params.a11y,K=$.target;if(!(e.pagination&&e.pagination.el&&(K===e.pagination.el||e.pagination.el.contains($.target))&&!$.target.matches(KE(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const N=we(e.navigation.prevEl);we(e.navigation.nextEl).includes(K)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?l(B.lastSlideMessage):l(B.nextSlideMessage)),N.includes(K)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?l(B.firstSlideMessage):l(B.prevSlideMessage))}e.pagination&&K.matches(KE(e.params.pagination.bulletClass))&&K.click()}}function S(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:$,prevEl:B}=e.navigation;B&&(e.isBeginning?(_(B),d(B)):(x(B),u(B))),$&&(e.isEnd?(_($),d($)):(x($),u($)))}function T(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function E(){return T()&&e.params.pagination.clickable}function M(){const $=e.params.a11y;T()&&e.pagination.bullets.forEach(B=>{e.params.pagination.clickable&&(u(B),e.params.pagination.renderBullet||(h(B,"button"),g(B,$.paginationBulletMessage.replace(/\{\{index\}\}/,EC(B)+1)))),B.matches(KE(e.params.pagination.bulletActiveClass))?B.setAttribute("aria-current","true"):B.removeAttribute("aria-current")})}const A=($,B,K)=>{u($),$.tagName!=="BUTTON"&&(h($,"button"),$.addEventListener("keydown",k)),g($,K),m($,B)},P=$=>
50{o&&o!==$.target&&!o.contains($.target)&&(r=!0),e.a11y.clicked=!0},L=()=>{r=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},I=$=>{a=new Date().getTime()},z=$=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus||new Date().getTime()-a<100)return;const B=$.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!B||!e.slides.includes(B))return;o=B;const K=e.slides.indexOf(B)===e.activeIndex,N=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(B);K||N||$.sourceCapabilities&&$.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{r||(e.params.loop?e.slideToLoop(parseInt(B.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(B),0),r=!1)}))},q=()=>{const $=e.params.a11y;$.itemRoleDescriptionMessage&&p(e.slides,$.itemRoleDescriptionMessage),$.slideRole&&h(e.slides,$.slideRole);const B=e.slides.length;$.slideLabelMessage&&e.slides.forEach((K,N)=>{const J=e.params.loop?parseInt(K.getAttribute("data-swiper-slide-index"),10):N,et=$.slideLabelMessage.replace(/\{\{index\}\}/,J+1).replace(/\{\{slidesLength\}\}/,B);g(K,et)})},H=()=>{const $=e.params.a11y;e.el.append(s);const B=e.el;$.containerRoleDescriptionMessage&&p(B,$.containerRoleDescriptionMessage),$.containerMessage&&g(B,$.containerMessage),$.containerRole&&h(B,$.containerRole);const K=e.wrapperEl,N=$.id||K.getAttribute("id")||`swiper-wrapper-${c(16)}`,J=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";v(K,N),w(K,J),q();let{nextEl:et,prevEl:Z}=e.navigation?e.navigation:{};et=we(et),Z=we(Z),et&&et.forEach(tt=>A(tt,N,$.nextSlideMessage)),Z&&Z.forEach(tt=>A(tt,N,$.prevSlideMessage)),E()&&we(e.pagination.el).forEach(it=>{it.addEventListener("keydown",k)}),aa().addEventListener("visibilitychange",I),e.el.addEventListener("focus",z,!0),e.el.addEventListener("focus",z,!0),e.el.addEventListener("pointerdown",P,!0),e.el.addEventListener("pointerup",L,!0)};function j(){s&&s.remove();let{nextEl:$,prevEl:B}=e.navigation?e.navigation:{};$=we($),B=we(B),$&&$.forEach(N=>N.removeEventListener("keydown",k)),B&&B.forEach(N=>N.removeEventListener("keydown",k)),E()&&we(e.pagination.el).forEach(J=>{J.removeEventListener("keydown",k)}),aa().removeEventListener("visibilitychange",I),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",z,!0),e.el.removeEventListener("pointerdown",P,!0),e.el.removeEventListener("pointerup",L,!0))}n("beforeInit",()=>{s=$p("span",e.params.a11y.notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&H()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&q()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&S()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&M()}),n("destroy",()=>{e.params.a11y.enabled&&j()})}const _X=(i,e)=>({init(){const n=Object.assign({modules:[vX,wX],a11y:{enabled:!0},autoHeight:!0,slidesPerView:1,breakpoints:{640:{slidesPerView:"auto"}},spaceBetween:16,grabCursor:!0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}},e),s=new BO(this.$el,n);document.addEventListener("swiper",r=>{r.detail.id==i&&r.detail.action=="slideTo"&&s.slideTo(r.detail.index,0)})}});function at(i,e,t){return(e=SX(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function xX(i,e){if(typeof i!="object"||i===null)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var n=t.call(i,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function SX(i){var e=xX(i,"string");return typeof e=="symbol"?e:String(e)}function TX(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function OI(i,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}function kX(i,e,t){return e&&OI(i.prototype,e),t&&OI(i,t),i}function EX(i,e,t){return e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function $I(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(i,s).enumerable})),t.push.apply(t,n)}return t}function LI(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};
50e%2?$I(Object(t),!0).forEach(function(n){EX(i,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):$I(Object(t)).forEach(function(n){Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(t,n))})}return i}var II={addCSS:!0,thumbWidth:15,watch:!0};function PX(i,e){return(function(){return Array.from(document.querySelectorAll(e)).includes(this)}).call(i,e)}function CX(i,e){if(i&&e){var t=new Event(e,{bubbles:!0});i.dispatchEvent(t)}}var N0=function(i){return i!=null?i.constructor:null},zO=function(i,e){return!!(i&&e&&i instanceof e)},HN=function(i){return i==null},WN=function(i){return N0(i)===Object},AX=function(i){return N0(i)===Number&&!Number.isNaN(i)},jN=function(i){return N0(i)===String},MX=function(i){return N0(i)===Boolean},OX=function(i){return N0(i)===Function},UN=function(i){return Array.isArray(i)},GN=function(i){return zO(i,NodeList)},$X=function(i){return zO(i,Element)},LX=function(i){return zO(i,Event)},IX=function(i){return HN(i)||(jN(i)||UN(i)||GN(i))&&!i.length||WN(i)&&!Object.keys(i).length},Ki={nullOrUndefined:HN,object:WN,number:AX,string:jN,boolean:MX,function:OX,array:UN,nodeList:GN,element:$X,event:LX,empty:IX};function DX(i){var e="".concat(i).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}function RX(i,e){if(1>e){var t=DX(e);return parseFloat(i.toFixed(t))}return Math.round(i/e)*e}var FX=function(){function i(e,t){TX(this,i),Ki.element(e)?this.element=e:Ki.string(e)&&(this.element=document.querySelector(e)),Ki.element(this.element)&&Ki.empty(this.element.rangeTouch)&&(this.config=LI({},II,{},t),this.init())}return kX(i,[{key:"init",value:function(){i.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){i.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(e){var t=this,n=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(s){t.element[n](s,function(r){return t.set(r)},!1)})}},{key:"get",value:function(e){if(!i.enabled||!Ki.event(e))return null;var t,n=e.target,s=e.changedTouches[0],r=parseFloat(n.getAttribute("min"))||0,o=parseFloat(n.getAttribute("max"))||100,a=parseFloat(n.getAttribute("step"))||1,l=n.getBoundingClientRect(),c=100/l.width*(this.config.thumbWidth/2)/100;return 0>(t=100/l.width*(s.clientX-l.left))?t=0:100<t&&(t=100),50>t?t-=(100-2*t)*c:50<t&&(t+=2*(t-50)*c),r+RX(t/100*(o-r),a)}},{key:"set",value:function(e){i.enabled&&Ki.event(e)&&!e.target.disabled&&(e.preventDefault(),e.target.value=this.get(e),CX(e.target,e.type==="touchend"?"change":"input"))}}],[{key:"setup",value:function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=null;if(Ki.empty(e)||Ki.string(e)?n=Array.from(document.querySelectorAll(Ki.string(e)?e:'input[type="range"]')):Ki.element(e)?n=[e]:Ki.nodeList(e)?n=Array.from(e):Ki.array(e)&&(n=e.filter(Ki.element)),Ki.empty(n))return null;var s=LI({},II,{},t);if(Ki.string(e)&&s.watch){var r=new MutationObserver(function(o){Array.from(o).forEach(function(a){Array.from(a.addedNodes).forEach(function(l){Ki.element(l)&&PX(l,e)&&new i(l,s)})})});r.observe(document.body,{childList:!0,subtree:!0})}return n.map(function(o){return new i(o,t)})}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),i}();const B0=i=>i!=null?i.constructor:null,la=(i,e)=>!!(i&&e&&i instanceof e),VO=i=>i==null,YN=i=>B0(i)===Object,NX=i=>B0(i)===Number&&!Number.isNaN(i),qk=i=>B0(i)===String,BX=i=>B0(i)===Boolean,KN=i=>typeof i=="function",XN=i=>Array.isArray(i),zX=i=>la(i,WeakMap),QN=i=>la(i,NodeList),VX=i=>B0(i)===Text,qX=i=>la(i,Event),HX=i=>
50la(i,KeyboardEvent),WX=i=>la(i,window.TextTrackCue)||la(i,window.VTTCue),jX=i=>la(i,TextTrack)||!VO(i)&&qk(i.kind),UX=i=>la(i,Promise)&&KN(i.then),GX=i=>i!==null&&typeof i=="object"&&i.nodeType===1&&typeof i.style=="object"&&typeof i.ownerDocument=="object",JN=i=>VO(i)||(qk(i)||XN(i)||QN(i))&&!i.length||YN(i)&&!Object.keys(i).length,YX=i=>{if(la(i,window.URL))return!0;if(!qk(i))return!1;let e=i;i.startsWith("http://")&&i.startsWith("https://")||(e=`http://${i}`);try{return!JN(new URL(e).hostname)}catch{return!1}};var F={nullOrUndefined:VO,object:YN,number:NX,string:qk,boolean:BX,function:KN,array:XN,weakMap:zX,nodeList:QN,element:GX,textNode:VX,event:qX,keyboardEvent:HX,cue:WX,track:jX,promise:UX,url:YX,empty:JN};const CC=(()=>{const i=document.createElement("span"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},t=Object.keys(e).find(n=>i.style[n]!==void 0);return!!F.string(t)&&e[t]})();function ZN(i,e){setTimeout(()=>{try{i.hidden=!0,i.offsetHeight,i.hidden=!1}catch{}},e)}const KX=!!window.document.documentMode,XX=/Edge/g.test(navigator.userAgent),QX="WebkitAppearance"in document.documentElement.style&&!/Edge/g.test(navigator.userAgent),JX=/iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1,ZX=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,tQ=/iPad|iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1;var Ii={isIE:KX,isEdge:XX,isWebKit:QX,isIPhone:JX,isIPadOS:ZX,isIos:tQ};function eQ(i){return JSON.parse(JSON.stringify(i))}function t3(i,e){return e.split(".").reduce((t,n)=>t&&t[n],i)}function oi(i={},...e){if(!e.length)return i;const t=e.shift();return F.object(t)?(Object.keys(t).forEach(n=>{F.object(t[n])?(Object.keys(i).includes(n)||Object.assign(i,{[n]:{}}),oi(i[n],t[n])):Object.assign(i,{[n]:t[n]})}),oi(i,...e)):i}function e3(i,e){const t=i.length?i:[i];Array.from(t).reverse().forEach((n,s)=>{const r=s>0?e.cloneNode(!0):e,o=n.parentNode,a=n.nextSibling;r.appendChild(n),a?o.insertBefore(r,a):o.appendChild(r)})}function AC(i,e){F.element(i)&&!F.empty(e)&&Object.entries(e).filter(([,t])=>!F.nullOrUndefined(t)).forEach(([t,n])=>i.setAttribute(t,n))}function St(i,e,t){const n=document.createElement(i);return F.object(e)&&AC(n,e),F.string(t)&&(n.innerText=t),n}function iQ(i,e){F.element(i)&&F.element(e)&&e.parentNode.insertBefore(i,e.nextSibling)}function DI(i,e,t,n){F.element(e)&&e.appendChild(St(i,t,n))}function Xo(i){F.nodeList(i)||F.array(i)?Array.from(i).forEach(Xo):F.element(i)&&F.element(i.parentNode)&&i.parentNode.removeChild(i)}function iy(i){if(!F.element(i))return;let{length:e}=i.childNodes;for(;e>0;)i.removeChild(i.lastChild),e-=1}function iv(i,e){return F.element(e)&&F.element(e.parentNode)&&F.element(i)?(e.parentNode.replaceChild(i,e),i):null}function wr(i,e){if(!F.string(i)||F.empty(i))return{};const t={},n=oi({},e);return i.split(",").forEach(s=>{const r=s.trim(),o=r.replace(".",""),a=r.replace(/[[\]]/g,"").split("="),[l]=a,c=a.length>1?a[1].replace(/["']/g,""):"";switch(r.charAt(0)){case".":F.string(n.class)?t.class=`${n.class} ${o}`:t.class=o;break;case"#":t.id=r.replace("#","");break;case"[":t[l]=c}}),oi(n,t)}function jl(i,e){if(!F.element(i))return;let t=e;F.boolean(t)||(t=!i.hidden),i.hidden=t}function ce(i,e,t){if(F.nodeList(i))return Array.from(i).map(n=>ce(n,e,t));if(F.element(i)){let n="toggle";return t!==void 0&&(n=t?"add":"remove"),i.classList[n](e),i.classList.contains(e)}return!1}function nv(i,e){return F.element(i)&&i.classList.contains(e)}function hc(i,e){const{prototype:t}=Element;return(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||function(){return Array.from(document.querySelectorAll(e)).includes(this)}).call(i,e)}function nQ(i,e){const{prototype:t}=Element;return(t.closest||function(){let n=this;do{if(hc.matches(n,e))return n;n=n.parentElement||n.parentNode}while(n!==null&&n.nodeType===1);return null}).call(i,e)}function Lp(i){return this.elements.container.querySelectorAll(i)}function vi(i){return this.elements.container.querySelector(i)}
50function XE(i=null,e=!1){F.element(i)&&i.focus({preventScroll:!0,focusVisible:e})}const RI={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},ai={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(i,e){const t=ai[i]||e!=="html5";return{api:t,ui:t&&ai.rangeInput}},pip:!(Ii.isIPhone||!F.function(St("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||St("video").disablePictureInPicture)),airplay:F.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(i){if(F.empty(i))return!1;const[e]=i.split("/");let t=i;if(!this.isHTML5||e!==this.type)return!1;Object.keys(RI).includes(t)&&(t+=`; codecs="${RI[i]}"`);try{return!!(t&&this.media.canPlayType(t).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const i=document.createElement("input");return i.type="range",i.type==="range"})(),touch:"ontouchstart"in document.documentElement,transitions:CC!==!1,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},sQ=(()=>{let i=!1;try{const e=Object.defineProperty({},"passive",{get:()=>(i=!0,null)});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch{}return i})();function Ip(i,e,t,n=!1,s=!0,r=!1){if(!i||!("addEventListener"in i)||F.empty(e)||!F.function(t))return;const o=e.split(" ");let a=r;sQ&&(a={passive:s,capture:r}),o.forEach(l=>{this&&this.eventListeners&&n&&this.eventListeners.push({element:i,type:l,callback:t,options:a}),i[n?"addEventListener":"removeEventListener"](l,t,a)})}function ee(i,e="",t,n=!0,s=!1){Ip.call(this,i,e,t,!0,n,s)}function Hk(i,e="",t,n=!0,s=!1){Ip.call(this,i,e,t,!1,n,s)}function qO(i,e="",t,n=!0,s=!1){const r=(...o)=>{Hk(i,e,r,n,s),t.apply(this,o)};Ip.call(this,i,e,r,!0,n,s)}function Tt(i,e="",t=!1,n={}){if(!F.element(i)||F.empty(e))return;const s=new CustomEvent(e,{bubbles:t,detail:{...n,plyr:this}});i.dispatchEvent(s)}function rQ(){this&&this.eventListeners&&(this.eventListeners.forEach(i=>{const{element:e,type:t,callback:n,options:s}=i;e.removeEventListener(t,n,s)}),this.eventListeners=[])}function oQ(){return new Promise(i=>this.ready?setTimeout(i,0):ee.call(this,this.elements.container,"ready",i)).then(()=>{})}function Hr(i){F.promise(i)&&i.then(null,()=>{})}function MC(i){return F.array(i)?i.filter((e,t)=>i.indexOf(e)===t):i}function i3(i,e){return F.array(i)&&i.length?i.reduce((t,n)=>Math.abs(n-e)<Math.abs(t-e)?n:t):null}function n3(i){return!(!window||!window.CSS)&&window.CSS.supports(i)}const FI=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((i,[e,t])=>({...i,[e/t]:[e,t]}),{});function s3(i){return F.array(i)||F.string(i)&&i.includes(":")?(F.array(i)?i:i.split(":")).map(Number).every(F.number):!1}function sv(i){if(!F.array(i)||!i.every(F.number))return null;const[e,t]=i,n=(r,o)=>o===0?r:n(o,r%o),s=n(e,t);return[e/s,t/s]}function HO(i){const e=n=>s3(n)?n.split(":").map(Number):null;let t=e(i);if(t===null&&(t=e(this.config.ratio)),t===null&&!F.empty(this.embed)&&F.array(this.embed.ratio)&&({ratio:t}=this.embed),t===null&&this.isHTML5){const{videoWidth:n,videoHeight:s}=this.media;t=[n,s]}return sv(t)}function Wh(i){if(!this.isVideo)return{};const{wrapper:e}=this.elements,t=HO.call(this,i);if(!F.array(t))return{};const[n,s]=sv(t),r=100/n*s;if(n3(`aspect-ratio: ${n}/${s}`)?e.style.aspectRatio=`${n}/${s}`:e.style.paddingBottom=`${r}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const o=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),a=(o-r)/(o/50);this.fullscreen.active?e.style.paddingBottom=null:this.media.style.transform=`translateY(-${a}%)`}else this.isHTML5&&e.classList.add(this.config.classNames.videoFixedRatio);return{padding:r,ratio:t}}function r3(i,e,t=.05){const n=i/e,s=i3(Object.keys(FI),n);return Math.abs(s-n)<=t?FI[s]:[i,e]}function aQ(){return[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)]}const dl={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(i=>{const e=i.getAttribute("type");return!!F.empty(e)||ai.mime.call(this,e)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:dl.getSources.call(this).map(i=>
50Number(i.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const i=this;i.options.speed=i.config.speed.options,F.empty(this.config.ratio)||Wh.call(i),Object.defineProperty(i.media,"quality",{get(){const e=dl.getSources.call(i).find(t=>t.getAttribute("src")===i.source);return e&&Number(e.getAttribute("size"))},set(e){if(i.quality!==e){if(i.config.quality.forced&&F.function(i.config.quality.onChange))i.config.quality.onChange(e);else{const t=dl.getSources.call(i).find(l=>Number(l.getAttribute("size"))===e);if(!t)return;const{currentTime:n,paused:s,preload:r,readyState:o,playbackRate:a}=i.media;i.media.src=t.getAttribute("src"),(r!=="none"||o)&&(i.once("loadedmetadata",()=>{i.speed=a,i.currentTime=n,s||Hr(i.play())}),i.media.load())}Tt.call(i,i.media,"qualitychange",!1,{quality:e})}}})},cancelRequests(){this.isHTML5&&(Xo(dl.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function lQ(i){return`${i}-${Math.floor(1e4*Math.random())}`}function OC(i,...e){return F.empty(i)?i:i.toString().replace(/{(\d+)}/g,(t,n)=>e[n].toString())}function cQ(i,e){return i===0||e===0||Number.isNaN(i)||Number.isNaN(e)?0:(i/e*100).toFixed(2)}const dp=(i="",e="",t="")=>i.replace(new RegExp(e.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),t.toString()),o3=(i="")=>i.toString().replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase());function uQ(i=""){let e=i.toString();return e=dp(e,"-"," "),e=dp(e,"_"," "),e=o3(e),dp(e," ","")}function dQ(i=""){let e=i.toString();return e=uQ(e),e.charAt(0).toLowerCase()+e.slice(1)}function hQ(i){const e=document.createDocumentFragment(),t=document.createElement("div");return e.appendChild(t),t.innerHTML=i,e.firstChild.innerText}function fQ(i){const e=document.createElement("div");return e.appendChild(i),e.innerHTML}const NI={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},Li={get(i="",e={}){if(F.empty(i)||F.empty(e))return"";let t=t3(e.i18n,i);if(F.empty(t))return Object.keys(NI).includes(i)?NI[i]:"";const n={"{seektime}":e.seekTime,"{title}":e.title};return Object.entries(n).forEach(([s,r])=>{t=dp(t,s,r)}),t}};class Dp{constructor(e){at(this,"get",t=>{if(!Dp.supported||!this.enabled)return null;const n=window.localStorage.getItem(this.key);if(F.empty(n))return null;const s=JSON.parse(n);return F.string(t)&&t.length?s[t]:s}),at(this,"set",t=>{if(!Dp.supported||!this.enabled||!F.object(t))return;let n=this.get();F.empty(n)&&(n={}),oi(n,t);try{window.localStorage.setItem(this.key,JSON.stringify(n))}catch{}}),this.enabled=e.config.storage.enabled,this.key=e.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const e="___test";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}}function z0(i,e="text"){return new Promise((t,n)=>{try{const s=new XMLHttpRequest;if(!("withCredentials"in s))return;s.addEventListener("load",()=>{if(e==="text")try{t(JSON.parse(s.responseText))}catch{t(s.responseText)}else t(s.response)}),s.addEventListener("error",()=>{throw new Error(s.status)}),s.open("GET",i,!0),s.responseType=e,s.send()}catch(s){n(s)}})}function a3(i,e){if(!F.string(i))return;const t="cache",n=F.string(e);let s=!1;const r=()=>document.getElementById(e)!==null,o=(a,l)=>{a.innerHTML=l,n&&r()||document.body.insertAdjacentElement("afterbegin",a)};if(!n||!r()){const a=Dp.supported,l=document.createElement("div");if(l.setAttribute("hidden",""),n&&l.setAttribute("id",e),a){const c=window.localStorage.getItem(`${t}-${e}`);if(s=c!==null,s){const u=JSON.parse(c);o(l,u.content)}}z0(i).then(c=>{if(!F.empty(c)){if(a)try{window.localStorage.setItem(`${t}-${e}`,JSON.stringify({content:c}))}catch{}o(l,c)}}).catch(()=>{})}}const l3=i=>Math.trunc(i/60/60%60,10),pQ=i=>Math.trunc(i/60%60,10),gQ=i=>Math.trunc(i%60,10);function Wk(i=0,e=!1,t=!1){if(!F.number(i))return Wk(void 0,e,t);const n=a=>`0${a}`.slice(-2);let s=l3(i);const r=pQ(i),o=gQ(i);return s=e||s>0?`${s}:`:"",`${t&&i>0?"-":""}${s}${n(r)}:${n(o)}`}const st={getIconUrl(){const i=new URL(this.config.iconUrl,window.location),e=window.location.host?window.location.host:window.top.location.host,t=i.host!==e||Ii.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements(){try{return this.elements.controls=vi.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:Lp.call(this,this.config.selectors.buttons.play),pause:vi.call(this,this.config.selectors.buttons.pause),restart:vi.call(this,this.config.selectors.buttons.restart),rewind:vi.call(this,this.config.selectors.buttons.rewind),fastForward:vi.call(this,this.config.selectors.buttons.fastForward),mute:vi.call(this,this.config.selectors.buttons.mute),pip:vi.call(this,this.config.selectors.buttons.pip),airplay:vi.c
vendor: 4,646 bytes, line 50
50all(this,this.config.selectors.buttons.airplay),settings:vi.call(this,this.config.selectors.buttons.settings),captions:vi.call(this,this.config.selectors.buttons.captions),fullscreen:vi.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=vi.call(this,this.config.selectors.progress),this.elements.inputs={seek:vi.call(this,this.config.selectors.inputs.seek),volume:vi.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:vi.call(this,this.config.selectors.display.buffer),currentTime:vi.call(this,this.config.selectors.display.currentTime),duration:vi.call(this,this.config.selectors.display.duration)},F.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(i){return this.debug.warn("It looks like there is a problem with your custom controls HTML",i),this.toggleNativeControls(!0),!1}},createIcon(i,e){const t="http://www.w3.org/2000/svg",n=st.getIconUrl.call(this),s=`${n.cors?"":n.url}#${this.config.iconPrefix}`,r=document.createElementNS(t,"svg");AC(r,oi(e,{"aria-hidden":"true",focusable:"false"}));const o=document.createElementNS(t,"use"),a=`${s}-${i}`;return"href"in o&&o.setAttributeNS("http://www.w3.org/1999/xlink","href",a),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),r.appendChild(o),r},createLabel(i,e={}){const t=Li.get(i,this.config);return St("span",{...e,class:[e.class,this.config.classNames.hidden].filter(Boolean).join(" ")},t)},createBadge(i){if(F.empty(i))return null;const e=St("span",{class:this.config.classNames.menu.value});return e.appendChild(St("span",{class:this.config.classNames.menu.badge},i)),e},createButton(i,e){const t=oi({},e);let n=dQ(i);const s={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(o=>{Object.keys(t).includes(o)&&(s[o]=t[o],delete t[o])}),s.element!=="button"||Object.keys(t).includes("type")||(t.type="button"),Object.keys(t).includes("class")?t.class.split(" ").some(o=>o===this.config.classNames.control)||oi(t,{class:`${t.class} ${this.config.classNames.control}`}):t.class=this.config.classNames.control,i){case"play":s.toggle=!0,s.label="play",s.labelPressed="pause",s.icon="play",s.iconPressed="pause";break;case"mute":s.toggle=!0,s.label="mute",s.labelPressed="unmute",s.icon="volume",s.iconPressed="muted";break;case"captions":s.toggle=!0,s.label="enableCaptions",s.labelPressed="disableCaptions",s.icon="captions-off",s.iconPressed="captions-on";break;case"fullscreen":s.toggle=!0,s.label="enterFullscreen",s.labelPressed="exitFullscreen",s.icon="enter-fullscreen",s.iconPressed="exit-fullscreen";break;case"play-large":t.class+=` ${this.config.classNames.control}--overlaid`,n="play",s.label="play",s.icon="play";break;default:F.empty(s.label)&&(s.label=n),F.empty(s.icon)&&(s.icon=i)}const r=St(s.element);return s.toggle?(r.appendChild(st.createIcon.call(this,s.iconPressed,{class:"icon--pressed"})),r.appendChild(st.createIcon.call(this,s.icon,{class:"icon--not-pressed"})),r.appendChild(st.createLabel.call(this,s.labelPressed,{class:"label--pressed"})),r.appendChild(st.createLabel.call(this,s.label,{class:"label--not-pressed"}))):(r.appendChild(st.createIcon.call(this,s.icon)),r.appendChild(st.createLabel.call(this,s.label))),oi(t,wr(this.config.selectors.buttons[n],t)),AC(r,t),n==="play"?(F.array(this.elements.buttons[n])||(this.elements.buttons[n]=[]),this.elements.buttons[n].push(r)):this.elements.buttons[n]=r,r},createRange(i,e){const t=St("input",oi(wr(this.config.selectors.inputs[i]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":Li.get(i,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},e));return this.elements.inputs[i]=t,st.updateRangeFill.call(this,t),FX.setup(t),t},createProgress(i,e){const t=St("progress",oi(wr(this.config.selectors.display[i]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},e));if(i!=="volume"){t.appendChild(St("span",null,"0"));const n={played:"played",buffer:"buffered"}[i],s=n?Li.get(n,this.config):"";t.innerText=`% ${s.toLowerCase()}`}return this.elements.display[i]=t,t},createTime(i,e){const t=wr(this.config.selectors.display[i],e),n=St("div",oi(t,{class:`${t.class?t.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":Li.get(i,this.config),role:"timer"}),"00:00");return this.elements.display[i]=n,n},bindMenuItemShortcuts(i,e){ee.call(this,i,"keydown keyup",t=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(t.key)||(t.preventDefault(),t.stopPropagation(),t.type==="
50keydown"))return;const n=hc(i,'[role="menuitemradio"]');if(!n&&[" ","ArrowRight"].includes(t.key))st.showMenuPanel.call(this,e,!0);else{let s;t.key!==" "&&(t.key==="ArrowDown"||n&&t.key==="ArrowRight"?(s=i.nextElementSibling,F.element(s)||(s=i.parentNode.firstElementChild)):(s=i.previousElementSibling,F.element(s)||(s=i.parentNode.lastElementChild)),XE.call(this,s,!0))}},!1),ee.call(this,i,"keyup",t=>{t.key==="Return"&&st.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:i,list:e,type:t,title:n,badge:s=null,checked:r=!1}){const o=wr(this.config.selectors.inputs[t]),a=St("button",oi(o,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${o.class?o.class:""}`.trim(),"aria-checked":r,value:i})),l=St("span");l.innerHTML=n,F.element(s)&&l.appendChild(s),a.appendChild(l),Object.defineProperty(a,"checked",{enumerable:!0,get:()=>a.getAttribute("aria-checked")==="true",set(c){c&&Array.from(a.parentNode.children).filter(u=>hc(u,'[role="menuitemradio"]')).forEach(u=>u.setAttribute("aria-checked","false")),a.setAttribute("aria-checked",c?"true":"false")}}),this.listeners.bind(a,"click keyup",c=>{if(!F.keyboardEvent(c)||c.key===" "){switch(c.preventDefault(),c.stopPropagation(),a.checked=!0,t){case"language":this.currentTrack=Number(i);break;case"quality":this.quality=i;break;case"speed":this.speed=parseFloat(i)}st.showMenuPanel.call(this,"home",F.keyboardEvent(c))}},t,!1),st.bindMenuItemShortcuts.call(this,a,t),e.appendChild(a)},formatTime(i=0,e=!1){return F.number(i)?Wk(i,l3(this.duration)>0,e):i},updateTimeDisplay(i=null,e=0,t=!1){F.element(i)&&F.number(e)&&(i.innerText=st.formatTime(e,t))},updateVolume(){this.supported.ui&&(F.element(this.elements.inputs.volume)&&st.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),F.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0))},setRange(i,e=0){F.element(i)&&(i.value=e,st.updateRangeFill.call(this,i))},updateProgress(i){if(!this.supported.ui||!F.event(i))return;let e=0;const t=(n,s)=>
50{const r=F.number(s)?s:0,o=F.element(n)?n:this.elements.display.buffer;if(F.element(o)){o.value=r;const a=o.getElementsByTagName("span")[0];F.element(a)&&(a.childNodes[0].nodeValue=r)}};if(i)switch(i.type){case"timeupdate":case"seeking":case"seeked":e=cQ(this.currentTime,this.duration),i.type==="timeupdate"&&st.setRange.call(this,this.elements.inputs.seek,e);break;case"playing":case"progress":t(this.elements.display.buffer,100*this.buffered)}},updateRangeFill(i){const e=F.event(i)?i.target:i;if(F.element(e)&&e.getAttribute("type")==="range"){if(hc(e,this.config.selectors.inputs.seek)){e.setAttribute("aria-valuenow",this.currentTime);const t=st.formatTime(this.currentTime),n=st.formatTime(this.duration),s=Li.get("seekLabel",this.config);e.setAttribute("aria-valuetext",s.replace("{currentTime}",t).replace("{duration}",n))}else if(hc(e,this.config.selectors.inputs.volume)){const t=100*e.value;e.setAttribute("aria-valuenow",t),e.setAttribute("aria-valuetext",`${t.toFixed(1)}%`)}else e.setAttribute("aria-valuenow",e.value);(Ii.isWebKit||Ii.isIPadOS)&&e.style.setProperty("--value",e.value/e.max*100+"%")}},updateSeekTooltip(i){var e,t;if(!this.config.tooltips.seek||!F.element(this.elements.inputs.seek)||!F.element(this.elements.display.seekTooltip)||this.duration===0)return;const n=this.elements.display.seekTooltip,s=`${this.config.classNames.tooltip}--visible`,r=u=>ce(n,s,u);if(this.touch)return void r(!1);let o=0;const a=this.elements.progress.getBoundingClientRect();if(F.event(i))o=100/a.width*(i.pageX-a.left);else{if(!nv(n,s))return;o=parseFloat(n.style.left,10)}o<0?o=0:o>100&&(o=100);const l=this.duration/100*o;n.innerText=st.formatTime(l);const c=(e=this.config.markers)===null||e===void 0||(t=e.points)===null||t===void 0?void 0:t.find(({time:u})=>u===Math.round(l));c&&n.insertAdjacentHTML("afterbegin",`${c.label}<br>`),n.style.left=`${o}%`,F.event(i)&&["mouseenter","mouseleave"].includes(i.type)&&r(i.type==="mouseenter")}
vendor: 5,715 bytes, line 50
50,timeUpdate(i){const e=!F.element(this.elements.display.duration)&&this.config.invertTime;st.updateTimeDisplay.call(this,this.elements.display.currentTime,e?this.duration-this.currentTime:this.currentTime,e),i&&i.type==="timeupdate"&&this.media.seeking||st.updateProgress.call(this,i)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return jl(this.elements.display.currentTime,!0),void jl(this.elements.progress,!0);F.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const i=F.element(this.elements.display.duration);!i&&this.config.displayDuration&&this.paused&&st.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),i&&st.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&st.setMarkers.call(this),st.updateSeekTooltip.call(this)},toggleMenuButton(i,e){jl(this.elements.settings.buttons[i],!e)},updateSetting(i,e,t){const n=this.elements.settings.panels[i];let s=null,r=e;if(i==="captions")s=this.currentTrack;else{if(s=F.empty(t)?this[i]:t,F.empty(s)&&(s=this.config[i].default),!F.empty(this.options[i])&&!this.options[i].includes(s))return void this.debug.warn(`Unsupported value of '${s}' for ${i}`);if(!this.config[i].options.includes(s))return void this.debug.warn(`Disabled value of '${s}' for ${i}`)}if(F.element(r)||(r=n&&n.querySelector('[role="menu"]')),!F.element(r))return;this.elements.settings.buttons[i].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=st.getLabel.call(this,i,s);const o=r&&r.querySelector(`[value="${s}"]`);F.element(o)&&(o.checked=!0)},getLabel(i,e){switch(i){case"speed":return e===1?Li.get("normal",this.config):`${e}×`;case"quality":if(F.number(e)){const t=Li.get(`qualityLabel.${e}`,this.config);return t.length?t:`${e}p`}return o3(e);case"captions":return ne.getLabel.call(this);default:return null}},setQualityMenu(i){if(!F.element(this.elements.settings.panels.quality))return;const e="quality",t=this.elements.settings.panels.quality.querySelector('[role="menu"]');F.array(i)&&(this.options.quality=MC(i).filter(r=>this.config.quality.options.includes(r)));const n=!F.empty(this.options.quality)&&this.options.quality.length>1;if(st.toggleMenuButton.call(this,e,n),iy(t),st.checkMenu.call(this),!n)return;const s=r=>{const o=Li.get(`qualityBadge.${r}`,this.config);return o.length?st.createBadge.call(this,o):null};this.options.quality.sort((r,o)=>{const a=this.config.quality.options;return a.indexOf(r)>a.indexOf(o)?1:-1}).forEach(r=>{st.createMenuItem.call(this,{value:r,list:t,type:e,title:st.getLabel.call(this,"quality",r),badge:s(r)})}),st.updateSetting.call(this,e,t)},setCaptionsMenu(){if(!F.element(this.elements.settings.panels.captions))return;const i="captions",e=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=ne.getTracks.call(this),n=!!t.length;if(st.toggleMenuButton.call(this,i,n),iy(e),st.checkMenu.call(this),!n)return;const s=t.map((r,o)=>({value:o,checked:this.captions.toggled&&this.currentTrack===o,title:ne.getLabel.call(this,r),badge:r.language&&st.createBadge.call(this,r.language.toUpperCase()),list:e,type:"language"}));s.unshift({value:-1,checked:!this.captions.toggled,title:Li.get("disabled",this.config),list:e,type:"language"}),s.forEach(st.createMenuItem.bind(this)),st.updateSetting.call(this,i,e)},setSpeedMenu(){if(!F.element(this.elements.settings.panels.speed))return;const i="speed",e=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(n=>n>=this.minimumSpeed&&n<=this.maximumSpeed);const t=!F.empty(this.options.speed)&&this.options.speed.length>1;st.toggleMenuButton.call(this,i,t),iy(e),st.checkMenu.call(this),t&&(this.options.speed.forEach(n=>{st.createMenuItem.call(this,{value:n,list:e,type:i,title:st.getLabel.call(this,"speed",n)})}),st.updateSetting.call(this,i,e))},checkMenu(){const{buttons:i}=this.elements.settings,e=!F.empty(i)&&Object.values(i).some(t=>!t.hidden);jl(this.elements.settings.menu,!e)},focusFirstMenuItem(i,e=!1){if(this.elements.settings.popup.hidden)return;let t=i;F.element(t)||(t=Object.values(this.elements.settings.panels).find(s=>!s.hidden));const n=t.querySelector('[role^="menuitem"]');XE.call(this,n,e)},toggleMenu(i){const{popup:e}=this.elements.settings,t=this.elements.buttons.settings;if(!F.element(e)||!F.element(t))return;const{hidden:n}=e;let s=n;if(F.boolean(i))s=i;else if(F.keyboardEvent(i)&&i.key==="Escape")s=!1;else if(F.event(i)){const r=F.function(i.composedPath)?i.composedPath()[0]:i.target,o=e.contains(r);if(o||!o&&i.target!==t&&s)return}t.setAttribute("aria-expanded",s),jl(e,!s),ce(this.elements.container,this.config.classNames.menu.open,s),s&&F.keyboardEvent(i)?st.focusFirstMenuItem.call(this,null,!0):s||n||XE.call(this,t,F.keyboardEvent(i))},getMenuSize(i){const e=i.cloneNode(!0);e.style.position="absolute",e.style.opacity=0,e.removeAttribute("hidden"),i.parentNode.appendChild(e);const t=e.scrollWidth,n=e.scrollHeight;return Xo(e),{width:t,height:n}},showMenuPanel(i="",e=!1){const t=this.elements.container.querySelector(`#plyr-settings-${this.id}-${i}`);if(!F.element(t))return;const n=t.parentNode,s=Array.from(n.children).find(r=>!r.hidden);if(ai.transitions&&!ai.reducedMotion){n.style.width=`${s.scrollWidth}px`,n.style.height=`${s.scrollHeight}px`;const r=st.getMenuSize.call(this,t),o=a=>{a.target===n&&["width","height"].includes(a.propertyName)&&(n.style.width="",n.style.height="",Hk.call(this,n,CC,o))};ee.call(this,n,CC,o),n.style.width=`${r.width}px`,n.style.height=`${r.height}px`}jl(s,!0),jl(t,!1),st.focusFirstMenuItem.call(this,t,e)}
50,setDownloadUrl(){const i=this.elements.buttons.download;F.element(i)&&i.setAttribute("href",this.download)},create(i){const{bindMenuItemShortcuts:e,createButton:t,createProgress:n,createRange:s,createTime:r,setQualityMenu:o,setSpeedMenu:a,showMenuPanel:l}=st;this.elements.controls=null,F.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(t.call(this,"play-large"));const c=St("div",wr(this.config.selectors.controls.wrapper));this.elements.controls=c;const u={class:"plyr__controls__item"};return MC(F.array(this.config.controls)?this.config.controls:[]).forEach(d=>{if(d==="restart"&&c.appendChild(t.call(this,"restart",u)),d==="rewind"&&c.appendChild(t.call(this,"rewind",u)),d==="play"&&c.appendChild(t.call(this,"play",u)),d==="fast-forward"&&c.appendChild(t.call(this,"fast-forward",u)),d==="progress"){const h=St("div",{class:`${u.class} plyr__progress__container`}),p=St("div",wr(this.config.selectors.progress));if(p.appendChild(s.call(this,"seek",{id:`plyr-seek-${i.id}`})),p.appendChild(n.call(this,"buffer")),this.config.tooltips.seek){const m=St("span",{class:this.config.classNames.tooltip},"00:00");p.appendChild(m),this.elements.display.seekTooltip=m}this.elements.progress=p,h.appendChild(this.elements.progress),c.appendChild(h)}if(d==="current-time"&&c.appendChild(r.call(this,"currentTime",u)),d==="duration"&&c.appendChild(r.call(this,"duration",u)),d==="mute"||d==="volume"){let{volume:h}=this.elements;if(F.element(h)&&c.contains(h)||(h=St("div",oi({},u,{class:`${u.class} plyr__volume`.trim()})),this.elements.volume=h,c.appendChild(h)),d==="mute"&&h.appendChild(t.call(this,"mute")),d==="volume"&&!Ii.isIos&&!Ii.isIPadOS){const p={max:1,step:.05,value:this.config.volume};h.appendChild(s.call(this,"volume",oi(p,{id:`plyr-volume-${i.id}`})))}}if(d==="captions"&&c.appendChild(t.call(this,"captions",u)),d==="settings"&&!F.empty(this.config.settings)){const h=St("div",oi({},u,{class:`${u.class} plyr__menu`.trim(),hidden:""}));h.appendChild(t.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${i.id}`,"aria-expanded":!1}));const p=St("div",{class:"plyr__menu__container",id:`plyr-settings-${i.id}`,hidden:""}),m=St("div"),g=St("div",{id:`plyr-settings-${i.id}-home`}),v=St("div",{role:"menu"});g.appendChild(v),m.appendChild(g),this.elements.settings.panels.home=g,this.config.settings.forEach(w=>{const _=St("button",oi(wr(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));e.call(this,_,w),ee.call(this,_,"click",()=>{l.call(this,w,!1)});const x=St("span",null,Li.get(w,this.config)),k=St("span",{class:this.config.classNames.menu.value});k.innerHTML=i[w],x.appendChild(k),_.appendChild(x),v.appendChild(_);const S=St("div",{id:`plyr-settings-${i.id}-${w}`,hidden:""}),T=St("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});T.appendChild(St("span",{"aria-hidden":!0},Li.get(w,this.config))),T.appendChild(St("span",{class:this.config.classNames.hidden},Li.get("menuBack",this.config))),ee.call(this,S,"keydown",E=>{E.key==="ArrowLeft"&&(E.preventDefault(),E.stopPropagation(),l.call(this,"home",!0))},!1),ee.call(this,T,"click",()=>{l.call(this,"home",!1)}),S.appendChild(T),S.appendChild(St("div",{role:"menu"})),m.appendChild(S),this.elements.settings.buttons[w]=_,this.elements.settings.panels[w]=S}),p.appendChild(m),h.appendChild(p),c.appendChild(h),this.elements.settings.popup=p,this.elements.settings.menu=h}if(d==="pip"&&ai.pip&&c.appendChild(t.call(this,"pip",u)),d==="airplay"&&ai.airplay&&c.appendChild(t.call(this,"airplay",u)),d==="download"){const h=oi({},u,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(h.download="");const{download:p}=this.config.urls;!F.url(p)&&this.isEmbed&&oi(h,{icon:`logo-${this.provider}`,label:this.provider}),c.appendChild(t.call(this,"download",h))}d==="fullscreen"&&c.appendChild(t.call(this,"fullscreen",u))}),this.isHTML5&&o.call(this,dl.getQualityOptions.call(this)),a.call(this),c},inject(){if(this.config.loadSprite){const s=st.getIconUrl.call(this);s.cors&&a3(s.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let i=null;this.elements.controls=null;const e={id:this.id,seektime:this.config.seekTime,title:this.config.title};let t=!0;
vendor: 4,482 bytes, line 50
50F.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,e)),this.config.controls||(this.config.controls=[]),F.element(this.config.controls)||F.string(this.config.controls)?i=this.config.controls:(i=st.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:ne.getLabel.call(this)}),t=!1);let n;if(t&&F.string(this.config.controls)&&(i=(s=>{let r=s;return Object.entries(e).forEach(([o,a])=>{r=dp(r,`{${o}}`,a)}),r})(i)),F.string(this.config.selectors.controls.container)&&(n=document.querySelector(this.config.selectors.controls.container)),F.element(n)||(n=this.elements.container),n[F.element(i)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",i),F.element(this.elements.controls)||st.findElements.call(this),!F.empty(this.elements.buttons)){const s=r=>{const o=this.config.classNames.controlPressed;r.setAttribute("aria-pressed","false"),Object.defineProperty(r,"pressed",{configurable:!0,enumerable:!0,get:()=>nv(r,o),set(a=!1){ce(r,o,a),r.setAttribute("aria-pressed",a?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach(r=>{F.array(r)||F.nodeList(r)?Array.from(r).filter(Boolean).forEach(s):s(r)})}if(Ii.isEdge&&ZN(n),this.config.tooltips.controls){const{classNames:s,selectors:r}=this.config,o=`${r.controls.wrapper} ${r.labels} .${s.hidden}`,a=Lp.call(this,o);Array.from(a).forEach(l=>{ce(l,this.config.classNames.hidden,!1),ce(l,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch{}},setMarkers(){var i,e;if(!this.duration||this.elements.markers)return;const t=(i=this.config.markers)===null||i===void 0||(e=i.points)===null||e===void 0?void 0:e.filter(({time:l})=>l>0&&l<this.duration);if(t==null||!t.length)return;const n=document.createDocumentFragment(),s=document.createDocumentFragment();let r=null;const o=`${this.config.classNames.tooltip}--visible`,a=l=>ce(r,o,l);t.forEach(l=>{const c=St("span",{class:this.config.classNames.marker},""),u=l.time/this.duration*100+"%";r&&(c.addEventListener("mouseenter",()=>{l.label||(r.style.left=u,r.innerHTML=l.label,a(!0))}),c.addEventListener("mouseleave",()=>{a(!1)})),c.addEventListener("click",()=>{this.currentTime=l.time}),c.style.left=u,s.appendChild(c)}),n.appendChild(s),this.config.tooltips.seek||(r=St("span",{class:this.config.classNames.tooltip},""),n.appendChild(r)),this.elements.markers={points:s,tip:r},this.elements.progress.appendChild(n)}};function c3(i,e=!0){let t=i;if(e){const n=document.createElement("a");n.href=t,t=n.href}try{return new URL(t)}catch{return null}}function u3(i){const e=new URLSearchParams;return F.object(i)&&Object.entries(i).forEach(([t,n])=>{e.set(t,n)}),e}const ne={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!ai.textTracks)return void(F.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&st.setCaptionsMenu.call(this));if(F.element(this.elements.captions)||(this.elements.captions=St("div",wr(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),iQ(this.elements.captions,this.elements.wrapper)),Ii.isIE&&window.URL){const n=this.media.querySelectorAll("track");Array.from(n).forEach(s=>{const r=s.getAttribute("src"),o=c3(r);o!==null&&o.hostname!==window.location.href.hostname&&["http:","https:"].includes(o.protocol)&&z0(r,"blob").then(a=>{s.setAttribute("src",window.URL.createObjectURL(a))}).catch(()=>{Xo(s)})})}const i=MC((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(n=>n.split("-")[0]));let e=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();e==="auto"&&([e]=i);let t=this.storage.get("captions");if(F.boolean(t)||({active:t}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:t,language:e,languages:i}),this.isHTML5){const n=this.config.captions.update?"addtrack removetrack":"removetrack";ee.call(this,this.media.textTracks,n,ne.update.bind(this))}setTimeout(ne.update.bind(this),0)},update(){const i=ne.getTracks.call(this,!0),{active:e,language:t,meta:n,currentTrackNode:s}=this.captions,r=!!i.find(o=>o.language===t);this.isHTML5&&this.isVideo&&i.filter(o=>
vendor: 5,161 bytes, lines 50-51
50!n.get(o)).forEach(o=>{this.debug.log("Track added",o),n.set(o,{default:o.mode==="showing"}),o.mode==="showing"&&(o.mode="hidden"),ee.call(this,o,"cuechange",()=>ne.updateCues.call(this))}),(r&&this.language!==t||!i.includes(s))&&(ne.setLanguage.call(this,t),ne.toggle.call(this,e&&r)),this.elements&&ce(this.elements.container,this.config.classNames.captions.enabled,!F.empty(i)),F.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&st.setCaptionsMenu.call(this)},toggle(i,e=!0){if(!this.supported.ui)return;const{toggled:t}=this.captions,n=this.config.classNames.captions.active,s=F.nullOrUndefined(i)?!t:i;if(s!==t){if(e||(this.captions.active=s,this.storage.set({captions:s})),!this.language&&s&&!e){const r=ne.getTracks.call(this),o=ne.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=o.language,void ne.set.call(this,r.indexOf(o))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=s),ce(this.elements.container,n,s),this.captions.toggled=s,st.updateSetting.call(this,"captions"),Tt.call(this,this.media,s?"captionsenabled":"captionsdisabled")}setTimeout(()=>{s&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(i,e=!0){const t=ne.getTracks.call(this);if(i!==-1)if(F.number(i))if(i in t){if(this.captions.currentTrack!==i){this.captions.currentTrack=i;const n=t[i],{language:s}=n||{};this.captions.currentTrackNode=n,st.updateSetting.call(this,"captions"),e||(this.captions.language=s,this.storage.set({language:s})),this.isVimeo&&this.embed.enableTextTrack(s),Tt.call(this,this.media,"languagechange")}ne.toggle.call(this,!0,e),this.isHTML5&&this.isVideo&&ne.updateCues.call(this)}else this.debug.warn("Track not found",i);else this.debug.warn("Invalid caption argument",i);else ne.toggle.call(this,!1,e)},setLanguage(i,e=!0){if(!F.string(i))return void this.debug.warn("Invalid language argument",i);const t=i.toLowerCase();this.captions.language=t;const n=ne.getTracks.call(this),s=ne.findTrack.call(this,[t]);ne.set.call(this,n.indexOf(s),e)},getTracks(i=!1){return Array.from((this.media||{}).textTracks||[]).filter(e=>!this.isHTML5||i||this.captions.meta.has(e)).filter(e=>["captions","subtitles"].includes(e.kind))},findTrack(i,e=!1){const t=ne.getTracks.call(this),n=o=>Number((this.captions.meta.get(o)||{}).default),s=Array.from(t).sort((o,a)=>n(a)-n(o));let r;return i.every(o=>(r=s.find(a=>a.language===o),!r)),r||(e?s[0]:void 0)},getCurrentTrack(){return ne.getTracks.call(this)[this.currentTrack]},getLabel(i){let e=i;return!F.track(e)&&ai.textTracks&&this.captions.toggled&&(e=ne.getCurrentTrack.call(this)),F.track(e)?F.empty(e.label)?F.empty(e.language)?Li.get("enabled",this.config):i.language.toUpperCase():e.label:Li.get("disabled",this.config)},updateCues(i){if(!this.supported.ui)return;if(!F.element(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!F.nullOrUndefined(i)&&!Array.isArray(i))return void this.debug.warn("updateCues: Invalid input",i);let e=i;if(!e){const n=ne.getCurrentTrack.call(this);e=Array.from((n||{}).activeCues||[]).map(s=>s.getCueAsHTML()).map(fQ)}const t=e.map(n=>n.trim()).join(` 51`);if(t!==this.elements.captions.innerHTML){iy(this.elements.captions);const n=St("span",wr(this.config.selectors.caption));n.innerHTML=t,this.elements.captions.appendChild(n),Tt.call(this,this.media,"cuechange")}}},d3={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.7.8/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"S
51D"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},QE={active:"picture-in-picture",inactive:"inline"},Sa={html5:"html5",youtube:"youtube",vimeo:"vimeo"},JE={audio:"audio",video:"video"};function mQ(i){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(i)?Sa.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(i)?Sa.vimeo:null}const ZE=()=>{};class bQ{constructor(e=!1){this.enabled=window.console&&e,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):ZE}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):ZE}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):ZE}}class Ks{constructor(e){at(this,"onChange",()=>{if(!this.supported)return;const t=this.player.elements.buttons.fullscreen;
51F.element(t)&&(t.pressed=this.active);const n=this.target===this.player.media?this.target:this.player.elements.container;Tt.call(this.player,n,this.active?"enterfullscreen":"exitfullscreen",!0)}),at(this,"toggleFallback",(t=!1)=>{if(t?this.scrollPosition={x:window.scrollX??0,y:window.scrollY??0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=t?"hidden":"",ce(this.target,this.player.config.classNames.fullscreen.fallback,t),Ii.isIos){let n=document.head.querySelector('meta[name="viewport"]');const s="viewport-fit=cover";n||(n=document.createElement("meta"),n.setAttribute("name","viewport"));const r=F.string(n.content)&&n.content.includes(s);t?(this.cleanupViewport=!r,r||(n.content+=`,${s}`)):this.cleanupViewport&&(n.content=n.content.split(",").filter(o=>o.trim()!==s).join(","))}this.onChange()}),at(this,"trapFocus",t=>{if(Ii.isIos||Ii.isIPadOS||!this.active||t.key!=="Tab")return;const n=document.activeElement,s=Lp.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[r]=s,o=s[s.length-1];n!==o||t.shiftKey?n===r&&t.shiftKey&&(o.focus(),t.preventDefault()):(r.focus(),t.preventDefault())}),at(this,"update",()=>{if(this.supported){let t;t=this.forceFallback?"Fallback (forced)":Ks.nativeSupported?"Native":"Fallback",this.player.debug.log(`${t} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");ce(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported)}),at(this,"enter",()=>{this.supported&&(Ii.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!Ks.nativeSupported||this.forceFallback?this.toggleFallback(!0):this.prefix?F.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),at(this,"exit",()=>{if(this.supported)if(Ii.isIos&&this.player.config.fullscreen.iosNative)this.player.isVimeo?this.player.embed.exitFullscreen():this.target.webkitEnterFullscreen(),Hr(this.player.play());else if(!Ks.nativeSupported||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!F.empty(this.prefix)){const t=this.prefix==="moz"?"Cancel":"Exit";document[`${this.prefix}${t}${this.property}`]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}),at(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=e,this.prefix=Ks.prefix,this.property=Ks.property,this.scrollPosition={x:0,y:0},this.forceFallback=e.config.fullscreen.fallback==="force",this.player.elements.fullscreen=e.config.fullscreen.container&&nQ(this.player.elements.container,e.config.fullscreen.container),ee.call(this.player,document,this.prefix==="ms"?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange()}),ee.call(this.player,this.player.elements.container,"dblclick",t=>{F.element(this.player.elements.controls)&&this.player.elements.controls.contains(t.target)||this.player.listeners.proxy(t,this.toggle,"fullscreen")}),ee.call(this,this.player.elements.container,"keydown",t=>this.trapFocus(t)),this.update()}static get nativeSupported(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get useNative(){return Ks.nativeSupported&&!this.forceFallback}static get prefix(){if(F.function(document.exitFullscreen))return"";let e="";return["webkit","moz","ms"].some(t=>!(!F.function(document[`${t}ExitFullscreen`])&&!F.function(document[`${t}CancelFullScreen`]))&&(e=t,!0)),e}static get property(){return this.prefix==="moz"?"FullScreen":"Fullscreen"}get supported(){return[this.player.config.fullscreen.enabled,this.player.isVideo,Ks.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||Ks.nativeSupported||!Ii.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}get active(){if(!this.supported)return!1;if(!Ks.nativeSupported||this.forceFallback)return nv(this.target,this.player.config.classNames.fullscreen.fallback);const e=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return e&&e.shadowRoot?e===this.target.getRootNode().host:e===this.target}get target(){return Ii.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen??this.player.elements.container}}
vendor: 4,762 bytes, line 51
51function ny(i,e=1){return new Promise((t,n)=>{const s=new Image,r=()=>{delete s.onload,delete s.onerror,(s.naturalWidth>=e?t:n)(s)};Object.assign(s,{onload:r,onerror:r,src:i})})}const me={addStyleHook(){ce(this.elements.container,this.config.selectors.container.replace(".",""),!0),ce(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(i=!1){i&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui)return this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),void me.toggleNativeControls.call(this,!0);F.element(this.elements.controls)||(st.inject.call(this),this.listeners.controls()),me.toggleNativeControls.call(this),this.isHTML5&&ne.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,st.updateVolume.call(this),st.timeUpdate.call(this),st.durationUpdate.call(this),me.checkPlaying.call(this),ce(this.elements.container,this.config.classNames.pip.supported,ai.pip&&this.isHTML5&&this.isVideo),ce(this.elements.container,this.config.classNames.airplay.supported,ai.airplay&&this.isHTML5),ce(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{Tt.call(this,this.media,"ready")},0),me.setTitle.call(this),this.poster&&me.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&st.durationUpdate.call(this),this.config.mediaMetadata&&st.setMediaMetadata.call(this)},setTitle(){let i=Li.get("play",this.config);if(F.string(this.config.title)&&!F.empty(this.config.title)&&(i+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach(e=>{e.setAttribute("aria-label",i)}),this.isEmbed){const e=vi.call(this,"iframe");if(!F.element(e))return;const t=F.empty(this.config.title)?"video":this.config.title,n=Li.get("frameTitle",this.config);e.setAttribute("title",n.replace("{title}",t))}},togglePoster(i){ce(this.elements.container,this.config.classNames.posterEnabled,i)},setPoster(i,e=!0){return e&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",i),this.elements.poster.removeAttribute("hidden"),oQ.call(this).then(()=>ny(i)).catch(t=>{throw i===this.poster&&me.togglePoster.call(this,!1),t}).then(()=>{if(i!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${i}')`,backgroundSize:""}),me.togglePoster.call(this,!0),i)))},checkPlaying(i){ce(this.elements.container,this.config.classNames.playing,this.playing),ce(this.elements.container,this.config.classNames.paused,this.paused),ce(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(e=>{Object.assign(e,{pressed:this.playing}),e.setAttribute("aria-label",Li.get(this.playing?"pause":"play",this.config))}),F.event(i)&&i.type==="timeupdate"||me.toggleControls.call(this)},checkLoading(i){this.loading=["stalled","waiting"].includes(i.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{ce(this.elements.container,this.config.classNames.loading,this.loading),me.toggleControls.call(this)},this.loading?250:0)},toggleControls(i){const{controls:e}=this.elements;if(e&&this.config.hideControls){const t=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(!!(i||this.loading||this.paused||e.pressed||e.hover||t))}},migrateStyles(){Object.values({...this.media.style}).filter(i=>!F.empty(i)&&F.string(i)&&i.startsWith("--plyr")).forEach(i=>{this.elements.container.style.setProperty(i,this.media.style.getPropertyValue(i)),this.media.style.removeProperty(i)}),F.empty(this.media.style)&&this.media.removeAttribute("style")}};class yQ{constructor(e){at(this,"firstTouch",()=>{const{player:t}=this,{elements:n}=t;t.touch=!0,ce(n.container,t.config.classNames.isTouch,!0)}),at(this,"global",(t=!0)=>{const{player:n}=this;n.config.keyboard.global&&Ip.call(n,window,"keydown keyup",this.handleKey,t,!1),Ip.call(n,document.body,"click",this.toggleMenu,t),qO.call(n,document.body,"touchstart",this.firstTouch)}),at(this,"container",()=>{const{player:t}=this,{config:n,elements:s,timers:r}=t;!n.keyboard.global&&n.keyboard.focused&&ee.call(t,s.container,"keydown keyup",this.handleKey,!1),ee.call(t,s.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",l=>{const{controls:c}=s;c&&l.type==="enterfullscreen"&&(c.pressed=!1,c.hover=!1);let u=0;["touchstart","touchmove","mousemove"].includes(l.type)&&(me.toggleControls.call(t,!0),u=t.touch?3e3:2e3),clearTimeout(r.controls),r.controls=setTimeout(()=>me.toggleControls.call(t,!1),u)});const o=()=>
51{if(!t.isVimeo||t.config.vimeo.premium)return;const l=s.wrapper,{active:c}=t.fullscreen,[u,d]=HO.call(t),h=n3(`aspect-ratio: ${u} / ${d}`);if(!c)return void(h?(l.style.width=null,l.style.height=null):(l.style.maxWidth=null,l.style.margin=null));const[p,m]=aQ(),g=p/m>u/d;h?(l.style.width=g?"auto":"100%",l.style.height=g?"100%":"auto"):(l.style.maxWidth=g?m/d*u+"px":null,l.style.margin=g?"0 auto":null)},a=()=>{clearTimeout(r.resized),r.resized=setTimeout(o,50)};ee.call(t,s.container,"enterfullscreen exitfullscreen",l=>{const{target:c}=t.fullscreen;c===s.container&&(!t.isEmbed&&F.empty(t.config.ratio)||(o(),(l.type==="enterfullscreen"?ee:Hk).call(t,window,"resize",a)))})}),at(this,"media",()=>{const{player:t}=this,{elements:n}=t;if(ee.call(t,t.media,"timeupdate seeking seeked",r=>st.timeUpdate.call(t,r)),ee.call(t,t.media,"durationchange loadeddata loadedmetadata",r=>st.durationUpdate.call(t,r)),ee.call(t,t.media,"ended",()=>{t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())}),ee.call(t,t.media,"progress playing seeking seeked",r=>st.updateProgress.call(t,r)),ee.call(t,t.media,"volumechange",r=>st.updateVolume.call(t,r)),ee.call(t,t.media,"playing play pause ended emptied timeupdate",r=>me.checkPlaying.call(t,r)),ee.call(t,t.media,"waiting canplay seeked playing",r=>me.checkLoading.call(t,r)),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){const r=vi.call(t,`.${t.config.classNames.video}`);
vendor: 2,173 bytes, line 51
51if(!F.element(r))return;ee.call(t,n.container,"click",o=>{([n.container,r].includes(o.target)||r.contains(o.target))&&(t.touch&&t.config.hideControls||(t.ended?(this.proxy(o,t.restart,"restart"),this.proxy(o,()=>{Hr(t.play())},"play")):this.proxy(o,()=>{Hr(t.togglePlay())},"play")))})}t.supported.ui&&t.config.disableContextMenu&&ee.call(t,n.wrapper,"contextmenu",r=>{r.preventDefault()},!1),ee.call(t,t.media,"volumechange",()=>{t.storage.set({volume:t.volume,muted:t.muted})}),ee.call(t,t.media,"ratechange",()=>{st.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})}),ee.call(t,t.media,"qualitychange",r=>{st.updateSetting.call(t,"quality",null,r.detail.quality)}),ee.call(t,t.media,"ready qualitychange",()=>{st.setDownloadUrl.call(t)});const s=t.config.events.concat(["keyup","keydown"]).join(" ");ee.call(t,t.media,s,r=>{let{detail:o={}}=r;r.type==="error"&&(o=t.media.error),Tt.call(t,n.container,r.type,!0,o)})}),at(this,"proxy",(t,n,s)=>{const{player:r}=this,o=r.config.listeners[s];let a=!0;F.function(o)&&(a=o.call(r,t)),a!==!1&&F.function(n)&&n.call(r,t)}),at(this,"bind",(t,n,s,r,o=!0)=>{const{player:a}=this,l=a.config.listeners[r],c=F.function(l);ee.call(a,t,n,u=>this.proxy(u,s,r),o&&!c)}),at(this,"controls",()=>{const{player:t}=this,{elements:n}=t,s=Ii.isIE?"change":"input";if(n.buttons.play&&Array.from(n.buttons.play).forEach(r=>{this.bind(r,"click",()=>{Hr(t.togglePlay())},"play")}),this.bind(n.buttons.restart,"click",t.restart,"restart"),this.bind(n.buttons.rewind,"click",()=>{t.lastSeekTime=Date.now(),t.rewind()},"rewind"),this.bind(n.buttons.fastForward,"click",()=>{t.lastSeekTime=Date.now(),t.forward()},"fastForward"),this.bind(n.buttons.mute,"click",()=>{t.muted=!t.muted},"mute"),this.bind(n.buttons.captions,"click",()=>t.toggleCaptions()),this.bind(n.buttons.download,"click",()=>{Tt.call(t,t.media,"download")},"download"),this.bind(n.buttons.fullscreen,"click",()=>{t.fullscreen.toggle()},"fullscreen"),this.bind(n.buttons.pip,"click",()=>{t.pip="toggle"},"pip"),this.bind(n.buttons.airplay,"click",t.airplay,"airplay"),this.bind(n.buttons.settings,"click",r=>{r.stopPropagation(),r.preventDefault(),st.toggleMenu.call(t,r)}
51,null,!1),this.bind(n.buttons.settings,"keyup",r=>{[" ","Enter"].includes(r.key)&&(r.key!=="Enter"?(r.preventDefault(),r.stopPropagation(),st.toggleMenu.call(t,r)):st.focusFirstMenuItem.call(t,null,!0))},null,!1),this.bind(n.settings.menu,"keydown",r=>{r.key==="Escape"&&st.toggleMenu.call(t,r)}),this.bind(n.inputs.seek,"mousedown mousemove",r=>{const o=n.progress.getBoundingClientRect(),a=100/o.width*(r.pageX-o.left);r.currentTarget.setAttribute("seek-value",a)}),this.bind(n.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",r=>{const o=r.currentTarget,a="play-on-seeked";if(F.keyboardEvent(r)&&!["ArrowLeft","ArrowRight"].includes(r.key))return;t.lastSeekTime=Date.now();const l=o.hasAttribute(a),c=["mouseup","touchend","keyup"].includes(r.type);l&&c?(o.removeAttribute(a),Hr(t.play())):!c&&t.playing&&(o.setAttribute(a,""),t.pause())}),Ii.isIos){const r=Lp.call(t,'input[type="range"]');Array.from(r).forEach(o=>this.bind(o,s,a=>ZN(a.target)))}this.bind(n.inputs.seek,s,r=>{const o=r.currentTarget;let a=o.getAttribute("seek-value");F.empty(a)&&(a=o.value),o.removeAttribute("seek-value"),t.currentTime=a/o.max*t.duration},"seek"),this.bind(n.progress,"mouseenter mouseleave mousemove",r=>st.updateSeekTooltip.call(t,r)),this.bind(n.progress,"mousemove touchmove",r=>{const{previewThumbnails:o}=t;o&&o.loaded&&o.startMove(r)}),this.bind(n.progress,"mouseleave touchend click",()=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.endMove(!1,!0)}),this.bind(n.progress,"mousedown touchstart",r=>{const{previewThumbnails:o}=t;o&&o.loaded&&o.startScrubbing(r)}),this.bind(n.progress,"mouseup touchend",r=>{const{previewThumbnails:o}=t;o&&o.loaded&&o.endScrubbing(r)}),Ii.isWebKit&&Array.from(Lp.call(t,'input[type="range"]')).forEach(r=>{this.bind(r,"input",o=>st.updateRangeFill.call(t,o.target))}),t.config.toggleInvert&&!F.element(n.display.duration)&&this.bind(n.display.currentTime,"click",()=>{t.currentTime!==0&&(t.config.invertTime=!t.config.invertTime,st.timeUpdate.call(t))}),this.bind(n.inputs.volume,s,r=>{t.volume=r.target.value},"volume"),this.bind(n.controls,"mouseenter mouseleave",r=>{n.controls.hover=!t.touch&&r.type==="mouseenter"}),n.fullscreen&&Array.from(n.fullscreen.children).filter(r=>
51!r.contains(n.container)).forEach(r=>{this.bind(r,"mouseenter mouseleave",o=>{n.controls&&(n.controls.hover=!t.touch&&o.type==="mouseenter")})}),this.bind(n.controls,"mousedown mouseup touchstart touchend touchcancel",r=>{n.controls.pressed=["mousedown","touchstart"].includes(r.type)}),this.bind(n.controls,"focusin",()=>{const{config:r,timers:o}=t;ce(n.controls,r.classNames.noTransition,!0),me.toggleControls.call(t,!0),setTimeout(()=>{ce(n.controls,r.classNames.noTransition,!1)},0);const a=this.touch?3e3:4e3;clearTimeout(o.controls),o.controls=setTimeout(()=>me.toggleControls.call(t,!1),a)}),this.bind(n.inputs.volume,"wheel",r=>{const o=r.webkitDirectionInvertedFromDevice,[a,l]=[r.deltaX,-r.deltaY].map(d=>o?-d:d),c=Math.sign(Math.abs(a)>Math.abs(l)?a:l);t.increaseVolume(c/50);const{volume:u}=t.media;(c===1&&u<1||c===-1&&u>0)&&r.preventDefault()},"volume",!1)}),this.player=e,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(e){const{player:t}=this,{elements:n}=t,{key:s,type:r,altKey:o,ctrlKey:a,metaKey:l,shiftKey:c}=e,u=r==="keydown",d=u&&s===this.lastKey;if(!(o||a||l||c)&&s){if(u){const p=document.activeElement;if(F.element(p)){const{editable:m}=t.config.selectors,{seek:g}=n.inputs;if(p!==g&&hc(p,m)||e.key===" "&&hc(p,'button, [role^="menuitem"]'))return}switch([" ","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(s)&&(e.preventDefault(),e.stopPropagation()),s){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":d||(h=parseInt(s,10),t.currentTime=t.duration/10*h);break;case" ":case"k":d||Hr(t.togglePlay());break;case"ArrowUp":t.increaseVolume(.1);break;case"ArrowDown":t.decreaseVolume(.1);break;case"m":d||(t.muted=!t.muted);break;case"ArrowRight":t.forward();break;case"ArrowLeft":t.rewind();break;case"f":t.fullscreen.toggle();break;case"c":d||t.toggleCaptions();break;case"l":t.loop=!t.loop}s==="Escape"&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=s}else this.lastKey=null;var h}}toggleMenu(e){st.toggleMenu.call(this.player,e)}}function vQ(i,e){return i(e={exports:{}},e.exports),e.exports}var wQ=vQ(function(i,e){i.exports=function(){var t=function(){},n={},s={},r={};function o(h,p){h=h.push?h:[h];var m,g,v,w=[],_=h.length,x=_;for(m=function(k,S){S.length&&w.push(k),--x||p(w)};_--;)g=h[_],(v=s[g])?m(g,v):(r[g]=r[g]||[]).push(m)}function a(h,p){if(h){var m=r[h];if(s[h]=p,m)for(;m.length;)m[0](h,p),m.splice(0,1)}}function l(h,p){h.call&&(h={success:h}),p.length?(h.error||t)(p):(h.success||t)(h)}function c(h,p,m,g){var v,w,_=document,x=m.async,k=(m.numRetries||0)+1,S=m.before||t,T=h.replace(/[\?|#].*$/,""),E=h.replace(/^(css|img)!/,"");g=g||0,/(^css!|\.css$)/.test(T)?((w=_.createElement("link")).rel="stylesheet",w.href=E,(v="hideFocus"in w)&&w.relList&&(v=0,w.rel="preload",w.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(T)?(w=_.createElement("img")).src=E:((w=_.createElement("script")).src=h,w.async=x===void 0||x),w.onload=w.onerror=w.onbeforeload=function(M){var A=M.type[0];if(v)try{w.sheet.cssText.length||(A="e")}catch(P){P.code!=18&&(A="e")}if(A=="e"){if((g+=1)<k)return c(h,p,m,g)}else if(w.rel=="preload"&&w.as=="style")return w.rel="stylesheet";p(h,A,M.defaultPrevented)},S(h,w)!==!1&&_.head.appendChild(w)}function u(h,p,m){var g,v,w=(h=h.push?h:[h]).length,_=w,x=[];for(g=function(k,S,T){if(S=="e"&&x.push(k),S=="b"){if(!T)return;x.push(k)}--w||p(x)},v=0;v<_;v++)c(h[v],g,m)}function d(h,p,m){var g,v;if(p&&p.trim&&(g=p),v=(g?m:p)||{},g){if(g in n)throw"LoadJS";n[g]=!0}function w(_,x){u(h,function(k){l(v,k),_&&l({success:_,error:x},k),a(g,k)},v)}if(v.returnPromise)return new Promise(w);w()}return d.ready=function(h,p){return o(h,function(m){l(p,m)}),d},d.done=function(h){a(h,[])},d.reset=function(){n={},s={},r={}},d.isDefined=function(h){return h in n},d}()});function WO(i){return new Promise((e,t)=>{wQ(i,{success:e,error:t})})}function _Q(i){return F.empty(i)?null:F.number(Number(i))?i:i.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:i}function xQ(i){const e=i.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return e&&e.length===5?e[4]:null}function _f(i){i&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===i&&(this.media.paused=!i,Tt.call(this,this.media,i?"play":"pause"))}const $C={setup(){const i=this;ce(i.elements.wrapper,i.config.classNames.embed,!0),i.options.speed=i.config.speed.options,Wh.call(i),F.object(window.Vimeo)?$C.ready.call(i):WO(i.config.urls.vimeo.sdk).then(()=>{$C.ready.call(i)}).catch(e=>{i.debug.warn("Vimeo SDK (player.js) failed to load",e)})},ready(){const i=this,e=i.config.vimeo,{premium:t,referrerPolicy:n,...s}=e;let r=i.media.getAttribute("src"),o="";F.empty(r)?(r=i.media.getAttribute(i.config.attributes.embed.id),o=i.media.getAttribute(i.config.attributes.embed.hash)):o=xQ(r);const a=o?{h:o}:{};t&&Object.assign(s,{controls:!1,sidedock:!1});const l=u3({loop:i.config.loop.active,autoplay:i.autoplay,muted:i.muted,gesture:"media",playsinline:i.config.playsinline,...a,...s}),c=_Q(r),u=St("iframe"),d=OC(i.config.urls.vimeo.iframe,c,l);if(u.setAttribute("src",d),u.setAttribute("allowfullscreen",""),u.setAttribute("allow",["auto
51play","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),F.empty(n)||u.setAttribute("referrerPolicy",n),t||!e.customControls)u.setAttribute("data-poster",i.poster),i.media=iv(u,i.media);else{const _=St("div",{class:i.config.classNames.embedContainer,"data-poster":i.poster});_.appendChild(u),i.media=iv(_,i.media)}e.customControls||z0(OC(i.config.urls.vimeo.api,d)).then(_=>{!F.empty(_)&&_.thumbnail_url&&me.setPoster.call(i,_.thumbnail_url).catch(()=>{})}),i.embed=new window.Vimeo.Player(u,{autopause:i.config.autopause,muted:i.muted}),i.media.paused=!0,i.media.currentTime=0,i.supported.ui&&i.embed.disableTextTrack(),i.media.play=()=>(_f.call(i,!0),i.embed.play()),i.media.pause=()=>(_f.call(i,!1),i.embed.pause()),i.media.stop=()=>{i.pause(),i.currentTime=0};let{currentTime:h}=i.media;Object.defineProperty(i.media,"currentTime",{get:()=>h,set(_){const{embed:x,media:k,paused:S,volume:T}=i,E=S&&!x.hasPlayed;k.seeking=!0,Tt.call(i,k,"seeking"),Promise.resolve(E&&x.setVolume(0)).then(()=>x.setCurrentTime(_)).then(()=>E&&x.pause()).then(()=>E&&x.setVolume(T)).catch(()=>{})}});let p=i.config.speed.selected;Object.defineProperty(i.media,"playbackRate",{get:()=>p,set(_){i.embed.setPlaybackRate(_).then(()=>{p=_,Tt.call(i,i.media,"ratechange")}).catch(()=>{i.options.speed=[1]})}});let{volume:m}=i.config;Object.defineProperty(i.media,"volume",{get:()=>m,set(_){i.embed.setVolume(_).then(()=>{m=_,Tt.call(i,i.media,"volumechange")})}});let{muted:g}=i.config;Object.defineProperty(i.media,"muted",{get:()=>g,set(_){const x=!!F.boolean(_)&&_;i.embed.setMuted(!!x||i.config.muted).then(()=>{g=x,Tt.call(i,i.media,"volumechange")})}});let v,{loop:w}=i.config;Object.defineProperty(i.media,"loop",{get:()=>w,set(_){const x=F.boolean(_)?_:i.config.loop.active;i.embed.setLoop(x).then(()=>{w=x})}}),i.embed.getVideoUrl().then(_=>{v=_,st.setDownloadUrl.call(i)}).catch(_=>{this.debug.warn(_)}),Object.defineProperty(i.media,"currentSrc",{get:()=>v}),Object.defineProperty(i.media,"ended",{get:()=>i.currentTime===i.duration}),Promise.all([i.embed.getVideoWidth(),i.embed.getVideoHeight()]).then(_=>{const[x,k]=_;i.embed.ratio=r3(x,k),Wh.call(this)}),i.embed.setAutopause(i.config.autopause).then(_=>{i.config.autopause=_}),i.embed.getVideoTitle().then(_=>{i.config.title=_,me.setTitle.call(this)}),i.embed.getCurrentTime().then(_=>{h=_,Tt.call(i,i.media,"timeupdate")}),i.embed.getDuration().then(_=>{i.media.duration=_,Tt.call(i,i.media,"durationchange")}),i.embed.getTextTracks().then(_=>{i.media.textTracks=_,ne.setup.call(i)}),i.embed.on("cuechange",({cues:_=[]})=>{const x=_.map(k=>hQ(k.text));ne.updateCues.call(i,x)}),i.embed.on("loaded",()=>{i.embed.getPaused().then(_=>{_f.call(i,!_),_||Tt.call(i,i.media,"playing")}),F.element(i.embed.element)&&i.supported.ui&&i.embed.element.setAttribute("tabindex",-1)}),i.embed.on("bufferstart",()=>{Tt.call(i,i.media,"waiting")}),i.embed.on("bufferend",()=>{Tt.call(i,i.media,"playing")}),i.embed.on("play",()=>{_f.call(i,!0),Tt.call(i,i.media,"playing")}),i.embed.on("pause",()=>{_f.call(i,!1)}),i.embed.on("timeupdate",_=>{i.media.seeking=!1,h=_.seconds,Tt.call(i,i.media,"timeupdate")}),i.embed.on("progress",_=>{i.media.buffered=_.percent,Tt.call(i,i.media,"progress"),parseInt(_.percent,10)===1&&Tt.call(i,i.media,"canplaythrough"),i.embed.getDuration().then(x=>{x!==i.media.duration&&(i.media.duration=x,Tt.call(i,i.media,"durationchange"))})}),i.embed.on("seeked",()=>{i.media.seeking=!1,Tt.call(i,i.media,"seeked")}),i.embed.on("ended",()=>{i.media.paused=!0,Tt.call(i,i.media,"ended")}),i.embed.on("error",_=>{i.media.error=_,Tt.call(i,i.media,"error")}),e.customControls&&setTimeout(()=>me.build.call(i),0)}};function SQ(i){return F.empty(i)?null:i.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:i}function xf(i){i&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===i&&(this.media.paused=!i,Tt.call(this,this.media,i?"play":"pause"))}function TQ(i){return i.noCookie?"https://www.youtube-nocookie.com":window.location.protocol==="http:"?"http://www.youtube.com":void 0}const sy={setup(){if(ce(this.elements.wrapper,this.config.classNames.embed,!0),F.object(window.YT)&&F.function(window.YT.Player))sy.ready.call(this);else{const i=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{F.function(i)&&i(),sy.ready.call(this)},WO(this.config.urls.youtube.sdk).catch(e=>{this.debug.warn("YouTube API failed to load",e)})}},getTitle(i){z0(OC(this.config.urls.youtube.api,i)).then(e=>{if(F.object(e)){const{title:t,height:n,width:s}=e;this.config.title=t,me.setTitle.call(this),this.embed.ratio=r3(s,n)}Wh.call(this)}).catch(()=>{Wh.call(this)})},ready(){const i=this,e=i.config.youtube,t=i.media&&i.media.getAttribute("id");if(!F.empty(t)&&t.startsWith("youtube-"))return;let n=i.media.getAttribute("src");F.empty(n)&&(n=i.media.getAttribute(this.config.attributes.embed.id));const s=SQ(n),r=St("div",{id:lQ(i.provider),"data-poster":e.customControls?i.poster:void 0});if(i.media=iv(r,i.media),e.customControls){const o=a=>`https://i.ytimg.com/vi/${s}/${a}default.jpg`;ny(o("maxres"),121).catch(()=>
vendor: 11,314 bytes, line 51
51ny(o("sd"),121)).catch(()=>ny(o("hq"))).then(a=>me.setPoster.call(i,a.src)).then(a=>{a.includes("maxres")||(i.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}i.embed=new window.YT.Player(i.media,{videoId:s,host:TQ(e),playerVars:oi({},{autoplay:i.config.autoplay?1:0,hl:i.config.hl,controls:i.supported.ui&&e.customControls?0:1,disablekb:1,playsinline:i.config.playsinline&&!i.config.fullscreen.iosNative?1:0,cc_load_policy:i.captions.active?1:0,cc_lang_pref:i.config.captions.language,widget_referrer:window?window.location.href:null},e),events:{onError(o){if(!i.media.error){const a=o.data,l={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[a]||"An unknown error occurred";i.media.error={code:a,message:l},Tt.call(i,i.media,"error")}},onPlaybackRateChange(o){const a=o.target;i.media.playbackRate=a.getPlaybackRate(),Tt.call(i,i.media,"ratechange")},onReady(o){if(F.function(i.media.play))return;const a=o.target;sy.getTitle.call(i,s),i.media.play=()=>{xf.call(i,!0),a.playVideo()},i.media.pause=()=>{xf.call(i,!1),a.pauseVideo()},i.media.stop=()=>{a.stopVideo()},i.media.duration=a.getDuration(),i.media.paused=!0,i.media.currentTime=0,Object.defineProperty(i.media,"currentTime",{get:()=>Number(a.getCurrentTime()),set(d){i.paused&&!i.embed.hasPlayed&&i.embed.mute(),i.media.seeking=!0,Tt.call(i,i.media,"seeking"),a.seekTo(d)}}),Object.defineProperty(i.media,"playbackRate",{get:()=>a.getPlaybackRate(),set(d){a.setPlaybackRate(d)}});let{volume:l}=i.config;Object.defineProperty(i.media,"volume",{get:()=>l,set(d){l=d,a.setVolume(100*l),Tt.call(i,i.media,"volumechange")}});let{muted:c}=i.config;Object.defineProperty(i.media,"muted",{get:()=>c,set(d){const h=F.boolean(d)?d:c;c=h,a[h?"mute":"unMute"](),a.setVolume(100*l),Tt.call(i,i.media,"volumechange")}}),Object.defineProperty(i.media,"currentSrc",{get:()=>a.getVideoUrl()}),Object.defineProperty(i.media,"ended",{get:()=>i.currentTime===i.duration});const u=a.getAvailablePlaybackRates();i.options.speed=u.filter(d=>i.config.speed.options.includes(d)),i.supported.ui&&e.customControls&&i.media.setAttribute("tabindex",-1),Tt.call(i,i.media,"timeupdate"),Tt.call(i,i.media,"durationchange"),clearInterval(i.timers.buffering),i.timers.buffering=setInterval(()=>{i.media.buffered=a.getVideoLoadedFraction(),(i.media.lastBuffered===null||i.media.lastBuffered<i.media.buffered)&&Tt.call(i,i.media,"progress"),i.media.lastBuffered=i.media.buffered,i.media.buffered===1&&(clearInterval(i.timers.buffering),Tt.call(i,i.media,"canplaythrough"))},200),e.customControls&&setTimeout(()=>me.build.call(i),50)},onStateChange(o){const a=o.target;switch(clearInterval(i.timers.playing),i.media.seeking&&[1,2].includes(o.data)&&(i.media.seeking=!1,Tt.call(i,i.media,"seeked")),o.data){case-1:Tt.call(i,i.media,"timeupdate"),i.media.buffered=a.getVideoLoadedFraction(),Tt.call(i,i.media,"progress");break;case 0:xf.call(i,!1),i.media.loop?(a.stopVideo(),a.playVideo()):Tt.call(i,i.media,"ended");break;case 1:e.customControls&&!i.config.autoplay&&i.media.paused&&!i.embed.hasPlayed?i.media.pause():(xf.call(i,!0),Tt.call(i,i.media,"playing"),i.timers.playing=setInterval(()=>{Tt.call(i,i.media,"timeupdate")},50),i.media.duration!==a.getDuration()&&(i.media.duration=a.getDuration(),Tt.call(i,i.media,"durationchange")));break;case 2:i.muted||i.embed.unMute(),xf.call(i,!1);break;case 3:Tt.call(i,i.media,"waiting")}Tt.call(i,i.elements.container,"statechange",!1,{code:o.data})}}})}},h3={setup(){this.media?(ce(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),ce(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&ce(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=St("div",{class:this.config.classNames.video}),e3(this.media,this.elements.wrapper),this.elements.poster=St("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?dl.setup.call(this):this.isYouTube?sy.setup.call(this):this.isVimeo&&$C.setup.call(this)):this.debug.warn("No media element found!")}};class kQ{constructor(e){at(this,"load",()=>{this.enabled&&(F.object(window.google)&&F.object(window.google.ima)?this.ready():WO(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}))}),at(this,"ready",()=>{var t;this.enabled||((t=this).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),at(this,"setupIMA",()=>{this.elements.container=St("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,t=>this.onAdsManagerLoaded(t),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,t=>this.onAdError(t),!1),this.requestAds()}),at(this,"requestAds",()=>{const{container:t}=this.player.elements;try{const n=new google.ima.AdsRequest;n.adTagUrl=this.tagUrl,n.linearAdSlotWidth=t.offsetWidth,n.linearAdSlotHeight=t.offsetHeight,n.nonLinearAdSlotWidth=t.offsetWidth,n.nonLinearAdSlotHeight=t.offsetHeight,n.forceNonLinearFullSlot=!1,n.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(n)}catch(n){this.onAdError(n)}}),at(this,"pollCountdown",(t=!1)=>{if(!t)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(()=>{const n=Wk(Math.max(this.manager.getRemainingTime(),0)),s=`${Li.get("advertisement",this.player.config)} - ${n}`;this.elements.container.setAttribute("data-badge-text",s)},100)}),at(this,"onAdsManagerLoaded",t=>{if(!this.enabled)return;const n=new google.ima.AdsRenderingSettings;n.restoreCustomPlaybackStateOnAdBreakComplete=!0,n.enablePreloading=!0,this.manager=t.getAdsManager(this.player,n),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,s=>this.onAdError(s)),Object.keys(google.ima.AdEvent.Type).forEach(s=>{this.manager.addEventListener(google.ima.AdEvent.Type[s],r=>this.onAdEvent(r))}),this.trigger("loaded")}),at(this,"addCuePoints",()=>{F.empty(this.cuePoints)||this.cuePoints.forEach(t=>{if(t!==0&&t!==-1&&t<this.player.duration){const n=this.player.elements.progress;if(F.element(n)){const s=100/this.player.duration*t,r=St("span",{class:this.player.config.classNames.cues});r.style.left=`${s.toString()}%`,n.appendChild(r)}}})}),at(this,"onAdEvent",t=>{const{container:n}=this.player.elements,s=t.getAd(),r=t.getAdData();switch((o=>{Tt.call(this.player,this.player.media,`ads${o.replace(/_/g,"").toLowerCase()}`)})(t.type),t.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),s.isLinear()||(s.width=n.offsetWidth,s.height=n.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:r.adError&&this.player.debug.warn(`Non-fatal ad error: ${r.adError.getMessage()}`)}}),at(this,"onAdError",t=>{this.cancel(),this.player.debug.warn("Ads error",t)}),at(this,"listeners",()=>{const{container:t}=this.player.elements;let n;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{n=this.player.currentTime}),this.player.on("seeked",()=>{const s=this.player.currentTime;F.empty(this.cuePoints)||this.cuePoints.forEach((r,o)=>{n<r&&r<s&&(this.manager.discardAdBreak(),this.cuePoints.splice(o,1))})}),window.addEventListener("resize",()=>{this.manager&&this.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)})}),at(this,"play",()=>{const{container:t}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(n){this.onAdError(n)}}).catch(()=>{})}),at(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,Hr(this.player.media.play())}),at(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),at(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),at(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(t=>{this.on("loaded",t),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),at(this,"trigger",(t,...n)=>{const s=this.events[t];F.array(s)&&s.forEach(r=>{F.function(r)&&r.apply(this,n)})}),at(this,"on",(t,n)=>(F.array(this.events[t])||(this.events[t]=[]),this.events[t].push(n),this)),at(this,"startSafetyTimer",(t,n)=>{this.player.debug.log(`Safety timer invoked from: ${n}`),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},t)}),at(this,"clearSafetyTimer",t=>{F.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${t}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=e,this.config=e.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((t,n)=>{this.on("loaded",t),this.on("error",n)}),this.load()}get enabled(){const{config:e}=this;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!F.empty(e.publisherId)||F.url(e.tagUrl))}get tagUrl(){const{config:e}=this;
51return F.url(e.tagUrl)?e.tagUrl:`https://go.aniview.com/api/adserver6/vast/?${u3({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:e.publisherId})}`}}function f3(i=0,e=0,t=255){return Math.min(Math.max(i,e),t)}const EQ=i=>{const e=[];return i.split(/\r\n\r\n|\n\n|\r\r/).forEach(t=>{const n={};t.split(/\r\n|\n|\r/).forEach(s=>{if(F.number(n.startTime)){if(!F.empty(s.trim())&&F.empty(n.text)){const r=s.trim().split("#xywh=");[n.text]=r,r[1]&&([n.x,n.y,n.w,n.h]=r[1].split(","))}}else{const r=s.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);r&&(n.startTime=60*Number(r[1]||0)*60+60*Number(r[2])+Number(r[3])+ +`0.${r[4]}`,n.endTime=60*Number(r[6]||0)*60+60*Number(r[7])+Number(r[8])+ +`0.${r[9]}`)}}),n.text&&e.push(n)}),e},BI=(i,e)=>{const t={};return i>e.width/e.height?(t.width=e.width,t.height=1/i*e.width):(t.height=e.height,t.width=i*e.height),t};class LC{constructor(e){at(this,"load",()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.listeners(),this.loaded=!0)})}),at(this,"getThumbnails",()=>new Promise(t=>{const{src:n}=this.player.config.previewThumbnails;if(F.empty(n))throw new Error("Missing previewThumbnails.src config attribute");const s=()=>{this.thumbnails.sort((r,o)=>r.height-o.height),this.player.debug.log("Preview thumbnails",this.thumbnails),t()};if(F.function(n))n(r=>{this.thumbnails=r,s()});else{const r=(F.string(n)?[n]:n).map(o=>this.getThumbnail(o));Promise.all(r).then(s)}})),at(this,"getThumbnail",t=>new Promise(n=>{z0(t).then(s=>{const r={frames:EQ(s),height:null,urlPrefix:""};r.frames[0].text.startsWith("/")||r.frames[0].text.startsWith("http://")||r.frames[0].text.startsWith("https://")||(r.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));const o=new Image;o.onload=()=>{r.height=o.naturalHeight,r.width=o.naturalWidth,this.thumbnails.push(r),n()},o.src=r.urlPrefix+r.frames[0].text})})),at(this,"startMove",t=>{if(this.loaded&&F.event(t)&&["touchmove","mousemove"].includes(t.type)&&this.player.media.duration){if(t.type==="touchmove")this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var n,s;const r=this.player.elements.progress.getBoundingClientRect(),o=100/r.width*(t.pageX-r.left);this.seekTime=this.player.media.duration*(o/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=t.pageX,this.elements.thumb.time.innerText=Wk(this.seekTime);const a=(n=this.player.config.markers)===null||n===void 0||(s=n.points)===null||s===void 0?void 0:s.find(({time:l})=>l===Math.round(this.seekTime));a&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${a.label}<br>`)}this.showImageAtCurrentTime()}}),at(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),at(this,"startScrubbing",t=>{(F.nullOrUndefined(t.button)||t.button===!1||t.button===0)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),at(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):qO.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),at(this,"listeners",()=>{this.player.on("play",()=>{this.toggleThumbContainer(!1,!0)}),this.player.on("seeked",()=>{this.toggleThumbContainer(!1)}),this.player.on("timeupdate",()=>{this.lastTime=this.player.media.currentTime})}),at(this,"render",()=>{this.elements.thumb.container=St("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=St("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const t=St("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=St("span",{},"00:00"),t.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(t),F.element
vendor: 9,810 bytes, line 51
51(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=St("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),at(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),at(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const t=this.thumbnails[0].frames.findIndex(r=>this.seekTime>=r.startTime&&this.seekTime<=r.endTime),n=t>=0;let s=0;this.mouseDown||this.toggleThumbContainer(n),n&&(this.thumbnails.forEach((r,o)=>{this.loadedImages.includes(r.frames[t].text)&&(s=o)}),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(s)))}),at(this,"loadImage",(t=0)=>{const n=this.showingThumb,s=this.thumbnails[t],{urlPrefix:r}=s,o=s.frames[n],a=s.frames[n].text,l=r+a;if(this.currentImageElement&&this.currentImageElement.dataset.filename===a)this.showImage(this.currentImageElement,o,t,n,a,!1),this.currentImageElement.dataset.index=n,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const c=new Image;c.src=l,c.dataset.index=n,c.dataset.filename=a,this.showingThumbFilename=a,this.player.debug.log(`Loading image: ${l}`),c.onload=()=>this.showImage(c,o,t,n,a,!0),this.loadingImage=c,this.removeOldImages(c)}}),at(this,"showImage",(t,n,s,r,o,a=!0)=>{this.player.debug.log(`Showing thumb: ${o}. num: ${r}. qual: ${s}. newimg: ${a}`),this.setImageSizeAndOffset(t,n),a&&(this.currentImageContainer.appendChild(t),this.currentImageElement=t,this.loadedImages.includes(o)||this.loadedImages.push(o)),this.preloadNearby(r,!0).then(this.preloadNearby(r,!1)).then(this.getHigherQuality(s,t,n,o))}),at(this,"removeOldImages",t=>{Array.from(this.currentImageContainer.children).forEach(n=>{if(n.tagName.toLowerCase()!=="img")return;const s=this.usingSprites?500:1e3;if(n.dataset.index!==t.dataset.index&&!n.dataset.deleting){n.dataset.deleting=!0;const{currentImageContainer:r}=this;setTimeout(()=>{r.removeChild(n),this.player.debug.log(`Removing thumb: ${n.dataset.filename}`)},s)}})}),at(this,"preloadNearby",(t,n=!0)=>new Promise(s=>{setTimeout(()=>{const r=this.thumbnails[0].frames[t].text;if(this.showingThumbFilename===r){let o;o=n?this.thumbnails[0].frames.slice(t):this.thumbnails[0].frames.slice(0,t).reverse();let a=!1;o.forEach(l=>{const c=l.text;if(c!==r&&!this.loadedImages.includes(c)){a=!0,this.player.debug.log(`Preloading thumb filename: ${c}`);const{urlPrefix:u}=this.thumbnails[0],d=u+c,h=new Image;h.src=d,h.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${c}`),this.loadedImages.includes(c)||this.loadedImages.push(c),s()}}}),a||s()}},300)})),at(this,"getHigherQuality",(t,n,s,r)=>{if(t<this.thumbnails.length-1){let o=n.naturalHeight;this.usingSprites&&(o=s.h),o<this.thumbContainerHeight&&setTimeout(()=>{this.showingThumbFilename===r&&(this.player.debug.log(`Showing higher quality thumb for: ${r}`),this.loadImage(t+1))},300)}}),at(this,"toggleThumbContainer",(t=!1,n=!1)=>{const s=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(s,t),!t&&n&&(this.showingThumb=null,this.showingThumbFilename=null)}),at(this,"toggleScrubbingContainer",(t=!1)=>{const n=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(n,t),t||(this.showingThumb=null,this.showingThumbFilename=null)}),at(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),at(this,"setThumbContainerSizeAndPos",()=>{const{imageContainer:t}=this.elements.thumb;if(this.sizeSpecifiedInCSS){if(t.clientHeight>20&&t.clientWidth<20){const n=Math.floor(t.clientHeight*this.thumbAspectRatio);t.style.width=`${n}px`}else if(t.clientHeight<20&&t.clientWidth>20){const n=Math.floor(t.clientWidth/this.thumbAspectRatio);t.style.height=`${n}px`}}else{const n=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);t.style.height=`${this.thumbContainerHeight}px`,t.style.width=`${n}px`}this.setThumbContainerPos()}),at(this,"setThumbContainerPos",()=>{const t=this.player.elements.progress.getBoundingClientRect(),n=this.player.elements.container.getBoundingClientRect(),{container:s}=this.elements.thumb,r=n.left-t.left+10,o=n.right-t.left-s.clientWidth-10,a=this.mousePosX-t.left-s.clientWidth/2,l=f3(a,r,o);s.style.left=`${l}px`,s.style.setProperty("--preview-arrow-offset",a-l+"px")}),at(this,"setScrubbingContainerSize",()=>{const{width:t,height:n}=BI(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${t}px`,this.elements.scrubbing.container.style.height=`${n}px`}),at(this,"setImageSizeAndOffset",(t,n)=>{if(!this.usingSprites)return;const s=this.thumbContainerHeight/n.h;t.style.height=t.naturalHeight*s+"px",t.style.width=t.naturalWidth*s+"px",t.style.left=`-${n.x*s}px`,t.style.top=`-${n.y*s}px`}),this.player=e,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:e}=BI(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return e}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(e){this.mouseDown?this.currentScrubbingImageElement=e:this.currentThumbnailImageElement=e}}const IC={insertElements(i,e){F.string(e)?DI(i,this.media,{src:e}):F.array(e)&&e.forEach(t=>{DI(i,this.media,t)})},change(i){t3(i,"sources.length")?(dl.cancelRequests.call(this),this.destroy.call(this,()=>{this.options.quality=[],Xo(this.media),this.media=null,F.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:e,type:t}=i,[{provider:n=Sa.html5,src:s}]=e,r=n==="html5"?t:"div",o=n==="html5"?{}:{src:s};Object.assign(this,{provider:n,type:t,supported:ai.check(t,n,this.config.playsinline),media:St(r,o)}),this.elements.container.appendChild(this.media),F.boolean(i.autoplay)&&(this.config.autoplay=i.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),F.empty(i.poster)||(this.poster=i.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),me.addStyleHook.call(this),this.isHTML5&&IC.insertElements.call(this,"source",e),this.config.title=i.title,h3.setup.call(this),this.isHTML5&&Object.keys(i).includes("tracks")&&IC.insertElements.call(this,"track",i.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&me.build.call(this),this.isHTML5&&this.media.load(),F.empty(i.previewThumbnails)||(Object.assign(this.config.previewThumbnails,i.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new LC(this))),this.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}};class Rp{constructor(e,t){if(at(this,"play",()=>F.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>Hr(this.media.play())),this.media.play()):null),at(this,"pause",()=>this.playing&&F.function(this.media.pause)?this.media.pause():null),at(this,"togglePlay",a=>(F.boolean(a)?a:!this.playing)?this.play():this.pause()),at(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):F.function(this.media.stop)&&this.media.stop()}),at(this,"restart",()=>{this.currentTime=0}),at(this,"rewind",a=>{this.currentTime-=F.number(a)?a:this.config.seekTime}),at(this,"forward",a=>{this.currentTime+=F.number(a)?a:this.config.seekTime}),at(this,"increaseVolume",a=>{const l=this.media.muted?0:this.volume;this.volume=l+(F.number(a)?a:0)}),at(this,"decreaseVolume",a=>{this.increaseVolume(-a)}),at(this,"airplay",()=>{ai.airplay&&this.media.webkitShowPlaybackTargetPicker()}),at(this,"toggleControls",a=>{if(this.supported.ui&&!this.isAudio){const l=nv(this.elements.container,this.config.classNames.hideControls),c=a===void 0?void 0:!a,u=ce(this.elements.container,this.config.classNames.hideControls,c);if(u&&F.array(this.config.controls)&&this.config.controls.includes("settings")&&!F.empty(this.config.settings)&&st.toggleMenu.call(this,!1),u!==l){const d=u?"controlshidden":"controlsshown";Tt.call(this,this.media,d)}return!u}return!1}),at(this,"on",(a,l)=>{ee.call(this,this.elements.container,a,l)}),at(this,"once",(a,l)=>{qO.call(this,this.elements.container,a,l)}),at(this,"off",(a,l)=>{Hk(this.elements.container,a,l)}),at(this,"destroy",(a,l=!1)=>
vendor: 9,299 bytes, line 51
51{if(!this.ready)return;const c=()=>{document.body.style.overflow="",this.embed=null,l?(Object.keys(this.elements).length&&(Xo(this.elements.buttons.play),Xo(this.elements.captions),Xo(this.elements.controls),Xo(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),F.function(a)&&a()):(rQ.call(this),dl.cancelRequests.call(this),iv(this.elements.original,this.elements.container),Tt.call(this,this.elements.original,"destroyed",!0),F.function(a)&&a.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(me.toggleNativeControls.call(this,!0),c()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),this.embed!==null&&F.function(this.embed.destroy)&&this.embed.destroy(),c()):this.isVimeo&&(this.embed!==null&&this.embed.unload().then(c),setTimeout(c,200))}),at(this,"supports",a=>ai.mime.call(this,a)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=ai.touch,this.media=e,F.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||F.nodeList(this.media)||F.array(this.media))&&(this.media=this.media[0]),this.config=oi({},d3,Rp.defaults,t||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch{return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new bQ(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",ai),F.nullOrUndefined(this.media)||!F.element(this.media))return void this.debug.error("Setup failed: no suitable element passed");if(this.media.plyr)return void this.debug.warn("Target already setup");if(!this.config.enabled)return void this.debug.error("Setup failed: disabled by config");if(!ai.check().api)return void this.debug.error("Setup failed: no support");const n=this.media.cloneNode(!0);n.autoplay=!1,this.elements.original=n;const s=this.media.tagName.toLowerCase();let r=null,o=null;switch(s){case"div":if(r=this.media.querySelector("iframe"),F.element(r)){if(o=c3(r.getAttribute("src")),this.provider=mQ(o.toString()),this.elements.container=this.media,this.media=r,this.elements.container.className="",o.search.length){const a=["1","true"];a.includes(o.searchParams.get("autoplay"))&&(this.config.autoplay=!0),a.includes(o.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=a.includes(o.searchParams.get("playsinline")),this.config.youtube.hl=o.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(F.empty(this.provider)||!Object.values(Sa).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=JE.video;break;case"video":case"audio":this.type=s,this.provider=Sa.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=ai.check(this.type,this.provider),this.supported.api?(this.eventListeners=[],this.listeners=new yQ(this),this.storage=new Dp(this),this.media.plyr=this,F.element(this.elements.container)||(this.elements.container=St("div"),e3(this.media,this.elements.container)),me.migrateStyles.call(this),me.addStyleHook.call(this),h3.setup.call(this),this.config.debug&&ee.call(this,this.elements.container,this.config.events.join(" "),a=>{this.debug.log(`event: ${a.type}`)}),this.fullscreen=new Ks(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&me.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new kQ(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>Hr(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new LC(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===Sa.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===Sa.youtube}get isVimeo(){return this.provider===Sa.vimeo}get isVideo(){return this.type===JE.video}get isAudio(){return this.type===JE.audio}get playing(){return!!(this.ready&&!this.paused&&!this.ended)}get paused(){return!!this.media.paused}get stopped(){return!!(this.paused&&this.currentTime===0)}get ended(){return!!this.media.ended}set currentTime(e){if(!this.duration)return;const t=F.number(e)&&e>0;this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:e}=this.media;return F.number(e)?e:e&&e.length&&this.duration>0?e.end(0)/this.duration:0}get seeking(){return!!this.media.seeking}get duration(){const e=parseFloat(this.config.duration),t=(this.media||{}).duration,n=F.number(t)&&t!==1/0?t:0;return e||n}set volume(e){let t=e;F.string(t)&&(t=Number(t)),F.number(t)||(t=this.storage.get("volume")),F.number(t)||({volume:t}=this.config),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!F.empty(e)&&this.muted&&t>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(e){let t=e;F.boolean(t)||(t=this.storage.get("muted")),F.boolean(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}get muted(){return!!this.media.muted}get hasAudio(){return!this.isHTML5||!!this.isAudio||!!this.media.mozHasAudio||!!this.media.webkitAudioDecodedByteCount||!!(this.media.audioTracks&&this.media.audioTracks.length)}set speed(e){let t=null;F.number(e)&&(t=e),F.number(t)||(t=this.storage.get("speed")),F.number(t)||(t=this.config.speed.selected);const{minimumSpeed:n,maximumSpeed:s}=this;t=f3(t,n,s),this.config.speed.selected=t,setTimeout(()=>{this.media&&(this.media.playbackRate=t)},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(e){const t=this.config.quality,n=this.options.quality;if(!n.length)return;let s=[!F.empty(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(F.number),r=!0;if(!n.includes(s)){const o=i3(n,s);this.debug.warn(`Unsupported quality option: ${s}, using ${o} instead`),s=o,r=!1}t.selected=s,this.media.quality=s,r&&this.storage.set({quality:s})}get quality(){return this.media.quality}set loop(e){const t=F.boolean(e)?e:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}get loop(){return!!this.media.loop}set source(e){IC.change.call(this,e)}get source(){return this.media.currentSrc}get download(){const{download:e}=this.config.urls;return F.url(e)?e:this.source}set download(e){F.url(e)&&(this.config.urls.download=e,st.setDownloadUrl.call(this))}set poster(e){this.isVideo?me.setPoster.call(this,e,!1).catch(()=>{}):this.debug.warn("Poster can only be set for video")}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const e=sv(HO.call(this));return F.array(e)?e.join(":"):e}set ratio(e){this.isVideo?F.string(e)&&s3(e)?(this.config.ratio=sv(e),Wh.call(this)):this.debug.error(`Invalid aspect ratio specified (${e})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(e){this.config.autoplay=F.boolean(e)?e:this.config.autoplay}get autoplay(){return!!this.config.autoplay}toggleCaptions(e){ne.toggle.call(this,e,!1)}set currentTrack(e){ne.set.call(this,e,!1),ne.setup.call(this)}get currentTrack(){const{toggled:e,currentTrack:t}=this.captions;return e?t:-1}set language(e){ne.setLanguage.call(this,e,!1)}get language(){return(ne.getCurrentTrack.call(this)||{}).language}set pip(e){if(!ai.pip)return;const t=F.boolean(e)?e:!this.pip;F.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?QE.active:QE.inactive),F.function(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}get pip(){return ai.pip?F.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===QE.active:null}setPreviewThumbnails(e){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,e),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new LC(this))}
51static supported(e,t){return ai.check(e,t)}static loadSprite(e,t){return a3(e,t)}static setup(e,t={}){let n=null;return F.string(e)?n=Array.from(document.querySelectorAll(e)):F.nodeList(e)?n=Array.from(e):F.array(e)&&(n=e.filter(F.element)),F.empty(n)?null:n.map(s=>new Rp(s,t))}}Rp.defaults=eQ(d3);const PQ=()=>({player:null,init(){this.player=new Rp(this.$el.querySelector(".video-player"),{controls:["play","play-large","progress","current-time","mute","volume","fullscreen"],youtube:{noCookie:!0},vimeo:{dnt:!0}})}});const Zr=Symbol(0);let rv=!1,DC=!1,lr=null,fd=null,Rs=null,as=0,td=[],jO={};const CQ=()=>{},of=0,p3=1,ov=2,jk=3;function AQ(){rv=!0,queueMicrotask(g3)}function g3(){if(!td.length){rv=!1;return}DC=!0;for(let i=0;i<td.length;i++)td[i].$st!==of&&MQ(td[i]);td=[],rv=!1,DC=!1}function MQ(i){let e=[i];for(;i=i[Zr];)i.$e&&i.$st!==of&&e.push(i);for(let t=e.length-1;t>=0;t--)QO(e[t])}function OQ(i){const e=av();return V0(e,i.length?i.bind(null,jh.bind(e)):i,null)}function nt(i){return V0(lr,i,null)}function Fp(i){return V0(null,i,null)}function ea(){DC||g3()}function Uk(){return lr}function Vn(i,e){try{return V0(e,i,null)}catch(t){UO(e,t);return}}function m3(i,e=lr){return e==null?void 0:e.$cx[i]}function $Q(i,e,t=lr){t&&(t.$cx={...t.$cx,[i]:e})}function jt(i){if(!i||!lr)return i||CQ;const e=lr;return e.$d?Array.isArray(e.$d)?e.$d.push(i):e.$d=[e.$d,i]:e.$d=i,function(){e.$st!==jk&&(i.call(null),Gk(e.$d)?e.$d=null:Array.isArray(e.$d)&&e.$d.splice(e.$d.indexOf(i),1))}}function jh(i=!0){if(this.$st!==jk){if(this.$h)if(Array.isArray(this.$h))for(let e=this.$h.length-1;e>=0;e--)jh.call(this.$h[e]);else jh.call(this.$h);if(i){const e=this[Zr];e&&(Array.isArray(e.$h)?e.$h.splice(e.$h.indexOf(this),1):e.$h=null),LQ(this)}}}function LQ(i){i.$st=jk,i.$d&&b3(i),i.$s&&RC(i,0),i[Zr]=null,i.$s=null,i.$o=null,i.$h=null,i.$cx=jO,i.$eh=null}function b3(i){try{if(Array.isArray(i.$d))for(let e=i.$d.length-1;e>=0;e--){const t=i.$d[e];t.call(t)}else i.$d.call(i.$d);i.$d=null}catch(e){UO(i,e)}}function V0(i,e,t){const n=lr,s=fd;lr=i,fd=t;try{return e.call(i)}finally{lr=n,fd=s}}function UO(i,e){if(!i||!i.$eh)throw e;let t=0,n=i.$eh.length,s=e;for(t=0;t<n;t++)try{i.$eh[t](s);break}catch(r){s=r}if(t===n)throw s}function GO(){return this.$st===jk?this.$v:(fd&&!this.$e&&(!Rs&&fd.$s&&fd.$s[as]==this?as++:Rs?Rs.push(this):Rs=[this]),this.$c&&QO(this),this.$v)}function y3(i){const e=Gk(i)?i(this.$v):i;if(this.$ch(this.$v,e)&&(this.$v=e,this.$o))for(let t=0;t<this.$o.length;t++)_3(this.$o[t],ov);return this.$v}const YO=function(){this[Zr]=null,this.$h=null,lr&&lr.append(this)},Nu=YO.prototype;Nu.$cx=jO;Nu.$eh=null;Nu.$c=null;Nu.$d=null;Nu.append=function(i){i[Zr]=this,this.$h?Array.isArray(this.$h)?this.$h.push(i):this.$h=[this.$h,i]:this.$h=i,i.$cx=i.$cx===jO?this.$cx:{...this.$cx,...i.$cx},this.$eh&&(i.$eh=i.$eh?[...i.$eh,...this.$eh]:this.$eh)};Nu.dispose=function(){jh.call(this)};function av(){return new YO}const v3=function(e,t,n){YO.call(this),this.$st=t?ov:of,this.$i=!1,this.$e=!1,this.$s=null,this.$o=null,this.$v=e,t&&(this.$c=t),n&&n.dirty&&(this.$ch=n.dirty)},KO=v3.prototype;Object.setPrototypeOf(KO,Nu);KO.$ch=IQ;KO.call=GO;function XO(i,e,t){return new v3(i,e,t)}function IQ(i,e){return i!==e}function Gk(i){return typeof i=="function"}function QO(i){if(i.$st===p3)for(let e=0;e<i.$s.length&&(QO(i.$s[e]),i.$st!==ov);e++);i.$st===ov?w3(i):i.$st=of}function DQ(i){i.$h&&jh.call(i,!1),i.$d&&b3(i),i.$eh=i[Zr]?i[Zr].$eh:null}function w3(i){let e=Rs,t=as;Rs=null,as=0;try{DQ(i);const n=V0(i,i.$c,i);zI(i),!i.$e&&i.$i?y3.call(i,n):(i.$v=n,i.$i=!0)}catch(n){zI(i),UO(i,n)}finally{Rs=e,as=t,i.$st=of}}function zI(i){if(Rs){if(i.$s&&RC(i,as),i.$s&&as>0){i.$s.length=as+Rs.length;for(let t=0;t<Rs.length;t++)i.$s[as+t]=Rs[t]}else i.$s=Rs;let e;for(let t=as;t<i.$s.length;t++)e=i.$s[t],e.$o?e.$o.push(i):e.$o=[i]}else i.$s&&as<i.$s.length&&(RC(i,as),i.$s.length=as)}function _3(i,e){if(!(i.$st>=e)&&(i.$e&&i.$st===of&&(td.push(i),rv||AQ()),i.$st=e,i.$o))for(let t=0;t<i.$o.length;t++)_3(i.$o[t],p3)}function RC(i,e){let t,n;for(let s=e;s<i.$s.length;s++)t=i.$s[s],t.$o&&(n=t.$o.indexOf(i),t.$o[n]=t.$o[t.$o.length-1],t.$o.pop())}function lv(...i){}function Kr(i){return i===null}function cr(i){return typeof i>"u"}function iut(i){return Kr(i)||cr(i)}function RQ(i){return(i==null?void 0:i.constructor)===Object}function Fs(i){return typeof i=="number"&&!Number.isNaN(i)}function Mt(i){return typeof i=="string"}function FQ(i){return typeof i=="boolean"}function ia(i){return typeof i=="function"}function en(i){return Array.isArray(i)}const NQ=Event,x3=Symbol("DOM_EVENT");var Uct;class Pe extends NQ{constructor(t,...n){var r,o;super(t,n[0]);O(this,Uct,!0);O(this,"detail");O(this,"triggers",new BQ);this.detail=(r=n[0])==null?void 0:r.detail;const s=(o=n[0])==null?void 0:o.trigger;s&&this.triggers.add(s)}get trigger(){return this.triggers.source}get originEvent(){return this.triggers.origin}get isOriginTrusted(){var t;return((t=this.triggers.origin)==null?void 0:t.isTrusted)??!1}}Uct=x3;class BQ{constructor(){O(this,"chain",[])}get source(){return this.chain[0]}get origin(){return this.chain[this.chain.length-1]}add(e){this.chain.push(e),zQ(e)&&this.chain.push(...e.triggers)}remove(e){return this.chain.splice(this.chain.indexOf(e),1)[0]}has(e){return this.chain.some(t=>t===e)}hasType(e){return!!this.findType(e)}findType(e){return this.chain.find(t=>t.type===e)}walk(e){for(const t of this.chain){const n=e(t);if(n)return[t,n]}}[Symbol.iterator](){return this.chain.values()}}function zQ(i){return!!(i!=null&&i[x3])}
51class S3 extends EventTarget{constructor(){super(...arguments);O(this,"$ts__events")}addEventListener(t,n,s){return super.addEventListener(t,n,s)}removeEventListener(t,n,s){return super.removeEventListener(t,n,s)}}function Ni(i,e,t,n){return i.addEventListener(e,t,n),jt(()=>i.removeEventListener(e,t,n))}var md,bd;class Ce{constructor(e){b(this,md,void 0);b(this,bd,void 0);D(this,md,e),D(this,bd,new AbortController),jt(this.abort.bind(this))}get signal(){return f(this,bd).signal}add(e,t,n){if(this.signal.aborted)throw Error("aborted");return f(this,md).addEventListener(e,t,{...n,signal:n!=null&&n.signal?VQ(this.signal,n.signal):this.signal}),this}remove(e,t){return f(this,md).removeEventListener(e,t),this}abort(e){f(this,bd).abort(e)}}md=new WeakMap,bd=new WeakMap;function VQ(...i){const e=new AbortController,t={signal:e.signal};function n(s){e.abort(s.target.reason)}for(const s of i){if(s.aborted){e.abort(s.reason);break}s.addEventListener("abort",n,t)}return e.signal}function VI(i){return!!(i!=null&&i.type.startsWith("pointer"))}function ry(i){return!!(i!=null&&i.type.startsWith("touch"))}function qQ(i){return/^(click|mouse)/.test((i==null?void 0:i.type)??"")}function Yk(i){return!!(i!=null&&i.type.startsWith("key"))}function HQ(i){return Yk(i)&&i.key==="Enter"}function T3(i){return Yk(i)&&(i.key==="Enter"||i.key===" ")}function WQ(i){return i instanceof Node}function ft(i,e,t){if(i)if(!t&&t!==""&&t!==0)i.removeAttribute(e);else{const n=t===!0?"":t+"";i.getAttribute(e)!==n&&i.setAttribute(e,n)}else return}function Gn(i,e,t){if(i)!t&&t!==0?i.style.removeProperty(e):i.style.setProperty(e,t+"");else return}function Ot(i,e){const t=XO(i,null,e),n=GO.bind(t);return n[Zr]=!0,n.set=y3.bind(t),n}function jQ(i){return Gk(i)&&Zr in i}function hr(i,e){const t=XO(e==null?void 0:e.initial,i,e),n=GO.bind(t);return n[Zr]=!0,n}function UQ(i,e){const t=XO(null,function(){let s=i();return Gk(s)&&jt(s),null},void 0);return t.$e=!0,w3(t),jh.bind(t,!0)}function GQ(i){return jQ(i)&&"set"in i}const G=UQ;function Ol(i){return{id:Symbol(),provide:i}}function ws(i,e,t=Uk()){var s;const n=!cr(e);$Q(i.id,n?e:(s=i.provide)==null?void 0:s.call(i),t)}function Re(i){return m3(i.id)}function _s(i){return!cr(m3(i.id))}const hp=Symbol(0),fp=Symbol(0),k3=Symbol(0),tP={};var Gct,yd,vd,bc,wd,Lv,E3,Iv,P3,Dv,C3,Rv,A3;class YQ{constructor(e,t,n){b(this,Lv);b(this,Iv);b(this,Dv);b(this,Rv);O(this,"$ts__events");O(this,"$ts__vars");O(this,Gct,null);O(this,"$el",Ot(null));O(this,"el",null);O(this,"scope",null);O(this,"attachScope",null);O(this,"connectScope",null);O(this,"component",null);O(this,"destroyed",!1);O(this,"props",tP);O(this,"attrs",null);O(this,"styles",null);O(this,"state");O(this,"$state");b(this,yd,[]);b(this,vd,[]);b(this,bc,[]);b(this,wd,[]);var o;this.scope=t,n!=null&&n.scope&&n.scope.append(t);let s=e.state,r=e.props;if(s&&(this.$state=s.create(),this.state=new Proxy(this.$state,{get:(a,l)=>this.$state[l]()}),ws(s,this.$state)),r&&(this.props=KQ(r),n!=null&&n.props))for(const a of Object.keys(n.props))(o=this.props[a])==null||o.set(n.props[a]);jt(this.destroy.bind(this))}setup(){Vn(()=>{for(const e of f(this,yd))e()},this.scope)}attach(e){this.el||(this.el=e,this.$el.set(e),Vn(()=>{this.attachScope=av(),Vn(()=>{for(const t of f(this,vd))t(this.el);y(this,Lv,E3).call(this),y(this,Iv,P3).call(this)},this.attachScope)},this.scope),e.dispatchEvent(new Event("attached")))}detach(){var e;(e=this.attachScope)==null||e.dispose(),this.attachScope=null,this.connectScope=null,this.el=null,this.$el.set(null)}connect(){!this.el||!this.attachScope||!f(this,bc).length||Vn(()=>{this.connectScope=av(),Vn(()=>{for(const e of f(this,bc))e(this.el)},this.connectScope)},this.attachScope)}disconnect(){var e;(e=this.connectScope)==null||e.dispose(),this.connectScope=null}destroy(){if(this.destroyed)return;this.destroyed=!0,Vn(()=>{for(const t of f(this,wd))t(this.el)},this.scope);const e=this.el;this.detach(),this.scope.dispose(),f(this,yd).length=0,f(this,vd).length=0,f(this,bc).length=0,f(this,wd).length=0,this.component=null,this.attrs=null,this.styles=null,this.props=tP,this.scope=null,this.state=tP,this.$state=null,e&&delete e.$}addHooks(e){e.onSetup&&f(this,yd).push(e.onSetup.bind(e)),e.onAttach&&f(this,vd).push(e.onAttach.bind(e)),e.onConnect&&f(this,bc).push(e.onConnect.bind(e)),e.onDestroy&&f(this,wd).push(e.onDestroy.bind(e))}}Gct=k3,yd=new WeakMap,vd=new WeakMap,bc=new WeakMap,wd=new WeakMap,Lv=new WeakSet,E3=function(){if(this.attrs)for(const e of Object.keys(this.attrs))ia(this.attrs[e])?G(y(this,Dv,C3).bind(this,e)):ft(this.el,e,this.attrs[e])},Iv=new WeakSet,P3=function(){if(this.styles)for(const e of Object.keys(this.styles))ia(this.styles[e])?G(y(this,Rv,A3).bind(this,e)):Gn(this.el,e,this.styles[e])},Dv=new WeakSet,C3=function(e){ft(this.el,e,this.attrs[e].call(this.component))},Rv=new WeakSet,A3=function(e){Gn(this.el,e,this.styles[e].call(this.component))};function KQ(i){const e={};for(const t of Object.keys(i)){const n=i[t];e[t]=Ot(n,n)}return e}let pp={$$:null};function XQ(i,e){return OQ(()=>{pp.$$=new YQ(i,Uk(),e);const t=new i;return pp.$$.component=t,pp.$$=null,t})}
51class qs extends EventTarget{constructor(){super();O(this,"$$");pp.$$&&this.attach(pp)}get el(){return this.$$.el}get $el(){return this.$$.$el()}get scope(){return this.$$.scope}get attachScope(){return this.$$.attachScope}get connectScope(){return this.$$.connectScope}get $props(){return this.$$.props}get $state(){return this.$$.$state}get state(){return this.$$.state}attach({$$:t}){return this.$$=t,t.addHooks(this),this}addEventListener(t,n,s){this.listen(t,n,s)}removeEventListener(t,n,s){var r;(r=this.el)==null||r.removeEventListener(t,n,s)}setAttributes(t){this.$$.attrs||(this.$$.attrs={}),Object.assign(this.$$.attrs,t)}setStyles(t){this.$$.styles||(this.$$.styles={}),Object.assign(this.$$.styles,t)}setCSSVars(t){this.setStyles(t)}createEvent(t,...n){return new Pe(t,n[0])}dispatch(t,...n){if(!this.el)return!1;const s=t instanceof Event?t:new Pe(t,n[0]);return Object.defineProperty(s,"target",{get:()=>this.$$.component}),Fp(()=>{var r,o;return(o=(r=this.$$)[k3])==null||o.call(r,s),this.el.dispatchEvent(s)})}dispatchEvent(t){return this.dispatch(t)}listen(t,n,s){return this.el?Ni(this.el,t,n,s):lv}}class wt extends qs{subscribe(e){return Vn(()=>G(()=>e(this.state)),this.$$.scope)}destroy(){this.$$.destroy()}}function zt(i,e,t){i[hp]||(i[hp]=new Set),i[hp].add(e)}function ei(i,e,t){i[fp]||(i[fp]=new Set),i[fp].add(e)}var _d;class $l{constructor(e){O(this,"id",Symbol(0));O(this,"record");b(this,_d,void 0);this.record=e,D(this,_d,Object.getOwnPropertyDescriptors(e))}create(){const e={},t=new Proxy(e,{get:(n,s)=>e[s]()});for(const n of Object.keys(this.record)){const s=f(this,_d)[n].get;e[n]=s?hr(s.bind(t)):Ot(this.record[n])}return e}reset(e,t){for(const n of Object.keys(e))!f(this,_d)[n].get&&(!t||t(n))&&e[n].set(this.record[n])}}_d=new WeakMap;function af(i){return Re(i)}function QQ(i,e){for(const t of i)t(e)}function M3(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function JQ(i){return i.replace(/-./g,e=>e[1].toUpperCase())}function ZQ(i){return i.charAt(0).toUpperCase()+i.slice(1)}function cv(i){return i?"true":"false"}function nut(i){return Object.keys(i)}function FC(){let i,e;return{promise:new Promise((n,s)=>{i=n,e=s}),resolve:i,reject:e}}function tJ(i){return new Promise(e=>setTimeout(e,i))}function lf(i){let e=-1,t;function n(...s){t=s,!(e>=0)&&(e=window.requestAnimationFrame(()=>{i.apply(this,t),e=-1,t=void 0}))}return n}const eJ=typeof window<"u"?"requestIdleCallback"in window?window.requestIdleCallback:i=>window.setTimeout(i,1):lv;function iJ(i,e){return new Promise(t=>{eJ(n=>{i==null||i(n),t()},e)})}var Jn={fullscreenEnabled:0,fullscreenElement:1,requestFullscreen:2,exitFullscreen:3,fullscreenchange:4,fullscreenerror:5,fullscreen:6},qI=["webkitFullscreenEnabled","webkitFullscreenElement","webkitRequestFullscreen","webkitExitFullscreen","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],HI=["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],WI=["msFullscreenEnabled","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"],Bn=typeof window<"u"&&typeof window.document<"u"?window.document:{},As="fullscreenEnabled"in Bn&&Object.keys(Jn)||qI[0]in Bn&&qI||HI[0]in Bn&&HI||WI[0]in Bn&&WI||[],vu={requestFullscreen:function(i){return i[As[Jn.requestFullscreen]]()},requestFullscreenFunction:function(i){return i[As[Jn.requestFullscreen]]},get exitFullscreen(){return Bn[As[Jn.exitFullscreen]].bind(Bn)},get fullscreenPseudoClass(){return":"+As[Jn.fullscreen]},addEventListener:function(i,e,t){return Bn.addEventListener(As[Jn[i]],e,t)},removeEventListener:function(i,e,t){return Bn.removeEventListener(As[Jn[i]],e,t)},get fullscreenEnabled(){return!!Bn[As[Jn.fullscreenEnabled]]},set fullscreenEnabled(i){},get fullscreenElement(){return Bn[As[Jn.fullscreenElement]]},set fullscreenElement(i){},get onfullscreenchange(){return Bn[("on"+As[Jn.fullscreenchange]).toLowerCase()]},set onfullscreenchange(i){return Bn[("on"+As[Jn.fullscreenchange]).toLowerCase()]=i},get onfullscreenerror(){return Bn[("on"+As[Jn.fullscreenerror]).toLowerCase()]},set onfullscreenerror(i){return Bn[("on"+As[Jn.fullscreenerror]).toLowerCase()]=i}},Bu=nJ;function nJ(i,e,t){var n=null,s=null,r=t&&t.leading,o=t&&t.trailing;r==null&&(r=!0),o==null&&(o=!r),r==!0&&(o=!1);var a=function(){n&&(clearTimeout(n),n=null)},l=function(){var u=s;a(),u&&u()},c=function(){var u=r&&!n,d=this,h=arguments;if(s=function(){return i.apply(d,h)},n||(n=setTimeout(function(){if(n=null,o)return s()},e)),u)return u=!1,s()};return c.cancel=a,c.flush=l,c}var JO=sJ;function sJ(i,e,t){var n=null,s=null,r=function(){n&&(clearTimeout(n),s=null,n=null)},o=function(){var l=s;r(),l&&l()},a=function(){if(!e)return i.apply(this,arguments);var l=this,c=arguments,u=t&&!n;
51if(r(),s=function(){i.apply(l,c)},n=setTimeout(function(){if(n=null,!u){var d=s;return s=null,d()}},e),u)return s()};return a.cancel=r,a.flush=o,a}const jI=i=>typeof i=="object"&&i!=null&&i.nodeType===1,UI=(i,e)=>(!e||i!=="hidden")&&i!=="visible"&&i!=="clip",_b=(i,e)=>{if(i.clientHeight<i.scrollHeight||i.clientWidth<i.scrollWidth){const t=getComputedStyle(i,null);return UI(t.overflowY,e)||UI(t.overflowX,e)||(n=>{const s=(r=>{if(!r.ownerDocument||!r.ownerDocument.defaultView)return null;try{return r.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!s&&(s.clientHeight<n.scrollHeight||s.clientWidth<n.scrollWidth)})(i)}return!1},xb=(i,e,t,n,s,r,o,a)=>r<i&&o>e||r>i&&o<e?0:r<=i&&a<=t||o>=e&&a>=t?r-i-n:o>e&&a<t||r<i&&a>t?o-e+s:0,rJ=i=>{const e=i.parentElement;return e??(i.getRootNode().host||null)},oJ=(i,e)=>{var t,n,s,r;if(typeof document>"u")return[];const{scrollMode:o,block:a,inline:l,boundary:c,skipOverflowHiddenElements:u}=e,d=typeof c=="function"?c:j=>j!==c;if(!jI(i))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,p=[];let m=i;for(;jI(m)&&d(m);){if(m=rJ(m),m===h){p.push(m);break}m!=null&&m===document.body&&_b(m)&&!_b(document.documentElement)||m!=null&&_b(m,u)&&p.push(m)}const g=(n=(t=window.visualViewport)==null?void 0:t.width)!=null?n:innerWidth,v=(r=(s=window.visualViewport)==null?void 0:s.height)!=null?r:innerHeight,{scrollX:w,scrollY:_}=window,{height:x,width:k,top:S,right:T,bottom:E,left:M}=i.getBoundingClientRect(),{top:A,right:P,bottom:L,left:I}=(j=>{const $=window.getComputedStyle(j);return{top:parseFloat($.scrollMarginTop)||0,right:parseFloat($.scrollMarginRight)||0,bottom:parseFloat($.scrollMarginBottom)||0,left:parseFloat($.scrollMarginLeft)||0}})(i);let z=a==="start"||a==="nearest"?S-A:a==="end"?E+L:S+x/2-A+L,q=l==="center"?M+k/2-I+P:l==="end"?T+P:M-I;const H=[];for(let j=0;j<p.length;j++){const $=p[j],{height:B,width:K,top:N,right:J,bottom:et,left:Z}=$.getBoundingClientRect();if(o==="if-needed"&&S>=0&&M>=0&&E<=v&&T<=g&&($===h&&!_b($)||S>=N&&E<=et&&M>=Z&&T<=J))return H;const U=getComputedStyle($),tt=parseInt(U.borderLeftWidth,10),it=parseInt(U.borderTopWidth,10),Y=parseInt(U.borderRightWidth,10),ot=parseInt(U.borderBottomWidth,10);let pt=0,mt=0;const lt="offsetWidth"in $?$.offsetWidth-$.clientWidth-tt-Y:0,xt="offsetHeight"in $?$.offsetHeight-$.clientHeight-it-ot:0,gt="offsetWidth"in $?$.offsetWidth===0?0:K/$.offsetWidth:0,ct="offsetHeight"in $?$.offsetHeight===0?0:B/$.offsetHeight:0;if(h===$)pt=a==="start"?z:a==="end"?z-v:a==="nearest"?xb(_,_+v,v,it,ot,_+z,_+z+x,x):z-v/2,mt=l==="start"?q:l==="center"?q-g/2:l==="end"?q-g:xb(w,w+g,g,tt,Y,w+q,w+q+k,k),pt=Math.max(0,pt+_),mt=Math.max(0,mt+w);else{pt=a==="start"?z-N-it:a==="end"?z-et+ot+xt:a==="nearest"?xb(N,et,B,it,ot+xt,z,z+x,x):z-(N+B/2)+xt/2,mt=l==="start"?q-Z-tt:l==="center"?q-(Z+K/2)+lt/2:l==="end"?q-J+Y+lt:xb(Z,J,K,tt,Y+lt,q,q+k,k);const{scrollLeft:$t,scrollTop:fe}=$;pt=ct===0?0:Math.max(0,Math.min(fe+pt/ct,$.scrollHeight-B/ct+xt)),mt=gt===0?0:Math.max(0,Math.min($t+mt/gt,$.scrollWidth-K/gt+lt)),z+=fe-pt,q+=$t-mt}H.push({el:$,top:pt,left:mt})}return H},eP=i=>i===null?"":i+"",aJ=i=>i===null?null:i+"",lJ=i=>i===null?0:Number(i),O3=i=>i!==null,cJ=()=>null,uJ=i=>i===null?[]:JSON.parse(i),dJ=i=>i===null?{}:JSON.parse(i);function hJ(i){if(i===null)return aJ;switch(typeof i){case"undefined":return eP;case"string":return eP;case"boolean":return O3;case"number":return lJ;case"function":return cJ;case"object":return en(i)?uJ:dJ;default:return eP}}const ga=Symbol(0),$3=Symbol(0),wu=Symbol(0),fc=Symbol(0);var na;(function(i){i[i.Idle=0]="Idle";const t=1;i[i.Pending=t]="Pending";const n=2;i[i.Ready=n]="Ready"})(na||(na={}));function _t(i,e){var n,s,r;class t extends i{constructor(...l){super(...l);O(this,"$");O(this,s,na.Idle);O(this,r,null);O(this,"keepAlive",!1);O(this,"forwardKeepAlive",!0);if(this.$=Vn(()=>XQ(e),null),this.$.$$.addHooks(this),e.props){const c=this.$props,u=Object.getOwnPropertyDescriptors(this);for(const d of Object.keys(u))d in e.props&&(c[d].set(this[d]),delete this[d])}}static get observedAttributes(){var l;if(!this[ga]&&e.props){const c=new Map;for(const u of Object.keys(e.props)){let d=(l=this.attrs)==null?void 0:l[u],h=Mt(d)?d:d&&(d==null?void 0:d.attr);
51h!==!1&&(h||(h=M3(u)),c.set(h,{prop:u,converter:d&&!Mt(d)&&(d==null?void 0:d.converter)||hJ(e.props[u])}))}this[ga]=c}return this[ga]?Array.from(this[ga].keys()):[]}get scope(){return this.$.$$.scope}get attachScope(){return this.$.$$.attachScope}get connectScope(){return this.$.$$.connectScope}get $props(){return this.$.$$.props}get $state(){return this.$.$$.$state}get state(){return this.$.state}attributeChangedCallback(l,c,u){var p;const d=this.constructor;if(!d[ga]){(p=super.attributeChangedCallback)==null||p.call(this,l,c,u);return}const h=d[ga].get(l);h&&(this[h.prop]=h.converter(u))}connectedCallback(){var u;const l=(u=this.$)==null?void 0:u.$$;if(!l||l.destroyed)return;if(this[wu]!==na.Ready){pJ.call(this);return}if(!this.isConnected)return;this.hasAttribute("keep-alive")&&(this.keepAlive=!0),l.connect(),en(this[fc])&&QQ(this[fc],this),this[fc]=null;const c=super.connectedCallback;c&&Vn(()=>c.call(this),this.connectScope)}disconnectedCallback(){var u;const l=(u=this.$)==null?void 0:u.$$;if(!l||l.destroyed)return;l.disconnect();const c=super.disconnectedCallback;c&&c.call(this),!this.keepAlive&&!this.hasAttribute("keep-alive")&&setTimeout(()=>{requestAnimationFrame(()=>{this.isConnected||l.destroy()})},0)}[(n=ga,s=wu,r=fc,$3)](){const l=this.$.$$,c=this.constructor;if(l.destroyed)return;const u=c[ga];if(u)for(const d of this.attributes){let h=u.get(d.name);h&&h.converter&&l.props[h.prop].set(h.converter(this.getAttribute(d.name)))}l.setup(),l.attach(this),this[wu]=na.Ready,this.connectedCallback()}subscribe(l){return this.$.subscribe(l)}destroy(){this.disconnectedCallback(),this.$.destroy()}}return O(t,"attrs"),O(t,n,null),fJ(t,e),t}function fJ(i,e){const t=i.prototype,n=e.prototype;if(e.props)for(const s of Object.keys(e.props))Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get(){return this.$props[s]()},set(r){this.$props[s].set(r)}});if(n[hp])for(const s of n[hp])Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get(){return this.$[s]},set(r){this.$[s]=r}});if(n[fp])for(const s of n[fp])t[s]=function(...r){return this.$[s](...r)}}function pJ(){if(this[wu]!==na.Idle)return;this[wu]=na.Pending;const i=mJ(this),e=i&&window.customElements.get(i.localName),t=i&&i[wu]===na.Ready;if(i&&(!e||!t)){gJ.call(this,i);return}L3.call(this,i)}async function gJ(i){await window.customElements.whenDefined(i.localName),i[wu]!==na.Ready&&await new Promise(e=>(i[fc]??(i[fc]=[])).push(e)),L3.call(this,i)}function L3(i){if(this.isConnected){if(i){i.keepAlive&&i.forwardKeepAlive&&(this.keepAlive=!0,this.setAttribute("keep-alive",""));const e=this.$.$$.scope;e&&i.$.$$.attachScope.append(e)}this[$3]()}}function mJ(i){let e=i.parentNode,t=i.localName.split("-",1)[0]+"-";for(;e;){if(e.nodeType===1&&e.localName.startsWith(t))return e;e=e.parentNode}return null}function yt(i,e=!1){(e||!window.customElements.get(i.tagName))&&window.customElements.define(i.tagName,i)}var sut='<path fill-rule="evenodd" clip-rule="evenodd" d="M6 7C5.63181 7 5.33333 7.29848 5.33333 7.66667V14.8667C5.33333 14.9403 5.39361 14.9999 5.46724 15.0009C10.8844 15.0719 15.2614 19.449 15.3325 24.8661C15.3334 24.9397 15.393 25 15.4667 25H26C26.3682 25 26.6667 24.7015 26.6667 24.3333V7.66667C26.6667 7.29848 26.3682 7 26 7H6ZM17.0119 22.2294C17.0263 22.29 17.0802 22.3333 17.1425 22.3333H23.3333C23.7015 22.3333 24 22.0349 24 21.6667V10.3333C24 9.96514 23.7015 9.66667 23.3333 9.66667H8.66667C8.29848 9.66667 8 9.96514 8 10.3333V13.1909C8 13.2531 8.04332 13.3071 8.10392 13.3214C12.5063 14.3618 15.9715 17.827 17.0119 22.2294Z" fill="currentColor"/> <path d="M13.2 25C13.2736 25 13.3334 24.9398 13.3322 24.8661C13.2615 20.5544 9.77889 17.0718 5.46718 17.0011C5.39356 16.9999 5.33333 17.0597 5.33333 17.1333V18.8667C5.33333 18.9403 5.39348 18.9999 5.4671 19.0015C8.67465 19.0716 11.2617 21.6587 11.3319 24.8662C11.3335 24.9399 11.393 25 11.4667 25H13.2Z" fill="currentColor"/> <path d="M5.33333 21.1333C5.33333 21.0597 5.39332 20.9998 5.46692 21.0022C7.57033 21.0712 9.26217 22.763 9.33114 24.8664C9.33356 24.94 9.27364 25 9.2 25H6C5.63181 25 5.33333 24.7015 5.33333 24.3333V21.1333Z" fill="currentColor"/>';const bJ="modulepreload",yJ=function(i,e){return new URL(i,e).href},GI={},Yn=function(e,t,n){if(!t||t.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(t.map(r=>{if(r=yJ(r,n),r in GI)return;GI[r]=!0;const o=r.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!n)for(let u=s.length-1;u>=0;u--){const d=s[u];if(d.href===r&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${a}`))return;const c=document.createElement("link");if(c.rel=o?"stylesheet":bJ,o||(c.as="script",c.crossOrigin=""),c.href=r,document.head.appendChild(c),o)return new Promise((u,d)=>{c.addEventListener("load",u),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>e()).catch(r=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=r,window.dispatchEvent(o),!o.defaultPrevented)throw r})},I3=Ol();function Dt(){return Re(I3)}const vJ=(navigator==null?void 0:navigator.userAgent.toLowerCase())||"",D3=/iphone|ipad|ipod|ios|crios|fxios/i.test(vJ),R3=/(iphone|ipod)/gi.test((navigator==null?void 0:navigator.platform)||""),wJ=!!window.chrome,rut=!!window.safari||D3;function F3(){return _J()&&ia(screen.orientation.unlock)}function _J(){return!cr(window.screen.orientation)&&!cr(window.screen.orientation.lock)}
51function xJ(i,e){return i||(i=document.createElement("audio")),i.canPlayType(e).length>0}function SJ(i,e){return i||(i=document.createElement("video")),i.canPlayType(e).length>0}function TJ(i){return i||(i=document.createElement("video")),i.canPlayType("application/vnd.apple.mpegurl").length>0}function out(i){return!!document.pictureInPictureEnabled&&!(i!=null&&i.disablePictureInPicture)}function aut(i){return ia(i==null?void 0:i.webkitSupportsPresentationMode)&&ia(i==null?void 0:i.webkitSetPresentationMode)}async function kJ(){const i=document.createElement("video");return i.volume=.5,await tJ(0),i.volume===.5}function EJ(){return(window==null?void 0:window.ManagedMediaSource)??(window==null?void 0:window.MediaSource)??(window==null?void 0:window.WebKitMediaSource)}function PJ(){return(window==null?void 0:window.SourceBuffer)??(window==null?void 0:window.WebKitSourceBuffer)}function ZO(){const i=EJ();if(cr(i))return!1;const e=i&&ia(i.isTypeSupported)&&i.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),t=PJ(),n=cr(t)||!cr(t.prototype)&&ia(t.prototype.appendBuffer)&&ia(t.prototype.remove);return!!e&&!!n}function CJ(){return ZO()}const AJ=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx|flac)($|\?)/i,MJ=new Set(["audio/mpeg","audio/ogg","audio/3gp","audio/mp3","audio/webm","audio/flac","audio/m4a","audio/m4b","audio/mp4a","audio/mp4"]),OJ=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,$J=new Set(["video/mp4","video/webm","video/3gp","video/ogg","video/avi","video/mpeg"]),LJ=/\.(m3u8)($|\?)/i,IJ=/\.(mpd)($|\?)/i,DJ=new Set(["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"]),RJ=new Set(["application/dash+xml"]);function N3({src:i,type:e}){return Mt(i)?AJ.test(i)||MJ.has(e)||i.startsWith("blob:")&&e==="audio/object":e==="audio/object"}function B3(i){return Mt(i.src)?OJ.test(i.src)||$J.has(i.type)||i.src.startsWith("blob:")&&i.type==="video/object"||q0(i)&&TJ():i.type==="video/object"}function q0({src:i,type:e}){return Mt(i)&&LJ.test(i)||DJ.has(e)}function t$({src:i,type:e}){return Mt(i)&&IJ.test(i)||RJ.has(e)}function FJ(i){return Mt(i.src)&&(N3(i)||B3(i)||q0(i))}function lut(i){return typeof window.MediaStream<"u"&&i instanceof window.MediaStream}var mo;class oy{constructor(e,t){b(this,mo,void 0);en(e)?D(this,mo,e):!cr(e)&&!cr(t)?D(this,mo,[[e,t]]):D(this,mo,[])}get length(){return f(this,mo).length}start(e){return f(this,mo)[e][0]??1/0}end(e){return f(this,mo)[e][1]??1/0}}mo=new WeakMap;function YI(i){if(!i.length)return null;let e=i.start(0);for(let t=1;t<i.length;t++){const n=i.start(t);n<e&&(e=n)}return e}function ac(i){if(!i.length)return null;let e=i.end(0);for(let t=1;t<i.length;t++){const n=i.end(t);n>e&&(e=n)}return e}function NJ(i){if(i.length<=1)return i;i.sort((n,s)=>n[0]-s[0]);let e=[],t=i[0];for(let n=1;n<i.length;n++){const s=i[n];t[1]>=s[0]-1?t=[t[0],Math.max(t[1],s[1])]:(e.push(t),t=s)}return e.push(t),e}function BJ(i,e,t){let n=e[0],s=e[1];return t<n?[t,-1]:t===n?e:n===-1?(e[0]=t,e):(t>n&&(e[1]=t,s===-1&&i.push(e)),NJ(i),e)}function cut(i,e){const t=new URL(i);for(const n of Object.keys(e))t.searchParams.set(n,e[n]+"");return t.toString()}function H0(i,e="preconnect"){const t=document.querySelector(`link[href="${i}"]`);if(!Kr(t))return!0;const n=document.createElement("link");return n.rel=e,n.href=i,n.crossOrigin="true",document.head.append(n),!0}const Sf={};function uut(i){if(Sf[i])return Sf[i].promise;const e=FC(),t=document.querySelector(`script[src="${i}"]`);if(!Kr(t))return e.resolve(),e.promise;Sf[i]=e;const n=document.createElement("script");return n.src=i,n.onload=()=>{e.resolve(),delete Sf[i]},n.onerror=()=>{e.reject(),delete Sf[i]},setTimeout(()=>document.head.append(n),0),e.promise}function gp(i){return i==="use-credentials"?"include":Mt(i)?"same-origin":void 0}function NC(i,e){return e>=i.startTime&&e<i.endTime}function Kk(i,e,t){let n=null,s=Uk();function r(){const o=Mt(e)?[e]:e,a=i.toArray().find(l=>o.includes(l.kind)&&l.mode==="showing");if(a!==n){if(!a){t(null),n=null;return}a.readyState==2?t(a):(t(null),Vn(()=>{const l=Ni(a,"load",()=>{t(a),l()},{once:!0})},s)),n=a}}return r(),Ni(i,"mode-change",r)}function zJ(i,e,t){Kk(i,e,n=>{if(!n){t("");return}const s=()=>{const r=n==null?void 0:n.activeCues[0];t((r==null?void 0:r.text)||"")};s(),Ni(n,"cue-change",s)})}const VJ=Symbol(0),qJ=Symbol(0),HJ=Symbol(0),WJ=Symbol(0),jJ=Symbol(0),UJ=Symbol(0),GJ=Symbol(0),Gt={crossOrigin:VJ,readyState:qJ,updateActiveCues:HJ,canLoad:WJ,onModeChange:jJ,native:UJ,nativeHLS:GJ};var Jp,bo,yc,Zp,vc,Vi,yo,Yct,Kct,Xct,Qct,Fv,z3,tg,BC,wc,Bf,eg,zC,ig,VC,ng,qC,GR;let uv=(GR=class extends S3{constructor(t){super();b(this,Fv);b(this,tg);b(this,wc);b(this,eg);b(this,ig);b(this,ng);O(this,"src");O(this,"content");O(this,"type");O(this,"encoding");O(this,"id","");O(this,"label","");O(this,"language","");O(this,"kind");O(this,"default",!1);b(this,Jp,!1);b(this,bo,0);b(this,yc,"disabled");b(this,Zp,{});b(this,vc,[]);b(this,Vi,[]);b(this,yo,[]);O(this,Yct,0);O(this,Kct);O(this,Xct,null);O(this,Qct,null);for(const n of Object.keys(t))this[n]=t[n];
51this.type||(this.type="vtt"),t.content?y(this,Fv,z3).call(this,t):t.src||(this[Gt.readyState]=2)}static createId(t){return`vds-${t.type}-${t.kind}-${t.src??t.label??"?"}`}get metadata(){return f(this,Zp)}get regions(){return f(this,vc)}get cues(){return f(this,Vi)}get activeCues(){return f(this,yo)}get readyState(){return this[Gt.readyState]}get mode(){return f(this,yc)}set mode(t){this.setMode(t)}addCue(t,n){var o;let s=0,r=f(this,Vi).length;for(s=0;s<r&&!(t.endTime<=f(this,Vi)[s].startTime);s++);s===r?f(this,Vi).push(t):f(this,Vi).splice(s,0,t),t instanceof TextTrackCue||(o=this[Gt.native])==null||o.track.addCue(t),this.dispatchEvent(new Pe("add-cue",{detail:t,trigger:n})),NC(t,f(this,bo))&&this[Gt.updateActiveCues](f(this,bo),n)}removeCue(t,n){var r;const s=f(this,Vi).indexOf(t);if(s>=0){const o=f(this,yo).includes(t);f(this,Vi).splice(s,1),(r=this[Gt.native])==null||r.track.removeCue(t),this.dispatchEvent(new Pe("remove-cue",{detail:t,trigger:n})),o&&this[Gt.updateActiveCues](f(this,bo),n)}}setMode(t,n){var s;f(this,yc)!==t&&(D(this,yc,t),t==="disabled"?(D(this,yo,[]),y(this,ng,qC).call(this)):this.readyState===2?this[Gt.updateActiveCues](f(this,bo),n):y(this,tg,BC).call(this),this.dispatchEvent(new Pe("mode-change",{detail:this,trigger:n})),(s=this[Gt.onModeChange])==null||s.call(this))}[(Yct=Gt.readyState,Kct=Gt.crossOrigin,Xct=Gt.onModeChange,Qct=Gt.native,Gt.updateActiveCues)](t,n){if(D(this,bo,t),this.mode==="disabled"||!f(this,Vi).length)return;const s=[];for(let o=0,a=f(this,Vi).length;o<a;o++){const l=f(this,Vi)[o];NC(l,t)&&s.push(l)}let r=s.length!==f(this,yo).length;if(!r){for(let o=0;o<s.length;o++)if(!f(this,yo).includes(s[o])){r=!0;break}}D(this,yo,s),r&&y(this,ng,qC).call(this,n)}[Gt.canLoad](){D(this,Jp,!0),f(this,yc)!=="disabled"&&y(this,tg,BC).call(this)}},Jp=new WeakMap,bo=new WeakMap,yc=new WeakMap,Zp=new WeakMap,vc=new WeakMap,Vi=new WeakMap,yo=new WeakMap,Fv=new WeakSet,z3=function(t){Yn(()=>import("./prod-e867b763.js").then(n=>n.d),[],import.meta.url).then(({parseText:n,VTTCue:s,VTTRegion:r})=>{!Mt(t.content)||t.type==="json"?(y(this,ig,VC).call(this,t.content,s,r),this.readyState!==3&&y(this,wc,Bf).call(this)):n(t.content,{type:t.type}).then(({cues:o,regions:a})=>{D(this,Vi,o),D(this,vc,a),y(this,wc,Bf).call(this)})})},tg=new WeakSet,BC=async function(){var t,n;if(!(!f(this,Jp)||this[Gt.readyState]>0)){if(this[Gt.readyState]=1,this.dispatchEvent(new Pe("load-start")),!this.src){y(this,wc,Bf).call(this);return}try{const{parseResponse:s,VTTCue:r,VTTRegion:o}=await Yn(()=>import("./prod-e867b763.js").then(c=>c.d),[],import.meta.url),a=(t=this[Gt.crossOrigin])==null?void 0:t.call(this),l=fetch(this.src,{headers:this.type==="json"?{"Content-Type":"application/json"}:void 0,credentials:gp(a)});if(this.type==="json")y(this,ig,VC).call(this,await(await l).text(),r,o);else{const{errors:c,metadata:u,regions:d,cues:h}
51=await s(l,{type:this.type,encoding:this.encoding});if(((n=c[0])==null?void 0:n.code)===0)throw c[0];D(this,Zp,u),D(this,vc,d),D(this,Vi,h)}y(this,wc,Bf).call(this)}catch(s){y(this,eg,zC).call(this,s)}}},wc=new WeakSet,Bf=function(){if(this[Gt.readyState]=2,!this.src||this.type!=="vtt"){const n=this[Gt.native];if(n&&!n.managed)for(const s of f(this,Vi))n.track.addCue(s)}const t=new Pe("load");this[Gt.updateActiveCues](f(this,bo),t),this.dispatchEvent(t)},eg=new WeakSet,zC=function(t){this[Gt.readyState]=3,this.dispatchEvent(new Pe("error",{detail:t}))},ig=new WeakSet,VC=function(t,n,s){try{const{regions:r,cues:o}=KJ(t,n,s);D(this,vc,r),D(this,Vi,o)}catch(r){y(this,eg,zC).call(this,r)}},ng=new WeakSet,qC=function(t){this.dispatchEvent(new Pe("cue-change",{trigger:t}))},GR);const YJ=/captions|subtitles/;function nn(i){return YJ.test(i.kind)}function KJ(i,e,t){const n=Mt(i)?JSON.parse(i):i;let s=[],r=[];return n.regions&&t&&(s=n.regions.map(o=>Object.assign(new t,o))),(n.cues||en(n))&&(r=(en(n)?n:n.cues).filter(o=>Fs(o.startTime)&&Fs(o.endTime)).map(o=>Object.assign(new e(0,0,""),o))),{regions:s,cues:r}}const XJ=Symbol(0),QJ=Symbol(0),JJ=Symbol(0),ZJ=Symbol(0),tZ=Symbol(0),eZ=Symbol(0),iZ=Symbol(0),nZ=Symbol(0),sZ=Symbol(0),se={add:XJ,remove:QJ,reset:JJ,select:ZJ,readonly:tZ,setReadonly:eZ,onReset:iZ,onRemove:nZ,onUserSelect:sZ},rZ=Symbol(0),oZ=Symbol(0),Xs={setAuto:rZ,enableAuto:oZ};function iP(i){return i instanceof Error?i:Error(typeof i=="string"?i:JSON.stringify(i))}function so(i,e){if(!i)throw Error("Assertion failed.")}const dv=Math.min,_u=Math.max,hv=Math.round,Sb=Math.floor,Xr=i=>({x:i,y:i}),aZ={left:"right",right:"left",bottom:"top",top:"bottom"},lZ={start:"end",end:"start"};function KI(i,e,t){return _u(i,dv(e,t))}function e$(i,e){return typeof i=="function"?i(e):i}function Uh(i){return i.split("-")[0]}function i$(i){return i.split("-")[1]}function V3(i){return i==="x"?"y":"x"}function q3(i){return i==="y"?"height":"width"}function Np(i){return["top","bottom"].includes(Uh(i))?"y":"x"}function H3(i){return V3(Np(i))}function cZ(i,e,t){t===void 0&&(t=!1);const n=i$(i),s=H3(i),r=q3(s);let o=s==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(o=fv(o)),[o,fv(o)]}function uZ(i){const e=fv(i);return[HC(i),e,HC(e)]}function HC(i){return i.replace(/start|end/g,e=>lZ[e])}function dZ(i,e,t){const n=["left","right"],s=["right","left"],r=["top","bottom"],o=["bottom","top"];switch(i){case"top":case"bottom":return t?e?s:n:e?n:s;case"left":case"right":return e?r:o;default:return[]}}function hZ(i,e,t,n){const s=i$(i);let r=dZ(Uh(i),t==="start",n);return s&&(r=r.map(o=>o+"-"+s),e&&(r=r.concat(r.map(HC)))),r}function fv(i){return i.replace(/left|right|bottom|top/g,e=>aZ[e])}function fZ(i){return{top:0,right:0,bottom:0,left:0,...i}}function pZ(i){return typeof i!="number"?fZ(i):{top:i,right:i,bottom:i,left:i}}function pv(i){const{x:e,y:t,width:n,height:s}=i;return{width:n,height:s,top:t,left:e,right:e+n,bottom:t+s,x:e,y:t}}function XI(i,e,t){let{reference:n,floating:s}=i;const r=Np(e),o=H3(e),a=q3(o),l=Uh(e),c=r==="y",u=n.x+n.width/2-s.width/2,d=n.y+n.height/2-s.height/2,h=n[a]/2-s[a]/2;let p;switch(l){case"top":p={x:u,y:n.y-s.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-s.width,y:d};break;default:p={x:n.x,y:n.y}}switch(i$(e)){case"start":p[o]-=h*(t&&c?-1:1);break;case"end":p[o]+=h*(t&&c?-1:1);break}return p}const gZ=async(i,e,t)=>{const{placement:n="bottom",strategy:s="absolute",middleware:r=[],platform:o}=t,a=r.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:i,floating:e,strategy:s}),{x:u,y:d}=XI(c,n,l),h=n,p={},m=0;for(let g=0;g<a.length;g++){const{name:v,fn:w}=a[g],{x:_,y:x,data:k,reset:S}=await w({x:u,y:d,initialPlacement:n,placement:h,strategy:s,middlewareData:p,rects:c,platform:o,elements:{reference:i,floating:e}});u=_??u,d=x??d,p={...p,[v]:{...p[v],...k}},S&&m<=50&&(m++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await o.getElementRects({reference:i,floating:e,strategy:s}):S.rects),{x:u,y:d}=XI(c,h,l)),g=-1)}return{x:u,y:d,placement:h,strategy:s,middlewareData:p}};async function W3(i,e){var t;e===void 0&&(e={});
51const{x:n,y:s,platform:r,rects:o,elements:a,strategy:l}=i,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=e$(e,i),m=pZ(p),v=a[h?d==="floating"?"reference":"floating":d],w=pv(await r.getClippingRect({element:(t=await(r.isElement==null?void 0:r.isElement(v)))==null||t?v:v.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),_=d==="floating"?{x:n,y:s,width:o.floating.width,height:o.floating.height}:o.reference,x=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a.floating)),k=await(r.isElement==null?void 0:r.isElement(x))?await(r.getScale==null?void 0:r.getScale(x))||{x:1,y:1}:{x:1,y:1},S=pv(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:_,offsetParent:x,strategy:l}):_);return{top:(w.top-S.top+m.top)/k.y,bottom:(S.bottom-w.bottom+m.bottom)/k.y,left:(w.left-S.left+m.left)/k.x,right:(S.right-w.right+m.right)/k.x}}const mZ=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(e){var t,n;const{placement:s,middlewareData:r,rects:o,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...v}=e$(i,e);if((t=r.arrow)!=null&&t.alignmentOffset)return{};const w=Uh(s),_=Np(a),x=Uh(a)===a,k=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=h||(x||!g?[fv(a)]:uZ(a)),T=m!=="none";!h&&T&&S.push(...hZ(a,g,m,k));const E=[a,...S],M=await W3(e,v),A=[];let P=((n=r.flip)==null?void 0:n.overflows)||[];if(u&&A.push(M[w]),d){const q=cZ(s,o,k);A.push(M[q[0]],M[q[1]])}if(P=[...P,{placement:s,overflows:A}],!A.every(q=>q<=0)){var L,I;const q=(((L=r.flip)==null?void 0:L.index)||0)+1,H=E[q];if(H)return{data:{index:q,overflows:P},reset:{placement:H}};let j=(I=P.filter($=>$.overflows[0]<=0).sort(($,B)=>$.overflows[1]-B.overflows[1])[0])==null?void 0:I.placement;if(!j)switch(p){case"bestFit":{var z;const $=(z=P.filter(B=>{if(T){const K=Np(B.placement);return K===_||K==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(K=>K>0).reduce((K,N)=>K+N,0)]).sort((B,K)=>B[1]-K[1])[0])==null?void 0:z[0];$&&(j=$);break}case"initialPlacement":j=a;break}if(s!==j)return{reset:{placement:j}}}return{}}}},bZ=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(e){const{x:t,y:n,placement:s}=e,{mainAxis:r=!0,crossAxis:o=!1,limiter:a={fn:v=>{let{x:w,y:_}=v;return{x:w,y:_}}},...l}=e$(i,e),c={x:t,y:n},u=await W3(e,l),d=Np(Uh(s)),h=V3(d);let p=c[h],m=c[d];if(r){const v=h==="y"?"top":"left",w=h==="y"?"bottom":"right",_=p+u[v],x=p-u[w];p=KI(_,p,x)}if(o){const v=d==="y"?"top":"left",w=d==="y"?"bottom":"right",_=m+u[v],x=m-u[w];m=KI(_,m,x)}const g=a.fn({...e,[h]:p,[d]:m});return{...g,data:{x:g.x-t,y:g.y-n,enabled:{[h]:r,[d]:o}}}}}};function Xk(){return typeof window<"u"}function cf(i){return j3(i)?(i.nodeName||"").toLowerCase():"#document"}function bs(i){var e;return(i==null||(e=i.ownerDocument)==null?void 0:e.defaultView)||window}function eo(i){var e;return(e=(j3(i)?i.ownerDocument:i.document)||window.document)==null?void 0:e.documentElement}function j3(i){return Xk()?i instanceof Node||i instanceof bs(i).Node:!1}function fr(i){return Xk()?i instanceof Element||i instanceof bs(i).Element:!1}function to(i){return Xk()?i instanceof HTMLElement||i instanceof bs(i).HTMLElement:!1}function QI(i){return!Xk()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof bs(i).ShadowRoot}function W0(i){const{overflow:e,overflowX:t,overflowY:n,display:s}=pr(i);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(s)}function yZ(i){return["table","td","th"].includes(cf(i))}function Qk(i){return[":popover-open",":modal"].some(e=>{try{return i.matches(e)}catch{return!1}})}function n$(i){const e=s$(),t=fr(i)?pr(i):i;return["transform","translate","scale","rotate","perspective"].some(n=>t[n]?t[n]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function vZ(i){let e=kl(i);for(;to(e)&&!Gh(e);){if(n$(e))return e;if(Qk(e))return null;e=kl(e)}return null}function s$(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Gh(i){return["html","body","#document"].includes(cf(i))}function pr(i){return bs(i).getComputedStyle(i)}function Jk(i){return fr(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function kl(i){if(cf(i)==="html")return i;const e=i.assignedSlot||i.parentNode||QI(i)&&i.host||eo(i);return QI(e)?e.host:e}function U3(i){const e=kl(i);return Gh(e)?i.ownerDocument?i.ownerDocument.body:i.body:to(e)&&W0(e)?e:U3(e)}function Bp(i,e,t){var n;e===void 0&&(e=[]),t===void 0&&(t=!0);const s=U3(i),r=s===((n=i.ownerDocument)==null?void 0:n.body),o=bs(s);if(r){const a=WC(o);
51return e.concat(o,o.visualViewport||[],W0(s)?s:[],a&&t?Bp(a):[])}return e.concat(s,Bp(s,[],t))}function WC(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function G3(i){const e=pr(i);let t=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const s=to(i),r=s?i.offsetWidth:t,o=s?i.offsetHeight:n,a=hv(t)!==r||hv(n)!==o;return a&&(t=r,n=o),{width:t,height:n,$:a}}function r$(i){return fr(i)?i:i.contextElement}function pd(i){const e=r$(i);if(!to(e))return Xr(1);const t=e.getBoundingClientRect(),{width:n,height:s,$:r}=G3(e);let o=(r?hv(t.width):t.width)/n,a=(r?hv(t.height):t.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const wZ=Xr(0);function Y3(i){const e=bs(i);return!s$()||!e.visualViewport?wZ:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function _Z(i,e,t){return e===void 0&&(e=!1),!t||e&&t!==bs(i)?!1:e}function Mu(i,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);const s=i.getBoundingClientRect(),r=r$(i);let o=Xr(1);e&&(n?fr(n)&&(o=pd(n)):o=pd(i));const a=_Z(r,t,n)?Y3(r):Xr(0);let l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(r){const h=bs(r),p=n&&fr(n)?bs(n):n;let m=h,g=WC(m);for(;g&&n&&p!==m;){const v=pd(g),w=g.getBoundingClientRect(),_=pr(g),x=w.left+(g.clientLeft+parseFloat(_.paddingLeft))*v.x,k=w.top+(g.clientTop+parseFloat(_.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=x,c+=k,m=bs(g),g=WC(m)}}return pv({width:u,height:d,x:l,y:c})}function o$(i,e){const t=Jk(i).scrollLeft;return e?e.left+t:Mu(eo(i)).left+t}function K3(i,e,t){t===void 0&&(t=!1);const n=i.getBoundingClientRect(),s=n.left+e.scrollLeft-(t?0:o$(i,n)),r=n.top+e.scrollTop;return{x:s,y:r}}function xZ(i){let{elements:e,rect:t,offsetParent:n,strategy:s}=i;const r=s==="fixed",o=eo(n),a=e?Qk(e.floating):!1;if(n===o||a&&r)return t;let l={scrollLeft:0,scrollTop:0},c=Xr(1);const u=Xr(0),d=to(n);if((d||!d&&!r)&&((cf(n)!=="body"||W0(o))&&(l=Jk(n)),to(n))){const p=Mu(n);c=pd(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop}const h=o&&!d&&!r?K3(o,l,!0):Xr(0);return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:t.y*c.y-l.scrollTop*c.y+u.y+h.y}}function SZ(i){return Array.from(i.getClientRects())}function TZ(i){const e=eo(i),t=Jk(i),n=i.ownerDocument.body,s=_u(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=_u(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-t.scrollLeft+o$(i);const a=-t.scrollTop;return pr(n).direction==="rtl"&&(o+=_u(e.clientWidth,n.clientWidth)-s),{width:s,height:r,x:o,y:a}}function kZ(i,e){const t=bs(i),n=eo(i),s=t.visualViewport;let r=n.clientWidth,o=n.clientHeight,a=0,l=0;if(s){r=s.width,o=s.height;const c=s$();(!c||c&&e==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:a,y:l}}function EZ(i,e){const t=Mu(i,!0,e==="fixed"),n=t.top+i.clientTop,s=t.left+i.clientLeft,r=to(i)?pd(i):Xr(1),o=i.clientWidth*r.x,a=i.clientHeight*r.y,l=s*r.x,c=n*r.y;return{width:o,height:a,x:l,y:c}}function JI(i,e,t){let n;if(e==="viewport")n=kZ(i,t);else if(e==="document")n=TZ(eo(i));else if(fr(e))n=EZ(e,t);else{const s=Y3(i);n={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return pv(n)}function X3(i,e){const t=kl(i);return t===e||!fr(t)||Gh(t)?!1:pr(t).position==="fixed"||X3(t,e)}function PZ(i,e){const t=e.get(i);if(t)return t;let n=Bp(i,[],!1).filter(a=>fr(a)&&cf(a)!=="body"),s=null;const r=pr(i).position==="fixed";let o=r?kl(i):i;for(;fr(o)&&!Gh(o);){const a=pr(o),l=n$(o);!l&&a.position==="fixed"&&(s=null),(r?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||W0(o)&&!l&&X3(i,o))?n=n.filter(u=>u!==o):s=a,o=kl(o)}return e.set(i,n),n}function CZ(i){let{element:e,boundary:t,rootBoundary:n,strategy:s}=i;const o=[...t==="clippingAncestors"?Qk(e)?[]:PZ(e,this._c):[].concat(t),n],a=o[0],l=o.reduce((c,u)=>{const d=JI(e,u,s);return c.top=_u(d.top,c.top),c.right=dv(d.right,c.right),c.bottom=dv(d.bottom,c.bottom),c.left=_u(d.left,c.left),c},JI(e,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function AZ(i){const{width:e,height:t}=G3(i);return{width:e,height:t}}function MZ(i,e,t){const n=to(e),s=eo(e),r=t==="fixed",o=Mu(i,!0,r,e);let a={scrollLeft:0,scrollTop:0};const l=Xr(0);if(n||!n&&!r)if((cf(e)!=="body"||W0(s))&&(a=Jk(e)),n){const h=Mu(e,!0,r,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else s&&(l.x=o$(s));const c=s&&!n&&!r?K3(s,a):Xr(0),u=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:o.width,height:o.height}}function nP(i){return pr(i).position==="static"}function ZI(i,e){if(!to(i)||pr(i).position==="fixed")return null;if(e)return e(i);let t=i.offsetParent;return eo(i)===t&&(t=t.ownerDocument.body),t}function Q3(i,e){const t=bs(i);if(Qk(i))return t;if(!to(i)){let s=kl(i);for(;s&&!Gh(s);){if(fr(s)&&!nP(s))return s;s=kl(s)}return t}let n=ZI(i,e);for(;n&&yZ(n)&&nP(n);)n=ZI(n,e);return n&&Gh(n)&&nP(n)&&!n$(n)?t:n||vZ(i)||t}const OZ=async function(i){const e=this.getOffsetParent||Q3,t=this.getDimensions,n=await t(i.floating);return{reference:MZ(i.reference,await e(i.floating),i.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function $Z(i){return pr(i).direction==="rtl"}const LZ={convertOffsetParentRelativeRectToViewportRelativeRect:xZ,getDocumentElement:eo,getClippingRect:CZ,getOffsetParent:Q3,getElementRects:OZ,getClientRects:SZ,getDimensions:AZ,getScale:pd,isElement:fr,isRTL:$Z};function J3(i,e){return i.x===e.x&&i.y===e.y&&i.width===e.width&&i.height===e.height}function IZ(i,e){let t=null,n;const s=eo(i);function r(){var a;clearTimeout(n),(a=t)==null||a.disconnect(),t=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),r();const c=i.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=c;if(a||e(),!h||!p)return;const m=Sb(d),g=Sb(s.clientWidth-(u+h)),v=Sb(s.clientHeight-(d+p)),w=Sb(u),x={rootMargin:-m+"px "+-g+"px "+-v+"px "+-w+"px",threshold:_u(0,dv(1,l))||1};let k=!0;function S(T){const E=T[0].intersectionRatio;if(E!==l){if(!k)return o();E?o(!1,E):n=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!J3(c,i.getBoundingClientRect())&&o(),k=!1}try{t=new IntersectionObserver(S,{...x,root:s.ownerDocument})}catch{t=new IntersectionObserver(S,x)}t.observe(i)}return o(!0),r}
51function DZ(i,e,t,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:r=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=r$(i),u=s||r?[...c?Bp(c):[],...Bp(e)]:[];u.forEach(w=>{s&&w.addEventListener("scroll",t,{passive:!0}),r&&w.addEventListener("resize",t)});const d=c&&a?IZ(c,t):null;let h=-1,p=null;o&&(p=new ResizeObserver(w=>{let[_]=w;_&&_.target===c&&p&&(p.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(e)})),t()}),c&&!l&&p.observe(c),p.observe(e));let m,g=l?Mu(i):null;l&&v();function v(){const w=Mu(i);g&&!J3(g,w)&&t(),g=w,m=requestAnimationFrame(v)}return t(),()=>{var w;u.forEach(_=>{s&&_.removeEventListener("scroll",t),r&&_.removeEventListener("resize",t)}),d==null||d(),(w=p)==null||w.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const RZ=bZ,FZ=mZ,NZ=(i,e,t)=>{const n=new Map,s={platform:LZ,...t},r={...s.platform,_c:n};return gZ(i,e,{...s,platform:r})};function tD(i,e){const t=e.composedPath()[0];return WQ(t)&&i.contains(t)}const jC=new Set;{let i=function(){for(const e of jC)try{e()}catch{}window.requestAnimationFrame(i)};i()}function BZ(i){return jC.add(i),()=>jC.delete(i)}function oe(i,e,t){i.hasAttribute(e)||i.setAttribute(e,t)}function Ll(i,e){if(i.hasAttribute("aria-label")||i.hasAttribute("data-no-label"))return;if(!ia(e)){ft(i,"aria-label",e);return}function t(){ft(i,"aria-label",e())}G(t)}function Z3(i){const e=getComputedStyle(i);return e.display!=="none"&&parseInt(e.opacity)>0}function zZ(i){return!!i&&("checkVisibility"in i?i.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}):Z3(i))}function tB(i,e){return BZ(()=>e(zZ(i)))}function eB(i,e,t){for(;e;){if(e===i)return!0;if(t!=null&&t(e))break;e=e.parentElement}return!1}function El(i,e){return new Ce(i).add("pointerup",t=>{t.button===0&&!t.defaultPrevented&&e(t)}).add("keydown",t=>{T3(t)&&e(t)})}function a$(i){return ry(i)&&(i.touches.length>1||i.changedTouches.length>1)}function ca(i){let e=Uk(),t=window.requestAnimationFrame(()=>{Vn(i,e),t=-1});return()=>void window.cancelAnimationFrame(t)}function l$(i,e,t){let n,s=i,r=i.parentElement,o=i.content.firstElementChild,a=[];!o&&i.firstElementChild&&(i.innerHTML=i.firstElementChild.outerHTML,i.firstElementChild.remove(),o=i.content.firstElementChild);for(let l=0;l<e;l++)n=document.importNode(o,!0),t==null||t(n,l),r.insertBefore(n,s.nextSibling),a.push(n),s=n;return jt(()=>{for(let l=0;l<a.length;l++)a[l].remove()}),a}function iB(i){const e=document.createElement("template");return e.innerHTML=i,e.content}function nB(i){return i.cloneNode(!0).firstElementChild}function sB(i,e,t,{offsetVarName:n,xOffset:s,yOffset:r,...o}){if(!i)return;const a=t.replace(" ","-").replace("-center","");if(Gn(i,"visibility",e?null:"hidden"),!e)return;let l=t.includes("top");const c=d=>t.includes("left")?`calc(-1 * ${d})`:d,u=d=>l?`calc(-1 * ${d})`:d;return DZ(e,i,()=>{NZ(e,i,{placement:a,middleware:[...o.middleware??[],FZ({fallbackAxisSideDirection:"start",crossAxis:!1}),RZ()],...o}).then(({x:d,y:h,middlewareData:p})=>{var g;const m=!!((g=p.flip)!=null&&g.index);l=t.includes(m?"bottom":"top"),i.setAttribute("data-placement",m?t.startsWith("top")?t.replace("top","bottom"):t.replace("bottom","top"):t),Object.assign(i.style,{top:`calc(${h+"px"} + ${u(r?r+"px":`var(--${n}-y-offset, 0px)`)})`,left:`calc(${d+"px"} + ${c(s?s+"px":`var(--${n}-x-offset, 0px)`)})`})})})}function VZ(i){return getComputedStyle(i).animationName!=="none"}function Ou(i){return i instanceof HTMLElement}function qZ(i){return i?"true":"false"}function Yi(i){return()=>qZ(i())}function HZ(){return typeof window>"u"?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches}function Si(i,e=2){return Number(i.toFixed(e))}function WZ(i){var e;return((e=String(i).split(".")[1])==null?void 0:e.length)??0}function c$(i,e,t){return Math.max(i,Math.min(t,e))}let gv=Ot(!1);Ni(document,"pointerdown",()=>{gv.set(!1)}),Ni(document,"keydown",i=>{i.metaKey||i.altKey||i.ctrlKey||gv.set(!0)});var ka,Nv,rB,Bv,oB,zv,aB,Vv,lB;class mr extends qs{constructor(){super(...arguments);b(this,Nv);b(this,Bv);b(this,zv);b(this,Vv);b(this,ka,Ot(!1))}onConnect(t){G(()=>{const n=new Ce(t);if(!gv()){f(this,ka).set(!1),Tb(t,!1),n.add("pointerenter",y(this,zv,aB).bind(this)).add("pointerleave",y(this,Vv,lB).bind(this));return}const s=document.activeElement===t;f(this,ka).set(s),Tb(t,s),n.add("focus",y(this,Nv,rB).bind(this)).add("blur",y(this,Bv,oB).bind(this))})}focused(){return f(this,ka).call(this)}}ka=new WeakMap,Nv=new WeakSet,rB=function(){f(this,ka).set(!0),Tb(this.el,!0)},Bv=new WeakSet,oB=function(){f(this,ka).set(!1),Tb(this.el,!1)},zv=new WeakSet,aB=function(){eD(this.el,!0)},Vv=new WeakSet,lB=function(){eD(this.el,!1)};function Tb(i,e){ft(i,"data-focus",e),ft(i,"data-hocus",e)}function eD(i,e){ft(i,"data-hocus",e),ft(i,"data-hover",e)}var Jct;class cB extends S3{constructor(){super(...arguments);O(this,"items",[]);O(this,Jct,!1)}get length(){return this.items.length}get readonly(){return this[se.readonly]}indexOf(t){return this.items.indexOf(t)}getById(t){return t===""?null:this.items.find(n=>n.id===t)??null}toArray(){return[...this.items]}[(Jct=se.readonly,Symbol.iterator)](){return this.items.values()}[se.add](t,n){const s=this.items.length;""+s in this||Object.defineProperty(this,s,{get(){return this.items[s]}}),!this.items.includes(t)&&(this.items.push(t),this.dispatchEvent(new Pe("add",{detail:t,trigger:n})))}[se.remove](t,n){var r;const s=this.items.indexOf(t);s>=0&&((r=this[se.onRemove])==null||r.call(this,t,n),this.items.splice(s,1),this.dispatchEvent(new Pe("remove",{detail:t,trigger:n})))}[se.reset](t){var n;for(const s of[...this.items])this[se.remove](s,t);this.items=[],this[se.setReadonly](!1,t),(n=this[se.onReset])==null||n.call(this)}[se.setReadonly](t,n){this[se.readonly]!==t&&(this[se.readonly]=t,this.dispatchEvent(new Pe("readonly-change",{detail:t,trigger:n})))}}const UC=vu.fullscreenEnabled;var Ea,xd,qv,uB,Hv,dB,Wv,hB;
51class jZ extends qs{constructor(){super(...arguments);b(this,qv);b(this,Hv);b(this,Wv);b(this,Ea,!1);b(this,xd,!1)}get active(){return f(this,xd)}get supported(){return UC}onConnect(){new Ce(vu).add("fullscreenchange",y(this,Hv,dB).bind(this)).add("fullscreenerror",y(this,Wv,hB).bind(this)),jt(y(this,qv,uB).bind(this))}async enter(){try{return D(this,Ea,!0),!this.el||sP(this.el)?void 0:(iD(),vu.requestFullscreen(this.el))}catch(t){throw D(this,Ea,!1),t}}async exit(){if(!(!this.el||!sP(this.el)))return iD(),vu.exitFullscreen()}}Ea=new WeakMap,xd=new WeakMap,qv=new WeakSet,uB=async function(){UC&&await this.exit()},Hv=new WeakSet,dB=function(t){const n=sP(this.el);n!==f(this,xd)&&(n||D(this,Ea,!1),D(this,xd,n),this.dispatch("fullscreen-change",{detail:n,trigger:t}))},Wv=new WeakSet,hB=function(t){f(this,Ea)&&(this.dispatch("fullscreen-error",{detail:null,trigger:t}),D(this,Ea,!1))};function sP(i){if(vu.fullscreenElement===i)return!0;try{return i.matches(vu.fullscreenPseudoClass)}catch{return!1}}function iD(){if(!UC)throw Error("[vidstack] no fullscreen API")}var Pa,vo,_c,jv,fB,sg,GC,rg,YC,og,KC;const Uv=class Uv extends qs{constructor(){super(...arguments);b(this,jv);b(this,sg);b(this,rg);b(this,og);b(this,Pa,Ot(y(this,og,KC).call(this)));b(this,vo,Ot(!1));b(this,_c,void 0)}get type(){return f(this,Pa).call(this)}get locked(){return f(this,vo).call(this)}get portrait(){return f(this,Pa).call(this).startsWith("portrait")}get landscape(){return f(this,Pa).call(this).startsWith("landscape")}get supported(){return Uv.supported}onConnect(){if(this.supported)Ni(screen.orientation,"change",y(this,sg,GC).bind(this));else{const t=window.matchMedia("(orientation: landscape)");t.onchange=y(this,sg,GC).bind(this),jt(()=>t.onchange=null)}jt(y(this,jv,fB).bind(this))}async lock(t){nt(f(this,vo))||f(this,_c)===t||(y(this,rg,YC).call(this),await screen.orientation.lock(t),f(this,vo).set(!0),D(this,_c,t))}async unlock(){nt(f(this,vo))&&(y(this,rg,YC).call(this),D(this,_c,void 0),await screen.orientation.unlock(),f(this,vo).set(!1))}};Pa=new WeakMap,vo=new WeakMap,_c=new WeakMap,jv=new WeakSet,fB=async function(){this.supported&&f(this,vo).call(this)&&await this.unlock()},sg=new WeakSet,GC=function(t){f(this,Pa).set(y(this,og,KC).call(this)),this.dispatch("orientation-change",{detail:{orientation:nt(f(this,Pa)),lock:f(this,_c)},trigger:t})},rg=new WeakSet,YC=function(){if(!this.supported)throw Error("[vidstack] no orientation API")},og=new WeakSet,KC=function(){return this.supported?window.screen.orientation.type:window.innerWidth>=window.innerHeight?"landscape-primary":"portrait-primary"},O(Uv,"supported",F3());let mv=Uv;function XC(i){return!Mt(i)&&"width"in i&&"height"in i&&Fs(i.width)&&Fs(i.height)}const pB=new $l({artist:"",artwork:null,audioTrack:null,audioTracks:[],autoPlay:!1,autoPlayError:null,audioGain:null,buffered:new oy,canLoad:!1,canLoadPoster:!1,canFullscreen:!1,canOrientScreen:F3(),canPictureInPicture:!1,canPlay:!1,clipStartTime:0,clipEndTime:0,controls:!1,get iOSControl
51s(){return R3&&this.mediaType==="video"&&(!this.playsInline||!vu.fullscreenEnabled&&this.fullscreen)},get nativeControls(){return this.controls||this.iOSControls},controlsVisible:!1,get controlsHidden(){return!this.controlsVisible},crossOrigin:null,ended:!1,error:null,fullscreen:!1,get loop(){return this.providedLoop||this.userPrefersLoop},logLevel:"silent",mediaType:"unknown",muted:!1,paused:!0,played:new oy,playing:!1,playsInline:!1,pictureInPicture:!1,preload:"metadata",playbackRate:1,qualities:[],quality:null,autoQuality:!1,canSetQuality:!0,canSetPlaybackRate:!0,canSetVolume:!1,canSetAudioGain:!1,seekable:new oy,seeking:!1,source:{src:"",type:""},sources:[],started:!1,textTracks:[],textTrack:null,get hasCaptions(){return this.textTracks.filter(nn).length>0},volume:1,waiting:!1,realCurrentTime:0,get currentTime(){return this.ended?this.duration:this.clipStartTime>0?Math.max(0,Math.min(this.realCurrentTime-this.clipStartTime,this.duration)):this.realCurrentTime},providedDuration:-1,intrinsicDuration:0,get duration(){return this.seekableWindow},get title(){return this.providedTitle||this.inferredTitle},get poster(){return this.providedPoster||this.inferredPoster},get viewType(){return this.providedViewType!=="unknown"?this.providedViewType:this.inferredViewType},get streamType(){return this.providedStreamType!=="unknown"?this.providedStreamType:this.inferredStreamType},get currentSrc(){return this.source},get bufferedStart(){const i=YI(this.buffered)??0;return Math.max(i,this.clipStartTime)},get bufferedEnd(){const i=ac(this.buffered)??0;return Math.min(this.seekableEnd,Math.max(0,i-this.clipStartTime))},get bufferedWindow(){return Math.max(0,this.bufferedEnd-this.bufferedStart)}
51,get seekableStart(){if(this.isLiveDVR&&this.liveDVRWindow>0)return Math.max(0,this.seekableEnd-this.liveDVRWindow);const i=YI(this.seekable)??0;return Math.max(i,this.clipStartTime)},get seekableEnd(){if(this.providedDuration>0)return this.providedDuration;const i=this.liveSyncPosition>0?this.liveSyncPosition:this.canPlay?ac(this.seekable)??1/0:0;return this.clipEndTime>0?Math.min(this.clipEndTime,i):i},get seekableWindow(){const i=this.seekableEnd-this.seekableStart;return isNaN(i)?1/0:Math.max(0,i)},canAirPlay:!1,canGoogleCast:!1,remotePlaybackState:"disconnected",remotePlaybackType:"none",remotePlaybackLoader:null,remotePlaybackInfo:null,get isAirPlayConnected(){return this.remotePlaybackType==="airplay"&&this.remotePlaybackState==="connected"},get isGoogleCastConnected(){return this.remotePlaybackType==="google-cast"&&this.remotePlaybackState==="connected"},pointer:"fine",orientation:"landscape",width:0,height:0,mediaWidth:0,mediaHeight:0,lastKeyboardAction:null,userBehindLiveEdge:!1,liveEdgeTolerance:10,minLiveDVRWindow:60,get canSeek(){return/unknown|on-demand|:dvr/.test(this.streamType)&&Number.isFinite(this.duration)&&(!this.isLiveDVR||this.duration>=this.liveDVRWindow)},get live(){return this.streamType.includes("live")||!Number.isFinite(this.duration)},get liveEdgeStart(){return this.live&&Number.isFinite(this.seekableEnd)?Math.max(0,this.seekableEnd-this.liveEdgeTolerance):0},get liveEdge(){return this.live&&(!this.canSeek||!this.userBehindLiveEdge&&this.currentTime>=this.liveEdgeStart)},get liveEdgeWindow(){return this.live&&Number.isFinite(this.seekableEnd)?this.seekableEnd-this.liveEdgeStart:0},get isLiveDVR(){return/:dvr/.test(this.streamType)},get liveDVRWindow(){return Math.max(this.inferredLiveDVRWindow,this.minLiveDVRWindow)},autoPlaying:!1,providedTitle:"",inferredTitle:"",providedLoop:!1,userPrefersLoop:!1,providedPoster:"",inferredPoster:"",inferredViewType:"unknown",providedViewType:"unknown",providedStreamType:"unknown",inferredStreamType:"unknown",liveSyncPosition:null,inferredLiveDVRWindow:0,savedState:null}),gB=new Set(["autoPlayError","autoPlaying","buffered","canPlay","error","paused","played","playing","seekable","seeking","waiting"]),UZ=new Set([...gB,"ended","inferredPoster","inferredStreamType","inferredTitle","intrinsicDuration","inferredLiveDVRWindow","liveSyncPosition","realCurrentTime","savedState","started","userBehindLiveEdge"]);function nD(i,e=!1){const t=e?gB:UZ;pB.reset(i,n=>t.has(n)),ea()}function mB(i,e){const t=i+e.clipStartTime(),n=Math.floor(i)===Math.floor(e.seekableStart()),s=Math.floor(t)===Math.floor(e.seekableEnd());return n?e.seekableStart():s?e.seekableEnd():e.isLiveDVR()&&e.liveDVRWindow()>0&&t<e.seekableEnd()-e.liveDVRWindow()?e.bufferedStart():Math.min(Math.max(e.seekableStart()+.1,t),e.seekableEnd()-.1)}var xc,is,Sd,Gv,ie,ae,BM,YZ;class GZ{constructor(e=void 0){b(this,ie);b(this,BM);b(this,xc,null);b(this,is,null);b(this,Sd,-1);b(this,Gv,void 0);D(this,Gv,e)}setTarget(e){D(this,xc,e)}getPlayer(e){var t;return f(this,is)?f(this,is):((t=e??f(this,xc))==null||t.dispatchEvent(new Pe("find-media-player",{detail:n=>void D(this,is,n),bubbles:!0,composed:!0})),f(this,is))}setPlayer(e){D(this,is,e)}startLoading(e){y(this,ie,ae).call(this,"media-start-loading",e)}startLoadingPoster(e){y(this,ie,ae).call(this,"media-poster-start-loading",e)}requestAirPlay(e){y(this,ie,ae).call(this,"media-airplay-request",e)}requestGoogleCast(e){y(this,ie,ae).call(this,"media-google-cast-request",e)}play(e){y(this,ie,ae).call(this,"media-play-request",e)}pause(e){y(this,ie,ae).call(this,"media-pause-request",e)}mute(e){y(this,ie,ae).call(this,"media-mute-request",e)}unmute(e){y(this,ie,ae).call(this,"media-unmute-request",e)}enterFullscreen(e,t){y(this,ie,ae).call(this,"media-enter-fullscreen-request",t,e)}exitFullscreen(e,t){y(this,ie,ae).call(this,"media-exit-fullscreen-request",t,e)}lockScreenOrientation(e,t){y(this,ie,ae).call(this,"media-orientation-lock-request",t,e)}unlockScreenOrientation(e){y(this,ie,ae).call(this,"media-orientation-unlock-request",e)}enterPictureInPicture(e){y(this,ie,ae).call(this,"media-enter-pip-request",e)}exitPictureInPicture(e){y(this,ie,ae).call(this,"media-exit-pip-request",e)}seeking(e,t){y(this,ie,ae).call(this,"media-seeking-request",t,e)}seek(e,t){y(this,ie,ae).call(this,"media-seek-request",t,e)}seekToLiveEdge(e){y(this,ie,ae).call(this,"media-live-edge-request",e)}changeDuration(e,t){y(this,ie,ae).call(this,"media-duration-change-request",t,e)}changeClipStart(e,t){y(this,ie,ae).call(this,"media-clip-start-change-request",t,e)}changeClipEnd(e,t){y(this,ie,ae).call(this,"media-clip-end-change-request",t,e)}changeVolume(e,t){y(this,ie,ae).call(this,"media-volume-change-request",t,Math.max(0,Math.min(1,e)))}changeAudioTrack(e,t){y(this,ie,ae).call(this,"media-audio-track-change-request",t,e)}changeQuality(e,t){y(this,ie,ae).call(this,"media-quality-change-request",t,e)}requestAutoQuality(e){this.changeQuality(-1,e)}changeTextTrackMode(e,t,n){y(this,ie,ae).call(this,"media-text-track-change-request",n,{index:e,mode:t})}changePlaybackRate(e,t){y(this,ie,ae).call(this,"media-rate-change-request",t,e)}changeAudioGain(e,t){y(this,ie,ae).call(this,"media-audio-gain-change-request",t,e)}
51resumeControls(e){y(this,ie,ae).call(this,"media-resume-controls-request",e)}pauseControls(e){y(this,ie,ae).call(this,"media-pause-controls-request",e)}togglePaused(e){const t=this.getPlayer(e==null?void 0:e.target);t&&(t.state.paused?this.play(e):this.pause(e))}toggleControls(e){const t=this.getPlayer(e==null?void 0:e.target);t&&(t.controls.showing?t.controls.hide(0,e):t.controls.show(0,e))}toggleMuted(e){const t=this.getPlayer(e==null?void 0:e.target);t&&(t.state.muted?this.unmute(e):this.mute(e))}toggleFullscreen(e,t){const n=this.getPlayer(t==null?void 0:t.target);n&&(n.state.fullscreen?this.exitFullscreen(e,t):this.enterFullscreen(e,t))}togglePictureInPicture(e){const t=this.getPlayer(e==null?void 0:e.target);t&&(t.state.pictureInPicture?this.exitPictureInPicture(e):this.enterPictureInPicture(e))}showCaptions(e){const t=this.getPlayer(e==null?void 0:e.target);if(!t)return;let n=t.state.textTracks,s=f(this,Sd);(!n[s]||!nn(n[s]))&&(s=-1),s===-1&&(s=n.findIndex(r=>nn(r)&&r.default)),s===-1&&(s=n.findIndex(r=>nn(r))),s>=0&&this.changeTextTrackMode(s,"showing",e),D(this,Sd,-1)}disableCaptions(e){const t=this.getPlayer(e==null?void 0:e.target);if(!t)return;const n=t.state.textTracks,s=t.state.textTrack;if(s){const r=n.indexOf(s);this.changeTextTrackMode(r,"disabled",e),D(this,Sd,r)}}toggleCaptions(e){const t=this.getPlayer(e==null?void 0:e.target);t&&(t.state.textTrack?this.disableCaptions():this.showCaptions())}userPrefersLoopChange(e,t){y(this,ie,ae).call(this,"media-user-loop-change-request",t,e)}}xc=new WeakMap,is=new WeakMap,Sd=new WeakMap,Gv=new WeakMap,ie=new WeakSet,ae=function(e,t,n){var a,l;const s=new Pe(e,{bubbles:!0,composed:!0,cancelable:!0,detail:n,trigger:t});let r=(t==null?void 0:t.target)||null;r&&r instanceof wt&&(r=r.el),r=!r||r===document||r===window||r===document.body||((a=f(this,is))==null?void 0:a.el)&&r instanceof Node&&!f(this,is).el.contains(r)?f(this,xc)??((l=this.getPlayer())==null?void 0:l.el):r??f(this,xc),f(this,is)?e==="media-play-request"&&!f(this,is).state.canLoad?r==null||r.dispatchEvent(s):f(this,is).canPlayQueue.enqueue(e,()=>r==null?void 0:r.dispatchEvent(s)):r==null||r.dispatchEvent(s)},BM=new WeakSet,YZ=function(e){};var ii;class KZ{constructor(){O(this,"playerId","vds-player");O(this,"mediaId",null);b(this,ii,{volume:null,muted:null,audioGain:null,time:null,lang:null,captions:null,rate:null,quality:null});O(this,"saveTimeThrottled",Bu(this.saveTime.bind(this),1e3))}async getVolume(){return f(this,ii).volume}async setVolume(e){f(this,ii).volume=e,this.save()}async getMuted(){return f(this,ii).muted}async setMuted(e){f(this,ii).muted=e,this.save()}async getTime(){return f(this,ii).time}async setTime(e,t){const n=e<0;f(this,ii).time=n?null:e,n||t?this.saveTime():this.saveTimeThrottled()}async getLang(){return f(this,ii).lang}async setLang(e){f(this,ii).lang=e,this.save()}async getCaptions(){return f(this,ii).captions}async setCaptions(e){f(this,ii).captions=e,this.save()}async getPlaybackRate(){return f(this,ii).rate}async setPlaybackRate(e){f(this,ii).rate=e,this.save()}async getAudioGain(){return f(this,ii).audioGain}async setAudioGain(e){f(this,ii).audioGain=e,this.save()}async getVideoQuality(){return f(this,ii).quality}async setVideoQuality(e){f(this,ii).quality=e,this.save()}onChange(e,t,n="vds-player"){const s=n?localStorage.getItem(n):null,r=t?localStorage.getItem(t):null;this.playerId=n,this.mediaId=t,D(this,ii,{volume:null,muted:null,audioGain:null,lang:null,captions:null,rate:null,quality:null,...s?JSON.parse(s):{},time:r?+r:null})}save(){if(!this.playerId)return;const e=JSON.stringify({...f(this,ii),time:void 0});localStorage.setItem(this.playerId,e)}saveTime(){if(!this.mediaId)return;const e=(f(this,ii).time??0).toString();localStorage.setItem(this.mediaId,e)}}ii=new WeakMap;const Tf=Symbol(0);class bB extends cB{get selected(){return this.items.find(e=>e.selected)??null}get selectedIndex(){return this.items.findIndex(e=>e.selected)}[se.onRemove](e,t){this[se.select](e,!1,t)}[se.add](e,t){e[Tf]=!1,Object.defineProperty(e,"selected",{get(){return this[Tf]},set:n=>{var s;
51this.readonly||((s=this[se.onUserSelect])==null||s.call(this),this[se.select](e,n))}}),super[se.add](e,t)}[se.select](e,t,n){if(t===(e==null?void 0:e[Tf]))return;const s=this.selected;e&&(e[Tf]=t),(t?s!==e:s===e)&&(s&&(s[Tf]=!1),this.dispatchEvent(new Pe("change",{detail:{prev:s,current:this.selected},trigger:n})))}}class XZ extends bB{}var ag,wo,lg,Ca,Yv,yB,Kv,vB,cg,QC,ug,JC;class QZ{constructor(){b(this,Yv);b(this,Kv);b(this,cg);b(this,ug);O(this,"priority",0);b(this,ag,!0);b(this,wo,null);b(this,lg,null);b(this,Ca,new Set)}canRender(e,t){return!!t}attach(e){D(this,wo,e),e&&(e.textTracks.onchange=y(this,ug,JC).bind(this))}addTrack(e){f(this,Ca).add(e),y(this,Yv,yB).call(this,e)}removeTrack(e){var t,n;(n=(t=e[Gt.native])==null?void 0:t.remove)==null||n.call(t),e[Gt.native]=null,f(this,Ca).delete(e)}changeTrack(e){const t=e==null?void 0:e[Gt.native];t&&t.track.mode!=="showing"&&(t.track.mode="showing"),D(this,lg,e)}setDisplay(e){D(this,ag,e),y(this,ug,JC).call(this)}detach(){f(this,wo)&&(f(this,wo).textTracks.onchange=null);for(const e of f(this,Ca))this.removeTrack(e);f(this,Ca).clear(),D(this,wo,null),D(this,lg,null)}}ag=new WeakMap,wo=new WeakMap,lg=new WeakMap,Ca=new WeakMap,Yv=new WeakSet,yB=function(e){var n;if(!f(this,wo))return;const t=e[n=Gt.native]??(e[n]=y(this,Kv,vB).call(this,e));Ou(t)&&(f(this,wo).append(t),t.track.mode=t.default?"showing":"disabled")},Kv=new WeakSet,vB=function(e){const t=document.createElement("track"),n=e.default||e.mode==="showing",s=e.src&&e.type==="vtt";return t.id=e.id,t.src=s?e.src:"",t.label=e.label,t.kind=e.kind,t.default=n,e.language&&(t.srclang=e.language),n&&!s&&y(this,cg,QC).call(this,e,t.track),t},cg=new WeakSet,QC=function(e,t){var n;if(!(e.src&&e.type==="vtt"||(n=t.cues)!=null&&n.length))for(const s of e.cues)t.addCue(s)},ug=new WeakSet,JC=function(e){for(const t of f(this,Ca)){const n=t[Gt.native];if(!n)continue;if(!f(this,ag)){n.track.mode=n.managed?"hidden":"disabled";continue}const s=n.track.mode==="showing";s&&y(this,cg,QC).call(this,t,n.track),t.setMode(s?"showing":"disabled",e)}};var Sc,Td,Tc,dg,hg,ns,Er,Xv,wB,fg,ZC,Qv,_B,Jv,xB,Zv,SB,Aa,ed,tw,TB;class JZ{constructor(e){b(this,Xv);b(this,fg);b(this,Qv);b(this,Jv);b(this,Zv);b(this,Aa);b(this,tw);b(this,Sc,null);b(this,Td,void 0);b(this,Tc,[]);b(this,dg,void 0);b(this,hg,!1);b(this,ns,null);b(this,Er,null);D(this,dg,e);const t=e.textTracks;D(this,Td,t),G(y(this,Xv,wB).bind(this)),jt(y(this,tw,TB).bind(this)),new Ce(t).add("add",y(this,Jv,xB).bind(this)).add("remove",
51y(this,Zv,SB).bind(this)).add("mode-change",y(this,Aa,ed).bind(this))}add(e){f(this,Tc).push(e),Fp(y(this,Aa,ed).bind(this))}remove(e){e.detach(),f(this,Tc).splice(f(this,Tc).indexOf(e),1),Fp(y(this,Aa,ed).bind(this))}attachVideo(e){requestAnimationFrame(()=>{if(D(this,Sc,e),e){D(this,ns,new QZ),f(this,ns).attach(e);for(const t of f(this,Td))y(this,fg,ZC).call(this,t)}y(this,Aa,ed).call(this)})}}Sc=new WeakMap,Td=new WeakMap,Tc=new WeakMap,dg=new WeakMap,hg=new WeakMap,ns=new WeakMap,Er=new WeakMap,Xv=new WeakSet,wB=function(){const{nativeControls:e}=f(this,dg).$state;D(this,hg,e()),y(this,Aa,ed).call(this)},fg=new WeakSet,ZC=function(e){var t;nn(e)&&((t=f(this,ns))==null||t.addTrack(e))},Qv=new WeakSet,_B=function(e){var t;nn(e)&&((t=f(this,ns))==null||t.removeTrack(e))},Jv=new WeakSet,xB=function(e){y(this,fg,ZC).call(this,e.detail)},Zv=new WeakSet,SB=function(e){y(this,Qv,_B).call(this,e.detail)},Aa=new WeakSet,ed=function(){var n,s,r,o,a,l,c;const e=f(this,Td).selected;if(f(this,Sc)&&(f(this,hg)||e!=null&&e[Gt.nativeHLS])){(n=f(this,Er))==null||n.changeTrack(null),(s=f(this,ns))==null||s.setDisplay(!0),(r=f(this,ns))==null||r.changeTrack(e);return}if((o=f(this,ns))==null||o.setDisplay(!1),(a=f(this,ns))==null||a.changeTrack(null),!e){(l=f(this,Er))==null||l.changeTrack(null);return}const t=f(this,Tc).sort((u,d)=>u.priority-d.priority).find(u=>u.canRender(e,f(this,Sc)));f(this,Er)!==t&&((c=f(this,Er))==null||c.detach(),t==null||t.attach(f(this,Sc)),D(this,Er,t??null)),t==null||t.changeTrack(e)},tw=new WeakSet,TB=function(){var e,t;(e=f(this,ns))==null||e.detach(),D(this,ns,null),(t=f(this,Er))==null||t.detach(),D(this,Er,null)};var kc,Pr,Cr,Ar,Zct,pg,kd,gg,ew,kB,mg,tA,bg,eA;class ZZ extends cB{constructor(){super();b(this,ew);b(this,mg);b(this,bg);b(this,kc,!1);b(this,Pr,{});b(this,Cr,null);b(this,Ar,null);O(this,Zct);b(this,pg,JO(async()=>{var s;if(!f(this,kc))return;!f(this,Ar)&&f(this,Cr)&&D(this,Ar,await f(this,Cr).getLang());const t=await((s=f(this,Cr))==null?void 0:s.getCaptions()),n=[["captions","subtitles"],"chapters","descriptions","metadata"];for(const r of n){const o=this.getByKind(r);if(o.find(d=>d.mode==="showing"))continue;const a=f(this,Ar)?o.find(d=>d.language===f(this,Ar)):null,l=en(r)?f(this,Pr)[r.find(d=>f(this,Pr)[d])||""]:f(this,Pr)[r],c=a??l,u=c&&nn(c);c&&(!u||t!==!1)&&(c.mode="showing",u&&y(this,mg,tA).call(this,c))}},300));b(this,kd,null);b(this,gg,y(this,ew,kB).bind(this))}get selected(){return this.items.find(n=>n.mode==="showing"&&nn(n))??null}get selectedIndex(){const t=this.selected;return t?this.indexOf(t):-1}get preferredLang(){return f(this,Ar)}set preferredLang(t){D(this,Ar,t),y(this,bg,eA).call(this,t)}add(t,n){const s=t instanceof uv,r=s?t:new uv(t),o=t.kind==="captions"||t.kind==="subtitles"?"captions":t.kind;return f(this,Pr)[o]&&t.default&&delete t.default,r.addEventListener("mode-change",f(this,gg)),this[se.add](r,n),r[Gt.crossOrigin]=this[Gt.crossOrigin],f(this,kc)&&r[Gt.canLoad](),t.default&&(f(this,Pr)[o]=r),f(this,pg).call(this),this}remove(t,n){if(D(this,kd,t),!!this.items.includes(t))return t===f(this,Pr)[t.kind]&&delete f(this,Pr)[t.kind],t.mode="disabled",t[Gt.onModeChange]=null,t.removeEventListener("mode-change",f(this,gg)),this[se.remove](t,n),D(this,kd,null),this}clear(t){for(const n of[...this.items])this.remove(n,t);return this}getByKind(t){const n=Array.isArray(t)?t:[t];return this.items.filter(s=>n.includes(s.kind))}[(Zct=Gt.crossOrigin,Gt.canLoad)](){if(!f(this,kc)){for(const t of this.items)t[Gt.canLoad]();D(this,kc,!0),f(this,pg).call(this)}}setStorage(t){D(this,Cr,t)}}kc=new WeakMap,Pr=new WeakMap,Cr=new WeakMap,Ar=new WeakMap,pg=new WeakMap,kd=new WeakMap,gg=new WeakMap,ew=new WeakSet,kB=function(t){const n=t.detail;if(f(this,Cr)&&nn(n)&&n!==f(this,kd)&&y(this,mg,tA).call(this,n),n.mode==="showing"){const s=nn(n)?["captions","subtitles"]:[n.kind];for(const r of this.items)r.mode==="showing"&&r!=n&&s.includes(r.kind)&&(r.mode="disabled")}this.dispatchEvent(new Pe("mode-change",{detail:t.detail,trigger:t}))},mg=new WeakSet,tA=function(t){var n,s;t.mode!=="disabled"&&y(this,bg,eA).call(this,t.language),(s=(n=f(this,Cr))==null?void 0:n.setCaptions)==null||s.call(n,t.mode==="showing")},bg=new WeakSet,eA=function(t){var n,s;(s=(n=f(this,Cr))==null?void 0:n.setLang)==null||s.call(n,D(this,Ar,t))};var Ec,tut;class ttt extends bB{constructor(){super(...arguments);b(this,Ec,!1);O(this,"switch","current");O(this,tut)}get auto(){return f(this,Ec)||this.readonly}[(tut=Xs.enableAuto,se.onUserSelect)](){this[Xs.setAuto](!1)}[se.onReset](t){this[Xs.enableAuto]=void 0,this[Xs.setAuto](!1,t)}autoSelect(t){var n;
51this.readonly||f(this,Ec)||!this[Xs.enableAuto]||((n=this[Xs.enableAuto])==null||n.call(this,t),this[Xs.setAuto](!0,t))}getBySrc(t){return this.items.find(n=>n.src===t)}[Xs.setAuto](t,n){f(this,Ec)!==t&&(D(this,Ec,t),this.dispatchEvent(new Pe("auto-change",{detail:t,trigger:n})))}}Ec=new WeakMap;function ett(i){return i instanceof HTMLAudioElement}function itt(i){return i instanceof HTMLVideoElement}function ntt(i){return ett(i)||itt(i)}class zu extends qs{}const stt={togglePaused:"k Space",toggleMuted:"m",toggleFullscreen:"f",togglePictureInPicture:"i",toggleCaptions:"c",seekBackward:"j J ArrowLeft",seekForward:"l L ArrowRight",volumeUp:"ArrowUp",volumeDown:"ArrowDown",speedUp:">",slowDown:"<"},zf=new Set(["Shift","Alt","Meta","Ctrl"]),rtt='button, [role="button"]',sD='input, textarea, select, [contenteditable], [role^="menuitem"], [role="timer"]';var Mi,iw,EB,nw,PB,sw,CB,rw,AB,Ed,ay,Pc,ow,MB,_o,yg,iA,aw,OB;class ott extends zu{constructor(t){super();b(this,iw);b(this,nw);b(this,sw);b(this,rw);b(this,Ed);b(this,ow);b(this,yg);b(this,aw);b(this,Mi,void 0);b(this,Pc,void 0);b(this,_o,null);D(this,Mi,t)}onConnect(){G(y(this,iw,EB).bind(this))}}Mi=new WeakMap,iw=new WeakSet,EB=function(){const{keyDisabled:t,keyTarget:n}=this.$props;if(t())return;const s=n()==="player"?this.el:document,r=Ot(!1);s===this.el?new Ce(this.el).add("focusin",()=>r.set(!0)).add("focusout",o=>{this.el.contains(o.target)||r.set(!1)}):(nt(r)||r.set(document.querySelector("[data-media-player]")===this.el),Ni(document,"focusin",o=>{const a=o.composedPath().find(l=>l instanceof Element&&l.localName==="media-player");a!==void 0&&r.set(this.el===a)})),G(()=>{r()&&new Ce(s).add("keyup",y(this,nw,PB).bind(this)).add("keydown",y(this,sw,CB).bind(this)).add("keydown",y(this,rw,AB).bind(this),{capture:!0})})},nw=new WeakSet,PB=function(t){var o,a;const n=document.activeElement;if(!t.key||!this.$state.canSeek()||n!=null&&n.matches(sD))return;let{method:s,value:r}=y(this,Ed,ay).call(this,t);if(!Mt(r)&&!en(r)){(o=r==null?void 0:r.onKeyUp)==null||o.call(r,{event:t,player:f(this,Mi).player,remote:f(this,Mi).remote}),(a=r==null?void 0:r.callback)==null||a.call(r,t,f(this,Mi).remote);return}if(s!=null&&s.startsWith("seek")&&(t.preventDefault(),t.stopPropagation(),f(this,_o)?(y(this,yg,iA).
51call(this,t,s==="seekForward"),D(this,_o,null)):(f(this,Mi).remote.seek(f(this,Pc),t),D(this,Pc,void 0))),s!=null&&s.startsWith("volume")){const l=this.el.querySelector("[data-media-volume-slider]");l==null||l.dispatchEvent(new KeyboardEvent("keyup",{key:s==="volumeUp"?"Up":"Down",shiftKey:t.shiftKey,trigger:t}))}},sw=new WeakSet,CB=function(t){var a,l,c,u;if(!t.key||zf.has(t.key))return;const n=document.activeElement;if(n!=null&&n.matches(sD)||T3(t)&&(n!=null&&n.matches(rtt)))return;let{method:s,value:r}=y(this,Ed,ay).call(this,t),o=!t.metaKey&&/^[0-9]$/.test(t.key);if(!Mt(r)&&!en(r)&&!o){(a=r==null?void 0:r.onKeyDown)==null||a.call(r,{event:t,player:f(this,Mi).player,remote:f(this,Mi).remote}),(l=r==null?void 0:r.callback)==null||l.call(r,t,f(this,Mi).remote);return}if(!s&&o&&!ctt(t)){t.preventDefault(),t.stopPropagation(),f(this,Mi).remote.seek(this.$state.duration()/10*Number(t.key),t);return}if(s){switch(t.preventDefault(),t.stopPropagation(),s){case"seekForward":case"seekBackward":y(this,aw,OB).call(this,t,s,s==="seekForward");break;case"volumeUp":case"volumeDown":const d=this.el.querySelector("[data-media-volume-slider]");if(d)d.dispatchEvent(new KeyboardEvent("keydown",{key:s==="volumeUp"?"Up":"Down",shiftKey:t.shiftKey,trigger:t}));else{const p=t.shiftKey?.1:.05;f(this,Mi).remote.changeVolume(this.$state.volume()+(s==="volumeUp"?+p:-p),t)}break;case"toggleFullscreen":f(this,Mi).remote.toggleFullscreen("prefer-media",t);break;case"speedUp":case"slowDown":const h=this.$state.playbackRate();f(this,Mi).remote.changePlaybackRate(Math.max(.25,Math.min(2,h+(s==="speedUp"?.25:-.25))),t);break;default:(u=(c=f(this,Mi).remote)[s])==null||u.call(c,t)}this.$state.lastKeyboardAction.set({action:s,event:t})}},rw=new WeakSet,AB=function(t){ntt(t.target)&&y(this,Ed,ay).call(this,t).method&&t.preventDefault()},Ed=new WeakSet,ay=function(t){const n={...this.$props.keyShortcuts(),...f(this,Mi).ariaKeys},s=Object.keys(n).find(r=>{var c;const o=n[r],a=en(o)?o.join(" "):Mt(o)?o:o==null?void 0:o.keys,l=(c=en(a)?a:a==null?void 0:a.split(" "))==null?void 0:c.map(u=>ltt(u).replace(/Control/g,"Ctrl").split("+"));return l==null?void 0:l.some(u=>{const d=new Set(u.filter(h=>zf.has(h)));for(const h of zf){const p=h.toLowerCase()+"Key";if(!d.has(h)&&t[p])return!1}return u.every(h=>zf.has(h)?t[h.toLowerCase()+"Key"]:t.key===h.replace("Space"," "))})});return{method:s,value:s?n[s]:null}},Pc=new WeakMap,ow=new WeakSet,MB=function(t,n){const s=t.shiftKey?10:5;return D(this,Pc,Math.max(0,Math.min((f(this,Pc)??this.$state.currentTime())+(n==="seekForward"?+s:-s),this.$state.duration())))},_o=new WeakMap,yg=new WeakSet,iA=function(t,n){var s;(s=f(this,_o))==null||s.dispatchEvent(new KeyboardEvent(t.type,{key:n?"Right":"Left",shiftKey:t.shiftKey,trigger:t}))},aw=new WeakSet,OB=function(t,n,s){this.$state.canSeek()&&(f(this,_o)||D(this,_o,this.el.querySelector("[data-media-time-slider]")),f(this,_o)?y(this,yg,iA).
51call(this,t,s):f(this,Mi).remote.seeking(y(this,ow,MB).call(this,t,n),t))};const att=["!","@","#","$","%","^","&","*","(",")"];function ltt(i){return i.replace(/Shift\+(\d)/g,(e,t)=>att[t-1])}function ctt(i){for(const e of zf)if(i[e.toLowerCase()+"Key"])return!0;return!1}var Pd,xo,vg,Cd,Ma,Ad,lw,$B,cw,LB,uw,IB,dw,DB,hw,RB,fw,FB,pw,NB,gw,BB,Md,ly,wg,nA,Cc,Vf,_g,sA;class utt extends zu{constructor(){super(...arguments);b(this,lw);b(this,cw);b(this,uw);b(this,dw);b(this,hw);b(this,fw);b(this,pw);b(this,gw);b(this,Md);b(this,wg);b(this,Cc);b(this,_g);b(this,Pd,-2);b(this,xo,!1);b(this,vg,Ot(!1));b(this,Cd,Ot(!1));b(this,Ma,null);b(this,Ad,Ot(!0));O(this,"defaultDelay",2e3)}get canIdle(){return f(this,Ad).call(this)}set canIdle(t){f(this,Ad).set(t)}get hideOnMouseLeave(){const{hideControlsOnMouseLeave:t}=this.$props;return f(this,vg).call(this)||t()}set hideOnMouseLeave(t){f(this,vg).set(t)}get showing(){return this.$state.controlsVisible()}show(t=0,n){y(this,Md,ly).call(this),f(this,xo)||y(this,Cc,Vf).call(this,!0,t,n)}hide(t=this.defaultDelay,n){y(this,Md,ly).call(this),f(this,xo)||y(this,Cc,Vf).call(this,!1,t,n)}pause(t){D(this,xo,!0),y(this,Md,ly).call(this),y(this,Cc,Vf).call(this,!0,0,t)}resume(t){D(this,xo,!1),!this.$state.paused()&&y(this,Cc,Vf).call(this,!1,this.defaultDelay,t)}onConnect(){G(y(this,lw,$B).bind(this))}}Pd=new WeakMap,xo=new WeakMap,vg=new WeakMap,Cd=new WeakMap,Ma=new WeakMap,Ad=new WeakMap,lw=new WeakSet,$B=function(){const{viewType:t}=this.$state;if(!this.el||!f(this,Ad).call(this))return;if(t()==="audio"){this.show();return}G(y(this,cw,LB).bind(this)),G(y(this,uw,IB).bind(this));const n=y(this,dw,DB).bind(this),s=y(this,hw,RB).bind(this),r=y(this,fw,FB).bind(this);new Ce(this.el).add("can-play",o=>this.show(0,o)).add("play",n).add("pause",s).add("end",r).add("auto-play-fail",s)},cw=new WeakSet,LB=function(){if(!this.el)return;const{started:t,pointer:n,paused:s}=this.$state;if(!t()||n()!=="fine")return;const r=new Ce(this.el),o=this.hideOnMouseLeave;(!o||!f(this,Cd).call(this))&&G(()=>{s()||r.add("pointermove",y(this,wg,nA).bind(this))}),o&&r.add("mouseenter",y(this,pw,NB).bind(this)).add("mouseleave",y(this,gw,BB).bind(this))},uw=new WeakSet,IB=function(){const{paused:t,started:n,autoPlayError:s}=this.$state;if(t()||s()&&!n())return;const r=y(this,wg,nA).bind(this);G(()=>{if(!this.el)return;const o=this.$state.pointer(),a=o==="coarse",l=new Ce(this.el),c=[a?"touchend":"pointerup","keydown"];for(const u of c)l.add(u,r,{passive:!1})})},dw=new WeakSet,DB=function(t){t.triggers.hasType("ended")||(this.show(0,t),this.hide(void 0,t))},hw=new WeakSet,RB=function(t){this.show(0,t)},fw=new WeakSet,FB=function(t){const{loop:n}=this.$state;n()&&this.hide(0,t)},pw=new WeakSet,NB=function(t){f(this,Cd).set(!1),this.show(0,t),this.hide(void 0,t)},gw=new WeakSet,BB=function(t){f(this,Cd).set(!0),this.hide(0,t)},Md=new WeakSet,ly=function(){window.clearTimeout(f(this,Pd)),D(this,Pd,-1)},wg=new WeakSet,nA=function(t){var n;t.MEDIA_GESTURE||f(this,xo)||a$(t)||(Yk(t)&&(t.key==="Escape"?((n=this.el)==null||n.focus(),D(this,Ma,null)):f(this,Ma)&&(t.preventDefault(),requestAnimationFrame(()=>{var s;(s=f(this,Ma))==null||s.focus(),D(this,Ma,null)}))),this.show(0,t),this.hide(this.defaultDelay,t))},Cc=new WeakSet,Vf=function(t,n,s){if(n===0){y(this,_g,sA).call(this,t,s);return}D(this,Pd,window.setTimeout(()=>{this.scope&&y(this,_g,sA).call(this,t&&!f(this,xo),s)},n))},_g=new WeakSet,sA=function(t,n){var s;this.$state.controlsVisible()!==t&&(this.$state.controlsVisible.set(t),!t&&document.activeElement&&((s=this.el)!=null&&s.contains(document.activeElement))&&(D(this,Ma,document.activeElement),requestAnimationFrame(()=>{var r;(r=this.el)==null||r.focus({preventScroll:!0})}
51)),this.dispatch("controls-change",{detail:t,trigger:n}))};class dtt{constructor(){O(this,"name","audio");O(this,"target")}canPlay(e){return N3(e)?!Mt(e.src)||e.type==="?"||xJ(this.target,e.type):!1}mediaType(){return"audio"}async load(e){return new(await Yn(()=>import("./vidstack-audio-2d4a5713.js"),["./vidstack-audio-2d4a5713.js","./vidstack-Bq6c3Bam-6e49df8f.js","./vidstack-DqAw8m9J-5210ce9d.js"],import.meta.url)).AudioProvider(this.target,e)}}class u${constructor(){O(this,"name","video");O(this,"target")}canPlay(e){return B3(e)?!Mt(e.src)||e.type==="?"||SJ(this.target,e.type):!1}mediaType(){return"video"}async load(e){return new(await Yn(()=>import("./vidstack-video-27a7a8f2.js"),["./vidstack-video-27a7a8f2.js","./vidstack-Bq6c3Bam-6e49df8f.js","./vidstack-DqAw8m9J-5210ce9d.js"],import.meta.url)).VideoProvider(this.target,e)}}const mw=class mw extends u${constructor(){super(...arguments);O(this,"name","hls")}canPlay(t){return mw.supported&&q0(t)}async load(t){return new(await Yn(()=>import("./vidstack-hls-ddc7a290.js"),["./vidstack-hls-ddc7a290.js","./vidstack-video-27a7a8f2.js","./vidstack-Bq6c3Bam-6e49df8f.js","./vidstack-DqAw8m9J-5210ce9d.js"],import.meta.url)).HLSProvider(this.target,t)}};O(mw,"supported",ZO());let rA=mw;const bw=class bw extends u${constructor(){super(...arguments);O(this,"name","dash")}canPlay(t){return bw.supported&&t$(t)}async load(t){return new(await Yn(()=>import("./vidstack-dash-ce54ca53.js"),["./vidstack-dash-ce54ca53.js","./vidstack-video-27a7a8f2.js","./vidstack-Bq6c3Bam-6e49df8f.js","./vidstack-DqAw8m9J-5210ce9d.js"],import.meta.url)).DASHProvider(this.target,t)}};O(bw,"supported",CJ());let oA=bw;class htt{constructor(){O(this,"name","vimeo");O(this,"target")}preconnect(){const e=["https://i.vimeocdn.com","https://f.vimeocdn.com","https://fresnel.vimeocdn.com"];for(const t of e)H0(t)}canPlay(e){return Mt(e.src)&&e.type==="video/vimeo"}mediaType(){return"video"}async load(e){return new(await Yn(()=>import("./vidstack-vimeo-20c6af3b.js"),["./vidstack-vimeo-20c6af3b.js","./vidstack-DqAw8m9J-5210ce9d.js","./vidstack-DDXt6fpN-cacb71bb.js","./vidstack-krOAtKMi-78913eb8.js"],import.meta.url)).VimeoProvider(this.target,e)}async loadPoster(e,t,n){const{resolveVimeoVideoId:s,getVimeoVideoInfo:r}=await Yn(()=>import("./vidstack-krOAtKMi-78913eb8.js"),[],import.meta.url);if(!Mt(e.src))return null;const{videoId:o,hash:a}=s(e.src);return o?r(o,n,a).then(l=>l?l.poster:null):null}}class ftt{constructor(){O(this,"name","youtube");O(this,"target")}preconnect(){const e=["https://www.google.com","https://i.ytimg.com","https://googleads.g.doubleclick.net","https://static.doubleclick.net"];for(const t of e)H0(t)}canPlay(e){return Mt(e.src)&&e.type==="video/youtube"}mediaType(){return"video"}async load(e){return new(await Yn(()=>import("./vidstack-youtube-653f5a64.js"),["./vidstack-youtube-653f5a64.js","./vidstack-DDXt6fpN-cacb71bb.js","./vidstack-Dm1xEU9Q-42672365.js"],import.meta.url)).YouTubeProvider(this.target,e)}async loadPoster(e,t,n){const{findYouTubePoster:s,resolveYouTubeVideoId:r}=await Yn(()=>import("./vidstack-Dm1xEU9Q-42672365.js"),[],import.meta.url),o=Mt(e.src)&&r(e.src);return o?s(o,n):null}}const rP=Symbol(0),ptt=["autoPlay","canAirPlay","canFullscreen","canGoogleCast","canLoad","canLoadPoster","canPictureInPicture","canPlay","canSeek","ended","fullscreen","isAirPlayConnected","isGoogleCastConnected","live","liveEdge","loop","mediaType","muted","paused","pictureInPicture","playing","playsInline","remotePlaybackState","remotePlaybackType","seeking","started","streamType","viewType","waiting"],gtt={artist:"",artwork:null,autoplay:!1,autoPlay:!1,clipStartTime:0,clipEndTime:0,controls:!1,currentTime:0,crossorigin:null,crossOrigin:null,duration:-1,fullscreenOrientation:"landscape",googleCast:{},load:"visible",posterLoad:"visible",logLevel:"silent",loop:!1,muted:!1,paused:!0,playsinline:!1,playsInline:!1,playbackRate:1,poster:"",preload:"metadata",preferNativeHLS:!1,src:"",title:"",controlsDelay:2e3,hideControlsOnMouseLeave:!1,viewType:"unknown",streamType:"unknown",volume:1,liveEdgeTolerance:10,minLiveDVRWindow:60,keyDisabled:!1,keyTarget:"player",keyShortcuts:stt,storage:null};var xg,Ac;class rD extends zu{constructor(t,n){super();b(this,xg,void 0);b(this,Ac,void 0);D(this,xg,t),D(this,Ac,n)}async onAttach(t){const n=this.$props[f(this,xg)]();if(n==="eager")requestAnimationFrame(f(this,Ac));else if(n==="idle")iJ(f(this,Ac));else if(n==="visible"){let s,r=new IntersectionObserver(o=>{this.scope&&o[0].isIntersecting&&(s==null||s(),s=void 0,f(this,Ac).call(this))});r.observe(t),s=jt(()=>r.disconnect())}}}xg=new WeakMap,Ac=new WeakMap;var Sg,Qs,yw,zB;class mtt{constructor(e,t){b(this,yw);b(this,Sg,void 0);b(this,Qs,void 0);D(this,Sg,e),D(this,Qs,t)}notify(e,...t){f(this,Sg).call(this,new Pe(e,{detail:t==null?void 0:t[0],trigger:t==null?void 0:t[1]}))}async ready(e,t){return Fp(async()=>{var L,I,z,q,H,j,$;f(this,Qs);const{autoPlay:n,canPlay:s,started:r,duration:o,seekable:a,buffered:l,remotePlaybackInfo:c,playsInl
51ine:u,savedState:d,source:h}=f(this,Qs).$state;if(s())return;const p={duration:(e==null?void 0:e.duration)??o(),seekable:(e==null?void 0:e.seekable)??a(),buffered:(e==null?void 0:e.buffered)??l(),provider:f(this,Qs).$provider()};this.notify("can-play",p,t),ea();let m=f(this,Qs).$provider(),{storage:g,qualities:v}=f(this,Qs),{muted:w,volume:_,clipStartTime:x,playbackRate:k}=f(this,Qs).$props;await((L=g==null?void 0:g.onLoad)==null?void 0:L.call(g,h()));const S=(I=d())==null?void 0:I.currentTime,T=(z=d())==null?void 0:z.paused,E=await(g==null?void 0:g.getTime()),M=S??E??x(),A=T===!1||T!==!0&&!r()&&n();if(m){m.setVolume(await(g==null?void 0:g.getVolume())??_()),m.setMuted(w()||!!await(g==null?void 0:g.getMuted()));const B=await(g==null?void 0:g.getAudioGain())??1;B>1&&((H=(q=m.audioGain)==null?void 0:q.setGain)==null||H.call(q,B)),(j=m.setPlaybackRate)==null||j.call(m,await(g==null?void 0:g.getPlaybackRate())??k()),($=m.setPlaysInline)==null||$.call(m,u()),M>0&&m.setCurrentTime(M)}const P=await(g==null?void 0:g.getVideoQuality());if(P&&v.length){let B=null,K=1/0;for(const N of v){const J=Math.abs(P.width-N.width)+Math.abs(P.height-N.height)+(P.bitrate?Math.abs(P.bitrate-(N.bitrate??0)):0);J<K&&(B=N,K=J)}B&&(B.selected=!0)}s()&&A?await y(this,yw,zB).call(this,t):E&&E>0&&this.notify("started",void 0,t),c.set(null)})}}Sg=new WeakMap,Qs=new WeakMap,yw=new WeakSet,zB=async function(e){const{player:t,$state:{autoPlaying:n,muted:s}}=f(this,Qs);n.set(!0);const r=new Pe("auto-play-attempt",{trigger:e});try{await t.play(r)}catch{}};var Oa;class btt{constructor(){b(this,Oa,new Map)}enqueue(e,t){f(this,Oa).set(e,t)}serve(e){const t=this.peek(e);return f(this,Oa).delete(e),t}peek(e){return f(this,Oa).get(e)}delete(e){f(this,Oa).delete(e)}clear(){f(this,Oa).clear()}}Oa=new WeakMap;var $a,Od,Js,Tg,aA,kg,lA;class VB{constructor(){b(this,Tg);b(this,kg);b(this,$a,!1);b(this,Od,FC());b(this,Js,new Map)}get size(){return f(this,Js).size}get isServing(){return f(this,$a)}async waitForFlush(){f(this,$a)||await f(this,Od).promise}enqueue(e,t){if(f(this,$a)){t();return}f(this,Js).delete(e),f(this,Js).set(e,t)}serve(e){var t;(t=f(this,Js).get(e))==null||t(),f(this,Js).delete(e)}start(){y(this,Tg,aA).call(this),D(this,$a,!0),f(this,Js).size>0&&y(this,Tg,aA).call(this)}stop(){D(this,$a,!1)}reset(){this.stop(),f(this,Js).clear(),y(this,kg,lA).call(this)}}$a=new WeakMap,Od=new WeakMap,Js=new WeakMap,Tg=new WeakSet,aA=function(){for(const e of f(this,Js).keys())this.serve(e);y(this,kg,lA).call(this)},kg=new WeakSet,lA=function(){f(this,Od).resolve(),D(this,Od,FC())};var So,Ct,To,Mc,ko,$e,La,vw,qB,ww,HB,_w,WB,Eg,cA,$d,Pg,uA,Cg,dA,xw,jB,Sw,UB,Tw,GB,kw,YB,Ew,K
51B,Pw,XB,Oc,Cw,QB,Ag,hA,Mg,fA,zM,vtt;class ytt extends zu{constructor(t,n,s){super();b(this,vw);b(this,ww);b(this,_w);b(this,Eg);b(this,Pg);b(this,Cg);b(this,xw);b(this,Sw);b(this,Tw);b(this,kw);b(this,Ew);b(this,Pw);b(this,Cw);b(this,Ag);b(this,Mg);b(this,zM);b(this,So,void 0);b(this,Ct,void 0);b(this,To,void 0);O(this,"controls");b(this,Mc,void 0);b(this,ko,void 0);b(this,$e,void 0);b(this,La,new VB);b(this,$d,!1);b(this,Oc,void 0);D(this,So,t),D(this,Ct,n),D(this,To,s),D(this,$e,s.$provider),this.controls=new utt,D(this,Mc,new jZ),D(this,ko,new mv)}onAttach(){this.listen("fullscreen-change",y(this,Cw,QB).bind(this))}onConnect(t){const n=Object.getOwnPropertyNames(Object.getPrototypeOf(this)),s=new Ce(t),r=y(this,_w,WB).bind(this);for(const o of n)o.startsWith("media-")&&s.add(o,r);y(this,vw,qB).call(this),G(y(this,ww,HB).bind(this)),G(y(this,xw,jB).bind(this)),G(y(this,Sw,UB).bind(this)),G(y(this,Tw,GB).bind(this)),G(y(this,kw,YB).bind(this)),G(y(this,Ew,KB).bind(this)),G(y(this,Pw,XB).bind(this))}onDestroy(){try{const t=this.createEvent("destroy"),{pictureInPicture:n,fullscreen:s}=this.$state;s()&&this.exitFullscreen("prefer-media",t),n()&&this.exitPictureInPicture(t)}catch{}f(this,La).reset()}async play(t){const{canPlay:n,paused:s,autoPlaying:r}=this.$state;if(y(this,Eg,cA).call(this,t)||!nt(s))return;t&&f(this,Ct).queue.enqueue("media-play-request",t);const o=nt(r);try{const a=nt(f(this,$e));return oP(a,nt(n)),wtt(o),await a.play()}catch(a){const l=this.createEvent("play-fail",{detail:iP(a),trigger:t});throw l.autoPlay=o,f(this,So).handle(l),a}}async pause(t){const{canPlay:n,paused:s}=this.$state;if(!nt(s)){t&&f(this,Ct).queue.enqueue("media-pause-request",t);try{const r=nt(f(this,$e));return oP(r,nt(n)),await r.pause()}catch(r){throw f(this,Ct).queue.delete("media-pause-request"),r}}}setAudioGain(t,n){const{audioGain:s,canSetAudioGain:r}=this.$state;if(s()===t)return;const o=f(this,$e).call(this);if(!(o!=null&&o.audioGain)||!r())throw Error("[vidstack] audio gain api not available");n&&f(this,Ct).queue.enqueue("media-audio-gain-change-request",n),o.audioGain.setGain(t)}seekToLiveEdge(t){const{canPlay:n,live:s,liveEdge:r,canSeek:o,liveSyncPosition:a,seekableEnd:l,userBehindLiveEdge:c}=this.$state;if(c.set(!1),nt(()=>!s()||r()||!o()))return;const u=nt(f(this,$e));oP(u,nt(n)),t&&f(this,Ct).queue.enqueue("media-seek-request",t);const d=l()-2;u.setCurrentTime(Math.min(d,a()??d))}async enterFullscreen(t="prefer-media",n){const s=y(this,Pg,uA).call(this,t);if(oD(t,s),!s.active)return nt(this.$state.pictureInPicture)&&(D(this,$d,!0),await this.exitPictureInPicture(n)),n&&f(this,Ct).queue.enqueue("media-enter-fullscreen-request",n),s.enter()}async exitFullscreen(t="prefer-media",n){const s=y(this,Pg,uA).call(this,t);if(oD(t,s),!!s.active){n&&f(this,Ct).queue.enqueue("media-exit-fullscreen-request",n);try{const r=await s.exit();return f(this,$d)&&nt(this.$state.canPictureInPicture)&&await this.enterPictureInPicture(),r}finally{D(this,$d,!1)}}}async enterPictureInPicture(t){if(y(this,Cg,dA).call(this),!this.$state.pictureInPicture())return t&&f(this,Ct).queue.enqueue("media-enter-pip-request",t),await f(this,$e).call(this).pictureInPicture.enter()}async exitPictureInPicture(t){if(y(this,Cg,dA).call(this),!!this.$state.pictureInPicture())return t&&f(this,Ct).queue.enqueue("media-exit-pip-request",t),await f(this,$e).call(this).pictureInPicture.exit()}async"media-airplay-request"(t){try{await this.requestAirPlay(t)}catch{}}async requestAirPlay(t){var n;try{const s=(n=f(this,$e).call(this))==null?void 0:n.airPlay;if(!(s!=null&&s.supported))throw Error("No AirPlay adapter.");return t&&f(this,Ct).queue.enqueue("media-airplay-request",t),await s.prompt()}catch(s){throw f(this,Ct).queue.delete("media-airplay-request"),s}}async"media-google-cast-request"(t){try{await this.requestGoogleCast(t)}catch{}}async requestGoogleCast(t){try{const{canGoogleCast:n}=this.$state;if(!nt(n)){const r=Error("Cast not available.");throw r.code="CAST_NOT_AVAILABLE",r}if(H0("https://www.gstatic.com"),!f(this,Oc)){const r=await Yn(()=>import("./vidstack-D2pY00kU-52d2edf9.js").then(o=>o.v),[],import.meta.url);D(this,Oc,new r.GoogleCastLoader)}await f(this,Oc).prompt(f(this,To)),t&&f(this,Ct).queue.enqueue("media-google-cast-request",t);const s=nt(this.$state.remotePlaybackState)!=="disconnected";s&&this.$state.savedState.set({paused:nt(this.$state.paused),currentTime:nt(this.$state.currentTime)}),this.$state.remotePlaybackLoader.set(s?f(this,Oc):null)}catch(n){throw f(this,Ct).queue.delete("media-google-cast-request"),n}}"media-clip-start-change-request"(t){const{clipStartTime:n}=this.$state;n.set(t.detail)}"media-clip-end-change-request"(t){const{clipEndTime:n}=this.$state;n.set(t.detail),this.dispatch("duration-change",{detail:t.detail,trigger:t})}"media-duration-change-request"(t){const{providedDuration:n,clipEndTime:s}=this.$state;n.set(t.detail),s()<=0&&this.dispatch("duration-change",{detail:t.detail,trigger:t})}"media-audio-track-change-request"(t){const{logger:n,audioTracks:s}=f(this,To);if(s.readonly)return;const r=t.detail,o=s[r];if(o){const a=t.type;f(this,Ct).queue.enqueue(a,t),o.selected=!0}}async"media-enter-fullscreen-request"(t){try{await this.enterFullscreen(t.detail,t)}catch(n){y(this,Ag,hA).call(this,n,t)}}async"media-exit-fullscreen-request"(t){try{await this.exitFullscreen(t.detail,t)}catch(n){y(this,Ag,hA).call(this,n,t)}}async"media-orientation-lock-request"(t){const n=t.type;try{f(this,Ct).queue.enqueue(n,t),await f(this,ko).lock(t.detail)}catch{f(this,Ct).queue.delete(n)}}async"media-orientation-unlock-request"(t){const n=t.type;try{f(this,Ct).queue.enqueue(n,t),await f(this,ko).unlock()}catch{f(this,Ct).queue.delete(n)}}async"media-enter-pip-request"(t){try{await this.enterPictureInPicture(t)}catch(n){y(this,Mg,fA).call(this,n,t)}}async"media-exit-pip-request"(t){try{await this.exitPictureInPicture(t)}catch(n){y(this,Mg,fA).call(this,n,t)}}
51"media-live-edge-request"(t){const{live:n,liveEdge:s,canSeek:r}=this.$state;if(!(!n()||s()||!r())){f(this,Ct).queue.enqueue("media-seek-request",t);try{this.seekToLiveEdge()}catch{f(this,Ct).queue.delete("media-seek-request")}}}async"media-loop-request"(t){try{f(this,Ct).looping=!0,f(this,Ct).replaying=!0,await this.play(t)}catch{f(this,Ct).looping=!1}}"media-user-loop-change-request"(t){this.$state.userPrefersLoop.set(t.detail)}async"media-pause-request"(t){if(!this.$state.paused())try{await this.pause(t)}catch{}}async"media-play-request"(t){if(this.$state.paused())try{await this.play(t)}catch{}}"media-rate-change-request"(t){const{playbackRate:n,canSetPlaybackRate:s}=this.$state;if(n()===t.detail||!s())return;const r=f(this,$e).call(this);r!=null&&r.setPlaybackRate&&(f(this,Ct).queue.enqueue("media-rate-change-request",t),r.setPlaybackRate(t.detail))}"media-audio-gain-change-request"(t){try{this.setAudioGain(t.detail,t)}catch{}}"media-quality-change-request"(t){var a,l;const{qualities:n,storage:s,logger:r}=f(this,To);if(n.readonly)return;f(this,Ct).queue.enqueue("media-quality-change-request",t);const o=t.detail;if(o<0)n.autoSelect(t),t.isOriginTrusted&&((a=s==null?void 0:s.setVideoQuality)==null||a.call(s,null));else{const c=n[o];c&&(c.selected=!0,t.isOriginTrusted&&((l=s==null?void 0:s.setVideoQuality)==null||l.call(s,{id:c.id,width:c.width,height:c.height,bitrate:c.bitrate})))}}"media-pause-controls-request"(t){const n=t.type;f(this,Ct).queue.enqueue(n,t),this.controls.pause(t)}"media-resume-controls-request"(t){const n=t.type;f(this,Ct).queue.enqueue(n,t),this.controls.resume(t)}"media-seek-request"(t){const{canSeek:n,ended:s,live:r,seekableEnd:o,userBehindLiveEdge:a}=this.$state,l=t.detail;s()&&(f(this,Ct).replaying=!0);const c=t.type;f(this,Ct).seeking=!1,f(this,Ct).queue.delete(c);const u=mB(l,this.$state);!Number.isFinite(u)||!n()||(f(this,Ct).queue.enqueue(c,t),f(this,$e).call(this).setCurrentTime(u),r()&&t.isOriginTrusted&&Math.abs(o()-u)>=2&&a.set(!0))}"media-seeking-request"(t){const n=t.type;f(this,Ct).queue.enqueue(n,t),this.$state.seeking.set(!0),f(this,Ct).seeking=!0}"media-start-loading"(t){if(this.$state.canLoad())return;const n=t.type;f(this,Ct).queue.enqueue(n,t),f(this,So).handle(this.createEvent("can-load"))}"media-poster-start-loading"(t){if(this.$state.canLoadPoster())return;const n=t.type;f(this,Ct).queue.enqueue(n,t),f(this,So).handle(this.createEvent("can-load-poster"))}"media-text-track-change-request"(t){const{index:n,mode:s}=t.detail,r=f(this,To).textTracks[n];if(r){const o=t.type;f(this,Ct).queue.enqueue(o,t),r.setMode(s,t)}}"media-mute-request"(t){if(this.$state.muted())return;const n=t.type;f(this,Ct).queue.enqueue(n,t),f(this,$e).call(this).setMuted(!0)}"media-unmute-request"(t){const{muted:n,volume:s}=this.$state;if(!n())return;const r=t.type;f(this,Ct).queue.enqueue(r,t),f(this,To).$provider().setMuted(!1),s()===0&&(f(this,Ct).queue.enqueue(r,t),f(this,$e).call(this).setVolume(.25))}"media-volume-change-request"(t){const{muted:n,volume:s}=this.$state,r=t.detail;if(s()===r)return;const o=t.type;f(this,Ct).queue.enqueue(o,t),f(this,$e).call(this).setVolume(r),r>0&&n()&&(f(this,Ct).queue.enqueue(o,t),f(this,$e).call(this).setMuted(!1))}}So=new WeakMap,Ct=new WeakMap,To=new WeakMap,Mc=new WeakMap,ko=new WeakMap,$e=new WeakMap,La=new WeakMap,vw=new WeakSet,qB=function(){const{load:t}=this.$props,{canLoad:n}=this.$state;if(t()!=="play"||n())return;const s=this.listen("media-play-request",r=>{y(this,Eg,cA).call(this,r),s()})},ww=new WeakSet,HB=function(){const t=f(this,$e).call(this),n=this.$state.canPlay();return t&&n&&f(this,La).start(),()=>{f(this,La).stop()}},_w=new WeakSet,WB=function(t){t.stopPropagation(),!t.defaultPrevented&&this[t.type]&&(nt(f(this,$e))?this[t.type](t):f(this,La).enqueue(t.type,()=>{nt(f(this,$e))&&this[t.type](t)}))},Eg=new WeakSet,cA=function(t){const{load:n}=this.$props,{canLoad:s}=this.$state;if(n()==="play"&&!s()){const r=this.createEvent("media-start-loading",{trigger:t});return this.dispatchEvent(r),f(this,La).enqueue("media-play-request",async()=>{try{await this.play(r)}catch{}}),!0}return!1},$d=new WeakMap,Pg=new WeakSet,uA=function(t){const n=nt(f(this,$e));return t==="prefer-media"&&f(this,Mc).supported||t==="media"?f(this,Mc):n==null?void 0:n.fullscreen},Cg=new WeakSet,dA=function(){if(!this.$state.canPictureInPicture())throw Error("[vidstack] no pip support")},xw=new WeakSet,jB=function(){this.controls.defaultDelay=this.$props.controlsDelay()},Sw=new WeakSet,UB=function(){var s,r;const{canSetAudioGain:t}=this.$state,n=!!((r=(s=f(this,$e).call(this))==null?void 0:s.audioGain)!=null&&r.supported);t.set(n)},Tw=new WeakSet,GB=function(){var s,r;const{canAirPlay:t}=this.$state,n=!!((r=(s=f(this,$e).call(this))==null?void 0:s.airPlay)!=null&&r.supported);t.set(n)},kw=new WeakSet,YB=function(){const{canGoogleCast:t,source:n}=this.$state,s=wJ&&!D3&&FJ(n());t.set(s)},Ew=new WeakSet,KB=function(){var s,r;const{canFullscreen:t}=this.$state,n=f(this,Mc).supported||!!((r=(s=f(this,$e).call(this))==null?void 0:s.fullscreen)!=null&&r.supported);t.set(n)},Pw=new WeakSet,XB=function(){var s,r;const{canPictureInPicture:t}=this.$state,n=!!((r=(s=f(this,$e).call(this))==null?void 0:s.pictureInPicture)!=null&&r.supported);t.set(n)},Oc=new WeakMap,Cw=new WeakSet,QB=async function(t){const n=nt(this.$props.fullscreenOrientation),s=t.detail;if(!(cr(n)||n==="none"||!f(this,ko).supported))if(s){if(f(this,ko).locked)return;this.dispatch("media-orientation-lock-request",{detail:n,trigger:t})}else f(this,ko).locked&&this.dispatch("media-orientation-unlock-request",{trigger:t})}
51,Ag=new WeakSet,hA=function(t,n){f(this,So).handle(this.createEvent("fullscreen-error",{detail:iP(t)}))},Mg=new WeakSet,fA=function(t,n){f(this,So).handle(this.createEvent("picture-in-picture-error",{detail:iP(t)}))},zM=new WeakSet,vtt=function(t,n,s){};function oP(i,e){if(!(i&&e))throw Error("[vidstack] media not ready")}function oD(i,e){if(!(e!=null&&e.supported))throw Error("[vidstack] no fullscreen support")}function wtt(i){if(!(!HZ()||!i))throw Error("[vidstack] autoplay blocked")}class _tt{constructor(){O(this,"seeking",!1);O(this,"looping",!1);O(this,"replaying",!1);O(this,"queue",new btt)}}const xtt=new Set(["auto-play","auto-play-fail","can-load","sources-change","source-change","load-start","abort","error","loaded-metadata","loaded-data","can-play","play","play-fail","pause","playing","seeking","seeked","waiting"]);var gn,Zt,ge,$c,Ld,Lc,Ic,Eo,Ia,Aw,JB,Mw,ZB,Mr,wa,Le,Qe,Ow,t6,$w,e6,Lw,i6,Id,cy,Og,pA,$g,gA,Iw,n6,Lg,mA,Dw,s6,Rw,r6,Dd,Ig,bA,Rd,uy,Fw,o6,Nw,a6,Bw,l6,Dg,yA,Rg,vA,Fg,wA,zw,c6,Ng,_A,Vw,u6,Fd,qw,d6,Bg,xA;class Stt extends zu{constructor(t,n){super();b(this,Aw);b(this,Mw);b(this,Mr);b(this,Le);b(this,Ow);b(this,$w);b(this,Lw);b(this,Id);b(this,Og);b(this,$g);b(this,Iw);b(this,Lg);b(this,Dw);b(this,Rw);b(this,Ig);b(this,Rd);b(this,Fw);b(this,Nw);b(this,Bw);b(this,Dg);b(this,Rg);b(this,Fg);b(this,zw);b(this,Ng);b(this,Vw);b(this,qw);b(this,Bg);b(this,gn,void 0);b(this,Zt,void 0);b(this,ge,new Map);b(this,$c,!1);b(this,Ld,[]);b(this,Lc,[-1,-1]);b(this,Ic,!1);b(this,Eo,void 0);b(this,Ia,!1);b(this,Dd,null);O(this,"seeking",Bu(t=>{const{seeking:n,realCurrentTime:s,paused:r}=this.$state;n.set(!0),s.set(t.detail),y(this,Le,Qe).call(this,"media-seeking-request",t),r()&&(D(this,Eo,t),f(this,Fd).call(this)),D(this,Lc,[-1,-1])},150,{leading:!0}));b(this,Fd,JO(()=>{if(!f(this,Eo))return;D(this,Ic,!0);const{waiting:t,playing:n}=this.$state;t.set(!0),n.set(!1);const s=this.createEvent("waiting",{trigger:f(this,Eo)});f(this,ge).set("waiting",s),this.dispatch(s),D(this,Eo,void 0),D(this,Ic,!1)},300));D(this,gn,t),D(this,Zt,n)}onAttach(t){t.setAttribute("aria-busy","true"),new Ce(this).add("fullscreen-change",this["fullscreen-change"].bind(this)).add("fullscreen-error",this["fullscreen-error"].bind(this)).add("orientation-change",this["orientation-change"].bind(this))}onConnect(t){G(y(this,Nw,a6).bind(this)),y(this,Ow,t6).call(this),y(this,$w,e6).call(this),y(this,Lw,i6).call(this),y(this,Aw,JB).call(this),jt(y(this,Mw,ZB).bind(this))}onDestroy(){const{audioTracks:t,qualities:n,textTracks:s}=f(this,Zt);t[se.reset](),n[se.reset](),s[se.reset](),y(this,Rd,uy).call(this)}handle(t){if(!this.scope)return;const n=t.type;Fp(()=>{var s;return(s=this[t.type])==null?void 0:s.call(this,t)}),xtt.has(n)&&f(this,ge).set(n,t),this.dispatch(t)}"provider-change"(t){var r,o;const n=f(this,Zt).$provider(),s=t.detail;(n==null?void 0:n.type)!==(s==null?void 0:s.type)&&((r=n==null?void 0:n.destroy)==null||r.call(n),(o=n==null?void 0:n.scope)==null||o.dispose(),f(this,Zt).$provider.set(t.detail),n&&t.detail===null&&y(this,Dg,yA).call(this,t))}"provider-loader-change"(t){}"auto-play"(t){this.$state.autoPlayError.set(null)}"auto-play-fail"(t){this.$state.autoPlayError.set(t.detail),y(this,Mr,wa).call(this)}"can-load"(t){this.$state.canLoad.set(!0),f(this,ge).set("can-load",t),f(this,Zt).textTracks[Gt.canLoad](),y(this,Le,Qe).call(this,"media-start-loading",t)}"can-load-poster"(t){this.$state.canLoadPoster.set(!0),f(this,ge).set("can-load-poster",t),y(this,Le,Qe).call(this,"media-poster-start-loading",t)}"media-type-change"(t){const n=f(this,ge).get("source-change");n&&t.triggers.add(n);const s=this.$state.viewType();this.$state.mediaType.set(t.detail);const r=this.$state.providedViewType(),o=r==="unknown"?t.detail:r;s!==o&&setTimeout(()=>{requestAnimationFrame(()=>{this.scope&&(this.$state.inferredViewType.set(t.detail),this.dispatch("view-type-change",{detail:o,trigger:t}))})},0)}"stream-type-change"(t){const n=f(this,ge).get("source-change");n&&t.triggers.add(n);const{streamType:s,inferredStreamType:r}=this.$state;r.set(t.detail),t.detail=s()}"rate-change"(t){var r;const{storage:n}=f(this,Zt),{canPlay:s}=this.$state;this.$state.playbackRate.set(t.detail),y(this,Le,Qe).call(this,"media-rate-change-request",t),s()&&((r=n==null?void 0:n.setPlaybackRate)==null||r.call(n,t.detail))}"remote-playback-change"(t){const{remotePlaybackState:n,remotePlaybackType:s}=this.$state,{type:r,state:o}=t.detail,a=o==="connected";s.set(r),n.set(o);const l=r==="airplay"?"media-airplay-request":"media-google-cast-request";if(a)y(this,Le,Qe).call(this,l,t);else{const c=f(this,gn).queue.peek(l);c&&(t.request=c,t.triggers.add(c))}}"sources-change"(t){const n=this.$state.sources(),s=t.detail;this.$state.sources.set(s),y(this,Bw,l6).call(this,n,s,t)}"source-change"(t){var s,r;t.isQualityChange=((s=t.originEvent)==null?void 0:s.type)==="quality-change";const n=t.detail;y(this,Dg,yA).call(this,t,t.isQualityChange),f(this,ge).set(t.type,t),this.$state.source.set(n),(r=this.el)==null||r.setAttribute("aria-busy","true")}abort(t){const n=f(this,ge).get("source-change");n&&t.triggers.add(n);const s=f(this,ge).get("can-load");s&&!t.triggers.hasType("can-load")&&t.triggers.add(s)}"load-start"(t){const n=f(this,ge).get("source-change");n&&t.triggers.add(n)}error(t){this.$state.error.set(t.detail);const n=f(this,ge).get("abort");n&&t.triggers.add(n)}"loaded-metadata"(t){const n=f(this,ge).get("load-start");n&&t.triggers.add(n)}"loaded-data"(t){const n=f(this,ge).get("load-start");n&&t.triggers.add(n)}"can-play"(t){var s;const n=f(this,ge).get("loaded-metadata");n&&t.triggers.add(n),y(this,Rg,vA).call(this,t.detail),(s=this.el)==null||s.setAttribute("aria-busy","false")}"can-play-through"(t){y(this,Rg,vA).call(this,t.detail);const n=f(this,ge).get("can-play");n&&t.triggers.add(n)}"duration-change"(t){const{live:n,intrinsicDuration:s,providedDuration:r,clipEndTime:o,ended:a}=this.$state,l=t.detail;if(!n()){const c=Number.isNaN(l)?0:l;s.set(c),a()&&y(this,Ng,_A).call(this,t)}(r()>0||o()>0)&&t.stopImmediatePropagation()}progress(t){const{buffered:n,seekable:s}=this.$state,{buffered:r,seekable:o}=t.detail,a=ac(r),l=r.length!==n().length,c=a!==ac(n()),u=ac(o),d=o.length!==s().length,h=u!==ac(s());(l||c)&&n.set(r),(d||h)&&s.set(o)}play(t){const{paused:n,autoPlayError:s,ended:r,autoPlaying:o,playsInl
51ine:a,pointer:l,muted:c,viewType:u,live:d,userBehindLiveEdge:h}=this.$state;if(y(this,Fg,wA).call(this),!n()){t.stopImmediatePropagation();return}t.autoPlay=o();const p=f(this,ge).get("waiting");p&&t.triggers.add(p),y(this,Le,Qe).call(this,"media-play-request",t),f(this,ge).set("play",t),n.set(!1),s.set(null),t.autoPlay&&(this.handle(this.createEvent("auto-play",{detail:{muted:c()},trigger:t})),o.set(!1)),(r()||f(this,gn).replaying)&&(f(this,gn).replaying=!1,r.set(!1),this.handle(this.createEvent("replay",{trigger:t}))),!a()&&u()==="video"&&l()==="coarse"&&f(this,Zt).remote.enterFullscreen("prefer-media",t),d()&&!h()&&f(this,Zt).remote.seekToLiveEdge(t)}"play-fail"(t){const{muted:n,autoPlaying:s}=this.$state,r=f(this,ge).get("play");r&&t.triggers.add(r),y(this,Le,Qe).call(this,"media-play-request",t);const{paused:o,playing:a}=this.$state;o.set(!0),a.set(!1),y(this,Mr,wa).call(this),f(this,ge).set("play-fail",t),t.autoPlay&&(this.handle(this.createEvent("auto-play-fail",{detail:{muted:n(),error:t.detail},trigger:t})),s.set(!1))}playing(t){const n=f(this,ge).get("play"),s=f(this,ge).get("seeked");n?t.triggers.add(n):s&&t.triggers.add(s),setTimeout(()=>y(this,Mr,wa).call(this),0);const{paused:r,playing:o,live:a,liveSyncPosition:l,seekableEnd:c,started:u,currentTime:d,seeking:h,ended:p}=this.$state;if(r.set(!1),o.set(!0),h.set(!1),p.set(!1),f(this,gn).looping){f(this,gn).looping=!1;return}if(a()&&!u()&&d()===0){const m=l()??c()-2;Number.isFinite(m)&&f(this,Zt).$provider().setCurrentTime(m)}this.started(t)}started(t){const{started:n}=this.$state;n()||(n.set(!0),this.handle(this.createEvent("started",{trigger:t})))}pause(t){var o;(o=this.el)!=null&&o.isConnected||D(this,Ia,!0),y(this,Le,Qe).call(this,"media-pause-request",t);const n=f(this,ge).get("seeked");n&&t.triggers.add(n);const{paused:s,playing:r}=this.$state;s.set(!0),r.set(!1),f(this,$c)&&setTimeout(()=>{this.handle(this.createEvent("end",{trigger:t})),D(this,$c,!1)},0),y(this,Mr,wa).call(this)}"time-change"(t){if(f(this,gn).looping){t.stopImmediatePropagation();return}let{waiting:n,played:s,clipEndTime:r,realCurrentTime:o,currentTime:a}=this.$state,l=t.detail,c=r();o.set(l),y(this,zw,c6).call(this),n.set(!1);for(const u of f(this,Zt).textTracks)u[Gt.updateActiveCues](l,t);c>0&&l>=c&&(D(this,$c,!0),this.dispatch("media-pause-request",{trigger:t})),y(this,Vw,u6).call(this),this.dispatch("time-update",{detail:{currentTime:a(),played:s()},trigger:t})}"audio-gain-change"(t){var o;const{storage:n}=f(this,Zt),{canPlay:s,audioGain:r}=this.$state;r.set(t.detail),y(this,Le,Qe).call(this,"media-audio-gain-change-request",t),s()&&((o=n==null?void 0:n.setAudioGain)==null||o.call(n,r()))}"volume-change"(t){var l,c;const{storage:n}=f(this,Zt),{volume:s,muted:r,canPlay:o}=this.$state,a=t.detail;s.set(a.volume),r.set(a.muted||a.volume===0),y(this,Le,Qe).call(this,"media-volume-change-request",t),y(this,Le,Qe).call(this,a.muted?"media-mute-request":"media-unmute-request",t),o()&&((l=n==null?void 0:n.setVolume)==null||l.call(n,s()),(c=n==null?void 0:n.setMuted)==null||c.call(n,r()))}seeked(t){const{seeking:n,currentTime:s,realCurrentTime:r,paused:o,seekableEnd:a,ended:l,live:c}=this.$state;if(f(this,gn).seeking)n.set(!0),t.stopImmediatePropagation();else if(n()){const u=f(this,ge).get("waiting");u&&t.triggers.add(u);const d=f(this,ge).get("seeking");d&&!t.triggers.has(d)&&t.triggers.add(d),o()&&y(this,Bg,xA).call(this),n.set(!1),r.set(t.detail),y(this,Le,Qe).call(this,"media-seek-request",t);const h=t==null?void 0:t.originEvent;h!=null&&h.isTrusted&&!(h instanceof MessageEvent)&&!/seek/.test(h.type)&&this.started(t)}c()||(Math.floor(s())!==Math.floor(a())?l.set(!1):this.end(t))}waiting(t){f(this,Ic)||f(this,gn).seeking||(t.stopImmediatePropagation(),D(this,Eo,t),f(this,Fd).call(this))}end(t){const{loop:n,ended:s}=this.$state;if(!(!n()&&s())){if(n()){setTimeout(()=>{requestAnimationFrame(()=>{y(this,Fg,wA).call(this,t),this.dispatch("media-loop-request",{trigger:t})})},10);return}setTimeout(()=>y(this,qw,d6).call(this,t),0)}}"fullscreen-change"(t){const n=t.detail;this.$state.fullscreen.set(n),y(this,Le,Qe).call(this,n?"media-enter-fullscreen-request":"media-exit-fullscreen-request",t)}"fullscreen-error"(t){y(this,Le,Qe).call(this,"media-enter-fullscreen-request",t),y(this,Le,Qe).call(this,"media-exit-fullscreen-request",t)}"orientation-change"(t){const n=t.detail.lock;y(this,Le,Qe).call(this,n?"media-orientation-lock-request":"media-orientation-unlock-request",t)}"picture-in-picture-change"(t){const n=t.detail;this.$state.pictureInPicture.set(n),y(this,Le,Qe).call(this,n?"media-enter-pip-request":"media-exit-pip-request",t)}"picture-in-picture-error"(t){y(this,Le,Qe).call(this,"media-enter-pip-request",t),y(this,Le,Qe).call(this,"media-exit-pip-request",t)}"title-change"(t){t.trigger&&(t.stopImmediatePropagation(),this.$state.inferredTitle.set(t.detail))}"poster-change"(t){t.trigger&&(t.stopImmediatePropagation(),this.$state.inferredPoster.set(t.detail))}}gn=new WeakMap,Zt=new WeakMap,ge=new WeakMap,$c=new WeakMap,Ld=new WeakMap,Lc=new WeakMap,Ic=new WeakMap,Eo=new WeakMap,Ia=new WeakMap,Aw=new WeakSet,JB=function(){f(this,Ia)&&(requestAnimationFrame(()=>{this.scope&&f(this,Zt).remote.play(new Pe("dom-connect"))}),D(this,Ia,!1))},Mw=new WeakSet,ZB=function(){var t;f(this,Ia)||(D(this,Ia,!this.$state.paused()),(t=f(this,Zt).$provider())==null||t.pause())},Mr=new WeakSet,wa=function(){y(this,Bg,xA).call(this),D(this,$c,!1),f(this,gn).replaying=!1,f(this,gn).looping=!1,D(this,Ic,!1),D(this,Eo,void 0),f(this,ge).clear()},Le=new WeakSet,Qe=function(t,n){const s=f(this,gn).queue.serve(t);s&&(n.request=s,n.triggers.add(s))},Ow=new WeakSet,t6=function(){y(this,Id,cy).call(this),y(this,Og,pA).call(this);const t=f(this,Zt).textTracks;
51new Ce(t).add("add",y(this,Id,cy).bind(this)).add("remove",y(this,Id,cy).bind(this)).add("mode-change",y(this,Og,pA).bind(this))},$w=new WeakSet,e6=function(){const t=f(this,Zt).qualities;new Ce(t).add("add",y(this,Lg,mA).bind(this)).add("remove",y(this,Lg,mA).bind(this)).add("change",y(this,Dw,s6).bind(this)).add("auto-change",y(this,Rw,r6).bind(this)).add("readonly-change",y(this,Fw,o6).bind(this))},Lw=new WeakSet,i6=function(){const t=f(this,Zt).audioTracks;new Ce(t).add("add",y(this,$g,gA).bind(this)).add("remove",y(this,$g,gA).bind(this)).add("change",y(this,Iw,n6).bind(this))},Id=new WeakSet,cy=function(t){const{textTracks:n}=this.$state;n.set(f(this,Zt).textTracks.toArray()),this.dispatch("text-tracks-change",{detail:n(),trigger:t})},Og=new WeakSet,pA=function(t){t&&y(this,Le,Qe).call(this,"media-text-track-change-request",t);const n=f(this,Zt).textTracks.selected,{textTrack:s}=this.$state;s()!==n&&(s.set(n),this.dispatch("text-track-change",{detail:n,trigger:t}))},$g=new WeakSet,gA=function(t){const{audioTracks:n}=this.$state;n.set(f(this,Zt).audioTracks.toArray()),this.dispatch("audio-tracks-change",{detail:n(),trigger:t})},Iw=new WeakSet,n6=function(t){const{audioTrack:n}=this.$state;n.set(f(this,Zt).audioTracks.selected),t&&y(this,Le,Qe).call(this,"media-audio-track-change-request",t),this.dispatch("audio-track-change",{detail:n(),trigger:t})},Lg=new WeakSet,mA=function(t){const{qualities:n}=this.$state;n.set(f(this,Zt).qualities.toArray()),this.dispatch("qualities-change",{detail:n(),trigger:t})},Dw=new WeakSet,s6=function(t){const{quality:n}=this.$state;n.set(f(this,Zt).qualities.selected),t&&y(this,Le,Qe).call(this,"media-quality-change-request",t),this.dispatch("quality-change",{detail:n(),trigger:t})},Rw=new WeakSet,r6=function(){const{qualities:t}=f(this,Zt),n=t.auto;this.$state.autoQuality.set(n),n||y(this,Rd,uy).call(this)},Dd=new WeakMap,Ig=new WeakSet,bA=function(){y(this,Rd,uy).call(this),D(this,Dd,G(()=>{const{qualities:t}=f(this,Zt),{mediaWidth:n,mediaHeight:s}=this.$state,r=n(),o=s();if(r===0||o===0)return;let a=null,l=1/0;for(const c of t){const u=Math.abs(c.width-r)+Math.abs(c.height-o);u<l&&(l=u,a=c)}a&&t[se.select](a,!0,new Pe("resize",{detail:{width:r,height:o}}))}))},Rd=new WeakSet,uy=function(){var t;(t=f(this,Dd))==null||t.call(this),D(this,Dd,null)},Fw=new WeakSet,o6=function(){this.$state.canSetQuality.set(!f(this,Zt).qualities.readonly)},Nw=new WeakSet,a6=function(){const{canSetVolume:t,isGoogleCastConnected:n}=this.$state;if(n()){t.set(!1);return}kJ().then(t.set)},Bw=new WeakSet,l6=function(t,n,s){let{qualities:r}=f(this,Zt),o=!1,a=!1;for(const l of t){if(!XC(l))continue;if(!n.some(u=>u.src===l.src)){const u=r.getBySrc(l.src);u&&(r[se.remove](u,s),a=!0)}}a&&!r.length&&(this.$state.savedState.set(null),r[se.reset](s));for(const l of n){if(!XC(l)||r.getBySrc(l.src))continue;const c={id:l.id??l.height+"p",bitrate:null,codec:null,...l,selected:!1};r[se.add](c,s),o=!0}o&&!r[Xs.enableAuto]&&(y(this,Ig,bA).call(this),r[Xs.enableAuto]=y(this,Ig,bA).bind(this),r[Xs.setAuto](!0,s))},Dg=new WeakSet,yA=function(t,n=!1){const{audioTracks:s,qualities:r}=f(this,Zt);if(!n){D(this,Ld,[]),D(this,Lc,[-1,-1]),s[se.reset](t),r[se.reset](t),nD(this.$state,n),y(this,Mr,wa).call(this);return}nD(this.$state,n),y(this,Mr,wa).call(this)},Rg=new WeakSet,vA=function(t){const{seekable:n,buffered:s,intrinsicDuration:r,canPlay:o}=this.$state;o.set(!0),s.set(t.buffered),n.set(t.seekable);const a=ac(t.seekable)??1/0;r.set(a)},Fg=new WeakSet,wA=function(t){if(!nt(f(this,Zt).$provider))return;const{ended:s,seekableStart:r,clipEndTime:o,currentTime:a,realCurrentTime:l,duration:c}=this.$state,u=s()||l()<r()||o()>0&&l()>=o()||Math.abs(a()-c())<.1;return u&&this.dispatch("media-seek-request",{detail:r(),trigger:t}),u},zw=new WeakSet,c6=function(){const{currentTime:t,played:n,paused:s}=this.$state;s()||(D(this,Lc,BJ(f(this,Ld),f(this,Lc),t())),n.set(new oy(f(this,Ld))))},Ng=new WeakSet,_A=function(t){const{clipStartTime:n,clipEndTime:s,duration:r}=this.$state;n()>0||s()>0||this.handle(this.createEvent("time-change",{detail:r(),trigger:t}))},Vw=new WeakSet,u6=function(){var r;const{storage:t}=f(this,Zt),{canPlay:n,realCurrentTime:s}=this.$state;n()&&((r=t==null?void 0:t.setTime)==null||r.call(t,s()))},Fd=new WeakMap,qw=new WeakSet,d6=function(t){var l;const{storage:n}=f(this,Zt),{paused:s,seeking:r,ended:o,duration:a}=this.$state;y(this,Ng,_A).call(this,t),s()||this.dispatch("pause",{trigger:t}),r()&&this.dispatch("seeked",{detail:a(),trigger:t}
51),o.set(!0),y(this,Mr,wa).call(this),(l=n==null?void 0:n.setTime)==null||l.call(n,a(),!0),this.dispatch("ended",{trigger:t})},Bg=new WeakSet,xA=function(){f(this,Fd).cancel(),this.$state.waiting.set(!1)};var Hw,h6,Ww,f6,VM,ktt,jw,p6,Uw,g6,Gw,m6,Yw,b6,Kw,y6,Xw,v6,Qw,w6,Jw,_6,Zw,x6,t_,S6,e_,T6,i_,k6,n_,E6,s_,P6;class Ttt extends zu{constructor(){super(...arguments);b(this,Hw);b(this,Ww);b(this,VM);b(this,jw);b(this,Uw);b(this,Gw);b(this,Yw);b(this,Kw);b(this,Xw);b(this,Qw);b(this,Jw);b(this,Zw);b(this,t_);b(this,e_);b(this,i_);b(this,n_);b(this,s_)}onSetup(){y(this,Hw,h6).call(this);const t=[y(this,jw,p6),y(this,Gw,m6),y(this,t_,S6),y(this,e_,T6),y(this,Kw,y6),y(this,Qw,w6),y(this,Jw,_6),y(this,i_,k6),y(this,s_,P6),y(this,n_,E6),y(this,Yw,b6),y(this,Zw,x6),y(this,Xw,v6),y(this,Ww,f6),y(this,Uw,g6)];for(const n of t)G(n.bind(this))}}Hw=new WeakSet,h6=function(){var s;const t={duration:"providedDuration",loop:"providedLoop",poster:"providedPoster",streamType:"providedStreamType",title:"providedTitle",viewType:"providedViewType"},n=new Set(["currentTime","paused","playbackRate","volume"]);for(const r of Object.keys(this.$props))n.has(r)||(s=this.$state[t[r]??r])==null||s.set(this.$props[r]());this.$state.muted.set(this.$props.muted()||this.$props.volume()===0)},Ww=new WeakSet,f6=function(){const{viewType:t,streamType:n,title:s,poster:r,loop:o}=this.$props,a=this.$state;a.providedPoster.set(r()),a.providedStreamType.set(n()),a.providedViewType.set(t()),a.providedTitle.set(s()),a.providedLoop.set(o())},VM=new WeakSet,ktt=function(){},jw=new WeakSet,p6=function(){const{artist:t,artwork:n}=this.$props;this.$state.artist.set(t()),this.$state.artwork.set(n())},Uw=new WeakSet,g6=function(){const{title:t}=this.$state;this.dispatch("title-change",{detail:t()})},Gw=new WeakSet,m6=function(){const t=this.$props.autoPlay()||this.$props.autoplay();this.$state.autoPlay.set(t),this.dispatch("auto-play-change",{detail:t})},Yw=new WeakSet,b6=function(){const t=this.$state.loop();this.dispatch("loop-change",{detail:t})},Kw=new WeakSet,y6=function(){const t=this.$props.controls();this.$state.controls.set(t)},Xw=new WeakSet,v6=function(){const{poster:t}=this.$state;this.dispatch("poster-change",{detail:t()})},Qw=new WeakSet,w6=function(){const t=this.$props.crossOrigin()??this.$props.crossorigin(),n=t===!0?"":t;this.$state.crossOrigin.set(n)},Jw=new WeakSet,_6=function(){const{duration:t}=this.$props;this.dispatch("media-duration-change-request",{detail:t()})},Zw=new WeakSet,x6=function(){const t=this.$props.playsInline()||this.$props.playsinline();this.$state.playsInline.set(t),this.dispatch("plays-inline-change",{detail:t})},t_=new WeakSet,S6=function(){const{clipStartTime:t}=this.$props;this.dispatch("media-clip-start-change-request",{detail:t()})},e_=new WeakSet,T6=function(){const{clipEndTime:t}=this.$props;this.dispatch("media-clip-end-change-request",{detail:t()})},i_=new WeakSet,k6=function(){this.dispatch("live-change",{detail:this.$state.live()})},n_=new WeakSet,E6=function(){this.$state.liveEdgeTolerance.set(this.$props.liveEdgeTolerance()),this.$state.minLiveDVRWindow.set(this.$props.minLiveDVRWindow())},s_=new WeakSet,P6=function(){this.dispatch("live-edge-change",{detail:this.$state.liveEdge()})};const aD=["play","pause","seekforward","seekbackward","seekto"];var r_,C6,o_,A6,a_,M6,l_,O6;class Ett extends zu{constructor(){super(...arguments);b(this,r_);b(this,o_);b(this,a_);b(this,l_)}onConnect(){G(y(this,o_,A6).bind(this)),G(y(this,a_,M6).bind(this));const t=y(this,l_,O6).bind(this);for(const n of aD)navigator.mediaSession.setActionHandler(n,t);jt(y(this,r_,C6).bind(this))}}r_=new WeakSet,C6=function(){for(const t of aD)navigator.mediaSession.setActionHandler(t,null)},o_=new WeakSet,A6=function(){const{title:t,artist:n,artwork:s,poster:r}=this.$state;navigator.mediaSession.metadata=new MediaMetadata({title:t(),artist:n(),artwork:s()??[{src:r()}]})},a_=new WeakSet,M6=function(){const{canPlay:t,paused:n}=this.$state;navigator.mediaSession.playbackState=t()?n()?"paused":"playing":"none"},l_=new WeakSet,O6=function(t){const n=new Pe("media-session-action",{detail:t});switch(t.action){case"play":this.dispatch("media-play-request",{trigger:n});break;case"pause":this.dispatch("media-pause-request",{trigger:n});break;case"seekto":case"seekforward":case"seekbackward":this.dispatch("media-seek-request",{detail:Fs(t.seekTime)?t.seekTime:this.$state.currentTime()+(t.seekOffset??(t.action==="seekforward"?10:-10)),trigger:n});break}};var qi,Dc,Hi,mn,Zn,Nd,dy,Bd,c_,$6,u_,L6,d_,I6,h_,D6,f_,R6,Rc,qf,zg,SA,p_,F6,Vg,TA,g_,N6,qg,kA,m_,B6,Hg,EA,b_,z6,Wg,PA,y_,V6,jg,CA,v_,q6,w_,H6,__,W6,x_,j6;const lc=class lc extends wt{constructor(){super();b(this,mn);b(this,Nd);b(this,c_);b(this,u_);b(this,d_);b(this,h_);b(this,f_);b(this,Rc);b(this,zg);b(this,p_);b(this,Vg);b(this,g_);b(this,qg);b(this,m_);b(this,Hg);b(this,b_);b(this,Wg);b(this,y_);b(this,jg);b(this,v_);b(this,w_);b(this,__);b(this,x_);b(this,qi,void 0);b(this,Dc,void 0);b(this,Hi,void 0);O(this,"canPlayQueue",new VB);O(this,"remoteControl");b(this,Bd,!1);O(this,"orientation");new Ttt;const t={player:this,qualities:new ttt,audioTracks:new XZ,storage:null,$provider:Ot(null),$providerSetup:Ot(!1),$props:this.$props,$state:this.$state};t.remote=this.remoteControl=new GZ(void 0),t.remote.setPlayer(this),t.textTracks=new ZZ,t.textTracks[Gt.crossOrigin]=this.$state.crossOrigin,t.textRenderers=new JZ(t),t.ariaKeys={},D(this,qi,t),ws(I3,t),this.orientation=new mv,new mr,new ott(t);const n=new _tt;D(this,Dc,new Stt(n,t)),D(this,Hi,new ytt(f(this,Dc),n,t)),t.delegate=new mtt(f(this,Dc).handle.bind(f(this,Dc)),t),t.notify=t.delegate.notify.bind(t.delegate),typeof navigator<"u"&&"mediaSession"in navigator&&new Ett,new rD("load",this.startLoading.bind(this)),new rD("posterLoad",this.startLoadingPoster.bind(this))}onSetup(){y(this,h_,D6).call(this),G(y(this,d_,I6).bind(this)),G(y(this,g_,N6).bind(this)),G(y(this,p_,F6).bind(this)),G(y(this,b_,z6).bind(this)),G(y(this,m_,B6).bind(this)),G(y(this,v_,q6).bind(this)),G(y(this,y_,V6).bind(this))}onAttach(t){t.setAttribute("data-media-player",""),oe(t,"tabindex","0"),oe(t,"role","regi
51on"),G(y(this,__,W6).bind(this)),G(y(this,c_,$6).bind(this)),G(y(this,u_,L6).bind(this)),Ni(t,"find-media-player",y(this,f_,R6).bind(this))}onConnect(t){R3&&ft(t,"data-iphone","");const n=window.matchMedia("(pointer: coarse)");y(this,zg,SA).call(this,n),n.onchange=y(this,zg,SA).bind(this);const s=new ResizeObserver(lf(y(this,Rc,qf).bind(this)));s.observe(t),G(y(this,Rc,qf).bind(this)),this.dispatch("media-player-connect",{detail:this,bubbles:!0,composed:!0}),jt(()=>{s.disconnect(),n.onchange=null})}onDestroy(){f(this,qi).player=null,this.canPlayQueue.reset()}get provider(){return f(this,mn,Zn)}get controls(){return f(this,Hi).controls}set controls(t){f(this,Nd,dy).controls.set(t)}get title(){return nt(this.$state.title)}set title(t){if(f(this,Bd)){D(this,Bd,!1);return}f(this,Nd,dy).title.set(t)}get qualities(){return f(this,qi).qualities}get audioTracks(){return f(this,qi).audioTracks}get textTracks(){return f(this,qi).textTracks}get textRenderers(){return f(this,qi).textRenderers}get duration(){return this.$state.duration()}set duration(t){f(this,Nd,dy).duration.set(t)}get paused(){return nt(this.$state.paused)}set paused(t){y(this,Vg,TA).call(this,t)}get muted(){return nt(this.$state.muted)}set muted(t){y(this,qg,kA).call(this,t)}get currentTime(){return nt(this.$state.currentTime)}set currentTime(t){y(this,Hg,EA).call(this,t)}get volume(){return nt(this.$state.volume)}set volume(t){y(this,Wg,PA).call(this,t)}get playbackRate(){return nt(this.$state.playbackRate)}set playbackRate(t){y(this,jg,CA).call(this,t)}async play(t){return f(this,Hi).play(t)}async pause(t){return f(this,Hi).pause(t)}async enterFullscreen(t,n){return f(this,Hi).enterFullscreen(t,n)}async exitFullscreen(t,n){return f(this,Hi).exitFullscreen(t,n)}enterPictureInPicture(t){return f(this,Hi).enterPictureInPicture(t)}exitPictureInPicture(t){return f(this,Hi).exitPictureInPicture(t)}seekToLiveEdge(t){f(this,Hi).seekToLiveEdge(t)}startLoading(t){f(this,qi).notify("can-load",void 0,t)}startLoadingPoster(t){f(this,qi).notify("can-load-poster",void 0,t)}requestAirPlay(t){return f(this,Hi).requestAirPlay(t)}requestGoogleCast(t){return f(this,Hi).requestGoogleCast(t)}setAudioGain(t,n){return f(this,Hi).setAudioGain(t,n)}destroy(){super.destroy(),f(this,qi).remote.setPlayer(null),this.dispatch("destroy")}};qi=new WeakMap,Dc=new WeakMap,Hi=new WeakMap,mn=new WeakSet,Zn=function(){return f(this,qi).$provider()},Nd=new WeakSet,dy=function(){return this.$props},Bd=new WeakMap,c_=new WeakSet,$6=function(){const t=this.$el,{title:n,live:s,viewType:r,providedTitle:o}=this.$state,a=s(),l=ZQ(r()),c=l!=="Unknown"?`${a?"Live ":""}${l}`:a?"Live":"Media",u=n();ft(this.el,"aria-label",`${c} Player`+(u?` - ${u}`:"")),t!=null&&t.hasAttribute("title")&&(D(this,Bd,!0),t==null||t.removeAttribute("title"))},u_=new WeakSet,L6=function(){const t=this.orientation.landscape?"landscape":"portrait";this.$state.orientation.set(t),ft(this.el,"data-orientation",t),y(this,Rc,qf).call(this)},d_=new WeakSet,I6=function(){this.$state.canPlay()&&f(this,mn,Zn)?this.canPlayQueue.start():this.canPlayQueue.stop()},h_=new WeakSet,D6=function(){if(lc[rP]){this.setAttributes(lc[rP]);return}const t={"data-load":function(){return this.$props.load()},"data-captions":function(){const s=this.$state.textTrack();return!!s&&nn(s)},"data-ios-controls":function(){return this.$state.iOSControls()},"data-controls":function(){return this.controls.showing},"data-buffering":function(){const{canLoad:s,canPlay:r,waiting:o}=this.$state;return s()&&(!r()||o())},"data-error":function(){const{error:s}=this.$state;return!!s()},"data-autoplay-error":function(){const{autoPlayError:s}=this.$state;return!!s()}},n={autoPlay:"autoplay",canAirPlay:"can-airplay",canPictureInPicture:"can-pip",pictureInPicture:"pip",playsInline:"playsinline",remotePlaybackState:"remote-state",remotePlaybackType:"remote-type",isAirPlayConnected:"airplay",isGoogleCastConnected:"google-cast"};for(const s of ptt){const r="data-"+(n[s]??M3(s));t[r]=function(){return this.$state[s]()}}delete t.title,lc[rP]=t,this.setAttributes(t)},f_=new WeakSet,R6=function(t){t.detail(this)},Rc=new WeakSet,qf=function(){if(!this.el)return;const t=this.el.clientWidth,n=this.el.clientHeight;this.$state.width.set(t),this.$state.height.set(n),Gn(this.el,"--player-width",t+"px"),Gn(this.el,"--player-height",n+"px")},zg=new WeakSet,SA=function(t){const n=t.matches?"coarse":"fine";
51ft(this.el,"data-pointer",n),this.$state.pointer.set(n),y(this,Rc,qf).call(this)},p_=new WeakSet,F6=function(){y(this,Vg,TA).call(this,this.$props.paused())},Vg=new WeakSet,TA=function(t){t?this.canPlayQueue.enqueue("paused",()=>f(this,Hi).pause()):this.canPlayQueue.enqueue("paused",()=>f(this,Hi).play())},g_=new WeakSet,N6=function(){y(this,qg,kA).call(this,this.$props.muted())},qg=new WeakSet,kA=function(t){this.canPlayQueue.enqueue("muted",()=>{f(this,mn,Zn)&&f(this,mn,Zn).setMuted(t)})},m_=new WeakSet,B6=function(){y(this,Hg,EA).call(this,this.$props.currentTime())},Hg=new WeakSet,EA=function(t){this.canPlayQueue.enqueue("currentTime",()=>{const{currentTime:n}=this.$state;t!==nt(n)&&nt(()=>{if(!f(this,mn,Zn))return;const s=mB(t,this.$state);Number.isFinite(s)&&f(this,mn,Zn).setCurrentTime(s)})})},b_=new WeakSet,z6=function(){y(this,Wg,PA).call(this,this.$props.volume())},Wg=new WeakSet,PA=function(t){const n=c$(0,t,1);this.canPlayQueue.enqueue("volume",()=>{f(this,mn,Zn)&&f(this,mn,Zn).setVolume(n)})},y_=new WeakSet,V6=function(){y(this,jg,CA).call(this,this.$props.playbackRate())},jg=new WeakSet,CA=function(t){this.canPlayQueue.enqueue("rate",()=>{var n,s;f(this,mn,Zn)&&((s=(n=f(this,mn,Zn)).setPlaybackRate)==null||s.call(n,t))})},v_=new WeakSet,q6=function(){y(this,w_,H6).call(this,this.$props.playsInline())},w_=new WeakSet,H6=function(t){this.canPlayQueue.enqueue("playsinline",()=>{var n,s;f(this,mn,Zn)&&((s=(n=f(this,mn,Zn)).setPlaysInline)==null||s.call(n,t))})},__=new WeakSet,W6=function(){var s;let t=this.$props.storage(),n=Mt(t)?new KZ:t;if(n!=null&&n.onChange){const{source:r}=this.$state,o=Mt(t)?t:(s=this.el)==null?void 0:s.id,a=hr(y(this,x_,j6).bind(this));G(()=>n.onChange(r(),a(),o||void 0))}f(this,qi).storage=n,f(this,qi).textTracks.setStorage(n),jt(()=>{var r;(r=n==null?void 0:n.onDestroy)==null||r.call(n),f(this,qi).storage=null,f(this,qi).textTracks.setStorage(null)})},x_=new WeakSet,j6=function(){const{clipStartTime:t,clipEndTime:n}=this.$props,{source:s}=this.$state,r=s();return r.src?`${r.src}:${t()}:${n()}`:null},O(lc,"props",gtt),O(lc,"state",pB);let bv=lc;const be=bv.prototype;zt(be,"canPlayQueue");zt(be,"remoteControl");zt(be,"provider");zt(be,"controls");zt(be,"orientation");zt(be,"title");zt(be,"qualities");zt(be,"audioTracks");zt(be,"textTracks");zt(be,"textRenderers");zt(be,"duration");zt(be,"paused");zt(be,"muted");zt(be,"currentTime");zt(be,"volume");zt(be,"playbackRate");ei(be,"play");ei(be,"pause");ei(be,"enterFullscreen");ei(be,"exitFullscreen");ei(be,"enterPictureInPicture");ei(be,"exitPictureInPicture");ei(be,"seekToLiveEdge");ei(be,"startLoading");ei(be,"startLoadingPoster");ei(be,"requestAirPlay");ei(be,"requestGoogleCast");ei(be,"setAudioGain");function Ptt(i,e){return fetch(i,e).then(t=>t.text()).then(t=>/type="static"/.test(t)?"on-demand":"live")}function U6(i,e){return fetch(i,e).then(t=>t.text()).then(t=>{const n=Ctt(t);if(n)return U6(/^https?:/.test(n)?n:new URL(n,i).href,e);const s=/EXT-X-PLAYLIST-TYPE:\s*VOD/.test(t)?"on-demand":"live";return s==="live"&&Att(t)>=10&&(/#EXT-X-DVR-ENABLED:\s*true/.test(t)||t.includes("#EXT-X-DISCONTINUITY"))?"live:dvr":s})}function Ctt(i){const e=i.match(/#EXT-X-STREAM-INF:[^\n]+(\n[^\n]+)*/g);return e?e[0].split(` 52`)[1].trim():null}function Att(i){const e=i.split(` 53`);for(const t of e)if(t.startsWith("#EXT-X-TARGETDURATION")){const n=parseFloat(t.split(":")[1]);if(!isNaN(n))return n}return-1}const AA=new Map;var zd,Vd,Ug,te,Po,S_,G6,T_,Y6,Gg,MA,Yg,OA,Kg,$A,k_,K6,E_,X6,P_,Q6;class Mtt{constructor(e,t,n,s=[]){b(this,S_);b(this,T_);b(this,Gg);b(this,Yg);b(this,Kg);b(this,k_);b(this,E_);b(this,P_);b(this,zd,!1);b(this,Vd,void 0);b(this,Ug,void 0);b(this,te,void 0);b(this,Po,void 0);D(this,Ug,e),D(this,te,t),D(this,Po,n);const r=new oA,o=new rA,a=new u$,l=new dtt,c=new ftt,u=new htt,d=[c,u];D(this,Vd,hr(()=>{const p=t.$state.remotePlaybackLoader(),m=t.$props.preferNativeHLS()?[a,l,r,o,...d,...s]:[o,a,l,r,...d,...s];return p?[p,...m]:m}));const{$state:h}=t;h.sources.set(lD(t.$props.src()));for(const p of h.sources()){const m=f(this,Vd).call(this).find(v=>v.canPlay(p));if(!m)continue;const g=m.mediaType(p);t.$state.source.set(p),t.$state.mediaType.set(g),t.$state.inferredViewType.set(g),f(this,Po).set(m),D(this,zd,!0);break}}connect(){const e=f(this,Po).call(this);f(this,zd)&&(y(this,Yg,OA).call(this,f(this,te).$state.source(),e),y(this,Kg,$A).call(this,e),D(this,zd,!1)),G(y(this,S_,G6).bind(this)),G(y(this,T_,Y6).bind(this)),G(y(this,k_,K6).bind(this)),G(y(this,E_,X6).bind(this)),G(y(this,P_,Q6).bind(this))}}zd=new WeakMap,Vd=new WeakMap,Ug=new WeakMap,te=new WeakMap,Po=new WeakMap,S_=new WeakSet,G6=function(){f(this,te).notify("sources-change",[...lD(f(this,te).$props.src()),...f(this,Ug).call(this)])},T_=new WeakSet,Y6=function(){var o;const{$state:e}=f(this,te),t=e.sources(),n=nt(e.source),s=y(this,Gg,MA).call(this,n,t);
53if(((o=t[0])==null?void 0:o.src)&&!s.src&&!s.type){const{crossOrigin:a}=e,l=gp(a()),c=new AbortController;return Promise.all(t.map(u=>Mt(u.src)&&u.type==="?"?fetch(u.src,{method:"HEAD",credentials:l,signal:c.signal}).then(d=>(u.type=d.headers.get("content-type")||"??",AA.set(u.src,u.type),u)).catch(()=>u):u)).then(u=>{if(c.signal.aborted)return;const d=y(this,Gg,MA).call(this,nt(e.source),u);ea(),d.src||f(this,te).notify("error",{message:"Failed to load resource.",code:4})}),()=>c.abort()}ea()},Gg=new WeakSet,MA=function(e,t){let n={src:"",type:""},s=null,r=new Pe("sources-change",{detail:{sources:t}}),o=f(this,Vd).call(this),{started:a,paused:l,currentTime:c,quality:u,savedState:d}=f(this,te).$state;for(const h of t){const p=o.find(m=>m.canPlay(h));if(p){n=h,s=p;break}}if(XC(n)){const h=u(),p=t.find(m=>m.src===(h==null?void 0:h.src));nt(a)?d.set({paused:nt(l),currentTime:nt(c)}):d.set(null),p&&(n=p,r=new Pe("quality-change",{detail:{quality:h}}))}return uD(e,n)||y(this,Yg,OA).call(this,n,s,r),s!==nt(f(this,Po))&&y(this,Kg,$A).call(this,s,r),n},Yg=new WeakSet,OA=function(e,t,n){f(this,te).notify("source-change",e,n),f(this,te).notify("media-type-change",(t==null?void 0:t.mediaType(e))||"unknown",n)},Kg=new WeakSet,$A=function(e,t){f(this,te).$providerSetup.set(!1),f(this,te).notify("provider-change",null,t),e&&nt(()=>{var n;return(n=e.preconnect)==null?void 0:n.call(e,f(this,te))}),f(this,Po).set(e),f(this,te).notify("provider-loader-change",e,t)},k_=new WeakSet,K6=function(){const e=f(this,te).$provider();if(!(!e||nt(f(this,te).$providerSetup))){if(f(this,te).$state.canLoad()){Vn(()=>e.setup(),e.scope),f(this,te).$providerSetup.set(!0);return}nt(()=>{var t;return(t=e.preconnect)==null?void 0:t.call(e)})}},E_=new WeakSet,X6=function(){if(!f(this,te).$providerSetup())return;const e=f(this,te).$provider(),t=f(this,te).$state.source(),n=nt(f(this,te).$state.crossOrigin),s=nt(f(this,te).$props.preferNativeHLS);if(!uD(e==null?void 0:e.currentSrc,t)){if(f(this,te).$state.canLoad()){const r=new AbortController;return q0(t)?(s||!ZO())&&U6(t.src,{credentials:gp(n),signal:r.signal}).then(o=>{f(this,te).notify("stream-type-change",o)}).catch(lv):t$(t)?Ptt(t.src,{credentials:gp(n),signal:r.signal}).then(o=>{f(this,te).notify("stream-type-change",o)}).catch(lv):f(this,te).notify("stream-type-change","on-demand"),nt(()=>{const o=nt(f(this,te).$state.preload);return e==null?void 0:e.loadSource(t,o).catch(a=>{})}),()=>r.abort()}try{Mt(t.src)&&H0(new URL(t.src).origin)}catch{}}},P_=new WeakSet,Q6=function(){const e=f(this,Po).call(this),{providedPoster:t,source:n,canLoadPoster:s}=f(this,te).$state;if(!e||!e.loadPoster||!n()||!s()||t())return;const r=new AbortController,o=new Pe("source-change",{detail:n});return e.loadPoster(n(),f(this,te),r).then(a=>{f(this,te).notify("poster-change",a||"",o)}).catch(()=>{f(this,te).notify("poster-change","",o)}),()=>{r.abort()}};function lD(i){return(en(i)?i:[i]).map(e=>Mt(e)?{src:e,type:cD(e)}:{...e,type:cD(e.src,e.type)})}function cD(i,e){return Mt(e)&&e.length?e:Mt(i)&&AA.has(i)?AA.get(i):!e&&q0({src:i,type:""})?"application/x-mpegurl":!e&&t$({src:i,type:""})?"application/dash+xml":!Mt(i)||i.startsWith("blob:")?"video/object":i.includes("youtube")||i.includes("youtu.be")?"video/youtube":i.includes("vimeo")&&!i.includes("progressive_redirect")&&!i.includes(".m3u8")?"video/vimeo":"?"}function uD(i,e){return(i==null?void 0:i.src)===(e==null?void 0:e.src)&&(i==null?void 0:i.type)===(e==null?void 0:e.type)}var Xg,Da,Qg,C_,J6;class Ott{constructor(e,t){b(this,C_);b(this,Xg,void 0);b(this,Da,void 0);b(this,Qg,[]);D(this,Xg,e),D(this,Da,t),G(y(this,C_,J6).bind(this))}}Xg=new WeakMap,Da=new WeakMap,Qg=new WeakMap,C_=new WeakSet,J6=function(){const e=f(this,Xg).call(this);for(const t of f(this,Qg))if(!e.some(n=>n.id===t.id)){const n=t.id&&f(this,Da).textTracks.getById(t.id);n&&f(this,Da).textTracks.remove(n)}for(const t of e){const n=t.id||uv.createId(t);f(this,Da).textTracks.getById(n)||(t.id=n,f(this,Da).textTracks.add(t))}D(this,Qg,e)};var Zs,Jg,Zg,tm,qd,Hd,A_,Z6,em,LA,im,IA,nm,DA;class yv extends wt{constructor(){super(...arguments);b(this,A_);b(this,em);b(this,im);b(this,nm);b(this,Zs,void 0);b(this,Jg,void 0);b(this,Zg,Ot([]));b(this,tm,Ot([]));b(this,qd,null);b(this,Hd,-1)}onSetup(){D(this,Zs,Dt()),D(this,Jg,new Mtt(f(this,Zg),f(this,Zs),this.$state.loader,this.$props.loaders()))}onAttach(t){t.setAttribute("data-media-provider","")}onConnect(t){f(this,Jg).connect(),new Ott(f(this,tm),f(this,Zs));const n=new ResizeObserver(lf(y(this,im,IA).bind(this)));n.observe(t);const s=new MutationObserver(y(this,nm,DA).bind(this));s.observe(t,{attributes:!0,childList:!0}),y(this,im,IA).call(this),y(this,nm,DA).call(this),jt(()=>{n.disconnect(),s.disconnect()})}load(t){t==null||t.setAttribute("aria-hidden","true"),window.cancelAnimationFrame(f(this,Hd)),D(this,Hd,requestAnimationFrame(()=>y(this,A_,Z6).call(this,t))),jt(()=>{window.cancelAnimationFrame(f(this,Hd))})}onDestroy(){D(this,qd,null),y(this,em,LA).call(this)}}Zs=new WeakMap,Jg=new WeakMap,Zg=new WeakMap,tm=new WeakMap,qd=new WeakMap,Hd=new WeakMap,A_=new WeakSet,Z6=function(t){if(!this.scope)return;const n=this.$state.loader(),{$provider:s}=f(this,Zs);f(this,qd)===n&&(n==null?void 0:n.target)===t&&nt(s)||(y(this,em,LA).call(this),D(this,qd,n),n&&(n.target=t||null),!(!n||!t)&&n.load(f(this,Zs)).then(r=>{this.scope&&nt(this.$state.loader)===n&&f(this,Zs).notify("provider-change",r)}))},em=new WeakSet,LA=function(){var t;(t=f(this,Zs))==null||t.notify("provider-change",null)},im=new WeakSet,IA=function(){if(!this.el)return;const{player:t,$state:n}=f(this,Zs),s=this.el.offsetWidth,r=this.el.offsetHeight;t&&(n.mediaWidth.set(s),n.mediaHeight.set(r),t.el&&(Gn(t.el,"--media-width",s+"px"),Gn(t.el,"--media-height",r+"px")))},nm=new WeakSet,DA=function(){const t=[],n=[],s=this.el.children;for(const r of s)if(!r.hasAttribute("data-vds")){if(r instanceof HTMLSourceElement){const o={id:r.id,src:r.src,type:r.type};for(const a of["id","src","width","height","bitrate","codec"]){const l=r.getAttribute(`data-${a}`);Mt(l)&&(o[a]=/id|src|codec/.test(a)?l:Number(l))}t.push(o)}else if(r instanceof HTMLTrackElement){const o={src:r.src,kind:r.track.kind,language:r.srclang,label:r.label,default:r.default,type:r.getAttribute("data-type")};n.push({id:r.id||uv.createId(o),...o})}}f(this,Zg).set(t),f(this,tm).set(n),ea()},O(yv,"props",{loaders:[]}),O(yv,"state",new $l({loader:null}));const $tt=yv.prototype;ei($tt,"load");var Co,Wi,$n,M_,ez,O_,iz,$_,nz,L_,sz;class tz extends _t(HTMLElement,yv){constructor(){super(...arguments);b(this,M_);b(this,O_);b(this,$_);b(this,L_);b(this,Co,void 0);b(this,Wi,null);b(this,$n,null)}onSetup(){D(this,Co,Dt()),this.setAttribute("keep-alive","")}onDestroy(){var t,n;(t=f(this,$n))==null||t.remove(),D(this,$n,null),(n=f(this,Wi))==null||n.remove(),D(this,Wi,null)}onConnect(){G(()=>{var l,c,u;const t=this.$state.loader(),n=(t==null?void 0:t.name)==="youtube",s=(t==null?void 0:t.name)==="vimeo",r=n||s,o=(t==null?void 0:t.name)==="google-cast",a=t?o?y(this,L_,sz).call(this):r?y(this,$_,nz).call(this):t.mediaType()==="audio"?y(this,M_,ez).call(this):y(this,O_,iz).call(this):null;if(f(this,Wi)!==a){const d=((l=f(this,Wi))==null?void 0:l.parentElement)??this;(c=f(this,Wi))==null||c.remove(),D(this,Wi,a),a&&d.prepend(a),r&&a&&G(()=>{var w;const{nativeControls:h,viewType:p}=f(this,Co).$state,m=h(),g=p()==="audio";!m&&!g?(D(this,$n,this.querySelector(".vds-blocker")),f(this,$n)||(D(this,$n,document.createElement("div")),f(this,$n).classList.add("vds-blocker"),a.after(f(this,$n)))):((w=f(this,$n))==null||w.remove(),D(this,$n,null)),ft(a,"data-no-controls",!m)}
53)}n?a==null||a.classList.add("vds-youtube"):s&&(a==null||a.classList.add("vds-vimeo")),r||((u=f(this,$n))==null||u.remove(),D(this,$n,null)),this.load(a)})}}Co=new WeakMap,Wi=new WeakMap,$n=new WeakMap,M_=new WeakSet,ez=function(){const t=f(this,Wi)instanceof HTMLAudioElement?f(this,Wi):document.createElement("audio"),{controls:n,crossOrigin:s}=f(this,Co).$state;return G(()=>{ft(t,"controls",n()),ft(t,"crossorigin",s())}),t},O_=new WeakSet,iz=function(){const t=f(this,Wi)instanceof HTMLVideoElement?f(this,Wi):document.createElement("video"),{crossOrigin:n,poster:s,nativeControls:r}=f(this,Co).$state,o=hr(()=>r()?"true":null),a=hr(()=>s()&&r()?s():null);return G(()=>{ft(t,"controls",o()),ft(t,"crossorigin",n()),ft(t,"poster",a())}),t},$_=new WeakSet,nz=function(){const t=f(this,Wi)instanceof HTMLIFrameElement?f(this,Wi):document.createElement("iframe"),{nativeControls:n}=f(this,Co).$state;return G(()=>ft(t,"tabindex",n()?null:-1)),t},L_=new WeakSet,sz=function(){var n;if((n=f(this,Wi))!=null&&n.classList.contains("vds-google-cast"))return f(this,Wi);const t=document.createElement("div");return t.classList.add("vds-google-cast"),Yn(()=>import("./vidstack-D_-9AA6_-f51b8c7c.js"),[],import.meta.url).then(({insertContent:s})=>{s(t,f(this,Co).$state)}),t},O(tz,"tagName","media-provider");class RA extends _t(HTMLElement,bv){}O(RA,"tagName","media-player"),O(RA,"attrs",{autoPlay:"autoplay",crossOrigin:"crossorigin",playsInline:"playsinline",preferNativeHLS:"prefer-native-hls",minLiveDVRWindow:"min-live-dvr-window"});yt(RA);yt(tz);function rz(i,e){return[...i].sort(e?Itt:Ltt)}function Ltt(i,e){return i.height===e.height?(i.bitrate??0)-(e.bitrate??0):i.height-e.height}function Itt(i,e){return e.height===i.height?(e.bitrate??0)-(i.bitrate??0):e.height-i.height}var Fc;class Dtt extends qs{constructor(t){super();b(this,Fc,void 0);D(this,Fc,t)}onAttach(t){const{$props:n,ariaKeys:s}=Dt(),r=t.getAttribute("aria-keyshortcuts");if(r){s[f(this,Fc)]=r,jt(()=>{delete s[f(this,Fc)]});return}const o=n.keyShortcuts()[f(this,Fc)];if(o){const a=en(o)?o.join(" "):Mt(o)?o:o==null?void 0:o.keys;t.setAttribute("aria-keyshortcuts",en(a)?a.join(" "):a)}}}Fc=new WeakMap;function aP(i,e){const t=String(i),n=t.length;if(n<e){const r=e-n;return`${"0".repeat(r)}${i}`}return t}function oz(i){const e=Math.trunc(i/3600),t=Math.trunc(i%3600/60),n=Math.trunc(i%60),s=Number((i-Math.trunc(i)).toPrecision(3));return{hours:e,minutes:t,seconds:n,fraction:s}}function Zk(i,{padHrs:e=null,padMins:t=null,showHrs:n=!1,showMs:s=!1}={}){const{hours:r,minutes:o,seconds:a,fraction:l}=oz(i),c=e?aP(r,2):r,u=t||Kr(t)&&i>=3600?aP(o,2):o,d=aP(a,2),h=s&&l>0?`.${String(l).replace(/^0?\./,"")}`:"",p=`${u}:${d}${h}`;return r>0||n?`${c}:${p}`:p}function vv(i){const e=[],{hours:t,minutes:n,seconds:s}=oz(i);return t>0&&e.push(`${t} hour`),n>0&&e.push(`${n} min`),(s>0||e.length===0)&&e.push(`${s} sec`),e.join(" ")}var tr,I_,lz,Nc,Bc,Or,Wd,hy;class az extends qs{constructor(t){super();b(this,I_);b(this,Wd);b(this,tr,void 0);b(this,Nc,-1);b(this,Bc,-1);b(this,Or,null);D(this,tr,t),G(y(this,I_,lz).bind(this))}onDestroy(){var t;(t=f(this,Or))==null||t.call(this),D(this,Or,null)}show(t){var n,s,r;y(this,Wd,hy).call(this),window.cancelAnimationFrame(f(this,Bc)),D(this,Bc,-1),(n=f(this,Or))==null||n.call(this),D(this,Or,null),D(this,Nc,window.setTimeout(()=>{D(this,Nc,-1);const o=f(this,tr).content();o&&o.style.removeProperty("display"),nt(()=>f(this,tr).onChange(!0,t))},((r=(s=f(this,tr)).showDelay)==null?void 0:r.call(s))??0))}hide(t){y(this,Wd,hy).call(this),nt(()=>f(this,tr).onChange(!1,t)),D(this,Bc,requestAnimationFrame(()=>{var s;y(this,Wd,hy).call(this),D(this,Bc,-1);const n=f(this,tr).content();if(n){const r=()=>{n.style.display="none",D(this,Or,null)};if(VZ(n)){(s=f(this,Or))==null||s.call(this);const a=Ni(n,"animationend",r,{once:!0});D(this,Or,a)}else r()}}))}}tr=new WeakMap,I_=new WeakSet,lz=function(){const t=f(this,tr).trigger();if(!t){this.hide();return}const n=this.show.bind(this),s=this.hide.bind(this);f(this,tr).listen(t,n,s)},Nc=new WeakMap,Bc=new WeakMap,Or=new WeakMap,Wd=new WeakSet,hy=function(){window.clearTimeout(f(this,Nc)),D(this,Nc,-1)};var Ao,D_,cz,R_,uz,F_,dz,N_,hz;class an extends qs{constructor(t){super();b(this,D_);b(this,R_);b(this,F_);b(this,N_);b(this,Ao,void 0);D(this,Ao,t),new mr,t.keyShortcut&&new Dtt(t.keyShortcut)}onSetup(){const{disabled:t}=this.$props;this.setAttributes({"data-pressed":f(this,Ao).isPresssed,"aria-pressed":y(this,D_,cz).bind(this),"aria-disabled":()=>t()?"true":null})}onAttach(t){oe(t,"tabindex","0"),oe(t,"role","button"),oe(t,"type","button")}onConnect(t){const n=El(t,y(this,F_,dz).bind(this));for(const s of["click","touchstart"])n.add(s,y(this,N_,hz).bind(this),{passive:!0})}}Ao=new WeakMap,D_=new WeakSet,cz=function(){return cv(f(this,Ao).isPresssed())},R_=new WeakSet,uz=function(t){GQ(f(this,Ao).isPresssed)&&f(this,Ao).isPresssed.set(n=>!n)},F_=new WeakSet,dz=function(t){if(this.$props.disabled()||this.el.hasAttribute("data-disabled")){t.preventDefault(),t.stopImmediatePropagation();return}t.preventDefault(),(f(this,Ao).onPress??y(this,R_,uz)).call(this,t)},N_=new WeakSet,hz=function(t){this.$props.disabled()&&(t.preventDefault(),t.stopImmediatePropagation())},O(an,"props",{disabled:!1});var Mo,B_,pz,z_,gz,V_,mz,q_,bz;class fz extends wt{constructor(){super();b(this,B_);b(this,z_);b(this,V_);b(this,q_);b(this,Mo,void 0);new an({isPresssed:y(this,z_,gz).bind(this),onPress:y(this,B_,pz).bind(this)})}onSetup(){D(this,Mo,Dt());const{canAirPlay:t,isAirPlayConnected:n}=f(this,Mo).$state;this.setAttributes({"data-active":n,"data-supported":t,"data-state":y(this,V_,mz).bind(this),"aria-hidden":Yi(()=>!t())})}onAttach(t){t.setAttribute("data-media-tooltip","airplay"),Ll(t,y(this,q_,bz).bind(this))}}Mo=new WeakMap,B_=new WeakSet,pz=function(t){f(this,Mo).remote.requestAirPlay(t)},z_=new WeakSet,gz=function(){const{remotePlaybackType:t,remotePlaybackState:n}=f(this,Mo).$state;return t()==="airplay"&&n()!=="disconnected"},V_=new WeakSet,mz=function(){const{remotePlaybackType:t,remotePlaybackState:n}=f(this,Mo).$state;return t()==="airplay"&&n()},q_=new WeakSet,bz=function(){const{remotePlaybackState:t}=f(this,Mo).$state;return`AirPlay ${t()}`},O(fz,"props",an.props);var zc,H_,vz,sm,FA;class yz extends wt{constructor(){super();b(this,H_);b(this,sm);b(this,zc,void 0);new an({isPresssed:y(this,sm,FA).bind(this),keyShortcut:"togglePaused",onPress:y(this,H_,vz).bind(this)})}onSetup(){D(this,zc,Dt());const{paused:t,ended:n}=f(this,zc).$state;this.setAttributes({"data-paused":t,"data-ended":n})}onAttach(t){t.setAttribute("data-media-tooltip","play"),Ll(t,"Play")}}zc=new WeakMap,H_=new WeakSet,vz=function(t){const n=f(this,zc).remote;y(this,sm,FA).call(this)?n.pause(t):n.play(t)},sm=new WeakSet,FA=function(){const{paused:t}=f(this,zc).$state;return!t()},O(yz,"props",an.props);var Vc,W_,_z,rm,NA,om,BA;class wz extends wt{constructor(){super();b(this,W_);b(this,rm);b(this,om);b(this,Vc,void 0);new an({isPresssed:y(this,rm,NA).bind(this),keyShortcut:"toggleCaptions",onPress:y(this,W_,_z).bind(this)})}onSetup(){D(this,Vc,Dt()),this.setAttributes({"data-active":y(this,rm,NA).bind(this),"data-supported":()=>!y(this,om,BA).call(this),"aria-hidden":Yi(y(this,om,BA).bind(this))})}onAttach(t){t.setAttribute("data-media-tooltip","caption"),Ll(t,"Captions")}}Vc=new WeakMap,W_=new WeakSet,_z=function(t){f(this,Vc).remote.toggleCaptions(t)},rm=new WeakSet,NA=function(){const{textTrack:t}=f(this,Vc).$state,n=t();return!!n&&nn(n)},om=new WeakSet,BA=function(){const{hasCaptions:t}=f(this,Vc).$state;return!t()},O(wz,"props",an.props);var Ra,j_,Sz,am,zA,U_,Tz;class xz extends wt{constructor(){super();b(this,j_);b(this,am);b(this,U_);b(this,Ra,void 0);new an({isPresssed:y(this,am,zA).bind(this),keyShortcut:"toggleFullscreen",onPress:y(this,j_,Sz).bind(this)})}onSetup(){D(this,Ra,Dt());const{fullscreen:t}=f(this,Ra).$state,n=y(this,U_,Tz).bind(this);this.setAttributes({"data-active":t,"data-supported":n,"aria-hidden":Yi(()=>!n())})}onAttach(t){t.setAttribute("data-media-tooltip","fullscreen"),Ll(t,"Fullscreen")}}Ra=new WeakMap,j_=new WeakSet,Sz=function(t){const n=f(this,Ra).remote,s=this.$props.target();y(this,am,zA).call(this)?n.exitFullscreen(s,t):n.enterFullscreen(s,t)},am=new WeakSet,zA=function(){const{fullscreen:t}=f(this,Ra).$state;return t()},U_=new WeakSet,Tz=function(){const{canFullscreen:t}=f(this,Ra).$state;return t()},O(xz,"props",{...an.props,target:"prefer-media"});var qc,G_,Ez,jd,fy,Y_,Pz;class kz extends wt{constructor(){super();b(this,G_);b(this,jd);b(this,Y_);b(this,qc,void 0);new an({isPresssed:y(this,jd,fy).bind(this),keyShortcut:"toggleMuted",onPress:y(this,G_,Ez).bind(this)})}onSetup(){D(this,qc,Dt()),this.setAttributes({"data-muted":y(this,jd,fy).bind(this),"data-state":y(this,Y_,Pz).bind(this)})}onAttach(t){t.setAttribute("data-media-mute-button",""),t.setAttribute("data-media-tooltip","mute"),Ll(t,"Mute")}}qc=new WeakMap,G_=new WeakSet,Ez=function(t){const n=f(this,qc).remote;y(this,jd,fy).call(this)?n.unmute(t):n.mute(t)},jd=new WeakSet,fy=function(){const{muted:t,volume:n}=f(this,qc).$state;return t()||n()===0},Y_=new WeakSet,Pz=function(){const{muted:t,volume:n}=f(this,qc).$state,s=n();if(t()||s===0)return"muted";if(s>=.5)return"high";if(s<.5)return"low"},O(kz,"props",an.props);var Fa,K_,Az,lm,VA,X_,Mz;class Cz extends wt{constructor(){super();b(this,K_);b(this,lm);b(this,X_);b(this,Fa,void 0);new an({isPresssed:y(this,lm,VA).bind(this),keyShortcut:"togglePictureInPicture",onPress:y(this,K_,Az).bind(this)})}onSetup(){D(this,Fa,Dt());const{pictureInPicture:t}=f(this,Fa).$state,n=y(this,X_,Mz).bind(this);this.setAttributes({"data-active":t,"data-supported":n,"aria-hidden":Yi(()=>!n())})}onAttach(t){t.setAttribute("data-media-tooltip","pip"),Ll(t,"PiP")}}Fa=new WeakMap,K_=new WeakSet,Az=function(t){const n=f(this,Fa).remote;y(this,lm,VA).call(this)?n.exitPictureInPicture(t):n.enterPictureInPicture(t)},lm=new WeakSet,VA=function(){const{pictureInPicture:t}=f(this,Fa).$state;return t()},X_=new WeakSet,Mz=function(){const{canPictureInPicture:t}=f(this,Fa).$state;return t()},O(Cz,"props",an.props);var Na,Q_,$z,J_,Lz,Z_,Iz;class Oz extends wt{constructor(){super();b(this,Q_);b(this,J_);b(this,Z_);b(this,Na,void 0);new mr}onSetup(){D(this,Na,Dt());const{seeking:t}=f(this,Na).$state,{seconds:n}=this.$props,s=y(this,Q_,$z).bind(this);this.setAttributes({seconds:n,"data-seeking":t,"data-supported":s,"aria-hidden":Yi(()=>!s())})}onAttach(t){oe(t,"tabindex","0"),oe(t,"role","button"),oe(t,"type","button"),t.setAttribute("data-media-tooltip","seek"),Ll(t,y(this,J_,Lz).bind(this))}onConnect(t){El(t,y(this,Z_,Iz).bind(this))}}
53Na=new WeakMap,Q_=new WeakSet,$z=function(){const{canSeek:t}=f(this,Na).$state;return t()},J_=new WeakSet,Lz=function(){const{seconds:t}=this.$props;return`Seek ${t()>0?"forward":"backward"} ${t()} seconds`},Z_=new WeakSet,Iz=function(t){const{seconds:n,disabled:s}=this.$props;if(s())return;const{currentTime:r}=f(this,Na).$state,o=r()+n();f(this,Na).remote.seek(o,t)},O(Oz,"props",{disabled:!1,seconds:30});var Hc,tx,Rz;class Dz extends wt{constructor(){super();b(this,tx);b(this,Hc,void 0);new mr}onSetup(){D(this,Hc,Dt());const{disabled:t}=this.$props,{live:n,liveEdge:s}=f(this,Hc).$state,r=()=>!n();this.setAttributes({"data-edge":s,"data-hidden":r,"aria-disabled":Yi(()=>t()||s()),"aria-hidden":Yi(r)})}onAttach(t){oe(t,"tabindex","0"),oe(t,"role","button"),oe(t,"type","button"),t.setAttribute("data-media-tooltip","live")}onConnect(t){El(t,y(this,tx,Rz).bind(this))}}Hc=new WeakMap,tx=new WeakSet,Rz=function(t){const{disabled:n}=this.$props,{liveEdge:s}=f(this,Hc).$state;n()||s()||f(this,Hc).remote.seekToLiveEdge(t)},O(Dz,"props",{disabled:!1});const Vu=new $l({min:0,max:100,value:0,step:1,pointerValue:0,focused:!1,dragging:!1,pointing:!1,hidden:!1,get active(){return this.dragging||this.focused||this.pointing},get fillRate(){return dD(this.min,this.max,this.value)},get fillPercent(){return this.fillRate*100},get pointerRate(){return dD(this.min,this.max,this.pointerValue)},get pointerPercent(){return this.pointerRate*100}});function dD(i,e,t){const n=e-i,s=t-i;return n>0?s/n:0}var Ud,Ba,ex,Nz;class Fz extends qs{constructor(t){super();b(this,ex);b(this,Ud,void 0);b(this,Ba,void 0);D(this,Ud,t)}onConnect(t){D(this,Ba,new IntersectionObserver(n=>{var s,r;(r=(s=f(this,Ud)).callback)==null||r.call(s,n,f(this,Ba))},f(this,Ud))),f(this,Ba).observe(t),jt(y(this,ex,Nz).bind(this))}}Ud=new WeakMap,Ba=new WeakMap,ex=new WeakSet,Nz=function(){var t;(t=f(this,Ba))==null||t.disconnect(),D(this,Ba,void 0)};const d$=Ol(),mp=Ol();function Rtt(i,e,t,n){return c$(i,Si(t,WZ(n)),e)}function Ftt(i,e,t,n){const s=c$(0,t,1),r=e-i,o=r*s,a=o/n,l=n*Math.round(a);return i+l}const lP={Left:-1,ArrowLeft:-1,Up:1,ArrowUp:1,Right:1,ArrowRight:1,Down:-1,ArrowDown:-1};var ji,za,Gd,ix,Bz,Va,er,Oo,nx,zz,sx,Vz,rx,qz,ox,Hz,ax,Wz,Yd,py,$r,_a,Wc,Hf,lx,jz,cx,Uz,ux,Gz,dx,Yz,Kd,gy,cm,qA,Xd,$o,hx,Kz,fx,Xz,um,HA,dm,WA,px,Qz,gx,Jz,mx;class Ntt extends qs{constructor(t,n){super();b(this,ix);b(this,nx);b(this,sx);b(this,rx);b(this,ox);b(this,ax);b(this,Yd);b(this,$r);b(this,Wc);b(this,lx);b(this,cx);b(this,ux);b(this,dx);b(this,Kd);b(this,cm);b(this,hx);b(this,fx);b(this,um);b(this,dm);b(this,px);b(this,gx);b(this,ji,void 0);b(this,za,void 0);b(this,Gd,void 0);b(this,Va,null);b(this,er,null);b(this,Oo,null);b(this,Xd,void 0);b(this,$o,!1);b(this,mx,Bu(t=>{y(this,$r,_a).call(this,y(this,Wc,Hf).call(this,t),t)},20,{leading:!0}));D(this,ji,t),D(this,za,n)}onSetup(){_s(mp)&&D(this,Gd,Re(mp))}onConnect(t){G(y(this,rx,qz).bind(this,t)),G(y(this,ox,Hz).bind(this,t)),f(this,ji).swipeGesture&&G(y(this,ix,Bz).bind(this))}}ji=new WeakMap,za=new WeakMap,Gd=new WeakMap,ix=new WeakSet,Bz=function(){var n;const{pointer:t}=f(this,za).$state;if(t()!=="coarse"||!f(this,ji).swipeGesture()){D(this,Va,null);return}D(this,Va,(n=f(this,za).player.el)==null?void 0:n.querySelector("media-provider,[data-media-provider]")),f(this,Va)&&new Ce(f(this,Va)).add("touchstart",y(this,nx,zz).bind(this),{passive:!0}).add("touchmove",y(this,sx,Vz).bind(this),{passive:!1})},Va=new WeakMap,er=new WeakMap,Oo=new WeakMap,nx=new WeakSet,zz=function(t){D(this,er,t.touches[0])},sx=new WeakSet,Vz=function(t){if(Kr(f(this,er))||a$(t))return;const n=t.touches[0],s=n.clientX-f(this,er).clientX,r=n.clientY-f(this,er).clientY,o=this.$state.dragging();!o&&Math.abs(r)>5||o||(t.preventDefault(),Math.abs(s)>20&&(D(this,er,n),D(this,Oo,this.$state.value()),y(this,Kd,gy).call(this,f(this,Oo),t)))},rx=new WeakSet,qz=function(t){const{hidden:n}=this.$props;Ni(t,"focus",y(this,ax,Wz).bind(this)),!(n()||f(this,ji).isDisabled())&&new Ce(t).add("keyup",y(this,fx,Xz).bind(this)).add("keydown",y(this,hx,Kz).bind(this)).add("pointerenter",y(this,lx,jz).bind(this)).add("pointermove",y(this,cx,Uz).bind(this)).add("pointerleave",y(this,ux,Gz).bind(this)).add("pointerdown",y(this,dx,Yz).bind(this))},ox=new WeakSet,Hz=function(t){f(this,ji).isDisabled()||!this.$state.dragging()||new Ce(document).add("pointerup",y(this,px,Qz).bind(this),{capture:!0}).add("pointermove",f(this,mx).bind(this)).add("touchmove",y(this,gx,Jz).bind(this),{passive:!1})},ax=new WeakSet,Wz=function(){y(this,$r,_a).call(this,this.$state.value())},Yd=new WeakSet,py=function(t,n){var u,d,h,p;const{value:s,min:r,max:o,dragging:a}=this.$state,l=Math.max(r(),Math.min(t,o()));s.set(l);const c=this.createEvent("value-change",{detail:l,trigger:n});if(this.dispatch(c),(d=(u=f(this,ji)).onValueChange)==null||d.call(u,c),a()){const m=this.createEvent("drag-value-change",{detail:l,trigger:n});this.dispatch(m),(p=(h=f(this,ji)).onDragValueChange)==null||p.call(h,m)}},$r=new WeakSet,_a=function(t,n){const{pointerValue:s,dragging:r}=this.$state;s.set(t),this.dispatch("pointer-value-change",{detail:t,trigger:n}),r()&&y(this,Yd,py).call(this,t,n)},Wc=new WeakSet,Hf=function(t){let n,s=this.el.getBoundingClientRect(),{min:r,max:o}=this.$state;if(this.$props.orientation()==="vertical"){const{bottom:a,height:l}=s;n=(a-t.clientY)/l}else if(f(this,er)&&Fs(f(this,Oo))){const{width:a}=f(this,Va).getBoundingClientRect(),l=(t.clientX-f(this,er).clientX)/a,c=o()-r(),u=c*Math.abs(l);n=(l<0?f(this,Oo)-u:f(this,Oo)+u)/c}else{const{left:a,width:l}=s;n=(t.clientX-a)/l}
53return Math.max(r(),Math.min(o(),f(this,ji).roundValue(Ftt(r(),o(),n,f(this,ji).getStep()))))},lx=new WeakSet,jz=function(t){this.$state.pointing.set(!0)},cx=new WeakSet,Uz=function(t){const{dragging:n}=this.$state;n()||y(this,$r,_a).call(this,y(this,Wc,Hf).call(this,t),t)},ux=new WeakSet,Gz=function(t){this.$state.pointing.set(!1)},dx=new WeakSet,Yz=function(t){if(t.button!==0)return;const n=y(this,Wc,Hf).call(this,t);y(this,Kd,gy).call(this,n,t),y(this,$r,_a).call(this,n,t)},Kd=new WeakSet,gy=function(t,n){var o,a,l,c;const{dragging:s}=this.$state;if(s())return;s.set(!0),f(this,za).remote.pauseControls(n);const r=this.createEvent("drag-start",{detail:t,trigger:n});this.dispatch(r),(a=(o=f(this,ji)).onDragStart)==null||a.call(o,r),(c=(l=f(this,Gd))==null?void 0:l.onDragStart)==null||c.call(l)},cm=new WeakSet,qA=function(t,n){var o,a,l,c;const{dragging:s}=this.$state;if(!s())return;s.set(!1),f(this,za).remote.resumeControls(n);const r=this.createEvent("drag-end",{detail:t,trigger:n});this.dispatch(r),(a=(o=f(this,ji)).onDragEnd)==null||a.call(o,r),D(this,er,null),D(this,Oo,null),(c=(l=f(this,Gd))==null?void 0:l.onDragEnd)==null||c.call(l)},Xd=new WeakMap,$o=new WeakMap,hx=new WeakSet,Kz=function(t){if(!Object.keys(lP).includes(t.key))return;const{key:s}=t,r=y(this,um,HA).call(this,t);if(!Kr(r)){y(this,$r,_a).call(this,r,t),y(this,Yd,py).call(this,r,t);return}const o=y(this,dm,WA).call(this,t);f(this,$o)||(D(this,$o,s===f(this,Xd)),!this.$state.dragging()&&f(this,$o)&&y(this,Kd,gy).call(this,o,t)),y(this,$r,_a).call(this,o,t),D(this,Xd,s)},fx=new WeakSet,Xz=function(t){if(!Object.keys(lP).includes(t.key)||!Kr(y(this,um,HA).call(this,t)))return;const s=f(this,$o)?this.$state.pointerValue():y(this,dm,WA).call(this,t);y(this,Yd,py).call(this,s,t),y(this,cm,qA).call(this,s,t),D(this,Xd,""),D(this,$o,!1)},um=new WeakSet,HA=function(t){let n=t.key,{min:s,max:r}=this.$state;return n==="Home"||n==="PageUp"?s():n==="End"||n==="PageDown"?r():!t.metaKey&&/^[0-9]$/.test(n)?(r()-s())/10*Number(n):null},dm=new WeakSet,WA=function(t){var w,_;const{key:n,shiftKey:s}=t;t.preventDefault(),t.stopPropagation();const{shiftKeyMultiplier:r}=this.$props,{min:o,max:a,value:l,pointerValue:c}=this.$state,u=f(this,ji).getStep(),d=f(this,ji).getKeyStep(),h=s?d*r():d,p=Number(lP[n]),m=h*p,g=f(this,$o)?c():((_=(w=f(this,ji)).getValue)==null?void 0:_.call(w))??l(),v=(g+m)/u;return Math.max(o(),Math.min(a(),Number((u*v).toFixed(3))))},px=new WeakSet,Qz=function(t){if(t.button!==0)return;t.preventDefault(),t.stopImmediatePropagation();const n=y(this,Wc,Hf).call(this,t);y(this,$r,_a).call(this,n,t),y(this,cm,qA).call(this,n,t)},gx=new WeakSet,Jz=function(t){t.preventDefault()},mx=new WeakMap;const Yh=Ol(()=>({}));var hm,Ln,fm,pm,bx,Zz,yx,t4,vx,e4,wx,i4,_x,n4,xx,s4,Sx,r4,Tx,o4,kx;class xs extends qs{constructor(t){super();b(this,bx);b(this,yx);b(this,vx);b(this,wx);b(this,_x);b(this,xx);b(this,Sx);b(this,Tx);b(this,hm,void 0);b(this,Ln,void 0);b(this,fm,Ot(!0));b(this,pm,Ot(!0));b(this,kx,lf((t,n)=>{var s,r;(s=this.el)==null||s.style.setProperty("--slider-fill",t+"%"),(r=this.el)==null||r.style.setProperty("--slider-pointer",n+"%")}));D(this,Ln,t)}onSetup(){D(this,hm,Dt());const t=new mr;t.attach(this),this.$state.focused=t.focused.bind(t),_s(Yh)||ws(Yh,{default:"value"}),ws(d$,{orientation:this.$props.orientation,disabled:f(this,Ln).isDisabled,preview:Ot(null)}),G(y(this,vx,e4).bind(this)),G(y(this,wx,i4).bind(this)),G(y(this,_x,n4).bind(this)),y(this,Sx,r4).call(this),new Ntt(f(this,Ln),f(this,hm)).attach(this),new Fz({callback:y(this,bx,Zz).bind(this)}).attach(this)}onAttach(t){oe(t,"role","slider"),oe(t,"tabindex","0"),oe(t,"autocomplete","off"),G(y(this,Tx,o4).bind(this))}onConnect(t){jt(tB(t,f(this,fm).set)),G(y(this,yx,t4).bind(this))}}hm=new WeakMap,Ln=new WeakMap,fm=new WeakMap,pm=new WeakMap,bx=new WeakSet,Zz=function(t){f(this,pm).set(t[0].isIntersecting)},yx=new WeakSet,t4=function(){const{hidden:t}=this.$props;this.$state.hidden.set(t()||!f(this,fm).call(this)||!f(this,pm).bind(this))},vx=new WeakSet,e4=function(){const{dragging:t,value:n,min:s,max:r}=this.$state;nt(t)||n.set(Rtt(s(),r(),n(),f(this,Ln).getStep()))},wx=new WeakSet,i4=function(){this.$state.step.set(f(this,Ln).getStep())},_x=new WeakSet,n4=function(){if(!f(this,Ln).isDisabled())return;const{dragging:t,pointing:n}=this.$state;t.set(!1),n.set(!1)},xx=new WeakSet,s4=function(){return cv(f(this,Ln).isDisabled())},Sx=new WeakSet,r4=function(){const{orientation:t}=this.$props,{dragging:n,active:s,pointing:r}=this.$state;this.setAttributes({"data-dragging":n,"data-pointing":r,"data-active":s,"aria-disabled":y(this,xx,s4).bind(this),"aria-valuemin":f(this,Ln).aria.valueMin??this.$state.min,"aria-valuemax":f(this,Ln).aria.valueMax??this.$state.max,"aria-valuenow":f(this,Ln).aria.valueNow,"aria-valuetext":f(this,Ln).aria.valueText,"aria-orientation":t})},Tx=new WeakSet,o4=function(){const{fillPercent:t,pointerPercent:n}=this.$state;f(this,kx).call(this,Si(t(),3),Si(n(),3))},kx=new WeakMap,O(xs,"props",{hidden:!1,disabled:!1,step:1,keyStep:1,orientation:"horizontal",shiftKeyMultiplier:5});var Ex,a4,Px,l4,Cx,c4,Ax,u4;class $u extends wt{constructor(){super();b(this,Ex);b(this,Px);b(this,Cx);b(this,Ax);new xs({getStep:this.$props.step,getKeyStep:this.$props.keyStep,roundValue:Math.round,isDisabled:this.$props.disabled,aria:{valueNow:y(this,Ex,a4).bind(this),valueText:y(this,Px,l4).bind(this)}})}onSetup(){G(y(this,Cx,c4).bind(this)),G(y(this,Ax,u4).bind(this))}}Ex=new WeakSet,a4=function(){const{value:t}=this.$state;return Math.round(t())}
53,Px=new WeakSet,l4=function(){const{value:t,max:n}=this.$state;return Si(t()/n()*100,2)+"%"},Cx=new WeakSet,c4=function(){const{value:t}=this.$props;this.$state.value.set(t())},Ax=new WeakSet,u4=function(){const{min:t,max:n}=this.$props;this.$state.min.set(t()),this.$state.max.set(n())},O($u,"props",{...xs.props,min:0,max:100,value:0}),O($u,"state",Vu);const ro=new Map,kb=new Map;var gm,Qd,mm,Mx,d4,Ox,h4,bm,UA,ym,GA,vm,YA,wm,KA,$x,f4,Jd,my;const lL=class lL{constructor(e,t,n){b(this,Mx);b(this,Ox);b(this,bm);b(this,ym);b(this,vm);b(this,wm);b(this,$x);b(this,Jd);b(this,gm,void 0);b(this,Qd,void 0);b(this,mm,void 0);O(this,"$images",Ot([]));D(this,Qd,e),D(this,mm,t),D(this,gm,n),G(y(this,Mx,d4).bind(this))}static create(e,t){const n=Dt();return new lL(e,t,n)}};gm=new WeakMap,Qd=new WeakMap,mm=new WeakMap,Mx=new WeakSet,d4=function(){var n;const{canLoad:e}=f(this,gm).$state;if(!e())return;const t=f(this,Qd).call(this);if(t){if(Mt(t)&&ro.has(t)){const s=ro.get(t);if(ro.delete(t),ro.set(t,s),ro.size>99){const r=ro.keys().next().value;ro.delete(r)}this.$images.set(ro.get(t))}else if(Mt(t)){const s=f(this,mm).call(this),r=t+"::"+s;if(!kb.has(r)){const o=new Promise(async(a,l)=>{try{const c=await fetch(t,{credentials:gp(s)});if(c.headers.get("content-type")==="application/json"){const d=await c.json();if(en(d))if(d[0]&&"text"in d[0])a(y(this,ym,GA).call(this,d));else{for(let h=0;h<d.length;h++){const p=d[h];so(RQ(p),!1),so("url"in p&&Mt(p.url),!1),so("startTime"in p&&Fs(p.startTime),!1)}a(d)}else a(y(this,bm,UA).call(this,d));return}Yn(()=>import("./prod-e867b763.js").then(d=>d.d),[],import.meta.url).then(async({parseResponse:d})=>{try{const{cues:h}=await d(c);a(y(this,ym,GA).call(this,h))}catch(h){l(h)}})}catch(c){l(c)}}).then(a=>(ro.set(r,a),a)).catch(a=>{y(this,Jd,my).call(this,t,a)}).finally(()=>{Mt(r)&&kb.delete(r)});kb.set(r,o)}(n=kb.get(r))==null||n.then(o=>{this.$images.set(o||[])})}else if(en(t))try{this.$images.set(y(this,Ox,h4).call(this,t))}catch(s){y(this,Jd,my).call(this,t,s)}else try{this.$images.set(y(this,bm,UA).call(this,t))}catch(s){y(this,Jd,my).call(this,t,s)}return()=>{this.$images.set([])}}},Ox=new WeakSet,h4=function(e){const t=y(this,vm,YA).call(this);return e.map((n,s)=>(so(n.url&&Mt(n.url)),so("startTime"in n&&Fs(n.startTime)),{...n,url:Mt(n.url)?y(this,wm,KA).call(this,n.url,t):n.url}))},bm=new WeakSet,UA=function(e){var o;so(Mt(e.url)),so(en(e.tiles)&&((o=e.tiles)==null?void 0:o.length));const t=new URL(e.url),n=[],s="tile_width"in e?e.tile_width:e.tileWidth,r="tile_height"in e?e.tile_height:e.tileHeight;for(const a of e.tiles)n.push({url:t,startTime:"start"in a?a.start:a.startTime,width:s,height:r,coords:{x:a.x,y:a.y}});return n},ym=new WeakSet,GA=function(e){for(let s=0;s<e.length;s++){const r=e[s];so("startTime"in r&&Fs(r.startTime)),so("text"in r&&Mt(r.text))}const t=[],n=y(this,vm,YA).call(this);for(const s of e){const[r,o]=s.text.split("#"),a=y(this,$x,f4).call(this,o);t.push({url:y(this,wm,KA).call(this,r,n),startTime:s.startTime,endTime:s.endTime,width:a==null?void 0:a.w,height:a==null?void 0:a.h,coords:a&&Fs(a.x)&&Fs(a.y)?{x:a.x,y:a.y}:void 0})}return t},vm=new WeakSet,YA=function(){let e=nt(f(this,Qd));return!Mt(e)||!/^https?:/.test(e)?location.href:e},wm=new WeakSet,KA=function(e,t){return/^https?:/.test(e)?new URL(e):new URL(e,t)},$x=new WeakSet,f4=function(e){if(!e)return{};const[t,n]=e.split("="),s=n==null?void 0:n.split(","),r={};if(!t||!s)return null;for(let o=0;o<t.length;o++){const a=+s[o];isNaN(a)||(r[t[o]]=a)}return r},Jd=new WeakSet,my=function(e,t){};let jA=lL;var Zd,th,Lx,p4,_m,QA,Ix,g4,Dx,m4,Rx,b4,Fx,y4,xm,JA,Nx,v4,Bx,w4,Sm,ZA,Lr,xa,zx,_4;class XA extends wt{constructor(){super(...arguments);b(this,Lx);b(this,_m);b(this,Ix);b(this,Dx);b(this,Rx);b(this,Fx);b(this,xm);b(this,Nx);b(this,Bx);b(this,Sm);b(this,Lr);b(this,zx);O(this,"media");b(this,Zd,void 0);b(this,th,[])}onSetup(){this.media=Dt(),D(this,Zd,jA.create(this.$props.src,this.$state.crossOrigin)),y(this,_m,QA).call(this),this.setAttributes({"data-loading":y(this,Fx,y4).bind(this),"data-error":y(this,xm,JA).bind(this),"data-hidden":this.$state.hidden,"aria-hidden":Yi(this.$state.hidden)})}onConnect(t){G(y(this,Lx,p4).bind(this)),G(y(this,Nx,v4).bind(this)),G(y(this,_m,QA).bind(this)),G(y(this,Ix,g4).bind(this)),G(y(this,Bx,w4).bind(this)),G(y(this,Sm,ZA).bind(this))}getTime(){return this.$props.time()}}Zd=new WeakMap,th=new WeakMap,Lx=new WeakSet,p4=function(){const t=this.$state.img();t&&new Ce(t).add("load",y(this,Dx,m4).bind(this)).add("error",y(this,Rx,b4).bind(this))},_m=new WeakSet,QA=function(){const{crossOrigin:t}=this.$props,{crossOrigin:n}=this.$state,{crossOrigin:s}=this.media.$state,r=t()!==null?t():s();n.set(r===!0?"anonymous":r)},Ix=new WeakSet,g4=function(){const{src:t,loading:n,error:s}=this.$state;return t()&&(n.set(!0),s.set(null)),()=>{y(this,zx,_4).call(this),n.set(!1),s.set(null)}},Dx=new WeakSet,m4=function(){const{loading:t,error:n}=this.$state;y(this,Sm,ZA).call(this),t.set(!1),n.set(null)},Rx=new WeakSet,b4=function(t){const{loading:n,error:s}=this.$state;n.set(!1),s.set(t)},Fx=new WeakSet,y4=function(){const{loading:t,hidden:n}=this.$state;return!n()&&t()},xm=new WeakSet,JA=function(){const{error:t}=this.$state;return!Kr(t())},Nx=new WeakSet,v4=function(){const{hidden:t}=this.$state,{duration:n}=this.media.$state,s=f(this,Zd).$images();t.set(y(this,xm,JA).call(this)||!Number.isFinite(n())||s.length===0)},Bx=new WeakSet,w4=function(){let t=f(this,Zd).$images();if(!t.length)return;
53let n=this.getTime(),{src:s,activeThumbnail:r}=this.$state,o=-1,a=null;for(let l=t.length-1;l>=0;l--){const c=t[l];if(n>=c.startTime&&(!c.endTime||n<c.endTime)){o=l;break}}t[o]&&(a=t[o]),r.set(a),s.set((a==null?void 0:a.url.href)||"")},Sm=new WeakSet,ZA=function(){if(!this.scope||this.$state.hidden())return;const t=this.el,n=this.$state.img(),s=this.$state.activeThumbnail();if(!n||!s||!t)return;let r=s.width??n.naturalWidth,o=(s==null?void 0:s.height)??n.naturalHeight,{maxWidth:a,maxHeight:l,minWidth:c,minHeight:u,width:d,height:h}=getComputedStyle(this.el);c==="100%"&&(c=parseFloat(d)+""),u==="100%"&&(u=parseFloat(h)+"");let p=Math.max(parseInt(c)/r,parseInt(u)/o),m=Math.min(Math.max(parseInt(c),parseInt(a))/r,Math.max(parseInt(u),parseInt(l))/o),g=!isNaN(m)&&m<1?m:p>1?p:1;y(this,Lr,xa).call(this,t,"--thumbnail-width",`${r*g}px`),y(this,Lr,xa).call(this,t,"--thumbnail-height",`${o*g}px`),y(this,Lr,xa).call(this,t,"--thumbnail-aspect-ratio",String(Si(r/o,5))),y(this,Lr,xa).call(this,n,"width",`${n.naturalWidth*g}px`),y(this,Lr,xa).call(this,n,"height",`${n.naturalHeight*g}px`),y(this,Lr,xa).call(this,n,"transform",s.coords?`translate(-${s.coords.x*g}px, -${s.coords.y*g}px)`:""),y(this,Lr,xa).call(this,n,"max-width","none")},Lr=new WeakSet,xa=function(t,n,s){t.style.setProperty(n,s),f(this,th).push(()=>t.style.removeProperty(n))},zx=new WeakSet,_4=function(){for(const t of f(this,th))t();D(this,th,[])},O(XA,"props",{src:null,time:0,crossOrigin:null}),O(XA,"state",new $l({src:"",img:null,thumbnails:[],activeThumbnail:null,crossOrigin:null,loading:!1,error:null,hidden:!1}));var qa,Vx,Tm;class h$ extends wt{constructor(){super(...arguments);b(this,qa,void 0);b(this,Vx,void 0);b(this,Tm,void 0)}onSetup(){D(this,Tm,af($u.state)),D(this,qa,Re(Yh)),D(this,Vx,hr(this.getValueText.bind(this)))}getValueText(){var g,v;const{type:t,format:n,decimalPlaces:s,padHours:r,padMinutes:o,showHours:a,showMs:l}=this.$props,{value:c,pointerValue:u,min:d,max:h}=f(this,Tm),p=(n==null?void 0:n())??f(this,qa).default,m=t()==="current"?c():u();if(p==="percent"){const w=h()-d(),_=m/w*100;return(f(this,qa).percent??Si)(_,s())+"%"}else return p==="time"?(f(this,qa).time??Zk)(m,{padHrs:r(),padMins:o(),showHrs:a(),showMs:l()}):(((v=(g=f(this,qa)).value)==null?void 0:v.call(g,m))??m.toFixed(2))+""}}qa=new WeakMap,Vx=new WeakMap,Tm=new WeakMap,O(h$,"props",{type:"pointer",format:null,showHours:!1,showMs:!1,padHours:null,padMinutes:null,decimalPlaces:2});const Btt=h$.prototype;ei(Btt,"getValueText");var eh,km;class x4 extends wt{constructor(){super(...arguments);b(this,eh,void 0);b(this,km,lf(()=>{const{disabled:t,orientation:n}=f(this,eh);if(t())return;const s=this.el,{offset:r,noClamp:o}=this.$props;s&&ztt(s,{clamp:!o(),offset:r(),orientation:n()})}))}onSetup(){D(this,eh,Re(d$));const{active:t}=af($u.state);this.setAttributes({"data-visible":t})}onAttach(t){Object.assign(t.style,{position:"absolute",top:0,left:0,width:"max-content"})}onConnect(t){const{preview:n}=f(this,eh);n.set(t),jt(()=>n.set(null)),G(f(this,km).bind(this));const s=new ResizeObserver(f(this,km).bind(this));s.observe(t),jt(()=>s.disconnect())}}eh=new WeakMap,km=new WeakMap,O(x4,"props",{offset:0,noClamp:!1});function ztt(i,{clamp:e,offset:t,orientation:n}){const s=getComputedStyle(i),r=parseFloat(s.width),o=parseFloat(s.height),a={top:null,right:null,bottom:null,left:null};if(a[n==="horizontal"?"bottom":"left"]=`calc(100% + var(--media-slider-preview-offset, ${t}px))`,n==="horizontal"){const l=r/2;if(!e)a.left=`calc(var(--slider-pointer) - ${l}px)`;else{const c=`max(0px, calc(var(--slider-pointer) - ${l}px))`,u=`calc(100% - ${r}px)`;a.left=`min(${c}, ${u})`}}else{const l=o/2;if(!e)a.bottom=`calc(var(--slider-pointer) - ${l}px)`;else{const c=`max(${l}px, calc(var(--slider-pointer) - ${l}px))`,u=`calc(100% - ${o}px)`;a.bottom=`min(${c}, ${u})`}}Object.assign(i.style,a)}var $s,qx,S4,Hx,T4,Wx,k4,jx,E4,Ux,P4,Em,Gx,C4,Yx,A4,Kx,M4;class t2 extends wt{constructor(){super(...arguments);b(this,qx);b(this,Hx);b(this,Wx);b(this,jx);b(this,Ux);b(this,Gx);b(this,Yx);b(this,Kx);b(this,$s,void 0);b(this,Em,Bu(y(this,Gx,C4).bind(this),25))}onSetup(){D(this,$s,Dt());const{audioGain:t}=f(this,$s).$state;ws(Yh,{default:"percent",value(n){return(n*(t()??1)).toFixed(2)},percent(n){return Math.round(n*(t()??1))}}),new xs({getStep:this.$props.step,getKeyStep:this.$props.keyStep,roundValue:Math.round,isDisabled:y(this,jx,E4).bind(this),aria:{valueMax:y(this,Wx,k4).bind(this),valueNow:y(this,qx,S4).bind(this),valueText:y(this,Hx,T4).bind(this)},onDragValueChange:y(this,Kx,M4).bind(this),onValueChange:y(this,Yx,A4).bind(this)}).attach(this),G(y(this,Ux,P4).bind(this))}onAttach(t){t.setAttribute("data-media-volume-slider",""),oe(t,"aria-label","Volume");const{canSetVolume:n}=f(this,$s).$state;this.setAttributes({"data-supported":n,"aria-hidden":Yi(()=>!n())})}}$s=new WeakMap,qx=new WeakSet,S4=function(){const{value:t}=this.$state,{audioGain:n}=f(this,$s).$state;return Math.round(t()*(n()??1))},Hx=new WeakSet,T4=function(){const{value:t,max:n}=this.$state,{audioGain:s}=f(this,$s).$state;return Si(t()/n()*(s()??1)*100,2)+"%"},Wx=new WeakSet,k4=function(){const{audioGain:t}=f(this,$s).$state;return this.$state.max()*(t()??1)},jx=new WeakSet,E4=function(){const{disabled:t}=this.$props,{canSetVolume:n}=f(this,$s).$state;return t()||!n()},Ux=new WeakSet,P4=function(){const{muted:t,volume:n}=f(this,$s).$state,s=t()?0:n()*100;this.$state.value.set(s),this.dispatch("value-change",{detail:s})},Em=new WeakMap,Gx=new WeakSet,C4=function(t){if(!t.trigger)return;const n=Si(t.detail/100,3);f(this,$s).remote.changeVolume(n,t)},Yx=new WeakSet,A4=function(t){f(this,Em).call(this,t)},Kx=new WeakSet,M4=function(t){f(this,Em).call(this,t)},O(t2,"props",{...xs.props,keyStep:5,shiftKeyMultiplier:2}),O(t2,"state",Vu);var Ie,ih,Pm,Xx,O4,Qx,$4,Jx,L4,Zx,I4,t1,D4,Cm,e2,e1,R4,nh,i1,F4,n1,N4,Am,i2,s1,B4,Mm,n2,r1,z4,o1,V4,a1,q4,l1,H4,c1,W4,u1,j4,
53Lo,ic,d1,U4,h1,G4,f1,Y4;class wv extends wt{constructor(){super();b(this,Xx);b(this,Qx);b(this,Jx);b(this,Zx);b(this,t1);b(this,Cm);b(this,e1);b(this,i1);b(this,n1);b(this,Am);b(this,s1);b(this,Mm);b(this,r1);b(this,o1);b(this,a1);b(this,l1);b(this,c1);b(this,u1);b(this,Lo);b(this,d1);b(this,h1);b(this,f1);b(this,Ie,void 0);b(this,ih,void 0);b(this,Pm,Ot(null));b(this,nh,!1);const{noSwipeGesture:t}=this.$props;new xs({swipeGesture:()=>!t(),getValue:y(this,Mm,n2).bind(this),getStep:y(this,r1,z4).bind(this),getKeyStep:y(this,o1,V4).bind(this),roundValue:y(this,a1,q4),isDisabled:y(this,l1,H4).bind(this),aria:{valueNow:y(this,c1,W4).bind(this),valueText:y(this,u1,j4).bind(this)},onDragStart:y(this,i1,F4).bind(this),onDragValueChange:y(this,n1,N4).bind(this),onDragEnd:y(this,Am,i2).bind(this),onValueChange:y(this,s1,B4).bind(this)})}onSetup(){D(this,Ie,Dt()),ws(Yh,{default:"time",value:y(this,h1,G4).bind(this),time:y(this,f1,Y4).bind(this)}),this.setAttributes({"data-chapters":y(this,Qx,$4).bind(this)}),this.setStyles({"--slider-progress":y(this,Xx,O4).bind(this)}),G(y(this,Zx,I4).bind(this)),G(y(this,Jx,L4).bind(this))}onAttach(t){t.setAttribute("data-media-time-slider",""),oe(t,"aria-label","Seek")}onConnect(t){G(y(this,t1,D4).bind(this)),Kk(f(this,Ie).textTracks,"chapters",f(this,Pm).set)}}Ie=new WeakMap,ih=new WeakMap,Pm=new WeakMap,Xx=new WeakSet,O4=function(){const{bufferedEnd:t,duration:n}=f(this,Ie).$state;return Si(Math.min(t()/Math.max(n(),1),1)*100,3)+"%"},Qx=new WeakSet,$4=function(){var n;const{duration:t}=f(this,Ie).$state;return((n=f(this,Pm).call(this))==null?void 0:n.cues.length)&&Number.isFinite(t())&&t()>0},Jx=new WeakSet,L4=function(){D(this,ih,Bu(y(this,Cm,e2).bind(this),this.$props.seekingRequestThrottle()))},Zx=new WeakSet,I4=function(){if(this.$state.hidden())return;const{value:t,dragging:n}=this.$state,s=y(this,Mm,n2).call(this);nt(n)||(t.set(s),this.dispatch("value-change",{detail:s}))},t1=new WeakSet,D4=function(){const t=f(this,Ie).player.el,{preview:n}=Re(d$);t&&n()&&ft(t,"data-preview",this.$state.active())},Cm=new WeakSet,e2=function(t,n){f(this,Ie).remote.seeking(t,n)},e1=new WeakSet,R4=function(t,n,s){f(this,ih).cancel();const{live:r}=f(this,Ie).$state;if(r()&&n>=99){f(this,Ie).remote.seekToLiveEdge(s);return}f(this,Ie).remote.seek(t,s)},nh=new WeakMap,i1=new WeakSet,F4=function(t){const{pauseWhileDragging:n}=this.$props;if(n()){const{paused:s}=f(this,Ie).$state;D(this,nh,!s()),f(this,Ie).remote.pause(t)}},n1=new WeakSet,N4=function(t){f(this,ih).call(this,y(this,Lo,ic).call(this,t.detail),t)},Am=new WeakSet,i2=function(t){const{seeking:n}=f(this,Ie).$state;nt(n)||y(this,Cm,e2).call(this,y(this,Lo,ic).call(this,t.detail),t);const s=t.detail;y(this,e1,R4).call(this,y(this,Lo,ic).call(this,s),s,t);const{pauseWhileDragging:r}=this.$props;r()&&f(this,nh)&&(f(this,Ie).remote.play(t),D(this,nh,!1))},s1=new WeakSet,B4=function(t){const{dragging:n}=this.$state;n()||!t.trigger||y(this,Am,i2).call(this,t)},Mm=new WeakSet,n2=function(){const{currentTime:t}=f(this,Ie).$state;return y(this,d1,U4).call(this,t())},r1=new WeakSet,z4=function(){const t=this.$props.step()/f(this,Ie).$state.duration()*100;return Number.isFinite(t)?t:1},o1=new WeakSet,V4=function(){const t=this.$props.keyStep()/f(this,Ie).$state.duration()*100;return Number.isFinite(t)?t:1},a1=new WeakSet,q4=function(t){return Si(t,3)},l1=new WeakSet,H4=function(){const{disabled:t}=this.$props,{canSeek:n}=f(this,Ie).$state;return t()||!n()},c1=new WeakSet,W4=function(){const{value:t}=this.$state;return Math.round(t())},u1=new WeakSet,j4=function(){const t=y(this,Lo,ic).call(this,this.$state.value()),{duration:n}=f(this,Ie).$state;return Number.isFinite(t)?`${vv(t)} out of ${vv(n())}`:"live"},Lo=new WeakSet,ic=function(t){const{duration:n}=f(this,Ie).$state;return Si(t/100*n(),5)},d1=new WeakSet,U4=function(t){const{liveEdge:n,duration:s}=f(this,Ie).$state,r=Math.max(0,Math.min(1,n()?1:Math.min(t,s())/s()));return Number.isNaN(r)?0:Number.isFinite(r)?r*100:100},h1=new WeakSet,G4=function(t){const n=y(this,Lo,ic).call(this,t),{live:s,duration:r}=f(this,Ie).$state;return Number.isFinite(n)?(s()?n-r():n).toFixed(0):"LIVE"},f1=new WeakSet,Y4=function(t,n){const s=y(this,Lo,ic).call(this,t),{live:r,duration:o}=f(this,Ie).$state,a=r()?s-o():s;return Number.isFinite(s)?`${a<0?"-":""}${Zk(Math.abs(a),n)}`:"LIVE"},O(wv,"props",{...xs.props,step:.1,keyStep:5,shiftKeyMultiplier:2,pauseWhileDragging:!1,noSwipeGesture:!1,seekingRequestThrottle:100}),O(wv,"state",Vu);const Ti=Ol();function Vtt(i,e){const t=oJ(i,e);for(const{el:n,top:s,left:r}of t)n.scroll({top:s,left:r,behavior:e.behavior})}function qtt(i,e={}){Vtt(i,{scrollMode:"if-needed",block:"center",inline:"center",...e})}const Htt=["a[href]","[tabindex]","input","select","button"].map(i=>`${i}:not([aria-hidden='true'])`).join(","),Wtt=new Set(["Escape","Tab","ArrowUp","ArrowDown","Home","PageUp","End","PageDown","Enter"," "]);var Ha,ir,In,Om,Io,nc,$m,s2,p1,K4,Lm,r2,g1,X4,m1,Q4,sh,by,b1,J4;class jtt{constructor(e){b(this,Io);b(this,$m);b(this,p1);b(this,Lm);b(this,g1);
53b(this,m1);b(this,sh);b(this,b1);b(this,Ha,-1);b(this,ir,null);b(this,In,[]);b(this,Om,void 0);D(this,Om,e)}get items(){return f(this,In)}attachMenu(e){Ni(e,"focus",y(this,p1,K4).bind(this)),D(this,ir,e),jt(()=>{D(this,ir,null)})}listen(){f(this,ir)&&(this.update(),new Ce(f(this,ir)).add("keyup",y(this,g1,X4).bind(this)).add("keydown",y(this,m1,Q4).bind(this)),jt(()=>{D(this,Ha,-1),D(this,In,[])}))}update(){D(this,Ha,0),D(this,In,y(this,b1,J4).call(this))}scroll(e=y(this,$m,s2).call(this)){const t=f(this,In)[e];t&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{qtt(t,{behavior:"smooth",boundary:n=>!n.hasAttribute("data-root")})})})}focusActive(e=!0){const t=y(this,$m,s2).call(this);y(this,Io,nc).call(this,t>=0?t:0,e)}}Ha=new WeakMap,ir=new WeakMap,In=new WeakMap,Om=new WeakMap,Io=new WeakSet,nc=function(e,t=!0){var n;D(this,Ha,e),f(this,In)[e]?(f(this,In)[e].focus({preventScroll:!0}),t&&this.scroll(e)):(n=f(this,ir))==null||n.focus({preventScroll:!0})},$m=new WeakSet,s2=function(){return f(this,In).findIndex(e=>document.activeElement===e||e.getAttribute("role")==="menuitemradio"&&e.getAttribute("aria-checked")==="true")},p1=new WeakSet,K4=function(){f(this,Ha)>=0||(this.update(),this.focusActive())},Lm=new WeakSet,r2=function(e){const t=e.target;if(HQ(e)&&t instanceof Element){const n=t.getAttribute("role");return!/a|input|select|button/.test(t.localName)&&!n}return Wtt.has(e.key)},g1=new WeakSet,X4=function(e){y(this,Lm,r2).call(this,e)&&(e.stopPropagation(),e.preventDefault())},m1=new WeakSet,Q4=function(e){if(y(this,Lm,r2).call(this,e))switch(e.stopPropagation(),e.preventDefault(),e.key){case"Escape":f(this,Om).closeMenu(e);break;case"Tab":y(this,Io,nc).call(this,y(this,sh,by).call(this,e.shiftKey?-1:1));break;case"ArrowUp":y(this,Io,nc).call(this,y(this,sh,by).call(this,-1));break;case"ArrowDown":y(this,Io,nc).call(this,y(this,sh,by).call(this,1));break;case"Home":case"PageUp":y(this,Io,nc).call(this,0);break;case"End":case"PageDown":y(this,Io,nc).call(this,f(this,In).length-1);break}},sh=new WeakSet,by=function(e){var n;let t=f(this,Ha);do t=(t+e+f(this,In).length)%f(this,In).length;while(((n=f(this,In)[t])==null?void 0:n.offsetParent)===null);return t},b1=new WeakSet,J4=function(){if(!f(this,ir))return[];const e=f(this,ir).querySelectorAll(Htt),t=[],n=s=>s.getAttribute("role")==="menu";for(const s of e)Ou(s)&&s.offsetParent!==null&&eB(f(this,ir),s,n)&&t.push(s);return t};var Utt=Object.defineProperty,Gtt=Object.getOwnPropertyDescriptor,j0=(i,e,t,n)=>{for(var s=Gtt(e,t),r=i.length-1,o;r>=0;r--)(o=i[r])&&(s=o(e,t,s)||s);return s&&Utt(e,t,s),s};let Ytt=0;var nr,rh,oh,bn,Im,Ir,Oi,Wa,ja,jc,Uc,Do,Gc,Dm,Yc,y1,Z4,v1,tV,w1,eV,_1,iV,x1,nV,Rm,o2,S1,sV,ah,T1,rV,Fm,a2,k1,oV,Kc,Wf,E1,aV,P1,lV,C1,cV,A1,uV,M1,dV,O1,hV,$1,L1,fV,lh,I1,D1,pV,R1,F1,gV,ch,uh,N1,mV;class qu extends wt{constructor(){super();b(this,y1);b(this,v1);b(this,w1);b(this,_1);b(this,x1);b(this,Rm);b(this,S1);b(this,T1);b(this,Fm);b(this,k1);b(this,Kc);b(this,E1);b(this,P1);b(this,C1);b(this,A1);b(this,M1);b(this,O1);b(this,L1);b(this,D1);b(this,F1);b(this,N1);b(this,nr,void 0);b(this,rh,void 0);b(this,oh,void 0);b(this,bn,Ot(!1));b(this,Im,Ot(!1));b(this,Ir,Ot(null));b(this,Oi,Ot(null));b(this,Wa,void 0);b(this,ja,new Set);b(this,jc,null);b(this,Uc,void 0);b(this,Do,void 0);b(this,Gc,!1);b(this,Dm,Ot(!1));b(this,Yc,new Set);b(this,ah,!1);b(this,$1,y(this,L1,fV).bind(this));b(this,lh,!1);b(this,I1,y(this,D1,pV).bind(this));b(this,R1,y(this,F1,gV).bind(this));b(this,ch,lf(()=>{const t=nt(f(this,Oi));if(!t)return;let n=0,s=getComputedStyle(t),r=[...t.children];for(const o of["paddingTop","paddingBottom","borderTopWidth","borderBottomWidth"])n+=parseFloat(s[o])||0;for(const o of r)if(Ou(o)&&o.style.display==="contents")r.push(...o.children);else if(o.nodeType===3)n+=parseFloat(getComputedStyle(o).fontSize);else if(Ou(o)){if(!Z3(o))continue;const a=getComputedStyle(o);n+=o.offsetHeight+(parseFloat(a.marginTop)||0)+(parseFloat(a.marginBottom)||0)}Gn(t,"--menu-height",n+"px")}));b(this,uh,!1);const{showDelay:t}=this.$props;D(this,Uc,new az({trigger:f(this,Ir),content:f(this,Oi),showDelay:t,listen:(n,s,r)=>
53{El(n,a=>{f(this,bn).call(this)?r(a):s(a)});const o=y(this,A1,uV).call(this);o&&El(o,a=>{a.stopPropagation(),r(a)})},onChange:y(this,T1,rV).bind(this)}))}get triggerElement(){return f(this,Ir).call(this)}get contentElement(){return f(this,Oi).call(this)}get isSubmenu(){return!!f(this,Wa)}onSetup(){D(this,nr,Dt());const t=++Ytt;D(this,rh,`media-menu-${t}`),D(this,oh,`media-menu-button-${t}`),D(this,Do,new jtt({closeMenu:this.close.bind(this)})),_s(Ti)&&D(this,Wa,Re(Ti)),y(this,y1,Z4).call(this),this.setAttributes({"data-open":f(this,bn),"data-root":!this.isSubmenu,"data-submenu":this.isSubmenu,"data-disabled":y(this,Kc,Wf).bind(this)}),ws(Ti,{button:f(this,Ir),content:f(this,Oi),expanded:f(this,bn),hint:Ot(""),submenu:!!f(this,Wa),disable:y(this,E1,aV).bind(this),attachMenuButton:y(this,w1,eV).bind(this),attachMenuItems:y(this,_1,iV).bind(this),attachObserver:y(this,x1,nV).bind(this),disableMenuButton:y(this,S1,sV).bind(this),addSubmenu:y(this,O1,hV).bind(this),onTransitionEvent:n=>{f(this,Yc).add(n),jt(()=>{f(this,Yc).delete(n)})}})}onAttach(t){t.style.setProperty("display","contents")}onConnect(t){var n;G(y(this,v1,tV).bind(this)),this.isSubmenu&&((n=f(this,Wa))==null||n.addSubmenu(this))}onDestroy(){f(this,Ir).set(null),f(this,Oi).set(null),D(this,jc,null),f(this,Yc).clear()}open(t){nt(f(this,bn))||(f(this,Uc).show(t),ea())}close(t){nt(f(this,bn))&&(f(this,Uc).hide(t),ea())}}nr=new WeakMap,rh=new WeakMap,oh=new WeakMap,bn=new WeakMap,Im=new WeakMap,Ir=new WeakMap,Oi=new WeakMap,Wa=new WeakMap,ja=new WeakMap,jc=new WeakMap,Uc=new WeakMap,Do=new WeakMap,Gc=new WeakMap,Dm=new WeakMap,Yc=new WeakMap,y1=new WeakSet,Z4=function(){let t=-1,n=_s(mp)?Re(mp):null;ws(mp,{onDragStart:()=>{var s;(s=n==null?void 0:n.onDragStart)==null||s.call(n),window.clearTimeout(t),t=-1,D(this,Gc,!0)},onDragEnd:()=>{var s;(s=n==null?void 0:n.onDragEnd)==null||s.call(n),t=window.setTimeout(()=>{D(this,Gc,!1),t=-1},300)}})},v1=new WeakSet,tV=function(){const t=y(this,k1,oV).call(this);this.isSubmenu||f(this,ch).call(this),y(this,Rm,o2).call(this,t),t&&(G(()=>{const{height:n}=f(this,nr).$state,s=f(this,Oi).call(this);s&&Gn(s,"--player-height",n()+"px")}),f(this,Do).listen(),this.listen("pointerup",y(this,P1,lV).bind(this)),Ni(window,"pointerup",y(this,C1,cV).bind(this)))},w1=new WeakSet,eV=function(t){const n=t.el,s=this.isSubmenu,r=Yi(y(this,Kc,Wf).bind(this));oe(n,"tabindex",s?"-1":"0"),oe(n,"role",s?"menuitem":"button"),ft(n,"id",f(this,oh)),ft(n,"aria-haspopup","menu"),ft(n,"aria-expanded","false"),ft(n,"data-root",!this.isSubmenu),ft(n,"data-submenu",this.isSubmenu),G(()=>{ft(n,"data-open",f(this,bn).call(this)),ft(n,"aria-disabled",r())}),f(this,Ir).set(n),jt(()=>{f(this,Ir).set(null)})},_1=new WeakSet,iV=function(t){var o;const n=t.el;n.style.setProperty("display","none"),ft(n,"id",f(this,rh)),oe(n,"role","menu"),oe(n,"tabindex","-1"),ft(n,"data-root",!this.isSubmenu),ft(n,"data-submenu",this.isSubmenu),f(this,Oi).set(n),jt(()=>f(this,Oi).set(null)),G(()=>ft(n,"data-open",f(this,bn).call(this))),f(this,Do).attachMenu(n),y(this,Rm,o2).call(this,!1);const r=y(this,N1,mV).bind(this);this.isSubmenu?(o=f(this,Wa))==null||o.onTransitionEvent(r):(t.listen("transitionstart",r),t.listen("transitionend",r),t.listen("animationend",f(this,ch)),t.listen("vds-menu-resize",f(this,ch)))},x1=new WeakSet,nV=function(t){D(this,jc,t)},Rm=new WeakSet,o2=function(t){const n=nt(f(this,Oi));n&&ft(n,"aria-hidden",cv(!t))},S1=new WeakSet,sV=function(t){f(this,Dm).set(t)},ah=new WeakMap,T1=new WeakSet,rV=function(t,n){var o,a,l,c,u,d;if(D(this,ah,Yk(n)),n==null||n.stopPropagation(),f(this,bn).call(this)===t)return;if(y(this,Kc,Wf).call(this)){t&&f(this,Uc).hide(n);return}(o=this.el)==null||o.dispatchEvent(new Event("vds-menu-resize",{bubbles:!0,composed:!0}));const s=f(this,Ir).call(this),r=f(this,Oi).call(this);if(s&&(ft(s,"aria-controls",t&&f(this,rh)),ft(s,"aria-expanded",cv(t))),r&&ft(r,"aria-labelledby",t&&f(this,oh)),f(this,bn).set(t),y(this,M1,dV).call(this,n),ea(),f(this,ah)){t?r==null||r.focus():s==null||s.focus();for(const h of[this.el,r])h&&h.setAttribute("data-keyboard","")}else for(const h of[this.el,r])h&&h.removeAttribute("data-keyboard");if(this.dispatch(t?"open":"close",{trigger:n}),t)!this.isSubmenu&&f(this,nr).activeMenu!==this&&((a=f(this,nr).activeMenu)==null||a.close(n),f(this,nr).activeMenu=this),(c=(l=f(this,jc))==null?void 0:l.onOpen)==null||c.call(l,n);else{if(this.isSubmenu)for(const h of f(this,ja))h.close(n);else f(this,nr).activeMenu=null;(d=(u=f(this,jc))==null?void 0:u.onClose)==null||d.call(u,n)}t&&requestAnimationFrame(y(this,Fm,a2).bind(this))},Fm=new WeakSet,a2=function(){f(this,uh)||f(this,lh)||(f(this,Do).update(),requestAnimationFrame(()=>{f(this,ah)?f(this,Do).focusActive():f(this,Do).scroll()}))},k1=new WeakSet,oV=function(){return!y(this,Kc,Wf).call(this)&&f(this,bn).call(this)},Kc=new WeakSet,Wf=function(){return f(this,Im).call(this)||f(this,Dm).call(this)},E1=new WeakSet,aV=function(t){f(this,Im).set(t)},P1=new WeakSet,lV=function(t){const n=f(this,Oi).call(this);f(this,Gc)||n&&tD(n,t)||t.stopPropagation()},C1=new WeakSet,cV=function(t){const n=f(this,Oi).call(this);f(this,Gc)||n&&tD(n,t)||this.close(t)},A1=new WeakSet,uV=function(){var n;const t=(n=this.el)==null?void 0:n.querySelector('[data-part="close-target"]');return this.el&&t&&eB(this.el,t,s=>s.getAttribute("role")==="menu")?t:null},M1=new WeakSet,dV=function(t){this.isSubmenu||(f(this,bn).call(this)?f(this,nr).remote.pauseControls(t):f(this,nr).remote.resumeControls(t))},O1=new WeakSet,hV=function(t){f(this,ja).add(t),new Ce(t).add("open",f(this,I1)).add("close",f(this,R1)),jt(f(this,$1))},$1=new WeakMap,L1=new WeakSet,fV=function(t){f(this,ja).delete(t)},lh=new WeakMap,I1=new WeakMap,D1=new WeakSet,pV=function(t){var s;D(this,lh,!0);const n=f(this,Oi).call(this);this.isSubmenu&&((s=this.triggerElement)==null||s.setAttribute("aria-hidden","true"));for(const r of f(this,ja))if(r!==t.target)for(const o of[r.el,r.triggerElement])o==null||o.setAttribute("aria-hidden","true");if(n){const r=t.target.el;for(const o of n.children)o.contains(r)?o.setAttribute("data-open",""):o!==r&&o.setAttribute("data-hidden","")}},R1=new WeakMap,F1=new WeakSet,gV=function(t){var s;D(this,lh,!1);const n=f(this,Oi).call(this);this.isSubmenu&&((s=this.triggerElement)==null||s.setAttribute("aria-hidden","false"));for(const r of f(this,ja))for(const o of[r.el,r.triggerElement])o==null||o.setAttribute("aria-hidden","false");if(n)for(const r of n.children)r.removeAttribute("data-open"),r.removeAttribute("data-hidden")},ch=new WeakMap,uh=new WeakMap,N1=new WeakSet,mV=function(t){const n=f(this,Oi).call(this);n&&t.propertyName==="height"&&(D(this,uh,t.type==="transitionstart"),ft(n,"data-transition",f(this,uh)?"height":null),f(this,bn).call(this)&&y(this,Fm,a2).call(this));for(const s of f(this,Yc))s(t)},O(qu,"props",{showDelay:0});j0([zt],qu.prototype,"triggerElement");j0([zt],qu.prototype,"contentElement");j0([zt],qu.prototype,"isSubmenu");j0([ei],qu.prototype,"open");j0([ei],qu.prototype,"close");var Ua,Nm,B1,bV,z1,yV,Bm,l2;class tE extends wt{constructor(){super();b(this,B1);b(this,z1);b(this,Bm);b(this,Ua,void 0);b(this,Nm,Ot(null));new mr}get expanded(){var t;
53return((t=f(this,Ua))==null?void 0:t.expanded())??!1}onSetup(){D(this,Ua,Re(Ti))}onAttach(t){f(this,Ua).attachMenuButton(this),G(y(this,B1,bV).bind(this)),oe(t,"type","button")}onConnect(t){G(y(this,z1,yV).bind(this)),y(this,Bm,l2).call(this);const n=new MutationObserver(y(this,Bm,l2).bind(this));n.observe(t,{attributeFilter:["data-part"],childList:!0,subtree:!0}),jt(()=>n.disconnect()),El(t,s=>{this.dispatch("select",{trigger:s})})}}Ua=new WeakMap,Nm=new WeakMap,B1=new WeakSet,bV=function(){f(this,Ua).disableMenuButton(this.$props.disabled())},z1=new WeakSet,yV=function(){const t=f(this,Nm).call(this);t&&G(()=>{const n=f(this,Ua).hint();n&&(t.textContent=n)})},Bm=new WeakSet,l2=function(){var n;const t=(n=this.el)==null?void 0:n.querySelector('[data-part="hint"]');f(this,Nm).set(t??null)},O(tE,"props",{disabled:!1});const Ktt=tE.prototype;zt(Ktt,"expanded");class Xtt extends tE{}var Dn,zm,V1,wV,q1,_V,Vm,c2,H1,xV;class vV extends wt{constructor(){super(...arguments);b(this,V1);b(this,q1);b(this,Vm);b(this,H1);b(this,Dn,null);b(this,zm,void 0)}onSetup(){D(this,zm,Dt()),ws(yy,{attach:y(this,V1,wV).bind(this)})}onAttach(t){t.style.setProperty("display","contents")}onConnect(t){}onDestroy(){var t;(t=f(this,Dn))==null||t.remove(),D(this,Dn,null)}}Dn=new WeakMap,zm=new WeakMap,V1=new WeakSet,wV=function(t){y(this,Vm,c2).call(this,!1),D(this,Dn,t),ca(()=>{ca(()=>{this.connectScope&&G(y(this,q1,_V).bind(this))})})},q1=new WeakSet,_V=function(){const{fullscreen:t}=f(this,zm).$state,{disabled:n}=this.$props;y(this,Vm,c2).call(this,n()==="fullscreen"?!t():!n())},Vm=new WeakSet,c2=function(t){var r;if(!f(this,Dn))return;let n=y(this,H1,xV).call(this,this.$props.container());if(!n)return;const s=f(this,Dn).parentElement===n;ft(f(this,Dn),"data-portal",t),t?s||(f(this,Dn).remove(),n.append(f(this,Dn))):s&&f(this,Dn).parentElement===n&&(f(this,Dn).remove(),(r=this.el)==null||r.append(f(this,Dn)))},H1=new WeakSet,xV=function(t){return Ou(t)?t:t?document.querySelector(t):document.body},O(vV,"props",{container:null,disabled:!1});const yy=Ol();var Xc,W1,TV,j1,kV,U1,EV;class SV extends wt{constructor(){super();b(this,W1);b(this,j1);b(this,U1);b(this,Xc,void 0);new mr;const{placement:t}=this.$props;this.setAttributes({"data-placement":t})}onAttach(t){if(D(this,Xc,Re(Ti)),f(this,Xc).attachMenuItems(this),_s(yy)){const n=Re(yy);n&&(ws(yy,null),n.attach(t),jt(()=>n.attach(null)))}}onConnect(t){G(y(this,W1,TV).bind(this))}}Xc=new WeakMap,W1=new WeakSet,TV=function(){const{expanded:t}=f(this,Xc);if(!this.el||!t())return;const n=this.$props.placement();if(!n)return;Object.assign(this.el.style,{position:"absolute",top:0,left:0,width:"max-content"});const{offset:s,alignOffset:r}=this.$props;jt(sB(this.el,y(this,U1,EV).call(this),n,{offsetVarName:"media-menu",xOffset:r(),yOffset:s()})),jt(y(this,j1,kV).bind(this))},j1=new WeakSet,kV=function(){this.el&&(this.el.removeAttribute("style"),this.el.style.display="none")},U1=new WeakSet,EV=function(){return f(this,Xc).button()},O(SV,"props",{placement:null,offset:0,alignOffset:0});const u2=Ol();var Ro,Ga,qM,G1,PV,Y1,CV,K1,qm,d2,Hm,h2;class Hu extends qs{constructor(){super(...arguments);b(this,G1);b(this,Y1);b(this,qm);b(this,Hm);b(this,Ro,new Set);b(this,Ga,Ot(""));b(this,qM,null);O(this,"onValueChange");b(this,K1,y(this,qm,d2).bind(this))}get values(){return Array.from(f(this,Ro)).map(t=>t.value())}get value(){return f(this,Ga).call(this)}set value(t){y(this,qm,d2).call(this,t)}onSetup(){ws(u2,{add:y(this,G1,PV).bind(this),remove:y(this,Y1,CV).bind(this)})}onAttach(t){_s(Ti)||oe(t,"role","radiogroup"),this.setAttributes({value:f(this,Ga)})}onDestroy(){f(this,Ro).clear()}}Ro=new WeakMap,Ga=new WeakMap,qM=new WeakMap,G1=new WeakSet,PV=function(t){f(this,Ro).has(t)||(f(this,Ro).add(t),t.onCheck=f(this,K1),t.check(t.value()===f(this,Ga).call(this)))},Y1=new WeakSet,CV=function(t){t.onCheck=null,f(this,Ro).delete(t)},K1=new WeakMap,qm=new WeakSet,d2=function(t,n){var a;const s=nt(f(this,Ga));if(!t||t===s)return;const r=y(this,Hm,h2).call(this,s),o=y(this,Hm,h2).call(this,t);r==null||r.check(!1,n),o==null||o.check(!0,n),f(this,Ga).set(t),(a=this.onValueChange)==null||a.call(this,t,n)},Hm=new WeakSet,h2=function(t){for(const n of f(this,Ro))if(t===nt(n.value))return n;return null};var Dr,Qc,X1,AV,Q1,MV,J1,OV,Z1,$V,tS,LV,Wm,f2,eS,IV;class f$ extends wt{constructor(){super();b(this,X1);b(this,Q1);b(this,J1);b(this,Z1);b(this,tS);b(this,Wm);b(this,eS);b(this,Dr,Ot(!1));b(this,Qc,{value:this.$props.value,check:y(this,tS,LV).bind(this),onCheck:null});new mr}get checked(){return f(this,Dr).call(this)}onSetup(){this.setAttributes({value:this.$props.value,"data-checked":f(this,Dr),"aria-checked":Yi(f(this,Dr))})}onAttach(t){const n=_s(Ti);oe(t,"tabindex",n?"-1":"0"),oe(t,"role",n?"menuitemradio":"radio"),G(y(this,J1,OV).bind(this))}onConnect(t){y(this,Q1,MV).call(this),El(t,y(this,Z1,$V).bind(this)),jt(y(this,X1,AV).bind(this))}}Dr=new WeakMap,Qc=new WeakMap,X1=new WeakSet,AV=function(){Vn(()=>{Re(u2).remove(f(this,Qc))},this.connectScope)},Q1=new WeakSet,MV=function(){Re(u2).add(f(this,Qc))},J1=new WeakSet,OV=function(){var s,r;const{value:t}=this.$props,n=t();
53nt(f(this,Dr))&&((r=(s=f(this,Qc)).onCheck)==null||r.call(s,n))},Z1=new WeakSet,$V=function(t){var n,s;nt(f(this,Dr))||(y(this,Wm,f2).call(this,!0,t),y(this,eS,IV).call(this,t),(s=(n=f(this,Qc)).onCheck)==null||s.call(n,nt(this.$props.value),t))},tS=new WeakSet,LV=function(t,n){nt(f(this,Dr))!==t&&y(this,Wm,f2).call(this,t,n)},Wm=new WeakSet,f2=function(t,n){f(this,Dr).set(t),this.dispatch("change",{detail:t,trigger:n})},eS=new WeakSet,IV=function(t){this.dispatch("select",{trigger:t})},O(f$,"props",{value:""});const Qtt=f$.prototype;zt(Qtt,"checked");var dh,sr,Jc,iS,DV,nS,RV,sS,FV,rS,NV,oS,BV;class p$ extends wt{constructor(){super();b(this,iS);b(this,nS);b(this,sS);b(this,rS);b(this,oS);b(this,dh,void 0);b(this,sr,void 0);b(this,Jc,void 0);D(this,Jc,new Hu),f(this,Jc).onValueChange=y(this,oS,BV).bind(this)}get value(){return f(this,Jc).value}get disabled(){const{audioTracks:t}=f(this,sr).$state;return t().length<=1}onSetup(){D(this,sr,Dt()),_s(Ti)&&D(this,dh,Re(Ti))}onConnect(t){G(y(this,iS,DV).bind(this)),G(y(this,sS,FV).bind(this)),G(y(this,nS,RV).bind(this))}getOptions(){const{audioTracks:t}=f(this,sr).$state;return t().map(n=>({track:n,label:n.label,value:n.label.toLowerCase()}))}}dh=new WeakMap,sr=new WeakMap,Jc=new WeakMap,iS=new WeakSet,DV=function(){f(this,Jc).value=y(this,rS,NV).call(this)},nS=new WeakSet,RV=function(){var r;const{emptyLabel:t}=this.$props,{audioTrack:n}=f(this,sr).$state,s=n();(r=f(this,dh))==null||r.hint.set((s==null?void 0:s.label)??t())},sS=new WeakSet,FV=function(){var t;(t=f(this,dh))==null||t.disable(this.disabled)},rS=new WeakSet,NV=function(){const{audioTrack:t}=f(this,sr).$state,n=t();return n?n.label.toLowerCase():""},oS=new WeakSet,BV=function(t,n){if(this.disabled)return;const s=f(this,sr).audioTracks.toArray().findIndex(r=>r.label.toLowerCase()===t);if(s>=0){const r=f(this,sr).audioTracks[s];f(this,sr).remote.changeAudioTrack(s,n),this.dispatch("change",{detail:r,trigger:n})}},O(p$,"props",{emptyLabel:"Default"});const g$=p$.prototype;zt(g$,"value");zt(g$,"disabled");ei(g$,"getOptions");var Rn,hh,Zc,aS,zV,lS,VV,cS,qV,uS,HV,dS,WV,fh,vy;class m$ extends wt{constructor(){super();b(this,aS);b(this,lS);b(this,cS);b(this,uS);b(this,dS);b(this,fh);b(this,Rn,void 0);b(this,hh,void 0);b(this,Zc,void 0);D(this,Zc,new Hu),f(this,Zc).onValueChange=y(this,dS,WV).bind(this)}get value(){return f(this,Zc).value}get disabled(){const{hasCaptions:t}=f(this,Rn).$state;return!t()}onSetup(){D(this,Rn,Dt()),_s(Ti)&&D(this,hh,Re(Ti))}onConnect(t){var n;(n=super.onConnect)==null||n.call(this,t),G(y(this,aS,zV).bind(this)),G(y(this,cS,qV).bind(this)),G(y(this,lS,VV).bind(this))}getOptions(){const{offLabel:t}=this.$props,{textTracks:n}=f(this,Rn).$state;return[{value:"off",label:t},...n().filter(nn).map(s=>({track:s,label:s.label,value:y(this,fh,vy).call(this,s)}))]}}Rn=new WeakMap,hh=new WeakMap,Zc=new WeakMap,aS=new WeakSet,zV=function(){f(this,Zc).value=y(this,uS,HV).call(this)},lS=new WeakSet,VV=function(){var r;const{offLabel:t}=this.$props,{textTrack:n}=f(this,Rn).$state,s=n();(r=f(this,hh))==null||r.hint.set(s&&nn(s)&&s.mode==="showing"?s.label:t())},cS=new WeakSet,qV=function(){var t;(t=f(this,hh))==null||t.disable(this.disabled)},uS=new WeakSet,HV=function(){const{textTrack:t}=f(this,Rn).$state,n=t();return n&&nn(n)&&n.mode==="showing"?y(this,fh,vy).call(this,n):"off"},dS=new WeakSet,WV=function(t,n){if(this.disabled)return;if(t==="off"){const r=f(this,Rn).textTracks.selected;if(r){const o=f(this,Rn).textTracks.indexOf(r);f(this,Rn).remote.changeTextTrackMode(o,"disabled",n),this.dispatch("change",{detail:null,trigger:n})}return}const s=f(this,Rn).textTracks.toArray().findIndex(r=>y(this,fh,vy).call(this,r)===t);if(s>=0){const r=f(this,Rn).textTracks[s];f(this,Rn).remote.changeTextTrackMode(s,"showing",n),this.dispatch("change",{detail:r,trigger:n})}},fh=new WeakSet,vy=function(t){return t.id+":"+t.kind+"-"+t.label.toLowerCase()},O(m$,"props",{offLabel:"Off"});const b$=m$.prototype;zt(b$,"value");zt(b$,"disabled");ei(b$,"getOptions");const Jtt=[.25,.5,.75,1,1.25,1.5,1.75,2];
53var Ya,ph,tu,hS,jV,fS,UV,pS,GV,gS,YV,mS,KV;class y$ extends wt{constructor(){super();b(this,hS);b(this,fS);b(this,pS);b(this,gS);b(this,mS);b(this,Ya,void 0);b(this,ph,void 0);b(this,tu,void 0);D(this,tu,new Hu),f(this,tu).onValueChange=y(this,mS,KV).bind(this)}get value(){return f(this,tu).value}get disabled(){const{rates:t}=this.$props,{canSetPlaybackRate:n}=f(this,Ya).$state;return!n()||t().length===0}onSetup(){D(this,Ya,Dt()),_s(Ti)&&D(this,ph,Re(Ti))}onConnect(t){G(y(this,hS,jV).bind(this)),G(y(this,fS,UV).bind(this)),G(y(this,pS,GV).bind(this))}getOptions(){const{rates:t,normalLabel:n}=this.$props;return t().map(s=>({label:s===1?n:s+"×",value:s.toString()}))}}Ya=new WeakMap,ph=new WeakMap,tu=new WeakMap,hS=new WeakSet,jV=function(){f(this,tu).value=y(this,gS,YV).call(this)},fS=new WeakSet,UV=function(){var r;const{normalLabel:t}=this.$props,{playbackRate:n}=f(this,Ya).$state,s=n();(r=f(this,ph))==null||r.hint.set(s===1?t():s+"×")},pS=new WeakSet,GV=function(){var t;(t=f(this,ph))==null||t.disable(this.disabled)},gS=new WeakSet,YV=function(){const{playbackRate:t}=f(this,Ya).$state;return t().toString()},mS=new WeakSet,KV=function(t,n){if(this.disabled)return;const s=+t;f(this,Ya).remote.changePlaybackRate(s,n),this.dispatch("change",{detail:s,trigger:n})},O(y$,"props",{normalLabel:"Normal",rates:Jtt});const v$=y$.prototype;zt(v$,"value");zt(v$,"disabled");ei(v$,"getOptions");var rr,gh,eu,bS,yS,XV,vS,QV,wS,JV,_S,ZV,xS,tq,mh,wy;class w$ extends wt{constructor(){super();b(this,yS);b(this,vS);b(this,wS);b(this,_S);b(this,xS);b(this,mh);b(this,rr,void 0);b(this,gh,void 0);b(this,eu,void 0);b(this,bS,hr(()=>{const{sort:t}=this.$props,{qualities:n}=f(this,rr).$state;return rz(n(),t()==="descending")}));D(this,eu,new Hu),f(this,eu).onValueChange=y(this,_S,ZV).bind(this)}get value(){return f(this,eu).value}get disabled(){const{canSetQuality:t,qualities:n}=f(this,rr).$state;return!t()||n().length<=1}onSetup(){D(this,rr,Dt()),_s(Ti)&&D(this,gh,Re(Ti))}onConnect(t){G(y(this,yS,XV).bind(this)),G(y(this,wS,JV).bind(this)),G(y(this,vS,QV).bind(this))}getOptions(){const{autoLabel:t,hideBitrate:n}=this.$props;return[{value:"auto",label:t},...f(this,bS).call(this).map(s=>{const r=s.bitrate&&s.bitrate>=0?`${Si(s.bitrate/1e6,2)} Mbps`:null;return{quality:s,label:s.height+"p",value:y(this,mh,wy).call(this,s),bitrate:()=>n()?null:r}})]}}rr=new WeakMap,gh=new WeakMap,eu=new WeakMap,bS=new WeakMap,yS=new WeakSet,XV=function(){f(this,eu).value=y(this,xS,tq).call(this)},vS=new WeakSet,QV=function(){var o;const{autoLabel:t}=this.$props,{autoQuality:n,quality:s}=f(this,rr).$state,r=s()?s().height+"p":"";(o=f(this,gh))==null||o.hint.set(n()?t()+(r?` (${r})`:""):r)},wS=new WeakSet,JV=function(){var t;(t=f(this,gh))==null||t.disable(this.disabled)},_S=new WeakSet,ZV=function(t,n){if(this.disabled)return;if(t==="auto"){f(this,rr).remote.changeQuality(-1,n),this.dispatch("change",{detail:"auto",trigger:n});return}const{qualities:s}=f(this,rr).$state,r=nt(s).findIndex(o=>y(this,mh,wy).call(this,o)===t);if(r>=0){const o=nt(s)[r];f(this,rr).remote.changeQuality(r,n),this.dispatch("change",{detail:o,trigger:n})}},xS=new WeakSet,tq=function(){const{quality:t,autoQuality:n}=f(this,rr).$state;if(n())return"auto";const s=t();return s?y(this,mh,wy).call(this,s):"auto"},mh=new WeakSet,wy=function(t){return t.height+"_"+t.bitrate},O(w$,"props",{autoLabel:"Auto",hideBitrate:!1,sort:"descending"});const _$=w$.prototype;zt(_$,"value");zt(_$,"disabled");ei(_$,"getOptions");var bh,Ka,jm,Um,SS,eq,TS,iq,kS,nq,Gm,g2,ES,sq,PS,rq,Ym,m2,CS,oq;class p2 extends wt{constructor(){super(...arguments);b(this,SS);b(this,TS);b(this,kS);b(this,Gm);b(this,ES);b(this,PS);b(this,Ym);b(this,CS);b(this,bh,void 0);b(this,Ka,Ot(null));b(this,jm,Ot(!0));b(this,Um,Ot(!0))}onSetup(){D(this,bh,Dt()),y(this,Gm,g2).call(this);const{type:t}=this.$props;this.setAttributes({"data-type":t,"data-remainder":y(this,Ym,m2).bind(this)}),new Fz({callback:y(this,SS,eq).bind(this)}).attach(this)}onAttach(t){t.hasAttribute("role")||G(y(this,ES,sq).bind(this)),G(y(this,Gm,g2).bind(this))}onConnect(t){jt(tB(t,f(this,jm).set)),G(y(this,TS,iq).bind(this)),G(y(this,kS,nq).bind(this))}}bh=new WeakMap,Ka=new WeakMap,jm=new WeakMap,Um=new WeakMap,SS=new WeakSet,eq=function(t){f(this,Um).set(t[0].isIntersecting)},TS=new WeakSet,iq=function(){const{hidden:t}=this.$props;this.$state.hidden.set(t()||!f(this,jm).call(this)||!f(this,Um).call(this))},kS=new WeakSet,nq=function(){if(!this.$props.toggle()){f(this,Ka).set(null);return}this.el&&El(this.el,y(this,CS,oq).bind(this))},Gm=new WeakSet,g2=function(){const{hidden:t,timeText:n}=this.$state,{duration:s}=f(this,bh).$state;if(t())return;const{type:r,padHours:o,padMinutes:a,showHours:l}=this.$props,c=y(this,PS,rq).call(this,r()),u=s(),d=y(this,Ym,m2).call(this);if(!Number.isFinite(c+u)){n.set("LIVE");return}const h=d?Math.max(0,u-c):c,p=Zk(h,{padHrs:o(),padMins:a(),showHrs:l()});n.set((d?"-":"")+p)},ES=new WeakSet,sq=function(){if(!this.el)return;const{toggle:t}=this.$props;ft(this.el,"role",t()?"timer":null),ft(this.el,"tabindex",t()?0:null)},PS=new WeakSet,rq=function(t){const{bufferedEnd:n,duration:s,currentTime:r}=f(this,bh).$state;switch(t){case"buffered":return n();case"duration":return s();default:return r()}},Ym=new WeakSet,m2=function(){return this.$props.remainder()&&f(this,Ka).call(this)!==!1},CS=new WeakSet,oq=function(t){if(t.preventDefault(),f(this,Ka).call(this)===null){f(this,Ka).set(!this.$props.remainder());return}f(this,Ka).set(n=>!n)},O(p2,"props",{type:"current",showHours:!1,padHours:null,padMinutes:null,remainder:!1,toggle:!1,hidden:!1}),O(p2,"state",new $l({timeText:"",hidden:!1}));var Rr,yh,AS,aq,MS,lq,OS,cq,$S,uq,LS,dq,Xa,vh,IS,hq,wh,_y,DS,fq,Fo,sc;class b2 extends wt{constructor(){super(...arguments);b(this,AS);b(this,MS);b(this,OS);b(this,$S);b(this,LS);b(this,IS);b(this,wh);b(this,DS);b(this,Fo);b(this,Rr,void 0);b(this,yh,!1);b(this,Xa,-1);b(this,vh,-1)}onSetup(){D(this,Rr,Dt())}onAttach(t){t.style.display="contents"}onConnect(t){t.setAttribute("data-media-announcer",""),oe(t,"role","status"),oe(t,"aria-live","polite");const{busy:n}=this.$state;this.setAttributes({"aria-busy":()=>n()?"true":null}),D(this,yh,!0),G(y(this,AS,aq).bind(this)),G(y(this,LS,dq).bind(this)),G(y(this,$S,uq).bind(this)),G(y(this,MS,lq).bind(this)),G(y(this,OS,cq).bind(this)),G(y(this,IS,hq).bind(this)),G(y(this,DS,fq).bind(this)),ea(),D(this,yh,!1)}}Rr=new WeakMap,yh=new WeakMap,AS=new WeakSet,aq=function(){const{paused:t}=f(this,Rr).$state;y(this,Fo,sc).call(this,t()?"Pause":"Play")},MS=new WeakSet,lq=function(){const{fullscreen:t}=f(this,Rr).$state;y(this,Fo,sc).call(this,t()?"Enter Fullscreen":"Exit Fullscreen")},OS=new WeakSet,cq=function(){const{pictureInPicture:t}=f(this,Rr).$state;y(this,Fo,sc).call(this,t()?"Enter PiP":"Exit PiP")},$S=new WeakSet,uq=function(){const{textTrack:t}=f(this,Rr).$state;y(this,Fo,sc).call(this,t()?"Closed-Captions On":"Closed-Captions Off")},LS=new WeakSet,dq=function(){const{muted:t,volume:n,audioGain:s}=f(this,Rr).$state;y(this,Fo,sc).call(this,t()||n()===0?"Mute":`${Math.round(n()*(s()??1)*100)}% ${y(this,wh,_y).call(this,"Volume")}`)},Xa=new WeakMap,vh=new WeakMap,IS=new WeakSet,hq=function(){const{seeking:t,currentTime:n}=f(this,Rr).$state,s=t();f(this,Xa)>0?(window.clearTimeout(f(this,vh)),D(this,vh,window.setTimeout(()=>{if(!this.scope)return;const r=nt(n),o=Math.abs(r-f(this,Xa));if(o>=1){const a=r>=f(this,Xa),l=vv(o);y(this,Fo,sc).call(this,`${y(this,wh,_y).call(this,a?"Seek Forward":"Seek Backward")} ${l}`)}D(this,Xa,-1),D(this,vh,-1)},300))):s&&D(this,Xa,nt(n))},wh=new WeakSet,_y=function(t){var s;const{translations:n}=this.$props;return((s=n==null?void 0:n())==null?void 0:s[t||""])??t},DS=new WeakSet,fq=function(){const{label:t,busy:n}=this.$state,s=y(this,wh,_y).call(this,t());if(f(this,yh))return;n.set(!0);const r=window.setTimeout(()=>void n.set(!1),150);return this.el&&ft(this.el,"aria-label",s),Mt(s)&&this.dispatch("change",{detail:s}),()=>window.clearTimeout(r)},Fo=new WeakSet,sc=function(t){const{label:n}=this.$state;n.set(t)},O(b2,"props",{translations:null}),O(b2,"state",new $l({label:null,busy:!1}));var No,RS,gq,FS,mq,Km,y2;class pq extends wt{constructor(){super(...arguments);b(this,RS);b(this,FS);b(this,Km);b(this,No,void 0)}onSetup(){D(this,No,Dt()),G(y(this,FS,mq).bind(this))}onAttach(t){const{pictureInPicture:n,fullscreen:s}=f(this,No).$state;Gn(t,"pointer-events","none"),oe(t,"role","group"),this.setAttributes({"data-visible":y(this,Km,y2).bind(this),"data-fullscreen":s,"data-pip":n}),G(()=>{this.dispatch("change",{detail:y(this,Km,y2).call(this)})}),G(y(this,RS,gq).bind(this)),G(()=>{const r=s();for(const o of["top","right","bottom","left"])Gn(t,`padding-${o}`,r&&`env(safe-area-inset-${o})`)})}}No=new WeakMap,RS=new WeakSet,gq=function(){if(!this.el)return;const{nativeControls:t}=f(this,No).$state,n=t();ft(this.el,"aria-hidden",n?"true":null),Gn(this.el,"display",n?"none":null)},FS=new WeakSet,mq=function(){const{controls:t}=f(this,No).player,{hideDelay:n,hideOnMouseLeave:s}=this.$props;t.defaultDelay=n()===2e3?f(this,No).$props.controlsDelay():n(),t.hideOnMouseLeave=s()},Km=new WeakSet,y2=function(){const{controlsVisible:t}=f(this,No).$state;return t()},O(pq,"props",{hideDelay:2e3,hideOnMouseLeave:!1});class Ztt extends wt{onAttach(e){e.style.pointerEvents||Gn(e,"pointer-events","auto")}}const pc=Ol();let tet=0;var OP,_h,Qa,Ja,Xm,NS,bq,BS,yq,zS,vq,VS,wq,qS,_q;let eet=(OP=class extends wt{constructor(){super();b(this,NS);b(this,BS);b(this,zS);b(this,VS);b(this,qS);b(this,_h,`media-tooltip-${++tet}`);b(this,Qa,Ot(null));b(this,Ja,Ot(null));b(this,Xm,Ot(!1));new mr;const{showDelay:t}=this.$props;new az({trigger:f(this,Qa),content:f(this,Ja),showDelay:t,listen(n,s,r){G(()=>{gv()&&Ni(n,"focus",s),Ni(n,"blur",r)}),new Ce(n).add("touchstart",o=>o.preventDefault(),{passive:!1}).add("mouseenter",s).add("mouseleave",r)},onChange:y(this,qS,_q).bind(this)})}onAttach(t){t.style.setProperty("display","contents")}onSetup(){ws(pc,{trigger:f(this,Qa),content:f(this,Ja),showing:f(this,Xm),attachTrigger:y(this,NS,bq).bind(this),detachTrigger:y(this,BS,yq).bind(this),attachContent:y(this,zS,vq).bind(this),detachContent:y(this,VS,wq).bind(this)})}},_h=new WeakMap,Qa=new WeakMap,Ja=new WeakMap,Xm=new WeakMap,NS=new WeakSet,bq=function(t){var s;f(this,Qa).set(t);let n=t.getAttribute("data-media-tooltip");n&&((s=this.el)==null||s.setAttribute(`data-media-${n}-tooltip`,"")),ft(t,"data-describedby",f(this,_h))},BS=new WeakSet,yq=function(t){t.removeAttribute("data-describedby"),t.removeAttribute("aria-describedby"),f(this,Qa).set(null)},zS=new WeakSet,vq=function(t){t.setAttribute("id",f(this,_h)),t.style.display="none",oe(t,"role","tooltip"),f(this,Ja).set(t)},VS=new WeakSet,wq=function(t){t.removeAttribute("id"),t.removeAttribute("role"),f(this,Ja).set(null)},qS=new WeakSet,_q=function(t){const n=f(this,Qa).call(this),s=f(this,Ja).call(this);n&&ft(n,"aria-describedby",t?f(this,_h):null);for(const r of[this.el,n,s])r&&ft(r,"data-visible",t);f(this,Xm).set(t)},O(OP,"props",{showDelay:700}),OP);var HS,xq,Qm,v2;class iet extends wt{constructor(){super();b(this,HS);b(this,Qm);
53new mr}onConnect(t){jt(ca(()=>{if(!this.connectScope)return;y(this,HS,xq).call(this);const n=Re(pc);jt(()=>{const s=y(this,Qm,v2).call(this);s&&n.detachTrigger(s)})}))}}HS=new WeakSet,xq=function(){const t=y(this,Qm,v2).call(this),n=Re(pc);t&&n.attachTrigger(t)},Qm=new WeakSet,v2=function(){const t=this.el.firstElementChild;return(t==null?void 0:t.localName)==="button"||(t==null?void 0:t.getAttribute("role"))==="button"?t:this.el};var Jm,w2,WS,Tq,jS,kq;class Sq extends wt{constructor(){super();b(this,Jm);b(this,WS);b(this,jS);new mr;const{placement:t}=this.$props;this.setAttributes({"data-placement":t})}onAttach(t){y(this,Jm,w2).call(this,t),Object.assign(t.style,{position:"absolute",top:0,left:0,width:"max-content"})}onConnect(t){y(this,Jm,w2).call(this,t);const n=Re(pc);jt(()=>n.detachContent(t)),jt(ca(()=>{this.connectScope&&G(y(this,WS,Tq).bind(this))}))}}Jm=new WeakSet,w2=function(t){Re(pc).attachContent(t)},WS=new WeakSet,Tq=function(){const{showing:t}=Re(pc);if(!t())return;const{placement:n,offset:s,alignOffset:r}=this.$props;return sB(this.el,y(this,jS,kq).call(this),n(),{offsetVarName:"media-tooltip",xOffset:r(),yOffset:s()})},jS=new WeakSet,kq=function(){return Re(pc).trigger()},O(Sq,"props",{placement:"top center",offset:0,alignOffset:0});var Zm;class x$ extends wt{constructor(){super();b(this,Zm,Ot(!1));new an({isPresssed:f(this,Zm)})}get pressed(){return f(this,Zm).call(this)}}Zm=new WeakMap,O(x$,"props",{disabled:!1,defaultPressed:!1});const net=x$.prototype;zt(net,"pressed");var Bo,US,Pq,GS,Cq,YS,Aq,KS,Mq;class Eq extends wt{constructor(){super();b(this,US);b(this,GS);b(this,YS);b(this,KS);b(this,Bo,void 0);new an({isPresssed:y(this,GS,Cq).bind(this),onPress:y(this,US,Pq).bind(this)})}onSetup(){D(this,Bo,Dt());const{canGoogleCast:t,isGoogleCastConnected:n}=f(this,Bo).$state;this.setAttributes({"data-active":n,"data-supported":t,"data-state":y(this,YS,Aq).bind(this),"aria-hidden":Yi(()=>!t())})}onAttach(t){t.setAttribute("data-media-tooltip","google-cast"),Ll(t,y(this,KS,Mq).bind(this))}}Bo=new WeakMap,US=new WeakSet,Pq=function(t){f(this,Bo).remote.requestGoogleCast(t)},GS=new WeakSet,Cq=function(){const{remotePlaybackType:t,remotePlaybackState:n}=f(this,Bo).$state;return t()==="google-cast"&&n()!=="disconnected"},YS=new WeakSet,Aq=function(){const{remotePlaybackType:t,remotePlaybackState:n}=f(this,Bo).$state;return t()==="google-cast"&&n()},KS=new WeakSet,Mq=function(){const{remotePlaybackState:t}=f(this,Bo).$state;return`Google Cast ${t()}`},O(Eq,"props",an.props);var Za,t0,XS,Oq,QS,$q,e0,_2,JS,Lq,i0,x2,ZS,Iq,tT,Dq,n0,S2,eT,Rq,iT,Fq;class _v extends wt{constructor(){super(...arguments);b(this,XS);b(this,QS);b(this,e0);b(this,JS);b(this,i0);b(this,ZS);b(this,tT);b(this,n0);b(this,eT);b(this,iT);b(this,Za,void 0);b(this,t0,void 0)}get video(){return this.$state.video()}onSetup(){D(this,Za,Dt()),D(this,t0,af($u.state)),y(this,e0,_2).call(this),this.setAttributes({"data-loading":y(this,JS,Lq).bind(this),"data-hidden":this.$state.hidden,"data-error":y(this,i0,x2).bind(this),"aria-hidden":Yi(this.$state.hidden)})}onAttach(t){G(y(this,XS,Oq).bind(this)),G(y(this,QS,$q).bind(this)),G(y(this,e0,_2).bind(this)),G(y(this,ZS,Iq).bind(this)),G(y(this,tT,Dq).bind(this)),G(y(this,iT,Fq).bind(this))}}Za=new WeakMap,t0=new WeakMap,XS=new WeakSet,Oq=function(){const t=this.$state.video();t&&(t.readyState>=2&&y(this,n0,S2).call(this),new Ce(t).add("canplay",y(this,n0,S2).bind(this)).add("error",y(this,eT,Rq).bind(this)))},QS=new WeakSet,$q=function(){const{src:t}=this.$state,{canLoad:n}=f(this,Za).$state;t.set(n()?this.$props.src():null)},e0=new WeakSet,_2=function(){const{crossOrigin:t}=this.$props,{crossOrigin:n}=this.$state,{crossOrigin:s}=f(this,Za).$state,r=t()!==null?t():s();n.set(r===!0?"anonymous":r)},JS=new WeakSet,Lq=function(){const{canPlay:t,hidden:n}=this.$state;return!t()&&!n()},i0=new WeakSet,x2=function(){const{error:t}=this.$state;return!Kr(t)},ZS=new WeakSet,Iq=function(){const{src:t,hidden:n}=this.$state,{canLoad:s,duration:r}=f(this,Za).$state;n.set(s()&&(!t()||y(this,i0,x2).call(this)||!Number.isFinite(r())))}
53,tT=new WeakSet,Dq=function(){const{src:t,canPlay:n,error:s}=this.$state;t(),n.set(!1),s.set(null)},n0=new WeakSet,S2=function(t){const{canPlay:n,error:s}=this.$state;n.set(!0),s.set(null),this.dispatch("can-play",{trigger:t})},eT=new WeakSet,Rq=function(t){const{canPlay:n,error:s}=this.$state;n.set(!1),s.set(t),this.dispatch("error",{trigger:t})},iT=new WeakSet,Fq=function(){const{video:t,canPlay:n}=this.$state,{duration:s}=f(this,Za).$state,{pointerRate:r}=f(this,t0),o=t();n()&&o&&Number.isFinite(s())&&Number.isFinite(r())&&(o.currentTime=r()*s())},O(_v,"props",{src:null,crossOrigin:null}),O(_v,"state",new $l({video:null,src:null,crossOrigin:null,canPlay:!1,error:null,hidden:!1}));const set=_v.prototype;zt(set,"video");var tl,nT,Nq,sT,Bq,rT,zq,oT,Vq,aT,qq,s0,k2,lT,Hq,cT,Wq;class T2 extends wt{constructor(){super(...arguments);b(this,nT);b(this,sT);b(this,rT);b(this,oT);b(this,aT);b(this,s0);b(this,lT);b(this,cT);b(this,tl,void 0)}onSetup(){D(this,tl,Dt()),ws(Yh,{default:"percent",percent:(t,n)=>Si(this.$state.value(),n)+"%"}),new xs({getStep:this.$props.step,getKeyStep:this.$props.keyStep,roundValue:Math.round,isDisabled:y(this,aT,qq).bind(this),aria:{valueNow:y(this,nT,Nq).bind(this),valueText:y(this,sT,Bq).bind(this)},onDragValueChange:y(this,cT,Wq).bind(this),onValueChange:y(this,lT,Hq).bind(this)}).attach(this),G(y(this,rT,zq).bind(this)),G(y(this,oT,Vq).bind(this))}onAttach(t){t.setAttribute("data-media-audio-gain-slider",""),oe(t,"aria-label","Audio Boost");const{canSetAudioGain:n}=f(this,tl).$state;this.setAttributes({"data-supported":n,"aria-hidden":Yi(()=>!n())})}}tl=new WeakMap,nT=new WeakSet,Nq=function(){const{value:t}=this.$state;return Math.round(t())},sT=new WeakSet,Bq=function(){const{value:t}=this.$state;return t()+"%"},rT=new WeakSet,zq=function(){const{min:t,max:n}=this.$props;this.$state.min.set(t()),this.$state.max.set(n())},oT=new WeakSet,Vq=function(){const{audioGain:t}=f(this,tl).$state,n=((t()??1)-1)*100;this.$state.value.set(n),this.dispatch("value-change",{detail:n})},aT=new WeakSet,qq=function(){const{disabled:t}=this.$props,{canSetAudioGain:n}=f(this,tl).$state;return t()||!n()},s0=new WeakSet,k2=function(t){if(!t.trigger)return;const n=Si(1+t.detail/100,2);f(this,tl).remote.changeAudioGain(n,t)},lT=new WeakSet,Hq=function(t){y(this,s0,k2).call(this,t)},cT=new WeakSet,Wq=function(t){y(this,s0,k2).call(this,t)},O(T2,"props",{...xs.props,step:25,keyStep:25,shiftKeyMultiplier:2,min:0,max:300}),O(T2,"state",Vu);var el,uT,jq,dT,Uq,hT,Gq,fT,Yq,pT,Kq,gT,Xq,r0,mT,Qq,bT,Jq,yT,Zq;class E2 extends wt{constructor(){super(...arguments);b(this,uT);b(this,dT);b(this,hT);b(this,fT);b(this,pT);b(this,gT);b(this,mT);b(this,bT);b(this,yT);b(this,el,void 0);b(this,r0,Bu(y(this,mT,Qq).bind(this),25))}onSetup(){D(this,el,Dt()),new xs({getStep:this.$props.step,getKeyStep:this.$props.keyStep,roundValue:y(this,pT,Kq),isDisabled:y(this,gT,Xq).bind(this),aria:{valueNow:y(this,uT,jq).bind(this),valueText:y(this,dT,Uq).bind(this)},onDragValueChange:y(this,yT,Zq).bind(this),onValueChange:y(this,bT,Jq).bind(this)}).attach(this),G(y(this,hT,Gq).bind(this)),G(y(this,fT,Yq).bind(this))}onAttach(t){t.setAttribute("data-media-speed-slider",""),oe(t,"aria-label","Speed");const{canSetPlaybackRate:n}=f(this,el).$state;this.setAttributes({"data-supported":n,"aria-hidden":Yi(()=>!n())})}}el=new WeakMap,uT=new WeakSet,jq=function(){const{value:t}=this.$state;return t()},dT=new WeakSet,Uq=function(){const{value:t}=this.$state;return t()+"x"},hT=new WeakSet,Gq=function(){const{min:t,max:n}=this.$props;this.$state.min.set(t()),this.$state.max.set(n())},fT=new WeakSet,Yq=function(){const{playbackRate:t}=f(this,el).$state,n=t();this.$state.value.set(n),this.dispatch("value-change",{detail:n})},pT=new WeakSet,Kq=function(t){return Si(t,2)},gT=new WeakSet,Xq=function(){const{disabled:t}=this.$props,{canSetPlaybackRate:n}=f(this,el).$state;return t()||!n()},r0=new WeakMap,mT=new WeakSet,Qq=function(t){if(!t.trigger)return;const n=t.detail;f(this,el).remote.changePlaybackRate(n,t)},bT=new WeakSet,Jq=function(t){f(this,r0).call(this,t)},yT=new WeakSet,Zq=function(t){f(this,r0).call(this,t)},O(E2,"props",{...xs.props,step:.25,keyStep:.25,shiftKeyMultiplier:2,min:0,max:2}),O(E2,"state",Vu);var or,xh,vT,tH,wT,eH,_T,iH,xT,nH,ST,sH,o0,TT,rH,kT,oH,ET,aH;class P2 extends wt{constructor(){super(...arguments);b(this,vT);b(this,wT);b(this,_T);b(this,xT);b(this,ST);b(this,TT);b(this,kT);b(this,ET);b(this,or,void 0);b(this,xh,hr(()=>{const{qualities:t}=f(this,or).$state;return rz(t())}
53));b(this,o0,Bu(y(this,TT,rH).bind(this),25))}onSetup(){D(this,or,Dt()),new xs({getStep:this.$props.step,getKeyStep:this.$props.keyStep,roundValue:Math.round,isDisabled:y(this,ST,sH).bind(this),aria:{valueNow:y(this,vT,tH).bind(this),valueText:y(this,wT,eH).bind(this)},onDragValueChange:y(this,ET,aH).bind(this),onValueChange:y(this,kT,oH).bind(this)}).attach(this),G(y(this,_T,iH).bind(this)),G(y(this,xT,nH).bind(this))}onAttach(t){t.setAttribute("data-media-quality-slider",""),oe(t,"aria-label","Video Quality");const{qualities:n,canSetQuality:s}=f(this,or).$state,r=hr(()=>s()&&n().length>0);this.setAttributes({"data-supported":r,"aria-hidden":Yi(()=>!r())})}}or=new WeakMap,xh=new WeakMap,vT=new WeakSet,tH=function(){const{value:t}=this.$state;return t()},wT=new WeakSet,eH=function(){const{quality:t}=f(this,or).$state;if(!t())return"";const{height:n,bitrate:s}=t(),r=s&&s>0?`${(s/1e6).toFixed(2)} Mbps`:null;return n?`${n}p${r?` (${r})`:""}`:"Auto"},_T=new WeakSet,iH=function(){const t=f(this,xh).call(this);this.$state.max.set(Math.max(0,t.length-1))},xT=new WeakSet,nH=function(){let{quality:t}=f(this,or).$state,n=f(this,xh).call(this),s=Math.max(0,n.indexOf(t()));this.$state.value.set(s),this.dispatch("value-change",{detail:s})},ST=new WeakSet,sH=function(){const{disabled:t}=this.$props,{canSetQuality:n,qualities:s}=f(this,or).$state;return t()||s().length<=1||!n()},o0=new WeakMap,TT=new WeakSet,rH=function(t){if(!t.trigger)return;const{qualities:n}=f(this,or),s=nt(f(this,xh))[t.detail];f(this,or).remote.changeQuality(n.indexOf(s),t)},kT=new WeakSet,oH=function(t){f(this,o0).call(this,t)},ET=new WeakSet,aH=function(t){f(this,o0).call(this,t)},O(P2,"props",{...xs.props,step:1,keyStep:1,shiftKeyMultiplier:1}),O(P2,"state",Vu);var Fn,iu,Sh,Fr,yn,nu,vn,zo,su,il,a0,C2,l0,A2,PT,lH,CT,cH,AT,uH,MT,dH,OT,hH,Th,xy,c0,M2,u0,O2,$T,fH,LT,IT,DT,pH,kh,Sy,Eh,Ty,RT,gH,FT,mH,NT,bH,BT,yH,d0,zT,vH,VT,wH,qT,_H;class S$ extends wt{constructor(){super(...arguments);b(this,a0);b(this,l0);b(this,PT);b(this,CT);b(this,AT);b(this,MT);b(this,OT);b(this,Th);b(this,c0);b(this,u0);b(this,$T);b(this,DT);b(this,kh);b(this,Eh);b(this,RT);b(this,FT);b(this,NT);b(this,BT);b(this,zT);b(this,VT);b(this,qT);b(this,Fn,void 0);b(this,iu,void 0);b(this,Sh,void 0);b(this,Fr,null);b(this,yn,[]);b(this,nu,Ot(null));b(this,vn,Ot([]));b(this,zo,Ot(-1));b(this,su,Ot(-1));b(this,il,0);b(this,LT,lf(t=>{var l;let n,s=f(this,vn).call(this),{seekableStart:r}=f(this,Fn).$state,o=r(),a=y(this,kh,Sy).call(this,s);for(let c=f(this,il);c<f(this,yn).length;c++)if(n=y(this,Eh,Ty).call(this,s[c],t,o,a),(l=f(this,yn)[c])==null||l.style.setProperty("--chapter-progress",n+"%"),n<100){D(this,il,c);break}}));b(this,IT,hr(y(this,DT,pH).bind(this)));b(this,d0,JO(()=>{const t=nt(f(this,nu));!this.scope||!t||!t.cues.length||(f(this,vn).set(y(this,RT,gH).call(this,t.cues)),f(this,zo).set(0),D(this,il,0))},150,!0))}get cues(){return f(this,vn).call(this)}get activeCue(){return f(this,vn).call(this)[f(this,zo).call(this)]||null}get activePointerCue(){return f(this,vn).call(this)[f(this,su).call(this)]||null}onSetup(){D(this,Fn,Dt()),D(this,iu,af(wv.state))}onAttach(t){Kk(f(this,Fn).textTracks,"chapters",y(this,a0,C2).bind(this)),G(y(this,FT,mH).bind(this))}onConnect(){jt(()=>y(this,l0,A2).bind(this))}onDestroy(){y(this,a0,C2).call(this,null)}setRefs(t){var n;if(D(this,yn,t),(n=f(this,Sh))==null||n.dispose(),f(this,yn).length===1){const s=f(this,yn)[0];s.style.width="100%",s.style.setProperty("--chapter-fill","var(--slider-fill)"),s.style.setProperty("--chapter-progress","var(--slider-progress)")}else f(this,yn).length>0&&Vn(()=>y(this,PT,lH).call(this),D(this,Sh,av()))}}Fn=new WeakMap,iu=new WeakMap,Sh=new WeakMap,Fr=new WeakMap,yn=new WeakMap,nu=new WeakMap,vn=new WeakMap,zo=new WeakMap,su=new WeakMap,il=new WeakMap,a0=new WeakSet,C2=function(t){nt(f(this,nu))!==t&&(y(this,l0,A2).call(this),f(this,nu).set(t))},l0=new WeakSet,A2=function(){var t;D(this,yn,[]),f(this,vn).set([]),f(this,zo).set(-1),f(this,su).set(-1),D(this,il,0),(t=f(this,Sh))==null||t.dispose()},PT=new WeakSet,lH=function(){f(this,yn).length&&G(y(this,CT,cH).bind(this))},CT=new WeakSet,cH=function(){const{hidden:t}=f(this,iu);t()||(G(y(this,AT,uH).bind(this)),G(y(this,MT,dH).bind(this)),G(y(this,OT,hH).bind(this)),G(y(this,$T,fH).bind(this)))},AT=new WeakSet,uH=function(){const t=f(this,vn).call(this);if(!t.length)return;let n,{seekableStart:s,seekableEnd:r}=f(this,Fn).$state,o=s(),a=r()||t[t.length-1].endTime,l=a-o,c=100;for(let u=0;u<t.length;u++)if(n=t[u],f(this,yn)[u]){const d=u===t.length-1?c:Si((n.endTime-Math.max(o,n.startTime))/l*100,3);f(this,yn)[u].style.width=d+"%",c-=d}}
53,MT=new WeakSet,dH=function(){let{liveEdge:t,seekableStart:n,seekableEnd:s}=f(this,Fn).$state,{fillPercent:r,value:o}=f(this,iu),a=f(this,vn).call(this),l=t(),c=nt(f(this,zo)),u=a[c],d=l?f(this,vn).length-1:y(this,u0,O2).call(this,u&&u.startTime/s()*100<=nt(o)?c:0,r());l||!u?y(this,Th,xy).call(this,0,a.length,100):d>c?y(this,Th,xy).call(this,c,d,100):d<c&&y(this,Th,xy).call(this,d+1,c+1,0);const h=l?100:y(this,Eh,Ty).call(this,a[d],r(),n(),y(this,kh,Sy).call(this,a));y(this,c0,M2).call(this,f(this,yn)[d],h),f(this,zo).set(d)},OT=new WeakSet,hH=function(){let{hidden:t,pointerPercent:n}=f(this,iu);if(t()){f(this,su).set(-1);return}const s=y(this,u0,O2).call(this,0,n());f(this,su).set(s)},Th=new WeakSet,xy=function(t,n,s){for(let r=t;r<n;r++)y(this,c0,M2).call(this,f(this,yn)[r],s)},c0=new WeakSet,M2=function(t,n){t&&(t.style.setProperty("--chapter-fill",n+"%"),ft(t,"data-active",n>0&&n<100),ft(t,"data-ended",n===100))},u0=new WeakSet,O2=function(t,n){let s=0,r=f(this,vn).call(this);if(n===0)return 0;if(n===100)return r.length-1;let{seekableStart:o}=f(this,Fn).$state,a=o(),l=y(this,kh,Sy).call(this,r);for(let c=t;c<r.length;c++)if(s=y(this,Eh,Ty).call(this,r[c],n,a,l),s>=0&&s<100)return c;return 0},$T=new WeakSet,fH=function(){f(this,LT).call(this,f(this,IT).call(this))},LT=new WeakMap,IT=new WeakMap,DT=new WeakSet,pH=function(){const{bufferedEnd:t,duration:n}=f(this,Fn).$state;return Si(Math.min(t()/Math.max(n(),1),1),3)*100},kh=new WeakSet,Sy=function(t){var r;const{seekableEnd:n}=f(this,Fn).$state,s=n();return Number.isFinite(s)?s:((r=t[t.length-1])==null?void 0:r.endTime)||0},Eh=new WeakSet,Ty=function(t,n,s,r){if(!t||f(this,vn).call(this).length===0)return 0;const a=r-s,l=Math.max(0,t.startTime-s),c=Math.min(r,t.endTime)-s,u=l/a,d=u*100,h=Math.min(1,u+(c-l)/a)*100;return Math.max(0,Si(n>=h?100:(n-d)/(h-d)*100,3))},RT=new WeakSet,gH=function(t){let n=[],{seekableStart:s,seekableEnd:r,duration:o}=f(this,Fn).$state,a=s(),l=r();t=t.filter(d=>d.startTime<=l&&d.endTime>=a);const c=t[0];c&&c.startTime>a&&n.push(new window.VTTCue(a,c.startTime,""));for(let d=0;d<t.length-1;d++){const h=t[d],p=t[d+1];if(n.push(h),p){const m=p.startTime-h.endTime;m>0&&n.push(new window.VTTCue(h.endTime,h.endTime+m,""))}}const u=t[t.length-1];if(u){n.push(u);const d=o();d>=0&&d-u.endTime>1&&n.push(new window.VTTCue(u.endTime,o(),""))}return n},FT=new WeakSet,mH=function(){const{source:t}=f(this,Fn).$state;t(),y(this,NT,bH).call(this)},NT=new WeakSet,bH=function(){if(!this.scope)return;const{disabled:t}=this.$props;if(t()){f(this,vn).set([]),f(this,zo).set(0),D(this,il,0);return}const n=f(this,nu).call(this);if(n){const s=f(this,d0).bind(this);s(),new Ce(n).add("add-cue",s).add("remove-cue",s),G(y(this,BT,yH).bind(this))}return D(this,Fr,y(this,qT,_H).call(this)),f(this,Fr)&&G(y(this,zT,vH).bind(this)),()=>{f(this,Fr)&&(f(this,Fr).textContent="",D(this,Fr,null))}},BT=new WeakSet,yH=function(){f(this,Fn).$state.duration(),f(this,d0).call(this)},d0=new WeakMap,zT=new WeakSet,vH=function(){const t=this.activePointerCue||this.activeCue;f(this,Fr)&&(f(this,Fr).textContent=(t==null?void 0:t.text)||"")},VT=new WeakSet,wH=function(){let t=this.el;for(;t&&t.getAttribute("role")!=="slider";)t=t.parentElement;return t},qT=new WeakSet,_H=function(){const t=y(this,VT,wH).call(this);return t?t.querySelector('[data-part="chapter-title"]'):null},O(S$,"props",{disabled:!1});const eE=S$.prototype;zt(eE,"cues");zt(eE,"activeCue");zt(eE,"activePointerCue");ei(eE,"setRefs");var Vo,HT,xH,WT,SH;class T$ extends wt{constructor(){super();b(this,HT);b(this,WT);b(this,Vo,void 0);D(this,Vo,new Hu),f(this,Vo).onValueChange=y(this,WT,SH).bind(this)}get values(){return f(this,Vo).values}get value(){return f(this,Vo).value}set value(t){f(this,Vo).value=t}onSetup(){G(y(this,HT,xH).bind(this))}}Vo=new WeakMap,HT=new WeakSet,xH=function(){f(this,Vo).value=this.$props.value()},WT=new WeakSet,SH=function(t,n){const s=this.createEvent("change",{detail:t,trigger:n});this.dispatch(s)},O(T$,"props",{value:""});const TH=T$.prototype;zt(TH,"values");zt(TH,"value");var ret=Object.defineProperty,oet=Object.getOwnPropertyDescriptor,k$=(i,e,t,n)=>{for(var s=oet(e,t),r=i.length-1,o;r>=0;r--)(o=i[r])&&(s=o(e,t,s)||s);return s&&ret(e,t,s),s},Nr,ru,qo,Ph,Br,jT,kH,UT,EH,GT,PH,h0,$2,YT,CH,KT,AH;class U0 extends wt{constructor(){super();b(this,jT);b(this,UT);b(this,GT);b(this,h0);b(this,YT);b(this,KT);b(this,Nr,void 0);b(this,ru,void 0);b(this,qo,void 0);b(this,Ph,Ot(null));b(this,Br,Ot([]));D(this,qo,new Hu),f(this,qo).onValueChange=y(this,KT,AH).bind(this)}get value(){return f(this,qo).value}get disabled(){var t;return!((t=f(this,Br).call(this))!=null&&t.length)}onSetup(){D(this,Nr,Dt()),_s(Ti)&&D(this,ru,Re(Ti));const{thumbnails:t}=this.$props;this.setAttributes({"data-thumbnails":()=>!!t()})}onAttach(t){var n;(n=f(this,ru))==null||n.attachObserver({onOpen:y(this,jT,kH).bind(this)})}getOptions(){const{seekableStart:t,seekableEnd:n}=f(this,Nr).$state,s=t(),r=n();return f(this,Br).call(this).map((o,a)=>({cue:o,value:a.toString(),label:o.text,startTime:Zk(Math.max(0,o.startTime-s)),duration:vv(Math.min(r,o.endTime)-Math.max(s,o.startTime))}))}onConnect(t){G(y(this,h0,$2).bind(this)),G(y(this,YT,CH).bind(this)),G(y(this,UT,EH).bind(this)),Kk(f(this,Nr).textTracks,"chapters",f(this,Ph).set)}}Nr=new WeakMap,ru=new WeakMap,qo=new WeakMap,Ph=new WeakMap,Br=new WeakMap,jT=new WeakSet,kH=function(){nt(()=>y(this,h0,$2).call(this))},UT=new WeakSet,EH=function(){const t=f(this,Ph).call(this);if(!t)return;const n=y(this,GT,PH).bind(this,t);return n(),new Ce(t).add("add-cue",n).add("remove-cue",n),()=>{f(this,Br).set([])}}
53,GT=new WeakSet,PH=function(t){const{seekableStart:n,seekableEnd:s}=f(this,Nr).$state,r=n(),o=s();f(this,Br).set([...t.cues].filter(a=>a.startTime<=o&&a.endTime>=r))},h0=new WeakSet,$2=function(){var u;if(!((u=f(this,ru))!=null&&u.expanded()))return;if(!f(this,Ph).call(this)){f(this,qo).value="-1";return}const{realCurrentTime:n,seekableStart:s,seekableEnd:r}=f(this,Nr).$state,o=s(),a=r(),l=n(),c=f(this,Br).call(this).findIndex(d=>NC(d,l));f(this,qo).value=c.toString(),c>=0&&ca(()=>{if(!this.connectScope)return;const d=f(this,Br).call(this)[c],h=this.el.querySelector("[aria-checked='true']"),p=Math.max(o,d.startTime),m=Math.min(a,d.endTime)-p,g=Math.max(0,l-p)/m*100;h&&Gn(h,"--progress",Si(g,3)+"%")})},YT=new WeakSet,CH=function(){var t;(t=f(this,ru))==null||t.disable(this.disabled)},KT=new WeakSet,AH=function(t,n){if(this.disabled||!n)return;const s=+t,r=f(this,Br).call(this),{clipStartTime:o}=f(this,Nr).$state;Fs(s)&&(r!=null&&r[s])&&(f(this,qo).value=s.toString(),f(this,Nr).remote.seek(r[s].startTime-o(),n),this.dispatch("change",{detail:r[s],trigger:n}))},O(U0,"props",{thumbnails:null});k$([zt],U0.prototype,"value");k$([zt],U0.prototype,"disabled");k$([ei],U0.prototype,"getOptions");const aet=[1,1.25,1.5,1.75,2,2.5,3,4];var nl,Ch,ou,XT,MH,QT,OH,JT,$H,ZT,LH,tk,IH;class E$ extends wt{constructor(){super();b(this,XT);b(this,QT);b(this,JT);b(this,ZT);b(this,tk);b(this,nl,void 0);b(this,Ch,void 0);b(this,ou,void 0);D(this,ou,new Hu),f(this,ou).onValueChange=y(this,tk,IH).bind(this)}get value(){return f(this,ou).value}get disabled(){const{gains:t}=this.$props,{canSetAudioGain:n}=f(this,nl).$state;return!n()||t().length===0}onSetup(){D(this,nl,Dt()),_s(Ti)&&D(this,Ch,Re(Ti))}onConnect(t){G(y(this,XT,MH).bind(this)),G(y(this,QT,OH).bind(this)),G(y(this,JT,$H).bind(this))}getOptions(){const{gains:t,normalLabel:n}=this.$props;return t().map(s=>({label:s===1||s===null?n:String(s*100)+"%",value:s.toString()}))}}nl=new WeakMap,Ch=new WeakMap,ou=new WeakMap,XT=new WeakSet,MH=function(){f(this,ou).value=y(this,ZT,LH).call(this)},QT=new WeakSet,OH=function(){var r;const{normalLabel:t}=this.$props,{audioGain:n}=f(this,nl).$state,s=n();(r=f(this,Ch))==null||r.hint.set(s===1||s==null?t():String(s*100)+"%")},JT=new WeakSet,$H=function(){var t;(t=f(this,Ch))==null||t.disable(this.disabled)},ZT=new WeakSet,LH=function(){var n;const{audioGain:t}=f(this,nl).$state;return((n=t())==null?void 0:n.toString())??"1"},tk=new WeakSet,IH=function(t,n){if(this.disabled)return;const s=+t;f(this,nl).remote.changeAudioGain(s,n),this.dispatch("change",{detail:s,trigger:n})},O(E$,"props",{normalLabel:"Disabled",gains:aet});const P$=E$.prototype;zt(P$,"value");zt(P$,"disabled");ei(P$,"getOptions");var ss,Ah,ek,RH,zr,f0,ik,FH,p0,L2,nk,NH,sk,BH,rk,zH;class DH extends wt{constructor(){super(...arguments);b(this,ek);b(this,ik);b(this,p0);b(this,nk);b(this,sk);b(this,rk);b(this,ss,void 0);b(this,Ah,null);b(this,zr,0);b(this,f0,-1)}onSetup(){D(this,ss,Dt());const{event:t,action:n}=this.$props;this.setAttributes({event:t,action:n})}onAttach(t){t.setAttribute("data-media-gesture",""),t.style.setProperty("pointer-events","none")}onConnect(t){var n;D(this,Ah,(n=f(this,ss).player.el)==null?void 0:n.querySelector("[data-media-provider]")),G(y(this,ek,RH).bind(this))}}ss=new WeakMap,Ah=new WeakMap,ek=new WeakSet,RH=function(){let t=this.$props.event(),n=this.$props.disabled();!f(this,Ah)||!t||n||(/^dbl/.test(t)&&(t=t.split(/^dbl/)[1]),(t==="pointerup"||t==="pointerdown")&&f(this,ss).$state.pointer()==="coarse"&&(t=t==="pointerup"?"touchend":"touchstart"),Ni(f(this,Ah),t,y(this,ik,FH).bind(this),{passive:!1}))},zr=new WeakMap,f0=new WeakMap,ik=new WeakSet,FH=function(t){if(this.$props.disabled()||VI(t)&&(t.button!==0||f(this,ss).activeMenu)||ry(t)&&f(this,ss).activeMenu||a$(t)||!y(this,nk,NH).call(this,t))return;t.MEDIA_GESTURE=!0,t.preventDefault();const n=nt(this.$props.event);if(!(n==null?void 0:n.startsWith("dbl")))f(this,zr)===0&&setTimeout(()=>{f(this,zr)===1&&y(this,p0,L2).call(this,t)},250);else if(f(this,zr)===1){queueMicrotask(()=>y(this,p0,L2).call(this,t)),clearTimeout(f(this,f0)),D(this,zr,0);return}f(this,zr)===0&&D(this,f0,window.setTimeout(()=>{D(this,zr,0)},275)),bL(this,zr)._++},p0=new WeakSet,L2=function(t){this.el.setAttribute("data-triggered",""),requestAnimationFrame(()=>{y(this,sk,BH).call(this)&&y(this,rk,zH).call(this,nt(this.$props.action),t),requestAnimationFrame(()=>{this.el.removeAttribute("data-triggered")})})},nk=new WeakSet,NH=function(t){if(!this.el)return!1;if(VI(t)||qQ(t)||ry(t)){const n=ry(t)?t.changedTouches[0]??t.touches[0]:void 0,s=(n==null?void 0:n.clientX)??t.clientX,r=(n==null?void 0:n.clientY)??t.clientY,o=this.el.getBoundingClientRect(),a=r>=o.top&&r<=o.bottom&&s>=o.left&&s<=o.right;return t.type.includes("leave")?!a:a}return!0},sk=new WeakSet,BH=function(){const t=f(this,ss).player.el.querySelectorAll("[data-media-gesture][data-triggered]");return Array.from(t).sort((n,s)=>+getComputedStyle(s).zIndex-+getComputedStyle(n).zIndex)[0]===this.el},rk=new WeakSet,zH=function(t,n){if(!t)return;const s=new Pe("will-trigger",{detail:t,cancelable:!0,trigger:n});if(this.dispatchEvent(s),s.defaultPrevented)return;const[r,o]=t.replace(/:([a-z])/,"-$1").split(":");t.includes(":fullscreen")?f(this,ss).remote.toggleFullscreen("prefer-media",n):t.includes("seek:")?f(this,ss).remote.seek(nt(f(this,ss).$state.currentTime)+(+o||0),n):f(this,ss).remote[JQ(r)](n),this.dispatch("trigger",{detail:t,trigger:n})},O(DH,"props",{disabled:!1,event:void 0,action:void 0});var Mh,Ho,Wo,g0,I2;class cet{constructor(e){b(this,g0);O(this,"priority",10);b(this,Mh,null);b(this,Ho,void 0);b(this,Wo,void 0);D(this,Ho,e)}attach(){}canRender(){return!0}detach(){var e;(e=f(this,Wo))==null||e.abort(),D(this,Wo,void 0),f(this,Ho).reset(),D(this,Mh,null)}changeTrack(e){var t;!e||f(this,Mh)===e||((t=f(this,Wo))==null||t.abort(),D(this,Wo,new Ce(e)),e.readyState<2?(f(this,Ho).reset(),f(this,Wo).add("load",()=>y(this,g0,I2).call(this,e),{once:!0})):y(this,g0,I2).call(this,e),f(this,Wo).add("add-cue",n=>{f(this,Ho).addCue(n.detail)}).add("remove-cue",n=>{f(this,Ho).removeCue(n.detail)}),D(this,Mh,e))}}Mh=new WeakMap,Ho=new WeakMap,Wo=new WeakMap,g0=new WeakSet,I2=function(e){f(this,Ho).changeTrack({cues:[...e.cues],regions:[...e.regions]})};var Nn,Oh,ky,ok,VH,ak,qH,lk,HH,m0,R2,ck,WH,uk,jH,dk,UH,hk,GH,b0,F2,fk,YH,pk,KH,jo,y0,N2,$h,Ey,v0,B2,w0,z2;const xr=class xr extends wt{constructor(){super(...arguments);b(this,Oh);b(this,ok);b(this,ak);b(this,lk);b(this,m0);b(this,ck);b(this,uk);b(this,dk);b(this,hk);b(this,b0);b(this,fk);b(this,pk);b(this,y0);b(this,$h);b(this,v0);b(this,w0);b(this,Nn,void 0);b(this,jo,-1)}onSetup(){D(this,Nn,Dt()),this.setAttributes({"aria-hidden":Yi(y(this,Oh,ky).bind(this))})}onAttach(t){t.style.setProperty("pointer-events","none")}onConnect(t){xr.lib()||Yn(()=>import("./prod-e867b763.js").then(n=>n.d),[],import.meta.url).then(n=>xr.lib.set(n)),G(y(this,ok,VH).bind(this))}};Nn=new WeakMap,Oh=new WeakSet,ky=function(){const{textTrack:t,remotePlaybackState:n,iOSControl
53s:s}=f(this,Nn).$state,r=t();return s()||n()==="connected"||!r||!nn(r)},ok=new WeakSet,VH=function(){if(!xr.lib())return;const{viewType:t}=f(this,Nn).$state;return t()==="audio"?y(this,ak,qH).call(this):y(this,uk,jH).call(this)},ak=new WeakSet,qH=function(){return G(y(this,lk,HH).bind(this)),y(this,b0,F2).call(this,null),()=>{this.el.textContent=""}},lk=new WeakSet,HH=function(){if(y(this,Oh,ky).call(this))return;y(this,m0,R2).call(this);const{textTrack:t}=f(this,Nn).$state;Ni(t(),"cue-change",y(this,m0,R2).bind(this)),G(y(this,ck,WH).bind(this))},m0=new WeakSet,R2=function(){this.el.textContent="",f(this,jo)>=0&&y(this,$h,Ey).call(this);const{realCurrentTime:t,textTrack:n}=f(this,Nn).$state,{renderVTTCueString:s}=xr.lib(),r=nt(t),o=nt(n).activeCues;for(const a of o){const l=y(this,v0,B2).call(this),c=y(this,w0,z2).call(this);c.innerHTML=s(a,r),l.append(c),this.el.append(c)}},ck=new WeakSet,WH=function(){const{realCurrentTime:t}=f(this,Nn).$state,{updateTimedVTTCueNodes:n}=xr.lib();n(this.el,t())},uk=new WeakSet,jH=function(){const{CaptionsRenderer:t}=xr.lib(),n=new t(this.el),s=new cet(n);return f(this,Nn).textRenderers.add(s),G(y(this,dk,UH).bind(this,n)),G(y(this,hk,GH).bind(this,n)),y(this,b0,F2).call(this,n),()=>{this.el.textContent="",f(this,Nn).textRenderers.remove(s),n.destroy()}},dk=new WeakSet,UH=function(t){t.dir=this.$props.textDir()},hk=new WeakSet,GH=function(t){var r;if(y(this,Oh,ky).call(this))return;const{realCurrentTime:n,textTrack:s}=f(this,Nn).$state;t.currentTime=n(),f(this,jo)>=0&&((r=s())!=null&&r.activeCues[0])&&y(this,$h,Ey).call(this)},b0=new WeakSet,F2=function(t){const n=f(this,Nn).player;if(!n)return;const s=y(this,fk,YH).bind(this,t);Ni(n,"vds-font-change",s)},fk=new WeakSet,YH=function(t){var s;if(f(this,jo)>=0){y(this,y0,N2).call(this);return}const{textTrack:n}=f(this,Nn).$state;(s=n())!=null&&s.activeCues[0]?t==null||t.update(!0):y(this,pk,KH).call(this)},pk=new WeakSet,KH=function(){var s,r;const t=y(this,v0,B2).call(this);ft(t,"data-example","");const n=y(this,w0,z2).call(this);ft(n,"data-example",""),n.textContent=this.$props.exampleText(),t==null||t.append(n),(s=this.el)==null||s.append(t),(r=this.el)==null||r.setAttribute("data-example",""),y(this,y0,N2).call(this)},jo=new WeakMap,y0=new WeakSet,N2=function(){window.clearTimeout(f(this,jo)),D(this,jo,window.setTimeout(y(this,$h,Ey).bind(this),2500))},$h=new WeakSet,Ey=function(){var t,n;(t=this.el)==null||t.removeAttribute("data-example"),(n=this.el)!=null&&n.querySelector("[data-example]")&&(this.el.textContent=""),D(this,jo,-1)},v0=new WeakSet,B2=function(){const t=document.createElement("div");return ft(t,"data-part","cue-display"),t},w0=new WeakSet,z2=function(){const t=document.createElement("div");return ft(t,"data-part","cue"),t},O(xr,"props",{textDir:"ltr",exampleText:"Captions look like this."}),O(xr,"lib",Ot(null));let D2=xr;/** 54 * @license 55 * Copyright 2017 Google LLC 56 * SPDX-License-Identifier: BSD-3-Clause 57 */var cP;const xv=window,Kh=xv.trustedTypes,hD=Kh?Kh.createPolicy("lit-html",{createHTML:i=>i}):void 0,V2="$lit$",Ta=`lit$${(Math.random()+"").slice(9)}$`,XH="?"+Ta,uet=`<${XH}>`,Lu=document,zp=()=>Lu.createComment(""),Vp=i=>i===null||typeof i!="object"&&typeof i!="function",QH=Array.isArray,det=i=>QH(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",uP=`[ 58\f\r]`,kf=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fD=/-->/g,pD=/>/g,Ul=RegExp(`>|${uP}(?:([^\\s"'>=/]+)(${uP}*=${uP}*(?:[^ 59\f\r"'\`<>=]|("|')|))|$)`,"g"),gD=/'/g,mD=/"/g,JH=/^(?:script|style|textarea|title)$/i,het=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),fet=het(1),qp=Symbol.for("lit-noChange"),Di=Symbol.for("lit-nothing"),bD=new WeakMap,gc=Lu.createTreeWalker(Lu,129,null,!1);function ZH(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return hD!==void 0?hD.createHTML(e):e}const pet=(i,e)=>{const t=i.length-1,n=[];let s,r=e===2?"<svg>":"",o=kf;for(let a=0;a<t;a++){const l=i[a];let c,u,d=-1,h=0;for(;h<l.length&&(o.lastIndex=h,u=o.exec(l),u!==null);)h=o.lastIndex,o===kf?u[1]==="!--"?o=fD:u[1]!==void 0?o=pD:u[2]!==void 0?(JH.test(u[2])&&(s=RegExp("</"+u[2],"g")),o=Ul):u[3]!==void 0&&(o=Ul):o===Ul?u[0]===">"?(o=s??kf,d=-1):u[1]===void 0?d=-2:(d=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?Ul:u[3]==='"'?mD:gD):o===mD||o===gD?o=Ul:o===fD||o===pD?o=kf:(o=Ul,s=void 0);const p=o===Ul&&i[a+1].startsWith("/>")?" ":"";r+=o===kf?l+uet:d>=0?(n.push(c),l.slice(0,d)+V2+l.slice(d)+Ta+p):l+Ta+(d===-2?(n.push(void 0),a):p)}return[ZH(i,r+(i[t]||"<?>")+(e===2?"</svg>":"")),n]};class Hp{constructor({strings:e,_$litType$:t},n){let s;this.parts=[];let r=0,o=0;
vendor: 7,153 bytes, line 59
59const a=e.length-1,l=this.parts,[c,u]=pet(e,t);if(this.el=Hp.createElement(c,n),gc.currentNode=this.el.content,t===2){const d=this.el.content,h=d.firstChild;h.remove(),d.append(...h.childNodes)}for(;(s=gc.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes()){const d=[];for(const h of s.getAttributeNames())if(h.endsWith(V2)||h.startsWith(Ta)){const p=u[o++];if(d.push(h),p!==void 0){const m=s.getAttribute(p.toLowerCase()+V2).split(Ta),g=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:g[2],strings:m,ctor:g[1]==="."?met:g[1]==="?"?yet:g[1]==="@"?vet:iE})}else l.push({type:6,index:r})}for(const h of d)s.removeAttribute(h)}if(JH.test(s.tagName)){const d=s.textContent.split(Ta),h=d.length-1;if(h>0){s.textContent=Kh?Kh.emptyScript:"";for(let p=0;p<h;p++)s.append(d[p],zp()),gc.nextNode(),l.push({type:2,index:++r});s.append(d[h],zp())}}}else if(s.nodeType===8)if(s.data===XH)l.push({type:2,index:r});else{let d=-1;for(;(d=s.data.indexOf(Ta,d+1))!==-1;)l.push({type:7,index:r}),d+=Ta.length-1}r++}}static createElement(e,t){const n=Lu.createElement("template");return n.innerHTML=e,n}}function Xh(i,e,t=i,n){var s,r,o,a;if(e===qp)return e;let l=n!==void 0?(s=t._$Co)===null||s===void 0?void 0:s[n]:t._$Cl;const c=Vp(e)?void 0:e._$litDirective$;return(l==null?void 0:l.constructor)!==c&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),c===void 0?l=void 0:(l=new c(i),l._$AT(i,t,n)),n!==void 0?((o=(a=t)._$Co)!==null&&o!==void 0?o:a._$Co=[])[n]=l:t._$Cl=l),l!==void 0&&(e=Xh(i,l._$AS(i,e.values),l,n)),e}class get{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:n},parts:s}=this._$AD,r=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:Lu).importNode(n,!0);gc.currentNode=r;let o=gc.nextNode(),a=0,l=0,c=s[0];for(;c!==void 0;){if(a===c.index){let u;c.type===2?u=new G0(o,o.nextSibling,this,e):c.type===1?u=new c.ctor(o,c.name,c.strings,this,e):c.type===6&&(u=new wet(o,this,e)),this._$AV.push(u),c=s[++l]}a!==(c==null?void 0:c.index)&&(o=gc.nextNode(),a++)}return gc.currentNode=Lu,r}v(e){let t=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class G0{constructor(e,t,n,s){var r;this.type=2,this._$AH=Di,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=s,this._$Cp=(r=s==null?void 0:s.isConnected)===null||r===void 0||r}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Xh(this,e,t),Vp(e)?e===Di||e==null||e===""?(this._$AH!==Di&&this._$AR(),this._$AH=Di):e!==this._$AH&&e!==qp&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):det(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Di&&Vp(this._$AH)?this._$AA.nextSibling.data=e:this.$(Lu.createTextNode(e)),this._$AH=e}g(e){var t;const{values:n,_$litType$:s}=e,r=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=Hp.createElement(ZH(s.h,s.h[0]),this.options)),s);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===r)this._$AH.v(n);else{const o=new get(r,this),a=o.u(this.options);o.v(n),this.$(a),this._$AH=o}}_$AC(e){let t=bD.get(e.strings);return t===void 0&&bD.set(e.strings,t=new Hp(e)),t}T(e){QH(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,s=0;for(const r of e)s===t.length?t.push(n=new G0(this.k(zp()),this.k(zp()),this,this.options)):n=t[s],n._$AI(r),s++;s<t.length&&(this._$AR(n&&n._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var n;for((n=this._$AP)===null||n===void 0||n.call(this,!1,!0,t);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class iE{constructor(e,t,n,s,r){this.type=1,this._$AH=Di,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=r,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Di}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,s){const r=this.strings;let o=!1;if(r===void 0)e=Xh(this,e,t,0),o=!Vp(e)||e!==this._$AH&&e!==qp,o&&(this._$AH=e);else{const a=e;let l,c;for(e=r[0],l=0;l<r.length-1;l++)c=Xh(this,a[n+l],t,l),c===qp&&(c=this._$AH[l]),o||(o=!Vp(c)||c!==this._$AH[l]),c===Di?e=Di:e!==Di&&(e+=(c??"")+r[l+1]),this._$AH[l]=c}o&&!s&&this.j(e)}j(e){e===Di?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class met extends iE{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Di?void 0:e}}const bet=Kh?Kh.emptyScript:"";class yet extends iE{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Di?this.element.setAttribute(this.name,bet):this.element.removeAttribute(this.name)}}class vet extends iE{constructor(e,t,n,s,r){super(e,t,n,s,r),this.type=5}_$AI(e,t=this){var n;if((e=(n=Xh(this,e,t,0))!==null&&n!==void 0?n:Di)===qp)return;const s=this._$AH,r=e===Di&&s!==Di||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,o=e!==Di&&(s===Di||r);r&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;typeof this._$AH=="function"?this._$AH.call((n=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&n!==void 0?n:this.element,e):this._$AH.handleEvent(e)}}class wet{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Xh(this,e)}}const yD=xv.litHtmlPolyfillSupport;yD==null||yD(Hp,G0),((cP=xv.litHtmlVersions)!==null&&cP!==void 0?cP:xv.litHtmlVersions=[]).push("2.8.0");const vD=(i,e,t)=>{var n,s;const r=(n=t==null?void 0:t.renderBefore)!==null&&n!==void 0?n:e;let o=r._$litPart$;if(o===void 0){const a=(s=t==null?void 0:t.renderBefore)!==null&&s!==void 0?s:null;r._$litPart$=o=new G0(e.insertBefore(zp(),a),a,void 0,t??{})}return o._$AI(i),o};class _et extends HTMLElement{constructor(){super(...arguments);O(this,"rootPart",null)}connectedCallback(){this.rootPart=vD(this.render(),this,{renderBefore:this.firstChild}),this.rootPart.setConnected(!0)}disconnectedCallback(){var t;(t=this.rootPart)==null||t.setConnected(!1),this.rootPart=null,vD(null,this)}}const xet=iB('<img loading="eager" decoding="async" aria-hidden="true">');var gk,sl,mk,t8;class Sv extends _t(HTMLElement,XA){constructor(){super(...arguments);b(this,mk);b(this,gk,void 0);b(this,sl,y(this,mk,t8).call(this))}onSetup(){D(this,gk,Dt()),this.$state.img.set(f(this,sl))}onConnect(){const{src:t,crossOrigin:n}=this.$state;f(this,sl).parentNode!==this&&this.prepend(f(this,sl)),G(()=>{ft(f(this,sl),"src",t()),ft(f(this,sl),"crossorigin",n())})}}gk=new WeakMap,sl=new WeakMap,mk=new WeakSet,t8=function(){return nB(xet)}
59,O(Sv,"tagName","media-thumbnail"),O(Sv,"attrs",{crossOrigin:"crossorigin"});class e8 extends _t(HTMLElement,p2){onConnect(){G(()=>{this.textContent=this.$state.timeText()})}}O(e8,"tagName","media-time");class i8 extends _t(HTMLElement,fz){}O(i8,"tagName","media-airplay-button");class n8 extends _t(HTMLElement,wz){}O(n8,"tagName","media-caption-button");class s8 extends _t(HTMLElement,xz){}O(s8,"tagName","media-fullscreen-button");class r8 extends _t(HTMLElement,Dz){}O(r8,"tagName","media-live-button");class o8 extends _t(HTMLElement,kz){}O(o8,"tagName","media-mute-button");class a8 extends _t(HTMLElement,Cz){}O(a8,"tagName","media-pip-button");class l8 extends _t(HTMLElement,yz){}O(l8,"tagName","media-play-button");class c8 extends _t(HTMLElement,Oz){}O(c8,"tagName","media-seek-button");function uf(i,e){ca(()=>{if(!i.connectScope)return;const t=i.querySelector("template");t&&G(()=>{const n=i.getOptions();l$(t,n.length,(s,r)=>{const{label:o,value:a}=n[r],l=s.querySelector('[data-part="label"]');s.setAttribute("value",a),l&&(Mt(o)?l.textContent=o:G(()=>{l.textContent=o()})),e==null||e(s,n[r],r)})})})}class u8 extends _t(HTMLElement,p$){onConnect(){uf(this)}}O(u8,"tagName","media-audio-radio-group");class d8 extends _t(HTMLElement,m$){onConnect(){uf(this)}}O(d8,"tagName","media-captions-radio-group");class h8 extends _t(HTMLElement,qu){}O(h8,"tagName","media-menu");class f8 extends _t(HTMLElement,tE){}O(f8,"tagName","media-menu-button");class p8 extends _t(HTMLElement,Xtt){}O(p8,"tagName","media-menu-item");class g8 extends _t(HTMLElement,SV){}O(g8,"tagName","media-menu-items");class m8 extends _t(HTMLElement,y$){onConnect(){uf(this)}}O(m8,"tagName","media-speed-radio-group");class b8 extends _t(HTMLElement,w$){onConnect(){uf(this,(e,t)=>{const n=t.bitrate,s=e.querySelector('[data-part="bitrate"]');n&&s&&G(()=>{s.textContent=n()||""})})}}O(b8,"tagName","media-quality-radio-group");class y8 extends _t(HTMLElement,f$){}O(y8,"tagName","media-radio");var _0,x0,bk,w8;class v8 extends Sv{constructor(){super(...arguments);b(this,bk);b(this,_0,void 0);b(this,x0,void 0)}onSetup(){super.onSetup(),D(this,_0,Dt()),D(this,x0,af($u.state))}onConnect(){super.onConnect(),G(y(this,bk,w8).bind(this))}}_0=new WeakMap,x0=new WeakMap,bk=new WeakSet,w8=function(){const{duration:t,clipStartTime:n}=f(this,_0).$state;this.time=n()+f(this,x0).pointerRate()*t()},O(v8,"tagName","media-slider-thumbnail");class q2 extends _t(HTMLElement,h$){onConnect(){G(()=>{this.textContent=this.getValueText()})}}O(q2,"tagName","media-slider-value"),O(q2,"attrs",{padMinutes:{converter:O3}});class _8 extends _t(HTMLElement,wv){}O(_8,"tagName","media-time-slider");class x8 extends _t(HTMLElement,x4){}O(x8,"tagName","media-slider-preview");class S8 extends _t(HTMLElement,t2){}O(S8,"tagName","media-volume-slider");class T8 extends _t(HTMLElement,D2){}O(T8,"tagName","media-captions");class k8 extends _t(HTMLElement,DH){}O(k8,"tagName","media-gesture");class E8 extends _t(HTMLElement,b2){}O(E8,"tagName","media-announcer");class P8 extends _t(HTMLElement,pq){}O(P8,"tagName","media-controls");class C8 extends _t(HTMLElement,Ztt){}O(C8,"tagName","media-controls-group");let Tet=class extends wt{};var S0,yk,M8;class A8 extends _t(HTMLElement,Tet){constructor(){super(...arguments);b(this,yk);b(this,S0,void 0)}onSetup(){D(this,S0,Dt())}onConnect(){G(y(this,yk,M8).bind(this))}}S0=new WeakMap,yk=new WeakSet,M8=function(){const{title:t}=f(this,S0).$state;this.textContent=t()},O(A8,"tagName","media-title");class O8 extends wt{}O(O8,"props",{defaultText:""});var T0,Lh,vk,L8;class $8 extends _t(HTMLElement,O8){constructor(){super(...arguments);b(this,vk);b(this,T0,void 0);b(this,Lh,void 0)}onSetup(){D(this,T0,Dt()),D(this,Lh,Ot(""))}onConnect(){const t=f(this,T0).textTracks;zJ(t,"chapters",f(this,Lh).set),G(y(this,vk,L8).bind(this))}}T0=new WeakMap,Lh=new WeakMap,vk=new WeakSet,L8=function(){const{defaultText:t}=this.$props;this.textContent=f(this,Lh).call(this)||t()},O($8,"tagName","media-chapter-title");var wk,D8;class I8 extends wt{constructor(){super(...arguments);b(this,wk)}onConnect(t){ca(()=>
59{if(!this.connectScope)return;const n=t.querySelector("svg"),s=n.firstElementChild,r=s.nextElementSibling;G(y(this,wk,D8).bind(this,n,s,r))})}}wk=new WeakSet,D8=function(t,n,s){const{size:r,trackWidth:o,fillPercent:a}=this.$props;ft(t,"width",r()),ft(t,"height",r()),ft(n,"stroke-width",o()),ft(s,"stroke-width",o()),ft(s,"stroke-dashoffset",100-a())},O(I8,"props",{size:96,trackWidth:8,fillPercent:50});class R8 extends _t(_et,I8){render(){return fet` 60 <svg fill="none" viewBox="0 0 120 120" aria-hidden="true" data-part="root"> 61 <circle cx="60" cy="60" r="54" stroke="currentColor" data-part="track"></circle> 62 <circle 63 cx="60" 64 cy="60" 65 r="54" 66 stroke="currentColor" 67 pathLength="100" 68 stroke-dasharray="100" 69 data-part="track-fill" 70 ></circle> 71 </svg> 72 `}}O(R8,"tagName","media-spinner");class F8 extends wt{}O(F8,"props",{when:!1});var k0,_k,B8;class N8 extends _t(HTMLElement,F8){constructor(){super(...arguments);b(this,_k);b(this,k0,void 0)}onSetup(){D(this,k0,Dt())}onConnect(){G(y(this,_k,B8).bind(this))}}k0=new WeakMap,_k=new WeakSet,B8=function(){const t=this.firstElementChild,n=(t==null?void 0:t.localName)==="template",s=this.$props.when();if(!(FQ(s)?s:hr(()=>s(f(this,k0).player.state))())){n?(this.textContent="",this.appendChild(t)):Ou(t)&&(t.style.display="none");return}n?this.append(t.content.cloneNode(!0)):Ou(t)&&(t.style.display="")},O(N8,"tagName","media-layout");class z8 extends _t(HTMLElement,Eq){}O(z8,"tagName","media-google-cast-button");class V8 extends _t(HTMLElement,x$){}O(V8,"tagName","media-toggle-button");class q8 extends _t(HTMLElement,eet){}O(q8,"tagName","media-tooltip");class H8 extends _t(HTMLElement,iet){onConnect(){this.style.display="contents"}}O(H8,"tagName","media-tooltip-trigger");class W8 extends _t(HTMLElement,Sq){}O(W8,"tagName","media-tooltip-content");class H2 extends _t(HTMLElement,vV){}O(H2,"tagName","media-menu-portal"),O(H2,"attrs",{disabled:{converter(e){return Mt(e)?e:e!==null}}});class j8 extends _t(HTMLElement,U0){onConnect(){uf(this,(e,t)=>{const{cue:n,startTime:s,duration:r}=t,o=e.querySelector(".vds-thumbnail,media-thumbnail"),a=e.querySelector('[data-part="start-time"]'),l=e.querySelector('[data-part="duration"]');a&&(a.textContent=s),l&&(l.textContent=r),o&&(o.setAttribute("time",n.startTime+""),G(()=>{const c=this.$props.thumbnails();"src"in o?o.src=c:Mt(c)&&o.setAttribute("src",c)}))})}}O(j8,"tagName","media-chapters-radio-group");class U8 extends _t(HTMLElement,E$){onConnect(){uf(this)}}O(U8,"tagName","media-audio-gain-radio-group");class G8 extends _t(HTMLElement,T$){}O(G8,"tagName","media-radio-group");class Y8 extends _t(HTMLElement,$u){}O(Y8,"tagName","media-slider");const ket=iB('<video muted playsinline preload="none" style="max-width: unset;"></video>');var E0,Uo,xk,X8;class K8 extends _t(HTMLElement,_v){constructor(){super(...arguments);b(this,xk);b(this,E0,void 0);b(this,Uo,y(this,xk,X8).call(this))}onSetup(){D(this,E0,Dt()),this.$state.video.set(f(this,Uo))}onConnect(){const{canLoad:t}=f(this,E0).$state,{src:n,crossOrigin:s}=this.$state;f(this,Uo).parentNode!==this&&this.prepend(f(this,Uo)),G(()=>{ft(f(this,Uo),"crossorigin",s()),ft(f(this,Uo),"preload",t()?"auto":"none"),ft(f(this,Uo),"src",n())})}}E0=new WeakMap,Uo=new WeakMap,xk=new WeakSet,X8=function(){return nB(ket)},O(K8,"tagName","media-slider-video");class Q8 extends _t(HTMLElement,T2){}O(Q8,"tagName","media-audio-gain-slider");class J8 extends _t(HTMLElement,E2){}O(J8,"tagName","media-speed-slider");class Z8 extends _t(HTMLElement,P2){}O(Z8,"tagName","media-quality-slider");var Ih,Sk,eW;class tW extends _t(HTMLElement,S$){constructor(){super(...arguments);b(this,Sk);b(this,Ih,null)}onConnect(){ca(()=>{if(!this.connectScope)return;const t=this.querySelector("template");t&&(D(this,Ih,t),G(y(this,Sk,eW).bind(this)))})}}Ih=new WeakMap,Sk=new WeakSet,eW=function(){if(!f(this,Ih))return;const t=l$(f(this,Ih),this.cues.length||1);this.setRefs(t)},O(tW,"tagName","media-slider-chapters");class Eet extends wt{}var au,Tk,nW;class iW extends _t(HTMLElement,Eet){constructor(){super(...arguments);b(this,Tk);b(this,au,null)}onConnect(t){ca(()=>{this.connectScope&&(D(this,au,t.querySelector("template")),f(this,au)&&G(y(this,Tk,nW).bind(this)))})}}au=new WeakMap,Tk=new WeakSet,nW=function(){if(!f(this,au))return;const{min:t,max:n,step:s}=af(Vu),r=(n()-t())/s();l$(f(this,au),Math.floor(r)+1)},O(iW,"tagName","media-slider-steps");var Ls,P0,j2,kk,sW,C0,U2,Ek,rW,Pk,oW,A0,M0,G2,O0,Y2,$0,K2,Ck,aW,L0,X2,Ak,lW;class W2 extends wt{constructor(){super(...arguments);b(this,P0);b(this,kk);b(this,C0);b(this,Ek);b(this,Pk);b(this,M0);b(this,O0);b(this,$0);b(this,Ck);b(this,L0);b(this,Ak);b(this,Ls,void 0);b(this,A0,"")}onSetup(){D(this,Ls,Dt()),y(this,M0,G2).call(this),y(this,O0,Y2).call(this),y(this,$0,K2).call(this),y(this,C0,U2).call(this)}onAttach(t){t.style.setProperty("pointer-events","none"),G(y(this,Pk,oW).bind(this)),G(y(this,M0,G2).bind(this)),G(y(this,O0,Y2).bind(this)),G(y(this,$0,K2).bind(this)),G(y(this,C0,U2).bind(this));const{started:n}=f(this,Ls).$state;this.setAttributes({"data-visible":()=>!n()&&!this.$state.hidden(),"data-loading":y(this,Ek,rW).bind(this),"data-error":y(this,P0,j2).bind(this),"data-hidden":this.$state.hidden})}onConnect(t){G(y(this,kk,sW).bind(this)),G(y(this,Ck,aW).bind(this))}}Ls=new WeakMap,P0=new WeakSet,j2=function(){const{error:t}=this.$state;return!Kr(t())},kk=new WeakSet,sW=function(){const{canLoadPoster:t,poster:n}=f(this,Ls).$state;!t()&&n()&&H0(n(),"preconnect")},C0=new WeakSet,U2=function(){const{src:t}=this.$props,{poster:n,nativeControls:s}=f(this,Ls).$state;this.el&&ft(this.el,"display",s()?"none":null),this.$state.hidden.set(y(this,P0,j2).call(this)||!(t()||n())||s())},Ek=new WeakSet,rW=function(){const{loading:t,hidden:n}=this.$state;return!n()&&t()},Pk=new WeakSet,oW=function(){const t=this.$state.img();t&&(new Ce(t).add("load",y(this,L0,X2).bind(this)).add("error",y(this,Ak,lW).bind(this)),t.complete&&y(this,L0,X2).call(this))},A0=new WeakMap,M0=new WeakSet,G2=function(){const{poster:t}=f(this,Ls).$props,{canLoadPoster:n,providedPoster:s,inferredPoster:r}=f(this,Ls).$state,o=this.$props.src()||"",a=o||t()||r();f(this,A0)===s()&&s.set(o),this.$state.src.set(n()&&a.length?a:null),D(this,A0,o)},O0=new WeakSet,Y2=function(){const{src:t}=this.$props,{alt:n}=this.$state,{poster:s}=f(this,Ls).$state;n.set(t()||s()?this.$props.alt():null)},$0=new WeakSet,K2=function(){const{crossOrigin:t}=this.$props,{crossOrigin:n}=this.$state,{crossOrigin:s,poster:r}=f(this,Ls).$state,o=t()!==null?t():s();n.set(/ytimg\.com|vimeo/.test(r()||"")?null:o===!0?"anonymous":o)},Ck=new WeakSet,aW=function(){const{loading:t,error:n}
72=this.$state,{canLoadPoster:s,poster:r}=f(this,Ls).$state;t.set(s()&&!!r()),n.set(null)},L0=new WeakSet,X2=function(){const{loading:t,error:n}=this.$state;t.set(!1),n.set(null)},Ak=new WeakSet,lW=function(t){const{loading:n,error:s}=this.$state;n.set(!1),s.set(t)},O(W2,"props",{src:null,alt:null,crossOrigin:null}),O(W2,"state",new $l({img:null,src:null,alt:null,crossOrigin:null,loading:!0,error:null,hidden:!1}));var Vr;class Q2 extends _t(HTMLElement,W2){constructor(){super(...arguments);b(this,Vr,document.createElement("img"))}onSetup(){this.$state.img.set(f(this,Vr))}onConnect(){const{src:t,alt:n,crossOrigin:s}=this.$state;G(()=>{const{loading:r,hidden:o}=this.$state;f(this,Vr).style.display=r()||o()?"none":""}),G(()=>{ft(f(this,Vr),"alt",n()),ft(f(this,Vr),"crossorigin",s()),ft(f(this,Vr),"src",t())}),f(this,Vr).parentNode!==this&&this.prepend(f(this,Vr))}}Vr=new WeakMap,O(Q2,"tagName","media-poster"),O(Q2,"attrs",{crossOrigin:"crossorigin"});yt(N8);yt(P8);yt(C8);yt(Q2);yt(E8);yt(q8);yt(H8);yt(W8);yt(l8);yt(o8);yt(n8);yt(s8);yt(a8);yt(c8);yt(i8);yt(z8);yt(V8);yt(Y8);yt(Q8);yt(S8);yt(_8);yt(J8);yt(Z8);yt(tW);yt(iW);yt(x8);yt(q2);yt(v8);yt(K8);yt(h8);yt(f8);yt(H2);yt(g8);yt(p8);yt(u8);yt(d8);yt(m8);yt(U8);yt(b8);yt(j8);yt(G8);yt(y8);yt(k8);yt(Sv);yt(T8);yt(r8);yt(e8);yt(A8);yt($8);yt(R8);const Pet=()=>({player:null,isOpen:!1,init(){this.player=this.$el.querySelector("media-player")},toggleOpen(){this.isOpen=!this.isOpen,this.isOpen&&this.player.play(),this.isOpen||this.player.pause()}}),Cet=()=>({active:null});/*! js-cookie v3.0.5 | MIT */function Eb(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)i[n]=t[n]}return i}var Aet={read:function(i){return i[0]==='"'&&(i=i.slice(1,-1)),i.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(i){return encodeURIComponent(i).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function J2(i,e){function t(s,r,o){if(!(typeof document>"u")){o=Eb({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in o)o[l]&&(a+="; "+l,o[l]!==!0&&(a+="="+o[l].split(";")[0]));return document.cookie=s+"="+i.write(r,s)+a}}function n(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var r=document.cookie?document.cookie.split("; "):[],o={},a=0;a<r.length;a++){var l=r[a].split("="),c=l.slice(1).join("=");try{var u=decodeURIComponent(l[0]);if(o[u]=i.read(c,u),s===u)break}catch{}}return s?o[s]:o}}return Object.create({set:t,get:n,remove:function(s,r){t(s,"",Eb({},r,{expires:-1}))},withAttributes:function(s){return J2(this.converter,Eb({},this.attributes,s))},withConverter:function(s){return J2(Eb({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(i)}})}var oo=J2(Aet,{path:"/"});const Met={cookies:null,barOpened:!1,panelOpened:!1,ccGiven:!1,init(){this.barOpened=!this.getConsent(),this.setButtonsEventListeners(),window.H.on("NAVIGATE_IN",({to:i})=>{this.setButtonsEventListeners()})},initCookies(i){this.cookies=JSON.parse(i),this.cookies.forEach(e=>{e.required?e.enabled=!0:this.getCookie(e)&&(e.enabled=!0,this.dispatchEvent(e))})},giveConsent(){this.ccGiven||(oo.set("cc-given",1,{expires:365}),this.ccGiven=!0,this.closeBar())},getConsent(){return oo.get("cc-given")},consentTo(i){const e=this.cookies.filter(t=>t.name===i)[0];return e===void 0?!1:e.enabled},openBar(){this.barOpened=!0},closeBar(){this.barOpened=!1},toggleBar(){this.barOpened?this.closeBar():this.openBar()},openPanel(){this.panelOpened=!0},closePanel(){this.panelOpened=!1},togglePanel(){this.panelOpened?this.closePanel():this.openPanel()},getCookie(i){return oo.get("cc-"+i.name)},acceptCookie(i){i.required||this.getCookie(i)||(oo.set("cc-"+i.name,1,{expires:365}),this.cookies.filter(e=>e.name===i.name)[0].enabled=!0,this.giveConsent(),this.dispatchEvent(i))},acceptAllCookies(){this.cookies.forEach(i=>{this.acceptCookie(i)}),this.giveConsent(),this.closePanel()},rejectCookie(i){i.required||!this.getCookie(i)||(oo.remove("cc-"+i.name),this.cookies.filter(e=>e.name===i.name)[0].enabled=!1,this.giveConsent(),this.dispatchEvent(i))}
72,rejectAllCookies(){this.cookies.forEach(i=>{this.rejectCookie(i)}),this.giveConsent(),this.closePanel()},savePreferences(){this.giveConsent(),this.closePanel()},removeCookiesStartWith(i){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var n=e[t],s=n.indexOf("="),r=(s>-1?n.substr(0,s):n).trim();i.forEach(function(o){r.indexOf(o)==0&&(oo.remove(r,{path:"/",domain:document.domain,secure:!1}),oo.remove(r,{path:"",domain:document.domain,secure:!1}),oo.remove(r,{path:"/",domain:document.domain.replace("www.","."),secure:!1}),oo.remove(r,{path:"",domain:document.domain.replace("www.","."),secure:!1}))})}},dispatchEvent(i){document.dispatchEvent(new CustomEvent("cc",{detail:i}))},toggleCookie(i){this.getCookie(i)?this.rejectCookie(i):this.acceptCookie(i)},setButtonsEventListeners(){document.querySelectorAll(".cookie-consent-accept").forEach(s=>{s.addEventListener("click",()=>{this.acceptAllCookies()})}),document.querySelectorAll(".cookie-consent-reject").forEach(s=>{s.addEventListener("click",()=>{this.rejectAllCookies()})}),document.querySelectorAll(".cookie-consent-open").forEach(s=>{s.addEventListener("click",()=>{this.openPanel()})}),document.querySelectorAll(".cookie-consent-cookie").forEach(s=>{s.addEventListener("click",()=>{const r=s.getAttribute("data-cookie"),o=this.cookies.filter(a=>a.name===r)[0];this.toggleCookie(o)})})}},Oet=()=>({isOpen:!1,key:"",data:[],locale:null,init(){},open(){this.isOpen=!0},close(){this.isOpen=!1},toggle(){this.isOpen?this.close():this.open()},search(){const i=document.querySelector("html").getAttribute("lang");this.locale=i,fetch(`/${this.locale}/api/search?key=${this.key}`).then(e=>e.json()).then(e=>{this.data=this.key.length?e:[]})}}),$et={header:null,menuIsOpen:!1,menuIsHidden:!1,searchIsOpen:!1,searchKey:"",searchData:[],searchLoading:!1,panels:null,activePanel:null,locale:null,setup(){this.header=this.$el,this.panels=this.header.querySelectorAll("[data-header-panel]"),this.setHeaderHeight(),window.addEventListener("resize",()=>{this.setHeaderHeight()}),window.lenis.on("scroll",i=>{const e=i.direction===1&&i.scroll>200;this.menuIsHidden!==e&&(this.menuIsHidden=e)})},setHeaderHeight(){const i=this.header.getBoundingClientRect(),e=this.header.querySelector(".header-inner").getBoundingClientRect();document.documentElement.style.setProperty("--header-height",`${Math.round(i.height)}px`),document.documentElement.style.setProperty("--header-inner-height",`${Math.round(e.height)}px`)},toggleMenu(){this.menuIsOpen?this.closeMenu():this.openMenu()},openMenu(){this.menuIsOpen=!0,window.lenis.stop()},closeMenu(){this.menuIsOpen=!1,window.lenis.start()},toggleSearch(){this.searchIsOpen?this.closeSearch():this.openSearch()},openSearch(){this.searchIsOpen=!0},closeSearch(){this.searchIsOpen=!1,this.resetSearch()},resetSearch(){this.searchKey="",this.searchData=[]},search(){this.searchLoading=!0,this.searchData=[];const i=document.querySelector("html").getAttribute("lang");this.locale=i,fetch(`/${this.locale}/api/search?key=${this.searchKey}`).then(e=>e.json()).then(e=>{const t=[];e=e.filter(n=>t.includes(n.id)?!1:(t.push(n.id),!0)),this.searchData=this.searchKey.length?e:[],this.searchLoading=!1})},togglePanel(i){this.activePanel===i?this.closePanel():this.openPanel(i),this.$nextTick(()=>{if(document.querySelectorAll("#block-header button").forEach(e=>{e.classList.remove("is-open"),e.classList.remove("is-active")}),this.activePanel){const e=document.getElementById(this.activePanel.replace("panel","button"));e&&e.classList.add("is-open")}})},openPanel(i){this.activePanel=i,Alpine.store("breakpoint").matches.lg&&window.lenis.stop()},closePanel(){this.activePanel=null,Alpine.store("breakpoint").matches.lg&&window.lenis.start()},updateActiveLinks(){const i=window.location.pathname,e=document.querySelectorAll("#block-header a"),t=document.querySelectorAll("#block-header button");e.forEach(n=>{n.hasAttribute("data-language-link")||n.classList.remove("is-active")}),t.forEach(n=>{n.classList.remove("is-active")}),e.forEach(n=>{if(n.hasAttribute("data-language-link"))return;const s=new URL(n.href,window.location.origin).pathname;if(i===s||s!=="/"&&i.startsWith(s)){n.classList.add("is-active");const r=n.closest("[data-header-panel]");
72if(r){const a=r.id.replace("panel","button"),l=document.getElementById(a);l&&l.classList.add("is-active")}}})},reset(){this.menuIsOpen=!1,this.activePanel=null,document.querySelectorAll("[data-header-panel]").forEach(i=>{i.style.display="none"}),document.querySelectorAll("#header button").forEach(i=>{i.classList.remove("is-open")})}};hd.registerPlugin(Wt);const Let=i=>({cards:null,container:null,init(){this.cards=this.$el.querySelectorAll("[data-stacked-card]"),this.container=this.$el,this.$nextTick(()=>{this.setup()})},setup(){const e=this.cards[this.cards.length-1];this.cards.forEach((t,n)=>{t.getBoundingClientRect();const s=0;n<this.cards.length-1&&hd.to(t,{y:-50,transformOrigin:"top center",ease:"none",scrollTrigger:{trigger:t,start:"top top",scrub:!0}}),Wt.create({trigger:t,endTrigger:e,start:`top top+=${n*s}px`,end:"top top",pin:!0,pinSpacing:!1,invalidateOnRefresh:!0,markers:!1})})}});/*! 73 * @kurkle/color v0.3.4 74 * https://github.com/kurkle/color#readme 75 * (c) 2024 Jukka Kurkela 76 * Released under the MIT License 77 */function Y0(i){return i+.5|0}const hl=(i,e,t)=>Math.max(Math.min(i,t),e);function jf(i){return hl(Y0(i*2.55),0,255)}function vl(i){return hl(Y0(i*255),0,255)}function go(i){return hl(Y0(i/2.55)/100,0,1)}function wD(i){return hl(Y0(i*100),0,100)}const Ms={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Z2=[..."0123456789ABCDEF"],Iet=i=>Z2[i&15],Det=i=>Z2[(i&240)>>4]+Z2[i&15],Pb=i=>(i&240)>>4===(i&15),Ret=i=>Pb(i.r)&&Pb(i.g)&&Pb(i.b)&&Pb(i.a);function Fet(i){var e=i.length,t;return i[0]==="#"&&(e===4||e===5?t={r:255&Ms[i[1]]*17,g:255&Ms[i[2]]*17,b:255&Ms[i[3]]*17,a:e===5?Ms[i[4]]*17:255}:(e===7||e===9)&&(t={r:Ms[i[1]]<<4|Ms[i[2]],g:Ms[i[3]]<<4|Ms[i[4]],b:Ms[i[5]]<<4|Ms[i[6]],a:e===9?Ms[i[7]]<<4|Ms[i[8]]:255})),t}const Net=(i,e)=>i<255?e(i):"";function Bet(i){var e=Ret(i)?Iet:Det;return i?"#"+e(i.r)+e(i.g)+e(i.b)+Net(i.a,e):void 0}const zet=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function cW(i,e,t){const n=e*Math.min(t,1-t),s=(r,o=(r+i/30)%12)=>t-n*Math.max(Math.min(o-3,9-o,1),-1);return[s(0),s(8),s(4)]}function Vet(i,e,t){const n=(s,r=(s+i/60)%6)=>t-t*e*Math.max(Math.min(r,4-r,1),0);return[n(5),n(3),n(1)]}function qet(i,e,t){const n=cW(i,1,.5);let s;for(e+t>1&&(s=1/(e+t),e*=s,t*=s),s=0;s<3;s++)n[s]*=1-e-t,n[s]+=e;return n}function Het(i,e,t,n,s){return i===s?(e-t)/n+(e<t?6:0):e===s?(t-i)/n+2:(i-e)/n+4}function C$(i){const t=i.r/255,n=i.g/255,s=i.b/255,r=Math.max(t,n,s),o=Math.min(t,n,s),a=(r+o)/2;let l,c,u;return r!==o&&(u=r-o,c=a>.5?u/(2-r-o):u/(r+o),l=Het(t,n,s,u,r),l=l*60+.5),[l|0,c||0,a]}function A$(i,e,t,n){return(Array.isArray(e)?i(e[0],e[1],e[2]):i(e,t,n)).map(vl)}function M$(i,e,t){return A$(cW,i,e,t)}function Wet(i,e,t){return A$(qet,i,e,t)}function jet(i,e,t){return A$(Vet,i,e,t)}function uW(i){return(i%360+360)%360}function Uet(i){const e=zet.exec(i);let t=255,n;if(!e)return;e[5]!==n&&(t=e[6]?jf(+e[5]):vl(+e[5]));const s=uW(+e[2]),r=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?n=Wet(s,r,o):e[1]==="hsv"?n=jet(s,r,o):n=M$(s,r,o),{r:n[0],g:n[1],b:n[2],a:t}}function Get(i,e){var t=C$(i);t[0]=uW(t[0]+e),t=M$(t),i.r=t[0],i.g=t[1],i.b=t[2]}function Yet(i){if(!i)return;const e=C$(i),t=e[0],n=wD(e[1]),s=wD(e[2]);return i.a<255?`hsla(${t}, ${n}%, ${s}%, ${go(i.a)})`:`hsl(${t}, ${n}%, ${s}%)`}const _D={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},xD={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Ket(){const i={},e=Object.keys(xD),t=Object.keys(_D);let n,s,r,o,a;for(n=0;n<e.length;n++){for(o=a=e[n],s=0;s<t.length;s++)r=t[s],a=a.replace(r,_D[r]);r=parseInt(xD[o],16),i[a]=[r>>16&255,r>>8&255,r&255]}return i}let Cb;function Xet(i){Cb||(Cb=Ket(),Cb.transparent=[0,0,0,0]);const e=Cb[i.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const Qet=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Jet(i){const e=Qet.exec(i);let t=255,n,s,r;if(e){if(e[7]!==n){const o=+e[7];t=e[8]?jf(o):hl(o*255,0,255)}return n=+e[1],s=+e[3],r=+e[5],n=255&(e[2]?jf(n):hl(n,0,255)),s=255&(e[4]?jf(s):hl(s,0,255)),r=255&(e[6]?jf(r):hl(r,0,255)),{r:n,g:s,b:r,a:t}}}function Zet(i){return i&&(i.a<255?`rgba(${i.r}, ${i.g}, ${i.b}, ${go(i.a)})`:`rgb(${i.r}, ${i.g}, ${i.b})`)}const dP=i=>i<=.0031308?i*12.92:Math.pow(i,1/2.4)*1.055-.055,Xu=i=>i<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4);function tit(i,e,t){const n=Xu(go(i.r)),s=Xu(go(i.g)),r=Xu(go(i.b));return{r:vl(dP(n+t*(Xu(go(e.r))-n))),g:vl(dP(s+t*(Xu(go(e.g))-s))),b:vl(dP(r+t*(Xu(go(e.b))-r))),a:i.a+t*(e.a-i.a)}}function Ab(i,e,t){if(i){let n=C$(i);n[e]=Math.max(0,Math.min(n[e]+n[e]*t,e===0?360:1)),n=M$(n),i.r=n[0],i.g=n[1],i.b=n[2]}}function dW(i,e){return i&&Object.assign(e||{},i)}function SD(i){var e={r:0,g:0,b:0,a:255};return Array.isArray(i)?i.length>=3&&(e={r:i[0],g:i[1],b:i[2],a:255},i.length>3&&(e.a=vl(i[3]))):(e=dW(i,{r:0,g:0,b:0,a:1}),e.a=vl(e.a)),e}function eit(i){return i.charAt(0)==="r"?Jet(i):Uet(i)}class Wp{constructor(e){if(e instanceof Wp)return e;const t=typeof e;let n;t==="object"?n=SD(e):t==="string"&&(n=Fet(e)||Xet(e)||eit(e)),this._rgb=n,this._val
77id=!!n}get valid(){return this._valid}get rgb(){var e=dW(this._rgb);return e&&(e.a=go(e.a)),e}set rgb(e){this._rgb=SD(e)}rgbString(){return this._valid?Zet(this._rgb):void 0}hexString(){return this._valid?Bet(this._rgb):void 0}hslString(){return this._valid?Yet(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,s=e.rgb;let r;const o=t===r?.5:t,a=2*o-1,l=n.a-s.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;r=1-c,n.r=255&c*n.r+r*s.r+.5,n.g=255&c*n.g+r*s.g+.5,n.b=255&c*n.b+r*s.b+.5,n.a=o*n.a+(1-o)*s.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=tit(this._rgb,e._rgb,t)),this}clone(){return new Wp(this.rgb)}alpha(e){return this._rgb.a=vl(e),this}clearer(e){const t=this._rgb;return t.a*=1-e,this}greyscale(){const e=this._rgb,t=Y0(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=t,this}opaquer(e){const t=this._rgb;return t.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Ab(this._rgb,2,e),this}darken(e){return Ab(this._rgb,2,-e),this}saturate(e){return Ab(this._rgb,1,e),this}desaturate(e){return Ab(this._rgb,1,-e),this}rotate(e){return Get(this._rgb,e),this}}/*! 78 * Chart.js v4.4.8 79 * https://www.chartjs.org 80 * (c) 2025 Chart.js Contributors 81 * Released under the MIT License 82 */function ao(){}const iit=(()=>{let i=0;return()=>i++})();function Yt(i){return i==null}function De(i){if(Array.isArray&&Array.isArray(i))return!0;const e=Object.prototype.toString.call(i);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function Kt(i){return i!==null&&Object.prototype.toString.call(i)==="[object Object]"}function si(i){return(typeof i=="number"||i instanceof Number)&&isFinite(+i)}function es(i,e){return si(i)?i:e}function It(i,e){return typeof i>"u"?e:i}const nit=(i,e)=>typeof i=="string"&&i.endsWith("%")?parseFloat(i)/100:+i/e,hW=(i,e)=>typeof i=="string"&&i.endsWith("%")?parseFloat(i)/100*e:+i;function ke(i,e,t){if(i&&typeof i.call=="function")return i.apply(t,e)}function he(i,e,t,n){let s,r,o;if(De(i))if(r=i.length,n)for(s=r-1;s>=0;s--)e.call(t,i[s],s);else for(s=0;s<r;s++)e.call(t,i[s],s);else if(Kt(i))for(o=Object.keys(i),r=o.length,s=0;s<r;s++)e.call(t,i[o[s]],o[s])}function Tv(i,e){let t,n,s,r;if(!i||!e||i.length!==e.length)return!1;for(t=0,n=i.length;t<n;++t)if(s=i[t],r=e[t],s.datasetIndex!==r.datasetIndex||s.index!==r.index)return!1;return!0}function kv(i){if(De(i))return i.map(kv);if(Kt(i)){const e=Object.create(null),t=Object.keys(i),n=t.length;let s=0;for(;s<n;++s)e[t[s]]=kv(i[t[s]]);return e}return i}function fW(i){return["__proto__","prototype","constructor"].indexOf(i)===-1}function sit(i,e,t,n){if(!fW(i))return;const s=e[i],r=t[i];Kt(s)&&Kt(r)?jp(s,r,n):e[i]=kv(r)}function jp(i,e,t){const n=De(e)?e:[e],s=n.length;if(!Kt(i))return i;t=t||{};const r=t.merger||sit;let o;for(let a=0;a<s;
82++a){if(o=n[a],!Kt(o))continue;const l=Object.keys(o);for(let c=0,u=l.length;c<u;++c)r(l[c],i,o,t)}return i}function bp(i,e){return jp(i,e,{merger:rit})}function rit(i,e,t){if(!fW(i))return;const n=e[i],s=t[i];Kt(n)&&Kt(s)?bp(n,s):Object.prototype.hasOwnProperty.call(e,i)||(e[i]=kv(s))}const TD={"":i=>i,x:i=>i.x,y:i=>i.y};function oit(i){const e=i.split("."),t=[];let n="";for(const s of e)n+=s,n.endsWith("\\")?n=n.slice(0,-1)+".":(t.push(n),n="");return t}function ait(i){const e=oit(i);return t=>{for(const n of e){if(n==="")break;t=t&&t[n]}return t}}function Pl(i,e){return(TD[e]||(TD[e]=ait(e)))(i)}function O$(i){return i.charAt(0).toUpperCase()+i.slice(1)}const Up=i=>typeof i<"u",Cl=i=>typeof i=="function",kD=(i,e)=>{if(i.size!==e.size)return!1;for(const t of i)if(!e.has(t))return!1;return!0};function lit(i){return i.type==="mouseup"||i.type==="click"||i.type==="contextmenu"}const Be=Math.PI,Fe=2*Be,cit=Fe+Be,Ev=Number.POSITIVE_INFINITY,uit=Be/180,ui=Be/2,Gl=Be/4,ED=Be*2/3,fl=Math.log10,Qr=Math.sign;function yp(i,e,t){return Math.abs(i-e)<t}function PD(i){const e=Math.round(i);i=yp(i,e,i/1e3)?e:i;const t=Math.pow(10,Math.floor(fl(i))),n=i/t;return(n<=1?1:n<=2?2:n<=5?5:10)*t}function dit(i){const e=[],t=Math.sqrt(i);let n;for(n=1;n<t;n++)i%n===0&&(e.push(n),e.push(i/n));return t===(t|0)&&e.push(t),e.sort((s,r)=>s-r).pop(),e}function hit(i){return typeof i=="symbol"||typeof i=="object"&&i!==null&&!(Symbol.toPrimitive in i||"toString"in i||"valueOf"in i)}function Qh(i){return!hit(i)&&!isNaN(parseFloat(i))&&isFinite(i)}function fit(i,e){const t=Math.round(i);return t-e<=i&&t+e>=i}function pW(i,e,t){let n,s,r;for(n=0,s=i.length;n<s;n++)r=i[n][t],isNaN(r)||(e.min=Math.min(e.min,r),e.max=Math.max(e.max,r))}function ar(i){return i*(Be/180)}function $$(i){return i*(180/Be)}function CD(i){if(!si(i))return;let e=1,t=0;for(;Math.round(i*e)/e!==i;)e*=10,t++;return t}function gW(i,e){const t=e.x-i.x,n=e.y-i.y,s=Math.sqrt(t*t+n*n);let r=Math.atan2(n,t);return r<-.5*Be&&(r+=Fe),{angle:r,distance:s}}function tM(i,e){return Math.sqrt(Math.pow(e.x-i.x,2)+Math.pow(e.y-i.y,2))}function pit(i,e){return(i-e+cit)%Fe-Be}function us(i){return(i%Fe+Fe)%Fe}function Gp(i,e,t,n){const s=us(i),r=us(e),o=us(t),a=us(r-s),l=us(o-s),c=us(s-r),u=us(s-o);return s===r||s===o||n&&r===o||a>l&&c<u}function Ri(i,e,t){return Math.max(e,Math.min(t,i))}function git(i){return Ri(i,-32768,32767)}function Qo(i,e,t,n=1e-6){return i>=Math.min(e,t)-n&&i<=Math.max(e,t)+n}function L$(i,e,t){t=t||(o=>i[o]<e);let n=i.length-1,s=0,r;for(;n-s>1;)r=s+n>>1,t(r)?s=r:n=r;return{lo:s,hi:n}}const Jo=(i,e,t,n)=>L$(i,t,n?s=>{const r=i[s][e];
82return r<t||r===t&&i[s+1][e]===t}:s=>i[s][e]<t),mit=(i,e,t)=>L$(i,t,n=>i[n][e]>=t);function bit(i,e,t){let n=0,s=i.length;for(;n<s&&i[n]<e;)n++;for(;s>n&&i[s-1]>t;)s--;return n>0||s<i.length?i.slice(n,s):i}const mW=["push","pop","shift","splice","unshift"];function yit(i,e){if(i._chartjs){i._chartjs.listeners.push(e);return}Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),mW.forEach(t=>{const n="_onData"+O$(t),s=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...r){const o=s.apply(this,r);return i._chartjs.listeners.forEach(a=>{typeof a[n]=="function"&&a[n](...r)}),o}})})}function AD(i,e){const t=i._chartjs;if(!t)return;const n=t.listeners,s=n.indexOf(e);s!==-1&&n.splice(s,1),!(n.length>0)&&(mW.forEach(r=>{delete i[r]}),delete i._chartjs)}function bW(i){const e=new Set(i);return e.size===i.length?i:Array.from(e)}const yW=function(){return typeof window>"u"?function(i){return i()}:window.requestAnimationFrame}();function vW(i,e){let t=[],n=!1;return function(...s){t=s,n||(n=!0,yW.call(window,()=>{n=!1,i.apply(e,t)}))}}function vit(i,e){let t;return function(...n){return e?(clearTimeout(t),t=setTimeout(i,e,n)):i.apply(this,n),e}}const I$=i=>i==="start"?"left":i==="end"?"right":"center",Qi=(i,e,t)=>i==="start"?e:i==="end"?t:(e+t)/2,wit=(i,e,t,n)=>i===(n?"left":"right")?t:i==="center"?(e+t)/2:e;function wW(i,e,t){const n=e.length;let s=0,r=n;if(i._sorted){const{iScale:o,vScale:a,_parsed:l}=i,c=i.dataset&&i.dataset.options?i.dataset.options.spanGaps:null,u=o.axis,{min:d,max:h,minDefined:p,maxDefined:m}=o.getUserBounds();if(p){if(s=Math.min(Jo(l,u,d).lo,t?n:Jo(e,u,o.getPixelForValue(d)).lo),c){const g=l.slice(0,s+1).reverse().findIndex(v=>!Yt(v[a.axis]));s-=Math.max(0,g)}s=Ri(s,0,n-1)}if(m){let g=Math.max(Jo(l,o.axis,h,!0).hi+1,t?0:Jo(e,u,o.getPixelForValue(h),!0).hi+1);if(c){const v=l.slice(g-1).findIndex(w=>!Yt(w[a.axis]));g+=Math.max(0,v)}r=Ri(g,s,n)-s}else r=n-s}return{start:s,count:r}}function _W(i){const{xScale:e,yScale:t,_scaleRanges:n}=i,s={xmin:e.min,xmax:e.max,ymin:t.min,ymax:t.max};if(!n)return i._scaleRanges=s,!0;const r=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==t.min||n.ymax!==t.max;return Object.assign(n,s),r}const Mb=i=>i===0||i===1,MD=(i,e,t)=>-(Math.pow(2,10*(i-=1))*Math.sin((i-e)*Fe/t)),OD=(i,e,t)=>Math.pow(2,-10*i)*Math.sin((i-e)*Fe/t)+1,vp={linear:i=>i,easeInQuad:i=>i*i,easeOutQuad:i=>-i*(i-2),easeInOutQuad:i=>(i/=.5)<1?.5*i*i:-.5*(--i*(i-2)-1),easeInCubic:i=>i*i*i,easeOutCubic:i=>(i-=1)*i*i+1,easeInOutCubic:i=>(i/=.5)<1?.5*i*i*i:.5*((i-=2)*i*i+2),easeInQuart:i=>i*i*i*i,easeOutQuart:i=>-((i-=1)*i*i*i-1),easeInOutQuart:i=>(i/=.5)<1?.5*i*i*i*i:-.5*((i-=2)*i*i*i-2),easeInQuint:i=>i*i*i*i*i,easeOutQuint:i=>(i-=1)*i*i*i*i+1,easeInOutQuint:i=>(i/=.5)<1?.5*i*i*i*i*i:.5*((i-=2)*i*i*i*i+2),easeInSine:i=>-Math.cos(i*ui)+1,easeOutSine:i=>Math.sin(i*ui),easeInOutSine:i=>-.5*(Math.cos(Be*i)-1),easeInExpo:i=>i===0?0:Math.pow(2,10*(i-1)),easeOutExpo:i=>i===1?1:-Math.pow(2,-10*i)+1,easeInOutExpo:i=>Mb(i)?i:i<.5?.5*Math.pow(2,10*(i*2-1)):.5*(-Math.pow(2,-10*(i*2-1))+2),easeInCirc:i=>i>=1?i:-(Math.sqrt(1-i*i)-1),easeOutCirc:i=>Math.sqrt(1-(i-=1)*i),easeInOutCirc:i=>(i/=.5)<1?-.5*(Math.sqrt(1-i*i)-1):.5*(Math.sqrt(1-(i-=2)*i)+1),easeInElastic:i=>Mb(i)?i:MD(i,.075,.3),easeOutElastic:i=>Mb(i)?i:OD(i,.075,.3),easeInOutElastic(i){return Mb(i)?i:i<.5?.5*MD(i*2,.1125,.45):.5+.5*OD(i*2-1,.1125,.45)},easeInBack(i){return i*i*((1.70158+1)*i-1.70158)},easeOutBack(i){return(i-=1)*i*((1.70158+1)*i+1.70158)+1},easeInOutBack(i){let e=1.70158;return(i/=.5)<1?.5*(i*i*(((e*=1.525)+1)*i-e)):.5*((i-=2)*i*(((e*=1.525)+1)*i+e)+2)},easeInBounce:i=>1-vp.easeOutBounce(1-i),easeOutBounce(i){return i<1/2.75?7.5625*i*i:i<2/2.75?7.5625*(i-=1.5/2.75)*i+.75:i<2.5/2.75?7.5625*(i-=2.25/2.75)*i+.9375:7.5625*(i-=2.625/2.75)*i+.984375},easeInOutBounce:i=>i<.5?vp.easeInBounce(i*2)*.5:vp.easeOutBounce(i*2-1)*.5+.5};function D$(i){if(i&&typeof i=="object"){const e=i.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function $D(i){return D$(i)?i:new Wp(i)}function hP(i){return D$(i)?i:new Wp(i).saturate(.5).darken(.1).hexString()}const _it=["x","y","borderWidth","radius","tension"],xit=["color","borderColor","backgroundColor"];function Sit(i){i.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),i.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),i.set("animations",{colors:{type:"color",properties:xit},numbers:{type:"number",properties:_it}}),i.describe("animations",{_fallback:"animation"}),i.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function Tit(i){i.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const LD=new Map;function kit(i,e){e=e||{};const t=i+JSON.stringify(e);let n=LD.get(t);return n||(n=new Intl.NumberFormat(i,e),LD.set(t,n)),n}function K0(i,e,t){return kit(e,t).format(i)}const xW={values(i){return De(i)?i:""+i},numeric(i,e,t){if(i===0)return"0";const n=this.chart.options.locale;let s,r=i;if(t.length>1){const c=Math.max(Math.abs(t[0].value),Math.abs(t[t.length-1].value));(c<1e-4||c>1e15)&&(s="scientific"),r=Eit(i,t)}const o=fl(Math.abs(r)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),K0(i,n,l)},logarithmic(i,e,t){if(i===0)return"0";const n=t[e].significand||i/Math.pow(10,Math.floor(fl(i)));return[1,2,3,5,10,15].includes(n)||e>.8*t.length?xW.numeric.call(this,i,e,t):""}};function Eit(i,e){let t=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(t)>=1&&i!==Math.floor(i)&&(t=i-Math.floor(i)),t}var nE={formatters:xW};function Pit(i){i.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>
82t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:nE.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),i.route("scale.ticks","color","","color"),i.route("scale.grid","color","","borderColor"),i.route("scale.border","color","","borderColor"),i.route("scale.title","color","","color"),i.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),i.describe("scales",{_fallback:"scale"}),i.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const Iu=Object.create(null),eM=Object.create(null);function wp(i,e){if(!e)return i;const t=e.split(".");for(let n=0,s=t.length;n<s;++n){const r=t[n];i=i[r]||(i[r]=Object.create(null))}return i}function fP(i,e,t){return typeof e=="string"?jp(wp(i,e),t):jp(wp(i,""),e)}class Cit{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=n=>n.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,s)=>hP(s.backgroundColor),this.hoverBorderColor=(n,s)=>hP(s.borderColor),this.hoverColor=(n,s)=>hP(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={}
82,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return fP(this,e,t)}get(e){return wp(this,e)}describe(e,t){return fP(eM,e,t)}override(e,t){return fP(Iu,e,t)}route(e,t,n,s){const r=wp(this,e),o=wp(this,n),a="_"+t;Object.defineProperties(r,{[a]:{value:r[t],writable:!0},[t]:{enumerable:!0,get(){const l=this[a],c=o[s];return Kt(l)?Object.assign({},c,l):It(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(t=>t(this))}}var je=new Cit({_scriptable:i=>!i.startsWith("on"),_indexable:i=>i!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Sit,Tit,Pit]);function Ait(i){return!i||Yt(i.size)||Yt(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family}function Pv(i,e,t,n,s){let r=e[s];return r||(r=e[s]=i.measureText(s).width,t.push(s)),r>n&&(n=r),n}function Mit(i,e,t,n){n=n||{};let s=n.data=n.data||{},r=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(s=n.data={},r=n.garbageCollect=[],n.font=e),i.save(),i.font=e;let o=0;const a=t.length;let l,c,u,d,h;for(l=0;l<a;l++)if(d=t[l],d!=null&&!De(d))o=Pv(i,s,r,o,d);else if(De(d))for(c=0,u=d.length;c<u;c++)h=d[c],h!=null&&!De(h)&&(o=Pv(i,s,r,o,h));i.restore();const p=r.length/2;if(p>t.length){for(l=0;l<p;l++)delete s[r[l]];r.splice(0,p)}return o}function Yl(i,e,t){const n=i.currentDevicePixelRatio,s=t!==0?Math.max(t/2,.5):0;return Math.round((e-s)*n)/n+s}function ID(i,e){!e&&!i||(e=e||i.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,i.width,i.height),e.restore())}function iM(i,e,t,n){SW(i,e,t,n,null)}function SW(i,e,t,n,s){let r,o,a,l,c,u,d,h;const p=e.pointStyle,m=e.rotation,g=e.radius;let v=(m||0)*uit;if(p&&typeof p=="object"&&(r=p.toString(),r==="[object HTMLImageElement]"||r==="[object HTMLCanvasElement]")){i.save(),i.translate(t,n),i.rotate(v),i.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),i.restore();return}if(!(isNaN(g)||g<=0)){switch(i.beginPath(),p){default:s?i.ellipse(t,n,s/2,g,0,0,Fe):i.arc(t,n,g,0,Fe),i.closePath();break;case"triangle":u=s?s/2:g,i.moveTo(t+Math.sin(v)*u,n-Math.cos(v)*g),v+=ED,i.lineTo(t+Math.sin(v)*u,n-Math.cos(v)*g),v+=ED,i.lineTo(t+Math.sin(v)*u,n-Math.cos(v)*g),i.closePath();break;case"rectRounded":c=g*.516,l=g-c,o=Math.cos(v+Gl)*l,d=Math.cos(v+Gl)*(s?s/2-c:l),a=Math.sin(v+Gl)*l,h=Math.sin(v+Gl)*(s?s/2-c:l),i.arc(t-d,n-a,c,v-Be,v-ui),i.arc(t+h,n-o,c,v-ui,v),i.arc(t+d,n+a,c,v,v+ui),i.arc(t-h,n+o,c,v+ui,v+Be),i.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*g,u=s?s/2:l,i.rect(t-u,n-l,2*u,2*l);break}v+=Gl;case"rectRot":d=Math.cos(v)*(s?s/2:g),o=Math.cos(v)*g,a=Math.sin(v)*g,h=Math.sin(v)*(s?s/2:g),i.moveTo(t-d,n-a),i.lineTo(t+h,n-o),i.lineTo(t+d,n+a),i.lineTo(t-h,n+o),i.closePath();break;case"crossRot":v+=Gl;case"cross":d=Math.cos(v)*(s?s/2:g),o=Math.cos(v)*g,a=Math.sin(v)*g,h=Math.sin(v)*(s?s/2:g),i.moveTo(t-d,n-a),i.lineTo(t+d,n+a),i.moveTo(t+h,n-o),i.lineTo(t-h,n+o);break;case"star":d=Math.cos(v)*(s?s/2:g),o=Math.cos(v)*g,a=Math.sin(v)*g,h=Math.sin(v)*(s?s/2:g),i.moveTo(t-d,n-a),i.lineTo(t+d,n+a),i.moveTo(t+h,n-o),i.lineTo(t-h,n+o),v+=Gl,d=Math.cos(v)*(s?s/2:g),o=Math.cos(v)*g,a=Math.sin(v)*g,h=Math.sin(v)*(s?s/2:g),i.moveTo(t-d,n-a),i.lineTo(t+d,n+a),i.moveTo(t+h,n-o),i.lineTo(t-h,n+o);break;case"line":o=s?s/2:Math.cos(v)*g,a=Math.sin(v)*g,i.moveTo(t-o,n-a),i.lineTo(t+o,n+a);break;case"dash":i.moveTo(t,n),i.lineTo(t+Math.cos(v)*(s?s/2:g),n+Math.sin(v)*g);break;case!1:i.closePath();break}i.fill(),e.borderWidth>0&&i.stroke()}}function Zo(i,e,t){return t=t||.5,!e||i&&i.x>e.left-t&&i.x<e.right+t&&i.y>e.top-t&&i.y<e.bottom+t}function sE(i,e){i.save(),i.beginPath(),i.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),i.clip()}function rE(i){i.restore()}function Oit(i,e,t,n,s){if(!e)return i.lineTo(t.x,t.y);if(s==="middle"){const r=(e.x+t.x)/2;i.lineTo(r,e.y),i.lineTo(r,t.y)}else s==="after"!=!!n?i.lineTo(e.x,t.y):i.lineTo(t.x,e.y);i.lineTo(t.x,t.y)}function $it(i,e,t,n){if(!e)return i.lineTo(t.x,t.y);i.bezierCurveTo(n?e.cp1x:e.cp2x,n?e.cp1y:e.cp2y,n?t.cp2x:t.cp1x,n?t.cp2y:t.cp1y,t.x,t.y)}function Lit(i,e){e.translation&&i.translate(e.translation[0],e.translation[1]),Yt(e.rotation)||i.rotate(e.rotation),e.color&&(i.fillStyle=e.color),e.textAlign&&(i.textAlign=e.textAlign),e.textBaseline&&(i.textBaseline=e.textBaseline)}function Iit(i,e,t,n,s){if(s.strikethrough||s.underline){const r=i.measureText(n),o=e-r.actualBoundingBoxLeft,a=e+r.actualBoundingBoxRight,l=t-r.actualBoundingBoxAscent,c=t+r.actualBoundingBoxDescent,u=s.strikethrough?(l+c)/2:c;i.strokeStyle=i.fillStyle,i.beginPath(),i.lineWidth=s.decorationWidth||2,i.moveTo(o,u),i.lineTo(a,u),i.stroke()}}function Dit(i,e){const t=i.fillStyle;
82i.fillStyle=e.color,i.fillRect(e.left,e.top,e.width,e.height),i.fillStyle=t}function Du(i,e,t,n,s,r={}){const o=De(e)?e:[e],a=r.strokeWidth>0&&r.strokeColor!=="";let l,c;for(i.save(),i.font=s.string,Lit(i,r),l=0;l<o.length;++l)c=o[l],r.backdrop&&Dit(i,r.backdrop),a&&(r.strokeColor&&(i.strokeStyle=r.strokeColor),Yt(r.strokeWidth)||(i.lineWidth=r.strokeWidth),i.strokeText(c,t,n,r.maxWidth)),i.fillText(c,t,n,r.maxWidth),Iit(i,t,n,c,r),n+=Number(s.lineHeight);i.restore()}function Yp(i,e){const{x:t,y:n,w:s,h:r,radius:o}=e;i.arc(t+o.topLeft,n+o.topLeft,o.topLeft,1.5*Be,Be,!0),i.lineTo(t,n+r-o.bottomLeft),i.arc(t+o.bottomLeft,n+r-o.bottomLeft,o.bottomLeft,Be,ui,!0),i.lineTo(t+s-o.bottomRight,n+r),i.arc(t+s-o.bottomRight,n+r-o.bottomRight,o.bottomRight,ui,0,!0),i.lineTo(t+s,n+o.topRight),i.arc(t+s-o.topRight,n+o.topRight,o.topRight,0,-ui,!0),i.lineTo(t+o.topLeft,n)}const Rit=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Fit=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Nit(i,e){const t=(""+i).match(Rit);if(!t||t[1]==="normal")return e*1.2;switch(i=+t[2],t[3]){case"px":return i;case"%":i/=100;break}return e*i}const Bit=i=>+i||0;function R$(i,e){const t={},n=Kt(e),s=n?Object.keys(e):e,r=Kt(i)?n?o=>It(i[o],i[e[o]]):o=>i[o]:()=>i;for(const o of s)t[o]=Bit(r(o));return t}function TW(i){return R$(i,{top:"y",right:"x",bottom:"y",left:"x"})}function xu(i){return R$(i,["topLeft","topRight","bottomLeft","bottomRight"])}function ln(i){const e=TW(i);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function xi(i,e){i=i||{},e=e||je.font;let t=It(i.size,e.size);typeof t=="string"&&(t=parseInt(t,10));let n=It(i.style,e.style);n&&!(""+n).match(Fit)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const s={family:It(i.family,e.family),lineHeight:Nit(It(i.lineHeight,e.lineHeight),t),size:t,style:n,weight:It(i.weight,e.weight),string:""};return s.string=Ait(s),s}function Uf(i,e,t,n){let s=!0,r,o,a;for(r=0,o=i.length;r<o;++r)if(a=i[r],a!==void 0&&(e!==void 0&&typeof a=="function"&&(a=a(e),s=!1),t!==void 0&&De(a)&&(a=a[t%a.length],s=!1),a!==void 0))return n&&!s&&(n.cacheable=!1),a}function zit(i,e,t){const{min:n,max:s}=i,r=hW(e,(s-n)/2),o=(a,l)=>t&&a===0?0:a+l;return{min:o(n,-Math.abs(r)),max:o(s,r)}}function Il(i,e){return Object.assign(Object.create(i),e)}function F$(i,e=[""],t,n,s=()=>i[0]){const r=t||i;typeof n>"u"&&(n=CW("_fallback",i));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:i,_rootScopes:r,_fallback:n,_getTarget:s,override:a=>F$([a,...i],e,r,n)};return new Proxy(o,{deleteProperty(a,l){return delete a[l],delete a._keys,delete i[0][l],!0},get(a,l){return EW(a,l,()=>Yit(l,e,i,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(i[0])},has(a,l){return RD(a).includes(l)},ownKeys(a){return RD(a)},set(a,l,c){const u=a._storage||(a._storage=s());return a[l]=u[l]=c,delete a._keys,!0}})}function Jh(i,e,t,n){const s={_cacheable:!1,_proxy:i,_context:e,_subProxy:t,_stack:new Set,_descriptors:kW(i,n),setContext:r=>Jh(i,r,t,n),override:r=>Jh(i.override(r),e,t,n)};return new Proxy(s,{deleteProperty(r,o){return delete r[o],delete i[o],!0},get(r,o,a){return EW(r,o,()=>qit(r,o,a))},getOwnPropertyDescriptor(r,o){return r._descriptors.allKeys?Reflect.has(i,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(i,o)},getPrototypeOf(){return Reflect.getPrototypeOf(i)},has(r,o){return Reflect.has(i,o)},ownKeys(){return Reflect.ownKeys(i)},set(r,o,a){return i[o]=a,delete r[o],!0}})}function kW(i,e={scriptable:!0,indexable:!0}){const{_scriptable:t=e.scriptable,_indexable:n=e.indexable,_allKeys:s=e.allKeys}=i;return{allKeys:s,scriptable:t,indexable:n,isScriptable:Cl(t)?t:()=>t,isIndexable:Cl(n)?n:()=>n}}const Vit=(i,e)=>i?i+O$(e):e,N$=(i,e)=>Kt(e)&&i!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function EW(i,e,t){if(Object.prototype.hasOwnProperty.call(i,e)||e==="constructor")return i[e];const n=t();return i[e]=n,n}function qit(i,e,t){const{_proxy:n,_context:s,_subProxy:r,_descriptors:o}=i;let a=n[e];return Cl(a)&&o.isScriptable(e)&&(a=Hit(e,a,i,t)),De(a)&&a.length&&(a=Wit(e,a,i,o.isIndexable)),N$(e,a)&&(a=Jh(a,s,r&&r[e],o)),a}function Hit(i,e,t,n){const{_proxy:s,_context:r,_subProxy:o,_stack:a}=t;if(a.has(i))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+i);a.add(i);let l=e(r,o||n);return a.delete(i),N$(i,l)&&(l=B$(s._scopes,s,i,l)),l}function Wit(i,e,t,n){const{_proxy:s,_context:r,_subProxy:o,_descriptors:a}=t;if(typeof r.index<"u"&&n(i))return e[r.index%e.length];if(Kt(e[0])){const l=e,c=s._scopes.filter(u=>u!==l);e=[];for(const u of l){const d=B$(c,s,i,u);e.push(Jh(d,r,o&&o[i],a))}}return e}function PW(i,e,t){return Cl(i)?i(e,t):i}const jit=(i,e)=>i===!0?e:typeof i=="string"?Pl(e,i):void 0;function Uit(i,e,t,n,s){for(const r of e){const o=jit(t,r);
82if(o){i.add(o);const a=PW(o._fallback,t,s);if(typeof a<"u"&&a!==t&&a!==n)return a}else if(o===!1&&typeof n<"u"&&t!==n)return null}return!1}function B$(i,e,t,n){const s=e._rootScopes,r=PW(e._fallback,t,n),o=[...i,...s],a=new Set;a.add(n);let l=DD(a,o,t,r||t,n);return l===null||typeof r<"u"&&r!==t&&(l=DD(a,o,r,l,n),l===null)?!1:F$(Array.from(a),[""],s,r,()=>Git(e,t,n))}function DD(i,e,t,n,s){for(;t;)t=Uit(i,e,t,n,s);return t}function Git(i,e,t){const n=i._getTarget();e in n||(n[e]={});const s=n[e];return De(s)&&Kt(t)?t:s||{}}function Yit(i,e,t,n){let s;for(const r of e)if(s=CW(Vit(r,i),t),typeof s<"u")return N$(i,s)?B$(t,n,i,s):s}function CW(i,e){for(const t of e){if(!t)continue;const n=t[i];if(typeof n<"u")return n}}function RD(i){let e=i._keys;return e||(e=i._keys=Kit(i._scopes)),e}function Kit(i){const e=new Set;for(const t of i)for(const n of Object.keys(t).filter(s=>!s.startsWith("_")))e.add(n);return Array.from(e)}function AW(i,e,t,n){const{iScale:s}=i,{key:r="r"}=this._parsing,o=new Array(n);let a,l,c,u;for(a=0,l=n;a<l;++a)c=a+t,u=e[c],o[a]={r:s.parse(Pl(u,r),c)};return o}const Xit=Number.EPSILON||1e-14,Zh=(i,e)=>e<i.length&&!i[e].skip&&i[e],MW=i=>i==="x"?"y":"x";function Qit(i,e,t,n){const s=i.skip?e:i,r=e,o=t.skip?e:t,a=tM(r,s),l=tM(o,r);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=n*c,h=n*u;return{previous:{x:r.x-d*(o.x-s.x),y:r.y-d*(o.y-s.y)},next:{x:r.x+h*(o.x-s.x),y:r.y+h*(o.y-s.y)}}}function Jit(i,e,t){const n=i.length;let s,r,o,a,l,c=Zh(i,0);for(let u=0;u<n-1;++u)if(l=c,c=Zh(i,u+1),!(!l||!c)){if(yp(e[u],0,Xit)){t[u]=t[u+1]=0;continue}s=t[u]/e[u],r=t[u+1]/e[u],a=Math.pow(s,2)+Math.pow(r,2),!(a<=9)&&(o=3/Math.sqrt(a),t[u]=s*o*e[u],t[u+1]=r*o*e[u])}}function Zit(i,e,t="x"){const n=MW(t),s=i.length;let r,o,a,l=Zh(i,0);for(let c=0;c<s;++c){if(o=a,a=l,l=Zh(i,c+1),!a)continue;const u=a[t],d=a[n];o&&(r=(u-o[t])/3,a[`cp1${t}`]=u-r,a[`cp1${n}`]=d-r*e[c]),l&&(r=(l[t]-u)/3,a[`cp2${t}`]=u+r,a[`cp2${n}`]=d+r*e[c])}}function tnt(i,e="x"){const t=MW(e),n=i.length,s=Array(n).fill(0),r=Array(n);let o,a,l,c=Zh(i,0);for(o=0;o<n;++o)if(a=l,l=c,c=Zh(i,o+1),!!l){if(c){const u=c[e]-l[e];s[o]=u!==0?(c[t]-l[t])/u:0}r[o]=a?c?Qr(s[o-1])!==Qr(s[o])?0:(s[o-1]+s[o])/2:s[o-1]:s[o]}Jit(i,s,r),Zit(i,r,e)}function Ob(i,e,t){return Math.max(Math.min(i,t),e)}function ent(i,e){let t,n,s,r,o,a=Zo(i[0],e);for(t=0,n=i.length;t<n;++t)o=r,r=a,a=t<n-1&&Zo(i[t+1],e),r&&(s=i[t],o&&(s.cp1x=Ob(s.cp1x,e.left,e.right),s.cp1y=Ob(s.cp1y,e.top,e.bottom)),a&&(s.cp2x=Ob(s.cp2x,e.left,e.right),s.cp2y=Ob(s.cp2y,e.top,e.bottom)))}function int(i,e,t,n,s){let r,o,a,l;if(e.spanGaps&&(i=i.filter(c=>!c.skip)),e.cubicInterpolationMode==="monotone")tnt(i,s);else{let c=n?i[i.length-1]:i[0];for(r=0,o=i.length;r<o;++r)a=i[r],l=Qit(c,a,i[Math.min(r+1,o-(n?0:1))%o],e.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}e.capBezierPoints&&ent(i,t)}function z$(){return typeof window<"u"&&typeof document<"u"}function V$(i){let e=i.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function Cv(i,e,t){let n;return typeof i=="string"?(n=parseInt(i,10),i.indexOf("%")!==-1&&(n=n/100*e.parentNode[t])):n=i,n}const oE=i=>i.ownerDocument.defaultView.getComputedStyle(i,null);function nnt(i,e){return oE(i).getPropertyValue(e)}const snt=["top","right","bottom","left"];function Su(i,e,t){const n={};t=t?"-"+t:"";for(let s=0;s<4;s++){const r=snt[s];n[r]=parseFloat(i[e+"-"+r+t])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const rnt=(i,e,t)=>(i>0||e>0)&&(!t||!t.shadowRoot);function ont(i,e){const t=i.touches,n=t&&t.length?t[0]:i,{offsetX:s,offsetY:r}=n;let o=!1,a,l;if(rnt(s,r,i.target))a=s,l=r;else{const c=e.getBoundingClientRect();a=n.clientX-c.left,l=n.clientY-c.top,o=!0}return{x:a,y:l,box:o}}function rc(i,e){if("native"in i)return i;const{canvas:t,currentDevicePixelRatio:n}=e,s=oE(t),r=s.boxSizing==="border-box",o=Su(s,"padding"),a=Su(s,"border","width"),{x:l,y:c,box:u}=ont(i,t),d=o.left+(u&&a.left),h=o.top+(u&&a.top);let{width:p,height:m}=e;return r&&(p-=o.width+a.width,m-=o.height+a.height),{x:Math.round((l-d)/p*t.width/n),y:Math.round((c-h)/m*t.height/n)}}function ant(i,e,t){let n,s;if(e===void 0||t===void 0){const r=i&&V$(i);if(!r)e=i.clientWidth,t=i.clientHeight;else{const o=r.getBoundingClientRect(),a=oE(r),l=Su(a,"border","width"),c=Su(a,"padding");e=o.width-c.width-l.width,t=o.height-c.height-l.height,n=Cv(a.maxWidth,r,"clientWidth"),s=Cv(a.maxHeight,r,"clientHeight")}}return{width:e,height:t,maxWidth:n||Ev,maxHeight:s||Ev}}const $b=i=>Math.round(i*10)/10;function lnt(i,e,t,n){const s=oE(i),r=Su(s,"margin"),o=Cv(s.maxWidth,i,"clientWidth")||Ev,a=Cv(s.maxHeight,i,"clientHeight")||Ev,l=ant(i,e,t);let{width:c,height:u}=l;if(s.boxSizing==="content-box"){const h=Su(s,"border","width"),p=Su(s,"padding");c-=p.width+h.width,u-=p.height+h.height}return c=Math.max(0,c-r.width),u=Math.max(0,n?c/n:u-r.height),c=$b(Math.min(c,o,l.maxWidth)),u=$b(Math.min(u,a,l.maxHeight)),c&&!u&&(u=$b(c/2)),(e!==void 0||t!==void 0)&&n&&l.height&&u>l.height&&(u=l.height,c=$b(Math.floor(u*n))),{width:c,height:u}}function FD(i,e,t){const n=e||1,s=Math.floor(i.height*n),r=Math.floor(i.width*n);i.height=Math.floor(i.height),i.width=Math.floor(i.width);const o=i.canvas;return o.style&&(t||!o.style.height&&!o.style.width)&&(o.style.height=`${i.height}px`,o.style.width=`${i.width}px`),i.currentDevicePixelRatio!==n||o.height!==s||o.width!==r?(i.currentDevicePixelRatio=n,o.height=s,o.width=r,i.ctx.setTransform(n,0,0,n,0,0),!0):!1}const cnt=function(){let i=!1;
82try{const e={get passive(){return i=!0,!1}};z$()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return i}();function ND(i,e){const t=nnt(i,e),n=t&&t.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function oc(i,e,t,n){return{x:i.x+t*(e.x-i.x),y:i.y+t*(e.y-i.y)}}function unt(i,e,t,n){return{x:i.x+t*(e.x-i.x),y:n==="middle"?t<.5?i.y:e.y:n==="after"?t<1?i.y:e.y:t>0?e.y:i.y}}function dnt(i,e,t,n){const s={x:i.cp2x,y:i.cp2y},r={x:e.cp1x,y:e.cp1y},o=oc(i,s,t),a=oc(s,r,t),l=oc(r,e,t),c=oc(o,a,t),u=oc(a,l,t);return oc(c,u,t)}const hnt=function(i,e){return{x(t){return i+i+e-t},setWidth(t){e=t},textAlign(t){return t==="center"?t:t==="right"?"left":"right"},xPlus(t,n){return t-n},leftForLtr(t,n){return t-n}}},fnt=function(){return{x(i){return i},setWidth(i){},textAlign(i){return i},xPlus(i,e){return i+e},leftForLtr(i,e){return i}}};function gd(i,e,t){return i?hnt(e,t):fnt()}function OW(i,e){let t,n;(e==="ltr"||e==="rtl")&&(t=i.canvas.style,n=[t.getPropertyValue("direction"),t.getPropertyPriority("direction")],t.setProperty("direction",e,"important"),i.prevTextDirection=n)}function $W(i,e){e!==void 0&&(delete i.prevTextDirection,i.canvas.style.setProperty("direction",e[0],e[1]))}function LW(i){return i==="angle"?{between:Gp,compare:pit,normalize:us}:{between:Qo,compare:(e,t)=>e-t,normalize:e=>e}}function BD({start:i,end:e,count:t,loop:n,style:s}){return{start:i%t,end:e%t,loop:n&&(e-i+1)%t===0,style:s}}function pnt(i,e,t){const{property:n,start:s,end:r}=t,{between:o,normalize:a}=LW(n),l=e.length;let{start:c,end:u,loop:d}=i,h,p;if(d){for(c+=l,u+=l,h=0,p=l;h<p&&o(a(e[c%l][n]),s,r);++h)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:d,style:i.style}}function IW(i,e,t){if(!t)return[i];const{property:n,start:s,end:r}=t,o=e.length,{compare:a,between:l,normalize:c}=LW(n),{start:u,end:d,loop:h,style:p}=pnt(i,e,t),m=[];let g=!1,v=null,w,_,x;const k=()=>l(s,x,w)&&a(s,x)!==0,S=()=>a(r,w)===0||l(r,x,w),T=()=>g||k(),E=()=>!g||S();for(let M=u,A=u;M<=d;++M)_=e[M%o],!_.skip&&(w=c(_[n]),w!==x&&(g=l(w,s,r),v===null&&T()&&(v=a(w,s)===0?M:A),v!==null&&E()&&(m.push(BD({start:v,end:M,loop:h,count:o,style:p})),v=null),A=M,x=w));return v!==null&&m.push(BD({start:v,end:d,loop:h,count:o,style:p})),m}function DW(i,e){const t=[],n=i.segments;for(let s=0;s<n.length;s++){const r=IW(n[s],i.points,e);r.length&&t.push(...r)}return t}function gnt(i,e,t,n){let s=0,r=e-1;if(t&&!n)for(;s<e&&!i[s].skip;)s++;for(;s<e&&i[s].skip;)s++;for(s%=e,t&&(r+=s);r>s&&i[r%e].skip;)r--;return r%=e,{start:s,end:r}}function mnt(i,e,t,n){const s=i.length,r=[];let o=e,a=i[e],l;for(l=e+1;l<=t;++l){const c=i[l%s];c.skip||c.stop?a.skip||(n=!1,r.push({start:e%s,end:(l-1)%s,loop:n}),e=o=c.stop?l:null):(o=l,a.skip&&(e=l)),a=c}return o!==null&&r.push({start:e%s,end:o%s,loop:n}),r}function bnt(i,e){const t=i.points,n=i.options.spanGaps,s=t.length;if(!s)return[];const r=!!i._loop,{start:o,end:a}=gnt(t,s,r,n);if(n===!0)return zD(i,[{start:o,end:a,loop:r}],t,e);const l=a<o?a+s:a,c=!!i._fullLoop&&o===0&&a===s-1;return zD(i,mnt(t,o,l,c),t,e)}
vendor: 4,140 bytes, lines 82-87
82function zD(i,e,t,n){return!n||!n.setContext||!t?e:ynt(i,e,t,n)}function ynt(i,e,t,n){const s=i._chart.getContext(),r=VD(i.options),{_datasetIndex:o,options:{spanGaps:a}}=i,l=t.length,c=[];let u=r,d=e[0].start,h=d;function p(m,g,v,w){const _=a?-1:1;if(m!==g){for(m+=l;t[m%l].skip;)m-=_;for(;t[g%l].skip;)g+=_;m%l!==g%l&&(c.push({start:m%l,end:g%l,loop:v,style:w}),u=w,d=g%l)}}for(const m of e){d=a?d:m.start;let g=t[d%l],v;for(h=d+1;h<=m.end;h++){const w=t[h%l];v=VD(n.setContext(Il(s,{type:"segment",p0:g,p1:w,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:o}))),vnt(v,u)&&p(d,h-1,m.loop,u),g=w,u=v}d<h-1&&p(d,h-1,m.loop,u)}return c}function VD(i){return{backgroundColor:i.backgroundColor,borderCapStyle:i.borderCapStyle,borderDash:i.borderDash,borderDashOffset:i.borderDashOffset,borderJoinStyle:i.borderJoinStyle,borderWidth:i.borderWidth,borderColor:i.borderColor}}function vnt(i,e){if(!e)return!1;const t=[],n=function(s,r){return D$(r)?(t.includes(r)||t.push(r),t.indexOf(r)):r};return JSON.stringify(i,n)!==JSON.stringify(e,n)}/*! 83 * Chart.js v4.4.8 84 * https://www.chartjs.org 85 * (c) 2025 Chart.js Contributors 86 * Released under the MIT License 87 */class wnt{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,s){const r=t.listeners[s],o=t.duration;r.forEach(a=>a({chart:e,initial:t.initial,numSteps:o,currentStep:Math.min(n-t.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=yW.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((n,s)=>{if(!n.running||!n.items.length)return;const r=n.items;let o=r.length-1,a=!1,l;for(;o>=0;--o)l=r[o],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(e),a=!0):(r[o]=r[r.length-1],r.pop());a&&(s.draw(),this._notify(s,n,e,"progress")),r.length||(n.running=!1,this._notify(s,n,e,"complete"),n.initial=!1),t+=r.length}),this._lastDate=e,t===0&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){!t||!t.length||this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((n,s)=>Math.max(n,s._duration),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!(!t||!t.running||!t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let s=n.length-1;for(;s>=0;--s)n[s].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var uo=new wnt;const qD="transparent",_nt={boolean(i,e,t){return t>.5?e:i},color(i,e,t){const n=$D(i||qD),s=n.valid&&$D(e||qD);return s&&s.valid?s.mix(n,t).hexString():e},number(i,e,t){return i+(e-i)*t}};class xnt{constructor(e,t,n,s){const r=t[n];s=Uf([e.to,s,r,e.from]);const o=Uf([e.from,r,s]);this._active=!0,this._fn=e.fn||_nt[e.type||typeof o],this._easing=vp[e.easing]||vp.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const s=this._target[this._prop],r=n-this._start,o=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=Uf([e.to,t,s,e.from]),this._from=Uf([e.from,s,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,s=this._prop,r=this._from,o=this._loop,a=this._to;let l;if(this._active=r!==a&&(o||t<n),!this._active){this._target[s]=a,this._notify(!0);return}if(t<0){this._target[s]=r;return}l=t/n%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(r,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((t,n)=>{e.push({res:t,rej:n}
87)})}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let s=0;s<n.length;s++)n[s][t]()}}class RW{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!Kt(e))return;const t=Object.keys(je.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach(s=>{const r=e[s];if(!Kt(r))return;const o={};for(const a of t)o[a]=r[a];(De(r.properties)&&r.properties||[s]).forEach(a=>{(a===s||!n.has(a))&&n.set(a,o)})})}_animateOptions(e,t){const n=t.options,s=Tnt(e,n);if(!s)return[];const r=this._createAnimations(s,n);return n.$shared&&Snt(e.options.$animations,n).then(()=>{e.options=n},()=>{}),r}_createAnimations(e,t){const n=this._properties,s=[],r=e.$animations||(e.$animations={}),o=Object.keys(t),a=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(e,t));continue}const u=t[c];let d=r[c];const h=n.get(c);if(d)if(h&&d.active()){d.update(h,u,a);continue}else d.cancel();if(!h||!h.duration){e[c]=u;continue}r[c]=d=new xnt(h,e,c,u),s.push(d)}return s}update(e,t){if(this._properties.size===0){Object.assign(e,t);return}const n=this._createAnimations(e,t);if(n.length)return uo.add(this._chart,n),!0}}function Snt(i,e){const t=[],n=Object.keys(e);for(let s=0;s<n.length;s++){const r=i[n[s]];r&&r.active()&&t.push(r.wait())}return Promise.all(t)}function Tnt(i,e){if(!e)return;let t=i.options;if(!t){i.options=e;return}return t.$shared&&(i.options=t=Object.assign({},t,{$shared:!1,$animations:{}})),t}function HD(i,e){const t=i&&i.options||{},n=t.reverse,s=t.min===void 0?e:0,r=t.max===void 0?e:0;return{start:n?r:s,end:n?s:r}}function knt(i,e,t){if(t===!1)return!1;const n=HD(i,t),s=HD(e,t);return{top:s.end,right:n.end,bottom:s.start,left:n.start}}function Ent(i){let e,t,n,s;return Kt(i)?(e=i.top,t=i.right,n=i.bottom,s=i.left):e=t=n=s=i,{top:e,right:t,bottom:n,left:s,disabled:i===!1}}function FW(i,e){const t=[],n=i._getSortedDatasetMetas(e);let s,r;for(s=0,r=n.length;s<r;++s)t.push(n[s].index);return t}function WD(i,e,t,n={}){const s=i.keys,r=n.mode==="single";let o,a,l,c;if(e===null)return;let u=!1;for(o=0,a=s.length;o<a;++o){if(l=+s[o],l===t){if(u=!0,n.all)continue;break}c=i.values[l],si(c)&&(r||e===0||Qr(e)===Qr(c))&&(e+=c)}return!u&&!n.all?0:e}function Pnt(i,e){const{iScale:t,vScale:n}=e,s=t.axis==="x"?"x":"y",r=n.axis==="x"?"x":"y",o=Object.keys(i),a=new Array(o.length);let l,c,u;for(l=0,c=o.length;l<c;++l)u=o[l],a[l]={[s]:u,[r]:i[u]};return a}function pP(i,e){const t=i&&i.options.stacked;return t||t===void 0&&e.stack!==void 0}function Cnt(i,e,t){return`${i.id}.${e.id}.${t.stack||t.type}`}function Ant(i){const{min:e,max:t,minDefined:n,maxDefined:s}=i.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:s?t:Number.POSITIVE_INFINITY}}function Mnt(i,e,t){const n=i[e]||(i[e]={});return n[t]||(n[t]={})}function jD(i,e,t,n){for(const s of e.getMatchingVisibleMetas(n).reverse()){const r=i[s.index];if(t&&r>0||!t&&r<0)return s.index}return null}function UD(i,e){const{chart:t,_cachedMeta:n}=i,s=t._stacks||(t._stacks={}),{iScale:r,vScale:o,index:a}=n,l=r.axis,c=o.axis,u=Cnt(r,o,n),d=e.length;let h;for(let p=0;p<d;++p){const m=e[p],{[l]:g,[c]:v}=m,w=m._stacks||(m._stacks={});h=w[c]=Mnt(s,u,g),h[a]=v,h._top=jD(h,o,!0,n.type),h._bottom=jD(h,o,!1,n.type);const _=h._visualValues||(h._visualValues={});_[a]=v}}function gP(i,e){const t=i.scales;return Object.keys(t).filter(n=>t[n].axis===e).shift()}function Ont(i,e){return Il(i,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function $nt(i,e,t){return Il(i,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:t,index:e,mode:"default",type:"data"})}function Ef(i,e){const t=i.controller.index,n=i.vScale&&i.vScale.axis;if(n){e=e||i._parsed;for(const s of e){const r=s._stacks;if(!r||r[n]===void 0||r[n][t]===void 0)return;delete r[n][t],r[n]._visualValues!==void 0&&r[n]._visualValues[t]!==void 0&&delete r[n]._visualValues[t]}}}const mP=i=>i==="reset"||i==="none",GD=(i,e)=>e?i:Object.assign({},i),Lnt=(i,e,t)=>i&&!e.hidden&&e._stacked&&{keys:FW(t,!0),values:null};class ur{constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=pP(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Ef(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),s=(d,h,p,m)=>d==="x"?h:d==="r"?m:p,r=t.xAxisID=It(n.xAxisID,gP(e,"x")),o=t.yAxisID=It(n.yAxisID,gP(e,"y")),a=t.rAxisID=It(n.rAxisID,gP(e,"r")),l=t.indexAxis,c=t.iAxisID=s(l,r,o,a),u=t.vAxisID=s(l,o,r,a);t.xScale=this.getScaleForId(r),t.yScale=this.getScaleForId(o),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(c),t.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&AD(this._data,this),e._stacked&&Ef(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(Kt(t)){const s=this._cachedMeta;this._data=Pnt(t,s)}else if(n!==t){if(n){AD(n,this);const s=this._cachedMeta;Ef(s),s._parsed=[]}t&&Object.isExtensible(t)&&yit(t,this),this._syncList=[],this._data=t}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let s=!1;this._dataCheck();const r=t._stacked;t._stacked=pP(t.vScale,t),t.stack!==n.stack&&(s=!0,Ef(t),t.stack=n.stack),this._resyncElements(e),(s||r!==t._stacked)&&(UD(this,t._parsed),t._stacked=pP(t.vScale,t))}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:s}=this,{iScale:r,_stacked:o}=n,a=r.axis;let l=e===0&&t===s.length?!0:n._sorted,c=e>0&&n._parsed[e-1],u,d,h;if(this._parsing===!1)n._parsed=s,n._sorted=!0,h=s;else{De(s[e])?h=this.parseArrayData(n,s,e,t):Kt(s[e])?h=this.parseObjectData(n,s,e,t):h=this.parsePrimitiveData(n,s,e,t);const p=()=>d[a]===null||c&&d[a]<c[a];for(u=0;
87u<t;++u)n._parsed[u+e]=d=h[u],l&&(p()&&(l=!1),c=d);n._sorted=l}o&&UD(this,h)}parsePrimitiveData(e,t,n,s){const{iScale:r,vScale:o}=e,a=r.axis,l=o.axis,c=r.getLabels(),u=r===o,d=new Array(s);let h,p,m;for(h=0,p=s;h<p;++h)m=h+n,d[h]={[a]:u||r.parse(c[m],m),[l]:o.parse(t[m],m)};return d}parseArrayData(e,t,n,s){const{xScale:r,yScale:o}=e,a=new Array(s);let l,c,u,d;for(l=0,c=s;l<c;++l)u=l+n,d=t[u],a[l]={x:r.parse(d[0],u),y:o.parse(d[1],u)};return a}parseObjectData(e,t,n,s){const{xScale:r,yScale:o}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(s);let u,d,h,p;for(u=0,d=s;u<d;++u)h=u+n,p=t[h],c[u]={x:r.parse(Pl(p,a),h),y:o.parse(Pl(p,l),h)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const s=this.chart,r=this._cachedMeta,o=t[e.axis],a={keys:FW(s,!0),values:t._stacks[e.axis]._visualValues};return WD(a,o,r.index,{mode:n})}updateRangeFromParsed(e,t,n,s){const r=n[t.axis];let o=r===null?NaN:r;const a=s&&n._stacks[t.axis];s&&a&&(s.values=a,o=WD(s,r,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,t){const n=this._cachedMeta,s=n._parsed,r=n._sorted&&e===n.iScale,o=s.length,a=this._getOtherScale(e),l=Lnt(t,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=Ant(a);let h,p;function m(){p=s[h];const g=p[a.axis];return!si(p[e.axis])||u>g||d<g}for(h=0;h<o&&!(!m()&&(this.updateRangeFromParsed(c,e,p,l),r));++h);if(r){for(h=o-1;h>=0;--h)if(!m()){this.updateRangeFromParsed(c,e,p,l);break}}return c}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let s,r,o;for(s=0,r=t.length;s<r;++s)o=t[s][e.axis],si(o)&&n.push(o);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,s=t.vScale,r=this.getParsed(e);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:s?""+s.getLabelForValue(r[s.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=Ent(It(this.options.clip,knt(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,s=n.data||[],r=t.chartArea,o=[],a=this._drawStart||0,l=this._drawCount||s.length-a,c=this.options.drawActiveElementsOnTop;let u;for(n.dataset&&n.dataset.draw(e,r,a,l),u=a;u<a+l;++u){const d=s[u];d.hidden||(d.active&&c?o.push(d):d.draw(e,r))}for(u=0;u<o.length;++u)o[u].draw(e,r)}getStyle(e,t){const n=t?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const s=this.getDataset();let r;if(e>=0&&e<this._cachedMeta.data.length){const o=this._cachedMeta.data[e];r=o.$context||(o.$context=$nt(this.getContext(),e,o)),r.parsed=this.getParsed(e),r.raw=s.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=Ont(this.chart.getContext(),this.index)),r.dataset=s,r.index=r.datasetIndex=this.index;return r.active=!!t,r.mode=n,r}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",n){const s=t==="active",r=this._cachedDataOpts,o=e+"-"+t,a=r[o],l=this.enableOptionSharing&&Up(n);if(a)return GD(a,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,e),d=s?[`${e}Hover`,"hover",e,""]:[e,""],h=c.getOptionScopes(this.getDataset(),u),p=Object.keys(je.elements[e]),m=()=>this.getContext(n,s,t),g=c.resolveNamedOptions(h,p,m,d);return g.$shared&&(g.$shared=l,r[o]=Object.freeze(GD(g,l))),g}_resolveAnimations(e,t,n){const s=this.chart,r=this._cachedDataOpts,o=`animation-${t}`,a=r[o];if(a)return a;let l;if(s.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,t),h=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(h,this.getContext(e,n,t))}const c=new RW(s,l&&l.animations);return l&&l._cacheable&&(r[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||mP(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),s=this._sharedOptions,r=this.getSharedOptions(n),o=this.includeOptions(t,r)||r!==s;return this.updateSharedOptions(r,t,n),{sharedOptions:r,includeOptions:o}}updateElement(e,t,n,s){mP(s)?Object.assign(e,n):this._resolveAnimations(t,s).update(e,n)}updateSharedOptions(e,t,n){e&&!mP(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,s){e.active=s;const r=this.getStyle(t,s);
87this._resolveAnimations(t,n,s).update(e,{options:!s&&this.getSharedOptions(r)||r})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const s=n.length,r=t.length,o=Math.min(r,s);o&&this.parse(0,o),r>s?this._insertElements(s,r-s,e):r<s&&this._removeElements(r,s-r)}_insertElements(e,t,n=!0){const s=this._cachedMeta,r=s.data,o=e+t;let a;const l=c=>{for(c.length+=t,a=c.length-1;a>=o;a--)c[a]=c[a-t]};for(l(r),a=e;a<o;++a)r[a]=new this.dataElementType;this._parsing&&l(s._parsed),this.parse(e,t),n&&this.updateElements(r,e,t,"reset")}updateElements(e,t,n,s){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const s=n._parsed.splice(e,t);n._stacked&&Ef(n,s)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,s]=e;this[t](n,s)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}O(ur,"defaults",{}),O(ur,"datasetElementType",null),O(ur,"dataElementType",null);function Int(i,e){if(!i._cache.$bar){const t=i.getMatchingVisibleMetas(e);let n=[];for(let s=0,r=t.length;s<r;s++)n=n.concat(t[s].controller.getAllParsedValues(i));i._cache.$bar=bW(n.sort((s,r)=>s-r))}return i._cache.$bar}function Dnt(i){const e=i.iScale,t=Int(e,i.type);let n=e._length,s,r,o,a;const l=()=>{o===32767||o===-32768||(Up(a)&&(n=Math.min(n,Math.abs(o-a)||n)),a=o)};for(s=0,r=t.length;s<r;++s)o=e.getPixelForValue(t[s]),l();for(a=void 0,s=0,r=e.ticks.length;s<r;++s)o=e.getPixelForTick(s),l();return n}function Rnt(i,e,t,n){const s=t.barThickness;let r,o;return Yt(s)?(r=e.min*t.categoryPercentage,o=t.barPercentage):(r=s*n,o=1),{chunk:r/n,ratio:o,start:e.pixels[i]-r/2}}function Fnt(i,e,t,n){const s=e.pixels,r=s[i];let o=i>0?s[i-1]:null,a=i<s.length-1?s[i+1]:null;const l=t.categoryPercentage;o===null&&(o=r-(a===null?e.end-e.start:a-r)),a===null&&(a=r+r-o);const c=r-(r-Math.min(o,a))/2*l;return{chunk:Math.abs(a-o)/2*l/n,ratio:t.barPercentage,start:c}}function Nnt(i,e,t,n){const s=t.parse(i[0],n),r=t.parse(i[1],n),o=Math.min(s,r),a=Math.max(s,r);let l=o,c=a;Math.abs(o)>Math.abs(a)&&(l=a,c=o),e[t.axis]=c,e._custom={barStart:l,barEnd:c,start:s,end:r,min:o,max:a}}function NW(i,e,t,n){return De(i)?Nnt(i,e,t,n):e[t.axis]=t.parse(i,n),e}function YD(i,e,t,n){const s=i.iScale,r=i.vScale,o=s.getLabels(),a=s===r,l=[];let c,u,d,h;for(c=t,u=t+n;c<u;++c)h=e[c],d={},d[s.axis]=a||s.parse(o[c],c),l.push(NW(h,d,r,c));return l}function bP(i){return i&&i.barStart!==void 0&&i.barEnd!==void 0}function Bnt(i,e,t){return i!==0?Qr(i):(e.isHorizontal()?1:-1)*(e.min>=t?1:-1)}function znt(i){let e,t,n,s,r;return i.horizontal?(e=i.base>i.x,t="left",n="right"):(e=i.base<i.y,t="bottom",n="top"),e?(s="end",r="start"):(s="start",r="end"),{start:t,end:n,reverse:e,top:s,bottom:r}}function Vnt(i,e,t,n){let s=e.borderSkipped;const r={};if(!s){i.borderSkipped=r;return}if(s===!0){i.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:a,reverse:l,top:c,bottom:u}=znt(i);s==="middle"&&t&&(i.enableBorderRadius=!0,(t._top||0)===n?s=c:(t._bottom||0)===n?s=u:(r[KD(u,o,a,l)]=!0,s=c)),r[KD(s,o,a,l)]=!0,i.borderSkipped=r}function KD(i,e,t,n){return n?(i=qnt(i,e,t),i=XD(i,t,e)):i=XD(i,e,t),i}function qnt(i,e,t){return i===e?t:i===t?e:i}function XD(i,e,t){return i==="start"?e:i==="end"?t:i}function Hnt(i,{inflateAmount:e},t){i.inflateAmount=e==="auto"?t===1?.33:0:e}class Py extends ur{parsePrimitiveData(e,t,n,s){return YD(e,t,n,s)}parseArrayData(e,t,n,s){return YD(e,t,n,s)}parseObjectData(e,t,n,s){const{iScale:r,vScale:o}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=r.axis==="x"?a:l,u=o.axis==="x"?a:l,d=[];let h,p,m,g;for(h=n,p=n+s;h<p;++h)g=t[h],m={},m[r.axis]=r.parse(Pl(g,c),h),d.push(NW(Pl(g,u),m,o,h));return d}updateRangeFromParsed(e,t,n,s){super.updateRangeFromParsed(e,t,n,s);const r=n._custom;r&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:s}=t,r=this.getParsed(e),o=r._custom,a=bP(o)?"["+o.start+", "+o.end+"]":""+s.getLabelForValue(r[s.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,s){const r=s==="reset",{index:o,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(t,s);for(let p=t;
87p<t+n;p++){const m=this.getParsed(p),g=r||Yt(m[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(p),v=this._calculateBarIndexPixels(p,u),w=(m._stacks||{})[a.axis],_={horizontal:c,base:g.base,enableBorderRadius:!w||bP(m._custom)||o===w._top||o===w._bottom,x:c?g.head:v.center,y:c?v.center:g.head,height:c?v.size:Math.abs(g.size),width:c?Math.abs(g.size):v.size};h&&(_.options=d||this.resolveDataElementOptions(p,e[p].active?"active":s));const x=_.options||e[p].options;Vnt(_,x,w,o),Hnt(_,x,u.ratio),this.updateElement(e[p],p,_,s)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,s=n.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),r=n.options.stacked,o=[],a=this._cachedMeta.controller.getParsed(t),l=a&&a[n.axis],c=u=>{const d=u._parsed.find(p=>p[n.axis]===l),h=d&&d[u.vScale.axis];if(Yt(h)||isNaN(h))return!0};for(const u of s)if(!(t!==void 0&&c(u))&&((r===!1||o.indexOf(u.stack)===-1||r===void 0&&u.stack===void 0)&&o.push(u.stack),u.index===e))break;return o.length||o.push(void 0),o}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,n){const s=this._getStacks(e,n),r=t!==void 0?s.indexOf(t):-1;return r===-1?s.length-1:r}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,s=[];let r,o;for(r=0,o=t.data.length;r<o;++r)s.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const a=e.barThickness;return{min:a||Dnt(t),pixels:s,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n,index:s},options:{base:r,minBarLength:o}}=this,a=r||0,l=this.getParsed(e),c=l._custom,u=bP(c);let d=l[t.axis],h=0,p=n?this.applyStack(t,l,n):d,m,g;p!==d&&(h=p-d,p=d),u&&(d=c.barStart,p=c.barEnd-c.barStart,d!==0&&Qr(d)!==Qr(c.barEnd)&&(h=0),h+=d);const v=!Yt(r)&&!u?r:h;let w=t.getPixelForValue(v);if(this.chart.getDataVisibility(e)?m=t.getPixelForValue(h+p):m=w,g=m-w,Math.abs(g)<o){g=Bnt(g,t,a)*o,d===a&&(w-=g/2);const _=t.getPixelForDecimal(0),x=t.getPixelForDecimal(1),k=Math.min(_,x),S=Math.max(_,x);w=Math.max(Math.min(w,S),k),m=w+g,n&&!u&&(l._stacks[t.axis]._visualValues[s]=t.getValueForPixel(m)-t.getValueForPixel(w))}if(w===t.getPixelForValue(a)){const _=Qr(g)*t.getLineWidthForValue(a)/2;w+=_,g-=_}return{size:g,base:w,head:m,center:m+g/2}}_calculateBarIndexPixels(e,t){const n=t.scale,s=this.options,r=s.skipNull,o=It(s.maxBarThickness,1/0);let a,l;if(t.grouped){const c=r?this._getStackCount(e):t.stackCount,u=s.barThickness==="flex"?Fnt(e,t,s,c):Rnt(e,t,s,c),d=this._getStackIndex(this.index,this._cachedMeta.stack,r?e:void 0);a=u.start+u.chunk*d+u.chunk/2,l=Math.min(o,u.chunk*u.ratio)}else a=n.getPixelForValue(this.getParsed(e)[n.axis],e),l=Math.min(o,t.min*t.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,s=n.length;let r=0;for(;r<s;++r)this.getParsed(r)[t.axis]!==null&&!n[r].hidden&&n[r].draw(this._ctx)}}O(Py,"id","bar"),O(Py,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),O(Py,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Cy extends ur{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,t,n,s){const r=super.parsePrimitiveData(e,t,n,s);for(let o=0;o<r.length;o++)r[o]._custom=this.resolveDataElementOptions(o+n).radius;return r}parseArrayData(e,t,n,s){const r=super.parseArrayData(e,t,n,s);for(let o=0;o<r.length;o++){const a=t[n+o];r[o]._custom=It(a[2],this.resolveDataElementOptions(o+n).radius)}return r}parseObjectData(e,t,n,s){const r=super.parseObjectData(e,t,n,s);for(let o=0;o<r.length;o++){const a=t[n+o];r[o]._custom=It(a&&a.r&&+a.r,this.resolveDataElementOptions(o+n).radius)}return r}getMaxOverflow(){const e=this._cachedMeta.data;let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:s,yScale:r}=t,o=this.getParsed(e),a=s.getLabelForValue(o.x),l=r.getLabelForValue(o.y),c=o._custom;return{label:n[e]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,n,s){const r=s==="reset",{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(t,s),u=o.axis,d=a.axis;for(let h=t;h<t+n;h++){const p=e[h],m=!r&&this.getParsed(h),g={},v=g[u]=r?o.getPixelForDecimal(.5):o.getPixelForValue(m[u]),w=g[d]=r?a.getBasePixel():a.getPixelForValue(m[d]);
87g.skip=isNaN(v)||isNaN(w),c&&(g.options=l||this.resolveDataElementOptions(h,p.active?"active":s),r&&(g.options.radius=0)),this.updateElement(p,h,g,s)}}resolveDataElementOptions(e,t){const n=this.getParsed(e);let s=super.resolveDataElementOptions(e,t);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const r=s.radius;return t!=="active"&&(s.radius=0),s.radius+=It(n&&n._custom,r),s}}O(Cy,"id","bubble"),O(Cy,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),O(Cy,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function Wnt(i,e,t){let n=1,s=1,r=0,o=0;if(e<Fe){const a=i,l=a+e,c=Math.cos(a),u=Math.sin(a),d=Math.cos(l),h=Math.sin(l),p=(x,k,S)=>Gp(x,a,l,!0)?1:Math.max(k,k*t,S,S*t),m=(x,k,S)=>Gp(x,a,l,!0)?-1:Math.min(k,k*t,S,S*t),g=p(0,c,d),v=p(ui,u,h),w=m(Be,c,d),_=m(Be+ui,u,h);n=(g-w)/2,s=(v-_)/2,r=-(g+w)/2,o=-(v+_)/2}return{ratioX:n,ratioY:s,offsetX:r,offsetY:o}}class mc extends ur{constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=n;else{let r=l=>+n[l];if(Kt(n[e])){const{key:l="value"}=this._parsing;r=c=>+Pl(n[c],l)}let o,a;for(o=e,a=e+t;o<a;++o)s._parsed[o]=r(o)}}_getRotation(){return ar(this.options.rotation-90)}_getCircumference(){return ar(this.options.circumference)}_getRotationExtents(){let e=Fe,t=-Fe;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const s=this.chart.getDatasetMeta(n).controller,r=s._getRotation(),o=s._getCircumference();e=Math.min(e,r),t=Math.max(t,r+o)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:n}=t,s=this._cachedMeta,r=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-o)/2,0),l=Math.min(nit(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:h,ratioY:p,offsetX:m,offsetY:g}=Wnt(d,u,l),v=(n.width-o)/h,w=(n.height-o)/p,_=Math.max(Math.min(v,w)/2,0),x=hW(this.options.radius,_),k=Math.max(x*l,0),S=(x-k)/this._getVisibleDatasetWeightTotal();this.offsetX=m*x,this.offsetY=g*x,s.total=this.calculateTotal(),this.outerRadius=x-S*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-S*c,0),this.updateElements(r,0,r.length,e)}_circumference(e,t){const n=this.options,s=this._cachedMeta,r=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||s._parsed[e]===null||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*r/Fe)}updateElements(e,t,n,s){const r=s==="reset",o=this.chart,a=o.chartArea,c=o.options.animation,u=(a.left+a.right)/2,d=(a.top+a.bottom)/2,h=r&&c.animateScale,p=h?0:this.innerRadius,m=h?0:this.outerRadius,{sharedOptions:g,includeOptions:v}=this._getSharedOptions(t,s);let w=this._getRotation(),_;for(_=0;_<t;++_)w+=this._circumference(_,r);for(_=t;_<t+n;++_){const x=this._circumference(_,r),k=e[_],S={x:u+this.offsetX,y:d+this.offsetY,startAngle:w,endAngle:w+x,circumference:x,outerRadius:m,innerRadius:p};v&&(S.options=g||this.resolveDataElementOptions(_,k.active?"active":s)),w+=x,this.updateElement(k,_,S,s)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let n=0,s;for(s=0;s<t.length;s++){const r=e._parsed[s];r!==null&&!isNaN(r)&&this.chart.getDataVisibility(s)&&!t[s].hidden&&(n+=Math.abs(r))}return n}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?Fe*(Math.abs(e)/t):0}
87getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,s=n.data.labels||[],r=K0(t._parsed[e],n.options.locale);return{label:s[e]||"",value:r}}getMaxBorderWidth(e){let t=0;const n=this.chart;let s,r,o,a,l;if(!e){for(s=0,r=n.data.datasets.length;s<r;++s)if(n.isDatasetVisible(s)){o=n.getDatasetMeta(s),e=o.data,a=o.controller;break}}if(!e)return 0;for(s=0,r=e.length;s<r;++s)l=a.resolveDataElementOptions(s),l.borderAlign!=="inner"&&(t=Math.max(t,l.borderWidth||0,l.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,s=e.length;n<s;++n){const r=this.resolveDataElementOptions(n);t=Math.max(t,r.offset||0,r.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max(It(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}O(mc,"id","doughnut"),O(mc,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),O(mc,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),O(mc,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:s}}=e.legend.options;return t.labels.map((r,o)=>{const l=e.getDatasetMeta(0).controller.getStyle(o);return{text:r,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:s,lineWidth:l.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}});class Ay extends ur{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:n,data:s=[],_dataset:r}=t,o=this.chart._animationsDisabled;let{start:a,count:l}=wW(t,s,o);this._drawStart=a,this._drawCount=l,_W(t)&&(a=0,l=s.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=s;const c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!o,options:c},e),this.updateElements(s,a,l,e)}updateElements(e,t,n,s){const r=s==="reset",{iScale:o,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,s),h=o.axis,p=a.axis,{spanGaps:m,segment:g}=this.options,v=Qh(m)?m:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||r||s==="none",_=t+n,x=e.length;let k=t>0&&this.getParsed(t-1);for(let S=0;S<x;++S){const T=e[S],E=w?T:{};if(S<t||S>=_){E.skip=!0;continue}const M=this.getParsed(S),A=Yt(M[p]),P=E[h]=o.getPixelForValue(M[h],S),L=E[p]=r||A?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,M,l):M[p],S);E.skip=isNaN(P)||isNaN(L)||A,E.stop=S>0&&Math.abs(M[h]-k[h])>v,g&&(E.parsed=M,E.raw=c.data[S]),d&&(E.options=u||this.resolveDataElementOptions(S,T.active?"active":s)),w||this.updateElement(T,S,E,s),k=M}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,s=e.data||[];if(!s.length)return n;const r=s[0].size(this.resolveDataElementOptions(0)),o=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(n,r,o)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}O(Ay,"id","line"),O(Ay,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),O(Ay,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class _p extends ur{constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,s=n.data.labels||[],r=K0(t._parsed[e].r,n.options.locale);return{label:s[e]||"",value:r}}parseObjectData(e,t,n,s){return AW.bind(this)(e,t,n,s)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((n,s)=>{const r=this.getParsed(s).r;!isNaN(r)&&this.chart.getDataVisibility(s)&&(r<t.min&&(t.min=r),r>t.max&&(t.max=r))}),t}_updateRadius(){const e=this.chart,t=e.chartArea,n=e.options,s=Math.min(t.right-t.left,t.bottom-t.top),r=Math.max(s/2,0),o=Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0),a=(r-o)/e.getVisibleDatasetCount();this.outerRadius=r-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(e,t,n,s){const r=s==="reset",o=this.chart,l=o.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,h=c.getIndexAngle(0)-.5*Be;let p=h,m;const g=360/this.countVisibleElements();for(m=0;m<t;++m)p+=this._computeAngle(m,s,g);for(m=t;m<t+n;m++){const v=e[m];let w=p,_=p+this._computeAngle(m,s,g),x=o.getDataVisibility(m)?c.getDistanceFromCenterForValue(this.getParsed(m).r):0;p=_,r&&(l.animateScale&&(x=0),l.animateRotate&&(w=_=h));const k={x:u,y:d,innerRadius:0,outerRadius:x,startAngle:w,endAngle:_,options:this.resolveDataElementOptions(m,v.active?"active":s)};this.updateElement(v,m,k,s)}}countVisibleElements(){const e=this._cachedMeta;let t=0;return e.data.forEach((n,s)=>{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&t++}),t}_computeAngle(e,t,n){return this.chart.getDataVisibility(e)?ar(this.resolveDataElementOptions(e,t).angle||n):0}}O(_p,"id","polarArea"),O(_p,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),O(_p,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:s}}=e.legend.options;return t.labels.map((r,o)=>{const l=e.getDatasetMeta(0).controller.getStyle(o);return{text:r,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:s,lineWidth:l.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update(
87)}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class nM extends mc{}O(nM,"id","pie"),O(nM,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class My extends ur{getLabelAndValue(e){const t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}parseObjectData(e,t,n,s){return AW.bind(this)(e,t,n,s)}update(e){const t=this._cachedMeta,n=t.dataset,s=t.data||[],r=t.iScale.getLabels();if(n.points=s,e!=="resize"){const o=this.resolveDatasetElementOptions(e);this.options.showLine||(o.borderWidth=0);const a={_loop:!0,_fullLoop:r.length===s.length,options:o};this.updateElement(n,void 0,a,e)}this.updateElements(s,0,s.length,e)}updateElements(e,t,n,s){const r=this._cachedMeta.rScale,o=s==="reset";for(let a=t;a<t+n;a++){const l=e[a],c=this.resolveDataElementOptions(a,l.active?"active":s),u=r.getPointPositionForValue(a,this.getParsed(a).r),d=o?r.xCenter:u.x,h=o?r.yCenter:u.y,p={x:d,y:h,angle:u.angle,skip:isNaN(d)||isNaN(h),options:c};this.updateElement(l,a,p,s)}}}O(My,"id","radar"),O(My,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),O(My,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Oy extends ur{getLabelAndValue(e){const t=this._cachedMeta,n=this.chart.data.labels||[],{xScale:s,yScale:r}=t,o=this.getParsed(e),a=s.getLabelForValue(o.x),l=r.getLabelForValue(o.y);return{label:n[e]||"",value:"("+a+", "+l+")"}}update(e){const t=this._cachedMeta,{data:n=[]}=t,s=this.chart._animationsDisabled;let{start:r,count:o}=wW(t,n,s);if(this._drawStart=r,this._drawCount=o,_W(t)&&(r=0,o=n.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:a,_dataset:l}=t;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!l._decimated,a.points=n;const c=this.resolveDatasetElementOptions(e);c.segment=this.options.segment,this.updateElement(a,void 0,{animated:!s,options:c},e)}else this.datasetElementType&&(delete t.dataset,this.datasetElementType=!1);this.updateElements(n,r,o,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,t,n,s){const r=s==="reset",{iScale:o,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(t,s),d=this.getSharedOptions(u),h=this.includeOptions(s,d),p=o.axis,m=a.axis,{spanGaps:g,segment:v}=this.options,w=Qh(g)?g:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||r||s==="none";let x=t>0&&this.getParsed(t-1);for(let k=t;k<t+n;++k){const S=e[k],T=this.getParsed(k),E=_?S:{},M=Yt(T[m]),A=E[p]=o.getPixelForValue(T[p],k),P=E[m]=r||M?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,T,l):T[m],k);E.skip=isNaN(A)||isNaN(P)||M,E.stop=k>0&&Math.abs(T[p]-x[p])>w,v&&(E.parsed=T,E.raw=c.data[k]),h&&(E.options=d||this.resolveDataElementOptions(k,S.active?"active":s)),_||this.updateElement(S,k,E,s),x=T}this.updateSharedOptions(d,s,u)}getMaxOverflow(){const e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let a=0;for(let l=t.length-1;l>=0;--l)a=Math.max(a,t[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const n=e.dataset,s=n.options&&n.options.borderWidth||0;if(!t.length)return s;const r=t[0].size(this.resolveDataElementOptions(0)),o=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(s,r,o)/2}}O(Oy,"id","scatter"),O(Oy,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),O(Oy,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var jnt=Object.freeze({__proto__:null,BarController:Py,BubbleController:Cy,DoughnutController:mc,LineController:Ay,PieController:nM,PolarAreaController:_p,RadarController:My,ScatterController:Oy});function Kl(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class q${constructor(e){O(this,"options");this.options=e||{}}static override(e){Object.assign(q$.prototype,e)}init(){}formats(){return Kl()}parse(){return Kl()}format(){return Kl()}add(){return Kl()}diff(){return Kl()}startOf(){return Kl()}endOf(){return Kl()}}var Unt={_date:q$};function Gnt(i,e,t,n){const{controller:s,data:r,_sorted:o}=i,a=s._cachedMeta.iScale,l=i.dataset&&i.dataset.options?i.dataset.options.spanGaps:null;if(a&&e===a.axis&&e!=="r"&&o&&r.length){const c=a._reversePixels?mit:Jo;if(n){if(s._sharedOptions){const u=r[0],d=typeof u.getRange=="function"&&u.getRange(e);if(d){const h=c(r,e,t-d),p=c(r,e,t+d);return{lo:h.lo,hi:p.hi}}}}else{const u=c(r,e,t);if(l){const{vScale:d}=s._cachedMeta,{_parsed:h}=i,p=h.slice(0,u.lo+1).reverse().findIndex(g=>!Yt(g[d.axis]));u.lo-=Math.max(0,p);const m=h.slice(u.hi).findIndex(g=>!Yt(g[d.axis]));u.hi+=Math.max(0,m)}return u}}return{lo:0,hi:r.length-1}}function X0(i,e,t,n,s){const r=i.getSortedVisibleDatasetMetas(),o=t[e];for(let a=0,l=r.length;a<l;++a){const{index:c,data:u}=r[a],{lo:d,hi:h}=Gnt(r[a],e,o,s);for(let p=d;p<=h;++p){const m=u[p];m.skip||n(m,c,p)}}}function Ynt(i){const e=i.indexOf("x")!==-1,t=i.indexOf("y")!==-1;return function(n,s){const r=e?Math.abs(n.x-s.x):0,o=t?Math.abs(n.y-s.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}function yP(i,e,t,n,s){const r=[];return!s&&!i.isPointInArea(e)||X0(i,t,e,function(a,l,c){!s&&!Zo(a,i.chartArea,0)||a.inRange(e.x,e.y,n)&&r.push({element:a,datasetIndex:l,index:c})},!0),r}function Knt(i,e,t,n){let s=[];function r(o,a,l){const{startAngle:c,endAngle:u}=o.getProps(["startAngle","endAngle"],n),{angle:d}=gW(o,{x:e.x,y:e.y});Gp(d,c,u)&&s.push({element:o,datasetIndex:a,index:l})}return X0(i,t,e,r),s}function Xnt(i,e,t,n,s,r){let o=[];const a=Ynt(t);let l=Number.POSITIVE_INFINITY;function c(u,d,h){const p=u.inRange(e.x,e.y,s);if(n&&!p)return;const m=u.getCenterPoint(s);if(!(!!r||i.isPointInArea(m))&&!p)return;const v=a(e,m);v<l?(o=[{element:u,datasetIndex:d,index:h}],l=v):v===l&&o.push({element:u,datasetIndex:d,index:h})}return X0(i,t,e,c),o}function vP(i,e,t,n,s,r){return!r&&!i.isPointInArea(e)?[]:t==="r"&&!n?Knt(i,e,t,s):Xnt(i,e,t,n,s,r)}function QD(i,e,t,n,s){const r=[],o=t==="x"?"inXRange":"inYRange";let a=!1;return X0(i,t,e,(l,c,u)=>{l[o]&&l[o](e[t],s)&&(r.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(e.x,e.y,s))}),n&&!a?[]:r}var Qnt={evaluateInteractionItems:X0,modes:{index(i,e,t,n){const s=rc(e,i),r=t.axis||"x",o=t.includeInvisible||!1,a=t.intersect?yP(i,s,r,n,o):vP(i,s,r,!1,n,o),l=[];
87return a.length?(i.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(i,e,t,n){const s=rc(e,i),r=t.axis||"xy",o=t.includeInvisible||!1;let a=t.intersect?yP(i,s,r,n,o):vP(i,s,r,!1,n,o);if(a.length>0){const l=a[0].datasetIndex,c=i.getDatasetMeta(l).data;a=[];for(let u=0;u<c.length;++u)a.push({element:c[u],datasetIndex:l,index:u})}return a},point(i,e,t,n){const s=rc(e,i),r=t.axis||"xy",o=t.includeInvisible||!1;return yP(i,s,r,n,o)},nearest(i,e,t,n){const s=rc(e,i),r=t.axis||"xy",o=t.includeInvisible||!1;return vP(i,s,r,t.intersect,n,o)},x(i,e,t,n){const s=rc(e,i);return QD(i,s,"x",t.intersect,n)},y(i,e,t,n){const s=rc(e,i);return QD(i,s,"y",t.intersect,n)}}};const BW=["left","top","right","bottom"];function Pf(i,e){return i.filter(t=>t.pos===e)}function JD(i,e){return i.filter(t=>BW.indexOf(t.pos)===-1&&t.box.axis===e)}function Cf(i,e){return i.sort((t,n)=>{const s=e?n:t,r=e?t:n;return s.weight===r.weight?s.index-r.index:s.weight-r.weight})}function Jnt(i){const e=[];let t,n,s,r,o,a;for(t=0,n=(i||[]).length;t<n;++t)s=i[t],{position:r,options:{stack:o,stackWeight:a=1}}=s,e.push({index:t,box:s,pos:r,horizontal:s.isHorizontal(),weight:s.weight,stack:o&&r+o,stackWeight:a});return e}function Znt(i){const e={};for(const t of i){const{stack:n,pos:s,stackWeight:r}=t;if(!n||!BW.includes(s))continue;const o=e[n]||(e[n]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=r}return e}function tst(i,e){const t=Znt(i),{vBoxMaxWidth:n,hBoxMaxHeight:s}=e;let r,o,a;for(r=0,o=i.length;r<o;++r){a=i[r];const{fullSize:l}=a.box,c=t[a.stack],u=c&&a.stackWeight/c.weight;a.horizontal?(a.width=u?u*n:l&&e.availableWidth,a.height=s):(a.width=n,a.height=u?u*s:l&&e.availableHeight)}return t}function est(i){const e=Jnt(i),t=Cf(e.filter(c=>c.box.fullSize),!0),n=Cf(Pf(e,"left"),!0),s=Cf(Pf(e,"right")),r=Cf(Pf(e,"top"),!0),o=Cf(Pf(e,"bottom")),a=JD(e,"x"),l=JD(e,"y");return{fullSize:t,leftAndTop:n.concat(r),rightAndBottom:s.concat(l).concat(o).concat(a),chartArea:Pf(e,"chartArea"),vertical:n.concat(s).concat(l),horizontal:r.concat(o).concat(a)}}function ZD(i,e,t,n){return Math.max(i[t],e[t])+Math.max(i[n],e[n])}function zW(i,e){i.top=Math.max(i.top,e.top),i.left=Math.max(i.left,e.left),i.bottom=Math.max(i.bottom,e.bottom),i.right=Math.max(i.right,e.right)}function ist(i,e,t,n){const{pos:s,box:r}=t,o=i.maxPadding;if(!Kt(s)){t.size&&(i[s]-=t.size);const d=n[t.stack]||{size:0,count:1};d.size=Math.max(d.size,t.horizontal?r.height:r.width),t.size=d.size/d.count,i[s]+=t.size}r.getPadding&&zW(o,r.getPadding());const a=Math.max(0,e.outerWidth-ZD(o,i,"left","right")),l=Math.max(0,e.outerHeight-ZD(o,i,"top","bottom")),c=a!==i.w,u=l!==i.h;return i.w=a,i.h=l,t.horizontal?{same:c,other:u}:{same:u,other:c}}function nst(i){const e=i.maxPadding;function t(n){const s=Math.max(e[n]-i[n],0);return i[n]+=s,s}i.y+=t("top"),i.x+=t("left"),t("right"),t("bottom")}function sst(i,e){const t=e.maxPadding;function n(s){const r={left:0,top:0,right:0,bottom:0};return s.forEach(o=>{r[o]=Math.max(e[o],t[o])}),r}return n(i?["left","right"]:["top","bottom"])}function Gf(i,e,t,n){const s=[];let r,o,a,l,c,u;for(r=0,o=i.length,c=0;r<o;++r){a=i[r],l=a.box,l.update(a.width||e.w,a.height||e.h,sst(a.horizontal,e));const{same:d,other:h}=ist(e,t,a,n);c|=d&&s.length,u=u||h,l.fullSize||s.push(a)}return c&&Gf(s,e,t,n)||u}function Lb(i,e,t,n,s){i.top=t,i.left=e,i.right=e+n,i.bottom=t+s,i.width=n,i.height=s}function tR(i,e,t,n){const s=t.padding;let{x:r,y:o}=e;for(const a of i){const l=a.box,c=n[a.stack]||{count:1,placed:0,weight:1},u=a.stackWeight/c.weight||1;if(a.horizontal){const d=e.w*u,h=c.size||l.height;Up(c.start)&&(o=c.start),l.fullSize?Lb(l,s.left,o,t.outerWidth-s.right-s.left,h):Lb(l,e.left+c.placed,o,d,h),c.start=o,c.placed+=d,o=l.bottom}else{const d=e.h*u,h=c.size||l.width;Up(c.start)&&(r=c.start),l.fullSize?Lb(l,r,s.top,h,t.outerHeight-s.bottom-s.top):Lb(l,r,e.top+c.placed,h,d),c.start=r,c.placed+=d,r=l.right}}e.x=r,e.y=o}var sn={addBox(i,e){i.boxes||(i.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},i.boxes.push(e)},removeBox(i,e){const t=i.boxes?i.boxes.indexOf(e):-1;t!==-1&&i.boxes.splice(t,1)},configure(i,e,t){e.fullSize=t.fullSize,e.position=t.position,e.weight=t.weight},update(i,e,t,n){if(!i)return;const s=ln(i.options.layout.padding),r=Math.max(e-s.width,0),o=Math.max(t-s.height,0),a=est(i.boxes),l=a.vertical,c=a.horizontal;he(i.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});const u=l.reduce((g,v)=>v.box.options&&v.box.options.display===!1?g:g+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:t,padding:s,availableWidth:r,availableHeight:o,vBoxMaxWidth:r/2/u,hBoxMaxHeight:o/2}),h=Object.assign({},s);zW(h,ln(n));const p=Object.assign({maxPadding:h,w:r,h:o,x:s.left,y:s.top},s),m=tst(l.concat(c),d);Gf(a.fullSize,p,d,m),Gf(l,p,d,m),Gf(c,p,d,m)&&Gf(l,p,d,m),nst(p),tR(a.leftAndTop,p,d,m),p.x+=p.w,p.y+=p.h,tR(a.rightAndBottom,p,d,m),i.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},he(a.chartArea,g=>{const v=g.box;Object.assign(v,i.chartArea),v.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class VW{acquireContext(e,t){}releaseContext(e){return!1}
87addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,s){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,s?Math.floor(t/s):n)}}isAttached(e){return!0}updateConfig(e){}}class rst extends VW{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const $y="$chartjs",ost={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},eR=i=>i===null||i==="";function ast(i,e){const t=i.style,n=i.getAttribute("height"),s=i.getAttribute("width");if(i[$y]={initial:{height:n,width:s,style:{display:t.display,height:t.height,width:t.width}}},t.display=t.display||"block",t.boxSizing=t.boxSizing||"border-box",eR(s)){const r=ND(i,"width");r!==void 0&&(i.width=r)}if(eR(n))if(i.style.height==="")i.height=i.width/(e||2);else{const r=ND(i,"height");r!==void 0&&(i.height=r)}return i}const qW=cnt?{passive:!0}:!1;function lst(i,e,t){i&&i.addEventListener(e,t,qW)}function cst(i,e,t){i&&i.canvas&&i.canvas.removeEventListener(e,t,qW)}function ust(i,e){const t=ost[i.type]||i.type,{x:n,y:s}=rc(i,e);return{type:t,chart:e,native:i,x:n!==void 0?n:null,y:s!==void 0?s:null}}function Av(i,e){for(const t of i)if(t===e||t.contains(e))return!0}function dst(i,e,t){const n=i.canvas,s=new MutationObserver(r=>{let o=!1;for(const a of r)o=o||Av(a.addedNodes,n),o=o&&!Av(a.removedNodes,n);o&&t()});return s.observe(document,{childList:!0,subtree:!0}),s}function hst(i,e,t){const n=i.canvas,s=new MutationObserver(r=>{let o=!1;for(const a of r)o=o||Av(a.removedNodes,n),o=o&&!Av(a.addedNodes,n);o&&t()});return s.observe(document,{childList:!0,subtree:!0}),s}const Kp=new Map;let iR=0;function HW(){const i=window.devicePixelRatio;i!==iR&&(iR=i,Kp.forEach((e,t)=>{t.currentDevicePixelRatio!==i&&e()}))}function fst(i,e){Kp.size||window.addEventListener("resize",HW),Kp.set(i,e)}function pst(i){Kp.delete(i),Kp.size||window.removeEventListener("resize",HW)}function gst(i,e,t){const n=i.canvas,s=n&&V$(n);if(!s)return;const r=vW((a,l)=>{const c=s.clientWidth;t(a,l),c<s.clientWidth&&t()},window),o=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||r(c,u)});return o.observe(s),fst(i,r),o}function wP(i,e,t){t&&t.disconnect(),e==="resize"&&pst(i)}function mst(i,e,t){const n=i.canvas,s=vW(r=>{i.ctx!==null&&t(ust(r,i))},i);return lst(n,e,s),s}class bst extends VW{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(ast(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[$y])return!1;const n=t[$y].initial;["height","width"].forEach(r=>{const o=n[r];Yt(o)?t.removeAttribute(r):t.setAttribute(r,o)});const s=n.style||{};return Object.keys(s).forEach(r=>{t.style[r]=s[r]}),t.width=t.width,delete t[$y],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const s=e.$proxies||(e.$proxies={}),o={attach:dst,detach:hst,resize:gst}[t]||mst;s[t]=o(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),s=n[t];if(!s)return;({attach:wP,detach:wP,resize:wP}[t]||cst)(e,t,s),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,s){return lnt(e,t,n,s)}isAttached(e){const t=e&&V$(e);return!!(t&&t.isConnected)}}function yst(i){return!z$()||typeof OffscreenCanvas<"u"&&i instanceof OffscreenCanvas?rst:bst}var qb;let ua=(qb=class{constructor(){O(this,"x");O(this,"y");O(this,"active",!1);O(this,"options");O(this,"$animations")}tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return Qh(this.x)&&Qh(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const s={};return e.forEach(r=>{s[r]=n[r]&&n[r].active()?n[r]._to:this[r]}),s}},O(qb,"defaults",{}),O(qb,"defaultRoutes"),qb);function vst(i,e){const t=i.options.ticks,n=wst(i),s=Math.min(t.maxTicksLimit||n,n),r=t.major.enabled?xst(e):[],o=r.length,a=r[0],l=r[o-1],c=[];if(o>s)return Sst(e,c,r,o/s),c;const u=_st(r,e,s);if(o>0){let d,h;const p=o>1?Math.round((l-a)/(o-1)):null;for(Ib(e,c,u,Yt(p)?0:a-p,a),d=0,h=o-1;d<h;d++)Ib(e,c,u,r[d],r[d+1]);return Ib(e,c,u,l,Yt(p)?e.length:l+p),c}return Ib(e,c,u),c}function wst(i){const e=i.options.offset,t=i._tickSize(),n=i._length/t+(e?0:1),s=i._maxLength/t;return Math.floor(Math.min(n,s))}function _st(i,e,t){const n=Tst(i),s=e.length/t;if(!n)return Math.max(s,1);const r=dit(n);for(let o=0,a=r.length-1;o<a;
87o++){const l=r[o];if(l>s)return l}return Math.max(s,1)}function xst(i){const e=[];let t,n;for(t=0,n=i.length;t<n;t++)i[t].major&&e.push(t);return e}function Sst(i,e,t,n){let s=0,r=t[0],o;for(n=Math.ceil(n),o=0;o<i.length;o++)o===r&&(e.push(i[o]),s++,r=t[s*n])}function Ib(i,e,t,n,s){const r=It(n,0),o=Math.min(It(s,i.length),i.length);let a=0,l,c,u;for(t=Math.ceil(t),s&&(l=s-n,t=l/Math.floor(l/t)),u=r;u<0;)a++,u=Math.round(r+a*t);for(c=Math.max(r,0);c<o;c++)c===u&&(e.push(i[c]),a++,u=Math.round(r+a*t))}function Tst(i){const e=i.length;let t,n;if(e<2)return!1;for(n=i[0],t=1;t<e;++t)if(i[t]-i[t-1]!==n)return!1;return n}const kst=i=>i==="left"?"right":i==="right"?"left":i,nR=(i,e,t)=>e==="top"||e==="left"?i[e]+t:i[e]-t,sR=(i,e)=>Math.min(e||i,i);function rR(i,e){const t=[],n=i.length/e,s=i.length;let r=0;for(;r<s;r+=n)t.push(i[Math.floor(r)]);return t}function Est(i,e,t){const n=i.ticks.length,s=Math.min(e,n-1),r=i._startPixel,o=i._endPixel,a=1e-6;let l=i.getPixelForTick(s),c;if(!(t&&(n===1?c=Math.max(l-r,o-l):e===0?c=(i.getPixelForTick(1)-l)/2:c=(l-i.getPixelForTick(s-1))/2,l+=s<e?c:-c,l<r-a||l>o+a)))return l}function Pst(i,e){he(i,t=>{const n=t.gc,s=n.length/2;let r;if(s>e){for(r=0;r<s;++r)delete t.data[n[r]];n.splice(0,s)}})}function Af(i){return i.drawTicks?i.tickLength:0}function oR(i,e){if(!i.display)return 0;const t=xi(i.font,e),n=ln(i.padding);return(De(i.text)?i.text.length:1)*t.lineHeight+n.height}function Cst(i,e){return Il(i,{scale:e,type:"scale"})}function Ast(i,e,t){return Il(i,{tick:t,index:e,type:"tick"})}function Mst(i,e,t){let n=I$(i);return(t&&e!=="right"||!t&&e==="right")&&(n=kst(n)),n}function Ost(i,e,t,n){const{top:s,left:r,bottom:o,right:a,chart:l}=i,{chartArea:c,scales:u}=l;let d=0,h,p,m;const g=o-s,v=a-r;if(i.isHorizontal()){if(p=Qi(n,r,a),Kt(t)){const w=Object.keys(t)[0],_=t[w];m=u[w].getPixelForValue(_)+g-e}else t==="center"?m=(c.bottom+c.top)/2+g-e:m=nR(i,t,e);h=a-r}else{if(Kt(t)){const w=Object.keys(t)[0],_=t[w];p=u[w].getPixelForValue(_)-v+e}else t==="center"?p=(c.left+c.right)/2-v+e:p=nR(i,t,e);m=Qi(n,o,s),d=t==="left"?-ui:ui}return{titleX:p,titleY:m,maxWidth:h,rotation:d}}class Wu extends ua{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:s}=this;return e=es(e,Number.POSITIVE_INFINITY),t=es(t,Number.NEGATIVE_INFINITY),n=es(n,Number.POSITIVE_INFINITY),s=es(s,Number.NEGATIVE_INFINITY),{min:es(e,n),max:es(t,s),minDefined:si(e),maxDefined:si(t)}}getMinMax(e){let{min:t,max:n,minDefined:s,maxDefined:r}=this.getUserBounds(),o;if(s&&r)return{min:t,max:n};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)o=a[l].controller.getMinMax(this,e),s||(t=Math.min(t,o.min)),r||(n=Math.max(n,o.max));return t=r&&t>n?n:t,n=s&&t>n?t:n,{min:es(t,es(n,t)),max:es(n,es(t,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}
87getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ke(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:s,grace:r,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=zit(this,r,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?rR(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=vst(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,t,n;this.isHorizontal()?(t=this.left,n=this.right):(t=this.top,n=this.bottom,e=!e),this._startPixel=t,this._endPixel=n,this._reversePixels=e,this._length=n-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){ke(this.options.afterUpdate,[this])}beforeSetDimensions(){ke(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){ke(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),ke(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ke(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,s,r;for(n=0,s=e.length;n<s;n++)r=e[n],r.label=ke(t.callback,[r.value,n,e],this)}afterTickToLabelConversion(){ke(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ke(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=sR(this.ticks.length,e.ticks.maxTicksLimit),s=t.minRotation||0,r=t.maxRotation;let o=s,a,l,c;if(!this._isVisible()||!t.display||s>=r||n<=1||!this.isHorizontal()){this.labelRotation=s;return}const u=this._getLabelSizes(),d=u.widest.width,h=u.highest.height,p=Ri(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/n:p/(n-1),d+6>a&&(a=p/(n-(e.offset?.5:1)),l=this.maxHeight-Af(e.grid)-t.padding-oR(e.title,this.chart.options.font),c=Math.sqrt(d*d+h*h),o=$$(Math.min(Math.asin(Ri((u.highest.height+6)/a,-1,1)),Math.asin(Ri(l/c,-1,1))-Math.asin(Ri(h/c,-1,1)))),o=Math.max(s,Math.min(r,o))),this.labelRotation=o}afterCalculateLabelRotation(){ke(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ke(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:s,grid:r}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const l=oR(s,t.options.font);if(a?(e.width=this.maxWidth,e.height=Af(r)+l):(e.height=this.maxHeight,e.width=Af(r)+l),n.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:h}=this._getLabelSizes(),p=n.padding*2,m=ar(this.labelRotation),g=Math.cos(m),v=Math.sin(m);if(a){const w=n.mirror?0:v*d.width+g*h.height;e.height=Math.min(this.maxHeight,e.height+w+p)}else{const w=n.mirror?0:g*d.width+v*h.height;e.width=Math.min(this.maxWidth,e.width+w+p)}this._calculatePadding(c,u,v,g)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,s){const{ticks:{align:r,padding:o},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,p=0;l?c?(h=s*e.width,p=n*t.height):(h=n*e.height,p=s*t.width):r==="start"?p=t.width:r==="end"?h=e.width:r!=="inner"&&(h=e.width/2,p=t.width/2),this.paddingLeft=Math.max((h-u+o)*this.width/(this.width-u),0),this.paddingRight=Math.max((p-d+o)*this.width/(this.width-d),0)}else{let u=t.height/2,d=e.height/2;r==="start"?(u=0,d=e.height):r==="end"&&(u=t.height,d=0),this.paddingTop=u+o,this.paddingBottom=
87d+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){ke(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return t==="top"||t==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let t,n;for(t=0,n=e.length;t<n;t++)Yt(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=rR(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){const{ctx:s,_longestTextCache:r}=this,o=[],a=[],l=Math.floor(t/sR(t,n));let c=0,u=0,d,h,p,m,g,v,w,_,x,k,S;for(d=0;d<t;d+=l){if(m=e[d].label,g=this._resolveTickFontOptions(d),s.font=v=g.string,w=r[v]=r[v]||{data:{},gc:[]},_=g.lineHeight,x=k=0,!Yt(m)&&!De(m))x=Pv(s,w.data,w.gc,x,m),k=_;else if(De(m))for(h=0,p=m.length;h<p;++h)S=m[h],!Yt(S)&&!De(S)&&(x=Pv(s,w.data,w.gc,x,S),k+=_);o.push(x),a.push(k),c=Math.max(x,c),u=Math.max(k,u)}Pst(r,t);const T=o.indexOf(c),E=a.indexOf(u),M=A=>({width:o[A]||0,height:a[A]||0});return{first:M(0),last:M(t-1),widest:M(T),highest:M(E),widths:o,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return git(this._alignToPixels?Yl(this.chart,t,0):t)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=Ast(this.getContext(),e,n))}return this.$context||(this.$context=Cst(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,t=ar(this.labelRotation),n=Math.abs(Math.cos(t)),s=Math.abs(Math.sin(t)),r=this._getLabelSizes(),o=e.autoSkipPadding||0,a=r?r.widest.width+o:0,l=r?r.highest.height+o:0;return this.isHorizontal()?l*n>a*s?a/n:l/s:l*s<a*n?l/n:a/s}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,s=this.options,{grid:r,position:o,border:a}=s,l=r.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),h=Af(r),p=[],m=a.setContext(this.getContext()),g=m.display?m.width:0,v=g/2,w=function(j){return Yl(n,j,g)};let _,x,k,S,T,E,M,A,P,L,I,z;if(o==="top")_=w(this.bottom),E=this.bottom-h,A=_-v,L=w(e.top)+v,z=e.bottom;else if(o==="bottom")_=w(this.top),L=e.top,z=w(e.bottom)-v,E=_+v,A=this.top+h;else if(o==="left")_=w(this.right),T=this.right-h,M=_-v,P=w(e.left)+v,I=e.right;else if(o==="right")_=w(this.left),P=e.left,I=w(e.right)-v,T=_+v,M=this.left+h;else if(t==="x"){if(o==="center")_=w((e.top+e.bottom)/2+.5);else if(Kt(o)){const j=Object.keys(o)[0],$=o[j];_=w(this.chart.scales[j].getPixelForValue($))}L=e.top,z=e.bottom,E=_+v,A=E+h}else if(t==="y"){if(o==="center")_=w((e.left+e.right)/2);else if(Kt(o)){const j=Object.keys(o)[0],$=o[j];_=w(this.chart.scales[j].getPixelForValue($))}T=_-v,M=T-h,P=e.left,I=e.right}const q=It(s.ticks.maxTicksLimit,d),H=Math.max(1,Math.ceil(d/q));for(x=0;x<d;x+=H){const j=this.getContext(x),$=r.setContext(j),B=a.setContext(j),K=$.lineWidth,N=$.color,J=B.dash||[],et=B.dashOffset,Z=$.tickWidth,U=$.tickColor,tt=$.tickBorderDash||[],it=$.tickBorderDashOffset;k=Est(this,x,l),k!==void 0&&(S=Yl(n,k,K),c?T=M=P=I=S:E=A=L=z=S,p.push({tx1:T,ty1:E,tx2:M,ty2:A,x1:P,y1:L,x2:I,y2:z,width:K,color:N,borderDash:J,borderDashOffset:et,tickWidth:Z,tickColor:U,tickBorderDash:tt,tickBorderDashOffset:it}))}return this._ticksLength=d,this._borderValue=_,p}_computeLabelItems(e){const t=this.axis,n=this.options,{position:s,ticks:r}=n,o=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}
87=r,h=Af(n.grid),p=h+u,m=d?-u:p,g=-ar(this.labelRotation),v=[];let w,_,x,k,S,T,E,M,A,P,L,I,z="middle";if(s==="top")T=this.bottom-m,E=this._getXAxisLabelAlignment();else if(s==="bottom")T=this.top+m,E=this._getXAxisLabelAlignment();else if(s==="left"){const H=this._getYAxisLabelAlignment(h);E=H.textAlign,S=H.x}else if(s==="right"){const H=this._getYAxisLabelAlignment(h);E=H.textAlign,S=H.x}else if(t==="x"){if(s==="center")T=(e.top+e.bottom)/2+p;else if(Kt(s)){const H=Object.keys(s)[0],j=s[H];T=this.chart.scales[H].getPixelForValue(j)+p}E=this._getXAxisLabelAlignment()}else if(t==="y"){if(s==="center")S=(e.left+e.right)/2-p;else if(Kt(s)){const H=Object.keys(s)[0],j=s[H];S=this.chart.scales[H].getPixelForValue(j)}E=this._getYAxisLabelAlignment(h).textAlign}t==="y"&&(l==="start"?z="top":l==="end"&&(z="bottom"));const q=this._getLabelSizes();for(w=0,_=a.length;w<_;++w){x=a[w],k=x.label;const H=r.setContext(this.getContext(w));M=this.getPixelForTick(w)+r.labelOffset,A=this._resolveTickFontOptions(w),P=A.lineHeight,L=De(k)?k.length:1;const j=L/2,$=H.color,B=H.textStrokeColor,K=H.textStrokeWidth;let N=E;o?(S=M,E==="inner"&&(w===_-1?N=this.options.reverse?"left":"right":w===0?N=this.options.reverse?"right":"left":N="center"),s==="top"?c==="near"||g!==0?I=-L*P+P/2:c==="center"?I=-q.highest.height/2-j*P+P:I=-q.highest.height+P/2:c==="near"||g!==0?I=P/2:c==="center"?I=q.highest.height/2-j*P:I=q.highest.height-L*P,d&&(I*=-1),g!==0&&!H.showLabelBackdrop&&(S+=P/2*Math.sin(g))):(T=M,I=(1-L)*P/2);let J;if(H.showLabelBackdrop){const et=ln(H.backdropPadding),Z=q.heights[w],U=q.widths[w];let tt=I-et.top,it=0-et.left;switch(z){case"middle":tt-=Z/2;break;case"bottom":tt-=Z;break}switch(E){case"center":it-=U/2;break;case"right":it-=U;break;case"inner":w===_-1?it-=U:w>0&&(it-=U/2);break}J={left:it,top:tt,width:U+et.width,height:Z+et.height,color:H.backdropColor}}v.push({label:k,font:A,textOffset:I,options:{rotation:g,color:$,strokeColor:B,strokeWidth:K,textAlign:N,textBaseline:z,translation:[S,T],backdrop:J}})}return v}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-ar(this.labelRotation))return e==="top"?"left":"right";let s="center";return t.align==="start"?s="left":t.align==="end"?s="right":t.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:s,padding:r}}=this.options,o=this._getLabelSizes(),a=e+r,l=o.widest.width;let c,u;return t==="left"?s?(u=this.right+r,n==="near"?c="left":n==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,n==="near"?c="right":n==="center"?(c="center",u-=l/2):(c="left",u=this.left)):t==="right"?s?(u=this.left+r,n==="near"?c="right":n==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,n==="near"?c="left":n==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;if(t==="left"||t==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};
87if(t==="top"||t==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:s,width:r,height:o}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,s,r,o),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const s=this.ticks.findIndex(r=>r.value===e);return s>=0?t.setContext(this.getContext(s)).lineWidth:0}drawGrid(e){const t=this.options.grid,n=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,o;const a=(l,c,u)=>{!u.width||!u.color||(n.save(),n.lineWidth=u.width,n.strokeStyle=u.color,n.setLineDash(u.borderDash||[]),n.lineDashOffset=u.borderDashOffset,n.beginPath(),n.moveTo(l.x,l.y),n.lineTo(c.x,c.y),n.stroke(),n.restore())};if(t.display)for(r=0,o=s.length;r<o;++r){const l=s[r];t.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),t.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:n,grid:s}}=this,r=n.setContext(this.getContext()),o=n.display?r.width:0;if(!o)return;const a=s.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,h;this.isHorizontal()?(c=Yl(e,this.left,o)-o/2,u=Yl(e,this.right,a)+a/2,d=h=l):(d=Yl(e,this.top,o)-o/2,h=Yl(e,this.bottom,a)+a/2,c=u=l),t.save(),t.lineWidth=r.width,t.strokeStyle=r.color,t.beginPath(),t.moveTo(c,d),t.lineTo(u,h),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const n=this.ctx,s=this._computeLabelArea();s&&sE(n,s);const r=this.getLabelItems(e);for(const o of r){const a=o.options,l=o.font,c=o.label,u=o.textOffset;Du(n,c,0,u,l,a)}s&&rE(n)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:s}}=this;if(!n.display)return;const r=xi(n.font),o=ln(n.padding),a=n.align;let l=r.lineHeight/2;t==="bottom"||t==="center"||Kt(t)?(l+=o.bottom,De(n.text)&&(l+=r.lineHeight*(n.text.length-1))):l+=o.top;const{titleX:c,titleY:u,maxWidth:d,rotation:h}=Ost(this,l,t,a);Du(e,n.text,0,0,r,{color:n.color,maxWidth:d,rotation:h,textAlign:Mst(a,t,s),textBaseline:"middle",translation:[c,u]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=It(e.grid&&e.grid.z,-1),s=It(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==Wu.prototype.draw?[{z:t,draw:r=>{this.draw(r)}}]:[{z:n,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:t,draw:r=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",s=[];let r,o;for(r=0,o=t.length;r<o;++r){const a=t[r];a[n]===this.id&&(!e||a.type===e)&&s.push(a)}return s}_resolveTickFontOptions(e){const t=this.options.ticks.setContext(this.getContext(e));return xi(t.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class Db{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;Ist(t)&&(n=this.register(t));const s=this.items,r=e.id,o=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+e);return r in s||(s[r]=e,$st(e,o,n),this.override&&je.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,s=this.scope;n in t&&delete t[n],s&&n in je[s]&&(delete je[s][n],this.override&&delete Iu[n])}}function $st(i,e,t){const n=jp(Object.create(null),[t?je.get(t):{},je.get(e),i.defaults]);je.set(e,n),i.defaultRoutes&&Lst(e,i.defaultRoutes),i.descriptors&&je.describe(e,i.descriptors)}function Lst(i,e){Object.keys(e).forEach(t=>{const n=t.split("."),s=n.pop(),r=[i].concat(n).join("."),o=e[t].split("."),a=o.pop(),l=o.join(".");je.route(r,s,l,a)})}function Ist(i){return"id"in i&&"defaults"in i}class Dst{constructor(){this.controllers=new Db(ur,"datasets",!0),this.elements=new Db(ua,"elements"),this.plugins=new Db(Object,"plugins"),this.scales=new Db(Wu,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}
87removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,n){[...t].forEach(s=>{const r=n||this._getRegistryForType(s);n||r.isForType(s)||r===this.plugins&&s.id?this._exec(e,r,s):he(s,o=>{const a=n||this._getRegistryForType(o);this._exec(e,a,o)})})}_exec(e,t,n){const s=O$(e);ke(n["before"+s],[],n),t[e](n),ke(n["after"+s],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const s=t.get(e);if(s===void 0)throw new Error('"'+e+'" is not a registered '+n+".");return s}}var _r=new Dst;class Rst{constructor(){this._init=[]}notify(e,t,n,s){t==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const r=s?this._descriptors(e).filter(s):this._descriptors(e),o=this._notify(r,e,t,n);return t==="afterDestroy"&&(this._notify(r,e,"stop"),this._notify(this._init,e,"uninstall")),o}_notify(e,t,n,s){s=s||{};for(const r of e){const o=r.plugin,a=o[n],l=[t,s,r.options];if(ke(a,l,o)===!1&&s.cancelable)return!1}return!0}invalidate(){Yt(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,s=It(n.options&&n.options.plugins,{}),r=Fst(n);return s===!1&&!t?[]:Bst(e,r,s,t)}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,s=(r,o)=>r.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(s(t,n),e,"stop"),this._notify(s(n,t),e,"start")}}function Fst(i){const e={},t=[],n=Object.keys(_r.plugins.items);for(let r=0;r<n.length;r++)t.push(_r.getPlugin(n[r]));const s=i.plugins||[];for(let r=0;r<s.length;r++){const o=s[r];t.indexOf(o)===-1&&(t.push(o),e[o.id]=!0)}return{plugins:t,localIds:e}}function Nst(i,e){return!e&&i===!1?null:i===!0?{}:i}function Bst(i,{plugins:e,localIds:t},n,s){const r=[],o=i.getContext();for(const a of e){const l=a.id,c=Nst(n[l],s);c!==null&&r.push({plugin:a,options:zst(i.config,{plugin:a,local:t[l]},c,o)})}return r}function zst(i,{plugin:e,local:t},n,s){const r=i.pluginScopeKeys(e),o=i.getOptionScopes(n,r);return t&&e.defaults&&o.push(e.defaults),i.createResolver(o,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function sM(i,e){const t=je.datasets[i]||{};return((e.datasets||{})[i]||{}).indexAxis||e.indexAxis||t.indexAxis||"x"}function Vst(i,e){let t=i;return i==="_index_"?t=e:i==="_value_"&&(t=e==="x"?"y":"x"),t}function qst(i,e){return i===e?"_index_":"_value_"}function aR(i){if(i==="x"||i==="y"||i==="r")return i}function Hst(i){if(i==="top"||i==="bottom")return"x";if(i==="left"||i==="right")return"y"}function rM(i,...e){if(aR(i))return i;for(const t of e){const n=t.axis||Hst(t.position)||i.length>1&&aR(i[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${i}' axis. Please provide 'axis' or 'position' option.`)}function lR(i,e,t){if(t[e+"AxisID"]===i)return{axis:e}}function Wst(i,e){if(e.data&&e.data.datasets){const t=e.data.datasets.filter(n=>n.xAxisID===i||n.yAxisID===i);if(t.length)return lR(i,"x",t[0])||lR(i,"y",t[0])}return{}}function jst(i,e){const t=Iu[i.type]||{scales:{}},n=e.scales||{},s=sM(i.type,e),r=Object.create(null);return Object.keys(n).forEach(o=>{const a=n[o];if(!Kt(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=rM(o,a,Wst(o,i),je.scales[a.type]),c=qst(l,s),u=t.scales||{};r[o]=bp(Object.create(null),[{axis:l},a,u[l],u[c]])}),i.data.datasets.forEach(o=>{const a=o.type||i.type,l=o.indexAxis||sM(a,e),u=(Iu[a]||{}).scales||{};Object.keys(u).forEach(d=>{const h=Vst(d,l),p=o[h+"AxisID"]||h;r[p]=r[p]||Object.create(null),bp(r[p],[{axis:h},n[p],u[d]])})}),Object.keys(r).forEach(o=>{const a=r[o];bp(a,[je.scales[a.type],je.scale])}),r}function WW(i){const e=i.options||(i.options={});e.plugins=It(e.plugins,{}),e.scales=jst(i,e)}function jW(i){return i=i||{},i.datasets=i.datasets||[],i.labels=i.labels||[],i}function Ust(i){return i=i||{},i.data=jW(i.data),WW(i),i}const cR=new Map,UW=new Set;function Rb(i,e){let t=cR.get(i);return t||(t=e(),cR.set(i,t),UW.add(t)),t}const Mf=(i,e,t)=>{const n=Pl(e,t);n!==void 0&&i.add(n)};class Gst{constructor(e){this._config=Ust(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=jW(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),WW(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Rb(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,t){return Rb(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,t){return Rb(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]])}pluginScopeKeys(e){const t=e.id,n=this.type;return Rb(`${n}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){const n=this._scopeCache;let s=n.get(e);return(!s||t)&&(s=new Map,n.set(e,s)),s}getOptionScopes(e,t,n){const{options:s,type:r}=this,o=this._cachedScopes(e,n),a=o.get(t);if(a)return a;const l=new Set;t.forEach(u=>{e&&(l.add(e),u.forEach(d=>Mf(l,e,d))),u.forEach(d=>Mf(l,s,d)),u.forEach(d=>Mf(l,Iu[r]||{},d)),u.forEach(d=>Mf(l,je,d)),u.forEach(d=>Mf(l,eM,d))});const c=Array.from(l);
87return c.length===0&&c.push(Object.create(null)),UW.has(t)&&o.set(t,c),c}chartOptionScopes(){const{options:e,type:t}=this;return[e,Iu[t]||{},je.datasets[t]||{},{type:t},je,eM]}resolveNamedOptions(e,t,n,s=[""]){const r={$shared:!0},{resolver:o,subPrefixes:a}=uR(this._resolverCache,e,s);let l=o;if(Kst(o,t)){r.$shared=!1,n=Cl(n)?n():n;const c=this.createResolver(e,n,a);l=Jh(o,n,c)}for(const c of t)r[c]=l[c];return r}createResolver(e,t,n=[""],s){const{resolver:r}=uR(this._resolverCache,e,n);return Kt(t)?Jh(r,t,void 0,s):r}}function uR(i,e,t){let n=i.get(e);n||(n=new Map,i.set(e,n));const s=t.join();let r=n.get(s);return r||(r={resolver:F$(e,t),subPrefixes:t.filter(a=>!a.toLowerCase().includes("hover"))},n.set(s,r)),r}const Yst=i=>Kt(i)&&Object.getOwnPropertyNames(i).some(e=>Cl(i[e]));function Kst(i,e){const{isScriptable:t,isIndexable:n}=kW(i);for(const s of e){const r=t(s),o=n(s),a=(o||r)&&i[s];if(r&&(Cl(a)||Yst(a))||o&&De(a))return!0}return!1}var Xst="4.4.8";const Qst=["top","bottom","left","right","chartArea"];function dR(i,e){return i==="top"||i==="bottom"||Qst.indexOf(i)===-1&&e==="x"}function hR(i,e){return function(t,n){return t[i]===n[i]?t[e]-n[e]:t[i]-n[i]}}function fR(i){const e=i.chart,t=e.options.animation;e.notifyPlugins("afterRender"),ke(t&&t.onComplete,[i],e)}function Jst(i){const e=i.chart,t=e.options.animation;ke(t&&t.onProgress,[i],e)}function GW(i){return z$()&&typeof i=="string"?i=document.getElementById(i):i&&i.length&&(i=i[0]),i&&i.canvas&&(i=i.canvas),i}const Ly={},pR=i=>{const e=GW(i);return Object.values(Ly).filter(t=>t.canvas===e).pop()};function Zst(i,e,t){const n=Object.keys(i);for(const s of n){const r=+s;if(r>=e){const o=i[s];delete i[s],(t>0||r>e)&&(i[r+t]=o)}}}function trt(i,e,t,n){return!t||i.type==="mouseout"?null:n?e:i}function Fb(i,e,t){return i.options.clip?i[t]:e[t]}function ert(i,e){const{xScale:t,yScale:n}=i;return t&&n?{left:Fb(t,e,"left"),right:Fb(t,e,"right"),top:Fb(n,e,"top"),bottom:Fb(n,e,"bottom")}:e}var ya;let H$=(ya=class{static register(...e){_r.add(...e),gR()}static unregister(...e){_r.remove(...e),gR()}constructor(e,t){const n=this.config=new Gst(t),s=GW(e),r=pR(s);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const o=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||yst(s)),this.platform.updateConfig(n);const a=this.platform.acquireContext(s,o.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=iit(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Rst,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=vit(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],Ly[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}uo.listen(this,"complete",fR),uo.listen(this,"progress",Jst),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:s,_aspectRatio:r}=this;return Yt(e)?t&&r?r:s?n/s:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return _r}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():FD(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ID(this.canvas,this.ctx),this}stop(){return uo.stop(this),this}resize(e,t){uo.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,s=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,e,t,r),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,FD(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),ke(n.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};he(t,(n,s)=>{n.id=s})}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,s=Object.keys(n).reduce((o,a)=>(o[a]=!1,o),{});let r=[];t&&(r=r.concat(Object.keys(t).map(o=>{const a=t[o],l=rM(o,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),he(r,o=>{const a=o.options,l=a.id,c=rM(l,a),u=It(a.type,o.dtype);(a.position===void 0||dR(a.position,c)!==dR(o.dposition))&&(a.position=o.dposition),s[l]=!0;let d=null;if(l in n&&n[l].type===u)d=n[l];else{const h=_r.getScale(u);
87d=new h({id:l,type:u,ctx:this.ctx,chart:this}),n[d.id]=d}d.init(a,e)}),he(s,(o,a)=>{o||delete n[a]}),he(n,o=>{sn.configure(this,o,o.options),sn.addBox(this,o)})}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((s,r)=>s.index-r.index),n>t){for(let s=t;s<n;++s)this._destroyDatasetMeta(s);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(hR("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach((n,s)=>{t.filter(r=>r===n._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,s;for(this._removeUnreferencedMetasets(),n=0,s=t.length;n<s;n++){const r=t[n];let o=this.getDatasetMeta(n);const a=r.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=a,o.indexAxis=r.indexAxis||sM(a,this.options),o.order=r.order||0,o.index=n,o.label=""+r.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const l=_r.getController(a),{datasetElementType:c,dataElementType:u}=je.datasets[a];Object.assign(l,{dataElementType:_r.getElement(u),datasetElementType:c&&_r.getElement(c)}),o.controller=new l(this,n),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){he(this.data.datasets,(e,t)=>{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),h=!s&&r.indexOf(d)===-1;d.buildOrUpdateElements(h),o=Math.max(+d.getMaxOverflow(),o)}o=this._minPadding=n.layout.autoPadding?o:0,this._updateLayout(o),s||he(r,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(hR("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){he(this.scales,e=>{sn.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);(!kD(t,n)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:s,count:r}of t){const o=n==="_removeElements"?-r:r;Zst(e,s,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=r=>new Set(e.filter(o=>o[0]===r).map((o,a)=>a+","+o.splice(1).join(","))),s=n(0);for(let r=1;r<t;r++)if(!kD(s,n(r)))return;return Array.from(s).map(r=>r.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;sn.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],he(this.boxes,s=>{n&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,r)=>{s._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let t=0,n=this.data.datasets.length;t<n;++t)this.getDatasetMeta(t).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,Cl(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),s={meta:n,index:e,mode:t,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(n.controller._update(t),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(uo.has(this)?this.attached&&!uo.running(this)&&uo.start(this):(this.draw(),fR({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:n,height:s}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(n,s)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let s,r;for(s=0,r=t.length;s<r;++s){const o=t[s];(!e||o.visible)&&n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,s=!n.disabled,r=ert(e,this.chartArea),o={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(s&&sE(t,{left:n.left
87===!1?0:r.left-n.left,right:n.right===!1?this.width:r.right+n.right,top:n.top===!1?0:r.top-n.top,bottom:n.bottom===!1?this.height:r.bottom+n.bottom}),e.controller.draw(),s&&rE(t),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return Zo(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,s){const r=Qnt.modes[t];return typeof r=="function"?r(this,e,n,s):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let s=n.filter(r=>r&&r._dataset===t).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(s)),s}getContext(){return this.$context||(this.$context=Il(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return typeof n.hidden=="boolean"?!n.hidden:!t.hidden}setDatasetVisibility(e,t){const n=this.getDatasetMeta(e);n.hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const s=n?"show":"hide",r=this.getDatasetMeta(e),o=r.controller._resolveAnimations(void 0,s);Up(t)?(r.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),o.update(r,{visible:n}),this.update(a=>a.datasetIndex===e?s:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),uo.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),ID(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete Ly[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(r,o)=>{t.addEventListener(this,r,o),e[r]=o},s=(r,o,a)=>{r.offsetX=o,r.offsetY=a,this._eventHandler(r)};he(this.options.events,r=>n(r,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(l,c)=>{t.addEventListener(this,l,c),e[l]=c},s=(l,c)=>{e[l]&&(t.removeEventListener(this,l,c),delete e[l])},r=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const a=()=>{s("attach",a),this.attached=!0,this.resize(),n("resize",r),n("detach",o)};o=()=>{this.attached=!1,s("resize",r),this._stop(),this._resize(0,0),n("attach",a)},t.isAttached(this.canvas)?a():o()}unbindEvents(){he(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},he(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const s=n?"set":"remove";let r,o,a,l;for(t==="dataset"&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+s+"DatasetHoverStyle"]()),a=0,l=e.length;a<l;++a){o=e[a];const c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[s+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map(({datasetIndex:r,index:o})=>{const a=this.getDatasetMeta(r);if(!a)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:a.data[o],index:o}});!Tv(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return this._plugins._cache.filter(t=>t.plugin.id===e).length===1}_updateHoverStyles(e,t,n){const s=this.options.hover,r=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),o=r(t,e),a=n?e:r(e,t);o.length&&this.updateHoverStyle(o,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},s=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",n,s)===!1)return;const r=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,s),(r||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:s=[],options:r}=this,o=t,a=this._getActiveElements(e,s,n,o),l=lit(e),c=trt(e,this._lastEvent,n,l);
87n&&(this._lastEvent=null,ke(r.onHover,[e,a,this],this),l&&ke(r.onClick,[e,a,this],this));const u=!Tv(a,s);return(u||t)&&(this._active=a,this._updateHoverStyles(a,s,t)),this._lastEvent=c,u}_getActiveElements(e,t,n,s){if(e.type==="mouseout")return[];if(!n)return t;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,s)}},O(ya,"defaults",je),O(ya,"instances",Ly),O(ya,"overrides",Iu),O(ya,"registry",_r),O(ya,"version",Xst),O(ya,"getChart",pR),ya);function gR(){return he(H$.instances,i=>i._plugins.invalidate())}function irt(i,e,t){const{startAngle:n,pixelMargin:s,x:r,y:o,outerRadius:a,innerRadius:l}=e;let c=s/a;i.beginPath(),i.arc(r,o,a,n-c,t+c),l>s?(c=s/l,i.arc(r,o,l,t+c,n-c,!0)):i.arc(r,o,s,t+ui,n-ui),i.closePath(),i.clip()}function nrt(i){return R$(i,["outerStart","outerEnd","innerStart","innerEnd"])}function srt(i,e,t,n){const s=nrt(i.options.borderRadius),r=(t-e)/2,o=Math.min(r,n*e/2),a=l=>{const c=(t-Math.min(r,l))*n/2;return Ri(l,0,Math.min(r,c))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:Ri(s.innerStart,0,o),innerEnd:Ri(s.innerEnd,0,o)}}function Qu(i,e,t,n){return{x:t+i*Math.cos(e),y:n+i*Math.sin(e)}}function Mv(i,e,t,n,s,r){const{x:o,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=e,d=Math.max(e.outerRadius+n+t-c,0),h=u>0?u+n+t+c:0;let p=0;const m=s-l;if(n){const H=u>0?u-n:0,j=d>0?d-n:0,$=(H+j)/2,B=$!==0?m*$/($+n):m;p=(m-B)/2}const g=Math.max(.001,m*d-t/Be)/d,v=(m-g)/2,w=l+v+p,_=s-v-p,{outerStart:x,outerEnd:k,innerStart:S,innerEnd:T}=srt(e,h,d,_-w),E=d-x,M=d-k,A=w+x/E,P=_-k/M,L=h+S,I=h+T,z=w+S/L,q=_-T/I;if(i.beginPath(),r){const H=(A+P)/2;if(i.arc(o,a,d,A,H),i.arc(o,a,d,H,P),k>0){const K=Qu(M,P,o,a);i.arc(K.x,K.y,k,P,_+ui)}const j=Qu(I,_,o,a);if(i.lineTo(j.x,j.y),T>0){const K=Qu(I,q,o,a);i.arc(K.x,K.y,T,_+ui,q+Math.PI)}const $=(_-T/h+(w+S/h))/2;if(i.arc(o,a,h,_-T/h,$,!0),i.arc(o,a,h,$,w+S/h,!0),S>0){const K=Qu(L,z,o,a);i.arc(K.x,K.y,S,z+Math.PI,w-ui)}const B=Qu(E,w,o,a);if(i.lineTo(B.x,B.y),x>0){const K=Qu(E,A,o,a);i.arc(K.x,K.y,x,w-ui,A)}}else{i.moveTo(o,a);const H=Math.cos(A)*d+o,j=Math.sin(A)*d+a;i.lineTo(H,j);const $=Math.cos(P)*d+o,B=Math.sin(P)*d+a;i.lineTo($,B)}i.closePath()}function rrt(i,e,t,n,s){const{fullCircles:r,startAngle:o,circumference:a}=e;let l=e.endAngle;if(r){Mv(i,e,t,n,l,s);for(let c=0;c<r;++c)i.fill();isNaN(a)||(l=o+(a%Fe||Fe))}return Mv(i,e,t,n,l,s),i.fill(),l}function ort(i,e,t,n,s){const{fullCircles:r,startAngle:o,circumference:a,options:l}=e,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:h}=l,p=l.borderAlign==="inner";if(!c)return;i.setLineDash(d||[]),i.lineDashOffset=h,p?(i.lineWidth=c*2,i.lineJoin=u||"round"):(i.lineWidth=c,i.lineJoin=u||"bevel");let m=e.endAngle;if(r){Mv(i,e,t,n,m,s);for(let g=0;g<r;++g)i.stroke();isNaN(a)||(m=o+(a%Fe||Fe))}p&&irt(i,e,m),r||(Mv(i,e,t,n,m,s),i.stroke())}class Yf extends ua{constructor(t){super();O(this,"circumference");O(this,"endAngle");O(this,"fullCircles");O(this,"innerRadius");O(this,"outerRadius");O(this,"pixelMargin");O(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,n,s){const r=this.getProps(["x","y"],s),{angle:o,distance:a}=gW(r,{x:t,y:n}),{startAngle:l,endAngle:c,innerRadius:u,outerRadius:d,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),p=(this.options.spacing+this.options.borderWidth)/2,m=It(h,c-l),g=Gp(o,l,c)&&l!==c,v=m>=Fe||g,w=Qo(a,u+p,d+p);return v&&w}getCenterPoint(t){const{x:n,y:s,startAngle:r,endAngle:o,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:c,spacing:u}=this.options,d=(r+o)/2,h=(a+l+u+c)/2;return{x:n+Math.cos(d)*h,y:s+Math.sin(d)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:s}=this,r=(n.offset||0)/4,o=(n.spacing||0)/2,a=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=s>Fe?Math.floor(s/Fe):0,s===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const l=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(l)*r,Math.sin(l)*r);const c=1-Math.sin(Math.min(Be,s||0)),u=r*c;t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,rrt(t,this,u,o,a),ort(t,this,u,o,a),t.restore(
87)}}O(Yf,"id","arc"),O(Yf,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),O(Yf,"defaultRoutes",{backgroundColor:"backgroundColor"}),O(Yf,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"});function YW(i,e,t=e){i.lineCap=It(t.borderCapStyle,e.borderCapStyle),i.setLineDash(It(t.borderDash,e.borderDash)),i.lineDashOffset=It(t.borderDashOffset,e.borderDashOffset),i.lineJoin=It(t.borderJoinStyle,e.borderJoinStyle),i.lineWidth=It(t.borderWidth,e.borderWidth),i.strokeStyle=It(t.borderColor,e.borderColor)}function art(i,e,t){i.lineTo(t.x,t.y)}function lrt(i){return i.stepped?Oit:i.tension||i.cubicInterpolationMode==="monotone"?$it:art}function KW(i,e,t={}){const n=i.length,{start:s=0,end:r=n-1}=t,{start:o,end:a}=e,l=Math.max(s,o),c=Math.min(r,a),u=s<o&&r<o||s>a&&r>a;return{count:n,start:l,loop:e.loop,ilen:c<l&&!u?n+c-l:c-l}}function crt(i,e,t,n){const{points:s,options:r}=e,{count:o,start:a,loop:l,ilen:c}=KW(s,t,n),u=lrt(r);let{move:d=!0,reverse:h}=n||{},p,m,g;for(p=0;p<=c;++p)m=s[(a+(h?c-p:p))%o],!m.skip&&(d?(i.moveTo(m.x,m.y),d=!1):u(i,g,m,h,r.stepped),g=m);return l&&(m=s[(a+(h?c:0))%o],u(i,g,m,h,r.stepped)),!!l}function urt(i,e,t,n){const s=e.points,{count:r,start:o,ilen:a}=KW(s,t,n),{move:l=!0,reverse:c}=n||{};let u=0,d=0,h,p,m,g,v,w;const _=k=>(o+(c?a-k:k))%r,x=()=>{g!==v&&(i.lineTo(u,v),i.lineTo(u,g),i.lineTo(u,w))};for(l&&(p=s[_(0)],i.moveTo(p.x,p.y)),h=0;h<=a;++h){if(p=s[_(h)],p.skip)continue;const k=p.x,S=p.y,T=k|0;T===m?(S<g?g=S:S>v&&(v=S),u=(d*u+k)/++d):(x(),i.lineTo(k,S),m=T,d=0,g=v=S),w=S}x()}function oM(i){const e=i.options,t=e.borderDash&&e.borderDash.length;return!i._decimated&&!i._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!t?urt:crt}function drt(i){return i.stepped?unt:i.tension||i.cubicInterpolationMode==="monotone"?dnt:oc}function hrt(i,e,t,n){let s=e._path;s||(s=e._path=new Path2D,e.path(s,t,n)&&s.closePath()),YW(i,e.options),i.stroke(s)}function frt(i,e,t,n){const{segments:s,options:r}=e,o=oM(e);for(const a of s)YW(i,r,a.style),i.beginPath(),o(i,e,a,{start:t,end:t+n-1})&&i.closePath(),i.stroke()}const prt=typeof Path2D=="function";function grt(i,e,t,n){prt&&!e.options.segment?hrt(i,e,t,n):frt(i,e,t,n)}class pl extends ua{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){const s=n.spanGaps?this._loop:this._fullLoop;int(this._points,n,e,s,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=bnt(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}interpolate(e,t){const n=this.options,s=e[t],r=this.points,o=DW(this,{property:t,start:s,end:s});if(!o.length)return;const a=[],l=drt(n);let c,u;for(c=0,u=o.length;c<u;++c){const{start:d,end:h}=o[c],p=r[d],m=r[h];if(p===m){a.push(p);continue}const g=Math.abs((s-p[t])/(m[t]-p[t])),v=l(p,m,g,n.stepped);v[t]=e[t],a.push(v)}return a.length===1?a[0]:a}pathSegment(e,t,n){return oM(this)(e,this,t,n)}path(e,t,n){const s=this.segments,r=oM(this);let o=this._loop;t=t||0,n=n||this.points.length-t;for(const a of s)o&=r(e,this,a,{start:t,end:t+n-1});return!!o}draw(e,t,n,s){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(e.save(),grt(e,this,n,s),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}O(pl,"id","line"),O(pl,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),O(pl,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),O(pl,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function mR(i,e,t,n){const s=i.options,{[t]:r}=i.getProps([t],n);return Math.abs(e-r)<s.radius+s.hitRadius}class Iy extends ua{constructor(t){super();O(this,"parsed");O(this,"skip");O(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,n,s){const r=this.options,{x:o,y:a}=this.getProps(["x","y"],s);return Math.pow(t-o,2)+Math.pow(n-a,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(t,n){return mR(this,t,"x",n)}inYRange(t,n){return mR(this,t,"y",n)}getCenterPoint(t){const{x:n,y:s}=this.getProps(["x","y"],t);return{x:n,y:s}}size(t){t=t||this.options||{};let n=t.radius||0;n=Math.max(n,n&&t.hoverRadius||0);const s=n&&t.borderWidth||0;return(n+s)*2}draw(t,n){const s=this.options;this.skip||s.radius<.1||!Zo(this,n,this.size(s)/2)||(t.strokeStyle=s.borderColor,t.lineWidth=s.borderWidth,t.fillStyle=s.backgroundColor,iM(t,s,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}O(Iy,"id","point"),O(Iy,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),O(Iy,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function XW(i,e){const{x:t,y:n,base:s,width:r,height:o}=i.getProps(["x","y","base","width","height"],e);let a,l,c,u,d;return i.horizontal?(d=o/2,a=Math.min(t,s),l=Math.max(t,s),c=n-d,u=n+d):(d=r/2,a=t-d,l=t+d,c=Math.min(n,s),u=Math.max(n,s)),{left:a,top:c,right:l,bottom:u}}function gl(i,e,t,n){return i?0:Ri(e,t,n)}function mrt(i,e,t){const n=i.options.borderWidth,s=i.borderSkipped,r=TW(n);return{t:gl(s.top,r.top,0,t),r:gl(s.right,r.right,0,e),b:gl(s.bottom,r.bottom,0,t),l:gl(s.left,r.left,0,e)}}function brt(i,e,t){const{enableBorderRadius:n}=i.getProps(["enableBorderRadius"]),s=i.options.borderRadius,r=xu(s),o=Math.min(e,t),a=i.borderSkipped,l=n||Kt(s);return{topLeft:gl(!l||a.top||a.left,r.topLeft,0,o),topRight:gl(!l||a.top||a.r
87ight,r.topRight,0,o),bottomLeft:gl(!l||a.bottom||a.left,r.bottomLeft,0,o),bottomRight:gl(!l||a.bottom||a.right,r.bottomRight,0,o)}}function yrt(i){const e=XW(i),t=e.right-e.left,n=e.bottom-e.top,s=mrt(i,t/2,n/2),r=brt(i,t/2,n/2);return{outer:{x:e.left,y:e.top,w:t,h:n,radius:r},inner:{x:e.left+s.l,y:e.top+s.t,w:t-s.l-s.r,h:n-s.t-s.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,r.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(s.b,s.r))}}}}function _P(i,e,t,n){const s=e===null,r=t===null,a=i&&!(s&&r)&&XW(i,n);return a&&(s||Qo(e,a.left,a.right))&&(r||Qo(t,a.top,a.bottom))}function vrt(i){return i.topLeft||i.topRight||i.bottomLeft||i.bottomRight}function wrt(i,e){i.rect(e.x,e.y,e.w,e.h)}function xP(i,e,t={}){const n=i.x!==t.x?-e:0,s=i.y!==t.y?-e:0,r=(i.x+i.w!==t.x+t.w?e:0)-n,o=(i.y+i.h!==t.y+t.h?e:0)-s;return{x:i.x+n,y:i.y+s,w:i.w+r,h:i.h+o,radius:i.radius}}class Dy extends ua{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:s}}=this,{inner:r,outer:o}=yrt(this),a=vrt(o.radius)?Yp:wrt;e.save(),(o.w!==r.w||o.h!==r.h)&&(e.beginPath(),a(e,xP(o,t,r)),e.clip(),a(e,xP(r,-t,o)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),a(e,xP(r,t)),e.fillStyle=s,e.fill(),e.restore()}inRange(e,t,n){return _P(this,e,t,n)}inXRange(e,t){return _P(this,e,null,t)}inYRange(e,t){return _P(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:s,horizontal:r}=this.getProps(["x","y","base","horizontal"],e);return{x:r?(t+s)/2:t,y:r?n:(n+s)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}O(Dy,"id","bar"),O(Dy,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),O(Dy,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var _rt=Object.freeze({__proto__:null,ArcElement:Yf,BarElement:Dy,LineElement:pl,PointElement:Iy});const aM=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],bR=aM.map(i=>i.replace("rgb(","rgba(").replace(")",", 0.5)"));function QW(i){return aM[i%aM.length]}function JW(i){return bR[i%bR.length]}function xrt(i,e){return i.borderColor=QW(e),i.backgroundColor=JW(e),++e}function Srt(i,e){return i.backgroundColor=i.data.map(()=>QW(e++)),e}function Trt(i,e){return i.backgroundColor=i.data.map(()=>JW(e++)),e}function krt(i){let e=0;return(t,n)=>{const s=i.getDatasetMeta(n).controller;s instanceof mc?e=Srt(t,e):s instanceof _p?e=Trt(t,e):s&&(e=xrt(t,e))}}function yR(i){let e;for(e in i)if(i[e].borderColor||i[e].backgroundColor)return!0;return!1}function Ert(i){return i&&(i.borderColor||i.backgroundColor)}function Prt(){return je.borderColor!=="rgba(0,0,0,0.1)"||je.backgroundColor!=="rgba(0,0,0,0.1)"}var Crt={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(i,e,t){if(!t.enabled)return;const{data:{datasets:n},options:s}=i.config,{elements:r}=s,o=yR(n)||Ert(s)||r&&yR(r)||Prt();if(!t.forceOverride&&o)return;const a=krt(i);n.forEach(a)}};function Art(i,e,t,n,s){const r=s.samples||n;if(r>=t)return i.slice(e,e+t);const o=[],a=(t-2)/(r-2);let l=0;const c=e+t-1;let u=e,d,h,p,m,g;for(o[l++]=i[u],d=0;d<r-2;d++){let v=0,w=0,_;const x=Math.floor((d+1)*a)+1+e,k=Math.min(Math.floor((d+2)*a)+1,t)+e,S=k-x;for(_=x;_<k;_++)v+=i[_].x,w+=i[_].y;v/=S,w/=S;const T=Math.floor(d*a)+1+e,E=Math.min(Math.floor((d+1)*a)+1,t)+e,{x:M,y:A}=i[u];for(p=m=-1,_=T;_<E;_++)m=.5*Math.abs((M-v)*(i[_].y-A)-(M-i[_].x)*(w-A)),m>p&&(p=m,h=i[_],g=_);o[l++]=h,u=g}return o[l++]=i[c],o}function Mrt(i,e,t,n){let s=0,r=0,o,a,l,c,u,d,h,p,m,g;const v=[],w=e+t-1,_=i[e].x,k=i[w].x-_;for(o=e;o<e+t;++o){a=i[o],l=(a.x-_)/k*n,c=a.y;const S=l|0;if(S===u)c<m?(m=c,d=o):c>g&&(g=c,h=o),s=(r*s+a.x)/++r;else{const T=o-1;if(!Yt(d)&&!Yt(h)){const E=Math.min(d,h),M=Math.max(d,h);E!==p&&E!==T&&v.push({...i[E],x:s}),M!==p&&M!==T&&v.push({...i[M],x:s})}o>0&&T!==p&&v.push(i[T]),v.push(a),u=S,r=0,m=g=c,d=h=p=o}}return v}function ZW(i){if(i._decimated){const e=i._data;delete i._decimated,delete i._data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}
87function vR(i){i.data.datasets.forEach(e=>{ZW(e)})}function Ort(i,e){const t=e.length;let n=0,s;const{iScale:r}=i,{min:o,max:a,minDefined:l,maxDefined:c}=r.getUserBounds();return l&&(n=Ri(Jo(e,r.axis,o).lo,0,t-1)),c?s=Ri(Jo(e,r.axis,a).hi+1,n,t)-n:s=t-n,{start:n,count:s}}var $rt={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(i,e,t)=>{if(!t.enabled){vR(i);return}const n=i.width;i.data.datasets.forEach((s,r)=>{const{_data:o,indexAxis:a}=s,l=i.getDatasetMeta(r),c=o||s.data;if(Uf([a,i.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=i.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||i.options.parsing)return;let{start:d,count:h}=Ort(l,c);const p=t.threshold||4*n;if(h<=p){ZW(s);return}Yt(o)&&(s._data=c,delete s.data,Object.defineProperty(s,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(g){this._data=g}}));let m;switch(t.algorithm){case"lttb":m=Art(c,d,h,n,t);break;case"min-max":m=Mrt(c,d,h,n);break;default:throw new Error(`Unsupported decimation algorithm '${t.algorithm}'`)}s._decimated=m})},destroy(i){vR(i)}};function Lrt(i,e,t){const n=i.segments,s=i.points,r=e.points,o=[];for(const a of n){let{start:l,end:c}=a;c=W$(l,c,s);const u=lM(t,s[l],s[c],a.loop);if(!e.segments){o.push({source:a,target:u,start:s[l],end:s[c]});continue}const d=DW(e,u);for(const h of d){const p=lM(t,r[h.start],r[h.end],h.loop),m=IW(a,s,p);for(const g of m)o.push({source:g,target:h,start:{[t]:wR(u,p,"start",Math.max)},end:{[t]:wR(u,p,"end",Math.min)}})}}return o}function lM(i,e,t,n){if(n)return;let s=e[i],r=t[i];return i==="angle"&&(s=us(s),r=us(r)),{property:i,start:s,end:r}}function Irt(i,e){const{x:t=null,y:n=null}=i||{},s=e.points,r=[];return e.segments.forEach(({start:o,end:a})=>{a=W$(o,a,s);const l=s[o],c=s[a];n!==null?(r.push({x:l.x,y:n}),r.push({x:c.x,y:n})):t!==null&&(r.push({x:t,y:l.y}),r.push({x:t,y:c.y}))}),r}function W$(i,e,t){for(;e>i;e--){const n=t[e];if(!isNaN(n.x)&&!isNaN(n.y))break}return e}function wR(i,e,t,n){return i&&e?n(i[t],e[t]):i?i[t]:e?e[t]:0}function tj(i,e){let t=[],n=!1;return De(i)?(n=!0,t=i):t=Irt(i,e),t.length?new pl({points:t,options:{tension:0},_loop:n,_fullLoop:n}):null}function _R(i){return i&&i.fill!==!1}function Drt(i,e,t){let s=i[e].fill;const r=[e];let o;if(!t)return s;for(;s!==!1&&r.indexOf(s)===-1;){if(!si(s))return s;if(o=i[s],!o)return!1;if(o.visible)return s;r.push(s),s=o.fill}return!1}function Rrt(i,e,t){const n=zrt(i);if(Kt(n))return isNaN(n.value)?!1:n;let s=parseFloat(n);return si(s)&&Math.floor(s)===s?Frt(n[0],e,s,t):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function Frt(i,e,t,n){return(i==="-"||i==="+")&&(t=e+t),t===e||t<0||t>=n?!1:t}function Nrt(i,e){let t=null;return i==="start"?t=e.bottom:i==="end"?t=e.top:Kt(i)?t=e.getPixelForValue(i.value):e.getBasePixel&&(t=e.getBasePixel()),t}function Brt(i,e,t){let n;return i==="start"?n=t:i==="end"?n=e.options.reverse?e.min:e.max:Kt(i)?n=i.value:n=e.getBaseValue(),n}function zrt(i){const e=i.options,t=e.fill;let n=It(t&&t.target,t);return n===void 0&&(n=!!e.backgroundColor),n===!1||n===null?!1:n===!0?"origin":n}function Vrt(i){const{scale:e,index:t,line:n}=i,s=[],r=n.segments,o=n.points,a=qrt(e,t);a.push(tj({x:null,y:e.bottom},n));for(let l=0;l<r.length;l++){const c=r[l];for(let u=c.start;u<=c.end;u++)Hrt(s,o[u],a)}return new pl({points:s,options:{}})}function qrt(i,e){const t=[],n=i.getMatchingVisibleMetas("line");for(let s=0;s<n.length;s++){const r=n[s];if(r.index===e)break;r.hidden||t.unshift(r.dataset)}return t}function Hrt(i,e,t){const n=[];for(let s=0;s<t.length;s++){const r=t[s],{first:o,last:a,point:l}=Wrt(r,e,"x");if(!(!l||o&&a)){if(o)n.unshift(l);else if(i.push(l),!a)break}}i.push(...n)}function Wrt(i,e,t){const n=i.interpolate(e,t);if(!n)return{};const s=n[t],r=i.segments,o=i.points;let a=!1,l=!1;for(let c=0;c<r.length;c++){const u=r[c],d=o[u.start][t],h=o[u.end][t];if(Qo(s,d,h)){a=s===d,l=s===h;break}}return{first:a,last:l,point:n}}class ej{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,n){const{x:s,y:r,radius:o}=this;return t=t||{start:0,end:Fe},e.arc(s,r,o,t.end,t.start,!0),!n.bounds}interpolate(e){const{x:t,y:n,radius:s}=this,r=e.angle;return{x:t+Math.cos(r)*s,y:n+Math.sin(r)*s,angle:r}}}function jrt(i){const{chart:e,fill:t,line:n}
87=i;if(si(t))return Urt(e,t);if(t==="stack")return Vrt(i);if(t==="shape")return!0;const s=Grt(i);return s instanceof ej?s:tj(s,n)}function Urt(i,e){const t=i.getDatasetMeta(e);return t&&i.isDatasetVisible(e)?t.dataset:null}function Grt(i){return(i.scale||{}).getPointPositionForValue?Krt(i):Yrt(i)}function Yrt(i){const{scale:e={},fill:t}=i,n=Nrt(t,e);if(si(n)){const s=e.isHorizontal();return{x:s?n:null,y:s?null:n}}return null}function Krt(i){const{scale:e,fill:t}=i,n=e.options,s=e.getLabels().length,r=n.reverse?e.max:e.min,o=Brt(t,e,r),a=[];if(n.grid.circular){const l=e.getPointPositionForValue(0,r);return new ej({x:l.x,y:l.y,radius:e.getDistanceFromCenterForValue(o)})}for(let l=0;l<s;++l)a.push(e.getPointPositionForValue(l,o));return a}function SP(i,e,t){const n=jrt(e),{line:s,scale:r,axis:o}=e,a=s.options,l=a.fill,c=a.backgroundColor,{above:u=c,below:d=c}=l||{};n&&s.points.length&&(sE(i,t),Xrt(i,{line:s,target:n,above:u,below:d,area:t,scale:r,axis:o}),rE(i))}function Xrt(i,e){const{line:t,target:n,above:s,below:r,area:o,scale:a}=e,l=t._loop?"angle":e.axis;i.save(),l==="x"&&r!==s&&(xR(i,n,o.top),SR(i,{line:t,target:n,color:s,scale:a,property:l}),i.restore(),i.save(),xR(i,n,o.bottom)),SR(i,{line:t,target:n,color:r,scale:a,property:l}),i.restore()}function xR(i,e,t){const{segments:n,points:s}=e;let r=!0,o=!1;i.beginPath();for(const a of n){const{start:l,end:c}=a,u=s[l],d=s[W$(l,c,s)];r?(i.moveTo(u.x,u.y),r=!1):(i.lineTo(u.x,t),i.lineTo(u.x,u.y)),o=!!e.pathSegment(i,a,{move:o}),o?i.closePath():i.lineTo(d.x,t)}i.lineTo(e.first().x,t),i.closePath(),i.clip()}function SR(i,e){const{line:t,target:n,property:s,color:r,scale:o}=e,a=Lrt(t,n,s);for(const{source:l,target:c,start:u,end:d}of a){const{style:{backgroundColor:h=r}={}}=l,p=n!==!0;i.save(),i.fillStyle=h,Qrt(i,o,p&&lM(s,u,d)),i.beginPath();const m=!!t.pathSegment(i,l);let g;if(p){m?i.closePath():TR(i,n,d,s);const v=!!n.pathSegment(i,c,{move:m,reverse:!0});g=m&&v,g||TR(i,n,u,s)}i.closePath(),i.fill(g?"evenodd":"nonzero"),i.restore()}}function Qrt(i,e,t){const{top:n,bottom:s}=e.chart.chartArea,{property:r,start:o,end:a}=t||{};r==="x"&&(i.beginPath(),i.rect(o,n,a-o,s-n),i.clip())}function TR(i,e,t,n){const s=e.interpolate(t,n);s&&i.lineTo(s.x,s.y)}var Jrt={id:"filler",afterDatasetsUpdate(i,e,t){const n=(i.data.datasets||[]).length,s=[];let r,o,a,l;for(o=0;o<n;++o)r=i.getDatasetMeta(o),a=r.dataset,l=null,a&&a.options&&a instanceof pl&&(l={visible:i.isDatasetVisible(o),index:o,fill:Rrt(a,o,n),chart:i,axis:r.controller.options.indexAxis,scale:r.vScale,line:a}),r.$filler=l,s.push(l);for(o=0;o<n;
87++o)l=s[o],!(!l||l.fill===!1)&&(l.fill=Drt(s,o,t.propagate))},beforeDraw(i,e,t){const n=t.drawTime==="beforeDraw",s=i.getSortedVisibleDatasetMetas(),r=i.chartArea;for(let o=s.length-1;o>=0;--o){const a=s[o].$filler;a&&(a.line.updateControlPoints(r,a.axis),n&&a.fill&&SP(i.ctx,a,r))}},beforeDatasetsDraw(i,e,t){if(t.drawTime!=="beforeDatasetsDraw")return;const n=i.getSortedVisibleDatasetMetas();for(let s=n.length-1;s>=0;--s){const r=n[s].$filler;_R(r)&&SP(i.ctx,r,i.chartArea)}},beforeDatasetDraw(i,e,t){const n=e.meta.$filler;!_R(n)||t.drawTime!=="beforeDatasetDraw"||SP(i.ctx,n,i.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const kR=(i,e)=>{let{boxHeight:t=e,boxWidth:n=e}=i;return i.usePointStyle&&(t=Math.min(t,e),n=i.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:t,itemHeight:Math.max(e,t)}},Zrt=(i,e)=>i!==null&&e!==null&&i.datasetIndex===e.datasetIndex&&i.index===e.index;class ER extends ua{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=ke(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter(n=>e.filter(n,this.chart.data))),e.sort&&(t=t.sort((n,s)=>e.sort(n,s,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display){this.width=this.height=0;return}const n=e.labels,s=xi(n.font),r=s.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=kR(n,r);let c,u;t.font=s.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(o,r,a,l)+10):(u=this.maxHeight,c=this._fitCols(o,s,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,s){const{ctx:r,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=s+a;let d=e;r.textAlign="left",r.textBaseline="middle";let h=-1,p=-u;return this.legendItems.forEach((m,g)=>{const v=n+t/2+r.measureText(m.text).width;(g===0||c[c.length-1]+v+2*a>o)&&(d+=u,c[c.length-(g>0?0:1)]=0,p+=u,h++),l[g]={left:0,top:p,row:h,width:v,height:s},c[c.length-1]+=v+a}),d}_fitCols(e,t,n,s){const{ctx:r,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=o-e;let d=a,h=0,p=0,m=0,g=0;return this.legendItems.forEach((v,w)=>{const{itemWidth:_,itemHeight:x}=tot(n,t,r,v,s);w>0&&p+x+2*a>u&&(d+=h+a,c.push({width:h,height:p}),m+=h+a,g++,h=p=0),l[w]={left:m,top:p,col:g,width:_,height:x},h=Math.max(h,_),p+=x+a}),d+=h,c.push({width:h,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:s},rtl:r}}=this,o=gd(r,this.left,this.width);if(this.isHorizontal()){let a=0,l=Qi(n,this.left+s,this.right-this.lineWidths[a]);for(const c of t)a!==c.row&&(a=c.row,l=Qi(n,this.left+s,this.right-this.lineWidths[a])),c.top+=this.top+e+s,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+s}else{let a=0,l=Qi(n,this.top+e+s,this.bottom-this.columnSizes[a].height);for(const c of t)c.col!==a&&(a=c.col,l=Qi(n,this.top+e+s,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+s,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;sE(e,this),this._draw(),rE(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:s}=this,{align:r,labels:o}=e,a=je.color,l=gd(e.rtl,this.left,this.width),c=xi(o.font),{padding:u}=o,d=c.size,h=d/2;let p;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=c.string;const{boxWidth:m,boxHeight:g,itemHeight:v}=kR(o,d),w=function(T,E,M){if(isNaN(m)||m<=0||isNaN(g)||g<0)return;s.save();const A=It(M.lineWidth,1);if(s.fillStyle=It(M.fillStyle,a),s.lineCap=It(M.lineCap,"butt"),s.lineDashOffset=It(M.lineDashOffset,0),s.lineJoin=It(M.lineJoin,"miter"),s.lineWidth=A,s.strokeStyle=It(M.strokeStyle,a),s.setLineDash(It(M.lineDash,[])),o.usePointStyle){const P={radius:g*Math.SQRT2/2,pointStyle:M.pointStyle,rotation:M.rotation,borderWidth:A},L=l.xPlus(T,m/2),I=E+h;SW(s,P,L,I,o.pointStyleWidth&&m)}else{const P=E+Math.max((d-g)/2,0),L=l.leftForLtr(T,m),I=xu(M.borderRadius);s.beginPath(),Object.values(I).some(z=>z!==0)?Yp(s,{x:L,y:P,w:m,h:g,radius:I}):s.rect(L,P,m,g),s.fill(),A!==0&&s.stroke()}
87s.restore()},_=function(T,E,M){Du(s,M.text,T,E+v/2,c,{strikethrough:M.hidden,textAlign:l.textAlign(M.textAlign)})},x=this.isHorizontal(),k=this._computeTitleHeight();x?p={x:Qi(r,this.left+u,this.right-n[0]),y:this.top+u+k,line:0}:p={x:this.left+u,y:Qi(r,this.top+k+u,this.bottom-t[0].height),line:0},OW(this.ctx,e.textDirection);const S=v+u;this.legendItems.forEach((T,E)=>{s.strokeStyle=T.fontColor,s.fillStyle=T.fontColor;const M=s.measureText(T.text).width,A=l.textAlign(T.textAlign||(T.textAlign=o.textAlign)),P=m+h+M;let L=p.x,I=p.y;l.setWidth(this.width),x?E>0&&L+P+u>this.right&&(I=p.y+=S,p.line++,L=p.x=Qi(r,this.left+u,this.right-n[p.line])):E>0&&I+S>this.bottom&&(L=p.x=L+t[p.line].width+u,p.line++,I=p.y=Qi(r,this.top+k+u,this.bottom-t[p.line].height));const z=l.x(L);if(w(z,I,T),L=wit(A,L+m+h,x?L+P:this.right,e.rtl),_(l.x(L),I,T),x)p.x+=P+u;else if(typeof T.text!="string"){const q=c.lineHeight;p.y+=ij(T,q)+u}else p.y+=S}),$W(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=xi(t.font),s=ln(t.padding);if(!t.display)return;const r=gd(e.rtl,this.left,this.width),o=this.ctx,a=t.position,l=n.size/2,c=s.top+l;let u,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+c,d=Qi(e.align,d,this.right-h);else{const m=this.columnSizes.reduce((g,v)=>Math.max(g,v.height),0);u=c+Qi(e.align,this.top,this.bottom-m-e.labels.padding-this._computeTitleHeight())}const p=Qi(a,d,d+h);o.textAlign=r.textAlign(I$(a)),o.textBaseline="middle",o.strokeStyle=t.color,o.fillStyle=t.color,o.font=n.string,Du(o,t.text,p,u,n)}_computeTitleHeight(){const e=this.options.title,t=xi(e.font),n=ln(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,s,r;if(Qo(e,this.left,this.right)&&Qo(t,this.top,this.bottom)){for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(s=r[n],Qo(e,s.left,s.left+s.width)&&Qo(t,s.top,s.top+s.height))return this.legendItems[n]}return null}handleEvent(e){const t=this.options;if(!not(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const s=this._hoveredItem,r=Zrt(s,n);s&&!r&&ke(t.onLeave,[e,s,this],this),this._hoveredItem=n,n&&!r&&ke(t.onHover,[e,n,this],this)}else n&&ke(t.onClick,[e,n,this],this)}}function tot(i,e,t,n,s){const r=eot(n,i,e,t),o=iot(s,n,e.lineHeight);return{itemWidth:r,itemHeight:o}}function eot(i,e,t,n){let s=i.text;return s&&typeof s!="string"&&(s=s.reduce((r,o)=>r.length>o.length?r:o)),e+t.size/2+n.measureText(s).width}function iot(i,e,t){let n=i;return typeof e.text!="string"&&(n=ij(e,t)),n}function ij(i,e){const t=i.text?i.text.length:0;return e*t}function not(i,e){return!!((i==="mousemove"||i==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(i==="click"||i==="mouseup"))}var sot={id:"legend",_element:ER,start(i,e,t){const n=i.legend=new ER({ctx:i.ctx,options:t,chart:i});sn.configure(i,n,t),sn.addBox(i,n)},stop(i){sn.removeBox(i,i.legend),delete i.legend},beforeUpdate(i,e,t){const n=i.legend;sn.configure(i,n,t),n.options=t},afterUpdate(i){const e=i.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(i,e){e.replay||i.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(i,e,t){const n=e.datasetIndex,s=t.chart;s.isDatasetVisible(n)?(s.hide(n),e.hidden=!0):(s.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:i=>i.chart.options.color,boxWidth:40,padding:10,generateLabels(i){const e=i.data.datasets,{labels:{usePointStyle:t,pointStyle:n,textAlign:s,color:r,useBorderRadius:o,borderRadius:a}}=i.legend.options;
87return i._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(t?0:void 0),u=ln(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:r,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:n||c.pointStyle,rotation:c.rotation,textAlign:s||c.textAlign,borderRadius:o&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:i=>i.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:i=>!i.startsWith("on"),labels:{_scriptable:i=>!["generateLabels","filter","sort"].includes(i)}}};class j$ extends ua{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=t;const s=De(n.text)?n.text.length:1;this._padding=ln(n.padding);const r=s*xi(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:t,left:n,bottom:s,right:r,options:o}=this,a=o.align;let l=0,c,u,d;return this.isHorizontal()?(u=Qi(a,n,r),d=t+e,c=r-n):(o.position==="left"?(u=n+e,d=Qi(a,s,t),l=Be*-.5):(u=r-e,d=Qi(a,t,s),l=Be*.5),c=s-t),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const n=xi(t.font),r=n.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(r);Du(e,t.text,0,0,n,{color:t.color,maxWidth:l,rotation:c,textAlign:I$(t.align),textBaseline:"middle",translation:[o,a]})}}function rot(i,e){const t=new j$({ctx:i.ctx,options:e,chart:i});sn.configure(i,t,e),sn.addBox(i,t),i.titleBlock=t}var oot={id:"title",_element:j$,start(i,e,t){rot(i,t)},stop(i){const e=i.titleBlock;sn.removeBox(i,e),delete i.titleBlock},beforeUpdate(i,e,t){const n=i.titleBlock;sn.configure(i,n,t),n.options=t},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Nb=new WeakMap;var aot={id:"subtitle",start(i,e,t){const n=new j$({ctx:i.ctx,options:t,chart:i});sn.configure(i,n,t),sn.addBox(i,n),Nb.set(i,n)},stop(i){sn.removeBox(i,Nb.get(i)),Nb.delete(i)},beforeUpdate(i,e,t){const n=Nb.get(i);sn.configure(i,n,t),n.options=t},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Kf={average(i){if(!i.length)return!1;let e,t,n=new Set,s=0,r=0;for(e=0,t=i.length;e<t;++e){const a=i[e].element;if(a&&a.hasValue()){const l=a.tooltipPosition();n.add(l.x),s+=l.y,++r}}return r===0||n.size===0?!1:{x:[...n].reduce((a,l)=>a+l)/n.size,y:s/r}},nearest(i,e){if(!i.length)return!1;let t=e.x,n=e.y,s=Number.POSITIVE_INFINITY,r,o,a;for(r=0,o=i.length;r<o;++r){const l=i[r].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=tM(e,c);u<s&&(s=u,a=l)}}if(a){const l=a.tooltipPosition();t=l.x,n=l.y}return{x:t,y:n}}};function vr(i,e){return e&&(De(e)?Array.prototype.push.apply(i,e):i.push(e)),i}function ho(i){return(typeof i=="string"||i instanceof String)&&i.indexOf(` 88`)>-1?i.split(` 89`):i}function lot(i,e){const{element:t,datasetIndex:n,index:s}=e,r=i.getDatasetMeta(n).controller,{label:o,value:a}=r.getLabelAndValue(s);return{chart:i,label:o,parsed:r.getParsed(s),raw:i.data.datasets[n].data[s],formattedValue:a,dataset:r.getDataset(),dataIndex:s,datasetIndex:n,element:t}}function PR(i,e){const t=i.chart.ctx,{body:n,footer:s,title:r}=i,{boxWidth:o,boxHeight:a}=e,l=xi(e.bodyFont),c=xi(e.titleFont),u=xi(e.footerFont),d=r.length,h=s.length,p=n.length,m=ln(e.padding);let g=m.height,v=0,w=n.reduce((k,S)=>k+S.before.length+S.lines.length+S.after.length,0);if(w+=i.beforeBody.length+i.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),w){const k=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;g+=p*k+(w-p)*l.lineHeight+(w-1)*e.bodySpacing}
89h&&(g+=e.footerMarginTop+h*u.lineHeight+(h-1)*e.footerSpacing);let _=0;const x=function(k){v=Math.max(v,t.measureText(k).width+_)};return t.save(),t.font=c.string,he(i.title,x),t.font=l.string,he(i.beforeBody.concat(i.afterBody),x),_=e.displayColors?o+2+e.boxPadding:0,he(n,k=>{he(k.before,x),he(k.lines,x),he(k.after,x)}),_=0,t.font=u.string,he(i.footer,x),t.restore(),v+=m.width,{width:v,height:g}}function cot(i,e){const{y:t,height:n}=e;return t<n/2?"top":t>i.height-n/2?"bottom":"center"}function uot(i,e,t,n){const{x:s,width:r}=n,o=t.caretSize+t.caretPadding;if(i==="left"&&s+r+o>e.width||i==="right"&&s-r-o<0)return!0}function dot(i,e,t,n){const{x:s,width:r}=t,{width:o,chartArea:{left:a,right:l}}=i;let c="center";return n==="center"?c=s<=(a+l)/2?"left":"right":s<=r/2?c="left":s>=o-r/2&&(c="right"),uot(c,i,e,t)&&(c="center"),c}function CR(i,e,t){const n=t.yAlign||e.yAlign||cot(i,t);return{xAlign:t.xAlign||e.xAlign||dot(i,e,t,n),yAlign:n}}function hot(i,e){let{x:t,width:n}=i;return e==="right"?t-=n:e==="center"&&(t-=n/2),t}function fot(i,e,t){let{y:n,height:s}=i;return e==="top"?n+=t:e==="bottom"?n-=s+t:n-=s/2,n}function AR(i,e,t,n){const{caretSize:s,caretPadding:r,cornerRadius:o}=i,{xAlign:a,yAlign:l}=t,c=s+r,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:p}=xu(o);let m=hot(e,a);const g=fot(e,l,c);return l==="center"?a==="left"?m+=c:a==="right"&&(m-=c):a==="left"?m-=Math.max(u,h)+s:a==="right"&&(m+=Math.max(d,p)+s),{x:Ri(m,0,n.width-e.width),y:Ri(g,0,n.height-e.height)}}function Bb(i,e,t){const n=ln(t.padding);return e==="center"?i.x+i.width/2:e==="right"?i.x+i.width-n.right:i.x+n.left}function MR(i){return vr([],ho(i))}function pot(i,e,t){return Il(i,{tooltip:e,tooltipItems:t,type:"tooltip"})}function OR(i,e){const t=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return t?i.override(t):i}const nj={beforeTitle:ao,title(i){if(i.length>0){const e=i[0],t=e.chart.data.labels,n=t?t.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return t[e.dataIndex]}return""},afterTitle:ao,beforeBody:ao,beforeLabel:ao,label(i){if(this&&this.options&&this.options.mode==="dataset")return i.label+": "+i.formattedValue||i.formattedValue;let e=i.dataset.label||"";e&&(e+=": ");const t=i.formattedValue;return Yt(t)||(e+=t),e},labelColor(i){const t=i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(i){const t=i.chart.getDatasetMeta(i.datasetIndex).controller.getStyle(i.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:ao,afterBody:ao,beforeFooter:ao,footer:ao,afterFooter:ao};function Mn(i,e,t,n){const s=i[e].call(t,n);return typeof s>"u"?nj[e].call(t,n):s}class cM extends ua{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),s=n.enabled&&t.options.animation&&n.animations,r=new RW(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=pot(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,t){const{callbacks:n}=t,s=Mn(n,"beforeTitle",this,e),r=Mn(n,"title",this,e),o=Mn(n,"afterTitle",this,e);let a=[];return a=vr(a,ho(s)),a=vr(a,ho(r)),a=vr(a,ho(o)),a}getBeforeBody(e,t){return MR(Mn(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,s=[];return he(e,r=>{const o={before:[],lines:[],after:[]},a=OR(n,r);vr(o.before,ho(Mn(a,"beforeLabel",this,r))),vr(o.lines,Mn(a,"label",this,r)),vr(o.after,ho(Mn(a,"afterLabel",this,r))),s.push(o)}),s}getAfterBody(e,t){return MR(Mn(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,s=Mn(n,"beforeFooter",this,e),r=Mn(n,"footer",this,e),o=Mn(n,"afterFooter",this,e);let a=[];return a=vr(a,ho(s)),a=vr(a,ho(r)),a=vr(a,ho(o)),a}_createItems(e){const t=this._active,n=this.chart.data,s=[],r=[],o=[];let a=[],l,c;for(l=0,c=t.length;l<c;++l)a.push(lot(this.chart,t[l]));return e.filter&&(a=a.filter((u,d,h)=>e.filter(u,d,h,n))),e.itemSort&&(a=a.sort((u,d)=>e.itemSort(u,d,n))),he(a,u=>{const d=OR(e.callbacks,u);s.push(Mn(d,"labelColor",this,u)),r.push(Mn(d,"labelPointStyle",this,u)),o.push(Mn(d,"labelTextColor",this,u))}),this.labelColors=s,this.labelPointStyles=r,this.labelTextColors=o,this.dataPoints=a,a}update(e,t){const n=this.options.setContext(this.getContext()),s=this._active;let r,o=[];if(!s.length)this.opacity!==0&&(r={opacity:0}
89);else{const a=Kf[n.position].call(this,s,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const l=this._size=PR(this,n),c=Object.assign({},a,l),u=CR(this.chart,n,c),d=AR(n,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,r={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,s){const r=this.getCaretPosition(e,n,s);t.lineTo(r.x1,r.y1),t.lineTo(r.x2,r.y2),t.lineTo(r.x3,r.y3)}getCaretPosition(e,t,n){const{xAlign:s,yAlign:r}=this,{caretSize:o,cornerRadius:a}=n,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=xu(a),{x:h,y:p}=e,{width:m,height:g}=t;let v,w,_,x,k,S;return r==="center"?(k=p+g/2,s==="left"?(v=h,w=v-o,x=k+o,S=k-o):(v=h+m,w=v+o,x=k-o,S=k+o),_=v):(s==="left"?w=h+Math.max(l,u)+o:s==="right"?w=h+m-Math.max(c,d)-o:w=this.caretX,r==="top"?(x=p,k=x-o,v=w-o,_=w+o):(x=p+g,k=x+o,v=w+o,_=w-o),S=x),{x1:v,x2:w,x3:_,y1:x,y2:k,y3:S}}drawTitle(e,t,n){const s=this.title,r=s.length;let o,a,l;if(r){const c=gd(n.rtl,this.x,this.width);for(e.x=Bb(this,n.titleAlign,n),t.textAlign=c.textAlign(n.titleAlign),t.textBaseline="middle",o=xi(n.titleFont),a=n.titleSpacing,t.fillStyle=n.titleColor,t.font=o.string,l=0;l<r;++l)t.fillText(s[l],c.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+a,l+1===r&&(e.y+=n.titleMarginBottom-a)}}_drawColorBox(e,t,n,s,r){const o=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:l,boxWidth:c}=r,u=xi(r.bodyFont),d=Bb(this,"left",r),h=s.x(d),p=l<u.lineHeight?(u.lineHeight-l)/2:0,m=t.y+p;if(r.usePointStyle){const g={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},v=s.leftForLtr(h,c)+c/2,w=m+l/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,iM(e,g,v,w),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,iM(e,g,v,w)}else{e.lineWidth=Kt(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;const g=s.leftForLtr(h,c),v=s.leftForLtr(s.xPlus(h,1),c-2),w=xu(o.borderRadius);Object.values(w).some(_=>_!==0)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,Yp(e,{x:g,y:m,w:c,h:l,radius:w}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),Yp(e,{x:v,y:m+1,w:c-2,h:l-2,radius:w}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(g,m,c,l),e.strokeRect(g,m,c,l),e.fillStyle=o.backgroundColor,e.fillRect(v,m+1,c-2,l-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:s}=this,{bodySpacing:r,bodyAlign:o,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=n,d=xi(n.bodyFont);let h=d.lineHeight,p=0;const m=gd(n.rtl,this.x,this.width),g=function(M){t.fillText(M,m.x(e.x+p),e.y+h/2),e.y+=h+r},v=m.textAlign(o);let w,_,x,k,S,T,E;for(t.textAlign=o,t.textBaseline="middle",t.font=d.string,e.x=Bb(this,v,n),t.fillStyle=n.bodyColor,he(this.beforeBody,g),p=a&&v!=="right"?o==="center"?c/2+u:c+2+u:0,k=0,T=s.length;k<T;++k){for(w=s[k],_=this.labelTextColors[k],t.fillStyle=_,he(w.before,g),x=w.lines,a&&x.length&&(this._drawColorBox(t,e,k,m,n),h=Math.max(d.lineHeight,l)),S=0,E=x.length;S<E;++S)g(x[S]),h=d.lineHeight;he(w.after,g)}p=0,h=d.lineHeight,he(this.afterBody,g),e.y-=r}drawFooter(e,t,n){const s=this.footer,r=s.length;let o,a;if(r){const l=gd(n.rtl,this.x,this.width);for(e.x=Bb(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=l.textAlign(n.footerAlign),t.textBaseline="middle",o=xi(n.footerFont),t.fillStyle=n.footerColor,t.font=o.string,a=0;a<r;++a)t.fillText(s[a],l.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+n.footerSpacing}}drawBackground(e,t,n,s){const{xAlign:r,yAlign:o}=this,{x:a,y:l}=e,{width:c,height:u}=n,{topLeft:d,topRight:h,bottomLeft:p,bottomRight:m}=xu(s.cornerRadius);t.fillStyle=s.backgroundColor,t.strokeStyle=s.borderColor,t.lineWidth=s.borderWidth,t.beginPath(),t.moveTo(a+d,l),o==="top"&&this.drawCaret(e,t,n,s),t.lineTo(a+c-h,l),t.quadraticCurveTo(a+c,l,a+c,l+h),o==="center"&&r==="right"&&this.drawCaret(e,t,n,s),t.lineTo(a+c,l+u-m),t.quadraticCurveTo(a+c,l+u,a+c-m,l+u),o==="bottom"&&this.drawCaret(e,t,n,s),t.lineTo(a+p,l+u),t.quadraticCurveTo(a,l+u,a,l+u-p),o==="center"&&r==="left"&&this.drawCaret(e,t,n,s),t.lineTo(a,l
89+d),t.quadraticCurveTo(a,l,a+d,l),t.closePath(),t.fill(),s.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,s=n&&n.x,r=n&&n.y;if(s||r){const o=Kf[e.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=PR(this,e),l=Object.assign({},o,this._size),c=CR(t,e,l),u=AR(e,l,c,t);(s._to!==u.x||r._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const s={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const o=ln(t.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&a&&(e.save(),e.globalAlpha=n,this.drawBackground(r,e,s,t),OW(e,t.textDirection),r.y+=o.top,this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),$W(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,s=e.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),r=!Tv(n,s),o=this._positionChanged(s,t);(r||o)&&(this._active=s,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,r=this._active||[],o=this._getActiveElements(e,r,t,n),a=this._positionChanged(o,e),l=t||!Tv(o,r)||a;return l&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),l}_getActiveElements(e,t,n,s){const r=this.options;if(e.type==="mouseout")return[];if(!s)return t.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,r.mode,r,n);return r.reverse&&o.reverse(),o}_positionChanged(e,t){const{caretX:n,caretY:s,options:r}=this,o=Kf[r.position].call(this,e,t);return o!==!1&&(n!==o.x||s!==o.y)}}O(cM,"positioners",Kf);var got={id:"tooltip",_element:cM,positioners:Kf,afterInit(i,e,t){t&&(i.tooltip=new cM({chart:i,options:t}))},beforeUpdate(i,e,t){i.tooltip&&i.tooltip.initialize(t)},reset(i,e,t){i.tooltip&&i.tooltip.initialize(t)},afterDraw(i){const e=i.tooltip;if(e&&e._willRender()){const t={tooltip:e};if(i.notifyPlugins("beforeTooltipDraw",{...t,cancelable:!0})===!1)return;e.draw(i.ctx),i.notifyPlugins("afterTooltipDraw",t)}},afterEvent(i,e){if(i.tooltip){const t=e.replay;i.tooltip.handleEvent(e.event,t,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(i,e)=>e.bodyFont.size,boxWidth:(i,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:nj},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:i=>i!=="filter"&&i!=="itemSort"&&i!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},mot=Object.freeze({__proto__:null,Colors:Crt,Decimation:$rt,Filler:Jrt,Legend:sot,SubTitle:aot,Title:oot,Tooltip:got});const bot=(i,e,t,n)=>(typeof e=="string"?(t=i.push(e)-1,n.unshift({index:t,label:e})):isNaN(e)&&(t=null),t);function yot(i,e,t,n){const s=i.indexOf(e);if(s===-1)return bot(i,e,t,n);const r=i.lastIndexOf(e);return s!==r?t:s}const vot=(i,e)=>i===null?null:Ri(Math.round(i),0,e);function $R(i){const e=this.getLabels();return i>=0&&i<e.length?e[i]:i}class uM extends Wu{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const n=this.getLabels();for(const{index:s,label:r}of t)n[s]===r&&n.splice(s,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(Yt(e))return null;const n=this.getLabels();return t=isFinite(t)&&n[t]===e?t:yot(n,e,It(t,e),this._addedLabels),vot(t,n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(n=0),t||(s=this.getLabels().length-1)),this.min=n,this.max=s}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,s=[];let r=this.getLabels();r=e===0&&t===r.length-1?r:r.slice(e,t+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let o=e;o<=t;o++)s.push({value:o});return s}getLabelForValue(e){return $R.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}O(uM,"id","category"),O(uM,"defaults",{ticks:{callback:$R}});function wot(i,e){const t=[],{bounds:s,step:r,min:o,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:h}=i,p=r||1,m=u-1,{min:g,max:v}
89=e,w=!Yt(o),_=!Yt(a),x=!Yt(c),k=(v-g)/(d+1);let S=PD((v-g)/m/p)*p,T,E,M,A;if(S<1e-14&&!w&&!_)return[{value:g},{value:v}];A=Math.ceil(v/S)-Math.floor(g/S),A>m&&(S=PD(A*S/m/p)*p),Yt(l)||(T=Math.pow(10,l),S=Math.ceil(S*T)/T),s==="ticks"?(E=Math.floor(g/S)*S,M=Math.ceil(v/S)*S):(E=g,M=v),w&&_&&r&&fit((a-o)/r,S/1e3)?(A=Math.round(Math.min((a-o)/S,u)),S=(a-o)/A,E=o,M=a):x?(E=w?o:E,M=_?a:M,A=c-1,S=(M-E)/A):(A=(M-E)/S,yp(A,Math.round(A),S/1e3)?A=Math.round(A):A=Math.ceil(A));const P=Math.max(CD(S),CD(E));T=Math.pow(10,Yt(l)?P:l),E=Math.round(E*T)/T,M=Math.round(M*T)/T;let L=0;for(w&&(h&&E!==o?(t.push({value:o}),E<o&&L++,yp(Math.round((E+L*S)*T)/T,o,LR(o,k,i))&&L++):E<o&&L++);L<A;++L){const I=Math.round((E+L*S)*T)/T;if(_&&I>a)break;t.push({value:I})}return _&&h&&M!==a?t.length&&yp(t[t.length-1].value,a,LR(a,k,i))?t[t.length-1].value=a:t.push({value:a}):(!_||M===a)&&t.push({value:M}),t}function LR(i,e,{horizontal:t,minRotation:n}){const s=ar(n),r=(t?Math.sin(s):Math.cos(s))||.001,o=.75*e*(""+i).length;return Math.min(e/r,o)}class Ov extends Wu{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return Yt(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:s,max:r}=this;const o=l=>s=t?s:l,a=l=>r=n?r:l;if(e){const l=Qr(s),c=Qr(r);l<0&&c<0?a(0):l>0&&c>0&&o(0)}if(s===r){let l=r===0?1:Math.abs(r*.05);a(r+l),e||o(s-l)}this.min=s,this.max=r}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:t,stepSize:n}=e,s;return n?(s=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),t=t||11),t&&(s=Math.min(t,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const s={maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:t.includeBounds!==!1},r=this._range||this,o=wot(s,r);return e.bounds==="ticks"&&pW(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const s=(n-t)/Math.max(e.length-1,1)/2;t-=s,n+=s}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return K0(e,this.chart.options.locale,this.options.ticks.format)}}class dM extends Ov{determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=si(e)?e:0,this.max=si(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=ar(this.options.ticks.minRotation),s=(e?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,r.lineHeight/s))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}O(dM,"id","linear"),O(dM,"defaults",{ticks:{callback:nE.formatters.numeric}});const Xp=i=>Math.floor(fl(i)),Xl=(i,e)=>Math.pow(10,Xp(i)+e);function IR(i){return i/Math.pow(10,Xp(i))===1}function DR(i,e,t){const n=Math.pow(10,t),s=Math.floor(i/n);return Math.ceil(e/n)-s}function _ot(i,e){const t=e-i;let n=Xp(t);for(;DR(i,e,n)>10;)n++;for(;DR(i,e,n)<10;)n--;return Math.min(n,Xp(i))}function xot(i,{min:e,max:t}){e=es(i.min,e);const n=[],s=Xp(e);let r=_ot(e,t),o=r<0?Math.pow(10,Math.abs(r)):1;const a=Math.pow(10,r),l=s>r?Math.pow(10,s):0,c=Math.round((e-l)*o)/o,u=Math.floor((e-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,r)),h=es(i.min,Math.round((l+u+d*Math.pow(10,r))*o)/o);for(;h<t;)n.push({value:h,major:IR(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(r++,d=2,o=r>=0?1:o),h=Math.round((l+u+d*Math.pow(10,r))*o)/o;const p=es(i.max,h);
89return n.push({value:p,major:IR(p),significand:d}),n}class hM extends Wu{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const n=Ov.prototype.parse.apply(this,[e,t]);if(n===0){this._zero=!0;return}return si(n)&&n>0?n:null}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=si(e)?Math.max(0,e):null,this.max=si(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!si(this._userMin)&&(this.min=e===Xl(this.min,0)?Xl(this.min,-1):Xl(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let n=this.min,s=this.max;const r=a=>n=e?n:a,o=a=>s=t?s:a;n===s&&(n<=0?(r(1),o(10)):(r(Xl(n,-1)),o(Xl(s,1)))),n<=0&&r(Xl(s,-1)),s<=0&&o(Xl(n,1)),this.min=n,this.max=s}buildTicks(){const e=this.options,t={min:this._userMin,max:this._userMax},n=xot(t,this);return e.bounds==="ticks"&&pW(n,this,"value"),e.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}getLabelForValue(e){return e===void 0?"0":K0(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=fl(e),this._valueRange=fl(this.max)-fl(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(fl(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}O(hM,"id","logarithmic"),O(hM,"defaults",{ticks:{callback:nE.formatters.logarithmic,major:{enabled:!0}}});function fM(i){const e=i.ticks;if(e.display&&i.display){const t=ln(e.backdropPadding);return It(e.font&&e.font.size,je.font.size)+t.height}return 0}function Sot(i,e,t){return t=De(t)?t:[t],{w:Mit(i,e.string,t),h:t.length*e.lineHeight}}function RR(i,e,t,n,s){return i===n||i===s?{start:e-t/2,end:e+t/2}:i<n||i>s?{start:e-t,end:e}:{start:e,end:e+t}}function Tot(i){const e={l:i.left+i._padding.left,r:i.right-i._padding.right,t:i.top+i._padding.top,b:i.bottom-i._padding.bottom},t=Object.assign({},e),n=[],s=[],r=i._pointLabels.length,o=i.options.pointLabels,a=o.centerPointLabels?Be/r:0;for(let l=0;l<r;l++){const c=o.setContext(i.getPointLabelContext(l));s[l]=c.padding;const u=i.getPointPosition(l,i.drawingArea+s[l],a),d=xi(c.font),h=Sot(i.ctx,d,i._pointLabels[l]);n[l]=h;const p=us(i.getIndexAngle(l)+a),m=Math.round($$(p)),g=RR(m,u.x,h.w,0,180),v=RR(m,u.y,h.h,90,270);kot(t,e,p,g,v)}i.setCenterPoint(e.l-t.l,t.r-e.r,e.t-t.t,t.b-e.b),i._pointLabelItems=Cot(i,n,s)}function kot(i,e,t,n,s){const r=Math.abs(Math.sin(t)),o=Math.abs(Math.cos(t));let a=0,l=0;n.start<e.l?(a=(e.l-n.start)/r,i.l=Math.min(i.l,e.l-a)):n.end>e.r&&(a=(n.end-e.r)/r,i.r=Math.max(i.r,e.r+a)),s.start<e.t?(l=(e.t-s.start)/o,i.t=Math.min(i.t,e.t-l)):s.end>e.b&&(l=(s.end-e.b)/o,i.b=Math.max(i.b,e.b+l))}function Eot(i,e,t){const n=i.drawingArea,{extra:s,additionalAngle:r,padding:o,size:a}=t,l=i.getPointPosition(e,n+s+o,r),c=Math.round($$(us(l.angle+ui))),u=Oot(l.y,a.h,c),d=Aot(c),h=Mot(l.x,a.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:h,top:u,right:h+a.w,bottom:u+a.h}}function Pot(i,e){if(!e)return!0;const{left:t,top:n,right:s,bottom:r}=i;return!(Zo({x:t,y:n},e)||Zo({x:t,y:r},e)||Zo({x:s,y:n},e)||Zo({x:s,y:r},e))}function Cot(i,e,t){const n=[],s=i._pointLabels.length,r=i.options,{centerPointLabels:o,display:a}=r.pointLabels,l={extra:fM(r)/2,additionalAngle:o?Be/s:0};let c;for(let u=0;u<s;u++){l.padding=t[u],l.size=e[u];const d=Eot(i,u,l);n.push(d),a==="auto"&&(d.visible=Pot(d,c),d.visible&&(c=d))}return n}function Aot(i){return i===0||i===180?"center":i<180?"left":"right"}function Mot(i,e,t){return t==="right"?i-=e:t==="center"&&(i-=e/2),i}function Oot(i,e,t){return t===90||t===270?i-=e/2:(t>270||t<90)&&(i-=e),i}function $ot(i,e,t){const{left:n,top:s,right:r,bottom:o}=t,{backdropColor:a}=e;if(!Yt(a)){const l=xu(e.borderRadius),c=ln(e.backdropPadding);i.fillStyle=a;const u=n-c.left,d=s-c.top,h=r-n+c.width,p=o-s+c.height;
89Object.values(l).some(m=>m!==0)?(i.beginPath(),Yp(i,{x:u,y:d,w:h,h:p,radius:l}),i.fill()):i.fillRect(u,d,h,p)}}function Lot(i,e){const{ctx:t,options:{pointLabels:n}}=i;for(let s=e-1;s>=0;s--){const r=i._pointLabelItems[s];if(!r.visible)continue;const o=n.setContext(i.getPointLabelContext(s));$ot(t,o,r);const a=xi(o.font),{x:l,y:c,textAlign:u}=r;Du(t,i._pointLabels[s],l,c+a.lineHeight/2,a,{color:o.color,textAlign:u,textBaseline:"middle"})}}function sj(i,e,t,n){const{ctx:s}=i;if(t)s.arc(i.xCenter,i.yCenter,e,0,Fe);else{let r=i.getPointPosition(0,e);s.moveTo(r.x,r.y);for(let o=1;o<n;o++)r=i.getPointPosition(o,e),s.lineTo(r.x,r.y)}}function Iot(i,e,t,n,s){const r=i.ctx,o=e.circular,{color:a,lineWidth:l}=e;!o&&!n||!a||!l||t<0||(r.save(),r.strokeStyle=a,r.lineWidth=l,r.setLineDash(s.dash||[]),r.lineDashOffset=s.dashOffset,r.beginPath(),sj(i,t,o,n),r.closePath(),r.stroke(),r.restore())}function Dot(i,e,t){return Il(i,{label:t,index:e,type:"pointLabel"})}class Xf extends Ov{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=ln(fM(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!1);this.min=si(e)&&!isNaN(e)?e:0,this.max=si(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/fM(this.options))}generateTickLabels(e){Ov.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((t,n)=>{const s=ke(this.options.pointLabels.callback,[t,n],this);return s||s===0?s:""}).filter((t,n)=>this.chart.getDataVisibility(n))}fit(){const e=this.options;e.display&&e.pointLabels.display?Tot(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,s){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,s))}getIndexAngle(e){const t=Fe/(this._pointLabels.length||1),n=this.options.startAngle||0;return us(e*t+ar(n))}getDistanceFromCenterForValue(e){if(Yt(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(Yt(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e<t.length){const n=t[e];return Dot(this.getContext(),e,n)}}getPointPosition(e,t,n=0){const s=this.getIndexAngle(e)-ui+n;return{x:Math.cos(s)*t+this.xCenter,y:Math.sin(s)*t+this.yCenter,angle:s}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:n,right:s,bottom:r}=this._pointLabelItems[e];return{left:t,top:n,right:s,bottom:r}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const n=this.ctx;n.save(),n.beginPath(),sj(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:n,grid:s,border:r}=t,o=this._pointLabels.length;let a,l,c;if(t.pointLabels.display&&Lot(this,o),s.display&&this.ticks.forEach((u,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const h=this.getContext(d),p=s.setContext(h),m=r.setContext(h);Iot(this,p,l,o,m)}}),n.display){for(e.save(),a=o-1;a>=0;a--){const u=n.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:h}=u;!h||!d||(e.lineWidth=h,e.strokeStyle=d,e.setLineDash(u.borderDash),e.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),c=this.getPointPosition(a,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}
89drawLabels(){const e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;const s=this.getIndexAngle(0);let r,o;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(s),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&this.min>=0&&!t.reverse)return;const c=n.setContext(this.getContext(l)),u=xi(c.font);if(r=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){e.font=u.string,o=e.measureText(a.label).width,e.fillStyle=c.backdropColor;const d=ln(c.backdropPadding);e.fillRect(-o/2-d.left,-r-u.size/2-d.top,o+d.width,u.size+d.height)}Du(e,a.label,0,-r,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),e.restore()}drawTitle(){}}O(Xf,"id","radialLinear"),O(Xf,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:nE.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),O(Xf,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),O(Xf,"descriptors",{angleLines:{_fallback:"grid"}});const aE={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},qn=Object.keys(aE);function FR(i,e){return i-e}function NR(i,e){if(Yt(e))return null;const t=i._adapter,{parser:n,round:s,isoWeekday:r}=i._parseOpts;let o=e;return typeof n=="function"&&(o=n(o)),si(o)||(o=typeof n=="string"?t.parse(o,n):t.parse(o)),o===null?null:(s&&(o=s==="week"&&(Qh(r)||r===!0)?t.startOf(o,"isoWeek",r):t.startOf(o,s)),+o)}function BR(i,e,t,n){const s=qn.length;for(let r=qn.indexOf(i);r<s-1;++r){const o=aE[qn[r]],a=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((t-e)/(a*o.size))<=n)return qn[r]}return qn[s-1]}function Rot(i,e,t,n,s){for(let r=qn.length-1;r>=qn.indexOf(t);r--){const o=qn[r];if(aE[o].common&&i._adapter.diff(s,n,o)>=e-1)return o}return qn[t?qn.indexOf(t):0]}function Fot(i){for(let e=qn.indexOf(i)+1,t=qn.length;e<t;++e)if(aE[qn[e]].common)return qn[e]}function zR(i,e,t){if(!t)i[e]=!0;else if(t.length){const{lo:n,hi:s}=L$(t,e),r=t[n]>=e?t[n]:t[s];i[r]=!0}}function Not(i,e,t,n){const s=i._adapter,r=+s.startOf(e[0].value,n),o=e[e.length-1].value;let a,l;for(a=r;a<=o;a=+s.add(a,1,n))l=t[a],l>=0&&(e[l].major=!0);return e}function VR(i,e,t){const n=[],s={},r=e.length;let o,a;for(o=0;o<r;++o)a=e[o],s[a]=o,n.push({value:a,major:!1});return r===0||!t?n:Not(i,n,s,t)}class Qp extends Wu{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t={}){const n=e.time||(e.time={}),s=this._adapter=new Unt._date(e.adapters.date);s.init(t),bp(n.displayFormats,s.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return e===void 0?null:NR(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,n=e.time.unit||"day";let{min:s,max:r,minDefined:o,maxDefined:a}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(s=Math.min(s,c.min)),!a&&!isNaN(c.max)&&(r=Math.max(r,c.max))}(!o||!a)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),s=si(s)&&!isNaN(s)?s:+t.startOf(Date.now(),n),r=si(r)&&!isNaN(r)?r:+t.endOf(Date.now(),n)+1,this.min=Math.min(s,r-1),this.max=Math.max(s+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){const e=this.options,t=e.time,n=e.ticks,s=n.source==="labels"?this.getLabelTimestamps():this._generate();
89e.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const r=this.min,o=this.max,a=bit(s,r,o);return this._unit=t.unit||(n.autoSkip?BR(t.minUnit,this.min,this.max,this._getLabelCapacity(r)):Rot(this,a.length,t.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit==="year"?void 0:Fot(this._unit),this.initOffsets(s),e.reverse&&a.reverse(),VR(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let t=0,n=0,s,r;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),e.length===1?t=1-s:t=(this.getDecimalForValue(e[1])-s)/2,r=this.getDecimalForValue(e[e.length-1]),e.length===1?n=r:n=(r-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;t=Ri(t,0,o),n=Ri(n,0,o),this._offsets={start:t,end:n,factor:1/(t+1+n)}}_generate(){const e=this._adapter,t=this.min,n=this.max,s=this.options,r=s.time,o=r.unit||BR(r.minUnit,t,n,this._getLabelCapacity(t)),a=It(s.ticks.stepSize,1),l=o==="week"?r.isoWeekday:!1,c=Qh(l)||l===!0,u={};let d=t,h,p;if(c&&(d=+e.startOf(d,"isoWeek",l)),d=+e.startOf(d,c?"day":o),e.diff(n,t,o)>1e5*a)throw new Error(t+" and "+n+" are too far apart with stepSize of "+a+" "+o);const m=s.ticks.source==="data"&&this.getDataTimestamps();for(h=d,p=0;h<n;h=+e.add(h,a,o),p++)zR(u,h,m);return(h===n||s.bounds==="ticks"||p===1)&&zR(u,h,m),Object.keys(u).sort(FR).map(g=>+g)}getLabelForValue(e){const t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){const s=this.options.time.displayFormats,r=this._unit,o=t||s[r];return this._adapter.format(e,o)}_tickFormatFunction(e,t,n,s){const r=this.options,o=r.ticks.callback;if(o)return ke(o,[e,t,n],this);const a=r.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],h=n[t],p=c&&d&&h&&h.major;return this._adapter.format(e,s||(p?d:u))}generateTickLabels(e){let t,n,s;for(t=0,n=e.length;t<n;++t)s=e[t],s.label=this._tickFormatFunction(s.value,t,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,n=this.ctx.measureText(e).width,s=ar(this.isHorizontal()?t.maxRotation:t.minRotation),r=Math.cos(s),o=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:n*r+a*o,h:n*o+a*r}}_getLabelCapacity(e){const t=this.options.time,n=t.displayFormats,s=n[t.unit]||n.millisecond,r=this._tick
89FormatFunction(e,0,VR(this,[e],this._majorUnit),s),o=this._getLabelSize(r),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let e=this._cache.data||[],t,n;if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(t=0,n=s.length;t<n;++t)e=e.concat(s[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let t,n;if(e.length)return e;const s=this.getLabels();for(t=0,n=s.length;t<n;++t)e.push(NR(this,s[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return bW(e.sort(FR))}}O(Qp,"id","time"),O(Qp,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function zb(i,e,t){let n=0,s=i.length-1,r,o,a,l;t?(e>=i[n].pos&&e<=i[s].pos&&({lo:n,hi:s}=Jo(i,"pos",e)),{pos:r,time:a}=i[n],{pos:o,time:l}=i[s]):(e>=i[n].time&&e<=i[s].time&&({lo:n,hi:s}=Jo(i,"time",e)),{time:r,pos:a}=i[n],{time:o,pos:l}=i[s]);const c=o-r;return c?a+(l-a)*(e-r)/c:a}class pM extends Qp{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=zb(t,this.min),this._tableRange=zb(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:n}=this,s=[],r=[];let o,a,l,c,u;for(o=0,a=e.length;o<a;++o)c=e[o],c>=t&&c<=n&&s.push(c);if(s.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(o=0,a=s.length;o<a;++o)u=s[o+1],l=s[o-1],c=s[o],Math.round((u+l)/2)!==c&&r.push({time:c,pos:o/(a-1)});return r}_generate(){const e=this.min,t=this.max;let n=super.getDataTimestamps();return(!n.includes(e)||!n.length)&&n.splice(0,0,e),(!n.includes(t)||n.length===1)&&n.push(t),n.sort((s,r)=>s-r)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),n=this.getLabelTimestamps();return t.length&&n.length?e=this.normalize(t.concat(n)):e=t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(zb(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return zb(this._table,n*this._tableRange+this._minPos,!0)}}O(pM,"id","timeseries"),O(pM,"defaults",Qp.defaults);var Bot=Object.freeze({__proto__:null,CategoryScale:uM,LinearScale:dM,LogarithmicScale:hM,RadialLinearScale:Xf,TimeScale:Qp,TimeSeriesScale:pM});const zot=[jnt,_rt,mot,Bot];H$.register(...zot);const Vot=()=>({chart:null,animated:!1,init(i){if(!i||!i.contributors||!i.total){console.error("Données invalides pour le graphique");return}const{contributors:e,total:t}=i,n=new IntersectionObserver(r=>{r.forEach(o=>{o.isIntersecting&&!this.animated&&(this.initChart({contributors:e,total:t}),this.animated=!0)})},{threshold:.5}),s=this.$el.querySelector("canvas");s&&n.observe(s)},initChart({contributors:i,total:e}){const t=this.$el.querySelector("canvas"),n=this.getColors(),s=i.map(r=>({...r,percentage:(r.value/e*100).toFixed(1)}));this.chart&&this.chart.destroy(),this.chart=new H$(t,{type:"doughnut",data:{labels:s.map(r=>r.label),datasets:[{data:s.map(r=>r.value),backgroundColor:n,borderRadius:0,borderWidth:0,hoverOpacity:.12,opacity:.1}]},options:{responsive:!0,maintainAspectRatio:!0,cutout:"50%",plugins:{legend:{display:!1},tooltip:{enabled:!0,callbacks:{label:function(r){const o=s[r.dataIndex];return`${o.label}: ${o.percentage}%`}}}},animation:{duration:2e3,easing:"easeInOutQuart"}}})},getColors(){const e=getComputedStyle(document.documentElement).getPropertyValue("--accent-color").trim().replace("#",""),t=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),s=parseInt(e.substring(4,6),16);return[`rgba(${t}, ${n}, ${s}, 1)`,`rgba(${t}, ${n}, ${s}, 0.8)`,`rgba(${t}, ${n}, ${s}, 0.6)`,`rgba(${t}, ${n}, ${s}, 0.4)`,`rgba(${t}, ${n}, ${s}, 0.2)`,`rgba(${t}, ${n}, ${s}, 0.1)`]}}),qot=()=>({currentValue:0,target:0,displayValue:0,duration:2e3,animated:!1,init(i){this.target=parseInt(i)||0},startCount(){if(this.animated)return;this.animated=!0;const i=performance.now(),e=t=>{const n=t-i,s=Math.min(n/this.duration,1);this.currentValue=Math.floor(this.easeOutQuad(s)*this.target),this.displayValue=this.formatNumber(this.currentValue),s<1&&requestAnimationFrame(e)};requestAnimationFrame(e)},easeOutQuad(i){return 1-(1-i)*(1-i)}
89,formatNumber(i){return i.toLocaleString("fr-FR")}}),Hot=()=>({showToast:!1,async copyToClipboard(i){try{await navigator.clipboard.writeText(i),this.showToast=!0,setTimeout(()=>{this.showToast=!1},2e3)}catch(e){console.error("Erreur lors de la copie :",e)}}}),Wot=()=>({fixed:!1,isOpen:!1,quicklinksHeight:0,parentElement:null,audioplayer:!1,scrollToSection(i){const e=document.querySelector(i),n=Alpine.store("header").menuIsHidden?-200:-50;window.lenis.scrollTo(e,{offset:n})},toggleOpen(){this.isOpen=this.fixed?!this.isOpen:!1},initIntersectionObserver(){const i=document.querySelector("#main-item-header");if(!i)return;this.parentElement=this.$el.parentElement,new IntersectionObserver(t=>{!this.fixed&&!t[0].isIntersecting&&(this.quicklinksHeight=this.$el.offsetHeight),this.fixed=!t[0].isIntersecting,this.fixed?this.parentElement.style.height=`${this.quicklinksHeight}px`:this.parentElement.style.height=""},{threshold:0}).observe(i)},init(){this.audioplayer=!!document.querySelector("#accessibility-audio"),this.initIntersectionObserver()}});class jot{constructor(e={}){this.selectors=e.selectors||"a, button",this.class=e.class||"is-active",this.containers=e.containers||["body"],this.elements=[],this.update()}update(){const e=this.containers.flatMap(s=>this.selectors.split(",").map(r=>`${s} ${r.trim()}`)).join(", ");this.elements=document.querySelectorAll(e);const t=window.location.origin,n=location.pathname.split("?")[0].trim();this.elements.forEach(s=>{var o;if(s.hasAttribute("data-language-link"))return;s.classList.contains(this.class)&&s.classList.remove(this.class);let r=s.href?s.getAttribute("href").trim():(o=s.dataset.href)==null?void 0:o.trim();r&&(r=r.replace(t,""),(n.indexOf(r)===0&&r.length<n.length||r===n)&&s.classList.add(this.class))})}}var rd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lE(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var rj={},oj={},U$={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return e}});function e(t){if(t=`${t}`,t==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(t))return t.replace(/^[+-]?/,s=>s==="-"?"":"-");let n=["var","calc","min","max","clamp"];for(const s of n)if(t.includes(`${s}(`))return`calc(${t} * -1)`}})(U$);var aj={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return e}});const e=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","lineClamp","display","aspectRatio","size","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","captionSide","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","listStyleImage","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","hyphens","whitespace","textWrap","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","contain","content","forcedColorAdjust"]})(aj);var lj={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return e}});function e(t,n){return t===void 0?n:Array.isArray(t)?t:[...new Set(n.filter(r=>t!==!1&&t[r]!==!1).concat(Object.keys(t).filter(r=>t[r]!==!1)))]}})(lj);var G$={},cE={},Y$={exports:{}},Ft=String,cj=function(){return{isColorSupported:!1,reset:Ft,bold:Ft,dim:Ft,italic:Ft,underline:Ft,inverse:Ft,hidden:Ft,strikethrough:Ft,black:Ft,red:Ft,green:Ft,yellow:Ft,blue:Ft,magenta:Ft,cyan:Ft,white:Ft,gray:Ft,bgBlack:Ft,bgRed:Ft,bgGreen:Ft,bgYellow:Ft,bgBlue:Ft,bgMagenta:Ft,bgCyan:Ft,bgWhite:Ft,blackBright:Ft,redBright:Ft,greenBright:Ft,yellowBright:Ft,blueBright:Ft,magentaBright:Ft,cyanBright:Ft,whiteBright:Ft,bgBlackBright:Ft,bgRedBright:Ft,bgGreen
89Bright:Ft,bgYellowBright:Ft,bgBlueBright:Ft,bgMagentaBright:Ft,bgCyanBright:Ft,bgWhiteBright:Ft}};Y$.exports=cj();Y$.exports.createColors=cj;var uj=Y$.exports;(function(i){Object.defineProperty(i,"__esModule",{value:!0});function e(l,c){for(var u in c)Object.defineProperty(l,u,{enumerable:!0,get:c[u]})}e(i,{dim:function(){return o},default:function(){return a}});const t=n(uj);function n(l){return l&&l.__esModule?l:{default:l}}let s=new Set;function r(l,c,u){typeof process<"u"&&{}.JEST_WORKER_ID||u&&s.has(u)||(u&&s.add(u),console.warn(""),c.forEach(d=>console.warn(l,"-",d)))}function o(l){return t.default.dim(l)}const a={info(l,c){r(t.default.bold(t.default.cyan("info")),...Array.isArray(l)?[l]:[c,l])},warn(l,c){r(t.default.bold(t.default.yellow("warn")),...Array.isArray(l)?[l]:[c,l])},risk(l,c){r(t.default.bold(t.default.magenta("risk")),...Array.isArray(l)?[l]:[c,l])}}})(cE);(function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return s}});const e=t(cE);function t(r){return r&&r.__esModule?r:{default:r}}function n({version:r,from:o,to:a}){e.default.warn(`${o}-color-renamed`,[`As of Tailwind CSS ${r}, \`${o}\` has been renamed to \`${a}\`.`,"Update your configuration file to silence this warning."])}const s={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return n({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return n({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return n({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return n({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return n({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}})(G$);var dj={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"defaults",{enumerable:!0,get:function(){return e}});function e(t,...n){for(let o of n){for(let a in o){var s;!(t==null||(s=t.hasOwnProperty)===null||s===void 0)&&s.call(t,a)||(t[a]=o[a])}for(let a of Object.getOwnPropertySymbols(o)){var r;!(t==null||(r=t.hasOwnProperty)===null||r===void 0)&&r.call(t,a)||(t[a]=o[a])}}return t}})(dj);var hj={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"toPath",{enumerable:!0,get:function(){return e}});function e(t){if(Array.isArray(t))return t;let n=t.split("[").length-1,s=t.split("]").length-1;
89if(n!==s)throw new Error(`Path is invalid. Has unbalanced brackets: ${t}`);return t.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}})(hj);var fj={},uE={};(function(i){Object.defineProperty(i,"__esModule",{value:!0});function e(d,h){for(var p in h)Object.defineProperty(d,p,{enumerable:!0,get:h[p]})}e(i,{flagEnabled:function(){return a},issueFlagNotices:function(){return c},default:function(){return u}});const t=s(uj),n=s(cE);function s(d){return d&&d.__esModule?d:{default:d}}let r={optimizeUniversalDefaults:!1,generalizedModifiers:!0,disableColorOpacityUtilitiesByDefault:!1,relativeContentPathsByDefault:!1},o={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity","disableColorOpacityUtilitiesByDefault","relativeContentPathsByDefault"],experimental:["optimizeUniversalDefaults","generalizedModifiers"]};function a(d,h){if(o.future.includes(h)){var p,m,g;return d.future==="all"||((g=(m=d==null||(p=d.future)===null||p===void 0?void 0:p[h])!==null&&m!==void 0?m:r[h])!==null&&g!==void 0?g:!1)}if(o.experimental.includes(h)){var v,w,_;return d.experimental==="all"||((_=(w=d==null||(v=d.experimental)===null||v===void 0?void 0:v[h])!==null&&w!==void 0?w:r[h])!==null&&_!==void 0?_:!1)}return!1}function l(d){if(d.experimental==="all")return o.experimental;var h;return Object.keys((h=d==null?void 0:d.experimental)!==null&&h!==void 0?h:{}).filter(p=>o.experimental.includes(p)&&d.experimental[p])}function c(d){if({}.JEST_WORKER_ID===void 0&&l(d).length>0){let h=l(d).map(p=>t.default.yellow(p)).join(", ");n.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${h}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}const u=o})(uE);(function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"normalizeConfig",{enumerable:!0,get:function(){return r}});const e=uE,t=s(cE);function n(o){if(typeof WeakMap!="function")return null;var a=new WeakMap,l=new WeakMap;return(n=function(c){return c?l:a})(o)}function s(o,a){if(!a&&o&&o.__esModule)return o;if(o===null||typeof o!="object"&&typeof o!="function")return{default:o};var l=n(a);if(l&&l.has(o))return l.get(o);var c={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in o)if(d!=="default"&&Object.prototype.hasOwnProperty.call(o,d)){var h=u?Object.getOwnPropertyDescriptor(o,d):null;h&&(h.get||h.set)?Object.defineProperty(c,d,h):c[d]=o[d]}return c.default=o,l&&l.set(o,c),c}function r(o){if((()=>{if(o.purge||!o.content||!Array.isArray(o.content)&&!(typeof o.content=="object"&&o.content!==null))return!1;if(Array.isArray(o.content))return o.content.every(c=>typeof c=="string"?!0:!(typeof(c==null?void 0:c.raw)!="string"||c!=null&&c.extension&&typeof(c==null?void 0:c.extension)!="str
89ing"));if(typeof o.content=="object"&&o.content!==null){if(Object.keys(o.content).some(c=>!["files","relative","extract","transform"].includes(c)))return!1;if(Array.isArray(o.content.files)){if(!o.content.files.every(c=>typeof c=="string"?!0:!(typeof(c==null?void 0:c.raw)!="string"||c!=null&&c.extension&&typeof(c==null?void 0:c.extension)!="string")))return!1;if(typeof o.content.extract=="object"){for(let c of Object.values(o.content.extract))if(typeof c!="function")return!1}else if(!(o.content.extract===void 0||typeof o.content.extract=="function"))return!1;if(typeof o.content.transform=="object"){for(let c of Object.values(o.content.transform))if(typeof c!="function")return!1}else if(!(o.content.transform===void 0||typeof o.content.transform=="function"))return!1;if(typeof o.content.relative!="boolean"&&typeof o.content.relative<"u")return!1}return!0}return!1})()||t.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),o.safelist=(()=>{var c;let{content:u,purge:d,safelist:h}=o;return Array.isArray(h)?h:Array.isArray(u==null?void 0:u.safelist)?u.safelist:Array.isArray(d==null?void 0:d.safelist)?d.safelist:Array.isArray(d==null||(c=d.options)===null||c===void 0?void 0:c.safelist)?d.options.safelist:[]})(),o.blocklist=(()=>{let{blocklist:c}=o;if(Array.isArray(c)){if(c.every(u=>typeof u=="string"))return c;t.default.warn("blocklist-invalid",["The `blocklist` option must be an array of strings.","https://tailwindcss.com/docs/content-configuration#discarding-classes"])}return[]})(),typeof o.prefix=="function")t.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),o.prefix="";else{var l;o.prefix=(l=o.prefix)!==null&&l!==void 0?l:""}o.content={relative:(()=>{let{content:c}=o;return c!=null&&c.relative?c.relative:(0,e.flagEnabled)(o,"relativeContentPathsByDefault")})(),files:(()=>{let{content:c,purge:u}=o;return Array.isArray(u)?u:Array.isArray(u==null?void 0:u.content)?u.content:Array.isArray(c)?c:Array.isArray(c==null?void 0:c.content)?c.content:Array.isArray(c==null?void 0:c.files)?c.files:[]})(),extract:(()=>{let c=(()=>{var h,p,m,g,v,w,_,x,k,S;return!((h=o.purge)===null||h===void 0)&&h.extract?o.purge.extract:!((p=o.content)===null||p===void 0)&&p.extract?o.content.extract:!((m=o.purge)===null||m===void 0||(g=m.extract)===null||g===void 0)&&g.DEFAULT?o.purge.extract.DEFAULT:!((v=o.content)===null||v===void 0||(w=v.extract)===null||w===void 0)&&w.DEFAULT?o.content.extract.DEFAULT:!((_=o.purge)===null||_===void 0||(x=_.options)===null||x===void 0)&&x.extractors?o.purge.options.extractors:!((k=o.content)===null||k===void 0||(S=k.options)===null||S===void 0)&&S.extractors?o.content.options.extractors:{}})(),u={},d=(()=>{var h,p,m,g;if(!((h=o.purge)===null||h===void 0||(p=h.options)===null||p===void 0)&&p.defaultExtractor)return o.purge.options.defaultExtractor;if(!((m=o.content)===null||m===void 0||(g=m.options)===null||g===void 0)&&g.defaultExtractor)return o.content.options.defaultExtractor})();if(d!==void 0&&(u.DEFAULT=d),typeof c=="function")u.DEFAULT=c;else if(Array.isArray(c))for(let{extensions:h,extractor:p}of c??[])for(let m of h)u[m]=p;else typeof c=="object"&&c!==null&&Object.assign(u,c);return u})(),transform:(()=>{let c=(()=>{var d,h,p,m,g,v;return!((d=o.purge)===null||d===void 0)&&d.transform?o.purge.transform:!((h=o.content)===null||h===void 0)&&h.transform?o.content.transform:!((p=o.purge)===null||p===void 0||(m=p.transform)===null||m===void 0)&&m.DEFAULT?o.purge.transform.DEFAULT:!((g=o.content)===null||g===void 0||(v=g.transform)===null||v===void 0)&&v.DEFAULT?o.content.transform.DEFAULT:{}})(),u={};return typeof c=="function"?u.DEFAULT=c:typeof c=="object"&&c!==null&&Object.assign(u,c),u})()};for(let c of o.content.files)if(typeof c=="string"&&/{([^,]*?)}/g.test(c)){t.default.warn("invalid-glob-braces",[`The glob pattern ${(0,t.dim)(c)}
89 in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,t.dim)(c.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return o}})(fj);var pj={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return e}});function e(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;const n=Object.getPrototypeOf(t);return n===null||Object.getPrototypeOf(n)===null}})(pj);var K$={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"cloneDeep",{enumerable:!0,get:function(){return e}});function e(t){return Array.isArray(t)?t.map(n=>e(n)):typeof t=="object"&&t!==null?Object.fromEntries(Object.entries(t).map(([n,s])=>[n,e(s)])):t}})(K$);var gj={},mj={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return e}});function e(t){return t.replace(/\\,/g,"\\2c ")}})(mj);var X$={},Q$={},bj={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return e}});const e={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}})(bj);(function(i){Object.defineProperty(i,"__esModule",{value:!0});function e(m,g){for(var v in g)Object.defineProperty(m,v,{enumerable:!0,get:g[v]})}e(i,{parseColor:function(){return h},formatColor:function(){return p}});const t=n(bj);
89function n(m){return m&&m.__esModule?m:{default:m}}let s=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,r=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,o=/(?:\d+|\d*\.\d+)%?/,a=/(?:\s*,\s*|\s+)/,l=/\s*[,/]\s*/,c=/var\(--(?:[^ )]*?)(?:,(?:[^ )]*?|var\(--[^ )]*?\)))?\)/,u=new RegExp(`^(rgba?)\\(\\s*(${o.source}|${c.source})(?:${a.source}(${o.source}|${c.source}))?(?:${a.source}(${o.source}|${c.source}))?(?:${l.source}(${o.source}|${c.source}))?\\s*\\)$`),d=new RegExp(`^(hsla?)\\(\\s*((?:${o.source})(?:deg|rad|grad|turn)?|${c.source})(?:${a.source}(${o.source}|${c.source}))?(?:${a.source}(${o.source}|${c.source}))?(?:${l.source}(${o.source}|${c.source}))?\\s*\\)$`);function h(m,{loose:g=!1}={}){var v,w;if(typeof m!="string")return null;if(m=m.trim(),m==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(m in t.default)return{mode:"rgb",color:t.default[m].map(T=>T.toString())};let _=m.replace(r,(T,E,M,A,P)=>["#",E,E,M,M,A,A,P?P+P:""].join("")).match(s);if(_!==null)return{mode:"rgb",color:[parseInt(_[1],16),parseInt(_[2],16),parseInt(_[3],16)].map(T=>T.toString()),alpha:_[4]?(parseInt(_[4],16)/255).toString():void 0};var x;let k=(x=m.match(u))!==null&&x!==void 0?x:m.match(d);if(k===null)return null;let S=[k[2],k[3],k[4]].filter(Boolean).map(T=>T.toString());return S.length===2&&S[0].startsWith("var(")?{mode:k[1],color:[S[0]],alpha:S[1]}:!g&&S.length!==3||S.length<3&&!S.some(T=>/^var\(.*?\)$/.test(T))?null:{mode:k[1],color:S,alpha:(v=k[5])===null||v===void 0||(w=v.toString)===null||w===void 0?void 0:w.call(v)}}function p({mode:m,color:g,alpha:v}){let w=v!==void 0;return m==="rgba"||m==="hsla"?`${m}(${g.join(", ")}${w?`, ${v}`:""})`:`${m}(${g.join(" ")}${w?` / ${v}`:""})`}})(Q$);(function(i){Object.defineProperty(i,"__esModule",{value:!0});function e(r,o){for(var a in o)Object.defineProperty(r,a,{enumerable:!0,get:o[a]})}e(i,{withAlphaValue:function(){return n},default:function(){return s}});const t=Q$;function n(r,o,a){if(typeof r=="function")return r({opacityValue:o});let l=(0,t.parseColor)(r,{loose:!0});return l===null?a:(0,t.formatColor)({...l,alpha:o})}function s({color:r,property:o,variable:a}){let l=[].concat(o);if(typeof r=="function")return{[a]:"1",...Object.fromEntries(l.map(u=>[u,r({opacityVariable:a,opacityValue:`var(${a}, 1)`})]))};const c=(0,t.parseColor)(r);return c===null?Object.fromEntries(l.map(u=>[u,r])):c.alpha!==void 0?Object.fromEntries(l.map(u=>[u,r])):{[a]:"1",...Object.fromEntries(l.map(u=>[u,(0,t.formatColor)({...c,alpha:`var(${a}, 1)`})]))}}})(X$);var J$={},yj={},dE={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"splitAtTopLevelOnly",{enumerable:!0,get:function(){return e}});function e(t,n){let s=[],r=[],o=0,a=!1;for(let l=0;l<t.length;l++){let c=t[l];s.length===0&&c===n[0]&&!a&&(n.length===1||t.slice(l,l+n.length)===n)&&(r.push(t.slice(o,l)),o=l+n.length),a=a?!1:c==="\\",c==="("||c==="["||c==="{"?s.push(c):(c===")"&&s[s.length-1]==="("||c==="]"&&s[s.length-1]==="["||c==="}"&&s[s.length-1]==="{")&&s.pop()}return r.push(t.slice(o)),r}})(dE);(function(i){Object.defineProperty(i,"__esModule",{value:!0});function e(l,c){for(var u in c)Object.defineProperty(l,u,{enumerable:!0,get:c[u]})}e(i,{parseBoxShadowValue:function(){return o},formatBoxShadowValue:function(){return a}});const t=dE;let n=new Set(["inset","inherit","initial","revert","unset"]),s=/\ +(?![^(]*\))/g,r=/^-?(\d+|\.\d+)(.*?)$/g;function o(l){return(0,t.splitAtTopLevelOnly)(l,",").map(u=>{let d=u.trim(),h={raw:d},p=d.split(s),m=new Set;for(let g of p)r.lastIndex=0,!m.has("KEYWORD")&&n.has(g)?(h.keyword=g,m.add("KEYWORD")):r.test(g)?m.has("X")?m.has("Y")?m.has("BLUR")?m.has("SPREAD")||(h.spread=g,m.add("SPREAD")):(h.blur=g,m.add("BLUR")):(h.y=g,m.add("Y")):(h.x=g,m.add("X")):h.color?(h.unknown||(h.unknown=[]),h.unknown.push(g)):h.color=g;return h.valid=h.x!==void 0&&h.y!==void 0,h})}function a(l){return l.map(c=>
89c.valid?[c.keyword,c.x,c.y,c.blur,c.spread,c.color].filter(Boolean).join(" "):c.raw).join(", ")}})(yj);(function(i){Object.defineProperty(i,"__esModule",{value:!0});function e($,B){for(var K in B)Object.defineProperty($,K,{enumerable:!0,get:B[K]})}e(i,{normalize:function(){return l},normalizeAttributeSelectors:function(){return c},url:function(){return d},number:function(){return h},percentage:function(){return p},length:function(){return v},lineWidth:function(){return _},shadow:function(){return x},color:function(){return k},image:function(){return S},gradient:function(){return E},position:function(){return A},familyName:function(){return P},genericName:function(){return I},absoluteSize:function(){return q},relativeSize:function(){return j}});const t=Q$,n=yj,s=dE;let r=["min","max","clamp","calc"];function o($){return r.some(B=>new RegExp(`^${B}\\(.*\\)`).test($))}const a=new Set(["scroll-timeline-name","timeline-scope","view-timeline-name","font-palette","anchor-name","anchor-scope","position-anchor","position-try-options","scroll-timeline","animation-timeline","view-timeline","position-try"]);function l($,B=null,K=!0){let N=B&&a.has(B.property);return $.startsWith("--")&&!N?`var(${$})`:$.includes("url(")?$.split(/(url\(.*?\))/g).filter(Boolean).map(J=>/^url\(.*?\)$/.test(J)?J:l(J,B,!1)).join(""):($=$.replace(/([^\\])_+/g,(J,et)=>et+" ".repeat(J.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),K&&($=$.trim()),$=u($),$)}function c($){return $.includes("=")&&($=$.replace(/(=.*)/g,(B,K)=>{if(K[1]==="'"||K[1]==='"')return K;if(K.length>2){let N=K[K.length-1];if(K[K.length-2]===" "&&(N==="i"||N==="I"||N==="s"||N==="S"))return`="${K.slice(1,-2)}" ${K[K.length-1]}`}return`="${K.slice(1)}"`})),$}function u($){let B=["theme"],K=["min-content","max-content","fit-content","safe-area-inset-top","safe-area-inset-right","safe-area-inset-bottom","safe-area-inset-left","titlebar-area-x","titlebar-area-y","titlebar-area-width","titlebar-area-height","keyboard-inset-top","keyboard-inset-right","keyboard-inset-bottom","keyboard-inset-left","keyboard-inset-width","keyboard-inset-height","radial-gradient","linear-gradient","conic-gradient","repeating-radial-gradient","repeating-linear-gradient","repeating-conic-gradient","anchor-size"];return $.replace(/(calc|min|max|clamp)\(.+\)/g,N=>{let J="";function et(){let Z=J.trimEnd();return Z[Z.length-1]}for(let Z=0;Z<N.length;Z++){let U=function(Y){return Y.split("").every((ot,pt)=>N[Z+pt]===ot)},tt=function(Y){let ot=1/0;for(let mt of Y){let lt=N.indexOf(mt,Z);lt!==-1&<<ot&&(ot=lt)}let pt=N.slice(Z,ot);return Z+=pt.length-1,pt},it=N[Z];if(U("var"))J+=tt([")",","]);else if(K.some(Y=>U(Y))){let Y=K.find(ot=>U(ot));J+=Y,Z+=Y.length-1}else B.some(Y=>U(Y))?J+=tt([")"]):U("[")?J+=tt(["]"]):["+","-","*","/"].includes(it)&&!["(","+","-","*","/",","].includes(et())?J+=` ${it} `:J+=it}return J.replace(/\s+/g," ")})}function d($){return $.startsWith("url(")}function h($){return!isNaN(Number($))||o($)}function p($){return $.endsWith("%")&&h($.slice(0,-1))||o($)}let g=`(?:${["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"].join("|")})`;function v($){return $==="0"||new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${g}$`).test($)||o($)}let w=new Set(["thin","medium","thick"]);function _($){return w.has($)}function x($){let B=(0,n.parseBoxShadowValue)(l($));for(let K of B)if(!K.valid)return!1;return!0}function k($){let B=0;return(0,s.splitAtTopLevelOnly)($,"_").every(N=>(N=l(N),N.startsWith("var(")?!0:(0,t.parseColor)(N,{loose:!0})!==null?(B++,!0):!1))?B>0:!1}function S($){let B=0;return(0,s.splitAtTopLevelOnly)($,",").every(N=>(N=l(N),N.startsWith("var(")?!0:d(N)||E(N)||["element(","image(","cross-fade(","image-set("].some(J=>N.startsWith(J))?(B++,!0):!1))?B>0:!1}let T=new Set(["conic-gradient","linear-gradient","radial-gradient","repeating-conic-gradient","repeating-linear-gradient","repeating-radial-gradient"]);function E($){$=l($);for(let B of T)if($.startsWith(`${B}(`))return!0;return!1}let M=new Set(["center","top","right","bottom","left"]);function A($){let B=0;return(0,s.splitAtTopLevelOnly)($,"_").every(N=>(N=l(N),N.startsWith("var(")?!0:M.has(N)||v(N)||p(N)?(B++,!0):!1))?B>0:!1}function P($){let B=0;return(0,s.splitAtTopLevelOnly)($,",").every(N=>(N=l(N),N.startsWith("var(")?!0:N.includes(" ")&&!/(['"])([^"']+)\1/g.test(N)||/^\d/g.test(N)?!1:(B++,!0)))?B>0:!1}let L=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function I($){return L.has($)}let z=new Set(["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large"]);function q($){return z.has($)}let H=new Set(["larger","smaller"]);function j($){return H.has($)}})(J$);var vj={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"backgroundSize",{enumerable:!0,get:function(){return n}});const e=J$,t=dE;function n(s){let r=["cover","contain"];return(0,t.splitAtTopLevelOnly)(s,",").every(o=>
89{let a=(0,t.splitAtTopLevelOnly)(o,"_").filter(Boolean);return a.length===1&&r.includes(a[0])?!0:a.length!==1&&a.length!==2?!1:a.every(l=>(0,e.length)(l)||(0,e.percentage)(l)||l==="auto")})}})(vj);(function(i){Object.defineProperty(i,"__esModule",{value:!0});function e(A,P){for(var L in P)Object.defineProperty(A,L,{enumerable:!0,get:P[L]})}e(i,{updateAllClasses:function(){return c},asValue:function(){return h},parseColorFormat:function(){return g},asColor:function(){return w},asLookupValue:function(){return _},typeMap:function(){return k},coerceValue:function(){return E},getMatchingTypes:function(){return M}});const t=l(mj),n=X$,s=J$,r=l(U$),o=vj,a=uE;function l(A){return A&&A.__esModule?A:{default:A}}function c(A,P){A.walkClasses(L=>{L.value=P(L.value),L.raws&&L.raws.value&&(L.raws.value=(0,t.default)(L.raws.value))})}function u(A,P){if(!p(A))return;let L=A.slice(1,-1);if(P(L))return(0,s.normalize)(L)}function d(A,P={},L){let I=P[A];if(I!==void 0)return(0,r.default)(I);if(p(A)){let z=u(A,L);return z===void 0?void 0:(0,r.default)(z)}}function h(A,P={},{validate:L=()=>!0}={}){var I;let z=(I=P.values)===null||I===void 0?void 0:I[A];
89return z!==void 0?z:P.supportsNegativeValues&&A.startsWith("-")?d(A.slice(1),P.values,L):u(A,L)}function p(A){return A.startsWith("[")&&A.endsWith("]")}function m(A){let P=A.lastIndexOf("/"),L=A.lastIndexOf("[",P),I=A.indexOf("]",P);return A[P-1]==="]"||A[P+1]==="["||L!==-1&&I!==-1&&L<P&&P<I&&(P=A.lastIndexOf("/",L)),P===-1||P===A.length-1?[A,void 0]:p(A)&&!A.includes("]/[")?[A,void 0]:[A.slice(0,P),A.slice(P+1)]}function g(A){if(typeof A=="string"&&A.includes("<alpha-value>")){let P=A;return({opacityValue:L=1})=>P.replace(/<alpha-value>/g,L)}return A}function v(A){return(0,s.normalize)(A.slice(1,-1))}function w(A,P={},{tailwindConfig:L={}}={}){var I;if(((I=P.values)===null||I===void 0?void 0:I[A])!==void 0){var z;return g((z=P.values)===null||z===void 0?void 0:z[A])}let[q,H]=m(A);if(H!==void 0){var j,$,B,K;let N=(K=(j=P.values)===null||j===void 0?void 0:j[q])!==null&&K!==void 0?K:p(q)?q.slice(1,-1):void 0;return N===void 0?void 0:(N=g(N),p(H)?(0,n.withAlphaValue)(N,v(H)):(($=L.theme)===null||$===void 0||(B=$.opacity)===null||B===void 0?void 0:B[H])===void 0?void 0:(0,n.withAlphaValue)(N,L.theme.opacity[H]))}return h(A,P,{validate:s.color})}function _(A,P={}){var L;return(L=P.values)===null||L===void 0?void 0:L[A]}function x(A){return(P,L)=>h(P,L,{validate:A})}let k={any:h,color:w,url:x(s.url),image:x(s.image),length:x(s.length),percentage:x(s.percentage),position:x(s.position),lookup:_,"generic-name":x(s.genericName),"family-name":x(s.familyName),number:x(s.number),"line-width":x(s.lineWidth),"absolute-size":x(s.absoluteSize),"relative-size":x(s.relativeSize),shadow:x(s.shadow),size:x(o.backgroundSize)},S=Object.keys(k);function T(A,P){let L=A.indexOf(P);return L===-1?[void 0,A]:[A.slice(0,L),A.slice(L+1)]}function E(A,P,L,I){if(L.values&&P in L.values)for(let{type:q}of A??[]){let H=k[q](P,L,{tailwindConfig:I});if(H!==void 0)return[H,q,null]}if(p(P)){let q=P.slice(1,-1),[H,j]=T(q,":");if(!/^[\w-_]+$/g.test(H))j=q;else if(H!==void 0&&!S.includes(H))return[];if(j.length>0&&S.includes(H))return[h(`[${j}]`,L),H,null]}let z=M(A,P,L,I);for(let q of z)return q;return[]}function*M(A,P,L,I){let z=(0,a.flagEnabled)(I,"generalizedModifiers"),[q,H]=m(P);if(z&&L.modifiers!=null&&(L.modifiers==="any"||typeof L.modifiers=="object"&&(H&&p(H)||H in L.modifiers))||(q=P,H=void 0),H!==void 0&&q===""&&(q="DEFAULT"),H!==void 0&&typeof L.modifiers=="object"){var $,B;let K=(B=($=L.modifiers)===null||$===void 0?void 0:$[H])!==null&&B!==void 0?B:null;K!==null?H=K:p(H)&&(H=v(H))}for(let{type:K}of A??[]){let N=k[K](q,L,{tailwindConfig:I});N!==void 0&&(yield[N,K,H??null])}}})(gj);var wj={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return e}});function e(t){return typeof t=="function"?t({}):t}})(wj);(function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return L}});const e=p(U$),t=p(aj),n=p(lj),s=p(G$),r=dj,o=hj,a=fj,l=p(pj),c=K$,u=gj,d=X$,h=p(wj);function p(I){return I&&I.__esModule?I:{default:I}}function m(I){return typeof I=="function"}function g(I,...z){let q=z.pop();for(let H of z)for(let j in H){let $=q(I[j],H[j]);$===void 0?(0,l.default)(I[j])&&(0,l.default)(H[j])?I[j]=g({},I[j],H[j],q):I[j]=H[j]:I[j]=$}return I}const v={colors:s.default,negative(I){return Object.keys(I).filter(z=>I[z]!=="0").reduce((z,q)=>{let H=(0,e.default)(I[q]);return H!==void 0&&(z[`-${q}`]=H),z},{})},breakpoints(I){return Object.keys(I).filter(z=>typeof I[z]=="string").reduce((z,q)=>({...z,[`screen-${q}`]:I[q]}),{})}};function w(I,...z){return m(I)?I(...z):I}function _(I){return I.reduce((z,{extend:q})=>g(z,q,(H,j)=>H===void 0?[j]:Array.isArray(H)?[j,...H]:[j,H]),{})}function x(I){return{...I.reduce((z,q)=>(0,r.defaults)(z,q),{}),extend:_(I)}}function k(I,z){if(Array.isArray(I)&&(0,l.default)(I[0]))return I.concat(z);if(Array.isArray(z)&&(0,l.default)(z[0])&&(0,l.default)(I))return[I,...z];if(Array.isArray(z))return z}function S({extend:I,...z}){return g(z,I,(q,H)=>!m(q)&&!H.some(m)?g({},q,...H,k):(j,$)=>g({},...[q,...H].map(B=>w(B,j,$)),k))}function*T(I){let z=(0,o.toPath)(I);if(z.length===0||(yield z,Array.isArray(I)))return;let q=/^(.*?)\s*\/\s*([^/]+)$/,H=I.match(q);if(H!==null){let[,j,$]=H,B=(0,o.toPath)(j);B.alpha=$,yield B}}function E(I){const z=(q,H)=>{for(const j of T(q)){let $=0,B=I;for(;B!=null&&$<j.length;
89)B=B[j[$++]],B=m(B)&&(j.alpha===void 0||$<=j.length-1)?B(z,v):B;if(B!==void 0){if(j.alpha!==void 0){let K=(0,u.parseColorFormat)(B);return(0,d.withAlphaValue)(K,j.alpha,(0,h.default)(K))}return(0,l.default)(B)?(0,c.cloneDeep)(B):B}}return H};return Object.assign(z,{theme:z,...v}),Object.keys(I).reduce((q,H)=>(q[H]=m(I[H])?I[H](z,v):I[H],q),{})}function M(I){let z=[];return I.forEach(q=>{z=[...z,q];var H;const j=(H=q==null?void 0:q.plugins)!==null&&H!==void 0?H:[];j.length!==0&&j.forEach($=>{$.__isOptionsFunction&&($=$());var B;z=[...z,...M([(B=$==null?void 0:$.config)!==null&&B!==void 0?B:{}])]})}),z}function A(I){return[...I].reduceRight((q,H)=>m(H)?H({corePlugins:q}):(0,n.default)(H,q),t.default)}function P(I){return[...I].reduceRight((q,H)=>[...q,...H],[])}function L(I){let z=[...M(I),{prefix:"",important:!1,separator:":"}];var q,H;return(0,a.normalizeConfig)((0,r.defaults)({theme:E(S(x(z.map(j=>(q=j==null?void 0:j.theme)!==null&&q!==void 0?q:{})))),corePlugins:A(z.map(j=>j.corePlugins)),plugins:P(I.map(j=>(H=j==null?void 0:j.plugins)!==null&&H!==void 0?H:[]))},...z))}})(oj);var _j={},xj
vendor: 16,320 bytes, line 89
89={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:i})=>({...i("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:i})=>i("blur"),backdropBrightness:({theme:i})=>i("brightness"),backdropContrast:({theme:i})=>i("contrast"),backdropGrayscale:({theme:i})=>i("grayscale"),backdropHueRotate:({theme:i})=>i("hueRotate"),backdropInvert:({theme:i})=>i("invert"),backdropOpacity:({theme:i})=>i("opacity"),backdropSaturate:({theme:i})=>i("saturate"),backdropSepia:({theme:i})=>i("sepia"),backgroundColor:({theme:i})=>i("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:i})=>i("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:i})=>({...i("colors"),DEFAULT:i("colors.gray.200","currentColor")}),borderOpacity:({theme:i})=>i("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:i})=>({...i("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:i})=>i("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:i})=>i("colors"),colors:({colors:i})=>({inherit:i.inherit,current:i.current,transparent:i.transparent,black:i.black,white:i.white,slate:i.slate,gray:i.gray,zinc:i.zinc,neutral:i.neutral,stone:i.stone,red:i.red,orange:i.orange,amber:i.amber,yellow:i.yellow,lime:i.lime,green:i.green,emerald:i.emerald,teal:i.teal,cyan:i.cyan,sky:i.sky,blue:i.blue,indigo:i.indigo,violet:i.violet,purple:i.purple,fuchsia:i.fuchsia,pink:i.pink,rose:i.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:i})=>i("borderColor"),divideOpacity:({theme:i})=>i("borderOpacity"),divideWidth:({theme:i})=>i("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:i})=>({none:"none",...i("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:i})=>({auto:"auto",...i("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:i})=>i("spacing"),gradientColorStops:({theme:i})=>i("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},height:({theme:i})=>({auto:"auto",...i("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:i})=>({auto:"auto",...i("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:i})=>({auto:"auto",...i("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:i})=>({...i("spacing"),none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:i,breakpoints:e})=>({...i("spacing"),none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e(i("screens"))}),minHeight:({theme:i})=>({...i("spacing"),full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),minWidth:({theme:i})=>({...i("spacing"),full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:i})=>i("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:i})=>i("spacing"),placeholderColor:({theme:i})=>i("colors"),placeholderOpacity:({theme:i})=>i("opacity"),ringColor:({theme:i})=>({DEFAULT:i("colors.blue.500","#3b82f6"),...i("colors")}),ringOffsetColor:({theme:i})=>i("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:i})=>({DEFAULT:"0.5",...i("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:i})=>({...i("spacing")}),scrollPadding:({theme:i})=>i("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:i})=>({...i("spacing")}),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:i})=>({none:"none",...i("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:i})=>i("colors"),textDecorationColor:({theme:i})=>i("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:i})=>({...i("spacing")}),textOpacity:({theme:i})=>i("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:i})=>({...i("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),size:({theme:i})=>({auto:"auto",...i("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),width:({theme:i})=>({auto:"auto",...i("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]}
89;(function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return s}});const e=n(xj),t=uE;function n(r){return r&&r.__esModule?r:{default:r}}function s(r){var o;const a=((o=r==null?void 0:r.presets)!==null&&o!==void 0?o:[e.default]).slice().reverse().flatMap(u=>s(u instanceof Function?u():u)),l={respectDefaultRingColorOpacity:{theme:{ringColor:({theme:u})=>({DEFAULT:"#3b82f67f",...u("colors")})}},disableColorOpacityUtilitiesByDefault:{corePlugins:{backgroundOpacity:!1,borderOpacity:!1,divideOpacity:!1,placeholderOpacity:!1,ringOpacity:!1,textOpacity:!1}}},c=Object.keys(l).filter(u=>(0,t.flagEnabled)(r,u)).map(u=>l[u]);return[r,...c,...a]}})(_j);(function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return s}});const e=n(oj),t=n(_j);function n(r){return r&&r.__esModule?r:{default:r}}function s(...r){let[,...o]=(0,t.default)(r[0]);return(0,e.default)([...r,...o])}})(rj);let TP=rj;var Uot=(TP.__esModule?TP:{default:TP}).default;const Got=lE(Uot);var Yot={aqua:/#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,azure:/#f0ffff(ff)?(?!\w)/gi,beige:/#f5f5dc(ff)?(?!\w)/gi,bisque:/#ffe4c4(ff)?(?!\w)/gi,black:/#000000(ff)?(?!\w)|#000(f)?(?!\w)/gi,blue:/#0000ff(ff)?(?!\w)|#00f(f)?(?!\w)/gi,brown:/#a52a2a(ff)?(?!\w)/gi,coral:/#ff7f50(ff)?(?!\w)/gi,cornsilk:/#fff8dc(ff)?(?!\w)/gi,crimson:/#dc143c(ff)?(?!\w)/gi,cyan:/#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,darkblue:/#00008b(ff)?(?!\w)/gi,darkcyan:/#008b8b(ff)?(?!\w)/gi,darkgrey:/#a9a9a9(ff)?(?!\w)/gi,darkred:/#8b0000(ff)?(?!\w)/gi,deeppink:/#ff1493(ff)?(?!\w)/gi,dimgrey:/#696969(ff)?(?!\w)/gi,gold:/#ffd700(ff)?(?!\w)/gi,green:/#008000(ff)?(?!\w)/gi,grey:/#808080(ff)?(?!\w)/gi,honeydew:/#f0fff0(ff)?(?!\w)/gi,hotpink:/#ff69b4(ff)?(?!\w)/gi,indigo:/#4b0082(ff)?(?!\w)/gi,ivory:/#fffff0(ff)?(?!\w)/gi,khaki:/#f0e68c(ff)?(?!\w)/gi,lavender:/#e6e6fa(ff)?(?!\w)/gi,lime:/#00ff00(ff)?(?!\w)|#0f0(f)?(?!\w)/gi,linen:/#faf0e6(ff)?(?!\w)/gi,maroon:/#800000(ff)?(?!\w)/gi,moccasin:/#ffe4b5(ff)?(?!\w)/gi,navy:/#000080(ff)?(?!\w)/gi,oldlace:/#fdf5e6(ff)?(?!\w)/gi,olive:/#808000(ff)?(?!\w)/gi,orange:/#ffa500(ff)?(?!\w)/gi,orchid:/#da70d6(ff)?(?!\w)/gi,peru:/#cd853f(ff)?(?!\w)/gi,pink:/#ffc0cb(ff)?(?!\w)/gi,plum:/#dda0dd(ff)?(?!\w)/gi,purple:/#800080(ff)?(?!\w)/gi,red:/#ff0000(ff)?(?!\w)|#f00(f)?(?!\w)/gi,salmon:/#fa8072(ff)?(?!\w)/gi,seagreen:/#2e8b57(ff)?(?!\w)/gi,seashell:/#fff5ee(ff)?(?!\w)/gi,sienna:/#a0522d(ff)?(?!\w)/gi,silver:/#c0c0c0(ff)?(?!\w)/gi,skyblue:/#87ceeb(ff)?(?!\w)/gi,snow:/#fffafa(ff)?(?!\w)/gi,tan:/#d2b48c(ff)?(?!\w)/gi,teal:/#008080(ff)?(?!\w)/gi,thistle:/#d8bfd8(ff)?(?!\w)/gi,tomato:/#ff6347(ff)?(?!\w)/gi,violet:/#ee82ee(ff)?(?!\w)/gi,wheat:/#f5deb3(ff)?(?!\w)/gi,white:/#ffffff(ff)?(?!\w)|#fff(f)?(?!\w)/gi},kP=Yot,Z$={whitespace:/\s+/g,urlHexPairs:/%[\dA-F]{2}/g,quotes:/"/g};function Kot(i){return i.trim().replace(Z$.whitespace," ")}function Xot(i){return encodeURIComponent(i).replace(Z$.urlHexPairs,Jot)}function Qot(i){return Object.keys(kP).forEach(function(e){kP[e].test(i)&&(i=i.replace(kP[e],e))}),i}function Jot(i){switch(i){case"%20":return" ";case"%3D":return"=";case"%3A":return":";case"%2F":return"/";default:return i.toLowerCase()}}function gM(i){if(typeof i!="string")throw new TypeError("Expected a string, but received "+typeof i);i.charCodeAt(0)===65279&&(i=i.slice(1));var e=Qot(Kot(i)).replace(Z$.quotes,"'");return"data:image/svg+xml,"+Xot(e)}gM.toSrcset=function(e){return gM(e).replace(/ /g,"%20")};var Zot=gM,Sj={},Tj={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return t}});function e(n,s){return{handler:n,config:s}}e.withOptions=function(n,s=()=>({})){const r=function(o){return{__options:o,handler:n(o),config:s(o)}};return r.__isOptionsFunction=!0,r.__pluginFunction=n,r.__configFunction=s,r};const t=e})(Tj);(function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return n}});const e=t(Tj);function t(s){return s&&s.__esModule?s:{default:s}}const n=e.default})(Sj);let EP=Sj;
89var tL=(EP.__esModule?EP:{default:EP}).default,kj={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return s}});const e=K$,t=n(xj);function n(r){return r&&r.__esModule?r:{default:r}}const s=(0,e.cloneDeep)(t.default.theme)})(kj);let PP=kj;var tat=(PP.__esModule?PP:{default:PP}).default;let CP=G$;var Ej=(CP.__esModule?CP:{default:CP}).default;const Vb=Zot,eat=tL,Pj=tat,ma=Ej,[iat,{lineHeight:nat}]=Pj.fontSize.base,{spacing:lo,borderWidth:qR,borderRadius:HR}=Pj;function Ql(i,e){return i.replace("<alpha-value>",`var(${e}, 1)`)}const sat=eat.withOptions(function(i={strategy:void 0}){return function({addBase:e,addComponents:t,theme:n}){function s(l,c){let u=n(l);return!u||u.includes("var(")?c:u.replace("<alpha-value>","1")}const r=i.strategy===void 0?["base","class"]:[i.strategy],o=[{base:["[type='text']","input:where(:not([type]))","[type='email']","[type='url']","[type='password']","[type='number']","[type='date']","[type='datetime-local']","[type='month']","[type='search']","[type='tel']","[type='time']","[type='week']","[multiple]","textarea","select"],class:[".form-input",".form-textarea",".form-select",".form-multiselect"],styles:{appearance:"none","background-color":"#fff","border-color":Ql(n("colors.gray.500",ma.gray[500]),"--tw-border-opacity"),"border-width":qR.DEFAULT,"border-radius":HR.none,"padding-top":lo[2],"padding-right":lo[3],"padding-bottom":lo[2],"padding-left":lo[3],"font-size":iat,"line-height":nat,"--tw-shadow":"0 0 #0000","&:focus":{outline:"2px solid transparent","outline-offset":"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":Ql(n("colors.blue.600",ma.blue[600]),"--tw-ring-opacity"),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","box-shadow":"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
89dow)","border-color":Ql(n("colors.blue.600",ma.blue[600]),"--tw-border-opacity")}}},{base:["input::placeholder","textarea::placeholder"],class:[".form-input::placeholder",".form-textarea::placeholder"],styles:{color:Ql(n("colors.gray.500",ma.gray[500]),"--tw-text-opacity"),opacity:"1"}},{base:["::-webkit-datetime-edit-fields-wrapper"],class:[".form-input::-webkit-datetime-edit-fields-wrapper"],styles:{padding:"0"}},{base:["::-webkit-date-and-time-value"],class:[".form-input::-webkit-date-and-time-value"],styles:{"min-height":"1.5em"}},{base:["::-webkit-date-and-time-value"],class:[".form-input::-webkit-date-and-time-value"],styles:{"text-align":"inherit"}},{base:["::-webkit-datetime-edit"],class:[".form-input::-webkit-datetime-edit"],styles:{display:"inline-flex"}},{base:["::-webkit-datetime-edit","::-webkit-datetime-edit-year-field","::-webkit-datetime-edit-month-field","::-webkit-datetime-edit-day-field","::-webkit-datetime-edit-hour-field","::-webkit-datetime-edit-minute-field","::-webkit-datetime-edit-second-field","::-webkit-datetime-edit-millisecond-field","::-webkit-datetime-edit-meridiem-field"],class:[".form-input::-webkit-datetime-edit",".form-input::-webkit-datetime-edit-year-field",".form-input::-webkit-datetime-edit-month-field",".form-input::-webkit-datetime-edit-day-field",".form-input::-webkit-datetime-edit-hour-field",".form-input::-webkit-datetime-edit-minute-field",".form-input::-webkit-datetime-edit-second-field",".form-input::-webkit-datetime-edit-millisecond-field",".form-input::-webkit-datetime-edit-meridiem-field"],styles:{"padding-top":0,"padding-bottom":0}},{base:["select"],class:[".form-select"],styles:{"background-image":`url("${Vb(`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20"><path stroke="${s("colors.gray.500",ma.gray[500])}" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M6 8l4 4 4-4"/></svg>`)}")`,"background-position":`right ${lo[2]} center`,"background-repeat":"no-repeat","background-size":"1.5em 1.5em","padding-right":lo[10],"print-color-adjust":"exact"}},{base:["[multiple]",'[size]:where(select:not([size="1"]))'],class:['.form-select:where([size]:not([size="1"]))'],styles:{"background-image":"initial","background-position":"initial","background-repeat":"unset","background-size":"initial","padding-right":lo[3],"print-color-adjust":"unset"}},{base:["[type='checkbox']","[type='radio']"],class:[".form-checkbox",".form-radio"],styles:{appearance:"none",padding:"0","print-color-adjust":"exact",display:"inline-block","vertical-align":"middle","background-origin":"border-box","user-select":"none","flex-shrink":"0",height:lo[4],width:lo[4],color:Ql(n("colors.blue.600",ma.blue[600]),"--tw-text-opacity"),"background-color":"#fff","border-color":Ql(n("colors.gray.500",ma.gray[500]),"--tw-border-opacity"),"border-width":qR.DEFAULT,"--tw-shadow":"0 0 #0000"}},{base:["[type='checkbox']"],class:[".form-checkbox"],styles:{"border-radius":HR.none}},{base:["[type='radio']"],class:[".form-radio"],styles:{"border-radius":"100%"}},{base:["[type='checkbox']:focus","[type='radio']:focus"],class:[".form-checkbox:focus",".form-radio:focus"],styles:{outline:"2px solid transparent","outline-offset":"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#fff","--tw-ring-color":Ql(n("colors.blue.600",ma.blue[600]),"--tw-ring-opacity"),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)","box-shadow":"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
89dow)"}},{base:["[type='checkbox']:checked","[type='radio']:checked"],class:[".form-checkbox:checked",".form-radio:checked"],styles:{"border-color":"transparent","background-color":"currentColor","background-size":"100% 100%","background-position":"center","background-repeat":"no-repeat"}},{base:["[type='checkbox']:checked"],class:[".form-checkbox:checked"],styles:{"background-image":`url("${Vb('<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z"/></svg>')}")`,"@media (forced-colors: active) ":{appearance:"auto"}}},{base:["[type='radio']:checked"],class:[".form-radio:checked"],styles:{"background-image":`url("${Vb('<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="3"/></svg>')}")`,"@media (forced-colors: active) ":{appearance:"auto"}}},{base:["[type='checkbox']:checked:hover","[type='checkbox']:checked:focus","[type='radio']:checked:hover","[type='radio']:checked:focus"],class:[".form-checkbox:checked:hover",".form-checkbox:checked:focus",".form-radio:checked:hover",".form-radio:checked:focus"],styles:{"border-color":"transparent","background-color":"currentColor"}},{base:["[type='checkbox']:indeterminate"],class:[".form-checkbox:indeterminate"],styles:{"background-image":`url("${Vb('<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 8h8"/></svg>')}")`,"border-color":"transparent","background-color":"currentColor","background-size":"100% 100%","background-position":"center","background-repeat":"no-repeat","@media (forced-colors: active) ":{appearance:"auto"}}},{base:["[type='checkbox']:indeterminate:hover","[type='checkbox']:indeterminate:focus"],class:[".form-checkbox:indeterminate:hover",".form-checkbox:indeterminate:focus"],styles:{"border-color":"transparent","background-color":"currentColor"}},{base:["[type='file']"],class:null,styles:{background:"unset","border-color":"inherit","border-width":"0","border-radius":"0",padding:"0","font-size":"unset","line-height":"inherit"}},{base:["[type='file']:focus"],class:null,styles:{outline:["1px solid ButtonText","1px auto -webkit-focus-ring-color"]}}],a=l=>o.map(c=>c[l]===null?null:{[c[l]]:c.styles}).filter(Boolean);r.includes("base")&&e(a("base")),r.includes("class")&&t(a("class"))}});var rat=sat;const oat=lE(rat);var $v={exports:{}};$v.exports;(function(i,e){var t=200,n="__lodash_hash_undefined__",s=800,r=16,o=9007199254740991,a="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",h="[object Error]",p="[object Function]",m="[object GeneratorFunction]",g="[object Map]",v="[object Number]",w="[object Null]",_="[object Object]",x="[object Proxy]",k="[object RegExp]",S="[object Set]",T="[object String]",E="[object Undefined]",M="[object WeakMap]",A="[object ArrayBuffer]",P="[object DataView]",L="[object Float32Array]",I="[object Float64Array]",z="[object Int8Array]",q="[object Int16Array]",H="[object Int32Array]",j="[object Uint8Array]",$="[object Uint8ClampedArray]",B="[object Uint16Array]",K="[object Uint32Array]",N=/[\\^$.*+?()[\]{}|]/g,J=/^\[object .+?Constructor\]$/,et=/^(?:0|[1-9]\d*)$/,Z={};Z[L]=Z[I]=Z[z]=Z[q]=Z[H]=Z[j]=Z[$]=Z[B]=Z[K]=!0,Z[a]=Z[l]=Z[A]=Z[u]=Z[P]=Z[d]=Z[h]=Z[p]=Z[g]=Z[v]=Z[_]=Z[k]=Z[S]=Z[T]=Z[M]=!1;var U=typeof rd=="object"&&rd&&rd.Object===Object&&rd,tt=typeof self=="object"&&self&&self.Object===Object&&self,it=U||tt||Function("return this")(),Y=e&&!e.nodeType&&e,ot=Y&&!0&&i&&!i.nodeType&&i,pt=ot&&ot.exports===Y,mt=pt&&U.process,lt=function(){try{var R=ot&&ot.require&&ot.require("util").types;return R||mt&&mt.binding&&mt.binding("util")}catch{}}(),xt=lt&<.isTypedArray;function gt(R,W,Q){switch(Q.length){case 0:return R.call(W);case 1:return R.call(W,Q[0]);case 2:return R.call(W,Q[0],Q[1]);case 3:return R.call(W,Q[0],Q[1],Q[2])}return R.apply(W,Q)}function ct(R,W){for(var Q=-1,ut=Array(R);++Q<R;)ut[Q]=W(Q);return ut}function $t(R){return function(W){return R(W)}}function fe(R,W){return R==null?void 0:R[W]}function X(R,W){return function(Q){return R(W(Q))}}var ue=Array.prototype,pe=Function.prototype,Ae=Object.prototype,Ut=it["__core-js_shared__"],Ue=pe.toString,Ge=Ae.hasOwnProperty,cn=function(){var R=/[^.]+$/.exec(Ut&&Ut.keys&&Ut.keys.IE_PROTO||"");
vendor: 35,689 bytes, line 89
89return R?"Symbol(src)_1."+R:""}(),ye=Ae.toString,Ss=Ue.call(Object),Me=RegExp("^"+Ue.call(Ge).replace(N,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ki=pt?it.Buffer:void 0,Bi=it.Symbol,Pn=it.Uint8Array,br=ki?ki.allocUnsafe:void 0,Ye=X(Object.getPrototypeOf,Object),Rl=Object.create,js=Ae.propertyIsEnumerable,da=ue.splice,Cn=Bi?Bi.toStringTag:void 0,Kn=function(){try{var R=fE(Object,"defineProperty");return R({},"",{}),R}catch{}}(),io=ki?ki.isBuffer:void 0,Bt=Math.max,no=Date.now,An=fE(it,"Map"),zi=fE(Object,"create"),Xn=function(){function R(){}return function(W){if(!ql(W))return{};if(Rl)return Rl(W);R.prototype=W;var Q=new R;return R.prototype=void 0,Q}}();function un(R){var W=-1,Q=R==null?0:R.length;for(this.clear();++W<Q;){var ut=R[W];this.set(ut[0],ut[1])}}function ha(){this.__data__=zi?zi(null):{},this.size=0}function Us(R){var W=this.has(R)&&delete this.__data__[R];return this.size-=W?1:0,W}function Fl(R){var W=this.__data__;if(zi){var Q=W[R];return Q===n?void 0:Q}return Ge.call(W,R)?W[R]:void 0}function At(R){var W=this.__data__;return zi?W[R]!==void 0:Ge.call(W,R)}function vt(R,W){var Q=this.__data__;return this.size+=this.has(R)?0:1,Q[R]=zi&&W===void 0?n:W,this}un.prototype.clear=ha,un.prototype.delete=Us,un.prototype.get=Fl,un.prototype.has=At,un.prototype.set=vt;function Rt(R){var W=-1,Q=R==null?0:R.length;for(this.clear();++W<Q;){var ut=R[W];this.set(ut[0],ut[1])}}function rt(){this.__data__=[],this.size=0}function Et(R){var W=this.__data__,Q=ri(W,R);if(Q<0)return!1;var ut=W.length-1;return Q==ut?W.pop():da.call(W,Q,1),--this.size,!0}function bt(R){var W=this.__data__,Q=ri(W,R);return Q<0?void 0:W[Q][1]}function Pt(R){return ri(this.__data__,R)>-1}function di(R,W){var Q=this.__data__,ut=ri(Q,R);return ut<0?(++this.size,Q.push([R,W])):Q[ut][1]=W,this}Rt.prototype.clear=rt,Rt.prototype.delete=Et,Rt.prototype.get=bt,Rt.prototype.has=Pt,Rt.prototype.set=di;function Lt(R){var W=-1,Q=R==null?0:R.length;for(this.clear();++W<Q;){var ut=R[W];this.set(ut[0],ut[1])}}function Ke(){this.size=0,this.__data__={hash:new un,map:new(An||Rt),string:new un}}function Ei(R){var W=Q0(this,R).delete(R);return this.size-=W?1:0,W}function ze(R){return Q0(this,R).get(R)}function Se(R){return Q0(this,R).has(R)}function de(R,W){var Q=Q0(this,R),ut=Q.size;return Q.set(R,W),this.size+=Q.size==ut?0:1,this}Lt.prototype.clear=Ke,Lt.prototype.delete=Ei,Lt.prototype.get=ze,Lt.prototype.has=Se,Lt.prototype.set=de;function Pi(R){var W=this.__data__=new Rt(R);this.size=W.size}function Oe(){this.__data__=new Rt,this.size=0}function dn(R){var W=this.__data__,Q=W.delete(R);return this.size=W.size,Q}function Ts(R){return this.__data__.get(R)}function mi(R){return this.__data__.has(R)}function bi(R,W){var Q=this.__data__;if(Q instanceof Rt){var ut=Q.__data__;if(!An||ut.length<t-1)return ut.push([R,W]),this.size=++Q.size,this;Q=this.__data__=new Lt(ut)}return Q.set(R,W),this.size=Q.size,this}Pi.prototype.clear=Oe,Pi.prototype.delete=dn,Pi.prototype.get=Ts,Pi.prototype.has=mi,Pi.prototype.set=bi;function Ci(R,W){var Q=mE(R),ut=!Q&&gE(R),Jt=!Q&&!ut&&dL(R),ve=!Q&&!ut&&!Jt&&fL(R),Ve=Q||ut||Jt||ve,Xt=Ve?ct(R.length,String):[],qe=Xt.length;for(var Ps in R)(W||Ge.call(R,Ps))&&!(Ve&&(Ps=="length"||Jt&&(Ps=="offset"||Ps=="parent")||ve&&(Ps=="buffer"||Ps=="byteLength"||Ps=="byteOffset")||cL(Ps,qe)))&&Xt.push(Ps);return Xt}function Gs(R,W,Q){(Q!==void 0&&!J0(R[W],Q)||Q===void 0&&!(W in R))&&Xe(R,W,Q)}function ju(R,W,Q){var ut=R[W];(!(Ge.call(R,W)&&J0(ut,Q))||Q===void 0&&!(W in R))&&Xe(R,W,Q)}function ri(R,W){for(var Q=R.length;Q--;)if(J0(R[Q][0],W))return Q;return-1}function Xe(R,W,Q){W=="__proto__"&&Kn?Kn(R,W,{configurable:!0,enumerable:!0,value:Q,writable:!0}):R[W]=Q}var ks=r9();function fa(R){return R==null?R===void 0?E:w:Cn&&Cn in Object(R)?o9(R):h9(R)}function df(R){return hf(R)&&fa(R)==a}function Nl(R){if(!ql(R)||u9(R))return!1;var W=yE(R)?Me:J;return W.test(m9(R))}function Es(R){return hf(R)&&hL(R.length)&&!!Z[fa(R)]}function Bl(R){if(!ql(R))return d9(R);var W=uL(R),Q=[];for(var ut in R)ut=="constructor"&&(W||!Ge.call(R,ut))||Q.push(ut);return Q}function zl(R,W,Q,ut,Jt){R!==W&&ks(W,function(ve,Ve){if(Jt||(Jt=new Pi),ql(ve))Vl(R,W,Ve,Q,zl,ut,Jt);else{var Xt=ut?ut(pE(R,Ve),ve,Ve+"",R,W,Jt):void 0;Xt===void 0&&(Xt=ve),Gs(R,Ve,Xt)}},pL)}function Vl(R,W,Q,ut,Jt,ve,Ve){var Xt=pE(R,Q),qe=pE(W,Q),Ps=Ve.get(qe);if(Ps){Gs(R,Q,Ps);return}var Qn=ve?ve(Xt,qe,Q+"",R,W,Ve):void 0,ff=Qn===void 0;if(ff){var vE=mE(qe),wE=!vE&&dL(qe),mL=!vE&&!wE&&fL(qe);Qn=qe,vE||wE||mL?mE(Xt)?Qn=Xt:b9(Xt)?Qn=i9(Xt):wE?(ff=!1,Qn=Zj(qe,!0)):mL?(ff=!1,Qn=e9(qe,!0)):Qn=[]:y9(qe)||gE(qe)?(Qn=Xt,gE(Xt)?Qn=v9(Xt):(!ql(Xt)||yE(Xt))&&(Qn=a9(qe))):ff=!1}ff&&(Ve.set(qe,Qn),Jt(Qn,qe,ut,ve,Ve),Ve.delete(qe)),Gs(R,Q,Qn)}function Qj(R,W){return p9(f9(R,W,gL),R+"")}var Jj=Kn?function(R,W){return Kn(R,"toString",{configurable:!0,enumerable:!1,value:_9(W),writable:!0})}:gL;function Zj(R,W){if(W)return R.slice();var Q=R.length,ut=br?br(Q):new R.constructor(Q);return R.copy(ut),ut}function t9(R){var W=new R.constructor(R.byteLength);return new Pn(W).set(new Pn(R)),W}function e9(R,W){var Q=W?t9(R.buffer):R.buffer;return new R.constructor(Q,R.byteOffset,R.length)}function i9(R,W){var Q=-1,ut=R.length;for(W||(W=Array(ut));++Q<ut;)W[Q]=R[Q];return W}function n9(R,W,Q,ut){var Jt=!Q;Q||(Q={});for(var ve=-1,Ve=W.length;++ve<Ve;){var Xt=W[ve],qe=ut?ut(Q[Xt],R[Xt],Xt,Q,R):void 0;qe===void 0&&(qe=R[Xt]),Jt?Xe(Q,Xt,qe):ju(Q,Xt,qe)}return Q}function s9(R){return Qj(function(W,Q){var ut=-1,Jt=Q.length,ve=Jt>1?Q[Jt-1]:void 0,Ve=Jt>2?Q[2]:void 0;for(ve=R.length>3&&typeof ve=="function"?(Jt--,ve):void 0,Ve&&l9(Q[0],Q[1],Ve)&&(ve=Jt<3?void 0:ve,Jt=1),W=Object(W);++ut<Jt;){var Xt=Q[ut];Xt&&R(W,Xt,ut,ve)}return W})}function r9(R){return function(W,Q,ut){for(var Jt=-1,ve=Object(W),Ve=ut(W),Xt=Ve.length;Xt--;){var qe=Ve[R?Xt:++Jt];if(Q(ve[qe],qe,ve)===!1)break}return W}}function Q0(R,W){var Q=R.__data__;return c9(W)?Q[typeof W=="string"?"string":"hash"]:Q.map}function fE(R,W){var Q=fe(R,W);return Nl(Q)?Q:void 0}function o9(R){var W=Ge.call(R,Cn),Q=R[Cn];try{R[Cn]=void 0;var ut=!0}catch{}var Jt=ye.call(R);return ut&&(W?R[Cn]=Q:delete R[Cn]),Jt}function a9(R){return typeof R.constructor=="function"&&!uL(R)?Xn(Ye(R)):{}}function cL(R,W){var Q=typeof R;return W=W??o,!!W&&(Q=="number"||Q!="symbol"&&et.test(R))&&R>-1&&R%1==0&&R<W}function l9(R,W,Q){if(!ql(Q))return!1;var ut=typeof W;return(ut=="number"?bE(Q)&&cL(W,Q.length):ut=="string"&&W in Q)?J0(Q[W],R):!1}function c9(R){var W=typeof R;return W=="string"||W=="number"||W=="symbol"||W=="boolean"?R!=="__proto__":R===null}function u9(R){return!!cn&&cn in R}function uL(R){var W=R&&R.constructor,Q=typeof W=="function"&&W.prototype||Ae;return R===Q}function d9(R){var W=[];if(R!=null)for(var Q in Object(R))W.push(Q);return W}function h9(R){return ye.call(R)}function f9(R,W,Q){return W=Bt(W===void 0?R.length-1:W,0),function(){for(var ut=arguments,Jt=-1,ve=Bt(ut.length-W,0),Ve=Array(ve);++Jt<ve;)Ve[Jt]=ut[W+Jt];Jt=-1;for(var Xt=Array(W+1);++Jt<W;)Xt[Jt]=ut[Jt];return Xt[W]=Q(Ve),gt(R,this,Xt)}}function pE(R,W){if(!(W==="constructor"&&typeof R[W]=="function")&&W!="__proto__")return R[W]}var p9=g9(Jj);function g9(R){var W=0,Q=0;return function(){var ut=no(),Jt=r-(ut-Q);if(Q=ut,Jt>0){if(++W>=s)return arguments[0]}else W=0;return R.apply(void 0,arguments)}}function m9(R){if(R!=null){try{return Ue.call(R)}catch{}try{return R+""}catch{}}return""}function J0(R,W){return R===W||R!==R&&W!==W}var gE=df(function(){return arguments}())?df:function(R){return hf(R)&&Ge.call(R,"callee")&&!js.call(R,"callee")},mE=Array.isArray;function bE(R){return R!=null&&hL(R.length)&&!yE(R)}function b9(R){return hf(R)&&bE(R)}var dL=io||x9;function yE(R){if(!ql(R))return!1;var W=fa(R);return W==p||W==m||W==c||W==x}function hL(R){return typeof R=="number"&&R>-1&&R%1==0&&R<=o}function ql(R){var W=typeof R;return R!=null&&(W=="object"||W=="function")}function hf(R){return R!=null&&typeof R=="object"}function y9(R){if(!hf(R)||fa(R)!=_)return!1;var W=Ye(R);if(W===null)return!0;var Q=Ge.call(W,"constructor")&&W.constructor;return typeof Q=="function"&&Q instanceof Q&&Ue.call(Q)==Ss}var fL=xt?$t(xt):Es;function v9(R){return n9(R,pL(R))}function pL(R){return bE(R)?Ci(R,!0):Bl(R)}var w9=s9(function(R,W,Q){zl(R,W,Q)});function _9(R){return function(){return R}}function gL(R){return R}function x9(){return!1}i.exports=w9})($v,$v.exports);var aat=$v.exports;function lat(){if(!arguments.length)return[];var i=arguments[0];return cat(i)?i:[i]}var cat=Array.isArray,uat=lat;const V=Ej,kt=i=>i.toFixed(7).replace(/(\.[0-9]+?)0+$/,"$1").replace(/\.0$/,""),fn=i=>`${kt(i/16)}rem`,C=(i,e)=>`${kt(i/e)}em`,yr=i=>{i=i.replace("#",""),i=i.length===3?i.replace(/./g,"$&$&"):i;const e=parseInt(i.substring(0,2),16),t=parseInt(i.substring(2,4),16),n=parseInt(i.substring(4,6),16);return`${e} ${t} ${n}`};let AP={sm:{css:[{fontSize:fn(14),lineHeight:kt(24/14),p:{marginTop:C(16,14),marginBottom:C(16,14)},'[class~="lead"]':{fontSize:C(18,14),lineHeight:kt(28/18),marginTop:C(16,18),marginBottom:C(16,18)},blockquote:{marginTop:C(24,18),marginBottom:C(24,18),paddingInlineStart:C(20,18)},h1:{fontSize:C(30,14),marginTop:"0",marginBottom:C(24,30),lineHeight:kt(36/30)},h2:{fontSize:C(20,14),marginTop:C(32,20),marginBottom:C(16,20),lineHeight:kt(28/20)},h3:{fontSize:C(18,14),marginTop:C(28,18),marginBottom:C(8,18),lineHeight:kt(28/18)},h4:{marginTop:C(20,14),marginBottom:C(8,14),lineHeight:kt(20/14)},img:{marginTop:C(24,14),marginBottom:C(24,14)},picture:{marginTop:C(24,14),marginBottom:C(24,14)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:C(24,14),marginBottom:C(24,14)},kbd:{fontSize:C(12,14),borderRadius:fn(5),paddingTop:C(2,14),paddingInlineEnd:C(5,14),paddingBottom:C(2,14),paddingInlineStart:C(5,14)},code:{fontSize:C(12,14)},"h2 code":{fontSize:C(18,20)},"h3 code":{fontSize:C(16,18)},pre:{fontSize:C(12,14),lineHeight:kt(20/12),marginTop:C(20,12),marginBottom:C(20,12),borderRadius:fn(4),paddingTop:C(8,12),paddingInlineEnd:C(12,12),paddingBottom:C(8,12),paddingInlineStart:C(12,12)},ol:{marginTop:C(16,14),marginBottom:C(16,14),paddingInlineStart:C(22,14)},ul:{marginTop:C(16,14),marginBottom:C(16,14),paddingInlineStart:C(22,14)},li:{marginTop:C(4,14),marginBottom:C(4,14)},"ol > li":{paddingInlineStart:C(6,14)},"ul > li":{paddingInlineStart:C(6,14)},"> ul > li p":{marginTop:C(8,14),marginBottom:C(8,14)},"> ul > li > p:first-child":{marginTop:C(16,14)},"> ul > li > p:last-child":{marginBottom:C(16,14)},"> ol > li > p:first-child":{marginTop:C(16,14)},"> ol > li > p:last-child":{marginBottom:C(16,14)},"ul ul, ul ol, ol ul, ol ol":{marginTop:C(8,14),marginBottom:C(8,14)},dl:{marginTop:C(16,14),marginBottom:C(16,14)},dt:{marginTop:C(16,14)},dd:{marginTop:C(4,14),paddingInlineStart:C(22,14)},hr:{marginTop:C(40,14),marginBottom:C(40,14)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:C(12,14),lineHeight:kt(18/12)},"thead th":{paddingInlineEnd:C(12,12),paddingBottom:C(8,12),paddingInlineStart:C(12,12)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:C(8,12),paddingInlineEnd:C(12,12),paddingBottom:C(8,12),paddingInlineStart:C(12,12)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:C(24,14),marginBottom:C(24,14)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:C(12,14),lineHeight:kt(16/12),marginTop:C(8,12)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},base:{css:[{fontSize:fn(16),lineHeight:kt(28/16),p:{marginTop:C(20,16),marginBottom:C(20,16)},'[class~="lead"]':{fontSize:C(20,16),lineHeight:kt(32/20),marginTop:C(24,20),marginBottom:C(24,20)},blockquote:{marginTop:C(32,20),marginBottom:C(32,20),paddingInlineStart:C(20,20)},h1:{fontSize:C(36,16),marginTop:"0",marginBottom:C(32,36),lineHeight:kt(40/36)},h2:{fontSize:C(24,16),marginTop:C(48,24),marginBottom:C(24,24),lineHeight:kt(32/24)},h3:{fontSize:C(20,16),marginTop:C(32,20),marginBottom:C(12,20),lineHeight:kt(32/20)},h4:{marginTop:C(24,16),marginBottom:C(8,16),lineHeight:kt(24/16)},img:{marginTop:C(32,16),marginBottom:C(32,16)},picture:{marginTop:C(32,16),marginBottom:C(32,16)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:C(32,16),marginBottom:C(32,16)},kbd:{fontSize:C(14,16),borderRadius:fn(5),paddingTop:C(3,16),paddingInlineEnd:C(6,16),paddingBottom:C(3,16),paddingInlineStart:C(6,16)},code:{fontSize:C(14,16)},"h2 code":{fontSize:C(21,24)},"h3 code":{fontSize:C(18,20)},pre:{fontSize:C(14,16),lineHeight:kt(24/14),marginTop:C(24,14),marginBottom:C(24,14),borderRadius:fn(6),paddingTop:C(12,14),paddingInlineEnd:C(16,14),paddingBottom:C(12,14),paddingInlineStart:C(16,14)},ol:{marginTop:C(20,16),marginBottom:C(20,16),paddingInlineStart:C(26,16)},ul:{marginTop:C(20,16),marginBottom:C(20,16),paddingInlineStart:C(26,16)},li:{marginTop:C(8,16),marginBottom:C(8,16)},"ol > li":{paddingInlineStart:C(6,16)},"ul > li":{paddingInlineStart:C(6,16)},"> ul > li p":{marginTop:C(12,16),marginBottom:C(12,16)},"> ul > li > p:first-child":{marginTop:C(20,16)},"> ul > li > p:last-child":{marginBottom:C(20,16)},"> ol > li > p:first-child":{marginTop:C(20,16)},"> ol > li > p:last-child":{marginBottom:C(20,16)},"ul ul, ul ol, ol ul, ol ol":{marginTop:C(12,16),marginBottom:C(12,16)},dl:{marginTop:C(20,16),marginBottom:C(20,16)},dt:{marginTop:C(20,16)},dd:{marginTop:C(8,16),paddingInlineStart:C(26,16)},hr:{marginTop:C(48,16),marginBottom:C(48,16)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:C(14,16),lineHeight:kt(24/14)},"thead th":{paddingInlineEnd:C(8,14),paddingBottom:C(8,14),paddingInlineStart:C(8,14)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:C(8,14),paddingInlineEnd:C(8,14),paddingBottom:C(8,14),paddingInlineStart:C(8,14)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:C(32,16),marginBottom:C(32,16)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:C(14,16),lineHeight:kt(20/14),marginTop:C(12,14)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},lg:{css:[{fontSize:fn(18),lineHeight:kt(32/18),p:{marginTop:C(24,18),marginBottom:C(24,18)},'[class~="lead"]':{fontSize:C(22,18),lineHeight:kt(32/22),marginTop:C(24,22),marginBottom:C(24,22)},blockquote:{marginTop:C(40,24),marginBottom:C(40,24),paddingInlineStart:C(24,24)},h1:{fontSize:C(48,18),marginTop:"0",marginBottom:C(40,48),lineHeight:kt(48/48)},h2:{fontSize:C(30,18),marginTop:C(56,30),marginBottom:C(32,30),lineHeight:kt(40/30)},h3:{fontSize:C(24,18),marginTop:C(40,24),marginBottom:C(16,24),lineHeight:kt(36/24)},h4:{marginTop:C(32,18),marginBottom:C(8,18),lineHeight:kt(28/18)},img:{marginTop:C(32,18),marginBottom:C(32,18)},picture:{marginTop:C(32,18),marginBottom:C(32,18)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:C(32,18),marginBottom:C(32,18)},kbd:{fontSize:C(16,18),borderRadius:fn(5),paddingTop:C(4,18),paddingInlineEnd:C(8,18),paddingBottom:C(4,18),paddingInlineStart:C(8,18)},code:{fontSize:C(16,18)},"h2 code":{fontSize:C(26,30)},"h3 code":{fontSize:C(21,24)},pre:{fontSize:C(16,18),lineHeight:kt(28/16),marginTop:C(32,16),marginBottom:C(32,16),borderRadius:fn(6),paddingTop:C(16,16),paddingInlineEnd:C(24,16),paddingBottom:C(16,16),paddingInlineStart:C(24,16)},ol:{marginTop:C(24,18),marginBottom:C(24,18),paddingInlineStart:C(28,18)},ul:{marginTop:C(24,18),marginBottom:C(24,18),paddingInlineStart:C(28,18)},li:{marginTop:C(12,18),marginBottom:C(12,18)},"ol > li":{paddingInlineStart:C(8,18)},"ul > li":{paddingInlineStart:C(8,18)},"> ul > li p":{marginTop:C(16,18),marginBottom:C(16,18)},"> ul > li > p:first-child":{marginTop:C(24,18)},"> ul > li > p:last-child":{marginBottom:C(24,18)},"> ol > li > p:first-child":{marginTop:C(24,18)},"> ol > li > p:last-child":{marginBottom:C(24,18)},"ul ul, ul ol, ol ul, ol ol":{marginTop:C(16,18),marginBottom:C(16,18)},dl:{marginTop:C(24,18),marginBottom:C(24,18)},dt:{marginTop:C(24,18)},dd:{marginTop:C(12,18),paddingInlineStart:C(28,18)},hr:{marginTop:C(56,18),marginBottom:C(56,18)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:C(16,18),lineHeight:kt(24/16)},"thead th":{paddingInlineEnd:C(12,16),paddingBottom:C(12,16),paddingInlineStart:C(12,16)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:C(12,16),paddingInlineEnd:C(12,16),paddingBottom:C(12,16),paddingInlineStart:C(12,16)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:C(32,18),marginBottom:C(32,18)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:C(16,18),lineHeight:kt(24/16),marginTop:C(16,16)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},xl:{css:[{fontSize:fn(20),lineHeight:kt(36/20),p:{marginTop:C(24,20),marginBottom:C(24,20)},'[class~="lead"]':{fontSize:C(24,20),lineHeight:kt(36/24),marginTop:C(24,24),marginBottom:C(24,24)},blockquote:{marginTop:C(48,30),marginBottom:C(48,30),paddingInlineStart:C(32,30)},h1:{fontSize:C(56,20),marginTop:"0",marginBottom:C(48,56),lineHeight:kt(56/56)},h2:{fontSize:C(36,20),marginTop:C(56,36),marginBottom:C(32,36),lineHeight:kt(40/36)},h3:{fontSize:C(30,20),marginTop:C(48,30),marginBottom:C(20,30),lineHeight:kt(40/30)},h4:{marginTop:C(36,20),marginBottom:C(12,20),lineHeight:kt(32/20)},img:{marginTop:C(40,20),marginBottom:C(40,20)},picture:{marginTop:C(40,20),marginBottom:C(40,20)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:C(40,20),marginBottom:C(40,20)},kbd:{fontSize:C(18,20),borderRadius:fn(5),paddingTop:C(5,20),paddingInlineEnd:C(8,20),paddingBottom:C(5,20),paddingInlineStart:C(8,20)},code:{fontSize:C(18,20)},"h2 code":{fontSize:C(31,36)},"h3 code":{fontSize:C(27,30)},pre:{fontSize:C(18,20),lineHeight:kt(32/18),marginTop:C(36,18),marginBottom:C(36,18),borderRadius:fn(8),paddingTop:C(20,18),paddingInlineEnd:C(24,18),paddingBottom:C(20,18),paddingInlineStart:C(24,18)},ol:{marginTop:C(24,20),marginBottom:C(24,20),paddingInlineStart:C(32,20)},ul:{marginTop:C(24,20),marginBottom:C(24,20),paddingInlineStart:C(32,20)},li:{marginTop:C(12,20),marginBottom:C(12,20)},"ol > li":{paddingInlineStart:C(8,20)},"ul > li":{paddingInlineStart:C(8,20)},"> ul > li p":{marginTop:C(16,20),marginBottom:C(16,20)},"> ul > li > p:first-child":{marginTop:C(24,20)},"> ul > li > p:last-child":{marginBottom:C(24,20)},"> ol > li > p:first-child":{marginTop:C(24,20)},"> ol > li > p:last-child":{marginBottom:C(24,20)},"ul ul, ul ol, ol ul, ol ol":{marginTop:C(16,20),marginBottom:C(16,20)},dl:{marginTop:C(24,20),marginBottom:C(24,20)},dt:{marginTop:C(24,20)},dd:{marginTop:C(12,20),paddingInlineStart:C(32,20)},hr:{marginTop:C(56,20),marginBottom:C(56,20)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:C(18,20),lineHeight:kt(28/18)},"thead th":{paddingInlineEnd:C(12,18),paddingBottom:C(16,18),paddingInlineStart:C(12,18)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:C(16,18),paddingInlineEnd:C(12,18),paddingBottom:C(16,18),paddingInlineStart:C(12,18)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:C(40,20),marginBottom:C(40,20)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:C(18,20),lineHeight:kt(28/18),marginTop:C(18,18)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},"2xl":{css:[{fontSize:fn(24),lineHeight:kt(40/24),p:{marginTop:C(32,24),marginBottom:C(32,24)},'[class~="lead"]':{fontSize:C(30,24),lineHeight:kt(44/30),marginTop:C(32,30),marginBottom:C(32,30)},blockquote:{marginTop:C(64,36),marginBottom:C(64,36),paddingInlineStart:C(40,36)},h1:{fontSize:C(64,24),marginTop:"0",marginBottom:C(56,64),lineHeight:kt(64/64)},h2:{fontSize:C(48,24),marginTop:C(72,48),marginBottom:C(40,48),lineHeight:kt(52/48)},h3:{fontSize:C(36,24),marginTop:C(56,36),marginBottom:C(24,36),lineHeight:kt(44/36)},h4:{marginTop:C(40,24),marginBottom:C(16,24),lineHeight:kt(36/24)},img:{marginTop:C(48,24),marginBottom:C(48,24)},picture:{marginTop:C(48,24),marginBottom:C(48,24)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:C(48,24),marginBottom:C(48,24)},kbd:{fontSize:C(20,24),borderRadius:fn(6),paddingTop:C(6,24),paddingInlineEnd:C(8,24),paddingBottom:C(6,24),paddingInlineStart:C(8,24)},code:{fontSize:C(20,24)},"h2 code":{fontSize:C(42,48)},"h3 code":{fontSize:C(32,36)},pre:{fontSize:C(20,24),lineHeight:kt(36/20),marginTop:C(40,20),marginBottom:C(40,20),borderRadius:fn(8),paddingTop:C(24,20),paddingInlineEnd:C(32,20),paddingBottom:C(24,20),paddingInlineStart:C(32,20)},ol:{marginTop:C(32,24),marginBottom:C(32,24),paddingInlineStart:C(38,24)},ul:{marginTop:C(32,24),marginBottom:C(32,24),paddingInlineStart:C(38,24)},li:{marginTop:C(12,24),marginBottom:C(12,24)},"ol > li":{paddingInlineStart:C(10,24)},"ul > li":{paddingInlineStart:C(10,24)},"> ul > li p":{marginTop:C(20,24),marginBottom:C(20,24)},"> ul > li > p:first-child":{marginTop:C(32,24)},"> ul > li > p:last-child":{marginBottom:C(32,24)},"> ol > li > p:first-child":{marginTop:C(32,24)},"> ol > li > p:last-child":{marginBottom:C(32,24)},"ul ul, ul ol, ol ul, ol ol":{marginTop:C(16,24),marginBottom:C(16,24)},dl:{marginTop:C(32,24),marginBottom:C(32,24)},dt:{marginTop:C(32,24)},dd:{marginTop:C(12,24),paddingInlineStart:C(38,24)},hr:{marginTop:C(72,24),marginBottom:C(72,24)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:C(20,24),lineHeight:kt(28/20)},"thead th":{paddingInlineEnd:C(12,20),paddingBottom:C(16,20),paddingInlineStart:C(12,20)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:C(16,20),paddingInlineEnd:C(12,20),paddingBottom:C(16,20),paddingInlineStart:C(12,20)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:C(48,24),marginBottom:C(48,24)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:C(20,24),lineHeight:kt(32/20),marginTop:C(20,20)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},slate:{css:{"--tw-prose-body":V.slate[700],"--tw-prose-headings":V.slate[900],"--tw-prose-lead":V.slate[600],"--tw-prose-links":V.slate[900],"--tw-prose-bold":V.slate[900],"--tw-prose-counters":V.slate[500],"--tw-prose-bullets":V.slate[300],"--tw-prose-hr":V.slate[200],"--tw-prose-quotes":V.slate[900],"--tw-prose-quote-borders":V.slate[200],"--tw-prose-captions":V.slate[500],"--tw-prose-kbd":V.slate[900],"--tw-prose-kbd-shadows":yr(V.slate[900]),"--tw-prose-code":V.slate[900],"--tw-prose-pre-code":V.slate[200],"--tw-prose-pre-bg":V.slate[800],"--tw-prose-th-borders":V.slate[300],"--tw-prose-td-borders":V.slate[200],"--tw-prose-invert-body":V.slate[300],"--tw-prose-invert-headings":V.white,"--tw-prose-invert-lead":V.slate[400],"--tw-prose-invert-links":V.white,"--tw-prose-invert-bold":V.white,"--tw-prose-invert-counters":V.slate[400],"--tw-prose-invert-bullets":V.slate[600],"--tw-prose-invert-hr":V.slate[700],"--tw-prose-invert-quotes":V.slate[100],"--tw-prose-invert-quote-borders":V.slate[700],"--tw-prose-invert-captions":V.slate[400],"--tw-prose-invert-kbd":V.white,"--tw-prose-invert-kbd-shadows":yr(V.white),"--tw-prose-invert-code":V.white,"--tw-prose-invert-pre-code":V.slate[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":V.slate[600],"--tw-prose-invert-td-borders":V.slate[700]}},gray:{css:{"--tw-prose-body":V.gray[700],"--tw-prose-headings":V.gray[900],"--tw-prose-lead":V.gray[600],"--tw-prose-links":V.gray[900],"--tw-prose-bold":V.gray[900],"--tw-prose-counters":V.gray[500],"--tw-prose-bullets":V.gray[300],"--tw-prose-hr":V.gray[200],"--tw-prose-quotes":V.gray[900],"--tw-prose-quote-borders":V.gray[200],"--tw-prose-captions":V.gray[500],"--tw-prose-kbd":V.gray[900],"--tw-prose-kbd-shadows":yr(V.gray[900]),"--tw-prose-code":V.gray[900],"--tw-prose-pre-code":V.gray[200],"--tw-prose-pre-bg":V.gray[800],"--tw-prose-th-borders":V.gray[300],"--tw-prose-td-borders":V.gray[200],"--tw-prose-invert-body":V.gray[300],"--tw-prose-invert-headings":V.white,"--tw-prose-invert-lead":V.gray[400],"--tw-prose-invert-links":V.white,"--tw-prose-invert-bold":V.white,"--tw-prose-invert-counters":V.gray[400],"--tw-prose-invert-bullets":V.gray[600],"--tw-prose-invert-hr":V.gray[700],"--tw-prose-invert-quotes":V.gray[100],"--tw-prose-invert-quote-borders":V.gray[700],"--tw-prose-invert-captions":V.gray[400],"--tw-prose-invert-kbd":V.white,"--tw-prose-invert-kbd-shadows":yr(V.white),"--tw-prose-invert-code":V.white,"--tw-prose-invert-pre-code":V.gray[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":V.gray[600],"--tw-prose-invert-td-borders":V.gray[700]}},zinc:{css:{"--tw-prose-body":V.zinc[700],"--tw-prose-headings":V.zinc[900],"--tw-prose-lead":V.zinc[600],"--tw-prose-links":V.zinc[900],"--tw-prose-bold":V.zinc[900],"--tw-prose-counters":V.zinc[500],"--tw-prose-bullets":V.zinc[300],"--tw-prose-hr":V.zinc[200],"--tw-prose-quotes":V.zinc[900],"--tw-prose-quote-borders":V.zinc[200],"--tw-prose-captions":V.zinc[500],"--tw-prose-kbd":V.zinc[900],"--tw-prose-kbd-shadows":yr(V.zinc[900]),"--tw-prose-code":V.zinc[900],"--tw-prose-pre-code":V.zinc[200],"--tw-prose-pre-bg":V.zinc[800],"--tw-prose-th-borders":V.zinc[300],"--tw-prose-td-borders":V.zinc[200],"--tw-prose-invert-body":V.zinc[300],"--tw-prose-invert-headings":V.white,"--tw-prose-invert-lead":V.zinc[400],"--tw-prose-invert-links":V.white,"--tw-prose-invert-bold":V.white,"--tw-prose-invert-counters":V.zinc[400],"--tw-prose-invert-bullets":V.zinc[600],"--tw-prose-invert-hr":V.zinc[700],"--tw-prose-invert-quotes":V.zinc[100],"--tw-prose-invert-quote-borders":V.zinc[700],"--tw-prose-invert-captions":V.zinc[400],"--tw-prose-invert-kbd":V.white,"--tw-prose-invert-kbd-shadows":yr(V.white),"--tw-prose-invert-code":V.white,"--tw-prose-invert-pre-code":V.zinc[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":V.zinc[600],"--tw-prose-invert-td-borders":V.zinc[700]}},neutral:{css:{"--tw-prose-body":V.neutral[700],"--tw-prose-headings":V.neutral[900],"--tw-prose-lead":V.neutral[600],"--tw-prose-links":V.neutral[900],"--tw-prose-bold":V.neutral[900],"--tw-prose-counters":V.neutral[500],"--tw-prose-bullets":V.neutral[300],"--tw-prose-hr":V.neutral[200],"--tw-prose-quotes":V.neutral[900],"--tw-prose-quote-borders":V.neutral[200],"--tw-prose-captions":V.neutral[500],"--tw-prose-kbd":V.neutral[900],"--tw-prose-kbd-shadows":yr(V.neutral[900]),"--tw-prose-code":V.neutral[900],"--tw-prose-pre-code":V.neutral[200],"--tw-prose-pre-bg":V.neutral[800],"--tw-prose-th-borders":V.neutral[300],"--tw-prose-td-borders":V.neutral[200],"--tw-prose-invert-body":V.neutral[300],"--tw-prose-invert-headings":V.white,"--tw-prose-invert-lead":V.neutral[400],"--tw-prose-invert-links":V.white,"--tw-prose-invert-bold":V.white,"--tw-prose-invert-counters":V.neutral[400],"--tw-prose-invert-bullets":V.neutral[600],"--tw-prose-invert-hr":V.neutral[700],"--tw-prose-invert-quotes":V.neutral[100],"--tw-prose-invert-quote-borders":V.neutral[700],"--tw-prose-invert-captions":V.neutral[400],"--tw-prose-invert-kbd":V.white,"--tw-prose-invert-kbd-shadows":yr(V.white),"--tw-prose-invert-code":V.white,"--tw-prose-invert-pre-code":V.neutral[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":V.neutral[600],"--tw-prose-invert-td-borders":V.neutral[700]}},stone:{css:{"--tw-prose-body":V.stone[700],"--tw-prose-headings":V.stone[900],"--tw-prose-lead":V.stone[600],"--tw-prose-links":V.stone[900],"--tw-prose-bold":V.stone[900],"--tw-prose-counters":V.stone[500],"--tw-prose-bullets":V.stone[300],"--tw-prose-hr":V.stone[200],"--tw-prose-quotes":V.stone[900],"--tw-prose-quote-borders":V.stone[200],"--tw-prose-captions":V.stone[500],"--tw-prose-kbd":V.stone[900],"--tw-prose-kbd-shadows":yr(V.stone[900]),"--tw-prose-code":V.stone[900],"--tw-prose-pre-code":V.stone[200],"--tw-prose-pre-bg":V.stone[800],"--tw-prose-th-borders":V.stone[300],"--tw-prose-td-borders":V.stone[200],"--tw-prose-invert-body":V.stone[300],"--tw-prose-invert-headings":V.white,"--tw-prose-invert-lead":V.stone[400],"--tw-prose-invert-links":V.white,"--tw-prose-invert-bold":V.white,"--tw-prose-invert-counters":V.stone[400],"--tw-prose-invert-bullets":V.stone[600],"--tw-prose-invert-hr":V.stone[700],"--tw-prose-invert-quotes":V.stone[100],"--tw-prose-invert-quote-borders":V.stone[700],"--tw-prose-invert-captions":V.stone[400],"--tw-prose-invert-kbd":V.white,"--tw-prose-invert-kbd-shadows":yr(V.white),"--tw-prose-invert-code":V.white,"--tw-prose-invert-pre-code":V.stone[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":V.stone[600],"--tw-prose-invert-td-borders":V.stone[700]}},red:{css:{"--tw-prose-links":V.red[600],"--tw-prose-invert-links":V.red[500]}},orange:{css:{"--tw-prose-links":V.orange[600],"--tw-prose-invert-links":V.orange[500]}},amber:{css:{"--tw-prose-links":V.amber[600],"--tw-prose-invert-links":V.amber[500]}},yellow:{css:{"--tw-prose-links":V.yellow[600],"--tw-prose-invert-links":V.yellow[500]}},lime:{css:{"--tw-prose-links":V.lime[600],"--tw-prose-invert-links":V.lime[500]}},green:{css:{"--tw-prose-links":V.green[600],"--tw-prose-invert-links":V.green[500]}},emerald:{css:{"--tw-prose-links":V.emerald[600],"--tw-prose-invert-links":V.emerald[500]}},teal:{css:{"--tw-prose-links":V.teal[600],"--tw-prose-invert-links":V.teal[500]}},cyan:{css:{"--tw-prose-links":V.cyan[600],"--tw-prose-invert-links":V.cyan[500]}},sky:{css:{"--tw-prose-links":V.sky[600],"--tw-prose-invert-links":V.sky[500]}},blue:{css:{"--tw-prose-links":V.blue[600],"--tw-prose-invert-links":V.blue[500]}},indigo:{css:{"--tw-prose-links":V.indigo[600],"--tw-prose-invert-links":V.indigo[500]}},violet:{css:{"--tw-prose-links":V.violet[600],"--tw-prose-invert-links":V.violet[500]}},purple:{css:{"--tw-prose-links":V.purple[600],"--tw-prose-invert-links":V.purple[500]}},fuchsia:{css:{"--tw-prose-links":V.fuchsia[600],"--tw-prose-invert-links":V.fuchsia[500]}},pink:{css:{"--tw-prose-links":V.pink[600],"--tw-prose-invert-links":V.pink[500]}},rose:{css:{"--tw-prose-links":V.rose[600],"--tw-prose-invert-links":V.rose[500]}},invert:{css:{"--tw-prose-body":"var(--tw-prose-invert-body)","--tw-prose-headings":"var(--tw-prose-invert-headings)","--tw-prose-lead":"var(--tw-prose-invert-lead)","--tw-prose-links":"var(--tw-prose-invert-links)","--tw-prose-bold":"var(--tw-prose-invert-bold)","--tw-prose-counters":"var(--tw-prose-invert-counters)","--tw-prose-bullets":"var(--tw-prose-invert-bullets)","--tw-prose-hr":"var(--tw-prose-invert-hr)","--tw-prose-quotes":"var(--tw-prose-invert-quotes)","--tw-prose-quote-borders":"var(--tw-prose-invert-quote-borders)","--tw-prose-captions":"var(--tw-prose-invert-captions)","--tw-prose-kbd":"var(--tw-prose-invert-kbd)","--tw-prose-kbd-shadows":"var(--tw-prose-invert-kbd-shadows)","--tw-prose-code":"var(--tw-prose-invert-code)","--tw-prose-pre-code":"var(--tw-prose-invert-pre-code)","--tw-prose-pre-bg":"var(--tw-prose-invert-pre-bg)","--tw-prose-th-borders":"var(--tw-prose-invert-th-borders)","--tw-prose-td-borders":"var(--tw-prose-invert-td-borders)"}}};var dat={DEFAULT:{css:[{color:"var(--tw-prose-body)",maxWidth:"65ch",p:{},'[class~="lead"]':{color:"var(--tw-prose-lead)"},a:{color:"var(--tw-prose-links)",textDecoration:"underline",fontWeight:"500"},strong:{color:"var(--tw-prose-bold)",fontWeight:"600"},"a strong":{color:"inherit"},"blockquote strong":{color:"inherit"},"thead th strong":{color:"inherit"},ol:{listStyleType:"decimal"},'ol[type="A"]':{listStyleType:"upper-alpha"},'ol[type="a"]':{listStyleType:"lower-alpha"},'ol[type="A" s]':{listStyleType:"upper-alpha"},'ol[type="a" s]':{listStyleType:"lower-alpha"},'ol[type="I"]':{listStyleType:"upper-roman"},'ol[type="i"]':{listStyleType:"lower-roman"},'ol[type="I" s]':{listStyleType:"upper-roman"},'ol[type="i" s]':{listStyleType:"lower-roman"},'ol[type="1"]':{listStyleType:"decimal"},ul:{listStyleType:"disc"},"ol > li::marker":{fontWeight:"400",color:"var(--tw-prose-counters)"},"ul > li::marker":{color:"var(--tw-prose-bullets)"},dt:{color:"var(--tw-prose-headings)",fontWeight:"600"},hr:{borderColor:"var(--tw-prose-hr)",borderTopWidth:1},blockquote:{fontWeight:"500",fontStyle:"italic",color:"var(--tw-prose-quotes)",borderInlineStartWidth:"0.25rem",borderInlineStartColor:"var(--tw-prose-quote-borders)",quotes:'"\\201C""\\201D""\\2018""\\2019"'},"blockquote p:first-of-type::before":{content:"open-quote"},"blockquote p:last-of-type::after":{content:"close-quote"},h1:{color:"var(--tw-prose-headings)",fontWeight:"800"},"h1 strong":{fontWeight:"900",color:"inherit"},h2:{color:"var(--tw-prose-headings)",fontWeight:"700"},"h2 strong":{fontWeight:"800",color:"inherit"},h3:{color:"var(--tw-prose-headings)",fontWeight:"600"},"h3 strong":{fontWeight:"700",color:"inherit"},h4:{color:"var(--tw-prose-headings)",fontWeight:"600"},"h4 strong":{fontWeight:"700",color:"inherit"},img:{},picture:{display:"block"},video:{},kbd:{fontWeight:"500",fontFamily:"inherit",color:"var(--tw-prose-kbd)",boxShadow:"0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%)"},code:{color:"var(--tw-prose-code)",fontWeight:"600"},"code::before":{content:'"`"'},"code::after":{content:'"`"'},"a code":{color:"inherit"},"h1 code":{color:"inherit"},"h2 code":{color:"inherit"},"h3 code":{color:"inherit"},"h4 code":{color:"inherit"},"blockquote code":{color:"inherit"},"thead th code":{color:"inherit"},pre:{color:"var(--tw-prose-pre-code)",backgroundColor:"var(--tw-prose-pre-bg)",overflowX:"auto",fontWeight:"400"},"pre code":{backgroundColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0",fontWeight:"inherit",color:"inherit",fontSize:"inherit",fontFamily:"inherit",lineHeight:"inherit"},"pre code::before":{content:"none"},"pre code::after":{content:"none"},table:{width:"100%",tableLayout:"auto",marginTop:C(32,16),marginBottom:C(32,16)},thead:{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-th-borders)"},"thead th":{color:"var(--tw-prose-headings)",fontWeight:"600",verticalAlign:"bottom"},"tbody tr":{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-td-borders)"},"tbody tr:last-child":{borderBottomWidth:"0"},"tbody td":{verticalAlign:"baseline"},tfoot:{borderTopWidth:"1px",borderTopColor:"var(--tw-prose-th-borders)"},"tfoot td":{verticalAlign:"top"},"th, td":{textAlign:"start"},"figure > *":{},figcaption:{color:"var(--tw-prose-captions)"}},AP.gray.css,...AP.base.css]},...AP},hat="[object Object]";function fat(i){var e=!1;if(i!=null&&typeof i.toString!="function")try{e=!!(i+"")}catch{}return e}function pat(i,e){return function(t){return i(e(t))}}var gat=Function.prototype,Cj=Object.prototype,Aj=gat.toString,mat=Cj.hasOwnProperty,bat=Aj.call(Object),yat=Cj.toString,vat=pat(Object.getPrototypeOf,Object);
89function wat(i){return!!i&&typeof i=="object"}function _at(i){if(!wat(i)||yat.call(i)!=hat||fat(i))return!1;var e=vat(i);if(e===null)return!0;var t=mat.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Aj.call(t)==bat}var xat=_at,mM={exports:{}},bM={exports:{}},yM={exports:{}},vM={exports:{}},wM={exports:{}},_M={exports:{}},gs={},xM={exports:{}};(function(i,e){e.__esModule=!0,e.default=s;function t(r){for(var o=r.toLowerCase(),a="",l=!1,c=0;c<6&&o[c]!==void 0;c++){var u=o.charCodeAt(c),d=u>=97&&u<=102||u>=48&&u<=57;if(l=u===32,!d)break;a+=o[c]}if(a.length!==0){var h=parseInt(a,16),p=h>=55296&&h<=57343;return p||h===0||h>1114111?["�",a.length+(l?1:0)]:[String.fromCodePoint(h),a.length+(l?1:0)]}}var n=/\\/;function s(r){var o=n.test(r);if(!o)return r;for(var a="",l=0;l<r.length;l++){if(r[l]==="\\"){var c=t(r.slice(l+1,l+7));if(c!==void 0){a+=c[0],l+=c[1];continue}if(r[l+1]==="\\"){a+="\\",l++;continue}r.length===l+1&&(a+=r[l]);continue}a+=r[l]}return a}i.exports=e.default})(xM,xM.exports);var Mj=xM.exports,SM={exports:{}};
89(function(i,e){e.__esModule=!0,e.default=t;function t(n){for(var s=arguments.length,r=new Array(s>1?s-1:0),o=1;o<s;o++)r[o-1]=arguments[o];for(;r.length>0;){var a=r.shift();if(!n[a])return;n=n[a]}return n}i.exports=e.default})(SM,SM.exports);var Sat=SM.exports,TM={exports:{}};(function(i,e){e.__esModule=!0,e.default=t;function t(n){for(var s=arguments.length,r=new Array(s>1?s-1:0),o=1;o<s;o++)r[o-1]=arguments[o];for(;r.length>0;){var a=r.shift();n[a]||(n[a]={}),n=n[a]}}i.exports=e.default})(TM,TM.exports);var Tat=TM.exports,kM={exports:{}};(function(i,e){e.__esModule=!0,e.default=t;function t(n){for(var s="",r=n.indexOf("/*"),o=0;r>=0;){s=s+n.slice(o,r);var a=n.indexOf("*/",r+2);if(a<0)return s;o=a+2,r=n.indexOf("/*",o)}return s=s+n.slice(o),s}i.exports=e.default})(kM,kM.exports);var kat=kM.exports;gs.__esModule=!0;gs.stripComments=gs.ensureObject=gs.getProp=gs.unesc=void 0;var Eat=hE(Mj);gs.unesc=Eat.default;var Pat=hE(Sat);gs.getProp=Pat.default;var Cat=hE(Tat);gs.ensureObject=Cat.default;var Aat=hE(kat);gs.str
89ipComments=Aat.default;function hE(i){return i&&i.__esModule?i:{default:i}}(function(i,e){e.__esModule=!0,e.default=void 0;var t=gs;function n(a,l){for(var c=0;c<l.length;c++){var u=l[c];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(a,u.key,u)}}function s(a,l,c){return l&&n(a.prototype,l),c&&n(a,c),a}var r=function a(l,c){if(typeof l!="object"||l===null)return l;var u=new l.constructor;for(var d in l)if(l.hasOwnProperty(d)){var h=l[d],p=typeof h;d==="parent"&&p==="object"?c&&(u[d]=c):h instanceof Array?u[d]=h.map(function(m){return a(m,u)}):u[d]=a(h,u)}return u},o=function(){function a(c){c===void 0&&(c={}),Object.assign(this,c),this.spaces=this.spaces||{},this.spaces.before=this.spaces.before||"",this.spaces.after=this.spaces.after||""}var l=a.prototype;return l.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},l.replaceWith=function(){if(this.parent){for(var u in arguments)this.parent.insertBefore(this,arguments[u]);this.remove()}return this},l.next=function(){return this.parent.at(this.parent.index(this)+1)},l.prev=function(){return this.parent.at(this.parent.index(this)-1)},l.clone=function(u){u===void 0&&(u={});var d=r(this);for(var h in u)d[h]=u[h];return d},l.appendToPropertyAndEscape=function(u,d,h){this.raws||(this.raws={});var p=this[u],m=this.raws[u];this[u]=p+d,m||h!==d?this.raws[u]=(m||p)+h:delete this.raws[u]},l.setPropertyAndEscape=function(u,d,h){this.raws||(this.raws={}),this[u]=d,this.raws[u]=h},l.setPropertyWithoutEscape=function(u,d){this[u]=d,this.raws&&delete this.raws[u]},l.isAtPosition=function(u,d){if(this.source&&this.source.start&&this.source.end)return!(this.source.start.line>u||this.source.end.line<u||this.source.start.line===u&&this.source.start.column>d||this.source.end.line===u&&this.source.end.column<d)},l.stringifyProperty=function(u){return this.raws&&this.raws[u]||this[u]},l.valueToString=function(){return String(this.stringifyProperty("value"))},l.toString=function(){return[this.rawSpaceBefore,this.valueToString(),this.rawSpaceAfter].join("")},s(a,[{key:"rawSpaceBefore",get:function(){var u=this.raws&&this.raws.spaces&&this.raws.spaces.before;return u===void 0&&(u=this.spaces&&this.spaces.before),u||""},set:function(u){(0,t.ensureObject)(this,"raws","spaces"),this.raws.spaces.before=u}},{key:"rawSpaceAfter",get:function(){var u=this.raws&&this.raws.spaces&&this.raws.spaces.after;return u===void 0&&(u=this.spaces.after),u||""},set:function(u){(0,t.ensureObject)(this,"raws","spaces"),this.raws.spaces.after=u}}]),a}();e.default=o,i.exports=e.default})(_M,_M.exports);var Dl=_M.exports,Nt={};Nt.__esModule=!0;Nt.UNIVERSAL=Nt.ATTRIBUTE=Nt.CLASS=Nt.COMBINATOR=Nt.COMMENT=Nt.ID=Nt.NESTING=Nt.PSEUDO=Nt.ROOT=Nt.SELECTOR=Nt.STRING=Nt.TAG=void 0;var Mat="tag";Nt.TAG=Mat;var Oat="string";Nt.STRING=Oat;var $at="selector";Nt.SELECTOR=$at;var Lat="root";Nt.ROOT=Lat;var Iat="pseudo";Nt.PSEUDO=Iat;var Dat="nesting";Nt.NESTING=Dat;var Rat="id";Nt.ID=Rat;var Fat="comment";Nt.COMMENT=Fat;var Nat="combinator";Nt.COMBINATOR=Nat;var Bat="class";Nt.CLASS=Bat;var zat="attribute";Nt.ATTRIBUTE=zat;var Vat="universal";Nt.UNIVERSAL=Vat;
vendor: 5,596 bytes, lines 89-90
89(function(i,e){e.__esModule=!0,e.default=void 0;var t=o(Dl),n=r(Nt);function s(){if(typeof WeakMap!="function")return null;var g=new WeakMap;return s=function(){return g},g}function r(g){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var v=s();if(v&&v.has(g))return v.get(g);var w={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in g)if(Object.prototype.hasOwnProperty.call(g,x)){var k=_?Object.getOwnPropertyDescriptor(g,x):null;k&&(k.get||k.set)?Object.defineProperty(w,x,k):w[x]=g[x]}return w.default=g,v&&v.set(g,w),w}function o(g){return g&&g.__esModule?g:{default:g}}function a(g,v){var w;if(typeof Symbol>"u"||g[Symbol.iterator]==null){if(Array.isArray(g)||(w=l(g))||v&&g&&typeof g.length=="number"){w&&(g=w);var _=0;return function(){return _>=g.length?{done:!0}:{done:!1,value:g[_++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 90In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return w=g[Symbol.iterator](),w.next.bind(w)}function l(g,v){if(g){if(typeof g=="string")return c(g,v);var w=Object.prototype.toString.call(g).slice(8,-1);if(w==="Object"&&g.constructor&&(w=g.constructor.name),w==="Map"||w==="Set")return Array.from(g);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return c(g,v)}}function c(g,v){(v==null||v>g.length)&&(v=g.length);for(var w=0,_=new Array(v);w<v;w++)_[w]=g[w];return _}function u(g,v){for(var w=0;w<v.length;w++){var _=v[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}function d(g,v,w){return v&&u(g.prototype,v),w&&u(g,w),g}function h(g,v){g.prototype=Object.create(v.prototype),g.prototype.constructor=g,p(g,v)}function p(g,v){return p=Object.setPrototypeOf||function(_,x){return _.__proto__=x,_},p(g,v)}var m=function(g){h(v,g);function v(_){var x;return x=g.call(this,_)||this,x.nodes||(x.nodes=[]),x}var w=v.prototype;return w.append=function(x){return x.parent=this,this.nodes.push(x),this},w.prepend=function(x){return x.parent=this,this.nodes.unshift(x),this},w.at=function(x){return this.nodes[x]},w.index=function(x){return typeof x=="number"?x:this.nodes.indexOf(x)},w.removeChild=function(x){x=this.index(x),this.at(x).parent=void 0,this.nodes.splice(x,1);var k;for(var S in this.indexes)k=this.indexes[S],k>=x&&(this.indexes[S]=k-1);return this},w.removeAll=function(){for(var x=a(this.nodes),k;!(k=x()).done;){var S=k.value;S.parent=void 0}return this.nodes=[],this},w.empty=function(){return this.removeAll()},w.insertAfter=function(x,k){k.parent=this;var S=this.index(x);this.nodes.splice(S+1,0,k),k.parent=this;var T;for(var E in this.indexes)T=this.indexes[E],S<=T&&(this.indexes[E]=T+1);return this},w.insertBefore=function(x,k){k.parent=this;var S=this.index(x);this.nodes.splice(S,0,k),k.parent=this;var T;for(var E in this.indexes)T=this.indexes[E],T<=S&&(this.indexes[E]=T+1);return this},w._findChildAtPosition=function(x,k){var S=void 0;return this.each(function(T){if(T.atPosition){var E=T.atPosition(x,k);if(E)return S=E,!1}else if(T.isAtPosition(x,k))return S=T,!1}),S},w.atPosition=function(x,k){if(this.isAtPosition(x,k))return this._findChildAtPosition(x,k)||this},w._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},w.each=function(x){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var k=this.lastEach;if(this.indexes[k]=0,!!this.length){for(var S,T;this.indexes[k]<this.length&&(S=this.indexes[k],T=x(this.at(S),S),T!==!1);)this.indexes[k]+=1;if(delete this.indexes[k],T===!1)return!1}},w.walk=function(x){return this.each(function(k,S){var T=x(k,S);if(T!==!1&&k.length&&(T=k.walk(x)),T===!1)return!1})},w.walkAttributes=function(x){var k=this;return this.walk(function(S){if(S.type===n.ATTRIBUTE)return x.call(k,S)})},w.walkClasses=function(x){var k=this;return this.walk(function(S){if(S.type===n.CLASS)return x.call(k,S)})},w.walkCombinators=function(x){var k=this;return this.walk(function(S){if(S.type===n.COMBINATOR)return x.call(k,S)})},w.walkComments=function(x){var k=this;return this.walk(function(S){if(S.type===n.COMMENT)return x.call(k,S)})},w.walkIds=function(x){var k=this;return this.walk(function(S){if(S.type===n.ID)return x.call(k,S)})},w.walkNesting=function(x){var k=this;return this.walk(function(S){if(S.type===n.NESTING)return x.call(k,S)})},w.walkPseudos=function(x){var k=this;return this.walk(function(S){if(S.type===n.PSEUDO)return x.call(k,S)})},w.walkTags=function(x){var k=this;return this.walk(function(S){if(S.type===n.TAG)return x.call(k,S)})},w.walkUniversals=function(x){var k=this;return this.walk(function(S){if(S.type===n.UNIVERSAL)return x.call(k,S)})},w.split=function(x){var k=this,S=[];return this.reduce(function(T,E,M){var A=x.call(k,E);return S.push(E),A?(T.push(S),S=[]):M===k.length-1&&T.push(S),T},[])},w.map=function(x){return this.nodes.map(x)},w.reduce=function(x,k){return this.nodes.reduce(x,k)},w.every=function(x){return this.nodes.every(x)},w.some=function(x){return this.nodes.some(x)},w.filter=function(x){return this.nodes.filter(x)},w.sort=function(x){return this.nodes.sort(x)},w.toString=function(){return this.map(String).join("")},d(v,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),v}(t.default);e.default=m,i.exports=e.default}
90)(wM,wM.exports);var eL=wM.exports;(function(i,e){e.__esModule=!0,e.default=void 0;var t=s(eL),n=Nt;function s(u){return u&&u.__esModule?u:{default:u}}function r(u,d){for(var h=0;h<d.length;h++){var p=d[h];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(u,p.key,p)}}function o(u,d,h){return d&&r(u.prototype,d),h&&r(u,h),u}function a(u,d){u.prototype=Object.create(d.prototype),u.prototype.constructor=u,l(u,d)}function l(u,d){return l=Object.setPrototypeOf||function(p,m){return p.__proto__=m,p},l(u,d)}var c=function(u){a(d,u);function d(p){var m;return m=u.call(this,p)||this,m.type=n.ROOT,m}var h=d.prototype;return h.toString=function(){var m=this.reduce(function(g,v){return g.push(String(v)),g},[]).join(",");return this.trailingComma?m+",":m},h.error=function(m,g){return this._error?this._error(m,g):new Error(m)},o(d,[{key:"errorGenerator",set:function(m){this._error=m}}]),d}(t.default);e.default=c,i.exports=e.default})(vM,vM.exports);var Oj=vM.exports,EM={exports:{}};
90(function(i,e){e.__esModule=!0,e.default=void 0;var t=s(eL),n=Nt;function s(l){return l&&l.__esModule?l:{default:l}}function r(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,o(l,c)}function o(l,c){return o=Object.setPrototypeOf||function(d,h){return d.__proto__=h,d},o(l,c)}var a=function(l){r(c,l);function c(u){var d;return d=l.call(this,u)||this,d.type=n.SELECTOR,d}return c}(t.default);e.default=a,i.exports=e.default})(EM,EM.exports);var $j=EM.exports,PM={exports:{}};/*! https://mths.be/cssesc v3.0.0 by @mathias */var qat={},Hat=qat.hasOwnProperty,Wat=function(e,t){if(!e)return t;var n={};for(var s in t)n[s]=Hat.call(e,s)?e[s]:t[s];return n},jat=/[ -,\.\/:-@\[-\^`\{-~]/,Uat=/[ -,\.\/:-@\[\]\^`\{-~]/,Gat=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,iL=function i(e,t){t=Wat(t,i.options),t.quotes!="single"&&t.quotes!="double"&&(t.quotes="single");for(var n=t.quotes=="double"?'"':"'",s=t.isIdentifier,r=e.charAt(0),o="",a=0,l=e.length;a<l;){var c=e.charAt(a++),u=c.charCodeAt(),d=void 0;if(u<32||u>126){if(u>=55296&&u<=56319&&a<l){var h=e.charCodeAt(a++);(h&64512)==56320?u=((u&1023)<<10)+(h&1023)+65536:a--}d="\\"+u.toString(16).toUpperCase()+" "}else t.escapeEverything?jat.test(c)?d="\\"+c:d="\\"+u.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(c)?d="\\"+u.toString(16).toUpperCase()+" ":c=="\\"||!s&&(c=='"'&&n==c||c=="'"&&n==c)||s&&Uat.test(c)?d="\\"+c:d=c;o+=d}return s&&(/^-[-\d]/.test(o)?o="\\-"+o.slice(1):/\d/.test(r)&&(o="\\3"+r+" "+o.slice(1))),o=o.replace(Gat,function(p,m,g){return m&&m.length%2?p:(m||"")+g}),!s&&t.wrap?n+o+n:o};iL.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};iL.version="3.0.0";var nL=iL;
90(function(i,e){e.__esModule=!0,e.default=void 0;var t=o(nL),n=gs,s=o(Dl),r=Nt;function o(h){return h&&h.__esModule?h:{default:h}}function a(h,p){for(var m=0;m<p.length;m++){var g=p[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}function l(h,p,m){return p&&a(h.prototype,p),m&&a(h,m),h}function c(h,p){h.prototype=Object.create(p.prototype),h.prototype.constructor=h,u(h,p)}function u(h,p){return u=Object.setPrototypeOf||function(g,v){return g.__proto__=v,g},u(h,p)}var d=function(h){c(p,h);function p(g){var v;return v=h.call(this,g)||this,v.type=r.CLASS,v._constructed=!0,v}var m=p.prototype;return m.valueToString=function(){return"."+h.prototype.valueToString.call(this)},l(p,[{key:"value",get:function(){return this._value},set:function(v){if(this._constructed){var w=(0,t.default)(v,{isIdentifier:!0});w!==v?((0,n.ensureObject)(this,"raws"),this.raws.value=w):this.raws&&delete this.raws.value}this._value=v}}]),p}(s.default);e.default=d,i.exports=e.default})(PM,PM.exports);var Lj=PM.exports,CM={exports:{}};
90(function(i,e){e.__esModule=!0,e.default=void 0;var t=s(Dl),n=Nt;function s(l){return l&&l.__esModule?l:{default:l}}function r(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,o(l,c)}function o(l,c){return o=Object.setPrototypeOf||function(d,h){return d.__proto__=h,d},o(l,c)}var a=function(l){r(c,l);function c(u){var d;return d=l.call(this,u)||this,d.type=n.COMMENT,d}return c}(t.default);e.default=a,i.exports=e.default})(CM,CM.exports);var Ij=CM.exports,AM={exports:{}};(function(i,e){e.__esModule=!0,e.default=void 0;var t=s(Dl),n=Nt;function s(l){return l&&l.__esModule?l:{default:l}}function r(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,o(l,c)}function o(l,c){return o=Object.setPrototypeOf||function(d,h){return d.__proto__=h,d},o(l,c)}var a=function(l){r(c,l);function c(d){var h;return h=l.call(this,d)||this,h.type=n.ID,h}var u=c.prototype;return u.valueToString=function(){return"#"+l.prototype.valueToString.call(this)},c}(t.default);e.default=a,i.exports=e.default})(AM,AM.exports);var Dj=AM.exports,MM={exports:{}},OM={exports:{}};
90(function(i,e){e.__esModule=!0,e.default=void 0;var t=r(nL),n=gs,s=r(Dl);function r(d){return d&&d.__esModule?d:{default:d}}function o(d,h){for(var p=0;p<h.length;p++){var m=h[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(d,m.key,m)}}function a(d,h,p){return h&&o(d.prototype,h),p&&o(d,p),d}function l(d,h){d.prototype=Object.create(h.prototype),d.prototype.constructor=d,c(d,h)}function c(d,h){return c=Object.setPrototypeOf||function(m,g){return m.__proto__=g,m},c(d,h)}var u=function(d){l(h,d);function h(){return d.apply(this,arguments)||this}var p=h.prototype;return p.qualifiedName=function(g){return this.namespace?this.namespaceString+"|"+g:g},p.valueToString=function(){return this.qualifiedName(d.prototype.valueToString.call(this))},a(h,[{key:"namespace",get:function(){return this._namespace},set:function(g){if(g===!0||g==="*"||g==="&"){this._namespace=g,this.raws&&delete this.raws.namespace;return}var v=(0,t.default)(g,{isIdentifier:!0});this._namespace=g,v!==g?((0,n.ensureObject)(this,"raws"),this.raws.namespace=v):this.raws&&delete this.raws.namespace}},{key:"ns",get:function(){return this._namespace},set:function(g){this.namespace=g}},{key:"namespaceString",get:function(){if(this.namespace){var g=this.stringifyProperty("namespace");return g===!0?"":g}else return""}}]),h}(s.default);e.default=u,i.exports=e.default})(OM,OM.exports);var sL=OM.exports;
90(function(i,e){e.__esModule=!0,e.default=void 0;var t=s(sL),n=Nt;function s(l){return l&&l.__esModule?l:{default:l}}function r(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,o(l,c)}function o(l,c){return o=Object.setPrototypeOf||function(d,h){return d.__proto__=h,d},o(l,c)}var a=function(l){r(c,l);function c(u){var d;return d=l.call(this,u)||this,d.type=n.TAG,d}return c}(t.default);e.default=a,i.exports=e.default})(MM,MM.exports);var Rj=MM.exports,$M={exports:{}};(function(i,e){e.__esModule=!0,e.default=void 0;var t=s(Dl),n=Nt;function s(l){return l&&l.__esModule?l:{default:l}}function r(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,o(l,c)}function o(l,c){return o=Object.setPrototypeOf||function(d,h){return d.__proto__=h,d},o(l,c)}var a=function(l){r(c,l);function c(u){var d;return d=l.call(this,u)||this,d.type=n.STRING,d}return c}(t.default);e.default=a,i.exports=e.default})($M,$M.exports);var Fj=$M.exports,LM={exports:{}};(function(i,e){e.__esModule=!0,e.default=void 0;var t=s(eL),n=Nt;function s(l){return l&&l.__esModule?l:{default:l}}function r(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,o(l,c)}function o(l,c){return o=Object.setPrototypeOf||function(d,h){return d.__proto__=h,d},o(l,c)}var a=function(l){r(c,l);function c(d){var h;return h=l.call(this,d)||this,h.type=n.PSEUDO,h}var u=c.prototype;return u.toString=function(){var h=this.length?"("+this.map(String).join(",")+")":"";return[this.rawSpaceBefore,this.stringifyProperty("value"),h,this.rawSpaceAfter].join("")},c}(t.default);e.default=a,i.exports=e.default})(LM,LM.exports);var Nj=LM.exports,rL={},Yat=Kat;function Kat(i,e){if(MP("noDeprecation"))return i;var t=!1;function n(){if(!t){if(MP("throwDeprecation"))throw new Error(e);MP("traceDeprecation")?console.trace(e):console.warn(e),t=!0}return i.apply(this,arguments)}return n}function MP(i){try{if(!rd.localStorage)return!1}catch{return!1}var e=rd.localStorage[i];return e==null?!1:String(e).toLowerCase()==="true"}(function(i){i.__esModule=!0,i.unescapeValue=v,i.default=void 0;var e=o(nL),t=o(Mj),n=o(sL),s=Nt,r;function o(S){return S&&S.__esModule?S:{default:S}}function a(S,T){for(var E=0;E<T.length;E++){var M=T[E];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(S,M.key,M)}}function l(S,T,E){return T&&a(S.prototype,T),E&&a(S,E),S}function c(S,T){S.prototype=Object.create(T.prototype),S.prototype.constructor=S,u(S,T)}function u(S,T){return u=Object.setPrototypeOf||function(M,A){return M.__proto__=A,M},u(S,T)}var d=Yat,h=/^('|")([^]*)\1$/,p=d(function(){},"Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."),m=d(function(){},"Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."),g=d(function(){},"Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");function v(S){var T=!1,E=null,M=S,A=M.match(h);return A&&(E=A[1],M=A[2]),M=(0,t.default)(M),M!==S&&(T=!0),{deprecatedUsage:T,unescaped:M,quoteMark:E}}function w(S){if(S.quoteMark!==void 0||S.value===void 0)return S;g();var T=v(S.value),E=T.quoteMark,M=T.unescaped;return S.raws||(S.raws={}),S.raws.value===void 0&&(S.raws.value=S.value),S.value=M,S.quoteMark=E,S}var _=function(S){c(T,S);function T(M){var A;return M===void 0&&(M={}),A=S.call(this,w(M))||this,A.type=s.ATTRIBUTE,A.raws=A.raws||{},Object.defineProperty(A.raws,"unquoted",{get:d(function(){return A.value},"attr.raws.unquoted is deprecated. Call attr.value instead."),set:d(function(){return A.value},"Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")}),A._constructed=!0,A}var E=T.prototype;return E.getQuotedValue=function(A){A===void 0&&(A={});var P=this._determineQuoteMark(A),L=x[P],I=(0,e.default)(this._value,L);return I},E._determineQuoteMark=function(A){return A.smart?this.smartQuoteMark(A):this.preferredQuoteMark(A)},E.setValue=function(A,P){P===void 0&&(P={}),this._value=A,this._quoteMark=this._determineQuoteMark(P),this._syncRawValue()},E.smartQuoteMark=function(A){var P=this.value,L=P.replace(/[^']/g,"").length,I=P.replace(/[^"]/g,"").length;if(L+I===0){var z=(0,e.default)(P,{isIdentifier:!0});if(z===P)return T.NO_QUOTE;var q=this.preferredQuoteMark(A);
vendor: 3,283 bytes, line 90
90if(q===T.NO_QUOTE){var H=this.quoteMark||A.quoteMark||T.DOUBLE_QUOTE,j=x[H],$=(0,e.default)(P,j);if($.length<z.length)return H}return q}else return I===L?this.preferredQuoteMark(A):I<L?T.DOUBLE_QUOTE:T.SINGLE_QUOTE},E.preferredQuoteMark=function(A){var P=A.preferCurrentQuoteMark?this.quoteMark:A.quoteMark;return P===void 0&&(P=A.preferCurrentQuoteMark?A.quoteMark:this.quoteMark),P===void 0&&(P=T.DOUBLE_QUOTE),P},E._syncRawValue=function(){var A=(0,e.default)(this._value,x[this.quoteMark]);A===this._value?this.raws&&delete this.raws.value:this.raws.value=A},E._handleEscapes=function(A,P){if(this._constructed){var L=(0,e.default)(P,{isIdentifier:!0});L!==P?this.raws[A]=L:delete this.raws[A]}},E._spacesFor=function(A){var P={before:"",after:""},L=this.spaces[A]||{},I=this.raws.spaces&&this.raws.spaces[A]||{};return Object.assign(P,L,I)},E._stringFor=function(A,P,L){P===void 0&&(P=A),L===void 0&&(L=k);var I=this._spacesFor(P);return L(this.stringifyProperty(A),I)},E.offsetOf=function(A){var P=1,L=this._spacesFor("attribute");if(P+=L.before.length,A==="namespace"||A==="ns")return this.namespace?P:-1;if(A==="attributeNS"||(P+=this.namespaceString.length,this.namespace&&(P+=1),A==="attribute"))return P;P+=this.stringifyProperty("attribute").length,P+=L.after.length;var I=this._spacesFor("operator");P+=I.before.length;var z=this.stringifyProperty("operator");if(A==="operator")return z?P:-1;P+=z.length,P+=I.after.length;var q=this._spacesFor("value");P+=q.before.length;var H=this.stringifyProperty("value");if(A==="value")return H?P:-1;P+=H.length,P+=q.after.length;var j=this._spacesFor("insensitive");return P+=j.before.length,A==="insensitive"&&this.insensitive?P:-1},E.toString=function(){var A=this,P=[this.rawSpaceBefore,"["];return P.push(this._stringFor("qualifiedAttribute","attribute")),this.operator&&(this.value||this.value==="")&&(P.push(this._stringFor("operator")),P.push(this._stringFor("value")),P.push(this._stringFor("insensitiveFlag","insensitive",function(L,I){return L.length>0&&!A.quoted&&I.before.length===0&&!(A.spaces.value&&A.spaces.value.after)&&(I.before=" "),k(L,I)}))),P.push("]"),P.push(this.rawSpaceAfter),P.join("")},l(T,[{key:"quoted",get:function(){var A=this.quoteMark;return A==="'"||A==='"'},set:function(A){m()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(A){if(!this._constructed){this._quoteMark=A;return}this._quoteMark!==A&&(this._quoteMark=A,this._syncRawValue())}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(A){if(this._constructed){var P=v(A),L=P.deprecatedUsage,I=P.unescaped,z=P.quoteMark;if(L&&p(),I===this._value&&z===this._quoteMark)return;this._value=I,this._quoteMark=z,this._syncRawValue()}else this._value=A}},{key:"attribute",get:function(){return this._attribute},set:function(A){this._handleEscapes("attribute",A),this._attribute=A}}]),T}(n.default);i.default=_,_.NO_QUOTE=null,_.SINGLE_QUOTE="'",_.DOUBLE_QUOTE='"';var x=(r={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}},r[null]={isIdentifier:!0},r);function k(S,T){return""+T.before+S+T.after}})(rL);var IM={exports:{}};
90(function(i,e){e.__esModule=!0,e.default=void 0;var t=s(sL),n=Nt;function s(l){return l&&l.__esModule?l:{default:l}}function r(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,o(l,c)}function o(l,c){return o=Object.setPrototypeOf||function(d,h){return d.__proto__=h,d},o(l,c)}var a=function(l){r(c,l);function c(u){var d;return d=l.call(this,u)||this,d.type=n.UNIVERSAL,d.value="*",d}return c}(t.default);e.default=a,i.exports=e.default})(IM,IM.exports);var Bj=IM.exports,DM={exports:{}};(function(i,e){e.__esModule=!0,e.default=void 0;var t=s(Dl),n=Nt;function s(l){return l&&l.__esModule?l:{default:l}}function r(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,o(l,c)}function o(l,c){return o=Object.setPrototypeOf||function(d,h){return d.__proto__=h,d},o(l,c)}var a=function(l){r(c,l);function c(u){var d;return d=l.call(this,u)||this,d.type=n.COMBINATOR,d}return c}(t.default);e.default=a,i.exports=e.default})(DM,DM.exports);var zj=DM.exports,RM={exports:{}};(function(i,e){e.__esModule=!0,e.default=void 0;var t=s(Dl),n=Nt;function s(l){return l&&l.__esModule?l:{default:l}}function r(l,c){l.prototype=Object.create(c.prototype),l.prototype.constructor=l,o(l,c)}function o(l,c){return o=Object.setPrototypeOf||function(d,h){return d.__proto__=h,d},o(l,c)}var a=function(l){r(c,l);function c(u){var d;return d=l.call(this,u)||this,d.type=n.NESTING,d.value="&",d}return c}(t.default);e.default=a,i.exports=e.default})(RM,RM.exports);var Vj=RM.exports,FM={exports:{}};
vendor: 22,331 bytes, lines 90-91
90(function(i,e){e.__esModule=!0,e.default=t;function t(n){return n.sort(function(s,r){return s-r})}i.exports=e.default})(FM,FM.exports);var Xat=FM.exports,qj={},ht={};ht.__esModule=!0;ht.combinator=ht.word=ht.comment=ht.str=ht.tab=ht.newline=ht.feed=ht.cr=ht.backslash=ht.bang=ht.slash=ht.doubleQuote=ht.singleQuote=ht.space=ht.greaterThan=ht.pipe=ht.equals=ht.plus=ht.caret=ht.tilde=ht.dollar=ht.closeSquare=ht.openSquare=ht.closeParenthesis=ht.openParenthesis=ht.semicolon=ht.colon=ht.comma=ht.at=ht.asterisk=ht.ampersand=void 0;var Qat=38;ht.ampersand=Qat;var Jat=42;ht.asterisk=Jat;var Zat=64;ht.at=Zat;var tlt=44;ht.comma=tlt;var elt=58;ht.colon=elt;var ilt=59;ht.semicolon=ilt;var nlt=40;ht.openParenthesis=nlt;var slt=41;ht.closeParenthesis=slt;var rlt=91;ht.openSquare=rlt;var olt=93;ht.closeSquare=olt;var alt=36;ht.dollar=alt;var llt=126;ht.tilde=llt;var clt=94;ht.caret=clt;var ult=43;ht.plus=ult;var dlt=61;ht.equals=dlt;var hlt=124;ht.pipe=hlt;var flt=62;ht.greaterThan=flt;var plt=32;ht.space=plt;var Hj=39;ht.singleQuote=Hj;var glt=34;ht.doubleQuote=glt;var mlt=47;ht.slash=mlt;var blt=33;ht.bang=blt;var ylt=92;ht.backslash=ylt;var vlt=13;ht.cr=vlt;var wlt=12;ht.feed=wlt;var _lt=10;ht.newline=_lt;var xlt=9;ht.tab=xlt;var Slt=Hj;ht.str=Slt;var Tlt=-1;ht.comment=Tlt;var klt=-2;ht.word=klt;var Elt=-3;ht.combinator=Elt;(function(i){i.__esModule=!0,i.default=m,i.FIELDS=void 0;var e=r(ht),t,n;function s(){if(typeof WeakMap!="function")return null;var g=new WeakMap;return s=function(){return g},g}function r(g){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var v=s();if(v&&v.has(g))return v.get(g);var w={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in g)if(Object.prototype.hasOwnProperty.call(g,x)){var k=_?Object.getOwnPropertyDescriptor(g,x):null;k&&(k.get||k.set)?Object.defineProperty(w,x,k):w[x]=g[x]}return w.default=g,v&&v.set(g,w),w}for(var o=(t={},t[e.tab]=!0,t[e.newline]=!0,t[e.cr]=!0,t[e.feed]=!0,t),a=(n={},n[e.space]=!0,n[e.tab]=!0,n[e.newline]=!0,n[e.cr]=!0,n[e.feed]=!0,n[e.ampersand]=!0,n[e.asterisk]=!0,n[e.bang]=!0,n[e.comma]=!0,n[e.colon]=!0,n[e.semicolon]=!0,n[e.openParenthesis]=!0,n[e.closeParenthesis]=!0,n[e.openSquare]=!0,n[e.closeSquare]=!0,n[e.singleQuote]=!0,n[e.doubleQuote]=!0,n[e.plus]=!0,n[e.pipe]=!0,n[e.tilde]=!0,n[e.greaterThan]=!0,n[e.equals]=!0,n[e.dollar]=!0,n[e.caret]=!0,n[e.slash]=!0,n),l={},c="0123456789abcdefABCDEF",u=0;u<c.length;u++)l[c.charCodeAt(u)]=!0;function d(g,v){var w=v,_;do{if(_=g.charCodeAt(w),a[_])return w-1;_===e.backslash?w=h(g,w)+1:w++}while(w<g.length);return w-1}function h(g,v){var w=v,_=g.charCodeAt(w+1);if(!o[_])if(l[_]){var x=0;do w++,x++,_=g.charCodeAt(w+1);while(l[_]&&x<6);x<6&&_===e.space&&w++}else w++;return w}var p={TYPE:0,START_LINE:1,START_COL:2,END_LINE:3,END_COL:4,START_POS:5,END_POS:6};i.FIELDS=p;function m(g){var v=[],w=g.css.valueOf(),_=w,x=_.length,k=-1,S=1,T=0,E=0,M,A,P,L,I,z,q,H,j,$,B,K,N;function J(et,Z){if(g.safe)w+=Z,j=w.length-1;else throw g.error("Unclosed "+et,S,T-k,T)}for(;T<x;){switch(M=w.charCodeAt(T),M===e.newline&&(k=T,S+=1),M){case e.space:case e.tab:case e.newline:case e.cr:case e.feed:j=T;do j+=1,M=w.charCodeAt(j),M===e.newline&&(k=j,S+=1);while(M===e.space||M===e.newline||M===e.tab||M===e.cr||M===e.feed);N=e.space,L=S,P=j-k-1,E=j;break;case e.plus:case e.greaterThan:case e.tilde:case e.pipe:j=T;do j+=1,M=w.charCodeAt(j);while(M===e.plus||M===e.greaterThan||M===e.tilde||M===e.pipe);N=e.combinator,L=S,P=T-k,E=j;break;case e.asterisk:case e.ampersand:case e.bang:case e.comma:case e.equals:case e.dollar:case e.caret:case e.openSquare:case e.closeSquare:case e.colon:case e.semicolon:case e.openParenthesis:case e.closeParenthesis:j=T,N=M,L=S,P=T-k,E=j+1;break;case e.singleQuote:case e.doubleQuote:K=M===e.singleQuote?"'":'"',j=T;do for(I=!1,j=w.indexOf(K,j+1),j===-1&&J("quote",K),z=j;w.charCodeAt(z-1)===e.backslash;)z-=1,I=!I;while(I);N=e.str,L=S,P=T-k,E=j+1;break;default:M===e.slash&&w.charCodeAt(T+1)===e.asterisk?(j=w.indexOf("*/",T+2)+1,j===0&&J("comment","*/"),A=w.slice(T,j+1),H=A.split(` 91`),q=H.length-1,q>0?($=S+q,B=j-H[q].length):($=S,B=k),N=e.comment,S=$,L=$,P=j-B):M===e.slash?(j=T,N=M,L=S,P=T-k,E=j+1):(j=d(w,T),N=e.word,L=S,P=j-k),E=j+1;break}v.push([N,S,T-k,L,P,T,E]),B&&(k=B,B=null),T=E}return v}})(qj);(function(i,e){e.__esModule=!0,e.default=void 0;var t=E(Oj),n=E($j),s=E(Lj),r=E(Ij),o=E(Dj),a=E(Rj),l=E(Fj),c=E(Nj),u=T(rL),d=E(Bj),h=E(zj),p=E(Vj),m=E(Xat),g=T(qj),v=T(ht),w=T(Nt),_=gs,x,k;function S(){if(typeof WeakMap!="function")return null;var J=new WeakMap;return S=function(){return J},J}function T(J){if(J&&J.__esModule)return J;if(J===null||typeof J!="object"&&typeof J!="function")return{default:J};var et=S();if(et&&et.has(J))return et.get(J);var Z={},U=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var tt in J)if(Object.prototype.hasOwnProperty.call(J,tt)){var it=U?Object.getOwnPropertyDescriptor(J,tt):null;it&&(it.get||it.set)?Object.defineProperty(Z,tt,it):Z[tt]=J[tt]}return Z.default=J,et&&et.set(J,Z),Z}function E(J){return J&&J.__esModule?J:{default:J}}function M(J,et){for(var Z=0;Z<et.length;Z++){var U=et[Z];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(J,U.key,U)}}function A(J,et,Z){return et&&M(J.prototype,et),Z&&M(J,Z),J}var P=(x={},x[v.space]=!0,x[v.cr]=!0,x[v.feed]=!0,x[v.newline]=!0,x[v.tab]=!0,x),L=Object.assign({},P,(k={},k[v.comment]=!0,k));function I(J){return{line:J[g.FIELDS.START_LINE],column:J[g.FIELDS.START_COL]}}function z(J){return{line:J[g.FIELDS.END_LINE],column:J[g.FIELDS.END_COL]}}function q(J,et,Z,U){return{start:{line:J,column:et},end:{line:Z,column:U}}}function H(J){return q(J[g.FIELDS.START_LINE],J[g.FIELDS.START_COL],J[g.FIELDS.END_LINE],J[g.FIELDS.END_COL])}function j(J,et){if(J)return q(J[g.FIELDS.START_LINE],J[g.FIELDS.START_COL],et[g.FIELDS.END_LINE],et[g.FIELDS.END_COL])}function $(J,et){var Z=J[et];if(typeof Z=="string")return Z.indexOf("\\")!==-1&&((0,_.ensureObject)(J,"raws"),J[et]=(0,_.unesc)(Z),J.raws[et]===void 0&&(J.raws[et]=Z)),J}function B(J,et){for(var Z=-1,U=[];(Z=J.indexOf(et,Z+1))!==-1;)U.push(Z);return U}function K(){var J=Array.prototype.concat.apply([],arguments);return J.filter(function(et,Z){return Z===J.indexOf(et)})}var N=function(){function J(Z,U){U===void 0&&(U={}),this.rule=Z,this.options=Object.assign({lossy:!1,safe:!1},U),this.position=0,this.css=typeof this.rule=="string"?this.rule:this.rule.selector,this.tokens=(0,g.default)({css:this.css,error:this._errorGenerator(),safe:this.options.safe});var tt=j(this.tokens[0],this.tokens[this.tokens.length-1]);this.root=new t.default({source:tt}),this.root.errorGenerator=this._errorGenerator();var it=new n.default({source:{start:{line:1,column:1}}});this.root.append(it),this.current=it,this.loop()}var et=J.prototype;return et._errorGenerator=function(){var U=this;return function(tt,it){return typeof U.rule=="string"?new Error(tt):U.rule.error(tt,it)}},et.attribute=function(){var U=[],tt=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[g.FIELDS.TYPE]!==v.closeSquare;)U.push(this.currToken),this.position++;if(this.currToken[g.FIELDS.TYPE]!==v.closeSquare)return this.expected("closing square bracket",this.currToken[g.FIELDS.START_POS]);var it=U.length,Y={source:q(tt[1],tt[2],this.currToken[3],this.currToken[4]),sourceIndex:tt[g.FIELDS.START_POS]};if(it===1&&!~[v.word].indexOf(U[0][g.FIELDS.TYPE]))return this.expected("attribute",U[0][g.FIELDS.START_POS]);for(var ot=0,pt="",mt="",lt=null,xt=!1;ot<it;){var gt=U[ot],ct=this.content(gt),$t=U[ot+1];switch(gt[g.FIELDS.TYPE]){case v.space:if(xt=!0,this.options.lossy)break;if(lt){(0,_.ensureObject)(Y,"spaces",lt);var fe=Y.spaces[lt].after||"";Y.spaces[lt].after=fe+ct;var X=(0,_.getProp)(Y,"raws","spaces",lt,"after")||null;X&&(Y.raws.spaces[lt].after=X+ct)}else pt=pt+ct,mt=mt+ct;break;case v.asterisk:if($t[g.FIELDS.TYPE]===v.equals)Y.operator=ct,lt="operator";else if((!Y.namespace||lt==="namespace"&&!xt)&&$t){pt&&((0,_.ensureObject)(Y,"spaces","attribute"),Y.spaces.attribute.before=pt,pt=""),mt&&((0,_.ensureObject)(Y,"raws","spaces","attribute"),Y.raws.spaces.attribute.before=pt,mt=""),Y.namespace=(Y.namespace||"")+ct;var ue=(0,_.getProp)(Y,"raws","namespace")||null;ue&&(Y.raws.namespace+=ct),lt="namespace"}xt=!1;break;case v.dollar:if(lt==="value"){var pe=(0,_.getProp)(Y,"raws","value");Y.value+="$",pe&&(Y.raws.value=pe+"$");break}case v.caret:$t[g.FIELDS.TYPE]===v.equals&&(Y.operator=ct,lt="operator"),xt=!1;break;case v.combinator:if(ct==="~"&&$t[g.FIELDS.TYPE]===v.equals&&(Y.operator=ct,lt="operator"),ct!=="|"){xt=!1;break}$t[g.FIELDS.TYPE]===v.equals?(Y.operator=ct,lt="operator"):!Y.namespace&&!Y.attribute&&(Y.namespace=!0),xt=!1;break;case v.word:if($t&&this.content($t)==="|"&&U[ot+2]&&U[ot+2][g.FIELDS.TYPE]!==v.equals&&!Y.operator&&!Y.namespace)Y.namespace=ct,lt="namespace";else if(!Y.attribute||lt==="attribute"&&!xt){pt&&((0,_.ensureObject)(Y,"spaces","attribute"),Y.spaces.attribute.before=pt,pt=""),mt&&((0,_.ensureObject)(Y,"raws","spaces","attribute"),Y.raws.spaces.attribute.before=mt,mt=""),Y.attribute=(Y.attribute||"")+ct;var Ae=(0,_.getProp)(Y,"raws","attribute")||null;Ae&&(Y.raws.attribute+=ct),lt="attribute"}else if(!Y.value&&Y.value!==""||lt==="value"&&!xt){var Ut=(0,_.unesc)(ct),Ue=(0,_.getProp)(Y,"raws","value")||"",Ge=Y.value||"";Y.value=Ge+Ut,Y.quoteMark=null,(Ut!==ct||Ue)&&((0,_.ensureObject)(Y,"raws"),Y.raws.value=(Ue||Ge)+ct),lt="value"}else{var cn=ct==="i"||ct==="I";(Y.value||Y.value==="")&&(Y.quoteMark||xt)?(Y.insensitive=cn,(!cn||ct==="I")&&((0,_.ensureObject)(Y,"raws"),Y.raws.insensitiveFlag=ct),lt="insensitive",pt&&((0,_.ensureObject)(Y,"spaces","insensitive"),Y.spaces.insensitive.before=pt,pt=""),mt&&((0,_.ensureObject)(Y,"raws","spaces","insensitive"),Y.raws.spaces.insensitive.before=mt,mt="")):(Y.value||Y.value==="")&&(lt="value",Y.value+=ct,Y.raws.value&&(Y.raws.value+=ct))}xt=!1;break;case v.str:if(!Y.attribute||!Y.operator)return this.error("Expected an attribute followed by an operator preceding the string.",{index:gt[g.FIELDS.START_POS]});var ye=(0,u.unescapeValue)(ct),Ss=ye.unescaped,Me=ye.quoteMark;Y.value=Ss,Y.quoteMark=Me,lt="value",(0,_.ensureObject)(Y,"raws"),Y.raws.value=ct,xt=!1;break;case v.equals:if(!Y.attribute)return this.expected("attribute",gt[g.FIELDS.START_POS],ct);if(Y.value)return this.error('Unexpected "=" found; an operator was already defined.',{index:gt[g.FIELDS.START_POS]});Y.operator=Y.operator?Y.operator+ct:ct,lt="operator",xt=!1;break;case v.comment:if(lt)if(xt||$t&&$t[g.FIELDS.TYPE]===v.space||lt==="insensitive"){var ki=(0,_.getProp)(Y,"spaces",lt,"after")||"",Bi=(0,_.getProp)(Y,"raws","spaces",lt,"after")||ki;(0,_.ensureObject)(Y,"raws","spaces",lt),Y.raws.spaces[lt].after=Bi+ct}else{var Pn=Y[lt]||"",br=(0,_.getProp)(Y,"raws",lt)||Pn;(0,_.ensureObject)(Y,"raws"),Y.raws[lt]=br+ct}else mt=mt+ct;break;default:return this.error('Unexpected "'+ct+'" found.',{index:gt[g.FIELDS.START_POS]})}ot++}$(Y,"attribute"),$(Y,"namespace"),this.newNode(new u.default(Y)),this.position++},et.parseWhitespaceEquivalentTokens=function(U){U<0&&(U=this.tokens.length);var tt=this.position,it=[],Y="",ot=void 0;do if(P[this.currToken[g.FIELDS.TYPE]])this.options.lossy||(Y+=this.content());else if(this.currToken[g.FIELDS.TYPE]===v.comment){var pt={};Y&&(pt.before=Y,Y=""),ot=new r.default({value:this.content(),source:H(this.currToken),sourceIndex:this.currToken[g.FIELDS.START_POS],spaces:pt}),it.push(ot)}while(++this.position<U);if(Y){if(ot)ot.spaces.after=Y;else if(!this.options.lossy){var mt=this.tokens[tt],lt=this.tokens[this.position-1];it.push(new l.default({value:"",source:q(mt[g.FIELDS.START_LINE],mt[g.FIELDS.START_COL],lt[g.FIELDS.END_LINE],lt[g.FIELDS.END_COL]),sourceIndex:mt[g.FIELDS.START_POS],spaces:{before:Y,after:""}}))}}return it},et.convertWhitespaceNodesToSpace=function(U,tt){var it=this;tt===void 0&&(tt=!1);var Y="",ot="";U.forEach(function(mt){var lt=it.lossySpace(mt.spaces.before,tt),xt=it.lossySpace(mt.rawSpaceBefore,tt);Y+=lt+it.lossySpace(mt.spaces.after,tt&<.length===0),ot+=lt+mt.value+it.lossySpace(mt.rawSpaceAfter,tt&&xt.length===0)}),ot===Y&&(ot=void 0);var pt={space:Y,rawSpace:ot};return pt},et.isNamedCombinator=function(U){return U===void 0&&(U=this.position),this.tokens[U+0]&&this.tokens[U+0][g.FIELDS.TYPE]===v.slash&&this.tokens[U+1]&&this.tokens[U+1][g.FIELDS.TYPE]===v.word&&this.tokens[U+2]&&this.tokens[U+2][g.FIELDS.TYPE]===v.slash},et.namedCombinator=function(){if(this.isNamedCombinator()){var U=this.content(this.tokens[this.position+1]),tt=(0,_.unesc)(U).toLowerCase(),it={};tt!==U&&(it.value="/"+U+"/");var Y=new h.default({value:"/"+tt+"/",source:q(this.currToken[g.FIELDS.START_LINE],this.currToken[g.FIELDS.START_COL],this.tokens[this.position+2][g.FIELDS.END_LINE],this.tokens[this.position+2][g.FIELDS.END_COL]),sourceIndex:this.currToken[g.FIELDS.START_POS],raws:it});return this.position=this.position+3,Y}else this.unexpected()},et.combinator=function(){var U=this;if(this.content()==="|")return this.namespace();var tt=this.locateNextMeaningfulToken(this.position);if(tt<0||this.tokens[tt][g.FIELDS.TYPE]===v.comma){var it=this.parseWhitespaceEquivalentTokens(tt);if(it.length>0){var Y=this.current.last;if(Y){var ot=this.convertWhitespaceNodesToSpace(it),pt=ot.space,mt=ot.rawSpace;mt!==void 0&&(Y.rawSpaceAfter+=mt),Y.spaces.after+=pt}else it.forEach(function(Ue){return U.newNode(Ue)})}return}var lt=this.currToken,xt=void 0;tt>this.position&&(xt=this.parseWhitespaceEquivalentTokens(tt));var gt;if(this.isNamedCombinator()?gt=this.namedCombinator():this.currToken[g.FIELDS.TYPE]===v.combinator?(gt=new h.default({value:this.content(),source:H(this.currToken),sourceIndex:this.currToken[g.FIELDS.START_POS]}),this.position++):P[this.currToken[g.FIELDS.TYPE]]||xt||this.unexpected(),gt){if(xt){var ct=this.convertWhitespaceNodesToSpace(xt),$t=ct.space,fe=ct.rawSpace;gt.spaces.before=$t,gt.rawSpaceBefore=fe}}else{var X=this.convertWhitespaceNodesToSpace(xt,!0),ue=X.space,pe=X.rawSpace;pe||(pe=ue);var Ae={},Ut={spaces:{}};ue.endsWith(" ")&&pe.endsWith(" ")?(Ae.before=ue.slice(0,ue.length-1),Ut.spaces.before=pe.slice(0,pe.length-1)):ue.startsWith(" ")&&pe.startsWith(" ")?(Ae.after=ue.slice(1),Ut.spaces.after=pe.slice(1)):Ut.value=pe,gt=new h.default({value:" ",source:j(lt,this.tokens[this.position-1]),sourceIndex:lt[g.FIELDS.START_POS],spaces:Ae,raws:Ut})}return this.currToken&&this.currToken[g.FIELDS.TYPE]===v.space&&(gt.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(gt)},et.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}this.current._inferEndPosition();var U=new n.default({source:{start:I(this.tokens[this.position+1])}});this.current.parent.append(U),this.current=U,this.position++},et.comment=function(){var U=this.currToken;this.newNode(new r.default({value:this.content(),source:H(U),sourceIndex:U[g.FIELDS.START_POS]})),this.position++},et.error=function(U,tt){throw this.root.error(U,tt)},et.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[g.FIELDS.START_POS]})},et.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[g.FIELDS.START_POS])},et.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[g.FIELDS.START_POS])},et.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[g.FIELDS.START_POS])},et.namespace=function(){var U=this.prevToken&&this.content(this.prevToken)||!0;if(this.nextToken[g.FIELDS.TYPE]===v.word)return this.position++,this.word(U);if(this.nextToken[g.FIELDS.TYPE]===v.asterisk)return this.position++,this.universal(U)},et.nesting=function(){if(this.nextToken){var U=this.content(this.nextToken);if(U==="|"){this.position++;return}}var tt=this.currToken;this.newNode(new p.default({value:this.content(),source:H(tt),sourceIndex:tt[g.FIELDS.START_POS]})),this.position++},et.parentheses=function(){var U=this.current.last,tt=1;if(this.position++,U&&U.type===w.PSEUDO){var it=new n.default({source:{start:I(this.tokens[this.position-1])}}),Y=this.current;for(U.append(it),this.current=it;this.position<this.tokens.length&&tt;)this.currToken[g.FIELDS.TYPE]===v.openParenthesis&&tt++,this.currToken[g.FIELDS.TYPE]===v.closeParenthesis&&tt--,tt?this.parse():(this.current.source.end=z(this.currToken),this.current.parent.source.end=z(this.currToken),this.position++);this.current=Y}else{for(var ot=this.currToken,pt="(",mt;this.position<this.tokens.length&&tt;)this.currToken[g.FIELDS.TYPE]===v.openParenthesis&&tt++,this.currToken[g.FIELDS.TYPE]===v.closeParenthesis&&tt--,mt=this.currToken,pt+=this.parseParenthesisToken(this.currToken),this.position++;U?U.appendToPropertyAndEscape("value",pt,pt):this.newNode(new l.default({value:pt,source:q(ot[g.FIELDS.START_LINE],ot[g.FIELDS.START_COL],mt[g.FIELDS.END_LINE],mt[g.FIELDS.END_COL]),sourceIndex:ot[g.FIELDS.START_POS]}))}if(tt)return this.expected("closing parenthesis",this.currToken[g.FIELDS.START_POS])},et.pseudo=function(){for(var U=this,tt="",it=this.currToken;this.currToken&&this.currToken[g.FIELDS.TYPE]===v.colon;)tt+=this.content(),this.position++;if(!this.currToken)return this.expected(["pseudo-class","pseudo-element"],this.position-1);if(this.currToken[g.FIELDS.TYPE]===v.word)this.splitWord(!1,function(Y,ot){tt+=Y,U.newNode(new c.default({value:tt,source:j(it,U.currToken),sourceIndex:it[g.FIELDS.START_POS]})),ot>1&&U.nextToken&&U.nextToken[g.FIELDS.TYPE]===v.openParenthesis&&U.error("Misplaced parenthesis.",{index:U.nextToken[g.FIELDS.START_POS]})});else return this.expected(["pseudo-class","pseudo-element"],this.currToken[g.FIELDS.START_POS])},et.space=function(){var U=this.content();this.position===0||this.prevToken[g.FIELDS.TYPE]===v.comma||this.prevToken[g.FIELDS.TYPE]===v.openParenthesis||this.current.nodes.every(function(tt){return tt.type==="comment"})?(this.spaces=this.optionalSpace(U),this.position++):this.position===this.tokens.length-1||this.nextToken[g.FIELDS.TYPE]===v.comma||this.nextToken[g.FIELDS.TYPE]===v.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(U),this.position++):this.combinator()},et.string=function(){var U=this.currToken;this.newNode(new l.default({value:this.content(),source:H(U),sourceIndex:U[g.FIELDS.START_POS]})),this.position++},et.universal=function(U){var tt=this.nextToken;if(tt&&this.content(tt)==="|")return this.position++,this.namespace();var it=this.currToken;this.newNode(new d.default({value:this.content(),source:H(it),sourceIndex:it[g.FIELDS.START_POS]}),U),this.position++},et.splitWord=function(U,tt){for(var it=this,Y=this.nextToken,ot=this.content();Y&&~[v.dollar,v.caret,v.equals,v.word].indexOf(Y[g.FIELDS.TYPE]);){this.position++;var pt=this.content();if(ot+=pt,pt.lastIndexOf("\\")===pt.length-1){var mt=this.nextToken;mt&&mt[g.FIELDS.TYPE]===v.space&&(ot+=this.requiredSpace(this.content(mt)),this.position++)}Y=this.nextToken}var lt=B(ot,".").filter(function($t){var fe=ot[$t-1]==="\\",X=/^\d+\.\d+%$/.test(ot);return!fe&&!X}),xt=B(ot,"#").filter(function($t){return ot[$t-1]!=="\\"}),gt=B(ot,"#{");gt.length&&(xt=xt.filter(function($t){return!~gt.indexOf($t)}));var ct=(0,m.default)(K([0].concat(lt,xt)));ct.forEach(function($t,fe){var X=ct[fe+1]||ot.length,ue=ot.slice($t,X);if(fe===0&&tt)return tt.call(it,ue,ct.length);var pe,Ae=it.currToken,Ut=Ae[g.FIELDS.START_POS]+ct[fe],Ue=q(Ae[1],Ae[2]+$t,Ae[3],Ae[2]+(X-1));if(~lt.indexOf($t)){var Ge={value:ue.slice(1),source:Ue,sourceIndex:Ut};pe=new s.default($(Ge,"value"))}else if(~xt.indexOf($t)){var cn={value:ue.slice(1),source:Ue,sourceIndex:Ut};pe=new o.default($(cn,"value"))}else{var ye={value:ue,source:Ue,sourceIndex:Ut};$(ye,"value"),pe=new a.default(ye)}it.newNode(pe,U),U=null}),this.position++},et.word=function(U){var tt=this.nextToken;return tt&&this.content(tt)==="|"?(this.position++,this.namespace()):this.splitWord(U)},et.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.current._inferEndPosition(),this.root},et.parse=function(U){switch(this.currToken[g.FIELDS.TYPE]){case v.space:this.space();break;case v.comment:this.comment();break;case v.openParenthesis:this.parentheses();break;case v.closeParenthesis:U&&this.missingParenthesis();break;case v.openSquare:this.attribute();break;case v.dollar:case v.caret:case v.equals:case v.word:this.word();break;case v.colon:this.pseudo();break;case v.comma:this.comma();break;case v.asterisk:this.universal();break;case v.ampersand:this.nesting();break;case v.slash:case v.combinator:this.combinator();break;case v.str:this.string();break;case v.closeSquare:this.missingSquareBracket();case v.semicolon:this.missingBackslash();default:this.unexpected()}},et.expected=function(U,tt,it){if(Array.isArray(U)){var Y=U.pop();U=U.join(", ")+" or "+Y}var ot=/^[aeiou]/.test(U[0])?"an":"a";return it?this.error("Expected "+ot+" "+U+', found "'+it+'" instead.',{index:tt}):this.error("Expected "+ot+" "+U+".",{index:tt})},et.requiredSpace=function(U){return this.options.lossy?" ":U},et.optionalSpace=function(U){return this.options.lossy?"":U},et.lossySpace=function(U,tt){return this.options.lossy?tt?" ":"":U},et.parseParenthesisToken=function(U){var tt=this.content(U);return U[g.FIELDS.TYPE]===v.space?this.requiredSpace(tt):tt},et.newNode=function(U,tt){return tt&&(/^ +$/.test(tt)&&(this.options.lossy||(this.spaces=(this.spaces||"")+tt),tt=!0),U.namespace=tt,$(U,"namespace")),this.spaces&&(U.spaces.before=this.spaces,this.spaces=""),this.current.append(U)},et.content=function(U){return U===void 0&&(U=this.currToken),this.css.slice(U[g.FIELDS.START_POS],U[g.FIELDS.END_POS])},et.locateNextMeaningfulToken=function(U){U===void 0&&(U=this.position+1);for(var tt=U;tt<this.tokens.length;)if(L[this.tokens[tt][g.FIELDS.TYPE]]){tt++;continue}else return tt;return-1},A(J,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),J}();e.default=N,i.exports=e.default})(yM,yM.exports);var Plt=yM.exports;
91(function(i,e){e.__esModule=!0,e.default=void 0;var t=n(Plt);function n(r){return r&&r.__esModule?r:{default:r}}var s=function(){function r(a,l){this.func=a||function(){},this.funcRes=null,this.options=l}var o=r.prototype;return o._shouldUpdateSelector=function(l,c){c===void 0&&(c={});var u=Object.assign({},this.options,c);return u.updateSelector===!1?!1:typeof l!="string"},o._isLossy=function(l){l===void 0&&(l={});var c=Object.assign({},this.options,l);return c.lossless===!1},o._root=function(l,c){c===void 0&&(c={});var u=new t.default(l,this._parseOptions(c));return u.root},o._parseOptions=function(l){return{lossy:this._isLossy(l)}},o._run=function(l,c){var u=this;return c===void 0&&(c={}),new Promise(function(d,h){try{var p=u._root(l,c);Promise.resolve(u.func(p)).then(function(m){var g=void 0;return u._shouldUpdateSelector(l,c)&&(g=p.toString(),l.selector=g),{transform:m,root:p,string:g}}).then(d,h)}catch(m){h(m);return}})},o._runSync=function(l,c){c===void 0&&(c={});var u=this._root(l,c),d=this.func(u);if(d&&typeof d.then=="function")throw new Error("Selector processor returned a promise to a synchronous call.");var h=void 0;return c.updateSelector&&typeof l!="string"&&(h=u.toString(),l.selector=h),{transform:d,root:u,string:h}},o.ast=function(l,c){return this._run(l,c).then(function(u){return u.root})},o.astSync=function(l,c){return this._runSync(l,c).root},o.transform=function(l,c){return this._run(l,c).then(function(u){return u.transform})},o.transformSync=function(l,c){return this._runSync(l,c).transform},o.process=function(l,c){return this._run(l,c).then(function(u){return u.string||u.root.toString()})},o.processSync=function(l,c){var u=this._runSync(l,c);return u.string||u.root.toString()},r}();e.default=s,i.exports=e.default})(bM,bM.exports);var Clt=bM.exports,Wj={},Ee={};Ee.__esModule=!0;Ee.universal=Ee.tag=Ee.string=Ee.selector=Ee.root=Ee.pseudo=Ee.nesting=Ee.id=Ee.comment=Ee.combinator=Ee.className=Ee.attribute=void 0;var Alt=Hs(rL),Mlt=Hs(Lj),Olt=Hs(zj),$lt=Hs(Ij),Llt=Hs(Dj),Ilt=Hs(Vj),Dlt=Hs(Nj),Rlt=Hs(Oj),Flt=Hs($j),Nlt=Hs(Fj),Blt=Hs(Rj),zlt=Hs(Bj);function Hs(i){return i&&i.__esModule?i:{default:i}}var Vlt=function(e){return new Alt.default(e)};Ee.attribute=Vlt;var qlt=function(e){return new Mlt.default(e)};Ee.className=qlt;var Hlt=function(e){return new Olt.default(e)};Ee.combinator=Hlt;var Wlt=function(e){return new $lt.default(e)};Ee.comment=Wlt;
91var jlt=function(e){return new Llt.default(e)};Ee.id=jlt;var Ult=function(e){return new Ilt.default(e)};Ee.nesting=Ult;var Glt=function(e){return new Dlt.default(e)};Ee.pseudo=Glt;var Ylt=function(e){return new Rlt.default(e)};Ee.root=Ylt;var Klt=function(e){return new Flt.default(e)};Ee.selector=Klt;var Xlt=function(e){return new Nlt.default(e)};Ee.string=Xlt;var Qlt=function(e){return new Blt.default(e)};Ee.tag=Qlt;var Jlt=function(e){return new zlt.default(e)};Ee.universal=Jlt;var re={};re.__esModule=!0;re.isNode=oL;re.isPseudoElement=Gj;re.isPseudoClass=cct;re.isContainer=uct;re.isNamespace=dct;re.isUniversal=re.isTag=re.isString=re.isSelector=re.isRoot=re.isPseudo=re.isNesting=re.isIdentifier=re.isComment=re.isCombinator=re.isClassName=re.isAttribute=void 0;var He=Nt,On,Zlt=(On={},On[He.ATTRIBUTE]=!0,On[He.CLASS]=!0,On[He.COMBINATOR]=!0,On[He.COMMENT]=!0,On[He.ID]=!0,On[He.NESTING]=!0,On[He.PSEUDO]=!0,On[He.ROOT]=!0,On[He.SELECTOR]=!0,On[He.STRING]=!0,On[He.TAG]=!0,On[He.UNIVERSAL]=!0,On);function oL(i){return typeof i=="object"&&Zlt[i.type]}function Ws(i,e){return oL(e)&&e.type===i}var jj=Ws.bind(null,He.ATTRIBUTE);re.isAttribute=jj;var tct=Ws.bind(null,He.CLASS);re.isClassName=tct;var ect=Ws.bind(null,He.COMBINATOR);re.isCombinator=ect;var ict=Ws.bind(null,He.COMMENT);re.isComment=ict;var nct=Ws.bind(null,He.ID);re.isIdentifier=nct;var sct=Ws.bind(null,He.NESTING);re.isNesting=sct;var aL=Ws.bind(null,He.PSEUDO);re.isPseudo=aL;var rct=Ws.bind(null,He.ROOT);re.isRoot=rct;var oct=Ws.bind(null,He.SELECTOR);re.isSelector=oct;var act=Ws.bind(null,He.STRING);re.isString=act;var Uj=Ws.bind(null,He.TAG);re.isTag=Uj;var lct=Ws.bind(null,He.UNIVERSAL);re.isUniversal=lct;function Gj(i){return aL(i)&&i.value&&(i.value.startsWith("::")||i.value.toLowerCase()===":before"||i.value.toLowerCase()===":after"||i.value.toLowerCase()===":first-letter"||i.value.toLowerCase()===":first-line")}function cct(i){return aL(i)&&!Gj(i)}function uct(i){return!!(oL(i)&&i.walk)}function dct(i){return jj(i)||Uj(i)}(function(i){i.__esModule=!0;var e=Nt;Object.keys(e).forEach(function(s){s==="default"||s==="__esModule"||s in i&&i[s]===e[s]||(i[s]=e[s])});var t=Ee;Object.keys(t).forEach(function(s){s==="default"||s==="__esModule"||s in i&&i[s]===t[s]||(i[s]=t[s])});var n=re;Object.keys(n).forEach(function(s){s==="default"||s==="__esModule"||s in i&&i[s]===n[s]||(i[s]=n[s])})})(Wj);
91(function(i,e){e.__esModule=!0,e.default=void 0;var t=o(Clt),n=r(Wj);function s(){if(typeof WeakMap!="function")return null;var c=new WeakMap;return s=function(){return c},c}function r(c){if(c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var u=s();if(u&&u.has(c))return u.get(c);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in c)if(Object.prototype.hasOwnProperty.call(c,p)){var m=h?Object.getOwnPropertyDescriptor(c,p):null;m&&(m.get||m.set)?Object.defineProperty(d,p,m):d[p]=c[p]}return d.default=c,u&&u.set(c,d),d}function o(c){return c&&c.__esModule?c:{default:c}}var a=function(u){return new t.default(u)};Object.assign(a,n),delete a.__esModule;var l=a;e.default=l,i.exports=e.default})(mM,mM.exports);var hct=mM.exports;const fct=xat,Yj=hct,pct=Yj();var gct={isUsableColor(i,e){return fct(e)&&i!=="gray"&&e[600]},commonTrailingPseudos(i){let e=pct.astSync(i),t=[];for(let[s,r]of e.nodes.entries())for(const[o,a]of[...r.nodes].reverse().entries()){if(a.type!=="pseudo"||!a.value.startsWith("::"))break;t[o]=t[o]||[],t[o][s]=a}let n=Yj.selector();for(const s of t){if(!s)continue;if(new Set(s.map(o=>o.value)).size>1)break;s.forEach(o=>o.remove()),n.prepend(s[0])}return n.nodes.length?[n.toString(),e.toString()]:[null,i]}};const mct=tL,bct=aat,yct=uat,vct=dat,{commonTrailingPseudos:wct}=gct,WR={};function NM(i,{className:e,modifier:t,prefix:n}){let s=n(`.not-${e}`).slice(1),r=i.startsWith(">")?`${t==="DEFAULT"?`.${e}`:`.${e}-${t}`} `:"",[o,a]=wct(i);return o?`:where(${r}${a}):not(:where([class~="${s}"],[class~="${s}"] *))${o}`:`:where(${r}${i}):not(:where([class~="${s}"],[class~="${s}"] *))`}function jR(i){return typeof i=="object"&&i!==null}function _ct(i={},{target:e,className:t,modifier:n,prefix:s}){function r(o,a){return e==="legacy"?[o,a]:Array.isArray(a)?[o,a]:jR(a)?Object.values(a).some(jR)?[NM(o,{className:t,modifier:n,prefix:s}),a,Object.fromEntries(Object.entries(a).map(([c,u])=>r(c,u)))]:[NM(o,{className:t,modifier:n,prefix:s}),a]:[o,a]}return Object.fromEntries(Object.entries(bct({},...Object.keys(i).filter(o=>WR[o]).map(o=>WR[o](i[o])),...yct(i.css||{}))).map(([o,a])=>r(o,a)))}var xct=mct.withOptions(({className:i="prose",target:e="modern"}={})=>function({addVariant:t,addComponents:n,theme:s,prefix:r}){let o=s("typography"),a={className:i,prefix:r};for(let[l,...c]of[["headings","h1","h2","h3","h4","h5","h6","th"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["kbd"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"],["lead",'[class~="lead"]']]){c=c.length===0?[l]:c;let u=e==="legacy"?c.map(d=>`& ${d}`):c.join(", ");t(`${i}-${l}`,e==="legacy"?u:`& :is(${NM(u,a)})`)}n(Object.keys(o).map(l=>({[l==="DEFAULT"?`.${i}`:`.${i}-${l}`]:_ct(o[l],{target:e,className:i,modifier:l,prefix:r})})))},()=>({theme:{typography:vct}}));const Sct=lE(xct),Tct=tL,kct=["autoplay-error","autoplay","buffering","can-fullscreen","can-load-poster","can-load","can-pip","can-play","can-seek","captions","controls","ended","error","fullscreen","ios-controls","live-edge","live","loop","muted","paused","pip","playing","playsinline","preview","seeking","started","waiting"];var Ect=Tct.withOptions(function(i){const e=(i==null?void 0:i.selector)??(i!=null&&i.webComponents?"media-player":"div"),t=(i==null?void 0:i.prefix)??(i==null?void 0:i.mediaPrefix),n=t?`${t}-`:"media-";return function({addVariant:s}){function r(l,c=l,u=""){s(`${n}${l}`,`${e}[data-${c}]${u} &`),s(`not-${n}${l}`,`${e}:not([data-${c}]${u}) &`)}for(const l of["audio","video","unknown"])r(l,`media-type="${l}"`),r(`view-${l}`,`view-type="${l}"`);const o={unknown:"unknown",demand:"on-demand",live:"live",dvr:"live:dvr",ll:"ll-live","ll-dvr":"ll-live:dvr"};for(const[l,c]of Object.entries(o))r(`stream-${l}`,`stream-type="${c}"`);for(const l of["connected","connecting","disconnected"])r(`remote-${l}`,`remote-state="${l}"`);const a={airplay:"air","google-cast":"cast"};for(const l of["airplay","can-airplay"]){const c=l.replace("airplay",a.airplay);r(c,l)}for(const l of["google-cast","can-google-cast"]){const c=l.replace("google-cast",a["google-cast"]);r(c,l)}for(const l of["airplay","google-cast"])for(const c of["connecting","disconnected"])r(`${a[l]}-${c}`,`remote-type="${l}"`,`[data-remote-state="${c}"]`);for(const l of kct)r(l)}});const Pct=lE(Ect),Cct=Pct({prefix:"media",webComponents:!0}),Act={content:["./components/**/*.twig","./components/**/*.html.twig","./components/**/*.js","./templates/**/*.twig","./templates/**/*.html.twig","./src/**/*.js","./src/img/*.svg"],theme:{container:{center:!0,padding:{DEFAULT:"1.5rem",sm:"2rem"}},fontFamily:{primary:["ITCAvantGarde","sans-serif"],secondary:["Verlag","sans-serif"]},extend:{screens:{"3xl":"1920px"},colors:{current:"currentColor",transparent:"transparent",blue:{DEFAULT:"#080099",50:"#EBEBF3",100:"#CECCEB",200:"#9C99D6",300:"#6B66C2",400:"#3933AD",500:"#080099",600:"#06007A",700:"#05005C","700-50":"rgba(5, 0, 92, 0.7)","700-70":"rgba(5, 0, 92, 0.7)",800:"#03003D",900:"#02001F"},gray:{DEFAULT:"#647495",50:"#F8FAFF",100:"#F1F5FF",200:"#E2E8FA",300:"#94A3C2",400:"#94A3C2",500:"#647495",600:"#475573",700:"#334169",800:"#1E2950",900:"#0F1734"},red:{DEFAULT:"#D10513",50:"#FFEBEC",100:"#FECDD0",200:"#FC9199",300:"#FB5561",400:"#FA1A29",500:"#D10513",600:"#A9040F",700:"#81030C",800:"#590208",900:"#320105",950:"#1E0103"}},fontSize:{xss:"0.625rem"},maxWidth:{"screen-sm":"40rem","screen-md":"48rem","screen-lg":"64rem","screen-xl":"80rem","screen-2xl":"96rem"},transitionTimingFunction:{out:"cubic-bezier(0.7, 0, 0, 1)"},typography:({theme:i})=>({DEFAULT:{css:{"--tw-prose-body":i("colors.blue.700-70"),"--tw-prose-bold":i("colors.blue.700-70"),"--tw-prose-headings":i("colors.blue.500"),"--tw-prose-counters":i("colors.blue.500"),"--tw-prose-bullets":i("colors.blue.500"),"--tw-prose-hr":i("colors.blue.500"),"--tw-prose-links":i("colors.blue.700-70"),h2:{fontFamily:"Verlag"},h3:{fontFamily:"Verlag"},h4:{fontFamily:"Verlag"},a:{textUnderlineOffset:"4px","&:hover":{textDecoration:"none"}}}}})}},plugins:[Sct,oat,Cct]},Mct={screens:Got(Act).theme.screens,matches:null,init(){this.match(),window.addEventListener("resize",i=>{this.match()})},match(){this.matches=Object.entries(this.screens).reduce((i,[e,t])=>{let n=typeof t=="string"?`(min-width: ${t})`:`(max-width: ${t.max})`;return i[e]=window.matchMedia(n).matches,i},{})}};class Oct{constructor(e={}){if(this.enabled=e.enabled!==void 0?e.enabled:!1,this.needConsent=e.needConsent!==void 0?e.needConsent:!0,this.consentCookieName=e.consentCookieName!==void 0?e.consentCookieName:"analytics",this.url=e.url,this.siteId=e.siteId||1,this.url===void 0)throw new Error("Matomo: url is required");this.needConsent?document.addEventListener("cc",t=>{t.detail.name==this.consentCookieName&&(t.detail.enabled?(this.enabled=!0,this.init()):(this.enabled=!1,this.remove()))}):this.init()}init(){var e=window._paq=window._paq||[];e.push(["trackPageView"]),e.push(["enableLinkTracking"]),(()=>{var t=this.url;e.push(["setTrackerUrl",t+"matomo.php"]),e.push(["setSiteId",this.siteId]);
91var n=document,s=n.createElement("script"),r=n.getElementsByTagName("script")[0];s.type="text/javascript",s.async=!0,s.src=t+"matomo.js",r.parentNode.insertBefore(s,r)})()}update(e,t){if(console.log(typeof _paq),typeof _paq>"u"){console.warn("Matomo: _paq is not defined");return}_paq.push(["setDocumentTitle",e.page.title]),_paq.push(["setCustomUrl",t.href]),_paq.push(["trackPageView"])}remove(){var e=window._paq=window._paq||[];e.push(["forgetConsentGiven"])}}var $ct="1.1.21";function Kj(i,e,t){return Math.max(i,Math.min(e,t))}function Lct(i,e,t){return(1-t)*i+t*e}function Ict(i,e,t,n){return Lct(i,e,1-Math.exp(-t*n))}function Dct(i,e){return(i%e+e)%e}var Rct=class{constructor(){O(this,"isRunning",!1);O(this,"value",0);O(this,"from",0);O(this,"to",0);O(this,"currentTime",0);O(this,"lerp");O(this,"duration");O(this,"easing");O(this,"onUpdate")}advance(i){var t;if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=i;const n=Kj(0,this.currentTime/this.duration,1);e=n>=1;const s=e?1:this.easing(n);this.value=this.from+(this.to-this.from)*s}else this.lerp?(this.value=Ict(this.value,this.to,this.lerp*60,i),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)):(this.value=this.to,e=!0);e&&this.stop(),(t=this.onUpdate)==null||t.call(this,this.value,e)}stop(){this.isRunning=!1}fromTo(i,e,{lerp:t,duration:n,easing:s,onStart:r,onUpdate:o}){this.from=this.value=i,this.to=e,this.lerp=t,this.duration=n,this.easing=s,this.currentTime=0,this.isRunning=!0,r==null||r(),this.onUpdate=o}};function Fct(i,e){let t;return function(...n){let s=this;clearTimeout(t),t=setTimeout(()=>{t=void 0,i.apply(s,n)},e)}}var Nct=class{constructor(i,e,{autoResize:t=!0,debounce:n=250}={}){O(this,"width",0);O(this,"height",0);O(this,"scrollHeight",0);O(this,"scrollWidth",0);O(this,"debouncedResize");O(this,"wrapperResizeObserver");O(this,"contentResizeObserver");O(this,"resize",()=>{this.onWrapperResize(),this.onContentResize()});O(this,"onWrapperResize",()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)});O(this,"onContentResize",()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)});this.wrapper=i,this.content=e,t&&(this.debouncedResize=Fct(this.resize,n),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var i,e;(i=this.wrapperResizeObserver)==null||i.disconnect(),(e=this.contentResizeObserver)==null||e.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},Xj=class{constructor(){O(this,"events",{})}emit(i,...e){var n;let t=this.events[i]||[];for(let s=0,r=t.length;s<r;s++)(n=t[s])==null||n.call(t,...e)}on(i,e){var t;return(t=this.events[i])!=null&&t.push(e)||(this.events[i]=[e]),()=>{var n;this.events[i]=(n=this.events[i])==null?void 0:n.filter(s=>e!==s)}}off(i,e){var t;this.events[i]=(t=this.events[i])==null?void 0:t.filter(n=>e!==n)}destroy(){this.events={}}},UR=100/6,ba={passive:!1},Bct=class{constructor(i,e={wheelMultiplier:1,touchMultiplier:1}){O(this,"touchStart",{x:0,y:0});O(this,"lastDelta",{x:0,y:0});O(this,"window",{width:0,height:0});O(this,"emitter",new Xj);O(this,"onTouchStart",i=>{const{clientX:e,clientY:t}=i.targetTouches?i.targetTouches[0]:i;this.touchStart.x=e,this.touchStart.y=t,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:i})});O(this,"onTouchMove",i=>{const{clientX:e,clientY:t}=i.targetTouches?i.targetTouches[0]:i,n=-(e-this.touchStart.x)*this.options.touchMultiplier,s=-(t-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=t,this.lastDelta={x:n,y:s},this.emitter.emit("scroll",{deltaX:n,deltaY:s,event:i})});O(this,"onTouchEnd",i=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:i})});O(this,"onWheel",i=>{let{deltaX:e,deltaY:t,deltaMode:n}=i;const s=n===1?UR:n===2?this.window.width:1,r=n===1?UR:n===2?this.window.height:1;e*=s,t*=r,e*=this.options.wheelMultiplier,t*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:t,event:i})});O(this,"onWindowResize",()=>{this.window={width:window.innerWidth,height:window.innerHeight}});this.element=i,this.options=e,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,ba),this.element.addEventListener("touchstart",this.onTouchStart,ba),this.element.addEventListener("touchmove",this.onTouchMove,ba),this.element.addEventListener("touchend",this.onTouchEnd,ba)}on(i,e){return this.emitter.on(i,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,ba),this.element.removeEventListener("touchstart",this.onTouchStart,ba),this.element.removeEventListener("touchmove",this.onTouchMove,ba),this.element.removeEventListener("touchend",this.onTouchEnd,ba)}},zct=class{constructor({wrapper:i=window,content:e=document.documentElement,eventsTarget:t=i,smoothWheel:n=!0,syncTouch:s=!1,syncTouchLerp:r=.075,touchInertiaMultiplier:o=35,duration:a,easing:l=T=>
91Math.min(1,1.001-Math.pow(2,-10*T)),lerp:c=.1,infinite:u=!1,orientation:d="vertical",gestureOrientation:h="vertical",touchMultiplier:p=1,wheelMultiplier:m=1,autoResize:g=!0,prevent:v,virtualScroll:w,overscroll:_=!0,autoRaf:x=!1,anchors:k=!1,__experimental__naiveDimensions:S=!1}={}){O(this,"_isScrolling",!1);O(this,"_isStopped",!1);O(this,"_isLocked",!1);O(this,"_preventNextNativeScrollEvent",!1);O(this,"_resetVelocityTimeout",null);O(this,"__rafID",null);O(this,"isTouching");O(this,"time",0);O(this,"userData",{});O(this,"lastVelocity",0);O(this,"velocity",0);O(this,"direction",0);O(this,"options");O(this,"targetScroll");O(this,"animatedScroll");O(this,"animate",new Rct);O(this,"emitter",new Xj);O(this,"dimensions");O(this,"virtualScroll");O(this,"onScrollEnd",i=>{i instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&i.stopPropagation()});O(this,"dispatchScrollendEvent",()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))});O(this,"onClick",i=>{const t=i.composedPath().find(n=>{var s;return n instanceof HTMLAnchorElement&&((s=n.getAttribute("href"))==null?void 0:s.startsWith("#"))});if(t){const n=t.getAttribute("href");if(n){const s=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0;this.scrollTo(n,s)}}});O(this,"onPointerDown",i=>{i.button===1&&this.reset()});O(this,"onVirtualScroll",i=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(i)===!1)return;const{deltaX:e,deltaY:t,event:n}=i;if(this.emitter.emit("virtual-scroll",{deltaX:e,deltaY:t,event:n}),n.ctrlKey||n.lenisStopPropagation)return;const s=n.type.includes("touch"),r=n.type.includes("wheel");this.isTouching=n.type==="touchstart"||n.type==="touchmove";const o=e===0&&t===0;if(this.options.syncTouch&&s&&n.type==="touchstart"&&o&&!this.isStopped&&!this.isLocked){this.reset();return}const l=this.options.gestureOrientation==="vertical"&&t===0||this.options.gestureOrientation==="horizontal"&&e===0;if(o||l)return;let c=n.composedPath();c=c.slice(0,c.indexOf(this.rootElement));const u=this.options.prevent;if(c.find(v=>{var w,_,x;return v instanceof HTMLElement&&(typeof u=="function"&&(u==null?void 0:u(v))||((w=v.hasAttribute)==null?void 0:w.call(v,"data-lenis-prevent"))||s&&((_=v.hasAttribute)==null?void 0:_.call(v,"data-lenis-prevent-touch"))||r&&((x=v.hasAttribute)==null?void 0:x.call(v,"data-lenis-prevent-wheel")))}))return;if(this.isStopped||this.isLocked){n.preventDefault();return}if(!(this.options.syncTouch&&s||this.options.smoothWheel&&r)){this.isScrolling="native",this.animate.stop(),n.lenisStopPropagation=!0;return}let h=t;this.options.gestureOrientation==="both"?h=Math.abs(t)>Math.abs(e)?t:e:this.options.gestureOrientation==="horizontal"&&(h=e),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&t>0||this.animatedScroll===this.limit&&t<0))&&(n.lenisStopPropagation=!0),n.preventDefault();const p=s&&this.options.syncTouch,g=s&&n.type==="touchend"&&Math.abs(h)>5;g&&(h=this.velocity*this.options.touchInertiaMultiplier),this.scrollTo(this.targetScroll+h,{programmatic:!1,...p?{lerp:g?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})});O(this,"onNativeScroll",()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){const i=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-i,this.direction=Math.sign(this.animatedScroll-i),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}});O(this,"raf",i=>{const e=i-(this.time||i);this.time=i,this.animate.advance(e*.001),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))});window.lenisVersion=$ct,(!i||i===document.documentElement)&&(i=window),this.options={wrapper:i,content:e,eventsTarget:t,smoothWheel:n,syncTouch:s,syncTouchLerp:r,touchInertiaMultiplier:o,duration:a,easing:l,lerp:c,infinite:u,gestureOrientation:h,orientation:d,touchMultiplier:p,wheelMultiplier:m,autoResize:g,prevent:v,virtualScroll:w,overscroll:_,autoRaf:x,anchors:k,__experimental__naiveDimensions:S},this.dimensions=new Nct(i,e,{autoResize:g}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=ne
91w Bct(t,{touchMultiplier:p,wheelMultiplier:m}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),this.options.anchors&&this.options.wrapper===window&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this.__rafID&&cancelAnimationFrame(this.__rafID)}on(i,e){return this.emitter.on(i,e)}off(i,e){return this.emitter.off(i,e)}setScroll(i){this.isHorizontal?this.options.wrapper.scrollTo({left:i,behavior:"instant"}):this.options.wrapper.scrollTo({top:i,behavior:"instant"})}resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){this.isStopped&&(this.reset(),this.isStopped=!1)}stop(){this.isStopped||(this.reset(),this.isStopped=!0)}scrollTo(i,{offset:e=0,immediate:t=!1,lock:n=!1,duration:s=this.options.duration,easing:r=this.options.easing,lerp:o=this.options.lerp,onStart:a,onComplete:l,force:c=!1,programmatic:u=!0,userData:d}={}){if(!((this.isStopped||this.isLocked)&&!c)){if(typeof i=="string"&&["top","left","start"].includes(i))i=0;else if(typeof i=="string"&&["bottom","right","end"].includes(i))i=this.limit;else{let h;if(typeof i=="string"?h=document.querySelector(i):i instanceof HTMLElement&&(i!=null&&i.nodeType)&&(h=i),h){if(this.options.wrapper!==window){const m=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?m.left:m.top}const p=h.getBoundingClientRect();i=(this.isHorizontal?p.left:p.top)+this.animatedScroll}}if(typeof i=="number"){if(i+=e,i=Math.round(i),this.options.infinite?u&&(this.targetScroll=this.animatedScroll=this.scroll):i=Kj(0,i,this.limit),i===this.targetScroll){a==null||a(this),l==null||l(this);return}if(this.userData=d??{},t){this.animatedScroll=this.targetScroll=i,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),l==null||l(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}u||(this.targetScroll=i),this.animate.fromTo(this.animatedScroll,i,{duration:s,easing:r,lerp:o,onStart:()=>{n&&(this.isLocked=!0),this.isScrolling="smooth",a==null||a(this)},onUpdate:(h,p)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=h-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=h,this.setScroll(this.scroll),u&&(this.targetScroll=h),p||this.emit(),p&&(this.reset(),this.emit(),l==null||l(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){const i=this.options.wrapper;return this.isHorizontal?i.scrollX??i.scrollLeft:i.scrollY??i.scrollTop}get scroll(){return this.options.infinite?Dct(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(i){this._isScrolling!==i&&(this._isScrolling=i,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(i){this._isStopped!==i&&(this._isStopped=i,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(i){this._isLocked!==i&&(this._isLocked=i,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let i="lenis";return this.isStopped&&(i+=" lenis-stopped"),this.isLocked&&(i+=" lenis-locked"),this.isScrolling&&(i+=" lenis-scrolling"),this.isScrolling==="smooth"&&(i+=" lenis-smooth"),i}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};function Vct(){window.lenis=new zct;function i(e){window.lenis.raf(e),requestAnimationFrame(i)}requestAnimationFrame(i)}Vct();function qct(){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var i=[` 92 %c made by %cexplose%c https://explose.com/`,"font-family:Arial; font-size:15px;
92 color: #fff; background: #000; padding:20px 0 20px 20px","font-family:Arial; font-weight:bold; font-size:15px; color: #fff; background: #000; padding:20px 0 20px 0"," font-size:10px; color: #fff; background: #000; padding:25px 20px 21px"];window.console.log.apply(console,i)}else window.console&&window.console.log("Made by Explose - https://explose.com")}qct();class Hct{constructor(){}update(e){const t=document.querySelectorAll("[data-region]"),n=e.page.querySelectorAll("[data-region]");t.forEach(s=>{const r=Array.from(n).find(o=>o.dataset.region===s.dataset.region);r!==void 0&&(window.Alpine.morph(s,r),window.H.attach(r.querySelectorAll("a:not([data-router-disabled]")))})}}class Wct{constructor(e={}){this.routes=e.routes!==void 0?e.routes:[],this.update()}update(){let e=[];this.routes.forEach(t=>{const n=document.querySelectorAll(`a[href^="${t}"]`);n.length>0&&e.push(Array.from(n))}),e=e.flat(),window.H.detach(e)}}class jct{constructor(){document.addEventListener("submit",e=>this.onSubmit(e)),document.addEventListener("click",e=>this.onClick(e))}getUrl(e){const t=new URL(e.getAttribute("action")||window.location.pathname,window.location.origin),n=new URLSearchParams;for(const[s,r]of new FormData(e))typeof r=="string"&&r.trim()!==""&&n.append(s,r);return t.search=n.toString(),t.href}navigate(e){const t=this.getUrl(e);window.H&&!window.userLoggedIn?window.H.redirect(t,"facets"):window.location.href=t}onSubmit(e){const t=e.target;!(t instanceof HTMLFormElement)||!t.hasAttribute("data-facets-form")||(e.preventDefault(),this.navigate(t))}onClick(e){const t=e.target.closest("[data-facets-remove], [data-facets-reset]");if(!t)return;const n=t.closest("[data-exposed-form-id]"),s=n&&document.querySelector(`form[id^="${n.dataset.exposedFormId}"][data-facets-form]`);if(s){if(e.preventDefault(),t.hasAttribute("data-facets-reset"))s.querySelectorAll('input[type="checkbox"]').forEach(r=>{r.checked=!1}),s.querySelectorAll('input[type="text"], input[type="search"]').forEach(r=>{r.value=""});else{const[r,...o]=t.dataset.facetsRemove.split(":"),a=o.join(":");s.querySelectorAll("input").forEach(l=>{l.type==="checkbox"&&l.name===`${r}[${a}]`?l.checked=!1:l.type!=="checkbox"&&l.name===r&&(l.value="")})}this.navigate(s)}}}window.userLoggedIn=document.body.classList.contains("user-logged-in");window.addEventListener("load",()=>{const i=new Oct({enabled:!1,needConsent:!0,consentCookieName:"analytics",url:"https://matomo.luxdev.lu/"}),e=new jot({containers:["#header","#footer"]});if(window.H=new Fk.Core({renderers:{node:yG},transitions:{default:XY,contextual:{facets:QY}}}),window.H.fetch=async function(){const s=await fetch(this.location.href,{mode:"same-origin",method:"GET",headers:{"X-Requested-With":"Highway"},credentials:"same-origin"}),r=s.status>=200&&s.status<300,o=r?await s.text():"";return!r||s.redirected||o.indexOf("data-router-view")===-1?(window.location.href=this.location.href,new Promise(()=>{})):o},document.addEventListener("alpine:init",()=>{yi.store("breakpoint",Mct),yi.store("header",$et),yi.store("cookieConsent",Met),yi.data("swiper",_X),yi.data("video",PQ),yi.data("audio",Pet),yi.data("accordion",Cet),yi.data("search",Oet),yi.data("stackedCards",Let),yi.data("chart",Vot),yi.data("counter",qot),yi.data("share",Hot),yi.data("quicklinks",Wot)}),yi.plugin(iG),yi.plugin(sG),yi.plugin(uG),yi.plugin(gG),yi.start(),window.Alpine=yi,window.userLoggedIn){const s=document.querySelectorAll("a");window.H.detach(s)}const t=new Wct({routes:[]});window.routerDisabled=t;const n=new Hct;new jct,window.H.on("NAVIGATE_OUT",({from:s})=>{window.Alpine&&window.Alpine.store("header")&&(window.Alpine.store("header").closePanel(),window.Alpine.store("header").closeMenu(),window.Alpine.store("header").closeSearch())}),window.H.on("NAVIGATE_IN",({to:s})=>{window.userLoggedIn||(document.body.classList=s.page.body.className),window.Alpine&&window.Alpine.store("header")&&(window.Alpine.store("header").activePanel=null)}),window.H.on("NAVIGATE_END",({to:s})=>{window.H.cache.clear(),n.update(s),e.update(),i.update(s,location),window.routerDisabled&&window.routerDisabled.update(),requestAnimationFrame(()=>{console.log("NAVIGATE_END"),Drupal.attachBehaviors(document,drupalSettings);const r=document.getElementById("webform-submission-contact-node-19-add-form");
92r&&r.addEventListener("keypress",function(o){if(o.key==="Enter"&&o.target.tagName!=="INPUT")return o.preventDefault(),!1})})})});export{lut as A,rut as B,D3 as C,Pe as D,Ce as E,q0 as F,iut as G,WZ as H,sut as I,Ot as J,oy as K,se as L,FC as M,en as N,RQ as O,FQ as P,Xs as Q,cut as R,FJ as S,uv as T,nut as U,Fp as V,Yn as _,iB as a,Mt as b,nB as c,nt as d,G as e,Gt as f,wJ as g,cr as h,ZO as i,iP as j,uut as k,Ni as l,ia as m,M3 as n,CJ as o,H0 as p,SJ as q,xJ as r,Vn as s,Fs as t,aut as u,out as v,TJ as w,jt as x,av as y,ft 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.