PageSourceSearch

https://www.stage-entertainment.de/sites/default/files/js/js_wwJ_q…MUqCTek2jvA69t98veswBqCZ7tt3_LVwQPPQPfHcEcw

js stage-entertainment.de collected 2026-10-02 03:29:31 UTC 168,591 bytes, 14 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2(function(Drupal,cookies){'use strict';Drupal.behaviors.stage_core_show_tracking={attach:function(context,settings){var getQuery=function(){var query={};var queryString=window.location.search;if(typeof queryString!=='undefined'){var queryParams=queryString.substring(1).split('&');for(var i=0;i<queryParams.length;i++){var queryKeyValue=queryParams[i].split('=');query[queryKeyValue[0]]=(typeof queryKeyValue[1]!=='undefined')?queryKeyValue[1]:'';}}return query;};var query=getQuery();if(typeof query.tracking!=='undefined')cookies.set('referer_info',query.tracking,{path:'/',domain:window.location.hostname});}};})(Drupal,window.Cookies);;
3(function(){"use strict";window.se=window.se||{},window.se.behaviors=window.se.behaviors||{},window.se.behaviors.buttonResponsive=function(i){const d=i.querySelectorAll(".button span[data-title-mobile]"),t=window.matchMedia("(min-width: 1224px)");function s(a){window.innerWidth>=1224?a.textContent=a.getAttribute("data-title"):a.textContent=a.getAttribute("data-title-mobile");}t.addEventListener("change",()=>{d.forEach(function(a){s(a);});}),d.forEach(function(a){s(a);});},window.se.behaviors.buttonFoldout=function(i){(i instanceof Element&&i.classList&&i.classList.contains("js-button-foldout")?[i]:i.querySelectorAll(".js-button-foldout")).forEach(function(t){if(t.hasAttribute("data-button-foldout"))return;t.setAttribute("data-button-foldout","1");let s;t.nextElementSibling?s=t.nextElementSibling:s=t.previousElementSibling,t.addEventListener("click",function(){const a=this.getAttribute("aria-expanded")==="true",e=this.parentNode.parentNode;e&&e.querySelectorAll('.js-button-foldout[aria-expanded="true"]').forEach(function(l){l.click();}),this.setAttribute("aria-expanded",a?"false":"true");const o=this.getAttribute("aria-expanded")==="true";this.dispatchEvent(new CustomEvent("se:foldoutToggle",{detail:{button:this,foldout:s,isExpanded:o},bubbles:!0}));const n=this.querySelector(".js-button__text");n.hasAttribute("data-title")&&n.hasAttribute("data-title-expanded")&&(n.textContent=this.getAttribute("aria-expanded")==="true"?n.getAttribute("data-title-expanded"):n.getAttribute("data-title")),this.getAttribute("aria-expanded")==="true"?e.classList.add("open"):e.classList.remove("open");const r=s.querySelector("a, button, input, select, textarea");r&&(this.getAttribute("disable-scroll")==="true"?r.focus({preventScroll:!0}):(r.focus(),r.scrollIntoView({behavior:"smooth",block:"start"})));}),s.querySelectorAll(".js-button-close").forEach(function(a){a.addEventListener("click",function(){t.setAttribute("aria-expanded","false"),t.parentNode.classList.remove("open"),t.hasAttribute("data-title")&&(t.querySelector("span").textContent=t.getAttribute("data-title"),t.focus());});}),document.onkeydown=function(a){let e=!1;"key" in a&&(e=a.key==="Escape"||a.key==="Esc"),e&&document.querySelectorAll('.js-button-foldout[aria-expanded="true"]').forEach(function(o){o.setAttribute("aria-expanded","false"),o.parentNode.classList.remove("open"),o.hasAttribute("data-title")&&(o.querySelector("span").textContent=o.getAttribute("data-title"),o.focus());const n=o.nextElementSibling?o.nextElementSibling:o.previousElementSibling;o.dispatchEvent(new CustomEvent("se:foldoutToggle",{detail:{button:o,foldout:n,isExpanded:!1},bubbles:!0}));});};});},window.se.behaviors.buttonDialog=function(i){(i instanceof Element&&i.classList&&i.classList.contains("js-button-dialog")?[i]:i.querySelectorAll(".js-button-dialog")).forEach(function(t){if(t.hasAttribute("data-button-dialog"))return;t.setAttribute("data-button-dialog","1");const s=t.getAttribute("data-dialog-id"),a=s?document.getElementById(s):t.nextElementSibling;if(a===null||!a.classList.contains("dialog"))return;const e=(o)=>o.querySelector(".js-button__text")||o.querySelector("span");t.addEventListener("click",function(){const o=this.getAttribute("aria-expanded")==="true";if(this.setAttribute("aria-expanded",o?"false":"true"),this.hasAttribute("data-title")&&this.hasAttribute("data-title-expanded")){const n=e(this);n&&(n.textContent=this.getAttribute("aria-expanded")==="true"?this.getAttribute("data-title-expanded"):this.getAttribute("data-title"));}if(o)a.close();else{if(this.setAttribute("aria-expanded","true"),this.hasAttribute("data-title-expanded")){const n=e(this);n&&(n.textContent=this.getAttribute("data-title-expanded"));}a.showModal(),a.dispatchEvent(new Event("open"));}}),a.addEventListener("close",(o)=>{const n=a.getAttribute("id")?document.querySelector(`[data-dialog-id="${a.getAttribute("id")}"]`):a.previousElementSibling;
3if(n&&(n.setAttribute("aria-expanded","false"),n.hasAttribute("data-title"))){const r=e(n);r&&(r.textContent=n.getAttribute("data-title"));}});});},window.se.behaviors.buttonPopover=function(i){var t;(i instanceof Element&&((t=i.classList)!=null&&t.contains("js-button-popover"))?[i]:i.querySelectorAll(".js-button-popover")).forEach((s)=>{if(s.hasAttribute("data-button-popover"))return;s.setAttribute("data-button-popover","1");const a=s.getAttribute("popovertarget"),e=a?document.getElementById(a):null;if(!e||!e.hasAttribute("popover"))return;const o=(n)=>n.querySelector(".js-button__text")||n.querySelector("span");e.addEventListener("toggle",(n)=>{const r=n.newState==="open";s.setAttribute("aria-expanded",r?"true":"false");const l=o(s);l&&(r&&s.hasAttribute("data-title-expanded")?l.textContent=s.getAttribute("data-title-expanded"):!r&&s.hasAttribute("data-title")&&(l.textContent=s.getAttribute("data-title")));});});},window.se.behaviors.buttonDestroy=function(i){(i instanceof Element&&i.classList&&i.classList.contains("js-button-destroy")?[i]:i.querySelectorAll(".js-button-destroy")).forEach(function(t){if(t.hasAttribute("data-button-destroy"))return;t.setAttribute("data-button-destroy","1");const s=t.parentElement;t.addEventListener("click",function(){s.remove();});});},window.se.behaviors.buttonShowMore=function(i){(i instanceof Element&&i.classList&&i.classList.contains("js-button-more")?[i]:i.querySelectorAll(".js-button-more")).forEach(function(t){if(t.hasAttribute("data-button-more"))return;t.setAttribute("data-button-more","1");const s=t.parentElement,a=t.getAttribute("data-selector"),e=parseInt(t.getAttribute("data-count")?t.getAttribute("data-count"):10);t.setAttribute("data-page",1),s.querySelectorAll(`${a}:nth-child(n+${e+1})`).forEach(function(n,r){n.style.display="block",n.style.position="absolute",n.style.visibility="hidden",n.style.overflow="hidden",n.style.opacity=0;}),t.addEventListener("click",function(n){n.preventDefault();const r=parseInt(t.getAttribute("data-page"))+1;t.setAttribute("data-page",r);const l=s.querySelectorAll(`${a}:nth-child(-n+${e*r})`);l.forEach(function(u,p){u.style.display=null,u.style.position=null,u.style.visibility=null,u.style.overflow=null,u.style.opacity=1;});const c=s.querySelector(`${a}:nth-child(${e*(r-1)+1})`).querySelector("a, button");c&&c.focus(),l.length===s.querySelectorAll(a).length&&t.classList.add("hidden");});});},window.se.behaviors.buttonStopMotion=function(i){(i instanceof Element&&i.classList&&i.classList.contains("js-button-stop-motion")?[i]:i.querySelectorAll(".js-button-stop-motion")).forEach(function(t){if(t.hasAttribute("data-button-motion"))return;t.setAttribute("data-button-motion","1"),t.addEventListener("click",function(){this.setAttribute("aria-expanded",this.getAttribute("aria-expanded")==="true"?"false":"true");const e=this.querySelector(".js-button__text");e.hasAttribute("data-title")&&e.hasAttribute("data-title-expanded")&&(e.textContent=this.getAttribute("aria-expanded")==="true"?e.getAttribute("data-title-expanded"):e.getAttribute("data-title")),this.getAttribute("aria-expanded")==="true"?window.dispatchEvent(new CustomEvent("stoppedMotion")):window.dispatchEvent(new CustomEvent("startedMotion")),localStorage.setItem("stoppedMotion",this.getAttribute("aria-expanded")==="true"?Date.now().toString():"0");}),window.addEventListener("stoppedMotion",()=>{t.setAttribute("aria-expanded","true");const e=t.querySelector(".js-button__text");e.hasAttribute("data-title")&&e.hasAttribute("data-title-expanded")&&(e.textContent=t.getAttribute("aria-expanded")==="true"?e.getAttribute("data-title-expanded"):e.getAttribute("data-title"));}),window.addEventListener("startedMotion",()=>{t.setAttribute("aria-expanded","false");const e=t.querySelector(".js-button__text");e.hasAttribute("data-title")&&e.hasAttribute("data-title-expanded")&&(e.textContent=t.getAttribute("aria-expanded")==="true"?e.getAttribute("data-title-expanded"):e.getAttribute("data-title"));});const s=parseInt(localStorage.getItem("stoppedMotion"));s>0&&Date.now()-s<24*60*60*1e3&&window.dispatchEvent(new CustomEvent("stoppedMotion"));});};})();;
4(function(){"use strict";window.se=window.se||{},window.se.behaviors=window.se.behaviors||{},window.se.behaviors.dialog=function(o){(o instanceof Element&&o.classList&&o.classList.contains("dialog")?[o]:o.querySelectorAll(".dialog")).forEac
4h((e)=>{if(e.hasAttribute("data-dialog"))return;e.setAttribute("data-dialog","1"),e.addEventListener("open",(t)=>{document.body.classList.add("js-dialog-open"),e.getAttribute("data-stop-video")==="true"&&document.querySelectorAll(".js-video-player, .js-video-legacy").forEach((c)=>{c.pause();}),e.querySelectorAll(".js-slider").forEach((i)=>{i._keenSliderInstance&&i._keenSliderInstance.update();});}),e.addEventListener("close",(t)=>{e.previousElementSibling&&e.previousElementSibling.focus(),document.body.classList.remove("js-dialog-open"),document.querySelectorAll(".js-video-player, .js-video-legacy").forEach((c)=>{c.pause();});const i=e.parentElement.nextElementSibling;i&&i.classList.contains("js-checkout")&&i.init();}),e.querySelectorAll(".button--close").forEach((t)=>{t.addEventListener("click",()=>{e.close();});}),e.querySelectorAll(".dialog .link").forEach((t)=>{t.addEventListener("click",(s)=>{if(t.classList.contains("link--back")&&t.closest(".header")){s.preventDefault();return;}e.close(),document.body.classList.remove("js-dialog-open");});}),e.addEventListener("click",(t)=>{const s=e.getBoundingClientRect();t.target.tagName==="BUTTON"||t.target.closest("button")||(t.clientY
4<s.top||t.clientY>s.bottom||t.clientX<s.left||t.clientX>s.right)&&e.close();});});};function r(){Array.from(document.querySelectorAll(".dialog[open]:not(.dialog__persistent)")).forEach((n)=>n.close());}let l;window.addEventListener("resize",()=>{l&&clearTimeout(l),l=setTimeout(r,100);}),window.matchMedia("(min-width: 1224px)").addEventListener("change",()=>{document.querySelectorAll(".dialog[open]:not(.dialog__persistent)").forEach((n)=>n.close());});})();;
5(function(){"use strict";function m(e,i,t){return (i=gt(i)) in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e;}function ft(e,i){if(typeof e!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var s=t.call(e,i);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.");}return (i==="string"?String:Number)(e);}function gt(e){var i=ft(e,"string");return typeof i=="symbol"?i:i+"";}function bt(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function");}function Ie(e,i){for(var t=0;t<i.length;t++){var s=i[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value" in s&&(s.writable=!0),Object.defineProperty(e,s.key,s);}}function yt(e,i,t){return i&&Ie(e.prototype,i),t&&Ie(e,t),e;}function vt(e,i,t){return i in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e;}function Oe(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);i&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable;})),t.push.apply(t,s);}return t;}function _e(e){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?Oe(Object(t),!0).forEach(function(s){vt(e,s,t[s]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Oe(Object(t)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s));});}return e;}var je={addCSS:!0,thumbWidth:15,watch:!0};function wt(e,i){return (function(){return Array.from(document.querySelectorAll(i)).includes(this);}).call(e,i);}function kt(e,i){if(e&&i){var t=new Event(i,{bubbles:!0});e.dispatchEvent(t);}}var Q=function(e){return e!=null?e.constructor:null;},be=function(e,i){return !!(e&&i&&e instanceof i);},De=function(e){return e==null;},Re=function(e){return Q(e)===Object;},Tt=function(e){return Q(e)===Number&&!Number.isNaN(e);},He=function(e){return Q(e)===String;},Ct=function(e){return Q(e)===Boolean;},At=function(e){return Q(e)===Function;},qe=function(e){return Array.isArray(e);},Ve=function(e){return be(e,NodeList);},Et=function(e){return be(e,Element);},St=function(e){return be(e,Event);},Pt=function(e){return De(e)||(He(e)||qe(e)||Ve(e))&&!e.length||Re(e)&&!Object.keys(e).length;},j={nullOrUndefined:De,object:Re,number:Tt,string:He,boolean:Ct,function:At,array:qe,nodeList:Ve,element:Et,event:St,empty:Pt};function Mt(e){var i="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return i?Math.max(0,(i[1]?i[1].length:0)-(i[2]?+i[2]:0)):0;}function Nt(e,i){if(1>i){var t=Mt(i);return parseFloat(e.toFixed(t));}return Math.round(e/i)*i;}var xt=function(){function e(i,t){bt(this,e),j.element(i)?this.element=i:j.string(i)&&(this.element=document.querySelector(i)),j.element(this.element)&&j.empty(this.element.rangeTouch)&&(this.config=_e({},je,{},t),this.init());}return yt(e,[{key:"init",value:function(){e.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(){e.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(i){var t=this,s=i?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(n){t.element[s](n,function(r){return t.set(r);},!1);});}},{key:"get",value:function(i){if(!e.enabled||!j.event(i))return null;var t,s=i.target,n=i.changedTouches[0],r=parseFloat(s.getAttribute("min"))||0,l=parseFloat(s.getAttribute("max"))||100,o=parseFloat(s.getAttribute("step"))||1,c=s.getBoundingClientRect(),u=100/c.width*(this.config.thumbWidth/2)/100;return 0>(t=100/c.width*(n.clientX-c.left))?t=0:100<t&&(t=100),50>t?t-=(100-2*t)*u:50<t&&(t+=2*(t-50)*u),r+Nt(t/100*(l-r),o);}},{key:"set",value:function(i){e.enabled&&j.event(i)&&!i.target.disabled&&(i.preventDefault(),i.target.value=this.get(i),kt(i.target,i.type==="touchend"?"change":"input"));}}],[{key:"setup",value:function(i){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},s=null;if(j.empty(i)||j.string(i)?s=Array.from(document.querySelectorAll(j.string(i)?i:'input[type="range"]')):j.element
5(i)?s=[i]:j.nodeList(i)?s=Array.from(i):j.array(i)&&(s=i.filter(j.element)),j.empty(s))return null;var n=_e({},je,{},t);if(j.string(i)&&n.watch){var r=new MutationObserver(function(l){Array.from(l).forEach(function(o){Array.from(o.addedNodes).forEach(function(c){j.element(c)&&wt(c,i)&&new e(c,n);});});});r.observe(document.body,{childList:!0,subtree:!0});}return s.map(function(l){return new e(l,t);});}},{key:"enabled",get:function(){return "ontouchstart" in document.documentElement;}}]),e;}();const J=(e)=>e!==null&&typeof e<"u"?e.constructor:null,U=(e,i)=>!!(e&&i&&e instanceof i),ye=(e)=>e===null||typeof e>"u",Fe=(e)=>J(e)===Object,Lt=(e)=>J(e)===Number&&!Number.isNaN(e),ae=(e)=>J(e)===String,$t=(e)=>J(e)===Boolean,Ue=(e)=>typeof e=="function",Be=(e)=>Array.isArray(e),It=(e)=>U(e,WeakMap),We=(e)=>U(e,NodeList),Ot=(e)=>J(e)===Text,_t=(e)=>U(e,Event),jt=(e)=>U(e,KeyboardEvent),Dt=(e)=>U(e,window.TextTrackCue)||U(e,window.VTTCue),Rt=(e)=>U(e,TextTrack)||!ye(e)&&ae(e.kind),Ht=(e)=>U(e,Promise)&&Ue(e.then);function qt(e){return e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object";}function ze(e){return ye(e)||(ae(e)||Be(e)||We(e))&&!e.length||Fe(e)&&!Object.keys(e).length;}function Vt(e){if(U(e,window.URL))return !0;if(!ae(e))return !1;let i=e;(!e.startsWith("http://")||!e.startsWith("https://"))&&(i=`http://${e}`);try{return !ze(new URL(i).hostname);}catch{return !1;}}var a={nullOrUndefined:ye,object:Fe,number:Lt,string:ae,boolean:$t,function:Ue,array:Be,weakMap:It,nodeList:We,element:qt,textNode:Ot,event:_t,keyboardEvent:jt,cue:Dt,track:Rt,promise:Ht,url:Vt,empty:ze};const ve=(()=>{const e=document.createElement("span"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},t=Object.keys(i).find((s)=>e.style[s]!==void 0);return a.string(t)?i[t]:!1;})();function Ke(e,i){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1;}catch{}},i);}function Ft(e){return JSON.parse(JSON.stringify(e));}function Ye(e,i){return i.split(".").reduce((t,s)=>t&&t[s],e);}function L(e={},...i){if(!i.length)return e;const t=i.shift();return a.object(t)?(Object.keys(t).forEach((s)=>{a.object(t[s])?(Object.keys(e).includes(s)||Object.assign(e,{[s]:{}}),L(e[s],t[s])):Object.assign(e,{[s]:t[s]});}),L(e,...i)):e;}function Xe(e,i){const t=e.length?e:[e];Array.from(t).reverse().forEach((s,n)=>{const r=n>0?i.cloneNode(!0):i,l=s.parentNode,o=s.nextSibling;r.appendChild(s),o?l.insertBefore(r,o):l.appendChild(r);});}
5function we(e,i){!a.element(e)||a.empty(i)||Object.entries(i).filter(([,t])=>!a.nullOrUndefined(t)).forEach(([t,s])=>e.setAttribute(t,s));}function y(e,i,t){const s=document.createElement(e);return a.object(i)&&we(s,i),a.string(t)&&(s.textContent=t),s;}function Ut(e,i){!a.element(e)||!a.element(i)||i.parentNode.insertBefore(e,i.nextSibling);}function Qe(e,i,t,s){a.element(i)&&i.appendChild(y(e,t,s));}function B(e){if(a.nodeList(e)||a.array(e)){Array.from(e).forEach(B);return;}!a.element(e)||!a.element(e.parentNode)||e.parentNode.removeChild(e);}function le(e){if(!a.element(e))return;let {length:i}=e.childNodes;for(;i>0;)e.removeChild(e.lastChild),i-=1;}function oe(e,i){return !a.element(i)||!a.element(i.parentNode)||!a.element(e)?null:(i.parentNode.replaceChild(e,i),e);}function V(e,i){if(!a.string(e)||a.empty(e))return {};const t={},s=L({},i);return e.split(",").forEach((n)=>{const r=n.trim(),l=r.replace(".",""),c=r.replace(/[[\]]/g,"").split("="),[u]=c,p=c.length>1?c[1].replace(/["']/g,""):"";switch(r.charAt(0)){case ".":a.string(s.class)?t.class=`${s.class} ${l}`:t.class=l;break;case "#":t.id=r.replace("#","");break;case "[":t[u]=p;break;}}),L(s,t);}function K(e,i){if(!a.element(e))return;let t=i;a.boolean(t)||(t=!e.hidden),e.hidden=t;}function E(e,i,t){if(a.nodeList(e))return Array.from(e).map((s)=>E(s,i,t));if(a.element(e)){let s="toggle";return typeof t<"u"&&(s=t?"add":"remove"),e.classList[s](i),e.classList.contains(i);}return !1;}function ce(e,i){return a.element(e)&&e.classList.contains(i);}function Y(e,i){const {prototype:t}=Element;function s(){return Array.from(document.querySelectorAll(i)).includes(this);}return (t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||s).call(e,i);}function Bt(e,i){const {prototype:t}=Element;function s(){let r=this;do{if(Y.matches(r,i))return r;r=r.parentElement||r.parentNode;}while(r!==null&&r.nodeType===1);return null;}return (t.closest||s).call(e,i);}function G(e){return this.elements.container.querySelectorAll(e);}function I(e){return this.elements.container.querySelector(e);}function ke(e=null,i=!1){a.element(e)&&e.focus({preventScroll:!0,focusVisible:i});}const Je={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},$={audio:"canPlayType" in document.createElement("audio"),video:"canPlayType" in document.createElement("video"),check(e,i){const t=$[e]||i!=="html5",s=t&&$.rangeInput;return {api:t,ui:s};},pip:document.pictureInPictureEnabled&&!y("video").disablePictureInPicture,airplay:a.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline" in document.createElement("video"),mime(e){if(a.empty(e))return !1;const [i]=e.split("/");let t=e;if(!this.isHTML5||i!==this.type)return !1;Object.keys(Je).includes(t)&&(t+=`; codecs="${Je[e]}"`);try{return !!(t&&this.media.canPlayType(t).replace(/no/,""));}catch{return !1;}},textTracks:"textTracks" in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range",e.type==="range";})(),touch:"ontouchstart" in document.documentElement,transitions:ve!==!1,reducedMotion:"matchMedia" in 
5window&&window.matchMedia("(prefers-reduced-motion)").matches},Wt=(()=>{let e=!1;try{const i=Object.defineProperty({},"passive",{get(){return e=!0,null;}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i);}catch{}return e;})();function Z(e,i,t,s=!1,n=!0,r=!1){if(!e||!("addEventListener" in e)||a.empty(i)||!a.function(t))return;const l=i.split(" ");let o=r;Wt&&(o={passive:n,capture:r}),l.forEach((c)=>{this&&this.eventListeners&&s&&this.eventListeners.push({element:e,type:c,callback:t,options:o}),e[s?"addEventListener":"removeEventListener"](c,t,o);});}function T(e,i="",t,s=!0,n=!1){Z.call(this,e,i,t,!0,s,n);}function ue(e,i="",t,s=!0,n=!1){Z.call(this,e,i,t,!1,s,n);}function Te(e,i="",t,s=!0,n=!1){const r=(...l)=>{ue(e,i,r,s,n),t.apply(this,l);};Z.call(this,e,i,r,!0,s,n);}function v(e,i="",t=!1,s={}){if(!a.element(e)||a.empty(i))return;const n=new CustomEvent(i,{bubbles:t,detail:{...s,plyr:this}});e.dispatchEvent(n);}function zt(){this&&this.eventListeners&&(this.eventListeners.forEach((e)=>{const {element:i,type:t,callback:s,options:n}=e;i.removeEventListener(t,s,n);}),this.eventListeners=[]);}function Kt(){return new Promise((e)=>this.ready?setTimeout(e,0):T.call(this,this.elements.container,"ready",e)).then(()=>{});}function F(e){a.promise(e)&&e.then(null,()=>{});}function Ce(e){return a.array(e)?e.filter((i,t)=>e.indexOf(i)===t):e;}function Ge(e,i){return !a.array(e)||!e.length?null:e.reduce((t,s)=>Math.abs(s-i)<Math.abs(t-i)?s:t);}function Ze(e){return !window||!window.CSS?!1:window.CSS.supports(e);}const et=[[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((e,[i,t])=>({...e,[i/t]:[i,t]}),{});function tt(e){return !a.array(e)&&(!a.string(e)||!e.includes(":"))?!1:(a.array(e)?e:e.split(":")).map(Number).every(a.number);}function he(e){if(!a.array(e)||!e.every(a.number))return null;const [i,t]=e,s=(r,l)=>l===0?r:s(l,r%l),n=s(i,t);return [i/n,t/n];}function Ae(e){const i=(s)=>tt(s)?s.split(":").map(Number):null;let t=i(e);if(t===null&&(t=i(this.config.ratio)),t===null&&!a.empty(this.embed)&&a.array(this.embed.ratio)&&({ratio:t}=this.embed),t===null&&this.isHTML5){const {videoWidth:s,videoHeight:n}=this.media;t=[s,n];}return he(t);}function X(e){if(!this.isVideo)return {};const {wrapper:i}=this.elements,t=Ae.call(this,e);if(!a.array(t))return {};const [s,n]=he(t),r=Ze(`aspect-ratio: ${s}/${n}`),l=100/s*n;if(r?i.style.aspectRatio=`${s}/${n}`:i.style.paddingBottom=`${l}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const o=100/this.media.offsetWidth*Number.parseInt(window.getComputedStyle(this.media).paddingBottom,10),c=(o-l)/(o/50);this.fullscreen.active?i.style.paddingBottom=null:this.media.style.transform=`translateY(-${c}%)`;}else this.isHTML5&&i.classList.add(this.config.classNames.videoFixedRatio);return {padding:l,ratio:t};}function it(e,i,t=.05){const s=e/i,n=Ge(Object.keys(et),s);return Math.abs(n-s)<=t?et[n]:[e,i];}function Yt(){const e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),i=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);return [e,i];}const W={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((i)=>{const t=i.getAttribute("type");return a.empty(t)?!0:$.mime.call(this,t);}):[];},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:W.getSources.call(this).map((e)=>Number(e.getAttribute("size"))).filter(Boolean);},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,a.empty(this.config.ratio)||X.call(e),Object.defineProperty(e.media,"quality",{get(){const t=W.getSources.call(e).find((s)=>s.getAttribute("src")===e.source);return t&&Number(t.getAttribute("size"));},set(i){if(e.quality!==i){if(e.config.quality.forced&&a.function(e.config.quality.onChange))e.config.quality.onChange(i);else{const s=W.getSources.call(e).find((u)=>Number(u.getAttribute("size"))===i);if(!s)return;const {currentTime:n,paused:r,preload:l,readyState:o,playbackRate:c}=e.media;e.media.src=s.getAttribute("src"),(l!=="none"||o)&&(e.once("loadedmetadata",()=>{e.speed=c,e.currentTime=n,r||F(e.play());}),e.media.load());}v.call(e,e.media,"qualitychange",!1,{quality:i});}}});},cancelRequests(){this.isHTML5&&(B(W.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"));}},Xt=!!window.document.documentMode,Qt=/Edge/.test(navigator.userAgent),Jt="WebkitAppearance" in document.documentElement.style&&!/Edge/.test(navigator.userAgent),Gt=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,Zt=/iPad|iPhone|iPod/i.test(navigator.userAgent)&&navigator.maxTouchPoints>1;var _={isIE:Xt,isEdge:Qt,isWebKit:Jt,isIPadOS:Gt,isIos:Zt};function ei(e){return `${e}-${Math.floor(Math.random()*1e4)}`;}function Ee(e,...i){return a.empty(e)?e:e.toString().replace(/\{(\d+)\}/g,(t,s)=>i[s].toString());}function ti(e,i){return e===0||i===0||Number.isNaN(e)||Number.isNaN(i)?0:(e/i*100).toFixed(2);}function ee(e="",i="",t=""){return e.replace(new RegExp(i.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),t.toString());}function st(e=""){return e.toString().replace(/\w\S*/g,(i)=>i.charAt(0).toUpperCase()+i.slice(1).toLowerCase());}function ii(e=""){let i=e.toString();return i=ee(i,"-"," "),i=ee(i,"_"," "),i=st(i),ee(i," ","");}function si(e=""){let i=e.toString();return i=ii(i),i.charAt(0).toLowerCase()+i.slice(1);}function ni(e){const i=document.createDocumentFragment(),t=document.createElement("div");return i.appendChild(t),t.innerHTML=e,i.firstChild.textContent;}function ri(e){const i=document.createElement("div");return i.appendChild(e),i.innerHTML;}const nt={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},O={get(e="",i={}){if(a.empty(e)||a.empty(i))return "";let t=Ye(i.i18n,e);if(a.empty(t))return Object.keys(nt).includes(e)?nt[e]:"";const s={"{seektime}":i.seekTime,"{title}":i.title};
5return Object.entries(s).forEach(([n,r])=>{t=ee(t,n,r);}),t;}};class te{constructor(i){m(this,"get",(t)=>{if(!te.supported||!this.enabled)return null;const s=window.localStorage.getItem(this.key);if(a.empty(s))return null;const n=JSON.parse(s);return a.string(t)&&t.length?n[t]:n;}),m(this,"set",(t)=>{if(!te.supported||!this.enabled||!a.object(t))return;let s=this.get();a.empty(s)&&(s={}),L(s,t);try{window.localStorage.setItem(this.key,JSON.stringify(s));}catch{}}),this.enabled=i.config.storage.enabled,this.key=i.config.storage.key;}static get supported(){try{if(!("localStorage" in window))return !1;const i="___test";return window.localStorage.setItem(i,i),window.localStorage.removeItem(i),!0;}catch{return !1;}}}function ie(e,i="text",t=!1){return new Promise((s,n)=>{try{const r=new XMLHttpRequest();if(!("withCredentials" in r))return;t&&(r.withCredentials=!0),r.addEventListener("load",()=>{if(i==="text")try{s(JSON.parse(r.responseText));}catch{s(r.responseText);}else s(r.response);}),r.addEventListener("error",()=>{throw new Error(r.status);}),r.open("GET",e,!0),r.responseType=i,r.send();}catch(r){n(r);}});}function rt(e,i){if(!a.string(e))return;const t="cache",s=a.string(i);let n=!1;const r=()=>document.getElementById(i)!==null,l=(o,c)=>{o.innerHTML=c,!(s&&r())&&document.body.insertAdjacentElement("afterbegin",o);};if(!s||!r()){const o=te.supported,c=document.createElement("div");if(c.setAttribute("hidden",""),s&&c.setAttribute("id",i),o){const u=window.localStorage.getItem(`${t}-${i}`);if(n=u!==null,n){const p=JSON.parse(u);l(c,p.content);}}ie(e).then((u)=>{if(!a.empty(u)){if(o)try{window.localStorage.setItem(`${t}-${i}`,JSON.stringify({content:u}));}catch{}l(c,u);}}).catch(()=>{});}}const at=(e)=>Math.trunc(e/60/60%60,10),ai=(e)=>Math.trunc(e/60%60,10),li=(e)=>Math.trunc(e%60,10);function de(e=0,i=!1,t=!1){if(!a.number(e))return de(void 0,i,t);const s=(o)=>`0${o}`.slice(-2);let n=at(e);const r=ai(e),l=li(e);return i||n>0?n=`${n}:`:n="",`${t&&e>0?"-":""}${n}${s(r)}:${s(l)}`;}const d={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),i=window.location.host?window.location.host:window.top.location.host,t=e.host!==i||_.isIE&&!window.svg4everybody;return {url:this.config.iconUrl,cors:t};},findElements(){try{return this.elements.controls=I.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:G.call(this,this.config.selectors.buttons.play),pause:I.call(this,this.config.selectors.buttons.pause),restart:I.call(this,this.config.selectors.buttons.restart),rewind:I.call(this,this.config.selectors.buttons.rewind),fastForward:I.call(this,this.config.selectors.buttons.fastForward),mute:I.call(this,this.config.selectors.buttons.mute),pip:I.call(this,this.config.selectors.buttons.pip),airplay:I.call(this,this.config.selectors.buttons.airplay),settings:I.call(this,this.config.selectors.buttons.settings),captions:I.call(this,this.config.selectors.buttons.captions),fullscreen:I.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=I.call(this,this.config.selectors.progress),this.elements.inputs={seek:I.call(this,this.config.selectors.inputs.seek),volume:I.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:I.call(this,this.config.selectors.display.buffer),currentTime:I.call(this,this.config.selectors.display.currentTime),duration:I.call(this,this.config.selectors.display.duration)},a.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0;}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1;}},createIcon(e,i){const t="http://www.w3.org/2000/svg",s=d.getIconUrl.call(this),n=`${s.cors?"":s.url}#${this.config.iconPrefix}`,r=document.createElementNS(t,"svg");we(r,L(i,{"aria-hidden":"true",focusable:"false"}));const l=document.createElementNS(t,"use"),o=`${n}-${e}`;return "href" in l&&l.setAttributeNS("http://www.w3.org/1999/xlink","href",o),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),r.appendChild(l),r;},createLabel(e,i={}){const t=O.get(e,this.config),s={...i,class:[i.class,this.config.classNames.hidden].filter(
5Boolean).join(" ")};return y("span",s,t);},createBadge(e){if(a.empty(e))return null;const i=y("span",{class:this.config.classNames.menu.value});return i.appendChild(y("span",{class:this.config.classNames.menu.badge},e)),i;},createButton(e,i){const t=L({},i);let s=si(e);const n={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((l)=>{Object.keys(t).includes(l)&&(n[l]=t[l],delete t[l]);}),n.element==="button"&&!Object.keys(t).includes("type")&&(t.type="button"),Object.keys(t).includes("class")?t.class.split(" ").includes(this.config.classNames.control)||L(t,{class:`${t.class} ${this.config.classNames.control}`}):t.class=this.config.classNames.control,e){case "play":n.toggle=!0,n.label="play",n.labelPressed="pause",n.icon="play",n.iconPressed="pause";break;case "mute":n.toggle=!0,n.label="mute",n.labelPressed="unmute",n.icon="volume",n.iconPressed="muted";break;case "captions":n.toggle=!0,n.label="enableCaptions",n.labelPressed="disableCaptions",n.icon="captions-off",n.iconPressed="captions-on";break;case "fullscreen":n.toggle=!0,n.label="enterFullscreen",n.labelPressed="exitFullscreen",n.icon="enter-fullscreen",n.iconPressed="exit-fullscreen";break;case "play-large":t.class+=` ${this.config.classNames.control}--overlaid`,s="play",n.label="play",n.icon="play";break;default:a.empty(n.label)&&(n.label=s),a.empty(n.icon)&&(n.icon=e);}const r=y(n.element);return n.toggle?(r.appendChild(d.createIcon.call(this,n.iconPressed,{class:"icon--pressed"})),r.appendChild(d.createIcon.call(this,n.icon,{class:"icon--not-pressed"})),r.appendChild(d.createLabel.call(this,n.labelPressed,{class:"label--pressed"})),r.appendChild(d.createLabel.call(this,n.label,{class:"label--not-pressed"}))):(r.appendChild(d.createIcon.call(this,n.icon)),r.appendChild(d.createLabel.call(this,n.label))),L(t,V(this.config.selectors.buttons[s],t)),we(r,t),s==="play"?(a.array(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(r)):this.elements.buttons[s]=r,r;},createRange(e,i){const t=y("input",L(V(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":O.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},i));return this.elements.inputs[e]=t,d.updateRangeFill.call(this,t),xt.setup(t),t;},createProgress(e,i){const t=y("progress",L(V(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},i));if(e!=="volume"){t.appendChild(y("span",null,"0"));const s={played:"played",buffer:"buffered"}[e],n=s?O.get(s,this.config):"";t.textContent=`% ${n.toLowerCase()}`;}return this.elements.display[e]=t,t;},createTime(e,i){const t=V(this.config.selectors.display[e],i),s=y("div",L(t,{class:`${t.class?t.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":O.get(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=s,s;},bindMenuItemShortcuts(e,i){T.call(this,e,"keydown keyup",(t)=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(t.key)||(t.preventDefault(),t.stopPropagation(),t.type==="keydown"))return;const s=Y(e,'[role="menuitemradio"]');if(!s&&[" ","ArrowRight"].includes(t.key))d.showMenuPanel.call(this,i,!0);else{let n;t.key!==" "&&(t.key==="ArrowDown"||s&&t.key==="ArrowRight"?(n=e.nextElementSibling,a.element(n)||(n=e.parentNode.firstElementChild)):(n=e.previousElementSibling,a.element(n)||(n=e.parentNode.lastElementChild)),ke.call(this,n,!0));}},!1),T.call(this,e,"keyup",(t)=>{t.key==="Return"&&d.focusFirstMenuItem.call(this,null,!0);});},createMenuItem({value:e,list:i,type:t,title:s,badge:n=null,checked:r=!1}){const l=V(this.config.selectors.inputs[t]),o=y("button",L(l,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${l.class?l.class:""}`.trim(),"aria-checked":r,value:e})),c=y("span");c.innerHTML=s,a.element(n)&&c.appendChild(n),o.appendChild(c),Object.defineProperty(o,"checked",{enumerable:!0,get(){return o.getAttribute("aria-checked")==="true";},set(u){u&&Array.from(o.parentNode.children).filter((p)=>
5Y(p,'[role="menuitemradio"]')).forEach((p)=>p.setAttribute("aria-checked","false")),o.setAttribute("aria-checked",u?"true":"false");}}),this.listeners.bind(o,"click keyup",(u)=>{if(!(a.keyboardEvent(u)&&u.key!==" ")){switch(u.preventDefault(),u.stopPropagation(),o.checked=!0,t){case "language":this.currentTrack=Number(e);break;case "quality":this.quality=e;break;case "speed":this.speed=Number.parseFloat(e);break;}d.showMenuPanel.call(this,"home",a.keyboardEvent(u));}},t,!1),d.bindMenuItemShortcuts.call(this,o,t),i.appendChild(o);},formatTime(e=0,i=!1){if(!a.number(e))return e;const t=at(this.duration)>0;return de(e,t,i);},updateTimeDisplay(e=null,i=0,t=!1){!a.element(e)||!a.number(i)||(e.textContent=d.formatTime(i,t));},updateVolume(){this.supported.ui&&(a.element(this.elements.inputs.volume)&&d.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),a.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0));},setRange(e,i=0){a.element(e)&&(e.value=i,d.updateRangeFill.call(this,e));},updateProgress(e){if(!this.supported.ui||!a.event(e))return;let i=0;const t=(s,n)=>
5{const r=a.number(n)?n:0,l=a.element(s)?s:this.elements.display.buffer;if(a.element(l)){l.value=r;const o=l.getElementsByTagName("span")[0];a.element(o)&&(o.childNodes[0].nodeValue=r);}};if(e)switch(e.type){case "timeupdate":case "seeking":case "seeked":i=ti(this.currentTime,this.duration),e.type==="timeupdate"&&d.setRange.call(this,this.elements.inputs.seek,i);break;case "playing":case "progress":t(this.elements.display.buffer,this.buffered*100);break;}},updateRangeFill(e){const i=a.event(e)?e.target:e;if(!(!a.element(i)||i.getAttribute("type")!=="range")){if(Y(i,this.config.selectors.inputs.seek)){i.setAttribute("aria-valuenow",this.currentTime);const t=d.formatTime(this.currentTime),s=d.formatTime(this.duration),n=O.get("seekLabel",this.config);i.setAttribute("aria-valuetext",n.replace("{currentTime}",t).replace("{duration}",s));}else if(Y(i,this.config.selectors.inputs.volume)){const t=i.value*100;i.setAttribute("aria-valuenow",t),i.setAttribute("aria-valuetext",`${t.toFixed(1)}%`);}else i.setAttribute("aria-valuenow",i.value);!_.isWebKit&&!_.isIPadOS||i.style.setProperty("--value",`${i.value/i.max*100}%`);}},updateSeekTooltip(e){var i,t;if(!this.config.tooltips.seek||!a.element(this.elements.inputs.seek)||!a.element(this.elements.display.seekTooltip)||this.duration===0)return;const s=this.elements.display.seekTooltip,n=`${this.config.classNames.tooltip}--visible`,r=(p)=>E(s,n,p);if(this.touch){r(!1);return;}let l=0;const o=this.elements.progress.getBoundingClientRect();if(a.event(e)){const p=e.pageX-e.clientX;l=100/o.width*(e.pageX-o.left-p);}else if(ce(s,n))l=Number.parseFloat(s.style.left,10);else return;l<0?l=0:l>100&&(l=100);const c=this.duration/100*l;s.textContent=d.formatTime(c);const u=(i=this.config.markers)===null||i===void 0||(t=i.points)===null||t===void 0?void 0:t.find(({time:p})=>p===Math.round(c));u&&s.insertAdjacentHTML("afterbegin",`${u.label}<br>`),s.style.left=`${l}%`,a.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&r(e.type==="mouseenter");},timeUpdate(e){const i=!a.element(this.elements.display.duration)&&this.config.invertTime;d.updateTimeDisplay.call(this,this.elements.display.currentTime,i?this.duration-this.currentTime:this.currentTime,i),!(e&&e.type==="timeupdate"&&this.media.seeking)&&d.updateProgress.call(this,e);},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32){K(this.elements.display.currentTime,!0),K(this.elements.progress,!0);return;}a.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);
5const e=a.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&d.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&d.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&d.setMarkers.call(this),d.updateSeekTooltip.call(this);},toggleMenuButton(e,i){K(this.elements.settings.buttons[e],!i);},updateSetting(e,i,t){const s=this.elements.settings.panels[e];let n=null,r=i;if(e==="captions")n=this.currentTrack;else{if(n=a.empty(t)?this[e]:t,a.empty(n)&&(n=this.config[e].default),!a.empty(this.options[e])&&!this.options[e].includes(n)){this.debug.warn(`Unsupported value of '${n}' for ${e}`);return;}if(!this.config[e].options.includes(n)){this.debug.warn(`Disabled value of '${n}' for ${e}`);return;}}if(a.element(r)||(r=s&&s.querySelector('[role="menu"]')),!a.element(r))return;const l=this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`);l.innerHTML=d.getLabel.call(this,e,n);const o=r&&r.querySelector(`[value="${n}"]`);a.element(o)&&(o.checked=!0);},getLabel(e,i){switch(e){case "speed":return i===1?O.get("normal",this.config):`${i}&times;`;case "quality":if(a.number(i)){const t=O.get(`qualityLabel.${i}`,this.config);return t.length?t:`${i}p`;}return st(i);case "captions":return C.getLabel.call(this);default:return null;}},setQualityMenu(e){if(!a.element(this.elements.settings.panels.quality))return;const i="quality",t=this.elements.settings.panels.quality.querySelector('[role="menu"]');a.array(e)&&(this.options.quality=Ce(e).filter((r)=>this.config.quality.options.includes(r)));const s=!a.empty(this.options.quality)&&this.options.quality.length>1;if(d.toggleMenuButton.call(this,i,s),le(t),d.checkMenu.call(this),!s)return;const n=(r)=>{const l=O.get(`qualityBadge.${r}`,this.config);return l.length?d.createBadge.call(this,l):null;};this.options.quality.sort((r,l)=>{const o=this.config.quality.options;return o.indexOf(r)>o.indexOf(l)?1:-1;}).forEach((r)=>{d.createMenuItem.call(this,{value:r,list:t,type:i,title:d.getLabel.call(this,"quality",r),badge:n(r)});}),d.updateSetting.call(this,i,t);},setCaptionsMenu(){if(!a.element(this.elements.settings.panels.captions))return;const e="captions",i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=C.getTracks.call(this),s=!!t.length;if(d.toggleMenuButton.call(this,e,s),le(i),d.checkMenu.call(this),!s)return;const n=t.map((r,l)=>({value:l,checked:this.captions.toggled&&this.currentTrack===l,title:C.getLabel.call(this,r),badge:r.language&&d.createBadge.call(this,r.language.toUpperCase()),list:i,type:"language"}));n.unshift({value:-1,checked:!this.captions.toggled,title:O.get("disabled",this.config),list:i,type:"language"}),n.forEach(d.createMenuItem.bind(this)),d.updateSetting.call(this,e,i);},setSpeedMenu(){if(!a.element(this.elements.settings.panels.speed))return;const e="speed",i=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((s)=>s>=this.minimumSpeed&&s<=this.maximumSpeed);const t=!a.empty(this.options.speed)&&this.options.speed.length>1;d.toggleMenuButton.call(this,e,t),le(i),d.checkMenu.call(this),t&&(this.options.speed.forEach((s)=>{d.createMenuItem.call(this,{value:s,list:i,type:e,title:d.getLabel.call(this,"speed",s)});}),d.updateSetting.call(this,e,i));},checkMenu(){const {buttons:e}=this.elements.settings,i=!a.empty(e)&&Object.values(e).some((t)=>!t.hidden);K(this.elements.settings.menu,!i);},focusFirstMenuItem(e,i=!1){if(this.elements.settings.popup.hidden)return;let t=e;a.element(t)||(t=Object.values(this.elements.settings.panels).find((n)=>!n.hidden));const s=t.querySelector('[role^="menuitem"]');ke.call(this,s,i);},toggleMenu(e){const {popup:i}=this.elements.settings,t=this.elements.buttons.settings;if(!a.element(i)||!a.element(t))return;const {hidden:s}=i;let n=s;if(a.boolean(e))n=e;else if(a.keyboardEvent(e)&&e.key==="Escape")n=!1;else{if(a.event(e)){const r=a.function(e.composedPath)?e.composedPath()[0]:e.target,l=i.contains(r);if(l||!l&&e.target!==t&&n)return;}}t.setAttribute("aria-expanded",n),K(i,!n),E(this.elements.container,this.config.classNames.menu.open,n),n&&a.keyboardEvent(e)?d.focusFirstMenuItem.call(this,null,!0):!n&&!s&&ke.call(this,t,a.keyboardEvent(e));},getMenuSize(e){const i=e.cloneNode(!0);i.style.position="absolute",i.style.opacity=0,i.removeAttribute("hidden"),e.parentNode.appendChild(i);const t=i.scrollWidth,s=i.scrollHeight;return B(i),{width:t,height:s};},showMenuPanel(e="",i=!1){const t=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);
5if(!a.element(t))return;const s=t.parentNode,n=Array.from(s.children).find((r)=>!r.hidden);if($.transitions&&!$.reducedMotion){s.style.width=`${n.scrollWidth}px`,s.style.height=`${n.scrollHeight}px`;const r=d.getMenuSize.call(this,t),l=(o)=>{o.target!==s||!["width","height"].includes(o.propertyName)||(s.style.width="",s.style.height="",ue.call(this,s,ve,l));};T.call(this,s,ve,l),s.style.width=`${r.width}px`,s.style.height=`${r.height}px`;}K(n,!0),K(t,!1),d.focusFirstMenuItem.call(this,t,i);},setDownloadUrl(){const e=this.elements.buttons.download;a.element(e)&&e.setAttribute("href",this.download);},create(e){const {bindMenuItemShortcuts:i,createButton:t,createProgress:s,createRange:n,createTime:r,setQualityMenu:l,setSpeedMenu:o,showMenuPanel:c}=d;this.elements.controls=null,a.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(t.call(this,"play-large"));const u=y("div",V(this.config.selectors.controls.wrapper));this.elements.controls=u;const p={class:"plyr__controls__item"};return Ce(a.array(this.config.controls)?this.config.controls:[]).forEach((b)=>{if(b==="restart"&&u.appendChild(t.call(this,"restart",p)),b==="rewind"&&u.appendChild(t.call(this,"rewind",p)),b==="play"&&u.appendChild(t.call(this,"play",p)),b==="fast-forward"&&u.appendChild(t.call(this,"fast-forward",p)),b==="progress"){const h=y("div",{class:`${p.class} plyr__progress__container`}),g=y("div",V(this.config.selectors.progress));if(g.appendChild(n.call(this,"seek",{id:`plyr-seek-${e.id}`})),g.appendChild(s.call(this,"buffer")),this.config.tooltips.seek){const A=y("span",{class:this.config.classNames.tooltip},"00:00");g.appendChild(A),this.elements.display.seekTooltip=A;}this.elements.progress=g,h.appendChild(this.elements.progress),u.appendChild(h);}if(b==="current-time"&&u.appendChild(r.call(this,"currentTime",p)),b==="duration"&&u.appendChild(r.call(this,"duration",p)),b==="mute"||b==="volume"){let {volume:h}=this.elements;if((!a.element(h)||!u.contains(h))&&(h=y("div",L({},p,{class:`${p.class} plyr__volume`.trim()})),this.elements.volume=h,u.appendChild(h)),b==="mute"&&h.appendChild(t.call(this,"mute")),b==="volume"&&!_.isIos&&!_.isIPadOS){const g={max:1,step:.05,value:this.config.volume};h.appendChild(n.call(this,"volume",L(g,{id:`plyr-volume-${e.id}`})));}}if(b==="captions"&&u.appendChild(t.call(this,"captions",p)),b==="settings"&&!a.empty(this.config.settings)){const h=y("div",L({},p,{class:`${p.class} plyr__menu`.trim(),hidden:""}));h.appendChild(t.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const g=y("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),A=y("div"),w=y("div",{id:`plyr-settings-${e.id}-home`}),x=y("div",{role:"menu"});w.appendChild(x),A.appendChild(w),this.elements.settings.panels.home=w,this.config.settings.forEach((P)=>{const f=y("button",L(V(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));i.call(this,f,P),T.call(this,f,"click",()=>{c.call(this,P,!1);});const k=y("span",null,O.get(P,this.config)),M=y("span",{class:this.config.classNames.menu.value});M.innerHTML=e[P],k.appendChild(M),f.appendChild(k),x.appendChild(f);const D=y("div",{id:`plyr-settings-${e.id}-${P}`,hidden:""}),R=y("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});R.appendChild(y("span",{"aria-hidden":!0},O.get(P,this.config))),R.appendChild(y("span",{class:this.config.classNames.hidden},O.get("menuBack",this.config))),T.call(this,D,"keydown",(q)=>{q.key==="ArrowLeft"&&(q.preventDefault(),q.stopPropagation(),c.call(this,"home",!0));},!1),T.call(this,R,"click",()=>{c.call(this,"home",!1);}),D.appendChild(R),D.appendChild(y("div",{role:"menu"})),A.appendChild(D),this.elements.settings.buttons[P]=f,this.elements.settings.panels[P]=D;}),g.appendChild(A),h.appendChild(g),u.appendChild(h),this.elements.settings.popup=g,this.elements.settings.menu=h;}if(b==="pip"&&$.pip&&u.appendChild(t.call(this,"pip",p)),b==="airplay"&&$.airplay&&u.appendChild(t.call(this,"airplay",p)),b==="download"){const h=L({},p,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(h.download="");const {download:g}=this.config.urls;!a.url(g)&&this.isEmbed&&L(h,{icon:`logo-${this.provider}`,label:this.provider}),u.appendChild(t.call(this,"download",h));}
5b==="fullscreen"&&u.appendChild(t.call(this,"fullscreen",p));}),this.isHTML5&&l.call(this,W.getQualityOptions.call(this)),o.call(this),u;},inject(){if(this.config.loadSprite){const l=d.getIconUrl.call(this);l.cors&&rt(l.url,"sprite-plyr");}this.id=Math.floor(Math.random()*1e4);let e=null;this.elements.controls=null;const i={id:this.id,seektime:this.config.seekTime,title:this.config.title};let t=!0;a.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,i)),this.config.controls||(this.config.controls=[]),a.element(this.config.controls)||a.string(this.config.controls)?e=this.config.controls:(e=d.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:C.getLabel.call(this)}),t=!1);const s=(l)=>{let o=l;return Object.entries(i).forEach(([c,u])=>{o=ee(o,`{${c}}`,u);}),o;};t&&a.string(this.config.controls)&&(e=s(e));let n;a.string(this.config.selectors.controls.container)&&(n=document.querySelector(this.config.selectors.controls.container)),a.element(n)||(n=this.elements.container);const r=a.element(e)?"insertAdjacentElement":"insertAdjacentHTML";if(n[r]("afterbegin",e),a.element(this.elements.controls)||d.findElements.call(this),!a.empty(this.elements.buttons)){const l=(o)=>{const c=this.config.classNames.controlPressed;o.setAttribute("aria-pressed","false"),Object.defineProperty(o,"pressed",{configurable:!0,enumerable:!0,get(){return ce(o,c);},set(u=!1){E(o,c,u),o.setAttribute("aria-pressed",u?"true":"false");}});};Object.values(this.elements.buttons).filter(Boolean).forEach((o)=>{a.array(o)||a.nodeList(o)?Array.from(o).filter(Boolean).forEach(l):l(o);});}if(_.isEdge&&Ke(n),this.config.tooltips.controls){const {classNames:l,selectors:o}=this.config,c=`${o.controls.wrapper} ${o.labels} .${l.hidden}`,u=G.call(this,c);Array.from(u).forEach((p)=>{E(p,this.config.classNames.hidden,!1),E(p,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 e,i;if(!this.duration||this.elements.markers)return;const t=(e=this.config.markers)===null||e===void 0||(i=e.points)===null||i===void 0?void 0:i.filter(({time:c})=>c>0&&c<this.duration);if(!(t!=null&&t.length))return;const s=document.createDocumentFragment(),n=document.createDocumentFragment();let r=null;const l=`${this.config.classNames.tooltip}--visible`,o=(c)=>E(r,l,c);t.forEach((c)=>{const u=y("span",{class:this.config.classNames.marker},""),p=`${c.time/this.duration*100}%`;r&&(u.addEventListener("mouseenter",()=>{c.label||(r.style.left=p,r.innerHTML=c.label,o(!0));}),u.addEventListener("mouseleave",()=>{o(!1);})),u.addEventListener("click",()=>{this.currentTime=c.time;}),u.style.left=p,n.appendChild(u);}),s.appendChild(n),this.config.tooltips.seek||(r=y("span",{class:this.config.classNames.tooltip},""),s.appendChild(r)),this.elements.markers={points:n,tip:r},this.elements.progress.appendChild(s);}};function lt(e,i=!0){let t=e;if(i){const s=document.createElement("a");s.href=t,t=s.href;}try{return new URL(t);}catch{return null;}}function ot(e){const i=new URLSearchParams();return a.object(e)&&Object.entries(e).forEach(([t,s])=>{i.set(t,s);}),i;}const C={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!$.textTracks){a.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&d.setCaptionsMenu.call(this);return;}if(a.element(this.elements.captions)||(this.elements.captions=y("div",V(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),Ut(this.elements.captions,this.elements.wrapper)),_.isIE&&window.URL){const n=this.media.querySelectorAll("track");Array.from(n).forEach((r)=>{const l=r.getAttribute("src"),o=lt(l);o!==null&&o.hostname!==window.location.href.hostname&&["http:","https:"].includes(o.protocol)&&ie(l,"blob").then((c)=>
5{r.setAttribute("src",window.URL.createObjectURL(c));}).catch(()=>{B(r);});});}const e=navigator.languages||[navigator.language||navigator.userLanguage||"en"],i=Ce(e.map((n)=>n.split("-")[0]));let t=(this.storage.get("language")||this.captions.language||this.config.captions.language||"auto").toLowerCase();t==="auto"&&([t]=i);let s=this.storage.get("captions")||this.captions.active;if(a.boolean(s)||({active:s}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:s,language:t,languages:i}),this.isHTML5){const n=this.config.captions.update?"addtrack removetrack":"removetrack";T.call(this,this.media.textTracks,n,C.update.bind(this));}setTimeout(C.update.bind(this),0);},update(){const e=C.getTracks.call(this,!0),{active:i,language:t,meta:s,currentTrackNode:n}=this.captions,r=!!e.find((l)=>l.language===t);this.isHTML5&&this.isVideo&&e.filter((l)=>!s.get(l)).forEach((l)=>{this.debug.log("Track added",l),s.set(l,{default:l.mode==="showing"}),l.mode==="showing"&&(l.mode="hidden"),T.call(this,l,"cuechange",()=>C.updateCues.call(this));}),(r&&this.language!==t||!e.includes(n))&&(C.setLanguage.call(this,t),C.toggle.call(this,i&&r)),this.elements&&E(this.elements.container,this.config.classNames.captions.enabled,!a.empty(e)),a.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&d.setCaptionsMenu.call(this);},toggle(e,i=!0){if(!this.supported.ui)return;const {toggled:t}=this.captions,s=this.config.classNames.captions.active,n=a.nullOrUndefined(e)?!t:e;if(n!==t){if(i||(this.captions.active=n,this.storage.set({captions:n})),!this.language&&n&&!i){const r=C.getTracks.call(this),l=C.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);this.captions.language=l.language,C.set.call(this,r.indexOf(l));return;}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=n),E(this.elements.container,s,n),this.captions.toggled=n,d.updateSetting.call(this,"captions"),v.call(this,this.media,n?"captionsenabled":"captionsdisabled");}setTimeout(()=>{n&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden");});},set(e,i=!0){const t=C.getTracks.call(this);if(e===-1){C.toggle.call(this,!1,i);return;}if(!a.number(e)){this.debug.warn("Invalid caption argument",e);return;}if(!(e in t)){this.debug.warn("Track not found",e);return;}if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const s=t[e],{language:n}=s||{};this.captions.currentTrackNode=s,d.updateSetting.call(this,"captions"),i||(this.captions.language=n,this.storage.set({language:n})),this.isVimeo&&this.embed.enableTextTrack(n,null,!1),v.call(this,this.media,"languagechange");}C.toggle.call(this,!0,i),this.isHTML5&&this.isVideo&&C.updateCues.call(this);},setLanguage(e,i=!0){if(!a.string(e)){this.debug.warn("Invalid language argument",e);return;}const t=e.toLowerCase();this.captions.language=t;const s=C.getTracks.call(this),n=C.findTrack.call(this,[t]);C.set.call(this,s.indexOf(n),i);},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter((t)=>!this.isHTML5||e||this.captions.meta.has(t)).filter((t)=>["captions","subtitles"].includes(t.kind));},findTrack(e,i=!1){const t=C.getTracks.call(this),s=(l)=>Number((this.captions.meta.get(l)||{}).default),n=Array.from(t).sort((l,o)=>s(o)-s(l));let r;return e.every((l)=>(r=n.find((o)=>o.language===l),!r)),r||(i?n[0]:void 0);},getCurrentTrack(){return C.getTracks.call(this)[this.currentTrack];},getLabel(e){let i=e;return !a.track(i)&&$.textTracks&&this.captions.toggled&&(i=C.getCurrentTrack.call(this)),a.track(i)?a.empty(i.label)?a.empty(i.language)?O.get("enabled",this.config):e.language.toUpperCase():i.label:O.get("disabled",this.config);},updateCues(e){if(!this.supported.ui)return;if(!a.element(this.elements.captions)){this.debug.warn("No captions element to render to");return;}if(!a.nullOrUndefined(e)&&!Array.isArray(e)){this.debug.warn("updateCues: Invalid input",e);return;}let i=e;if(!i){const n=C.getCurrentTrack.call(this);i=Array.from((n||{}).activeCues||[]).map((r)=>r.getCueAsHTML()).map(ri);}const t=i.map((n)=>n.trim()).join(`
6`);if(t!==this.elements.captions.innerHTML){le(this.elements.captions);const n=y("span",V(this.config.selectors.caption));n.innerHTML=t,this.elements.captions.appendChild(n),v.call(this,this.media,"cuechange");}}},ct={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.8.4/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
6D"}},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:"",withCredentials:!1},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:[]}},Se={active:"picture-in-picture",inactive:"inline"},z={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Pe={audio:"audio",video:"video"};function oi(e){return /^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?z.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?z.vimeo:null;}function Me(){}class ci{constructor(i=!1){this.enabled=window.console&&i,this.enabled&&this.log("Debugging enabled");}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):Me;}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):Me;}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):Me;}}class H{constructor(i){m(this,"onChange",()=>{if(!this.supported)return;const t=this.player.elements.buttons.fullscreen;
6a.element(t)&&(t.pressed=this.active);const s=this.target===this.player.media?this.target:this.player.elements.container;v.call(this.player,s,this.active?"enterfullscreen":"exitfullscreen",!0);}),m(this,"toggleFallback",(t=!1)=>{if(t){var s,n;this.scrollPosition={x:(s=window.scrollX)!==null&&s!==void 0?s:0,y:(n=window.scrollY)!==null&&n!==void 0?n:0};}else window.scrollTo(this.scrollPosition.x,this.scrollPosition.y);if(document.body.style.overflow=t?"hidden":"",E(this.target,this.player.config.classNames.fullscreen.fallback,t),_.isIos){let r=document.head.querySelector('meta[name="viewport"]');const l="viewport-fit=cover";r||(r=document.createElement("meta"),r.setAttribute("name","viewport"));const o=a.string(r.content)&&r.content.includes(l);t?(this.cleanupViewport=!o,o||(r.content+=`,${l}`)):this.cleanupViewport&&(r.content=r.content.split(",").filter((c)=>c.trim()!==l).join(","));}this.onChange();}),m(this,"trapFocus",(t)=>{if(_.isIos||_.isIPadOS||!this.active||t.key!=="Tab")return;const s=document.activeElement,n=G.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[r]=n,l=n[n.length-1];s===l&&!t.shiftKey?(r.focus(),t.preventDefault()):s===r&&t.shiftKey&&(l.focus(),t.preventDefault());}),m(this,"update",()=>{if(this.supported){let t;this.forceFallback?t="Fallback (forced)":H.nativeSupported?t="Native":t="Fallback",this.player.debug.log(`${t} fullscreen enabled`);}else this.player.debug.log("Fullscreen not supported and fallback disabled");E(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported);}),m(this,"enter",()=>{this.supported&&(_.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!H.nativeSupported||this.forceFallback?this.toggleFallback(!0):this.prefix?a.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}));}),m(this,"exit",()=>{if(this.supported)if(_.isIos&&this.player.config.fullscreen.iosNative)this.player.isVimeo?this.player.embed.exitFullscreen():this.target.webkitEnterFullscreen(),F(this.player.play());else if(!H.nativeSupported||this.forceFallback)this.toggleFallback(!1);else if(!this.prefix)(document.cancelFullScreen||document.exitFullscreen).call(document);else{if(!a.empty(this.prefix)){const t=this.prefix==="moz"?"Cancel":"Exit";document[`${this.prefix}${t}${this.property}`]();}}}),m(this,"toggle",()=>{this.active?this.exit():this.enter();}),this.player=i,this.prefix=H.prefix,this.property=H.property,this.scrollPosition={x:0,y:0},this.forceFallback=i.config.fullscreen.fallback==="force",this.player.elements.fullscreen=i.config.fullscreen.container&&Bt(this.player.elements.container,i.config.fullscreen.container),T.call(this.player,document,this.prefix==="ms"?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange();}),T.call(this.player,this.player.elements.container,"dblclick",(t)=>{a.element(this.player.elements.controls)&&this.player.elements.controls.contains(t.target)||this.player.listeners.proxy(t,this.toggle,"fullscreen");}),T.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 H.nativeSupported&&!this.forceFallback;}static get prefix(){if(a.function(document.exitFullscreen))return "";let i="";return ["webkit","moz","ms"].some((s)=>a.function(document[`${s}ExitFullscreen`])||a.function(document[`${s}CancelFullScreen`])?(i=s,!0):!1),i;}static get property(){return this.prefix==="moz"?"FullScreen":"Fullscreen";}get supported(){return [this.player.config.fullscreen.enabled,this.player.isVideo,H.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||H.nativeSupported||!_.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean);}get active(){if(!this.supported)return !1;
6if(!H.nativeSupported||this.forceFallback)return ce(this.target,this.player.config.classNames.fullscreen.fallback);const i=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return i&&i.shadowRoot?i===this.target.getRootNode().host:i===this.target;}get target(){var i;return _.isIos&&this.player.config.fullscreen.iosNative?this.player.media:(i=this.player.elements.fullscreen)!==null&&i!==void 0?i:this.player.elements.container;}}function me(e,i=1){return new Promise((t,s)=>{const n=new Image(),r=()=>{delete n.onload,delete n.onerror,(n.naturalWidth>=i?t:s)(n);};Object.assign(n,{onload:r,onerror:r,src:e});});}const S={addStyleHook(){E(this.elements.container,this.config.selectors.container.replace(".",""),!0),E(this.elements.container,this.config.classNames.uiSupported,this.supported.ui);},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls");},build(){if(this.listeners.media(),!this.supported.ui){this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),S.toggleNativeControls.call(this,!0);return;}a.element(this.elements.controls)||(d.inject.call(this),this.listeners.controls()),S.toggleNativeControls.call(this),this.isHTML5&&C.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,d.updateVolume.call(this),d.timeUpdate.call(this),d.durationUpdate.call(this),S.checkPlaying.call(this),E(this.elements.container,this.config.classNames.pip.supported,$.pip&&this.isHTML5&&this.isVideo),E(this.elements.container,this.config.classNames.airplay.supported,$.airplay&&this.isHTML5),E(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{v.call(this,this.media,"ready");},0),S.setTitle.call(this),this.poster&&S.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&d.durationUpdate.call(this),this.config.mediaMetadata&&d.setMediaMetadata.call(this);},setTitle(){let e=O.get("play",this.config);if(a.string(this.config.title)&&!a.empty(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach((i)=>{i.setAttribute("aria-label",e);}),this.isEmbed){const i=I.call(this,"iframe");if(!a.element(i))return;const t=a.empty(this.config.title)?"video":this.config.title,s=O.get("frameTitle",this.config);i.setAttribute("title",s.replace("{title}",t));}},togglePoster(e){E(this.elements.container,this.config.classNames.posterEnabled,e);},setPoster(e,i=!0){return i&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),Kt.call(this).then(()=>me(e)).catch((t)=>{throw e===this.poster&&S.togglePoster.call(this,!1),t;}).then(()=>{if(e!==this.poster)throw new Error("setPoster cancelled by later call to setPoster");}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${e}')`,backgroundSize:""}),S.togglePoster.call(this,!0),e)));},checkPlaying(e){E(this.elements.container,this.config.classNames.playing,this.playing),E(this.elements.container,this.config.classNames.paused,this.paused),E(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((i)=>{Object.assign(i,{pressed:this.playing}),i.setAttribute("aria-label",O.get(this.playing?"pause":"play",this.config));}),!(a.event(e)&&e.type==="timeupdate")&&S.toggleControls.call(this);},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{E(this.elements.container,this.config.classNames.loading,this.loading),S.toggleControls.call(this);},this.loading?250:0);},toggleControls(e){const {controls:i}=this.elements;if(i&&this.config.hideControls){const t=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(!!(e||this.loading||this.paused||i.pressed||i.hover||t));}},migrateStyles(){Object.values({...this.media.style}).filter((e)=>
6!a.empty(e)&&a.string(e)&&e.startsWith("--plyr")).forEach((e)=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e);}),a.empty(this.media.style)&&this.media.removeAttribute("style");}};class ui{constructor(i){m(this,"firstTouch",()=>{const {player:t}=this,{elements:s}=t;t.touch=!0,E(s.container,t.config.classNames.isTouch,!0);}),m(this,"global",(t=!0)=>{const {player:s}=this;s.config.keyboard.global&&Z.call(s,window,"keydown keyup",this.handleKey,t,!1),Z.call(s,document.body,"click",this.toggleMenu,t),Te.call(s,document.body,"touchstart",this.firstTouch);}),m(this,"container",()=>{const {player:t}=this,{config:s,elements:n,timers:r}=t;!s.keyboard.global&&s.keyboard.focused&&T.call(t,n.container,"keydown keyup",this.handleKey,!1),T.call(t,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(c)=>{const {controls:u}=n;u&&c.type==="enterfullscreen"&&(u.pressed=!1,u.hover=!1);const p=["touchstart","touchmove","mousemove"].includes(c.type);let b=0;p&&(S.toggleControls.call(t,!0),b=t.touch?3e3:2e3),clearTimeout(r.controls),r.controls=setTimeout(()=>S.toggleControls.call(t,!1),b);});const l=()=>{if(!t.isVimeo||t.config.vimeo.premium)return;const c=n.wrapper,{active:u}=t.fullscreen,[p,b]=Ae.call(t),h=Ze(`aspect-ratio: ${p} / ${b}`);if(!u){h?(c.style.width=null,c.style.height=null):(c.style.maxWidth=null,c.style.margin=null);return;}const [g,A]=Yt(),w=g/A>p/b;h?(c.style.width=w?"auto":"100%",c.style.height=w?"100%":"auto"):(c.style.maxWidth=w?`${A/b*p}px`:null,c.style.margin=w?"0 auto":null);},o=()=>{clearTimeout(r.resized),r.resized=setTimeout(l,50);};T.call(t,n.container,"enterfullscreen exitfullscreen",(c)=>{const {target:u}=t.fullscreen;if(u!==n.container||!t.isEmbed&&a.empty(t.config.ratio))return;l(),(c.type==="enterfullscreen"?T:ue).call(t,window,"resize",o);});}),m(this,"media",()=>{const {player:t}=this,{elements:s}=t;if(T.call(t,t.media,"timeupdate seeking seeked",(r)=>d.timeUpdate.call(t,r)),T.call(t,t.media,"durationchange loadeddata loadedmetadata",(r)=>d.durationUpdate.call(t,r)),T.call(t,t.media,"ended",()=>{t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause());}),T.call(t,t.media,"progress playing seeking seeked",(r)=>d.updateProgress.call(t,r)),T.call(t,t.media,"volumechange",(r)=>d.updateVolume.call(t,r)),T.call(t,t.media,"playing play pause ended emptied timeupdate",(r)=>S.checkPlaying.call(t,r)),T.call(t,t.media,"waiting canplay seeked playing",(r)=>S.checkLoading.call(t,r)),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){const r=I.call(t,`.${t.config.classNames.video}`);
6if(!a.element(r))return;T.call(t,s.container,"click",(l)=>{![s.container,r].includes(l.target)&&!r.contains(l.target)||t.touch&&t.config.hideControls||(t.ended?(this.proxy(l,t.restart,"restart"),this.proxy(l,()=>{F(t.play());},"play")):this.proxy(l,()=>{F(t.togglePlay());},"play"));});}t.supported.ui&&t.config.disableContextMenu&&T.call(t,s.wrapper,"contextmenu",(r)=>{r.preventDefault();},!1),T.call(t,t.media,"volumechange",()=>{t.storage.set({volume:t.volume,muted:t.muted});}),T.call(t,t.media,"ratechange",()=>{d.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed});}),T.call(t,t.media,"qualitychange",(r)=>{d.updateSetting.call(t,"quality",null,r.detail.quality);}),T.call(t,t.media,"ready qualitychange",()=>{d.setDownloadUrl.call(t);});const n=t.config.events.concat(["keyup","keydown"]).join(" ");T.call(t,t.media,n,(r)=>{let {detail:l={}}=r;r.type==="error"&&(l=t.media.error),v.call(t,s.container,r.type,!0,l);});}),m(this,"proxy",(t,s,n)=>{const {player:r}=this,l=r.config.listeners[n],o=a.function(l);let c=!0;o&&(c=l.call(r,t)),c!==!1&&a.function(s)&&s.call(r,t);}),m(this,"bind",(t,s,n,r,l=!0)=>{const {player:o}=this,c=o.config.listeners[r],u=a.function(c);T.call(o,t,s,(p)=>this.proxy(p,n,r),l&&!u);}),m(this,"controls",()=>{const {player:t}=this,{elements:s}=t,n=_.isIE?"change":"input";if(s.buttons.play&&Array.from(s.buttons.play).forEach((r)=>{this.bind(r,"click",()=>{F(t.togglePlay());},"play");}),this.bind(s.buttons.restart,"click",t.restart,"restart"),this.bind(s.buttons.rewind,"click",()=>{t.lastSeekTime=Date.now(),t.rewind();},"rewind"),this.bind(s.buttons.fastForward,"click",()=>{t.lastSeekTime=Date.now(),t.forward();},"fastForward"),this.bind(s.buttons.mute,"click",()=>{t.muted=!t.muted;},"mute"),this.bind(s.buttons.captions,"click",()=>t.toggleCaptions()),this.bind(s.buttons.download,"click",()=>{v.call(t,t.media,"download");},"download"),this.bind(s.buttons.fullscreen,"click",()=>{t.fullscreen.toggle();},"fullscreen"),this.bind(s.buttons.pip,"click",()=>{t.pip="toggle";},"pip"),this.bind(s.buttons.airplay,"click",t.airplay,"airplay"),this.bind(s.buttons.settings,"click",(r)=>{r.stopPropagation(),r.preventDefault(),d.toggleMenu.call(t,r);}
6,null,!1),this.bind(s.buttons.settings,"keyup",(r)=>{if([" ","Enter"].includes(r.key)){if(r.key==="Enter"){d.focusFirstMenuItem.call(t,null,!0);return;}r.preventDefault(),r.stopPropagation(),d.toggleMenu.call(t,r);}},null,!1),this.bind(s.settings.menu,"keydown",(r)=>{r.key==="Escape"&&d.toggleMenu.call(t,r);}),this.bind(s.inputs.seek,"mousedown mousemove",(r)=>{const l=s.progress.getBoundingClientRect(),o=r.pageX-r.clientX,c=100/l.width*(r.pageX-l.left-o);r.currentTarget.setAttribute("seek-value",c);}),this.bind(s.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(r)=>{const l=r.currentTarget,o="play-on-seeked";if(a.keyboardEvent(r)&&!["ArrowLeft","ArrowRight"].includes(r.key))return;t.lastSeekTime=Date.now();const c=l.hasAttribute(o),u=["mouseup","touchend","keyup"].includes(r.type);c&&u?(l.removeAttribute(o),F(t.play())):!u&&t.playing&&(l.setAttribute(o,""),t.pause());}),_.isIos){const r=G.call(t,'input[type="range"]');Array.from(r).forEach((l)=>this.bind(l,n,(o)=>Ke(o.target)));}this.bind(s.inputs.seek,n,(r)=>{const l=r.currentTarget;let o=l.getAttribute("seek-value");a.empty(o)&&(o=l.value),l.removeAttribute("seek-value"),t.currentTime=o/l.max*t.duration;},"seek"),this.bind(s.progress,"mouseenter mouseleave mousemove",(r)=>d.updateSeekTooltip.call(t,r)),this.bind(s.progress,"mousemove touchmove",(r)=>{const {previewThumbnails:l}=t;l&&l.loaded&&l.startMove(r);}),this.bind(s.progress,"mouseleave touchend click",()=>{const {previewThumbnails:r}=t;r&&r.loaded&&r.endMove(!1,!0);}),this.bind(s.progress,"mousedown touchstart",(r)=>{const {previewThumbnails:l}=t;l&&l.loaded&&l.startScrubbing(r);}),this.bind(s.progress,"mouseup touchend",(r)=>{const {previewThumbnails:l}=t;l&&l.loaded&&l.endScrubbing(r);}),_.isWebKit&&Array.from(G.call(t,'input[type="range"]')).forEach((r)=>{this.bind(r,"input",(l)=>d.updateRangeFill.call(t,l.target));}),t.config.toggleInvert&&!a.element(s.display.duration)&&this.bind(s.display.currentTime,"click",()=>{t.currentTime!==0&&(t.config.invertTime=!t.config.invertTime,d.timeUpdate.call(t));}),this.bind(s.inputs.volume,n,(r)=>{t.volume=r.target.value;},"volume"),this.bind(s.controls,"mouseenter mouseleave",(r)=>{s.controls.hover=!t.touch&&r.type==="mouseenter";}),s.fullscreen&&Array.from(s.fullscreen.children).filter((r)=>
6!r.contains(s.container)).forEach((r)=>{this.bind(r,"mouseenter mouseleave",(l)=>{s.controls&&(s.controls.hover=!t.touch&&l.type==="mouseenter");});}),this.bind(s.controls,"mousedown mouseup touchstart touchend touchcancel",(r)=>{s.controls.pressed=["mousedown","touchstart"].includes(r.type);}),this.bind(s.controls,"focusin",()=>{const {config:r,timers:l}=t;E(s.controls,r.classNames.noTransition,!0),S.toggleControls.call(t,!0),setTimeout(()=>{E(s.controls,r.classNames.noTransition,!1);},0);const o=this.touch?3e3:4e3;clearTimeout(l.controls),l.controls=setTimeout(()=>S.toggleControls.call(t,!1),o);}),this.bind(s.inputs.volume,"wheel",(r)=>{const l=r.webkitDirectionInvertedFromDevice,[o,c]=[r.deltaX,-r.deltaY].map((b)=>l?-b:b),u=Math.sign(Math.abs(o)>Math.abs(c)?o:c);t.increaseVolume(u/50);const {volume:p}=t.media;(u===1&&p<1||u===-1&&p>0)&&r.preventDefault();},"volume",!1);}),this.player=i,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(i){const {player:t}=this,{elements:s}=t,{key:n,type:r,altKey:l,ctrlKey:o,metaKey:c,shiftKey:u}=i,p=r==="keydown",b=p&&n===this.lastKey;if(l||o||c||u||!n)return;const h=(g)=>{t.currentTime=t.duration/10*g;};if(p){const g=document.activeElement;if(a.element(g)){const {editable:w}=t.config.selectors,{seek:x}=s.inputs;if(g!==x&&Y(g,w)||i.key===" "&&Y(g,'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(n)&&(i.preventDefault(),i.stopPropagation()),n){case "0":case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":b||h(Number.parseInt(n,10));break;case " ":case "k":b||F(t.togglePlay());break;case "ArrowUp":t.increaseVolume(.1);break;case "ArrowDown":t.decreaseVolume(.1);break;case "m":b||(t.muted=!t.muted);break;case "ArrowRight":t.forward();break;case "ArrowLeft":t.rewind();break;case "f":t.fullscreen.toggle();break;case "c":b||t.toggleCaptions();break;case "l":t.loop=!t.loop;break;}n==="Escape"&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=n;}else this.lastKey=null;}toggleMenu(i){d.toggleMenu.call(this.player,i);}}function hi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;}var pe={exports:{}},di=pe.exports,ut;function mi(){return ut||(ut=1,function(e,i){(function(t,s){e.exports=s();})(di,function(){var t=function(){},s={},n={},r={};function l(h,g){h=h.push?h:[h];var A=[],w=h.length,x=w,P,f,k,M;for(P=function(D,R){R.length&&A.push(D),x--,x||g(A);};w--;){if(f=h[w],k=n[f],k){P(f,k);continue;}M=r[f]=r[f]||[],M.push(P);}}function o(h,g){if(h){var A=r[h];if(n[h]=g,!!A)for(;A.length;)A[0](h,g),A.splice(0,1);}}function c(h,g){h.call&&(h={success:h}),g.length?(h.error||t)(g):(h.success||t)(h);}function u(h,g,A,w){var x=document,P=A.async,f=(A.numRetries||0)+1,k=A.before||t,M=h.replace(/[\?|#].*$/,""),D=h.replace(/^(css|img|module|nomodule)!/,""),R,q,N;if(w=w||0,/(^css!|\.css$)/.test(M))N=x.createElement("link"),N.rel="stylesheet",N.href=D,R="hideFocus" in N,R&&N.relList&&(R=0,N.rel="preload",N.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(M))N=x.createElement("img"),N.src=D;else if(N=x.createElement("script"),N.src=D,N.async=P===void 0?!0:P,q="noModule" in N,/^module!/.test(M)){if(!q)return g(h,"l");N.type="module";}else{if(/^nomodule!/.test(M)&&q)return g(h,"l");}N.onload=N.onerror=N.onbeforeload=function(pt){var ge=pt.type[0];if(R)try{N.sheet.cssText.length||(ge="e");}catch(Ci){Ci.code!=18&&(ge="e");}if(ge=="e"){if(w+=1,w<f)return u(h,g,A,w);}else{if(N.rel=="preload"&&N.as=="style")return N.rel="stylesheet";}g(h,ge,pt.defaultPrevented);},k(h,N)!==!1&&x.head.appendChild(N);}function p(h,g,A){h=h.push?h:[h];var w=h.length,x=w,P=[],f,k;for(f=function(M,D,R){if(D=="e"&&P.push(M),D=="b")if(R)P.push(M);else return;w--,w||g(P);},k=0;k<x;k++)u(h[k],f,A);}function b(h,g,A){var w,x;if(g&&g.trim&&(w=g),x=(w?A:g)||{},w){if(w in s)throw "LoadJS";s[w]=!0;}function P(f,k){p(h,function(M){c(x,M),f&&c({success:f,error:k},M),o(w,M);},x);}if(x.returnPromise)return new Promise(P);P();}return b.ready=function(g,A){return l(g,function(w){c(A,w);}),b;},b.done=function(g){o(g,[]);},b.reset=function(){s={},n={},r={};},b.isDefined=function(g){return g in s;},b;});}(pe)),pe.exports;}var pi=mi(),fi=hi(pi);function Ne(e){return new Promise((i,t)=>{fi(e,{success:i,error:t});});}function gi(e){if(a.empty(e))return null;if(a.number(Number(e)))return e;const i=/^.*(vimeo.com\/|video\/)(\d+).*/,t=e.match(i);return t?t[2]:e;}function bi(e){const i=/^.*(vimeo.com\/|video\/)(\d+)(\?.*h=|\/)+([\d,a-f]+)/,t=e.match(i);return t&&t.length===5?t[4]:null;}function se(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,v.call(this,this.media,e?"play":"pause"));}const xe={setup(){const e=this;E(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,X.call(e),a.object(window.Vimeo)?xe.ready.call(e):Ne(e.config.urls.vimeo.sdk).then(()=>{xe.ready.call(e);}).catch((i)=>{e.debug.warn("Vimeo SDK (player.js) failed to load",i);});},ready(){const e=this,i=e.config.vimeo,{premium:t,referrerPolicy:s,...n}=i;let r=e.media.getAttribute("src"),l="";a.empty(r)?(r=e.media.getAttribute(e.config.attributes.embed.id),l=e.media.getAttribute(e.config.attributes.embed.hash)):l=bi(r);const o=l?{h:l}:{};t&&Object.assign(n,{controls:!1,sidedock:!1});const c=ot({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:e.config.playsinline,...o,...n}),u=gi(r),p=y("iframe"),b=Ee(e.config.urls.vimeo.iframe,u,c);if(p.setAttribute("src",b),p.setAttribute("allowfullscreen",""),p.setAttribute("allow",["auto
6play","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),a.empty(s)||p.setAttribute("referrerPolicy",s),t||!i.customControls)p.setAttribute("data-poster",e.poster),e.media=oe(p,e.media);else{const f=y("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});f.appendChild(p),e.media=oe(f,e.media);}i.customControls||ie(Ee(e.config.urls.vimeo.api,b)).then((f)=>{a.empty(f)||!f.thumbnail_url||S.setPoster.call(e,f.thumbnail_url).catch(()=>{});}),e.embed=new window.Vimeo.Player(p,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(se.call(e,!0),e.embed.play()),e.media.pause=()=>(se.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0;};let {currentTime:h}=e.media;Object.defineProperty(e.media,"currentTime",{get(){return h;},set(f){const {embed:k,media:M,paused:D,volume:R}=e,q=D&&!k.hasPlayed;M.seeking=!0,v.call(e,M,"seeking"),Promise.resolve(q&&k.setVolume(0)).then(()=>k.setCurrentTime(f)).then(()=>q&&k.pause()).then(()=>q&&k.setVolume(R)).catch(()=>{});}});let g=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get(){return g;},set(f){e.embed.setPlaybackRate(f).then(()=>{g=f,v.call(e,e.media,"ratechange");}).catch(()=>{e.options.speed=[1];});}});let {volume:A}=e.config;Object.defineProperty(e.media,"volume",{get(){return A;},set(f){e.embed.setVolume(f).then(()=>{A=f,v.call(e,e.media,"volumechange");});}});let {muted:w}=e.config;Object.defineProperty(e.media,"muted",{get(){return w;},set(f){const k=a.boolean(f)?f:!1;e.embed.setMuted(k?!0:e.config.muted).then(()=>{w=k,v.call(e,e.media,"volumechange");});}});let {loop:x}=e.config;Object.defineProperty(e.media,"loop",{get(){return x;},set(f){const k=a.boolean(f)?f:e.config.loop.active;e.embed.setLoop(k).then(()=>{x=k;});}});let P;e.embed.getVideoUrl().then((f)=>{P=f,d.setDownloadUrl.call(e);}).catch((f)=>{this.debug.warn(f);}),Object.defineProperty(e.media,"currentSrc",{get(){return P;}}),Object.defineProperty(e.media,"ended",{get(){return e.currentTime===e.duration;}}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then((f)=>{const [k,M]=f;e.embed.ratio=it(k,M),X.call(this);}),e.embed.setAutopause(e.config.autopause).then((f)=>{e.config.autopause=f;}),e.embed.getVideoTitle().then((f)=>{e.config.title=f,S.setTitle.call(this);}),e.embed.getCurrentTime().then((f)=>{h=f,v.call(e,e.media,"timeupdate");}),e.embed.getDuration().then((f)=>{e.media.duration=f,v.call(e,e.media,"durationchange");}),e.embed.getTextTracks().then((f)=>{e.media.textTracks=f,C.setup.call(e);}),e.embed.on("cuechange",({cues:f=[]})=>{const k=f.map((M)=>ni(M.text));C.updateCues.call(e,k);}),e.embed.on("loaded",()=>{e.embed.getPaused().then((f)=>{se.call(e,!f),f||v.call(e,e.media,"playing");}),a.element(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1);}),e.embed.on("bufferstart",()=>{v.call(e,e.media,"waiting");}),e.embed.on("bufferend",()=>{v.call(e,e.media,"playing");}),e.embed.on("play",()=>{se.call(e,!0),v.call(e,e.media,"playing");}),e.embed.on("pause",()=>{se.call(e,!1);}),e.embed.on("timeupdate",(f)=>{e.media.seeking=!1,h=f.seconds,v.call(e,e.media,"timeupdate");}),e.embed.on("progress",(f)=>{e.media.buffered=f.percent,v.call(e,e.media,"progress"),Number.parseInt(f.percent,10)===1&&v.call(e,e.media,"canplaythrough"),e.embed.getDuration().then((k)=>{k!==e.media.duration&&(e.media.duration=k,v.call(e,e.media,"durationchange"));});}),e.embed.on("seeked",()=>{e.media.seeking=!1,v.call(e,e.media,"seeked");}),e.embed.on("ended",()=>{e.media.paused=!0,v.call(e,e.media,"ended");}),e.embed.on("error",(f)=>{e.media.error=f,v.call(e,e.media,"error");}),i.customControls&&setTimeout(()=>S.build.call(e),0);}};function yi(e){if(a.empty(e))return null;const i=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/,t=e.match(i);return t&&t[2]?t[2]:e;}function ne(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,v.call(this,this.media,e?"play":"pause"));}function vi(e){if(e.noCookie)return "https://www.youtube-nocookie.com";if(window.location.protocol==="http:")return "http://www.youtube.com";}const fe={setup(){if(E(this.elements.wrapper,this.config.classNames.embed,!0),a.object(window.YT)&&a.function(window.YT.Player))fe.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{a.function(e)&&e(),fe.ready.call(this);},Ne(this.config.urls.youtube.sdk).catch((i)=>{this.debug.warn("YouTube API failed to load",i);});}},getTitle(e){const i=Ee(this.config.urls.youtube.api,e);ie(i).then((t)=>{if(a.object(t)){const {title:s,height:n,width:r}=t;this.config.title=s,S.setTitle.call(this),this.embed.ratio=it(r,n);}X.call(this);}).catch(()=>{X.call(this);});},ready(){const e=this,i=e.config.youtube,t=e.media&&e.media.getAttribute("id");if(!a.empty(t)&&t.startsWith("youtube-"))return;let s=e.media.getAttribute("src");a.empty(s)&&(s=e.media.getAttribute(this.config.attributes.embed.id));
6const n=yi(s),r=ei(e.provider),l=y("div",{id:r,"data-poster":i.customControls?e.poster:void 0});if(e.media=oe(l,e.media),i.customControls){const o=(c)=>`https://i.ytimg.com/vi/${n}/${c}default.jpg`;me(o("maxres"),121).catch(()=>me(o("sd"),121)).catch(()=>me(o("hq"))).then((c)=>S.setPoster.call(e,c.src)).then((c)=>{c.includes("maxres")||(e.elements.poster.style.backgroundSize="cover");}).catch(()=>{});}e.embed=new window.YT.Player(e.media,{videoId:n,host:vi(i),playerVars:L({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&i.customControls?0:1,disablekb:1,playsinline:e.config.playsinline&&!e.config.fullscreen.iosNative?1:0,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},i),events:{onError(o){if(!e.media.error){const c=o.data,u={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."}[c]||"An unknown error occurred";e.media.error={code:c,message:u},v.call(e,e.media,"error");}},onPlaybackRateChange(o){const c=o.target;e.media.playbackRate=c.getPlaybackRate(),v.call(e,e.media,"ratechange");},onReady(o){if(a.function(e.media.play))return;const c=o.target;fe.getTitle.call(e,n),e.media.play=()=>{ne.call(e,!0),c.playVideo();},e.media.pause=()=>{ne.call(e,!1),c.pauseVideo();},e.media.stop=()=>{c.stopVideo();},e.media.duration=c.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get(){return Number(c.getCurrentTime());},set(h){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,v.call(e,e.media,"seeking"),c.seekTo(h);}}),Object.defineProperty(e.media,"playbackRate",{get(){return c.getPlaybackRate();},set(h){c.setPlaybackRate(h);}});let {volume:u}=e.config;Object.defineProperty(e.media,"volume",{get(){return u;},set(h){u=h,c.setVolume(u*100),v.call(e,e.media,"volumechange");}});let {muted:p}=e.config;Object.defineProperty(e.media,"muted",{get(){return p;},set(h){const g=a.boolean(h)?h:p;p=g,c[g?"mute":"unMute"](),c.setVolume(u*100),v.call(e,e.media,"volumechange");}}),Object.defineProperty(e.media,"currentSrc",{get(){return c.getVideoUrl();}}),Object.defineProperty(e.media,"ended",{get(){return e.currentTime===e.duration;}});const b=c.getAvailablePlaybackRates();e.options.speed=b.filter((h)=>e.config.speed.options.includes(h)),e.supported.ui&&i.customControls&&e.media.setAttribute("tabindex",-1),v.call(e,e.media,"timeupdate"),v.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(()=>{e.media.buffered=c.getVideoLoadedFraction(),(e.media.lastBuffered===null||e.media.lastBuffered<e.media.buffered)&&v.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,e.media.buffered===1&&(clearInterval(e.timers.buffering),v.call(e,e.media,"canplaythrough"));},200),i.customControls&&setTimeout(()=>S.build.call(e),50);},onStateChange(o){const c=o.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(o.data)&&(e.media.seeking=!1,v.call(e,e.media,"seeked")),o.data){case -1:v.call(e,e.media,"timeupdate"),e.media.buffered=c.getVideoLoadedFraction(),v.call(e,e.media,"progress");break;case 0:ne.call(e,!1),e.media.loop?(c.stopVideo(),c.playVideo()):v.call(e,e.media,"ended");break;case 1:i.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(ne.call(e,!0),v.call(e,e.media,"playing"),e.timers.playing=setInterval(()=>{v.call(e,e.media,"timeupdate");},50),e.media.duration!==c.getDuration()&&(e.media.duration=c.getDuration(),v.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),ne.call(e,!1);break;case 3:v.call(e,e.media,"waiting");break;}v.call(e,e.elements.container,"statechange",!1,{code:o.data});}}});}},ht={setup(){if(!this.media){this.debug.warn("No media element found!");return;}E(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),E(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&E(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=y("div",{class:this.config.classNames.video}),Xe(this.media,this.elements.wrapper),this.elements.poster=y("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?W.setup.call(this):this.isYouTube?fe.setup.call(this):this.isVimeo&&xe.setup.call(this);}};function wi(e){e.manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove();}class ki{constructor(i){m(this,"load",()=>{this.enabled&&(!a.object(window.google)||!a.object(window.google.ima)?Ne(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready();}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"));}):this.ready());}),m(this,"ready",()=>{this.enabled||wi(this),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()");}),this.listeners(),this.setupIMA();}),m(this,"setupIMA",()=>{this.elements.container=y("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();}),m(this,"requestAds",()=>{const {container:t}=this.player.elements;try{const s=new google.ima.AdsRequest();s.adTagUrl=this.tagUrl,s.linearAdSlotWidth=t.offsetWidth,s.linearAdSlotHeight=t.offsetHeight,s.nonLinearAdSlotWidth=t.offsetWidth,s.nonLinearAdSlotHeight=t.offsetHeight,s.forceNonLinearFullSlot=!1,s.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(s);}catch(s){this.onAdError(s);}}),m(this,"pollCountdown",(t=!1)=>
6{if(!t){clearInterval(this.countdownTimer),this.elements.container.removeAttribute("data-badge-text");return;}const s=()=>{const n=de(Math.max(this.manager.getRemainingTime(),0)),r=`${O.get("advertisement",this.player.config)} - ${n}`;this.elements.container.setAttribute("data-badge-text",r);};this.countdownTimer=setInterval(s,100);}),m(this,"onAdsManagerLoaded",(t)=>{if(!this.enabled)return;const s=new google.ima.AdsRenderingSettings();s.restoreCustomPlaybackStateOnAdBreakComplete=!0,s.enablePreloading=!0,this.manager=t.getAdsManager(this.player,s),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(n)=>this.onAdError(n)),Object.keys(google.ima.AdEvent.Type).forEach((n)=>{this.manager.addEventListener(google.ima.AdEvent.Type[n],(r)=>this.onAdEvent(r));}),this.trigger("loaded");}),m(this,"addCuePoints",()=>{a.empty(this.cuePoints)||this.cuePoints.forEach((t)=>{if(t!==0&&t!==-1&&t<this.player.duration){const s=this.player.elements.progress;if(a.element(s)){const n=100/this.player.duration*t,r=y("span",{class:this.player.config.classNames.cues});r.style.left=`${n.toString()}%`,s.appendChild(r);}}});}),m(this,"onAdEvent",(t)=>{const {container:s}=this.player.elements,n=t.getAd(),r=t.getAdData();switch(((o)=>{v.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),n.isLinear()||(n.width=s.offsetWidth,n.height=s.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()}`);break;}}),m(this,"onAdError",(t)=>{this.cancel(),this.player.debug.warn("Ads error",t);}),m(this,"listeners",()=>{const {container:t}=this.player.elements;let s;this.player.on("canplay",()=>{this.addCuePoints();}),this.player.on("ended",()=>{this.loader.contentComplete();}),this.player.on("timeupdate",()=>{s=this.player.currentTime;}),this.player.on("seeked",()=>{const n=this.player.currentTime;a.empty(this.cuePoints)||this.cuePoints.forEach((r,l)=>{s<r&&r<n&&(this.manager.discardAdBreak(),this.cuePoints.splice(l,1));});}),window.addEventListener("resize",()=>{this.manager&&this.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL);});}),m(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(s){this.onAdError(s);}}).catch(()=>{});}),m(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,F(this.player.media.play());}),m(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause();}),m(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds();}),m(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(()=>{});}),m(this,"trigger",(t,...s)=>{const n=this.events[t];a.array(n)&&n.forEach((r)=>{a.function(r)&&r.apply(this,s);});}),m(this,"on",(t,s)=>(a.array(this.events[t])||(this.events[t]=[]),this.events[t].push(s),this)),m(this,"startSafetyTimer",(t,s)=>{this.player.debug.log(`Safety timer invoked from: ${s}`),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()");},t);}),m(this,"clearSafetyTimer",(t)=>{a.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${t}`),clearTimeout(this.safetyTimer),this.safetyTimer=null);}),this.player=i,this.config=i.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,s)=>{this.on("loaded",t),this.on("error",s);}),this.load();}get enabled(){const {config:i}=this;return this.player.isHTML5&&this.player.isVideo&&i.enabled&&(!a.empty(i.publisherId)||a.url(i.tagUrl));}get tagUrl(){const {config:i}=this;if(a.url(i.tagUrl))return i.tagUrl;const t={AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:i.publisherId};return `https://go.aniview.com/api/adserver6/vast/?${ot(t)}`;}}function dt(e=0,i=0,t=255){return Math.min(Math.max(e,i),t);}function Ti(e){const i=[];
6return e.split(/\r\n\r\n|\n\n|\r\r/).forEach((s)=>{const n={};s.split(/\r\n|\n|\r/).forEach((l)=>{if(a.number(n.startTime)){if(!a.empty(l.trim())&&a.empty(n.text)){const o=l.trim().split("#xywh=");[n.text]=o,o[1]&&([n.x,n.y,n.w,n.h]=o[1].split(","));}}else{const o=l.match(/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})( ?--> ?)(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/);o&&(n.startTime=Number(o[1]||0)*60*60+Number(o[2])*60+Number(o[3])+ +`0.${o[4]}`,n.endTime=Number(o[6]||0)*60*60+Number(o[7])*60+Number(o[8])+ +`0.${o[9]}`);}}),n.text&&i.push(n);}),i;}function mt(e,i){const t=i.width/i.height,s={};return e>t?(s.width=i.width,s.height=1/e*i.width):(s.height=i.height,s.width=e*i.height),s;}class Le{constructor(i){m(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);});}),m(this,"getThumbnails",()=>new Promise((t)=>{const {src:s}=this.player.config.previewThumbnails;if(a.empty(s))throw new Error("Missing previewThumbnails.src config attribute");const n=()=>{this.thumbnails.sort((r,l)=>r.height-l.height),this.player.debug.log("Preview thumbnails",this.thumbnails),t();};if(a.function(s))s((r)=>{this.thumbnails=r,n();});else{const l=(a.string(s)?[s]:s).map((o)=>this.getThumbnail(o));Promise.all(l).then(n);}})),m(this,"getThumbnail",(t)=>new Promise((s)=>{ie(t,void 0,this.player.config.previewThumbnails.withCredentials).then((n)=>{const r={frames:Ti(n),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 l=new Image();l.onload=()=>{r.height=l.naturalHeight,r.width=l.naturalWidth,this.thumbnails.push(r),s();},l.src=r.urlPrefix+r.frames[0].text;});})),m(this,"startMove",(t)=>{if(this.loaded&&!(!a.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 s,n;const r=this.player.elements.progress.getBoundingClientRect(),l=100/r.width*(t.pageX-r.left);this.seekTime=this.player.media.duration*(l/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.textContent=de(this.seekTime);const o=(s=this.player.config.markers)===null||s===void 0||(n=s.points)===null||n===void 0?void 0:n.find(({time:c})=>c===Math.round(this.seekTime));o&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${o.label}<br>`);}this.showImageAtCurrentTime();}}),m(this,"endMove",()=>{this.toggleThumbContainer(!1,!0);}),m(this,"startScrubbing",(t)=>{(a.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()));}),m(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):Te.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1);});}),m(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;});}),m(this,"render",()=>{this.elements.thumb.container=y("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=y("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const t=y("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=y("span",{},"00:00"),t.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(t),a.element
6(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=y("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container);}),m(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove();}),m(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const t=this.thumbnails[0].frames.findIndex((r)=>this.seekTime>=r.startTime&&this.seekTime<=r.endTime),s=t>=0;let n=0;this.mouseDown||this.toggleThumbContainer(s),s&&(this.thumbnails.forEach((r,l)=>{this.loadedImages.includes(r.frames[t].text)&&(n=l);}),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(n)));}),m(this,"loadImage",(t=0)=>{const s=this.showingThumb,n=this.thumbnails[t],{urlPrefix:r}=n,l=n.frames[s],o=n.frames[s].text,c=r+o;if(!this.currentImageElement||this.currentImageElement.dataset.filename!==o){this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const u=new Image();u.src=c,u.dataset.index=s,u.dataset.filename=o,this.showingThumbFilename=o,this.player.debug.log(`Loading image: ${c}`),u.onload=()=>this.showImage(u,l,t,s,o,!0),this.loadingImage=u,this.removeOldImages(u);}else this.showImage(this.currentImageElement,l,t,s,o,!1),this.currentImageElement.dataset.index=s,this.removeOldImages(this.currentImageElement);}),m(this,"showImage",(t,s,n,r,l,o=!0)=>{this.player.debug.log(`Showing thumb: ${l}. num: ${r}. qual: ${n}. newimg: ${o}`),this.setImageSizeAndOffset(t,s),o&&(this.currentImageContainer.appendChild(t),this.currentImageElement=t,this.loadedImages.includes(l)||this.loadedImages.push(l)),this.preloadNearby(r,!0).then(this.preloadNearby(r,!1)).then(this.getHigherQuality(n,t,s,l));}),m(this,"removeOldImages",(t)=>{Array.from(this.currentImageContainer.children).forEach((s)=>{if(s.tagName.toLowerCase()!=="img")return;const n=this.usingSprites?500:1e3;if(s.dataset.index!==t.dataset.index&&!s.dataset.deleting){s.dataset.deleting=!0;const {currentImageContainer:r}=this;setTimeout(()=>{r.removeChild(s),this.player.debug.log(`Removing thumb: ${s.dataset.filename}`);},n);}});}),m(this,"preloadNearby",(t,s=!0)=>new Promise((n)=>{setTimeout(()=>{const r=this.thumbnails[0].frames[t].text;if(this.showingThumbFilename===r){let l;s?l=this.thumbnails[0].frames.slice(t):l=this.thumbnails[0].frames.slice(0,t).reverse();let o=!1;l.forEach((c)=>{const u=c.text;if(u!==r&&!this.loadedImages.includes(u)){o=!0,this.player.debug.log(`Preloading thumb filename: ${u}`);const {urlPrefix:p}=this.thumbnails[0],b=p+u,h=new Image();h.src=b,h.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${u}`),this.loadedImages.includes(u)||this.loadedImages.push(u),n();};}}),o||n();}},300);})),m(this,"getHigherQuality",(t,s,n,r)=>{if(t<this.thumbnails.length-1){let l=s.naturalHeight;this.usingSprites&&(l=n.h),l<this.thumbContainerHeight&&setTimeout(()=>{this.showingThumbFilename===r&&(this.player.debug.log(`Showing higher quality thumb for: ${r}`),this.loadImage(t+1));},300);}}),m(this,"toggleThumbContainer",(t=!1,s=!1)=>{const n=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(n,t),!t&&s&&(this.showingThumb=null,this.showingThumbFilename=null);}),m(this,"toggleScrubbingContainer",(t=!1)=>{const s=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(s,t),t||(this.showingThumb=null,this.showingThumbFilename=null);}),m(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0);}),m(this,"setThumbContainerSizeAndPos",()=>{const {imageContainer:t}=this.elements.thumb;if(this.sizeSpecifiedInCSS)if(t.clientHeight>20&&t.clientWidth<20){const s=Math.floor(t.clientHeight*this.thumbAspectRatio);t.style.width=`${s}px`;}else{if(t.clientHeight<20&&t.clientWidth>20){const s=Math.floor(t.clientWidth/this.thumbAspectRatio);t.style.height=`${s}px`;}}else{const s=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);t.style.height=`${this.thumbContainerHeight}px`,t.style.width=`${s}px`;}this.setThumbContainerPos();}),m(this,"setThumbContainerPos",()=>{const t=this.player.elements.progress.getBoundingClientRect(),s=this.player.elements.container.getBoundingClientRect(),{container:n}=this.elements.thumb,r=s.left-t.left+10,l=s.right-t.left-n.clientWidth-10,o=this.mousePosX-t.left-n.clientWidth/2,c=dt(o,r,l);n.style.left=`${c}px`,n.style.setProperty("--preview-arrow-offset",`${o-c}px`);}),m(this,"setScrubbingContainerSize",()=>{const {width:t,height:s}=mt(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=`${s}px`;}),m(this,"setImageSizeAndOffset",(t,s)=>{if(!this.usingSprites)return;const n=this.thumbContainerHeight/s.h;t.style.height=`${t.naturalHeight*n}
6px`,t.style.width=`${t.naturalWidth*n}px`,t.style.left=`-${s.x*n}px`,t.style.top=`-${s.y*n}px`;}),this.player=i,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:i}=mt(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return i;}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(i){this.mouseDown?this.currentScrubbingImageElement=i:this.currentThumbnailImageElement=i;}}const $e={insertElements(e,i){a.string(i)?Qe(e,this.media,{src:i}):a.array(i)&&i.forEach((t)=>{Qe(e,this.media,t);});},change(e){if(!Ye(e,"sources.length")){this.debug.warn("Invalid source format");return;}W.cancelRequests.call(this),this.destroy(()=>{this.options.quality=[],B(this.media),this.media=null,a.element(this.elements.container)&&this.elements.container.removeAttribute("class");const {sources:i,type:t}=e,[{provider:s=z.html5,src:n}]=i,r=s==="html5"?t:"div",l=s==="html5"?{}:{src:n};Object.assign(this,{provider:s,type:t,supported:$.check(t,s,this.config.playsinline),media:y(r,l)}),this.elements.container.appendChild(this.media),a.boolean(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),a.empty(e.poster)||(this.poster=e.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),S.addStyleHook.call(this),this.isHTML5&&$e.insertElements.call(this,"source",i),this.config.title=e.title,ht.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&$e.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&S.build.call(this),this.isHTML5&&this.media.load(),a.empty(e.previewThumbnails)||(Object.assign(this.config.previewThumbnails,e.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Le(this))),this.fullscreen.update();},!0);}};class re{constructor(i,t){if(m(this,"play",()=>a.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>F(this.media.play())),this.media.play()):null),m(this,"pause",()=>!this.playing||!a.function(this.media.pause)?null:this.media.pause()),m(this,"togglePlay",(o)=>(a.boolean(o)?o:!this.playing)?this.play():this.pause()),m(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):a.function(this.media.stop)&&this.media.stop();}),m(this,"restart",()=>{this.currentTime=0;}),m(this,"rewind",(o)=>{this.currentTime-=a.number(o)?o:this.config.seekTime;}),m(this,"forward",(o)=>{this.currentTime+=a.number(o)?o:this.config.seekTime;}),m(this,"increaseVolume",(o)=>{const c=this.media.muted?0:this.volume;this.volume=c+(a.number(o)?o:0);}),m(this,"decreaseVolume",(o)=>{this.increaseVolume(-o);}),m(this,"airplay",()=>{$.airplay&&this.media.webkitShowPlaybackTargetPicker();}),m(this,"toggleControls",(o)=>{if(this.supported.ui&&!this.isAudio){const c=ce(this.elements.container,this.config.classNames.hideControls),u=typeof o>"u"?void 0:!o,p=E(this.elements.container,this.config.classNames.hideControls,u);if(p&&a.array(this.config.controls)&&this.config.controls.includes("settings")&&!a.empty(this.config.settings)&&d.toggleMenu.call(this,!1),p!==c){const b=p?"controlshidden":"controlsshown";v.call(this,this.media,b);}return !p;}return !1;}),m(this,"on",(o,c)=>{T.call(this,this.elements.container,o,c);}),m(this,"once",(o,c)=>{Te.call(this,this.elements.container,o,c);}),m(this,"off",(o,c)=>{ue(this.elements.container,o,c);}),m(this,"destroy",(o,c=!1)=>
6{if(!this.ready)return;const u=()=>{document.body.style.overflow="",this.embed=null,c?(Object.keys(this.elements).length&&(B(this.elements.buttons.play),B(this.elements.captions),B(this.elements.controls),B(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),a.function(o)&&o()):(zt.call(this),W.cancelRequests.call(this),oe(this.elements.original,this.elements.container),v.call(this,this.elements.original,"destroyed",!0),a.function(o)&&o.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?(S.toggleNativeControls.call(this,!0),u()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),this.embed!==null&&a.function(this.embed.destroy)&&this.embed.destroy(),u()):this.isVimeo&&(this.embed!==null&&this.embed.unload().then(u),setTimeout(u,200));}),m(this,"supports",(o)=>$.mime.call(this,o)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=$.touch,this.media=i,a.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||a.nodeList(this.media)||a.array(this.media))&&(this.media=this.media[0]),this.config=L({},ct,re.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 ci(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",$),a.nullOrUndefined(this.media)||!a.element(this.media)){this.debug.error("Setup failed: no suitable element passed");return;}if(this.media.plyr){this.debug.warn("Target already setup");return;}if(!this.config.enabled){this.debug.error("Setup failed: disabled by config");return;}if(!$.check().api){this.debug.error("Setup failed: no support");return;}const s=this.media.cloneNode(!0);s.autoplay=!1,this.elements.original=s;const n=this.media.tagName.toLowerCase();let r=null,l=null;switch(n){case "div":if(r=this.media.querySelector("iframe"),a.element(r)){if(l=lt(r.getAttribute("src")),this.provider=oi(l.toString()),this.elements.container=this.media,this.media=r,this.elements.container.className="",l.search.length){const o=["1","true"];o.includes(l.searchParams.get("autoplay"))&&(this.config.autoplay=!0),o.includes(l.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=o.includes(l.searchParams.get("playsinline")),this.config.youtube.hl=l.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(a.empty(this.provider)||!Object.values(z).includes(this.provider)){this.debug.error("Setup failed: Invalid provider");return;}this.type=Pe.video;break;case "video":case "audio":this.type=n,this.provider=z.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:this.debug.error("Setup failed: unsupported type");return;}if(this.supported=$.check(this.type,this.provider),!this.supported.api){this.debug.error("Setup failed: no support");return;}this.eventListeners=[],this.listeners=new ui(this),this.storage=new te(this),this.media.plyr=this,a.element(this.elements.container)||(this.elements.container=y("div"),Xe(this.media,this.elements.container)),S.migrateStyles.call(this),S.addStyleHook.call(this),ht.setup.call(this),this.config.debug&&T.call(this,this.elements.container,this.config.events.join(" "),(o)=>{this.debug.log(`event: ${o.type}`);}),this.fullscreen=new H(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&S.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new ki(this)),this.isHTML5&&this.config.auto
6play&&this.once("canplay",()=>F(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Le(this));}get isHTML5(){return this.provider===z.html5;}get isEmbed(){return this.isYouTube||this.isVimeo;}get isYouTube(){return this.provider===z.youtube;}get isVimeo(){return this.provider===z.vimeo;}get isVideo(){return this.type===Pe.video;}get isAudio(){return this.type===Pe.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(i){if(!this.duration)return;const t=a.number(i)&&i>0;this.media.currentTime=t?Math.min(i,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`);}get currentTime(){return Number(this.media.currentTime);}get buffered(){const {buffered:i}=this.media;return a.number(i)?i:i&&i.length&&this.duration>0?i.end(0)/this.duration:0;}get seeking(){return !!this.media.seeking;}get duration(){const i=Number.parseFloat(this.config.duration),t=(this.media||{}).duration,s=!a.number(t)||t===1/0?0:t;return i||s;}set volume(i){let t=i;const s=1,n=0;a.string(t)&&(t=Number(t)),a.number(t)||(t=this.storage.get("volume")),a.number(t)||({volume:t}=this.config),t>s&&(t=s),t<n&&(t=n),this.config.volume=t,this.media.volume=t,!a.empty(i)&&this.muted&&t>0&&(this.muted=!1);}get volume(){return Number(this.media.volume);}set muted(i){let t=i;a.boolean(t)||(t=this.storage.get("muted")),a.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?!0:!!this.media.mozHasAudio||!!this.media.webkitAudioDecodedByteCount||!!(this.media.audioTracks&&this.media.audioTracks.length);}set speed(i){let t=null;a.number(i)&&(t=i),a.number(t)||(t=this.storage.get("speed")),a.number(t)||(t=this.config.speed.selected);const {minimumSpeed:s,maximumSpeed:n}=this;t=dt(t,s,n),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(i){const t=this.config.quality,s=this.options.quality;if(!s.length)return;let n=[!a.empty(i)&&Number(i),this.storage.get("quality"),t.selected,t.default].find(a.number),r=!0;if(!s.includes(n)){const l=Ge(s,n);this.debug.warn(`Unsupported quality option: ${n}, using ${l} instead`),n=l,r=!1;}t.selected=n,this.media.quality=n,r&&this.storage.set({quality:n});}get quality(){return this.media.quality;}set loop(i){const t=a.boolean(i)?i:this.config.loop.active;this.config.loop.active=t,this.media.loop=t;}get loop(){return !!this.media.loop;}set source(i){$e.change.call(this,i);}get source(){return this.media.currentSrc;}get download(){const {download:i}=this.config.urls;return a.url(i)?i:this.source;}set download(i){a.url(i)&&(this.config.urls.download=i,d.setDownloadUrl.call(this));}set poster(i){if(!this.isVideo){this.debug.warn("Poster can only be set for video");return;}S.setPoster.call(this,i,!1).catch(()=>{});}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null;}get ratio(){if(!this.isVideo)return null;const i=he(Ae.call(this));return a.array(i)?i.join(":"):i;}set ratio(i){if(!this.isVideo){this.debug.warn("Aspect ratio can only be set for video");return;}if(!a.string(i)||!tt(i)){this.debug.error(`Invalid aspect ratio specified (${i})`);return;}this.config.ratio=he(i),X.call(this);}set autoplay(i){this.config.autoplay=a.boolean(i)?i:this.config.autoplay;}get autoplay(){return !!this.config.autoplay;}toggleCaptions(i){C.toggle.call(this,i,!1);}set currentTrack(i){C.set.call(this,i,!1),C.setup.call(this);}get currentTrack(){const {toggled:i,currentTrack:t}=this.captions;return i?t:-1;}set language(i){C.setLanguage.call(this,i,!1);}get language(){return (C.getCurrentTrack.call(this)||{}).language;}set pip(i){if(!$.pip)return;const t=a.boolean(i)?i:!this.pip;a.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?Se.active:Se.inactive),a.function(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture());}get pip(){return $.pip?a.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Se.active:null;}setPreviewThumbnails(i){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,i),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Le(this));}
6static supported(i,t){return $.check(i,t);}static loadSprite(i,t){return rt(i,t);}static setup(i,t={}){let s=null;return a.string(i)?s=Array.from(document.querySelectorAll(i)):a.nodeList(i)?s=Array.from(i):a.array(i)&&(s=i.filter(a.element)),a.empty(s)?null:s.map((n)=>new re(n,t));}}re.defaults=Ft(ct),window.se=window.se||{},window.se.plyr=re;})();;
7(function(){"use strict";window.se=window.se||{},window.se.behaviors=window.se.behaviors||{},window.se.behaviors.video=function(r){const f=r instanceof Element&&r.classList&&r.classList.contains("js-video-player")?[r]:r.querySelectorAll(".js-video-player, .js-video-legacy"),w=window.matchMedia("(prefers-reduced-motion: reduce)"),l=()=>{const t=parseInt(localStorage.getItem("stoppedMotion"));return t>0&&Date.now()-t<24*60*60*1e3;};let v=!1;navigator.connection&&(v=["slow-2g","2g","slow-3g","3g"].includes(navigator.connection.effectiveType)),f.forEach((t)=>{if(t.hasAttribute("data-init"))return;t.setAttribute("data-init","1"),t.backgroundVideo=!!(t.closest(".hero__background")||t.closest(".text-background__background")),t.hasAttribute("autoplay")&&(t.removeAttribute("autoplay"),t.setAttribute("data-autoplay","true"));const s=()=>t.hasAttribute("data-autoplay"),m=()=>s()&&!w.matches&&!l(),k={settings:[],controls:t.hasAttribute("controls")?["play-large","play","progress","current-time","mute","volume","captions","fullscreen"]:["play"],hideControls:t.hasAttribute("controls"),autoplay:!1,muted:t.hasAttribute("muted"),volume:t.hasAttribute("muted")?0:1,storage:{enabled:!s()}},e=new window.se.plyr(t,k),d=t.closest(".plyr");let p=0;d&&["pointerdown","keydown"].forEach((o)=>{d.addEventListener(o,()=>{p=Date.now();},!0);});const M=()=>Date.now()-p<1e3,g=()=>t.getClientRects().length>0||!!t.offsetParent,i={play:!1,pause:!1},u=(o)=>{i[o]=!0,window.setTimeout(()=>{i[o]=!1;},500);};let c=!1,a=null;const b=()=>{c||!s()||t.paused||(u("pause"),t.pause());},h=()=>{c||!s()||!t.paused||!g()||(u("play"),Promise.resolve(t.play()).catch(()=>{}));};window.addEventListener("stoppedMotion",b),window.addEventListener("startedMotion",h),s()&&"IntersectionObserver" in window&&(a=new IntersectionObserver((o)=>{o.forEach((n)=>{if(!c){if(n.isIntersecting){t.paused&&m()&&Promise.resolve(t.play()).catch(()=>{});return;}t.paused||(u("pause"),t.pause());}});}),a.observe(t)),e.on("ready",(o)=>{if((v||w.matches)&&t.backgroundVideo){c=!0,window.removeEventListener("stoppedMotion",b),window.removeEventListener("startedMotion",h),a&&a.disconnect(),u("pause"),e.destroy();return;}e.volume=0,s()&&(e.muted=!0),!a&&m()&&g()&&Promise.resolve(t.play()).catch(()=>{});}),e.on("playing",(o)=>{s()||f.forEach((n)=>{n!==t&&(typeof n.backgroundVideo>"u"&&(n.backgroundVideo=!!(n.closest(".hero__background")||n.closest(".text-background__background"))),n.backgroundVideo||n.pause());});});const E=d?d.querySelector(".plyr__controls"):null;E&&["mousedown","touchstart"].forEach((o)=>{E.addEventListener(o,(n)=>{n.stopPropagation();},!0);}),e.on("pause",(o)=>{if(i.pause){i.pause=!1;return;}document.visibilityState!=="hidden"&&M()&&s()&&!l()&&(localStorage.setItem("stoppedMotion",Date.now().toString()),window.dispatchEvent(new CustomEvent("stoppedMotion")));}),e.on("volumechange",()=>{const o=e.muted,n=e.volume;!o&&n===0&&(e.volume=1,e.muted=!0);}),e.on("play",(o)=>{if(i.play){i.play=!1;return;}!s()&&e.muted&&e.increaseVolume(.5),s()&&l()&&(localStorage.setItem("stoppedMotion","0"),window.dispatchEvent(new CustomEvent("startedMotion")));});});};})();;
8(function(){"use strict";window.se=window.se||{},window.se.behaviors=window.se.behaviors||{},window.se.behaviors.cardDialog=function(o){(o instanceof Element&&o.classList.contains("card")?[o]:o.querySelectorAll(".card")).forEach((t)=>{if(t.hasAttribute("data-dialog"))return;t.setAttribute("data-dialog","1");const r=t.getAttribute("data-primary-action"),a=r.length>0;a&&(t.classList.add("card-cursor-pointer"),t.addEventListener("click",(i)=>{window.location.href=r;}));const l=t.querySelectorAll(".card__popup-dialog__text");l.forEach((i)=>{i.scrollHeight>i.clientHeight&&i.classList.add("card__popup-dialog__text--scroll"),i.addEventListener("scroll",()=>{i.classList.toggle("card__popup-dialog__text--scroll",i.scrollTop+i.clientHeight<i.scrollHeight);});});const s=t.querySelector(".js-button-dialog");s&&!a&&(t.classList.add("card-cursor-pointer"),t.addEventListener("click",(i)=>
8{i.target.closest(".js-button-dialog")||s.click();}),s.addEventListener("click",(i)=>{i.stopPropagation(),l.forEach((e)=>{e.scrollHeight>e.clientHeight&&e.classList.add("card__popup-dialog__text--scroll");});}));});};})();;
9(function(){"use strict";window.se=window.se||{},window.se.behaviors=window.se.behaviors||{},window.se.behaviors.sectionAnimations=function(o){const i=o instanceof Element&&o.classList&&o.classList.contains("section--animations")?[o]:o.querySelectorAll(".section--animations"),e=window.matchMedia("(prefers-reduced-motion: reduce)"),s=parseInt(localStorage.getItem("stoppedMotion")),n=s>0&&Date.now()-s<24*60*60*1e3;(e.matches||n)&&i.forEach((t)=>{t.classList.remove("section--animations");});};})();;
10(function(){"use strict";var F=function(){return F=Object.assign||function(t){for(var a,e=1,w=arguments.length;e<w;e++)for(var p in a=arguments[e])Object.prototype.hasOwnProperty.call(a,p)&&(t[p]=a[p]);return t;},F.apply(this,arguments);};function tt(t,a,e){for(var w,p=0,f=a.length;p<f;p++)!w&&p in a||(w||(w=Array.prototype.slice.call(a,0,p)),w[p]=a[p]);return t.concat(w||Array.prototype.slice.call(a));}function et(t){return Array.prototype.slice.call(t);}function it(t,a){var e=Math.floor(t);return e===a||e+1===a?t:a;}function nt(){return Date.now();}function U(t,a,e){if(a="data-keen-slider-"+a,e===null)return t.removeAttribute(a);t.setAttribute(a,e||"");}function K(t,a){return a=a||document,typeof t=="function"&&(t=t(a)),Array.isArray(t)?t:typeof t=="string"?et(a.querySelectorAll(t)):t instanceof HTMLElement?[t]:t instanceof NodeList?et(t):[];}function X(t){t.raw&&(t=t.raw),t.cancelable&&!t.defaultPrevented&&t.preventDefault();}function Y(t){t.raw&&(t=t.raw),t.stopPropagation&&t.stopPropagation();}function at(){var t=[];return {add:function(a,e,w,p){a.addListener?a.addListener(w):a.addEventListener(e,w,p),t.push([a,e,w,p]);},input:function(a,e,w,p){this.add(a,e,function(f){return function(l){l.nativeEvent&&(l=l.nativeEvent);var C=l.changedTouches||[],m=l.targetTouches||[],b=l.detail&&l.detail.x?l.detail:null;return f({id:b?b.identifier?b.identifier:"i":m[0]?m[0]?m[0].identifier:"e":"d",idChanged:b?b.identifier?b.identifier:"i":C[0]?C[0]?C[0].identifier:"e":"d",raw:l,x:b&&b.x?b.x:m[0]?m[0].screenX:b?b.x:l.pageX,y:b&&b.y?b.y:m[0]?m[0].screenY:b?b.y:l.pageY});};}(w),p);},purge:function(){t.forEach(function(a){a[0].removeListener?a[0].removeListener(a[2]):a[0].removeEventListener(a[1],a[2],a[3]);}),t=[];}};}function Z(t,a,e){return Math.min(Math.max(t,a),e);}function W(t){return (t>0?1:0)-(t<0?1:0)||+t;}function rt(t){var a=t.getBoundingClientRect();return {height:it(a.height,t.offsetHeight),width:it(a.width,t.offsetWidth)};}function O(t,a,e,w){var p=t&&t[a];return p==null?e:w&&typeof p=="function"?p():p;}function B(t){return Math.round(1e6*t)/1e6;}function dt(t){var a,e,w,p,f,l;function C(i){l||(l=i),m(!0);var x=i-l;x>w&&(x=w);var v=p[e];if(v[3]<x)return e++,C(i);var L=v[2],_=v[4],c=v[0],A=v[1]*(0,v[5])(_===0?1:(x-L)/_);if(A&&t.track.to(c+A),x<w)return M();l=null,m(!1),b(null),t.emit("animationEnded");}function m(i){a.active=i;}function b(i){a.targetIdx=i;}function M(){var i;i=C,f=window.requestAnimationFrame(i);}function D(){var i;i=f,window.cancelAnimationFrame(i),m(!1),b(null),l&&t.emit("animationStopped"),l=null;}return a={active:!1,start:function(i){if(D(),t.track.details){var x=0,v=t.track.details.position;e=0,w=0,p=i.map(function(L){var _,c=Number(v),A=(_=L.earlyExit)!==null&&_!==void 0?_:L.duration,h=L.easing,z=L.distance*h(A/L.duration)||0;v+=z;var T=w;return w+=A,x+=z,[c,L.distance,T,w,L.duration,h];}),b(t.track.distToIdx(x)),M(),t.emit("animationStarted");}},stop:D,targetIdx:null};}function ct(t){var a,e,w,p,f,l,C,m,b,M,D,i,x,v,L=1/0,_=[],c=null,A=0;function h(o){y(A+o);}function z(o){var u=T(A+o).abs;return E(u)?u:null;}function T(o){var u=Math.floor(Math.abs(B(o/e))),r=B((o%e+e)%e);r===e&&(r=0);var n=W(o),s=C.indexOf(tt([],C).reduce(function(I,P){return Math.abs(P-r)<Math.abs(I-r)?P:I;})),k=s;return n<0&&u++,s===l&&(k=0,u+=n>0?1:-1),{abs:k+u*l*n,origin:s,rel:k};}function S(o,u,r){var n;if(u||!N())return g(o,r);if(!E(o))return null;var s=T(r??A),k=s.abs,I=o-s.rel,P=k+I;n=g(P);var q=g(P-l*W(I));return (q!==null&&Math.abs(q)<Math.abs(n)||n===null)&&(n=q),B(n);}function g(o,u){if(u==null&&(u=B(A)),!E(o)||o===null)return null;o=Math.round(o);var r=T(u),n=r.abs,s=r.rel,k=r.origin,I=H(o),P=(u%e+e)%e,q=C[k],j=Math.floor((o-(n-s))/l)*e;return B(q-P-q+C[I]+j+(k===l?e:0));}function E(o){return V(o)===o;}function V(o){return Z(o,b,M);}function N(){return p.loop;}function H(o){return (o%l+l)%l;}function y(o){var u;u=o-A,_.push({distance:u,timestamp:nt()}),_.length>6&&(_=_.slice(-6)),A=B(o);var r=d().abs;if(r!==c){var n=c!==null;c=r,n&&t.emit("slideChanged");}}function d(o){var u=o?null:function(){if(l){var r=N(),n=r?(A%e+e)%e:A,s=(r?A%e:A)-f[0][2],k=0-(s<0&&r?e-Math.abs(s):s),I=0,P=T(A),q=P.abs,j=P.rel,J=f[j][2],Q=f.map(function($,ht){var R=k+I;(R<0-$[0]||R>1)&&(R+=(Math.abs(R)>e-1&&r?e:0)*W(-R));var st=ht-j,ut=W(st),G=st+q;r&&(ut===-1&&R>J&&(G+=l),ut===1&&R<J&&(G-=l),D!==null&&G<D&&(R+=e),i!==null&&G>i&&(R-=e));var lt=R+$[0]+$[1],bt=Math.max(R>=0&&lt<=1?1:lt<0||R>1?0:R<0?Math.min(1,($[0]+R)/$[0]):(1-R)/$[0],0);return I+=$[0]+$[1],{abs:G,distance:p.rtl?-1*R+1-$[0]:R,portion:bt,size:$[0]};});return q=V(q),j=H(q),{abs:V(q),length:w,max:v,maxIdx:M,min:x,minIdx:b,position:A,progress:r?n/e:A/w,rel:j,slides:Q,slidesLength:e};}}();return a.details=u,t.emit("detailsChanged"),u;}return a={absToRel:H,add:h,details:null,distToIdx:z,idxToDist:S,init:function(o){if
10(function(){if(p=t.options,f=(p.trackConfig||[]).map(function(s){return [O(s,"size",1),O(s,"spacing",0),O(s,"origin",0)];}),l=f.length){e=B(f.reduce(function(s,k){return s+k[0]+k[1];},0));var r,n=l-1;w=B(e+f[0][2]-f[n][0]-f[n][2]-f[n][1]),C=f.reduce(function(s,k){if(!s)return [0];var I=f[s.length-1],P=s[s.length-1]+(I[0]+I[2])+I[1];return P-=k[2],s[s.length-1]>P&&(P=s[s.length-1]),P=B(P),s.push(P),(!r||r<P)&&(m=s.length-1),r=P,s;},null),w===0&&(m=0),C.push(B(e));}}(),!l)return d(!0);var u;(function(){var r=t.options.range,n=t.options.loop;D=b=n?O(n,"min",-1/0):0,i=M=n?O(n,"max",L):m;var s=O(r,"min",null),k=O(r,"max",null);s!==null&&(b=s),k!==null&&(M=k),x=b===-1/0?b:t.track.idxToDist(b||0,!0,0),v=M===L?M:S(M,!0,0),k===null&&(i=M),O(r,"align",!1)&&M!==L&&f[H(M)][2]===0&&(v-=1-f[H(M)][0],M=z(v-A)),x=B(x),v=B(v);})(),u=o,Number(u)===u?h(g(V(o))):d();},to:y,velocity:function(){var o=nt(),u=_.reduce(function(r,n){var s=n.distance,k=n.timestamp;return o-k>200||(W(s)!==W(r.distance)&&r.distance&&(r={distance:0,lastTimestamp:0,time:0}),r.time&&(r.distance+=s),r.lastTimestamp&&(r.time+=k-r.lastTimestamp),r.lastTimestamp=k),r;},{distance:0,lastTimestamp:0,time:0});return u.distance/u.time||0;}};}function ft(t){var a,e,w,p,f,l,C,m;function b(c){return 2*c;}function M(c){return Z(c,C,m);}function D(c){return 1-Math.pow(1-c,3);}function i(){return w?t.track.velocity():0;}function x(){_();var c=t.options.mode==="free-snap",A=t.track,h=i();p=W(h);var z=t.track.details,T=[];
10if(h||!c){var S=v(h),g=S.dist,E=S.dur;if(E=b(E),g*=p,c){var V=A.idxToDist(A.distToIdx(g),!0);V&&(g=V);}T.push({distance:g,duration:E,easing:D});var N=z.position,H=N+g;if(H<f||H>l){var y=H<f?f-N:l-N,d=0,o=h;if(W(y)===p){var u=Math.min(Math.abs(y)/Math.abs(g),1),r=function(k){return 1-Math.pow(1-k,1/3);}(u)*E;T[0].earlyExit=r,o=h*(1-u);}else T[0].earlyExit=0,d+=y;var n=v(o,100),s=n.dist*p;t.options.rubberband&&(T.push({distance:s,duration:b(n.dur),easing:D}),T.push({distance:-s+d,duration:500,easing:D}));}t.animator.start(T);}else t.moveToIdx(M(z.abs),!0,{duration:500,easing:function(k){return 1+--k*k*k*k*k;}});}function v(c,A){A===void 0&&(A=1e3);var h=147e-9+(c=Math.abs(c))/A;return {dist:Math.pow(c,2)/h,dur:c/h};}function L(){var c=t.track.details;c&&(f=c.min,l=c.max,C=c.minIdx,m=c.maxIdx);}function _(){t.animator.stop();}t.on("updated",L),t.on("optionsChanged",L),t.on("created",L),t.on("dragStarted",function(){w=!1,_(),a=e=t.track.details.abs;}),t.on("dragChecked",function(){w=!0;}),t.on("dragEnded",function(){var c=t.options.mode;c==="snap"&&function(){var A=t.track,h=t.track.details,z=h.position,T=W(i());(z>l||z<f)&&(T=0);var S=a+T;h.slides[A.absToRel(S)].portion===0&&(S-=T),a!==e&&(S=e),W(A.idxToDist(S,!0))!==T&&(S+=T),S=M(S);var g=A.idxToDist(S,!0);t.animator.start([{distance:g,duration:500,easing:function(E){return 1+--E*E*E*E*E;}}]);}(),c!=="free"&&c!=="free-snap"||x();}),t.on("dragged",function(){e=t.track.details.abs;});}function pt(t){var a,e,w,p,f,l,C,m,b,M,D,i,x,v,L,_,c,A,h=at();function z(d){if(l&&m===d.id){var o=E(d);if(b){if(!g(d))return S(d);M=o,b=!1,t.emit("dragChecked");}if(_)return M=o;X(d);var u=function(n){if(c===-1/0&&A===1/0)return n;var s=t.track.details,k=s.length,I=s.position,P=Z(n,c-I,A-I);if(k===0)return 0;if(!t.options.rubberband)return P;if(I<=A&&I>=c||I<c&&e>0||I>A&&e<0)return n;var q=(I<c?I-c:I-A)/k,j=p*k,J=Math.abs(q*j),Q=Math.max(0,1-J/f*2);return Q*Q*n;}(C(M-o)/p*w);e=W(u);var r=t.track.details.position;(r>c&&r<A||r===c&&e>0||r===A&&e<0)&&Y(d),D+=u,!i&&Math.abs(D*p)>5&&(i=!0),t.track.add(u),M=o,t.emit("dragged");}}function T(d){!l&&t.track.details&&t.track.details.length&&(D=0,l=!0,i=!1,b=!0,m=d.id,g(d),M=E(d),t.emit("dragStarted"));}function S(d){l&&m===d.idChanged&&(l=!1,t.emit("dragEnded"));}function g(d){var o=V(),u=o?d.y:d.x,r=o?d.x:d.y,n=x!==void 0&&v!==void 0&&Math.abs(v-r)<=Math.abs(x-u);return x=u,v=r,n;}function E(d){return V()?d.y:d.x;}function V(){return t.options.vertical;}function N(){p=t.size,f=V()?window.innerHeight:window.innerWidth;var d=t.track.details;d&&(c=d.min,A=d.max);}function H(d){i&&(Y(d),X(d));}function y(){if(h.purge(),t.options.drag&&!t.options.disabled){var d;d=t.options.dragSpeed||1,C=typeof d=="function"?d:function(u){return u*d;},w=t.options.rtl?-1:1,N(),a=t.container,function(){var u="data-keen-slider-clickable";K("[".concat(u,"]:not([").concat(u,"=false])"),a).map(function(r){h.add(r,"dragstart",Y),h.add(r,"mousedown",Y),h.add(r,"touchstart",Y);});}(),h.add(a,"dragstart",function(u){X(u);}),h.add(a,"click",H,{capture:!0}),h.input(a,"ksDragStart",T),h.input(a,"ksDrag",z),h.input(a,"ksDragEnd",S),h.input(a,"mousedown",T),h.input(a,"mousemove",z),h.input(a,"mouseleave",S),h.input(a,"mouseup",S),h.input(a,"touchstart",T,{passive:!0}),h.input(a,"touchmove",z,{passive:!1}),h.input(a,"touchend",S),h.input(a,"touchcancel",S),h.add(window,"wheel",function(u){l&&X(u);});var o="data-keen-slider-scrollable";K("[".concat(o,"]:not([").concat(o,"=false])"),t.container).map(function(u){return function(r){var n;h.input(r,"touchstart",function(s){n=E(s),_=!0,L=!0;},{passive:!0}),h.input(r,"touchmove",function(s){var k=V(),I=k?r.scrollHeight-r.clientHeight:r.scrollWidth-r.clientWidth,P=n-E(s),q=k?r.scrollTop:r.scrollLeft,j=k&&r.style.overflowY==="scroll"||!k&&r.style.overflowX==="scroll";if(n=E(s),(P<0&&q>0||P>0&&q<I)&&L&&j)return _=!0;L=!1,X(s),_=!1;}),h.input(r,"touchend",function(){_=!1;});}(u);});}}t.on("updated",N),t.on("optionsChanged",y),t.on("created",y),t.on("destroyed",h.purge);}function vt(t){var a,e,w=null;function p(x,v,L){t.animator.active?l(x,v,L):requestAnimationFrame(function(){return l(x,v,L);});}function f(){p(!1,!1,e);}function l(x,v,L){var _=0,c=t.size,A=t.track.details;if(A&&a){var h=A.slides;a.forEach(function(z,T){if(x)!w&&v&&m(z,null,L),b(z,null,L);else{if(!h[T])return;var S=h[T].size*c;!w&&v&&m(z,S,L),b(z,h[T].distance*c-_,L),_+=S;}});}}function C(x){return t.options.renderMode==="performance"?Math.round(x):x;}function m(x,v,L){var _=L?"height":"width";
10v!==null&&(v=C(v)+"px"),x.style["min-"+_]=v,x.style["max-"+_]=v;}function b(x,v,L){if(v!==null){v=C(v);var _=L?v:0;v="translate3d(".concat(L?0:v,"px, ").concat(_,"px, 0)");}x.style.transform=v,x.style["-webkit-transform"]=v;}function M(){a&&(l(!0,!0,e),a=null),t.on("detailsChanged",f,!0);}function D(){p(!1,!0,e);}function i(){M(),e=t.options.vertical,t.options.disabled||t.options.renderMode==="custom"||(w=O(t.options.slides,"perView",null)==="auto",t.on("detailsChanged",f),(a=t.slides).length&&D());}t.on("created",i),t.on("optionsChanged",i),t.on("beforeOptionsChanged",function(){M();}),t.on("updated",D),t.on("destroyed",M);}function gt(t,a){return function(e){var w,p,f,l,C,m=at();function b(g){var E;U(e.container,"reverse",(E=e.container,window.getComputedStyle(E,null).getPropertyValue("direction")!=="rtl"||g?null:"")),U(e.container,"v",e.options.vertical&&!g?"":null),U(e.container,"disabled",e.options.disabled&&!g?"":null);}function M(){D()&&_();}function D(){var g=null;if(l.forEach(function(V){V.matches&&(g=V.__media);}),g===w)return !1;w||e.emit("beforeOptionsChanged"),w=g;var E=g?f.breakpoints[g]:f;return e.options=F(F({},f),E),b(),T(),S(),A(),!0;}function i(g){var E=rt(g);return (e.options.vertical?E.height:E.width)/e.size||1;}function x(){return e.options.trackConfig.length;}function v(g){for(var E in w=!1,f=F(F({},a),g),m.purge(),p=e.size,l=[],f.breakpoints||[]){var V=window.matchMedia(E);V.__media=E,l.push(V),m.add(V,"change",M);}m.add(window,"orientationchange",z),m.add(window,"resize",h),D();}function L(g){e.animator.stop();var E=e.track.details;e.track.init(g??(E?E.abs:0));}function _(g){L(g),e.emit("optionsChanged");}function c(g,E){if(g)return v(g),void _(E);T(),S();var V=x();A(),x()!==V?_(E):L(E),e.emit("updated");}function A(){var g=e.options.slides;if(typeof g=="function")return e.options.trackConfig=g(e.size,e.slides);for(var E=e.slides,V=E.length,N=typeof g=="number"?g:O(g,"number",V,!0),H=[],y=O(g,"perView",1,!0),d=O(g,"spacing",0,!0)/e.size||0,o=y==="auto"?d:d/y,u=O(g,"origin","auto"),r=0,n=0;n<N;n++){var s=y==="auto"?i(E[n]):1/y-d+o,k=u==="center"?.5-s/2:u==="auto"?0:u;H.push({origin:k,size:s,spacing:d}),r+=s;}if(r+=d*(N-1),u==="auto"&&!e.options.loop&&y!==1){var I=0;H.map(function(P){var q=r-I;return I+=P.size+d,q>=1||(P.origin=1-q-(r>1?0:1-r)),P;});}e.options.trackConfig=H;}function h(){T();var g=e.size;e.options.disabled||g===p||(p=g,c());}function z(){h(),setTimeout(h,500),setTimeout(h,2e3);}function T(){var g=rt(e.container);e.size=(e.options.vertical?g.height:g.width)||1;}function S(){e.slides=K(e.options.selector,e.container);}e.container=(C=K(t,document)).length?C[0]:null,e.destroy=function(){m.purge(),e.emit("destroyed"),b(!0);},e.prev=function(){e.moveToIdx(e.track.details.abs-1,!0);},e.next=function(){e.moveToIdx(e.track.details.abs+1,!0);},e.update=c,v(e.options);};}var mt=function(t,a,e){try{return function(w,p){var f,l={};return f={emit:function(C){l[C]&&l[C].forEach(function(b){b(f);});var m=f.options&&f.options[C];m&&m(f);},moveToIdx:function(C,m,b){var M=f.track.idxToDist(C,m);if(M){var D=f.options.defaultAnimation;f.animator.start([{distance:M,duration:O(b||D,"duration",500),easing:O(b||D,"easing",function(i){return 1+--i*i*i*i*i;})}]);}},on:function(C,m,b){b===void 0&&(b=!1),l[C]||(l[C]=[]);var M=l[C].indexOf(m);M>-1?b&&delete l[C][M]:b||l[C].push(m);},options:w},function(){if(f.track=ct(f),f.animator=dt(f),p)for(var C=0,m=p;C<m.length;C++)(0,m[C])(f);f.track.init(f.options.initial||0),f.emit("created");}(),f;}(a,tt([gt(t,{drag:!0,mode:"snap",renderMode:"precision",rubberband:!0,selector:".keen-slider__slide"}),vt,pt,ft],e||[],!0));}catch(w){console.error(w);}};window.se=window.se||{},window.se.behaviors=window.se.behaviors||{};let ot=1;window.se.behaviors.slider=function(t){(t instanceof Element&&t.classList&&t.classList.contains("js-slider")?[t]:t.querySelectorAll(".js-slider")).forEach(function(e){if(e.hasAttribute("data-slider"))return;e.setAttribute("data-slider","1");const w=`carousel-${ot}`;e.setAttribute("id",w),ot+=1;const p=e.getAttribute("data-columns")?parseInt(e.getAttribute("data-columns")):1;e.hasAttribute("data-loop")&&e.hasAttribute("data-clone-loop-elements")&&e.children.length<=p&&(e.innerHTML+=e.innerHTML);const f=e.getAttribute("data-full")?parseInt(e.getAttribute("data-full")):!1,l=e.getAttribute("data-spacing")?20:0,C=e.classList.contains("slider--centered");let m={};p===1&&(m["(min-width: "+parseInt(window.getComputedStyle(document.body).getPropertyValue("--breakpoint-small"))+"px)"]={slides:{origin:"center",perView:f?1:1.2,spacing:l}}),p===2&&(m["(min-width: "+parseInt(window.getComputedStyle(document.body).getPropertyValue("--breakpoint-small"))+"px)"]={slides:{perView:2,spacing:l}}),p===3&&(m["(min-width: "+parseInt(window.getComputedStyle(document.body).getPropertyValue("--breakpoint-small"))+"px)"]={slides:{origin:C?"center":"auto",perView:3,spacing:l}}),p===4&&(m["(min-width: "+parseInt(window.getComputedStyle(document.body).getPropertyValue("--breakpoint-small"))+"px)"]={slides:{perView:2,spacing:l}},m["(min-width: "+parseInt(window.getComputedStyle(document.body).getPropertyValue("--breakpoint-large"))+"px)"]={slides:{perView:4,spacing:l}}),p===5&&(m["(min-width: "+parseInt(window.getComputedStyle(document.body).getPropertyValue("--breakpoint-small"))+"px)"]={slides:{origin:C?"center":"auto",perView:3,spacing:l}},m["(min-width: "+parseInt(window.getComputedStyle(document.body).getPropertyValue("--breakpoint-xl"))+"px)"]={slides:{origin:C?"center":"auto",perView:5,spacing:l}}),p===6&&(m["(min-width: "+parseInt(window.getComputedStyle(document.body).getPropertyValue("--breakpoint-small"))+"px)"]={slides:{origin:C?"center":"auto",perView:3,spacing:l}},m["(min-width: "+parseInt(window.getComputedStyle(document.body).getPropertyValue("--breakpoint-large"))+"px)"]={slides:{perView:4,spacing:l}},m["(min-width: "+parseInt(window.getComputedStyle(document.body).getPropertyValue("--breakpoint-xl"))+"px)"]={slides:{perView:6,spacing:l}});function b(i){let x,v,L,_,c;function A(y){y.parentNode.removeChild(y);}function h(y,d="div"){const o=document.createElement(d);return y.split(" ").forEach((u)=>o.classList.add(u)),o;}function z(y,d,o){const u=document.createElement("button");if(u.innerHTML=y,u.setAttribute("aria-controls",w),d.split(" ").forEach((r)=>
10u.classList.add(r)),o){const r=h(`svg-icon svg-icon--${o}`,"span");u.appendChild(r);}return u;}function T(y){S(y),g(y),E(y);}function S(y){if(y){const d=x.parentNode||null;if(!d)return;for(;x.firstChild;)d.insertBefore(x.firstChild,x);A(x);return;}x=h("slider-navigation"),x.setAttribute("role","group"),x.setAttribute("aria-roledescription","carousel"),i.container.parentNode.appendChild(x),x.appendChild(i.container);}function g(y){if(y){A(L);return;}L=h("slider-navigation__arrows"),_=z(i.container.hasAttribute("data-nav-previous")?i.container.getAttribute("data-nav-previous"):"Previous","slider-navigation__previous","arrow-left"),_.setAttribute("data-button","slider-previous"),_.style.visibility="hidden",_.addEventListener("click",()=>i.prev()),c=z(i.container.hasAttribute("data-nav-next")?i.container.getAttribute("data-nav-next"):"Next","slider-navigation__next","arrow-right"),c.setAttribute("data-button","slider-next"),c.style.visibility="hidden",c.addEventListener("click",()=>i.next()),i.container.getAttribute("data-nav-overlay")&&L.classList.add("slider-navigation__arrows--overlay"),L.appendChild(_),L.appendChild(c),x.appendChild(L);}function E(y){if(y&&v){A(v);return;}i.container.getAttribute("data-nav-dots")&&i.container.getAttribute("data-nav-dots")!=="true"||(v=h("slider-navigation__dots"),v.setAttribute("role","tablist"),i.track.details.maxIdx&&i.track.details.slides.forEach((d,o)=>{if(o<=i.track.details.maxIdx){const u=z(i.container.hasAttribute("data-nav-slide")?i.container.getAttribute("data-nav-slide").replace("@index",o+1):`Go to slide ${o+1}`,"slider-navigation__dot");u.setAttribute("role","tab"),u.addEventListener("click",()=>{i.moveToIdx(o),i.slides[o].style.visibility="",i.slides[o].querySelector("a")===null?i.slides[o].focus():i.slides[o].querySelector("a").focus();}),v.appendChild(u);}}),x.appendChild(v));}function V(){const y=i.track.details.rel,d=i.container.classList.contains("slider--centered");let o=y+parseInt(i.options.slides.perView)-1;o>=i.track.details.slides.length&&(i.options.loop?o-=i.track.details.slides.length:o=i.track.details.slides.length-1),i.slides.forEach((n)=>{n.classList.remove("slider__slide--active"),n.classList.remove("slider__slide--center"),n.classList.remove("slider__slide--visible");});let u=0;i.slides.forEach((n)=>{u=Math.max(u,n.offsetHeight);}),i.container.style.setProperty("--slider-min-height",u+"px"),i.slides.forEach((n,s)=>{n.setAttribute("role",i.container.getAttribute("data-nav-dots")&&i.container.getAttribute("data-nav-dots")!=="true"?"group":"tabpanel"),n.setAttribute("aria-roledescription","slide"),n.setAttribute("aria-label",i.container.hasAttribute("data-slide-label")?i.container.getAttribute("data-slide-label").replace("@index",s+1).replace("@count",i.track.details.slides.length):`${s+1} of ${i.track.details.slides.length}`),s===y&&n.classList.add("slider__slide--active"),d&&s===y&&n.classList.add("slider__slide--center"),s===0?n.classList.add("slider__slide--first"):n.classList.remove("slider__slide--first"),s===i.track.details.slides.length-1?n.classList.add("slider__slide--last"):n.classList.remove("slider__slide--last"),o>=y&&s>=y&&s<=o||o<y&&s>=y||o<y&&s<=o?(n.classList.add("slider__slide--visible"),n.classList.remove("slider__slide--hidden"),n.removeAttribute("aria-hidden"),n.removeAttribute("tabindex"),n.removeAttribute("inert")):(n.classList.remove("slider__slide--visible"),n.classList.add("slider__slide--hidden"),n.setAttribute("aria-hidden",!0),n.setAttribute("tabindex",-1),n.setAttribute("inert","")),d&&n.classList.contains("slider__slide--active")||!d&&n.classList.contains("slider__slide--visible")?(n.setAttribute("tabindex",0),n.querySelectorAll("a, button, input, select, textarea, details, summary, audio, video, iframe, label").forEach((k)=>{k.removeAttribute("tabindex");})):(n.setAttribute("tabindex",-1),n.querySelectorAll("a, button, input, select, textarea, details, summary, audio, video, iframe, label").forEach((k)=>{k.setAttribute("tabindex",-1);})),n.style.visibility=s<y||s>y+parseInt(i.options.slides.perView)-1?"hidden":"";}),y===0&&!i.options.loop?(_.setAttribute("aria-disabled",!0),_.setAttribute("tabindex",-1)):(_.removeAttribute("aria-disabled"),_.removeAttribute("tabindex")),_.style.visibility=_.getBoundingClientRect().left<0?"hidden":"",c.style.visibility=c.getBoundingClientRect().right>window.innerWidth?"hidden":"";const r=i.slides.length-parseInt(i.options.slides.perView);y>=r&&!i.options.loop?c.setAttribute("aria-disabled",!0):c.removeAttribute("aria-disabled"),typeof v<"u"&&Array.from(v.children).forEac
10h((n,s)=>{s===y?(n.classList.add("slider-navigation__dot--active"),n.setAttribute("aria-selected","true")):(n.classList.remove("slider-navigation__dot--active"),n.setAttribute("aria-selected","false"));}),_.style.visibility=_.getBoundingClientRect().left<0?"hidden":"",c.style.visibility=c.getBoundingClientRect().right>window.innerWidth?"hidden":"",setTimeout(()=>{_.style.visibility===""&&_.removeAttribute("style"),c.style.visibility===""&&c.removeAttribute("style");},250);}function N(){let y=!1;i.container.addEventListener("focusin",()=>{y=!0;}),i.container.addEventListener("focusout",()=>{y=!1;}),i.container.addEventListener("keydown",(d)=>{if(!y)return;const o=i.container,u=i.container.classList.contains("slider--centered");function r(n){let s=null;const k=document.activeElement.closest(".slider__slide");if(u&&(s=o.querySelector(".slider__slide--active")),!k||!k.classList.contains("slider__slide--visible")){const I=o.querySelectorAll(".slider__slide--visible");n==="prev"&&(s=I[I.length-1]),n==="next"&&(s=I[0]);}s&&k!==s&&s.focus();}switch(d.key){case "Left":case "ArrowLeft":i.prev(),setTimeout(()=>{r("prev");},250);break;case "Right":case "ArrowRight":i.next(),setTimeout(()=>{r("next");},250);break;}});}i.on("created",()=>{T(),V(),N();}),i.on("optionsChanged",()=>{T(!0),T(),V();}),i.on("slideChanged",()=>{V(),i.container.querySelectorAll(".js-video-player, .js-video-legacy").forEach((d)=>{d.pause();});}),i.on("updated",()=>{V();}),i.on("destroyed",()=>{T(!0);});const H=function(y,d){let o;return function(){clearTimeout(o);const u=Array.prototype.slice.call(arguments);u.unshift(this),o=setTimeout(d.bind.apply(d,u),y);};};window.addEventListener("resize",H(300,()=>{V();}));}let M=e.getAttribute("data-animation")!==null?parseInt(e.getAttribute("data-animation"),10):500,D=new mt(e,{loop:e.getAttribute("data-loop")==="1",drag:e.getAttribute("data-drag")!=="0",selector:[...e.children],slides:{origin:C?"center":"auto",perView:f?1:1.2,spacing:e.getAttribute("data-spacing")?10:0},breakpoints:m,defaultAnimation:{duration:M}},[b]);e._keenSliderInstance=D;});};})();;
11(function(){"use strict";window.se=window.se||{},window.se.behaviors=window.se.behaviors||{},window.se.behaviors.tabs=function(n){(n instanceof Element&&n.classList&&n.classList.contains("js-tabs")?[n]:n.querySelectorAll(".js-tabs")).forEach(function(i){if(i.hasAttribute("data-tabs"))return;i.setAttribute("data-tabs","1");const c=i.querySelector(":scope > .js-tabs-navigation"),s=c.querySelectorAll(".js-tabs-tab-button"),o=i.querySelectorAll(":scope > .js-tabs-tab-content"),a=(r,t)=>{t.removeAttribute("tabindex"),t.setAttribute("aria-selected","true"),t.focus(),r.setAttribute("tabindex","-1"),r.removeAttribute("aria-selected");const e=[...s].indexOf(t),u=[...s].indexOf(r);o[u].classList.remove("tabs__content--current"),o[e].classList.add("tabs__content--current"),r.closest(".js-tabs").querySelector(".js-slider")&&setTimeout(function(){window.dispatchEvent(new Event("resize"));},100);};s.forEach(function(r){r.addEventListener("click",(t)=>{t.preventDefault();const e=c.querySelector("[aria-selected]");t.currentTarget!==e&&a(e,t.currentTarget);}),r.addEventListener("keydown",(t)=>{const e=[...s].indexOf(r);if(t.key==="ArrowDown"){o[e].focus();return;}t.key==="ArrowLeft"&&s[e-1]&&a(t.currentTarget,s[e-1]),t.key==="ArrowRight"&&s[e+1]&&a(t.currentTarget,s[e+1]);});});});};})();;
12(function(){"use strict";window.se=window.se||{},window.se.behaviors=window.se.behaviors||{},window.se.behaviors.tickerTape=function(t){const a=t instanceof Element&&t.classList&&t.classList.contains("js-ticker-tape")?[t]:t.querySelectorAll(".js-ticker-tape"),d=window.matchMedia("(prefers-reduced-motion: reduce)"),i=parseInt(localStorage.getItem("stoppedMotion")),r=i>0&&Date.now()-i<24*60*60*1e3;a.forEach((e)=>{if(e.hasAttribute("data-ticker-initialized"))return;e.setAttribute("data-ticker-initialized","1");const s=e.querySelector(".ticker__wrapper"),o=e.querySelector(".ticker__messages");if(!s||!o)return;const c=o.cloneNode(!0);s.appendChild(c);const n=o.scrollWidth,p=n*2/200;s.style.width=`${n*2}px`,s.style.animationDuration=`${p}s`,(d.matches||r)&&e.classList.add("ticker--stopped-motion"),window.addEventListener("stoppedMotion",()=>{e.classList.add("ticker--stopped-motion");}),window.addEventListener("startedMotion",()=>{e.classList.remove("ticker--stopped-motion");});});};})();;
13(function(){"use strict";window.se=window.se||{},window.se.behaviors=window.se.behaviors||{},window.se.utm=window.se.utm||{},window.se.utm.captureAndStore=function(e="se_utm_params"){try{const o=new URLSearchParams(window.location.search),d=document.body.getAttribute("data-utm-param-filters")||"utm_*,ref";
13let t=typeof d=="string"&&d.trim().length>0?d.split(",").map((n)=>n.trim()).filter((n)=>n.length>0):["utm_*"];const r=new URLSearchParams();return o.forEach((n,i)=>{if(n==="")return;const l=i.toLowerCase();t.some((u)=>{if(typeof u!="string"||u.length===0)return !1;const c=u.toLowerCase();if(c.endsWith("*")){const a=c.slice(0,-1);return a.length>0&&l.startsWith(a);}return c===l;})&&r.set(i,n);}),[...r.keys()].length>0&&sessionStorage.setItem(e,r.toString()),r;}catch(o){return console.error("Error capturing UTM parameters:",o),new URLSearchParams();}},window.se.utm.getStored=function(e="se_utm_params"){try{const o=sessionStorage.getItem(e);return o?new URLSearchParams(o):new URLSearchParams();}catch(o){return console.error("Error retrieving stored UTM parameters:",o),new URLSearchParams();}},window.se.behaviors.pageUtmCapture=function(e){e!==document&&!(e instanceof Document)||document.body.hasAttribute("data-utm-capture")||(document.body.setAttribute("data-utm-capture","1"),window.se.utm.captureAndStore());},window.se.behaviors.pageResponsive=function(e){const o=e instanceof Document,d=e instanceof Element&&e.children.length>0&&Array.from(e.children).every((i)=>i.tagName!=="SCRIPT");if(!o&&!d||e.hasAttribute&&e.hasAttribute("data-page-responsive"))return;e.setAttribute&&e.setAttribute("data-page-responsive","1");function t(i){const l=e.querySelectorAll("[data-desktop]"),s=e.querySelectorAll("[data-mobile]"),u=parseInt(window.getComputedStyle(document.body).getPropertyValue("--breakpoint-medium"));window.innerWidth>=u?s.forEach((a)=>{const h=a.getAttribute("data-mobile"),m=e.querySelector("[data-desktop="+h+"]");m&&[...a.children].forEach((f)=>{m.appendChild(f);});}):l.forEach((a)=>{const h=a.getAttribute("data-desktop"),m=e.querySelector("[data-mobile="+h+"]");m&&[...a.children].forEach((f)=>{m.appendChild(f);});});}t();const r=parseInt(window.getComputedStyle(document.body).getPropertyValue("--breakpoint-medium"));window.matchMedia("(min-width: "+r+"px)").addEventListener("change",function(){t();});},window.se.behaviors.pageScroll=function(e){window.dispatchEvent(new Event("scroll"));const t=document.querySelector("body");if(!t||t.hasAttribute("data-scroll"))return;t.setAttribute("data-scroll","1");function r(){const s=window.scrollY;s>150&&(document.body.classList.add("has-scrolled"),s>1500&&document.body.classList.add("has-scrolled-threshold"),s>i+150?(document.body.classList.add("has-scrolled-down"),document.body.classList.remove("has-scrolled-up"),i=s):s<i-150&&(document.body.classList.add("has-scrolled-up"),document.body.classList.remove("has-scrolled-down"),i=s)),s<150&&(document.body.classList.remove("has-scrolled"),i=s),s<1500&&document.body.classList.remove("has-scrolled-threshold"),s===0&&(document.body.classList.remove("has-scrolled-up"),document.body.classList.remove("has-scrolled-down"),i=s),document.querySelectorAll(".section:not(.js-section-visible)").forEach(function(c){c.getBoundingClientRect().top<window.innerHeight-150&&c.classList.add("js-section-visible");});}let n,i;const l=function(s){n||(n=!0);};window.addEventListener("scroll",l),window.dispatchEvent(new Event("scroll")),setInterval(function(){n&&n&&(n=!1,r());},200);},window.se.behaviors.pageExternalLinks=(e)=>{const o=window.location.origin;[...e.querySelectorAll("a")].forEach((t)=>{const {href:r}=t;t.hasAttribute("link-processed")||(t.setAttribute("link-processed",!0),r&&r.indexOf("http")!==-1&&r.indexOf(o)===-1&&t.relList.add("noopener","noreferrer","nofollow"));});},window.se.behaviors.pageApplyBehaviors=(e)=>{document.body.hasAttribute&&document.body.hasAttribute("data-behaviors-on-modified-html")||(document.body.setAttribute&&document.body.setAttribute("data-behaviors-on-modified-html","1"),window.addEventListener("modifiedHtml",(o)=>{const d=o.detail;window.se.indexAttached=0;for(let t in window.se.behaviors)window.se.behaviors.hasOwnProperty(t)&&(window.se.behaviors[t](d,window.se.attachedIndex),window.se.indexAttached++);}));},window.se.behaviors.focusIos=function(e){CSS.supports("hanging-punctuation","first")&&(document.documentElement.hasAttribute("data-keyboard-nav-init")||(document.documentElement.setAttribute("data-keyboard-nav-init",""),document.documentElement.classList.add("keyboard-nav"),document.addEventListener("keydown",()=>{document.documentElement.classList.add("keyboard-nav");}),document.addEventListener("mousedown",()=>{document.documentElement.classList.remove("keyboard-nav");}),document.addEventListener("touchstart",()=>{document.documentElement.classList.remove("keyboard-nav");},{passive:!0})));};})();;
14(function(){"use strict";window.se=window.se||{},window.se.behaviors=window.se.behaviors||{},window.se.behaviors.header=function(n){const d=n instanceof Element&&n.classList&&n.classList.contains("js-navigation-main")?[n]:n.querySelectorAll(".js-navigation-main");d.length!==0&&d.forEach(function(u){const o=u.closest(".header"),r=function(){if(!o)return;const t=o.querySelector(".header__main-menu");if(!t)return;t.querySelectorAll('.navigation__list--level-1 > .navigation__item > .js-button-foldout[aria-expanded="true"]').length>0?o.classList.add("js-header-menu-active"):o.classList.remove("js-header-menu-active");},f=function(){if(!o)return;o.querySelectorAll('.js-button-foldout[aria-expanded="true"]').forEach(function(e){e.setAttribute("aria-expanded","fal
14se");const i=e.querySelector(".js-button__text");i&&i.hasAttribute("data-title")&&(i.textContent=i.getAttribute("data-title"));}),r();};o&&o.addEventListener("click",function(t){o.classList.contains("js-header-menu-active")&&!l.contains(t.target)&&f();});const l=o?o.querySelector(".header__main-menu"):null;l&&(l.querySelectorAll(".js-button-foldout").forEach(function(e){e.addEventListener("se:foldoutToggle",function(a){if(!a.detail.isExpanded){const s=document.querySelector(".header .dialog[open]");s&&typeof s.close=="function"&&s.close();}r();});const i=e.nextElementSibling?e.nextElementSibling:e.previousElementSibling;i&&!i.closest(".dialog")&&i.addEventListener("focusout",function(){setTimeout(function(){const a=document.activeElement;if(e.getAttribute("aria-expanded")!=="true")return;const s=i.contains(a),c=e.contains(a)||e===a;if(!s&&!c){e.setAttribute("aria-expanded","false");const h=e.parentNode;h&&h.classList.remove("open");const m=e.querySelector(".js-button__text");m&&e.hasAttribute("data-title")&&(m.textContent=e.getAttribute("data-title")),e.dispatchEvent(new CustomEvent("se:foldoutToggle",{detail:{button:e,foldout:i,isExpanded:!1},bubbles:!0}));}},0);});}),r()),o&&o.querySelectorAll("[popover]").forEach((e)=>{if(e.hasAttribute("data-header-popover-init"))return;e.setAttribute("data-header-popover-init","1");const i=e.id,a=i?document.querySelector(`[popovertarget="${i}"]`):e.previousElementSibling;e.addEventListener("focusout",(s)=>{const c=s.relatedTarget;(!c||!e.contains(c)&&c!==a)&&e.hidePopover();});});});},window.se.behaviors.headerBackLinks=function(n){const d=n instanceof Element&&n.classList&&n.classList.contains("button--back")?[n]:n.querySelectorAll(".navigation__sub-menu .button--back");d.length!==0&&d.forEach((u)=>{if(u.hasAttribute("data-back-initialized"))return;u.setAttribute("data-back-initialized","1");const o=(r)=>{r&&r.preventDefault();const f=u.closest(".navigation__sub-menu");if(!f)return;
14const l=f.closest(".navigation__item--with-sub-items, .navigation__subitem--with-sub-items");if(!l)return;const t=l.querySelector(".js-button-foldout");t&&t.getAttribute("aria-expanded")==="true"&&(t.click(),l.hasAttribute("tabindex")||l.setAttribute("tabindex","-1"),l.focus());};u.addEventListener("click",o),u.addEventListener("keydown",(r)=>{(r.key==="Enter"||r.keyCode===13)&&o(r);});});},window.se.behaviors.headerAutoActivate=function(n){if(document.body.hasAttribute&&document.body.hasAttribute("data-header-auto-activate"))return;document.body.setAttribute&&document.body.setAttribute("data-header-auto-activate","1");let d=!1;(n instanceof Element&&n.classList&&n.classList.contains("button--foldout")?[n]:n.querySelectorAll(".header .navigation__item .js-button-foldout")).forEach((o)=>{o.hasAttribute("data-header-auto-activate-attached")||(o.setAttribute("data-header-auto-activate-attached","1"),o.addEventListener("se:foldoutToggle",(r)=>{var i,a,s,c;const {button:f,foldout:l,isExpanded:t}=r.detail||{},e=f||o;if(!(!t||!e.closest(".header__main-menu")||window.innerWidth<1224||(a=(i=l||e.nextElementSibling||e.previousElementSibling)==null?void 0:i.closest)!=null&&a.call(i,".dialog"))&&!d){d=!0;try{const h=((s=e.parentElement)==null?void 0:s.querySelector(".navigation__sub-menu"))||((c=e.closest(".navigation__item--with-sub-items"))==null?void 0:c.querySelector(".navigation__sub-menu"));if(!h)return;h.querySelectorAll(".navigation__subitem--active .js-button-foldout").forEach((_)=>{const g=_.closest(".navigation__subitem");g==null||g.classList.remove("navigation__subitem--active");});const m=h.querySelector(".navigation__subitem"),v=m!=null&&m.classList.contains("navigation__subitem--with-sub-items")?m:null;if(!v)return;const b=v.querySelector(".js-button-foldout");b==null||b.setAttribute("aria-expanded","true");}finally{d=!1;}}}));});},window.se.behaviors.headerFocusControl=function(n){if(document.body.hasAttribute&&document.body.hasAttribute("data-header-focus-control"))return;document.body.setAttribute&&document.body.setAttribute("data-header-focus-control","1"),(n instanceof Element&&n.classList&&n.classList.contains("button--foldout")?[n]:n.querySelectorAll(".header .dialog .js-button-foldout")).forEach((u)=>{u.hasAttribute("data-header-focus-control-attached")||(u.setAttribute("data-header-focus-control-attached","1"),u.addEventListener("se:foldoutToggle",(o)=>{var c;const r="a[href], button:not(.button--back)",{button:f,isExpanded:l}=o.detail||{},t=f||u;if(!t||!l||window.innerWidth<1224||!t.closest(".header .dialog"))return;
14const i=(c=t.closest(".navigation__item, .navigation__subitem"))==null?void 0:c.querySelector(":scope > .navigation__sub-menu");if(!i)return;const a=i.querySelectorAll(r);if(!a.length)return;const s=[...a].find((h)=>h.offsetParent!==null&&!h.hasAttribute("disabled")&&h.getAttribute("aria-hidden")!=="true");s&&requestAnimationFrame(()=>{s.focus({preventScroll:!0});});}));});},window.se.behaviors.headerMenuHeightSync=function(n){if(document.body.hasAttribute&&document.body.hasAttribute("data-header-menu-height-sync")||(document.body.setAttribute&&document.body.setAttribute("data-header-menu-height-sync","1"),window.innerWidth<1224))return;const d=n instanceof Document||n===document?document.querySelector(".header__main-menu"):n.querySelector?n.querySelector(".header__main-menu"):document.querySelector(".header__main-menu");if(!d)return;const u=d.querySelectorAll(".navigation__list--level-1 > .navigation__item > .js-button-foldout"),o=d.querySelectorAll(".navigation__sublist--level-2 .js-button-foldout"),r=(t)=>{if(!t||window.innerWidth<1224){t&&(t.style.height="");return;}const e=t.querySelector('.navigation__sublist--level-2 .js-button-foldout[aria-expanded="true"]');if(e){const i=e.nextElementSibling,a=i==null?void 0:i.querySelector(".menu-submenu");if(i&&a){const s=i.scrollHeight,c=window.innerHeight*.8;t.style.height=`${Math.min(s,c)}px`;return;}}t.style.height="";},f=new MutationObserver((t)=>{t.forEach((e)=>{if(e.attributeName==="aria-expanded"){const a=e.target.closest(".navigation__sublist--level-2"),s=a==null?void 0:a.closest(".navigation__sub-menu");s&&(s.style.height="",setTimeout(()=>{requestAnimationFrame(()=>{r(s);});},150));}});});o.forEach((t)=>{f.observe(t,{attributes:!0,attributeFilter:["aria-expanded"]});}),u.forEach((t)=>{t.addEventListener("click",()=>{const e=t.nextElementSibling;e&&e.classList.contains("navigation__sub-menu")&&setTimeout(()=>r(e),50);});}),(n instanceof Document||n===document?document:n).querySelectorAll(".header__main-menu .navigation__sub-menu").forEach(r),window.headerMenuHeightSyncResizeHandler||(window.headerMenuHeightSyncResizeHandler=()=>{window.innerWidth<1224&&document.querySelectorAll(".navigation__sub-menu").forEach((t)=>{t.style.minHeight="",t.style.height="";});},window.addEventListener("resize",window.headerMenuHeightSyncResizeHandler));};})();;

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.