PageSourceSearch

https://www.cityzen.sk/common/build/assets/index-BgQvd4Li.js

js cityzen.sk collected 2026-10-07 03:33:26 UTC 1,361,587 bytes, 110 lines download raw bytes

vendor: 4,172 bytes, lines 1-10
1"use strict";(function(){var a=a||{};a.projectComponents=["CustomMobileNavigationBack","CustomReviewCarousel","CustomPageNavigation","CustomFooterClosableSection"],a.disabledComponents=[],a.disabledVariables=[],a.projectVariables=[],a.settings={};/*!
2 * jQuery JavaScript Library v3.7.1
3 * https://jquery.com/
4 *
5 * Copyright OpenJS Foundation and other contributors
6 * Released under the MIT license
7 * https://jquery.org/license
8 *
9 * Date: 2023-08-28T13:37Z
10 */(function(t,s){typeof module=="object"&&typeof module.exports=="object"?module.exports=t.document?s(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return s(e)}:s(t)})(typeof window<"u"?window:this,function(t,s){var e=[],c=Object.getPrototypeOf,u=e.slice,d=e.flat?function(m){return e.flat.call(m)}:function(m){return e.concat.apply([],m)},S=e.push,I=e.indexOf,Z={},ct=Z.toString,nt=Z.hasOwnProperty,rt=nt.toString,q=rt.call(Object),J={},ht=function(E){return typeof E=="function"&&typeof E.nodeType!="number"&&typeof E.item!="function"},xt=function(E){return E!=null&&E===E.window},Et=t.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function R(m,E,P){P=P||Et;var _,n,y=P.createElement("script");if(y.text=m,E)for(_ in x)n=E[_]||E.getAttribute&&E.getAttribute(_),n&&y.setAttribute(_,n);P.head.appendChild(y).parentNode.removeChild(y)}function G(m){return m==null?m+"":typeof m=="object"||typeof m=="function"?Z[ct.call(m)]||"object":typeof m}var at="3.7.1",ut=/HTML$/i,A=function(m,E){return new A.fn.init(m,E)};A.fn=A.prototype={jquery:at,constructor:A,length:0,toArray:function(){return u.call(this)},get:function(m){return m==null?u.call(this):m<0?this[m+this.length]:this[m]},pushStack:function(m){var E=A.merge(this.constructor(),m);return E.prevObject=this,E},each:function(m){return A.each(this,m)},map:function(m){return this.pushStack(A.map(this,function(E,P){return m.call(E,P,E)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(A.grep(this,function(m,E){return(E+1)%2}))},odd:function(){return this.pushStack(A.grep(this,function(m,E){return E%2}))},eq:function(m){var E=this.length,P=+m+(m<0?E:0);return this.pushStack(P>=0&&P<E?[this[P]]:[])},end:function(){return this.prevObject||this.constructor()},push:S,sort:e.sort,splice:e.splice},A.extend=A.fn.extend=function(){var m,E,P,_,n,y,b=arguments[0]||{},k=1,L=arguments.length,D=!1;for(typeof b=="boolean"&&(D=b,b=arguments[k]||{},k++),typeof b!="object"&&!ht(b)&&(b={}),k===L&&(b=this,k--);k<L;k++)if((m=arguments[k])!=null)for(E in m)_=m[E],!(E==="__proto__"||b===_)&&(D&&_&&(A.isPlainObject(_)||(n=Array.isArray(_)))?(P=b[E],n&&!Array.isArray(P)?y=[]:!n&&!A.isPlainObject(P)?y={}:y=P,n=!1,b[E]=A.extend(D,y,_)):_!==void 0&&(b[E]=_));return b},A.extend({expando:"jQuery"+(at+Math.random()).replace(/\D/g,""),isReady:!0,error:function(m){throw new Error(m)},noop:function(){},isPlainObject:function(m){var E,P;return!m||ct.call(m)!=="[object Object]"?!1:(E=c(m),E?(P=nt.call(E,"constructor")&&E.constructor,typeof P=="function"&&rt.call(P)===q):!0)},isEmptyObject:function(m){var E;for(E in m)return!1;return!0},globalEval:function(m,E,P){R(m,{nonce:E&&E.nonce},P)},each:function(m,E){var P,_=0;if(Vt(m))for(P=m.length;_<P&&E.call(m[_],_,m[_])!==!1;_++);else for(_ in m)if(E.call(m[_],_,m[_])===!1)break;return m},text:function(m){var E,P="",_=0,n=m.nodeType;if(!n)for(;E=m[_++];)P+=A.text(E);return n===1||n===11?m.textContent:n===9?m.documentElement.textContent:n===3||n===4?m.nodeValue:P},makeArray:function(m,E){var P=E||[];return m!=null&&(Vt(Object(m))?A.merge(P,typeof m=="string"?[m]:m):S.call(P,m)),P},inArray:function(m,E,P){return E==null?-1:I.call(E,m,P)},isXMLDoc:function(m){var E=m&&m.namespaceURI,P=m&&(m.ownerDocument||m).documentElement;return!ut.test(E||P&&P.nodeName||"HTML")},merge:function(m,E){for(var P=+E.length,_=0,n=m.length;_<P;_++)m[n++]=E[_];return m.length=n,m},grep:function(m,E,P){for(var _,n=[],y=0,b=m.length,k=!P;y<b;y++)_=!E(m[y],y),_!==k&&n.push(m[y]);return n},map:function(m,E,P){var _,n,y=0,b=[];if(Vt(m))for(_=m.length;y<_;
10y++)n=E(m[y],y,P),n!=null&&b.push(n);else for(y in m)n=E(m[y],y,P),n!=null&&b.push(n);return d(b)},guid:1,support:J}),typeof Symbol=="function"&&(A.fn[Symbol.iterator]=e[Symbol.iterator]),A.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(m,E){Z["[object "+E+"]"]=E.toLowerCase()});function Vt(m){var E=!!m&&"length"in m&&m.length,P=G(m);return ht(m)||xt(m)?!1:P==="array"||E===0||typeof E=="number"&&E>0&&E-1 in m}function Ot(m,E){return m.nodeName&&m.nodeName.toLowerCase()===E.toLowerCase()}var Be=e.pop,xe=e.sort,me=e.splice,mt="[\\x20\\t\\r\\n\\f]",ot=new RegExp("^"+mt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+mt+"+$","g");A.contains=function(m,E){var P=E&&E.parentNode;return m===P||!!(P&&P.nodeType===1&&(m.contains?m.contains(P):m.compareDocumentPosition&&m.compareDocumentPosition(P)&16))};var Pt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Ct(m,E){return E?m==="\0"?"�":m.slice(0,-1)+"\\"+m.charCodeAt(m.length-1).toString(16)+" ":"\\"+m}A.escapeSelector=function(m){return(m+"").replace(Pt,Ct)};var g=Et,ve=S;(function(){var m,E,P,_,n,y=ve,b,k,L,D,H,Q=A.expando,N=0,Y=0,j=mn(),V=mn(),it=mn(),yt=mn(),vt=function(St,qt){return St===qt&&(n=!0),0},Lt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Tt="(?:\\\\[\\da-fA-F]{1,6}"+mt+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Dt="\\["+mt+"*("+Tt+")(?:"+mt+"*([*^$|!~]?=)"+mt+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Tt+"))|)"+mt+"*\\]",Xt=":("+Tt+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Dt+")*)|.*)\\)|)",Ht=new RegExp(mt+"+","g"),ie=new RegExp("^"+mt+"*,"+mt+"*"),we=new RegExp("^"+mt+"*([>+~]|"+mt+")"+mt+"*"),Ue=new RegExp(mt+"|>"),Ne=new RegExp(Xt),ne=new RegExp("^"+Tt+"$"),Kt={ID:new RegExp("^#("+Tt+")"),CLASS:new RegExp("^\\.("+Tt+")"),TAG:new RegExp("^("+Tt+"|[*])"),ATTR:new RegExp("^"+Dt),PSEUDO:new RegExp("^"+Xt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+mt+"*(even|odd|(([+-]|)(\\d*)n|)"+mt+"*(?:([+-]|)"+mt+"*(\\d+)|))"+mt+"*\\)|)","i"),bool:new RegExp("^(?:"+Lt+")$","i"),needsContext:new RegExp("^"+mt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+mt+"*((?:-\\d)?\\d*)"+mt+"*\\)|)(?=[^-]|$)","i")},ce=/^(?:input|select|textarea|button)$/i,le=/^h\d$/i,Ae=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ze=/[+~]/,_i=new RegExp("\\\\[\\da-fA-F]{1,6}"+mt+"?|\\\\([^\\r\\n\\f])","g"),Ii=function(St,qt){var Qt="0x"+St.slice(1)-65536;return qt||(Qt<0?String.fromCharCode(Qt+65536):String.fromCharCode(Qt>>10|55296,Qt&1023|56320))},fe=function(){Vr()},Si=Gr(function(St){return St.disabled===!0&&Ot(St,"fieldset")},{dir:"parentNode",next:"legend"});function Mi(){try{return b.activeElement}catch{}}try{y.apply(e=u.call(g.childNodes),g.childNodes),e[g.childNodes.length].nodeType}catch{y={apply:function(qt,Qt){ve.apply(qt,u.call(Qt))},call:function(qt){ve.apply(qt,u.call(arguments,1))}}}function bi(St,qt,Qt,re){var pe,Qe,mi,Di,hi,dn,Vi,Yi=qt&&qt.ownerDocument,hn=qt?qt.nodeType:9;if(Qt=Qt||[],typeof St!="string"||!St||hn!==1&&hn!==9&&hn!==11)return Qt;if(!re&&(Vr(qt),qt=qt||b,L)){if(hn!==11&&(hi=Ae.exec(St)))if(pe=hi[1]){if(hn===9)if(mi=qt.getElementById(pe)){if(mi.id===pe)return y.call(Qt,mi),Qt}else return Qt;else if(Yi&&(mi=Yi.getElementById(pe))&&bi.contains(qt,mi)&&mi.id===pe)return y.call(Qt,mi),Qt}else{if(hi[2])return y.apply(Qt,qt.getElementsByTagName(St)),Qt;if((pe=hi[3])&&qt.getElementsByClassName)return y.apply(Qt,qt.getElementsByClassName(pe)),Qt}if(!yt[St+" "]&&(!D||!D.test(St))){if(Vi=St,Yi=qt,hn===1&&(Ue.test(St)||we.test(St))){for(Yi=Ze.test(St)&&no(qt.parentNode)||qt,(Yi!=qt||!J.scope)&&((Di=qt.getAttribute("id"))?Di=A.escapeSelector(Di):qt.setAttribute("id",Di=Q)),dn=dr(St),Qe=dn.length;Qe--;)dn[Qe]=(Di?"#"+Di:":scope")+" "+br(dn[Qe]);Vi=dn.join(",")}try{return y.apply(Qt,Yi.querySelectorAll(Vi)),Qt}catch{yt(St,!0)}finally{Di===Q&&qt.removeAttribute("id")}}}return Ro(St.replace(ot,"$1"),qt,Qt,re)}function mn(){var St=[];function qt(Qt,re){return St.push(Qt+" ")>E.cacheLength&&delete qt[St.shift()],qt[Qt+" "]=re}return qt}function mr(St){return St[Q]=!0,St}function Rr(St){var qt=b.createElement("fieldset");try{return!!St(qt)}catch{return!1}finally{qt.parentNode&&qt.parentNode.removeChild(qt),qt=null}}function lo(St){return function(qt){return Ot(qt,"input")&&qt.type===St}}function Kr(St){return function(qt){return(Ot(qt,"input")||Ot(qt,"button"))&&qt.type===St}}function jr(St){return function(qt){return"form"in qt?qt.parentNode&&qt.disabled===!1?"label"in qt?"label"in qt.parentNode?qt.parentNode.disabled===St:qt.disabled===St:qt.isDisabled===St||qt.isDisabled!==!St&&Si(qt)===St:qt.disabled===St:"label"in qt?qt.disabled===St:!1}}function xr(St){return mr(function(qt){return qt=+qt,mr(function(Qt,re){for(var pe,Qe=St([],Qt.length,qt),mi=Qe.length;mi--;)Qt[pe=Qe[mi]]&&(Qt[pe]=!(re[pe]=Qt[pe]))})})}function no(St){return St&&typeof St.getElementsByTagName<"u"&&St}function Vr(St){var qt,Qt=St?St.ownerDocument||St:g;return Qt==b||Qt.nodeType!==9||!Qt.documentElement||(b=Qt,k=b.documentElement,L=!A.isXMLDoc(b),H=k.matches||k.webkitMatchesSelector||k.msMatchesSelector,k.ms
10MatchesSelector&&g!=b&&(qt=b.defaultView)&&qt.top!==qt&&qt.addEventListener("unload",fe),J.getById=Rr(function(re){return k.appendChild(re).id=A.expando,!b.getElementsByName||!b.getElementsByName(A.expando).length}),J.disconnectedMatch=Rr(function(re){return H.call(re,"*")}),J.scope=Rr(function(){return b.querySelectorAll(":scope")}),J.cssHas=Rr(function(){try{return b.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),J.getById?(E.filter.ID=function(re){var pe=re.replace(_i,Ii);return function(Qe){return Qe.getAttribute("id")===pe}},E.find.ID=function(re,pe){if(typeof pe.getElementById<"u"&&L){var Qe=pe.getElementById(re);return Qe?[Qe]:[]}}):(E.filter.ID=function(re){var pe=re.replace(_i,Ii);return function(Qe){var mi=typeof Qe.getAttributeNode<"u"&&Qe.getAttributeNode("id");return mi&&mi.value===pe}},E.find.ID=function(re,pe){if(typeof pe.getElementById<"u"&&L){var Qe,mi,Di,hi=pe.getElementById(re);if(hi){if(Qe=hi.getAttributeNode("id"),Qe&&Qe.value===re)return[hi];for(Di=pe.getElementsByName(re),mi=0;hi=Di[mi++];)if(Qe=hi.getAttributeNode("id"),Qe&&Qe.value===re)return[hi]}return[]}}),E.find.TAG=function(re,pe){return typeof pe.getElementsByTagName<"u"?pe.getElementsByTagName(re):pe.querySelectorAll(re)},E.find.CLASS=function(re,pe){if(typeof pe.getElementsByClassName<"u"&&L)return pe.getElementsByClassName(re)},D=[],Rr(function(re){var pe;k.appendChild(re).innerHTML="<a id='"+Q+"' href='' disabled='disabled'></a><select id='"+Q+"-\r\\' disabled='disabled'><option selected=''></option></select>",re.querySelectorAll("[selected]").length||D.push("\\["+mt+"*(?:value|"+Lt+")"),re.querySelectorAll("[id~="+Q+"-]").length||D.push("~="),re.querySelectorAll("a#"+Q+"+*").length||D.push(".#.+[+~]"),re.querySelectorAll(":checked").length||D.push(":checked"),pe=b.createElement("input"),pe.setAttribute("type","hidden"),re.appendChild(pe).setAttribute("name","D"),k.appendChild(re).disabled=!0,re.querySelectorAll(":disabled").length!==2&&D.push(":enabled",":disabled"),pe=b.createElement("input"),pe.setAttribute("name",""),re.appendChild(pe),re.querySelectorAll("[name='']").length||D.push("\\["+mt+"*name"+mt+"*="+mt+`*(?:''|"")`)}),J.cssHas||D.push(":has"),D=D.length&&new RegExp(D.join("|")),vt=function(re,pe){if(re===pe)return n=!0,0;var Qe=!re.compareDocumentPosition-!pe.compareDocumentPosition;return Qe||(Qe=(re.ownerDocument||re)==(pe.ownerDocument||pe)?re.compareDocumentPosition(pe):1,Qe&1||!J.sortDetached&&pe.compareDocumentPosition(re)===Qe?re===b||re.ownerDocument==g&&bi.contains(g,re)?-1:pe===b||pe.ownerDocument==g&&bi.contains(g,pe)?1:_?I.call(_,re)-I.call(_,pe):0:Qe&4?-1:1)}),b}bi.matches=function(St,qt){return bi(St,null,null,qt)},bi.matchesSelector=function(St,qt){if(Vr(St),L&&!yt[qt+" "]&&(!D||!D.test(qt)))try{var Qt=H.call(St,qt);if(Qt||J.disconnectedMatch||St.document&&St.document.nodeType!==11)return Qt}catch{yt(qt,!0)}return bi(qt,b,null,[St]).length>0},bi.contains=function(St,qt){return(St.ownerDocument||St)!=b&&Vr(St),A.contains(St,qt)},bi.attr=function(St,qt){(St.ownerDocument||St)!=b&&Vr(St);var Qt=E.attrHandle[qt.toLowerCase()],re=Qt&&nt.call(E.attrHandle,qt.toLowerCase())?Qt(St,qt,!L):void 0;return re!==void 0?re:St.getAttribute(qt)},bi.error=function(St){throw new Error("Syntax error, unrecognized expression: "+St)},A.uniqueSort=function(St){var qt,Qt=[],re=0,pe=0;if(n=!J.sortStable,_=!J.sortStable&&u.call(St,0),xe.call(St,vt),n){for(;qt=St[pe++];)qt===St[pe]&&(re=Qt.push(pe));for(;re--;)me.call(St,Qt[re],1)}return _=null,St},A.fn.uniqueSort=function(){return this.pushStack(A.uniqueSort(u.apply(this)))},E=A.expr={cacheLength:50,createPseudo:mr,match:Kt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(St){return St[1]=St[1].replace(_i,Ii),St[3]=(St[3]||St[4]||St[5]||"").replace(_i,Ii),St[2]==="~="&&(St[3]=" "+St[3]+" "),St.slice(0,4)},CHILD:function(St){return St[1]=St[1].toLowerCase(),St[1].slice(0,3)==="nth"?(St[3]||bi.error(St[0]),St[4]=+(St[4]?St[5]+(St[6]||1):2*(St[3]==="even"||St[3]==="odd")),St[5]=+(St[7]+St[8]||St[3]==="odd")):St[3]&&bi.error(St[0]),St},PSEUDO:function(St){var qt,Qt=!St[6]&&St[2];return Kt.CHILD.test(St[0])?null:(St[3]?St[2]=St[4]||St[5]||"":Qt&&Ne.test(Qt)&&(qt=dr(Qt,!0))&&(qt=Qt.indexOf(")",Qt.length-qt)-Qt.length)&&(St[0]=St[0].slice(0,qt),St[2]=Qt.slice(0,qt)),St.slice(0,3))}},filter:{TAG:function(St){var qt=St.replace(_i,Ii).toLowerCase();return St==="*"?function(){return!0}:function(Qt){return Ot(Qt,qt)}},CLASS:function(St){var qt=j[St+" "];
vendor: 16,017 bytes, line 10
10return qt||(qt=new RegExp("(^|"+mt+")"+St+"("+mt+"|$)"))&&j(St,function(Qt){return qt.test(typeof Qt.className=="string"&&Qt.className||typeof Qt.getAttribute<"u"&&Qt.getAttribute("class")||"")})},ATTR:function(St,qt,Qt){return function(re){var pe=bi.attr(re,St);return pe==null?qt==="!=":qt?(pe+="",qt==="="?pe===Qt:qt==="!="?pe!==Qt:qt==="^="?Qt&&pe.indexOf(Qt)===0:qt==="*="?Qt&&pe.indexOf(Qt)>-1:qt==="$="?Qt&&pe.slice(-Qt.length)===Qt:qt==="~="?(" "+pe.replace(Ht," ")+" ").indexOf(Qt)>-1:qt==="|="?pe===Qt||pe.slice(0,Qt.length+1)===Qt+"-":!1):!0}},CHILD:function(St,qt,Qt,re,pe){var Qe=St.slice(0,3)!=="nth",mi=St.slice(-4)!=="last",Di=qt==="of-type";return re===1&&pe===0?function(hi){return!!hi.parentNode}:function(hi,dn,Vi){var Yi,hn,Fi,Un,Or,In=Qe!==mi?"nextSibling":"previousSibling",Ur=hi.parentNode,zr=Di&&hi.nodeName.toLowerCase(),uo=!Vi&&!Di,Ir=!1;if(Ur){if(Qe){for(;In;){for(Fi=hi;Fi=Fi[In];)if(Di?Ot(Fi,zr):Fi.nodeType===1)return!1;Or=In=St==="only"&&!Or&&"nextSibling"}return!0}if(Or=[mi?Ur.firstChild:Ur.lastChild],mi&&uo){for(hn=Ur[Q]||(Ur[Q]={}),Yi=hn[St]||[],Un=Yi[0]===N&&Yi[1],Ir=Un&&Yi[2],Fi=Un&&Ur.childNodes[Un];Fi=++Un&&Fi&&Fi[In]||(Ir=Un=0)||Or.pop();)if(Fi.nodeType===1&&++Ir&&Fi===hi){hn[St]=[N,Un,Ir];break}}else if(uo&&(hn=hi[Q]||(hi[Q]={}),Yi=hn[St]||[],Un=Yi[0]===N&&Yi[1],Ir=Un),Ir===!1)for(;(Fi=++Un&&Fi&&Fi[In]||(Ir=Un=0)||Or.pop())&&!((Di?Ot(Fi,zr):Fi.nodeType===1)&&++Ir&&(uo&&(hn=Fi[Q]||(Fi[Q]={}),hn[St]=[N,Ir]),Fi===hi)););return Ir-=pe,Ir===re||Ir%re===0&&Ir/re>=0}}},PSEUDO:function(St,qt){var Qt,re=E.pseudos[St]||E.setFilters[St.toLowerCase()]||bi.error("unsupported pseudo: "+St);return re[Q]?re(qt):re.length>1?(Qt=[St,St,"",qt],E.setFilters.hasOwnProperty(St.toLowerCase())?mr(function(pe,Qe){for(var mi,Di=re(pe,qt),hi=Di.length;hi--;)mi=I.call(pe,Di[hi]),pe[mi]=!(Qe[mi]=Di[hi])}):function(pe){return re(pe,0,Qt)}):re}},pseudos:{not:mr(function(St){var qt=[],Qt=[],re=wo(St.replace(ot,"$1"));return re[Q]?mr(function(pe,Qe,mi,Di){for(var hi,dn=re(pe,null,Di,[]),Vi=pe.length;Vi--;)(hi=dn[Vi])&&(pe[Vi]=!(Qe[Vi]=hi))}):function(pe,Qe,mi){return qt[0]=pe,re(qt,null,mi,Qt),qt[0]=null,!Qt.pop()}}),has:mr(function(St){return function(qt){return bi(St,qt).length>0}}),contains:mr(function(St){return St=St.replace(_i,Ii),function(qt){return(qt.textContent||A.text(qt)).indexOf(St)>-1}}),lang:mr(function(St){return ne.test(St||"")||bi.error("unsupported lang: "+St),St=St.replace(_i,Ii).toLowerCase(),function(qt){var Qt;do if(Qt=L?qt.lang:qt.getAttribute("xml:lang")||qt.getAttribute("lang"))return Qt=Qt.toLowerCase(),Qt===St||Qt.indexOf(St+"-")===0;while((qt=qt.parentNode)&&qt.nodeType===1);return!1}}),target:function(St){var qt=t.location&&t.location.hash;return qt&&qt.slice(1)===St.id},root:function(St){return St===k},focus:function(St){return St===Mi()&&b.hasFocus()&&!!(St.type||St.href||~St.tabIndex)},enabled:jr(!1),disabled:jr(!0),checked:function(St){return Ot(St,"input")&&!!St.checked||Ot(St,"option")&&!!St.selected},selected:function(St){return St.parentNode&&St.parentNode.selectedIndex,St.selected===!0},empty:function(St){for(St=St.firstChild;St;St=St.nextSibling)if(St.nodeType<6)return!1;return!0},parent:function(St){return!E.pseudos.empty(St)},header:function(St){return le.test(St.nodeName)},input:function(St){return ce.test(St.nodeName)},button:function(St){return Ot(St,"input")&&St.type==="button"||Ot(St,"button")},text:function(St){var qt;return Ot(St,"input")&&St.type==="text"&&((qt=St.getAttribute("type"))==null||qt.toLowerCase()==="text")},first:xr(function(){return[0]}),last:xr(function(St,qt){return[qt-1]}),eq:xr(function(St,qt,Qt){return[Qt<0?Qt+qt:Qt]}),even:xr(function(St,qt){for(var Qt=0;Qt<qt;Qt+=2)St.push(Qt);return St}),odd:xr(function(St,qt){for(var Qt=1;Qt<qt;Qt+=2)St.push(Qt);return St}),lt:xr(function(St,qt,Qt){var re;for(Qt<0?re=Qt+qt:Qt>qt?re=qt:re=Qt;--re>=0;)St.push(re);return St}),gt:xr(function(St,qt,Qt){for(var re=Qt<0?Qt+qt:Qt;++re<qt;)St.push(re);return St})}},E.pseudos.nth=E.pseudos.eq;for(m in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})E.pseudos[m]=lo(m);for(m in{submit:!0,reset:!0})E.pseudos[m]=Kr(m);function co(){}co.prototype=E.filters=E.pseudos,E.setFilters=new co;function dr(St,qt){var Qt,re,pe,Qe,mi,Di,hi,dn=V[St+" "];if(dn)return qt?0:dn.slice(0);for(mi=St,Di=[],hi=E.preFilter;mi;){(!Qt||(re=ie.exec(mi)))&&(re&&(mi=mi.slice(re[0].length)||mi),Di.push(pe=[])),Qt=!1,(re=we.exec(mi))&&(Qt=re.shift(),pe.push({value:Qt,type:re[0].replace(ot," ")}),mi=mi.slice(Qt.length));for(Qe in E.filter)(re=Kt[Qe].exec(mi))&&(!hi[Qe]||(re=hi[Qe](re)))&&(Qt=re.shift(),pe.push({value:Qt,type:Qe,matches:re}),mi=mi.slice(Qt.length));if(!Qt)break}return qt?mi.length:mi?bi.error(St):V(St,Di).slice(0)}function br(St){for(var qt=0,Qt=St.length,re="";qt<Qt;qt++)re+=St[qt].value;return re}function Gr(St,qt,Qt){var re=qt.dir,pe=qt.next,Qe=pe||re,mi=Qt&&Qe==="parentNode",Di=Y++;return qt.first?function(hi,dn,Vi){for(;hi=hi[re];)if(hi.nodeType===1||mi)return St(hi,dn,Vi);return!1}:function(hi,dn,Vi){var Yi,hn,Fi=[N,Di];if(Vi){for(;hi=hi[re];)if((hi.nodeType===1||mi)&&St(hi,dn,Vi))return!0}else for(;hi=hi[re];)if(hi.nodeType===1||mi)if(hn=hi[Q]||(hi[Q]={}),pe&&Ot(hi,pe))hi=hi[re]||hi;else{if((Yi=hn[Qe])&&Yi[0]===N&&Yi[1]===Di)return Fi[2]=Yi[2];if(hn[Qe]=Fi,Fi[2]=St(hi,dn,Vi))return!0}return!1}}function ro(St){return St.length>1?function(qt,Qt,re){for(var pe=St.length;pe--;)if(!St[pe](qt,Qt,re))return!1;return!0}:St[0]}function Jr(St,qt,Qt){for(var re=0,pe=qt.length;re<pe;re++)bi(St,qt[re],Qt);return Qt}function to(St,qt,Qt,re,pe){for(var Qe,mi=[],Di=0,hi=St.length,dn=qt!=null;Di<hi;Di++)(Qe=St[Di])&&(!Qt||Qt(Qe,re,pe))&&(mi.push(Qe),dn&&qt.push(Di));return mi}function oo(St,qt,Qt,re,pe,Qe){return re&&!re[Q]&&(re=oo(re)),pe&&!pe[Q]&&(pe=oo(pe,Qe)),mr(function(mi,Di,hi,dn){var Vi,Yi,hn,Fi,Un=[],Or=[],In=Di.length,Ur=mi||Jr(qt||"*",hi.nodeType?[hi]:hi,[]),zr=St&&(mi||!qt)?to(Ur,Un,St,hi,dn):Ur;if(Qt?(Fi=pe||(mi?St:In||re)?[]:Di,Qt(zr,Fi,hi,dn)):Fi=zr,re)for(Vi=to(Fi,Or),re(Vi,[],hi,dn),Yi=Vi.length;Yi--;)(hn=Vi[Yi])&&(Fi[Or[Yi]]=!(zr[Or[Yi]]=hn));if(mi){if(pe||St){if(pe){for(Vi=[],Yi=Fi.length;Yi--;)(hn=Fi[Yi])&&Vi.push(zr[Yi]=hn);pe(null,Fi=[],Vi,dn)}for(Yi=Fi.length;Yi--;)(hn=Fi[Yi])&&(Vi=pe?I.call(mi,hn):Un[Yi])>-1&&(mi[Vi]=!(Di[Vi]=hn))}}else Fi=to(Fi===Di?Fi.splice(In,Fi.length):Fi),pe?pe(null,Di,Fi,dn):y.apply(Di,Fi)})}function Mo(St){for(var qt,Qt,re,pe=St.length,Qe=E.relative[St[0].type],mi=Qe||E.relative[" "],Di=Qe?1:0,hi=Gr(function(Yi){return Yi===qt},mi,!0),dn=Gr(function(Yi){return I.call(qt,Yi)>-1},mi,!0),Vi=[function(Yi,hn,Fi){var Un=!Qe&&(Fi||hn!=P)||((qt=hn).nodeType?hi(Yi,hn,Fi):dn(Yi,hn,Fi));return qt=null,Un}];Di<pe;Di++)if(Qt=E.relative[St[Di].type])Vi=[Gr(ro(Vi),Qt)];else{if(Qt=E.filter[St[Di].type].apply(null,St[Di].matches),Qt[Q]){for(re=++Di;re<pe&&!E.relative[St[re].type];re++);return oo(Di>1&&ro(Vi),Di>1&&br(St.slice(0,Di-1).concat({value:St[Di-2].type===" "?"*":""})).replace(ot,"$1"),Qt,Di<re&&Mo(St.slice(Di,re)),re<pe&&Mo(St=St.slice(re)),re<pe&&br(St))}Vi.push(Qt)}return ro(Vi)}function ts(St,qt){var Qt=qt.length>0,re=St.length>0,pe=function(Qe,mi,Di,hi,dn){var Vi,Yi,hn,Fi=0,Un="0",Or=Qe&&[],In=[],Ur=P,zr=Qe||re&&E.find.TAG("*",dn),uo=N+=Ur==null?1:Math.random()||.1,Ir=zr.length;for(dn&&(P=mi==b||mi||dn);Un!==Ir&&(Vi=zr[Un])!=null;Un++){if(re&&Vi){for(Yi=0,!mi&&Vi.ownerDocument!=b&&(Vr(Vi),Di=!L);hn=St[Yi++];)if(hn(Vi,mi||b,Di)){y.call(hi,Vi);break}dn&&(N=uo)}Qt&&((Vi=!hn&&Vi)&&Fi--,Qe&&Or.push(Vi))}if(Fi+=Un,Qt&&Un!==Fi){for(Yi=0;hn=qt[Yi++];)hn(Or,In,mi,Di);if(Qe){if(Fi>0)for(;Un--;)Or[Un]||In[Un]||(In[Un]=Be.call(hi));In=to(In)}y.apply(hi,In),dn&&!Qe&&In.length>0&&Fi+qt.length>1&&A.uniqueSort(hi)}return dn&&(N=uo,P=Ur),Or};return Qt?mr(pe):pe}function wo(St,qt){var Qt,re=[],pe=[],Qe=it[St+" "];if(!Qe){for(qt||(qt=dr(St)),Qt=qt.length;Qt--;)Qe=Mo(qt[Qt]),Qe[Q]?re.push(Qe):pe.push(Qe);Qe=it(St,ts(pe,re)),Qe.selector=St}return Qe}function Ro(St,qt,Qt,re){var pe,Qe,mi,Di,hi,dn=typeof St=="function"&&St,Vi=!re&&dr(St=dn.selector||St);if(Qt=Qt||[],Vi.length===1){if(Qe=Vi[0]=Vi[0].slice(0),Qe.length>2&&(mi=Qe[0]).type==="ID"&&qt.nodeType===9&&L&&E.relative[Qe[1].type]){if(qt=(E.find.ID(mi.matches[0].replace(_i,Ii),qt)||[])[0],qt)dn&&(qt=qt.parentNode);else return Qt;St=St.slice(Qe.shift().value.length)}for(pe=Kt.needsContext.test(St)?0:Qe.length;pe--&&(mi=Qe[pe],!E.relative[Di=mi.type]);)if((hi=E.find[Di])&&(re=hi(mi.matches[0].replace(_i,Ii),Ze.test(Qe[0].type)&&no(qt.parentNode)||qt))){if(Qe.splice(pe,1),St=re.length&&br(Qe),!St)return y.apply(Qt,re),Qt;break}}return(dn||wo(St,Vi))(re,qt,!L,Qt,!qt||Ze.test(St)&&no(qt.parentNode)||qt),Qt}J.sortStable=Q.split("").sort(vt).join("")===Q,Vr(),J.sortDetached=Rr(function(St){return St.compareDocumentPosition(b.createElement("fieldset"))&1}),A.find=bi,A.expr[":"]=A.expr.pseudos,A.unique=A.uniqueSort,bi.compile=wo,bi.select=Ro,bi.setDocument=Vr,bi.tokenize=dr,bi.escape=A.escapeSelector,bi.getText=A.text,bi.isXML=A.isXMLDoc,bi.selectors=A.expr,bi.support=A.support,bi.uniqueSort=A.uniqueSort})();var ue=function(m,E,P){for(var _=[],n=P!==void 0;(m=m[E])&&m.nodeType!==9;)if(m.nodeType===1){if(n&&A(m).is(P))break;_.push(m)}return _},ye=function(m,E){for(var P=[];m;m=m.nextSibling)m.nodeType===1&&m!==E&&P.push(m);return P},De=A.expr.match.needsContext,Te=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function We(m,E,P){return ht(E)?A.grep(m,function(_,n){return!!E.call(_,n,_)!==P}):E.nodeType?A.grep(m,function(_){return _===E!==P}):typeof E!="string"?A.grep(m,function(_){return I.call(E,_)>-1!==P}):A.filter(E,m,P)}A.filter=function(m,E,P){var _=E[0];return P&&(m=":not("+m+")"),E.length===1&&_.nodeType===1?A.find.matchesSelector(_,m)?[_]:[]:A.find.matches(m,A.grep(E,function(n){return n.nodeType===1}))},A.fn.extend({find:function(m){var E,P,_=this.length,n=this;if(typeof m!="string")return this.pushStack(A(m).filter(function(){for(E=0;E<_;E++)if(A.contains(n[E],this))return!0}));for(P=this.pushStack([]),E=0;E<_;E++)A.find(m,n[E],P);return _>1?A.uniqueSort(P):P},filter:function(m){return this.pushStack(We(this,m||[],!1))},not:function(m){return this.pushStack(We(this,m||[],!0))},is:function(m){return!!We(this,typeof m=="string"&&De.test(m)?A(m):m||[],!1).length}});var ii,Ee=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ei=A.fn.init=function(m,E,P){var _,n;if(!m)return this;if(P=P||ii,typeof m=="string")if(m[0]==="<"&&m[m.length-1]===">"&&m.length>=3?_=[null,m,null]:_=Ee.exec(m),_&&(_[1]||!E))if(_[1]){if(E=E instanceof A?E[0]:E,A.merge(this,A.parseHTML(_[1],E&&E.nodeType?E.ownerDocument||E:Et,!0)),Te.test(_[1])&&A.isPlainObject(E))for(_ in E)ht(this[_])?this[_](E[_]):this.attr(_,E[_]);return this}else return n=Et.getElementById(_[2]),n&&(this[0]=n,this.length=1),this;else return!E||E.jquery?(E||P).find(m):this.constructor(E).find(m);else{if(m.nodeType)return this[0]=m,this.length=1,this;if(ht(m))return P.ready!==void 0?P.ready(m):m(A)}return A.makeArray(m,this)};Ei.prototype=A.fn,ii=A(Et);var ji=/^(?:parents|prev(?:Until|All))/,wn={children:!0,contents:!0,next:!0,prev:!0};A.fn.extend({has:function(m){var E=A(m,this),P=E.length;return this.filter(function(){for(var _=0;_<P;_++)if(A.contains(this,E[_]))return!0})},closest:function(m,E){var P,_=0,n=this.length,y=[],b=typeof m!="string"&&A(m);if(!De.test(m)){for(;_<n;_++)for(P=this[_];P&&P!==E;P=P.parentNode)if(P.nodeType<11&&(b?b.index(P)>-1:P.nodeType===1&&A.find.matchesSelector(P,m))){y.push(P);break}}return this.pushStack(y.length>1?A.uniqueSort(y):y)},index:function(m){return m?typeof m=="string"?I.call(A(m),this[0]):I.call(this,m.jquery?m[0]:m):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(m,E){return this.pushStack(A.uniqueSort(A.merge(this.get(),A(m,E))))},addBack:function(m){return this.add(m==null?this.prevObject:this.prevObject.filter(m))}});function Ni(m,E){for(;(m=m[E])&&m.nodeType!==1;);return m}A.each({parent:function(m){var E=m.parentNode;return E&&E.nodeType!==11?E:null},parents:function(m){return ue(m,"parentNode")},parentsUntil:function(m,E,P){return ue(m,"parentNode",P)},next:function(m){return Ni(m,"nextSibling")},prev:function(m){return Ni(m,"previousSibling")},nextAll:function(m){return ue(m,"nextSibling")},prevAll:function(m){return ue(m,"previousSibling")},nextUntil:function(m,E,P){return ue(m,"nextSibling",P)},prevUntil:function(m,E,P){return ue(m,"previousSibling",P)},siblings:function(m){return ye((m.parentNode||{}).firstChild,m)},children:function(m){return ye(m.firstChild)},contents:function(m){return m.contentDocument!=null&&c(m.contentDocument)?m.contentDocument:(Ot(m,"template")&&(m=m.content||m),A.merge([],m.childNodes))}},function(m,E){A.fn[m]=function(P,_){var n=A.map(this,E,P);return m.slice(-5)!=="Until"&&(_=P),_&&typeof _=="string"&&(n=A.filter(_,n)),this.length>1&&(wn[m]||A.uniqueSort(n),ji.test(m)&&n.reverse()),this.pushStack(n)}});var pn=/[^\x20\t\r\n\f]+/g;function Cn(m){var E={};return A.each(m.match(pn)||[],function(P,_){E[_]=!0}),E}A.Callbacks=function(m){m=typeof m=="string"?Cn(m):A.extend({},m);var E,P,_,n,y=[],b=[],k=-1,L=function(){for(n=n||m.once,_=E=!0;b.length;k=-1)for(P=b.shift();++k<y.length;)y[k].apply(P[0],P[1])===!1&&m.stopOnFalse&&(k=y.length,P=!1);m.memory||(P=!1),E=!1,n&&(P?y=[]:y="")},D={add:function(){return y&&(P&&!E&&(k=y.length-1,b.push(P)),function H(Q){A.each(Q,function(N,Y){ht(Y)?(!m.unique||!D.has(Y))&&y.push(Y):Y&&Y.length&&G(Y)!=="string"&&H(Y)})}(arguments),P&&!E&&L()),this},remove:function(){return A.each(arguments,function(H,Q){for(var N;(N=A.inArray(Q,y,N))>-1;)y.splice(N,1),N<=k&&k--}),this},has:function(H){return H?A.inArray(H,y)>-1:y.length>0},empty:function(){return y&&(y=[]),this},disable:function(){return n=b=[],y=P="",this},disabled:function(){return!y},lock:function(){return n=b=[],!P&&!E&&(y=P=""),this},locked:function(){return!!n},fireWith:function(H,Q){return n||(Q=Q||[],Q=[H,Q.slice?Q.slice():Q],b.push(Q),E||L()),this},fire:function(){return D.fireWith(this,arguments),this},fired:function(){return!!_}};return D};function An(m){return m}function Ri(m){throw m}function Sn(m,E,P,_){var n;try{m&&ht(n=m.promise)?n.call(m).done(E).fail(P):m&&ht(n=m.then)?n.call(m,E,P):E.apply(void 0,[m].slice(_))}catch(y){P.apply(void 0,[y])}}A.extend({Deferred:function(m){var E=[["notify","progress",A.Callbacks("memory"),A.Callbacks("memory"),2],["resolve","done",A.Callbacks("once memory"),A.Callbacks("once memory"),0,"resolved"],["reject","fail",A.Callbacks("once memory"),A.Callbacks("once memory"),1,"rejected"]],P="pending",_={state:function(){return P},always:function(){return n.done(arguments).fail(arguments),this},catch:function(y){return _.then(null,y)},pipe:function(){var y=arguments;return A.Deferred(function(b){A.each(E,function(k,L){var D=ht(y[L[4]])&&y[L[4]];n[L[1]](function(){var H=D&&D.apply(this,arguments);H&&ht(H.promise)?H.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[L[0]+"With"](this,D?[H]:arguments)})}),y=null}).promise()},then:function(y,b,k){var L=0;function D(H,Q,N,Y){return function(){var j=this,V=arguments,it=function(){var vt,Lt;if(!(H<L)){if(vt=N.apply(j,V),vt===Q.promise())throw new TypeError("Thenable self-resolution");Lt=vt&&(typeof vt=="object"||typeof vt=="function")&&vt.then,ht(Lt)?Y?Lt.call(vt,D(L,Q,An,Y),D(L,Q,Ri,Y)):(L++,Lt.call(vt,D(L,Q,An,Y),D(L,Q,Ri,Y),D(L,Q,An,Q.notifyWith))):(N!==An&&(j=void 0,V=[vt]),(Y||Q.resolveWith)(j,V))}},yt=Y?it:function(){try{it()}catch(vt){A.Deferred.exceptionHook&&A.Deferred.exceptionHook(vt,yt.error),H+1>=L&&(N!==Ri&&(j=void 0,V=[vt]),Q.rejectWith(j,V))}};H?yt():(A.Deferred.getErrorHook?yt.error=A.Deferred.getErrorHook():A.Deferred.getStackHook&&(yt.error=A.Deferred.getStackHook()),t.setTimeout(yt))}}return A.Deferred(function(H){E[0][3].add(D(0,H,ht(k)?k:An,H.notifyWith)),E[1][3].add(D(0,H,ht(y)?y:An)),E[2][3].add(D(0,H,ht(b)?b:Ri))}).promise()},promise:function(y){return y!=null?A.extend(y,_):_}},n={};return A.each(E,function(y,b){var k=b[2],L=b[5];_[b[1]]=k.add,L&&k.add(function(){P=L}
vendor: 6,336 bytes, line 10
10,E[3-y][2].disable,E[3-y][3].disable,E[0][2].lock,E[0][3].lock),k.add(b[3].fire),n[b[0]]=function(){return n[b[0]+"With"](this===n?void 0:this,arguments),this},n[b[0]+"With"]=k.fireWith}),_.promise(n),m&&m.call(n,n),n},when:function(m){var E=arguments.length,P=E,_=Array(P),n=u.call(arguments),y=A.Deferred(),b=function(k){return function(L){_[k]=this,n[k]=arguments.length>1?u.call(arguments):L,--E||y.resolveWith(_,n)}};if(E<=1&&(Sn(m,y.done(b(P)).resolve,y.reject,!E),y.state()==="pending"||ht(n[P]&&n[P].then)))return y.then();for(;P--;)Sn(n[P],b(P),y.reject);return y.promise()}});var Lr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;A.Deferred.exceptionHook=function(m,E){t.console&&t.console.warn&&m&&Lr.test(m.name)&&t.console.warn("jQuery.Deferred exception: "+m.message,m.stack,E)},A.readyException=function(m){t.setTimeout(function(){throw m})};var vn=A.Deferred();A.fn.ready=function(m){return vn.then(m).catch(function(E){A.readyException(E)}),this},A.extend({isReady:!1,readyWait:1,ready:function(m){(m===!0?--A.readyWait:A.isReady)||(A.isReady=!0,!(m!==!0&&--A.readyWait>0)&&vn.resolveWith(Et,[A]))}}),A.ready.then=vn.then;function Ji(){Et.removeEventListener("DOMContentLoaded",Ji),t.removeEventListener("load",Ji),A.ready()}Et.readyState==="complete"||Et.readyState!=="loading"&&!Et.documentElement.doScroll?t.setTimeout(A.ready):(Et.addEventListener("DOMContentLoaded",Ji),t.addEventListener("load",Ji));var Gi=function(m,E,P,_,n,y,b){var k=0,L=m.length,D=P==null;if(G(P)==="object"){n=!0;for(k in P)Gi(m,E,k,P[k],!0,y,b)}else if(_!==void 0&&(n=!0,ht(_)||(b=!0),D&&(b?(E.call(m,_),E=null):(D=E,E=function(H,Q,N){return D.call(A(H),N)})),E))for(;k<L;k++)E(m[k],P,b?_:_.call(m[k],k,E(m[k],P)));return n?m:D?E.call(m):L?E(m[0],P):y},wr=/^-ms-/,Yn=/-([a-z])/g;function Fn(m,E){return E.toUpperCase()}function qi(m){return m.replace(wr,"ms-").replace(Yn,Fn)}var Nn=function(m){return m.nodeType===1||m.nodeType===9||!+m.nodeType};function lr(){this.expando=A.expando+lr.uid++}lr.uid=1,lr.prototype={cache:function(m){var E=m[this.expando];return E||(E={},Nn(m)&&(m.nodeType?m[this.expando]=E:Object.defineProperty(m,this.expando,{value:E,configurable:!0}))),E},set:function(m,E,P){var _,n=this.cache(m);if(typeof E=="string")n[qi(E)]=P;else for(_ in E)n[qi(_)]=E[_];return n},get:function(m,E){return E===void 0?this.cache(m):m[this.expando]&&m[this.expando][qi(E)]},access:function(m,E,P){return E===void 0||E&&typeof E=="string"&&P===void 0?this.get(m,E):(this.set(m,E,P),P!==void 0?P:E)},remove:function(m,E){var P,_=m[this.expando];if(_!==void 0){if(E!==void 0)for(Array.isArray(E)?E=E.map(qi):(E=qi(E),E=E in _?[E]:E.match(pn)||[]),P=E.length;P--;)delete _[E[P]];(E===void 0||A.isEmptyObject(_))&&(m.nodeType?m[this.expando]=void 0:delete m[this.expando])}},hasData:function(m){var E=m[this.expando];return E!==void 0&&!A.isEmptyObject(E)}};var ti=new lr,$n=new lr,Qn=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,vr=/[A-Z]/g;function kr(m){return m==="true"?!0:m==="false"?!1:m==="null"?null:m===+m+""?+m:Qn.test(m)?JSON.parse(m):m}function Pr(m,E,P){var _;if(P===void 0&&m.nodeType===1)if(_="data-"+E.replace(vr,"-$&").toLowerCase(),P=m.getAttribute(_),typeof P=="string"){try{P=kr(P)}catch{}$n.set(m,E,P)}else P=void 0;return P}A.extend({hasData:function(m){return $n.hasData(m)||ti.hasData(m)},data:function(m,E,P){return $n.access(m,E,P)},removeData:function(m,E){$n.remove(m,E)},_data:function(m,E,P){return ti.access(m,E,P)},_removeData:function(m,E){ti.remove(m,E)}}),A.fn.extend({data:function(m,E){var P,_,n,y=this[0],b=y&&y.attributes;if(m===void 0){if(this.length&&(n=$n.get(y),y.nodeType===1&&!ti.get(y,"hasDataAttrs"))){for(P=b.length;P--;)b[P]&&(_=b[P].name,_.indexOf("data-")===0&&(_=qi(_.slice(5)),Pr(y,_,n[_])));ti.set(y,"hasDataAttrs",!0)}return n}return typeof m=="object"?this.each(function(){$n.set(this,m)}):Gi(this,function(k){var L;if(y&&k===void 0)return L=$n.get(y,m),L!==void 0||(L=Pr(y,m),L!==void 0)?L:void 0;this.each(function(){$n.set(this,m,k)})},null,E,arguments.length>1,null,!0)},removeData:function(m){return this.each(function(){$n.remove(this,m)})}}),A.extend({queue:function(m,E,P){var _;if(m)return E=(E||"fx")+"queue",_=ti.get(m,E),P&&(!_||Array.isArray(P)?_=ti.access(m,E,A.makeArray(P)):_.push(P)),_||[]},dequeue:function(m,E){E=E||"fx";var P=A.queue(m,E),_=P.length,n=P.shift(),y=A._queueHooks(m,E),b=function(){A.dequeue(m,E)};n==="inprogress"&&(n=P.shift(),_--),n&&(E==="fx"&&P.unshift("inprogress"),delete y.stop,n.call(m,b,y)),!_&&y&&y.empty.fire()},_queueHooks:function(m,E){var P=E+"queueHooks";return ti.get(m,P)||ti.access(m,P,{empty:A.Callbacks("once memory").add(function(){ti.remove(m,[E+"queue",P])})})}}),A.fn.extend({queue:function(m,E){var P=2;return typeof m!="string"&&(E=m,m="fx",P--),arguments.length<P?A.queue(this[0],m):E===void 0?this:this.each(function(){var _=A.queue(this,m,E);A._queueHooks(this,m),m==="fx"&&_[0]!=="inprogress"&&A.dequeue(this,m)})},dequeue:function(m){return this.each(function(){A.dequeue(this,m)})},clearQueue:function(m){return this.queue(m||"fx",[])},promise:function(m,E){var P,_=1,n=A.Deferred(),y=this,b=this.length,k=function(){--_||n.resolveWith(y,[y])};for(typeof m!="string"&&(E=m,m=void 0),m=m||"fx";b--;)P=ti.get(y[b],m+"queueHooks"),P&&P.empty&&(_++,P.empty.add(k));return k(),n.promise(E)}});var qn=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,nn=new RegExp("^(?:([+-])=|)("+qn+")([a-z%]*)$","i"),En=["Top","Right","Bottom","Left"],Ti=Et.documentElement,sn=function(m){return A.contains(m.ownerDocument,m)},Cr={composed:!0};Ti.getRootNode&&(sn=function(m){return A.contains(m.ownerDocument,m)||m.getRootNode(Cr)===m.ownerDocument});var wi=function(m,E){return m=E||m,m.style.display==="none"||m.style.display===""&&sn(m)&&A.css(m,"display")==="none"};function Wn(m,E,P,_){var n,y,b=20,k=_?function(){return _.cur()}:function(){return A.css(m,E,"")},L=k(),D=P&&P[3]||(A.cssNumber[E]?"":"px"),H=m.nodeType&&(A.cssNumber[E]||D!=="px"&&+L)&&nn.exec(A.css(m,E));if(H&&H[3]!==D){for(L=L/2,D=D||H[3],H=+L||1;b--;)A.style(m,E,H+D),(1-y)*(1-(y=k()/L||.5))<=0&&(b=0),H=H/y;H=H*2,A.style(m,E,H+D),P=P||[]}return P&&(H=+H||+L||0,n=P[1]?H+(P[1]+1)*P[2]:+P[2],_&&(_.unit=D,_.start=H,_.end=n)),n}var fr={};function ar(m){var E,P=m.ownerDocument,_=m.nodeName,n=fr[_];return n||(E=P.body.appendChild(P.createElement(_)),n=A.css(E,"dis
vendor: 6,216 bytes, line 10
10play"),E.parentNode.removeChild(E),n==="none"&&(n="block"),fr[_]=n,n)}function Hn(m,E){for(var P,_,n=[],y=0,b=m.length;y<b;y++)_=m[y],_.style&&(P=_.style.display,E?(P==="none"&&(n[y]=ti.get(_,"display")||null,n[y]||(_.style.display="")),_.style.display===""&&wi(_)&&(n[y]=ar(_))):P!=="none"&&(n[y]="none",ti.set(_,"display",P)));for(y=0;y<b;y++)n[y]!=null&&(m[y].style.display=n[y]);return m}A.fn.extend({show:function(){return Hn(this,!0)},hide:function(){return Hn(this)},toggle:function(m){return typeof m=="boolean"?m?this.show():this.hide():this.each(function(){wi(this)?A(this).show():A(this).hide()})}});var nr=/^(?:checkbox|radio)$/i,Mn=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,jn=/^$|^module$|\/(?:java|ecma)script/i;(function(){var m=Et.createDocumentFragment(),E=m.appendChild(Et.createElement("div")),P=Et.createElement("input");P.setAttribute("type","radio"),P.setAttribute("checked","checked"),P.setAttribute("name","t"),E.appendChild(P),J.checkClone=E.cloneNode(!0).cloneNode(!0).lastChild.checked,E.innerHTML="<textarea>x</textarea>",J.noCloneChecked=!!E.cloneNode(!0).lastChild.defaultValue,E.innerHTML="<option></option>",J.option=!!E.lastChild})();var Gn={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Gn.tbody=Gn.tfoot=Gn.colgroup=Gn.caption=Gn.thead,Gn.th=Gn.td,J.option||(Gn.optgroup=Gn.option=[1,"<select multiple='multiple'>","</select>"]);function un(m,E){var P;return typeof m.getElementsByTagName<"u"?P=m.getElementsByTagName(E||"*"):typeof m.querySelectorAll<"u"?P=m.querySelectorAll(E||"*"):P=[],E===void 0||E&&Ot(m,E)?A.merge([m],P):P}function pr(m,E){for(var P=0,_=m.length;P<_;P++)ti.set(m[P],"globalEval",!E||ti.get(E[P],"globalEval"))}var cr=/<|&#?\w+;/;function yr(m,E,P,_,n){for(var y,b,k,L,D,H,Q=E.createDocumentFragment(),N=[],Y=0,j=m.length;Y<j;Y++)if(y=m[Y],y||y===0)if(G(y)==="object")A.merge(N,y.nodeType?[y]:y);else if(!cr.test(y))N.push(E.createTextNode(y));else{for(b=b||Q.appendChild(E.createElement("div")),k=(Mn.exec(y)||["",""])[1].toLowerCase(),L=Gn[k]||Gn._default,b.innerHTML=L[1]+A.htmlPrefilter(y)+L[2],H=L[0];H--;)b=b.lastChild;A.merge(N,b.childNodes),b=Q.firstChild,b.textContent=""}for(Q.textContent="",Y=0;y=N[Y++];){if(_&&A.inArray(y,_)>-1){n&&n.push(y);continue}if(D=sn(y),b=un(Q.appendChild(y),"script"),D&&pr(b),P)for(H=0;y=b[H++];)jn.test(y.type||"")&&P.push(y)}return Q}var Mr=/^([^.]*)(?:\.(.+)|)/;function Zn(){return!0}function Ln(){return!1}function Tn(m,E,P,_,n,y){var b,k;if(typeof E=="object"){typeof P!="string"&&(_=_||P,P=void 0);for(k in E)Tn(m,k,P,_,E[k],y);return m}if(_==null&&n==null?(n=P,_=P=void 0):n==null&&(typeof P=="string"?(n=_,_=void 0):(n=_,_=P,P=void 0)),n===!1)n=Ln;else if(!n)return m;return y===1&&(b=n,n=function(L){return A().off(L),b.apply(this,arguments)},n.guid=b.guid||(b.guid=A.guid++)),m.each(function(){A.event.add(this,E,n,_,P)})}A.event={global:{},add:function(m,E,P,_,n){var y,b,k,L,D,H,Q,N,Y,j,V,it=ti.get(m);if(Nn(m))for(P.handler&&(y=P,P=y.handler,n=y.selector),n&&A.find.matchesSelector(Ti,n),P.guid||(P.guid=A.guid++),(L=it.events)||(L=it.events=Object.create(null)),(b=it.handle)||(b=it.handle=function(yt){return typeof A<"u"&&A.event.triggered!==yt.type?A.event.dispatch.apply(m,arguments):void 0}),E=(E||"").match(pn)||[""],D=E.length;D--;)k=Mr.exec(E[D])||[],Y=V=k[1],j=(k[2]||"").split(".").sort(),Y&&(Q=A.event.special[Y]||{},Y=(n?Q.delegateType:Q.bindType)||Y,Q=A.event.special[Y]||{},H=A.extend({type:Y,origType:V,data:_,handler:P,guid:P.guid,selector:n,needsContext:n&&A.expr.match.needsContext.test(n),namespace:j.join(".")},y),(N=L[Y])||(N=L[Y]=[],N.delegateCount=0,(!Q.setup||Q.setup.call(m,_,j,b)===!1)&&m.addEventListener&&m.addEventListener(Y,b)),Q.add&&(Q.add.call(m,H),H.handler.guid||(H.handler.guid=P.guid)),n?N.splice(N.delegateCount++,0,H):N.push(H),A.event.global[Y]=!0)},remove:function(m,E,P,_,n){var y,b,k,L,D,H,Q,N,Y,j,V,it=ti.hasData(m)&&ti.get(m);if(!(!it||!(L=it.events))){for(E=(E||"").match(pn)||[""],D=E.length;D--;){if(k=Mr.exec(E[D])||[],Y=V=k[1],j=(k[2]||"").split(".").sort(),!Y){for(Y in L)A.event.remove(m,Y+E[D],P,_,!0);continue}for(Q=A.event.special[Y]||{},Y=(_?Q.delegateType:Q.bindType)||Y,N=L[Y]||[],k=k[2]&&new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=N.length;y--;)H=N[y],(n||V===H.origType)&&(!P||P.guid===H.guid)&&(!k||k.test(H.namespace))&&(!_||_===H.selector||_==="**"&&H.selector)&&(N.splice(y,1),H.selector&&N.delegateCount--,Q.remove&&Q.remove.call(m,H));b&&!N.length&&((!Q.teardown||Q.teardown.call(m,j,it.handle)===!1)&&A.removeEvent(m,Y,it.handle),delete L[Y])}A.isEmptyObject(L)&&ti.remove(m,"handle events")}},dispatch:function(m){var E,P,_,n,y,b,k=new Array(arguments.length),L=A.event.fix(m),D=(ti.get(this,"events")||Object.create(null))[L.type]||[],H=A.event.special[L.type]||{};for(k[0]=L,E=1;E<arguments.length;E++)k[E]=arguments[E];if(L.delegateTarget=this,!(H.preDispatch&&H.preDispatch.call(this,L)===!1)){for(b=A.event.handlers.call(this,L,D),E=0;(n=b[E++])&&!L.isPropagationStopped();)for(L.currentTarget=n.elem,P=0;(y=n.handlers[P++])&&!L.isImmediatePropagationStopped();)(!L.rnamespace||y.namespace===!1||L.rnamespace.test(y.namespace))&&(L.handleObj=y,L.data=y.data,_=((A.event.special[y.origType]||{}).handle||y.handler).apply(n.elem,k),_!==void 0&&(L.result=_)===!1&&(L.preventDefault(),L.stopPropagation()));return H.postDispatch&&H.postDispatch.call(this,L),L.result}},handlers:function(m,E){var P,_,n,y,b,k=[],L=E.delegateCount,D=m.target;if(L&&D.nodeType&&!(m.type==="click"&&m.button>=1)){for(;D!==this;D=D.parentNode||this)if(D.nodeType===1&&!(m.type==="click"&&D.disabled===!0)){for(y=[],b={},P=0;P<L;P++)_=E[P],n=_.selector+" ",b[n]===void 0&&(b[n]=_.needsContext?A(n,this).index(D)>-1:A.find(n,this,null,[D]).length),b[n]&&y.push(_);y.length&&k.push({elem:D,handlers:y})}}return D=this,L<E.length&&k.push({elem:D,handlers:E.slice(L)}),k},addProp:function(m,E){Object.defineProperty(A.Event.prototype,m,{enumerable:!0,configurable:!0,get:ht(E)?function(){if(this.originalEvent)return E(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[m]}
10,set:function(P){Object.defineProperty(this,m,{enumerable:!0,configurable:!0,writable:!0,value:P})}})},fix:function(m){return m[A.expando]?m:new A.Event(m)},special:{load:{noBubble:!0},click:{setup:function(m){var E=this||m;return nr.test(E.type)&&E.click&&Ot(E,"input")&&Rt(E,"click",!0),!1},trigger:function(m){var E=this||m;return nr.test(E.type)&&E.click&&Ot(E,"input")&&Rt(E,"click"),!0},_default:function(m){var E=m.target;return nr.test(E.type)&&E.click&&Ot(E,"input")&&ti.get(E,"click")||Ot(E,"a")}},beforeunload:{postDispatch:function(m){m.result!==void 0&&m.originalEvent&&(m.originalEvent.returnValue=m.result)}}}};function Rt(m,E,P){if(!P){ti.get(m,E)===void 0&&A.event.add(m,E,Zn);return}ti.set(m,E,!1),A.event.add(m,E,{namespace:!1,handler:function(_){var n,y=ti.get(this,E);if(_.isTrigger&1&&this[E]){if(y)(A.event.special[E]||{}).delegateType&&_.stopPropagation();else if(y=u.call(arguments),ti.set(this,E,y),this[E](),n=ti.get(this,E),ti.set(this,E,!1),y!==n)return _.stopImmediatePropagation(),_.preventDefault(),n}else y&&(ti.set(this,E,A.event.trigger(y[0],y.slice(1),this)),_.stopPropagation(),_.isImmediatePropagationStopped=Zn)}})}A.removeEvent=function(m,E,P){m.removeEventListener&&m.removeEventListener(E,P)},A.Event=function(m,E){if(!(this instanceof A.Event))return new A.Event(m,E);m&&m.type?(this.originalEvent=m,this.type=m.type,this.isDefaultPrevented=m.defaultPrevented||m.defaultPrevented===void 0&&m.returnValue===!1?Zn:Ln,this.target=m.target&&m.target.nodeType===3?m.target.parentNode:m.target,this.currentTarget=m.currentTarget,this.relatedTarget=m.relatedTarget):this.type=m,E&&A.extend(this,E),this.timeStamp=m&&m.timeStamp||Date.now(),this[A.expando]=!0},A.Event.prototype={constructor:A.Event,isDefaultPrevented:Ln,isPropagationStopped:Ln,isImmediatePropagationStopped:Ln,isSimulated:!1,preventDefault:function(){var m=this.originalEvent;this.isDefaultPrevented=Zn,m&&!this.isSimulated&&m.preventDefault()},stopPropagation:function(){var m=this.originalEvent;this.isPropagationStopped=Zn,m&&!this.isSimulated&&m.stopPropagation()},stopImmediatePropagation:function(){var m=this.originalEvent;this.isImmediatePropagationStopped=Zn,m&&!this.isSimulated&&m.stopImmediatePropagation(),this.stopPropagation()}},A.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},A.event.addProp),A.each({focus:"focusin",blur:"focusout"},function(m,E){function P(_){if(Et.documentMode){var n=ti.get(this,"handle"),y=A.event.fix(_);y.type=_.type==="focusin"?"focus":"blur",y.isSimulated=!0,n(_),y.target===y.currentTarget&&n(y)}else A.event.simulate(E,_.target,A.event.fix(_))}A.event.special[m]={setup:function(){var _;if(Rt(this,m,!0),Et.documentMode)_=ti.get(this,E),_||this.addEventListener(E,P),ti.set(this,E,(_||0)+1);else return!1},trigger:function(){return Rt(this,m),!0},teardown:function(){var _;if(Et.documentMode)_=ti.get(this,E)-1,_?ti.set(this,E,_):(this.removeEventListener(E,P),ti.remove(this,E));else return!1},_default:function(_){return ti.get(_.target,m)},delegateType:E},A.event.special[E]={setup:function(){var _=this.ownerDocument||this.document||this,n=Et.documentMode?this:_,y=ti.get(n,E);y||(Et.documentMode?this.addEventListener(E,P):_.addEventListener(m,P,!0)),ti.set(n,E,(y||0)+1)},teardown:function(){var _=this.ownerDocument||this.document||this,n=Et.documentMode?this:_,y=ti.get(n,E)-1;y?ti.set(n,E,y):(Et.documentMode?this.removeEventListener(E,P):_.removeEventListener(m,P,!0),ti.remove(n,E))}}}
vendor: 5,518 bytes, line 10
10),A.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(m,E){A.event.special[m]={delegateType:E,bindType:E,handle:function(P){var _,n=this,y=P.relatedTarget,b=P.handleObj;return(!y||y!==n&&!A.contains(n,y))&&(P.type=b.origType,_=b.handler.apply(this,arguments),P.type=E),_}}}),A.fn.extend({on:function(m,E,P,_){return Tn(this,m,E,P,_)},one:function(m,E,P,_){return Tn(this,m,E,P,_,1)},off:function(m,E,P){var _,n;if(m&&m.preventDefault&&m.handleObj)return _=m.handleObj,A(m.delegateTarget).off(_.namespace?_.origType+"."+_.namespace:_.origType,_.selector,_.handler),this;if(typeof m=="object"){for(n in m)this.off(n,E,m[n]);return this}return(E===!1||typeof E=="function")&&(P=E,E=void 0),P===!1&&(P=Ln),this.each(function(){A.event.remove(this,m,P,E)})}});var Ft=/<script|<style|<link/i,Zt=/checked\s*(?:[^=]|=\s*.checked.)/i,Le=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function oi(m,E){return Ot(m,"table")&&Ot(E.nodeType!==11?E:E.firstChild,"tr")&&A(m).children("tbody")[0]||m}function Ge(m){return m.type=(m.getAttribute("type")!==null)+"/"+m.type,m}function Ke(m){return(m.type||"").slice(0,5)==="true/"?m.type=m.type.slice(5):m.removeAttribute("type"),m}function ki(m,E){var P,_,n,y,b,k,L;if(E.nodeType===1){if(ti.hasData(m)&&(y=ti.get(m),L=y.events,L)){ti.remove(E,"handle events");for(n in L)for(P=0,_=L[n].length;P<_;P++)A.event.add(E,n,L[n][P])}$n.hasData(m)&&(b=$n.access(m),k=A.extend({},b),$n.set(E,k))}}function Pi(m,E){var P=E.nodeName.toLowerCase();P==="input"&&nr.test(m.type)?E.checked=m.checked:(P==="input"||P==="textarea")&&(E.defaultValue=m.defaultValue)}function Oi(m,E,P,_){E=d(E);var n,y,b,k,L,D,H=0,Q=m.length,N=Q-1,Y=E[0],j=ht(Y);if(j||Q>1&&typeof Y=="string"&&!J.checkClone&&Zt.test(Y))return m.each(function(V){var it=m.eq(V);j&&(E[0]=Y.call(this,V,it.html())),Oi(it,E,P,_)});if(Q&&(n=yr(E,m[0].ownerDocument,!1,m,_),y=n.firstChild,n.childNodes.length===1&&(n=y),y||_)){for(b=A.map(un(n,"script"),Ge),k=b.length;H<Q;H++)L=n,H!==N&&(L=A.clone(L,!0,!0),k&&A.merge(b,un(L,"script"))),P.call(m[H],L,H);if(k)for(D=b[b.length-1].ownerDocument,A.map(b,Ke),H=0;H<k;H++)L=b[H],jn.test(L.type||"")&&!ti.access(L,"globalEval")&&A.contains(D,L)&&(L.src&&(L.type||"").toLowerCase()!=="module"?A._evalUrl&&!L.noModule&&A._evalUrl(L.src,{nonce:L.nonce||L.getAttribute("nonce")},D):R(L.textContent.replace(Le,""),L,D))}return m}function ci(m,E,P){for(var _,n=E?A.filter(E,m):m,y=0;(_=n[y])!=null;y++)!P&&_.nodeType===1&&A.cleanData(un(_)),_.parentNode&&(P&&sn(_)&&pr(un(_,"script")),_.parentNode.removeChild(_));return m}A.extend({htmlPrefilter:function(m){return m},clone:function(m,E,P){var _,n,y,b,k=m.cloneNode(!0),L=sn(m);if(!J.noCloneChecked&&(m.nodeType===1||m.nodeType===11)&&!A.isXMLDoc(m))for(b=un(k),y=un(m),_=0,n=y.length;_<n;_++)Pi(y[_],b[_]);if(E)if(P)for(y=y||un(m),b=b||un(k),_=0,n=y.length;_<n;_++)ki(y[_],b[_]);else ki(m,k);return b=un(k,"script"),b.length>0&&pr(b,!L&&un(m,"script")),k},cleanData:function(m){for(var E,P,_,n=A.event.special,y=0;(P=m[y])!==void 0;y++)if(Nn(P)){if(E=P[ti.expando]){if(E.events)for(_ in E.events)n[_]?A.event.remove(P,_):A.removeEvent(P,_,E.handle);P[ti.expando]=void 0}P[$n.expando]&&(P[$n.expando]=void 0)}}}),A.fn.extend({detach:function(m){return ci(this,m,!0)},remove:function(m){return ci(this,m)},text:function(m){return Gi(this,function(E){return E===void 0?A.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=E)})},null,m,arguments.length)},append:function(){return Oi(this,arguments,function(m){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var E=oi(this,m);E.appendChild(m)}})},prepend:function(){return Oi(this,arguments,function(m){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var E=oi(this,m);E.insertBefore(m,E.firstChild)}})},before:function(){return Oi(this,arguments,function(m){this.parentNode&&this.parentNode.insertBefore(m,this)})},after:function(){return Oi(this,arguments,function(m){this.parentNode&&this.parentNode.insertBefore(m,this.nextSibling)})},empty:function(){for(var m,E=0;(m=this[E])!=null;E++)m.nodeType===1&&(A.cleanData(un(m,!1)),m.textContent="");return this},clone:function(m,E){return m=m??!1,E=E??m,this.map(function(){return A.clone(this,m,E)})},html:function(m){return Gi(this,function(E){var P=this[0]||{},_=0,n=this.length;if(E===void 0&&P.nodeType===1)return P.innerHTML;if(typeof E=="string"&&!Ft.test(E)&&!Gn[(Mn.exec(E)||["",""])[1].toLowerCase()]){E=A.htmlPrefilter(E);try{for(;_<n;_++)P=this[_]||{},P.nodeType===1&&(A.cleanData(un(P,!1)),P.innerHTML=E);P=0}catch{}}P&&this.empty().append(E)},null,m,arguments.length)},replaceWith:function(){var m=[];return Oi(this,arguments,function(E){var P=this.parentNode;A.inArray(this,m)<0&&(A.cleanData(un(this)),P&&P.replaceChild(E,this))},m)}}),A.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(m,E){A.fn[m]=function(P){for(var _,n=[],y=A(P),b=y.length-1,k=0;k<=b;k++)_=k===b?this:this.clone(!0),A(y[k])[E](_),S.apply(n,_.get());return this.pushStack(n)}});var tn=new RegExp("^("+qn+")(?!px)[a-z%]+$","i"),Ui=/^--/,cn=function(m){var E=m.ownerDocument.defaultView;return(!E||!E.opener)&&(E=t),E.getComputedStyle(m)},$i=function(m,E,P){var _,n,y={};for(n in E)y[n]=m.style[n],m.style[n]=E[n];_=P.call(m);for(n in E)m.style[n]=y[n];return _},Hi=new RegExp(En.join("|"),"i");(function(){function m(){if(D){L.style.cssText="position:absolute;
10left:-11111px;width:60px;margin-top:1px;padding:0;border:0",D.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Ti.appendChild(L).appendChild(D);var H=t.getComputedStyle(D);P=H.top!=="1%",k=E(H.marginLeft)===12,D.style.right="60%",y=E(H.right)===36,_=E(H.width)===36,D.style.position="absolute",n=E(D.offsetWidth/3)===12,Ti.removeChild(L),D=null}}function E(H){return Math.round(parseFloat(H))}var P,_,n,y,b,k,L=Et.createElement("div"),D=Et.createElement("div");D.style&&(D.style.backgroundClip="content-box",D.cloneNode(!0).style.backgroundClip="",J.clearCloneStyle=D.style.backgroundClip==="content-box",A.extend(J,{boxSizingReliable:function(){return m(),_},pixelBoxStyles:function(){return m(),y},pixelPosition:function(){return m(),P},reliableMarginLeft:function(){return m(),k},scrollboxSize:function(){return m(),n},reliableTrDimensions:function(){var H,Q,N,Y;return b==null&&(H=Et.createElement("table"),Q=Et.createElement("tr"),N=Et.createElement("div"),H.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Q.style.cssText="box-sizing:content-box;border:1px solid",Q.style.height="1px",N.style.height="9px",N.style.display="block",Ti.appendChild(H).appendChild(Q).appendChild(N),Y=t.getComputedStyle(Q),b=parseInt(Y.height,10)+parseInt(Y.borderTopWidth,10)+parseInt(Y.borderBottomWidth,10)===Q.offsetHeight,Ti.removeChild(H)),b}}))})();function xi(m,E,P){var _,n,y,b,k=Ui.test(E),L=m.style;return P=P||cn(m),P&&(b=P.getPropertyValue(E)||P[E],k&&b&&(b=b.replace(ot,"$1")||void 0),b===""&&!sn(m)&&(b=A.style(m,E)),!J.pixelBoxStyles()&&tn.test(b)&&Hi.test(E)&&(_=L.width,n=L.minWidth,y=L.maxWidth,L.minWidth=L.maxWidth=L.width=b,b=P.width,L.width=_,L.minWidth=n,L.maxWidth=y)),b!==void 0?b+"":b}function vi(m,E){return{get:function(){if(m()){delete this.get;return}return(this.get=E).apply(this,arguments)}}}var Qi=["Webkit","Moz","ms"],dt=Et.createElement("div").style,X={};function _t(m){for(var E=m[0].toUpperCase()+m.slice(1),P=Qi.length;P--;)if(m=Qi[P]+E,m in dt)return m}function jt(m){var E=A.cssProps[m]||X[m];return E||(m in dt?m:X[m]=_t(m)||m)}var Pe=/^(none|table(?!-c[ea]).+)/,Ce={position:"absolute",visibility:"hidden",display:"block"},si={letterSpacing:"0",fontWeight:"400"};function ai(m,E,P){var _=nn.exec(E);return _?Math.max(0,_[2]-(P||0))+(_[3]||"px"):E}function Ai(m,E,P,_,n,y){var b=E==="width"?1:0,k=0,L=0,D=0;if(P===(_?"border":"content"))return 0;for(;b<4;b+=2)P==="margin"&&(D+=A.css(m,P+En[b],!0,n)),_?(P==="content"&&(L-=A.css(m,"padding"+En[b],!0,n)),P!=="margin"&&(L-=A.css(m,"border"+En[b]+"Width",!0,n))):(L+=A.css(m,"padding"+En[b],!0,n),P!=="padding"?L+=A.css(m,"border"+En[b]+"Width",!0,n):k+=A.css(m,"border"+En[b]+"Width",!0,n));return!_&&y>=0&&(L+=Math.max(0,Math.ceil(m["offset"+E[0].toUpperCase()+E.slice(1)]-y-L-k-.5))||0),L+D}function li(m,E,P){var _=cn(m),n=!J.boxSizingReliable()||P,y=n&&A.css(m,"boxSizing",!1,_)==="border-box",b=y,k=xi(m,E,_),L="offset"+E[0].toUpperCase()+E.slice(1);if(tn.test(k)){if(!P)return k;k="auto"}return(!J.boxSizingReliable()&&y||!J.reliableTrDimensions()&&Ot(m,"tr")||k==="auto"||!parseFloat(k)&&A.css(m,"display",!1,_)==="inline")&&m.getClientRects().length&&(y=A.css(m,"boxSizing",!1,_)==="border-box",b=L in m,b&&(k=m[L])),k=parseFloat(k)||0,k+Ai(m,E,P||(y?"border":"content"),b,_,k)+"px"}A.extend({cssHooks:{opacity:{get:function(m,E){if(E){var P=xi(m,"opacity");return P===""?"1":P}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(m,E,P,_){if(!(!m||m.nodeType===3||m.nodeType===8||!m.style)){var n,y,b,k=qi(E),L=Ui.test(E),D=m.style;if(L||(E=jt(k)),b=A.cssHooks[E]||A.cssHooks[k],P!==void 0){if(y=typeof P,y==="string"&&(n=nn.exec(P))&&n[1]&&(P=Wn(m,E,n),y="number"),P==null||P!==P)return;y==="number"&&!L&&(P+=n&&n[3]||(A.cssNumber[k]?"":"px")),!J.clearCloneStyle&&P===""&&E.indexOf("background")===0&&(D[E]="inherit"),(!b||!("set"in b)||(P=b.set(m,P,_))!==void 0)&&(L?D.setProperty(E,P):D[E]=P)}else return b&&"get"in b&&(n=b.get(m,!1,_))!==void 0?n:D[E]}},css:function(m,E,P,_){var n,y,b,k=qi(E),L=Ui.test(E);return L||(E=jt(k)),b=A.cssHooks[E]||A.cssHooks[k],b&&"get"in b&&(n=b.get(m,!0,P)),n===void 0&&(n=xi(m,E,_)),n==="normal"&&E in si&&(n=si[E]),P===""||P?(y=parseFloat(n),P===!0||isFinite(y)?y||0:n):n}}),A.each(["height","width"],function(m,E){A.cssHooks[E]={get:function(P,_,n){if(_)return Pe.test(A.css(P,"display"))&&(!P.getClientRects().length||!P.getBoundingClientRect().width)?$i(P,Ce,function(){return li(P,E,n)}):li(P,E,n)},set:function(P,_,n){var y,b=cn(P),k=!J.scrollboxSize()&&b.position==="absolute",L=k||n,D=L&&A.css(P,"boxSizing",!1,b)==="border-box",H=n?Ai(P,E,n,D,b):0;return D&&k&&(H-=Math.ceil(P["offset"+E[0].toUpperCase()+E.slice(1)]-parseFloat(b[E])-Ai(P,E,"border",!1,b)-.5)),H&&(y=nn.exec(_))&&(y[3]||"px")!=="px"&&(P.style[E]=_,_=A.css(P,E)),ai(P,_,H)}}}),A.cssHooks.marginLeft=vi(J.reliableMarginLeft,function(m,E){if(E)return(parseFloat(xi(m,"marginLeft"))||m.getBoundingClientRect().left-$i(m,{marginLeft:0},function(){return m.getBoundingClientRect().left}))+"px"}),A.each({margin:"",padding:"",border:"Width"},function(m,E){A.cssHooks[m+E]={expand:function(P){for(var _=0,n={},y=typeof P=="string"?P.split(" "):[P];_<4;_++)n[m+En[_]+E]=y[_]||y[_-2]||y[0];return n}},m!=="margin"&&(A.cssHooks[m+E].set=ai)}),A.fn.extend({css:function(m,E){return Gi(this,function(P,_,n){var y,b,k={},L=0;if(Array.isArray(_)){for(y=cn(P),b=_.length;L<b;L++)k[_[L]]=A.css(P,_[L],!1,y);return k}return n!==void 0?A.style(P,_,n):A.css(P,_)},m,E,arguments.length>1)}});function ui(m,E,P,_,n){return new ui.prototype.init(m,E,P,_,n)}A.Tween=ui,ui.prototype={constructor:ui,init:function(m,E,P,_,n,y){this.elem=m,this.prop=P,this.easing=n||A.easing._default,this.options=E,this.start=this.now=this.cur(),this.end=_,this.unit=y||(A.cssNumber[P]?"":"px")},cur:function(){var m=ui.propHooks[this.prop];return m&&m.get?m.get(this):ui.propHooks._default.get(this)},run:function(m){var E,P=ui.propHooks[this.prop];return this.options.duration?this.pos=E=A.easing[this.easing](m,this.options.duration*m,0,1,this.options.duration):this.pos=E=m,this.now=(this.end-this.start)*E+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),P&&P.set?P.set(this):ui.propHooks._default.set(this),this}},ui.prototype.init.prototype=ui.prototype,ui.propHooks={_default:{get:function(m){var E;return m.elem.nodeType!==1||m.elem[m.prop]!=null&&m.elem.style[m.prop]==null?m.elem[m.prop]:(E=A.css(m.elem,m.prop,""),!E||E==="auto"?0:E)},set:function(m){A.fx.step[m.prop]?A.fx.step[m.prop](m):m.elem.nodeType===1&&(A.cssHooks[m.prop]||m.elem.style[jt(m.prop)]!=null)?A.style(m.elem,m.prop,m.now+m.unit):m.elem[m.prop]=m.now}}},ui.propHooks.scrollTop=ui.propHooks.scrollLeft={set:function(m){m.elem.nodeType&&m.elem.parentNode&&(m.elem[m.prop]=m.now)}},A.easing={linear:function(m){return m},swing:function(m){return .5-Math.cos(m*Math.PI)/2},_default:"swing"},A.fx=ui.prototype.init,A.fx.step={};var Zi,kn,ur=/^(?:toggle|show|hide)$/,Sr=/queueHooks$/;function Rn(){kn&&(Et.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Rn):t.setTimeout(Rn,A.fx.interval),A.fx.tick())}function rr(){return t.setTimeout(function(){Zi=void 0}),Zi=Date.now()}function bt(m,E){var P,_=0,n={height:m};for(E=E?1:0;_<4;_+=2-E)P=En[_],n["margin"+P]=n["padding"+P]=m;
vendor: 29,863 bytes, lines 10-13
10return E&&(n.opacity=n.width=m),n}function gt(m,E,P){for(var _,n=(te.tweeners[E]||[]).concat(te.tweeners["*"]),y=0,b=n.length;y<b;y++)if(_=n[y].call(P,E,m))return _}function Mt(m,E,P){var _,n,y,b,k,L,D,H,Q="width"in E||"height"in E,N=this,Y={},j=m.style,V=m.nodeType&&wi(m),it=ti.get(m,"fxshow");P.queue||(b=A._queueHooks(m,"fx"),b.unqueued==null&&(b.unqueued=0,k=b.empty.fire,b.empty.fire=function(){b.unqueued||k()}),b.unqueued++,N.always(function(){N.always(function(){b.unqueued--,A.queue(m,"fx").length||b.empty.fire()})}));for(_ in E)if(n=E[_],ur.test(n)){if(delete E[_],y=y||n==="toggle",n===(V?"hide":"show"))if(n==="show"&&it&&it[_]!==void 0)V=!0;else continue;Y[_]=it&&it[_]||A.style(m,_)}if(L=!A.isEmptyObject(E),!(!L&&A.isEmptyObject(Y))){Q&&m.nodeType===1&&(P.overflow=[j.overflow,j.overflowX,j.overflowY],D=it&&it.display,D==null&&(D=ti.get(m,"display")),H=A.css(m,"display"),H==="none"&&(D?H=D:(Hn([m],!0),D=m.style.display||D,H=A.css(m,"display"),Hn([m]))),(H==="inline"||H==="inline-block"&&D!=null)&&A.css(m,"float")==="none"&&(L||(N.done(function(){j.display=D}),D==null&&(H=j.display,D=H==="none"?"":H)),j.display="inline-block")),P.overflow&&(j.overflow="hidden",N.always(function(){j.overflow=P.overflow[0],j.overflowX=P.overflow[1],j.overflowY=P.overflow[2]})),L=!1;for(_ in Y)L||(it?"hidden"in it&&(V=it.hidden):it=ti.access(m,"fxshow",{display:D}),y&&(it.hidden=!V),V&&Hn([m],!0),N.done(function(){V||Hn([m]),ti.remove(m,"fxshow");for(_ in Y)A.style(m,_,Y[_])})),L=gt(V?it[_]:0,_,N),_ in it||(it[_]=L.start,V&&(L.end=L.start,L.start=0))}}function ee(m,E){var P,_,n,y,b;for(P in m)if(_=qi(P),n=E[_],y=m[P],Array.isArray(y)&&(n=y[1],y=m[P]=y[0]),P!==_&&(m[_]=y,delete m[P]),b=A.cssHooks[_],b&&"expand"in b){y=b.expand(y),delete m[_];for(P in y)P in m||(m[P]=y[P],E[P]=n)}else E[_]=n}function te(m,E,P){var _,n,y=0,b=te.prefilters.length,k=A.Deferred().always(function(){delete L.elem}),L=function(){if(n)return!1;for(var Q=Zi||rr(),N=Math.max(0,D.startTime+D.duration-Q),Y=N/D.duration||0,j=1-Y,V=0,it=D.tweens.length;V<it;V++)D.tweens[V].run(j);return k.notifyWith(m,[D,j,N]),j<1&&it?N:(it||k.notifyWith(m,[D,1,0]),k.resolveWith(m,[D]),!1)},D=k.promise({elem:m,props:A.extend({},E),opts:A.extend(!0,{specialEasing:{},easing:A.easing._default},P),originalProperties:E,originalOptions:P,startTime:Zi||rr(),duration:P.duration,tweens:[],createTween:function(Q,N){var Y=A.Tween(m,D.opts,Q,N,D.opts.specialEasing[Q]||D.opts.easing);return D.tweens.push(Y),Y},stop:function(Q){var N=0,Y=Q?D.tweens.length:0;if(n)return this;for(n=!0;N<Y;N++)D.tweens[N].run(1);return Q?(k.notifyWith(m,[D,1,0]),k.resolveWith(m,[D,Q])):k.rejectWith(m,[D,Q]),this}}),H=D.props;for(ee(H,D.opts.specialEasing);y<b;y++)if(_=te.prefilters[y].call(D,m,H,D.opts),_)return ht(_.stop)&&(A._queueHooks(D.elem,D.opts.queue).stop=_.stop.bind(_)),_;return A.map(H,gt,D),ht(D.opts.start)&&D.opts.start.call(m,D),D.progress(D.opts.progress).done(D.opts.done,D.opts.complete).fail(D.opts.fail).always(D.opts.always),A.fx.timer(A.extend(L,{elem:m,anim:D,queue:D.opts.queue})),D}A.Animation=A.extend(te,{tweeners:{"*":[function(m,E){var P=this.createTween(m,E);return Wn(P.elem,m,nn.exec(E),P),P}]},tweener:function(m,E){ht(m)?(E=m,m=["*"]):m=m.match(pn);for(var P,_=0,n=m.length;_<n;_++)P=m[_],te.tweeners[P]=te.tweeners[P]||[],te.tweeners[P].unshift(E)},prefilters:[Mt],prefilter:function(m,E){E?te.prefilters.unshift(m):te.prefilters.push(m)}}),A.speed=function(m,E,P){var _=m&&typeof m=="object"?A.extend({},m):{complete:P||!P&&E||ht(m)&&m,duration:m,easing:P&&E||E&&!ht(E)&&E};return A.fx.off?_.duration=0:typeof _.duration!="number"&&(_.duration in A.fx.speeds?_.duration=A.fx.speeds[_.duration]:_.duration=A.fx.speeds._default),(_.queue==null||_.queue===!0)&&(_.queue="fx"),_.old=_.complete,_.complete=function(){ht(_.old)&&_.old.call(this),_.queue&&A.dequeue(this,_.queue)},_},A.fn.extend({fadeTo:function(m,E,P,_){return this.filter(wi).css("opacity",0).show().end().animate({opacity:E},m,P,_)},animate:function(m,E,P,_){var n=A.isEmptyObject(m),y=A.speed(E,P,_),b=function(){var k=te(this,A.extend({},m),y);(n||ti.get(this,"finish"))&&k.stop(!0)};return b.finish=b,n||y.queue===!1?this.each(b):this.queue(y.queue,b)},stop:function(m,E,P){var _=function(n){var y=n.stop;delete n.stop,y(P)};return typeof m!="string"&&(P=E,E=m,m=void 0),E&&this.queue(m||"fx",[]),this.each(function(){var n=!0,y=m!=null&&m+"queueHooks",b=A.timers,k=ti.get(this);if(y)k[y]&&k[y].stop&&_(k[y]);else for(y in k)k[y]&&k[y].stop&&Sr.test(y)&&_(k[y]);for(y=b.length;y--;)b[y].elem===this&&(m==null||b[y].queue===m)&&(b[y].anim.stop(P),n=!1,b.splice(y,1));(n||!P)&&A.dequeue(this,m)})},finish:function(m){return m!==!1&&(m=m||"fx"),this.each(function(){var E,P=ti.get(this),_=P[m+"queue"],n=P[m+"queueHooks"],y=A.timers,b=_?_.length:0;for(P.finish=!0,A.queue(this,m,[]),n&&n.stop&&n.stop.call(this,!0),E=y.length;E--;)y[E].elem===this&&y[E].queue===m&&(y[E].anim.stop(!0),y.splice(E,1));for(E=0;E<b;E++)_[E]&&_[E].finish&&_[E].finish.call(this);delete P.finish})}}),A.each(["toggle","show","hide"],function(m,E){var P=A.fn[E];A.fn[E]=function(_,n,y){return _==null||typeof _=="boolean"?P.apply(this,arguments):this.animate(bt(E,!0),_,n,y)}}),A.each({slideDown:bt("show"),slideUp:bt("hide"),slideToggle:bt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(m,E){A.fn[m]=function(P,_,n){return this.animate(E,P,_,n)}}),A.timers=[],A.fx.tick=function(){var m,E=0,P=A.timers;for(Zi=Date.now();E<P.length;E++)m=P[E],!m()&&P[E]===m&&P.splice(E--,1);P.length||A.fx.stop(),Zi=void 0},A.fx.timer=function(m){A.timers.push(m),A.fx.start()},A.fx.interval=13,A.fx.start=function(){kn||(kn=!0,Rn())},A.fx.stop=function(){kn=null},A.fx.speeds={slow:600,fast:200,_default:400},A.fn.delay=function(m,E){return m=A.fx&&A.fx.speeds[m]||m,E=E||"fx",this.queue(E,function(P,_){var n=t.setTimeout(P,m);_.stop=function(){t.clearTimeout(n)}})},function(){var m=Et.createElement("input"),E=Et.createElement("select"),P=E.appendChild(Et.createElement("option"));m.type="checkbox",J.checkOn=m.value!=="",J.optSelected=P.selected,m=Et.createElement("input"),m.value="t",m.type="radio",J.radioValue=m.value==="t"}();var Fe,ei=A.expr.attrHandle;A.fn.extend({attr:function(m,E){return Gi(this,A.attr,m,E,arguments.length>1)},removeAttr:function(m){return this.each(function(){A.removeAttr(this,m)})}}),A.extend({attr:function(m,E,P){var _,n,y=m.nodeType;if(!(y===3||y===8||y===2)){if(typeof m.getAttribute>"u")return A.prop(m,E,P);if((y!==1||!A.isXMLDoc(m))&&(n=A.attrHooks[E.toLowerCase()]||(A.expr.match.bool.test(E)?Fe:void 0)),P!==void 0){if(P===null){A.removeAttr(m,E);return}return n&&"set"in n&&(_=n.set(m,P,E))!==void 0?_:(m.setAttribute(E,P+""),P)}return n&&"get"in n&&(_=n.get(m,E))!==null?_:(_=A.find.attr(m,E),_??void 0)}},attrHooks:{type:{set:function(m,E){if(!J.radioValue&&E==="radio"&&Ot(m,"input")){var P=m.value;return m.setAttribute("type",E),P&&(m.value=P),E}}}},removeAttr:function(m,E){var P,_=0,n=E&&E.match(pn);if(n&&m.nodeType===1)for(;P=n[_++];)m.removeAttribute(P)}}),Fe={set:function(m,E,P){return E===!1?A.removeAttr(m,P):m.setAttribute(P,P),P}},A.each(A.expr.match.bool.source.match(/\w+/g),function(m,E){var P=ei[E]||A.find.attr;ei[E]=function(_,n,y){var b,k,L=n.toLowerCase();return y||(k=ei[L],ei[L]=b,b=P(_,n,y)!=null?L:null,ei[L]=k),b}});var Me=/^(?:input|select|textarea|button)$/i,je=/^(?:a|area)$/i;A.fn.extend({prop:function(m,E){return Gi(this,A.prop,m,E,arguments.length>1)},removeProp:function(m){return this.each(function(){delete this[A.propFix[m]||m]})}}),A.extend({prop:function(m,E,P){var _,n,y=m.nodeType;if(!(y===3||y===8||y===2))return(y!==1||!A.isXMLDoc(m))&&(E=A.propFix[E]||E,n=A.propHooks[E]),P!==void 0?n&&"set"in n&&(_=n.set(m,P,E))!==void 0?_:m[E]=P:n&&"get"in n&&(_=n.get(m,E))!==null?_:m[E]},propHooks:{tabIndex:{get:function(m){var E=A.find.attr(m,"tabindex");return E?parseInt(E,10):Me.test(m.nodeName)||je.test(m.nodeName)&&m.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),J.optSelected||(A.propHooks.selected={get:function(m){var E=m.parentNode;return E&&E.parentNode&&E.parentNode.selectedIndex,null},set:function(m){var E=m.parentNode;E&&(E.selectedIndex,E.parentNode&&E.parentNode.selectedIndex)}}),A.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){A.propFix[this.toLowerCase()]=this});function Ci(m){var E=m.match(pn)||[];return E.join(" ")}function Re(m){return m.getAttribute&&m.getAttribute("class")||""}function zi(m){return Array.isArray(m)?m:typeof m=="string"?m.match(pn)||[]:[]}A.fn.extend({addClass:function(m){var E,P,_,n,y,b;return ht(m)?this.each(function(k){A(this).addClass(m.call(this,k,Re(this)))}):(E=zi(m),E.length?this.each(function(){if(_=Re(this),P=this.nodeType===1&&" "+Ci(_)+" ",P){for(y=0;y<E.length;y++)n=E[y],P.indexOf(" "+n+" ")<0&&(P+=n+" ");b=Ci(P),_!==b&&this.setAttribute("class",b)}}):this)},removeClass:function(m){var E,P,_,n,y,b;return ht(m)?this.each(function(k){A(this).removeClass(m.call(this,k,Re(this)))}):arguments.length?(E=zi(m),E.length?this.each(function(){if(_=Re(this),P=this.nodeType===1&&" "+Ci(_)+" ",P){for(y=0;y<E.length;y++)for(n=E[y];P.indexOf(" "+n+" ")>-1;)P=P.replace(" "+n+" "," ");b=Ci(P),_!==b&&this.setAttribute("class",b)}}):this):this.attr("class","")},toggleClass:function(m,E){var P,_,n,y,b=typeof m,k=b==="string"||Array.isArray(m);return ht(m)?this.each(function(L){A(this).toggleClass(m.call(this,L,Re(this),E),E)}):typeof E=="boolean"&&k?E?this.addClass(m):this.removeClass(m):(P=zi(m),this.each(function(){if(k)for(y=A(this),n=0;n<P.length;n++)_=P[n],y.hasClass(_)?y.removeClass(_):y.addClass(_);else(m===void 0||b==="boolean")&&(_=Re(this),_&&ti.set(this,"__className__",_),this.setAttribute&&this.setAttribute("class",_||m===!1?"":ti.get(this,"__className__")||""))}))},hasClass:function(m){var E,P,_=0;for(E=" "+m+" ";P=this[_++];)if(P.nodeType===1&&(" "+Ci(Re(P))+" ").indexOf(E)>-1)return!0;return!1}});var K=/\r/g;A.fn.extend({val:function(m){var E,P,_,n=this[0];return arguments.length?(_=ht(m),this.each(function(y){var b;this.nodeType===1&&(_?b=m.call(this,y,A(this).val()):b=m,b==null?b="":typeof b=="number"?b+="":Array.isArray(b)&&(b=A.map(b,function(k){return k==null?"":k+""})),E=A.valHooks[this.type]||A.valHooks[this.nodeName.toLowerCase()],(!E||!("set"in E)||E.set(this,b,"value")===void 0)&&(this.value=b))})):n?(E=A.valHooks[n.type]||A.valHooks[n.nodeName.toLowerCase()],E&&"get"in E&&(P=E.get(n,"value"))!==void 0?P:(P=n.value,typeof P=="string"?P.replace(K,""):P??"")):void 0}}),A.extend({valHooks:{option:{get:function(m){var E=A.find.attr(m,"value");return E??Ci(A.text(m))}},select:{get:function(m){var E,P,_,n=m.options,y=m.selectedIndex,b=m.type==="select-one",k=b?null:[],L=b?y+1:n.length;for(y<0?_=L:_=b?y:0;_<L;_++)if(P=n[_],(P.selected||_===y)&&!P.disabled&&(!P.parentNode.disabled||!Ot(P.parentNode,"optgroup"))){if(E=A(P).val(),b)return E;k.push(E)}return k},set:function(m,E){for(var P,_,n=m.options,y=A.makeArray(E),b=n.length;b--;)_=n[b],(_.selected=A.inArray(A.valHooks.option.get(_),y)>-1)&&(P=!0);return P||(m.selectedIndex=-1),y}}}}),A.each(["radio","checkbox"],function(){A.valHooks[this]={set:function(m,E){if(Array.isArray(E))return m.checked=A.inArray(A(m).val(),E)>-1}},J.checkOn||(A.valHooks[this].get=function(m){return m.getAttribute("value")===null?"on":m.value})});var O=t.location,W={guid:Date.now()},lt=/\?/;A.parseXML=function(m){var E,P;if(!m||typeof m!="string")return null;try{E=new t.DOMParser().parseFromString(m,"text/xml")}catch{}return P=E&&E.getElementsByTagName("parsererror")[0],(!E||P)&&A.error("Invalid XML: "+(P?A.map(P.childNodes,function(_){return _.textContent}).join(`
11`):m)),E};var pt=/^(?:focusinfocus|focusoutblur)$/,wt=function(m){m.stopPropagation()};A.extend(A.event,{trigger:function(m,E,P,_){var n,y,b,k,L,D,H,Q,N=[P||Et],Y=nt.call(m,"type")?m.type:m,j=nt.call(m,"namespace")?m.namespace.split("."):[];if(y=Q=b=P=P||Et,!(P.nodeType===3||P.nodeType===8)&&!pt.test(Y+A.event.triggered)&&(Y.indexOf(".")>-1&&(j=Y.split("."),Y=j.shift(),j.sort()),L=Y.indexOf(":")<0&&"on"+Y,m=m[A.expando]?m:new A.Event(Y,typeof m=="object"&&m),m.isTrigger=_?2:3,m.namespace=j.join("."),m.rnamespace=m.namespace?new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,m.result=void 0,m.target||(m.target=P),E=E==null?[m]:A.makeArray(E,[m]),H=A.event.special[Y]||{},!(!_&&H.trigger&&H.trigger.apply(P,E)===!1))){if(!_&&!H.noBubble&&!xt(P)){for(k=H.delegateType||Y,pt.test(k+Y)||(y=y.parentNode);y;y=y.parentNode)N.push(y),b=y;b===(P.ownerDocument||Et)&&N.push(b.defaultView||b.parentWindow||t)}for(n=0;(y=N[n++])&&!m.isPropagationStopped();)Q=y,m.type=n>1?k:H.bindType||Y,D=(ti.get(y,"events")||Object.create(null))[m.type]&&ti.get(y,"handle"),D&&D.apply(y,E),D=L&&y[L],D&&D.apply&&Nn(y)&&(m.result=D.apply(y,E),m.result===!1&&m.preventDefault());return m.type=Y,!_&&!m.isDefaultPrevented()&&(!H._default||H._default.apply(N.pop(),E)===!1)&&Nn(P)&&L&&ht(P[Y])&&!xt(P)&&(b=P[L],b&&(P[L]=null),A.event.triggered=Y,m.isPropagationStopped()&&Q.addEventListener(Y,wt),P[Y](),m.isPropagationStopped()&&Q.removeEventListener(Y,wt),A.event.triggered=void 0,b&&(P[L]=b)),m.result}},simulate:function(m,E,P){var _=A.extend(new A.Event,P,{type:m,isSimulated:!0});A.event.trigger(_,null,E)}}),A.fn.extend({trigger:function(m,E){return this.each(function(){A.event.trigger(m,E,this)})},triggerHandler:function(m,E){var P=this[0];if(P)return A.event.trigger(m,E,P,!0)}});var It=/\[\]$/,Nt=/\r?\n/g,Ut=/^(?:submit|button|image|reset|file)$/i,zt=/^(?:input|select|textarea|keygen)/i;function Jt(m,E,P,_){var n;if(Array.isArray(E))A.each(E,function(y,b){P||It.test(m)?_(m,b):Jt(m+"["+(typeof b=="object"&&b!=null?y:"")+"]",b,P,_)});else if(!P&&G(E)==="object")for(n in E)Jt(m+"["+n+"]",E[n],P,_);else _(m,E)}A.param=function(m,E){var P,_=[],n=function(y,b){var k=ht(b)?b():b;_[_.length]=encodeURIComponent(y)+"="+encodeURIComponent(k??"")};if(m==null)return"";if(Array.isArray(m)||m.jquery&&!A.isPlainObject(m))A.each(m,function(){n(this.name,this.value)});else for(P in m)Jt(P,m[P],E,n);return _.join("&")},A.fn.extend({serialize:function(){return A.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var m=A.prop(this,"elements");return m?A.makeArray(m):this}).filter(function(){var m=this.type;return this.name&&!A(this).is(":disabled")&&zt.test(this.nodeName)&&!Ut.test(m)&&(this.checked||!nr.test(m))}).map(function(m,E){var P=A(this).val();return P==null?null:Array.isArray(P)?A.map(P,function(_){return{name:E.name,value:_.replace(Nt,`\r
12`)}}):{name:E.name,value:P.replace(Nt,`\r
13`)}}).get()}});var ae=/%20/g,Oe=/#.*$/,Se=/([?&])_=[^&]*/,ze=/^(.*?):[ \t]*([^\r\n]*)$/mg,de=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,$e=/^(?:GET|HEAD)$/,Xe=/^\/\//,qe={},Ie={},ni="*/".concat("*"),fi=Et.createElement("a");fi.href=O.href;function Wt(m){return function(E,P){typeof E!="string"&&(P=E,E="*");var _,n=0,y=E.toLowerCase().match(pn)||[];if(ht(P))for(;_=y[n++];)_[0]==="+"?(_=_.slice(1)||"*",(m[_]=m[_]||[]).unshift(P)):(m[_]=m[_]||[]).push(P)}}function ge(m,E,P,_){var n={},y=m===Ie;function b(k){var L;return n[k]=!0,A.each(m[k]||[],function(D,H){var Q=H(E,P,_);if(typeof Q=="string"&&!y&&!n[Q])return E.dataTypes.unshift(Q),b(Q),!1;if(y)return!(L=Q)}),L}return b(E.dataTypes[0])||!n["*"]&&b("*")}function _e(m,E){var P,_,n=A.ajaxSettings.flatOptions||{};for(P in E)E[P]!==void 0&&((n[P]?m:_||(_={}))[P]=E[P]);return _&&A.extend(!0,m,_),m}function pi(m,E,P){for(var _,n,y,b,k=m.contents,L=m.dataTypes;L[0]==="*";)L.shift(),_===void 0&&(_=m.mimeType||E.getResponseHeader("Content-Type"));if(_){for(n in k)if(k[n]&&k[n].test(_)){L.unshift(n);break}}if(L[0]in P)y=L[0];else{for(n in P){if(!L[0]||m.converters[n+" "+L[0]]){y=n;break}b||(b=n)}y=y||b}if(y)return y!==L[0]&&L.unshift(y),P[y]}function yi(m,E,P,_){var n,y,b,k,L,D={},H=m.dataTypes.slice();if(H[1])for(b in m.converters)D[b.toLowerCase()]=m.converters[b];for(y=H.shift();y;)if(m.responseFields[y]&&(P[m.responseFields[y]]=E),!L&&_&&m.dataFilter&&(E=m.dataFilter(E,m.dataType)),L=y,y=H.shift(),y){if(y==="*")y=L;else if(L!=="*"&&L!==y){if(b=D[L+" "+y]||D["* "+y],!b){for(n in D)if(k=n.split(" "),k[1]===y&&(b=D[L+" "+k[0]]||D["* "+k[0]],b)){b===!0?b=D[n]:D[n]!==!0&&(y=k[0],H.unshift(k[1]));break}}if(b!==!0)if(b&&m.throws)E=b(E);else try{E=b(E)}catch(Q){return{state:"parsererror",error:b?Q:"No conversion from "+L+" to "+y}}}}return{state:"success",data:E}}A.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:O.href,type:"GET",isLocal:de.test(O.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ni,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":A.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(m,E){return E?_e(_e(m,A.ajaxSettings),E):_e(A.ajaxSettings,m)},ajaxPrefilter:Wt(qe),ajaxTransport:Wt(Ie),ajax:function(m,E){typeof m=="object"&&(E=m,m=void 0),E=E||{};var P,_,n,y,b,k,L,D,H,Q,N=A.ajaxSetup({},E),Y=N.context||N,j=N.context&&(Y.nodeType||Y.jquery)?A(Y):A.event,V=A.Deferred(),it=A.Callbacks("once memory"),yt=N.statusCode||{},vt={},Lt={},Tt="canceled",Dt={readyState:0,getResponseHeader:function(Ht){var ie;if(L){if(!y)for(y={};ie=ze.exec(n);)y[ie[1].toLowerCase()+" "]=(y[ie[1].toLowerCase()+" "]||[]).concat(ie[2]);ie=y[Ht.toLowerCase()+" "]}return ie==null?null:ie.join(", ")},getAllResponseHeaders:function(){return L?n:null},setRequestHeader:function(Ht,ie){return L==null&&(Ht=Lt[Ht.toLowerCase()]=Lt[Ht.toLowerCase()]||Ht,vt[Ht]=ie),this},overrideMimeType:function(Ht){return L==null&&(N.mimeType=Ht),this},statusCode:function(Ht){var ie;if(Ht)if(L)Dt.always(Ht[Dt.status]);else for(ie in Ht)yt[ie]=[yt[ie],Ht[ie]];return this},abort:function(Ht){var ie=Ht||Tt;return P&&P.abort(ie),Xt(0,ie),this}};if(V.promise(Dt),N.url=((m||N.url||O.href)+"").replace(Xe,O.protocol+"//"),N.type=E.method||E.type||N.method||N.type,N.dataTypes=(N.dataType||"*").toLowerCase().match(pn)||[""],N.crossDomain==null){k=Et.createElement("a");try{k.href=N.url,k.href=k.href,N.crossDomain=fi.protocol+"//"+fi.host!=k.protocol+"//"+k.host}catch{N.crossDomain=!0}}if(N.data&&N.processData&&typeof N.data!="string"&&(N.data=A.param(N.data,N.traditional)),ge(qe,N,E,Dt),L)return Dt;D=A.event&&N.global,D&&A.active++===0&&A.event.trigger("ajaxStart"),N.type=N.type.toUpperCase(),N.hasContent=!$e.test(N.type),_=N.url.replace(Oe,""),N.hasContent?N.data&&N.processData&&(N.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(N.data=N.data.replace(ae,"+")):(Q=N.url.slice(_.length),N.data&&(N.processData||typeof N.data=="string")&&(_+=(lt.test(_)?"&":"?")+N.data,delete N.data),N.cache===!1&&(_=_.replace(Se,"$1"),Q=(lt.test(_)?"&":"?")+"_="+W.guid+++Q),N.url=_+Q),N.ifModified&&(A.lastModified[_]&&Dt.setRequestHeader("If-Modified-Since",A.lastModified[_]),A.etag[_]&&Dt.setRequestHeader("If-None-Match",A.etag[_])),(N.data&&N.hasContent&&N.contentType!==!1||E.contentType)&&Dt.setRequestHeader("Content-Type",N.contentType),Dt.setRequestHeader("Accept",N.dataTypes[0]&&N.accepts[N.dataTypes[0]]?N.accepts[N.dataTypes[0]]+(N.dataTypes[0]!=="*"?", "+ni+"; q=0.01":""):N.accepts["*"]);for(H in N.headers)Dt.setRequestHeader(H,N.headers[H]);if(N.beforeSend&&(N.beforeSend.call(Y,Dt,N)===!1||L))return Dt.abort();if(Tt="abort",it.add(N.complete),Dt.done(N.success),Dt.fail(N.error),P=ge(Ie,N,E,Dt),!P)Xt(-1,"No Transport");else{if(Dt.readyState=1,D&&j.trigger("ajaxSend",[Dt,N]),L)return Dt;N.async&&N.timeout>0&&(b=t.setTimeout(function(){Dt.abort("timeout")},N.timeout));try{L=!1,P.send(vt,Xt)}catch(Ht){if(L)throw Ht;Xt(-1,Ht)}}function Xt(Ht,ie,we,Ue){var Ne,ne,Kt,ce,le,Ae=ie;L||(L=!0,b&&t.clearTimeout(b),P=void 0,n=Ue||"",Dt.readyState=Ht>0?4:0,Ne=Ht>=200&&Ht<300||Ht===304,we&&(ce=pi(N,Dt,we)),!Ne&&A.inArray("script",N.dataTypes)>-1&&A.inArray("json",N.dataTypes)<0&&(N.converters["text script"]=function(){}),ce=yi(N,ce,Dt,Ne),Ne?(N.ifModified&&(le=Dt.getResponseHeader("Last-Modified"),le&&(A.lastModified[_]=le),le=Dt.getResponseHeader("etag"),le&&(A.etag[_]=le)),Ht===204||N.type==="HEAD"?Ae="nocontent":Ht===304?Ae="notmodified":(Ae=ce.state,ne=ce.data,Kt=ce.error,Ne=!Kt)):(Kt=Ae,(Ht||!Ae)&&(Ae="error",Ht<0&&(Ht=0))),Dt.status=Ht,Dt.statusText=(ie||Ae)+"",Ne?V.resolveWith(Y,[ne,Ae,Dt]):V.rejectWith(Y,[Dt,Ae,Kt]),Dt.statusCode(yt),yt=void 0,D&&j.trigger(Ne?"ajaxSuccess":"ajaxError",[Dt,N,Ne?ne:Kt]),it.fireWith(Y,[Dt,Ae]),D&&(j.trigger("ajaxComplete",[Dt,N]),--A.active||A.event.trigger("ajaxStop")))}return Dt},getJSON:function(m,E,P){return A.get(m,E,P,"json")},getScript:function(m,E){return A.get(m,void 0,E,"script")}}),A.each(["get","post"],function(m,E){A[E]=function(P,_,n,y){return ht(_)&&(y=y||n,n=_,_=void 0),A.ajax(A.extend({url:P,type:E,dataType:y,data:_,success:n},A.isPlainObject(P)&&P))}}),A.ajaxPrefilter(function(m){var E;for(E in m.headers)E.toLowerCase()==="content-type"&&(m.contentType=m.headers[E]||"")}),A._evalUrl=function(m,E,P){return A.ajax({url:m,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(_){A.globalEval(_,E,P)}})},A.fn.extend({wrapAll:function(m){var E;return this[0]&&(ht(m)&&(m=m.call(this[0])),E=A(m,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&E.insertBefore(this[0]),E.map(function(){for(var P=this;P.firstElementChild;)P=P.firstElementChild;return P}).append(this)),this},wrapInner:function(m){return ht(m)?this.each(function(E){A(this).wrapInner(m.call(this,E))}):this.each(function(){var E=A(this),P=E.contents();P.length?P.wrapAll(m):E.append(m)})},wrap:function(m){var E=ht(m);return this.each(function(P){A(this).wrapAll(E?m.call(this,P):m)})},unwrap:function(m){return this.parent(m).not("body").each(function(){A(this).replaceWith(this.childNodes)}),this}}),A.expr.pseudos.hidden=function(m){return!A.expr.pseudos.visible(m)},A.expr.pseudos.visible=function(m){return!!(m.offsetWidth||m.offsetHeight||m.getClientRects().length)},A.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var Bi={0:200,1223:204},Wi=A.ajaxSettings.xhr();J.cors=!!Wi&&"withCredentials"in Wi,J.ajax=Wi=!!Wi,A.ajaxTransport(function(m){var E,P;if(J.cors||Wi&&!m.crossDomain)return{send:function(_,n){var y,b=m.xhr();if(b.open(m.type,m.url,m.async,m.username,m.password),m.xhrFields)for(y in m.xhrFields)b[y]=m.xhrFields[y];m.mimeType&&b.overrideMimeType&&b.overrideMimeType(m.mimeType),!m.crossDomain&&!_["X-Requested-With"]&&(_["X-Requested-With"]="XMLHttpRequest");for(y in _)b.setRequestHeader(y,_[y]);E=function(k){return function(){E&&(E=P=b.onload=b.onerror=b.onabort=b.ontimeout=b.onreadystatechange=null,k==="abort"?b.abort():k==="error"?typeof b.status!="number"?n(0,"error"):n(b.status,b.statusText):n(Bi[b.status]||b.status,b.statusText,(b.responseType||"text")!=="text"||typeof b.responseText!="string"?{binary:b.response}:{text:b.responseText},b.getAllResponseHeaders()))}},b.onload=E(),P=b.onerror=b.ontimeout=E("error"),b.onabort!==void 0?b.onabort=P:b.onreadystatechange=function(){b.readyState===4&&t.setTimeout(function(){E&&P()})},E=E("abort");try{b.send(m.hasContent&&m.data||null)}catch(k){if(E)throw k}},abort:function(){E&&E()}}}),A.ajaxPrefilter(function(m){m.crossDomain&&(m.contents.script=!1)}),A.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(m){return A.globalEval(m),m}}}),A.ajaxPrefilter("script",function(m){m.cache===void 0&&(m.cache=!1),m.crossDomain&&(m.type="GET")}),A.ajaxTransport("script",function(m){if(m.crossDomain||m.scriptAttrs){var E,P;return{send:function(_,n){E=A("<script>").attr(m.scriptAttrs||{}).prop({charset:m.scriptCharset,src:m.url}).on("load error",P=function(y){E.remove(),P=null,y&&n(y.type==="error"?404:200,y.type)}),Et.head.appendChild(E[0])},abort:function(){P&&P()}}}});var yn=[],zn=/(=)\?(?=&|$)|\?\?/;A.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var m=yn.pop()||A.expando+"_"+W.guid++;return this[m]=!0,m}}),A.ajaxPrefilter("json jsonp",function(m,E,P){var _,n,y,b=m.jsonp!==!1&&(zn.test(m.url)?"url":typeof m.data=="string"&&(m.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&zn.test(m.data)&&"data");if(b||m.dataTypes[0]==="jsonp")return _=m.jsonpCallback=ht(m.jsonpCallback)?m.jsonpCallback():m.jsonpCallback,b?m[b]=m[b].replace(zn,"$1"+_):m.jsonp!==!1&&(m.url+=(lt.test(m.url)?"&":"?")+m.jsonp+"="+_),m.converters["script json"]=function(){return y||A.error(_+" was not called"),y[0]},m.dataTypes[0]="json",n=t[_],t[_]=function(){y=arguments},P.always(function(){n===void 0?A(t).removeProp(_):t[_]=n,m[_]&&(m.jsonpCallback=E.jsonpCallback,yn.push(_)),y&&ht(n)&&n(y[0]),y=n=void 0}),"script"}),J.createHTMLDocument=function(){var m=Et.implementation.createHTMLDocument("").body;return m.innerHTML="<form></form><form></form>",m.childNodes.length===2}(),A.parseHTML=function(m,E,P){if(typeof m!="string")return[];typeof E=="boolean"&&(P=E,E=!1);var _,n,y;return E||(J.createHTMLDocument?(E=Et.implementation.createHTMLDocument(""),_=E.createElement("base"),_.href=Et.location.href,E.head.appendChild(_)):E=Et),n=Te.exec(m),y=!P&&[],n?[E.createElement(n[1])]:(n=yr([m],E,y),y&&y.length&&A(y).remove(),A.merge([],n.childNodes))},A.fn.load=function(m,E,P){var _,n,y,b=this,k=m.indexOf(" ");return k>-1&&(_=Ci(m.slice(k)),m=m.slice(0,k)),ht(E)?(P=E,E=void 0):E&&typeof E=="object"&&(n="POST"),b.length>0&&A.ajax({url:m,type:n||"GET",dataType:"html",data:E}).done(function(L){y=arguments,b.html(_?A("<div>").append(A.parseHTML(L)).find(_):L)}).always(P&&function(L,D){b.each(function(){P.apply(this,y||[L.responseText,D,L])})}),this},A.expr.pseudos.animated=function(m){return A.grep(A.timers,function(E){return m===E.elem}).length},A.offset={setOffset:function(m,E,P){var _,n,y,b,k,L,D,H=A.css(m,"position"),Q=A(m),N={};H==="static"&&(m.style.position="relative"),k=Q.offset(),y=A.css(m,"top"),L=A.css(m,"left"),D=(H==="absolute"||H==="fixed")&&(y+L).indexOf("auto")>-1,D?(_=Q.position(),b=_.top,n=_.left):(b=parseFloat(y)||0,n=parseFloat(L)||0),ht(E)&&(E=E.call(m,P,A.extend({},k))),E.top!=null&&(N.top=E.top-k.top+b),E.left!=null&&(N.left=E.left-k.left+n),"using"in E?E.using.call(m,N):Q.css(N)}},A.fn.extend({offset:function(m){if(arguments.length)return m===void 0?this:this.each(function(n){A.offset.setOffset(this,m,n)});var E,P,_=this[0];if(_)return _.getClientRects().length?(E=_.getBoundingClientRect(),P=_.ownerDocument.defaultView,{top:E.top+P.pageYOffset,left:E.left+P.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var m,E,P,_=this[0],n={top:0,left:0};if(A.css(_,"position")==="fixed")E=_.getBoundingClientRect();else{for(E=this.offset(),P=_.ownerDocument,m=_.offsetParent||P.documentElement;m&&(m===P.body||m===P.documentElement)&&A.css(m,"position")==="static";)m=m.parentNode;m&&m!==_&&m.nodeType===1&&(n=A(m).offset(),n.top+=A.css(m,"borderTopWidth",!0),n.left+=A.css(m,"borderLeftWidth",!0))}return{top:E.top-n.top-A.css(_,"marginTop",!0),left:E.left-n.left-A.css(_,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var m=this.offsetParent;m&&A.css(m,"position")==="static";)m=m.offsetParent;return m||Ti})}}),A.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(m,E){var P=E==="pageYOffset";A.fn[m]=function(_){return Gi(this,function(n,y,b){var k;if(xt(n)?k=n:n.nodeType===9&&(k=n.defaultView),b===void 0)return k?k[E]:n[y];k?k.scrollTo(P?k.pageXOffset:b,P?b:k.pageYOffset):n[y]=b},m,_,arguments.length)}}),A.each(["top","left"],function(m,E){A.cssHooks[E]=vi(J.pixelPosition,function(P,_){if(_)return _=xi(P,E),tn.test(_)?A(P).position()[E]+"px":_})}),A.each({Height:"height",Width:"width"},function(m,E){A.each({padding:"inner"+m,content:E,"":"outer"+m},function(P,_){A.fn[_]=function(n,y){var b=arguments.length&&(P||typeof n!="boolean"),k=P||(n===!0||y===!0?"margin":"border");return Gi(this,function(L,D,H){var Q;return xt(L)?_.indexOf("outer")===0?L["inner"+m]:L.document.documentElement["client"+m]:L.nodeType===9?(Q=L.documentElement,Math.max(L.body["scroll"+m],Q["scroll"+m],L.body["offset"+m],Q["offset"+m],Q["client"+m])):H===void 0?A.css(L,D,k):A.style(L,D,H,k)},E,b?n:void 0,b)}})}),A.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(m,E){A.fn[E]=function(P){return this.on(E,P)}}),A.fn.extend({bind:function(m,E,P){return this.on(m,null,E,P)},unbind:function(m,E){return this.off(m,null,E)},delegate:function(m,E,P,_){return this.on(E,m,P,_)},undelegate:function(m,E,P){return arguments.length===1?this.off(m,"**"):this.off(E,m||"**",P)},hover:function(m,E){return this.on("mouseenter",m).on("mouseleave",E||m)}}),A.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(m,E){A.fn[E]=function(P,_){return arguments.length>0?this.on(E,null,P,_):this.trigger(E)}});var Pn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;A.proxy=function(m,E){var P,_,n;if(typeof E=="string"&&(P=m[E],E=m,m=P),!!ht(m))return _=u.call(arguments,2),n=function(){return m.apply(E||this,_.concat(u.call(arguments)))},n.guid=m.guid=m.guid||A.guid++,n},A.holdReady=function(m){m?A.readyWait++:A.ready(!0)},A.isArray=Array.isArray,A.parseJSON=JSON.parse,A.nodeName=Ot,A.isFunction=ht,A.isWindow=xt,A.camelCase=qi,A.type=G,A.now=Date.now,A.isNumeric=function(m){var E=A.type(m);
13return(E==="number"||E==="string")&&!isNaN(m-parseFloat(m))},A.trim=function(m){return m==null?"":(m+"").replace(Pn,"$1")},typeof define=="function"&&define.amd&&define("jquery",[],function(){return A});var on=t.jQuery,Xn=t.$;return A.noConflict=function(m){return t.$===A&&(t.$=Xn),m&&t.jQuery===A&&(t.jQuery=on),A},typeof s>"u"&&(t.jQuery=t.$=A),A}),function(t,s){typeof module<"u"?module.exports=s():typeof define=="function"&&typeof define.amd=="object"?define(s):t.Jets=s()}(this,function(){function t(s){if(!(this instanceof t))return new t(s);var e=this,c={searchSelector:"*AND",hideBy:"display:none",diacriticsMap:{}};if(e.options={},"columns addImportant searchSelector hideBy manualContentHandling callSearchManually searchInSpecificColumn diacriticsMap didSearch invert".split(" ").forEach(function(S){e.options[S]=s[S]||c[S]}),1<this.options.searchSelector.length){var u=e.options.searchSelector.trim();e.options.searchSelector=u.substr(0,1),e.options.searchSelectorMode=u.substr(1).toUpperCase()}if(e.content_tag=document.querySelectorAll(s.contentTag),!e.content_tag)throw Error("Error! Could not find contentTag element");if(e.content_param=s.contentTag,e.search_tag=document.querySelector(s.searchTag),!e.search_tag&&!e.options.callSearchManually)throw Error('Error! Provide one of search methods: searchTag or callSearchManually and call .search("phrase") manually');var d=e.search_tag&&e.search_tag.value||"";e.search=function(S,I){d!=(d=e.options.callSearchManually&&typeof S<"u"?S:e.search_tag?e.search_tag.value:"")&&(e._applyCSS(d,I),e.options.didSearch&&e.options.didSearch(d))},e._onSearch=function(S){if(S.type=="keydown")return setTimeout(e.search,0);e.search()},e.destroy=function(){e.options.callSearchManually||e._processEventListeners("remove"),e._destroy()}
13,e.options.callSearchManually||e._processEventListeners("add"),e._addStyleTag(),e._setJets(),e._applyCSS(d)}return t.prototype={constructor:t,_processEventListeners:function(s){["input","keydown","change"].forEach((function(e){this.search_tag[s+"EventListener"](e,this._onSearch)}).bind(this))},_applyCSS:function(s,e){for(var c=this.options,u=this.replaceDiacritics(s.trim().toLowerCase().replace(/\s\s+/g," ")).replace(/\\/g,"\\\\"),d=c.searchSelectorMode?u.split(" ").filter(function(nt,rt,q){return q.indexOf(nt)==rt}):[u],S=c.searchSelectorMode=="AND",I=Array(d.length),Z=0,ct=d.length;Z<ct;Z++)I[Z]=(S?this.content_param+">":"")+(c.invert?"":":not(")+"[data-jets"+(typeof e<"u"?"-col-"+e:"")+c.searchSelector+'="'+d[Z]+'"]'+(c.invert?"":")");d=c.hideBy.split(";").filter(Boolean).map(function(nt){return nt+(c.addImportant?"!important":"")}),S=(S?"":this.content_param+">")+I.join(S?",":"")+"{"+d.join(";")+"}",this.styleTag.innerHTML=u.length?S:""},_addStyleTag:function(){this.styleTag=document.createElement("style"),document.head.appendChild(this.styleTag)},_getText:function(s){return s&&(s.textContent||s.innerText)||""},_sanitize:function(s){return this.replaceDiacritics(s).trim().replace(/\s+/g," ").toLowerCase()},_getContentTags:function(s){return Array.prototype.slice.call(this.content_tag).reduce(function(e,c){return e.concat(Array.prototype.slice.call(c.querySelectorAll(s||":scope > *")))},[])},_handleSpecificColumns:function(s,e){var c=this;c.options.searchInSpecificColumn&&Array.prototype.slice.call(s.children).map(function(u,d){(!c.options.columns||!c.options.columns.length||c.options.columns.indexOf(d)!=-1)&&s[(e||"remove")+"Attribute"]("data-jets-col-"+d,e&&c._sanitize(c._getText(u)))})},_setJets:function(s,e){for(var c=this,u=c._getContentTags(e?"":s),d,S=0,I;I=u[S];S++)(!I.hasAttribute("data-jets")||e)&&(d=this.options.manualContentHandling?this.options.manualContentHandling(I):c.options.columns&&c.options.columns.length?c.options.columns.map(function(Z){return c._getText(I.children[Z])}).join(" "):c._getText(I),I.setAttribute("data-jets",c._sanitize(d)),c._handleSpecificColumns(I,"set"))},replaceDiacritics:function(s){var e=this.options.diacriticsMap,c;for(c in e)if(e.hasOwnProperty(c))for(var u=0,d=e[c].length;u<d;u++)s=s.replace(new RegExp(e[c][u],"g"),c);return s},update:function(s){this._setJets(":scope > :not([data-jets])",s)},_destroy:function(){this.styleTag.parentNode&&document.head.removeChild(this.styleTag);for(var s=this._getContentTags(),e=0,c;c=s[e];e++)c.removeAttribute("data-jets"),this._handleSpecificColumns(c)}},function(s,e){try{s.querySelector(":scope body")}catch{["querySelector","querySelectorAll"].forEach(function(u){var d=e[u];e[u]=function(S){if(/(^|,)\s*:scope/.test(S)){var I=this.getAttribute("id");return this.id="ID_"+Date.now(),S=S.replace(/((^|,)\s*):scope/g,"$1#"+this.getAttribute("id")),S=s[u](S),this.id=I,S}return d.call(this,S)}})}}(window.document,Element.prototype),t}),function(t){typeof define=="function"&&define.amd?define(["jquery"],t):typeof exports<"u"?module.exports=t(require("jquery")):t(jQuery)}(function(t){var s=window.Slick||{};s=function(){var e=0;function c(u,d){var S=this,I;S.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(u),appendDots:t(u),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(Z,ct){return t('<button type="button" />').text(ct+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},S.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
13sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(S,S.initials),S.activeBreakpoint=null,S.animType=null,S.animProp=null,S.breakpoints=[],S.breakpointSettings=[],S.cssTransitions=!1,S.focussed=!1,S.interrupted=!1,S.hidden="hidden",S.paused=!0,S.positionProp=null,S.respondTo=null,S.rowCount=1,S.shouldClick=!0,S.$slider=t(u),S.$slidesCache=null,S.transformType=null,S.transitionType=null,S.visibilityChange="visibilitychange",S.windowWidth=0,S.windowTimer=null,I=t(u).data("slick")||{},S.options=t.extend({},S.defaults,d,I),S.currentSlide=S.options.initialSlide,S.originalSettings=S.options,typeof document.mozHidden<"u"?(S.hidden="mozHidden",S.visibilityChange="mozvisibilitychange"):typeof document.webkitHidden<"u"&&(S.hidden="webkitHidden",S.visibilityChange="webkitvisibilitychange"),S.autoPlay=t.proxy(S.autoPlay,S),S.autoPlayClear=t.proxy(S.autoPlayClear,S),S.autoPlayIterator=t.proxy(S.autoPlayIterator,S),S.changeSlide=t.proxy(S.changeSlide,S),S.clickHandler=t.proxy(S.clickHandler,S),S.selectHandler=t.proxy(S.selectHandler,S),S.setPosition=t.proxy(S.setPosition,S),S.swipeHandler=t.proxy(S.swipeHandler,S),S.dragHandler=t.proxy(S.dragHandler,S),S.keyHandler=t.proxy(S.keyHandler,S),S.instanceUid=e++,S.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,S.registerBreakpoints(),S.init(!0)}return c}(),s.prototype.activateADA=function(){var e=this;e.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},s.prototype.addSlide=s.prototype.slickAdd=function(e,c,u){var d=this;if(typeof c=="boolean")u=c,c=null;else if(c<0||c>=d.slideCount)return!1;d.unload(),typeof c=="number"?c===0&&d.$slides.length===0?t(e).appendTo(d.$slideTrack):u?t(e).insertBefore(d.$slides.eq(c)):t(e).insertAfter(d.$slides.eq(c)):u===!0?t(e).prependTo(d.$slideTrack):t(e).appendTo(d.$slideTrack),d.$slides=d.$slideTrack.children(this.options.slide),d.$slideTrack.children(this.options.slide).detach(),d.$slideTrack.append(d.$slides),d.$slides.each(function(S,I){t(I).attr("data-slick-index",S)}),d.$slidesCache=d.$slides,d.reinit()},s.prototype.animateHeight=function(){var e=this;if(e.options.slidesToShow===1&&e.options.adaptiveHeight===!0&&e.options.vertical===!1){var c=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:c},e.options.speed)}},s.prototype.animateSlide=function(e,c){var u={},d=this;d.animateHeight(),d.options.rtl===!0&&d.options.vertical===!1&&(e=-e),d.transformsEnabled===!1?d.options.vertical===!1?d.$slideTrack.animate({left:e},d.options.speed,d.options.easing,c):d.$slideTrack.animate({top:e},d.options.speed,d.options.easing,c):d.cssTransitions===!1?(d.options.rtl===!0&&(d.currentLeft=-d.currentLeft),t({animStart:d.currentLeft}).animate({animStart:e},{duration:d.options.speed,easing:d.options.easing,step:function(S){S=Math.ceil(S),d.options.vertical===!1?(u[d.animType]="translate("+S+"px, 0px)",d.$slideTrack.css(u)):(u[d.animType]="translate(0px,"+S+"px)",d.$slideTrack.css(u))},complete:function(){c&&c.call()}})):(d.applyTransition(),e=Math.ceil(e),d.options.vertical===!1?u[d.animType]="translate3d("+e+"px, 0px, 0px)":u[d.animType]="translate3d(0px,"+e+"px, 0px)",d.$slideTrack.css(u),c&&setTimeout(function(){d.disableTransition(),c.call()},d.options.speed))},s.prototype.getNavTarget=function(){var e=this,c=e.options.asNavFor;return c&&c!==null&&(c=t(c).not(e.$slider)),c},s.prototype.asNavFor=function(e){var c=this,u=c.getNavTarget();u!==null&&typeof u=="object"&&u.each(function(){var d=t(this).slick("getSlick");d.unslicked||d.slideHandler(e,!0)})},s.prototype.applyTransition=function(e){var c=this,u={};c.options.fade===!1?u[c.transitionType]=c.transformType+" "+c.options.speed+"ms "+c.options.cssEase:u[c.transitionType]="opacity "+c.options.speed+"ms "+c.options.cssEase,c.options.fade===!1?c.$slideTrack.css(u):c.$slides.eq(e).css(u)},s.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},s.prototype.autoPlayClear=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer)},s.prototype.autoPlayIterator=function(){var e=this,c=e.currentSlide+e.options.slidesToScroll;!e.paused&&!e.interrupted&&!e.focussed&&(e.options.infinite===!1&&(e.direction===1&&e.currentSlide+1===e.slideCount-1?e.direction=0:e.direction===0&&(c=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1===0&&(e.direction=1))),e.slideHandler(c))},s.prototype.buildArrows=function(){var e=this;e.options.arrows===!0&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),e.options.infinite!==!0&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},s.prototype.buildDots=function(){var e=this,c,u;if(e.options.dots===!0&&e.slideCount>e.options.slidesToShow){for(e.$slider.addClass("slick-dotted"),u=t("<ul />").addClass(e.options.dotsClass),c=0;c<=e.getDotCount();c+=1)u.append(t("<li />").append(e.options.customPaging.call(this,e,c)));e.$dots=u.appendTo(e.options.appendDots),e.$dots.find("li").first().addClass("slick-active")}},s.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(c,u){t(u).attr("data-slick-index",c).data("originalStyling",t(u).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=e.slideCount===0?t('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),(e.options.centerMode===!0||e.options.swipeToSlide===!0)&&(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses(typeof e.currentSlide=="number"?e.currentSlide:0),e.options.draggable===!0&&e.$list.addClass("draggable")},s.prototype.buildRows=function(){var e=this,c,u,d,S,I,Z,ct;if(S=document.createDocumentFragment(),Z=e.$slider.children(),e.options.rows>0){for(ct=e.options.slidesPerRow*e.options.rows,I=Math.ceil(Z.length/ct),
13c=0;c<I;c++){var nt=document.createElement("div");for(u=0;u<e.options.rows;u++){var rt=document.createElement("div");for(d=0;d<e.options.slidesPerRow;d++){var q=c*ct+(u*e.options.slidesPerRow+d);Z.get(q)&&rt.appendChild(Z.get(q))}nt.appendChild(rt)}S.appendChild(nt)}e.$slider.empty().append(S),e.$slider.children().children().children().css({width:100/e.options.slidesPerRow+"%",display:"inline-block"})}},s.prototype.checkResponsive=function(e,c){var u=this,d,S,I,Z=!1,ct=u.$slider.width(),nt=window.innerWidth||t(window).width();if(u.respondTo==="window"?I=nt:u.respondTo==="slider"?I=ct:u.respondTo==="min"&&(I=Math.min(nt,ct)),u.options.responsive&&u.options.responsive.length&&u.options.responsive!==null){S=null;for(d in u.breakpoints)u.breakpoints.hasOwnProperty(d)&&(u.originalSettings.mobileFirst===!1?I<u.breakpoints[d]&&(S=u.breakpoints[d]):I>u.breakpoints[d]&&(S=u.breakpoints[d]));S!==null?u.activeBreakpoint!==null?(S!==u.activeBreakpoint||c)&&(u.activeBreakpoint=S,u.breakpointSettings[S]==="unslick"?u.unslick(S):(u.options=t.extend({},u.originalSettings,u.breakpointSettings[S]),e===!0&&(u.currentSlide=u.options.initialSlide),u.refresh(e)),Z=S):(u.activeBreakpoint=S,u.breakpointSettings[S]==="unslick"?u.unslick(S):(u.options=t.extend({},u.originalSettings,u.breakpointSettings[S]),e===!0&&(u.currentSlide=u.options.initialSlide),u.refresh(e)),Z=S):u.activeBreakpoint!==null&&(u.activeBreakpoint=null,u.options=u.originalSettings,e===!0&&(u.currentSlide=u.options.initialSlide),u.refresh(e),Z=S),!e&&Z!==!1&&u.$slider.trigger("breakpoint",[u,Z])}},s.prototype.changeSlide=function(e,c){var u=this,d=t(e.currentTarget),S,I,Z;switch(d.is("a")&&e.preventDefault(),d.is("li")||(d=d.closest("li")),Z=u.slideCount%u.options.slidesToScroll!==0,S=Z?0:(u.slideCount-u.currentSlide)%u.options.slidesToScroll,e.data.message){case"previous":I=S===0?u.options.slidesToScroll:u.options.slidesToShow-S,u.slideCount>u.options.slidesToShow&&u.slideHandler(u.currentSlide-I,!1,c);break;case"next":I=S===0?u.options.slidesToScroll:S,u.slideCount>u.options.slidesToShow&&u.slideHandler(u.currentSlide+I,!1,c);break;case"index":var ct=e.data.index===0?0:e.data.index||d.index()*u.options.slidesToScroll;u.slideHandler(u.checkNavigable(ct),!1,c),d.children().trigger("focus");break;default:return}},s.prototype.checkNavigable=function(e){var c=this,u,d;if(u=c.getNavigableIndexes(),d=0,e>u[u.length-1])e=u[u.length-1];else for(var S in u){if(e<u[S]){e=d;break}d=u[S]}return e},s.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&e.$dots!==null&&(t("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",t.proxy(e.interrupt,e,!0)).off("mouseleave.slick",t.proxy(e.interrupt,e,!1)),e.options.accessibility===!0&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),e.options.accessibility===!0&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.
13slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),e.options.accessibility===!0&&e.$list.off("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},s.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.interrupt,e,!1))},s.prototype.cleanUpRows=function(){var e=this,c;e.options.rows>0&&(c=e.$slides.children().children(),c.removeAttr("style"),e.$slider.empty().append(c))},s.prototype.clickHandler=function(e){var c=this;c.shouldClick===!1&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},s.prototype.destroy=function(e){var c=this;c.autoPlayClear(),c.touchObject={},c.cleanUpEvents(),t(".slick-cloned",c.$slider).detach(),c.$dots&&c.$dots.remove(),c.$prevArrow&&c.$prevArrow.length&&(c.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.prevArrow)&&c.$prevArrow.remove()),c.$nextArrow&&c.$nextArrow.length&&(c.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.nextArrow)&&c.$nextArrow.remove()),c.$slides&&(c.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){t(this).attr("style",t(this).data("originalStyling"))}),c.$slideTrack.children(this.options.slide).detach(),c.$slideTrack.detach(),c.$list.detach(),c.$slider.append(c.$slides)),c.cleanUpRows(),c.$slider.removeClass("slick-slider"),c.$slider.removeClass("slick-initialized"),c.$slider.removeClass("slick-dotted"),c.unslicked=!0,e||c.$slider.trigger("destroy",[c])},s.prototype.disableTransition=function(e){var c=this,u={};u[c.transitionType]="",c.options.fade===!1?c.$slideTrack.css(u):c.$slides.eq(e).css(u)},s.prototype.fadeSlide=function(e,c){var u=this;u.cssTransitions===!1?(u.$slides.eq(e).css({zIndex:u.options.zIndex}),u.$slides.eq(e).animate({opacity:1},u.options.speed,u.options.easing,c)):(u.applyTransition(e),u.$slides.eq(e).css({opacity:1,zIndex:u.options.zIndex}),c&&setTimeout(function(){u.disableTransition(e),c.call()},u.options.speed))},s.prototype.fadeSlideOut=function(e){var c=this;c.cssTransitions===!1?c.$slides.eq(e).animate({opacity:0,zIndex:c.options.zIndex-2},c.options.speed,c.options.easing):(c.applyTransition(e),c.$slides.eq(e).css({opacity:0,zIndex:c.options.zIndex-2}))},s.prototype.filterSlides=s.prototype.slickFilter=function(e){var c=this;e!==null&&(c.$slidesCache=c.$slides,c.unload(),c.$slideTrack.children(this.options.slide).detach(),c.$slidesCache.filter(e).appendTo(c.$slideTrack),c.reinit())},s.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(c){c.stopImmediatePropagation();var u=t(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=u.is(":focus"),e.autoPlay())},0)})},s.prototype.getCurrent=s.prototype.slickCurrentSlide=function(){var e=this;return e.currentSlide},s.prototype.getDotCount=function(){var e=this,c=0,u=0,d=0;if(e.options.infinite===!0)if(e.slideCount<=e.options.slidesToShow)++d;else for(;c<e.slideCount;)++d,c=u+e.options.slidesToScroll,u+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(e.options.centerMode===!0)d=e.slideCount;else if(!e.options.asNavFor)d=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);else for(;c<e.slideCount;)++d,c=u+e.options.slidesToScroll,u+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return d-1},s.prototype.getLeft=function(e){var c=this,u,d,S=0,I,Z;return c.slideOffset=0,d=c.$slides.first().outerHeight(!0),c.options.infinite===!0?(c.slideCount>c.options.slidesToShow&&(c.slideOffset=c.slideWidth*c.options.slidesToShow*-1,Z=-1,c.options.vertical===!0&&c.options.centerMode===!0&&(c.options.slidesToShow===2?Z=-1.5:c.options.slidesToShow===1&&(Z=-2)),S=d*c.options.slidesToShow*Z),c.slideCount%c.options.slidesToScroll!==0&&e+c.options.slidesToScroll>c.slideCount&&c.slideCount>c.options.slidesToShow&&(e>c.slideCount?(c.slideOffset=(c.options.slidesToShow-(e-c.slideCount))*c.slideWidth*-1,S=(c.options.slidesToShow-(e-c.slideCount))*d*-1):(c.slideOffset=c.slideCount%c.options.slidesToScroll*c.slideWidth*-1,S=c.slideCount%c.options.slidesToScroll*d*-1))):e+c.options.slidesToShow>c.slideCount&&(c.slideOffset=(e+c.options.slidesToShow-c.slideCount)*c.slideWidth,S=(e+c.options.slidesToShow-c.slideCount)*d),c.slideCount<=c.options.slidesToShow&&(c.slideOffset=0,S=0),c.options.centerMode===!0&&c.slideCount<=c.options.slidesToShow?c.slideOffset=c.slideWidth*Math.floor(c.options.slidesToShow)/2-c.slideWidth*c.slideCount/2:c.options.centerMode===!0&&c.options.infinite===!0?c.slideOffset+=c.slideWidth*Math.floor(c.options.slidesToShow/2)-c.slideWidth:c.options.centerMode===!0&&(c.slideOffset=0,c.slideOffset+=c.slideWidth*Math.floor(c.options.slidesToShow/2)),c.options.vertical===!1?u=e*c.slideWidth*-1+c.slideOffset:u=e*d*-1+S,c.options.variableWidth===!0&&(c.slideCount<=c.options.slidesToShow||c.options.infinite===!1?I=c.$slideTrack.children(".slick-slide").eq(e):I=c.$slideTrack.children(".slick-slide").eq(e+c.options.slidesToShow),c.options.rtl===!0?I[0]?u=(c.$slideTrack.width()-I[0].offsetLeft-I.width())*-1:u=0:u=I[0]?I[0].offsetLeft*-1:0,c.options.centerMode===!0&&(c.slideCount<=c.options.slidesToShow||c.options.infinite===!1?I=c.$slideTrack.children(".slick-slide").eq(e):I=c.$slideTrack.children(".slick-slide").eq(e+c.options.slidesToShow+1),c.options.rtl===!0?I[0]?u=(c.$slideTrack.width()-I[0].offsetLeft-I.width())*-1:u=0:u=I[0]?I[0].offsetLeft*-1:0,u+=(c.$list.width()-I.outerWidth())/2)),u},s.prototype.getOption=s.prototype.slickGetOption=function(e){var c=this;return c.options[e]},s.prototype.getNavigableIndexes=function(){var e=this,c=0,u=0,d=[],S;for(e.options.infinite===!1?S=e.slideCount:(c=e.options.slidesToScroll*-1,u=e.options.slidesToScroll*-1,S=e.slideCount*2);c<S;)d.push(c),c=u+e.options.slidesToScroll,u+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return d},s.prototype.getSlick=function(){return this},s.prototype.getSlideCount=function(){var e=this,c,u,d;return d=e.options.centerMode===!0?e.slideWidth*Math.floor(e.options.slidesToShow/2):0,e.options.swipeToSlide===!0?(e.$slideTrack.find(".slick-slide").each(function(S,I){if(I.offsetLeft-d+t(I).outerWidth()/2>e.swipeLeft*-1)return u=I,!1}),c=Math.abs(t(u).attr("data-slick-index")-e.currentSlide)||1,c):e.options.slidesToScroll},s.prototype.goTo=s.prototype.slickGoTo=function(e,c){var u=this;
vendor: 3,019 bytes, line 13
13u.changeSlide({data:{message:"index",index:parseInt(e)}},c)},s.prototype.init=function(e){var c=this;t(c.$slider).hasClass("slick-initialized")||(t(c.$slider).addClass("slick-initialized"),c.buildRows(),c.buildOut(),c.setProps(),c.startLoad(),c.loadSlider(),c.initializeEvents(),c.updateArrows(),c.updateDots(),c.checkResponsive(!0),c.focusHandler()),e&&c.$slider.trigger("init",[c]),c.options.accessibility===!0&&c.initADA(),c.options.autoplay&&(c.paused=!1,c.autoPlay())},s.prototype.initADA=function(){var e=this,c=Math.ceil(e.slideCount/e.options.slidesToShow),u=e.getNavigableIndexes().filter(function(I){return I>=0&&I<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),e.$dots!==null&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(I){var Z=u.indexOf(I);if(t(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+I,tabindex:-1}),Z!==-1){var ct="slick-slide-control"+e.instanceUid+Z;t("#"+ct).length&&t(this).attr({"aria-describedby":ct})}}),e.$dots.attr("role","tablist").find("li").each(function(I){var Z=u[I];t(this).attr({role:"presentation"}),t(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+I,"aria-controls":"slick-slide"+e.instanceUid+Z,"aria-label":I+1+" of "+c,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var d=e.currentSlide,S=d+e.options.slidesToShow;d<S;d++)e.options.focusOnChange?e.$slides.eq(d).attr({tabindex:"0"}):e.$slides.eq(d).removeAttr("tabindex");e.activateADA()},s.prototype.initArrowEvents=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide),e.options.accessibility===!0&&(e.$prevArrow.on("keydown.slick",e.keyHandler),e.$nextArrow.on("keydown.slick",e.keyHandler)))},s.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&(t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),e.options.accessibility===!0&&e.$dots.on("keydown.slick",e.keyHandler)),e.options.dots===!0&&e.options.pauseOnDotsHover===!0&&e.slideCount>e.options.slidesToShow&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.interrupt,e,!0)).on("mouseleave.slick",t.proxy(e.interrupt,e,!1))},s.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.interrupt,e,!1)))},s.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"}
13,e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),e.options.accessibility===!0&&e.$list.on("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(e.setPosition)},s.prototype.initUI=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},s.prototype.keyHandler=function(e){var c=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(e.keyCode===37&&c.options.accessibility===!0?c.changeSlide({data:{message:c.options.rtl===!0?"next":"previous"}}):e.keyCode===39&&c.options.accessibility===!0&&c.changeSlide({data:{message:c.options.rtl===!0?"previous":"next"}}))},s.prototype.lazyLoad=function(){var e=this,c,u,d,S;function I(q){t("img[data-lazy]",q).each(function(){var J=t(this),ht=t(this).attr("data-lazy"),xt=t(this).attr("data-srcset"),Et=t(this).attr("data-sizes")||e.$slider.attr("data-sizes"),x=document.createElement("img");x.onload=function(){J.animate({opacity:0}
vendor: 7,172 bytes, line 13
13,100,function(){xt&&(J.attr("srcset",xt),Et&&J.attr("sizes",Et)),J.attr("src",ht).animate({opacity:1},200,function(){J.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),e.$slider.trigger("lazyLoaded",[e,J,ht])})},x.onerror=function(){J.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),e.$slider.trigger("lazyLoadError",[e,J,ht])},x.src=ht})}if(e.options.centerMode===!0?e.options.infinite===!0?(d=e.currentSlide+(e.options.slidesToShow/2+1),S=d+e.options.slidesToShow+2):(d=Math.max(0,e.currentSlide-(e.options.slidesToShow/2+1)),S=2+(e.options.slidesToShow/2+1)+e.currentSlide):(d=e.options.infinite?e.options.slidesToShow+e.currentSlide:e.currentSlide,S=Math.ceil(d+e.options.slidesToShow),e.options.fade===!0&&(d>0&&d--,S<=e.slideCount&&S++)),c=e.$slider.find(".slick-slide").slice(d,S),e.options.lazyLoad==="anticipated")for(var Z=d-1,ct=S,nt=e.$slider.find(".slick-slide"),rt=0;rt<e.options.slidesToScroll;rt++)Z<0&&(Z=e.slideCount-1),c=c.add(nt.eq(Z)),c=c.add(nt.eq(ct)),Z--,ct++;I(c),e.slideCount<=e.options.slidesToShow?(u=e.$slider.find(".slick-slide"),I(u)):e.currentSlide>=e.slideCount-e.options.slidesToShow?(u=e.$slider.find(".slick-cloned").slice(0,e.options.slidesToShow),I(u)):e.currentSlide===0&&(u=e.$slider.find(".slick-cloned").slice(e.options.slidesToShow*-1),I(u))},s.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),e.options.lazyLoad==="progressive"&&e.progressiveLazyLoad()},s.prototype.next=s.prototype.slickNext=function(){var e=this;e.changeSlide({data:{message:"next"}})},s.prototype.orientationChange=function(){var e=this;e.checkResponsive(),e.setPosition()},s.prototype.pause=s.prototype.slickPause=function(){var e=this;e.autoPlayClear(),e.paused=!0},s.prototype.play=s.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},s.prototype.postSlide=function(e){var c=this;if(!c.unslicked&&(c.$slider.trigger("afterChange",[c,e]),c.animating=!1,c.slideCount>c.options.slidesToShow&&c.setPosition(),c.swipeLeft=null,c.options.autoplay&&c.autoPlay(),c.options.accessibility===!0&&(c.initADA(),c.options.focusOnChange))){var u=t(c.$slides.get(c.currentSlide));u.attr("tabindex",0).focus()}},s.prototype.prev=s.prototype.slickPrev=function(){var e=this;e.changeSlide({data:{message:"previous"}})},s.prototype.preventDefault=function(e){e.preventDefault()},s.prototype.progressiveLazyLoad=function(e){e=e||1;var c=this,u=t("img[data-lazy]",c.$slider),d,S,I,Z,ct;u.length?(d=u.first(),S=d.attr("data-lazy"),I=d.attr("data-srcset"),Z=d.attr("data-sizes")||c.$slider.attr("data-sizes"),ct=document.createElement("img"),ct.onload=function(){I&&(d.attr("srcset",I),Z&&d.attr("sizes",Z)),d.attr("src",S).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),c.options.adaptiveHeight===!0&&c.setPosition(),c.$slider.trigger("lazyLoaded",[c,d,S]),c.progressiveLazyLoad()},ct.onerror=function(){e<3?setTimeout(function(){c.progressiveLazyLoad(e+1)},500):(d.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),c.$slider.trigger("lazyLoadError",[c,d,S]),c.progressiveLazyLoad())},ct.src=S):c.$slider.trigger("allImagesLoaded",[c])},s.prototype.refresh=function(e){var c=this,u,d;d=c.slideCount-c.options.slidesToShow,!c.options.infinite&&c.currentSlide>d&&(c.currentSlide=d),c.slideCount<=c.options.slidesToShow&&(c.currentSlide=0),u=c.currentSlide,c.destroy(!0),t.extend(c,c.initials,{currentSlide:u}),c.init(),e||c.changeSlide({data:{message:"index",index:u}},!1)},s.prototype.registerBreakpoints=function(){var e=this,c,u,d,S=e.options.responsive||null;if(t.type(S)==="array"&&S.length){e.respondTo=e.options.respondTo||"window";for(c in S)if(d=e.breakpoints.length-1,S.hasOwnProperty(c)){for(u=S[c].breakpoint;d>=0;)e.breakpoints[d]&&e.breakpoints[d]===u&&e.breakpoints.splice(d,1),d--;e.breakpoints.push(u),e.breakpointSettings[u]=S[c].settings}e.breakpoints.sort(function(I,Z){return e.options.mobileFirst?I-Z:Z-I})}},s.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&e.currentSlide!==0&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses(typeof e.currentSlide=="number"?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},s.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},s.prototype.removeSlide=s.prototype.slickRemove=function(e,c,u){var d=this;if(typeof e=="boolean"?(c=e,e=c===!0?0:d.slideCount-1):e=c===!0?--e:e,d.slideCount<1||e<0||e>d.slideCount-1)return!1;d.unload(),u===!0?d.$slideTrack.children().remove():d.$slideTrack.children(this.options.slide).eq(e).remove(),d.$slides=d.$slideTrack.children(this.options.slide),d.$slideTrack.children(this.options.slide).detach(),d.$slideTrack.append(d.$slides),d.$slidesCache=d.$slides,d.reinit()},s.prototype.setCSS=function(e){var c=this,u={},d,S;c.options.rtl===!0&&(e=-e),d=c.positionProp=="left"?Math.ceil(e)+"px":"0px",S=c.positionProp=="top"?Math.ceil(e)+"px":"0px",u[c.positionProp]=e,c.transformsEnabled===!1?c.$slideTrack.css(u):(u={},c.cssTransitions===!1?(u[c.animType]="translate("+d+", "+S+")",c.$slideTrack.css(u)):(u[c.animType]="translate3d("+d+", "+S+", 0px)",c.$slideTrack.css(u)))},s.prototype.setDimensions=function(){var e=this;e.options.vertical===!1?e.options.centerMode===!0&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),e.options.centerMode===!0&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),e.options.vertical===!1&&e.options.variableWidth===!1?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):e.options.variableWidth===!0?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var c=e.$slides.first().outerWidth(!0)-e.$slides.first().width();e.options.variableWidth===!1&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-c)},s.prototype.setFade=function(){var e=this,c;e.$slides.each(function(u,d){c=e.slideWidth*u*-1,e.options.rtl===!0?t(d).css({position:"relative",right:c,top:0,zIndex:e.options.zIndex-2,opacity:0}
13):t(d).css({position:"relative",left:c,top:0,zIndex:e.options.zIndex-2,opacity:0})}),e.$slides.eq(e.currentSlide).css({zIndex:e.options.zIndex-1,opacity:1})},s.prototype.setHeight=function(){var e=this;if(e.options.slidesToShow===1&&e.options.adaptiveHeight===!0&&e.options.vertical===!1){var c=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",c)}},s.prototype.setOption=s.prototype.slickSetOption=function(){var e=this,c,u,d,S,I=!1,Z;if(t.type(arguments[0])==="object"?(d=arguments[0],I=arguments[1],Z="multiple"):t.type(arguments[0])==="string"&&(d=arguments[0],S=arguments[1],I=arguments[2],arguments[0]==="responsive"&&t.type(arguments[1])==="array"?Z="responsive":typeof arguments[1]<"u"&&(Z="single")),Z==="single")e.options[d]=S;else if(Z==="multiple")t.each(d,function(ct,nt){e.options[ct]=nt});else if(Z==="responsive")for(u in S)if(t.type(e.options.responsive)!=="array")e.options.responsive=[S[u]];else{for(c=e.options.responsive.length-1;c>=0;)e.options.responsive[c].breakpoint===S[u].breakpoint&&e.options.responsive.splice(c,1),c--;e.options.responsive.push(S[u])}I&&(e.unload(),e.reinit())},s.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),e.options.fade===!1?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},s.prototype.setProps=function(){var e=this,c=document.body.style;e.positionProp=e.options.vertical===!0?"top":"left",e.positionProp==="top"?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),(c.WebkitTransition!==void 0||c.MozTransition!==void 0||c.msTransition!==void 0)&&e.options.useCSS===!0&&(e.cssTransitions=!0),e.options.fade&&(typeof e.options.zIndex=="number"?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),c.OTransform!==void 0&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",c.perspectiveProperty===void 0&&c.webkitPerspective===void 0&&(e.animType=!1)),c.MozTransform!==void 0&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",c.perspectiveProperty===void 0&&c.MozPerspective===void 0&&(e.animType=!1)),c.webkitTransform!==void 0&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",c.perspectiveProperty===void 0&&c.webkitPerspective===void 0&&(e.animType=!1)),c.msTransform!==void 0&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",c.msTransform===void 0&&(e.animType=!1)),c.transform!==void 0&&e.animType!==!1&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&e.animType!==null&&e.animType!==!1},s.prototype.setSlideClasses=function(e){var c=this,u,d,S,I;if(d=c.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),c.$slides.eq(e).addClass("slick-current"),c.options.centerMode===!0){var Z=c.options.slidesToShow%2===0?1:0;u=Math.floor(c.options.slidesToShow/2),c.options.infinite===!0&&(e>=u&&e<=c.slideCount-1-u?c.$slides.slice(e-u+Z,e+u+1).addClass("slick-active").attr("aria-hidden","false"):(S=c.options.slidesToShow+e,d.slice(S-u+1+Z,S+u+2).addClass("slick-active").attr("aria-hidden","false")),e===0?d.eq(d.length-1-c.options.slidesToShow).addClass("slick-center"):e===c.slideCount-1&&d.eq(c.options.slidesToShow).addClass("slick-center")),c.$slides.eq(e).addClass("slick-center")}else e>=0&&e<=c.slideCount-c.options.slidesToShow?c.$slides.slice(e,e+c.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):d.length<=c.options.slidesToShow?d.addClass("slick-active").attr("aria-hidden","false"):(I=c.slideCount%c.options.slidesToShow,S=c.options.infinite===!0?c.options.slidesToShow+e:e,c.options.slidesToShow==c.options.slidesToScroll&&c.slideCount-e<c.options.slidesToShow?d.slice(S-(c.options.slidesToShow-I),S+I).addClass("slick-active").attr("aria-hidden","false"):d.slice(S,S+c.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));(c.options.lazyLoad==="ondemand"||c.options.lazyLoad==="anticipated")&&c.lazyLoad()},s.prototype.setupInfinite=function(){var e=this,c,u,d;
13if(e.options.fade===!0&&(e.options.centerMode=!1),e.options.infinite===!0&&e.options.fade===!1&&(u=null,e.slideCount>e.options.slidesToShow)){for(e.options.centerMode===!0?d=e.options.slidesToShow+1:d=e.options.slidesToShow,c=e.slideCount;c>e.slideCount-d;c-=1)u=c-1,t(e.$slides[u]).clone(!0).attr("id","").attr("data-slick-index",u-e.slideCount).prependTo(e.$slideTrack).addClass("slick-cloned");for(c=0;c<d+e.slideCount;c+=1)u=c,t(e.$slides[u]).clone(!0).attr("id","").attr("data-slick-index",u+e.slideCount).appendTo(e.$slideTrack).addClass("slick-cloned");e.$slideTrack.find(".slick-cloned").find("[id]").each(function(){t(this).attr("id","")})}},s.prototype.interrupt=function(e){var c=this;e||c.autoPlay(),c.interrupted=e},s.prototype.selectHandler=function(e){var c=this,u=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),d=parseInt(u.attr("data-slick-index"));if(d||(d=0),c.slideCount<=c.options.slidesToShow){c.slideHandler(d,!1,!0);return}c.slideHandler(d)},s.prototype.slideHandler=function(e,c,u){var d,S,I,Z,ct=null,nt=this,rt;if(c=c||!1,!(nt.animating===!0&&nt.options.waitForAnimate===!0)&&!(nt.options.fade===!0&&nt.currentSlide===e)){if(c===!1&&nt.asNavFor(e),d=e,ct=nt.getLeft(d),Z=nt.getLeft(nt.currentSlide),nt.currentLeft=nt.swipeLeft===null?Z:nt.swipeLeft,nt.options.infinite===!1&&nt.options.centerMode===!1&&(e<0||e>nt.getDotCount()*nt.options.slidesToScroll)){nt.options.fade===!1&&(d=nt.currentSlide,u!==!0&&nt.slideCount>nt.options.slidesToShow?nt.animateSlide(Z,function(){nt.postSlide(d)}):nt.postSlide(d));return}else if(nt.options.infinite===!1&&nt.options.centerMode===!0&&(e<0||e>nt.slideCount-nt.options.slidesToScroll)){nt.options.fade===!1&&(d=nt.currentSlide,u!==!0&&nt.slideCount>nt.options.slidesToShow?nt.animateSlide(Z,function(){nt.postSlide(d)}):nt.postSlide(d));return}if(nt.options.autoplay&&clearInterval(nt.autoPlayTimer),d<0?nt.slideCount%nt.options.slidesToScroll!==0?S=nt.slideCount-nt.slideCount%nt.options.slidesToScroll:S=nt.slideCount+d:d>=nt.slideCount?nt.slideCount%nt.options.slidesToScroll!==0?S=0:S=d-nt.slideCount:S=d,nt.animating=!0,nt.$slider.trigger("beforeChange",[nt,nt.currentSlide,S]),I=nt.currentSlide,nt.currentSlide=S,nt.setSlideClasses(nt.currentSlide),nt.options.asNavFor&&(rt=nt.getNavTarget(),rt=rt.slick("getSlick"),rt.slideCount<=rt.options.slidesToShow&&rt.setSlideClasses(nt.currentSlide)),nt.updateDots(),nt.updateArrows(),nt.options.fade===!0){u!==!0?(nt.fadeSlideOut(I),nt.fadeSlide(S,function(){nt.postSlide(S)})):nt.postSlide(S),nt.animateHeight();return}u!==!0&&nt.slideCount>nt.options.slidesToShow?nt.animateSlide(ct,function(){nt.postSlide(S)}):nt.postSlide(S)}},s.prototype.startLoad=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},s.prototype.swipeDirection=function(){var e,c,u,d,S=this;return e=S.touchObject.startX-S.touchObject.curX,c=S.touchObject.startY-S.touchObject.curY,u=Math.atan2(c,e),d=Math.round(u*180/Math.PI),d<0&&(d=360-Math.abs(d)),d<=45&&d>=0||d<=360&&d>=315?S.options.rtl===!1?"left":"right":d>=135&&d<=225?S.options.rtl===!1?"right":"left":S.options.verticalSwiping===!0?d>=35&&d<=135?"down":"up":"vertical"},s.prototype.swipeEnd=function(e){var c=this,u,d;if(c.dragging=!1,c.swiping=!1,c.scrolling)return c.scrolling=!1,!1;if(c.interrupted=!1,c.shouldClick=!(c.touchObject.swipeLength>10),c.touchObject.curX===void 0)return!1;if(c.touchObject.edgeHit===!0&&c.$slider.trigger("edge",[c,c.swipeDirection()]),c.touchObject.swipeLength>=c.touchObject.minSwipe){switch(d=c.swipeDirection(),d){case"left":case"down":u=c.options.swipeToSlide?c.checkNavigable(c.currentSlide+c.getSlideCount()):c.currentSlide+c.getSlideCount(),c.currentDirection=0;break;case"right":case"up":u=c.options.swipeToSlide?c.checkNavigable(c.currentSlide-c.getSlideCount()):c.currentSlide-c.getSlideCount(),c.currentDirection=1;break}d!="vertical"&&(c.slideHandler(u),c.touchObject={},c.$slider.trigger("swipe",[c,d]))}else c.touchObject.startX!==c.touchObject.curX&&(c.slideHandler(c.currentSlide),c.touchObject={})},s.prototype.swipeHandler=function(e){var c=this;if(!(c.options.swipe===!1||"ontouchend"in document&&c.options.swipe===!1)&&!(c.options.draggable===!1&&e.type.indexOf("mou
13se")!==-1))switch(c.touchObject.fingerCount=e.originalEvent&&e.originalEvent.touches!==void 0?e.originalEvent.touches.length:1,c.touchObject.minSwipe=c.listWidth/c.options.touchThreshold,c.options.verticalSwiping===!0&&(c.touchObject.minSwipe=c.listHeight/c.options.touchThreshold),e.data.action){case"start":c.swipeStart(e);break;case"move":c.swipeMove(e);break;case"end":c.swipeEnd(e);break}},s.prototype.swipeMove=function(e){var c=this,u,d,S,I,Z,ct;if(Z=e.originalEvent!==void 0?e.originalEvent.touches:null,!c.dragging||c.scrolling||Z&&Z.length!==1)return!1;if(u=c.getLeft(c.currentSlide),c.touchObject.curX=Z!==void 0?Z[0].pageX:e.clientX,c.touchObject.curY=Z!==void 0?Z[0].pageY:e.clientY,c.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(c.touchObject.curX-c.touchObject.startX,2))),ct=Math.round(Math.sqrt(Math.pow(c.touchObject.curY-c.touchObject.startY,2))),!c.options.verticalSwiping&&!c.swiping&&ct>4)return c.scrolling=!0,!1;if(c.options.verticalSwiping===!0&&(c.touchObject.swipeLength=ct),d=c.swipeDirection(),e.originalEvent!==void 0&&c.touchObject.swipeLength>4&&(c.swiping=!0,e.preventDefault()),I=(c.options.rtl===!1?1:-1)*(c.touchObject.curX>c.touchObject.startX?1:-1),c.options.verticalSwiping===!0&&(I=c.touchObject.curY>c.touchObject.startY?1:-1),S=c.touchObject.swipeLength,c.touchObject.edgeHit=!1,c.options.infinite===!1&&(c.currentSlide===0&&d==="right"||c.currentSlide>=c.getDotCount()&&d==="left")&&(S=c.touchObject.swipeLength*c.options.edgeFriction,c.touchObject.edgeHit=!0),c.options.vertical===!1?c.swipeLeft=u+S*I:c.swipeLeft=u+S*(c.$list.height()/c.listWidth)*I,c.options.verticalSwiping===!0&&(c.swipeLeft=u+S*I),c.options.fade===!0||c.options.touchMove===!1)return!1;if(c.animating===!0)return c.swipeLeft=null,!1;c.setCSS(c.swipeLeft)},s.prototype.swipeStart=function(e){var c=this,u;if(c.interrupted=!0,c.touchObject.fingerCount!==1||c.slideCount<=c.options.slidesToShow)return c.touchObject={},!1;e.originalEvent!==void 0&&e.originalEvent.touches!==void 0&&(u=e.originalEvent.touches[0]),c.touchObject.startX=c.touchObject.curX=u!==void 0?u.pageX:e.clientX,c.touchObject.startY=c.touchObject.curY=u!==void 0?u.pageY:e.clientY,c.dragging=!0},s.prototype.unfilterSlides=s.prototype.slickUnfilter=function(){var e=this;e.$slidesCache!==null&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},s.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},s.prototype.unslick=function(e){var c=this;c.$slider.trigger("unslick",[c,e]),c.destroy()},s.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.currentSlide===0?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(e.currentSlide>=e.slideCount-e.options.slidesToShow&&e.options.centerMode===!1||e.currentSlide>=e.slideCount-1&&e.options.centerMode===!0)&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},s.prototype.updateDots=function(){var e=this;e.$dots!==null&&(e.$dots.find("li").removeClass("slick-active").end(),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active"))},s.prototype.visibility=function(){var e=this;e.options.autoplay&&(document[e.hidden]?e.interrupted=!0:e.interrupted=!1)},t.fn.slick=function(){var e=this,c=arguments[0],u=Array.prototype.slice.call(arguments,1),d=e.length,S,I;for(S=0;S<d;S++)if(typeof c=="object"||typeof c>"u"?e[S].slick=new s(e[S],c):I=e[S].slick[c].apply(e[S].slick,u),typeof I<"u")return I;return e}});class Xo{constructor(s,e){this.slick=s,this.animationSpeed=ir,this.enableOn=e,this.init()}hasDots(){return this.slick.slideCount>this.enableOn&&this.slick.$dots}init(){this.hasDots()&&(this.slick.$dots.addClass("slick-dots--max"),this.showDotsBetween(0))}update(s){this.hasDots()&&this.showDotsBetween(s)}showDotsBetween(s){let c=this.slick.$dots.children("li").outerWidth()*(s-2);this.slick.$dots.animate({scrollLeft:c},this.animationSpeed)}}$(document).on("init.slick reInit.slick breakpoint.slick",".slick-slider",function(t,s){const c=(s&&s.$slider?s.$slider:$(this)).find(".slick-cloned");c.length&&(c.find("[data-component]").each(function(){const u=$(this),d=u.attr("data-component");
13u.removeData("componentInstance"),d==="ExternalVideo"&&u.children("video").remove()}),c.each(function(){window.application&&typeof window.application.loadComponents=="function"&&window.application.loadComponents(this)}))}),$(document).on("afterChange.slick breakpoint.slick",".slick-slider",function(t,s){if(!s||!s.$slides)return;const e=typeof s.currentSlide=="number"?s.currentSlide:0;s.$slides.eq(e).find('[data-component="ExternalVideo"], [data-component="IframeVideo"]').each(function(){const u=$(this).data("componentInstance");u&&typeof u.refresh=="function"&&u.refresh()})}),function(t,s){typeof exports=="object"&&typeof module<"u"?module.exports=s():typeof define=="function"&&define.amd?define(s):(t=typeof globalThis<"u"?globalThis:t||self,t.Swiper=s())}(this,function(){function t(n){return n!==null&&typeof n=="object"&&"constructor"in n&&n.constructor===Object}function s(n={},y={}){Object.keys(y).forEach(b=>{typeof n[b]>"u"?n[b]=y[b]:t(y[b])&&t(n[b])&&Object.keys(y[b]).length>0&&s(n[b],y[b])})}const e={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function c(){const n=typeof document<"u"?document:{};return s(n,e),n}const u={document:e,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(n){return typeof setTimeout>"u"?(n(),null):setTimeout(n,0)},cancelAnimationFrame(n){typeof setTimeout>"u"||clearTimeout(n)}};function d(){const n=typeof window<"u"?window:{};return s(n,u),n}function S(n){const y=n.__proto__;Object.defineProperty(n,"__proto__",{get(){return y},set(b){y.__proto__=b}})}class I extends Array{constructor(y){super(...y||[]),S(this)}}function Z(n=[]){const y=[];return n.forEach(b=>{Array.isArray(b)?y.push(...Z(b)):y.push(b)}),y}function ct(n,y){return Array.prototype.filter.call(n,y)}function nt(n){const y=[];for(let b=0;b<n.length;b+=1)y.indexOf(n[b])===-1&&y.push(n[b]);return y}function rt(n,y){if(typeof n!="string")return[n];const b=[],k=y.querySelectorAll(n);for(let L=0;L<k.length;L+=1)b.push(k[L]);return b}function q(n,y){const b=d(),k=c();let L=[];if(!y&&n instanceof I)return n;if(!n)return new I(L);if(typeof n=="string"){const D=n.trim();if(D.indexOf("<")>=0&&D.indexOf(">")>=0){let H="div";D.indexOf("<li")===0&&(H="ul"),D.indexOf("<tr")===0&&(H="tbody"),(D.indexOf("<td")===0||D.indexOf("<th")===0)&&(H="tr"),D.indexOf("<tbody")===0&&(H="table"),D.indexOf("<option")===0&&(H="select");const Q=k.createElement(H);Q.innerHTML=D;for(let N=0;N<Q.childNodes.length;N+=1)L.push(Q.childNodes[N])}else L=rt(n.trim(),y||k)}else if(n.nodeType||n===b||n===k)L.push(n);else if(Array.isArray(n)){if(n instanceof I)return n;L=n}return new I(nt(L))}q.fn=I.prototype;function J(...n){const y=Z(n.map(b=>b.split(" ")));return this.forEach(b=>{b.classList.add(...y)}),this}function ht(...n){const y=Z(n.map(b=>b.split(" ")));return this.forEach(b=>{b.classList.remove(...y)}),this}function xt(...n){const y=Z(n.map(b=>b.split(" ")));this.forEach(b=>{y.forEach(k=>{b.classList.toggle(k)})})}function Et(...n){const y=Z(n.map(b=>b.split(" ")));return ct(this,b=>y.filter(k=>b.classList.contains(k)).length>0).length>0}function x(n,y){if(arguments.length===1&&typeof n=="string")return this[0]?this[0].getAttribute(n):void 0;for(let b=0;b<this.length;b+=1)if(arguments.length===2)this[b].setAttribute(n,y);else for(const k in n)this[b][k]=n[k],this[b].setAttribute(k,n[k]);return this}function R(n){for(let y=0;y<this.length;y+=1)this[y].removeAttribute(n);return this}function G(n){for(let y=0;y<this.length;y+=1)this[y].style.transform=n;return this}function at(n){for(let y=0;y<this.length;
13y+=1)this[y].style.transitionDuration=typeof n!="string"?`${n}ms`:n;return this}function ut(...n){let[y,b,k,L]=n;typeof n[1]=="function"&&([y,k,L]=n,b=void 0),L||(L=!1);function D(Y){const j=Y.target;if(!j)return;const V=Y.target.dom7EventData||[];if(V.indexOf(Y)<0&&V.unshift(Y),q(j).is(b))k.apply(j,V);else{const it=q(j).parents();for(let yt=0;yt<it.length;yt+=1)q(it[yt]).is(b)&&k.apply(it[yt],V)}}function H(Y){const j=Y&&Y.target?Y.target.dom7EventData||[]:[];j.indexOf(Y)<0&&j.unshift(Y),k.apply(this,j)}const Q=y.split(" ");let N;for(let Y=0;Y<this.length;Y+=1){const j=this[Y];if(b)for(N=0;N<Q.length;N+=1){const V=Q[N];j.dom7LiveListeners||(j.dom7LiveListeners={}),j.dom7LiveListeners[V]||(j.dom7LiveListeners[V]=[]),j.dom7LiveListeners[V].push({listener:k,proxyListener:D}),j.addEventListener(V,D,L)}else for(N=0;N<Q.length;N+=1){const V=Q[N];j.dom7Listeners||(j.dom7Listeners={}),j.dom7Listeners[V]||(j.dom7Listeners[V]=[]),j.dom7Listeners[V].push({listener:k,proxyListener:H}),j.addEventListener(V,H,L)}}return this}function A(...n){let[y,b,k,L]=n;typeof n[1]=="function"&&([y,k,L]=n,b=void 0),L||(L=!1);const D=y.split(" ");for(let H=0;H<D.length;H+=1){const Q=D[H];for(let N=0;N<this.length;N+=1){const Y=this[N];let j;if(!b&&Y.dom7Listeners?j=Y.dom7Listeners[Q]:b&&Y.dom7LiveListeners&&(j=Y.dom7LiveListeners[Q]),j&&j.length)for(let V=j.length-1;V>=0;V-=1){const it=j[V];k&&it.listener===k||k&&it.listener&&it.listener.dom7proxy&&it.listener.dom7proxy===k?(Y.removeEventListener(Q,it.proxyListener,L),j.splice(V,1)):k||(Y.removeEventListener(Q,it.proxyListener,L),j.splice(V,1))}}}return this}function Vt(...n){const y=d(),b=n[0].split(" "),k=n[1];for(let L=0;L<b.length;L+=1){const D=b[L];for(let H=0;H<this.length;H+=1){const Q=this[H];if(y.CustomEvent){const N=new y.CustomEvent(D,{detail:k,bubbles:!0,cancelable:!0});Q.dom7EventData=n.filter((Y,j)=>j>0),Q.dispatchEvent(N),Q.dom7EventData=[],delete Q.dom7EventData}}}return this}function Ot(n){const y=this;function b(k){k.target===this&&(n.call(this,k),y.off("transitionend",b))}return n&&y.on("transitionend",b),this}function Be(n){if(this.length>0){if(n){const y=this.styles();return this[0].offsetWidth+parseFloat(y.getPropertyValue("margin-right"))+parseFloat(y.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function xe(n){if(this.length>0){if(n){const y=this.styles();return this[0].offsetHeight+parseFloat(y.getPropertyValue("margin-top"))+parseFloat(y.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function me(){if(this.length>0){const n=d(),y=c(),b=this[0],k=b.getBoundingClientRect(),L=y.body,D=b.clientTop||L.clientTop||0,H=b.clientLeft||L.clientLeft||0,Q=b===n?n.scrollY:b.scrollTop,N=b===n?n.scrollX:b.scrollLeft;return{top:k.top+Q-D,left:k.left+N-H}}return null}function mt(){const n=d();return this[0]?n.getComputedStyle(this[0],null):{}}function ot(n,y){const b=d();let k;if(arguments.length===1)if(typeof n=="string"){if(this[0])return b.getComputedStyle(this[0],null).getPropertyValue(n)}else{for(k=0;k<this.length;k+=1)for(const L in n)this[k].style[L]=n[L];return this}if(arguments.length===2&&typeof n=="string"){for(k=0;k<this.length;k+=1)this[k].style[n]=y;return this}return this}function Pt(n){return n?(this.forEach((y,b)=>{n.apply(y,[y,b])}),this):this}function Ct(n){const y=ct(this,n);return q(y)}function g(n){if(typeof n>"u")return this[0]?this[0].innerHTML:null;for(let y=0;y<this.length;y+=1)this[y].innerHTML=n;return this}function ve(n){if(typeof n>"u")return this[0]?this[0].textContent.trim():null;for(let y=0;y<this.length;y+=1)this[y].textContent=n;return this}function ue(n){const y=d(),b=c(),k=this[0];let L,D;if(!k||typeof n>"u")return!1;if(typeof n=="string"){if(k.matches)return k.matches(n);if(k.webkitMatchesSelector)return k.webkitMatchesSelector(n);if(k.msMatchesSelector)return k.msMatchesSelector(n);for(L=q(n),D=0;D<L.length;D+=1)if(L[D]===k)return!0;return!1}if(n===b)return k===b;if(n===y)return k===y;if(n.nodeType||n instanceof I){for(L=n.nodeType?[n]:n,D=0;D<L.length;D+=1)if(L[D]===k)return!0;return!1}return!1}function ye(){let n=this[0],y;if(n){for(y=0;(n=n.previousSibling)!==null;)n.nodeType===1&&(y+=1);return y}}function De(n){if(typeof n>"u")return this;const y=this.length;if(n>y-1)return q([]);if(n<0){const b=y+n;return b<0?q([]):q([this[b]])}return q([this[n]])}function Te(...n){let y;const b=c();for(let k=0;k<n.length;k+=1){y=n[k];for(let L=0;L<this.length;L+=1)if(typeof y=="string"){const D=b.createElement("div");for(D.innerHTML=y;D.firstChild;)this[L].appendChild(D.firstChild)}else if(y instanceof I)for(let D=0;D<y.length;D+=1)this[L].appendChild(y[D]);else this[L].appendChild(y)}return this}function We(n){const y=c();let b,k;for(b=0;b<this.length;b+=1)if(typeof n=="string"){const L=y.createElement("div");for(L.innerHTML=n,k=L.childNodes.length-1;k>=0;k-=1)this[b].insertBefore(L.childNodes[k],this[b].childNodes[0])}else if(n instanceof I)for(k=0;k<n.length;k+=1)this[b].insertBefore(n[k],this[b].childNodes[0]);else this[b].insertBefore(n,this[b].childNodes[0]);return this}function ii(n){return this.length>0?n?this[0].nextElementSibling&&q(this[0].nextElementSibling).is(n)?q([this[0].nextElementSibling]):q([]):this[0].nextElementSibling?q([this[0].nextElementSibling]):q([]):q([])}function Ee(n){const y=[];let b=this[0];if(!b)return q([]);for(;b.nextElementSibling;){const k=b.nextElementSibling;n?q(k).is(n)&&y.push(k):y.push(k),b=k}return q(y)}function Ei(n){if(this.length>0){const y=this[0];return n?y.previousElementSibling&&q(y.previousElementSibling).is(n)?q([y.previousElementSibling]):q([]):y.previousElementSibling?q([y.previousElementSibling]):q([])}return q([])}function ji(n){const y=[];let b=this[0];if(!b)return q([]);for(;b.previousElementSibling;){const k=b.previousElementSibling;n?q(k).is(n)&&y.push(k):y.push(k),b=k}return q(y)}function wn(n){const y=[];for(let b=0;b<this.length;b+=1)this[b].parentNode!==null&&(n?q(this[b].parentNode).is(n)&&y.push(this[b].parentNode):y.push(this[b].parentNode));return q(y)}function Ni(n){const y=[];for(let b=0;b<this.length;b+=1){let k=this[b].parentNode;for(;k;)n?q(k).is(n)&&y.push(k):y.push(k),k=k.parentNode}return q(y)}function pn(n){let y=this;return typeof n>"u"?q([]):(y.is(n)||(y=y.parents(n).eq(0)),y)}function Cn(n){const y=[];for(let b=0;b<this.length;b+=1){const k=this[b].querySelectorAll(n);for(let L=0;L<k.length;L+=1)y.push(k[L])}return q(y)}function An(n){const y=[];for(let b=0;b<this.length;b+=1){const k=this[b].children;for(let L=0;L<k.length;L+=1)(!n||q(k[L]).is(n))&&y.push(k[L])}return q(y)}function Ri(){for(let n=0;n<this.length;n+=1)this[n].parentNode&&this[n].parentNode.removeChild(this[n]);return this}const Sn={addClass:J,removeClass:ht,hasClass:Et,toggleClass:xt,attr:x,removeAttr:R,transform:G,transition:at,on:ut,off:A,trigger:Vt,transitionEnd:Ot,outerWidth:Be,outerHeight:xe,styles:mt,offset:me,css:ot,each:Pt,html:g,text:ve,is:ue,index:ye,eq:De,append:Te,prepend:We,next:ii,nextAll:Ee,prev:Ei,prevAll:ji,parent:wn,parents:Ni,closest:pn,find:Cn,children:An,filter:Ct,remove:Ri};
vendor: 5,310 bytes, line 13
13Object.keys(Sn).forEach(n=>{Object.defineProperty(q.fn,n,{value:Sn[n],writable:!0})});function Lr(n){const y=n;Object.keys(y).forEach(b=>{try{y[b]=null}catch{}try{delete y[b]}catch{}})}function vn(n,y=0){return setTimeout(n,y)}function Ji(){return Date.now()}function Gi(n){const y=d();let b;return y.getComputedStyle&&(b=y.getComputedStyle(n,null)),!b&&n.currentStyle&&(b=n.currentStyle),b||(b=n.style),b}function wr(n,y="x"){const b=d();let k,L,D;const H=Gi(n);return b.WebKitCSSMatrix?(L=H.transform||H.webkitTransform,L.split(",").length>6&&(L=L.split(", ").map(Q=>Q.replace(",",".")).join(", ")),D=new b.WebKitCSSMatrix(L==="none"?"":L)):(D=H.MozTransform||H.OTransform||H.MsTransform||H.msTransform||H.transform||H.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),k=D.toString().split(",")),y==="x"&&(b.WebKitCSSMatrix?L=D.m41:k.length===16?L=parseFloat(k[12]):L=parseFloat(k[4])),y==="y"&&(b.WebKitCSSMatrix?L=D.m42:k.length===16?L=parseFloat(k[13]):L=parseFloat(k[5])),L||0}function Yn(n){return typeof n=="object"&&n!==null&&n.constructor&&Object.prototype.toString.call(n).slice(8,-1)==="Object"}function Fn(n){return typeof window<"u"&&typeof window.HTMLElement<"u"?n instanceof HTMLElement:n&&(n.nodeType===1||n.nodeType===11)}function qi(...n){const y=Object(n[0]),b=["__proto__","constructor","prototype"];for(let k=1;k<n.length;k+=1){const L=n[k];if(L!=null&&!Fn(L)){const D=Object.keys(Object(L)).filter(H=>b.indexOf(H)<0);for(let H=0,Q=D.length;H<Q;H+=1){const N=D[H],Y=Object.getOwnPropertyDescriptor(L,N);Y!==void 0&&Y.enumerable&&(Yn(y[N])&&Yn(L[N])?L[N].__swiper__?y[N]=L[N]:qi(y[N],L[N]):!Yn(y[N])&&Yn(L[N])?(y[N]={},L[N].__swiper__?y[N]=L[N]:qi(y[N],L[N])):y[N]=L[N])}}}return y}function Nn(n,y,b){n.style.setProperty(y,b)}function lr({swiper:n,targetPosition:y,side:b}){const k=d(),L=-n.translate;let D=null,H;const Q=n.params.speed;n.wrapperEl.style.scrollSnapType="none",k.cancelAnimationFrame(n.cssModeFrameID);const N=y>L?"next":"prev",Y=(V,it)=>N==="next"&&V>=it||N==="prev"&&V<=it,j=()=>{H=new Date().getTime(),D===null&&(D=H);const V=Math.max(Math.min((H-D)/Q,1),0),it=.5-Math.cos(V*Math.PI)/2;let yt=L+it*(y-L);if(Y(yt,y)&&(yt=y),n.wrapperEl.scrollTo({[b]:yt}),Y(yt,y)){n.wrapperEl.style.overflow="hidden",n.wrapperEl.style.scrollSnapType="",setTimeout(()=>{n.wrapperEl.style.overflow="",n.wrapperEl.scrollTo({[b]:yt})}),k.cancelAnimationFrame(n.cssModeFrameID);return}n.cssModeFrameID=k.requestAnimationFrame(j)};j()}let ti;function $n(){const n=d(),y=c();return{smoothScroll:y.documentElement&&"scrollBehavior"in y.documentElement.style,touch:!!("ontouchstart"in n||n.DocumentTouch&&y instanceof n.DocumentTouch),passiveListener:function(){let k=!1;try{const L=Object.defineProperty({},"passive",{get(){k=!0}});n.addEventListener("testPassiveListener",null,L)}catch{}return k}(),gestures:function(){return"ongesturestart"in n}()}}function Qn(){return ti||(ti=$n()),ti}let vr;function kr({userAgent:n}={}){const y=Qn(),b=d(),k=b.navigator.platform,L=n||b.navigator.userAgent,D={ios:!1,android:!1},H=b.screen.width,Q=b.screen.height,N=L.match(/(Android);?[\s\/]+([\d.]+)?/);let Y=L.match(/(iPad).*OS\s([\d_]+)/);const j=L.match(/(iPod)(.*OS\s([\d_]+))?/),V=!Y&&L.match(/(iPhone\sOS|iOS)\s([\d_]+)/),it=k==="Win32";let yt=k==="MacIntel";const vt=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!Y&&yt&&y.touch&&vt.indexOf(`${H}x${Q}`)>=0&&(Y=L.match(/(Version)\/([\d.]+)/),Y||(Y=[0,1,"13_0_0"]),yt=!1),N&&!it&&(D.os="android",D.android=!0),(Y||V||j)&&(D.os="ios",D.ios=!0),D}function Pr(n={}){return vr||(vr=kr(n)),vr}let qn;function nn(){const n=d();function y(){const b=n.navigator.userAgent.toLowerCase();return b.indexOf("safari")>=0&&b.indexOf("chrome")<0&&b.indexOf("android")<0}return{isSafari:y(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(n.navigator.userAgent)}}function En(){return qn||(qn=nn()),qn}function Ti({swiper:n,on:y,emit:b}){const k=d();let L=null;const D=()=>{!n||n.destroyed||!n.initialized||(b("beforeResize"),b("resize"))},H=()=>{!n||n.destroyed||!n.initialized||(L=new ResizeObserver(Y=>{const{width:j,height:V}=n;let it=j,yt=V;Y.forEach(({contentBoxSize:vt,contentRect:Lt,target:Tt})=>{Tt&&Tt!==n.el||(it=Lt?Lt.width:(vt[0]||vt).inlineSize,yt=Lt?Lt.height:(vt[0]||vt).blockSize)}),(it!==j||yt!==V)&&D()}),L.observe(n.el))},Q=()=>{L&&L.unobserve&&n.el&&(L.unobserve(n.el),L=null)},N=()=>{!n||n.destroyed||!n.initialized||b("orientationchange")};y("init",()=>{if(n.params.resizeObserver&&typeof k.ResizeObserver<"u"){H();return}k.addEventListener("resize",D),k.addEventListener("orientationchange",N)}),y("destroy",()=>{Q(),k.removeEventListener("resize",D),k.removeEventListener("orientationchange",N)})}function sn({swiper:n,extendParams:y,on:b,emit:k}){const L=[],D=d(),H=(Y,j={})=>{const V=D.MutationObserver||D.WebkitMutationObserver,it=new V(yt=>{if(yt.length===1){k("observerUpdate",yt[0]);return}const vt=function(){k("observerUpdate",yt[0])};D.requestAnimationFrame?D.requestAnimationFrame(vt):D.setTimeout(vt,0)});it.observe(Y,{attributes:typeof j.attributes>"u"?!0:j.attributes,childList:typeof j.childList>"u"?!0:j.childList,characterData:typeof j.characterData>"u"?!0:j.characterData}),L.push(it)},Q=()=>
13{if(n.params.observer){if(n.params.observeParents){const Y=n.$el.parents();for(let j=0;j<Y.length;j+=1)H(Y[j])}H(n.$el[0],{childList:n.params.observeSlideChildren}),H(n.$wrapperEl[0],{attributes:!1})}},N=()=>{L.forEach(Y=>{Y.disconnect()}),L.splice(0,L.length)};y({observer:!1,observeParents:!1,observeSlideChildren:!1}),b("init",Q),b("destroy",N)}var Cr={on(n,y,b){const k=this;if(typeof y!="function")return k;const L=b?"unshift":"push";return n.split(" ").forEach(D=>{k.eventsListeners[D]||(k.eventsListeners[D]=[]),k.eventsListeners[D][L](y)}),k},once(n,y,b){const k=this;if(typeof y!="function")return k;function L(...D){k.off(n,L),L.__emitterProxy&&delete L.__emitterProxy,y.apply(k,D)}return L.__emitterProxy=y,k.on(n,L,b)},onAny(n,y){const b=this;if(typeof n!="function")return b;const k=y?"unshift":"push";return b.eventsAnyListeners.indexOf(n)<0&&b.eventsAnyListeners[k](n),b},offAny(n){const y=this;if(!y.eventsAnyListeners)return y;const b=y.eventsAnyListeners.indexOf(n);return b>=0&&y.eventsAnyListeners.splice(b,1),y},off(n,y){const b=this;return b.eventsListeners&&n.split(" ").forEach(k=>{typeof y>"u"?b.eventsListeners[k]=[]:b.eventsListeners[k]&&b.eventsListeners[k].forEach((L,D)=>{(L===y||L.__emitterProxy&&L.__emitterProxy===y)&&b.eventsListeners[k].splice(D,1)})}),b},emit(...n){const y=this;if(!y.eventsListeners)return y;let b,k,L;return typeof n[0]=="string"||Array.isArray(n[0])?(b=n[0],k=n.slice(1,n.length),L=y):(b=n[0].events,k=n[0].data,L=n[0].context||y),k.unshift(L),(Array.isArray(b)?b:b.split(" ")).forEach(H=>{y.eventsAnyListeners&&y.eventsAnyListeners.length&&y.eventsAnyListeners.forEach(Q=>{Q.apply(L,[H,...k])}),y.eventsListeners&&y.eventsListeners[H]&&y.eventsListeners[H].forEach(Q=>{Q.apply(L,k)})}),y}};function wi(){const n=this;let y,b;const k=n.$el;typeof n.params.width<"u"&&n.params.width!==null?y=n.params.width:y=k[0].clientWidth,typeof n.params.height<"u"&&n.params.height!==null?b=n.params.height:b=k[0].clientHeight,!(y===0&&n.isHorizontal()||b===0&&n.isVertical())&&(y=y-parseInt(k.css("padding-left")||0,10)-parseInt(k.css("padding-right")||0,10),b=b-parseInt(k.css("padding-top")||0,10)-parseInt(k.css("padding-bottom")||0,10),Number.isNaN(y)&&(y=0),Number.isNaN(b)&&(b=0),Object.assign(n,{width:y,height:b,size:n.isHorizontal()?y:b}))}function Wn(){const n=this;function y(ce){return n.isHorizontal()?ce:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[ce]}function b(ce,le){return parseFloat(ce.getPropertyValue(y(le))||0)}const k=n.params,{$wrapperEl:L,size:D,rtlTranslate:H,wrongRTL:Q}=n,N=n.virtual&&k.virtual.enabled,Y=N?n.virtual.slides.length:n.slides.length,j=L.children(`.${n.params.slideClass}`),V=N?n.virtual.slides.length:j.length;let it=[];const yt=[],vt=[];let Lt=k.slidesOffsetBefore;typeof Lt=="function"&&(Lt=k.slidesOffsetBefore.call(n));let Tt=k.slidesOffsetAfter;typeof Tt=="function"&&(Tt=k.slidesOffsetAfter.call(n));const Dt=n.snapGrid.length,Xt=n.slidesGrid.length;let Ht=k.spaceBetween,ie=-Lt,we=0,Ue=0;if(typeof D>"u")return;typeof Ht=="string"&&Ht.indexOf("%")>=0&&(Ht=parseFloat(Ht.replace("%",""))/100*D),n.virtualSize=-Ht,H?j.css({marginLeft:"",marginBottom:"",marginTop:""}):j.css({marginRight:"",marginBottom:"",marginTop:""}),k.centeredSlides&&k.cssMode&&(Nn(n.wrapperEl,"--swiper-centered-offset-before",""),Nn(n.wrapperEl,"--swiper-centered-offset-after",""));const Ne=k.grid&&k.grid.rows>1&&n.grid;Ne&&n.grid.initSlides(V);let ne;const Kt=k.slidesPerView==="auto"&&k.breakpoints&&Object.keys(k.breakpoints).filter(ce=>typeof k.breakpoints[ce].slidesPerView<"u").length>0;for(let ce=0;ce<V;ce+=1){ne=0;const le=j.eq(ce);if(Ne&&n.grid.updateSlide(ce,le,V,y),le.css("display")!=="none"){if(k.slidesPerView==="auto"){Kt&&(j[ce].style[y("width")]="");const Ae=getComputedStyle(le[0]),Ze=le[0].style.transform,_i=le[0].style.webkitTransform;if(Ze&&(le[0].style.transform="none"),_i&&(le[0].style.webkitTransform="none"),k.roundLengths)ne=n.isHorizontal()?le.outerWidth(!0):le.outerHeight(!0);else{const Ii=b(Ae,"width"),fe=b(Ae,"padding-left"),Si=b(Ae,"padding-right"),Mi=b(Ae,"margin-left"),bi=b(Ae,"margin-right"),mn=Ae.getPropertyValue("box-sizing");if(mn&&mn==="border-box")ne=Ii+Mi+bi;else{const{clientWidth:mr,offsetWidth:Rr}=le[0];ne=Ii+fe+Si+Mi+bi+(Rr-mr)}}Ze&&(le[0].style.transform=Ze),_i&&(le[0].style.webkitTransform=_i),k.roundLengths&&(ne=Math.floor(ne))}else ne=(D-(k.slidesPerView-1)*Ht)/k.slidesPerView,k.roundLengths&&(ne=Math.floor(ne)),j[ce]&&(j[ce].style[y("width")]=`${ne}px`);j[ce]&&(j[ce].swiperSlideSize=ne),vt.push(ne),k.centeredSlides?(ie=ie+ne/2+we/2+Ht,we===0&&ce!==0&&(ie=ie-D/2-Ht),ce===0&&(ie=ie-D/2-Ht),Math.abs(ie)<1/1e3&&(ie=0),k.roundLengths&&(ie=Math.floor(ie)),Ue%k.slidesPerGroup===0&&it.push(ie),yt.push(ie)):(k.roundLengths&&(ie=Math.floor(ie)),(Ue-Math.min(n.params.slidesPerGroupSkip,Ue))%n.params.slidesPerGroup===0&&it.push(ie),yt.push(ie),ie=ie+ne+Ht),n.virtualSize+=ne+Ht,we=ne,Ue+=1}}if(n.virtualSize=Math.max(n.virtualSize,D)+Tt,H&&Q&&(k.effect==="slide"||k.effect==="coverflow")&&L.css({width:`${n.virtualSize+k.spaceBetween}px`}),k.setWrapperSize&&L.css({[y("width")]:`${n.virtualSize+k.spaceBetween}px`}),Ne&&n.grid.updateWrapperSize(ne,it,y),!k.centeredSlides){const ce=[];for(let le=0;le<it.length;le+=1){let Ae=it[le];
13k.roundLengths&&(Ae=Math.floor(Ae)),it[le]<=n.virtualSize-D&&ce.push(Ae)}it=ce,Math.floor(n.virtualSize-D)-Math.floor(it[it.length-1])>1&&it.push(n.virtualSize-D)}if(it.length===0&&(it=[0]),k.spaceBetween!==0){const ce=n.isHorizontal()&&H?"marginLeft":y("marginRight");j.filter((le,Ae)=>k.cssMode?Ae!==j.length-1:!0).css({[ce]:`${Ht}px`})}if(k.centeredSlides&&k.centeredSlidesBounds){let ce=0;vt.forEach(Ae=>{ce+=Ae+(k.spaceBetween?k.spaceBetween:0)}),ce-=k.spaceBetween;const le=ce-D;it=it.map(Ae=>Ae<0?-Lt:Ae>le?le+Tt:Ae)}if(k.centerInsufficientSlides){let ce=0;if(vt.forEach(le=>{ce+=le+(k.spaceBetween?k.spaceBetween:0)}),ce-=k.spaceBetween,ce<D){const le=(D-ce)/2;it.forEach((Ae,Ze)=>{it[Ze]=Ae-le}),yt.forEach((Ae,Ze)=>{yt[Ze]=Ae+le})}}if(Object.assign(n,{slides:j,snapGrid:it,slidesGrid:yt,slidesSizesGrid:vt}),k.centeredSlides&&k.cssMode&&!k.centeredSlidesBounds){Nn(n.wrapperEl,"--swiper-centered-offset-before",`${-it[0]}px`),Nn(n.wrapperEl,"--swiper-centered-offset-after",`${n.size/2-vt[vt.length-1]/2}px`);const ce=-n.snapGrid[0],le=-n.slidesGrid[0];n.snapGrid=n.snapGrid.map(Ae=>Ae+ce),n.slidesGrid=n.slidesGrid.map(Ae=>Ae+le)}V!==Y&&n.emit("slidesLengthChange"),it.length!==Dt&&(n.params.watchOverflow&&n.checkOverflow(),n.emit("snapGridLengthChange")),yt.length!==Xt&&n.emit("slidesGridLengthChange"),k.watchSlidesProgress&&n.updateSlidesOffset()}function fr(n){const y=this,b=[],k=y.virtual&&y.params.virtual.enabled;let L=0,D;typeof n=="number"?y.setTransition(n):n===!0&&y.setTransition(y.params.speed);const H=Q=>k?y.slides.filter(N=>parseInt(N.getAttribute("data-swiper-slide-index"),10)===Q)[0]:y.slides.eq(Q)[0];if(y.params.slidesPerView!=="auto"&&y.params.slidesPerView>1)if(y.params.centeredSlides)y.visibleSlides.each(Q=>{b.push(Q)});else for(D=0;D<Math.ceil(y.params.slidesPerView);D+=1){const Q=y.activeIndex+D;if(Q>y.slides.length&&!k)break;b.push(H(Q))}else b.push(H(y.activeIndex));for(D=0;D<b.length;D+=1)if(typeof b[D]<"u"){const Q=b[D].offsetHeight;L=Q>L?Q:L}(L||L===0)&&y.$wrapperEl.css("height",`${L}px`)}function ar(){const n=this,y=n.slides;for(let b=0;b<y.length;b+=1)y[b].swiperSlideOffset=n.isHorizontal()?y[b].offsetLeft:y[b].offsetTop}function Hn(n=this&&this.translate||0){const y=this,b=y.params,{slides:k,rtlTranslate:L,snapGrid:D}=y;if(k.length===0)return;typeof k[0].swiperSlideOffset>"u"&&y.updateSlidesOffset();let H=-n;L&&(H=n),k.removeClass(b.slideVisibleClass),y.visibleSlidesIndexes=[],y.visibleSlides=[];for(let Q=0;Q<k.length;Q+=1){const N=k[Q];let Y=N.swiperSlideOffset;b.cssMode&&b.centeredSlides&&(Y-=k[0].swiperSlideOffset);const j=(H+(b.centeredSlides?y.minTranslate():0)-Y)/(N.swiperSlideSize+b.spaceBetween),V=(H-D[0]+(b.centeredSlides?y.minTranslate():0)-Y)/(N.swiperSlideSize+b.spaceBetween),it=-(H-Y),yt=it+y.slidesSizesGrid[Q];(it>=0&&it<y.size-1||yt>1&&yt<=y.size||it<=0&&yt>=y.size)&&(y.visibleSlides.push(N),y.visibleSlidesIndexes.push(Q),k.eq(Q).addClass(b.slideVisibleClass)),N.progress=L?-j:j,N.originalProgress=L?-V:V}y.visibleSlides=q(y.visibleSlides)}function nr(n){const y=this;if(typeof n>"u"){const Y=y.rtlTranslate?-1:1;n=y&&y.translate&&y.translate*Y||0}const b=y.params,k=y.maxTranslate()-y.minTranslate();let{progress:L,isBeginning:D,isEnd:H}=y;const Q=D,N=H;k===0?(L=0,D=!0,H=!0):(L=(n-y.minTranslate())/k,D=L<=0,H=L>=1),Object.assign(y,{progress:L,isBeginning:D,isEnd:H}),(b.watchSlidesProgress||b.centeredSlides&&b.autoHeight)&&y.updateSlidesProgress(n),D&&!Q&&y.emit("reachBeginning toEdge"),H&&!N&&y.emit("reachEnd toEdge"),(Q&&!D||N&&!H)&&y.emit("fromEdge"),y.emit("progress",L)}function Mn(){const n=this,{slides:y,params:b,$wrapperEl:k,activeIndex:L,realIndex:D}=n,H=n.virtual&&b.virtual.enabled;y.removeClass(`${b.slideActiveClass} ${b.slideNextClass} ${b.slidePrevClass} ${b.slideDuplicateActiveClass} ${b.slideDuplicateNextClass} ${b.slideDuplicatePrevClass}`);let Q;H?Q=n.$wrapperEl.find(`.${b.slideClass}[data-swiper-slide-index="${L}"]`):Q=y.eq(L),Q.addClass(b.slideActiveClass),b.loop&&(Q.hasClass(b.slideDuplicateClass)?k.children(`.${b.slideClass}:not(.${b.slideDuplicateClass})[data-swiper-slide-index="${D}"]`).addClass(b.slideDuplicateActiveClass):k.children(`.${b.slideClass}.${b.slideDuplicateClass}[data-swiper-slide-index="${D}"]`).addClass(b.slideDuplicateActiveClass));let N=Q.nextAll(`.${b.slideClass}`).eq(0).addClass(b.slideNextClass);b.loop&&N.length===0&&(N=y.eq(0),N.addClass(b.slideNextClass));let Y=Q.prevAll(`.${b.slideClass}`).eq(0).addClass(b.slidePrevClass);b.loop&&Y.length===0&&(Y=y.eq(-1),Y.addClass(b.slidePrevClass)),b.loop&&(N.hasClass(b.slideDuplicateClass)?k.children(`.${b.slideClass}:not(.${b.slideDuplicateClass})[data-swiper-slide-index="${N.attr("data-swiper-slide-index")}"]`).addClass(b.slideDuplicateNextClass):k.children(`.${b.slideClass}.${b.slideDuplicateClass}[data-swiper-slide-index="${N.attr("data-swiper-slide-index")}"]`).addClass(b.slideDuplicateNextClass),Y.hasClass(b.slideDuplicateClass)?k.children(`.${b.slideClass}:not(.${b.slideDuplicateClass})[data-swiper-slide-index="${Y.attr("data-swiper-slide-index")}"]`).addClass(b.slideDuplicatePrevClass):k.children(`.${b.slideClass}.${b.slideDuplicateClass}[data-swiper-slide-index="${Y.attr("data-swiper-slide-index")}"]`).addClass(b.slideDuplicatePrevClass)),n.emitSlidesClasses()}function jn(n){const y=this,b=y.rtlTranslate?y.translate:-y.translate,{slidesGrid:k,snapGrid:L,params:D,activeIndex:H,realIndex:Q,snapIndex:N}=y;let Y=n,j;if(typeof Y>"u"){for(let it=0;
13it<k.length;it+=1)typeof k[it+1]<"u"?b>=k[it]&&b<k[it+1]-(k[it+1]-k[it])/2?Y=it:b>=k[it]&&b<k[it+1]&&(Y=it+1):b>=k[it]&&(Y=it);D.normalizeSlideIndex&&(Y<0||typeof Y>"u")&&(Y=0)}if(L.indexOf(b)>=0)j=L.indexOf(b);else{const it=Math.min(D.slidesPerGroupSkip,Y);j=it+Math.floor((Y-it)/D.slidesPerGroup)}if(j>=L.length&&(j=L.length-1),Y===H){j!==N&&(y.snapIndex=j,y.emit("snapIndexChange"));return}const V=parseInt(y.slides.eq(Y).attr("data-swiper-slide-index")||Y,10);Object.assign(y,{snapIndex:j,realIndex:V,previousIndex:H,activeIndex:Y}),y.emit("activeIndexChange"),y.emit("snapIndexChange"),Q!==V&&y.emit("realIndexChange"),(y.initialized||y.params.runCallbacksOnInit)&&y.emit("slideChange")}function Gn(n){const y=this,b=y.params,k=q(n).closest(`.${b.slideClass}`)[0];let L=!1,D;if(k){for(let H=0;H<y.slides.length;H+=1)if(y.slides[H]===k){L=!0,D=H;break}}if(k&&L)y.clickedSlide=k,y.virtual&&y.params.virtual.enabled?y.clickedIndex=parseInt(q(k).attr("data-swiper-slide-index"),10):y.clickedIndex=D;else{y.clickedSlide=void 0,y.clickedIndex=void 0;return}b.slideToClickedSlide&&y.clickedIndex!==void 0&&y.clickedIndex!==y.activeIndex&&y.slideToClickedSlide()}var un={updateSize:wi,updateSlides:Wn,updateAutoHeight:fr,updateSlidesOffset:ar,updateSlidesProgress:Hn,updateProgress:nr,updateSlidesClasses:Mn,updateActiveIndex:jn,updateClickedSlide:Gn};function pr(n=this.isHorizontal()?"x":"y"){const y=this,{params:b,rtlTranslate:k,translate:L,$wrapperEl:D}=y;if(b.virtualTranslate)return k?-L:L;if(b.cssMode)return L;let H=wr(D[0],n);return k&&(H=-H),H||0}function cr(n,y){const b=this,{rtlTranslate:k,params:L,$wrapperEl:D,wrapperEl:H,progress:Q}=b;let N=0,Y=0;const j=0;b.isHorizontal()?N=k?-n:n:Y=n,L.roundLengths&&(N=Math.floor(N),Y=Math.floor(Y)),L.cssMode?H[b.isHorizontal()?"scrollLeft":"scrollTop"]=b.isHorizontal()?-N:-Y:L.virtualTranslate||D.transform(`translate3d(${N}px, ${Y}
13px, ${j}px)`),b.previousTranslate=b.translate,b.translate=b.isHorizontal()?N:Y;let V;const it=b.maxTranslate()-b.minTranslate();it===0?V=0:V=(n-b.minTranslate())/it,V!==Q&&b.updateProgress(n),b.emit("setTranslate",b.translate,y)}function yr(){return-this.snapGrid[0]}function Mr(){return-this.snapGrid[this.snapGrid.length-1]}function Zn(n=0,y=this.params.speed,b=!0,k=!0,L){const D=this,{params:H,wrapperEl:Q}=D;if(D.animating&&H.preventInteractionOnTransition)return!1;const N=D.minTranslate(),Y=D.maxTranslate();let j;if(k&&n>N?j=N:k&&n<Y?j=Y:j=n,D.updateProgress(j),H.cssMode){const V=D.isHorizontal();if(y===0)Q[V?"scrollLeft":"scrollTop"]=-j;else{if(!D.support.smoothScroll)return lr({swiper:D,targetPosition:-j,side:V?"left":"top"}),!0;Q.scrollTo({[V?"left":"top"]:-j,behavior:"smooth"})}return!0}return y===0?(D.setTransition(0),D.setTranslate(j),b&&(D.emit("beforeTransitionStart",y,L),D.emit("transitionEnd"))):(D.setTransition(y),D.setTranslate(j),b&&(D.emit("beforeTransitionStart",y,L),D.emit("transitionStart")),D.animating||(D.animating=!0,D.onTranslateToWrapperTransitionEnd||(D.onTranslateToWrapperTransitionEnd=function(it){!D||D.destroyed||it.target===this&&(D.$wrapperEl[0].removeEventListener("transitionend",D.onTranslateToWrapperTransitionEnd),D.$wrapperEl[0].removeEventListener("webkitTransitionEnd",D.onTranslateToWrapperTransitionEnd),D.onTranslateToWrapperTransitionEnd=null,delete D.onTranslateToWrapperTransitionEnd,b&&D.emit("transitionEnd"))}),D.$wrapperEl[0].addEventListener("transitionend",D.onTranslateToWrapperTransitionEnd),D.$wrapperEl[0].addEventListener("webkitTransitionEnd",D.onTranslateToWrapperTransitionEnd))),!0}var Ln={getTranslate:pr,setTranslate:cr,minTranslate:yr,maxTranslate:Mr,translateTo:Zn};function Tn(n,y){const b=this;b.params.cssMode||b.$wrapperEl.transition(n),b.emit("setTransition",n,y)}function Rt({swiper:n,runCallbacks:y,direction:b,step:k}){const{activeIndex:L,previousIndex:D}=n;let H=b;if(H||(L>D?H="next":L<D?H="prev":H="reset"),n.emit(`transition${k}`),y&&L!==D){if(H==="reset"){n.emit(`slideResetTransition${k}`);return}n.emit(`slideChangeTransition${k}`),H==="next"?n.emit(`slideNextTransition${k}`):n.emit(`slidePrevTransition${k}`)}}function Ft(n=!0,y){const b=this,{params:k}=b;k.cssMode||(k.autoHeight&&b.updateAutoHeight(),Rt({swiper:b,runCallbacks:n,direction:y,step:"Start"}))}function Zt(n=!0,y){const b=this,{params:k}=b;b.animating=!1,!k.cssMode&&(b.setTransition(0),Rt({swiper:b,runCallbacks:n,direction:y,step:"End"}))}var Le={setTransition:Tn,transitionStart:Ft,transitionEnd:Zt};function oi(n=0,y=this.params.speed,b=!0,k,L){if(typeof n!="number"&&typeof n!="string")throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof n}] given.`);if(typeof n=="string"){const Ht=parseInt(n,10);if(!isFinite(Ht))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${n}] given.`);n=Ht}const D=this;let H=n;H<0&&(H=0);const{params:Q,snapGrid:N,slidesGrid:Y,previousIndex:j,activeIndex:V,rtlTranslate:it,wrapperEl:yt,enabled:vt}=D;if(D.animating&&Q.preventInteractionOnTransition||!vt&&!k&&!L)return!1;const Lt=Math.min(D.params.slidesPerGroupSkip,H);let Tt=Lt+Math.floor((H-Lt)/D.params.slidesPerGroup);Tt>=N.length&&(Tt=N.length-1),(V||Q.initialSlide||0)===(j||0)&&b&&D.emit("beforeSlideChangeStart");const Dt=-N[Tt];if(D.updateProgress(Dt),Q.normalizeSlideIndex)for(let Ht=0;Ht<Y.length;Ht+=1){const ie=-Math.floor(Dt*100),we=Math.floor(Y[Ht]*100),Ue=Math.floor(Y[Ht+1]*100);typeof Y[Ht+1]<"u"?ie>=we&&ie<Ue-(Ue-we)/2?H=Ht:ie>=we&&ie<Ue&&(H=Ht+1):ie>=we&&(H=Ht)}if(D.initialized&&H!==V&&(!D.allowSlideNext&&Dt<D.translate&&Dt<D.minTranslate()||!D.allowSlidePrev&&Dt>D.translate&&Dt>D.maxTranslate()&&(V||0)!==H))return!1;let Xt;if(H>V?Xt="next":H<V?Xt="prev":Xt="reset",it&&-Dt===D.translate||!it&&Dt===D.translate)return D.updateActiveIndex(H),Q.autoHeight&&D.updateAutoHeight(),D.updateSlidesClasses(),Q.effect!=="slide"&&D.setTranslate(Dt),Xt!=="reset"&&(D.transitionStart(b,Xt),D.transitionEnd(b,Xt)),!1;if(Q.cssMode){const Ht=D.isHorizontal(),ie=it?Dt:-Dt;if(y===0){const we=D.virtual&&D.params.virtual.enabled;we&&(D.wrapperEl.style.scrollSnapType="none",D._immediateVirtual=!0),yt[Ht?"scrollLeft":"scrollTop"]=ie,we&&requestAnimationFrame(()=>{D.wrapperEl.style.scrollSnapType="",D._swiperImmediateVirtual=!1})}else{if(!D.support.smoothScroll)return lr({swiper:D,targetPosition:ie,side:Ht?"left":"top"}),!0;yt.scrollTo({[Ht?"left":"top"]:ie,behavior:"smooth"})}return!0}return D.setTransition(y),D.setTranslate(Dt),D.updateActiveIndex(H),D.updateSlidesClasses(),D.emit("beforeTransitionStart",y,k),D.transitionStart(b,Xt),y===0?D.transitionEnd(b,Xt):D.animating||(D.animating=!0,D.onSlideToWrapperTransitionEnd||(D.onSlideToWrapperTransitionEnd=function(ie){!D||D.destroyed||ie.target===this&&(D.$wrapperEl[0].removeEventListener("transitionend",D.onSlideToWrapperTransitionEnd),D.$wrapperEl[0].removeEventListener("webkitTransitionEnd",D.onSlideToWrapperTransitionEnd),D.onSlideToWrapperTransitionEnd=null,delete D.onSlideToWrapperTransitionEnd,D.transitionEnd(b,Xt))}),D.$wrapperEl[0].addEventListener("transitionend",D.onSlideToWrapperTransitionEnd),D.$wrapperEl[0].addEventListener("webkitTransitionEnd",D.onSlideToWrapperTransitionEnd)),!0}function Ge(n=0,y=this.params.speed,b=!0,k){const L=this;let D=n;return L.params.loop&&(D+=L.loopedSlides),L.slideTo(D,y,b,k)}function Ke(n=this.params.speed,y=!0,b){const k=this,{animating:L,enabled:D,params:H}=k;if(!D)return k;let Q=H.slidesPerGroup;H.slidesPerView==="auto"&&H.slidesPerGroup===1&&H.slidesPerGroupAuto&&(Q=Math.max(k.slidesPerViewDynamic("current",!0),1));const N=k.activeIndex<H.slidesPerGroupSkip?1:Q;if(H.loop){if(L&&H.loopPreventsSlide)return!1;k.loopFix(),k._clientLeft=k.$wrapperEl[0].clientLeft}return H.rewind&&k.isEnd?k.slideTo(0,n,y,b):k.slideTo(k.activeIndex+N,n,y,b)}function ki(n=this.params.speed,y=!0,b){const k=this,{params:L,animating:D,snapGrid:H,slidesGrid:Q,rtlTranslate:N,enabled:Y}=k;if(!Y)return k;if(L.loop){if(D&&L.loopPreventsSlide)return!1;k.loopFix(),k._clientLeft=k.$wrapperEl[0].clientLeft}const j=N?k.translate:-k.translate;function V(Tt){return Tt<0?-Math.floor(Math.abs(Tt)):Math.floor(Tt)}const it=V(j),yt=H.map(Tt=>V(Tt));let vt=H[yt.indexOf(it)-1];if(typeof vt>"u"&&L.cssMode){let Tt;H.forEach((Dt,Xt)=>{it>=Dt&&(Tt=Xt)}),typeof Tt<"u"&&(vt=H[Tt>0?Tt-1:Tt])}let Lt=0;return typeof vt<"u"&&(Lt=Q.indexOf(vt),Lt<0&&(Lt=k.activeIndex-1),L.slidesPerView==="auto"&&L.slidesPerGroup===1&&L.slidesPerGroupAuto&&(Lt=Lt-k.slidesPerViewDynamic("previous",!0)+1,Lt=Math.max(Lt,0))),L.rewind&&k.isBeginning?k.slideTo(k.slides.length-1,n,y,b):k.slideTo(Lt,n,y,b)}function Pi(n=this.params.speed,y=!0,b){const k=this;return k.slideTo(k.activeIndex,n,y,b)}function Oi(n=this.params.speed,y=!0,b,k=.5){const L=this;let D=L.activeIndex;const H=Math.min(L.params.slidesPerGroupSkip,D),Q=H+Math.floor((D-H)/L.params.slidesPerGroup),N=L.rtlTranslate?L.translate:-L.translate;if(N>=L.snapGrid[Q]){const Y=L.snapGrid[Q],j=L.snapGrid[Q+1];
13N-Y>(j-Y)*k&&(D+=L.params.slidesPerGroup)}else{const Y=L.snapGrid[Q-1],j=L.snapGrid[Q];N-Y<=(j-Y)*k&&(D-=L.params.slidesPerGroup)}return D=Math.max(D,0),D=Math.min(D,L.slidesGrid.length-1),L.slideTo(D,n,y,b)}function ci(){const n=this,{params:y,$wrapperEl:b}=n,k=y.slidesPerView==="auto"?n.slidesPerViewDynamic():y.slidesPerView;let L=n.clickedIndex,D;if(y.loop){if(n.animating)return;D=parseInt(q(n.clickedSlide).attr("data-swiper-slide-index"),10),y.centeredSlides?L<n.loopedSlides-k/2||L>n.slides.length-n.loopedSlides+k/2?(n.loopFix(),L=b.children(`.${y.slideClass}[data-swiper-slide-index="${D}"]:not(.${y.slideDuplicateClass})`).eq(0).index(),vn(()=>{n.slideTo(L)})):n.slideTo(L):L>n.slides.length-k?(n.loopFix(),L=b.children(`.${y.slideClass}[data-swiper-slide-index="${D}"]:not(.${y.slideDuplicateClass})`).eq(0).index(),vn(()=>{n.slideTo(L)})):n.slideTo(L)}else n.slideTo(L)}var tn={slideTo:oi,slideToLoop:Ge,slideNext:Ke,slidePrev:ki,slideReset:Pi,slideToClosest:Oi,slideToClickedSlide:ci};function Ui(){const n=this,y=c(),{params:b,$wrapperEl:k}=n,L=k.children().length>0?q(k.children()[0].parentNode):k;L.children(`.${b.slideClass}.${b.slideDuplicateClass}`).remove();let D=L.children(`.${b.slideClass}`);if(b.loopFillGroupWithBlank){const N=b.slidesPerGroup-D.length%b.slidesPerGroup;if(N!==b.slidesPerGroup){for(let Y=0;Y<N;Y+=1){const j=q(y.createElement("div")).addClass(`${b.slideClass} ${b.slideBlankClass}`);L.append(j)}
13D=L.children(`.${b.slideClass}`)}}b.slidesPerView==="auto"&&!b.loopedSlides&&(b.loopedSlides=D.length),n.loopedSlides=Math.ceil(parseFloat(b.loopedSlides||b.slidesPerView,10)),n.loopedSlides+=b.loopAdditionalSlides,n.loopedSlides>D.length&&(n.loopedSlides=D.length);const H=[],Q=[];D.each((N,Y)=>{const j=q(N);Y<n.loopedSlides&&Q.push(N),Y<D.length&&Y>=D.length-n.loopedSlides&&H.push(N),j.attr("data-swiper-slide-index",Y)});for(let N=0;N<Q.length;N+=1)L.append(q(Q[N].cloneNode(!0)).addClass(b.slideDuplicateClass));for(let N=H.length-1;N>=0;N-=1)L.prepend(q(H[N].cloneNode(!0)).addClass(b.slideDuplicateClass))}function cn(){const n=this;n.emit("beforeLoopFix");const{activeIndex:y,slides:b,loopedSlides:k,allowSlidePrev:L,allowSlideNext:D,snapGrid:H,rtlTranslate:Q}=n;let N;n.allowSlidePrev=!0,n.allowSlideNext=!0;const j=-H[y]-n.getTranslate();y<k?(N=b.length-k*3+y,N+=k,n.slideTo(N,0,!1,!0)&&j!==0&&n.setTranslate((Q?-n.translate:n.translate)-j)):y>=b.length-k&&(N=-b.length+y+k,N+=k,n.slideTo(N,0,!1,!0)&&j!==0&&n.setTranslate((Q?-n.translate:n.translate)-j)),n.allowSlidePrev=L,n.allowSlideNext=D,n.emit("loopFix")}function $i(){const n=this,{$wrapperEl:y,params:b,slides:k}=n;y.children(`.${b.slideClass}.${b.slideDuplicateClass},.${b.slideClass}.${b.slideBlankClass}`).remove(),k.removeAttr("data-swiper-slide-index")}var Hi={loopCreate:Ui,loopFix:cn,loopDestroy:$i};function xi(n){const y=this;if(y.support.touch||!y.params.simulateTouch||y.params.watchOverflow&&y.isLocked||y.params.cssMode)return;const b=y.params.touchEventsTarget==="container"?y.el:y.wrapperEl;b.style.cursor="move",b.style.cursor=n?"-webkit-grabbing":"-webkit-grab",b.style.cursor=n?"-moz-grabbin":"-moz-grab",b.style.cursor=n?"grabbing":"grab"}function vi(){const n=this;n.support.touch||n.params.watchOverflow&&n.isLocked||n.params.cssMode||(n[n.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="")}var Qi={setGrabCursor:xi,unsetGrabCursor:vi};function dt(n,y=this){function b(k){return!k||k===c()||k===d()?null:(k.assignedSlot&&(k=k.assignedSlot),k.closest(n)||b(k.getRootNode().host))}return b(y)}function X(n){const y=this,b=c(),k=d(),L=y.touchEventsData,{params:D,touches:H,enabled:Q}=y;if(!Q||y.animating&&D.preventInteractionOnTransition)return;!y.animating&&D.cssMode&&D.loop&&y.loopFix();let N=n;N.originalEvent&&(N=N.originalEvent);let Y=q(N.target);if(D.touchEventsTarget==="wrapper"&&!Y.closest(y.wrapperEl).length||(L.isTouchEvent=N.type==="touchstart",!L.isTouchEvent&&"which"in N&&N.which===3)||!L.isTouchEvent&&"button"in N&&N.button>0||L.isTouched&&L.isMoved)return;!!D.noSwipingClass&&D.noSwipingClass!==""&&N.target&&N.target.shadowRoot&&n.path&&n.path[0]&&(Y=q(n.path[0]));const V=D.noSwipingSelector?D.noSwipingSelector:`.${D.noSwipingClass}`,it=!!(N.target&&N.target.shadowRoot);if(D.noSwiping&&(it?dt(V,N.target):Y.closest(V)[0])){y.allowClick=!0;return}if(D.swipeHandler&&!Y.closest(D.swipeHandler)[0])return;H.currentX=N.type==="touchstart"?N.targetTouches[0].pageX:N.pageX,H.currentY=N.type==="touchstart"?N.targetTouches[0].pageY:N.pageY;const yt=H.currentX,vt=H.currentY,Lt=D.edgeSwipeDetection||D.iOSEdgeSwipeDetection,Tt=D.edgeSwipeThreshold||D.iOSEdgeSwipeThreshold;if(Lt&&(yt<=Tt||yt>=k.innerWidth-Tt))if(Lt==="prevent")n.preventDefault();else return;if(Object.assign(L,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),H.startX=yt,H.startY=vt,L.touchStartTime=Ji(),y.allowClick=!0,y.updateSize(),y.swipeDirection=void 0,D.threshold>0&&(L.allowThresholdMove=!1),N.type!=="touchstart"){let Dt=!0;Y.is(L.focusableElements)&&(Dt=!1),b.activeElement&&q(b.activeElement).is(L.focusableElements)&&b.activeElement!==Y[0]&&b.activeElement.blur();const Xt=Dt&&y.allowTouchMove&&D.touchStartPreventDefault;(D.touchStartForcePreventDefault||Xt)&&!Y[0].isContentEditable&&N.preventDefault()}y.emit("touchStart",N)}function _t(n){const y=c(),b=this,k=b.touchEventsData,{params:L,touches:D,rtlTranslate:H,enabled:Q}=b;if(!Q)return;let N=n;if(N.originalEvent&&(N=N.originalEvent),!k.isTouched){k.startMoving&&k.isScrolling&&b.emit("touchMoveOpposite",N);return}if(k.isTouchEvent&&N.type!=="touchmove")return;const Y=N.type==="touchmove"&&N.targetTouches&&(N.targetTouches[0]||N.changedTouches[0]),j=N.type==="touchmove"?Y.pageX:N.pageX,V=N.t
13ype==="touchmove"?Y.pageY:N.pageY;if(N.preventedByNestedSwiper){D.startX=j,D.startY=V;return}if(!b.allowTouchMove){b.allowClick=!1,k.isTouched&&(Object.assign(D,{startX:j,startY:V,currentX:j,currentY:V}),k.touchStartTime=Ji());return}if(k.isTouchEvent&&L.touchReleaseOnEdges&&!L.loop){if(b.isVertical()){if(V<D.startY&&b.translate<=b.maxTranslate()||V>D.startY&&b.translate>=b.minTranslate()){k.isTouched=!1,k.isMoved=!1;return}}else if(j<D.startX&&b.translate<=b.maxTranslate()||j>D.startX&&b.translate>=b.minTranslate())return}if(k.isTouchEvent&&y.activeElement&&N.target===y.activeElement&&q(N.target).is(k.focusableElements)){k.isMoved=!0,b.allowClick=!1;return}if(k.allowTouchCallbacks&&b.emit("touchMove",N),N.targetTouches&&N.targetTouches.length>1)return;D.currentX=j,D.currentY=V;const it=D.currentX-D.startX,yt=D.currentY-D.startY;if(b.params.threshold&&Math.sqrt(it**2+yt**2)<b.params.threshold)return;if(typeof k.isScrolling>"u"){let Dt;b.isHorizontal()&&D.currentY===D.startY||b.isVertical()&&D.currentX===D.startX?k.isScrolling=!1:it*it+yt*yt>=25&&(Dt=Math.atan2(Math.abs(yt),Math.abs(it))*180/Math.PI,k.isScrolling=b.isHorizontal()?Dt>L.touchAngle:90-Dt>L.touchAngle)}if(k.isScrolling&&b.emit("touchMoveOpposite",N),typeof k.startMoving>"u"&&(D.currentX!==D.startX||D.currentY!==D.startY)&&(k.startMoving=!0),k.isScrolling){k.isTouched=!1;return}if(!k.startMoving)return;b.allowClick=!1,!L.cssMode&&N.cancelable&&N.preventDefault(),L.touchMoveStopPropagation&&!L.nested&&N.stopPropagation(),k.isMoved||(L.loop&&!L.cssMode&&b.loopFix(),k.startTranslate=b.getTranslate(),b.setTransition(0),b.animating&&b.$wrapperEl.trigger("webkitTransitionEnd transitionend"),k.allowMomentumBounce=!1,L.grabCursor&&(b.allowSlideNext===!0||b.allowSlidePrev===!0)&&b.setGrabCursor(!0),b.emit("sliderFirstMove",N)),b.emit("sliderMove",N),k.isMoved=!0;let vt=b.isHorizontal()?it:yt;D.diff=vt,vt*=L.touchRatio,H&&(vt=-vt),b.swipeDirection=vt>0?"prev":"next",k.currentTranslate=vt+k.startTranslate;let Lt=!0,Tt=L.resistanceRatio;if(L.touchReleaseOnEdges&&(Tt=0),vt>0&&k.currentTranslate>b.minTranslate()?(Lt=!1,L.resistance&&(k.currentTranslate=b.minTranslate()-1+(-b.minTranslate()+k.startTranslate+vt)**Tt)):vt<0&&k.currentTranslate<b.maxTranslate()&&(Lt=!1,L.resistance&&(k.currentTranslate=b.maxTranslate()+1-(b.maxTranslate()-k.startTranslate-vt)**Tt)),Lt&&(N.preventedByNestedSwiper=!0),!b.allowSlideNext&&b.swipeDirection==="next"&&k.currentTranslate<k.startTranslate&&(k.currentTranslate=k.startTranslate),!b.allowSlidePrev&&b.swipeDirection==="prev"&&k.currentTranslate>k.startTranslate&&(k.currentTranslate=k.startTranslate),!b.allowSlidePrev&&!b.allowSlideNext&&(k.currentTranslate=k.startTranslate),L.threshold>0)if(Math.abs(vt)>L.threshold||k.allowThresholdMove){if(!k.allowThresholdMove){k.allowThresholdMove=!0,D.startX=D.currentX,D.startY=D.currentY,k.currentTranslate=k.startTranslate,D.diff=b.isHorizontal()?D.currentX-D.startX:D.currentY-D.startY;return}}else{k.currentTranslate=k.startTranslate;return}!L.followFinger||L.cssMode||((L.freeMode&&L.freeMode.enabled&&b.freeMode||L.watchSlidesProgress)&&(b.updateActiveIndex(),b.updateSlidesClasses()),b.params.freeMode&&L.freeMode.enabled&&b.freeMode&&b.freeMode.onTouchMove(),b.updateProgress(k.currentTranslate),b.setTranslate(k.currentTranslate))}function jt(n){const y=this,b=y.touchEventsData,{params:k,touches:L,rtlTranslate:D,slidesGrid:H,enabled:Q}=y;if(!Q)return;let N=n;if(N.originalEvent&&(N=N.originalEvent),b.allowTouchCallbacks&&y.emit("touchEnd",N),b.allowTouchCallbacks=!1,!b.isTouched){b.isMoved&&k.grabCursor&&y.setGrabCursor(!1),b.isMoved=!1,b.startMoving=!1;return}k.grabCursor&&b.isMoved&&b.isTouched&&(y.allowSlideNext===!0||y.allowSlidePrev===!0)&&y.setGrabCursor(!1);const Y=Ji(),j=Y-b.touchStartTime;if(y.allowClick){const Tt=N.path||N.composedPath&&N.composedPath();y.updateClickedSlide(Tt&&Tt[0]||N.target),y.emit("tap click",N),j<300&&Y-b.lastClickTime<300&&y.emit("doubleTap doubleClick",N)}if(b.lastClickTime=Ji(),vn(()=>{y.destroyed||(y.allowClick=!0)}),!b.isTouched||!b.isMoved||!y.swipeDirection||L.diff===0||b.currentTranslate===b.startTranslate){b.isTouched=!1,b.isMoved=!1,b.startMoving=!1;return}b.isTouched=!1,b.isMoved=!1,b.startMoving=!1;let V;if(k.followFinger?V=D?y.translate:-y.translate:V=-b.currentTranslate,k.cssMode)return;
13if(y.params.freeMode&&k.freeMode.enabled){y.freeMode.onTouchEnd({currentPos:V});return}let it=0,yt=y.slidesSizesGrid[0];for(let Tt=0;Tt<H.length;Tt+=Tt<k.slidesPerGroupSkip?1:k.slidesPerGroup){const Dt=Tt<k.slidesPerGroupSkip-1?1:k.slidesPerGroup;typeof H[Tt+Dt]<"u"?V>=H[Tt]&&V<H[Tt+Dt]&&(it=Tt,yt=H[Tt+Dt]-H[Tt]):V>=H[Tt]&&(it=Tt,yt=H[H.length-1]-H[H.length-2])}const vt=(V-H[it])/yt,Lt=it<k.slidesPerGroupSkip-1?1:k.slidesPerGroup;if(j>k.longSwipesMs){if(!k.longSwipes){y.slideTo(y.activeIndex);return}y.swipeDirection==="next"&&(vt>=k.longSwipesRatio?y.slideTo(it+Lt):y.slideTo(it)),y.swipeDirection==="prev"&&(vt>1-k.longSwipesRatio?y.slideTo(it+Lt):y.slideTo(it))}else{if(!k.shortSwipes){y.slideTo(y.activeIndex);return}y.navigation&&(N.target===y.navigation.nextEl||N.target===y.navigation.prevEl)?N.target===y.navigation.nextEl?y.slideTo(it+Lt):y.slideTo(it):(y.swipeDirection==="next"&&y.slideTo(it+Lt),y.swipeDirection==="prev"&&y.slideTo(it))}}function Pe(){const n=this,{params:y,el:b}=n;if(b&&b.offsetWidth===0)return;y.breakpoints&&n.setBreakpoint();const{allowSlideNext:k,allowSlidePrev:L,snapGrid:D}=n;n.allowSlideNext=!0,n.allowSlidePrev=!0,n.updateSize(),n.updateSlides(),n.updateSlidesClasses(),(y.slidesPerView==="auto"||y.slidesPerView>1)&&n.isEnd&&!n.isBeginning&&!n.params.centeredSlides?n.slideTo(n.slides.length-1,0,!1,!0):n.slideTo(n.activeIndex,0,!1,!0),n.autoplay&&n.autoplay.running&&n.autoplay.paused&&n.autoplay.run(),n.allowSlidePrev=L,n.allowSlideNext=k,n.params.watchOverflow&&D!==n.snapGrid&&n.checkOverflow()}function Ce(n){const y=this;y.enabled&&(y.allowClick||(y.params.preventClicks&&n.preventDefault(),y.params.preventClicksPropagation&&y.animating&&(n.stopPropagation(),n.stopImmediatePropagation())))}function si(){const n=this,{wrapperEl:y,rtlTranslate:b,enabled:k}=n;if(!k)return;n.previousTranslate=n.translate,n.isHorizontal()?n.translate=-y.scrollLeft:n.translate=-y.scrollTop,n.translate===-0&&(n.translate=0),n.updateActiveIndex(),n.updateSlidesClasses();let L;const D=n.maxTranslate()-n.minTranslate();D===0?L=0:L=(n.translate-n.minTranslate())/D,L!==n.progress&&n.updateProgress(b?-n.translate:n.translate),n.emit("setTranslate",n.translate,!1)}let ai=!1;function Ai(){}const li=(n,y)=>{const b=c(),{params:k,touchEvents:L,el:D,wrapperEl:H,device:Q,support:N}=n,Y=!!k.nested,j=y==="on"?"addEventListener":"removeEventListener",V=y;if(!N.touch)D[j](L.start,n.onTouchStart,!1),b[j](L.move,n.onTouchMove,Y),b[j](L.end,n.onTouchEnd,!1);else{const it=L.start==="touchstart"&&N.passiveListener&&k.passiveListeners?{passive:!0,capture:!1}:!1;D[j](L.start,n.onTouchStart,it),D[j](L.move,n.onTouchMove,N.passiveListener?{passive:!1,capture:Y}:Y),D[j](L.end,n.onTouchEnd,it),L.cancel&&D[j](L.cancel,n.onTouchEnd,it)}(k.preventClicks||k.preventClicksPropagation)&&D[j]("click",n.onClick,!0),k.cssMode&&H[j]("scroll",n.onScroll),k.updateOnWindowResize?n[V](Q.ios||Q.android?"resize orientationchange observerUpdate":"resize observerUpdate",Pe,!0):n[V]("observerUpdate",Pe,!0)};function ui(){const n=this,y=c(),{params:b,support:k}=n;n.onTouchStart=X.bind(n),n.onTouchMove=_t.bind(n),n.onTouchEnd=jt.bind(n),b.cssMode&&(n.onScroll=si.bind(n)),n.onClick=Ce.bind(n),k.touch&&!ai&&(y.addEventListener("touchstart",Ai),ai=!0),li(n,"on")}function Zi(){li(this,"off")}var kn={attachEvents:ui,detachEvents:Zi};const ur=(n,y)=>n.grid&&y.grid&&y.grid.rows>1;function Sr(){const n=this,{activeIndex:y,initialized:b,loopedSlides:k=0,params:L,$el:D}=n,H=L.breakpoints;if(!H||H&&Object.keys(H).length===0)return;const Q=n.getBreakpoint(H,n.params.breakpointsBase,n.el);if(!Q||n.currentBreakpoint===Q)return;const Y=(Q in H?H[Q]:void 0)||n.originalParams,j=ur(n,L),V=ur(n,Y),it=L.enabled;j&&!V?(D.removeClass(`${L.containerModifierClass}grid ${L.containerModifierClass}grid-column`),n.emitContainerClasses()):!j&&V&&(D.addClass(`${L.containerModifierClass}grid`),(Y.grid.fill&&Y.grid.fill==="column"||!Y.grid.fill&&L.grid.fill==="column")&&D.addClass(`${L.containerModifierClass}grid-column`),n.emitContainerClasses());const yt=Y.direction&&Y.direction!==L.direction,vt=L.loop&&(Y.slidesPerView!==L.slidesPerView||yt);yt&&b&&n.changeDirection(),qi(n.params,Y);const Lt=n.params.enabled;Object.assign(n,{allowTouchMove:n.params.allowTouchMove,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev}),it&&!Lt?n.disable():!it&&Lt&&n.enable(),n.currentBreakpoint=Q,n.emit("_beforeBreakpoint",Y),vt&&b&&(n.loopDestroy(),n.loopCreate(),n.updateSlides(),n.slideTo(y-k+n.loopedSlides,0,!1)),n.emit("breakpoint",Y)}function Rn(n,y="window",b){if(!n||y==="container"&&!b)return;let k=!1;const L=d(),D=y==="window"?L.innerHeight:b.clientHeight,H=Object.keys(n).map(Q=>{if(typeof Q=="string"&&Q.indexOf("@")===0){const N=parseFloat(Q.substr(1));return{value:D*N,point:Q}}return{value:Q,point:Q}});H.sort((Q,N)=>
13parseInt(Q.value,10)-parseInt(N.value,10));for(let Q=0;Q<H.length;Q+=1){const{point:N,value:Y}=H[Q];y==="window"?L.matchMedia(`(min-width: ${Y}px)`).matches&&(k=N):Y<=b.clientWidth&&(k=N)}return k||"max"}var rr={setBreakpoint:Sr,getBreakpoint:Rn};function bt(n,y){const b=[];return n.forEach(k=>{typeof k=="object"?Object.keys(k).forEach(L=>{k[L]&&b.push(y+L)}):typeof k=="string"&&b.push(y+k)}),b}function gt(){const n=this,{classNames:y,params:b,rtl:k,$el:L,device:D,support:H}=n,Q=bt(["initialized",b.direction,{"pointer-events":!H.touch},{"free-mode":n.params.freeMode&&b.freeMode.enabled},{autoheight:b.autoHeight},{rtl:k},{grid:b.grid&&b.grid.rows>1},{"grid-column":b.grid&&b.grid.rows>1&&b.grid.fill==="column"},{android:D.android},{ios:D.ios},{"css-mode":b.cssMode},{centered:b.cssMode&&b.centeredSlides}],b.containerModifierClass);y.push(...Q),L.addClass([...y].join(" ")),n.emitContainerClasses()}function Mt(){const n=this,{$el:y,classNames:b}=n;y.removeClass(b.join(" ")),n.emitContainerClasses()}var ee={addClasses:gt,removeClasses:Mt};function te(n,y,b,k,L,D){const H=d();let Q;function N(){D&&D()}!q(n).parent("picture")[0]&&(!n.complete||!L)&&y?(Q=new H.Image,Q.onload=N,Q.onerror=N,k&&(Q.sizes=k),b&&(Q.srcset=b),y&&(Q.src=y)):N()}function Fe(){const n=this;n.imagesToLoad=n.$el.find("img");function y(){typeof n>"u"||n===null||!n||n.destroyed||(n.imagesLoaded!==void 0&&(n.imagesLoaded+=1),n.imagesLoaded===n.imagesToLoad.length&&(n.params.updateOnImagesReady&&n.update(),n.emit("imagesReady")))}for(let b=0;b<n.imagesToLoad.length;b+=1){const k=n.imagesToLoad[b];n.loadImage(k,k.currentSrc||k.getAttribute("src"),k.srcset||k.getAttribute("srcset"),k.sizes||k.getAttribute("sizes"),!0,y)}}var ei={loadImage:te,preloadImages:Fe};function Me(){const n=this,{isLocked:y,params:b}=n,{slidesOffsetBefore:k}=b;if(k){const L=n.slides.length-1,D=n.slidesGrid[L]+n.slidesSizesGrid[L]+k*2;n.isLocked=n.size>D}else n.isLocked=n.snapGrid.length===1;b.allowSlideNext===!0&&(n.allowSlideNext=!n.isLocked),b.allowSlidePrev===!0&&(n.allowSlidePrev=!n.isLocked),y&&y!==n.isLocked&&(n.isEnd=!1),y!==n.isLocked&&n.emit(n.isLocked?"lock":"unlock")}var je={checkOverflow:Me},Ci={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function Re(n,y){return function(k={}){const L=Object.keys(k)[0],D=k[L];if(typeof D!="object"||D===null){qi(y,k);return}if(["navigation","pagination","scrollbar"].indexOf(L)>=0&&n[L]===!0&&(n[L]={auto:!0}),!(L in n&&"enabled"in D)){qi(y,k);return}n[L]===!0&&(n[L]={enabled:!0}),typeof n[L]=="object"&&!("enabled"in n[L])&&(n[L].enabled=!0),n[L]||(n[L]={enabled:!1}),qi(y,k)}}const zi={eventsEmitter:Cr,update:un,translate:Ln,transition:Le,slide:tn,loop:Hi,grabCursor:Qi,events:kn,breakpoints:rr,checkOverflow:je,classes:ee,images:ei},K={};class O{constructor(...y){let b,k;if(y.length===1&&y[0].constructor&&Object.prototype.toString.call(y[0]).slice(8,-1)==="Object"?k=y[0]:[b,k]=y,k||(k={}),k=qi({},k),b&&!k.el&&(k.el=b),k.el&&q(k.el).length>1){const Q=[];return q(k.el).each(N=>{const Y=qi({},k,{el:N});Q.push(new O(Y))}),Q}const L=this;L.__swiper__=!0,L.support=Qn(),L.device=Pr({userAgent:k.userAgent}),L.browser=En(),L.eventsListeners={},L.eventsAnyListeners=[],L.modules=[...L.__modules__],k.modules&&Array.isArray(k.modules)&&L.modules.push(...k.modules);const D={};
13L.modules.forEach(Q=>{Q({swiper:L,extendParams:Re(k,D),on:L.on.bind(L),once:L.once.bind(L),off:L.off.bind(L),emit:L.emit.bind(L)})});const H=qi({},Ci,D);return L.params=qi({},H,K,k),L.originalParams=qi({},L.params),L.passedParams=qi({},k),L.params&&L.params.on&&Object.keys(L.params.on).forEach(Q=>{L.on(Q,L.params.on[Q])}),L.params&&L.params.onAny&&L.onAny(L.params.onAny),L.$=q,Object.assign(L,{enabled:L.params.enabled,el:b,classNames:[],slides:q(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return L.params.direction==="horizontal"},isVertical(){return L.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:L.params.allowSlideNext,allowSlidePrev:L.params.allowSlidePrev,touchEvents:function(){const N=["touchstart","touchmove","touchend","touchcancel"],Y=["pointerdown","pointermove","pointerup"];return L.touchEventsTouch={start:N[0],move:N[1],end:N[2],cancel:N[3]},L.touchEventsDesktop={start:Y[0],move:Y[1],end:Y[2]},L.support.touch||!L.params.simulateTouch?L.touchEventsTouch:L.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:L.params.focusableElements,lastClickTime:Ji(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:L.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),L.emit("_swiper"),L.params.init&&L.init(),L}enable(){const y=this;y.enabled||(y.enabled=!0,y.params.grabCursor&&y.setGrabCursor(),y.emit("enable"))}disable(){const y=this;y.enabled&&(y.enabled=!1,y.params.grabCursor&&y.unsetGrabCursor(),y.emit("disable"))}setProgress(y,b){const k=this;y=Math.min(Math.max(y,0),1);const L=k.minTranslate(),H=(k.maxTranslate()-L)*y+L;k.translateTo(H,typeof b>"u"?0:b),k.updateActiveIndex(),k.updateSlidesClasses()}emitContainerClasses(){const y=this;if(!y.params._emitClasses||!y.el)return;const b=y.el.className.split(" ").filter(k=>k.indexOf("swiper")===0||k.indexOf(y.params.containerModifierClass)===0);y.emit("_containerClasses",b.join(" "))}getSlideClasses(y){const b=this;return y.className.split(" ").filter(k=>k.indexOf("swiper-slide")===0||k.indexOf(b.params.slideClass)===0).join(" ")}emitSlidesClasses(){const y=this;if(!y.params._emitClasses||!y.el)return;const b=[];y.slides.each(k=>{const L=y.getSlideClasses(k);b.push({slideEl:k,classNames:L}),y.emit("_slideClass",k,L)}),y.emit("_slideClasses",b)}slidesPerViewDynamic(y="current",b=!1){const k=this,{params:L,slides:D,slidesGrid:H,slidesSizesGrid:Q,size:N,activeIndex:Y}=k;let j=1;if(L.centeredSlides){let V=D[Y].swiperSlideSize,it;for(let yt=Y+1;yt<D.length;yt+=1)D[yt]&&!it&&(V+=D[yt].swiperSlideSize,j+=1,V>N&&(it=!0));for(let yt=Y-1;yt>=0;yt-=1)D[yt]&&!it&&(V+=D[yt].swiperSlideSize,j+=1,V>N&&(it=!0))}else if(y==="current")for(let V=Y+1;V<D.length;V+=1)(b?H[V]+Q[V]-H[Y]<N:H[V]-H[Y]<N)&&(j+=1);else for(let V=Y-1;V>=0;V-=1)H[Y]-H[V]<N&&(j+=1);return j}update(){const y=this;if(!y||y.destroyed)return;const{snapGrid:b,params:k}=y;k.breakpoints&&y.setBreakpoint(),y.updateSize(),y.updateSlides(),y.updateProgress(),y.updateSlidesClasses();function L(){const H=y.rtlTranslate?y.translate*-1:y.translate,Q=Math.min(Math.max(H,y.maxTranslate()),y.minTranslate());y.setTranslate(Q),y.updateActiveIndex(),y.updateSlidesClasses()}let D;y.params.freeMode&&y.params.freeMode.enabled?(L(),y.params.autoHeight&&y.updateAutoHeight()):((y.params.slidesPerView==="auto"||y.params.slidesPerView>1)&&y.isEnd&&!y.params.centeredSlides?D=y.slideTo(y.slides.length-1,0,!1,!0):D=y.slideTo(y.activeIndex,0,!1,!0),D||L()),k.watchOverflow&&b!==y.snapGrid&&y.checkOverflow(),y.emit("update")}changeDirection(y,b=!0){const k=this,L=k.params.direction;return y||(y=L==="horizontal"?"vertical":"horizontal"),y===L||y!=="horizontal"&&y!=="vertical"||(k.$el.removeClass(`${k.params.containerModifierClass}${L}`).addClass(`${k.params.containerModifierClass}${y}`),k.emitContainerClasses(),k.params.direction=y,k.slides.each(D=>{y==="vertical"?D.style.width="":D.style.height=""}),k.emit("changeDirection"),b&&k.update()),k}mount(y){const b=this;if(b.mounted)return!0;const k=q(y||b.params.el);if(y=k[0],!y)return!1;y.swiper=b;
13const L=()=>`.${(b.params.wrapperClass||"").trim().split(" ").join(".")}`;let H=(()=>{if(y&&y.shadowRoot&&y.shadowRoot.querySelector){const Q=q(y.shadowRoot.querySelector(L()));return Q.children=N=>k.children(N),Q}return k.children(L())})();if(H.length===0&&b.params.createElements){const N=c().createElement("div");H=q(N),N.className=b.params.wrapperClass,k.append(N),k.children(`.${b.params.slideClass}`).each(Y=>{H.append(Y)})}return Object.assign(b,{$el:k,el:y,$wrapperEl:H,wrapperEl:H[0],mounted:!0,rtl:y.dir.toLowerCase()==="rtl"||k.css("direction")==="rtl",rtlTranslate:b.params.direction==="horizontal"&&(y.dir.toLowerCase()==="rtl"||k.css("direction")==="rtl"),wrongRTL:H.css("display")==="-webkit-box"}),!0}init(y){const b=this;return b.initialized||b.mount(y)===!1||(b.emit("beforeInit"),b.params.breakpoints&&b.setBreakpoint(),b.addClasses(),b.params.loop&&b.loopCreate(),b.updateSize(),b.updateSlides(),b.params.watchOverflow&&b.checkOverflow(),b.params.grabCursor&&b.enabled&&b.setGrabCursor(),b.params.preloadImages&&b.preloadImages(),b.params.loop?b.slideTo(b.params.initialSlide+b.loopedSlides,0,b.params.runCallbacksOnInit,!1,!0):b.slideTo(b.params.initialSlide,0,b.params.runCallbacksOnInit,!1,!0),b.attachEvents(),b.initialized=!0,b.emit("init"),b.emit("afterInit")),b}destroy(y=!0,b=!0){const k=this,{params:L,$el:D,$wrapperEl:H,slides:Q}=k;return typeof k.params>"u"||k.destroyed||(k.emit("beforeDestroy"),k.initialized=!1,k.detachEvents(),L.loop&&k.loopDestroy(),b&&(k.removeClasses(),D.removeAttr("style"),H.removeAttr("style"),Q&&Q.length&&Q.removeClass([L.slideVisibleClass,L.slideActiveClass,L.slideNextClass,L.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),k.emit("destroy"),Object.keys(k.eventsListeners).forEach(N=>{k.off(N)}),y!==!1&&(k.$el[0].swiper=null,Lr(k)),k.destroyed=!0),null}static extendDefaults(y){qi(K,y)}static get extendedDefaults(){return K}static get defaults(){return Ci}static installModule(y){O.prototype.__modules__||(O.prototype.__modules__=[]);const b=O.prototype.__modules__;typeof y=="function"&&b.indexOf(y)<0&&b.push(y)}static use(y){return Array.isArray(y)?(y.forEach(b=>O.installModule(b)),O):(O.installModule(y),O)}}Object.keys(zi).forEach(n=>{Object.keys(zi[n]).forEach(y=>{O.prototype[y]=zi[n][y]})}),O.use([Ti,sn]);function W({swiper:n,extendParams:y,on:b}){y({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let k;n.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};function L(j,V){const it=n.params.virtual;if(it.cache&&n.virtual.cache[V])return n.virtual.cache[V];const yt=it.renderSlide?q(it.renderSlide.call(n,j,V)):q(`<div class="${n.params.slideClass}" data-swiper-slide-index="${V}">${j}</div>`);return yt.attr("data-swiper-slide-index")||yt.attr("data-swiper-slide-index",V),it.cache&&(n.virtual.cache[V]=yt),yt}function D(j){const{slidesPerView:V,slidesPerGroup:it,centeredSlides:yt}=n.params,{addSlidesBefore:vt,addSlidesAfter:Lt}=n.params.virtual,{from:Tt,to:Dt,slides:Xt,slidesGrid:Ht,offset:ie}=n.virtual;n.params.cssMode||n.updateActiveIndex();const we=n.activeIndex||0;let Ue;n.rtlTranslate?Ue="right":Ue=n.isHorizontal()?"left":"top";let Ne,ne;yt?(Ne=Math.floor(V/2)+it+Lt,ne=Math.floor(V/2)+it+vt):(Ne=V+(it-1)+Lt,ne=it+vt);const Kt=Math.max((we||0)-ne,0),ce=Math.min((we||0)+Ne,Xt.length-1),le=(n.slidesGrid[Kt]||0)-(n.slidesGrid[0]||0);Object.assign(n.virtual,{from:Kt,to:ce,offset:le,slidesGrid:n.slidesGrid});function Ae(){n.updateSlides(),n.updateProgress(),n.updateSlidesClasses(),n.lazy&&n.params.lazy.enabled&&n.lazy.load()}if(Tt===Kt&&Dt===ce&&!j){n.slidesGrid!==Ht&&le!==ie&&n.slides.css(Ue,`${le}px`),n.updateProgress();return}if(n.params.virtual.renderExternal){n.params.virtual.renderExternal.call(n,{offset:le,from:Kt,to:ce,slides:function(){const fe=[];for(let Si=Kt;Si<=ce;Si+=1)fe.push(Xt[Si]);return fe}()}),n.params.virtual.renderExternalUpdate&&Ae();return}const Ze=[],_i=[];if(j)n.$wrapperEl.find(`.${n.params.slideClass}`).remove();else for(let Ii=Tt;Ii<=Dt;Ii+=1)(Ii<Kt||Ii>ce)&&n.$wrapperEl.find(`.${n.params.slideClass}[data-swiper-slide-index="${Ii}"]`).remove();for(let Ii=0;Ii<Xt.length;Ii+=1)Ii>=Kt&&Ii<=ce&&(typeof Dt>"u"||j?_i.push(Ii):(Ii>Dt&&_i.push(Ii),Ii<Tt&&Ze.push(Ii)));
vendor: 4,256 bytes, line 13
13_i.forEach(Ii=>{n.$wrapperEl.append(L(Xt[Ii],Ii))}),Ze.sort((Ii,fe)=>fe-Ii).forEach(Ii=>{n.$wrapperEl.prepend(L(Xt[Ii],Ii))}),n.$wrapperEl.children(".swiper-slide").css(Ue,`${le}px`),Ae()}function H(j){if(typeof j=="object"&&"length"in j)for(let V=0;V<j.length;V+=1)j[V]&&n.virtual.slides.push(j[V]);else n.virtual.slides.push(j);D(!0)}function Q(j){const V=n.activeIndex;let it=V+1,yt=1;if(Array.isArray(j)){for(let vt=0;vt<j.length;vt+=1)j[vt]&&n.virtual.slides.unshift(j[vt]);it=V+j.length,yt=j.length}else n.virtual.slides.unshift(j);if(n.params.virtual.cache){const vt=n.virtual.cache,Lt={};Object.keys(vt).forEach(Tt=>{const Dt=vt[Tt],Xt=Dt.attr("data-swiper-slide-index");Xt&&Dt.attr("data-swiper-slide-index",parseInt(Xt,10)+yt),Lt[parseInt(Tt,10)+yt]=Dt}),n.virtual.cache=Lt}D(!0),n.slideTo(it,0)}function N(j){if(typeof j>"u"||j===null)return;let V=n.activeIndex;if(Array.isArray(j))for(let it=j.length-1;it>=0;it-=1)n.virtual.slides.splice(j[it],1),n.params.virtual.cache&&delete n.virtual.cache[j[it]],j[it]<V&&(V-=1),V=Math.max(V,0);else n.virtual.slides.splice(j,1),n.params.virtual.cache&&delete n.virtual.cache[j],j<V&&(V-=1),V=Math.max(V,0);D(!0),n.slideTo(V,0)}function Y(){n.virtual.slides=[],n.params.virtual.cache&&(n.virtual.cache={}),D(!0),n.slideTo(0,0)}b("beforeInit",()=>{n.params.virtual.enabled&&(n.virtual.slides=n.params.virtual.slides,n.classNames.push(`${n.params.containerModifierClass}virtual`),n.params.watchSlidesProgress=!0,n.originalParams.watchSlidesProgress=!0,n.params.initialSlide||D())}),b("setTranslate",()=>{n.params.virtual.enabled&&(n.params.cssMode&&!n._immediateVirtual?(clearTimeout(k),k=setTimeout(()=>{D()},100)):D())}),b("init update resize",()=>{n.params.virtual.enabled&&n.params.cssMode&&Nn(n.wrapperEl,"--swiper-virtual-size",`${n.virtualSize}px`)}),Object.assign(n.virtual,{appendSlide:H,prependSlide:Q,removeSlide:N,removeAllSlides:Y,update:D})}function lt({swiper:n,extendParams:y,on:b,emit:k}){const L=c(),D=d();n.keyboard={enabled:!1},y({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function H(Y){if(!n.enabled)return;const{rtlTranslate:j}=n;let V=Y;V.originalEvent&&(V=V.originalEvent);const it=V.keyCode||V.charCode,yt=n.params.keyboard.pageUpDown,vt=yt&&it===33,Lt=yt&&it===34,Tt=it===37,Dt=it===39,Xt=it===38,Ht=it===40;if(!n.allowSlideNext&&(n.isHorizontal()&&Dt||n.isVertical()&&Ht||Lt)||!n.allowSlidePrev&&(n.isHorizontal()&&Tt||n.isVertical()&&Xt||vt))return!1;if(!(V.shiftKey||V.altKey||V.ctrlKey||V.metaKey)&&!(L.activeElement&&L.activeElement.nodeName&&(L.activeElement.nodeName.toLowerCase()==="input"||L.activeElement.nodeName.toLowerCase()==="textarea"))){if(n.params.keyboard.onlyInViewport&&(vt||Lt||Tt||Dt||Xt||Ht)){let ie=!1;if(n.$el.parents(`.${n.params.slideClass}`).length>0&&n.$el.parents(`.${n.params.slideActiveClass}`).length===0)return;const we=n.$el,Ue=we[0].clientWidth,Ne=we[0].clientHeight,ne=D.innerWidth,Kt=D.innerHeight,ce=n.$el.offset();j&&(ce.left-=n.$el[0].scrollLeft);const le=[[ce.left,ce.top],[ce.left+Ue,ce.top],[ce.left,ce.top+Ne],[ce.left+Ue,ce.top+Ne]];for(let Ae=0;Ae<le.length;Ae+=1){const Ze=le[Ae];if(Ze[0]>=0&&Ze[0]<=ne&&Ze[1]>=0&&Ze[1]<=Kt){if(Ze[0]===0&&Ze[1]===0)continue;ie=!0}}if(!ie)return}n.isHorizontal()?((vt||Lt||Tt||Dt)&&(V.preventDefault?V.preventDefault():V.returnValue=!1),((Lt||Dt)&&!j||(vt||Tt)&&j)&&n.slideNext(),((vt||Tt)&&!j||(Lt||Dt)&&j)&&n.slidePrev()):((vt||Lt||Xt||Ht)&&(V.preventDefault?V.preventDefault():V.returnValue=!1),(Lt||Ht)&&n.slideNext(),(vt||Xt)&&n.slidePrev()),k("keyPress",it)}}function Q(){n.keyboard.enabled||(q(L).on("keydown",H),n.keyboard.enabled=!0)}function N(){n.keyboard.enabled&&(q(L).off("keydown",H),n.keyboard.enabled=!1)}b("init",()=>{n.params.keyboard.enabled&&Q()}),b("destroy",()=>{n.keyboard.enabled&&N()}),Object.assign(n.keyboard,{enable:Q,disable:N})}function pt({swiper:n,extendParams:y,on:b,emit:k}){const L=d();y({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}}),n.mousewheel={enabled:!1};let D,H=Ji(),Q;const N=[];function Y(Xt){let Ue=0,Ne=0,ne=0,Kt=0;return"detail"in Xt&&(Ne=Xt.detail),"wheelDelta"in Xt&&(Ne=-Xt.wheelDelta/120),"wheelDeltaY"in Xt&&(Ne=-Xt.wheelDeltaY/120
vendor: 4,225 bytes, line 13
13),"wheelDeltaX"in Xt&&(Ue=-Xt.wheelDeltaX/120),"axis"in Xt&&Xt.axis===Xt.HORIZONTAL_AXIS&&(Ue=Ne,Ne=0),ne=Ue*10,Kt=Ne*10,"deltaY"in Xt&&(Kt=Xt.deltaY),"deltaX"in Xt&&(ne=Xt.deltaX),Xt.shiftKey&&!ne&&(ne=Kt,Kt=0),(ne||Kt)&&Xt.deltaMode&&(Xt.deltaMode===1?(ne*=40,Kt*=40):(ne*=800,Kt*=800)),ne&&!Ue&&(Ue=ne<1?-1:1),Kt&&!Ne&&(Ne=Kt<1?-1:1),{spinX:Ue,spinY:Ne,pixelX:ne,pixelY:Kt}}function j(){n.enabled&&(n.mouseEntered=!0)}function V(){n.enabled&&(n.mouseEntered=!1)}function it(Xt){return n.params.mousewheel.thresholdDelta&&Xt.delta<n.params.mousewheel.thresholdDelta||n.params.mousewheel.thresholdTime&&Ji()-H<n.params.mousewheel.thresholdTime?!1:Xt.delta>=6&&Ji()-H<60?!0:(Xt.direction<0?(!n.isEnd||n.params.loop)&&!n.animating&&(n.slideNext(),k("scroll",Xt.raw)):(!n.isBeginning||n.params.loop)&&!n.animating&&(n.slidePrev(),k("scroll",Xt.raw)),H=new L.Date().getTime(),!1)}function yt(Xt){const Ht=n.params.mousewheel;if(Xt.direction<0){if(n.isEnd&&!n.params.loop&&Ht.releaseOnEdges)return!0}else if(n.isBeginning&&!n.params.loop&&Ht.releaseOnEdges)return!0;return!1}function vt(Xt){let Ht=Xt,ie=!0;if(!n.enabled)return;const we=n.params.mousewheel;n.params.cssMode&&Ht.preventDefault();let Ue=n.$el;if(n.params.mousewheel.eventsTarget!=="container"&&(Ue=q(n.params.mousewheel.eventsTarget)),!n.mouseEntered&&!Ue[0].contains(Ht.target)&&!we.releaseOnEdges)return!0;Ht.originalEvent&&(Ht=Ht.originalEvent);let Ne=0;const ne=n.rtlTranslate?-1:1,Kt=Y(Ht);if(we.forceToAxis)if(n.isHorizontal())if(Math.abs(Kt.pixelX)>Math.abs(Kt.pixelY))Ne=-Kt.pixelX*ne;else return!0;else if(Math.abs(Kt.pixelY)>Math.abs(Kt.pixelX))Ne=-Kt.pixelY;else return!0;else Ne=Math.abs(Kt.pixelX)>Math.abs(Kt.pixelY)?-Kt.pixelX*ne:-Kt.pixelY;if(Ne===0)return!0;we.invert&&(Ne=-Ne);let ce=n.getTranslate()+Ne*we.sensitivity;if(ce>=n.minTranslate()&&(ce=n.minTranslate()),ce<=n.maxTranslate()&&(ce=n.maxTranslate()),ie=n.params.loop?!0:!(ce===n.minTranslate()||ce===n.maxTranslate()),ie&&n.params.nested&&Ht.stopPropagation(),!n.params.freeMode||!n.params.freeMode.enabled){const le={time:Ji(),delta:Math.abs(Ne),direction:Math.sign(Ne),raw:Xt};N.length>=2&&N.shift();const Ae=N.length?N[N.length-1]:void 0;if(N.push(le),Ae?(le.direction!==Ae.direction||le.delta>Ae.delta||le.time>Ae.time+150)&&it(le):it(le),yt(le))return!0}else{const le={time:Ji(),delta:Math.abs(Ne),direction:Math.sign(Ne)},Ae=Q&&le.time<Q.time+500&&le.delta<=Q.delta&&le.direction===Q.direction;if(!Ae){Q=void 0,n.params.loop&&n.loopFix();let Ze=n.getTranslate()+Ne*we.sensitivity;const _i=n.isBeginning,Ii=n.isEnd;if(Ze>=n.minTranslate()&&(Ze=n.minTranslate()),Ze<=n.maxTranslate()&&(Ze=n.maxTranslate()),n.setTransition(0),n.setTranslate(Ze),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!_i&&n.isBeginning||!Ii&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeMode.sticky){clearTimeout(D),D=void 0,N.length>=15&&N.shift();const fe=N.length?N[N.length-1]:void 0,Si=N[0];if(N.push(le),fe&&(le.delta>fe.delta||le.direction!==fe.direction))N.splice(0);else if(N.length>=15&&le.time-Si.time<500&&Si.delta-le.delta>=1&&le.delta<=6){const Mi=Ne>0?.8:.2;Q=le,N.splice(0),D=vn(()=>{n.slideToClosest(n.params.speed,!0,void 0,Mi)},0)}D||(D=vn(()=>{Q=le,N.splice(0),n.slideToClosest(n.params.speed,!0,void 0,.5)},500))}if(Ae||k("scroll",Ht),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),Ze===n.minTranslate()||Ze===n.maxTranslate())return!0}}return Ht.preventDefault?Ht.preventDefault():Ht.returnValue=!1,!1}function Lt(Xt){let Ht=n.$el;n.params.mousewheel.eventsTarget!=="container"&&(Ht=q(n.params.mousewheel.eventsTarget)),Ht[Xt]("mouseenter",j),Ht[Xt]("mouseleave",V),Ht[Xt]("wheel",vt)}function Tt(){return n.params.cssMode?(n.wrapperEl.removeEventListener("wheel",vt),!0):n.mousewheel.enabled?!1:(Lt("on"),n.mousewheel.enabled=!0,!0)}function Dt(){return n.params.cssMode?(n.wrapperEl.addEventListener(event,vt),!0):n.mousewheel.enabled?(Lt("off"),n.mousewheel.enabled=!1,!0):!1}b("init",()=>{!n.params.mousewheel.enabled&&n.params.cssMode&&Dt(),n.params.mousewheel.enabled&&Tt()}),b("destroy",()=>{n.params.cssMode&&Tt(),n.mousewheel.enabled&&Dt()}),Object.assign(n.mousewheel,{enable:Tt,disable:Dt})}function wt(n,y,b,k){const L=c();
13return n.params.createElements&&Object.keys(k).forEach(D=>{if(!b[D]&&b.auto===!0){let H=n.$el.children(`.${k[D]}`)[0];H||(H=L.createElement("div"),H.className=k[D],n.$el.append(H)),b[D]=H,y[D]=H}}),b}function It({swiper:n,extendParams:y,on:b,emit:k}){y({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}}),n.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null};function L(V){let it;return V&&(it=q(V),n.params.uniqueNavElements&&typeof V=="string"&&it.length>1&&n.$el.find(V).length===1&&(it=n.$el.find(V))),it}function D(V,it){const yt=n.params.navigation;V&&V.length>0&&(V[it?"addClass":"removeClass"](yt.disabledClass),V[0]&&V[0].tagName==="BUTTON"&&(V[0].disabled=it),n.params.watchOverflow&&n.enabled&&V[n.isLocked?"addClass":"removeClass"](yt.lockClass))}function H(){if(n.params.loop)return;const{$nextEl:V,$prevEl:it}=n.navigation;D(it,n.isBeginning&&!n.params.rewind),D(V,n.isEnd&&!n.params.rewind)}function Q(V){V.preventDefault(),!(n.isBeginning&&!n.params.loop&&!n.params.rewind)&&n.slidePrev()}function N(V){V.preventDefault(),!(n.isEnd&&!n.params.loop&&!n.params.rewind)&&n.slideNext()}function Y(){const V=n.params.navigation;if(n.params.navigation=wt(n,n.originalParams.navigation,n.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(V.nextEl||V.prevEl))return;const it=L(V.nextEl),yt=L(V.prevEl);it&&it.length>0&&it.on("click",N),yt&&yt.length>0&&yt.on("click",Q),Object.assign(n.navigation,{$nextEl:it,nextEl:it&&it[0],$prevEl:yt,prevEl:yt&&yt[0]}),n.enabled||(it&&it.addClass(V.lockClass),yt&&yt.addClass(V.lockClass))}function j(){const{$nextEl:V,$prevEl:it}=n.navigation;V&&V.length&&(V.off("click",N),V.removeClass(n.params.navigation.disabledClass)),it&&it.length&&(it.off("click",Q),it.removeClass(n.params.navigation.disabledClass))}b("init",()=>{Y(),H()}),b("toEdge fromEdge lock unlock",()=>{H()}),b("destroy",()=>{j()}),b("enable disable",()=>{const{$nextEl:V,$prevEl:it}=n.navigation;V&&V[n.enabled?"removeClass":"addClass"](n.params.navigation.lockClass),it&&it[n.enabled?"removeClass":"addClass"](n.params.navigation.lockClass)}),b("click",(V,it)=>{const{$nextEl:yt,$prevEl:vt}=n.navigation,Lt=it.target;if(n.params.navigation.hideOnClick&&!q(Lt).is(vt)&&!q(Lt).is(yt)){if(n.pagination&&n.params.pagination&&n.params.pagination.clickable&&(n.pagination.el===Lt||n.pagination.el.contains(Lt)))return;let Tt;yt?Tt=yt.hasClass(n.params.navigation.hiddenClass):vt&&(Tt=vt.hasClass(n.params.navigation.hiddenClass)),k(Tt===!0?"navigationShow":"navigationHide"),yt&&yt.toggleClass(n.params.navigation.hiddenClass),vt&&vt.toggleClass(n.params.navigation.hiddenClass)}}),Object.assign(n.navigation,{update:H,init:Y,destroy:j})}function Nt(n=""){return`.${n.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function Ut({swiper:n,extendParams:y,on:b,emit:k}){const L="swiper-pagination";y({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:yt=>yt,formatFractionTotal:yt=>yt,bulletClass:`${L}-bullet`,bulletActiveClass:`${L}-bullet-active`,modifierClass:`${L}-`,currentClass:`${L}-current`,totalClass:`${L}-total`,hiddenClass:`${L}-hidden`,progressbarFillClass:`${L}-progressbar-fill`,progressbarOppositeClass:`${L}-progressbar-opposite`,clickableClass:`${L}-clickable`,lockClass:`${L}-lock`,horizontalClass:`${L}-horizontal`,verticalClass:`${L}-vertical`}}),n.pagination={el:null,$el:null,bullets:[]};let D,H=0;function Q(){return!n.params.pagination.el||!n.pagination.el||!n.pagination.$el||n.pagination.$el.length===0}function N(yt,vt){const{bulletActiveClass:Lt}=n.params.pagination;yt[vt]().addClass(`${Lt}-${vt}`)[vt]().addClass(`${Lt}-${vt}-${vt}`)}function Y(){const yt=n.rtl,vt=n.params.pagination;if(Q())return;const Lt=n.virtual&&n.params.virtual.enabled?n.virtual.slides.length:n.slides.length,Tt=n.pagination.$el;let Dt;
13const Xt=n.params.loop?Math.ceil((Lt-n.loopedSlides*2)/n.params.slidesPerGroup):n.snapGrid.length;if(n.params.loop?(Dt=Math.ceil((n.activeIndex-n.loopedSlides)/n.params.slidesPerGroup),Dt>Lt-1-n.loopedSlides*2&&(Dt-=Lt-n.loopedSlides*2),Dt>Xt-1&&(Dt-=Xt),Dt<0&&n.params.paginationType!=="bullets"&&(Dt=Xt+Dt)):typeof n.snapIndex<"u"?Dt=n.snapIndex:Dt=n.activeIndex||0,vt.type==="bullets"&&n.pagination.bullets&&n.pagination.bullets.length>0){const Ht=n.pagination.bullets;let ie,we,Ue;if(vt.dynamicBullets&&(D=Ht.eq(0)[n.isHorizontal()?"outerWidth":"outerHeight"](!0),Tt.css(n.isHorizontal()?"width":"height",`${D*(vt.dynamicMainBullets+4)}px`),vt.dynamicMainBullets>1&&n.previousIndex!==void 0&&(H+=Dt-(n.previousIndex-n.loopedSlides||0),H>vt.dynamicMainBullets-1?H=vt.dynamicMainBullets-1:H<0&&(H=0)),ie=Math.max(Dt-H,0),we=ie+(Math.min(Ht.length,vt.dynamicMainBullets)-1),Ue=(we+ie)/2),Ht.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map(Ne=>`${vt.bulletActiveClass}${Ne}`).join(" ")),Tt.length>1)Ht.each(Ne=>{const ne=q(Ne),Kt=ne.index();Kt===Dt&&ne.addClass(vt.bulletActiveClass),vt.dynamicBullets&&(Kt>=ie&&Kt<=we&&ne.addClass(`${vt.bulletActiveClass}-main`),Kt===ie&&N(ne,"prev"),Kt===we&&N(ne,"next"))});else{const Ne=Ht.eq(Dt),ne=Ne.index();if(Ne.addClass(vt.bulletActiveClass),vt.dynamicBullets){const Kt=Ht.eq(ie),ce=Ht.eq(we);for(let le=ie;le<=we;le+=1)Ht.eq(le).addClass(`${vt.bulletActiveClass}-main`);if(n.params.loop)if(ne>=Ht.length){for(let le=vt.dynamicMainBullets;le>=0;le-=1)Ht.eq(Ht.length-le).addClass(`${vt.bulletActiveClass}-main`);Ht.eq(Ht.length-vt.dynamicMainBullets-1).addClass(`${vt.bulletActiveClass}-prev`)}else N(Kt,"prev"),N(ce,"next");else N(Kt,"prev"),N(ce,"next")}}if(vt.dynamicBullets){const Ne=Math.min(Ht.length,vt.dynamicMainBullets+4),ne=(D*Ne-D)/2-Ue*D,Kt=yt?"right":"left";Ht.css(n.isHorizontal()?Kt:"top",`${ne}px`)}}if(vt.type==="fraction"&&(Tt.find(Nt(vt.currentClass)).text(vt.formatFractionCurrent(Dt+1)),Tt.find(Nt(vt.totalClass)).text(vt.formatFractionTotal(Xt))),vt.type==="progressbar"){let Ht;vt.progressbarOpposite?Ht=n.isHorizontal()?"vertical":"horizontal":Ht=n.isHorizontal()?"horizontal":"vertical";const ie=(Dt+1)/Xt;let we=1,Ue=1;Ht==="horizontal"?we=ie:Ue=ie,Tt.find(Nt(vt.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${we}) scaleY(${Ue})`).transition(n.params.speed)}vt.type==="custom"&&vt.renderCustom?(Tt.html(vt.renderCustom(n,Dt+1,Xt)),k("paginationRender",Tt[0])):k("paginationUpdate",Tt[0]),n.params.watchOverflow&&n.enabled&&Tt[n.isLocked?"addClass":"removeClass"](vt.lockClass)}function j(){const yt=n.params.pagination;if(Q())return;const vt=n.virtual&&n.params.virtual.enabled?n.virtual.slides.length:n.slides.length,Lt=n.pagination.$el;let Tt="";if(yt.type==="bullets"){let Dt=n.params.loop?Math.ceil((vt-n.loopedSlides*2)/n.params.slidesPerGroup):n.snapGrid.length;n.params.freeMode&&n.params.freeMode.enabled&&!n.params.loop&&Dt>vt&&(Dt=vt);for(let Xt=0;Xt<Dt;Xt+=1)yt.renderBullet?Tt+=yt.renderBullet.call(n,Xt,yt.bulletClass):Tt+=`<${yt.bulletElement} class="${yt.bulletClass}"></${yt.bulletElement}>`;Lt.html(Tt),n.pagination.bullets=Lt.find(Nt(yt.bulletClass))}yt.type==="fraction"&&(yt.renderFraction?Tt=yt.renderFraction.call(n,yt.currentClass,yt.totalClass):Tt=`<span class="${yt.currentClass}"></span> / <span class="${yt.totalClass}"></span>`,Lt.html(Tt)),yt.type==="progressbar"&&(yt.renderProgressbar?Tt=yt.renderProgressbar.call(n,yt.progressbarFillClass):Tt=`<span class="${yt.progressbarFillClass}"></span>`,Lt.html(Tt)),yt.type!=="custom"&&k("paginationRender",n.pagination.$el[0])}function V(){n.params.pagination=wt(n,n.originalParams.pagination,n.params.pagination,{el:"swiper-pagination"});const yt=n.params.pagination;if(!yt.el)return;let vt=q(yt.el);vt.length!==0&&(n.params.uniqueNavElements&&typeof yt.el=="string"&&vt.length>1&&(vt=n.$el.find(yt.el),vt.length>1&&(vt=vt.filter(Lt=>q(Lt).parents(".swiper")[0]===n.el))),yt.type==="bullets"&&yt.clickable&&vt.addClass(yt.clickableClass),vt.addClass(yt.modifierClass+yt.type),vt.addClass(yt.modifierClass+n.params.direction),yt.type==="bullets"&&yt.dynamicBullets&&(vt.addClass(`${yt.modifierClass}${yt.type}-dynamic`),H=0,yt.dynamicMainBullets<1&&(yt.dynamicMainBullets=1)),yt.type==="progressbar"&&yt.progressbarOpposite&&vt.addClass(yt.progressbarOppositeClass),yt.clickable&&vt.on("click",Nt(yt.bulletClass),function(Tt){Tt.preventDefault();let Dt=q(this).index()*n.params.slidesPerGroup;n.params.loop&&(Dt+=n.loopedSlides),n.slideTo(Dt)}),Object.assign(n.pagination,{$el:vt,el:vt[0]}),n.enabled||vt.addClass(yt.lockClass))}function it(){const yt=n.params.pagination;if(Q())return;const vt=n.pagination.$el;vt.removeClass(yt.hiddenClass),vt.removeClass(yt.modifierClass+yt.type),vt.removeClass(yt.modifierClass+n.params.direction),n.pagination.bullets&&n.pagination.bullets.removeClass&&n.pagination.bullets.removeClass(yt.bulletActiveClass),yt.clickable&&vt.off("click",Nt(yt.bulletClass))}b("init",()=>{V(),j(),Y()}),b("activeIndexChange",()=>{(n.params.loop||typeof n.snapIndex>"u")&&Y()}),b("snapIndexChange",()=>{n.params.loop||Y()}),b("slidesLengthChange",()=>{n.params.loop&&(j(),Y())}),b("snapGridLengthChange",()=>{n.params.loop||(j(),Y())}),b("destroy",()=>{it()}),b("enable disable",()=>{const{$el:yt}=n.pagination;yt&&yt[n.enabled?"removeClass":"addClass"](n.params.pagination.lockClass)}),b("lock unlock",()=>{Y()}),b("click",(yt,vt)=>{const Lt=vt.target,{$el:Tt}=n.pagination;if(n.params.pagination.el&&n.params.pagination.hideOnClick&&Tt.length>0&&!q(Lt).hasClass(n.params.pagination.bulletClass)){if(n.navigation&&(n.navigation.nextEl&&Lt===n.navigation.nextEl||n.navigation.prevEl&&Lt===n.navigation.prevEl))return;const Dt=Tt.hasClass(n.params.pagination.hiddenClass);k(Dt===!0?"paginationShow":"paginationHide"),Tt.toggleClass(n.params.pagination.hiddenClass)}}),Object.assign(n.pagination,{render:j,update:Y,init:V,destroy:it})}function zt({swiper:n,extendParams:y,on:b,emit:k}){const L=c();let D=!1,H=null,Q=null,N,Y,j,V;y({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}}),n.scrollbar={el:null,dragEl:null,$el:null,$dragEl:null};function it(){if(!n.params.scrollbar.el||!n.scrollbar.el)return;const{scrollbar:Kt,rtlTranslate:ce,progress:le}=n,{$dragEl:Ae,$el:Ze}=Kt,_i=n.params.scrollbar;let Ii=Y,fe=(j-Y)*le;ce?(fe=-fe,fe>0?(Ii=Y-fe,fe=0):-fe+Y>j&&(Ii=j+fe)):fe<0?(Ii=Y+fe,fe=0):fe+Y>j&&(Ii=j-fe),n.isHorizontal()?(Ae.transform(`translate3d(${fe}px, 0, 0)`),Ae[0].style.width=`${Ii}px`):(Ae.transform(`translate3d(0px, ${fe}px, 0)`),Ae[0].style.height=`${Ii}px`),_i.hide&&(clearTimeout(H),Ze[0].style.opacity=1,H=setTimeout(()=>{Ze[0].style.opacity=0,Ze.transition(400)},1e3))}function yt(Kt){!n.params.scrollbar.el||!n.scrollbar.el||n.scrollbar.$dragEl.transition(Kt)}
13function vt(){if(!n.params.scrollbar.el||!n.scrollbar.el)return;const{scrollbar:Kt}=n,{$dragEl:ce,$el:le}=Kt;ce[0].style.width="",ce[0].style.height="",j=n.isHorizontal()?le[0].offsetWidth:le[0].offsetHeight,V=n.size/(n.virtualSize+n.params.slidesOffsetBefore-(n.params.centeredSlides?n.snapGrid[0]:0)),n.params.scrollbar.dragSize==="auto"?Y=j*V:Y=parseInt(n.params.scrollbar.dragSize,10),n.isHorizontal()?ce[0].style.width=`${Y}px`:ce[0].style.height=`${Y}px`,V>=1?le[0].style.display="none":le[0].style.display="",n.params.scrollbar.hide&&(le[0].style.opacity=0),n.params.watchOverflow&&n.enabled&&Kt.$el[n.isLocked?"addClass":"removeClass"](n.params.scrollbar.lockClass)}function Lt(Kt){return n.isHorizontal()?Kt.type==="touchstart"||Kt.type==="touchmove"?Kt.targetTouches[0].clientX:Kt.clientX:Kt.type==="touchstart"||Kt.type==="touchmove"?Kt.targetTouches[0].clientY:Kt.clientY}function Tt(Kt){const{scrollbar:ce,rtlTranslate:le}=n,{$el:Ae}=ce;let Ze;Ze=(Lt(Kt)-Ae.offset()[n.isHorizontal()?"left":"top"]-(N!==null?N:Y/2))/(j-Y),Ze=Math.max(Math.min(Ze,1),0),le&&(Ze=1-Ze);const _i=n.minTranslate()+(n.maxTranslate()-n.minTranslate())*Ze;n.updateProgress(_i),n.setTranslate(_i),n.updateActiveIndex(),n.updateSlidesClasses()}function Dt(Kt){const ce=n.params.scrollbar,{scrollbar:le,$wrapperEl:Ae}=n,{$el:Ze,$dragEl:_i}=le;D=!0,N=Kt.target===_i[0]||Kt.target===_i?Lt(Kt)-Kt.target.getBoundingClientRect()[n.isHorizontal()?"left":"top"]:null,Kt.preventDefault(),Kt.stopPropagation(),Ae.transition(100),_i.transition(100),Tt(Kt),clearTimeout(Q),Ze.transition(0),ce.hide&&Ze.css("opacity",1),n.params.cssMode&&n.$wrapperEl.css("scroll-snap-type","none"),k("scrollbarDragStart",Kt)}function Xt(Kt){const{scrollbar:ce,$wrapperEl:le}=n,{$el:Ae,$dragEl:Ze}=ce;D&&(Kt.preventDefault?Kt.preventDefault():Kt.returnValue=!1,Tt(Kt),le.transition(0),Ae.transition(0),Ze.transition(0),k("scrollbarDragMove",Kt))}function Ht(Kt){const ce=n.params.scrollbar,{scrollbar:le,$wrapperEl:Ae}=n,{$el:Ze}=le;D&&(D=!1,n.params.cssMode&&(n.$wrapperEl.css("scroll-snap-type",""),Ae.transition("")),ce.hide&&(clearTimeout(Q),Q=vn(()=>{Ze.css("opacity",0),Ze.transition(400)},1e3)),k("scrollbarDragEnd",Kt),ce.snapOnRelease&&n.slideToClosest())}function ie(Kt){const{scrollbar:ce,touchEventsTouch:le,touchEventsDesktop:Ae,params:Ze,support:_i}=n,fe=ce.$el[0],Si=_i.passiveListener&&Ze.passiveListeners?{passive:!1,capture:!1}:!1,Mi=_i.passiveListener&&Ze.passiveListeners?{passive:!0,capture:!1}:!1;if(!fe)return;const bi=Kt==="on"?"addEventListener":"removeEventListener";_i.touch?(fe[bi](le.start,Dt,Si),fe[bi](le.move,Xt,Si),fe[bi](le.end,Ht,Mi)):(fe[bi](Ae.start,Dt,Si),L[bi](Ae.move,Xt,Si),L[bi](Ae.end,Ht,Mi))}function we(){n.params.scrollbar.el&&ie("on")}function Ue(){n.params.scrollbar.el&&ie("off")}function Ne(){const{scrollbar:Kt,$el:ce}=n;n.params.scrollbar=wt(n,n.originalParams.scrollbar,n.params.scrollbar,{el:"swiper-scrollbar"});const le=n.params.scrollbar;if(!le.el)return;let Ae=q(le.el);n.params.uniqueNavElements&&typeof le.el=="string"&&Ae.length>1&&ce.find(le.el).length===1&&(Ae=ce.find(le.el));let Ze=Ae.find(`.${n.params.scrollbar.dragClass}`);Ze.length===0&&(Ze=q(`<div class="${n.params.scrollbar.dragClass}"></div>`),Ae.append(Ze)),Object.assign(Kt,{$el:Ae,el:Ae[0],$dragEl:Ze,dragEl:Ze[0]}),le.draggable&&we(),Ae&&Ae[n.enabled?"removeClass":"addClass"](n.params.scrollbar.lockClass)}function ne(){Ue()}b("init",()=>{Ne(),vt(),it()}),b("update resize observerUpdate lock unlock",()=>{vt()}),b("setTranslate",()=>{it()}),b("setTransition",(Kt,ce)=>{yt(ce)}),b("enable disable",()=>{const{$el:Kt}=n.scrollbar;Kt&&Kt[n.enabled?"removeClass":"addClass"](n.params.scrollbar.lockClass)}),b("destroy",()=>{ne()}),Object.assign(n.scrollbar,{updateSize:vt,setTranslate:it,init:Ne,destroy:ne})}function Jt({swiper:n,extendParams:y,on:b}){y({parallax:{enabled:!1}});const k=(H,Q)=>{const{rtl:N}=n,Y=q(H),j=N?-1:1,V=Y.attr("data-swiper-parallax")||"0";let it=Y.attr("data-swiper-parallax-x"),yt=Y.attr("data-swiper-parallax-y");const vt=Y.attr("data-swiper-parallax-scale"),Lt=Y.attr("data-swiper-parallax-opacity");if(it||yt?(it=it||"0",yt=yt||"0"):n.isHorizontal()?(it=V,yt="0"):(yt=V,it="0"),it.indexOf("%")>=0?it=`${parseInt(it,10)*Q*j}%`:it=`${it*Q*j}px`,yt.indexOf("%")>=0?yt=`${parseInt(yt,10)*Q}%`:yt=`${yt*Q}px`,typeof Lt<"u"&&Lt!==null){const Tt=Lt-(Lt-1)*(1-Math.abs(Q));Y[0].style.opacity=Tt}if(typeof vt>"u"||vt===null)Y.transform(`translate3d(${it}, ${yt}, 0px)`);else{const Tt=vt-(vt-1)*(1-Math.abs(Q));Y.transform(`translate3d(${it}, ${yt}, 0px) scale(${Tt})`)}},L=()=>{const{$el:H,slides:Q,progress:N,snapGrid:Y}=n;H.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(j=>{k(j,N)}),Q.each((j,V)=>{let it=j.progress;n.params.slidesPerGroup>1&&n.params.slidesPerView!=="auto"&&(it+=Math.ceil(V/2)-N*(Y.length-1)),it=Math.min(Math.max(it,-1),1),q(j).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(yt=>{k(yt,it)})})},D=(H=n.params.speed)=>{const{$el:Q}=n;Q.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(N=>{const Y=q(N);let j=parseInt(Y.attr("data-swiper-parallax-duration"),10)||H;H===0&&(j=0),Y.transition(j)})};b("beforeInit",()=>{n.params.parallax.enabled&&(n.params.watchSlidesProgress=!0,n.originalParams.watchSlidesProgress=!0)}),b("init",()=>{n.params.parallax.enabled&&L()}),b("setTranslate",()=>{n.params.parallax.enabled&&L()}),b("setTransition",(H,Q)=>{n.params.parallax.enabled&&D(Q)})}function ae({swiper:n,extendParams:y,on:b,emit:k}){const L=d();y({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),n.zoom={enabled:!1};let D=1,H=!1,Q,N,Y;
13const j={$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},V={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},it={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let yt=1;Object.defineProperty(n.zoom,"scale",{get(){return yt},set(fe){if(yt!==fe){const Si=j.$imageEl?j.$imageEl[0]:void 0,Mi=j.$slideEl?j.$slideEl[0]:void 0;k("zoomChange",fe,Si,Mi)}yt=fe}});function vt(fe){if(fe.targetTouches.length<2)return 1;const Si=fe.targetTouches[0].pageX,Mi=fe.targetTouches[0].pageY,bi=fe.targetTouches[1].pageX,mn=fe.targetTouches[1].pageY;return Math.sqrt((bi-Si)**2+(mn-Mi)**2)}function Lt(fe){const Si=n.support,Mi=n.params.zoom;if(N=!1,Y=!1,!Si.gestures){if(fe.type!=="touchstart"||fe.type==="touchstart"&&fe.targetTouches.length<2)return;N=!0,j.scaleStart=vt(fe)}if((!j.$slideEl||!j.$slideEl.length)&&(j.$slideEl=q(fe.target).closest(`.${n.params.slideClass}`),j.$slideEl.length===0&&(j.$slideEl=n.slides.eq(n.activeIndex)),j.$imageEl=j.$slideEl.find(`.${Mi.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),j.$imageWrapEl=j.$imageEl.parent(`.${Mi.containerClass}`),j.maxRatio=j.$imageWrapEl.attr("data-swiper-zoom")||Mi.maxRatio,j.$imageWrapEl.length===0)){j.$imageEl=void 0;return}j.$imageEl&&j.$imageEl.transition(0),H=!0}function Tt(fe){const Si=n.support,Mi=n.params.zoom,bi=n.zoom;if(!Si.gestures){if(fe.type!=="touchmove"||fe.type==="touchmove"&&fe.targetTouches.length<2)return;Y=!0,j.scaleMove=vt(fe)}if(!j.$imageEl||j.$imageEl.length===0){fe.type==="gesturechange"&&Lt(fe);return}Si.gestures?bi.scale=fe.scale*D:bi.scale=j.scaleMove/j.scaleStart*D,bi.scale>j.maxRatio&&(bi.scale=j.maxRatio-1+(bi.scale-j.maxRatio+1)**.5),bi.scale<Mi.minRatio&&(bi.scale=Mi.minRatio+1-(Mi.minRatio-bi.scale+1)**.5),j.$imageEl.transform(`translate3d(0,0,0) scale(${bi.scale})`)}function Dt(fe){const Si=n.device,Mi=n.support,bi=n.params.zoom,mn=n.zoom;if(!Mi.gestures){if(!N||!Y||fe.type!=="touchend"||fe.type==="touchend"&&fe.changedTouches.length<2&&!Si.android)return;N=!1,Y=!1}!j.$imageEl||j.$imageEl.length===0||(mn.scale=Math.max(Math.min(mn.scale,j.maxRatio),bi.minRatio),j.$imageEl.transition(n.params.speed).transform(`translate3d(0,0,0) scale(${mn.scale})`),D=mn.scale,H=!1,mn.scale===1&&(j.$slideEl=void 0))}function Xt(fe){const Si=n.device;!j.$imageEl||j.$imageEl.length===0||V.isTouched||(Si.android&&fe.cancelable&&fe.preventDefault(),V.isTouched=!0,V.touchesStart.x=fe.type==="touchstart"?fe.targetTouches[0].pageX:fe.pageX,V.touchesStart.y=fe.type==="touchstart"?fe.targetTouches[0].pageY:fe.pageY)}function Ht(fe){const Si=n.zoom;if(!j.$imageEl||j.$imageEl.length===0||(n.allowClick=!1,!V.isTouched||!j.$slideEl))return;V.isMoved||(V.width=j.$imageEl[0].offsetWidth,V.height=j.$imageEl[0].offsetHeight,V.startX=wr(j.$imageWrapEl[0],"x")||0,V.startY=wr(j.$imageWrapEl[0],"y")||0,j.slideWidth=j.$slideEl[0].offsetWidth,j.slideHeight=j.$slideEl[0].offsetHeight,j.$imageWrapEl.transition(0));const Mi=V.width*Si.scale,bi=V.height*Si.scale;if(!(Mi<j.slideWidth&&bi<j.slideHeight)){if(V.minX=Math.min(j.slideWidth/2-Mi/2,0),V.maxX=-V.minX,V.minY=Math.min(j.slideHeight/2-bi/2,0),V.maxY=-V.minY,V.touchesCurrent.x=fe.type==="touchmove"?fe.targetTouches[0].pageX:fe.pageX,V.touchesCurrent.y=fe.type==="touchmove"?fe.targetTouches[0].pageY:fe.pageY,!V.isMoved&&!H){if(n.isHorizontal()&&(Math.floor(V.minX)===Math.floor(V.startX)&&V.touchesCurrent.x<V.touchesStart.x||Math.floor(V.maxX)===Math.floor(V.startX)&&V.touchesCurrent.x>V.touchesStart.x)){V.isTouched=!1;return}if(!n.isHorizontal()&&(Math.floor(V.minY)===Math.floor(V.startY)&&V.touchesCurrent.y<V.touchesStart.y||Math.floor(V.maxY)===Math.floor(V.startY)&&V.touchesCurrent.y>V.touchesStart.y)){V.isTouched=!1;return}}fe.cancelable&&fe.preventDefault(),fe.stopPropagation(),V.isMoved=!0,V.currentX=V.touchesCurrent.x-V.touchesStart.x+V.startX,V.currentY=V.touchesCurrent.y-V.touchesStart.y+V.startY,V.currentX<V.minX&&(V.currentX=V.minX+1-(V.minX-V.currentX+1)**.8),V.currentX>V.maxX&&(V.currentX=V.maxX-1+(V.currentX-V.maxX+1)**.8),V.currentY<V.minY&&(V.currentY=V.minY+1-(V.minY-V.currentY+1)**.8),V.currentY>V.maxY&&(V.currentY=V.maxY-1+(V.currentY-V.maxY+1)**.8),it.prevPositionX||(it.prevPositionX=V.touchesCurrent.x),it.prevPositionY||(it.prevPositionY=V.touchesCurrent.y),it.prevTime||(it.prevTime=Date.now()),it.x=(V.touchesCurrent.x-it.prevPositionX)/(Date.now()-it.prevTime)/2,it.y=(V.touchesCurrent.y-it.prevPositionY)/(Date.now()-it.prevTime)/2,Math.abs(V.touchesCurrent.x-it.prevPositionX)<2&&(it.x=0),Math.abs(V.touchesCurrent.y-it.prevPositionY)<2&&(it.y=0),it.prevPositionX=V.touchesCurrent.x,it.prevPositionY=V.touchesCurrent.y,it.prevTime=Date.now(),j.$imageWrapEl.transform(`translate3d(${V.currentX}px, ${V.currentY}px,0)`)}}function ie(){const fe=n.zoom;if(!j.$imageEl||j.$imageEl.length===0)return;if(!V.isTouched||!V.isMoved){V.isTouched=!1,V.isMoved=!1;return}V.isTouched=!1,V.isMoved=!1;let Si=300,Mi=300;const bi=it.x*Si,mn=V.currentX+bi,mr=it.y*Mi,Rr=V.currentY+mr;it.x!==0&&(Si=Math.abs((mn-V.currentX)/it.x)),it.y!==0&&(Mi=Math.abs((Rr-V.currentY)/it.y));const lo=Math.max(Si,Mi);V.currentX=mn,V.currentY=Rr;const Kr=V.width*fe.scale,jr=V.height*fe.scale;V.minX=Math.min(j.slideWidth/2-Kr/2,0),V.maxX=-V.minX,V.minY=Math.min(j.slideHeight/2-jr/2,0),V.maxY=-V.minY,V.currentX=Math.max(Math.min(V.currentX,V.maxX),V.minX),V.currentY=Math.max(Math.min(V.currentY,V.maxY),V.minY),j.$imageWrapEl.transition(lo).transform(`translate3d(${V.currentX}px, ${V.currentY}px,0)`)}function we(){const fe=n.zoom;j.$slideEl&&n.previousIndex!==n.activeIndex&&(j.$imageEl&&j.$imageEl.transform("translate3d(0,
130,0) scale(1)"),j.$imageWrapEl&&j.$imageWrapEl.transform("translate3d(0,0,0)"),fe.scale=1,D=1,j.$slideEl=void 0,j.$imageEl=void 0,j.$imageWrapEl=void 0)}function Ue(fe){const Si=n.zoom,Mi=n.params.zoom;if(j.$slideEl||(fe&&fe.target&&(j.$slideEl=q(fe.target).closest(`.${n.params.slideClass}`)),j.$slideEl||(n.params.virtual&&n.params.virtual.enabled&&n.virtual?j.$slideEl=n.$wrapperEl.children(`.${n.params.slideActiveClass}`):j.$slideEl=n.slides.eq(n.activeIndex)),j.$imageEl=j.$slideEl.find(`.${Mi.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),j.$imageWrapEl=j.$imageEl.parent(`.${Mi.containerClass}`)),!j.$imageEl||j.$imageEl.length===0||!j.$imageWrapEl||j.$imageWrapEl.length===0)return;n.params.cssMode&&(n.wrapperEl.style.overflow="hidden",n.wrapperEl.style.touchAction="none"),j.$slideEl.addClass(`${Mi.zoomedSlideClass}`);let bi,mn,mr,Rr,lo,Kr,jr,xr,no,Vr,co,dr,br,Gr,ro,Jr,to,oo;typeof V.touchesStart.x>"u"&&fe?(bi=fe.type==="touchend"?fe.changedTouches[0].pageX:fe.pageX,mn=fe.type==="touchend"?fe.changedTouches[0].pageY:fe.pageY):(bi=V.touchesStart.x,mn=V.touchesStart.y),Si.scale=j.$imageWrapEl.attr("data-swiper-zoom")||Mi.maxRatio,D=j.$imageWrapEl.attr("data-swiper-zoom")||Mi.maxRatio,fe?(to=j.$slideEl[0].offsetWidth,oo=j.$slideEl[0].offsetHeight,mr=j.$slideEl.offset().left+L.scrollX,Rr=j.$slideEl.offset().top+L.scrollY,lo=mr+to/2-bi,Kr=Rr+oo/2-mn,no=j.$imageEl[0].offsetWidth,Vr=j.$imageEl[0].offsetHeight,co=no*Si.scale,dr=Vr*Si.scale,br=Math.min(to/2-co/2,0),Gr=Math.min(oo/2-dr/2,0),ro=-br,Jr=-Gr,jr=lo*Si.scale,xr=Kr*Si.scale,jr<br&&(jr=br),jr>ro&&(jr=ro),xr<Gr&&(xr=Gr),xr>Jr&&(xr=Jr)):(jr=0,xr=0),j.$imageWrapEl.transition(300).transform(`translate3d(${jr}px, ${xr}px,0)`),j.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${Si.scale})`)}function Ne(){const fe=n.zoom,Si=n.params.zoom;j.$slideEl||(n.params.virtual&&n.params.virtual.enabled&&n.virtual?j.$slideEl=n.$wrapperEl.children(`.${n.params.slideActiveClass}`):j.$slideEl=n.slides.eq(n.activeIndex),j.$imageEl=j.$slideEl.find(`.${Si.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),j.$imageWrapEl=j.$imageEl.parent(`.${Si.containerClass}`)),!(!j.$imageEl||j.$imageEl.length===0||!j.$imageWrapEl||j.$imageWrapEl.length===0)&&(n.params.cssMode&&(n.wrapperEl.style.overflow="",n.wrapperEl.style.touchAction=""),fe.scale=1,D=1,j.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),j.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),j.$slideEl.removeClass(`${Si.zoomedSlideClass}`),j.$slideEl=void 0)}function ne(fe){const Si=n.zoom;Si.scale&&Si.scale!==1?Ne():Ue(fe)}function Kt(){const fe=n.support,Si=n.touchEvents.start==="touchstart"&&fe.passiveListener&&n.params.passiveListeners?{passive:!0,capture:!1}:!1,Mi=fe.passiveListener?{passive:!1,capture:!0}:!0;return{passiveListener:Si,activeListenerWithCapture:Mi}}function ce(){return`.${n.params.slideClass}`}function le(fe){const{passiveListener:Si}=Kt(),Mi=ce();n.$wrapperEl[fe]("gesturestart",Mi,Lt,Si),n.$wrapperEl[fe]("gesturechange",Mi,Tt,Si),n.$wrapperEl[fe]("gestureend",Mi,Dt,Si)}function Ae(){Q||(Q=!0,le("on"))}function Ze(){Q&&(Q=!1,le("off"))}function _i(){const fe=n.zoom;if(fe.enabled)return;fe.enabled=!0;const Si=n.support,{passiveListener:Mi,activeListenerWithCapture:bi}=Kt(),mn=ce();Si.gestures?(n.$wrapperEl.on(n.touchEvents.start,Ae,Mi),n.$wrapperEl.on(n.touchEvents.end,Ze,Mi)):n.touchEvents.start==="touchstart"&&(n.$wrapperEl.on(n.touchEvents.start,mn,Lt,Mi),n.$wrapperEl.on(n.touchEvents.move,mn,Tt,bi),n.$wrapperEl.on(n.touchEvents.end,mn,Dt,Mi),n.touchEvents.cancel&&n.$wrapperEl.on(n.touchEvents.cancel,mn,Dt,Mi)),n.$wrapperEl.on(n.touchEvents.move,`.${n.params.zoom.containerClass}`,Ht,bi)}function Ii(){const fe=n.zoom;if(!fe.enabled)return;const Si=n.support;fe.enabled=!1;const{passiveListener:Mi,activeListenerWithCapture:bi}=Kt(),mn=ce();Si.gestures?(n.$wrapperEl.off(n.touchEvents.start,Ae,Mi),n.$wrapperEl.off(n.touchEvents.end,Ze,Mi)):n.touchEvents.start==="touchstart"&&(n.$wrapperEl.off(n.touchEvents.start,mn,Lt,Mi),n.$wrapperEl.off(n.touchEvents.move,mn,Tt,bi),n.$wrapperEl.off(n.touchEvents.end,mn,Dt,Mi),n.touchEvents.cancel&&n.$wrapperEl.off(n.touchEvents.cancel,mn,Dt,Mi)),n.$wrapperEl.off(n.touchEvents.move,`.${n.params.zoom.containerClass}`,Ht,bi)}b("init",()=>{n.params.zoom.enabled&&_i()}),b("destroy",()=>{Ii()}),b("touchStart",(fe,Si)=>{n.zoom.enabled&&Xt(Si)}),b("touchEnd",(fe,Si)=>{n.zoom.enabled&&ie()}),b("doubleTap",(fe,Si)=>{!n.animating&&n.params.zoom.enabled&&n.zoom.enabled&&n.params.zoom.toggle&&ne(Si)}),b("transitionEnd",()=>{n.zoom.enabled&&n.params.zoom.enabled&&we()}),b("slideChange",()=>{n.zoom.enabled&&n.params.zoom.enabled&&n.params.cssMode&&we()}),Object.assign(n.zoom,{enable:_i,disable:Ii,in:Ue,out:Ne,toggle:ne})}function Oe({swiper:n,extendParams:y,on:b,emit:k}){y({lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}}),n.lazy={};let L=!1,D=!1;function H(Y,j=!0){const V=n.params.lazy;if(typeof Y>"u"||n.slides.length===0)return;const yt=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children(`.${n.params.slideClass}[data-swiper-slide-index="${Y}"]`):n.slides.eq(Y),vt=yt.find(`.${V.elementClass}:not(.${V.loadedClass}):not(.${V.loadingClass})`);yt.hasClass(V.elementClass)&&!yt.hasClass(V.loadedClass)&&!yt.hasClass(V.loadingClass)&&vt.push(yt[0]),vt.length!==0&&vt.each(Lt=>{const Tt=q(Lt);Tt.addClass(V.loadingClass);const Dt=Tt.attr("data-background"),Xt=Tt.attr("data-src"),Ht=Tt.attr("data-srcset"),ie=Tt.attr("data-sizes"),we=Tt.parent("picture");n.loadImage(Tt[0],Xt||Dt,Ht,ie,!1,()=>{if(!(typeof n>"u"||n===null||!n||n&&!n.params||n.destroyed)){if(Dt?(Tt.css("background-image",`url("${Dt}")`),Tt.removeAttr("data-background")):(Ht&&(Tt.attr("srcset",Ht),Tt.removeAttr("data-srcset")),ie&&(Tt.attr("sizes",ie),Tt.removeAttr("data-sizes")),we.length&&we.children("source").each(Ue=>{const Ne=q(Ue);Ne.attr("data-srcset")&&(Ne.attr("srcset",Ne.attr("data-srcset")),Ne.removeAttr("data-srcset"))}),Xt&&(Tt.attr("src",Xt),Tt.removeAttr("data-src"))),Tt.addClass(V.loadedClass).removeClass(V.loadingClass),yt.find(`.${V.preloaderClass}`).remove(),n.params.loop&&j){const Ue=yt.attr("data-swiper-slide-index");if(yt.hasClass(n.params.slideDuplicateClass)){const Ne=n.$wrapperEl.children(`[data-swiper-slide-index="${Ue}"]:not(.${n.params.slideDuplicateClass})`);H(Ne.index(),!1)}else{const Ne=n.$wrapperEl.children(`.${n.params.slideDuplicateClass}[data-swiper-slide-index="${Ue}"]`);H(Ne.index(),!1)}}k("lazyImageReady",yt[0],Tt[0]),n.params.autoHeight&&n.updateAutoHeight()}}),k("lazyImageLoad",yt[0],Tt[0])})}function Q(){const{$wrapperEl:Y,params:j,slides:V,activeIndex:it}=n,yt=n.virtual&&j.virtual.enabled,vt=j.lazy;let Lt=j.slidesPerView;Lt==="auto"&&(Lt=0);function Tt(Xt){if(yt){if(Y.children(`.${j.slideClass}[data-swiper-slide-index="${Xt}"]`).length)return!0}else if(V[Xt])return!0;return!1}function Dt(Xt){return yt?q(Xt).attr("data-swiper-slide-index"):q(Xt).index()}if(D||(D=!0),n.params.watchSlidesProgress)Y.children(`.${j.slideVisibleClass}`).each(Xt=>{const Ht=yt?q(Xt).attr("data-swiper-slide-index"):q(Xt).index();H(Ht)});else if(Lt>1)for(let Xt=it;Xt<it+Lt;Xt+=1)Tt(Xt)&&H(Xt);else H(it);if(vt.loadPrevNext)if(Lt>1||vt.loadPrevNextAmount&&vt.loadPrevNextAmount>1){const Xt=vt.loadPrevNextAmount,Ht=Lt,ie=Math.min(it+Ht+Math.max(Xt,Ht),V.length),we=Math.max(it-Math.max(Ht,Xt),
130);for(let Ue=it+Lt;Ue<ie;Ue+=1)Tt(Ue)&&H(Ue);for(let Ue=we;Ue<it;Ue+=1)Tt(Ue)&&H(Ue)}else{const Xt=Y.children(`.${j.slideNextClass}`);Xt.length>0&&H(Dt(Xt));const Ht=Y.children(`.${j.slidePrevClass}`);Ht.length>0&&H(Dt(Ht))}}function N(){const Y=d();if(!n||n.destroyed)return;const j=n.params.lazy.scrollingElement?q(n.params.lazy.scrollingElement):q(Y),V=j[0]===Y,it=V?Y.innerWidth:j[0].offsetWidth,yt=V?Y.innerHeight:j[0].offsetHeight,vt=n.$el.offset(),{rtlTranslate:Lt}=n;let Tt=!1;Lt&&(vt.left-=n.$el[0].scrollLeft);const Dt=[[vt.left,vt.top],[vt.left+n.width,vt.top],[vt.left,vt.top+n.height],[vt.left+n.width,vt.top+n.height]];for(let Ht=0;Ht<Dt.length;Ht+=1){const ie=Dt[Ht];if(ie[0]>=0&&ie[0]<=it&&ie[1]>=0&&ie[1]<=yt){if(ie[0]===0&&ie[1]===0)continue;Tt=!0}}const Xt=n.touchEvents.start==="touchstart"&&n.support.passiveListener&&n.params.passiveListeners?{passive:!0,capture:!1}:!1;Tt?(Q(),j.off("scroll",N,Xt)):L||(L=!0,j.on("scroll",N,Xt))}b("beforeInit",()=>{n.params.lazy.enabled&&n.params.preloadImages&&(n.params.preloadImages=!1)}),b("init",()=>{n.params.lazy.enabled&&(n.params.lazy.checkInView?N():Q())}),b("scroll",()=>{n.params.freeMode&&n.params.freeMode.enabled&&!n.params.freeMode.sticky&&Q()}),b("scrollbarDragMove resize _freeModeNoMomentumRelease",()=>{n.params.lazy.enabled&&(n.params.lazy.checkInView?N():Q())}),b("transitionStart",()=>{n.params.lazy.enabled&&(n.params.lazy.loadOnTransitionStart||!n.params.lazy.loadOnTransitionStart&&!D)&&(n.params.lazy.checkInView?N():Q())}),b("transitionEnd",()=>{n.params.lazy.enabled&&!n.params.lazy.loadOnTransitionStart&&(n.params.lazy.checkInView?N():Q())}),b("slideChange",()=>{const{lazy:Y,cssMode:j,watchSlidesProgress:V,touchReleaseOnEdges:it,resistanceRatio:yt}=n.params;Y.enabled&&(j||V&&(it||yt===0))&&Q()}),Object.assign(n.lazy,{load:Q,loadInSlide:H})}function Se({swiper:n,extendParams:y,on:b}){y({controller:{control:void 0,inverse:!1,by:"slide"}}),n.controller={control:void 0};function k(N,Y){const j=function(){let vt,Lt,Tt;return(Dt,Xt)=>{for(Lt=-1,vt=Dt.length;vt-Lt>1;)Tt=vt+Lt>>1,Dt[Tt]<=Xt?Lt=Tt:vt=Tt;return vt}}();this.x=N,this.y=Y,this.lastIndex=N.length-1;let V,it;return this.interpolate=function(vt){return vt?(it=j(this.x,vt),V=it-1,(vt-this.x[V])*(this.y[it]-this.y[V])/(this.x[it]-this.x[V])+this.y[V]):0},this}function L(N){n.controller.spline||(n.controller.spline=n.params.loop?new k(n.slidesGrid,N.slidesGrid):new k(n.snapGrid,N.snapGrid))}function D(N,Y){const j=n.controller.control;let V,it;const yt=n.constructor;function vt(Lt){const Tt=n.rtlTranslate?-n.translate:n.translate;n.params.controller.by==="slide"&&(L(Lt),it=-n.controller.spline.interpolate(-Tt)),(!it||n.params.controller.by==="container")&&(V=(Lt.maxTranslate()-Lt.minTranslate())/(n.maxTranslate()-n.minTranslate()),it=(Tt-n.minTranslate())*V+Lt.minTranslate()),n.params.controller.inverse&&(it=Lt.maxTranslate()-it),Lt.updateProgress(it),Lt.setTranslate(it,n),Lt.updateActiveIndex(),Lt.updateSlidesClasses()}if(Array.isArray(j))for(let Lt=0;Lt<j.length;Lt+=1)j[Lt]!==Y&&j[Lt]instanceof yt&&vt(j[Lt]);else j instanceof yt&&Y!==j&&vt(j)}function H(N,Y){const j=n.constructor,V=n.controller.control;let it;function yt(vt){vt.setTransition(N,n),N!==0&&(vt.transitionStart(),vt.params.autoHeight&&vn(()=>{vt.updateAutoHeight()}),vt.$wrapperEl.transitionEnd(()=>{V&&(vt.params.loop&&n.params.controller.by==="slide"&&vt.loopFix(),vt.transitionEnd())}))}if(Array.isArray(V))for(it=0;it<V.length;it+=1)V[it]!==Y&&V[it]instanceof j&&yt(V[it]);else V instanceof j&&Y!==V&&yt(V)}function Q(){n.controller.control&&n.controller.spline&&(n.controller.spline=void 0,delete n.controller.spline)}b("beforeInit",()=>{n.controller.control=n.params.controller.control}),b("update",()=>{Q()}),b("resize",()=>{Q()}),b("observerUpdate",()=>{Q()}),b("setTranslate",(N,Y,j)=>{n.controller.control&&n.controller.setTranslate(Y,j)}),b("setTransition",(N,Y,j)=>{n.controller.control&&n.controller.setTransition(Y,j)}),Object.assign(n.controller,{setTranslate:D,setTransition:H})}function ze({swiper:n,extendParams:y,on:b}){y({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group"}});let k=null;function L(ne){const Kt=k;Kt.length!==0&&(Kt.html(""),Kt.html(ne))}function D(ne=16){const Kt=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(ne).replace(/x/g,Kt)}function H(ne){ne.attr("tabIndex","0")}function Q(ne){ne.attr("tabIndex","-1")}function N(ne,Kt){ne.attr("role",Kt)}function Y(ne,Kt){ne.attr("aria-roledescription",Kt)}
13function j(ne,Kt){ne.attr("aria-controls",Kt)}function V(ne,Kt){ne.attr("aria-label",Kt)}function it(ne,Kt){ne.attr("id",Kt)}function yt(ne,Kt){ne.attr("aria-live",Kt)}function vt(ne){ne.attr("aria-disabled",!0)}function Lt(ne){ne.attr("aria-disabled",!1)}function Tt(ne){if(ne.keyCode!==13&&ne.keyCode!==32)return;const Kt=n.params.a11y,ce=q(ne.target);n.navigation&&n.navigation.$nextEl&&ce.is(n.navigation.$nextEl)&&(n.isEnd&&!n.params.loop||n.slideNext(),n.isEnd?L(Kt.lastSlideMessage):L(Kt.nextSlideMessage)),n.navigation&&n.navigation.$prevEl&&ce.is(n.navigation.$prevEl)&&(n.isBeginning&&!n.params.loop||n.slidePrev(),n.isBeginning?L(Kt.firstSlideMessage):L(Kt.prevSlideMessage)),n.pagination&&ce.is(Nt(n.params.pagination.bulletClass))&&ce[0].click()}function Dt(){if(n.params.loop||n.params.rewind||!n.navigation)return;const{$nextEl:ne,$prevEl:Kt}=n.navigation;Kt&&Kt.length>0&&(n.isBeginning?(vt(Kt),Q(Kt)):(Lt(Kt),H(Kt))),ne&&ne.length>0&&(n.isEnd?(vt(ne),Q(ne)):(Lt(ne),H(ne)))}function Xt(){return n.pagination&&n.pagination.bullets&&n.pagination.bullets.length}function Ht(){return Xt()&&n.params.pagination.clickable}function ie(){const ne=n.params.a11y;Xt()&&n.pagination.bullets.each(Kt=>{const ce=q(Kt);n.params.pagination.clickable&&(H(ce),n.params.pagination.renderBullet||(N(ce,"button"),V(ce,ne.paginationBulletMessage.replace(/\{\{index\}\}/,ce.index()+1)))),ce.is(`.${n.params.pagination.bulletActiveClass}`)?ce.attr("aria-current","true"):ce.removeAttr("aria-current")})}const we=(ne,Kt,ce)=>{H(ne),ne[0].tagName!=="BUTTON"&&(N(ne,"button"),ne.on("keydown",Tt)),V(ne,ce),j(ne,Kt)};function Ue(){const ne=n.params.a11y;n.$el.append(k);const Kt=n.$el;ne.containerRoleDescriptionMessage&&Y(Kt,ne.containerRoleDescriptionMessage),ne.containerMessage&&V(Kt,ne.containerMessage);const ce=n.$wrapperEl,le=ce.attr("id")||`swiper-wrapper-${D(16)}`,Ae=n.params.autoplay&&n.params.autoplay.enabled?"off":"polite";it(ce,le),yt(ce,Ae),ne.itemRoleDescriptionMessage&&Y(q(n.slides),ne.itemRoleDescriptionMessage),N(q(n.slides),ne.slideRole);const Ze=n.params.loop?n.slides.filter(fe=>!fe.classList.contains(n.params.slideDuplicateClass)).length:n.slides.length;n.slides.each((fe,Si)=>{const Mi=q(fe),bi=n.params.loop?parseInt(Mi.attr("data-swiper-slide-index"),10):Si,mn=ne.slideLabelMessage.replace(/\{\{index\}\}/,bi+1).replace(/\{\{slidesLength\}\}/,Ze);V(Mi,mn)});let _i,Ii;n.navigation&&n.navigation.$nextEl&&(_i=n.navigation.$nextEl),n.navigation&&n.navigation.$prevEl&&(Ii=n.navigation.$prevEl),_i&&_i.length&&we(_i,le,ne.nextSlideMessage),Ii&&Ii.length&&we(Ii,le,ne.prevSlideMessage),Ht()&&n.pagination.$el.on("keydown",Nt(n.params.pagination.bulletClass),Tt)}function Ne(){k&&k.length>0&&k.remove();let ne,Kt;n.navigation&&n.navigation.$nextEl&&(ne=n.navigation.$nextEl),n.navigation&&n.navigation.$prevEl&&(Kt=n.navigation.$prevEl),ne&&ne.off("keydown",Tt),Kt&&Kt.off("keydown",Tt),Ht()&&n.pagination.$el.off("keydown",Nt(n.params.pagination.bulletClass),Tt)}b("beforeInit",()=>{k=q(`<span class="${n.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}),b("afterInit",()=>{n.params.a11y.enabled&&(Ue(),Dt())}),b("toEdge",()=>{n.params.a11y.enabled&&Dt()}),b("fromEdge",()=>{n.params.a11y.enabled&&Dt()}),b("paginationUpdate",()=>{n.params.a11y.enabled&&ie()}),b("destroy",()=>{n.params.a11y.enabled&&Ne()})}function de({swiper:n,extendParams:y,on:b}){y({history:{enabled:!1,root:"",replaceState:!1,key:"slides"}});let k=!1,L={};const D=it=>it.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),H=it=>{const yt=d();let vt;it?vt=new URL(it):vt=yt.location;const Lt=vt.pathname.slice(1).split("/").filter(Ht=>Ht!==""),Tt=Lt.length,Dt=Lt[Tt-2],Xt=Lt[Tt-1];return{key:Dt,value:Xt}},Q=(it,yt)=>{const vt=d();if(!k||!n.params.history.enabled)return;let Lt;n.params.url?Lt=new URL(n.params.url):Lt=vt.location;const Tt=n.slides.eq(yt);let Dt=D(Tt.attr("data-history"));if(n.params.history.root.length>0){let Ht=n.params.history.root;Ht[Ht.length-1]==="/"&&(Ht=Ht.slice(0,Ht.length-1)),Dt=`${Ht}/${it}/${Dt}`}else Lt.pathname.includes(it)||(Dt=`${it}/${Dt}`);const Xt=vt.history.state;Xt&&Xt.value===Dt||(n.params.history.replaceState?vt.history.replaceState({value:Dt},null,Dt):vt.history.pushState({value:Dt},null,Dt))},N=(it,yt,vt)=>{if(yt)for(let Lt=0,Tt=n.slides.length;
13Lt<Tt;Lt+=1){const Dt=n.slides.eq(Lt);if(D(Dt.attr("data-history"))===yt&&!Dt.hasClass(n.params.slideDuplicateClass)){const Ht=Dt.index();n.slideTo(Ht,it,vt)}}else n.slideTo(0,it,vt)},Y=()=>{L=H(n.params.url),N(n.params.speed,n.paths.value,!1)},j=()=>{const it=d();if(n.params.history){if(!it.history||!it.history.pushState){n.params.history.enabled=!1,n.params.hashNavigation.enabled=!0;return}k=!0,L=H(n.params.url),!(!L.key&&!L.value)&&(N(0,L.value,n.params.runCallbacksOnInit),n.params.history.replaceState||it.addEventListener("popstate",Y))}},V=()=>{const it=d();n.params.history.replaceState||it.removeEventListener("popstate",Y)};b("init",()=>{n.params.history.enabled&&j()}),b("destroy",()=>{n.params.history.enabled&&V()}),b("transitionEnd _freeModeNoMomentumRelease",()=>{k&&Q(n.params.history.key,n.activeIndex)}),b("slideChange",()=>{k&&n.params.cssMode&&Q(n.params.history.key,n.activeIndex)})}function $e({swiper:n,extendParams:y,emit:b,on:k}){let L=!1;const D=c(),H=d();y({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}});const Q=()=>{b("hashChange");const V=D.location.hash.replace("#",""),it=n.slides.eq(n.activeIndex).attr("data-hash");if(V!==it){const yt=n.$wrapperEl.children(`.${n.params.slideClass}[data-hash="${V}"]`).index();if(typeof yt>"u")return;n.slideTo(yt)}},N=()=>{if(!(!L||!n.params.hashNavigation.enabled))if(n.params.hashNavigation.replaceState&&H.history&&H.history.replaceState)H.history.replaceState(null,null,`#${n.slides.eq(n.activeIndex).attr("data-hash")}`||""),b("hashSet");else{const V=n.slides.eq(n.activeIndex),it=V.attr("data-hash")||V.attr("data-history");D.location.hash=it||"",b("hashSet")}},Y=()=>{if(!n.params.hashNavigation.enabled||n.params.history&&n.params.history.enabled)return;L=!0;const V=D.location.hash.replace("#","");if(V)for(let yt=0,vt=n.slides.length;yt<vt;yt+=1){const Lt=n.slides.eq(yt);if((Lt.attr("data-hash")||Lt.attr("data-history"))===V&&!Lt.hasClass(n.params.slideDuplicateClass)){const Dt=Lt.index();n.slideTo(Dt,0,n.params.runCallbacksOnInit,!0)}}n.params.hashNavigation.watchState&&q(H).on("hashchange",Q)},j=()=>{n.params.hashNavigation.watchState&&q(H).off("hashchange",Q)};k("init",()=>{n.params.hashNavigation.enabled&&Y()}),k("destroy",()=>{n.params.hashNavigation.enabled&&j()}),k("transitionEnd _freeModeNoMomentumRelease",()=>{L&&N()}),k("slideChange",()=>{L&&n.params.cssMode&&N()})}function Xe({swiper:n,extendParams:y,on:b,emit:k}){let L;n.autoplay={running:!1,paused:!1},y({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});function D(){const Lt=n.slides.eq(n.activeIndex);let Tt=n.params.autoplay.delay;Lt.attr("data-swiper-autoplay")&&(Tt=Lt.attr("data-swiper-autoplay")||n.params.autoplay.delay),clearTimeout(L),L=vn(()=>{let Dt;n.params.autoplay.reverseDirection?n.params.loop?(n.loopFix(),Dt=n.slidePrev(n.params.speed,!0,!0),k("autoplay")):n.isBeginning?n.params.autoplay.stopOnLastSlide?Q():(Dt=n.slideTo(n.slides.length-1,n.params.speed,!0,!0),k("autoplay")):(Dt=n.slidePrev(n.params.speed,!0,!0),k("autoplay")):n.params.loop?(n.loopFix(),Dt=n.slideNext(n.params.speed,!0,!0),k("autoplay")):n.isEnd?n.params.autoplay.stopOnLastSlide?Q():(Dt=n.slideTo(0,n.params.speed,!0,!0),k("autoplay")):(Dt=n.slideNext(n.params.speed,!0,!0),k("autoplay")),(n.params.cssMode&&n.autoplay.running||Dt===!1)&&D()},Tt)}function H(){return typeof L<"u"||n.autoplay.running?!1:(n.autoplay.running=!0,k("autoplayStart"),D(),!0)}function Q(){return!n.autoplay.running||typeof L>"u"?!1:(L&&(clearTimeout(L),L=void 0),n.autoplay.running=!1,k("autoplayStop"),!0)}function N(Lt){n.autoplay.running&&(n.autoplay.paused||(L&&clearTimeout(L),n.autoplay.paused=!0,Lt===0||!n.params.autoplay.waitForTransition?(n.autoplay.paused=!1,D()):["transitionend","webkitTransitionEnd"].forEach(Tt=>{n.$wrapperEl[0].addEventListener(Tt,j)})))}function Y(){const Lt=c();Lt.visibilityState==="hidden"&&n.autoplay.running&&N(),Lt.visibilityState==="visible"&&n.autoplay.paused&&(D(),n.autoplay.paused=!1)}function j(Lt){!n||n.destroyed||!n.$wrapperEl||Lt.target===n.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach(Tt=>
13{n.$wrapperEl[0].removeEventListener(Tt,j)}),n.autoplay.paused=!1,n.autoplay.running?D():Q())}function V(){n.params.autoplay.disableOnInteraction?Q():N(),["transitionend","webkitTransitionEnd"].forEach(Lt=>{n.$wrapperEl[0].removeEventListener(Lt,j)})}function it(){n.params.autoplay.disableOnInteraction||(n.autoplay.paused=!1,D())}function yt(){n.params.autoplay.pauseOnMouseEnter&&(n.$el.on("mouseenter",V),n.$el.on("mouseleave",it))}function vt(){n.$el.off("mouseenter",V),n.$el.off("mouseleave",it)}b("init",()=>{n.params.autoplay.enabled&&(H(),c().addEventListener("visibilitychange",Y),yt())}),b("beforeTransitionStart",(Lt,Tt,Dt)=>{n.autoplay.running&&(Dt||!n.params.autoplay.disableOnInteraction?n.autoplay.pause(Tt):Q())}),b("sliderFirstMove",()=>{n.autoplay.running&&(n.params.autoplay.disableOnInteraction?Q():N())}),b("touchEnd",()=>{n.params.cssMode&&n.autoplay.paused&&!n.params.autoplay.disableOnInteraction&&D()}),b("destroy",()=>{vt(),n.autoplay.running&&Q(),c().removeEventListener("visibilitychange",Y)}),Object.assign(n.autoplay,{pause:N,run:D,start:H,stop:Q})}function qe({swiper:n,extendParams:y,on:b}){y({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let k=!1,L=!1;n.thumbs={swiper:null};function D(){const N=n.thumbs.swiper;if(!N)return;const Y=N.clickedIndex,j=N.clickedSlide;if(j&&q(j).hasClass(n.params.thumbs.slideThumbActiveClass)||typeof Y>"u"||Y===null)return;let V;if(N.params.loop?V=parseInt(q(N.clickedSlide).attr("data-swiper-slide-index"),10):V=Y,n.params.loop){let it=n.activeIndex;n.slides.eq(it).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,it=n.activeIndex);const yt=n.slides.eq(it).prevAll(`[data-swiper-slide-index="${V}"]`).eq(0).index(),vt=n.slides.eq(it).nextAll(`[data-swiper-slide-index="${V}"]`).eq(0).index();typeof yt>"u"?V=vt:typeof vt>"u"?V=yt:vt-it<it-yt?V=vt:V=yt}n.slideTo(V)}function H(){const{thumbs:N}=n.params;if(k)return!1;k=!0;const Y=n.constructor;if(N.swiper instanceof Y)n.thumbs.swiper=N.swiper,Object.assign(n.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(n.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1});else if(Yn(N.swiper)){const j=Object.assign({},N.swiper);Object.assign(j,{watchSlidesProgress:!0,slideToClickedSlide:!1}),n.thumbs.swiper=new Y(j),L=!0}return n.thumbs.swiper.$el.addClass(n.params.thumbs.thumbsContainerClass),n.thumbs.swiper.on("tap",D),!0}function Q(N){const Y=n.thumbs.swiper;if(!Y)return;const j=Y.params.slidesPerView==="auto"?Y.slidesPerViewDynamic():Y.params.slidesPerView,V=n.params.thumbs.autoScrollOffset,it=V&&!Y.params.loop;if(n.realIndex!==Y.realIndex||it){let Lt=Y.activeIndex,Tt,Dt;if(Y.params.loop){Y.slides.eq(Lt).hasClass(Y.params.slideDuplicateClass)&&(Y.loopFix(),Y._clientLeft=Y.$wrapperEl[0].clientLeft,Lt=Y.activeIndex);const Xt=Y.slides.eq(Lt).prevAll(`[data-swiper-slide-index="${n.realIndex}"]`).eq(0).index(),Ht=Y.slides.eq(Lt).nextAll(`[data-swiper-slide-index="${n.realIndex}"]`).eq(0).index();typeof Xt>"u"?Tt=Ht:typeof Ht>"u"?Tt=Xt:Ht-Lt===Lt-Xt?Tt=Y.params.slidesPerGroup>1?Ht:Lt:Ht-Lt<Lt-Xt?Tt=Ht:Tt=Xt,Dt=n.activeIndex>n.previousIndex?"next":"prev"}else Tt=n.realIndex,Dt=Tt>n.previousIndex?"next":"prev";it&&(Tt+=Dt==="next"?V:-1*V),Y.visibleSlidesIndexes&&Y.visibleSlidesIndexes.indexOf(Tt)<0&&(Y.params.centeredSlides?Tt>Lt?Tt=Tt-Math.floor(j/2)+1:Tt=Tt+Math.floor(j/2)-1:Tt>Lt&&Y.params.slidesPerGroup,Y.slideTo(Tt,N?0:void 0))}let yt=1;const vt=n.params.thumbs.slideThumbActiveClass;if(n.params.slidesPerView>1&&!n.params.centeredSlides&&(yt=n.params.slidesPerView),n.params.thumbs.multipleActiveThumbs||(yt=1),yt=Math.floor(yt),Y.slides.removeClass(vt),Y.params.loop||Y.params.virtual&&Y.params.virtual.enabled)for(let Lt=0;Lt<yt;Lt+=1)Y.$wrapperEl.children(`[data-swiper-slide-index="${n.realIndex+Lt}"]`).addClass(vt);else for(let Lt=0;Lt<yt;Lt+=1)Y.slides.eq(n.realIndex+Lt).addClass(vt)}b("beforeInit",()=>{const{thumbs:N}=n.params;!N||!N.swiper||(H(),Q(!0))}),b("slideChange update resize observerUpdate",()=>{n.thumbs.swiper&&Q()}),b("setTransition",(N,Y)=>{const j=n.thumbs.swiper;j&&j.setTransition(Y)}),b("beforeDestroy",()=>{const N=n.thumbs.swiper;N&&L&&N&&N.destroy()}),Object.assign(n.thumbs,{init:H,update:Q})}function Ie({swiper:n,extendParams:y,emit:b,once:k}){y({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function L(){const{touchEventsData:H,touches:Q}=n;H.velocities.length===0&&H.velocities.push({position:Q[n.isHorizontal()?"startX":"startY"],time:H.touchStartTime}),H.velocities.push({position:Q[n.isHorizontal()?"currentX":"currentY"],time:Ji()})}function D({currentPos:H}){const{params:Q,$wrapperEl:N,rtlTranslate:Y,snapGrid:j,touchEventsData:V}=n,yt=Ji()-V.touchStartTime;if(H<-n.minTranslate()){n.slideTo(n.activeIndex);return}if(H>-n.maxTranslate()){n.slides.length<j.length?n.slideTo(j.length-1):n.slideTo(n.slides.length-1);return}if(Q.freeMode.momentum){if(V.velocities.length>1){const we=V.velocities.pop(),Ue=V.velocities.pop(),Ne=we.position-Ue.position,ne=we.time-Ue.time;n.velocity=Ne/ne,n.velocity/=2,Math.abs(n.velocity)<Q.freeMode.minimumVelocity&&(n.velocity=0),(ne>150||Ji()-we.time>300)&&(n.velocity=0)}else n.velocity=0;
13n.velocity*=Q.freeMode.momentumVelocityRatio,V.velocities.length=0;let vt=1e3*Q.freeMode.momentumRatio;const Lt=n.velocity*vt;let Tt=n.translate+Lt;Y&&(Tt=-Tt);let Dt=!1,Xt;const Ht=Math.abs(n.velocity)*20*Q.freeMode.momentumBounceRatio;let ie;if(Tt<n.maxTranslate())Q.freeMode.momentumBounce?(Tt+n.maxTranslate()<-Ht&&(Tt=n.maxTranslate()-Ht),Xt=n.maxTranslate(),Dt=!0,V.allowMomentumBounce=!0):Tt=n.maxTranslate(),Q.loop&&Q.centeredSlides&&(ie=!0);else if(Tt>n.minTranslate())Q.freeMode.momentumBounce?(Tt-n.minTranslate()>Ht&&(Tt=n.minTranslate()+Ht),Xt=n.minTranslate(),Dt=!0,V.allowMomentumBounce=!0):Tt=n.minTranslate(),Q.loop&&Q.centeredSlides&&(ie=!0);else if(Q.freeMode.sticky){let we;for(let Ue=0;Ue<j.length;Ue+=1)if(j[Ue]>-Tt){we=Ue;break}Math.abs(j[we]-Tt)<Math.abs(j[we-1]-Tt)||n.swipeDirection==="next"?Tt=j[we]:Tt=j[we-1],Tt=-Tt}if(ie&&k("transitionEnd",()=>{n.loopFix()}),n.velocity!==0){if(Y?vt=Math.abs((-Tt-n.translate)/n.velocity):vt=Math.abs((Tt-n.translate)/n.velocity),Q.freeMode.sticky){const we=Math.abs((Y?-Tt:Tt)-n.translate),Ue=n.slidesSizesGrid[n.activeIndex];we<Ue?vt=Q.speed:we<2*Ue?vt=Q.speed*1.5:vt=Q.speed*2.5}}else if(Q.freeMode.sticky){n.slideToClosest();return}Q.freeMode.momentumBounce&&Dt?(n.updateProgress(Xt),n.setTransition(vt),n.setTranslate(Tt),n.transitionStart(!0,n.swipeDirection),n.animating=!0,N.transitionEnd(()=>{!n||n.destroyed||!V.allowMomentumBounce||(b("momentumBounce"),n.setTransition(Q.speed),setTimeout(()=>{n.setTranslate(Xt),N.transitionEnd(()=>{!n||n.destroyed||n.transitionEnd()})},0))})):n.velocity?(b("_freeModeNoMomentumRelease"),n.updateProgress(Tt),n.setTransition(vt),n.setTranslate(Tt),n.transitionStart(!0,n.swipeDirection),n.animating||(n.animating=!0,N.transitionEnd(()=>{!n||n.destroyed||n.transitionEnd()}))):n.updateProgress(Tt),n.updateActiveIndex(),n.updateSlidesClasses()}else if(Q.freeMode.sticky){n.slideToClosest();return}else Q.freeMode&&b("_freeModeNoMomentumRelease");(!Q.freeMode.momentum||yt>=Q.longSwipesMs)&&(n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses())}Object.assign(n,{freeMode:{onTouchMove:L,onTouchEnd:D}})}function ni({swiper:n,extendParams:y}){y({grid:{rows:1,fill:"column"}});let b,k,L;const D=N=>{const{slidesPerView:Y}=n.params,{rows:j,fill:V}=n.params.grid;k=b/j,L=Math.floor(N/j),Math.floor(N/j)===N/j?b=N:b=Math.ceil(N/j)*j,Y!=="auto"&&V==="row"&&(b=Math.max(b,Y*j))},H=(N,Y,j,V)=>{const{slidesPerGroup:it,spaceBetween:yt}=n.params,{rows:vt,fill:Lt}=n.params.grid;let Tt,Dt,Xt;if(Lt==="row"&&it>1){const Ht=Math.floor(N/(it*vt)),ie=N-vt*it*Ht,we=Ht===0?it:Math.min(Math.ceil((j-Ht*vt*it)/vt),it);Xt=Math.floor(ie/we),Dt=ie-Xt*we+Ht*it,Tt=Dt+Xt*b/vt,Y.css({"-webkit-order":Tt,order:Tt})}else Lt==="column"?(Dt=Math.floor(N/vt),Xt=N-Dt*vt,(Dt>L||Dt===L&&Xt===vt-1)&&(Xt+=1,Xt>=vt&&(Xt=0,Dt+=1))):(Xt=Math.floor(N/k),Dt=N-Xt*k);Y.css(V("margin-top"),Xt!==0?yt&&`${yt}px`:"")},Q=(N,Y,j)=>{const{spaceBetween:V,centeredSlides:it,roundLengths:yt}=n.params,{rows:vt}=n.params.grid;if(n.virtualSize=(N+V)*b,n.virtualSize=Math.ceil(n.virtualSize/vt)-V,n.$wrapperEl.css({[j("width")]:`${n.virtualSize+V}px`}),it){Y.splice(0,Y.length);const Lt=[];for(let Tt=0;Tt<Y.length;Tt+=1){let Dt=Y[Tt];yt&&(Dt=Math.floor(Dt)),Y[Tt]<n.virtualSize+Y[0]&&Lt.push(Dt)}Y.push(...Lt)}};n.grid={initSlides:D,updateSlide:H,updateWrapperSize:Q}}function fi(n){const y=this,{$wrapperEl:b,params:k}=y;if(k.loop&&y.loopDestroy(),typeof n=="object"&&"length"in n)for(let L=0;L<n.length;L+=1)n[L]&&b.append(n[L]);else b.append(n);k.loop&&y.loopCreate(),k.observer||y.update()}function Wt(n){const y=this,{params:b,$wrapperEl:k,activeIndex:L}=y;b.loop&&y.loopDestroy();let D=L+1;if(typeof n=="object"&&"length"in n){for(let H=0;H<n.length;H+=1)n[H]&&k.prepend(n[H]);D=L+n.length}else k.prepend(n);b.loop&&y.loopCreate(),b.observer||y.update(),y.slideTo(D,0,!1)}function ge(n,y){const b=this,{$wrapperEl:k,params:L,activeIndex:D}=b;let H=D;L.loop&&(H-=b.loopedSlides,b.loopDestroy(),b.slides=k.children(`.${L.slideClass}`));const Q=b.slides.length;if(n<=0){b.prependSlide(y);return}if(n>=Q){b.appendSlide(y);return}let N=H>n?H+1:H;const Y=[];for(let j=Q-1;j>=n;j-=1){const V=b.slides.eq(j);V.remove(),Y.unshift(V)}if(typeof y=="object"&&"length"in y){for(let j=0;j<y.length;j+=1)y[j]&&k.append(y[j]);N=H>n?H+y.length:H}else k.append(y);for(let j=0;j<Y.length;j+=1)k.append(Y[j]);
13L.loop&&b.loopCreate(),L.observer||b.update(),L.loop?b.slideTo(N+b.loopedSlides,0,!1):b.slideTo(N,0,!1)}function _e(n){const y=this,{params:b,$wrapperEl:k,activeIndex:L}=y;let D=L;b.loop&&(D-=y.loopedSlides,y.loopDestroy(),y.slides=k.children(`.${b.slideClass}`));let H=D,Q;if(typeof n=="object"&&"length"in n){for(let N=0;N<n.length;N+=1)Q=n[N],y.slides[Q]&&y.slides.eq(Q).remove(),Q<H&&(H-=1);H=Math.max(H,0)}else Q=n,y.slides[Q]&&y.slides.eq(Q).remove(),Q<H&&(H-=1),H=Math.max(H,0);b.loop&&y.loopCreate(),b.observer||y.update(),b.loop?y.slideTo(H+y.loopedSlides,0,!1):y.slideTo(H,0,!1)}function pi(){const n=this,y=[];for(let b=0;b<n.slides.length;b+=1)y.push(b);n.removeSlide(y)}function yi({swiper:n}){Object.assign(n,{appendSlide:fi.bind(n),prependSlide:Wt.bind(n),addSlide:ge.bind(n),removeSlide:_e.bind(n),removeAllSlides:pi.bind(n)})}function Bi(n){const{effect:y,swiper:b,on:k,setTranslate:L,setTransition:D,overwriteParams:H,perspective:Q}=n;k("beforeInit",()=>{if(b.params.effect!==y)return;b.classNames.push(`${b.params.containerModifierClass}${y}`),Q&&Q()&&b.classNames.push(`${b.params.containerModifierClass}3d`);const N=H?H():{};Object.assign(b.params,N),Object.assign(b.originalParams,N)}),k("setTranslate",()=>{b.params.effect===y&&L()}),k("setTransition",(N,Y)=>{b.params.effect===y&&D(Y)})}function Wi(n,y){return n.transformEl?y.find(n.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):y}function yn({swiper:n,duration:y,transformEl:b,allSlides:k}){const{slides:L,activeIndex:D,$wrapperEl:H}=n;if(n.params.virtualTranslate&&y!==0){let Q=!1,N;k?N=b?L.find(b):L:N=b?L.eq(D).find(b):L.eq(D),N.transitionEnd(()=>{if(Q||!n||n.destroyed)return;Q=!0,n.animating=!1;const Y=["webkitTransitionEnd","transitionend"];for(let j=0;j<Y.length;j+=1)H.trigger(Y[j])})}}function zn({swiper:n,extendParams:y,on:b}){y({fadeEffect:{crossFade:!1,transformEl:null}}),Bi({effect:"fade",swiper:n,on:b,setTranslate:()=>{const{slides:D}=n,H=n.params.fadeEffect;for(let Q=0;Q<D.length;Q+=1){const N=n.slides.eq(Q);let j=-N[0].swiperSlideOffset;n.params.virtualTranslate||(j-=n.translate);let V=0;n.isHorizontal()||(V=j,j=0);const it=n.params.fadeEffect.crossFade?Math.max(1-Math.abs(N[0].progress),0):1+Math.min(Math.max(N[0].progress,-1),0);Wi(H,N).css({opacity:it}).transform(`translate3d(${j}px, ${V}px, 0px)`)}},setTransition:D=>{const{transformEl:H}=n.params.fadeEffect;(H?n.slides.find(H):n.slides).transition(D),yn({swiper:n,duration:D,transformEl:H,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!n.params.cssMode})})}function Pn({swiper:n,extendParams:y,on:b}){y({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}}),Bi({effect:"cube",swiper:n,on:b,setTranslate:()=>{const{$el:D,$wrapperEl:H,slides:Q,width:N,height:Y,rtlTranslate:j,size:V,browser:it}=n,yt=n.params.cubeEffect,vt=n.isHorizontal(),Lt=n.virtual&&n.params.virtual.enabled;let Tt=0,Dt;yt.shadow&&(vt?(Dt=H.find(".swiper-cube-shadow"),Dt.length===0&&(Dt=q('<div class="swiper-cube-shadow"></div>'),H.append(Dt)),Dt.css({height:`${N}px`})):(Dt=D.find(".swiper-cube-shadow"),Dt.length===0&&(Dt=q('<div class="swiper-cube-shadow"></div>'),D.append(Dt))));for(let Ht=0;Ht<Q.length;Ht+=1){const ie=Q.eq(Ht);let we=Ht;Lt&&(we=parseInt(ie.attr("data-swiper-slide-index"),10));let Ue=we*90,Ne=Math.floor(Ue/360);j&&(Ue=-Ue,Ne=Math.floor(-Ue/360));const ne=Math.max(Math.min(ie[0].progress,1),-1);let Kt=0,ce=0,le=0;we%4===0?(Kt=-Ne*4*V,le=0):(we-1)%4===0?(Kt=0,le=-Ne*4*V):(we-2)%4===0?(Kt=V+Ne*4*V,le=V):(we-3)%4===0&&(Kt=-V,le=3*V+V*4*Ne),j&&(Kt=-Kt),vt||(ce=Kt,Kt=0);const Ae=`rotateX(${vt?0:-Ue}deg) rotateY(${vt?Ue:0}deg) translate3d(${Kt}px, ${ce}px, ${le}px)`;if(ne<=1&&ne>-1&&(Tt=we*90+ne*90,j&&(Tt=-we*90-ne*90)),ie.transform(Ae),yt.slideShadows){let Ze=vt?ie.find(".swiper-slide-shadow-left"):ie.find(".swiper-slide-shadow-top"),_i=vt?ie.find(".swiper-slide-shadow-right"):ie.find(".swiper-slide-shadow-bottom");Ze.length===0&&(Ze=q(`<div class="swiper-slide-shadow-${vt?"left":"top"}"></div>`),ie.append(Ze)),_i.length===0&&(_i=q(`<div class="swiper-slide-shadow-${vt?"right":"bottom"}"></div>`),ie.append(_i)),Ze.length&&(Ze[0].style.opacity=Math.max(-ne,0)),_i.length&&(_i[0].style.opacity=Math.max(ne,0))}}if(H.css({"-webkit-transform-origin":`50% 50% -${V/2}px`,"transform-origin":`50% 50% -${V/2}px`}),yt.shadow)if(vt)Dt.transform(`translate3d(0px, ${N/2+yt.shadowOffset}px, ${-N/2}px) rotateX(90deg) rotateZ(0deg) scale(${yt.shadowScale})`);
13else{const Ht=Math.abs(Tt)-Math.floor(Math.abs(Tt)/90)*90,ie=1.5-(Math.sin(Ht*2*Math.PI/360)/2+Math.cos(Ht*2*Math.PI/360)/2),we=yt.shadowScale,Ue=yt.shadowScale/ie,Ne=yt.shadowOffset;Dt.transform(`scale3d(${we}, 1, ${Ue}) translate3d(0px, ${Y/2+Ne}px, ${-Y/2/Ue}px) rotateX(-90deg)`)}const Xt=it.isSafari||it.isWebView?-V/2:0;H.transform(`translate3d(0px,0,${Xt}px) rotateX(${n.isHorizontal()?0:Tt}deg) rotateY(${n.isHorizontal()?-Tt:0}deg)`)},setTransition:D=>{const{$el:H,slides:Q}=n;Q.transition(D).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(D),n.params.cubeEffect.shadow&&!n.isHorizontal()&&H.find(".swiper-cube-shadow").transition(D)},perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function on(n,y,b){const k=`swiper-slide-shadow${b?`-${b}`:""}`,L=n.transformEl?y.find(n.transformEl):y;let D=L.children(`.${k}`);return D.length||(D=q(`<div class="swiper-slide-shadow${b?`-${b}`:""}"></div>`),L.append(D)),D}function Xn({swiper:n,extendParams:y,on:b}){y({flipEffect:{slideShadows:!0,limitRotation:!0,transformEl:null}}),Bi({effect:"flip",swiper:n,on:b,setTranslate:()=>{const{slides:D,rtlTranslate:H}=n,Q=n.params.flipEffect;for(let N=0;N<D.length;N+=1){const Y=D.eq(N);let j=Y[0].progress;n.params.flipEffect.limitRotation&&(j=Math.max(Math.min(Y[0].progress,1),-1));const V=Y[0].swiperSlideOffset;let yt=-180*j,vt=0,Lt=n.params.cssMode?-V-n.translate:-V,Tt=0;if(n.isHorizontal()?H&&(yt=-yt):(Tt=Lt,Lt=0,vt=-yt,yt=0),Y[0].style.zIndex=-Math.abs(Math.round(j))+D.length,Q.slideShadows){let Ht=n.isHorizontal()?Y.find(".swiper-slide-shadow-left"):Y.find(".swiper-slide-shadow-top"),ie=n.isHorizontal()?Y.find(".swiper-slide-shadow-right"):Y.find(".swiper-slide-shadow-bottom");Ht.length===0&&(Ht=on(Q,Y,n.isHorizontal()?"left":"top")),ie.length===0&&(ie=on(Q,Y,n.isHorizontal()?"right":"bottom")),Ht.length&&(Ht[0].style.opacity=Math.max(-j,0)),ie.length&&(ie[0].style.opacity=Math.max(j,0))}const Dt=`translate3d(${Lt}px, ${Tt}px, 0px) rotateX(${vt}deg) rotateY(${yt}deg)`;Wi(Q,Y).transform(Dt)}},setTransition:D=>{const{transformEl:H}=n.params.flipEffect;(H?n.slides.find(H):n.slides).transition(D).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(D),yn({swiper:n,duration:D,transformEl:H})},perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!n.params.cssMode})})}function m({swiper:n,extendParams:y,on:b}){y({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0,transformEl:null}}),Bi({effect:"coverflow",swiper:n,on:b,setTranslate:()=>{const{width:D,height:H,slides:Q,slidesSizesGrid:N}=n,Y=n.params.coverflowEffect,j=n.isHorizontal(),V=n.translate,it=j?-V+D/2:-V+H/2,yt=j?Y.rotate:-Y.rotate,vt=Y.depth;for(let Lt=0,Tt=Q.length;Lt<Tt;Lt+=1){const Dt=Q.eq(Lt),Xt=N[Lt],Ht=Dt[0].swiperSlideOffset,ie=(it-Ht-Xt/2)/Xt*Y.modifier;let we=j?yt*ie:0,Ue=j?0:yt*ie,Ne=-vt*Math.abs(ie),ne=Y.stretch;typeof ne=="string"&&ne.indexOf("%")!==-1&&(ne=parseFloat(Y.stretch)/100*Xt);let Kt=j?0:ne*ie,ce=j?ne*ie:0,le=1-(1-Y.scale)*Math.abs(ie);Math.abs(ce)<.001&&(ce=0),Math.abs(Kt)<.001&&(Kt=0),Math.abs(Ne)<.001&&(Ne=0),Math.abs(we)<.001&&(we=0),Math.abs(Ue)<.001&&(Ue=0),Math.abs(le)<.001&&(le=0);const Ae=`translate3d(${ce}px,${Kt}px,${Ne}px)  rotateX(${Ue}deg) rotateY(${we}deg) scale(${le})`;if(Wi(Y,Dt).transform(Ae),Dt[0].style.zIndex=-Math.abs(Math.round(ie))+1,Y.slideShadows){let _i=j?Dt.find(".swiper-slide-shadow-left"):Dt.find(".swiper-slide-shadow-top"),Ii=j?Dt.find(".swiper-slide-shadow-right"):Dt.find(".swiper-slide-shadow-bottom");_i.length===0&&(_i=on(Y,Dt,j?"left":"top")),Ii.length===0&&(Ii=on(Y,Dt,j?"right":"bottom")),_i.length&&(_i[0].style.opacity=ie>0?ie:0),Ii.length&&(Ii[0].style.opacity=-ie>0?-ie:0)}}},setTransition:D=>{const{transformEl:H}=n.params.coverflowEffect;(H?n.slides.find(H):n.slides).transition(D).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(D)},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function E({swiper:n,extendParams:y,on:b}){y({creativeEffect:{transformEl:null,limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const k=H=>typeof H=="string"?H:`${H}px`;Bi({effect:"creative",swiper:n,on:b,setTranslate:()=>{const{slides:H,$wrapperEl:Q,slidesSizesGrid:N}=n,Y=n.params.creativeEffect,{progressMultiplier:j}=Y,V=n.params.centeredSlides;if(V){const it=N[0]/2-n.params.slidesOffsetBefore||0;Q.transform(`translateX(calc(50% - ${it}px))`)}for(let it=0;
13it<H.length;it+=1){const yt=H.eq(it),vt=yt[0].progress,Lt=Math.min(Math.max(yt[0].progress,-Y.limitProgress),Y.limitProgress);let Tt=Lt;V||(Tt=Math.min(Math.max(yt[0].originalProgress,-Y.limitProgress),Y.limitProgress));const Dt=yt[0].swiperSlideOffset,Xt=[n.params.cssMode?-Dt-n.translate:-Dt,0,0],Ht=[0,0,0];let ie=!1;n.isHorizontal()||(Xt[1]=Xt[0],Xt[0]=0);let we={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};Lt<0?(we=Y.next,ie=!0):Lt>0&&(we=Y.prev,ie=!0),Xt.forEach((Ae,Ze)=>{Xt[Ze]=`calc(${Ae}px + (${k(we.translate[Ze])} * ${Math.abs(Lt*j)}))`}),Ht.forEach((Ae,Ze)=>{Ht[Ze]=we.rotate[Ze]*Math.abs(Lt*j)}),yt[0].style.zIndex=-Math.abs(Math.round(vt))+H.length;const Ue=Xt.join(", "),Ne=`rotateX(${Ht[0]}deg) rotateY(${Ht[1]}deg) rotateZ(${Ht[2]}deg)`,ne=Tt<0?`scale(${1+(1-we.scale)*Tt*j})`:`scale(${1-(1-we.scale)*Tt*j})`,Kt=Tt<0?1+(1-we.opacity)*Tt*j:1-(1-we.opacity)*Tt*j,ce=`translate3d(${Ue}) ${Ne} ${ne}`;if(ie&&we.shadow||!ie){let Ae=yt.children(".swiper-slide-shadow");if(Ae.length===0&&we.shadow&&(Ae=on(Y,yt)),Ae.length){const Ze=Y.shadowPerProgress?Lt*(1/Y.limitProgress):Lt;Ae[0].style.opacity=Math.min(Math.max(Math.abs(Ze),0),1)}}const le=Wi(Y,yt);le.transform(ce).css({opacity:Kt}),we.origin&&le.css("transform-origin",we.origin)}},setTransition:H=>{const{transformEl:Q}=n.params.creativeEffect;(Q?n.slides.find(Q):n.slides).transition(H).find(".swiper-slide-shadow").transition(H),yn({swiper:n,duration:H,transformEl:Q,allSlides:!0})},perspective:()=>n.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!n.params.cssMode})})}function P({swiper:n,extendParams:y,on:b}){y({cardsEffect:{slideShadows:!0,transformEl:null}}),Bi({effect:"cards",swiper:n,on:b,setTranslate:()=>{const{slides:D,activeIndex:H}=n,Q=n.params.cardsEffect,{startTranslate:N,isTouched:Y}=n.touchEventsData,j=n.translate;for(let V=0;V<D.length;V+=1){const it=D.eq(V),yt=it[0].progress,vt=Math.min(Math.max(yt,-4),4);let Lt=it[0].swiperSlideOffset;n.params.centeredSlides&&!n.params.cssMode&&n.$wrapperEl.transform(`translateX(${n.minTranslate()}px)`),n.params.centeredSlides&&n.params.cssMode&&(Lt-=D[0].swiperSlideOffset);let Tt=n.params.cssMode?-Lt-n.translate:-Lt,Dt=0;const Xt=-100*Math.abs(vt);let Ht=1,ie=-2*vt,we=8-Math.abs(vt)*.75;const Ue=(V===H||V===H-1)&&vt>0&&vt<1&&(Y||n.params.cssMode)&&j<N,Ne=(V===H||V===H+1)&&vt<0&&vt>-1&&(Y||n.params.cssMode)&&j>N;if(Ue||Ne){const le=(1-Math.abs((Math.abs(vt)-.5)/.5))**.5;ie+=-28*vt*le,Ht+=-.5*le,we+=96*le,Dt=`${-25*le*Math.abs(vt)}%`}if(vt<0?Tt=`calc(${Tt}px + (${we*Math.abs(vt)}%))`:vt>0?Tt=`calc(${Tt}px + (-${we*Math.abs(vt)}%))`:Tt=`${Tt}px`,!n.isHorizontal()){const le=Dt;Dt=Tt,Tt=le}const ne=vt<0?`${1+(1-Ht)*vt}`:`${1-(1-Ht)*vt}`,Kt=`
14        translate3d(${Tt}, ${Dt}, ${Xt}px)
15        rotateZ(${ie}deg)
16        scale(${ne})
17      `;if(Q.slideShadows){let le=it.find(".swiper-slide-shadow");le.length===0&&(le=on(Q,it)),le.length&&(le[0].style.opacity=Math.min(Math.max((Math.abs(vt)-.5)/.5,0),1))}it[0].style.zIndex=-Math.abs(Math.round(yt))+D.length,Wi(Q,it).transform(Kt)}},setTransition:D=>{const{transformEl:H}=n.params.cardsEffect;(H?n.slides.find(H):n.slides).transition(D).find(".swiper-slide-shadow").transition(D),yn({swiper:n,duration:D,transformEl:H})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!n.params.cssMode})})}const _=[W,lt,pt,It,Ut,zt,Jt,ae,Oe,Se,ze,de,$e,Xe,qe,Ie,ni,yi,zn,Pn,Xn,m,E,P];return O.use(_),O});/* flatpickr v4.6.9, @license MIT */(function(t,s){typeof exports=="object"&&typeof module<"u"?module.exports=s():typeof define=="function"&&define.amd?define(s):(t=typeof globalThis<"u"?globalThis:t||self,t.flatpickr=s())})(this,function(){/*! *****************************************************************************
18    Copyright (c) Microsoft Corporation.
19
20    Permission to use, copy, modify, and/or distribute this software for any
21    purpose with or without fee is hereby granted.
22
23    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
24    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
25    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
26    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
27    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
28    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
29    PERFORMANCE OF THIS SOFTWARE.
30    ***************************************************************************** */var t=function(){return t=Object.assign||function(Ct){for(var g,ve=1,ue=arguments.length;ve<ue;ve++){g=arguments[ve];for(var ye in g)Object.prototype.hasOwnProperty.call(g,ye)&&(Ct[ye]=g[ye])}return Ct},t.apply(this,arguments)};function s(){for(var Pt=0,Ct=0,g=arguments.length;Ct<g;Ct++)Pt+=arguments[Ct].length;for(var ve=Array(Pt),ue=0,Ct=0;Ct<g;Ct++)for(var ye=arguments[Ct],De=0,Te=ye.length;De<Te;De++,ue++)ve[ue]=ye[De];return ve}var e=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],c={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(Pt){return typeof console<"u"&&console.warn(Pt)},getWeek:function(Pt){var Ct=new Date(Pt.getTime());Ct.setHours(0,0,0,0),Ct.setDate(Ct.getDate()+3-(Ct.getDay()+6)%7);var g=new Date(Ct.getFullYear(),0,4);return 1+Math.round(((Ct.getTime()-g.getTime())/864e5-3+(g.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewB
30ox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},u={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(Pt){var Ct=Pt%100;if(Ct>3&&Ct<21)return"th";switch(Ct%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},d=function(Pt,Ct){return Ct===void 0&&(Ct=2),("000"+Pt).slice(Ct*-1)},S=function(Pt){return Pt===!0?1:0};function I(Pt,Ct){var g;return function(){var ve=this;clearTimeout(g),g=setTimeout(function(){return Pt.apply(ve,arguments)},Ct)}}var Z=function(Pt){return Pt instanceof Array?Pt:[Pt]};function ct(Pt,Ct,g){if(g===!0)return Pt.classList.add(Ct);Pt.classList.remove(Ct)}function nt(Pt,Ct,g){var ve=window.document.createElement(Pt);return Ct=Ct||"",g=g||"",ve.className=Ct,g!==void 0&&(ve.textContent=g),ve}function rt(Pt){for(;Pt.firstChild;)Pt.removeChild(Pt.firstChild)}function q(Pt,Ct){if(Ct(Pt))return Pt;if(Pt.parentNode)return q(Pt.parentNode,Ct)}function J(Pt,Ct){var g=nt("div","numInputWrapper"),ve=nt("input","numInput "+Pt),ue=nt("span","arrowUp"),ye=nt("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?ve.type="number":(ve.type="text",ve.pattern="\\d*"),Ct!==void 0)for(var De in Ct)ve.setAttribute(De,Ct[De]);return g.appendChild(ve),g.appendChild(ue),g.appendChild(ye),g}function ht(Pt){try{if(typeof Pt.composedPath=="function"){var Ct=Pt.composedPath();return Ct[0]}return Pt.target}catch{return Pt.target}}var xt=function(){},Et=function(Pt,Ct,g){return g.months[Ct?"shorthand":"longhand"][Pt]},x={D:xt,F:function(Pt,Ct,g){Pt.setMonth(g.months.longhand.indexOf(Ct))},G:function(Pt,Ct){Pt.setHours(parseFloat(Ct))},H:function(Pt,Ct){Pt.setHours(parseFloat(Ct))},J:function(Pt,Ct){Pt.setDate(parseFloat(Ct))},K:function(Pt,Ct,g){Pt.setHours(Pt.getHours()%12+12*S(new RegExp(g.amPM[1],"i").test(Ct)))},M:function(Pt,Ct,g){Pt.setMonth(g.months.shorthand.indexOf(Ct))},S:function(Pt,Ct){Pt.setSeconds(parseFloat(Ct))},U:function(Pt,Ct){return new Date(parseFloat(Ct)*1e3)},W:function(Pt,Ct,g){var ve=parseInt(Ct),ue=new Date(Pt.getFullYear(),0,2+(ve-1)*7,0,0,0,0);return ue.setDate(ue.getDate()-ue.getDay()+g.firstDayOfWeek),ue},Y:function(Pt,Ct){Pt.setFullYear(parseFloat(Ct))},Z:function(Pt,Ct){return new Date(Ct)},d:function(Pt,Ct){Pt.setDate(parseFloat(Ct))},h:function(Pt,Ct){Pt.setHours(parseFloat(Ct))},i:function(Pt,Ct){Pt.setMinutes(parseFloat(Ct))},j:function(Pt,Ct){Pt.setDate(parseFloat(Ct))},l:xt,m:function(Pt,Ct){Pt.setMonth(parseFloat(Ct)-1)},n:function(Pt,Ct){Pt.setMonth(parseFloat(Ct)-1)},s:function(Pt,Ct){Pt.setSeconds(parseFloat(Ct))},u:function(Pt,Ct){return new Date(parseFloat(Ct))},w:xt,y:function(Pt,Ct){Pt.setFullYear(2e3+parseFloat(Ct))}},R={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},G={Z:function(Pt){return Pt.toISOString()},D:function(Pt,Ct,g){return Ct.weekdays.shorthand[G.w(Pt,Ct,g)]},F:function(Pt,Ct,g){return Et(G.n(Pt,Ct,g)-1,!1,Ct)},G:function(Pt,Ct,g){return d(G.h(Pt,Ct,g))},H:function(Pt){return d(Pt.getHours())},J:function(Pt,Ct){return Ct.ordinal!==void 0?Pt.getDate()+Ct.ordinal(Pt.getDate()):Pt.getDate()},K:function(Pt,Ct){return Ct.amPM[S(Pt.getHours()>11)]},M:function(Pt,Ct){return Et(Pt.getMonth(),!0,Ct)},S:function(Pt){return d(Pt.getSeconds())},U:function(Pt){return Pt.getTime()/1e3},W:function(Pt,Ct,g){return g.getWeek(Pt)},Y:function(Pt){return d(Pt.getFullYear(),4)},d:function(Pt){return d(Pt.getDate())},h:function(Pt){return Pt.getHours()%12?Pt.getHours()%12:12},i:function(Pt){return d(Pt.getMinutes())},j:function(Pt){return Pt.getDate()},l:function(Pt,Ct){return Ct.weekdays.longhand[Pt.getDay()]},m:function(Pt){return d(Pt.getMonth()+1)},n:function(Pt){return Pt.getMonth()+1},s:function(Pt){return Pt.getSeconds()},u:function(Pt){return Pt.getTime()},w:function(Pt){return Pt.getDay()},y:function(Pt){return String(Pt.getFullYear()).substring(2)}},at=function(Pt){var Ct=Pt.config,g=Ct===void 0?c:Ct,ve=Pt.l10n,ue=ve===void 0?u:ve,ye=Pt.isMobile,De=ye===void 0?!1:ye;
vendor: 4,564 bytes, line 30
30return function(Te,We,ii){var Ee=ii||ue;return g.formatDate!==void 0&&!De?g.formatDate(Te,We,Ee):We.split("").map(function(Ei,ji,wn){return G[Ei]&&wn[ji-1]!=="\\"?G[Ei](Te,Ee,g):Ei!=="\\"?Ei:""}).join("")}},ut=function(Pt){var Ct=Pt.config,g=Ct===void 0?c:Ct,ve=Pt.l10n,ue=ve===void 0?u:ve;return function(ye,De,Te,We){if(!(ye!==0&&!ye)){var ii=We||ue,Ee,Ei=ye;if(ye instanceof Date)Ee=new Date(ye.getTime());else if(typeof ye!="string"&&ye.toFixed!==void 0)Ee=new Date(ye);else if(typeof ye=="string"){var ji=De||(g||c).dateFormat,wn=String(ye).trim();if(wn==="today")Ee=new Date,Te=!0;else if(g&&g.parseDate)Ee=g.parseDate(ye,ji);else if(/Z$/.test(wn)||/GMT$/.test(wn))Ee=new Date(ye);else{Ee=!g||!g.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0));for(var Ni=void 0,pn=[],Cn=0,An=0,Ri="";Cn<ji.length;Cn++){var Sn=ji[Cn],Lr=Sn==="\\",vn=ji[Cn-1]==="\\"||Lr;if(R[Sn]&&!vn){Ri+=R[Sn];var Ji=new RegExp(Ri).exec(ye);Ji&&(Ni=!0)&&pn[Sn!=="Y"?"push":"unshift"]({fn:x[Sn],val:Ji[++An]})}else Lr||(Ri+=".");pn.forEach(function(Gi){var wr=Gi.fn,Yn=Gi.val;return Ee=wr(Ee,Yn,ii)||Ee})}Ee=Ni?Ee:void 0}}if(!(Ee instanceof Date&&!isNaN(Ee.getTime()))){g.errorHandler(new Error("Invalid date provided: "+Ei));return}return Te===!0&&Ee.setHours(0,0,0,0),Ee}}};function A(Pt,Ct,g){return g===void 0&&(g=!0),g!==!1?new Date(Pt.getTime()).setHours(0,0,0,0)-new Date(Ct.getTime()).setHours(0,0,0,0):Pt.getTime()-Ct.getTime()}var Vt=function(Pt,Ct,g){return Pt>Math.min(Ct,g)&&Pt<Math.max(Ct,g)},Ot={DAY:864e5};function Be(Pt){var Ct=Pt.defaultHour,g=Pt.defaultMinute,ve=Pt.defaultSeconds;if(Pt.minDate!==void 0){var ue=Pt.minDate.getHours(),ye=Pt.minDate.getMinutes(),De=Pt.minDate.getSeconds();Ct<ue&&(Ct=ue),Ct===ue&&g<ye&&(g=ye),Ct===ue&&g===ye&&ve<De&&(ve=Pt.minDate.getSeconds())}if(Pt.maxDate!==void 0){var Te=Pt.maxDate.getHours(),We=Pt.maxDate.getMinutes();Ct=Math.min(Ct,Te),Ct===Te&&(g=Math.min(We,g)),Ct===Te&&g===We&&(ve=Pt.maxDate.getSeconds())}return{hours:Ct,minutes:g,seconds:ve}}typeof Object.assign!="function"&&(Object.assign=function(Pt){for(var Ct=[],g=1;g<arguments.length;g++)Ct[g-1]=arguments[g];if(!Pt)throw TypeError("Cannot convert undefined or null to object");for(var ve=function(Te){Te&&Object.keys(Te).forEach(function(We){return Pt[We]=Te[We]})},ue=0,ye=Ct;ue<ye.length;ue++){var De=ye[ue];ve(De)}return Pt});var xe=300;function me(Pt,Ct){var g={config:t(t({},c),ot.defaultConfig),l10n:u};g.parseDate=ut({config:g.config,l10n:g.l10n}),g._handlers=[],g.pluginElements=[],g.loadedPlugins=[],g._bind=Ni,g._setHoursFromDate=Ei,g._positionCalendar=yr,g.changeMonth=qn,g.changeYear=wi,g.clear=nn,g.close=En,g._createElement=nt,g.destroy=Ti,g.isEnabled=Wn,g.jumpToDate=An,g.open=jn,g.redraw=Ln,g.set=Zt,g.setDate=oi,g.toggle=Oi;function ve(){g.utils={getDaysInMonth:function(dt,X){return dt===void 0&&(dt=g.currentMonth),X===void 0&&(X=g.currentYear),dt===1&&(X%4===0&&X%100!==0||X%400===0)?29:g.l10n.daysInMonth[dt]}}}function ue(){g.element=g.input=Pt,g.isOpen=!1,un(),cr(),ki(),Ke(),ve(),g.isMobile||Lr(),Cn(),(g.selectedDates.length||g.config.noCalendar)&&(g.config.enableTime&&Ei(g.config.noCalendar?g.latestSelectedDateObj:void 0),xi(!1)),De();var dt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!g.isMobile&&dt&&yr(),ci("onReady")}function ye(dt){return dt.bind(g)}function De(){var dt=g.config;dt.weekNumbers===!1&&dt.showMonths===1||dt.noCalendar!==!0&&window.requestAnimationFrame(function(){if(g.calendarContainer!==void 0&&(g.calendarContainer.style.visibility="hidden",g.calendarContainer.style.display="block"),g.daysContainer!==void 0){var X=(g.days.offsetWidth+1)*dt.showMonths;g.daysContainer.style.width=X+"px",g.calendarContainer.style.width=X+(g.weekWrapper!==void 0?g.weekWrapper.offsetWidth:0)+"px",g.calendarContainer.style.removeProperty("visibility"),g.calendarContainer.style.removeProperty("display")}})}function Te(dt){if(g.selectedDates.length===0){var X=g.config.minDate===void 0||A(new Date,g.config.minDate)>=0?new Date:new Date(g.config.minDate.getTime()),_t=Be(g.config);X.setHours(_t.hours,_t.minutes,_t.seconds,X.getMilliseconds()),g.selectedDates=[X],g.latestSelectedDateObj=X}dt!==void 0&&dt.type!=="blur"&&Qi(dt);var jt=g._input.value;Ee(),xi(),g._input.value!==jt&&g._debouncedChange()}function We(dt,X){return dt%12+12*S(X===g.l10n.amPM[1])}function ii(dt){switch(dt%24){case 0:case 12:return 12;default:return dt%12}}function Ee(){if(!(g.hourElement===void 0||g.minuteElement===void 0)){var dt=(parseInt(g.hourElement.value.slice(-2),10)||0)%24,X=(p
vendor: 14,396 bytes, line 30
30arseInt(g.minuteElement.value,10)||0)%60,_t=g.secondElement!==void 0?(parseInt(g.secondElement.value,10)||0)%60:0;g.amPM!==void 0&&(dt=We(dt,g.amPM.textContent));var jt=g.config.minTime!==void 0||g.config.minDate&&g.minDateHasTime&&g.latestSelectedDateObj&&A(g.latestSelectedDateObj,g.config.minDate,!0)===0,Pe=g.config.maxTime!==void 0||g.config.maxDate&&g.maxDateHasTime&&g.latestSelectedDateObj&&A(g.latestSelectedDateObj,g.config.maxDate,!0)===0;if(Pe){var Ce=g.config.maxTime!==void 0?g.config.maxTime:g.config.maxDate;dt=Math.min(dt,Ce.getHours()),dt===Ce.getHours()&&(X=Math.min(X,Ce.getMinutes())),X===Ce.getMinutes()&&(_t=Math.min(_t,Ce.getSeconds()))}if(jt){var si=g.config.minTime!==void 0?g.config.minTime:g.config.minDate;dt=Math.max(dt,si.getHours()),dt===si.getHours()&&X<si.getMinutes()&&(X=si.getMinutes()),X===si.getMinutes()&&(_t=Math.max(_t,si.getSeconds()))}ji(dt,X,_t)}}function Ei(dt){var X=dt||g.latestSelectedDateObj;X&&ji(X.getHours(),X.getMinutes(),X.getSeconds())}function ji(dt,X,_t){g.latestSelectedDateObj!==void 0&&g.latestSelectedDateObj.setHours(dt%24,X,_t||0,0),!(!g.hourElement||!g.minuteElement||g.isMobile)&&(g.hourElement.value=d(g.config.time_24hr?dt:(12+dt)%12+12*S(dt%12===0)),g.minuteElement.value=d(X),g.amPM!==void 0&&(g.amPM.textContent=g.l10n.amPM[S(dt>=12)]),g.secondElement!==void 0&&(g.secondElement.value=d(_t)))}function wn(dt){var X=ht(dt),_t=parseInt(X.value)+(dt.delta||0);(_t/1e3>1||dt.key==="Enter"&&!/[^\d]/.test(_t.toString()))&&wi(_t)}function Ni(dt,X,_t,jt){if(X instanceof Array)return X.forEach(function(Pe){return Ni(dt,Pe,_t,jt)});if(dt instanceof Array)return dt.forEach(function(Pe){return Ni(Pe,X,_t,jt)});dt.addEventListener(X,_t,jt),g._handlers.push({remove:function(){return dt.removeEventListener(X,_t)}})}function pn(){ci("onChange")}function Cn(){if(g.config.wrap&&["open","close","toggle","clear"].forEach(function(_t){Array.prototype.forEach.call(g.element.querySelectorAll("[data-"+_t+"]"),function(jt){return Ni(jt,"click",g[_t])})}),g.isMobile){Pi();return}var dt=I(Mn,50);if(g._debouncedChange=I(pn,xe),g.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&Ni(g.daysContainer,"mouseover",function(_t){g.config.mode==="range"&&nr(ht(_t))}),Ni(g._input,"keydown",Hn),g.calendarContainer!==void 0&&Ni(g.calendarContainer,"keydown",Hn),!g.config.inline&&!g.config.static&&Ni(window,"resize",dt),window.ontouchstart!==void 0?Ni(window.document,"touchstart",Cr):Ni(window.document,"mousedown",Cr),Ni(window.document,"focus",Cr,{capture:!0}),g.config.clickOpens===!0&&(Ni(g._input,"focus",g.open),Ni(g._input,"click",g.open)),g.daysContainer!==void 0&&(Ni(g.monthNav,"click",vi),Ni(g.monthNav,["keyup","increment"],wn),Ni(g.daysContainer,"click",Rt)),g.timeContainer!==void 0&&g.minuteElement!==void 0&&g.hourElement!==void 0){var X=function(_t){return ht(_t).select()};Ni(g.timeContainer,["increment"],Te),Ni(g.timeContainer,"blur",Te,{capture:!0}),Ni(g.timeContainer,"click",Ri),Ni([g.hourElement,g.minuteElement],["focus","click"],X),g.secondElement!==void 0&&Ni(g.secondElement,"focus",function(){return g.secondElement&&g.secondElement.select()}),g.amPM!==void 0&&Ni(g.amPM,"click",function(_t){Te(_t),pn()})}g.config.allowInput&&Ni(g._input,"blur",ar)}function An(dt,X){var _t=dt!==void 0?g.parseDate(dt):g.latestSelectedDateObj||(g.config.minDate&&g.config.minDate>g.now?g.config.minDate:g.config.maxDate&&g.config.maxDate<g.now?g.config.maxDate:g.now),jt=g.currentYear,Pe=g.currentMonth;try{_t!==void 0&&(g.currentYear=_t.getFullYear(),g.currentMonth=_t.getMonth())}catch(Ce){Ce.message="Invalid date supplied: "+_t,g.config.errorHandler(Ce)}X&&g.currentYear!==jt&&(ci("onYearChange"),Nn()),X&&(g.currentYear!==jt||g.currentMonth!==Pe)&&ci("onMonthChange"),g.redraw()}function Ri(dt){var X=ht(dt);~X.className.indexOf("arrow")&&Sn(dt,X.classList.contains("arrowUp")?1:-1)}function Sn(dt,X,_t){var jt=dt&&ht(dt),Pe=_t||jt&&jt.parentNode&&jt.parentNode.firstChild,Ce=tn("increment");Ce.delta=X,Pe&&Pe.dispatchEvent(Ce)}function Lr(){var dt=window.document.createDocumentFragment();if(g.calendarContainer=nt("div","flatpickr-calendar"),g.calendarContainer.tabIndex=-1,!g.config.noCalendar){if(dt.appendChild($n()),g.innerContainer=nt("div","flatpickr-innerContainer"),g.config.weekNumbers){var X=Pr(),_t=X.weekWrapper,jt=X.weekNumbers;g.innerContainer.appendChild(_t),g.weekNumbers=jt,g.weekWrapper=_t}g.rContainer=nt("div","flatpickr-rContainer"),g.rContainer.appendChild(vr()),g.daysContainer||(g.daysContainer=nt("div","flatpickr-days"),g.daysContainer.tabIndex=-1),qi(),g.rContainer.appendChild(g.daysContainer),g.innerContainer.appendChild(g.rContainer),dt.appendChild(g.innerContainer)}g.config.enableTime&&dt.appendChild(Qn()),ct(g.calendarContainer,"rangeMode",g.config.mode==="range"),ct(g.calendarContainer,"animate",g.config.animate===!0),ct(g.calendarContainer,"multiMonth",g.config.showMonths>1),g.calendarContainer.appendChild(dt);var Pe=g.config.appendTo!==void 0&&g.config.appendTo.nodeType!==void 0;if((g.config.inline||g.config.static)&&(g.calendarContainer.classList.add(g.config.inline?"inline":"static"),g.config.inline&&(!Pe&&g.element.parentNode?g.element.parentNode.insertBefore(g.calendarContainer,g._input.nextSibling):g.config.appendTo!==void 0&&g.config.appendTo.appendChild(g.calendarContainer)),g.config.static)){var Ce=nt("div","flatpickr-wrapper");g.element.parentNode&&g.element.parentNode.insertBefore(Ce,g.element),Ce.appendChild(g.element),g.altInput&&Ce.appendChild(g.altInput),Ce.appendChild(g.calendarContainer)}!g.config.static&&!g.config.inline&&(g.config.appendTo!==void 0?g.config.appendTo:window.document.body).appendChild(g.calendarContainer)}function vn(dt,X,_t,jt){var Pe=Wn(X,!0),Ce=nt("span","flatpickr-day "+dt,X.getDate().toString());return Ce.dateObj=X,Ce.$i=jt,Ce.setAttribute("aria-label",g.formatDate(X,g.config.ariaDateFormat)),dt.indexOf("hidden")===-1&&A(X,g.now)===0&&(g.todayDateElem=Ce,Ce.classList.add("today"),Ce.setAttribute("aria-current","date")),Pe?(Ce.tabIndex=-1,Ui(X)&&(Ce.classList.add("selected"),g.selectedDateElem=Ce,g.config.mode==="range"&&(ct(Ce,"startRange",g.selectedDates[0]&&A(X,g.selectedDates[0],!0)===0),ct(Ce,"endRange",g.selectedDates[1]&&A(X,g.selectedDates[1],!0)===0),dt==="nextMonthDay"&&Ce.classList.add("inRange")))):Ce.classList.add("flatpickr-disabled"),g.config.mode==="range"&&cn(X)&&!Ui(X)&&Ce.classList.add("inRange"),g.weekNumbers&&g.config.showMonths===1&&dt!=="prevMonthDay"&&_t%7===1&&g.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+g.config.getWeek(X)+"</span>"),ci("onDayCreate",Ce),Ce}function Ji(dt){dt.focus(),g.config.mode==="range"&&nr(dt)}function Gi(dt){for(var X=dt>0?0:g.config.showMonths-1,_t=dt>0?g.config.showMonths:-1,jt=X;jt!=_t;jt+=dt)for(var Pe=g.daysContainer.children[jt],Ce=dt>0?0:Pe.children.length-1,si=dt>0?Pe.children.length:-1,ai=Ce;ai!=si;ai+=dt){var Ai=Pe.children[ai];if(Ai.className.indexOf("hidden")===-1&&Wn(Ai.dateObj))return Ai}}function wr(dt,X){for(var _t=dt.className.indexOf("Month")===-1?dt.dateObj.getMonth():g.currentMonth,jt=X>0?g.config.showMonths:-1,Pe=X>0?1:-1,Ce=_t-g.currentMonth;Ce!=jt;Ce+=Pe)for(var si=g.daysContainer.children[Ce],ai=_t-g.currentMonth===Ce?dt.$i+X:X<0?si.children.length-1:0,Ai=si.children.length,li=ai;li>=0&&li<Ai&&li!=(X>0?Ai:-1);li+=Pe){var ui=si.children[li];if(ui.className.indexOf("hidden")===-1&&Wn(ui.dateObj)&&Math.abs(dt.$i-li)>=Math.abs(X))return Ji(ui)}g.changeMonth(Pe),Yn(Gi(Pe),0)}function Yn(dt,X){var _t=fr(document.activeElement||document.body),jt=dt!==void 0?dt:_t?document.activeElement:g.selectedDateElem!==void 0&&fr(g.selectedDateElem)?g.selectedDateElem:g.todayDateElem!==void 0&&fr(g.todayDateElem)?g.todayDateElem:Gi(X>0?1:-1);jt===void 0?g._input.focus():_t?wr(jt,X):Ji(jt)}function Fn(dt,X){for(var _t=(new Date(dt,X,1).getDay()-g.l10n.firstDayOfWeek+7)%7,jt=g.utils.getDaysInMonth((X-1+12)%12,dt),Pe=g.utils.getDaysInMonth(X,dt),Ce=window.document.createDocumentFragment(),si=g.config.showMonths>1,ai=si?"prevMonthDay hidden":"prevMonthDay",Ai=si?"nextMonthDay hidden":"nextMonthDay",li=jt+1-_t,ui=0;li<=jt;li++,ui++)Ce.appendChild(vn(ai,new Date(dt,X-1,li),li,ui));for(li=1;li<=Pe;li++,ui++)Ce.appendChild(vn("",new Date(dt,X,li),li,ui));for(var Zi=Pe+1;Zi<=42-_t&&(g.config.showMonths===1||ui%7!==0);Zi++,ui++)Ce.appendChild(vn(Ai,new Date(dt,X+1,Zi%Pe),Zi,ui));var kn=nt("div","dayContainer");return kn.appendChild(Ce),kn}function qi(){if(g.daysContainer!==void 0){rt(g.daysContainer),g.weekNumbers&&rt(g.weekNumbers);for(var dt=document.createDocumentFragment(),X=0;X<g.config.showMonths;X++){var _t=new Date(g.currentYear,g.currentMonth,1);_t.setMonth(g.currentMonth+X),dt.appendChild(Fn(_t.getFullYear(),_t.getMonth()))}g.daysContainer.appendChild(dt),g.days=g.daysContainer.firstChild,g.config.mode==="range"&&g.selectedDates.length===1&&nr()}}function Nn(){if(!(g.config.showMonths>1||g.config.monthSelectorType!=="dropdown")){var dt=function(jt){return g.config.minDate!==void 0&&g.currentYear===g.config.minDate.getFullYear()&&jt<g.config.minDate.getMonth()?!1:!(g.config.maxDate!==void 0&&g.currentYear===g.config.maxDate.getFullYear()&&jt>g.config.maxDate.getMonth())};g.monthsDropdownContainer.tabIndex=-1,g.monthsDropdownContainer.innerHTML="";for(var X=0;X<12;X++)if(dt(X)){var _t=nt("option","flatpickr-monthDropdown-month");_t.value=new Date(g.currentYear,X).getMonth().toString(),_t.textContent=Et(X,g.config.shorthandCurrentMonth,g.l10n),_t.tabIndex=-1,g.currentMonth===X&&(_t.selected=!0),g.monthsDropdownContainer.appendChild(_t)}}}function lr(){var dt=nt("div","flatpickr-month"),X=window.document.createDocumentFragment(),_t;g.config.showMonths>1||g.config.monthSelectorType==="static"?_t=nt("span","cur-month"):(g.monthsDropdownContainer=nt("select","flatpickr-monthDropdown-months"),g.monthsDropdownContainer.setAttribute("aria-label",g.l10n.monthAriaLabel),Ni(g.monthsDropdownContainer,"change",function(si){var ai=ht(si),Ai=parseInt(ai.value,10);g.changeMonth(Ai-g.currentMonth),ci("onMonthChange")}),Nn(),_t=g.monthsDropdownContainer);var jt=J("cur-year",{tabindex:"-1"}),Pe=jt.getElementsByTagName("input")[0];Pe.setAttribute("aria-label",g.l10n.yearAriaLabel),g.config.minDate&&Pe.setAttribute("min",g.config.minDate.getFullYear().toString()),g.config.maxDate&&(Pe.setAttribute("max",g.config.maxDate.getFullYear().toString()),Pe.disabled=!!g.config.minDate&&g.config.minDate.getFullYear()===g.config.maxDate.getFullYear());var Ce=nt("div","flatpickr-current-month");return Ce.appendChild(_t),Ce.appendChild(jt),X.appendChild(Ce),dt.appendChild(X),{container:dt,yearElement:Pe,monthElement:_t}}function ti(){rt(g.monthNav),g.monthNav.appendChild(g.prevMonthNav),g.config.showMonths&&(g.yearElements=[],g.monthElements=[]);for(var dt=g.config.showMonths;dt--;){var X=lr();g.yearElements.push(X.yearElement),g.monthElements.push(X.monthElement),g.monthNav.appendChild(X.container)}g.monthNav.appendChild(g.nextMonthNav)}function $n(){return g.monthNav=nt("div","flatpickr-months"),g.yearElements=[],g.monthElements=[],g.prevMonthNav=nt("span","flatpickr-prev-month"),g.prevMonthNav.innerHTML=g.config.prevArrow,g.nextMonthNav=nt("span","flatpickr-next-month"),g.nextMonthNav.innerHTML=g.config.nextArrow,ti(),Object.defineProperty(g,"_hidePrevMonthArrow",{get:function(){return g.__hidePrevMonthArrow},set:function(dt){g.__hidePrevMonthArrow!==dt&&(ct(g.prevMonthNav,"flatpickr-disabled",dt),g.__hidePrevMonthArrow=dt)}}),Object.defineProperty(g,"_hideNextMonthArrow",{get:function(){return g.__hideNextMonthArrow},set:function(dt){g.__hideNextMonthArrow!==dt&&(ct(g.nextMonthNav,"flatpickr-disabled",dt),g.__hideNextMonthArrow=dt)}}),g.currentYearElement=g.yearElements[0],$i(),g.monthNav}function Qn(){g.calendarContainer.classList.add("hasTime"),g.config.noCalendar&&g.calendarContainer.classList.add("noCalendar");var dt=Be(g.config);g.timeContainer=nt("div","flatpickr-time"),g.timeContainer.tabIndex=-1;var X=nt("span","flatpickr-time-separator",":"),_t=J("flatpickr-hour",{"aria-label":g.l10n.hourAriaLabel});g.hourElement=_t.getElementsByTagName("input")[0];var jt=J("flatpickr-minute",{"aria-label":g.l10n.minuteAriaLabel});if(g.minuteElement=jt.getElementsByTagName("input")[0],g.hourElement.tabIndex=g.minuteElement.tabIndex=-1,g.hourElement.value=d(g.latestSelectedDateObj?g.latestSelectedDateObj.getHours():g.config.time_24hr?dt.hours:ii(dt.hours)),g.minuteElement.value=d(g.latestSelectedDateObj?g.latestSelectedDateObj.getMinutes():dt.minutes),g.hourElement.setAttribute("step",g.config.hourIncrement.toString()),g.minuteElement.setAttribute("step",g.config.minuteIncrement.toString()),g.hourElement.setAttribute("min",g.config.time_24hr?"0":"1"),g.hourElement.setAttribute("max",g.config.time_24hr?"23":"12"),g.hourElement.setAttribute("maxlength","2"),g.minuteElement.setAttribute("min","0"),g.minuteElement.setAttribute("max","59"),g.minuteElement.setAttribute("maxlength","2"),g.timeContainer.appendChild(_t),g.timeContainer.appendChild(X),g.timeContainer.appendChild(jt),g.config.time_24hr&&g.timeContainer.classList.add("time24hr"),g.config.enableSeconds){g.timeContainer.classList.add("hasSeconds");var Pe=J("flatpickr-second");g.secondElement=Pe.getElementsByTagName("input")[0],g.secondElement.value=d(g.latestSelectedDateObj?g.latestSelectedDateObj.getSeconds():dt.seconds),g.secondElement.setAttribute("step",g.minuteElement.getAttribute("step")),g.secondElement.setAttribute("min","0"),g.secondElement.setAttribute("max","59"),g.secondElement.setAttribute("maxlength","2"),g.timeContainer.appendChild(nt("span","flatpickr-time-separator",":")),g.timeContainer.appendChild(Pe)}return g.config.time_24hr||(g.amPM=nt("span","flatpickr-am-pm",g.l10n.amPM[S((g.latestSelectedDateObj?g.hourElement.value:g.config.defaultHour)>11)]),g.amPM.title=g.l10n.toggleTitle,g.amPM.tabIndex=-1,g.timeContainer.appendChild(g.amPM)),g.timeContainer}function vr(){g.weekdayContainer?rt(g.weekdayContainer):g.weekdayContainer=nt("div","flatpickr-weekdays");for(var dt=g.config.showMonths;dt--;){var X=nt("div","flatpickr-weekdaycontainer");g.weekdayContainer.appendChild(X)}return kr(),g.weekdayContainer}function kr(){if(g.weekdayContainer){var dt=g.l10n.firstDayOfWeek,X=s(g.l10n.weekdays.shorthand);dt>0&&dt<X.length&&(X=s(X.splice(dt,X.length),X.splice(0,dt)));for(var _t=g.config.showMonths;_t--;)g.weekdayContainer.children[_t].innerHTML=`
31      <span class='flatpickr-weekday'>
32        `+X.join("</span><span class='flatpickr-weekday'>")+`
33      </span>
34      `}}function Pr(){g.calendarContainer.classList.add("hasWeeks");var dt=nt("div","flatpickr-weekwrapper");dt.appendChild(nt("span","flatpickr-weekday",g.l10n.weekAbbreviation));var X=nt("div","flatpickr-weeks");return dt.appendChild(X),{weekWrapper:dt,weekNumbers:X}}function qn(dt,X){X===void 0&&(X=!0);var _t=X?dt:dt-g.currentMonth;_t<0&&g._hidePrevMonthArrow===!0||_t>0&&g._hideNextMonthArrow===!0||(g.currentMonth+=_t,(g.currentMonth<0||g.currentMonth>11)&&(g.currentYear+=g.currentMonth>11?1:-1,g.currentMonth=(g.currentMonth+12)%12,ci("onYearChange"),Nn()),qi(),ci("onMonthChange"),$i())}function nn(dt,X){if(dt===void 0&&(dt=!0),X===void 0&&(X=!0),g.input.value="",g.altInput!==void 0&&(g.altInput.value=""),g.mobileInput!==void 0&&(g.mobileInput.value=""),g.selectedDates=[],g.latestSelectedDateObj=void 0,X===!0&&(g.currentYear=g._initialDate.getFullYear(),g.currentMonth=g._initialDate.getMonth()),g.config.enableTime===!0){var _t=Be(g.config),jt=_t.hours,Pe=_t.minutes,Ce=_t.seconds;ji(jt,Pe,Ce)}g.redraw(),dt&&ci("onChange")}function En(){g.isOpen=!1,g.isMobile||(g.calendarContainer!==void 0&&g.calendarContainer.classList.remove("open"),g._input!==void 0&&g._input.classList.remove("active")),ci("onClose")}function Ti(){g.config!==void 0&&ci("onDestroy");for(var dt=g._handlers.length;dt--;)g._handlers[dt].remove();if(g._handlers=[],g.mobileInput)g.mobileInput.parentNode&&g.mobileInput.parentNode.removeChild(g.mobileInput),g.mobileInput=void 0;else if(g.calendarContainer&&g.calendarContainer.parentNode)if(g.config.static&&g.calendarContainer.parentNode){var X=g.calendarContainer.parentNode;if(X.lastChild&&X.removeChild(X.lastChild),X.parentNode){for(;X.firstChild;)X.parentNode.insertBefore(X.firstChild,X);X.parentNode.removeChild(X)}}else g.calendarContainer.parentNode.removeChild(g.calendarContainer);g.altInput&&(g.input.type="text",g.altInput.parentNode&&g.altInput.parentNode.removeChild(g.altInput),delete g.altInput),g.input&&(g.input.type=g.input._type,g.input.classList.remove("flatpickr-input"),g.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(_t){try{delete g[_t]}catch{}})}function sn(dt){return g.config.appendTo&&g.config.appendTo.contains(dt)?!0:g.calendarContainer.contains(dt)}function Cr(dt){if(g.isOpen&&!g.config.inline){var X=ht(dt),_t=sn(X),jt=X===g.input||X===g.altInput||g.element.contains(X)||dt.path&&dt.path.indexOf&&(~dt.path.indexOf(g.input)||~dt.path.indexOf(g.altInput)),Pe=dt.type==="blur"?jt&&dt.relatedTarget&&!sn(dt.relatedTarget):!jt&&!_t&&!sn(dt.relatedTarget),Ce=!g.config.ignoredFocusElements.some(function(si){return si.contains(X)});Pe&&Ce&&(g.timeContainer!==void 0&&g.minuteElement!==void 0&&g.hourElement!==void 0&&g.input.value!==""&&g.input.value!==void 0&&Te(),g.close(),g.config&&g.config.mode==="range"&&g.selectedDates.length===1&&(g.clear(!1),g.redraw()))}}function wi(dt){if(!(!dt||g.config.minDate&&dt<g.config.minDate.getFullYear()||g.config.maxDate&&dt>g.config.maxDate.getFullYear())){var X=dt,_t=g.currentYear!==X;g.currentYear=X||g.currentYear,g.config.maxDate&&g.currentYear===g.config.maxDate.getFullYear()?g.currentMonth=Math.min(g.config.maxDate.getMonth(),g.currentMonth):g.config.minDate&&g.currentYear===g.config.minDate.getFullYear()&&(g.currentMonth=Math.max(g.config.minDate.getMonth(),g.currentMonth)),_t&&(g.redraw(),ci("onYearChange"),Nn())}}function Wn(dt,X){var _t;X===void 0&&(X=!0);var jt=g.parseDate(dt,void 0,X);if(g.config.minDate&&jt&&A(jt,g.config.minDate,X!==void 0?X:!g.minDateHasTime)<0||g.config.maxDate&&jt&&A(jt,g.config.maxDate,X!==void 0?X:!g.maxDateHasTime)>0)return!1;if(!g.config.enable&&g.config.disable.length===0)return!0;
vendor: 22,226 bytes, line 34
34if(jt===void 0)return!1;for(var Pe=!!g.config.enable,Ce=(_t=g.config.enable)!==null&&_t!==void 0?_t:g.config.disable,si=0,ai=void 0;si<Ce.length;si++){if(ai=Ce[si],typeof ai=="function"&&ai(jt))return Pe;if(ai instanceof Date&&jt!==void 0&&ai.getTime()===jt.getTime())return Pe;if(typeof ai=="string"){var Ai=g.parseDate(ai,void 0,!0);return Ai&&Ai.getTime()===jt.getTime()?Pe:!Pe}else if(typeof ai=="object"&&jt!==void 0&&ai.from&&ai.to&&jt.getTime()>=ai.from.getTime()&&jt.getTime()<=ai.to.getTime())return Pe}return!Pe}function fr(dt){return g.daysContainer!==void 0?dt.className.indexOf("hidden")===-1&&dt.className.indexOf("flatpickr-disabled")===-1&&g.daysContainer.contains(dt):!1}function ar(dt){var X=dt.target===g._input;X&&(g.selectedDates.length>0||g._input.value.length>0)&&!(dt.relatedTarget&&sn(dt.relatedTarget))&&g.setDate(g._input.value,!0,dt.target===g.altInput?g.config.altFormat:g.config.dateFormat)}function Hn(dt){var X=ht(dt),_t=g.config.wrap?Pt.contains(X):X===g._input,jt=g.config.allowInput,Pe=g.isOpen&&(!jt||!_t),Ce=g.config.inline&&_t&&!jt;if(dt.keyCode===13&&_t){if(jt)return g.setDate(g._input.value,!0,X===g.altInput?g.config.altFormat:g.config.dateFormat),X.blur();g.open()}else if(sn(X)||Pe||Ce){var si=!!g.timeContainer&&g.timeContainer.contains(X);switch(dt.keyCode){case 13:si?(dt.preventDefault(),Te(),Tn()):Rt(dt);break;case 27:dt.preventDefault(),Tn();break;case 8:case 46:_t&&!g.config.allowInput&&(dt.preventDefault(),g.clear());break;case 37:case 39:if(!si&&!_t){if(dt.preventDefault(),g.daysContainer!==void 0&&(jt===!1||document.activeElement&&fr(document.activeElement))){var ai=dt.keyCode===39?1:-1;dt.ctrlKey?(dt.stopPropagation(),qn(ai),Yn(Gi(1),0)):Yn(void 0,ai)}}else g.hourElement&&g.hourElement.focus();break;case 38:case 40:dt.preventDefault();var Ai=dt.keyCode===40?1:-1;g.daysContainer&&X.$i!==void 0||X===g.input||X===g.altInput?dt.ctrlKey?(dt.stopPropagation(),wi(g.currentYear-Ai),Yn(Gi(1),0)):si||Yn(void 0,Ai*7):X===g.currentYearElement?wi(g.currentYear-Ai):g.config.enableTime&&(!si&&g.hourElement&&g.hourElement.focus(),Te(dt),g._debouncedChange());break;case 9:if(si){var li=[g.hourElement,g.minuteElement,g.secondElement,g.amPM].concat(g.pluginElements).filter(function(kn){return kn}),ui=li.indexOf(X);if(ui!==-1){var Zi=li[ui+(dt.shiftKey?-1:1)];dt.preventDefault(),(Zi||g._input).focus()}}else!g.config.noCalendar&&g.daysContainer&&g.daysContainer.contains(X)&&dt.shiftKey&&(dt.preventDefault(),g._input.focus());break}}if(g.amPM!==void 0&&X===g.amPM)switch(dt.key){case g.l10n.amPM[0].charAt(0):case g.l10n.amPM[0].charAt(0).toLowerCase():g.amPM.textContent=g.l10n.amPM[0],Ee(),xi();break;case g.l10n.amPM[1].charAt(0):case g.l10n.amPM[1].charAt(0).toLowerCase():g.amPM.textContent=g.l10n.amPM[1],Ee(),xi();break}(_t||sn(X))&&ci("onKeyDown",dt)}function nr(dt){if(!(g.selectedDates.length!==1||dt&&(!dt.classList.contains("flatpickr-day")||dt.classList.contains("flatpickr-disabled")))){for(var X=dt?dt.dateObj.getTime():g.days.firstElementChild.dateObj.getTime(),_t=g.parseDate(g.selectedDates[0],void 0,!0).getTime(),jt=Math.min(X,g.selectedDates[0].getTime()),Pe=Math.max(X,g.selectedDates[0].getTime()),Ce=!1,si=0,ai=0,Ai=jt;Ai<Pe;Ai+=Ot.DAY)Wn(new Date(Ai),!0)||(Ce=Ce||Ai>jt&&Ai<Pe,Ai<_t&&(!si||Ai>si)?si=Ai:Ai>_t&&(!ai||Ai<ai)&&(ai=Ai));for(var li=0;li<g.config.showMonths;li++)for(var ui=g.daysContainer.children[li],Zi=function(Sr,Rn){var rr=ui.children[Sr],bt=rr.dateObj,gt=bt.getTime(),Mt=si>0&&gt<si||ai>0&&gt>ai;if(Mt)return rr.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(ee){rr.classList.remove(ee)}),"continue";if(Ce&&!Mt)return"continue";["startRange","inRange","endRange","notAllowed"].forEach(function(ee){rr.classList.remove(ee)}),dt!==void 0&&(dt.classList.add(X<=g.selectedDates[0].getTime()?"startRange":"endRange"),_t<X&&gt===_t?rr.classList.add("startRange"):_t>X&&gt===_t&&rr.classList.add("endRange"),gt>=si&&(ai===0||gt<=ai)&&Vt(gt,_t,X)&&rr.classList.add("inRange"))},kn=0,ur=ui.children.length;kn<ur;kn++)Zi(kn,ur)}}function Mn(){g.isOpen&&!g.config.static&&!g.config.inline&&yr()}function jn(dt,X){if(X===void 0&&(X=g._positionElement),g.isMobile===!0){if(dt){dt.preventDefault();var _t=ht(dt);_t&&_t.blur()}g.mobileInput!==void 0&&(g.mobileInput.focus(),g.mobileInput.click()),ci("onOpen");return}else if(g._input.disabled||g.config.inline)return;var jt=g.isOpen;g.isOpen=!0,jt||(g.calendarContainer.classList.add("open"),g._input.classList.add("active"),ci("onOpen"),yr(X)),g.config.enableTime===!0&&g.config.noCalendar===!0&&g.config.allowInput===!1&&(dt===void 0||!g.timeContainer.contains(dt.relatedTarget))&&setTimeout(function(){return g.hourElement.select()},50)}function Gn(dt){return function(X){var _t=g.config["_"+dt+"Date"]=g.parseDate(X,g.config.dateFormat),jt=g.config["_"+(dt==="min"?"max":"min")+"Date"];_t!==void 0&&(g[dt==="min"?"minDateHasTime":"maxDateHasTime"]=_t.getHours()>0||_t.getMinutes()>0||_t.getSeconds()>0),g.selectedDates&&(g.selectedDates=g.selectedDates.filter(function(Pe){return Wn(Pe)}),!g.selectedDates.length&&dt==="min"&&Ei(_t),xi()),g.daysContainer&&(Ln(),_t!==void 0?g.currentYearElement[dt]=_t.getFullYear().toString():g.currentYearElement.removeAttribute(dt),g.currentYearElement.disabled=!!jt&&_t!==void 0&&jt.getFullYear()===_t.getFullYear())}}function un(){var dt=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],X=t(t({},JSON.parse(JSON.stringify(Pt.dataset||{}))),Ct),_t={};g.config.parseDate=X.parseDate,g.config.formatDate=X.formatDate,Object.defineProperty(g.config,"enable",{get:function(){return g.config._enable},set:function(ui){g.config._enable=Ge(ui)}}),Object.defineProperty(g.config,"disable",{get:function(){return g.config._disable},set:function(ui){g.config._disable=Ge(ui)}});var jt=X.mode==="time";if(!X.dateFormat&&(X.enableTime||jt)){var Pe=ot.defaultConfig.dateFormat||c.dateFormat;_t.dateFormat=X.noCalendar||jt?"H:i"+(X.enableSeconds?":S":""):Pe+" H:i"+(X.enableSeconds?":S":"")}if(X.altInput&&(X.enableTime||jt)&&!X.altFormat){var Ce=ot.defaultConfig.altFormat||c.altFormat;_t.altFormat=X.noCalendar||jt?"h:i"+(X.enableSeconds?":S K":" K"):Ce+(" h:i"+(X.enableSeconds?":S":"")+" K")}Object.defineProperty(g.config,"minDate",{get:function(){return g.config._minDate},set:Gn("min")}),Object.defineProperty(g.config,"maxDate",{get:function(){return g.config._maxDate},set:Gn("max")});var si=function(ui){return function(Zi){g.config[ui==="min"?"_minTime":"_maxTime"]=g.parseDate(Zi,"H:i:S")}};Object.defineProperty(g.config,"minTime",{get:function(){return g.config._minTime},set:si("min")}),Object.defineProperty(g.config,"maxTime",{get:function(){return g.config._maxTime},set:si("max")}),X.mode==="time"&&(g.config.noCalendar=!0,g.config.enableTime=!0),Object.assign(g.config,_t,X);for(var ai=0;ai<dt.length;ai++)g.config[dt[ai]]=g.config[dt[ai]]===!0||g.config[dt[ai]]==="true";e.filter(function(ui){return g.config[ui]!==void 0}).forEach(function(ui){g.config[ui]=Z(g.config[ui]||[]).map(ye)}),g.isMobile=!g.config.disableMobile&&!g.config.inline&&g.config.mode==="single"&&!g.config.disable.length&&!g.config.enable&&!g.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var ai=0;ai<g.config.plugins.length;ai++){var Ai=g.config.plugins[ai](g)||{};for(var li in Ai)e.indexOf(li)>-1?g.config[li]=Z(Ai[li]).map(ye).concat(g.config[li]):typeof X[li]>"u"&&(g.config[li]=Ai[li])}X.altInputClass||(g.config.altInputClass=pr().className+" "+g.config.altInputClass),ci("onParseConfig")}function pr(){return g.config.wrap?Pt.querySelector("[data-input]"):Pt}function cr(){typeof g.config.locale!="object"&&typeof ot.l10ns[g.config.locale]>"u"&&g.config.errorHandler(new Error("flatpickr: invalid locale "+g.config.locale)),g.l10n=t(t({},ot.l10ns.default),typeof g.config.locale=="object"?g.config.locale:g.config.locale!=="default"?ot.l10ns[g.config.locale]:void 0),R.K="("+g.l10n.amPM[0]+"|"+g.l10n.amPM[1]+"|"+g.l10n.amPM[0].toLowerCase()+"|"+g.l10n.amPM[1].toLowerCase()+")";var dt=t(t({},Ct),JSON.parse(JSON.stringify(Pt.dataset||{})));dt.time_24hr===void 0&&ot.defaultConfig.time_24hr===void 0&&(g.config.time_24hr=g.l10n.time_24hr),g.formatDate=at(g),g.parseDate=ut({config:g.config,l10n:g.l10n})}function yr(dt){if(typeof g.config.position=="function")return void g.config.position(g,dt);if(g.calendarContainer!==void 0){ci("onPreCalendarPosition");var X=dt||g._positionElement,_t=Array.prototype.reduce.call(g.calendarContainer.children,function(Me,je){return Me+je.offsetHeight},0),jt=g.calendarContainer.offsetWidth,Pe=g.config.position.split(" "),Ce=Pe[0],si=Pe.length>1?Pe[1]:null,ai=X.getBoundingClientRect(),Ai=window.innerHeight-ai.bottom,li=Ce==="above"||Ce!=="below"&&Ai<_t&&ai.top>_t,ui=window.pageYOffset+ai.top+(li?-_t-2:X.offsetHeight+2);if(ct(g.calendarContainer,"arrowTop",!li),ct(g.calendarContainer,"arrowBottom",li),!g.config.inline){var Zi=window.pageXOffset+ai.left,kn=!1,ur=!1;si==="center"?(Zi-=(jt-ai.width)/2,kn=!0):si==="right"&&(Zi-=jt-ai.width,ur=!0),ct(g.calendarContainer,"arrowLeft",!kn&&!ur),ct(g.calendarContainer,"arrowCenter",kn),ct(g.calendarContainer,"arrowRight",ur);var Sr=window.document.body.offsetWidth-(window.pageXOffset+ai.right),Rn=Zi+jt>window.document.body.offsetWidth,rr=Sr+jt>window.document.body.offsetWidth;if(ct(g.calendarContainer,"rightMost",Rn),!g.config.static)if(g.calendarContainer.style.top=ui+"px",!Rn)g.calendarContainer.style.left=Zi+"px",g.calendarContainer.style.right="auto";else if(!rr)g.calendarContainer.style.left="auto",g.calendarContainer.style.right=Sr+"px";else{var bt=Mr();if(bt===void 0)return;var gt=window.document.body.offsetWidth,Mt=Math.max(0,gt/2-jt/2),ee=".flatpickr-calendar.centerMost:before",te=".flatpickr-calendar.centerMost:after",Fe=bt.cssRules.length,ei="{left:"+ai.left+"px;right:auto;}";ct(g.calendarContainer,"rightMost",!1),ct(g.calendarContainer,"centerMost",!0),bt.insertRule(ee+","+te+ei,Fe),g.calendarContainer.style.left=Mt+"px",g.calendarContainer.style.right="auto"}}}}function Mr(){for(var dt=null,X=0;X<document.styleSheets.length;X++){var _t=document.styleSheets[X];try{_t.cssRules}catch{continue}dt=_t;break}return dt??Zn()}function Zn(){var dt=document.createElement("style");return document.head.appendChild(dt),dt.sheet}function Ln(){g.config.noCalendar||g.isMobile||(Nn(),$i(),qi())}function Tn(){g._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(g.close,0):g.close()}function Rt(dt){dt.preventDefault(),dt.stopPropagation();var X=function(ui){return ui.classList&&ui.classList.contains("flatpickr-day")&&!ui.classList.contains("flatpickr-disabled")&&!ui.classList.contains("notAllowed")},_t=q(ht(dt),X);if(_t!==void 0){var jt=_t,Pe=g.latestSelectedDateObj=new Date(jt.dateObj.getTime()),Ce=(Pe.getMonth()<g.currentMonth||Pe.getMonth()>g.currentMonth+g.config.showMonths-1)&&g.config.mode!=="range";if(g.selectedDateElem=jt,g.config.mode==="single")g.selectedDates=[Pe];else if(g.config.mode==="multiple"){var si=Ui(Pe);si?g.selectedDates.splice(parseInt(si),1):g.selectedDates.push(Pe)}else g.config.mode==="range"&&(g.selectedDates.length===2&&g.clear(!1,!1),g.latestSelectedDateObj=Pe,g.selectedDates.push(Pe),A(Pe,g.selectedDates[0],!0)!==0&&g.selectedDates.sort(function(ui,Zi){return ui.getTime()-Zi.getTime()}));if(Ee(),Ce){var ai=g.currentYear!==Pe.getFullYear();g.currentYear=Pe.getFullYear(),g.currentMonth=Pe.getMonth(),ai&&(ci("onYearChange"),Nn()),ci("onMonthChange")}if($i(),qi(),xi(),!Ce&&g.config.mode!=="range"&&g.config.showMonths===1?Ji(jt):g.selectedDateElem!==void 0&&g.hourElement===void 0&&g.selectedDateElem&&g.selectedDateElem.focus(),g.hourElement!==void 0&&g.hourElement!==void 0&&g.hourElement.focus(),g.config.closeOnSelect){var Ai=g.config.mode==="single"&&!g.config.enableTime,li=g.config.mode==="range"&&g.selectedDates.length===2&&!g.config.enableTime;(Ai||li)&&Tn()}pn()}}var Ft={locale:[cr,kr],showMonths:[ti,De,vr],minDate:[An],maxDate:[An],clickOpens:[function(){g.config.clickOpens===!0?(Ni(g._input,"focus",g.open),Ni(g._input,"click",g.open)):(g._input.removeEventListener("focus",g.open),g._input.removeEventListener("click",g.open))}]};function Zt(dt,X){if(dt!==null&&typeof dt=="object"){Object.assign(g.config,dt);for(var _t in dt)Ft[_t]!==void 0&&Ft[_t].forEach(function(jt){return jt()})}else g.config[dt]=X,Ft[dt]!==void 0?Ft[dt].forEach(function(jt){return jt()}):e.indexOf(dt)>-1&&(g.config[dt]=Z(X));g.redraw(),xi(!0)}function Le(dt,X){var _t=[];if(dt instanceof Array)_t=dt.map(function(jt){return g.parseDate(jt,X)});else if(dt instanceof Date||typeof dt=="number")_t=[g.parseDate(dt,X)];else if(typeof dt=="string")switch(g.config.mode){case"single":case"time":_t=[g.parseDate(dt,X)];break;case"multiple":_t=dt.split(g.config.conjunction).map(function(jt){return g.parseDate(jt,X)});break;case"range":_t=dt.split(g.l10n.rangeSeparator).map(function(jt){return g.parseDate(jt,X)});break}else g.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(dt)));g.selectedDates=g.config.allowInvalidPreload?_t:_t.filter(function(jt){return jt instanceof Date&&Wn(jt,!1)}),g.config.mode==="range"&&g.selectedDates.sort(function(jt,Pe){return jt.getTime()-Pe.getTime()})}function oi(dt,X,_t){if(X===void 0&&(X=!1),_t===void 0&&(_t=g.config.dateFormat),dt!==0&&!dt||dt instanceof Array&&dt.length===0)return g.clear(X);Le(dt,_t),g.latestSelectedDateObj=g.selectedDates[g.selectedDates.length-1],g.redraw(),An(void 0,X),Ei(),g.selectedDates.length===0&&g.clear(!1),xi(X),X&&ci("onChange")}function Ge(dt){return dt.slice().map(function(X){return typeof X=="string"||typeof X=="number"||X instanceof Date?g.parseDate(X,void 0,!0):X&&typeof X=="object"&&X.from&&X.to?{from:g.parseDate(X.from,void 0),to:g.parseDate(X.to,void 0)}:X}).filter(function(X){return X})}function Ke(){g.selectedDates=[],g.now=g.parseDate(g.config.now)||new Date;var dt=g.config.defaultDate||((g.input.nodeName==="INPUT"||g.input.nodeName==="TEXTAREA")&&g.input.placeholder&&g.input.value===g.input.placeholder?null:g.input.value);dt&&Le(dt,g.config.dateFormat),g._initialDate=g.selectedDates.length>0?g.selectedDates[0]:g.config.minDate&&g.config.minDate.getTime()>g.now.getTime()?g.config.minDate:g.config.maxDate&&g.config.maxDate.getTime()<g.now.getTime()?g.config.maxDate:g.now,g.currentYear=g._initialDate.getFullYear(),g.currentMonth=g._initialDate.getMonth(),g.selectedDates.length>0&&(g.latestSelectedDateObj=g.selectedDates[0]),g.config.minTime!==void 0&&(g.config.minTime=g.parseDate(g.config.minTime,"H:i")),g.config.maxTime!==void 0&&(g.config.maxTime=g.parseDate(g.config.maxTime,"H:i")),g.minDateHasTime=!!g.config.minDate&&(g.config.minDate.getHours()>0||g.config.minDate.getMinutes()>0||g.config.minDate.getSeconds()>0),g.maxDateHasTime=!!g.config.maxDate&&(g.config.maxDate.getHours()>0||g.config.maxDate.getMinutes()>0||g.config.maxDate.getSeconds()>0)}function ki(){if(g.input=pr(),!g.input){g.config.errorHandler(new Error("Invalid input element specified"));return}g.input._type=g.input.type,g.input.type="text",g.input.classList.add("flatpickr-input"),g._input=g.input,g.config.altInput&&(g.altInput=nt(g.input.nodeName,g.config.altInputClass),g._input=g.altInput,g.altInput.placeholder=g.input.placeholder,g.altInput.disabled=g.input.disabled,g.altInput.required=g.input.required,g.altInput.tabIndex=g.input.tabIndex,g.altInput.type="text",g.input.setAttribute("type","hidden"),!g.config.static&&g.input.parentNode&&g.input.parentNode.insertBefore(g.altInput,g.input.nextSibling)),g.config.allowInput||g._input.setAttribute("readonly","readonly"),g._positionElement=g.config.positionElement||g._input}function Pi(){var dt=g.config.enableTime?g.config.noCalendar?"time":"datetime-local":"date";g.mobileInput=nt("input",g.input.className+" flatpickr-mobile"),g.mobileInput.tabIndex=1,g.mobileInput.type=dt,g.mobileInput.disabled=g.input.disabled,g.mobileInput.required=g.input.required,g.mobileInput.placeholder=g.input.placeholder,g.mobileFormatStr=dt==="datetime-local"?"Y-m-d\\TH:i:S":dt==="date"?"Y-m-d":"H:i:S",g.selectedDates.length>0&&(g.mobileInput.defaultValue=g.mobileInput.value=g.formatDate(g.selectedDates[0],g.mobileFormatStr)),g.config.minDate&&(g.mobileInput.min=g.formatDate(g.config.minDate,"Y-m-d")),g.config.maxDate&&(g.mobileInput.max=g.formatDate(g.config.maxDate,"Y-m-d")),g.input.getAttribute("step")&&(g.mobileInput.step=String(g.input.getAttribute("step"))),g.input.type="hidden",g.altInput!==void 0&&(g.altInput.type="hidden");try{g.input.parentNode&&g.input.parentNode.insertBefore(g.mobileInput,g.input.nextSibling)}catch{}Ni(g.mobileInput,"change",function(X){g.setDate(ht(X).value,!1,g.mobileFormatStr),ci("onChange"),ci("onClose")})}function Oi(dt){if(g.isOpen===!0)return g.close();g.open(dt)}function ci(dt,X){if(g.config!==void 0){var _t=g.config[dt];if(_t!==void 0&&_t.length>0)for(var jt=0;_t[jt]&&jt<_t.length;jt++)_t[jt](g.selectedDates,g.input.value,g,X);dt==="onChange"&&(g.input.dispatchEvent(tn("change")),g.input.dispatchEvent(tn("input")))}}function tn(dt){var X=document.createEvent("Event");return X.initEvent(dt,!0,!0),X}function Ui(dt){for(var X=0;X<g.selectedDates.length;X++)if(A(g.selectedDates[X],dt)===0)return""+X;return!1}function cn(dt){return g.config.mode!=="range"||g.selectedDates.length<2?!1:A(dt,g.selectedDates[0])>=0&&A(dt,g.selectedDates[1])<=0}function $i(){g.config.noCalendar||g.isMobile||!g.monthNav||(g.yearElements.forEach(function(dt,X){var _t=new Date(g.currentYear,g.currentMonth,1);_t.setMonth(g.currentMonth+X),g.config.showMonths>1||g.config.monthSelectorType==="static"?g.monthElements[X].textContent=Et(_t.getMonth(),g.config.shorthandCurrentMonth,g.l10n)+" ":g.monthsDropdownContainer.value=_t.getMonth().toString(),dt.value=_t.getFullYear().toString()}),g._hidePrevMonthArrow=g.config.minDate!==void 0&&(g.currentYear===g.config.minDate.getFullYear()?g.currentMonth<=g.config.minDate.getMonth():g.currentYear<g.config.minDate.getFullYear()),g._hideNextMonthArrow=g.config.maxDate!==void 0&&(g.currentYear===g.config.maxDate.getFullYear()?g.currentMonth+1>g.config.maxDate.getMonth():g.currentYear>g.config.maxDate.getFullYear()))}function Hi(dt){return g.selectedDates.map(function(X){return g.formatDate(X,dt)}).filter(function(X,_t,jt){return g.config.mode!=="range"||g.config.enableTime||jt.indexOf(X)===_t}).join(g.config.mode!=="range"?g.config.conjunction:g.l10n.rangeSeparator)}function xi(dt){dt===void 0&&(dt=!0),g.mobileInput!==void 0&&g.mobileFormatStr&&(g.mobileInput.value=g.latestSelectedDateObj!==void 0?g.formatDate(g.latestSelectedDateObj,g.mobileFormatStr):""),g.input.value=Hi(g.config.dateFormat),g.altInput!==void 0&&(g.altInput.value=Hi(g.config.altFormat)),dt!==!1&&ci("onValueUpdate")}function vi(dt){var X=ht(dt),_t=g.prevMonthNav.contains(X),jt=g.nextMonthNav.contains(X);_t||jt?qn(_t?-1:1):g.yearElements.indexOf(X)>=0?X.select():X.classList.contains("arrowUp")?g.changeYear(g.currentYear+1):X.classList.contains("arrowDown")&&g.changeYear(g.currentYear-1)}function Qi(dt){dt.preventDefault();var X=dt.type==="keydown",_t=ht(dt),jt=_t;g.amPM!==void 0&&_t===g.amPM&&(g.amPM.textContent=g.l10n.amPM[S(g.amPM.textContent===g.l10n.amPM[0])]);var Pe=parseFloat(jt.getAttribute("min")),Ce=parseFloat(jt.getAttribute("max")),si=parseFloat(jt.getAttribute("step")),ai=parseInt(jt.value,10),Ai=dt.delta||(X?dt.which===38?1:-1:0),li=ai+si*Ai;if(typeof jt.value<"u"&&jt.value.length===2){var ui=jt===g.hourElement,Zi=jt===g.minuteElement;li<Pe?(li=Ce+li+S(!ui)+(S(ui)&&S(!g.amPM)),Zi&&Sn(void 0,-1,g.hourElement)):li>Ce&&(li=jt===g.hourElement?li-Ce-S(!g.amPM):Pe,Zi&&Sn(void 0,1,g.hourElement)),g.amPM&&ui&&(si===1?li+ai===23:Math.abs(li-ai)>si)&&(g.amPM.textContent=g.l10n.amPM[S(g.amPM.textContent===g.l10n.amPM[0])]),jt.value=d(li)}}return ue(),g}function mt(Pt,Ct){for(var g=Array.prototype.slice.call(Pt).filter(function(De){return De instanceof HTMLElement}),ve=[],ue=0;ue<g.length;ue++){var ye=g[ue];try{if(ye.getAttribute("data-fp-omit")!==null)continue;ye._flatpickr!==void 0&&(ye._flatpickr.destroy(),ye._flatpickr=void 0),ye._flatpickr=me(ye,Ct||{}),ve.push(ye._flatpickr)}catch(De){console.error(De)}}return ve.length===1?ve[0]:ve}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(Pt){return mt(this,Pt)},HTMLElement.prototype.flatpickr=function(Pt){return mt([this],Pt)});var ot=function(Pt,Ct){return typeof Pt=="string"?mt(window.document.querySelectorAll(Pt),Ct):Pt instanceof Node?mt([Pt],Ct):mt(Pt,Ct)};return ot.defaultConfig={},ot.l10ns={en:t({},u),default:t({},u)},ot.localize=function(Pt){ot.l10ns.default=t(t({},ot.l10ns.default),Pt)},ot.setDefaults=function(Pt){ot.defaultConfig=t(t({},ot.defaultConfig),Pt)},ot.parseDate=ut({}),ot.formatDate=at({}),ot.compareDates=A,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(Pt){return mt(this,Pt)}),Date.prototype.fp_incr=function(Pt){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof Pt=="string"?parseInt(Pt,10):Pt))},typeof window<"u"&&(window.flatpickr=ot),ot}),function(t,s){typeof exports=="object"&&typeof module<"u"?s(exports):typeof define=="function"&&define.amd?define(["exports"],s):(t=typeof globalThis<"u"?globalThis:t||self,s(t.cs={}))}(this,function(t){var s=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},e={weekdays:{shorthand:["Ne","Po","Út","St","Čt","Pá","So"],longhand:["Neděle","Pondělí","Úterý","Středa","Čtvrtek","Pátek","Sobota"]},months:{shorthand:["Led","Ún","Bře","Dub","Kvě","Čer","Čvc","Srp","Zář","Říj","Lis","Pro"],longhand:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"]},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" do ",weekAbbreviation:"Týd.",scrollTitle:"Rolujte pro změnu",toggleTitle:"Přepnout dopoledne/odpoledne",amPM:["dop.","odp."],yearAriaLabel:"Rok",time_24hr:!0};s.l10ns.cs=e;var c=s.l10ns;
34t.Czech=e,t.default=c,Object.defineProperty(t,"__esModule",{value:!0})}),function(t,s){typeof exports=="object"&&typeof module<"u"?s(exports):typeof define=="function"&&define.amd?define(["exports"],s):(t=typeof globalThis<"u"?globalThis:t||self,s(t.sk={}))}(this,function(t){var s=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},e={weekdays:{shorthand:["Ned","Pon","Ut","Str","Štv","Pia","Sob"],longhand:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],longhand:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"]},firstDayOfWeek:1,rangeSeparator:" do ",time_24hr:!0,ordinal:function(){return"."}};s.l10ns.sk=e;var c=s.l10ns;t.Slovak=e,t.default=c,Object.defineProperty(t,"__esModule",{value:!0})}),function(t){typeof module=="object"&&module.exports?module.exports=t():window.intlTelInput=t()}(function(t){return function(){for(var s=[["Afghanistan (‫افغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (‫البحرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["G
34ibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (‫ישראל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (日本)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Macedonia (FYROM) (Македонија)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (‫عُمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫فلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["S
34omalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්‍රී ලංකාව)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية المتحدة‬‎)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (‫الصحراء الغربية‬‎)","eh","212",1,["5288","5289"]],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]],e=0;e<s.length;e++){var c=s[e];s[e]={name:c[0],iso2:c[1],dialCode:c[2],priority:c[3]||0,areaCodes:c[4]||null}}function u(xt,Et){if(!(xt instanceof Et))throw new TypeError("Cannot call a class as a function")}function d(xt,Et){for(var x=0;x<Et.length;x++){var R=Et[x];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(xt,R.key,R)}}function S(xt,Et,x){return Et&&d(xt.prototype,Et),xt}var I={getInstance:function(Et){var x=Et.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[x]},instances:{},documentReady:function(){return document.readyState==="complete"}};typeof window=="object"&&(window.intlTelInputGlobals=I);var Z=0,ct={allowDropdown:!0,autoHideDialCode:!0,autoPlaceholder:"polite",customContainer:"",customPlaceholder:null,dropdownContainer:null,excludeCountries:[],formatOnDisplay:!0,geoIpLookup:null,hiddenInput:"",initialCountry:"",localizedCountries:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:!1,utilsScript:""},nt=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],rt=function(Et,x){for(var R=Object.keys(Et),G=0;G<R.length;G++)x(R[G],Et[R[G]])},q=function(Et){rt(window.intlTelInputGlobals.instances,function(x){window.intlTelInputGlobals.instances[x][Et]()})},J=function(){function xt(Et,x){var R=this;u(this,xt),this.id=Z++,this.telInput=Et,this.activeItem=null,this.highlightedItem=null;var G=x||{};this.options={},rt(ct,function(at,ut){R.options[at]=G.hasOwnProperty(at)?G[at]:ut}),this.hadInitialPlaceholder=!!Et.getAttribute("placeholder")}return S(xt,[{key:"_init",value:function(){var x=this;if(this.options.nationalMode&&(this.options.autoHideDialCode=!1),this.options.separateDialCode&&(this.options.autoHideDialCode=this.options.nationalMode=!1),this.isMobile=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.isMobile&&(document.body.classList.add("iti-mobile"),this.options.dropdownContainer||(this.options.dropdownContainer=document.body)),typeof Promise<"u"){var R=new Promise(function(at,ut){x.resolveAutoCountryPromise=at,x.rejectAutoCountryPromise=ut}),G=new Promise(function(at,ut){x.resolveUtilsScriptPromise=at,x.rejectUtilsScriptPromise=ut});this.promise=Promise.all([R,G])}else this.resolveAutoCountryPromise=this.rejectAutoCountryPromise=function(){},this.resolveUtilsScriptPromise=this.rejectUtilsScriptPromise=function(){};this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests()}},{key:"_processCountryData",value:function(){this._processAllCountries(),this._processCountryCodes(),this._processPreferredCountries(),this.options.localizedCountries&&this._translateCountriesByLocale(),(this.options.onlyCountries.length||this.options.localizedCountries)&&this.countries.sort(this._countryNameSort)}},{key:"_addCountryCode",value:function(x,R,G){R.length>this.countryCodeMaxLen&&(this.countryCodeMaxLen=R.length),this.countryCodes.hasOwnProperty(R)||(this.countryCodes[R]=[]);for(var at=0;at<this.countryCodes[R].length;at++)if(this.countryCodes[R][at]===x)return;var ut=G!==t?G:this.countryCodes[R].length;this.countryCodes[R][ut]=x}},{key:"_processAllCountries",value:function(){if(this.options.onlyCountries.length){var x=this.options.onlyCountries.map(function(G){return G.toLowerCase()});this.countries=s.filter(function(G){return x.indexOf(G.iso2)>-1})}else if(this.options.excludeCountries.length){var R=this.options.excludeCountries.map(function(G){return G.toLowerCase()});this.countries=s.filter(function(G){return R.indexOf(G.iso2)===-1})}else this.countries=s}},{key:"_translateCountriesByLocale",value:function(){for(var x=0;x<this.countries.length;x++){var R=this.countries[x].iso2.toLowerCase();this.options.localizedCountries.hasOwnProperty(R)&&(this.countries[x].name=this.options.localizedCountries[R])}}},{key:"_countryNameSort",value:function(x,R){return x.name.localeCompare(R.name)}},{key:"_processCountryCodes",value:function(){this.countryCodeMaxLen=0,this.dialCodes={},this.countryCodes={};for(var x=0;x<this.countries.length;x++){var R=this.countries[x];this.dialCodes[R.dialCode]||(this.dialCodes[R.dialCode]=!0),this._addCountryCode(R.iso2,R.dialCode,R.priority)}for(var G=0;G<this.countries.length;G++){var at=this.countries[G];
34if(at.areaCodes)for(var ut=this.countryCodes[at.dialCode][0],A=0;A<at.areaCodes.length;A++){for(var Vt=at.areaCodes[A],Ot=1;Ot<Vt.length;Ot++){var Be=at.dialCode+Vt.substr(0,Ot);this._addCountryCode(ut,Be),this._addCountryCode(at.iso2,Be)}this._addCountryCode(at.iso2,at.dialCode+Vt)}}}},{key:"_processPreferredCountries",value:function(){this.preferredCountries=[];for(var x=0;x<this.options.preferredCountries.length;x++){var R=this.options.preferredCountries[x].toLowerCase(),G=this._getCountryData(R,!1,!0);G&&this.preferredCountries.push(G)}}},{key:"_createEl",value:function(x,R,G){var at=document.createElement(x);return R&&rt(R,function(ut,A){return at.setAttribute(ut,A)}),G&&G.appendChild(at),at}},{key:"_generateMarkup",value:function(){!this.telInput.hasAttribute("autocomplete")&&!(this.telInput.form&&this.telInput.form.hasAttribute("autocomplete"))&&this.telInput.setAttribute("autocomplete","off");var x="iti";this.options.allowDropdown&&(x+=" iti--allow-dropdown"),this.options.separateDialCode&&(x+=" iti--separate-dial-code"),this.options.customContainer&&(x+=" ",x+=this.options.customContainer);var R=this._createEl("div",{class:x});if(this.telInput.parentNode.insertBefore(R,this.telInput),this.flagsContainer=this._createEl("div",{class:"iti__flag-container"},R),R.appendChild(this.telInput),this.selectedFlag=this._createEl("div",{class:"iti__selected-flag",role:"combobox","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-owns":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false"},this.flagsContainer),this.selectedFlagInner=this._createEl("div",{class:"iti__flag"},this.selectedFlag),this.options.separateDialCode&&(this.selectedDialCode=this._createEl("div",{class:"iti__selected-dial-code"},this.selectedFlag)),this.options.allowDropdown&&(this.selectedFlag.setAttribute("tabindex","0"),this.dropdownArrow=this._createEl("div",{class:"iti__arrow"},this.selectedFlag),this.countryList=this._createEl("ul",{class:"iti__country-list iti__hide",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":"List of countries"}),this.preferredCountries.length&&(this._appendListItems(this.preferredCountries,"iti__preferred",!0),this._createEl("li",{class:"iti__divider",role:"separator","aria-disabled":"true"},this.countryList)),this._appendListItems(this.countries,"iti__standard"),this.options.dropdownContainer?(this.dropdown=this._createEl("div",{class:"iti iti--container"}),this.dropdown.appendChild(this.countryList)):this.flagsContainer.appendChild(this.countryList)),this.options.hiddenInput){var G=this.options.hiddenInput,at=this.telInput.getAttribute("name");if(at){var ut=at.lastIndexOf("[");ut!==-1&&(G="".concat(at.substr(0,ut),"[").concat(G,"]"))}this.hiddenInput=this._createEl("input",{type:"hidden",name:G}),R.appendChild(this.hiddenInput)}}},{key:"_appendListItems",value:function(x,R,G){for(var at="",ut=0;ut<x.length;ut++){var A=x[ut],Vt=G?"-preferred":"";at+="<li class='iti__country ".concat(R,"' tabIndex='-1' id='iti-").concat(this.id,"__item-").concat(A.iso2).concat(Vt,"' role='option' data-dial-code='").concat(A.dialCode,"' data-country-code='").concat(A.iso2,"' aria-selected='false'>"),at+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(A.iso2,"'></div></div>"),at+="<span class='iti__country-name'>".concat(A.name,"</span>"),at+="<span class='iti__dial-code'>+".concat(A.dialCode,"</span>"),at+="</li>"}this.countryList.insertAdjacentHTML("beforeend",at)}},{key:"_setInitialState",value:function(){var x=this.telInput.getAttribute("value"),R=this.telInput.value,G=x&&x.charAt(0)==="+"&&(!R||R.charAt(0)!=="+"),at=G?x:R,ut=this._getDialCode(at),A=this._isRegionlessNanp(at),Vt=this.options,Ot=Vt.initialCountry,Be=Vt.nationalMode,xe=Vt.autoHideDialCode,me=Vt.separateDialCode;ut&&!A?this._updateFlagFromNumber(at):Ot!=="auto"&&(Ot?this._setFlag(Ot.toLowerCase()):ut&&A?this._setFlag("us"):(this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2,at||this._setFlag(this.defaultCountry)),!at&&!Be&&!xe&&!me&&(this.telInput.value="+".concat(this.selectedCountryData.dialCode))),at&&this._updateV
34alFromNumber(at)}},{key:"_initListeners",value:function(){this._initKeyListeners(),this.options.autoHideDialCode&&this._initBlurListeners(),this.options.allowDropdown&&this._initDropdownListeners(),this.hiddenInput&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var x=this;this._handleHiddenInputSubmit=function(){x.hiddenInput.value=x.getNumber()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_getClosestLabel",value:function(){for(var x=this.telInput;x&&x.tagName!=="LABEL";)x=x.parentNode;return x}},{key:"_initDropdownListeners",value:function(){var x=this;this._handleLabelClick=function(G){x.countryList.classList.contains("iti__hide")?x.telInput.focus():G.preventDefault()};var R=this._getClosestLabel();R&&R.addEventListener("click",this._handleLabelClick),this._handleClickSelectedFlag=function(){x.countryList.classList.contains("iti__hide")&&!x.telInput.disabled&&!x.telInput.readOnly&&x._showDropdown()},this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag),this._handleFlagsContainerKeydown=function(G){var at=x.countryList.classList.contains("iti__hide");at&&["ArrowUp","Up","ArrowDown","Down"," ","Enter"].indexOf(G.key)!==-1&&(G.preventDefault(),G.stopPropagation(),x._showDropdown()),G.key==="Tab"&&x._closeDropdown()},this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var x=this;this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",function(){window.intlTelInputGlobals.loadUtils(x.options.utilsScript)}):this.resolveUtilsScriptPromise(),this.options.initialCountry==="auto"?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,typeof this.options.geoIpLookup=="function"&&this.options.geoIpLookup(function(x){window.intlTelInputGlobals.autoCountry=x.toLowerCase(),setTimeout(function(){return q("handleAutoCountry")})},function(){return q("rejectAutoCountryPromise")}))}},{key:"_initKeyListeners",value:function(){var x=this;this._handleKeyupEvent=function(){x._updateFlagFromNumber(x.telInput.value)&&x._triggerCountryChange()},this.telInput.addEventListener("keyup",this._handleKeyupEvent),this._handleClipboardEvent=function(){setTimeout(x._handleKeyupEvent)},this.telInput.addEventListener("cut",this._handleClipboardEvent),this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_cap",value:function(x){var R=this.telInput.getAttribute("maxlength");return R&&x.length>R?x.substr(0,R):x}},{key:"_initBlurListeners",value:function(){var x=this;this._handleSubmitOrBlurEvent=function(){x._removeEmptyDialCode()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function(){if(this.telInput.value.charAt(0)==="+"){var x=this._getNumeric(this.telInput.value);(!x||this.selectedCountryData.dialCode===x)&&(this.telInput.value="")}}},{key:"_getNumeric",value:function(x){return x.replace(/\D/g,"")}},{key:"_trigger",value:function(x){var R=document.createEvent("Event");R.initEvent(x,!0,!0),this.telInput.dispatchEvent(R)}},{key:"_showDropdown",value:function(){this.countryList.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.activeItem&&(this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0)),this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(x,R,G){G&&!x.classList.contains(R)?x.classList.add(R):!G&&x.classList.contains(R)&&x.classList.remove(R)}},{key:"_setDropdownPosition",value:function(){var x=this;if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.isMobile){var R=this.telInput.getBoundingClientRect(),G=window.pageYOffset||document.documentElement.scrollTop,at=R.top+G,ut=this.countryList.offsetHeight,A=at+this.telInput.offsetHeight+ut<G+window.innerHeight,Vt=at-ut>G;if(this._toggleClass(this.countryList,"iti__country-list--dropup",!A&&Vt),this.options.dropdownContainer){var Ot=!A&&Vt?0:this.telInput.offsetHeight;this.dropdown.style.top="".concat(at+Ot,"px"),this.dropdown.style.left="".concat(R.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return x._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll)}}}},{key:"_getClosestListItem",value:function(x){for(var R=x;R&&R!==this.countryList&&!R.classList.contains("iti__country");)R=R.parentNode;return R===this.countryList?null:R}},{key:"_bindDropdownListeners",value:function(){var x=this;this._handleMouseoverCountryList=function(ut){var A=x._getClosestListItem(ut.target);A&&x._highlightListItem(A,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=function(ut){var A=x._getClosestListItem(ut.target);A&&x._selectListItem(A)},this.countryList.addEventListener("click",this._handleClickCountryList);var R=!0;
34this._handleClickOffToClose=function(){R||x._closeDropdown(),R=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);var G="",at=null;this._handleKeydownOnDropdown=function(ut){ut.preventDefault(),ut.key==="ArrowUp"||ut.key==="Up"||ut.key==="ArrowDown"||ut.key==="Down"?x._handleUpDownKey(ut.key):ut.key==="Enter"?x._handleEnterKey():ut.key==="Escape"?x._closeDropdown():/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(ut.key)&&(at&&clearTimeout(at),G+=ut.key.toLowerCase(),x._searchForCountry(G),at=setTimeout(function(){G=""},1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown)}},{key:"_handleUpDownKey",value:function(x){var R=x==="ArrowUp"||x==="Up"?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;R&&(R.classList.contains("iti__divider")&&(R=x==="ArrowUp"||x==="Up"?R.previousElementSibling:R.nextElementSibling),this._highlightListItem(R,!0))}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(x){for(var R=0;R<this.countries.length;R++)if(this._startsWith(this.countries[R].name,x)){var G=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(this.countries[R].iso2));this._highlightListItem(G,!1),this._scrollTo(G,!0);break}}},{key:"_startsWith",value:function(x,R){return x.substr(0,R.length).toLowerCase()===R}},{key:"_updateValFromNumber",value:function(x){var R=x;if(this.options.formatOnDisplay&&window.intlTelInputUtils&&this.selectedCountryData){var G=!this.options.separateDialCode&&(this.options.nationalMode||R.charAt(0)!=="+"),at=intlTelInputUtils.numberFormat,ut=at.NATIONAL,A=at.INTERNATIONAL,Vt=G?ut:A;R=intlTelInputUtils.formatNumber(R,this.selectedCountryData.iso2,Vt)}R=this._beforeSetNumber(R),this.telInput.value=R}},{key:"_updateFlagFromNumber",value:function(x){var R=x,G=this.selectedCountryData.dialCode,at=G==="1";R&&this.options.nationalMode&&at&&R.charAt(0)!=="+"&&(R.charAt(0)!=="1"&&(R="1".concat(R)),R="+".concat(R)),this.options.separateDialCode&&G&&R.charAt(0)!=="+"&&(R="+".concat(G).concat(R));var ut=this._getDialCode(R,!0),A=this._getNumeric(R),Vt=null;if(ut){var Ot=this.countryCodes[this._getNumeric(ut)],Be=Ot.indexOf(this.selectedCountryData.iso2)!==-1&&A.length<=ut.length-1,xe=G==="1"&&this._isRegionlessNanp(A);if(!xe&&!Be){for(var me=0;me<Ot.length;me++)if(Ot[me]){Vt=Ot[me];break}}}else R.charAt(0)==="+"&&A.length?Vt="":(!R||R==="+")&&(Vt=this.defaultCountry);return Vt!==null?this._setFlag(Vt):!1}},{key:"_isRegionlessNanp",value:function(x){var R=this._getNumeric(x);if(R.charAt(0)==="1"){var G=R.substr(1,3);return nt.indexOf(G)!==-1}return!1}},{key:"_highlightListItem",value:function(x,R){var G=this.highlightedItem;G&&G.classList.remove("iti__highlight"),this.highlightedItem=x,this.highlightedItem.classList.add("iti__highlight"),R&&this.highlightedItem.focus()}},{key:"_getCountryData",value:function(x,R,G){for(var at=R?s:this.countries,ut=0;ut<at.length;ut++)if(at[ut].iso2===x)return at[ut];if(G)return null;throw new Error("No country data for '".concat(x,"'"))}},{key:"_setFlag",value:function(x){var R=this.selectedCountryData.iso2?this.selectedCountryData:{};this.selectedCountryData=x?this._getCountryData(x,!1,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.selectedFlagInner.setAttribute("class","iti__flag iti__".concat(x));var G=x?"".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):"Unknown";if(this.selectedFlag.setAttribute("title",G),this.options.separateDialCode){var at=this.selectedCountryData.dialCode?"+".concat(this.selectedCountryData.dialCode):"";this.selectedDialCode.innerHTML=at;var ut=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth();this.telInput.style.paddingLeft="".concat(ut+10,"px")}if(this._updatePlaceholder(),this.options.allowDropdown){var A=this.activeItem;if(A&&(A.classList.remove("iti__active"),A.setAttribute("aria-selected","false")),x){var Vt=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(x,"-preferred"))||this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(x));Vt.setAttribute("aria-selected","true"),Vt.classList.add("iti__active"),this.activeItem=Vt,this.selectedFlag.setAttribute("aria-activedescendant",Vt.getAttribute("id"))}}return R.iso2!==x}},{key:"_getHiddenSelectedFlagWidth",value:function(){var x=this.telInput.parentNode.cloneNode();x.style.visibility="hidden",document.body.appendChild(x);var R=this.flagsContainer.cloneNode();x.appendChild(R);var G=this.selectedFlag.cloneNode(!0);R.appendChild(G);var at=G.offsetWidth;return x.parentNode.removeChild(x),at}},{key:"_updatePlaceholder",value:function(){var x=this.options.autoPlaceholder==="aggressive"||!this.hadInitialPlaceholder&&this.options.autoPlaceholder==="polite";if(window.intlTelInputUtils&&x){var R=intlTelInputUtils.numberType[this.options.placeholderNumberType],G=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,R):"";G=this._beforeSetNumber(G),typeof this.options.customPlaceholder=="function"&&(G=this.options.customPlaceholder(G,this.selectedCountryData)),this.telInput.setAttribute("placeholder",G)}}},{key:"_selectListItem",value:function(x){var R=this._setFlag(x.getAttribute("data-country-code"));this._closeDropdown(),this._updateDialCode(x.getAttribute("data-dial-code"),!0),this.telInput.focus();var G=this.telInput.value.length;this.telInput.setSelectionRange(G,G),R&&this._triggerCountryChange()}},{key:"_closeDropdown",value:function(){this.countryList.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","fal
34se"),this.dropdownArrow.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._handleKeydownOnDropdown),document.documentElement.removeEventListener("click",this._handleClickOffToClose),this.countryList.removeEventListener("mouseover",this._handleMouseoverCountryList),this.countryList.removeEventListener("click",this._handleClickCountryList),this.options.dropdownContainer&&(this.isMobile||window.removeEventListener("scroll",this._handleWindowScroll),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._trigger("close:countrydropdown")}},{key:"_scrollTo",value:function(x,R){var G=this.countryList,at=window.pageYOffset||document.documentElement.scrollTop,ut=G.offsetHeight,A=G.getBoundingClientRect().top+at,Vt=A+ut,Ot=x.offsetHeight,Be=x.getBoundingClientRect().top+at,xe=Be+Ot,me=Be-A+G.scrollTop,mt=ut/2-Ot/2;if(Be<A)R&&(me-=mt),G.scrollTop=me;else if(xe>Vt){R&&(me+=mt);var ot=ut-Ot;G.scrollTop=me-ot}}},{key:"_updateDialCode",value:function(x,R){var G=this.telInput.value,at="+".concat(x),ut;if(G.charAt(0)==="+"){var A=this._getDialCode(G);A?ut=G.replace(A,at):ut=at}else{if(this.options.nationalMode||this.options.separateDialCode)return;if(G)ut=at+G;else if(R||!this.options.autoHideDialCode)ut=at;else return}this.telInput.value=ut}},{key:"_getDialCode",value:function(x,R){var G="";if(x.charAt(0)==="+")for(var at="",ut=0;ut<x.length;ut++){var A=x.charAt(ut);if(!isNaN(parseInt(A,10))){if(at+=A,R)this.countryCodes[at]&&(G=x.substr(0,ut+1));else if(this.dialCodes[at]){G=x.substr(0,ut+1);break}if(at.length===this.countryCodeMaxLen)break}}return G}},{key:"_getFullNumber",value:function(){var x=this.telInput.value.trim(),R=this.selectedCountryData.dialCode,G,at=this._getNumeric(x);return this.options.separateDialCode&&x.charAt(0)!=="+"&&R&&at?G="+".concat(R):G="",G+x}},{key:"_beforeSetNumber",value:function(x){var R=x;if(this.options.separateDialCode){var G=this._getDialCode(R);if(G){G="+".concat(this.selectedCountryData.dialCode);var at=R[G.length]===" "||R[G.length]==="-"?G.length+1:G.length;R=R.substr(at)}}return this._cap(R)}},{key:"_triggerCountryChange",value:function(){this._trigger("countrychange")}},{key:"handleAutoCountry",value:function(){this.options.initialCountry==="auto"&&(this.defaultCountry=window.intlTelInputGlobals.autoCountry,this.telInput.value||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.telInput.value&&this._updateValFromNumber(this.telInput.value),this._updatePlaceholder()),this.resolveUtilsScriptPromise()}},{key:"destroy",value:function(){var x=this.telInput.form;if(this.options.allowDropdown){this._closeDropdown(),this.selectedFlag.removeEventListener("click",this._handleClickSelectedFlag),this.flagsContainer.removeEventListener("keydown",this._handleFlagsContainerKeydown);var R=this._getClosestLabel();R&&R.removeEventListener("click",this._handleLabelClick)}this.hiddenInput&&x&&x.removeEventListener("submit",this._handleHiddenInputSubmit),this.options.autoHideDialCode&&(x&&x.removeEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.removeEventListener("blur",this._handleSubmitOrBlurEvent)),this.telInput.removeEventListener("keyup",this._handleKeyupEvent),this.telInput.removeEventListener("cut",this._handleClipboardEvent),this.telInput.removeEventListener("paste",this._handleClipboardEvent),this.telInput.removeAttribute("data-intl-tel-input-id");var G=this.telInput.parentNode;G.parentNode.insertBefore(this.telInput,G),G.parentNode.removeChild(G),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}},{key:"getNumber",value:function(x){if(window.intlTelInputUtils){var R=this.selectedCountryData.iso2;return intlTelInputUtils.formatNumber(this._getFullNumber(),R,x)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.selectedCountryData}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var x=this.selectedCountryData.iso2;return intlTelInputUtils.getValidationError(this._getFullNumber(),x)}return-99}},{key:"isValidNumber",value:function(){var x=this._getFullNumber().trim(),R=this.options.nationalMode?this.selectedCountryData.iso2:"";return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(x,R):null}},{key:"setCountry",value:function(x){var R=x.toLowerCase();this.selectedFlagInner.classList.contains("iti__".concat(R))||(this._setFlag(R),this._updateDialCode(this.selectedCountryData.dialCode,!1),this._triggerCountryChange())}},{key:"setNumber",value:function(x){var R=this._updateFlagFromNumber(x);
34this._updateValFromNumber(x),R&&this._triggerCountryChange()}},{key:"setPlaceholderNumberType",value:function(x){this.options.placeholderNumberType=x,this._updatePlaceholder()}}]),xt}();I.getCountryData=function(){return s};var ht=function(Et,x,R){var G=document.createElement("script");G.onload=function(){q("handleUtils"),x&&x()},G.onerror=function(){q("rejectUtilsScriptPromise"),R&&R()},G.className="iti-load-utils",G.async=!0,G.src=Et,document.body.appendChild(G)};return I.loadUtils=function(xt){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,typeof Promise<"u")return new Promise(function(Et,x){return ht(xt,Et,x)});ht(xt)}return null},I.defaults=ct,I.version="17.0.13",function(xt,Et){var x=new J(xt,Et);return x._init(),xt.setAttribute("data-intl-tel-input-id",x.id),window.intlTelInputGlobals.instances[x.id]=x,x}}()}),function(t,s){typeof exports=="object"&&typeof module<"u"?s(exports):typeof define=="function"&&define.amd?define(["exports"],s):(t=typeof globalThis<"u"?globalThis:t||self,s(t.Popper={}))}(this,function(t){function s(bt){if(bt==null)return window;if(bt.toString()!=="[object Window]"){var gt=bt.ownerDocument;return gt&&gt.defaultView||window}return bt}function e(bt){var gt=s(bt).Element;return bt instanceof gt||bt instanceof Element}function c(bt){var gt=s(bt).HTMLElement;return bt instanceof gt||bt instanceof HTMLElement}function u(bt){if(typeof ShadowRoot>"u")return!1;var gt=s(bt).ShadowRoot;return bt instanceof gt||bt instanceof ShadowRoot}var d=Math.max,S=Math.min,I=Math.round;function Z(){var bt=navigator.userAgentData;return bt!=null&&bt.brands?bt.brands.map(function(gt){return gt.brand+"/"+gt.version}).join(" "):navigator.userAgent}function ct(){return!/^((?!chrome|android).)*safari/i.test(Z())}function nt(bt,gt,Mt){gt===void 0&&(gt=!1),Mt===void 0&&(Mt=!1);var ee=bt.getBoundingClientRect(),te=1,Fe=1;gt&&c(bt)&&(te=bt.offsetWidth>0&&I(ee.width)/bt.offsetWidth||1,Fe=bt.offsetHeight>0&&I(ee.height)/bt.offsetHeight||1);var ei=e(bt)?s(bt):window,Me=ei.visualViewport,je=!ct()&&Mt,Ci=(ee.left+(je&&Me?Me.offsetLeft:0))/te,Re=(ee.top+(je&&Me?Me.offsetTop:0))/Fe,zi=ee.width/te,K=ee.height/Fe;return{width:zi,height:K,top:Re,right:Ci+zi,bottom:Re+K,left:Ci,x:Ci,y:Re}}function rt(bt){var gt=s(bt),Mt=gt.pageXOffset,ee=gt.pageYOffset;return{scrollLeft:Mt,scrollTop:ee}}function q(bt){return{scrollLeft:bt.scrollLeft,scrollTop:bt.scrollTop}}function J(bt){return bt===s(bt)||!c(bt)?rt(bt):q(bt)}function ht(bt){return bt?(bt.nodeName||"").toLowerCase():null}function xt(bt){return((e(bt)?bt.ownerDocument:bt.document)||window.document).documentElement}function Et(bt){return nt(xt(bt)).left+rt(bt).scrollLeft}function x(bt){return s(bt).getComputedStyle(bt)}function R(bt){var gt=x(bt),Mt=gt.overflow,ee=gt.overflowX,te=gt.overflowY;return/auto|scroll|overlay|hidden/.test(Mt+te+ee)}function G(bt){var gt=bt.getBoundingClientRect(),Mt=I(gt.width)/bt.offsetWidth||1,ee=I(gt.height)/bt.offsetHeight||1;return Mt!==1||ee!==1}function at(bt,gt,Mt){Mt===void 0&&(Mt=!1);var ee=c(gt),te=c(gt)&&G(gt),Fe=xt(gt),ei=nt(bt,te,Mt),Me={scrollLeft:0,scrollTop:0},je={x:0,y:0};return(ee||!ee&&!Mt)&&((ht(gt)!=="body"||R(Fe))&&(Me=J(gt)),c(gt)?(je=nt(gt,!0),je.x+=gt.clientLeft,je.y+=gt.clientTop):Fe&&(je.x=Et(Fe))),{x:ei.left+Me.scrollLeft-je.x,y:ei.top+Me.scrollTop-je.y,width:ei.width,height:ei.height}}function ut(bt){var gt=nt(bt),Mt=bt.offsetWidth,ee=bt.offsetHeight;return Math.abs(gt.width-Mt)<=1&&(Mt=gt.width),Math.abs(gt.height-ee)<=1&&(ee=gt.height),{x:bt.offsetLeft,y:bt.offsetTop,width:Mt,height:ee}}function A(bt){return ht(bt)==="html"?bt:bt.assignedSlot||bt.parentNode||(u(bt)?bt.host:null)||xt(bt)}function Vt(bt){return["html","body","#document"].indexOf(ht(bt))>=0?bt.ownerDocument.body:c(bt)&&R(bt)?bt:Vt(A(bt))}function Ot(bt,gt){var Mt;gt===void 0&&(gt=[]);var ee=Vt(bt),te=ee===((Mt=bt.ownerDocument)==null?void 0:Mt.body),Fe=s(ee),ei=te?[Fe].concat(Fe.visualViewport||[],R(ee)?ee:[]):ee,Me=gt.concat(ei);return te?Me:Me.concat(Ot(A(ei)))}function Be(bt){return["table","td","th"].indexOf(ht(bt))>=0}function xe(bt){return!c(bt)||x(bt).position==="fixed"?null:bt.offsetParent}function me(bt){var gt=/firefox/i.test(Z()),Mt=/Trident/i.test(Z());if(Mt&&c(bt)){var ee=x(bt);
vendor: 4,706 bytes, line 34
34if(ee.position==="fixed")return null}var te=A(bt);for(u(te)&&(te=te.host);c(te)&&["html","body"].indexOf(ht(te))<0;){var Fe=x(te);if(Fe.transform!=="none"||Fe.perspective!=="none"||Fe.contain==="paint"||["transform","perspective"].indexOf(Fe.willChange)!==-1||gt&&Fe.willChange==="filter"||gt&&Fe.filter&&Fe.filter!=="none")return te;te=te.parentNode}return null}function mt(bt){for(var gt=s(bt),Mt=xe(bt);Mt&&Be(Mt)&&x(Mt).position==="static";)Mt=xe(Mt);return Mt&&(ht(Mt)==="html"||ht(Mt)==="body"&&x(Mt).position==="static")?gt:Mt||me(bt)||gt}var ot="top",Pt="bottom",Ct="right",g="left",ve="auto",ue=[ot,Pt,Ct,g],ye="start",De="end",Te="clippingParents",We="viewport",ii="popper",Ee="reference",Ei=ue.reduce(function(bt,gt){return bt.concat([gt+"-"+ye,gt+"-"+De])},[]),ji=[].concat(ue,[ve]).reduce(function(bt,gt){return bt.concat([gt,gt+"-"+ye,gt+"-"+De])},[]),wn="beforeRead",Ni="read",pn="afterRead",Cn="beforeMain",An="main",Ri="afterMain",Sn="beforeWrite",Lr="write",vn="afterWrite",Ji=[wn,Ni,pn,Cn,An,Ri,Sn,Lr,vn];function Gi(bt){var gt=new Map,Mt=new Set,ee=[];bt.forEach(function(Fe){gt.set(Fe.name,Fe)});function te(Fe){Mt.add(Fe.name);var ei=[].concat(Fe.requires||[],Fe.requiresIfExists||[]);ei.forEach(function(Me){if(!Mt.has(Me)){var je=gt.get(Me);je&&te(je)}}),ee.push(Fe)}return bt.forEach(function(Fe){Mt.has(Fe.name)||te(Fe)}),ee}function wr(bt){var gt=Gi(bt);return Ji.reduce(function(Mt,ee){return Mt.concat(gt.filter(function(te){return te.phase===ee}))},[])}function Yn(bt){var gt;return function(){return gt||(gt=new Promise(function(Mt){Promise.resolve().then(function(){gt=void 0,Mt(bt())})})),gt}}function Fn(bt){for(var gt=arguments.length,Mt=new Array(gt>1?gt-1:0),ee=1;ee<gt;ee++)Mt[ee-1]=arguments[ee];return[].concat(Mt).reduce(function(te,Fe){return te.replace(/%s/,Fe)},bt)}var qi='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Nn='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',lr=["name","enabled","phase","fn","effect","requires","options"];function ti(bt){bt.forEach(function(gt){[].concat(Object.keys(gt),lr).filter(function(Mt,ee,te){return te.indexOf(Mt)===ee}).forEach(function(Mt){switch(Mt){case"name":typeof gt.name!="string"&&console.error(Fn(qi,String(gt.name),'"name"','"string"','"'+String(gt.name)+'"'));break;case"enabled":typeof gt.enabled!="boolean"&&console.error(Fn(qi,gt.name,'"enabled"','"boolean"','"'+String(gt.enabled)+'"'));break;case"phase":Ji.indexOf(gt.phase)<0&&console.error(Fn(qi,gt.name,'"phase"',"either "+Ji.join(", "),'"'+String(gt.phase)+'"'));break;case"fn":typeof gt.fn!="function"&&console.error(Fn(qi,gt.name,'"fn"','"function"','"'+String(gt.fn)+'"'));break;case"effect":gt.effect!=null&&typeof gt.effect!="function"&&console.error(Fn(qi,gt.name,'"effect"','"function"','"'+String(gt.fn)+'"'));break;case"requires":gt.requires!=null&&!Array.isArray(gt.requires)&&console.error(Fn(qi,gt.name,'"requires"','"array"','"'+String(gt.requires)+'"'));break;case"requiresIfExists":Array.isArray(gt.requiresIfExists)||console.error(Fn(qi,gt.name,'"requiresIfExists"','"array"','"'+String(gt.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+gt.name+'" modifier, valid properties are '+lr.map(function(ee){return'"'+ee+'"'}).join(", ")+'; but "'+Mt+'" was provided.')}gt.requires&&gt.requires.forEach(function(ee){bt.find(function(te){return te.name===ee})==null&&console.error(Fn(Nn,String(gt.name),ee,ee))})})})}function $n(bt,gt){var Mt=new Set;return bt.filter(function(ee){var te=gt(ee);if(!Mt.has(te))return Mt.add(te),!0})}function Qn(bt){return bt.split("-")[0]}function vr(bt){var gt=bt.reduce(function(Mt,ee){var te=Mt[ee.name];return Mt[ee.name]=te?Object.assign({},te,ee,{options:Object.assign({},te.options,ee.options),data:Object.assign({},te.data,ee.data)}):ee,Mt},{});return Object.keys(gt).map(function(Mt){return gt[Mt]})}function kr(bt,gt){var Mt=s(bt),ee=xt(bt),te=Mt.visualViewport,Fe=ee.clientWidth,ei=ee.clientHeight,Me=0,je=0;if(te){Fe=te.width,ei=te.height;var Ci=ct();(Ci||!Ci&&gt==="fixed")&&(Me=te.offsetLeft,je=te.offsetTop)}return{width:Fe,height:ei,x:Me+Et(bt),y:je}}function Pr(bt){var gt,Mt=xt(bt),ee=rt(bt),te=(gt=bt.ownerDocument)==null?void 0:gt.body,Fe=d(Mt.scrollWidth,Mt.clientWidth,te?te.scrollWidth:0,te?te.clientWidth:0),ei=d(Mt.scrollHeight,Mt.clientHeight,te?te.scrollHeight:0,te?te.clientHeight:0),Me=-ee.scrollLeft+Et(bt),je=-ee.scrollTop;return x(te||Mt).direction==="rtl"&&(Me+=d(Mt.clientWidth,te?te.clientWidth:0)-Fe),{width:Fe,height:ei,x:Me,y:je}}function qn(bt,gt){var Mt=gt.getRootNode&&gt.getRootNode();if(bt.contains(gt))return!0;
vendor: 4,842 bytes, line 34
34if(Mt&&u(Mt)){var ee=gt;do{if(ee&&bt.isSameNode(ee))return!0;ee=ee.parentNode||ee.host}while(ee)}return!1}function nn(bt){return Object.assign({},bt,{left:bt.x,top:bt.y,right:bt.x+bt.width,bottom:bt.y+bt.height})}function En(bt,gt){var Mt=nt(bt,!1,gt==="fixed");return Mt.top=Mt.top+bt.clientTop,Mt.left=Mt.left+bt.clientLeft,Mt.bottom=Mt.top+bt.clientHeight,Mt.right=Mt.left+bt.clientWidth,Mt.width=bt.clientWidth,Mt.height=bt.clientHeight,Mt.x=Mt.left,Mt.y=Mt.top,Mt}function Ti(bt,gt,Mt){return gt===We?nn(kr(bt,Mt)):e(gt)?En(gt,Mt):nn(Pr(xt(bt)))}function sn(bt){var gt=Ot(A(bt)),Mt=["absolute","fixed"].indexOf(x(bt).position)>=0,ee=Mt&&c(bt)?mt(bt):bt;return e(ee)?gt.filter(function(te){return e(te)&&qn(te,ee)&&ht(te)!=="body"}):[]}function Cr(bt,gt,Mt,ee){var te=gt==="clippingParents"?sn(bt):[].concat(gt),Fe=[].concat(te,[Mt]),ei=Fe[0],Me=Fe.reduce(function(je,Ci){var Re=Ti(bt,Ci,ee);return je.top=d(Re.top,je.top),je.right=S(Re.right,je.right),je.bottom=S(Re.bottom,je.bottom),je.left=d(Re.left,je.left),je},Ti(bt,ei,ee));return Me.width=Me.right-Me.left,Me.height=Me.bottom-Me.top,Me.x=Me.left,Me.y=Me.top,Me}function wi(bt){return bt.split("-")[1]}function Wn(bt){return["top","bottom"].indexOf(bt)>=0?"x":"y"}function fr(bt){var gt=bt.reference,Mt=bt.element,ee=bt.placement,te=ee?Qn(ee):null,Fe=ee?wi(ee):null,ei=gt.x+gt.width/2-Mt.width/2,Me=gt.y+gt.height/2-Mt.height/2,je;switch(te){case ot:je={x:ei,y:gt.y-Mt.height};break;case Pt:je={x:ei,y:gt.y+gt.height};break;case Ct:je={x:gt.x+gt.width,y:Me};break;case g:je={x:gt.x-Mt.width,y:Me};break;default:je={x:gt.x,y:gt.y}}var Ci=te?Wn(te):null;if(Ci!=null){var Re=Ci==="y"?"height":"width";switch(Fe){case ye:je[Ci]=je[Ci]-(gt[Re]/2-Mt[Re]/2);break;case De:je[Ci]=je[Ci]+(gt[Re]/2-Mt[Re]/2);break}}return je}function ar(){return{top:0,right:0,bottom:0,left:0}}function Hn(bt){return Object.assign({},ar(),bt)}function nr(bt,gt){return gt.reduce(function(Mt,ee){return Mt[ee]=bt,Mt},{})}function Mn(bt,gt){gt===void 0&&(gt={});var Mt=gt,ee=Mt.placement,te=ee===void 0?bt.placement:ee,Fe=Mt.strategy,ei=Fe===void 0?bt.strategy:Fe,Me=Mt.boundary,je=Me===void 0?Te:Me,Ci=Mt.rootBoundary,Re=Ci===void 0?We:Ci,zi=Mt.elementContext,K=zi===void 0?ii:zi,O=Mt.altBoundary,W=O===void 0?!1:O,lt=Mt.padding,pt=lt===void 0?0:lt,wt=Hn(typeof pt!="number"?pt:nr(pt,ue)),It=K===ii?Ee:ii,Nt=bt.rects.popper,Ut=bt.elements[W?It:K],zt=Cr(e(Ut)?Ut:Ut.contextElement||xt(bt.elements.popper),je,Re,ei),Jt=nt(bt.elements.reference),ae=fr({reference:Jt,element:Nt,strategy:"absolute",placement:te}),Oe=nn(Object.assign({},Nt,ae)),Se=K===ii?Oe:Jt,ze={top:zt.top-Se.top+wt.top,bottom:Se.bottom-zt.bottom+wt.bottom,left:zt.left-Se.left+wt.left,right:Se.right-zt.right+wt.right},de=bt.modifiersData.offset;if(K===ii&&de){var $e=de[te];Object.keys(ze).forEach(function(Xe){var qe=[Ct,Pt].indexOf(Xe)>=0?1:-1,Ie=[ot,Pt].indexOf(Xe)>=0?"y":"x";ze[Xe]+=$e[Ie]*qe})}return ze}var jn="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Gn="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",un={placement:"bottom",modifiers:[],strategy:"absolute"};function pr(){for(var bt=arguments.length,gt=new Array(bt),Mt=0;Mt<bt;Mt++)gt[Mt]=arguments[Mt];return!gt.some(function(ee){return!(ee&&typeof ee.getBoundingClientRect=="function")})}function cr(bt){bt===void 0&&(bt={});var gt=bt,Mt=gt.defaultModifiers,ee=Mt===void 0?[]:Mt,te=gt.defaultOptions,Fe=te===void 0?un:te;return function(Me,je,Ci){Ci===void 0&&(Ci=Fe);var Re={placement:"bottom",orderedModifiers:[],options:Object.assign({},un,Fe),modifiersData:{},elements:{reference:Me,popper:je},attributes:{},styles:{}},zi=[],K=!1,O={state:Re,setOptions:function(wt){var It=typeof wt=="function"?wt(Re.options):wt;lt(),Re.options=Object.assign({},Fe,Re.options,It),Re.scrollParents={reference:e(Me)?Ot(Me):Me.contextElement?Ot(Me.contextElement):[],popper:Ot(je)};var Nt=wr(vr([].concat(ee,Re.options.modifiers)));Re.orderedModifiers=Nt.filter(function(de){return de.enabled});{var Ut=$n([].concat(Nt,Re.options.modifiers),function(de){var $e=de.name;return $e});if(ti(Ut),Qn(Re.options.placement)===ve){var zt=Re.orderedModifiers.find(function(de){var $e=de.name;return $e==="flip"});zt||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var Jt=x(je),ae=Jt.marginTop,Oe=Jt.marginRight,Se=Jt.marginBottom,ze=Jt.marginLeft;[ae,Oe,Se,ze].some(function(de){return parseFloat(de)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}
34return W(),O.update()},forceUpdate:function(){if(!K){var wt=Re.elements,It=wt.reference,Nt=wt.popper;if(!pr(It,Nt)){console.error(jn);return}Re.rects={reference:at(It,mt(Nt),Re.options.strategy==="fixed"),popper:ut(Nt)},Re.reset=!1,Re.placement=Re.options.placement,Re.orderedModifiers.forEach(function(de){return Re.modifiersData[de.name]=Object.assign({},de.data)});for(var Ut=0,zt=0;zt<Re.orderedModifiers.length;zt++){if(Ut+=1,Ut>100){console.error(Gn);break}if(Re.reset===!0){Re.reset=!1,zt=-1;continue}var Jt=Re.orderedModifiers[zt],ae=Jt.fn,Oe=Jt.options,Se=Oe===void 0?{}:Oe,ze=Jt.name;typeof ae=="function"&&(Re=ae({state:Re,options:Se,name:ze,instance:O})||Re)}}},update:Yn(function(){return new Promise(function(pt){O.forceUpdate(),pt(Re)})}),destroy:function(){lt(),K=!0}};if(!pr(Me,je))return console.error(jn),O;O.setOptions(Ci).then(function(pt){!K&&Ci.onFirstUpdate&&Ci.onFirstUpdate(pt)});function W(){Re.orderedModifiers.forEach(function(pt){var wt=pt.name,It=pt.options,Nt=It===void 0?{}:It,Ut=pt.effect;if(typeof Ut=="function"){var zt=Ut({state:Re,name:wt,instance:O,options:Nt}),Jt=function(){};zi.push(zt||Jt)}})}function lt(){zi.forEach(function(pt){return pt()}),zi=[]}return O}}var yr={passive:!0};function Mr(bt){var gt=bt.state,Mt=bt.instance,ee=bt.options,te=ee.scroll,Fe=te===void 0?!0:te,ei=ee.resize,Me=ei===void 0?!0:ei,je=s(gt.elements.popper),Ci=[].concat(gt.scrollParents.reference,gt.scrollParents.popper);return Fe&&Ci.forEach(function(Re){Re.addEventListener("scroll",Mt.update,yr)}),Me&&je.addEventListener("resize",Mt.update,yr),function(){Fe&&Ci.forEach(function(Re){Re.removeEventListener("scroll",Mt.update,yr)}),Me&&je.removeEventListener("resize",Mt.update,yr)}}var Zn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Mr,data:{}};function Ln(bt){var gt=bt.state,Mt=bt.name;gt.modifiersData[Mt]=fr({reference:gt.rects.reference,element:gt.rects.popper,strategy:"absolute",placement:gt.placement})}var Tn={name:"popperOffsets",enabled:!0,phase:"read",fn:Ln,data:{}},Rt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ft(bt){var gt=bt.x,Mt=bt.y,ee=window,te=ee.devicePixelRatio||1;return{x:I(gt*te)/te||0,y:I(Mt*te)/te||0}}function Zt(bt){var gt,Mt=bt.popper,ee=bt.popperRect,te=bt.placement,Fe=bt.variation,ei=bt.offsets,Me=bt.position,je=bt.gpuAcceleration,Ci=bt.adaptive,Re=bt.roundOffsets,zi=bt.isFixed,K=ei.x,O=K===void 0?0:K,W=ei.y,lt=W===void 0?0:W,pt=typeof Re=="function"?Re({x:O,y:lt}):{x:O,y:lt};O=pt.x,lt=pt.y;var wt=ei.hasOwnProperty("x"),It=ei.hasOwnProperty("y"),Nt=g,Ut=ot,zt=window;if(Ci){var Jt=mt(Mt),ae="clientHeight",Oe="clientWidth";if(Jt===s(Mt)&&(Jt=xt(Mt),x(Jt).position!=="static"&&Me==="absolute"&&(ae="scrollHeight",Oe="scrollWidth")),Jt=Jt,te===ot||(te===g||te===Ct)&&Fe===De){Ut=Pt;
vendor: 11,034 bytes, lines 34-38
34var Se=zi&&Jt===zt&&zt.visualViewport?zt.visualViewport.height:Jt[ae];lt-=Se-ee.height,lt*=je?1:-1}if(te===g||(te===ot||te===Pt)&&Fe===De){Nt=Ct;var ze=zi&&Jt===zt&&zt.visualViewport?zt.visualViewport.width:Jt[Oe];O-=ze-ee.width,O*=je?1:-1}}var de=Object.assign({position:Me},Ci&&Rt),$e=Re===!0?Ft({x:O,y:lt}):{x:O,y:lt};if(O=$e.x,lt=$e.y,je){var Xe;return Object.assign({},de,(Xe={},Xe[Ut]=It?"0":"",Xe[Nt]=wt?"0":"",Xe.transform=(zt.devicePixelRatio||1)<=1?"translate("+O+"px, "+lt+"px)":"translate3d("+O+"px, "+lt+"px, 0)",Xe))}return Object.assign({},de,(gt={},gt[Ut]=It?lt+"px":"",gt[Nt]=wt?O+"px":"",gt.transform="",gt))}function Le(bt){var gt=bt.state,Mt=bt.options,ee=Mt.gpuAcceleration,te=ee===void 0?!0:ee,Fe=Mt.adaptive,ei=Fe===void 0?!0:Fe,Me=Mt.roundOffsets,je=Me===void 0?!0:Me;{var Ci=x(gt.elements.popper).transitionProperty||"";ei&&["transform","top","right","bottom","left"].some(function(zi){return Ci.indexOf(zi)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
35
36`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
37
38`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var Re={placement:Qn(gt.placement),variation:wi(gt.placement),popper:gt.elements.popper,popperRect:gt.rects.popper,gpuAcceleration:te,isFixed:gt.options.strategy==="fixed"};gt.modifiersData.popperOffsets!=null&&(gt.styles.popper=Object.assign({},gt.styles.popper,Zt(Object.assign({},Re,{offsets:gt.modifiersData.popperOffsets,position:gt.options.strategy,adaptive:ei,roundOffsets:je})))),gt.modifiersData.arrow!=null&&(gt.styles.arrow=Object.assign({},gt.styles.arrow,Zt(Object.assign({},Re,{offsets:gt.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:je})))),gt.attributes.popper=Object.assign({},gt.attributes.popper,{"data-popper-placement":gt.placement})}var oi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Le,data:{}};function Ge(bt){var gt=bt.state;Object.keys(gt.elements).forEach(function(Mt){var ee=gt.styles[Mt]||{},te=gt.attributes[Mt]||{},Fe=gt.elements[Mt];!c(Fe)||!ht(Fe)||(Object.assign(Fe.style,ee),Object.keys(te).forEach(function(ei){var Me=te[ei];Me===!1?Fe.removeAttribute(ei):Fe.setAttribute(ei,Me===!0?"":Me)}))})}function Ke(bt){var gt=bt.state,Mt={popper:{position:gt.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(gt.elements.popper.style,Mt.popper),gt.styles=Mt,gt.elements.arrow&&Object.assign(gt.elements.arrow.style,Mt.arrow),function(){Object.keys(gt.elements).forEach(function(ee){var te=gt.elements[ee],Fe=gt.attributes[ee]||{},ei=Object.keys(gt.styles.hasOwnProperty(ee)?gt.styles[ee]:Mt[ee]),Me=ei.reduce(function(je,Ci){return je[Ci]="",je},{});!c(te)||!ht(te)||(Object.assign(te.style,Me),Object.keys(Fe).forEach(function(je){te.removeAttribute(je)}))})}}var ki={name:"applyStyles",enabled:!0,phase:"write",fn:Ge,effect:Ke,requires:["computeStyles"]};function Pi(bt,gt,Mt){var ee=Qn(bt),te=[g,ot].indexOf(ee)>=0?-1:1,Fe=typeof Mt=="function"?Mt(Object.assign({},gt,{placement:bt})):Mt,ei=Fe[0],Me=Fe[1];return ei=ei||0,Me=(Me||0)*te,[g,Ct].indexOf(ee)>=0?{x:Me,y:ei}:{x:ei,y:Me}}function Oi(bt){var gt=bt.state,Mt=bt.options,ee=bt.name,te=Mt.offset,Fe=te===void 0?[0,0]:te,ei=ji.reduce(function(Re,zi){return Re[zi]=Pi(zi,gt.rects,Fe),Re},{}),Me=ei[gt.placement],je=Me.x,Ci=Me.y;gt.modifiersData.popperOffsets!=null&&(gt.modifiersData.popperOffsets.x+=je,gt.modifiersData.popperOffsets.y+=Ci),gt.modifiersData[ee]=ei}var ci={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Oi},tn={left:"right",right:"left",bottom:"top",top:"bottom"};function Ui(bt){return bt.replace(/left|right|bottom|top/g,function(gt){return tn[gt]})}var cn={start:"end",end:"start"};function $i(bt){return bt.replace(/start|end/g,function(gt){return cn[gt]})}function Hi(bt,gt){gt===void 0&&(gt={});var Mt=gt,ee=Mt.placement,te=Mt.boundary,Fe=Mt.rootBoundary,ei=Mt.padding,Me=Mt.flipVariations,je=Mt.allowedAutoPlacements,Ci=je===void 0?ji:je,Re=wi(ee),zi=Re?Me?Ei:Ei.filter(function(W){return wi(W)===Re}):ue,K=zi.filter(function(W){return Ci.indexOf(W)>=0});K.length===0&&(K=zi,console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var O=K.reduce(function(W,lt){return W[lt]=Mn(bt,{placement:lt,boundary:te,rootBoundary:Fe,padding:ei})[Qn(lt)],W},{});return Object.keys(O).sort(function(W,lt){return O[W]-O[lt]})}function xi(bt){if(Qn(bt)===ve)return[];var gt=Ui(bt);return[$i(bt),gt,$i(gt)]}function vi(bt){var gt=bt.state,Mt=bt.options,ee=bt.name;if(!gt.modifiersData[ee]._skip){for(var te=Mt.mainAxis,Fe=te===void 0?!0:te,ei=Mt.altAxis,Me=ei===void 0?!0:ei,je=Mt.fallbackPlacements,Ci=Mt.padding,Re=Mt.boundary,zi=Mt.rootBoundary,K=Mt.altBoundary,O=Mt.flipVariations,W=O===void 0?!0:O,lt=Mt.allowedAutoPlacements,pt=gt.options.placement,wt=Qn(pt),It=wt===pt,Nt=je||(It||!W?[Ui(pt)]:xi(pt)),Ut=[pt].concat(Nt).reduce(function(Wi,yn){return Wi.concat(Qn(yn)===ve?Hi(gt,{placement:yn,boundary:Re,rootBoundary:zi,padding:Ci,flipVariations:W,allowedAutoPlacements:lt}):yn)},[]),zt=gt.rects.reference,Jt=gt.rects.popper,ae=new Map,Oe=!0,Se=Ut[0],ze=0;ze<Ut.length;ze++){var de=Ut[ze],$e=Qn(de),Xe=wi(de)===ye,qe=[ot,Pt].indexOf($e)>=0,Ie=qe?"width":"height",ni=Mn(gt,{placement:de,boundary:Re,rootBoundary:zi,altBoundary:K,padding:Ci}),fi=qe?Xe?Ct:g:Xe?Pt:ot;zt[Ie]>Jt[Ie]&&(fi=Ui(fi));var Wt=Ui(fi),ge=[];if(Fe&&ge.push(ni[$e]<=0),Me&&ge.push(ni[fi]<=0,ni[Wt]<=0),ge.every(function(Wi){return Wi})){Se=de,Oe=!1;break}ae.set(de,ge)}if(Oe)for(var _e=W?3:1,pi=function(yn){var zn=Ut.find(function(Pn){var on=ae.get(Pn);if(on)return on.slice(0,yn).every(function(Xn){return Xn})});if(zn)return Se=zn,"break"},yi=_e;yi>0;yi--){var Bi=pi(yi);if(Bi==="break")break}gt.placement!==Se&&(gt.modifiersData[ee]._skip=!0,gt.placement=Se,gt.reset=!0)}}var Qi={name:"flip",enabled:!0,phase:"main",fn:vi,requiresIfExists:["offset"],data:{_skip:!1}};function dt(bt){return bt==="x"?"y":"x"}function X(bt,gt,Mt){return d(bt,S(gt,Mt))}function _t(bt,gt,Mt){var ee=X(bt,gt,Mt);return ee>Mt?Mt:ee}function jt(bt){var gt=bt.state,Mt=bt.options,ee=bt.name,te=Mt.mainAxis,Fe=te===void 0?!0:te,ei=Mt.altAxis,Me=ei===void 0?!1:ei,je=Mt.boundary,Ci=Mt.rootBoundary,Re=Mt.altBoundary,zi=Mt.padding,K=Mt.tether,O=K===void 0?!0:K,W=Mt.tetherOffset,lt=W===void 0?0:W,pt=Mn(gt,{boundary:je,rootBoundary:Ci,padding:zi,altBoundary:Re}),wt=Qn(gt.placement),It=wi(gt.placement),Nt=!It,Ut=Wn(wt),zt=dt(Ut),Jt=gt.modifiersData.popperOffsets,ae=gt.rects.reference,Oe=gt.rects.popper,Se=typeof lt=="function"?lt(Object.assign({},gt.rects,{placement:gt.placement})):lt,ze=typeof Se=="number"?{mainAxis:Se,altAxis:Se}:Object.assign({mainAxis:0,altAxis:0},Se),de=gt.modifiersData.offset?gt.modifiersData.offset[gt.placement]:null,$e={x:0,y:0};if(Jt){if(Fe){var Xe,qe=Ut==="y"?ot:g,Ie=Ut==="y"?Pt:Ct,ni=Ut==="y"?"height":"width",fi=Jt[Ut],Wt=fi+pt[qe],ge=fi-pt[Ie],_e=O?-Oe[ni]/2:0,pi=It===ye?ae[ni]:Oe[ni],yi=It===ye?-Oe[ni]:-ae[ni],Bi=gt.elements.arrow,Wi=O&&Bi?ut(Bi):{width:0,height:0},yn=gt.modifiersData["arrow#persistent"]?gt.modifiersData["arrow#persistent"].padding:ar(),zn=yn[qe],Pn=yn[Ie],on=X(0,ae[ni],Wi[ni]),Xn=Nt?ae[ni]/2-_e-on-zn-ze.mainAxis:pi-on-zn-ze.mainAxis,m=Nt?-ae[ni]/2+_e+on+Pn+ze.mainAxis:yi+on+Pn+ze.mainAxis,E=gt.elements.arrow&&mt(gt.elements.arrow),P=E?Ut==="y"?E.clientTop||0:E.clientLeft||0:0,_=(Xe=de==null?void 0:de[Ut])!=null?Xe:0,n=fi+Xn-_-P,y=fi+m-_,b=X(O?S(Wt,n):Wt,fi,O?d(ge,y):ge);Jt[Ut]=b,$e[Ut]=b-fi}if(Me){var k,L=Ut==="x"?ot:g,D=Ut==="x"?Pt:Ct,H=Jt[zt],Q=zt==="y"?"height":"width",N=H+pt[L],Y=H-pt[D],j=[ot,g].indexOf(wt)!==-1,V=(k=de==null?void 0:de[zt])!=null?k:0,it=j?N:H-ae[Q]-Oe[Q]-V+ze.altAxis,yt=j?H+ae[Q]+Oe[Q]-V-ze.altAxis:Y,vt=O&&j?_t(it,H,yt):X(O?it:N,H,O?yt:Y);Jt[zt]=vt,$e[zt]=vt-H}gt.modifiersData[ee]=$e}}var Pe={name:"preventOverflow",enabled:!0,phase:"main",fn:jt,requiresIfExists:["offset"]},Ce=function(gt,Mt){return gt=typeof gt=="function"?gt(Object.assign({},Mt.rects,{placement:Mt.placement})):gt,Hn(typeof gt!="number"?gt:nr(gt,ue))};function si(bt){var gt,Mt=bt.state,ee=bt.name,te=bt.options,Fe=Mt.elements.arrow,ei=Mt.modifiersData.popperOffsets,Me=Qn(Mt.placement),je=Wn(Me),Ci=[g,Ct].indexOf(Me)>=0,Re=Ci?"height":"width";if(!(!Fe||!ei)){var zi=Ce(te.padding,Mt),K=ut(Fe),O=je==="y"?ot:g,W=je==="y"?Pt:Ct,lt=Mt.rects.reference[Re]+Mt.rects.reference[je]-ei[je]-Mt.rects.popper[Re],pt=ei[je]-Mt.rects.reference[je],wt=mt(Fe),It=wt?je==="y"?wt.clientHeight||0:wt.clientWidth||0:0,Nt=lt/2-pt/2,Ut=zi[O],zt=It-K[Re]-zi[W],Jt=It/2-K[Re]/2+Nt,ae=X(Ut,Jt,zt),Oe=je;Mt.modifiersData[ee]=(gt={},gt[Oe]=ae,gt.centerOffset=ae-Jt,gt)}}function ai(bt){var gt=bt.state,Mt=bt.options,ee=Mt.element,te=ee===void 0?"[data-popper-arrow]":ee;if(te!=null&&!(typeof te=="string"&&(te=gt.elements.popper.querySelector(te),!te))){if(c(te)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" ")),!qn(gt.elements.popper,te)){console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}gt.elements.arrow=te}}var Ai={name:"arrow",enabled:!0,phase:"main",fn:si,effect:ai,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function li(bt,gt,Mt){return Mt===void 0&&(Mt={x:0,y:0}),{top:bt.top-gt.height-Mt.y,right:bt.right-gt.width+Mt.x,bottom:bt.bottom-gt.height+Mt.y,left:bt.left-gt.width-Mt.x}}function ui(bt){return[ot,Ct,Pt,g].some(function(gt){return bt[gt]>=0})}function Zi(bt){var gt=bt.state,Mt=bt.name,ee=gt.rects.reference,te=gt.rects.popper,Fe=gt.modifiersData.preventOverflow,ei=Mn(gt,{elementContext:"reference"}),Me=Mn(gt,{altBoundary:!0}),je=li(ei,ee),Ci=li(Me,te,Fe),Re=ui(je),zi=ui(Ci);gt.modifiersData[Mt]={referenceClippingOffsets:je,popperEscapeOffsets:Ci,isReferenceHidden:Re,hasPopperEscaped:zi},gt.attributes.popper=Object.assign({},gt.attributes.popper,{"data-popper-reference-hidden":Re,"data-popper-escaped":zi})}var kn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zi},ur=[Zn,Tn,oi,ki],Sr=cr({defaultModifiers:ur}),Rn=[Zn,Tn,oi,ki,ci,Qi,Pe,Ai,kn],rr=cr({defaultModifiers:Rn});t.applyStyles=ki,t.arrow=Ai,t.computeStyles=oi,t.createPopper=rr,t.createPopperLite=Sr,t.defaultModifiers=Rn,t.detectOverflow=Mn,t.eventListeners=Zn,t.flip=Qi,t.hide=kn,t.offset=ci,t.popperGenerator=cr,t.popperOffsets=Tn,t.preventOverflow=Pe,Object.defineProperty(t,"__esMo
38dule",{value:!0})}),function(t,s){typeof exports=="object"&&typeof module<"u"?module.exports=s(require("@popperjs/core")):typeof define=="function"&&define.amd?define(["@popperjs/core"],s):(t=t||self,t.tippy=s(t.Popper))}(this,function(t){var s='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',e="tippy-box",c="tippy-content",u="tippy-backdrop",d="tippy-arrow",S="tippy-svg-arrow",I={passive:!0,capture:!0},Z=function(){return document.body};function ct(Rt,Ft){return{}.hasOwnProperty.call(Rt,Ft)}function nt(Rt,Ft,Zt){if(Array.isArray(Rt)){var Le=Rt[Ft];return Le??(Array.isArray(Zt)?Zt[Ft]:Zt)}return Rt}function rt(Rt,Ft){var Zt={}.toString.call(Rt);return Zt.indexOf("[object")===0&&Zt.indexOf(Ft+"]")>-1}function q(Rt,Ft){return typeof Rt=="function"?Rt.apply(void 0,Ft):Rt}function J(Rt,Ft){if(Ft===0)return Rt;var Zt;return function(Le){clearTimeout(Zt),Zt=setTimeout(function(){Rt(Le)},Ft)}}function ht(Rt,Ft){var Zt=Object.assign({},Rt);return Ft.forEach(function(Le){delete Zt[Le]}),Zt}function xt(Rt){return Rt.split(/\s+/).filter(Boolean)}function Et(Rt){return[].concat(Rt)}function x(Rt,Ft){Rt.indexOf(Ft)===-1&&Rt.push(Ft)}function R(Rt){return Rt.filter(function(Ft,Zt){return Rt.indexOf(Ft)===Zt})}function G(Rt){return Rt.split("-")[0]}function at(Rt){return[].slice.call(Rt)}function ut(Rt){return Object.keys(Rt).reduce(function(Ft,Zt){return Rt[Zt]!==void 0&&(Ft[Zt]=Rt[Zt]),Ft},{})}function A(){return document.createElement("div")}function Vt(Rt){return["Element","Fragment"].some(function(Ft){return rt(Rt,Ft)})}function Ot(Rt){return rt(Rt,"NodeList")}function Be(Rt){return rt(Rt,"MouseEvent")}function xe(Rt){return!!(Rt&&Rt._tippy&&Rt._tippy.reference===Rt)}function me(Rt){return Vt(Rt)?[Rt]:Ot(Rt)?at(Rt):Array.isArray(Rt)?Rt:at(document.querySelectorAll(Rt))}function mt(Rt,Ft){Rt.forEach(function(Zt){Zt&&(Zt.style.transitionDuration=Ft+"ms")})}function ot(Rt,Ft){Rt.forEach(function(Zt){Zt&&Zt.setAttribute("data-state",Ft)})}function Pt(Rt){var Ft,Zt=Et(Rt),Le=Zt[0];return!(Le==null||(Ft=Le.ownerDocument)==null)&&Ft.body?Le.ownerDocument:document}function Ct(Rt,Ft){var Zt=Ft.clientX,Le=Ft.clientY;return Rt.every(function(oi){var Ge=oi.popperRect,Ke=oi.popperState,ki=oi.props,Pi=ki.interactiveBorder,Oi=G(Ke.placement),ci=Ke.modifiersData.offset;if(!ci)return!0;var tn=Oi==="bottom"?ci.top.y:0,Ui=Oi==="top"?ci.bottom.y:0,cn=Oi==="right"?ci.left.x:0,$i=Oi==="left"?ci.right.x:0,Hi=Ge.top-Le+tn>Pi,xi=Le-Ge.bottom-Ui>Pi,vi=Ge.left-Zt+cn>Pi,Qi=Zt-Ge.right-$i>Pi;return Hi||xi||vi||Qi})}function g(Rt,Ft,Zt){if(Zt){var Le=Ft+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(oi){Rt[Le](oi,Zt)})}}function ve(Rt,Ft){for(var Zt=Ft;Zt;){var Le;if(Rt.contains(Zt))return!0;Zt=(Le=Zt.getRootNode==null?void 0:Zt.getRootNode())==null?void 0:Le.host}return!1}var ue={isTouch:!1},ye=0;function De(){ue.isTouch||(ue.isTouch=!0,window.performance&&document.addEventListener("mousemove",Te))}function Te(){var Rt=performance.now();Rt-ye<20&&(ue.isTouch=!1,document.removeEventListener("mousemove",Te)),ye=Rt}function We(){var Rt=document.activeElement;if(xe(Rt)){var Ft=Rt._tippy;Rt.blur&&!Ft.state.isVisible&&Rt.blur()}}function ii(){document.addEventListener("touchstart",De,I),window.addEventListener("blur",We)}var Ee=typeof window<"u"&&typeof document<"u",Ei=Ee?!!window.msCrypto:!1;function ji(Rt){var Ft=Rt==="destroy"?"n already-":" ";return[Rt+"() was called on a"+Ft+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function wn(Rt){var Ft=/[ \t]{2,}/g,Zt=/^[ \t]*/gm;return Rt.replace(Ft," ").replace(Zt,"").trim()}function Ni(Rt){return wn(`
39  %ctippy.js
40
41  %c`+wn(Rt)+`
42
43  %c👷‍ This is a development-only message. It will be removed in production.
44  `)}function pn(Rt){return[Ni(Rt),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var Cn;An();function An(){Cn=new Set}function Ri(Rt,Ft){if(Rt&&!Cn.has(Ft)){var Zt;Cn.add(Ft),(Zt=console).warn.apply(Zt,pn(Ft))}}function Sn(Rt,Ft){if(Rt&&!Cn.has(Ft)){var Zt;Cn.add(Ft),(Zt=console).error.apply(Zt,pn(Ft))}}function Lr(Rt){var Ft=!Rt,Zt=Object.prototype.toString.call(Rt)==="[object Object]"&&!Rt.addEventListener;Sn(Ft,["tippy() was passed","`"+String(Rt)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Sn(Zt,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var vn={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Ji={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Gi=Object.assign({appendTo:Z,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},vn,{},Ji),wr=Object.keys(Gi),Yn=function(Ft){{var Zt=Gi.plugins.concat(Ft.plugins||[]);lr(Ft,Zt)}var Le=Object.keys(Ft);Le.forEach(function(oi){Gi[oi]=Ft[oi]})};function Fn(Rt){var Ft=Rt.plugins||[],Zt=Ft.reduce(function(Le,oi){var Ge=oi.name,Ke=oi.defaultValue;if(Ge){var ki;Le[Ge]=Rt[Ge]!==void 0?Rt[Ge]:(ki=Gi[Ge])!=null?ki:Ke}return Le},{});return Object.assign({},Rt,{},Zt)}function qi(Rt,Ft){var Zt=Ft?Object.keys(Fn(Object.assign({},Gi,{plugins:Ft}))):wr,Le=Zt.reduce(function(oi,Ge){var Ke=(Rt.getAttribute("data-tippy-"+Ge)||"").trim();if(!Ke)return oi;if(Ge==="content")oi[Ge]=Ke;else try{oi[Ge]=JSON.parse(Ke)}catch{oi[Ge]=Ke}return oi},{});return Le}function Nn(Rt,Ft){var Zt=Object.assign({},Ft,{content:q(Ft.content,[Rt])},Ft.ignoreAttributes?{}:qi(Rt,Ft.plugins));return Zt.aria=Object.assign({},Gi.aria,{},Zt.aria),Zt.aria={expanded:Zt.aria.expanded==="auto"?Ft.interactive:Zt.aria.expanded,content:Zt.aria.content==="auto"?Ft.interactive?null:"describedby":Zt.aria.content},Zt}function lr(Rt,Ft){Rt===void 0&&(Rt={}),Ft===void 0&&(Ft=[]);var Zt=Object.keys(Rt);Zt.forEach(function(Le){var oi=ht(Gi,Object.keys(vn)),Ge=!ct(oi,Le);Ge&&(Ge=Ft.filter(function(Ke){return Ke.name===Le}).length===0),Ri(Ge,["`"+Le+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
45
46`,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
47`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var ti=function(){return"innerHTML"};function $n(Rt,Ft){Rt[ti()]=Ft}function Qn(Rt){var Ft=A();return Rt===!0?Ft.className=d:(Ft.className=S,Vt(Rt)?Ft.appendChild(Rt):$n(Ft,Rt)),Ft}function vr(Rt,Ft){Vt(Ft.content)?($n(Rt,""),Rt.appendChild(Ft.content)):typeof Ft.content!="function"&&(Ft.allowHTML?$n(Rt,Ft.content):Rt.textContent=Ft.content)}function kr(Rt){var Ft=Rt.firstElementChild,Zt=at(Ft.children);return{box:Ft,content:Zt.find(function(Le){return Le.classList.contains(c)}),arrow:Zt.find(function(Le){return Le.classList.contains(d)||Le.classList.contains(S)}),backdrop:Zt.find(function(Le){return Le.classList.contains(u)})}}function Pr(Rt){var Ft=A(),Zt=A();Zt.className=e,Zt.setAttribute("data-state","hidden"),Zt.setAttribute("tabindex","-1");var Le=A();Le.className=c,Le.setAttribute("data-state","hidden"),vr(Le,Rt.props),Ft.appendChild(Zt),Zt.appendChild(Le),oi(Rt.props,Rt.props);function oi(Ge,Ke){var ki=kr(Ft),Pi=ki.box,Oi=ki.content,ci=ki.arrow;Ke.theme?Pi.setAttribute("data-theme",Ke.theme):Pi.removeAttribute("data-theme"),typeof Ke.animation=="str
47ing"?Pi.setAttribute("data-animation",Ke.animation):Pi.removeAttribute("data-animation"),Ke.inertia?Pi.setAttribute("data-inertia",""):Pi.removeAttribute("data-inertia"),Pi.style.maxWidth=typeof Ke.maxWidth=="number"?Ke.maxWidth+"px":Ke.maxWidth,Ke.role?Pi.setAttribute("role",Ke.role):Pi.removeAttribute("role"),(Ge.content!==Ke.content||Ge.allowHTML!==Ke.allowHTML)&&vr(Oi,Rt.props),Ke.arrow?ci?Ge.arrow!==Ke.arrow&&(Pi.removeChild(ci),Pi.appendChild(Qn(Ke.arrow))):Pi.appendChild(Qn(Ke.arrow)):ci&&Pi.removeChild(ci)}return{popper:Ft,onUpdate:oi}}Pr.$$tippy=!0;var qn=1,nn=[],En=[];function Ti(Rt,Ft){var Zt=Nn(Rt,Object.assign({},Gi,{},Fn(ut(Ft)))),Le,oi,Ge,Ke=!1,ki=!1,Pi=!1,Oi=!1,ci,tn,Ui,cn=[],$i=J(W,Zt.interactiveDebounce),Hi,xi=qn++,vi=null,Qi=R(Zt.plugins),dt={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},X={id:xi,reference:Rt,popper:A(),popperInstance:vi,props:Zt,state:dt,plugins:Qi,clearDelayTimeouts:ze,setProps:de,setContent:$e,show:Xe,hide:qe,hideWithInteractivity:Ie,enable:Oe,disable:Se,unmount:ni,destroy:fi};if(!Zt.render)return Sn(!0,"render() function has not been supplied."),X;var _t=Zt.render(X),jt=_t.popper,Pe=_t.onUpdate;jt.setAttribute("data-tippy-root",""),jt.id="tippy-"+X.id,X.popper=jt,Rt._tippy=X,jt._tippy=X;var Ce=Qi.map(function(Wt){return Wt.fn(X)}),si=Rt.hasAttribute("aria-expanded");return zi(),bt(),Sr(),Rn("onCreate",[X]),Zt.showOnCreate&&Jt(),jt.addEventListener("mouseenter",function(){X.props.interactive&&X.state.isVisible&&X.clearDelayTimeouts()}),jt.addEventListener("mouseleave",function(){X.props.interactive&&X.props.trigger.indexOf("mouseenter")>=0&&Zi().addEventListener("mousemove",$i)}),X;function ai(){var Wt=X.props.touch;return Array.isArray(Wt)?Wt:[Wt,0]}function Ai(){return ai()[0]==="hold"}function li(){var Wt;return!!((Wt=X.props.render)!=null&&Wt.$$tippy)}function ui(){return Hi||Rt}function Zi(){var Wt=ui().parentNode;return Wt?Pt(Wt):document}function kn(){return kr(jt)}function ur(Wt){return X.state.isMounted&&!X.state.isVisible||ue.isTouch||ci&&ci.type==="focus"?0:nt(X.props.delay,Wt?0:1,Gi.delay)}function Sr(Wt){Wt===void 0&&(Wt=!1),jt.style.pointerEvents=X.props.interactive&&!Wt?"":"none",jt.style.zIndex=""+X.props.zIndex}function Rn(Wt,ge,_e){if(_e===void 0&&(_e=!0),Ce.forEach(function(yi){yi[Wt]&&yi[Wt].apply(void 0,ge)}),_e){var pi;(pi=X.props)[Wt].apply(pi,ge)}}function rr(){var Wt=X.props.aria;if(Wt.content){var ge="aria-"+Wt.content,_e=jt.id,pi=Et(X.props.triggerTarget||Rt);pi.forEach(function(yi){var Bi=yi.getAttribute(ge);if(X.state.isVisible)yi.setAttribute(ge,Bi?Bi+" "+_e:_e);else{var Wi=Bi&&Bi.replace(_e,"").trim();Wi?yi.setAttribute(ge,Wi):yi.removeAttribute(ge)}})}}function bt(){if(!(si||!X.props.aria.expanded)){var Wt=Et(X.props.triggerTarget||Rt);Wt.forEach(function(ge){X.props.interactive?ge.setAttribute("aria-expanded",X.state.isVisible&&ge===ui()?"true":"false"):ge.removeAttribute("aria-expanded")})}}function gt(){Zi().removeEventListener("mousemove",$i),nn=nn.filter(function(Wt){return Wt!==$i})}function Mt(Wt){if(!(ue.isTouch&&(Pi||Wt.type==="mousedown"))){var ge=Wt.composedPath&&Wt.composedPath()[0]||Wt.target;if(!(X.props.interactive&&ve(jt,ge))){if(Et(X.props.triggerTarget||Rt).some(function(_e){return ve(_e,ge)})){if(ue.isTouch||X.state.isVisible&&X.props.trigger.indexOf("click")>=0)return}else Rn("onClickOutside",[X,Wt]);X.props.hideOnClick===!0&&(X.clearDelayTimeouts(),X.hide(),ki=!0,setTimeout(function(){ki=!1}),X.state.isMounted||ei())}}}function ee(){Pi=!0}function te(){Pi=!1}function Fe(){var Wt=Zi();Wt.addEventListener("mousedown",Mt,!0),Wt.addEventListener("touchend",Mt,I),Wt.addEventListener("touchstart",te,I),Wt.addEventListener("touchmove",ee,I)}function ei(){var Wt=Zi();Wt.removeEventListener("mousedown",Mt,!0),Wt.removeEventListener("touchend",Mt,I),Wt.removeEventListener("touchstart",te,I),Wt.removeEventListener("touchmove",ee,I)}function Me(Wt,ge){Ci(Wt,function(){!X.state.isVisible&&jt.parentNode&&jt.parentNode.contains(jt)&&ge()})}function je(Wt,ge){Ci(Wt,ge)}function Ci(Wt,ge){var _e=kn().box;function pi(yi){yi.target===_e&&(g(_e,"remove",pi),ge())}if(Wt===0)return ge();g(_e,"remove",tn),g(_e,"add",pi),tn=pi}function Re(Wt,ge,_e){_e===void 0&&(_e=!1);var pi=Et(X.props.triggerTarget||Rt);pi.forEach(function(yi){yi.addEventListener(Wt,ge,_e),cn.push({node:yi,eventType:Wt,handler:ge,options:_e})})}function zi(){Ai()&&(Re("touchstart",O,{passive:!0}),Re("touchend",lt,{passive:!0})),xt(X.props.trigger).forEach(function(Wt){if(Wt!=="manual")switch(Re(Wt,O),Wt){case"mouseenter":Re("mou
47seleave",lt);break;case"focus":Re(Ei?"focusout":"blur",pt);break;case"focusin":Re("focusout",pt);break}})}function K(){cn.forEach(function(Wt){var ge=Wt.node,_e=Wt.eventType,pi=Wt.handler,yi=Wt.options;ge.removeEventListener(_e,pi,yi)}),cn=[]}function O(Wt){var ge,_e=!1;if(!(!X.state.isEnabled||wt(Wt)||ki)){var pi=((ge=ci)==null?void 0:ge.type)==="focus";ci=Wt,Hi=Wt.currentTarget,bt(),!X.state.isVisible&&Be(Wt)&&nn.forEach(function(yi){return yi(Wt)}),Wt.type==="click"&&(X.props.trigger.indexOf("mouseenter")<0||Ke)&&X.props.hideOnClick!==!1&&X.state.isVisible?_e=!0:Jt(Wt),Wt.type==="click"&&(Ke=!_e),_e&&!pi&&ae(Wt)}}function W(Wt){var ge=Wt.target,_e=ui().contains(ge)||jt.contains(ge);if(!(Wt.type==="mousemove"&&_e)){var pi=zt().concat(jt).map(function(yi){var Bi,Wi=yi._tippy,yn=(Bi=Wi.popperInstance)==null?void 0:Bi.state;return yn?{popperRect:yi.getBoundingClientRect(),popperState:yn,props:Zt}:null}).filter(Boolean);Ct(pi,Wt)&&(gt(),ae(Wt))}}function lt(Wt){var ge=wt(Wt)||X.props.trigger.indexOf("click")>=0&&Ke;if(!ge){if(X.props.interactive){X.hideWithInteractivity(Wt);return}ae(Wt)}}function pt(Wt){X.props.trigger.indexOf("focusin")<0&&Wt.target!==ui()||X.props.interactive&&Wt.relatedTarget&&jt.contains(Wt.relatedTarget)||ae(Wt)}function wt(Wt){return ue.isTouch?Ai()!==Wt.type.indexOf("touch")>=0:!1}function It(){Nt();var Wt=X.props,ge=Wt.popperOptions,_e=Wt.placement,pi=Wt.offset,yi=Wt.getReferenceClientRect,Bi=Wt.moveTransition,Wi=li()?kr(jt).arrow:null,yn=yi?{getBoundingClientRect:yi,contextElement:yi.contextElement||ui()}:Rt,zn={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Xn){var m=Xn.state;if(li()){var E=kn(),P=E.box;["placement","reference-hidden","escaped"].forEach(function(_){_==="placement"?P.setAttribute("data-placement",m.placement):m.attributes.popper["data-popper-"+_]?P.setAttribute("data-"+_,""):P.removeAttribute("data-"+_)}),m.attributes.popper={}}}},Pn=[{name:"offset",options:{offset:pi}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Bi}},zn];li()&&Wi&&Pn.push({name:"arrow",options:{element:Wi,padding:3}}),Pn.push.apply(Pn,(ge==null?void 0:ge.modifiers)||[]),X.popperInstance=t.createPopper(yn,jt,Object.assign({},ge,{placement:_e,onFirstUpdate:Ui,modifiers:Pn}))}function Nt(){X.popperInstance&&(X.popperInstance.destroy(),X.popperInstance=null)}function Ut(){var Wt=X.props.appendTo,ge,_e=ui();X.props.interactive&&Wt===Z||Wt==="parent"?ge=_e.parentNode:ge=q(Wt,[_e]),ge.contains(jt)||ge.appendChild(jt),X.state.isMounted=!0,It(),Ri(X.props.interactive&&Wt===Gi.appendTo&&_e.nextElementSibling!==jt,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
48
49`,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
50
51`,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
52
53`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function zt(){return at(jt.querySelectorAll("[data-tippy-root]"))}function Jt(Wt){X.clearDelayTimeouts(),Wt&&Rn("onTrigger",[X,Wt]),Fe();var ge=ur(!0),_e=ai(),pi=_e[0],yi=_e[1];ue.isTouch&&pi==="hold"&&yi&&(ge=yi),ge?Le=setTimeout(function(){X.show()},ge):X.show()}function ae(Wt){if(X.clearDelayTimeouts(),Rn("onUntrigger",[X,Wt]),!X.state.isVisible){ei();return}if(!(X.props.trigger.indexOf("mouseenter")>=0&&X.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(Wt.type)>=0&&Ke)){var ge=ur(!1);ge?oi=setTimeout(function(){X.state.isVisible&&X.hide()},ge):Ge=requestAnimationFrame(function(){X.hide()})}}function Oe(){X.state.isEnabled=!0}function Se(){X.hide(),X.state.isEnabled=!1}function ze(){clearTimeout(Le),clearTimeout(oi),cancelAnimationFrame(Ge)}function de(Wt){if(Ri(X.state.isDestroyed,ji("setProps")),!X.state.isDestroyed){Rn("onBeforeUpdate",[X,Wt]),K();var ge=X.props,_e=Nn(Rt,Object.assign({},ge,{},ut(Wt),{ignoreAttributes:!0}));X.props=_e,zi(),ge.interactiveDebounce!==_e.interactiveDebounce&&(gt(),$i=J(W,_e.interactiveDebounce)),ge.triggerTarget&&!_e.triggerTarget?Et(ge.triggerTarget).forEach(function(pi){pi.removeAttribute("aria-expanded")}):_e.triggerTarget&&Rt.removeAttribute("aria-expanded"),bt(),Sr(),Pe&&Pe(ge,_e),X.popperInstance&&(It(),zt().forEac
vendor: 12,211 bytes, lines 53-58
53h(function(pi){requestAnimationFrame(pi._tippy.popperInstance.forceUpdate)})),Rn("onAfterUpdate",[X,Wt])}}function $e(Wt){X.setProps({content:Wt})}function Xe(){Ri(X.state.isDestroyed,ji("show"));var Wt=X.state.isVisible,ge=X.state.isDestroyed,_e=!X.state.isEnabled,pi=ue.isTouch&&!X.props.touch,yi=nt(X.props.duration,0,Gi.duration);if(!(Wt||ge||_e||pi)&&!ui().hasAttribute("disabled")&&(Rn("onShow",[X],!1),X.props.onShow(X)!==!1)){if(X.state.isVisible=!0,li()&&(jt.style.visibility="visible"),Sr(),Fe(),X.state.isMounted||(jt.style.transition="none"),li()){var Bi=kn(),Wi=Bi.box,yn=Bi.content;mt([Wi,yn],0)}Ui=function(){var Pn;if(!(!X.state.isVisible||Oi)){if(Oi=!0,jt.offsetHeight,jt.style.transition=X.props.moveTransition,li()&&X.props.animation){var on=kn(),Xn=on.box,m=on.content;mt([Xn,m],yi),ot([Xn,m],"visible")}rr(),bt(),x(En,X),(Pn=X.popperInstance)==null||Pn.forceUpdate(),Rn("onMount",[X]),X.props.animation&&li()&&je(yi,function(){X.state.isShown=!0,Rn("onShown",[X])})}},Ut()}}function qe(){Ri(X.state.isDestroyed,ji("hide"));var Wt=!X.state.isVisible,ge=X.state.isDestroyed,_e=!X.state.isEnabled,pi=nt(X.props.duration,1,Gi.duration);if(!(Wt||ge||_e)&&(Rn("onHide",[X],!1),X.props.onHide(X)!==!1)){if(X.state.isVisible=!1,X.state.isShown=!1,Oi=!1,Ke=!1,li()&&(jt.style.visibility="hidden"),gt(),ei(),Sr(!0),li()){var yi=kn(),Bi=yi.box,Wi=yi.content;X.props.animation&&(mt([Bi,Wi],pi),ot([Bi,Wi],"hidden"))}rr(),bt(),X.props.animation?li()&&Me(pi,X.unmount):X.unmount()}}function Ie(Wt){Ri(X.state.isDestroyed,ji("hideWithInteractivity")),Zi().addEventListener("mousemove",$i),x(nn,$i),$i(Wt)}function ni(){Ri(X.state.isDestroyed,ji("unmount")),X.state.isVisible&&X.hide(),X.state.isMounted&&(Nt(),zt().forEach(function(Wt){Wt._tippy.unmount()}),jt.parentNode&&jt.parentNode.removeChild(jt),En=En.filter(function(Wt){return Wt!==X}),X.state.isMounted=!1,Rn("onHidden",[X]))}function fi(){Ri(X.state.isDestroyed,ji("destroy")),!X.state.isDestroyed&&(X.clearDelayTimeouts(),X.unmount(),K(),delete Rt._tippy,X.state.isDestroyed=!0,Rn("onDestroy",[X]))}}function sn(Rt,Ft){Ft===void 0&&(Ft={});var Zt=Gi.plugins.concat(Ft.plugins||[]);Lr(Rt),lr(Ft,Zt),ii();var Le=Object.assign({},Ft,{plugins:Zt}),oi=me(Rt);{var Ge=Vt(Le.content),Ke=oi.length>1;Ri(Ge&&Ke,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
54
55`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
56
57`,`1) content: element.innerHTML
58`,"2) content: () => element.cloneNode(true)"].join(" "))}var ki=oi.reduce(function(Pi,Oi){var ci=Oi&&Ti(Oi,Le);return ci&&Pi.push(ci),Pi},[]);return Vt(Rt)?ki[0]:ki}sn.defaultProps=Gi,sn.setDefaultProps=Yn,sn.currentInput=ue;var Cr=function(Ft){var Zt=Ft===void 0?{}:Ft,Le=Zt.exclude,oi=Zt.duration;En.forEach(function(Ge){var Ke=!1;if(Le&&(Ke=xe(Le)?Ge.reference===Le:Ge.popper===Le.popper),!Ke){var ki=Ge.props.duration;Ge.setProps({duration:oi}),Ge.hide(),Ge.state.isDestroyed||Ge.setProps({duration:ki})}})},wi=Object.assign({},t.applyStyles,{effect:function(Ft){var Zt=Ft.state,Le={popper:{position:Zt.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(Zt.elements.popper.style,Le.popper),Zt.styles=Le,Zt.elements.arrow&&Object.assign(Zt.elements.arrow.style,Le.arrow)}}),Wn=function(Ft,Zt){var Le;Zt===void 0&&(Zt={}),Sn(!Array.isArray(Ft),["The first argument passed to createSingleton() must be an array of","tippy instances. The passed value was",String(Ft)].join(" "));var oi=Ft,Ge=[],Ke=[],ki,Pi=Zt.overrides,Oi=[],ci=!1;function tn(){Ke=oi.map(function(X){return Et(X.props.triggerTarget||X.reference)}).reduce(function(X,_t){return X.concat(_t)},[])}function Ui(){Ge=oi.map(function(X){return X.reference})}function cn(X){oi.forEach(function(_t){X?_t.enable():_t.disable()})}function $i(X){return oi.map(function(_t){var jt=_t.setProps;return _t.setProps=function(Pe){jt(Pe),_t.reference===ki&&X.setProps(Pe)},function(){_t.setProps=jt}})}function Hi(X,_t){var jt=Ke.indexOf(_t);if(_t!==ki){ki=_t;var Pe=(Pi||[]).concat("content").reduce(function(Ce,si){return Ce[si]=oi[jt].props[si],Ce},{});X.setProps(Object.assign({},Pe,{getReferenceClientRect:typeof Pe.getReferenceClientRect=="function"?Pe.getReferenceClientRect:function(){var Ce;return(Ce=Ge[jt])==null?void 0:Ce.getBoundingClientRect()}}))}}cn(!1),Ui(),tn();var xi={fn:function(){return{onDestroy:function(){cn(!0)},onHidden:function(){ki=null},onClickOutside:function(jt){jt.props.showOnCreate&&!ci&&(ci=!0,ki=null)},onShow:function(jt){jt.props.showOnCreate&&!ci&&(ci=!0,Hi(jt,Ge[0]))},onTrigger:function(jt,Pe){Hi(jt,Pe.currentTarget)}}}},vi=sn(A(),Object.assign({},ht(Zt,["overrides"]),{plugins:[xi].concat(Zt.plugins||[]),triggerTarget:Ke,popperOptions:Object.assign({},Zt.popperOptions,{modifiers:[].concat(((Le=Zt.popperOptions)==null?void 0:Le.modifiers)||[],[wi])})})),Qi=vi.show;vi.show=function(X){if(Qi(),!ki&&X==null)return Hi(vi,Ge[0]);if(!(ki&&X==null)){if(typeof X=="number")return Ge[X]&&Hi(vi,Ge[X]);if(oi.indexOf(X)>=0){var _t=X.reference;return Hi(vi,_t)}if(Ge.indexOf(X)>=0)return Hi(vi,X)}},vi.showNext=function(){var X=Ge[0];if(!ki)return vi.show(0);var _t=Ge.indexOf(ki);vi.show(Ge[_t+1]||X)},vi.showPrevious=function(){var X=Ge[Ge.length-1];if(!ki)return vi.show(X);var _t=Ge.indexOf(ki),jt=Ge[_t-1]||X;vi.show(jt)};var dt=vi.setProps;return vi.setProps=function(X){Pi=X.overrides||Pi,dt(X)},vi.setInstances=function(X){cn(!0),Oi.forEach(function(_t){return _t()}),oi=X,cn(!1),Ui(),tn(),Oi=$i(vi),vi.setProps({triggerTarget:Ke})},Oi=$i(vi),vi},fr={mouseover:"mouseenter",focusin:"focus",click:"click"};function ar(Rt,Ft){Sn(!(Ft&&Ft.target),["You must specity a `target` prop indicating a CSS selector string matching","the target elements that should receive a tippy."].join(" "));var Zt=[],Le=[],oi=!1,Ge=Ft.target,Ke=ht(Ft,["target"]),ki=Object.assign({},Ke,{trigger:"manual",touch:!1}),Pi=Object.assign({touch:Gi.touch},Ke,{showOnCreate:!0}),Oi=sn(Rt,ki),ci=Et(Oi);function tn(xi){if(!(!xi.target||oi)){var vi=xi.target.closest(Ge);if(vi){var Qi=vi.getAttribute("data-tippy-trigger")||Ft.trigger||Gi.trigger;if(!vi._tippy&&!(xi.type==="touchstart"&&typeof Pi.touch=="boolean")&&!(xi.type!=="touchstart"&&Qi.indexOf(fr[xi.type])<0)){var dt=sn(vi,Pi);dt&&(Le=Le.concat(dt))}}}}function Ui(xi,vi,Qi,dt){dt===void 0&&(dt=!1),xi.addEventListener(vi,Qi,dt),Zt.push({node:xi,eventType:vi,handler:Qi,options:dt})}function cn(xi){var vi=xi.reference;Ui(vi,"touchstart",tn,I),Ui(vi,"mouseover",tn),Ui(vi,"focusin",tn),Ui(vi,"click",tn)}function $i(){Zt.forEach(function(xi){var vi=xi.node,Qi=xi.eventType,dt=xi.handler,X=xi.options;vi.removeEventListener(Qi,dt,X)}),Zt=[]}function Hi(xi){var vi=xi.destroy,Qi=xi.enable,dt=xi.disable;xi.destroy=function(X){X===void 0&&(X=!0),X&&Le.forEach(function(_t){_t.destroy()}),Le=[],$i(),vi()},xi.enable=function(){Qi(),Le.forEach(function(X){return X.enable()}),oi=!1},xi.disable=function(){dt(),Le.forEach(function(X){return X.disable()}),oi=!0},cn(xi)}return ci.forEach(Hi),Oi}var Hn={name:"animateFill",defaultValue:!1,fn:function(Ft){var Zt;if(!((Zt=Ft.props.render)!=null&&Zt.$$tippy))return Sn(Ft.props.animateFill,"The `animateFill` plugin requires the default render function."),{};var Le=kr(Ft.popper),oi=Le.box,Ge=Le.content,Ke=Ft.props.animateFill?nr():null;return{onCreate:function(){Ke&&(oi.insertBefore(Ke,oi.firstElementChild),oi.setAttribute("data-animatefill",""),oi.style.overflow="hidden",Ft.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(Ke){var Pi=oi.style.transitionDuration,Oi=Number(Pi.replace("ms",""));Ge.style.transitionDelay=Math.round(Oi/10)+"ms",Ke.style.transitionDuration=Pi,ot([Ke],"visible")}},onShow:function(){Ke&&(Ke.style.transitionDuration="0ms")},onHide:function(){Ke&&ot([Ke],"hidden")}}}};function nr(){var Rt=A();return Rt.className=u,ot([Rt],"hidden"),Rt}var Mn={clientX:0,clientY:0},jn=[];function Gn(Rt){var Ft=Rt.clientX,Zt=Rt.clientY;Mn={clientX:Ft,clientY:Zt}}function un(Rt){Rt.addEventListener("mousemove",Gn)}function pr(Rt){Rt.removeEventListener("mousemove",Gn)}var cr={name:"followCursor",defaultValue:!1,fn:function(Ft){var Zt=Ft.reference,Le=Pt(Ft.props.triggerTarget||Zt),oi=!1,Ge=!1,Ke=!0,ki=Ft.props;function Pi(){return Ft.props.followCursor==="initial"&&Ft.state.isVisible}function Oi(){Le.addEventListener("mousemove",Ui)}function ci(){Le.removeEventListener("mousemove",Ui)}function tn(){oi=!0,Ft.setProps({getReferenceClientRect:null}),oi=!1}function Ui(Hi){var xi=Hi.target?Zt.contains(Hi.target):!0,vi=Ft.props.followCursor,Qi=Hi.clientX,dt=Hi.clientY,X=Zt.getBoundingClientRect(),_t=Qi-X.left,jt=dt-X.top;(xi||!Ft.props.interactive)&&Ft.setProps({getReferenceClientRect:function(){var Ce=Zt.getBoundingClientRect(),si=Qi,ai=dt;vi==="initial"&&(si=Ce.left+_t,ai=Ce.top+jt);var Ai=vi==="horizontal"?Ce.top:ai,li=vi==="vertical"?Ce.right:si,ui=vi==="horizontal"?Ce.bottom:ai,Zi=vi==="vertical"?Ce.left:si;return{width:li-Zi,height:ui-Ai,top:Ai,right:li,bottom:ui,left:Zi}}})}function cn(){Ft.props.followCursor&&(jn.push({instance:Ft,doc:Le}),un(Le))}function $i(){jn=jn.filter(function(Hi){return Hi.instance!==Ft}),jn.filter(function(Hi){return Hi.doc===Le}).length===0&&pr(Le)}return{onCreate:cn,onDestroy:$i,onBeforeUpdate:function(){ki=Ft.props},onAfterUpdate:function(xi,vi){var Qi=vi.followCursor;oi||Qi!==void 0&&ki.followCursor!==Qi&&($i(),Qi?(cn(),Ft.state.isMounted&&!Ge&&!Pi()&&Oi()):(ci(),tn()))},onMount:function(){Ft.props.followCursor&&!Ge&&(Ke&&(Ui(Mn),Ke=!1),Pi()||Oi())},onTrigger:function(xi,vi){Be(vi)&&(Mn={clientX:vi.clientX,clientY:vi.clientY}),Ge=vi.type==="focus"},onHidden:function(){Ft.props.followCursor&&(tn(),ci(),Ke=!0)}}}};function yr(Rt,Ft){var Zt;return{popperOptions:Object.assign({},Rt.popperOptions,{modifiers:[].concat((((Zt=Rt.popperOptions)==null?void 0:Zt.modifiers)||[]).filter(function(Le){var oi=Le.name;return oi!==Ft.name}),[Ft])})}}var Mr={name:"inlinePositioning",defaultValue:!1,fn:function(Ft){var Zt=Ft.reference;function Le(){return!!Ft.props.inlinePositioning}var oi,Ge=-1,Ke=!1,ki=[],Pi={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(cn){var $i=cn.state;Le()&&(ki.indexOf($i.placement)!==-1&&(ki=[]),oi!==$i.placement&&ki.indexOf($i.placement)===-1&&(ki.push($i.placement),Ft.setProps({getReferenceClientRect:function(){return Oi($i.placement)}})),oi=$i.placement)}};function Oi(Ui){return Zn(G(Ui),Zt.getBoundingClientRect(),at(Zt.getClientRects()),Ge)}function ci(Ui){Ke=!0,Ft.setProps(Ui),Ke=!1}function tn(){Ke||ci(yr(Ft.props,Pi))}return{onCreate:tn,onAfterUpdate:tn,onTrigger:function(cn,$i){if(Be($i)){var Hi=at(Ft.reference.getClientRects()),xi=Hi.find(function(Qi){return Qi.left-2<=$i.clientX&&Qi.right+2>=$i.clientX&&Qi.top-2<=$i.clientY&&Qi.bottom+2>=$i.clientY}),vi=Hi.indexOf(xi);Ge=vi>-1?vi:Ge}},onHidden:function(){Ge=-1}}}};function Zn(Rt,Ft,Zt,Le){if(Zt.length<2||Rt===null)return Ft;if(Zt.length===2&&Le>=0&&Zt[0].left>Zt[1].right)return Zt[Le]||Ft;switch(Rt){case"top":case"bottom":{var oi=Zt[0],Ge=Zt[Zt.length-1],Ke=Rt==="top",ki=oi.top,Pi=Ge.bottom,Oi=Ke?oi.left:Ge.left,ci=Ke?oi.right:Ge.right,tn=ci-Oi,Ui=Pi-ki;return{top:ki,bottom:Pi,left:Oi,right:ci,width:tn,height:Ui}}case"left":case"right":{var cn=Math.min.apply(Math,Zt.map(function(jt){return jt.left})),$i=Math.max.apply(Math,Zt.map(function(jt){return jt.right})),Hi=Zt.filter(function(jt){return Rt==="left"?jt.left===cn:jt.right===$i}),xi=Hi[0].top,vi=Hi[Hi.length-1].bottom,Qi=cn,dt=$i,X=dt-Qi,_t=vi-xi;return{top:xi,bottom:vi,left:Qi,right:dt,width:X,height:_t}}default:return Ft}}var Ln={name:"sticky",defaultValue:!1,fn:function(Ft){var Zt=Ft.reference,Le=Ft.popper;function oi(){return Ft.popperInstance?Ft.popperInstance.state.elements.reference:Zt}function Ge(Oi){return Ft.props.sticky===!0||Ft.props.sticky===Oi}var Ke=null,ki=null;function Pi(){var Oi=Ge("reference")?oi().getBoundingClientRect():null,ci=Ge("popper")?Le.getBoundingClientRect():null;(Oi&&Tn(Ke,Oi)||ci&&Tn(ki,ci))&&Ft.popperInstance&&Ft.popperInstance.update(
58),Ke=Oi,ki=ci,Ft.state.isMounted&&requestAnimationFrame(Pi)}return{onMount:function(){Ft.props.sticky&&Pi()}}}};function Tn(Rt,Ft){return Rt&&Ft?Rt.top!==Ft.top||Rt.right!==Ft.right||Rt.bottom!==Ft.bottom||Rt.left!==Ft.left:!0}return sn.setDefaultProps({plugins:[Hn,cr,Mr,Ln],render:Pr}),sn.createSingleton=Wn,sn.delegate=ar,sn.hideAll=Cr,sn.roundArrow=s,sn});class ps{constructor(s,e,c){if(this.endDate=s,!this.isValidDate(s))throw new Error(`Invalid date ${s}`);if(typeof e!="function")throw new Error("updateCallback must be a function");if(typeof c!="function")throw new Error("finishCallback must be a function");this.updateCallback=e,this.finishCallback=c,this.intervalId=null,this.isRunning=!1}start(){if(!this.canRun()){this.finish();return}this.updateCountdown(),this.isRunning=!0,this.intervalId=setInterval(()=>{this.updateCountdown()},1e3)}updateCountdown(){const s=new Date,e=this.endDate-s;this.updateCallback(this.convertTimeDifferenceToObject(e,s)),Math.floor(e/1e3)<=0&&this.finish()}convertTimeDifferenceToObject(s,e){const c=Math.floor(s/864e5),u=Math.floor(s%(1e3*60*60*24)/(1e3*60*60)),d=Math.floor(s/(1e3*60*60)),S=Math.floor(s%(1e3*60*60)/(1e3*60)),I=Math.floor(s%(1e3*60)/1e3);return{days:c,hours:u,totalHours:d,minutes:S,seconds:I}}stop(){clearInterval(this.intervalId),this.isRunning=!1}finish(){this.stop(),this.finishCallback()}canRun(){return this.endDate>new Date}isValidDate(s){return s instanceof Date&&!isNaN(s)}}/*!
59 * clipboard.js v2.0.11
60 * https://clipboardjs.com/
61 *
62 * Licensed MIT © Zeno Rocha
63 */(function(s,e){typeof exports=="object"&&typeof module=="object"?module.exports=e():typeof define=="function"&&define.amd?define([],e):typeof exports=="object"?exports.ClipboardJS=e():s.ClipboardJS=e()})(this,function(){return function(){var t={686:function(c,u,d){d.d(u,{default:function(){return ye}});var S=d(279),I=d.n(S),Z=d(370),ct=d.n(Z),nt=d(817),rt=d.n(nt);function q(De){try{return document.execCommand(De)}catch{return!1}}var J=function(Te){var We=rt()(Te);return q("cut"),We},ht=J;function xt(De){var Te=document.documentElement.getAttribute("dir")==="rtl",We=document.createElement("textarea");We.style.fontSize="12pt",We.style.border="0",We.style.padding="0",We.style.margin="0",We.style.position="absolute",We.style[Te?"right":"left"]="-9999px";var ii=window.pageYOffset||document.documentElement.scrollTop;return We.style.top="".concat(ii,"px"),We.setAttribute("readonly",""),We.value=De,We}var Et=function(Te,We){var ii=xt(Te);We.container.appendChild(ii);var Ee=rt()(ii);return q("copy"),ii.remove(),Ee},x=function(Te){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},ii="";return typeof Te=="string"?ii=Et(Te,We):Te instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(Te==null?void 0:Te.type)?ii=Et(Te.value,We):(ii=rt()(Te),q("copy")),ii},R=x;function G(De){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?G=function(We){return typeof We}:G=function(We){return We&&typeof Symbol=="function"&&We.constructor===Symbol&&We!==Symbol.prototype?"symbol":typeof We},G(De)}var at=function(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},We=Te.action,ii=We===void 0?"copy":We,Ee=Te.container,Ei=Te.target,ji=Te.text;if(ii!=="copy"&&ii!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Ei!==void 0)if(Ei&&G(Ei)==="object"&&Ei.nodeType===1){if(ii==="copy"&&Ei.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(ii==="cut"&&(Ei.hasAttribute("readonly")||Ei.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(ji)return R(ji,{container:Ee});if(Ei)return ii==="cut"?ht(Ei):R(Ei,{container:Ee})},ut=at;function A(De){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A=function(We){return typeof We}:A=function(We){return We&&typeof Symbol=="function"&&We.constructor===Symbol&&We!==Symbol.prototype?"symbol":typeof We},A(De)}function Vt(De,Te){if(!(De instanceof Te))throw new TypeError("Cannot call a class as a function")}function Ot(De,Te){for(var We=0;We<Te.length;We++){var ii=Te[We];ii.enumerable=ii.enumerable||!1,ii.configurable=!0,"value"in ii&&(ii.writable=!0),Object.defineProperty(De,ii.key,ii)}}function Be(De,Te,We){return Te&&Ot(De.prototype,Te),We&&Ot(De,We),De}function xe(De,Te){if(typeof Te!="function"&&Te!==null)throw new TypeError("Super expression must either be null or a function");De.prototype=Object.create(Te&&Te.prototype,{constructor:{value:De,writable:!0,configurable:!0}}),Te&&me(De,Te)}function me(De,Te){return me=Object.setPrototypeOf||function(ii,Ee){return ii.__proto__=Ee,ii},me(De,Te)}function mt(De){var Te=Ct();return function(){var ii=g(De),Ee;if(Te){var Ei=g(this).constructor;Ee=Reflect.construct(ii,arguments,Ei)}else Ee=ii.apply(this,arguments);return ot(this,Ee)}}function ot(De,Te){return Te&&(A(Te)==="object"||typeof Te=="function")?Te:Pt(De)}function Pt(De){if(De===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return De}function Ct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function g(De){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(We){return We.__proto__||Object.getPrototypeOf(We)},g(De)}function ve(De,Te){var We="data-clipboard-".concat(De);if(Te.hasAttribute(We))return Te.getAttribute(We)}var ue=function(De){xe(We,De);var Te=mt(We);function We(ii,Ee){var Ei;return Vt(this,We),Ei=Te.call(this),Ei.resolveOptions(Ee),Ei.listenClick(ii),Ei}return Be(We,[{key:"resolveOptions",value:function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof Ee.action=="function"?Ee.action:this.defaultAction,this.target=typeof Ee.target=="function"?Ee.target:this.defaultTarget,this.text=typeof Ee.text=="function"?Ee.text:this.defaultText,this.container=A(Ee.container)==="object"?Ee.container:document.body}},{key:"listenClick",value:function(Ee){var Ei=this;this.listener=ct()(Ee,"click",function(ji){return Ei.onClick(ji)})}},{key:"onClick",value:function(Ee){var Ei=Ee.delegateTarget||Ee.currentTarget,ji=this.action(Ei)||"copy",wn=ut({action:ji,container:this.container,target:this.target(Ei),text:this.text(Ei)});
vendor: 4,833 bytes, line 63
63this.emit(wn?"success":"error",{action:ji,text:wn,trigger:Ei,clearSelection:function(){Ei&&Ei.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(Ee){return ve("action",Ee)}},{key:"defaultTarget",value:function(Ee){var Ei=ve("target",Ee);if(Ei)return document.querySelector(Ei)}},{key:"defaultText",value:function(Ee){return ve("text",Ee)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(Ee){var Ei=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return R(Ee,Ei)}},{key:"cut",value:function(Ee){return ht(Ee)}},{key:"isSupported",value:function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Ei=typeof Ee=="string"?[Ee]:Ee,ji=!!document.queryCommandSupported;return Ei.forEach(function(wn){ji=ji&&!!document.queryCommandSupported(wn)}),ji}}]),We}(I()),ye=ue},828:function(c){var u=9;if(typeof Element<"u"&&!Element.prototype.matches){var d=Element.prototype;d.matches=d.matchesSelector||d.mozMatchesSelector||d.msMatchesSelector||d.oMatchesSelector||d.webkitMatchesSelector}function S(I,Z){for(;I&&I.nodeType!==u;){if(typeof I.matches=="function"&&I.matches(Z))return I;I=I.parentNode}}c.exports=S},438:function(c,u,d){var S=d(828);function I(nt,rt,q,J,ht){var xt=ct.apply(this,arguments);return nt.addEventListener(q,xt,ht),{destroy:function(){nt.removeEventListener(q,xt,ht)}}}function Z(nt,rt,q,J,ht){return typeof nt.addEventListener=="function"?I.apply(null,arguments):typeof q=="function"?I.bind(null,document).apply(null,arguments):(typeof nt=="string"&&(nt=document.querySelectorAll(nt)),Array.prototype.map.call(nt,function(xt){return I(xt,rt,q,J,ht)}))}function ct(nt,rt,q,J){return function(ht){ht.delegateTarget=S(ht.target,rt),ht.delegateTarget&&J.call(nt,ht)}}c.exports=Z},879:function(c,u){u.node=function(d){return d!==void 0&&d instanceof HTMLElement&&d.nodeType===1},u.nodeList=function(d){var S=Object.prototype.toString.call(d);return d!==void 0&&(S==="[object NodeList]"||S==="[object HTMLCollection]")&&"length"in d&&(d.length===0||u.node(d[0]))},u.string=function(d){return typeof d=="string"||d instanceof String},u.fn=function(d){var S=Object.prototype.toString.call(d);return S==="[object Function]"}},370:function(c,u,d){var S=d(879),I=d(438);function Z(q,J,ht){if(!q&&!J&&!ht)throw new Error("Missing required arguments");if(!S.string(J))throw new TypeError("Second argument must be a String");if(!S.fn(ht))throw new TypeError("Third argument must be a Function");if(S.node(q))return ct(q,J,ht);if(S.nodeList(q))return nt(q,J,ht);if(S.string(q))return rt(q,J,ht);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function ct(q,J,ht){return q.addEventListener(J,ht),{destroy:function(){q.removeEventListener(J,ht)}}}function nt(q,J,ht){return Array.prototype.forEach.call(q,function(xt){xt.addEventListener(J,ht)}),{destroy:function(){Array.prototype.forEach.call(q,function(xt){xt.removeEventListener(J,ht)})}}}function rt(q,J,ht){return I(document.body,q,J,ht)}c.exports=Z},817:function(c){function u(d){var S;if(d.nodeName==="SELECT")d.focus(),S=d.value;else if(d.nodeName==="INPUT"||d.nodeName==="TEXTAREA"){var I=d.hasAttribute("readonly");I||d.setAttribute("readonly",""),d.select(),d.setSelectionRange(0,d.value.length),I||d.removeAttribute("readonly"),S=d.value}else{d.hasAttribute("contenteditable")&&d.focus();var Z=window.getSelection(),ct=document.createRange();ct.selectNodeContents(d),Z.removeAllRanges(),Z.addRange(ct),S=Z.toString()}return S}c.exports=u},279:function(c){function u(){}u.prototype={on:function(d,S,I){var Z=this.e||(this.e={});return(Z[d]||(Z[d]=[])).push({fn:S,ctx:I}),this},once:function(d,S,I){var Z=this;function ct(){Z.off(d,ct),S.apply(I,arguments)}return ct._=S,this.on(d,ct,I)},emit:function(d){var S=[].slice.call(arguments,1),I=((this.e||(this.e={}))[d]||[]).slice(),Z=0,ct=I.length;for(Z;Z<ct;Z++)I[Z].fn.apply(I[Z].ctx,S);return this},off:function(d,S){var I=this.e||(this.e={}),Z=I[d],ct=[];if(Z&&S)for(var nt=0,rt=Z.length;nt<rt;nt++)Z[nt].fn!==S&&Z[nt].fn._!==S&&ct.push(Z[nt]);return ct.length?I[d]=ct:delete I[d],this}},c.exports=u,c.exports.TinyEmitter=u}},s={};function e(c){if(s[c])return s[c].exports;var u=s[c]={exports:{}};return t[c](u,u.exports,e),u.exports}return function(){e.n=function(c){var u=c&&c.__esModule?function(){return c.default}:function(){return c};return e.d(u,{a:u}),u}}(),function(){e.d=function(c,u){for(var d in u)e.o(u,d)&&!e.o(c,d)&&Object.defineProperty(c,d,{enumerable:!0,get:u[d]})}}(),function(){e.o=function(c,u){return Object.prototype.hasOwnProperty.call(c,u)}}(),e(686)}().default});class Xs{constructor(){this.samples=[],this.windowMs=120,this.maxSamples=12}clear(){this.samples=[]}track(s,e,c){this.samples.push({x:s,y:e,time:c}
63);const u=c-this.windowMs;for(;this.samples.length>2&&this.samples[0].time<u;)this.samples.shift();for(;this.samples.length>this.maxSamples;)this.samples.shift()}isAimingAt(s,e){if(this.samples.length<2)return!1;e=e||{};const c=e.tolerance||0,u=e.minMove||4,d=this.samples[0],S=this.samples[this.samples.length-1],I=S.x-d.x,Z=S.y-d.y;if(I*I+Z*Z<u*u||Z<=0||S.y>s.top)return!1;const ct={x:s.left-c-S.x,y:s.top-S.y},nt={x:s.right+c-S.x,y:s.top-S.y},rt={x:I,y:Z},q=(ht,xt)=>ht.x*xt.y-ht.y*xt.x,J=q(ct,nt);return J===0?!1:q(ct,rt)*J>=0&&q(rt,nt)*J>=0}drawDebug(s,e){if(this.samples.length<1)return;e=e||{};const c=e.tolerance||0,u=this.samples[0],d=this.samples[this.samples.length-1],S=this.isAimingAt(s,e);let I=document.getElementById("MenuAimDebug");I||(I=document.createElementNS("http://www.w3.org/2000/svg","svg"),I.id="MenuAimDebug",I.setAttribute("style","position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:none;z-index:2147483647;"),document.body.appendChild(I));const Z=S?"limegreen":"red",ct=S?"rgba(0,200,0,0.18)":"rgba(220,0,0,0.15)",nt=d.x+","+d.y+" "+(s.left-c)+","+s.top+" "+(s.right+c)+","+s.top;I.innerHTML='<polygon points="'+nt+'" fill="'+ct+'" stroke="'+Z+'" stroke-width="2"/><line x1="'+u.x+'" y1="'+u.y+'" x2="'+d.x+'" y2="'+d.y+'" stroke="blue" stroke-width="3"/><circle cx="'+d.x+'" cy="'+d.y+'" r="4" fill="blue"/>'}clearDebug(){const s=document.getElementById("MenuAimDebug");s&&s.remove()}}(function(t,s){typeof define=="function"&&define.amd?define(s):typeof exports=="object"?module.exports=s():t.NProgress=s()})(this,function(){var t={};t.version="0.2.0";var s=t.settings={minimum:.08,easing:"linear",positionUsing:"",speed:200,trickle:!0,trickleSpeed:200,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};t.configure=function(J){var ht,xt;for(ht in J)xt=J[ht],xt!==void 0&&J.hasOwnProperty(ht)&&(s[ht]=xt);return this},t.status=null,t.set=function(J){var ht=t.isStarted();J=c(J,s.minimum,1),t.status=J===1?null:J;var xt=t.render(!ht),Et=xt.querySelector(s.barSelector),x=s.speed,R=s.easing;return xt.offsetWidth,S(function(G){s.positionUsing===""&&(s.positionUsing=t.getPositioningCSS()),I(Et,d(J,x,R)),J===1?(I(xt,{transition:"none",opacity:1}),xt.offsetWidth,setTimeout(function(){I(xt,{transition:"all "+x+"ms linear",opacity:0}),setTimeout(function(){t.remove(),G()},x)},x)):setTimeout(G,x)}),this},t.isStarted=function(){return typeof t.status=="number"},t.start=function(){t.status||t.set(0);var J=function(){setTimeout(function(){t.status&&(t.trickle(),J())},s.trickleSpeed)};return s.trickle&&J(),this},t.done=function(J){return!J&&!t.status?this:t.inc(.3+.5*Math.random()).set(1)},t.inc=function(J){var ht=t.status;return ht?ht>1?void 0:(typeof J!="number"&&(ht>=0&&ht<.2?J=.1:ht>=.2&&ht<.5?J=.04:ht>=.5&&ht<.8?J=.02:ht>=.8&&ht<.99?J=.005:J=0),ht=c(ht+J,0,.994),t.set(ht)):t.start()},t.trickle=function(){return t.inc()},function(){var J=0,ht=0;t.promise=function(xt){return!xt||xt.state()==="resolved"?this:(ht===0&&t.start(),J++,ht++,xt.always(function(){ht--,ht===0?(J=0,t.done()):t.set((J-ht)/J)}),this)}}(),t.render=function(J){if(t.isRendered())return document.getElementById("nprogress");ct(document.documentElement,"nprogress-busy");var ht=document.createElement("div");ht.id="nprogress",ht.innerHTML=s.template;var xt=ht.querySelector(s.barSelector),Et=J?"-100":u(t.status||0),x=e(s.parent)?s.parent:document.querySelector(s.parent),R;return I(xt,{transition:"all 0 linear",transform:"translate3d("+Et+"%,0,0)"}),s.showSpinner||(R=ht.querySelector(s.spinnerSelector),R&&q(R)),x!=document.body&&ct(x,"nprogress-custom-parent"),x.appendChild(ht),ht},t.remove=function(){nt(document.documentElement,"nprogress-busy");var J=e(s.parent)?s.parent:document.querySelector(s.parent);nt(J,"nprogress-custom-parent");var ht=document.getElementById("nprogress");ht&&q(ht)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var J=document.body.style,ht="WebkitTransform"in J?"Webkit":"MozTransform"in J?"Moz":"msTransform"in J?"ms":"OTransform"in J?"O":"";return ht+"Perspective"in J?"translate3d":ht+"Transform"in J?"translate":"margin"};function e(J){return typeof HTMLElement=="object"?J instanceof HTMLElement:J&&typeof J=="object"&&J.nodeType===1&&typeof J.nodeName=="string"}function c(J,ht,xt){return J<ht?ht:J>xt?xt:J}function u(J){return(-1+J)*100}function d(J,ht,xt){var Et;return s.positionUsing==="translate3d"?Et={transform:"translate3d("+u(J)+"%,0,0)"}:s.positionUsing==="translate"?Et={transform:"translate("+u(J)+"%,0)"}:Et={"margin-left":u(J)+"%"},Et.transition="all "+ht+"ms "+xt,Et}var S=function(){var J=[];function ht(){var xt=J.shift();xt&&xt(ht)}
63return function(xt){J.push(xt),J.length==1&&ht()}}(),I=function(){var J=["Webkit","O","Moz","ms"],ht={};function xt(G){return G.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(at,ut){return ut.toUpperCase()})}function Et(G){var at=document.body.style;if(G in at)return G;for(var ut=J.length,A=G.charAt(0).toUpperCase()+G.slice(1),Vt;ut--;)if(Vt=J[ut]+A,Vt in at)return Vt;return G}function x(G){return G=xt(G),ht[G]||(ht[G]=Et(G))}function R(G,at,ut){at=x(at),G.style[at]=ut}return function(G,at){var ut=arguments,A,Vt;if(ut.length==2)for(A in at)Vt=at[A],Vt!==void 0&&at.hasOwnProperty(A)&&R(G,A,Vt);else R(G,ut[1],ut[2])}}();function Z(J,ht){var xt=typeof J=="string"?J:rt(J);return xt.indexOf(" "+ht+" ")>=0}function ct(J,ht){var xt=rt(J),Et=xt+ht;Z(xt,ht)||(J.className=Et.substring(1))}function nt(J,ht){var xt=rt(J),Et;Z(J,ht)&&(Et=xt.replace(" "+ht+" "," "),J.className=Et.substring(1,Et.length-1))}function rt(J){return(" "+(J&&J.className||"")+" ").replace(/\s+/gi," ")}function q(J){J&&J.parentNode&&J.parentNode.removeChild(J)}return t}),function(t,s,e,c){function u(x,R){var G,at,ut,A=[],Vt=0;x&&x.isDefaultPrevented()||(x.preventDefault(),R=R||{}
vendor: 5,342 bytes, line 63
63,x&&x.data&&(R=ht(x.data.options,R)),G=R.$target||e(x.currentTarget).trigger("blur"),(ut=e.fancybox.getInstance())&&ut.$trigger&&ut.$trigger.is(G)||(R.selector?A=e(R.selector):(at=G.attr("data-fancybox")||"",at?(A=x.data?x.data.items:[],A=A.length?A.filter('[data-fancybox="'+at+'"]'):e('[data-fancybox="'+at+'"]')):A=[G]),Vt=e(A).index(G),Vt<0&&(Vt=0),ut=e.fancybox.open(A,R,Vt),ut.$trigger=G))}if(t.console=t.console||{info:function(x){}},e){if(e.fn.fancybox)return void console.info("fancyBox already initialized");var d={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:`<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn't support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>`,format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"><div class="fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:e.noop,beforeLoad:e.noop,afterLoad:e.noop,beforeShow:e.noop,afterShow:e.noop,beforeClose:e.noop,afterClose:e.noop,onActivate:e.noop,onDeactivate:e.noop,clickContent:function(x,R){return x.type==="image"&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(x,R){return x.type==="image"&&"toggleControls"},clickSlide:function(x,R){return x.type==="image"?"toggleControls":"close"},dblclickContent:function(x,R){return x.type==="image"&&"zoom"},dblclickSlide:function(x,R){return x.type==="image"&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schlie&szlig;en",NEXT:"Weiter",PREV:"Zur&uuml;ck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaub
63ilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergr&ouml;&szlig;ern"}}},S=e(t),I=e(s),Z=0,ct=function(x){return x&&x.hasOwnProperty&&x instanceof e},nt=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(x){return t.setTimeout(x,1e3/60)}}(),rt=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(x){t.clearTimeout(x)}}(),q=function(){var x,R=s.createElement("fakeelement"),G={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(x in G)if(R.style[x]!==void 0)return G[x];return"transitionend"}(),J=function(x){return x&&x.length&&x[0].offsetHeight},ht=function(x,R){var G=e.extend(!0,{},x,R);return e.each(R,function(at,ut){e.isArray(ut)&&(G[at]=ut)}),G},xt=function(x){var R,G;return!(!x||x.ownerDocument!==s)&&(e(".fancybox-container").css("pointer-events","none"),R={x:x.getBoundingClientRect().left+x.offsetWidth/2,y:x.getBoundingClientRect().top+x.offsetHeight/2},G=s.elementFromPoint(R.x,R.y)===x,e(".fancybox-container").css("pointer-events",""),G)},Et=function(x,R,G){var at=this;at.opts=ht({index:G},e.fancybox.defaults),e.isPlainObject(R)&&(at.opts=ht(at.opts,R)),e.fancybox.isMobile&&(at.opts=ht(at.opts,at.opts.mobile)),at.id=at.opts.id||++Z,at.currIndex=parseInt(at.opts.index,10)||0,at.prevIndex=null,at.prevPos=null,at.currPos=0,at.firstRun=!0,at.group=[],at.slides={},at.addContent(x),at.group.length&&at.init()};e.extend(Et.prototype,{init:function(){var x,R,G=this,at=G.group[G.currIndex],ut=at.opts;ut.closeExisting&&e.fancybox.close(!0),e("body").addClass("fancybox-active"),!e.fancybox.getInstance()&&ut.hideScrollbar!==!1&&!e.fancybox.isMobile&&s.body.scrollHeight>t.innerHeight&&(e("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(t.innerWidth-s.documentElement.clientWidth)+"px;}</style>"),e("body").addClass("compensate-for-scrollbar")),R="",e.each(ut.buttons,function(A,Vt){R+=ut.btnTpl[Vt]||""}),x=e(G.translate(G,ut.baseTpl.replace("{{buttons}}",R).replace("{{arrows}}",ut.btnTpl.arrowLeft+ut.btnTpl.arrowRight))).attr("id","fancybox-container-"+G.id).addClass(ut.baseClass).data("FancyBox",G).appendTo(ut.parentEl),G.$refs={container:x},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(A){G.$refs[A]=x.find(".fancybox-"+A)}),G.trigger("onInit"),G.activate(),G.jumpTo(G.currIndex)},translate:function(x,R){var G=x.opts.i18n[x.opts.lang]||x.opts.i18n.en;return R.replace(/\{\{(\w+)\}\}/g,function(at,ut){return G[ut]===void 0?at:G[ut]})},addContent:function(x){var R,G=this,at=e.makeArray(x);e.each(at,function(ut,A){var Vt,Ot,Be,xe,me,mt={},ot={};e.isPlainObject(A)?(mt=A,ot=A.opts||A):e.type(A)==="object"&&e(A).length?(Vt=e(A),ot=Vt.data()||{},ot=e.extend(!0,{},ot,ot.options),ot.$orig=Vt,mt.src=G.opts.src||ot.src||Vt.attr("href"),mt.type||mt.src||(mt.type="inline",mt.src=A)):mt={type:"html",src:A+""},mt.opts=e.extend(!0,{},G.opts,ot),e.isArray(ot.buttons)&&(mt.opts.buttons=ot.buttons),e.fancybox.isMobile&&mt.opts.mobile&&(mt.opts=ht(mt.opts,mt.opts.mobile)),Ot=mt.type||mt.opts.type,xe=mt.src||"",!Ot&&xe&&((Be=xe.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(Ot="video",mt.opts.video.format||(mt.opts.video.format="video/"+(Be[1]==="ogv"?"ogg":Be[1]))):xe.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?Ot="image":xe.match(/\.(pdf)((\?|#).*)?$/i)?(Ot="iframe",mt=e.extend(!0,mt,{contentType:"pdf",opts:{iframe:{preload:!1}}})):xe.charAt(0)==="#"&&(Ot="inline")),Ot?mt.type=Ot:G.trigger("objectNeedsType",mt),mt.contentType||(mt.contentType=e.inArray(mt.type,["html","inline","ajax"])>-1?"html":mt.type),mt.index=G.group.length,mt.opts.smallBtn=="auto"&&(mt.opts.smallBtn=e.inArray(mt.type,["html","inline","ajax"])>-1),mt.opts.toolbar==="auto"&&(mt.opts.toolbar=!mt.opts.smallBtn),mt.$thumb=mt.opts.$thumb||null,mt.opts.$trigger&&mt.index===G.opts.index&&(mt.$thumb=mt.opts.$trigger.find("img:first"),mt.$thumb.length&&(mt.opts.$orig=mt.opts.$trigger)),mt.$thumb&&mt.$thumb.length||!mt.opts.$orig||(mt.$thumb=mt.opts.$orig.find("img:first")),mt.$thumb&&!mt.$thumb.length&&(mt.$thumb=null),mt.thumb=mt.opts.thumb||(mt.$thumb?mt.$thumb[0].src:null),e.type(mt.opts.caption)==="function"&&(mt.opts.caption=mt.opts.caption.apply(A,[G,mt])),e.type(G.opts.caption)==="function"&&(mt.opts.caption=G.opts.caption.apply(A,[G,mt])),mt.opts.caption instanceof e||(mt.opts.caption=mt.opts.caption===void 0?"":mt.opts.caption+""),mt.type==="ajax"&&(me=xe.split(/\s+/,2),me.length>1&&(mt.src=me.shift(),mt.opts.filter=me.shift())),mt.opts.modal&&(mt.opts=e.extend(!0,mt.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),G.group.push(mt)}),Object.keys(G.slides).length&&(G.updateControls(),(R=G.Thumbs)&&R.isActive&&(R.create(),R.focus()))},addEvents:function(){var x=this;x.removeEvents(),x.$refs.container.on("click.fb-close","[data-fancybox-close]",function(R){R.stopPropagation(),R.preventDefault(),x.close(R)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(R){R.stopPropagation(),R.preventDefault(),x.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(R){R.stopPropagation(),R.preventDefault(),x.next()}).on("click.fb","[data-fancybox-zoom]",function(R){x[x.isScaledDown()?"scaleToActual":"scaleToFit"]()}),S.on("orientationchange.fb resize.fb",function(R){R&&R.originalEvent&&R.originalEvent.type==="resize"?(x.requestId&&rt(x.requestId),x.requestId=nt(function(){x.update(R)}
vendor: 5,072 bytes, line 63
63)):(x.current&&x.current.type==="iframe"&&x.$refs.stage.hide(),setTimeout(function(){x.$refs.stage.show(),x.update(R)},e.fancybox.isMobile?600:250))}),I.on("keydown.fb",function(R){var G=e.fancybox?e.fancybox.getInstance():null,at=G.current,ut=R.keyCode||R.which;if(ut==9)return void(at.opts.trapFocus&&x.focus(R));if(!(!at.opts.keyboard||R.ctrlKey||R.altKey||R.shiftKey||e(R.target).is("input,textarea,video,audio,select")))return ut===8||ut===27?(R.preventDefault(),void x.close(R)):ut===37||ut===38?(R.preventDefault(),void x.previous()):ut===39||ut===40?(R.preventDefault(),void x.next()):void x.trigger("afterKeydown",R,ut)}),x.group[x.currIndex].opts.idleTime&&(x.idleSecondsCounter=0,I.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(R){x.idleSecondsCounter=0,x.isIdle&&x.showControls(),x.isIdle=!1}),x.idleInterval=t.setInterval(function(){++x.idleSecondsCounter>=x.group[x.currIndex].opts.idleTime&&!x.isDragging&&(x.isIdle=!0,x.idleSecondsCounter=0,x.hideControls())},1e3))},removeEvents:function(){var x=this;S.off("orientationchange.fb resize.fb"),I.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),x.idleInterval&&(t.clearInterval(x.idleInterval),x.idleInterval=null)},previous:function(x){return this.jumpTo(this.currPos-1,x)},next:function(x){return this.jumpTo(this.currPos+1,x)},jumpTo:function(x,R){var G,at,ut,A,Vt,Ot,Be,xe,me,mt=this,ot=mt.group.length;if(!(mt.isDragging||mt.isClosing||mt.isAnimating&&mt.firstRun)){if(x=parseInt(x,10),!(ut=mt.current?mt.current.opts.loop:mt.opts.loop)&&(x<0||x>=ot))return!1;if(G=mt.firstRun=!Object.keys(mt.slides).length,Vt=mt.current,mt.prevIndex=mt.currIndex,mt.prevPos=mt.currPos,A=mt.createSlide(x),ot>1&&((ut||A.index<ot-1)&&mt.createSlide(x+1),(ut||A.index>0)&&mt.createSlide(x-1)),mt.current=A,mt.currIndex=A.index,mt.currPos=A.pos,mt.trigger("beforeShow",G),mt.updateControls(),A.forcedDuration=void 0,e.isNumeric(R)?A.forcedDuration=R:R=A.opts[G?"animationDuration":"transitionDuration"],R=parseInt(R,10),at=mt.isMoved(A),A.$slide.addClass("fancybox-slide--current"),G)return A.opts.animationEffect&&R&&mt.$refs.container.css("transition-duration",R+"ms"),mt.$refs.container.addClass("fancybox-is-open").trigger("focus"),mt.loadSlide(A),void mt.preload("image");Ot=e.fancybox.getTranslate(Vt.$slide),Be=e.fancybox.getTranslate(mt.$refs.stage),e.each(mt.slides,function(Pt,Ct){e.fancybox.stop(Ct.$slide,!0)}),Vt.pos!==A.pos&&(Vt.isComplete=!1),Vt.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),at?(me=Ot.left-(Vt.pos*Ot.width+Vt.pos*Vt.opts.gutter),e.each(mt.slides,function(Pt,Ct){Ct.$slide.removeClass("fancybox-animated").removeClass(function(ve,ue){return(ue.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var g=Ct.pos*Ot.width+Ct.pos*Ct.opts.gutter;e.fancybox.setTranslate(Ct.$slide,{top:0,left:g-Be.left+me}),Ct.pos!==A.pos&&Ct.$slide.addClass("fancybox-slide--"+(Ct.pos>A.pos?"next":"previous")),J(Ct.$slide),e.fancybox.animate(Ct.$slide,{top:0,left:(Ct.pos-A.pos)*Ot.width+(Ct.pos-A.pos)*Ct.opts.gutter},R,function(){Ct.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),Ct.pos===mt.currPos&&mt.complete()})})):R&&A.opts.transitionEffect&&(xe="fancybox-animated fancybox-fx-"+A.opts.transitionEffect,Vt.$slide.addClass("fancybox-slide--"+(Vt.pos>A.pos?"next":"previous")),e.fancybox.animate(Vt.$slide,xe,R,function(){Vt.$slide.removeClass(xe).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),A.isLoaded?mt.revealContent(A):mt.loadSlide(A),mt.preload("image")}},createSlide:function(x){var R,G,at=this;return G=x%at.group.length,G=G<0?at.group.length+G:G,!at.slides[x]&&at.group[G]&&(R=e('<div class="fancybox-slide"></div>').appendTo(at.$refs.stage),at.slides[x]=e.extend(!0,{},at.group[G],{pos:x,$slide:R,isLoaded:!1}),at.updateSlide(at.slides[x])),at.slides[x]},scaleToActual:function(x,R,G){var at,ut,A,Vt,Ot,Be=this,xe=Be.current,me=xe.$content,mt=e.fancybox.getTranslate(xe.$slide).width,ot=e.fancybox.getTranslate(xe.$slide).height,Pt=xe.width,Ct=xe.height;Be.isAnimating||Be.isMoved()||!me||xe.type!="image"||!xe.isLoaded||xe.hasError||(Be.isAnimating=!0,e.fancybox.stop(me),x=x===void 0?.5*mt:x,R=R===void 0?.5*ot:R,at=e.fancybox.getTranslate(me),at.top-=e.fancybox.getTranslate(xe.$slide).top,at.left-=e.fancybox.getTranslate(xe.$slide).left,Vt=Pt/at.width,Ot=Ct/at.height,ut=.5*mt-.5*Pt,A=.5*ot-.5*Ct,Pt>mt&&(ut=at.left*Vt-(x*Vt-x),ut>0&&(ut=0),ut<mt-Pt&&(ut=mt-Pt)),Ct>ot&&(A=at.top*Ot-(R*Ot-R),A>0&&(A=0),A<ot-Ct&&(A=ot-Ct)),Be.updateCursor(Pt,Ct),e.fancybox.animate(me,{top:A,left:ut,scaleX:Vt,scaleY:Ot},G||366,function(){Be.isAnimating=!1}),Be.SlideShow&&Be.SlideShow.isActive&&Be.SlideShow.stop())},scaleToFit:function(x){var R,G=this,at=G.current,ut=at.$content;G.isAnimating||G.isMoved()||!ut||at.type!="image"||!at.isLoaded||at.hasError||(G.isAnimating=!0,e.fancybox.stop(ut),R=G.getFitPos(at),G.updateCursor(R.width,R.height),e.fancybox.animate(ut,{top:R.top,left
63:R.left,scaleX:R.width/ut.width(),scaleY:R.height/ut.height()},x||366,function(){G.isAnimating=!1}))},getFitPos:function(x){var R,G,at,ut,A=this,Vt=x.$content,Ot=x.$slide,Be=x.width||x.opts.width,xe=x.height||x.opts.height,me={};return!!(x.isLoaded&&Vt&&Vt.length)&&(R=e.fancybox.getTranslate(A.$refs.stage).width,G=e.fancybox.getTranslate(A.$refs.stage).height,R-=parseFloat(Ot.css("paddingLeft"))+parseFloat(Ot.css("paddingRight"))+parseFloat(Vt.css("marginLeft"))+parseFloat(Vt.css("marginRight")),G-=parseFloat(Ot.css("paddingTop"))+parseFloat(Ot.css("paddingBottom"))+parseFloat(Vt.css("marginTop"))+parseFloat(Vt.css("marginBottom")),Be&&xe||(Be=R,xe=G),at=Math.min(1,R/Be,G/xe),Be*=at,xe*=at,Be>R-.5&&(Be=R),xe>G-.5&&(xe=G),x.type==="image"?(me.top=Math.floor(.5*(G-xe))+parseFloat(Ot.css("paddingTop")),me.left=Math.floor(.5*(R-Be))+parseFloat(Ot.css("paddingLeft"))):x.contentType==="video"&&(ut=x.opts.width&&x.opts.height?Be/xe:x.opts.ratio||16/9,xe>Be/ut?xe=Be/ut:Be>xe*ut&&(Be=xe*ut)),me.width=Be,me.height=xe,me)},update:function(x){var R=this;e.each(R.slides,function(G,at){R.updateSlide(at,x)})},updateSlide:function(x,R){var G=this,at=x&&x.$content,ut=x.width||x.opts.width,A=x.height||x.opts.height,Vt=x.$slide;G.adjustCaption(x),at&&(ut||A||x.contentType==="video")&&!x.hasError&&(e.fancybox.stop(at),e.fancybox.setTranslate(at,G.getFitPos(x)),x.pos===G.currPos&&(G.isAnimating=!1,G.updateCursor())),G.adjustLayout(x),Vt.length&&(Vt.trigger("refresh"),x.pos===G.currPos&&G.$refs.toolbar.add(G.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",Vt.get(0).scrollHeight>Vt.get(0).clientHeight)),G.trigger("onUpdate",x,R)},centerSlide:function(x){var R=this,G=R.current,at=G.$slide;!R.isClosing&&G&&(at.siblings().css({transform:"",opacity:""}),at.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),e.fancybox.animate(at,{top:0,left:0,opacity:1},x===void 0?0:x,function(){at.css({transform:"",opacity:""}),G.isComplete||R.complete()},!1))},isMoved:function(x){var R,G,at=x||this.current;return!!at&&(G=e.fancybox.getTranslate(this.$refs.stage),R=e.fancybox.getTranslate(at.$slide),!at.$slide.hasClass("fancybox-animated")&&(Math.abs(R.top-G.top)>.5||Math.abs(R.left-G.left)>.5))},updateCursor:function(x,R){var G,at,ut=this,A=ut.current,Vt=ut.$refs.container;A&&!ut.isClosing&&ut.Guestures&&(Vt.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),G=ut.canPan(x,R),at=!!G||ut.isZoomable(),Vt.toggleClass("fancybox-is-zoomable",at),e("[data-fancybox-zoom]").prop("disabled",!at),G?Vt.addClass("fancybox-can-pan"):at&&(A.opts.clickContent==="zoom"||e.isFunction(A.opts.clickContent)&&A.opts.clickContent(A)=="zoom")?Vt.addClass("fancybox-can-zoomIn"):A.opts.touch&&(A.opts.touch.vertical||ut.group.length>1)&&A.contentType!=="video"&&Vt.addClass("fancybox-can-swipe"))},isZoomable:function(){var x,R=this,G=R.current;return!!(G&&!R.isClosing&&G.type==="image"&&!G.hasError&&(!G.isLoaded||(x=R.getFitPos(G))&&(G.width>x.width||G.height>x.height)))},isScaledDown:function(x,R){var G=this,at=!1,ut=G.current,A=ut.$content;return x!==void 0&&R!==void 0?at=x<ut.width&&R<ut.height:A&&(at=e.fancybox.getTranslate(A),at=at.width<ut.width&&at.height<ut.height),at},canPan:function(x,R){var G=this,at=G.current,ut=null,A=!1;return at.type==="image"&&(at.isComplete||x&&R)&&!at.hasError&&(A=G.getFitPos(at),x!==void 0&&R!==void 0?ut={width:x,height:R}:at.isComplete&&(ut=e.fancybox.getTranslate(at.$content)),ut&&A&&(A=Math.abs(ut.width-A.width)>1.5||Math.abs(ut.height-A.height)>1.5)),A},loadSlide:function(x){var R,G,at,ut=this;if(!x.isLoading&&!x.isLoaded){if(x.isLoading=!0,ut.trigger("beforeLoad",x)===!1)return x.isLoading=!1,!1;switch(R=x.type,G=x.$slide,G.off("refresh").trigger("onReset").addClass(x.opts.slideClass),R){case"image":ut.setImage(x);break;case"iframe":ut.setIframe(x);break;case"html":ut.setContent(x,x.src||x.content);break;case"video":ut.setContent(x,x.opts.video.tpl.replace(/\{\{src\}\}/gi,x.src).replace("{{format}}",x.opts.videoFormat||x.opts.video.format||"").replace("{{poster}}",x.thumb||""));break;case"inline":e(x.src).length?ut.setContent(x,e(x.src)):ut.setError(x);break;case"ajax":ut.showLoading(x),at=e.ajax(e.extend({},x.opts.ajax.settings,{url:x.src,success:function(A,Vt){Vt==="success"&&ut.setContent(x,A)},error:function(A,Vt){A&&Vt!=="abort"&&ut.setError(x)}})),G.one("onReset",function(){at.abort()});break;default:ut.setError(x)}return!0}},setImage:function(x){var R,G=this;setTimeout(function(){var at=x.$image;G.isClosing||!x.isLoading||at&&at.length&&at[0].complete||x.hasError||G.showLoading(x)},50),G.checkSrcset(x),x.$content=e('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(x.$slide.addClass("fancybox-slide--image")),x.opts.preload!==!1&&x.opts.width&&x.opts.height&&x.thumb&&(x.width=x.opts.width,x.height=x.opts.height,R=s.createElement("img"),R.onerror=function(){e(this).remove(),x.$ghost=null},R.onload=function(){G.afterLoad(x)},x.$ghost=e(R).addClass("fancybox-image").appendTo(x.$content).attr("src",x.thumb)),G.setBigImage(x)},checkSrcset:function(x){var R,G,at,ut,A=x.opts.srcset||x.opts.image.srcset;if(A){at=t.devicePixelRatio||1,ut=t.innerWidth*at,G=A.split(",").map(function(Be){var xe={};
vendor: 9,251 bytes, line 63
63return Be.trim().split(/\s+/).forEach(function(me,mt){var ot=parseInt(me.substring(0,me.length-1),10);if(mt===0)return xe.url=me;ot&&(xe.value=ot,xe.postfix=me[me.length-1])}),xe}),G.sort(function(Be,xe){return Be.value-xe.value});for(var Vt=0;Vt<G.length;Vt++){var Ot=G[Vt];if(Ot.postfix==="w"&&Ot.value>=ut||Ot.postfix==="x"&&Ot.value>=at){R=Ot;break}}!R&&G.length&&(R=G[G.length-1]),R&&(x.src=R.url,x.width&&x.height&&R.postfix=="w"&&(x.height=x.width/x.height*R.value,x.width=R.value),x.opts.srcset=A)}},setBigImage:function(x){var R=this,G=s.createElement("img"),at=e(G);x.$image=at.one("error",function(){R.setError(x)}).one("load",function(){var ut;x.$ghost||(R.resolveImageSlideSize(x,this.naturalWidth,this.naturalHeight),R.afterLoad(x)),R.isClosing||(x.opts.srcset&&(ut=x.opts.sizes,ut&&ut!=="auto"||(ut=(x.width/x.height>1&&S.width()/S.height()>1?"100":Math.round(x.width/x.height*100))+"vw"),at.attr("sizes",ut).attr("srcset",x.opts.srcset)),x.$ghost&&setTimeout(function(){x.$ghost&&!R.isClosing&&x.$ghost.hide()},Math.min(300,Math.max(1e3,x.height/1600))),R.hideLoading(x))}).addClass("fancybox-image").attr("src",x.src).appendTo(x.$content),(G.complete||G.readyState=="complete")&&at.naturalWidth&&at.naturalHeight?at.trigger("load"):G.error&&at.trigger("error")},resolveImageSlideSize:function(x,R,G){var at=parseInt(x.opts.width,10),ut=parseInt(x.opts.height,10);x.width=R,x.height=G,at>0&&(x.width=at,x.height=Math.floor(at*G/R)),ut>0&&(x.width=Math.floor(ut*R/G),x.height=ut)},setIframe:function(x){var R,G=this,at=x.opts.iframe,ut=x.$slide;x.$content=e('<div class="fancybox-content'+(at.preload?" fancybox-is-hidden":"")+'"></div>').css(at.css).appendTo(ut),ut.addClass("fancybox-slide--"+x.contentType),x.$iframe=R=e(at.tpl.replace(/\{rnd\}/g,new Date().getTime())).attr(at.attr).appendTo(x.$content),at.preload?(G.showLoading(x),R.on("load.fb error.fb",function(A){this.isReady=1,x.$slide.trigger("refresh"),G.afterLoad(x)}),ut.on("refresh.fb",function(){var A,Vt,Ot=x.$content,Be=at.css.width,xe=at.css.height;if(R[0].isReady===1){try{A=R.contents(),Vt=A.find("body")}catch{}Vt&&Vt.length&&Vt.children().length&&(ut.css("overflow","visible"),Ot.css({width:"100%","max-width":"100%",height:"9999px"}),Be===void 0&&(Be=Math.ceil(Math.max(Vt[0].clientWidth,Vt.outerWidth(!0)))),Ot.css("width",Be||"").css("max-width",""),xe===void 0&&(xe=Math.ceil(Math.max(Vt[0].clientHeight,Vt.outerHeight(!0)))),Ot.css("height",xe||""),ut.css("overflow","auto")),Ot.removeClass("fancybox-is-hidden")}})):G.afterLoad(x),R.attr("src",x.src),ut.one("onReset",function(){try{e(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch{}e(this).off("refresh.fb").empty(),x.isLoaded=!1,x.isRevealed=!1})},setContent:function(x,R){var G=this;G.isClosing||(G.hideLoading(x),x.$content&&e.fancybox.stop(x.$content),x.$slide.empty(),ct(R)&&R.parent().length?((R.hasClass("fancybox-content")||R.parent().hasClass("fancybox-content"))&&R.parents(".fancybox-slide").trigger("onReset"),x.$placeholder=e("<div>").hide().insertAfter(R),R.css("display","inline-block")):x.hasError||(e.type(R)==="string"&&(R=e("<div>").append(e.trim(R)).contents()),x.opts.filter&&(R=e("<div>").html(R).find(x.opts.filter))),x.$slide.one("onReset",function(){e(this).find("video,audio").trigger("pause"),x.$placeholder&&(x.$placeholder.after(R.removeClass("fancybox-content").hide()).remove(),x.$placeholder=null),x.$smallBtn&&(x.$smallBtn.remove(),x.$smallBtn=null),x.hasError||(e(this).empty(),x.isLoaded=!1,x.isRevealed=!1)}),e(R).appendTo(x.$slide),e(R).is("video,audio")&&(e(R).addClass("fancybox-video"),e(R).wrap("<div></div>"),x.contentType="video",x.opts.width=x.opts.width||e(R).attr("width"),x.opts.height=x.opts.height||e(R).attr("height")),x.$content=x.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),x.$content.siblings().hide(),x.$content.length||(x.$content=x.$slide.wrapInner("<div></div>").children().first()),x.$content.addClass("fancybox-content"),x.$slide.addClass("fancybox-slide--"+x.contentType),G.afterLoad(x))},setError:function(x){x.hasError=!0,x.$slide.trigger("onReset").removeClass("fancybox-slide--"+x.contentType).addClass("fancybox-slide--error"),x.contentType="html",this.setContent(x,this.translate(x,x.opts.errorTpl)),x.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(x){var R=this;(x=x||R.current)&&!x.$spinner&&(x.$spinner=e(R.translate(R,R.opts.spinnerTpl)).appendTo(x.$slide).hide().fadeIn("fast"))},hideLoading:function(x){var R=this;(x=x||R.current)&&x.$spinner&&(x.$spinner.stop().remove(),delete x.$spinner)},afterLoad:function(x){var R=this;R.isClosing||(x.isLoading=!1,x.isLoaded=!0,R.trigger("afterLoad",x),R.hideLoading(x),!x.opts.smallBtn||x.$smallBtn&&x.$smallBtn.length||(x.$smallBtn=e(R.translate(x,x.opts.btnTpl.smallBtn)).appendTo(x.$content)),x.opts.protect&&x.$content&&!x.hasError&&(x.$content.on("contextmenu.fb",function(G){return G.button==2&&G.preventDefault(),!0}),x.type==="image"&&e('<div class="fancybox-spaceball"></div>').appendTo(x.$content)),R.adjustCaption(x),R.adjustLayout(x),x.pos===R.currPos&&R.updateCursor(),R.revealContent(x))},adjustCaption:function(x){var R,G=this,at=x||G.current,ut=at.opts.caption,A=at.opts.preventCaptionOverlap,Vt=G.$refs.caption,Ot=!1;Vt.toggleClass("fancybox-caption--separate",A),A&&ut&&ut.length&&(at.pos!==G.currPos?(R=Vt.clone().appendTo(Vt.parent()),R.children().eq(0).empty().html(ut),Ot=R.outerHeight(!0),R.empty().remove()):G.$caption&&(Ot=G.$caption.outerHeight(!0)),at.$slide.css("padding-bottom",Ot||""))},adjustLayout:function(x){var R,G,at,ut,A=this,Vt=x||A.current;Vt.isLoaded&&Vt.opts.disableLayoutFix!==!0&&(Vt.$content.css("margin-bottom",""),Vt.$content.outerHeight()>Vt.$slide.height()+.5&&(at=Vt.$slide[0].style["padding-bottom"],ut=Vt.$slide.css("padding-bottom"),parseFloat(ut)>0&&(R=Vt.$slide[0].scrollHeight,Vt.$slide.css("padding-bottom",0),Math.abs(R-Vt.$slide[0].scrollHeight)<1&&(G=ut),Vt.$slide.css("padding-bottom",at))),Vt.$content.css("margin-bottom",G))},revealContent:function(x){var R,G,at,ut,A=this,Vt=x.$slide,Ot=!1,Be=!1,xe=A.isMoved(x),me=x.isRevealed;return x.isRevealed=!0,R=x.opts[A.firstRun?"animationEffect":"transitionEffect"],at=x.opts[A.firstRun?"animationDuration":"transitionDuration"],at=parseInt(x.forcedDuration===void 0?at:x.forcedDuration,10),!xe&&x.pos===A.currPos&&at||(R=!1),R==="zoom"&&(x.pos===A.currPos&&at&&x.type==="image"&&!x.hasError&&(Be=A.getThumbPos(x))?Ot=A.getFitPos(x):R="fade"),R==="zoom"?(A.isAnimating=!0,Ot.scaleX=Ot.width/Be.width,Ot.scaleY=Ot.height/Be.height,ut=x.opts.zoomOpacity,ut=="auto"&&(ut=Math.abs(x.width/x.height-Be.width/Be.height)>.1),ut&&(Be.opacity=.1,Ot.opacity=1),e.fancybox.setTranslate(x.$content.removeClass("fancybox-is-hidden"),Be),J(x.$content),void e.fancybox.animate(x.$content,Ot,at,function(){A.isAnimating=!1,A.complete()})):(A.updateSlide(x),R?(e.fancybox.stop(Vt),G="fancybox-slide--"+(x.pos>=A.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+R,Vt.addClass(G).removeClass("fancybox-slide--current"),x.$content.removeClass("fancybox-is-hidden"),J(Vt),x.type!=="image"&&x.$content.hide().show(0),void e.fancybox.animate(Vt,"fancybox-slide--current",at,function(){Vt.removeClass(G).css({transform:"",opacity:""}),x.pos===A.currPos&&A.complete()},!0)):(x.$content.removeClass("fancybox-is-hidden"),me||!xe||x.type!=="image"||x.hasError||x.$content.hide().fadeIn("fast"),void(x.pos===A.currPos&&A.complete())))},getThumbPos:function(x){var R,G,at,ut,A,Vt=!1,Ot=x.$thumb;return!(!Ot||!xt(Ot[0]))&&(R=e.fancybox.getTranslate(Ot),G=parseFloat(Ot.css("border-top-width")||0),at=parseFloat(Ot.css("border-right-width")||0),ut=parseFloat(Ot.css("border-bottom-width")||0),A=parseFloat(Ot.css("border-left-width")||0),Vt={top:R.top+G,left:R.left+A,width:R.width-at-A,height:R.height-G-ut,scaleX:1,scaleY:1},R.width>0&&R.height>0&&Vt)},complete:function(){var x,R=this,G=R.current,at={};!R.isMoved()&&G.isLoaded&&(G.isComplete||(G.isComplete=!0,G.$slide.siblings().trigger("onReset"),R.preload("inline"),J(G.$slide),G.$slide.addClass("fancybox-slide--complete"),e.each(R.slides,function(ut,A){A.pos>=R.currPos-1&&A.pos<=R.currPos+1?at[A.pos]=A:A&&(e.fancybox.stop(A.$slide),A.$slide.off().remove())}),R.slides=at),R.isAnimating=!1,R.updateCursor(),R.trigger("afterShow"),G.opts.video.autoStart&&G.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),R.next()}),G.opts.autoFocus&&G.contentType==="html"&&(x=G.$content.find("input[autofocus]:enabled:visible:first"),x.length?x.trigger("focus"):R.focus(null,!0)),G.$slide.scrollTop(0).scrollLeft(0))},preload:function(x){var R,G,at=this;at.group.length<2||(G=at.slides[at.currPos+1],R=at.slides[at.currPos-1],R&&R.type===x&&at.loadSlide(R),G&&G.type===x&&at.loadSlide(G))},focus:function(x,R){var G,at,ut=this,A=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not
63([tabindex^="-"])'].join(",");ut.isClosing||(G=!x&&ut.current&&ut.current.isComplete?ut.current.$slide.find("*:visible"+(R?":not(.fancybox-close-small)":"")):ut.$refs.container.find("*:visible"),G=G.filter(A).filter(function(){return e(this).css("visibility")!=="hidden"&&!e(this).hasClass("disabled")}),G.length?(at=G.index(s.activeElement),x&&x.shiftKey?(at<0||at==0)&&(x.preventDefault(),G.eq(G.length-1).trigger("focus")):(at<0||at==G.length-1)&&(x&&x.preventDefault(),G.eq(0).trigger("focus"))):ut.$refs.container.trigger("focus"))},activate:function(){var x=this;e(".fancybox-container").each(function(){var R=e(this).data("FancyBox");R&&R.id!==x.id&&!R.isClosing&&(R.trigger("onDeactivate"),R.removeEvents(),R.isVisible=!1)}),x.isVisible=!0,(x.current||x.isIdle)&&(x.update(),x.updateControls()),x.trigger("onActivate"),x.addEvents()},close:function(x,R){var G,at,ut,A,Vt,Ot,Be,xe=this,me=xe.current,mt=function(){xe.cleanUp(x)};return!xe.isClosing&&(xe.isClosing=!0,xe.trigger("beforeClose",x)===!1?(xe.isClosing=!1,nt(function(){xe.update()}),!1):(xe.removeEvents(),ut=me.$content,G=me.opts.animationEffect,at=e.isNumeric(R)?R:G?me.opts.animationDuration:0,me.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),x!==!0?e.fancybox.stop(me.$slide):G=!1,me.$slide.siblings().trigger("onReset").remove(),at&&xe.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",at+"ms"),xe.hideLoading(me),xe.hideControls(!0),xe.updateCursor(),G!=="zoom"||ut&&at&&me.type==="image"&&!xe.isMoved()&&!me.hasError&&(Be=xe.getThumbPos(me))||(G="fade"),G==="zoom"?(e.fancybox.stop(ut),A=e.fancybox.getTranslate(ut),Ot={top:A.top,left:A.left,scaleX:A.width/Be.width,scaleY:A.height/Be.height,width:Be.width,height:Be.height},Vt=me.opts.zoomOpacity,Vt=="auto"&&(Vt=Math.abs(me.width/me.height-Be.width/Be.height)>.1),Vt&&(Be.opacity=0),e.fancybox.setTranslate(ut,Ot),J(ut),e.fancybox.animate(ut,Be,at,mt),!0):(G&&at?e.fancybox.animate(me.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+G,at,mt):x===!0?setTimeout(mt,at):mt(),!0)))},cleanUp:function(x){var R,G,at,ut=this,A=ut.current.opts.$orig;ut.current.$slide.trigger("onReset"),ut.$refs.container.empty().remove(),ut.trigger("afterClose",x),ut.current.opts.backFocus&&(A&&A.length&&A.is(":visible")||(A=ut.$trigger),A&&A.length&&(G=t.scrollX,at=t.scrollY,A.trigger("focus"),e("html, body").scrollTop(at).scrollLeft(G))),ut.current=null,R=e.fancybox.getInstance(),R?R.activate():(e("body").removeClass("fancybox-active compensate-for-scrollbar"),e("#fancybox-style-noscroll").remove())},trigger:function(x,R){var G,at=Array.prototype.slice.call(arguments,1),ut=this,A=R&&R.opts?R:ut.current;if(A?at.unshift(A):A=ut,at.unshift(ut),e.isFunction(A.opts[x])&&(G=A.opts[x].apply(A,at)),G===!1)return G;x!=="afterClose"&&ut.$refs?ut.$refs.container.trigger(x+".fb",at):I.trigger(x+".fb",at)},updateControls:function(){var x=this,R=x.current,G=R.index,at=x.$refs.container,ut=x.$refs.caption,A=R.opts.caption;R.$slide.trigger("refresh"),A&&A.length?(x.$caption=ut,ut.children().eq(0).html(A)):x.$caption=null,x.hasHiddenControls||x.isIdle||x.showControls(),at.find("[data-fancybox-count]").html(x.group.length),at.find("[data-fancybox-index]").html(G+1),at.find("[data-fancybox-prev]").prop("disabled",!R.opts.loop&&G<=0),at.find("[data-fancybox-next]").prop("disabled",!R.opts.loop&&G>=x.group.length-1),R.type==="image"?at.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",R.opts.image.src||R.src).show():R.opts.toolbar&&at.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),e(s.activeElement).is(":hidden,[disabled]")&&x.$refs.container.trigger("focus")},hideControls:function(x){var R=this,G=["infobar","toolbar","nav"];!x&&R.current.opts.preventCaptionOverlap||G.push("caption"),this.$refs.container.removeClass(G.map(function(at){return"fancybox-show-"+at}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var x=this,R=x.current?x.current.opts:x.opts,G=x.$refs.container;
63x.hasHiddenControls=!1,x.idleSecondsCounter=0,G.toggleClass("fancybox-show-toolbar",!(!R.toolbar||!R.buttons)).toggleClass("fancybox-show-infobar",!!(R.infobar&&x.group.length>1)).toggleClass("fancybox-show-caption",!!x.$caption).toggleClass("fancybox-show-nav",!!(R.arrows&&x.group.length>1)).toggleClass("fancybox-is-modal",!!R.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),e.fancybox={version:"3.5.7",defaults:d,getInstance:function(x){var R=e('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),G=Array.prototype.slice.call(arguments,1);return R instanceof Et&&(e.type(x)==="string"?R[x].apply(R,G):e.type(x)==="function"&&x.apply(R,G),R)},open:function(x,R,G){return new Et(x,R,G)},close:function(x){var R=this.getInstance();R&&(R.close(),x===!0&&this.close(x))},destroy:function(){this.close(!0),I.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var x=s.createElement("div");return t.getComputedStyle&&t.getComputedStyle(x)&&t.getComputedStyle(x).getPropertyValue("transform")&&!(s.documentMode&&s.documentMode<11)}(),getTranslate:function(x){var R;return!(!x||!x.length)&&(R=x[0].getBoundingClientRect(),{top:R.top||0,left
63:R.left||0,width:R.width,height:R.height,opacity:parseFloat(x.css("opacity"))})},setTranslate:function(x,R){var G="",at={};if(x&&R)return R.left===void 0&&R.top===void 0||(G=(R.left===void 0?x.position().left:R.left)+"px, "+(R.top===void 0?x.position().top:R.top)+"px",G=this.use3d?"translate3d("+G+", 0px)":"translate("+G+")"),R.scaleX!==void 0&&R.scaleY!==void 0?G+=" scale("+R.scaleX+", "+R.scaleY+")":R.scaleX!==void 0&&(G+=" scaleX("+R.scaleX+")"),G.length&&(at.transform=G),R.opacity!==void 0&&(at.opacity=R.opacity),R.width!==void 0&&(at.width=R.width),R.height!==void 0&&(at.height=R.height),x.css(at)},animate:function(x,R,G,at,ut){var A,Vt=this;e.isFunction(G)&&(at=G,G=null),Vt.stop(x),A=Vt.getTranslate(x),x.on(q,function(Ot){(!Ot||!Ot.originalEvent||x.is(Ot.originalEvent.target)&&Ot.originalEvent.propertyName!="z-index")&&(Vt.stop(x),e.isNumeric(G)&&x.css("transition-duration",""),e.isPlainObject(R)?R.scaleX!==void 0&&R.scaleY!==void 0&&Vt.setTranslate(x,{top:R.top,left:R.left,width:A.width*R.scaleX,height:A.height*R.scaleY,scaleX:1,scaleY:1}):ut!==!0&&x.removeClass(R),e.isFunction(at)&&at(Ot))}),e.isNumeric(G)&&x.css("transition-duration",G+"ms"),e.isPlainObject(R)?(R.scaleX!==void 0&&R.scaleY!==void 0&&(delete R.width,delete R.height,x.parent().hasClass("fancybox-slide--image")&&x.parent().addClass("fancybox-is-scaling")),e.fancybox.setTranslate(x,R)):x.addClass(R),x.data("timer",setTimeout(function(){x.trigger(q)},G+33))},stop:function(x,R){x&&x.length&&(clearTimeout(x.data("timer")),R&&x.trigger(q),x.off(q).css("transition-duration",""),x.parent().removeClass("fancybox-is-scaling"))}},e.fn.fancybox=function(x){var R;return x=x||{},R=x.selector||!1,R?e("body").off("click.fb-start",R).on("click.fb-start",R,{options:x},u):this.off("click.fb-start").on("click.fb-start",{items:this,options:x},u),this},I.on("click.fb-start","[data-fancybox]",u),I.on("click.fb-start","[data-fancybox-trigger]",function(x){e('[data-fancybox="'+e(this).attr("data-fancybox-trigger")+'"]').eq(e(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:e(this)})}),function(){var x=null;I.on("mousedown mouseup focus blur",".fancybox-button",function(R){switch(R.type){case"mousedown":x=e(this);break;case"mouseup":x=null;break;case"focusin":e(".fancybox-button").removeClass("fancybox-focus"),e(this).is(x)||e(this).is("[disabled]")||e(this).addClass("fancybox-focus");break;case"focusout":e(".fancybox-button").removeClass("fancybox-focus")}})}()}}(window,document,jQuery),function(t){var s={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(u){return"//maps.google."+u[2]+"/?ll="+(u[9]?u[9]+"&z="+Math.floor(u[10])+(u[12]?u[12].replace(/^\//,"&"):""):u[12]+"").replace(/\?/,"&")+"&output="+(u[12]&&u[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(u){return"//maps.google."+u[2]+"/maps?q="+u[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},e=function(u,d,S){if(u)return S=S||"",t.type(S)==="object"&&(S=t.param(S,!0)),t.each(d,function(I,Z){u=u.replace("$"+I,Z||"")}),S.length&&(u+=(u.indexOf("?")>0?"&":"?")+S),u};t(document).on("objectNeedsType.fb",function(u,d,S){var I,Z,ct,nt,rt,q,J,ht=S.src||"",xt=!1;I=t.extend(!0,{},s,S.opts.media),t.each(I,function(Et,x){if(ct=ht.match(x.matcher)){if(xt=x.type,J=Et,q={},x.paramPlace&&ct[x.paramPlace]){rt=ct[x.paramPlace],rt[0]=="?"&&(rt=rt.substring(1)),rt=rt.split("&");for(var R=0;R<rt.length;++R){var G=rt[R].split("=",2);G.length==2&&(q[G[0]]=decodeURIComponent(G[1].replace(/\+/g," ")))}}return nt=t.extend(!0,{},x.params,S.opts[Et],q),ht=t.type(x.url)==="function"?x.url.call(this,ct,nt,S):e(x.url,ct,nt),Z=t.type(x.thumb)==="function"?x.thumb.call(this,ct,nt,S):e(x.thumb,ct),Et==="youtube"?ht=ht.replace(/&t=((\d+)m)?(\d+)s/,function(at,ut,A,Vt){return"&start="+((A?60*parseInt(A,10):0)+parseInt(Vt,10))}):Et==="vimeo"&&(ht=ht.replace("&%23","#")),!1}}),xt?(S.opts.thumb||S.opts.$thumb&&S.opts.$thumb.length||(S.opts.thumb=Z),xt==="iframe"&&(S.opts=t.extend(!0,S.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}}
63)),t.extend(S,{type:xt,src:ht,origSrc:S.src,contentSource:J,contentType:xt==="image"?"image":J=="gmap_place"||J=="gmap_search"?"map":"video"})):ht&&(S.type=S.opts.defaultType)});var c={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(u){var d,S=this;if(this[u].loaded)return void setTimeout(function(){S.done(u)});this[u].loading||(this[u].loading=!0,d=document.createElement("script"),d.type="text/javascript",d.src=this[u].src,u==="youtube"?window.onYouTubeIframeAPIReady=function(){S[u].loaded=!0,S.done(u)}:d.onload=function(){S[u].loaded=!0,S.done(u)},document.body.appendChild(d))},done:function(u){var d,S,I;u==="youtube"&&delete window.onYouTubeIframeAPIReady,(d=t.fancybox.getInstance())&&(S=d.current.$content.find("iframe"),u==="youtube"&&YT!==void 0&&YT?I=new YT.Player(S.attr("id"),{events:{onStateChange:function(Z){Z.data==0&&d.next()}}}):u==="vimeo"&&Vimeo!==void 0&&Vimeo&&(I=new Vimeo.Player(S),I.on("ended",function(){d.next()})))}};t(document).on({"afterShow.fb":function(u,d,S){d.group.length>1&&(S.contentSource==="youtube"||S.contentSource==="vimeo")&&c.load(S.contentSource)}})}(jQuery),function(t,s,e){var c=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(rt){return t.setTimeout(rt,16.666666666666668)}}(),u=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(rt){t.clearTimeout(rt)}}(),d=function(rt){var q=[];rt=rt.originalEvent||rt||t.e,rt=rt.touches&&rt.touches.length?rt.touches:rt.changedTouches&&rt.changedTouches.length?rt.changedTouches:[rt];for(var J in rt)rt[J].pageX?q.push({x:rt[J].pageX,y:rt[J].pageY}):rt[J].clientX&&q.push({x:rt[J].clientX,y:rt[J].clientY});return q},S=function(rt,q,J){return q&&rt?J==="x"?rt.x-q.x:J==="y"?rt.y-q.y:Math.sqrt(Math.pow(rt.x-q.x,2)+Math.pow(rt.y-q.y,2)):0},I=function(rt){if(rt.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||e.isFunction(rt.get(0).onclick)||rt.data("selectable"))return!0;for(var q=0,J=rt[0].attributes,ht=J.length;q<ht;q++)if(J[q].nodeName.substr(0,14)==="data-fancybox-")return!0;return!1},Z=function(rt){var q=t.getComputedStyle(rt)["overflow-y"],J=t.getComputedStyle(rt)["overflow-x"],ht=(q==="scroll"||q==="auto")&&rt.scrollHeight>rt.clientHeight,xt=(J==="scroll"||J==="auto")&&rt.scrollWidth>rt.clientWidth;return ht||xt},ct=function(rt){for(var q=!1;!((q=Z(rt.get(0)))||(rt=rt.parent(),!rt.length||rt.hasClass("fancybox-stage")||rt.is("body"))););return q},nt=function(rt){var q=this;q.instance=rt,q.$bg=rt.$refs.bg,q.$stage=rt.$refs.stage,q.$container=rt.$refs.container,q.destroy(),q.$container.on("touchstart.fb.touch mousedown.fb.touch",e.proxy(q,"ontouchstart"))};nt.prototype.destroy=function(){var rt=this;rt.$container.off(".fb.touch"),e(s).off(".fb.touch"),rt.requestId&&(u(rt.requestId),rt.requestId=null),rt.tapped&&(clearTimeout(rt.tapped),rt.tapped=null)},nt.prototype.ontouchstart=function(rt){var q=this,J=e(rt.target),ht=q.instance,xt=ht.current,Et=xt.$slide,x=xt.$content,R=rt.type=="touchstart";if(R&&q.$container.off("mousedown.fb.touch"),(!rt.originalEvent||rt.originalEvent.button!=2)&&Et.length&&J.length&&!I(J)&&!I(J.parent())&&(J.is("img")||!(rt.originalEvent.clientX>J[0].clientWidth+J.offset().left))){if(!xt||ht.isAnimating||xt.$slide.hasClass("fancybox-animated"))return rt.stopPropagation(),void rt.preventDefault();q.realPoints=q.startPoints=d(rt),q.startPoints.length&&(xt.touch&&rt.stopPropagation(),q.startEvent=rt,q.canTap=!0,q.$target=J,q.$content=x,q.opts=xt.opts.touch,q.isPanning=!1,q.isSwiping=!1,q.isZooming=!1,q.isScrolling=!1,q.canPan=ht.canPan(),q.startTime=new Date().getTime(),q.distanceX=q.distanceY=q.distance=0,q.canvasWidth=Math.round(Et[0].clientWidth),q.canvasHeight=Math.round(Et[0].clientHeight),q.contentLastPos=null,q.contentStartPos=e.fancybox.getTranslate(q.$content)||{top:0,left:0},q.sliderStartPos=e.fancybox.getTranslate(Et),q.stagePos=e.fancybox.getTranslate(ht.$refs.stage),q.sliderStartPos.top-=q.stagePos.top,q.sliderStartPos.left-=q.stagePos.left,q.contentStartPos.top-=q.stagePos.top,q.contentStartPos.left-=q.stagePos.left,e(s).off(".fb.touch").on(R?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",e.proxy(q,"ontouchend")).on(R?"touchmove.fb.touch":"mousemove.fb.touch",e.proxy(q,"ontouchmove")),e.fancybox.isMobile&&s.addEventListener("scroll",q.onscroll,!0),((q.opts||q.canPan)&&(J.is(q.$stage)||q.$stage.find(J).length)||(J.is(".fancybox-image")&&rt.preventDefault(),e.fancybox.isMobile&&J.parents(".fancybox-caption").length))&&(q.isScrollable=ct(J)||ct(J.parent()),e.fancybox.isMobile&&q.isScrollable||rt.preventDefault(),(q.startPoints.length===1||xt.hasError)&&(q.canPan?(e.fancybox.stop(q.$content),q.isPanning=!0):q.isSwiping=!0,q.$container.addClass("fancybox-is-grabbing")),q.startPoints.length===2&&xt.type==="image"&&(xt.isLoaded||xt.$ghost)&&(q.canTap=!1,q.isSwiping=!1,q.isPanning=!1,q.isZooming=!0,e.fancybox.stop(q.$content),q.centerPointStartX=.5*(q.startPoints[0].x+q.startPoints[1].x)-e(t).scrollLeft(),q.centerPointStartY=.5*(q.startPoints[0].y+q.startPoints[1].y)-e(t).scrollTop(),q.percentageOfImageAtPinchPointX=(q.centerPointStartX-q.contentStartPos.left)/q.contentStartPos.width,q.percentageOfImageAtPinchPointY=(q.centerPointStartY-q.contentStartPos.top)/q.contentStartPos.height,q.startDistanceBetweenFingers=S(q.startPoints[0],q.startPoints[1]))))}},nt.prototype.onscroll=function(rt){var q=this;q.isScrolling=!0,s.removeEventListener("scroll",q.onscroll,!0)},nt.prototype.ontouchmove=function(rt){var q=this;return rt.originalEvent.buttons!==void 0&&rt.originalEvent.buttons===0?void q.ontouchend(rt):q.isScrolling?void(q.canTap=!1):(q.newPoints=d(rt),void((q.opts||q.canPan)&&q.newPoints.length&&q.newPoints.length&&(q.isSwiping&&q.isSwiping===!0||rt.preventDefault(),q.distanceX=S(q.newPoints[0],q.startPoints[0],"x"),q.distanceY=S(q.newPoints[0],q.startPoints[0],"y"),q.distance=S(q.newPoints[0],q.startPoints[0]),q.distance>0&&(q.isSwiping?q.onSwipe(rt):q.isPanning?q.onPan():q.isZooming&&q.onZoom()))))},nt.prototype.onSwipe=function(rt){var q,J=this,ht=J.instance,xt=J.isSwiping,Et=J.sliderStartPos.left||0;if(xt!==!0)xt=="x"&&(J.distanceX>0&&(J.instance.group.length<2||J.instance.current.index===0&&!J.instance.current.opts.loop)?Et+=Math.pow(J.distanceX,.8):J.distanceX<0&&(J.instance.group.length<2||J.instance.current.index===J.instance.group.length-1&&!J.instance.current.opts.loop)?Et-=Math.pow(-J.distanceX,.8):Et+=J.distanceX),J.sliderLastPos={top:xt=="x"?0:J.sliderStartPos.top+J.distanceY,left:Et},J.requestId&&(u(J.requestId),J.requestId=null),J.requestId=c(function(){J.sliderLastPos&&(e.each(J.instance.slides,function(x,R){var G=R.pos-J.instance.currPos;
vendor: 9,455 bytes, line 63
63e.fancybox.setTranslate(R.$slide,{top:J.sliderLastPos.top,left:J.sliderLastPos.left+G*J.canvasWidth+G*R.opts.gutter})}),J.$container.addClass("fancybox-is-sliding"))});else if(Math.abs(J.distance)>10){if(J.canTap=!1,ht.group.length<2&&J.opts.vertical?J.isSwiping="y":ht.isDragging||J.opts.vertical===!1||J.opts.vertical==="auto"&&e(t).width()>800?J.isSwiping="x":(q=Math.abs(180*Math.atan2(J.distanceY,J.distanceX)/Math.PI),J.isSwiping=q>45&&q<135?"y":"x"),J.isSwiping==="y"&&e.fancybox.isMobile&&J.isScrollable)return void(J.isScrolling=!0);ht.isDragging=J.isSwiping,J.startPoints=J.newPoints,e.each(ht.slides,function(x,R){var G,at;e.fancybox.stop(R.$slide),G=e.fancybox.getTranslate(R.$slide),at=e.fancybox.getTranslate(ht.$refs.stage),R.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(ut,A){return(A.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),R.pos===ht.current.pos&&(J.sliderStartPos.top=G.top-at.top,J.sliderStartPos.left=G.left-at.left),e.fancybox.setTranslate(R.$slide,{top:G.top-at.top,left:G.left-at.left})}),ht.SlideShow&&ht.SlideShow.isActive&&ht.SlideShow.stop()}},nt.prototype.onPan=function(){var rt=this;if(S(rt.newPoints[0],rt.realPoints[0])<(e.fancybox.isMobile?10:5))return void(rt.startPoints=rt.newPoints);rt.canTap=!1,rt.contentLastPos=rt.limitMovement(),rt.requestId&&u(rt.requestId),rt.requestId=c(function(){e.fancybox.setTranslate(rt.$content,rt.contentLastPos)})},nt.prototype.limitMovement=function(){var rt,q,J,ht,xt,Et,x=this,R=x.canvasWidth,G=x.canvasHeight,at=x.distanceX,ut=x.distanceY,A=x.contentStartPos,Vt=A.left,Ot=A.top,Be=A.width,xe=A.height;return xt=Be>R?Vt+at:Vt,Et=Ot+ut,rt=Math.max(0,.5*R-.5*Be),q=Math.max(0,.5*G-.5*xe),J=Math.min(R-Be,.5*R-.5*Be),ht=Math.min(G-xe,.5*G-.5*xe),at>0&&xt>rt&&(xt=rt-1+Math.pow(-rt+Vt+at,.8)||0),at<0&&xt<J&&(xt=J+1-Math.pow(J-Vt-at,.8)||0),ut>0&&Et>q&&(Et=q-1+Math.pow(-q+Ot+ut,.8)||0),ut<0&&Et<ht&&(Et=ht+1-Math.pow(ht-Ot-ut,.8)||0),{top:Et,left:xt}},nt.prototype.limitPosition=function(rt,q,J,ht){var xt=this,Et=xt.canvasWidth,x=xt.canvasHeight;return J>Et?(rt=rt>0?0:rt,rt=rt<Et-J?Et-J:rt):rt=Math.max(0,Et/2-J/2),ht>x?(q=q>0?0:q,q=q<x-ht?x-ht:q):q=Math.max(0,x/2-ht/2),{top:q,left:rt}},nt.prototype.onZoom=function(){var rt=this,q=rt.contentStartPos,J=q.width,ht=q.height,xt=q.left,Et=q.top,x=S(rt.newPoints[0],rt.newPoints[1]),R=x/rt.startDistanceBetweenFingers,G=Math.floor(J*R),at=Math.floor(ht*R),ut=(J-G)*rt.percentageOfImageAtPinchPointX,A=(ht-at)*rt.percentageOfImageAtPinchPointY,Vt=(rt.newPoints[0].x+rt.newPoints[1].x)/2-e(t).scrollLeft(),Ot=(rt.newPoints[0].y+rt.newPoints[1].y)/2-e(t).scrollTop(),Be=Vt-rt.centerPointStartX,xe=Ot-rt.centerPointStartY,me=xt+(ut+Be),mt=Et+(A+xe),ot={top:mt,left:me,scaleX:R,scaleY:R};rt.canTap=!1,rt.newWidth=G,rt.newHeight=at,rt.contentLastPos=ot,rt.requestId&&u(rt.requestId),rt.requestId=c(function(){e.fancybox.setTranslate(rt.$content,rt.contentLastPos)})},nt.prototype.ontouchend=function(rt){var q=this,J=q.isSwiping,ht=q.isPanning,xt=q.isZooming,Et=q.isScrolling;if(q.endPoints=d(rt),q.dMs=Math.max(new Date().getTime()-q.startTime,1),q.$container.removeClass("fancybox-is-grabbing"),e(s).off(".fb.touch"),s.removeEventListener("scroll",q.onscroll,!0),q.requestId&&(u(q.requestId),q.requestId=null),q.isSwiping=!1,q.isPanning=!1,q.isZooming=!1,q.isScrolling=!1,q.instance.isDragging=!1,q.canTap)return q.onTap(rt);q.speed=100,q.velocityX=q.distanceX/q.dMs*.5,q.velocityY=q.distanceY/q.dMs*.5,ht?q.endPanning():xt?q.endZooming():q.endSwiping(J,Et)},nt.prototype.endSwiping=function(rt,q){var J=this,ht=!1,xt=J.instance.group.length,Et=Math.abs(J.distanceX),x=rt=="x"&&xt>1&&(J.dMs>130&&Et>10||Et>50);J.sliderLastPos=null,rt=="y"&&!q&&Math.abs(J.distanceY)>50?(e.fancybox.animate(J.instance.current.$slide,{top:J.sliderStartPos.top+J.distanceY+150*J.velocityY,opacity:0},200),ht=J.instance.close(!0,250)):x&&J.distanceX>0?ht=J.instance.previous(300):x&&J.distanceX<0&&(ht=J.instance.next(300)),ht!==!1||rt!="x"&&rt!="y"||J.instance.centerSlide(200),J.$container.removeClass("fancybox-is-sliding")},nt.prototype.endPanning=function(){var rt,q,J,ht=this;ht.contentLastPos&&(ht.opts.momentum===!1||ht.dMs>350?(rt=ht.contentLastPos.left,q=ht.contentLastPos.top):(rt=ht.contentLastPos.left+500*ht.velocityX,q=ht.contentLastPos.top+500*ht.velocityY),J=ht.limitPosition(rt,q,ht.contentStartPos.width,ht.contentStartPos.height),J.width=ht.contentStartPos.width,J.height=ht.contentStartPos.height,e.fancybox.animate(ht.$content,J,366))},nt.prototype.endZooming=function(){var rt,q,J,ht,xt=this,Et=xt.instance.current,x=xt.newWidth,R=xt.newHeight;xt.contentLastPos&&(rt=xt.contentLastPos.left,q=xt.contentLastPos.top,ht={top:q,left:rt,width:x,height:R,scaleX:1,scaleY:1},e.fancybox.setTranslate(xt.$content,ht),x<xt.canvasWidth&&R<xt.canvasHeight?xt.instance.scaleToFit(150):x>Et.width||R>Et.height?xt.instance.scaleToActual(xt.centerPointStartX,xt.centerPointStartY,150):(J=xt.limitPosition(rt,q,x,R),e.fancybox.animate(xt.$content,J,150)))},nt.prototype.onTap=function(rt){var q,J=this,ht=e(rt.target),xt=J.instance,Et=xt.current,x=rt&&d(rt)||J.startPoints,R=x[0]?x[0].x-e(t).scrollLeft()-J.stagePos.left:0,G=x[0]?x[0].y-e(t).scrollTop()-J.stagePos.top:0,at=function(ut){var A=Et.opts[ut];if(e.isFunction(A)&&(A=A.apply(xt,[Et,rt])),A)switch(A){case"close":xt.close(J.startEvent);break;case"toggleControls":xt.toggleControls();break;case"next":xt.next();break;case"nextOrClose":xt.group.length>1?xt.next():xt.close(J.startEvent);break;case"zoom":Et.type=="image"&&(Et.isLoaded||Et.$ghost)&&(xt.canPan()?xt.scaleToFit():xt.isScaledDown()?xt.scaleToActual(R,G):xt.group.length<2&&xt.close(J.startEvent))}};if((!rt.originalEvent||rt.originalEvent.button!=2)&&(ht.is("img")||!(R>ht[0].clientWidth+ht.offset().left))){if(ht.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))q="Outside";else if(ht.is(".fancybox-slide"))q="Slide";else{if(!xt.current.$content||!xt.current.$content.find(ht).addBack().filter(ht).length)return;q="Content"}if(J.tapped){if(clearTimeout(J.tapped),J.tapped=null,Math.abs(R-J.tapX)>50||Math.abs(G-J.tapY)>50)return this;at("dblclick"+q)}else J.tapX=R,J.tapY=G,Et.opts["dblclick"+q]&&Et.opts["dblclick"+q]!==Et.opts["click"+q]?J.tapped=setTimeout(function(){J.tapped=null,xt.isAnimating||at("click"+q)},500):at("click"+q);return this}},e(s).on("onActivate.fb",function(rt,q){q&&!q.Guestures&&(q.Guestures=new nt(q))}).on("beforeClose.fb",function(rt,q){q&&q.Guestures&&q.Guestures.destroy()})}(window,document,jQuery),function(t,s){s.extend(!0,s.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var e=function(c){this.instance=c,this.init()};s.extend(e.prototype,{timer:null,isActive:!1,$button:null,init:function(){var c=this,u=c.instance,d=u.group[u.currIndex].opts.slideShow;c.$button=u.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){c.toggle()}),u.group.length<2||!d?c.$button.hide():d.progress&&(c.$progress=s('<div class="fancybox-progress"></div>').appendTo(u.$refs.inner))},set:function(c){var u=this,d=u.instance,S=d.current;S&&(c===!0||S.opts.loop||d.currIndex<d.group.length-1)?u.isActive&&S.contentType!=="video"&&(u.$progress&&s.fancybox.animate(u.$progress.show(),{scaleX:1},S.opts.slideShow.speed),u.timer=setTimeout(function(){d.current.opts.loop||d.current.index!=d.group.length-1?d.next():d.jumpTo(0)},S.opts.slideShow.speed)):(u.stop(),d.idleSecondsCounter=0,d.showControls())},clear:function(){var c=this;clearTimeout(c.timer),c.timer=null,c.$progress&&c.$progress.removeAttr("style").hide()},start:function(){var c=this,u=c.instance.current;u&&(c.$button.attr("title",(u.opts.i18n[u.opts.lang]||u.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),c.isActive=!0,u.isComplete&&c.set(!0),c.instance.trigger("onSlideShowChange",!0))},stop:function(){var c=this,u=c.instance.current;c.clear(),c.$button.attr("title",(u.opts.i18n[u.opts.lang]||u.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),c.isActive=!1,c.instance.trigger("onSlideShowChange",!1),c.$progress&&c.$progress.removeAttr("style").hide()},toggle:function(){var c=this;c.isActive?c.stop():c.start()}}),s(t).on({"onInit.fb":function(c,u){u&&!u.SlideShow&&(u.SlideShow=new e(u))},"beforeShow.fb":function(c,u,d,S){var I=u&&u.SlideShow;S?I&&d.opts.slideShow.autoStart&&I.start():I&&I.isActive&&I.clear()},"afterShow.fb":function(c,u,d){var S=u&&u.SlideShow;S&&S.isActive&&S.set()},"afterKeydown.fb":function(c,u,d,S,I){var Z=u&&u.SlideShow;!Z||!d.opts.slideShow||I!==80&&I!==32||s(t.activeElement).is("button,a,input")||(S.preventDefault(),Z.toggle())},"beforeClose.fb onDeactivate.fb":function(c,u){var d=u&&u.SlideShow;d&&d.stop()}}),s(t).on("visibilitychange",function(){var c=s.fancybox.getInstance(),u=c&&c.SlideShow;u&&u.isActive&&(t.hidden?u.clear():u.set())})}(document,jQuery),function(t,s){var e=function(){for(var u=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["
63webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],d={},S=0;S<u.length;S++){var I=u[S];if(I&&I[1]in t){for(var Z=0;Z<I.length;Z++)d[u[0][Z]]=I[Z];return d}}return!1}();if(e){var c={request:function(u){u=u||t.documentElement,u[e.requestFullscreen](u.ALLOW_KEYBOARD_INPUT)},exit:function(){t[e.exitFullscreen]()},toggle:function(u){u=u||t.documentElement,this.isFullscreen()?this.exit():this.request(u)},isFullscreen:function(){return!!t[e.fullscreenElement]},enabled:function(){return!!t[e.fullscreenEnabled]}};s.extend(!0,s.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),s(t).on(e.fullscreenchange,function(){var u=c.isFullscreen(),d=s.fancybox.getInstance();d&&(d.current&&d.current.type==="image"&&d.isAnimating&&(d.isAnimating=!1,d.update(!0,!0,0),d.isComplete||d.complete()),d.trigger("onFullscreenChange",u),d.$refs.container.toggleClass("fancybox-is-fullscreen",u),d.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!u).toggleClass("fancybox-button--fsexit",u))})}s(t).on({"onInit.fb":function(u,d){var S;if(!e)return void d.$refs.toolbar.find("[data-fancybox-fullscreen]").remove();d&&d.group[d.currIndex].opts.fullScreen?(S=d.$refs.container,S.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(I){I.stopPropagation(),I.preventDefault(),c.toggle()}),d.opts.fullScreen&&d.opts.fullScreen.autoStart===!0&&c.request(),d.FullScreen=c):d&&d.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()},"afterKeydown.fb":function(u,d,S,I,Z){d&&d.FullScreen&&Z===70&&(I.preventDefault(),d.FullScreen.toggle())},"beforeClose.fb":function(u,d){d&&d.FullScreen&&d.$refs.container.hasClass("fancybox-is-fullscreen")&&c.exit()}})}(document,jQuery),function(t,s){var e="fancybox-thumbs";s.fancybox.defaults=s.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},s.fancybox.defaults);var c=function(u){this.init(u)};s.extend(c.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(u){var d=this,S=u.group,I=0;d.instance=u,d.opts=S[u.currIndex].opts.thumbs,u.Thumbs=d,d.$button=u.$refs.toolbar.find("[data-fancybox-thumbs]");for(var Z=0,ct=S.length;Z<ct&&(S[Z].thumb&&I++,!(I>1));Z++);I>1&&d.opts?(d.$button.removeAttr("style").on("click",function(){d.toggle()}),d.isActive=!0):d.$button.hide()},create:function(){var u,d=this,S=d.instance,I=d.opts.parentEl,Z=[];d.$grid||(d.$grid=s('<div class="'+e+" "+e+"-"+d.opts.axis+'"></div>').appendTo(S.$refs.container.find(I).addBack().filter(I)),d.$grid.on("click","a",function(){S.jumpTo(s(this).attr("data-index"))})),d.$list||(d.$list=s('<div class="'+e+'__list">').appendTo(d.$grid)),s.each(S.group,function(ct,nt){u=nt.thumb,u||nt.type!=="image"||(u=nt.src),Z.push('<a href="javascript:;" tabindex="0" data-index="'+ct+'"'+(u&&u.length?' style="background-image:url('+u+')"':'class="fancybox-thumbs-missing"')+"></a>")}),d.$list[0].innerHTML=Z.join(""),d.opts.axis==="x"&&d.$list.width(parseInt(d.$grid.css("padding-right"),10)+S.group.length*d.$list.children().eq(0).outerWidth(!0))},focus:function(u){var d,S,I=this,Z=I.$list,ct=I.$grid;I.instance.current&&(d=Z.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+
63I.instance.current.index+'"]').addClass("fancybox-thumbs-active"),S=d.position(),I.opts.axis==="y"&&(S.top<0||S.top>Z.height()-d.outerHeight())?Z.stop().animate({scrollTop:Z.scrollTop()+S.top},u):I.opts.axis==="x"&&(S.left<ct.scrollLeft()||S.left>ct.scrollLeft()+(ct.width()-d.outerWidth()))&&Z.parent().stop().animate({scrollLeft:S.left},u))},update:function(){var u=this;u.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),u.isVisible?(u.$grid||u.create(),u.instance.trigger("onThumbsShow"),u.focus(0)):u.$grid&&u.instance.trigger("onThumbsHide"),u.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),s(t).on({"onInit.fb":function(u,d){var S;d&&!d.Thumbs&&(S=new c(d),S.isActive&&S.opts.autoStart===!0&&S.show())},"beforeShow.fb":function(u,d,S,I){var Z=d&&d.Thumbs;Z&&Z.isVisible&&Z.focus(I?0:250)},"afterKeydown.fb":function(u,d,S,I,Z){var ct=d&&d.Thumbs;ct&&ct.isActive&&Z===71&&(I.preventDefault(),ct.toggle())},"beforeClose.fb":function(u,d){var S=d&&d.Thumbs;S&&S.isVisible&&S.opts.hideOnClose!==!1&&S.$grid.hide()}})}(document,jQuery),function(t,s){function e(c){var u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(c).replace(/[&<>"'`=\/]/g,function(d){return u[d]})}s.extend(!0,s.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(c,u){return!c.currentHash&&u.type!=="inline"&&u.type!=="html"&&(u.origSrc||u.src)||window.location},tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>'}}),s(t).on("click","[data-fancybox-share]",function(){var c,u,d=s.fancybox.getInstance(),S=d.current||null;S&&(s.type(S.opts.share.url)==="function"&&(c=S.opts.share.url.apply(S,[d,S])),u=S.opts.share.tpl.replace(/\{\{media\}\}/g,S.type==="image"?encodeURIComponent(S.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(c)).replace(/\{\{url_raw\}\}/g,e(c)).replace(/\{\{descr\}\}/g,d.$caption?encodeURIComponent(d.$caption.text()):""),s.fancybox.open({src:d.translate(d,u),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(I,Z){d.$refs.container.one("beforeClose.fb",function(){I.close(null,0)}),Z.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})}
63,mobile:{autoFocus:!1}}}))})}(document,jQuery),function(t,s,e){function c(){var S=t.location.hash.substr(1),I=S.split("-"),Z=I.length>1&&/^\+?\d+$/.test(I[I.length-1])&&parseInt(I.pop(-1),10)||1,ct=I.join("-");return{hash:S,index:Z<1?1:Z,gallery:ct}}function u(S){S.gallery!==""&&e("[data-fancybox='"+e.escapeSelector(S.gallery)+"']").eq(S.index-1).focus().trigger("click.fb-start")}function d(S){var I,Z;return!!S&&(I=S.current?S.current.opts:S.opts,(Z=I.hash||(I.$orig?I.$orig.data("fancybox")||I.$orig.data("fancybox-trigger"):""))!==""&&Z)}e.escapeSelector||(e.escapeSelector=function(S){return(S+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(I,Z){return Z?I==="\0"?"�":I.slice(0,-1)+"\\"+I.charCodeAt(I.length-1).toString(16)+" ":"\\"+I})}),e(function(){e.fancybox.defaults.hash!==!1&&(e(s).on({"onInit.fb":function(S,I){var Z,ct;I.group[I.currIndex].opts.hash!==!1&&(Z=c(),(ct=d(I))&&Z.gallery&&ct==Z.gallery&&(I.currIndex=Z.index-1))},"beforeShow.fb":function(S,I,Z,ct){var nt;Z&&Z.opts.hash!==!1&&(nt=d(I))&&(I.currentHash=nt+(I.group.length>1?"-"+(Z.index+1):""),t.location.hash!=="#"+I.currentHash&&(ct&&!I.origHash&&(I.origHash=t.location.hash),I.hashTimer&&clearTimeout(I.hashTimer),I.hashTimer=setTimeout(function(){"replaceState"in t.history?(t.history[ct?"pushState":"replaceState"]({},s.title,t.location.pathname+t.location.search+"#"+I.currentHash),ct&&(I.hasCreatedHistory=!0)):t.location.hash=I.currentHash,I.hashTimer=null},300)))},"beforeClose.fb":function(S,I,Z){Z&&Z.opts.hash!==!1&&(clearTimeout(I.hashTimer),I.currentHash&&I.hasCreatedHistory?t.history.back():I.currentHash&&("replaceState"in t.history?t.history.replaceState({},s.title,t.location.pathname+t.location.search+(I.origHash||"")):t.location.hash=I.origHash),I.currentHash=null)}}),e(t).on("hashchange.fb",function(){var S=c(),I=null;e.each(e(".fancybox-container").get().reverse(),function(Z,ct){var nt=e(ct).data("FancyBox");if(nt&&nt.currentHash)return I=nt,!1}),I?I.currentHash===S.gallery+"-"+S.index||S.index===1&&I.currentHash==S.gallery||(I.currentHash=null,I.close()):S.gallery!==""&&u(S)}),setTimeout(function(){e.fancybox.getInstance()||u(c())},50))})}(window,document,jQuery),function(t,s){var e=new Date().getTime();s(t).on({"onInit.fb":function(c,u,d){u.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(S){var I=u.current,Z=new Date().getTime();u.group.length<2||I.opts.wheel===!1||I.opts.wheel==="auto"&&I.type!=="image"||(S.preventDefault(),S.stopPropagation(),I.$slide.hasClass("fancybox-animated")||(S=S.originalEvent||S,Z-e<250||(e=Z,u[(-S.deltaY||-S.deltaX||S.wheelDelta||-S.detail)<0?"next":"previous"]())))})}})}(document,jQuery);/*!
64 * 
65 *  js-cloudimage-360-view v3.0.3
66 *  https://github.com/scaleflex/js-cloudimage-360-view
67 * 
68 *  Copyright (c) 2019 scaleflex
69 *  Released under the MIT license
70 * 
71 *  Date: 2022-10-18T15:57:23.456Z
72 * 
73 */(function(t){var s={};function e(c){if(s[c])return s[c].exports;var u=s[c]={i:c,l:!1,exports:{}};return t[c].call(u.exports,u,u.exports,e),u.l=!0,u.exports}e.m=t,e.c=s,e.d=function(c,u,d){e.o(c,u)||Object.defineProperty(c,u,{enumerable:!0,get:d})},e.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},e.t=function(c,u){if(1&u&&(c=e(c)),8&u||4&u&&typeof c=="object"&&c&&c.__esModule)return c;var d=Object.create(null);if(e.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:c}),2&u&&typeof c!="string")for(var S in c)e.d(d,S,(function(I){return c[I]}).bind(null,S));return d},e.n=function(c){var u=c&&c.__esModule?function(){return c.default}:function(){return c};return e.d(u,"a",u),u},e.o=function(c,u){return Object.prototype.hasOwnProperty.call(c,u)},e.p="",e(e.s=121)})([function(t,s,e){var c=e(18),u=Function.prototype,d=u.bind,S=u.call,I=c&&d.bind(S,S);t.exports=c?function(Z){return Z&&I(Z)}:function(Z){return Z&&function(){return S.apply(Z,arguments)}}},function(t,s,e){var c=e(114)();t.exports=c;try{regeneratorRuntime=c}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=c:Function("r","regeneratorRuntime = r")(c)}},function(t,s){t.exports=function(e){try{return!!e()}catch{return!0}}},function(t,s){t.exports=function(e){return typeof e=="function"}},function(t,s,e){(function(c){var u=function(d){return d&&d.Math==Math&&d};t.exports=u(typeof globalThis=="object"&&globalThis)||u(typeof window=="object"&&window)||u(typeof self=="object"&&self)||u(typeof c=="object"&&c)||function(){return this}()||Function("return this")()}).call(this,e(63))},function(t,s,e){var c=e(2);t.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}}
73)[1]!=7})},function(t,s){t.exports=function(e,c,u){return c in e?Object.defineProperty(e,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):e[c]=u,e},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,s){function e(c,u,d,S,I,Z,ct){try{var nt=c[Z](ct),rt=nt.value}catch(q){return void d(q)}nt.done?u(rt):Promise.resolve(rt).then(S,I)}t.exports=function(c){return function(){var u=this,d=arguments;return new Promise(function(S,I){var Z=c.apply(u,d);function ct(rt){e(Z,S,I,ct,nt,"next",rt)}function nt(rt){e(Z,S,I,ct,nt,"throw",rt)}ct(void 0)})}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,s,e){var c=e(0),u=e(37),d=c({}.hasOwnProperty);t.exports=Object.hasOwn||function(S,I){return d(u(S),I)}},function(t,s,e){var c=e(3);t.exports=function(u){return typeof u=="object"?u!==null:c(u)}},function(t,s,e){var c=e(4),u=e(36),d=e(8),S=e(38),I=e(33),Z=e(32),ct=u("wks"),nt=c.Symbol,rt=nt&&nt.for,q=Z?nt:nt&&nt.withoutSetter||S;t.exports=function(J){if(!d(ct,J)||!I&&typeof ct[J]!="string"){var ht="Symbol."+J;I&&d(nt,J)?ct[J]=nt[J]:ct[J]=Z&&rt?rt(ht):q(ht)}return ct[J]}},function(t,s,e){var c=e(4),u=e(3),d=function(S){return u(S)?S:void 0};t.exports=function(S,I){return arguments.length<2?d(c[S]):c[S]&&c[S][I]}},function(t,s,e){var c=e(5),u=e(39),d=e(42),S=e(15),I=e(30),Z=TypeError,ct=Object.defineProperty,nt=Object.getOwnPropertyDescriptor;s.f=c?d?function(rt,q,J){if(S(rt),q=I(q),S(J),typeof rt=="function"&&q==="prototype"&&"value"in J&&"writable"in J&&!J.writable){var ht=nt(rt,q);ht&&ht.writable&&(rt[q]=J.value,J={configurable:"configurable"in J?J.configurable:ht.configurable,enumerable:"enumerable"in J?J.enumerable:ht.enumerable,writable:!1})}return ct(rt,q,J)}:ct:function(rt,q,J){if(S(rt),q=I(q),S(J),u)try{return ct(rt,q,J)}catch{}if("get"in J||"set"in J)throw Z("Accessors not supported");return"value"in J&&(rt[q]=J.value),rt}},function(t,s){function e(c){return t.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},t.exports.__esModule=!0,t.exports.default=t.exports,e(c)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,s,e){var c=e(28),u=e(29);t.exports=function(d){return c(u(d))}},function(t,s,e){var c=e(9),u=String,d=TypeError;t.exports=function(S){if(c(S))return S;throw d(u(S)+" is not an object")}},function(t,s,e){var c=e(4),u=e(26).f,d=e(41),S=e(72),I=e(21),Z=e(77),ct=e(84);t.exports=function(nt,rt){var q,J,ht,xt,Et,x=nt.target,R=nt.global,G=nt.stat;if(q=R?c:G?c[x]||I(x,{}):(c[x]||{}).prototype)for(J in rt){if(xt=rt[J],ht=nt.dontCallGetSet?(Et=u(q,J))&&Et.value:q[J],!ct(R?J:x+(G?".":"#")+J,nt.forced)&&ht!==void 0){if(typeof xt==typeof ht)continue;Z(xt,ht)}(nt.sham||ht&&ht.sham)&&d(xt,"sham",!0),S(q,J,xt,nt)}}},function(t,s,e){var c=e(18),u=Function.prototype.call;t.exports=c?u.bind(u):function(){return u.apply(u,arguments)}},function(t,s,e){var c=e(2);t.exports=!c(function(){var u=(function(){}).bind();return typeof u!="function"||u.hasOwnProperty("prototype")})},function(t,s,e){var c=e(0),u=c({}.toString),d=c("".slice);t.exports=function(S){return d(u(S),8,-1)}},function(t,s,e){var c=e(4),u=e(21),d=c["__core-js_shared__"]||u("__core-js_shared__",{});t.exports=d},function(t,s,e){var c=e(4),u=Object.defineProperty;t.exports=function(d,S){try{u(c,d,{value:S,configurable:!0,writable:!0})}catch{c[d]=S}return S}},function(t,s,e){var c=e(0),u=e(3),d=e(20),S=c(Function.toString);u(d.inspectSource)||(d.inspectSource=function(I){return S(I)}),t.exports=d.inspectSource},function(t,s){t.exports={}},function(t,s){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,s,e){var c=e(4),u=e(0);t.exports=function(d,S){return u(c[d].prototype[S])}},function(t,s,e){var c=e(5),u=e(17),d=e(64),S=e(27),I=e(14),Z=e(30),ct=e(8),nt=e(39),rt=Object.getOwnPropertyDescriptor;s.f=c?rt:function(q,J){if(q=I(q),J=Z(J),nt)try{return rt(q,J)}catch{}if(ct(q,J))return S(!u(d.f,q,J),q[J])}},function(t,s){t.exports=function(e,c){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:c}}},function(t,s,e){var c=e(0),u=e(2),d=e(19),S=Object,I=c("".split);t.exports=u(function(){return!S("z").propertyIsEnumerable(0)})?function(Z){return d(Z)=="String"?I(Z,""):S(Z)}:S},function(t,s){var e=TypeError;t.exports=function(c){if(c==null)throw e("Can't call method on "+c);return c}},function(t,s,e){var c=e(65),u=e(31);t.exports=function(d){var S=c(d,"string");return u(S)?S:S+""}},function(t,s,e){var c=e(11),u=e(3),d=e(66),S=e(32),I=Object;t.exports=S?function(Z){return typeof Z=="symbol"}:function(Z){var ct=c("Symbol");return u(ct)&&d(ct.prototype,I(Z))}},function(t,s,e){var c=e(33);t.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(t,s,e){var c=e(34),u=e(2);t.exports=!!Object.getOwnPropertySymbols&&!u(function(){var d=Symbol();return!String(d)||!(Object(d)instanceof Symbol)||!Symbol.sham&&c&&c<41})},function(t,s,e){var c,u,d=e(4),S=e(67),I=d.process,Z=d.Deno,ct=I&&I.versions||Z&&Z.version,nt=ct&&ct.v8;nt&&(u=(c=nt.split("."))[0]>0&&c[0]<4?1:+(c[0]+c[1])),!u&&S&&(!(c=S.match(/Edge\/(\d+)/))||c[1]>
73=74)&&(c=S.match(/Chrome\/(\d+)/))&&(u=+c[1]),t.exports=u},function(t,s,e){var c=e(3),u=e(69),d=TypeError;t.exports=function(S){if(c(S))return S;throw d(u(S)+" is not a function")}},function(t,s,e){var c=e(71),u=e(20);(t.exports=function(d,S){return u[d]||(u[d]=S!==void 0?S:{})})("versions",[]).push({version:"3.24.0",mode:c?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.0/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t,s,e){var c=e(29),u=Object;t.exports=function(d){return u(c(d))}},function(t,s,e){var c=e(0),u=0,d=Math.random(),S=c(1 .toString);t.exports=function(I){return"Symbol("+(I===void 0?"":I)+")_"+S(++u+d,36)}},function(t,s,e){var c=e(5),u=e(2),d=e(40);t.exports=!c&&!u(function(){return Object.defineProperty(d("div"),"a",{get:function(){return 7}}).a!=7})},function(t,s,e){var c=e(4),u=e(9),d=c.document,S=u(d)&&u(d.createElement);t.exports=function(I){return S?d.createElement(I):{}}},function(t,s,e){var c=e(5),u=e(12),d=e(27);t.exports=c?function(S,I,Z){return u.f(S,I,d(1,Z))}:function(S,I,Z){return S[I]=Z,S}},function(t,s,e){var c=e(5),u=e(2);t.exports=c&&u(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},function(t,s,e){var c=e(36),u=e(38),d=c("keys");t.exports=function(S){return d[S]||(d[S]=u(S))}},function(t,s,e){var c=e(0),u=e(8),d=e(14),S=e(45).indexOf,I=e(23),Z=c([].push);t.exports=function(ct,nt){var rt,q=d(ct),J=0,ht=[];for(rt in q)!u(I,rt)&&u(q,rt)&&Z(ht,rt);for(;nt.length>J;
73)u(q,rt=nt[J++])&&(~S(ht,rt)||Z(ht,rt));return ht}},function(t,s,e){var c=e(14),u=e(80),d=e(47),S=function(I){return function(Z,ct,nt){var rt,q=c(Z),J=d(q),ht=u(nt,J);if(I&&ct!=ct){for(;J>ht;)if((rt=q[ht++])!=rt)return!0}else for(;J>ht;ht++)if((I||ht in q)&&q[ht]===ct)return I||ht||0;return!I&&-1}};t.exports={includes:S(!0),indexOf:S(!1)}},function(t,s,e){var c=e(81);t.exports=function(u){var d=+u;return d!=d||d===0?0:c(d)}},function(t,s,e){var c=e(82);t.exports=function(u){return c(u.length)}},function(t,s,e){var c=e(86),u=e(0),d=e(28),S=e(37),I=e(47),Z=e(87),ct=u([].push),nt=function(rt){var q=rt==1,J=rt==2,ht=rt==3,xt=rt==4,Et=rt==6,x=rt==7,R=rt==5||Et;return function(G,at,ut,A){for(var Vt,Ot,Be=S(G),xe=d(Be),me=c(at,ut),mt=I(xe),ot=0,Pt=A||Z,Ct=q?Pt(G,mt):J||x?Pt(G,0):void 0;mt>ot;ot++)if((R||ot in xe)&&(Ot=me(Vt=xe[ot],ot,Be),rt))if(q)Ct[ot]=Ot;else if(Ot)switch(rt){case 3:return!0;case 5:return Vt;case 6:return ot;case 2:ct(Ct,Vt)}else switch(rt){case 4:return!1;case 7:ct(Ct,Vt)}return Et?-1:ht||xt?xt:Ct}};t.exports={forEach:nt(0),map:nt(1),filter:nt(2),some:nt(3),every:nt(4),find:nt(5),findIndex:nt(6),filterReject:nt(7)}},function(t,s){t.exports=function(e,c){(c==null||c>e.length)&&(c=e.length);for(var u=0,d=new Array(c);u<c;u++)d[u]=e[u];return d},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,s,e){var c=e(49);t.exports=function(u,d){if(u){if(typeof u=="string")return c(u,d);var S=Object.prototype.toString.call(u).slice(8,-1);return S==="Object"&&u.constructor&&(S=u.constructor.name),S==="Map"||S==="Set"?Array.from(u):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?c(u,d):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,s){t.exports=function(e,c){if(!(e instanceof c))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,s){function e(c,u){for(var d=0;d<u.length;d++){var S=u[d];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(c,S.key,S)}}t.exports=function(c,u,d){return u&&e(c.prototype,u),d&&e(c,d),Object.defineProperty(c,"prototype",{writable:!1}),c},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,s,e){var c=e(115),u=e(116),d=e(50),S=e(117);t.exports=function(I){return c(I)||u(I)||d(I)||S()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,s,e){var c=e(118),u=e(119),d=e(50),S=e(120);t.exports=function(I,Z){return c(I)||u(I,Z)||d(I,Z)||S()},t.exports.__esModule=!0,t.exports.default=t.exports},,,function(t,s,e){t.exports=e(58)},function(t,s,e){var c=e(59);t.exports=c},function(t,s,e){var c=e(60);t.exports=c},function(t,s,e){var c=e(61);t.exports=c},function(t,s,e){e(62);var c=e(25);t.exports=c("Array","forEach")},function(t,s,e){var c=e(16),u=e(85);c({target:"Array",proto:!0,forced:[].forEach!=u},{forEach:u})},function(t,s){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch{typeof window=="object"&&(e=window)}t.exports=e},function(t,s,e){var c={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,d=u&&!c.call({1:2},1);s.f=d?function(S){var I=u(this,S);return!!I&&I.enumerable}:c},function(t,s,e){var c=e(17),u=e(9),d=e(31),S=e(68),I=e(70),Z=e(10),ct=TypeError,nt=Z("toPrimitive");t.exports=function(rt,q){if(!u(rt)||d(rt))return rt;var J,ht=S(rt,nt);if(ht){if(q===void 0&&(q="default"),J=c(ht,rt,q),!u(J)||d(J))return J;throw ct("Can't convert object to primitive value")}return q===void 0&&(q="number"),I(rt,q)}},function(t,s,e){var c=e(0);t.exports=c({}.isPrototypeOf)},function(t,s,e){var c=e(11);t.exports=c("navigator","userAgent")||""},function(t,s,e){var c=e(35);t.exports=function(u,d){var S=u[d];return S==null?void 0:c(S)}},function(t,s){var e=String;t.exports=function(c){try{return e(c)}catch{return"Object"}}},function(t,s,e){var c=e(17),u=e(3),d=e(9),S=TypeError;t.exports=function(I,Z){var ct,nt;if(Z==="string"&&u(ct=I.toString)&&!d(nt=c(ct,I))||u(ct=I.valueOf)&&!d(nt=c(ct,I))||Z!=="string"&&u(ct=I.toString)&&!d(nt=c(ct,I)))return nt;throw S("Can't convert object to primitive value")}},function(t,s){t.exports=!1},function(t,s,e){var c=e(3),u=e(12),d=e(73),S=e(21);t.exports=function(I,Z,ct,nt){nt||(nt={});var rt=nt.enumerable,q=nt.name!==void 0?nt.name:Z;if(c(ct)&&d(ct,q,nt),nt.global)rt?I[Z]=ct:S(Z,ct);
73else{try{nt.unsafe?I[Z]&&(rt=!0):delete I[Z]}catch{}rt?I[Z]=ct:u.f(I,Z,{value:ct,enumerable:!1,configurable:!nt.nonConfigurable,writable:!nt.nonWritable})}return I}},function(t,s,e){var c=e(2),u=e(3),d=e(8),S=e(5),I=e(74).CONFIGURABLE,Z=e(22),ct=e(75),nt=ct.enforce,rt=ct.get,q=Object.defineProperty,J=S&&!c(function(){return q(function(){},"length",{value:8}).length!==8}),ht=String(String).split("String"),xt=t.exports=function(Et,x,R){String(x).slice(0,7)==="Symbol("&&(x="["+String(x).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),R&&R.getter&&(x="get "+x),R&&R.setter&&(x="set "+x),(!d(Et,"name")||I&&Et.name!==x)&&(S?q(Et,"name",{value:x,configurable:!0}):Et.name=x),J&&R&&d(R,"arity")&&Et.length!==R.arity&&q(Et,"length",{value:R.arity});try{R&&d(R,"constructor")&&R.constructor?S&&q(Et,"prototype",{writable:!1}):Et.prototype&&(Et.prototype=void 0)}catch{}var G=nt(Et);return d(G,"source")||(G.source=ht.join(typeof x=="string"?x:"")),Et};Function.prototype.toString=xt(function(){return u(this)&&rt(this).source||Z(this)},"toString")},function(t,s,e){var c=e(5),u=e(8),d=Function.prototype,S=c&&Object.getOwnPropertyDescriptor,I=u(d,"name"),Z=I&&(function(){}).name==="something",ct=I&&(!c||c&&S(d,"name").configurable);t.exports={EXISTS:I,PROPER:Z,CONFIGURABLE:ct}},function(t,s,e){var c,u,d,S=e(76),I=e(4),Z=e(0),ct=e(9),nt=e(41),rt=e(8),q=e(20),J=e(43),ht=e(23),xt=I.TypeError,Et=I.WeakMap;if(S||q.state){var x=q.state||(q.state=new Et),R=Z(x.get),G=Z(x.has),at=Z(x.set);c=function(A,Vt){if(G(x,A))throw new xt("Object already initialized");return Vt.facade=A,at(x,A,Vt),Vt},u=function(A){return R(x,A)||{}},d=function(A){return G(x,A)}}else{var ut=J("state");ht[ut]=!0,c=function(A,Vt){if(rt(A,ut))throw new xt("Object already initialized");return Vt.facade=A,nt(A,ut,Vt),Vt},u=function(A){return rt(A,ut)?A[ut]:{}},d=function(A){return rt(A,ut)}}t.exports={set:c,get:u,has:d,enforce:function(A){return d(A)?u(A):c(A,{})},getterFor:function(A){return function(Vt){var Ot;if(!ct(Vt)||(Ot=u(Vt)).type!==A)throw xt("Incompatible receiver, "+A+" required");return Ot}}}},function(t,s,e){var c=e(4),u=e(3),d=e(22),S=c.WeakMap;t.exports=u(S)&&/native code/.test(d(S))},function(t,s,e){var c=e(8),u=e(78),d=e(26),S=e(12);t.exports=function(I,Z,ct){for(var nt=u(Z),rt=S.f,q=d.f,J=0;J<nt.length;J++){var ht=nt[J];c(I,ht)||ct&&c(ct,ht)||rt(I,ht,q(Z,ht))}}},function(t,s,e){var c=e(11),u=e(0),d=e(79),S=e(83),I=e(15),Z=u([].concat);t.exports=c("Reflect","ownKeys")||function(ct){var nt=d.f(I(ct)),rt=S.f;return rt?Z(nt,rt(ct)):nt}},function(t,s,e){var c=e(44),u=e(24).concat("length","prototype");s.f=Object.getOwnPropertyNames||function(d){return c(d,u)}},function(t,s,e){var c=e(46),u=Math.max,d=Math.min;t.exports=function(S,I){var Z=c(S);return Z<0?u(Z+I,0):d(Z,I)}},function(t,s){var e=Math.ceil,c=Math.floor;t.exports=Math.trunc||function(u){var d=+u;return(d>0?c:e)(d)}},function(t,s,e){var c=e(46),u=Math.min;t.exports=function(d){return d>0?u(c(d),9007199254740991):0}},function(t,s){s.f=Object.getOwnPropertySymbols},function(t,s,e){var c=e(2),u=e(3),d=/#|\.prototype\./,S=function(rt,q){var J=Z[I(rt)];return J==nt||J!=ct&&(u(q)?c(q):!!q)},I=S.normalize=function(rt){return String(rt).replace(d,".").toLowerCase()},Z=S.data={},ct=S.NATIVE="N",nt=S.POLYFILL="P";t.exports=S},function(t,s,e){var c=e(48).forEach,u=e(93)("forEach");t.exports=u?[].forEach:function(d){return c(this,d,arguments.length>1?arguments[1]:void 0)}},function(t,s,e){var c=e(0),u=e(35),d=e(18),S=c(c.bind);t.exports=function(I,Z){return u(I),Z===void 0?I:d?S(I,Z):function(){return I.apply(Z,arguments)}}},function(t,s,e){var c=e(88);t.exports=function(u,d){return new(c(u))(d===0?0:d)}},function(t,s,e){var c=e(89),u=e(90),d=e(9),S=e(10)("species"),I=Array;t.exports=function(Z){var ct;return c(Z)&&(ct=Z.constructor,(u(ct)&&(ct===I||c(ct.prototype))||d(ct)&&(ct=ct[S])===null)&&(ct=void 0)),ct===void 0?I:ct}},function(t,s,e){var c=e(19);t.exports=Array.isArray||function(u){return c(u)=="Array"}},function(t,s,e){var c=e(0),u=e(2),d=e(3),S=e(91),I=e(11),Z=e(22),ct=function(){},nt=[],rt=I("Reflect","construct"),q=/^\s*(?:class|function)\b/,J=c(q.exec),ht=!q.exec(ct),xt=function(x){if(!d(x))return!1;try{return rt(ct,nt,x),!0}catch{return!1}},Et=function(x){if(!d(x))return!1;switch(S(x)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ht||!!J(q,Z(x))}catch{return!0}};
73Et.sham=!0,t.exports=!rt||u(function(){var x;return xt(xt.call)||!xt(Object)||!xt(function(){x=!0})||x})?Et:xt},function(t,s,e){var c=e(92),u=e(3),d=e(19),S=e(10)("toStringTag"),I=Object,Z=d(function(){return arguments}())=="Arguments";t.exports=c?d:function(ct){var nt,rt,q;return ct===void 0?"Undefined":ct===null?"Null":typeof(rt=function(J,ht){try{return J[ht]}catch{}}(nt=I(ct),S))=="string"?rt:Z?d(nt):(q=d(nt))=="Object"&&u(nt.callee)?"Arguments":q}},function(t,s,e){var c={};c[e(10)("toStringTag")]="z",t.exports=String(c)==="[object z]"},function(t,s,e){var c=e(2);t.exports=function(u,d){var S=[][u];return!!S&&c(function(){S.call(null,d||function(){return 1},1)})}},function(t,s,e){t.exports=e(95)},function(t,s,e){var c=e(96);t.exports=c},function(t,s,e){var c=e(97);t.exports=c},function(t,s,e){var c=e(98);t.exports=c},function(t,s,e){e(99);var c=e(25);t.exports=c("Array","filter")},function(t,s,e){var c=e(16),u=e(48).filter;c({target:"Array",proto:!0,forced:!e(100)("filter")},{filter:function(d){return u(this,d,arguments.length>1?arguments[1]:void 0)}})},function(t,s,e){var c=e(2),u=e(10),d=e(34),S=u("species");t.exports=function(I){return d>=51||!c(function(){var Z=[];return(Z.constructor={})[S]=function(){return{foo:1}},Z[I](Boolean).foo!==1})}},function(t,s,e){t.exports=e(102)},function(t,s,e){var c=e(103);t.exports=c},function(t,s,e){var c=e(104);t.exports=c},function(t,s,e){var c=e(105);t.exports=c},function(t,s,e){e(106);var c=e(25);t.exports=c("Array","includes")},function(t,s,e){var c=e(16),u=e(45).includes,d=e(2),S=e(107);c({target:"Array",proto:!0,forced:d(function(){return!Array(1).includes()})},{includes:function(I){return u(this,I,arguments.length>1?arguments[1]:void 0)}}),S("includes")},function(t,s,e){var c=e(10),u=e(108),d=e(12).f,S=c("unscopables"),I=Array.prototype;I[S]==null&&d(I,S,{configurable:!0,value:u(null)}),t.exports=function(Z){I[S][Z]=!0}},function(t,s,e){var c,u=e(15),d=e(109),S=e(24),I=e(23),Z=e(111),ct=e(40),nt=e(43),rt=nt("IE_PROTO"),q=function(){},J=function(Et){return"<script>"+Et+"<\/script>"},ht=function(Et){Et.write(J("")),Et.close();var x=Et.parentWindow.Object;return Et=null,x},xt=function(){try{c=new ActiveXObject("htmlfile")}catch{}var Et,x;xt=typeof document<"u"?document.domain&&c?ht(c):((x=ct("iframe")).style.display="none",Z.appendChild(x),x.src="javascript:",(Et=x.contentWindow.document).open(),Et.write(J("document.F=Object")),Et.close(),Et.F):ht(c);for(var R=S.length;R--;)delete xt.prototype[S[R]];return xt()};I[rt]=!0,t.exports=Object.create||function(Et,x){var R;return Et!==null?(q.prototype=u(Et),R=new q,q.prototype=null,R[rt]=Et):R=xt(),x===void 0?R:d.f(R,x)}},function(t,s,e){var c=e(5),u=e(42),d=e(12),S=e(15),I=e(14),Z=e(110);s.f=c&&!u?Object.defineProperties:function(ct,nt){S(ct);for(var rt,q=I(nt),J=Z(nt),ht=J.length,xt=0;ht>xt;)d.f(ct,rt=J[xt++],q[rt]);return ct}},function(t,s,e){var c=e(44),u=e(24);t.exports=Object.keys||function(d){return c(d,u)}},function(t,s,e){var c=e(11);t.exports=c("document","documentElement")},function(t,s,e){},function(t,s,e){},function(t,s,e){var c=e(13).default;function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=u=function(){return d},t.exports.__esModule=!0,t.exports.default=t.exports;var d={},S=Object.prototype,I=S.hasOwnProperty,Z=typeof Symbol=="function"?Symbol:{},ct=Z.iterator||"@@iterator",nt=Z.asyncIterator||"@@asyncIterator",rt=Z.toStringTag||"@@toStringTag";function q(Ct,g,ve){return Object.defineProperty(Ct,g,{value:ve,enumerable:!0,configurable:!0,writable:!0}),Ct[g]}try{q({},"")}catch{q=function(g,ve,ue){return g[ve]=ue}}function J(Ct,g,ve,ue){var ye=g&&g.prototype instanceof Et?g:Et,De=Object.create(ye.prototype),Te=new mt(ue||[]);return De._invoke=function(We,ii,Ee){var Ei="suspendedStart";return function(ji,wn){if(Ei==="executing")throw new Error("Generator is already running");if(Ei==="completed"){if(ji==="throw")throw wn;return Pt()}for(Ee.method=ji,Ee.arg=wn;;){var Ni=Ee.delegate;if(Ni){var pn=Be(Ni,Ee);if(pn){if(pn===xt)continue;return pn}}if(Ee.method==="next")Ee.sent=Ee._sent=Ee.arg;else if(Ee.method==="throw"){if(Ei==="suspendedStart")throw Ei="completed",Ee.arg;Ee.dispatchException(Ee.arg)}else Ee.method==="return"&&Ee.abrupt("return",Ee.arg);Ei="executing";var Cn=ht(We,ii,Ee);if(Cn.type==="normal"){if(Ei=Ee.done?"completed":"suspendedYield",Cn.arg===xt)continue;return{value:Cn.arg,done:Ee.done}}Cn.type==="throw"&&(Ei="completed",Ee.method="throw",Ee.arg=Cn.arg)}}}(Ct,ve,Te),De}function ht(Ct,g,ve){try{return{type:"normal",arg:Ct.call(g,ve)}}catch(ue){return{type:"throw",arg:ue}}}d.wrap=J;var xt={};function Et(){}function x(){}function R(){}var G={};q(G,ct,function(){return this});var at=Object.getPrototypeOf,ut=at&&at(at(ot([])));ut&&ut!==S&&I.call(ut,ct)&&(G=ut);var A=R.prototype=Et.prototype=Object.create(G);function Vt(Ct){["next","throw","return"].forEach(function(g){q(Ct,g,function(ve){return this._invoke(g,ve)})})}function Ot(Ct,g){var ve;this._invoke=function(ue,ye){function De(){return new g(function(Te,We){(function ii(Ee,Ei,ji,wn){var Ni=ht(Ct[Ee],Ct,Ei);if(Ni.type!=="throw"){var pn=Ni.arg,Cn=pn.value;return Cn&&c(Cn)=="object"&&I.call(Cn,"__await")?g.resolve(Cn.__await).then(function(An){ii("next",An,ji,wn)},function(An){ii("throw",An,ji,wn)}):g.resolve(Cn).then(function(An){pn.value=An,ji(pn)},function(An){return ii("throw",An,ji,wn)})}wn(Ni.arg)}
vendor: 4,649 bytes, line 73
73)(ue,ye,Te,We)})}return ve=ve?ve.then(De,De):De()}}function Be(Ct,g){var ve=Ct.iterator[g.method];if(ve===void 0){if(g.delegate=null,g.method==="throw"){if(Ct.iterator.return&&(g.method="return",g.arg=void 0,Be(Ct,g),g.method==="throw"))return xt;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return xt}var ue=ht(ve,Ct.iterator,g.arg);if(ue.type==="throw")return g.method="throw",g.arg=ue.arg,g.delegate=null,xt;var ye=ue.arg;return ye?ye.done?(g[Ct.resultName]=ye.value,g.next=Ct.nextLoc,g.method!=="return"&&(g.method="next",g.arg=void 0),g.delegate=null,xt):ye:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,xt)}function xe(Ct){var g={tryLoc:Ct[0]};1 in Ct&&(g.catchLoc=Ct[1]),2 in Ct&&(g.finallyLoc=Ct[2],g.afterLoc=Ct[3]),this.tryEntries.push(g)}function me(Ct){var g=Ct.completion||{};g.type="normal",delete g.arg,Ct.completion=g}function mt(Ct){this.tryEntries=[{tryLoc:"root"}],Ct.forEach(xe,this),this.reset(!0)}function ot(Ct){if(Ct){var g=Ct[ct];if(g)return g.call(Ct);if(typeof Ct.next=="function")return Ct;if(!isNaN(Ct.length)){var ve=-1,ue=function ye(){for(;++ve<Ct.length;)if(I.call(Ct,ve))return ye.value=Ct[ve],ye.done=!1,ye;return ye.value=void 0,ye.done=!0,ye};return ue.next=ue}}return{next:Pt}}function Pt(){return{value:void 0,done:!0}}return x.prototype=R,q(A,"constructor",R),q(R,"constructor",x),x.displayName=q(R,rt,"GeneratorFunction"),d.isGeneratorFunction=function(Ct){var g=typeof Ct=="function"&&Ct.constructor;return!!g&&(g===x||(g.displayName||g.name)==="GeneratorFunction")},d.mark=function(Ct){return Object.setPrototypeOf?Object.setPrototypeOf(Ct,R):(Ct.__proto__=R,q(Ct,rt,"GeneratorFunction")),Ct.prototype=Object.create(A),Ct},d.awrap=function(Ct){return{__await:Ct}},Vt(Ot.prototype),q(Ot.prototype,nt,function(){return this}),d.AsyncIterator=Ot,d.async=function(Ct,g,ve,ue,ye){ye===void 0&&(ye=Promise);var De=new Ot(J(Ct,g,ve,ue),ye);return d.isGeneratorFunction(g)?De:De.next().then(function(Te){return Te.done?Te.value:De.next()})},Vt(A),q(A,rt,"Generator"),q(A,ct,function(){return this}),q(A,"toString",function(){return"[object Generator]"}),d.keys=function(Ct){var g=[];for(var ve in Ct)g.push(ve);return g.reverse(),function ue(){for(;g.length;){var ye=g.pop();if(ye in Ct)return ue.value=ye,ue.done=!1,ue}return ue.done=!0,ue}},d.values=ot,mt.prototype={constructor:mt,reset:function(Ct){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(me),!Ct)for(var g in this)g.charAt(0)==="t"&&I.call(this,g)&&!isNaN(+g.slice(1))&&(this[g]=void 0)},stop:function(){this.done=!0;var Ct=this.tryEntries[0].completion;if(Ct.type==="throw")throw Ct.arg;return this.rval},dispatchException:function(Ct){if(this.done)throw Ct;var g=this;function ve(ii,Ee){return De.type="throw",De.arg=Ct,g.next=ii,Ee&&(g.method="next",g.arg=void 0),!!Ee}for(var ue=this.tryEntries.length-1;ue>=0;--ue){var ye=this.tryEntries[ue],De=ye.completion;if(ye.tryLoc==="root")return ve("end");if(ye.tryLoc<=this.prev){var Te=I.call(ye,"catchLoc"),We=I.call(ye,"finallyLoc");if(Te&&We){if(this.prev<ye.catchLoc)return ve(ye.catchLoc,!0);if(this.prev<ye.finallyLoc)return ve(ye.finallyLoc)}else if(Te){if(this.prev<ye.catchLoc)return ve(ye.catchLoc,!0)}else{if(!We)throw new Error("try statement without catch or finally");if(this.prev<ye.finallyLoc)return ve(ye.finallyLoc)}}}},abrupt:function(Ct,g){for(var ve=this.tryEntries.length-1;ve>=0;--ve){var ue=this.tryEntries[ve];if(ue.tryLoc<=this.prev&&I.call(ue,"finallyLoc")&&this.prev<ue.finallyLoc){var ye=ue;break}}ye&&(Ct==="break"||Ct==="continue")&&ye.tryLoc<=g&&g<=ye.finallyLoc&&(ye=null);var De=ye?ye.completion:{};return De.type=Ct,De.arg=g,ye?(this.method="next",this.next=ye.finallyLoc,xt):this.complete(De)},complete:function(Ct,g){if(Ct.type==="throw")throw Ct.arg;return Ct.type==="break"||Ct.type==="continue"?this.next=Ct.arg:Ct.type==="return"?(this.rval=this.arg=Ct.arg,this.method="return",this.next="end"):Ct.type==="normal"&&g&&(this.next=g),xt},finish:function(Ct){for(var g=this.tryEntries.length-1;g>=0;--g){var ve=this.tryEntries[g];if(ve.finallyLoc===Ct)return this.complete(ve.completion,ve.afterLoc),me(ve),xt}},catch:function(Ct){for(var g=this.tryEntries.length-1;g>=0;--g){var ve=this.tryEntries[g];if(ve.tryLoc===Ct){var ue=ve.completion;if(ue.type==="throw"){var ye=ue.arg;me(ve)}return ye}}throw new Error("illegal catch attempt")},delegateYield:function(Ct,g,ve){return this.delegate={iterator:ot(Ct),resultName:g,nextLoc:ve},this.method==="next"&&(this.arg=void 0),xt}},d}
73t.exports=u,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,s,e){var c=e(49);t.exports=function(u){if(Array.isArray(u))return c(u)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,s){t.exports=function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,s){t.exports=function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
74In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,s){t.exports=function(e){if(Array.isArray(e))return e},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,s){t.exports=function(e,c){var u=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(u!=null){var d,S,I=[],Z=!0,ct=!1;try{for(u=u.call(e);!(Z=(d=u.next()).done)&&(I.push(d.value),!c||I.length!==c);Z=!0);}catch(nt){ct=!0,S=nt}finally{try{Z||u.return==null||u.return()}finally{if(ct)throw S}}return I}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,s){t.exports=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
75In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,s,e){e.r(s),e(57),e(94),e(101);var c=e(6),u=e.n(c),d=e(51),S=e.n(d),I=e(52),Z=e.n(I),ct="spin-x",nt="spin-y",rt="spin-xy",q="spin-yx",J=[!1,0,null,void 0,"false","0","null","undefined"],ht="x-axis",xt="y-axis",Et="center",x=/width=\d+|w=\d+|h=\d+|&width=\d+|&w=\d+|&h=\d+|func=\w+|\?$/g,R=/\?&/g,G=function(K){return{folder:ut(K,"folder")||ut(K,"data-folder")||"/",apiVersion:ut(K,"api-version")||ut(K,"data-api-version")||ut(K,"apiVersion")||ut(K,"data-apiVersion")||"v7",filenameX:ut(K,"filename")||ut(K,"data-filename")||ut(K,"filename-x")||ut(K,"data-filename-x")||"image-{index}.jpg",filenameY:ut(K,"filename-y")||ut(K,"data-filename-y")||"image-y-{index}.jpg",imageListX:ut(K,"image-list-x")||ut(K,"data-image-list-x")||null,imageListY:ut(K,"image-list-y")||ut(K,"data-image-list-y")||null,indexZeroBase:parseInt(ut(K,"index-zero-base")||ut(K,"data-index-zero-base")||0,10),amountX:parseInt(ut(K,"amount")||ut(K,"data-amount")||ut(K,"amount-x")||ut(K,"data-amount-x")||36,10),amountY:parseInt(ut(K,"amount-y")||ut(K,"data-amount-y")||0,10),speed:parseInt(ut(K,"speed")||ut(K,"data-speed")||80,10),dragSpeed:parseInt(ut(K,"drag-speed")||ut(K,"data-drag-speed")||150,10),keys:at(K,"keys"),keysReverse:at(K,"keys-reverse"),boxShadow:ut(K,"box-shadow")||ut(K,"data-box-shadow"),autoplay:at(K,"autoplay"),autoplayBehavior:ut(K,"autoplay-behavior")||ut(K,"data-autoplay-behavior")||ct,playOnce:at(K,"play-once"),autoplayReverse:at(K,"autoplay-reverse"),pointerZoom:parseFloat(ut(K,"pointer-zoom")||ut(K,"data-pointer-zoom")||0,10),bottomCircle:at(K,"bottom-circle"),disableDrag:at(K,"disable-drag"),fullscreen:at(K,"fullscreen")||at(K,"full-screen"),magnifier:(ut(K,"magnifier")!==null||ut(K,"data-magnifier")!==null)&&parseFloat(ut(K,"magnifier")||ut(K,"data-magnifier"),10),bottomCircleOffset:parseInt(ut(K,"bottom-circle-offset")||ut(K,"data-bottom-circle-offset")||5,10),ciToken:ut(K,"responsive")||ut(K,"data-responsive"),ciFilters:ut(K,"filters")||ut(K,"data-filters"),ciTransformation:ut(K,"transformation")||ut(K,"data-transformation"),lazyload:at(K,"lazyload"),lazySelector:ut(K,"lazyload-selector")||ut(K,"data-lazyload-selector")||"lazyload",spinReverse:at(K,"spin-reverse"),controlReverse:at(K,"control-reverse"),stopAtEdges:at(K,"stop-at-edges"),hide360Logo:at(K,"hide-360-logo"),ratio:ut(K,"ratio")||ut(K,"data-ratio"),imageInfo:ut(K,"info")||ut(K,"data-info")||at(K,"info")}},at=function(K,O){var W=ut(K,O),lt=ut(K,"data-".concat(O));return W!==null&&W!=="false"||lt!==null&&lt!=="false"},ut=function(K,O){return K.getAttribute(O)},A=(e(112),e(113),["folder","filenameX","filenameY","apiVersion","imageListX","imageListY","indexZeroBase","lazySelector","keys","stopAtEdges","disableDrag","controlReverse","disableDrag"]),Vt=function(K){return(O=K)<=25?"25":O<=50?"50":(100*Math.ceil(O/100)).toString();var O},Ot=function(K,O){var W,lt,pt,wt=K.container,It=K.folder,Nt=K.apiVersion,Ut=K.filename,zt=Ut===void 0?"":Ut,Jt=K.ciParams||{},ae=Jt.ciToken,Oe=Jt.ciFilters,Se=Jt.ciTransformation,ze="".concat(It).concat(zt);if(ae){var de=wt.offsetWidth,$e=J.indexOf(Nt)===-1?Nt:null,Xe=$e?"".concat($e,"/"):"",qe=(W=Vt(de),lt=W.toString().split("x"),pt=[],[].forEach.call(lt,function(ni){pt.push(ni*Math.round(window.devicePixelRatio||1))}),pt.join("x")),Ie=new URL(ze).origin.indexOf("cloudimg")!==-1?ze:"https://".concat(ae,".cloudimg.io/").concat(Xe).concat(ze);ze="".concat(Ie,"?").concat(Se||"".concat(O?"":"width=".concat(qe)," ")).concat(Oe?"&f=".concat(Oe):"")}return ze},Be=e(7),xe=e.n(Be),me=e(1),mt=e.n(me),ot=function(){var K=xe()(mt.a.mark(function O(W,lt,pt){var wt;return mt.a.wrap(function(It){for(;;)switch(It.prev=It.next){case 0:return(wt=new Image).src=W,It.abrupt("return",new Promise(function(Nt){wt.onload=function(){Nt(wt),pt&&pt(wt,lt)},wt.onerror=function(){Nt(wt),pt&&pt(wt,lt)}}));case 3:case"end":return It.stop()}},O)}));return function(O,W,lt){return K.apply(this,arguments)}}(),Pt=function(){var K=xe()(mt.a.mark(function O(W,lt){return mt.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return pt.next=2,Promise.all(W.map(function(){var wt=xe()(mt.a.mark(function It(Nt,Ut){return mt.a.wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:return zt.next=2,ot(Nt,Ut,lt);case 2:case"end":return zt.stop()}},It)}));return function(It,Nt){return wt.apply(this,arguments)}}()));case 2:case"end":return pt.stop()}},O)}));return function(O,W){return K.apply(this,arguments)}}(),Ct=e(53),g=e.n(Ct),ve=function(K){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(K+="").length>=O?K:new Array(O-K.length+1).join("0")+K},ue=function(K,O,W){var lt=O||{},pt=lt.amount,wt=lt.indexZeroBase;return g()(new Array(pt)).map(function(It,Nt){var Ut=ve(Nt+1,wt),zt=K.replace("{index}",Ut);return W?zt.replace(x,"").replace(R,"?"):zt})};function ye(K,O){var W=Object.keys(K);if(Object.getOwnPropertySymbols){var lt=Object.getOwnPropertySymbols(K);O&&(lt=lt.filter(function(pt){return Object.getOwnPropertyDescriptor(K,pt).enumerable})),W.push.apply(W,lt)}return W}var De=function(K,O,W){var lt=O.folder;return K.map(function(pt){var wt=function(It){for(var Nt=1;Nt<arguments.length;Nt++){var Ut=arguments[Nt]!=null?arguments[Nt]:{};
75Nt%2?ye(Object(Ut),!0).forEach(function(zt){u()(It,zt,Ut[zt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(It,Object.getOwnPropertyDescriptors(Ut)):ye(Object(Ut)).forEach(function(zt){Object.defineProperty(It,zt,Object.getOwnPropertyDescriptor(Ut,zt))})}return It}({},O);return wt.folder=/(http(s?)):\/\//gi.test(pt)?"":lt,wt.filename=pt,Ot(wt,W)})},Te=function(K,O,W){var lt=(K||{}).imageList,pt=[];if(lt)try{var wt=JSON.parse(lt);pt=De(wt,K)}catch(It){console.error("Wrong format in image-list attribute: ".concat(It.message))}else pt=ue(O,K);Pt(pt,W)},We=function(){var K=xe()(mt.a.mark(function O(W,lt){return mt.a.wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:return pt.next=2,Promise.all(W.map(function(){var wt=xe()(mt.a.mark(function It(Nt,Ut){return mt.a.wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:return zt.next=2,ot(Nt,Ut,lt);case 2:case"end":return zt.stop()}},It)}));return function(It,Nt){return wt.apply(this,arguments)}}()));case 2:case"end":return pt.stop()}},O)}));return function(O,W){return K.apply(this,arguments)}}(),ii=function(K,O,W){var lt=(K||{}).imageList,pt=[];if(lt)try{var wt=JSON.parse(lt);pt=De(wt,K,!0)}catch(It){console.error("Wrong format in image-list attribute: ".concat(It.message))}else pt=ue(O,K,!0);We(pt,W)};function Ee(K,O){var W=Object.keys(K);if(Object.getOwnPropertySymbols){var lt=Object.getOwnPropertySymbols(K);O&&(lt=lt.filter(function(pt){return Object.getOwnPropertyDescriptor(K,pt).enumerable})),W.push.apply(W,lt)}return W}var Ei=function(K,O){var W=O.folder,lt=K[0],pt=function(wt){for(var It=1;It<arguments.length;It++){var Nt=arguments[It]!=null?arguments[It]:{};It%2?Ee(Object(Nt),!0).forEach(function(Ut){u()(wt,Ut,Nt[Ut])}):Object.getOwnPropertyDescriptors?Object.defineProperties(wt,Object.getOwnPropertyDescriptors(Nt)):Ee(Object(Nt)).forEach(function(Ut){Object.defineProperty(wt,Ut,Object.getOwnPropertyDescriptor(Nt,Ut))})}return wt}({},O);return pt.folder=/(http(s?)):\/\//gi.test(lt)?"":W,pt.filename=lt,Ot(pt)},ji=function(K,O,W){var lt,pt=O||{},wt=pt.imageList,It=pt.lazySelector,Nt=pt.innerBox;if(wt)try{var Ut=JSON.parse(wt);lt=Ei(Ut,O)}catch(Jt){console.error("Wrong format in image-list attribute: ".concat(Jt.message))}else lt=function(Jt,ae){var Oe=(ae||{}).indexZeroBase,Se=ve(1,Oe);return Jt.replace("{index}",Se)}(K,O);var zt=new Image;zt.setAttribute("data-src",lt),zt.style.position="absolute",zt.style.top=0,zt.style.left=0,zt.style.width="100%",zt.style.maxWidth="100%",zt.style.maxHeight="100%",It&&(zt.className=It),Nt.appendChild(zt),W&&(zt.onload=function(){return W(zt)})},wn=function(K){return function(O,W,lt,pt){var wt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,It=arguments.length>5&&arguments[5]!==void 0?arguments[5]:.5,Nt=arguments.length>6&&arguments[6]!==void 0?arguments[6]:.5,Ut=lt/pt,zt=O/W,Jt=O*wt,ae=W*wt;return Ut>zt?ae=Jt/Ut:Jt=ae*Ut,{width:Jt,height:ae,offsetX:(O-Jt)*It,offsetY:(W-ae)*Nt}}}(),Ni=e(13),pn=e.n(Ni),Cn=function(K,O,W){var lt,pt,wt=O.container,It=O.w,Nt=O.h,Ut=O.zoom,zt=O.bw,Jt=O.offsetX,ae=O.offsetY,Oe=function(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event,$e=arguments.length>1?arguments[1]:void 0,Xe=0,qe=0,Ie=$e.getBoundingClientRect();return Xe=de.pageX-Ie.left,qe=de.pageY-Ie.top,{x:Xe-=window.pageXOffset,y:qe-=window.pageYOffset}}(K,wt);lt=Oe.x,pt=Oe.y,lt>wt.offsetWidth-It/Ut&&(lt=wt.offsetWidth-It/Ut),lt<It/Ut&&(lt=It/Ut),pt>wt.offsetHeight-Nt/Ut&&(pt=wt.offsetHeight-Nt/Ut),pt<Nt/Ut&&(pt=Nt/Ut),W.style.left="".concat(lt-It,"px"),W.style.top="".concat(pt-Nt,"px");var Se=(lt-Jt)*Ut-It+zt,ze=(pt-ae)*Ut-Nt+zt;W.style.backgroundPosition="-".concat(Se,"px -").concat(ze,"px")},An=function(K,O,W){var lt=K/150*(36/O)*25*(Math.max(W,600)/1500)||1;return Math.floor(lt)},Ri=function(K,O){var W=K||{};W.classList?W.classList.add(O):W.className+=" ".concat(O)},Sn=function(K,O){K.classList?K.classList.remove(O):K.className=K.className.replace(new RegExp("(^|\\b)".concat(O.split(" ").join("|"),"(\\b|$)"),"gi")," ")},Lr=function(K,O,W,lt,pt){var wt=Et;if(K)return pt;var It=Math.abs(W.x-lt.x),Nt=Math.abs(W.y-lt.y);return It>10&&(wt=ht),Nt>10&&O&&(wt=xt),wt},vn=function(K,O,W){return Math.floor((K-O)/W)||1},Ji=function(K){var O=document.createElement("canvas");return O.style.width="100%",O.style.fontSize="0",K.appendChild(O),O},Gi=function(K){var O=document.createElement("div");
75return O.className="cloudimage-360-icons-container",K.appendChild(O),O},wr=function(K){var O=document.createElement("div");return O.className="cloudimage-360-inner-box",K.appendChild(O),O},Yn=function(K,O){var W=document.createElement("div");return W.className="cloudimage-360-box-shadow",W.style.boxShadow=K,O.appendChild(W),W},Fn=function(K){var O=document.createElement("div");return O.className="cloudimage-360-loader",K.appendChild(O),O},qi=function(K){K.style.position="relative",K.style.width="100%",K.style.cursor="wait",K.setAttribute("draggable","false"),K.className="".concat(K.className," initialized")},Nn=function(K,O){if(K&&O)try{K.removeChild(O)}catch{}},lr=function(K,O,W){for(var lt=new Array(O).length-1;lt>-1;lt--){var pt,wt=(pt=K[lt])===null||pt===void 0?void 0:pt[W];if(wt)return wt}return"0%"},ti=function(K){return K.reduce(function(O,W,lt){var pt=!(W==null||!W.xCoord),wt=!(W==null||!W.yCoord);return pt||(W.xCoord=lr(K,lt,"xCoord")),wt||(W.yCoord=lr(K,lt,"yCoord")),O.push(W),O},[])},$n=function(K){var O="[data-hotspot-icon-id=".concat(K,"]");return document.querySelector(O)},Qn=function(K,O,W,lt,pt){W.style.visibility="visible",W.style.opacity=1,W.style.zIndex=100,W.style.left="".concat(-W.offsetWidth/2,"px"),W.style.top="".concat(-W.offsetHeight/2,"px");var wt=K.offsetWidth/O[0],It=K.offsetHeight/O[1],Nt="".concat(wt*lt,"px"),Ut="".concat(It*pt,"px");W.style.transform="translate3d(".concat(Nt,", ").concat(Ut,", 0)")},vr=function(K){K.style.visibility="hidden",K.style.opacity=0},kr=function(K){switch(K.toLowerCase()){case"x-axis":return"x";case"y-axis":return"y";default:return"x"}},Pr=function(K,O){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,lt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,pt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"x-axis";O.forEach(function(wt){var It=wt.positions,Nt=wt.initialDimensions,Ut=wt.orientation,zt=wt.variant.anchorId,Jt=kr(pt),ae=Ut==="x"?W:lt,Oe=ti(It).find(function(Xe){return Xe.imageIndex===ae}),Se=$n(zt);if(Oe&&Jt===Ut){var ze=Oe.xCoord,de=ze===void 0?0:ze,$e=Oe.yCoord;Qn(K,Nt,Se,de,$e===void 0?0:$e)}else vr(Se)})};function qn(K){if(K==null)return window;if(K.toString()!=="[object Window]"){var O=K.ownerDocument;return O&&O.defaultView||window}return K}function nn(K){return K instanceof qn(K).Element||K instanceof Element}function En(K){return K instanceof qn(K).HTMLElement||K instanceof HTMLElement}function Ti(K){return typeof ShadowRoot<"u"&&(K instanceof qn(K).ShadowRoot||K instanceof ShadowRoot)}var sn=Math.max,Cr=Math.min,wi=Math.round;function Wn(K,O){O===void 0&&(O=!1);var W=K.getBoundingClientRect(),lt=1,pt=1;if(En(K)&&O){var wt=K.offsetHeight,It=K.offsetWidth;It>0&&(lt=wi(W.width)/It||1),wt>0&&(pt=wi(W.height)/wt||1)}return{width:W.width/lt,height:W.height/pt,top:W.top/pt,right:W.right/lt,bottom:W.bottom/pt,left:W.left/lt,x:W.left/lt,y:W.top/pt}}function fr(K){var O=qn(K);return{scrollLeft:O.pageXOffset,scrollTop:O.pageYOffset}}function ar(K){return K?(K.nodeName||"").toLowerCase():null}function Hn(K){return((nn(K)?K.ownerDocument:K.document)||window.document).documentElement}function nr(K){return Wn(Hn(K)).left+fr(K).scrollLeft}function Mn(K){return qn(K).getComputedStyle(K)}function jn(K){var O=Mn(K),W=O.overflow,lt=O.overflowX,pt=O.overflowY;return/auto|scroll|overlay|hidden/.test(W+pt+lt)}function Gn(K,O,W){W===void 0&&(W=!1);var lt,pt,wt=En(O),It=En(O)&&function(ae){var Oe=ae.getBoundingClientRect(),Se=wi(Oe.width)/ae.offsetWidth||1,ze=wi(Oe.height)/ae.offsetHeight||1;return Se!==1||ze!==1}(O),Nt=Hn(O),Ut=Wn(K,It),zt={scrollLeft:0,scrollTop:0},Jt={x:0,y:0};return(wt||!wt&&!W)&&((ar(O)!=="body"||jn(Nt))&&(zt=(lt=O)!==qn(lt)&&En(lt)?{scrollLeft:(pt=lt).scrollLeft,scrollTop:pt.scrollTop}:fr(lt)),En(O)?((Jt=Wn(O,!0)).x+=O.clientLeft,Jt.y+=O.clientTop):Nt&&(Jt.x=nr(Nt))),{x:Ut.left+zt.scrollLeft-Jt.x,y:Ut.top+zt.scrollTop-Jt.y,width:Ut.width,height:Ut.height}}function un(K){var O=Wn(K),W=K.offsetWidth,lt=K.offsetHeight;return Math.abs(O.width-W)<=1&&(W=O.width),Math.abs(O.height-lt)<=1&&(lt=O.height),{x:K.offsetLeft,y:K.offsetTop,width:W,height:lt}}function pr(K){return ar(K)==="html"?K:K.assignedSlot||K.parentNode||(Ti(K)?K.host:null)||Hn(K)}function cr(K,O){var W;O===void 0&&(O=[]);var lt=function Ut(zt){return["html","body","#document"].indexOf(ar(zt))>=0?zt.ownerDocument.body:En(zt)&&jn(zt)?zt:Ut(pr(zt))}(K),pt=lt===((W=K.ownerDocument)==null?void 0:W.body),wt=qn(lt),It=pt?[wt].
75concat(wt.visualViewport||[],jn(lt)?lt:[]):lt,Nt=O.concat(It);return pt?Nt:Nt.concat(cr(pr(It)))}function yr(K){return["table","td","th"].indexOf(ar(K))>=0}function Mr(K){return En(K)&&Mn(K).position!=="fixed"?K.offsetParent:null}function Zn(K){for(var O=qn(K),W=Mr(K);W&&yr(W)&&Mn(W).position==="static";)W=Mr(W);return W&&(ar(W)==="html"||ar(W)==="body"&&Mn(W).position==="static")?O:W||function(lt){var pt=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1;if(navigator.userAgent.indexOf("Trident")!==-1&&En(lt)&&Mn(lt).position==="fixed")return null;var wt=pr(lt);for(Ti(wt)&&(wt=wt.host);En(wt)&&["html","body"].indexOf(ar(wt))<0;){var It=Mn(wt);if(It.transform!=="none"||It.perspective!=="none"||It.contain==="paint"||["transform","perspective"].indexOf(It.willChange)!==-1||pt&&It.willChange==="filter"||pt&&It.filter&&It.filter!=="none")return wt;wt=wt.parentNode}return null}(K)||O}var Ln="top",Tn="bottom",Rt="right",Ft="left",Zt=[Ln,Tn,Rt,Ft],Le=Zt.reduce(function(K,O){return K.concat([O+"-start",O+"-end"])},[]),oi=[].concat(Zt,["auto"]).reduce(function(K,O){return K.concat([O,O+"-start",O+"-end"])},[]),Ge=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ke(K){var O=new Map,W=new Set,lt=[];return K.forEach(function(pt){O.set(pt.name,pt)}),K.forEach(function(pt){W.has(pt.name)||function wt(It){W.add(It.name),[].concat(It.requires||[],It.requiresIfExists||[]).forEach(function(Nt){if(!W.has(Nt)){var Ut=O.get(Nt);Ut&&wt(Ut)}}),lt.push(It)}(pt)}),lt}var ki={placement:"bottom",modifiers:[],strategy:"absolute"};function Pi(){for(var K=arguments.length,O=new Array(K),W=0;W<K;W++)O[W]=arguments[W];return!O.some(function(lt){return!(lt&&typeof lt.getBoundingClientRect=="function")})}function Oi(K){K===void 0&&(K={});var O=K,W=O.defaultModifiers,lt=W===void 0?[]:W,pt=O.defaultOptions,wt=pt===void 0?ki:pt;return function(It,Nt,Ut){Ut===void 0&&(Ut=wt);var zt,Jt,ae={placement:"bottom",orderedModifiers:[],options:Object.assign({},ki,wt),modifiersData:{},elements:{reference:It,popper:Nt},attributes:{},styles:{}},Oe=[],Se=!1,ze={state:ae,setOptions:function($e){var Xe=typeof $e=="function"?$e(ae.options):$e;de(),ae.options=Object.assign({},wt,ae.options,Xe),ae.scrollParents={reference:nn(It)?cr(It):It.contextElement?cr(It.contextElement):[],popper:cr(Nt)};var qe=function(Ie){var ni=Ke(Ie);return Ge.reduce(function(fi,Wt){return fi.concat(ni.filter(function(ge){return ge.phase===Wt}))},[])}(function(Ie){var ni=Ie.reduce(function(fi,Wt){var ge=fi[Wt.name];return fi[Wt.name]=ge?Object.assign({},ge,Wt,{options:Object.assign({},ge.options,Wt.options),data:Object.assign({},ge.data,Wt.data)}):Wt,fi},{});return Object.keys(ni).map(function(fi){return ni[fi]})}([].concat(lt,ae.options.modifiers)));return ae.orderedModifiers=qe.filter(function(Ie){return Ie.enabled}),ae.orderedModifiers.forEach(function(Ie){var ni=Ie.name,fi=Ie.options,Wt=fi===void 0?{}:fi,ge=Ie.effect;if(typeof ge=="function"){var _e=ge({state:ae,name:ni,instance:ze,options:Wt});Oe.push(_e||function(){})}}),ze.update()},forceUpdate:function(){if(!Se){var $e=ae.elements,Xe=$e.reference,qe=$e.popper;if(Pi(Xe,qe)){ae.rects={reference:Gn(Xe,Zn(qe),ae.options.strategy==="fixed"),popper:un(qe)},ae.reset=!1,ae.placement=ae.options.placement,ae.orderedModifiers.forEach(function(pi){return ae.modifiersData[pi.name]=Object.assign({},pi.data)});for(var Ie=0;Ie<ae.orderedModifiers.length;Ie++)if(ae.reset!==!0){var ni=ae.orderedModifiers[Ie],fi=ni.fn,Wt=ni.options,ge=Wt===void 0?{}:Wt,_e=ni.name;typeof fi=="function"&&(ae=fi({state:ae,options:ge,name:_e,instance:ze})||ae)}else ae.reset=!1,Ie=-1}}},update:(zt=function(){return new Promise(function($e){ze.forceUpdate(),$e(ae)})},function(){return Jt||(Jt=new Promise(function($e){Promise.resolve().then(function(){Jt=void 0,$e(zt())})})),Jt}),destroy:function(){de(),Se=!0}};if(!Pi(It,Nt))return ze;function de(){Oe.forEach(function($e){return $e()}),Oe=[]}return ze.setOptions(Ut).then(function($e){!Se&&Ut.onFirstUpdate&&Ut.onFirstUpdate($e)}),ze}}var ci={passive:!0};function tn(K){return K.split("-")[0]}function Ui(K){return K.split("-")[1]}function cn(K){return["top","bottom"].indexOf(K)>=0?"x":"y"}function $i(K){var O,W=K.reference,lt=K.element,pt=K.placement,wt=pt?tn(pt):null,It=pt?Ui(pt):null,Nt=W.x+W.width/2-lt.width/2,Ut=W.y+W.height/2-lt.height/2;switch(wt){case Ln:O={x:Nt,y:W.y-lt.height};break;case Tn:O={x:Nt,y:W.y+W.height};break;case Rt:O={x:W.x+W.width,y:Ut};break;case Ft:O={x:W.x-lt.width,y:Ut};break;default:O={x:W.x,y:W.y}}var zt=wt?cn(wt):null;if(zt!=null){var Jt=zt==="y"?"height":"width";switch(It){case"start":O[zt]=O[zt]-(W[Jt]/2-lt[Jt]/2);break;case"end":O[zt]=O[zt]+(W[Jt]/2-lt[Jt]/2)}}return O}var Hi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xi(K){var O,W=K.popper,lt=K.popperRect,pt=K.placement,wt=K.variation,It=K.offsets,Nt=K.position,Ut=K.gpuAcceleration,zt=K.adaptive,Jt=K.roundOffsets,ae=K.isFixed,Oe=It.x,Se=Oe===void 0?0:Oe,ze=It.y,de=ze===void 0?0:ze,$e=typeof Jt=="function"?Jt({x:Se,y:de}):{x:Se,y:de};Se=$e.x,de=$e.y;var Xe=It.hasOwnProperty("x"),qe=It.hasOwnProperty("y"),Ie=Ft,ni=Ln,fi=window;
75if(zt){var Wt=Zn(W),ge="clientHeight",_e="clientWidth";Wt===qn(W)&&Mn(Wt=Hn(W)).position!=="static"&&Nt==="absolute"&&(ge="scrollHeight",_e="scrollWidth"),Wt=Wt,(pt===Ln||(pt===Ft||pt===Rt)&&wt==="end")&&(ni=Tn,de-=(ae&&Wt===fi&&fi.visualViewport?fi.visualViewport.height:Wt[ge])-lt.height,de*=Ut?1:-1),(pt===Ft||(pt===Ln||pt===Tn)&&wt==="end")&&(Ie=Rt,Se-=(ae&&Wt===fi&&fi.visualViewport?fi.visualViewport.width:Wt[_e])-lt.width,Se*=Ut?1:-1)}var pi,yi=Object.assign({position:Nt},zt&&Hi),Bi=Jt===!0?function(Wi){var yn=Wi.x,zn=Wi.y,Pn=window.devicePixelRatio||1;return{x:wi(yn*Pn)/Pn||0,y:wi(zn*Pn)/Pn||0}}({x:Se,y:de}):{x:Se,y:de};return Se=Bi.x,de=Bi.y,Ut?Object.assign({},yi,((pi={})[ni]=qe?"0":"",pi[Ie]=Xe?"0":"",pi.transform=(fi.devicePixelRatio||1)<=1?"translate("+Se+"px, "+de+"px)":"translate3d("+Se+"px, "+de+"px, 0)",pi)):Object.assign({},yi,((O={})[ni]=qe?de+"px":"",O[Ie]=Xe?Se+"px":"",O.transform="",O))}var vi={left:"right",right:"left",bottom:"top",top:"bottom"};function Qi(K){return K.replace(/left|right|bottom|top/g,function(O){return vi[O]})}var dt={start:"end",end:"start"};function X(K){return K.replace(/start|end/g,function(O){return dt[O]})}function _t(K,O){var W=O.getRootNode&&O.getRootNode();if(K.contains(O))return!0;if(W&&Ti(W)){var lt=O;do{if(lt&&K.isSameNode(lt))return!0;lt=lt.parentNode||lt.host}while(lt)}return!1}function jt(K){return Object.assign({},K,{left:K.x,top:K.y,right:K.x+K.width,bottom:K.y+K.height})}function Pe(K,O){return O==="viewport"?jt(function(W){var lt=qn(W),pt=Hn(W),wt=lt.visualVie
75wport,It=pt.clientWidth,Nt=pt.clientHeight,Ut=0,zt=0;return wt&&(It=wt.width,Nt=wt.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(Ut=wt.offsetLeft,zt=wt.offsetTop)),{width:It,height:Nt,x:Ut+nr(W),y:zt}}(K)):nn(O)?function(W){var lt=Wn(W);return lt.top=lt.top+W.clientTop,lt.left=lt.left+W.clientLeft,lt.bottom=lt.top+W.clientHeight,lt.right=lt.left+W.clientWidth,lt.width=W.clientWidth,lt.height=W.clientHeight,lt.x=lt.left,lt.y=lt.top,lt}(O):jt(function(W){var lt,pt=Hn(W),wt=fr(W),It=(lt=W.ownerDocument)==null?void 0:lt.body,Nt=sn(pt.scrollWidth,pt.clientWidth,It?It.scrollWidth:0,It?It.clientWidth:0),Ut=sn(pt.scrollHeight,pt.clientHeight,It?It.scrollHeight:0,It?It.clientHeight:0),zt=-wt.scrollLeft+nr(W),Jt=-wt.scrollTop;return Mn(It||pt).direction==="rtl"&&(zt+=sn(pt.clientWidth,It?It.clientWidth:0)-Nt),{width:Nt,height:Ut,x:zt,y:Jt}}(Hn(K)))}function Ce(K,O,W){var lt=O==="clippingParents"?function(Nt){var Ut=cr(pr(Nt)),zt=["absolute","fixed"].indexOf(Mn(Nt).position)>=0&&En(Nt)?Zn(Nt):Nt;return nn(zt)?Ut.filter(function(Jt){return nn(Jt)&&_t(Jt,zt)&&ar(Jt)!=="body"}):[]}(K):[].concat(O),pt=[].concat(lt,[W]),wt=pt[0],It=pt.reduce(function(Nt,Ut){var zt=Pe(K,Ut);return Nt.top=sn(zt.top,Nt.top),Nt.right=Cr(zt.right,Nt.right),Nt.bottom=Cr(zt.bottom,Nt.bottom),Nt.left=sn(zt.left,Nt.left),Nt},Pe(K,wt));return It.width=It.right-It.left,It.height=It.bottom-It.top,It.x=It.left,It.y=It.top,It}function si(K){return Object.assign({},{top:0,right:0,bottom:0,left:0},K)}function ai(K,O){return O.reduce(function(W,lt){return W[lt]=K,W},{})}function Ai(K,O){O===void 0&&(O={});var W=O,lt=W.placement,pt=lt===void 0?K.placement:lt,wt=W.boundary,It=wt===void 0?"clippingParents":wt,Nt=W.rootBoundary,Ut=Nt===void 0?"viewport":Nt,zt=W.elementContext,Jt=zt===void 0?"popper":zt,ae=W.altBoundary,Oe=ae!==void 0&&ae,Se=W.padding,ze=Se===void 0?0:Se,de=si(typeof ze!="number"?ze:ai(ze,Zt)),$e=Jt==="popper"?"reference":"popper",Xe=K.rects.popper,qe=K.elements[Oe?$e:Jt],Ie=Ce(nn(qe)?qe:qe.contextElement||Hn(K.elements.popper),It,Ut),ni=Wn(K.elements.reference),fi=$i({reference:ni,element:Xe,strategy:"absolute",placement:pt}),Wt=jt(Object.assign({},Xe,fi)),ge=Jt==="popper"?Wt:ni,_e={top:Ie.top-ge.top+de.top,bottom:ge.bottom-Ie.bottom+de.bottom,left:Ie.left-ge.left+de.left,right:ge.right-Ie.right+de.right},pi=K.modifiersData.offset;if(Jt==="popper"&&pi){var yi=pi[pt];Object.keys(_e).forEach(function(Bi){var Wi=[Rt,Tn].indexOf(Bi)>=0?1:-1,yn=[Ln,Tn].indexOf(Bi)>=0?"y":"x";_e[Bi]+=yi[yn]*Wi})}return _e}function li(K,O,W){return sn(K,Cr(O,W))}function ui(K,O,W){return W===void 0&&(W={x:0,y:0}),{top:K.top-O.height-W.y,right:K.right-O.width+W.x,bottom:K.bottom-O.height+W.y,left:K.left-O.width-W.x}}function Zi(K){return[Ln,Rt,Tn,Ft].some(function(O){return K[O]>=0})}var kn=Oi({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(K){var O=K.state,W=K.instance,lt=K.options,pt=lt.scroll,wt=pt===void 0||pt,It=lt.resize,Nt=It===void 0||It,Ut=qn(O.elements.popper),zt=[].concat(O.scrollParents.reference,O.scrollParents.popper);return wt&&zt.forEach(function(Jt){Jt.addEventListener("scroll",W.update,ci)}),Nt&&Ut.addEventListener("resize",W.update,ci),function(){wt&&zt.forEach(function(Jt){Jt.removeEventListener("scroll",W.update,ci)}),Nt&&Ut.removeEventListener("resize",W.update,ci)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(K){var O=K.state,W=K.name;O.modifiersData[W]=$i({reference:O.rects.reference,element:O.rects.popper,strategy:"absolute",placement:O.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(K){var O=K.state,W=K.options,lt=W.gpuAcceleration,pt=lt===void 0||lt,wt=W.adaptive,It=wt===void 0||wt,Nt=W.roundOffsets,Ut=Nt===void 0||Nt,zt={placement:tn(O.placement),variation:Ui(O.placement),popper:O.elements.popper,popperRect:O.rects.popper,gpuAcceleration:pt,isFixed:O.options.strategy==="fixed"};O.modifiersData.popperOffsets!=null&&(O.styles.popper=Object.assign({},O.styles.popper,xi(Object.assign({},zt,{offsets:O.modifiersData.popperOffsets,position:O.options.strategy,adaptive:It,roundOffsets:Ut})))),O.modifiersData.arrow!=null&&(O.styles.arrow=Object.assign({},O.styles.arrow,xi(Object.assign({},zt,{offsets:O.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:Ut})))),O.attributes.popper=Object.assign({},O.attributes.popper,{"data-popper-placement":O.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(K){var O=K.state;
75Object.keys(O.elements).forEach(function(W){var lt=O.styles[W]||{},pt=O.attributes[W]||{},wt=O.elements[W];En(wt)&&ar(wt)&&(Object.assign(wt.style,lt),Object.keys(pt).forEach(function(It){var Nt=pt[It];Nt===!1?wt.removeAttribute(It):wt.setAttribute(It,Nt===!0?"":Nt)}))})},effect:function(K){var O=K.state,W={popper:{position:O.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(O.elements.popper.style,W.popper),O.styles=W,O.elements.arrow&&Object.assign(O.elements.arrow.style,W.arrow),function(){Object.keys(O.elements).forEach(function(lt){var pt=O.elements[lt],wt=O.attributes[lt]||{},It=Object.keys(O.styles.hasOwnProperty(lt)?O.styles[lt]:W[lt]).reduce(function(Nt,Ut){return Nt[Ut]="",Nt},{});En(pt)&&ar(pt)&&(Object.assign(pt.style,It),Object.keys(wt).forEach(function(Nt){pt.removeAttribute(Nt)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(K){var O=K.state,W=K.options,lt=K.name,pt=W.offset,wt=pt===void 0?[0,0]:pt,It=oi.reduce(function(Jt,ae){return Jt[ae]=function(Oe,Se,ze){var de=tn(Oe),$e=[Ft,Ln].indexOf(de)>=0?-1:1,Xe=typeof ze=="function"?ze(Object.assign({},Se,{placement:Oe})):ze,qe=Xe[0],Ie=Xe[1];return qe=qe||0,Ie=(Ie||0)*$e,[Ft,Rt].indexOf(de)>=0?{x:Ie,y:qe}:{x:qe,y:Ie}}(ae,O.rects,wt),Jt},{}),Nt=It[O.placement],Ut=Nt.x,zt=Nt.y;O.modifiersData.popperOffsets!=null&&(O.modifiersData.popperOffsets.x+=Ut,O.modifiersData.popperOffsets.y+=zt),O.modifiersData[lt]=It}},{name:"flip",enabled:!0,phase:"main",fn:function(K){var O=K.state,W=K.options,lt=K.name;if(!O.modifiersData[lt]._skip){for(var pt=W.mainAxis,wt=pt===void 0||pt,It=W.altAxis,Nt=It===void 0||It,Ut=W.fallbackPlacements,zt=W.padding,Jt=W.boundary,ae=W.rootBoundary,Oe=W.altBoundary,Se=W.flipVariations,ze=Se===void 0||Se,de=W.allowedAutoPlacements,$e=O.options.placement,Xe=tn($e),qe=Ut||(Xe===$e||!ze?[Qi($e)]:function(_){if(tn(_)==="auto")return[];var n=Qi(_);return[X(_),n,X(n)]}($e)),Ie=[$e].concat(qe).reduce(function(_,n){return _.concat(tn(n)==="auto"?function(y,b){b===void 0&&(b={});var k=b,L=k.placement,D=k.boundary,H=k.rootBoundary,Q=k.padding,N=k.flipVariations,Y=k.allowedAutoPlacements,j=Y===void 0?oi:Y,V=Ui(L),it=V?N?Le:Le.filter(function(Lt){return Ui(Lt)===V}):Zt,yt=it.filter(function(Lt){return j.indexOf(Lt)>=0});yt.length===0&&(yt=it);var vt=yt.reduce(function(Lt,Tt){return Lt[Tt]=Ai(y,{placement:Tt,boundary:D,rootBoundary:H,padding:Q})[tn(Tt)],Lt},{});return Object.keys(vt).sort(function(Lt,Tt){return vt[Lt]-vt[Tt]})}(O,{placement:n,boundary:Jt,rootBoundary:ae,padding:zt,flipVariations:ze,allowedAutoPlacements:de}):n)},[]),ni=O.rects.reference,fi=O.rects.popper,Wt=new Map,ge=!0,_e=Ie[0],pi=0;pi<Ie.length;pi++){var yi=Ie[pi],Bi=tn(yi),Wi=Ui(yi)==="start",yn=[Ln,Tn].indexOf(Bi)>=0,zn=yn?"width":"height",Pn=Ai(O,{placement:yi,boundary:Jt,rootBoundary:ae,altBoundary:Oe,padding:zt}),on=yn?Wi?Rt:Ft:Wi?Tn:Ln;ni[zn]>fi[zn]&&(on=Qi(on));var Xn=Qi(on),m=[];
75if(wt&&m.push(Pn[Bi]<=0),Nt&&m.push(Pn[on]<=0,Pn[Xn]<=0),m.every(function(_){return _})){_e=yi,ge=!1;break}Wt.set(yi,m)}if(ge)for(var E=function(_){var n=Ie.find(function(y){var b=Wt.get(y);if(b)return b.slice(0,_).every(function(k){return k})});if(n)return _e=n,"break"},P=ze?3:1;P>0&&E(P)!=="break";P--);O.placement!==_e&&(O.modifiersData[lt]._skip=!0,O.placement=_e,O.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(K){var O=K.state,W=K.options,lt=K.name,pt=W.mainAxis,wt=pt===void 0||pt,It=W.altAxis,Nt=It!==void 0&&It,Ut=W.boundary,zt=W.rootBoundary,Jt=W.altBoundary,ae=W.padding,Oe=W.tether,Se=Oe===void 0||Oe,ze=W.tetherOffset,de=ze===void 0?0:ze,$e=Ai(O,{boundary:Ut,rootBoundary:zt,padding:ae,altBoundary:Jt}),Xe=tn(O.placement),qe=Ui(O.placement),Ie=!qe,ni=cn(Xe),fi=ni==="x"?"y":"x",Wt=O.modifiersData.popperOffsets,ge=O.rects.reference,_e=O.rects.popper,pi=typeof de=="function"?de(Object.assign({},O.rects,{placement:O.placement})):de,yi=typeof pi=="number"?{mainAxis:pi,altAxis:pi}:Object.assign({mainAxis:0,altAxis:0},pi),Bi=O.modifiersData.offset?O.modifiersData.offset[O.placement]:null,Wi={x:0,y:0};if(Wt){if(wt){var yn,zn=ni==="y"?Ln:Ft,Pn=ni==="y"?Tn:Rt,on=ni==="y"?"height":"width",Xn=Wt[ni],m=Xn+$e[zn],E=Xn-$e[Pn],P=Se?-_e[on]/2:0,_=qe==="start"?ge[on]:_e[on],n=qe==="start"?-_e[on]:-ge[on],y=O.elements.arrow,b=Se&&y?un(y):{width:0,height:0},k=O.modifiersData["arrow#persistent"]?O.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},L=k[zn],D=k[Pn],H=li(0,ge[on],b[on]),Q=Ie?ge[on]/2-P-H-L-yi.mainAxis:_-H-L-yi.mainAxis,N=Ie?-ge[on]/2+P+H+D+yi.mainAxis:n+H+D+yi.mainAxis,Y=O.elements.arrow&&Zn(O.elements.arrow),j=Y?ni==="y"?Y.clientTop||0:Y.clientLeft||0:0,V=(yn=Bi==null?void 0:Bi[ni])!=null?yn:0,it=Xn+N-V,yt=li(Se?Cr(m,Xn+Q-V-j):m,Xn,Se?sn(E,it):E);Wt[ni]=yt,Wi[ni]=yt-Xn}if(Nt){var vt,Lt=ni==="x"?Ln:Ft,Tt=ni==="x"?Tn:Rt,Dt=Wt[fi],Xt=fi==="y"?"height":"width",Ht=Dt+$e[Lt],ie=Dt-$e[Tt],we=[Ln,Ft].indexOf(Xe)!==-1,Ue=(vt=Bi==null?void 0:Bi[fi])!=null?vt:0,Ne=we?Ht:Dt-ge[Xt]-_e[Xt]-Ue+yi.altAxis,ne=we?Dt+ge[Xt]+_e[Xt]-Ue-yi.altAxis:ie,Kt=Se&&we?function(ce,le,Ae){var Ze=li(ce,le,Ae);return Ze>Ae?Ae:Ze}(Ne,Dt,ne):li(Se?Ne:Ht,Dt,Se?ne:ie);Wt[fi]=Kt,Wi[fi]=Kt-Dt}O.modifiersData[lt]=Wi}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(K){var O,W=K.state,lt=K.name,pt=K.options,wt=W.elements.arrow,It=W.modifiersData.popperOffsets,Nt=tn(W.placement),Ut=cn(Nt),zt=[Ft,Rt].indexOf(Nt)>=0?"height":"width";if(wt&&It){var Jt=function(_e,pi){return si(typeof(_e=typeof _e=="function"?_e(Object.assign({},pi.rects,{placement:pi.placement})):_e)!="number"?_e:ai(_e,Zt))}(pt.padding,W),ae=un(wt),Oe=Ut==="y"?Ln:Ft,Se=Ut==="y"?Tn:Rt,ze=W.rects.reference[zt]+W.rects.reference[Ut]-It[Ut]-W.rects.popper[zt],de=It[Ut]-W.rects.reference[Ut],$e=Zn(wt),Xe=$e?Ut==="y"?$e.clientHeight||0:$e.clientWidth||0:0,qe=ze/2-de/2,Ie=Jt[Oe],ni=Xe-ae[zt]-Jt[Se],fi=Xe/2-ae[zt]/2+qe,Wt=li(Ie,fi,ni),ge=Ut;W.modifiersData[lt]=((O={})[ge]=Wt,O.centerOffset=Wt-fi,O)}},effect:function(K){var O=K.state,W=K.options.element,lt=W===void 0?"[data-popper-arrow]":W;lt!=null&&(typeof lt!="string"||(lt=O.elements.popper.querySelector(lt)))&&_t(O.elements.popper,lt)&&(O.elements.arrow=lt)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(K){var O=K.state,W=K.name,lt=O.rects.reference,pt=O.rects.popper,wt=O.modifiersData.preventOverflow,It=Ai(O,{elementContext:"reference"}),Nt=Ai(O,{altBoundary:!0}),Ut=ui(It,lt),zt=ui(Nt,pt,wt),Jt=Zi(Ut),ae=Zi(zt);O.modifiersData[W]={referenceClippingOffsets:Ut,popperEscapeOffsets:zt,isReferenceHidden:Jt,hasPopperEscaped:ae},O.attributes.popper=Object.assign({},O.attributes.popper,{"data-popper-reference-hidden":Jt,"data-popper-escaped":ae})}}]}),ur=function(K,O){O||(K.removeAttribute("data-show"),K.removeAttribute("data-cloudimage-360-show"))},Sr=e(54),Rn=e.n(Sr),rr=function(K,O,W){var lt=document.createElement("div"),pt=document.createElement("div");
75return lt.className="cloudimage-360-images-carousel",lt.style.maxWidth="".concat(W.offsetWidth,"px"),pt.className="cloudimage-360-carousel-dots",K.forEach(function(wt,It){var Nt=function(zt,Jt){var ae=document.createElement("img");return ae.className="cloudimage-360-carousel-image",ae.setAttribute("src",zt.src||""),ae.setAttribute("alt",zt.alt||"more-info"),Jt||(ae.setAttribute("data-active-image",""),ae.className+=" active-image"),ae}(wt,It),Ut=function(zt,Jt,ae){var Oe=document.createElement("button");return Oe.className="cloudimage-360-carousel-dot",Oe.onclick=function(){return function(Se,ze,de){var $e=de.querySelector("[data-active-dot]"),Xe=de.querySelector("[data-active-image]");$e.classList.remove("active-dot"),$e.removeAttribute("data-active-dot"),Xe.classList.remove("active-image"),Xe.removeAttribute("data-active-image"),Se.className+=" active-image",Se.setAttribute("data-active-image",""),ze.className+=" active-dot",ze.setAttribute("data-active-dot","")}(zt,Oe,ae)},Jt||(Oe.className+=" active-dot",Oe.setAttribute("data-active-dot","")),Oe}(Nt,It,O);pt.appendChild(Ut),lt.appendChild(Nt)}),[lt,pt]},bt=function(K,O,W){var lt=K.images,pt=K.title,wt=K.description,It=K.moreDetailsUrl,Nt=K.moreDetailsTitle,Ut=Nt===void 0?"Read more":Nt,zt=document.createElement("div");if(zt.className="cloudimage-360-modal-wrapper",lt){var Jt=document.createElement("div"),ae=rr(lt,W,O),Oe=Rn()(ae,2),Se=Oe[0],ze=Oe[1];Jt.appendChild(Se),lt.length>1&&Jt.appendChild(ze),zt.appendChild(Jt),Jt.className="cloudimage-360-images-carousel-wrapper"}if(pt){var de=function(qe){var Ie=document.createElement("h4");return Ie.innerText=qe,Ie.className="cloudimage-360-modal-title",Ie}(pt);zt.appendChild(de)}if(wt){var $e=function(qe){var Ie=document.createElement("p");return Ie.innerText=qe,Ie.className="cloudimage-360-modal-description",Ie}(wt);zt.appendChild($e)}if(It){var Xe=function(qe,Ie){var ni=document.createElement("a");return ni.href=qe,ni.innerText=Ie,ni.className="cloudimage-360-modal-more-details",ni.target="_blank",ni}(It,Ut);zt.appendChild(Xe)}W.appendChild(zt)},gt=function(K,O,W){var lt,pt=O.variant,wt=W.popupSelector,It=W.arrow,Nt=pt.url,Ut=pt.images,zt=pt.title,Jt=pt.anchorId,ae=pt.description,Oe=pt.moreDetailsUrl,Se=document.createElement("div");if(Se.className="cloudimage-360-hotspot-popup ".concat(wt),Se.setAttribute("data-hotspot-popup-id",Jt),Se.setAttribute("data-cloudimage-360-hotspot",""),Se.style.minHeight=16,Se.style.minWidth=16,Se.style.cursor="default",Se.onclick=function(qe){return qe.stopPropagation()},pn()(pt)==="object"&&Ut||ae||Oe||zt&&!Nt)bt(pt,K,Se);else if(Nt){var ze=function(qe){var Ie=qe.url,ni=qe.title,fi=qe.newTab,Wt=document.createElement("a");return Wt.href=Ie,Wt.innerText=ni,fi&&(Wt.target="_blank"),Wt}(pt);Se.appendChild(ze)}else if(typeof pt=="string")try{var de=(lt=pt,document.querySelector("[".concat("data-cloudimage-360-hotspots","=").concat(lt,"]"))),$e=de.cloneNode(!0);Se.appendChild($e),de.parentNode.removeChild(de)}catch{console.error("Cloudimage-360: Element with anchorId '".concat(Jt,"' not exist in the DOM"))}if(It){var Xe=function(){var qe=document.createElement("div");return qe.setAttribute("data-popper-arrow",""),qe.setAttribute("data-cloudimage-360-hotspot",""),qe.className="cloudimage-360-popup-arrow",qe}();Se.appendChild(Xe)}return K.appendChild(Se),Se},Mt=function(K,O){O.forEach(function(W){var lt=W.popupProps,pt=gt(K,W,lt),wt=function(Nt,Ut,zt){var Jt=Ut.placement,ae=Ut.offset,Oe=document.createElement("div"),Se=kn(Oe,Nt);return Se.setOptions({placement:Jt,modifiers:[{name:"offset",options:{offset:ae}},{name:"preventOverflow",options:{boundary:zt}}]}),Se}(pt,lt,K),It=function(Nt,Ut,zt,Jt){var ae,Oe=Ut.indicatorSelector,Se=Ut.variant,ze=Se.url,de=Se.anchorId,$e=Ut.popupProps.open,Xe=$e!==void 0&&$e,qe=document.createElement("div");return qe.style.position="absolute",qe.className="cloudimage-360-hotspot-".concat(ze?"link":"custom","-icon ").concat(Oe),qe.setAttribute("data-hotspot-icon-id",de),qe.setAttribute("data-cloudimage-360-hotspot",""),qe.onclick=function(Ie){return Ie.stopPropagation()},["mouseenter","touchstart","focus"].forEach(function(Ie){qe.addEventListener(Ie,function(){return function(ni,fi){ni.setAttribute("data-show",""),ni.setAttribute("data-cloudimage-360-show",""),fi.update()}(zt,Jt)})}),Xe||["mouseleave","blur"].forEach(function(Ie){qe.addEventListener(Ie,function(){return setTimeout(function(){return ur(zt,ae)},160)})}),zt.addEventListener("mouseenter",function(){ae=!0}),zt.addEventListener("mouseleave",function(){ae=!1,!Xe&&ur(zt,ae)}),vr(qe),Nt.appendChild(qe),qe}(K,W,pt,wt);
75wt.state.elements.reference=It,wt.update()})};function ee(K,O){var W=Object.keys(K);if(Object.getOwnPropertySymbols){var lt=Object.getOwnPropertySymbols(K);O&&(lt=lt.filter(function(pt){return Object.getOwnPropertyDescriptor(K,pt).enumerable})),W.push.apply(W,lt)}return W}function te(K){for(var O=1;O<arguments.length;O++){var W=arguments[O]!=null?arguments[O]:{};O%2?ee(Object(W),!0).forEach(function(lt){u()(K,lt,W[lt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(K,Object.getOwnPropertyDescriptors(W)):ee(Object(W)).forEach(function(lt){Object.defineProperty(K,lt,Object.getOwnPropertyDescriptor(W,lt))})}return K}var Fe=function(K){return K.map(function(O){var W=O.variant,lt=W===void 0?{}:W,pt=O.positions,wt=pt===void 0?[]:pt,It=O.indicatorSelector,Nt=It===void 0?"":It,Ut=O.popupProps,zt=Ut===void 0?{}:Ut,Jt=O.orientation,ae=Jt===void 0?"x":Jt,Oe=O.initialDimensions,Se=Oe===void 0?[500,500]:Oe;(function(Xe){var qe=Xe.variant,Ie=qe===void 0?{}:qe,ni=Ie.url,fi=Ie.title,Wt=Ie.anchorId,ge=Ie.images,_e=Ie.description,pi=Ie.moreDetailsUrl;ni&&!fi&&console.error("Cloudimage-360: Hotspot config with variant link must have title for the link"),fi||ni||Wt||ge||_e||pi||console.error("Cloudimage-360: Hotspot config with custom variant must provide anchorId")})(O);var ze=function(Xe){var qe=Xe.popupSelector,Ie=qe===void 0?"":qe,ni=Xe.arrow,fi=ni===void 0||ni,Wt=Xe.offset,ge=Wt===void 0?[0,10]:Wt,_e=Xe.placement,pi=_e===void 0?"auto":_e,yi=Xe.open;return{popupSelector:Ie,arrow:fi,offset:ge,placement:pi,open:yi!==void 0&&yi}}(zt),de=lt==null?void 0:lt.anchorId;if(!de){var $e=Math.floor(1e4*Math.random());de="cloudimage-360-".concat($e)}return{variant:te(te({},lt),{},{anchorId:de}),popupProps:ze,positions:wt,indicatorSelector:Nt,initialDimensions:Se,orientation:ae.toLowerCase()}})},ei=function(){return!!document.querySelectorAll("[data-cloudimage-360-show]").length},Me=function(K,O,W){O&&at(O.target,"data-cloudimage-360-hotspot")||K.forEach(function(lt){var pt=lt.variant.anchorId;$n(pt).style.pointerEvents=W?"none":"all"})};function je(K,O){var W=Object.keys(K);if(Object.getOwnPropertySymbols){var lt=Object.getOwnPropertySymbols(K);O&&(lt=lt.filter(function(pt){return Object.getOwnPropertyDescriptor(K,pt).enumerable})),W.push.apply(W,lt)}return W}function Ci(K){for(var O=1;O<arguments.length;O++){var W=arguments[O]!=null?arguments[O]:{};O%2?je(Object(W),!0).forEach(function(lt){u()(K,lt,W[lt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(K,Object.getOwnPropertyDescriptors(W)):je(Object(W)).forEach(function(lt){Object.defineProperty(K,lt,Object.getOwnPropertyDescriptor(W,lt))})}return K}var Re=function(){function K(O,W,lt){S()(this,K),this.container=O,this.movementStart={x:0,y:0},this.isStartSpin=!1,this.movingDirection=Et,this.isClicked=!1,this.loadedImagesX=0,this.loadedImagesY=0,this.imagesLoaded=!1,this.reversed=!1,this.fullscreenView=!!W,this.imagesX=[],this.imagesY=[],this.originalImagesX=[],this.originalImagesY=[],this.resizedImagesX=[],this.resizedImagesY=[],this.devicePixelRatio=Math.round(window.devicePixelRatio||1),this.isMobile=!(!("ontouchstart"in window)&&!navigator.msMaxTouchPoints),this.id=O.id,this.hotspotsConfigs=lt&&Fe(lt),this.isMagnifyOpen=!1,this.isDragged=!1,this.startPointerZoom=!1,this.zoomIntensity=0,this.mouseTracked=!1,this.intialPositions={x:0,y:0},this.pointerCurrentPosition={x:0,y:0},this.isStartedLoadOriginalImages=!1,this.init(O)}return Z()(K,[{key:"isReady",value:function(){var O=this.imagesX.filter(function(pt){return pt}),W=this.imagesY.filter(function(pt){return pt}),lt=this.amountX+this.amountY;return O.length+W.length===lt}},{key:"mouseDown",value:function(O){if(this.imagesLoaded){var W=ei(),lt=O.pageX,pt=O.pageY;this.hideInitialIcons(),(this.autoplay||this.loopTimeoutId)&&(this.stop(),this.autoplay=!1,this.isZoomReady=!0),this.intialPositions={x:lt,y:pt},this.movementStart={x:lt,y:pt},this.isClicked=!0,this.isDragged=!1,this.hotspotsConfigs&&Me(this.hotspotsConfigs,O,!0),W&&(this.isClicked=!1),this.hotspotsConfigs&&Pr(this.container,this.hotspotsConfigs,this.activeImageX,this.activeImageY,this.movingDirection)}}},{key:"mouseUp",value:function(){var O=this;this.imagesLoaded&&this.isClicked&&(this.movementStart={x:0,y:0},this.isStartSpin=!1,this.isClicked=!1,this.bottomCircle&&!this.mouseTracked&&this.show360ViewCircleIcon(),this.hotspotsConfigs&&Me(this.hotspotsConfigs),this.pointerZoom&&!this.fullscreenView?(setTimeout(function(){O.isZoomReady=!0},50),this.mouseTracked?this.container.style.cursor="zoom-out":this.container.style.cursor="zoom-in"):this.container.style.cursor="grab")}},{key:"mouseClick",value:function(O){this.pointerZoom&&!this.fullscreenView&&(this.setCursorPosition(O),this.hideInitialIcons(),this.isStartedLoadOriginalImages||this.isDragged||!this.isZoomReady||this.prepareOriginalImages(O),this.isAllOriginalImagesLoaded&&!this.isDragged&&this.isZoomReady&&this.togglePointerZoom(O))}},{key:"mouseMove",value:function(O){if(this.imagesLoaded){var W=O.pageX,lt=O.pageY;if(this.mouseTracked&&(this.setCursorPosition(O),this.isClicked||this.update()),this.isClicked){var pt={x:W,y:lt};this.container.style.cursor="grabbing",this.isDragged=!0,this.movingDirection=Lr(this.isStartSpin,this.allowSpinY,this.intialPositions,pt,this.movingDirection),this.onMoveHandler(O)}}}},{key:"mouseLeave",value:function(){this.imagesLoaded&&(this.pointerZoom&&this.mouseTracked&&this.togglePointerZoom(),this.isMagnifyOpen&&this.closeMagnifier())}},{key:"togglePointerZoom",value:function(){var O,W=this;if((this.autoplay||this.loopTimeoutId)&&(this.stop(),this.autoplay=!1),this.mouseTracked){var lt=(O=this.pointerZoom,Array.from(Array(20)).reduce(function(wt,It,Nt){var Ut=+((Nt-1<0?O:wt[Nt-1])-(O-1)/20).toFixed(2);return(wt||[]).push(Ut),wt},[]));this.container.style.cursor="zoom-in",lt.forEach(function(wt,It){setTimeout(function(){W.zoomIntensity=wt,W.update(
75),It===lt.length-1&&(W.mouseTracked=!1,W.update())},200*(W.pointerZoom-wt))})}else{this.bottomCircle&&this.hide360ViewCircleIcon();var pt=function(wt){return Array.from(Array(20)).reduce(function(It,Nt,Ut){var zt=+((Ut-1<0?1:It[Ut-1])+(wt-1)/20).toFixed(2);return(It||[]).push(zt),It},[])}(this.pointerZoom);this.hotspotsConfigs&&(document.querySelectorAll("[data-hotspot-icon-id]")||[]).forEach(function(wt){vr(wt)}),pt.forEach(function(wt){setTimeout(function(){W.zoomIntensity=wt,W.update()},200*wt)}),this.mouseTracked=!0,this.container.style.cursor="zoom-out"}}},{key:"onOriginalImageLoad",value:function(O,W,lt,pt){O===xt?this.originalImagesY[pt]=lt:this.originalImagesX[pt]=lt;var wt=this.originalImagesX.filter(function(ae){return ae}),It=this.originalImagesY.filter(function(ae){return ae}),Nt=this.amountX+this.amountY,Ut=wt.length+It.length,zt=wt.length+It.length===this.amountX+this.amountY,Jt=Math.round(Ut/Nt*100);this.updatePercentageInLoader(Jt),zt&&(this.removeLoader(),this.togglePointerZoom(W),this.mouseTracked=!0,this.isAllOriginalImagesLoaded=!0)}},{key:"prepareOriginalImages",value:function(O){var W=Ot(this.srcXConfig);if(this.isStartedLoadOriginalImages=!0,this.loader=Fn(this.innerBox),this.container.style.cursor="wait",ii(this.srcXConfig,W,this.onOriginalImageLoad.bind(this,ht,O)),this.allowSpinY){var lt=Ot(this.srcYConfig);ii(this.srcYConfig,lt,this.onOriginalImageLoad.bind(this,xt,O))}}},{key:"touchStart",value:function(O){if(this.imagesLoaded){var W=ei();this.hideInitialIcons(),(this.autoplay||this.loopTimeoutId)&&(this.stop(),this.autoplay=!1),this.intialPositions={x:O.touches[0].clientX,y:O.touches[0].clientY},this.movementStart={x:O.touches[0].clientX,y:O.touches[0].clientY},this.isClicked=!0,W&&(this.isClicked=!1)}}},{key:"touchEnd",value:function(){this.imagesLoaded&&(this.bottomCircle&&this.show360ViewCircleIcon(),this.movementStart={x:0,y:0},this.isStartSpin=!1,this.isClicked=!1)}},{key:"touchMove",value:function(O){if(this.isClicked&&this.imagesLoaded){O.cancelable&&O.preventDefault();var W={x:O.touches[0].clientX,y:O.touches[0].clientY};this.movingDirection=Lr(this.isStartSpin,this.allowSpinY,this.intialPositions,W,this.movingDirection),this.onMoveHandler(O)}}},{key:"keyDownGeneral",value:function(O){this.imagesLoaded&&(this.glass&&this.closeMagnifier(),O.keyCode===27&&this.mouseTracked&&this.togglePointerZoom())}},{key:"hideInitialIcons",value:function(){this.glass&&this.closeMagnifier(),this.view360Icon&&this.remove360ViewIcon()}},{key:"setCursorPosition",value:function(O){this.mousePositions={x:O.clientX,y:O.clientY}}},{key:"getCursorPositionInCanvas",value:function(){var O=this.canvas.getBoundingClientRect();return this.pointerCurrentPosition={x:this.mousePositions.x-O.left,y:this.mousePositions.y-O.top},this.pointerCurrentPosition}},{key:"keyDown",value:function(O){this.imagesLoaded&&(this.glass&&this.closeMagnifier(),O.keyCode===37&&(this.keysReverse?this.left():this.right(),this.onSpin()),O.keyCode===39&&(this.keysReverse?this.right():this.left(),this.onSpin()),this.allowSpinY&&(O.preventDefault(),O.keyCode===38&&(this.keysReverse?this.top():this.bottom(),this.onSpin()),O.keyCode===40&&(this.keysReverse?this.bottom():this.top(),this.onSpin())))}},{key:"onSpin",value:function(){this.bottomCircle&&this.hide360ViewCircleIcon(),this.view360Icon&&this.remove360ViewIcon(),(this.autoplay||this.loopTimeoutId)&&(this.stop(),this.autoplay=!1)}},{key:"keyUp",value:function(O){this.imagesLoaded&&[37,39].indexOf(O.keyCode)!==-1&&this.onFinishSpin()}},{key:"onFinishSpin",value:function(){this.bottomCircle&&this.show360ViewCircleIcon()}},{key:"moveActiveIndexUp",value:function(O){var W=this.controlReverse?!this.spinReverse:this.spinReverse;this.stopAtEdges?this.activeImageX+O>=this.amountX?(this.activeImageX=this.amountX,(W?this.leftElem:this.rightElem)&&Ri(W?this.leftElem:this.rightElem,"not-active")):(this.activeImageX+=O,this.rightElem&&Sn(this.rightElem,"not-active"),this.leftElem&&Sn(this.leftElem,"not-active")):(this.activeImageX=(this.activeImageX+O)%this.amountX||this.amountX,this.activeImageX===this.amountX&&this.allowSpinY&&(this.spinY=!0))}},{key:"moveActiveIndexDown",value:function(O){var W=this.controlReverse?!this.spinReverse:this.spinReverse;this.stopAtEdges?this.activeImageX-O<=1?(this.activeImageX=1,(W?this.rightElem:this.leftElem)&&Ri(W?this.rightElem:this.leftElem,"not-active")):(this.activeImageX-=O,this.leftElem&&Sn(this.leftElem,"not-active"),this.rightElem&&Sn(this.rightElem,"not-active")):this.activeImageX-O<1?(this.activeImageX=this.amountX+(this.activeImageX-O),this.spinY=!0):this.activeImageX-=O}},{key:"moveActiveYIndexUp",value:function(O){var W=this.controlReverse?!this.spinReverse:this.spinReverse;this.stopAtEdges?this.activeImageY+O>=this.amountY?(this.activeImageY=this.amountY,(W?this.bottomElem:this.topElem)&&Ri(W?this.bottomElem:this.topElem,"not-active")):(this.activeImageY+=O,this.topElem&&Sn(this.topElem,"not-active"),this.bottomElem&&Sn(this.bottomElem,"not-active")):(this.activeImageY=(this.activeImageY+O)%this.amountY||this.amountY,this.activeImageY===this.amountY&&(this.spinY=!1))}},{key:"moveActiveYIndexDown",value:function(O){var W=this.controlReverse?!this.spinReverse:this.spinReverse;this.stopAtEdges?this.activeImageY-O<=1?(this.activeImageY=1,(W?this.topElem:this.bottomElem)&&Ri(W?this.topElem:this.bottomElem,"not-active")):(this.activeImageY-=O,this.bottomElem&&Sn(this.bottomElem,"not-active"),this.topElem&&Sn(this.topElem,"not-active")):this.activeImageY-O<1?(this.activeImageY=this.amountY+(this.activeImageY-O),this.spinY=!1):this.activeImageY-=O}},{key:"moveRight",value:function(O){var W=vn(O,this.movementStart.x,this.speedFactor);this.spinReverse?this.moveActiveIndexDown(W):this.moveActiveIndexUp(W),this.movementStart.x=O,this.activeImageY=1,this.update()}},{key:"moveLeft",value:function(O){var W=vn(this.movementStart.x,O,this.speedFactor);this.spinReverse?this.moveActiveIndexUp(W):this.moveActiveIndexDown(W),this.activeImageY=1,this.movementStart.x=O,this.update()}},{key:"moveTop",value:function(O){var W=vn(this.movementStart.y,O,this.speedFactor);this.spinReverse?this.moveActiveYIndexUp(W):this.moveActiveYIndexDown(W),this.activeImageX=1,this.movementStart.y=O,this.update()}},{key:"moveBottom",value:function(O){var W=vn(O,this.movementStart.y,this.speedFactor);this.spinReverse?this.moveActiveYIndexDown(W):this.moveActiveYIndexUp(W),this.activeImageX=1,this.movementStart.y=O,this.update()}},{key:"onMoveHandler",value:function(O){var W=this.isMobile?O.touches[0].clientX:O.pageX,lt=this.isMobile?O.touches[0].clientY:O.pageY,pt=W-this.movementStart.x>=this.speedFactor,wt=this.movementStart.x-W>=this.speedFactor,It=this.movementStart.y-lt>=this.speedFactor,Nt=lt-this.movementStart.y>=this.speedFactor;this.bottomCircle&&this.hide360ViewCircleIcon(),pt&&this.movingDirection===ht?(this.moveRight(W),this.isStartSpin=!0):wt&&this.movingDirection===ht?(this.moveLeft(W),this.isStartSpin=!0):It&&this.movingDirection===xt?(this.moveTop(lt),this.isStartSpin=!0):Nt&&this.movingDirection===xt&&(this.moveBottom(lt),this.isStartSpin=!0)}},{key:"left",value:function(){this.movingDirection=ht,this.activeImageY=this.reversed?this.amountY:1,this.moveActiveIndexDown(1),this.update()}},{key:"right",value:function(){this.movingDirection=ht,this.activeImageY=this.reversed?this.amountY:1,this.moveActiveIndexUp(1),this.update()}},{key:"top",value:function(){this.movingDirection=xt,this.activeImageX=this.reversed?this.amountX:1,this.moveActiveYIndexUp(1),this.update()}},{key:"bottom",value:function(){this.movingDirection=xt,this.activeImageX=this.reversed?this.amountX:1,this.moveActiveYIndexDown(1),this.update()}},{key:"loop",value:function(O){var W={left:this.left.bind(this),right:this.right.bind(this),top:this.top.bind(this),bottom:this.bottom.bind(this)};(function(lt,pt,wt,It){var Nt=It.bottom,Ut=It.top,zt=It.left,Jt=It.right;switch(lt){case nt:wt?Nt():Ut();break;case rt:case q:pt?wt?Nt():Ut():wt?zt():Jt();break;case ct:default:wt?zt():Jt()}})(this.autoplayBehavior,this.spinY,O,W)}},{key:"updateContainerAndCanvasSize",value:function(O){var W=function(lt,pt){try{var wt=lt.width/lt.height;if(typeof pt=="number"&&(wt=pt),pt&&pn()(pt)==="object"){var It=Object.keys(pt).sort(function(Nt,Ut){return Nt-Ut}).find(function(Nt){return window.innerWidth<=parseInt(Nt,10)});It&&(wt=pt[It])}return wt}catch{return 1}}(O,this.ratio);if(this.fullscreenView)return this.container.width=window.innerWidth*this.devicePixelRatio,this.container.style.width=window.innerWidth+"px",this.container.height=window.innerHeight*this.devicePixelRatio,this.container.style.height=window.innerHeight+"px",this.container.style.maxWidth="unset",this.canvas.width=window.innerWidth*this.devicePixelRatio,this.canvas.style.width=window.innerWidth+"px",this.canvas.height=window.innerHeight*this.devicePixelRatio,void(this.canvas.style.height=window.innerHeight+"px");this.canvas.width=this.container.offsetWidth*this.devicePixelRatio,this.canvas.style.width=this.container.offsetWidth+"px",this.canvas.height=this.container.offsetWidth/W*this.devicePixelRatio,this.canvas.style.height=this.container.offsetWidth/W+"px"}},{key:"onResizedImageLoad",value:function(O,W,lt){O===xt?this.resizedImagesY[lt]=W:this.resizedImagesX[lt]=W;var pt=this.resizedImagesX.filter(function(It){return It}),wt=this.resizedImagesY.filter(function(It){return It});pt.length+wt.length===this.amountX+this.amountY&&(this.imagesX=this.resizedImagesX,this.imagesY=this.resizedImagesY,this.update())}},{key:"showImageInfo",value:function(O){O.font="".concat(this.fullscreenView?28:14,"px serif"),O.fillStyle=this.info==="white"?"#FFF":"#000";var W="image-dimension: ".concat(this.container.offsetWidth,"x").concat(this.container.offsetHeight,"px"),lt=["active-index-x: "+this.activeImageX,"active-index-y: "+this.activeImageY].join(" | ");O.fillText(W,20,this.container.offsetHeight-35),O.fillText(lt,20,this.container.offsetHeight-10)}},{key:"requestResizedImages",value:function(){if(this.isReady()){var O=this.ciParams.ciToken,W=this.imagesX[0];if(this.update(),O&&!(this.container.offsetWidth<1.5*W.width)){this.speedFactor=An(this.dragSpeed,this.amountX,this.container.offsetWidth);var lt=Ot(this.srcXConfig);if(Te(this.srcXConfig,lt,this.onResizedImageLoad.bind(this,ht)),this.allowSpinY){var pt=Ot(this.srcYConfig);Te(this.srcYConfig,pt,this.onResizedImageLoad.bind(this,xt))}}}}},{key:"update",value:function(){var O=this.imagesX[this.activeImageX-1];if(this.movingDirection===xt&&(O=this.imagesY[this.activeImageY-1]),O){var W=this.canvas.getContext("2d");if(W.scale(this.devicePixelRatio,this.devicePixelRatio),this.updateContainerAndCanvasSize(O),this.fullscreenView){var lt=wn(this.canvas.width,this.canvas.height,O.width,O.height),pt=lt.width,wt=lt.height,It=lt.offsetX,Nt=lt.offsetY;W.drawImage(O,It,Nt,pt,wt)}else this.mouseTracked?this.updateImageScale(W):(this.hotspotsConfigs&&
75!this.autoplay&&Pr(this.container,this.hotspotsConfigs,this.activeImageX,this.activeImageY,this.movingDirection,this.isClicked),W.drawImage(O,0,0,this.canvas.width,this.canvas.height));this.info&&this.showImageInfo(W)}}},{key:"updateImageScale",value:function(O){var W=this.originalImagesX[this.activeImageX-1];this.movingDirection===xt&&(W=this.originalImagesY[this.activeImageY-1]);var lt=this.getCursorPositionInCanvas(),pt=this.canvas.width,wt=this.canvas.height,It=this.canvas.width*this.zoomIntensity,Nt=this.canvas.height*this.zoomIntensity,Ut=0-lt.x/pt*(It-this.canvas.width),zt=0-lt.y/wt*(Nt-this.canvas.height);O.drawImage(W,Ut,zt,It,Nt)}},{key:"updatePercentageInLoader",value:function(O){this.loader&&(this.loader.style.width=O+"%"),this.view360Icon&&(this.view360Icon.innerText=O+"%")}},{key:"onFirstImageLoaded",value:function(O){this.add360ViewIcon();var W=this.canvas.getContext("2d");if(W.scale(this.devicePixelRatio,this.devicePixelRatio),this.updateContainerAndCanvasSize(O),this.fullscreenView){var lt=wn(this.canvas.width,this.canvas.height,O.width,O.height),pt=lt.offsetX,wt=lt.offsetY,It=lt.width,Nt=lt.height;this.offset={x:pt,y:wt},this.addCloseFullscreenView(),W.drawImage(O,pt,wt,It,Nt)}else W.drawImage(O,0,0,this.canvas.width,this.canvas.height);this.info&&this.showImageInfo(W),this.magnifier&&this.addMagnifier(),this.boxShadow&&!this.fullscreenView&&(this.boxShadowEl=Yn(this.boxShadow,this.innerBox)),this.bottomCircle&&!this.fullscreenView&&this.add360ViewCircleIcon(),this.fullscreen&&!this.fullscreenView&&this.addFullscreenIcon()}},{key:"onAllImagesLoaded",value:function(){if(this.removeLoader(),this.imagesLoaded=!0,this.autoplay&&this.pointerZoom?this.container.style.cursor="zoom-in":this.container.style.cursor="grab",this.speedFactor=An(this.dragSpeed,this.amountX,this.container.offsetWidth),this.autoplay&&this.play(),this.disableDrag&&(this.container.style.cursor="default"),this.view360Icon){if(this.hide360Logo)return this.remove360ViewIcon();this.view360Icon.innerText=""}this.initControls()}},{key:"magnify",value:function(O){var W=this;O.stopPropagation(),this.mouseTracked&&this.togglePointerZoom();var lt,pt,wt,It,Nt,Ut,zt,Jt,ae=(lt=this.movingDirection,pt=this.imagesX,wt=this.imagesY,It=this.activeImageX,Nt=this.activeImageY,Ut=new Image,zt=pt.map(function(Oe){return Oe.src.replace(x,"").replace(R,"?")}),Jt=wt.map(function(Oe){return Oe.src.replace(x,"").replace(R,"?")}),Ut.src=zt[It-1],lt===xt&&(Ut.src=Jt[Nt-1]),Ut);this.isMagnifyOpen=!0,ae.onload=function(){W.glass&&(W.glass.style.cursor="none")},this.glass=document.createElement("div"),this.container.style.overflow="hidden",function(Oe,Se,ze,de,$e){var Xe=Se||{},qe=Xe.x,Ie=qe===void 0?0:qe,ni=Xe.y,fi=ni===void 0?0:ni,Wt=(Oe.offsetWidth-2*Ie)*$e,ge=(Oe.offsetHeight-2*fi)*$e;de.setAttribute("class","cloudimage-360-img-magnifier-glass"),Oe.prepend(de),de.style.backgroundImage="url('".concat(ze.src,"')"),de.style.backgroundSize="".concat(Wt,"px ").concat(ge,"px");var _e={container:Oe,w:de.offsetWidth/2,h:de.offsetHeight/2,zoom:$e,bw:3,offsetX:Ie,offsetY:fi},pi=function(Bi){Cn(Bi,_e,de)},yi=function(Bi){Cn(Bi,_e,de)};de.addEventListener("mousemove",pi),Oe.addEventListener("mousemove",pi),de.addEventListener("touchmove",yi,{passive:!0}),Oe.addEventListener("touchmove",yi,{passive:!0})}(this.container,this.offset,ae,this.glass,this.magnifier||3)}},{key:"closeMagnifier",value:function(){this.glass&&(this.container.style.overflow="visible",this.container.removeChild(this.glass),this.glass=null,this.isMagnifyOpen=!1)}},{key:"openFullscreenModal",value:function(O){O.stopPropagation(),this.mouseTracked&&this.togglePointerZoom();var W=new K(function(lt){var pt=document.createElement("div");pt.className="cloudimage-360-fullscreen-modal";var wt=lt.cloneNode();return wt.style.height="100%",wt.style.maxHeight="100%",pt.appendChild(wt),window.document.body.style.overflow="hidden",window.document.body.appendChild(pt),wt}(this.container),!0,this.hotspotsConfigs);this.container.dispatchEvent(new CustomEvent("ci360-openFullscreenModal",{detail:W}))}},{key:"setFullscreenEvents",value:function(O,W){if(W.type==="click")return this.closeFullscreenModal(W);W.key==="Escape"&&this.container.parentNode.parentNode===document.body&&this.closeFullscreenModalOnEsc(W)}},{key:"closeFullscreenModalOnEsc",value:function(O){this.closeFullscreenModal(O)}},{key:"play",value:function(){var O=this;this.bottomCircle&&this.hide360ViewCircleIcon(),this.remove360ViewIcon(),this.loopTimeoutId=window.setInterval(function(){O.loop(O.reversed);var W=function(lt,pt,wt,It,Nt,Ut){switch(lt){case rt:case nt:return Ut?wt===1:wt===Nt;case ct:case q:default:return Ut?pt===1:pt===It}}(O.autoplayBehavior,O.activeImageX,O.activeImageY,O.amountX,O.amountY,O.reversed);O.playOnce&&W&&(window.clearTimeout(O.loopTimeoutId),O.autoplay=!1,O.hotspotsConfigs&&Pr(O.container,O.hotspotsConfigs,O.activeImageX,O.activeImageY,O.movingDirection,O.isClicked))},this.autoplaySpeed)}},{key:"stop",value:function(){this.bottomCircle&&this.show360ViewCircleIcon(),window.clearTimeout(this.loopTimeoutId)}},{key:"updateView",value:function(O,W){var lt,pt,wt=this,It=this.container,Nt=G(It);if(lt=this,pt=Nt,Object.keys(pt).reduce(function(Jt,ae){var Oe=lt[ae]!==pt[ae];return A.indexOf(ae)!==-1&&Oe&&(Jt=!0),Jt},!1)||O){var Ut=this.container,zt=W.findIndex(function(Jt){return Jt.id===wt.container.id});return It.removeChild(this.innerBox),(It=It.cloneNode(!0)).className=It.className.replace(" initialized",""),Ut.parentNode.replaceChild(It,Ut),W.splice(zt,1,new K(It))}It.style.position="relative",It.style.width="100%",It.style.cursor="default",It.setAttribute("draggable","false"),this.stop(),this.init(It,!0)}},{key:"destroy",value:function(){stop();var O=this.container,W=O.cloneNode(!0),lt=W.querySelector(".cloudimage-360-inner-box");W.className=W.className.replace(" initialized",""),W.style.position="relative",W.style.width="100%",W.style.cursor="default",W.setAttribute("draggable","false"),W.style.minHeight="auto",W.removeChild(lt),O.parentNode.replaceChild(W,O)}},{key:"addCloseFullscreenView",value:function(O){var W=function(){var lt=document.createElement("div");
75return lt.className="cloudimage-360-close-fullscreen-icon",lt}();W.onclick=this.setFullscreenEvents.bind(this,O),window.onkeyup=this.setFullscreenEvents.bind(this,O),this.iconsContainer.appendChild(W)}},{key:"add360ViewIcon",value:function(){var O;this.view360Icon=((O=document.createElement("div")).className="cloudimage-360-view-360-icon",O.innerText="0%",O),this.innerBox.appendChild(this.view360Icon)}},{key:"addFullscreenIcon",value:function(){var O;this.fullscreenIcon=((O=document.createElement("div")).className="cloudimage-360-fullscreen-icon",O),this.fullscreenIcon.onclick=this.openFullscreenModal.bind(this),this.iconsContainer.appendChild(this.fullscreenIcon)}},{key:"showFullscreenIcon",value:function(){this.fullscreenIcon&&(this.fullscreenIcon.style.display="block",this.fullscreenIcon.style.pointerEvents="auto")}},{key:"hideFullscreenIcon",value:function(){this.fullscreenIcon&&(this.fullscreenIcon.style.display="none",this.fullscreenIcon.style.pointerEvents="none")}},{key:"addMagnifier",value:function(){var O;this.magnifierIcon=((O=document.createElement("div")).className="cloudimage-360-magnifier-icon",O),this.magnifierIcon.onclick=this.magnify.bind(this),this.iconsContainer.appendChild(this.magnifierIcon)}},{key:"enableMagnifierIcon",value:function(){this.magnifierIcon&&(this.magnifierIcon.style.display="block",this.magnifierIcon.style.pointerEvents="auto")}},{key:"disableMagnifierIcon",value:function(){this.magnifierIcon&&(this.magnifierIcon.style.display="none",this.magnifierIcon.style.pointerEvents="none")}},{key:"closeFullscreenModal",value:function(O){O.stopPropagation(),document.body.removeChild(this.container.parentNode),window.document.body.style.overflow="visible"}},{key:"add360ViewCircleIcon",value:function(){var O,W;this.view360CircleIcon=(O=this.bottomCircleOffset,(W=new Image).src="https://scaleflex.cloudimg.io/v7/plugins/js-cloudimage-360-view/assets/img/360.svg",W.style.bottom="".concat(O,"%"),W.className="cloudimage-360-view-360-circle",W),this.innerBox.appendChild(this.view360CircleIcon)}},{key:"show360ViewCircleIcon",value:function(){this.view360CircleIcon&&(this.view360CircleIcon.style.opacity="1")}},{key:"hide360ViewCircleIcon",value:function(){this.view360CircleIcon&&(this.view360CircleIcon.style.opacity="0")}},{key:"remove360ViewCircleIcon",value:function(){this.view360CircleIcon&&(this.innerBox.removeChild(this.view360CircleIcon),this.view360CircleIcon=null)}},{key:"removeLoader",value:function(){this.loader&&(this.innerBox.removeChild(this.loader),this.loader=null)}},{key:"remove360ViewIcon",value:function(){if(this.view360Icon)try{this.innerBox.removeChild(this.view360Icon),this.view360Icon=null}catch{}}},{key:"initControls",value:function(){var O=this,W=function(lt,pt){var wt=lt.container,It=lt.controlReverse,Nt=lt.spinReverse,Ut=lt.stopAtEdges,zt=pt.onRightStart,Jt=pt.onLeftStart,ae=pt.onTopStart,Oe=pt.onBottomStart,Se=pt.onEventEnd,ze={},de=It?!Nt:Nt,$e=wt.querySelectorAll(".cloudimage-360-left, .cloudimage-360-prev")[0],Xe=wt.querySelectorAll(".cloudimage-360-right, .cloudimage-360-next")[0],qe=wt.querySelector(".cloudimage-360-top"),Ie=wt.querySelector(".cloudimage-360-bottom");return $e&&($e.style.display="block",$e.addEventListener("mousedown",de?zt:Jt),$e.addEventListener("touchstart",de?zt:Jt,{passive:!0}),$e.addEventListener("mouseup",Se),$e.addEventListener("touchend",Se),ze.left=$e),Xe&&(Xe.style.display="block",Xe.addEventListener("mousedown",de?Jt:zt),Xe.addEventListener("touchstart",de?Jt:zt,{passive:!0}),Xe.addEventListener("mouseup",Se),Xe.addEventListener("touchend",Se),ze.right=Xe),qe&&(qe.style.display="block",qe.addEventListener("mousedown",de?Oe:ae),qe.addEventListener("touchstart",de?Oe:ae),qe.addEventListener("mouseup",Se),qe.addEventListener("touchend",Se),ze.top=qe),Ie&&(Ie.style.display="block",Ie.addEventListener("mousedown",de?ae:Oe),Ie.addEventListener("touchstart",de?ae:Oe),Ie.addEventListener("mouseup",Se),Ie.addEventListener("touchend",Se),ze.bottom=Ie),(de?Xe:$e)&&Ut&&(Ri(de?Xe:$e,"not-active"),Ri(de?qe:Ie,"not-active")),ze}({container:this.container,controlReverse:this.controlReverse,spinReverse:this.spinReverse,stopAtEdges:this.stopAtEdges},{onLeftStart:function(lt){lt.stopPropagation(),O.onSpin(),O.left(),O.loopTimeoutId=window.setInterval(O.left.bind(O),O.autoplaySpeed)},onRightStart:function(lt){lt.stopPropagation(),O.onSpin(),O.right(),O.loopTimeoutId=window.setInterval(O.right.bind(O),O.autoplaySpeed)},onTopStart:function(lt){lt.stopPropagation(),O.onSpin(),O.top(),O.loopTimeoutId=window.setInterval(O.top.bind(O),O.autoplaySpeed)},onBottomStart:function(lt){lt.stopPropagation(),O.onSpin(),O.bottom(),O.loopTimeoutId=window.setInterval(O.bottom.bind(O),O.autoplaySpeed)},onEventEnd:function(){O.onFinishSpin(),window.clearTimeout(O.loopTimeoutId)}});this.topElem=W.top,this.bottomElem=W.bottom,this.leftElem=W.left,this.rightElem=W.right}},{key:"attachEvents",value:function(O,W,lt){window.addEventListener("resize",this.requestResizedImages.bind(this)),O&&!this.disableDrag&&(this.container.addEventListener("click",this.mouseClick.bind(this)),this.container.addEventListener("mousedown",this.mouseDown.bind(this)),this.container.addEventListener("mousemove",this.mouseMove.bind(this)),this.container.addEventListener("mouseleave",this.mouseLeave.bind(this)),document.addEventListener("mouseup",this.mouseUp.bind(this))),W&&!this.disableDrag&&(this.container.addEventListener("touchstart",this.touchStart.bind(this),{passive:!0}),this.container.addEventListener("touchend",this.touchEnd.bind(this)),this.container.addEventListener("touchmove",this.touchMove.bind(this))),lt&&(document.addEventListener("keydown",this.keyDown.bind(this)),document.addEventListener("keyup",this.keyUp.bind(this))),document.addEventListener("keydown",this.keyDownGeneral.bind(this))}}
75,{key:"init",value:function(O){var W=this,lt=arguments.length>1&&arguments[1]!==void 0&&arguments[1],pt=G(O),wt=pt.folder,It=pt.apiVersion,Nt=pt.filenameX,Ut=pt.filenameY,zt=pt.imageListX,Jt=pt.imageListY,ae=pt.indexZeroBase,Oe=pt.amountX,Se=pt.amountY,ze=pt.draggable,de=ze===void 0||ze,$e=pt.swipeable,Xe=$e===void 0||$e,qe=pt.keys,Ie=pt.keysReverse,ni=pt.bottomCircle,fi=pt.bottomCircleOffset,Wt=pt.boxShadow,ge=pt.autoplay,_e=pt.autoplayBehavior,pi=pt.playOnce,yi=pt.speed,Bi=pt.autoplayReverse,Wi=pt.disableDrag,yn=Wi===void 0||Wi,zn=pt.fullscreen,Pn=pt.magnifier,on=pt.ciToken,Xn=pt.ciFilters,m=pt.ciTransformation,E=pt.lazyload,P=pt.lazySelector,_=pt.spinReverse,n=pt.dragSpeed,y=pt.stopAtEdges,b=pt.controlReverse,k=pt.hide360Logo,L=pt.logoSrc,D=pt.pointerZoom,H=pt.ratio,Q=pt.imageInfo,N=Q===void 0?"black":Q,Y={ciToken:on,ciFilters:Xn,ciTransformation:m};if(this.folder=wt,this.apiVersion=It,this.filenameX=Nt,this.filenameY=Ut,this.imageListX=zt,this.imageListY=Jt,this.indexZeroBase=ae,this.amountX=zt?JSON.parse(zt).length:Oe,this.amountY=Jt?JSON.parse(Jt).length:Se,this.allowSpinY=!!this.amountY,this.activeImageX=Bi?this.amountX:1,this.activeImageY=Bi?this.amountY:1,this.spinY=_e===q,this.bottomCircle=ni,this.bottomCircleOffset=fi,this.boxShadow=Wt,this.autoplay=ge,this.autoplayBehavior=_e,this.playOnce=pi,this.speed=yi,this.reversed=Bi,this.disableDrag=yn,this.fullscreen=zn,this.magnifier=!this.isMobile&&Pn>1?Math.min(Pn,5):0,this.lazySelector=P,this.spinReverse=_,this.controlReverse=b,this.dragSpeed=Math.max(n,50),this.autoplaySpeed=36*this.speed/this.amountX,this.stopAtEdges=y,this.hide360Logo=k,this.logoSrc=L,this.ciParams=Y,this.apiVersion=It,this.pointerZoom=D>1?Math.min(D,3):0,this.keysReverse=Ie,this.info=N,this.keys=qe,this.ratio=H&&JSON.parse(H),lt)return Nn(this.innerBox,this.iconsContainer),Nn(this.innerBox,this.boxShadowEl),Nn(this.innerBox,this.view360Icon),this.remove360ViewCircleIcon(),this.iconsContainer=Gi(this.innerBox),this.hide360Logo||this.lazyload||!this.logoSrc||this.add360ViewIcon(),this.magnifier&&this.addMagnifier(),this.bottomCircle&&!this.fullscreenView&&this.add360ViewCircleIcon(),this.fullscreen&&!this.fullscreenView&&this.addFullscreenIcon(),this.boxShadow&&!this.fullscreenView&&(this.boxShadowEl=Yn(this.boxShadow,this.innerBox)),this.onAllImagesLoaded();this.innerBox=wr(this.container),this.iconsContainer=Gi(this.innerBox),this.canvas=Ji(this.innerBox),this.loader=Fn(this.innerBox),this.hotspotsConfigs&&!this.fullscreenView&&Mt(O,this.hotspotsConfigs),qi(this.container),this.srcXConfig={folder:wt,filename:Nt,imageList:zt,container:O,innerBox:this.innerBox,apiVersion:It,ciParams:Y,lazySelector:P,amount:this.amountX,indexZeroBase:ae,fullscreen:this.fullscreenView},this.srcYConfig=Ci(Ci({},this.srcXConfig),{},{filename:Ut,orientation:xt,imageList:Jt,amount:this.amountY});var j=Ot(this.srcXConfig),V=function(vt,Lt,Tt){vt!==xt?W.imagesX[Tt]=Lt:W.imagesY[Tt]=Lt;var Dt=W.imagesX.filter(function(Ne){return Ne}),Xt=W.imagesY.filter(function(Ne){return Ne}),Ht=W.amountX+W.amountY,ie=Dt.length+Xt.length,we=!Tt&&vt!==xt,Ue=Math.round(ie/Ht*100);W.updatePercentageInLoader(Ue),we&&W.onFirstImageLoaded(Lt),W.isReady()&&W.onAllImagesLoaded()},it=function(){if(Te(W.srcXConfig,j,V.bind(W,ht)),W.allowSpinY){var vt=Ot(W.srcYConfig);Te(W.srcYConfig,vt,V.bind(W,xt))}};if(E){var yt=function(vt){W.innerBox.removeChild(vt),it()};ji(j,this.srcXConfig,yt)}else it();this.attachEvents(de,Xe,qe)}}]),K}();function zi(){return!(window.CI360._viewers&&window.CI360._viewers.length>0)}window.CI360=window.CI360||{},window.CI360.init=function(K){if(!K.classList.contains("initialized")){var O=function(W){if(!W.id){var lt=Math.floor(1e4*Math.random()),pt="cloudimage-360-view-".concat(lt);W.id=pt}return W}(K);at(O,"hotspots")||window.CI360._viewers.push(new Re(O)),K.dispatchEvent(new CustomEvent("ci360-init",{detail:K}))}},window.CI360.destroy=function(){zi()||(window.CI360._viewers.forEach(function(K){K.destroy()}),window.CI360._viewers=[])},window.CI360.getActiveIndexByID=function(K,O){if(!zi()){var W=window.CI360._viewers.filter(function(lt){return lt.id===K})[0];return O==="y"?W&&W.activeImageY-1:W&&W.activeImageX-1}},window.CI360.update=function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,O=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(K){var W=window.CI360._viewers.filter(function(lt){return lt.id===K})[0];W.updateView(O,window.CI360._viewers)}
75else window.CI360._viewers.forEach(function(lt){lt.updateView(O,window.CI360._viewers)})},window.CI360.add=function(K){var O=Array.from(document.querySelectorAll(".cloudimage-360:not(.initialized)"));if(O.length&&K){var W=O.filter(function(lt){return lt.id===K})[0];W&&window.CI360._viewers.push(new Re(W))}},window.CI360.addHotspots=function(K,O){var W=document.querySelectorAll(".cloudimage-360:not(.initialized)"),lt=Array.from(W).find(function(pt){return pt.id===K});lt&&window.CI360._viewers.push(new Re(lt,!1,O))},window.CI360._viewers=[]}]),function t(s){var e,c;e=this,c=function(){function u(f,p){for(var r=0;r<p.length;r++){var i=p[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(f,ht(i.key),i)}}function d(f,p,r){return p&&u(f.prototype,p),r&&u(f,r),Object.defineProperty(f,"prototype",{writable:!1}),f}function S(f,p,r){return(p=ht(p))in f?Object.defineProperty(f,p,{value:r,enumerable:!0,configurable:!0,writable:!0}):f[p]=r,f}function I(){return I=Object.assign?Object.assign.bind():function(f){for(var p=1;p<arguments.length;p++){var r=arguments[p];for(var i in r)({}).hasOwnProperty.call(r,i)&&(f[i]=r[i])}return f},I.apply(null,arguments)}function Z(f){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},Z(f)}function ct(f,p){f.prototype=Object.create(p.prototype),f.prototype.constructor=f,J(f,p)}function nt(){try{var f=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nt=function(){return!!f})()}function rt(f,p){var r=Object.keys(f);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(f);p&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(f,o).enumerable})),r.push.apply(r,i)}return r}function q(f){for(var p=1;p<arguments.length;p++){var r=arguments[p]!=null?arguments[p]:{};p%2?rt(Object(r),!0).forEach(function(i){S(f,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach(function(i){Object.defineProperty(f,i,Object.getOwnPropertyDescriptor(r,i))})}return f}function J(f,p){return J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},J(f,p)}function ht(f){var p=function(r,i){if(typeof r!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var l=o.call(r,i);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}(f,"string");return typeof p=="symbol"?p:p+""}function xt(f){var p=typeof Map=="function"?new Map:void 0;return xt=function(r){if(r===null||!function(o){try{return Function.toString.call(o).indexOf("[native code]")!==-1}catch{return typeof o=="function"}}(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(p!==void 0){if(p.has(r))return p.get(r);p.set(r,i)}function i(){return function(o,l,h){if(nt())return Reflect.construct.apply(null,arguments);var v=[null];v.push.apply(v,l);var C=new(o.bind.apply(o,v));return h&&J(C,h.prototype),C}(r,arguments,Z(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),J(i,r)},xt(f)}function Et(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var x,R,G={exports:{}},at=(x||(x=1,function(f){var p=Object.prototype.hasOwnProperty,r="~";function i(){}function o(C,T,w){this.fn=C,this.context=T,this.once=w||!1}function l(C,T,w,M,F){if(typeof w!="function")throw new TypeError("The listener must be a function");var B=new o(w,M||C,F),U=r?r+T:T;return C._events[U]?C._events[U].fn?C._events[U]=[C._events[U],B]:C._events[U].push(B):(C._events[U]=B,C._eventsCount++),C}function h(C,T){--C._eventsCount==0?C._events=new i:delete C._events[T]}function v(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1)),v.prototype.eventNames=function(){var C,T,w=[];if(this._eventsCount===0)return w;for(T in C=this._events)p.call(C,T)&&w.push(r?T.slice(1):T);return Object.getOwnPropertySymbols?w.concat(Object.getOwnPropertySymbols(C)):w},v.prototype.listeners=function(C){var T=r?r+C:C,w=this._events[T];if(!w)return[];if(w.fn)return[w.fn];for(var M=0,F=w.length,B=new Array(F);M<F;M++)B[M]=w[M].fn;return B},v.prototype.listenerCount=function(C){var T=r?r+C:C,w=this._events[T];return w?w.fn?1:w.length:0},v.prototype.emit=function(C,T,w,M,F,B){var U=r?r+C:C;if(!this._events[U])return!1;var tt,et,st=this._events[U],ft=arguments.length;if(st.fn){switch(st.once&&this.removeListener(C,st.fn,void 0,!0),ft){case 1:return st.fn.call(st.context),!0;case 2:return st.fn.call(st.context,T),!0;case 3:return st.fn.call(st.context,T,w),!0;case 4:return st.fn.call(st.context,T,w,M),!0;case 5:return st.fn.call(st.context,T,w,M,F),!0;case 6:return st.fn.call(st.context,T,w,M,F,B),!0}for(et=1,tt=new Array(ft-1);et<ft;et++)tt[et-1]=arguments[et];st.fn.apply(st.context,tt)}else{var kt,At=st.length;for(et=0;et<At;et++)switch(st[et].once&&this.removeListener(C,st[et].fn,void 0,!0),ft){case 1:st[et].fn.call(st[et].context);break;case 2:st[et].fn.call(st[et].context,T);break;case 3:st[et].fn.call(st[et].context,T,w);break;case 4:st[et].fn.call(st[et].context,T,w,M);break;default:if(!tt)for(kt=1,tt=new Array(ft-1);kt<ft;kt++)tt[kt-1]=arguments[kt];st[et].fn.apply(st[et].context,tt)}}return!0},v.prototype.on=function(C,T,w){return l(this,C,T,w,!1)},v.prototype.once=function(C,T,w){return l(this,C,T,w,!0)},v.prototype.removeListener=function(C,T,w,M){var F=r?r+C:C;if(!this._events[F])return this;if(!T)return h(this,F),this;var B=this._events[F];if(B.fn)B.fn!==T||M&&!B.once||w&&B.context!==w||h(this,F);
75else{for(var U=0,tt=[],et=B.length;U<et;U++)(B[U].fn!==T||M&&!B[U].once||w&&B[U].context!==w)&&tt.push(B[U]);tt.length?this._events[F]=tt.length===1?tt[0]:tt:h(this,F)}return this},v.prototype.removeAllListeners=function(C){var T;return C?(T=r?r+C:C,this._events[T]&&h(this,T)):(this._events=new i,this._eventsCount=0),this},v.prototype.off=v.prototype.removeListener,v.prototype.addListener=v.prototype.on,v.prefixed=r,v.EventEmitter=v,f.exports=v}(G)),G.exports),ut=Et(at),A={exports:{}},Vt=(R||(R=1,function(f,p){var r,i,o,l,h;r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,o=/(?:\/|^)\.(?=\/)/g,l=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,h={buildAbsoluteURL:function(v,C,T){if(T=T||{},v=v.trim(),!(C=C.trim())){if(!T.alwaysNormalize)return v;var w=h.parseURL(v);if(!w)throw new Error("Error trying to parse base URL.");return w.path=h.normalizePath(w.path),h.buildURLFromParts(w)}var M=h.parseURL(C);if(!M)throw new Error("Error trying to parse relative URL.");if(M.scheme)return T.alwaysNormalize?(M.path=h.normalizePath(M.path),h.buildURLFromParts(M)):C;var F=h.parseURL(v);if(!F)throw new Error("Error trying to parse base URL.");if(!F.netLoc&&F.path&&F.path[0]!=="/"){var B=i.exec(F.path);F.netLoc=B[1],F.path=B[2]}F.netLoc&&!F.path&&(F.path="/");var U={scheme:F.scheme,netLoc:M.netLoc,path:null,params:M.params,query:M.query,fragment:M.fragment};if(!M.netLoc&&(U.netLoc=F.netLoc,M.path[0]!=="/"))if(M.path){var tt=F.path,et=tt.substring(0,tt.lastIndexOf("/")+1)+M.path;U.path=h.normalizePath(et)}else U.path=F.path,M.params||(U.params=F.params,M.query||(U.query=F.query));return U.path===null&&(U.path=T.alwaysNormalize?h.normalizePath(M.path):M.path),h.buildURLFromParts(U)},parseURL:function(v){var C=r.exec(v);return C?{scheme:C[1]||"",netLoc:C[2]||"",path:C[3]||"",params:C[4]||"",query:C[5]||"",fragment:C[6]||""}:null},normalizePath:function(v){for(v=v.split("").reverse().join("").replace(o,"");v.length!==(v=v.replace(l,"")).length;);return v.split("").reverse().join("")},buildURLFromParts:function(v){return v.scheme+v.netLoc+v.path+v.params+v.query+v.fragment}},f.exports=h}(A)),A.exports),Ot=Number.isFinite||function(f){return typeof f=="number"&&isFinite(f)},Be=Number.isSafeInteger||function(f){return typeof f=="number"&&Math.abs(f)<=xe},xe=Number.MAX_SAFE_INTEGER||9007199254740991,me=function(f){return f.NETWORK_ERROR="networkError",f.MEDIA_ERROR="mediaError",f.KEY_SYSTEM_ERROR="keySystemError",f.MUX_ERROR="muxError",f.OTHER_ERROR="otherError",f}({}),mt=function(f){return f.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",f.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",f.KEY_SYSTEM_NO_SESSION="keySystemNoSession",f.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",f.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",f.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",f.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",f.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",f.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",f.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",f.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",f.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",f.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",f.MANIFEST_LOAD_ERROR="manifestLoadError",f.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",f.MANIFEST_PARSING_ERROR="manifestParsingError",f.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",f.LEVEL_EMPTY_ERROR="levelEmptyError",f.LEVEL_LOAD_ERROR="levelLoadError",f.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",f.LEVEL_PARSING_ERROR="levelParsingError",f.LEVEL_SWITCH_ERROR="levelSwitchError",f.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",f.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",f.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",f.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",f.FRAG_LOAD_ERROR="fragLoadError",f.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",f.FRAG_DECRYPT_ERROR="fragDecryptError",f.FRAG_PARSING_ERROR="fragParsingError",f.FRAG_GAP="fragGap",f.REMUX_ALLOC_ER
75ROR="remuxAllocError",f.KEY_LOAD_ERROR="keyLoadError",f.KEY_LOAD_TIMEOUT="keyLoadTimeOut",f.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",f.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",f.BUFFER_APPEND_ERROR="bufferAppendError",f.BUFFER_APPENDING_ERROR="bufferAppendingError",f.BUFFER_STALLED_ERROR="bufferStalledError",f.BUFFER_FULL_ERROR="bufferFullError",f.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",f.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",f.ASSET_LIST_LOAD_ERROR="assetListLoadError",f.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",f.ASSET_LIST_PARSING_ERROR="assetListParsingError",f.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",f.INTERNAL_EXCEPTION="internalException",f.INTERNAL_ABORTED="aborted",f.ATTACH_MEDIA_ERROR="attachMediaError",f.UNKNOWN="unknown",f}({}),ot=function(f){return f.MEDIA_ATTACHING="hlsMediaAttaching",f.MEDIA_ATTACHED="hlsMediaAttached",f.MEDIA_DETACHING="hlsMediaDetaching",f.MEDIA_DETACHED="hlsMediaDetached",f.MEDIA_ENDED="hlsMediaEnded",f.STALL_RESOLVED="hlsStallResolved",f.BUFFER_RESET="hlsBufferReset",f.BUFFER_CODECS="hlsBufferCodecs",f.BUFFER_CREATED="hlsBufferCreated",f.BUFFER_APPENDING="hlsBufferAppending",f.BUFFER_APPENDED="hlsBufferAppended",f.BUFFER_EOS="hlsBufferEos",f.BUFFERED_TO_END="hlsBufferedToEnd",f.BUFFER_FLUSHING="hlsBufferFlushing",f.BUFFER_FLUSHED="hlsBufferFlushed",f.MANIFEST_LOADING="hlsManifestLoading",f.MANIFEST_LOADED="hlsManifestLoaded",f.MANIFEST_PARSED="hlsManifestParsed",f.LEVEL_SWITCHING="hlsLevelSwitching",f.LEVEL_SWITCHED="hlsLevelSwitched",f.LEVEL_LOADING="hlsLevelLoading",f.LEVEL_LOADED="hlsLevelLoaded",f.LEVEL_UPDATED="hlsLevelUpdated",f.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",f.LEVELS_UPDATED="hlsLevelsUpdated",f.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",f.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",f.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",f.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",f.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",f.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",f.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",f.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",f.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",f.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",f.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",f.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",f.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",f.CUES_PARSED="hlsCuesParsed",f.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",f.INIT_PTS_FOUND="hlsInitPtsFound",f.FRAG_LOADING="hlsFragLoading",f.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",f.FRAG_LOADED="hlsFragLoaded",f.FRAG_DECRYPTED="hlsFragDecrypted",f.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",f.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",f.FRAG_PARSING_METADATA="hlsFragParsingMetadata",f.FRAG_PARSED="hlsFragParsed",f.FRAG_BUFFERED="hlsFragBuffered",f.FRAG_CHANGED="hlsFragChanged",f.FPS_DROP="hlsFpsDrop",f.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",f.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",f.ERROR="hlsError",f.DESTROYING="hlsDestroying",f.KEY_LOADING="hlsKeyLoading",f.KEY_LOADED="hlsKeyLoaded",f.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",f.BACK_BUFFER_REACHED="hlsBackBufferReached",f.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",f.ASSET_LIST_LOADING="hlsAssetListLoading",f.ASSET_LIST_LOADED="hlsAssetListLoaded",f.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",f.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",f.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",f.INTERSTITIAL_STARTED="hlsInterstitialStarted",f.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",f.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",f.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",f.INTERSTITIAL_ENDED="hlsInterstitialEnded",f.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",f.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",f.EVENT_CUE_ENTER="hlsEventCueEnter",f}({}),Pt="manifest",Ct="level",g="audioTrack",ve="subtitleTrack",ue="main",ye="audio",De="subtitle",Te=function(){function f(r,i,o){i===void 0&&(i=0),o===void 0&&(o=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=r,this.alpha_=r?Math.exp(Math.log(.5)/r):0,this.estimate_=i,this.totalWeight_=o}var p=f.prototype;return p.sample=function(r,i){var o=Math.pow(this.alpha_,r);this.estimate_=i*(1-o)+o*this.estimate_,this.totalWeight_+=r},p.getTotalWeight=function(){return this.totalWeight_},p.getEstimate=function(){if(this.alpha_){var r=1-Math.pow(this.alpha_,this.totalWeight_);if(r)return this.estimate_/r}return this.estimate_},f}(),We=function(){function f(r,i,o,l){l===void 0&&(l=100),this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_
75=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=o,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new Te(r),this.fast_=new Te(i),this.defaultTTFB_=l,this.ttfb_=new Te(r)}var p=f.prototype;return p.update=function(r,i){var o=this.slow_,l=this.fast_,h=this.ttfb_;o.halfLife!==r&&(this.slow_=new Te(r,o.getEstimate(),o.getTotalWeight())),l.halfLife!==i&&(this.fast_=new Te(i,l.getEstimate(),l.getTotalWeight())),h.halfLife!==r&&(this.ttfb_=new Te(r,h.getEstimate(),h.getTotalWeight()))},p.sample=function(r,i){var o=(r=Math.max(r,this.minDelayMs_))/1e3,l=8*i/o;this.fast_.sample(o,l),this.slow_.sample(o,l)},p.sampleTTFB=function(r){var i=r/1e3,o=Math.sqrt(2)*Math.exp(-Math.pow(i,2)/2);this.ttfb_.sample(o,Math.max(r,5))},p.canEstimate=function(){return this.fast_.getTotalWeight()>=this.minWeight_},p.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},p.getEstimateTTFB=function(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_},p.destroy=function(){},d(f,[{key:"defaultEstimate",get:function(){return this.defaultEstimate_}}])}(),ii=function(f,p){this.trace=void 0,this.debug=void 0,this.log=void 0,this.warn=void 0,this.info=void 0,this.error=void 0;var r="["+f+"]:";this.trace=Ee,this.debug=p.debug.bind(null,r),this.log=p.log.bind(null,r),this.warn=p.warn.bind(null,r),this.info=p.info.bind(null,r),this.error=p.error.bind(null,r)},Ee=function(){},Ei={trace:Ee,debug:Ee,log:Ee,warn:Ee,info:Ee,error:Ee};function ji(){return I({},Ei)}function wn(f,p,r){return p[f]?p[f].bind(p):function(i,o){var l=self.console[i];return l?l.bind(self.console,(o?"["+o+"] ":"")+"["+i+"] >"):Ee}(f,r)}var Ni=ji();function pn(f,p,r){var i=ji();if(typeof console=="object"&&f===!0||typeof f=="object"){var o=["debug","log","info","warn","error"];o.forEach(function(l){i[l]=wn(l,f,r)});try{i.log('Debug logs enabled for "'+p+'" in hls.js version 1.6.16')}catch{return ji()}o.forEach(function(l){Ni[l]=wn(l,f)})}else I(Ni,i);return i}var Cn,An,Ri=Ni,Sn=An?Cn:(An=1,Cn=void 0),Lr=Et(Sn);function vn(f){if(f===void 0&&(f=!0),typeof self<"u")return(f||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Ji(f,p){if(p===void 0&&(p=!1),typeof TextDecoder<"u"){var r=new TextDecoder("utf-8").decode(f);if(p){var i=r.indexOf("\0");return i!==-1?r.substring(0,i):r}return r.replace(/\0/g,"")}for(var o,l,h,v=f.length,C="",T=0;T<v;){if((o=f[T++])===0&&p)return C;if(o!==0&&o!==3)switch(o>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:C+=String.fromCharCode(o);break;case 12:case 13:l=f[T++],C+=String.fromCharCode((31&o)<<6|63&l);break;case 14:l=f[T++],h=f[T++],C+=String.fromCharCode((15&o)<<12|(63&l)<<6|(63&h)<<0)}}return C}function Gi(f){for(var p="",r=0;r<f.length;r++){var i=f[r].toString(16);i.length<2&&(i="0"+i),p+=i}return p}function wr(f){return Uint8Array.from(f.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}var Yn=function(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}},Fn="audio",qi="video",Nn="audiovideo",lr=function(){function f(r){var i,o,l;this._byteRange=null,this._url=null,this._stats=null,this._streams=null,this.base=void 0,this.relurl=void 0,typeof r=="string"&&(r={url:r}),this.base=r,(l=vr(i=this,o="stats"))&&(l.enumerable=!0,Object.defineProperty(i,o,l))}var p=f.prototype;return p.setByteRange=function(r,i){var o,l=r.split("@",2);o=l.length===1?(i==null?void 0:i.byteRangeEndOffset)||0:parseInt(l[1]),this._byteRange=[o,parseInt(l[0])+o]},p.clearElementaryStreamInfo=function(){var r=this.elementaryStreams;r[Fn]=null,r[qi]=null,r[Nn]=null},d(f,[{key:"baseurl",get:function(){return this.base.url}},{key:"byteRange",get:function(){return this._byteRange===null?[]:this._byteRange}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"elementaryStreams",get:function(){var r;return this._streams===null&&(this._streams=((r={})[Fn]=null,r[qi]=null,r[Nn]=null,r)),this._streams},set:function(r){this._streams=r}},{key:"hasStats",get:function(){return this._stats!==null}}
vendor: 5,112 bytes, line 75
75,{key:"hasStreams",get:function(){return this._streams!==null}},{key:"stats",get:function(){return this._stats===null&&(this._stats=new Yn),this._stats},set:function(r){this._stats=r}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=Vt.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(r){this._url=r}}])}();function ti(f){return f.sn!=="initSegment"}var $n=function(f){function p(i,o){var l;return(l=f.call(this,o)||this)._decryptdata=null,l._programDateTime=null,l._ref=null,l._bitrate=void 0,l.rawProgramDateTime=null,l.tagList=[],l.duration=0,l.sn=0,l.levelkeys=void 0,l.type=void 0,l.loader=null,l.keyLoader=null,l.level=-1,l.cc=0,l.startPTS=void 0,l.endPTS=void 0,l.startDTS=void 0,l.endDTS=void 0,l.start=0,l.playlistOffset=0,l.deltaPTS=void 0,l.maxStartPTS=void 0,l.minEndPTS=void 0,l.data=void 0,l.bitrateTest=!1,l.title=null,l.initSegment=null,l.endList=void 0,l.gap=void 0,l.urlId=0,l.type=i,l}ct(p,f);var r=p.prototype;return r.addStart=function(i){this.setStart(this.start+i)},r.setStart=function(i){this.start=i,this._ref&&(this._ref.start=i)},r.setDuration=function(i){this.duration=i,this._ref&&(this._ref.duration=i)},r.setKeyFormat=function(i){var o=this.levelkeys;if(o){var l,h=o[i];!h||(l=this._decryptdata)!=null&&l.keyId||(this._decryptdata=h.getDecryptData(this.sn,o))}},r.abortRequests=function(){var i,o;(i=this.loader)==null||i.abort(),(o=this.keyLoader)==null||o.abort()},r.setElementaryStreamInfo=function(i,o,l,h,v,C){C===void 0&&(C=!1);var T=this.elementaryStreams,w=T[i];w?(w.startPTS=Math.min(w.startPTS,o),w.endPTS=Math.max(w.endPTS,l),w.startDTS=Math.min(w.startDTS,h),w.endDTS=Math.max(w.endDTS,v)):T[i]={startPTS:o,endPTS:l,startDTS:h,endDTS:v,partial:C}},d(p,[{key:"byteLength",get:function(){if(this.hasStats){var i=this.stats.total;if(i)return i}if(this.byteRange.length){var o=this.byteRange[0],l=this.byteRange[1];if(Ot(o)&&Ot(l))return l-o}return null}},{key:"bitrate",get:function(){return this.byteLength?8*this.byteLength/this.duration:this._bitrate?this._bitrate:null},set:function(i){this._bitrate=i}},{key:"decryptdata",get:function(){var i,o=this.levelkeys;if(!o||o.NONE)return null;if(o.identity)this._decryptdata||(this._decryptdata=o.identity.getDecryptData(this.sn));else if((i=this._decryptdata)==null||!i.keyId){var l=Object.keys(o);if(l.length===1){var h=this._decryptdata=o[l[0]]||null;h&&(this._decryptdata=h.getDecryptData(this.sn,o))}}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;var i=Ot(this.duration)?this.duration:0;return this.programDateTime+1e3*i}},{key:"encrypted",get:function(){var i;if((i=this._decryptdata)!=null&&i.encrypted)return!0;if(this.levelkeys){var o,l=Object.keys(this.levelkeys),h=l.length;if(h>1||h===1&&(o=this.levelkeys[l[0]])!=null&&o.encrypted)return!0}return!1}},{key:"programDateTime",get:function(){return this._programDateTime===null&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime},set:function(i){Ot(i)?this._programDateTime=i:this._programDateTime=this.rawProgramDateTime=null}},{key:"ref",get:function(){return ti(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}}])}(lr),Qn=function(f){function p(r,i,o,l,h){var v;(v=f.call(this,o)||this).fragOffset=0,v.duration=0,v.gap=!1,v.independent=!1,v.relurl=void 0,v.fragment=void 0,v.index=void 0,v.duration=r.decimalFloatingPoint("DURATION"),v.gap=r.bool("GAP"),v.independent=r.bool("INDEPENDENT"),v.relurl=r.enumeratedString("URI"),v.fragment=i,v.index=l;var C=r.enumeratedString("BYTERANGE");return C&&v.setByteRange(C,h),h&&(v.fragOffset=h.fragOffset+h.duration),v}return ct(p,f),d(p,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var r=this.elementaryStreams;return!!(r.audio||r.video||r.audiovideo)}}])}(lr);function vr(f,p){var r=Object.getPrototypeOf(f);if(r){var i=Object.getOwnPropertyDescriptor(r,p);return i||vr(r,p)}}var kr=Math.pow(2,32)-1,Pr=[].push,qn={video:1,audio:2,id3:3,text:4};function nn(f){return String.fromCharCode.apply(null,f)}function En(f,p){var r=f[p]<<8|f[p+1];return r<0?65536+r:r}function Ti(f,p){var r=Cr(f,p);return r<0?4294967296+r:r}function sn(f,p){var r=Ti(f,p);return r*=Math.pow(2,32),r+=Ti(f,p+4)}function Cr(f,p){return f[p]<<24|f[p+1]<<16|f[p+2]<<8|f[p+3]}function wi(f,p){var r=[];if(!p.length)return r;for(var i=f.byteLength,o=0;o<i;){var l=Ti(f,o),h=l>1?o+l:i;if(nn(f.subarray(o+4,o+8))===p[0])if(p.length===1)r.push(f.subarray(o+8,h));else{var v=wi(f.subarray(o+8,h),p.slice(1));v.length&&Pr.apply(r,v)}o=h}return r}function Wn(f){var p=[],r=f[0],i=8,o=Ti(f,i);i+=4;var l=0,h=0;r===0?(l=Ti(f,i),h=Ti(f,i+4),i+=8):(l=sn(f,i),h=sn(f,i+8),i+=16),i+=2;var v=f.length+h,C=En(f,i);i+=2;for(var T=0;T<C;T++){var w=i,M=Ti(f,w);w+=4;var F=2147483647&M;
75if((2147483648&M)>>>31==1)return Ri.warn("SIDX has hierarchical references (not supported)"),null;var B=Ti(f,w);w+=4,p.push({referenceSize:F,subsegmentDuration:B,info:{duration:B/o,start:v,end:v+F-1}}),v+=F,i=w+=4}return{earliestPresentationTime:l,timescale:o,version:r,referencesCount:C,references:p}}function fr(f){for(var p=[],r=wi(f,["moov","trak"]),i=0;i<r.length;i++){var o=r[i],l=wi(o,["tkhd"])[0];if(l){var h=l[0],v=Ti(l,h===0?12:20),C=wi(o,["mdia","mdhd"])[0];if(C){var T=Ti(C,(h=C[0])===0?12:20),w=wi(o,["mdia","hdlr"])[0];if(w){var M=nn(w.subarray(8,12)),F={soun:Fn,vide:qi}[M],B=ar(wi(o,["mdia","minf","stbl","stsd"])[0]);F?(p[v]={timescale:T,type:F,stsd:B},p[F]=q({timescale:T,id:v},B)):p[v]={timescale:T,type:M,stsd:B}}}}}return wi(f,["moov","mvex","trex"]).forEach(function(U){var tt=Ti(U,4),et=p[tt];et&&(et.default={duration:Ti(U,12),flags:Ti(U,20)})}),p}function ar(f){var p,r=f.subarray(8),i=r.subarray(86),o=nn(r.subarray(4,8)),l=o,h=o==="enca"||o==="encv";if(h){var v=wi(r,[o])[0];wi(v.subarray(o==="enca"?28:78),["sinf"]).forEach(function(en){var xn=wi(en,["schm"])[0];if(xn){var gn=nn(xn.subarray(4,8));if(gn==="cbcs"||gn==="cenc"){var an=wi(en,["frma"])[0];an&&(l=nn(an))}}})}var C=l;switch(l){case"avc1":case"avc2":case"avc3":case"avc4":var T=wi(i,["avcC"])[0];T&&T.length>3&&(l+="."+Mn(T[1])+Mn(T[2])+Mn(T[3]),p=Hn(C==="avc1"?"dva1":"dvav",i));break;case"mp4a":var w=wi(r,[o])[0],M=wi(w.subarray(28),["esds"])[0];if(M&&M.length>7){var F=4;if(M[F++]!==3)break;F=nr(M,F),F+=2;var B=M[F++];if(128&B&&(F+=2),64&B&&(F+=M[F++]),M[F++]!==4)break;F=nr(M,F);var U=M[F++];if(U!==64||(l+="."+Mn(U),F+=12,M[F++]!==5))break;F=nr(M,F);var tt=M[F++],et=(248&tt)>>3;et===31&&(et+=1+((7&tt)<<3)+((224&M[F])>>5)),l+="."+et}break;case"hvc1":case"hev1":var st=wi(i,["hvcC"])[0];if(st&&st.length>12){var ft=st[1],kt=["","A","B","C"][ft>>6],At=31&ft,Yt=Ti(st,2),Bt=(32&ft)>>5?"H":"L",$t=st[12],oe=st.subarray(6,12);l+="."+kt+At,l+="."+function(en){for(var xn=0,gn=0;gn<32;gn++)xn|=(en>>gn&1)<<31-gn;return xn>>>0}(Yt).toString(16).toUpperCase(),l+="."+Bt+$t;for(var be="",Gt=oe.length;Gt--;){var se=oe[Gt];(se||be)&&(be="."+se.toString(16).toUpperCase()+be)}l+=be}p=Hn(C=="hev1"?"dvhe":"dvh1",i);break;case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":l=Hn(l,i)||l;break;case"vp09":var he=wi(i,["vpcC"])[0];if(he&&he.length>6){var di=he[4],Je=he[5],He=he[6]>>4&15;l+="."+jn(di)+"."+jn(Je)+"."+jn(He)}break;case"av01":var Ve=wi(i,["av1C"])[0];if(Ve&&Ve.length>2){var Ye=Ve[1]>>>5,gi=31&Ve[1],Xi=Ve[2]>>>7?"H":"M",Li=(64&Ve[2])>>6,Ki=(32&Ve[2])>>5,Kn=Ye===2&&Li?Ki?12:10:Li?10:8,Dn=(16&Ve[2])>>4,bn=(8&Ve[2])>>3,Jn=(4&Ve[2])>>2,On=3&Ve[2];l+="."+Ye+"."+jn(gi)+Xi+"."+jn(Kn)+"."+Dn+"."+bn+Jn+On+"."+jn(1)+"."+jn(1)+"."+jn(1)+".0",p=Hn("dav1",i)}}return{codec:l,encrypted:h,supplemental:p}}function Hn(f,p){var r=wi(p,["dvvC"]),i=r.length?r[0]:wi(p,["dvcC"])[0];if(i){var o=i[2]>>1&127,l=i[2]<<5&32|i[3]>>3&31;return f+"."+jn(o)+"."+jn(l)}}function nr(f,p){for(var r=p+5;128&f[p++]&&p<r;);return p}function Mn(f){return("0"+f.toString(16).toUpperCase()).slice(-2)}function jn(f){return(f<10?"0":"")+f}function Gn(f,p){wi(f,["moov","trak"]).forEach(function(r){var i=wi(r,["mdia","minf","stbl","stsd"])[0];if(i){var o=i.subarray(8),l=wi(o,["enca"]),h=l.length>0;h||(l=wi(o,["encv"])),l.forEach(function(v){wi(h?v.subarray(28):v.subarray(78),["sinf"]).forEach(function(C){var T=function(w){var M=wi(w,["schm"])[0];if(M){var F=nn(M.subarray(4,8));if(F==="cbcs"||F==="cenc"){var B=wi(w,["schi","tenc"])[0];if(B)return B}}}(C);T&&p(T,h)})})}})}function un(f,p){var r=new Uint8Array(f.length+p.length);return r.set(f),r.set(p,f.length),r}function pr(f,p){var r=[],i=p.samples,o=p.timescale,l=p.id,h=!1;return wi(i,["moof"]).map(function(v){var C=v.byteOffset-8;wi(v,["traf"]).map(function(T){var w=wi(T,["tfdt"]).map(function(M){var F=M[0],B=Ti(M,4);return F===1&&(B*=Math.pow(2,32),B+=Ti(M,8)),B/o})[0];return w!==void 0&&(f=w),wi(T,["tfhd"]).map(function(M){var F=Ti(M,4),B=16777215&Ti(M,0),U=0,tt=(16&B)!=0,et=0,st=(32&B)!=0,ft=8;F===l&&(1&B&&(ft+=8),2&B&&(ft+=4),8&B&&(U=Ti(M,ft),ft+=4),tt&&(et=Ti(M,ft),ft+=4),st&&(ft+=4),p.type==="video"&&(h=cr(p.codec)),wi(T,["trun"]).map(function(kt){var At=kt[0],Yt=16777215&Ti(kt,0),Bt=(1&Yt)!=0,$t=0,oe=(4&Yt)!=0,be=(256&Yt)!=0,Gt=0,se=(512&Yt)!=0,he=0,di=(1024&Yt)!=0,Je=(2048&Yt)!=0,He=0,Ve=Ti(kt,4),Ye=8;Bt&&($t=Ti(kt,Ye),Ye+=4),oe&&(Ye+=4);for(var gi=$t+C,Xi=0;Xi<Ve;Xi++){if(be?(Gt=Ti(kt,Ye),Ye+=4):Gt=U,se?(he=Ti(kt,Ye),Ye+=4):he=et,di&&(Ye+=4),Je&&(He=At===0?Ti(kt,Ye):Cr(kt,Ye),Ye+=4),p.type===qi)for(var Li=0;Li<he;){var Ki=Ti(i,gi);yr(h,i[gi+=4])&&Mr(i.subarray(gi,gi+Ki),h?2:1,f+He/o,r),gi+=Ki,Li+=Ki+4}f+=Gt/o}}))})})}),r}function cr(f){if(!f)return!1;var p=f.substring(0,4);return p==="hvc1"||p==="hev1"||p==="dvh1"||p==="dvhe"}function yr(f,p){if(f){var r=p>>1&63;return r===39||r===40}return(31&p)==6}function Mr(f,p,r,i){var o=Zn(f),l=0;l+=p;for(var h=0,v=0,C=0;l<o.length;){h=0;do{if(l>=o.length)break;h+=C=o[l++]}while(C===255);v=0;do{if(l>=o.length)break;v+=C=o[l++]}while(C===255);var T=o.length-l,w=l;if(v<T)l+=v;else if(v>T){Ri.error("Malformed SEI payload. "+v+" is too small, only "+T+" bytes left to parse.");break}if(h===4){if(o[w++]===181){var M=En(o,w);if(w+=2,M===49){var F=Ti(o,w);if(w+=4,F===1195456820){var B=o[w++];
75if(B===3){var U=o[w++],tt=64&U,et=tt?2+3*(31&U):0,st=new Uint8Array(et);if(tt){st[0]=U;for(var ft=1;ft<et;ft++)st[ft]=o[w++]}i.push({type:B,payloadType:h,pts:r,bytes:st})}}}}}else if(h===5&&v>16){for(var kt=[],At=0;At<16;At++){var Yt=o[w++].toString(16);kt.push(Yt.length==1?"0"+Yt:Yt),At!==3&&At!==5&&At!==7&&At!==9||kt.push("-")}for(var Bt=v-16,$t=new Uint8Array(Bt),oe=0;oe<Bt;oe++)$t[oe]=o[w++];i.push({payloadType:h,pts:r,uuid:kt.join(""),userData:Ji($t),userDataBytes:$t})}}}function Zn(f){for(var p=f.byteLength,r=[],i=1;i<p-2;)f[i]===0&&f[i+1]===0&&f[i+2]===3?(r.push(i+2),i+=2):i++;if(r.length===0)return f;var o=p-r.length,l=new Uint8Array(o),h=0;for(i=0;i<o;h++,i++)h===r[0]&&(h++,r.shift()),l[i]=f[h];return l}var Ln=function(){return/\(Windows.+Firefox\//i.test(navigator.userAgent)},Tn={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function Rt(f,p){var r=Tn[p];return!!r&&!!r[f.slice(0,4)]}function Ft(f,p,r){return r===void 0&&(r=!0),!f.split(",").some(function(i){return!Zt(i,p,r)})}function Zt(f,p,r){var i;r===void 0&&(r=!0);var o=vn(r);return(i=o==null?void 0:o.isTypeSupported(Le(f,p)))!=null&&i}function Le(f,p){return p+"/mp4;codecs="+f}function oi(f){if(f){var p=f.substring(0,4);return Tn.video[p]}return 2}function Ge(f){var p=Ln();return f.split(",").reduce(function(r,i){var o=p&&cr(i)?9:Tn.video[i];return o?(2*o+r)/(r?3:2):(Tn.audio[i]+r)/(r?2:1)},0)}var Ke={},ki=/flac|opus|mp4a\.40\.34/i;function Pi(f,p){return p===void 0&&(p=!0),f.replace(ki,function(r){return function(i,o){if(o===void 0&&(o=!0),Ke[i])return Ke[i];for(var l={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[i],h=0;h<l.length;h++){var v;if(Zt(l[h],"audio",o))return Ke[i]=l[h],l[h];if(l[h]==="mp3"&&(v=vn(o))!=null&&v.isTypeSupported("audio/mpeg"))return""}return i}(r.toLowerCase(),p)})}function Oi(f,p){if(f&&(f.length>4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(f)!==-1)&&(ci(f,"audio")||ci(f,"video")))return f;if(p){var r=p.split(",");if(r.length>1){if(f){for(var i=r.length;i--;)if(r[i].substring(0,4)===f.substring(0,4))return r[i]}return r[0]}}return p||f}function ci(f,p){return Rt(f,p)&&Zt(f,p)}function tn(f){if(f.startsWith("av01.")){for(var p=f.split("."),r=["0","111","01","01","01","0"],i=p.length;i>4&&i<10;i++)p[i]=r[i-4];return p.join(".")}return f}function Ui(f){var p=vn(f)||{isTypeSupported:function(){return!1}};return{mpeg:p.isTypeSupported("audio/mpeg"),mp3:p.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:!1}}function cn(f){return f.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}var $i=["NONE","TYPE-0","TYPE-1",null],Hi=["SDR","PQ","HLG"],xi="",vi="YES",Qi="v2";function dt(f){var p=f.canSkipUntil,r=f.canSkipDateRanges,i=f.age;return p&&i<p/2?r?Qi:vi:xi}var X=function(){function f(p,r,i){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=p,this.part=r,this.skip=i}return f.prototype.addDirectives=function(p){var r=new self.URL(p);return this.msn!==void 0&&r.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&r.searchParams.set("_HLS_part",this.part.toString()),this.skip&&r.searchParams.set("_HLS_skip",this.skip),r.href},f}(),_t=function(){function f(r){if(this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.supplemental=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[r.url],this._attrs=[r.attrs],this.bitrate=r.bitrate,r.details&&(this.details=r.details),this.id=r.id||0,this.name=r.name,this.width=r.width||0,this.height=r.height||0,this.frameRate=r.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=r.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=r.audioCodec,this.videoCodec=r.videoCodec,this.codecSet=[r.videoCodec,r.audioCodec].filter(function(l){return!!l}).map(function(l){return l.substring(0,4)}).join(","),"supplemental"in r){var i;this.supplemental=r.supplemental;var o=(i=r.supplemental)==null?void 0:i.videoCodec;o&&o!==r.videoCodec&&(this.codecSet+=","+o.substring(0,4))}this.addGroupId("audio",r.attrs.AUDIO),this.addGroupId("text",r.attrs.SUBTITLES)}var p=f.prototype;return p.hasAudioGroup=function(r){return jt(this._audioGroups,r)},p.hasSubtitleGroup=function(r){return jt(this._subtitleGroups,r)},p.addGroupId=function(r,i){if(i){if(r==="audio"){var o=this._audioGroups;o||(o=this._audioGroups=[]),o.indexOf(i)===-1&&o.push(i)}else if(r==="text"){var l=this._subtitleGroups;l||(l=this._subtitleGroups=[]),l.indexOf(i)===-1&&l.push(i)}}},p.addFallback=function(){},d(f,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"averageBitrate",get:function(){return this._avgBitrate||this.realBitrate||this.bitrate}},{key:"attrs",get:function(){return this._attrs[0]}},{key:"codecs",get:function(){return this.attrs.CODECS||""}},{key:"pathwayId",get:function(){return this.attrs["PATHWAY-ID"]||"."}},{key:"videoRange",get:function(){return this.attrs["VIDEO-RANGE"]||"SDR"}},{key:"score",get:function(){return this.attrs.optionalFloat("SCORE",0)}},{key:"uri",get:function(){return this.url[0]||""}},{key:"audioGroups",get:function(){return this._audioGroups}},{key:"subtitleGroups",get:function(){return this._subtitleGroups}},{key:"urlId",get:function(){return 0},set:function(r){}},{key:"audioGroupIds",get:function(){return this.audioGroups?[this.audioGroupId]:void 0}},{key:"textGroupIds",get:function(){return this.subtitleGroups?[this.textGroupId]:void 0}},{key:"audioGroupId",get:function(){var r;return(r=this.audioGroups)==null?void 0:r[0]}},{key:"textGroupId",get:function(){var r;return(r=this.subtitleGroups)==null?void 0:r[0]}}])}();function jt(f,p){return!(!p||!f)&&f.indexOf(p)!==-1}function Pe(f,p){var r=!1,i=[];if(f&&(r=f!=="SDR",i=[f]),p){var o=(i=p.allowedVideoRanges||Hi.slice(0)).join("")!=="SDR"&&!p.videoCodec;(r=p.preferHDR!==void 0?p.preferHDR:o&&function(){if(typeof matchMedia=="function"){var l=matchMedia("(dynamic-range: high)"),h=matchMedia("bad query");if(l.media!==h.media)return l.matches===!0}return!1}())||(i=["SDR"])}return{preferHDR:r,allowedVideoRanges:i}}var Ce=function(f,p){return JSON.stringify(f,function(r){var i=new WeakSet;return function(o,l){if(r&&(l=r(o,l)),typeof l=="object"&&l!==null){if(i.has(l))return;i.add(l)}return l}}(p))};function si(f,p){Ri.log('[abr] start candidates with "'+f+'" ignored because '+p)}function ai(f){return f.reduce(function(p,r){var i=p.groups[r.groupId];i||(i=p.groups[r.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),i.tracks.push(r);var o=r.channels||"2";return i.channels[o]=(i.channels[o]||0)+1,i.hasDefault=i.hasDefault||r.default,i.hasAutoSelect=i.hasAutoSelect||r.autoselect,i.hasDefault&&(p.hasDefaultAudio=!0),i.hasAutoSelect&&(p.hasAutoSelectAudio=!0),p},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function Ai(f,p){var r;return!!f&&f!==((r=p.loadLevelObj)==null?void 0:r.uri)}var li=function(f){function p(i){var o;return(o=f.call(this,"abr",i.logger)||this).hls=void 0,o.lastLevelLoadSec=0,o.lastLoadedFragLevel=-1,o.firstSelection=-1,o._nextAutoLevel=-1,o.nextAutoLevelKey="",o.audioTracksByGroup=null,o.codecTiers=null,o.timer=-1,o.fragCurrent=null,o.partCurrent=null,o.bitrateTestDelay=0,o.rebufferNotice=-1,o.supportedCache={},o.bwEstimator=void 0,o._abandonRulesCheck=function(l){var h,v=o,C=v.fragCurrent,T=v.partCurrent,w=v.hls,M=w.autoLevelEnabled,F=w.media;if(C&&F){var B=performance.now(),U=T?T.stats:C.stats,tt=T?T.duration:C.duration,et=B-U.loading.start,st=w.minAutoLevel,ft=C.level,kt=o._nextAutoLevel;if(U.aborted||U.loaded&&U.loaded===U.total||ft<=st)return o.clearTimer(),void(o._nextAutoLevel=-1);if(M){var At=kt>-1&&kt!==ft,Yt=!!l||At;if(Yt||!F.paused&&F.playbackRate&&F.readyState){var Bt=w.mainForwardBufferInfo;if(Yt||Bt!==null){var $t=o.bwEstimator.getEstimateTTFB(),oe=Math.abs(F.playbackRate);if(!(et<=Math.max($t,tt/(2*oe)*1e3))){var be=Bt?Bt.len/oe:0,Gt=U.loading.first?U.loading.first-U.loading.start:-1,se=U.loaded&&Gt>-1,he=o.getBwEstimate(),di=w.levels,Je=di[ft],He=Math.max(U.loaded,Math.round(tt*(C.bitrate||Je.averageBitrate)/8)),Ve=se?et-Gt:et;Ve<1&&se&&(Ve=Math.min(et,8*U.loaded/he));var Ye=se?1e3*U.loaded/Ve:0,gi=$t/1e3,Xi=Ye?(He-U.loaded)/Ye:8*He/he+gi;if(!(Xi<=be)){var Li,Ki=Ye?8*Ye:he,Kn=((h=(l==null?void 0:l.details)||o.hls.latestLevelDetails)==null?void 0:h.live)===!0,Dn=o.hls.config.abrBandWidthUpFactor,bn=Number.POSITIVE_INFINITY;for(Li=ft-1;Li>st;Li--){var Jn=di[Li].maxBitrate,On=!di[Li].details||Kn;if((bn=o.getTimeToLoadFrag(gi,Ki,tt*Jn,On))<Math.min(be,tt+gi))break}if(!(bn>=Xi||bn>10*tt)){se?o.bwEstimator.sample(et-Math.min($t,Gt),U.loaded):o.bwEstimator.sampleTTFB(et);var en=di[Li].maxBitrate;o.getBwEstimate()*Dn>en&&o.resetEstimator(en);var xn=o.findBestLevel(en,st,Li,0,be,1,1);xn>-1&&(Li=xn),o.warn("Fragment "+C.sn+(T?" part "+T.index:"")+" of level "+ft+` is loading too slowly;
76      Fragment duration: `+C.duration.toFixed(3)+`
77      Time to underbuffer: `+be.toFixed(3)+` s
78      Estimated load time for current fragment: `+Xi.toFixed(3)+` s
79      Estimated load time for down switch fragment: `+bn.toFixed(3)+` s
80      TTFB estimate: `+(0|Gt)+` ms
81      Current BW estimate: `+(Ot(he)?0|he:"Unknown")+` bps
82      New BW estimate: `+(0|o.getBwEstimate())+` bps
83      Switching to level `+Li+" @ "+(0|en)+" bps"),w.nextLoadLevel=w.nextAutoLevel=Li,o.clearTimer();var gn=function(){if(o.clearTimer(),o.fragCurrent===C&&o.hls.loadLevel===Li&&Li>0){var an=o.getStarvationDelay();if(o.warn("Aborting inflight request "+(Li>0?"and switching down":"")+`
84      Fragment duration: `+C.duration.toFixed(3)+` s
85      Time to underbuffer: `+an.toFixed(3)+" s"),C.abortRequests(),o.fragCurrent=o.partCurrent=null,Li>
vendor: 6,036 bytes, line 85
85st){var Vn=o.findBestLevel(o.hls.levels[st].bitrate,st,Li,0,an,1,1);Vn===-1&&(Vn=st),o.hls.nextLoadLevel=o.hls.nextAutoLevel=Vn,o.resetEstimator(o.hls.levels[Vn].bitrate)}}};At||Xi>2*bn?gn():o.timer=self.setInterval(gn,1e3*bn),w.trigger(ot.FRAG_LOAD_EMERGENCY_ABORTED,{frag:C,part:T,stats:U})}}}}}}}},o.hls=i,o.bwEstimator=o.initEstimator(),o.registerListeners(),o}ct(p,f);var r=p.prototype;return r.resetEstimator=function(i){i&&(this.log("setting initial bwe to "+i),this.hls.config.abrEwmaDefaultEstimate=i),this.firstSelection=-1,this.bwEstimator=this.initEstimator()},r.initEstimator=function(){var i=this.hls.config;return new We(i.abrEwmaSlowVoD,i.abrEwmaFastVoD,i.abrEwmaDefaultEstimate)},r.registerListeners=function(){var i=this.hls;i.on(ot.MANIFEST_LOADING,this.onManifestLoading,this),i.on(ot.FRAG_LOADING,this.onFragLoading,this),i.on(ot.FRAG_LOADED,this.onFragLoaded,this),i.on(ot.FRAG_BUFFERED,this.onFragBuffered,this),i.on(ot.LEVEL_SWITCHING,this.onLevelSwitching,this),i.on(ot.LEVEL_LOADED,this.onLevelLoaded,this),i.on(ot.LEVELS_UPDATED,this.onLevelsUpdated,this),i.on(ot.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),i.on(ot.ERROR,this.onError,this)},r.unregisterListeners=function(){var i=this.hls;i&&(i.off(ot.MANIFEST_LOADING,this.onManifestLoading,this),i.off(ot.FRAG_LOADING,this.onFragLoading,this),i.off(ot.FRAG_LOADED,this.onFragLoaded,this),i.off(ot.FRAG_BUFFERED,this.onFragBuffered,this),i.off(ot.LEVEL_SWITCHING,this.onLevelSwitching,this),i.off(ot.LEVEL_LOADED,this.onLevelLoaded,this),i.off(ot.LEVELS_UPDATED,this.onLevelsUpdated,this),i.off(ot.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),i.off(ot.ERROR,this.onError,this))},r.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=this.supportedCache=null,this.fragCurrent=this.partCurrent=null},r.onManifestLoading=function(i,o){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.supportedCache={},this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()},r.onLevelsUpdated=function(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null},r.onMaxAutoLevelUpdated=function(){this.firstSelection=-1,this.nextAutoLevelKey=""},r.onFragLoading=function(i,o){var l,h=o.frag;this.ignoreFragment(h)||(h.bitrateTest||(this.fragCurrent=h,this.partCurrent=(l=o.part)!=null?l:null),this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100))},r.onLevelSwitching=function(i,o){this.clearTimer()},r.onError=function(i,o){if(!o.fatal)switch(o.details){case mt.BUFFER_ADD_CODEC_ERROR:case mt.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case mt.FRAG_LOAD_TIMEOUT:var l=o.frag,h=this.fragCurrent,v=this.partCurrent;if(l&&h&&l.sn===h.sn&&l.level===h.level){var C=performance.now(),T=v?v.stats:l.stats,w=C-T.loading.start,M=T.loading.first?T.loading.first-T.loading.start:-1;if(T.loaded&&M>-1){var F=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(w-Math.min(F,M),T.loaded)}else this.bwEstimator.sampleTTFB(w)}}},r.getTimeToLoadFrag=function(i,o,l,h){return i+l/o+(h?i+this.lastLevelLoadSec:0)},r.onLevelLoaded=function(i,o){var l=this.hls.config,h=o.stats.loading,v=h.end-h.first;Ot(v)&&(this.lastLevelLoadSec=v/1e3),o.details.live?this.bwEstimator.update(l.abrEwmaSlowLive,l.abrEwmaFastLive):this.bwEstimator.update(l.abrEwmaSlowVoD,l.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(o.levelInfo)},r.onFragLoaded=function(i,o){var l=o.frag,h=o.part,v=h?h.stats:l.stats;if(l.type===ue&&this.bwEstimator.sampleTTFB(v.loading.first-v.loading.start),!this.ignoreFragment(l)){if(this.clearTimer(),l.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){var C=h?h.duration:l.duration,T=this.hls.levels[l.level],w=(T.loaded?T.loaded.bytes:0)+v.loaded,M=(T.loaded?T.loaded.duration:0)+C;T.loaded={bytes:w,duration:M},T.realBitrate=Math.round(8*w/M)}if(l.bitrateTest){var F={stats:v,frag:l,part:h,id:l.type};this.onFragBuffered(ot.FRAG_BUFFERED,F),l.bitrateTest=!1}else this.lastLoadedFragLevel=l.level}},r.onFragBuffered=function(i,o){var l=o.frag,h=o.part,v=h!=null&&h.stats.loaded?h.stats:l.stats;if(!v.aborted&&!this.ignoreFragment(l)){var C=v.parsing.end-v.loading.start-Math.min(v.loading.first-v.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(C,v.loaded),v.bwEstimate=this.getBwEstimate(),l.bitrateTest?this.bitrateTestDelay=C/1e3:this.bitrateTestDelay=0}},r.ignoreFragment=function(i){return i.type!==ue||i.sn==="initSegment"},r.clearTimer=function(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)},r.getAutoLevelKey=function(){return this.getBwEstimate()+"_"+this.getStarvationDelay().toFixed(2)},r.getNextABRAutoLevel=function(){var i=this.fragCurrent,o=this.partCurrent,l=this.hls;if(l.levels.length<=1)return l.loadLevel;var h=l.maxAutoLevel,v=l.config,C=l.minAutoLevel,T=o?o.duration:i?i.duration:0,w=this.getBwEstimate(),M=this.getStarvationDelay(),F=v.abrBandWidthFactor,B=v.abrBandWidthUpFactor;if(M){var U=this.findBestLevel(w,C,h,M,0,F,B);if(U>=0)return this.rebufferNotice=-1,U}var tt=T?Math.min(T,v.maxStarvationDelay):v.maxStarvationDelay;if(!M){var et=this.bitrateTestDelay;et&&(tt=(T?Math.min(T,v.maxLoadingDelay):v.maxLoadingDelay)-et,this.info("bitrate test took "+Math.round(1e3*et)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*tt)+" ms"),F=B=1)}var st=this.findBestLevel(w,C,h,M,tt,F,B);if(this.rebufferNotice!==st&&(this.rebufferNotice=st,this.info((M?"rebuffering expected":"buffer is empty")+", optimal quality level "+st)),st>-1)return st;var ft=l.levels[C],kt=l.loadLevelObj;return kt&&(ft==null?void 0:ft.bitrate)<kt.bitrate?C:l.loadLevel},r.getStarvationDelay=function(){var i=this.hls,o=i.media;if(!o)return 1/0;var l=o&&o.playbackRate!==0?Math.abs(o.playbackRate):1,h=i.mainForwardBufferInfo;
85return(h?h.len:0)/l},r.getBwEstimate=function(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate},r.findBestLevel=function(i,o,l,h,v,C,T){var w,M=this,F=h+v,B=this.lastLoadedFragLevel,U=B===-1?this.hls.firstLevel:B,tt=this.fragCurrent,et=this.partCurrent,st=this.hls,ft=st.levels,kt=st.allAudioTracks,At=st.loadLevel,Yt=st.config;if(ft.length===1)return 0;var Bt,$t=ft[U],oe=!((w=this.hls.latestLevelDetails)==null||!w.live),be=At===-1||B===-1,Gt="SDR",se=($t==null?void 0:$t.frameRate)||0,he=Yt.audioPreference,di=Yt.videoPreference,Je=(this.audioTracksByGroup||(this.audioTracksByGroup=ai(kt)),-1);if(be){if(this.firstSelection!==-1)return this.firstSelection;var He=this.codecTiers||(this.codecTiers=function(gn,an,Vn,or){return gn.slice(Vn,or+1).reduce(function(_n,ln,sr){if(!ln.codecSet)return _n;var Er=ln.audioGroups,rn=_n[ln.codecSet];rn||(_n[ln.codecSet]=rn={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:sr,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!Er,fragmentError:0}),rn.minBitrate=Math.min(rn.minBitrate,ln.bitrate);var tr=Math.min(ln.height,ln.width);return rn.minHeight=Math.min(rn.minHeight,tr),rn.minFramerate=Math.min(rn.minFramerate,ln.frameRate),rn.minIndex=Math.min(rn.minIndex,sr),rn.maxScore=Math.max(rn.maxScore,ln.score),rn.fragmentError+=ln.fragmentError,rn.videoRanges[ln.videoRange]=(rn.videoRanges[ln.videoRange]||0)+1,_n},{})}(ft,0,o,l)),Ve=function(gn,an,Vn,or,_n){for(var ln=Object.keys(gn),sr=or==null?void 0:or.channels,Er=or==null?void 0:or.audioCodec,rn=_n==null?void 0:_n.videoCodec,tr=sr&&parseInt(sr)===2,Wr=!1,_r=!1,Br=1/0,Fr=1/0,Tr=1/0,Nr=1/0,$r=0,gr=[],eo=Pe(an,_n),po=eo.preferHDR,Io=eo.allowedVideoRanges,Co=function(){var fn=gn[ln[So]];Wr||(Wr=fn.channels[2]>0),Br=Math.min(Br,fn.minHeight),Fr=Math.min(Fr,fn.minFramerate),Tr=Math.min(Tr,fn.minBitrate),Io.filter(function(er){return fn.videoRanges[er]>0}).length>0&&(_r=!0)},So=ln.length;So--;)Co();Br=Ot(Br)?Br:0,Fr=Ot(Fr)?Fr:0;var mo=Math.max(1080,Br),go=Math.max(30,Fr);Tr=Ot(Tr)?Tr:Vn,Vn=Math.max(Tr,Vn),_r||(an=void 0);var qr=ln.length>1;return{codecSet:ln.reduce(function(fn,er){var hr=gn[er];if(er===fn)return fn;if(gr=_r?Io.filter(function(Qr){return hr.videoRanges[Qr]>0}):[],qr){if(hr.minBitrate>Vn)return si(er,"min bitrate of "+hr.minBitrate+" > current estimate of "+Vn),fn;if(!hr.hasDefaultAudio)return si(er,"no renditions with default or auto-select sound found"),fn;if(Er&&er.indexOf(Er.substring(0,4))%5!=0)return si(er,'audio codec preference "'+Er+'" not found'),fn;if(sr&&!tr){if(!hr.channels[sr])return si(er,"no renditions with "+sr+" channel sound found (channels options: "+Object.keys(hr.channels)+")"),fn}else if((!Er||tr)&&Wr&&hr.channels[2]===0)return si(er,"no renditions with stereo sound found"),fn;if(hr.minHeight>mo)return si(er,"min resolution of "+hr.minHeight+" > maximum of "+mo),fn;if(hr.minFramerate>go)return si(er,"min framerate of "+hr.minFramerate+" > maximum of "+go),fn;if(!gr.some(function(Qr){return hr.videoRanges[Qr]>0}))return si(er,"no variants with VIDEO-RANGE of "+Ce(gr)+" found"),fn;if(rn&&er.indexOf(rn.substring(0,4))%5!=0)return si(er,'video codec preference "'+rn+'" not found'),fn;if(hr.maxScore<$r)return si(er,"max score of "+hr.maxScore+" < selected max of "+$r),fn}return fn&&(Ge(er)>=Ge(fn)||hr.fragmentError>gn[fn].fragmentError)?fn:(Nr=hr.minIndex,$r=hr.maxScore,er)},void 0),videoRanges:gr,preferHDR:po,minFramerate:Fr,minBitrate:Tr,minIndex:Nr}}(He,Gt,i,he,di),Ye=Ve.codecSet,gi=Ve.videoRanges,Xi=Ve.minFramerate,Li=Ve.minBitrate,Ki=Ve.minIndex,Kn=Ve.preferHDR;Je=Ki,Bt=Ye,Gt=Kn?gi[gi.length-1]:gi[0],se=Xi,i=Math.max(i,Li),this.log("picked start tier "+Ce(Ve))}else Bt=$t==null?void 0:$t.codecSet,Gt=$t==null?void 0:$t.videoRange;for(var Dn,bn=et?et.duration:tt?tt.duration:0,Jn=this.bwEstimator.getEstimateTTFB()/1e3,On=[],en=function(){var gn,an=ft[xn],Vn=xn>U;if(!an)return 0;if((Bt&&an.codecSet!==Bt||Gt&&an.videoRange!==Gt||Vn&&se>an.frameRate||!Vn&&se>0&&se<an.frameRate||(gn=an.supportedResult)!=null&&(gn=gn.decodingInfoResults)!=null&&gn.some(function(tr){return tr.smooth===!1}
85))&&(!be||xn!==Je))return On.push(xn),0;var or,_n=an.details,ln=(et?_n==null?void 0:_n.partTarget:_n==null?void 0:_n.averagetargetduration)||bn;or=Vn?T*i:C*i;var sr=bn&&h>=2*bn&&v===0?an.averageBitrate:an.maxBitrate,Er=M.getTimeToLoadFrag(Jn,or,sr*ln,_n===void 0);if(or>=sr&&(xn===B||an.loadError===0&&an.fragmentError===0)&&(Er<=Jn||!Ot(Er)||oe&&!M.bitrateTestDelay||Er<F)){var rn=M.forcedAutoLevel;return xn===At||rn!==-1&&rn===At||(On.length&&M.trace("Skipped level(s) "+On.join(",")+" of "+l+' max with CODECS and VIDEO-RANGE:"'+ft[On[0]].codecs+'" '+ft[On[0]].videoRange+'; not compatible with "'+Bt+'" '+Gt),M.info("switch candidate:"+U+"->"+xn+" adjustedbw("+Math.round(or)+")-bitrate="+Math.round(or-sr)+" ttfb:"+Jn.toFixed(1)+" avgDuration:"+ln.toFixed(1)+" maxFetchDuration:"+F.toFixed(1)+" fetchDuration:"+Er.toFixed(1)+" firstSelection:"+be+" codecSet:"+an.codecSet+" videoRange:"+an.videoRange+" hls.loadLevel:"+At)),be&&(M.firstSelection=xn),{v:xn}}},xn=l;xn>=o;xn--)if((Dn=en())!==0&&Dn)return Dn.v;return-1},r.deriveNextAutoLevel=function(i){var o=this.hls,l=o.maxAutoLevel,h=o.minAutoLevel;return Math.min(Math.max(i,h),l)},d(p,[{key:"firstAutoLevel",get:function(){var i=this.hls,o=i.maxAutoLevel,l=i.minAutoLevel,h=this.getBwEstimate(),v=this.hls.config.maxStarvationDelay,C=this.findBestLevel(h,l,o,0,v,1,1);if(C>-1)return C;var T=this.hls.firstLevel,w=Math.min(Math.max(T,l),o);return this.warn("Could not find best starting auto level. Defaulting to first in playlist "+T+" clamped to "+w),w}},{key:"forcedAutoLevel",get:function(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}},{key:"nextAutoLevel",get:function(){var i=this.forcedAutoLevel,o=this.bwEstimator.canEstimate(),l=this.lastLoadedFragLevel>-1;if(!(i===-1||o&&l&&this.nextAutoLevelKey!==this.getAutoLevelKey()))return i;var h=o&&l?this.getNextABRAutoLevel():this.firstAutoLevel;if(i!==-1){var v=this.hls.levels;if(v.length>Math.max(i,h)&&v[i].loadError<=v[h].loadError)return i}return this._nextAutoLevel=h,this.nextAutoLevelKey=this.getAutoLevelKey(),h},set:function(i){var o=this.deriveNextAutoLevel(i);this._nextAutoLevel!==o&&(this.nextAutoLevelKey="",this._nextAutoLevel=o)}}])}(ii),ui=function(){function f(r){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=r}var p=f.prototype;return p.destroy=function(){this.tracks=this.queues=null},p.append=function(r,i,o){if(this.queues!==null&&this.tracks!==null){var l=this.queues[i];l.push(r),l.length!==1||o||this.executeNext(i)}},p.appendBlocker=function(r){var i=this;return new Promise(function(o){var l={label:"async-blocker",execute:o,onStart:function(){},onComplete:function(){},onError:function(){}};i.append(l,r)})},p.prependBlocker=function(r){var i=this;return new Promise(function(o){if(i.queues){var l={label:"async-blocker-prepend",execute:o,onStart:function(){},onComplete:function(){},onError:function(){}};i.queues[r].unshift(l)}})},p.removeBlockers=function(){this.queues!==null&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(function(r){var i,o=(i=r[0])==null?void 0:i.label;o!=="async-blocker"&&o!=="async-blocker-prepend"||(r[0].execute(),r.splice(0,1))})},p.unblockAudio=function(r){this.queues!==null&&this.queues.audio[0]===r&&this.shiftAndExecuteNext("audio")},p.executeNext=function(r){if(this.queues!==null&&this.tracks!==null){var i=this.queues[r];if(i.length){var o=i[0];try{o.execute()}catch(v){var l;if(o.onError(v),this.queues===null||this.tracks===null)return;var h=(l=this.tracks[r])==null?void 0:l.buffer;h!=null&&h.updating||this.shiftAndExecuteNext(r)}}}},p.shiftAndExecuteNext=function(r){this.queues!==null&&(this.queues[r].shift(),this.executeNext(r))},p.current=function(r){var i;return((i=this.queues)==null?void 0:i[r][0])||null},p.toString=function(){var r=this.queues,i=this.tracks;return r===null||i===null?"<destroyed>":`
86`+this.list("video")+`
87`+this.list("audio")+`
88`+this.list("audiovideo")+"}"},p.list=function(r){var i,o;return(i=this.queues)!=null&&i[r]||(o=this.tracks)!=null&&o[r]?r+": ("+this.listSbInfo(r)+") "+this.listOps(r):""},p.listSbInfo=function(r){var i,o=(i=this.tracks)==null?void 0:i[r],l=o==null?void 0:o.buffer;return l?"SourceBuffer"+(l.updating?" updating":"")+(o.ended?" ended":"")+(o.ending?" ending":""):"none"},p.listOps=function(r){var i;return((i=this.queues)==null?void 0:i[r].map(function(o){return o.label}).join(", "))||""},f}(),Zi=function(f,p){for(var r=0,i=f.length-1,o=null,l=null;r<=i;){var h=p(l=f[o=(r+i)/2|0]);if(h>0)r=o+1;else{if(!(h<0))return l;i=o-1}}return null};function kn(f,p,r,i,o){r===void 0&&(r=0),i===void 0&&(i=0),o===void 0&&(o=.005);var l=null;if(f){l=p[1+f.sn-p[0].sn]||null;var h=f.endDTS-r;h>0&&h<15e-7&&(r+=15e-7),l&&f.level!==l.level&&l.end<=f.end&&(l=p[2+f.sn-p[0].sn]||null)}else r===0&&p[0].start===0&&(l=p[0]);if(l&&((!f||f.level===l.level)&&ur(r,i,l)===0||function(C,T,w){if(T&&T.start===0&&T.level<C.level&&(T.endPTS||0)>0){var M=T.tagList.reduce(function(F,B){return B[0]==="INF"&&(F+=parseFloat(B[1])),F},w);return C.start<=M}return!1}(l,f,Math.min(o,i))))return l;var v=Zi(p,ur.bind(null,r,i));return!v||v===f&&l?l:v}function ur(f,p,r){if(f===void 0&&(f=0),p===void 0&&(p=0),r.start<=f&&r.start+r.duration>f)return 0;var i=Math.min(p,r.duration+(r.deltaPTS?r.deltaPTS:0));return r.start+r.duration-i<=f?1:r.start-i>f&&r.start?-1:0}function Sr(f,p,r){var i=1e3*Math.min(p,r.duration+(r.deltaPTS?r.deltaPTS:0));return(r.endProgramDateTime||0)-i>f}function Rn(f){switch(f.details){case mt.FRAG_LOAD_TIMEOUT:case mt.KEY_LOAD_TIMEOUT:case mt.LEVEL_LOAD_TIMEOUT:case mt.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function rr(f){return f.details.startsWith("key")}function bt(f){return rr(f)&&!!f.frag&&!f.frag.decryptdata}function gt(f,p){var r=Rn(p);return f.default[(r?"timeout":"error")+"Retry"]}function Mt(f,p){var r=f.backoff==="linear"?1:Math.pow(2,p);return Math.min(r*f.retryDelayMs,f.maxRetryDelayMs)}function ee(f){return q(q({},f),{errorRetry:null,timeoutRetry:null})}function te(f,p,r,i){if(!f)return!1;var o=i==null?void 0:i.code,l=p<f.maxNumRetry&&(function(h){return Fe(h)||!!h&&(h<400||h>499)}(o)||!!r);return f.shouldRetry?f.shouldRetry(f,p,r,i,l):l}function Fe(f){return f===0&&navigator.onLine===!1}var ei=0,Me=2,je=3,Ci=5,Re=0,zi=1,K=2,O=4,W=function(f){function p(i){var o;return(o=f.call(this,"error-controller",i.logger)||this).hls=void 0,o.playlistError=0,o.hls=i,o.registerListeners(),o}ct(p,f);var r=p.prototype;return r.registerListeners=function(){var i=this.hls;i.on(ot.ERROR,this.onError,this),i.on(ot.MANIFEST_LOADING,this.onManifestLoading,this),i.on(ot.LEVEL_UPDATED,this.onLevelUpdated,this)},r.unregisterListeners=function(){var i=this.hls;
88i&&(i.off(ot.ERROR,this.onError,this),i.off(ot.ERROR,this.onErrorOut,this),i.off(ot.MANIFEST_LOADING,this.onManifestLoading,this),i.off(ot.LEVEL_UPDATED,this.onLevelUpdated,this))},r.destroy=function(){this.unregisterListeners(),this.hls=null},r.startLoad=function(i){},r.stopLoad=function(){this.playlistError=0},r.getVariantLevelIndex=function(i){return(i==null?void 0:i.type)===ue?i.level:this.getVariantIndex()},r.getVariantIndex=function(){var i,o=this.hls,l=o.currentLevel;return(i=o.loadLevelObj)!=null&&i.details||l===-1?o.loadLevel:l},r.variantHasKey=function(i,o){if(i){var l;if((l=i.details)!=null&&l.hasKey(o))return!0;var h=i.audioGroups;if(h)return this.hls.allAudioTracks.filter(function(v){return h.indexOf(v.groupId)>=0}).some(function(v){var C;return(C=v.details)==null?void 0:C.hasKey(o)})}return!1},r.onManifestLoading=function(){this.playlistError=0},r.onLevelUpdated=function(){this.playlistError=0},r.onError=function(i,o){var l;if(!o.fatal){var h=this.hls,v=o.context;switch(o.details){case mt.FRAG_LOAD_ERROR:case mt.FRAG_LOAD_TIMEOUT:case mt.KEY_LOAD_ERROR:case mt.KEY_LOAD_TIMEOUT:return void(o.errorAction=this.getFragRetryOrSwitchAction(o));case mt.FRAG_PARSING_ERROR:if((l=o.frag)!=null&&l.gap)return void(o.errorAction=lt());case mt.FRAG_GAP:case mt.FRAG_DECRYPT_ERROR:return o.errorAction=this.getFragRetryOrSwitchAction(o),void(o.errorAction.action=Me);case mt.LEVEL_EMPTY_ERROR:case mt.LEVEL_PARSING_ERROR:var C,T=o.parent===ue?o.level:h.loadLevel;return void(o.details===mt.LEVEL_EMPTY_ERROR&&(C=o.context)!=null&&(C=C.levelDetails)!=null&&C.live?o.errorAction=this.getPlaylistRetryOrSwitchAction(o,T):(o.levelRetry=!1,o.errorAction=this.getLevelSwitchAction(o,T)));case mt.LEVEL_LOAD_ERROR:case mt.LEVEL_LOAD_TIMEOUT:return void(typeof(v==null?void 0:v.level)=="number"&&(o.errorAction=this.getPlaylistRetryOrSwitchAction(o,v.level)));case mt.AUDIO_TRACK_LOAD_ERROR:case mt.AUDIO_TRACK_LOAD_TIMEOUT:case mt.SUBTITLE_LOAD_ERROR:case mt.SUBTITLE_TRACK_LOAD_TIMEOUT:if(v){var w=h.loadLevelObj;if(w&&(v.type===g&&w.hasAudioGroup(v.groupId)||v.type===ve&&w.hasSubtitleGroup(v.groupId)))return o.errorAction=this.getPlaylistRetryOrSwitchAction(o,h.loadLevel),o.errorAction.action=Me,void(o.errorAction.flags=zi)}return;case mt.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:return void(o.errorAction={action:Me,flags:K});case mt.KEY_SYSTEM_SESSION_UPDATE_FAILED:case mt.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case mt.KEY_SYSTEM_NO_SESSION:return void(o.errorAction={action:Me,flags:O});case mt.BUFFER_ADD_CODEC_ERROR:case mt.REMUX_ALLOC_ERROR:case mt.BUFFER_APPEND_ERROR:var M;return void(o.errorAction||(o.errorAction=this.getLevelSwitchAction(o,(M=o.level)!=null?M:h.loadLevel)));case mt.INTERNAL_EXCEPTION:case mt.BUFFER_APPENDING_ERROR:case mt.BUFFER_FULL_ERROR:case mt.LEVEL_SWITCH_ERROR:case mt.BUFFER_STALLED_ERROR:case mt.BUFFER_SEEK_OVER_HOLE:case mt.BUFFER_NUDGE_ON_STALL:return void(o.errorAction=lt())}o.type===me.KEY_SYSTEM_ERROR&&(o.levelRetry=!1,o.errorAction=lt())}},r.getPlaylistRetryOrSwitchAction=function(i,o){var l=gt(this.hls.config.playlistLoadPolicy,i),h=this.playlistError++;if(te(l,h,Rn(i),i.response))return{action:Ci,flags:Re,retryConfig:l,retryCount:h};var v=this.getLevelSwitchAction(i,o);return l&&(v.retryConfig=l,v.retryCount=h),v},r.getFragRetryOrSwitchAction=function(i){var o=this.hls,l=this.getVariantLevelIndex(i.frag),h=o.levels[l],v=o.config,C=v.fragLoadPolicy,T=v.keyLoadPolicy,w=gt(rr(i)?T:C,i),M=o.levels.reduce(function(B,U){return B+U.fragmentError},0);if(h&&(i.details!==mt.FRAG_GAP&&h.fragmentError++,!bt(i)&&te(w,M,Rn(i),i.response)))return{action:Ci,flags:Re,retryConfig:w,retryCount:M};var F=this.getLevelSwitchAction(i,l);return w&&(F.retryConfig=w,F.retryCount=M),F},r.getLevelSwitchAction=function(i,o){var l=this.hls;o==null&&(o=l.loadLevel);var h=this.hls.levels[o];if(h){var v,C,T=i.details;h.loadError++,T===mt.BUFFER_APPEND_ERROR&&h.fragmentError++;var w=-1,M=l.levels,F=l.loadLevel,B=l.minAutoLevel,U=l.maxAutoLevel;l.autoLevelEnabled||l.config.preserveManualLevelOnError||(l.loadLevel=-1);for(var tt,et=(v=i.frag)==null?void 0:v.type,st=(et===ye&&T===mt.FRAG_PARSING_ERROR||i.sourceBufferName==="audio"&&(T===mt.BUFFER_ADD_CODEC_ERROR||T===mt.BUFFER_APPEND_ERROR))&&M.some(function(oe){var be=oe.audioCodec;return h.audioCodec!==be}),ft=i.sourceBufferName==="video"&&(T===mt.BUFFER_ADD_CODEC_ERROR||T===mt.BUFFER_APPEND_ERROR)&&M.some(function(oe){var be=oe.codecSet,Gt=oe.audioCodec;return h.codecSet!==be&&h.audioCodec===Gt}),kt=(C=i.context)!=null?C:{},At=kt.type,Yt=kt.groupId,Bt=function(){var oe=($t+F)%M.length;if(oe!==F&&oe>=B&&oe<=U&&M[oe].loadError===0){var be,Gt,se=M[oe];if(T===mt.FRAG_GAP&&et===ue&&i.frag){var he=M[oe].details;if(he){var di=kn(i.frag,he.fragments,i.frag.start);if(di!=null&&di.gap)return 0}}else if(At===g&&se.hasAudioGroup(Yt)||At===ve&&se.hasSubtitleGroup(Yt)||et===ye&&(be=h.audioGroups)!=null&&be.some(function(Je){return se.hasAudioGroup(Je)})||et===De&&(Gt=h.subtitleGroups)!=null&&Gt.some(function(Je){return se.hasSubtitleGroup(Je)})||st&&h.audioCodec===se.audioCodec||ft&&h.codecSet===se.codecSet||!st&&h.co
vendor: 4,337 bytes, line 88
88decSet!==se.codecSet)return 0;return w=oe,1}},$t=M.length;$t--&&((tt=Bt())===0||tt!==1););if(w>-1&&l.loadLevel!==w)return i.levelRetry=!0,this.playlistError=0,{action:Me,flags:Re,nextAutoLevel:w}}return{action:Me,flags:zi}},r.onErrorOut=function(i,o){var l;switch((l=o.errorAction)==null?void 0:l.action){case ei:break;case Me:this.sendAlternateToPenaltyBox(o),o.errorAction.resolved||o.details===mt.FRAG_GAP?/MediaSource readyState: ended/.test(o.error.message)&&(this.warn('MediaSource ended after "'+o.sourceBufferName+'" sourceBuffer append error. Attempting to recover from media error.'),this.hls.recoverMediaError()):o.fatal=!0}o.fatal&&this.hls.stopLoad()},r.sendAlternateToPenaltyBox=function(i){var o=this.hls,l=i.errorAction;if(l){var h=l.flags,v=l.nextAutoLevel;switch(h){case Re:this.switchLevel(i,v);break;case K:var C=this.getVariantLevelIndex(i.frag),T=o.levels[C],w=T==null?void 0:T.attrs["HDCP-LEVEL"];if(l.hdcpLevel=w,w==="NONE")this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE");else if(w){o.maxHdcpLevel=$i[$i.indexOf(w)-1],l.resolved=!0,this.warn('Restricting playback to HDCP-LEVEL of "'+o.maxHdcpLevel+'" or lower');break}case O:var M=i.decryptdata;if(M){for(var F=this.hls.levels,B=F.length,U=B;U--;){var tt,et;this.variantHasKey(F[U],M)&&(this.log("Banned key found in level "+U+" ("+F[U].bitrate+'bps) or audio group "'+((tt=F[U].audioGroups)==null?void 0:tt.join(","))+'" ('+((et=i.frag)==null?void 0:et.type)+" fragment) "+Gi(M.keyId||[])),F[U].fragmentError++,F[U].loadError++,this.log("Removing level "+U+" with key error ("+i.error+")"),this.hls.removeLevel(U))}var st=i.frag;if(this.hls.levels.length<B)l.resolved=!0;else if(st&&st.type!==ue){var ft=st.decryptdata;ft&&!M.matches(ft)&&(l.resolved=!0)}}}l.resolved||this.switchLevel(i,v)}},r.switchLevel=function(i,o){if(o!==void 0&&i.errorAction&&(this.warn("switching to level "+o+" after "+i.details),this.hls.nextAutoLevel=o,i.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,i.details===mt.BUFFER_ADD_CODEC_ERROR&&i.mimeType&&i.sourceBufferName!=="audiovideo"))for(var l=cn(i.mimeType),h=this.hls.levels,v=h.length;v--;)h[v][i.sourceBufferName+"Codec"]===l&&(this.log("Removing level "+v+" for "+i.details+' ("'+l+'" not supported)'),this.hls.removeLevel(v))},p}(ii);function lt(f){var p={action:ei,flags:Re};return f&&(p.resolved=!0),p}var pt={length:0,start:function(){return 0},end:function(){return 0}},wt=function(){function f(){}return f.isBuffered=function(p,r){if(p){for(var i=f.getBuffered(p),o=i.length;o--;)if(r>=i.start(o)&&r<=i.end(o))return!0}return!1},f.bufferedRanges=function(p){if(p){var r=f.getBuffered(p);return f.timeRangesToArray(r)}return[]},f.timeRangesToArray=function(p){for(var r=[],i=0;i<p.length;i++)r.push({start:p.start(i),end:p.end(i)});return r},f.bufferInfo=function(p,r,i){if(p){var o=f.bufferedRanges(p);if(o.length)return f.bufferedInfo(o,r,i)}return{len:0,start:r,end:r,bufferedIndex:-1}},f.bufferedInfo=function(p,r,i){r=Math.max(0,r),p.length>1&&p.sort(function(et,st){return et.start-st.start||st.end-et.end});var o=-1,l=[];if(i)for(var h=0;h<p.length;h++){r>=p[h].start&&r<=p[h].end&&(o=h);var v=l.length;if(v){var C=l[v-1].end;p[h].start-C<i?p[h].end>C&&(l[v-1].end=p[h].end):l.push(p[h])}else l.push(p[h])}else l=p;for(var T,w=0,M=r,F=r,B=0;B<l.length;B++){var U=l[B].start,tt=l[B].end;if(o===-1&&r>=U&&r<=tt&&(o=B),r+i>=U&&r<tt)M=U,w=(F=tt)-r;else if(r+i<U){T=U;break}}return{len:w,start:M||0,end:F||0,nextStart:T,buffered:p,bufferedIndex:o}},f.getBuffered=function(p){try{return p.buffered||pt}catch(r){return Ri.log("failed to get media.buffered",r),pt}},f}(),It=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,Nt="HlsJsTrackRemovedError",Ut=function(f){function p(r){var i;return(i=f.call(this,r)||this).name=Nt,i}return ct(p,f),p}(xt(Error)),zt=function(f){function p(i,o){var l,h;return(l=f.call(this,"buffer-controller",i.logger)||this).hls=void 0,l.fragmentTracker=void 0,l.details=null,l._objectUrl=null,l.operationQueue=null,l.bufferCodecEventsTotal=0,l.media=null,l.mediaSource=null,l.lastMpegAudioChunk=null,l.blockedAudioAppend=null,l.lastVideoAppendEnd=0,l.appendSource=void 0,l.transferData=void 0,l.overrides=void 0,l.appendErrors={audio:0,video:0,audiovideo:0},l.tracks={},l.sourceBuffers=[[null,null],[null,null]],l._onEndStreaming=function(v){var 
88C;l.hls&&((C=l.mediaSource)==null?void 0:C.readyState)==="open"&&l.hls.pauseBuffering()},l._onStartStreaming=function(v){l.hls&&l.hls.resumeBuffering()},l._onMediaSourceOpen=function(v){var C=l,T=C.media,w=C.mediaSource;v&&l.log("Media source opened"),T&&w&&(w.removeEventListener("sourceopen",l._onMediaSourceOpen),T.removeEventListener("emptied",l._onMediaEmptied),l.updateDuration(),l.hls.trigger(ot.MEDIA_ATTACHED,{media:T,mediaSource:w}),l.mediaSource!==null&&l.checkPendingTracks())},l._onMediaSourceClose=function(){l.log("Media source closed")},l._onMediaSourceEnded=function(){l.log("Media source ended")},l._onMediaEmptied=function(){var v=l,C=v.mediaSrc,T=v._objectUrl;C!==T&&l.error("Media element src was set while attaching MediaSource ("+T+" > "+C+")")},l.hls=i,l.fragmentTracker=o,l.appendSource=(h=vn(i.config.preferManagedMediaSource),typeof self<"u"&&h===self.ManagedMediaSource),l.initTracks(),l.registerListeners(),l}ct(p,f);var r=p.prototype;return r.hasSourceTypes=function(){return Object.keys(this.tracks).length>0},r.destroy=function(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null},r.registerListeners=function(){var i=this.hls;i.on(ot.MEDIA_ATTACHING,this.onMediaAttaching,this),i.on(ot.MEDIA_DETACHING,this.onMediaDetaching,this),i.on(ot.MANIFEST_LOADING,this.onManifestLoading,this),i.on(ot.MANIFEST_PARSED,this.onManifestParsed,this),i.on(ot.BUFFER_RESET,this.onBufferReset,this),i.on(ot.BUFFER_APPENDING,this.onBufferAppending,this),i.on(ot.BUFFER_CODECS,this.onBufferCodecs,this),i.on(ot.BUFFER_EOS,this.onBufferEos,this),i.on(ot.BUFFER_FLUSHING,this.onBufferFlushing,this),i.on(ot.LEVEL_UPDATED,this.onLevelUpdated,this),i.on(ot.FRAG_PARSED,this.onFragParsed,this),i.on(ot.FRAG_CHANGED,this.onFragChanged,this),i.on(ot.ERROR,this.onError,this)},r.unregisterListeners=function(){var i=this.hls;i.off(ot.MEDIA_ATTACHING,this.onMediaAttaching,this),i.off(ot.MEDIA_DETACHING,this.onMediaDetaching,this),i.off(ot.MANIFEST_LOADING,this.onManifestLoading,this),i.off(ot.MANIFEST_PARSED,this.onManifestParsed,this),i.off(ot.BUFFER_RESET,this.onBufferReset,this),i.off(ot.BUFFER_APPENDING,this.onBufferAppending,this),i.off(ot.BUFFER_CODECS,this.onBufferCodecs,this),i.off(ot.BUFFER_EOS,this.onBufferEos,this),i.off(ot.BUFFER_FLUSHING,this.onBufferFlushing,this),i.off(ot.LEVEL_UPDATED,this.onLevelUpdated,this),i.off(ot.FRAG_PARSED,this.onFragParsed,this),i.off(ot.FRAG_CHANGED,this.onFragChanged,this),i.off(ot.ERROR,this.onError,this)},r.transferMedia=function(){var i=this,o=this.media,l=this.mediaSource;if(!o)return null;var h={};if(this.operationQueue){var v=this.isUpdating();v||this.operationQueue.removeBlockers();var C=this.isQueued();(v||C)&&this.warn("Transfering MediaSource with"+(C?" operations in queue":"")+(v?" updating SourceBuffer(s)":"")+" "+this.operationQueue),this.operationQueue.destroy()}var T=this.transferData;return!this.sourceBufferCount&&T&&T.mediaSource===l?I(h,T.tracks):this.sourceBuffers.forEach(function(w){var M=w[0];M&&(h[M]=I({},i.tracks[M]),i.removeBuffer(M)),w[0]=w[1]=null}),{media:o,mediaSource:l,tracks:h}},r.initTracks=function(){this.sourceBuffers=[[null,null],[null,null]],this.tracks={},this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0},r.onManifestLoading=function(){this.bufferCodecEventsTotal=0,this.details=null},r.onManifestParsed=function(i,o){var l,h=2;(o.audio&&!o.video||!o.altAudio)&&(h=1),this.bufferCodecEventsTotal=h,this.log(h+" bufferCodec event(s) expected."),(l=this.transferData)!=null&&l.mediaSource&&this.sourceBufferCount&&h&&this.bufferCreated()},r.onMediaAttaching=function(i,o){var l=this.media=o.media;this.transferData=this.overrides=void 0;var h=vn(this.appendSource);if(h){var v=!!o.mediaSource;(v||o.overrides)&&(this.transferData=o,this.overrides=o.overrides);var C=this.mediaSource=o.mediaSource||new h;if(this.assignMediaSource(C),v)this._objectUrl=l.src,this.attachTransferred();else{var T=this._objectUrl=self.URL.createObjectURL(C);if(this.appendSource)try{l.removeAttribute("src");var w=self.ManagedMediaSource;l.disableRemotePlayback=l.disableRemotePlayback||w&&C instanceof w,Jt(l),function(M,F){var B=self.document.createElement("source");B.type="video/mp4",B.src=F,M.appendChild(B)}(l,T),l.load()}catch{l.src=T}else l.src=T}l.addEventListener("emptied",this._onMediaEmptied)}},r.assignMediaSource=function(i){var o,l;this.log((((o=this.transferData)==null?void 0:o.mediaSource)===i?"transferred":"created")+" media source: "+((l=i.constructor)==null?void 0:l.name)),i.addEventListener("sourceopen",this._onMediaSourceOpen),i.addEventListener("sourceended",this._onMediaSourceEnded),i.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(i.addEventListener("startstreaming",this._onStartStreaming),i.addEventListener("endstreaming",this._onEndStreaming))},r.attachTransferred=function(){var i=this,o=this.media,l=this.transferData;if(l&&o){var h=this.tracks,v=l.tracks,C=v?Object.keys(v):null,T=C?C.length:0,w=function(){Promise.resolve().then(function(){i.media&&i.mediaSourceOpenOrEnded&&i._onMediaSourceOpen()})};if(v&&C&&T){if(!this.tracksReady)return this.hls.config.startFragPrefetch=!0,void this.log("attachTransferred: waiting for SourceBuffer track info");if(this.log("attachTransferred: (bufferCodecEventsTotal "+this.bufferCodecEventsTotal+`)
89required tracks: `+Ce(h,function(U,tt){return U==="initSegment"?void 0:tt})+`;
90transfer tracks: `+Ce(v,function(U,tt){return U==="initSegment"?void 0:tt})+"}"),!function(U,tt){var et=Object.keys(U),st=Object.keys(tt),ft=et.length,kt=st.length;return!ft||!kt||ft===kt&&!et.some(function(At){return st.indexOf(At)===-1})}(v,h)){l.mediaSource=null,l.tracks=void 0;var M=o.currentTime,F=this.details,B=Math.max(M,(F==null?void 0:F.fragments[0].start)||0);return B-M>1?void this.log("attachTransferred: waiting for playback to reach new tracks start time "+M+" -> "+B):(this.warn('attachTransferred: resetting MediaSource for incompatible tracks ("'+Object.keys(v)+'"->"'+Object.keys(h)+'") start time: '+B+" currentTime: "+M),this.onMediaDetaching(ot.MEDIA_DETACHING,{}
90),this.onMediaAttaching(ot.MEDIA_ATTACHING,l),void(o.currentTime=B))}this.transferData=void 0,C.forEach(function(U){var tt=U,et=v[tt];if(et){var st=et.buffer;if(st){var ft=i.fragmentTracker,kt=et.id;if(ft.hasFragments(kt)||ft.hasParts(kt)){var At=wt.getBuffered(st);ft.detectEvictedFragments(tt,At,kt,null,!0)}var Yt=ae(tt),Bt=[tt,st];i.sourceBuffers[Yt]=Bt,st.updating&&i.operationQueue&&i.operationQueue.prependBlocker(tt),i.trackSourceBuffer(tt,et)}}}),w(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),w()}},r.onMediaDetaching=function(i,o){var l=this,h=!!o.transferMedia;this.transferData=this.overrides=void 0;var v=this.media,C=this.mediaSource,T=this._objectUrl;if(C){if(this.log("media source "+(h?"transferring":"detaching")),h)this.sourceBuffers.forEach(function(B){var U=B[0];U&&l.removeBuffer(U)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){var w=C.readyState==="open";try{for(var M=C.sourceBuffers,F=M.length;F--;)w&&M[F].abort(),C.removeSourceBuffer(M[F]);w&&C.endOfStream()}catch(B){this.warn("onMediaDetaching: "+B.message+" while calling endOfStream")}}this.sourceBufferCount&&this.onBufferReset()}C.removeEventListener("sourceopen",this._onMediaSourceOpen),C.removeEventListener("sourceended",this._onMediaSourceEnded),C.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(C.removeEventListener("startstreaming",this._onStartStreaming),C.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}v&&(v.removeEventListener("emptied",this._onMediaEmptied),h||(T&&self.URL.revokeObjectURL(T),this.mediaSrc===T?(v.removeAttribute("src"),this.appendSource&&Jt(v),v.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(ot.MEDIA_DETACHED,o)},r.onBufferReset=function(){var i=this;this.sourceBuffers.forEach(function(o){var l=o[0];l&&i.resetBuffer(l)}),this.initTracks()},r.resetBuffer=function(i){var o,l=(o=this.tracks[i])==null?void 0:o.buffer;if(this.removeBuffer(i),l)try{var h;(h=this.mediaSource)!=null&&h.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(l)}catch(v){this.warn("onBufferReset "+i,v)}delete this.tracks[i]},r.removeBuffer=function(i){this.removeBufferListeners(i),this.sourceBuffers[ae(i)]=[null,null];var o=this.tracks[i];o&&(o.buffer=void 0)},r.resetQueue=function(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new ui(this.tracks)},r.onBufferCodecs=function(i,o){var l,h=this,v=this.tracks,C=Object.keys(o);this.log('BUFFER_CODECS: "'+C+'" (current SB count '+this.sourceBufferCount+")");var T="audiovideo"in o&&(v.audio||v.video)||v.audiovideo&&("audio"in o||"video"in o),w=!T&&this.sourceBufferCount&&this.media&&C.some(function(M){return!v[M]});T||w?this.warn('Unsupported transition between "'+Object.keys(v)+'" and "'+C+'" SourceBuffers'):(C.forEach(function(M){var F,B,U=o[M],tt=U.id,et=U.codec,st=U.levelCodec,ft=U.container,kt=U.metadata,At=U.supplemental,Yt=v[M],Bt=(F=h.transferData)==null||(F=F.tracks)==null?void 0:F[M],$t=Bt!=null&&Bt.buffer?Bt:Yt,oe=($t==null?void 0:$t.pendingCodec)||($t==null?void 0:$t.codec),be=$t==null?void 0:$t.levelCodec;Yt||(Yt=v[M]={buffer:void 0,listeners:[],codec:et,supplemental:At,container:ft,levelCodec:st,metadata:kt,id:tt});var Gt=Oi(oe,be),se=Gt==null?void 0:Gt.replace(It,"$1"),he=Oi(et,st),di=(B=he)==null?void 0:B.replace(It,"$1");he&&Gt&&se!==di&&(M.slice(0,5)==="audio"&&(he=Pi(he,h.appendSource)),h.log("switching codec "+oe+" to "+he),he!==(Yt.pendingCodec||Yt.codec)&&(Yt.pendingCodec=he),Yt.container=ft,h.appendChangeType(M,ft,he))}),(this.tracksReady||this.sourceBufferCount)&&(o.tracks=this.sourceBufferTracks),this.sourceBufferCount||(this.bufferCodecEventsTotal>1&&!this.tracks.video&&!o.video&&((l=o.audio)==null?void 0:l.id)==="main"&&(this.log("Main audio-only"),this.bufferCodecEventsTotal=1),this.mediaSourceOpenOrEnded&&this.checkPendingTracks()))},r.appendChangeType=function(i,o,l){var h=this,v=o+";codecs="+l,C={label:"change-type="+v,execute:function(){var T=h.tracks[i];if(T){var w=T.buffer;w!=null&&w.changeType&&(h.log("changing "+i+" sourceBuffer type to "+v),w.changeType(v),T.codec=l,T.container=o)}h.shiftAndExecuteNext(i)},onStart:function(){},onComplete:function(){},onError:function(T){h.warn("Failed to change "+i+" SourceBuffer type",T)}};this.append(C,i,this.isPending(this.tracks[i]))},r.blockAudio=function(i){var o,l=this,h=i.start,v=h+.05*i.duration;if(((o=this.fragmentTracker.getAppendedFrag(h,ue))==null?void 0:o.gap)!==!0){var C={label:"block-audio",execute:function(){var T,w=l.tracks.video;(l.lastVideoAppendEnd>v||w!=null&&w.buffer&&wt.isBuffered(w.buffer,v)||((T=l.fragmentTracker.getAppendedFrag(v,ue))==null?void 0:T.gap)===!0)&&(l.blockedAudioAppend=null,l.shiftAndExecuteNext("audio"))},onStart:function(){},onComplete:function(){},onError:function(T){l.warn("Error executing block-audio operation",T)}};this.blockedAudioAppend={op:C,frag:i},this.append(C,"audio",!0)}},r.unblockAudio=function(){var i=this.blockedAudioAppend,o=this.operationQueue;i&&o&&(this.blockedAudioAppend=null,o.unblockAudio(i.op))},r.onBufferAppending=function(i,o){var l=this,h=this.tracks,v=o.data,C=o.type,T=o.parent,w=o.frag,M=o.part,F=o.chunkMeta,B=o.offset,U=F.buffering[C],tt=w.sn,et=w.cc,st=self.performance.now();U.start=st;var ft=w.stats.buffering,kt=M?M.stats.buffering:null;ft.start===0&&(ft.start=st),kt&&kt.start===0&&(kt.start=st);var At=h.audio,Yt=!1;C==="audio"&&(At==null?void 0:At.container)==="audio/mpeg"&&(Yt=!this.lastMpegAudioChunk||F.id===1||this.lastMpegAudioChunk.sn!==F.sn,this.lastMpegAudioChunk=F);var Bt=h.video,$t=Bt==null?void 0:Bt.buffer;if($t&&tt!=="initSegment"){var oe=M||w,be=this.blockedAudioAppend;if(C!=="audio"||T==="main"||this.blockedAudioAppend||Bt.ending||Bt.ended){if(C==="video"){var Gt=oe.end;if(be){var se=be.frag.start;(Gt>se||Gt<this.lastVideoAppendEnd||wt.isBuffered($t,se))&&this.unblockAudio()}this.lastVideoAppendEnd=Gt}}else{var he=oe.start+.05*oe.duration,di=$t.buffered,Je=this.currentOp("video");di.length||Je?!Je&&!wt.isBuffered($t,he)&&this.lastVideoAppendEnd<he&&this.blockAudio(oe):this.blockAudio(oe)}}
90var He=(M||w).start,Ve={label:"append-"+C,execute:function(){var Ye;U.executeStart=self.performance.now();var gi=(Ye=l.tracks[C])==null?void 0:Ye.buffer;gi&&(Yt?l.updateTimestampOffset(gi,He,.1,C,tt,et):B!==void 0&&Ot(B)&&l.updateTimestampOffset(gi,B,1e-6,C,tt,et)),l.appendExecutor(v,C)},onStart:function(){},onComplete:function(){var Ye=self.performance.now();U.executeEnd=U.end=Ye,ft.first===0&&(ft.first=Ye),kt&&kt.first===0&&(kt.first=Ye);var gi={};l.sourceBuffers.forEach(function(Xi){var Li=Xi[0],Ki=Xi[1];Li&&(gi[Li]=wt.getBuffered(Ki))}),l.appendErrors[C]=0,C==="audio"||C==="video"?l.appendErrors.audiovideo=0:(l.appendErrors.audio=0,l.appendErrors.video=0),l.hls.trigger(ot.BUFFER_APPENDED,{type:C,frag:w,part:M,chunkMeta:F,parent:w.type,timeRanges:gi})},onError:function(Ye){var gi,Xi={type:me.MEDIA_ERROR,parent:w.type,details:mt.BUFFER_APPEND_ERROR,sourceBufferName:C,frag:w,part:M,chunkMeta:F,error:Ye,err:Ye,fatal:!1},Li=(gi=l.media)==null?void 0:gi.error;if(Ye.code===DOMException.QUOTA_EXCEEDED_ERR||Ye.name=="QuotaExceededError"||"quota"in Ye)Xi.details=mt.BUFFER_FULL_ERROR;else if(Ye.code===DOMException.INVALID_STATE_ERR&&l.mediaSourceOpenOrEnded&&!Li)Xi.errorAction=lt(!0);else if(Ye.name===Nt&&l.sourceBufferCount===0)Xi.errorAction=lt(!0);else{var Ki=++l.appendErrors[C];l.warn("Failed "+Ki+"/"+l.hls.config.appendErrorMaxRetry+' times to append segment in "'+C+'" sourceBuffer ('+(Li||"no media error")+")"),(Ki>=l.hls.config.appendErrorMaxRetry||Li)&&(Xi.fatal=!0)}l.hls.trigger(ot.ERROR,Xi)}};this.log('queuing "'+C+'" append sn: '+tt+(M?" p: "+M.index:"")+" of "+(w.type===ue?"level":"track")+" "+w.level+" cc: "+et),this.append(Ve,C,this.isPending(this.tracks[C]))},r.getFlushOp=function(i,o,l){var h=this;return this.log('queuing "'+i+'" remove '+o+"-"+l),{label:"remove",execute:function(){h.removeExecutor(i,o,l)},onStart:function(){},onComplete:function(){h.hls.trigger(ot.BUFFER_FLUSHED,{type:i})},onError:function(v){h.warn("Failed to remove "+o+"-"+l+' from "'+i+'" SourceBuffer',v)}}},r.onBufferFlushing=function(i,o){var l=this,h=o.type,v=o.startOffset,C=o.endOffset;h?this.append(this.getFlushOp(h,v,C),h):this.sourceBuffers.forEach(function(T){var w=T[0];w&&l.append(l.getFlushOp(w,v,C),w)})},r.onFragParsed=function(i,o){var l=this,h=o.frag,v=o.part,C=[],T=v?v.elementaryStreams:h.elementaryStreams;T[Nn]?C.push("audiovideo"):(T[Fn]&&C.push("audio"),T[qi]&&C.push("video")),C.length===0&&this.warn("Fragments must have at least one ElementaryStreamType set. type: "+h.type+" level: "+h.level+" sn: "+h.sn),this.blockBuffers(function(){var w=self.performance.now();h.stats.buffering.end=w,v&&(v.stats.buffering.end=w);var M=v?v.stats:h.stats;l.hls.trigger(ot.FRAG_BUFFERED,{frag:h,part:v,stats:M,id:h.type})},C).catch(function(w){l.warn("Fragment buffered callback "+w),l.stepOperationQueue(l.sourceBufferTypes)})},r.onFragChanged=function(i,o){this.trimBuffers()},r.onBufferEos=function(i,o){var l,h=this;this.sourceBuffers.forEach(function(C){var T=C[0];if(T){var w=h.tracks[T];o.type&&o.type!==T||(w.ending=!0,w.ended||(w.ended=!0,h.log(T+" buffer reached EOS")))}});var v=((l=this.overrides)==null?void 0:l.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(function(C){var T,w=C[0];return w&&!((T=h.tracks[w])!=null&&T.ended)})?v?(this.log("Queueing EOS"),this.blockUntilOpen(function(){h.tracksEnded();var C=h.mediaSource;C&&C.readyState==="open"?(h.log("Calling mediaSource.endOfStream()"),C.endOfStream(),h.hls.trigger(ot.BUFFERED_TO_END,void 0)):C&&h.log("Could not call mediaSource.endOfStream(). mediaSource.readyState: "+C.readyState)})):(this.tracksEnded(),this.hls.trigger(ot.BUFFERED_TO_END,void 0)):o.type==="video"&&this.unblockAudio()},r.tracksEnded=function(){var i=this;this.sourceBuffers.forEach(function(o){var l=o[0];if(l!==null){var h=i.tracks[l];h&&(h.ending=!1)}})},r.onLevelUpdated=function(i,o){var l=o.details;l.fragments.length&&(this.details=l,this.updateDuration())},r.updateDuration=function(){var i=this;this.blockUntilOpen(function(){var o=i.getDurationAndRange();o&&i.updateMediaSource(o)})},r.onError=function(i,o){if(o.details===mt.BUFFER_APPEND_ERROR&&o.frag){var l,h=(l=o.errorAction)==null?void 0:l.nextAutoLevel;Ot(h)&&h!==o.frag.level&&this.resetAppendErrors()}},r.resetAppendErrors=function(){this.appendErrors={audio:0,video:0,audiovideo:0}},r.trimBuffers=function(){var i=this.hls,o=this.details,l=this.media;if(l&&o!==null&&this.sourceBufferCount){var h=i.config,v=l.currentTime,C=o.levelTargetDuration,T=o.live&&h.liveBackBufferLength!==null?h.liveBackBufferLength:h.backBufferLength;if(Ot(T)&&T>=0){var w=Math.max(T,C),M=Math.floor(v/C)*C-w;this.flushBackBuffer(v,C,M)}var F=h.frontBufferFlushThreshold;if(Ot(F)&&F>0){var B=Math.max(h.maxBufferLength,F),U=Math.max(B,C),tt=Math.floor(v/C)*C+U;this.flushFrontBuffer(v,C,tt)}}},r.flushBackBuffer=function(i,o,l){var h=this;
90this.sourceBuffers.forEach(function(v){var C=v[0],T=v[1];if(T){var w=wt.getBuffered(T);if(w.length>0&&l>w.start(0)){var M;h.hls.trigger(ot.BACK_BUFFER_REACHED,{bufferEnd:l});var F=h.tracks[C];if((M=h.details)!=null&&M.live)h.hls.trigger(ot.LIVE_BACK_BUFFER_REACHED,{bufferEnd:l});else if(F!=null&&F.ended)return void h.log("Cannot flush "+C+" back buffer while SourceBuffer is in ended state");h.hls.trigger(ot.BUFFER_FLUSHING,{startOffset:0,endOffset:l,type:C})}}})},r.flushFrontBuffer=function(i,o,l){var h=this;this.sourceBuffers.forEach(function(v){var C=v[0],T=v[1];if(T){var w=wt.getBuffered(T),M=w.length;if(M<2)return;var F=w.start(M-1),B=w.end(M-1);if(l>F||i>=F&&i<=B)return;h.hls.trigger(ot.BUFFER_FLUSHING,{startOffset:F,endOffset:1/0,type:C})}})},r.getDurationAndRange=function(){var i,o=this.details,l=this.mediaSource;if(!o||!this.media||(l==null?void 0:l.readyState)!=="open")return null;var h=o.edge;if(o.live&&this.hls.config.liveDurationInfinity){if(o.fragments.length&&l.setLiveSeekableRange){var v=Math.max(0,o.fragmentStart);return{duration:1/0,start:v,end:Math.max(v,h)}}return{duration:1/0}}var C=(i=this.overrides)==null?void 0:i.duration;if(C)return Ot(C)?{duration:C}:null;var T=this.media.duration;return h>(Ot(l.duration)?l.duration:0)&&h>T||!Ot(T)?{duration:h}:null},r.updateMediaSource=function(i){var o=i.duration,l=i.start,h=i.end,v=this.mediaSource;this.media&&v&&v.readyState==="open"&&(v.duration!==o&&(Ot(o)&&this.log("Updating MediaSource duration to "+o.toFixed(3)),v.duration=o),l!==void 0&&h!==void 0&&(this.log("MediaSource duration is set to "+v.duration+". Setting seekable range to "+l+"-"+h+"."),v.setLiveSeekableRange(l,h)))},r.checkPendingTracks=function(){var i=this.bufferCodecEventsTotal,o=this.pendingTrackCount,l=this.tracks;if(this.log("checkPendingTracks (pending: "+o+" codec events expected: "+i+") "+Ce(l)),this.tracksReady){var h,v=(h=this.transferData)==null?void 0:h.tracks;v&&Object.keys(v).length?this.attachTransferred():this.createSourceBuffers()}},r.bufferCreated=function(){var i=this;if(this.sourceBufferCount){var o={};this.sourceBuffers.forEach(function(h){var v=h[0],C=h[1];if(v){var T=i.tracks[v];o[v]={buffer:C,container:T.container,codec:T.codec,supplemental:T.supplemental,levelCodec:T.levelCodec,id:T.id,metadata:T.metadata}}}),this.hls.trigger(ot.BUFFER_CREATED,{tracks:o}),this.log("SourceBuffers created. Running queue: "+this.operationQueue),this.sourceBuffers.forEach(function(h){var v=h[0];i.executeNext(v)}
90)}else{var l=new Error("could not create source buffer for media codec(s)");this.hls.trigger(ot.ERROR,{type:me.MEDIA_ERROR,details:mt.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:l,reason:l.message})}},r.createSourceBuffers=function(){var i=this.tracks,o=this.sourceBuffers,l=this.mediaSource;if(!l)throw new Error("createSourceBuffers called when mediaSource was null");for(var h in i){var v=h,C=i[v];if(this.isPending(C)){var T=this.getTrackCodec(C,v),w=C.container+";codecs="+T;C.codec=T,this.log("creating sourceBuffer("+w+")"+(this.currentOp(v)?" Queued":"")+" "+Ce(C));try{var M=l.addSourceBuffer(w),F=ae(v),B=[v,M];o[F]=B,C.buffer=M}catch(tt){var U;return this.error("error while trying to add sourceBuffer: "+tt.message),this.shiftAndExecuteNext(v),(U=this.operationQueue)==null||U.removeBlockers(),delete this.tracks[v],void this.hls.trigger(ot.ERROR,{type:me.MEDIA_ERROR,details:mt.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:tt,sourceBufferName:v,mimeType:w,parent:C.id})}this.trackSourceBuffer(v,C)}}this.bufferCreated()},r.getTrackCodec=function(i,o){var l=i.supplemental,h=i.codec;l&&(o==="video"||o==="audiovideo")&&Ft(l,"video")&&(h=function(C,T){var w=[];if(C)for(var M=C.split(","),F=0;F<M.length;F++)Rt(M[F],"video")||w.push(M[F]);return T&&w.push(T),w.join(",")}(h,l));var v=Oi(h,i.levelCodec);return v?o.slice(0,5)==="audio"?Pi(v,this.appendSource):v:""},r.trackSourceBuffer=function(i,o){var l=this,h=o.buffer;if(h){var v=this.getTrackCodec(o,i);this.tracks[i]={buffer:h,codec:v,container:o.container,levelCodec:o.levelCodec,supplemental:o.supplemental,metadata:o.metadata,id:o.id,listeners:[]},this.removeBufferListeners(i),this.addBufferListener(i,"updatestart",this.onSBUpdateStart),this.addBufferListener(i,"updateend",this.onSBUpdateEnd),this.addBufferListener(i,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(i,"bufferedchange",function(C,T){var w=T.removedRanges;w!=null&&w.length&&l.hls.trigger(ot.BUFFER_FLUSHED,{type:C})})}},r.onSBUpdateStart=function(i){var o=this.currentOp(i);o&&o.onStart()},r.onSBUpdateEnd=function(i){var o;if(((o=this.mediaSource)==null?void 0:o.readyState)!=="closed"){var l=this.currentOp(i);l&&(l.onComplete(),this.shiftAndExecuteNext(i))}else this.resetBuffer(i)},r.onSBUpdateError=function(i,o){var l,h=new Error(i+" SourceBuffer error. MediaSource readyState: "+((l=this.mediaSource)==null?void 0:l.readyState));this.error(""+h,o),this.hls.trigger(ot.ERROR,{type:me.MEDIA_ERROR,details:mt.BUFFER_APPENDING_ERROR,sourceBufferName:i,error:h,fatal:!1});var v=this.currentOp(i);v&&v.onError(h)},r.updateTimestampOffset=function(i,o,l,h,v,C){var T=o-i.timestampOffset;Math.abs(T)>=l&&(this.log("Updating "+h+" SourceBuffer timestampOffset to "+o+" (sn: "+v+" cc: "+C+")"),i.timestampOffset=o)},r.removeExecutor=function(i,o,l){var h=this.media,v=this.mediaSource,C=this.tracks[i],T=C==null?void 0:C.buffer;if(!h||!v||!T)return this.warn("Attempting to remove from the "+i+" SourceBuffer, but it does not exist"),void this.shiftAndExecuteNext(i);var w=Ot(h.duration)?h.duration:1/0,M=Ot(v.duration)?v.duration:1/0,F=Math.max(0,o),B=Math.min(l,w,M);B>F&&(!C.ending||C.ended)?(C.ended=!1,this.log("Removing ["+F+","+B+"] from the "+i+" SourceBuffer"),T.remove(F,B)):this.shiftAndExecuteNext(i)},r.appendExecutor=function(i,o){var l=this.tracks[o],h=l==null?void 0:l.buffer;if(!h)throw new Ut("Attempting to append to the "+o+" SourceBuffer, but it does not exist");l.ending=!1,l.ended=!1,h.appendBuffer(i)},r.blockUntilOpen=function(i){var o=this;if(this.isUpdating()||this.isQueued())this.blockBuffers(i).catch(function(l){o.warn("SourceBuffer blocked callback "+l),o.stepOperationQueue(o.sourceBufferTypes)});else try{i()}catch(l){this.warn("Callback run without blocking "+this.operationQueue+" "+l)}},r.isUpdating=function(){return this.sourceBuffers.some(function(i){var o=i[0],l=i[1];return o&&l.updating})},r.isQueued=function(){var i=this;return this.sourceBuffers.some(function(o){var l=o[0];return l&&!!i.currentOp(l)})},r.isPending=function(i){return!!i&&!i.buffer},r.blockBuffers=function(i,o){var l=this;if(o===void 0&&(o=this.sourceBufferTypes),!o.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(i);var h=this.operationQueue,v=o.map(function(C){return l.appendBlocker(C)});return o.length>1&&this.blockedAudioAppend&&this.unblockAudio(),Promise.all(v).then(function(C){h===l.operationQueue&&(i(),l.stepOperation
90Queue(l.sourceBufferTypes))})},r.stepOperationQueue=function(i){var o=this;i.forEach(function(l){var h,v=(h=o.tracks[l])==null?void 0:h.buffer;v&&!v.updating&&o.shiftAndExecuteNext(l)})},r.append=function(i,o,l){this.operationQueue&&this.operationQueue.append(i,o,l)},r.appendBlocker=function(i){if(this.operationQueue)return this.operationQueue.appendBlocker(i)},r.currentOp=function(i){return this.operationQueue?this.operationQueue.current(i):null},r.executeNext=function(i){i&&this.operationQueue&&this.operationQueue.executeNext(i)},r.shiftAndExecuteNext=function(i){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(i)},r.addBufferListener=function(i,o,l){var h=this.tracks[i];if(h){var v=h.buffer;if(v){var C=l.bind(this,i);h.listeners.push({event:o,listener:C}),v.addEventListener(o,C)}}},r.removeBufferListeners=function(i){var o=this.tracks[i];if(o){var l=o.buffer;l&&(o.listeners.forEach(function(h){l.removeEventListener(h.event,h.listener)}),o.listeners.length=0)}},d(p,[{key:"mediaSourceOpenOrEnded",get:function(){var i,o=(i=this.mediaSource)==null?void 0:i.readyState;return o==="open"||o==="ended"}},{key:"sourceBufferTracks",get:function(){var i=this;return Object.keys(this.tracks).reduce(function(o,l){var h=i.tracks[l];return o[l]={id:h.id,container:h.container,codec:h.codec,levelCodec:h.levelCodec},o},{})}},{key:"bufferedToEnd",get:function(){var i=this;return this.sourceBufferCount>0&&!this.sourceBuffers.some(function(o){var l=o[0];if(l){var h=i.tracks[l];if(h)return!h.ended||h.ending}return!1})}},{key:"tracksReady",get:function(){var i=this.pendingTrackCount;return i>0&&(i>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}},{key:"mediaSrc",get:function(){var i,o,l=((i=this.media)==null||(o=i.querySelector)==null?void 0:o.call(i,"source"))||this.media;return l==null?void 0:l.src}},{key:"pendingTrackCount",get:function(){var i=this;return Object.keys(this.tracks).reduce(function(o,l){return o+(i.isPending(i.tracks[l])?1:0)},0)}},{key:"sourceBufferCount",get:function(){return this.sourceBuffers.reduce(function(i,o){return i+(o[0]?1:0)},0)}},{key:"sourceBufferTypes",get:function(){return this.sourceBuffers.map(function(i){return i[0]}).filter(function(i){return!!i})}}])}(ii);function Jt(f){var p=f.querySelectorAll("source");[].slice.call(p).forEach(function(r){f.removeChild(r)})}function ae(f){return f==="audio"?1:0}var Oe=function(){function f(r){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=r,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var p=f.prototype;return p.setStreamController=function(r){this.streamController=r},p.destroy=function(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},p.registerListeners=function(){var r=this.hls;r.on(ot.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),r.on(ot.MEDIA_ATTACHING,this.onMediaAttaching,this),r.on(ot.MANIFEST_PARSED,this.onManifestParsed,this),r.on(ot.LEVELS_UPDATED,this.onLevelsUpdated,this),r.on(ot.BUFFER_CODECS,this.onBufferCodecs,this),r.on(ot.MEDIA_DETACHING,this.onMediaDetaching,this)},p.unregisterListener=function(){var r=this.hls;r.off(ot.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),r.off(ot.MEDIA_ATTACHING,this.onMediaAttaching,this),r.off(ot.MANIFEST_PARSED,this.onManifestParsed,this),r.off(ot.LEVELS_UPDATED,this.onLevelsUpdated,this),r.off(ot.BUFFER_CODECS,this.onBufferCodecs,this),r.off(ot.MEDIA_DETACHING,this.onMediaDetaching,this)},p.onFpsDropLevelCapping=function(r,i){var o=this.hls.levels[i.droppedLevel];this.isLevelAllowed(o)&&this.restrictedLevels.push({bitrate:o.bitrate,height:o.height,width:o.width})},p.onMediaAttaching=function(r,i){this.media=i.media instanceof HTMLVideoElement?i.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()},p.onManifestParsed=function(r,i){var o=this.hls;this.restrictedLevels=[],this.firstLevel=i.firstLevel,o.config.capLevelToPlayerSize&&i.video&&this.startCapping()},p.onLevelsUpdated=function(r,i){this.timer&&Ot(this.autoLevelCapping)&&this.detectPlayerSize()},p.onBufferCodecs=function(r,i){this.hls.config.capLevelToPlayerSize&&i.video&&this.startCapping()},p.onMediaDetaching=function(){this.stopCapping(),this.media=null},p.detectPlayerSize=function(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0)return void(this.clientRect=null);var r=this.hls.levels;if(r.length){var i=this.hls,o=this.getMaxLevel(r.length-1);o!==this.autoLevelCapping&&i.logger.log("Setting autoLevelCapping to "+o+": "+r[o].height+"p@"+r[o
90].bitrate+" for media "+this.mediaWidth+"x"+this.mediaHeight),i.autoLevelCapping=o,i.autoLevelEnabled&&i.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=i.autoLevelCapping}}},p.getMaxLevel=function(r){var i=this,o=this.hls.levels;if(!o.length)return-1;var l=o.filter(function(h,v){return i.isLevelAllowed(h)&&v<=r});return this.clientRect=null,f.getMaxLevelByMediaSize(l,this.mediaWidth,this.mediaHeight)},p.startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},p.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},p.getDimensions=function(){if(this.clientRect)return this.clientRect;var r=this.media,i={width:0,height:0};if(r){var o=r.getBoundingClientRect();i.width=o.width,i.height=o.height,i.width||i.height||(i.width=o.right-o.left||r.width||0,i.height=o.bottom-o.top||r.height||0)}return this.clientRect=i,i},p.isLevelAllowed=function(r){return!this.restrictedLevels.some(function(i){return r.bitrate===i.bitrate&&r.width===i.width&&r.height===i.height})},f.getMaxLevelByMediaSize=function(r,i,o){if(r==null||!r.length)return-1;for(var l,h,v=r.length-1,C=Math.max(i,o),T=0;T<r.length;T+=1){var w=r[T];if((w.width>=C||w.height>=C)&&(l=w,!(h=r[T+1])||l.width!==h.width||l.height!==h.height)){v=T;break}}return v},d(f,[{key:"mediaWidth",get:function(){return this.getDimensions().width*this.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*this.contentScaleFactor}},{key:"contentScaleFactor",get:function(){var r=1;if(!this.hls.config.ignoreDevicePixelRatio)try{r=self.devicePixelRatio}catch{}return Math.min(r,this.hls.config.maxDevicePixelRatio)}}])}(),Se=/^(\d+)x(\d+)$/,ze=/(.+?)=(".*?"|.*?)(?:,|$)/g,de=function(){function f(r,i){typeof r=="string"&&(r=f.parseAttrList(r,i)),I(this,r)}var p=f.prototype;return p.decimalInteger=function(r){var i=parseInt(this[r],10);return i>Number.MAX_SAFE_INTEGER?1/0:i},p.hexadecimalInteger=function(r){if(this[r]){var i=(this[r]||"0x").slice(2);i=(1&i.length?"0":"")+i;for(var o=new Uint8Array(i.length/2),l=0;l<i.length/2;l++)o[l]=parseInt(i.slice(2*l,2*l+2),16);return o}return null},p.hexadecimalIntegerAsNumber=function(r){var i=parseInt(this[r],16);return i>Number.MAX_SAFE_INTEGER?1/0:i},p.decimalFloatingPoint=function(r){return parseFloat(this[r])},p.optionalFloat=function(r,i){var o=this[r];return o?parseFloat(o):i},p.enumeratedString=function(r){return this[r]},p.enumeratedStringList=function(r,i){var o=this[r];return(o?o.split(/[ ,]+/):[]).reduce(function(l,h){return l[h.toLowerCase()]=!0,l},i)},p.bool=function(r){return this[r]==="YES"},p.decimalResolution=function(r){var i=Se.exec(this[r]);if(i!==null)return{width:parseInt(i[1],10),height:parseInt(i[2],10)}},f.parseAttrList=function(r,i){var o,l={};for(ze.lastIndex=0;(o=ze.exec(r))!==null;){var h=o[1].trim(),v=o[2],C=v.indexOf('"')===0&&v.lastIndexOf('"')===v.length-1,T=!1;if(C)v=v.slice(1,-1);else switch(h){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":T=!0}if(!(i&&(C||T))){if(!T&&!C)switch(h){case"CLOSED-CAPTIONS":if(v==="NONE")break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":Ri.warn(r+": attribute "+h+" is missing quotes")}}l[h]=v}return l},d(f,[{key:"clientAttrs",get:function(){return Object.keys(this).filter(function(r){return r.substring(0,2)==="X-"})}}])}();function $e(f){return f==="SCTE35-OUT"||f==="SCTE35-IN"||f==="SCTE35-CMD"}var Xe=function(){return d(function(f,p,r){var i;if(r===void 0&&(r=0),this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=(p==null?void 0:p.tagAnchor)||null,this.tagOrder=(i=p==null?void 0:p.tagOrder)!=null?i:r,p){var o=p.attr;for(var l in o)if(Object.prototype.hasOwnProperty.call(f,l)&&f[l]!==o[l]){Ri.warn('DATERANGE tag attribute: "'+l+'" does not match for tags with ID: "'+f.ID+'"'),this._badValueForSameId=l;break}f=I(new de({}),o,f)}if(this.attr=f,p?(this._startDate=p._startDate,this._cue=p._cue,this._endDate=p._endDate,this._dateAtEnd=p._dateAtEnd):this._startDate=new Date(f["START-DATE"]),"END-DATE"in this.attr){var h=(p==null?void 0:p.endDate)||new Date(this.attr["END-DATE"]);Ot(h.getTime())&&(this._endDate=h)}},[{key:"id",get:function(){return this.attr.ID}},{key:"class",get:function(){return this.attr.CLASS}},{key:"cue",get:function(){var f=this._cue;return f===void 0?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):f}},{key:"startTime",get:function(){var f=this.tagAnchor;return f===null||f.programDateTime===null?(Ri.warn('Expected tagAnchor Fragment with PDT set for DateRange "'+this.id+'": '+f),NaN):f.start+(this.startDate.getTime()-f.programDateTime)/1e3}},{key:"startDate",get:function(){return this._startDate}},{key:"endDate",get:function(){var f=this._endDate||this._dateAtEnd;if(f)return f;var p=this.duration;return p!==null?this._dateAtEnd=new Date(this._startDate.getTime()+1e3*p):null}},{key:"duration",get:function(){if("DURATION"in this.attr){var f=this.attr.decimalFloatingPoint("DURATION");if(Ot(f))return f}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}},{key:"plannedDuration",get:function(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}},{key:"endOnNext",get:function(){return this.attr.bool("END-ON-NEXT")}},{key:"isInterstitial",get:function(){return this.class==="com.apple.hls.interstitial"}},{key:"isValid",get:function(){return!!this.id&&!this._badValueForSameId&&Ot(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}])}(),qe=function(){function f(r){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.drift
vendor: 1,057 bytes, line 90
90StartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=r}var p=f.prototype;return p.reloaded=function(r){if(!r)return this.advanced=!0,void(this.updated=!0);var i=this.lastPartSn-r.lastPartSn,o=this.lastPartIndex-r.lastPartIndex;this.updated=this.endSN!==r.endSN||!!o||!!i||!this.live,this.advanced=this.endSN>r.endSN||i>0||i===0&&o>0,this.updated||this.advanced?this.misses=Math.floor(.6*r.misses):this.misses=r.misses+1},p.hasKey=function(r){return this.encryptedFragments.some(function(i){var o=i.decryptdata;return o||(i.setKeyFormat(r.keyFormat),o=i.decryptdata),!!o&&r.matches(o)})},d(f,[{key:"hasProgramDateTime",get:function(){return!!this.fragments.length&&Ot(this.fragments[this.fragments.length-1].programDateTime)}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||10}}
90,{key:"drift",get:function(){var r=this.driftEndTime-this.driftStartTime;return r>0?1e3*(this.driftEnd-this.driftStart)/r:1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var r;return(r=this.partList)!=null&&r.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){return this.fragments.length?this.fragments[this.fragments.length-1].end:0}},{key:"fragmentStart",get:function(){return this.fragments.length?this.fragments[0].start:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var r;return(r=this.partList)!=null&&r.length?this.partList[this.partList.length-1].index:-1}},{key:"maxPartIndex",get:function(){var r=this.partList;if(r){var i=this.lastPartIndex;if(i!==-1){for(var o=r.length;o--;)if(r[o].index>i)return r[o].index;return i}}return 0}},{key:"lastPartSn",get:function(){var r;return(r=this.partList)!=null&&r.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}},{key:"expired",get:function(){if(this.live&&this.age&&this.misses<3){var r=this.partEnd-this.fragmentStart;return this.age>Math.max(r,this.totalduration)+this.levelTargetDuration}return!1}}])}();function Ie(f,p){return f.length===p.length&&!f.some(function(r,i){return r!==p[i]})}function ni(f,p){return!f&&!p||!(!f||!p)&&Ie(f,p)}var fi=0,Wt=1;function ge(f){return f==="AES-128"||f==="AES-256"||f==="AES-256-CTR"}function _e(f){switch(f){case"AES-128":case"AES-256":return fi;case"AES-256-CTR":return Wt;default:throw new Error("invalid full segment method "+f)}}var pi={},yi=function(){function f(r,i,o,l,h,v){l===void 0&&(l=[1]),h===void 0&&(h=null),this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=r,this.uri=i,this.keyFormat=o,this.keyFormatVersions=l,this.iv=h,this.encrypted=!!r&&r!=="NONE",this.isCommonEncryption=this.encrypted&&!ge(r),v!=null&&v.startsWith("0x")&&(this.keyId=new Uint8Array(wr(v)))}f.clearKeyUriToKeyIdMap=function(){pi={}},f.setKeyIdForUri=function(r,i){pi[r]=i},f.addKeyIdForUri=function(r){var i=Object.keys(pi).length%Number.MAX_SAFE_INTEGER,o=new Uint8Array(16);return new DataView(o.buffer,12,4).setUint32(0,i),pi[r]=o,o};var p=f.prototype;return p.matches=function(r){return r.uri===this.uri&&r.method===this.method&&r.encrypted===this.encrypted&&r.keyFormat===this.keyFormat&&Ie(r.keyFormatVersions,this.keyFormatVersions)&&ni(r.iv,this.iv)&&ni(r.keyId,this.keyId)},p.isSupported=function(){if(this.method){if(ge(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES"}return!1},p.getDecryptData=function(r,i){if(!this.encrypted||!this.uri)return null;if(ge(this.method)){var o=this.iv;return o||(typeof r!="number"&&(Ri.warn('missing IV for initialization segment with method="'+this.method+'" - compliance issue'),r=0),o=function(l){for(var h=new Uint8Array(16),v=12;v<16;v++)h[v]=l>>8*(15-v)&255;return h}(r)),new f(this.method,this.uri,"identity",this.keyFormatVersions,o)}return this},f}(),Bi=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,Wi=/#EXT-X-MEDIA:(.*)/g,yn=/^#EXT(?:INF|-X-TARGETDURATION):/m,zn=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),Pn=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),on=function(){function f(){}return f.findGroup=function(p,r){for(var i=0;i<p.length;i++){var o=p[i];if(o.id===r)return o}},f.resolve=function(p,r){return Vt.buildAbsoluteURL(r,p,{alwaysNormalize:!0})},f.isMediaPlaylist=function(p){return yn.test(p)},f.parseMasterPlaylist=function(p,r){var i,o={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:!1},l=[];
90if(Bi.lastIndex=0,!p.startsWith("#EXTM3U"))return o.playlistParsingError=new Error("no EXTM3U delimiter"),o;for(;(i=Bi.exec(p))!=null;)if(i[1]){var h,v=new de(i[1],o),C=i[2],T={attrs:v,bitrate:v.decimalInteger("BANDWIDTH")||v.decimalInteger("AVERAGE-BANDWIDTH"),name:v.NAME,url:f.resolve(C,r)},w=v.decimalResolution("RESOLUTION");w&&(T.width=w.width,T.height=w.height),_(v.CODECS,T);var M=v["SUPPLEMENTAL-CODECS"];M&&(T.supplemental={},_(M,T.supplemental)),(h=T.unknownCodecs)!=null&&h.length||l.push(T),o.levels.push(T)}else if(i[3]){var F=i[3],B=i[4];switch(F){case"SESSION-DATA":var U=new de(B,o),tt=U["DATA-ID"];tt&&(o.sessionData===null&&(o.sessionData={}),o.sessionData[tt]=U);break;case"SESSION-KEY":var et=E(B,r,o);et.encrypted&&et.isSupported()?(o.sessionKeys===null&&(o.sessionKeys=[]),o.sessionKeys.push(et)):Ri.warn('[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "'+B+'"');break;case"DEFINE":break;case"CONTENT-STEERING":var st=new de(B,o);o.contentSteering={uri:f.resolve(st["SERVER-URI"],r),pathwayId:st["PATHWAY-ID"]||"."};break;case"START":o.startTimeOffset=P(B)}}var ft=l.length>0&&l.length<o.levels.length;return o.levels=ft?l:o.levels,o.levels.length===0&&(o.playlistParsingError=new Error("no levels found in manifest")),o},f.parseMasterPlaylistMedia=function(p,r,i){var o,l={},h=i.levels,v={AUDIO:h.map(function(At){return{id:At.attrs.AUDIO,audioCodec:At.audioCodec}}),SUBTITLES:h.map(function(At){return{id:At.attrs.SUBTITLES,textCodec:At.textCodec}}),"CLOSED-CAPTIONS":[]},C=0;for(Wi.lastIndex=0;(o=Wi.exec(p))!==null;){var T=new de(o[1],i),w=T.TYPE;if(w){var M=v[w],F=l[w]||[];l[w]=F;var B=T.LANGUAGE,U=T["ASSOC-LANGUAGE"],tt=T.CHANNELS,et=T.CHARACTERISTICS,st=T["INSTREAM-ID"],ft={attrs:T,bitrate:0,id:C++,groupId:T["GROUP-ID"]||"",name:T.NAME||B||"",type:w,default:T.bool("DEFAULT"),autoselect:T.bool("AUTOSELECT"),forced:T.bool("FORCED"),lang:B,url:T.URI?f.resolve(T.URI,r):""};if(U&&(ft.assocLang=U),tt&&(ft.channels=tt),et&&(ft.characteristics=et),st&&(ft.instreamId=st),M!=null&&M.length){var kt=f.findGroup(M,ft.groupId)||M[0];n(ft,kt,"audioCodec"),n(ft,kt,"textCodec")}F.push(ft)}}return l},f.parseLevelPlaylist=function(p,r,i,o,l,h){var v,C,T,w,M,F={url:r},B=new qe(r),U=B.fragments,tt=[],et=null,st=0,ft=0,kt=0,At=0,Yt=0,Bt=null,$t=new $n(o,F),oe=-1,be=!1,Gt=null;if(zn.lastIndex=0,B.m3u8=p,B.hasVariableRefs=!1,((v=zn.exec(p))==null?void 0:v[0])!=="#EXTM3U")return B.playlistParsingError=new Error("Missing format identifier #EXTM3U"),B;for(;(C=zn.exec(p))!==null;){be&&(be=!1,($t=new $n(o,F)).playlistOffset=kt,$t.setStart(kt),$t.sn=st,$t.cc=At,Yt&&($t.bitrate=Yt),$t.level=i,et&&($t.initSegment=et,et.rawProgramDateTime&&($t.rawProgramDateTime=et.rawProgramDateTime,et.rawProgramDateTime=null),Gt&&($t.setByteRange(Gt),Gt=null)));var se=C[1];if(se){$t.duration=parseFloat(se);var he=(" "+C[2]).slice(1);$t.title=he||null,$t.tagList.push(he?["INF",se,he]:["INF",se])}else if(C[3]){if(Ot($t.duration)){$t.playlistOffset=kt,$t.setStart(kt),w&&k($t,w,B),$t.sn=st,$t.level=i,$t.cc=At,U.push($t);var di=(" "+C[3]).slice(1);$t.relurl=di,y($t,Bt,tt),Bt=$t,kt+=$t.duration,st++,ft=0,be=!0}}else{if(!(C=C[0].match(Pn))){Ri.warn("No matches on slow regex match for level playlist!");continue}for(T=1;
vendor: 4,115 bytes, line 90
90T<C.length&&C[T]===void 0;T++);var Je=(" "+C[T]).slice(1),He=(" "+C[T+1]).slice(1),Ve=C[T+2]?(" "+C[T+2]).slice(1):null;switch(Je){case"BYTERANGE":Bt?$t.setByteRange(He,Bt):$t.setByteRange(He);break;case"PROGRAM-DATE-TIME":$t.rawProgramDateTime=He,$t.tagList.push(["PROGRAM-DATE-TIME",He]),oe===-1&&(oe=U.length);break;case"PLAYLIST-TYPE":B.type&&L(B,Je,C),B.type=He.toUpperCase();break;case"MEDIA-SEQUENCE":B.startSN!==0?L(B,Je,C):U.length>0&&D(B,Je,C),st=B.startSN=parseInt(He);break;case"SKIP":B.skippedSegments&&L(B,Je,C);var Ye=new de(He,B),gi=Ye.decimalInteger("SKIPPED-SEGMENTS");if(Ot(gi)){B.skippedSegments+=gi;for(var Xi=gi;Xi--;)U.push(null);st+=gi}var Li=Ye.enumeratedString("RECENTLY-REMOVED-DATERANGES");Li&&(B.recentlyRemovedDateranges=(B.recentlyRemovedDateranges||[]).concat(Li.split("	")));break;case"TARGETDURATION":B.targetduration!==0&&L(B,Je,C),B.targetduration=Math.max(parseInt(He),1);break;case"VERSION":B.version!==null&&L(B,Je,C),B.version=parseInt(He);break;case"INDEPENDENT-SEGMENTS":case"DEFINE":break;case"ENDLIST":B.live||L(B,Je,C),B.live=!1;break;case"#":(He||Ve)&&$t.tagList.push(Ve?[He,Ve]:[He]);break;case"DISCONTINUITY":At++,$t.tagList.push(["DIS"]);break;case"GAP":$t.gap=!0,$t.tagList.push([Je]);break;case"BITRATE":$t.tagList.push([Je,He]),Yt=1e3*parseInt(He),Ot(Yt)?$t.bitrate=Yt:Yt=0;break;case"DATERANGE":var Ki=new de(He,B),Kn=new Xe(Ki,B.dateRanges[Ki.ID],B.dateRangeTagCount);B.dateRangeTagCount++,Kn.isValid||B.skippedSegments?B.dateRanges[Kn.id]=Kn:Ri.warn('Ignoring invalid DATERANGE tag: "'+He+'"'),$t.tagList.push(["EXT-X-DATERANGE",He]);break;case"DISCONTINUITY-SEQUENCE":B.startCC!==0?L(B,Je,C):U.length>0&&D(B,Je,C),B.startCC=At=parseInt(He);break;case"KEY":var Dn=E(He,r,B);if(Dn.isSupported()){if(Dn.method==="NONE"){w=void 0;break}w||(w={});var bn=w[Dn.keyFormat];bn!=null&&bn.matches(Dn)||(bn&&(w=I({},w)),w[Dn.keyFormat]=Dn)}else Ri.warn('[Keys] Ignoring unsupported EXT-X-KEY tag: "'+He+'" (light build)');break;case"START":B.startTimeOffset=P(He);break;case"MAP":var Jn=new de(He,B);if($t.duration){var On=new $n(o,F);b(On,Jn,i,w),et=On,$t.initSegment=et,et.rawProgramDateTime&&!$t.rawProgramDateTime&&($t.rawProgramDateTime=et.rawProgramDateTime)}else{var en=$t.byteRangeEndOffset;if(en){var xn=$t.byteRangeStartOffset;Gt=en-xn+"@"+xn}else Gt=null;b($t,Jn,i,w),et=$t,be=!0}et.cc=At;break;case"SERVER-CONTROL":M&&L(B,Je,C),M=new de(He),B.canBlockReload=M.bool("CAN-BLOCK-RELOAD"),B.canSkipUntil=M.optionalFloat("CAN-SKIP-UNTIL",0),B.canSkipDateRanges=B.canSkipUntil>0&&M.bool("CAN-SKIP-DATERANGES"),B.partHoldBack=M.optionalFloat("PART-HOLD-BACK",0),B.holdBack=M.optionalFloat("HOLD-BACK",0);break;case"PART-INF":B.partTarget&&L(B,Je,C);var gn=new de(He);B.partTarget=gn.decimalFloatingPoint("PART-TARGET");break;case"PART":var an=B.partList;an||(an=B.partList=[]);var Vn=ft>0?an[an.length-1]:void 0,or=ft++,_n=new de(He,B),ln=new Qn(_n,$t,F,or,Vn);an.push(ln),$t.duration+=ln.duration;break;case"PRELOAD-HINT":var sr=new de(He,B);B.preloadHint=sr;break;case"RENDITION-REPORT":var Er=new de(He,B);B.renditionReports=B.renditionReports||[],B.renditionReports.push(Er);break;default:Ri.warn("line parsed but not handled: "+C)}}}Bt&&!Bt.relurl?(U.pop(),kt-=Bt.duration,B.partList&&(B.fragmentHint=Bt)):B.partList&&(y($t,Bt,tt),$t.cc=At,B.fragmentHint=$t,w&&k($t,w,B)),B.targetduration||(B.playlistParsingError=new Error("Missing Target Duration"));var rn=U.length,tr=U[0],Wr=U[rn-1];if((kt+=B.skippedSegments*B.targetduration)>0&&rn&&Wr){B.averagetargetduration=kt/rn;var _r=Wr.sn;B.endSN=_r!=="initSegment"?_r:0,B.live||(Wr.endList=!0),oe>0&&(function(Br,Fr){for(var Tr=Br[Fr],Nr=Fr;Nr--;){var $r=Br[Nr];if(!$r)return;$r.programDateTime=Tr.programDateTime-1e3*$r.duration,Tr=$r}}(U,oe),tr&&tt.unshift(tr))}return B.fragmentHint&&(kt+=B.fragmentHint.duration),B.totalduration=kt,tt.length&&B.dateRangeTagCount&&tr&&Xn(tt,B),B.endCC=At,B},f}();function Xn(f,p){var r=f.length;if(!r){if(!p.hasProgramDateTime)return;var i=p.fragments[p.fragments.length-1];f.push(i),r++}for(var o=f[r-1],l=p.live?1/0:p.totalduration,h=Object.keys(p.dateRanges),v=h.length;v--;
90){var C=p.dateRanges[h[v]],T=C.startDate.getTime();C.tagAnchor=o.ref;for(var w=r;w--;){var M;if(((M=f[w])==null?void 0:M.sn)<p.startSN)break;var F=m(p,T,f,w,l);if(F!==-1){C.tagAnchor=p.fragments[F].ref;break}}}}function m(f,p,r,i,o){var l=r[i];if(l){var h,v=l.programDateTime;if((p>=v||i===0)&&p<=v+1e3*((((h=r[i+1])==null?void 0:h.start)||o)-l.start)){var C=r[i].sn-f.startSN;if(C<0)return-1;var T=f.fragments;if(T.length>r.length)for(var w=(r[i+1]||T[T.length-1]).sn-f.startSN;w>C;w--){var M=T[w].programDateTime;if(p>=M&&p<M+1e3*T[w].duration)return w}return C}}return-1}function E(f,p,r){var i,o,l=new de(f,r),h=(i=l.METHOD)!=null?i:"",v=l.URI,C=l.hexadecimalInteger("IV"),T=l.KEYFORMATVERSIONS,w=(o=l.KEYFORMAT)!=null?o:"identity";v&&l.IV&&!C&&Ri.error("Invalid IV: "+l.IV);var M=v?on.resolve(v,p):"",F=(T||"1").split("/").map(Number).filter(Number.isFinite);return new yi(h,M,w,F,C,l.KEYID)}function P(f){var p=new de(f).decimalFloatingPoint("TIME-OFFSET");return Ot(p)?p:null}function _(f,p){var r=(f||"").split(/[ ,]+/).filter(function(i){return i});["video","audio","text"].forEach(function(i){var o=r.filter(function(l){return Rt(l,i)});o.length&&(p[i+"Codec"]=o.map(function(l){return l.split("/")[0]}).join(","),r=r.filter(function(l){return o.indexOf(l)===-1}))}),p.unknownCodecs=r}function n(f,p,r){var i=p[r];i&&(f[r]=i)}function y(f,p,r){f.rawProgramDateTime?r.push(f):p!=null&&p.programDateTime&&(f.programDateTime=p.endProgramDateTime)}function b(f,p,r,i){f.relurl=p.URI,p.BYTERANGE&&f.setByteRange(p.BYTERANGE),f.level=r,f.sn="initSegment",i&&(f.levelkeys=i),f.initSegment=null}function k(f,p,r){f.levelkeys=p;var i=r.encryptedFragments;i.length&&i[i.length-1].levelkeys===p||!Object.keys(p).some(function(o){return p[o].isCommonEncryption})||i.push(f)}function L(f,p,r){f.playlistParsingError=new Error("#EXT-X-"+p+" must not appear more than once ("+r[0]+")")}function D(f,p,r){f.playlistParsingError=new Error("#EXT-X-"+p+" must appear before the first Media Segment ("+r[0]+")")}function H(f,p){var r=p.startPTS;if(Ot(r)){var i,o=0;p.sn>f.sn?(o=r-f.start,i=f):(o=f.start-r,i=p),i.duration!==o&&i.setDuration(o)}else p.sn>f.sn?f.cc===p.cc&&f.minEndPTS?p.setStart(f.start+(f.minEndPTS-f.start)):p.setStart(f.start+f.duration):p.setStart(Math.max(f.start-p.duration,0))}function Q(f,p,r,i,o,l,h){i-r<=0&&(h.warn("Fragment should have a positive duration",p),i=r+p.duration,l=o+p.duration);var v=r,C=i,T=p.startPTS,w=p.endPTS;if(Ot(T)){var M=Math.abs(T-r);f&&M>f.totalduration?h.warn("media timestamps and playlist times differ by "+M+"s for level "+p.level+" "+f.url):Ot(p.deltaPTS)?p.deltaPTS=Math.max(M,p.deltaPTS):p.deltaPTS=M,v=Math.max(r,T),r=Math.min(r,T),o=p.startDTS!==void 0?Math.min(o,p.startDTS):o,C=Math.min(i,w),i=Math.max(i,w),l=p.endDTS!==void 0?Math.max(l,p.endDTS):l}var F=r-p.start;p.start!==0&&p.setStart(r),p.setDuration(i-p.start),p.startPTS=r,p.maxStartPTS=v,p.startDTS=o,p.endPTS=i,p.minEndPTS=C,p.endDTS=l;var B,U=p.sn;if(!f||U<f.startSN||U>f.endSN)return 0;var tt=U-f.startSN,et=f.fragments;for(et[tt]=p,B=tt;B>0;B--)H(et[B],et[B-1]);for(B=tt;B<et.length-1;B++)H(et[B],et[B+1]);return f.fragmentHint&&H(et[et.length-1],f.fragmentHint),f.PTSKnown=f.alignedSliding=!0,F}function N(f,p,r){if(f!==p){for(var i,o=null,l=f.fragments,h=l.length-1;h>=0;h--){var v=l[h].initSegment;if(v){o=v;break}}f.fragmentHint&&delete f.fragmentHint.endPTS,function(st,ft,kt){for(var At=ft.skippedSegments,Yt=Math.max(st.startSN,ft.startSN)-ft.startSN,Bt=(st.fragmentHint?1:0)+(At?ft.endSN:Math.min(st.endSN,ft.endSN))-ft.startSN,$t=ft.startSN-st.startSN,oe=ft.fragmentHint?ft.fragments.concat(ft.fragmentHint):ft.fragments,be=st.fragmentHint?st.fragments.concat(st.fragmentHint):st.fragments,Gt=Yt;Gt<=Bt;Gt++){var se=be[$t+Gt],he=oe[Gt];if(At&&!he&&se&&(he=ft.fragments[Gt]=se),se&&he){kt(se,he,Gt,oe);var di=se.relurl,Je=he.relurl;if(di&&Tt(di,Je))return void(ft.playlistParsingError=Y("media sequence mismatch "+he.sn+":",st,ft,0,he));if(se.cc!==he.cc)return void(ft.playlistParsingError=Y("discontinuity sequence mismatch ("+se.cc+"!="+he.cc+")",st,ft,0,he))}}}(f,p,function(st,ft,kt,At){if((!p.startCC||p.skippedSegments)&&ft.cc!==st.cc){for(var Yt=st.cc-ft.cc,Bt=kt;Bt<At.length;Bt++)At[Bt].cc+=Yt;p.endCC=At[At.length-1].cc}Ot(st.startPTS)&&Ot(st.endPTS)&&(ft.setStart(ft.startPTS=st.startPTS),ft.startDTS=st.startDTS,ft.maxStartPTS=st.maxStartPTS,ft.endPTS=st.endPTS,ft.endDTS=st.endDTS,ft.minEndPTS=st.minEndPTS,ft.setDuration(st.endPTS-st.startPTS),ft.duration&&(i=ft),p.PTSKnown=p.alignedSliding=!0),st.hasStream
90s&&(ft.elementaryStreams=st.elementaryStreams),ft.loader=st.loader,st.hasStats&&(ft.stats=st.stats),st.initSegment&&(ft.initSegment=st.initSegment,o=st.initSegment)});var C=p.fragments,T=p.fragmentHint?C.concat(p.fragmentHint):C;if(o&&T.forEach(function(st){var ft;!st||st.initSegment&&st.initSegment.relurl!==((ft=o)==null?void 0:ft.relurl)||(st.initSegment=o)}),p.skippedSegments){if(p.deltaUpdateFailed=C.some(function(st){return!st}),p.deltaUpdateFailed){r.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var w=p.skippedSegments;w--;)C.shift();p.startSN=C[0].sn}else{p.canSkipDateRanges&&(p.dateRanges=function(st,ft,kt){var At=ft.dateRanges,Yt=ft.recentlyRemovedDateranges,Bt=I({},st);Yt&&Yt.forEach(function(oe){delete Bt[oe]});var $t=Object.keys(Bt).length;return $t?(Object.keys(At).forEach(function(oe){var be=Bt[oe],Gt=new Xe(At[oe].attr,be);Gt.isValid?(Bt[oe]=Gt,be||(Gt.tagOrder+=$t)):kt.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'+Ce(At[oe].attr)+'"')}),Bt):At}(f.dateRanges,p,r));var M=f.fragments.filter(function(st){return st.rawProgramDateTime});if(f.hasProgramDateTime&&!p.hasProgramDateTime)for(var F=1;F<T.length;F++)T[F].programDateTime===null&&y(T[F],T[F-1],M);Xn(M,p)}p.endCC=C[C.length-1].cc}if(!p.startCC){var B,U=it(f,p.startSN-1);p.startCC=(B=U==null?void 0:U.cc)!=null?B:C[0].cc}(function(st,ft,kt){if(st&&ft)for(var At=0,Yt=0,Bt=st.length;Yt<=Bt;Yt++){var $t=st[Yt],oe=ft[Yt+At];$t&&oe&&$t.index===oe.index&&$t.fragment.sn===oe.fragment.sn?kt($t,oe):At--}})(f.partList,p.partList,function(st,ft){ft.elementaryStreams=st.elementaryStreams,ft.stats=st.stats}),i?Q(p,i,i.startPTS,i.endPTS,i.startDTS,i.endDTS,r):j(f,p),C.length&&(p.totalduration=p.edge-C[0].start),p.driftStartTime=f.driftStartTime,p.driftStart=f.driftStart;var tt=p.advancedDateTime;if(p.advanced&&tt){var et=p.edge;p.driftStart||(p.driftStartTime=tt,p.driftStart=et),p.driftEndTime=tt,p.driftEnd=et}else p.driftEndTime=f.driftEndTime,p.driftEnd=f.driftEnd,p.advancedDateTime=f.advancedDateTime;p.requestScheduled===-1&&(p.requestScheduled=f.requestScheduled)}}function Y(f,p,r,i,o){return new Error(f+" "+o.url+`
91Playlist starting @`+p.startSN+`
92`+p.m3u8+`
93
94Playlist starting @`+r.startSN+`
95`+r.m3u8)}function j(f,p,r){r===void 0&&(r=!0);var i=p.startSN+p.skippedSegments-f.startSN,o=f.fragments,l=i>=0,h=0;if(l&&i<o.length)h=o[i].start;else if(l&&p.startSN===f.endSN+1)h=f.fragmentEnd;else if(l&&r)h=f.fragmentStart+i*p.levelTargetDuration;else{if(p.skippedSegments||p.fragmentStart!==0)return;h=f.fragmentStart}(function(v,C){if(C){for(var T=v.fragments,w=v.skippedSegments;w<T.length;w++)T[w].addStart(C);v.fragmentHint&&v.fragmentHint.addStart(C)}})(p,h)}function V(f,p){p===void 0&&(p=1/0);var r=1e3*f.targetduration;if(f.updated){var i=f.fragments;if(i.length&&4*r>p){var o=1e3*i[i.length-1].duration;o<r&&(r=o)}}else r/=2;return Math.round(r)}function it(f,p,r){if(!f)return null;var i=f.fragments[p-f.startSN];return i||((i=f.fragmentHint)&&i.sn===p?i:p<f.startSN&&r&&r.sn===p?r:null)}function yt(f,p,r){return f?vt(f.partList,p,r):null}function vt(f,p,r){if(f)for(var i=f.length;i--;){var o=f[i];if(o.index===r&&o.fragment.sn===p)return o}return null}function Lt(f){f.forEach(function(p,r){var i;(i=p.details)==null||i.fragments.forEach(function(o){o.level=r,o.initSegment&&(o.initSegment.level=r)})})}function Tt(f,p){return!(f===p||!p)&&Dt(f)!==Dt(p)}function Dt(f){return f.replace(/\?[^?]*$/,"")}var Xt=function(f){function p(i){var o;return(o=f.call(this,"content-steering",i.logger)||this).hls=void 0,o.loader=null,o.uri=null,o.pathwayId=".",o._pathwayPriority=null,o.timeToLoad=300,o.reloadTimer=-1,o.updated=0,o.started=!1,o.enabled=!0,o.levels=null,o.audioTracks=null,o.subtitleTracks=null,o.penalizedPathways={},o.hls=i,o.registerListeners(),o}ct(p,f);var r=p.prototype;return r.registerListeners=function(){var i=this.hls;i.on(ot.MANIFEST_LOADING,this.onManifestLoading,this),i.on(ot.MANIFEST_LOADED,this.onManifestLoaded,this),i.on(ot.MANIFEST_PARSED,this.onManifestParsed,this),i.on(ot.ERROR,this.onError,this)},r.unregisterListeners=function(){var i=this.hls;i&&(i.off(ot.MANIFEST_LOADING,this.onManifestLoading,this),i.off(ot.MANIFEST_LOADED,this.onManifestLoaded,this),i.off(ot.MANIFEST_PARSED,this.onManifestParsed,this),i.off(ot.E
95RROR,this.onError,this))},r.pathways=function(){return(this.levels||[]).reduce(function(i,o){return i.indexOf(o.pathwayId)===-1&&i.push(o.pathwayId),i},[])},r.startLoad=function(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){var i=1e3*this.timeToLoad-(performance.now()-this.updated);if(i>0)return void this.scheduleRefresh(this.uri,i)}this.loadSteeringManifest(this.uri)}},r.stopLoad=function(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()},r.clearTimeout=function(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)},r.destroy=function(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null},r.removeLevel=function(i){var o=this.levels;o&&(this.levels=o.filter(function(l){return l!==i}))},r.onManifestLoading=function(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null},r.onManifestLoaded=function(i,o){var l=o.contentSteering;l!==null&&(this.pathwayId=l.pathwayId,this.uri=l.uri,this.started&&this.startLoad())},r.onManifestParsed=function(i,o){this.audioTracks=o.audioTracks,this.subtitleTracks=o.subtitleTracks},r.onError=function(i,o){var l=o.errorAction;if((l==null?void 0:l.action)===Me&&l.flags===zi){var h=this.levels,v=this._pathwayPriority,C=this.pathwayId;if(o.context){var T=o.context,w=T.groupId,M=T.pathwayId,F=T.type;w&&h?C=this.getPathwayForGroupId(w,F,C):M&&(C=M)}C in this.penalizedPathways||(this.penalizedPathways[C]=performance.now()),!v&&h&&(v=this.pathways()),v&&v.length>1&&(this.updatePathwayPriority(v),l.resolved=this.pathwayId!==C),o.details!==mt.BUFFER_APPEND_ERROR||o.fatal?l.resolved||this.warn("Could not resolve "+o.details+' ("'+o.error.message+'") with content-steering for Pathway: '+C+" levels: "+(h&&h.length)+" priorities: "+Ce(v)+" penalized: "+Ce(this.penalizedPathways)):l.resolved=!0}},r.filterParsedLevels=function(i){this.levels=i;var o=this.getLevelsForPathway(this.pathwayId);if(o.length===0){var l=i[0].pathwayId;this.log("No levels found in Pathway "+this.pathwayId+'. Setting initial Pathway to "'+l+'"'),o=this.getLevelsForPathway(l),this.pathwayId=l}return o.length!==i.length&&this.log("Found "+o.length+"/"+i.length+' levels in Pathway "'+this.pathwayId+'"'),o},r.getLevelsForPathway=function(i){return this.levels===null?[]:this.levels.filter(function(o){return i===o.pathwayId})},r.updatePathwayPriority=function(i){var o;this._pathwayPriority=i;var l=this.penalizedPathways,h=performance.now();Object.keys(l).forEach(function(F){h-l[F]>3e5&&delete l[F]});for(var v=0;v<i.length;v++){var C=i[v];if(!(C in l)){if(C===this.pathwayId)return;var T=this.hls.nextLoadLevel,w=this.hls.levels[T];if((o=this.getLevelsForPathway(C)).length>0){this.log('Setting Pathway to "'+C+'"'),this.pathwayId=C,Lt(o),this.hls.trigger(ot.LEVELS_UPDATED,{levels:o});var M=this.hls.levels[T];w&&M&&this.levels&&(M.attrs["STABLE-VARIANT-ID"]!==w.attrs["STABLE-VARIANT-ID"]&&M.bitrate!==w.bitrate&&this.log("Unstable Pathways change from bitrate "+w.bitrate+" to "+M.bitrate),this.hls.nextLoadLevel=T);break}}}},r.getPathwayForGroupId=function(i,o,l){for(var h=this.getLevelsForPathway(l).concat(this.levels||[]),v=0;v<h.length;v++)if(o===g&&h[v].hasAudioGroup(i)||o===ve&&h[v].hasSubtitleGroup(i))return h[v].pathwayId;return l},r.clonePathways=function(i){var o=this,l=this.levels;if(l){var h={},v={};i.forEach(function(C){var T=C.ID,w=C["BASE-ID"],M=C["URI-REPLACEMENT"];if(!l.some(function(B){return B.pathwayId===T})){var F=o.getLevelsForPathway(w).map(function(B){var U=new de(B.attrs);U["PATHWAY-ID"]=T;var tt=U.AUDIO&&U.AUDIO+"_clone_"+T,et=U.SUBTITLES&&U.SUBTITLES+"_clone_"+T;tt&&(h[U.AUDIO]=tt,U.AUDIO=tt),et&&(v[U.SUBTITLES]=et,U.SUBTITLES=et);var st=ie(B.uri,U["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",M),ft=new _t({attrs:U,audioCodec:B.audioCodec,bitrate:B.bitrate,height:B.height,name:B.name,url:st,videoCodec:B.videoCodec,width:B.width});if(B.audioGroups)for(var kt=1;kt<B.audioGroups.length;kt++)ft.addGroupId("audio",B.audioGroups[kt]+"_clone_"+T);
95if(B.subtitleGroups)for(var At=1;At<B.subtitleGroups.length;At++)ft.addGroupId("text",B.subtitleGroups[At]+"_clone_"+T);return ft});l.push.apply(l,F),Ht(o.audioTracks,h,M,T),Ht(o.subtitleTracks,v,M,T)}})}},r.loadSteeringManifest=function(i){var o,l=this,h=this.hls.config,v=h.loader;this.loader&&this.loader.destroy(),this.loader=new v(h);try{o=new self.URL(i)}catch{return this.enabled=!1,void this.log("Failed to parse Steering Manifest URI: "+i)}if(o.protocol!=="data:"){var C=0|(this.hls.bandwidthEstimate||h.abrEwmaDefaultEstimate);o.searchParams.set("_HLS_pathway",this.pathwayId),o.searchParams.set("_HLS_throughput",""+C)}var T={responseType:"json",url:o.href},w=h.steeringManifestLoadPolicy.default,M=w.errorRetry||w.timeoutRetry||{},F={loadPolicy:w,timeout:w.maxLoadTimeMs,maxRetry:M.maxNumRetry||0,retryDelay:M.retryDelayMs||0,maxRetryDelay:M.maxRetryDelayMs||0},B={onSuccess:function(U,tt,et,st){l.log('Loaded steering manifest: "'+o+'"');var ft=U.data;if((ft==null?void 0:ft.VERSION)===1){l.updated=performance.now(),l.timeToLoad=ft.TTL;var kt=ft["RELOAD-URI"],At=ft["PATHWAY-CLONES"],Yt=ft["PATHWAY-PRIORITY"];if(kt)try{l.uri=new self.URL(kt,o).href}catch{return l.enabled=!1,void l.log("Failed to parse Steering Manifest RELOAD-URI: "+kt)}l.scheduleRefresh(l.uri||et.url),At&&l.clonePathways(At);var Bt={steeringManifest:ft,url:o.toString()};l.hls.trigger(ot.STEERING_MANIFEST_LOADED,Bt),Yt&&l.updatePathwayPriority(Yt)}else l.log("Steering VERSION "+ft.VERSION+" not supported!")},onError:function(U,tt,et,st){if(l.log("Error loading steering manifest: "+U.code+" "+U.text+" ("+tt.url+")"),l.stopLoad(),U.code===410)return l.enabled=!1,void l.log("Steering manifest "+tt.url+" no longer available");var ft=1e3*l.timeToLoad;if(U.code!==429)l.scheduleRefresh(l.uri||tt.url,ft);else{var kt=l.loader;if(typeof(kt==null?void 0:kt.getResponseHeader)=="function"){var At=kt.getResponseHeader("Retry-After");At&&(ft=1e3*parseFloat(At))}l.log("Steering manifest "+tt.url+" rate limited")}},onTimeout:function(U,tt,et){l.log("Timeout loading steering manifest ("+tt.url+")"),l.scheduleRefresh(l.uri||tt.url)}};this.log("Requesting steering manifest: "+o),this.loader.load(T,F,B)},r.scheduleRefresh=function(i,o){var l=this;o===void 0&&(o=1e3*this.timeToLoad),this.clearTimeout(),this.reloadTimer=self.setTimeout(function(){var h,v=(h=l.hls)==null?void 0:h.media;!v||v.ended?l.scheduleRefresh(i,1e3*l.timeToLoad):l.loadSteeringManifest(i)},o)},d(p,[{key:"pathwayPriority",get:function(){return this._pathwayPriority},set:function(i){this.updatePathwayPriority(i)}}])}(ii);function Ht(f,p,r,i){f&&Object.keys(p).forEach(function(o){var l=f.filter(function(h){return h.groupId===o}).map(function(h){var v=I({},h);return v.details=void 0,v.attrs=new de(v.attrs),v.url=v.attrs.URI=ie(h.url,h.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",r),v.groupId=v.attrs["GROUP-ID"]=p[o],v.attrs["PATHWAY-ID"]=i,v});f.push.apply(f,l)})}function ie(f,p,r,i){var o,l=i.HOST,h=i.PARAMS,v=i[r];p&&(o=v==null?void 0:v[p])&&(f=o);var C=new self.URL(f);return l&&!o&&(C.host=l),h&&Object.keys(h).sort().forEach(function(T){T&&C.searchParams.set(T,h[T])}),C.href}var we=function(){function f(r){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=r,this.registerListeners()}var p=f.prototype;return p.setStreamController=function(r){this.streamController=r},p.registerListeners=function(){this.hls.on(ot.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(ot.MEDIA_DETACHING,this.onMediaDetaching,this)},p.unregisterListeners=function(){this.hls.off(ot.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(ot.MEDIA_DETACHING,this.onMediaDetaching,this)},p.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},p.onMediaAttaching=function(r,i){var o=this.hls.config;if(o.capLevelOnFPSDrop){var l=i.media instanceof self.HTMLVideoElement?i.media:null;this.media=l,l&&typeof l.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),o.fpsDroppedMonitoringPeriod)}},p.onMediaDetaching=function(){this.media=null},p.checkFPS=function(r,i,o){var l=performance.now();if(i){if(this.lastTime){var h=l-this.lastTime,v=o-this.lastDroppedFrames,C=i-this.lastDecodedFrames,T=1e3*v/h,w=this.hls;if(w.trigger(ot.FPS_DROP,{currentDropped:v,currentDecoded:C,totalDroppedFrames:o}),T>0&&v>w.config.fpsDroppedMonitoringThreshold*C){var M=w.currentLevel;w.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+M),M>0&&(w.autoLevelCapping===-1||w.autoLevelCapping>=M)&&(M-=1,w.trigger(ot.FPS_DROP_LEVEL_CAPPING,{level:M,droppedLevel:w.currentLevel}),w.autoLevelCapping=M,this.streamController.nextLevelSwitch())}}this.lastTime=l,this.lastDroppedFrames=o,this.lastDecodedFrames=i}},p.checkFPSInterval=function(){var r=this.media;if(r)if(this.isVideoPlaybackQualityAvailable){var i=r.getVideoPlaybackQuality();
95this.checkFPS(r,i.totalVideoFrames,i.droppedVideoFrames)}else this.checkFPS(r,r.webkitDecodedFrameCount,r.webkitDroppedFrameCount)},f}(),Ue=function(){function f(){this.chunks=[],this.dataLength=0}var p=f.prototype;return p.push=function(r){this.chunks.push(r),this.dataLength+=r.length},p.flush=function(){var r,i=this.chunks,o=this.dataLength;return i.length?(r=i.length===1?i[0]:function(l,h){for(var v=new Uint8Array(h),C=0,T=0;T<l.length;T++){var w=l[T];v.set(w,C),C+=w.length}return v}(i,o),this.reset(),r):new Uint8Array(0)},p.reset=function(){this.chunks.length=0,this.dataLength=0},f}();function Ne(f,p){return p+10<=f.length&&f[p]===51&&f[p+1]===68&&f[p+2]===73&&f[p+3]<255&&f[p+4]<255&&f[p+6]<128&&f[p+7]<128&&f[p+8]<128&&f[p+9]<128}function ne(f,p){return p+10<=f.length&&f[p]===73&&f[p+1]===68&&f[p+2]===51&&f[p+3]<255&&f[p+4]<255&&f[p+6]<128&&f[p+7]<128&&f[p+8]<128&&f[p+9]<128}function Kt(f,p){var r=0;return r=(127&f[p])<<21,r|=(127&f[p+1])<<14,r|=(127&f[p+2])<<7,r|=127&f[p+3]}function ce(f,p){for(var r=p,i=0;ne(f,p);)i+=10,i+=Kt(f,p+6),Ne(f,p+10)&&(i+=10),p+=i;if(i>0)return f.subarray(r,r+i)}function le(f,p){return f[p]===255&&(246&f[p+1])==240}function Ae(f,p){return 1&f[p+1]?7:9}function Ze(f,p){return(3&f[p+3])<<11|f[p+4]<<3|(224&f[p+5])>>>5}function _i(f,p){return p+1<f.length&&le(f,p)}function Ii(f,p){if(_i(f,p)){var r=Ae(f,p);if(p+r>=f.length)return!1;var i=Ze(f,p);if(i<=r)return!1;var o=p+i;return o===f.length||_i(f,o)}return!1}function fe(f,p,r,i,o){if(!f.samplerate){var l=function(h,v,C,T){var w=v[C+2],M=w>>2&15;if(!(M>12)){var F=1+(w>>6&3),B=v[C+3]>>6&3|(1&w)<<2,U="mp4a.40."+F,tt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350][M],et=M;F!==5&&F!==29||(et-=3);var st=[F<<3|(14&et)>>1,(1&et)<<7|B<<3];return Ri.log("manifest codec:"+T+", parsed codec:"+U+", channels:"+B+", rate:"+tt+" (ADTS object type:"+F+" sampling index:"+M+")"),{config:st,samplerate:tt,channelCount:B,codec:U,parsedCodec:U,manifestCodec:T}}var ft=new Error("invalid ADTS sampling index:"+M);h.emit(ot.ERROR,ot.ERROR,{type:me.MEDIA_ERROR,details:mt.FRAG_PARSING_ERROR,fatal:!0,error:ft,reason:ft.message})}(p,r,i,o);if(!l)return;I(f,l)}}function Si(f){return 9216e4/f}function Mi(f,p,r,i,o){var l,h=i+o*Si(f.samplerate),v=function(U,tt){var et=Ae(U,tt);if(tt+et<=U.length){var st=Ze(U,tt)-et;if(st>0)return{headerLength:et,frameLength:st}}}(p,r);if(v){var C=v.frameLength,T=v.headerLength,w=T+C,M=Math.max(0,r+w-p.length);M?(l=new Uint8Array(w-T)).set(p.subarray(r+T,p.length),0):l=p.subarray(r+T,r+w);var F={unit:l,pts:h};return M||f.samples.push(F),{sample:F,length:w,missing:M}}var B=p.length-r;return(l=new Uint8Array(B)).set(p.subarray(r,p.length),0),{sample:{unit:l,pts:h},length:B,missing:-1}}function bi(f,p){return ne(f,p)&&Kt(f,p+6)+10<=f.length-p}function mn(f,p,r){return p===void 0&&(p=0),r===void 0&&(r=1/0),function(i,o,l,h){var v=function(tt){return tt instanceof ArrayBuffer?tt:tt.buffer}(i),C=1;"BYTES_PER_ELEMENT"in h&&(C=h.BYTES_PER_ELEMENT);var T,w=(T=i)&&T.buffer instanceof ArrayBuffer&&T.byteLength!==void 0&&T.byteOffset!==void 0?i.byteOffset:0,M=(w+i.byteLength)/C,F=(w+o)/C,B=Math.floor(Math.max(0,Math.min(F,M))),U=Math.floor(Math.min(B+Math.max(l,0),M));return new h(v,B,U-B)}(f,p,r,Uint8Array)}function mr(f){var p={key:f.type,description:"",data:"",mimeType:null,pictureType:null};if(!(f.size<2))if(f.data[0]===3){var r=f.data.subarray(1).indexOf(0);if(r!==-1){var i=Ji(mn(f.data,1,r)),o=f.data[2+r],l=f.data.subarray(3+r).indexOf(0);if(l!==-1){var h,v=Ji(mn(f.data,3+r,l));return h=i==="-->"?Ji(mn(f.data,4+r+l)):function(C){return C instanceof ArrayBuffer?C:C.byteOffset==0&&C.byteLength==C.buffer.byteLength?C.buffer:new Uint8Array(C).buffer}(f.data.subarray(4+r+l)),p.mimeType=i,p.pictureType=o,p.description=v,p.data=h,p}}}else console.log("Ignore frame with unrecognized character encoding")}function Rr(f){return f.type==="PRIV"?function(p){if(!(p.size<2)){var r=Ji(p.data,!0),i=new Uint8Array(p.data.subarray(r.length+1));return{key:p.type,info:r,data:i.buffer}}}(f):f.type[0]==="W"?function(p){if(p.type==="WXXX"){if(p.size<2)return;var r=1,i=Ji(p.data.subarray(r),!0);r+=i.length+1;
95var o=Ji(p.data.subarray(r));return{key:p.type,info:i,data:o}}var l=Ji(p.data);return{key:p.type,info:"",data:l}}(f):f.type==="APIC"?mr(f):function(p){if(!(p.size<2)){if(p.type==="TXXX"){var r=1,i=Ji(p.data.subarray(r),!0);r+=i.length+1;var o=Ji(p.data.subarray(r));return{key:p.type,info:i,data:o}}var l=Ji(p.data.subarray(1));return{key:p.type,info:"",data:l}}}(f)}function lo(f){var p=String.fromCharCode(f[0],f[1],f[2],f[3]),r=Kt(f,4);return{type:p,size:r,data:f.subarray(10,10+r)}}var Kr=10,jr=10;function xr(f){for(var p=0,r=[];ne(f,p);){var i=Kt(f,p+6);f[p+5]>>6&1&&(p+=Kr);for(var o=(p+=Kr)+i;p+jr<o;){var l=lo(f.subarray(p)),h=Rr(l);h&&r.push(h),p+=l.size+Kr}Ne(f,p)&&(p+=Kr)}return r}function no(f){return f&&f.key==="PRIV"&&f.info==="com.apple.streaming.transportStreamTimestamp"}function Vr(f){if(f.data.byteLength===8){var p=new Uint8Array(f.data),r=1&p[3],i=(p[4]<<23)+(p[5]<<15)+(p[6]<<7)+p[7];return i/=45,r&&(i+=4772185884e-2),Math.round(i)}}function co(f){for(var p=xr(f),r=0;r<p.length;r++){var i=p[r];if(no(i))return Vr(i)}}var dr=function(f){return f.audioId3="org.id3",f.dateRange="com.apple.quicktime.HLS",f.emsg="https://aomedia.org/emsg/ID3",f.misbklv="urn:misb:KLV:bin:1910.1",f}({});function br(f,p){return f===void 0&&(f=""),p===void 0&&(p=9e4),{type:f,id:-1,pid:-1,inputTimeScale:p,sequenceNumber:-1,samples:[],dropped:0}}var Gr=function(){function f(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}var p=f.prototype;return p.resetInitSegment=function(r,i,o,l){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},p.resetTimeStamp=function(r){this.initPTS=r,this.resetContiguity()},p.resetContiguity=function(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0},p.canParse=function(r,i){return!1},p.appendFrame=function(r,i,o){},p.demux=function(r,i){this.cachedData&&(r=un(this.cachedData,r),this.cachedData=null);var o,l=ce(r,0),h=l?l.length:0,v=this._audioTrack,C=this._id3Track,T=l?co(l):void 0,w=r.length;for((this.basePTS===null||this.frameIndex===0&&Ot(T))&&(this.basePTS=ro(T,i,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),l&&l.length>0&&C.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:l,type:dr.audioId3,duration:Number.POSITIVE_INFINITY});h<w;){if(this.canParse(r,h)){var M=this.appendFrame(v,r,h);M?(this.frameIndex++,this.lastPTS=M.sample.pts,o=h+=M.length):h=w}else bi(r,h)?(l=ce(r,h),C.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:l,type:dr.audioId3,duration:Number.POSITIVE_INFINITY}),o=h+=l.length):h++;if(h===w&&o!==w){var F=r.slice(o);this.cachedData?this.cachedData=un(this.cachedData,F):this.cachedData=F}}return{audioTrack:v,videoTrack:br(),id3Track:C,textTrack:br()}},p.demuxSampleAes=function(r,i,o){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},p.flush=function(r){var i=this.cachedData;return i&&(this.cachedData=null,this.demux(i,0)),{audioTrack:this._audioTrack,videoTrack:br(),id3Track:this._id3Track,textTrack:br()}},p.destroy=function(){this.cachedData=null,this._audioTrack=this._id3Track=void 0},f}(),ro=function(f,p,r){return Ot(f)?90*f:9e4*p+(r?9e4*r.baseTime/r.timescale:0)},Jr=null,to=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],oo=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Mo=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],ts=[0,1,1,4];function wo(f,p,r,i,o){if(!(r+24>p.length)){var l=Ro(p,r);if(l&&r+l.frameLength<=p.length){var h=i+o*(9e4*l.samplesPerFrame/l.sampleRate),v={unit:p.subarray(r,r+l.frameLength),pts:h,dts:h};return f.config=[],f.channelCount=l.channelCount,f.samplerate=l.sampleRate,f.samples.push(v),{sample:v,length:l.frameLength,missing:0}}}}function Ro(f,p){var r=f[p+1]>>3&3,i=f[p+1]>>1&3,o=f[p+2]>>4&15,l=f[p+2]>>2&3;if(r!==1&&o!==0&&o!==15&&l!==3){var h=f[p+2]>>1&1,v=f[p+3]>>6,C=1e3*to[14*(r===3?3-i:i===3?3:4)+o-1],T=oo[3*(r===3?0:r===2?1:2)+l],w=v===3?1:2,M=Mo[r][i],F=ts[i],B=8*M*F,U=Math.floor(M*C/T+h)*F;if(Jr===null){var tt=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Jr=tt?parseInt(tt[1]):0}return Jr&&Jr<=87&&i===2&&C>=224e3&&v===0&&(f[p+3]=128|f[p+3]),{sampleRate:T,channelCount:w,frameLength:U,samplesPerFrame:B}}}function St(f,p){return f[p]===255&&(224&f[p+1])==224&&(6&f[p+1])!=0}function qt(f,p){return p+1<f.length&&St(f,p)}function Qt(f,p){if(p+1<f.length&&St(f,p)){var r=Ro(f,p),i=4;r!=null&&r.frameLength&&(i=r.frameLength);var o=p+i;return o===f.length||qt(f,o)}return!1}var re=function(f){function p(i,o){var l;return(l=f.call(this)||this).observer=void 0,l.config=void 0,l.observer=i,l.config=o,l}ct(p,f);var r=p.prototype;return r.resetInitSegment=function(i,o,l,h){f.prototype.resetInitSegment.call(this,i,o,l,h),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:o,duration:h,inputTimeScale:9e4,dropped:0}},p.probe=function(i,o){if(!i)return!1;var l=ce(i,0),h=(l==null?void 0:l.length)||0;
vendor: 8,968 bytes, line 95
95if(Qt(i,h))return!1;for(var v=i.length;h<v;h++)if(Ii(i,h))return o.log("ADTS sync word found !"),!0;return!1},r.canParse=function(i,o){return function(l,h){return function(v,C){return C+5<v.length}(l,h)&&le(l,h)&&Ze(l,h)<=l.length-h}(i,o)},r.appendFrame=function(i,o,l){fe(i,this.observer,o,l,i.manifestCodec);var h=Mi(i,o,l,this.basePTS,this.frameIndex);if(h&&h.missing===0)return h},p}(Gr),pe=function(f){function p(){return f.apply(this,arguments)||this}ct(p,f);var r=p.prototype;return r.resetInitSegment=function(i,o,l,h){f.prototype.resetInitSegment.call(this,i,o,l,h),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:o,duration:h,inputTimeScale:9e4,dropped:0}},p.probe=function(i){if(!i)return!1;var o=ce(i,0),l=(o==null?void 0:o.length)||0;if(o&&i[l]===11&&i[l+1]===119&&co(o)!==void 0&&function(v,C){var T=0,w=5;C+=w;for(var M=new Uint32Array(1),F=new Uint32Array(1),B=new Uint8Array(1);w>0;){B[0]=v[C];var U=Math.min(w,8),tt=8-U;F[0]=4278190080>>>24+tt<<tt,M[0]=(B[0]&F[0])>>tt,T=T?T<<U|M[0]:M[0],C+=1,w-=U}return T}(i,l)<=16)return!1;for(var h=i.length;l<h;l++)if(Qt(i,l))return Ri.log("MPEG Audio sync word found !"),!0;return!1},r.canParse=function(i,o){return function(l,h){return St(l,h)&&4<=l.length-h}(i,o)},r.appendFrame=function(i,o,l){if(this.basePTS!==null)return wo(i,o,l,this.basePTS,this.frameIndex)},p}(Gr),Qe=function(){function f(p,r,i){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=p,this.aesIV=r,this.aesMode=i}return f.prototype.decrypt=function(p,r){switch(this.aesMode){case fi:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},r,p);case Wt:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},r,p);default:throw new Error("[AESCrypto] invalid aes mode "+this.aesMode)}},f}(),mi=function(){function f(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}var p=f.prototype;return p.uint8ArrayToUint32Array_=function(r){for(var i=new DataView(r),o=new Uint32Array(4),l=0;l<4;l++)o[l]=i.getUint32(4*l);return o},p.initTable=function(){var r=this.sBox,i=this.invSBox,o=this.subMix,l=o[0],h=o[1],v=o[2],C=o[3],T=this.invSubMix,w=T[0],M=T[1],F=T[2],B=T[3],U=new Uint32Array(256),tt=0,et=0,st=0;for(st=0;st<256;st++)U[st]=st<128?st<<1:st<<1^283;for(st=0;st<256;st++){var ft=et^et<<1^et<<2^et<<3^et<<4;ft=ft>>>8^255&ft^99,r[tt]=ft,i[ft]=tt;var kt=U[tt],At=U[kt],Yt=U[At],Bt=257*U[ft]^16843008*ft;l[tt]=Bt<<24|Bt>>>8,h[tt]=Bt<<16|Bt>>>16,v[tt]=Bt<<8|Bt>>>24,C[tt]=Bt,Bt=16843009*Yt^65537*At^257*kt^16843008*tt,w[ft]=Bt<<24|Bt>>>8,M[ft]=Bt<<16|Bt>>>16,F[ft]=Bt<<8|Bt>>>24,B[ft]=Bt,tt?(tt=kt^U[U[U[Yt^kt]]],et^=U[U[et]]):tt=et=1}},p.expandKey=function(r){for(var i=this.uint8ArrayToUint32Array_(r),o=!0,l=0;l<i.length&&o;)o=i[l]===this.key[l],l++;if(!o){this.key=i;var h=this.keySize=i.length;if(h!==4&&h!==6&&h!==8)throw new Error("Invalid aes key size="+h);var v,C,T,w,M=this.ksRows=4*(h+6+1),F=this.keySchedule=new Uint32Array(M),B=this.invKeySchedule=new Uint32Array(M),U=this.sBox,tt=this.rcon,et=this.invSubMix,st=et[0],ft=et[1],kt=et[2],At=et[3];for(v=0;v<M;v++)v<h?T=F[v]=i[v]:(w=T,v%h==0?(w=U[(w=w<<8|w>>>24)>>>24]<<24|U[w>>>16&255]<<16|U[w>>>8&255]<<8|U[255&w],w^=tt[v/h|0]<<24):h>6&&v%h==4&&(w=U[w>>>24]<<24|U[w>>>16&255]<<16|U[w>>>8&255]<<8|U[255&w]),F[v]=T=(F[v-h]^w)>>>0);for(C=0;C<M;C++)v=M-C,w=3&C?F[v]:F[v-4],B[C]=C<4||v<=4?w:st[U[w>>>24]]^ft[U[w>>>16&255]]^kt[U[w>>>8&255]]^At[U[255&w]],B[C]=B[C]>>>0}},p.networkToHostOrderSwap=function(r){return r<<24|(65280&r)<<8|(16711680&r)>>8|r>>>24},p.decrypt=function(r,i,o){for(var l,h,v,C,T,w,M,F,B,U,tt,et,st,ft,kt=this.keySize+6,At=this.invKeySchedule,Yt=this.invSBox,Bt=this.invSubMix,$t=Bt[0],oe=Bt[1],be=Bt[2],Gt=Bt[3],se=this.uint8ArrayToUint32Array_(o),he=se[0],di=se[1],Je=se[2],He=se[3],Ve=new Int32Array(r),Ye=new Int32Array(Ve.length),gi=this.networkToHostOrderSwap;i<Ve.length;){for(B=gi(Ve[i]),U=gi(Ve[i+1]),tt=gi(Ve[i+2]),et=gi(Ve[i+3]),T=B^At[0],w=et^At[1],M=tt^At[2],F=U^At[3],st=4,ft=1;ft<kt;ft++)l=$t[T>>>24]^oe[w>>16&255]^be[M>>8&255]^Gt[255&F]^At[st],h=$t[w>>>24]^oe[M>>16&255]^be[F>>8&255]^Gt[255&T]^At[st+1],v=$t[M>>>24]^oe[F>>16&255]^be[T>>8&255]^Gt[255&w]^At[st+2],C=$t[F>>>24]^oe[T>>16&255]^be[w>>8&255]^Gt[255&M]^At[st+3],T=l,w=h,M=v,F=C,st+=4;l=Yt[T>>>24]<<24^Yt[w>>16&255]<<16^Yt[M>>8&255]<<8^Yt[255&F]^At[st],h=Yt[w>>>24]<<24^Yt[M>>16&255]<<16^Yt[F>>8&255]<<8^Yt[255&T]^At[st+1],v=Yt[M>>>24]<<24^Yt[F>>16&255]<<16^Yt[T>>8&255]<<8^Yt[255&w]^At[st+2],C=Yt[F>>>24]<<24^Yt[T>>16&255]<<16^Yt[w>>8&255]<<8^Yt[255&M]^At[st+3],Ye[i]=gi(l^he),Ye[i+1]=gi(C^di),Ye[i+2]=gi(v^Je),Ye[i+3]=gi(h^He),he=B,di=U,Je=tt,He=et,i+=4}return Ye.buffer},f}(),Di=function(){function f(p,r,i){this.subtle=void 0,this.key=void 0,this.aesMode=void 0,this.subtle=p,this.key=r,this.aesMode=i}return f.prototype.expandKey=function(){var p=function(r){switch(r){case fi:return"AES-CBC";case Wt:return"AES-CTR";default:throw new Error("[FastAESKey] invalid aes mode "+r)}}(this.aesMode);return this.subtle.importKey("raw",this.key,{name:p},!1,["encrypt","decrypt"])},f}(),hi=function(){function f(r,i){var o=(i===void 0?{}:i).removePKCS7Padding,l=o===void 0||o;if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.enableSoftwareAES=void 0,this.enableSoftwareAES=r.enableSoftwareAES,this.removePKCS7Padding=l,l)try{var h=self.crypto;h&&(this.subtle=h.subtle||h.webkitSubtle)}catch{}this.useSoftware=!this.subtle}var p=f.prototype;return p.destroy=function(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null},p.isSync=function(){return this.useSoftware},p.flush=function(){var r=this.currentResult,i=this.remainderData;if(!r||i)return this.reset(),null;var o,l,h,v=new Uint8Array(r);return this.reset(),this.removePKCS7Padding?(l=(o=v).byteLength,(h=l&&new DataView(o.buffer).getUint8(l-1))?o.slice(0,l-h):o):v},p.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},p.decrypt=function(r,i,o,l){var h=this;return this.useSoftware?new Promise(function(v,C){var T=ArrayBuffer.isView(r)?r:new Uint8Array(r);h.softwareDecrypt(T,i,o,l);var w=h.flush();w?v(w.buffer):C(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(r),i,o,l)},p.softwareDecrypt=function(r,i,o,l){var h=this.currentIV,v=this.currentResult,C=this.remainderData;if(l!==fi||i.byteLength!==16)return Ri.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),C&&(r=un(C,r),this.remainderData=null);var T=this.getValidChunk(r);if(!T.length)return null;h&&(o=h);var w=this.softwareDecrypter;w||(w=this.softwareDecrypter=new mi),w.expandKey(i);var M=v;return this.currentResult=w.decrypt(T.buffer,0,o),this.currentIV=T.slice(-16).buffer,M||null},p.webCryptoDecrypt=function(r,i,o,l){var h=this;if(this.key!==i||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(r,i,o,l));this.key=i,this.fastAesKey=new Di(this.subtle,i,l)}return this.fastAesKey.expandKey().then(function(v){return h.subtle?(h.logOnce("WebCrypto AES decrypt"),new Qe(h.subtle,new Uint8Array(o),l).decrypt(r.buffer,v)):Promise.reject(new Error("web crypto not initialized"))}).catch(function(v){return Ri.warn("[decrypter]: WebCrypto Error, disable WebCrypto API, "+v.name+": "+v.message),h.onWebCryptoError(r,i,o,l)})},p.onWebCryptoError=function(r,i,o,l){var h=this.enableSoftwareAES;if(h){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(r,i,o,l);var v=this.flush();if(v)return v.buffer}throw new Error("WebCrypto"+(h?" and softwareDecrypt":"")+": failed to decrypt data")},p.getValidChunk=function(r){var i=r,o=r.length-r.length%16;return o!==r.length&&(i=r.slice(0,o),this.remainderData=r.slice(o)),i},p.logOnce=function(r){this.logEnabled&&(Ri.log("[decrypter]: "+r),this.logEnabled=!1)},f}(),dn=/\/emsg[-/]ID3/i,Vi=function(){function f(r,i){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=i}var p=f.prototype;return p.resetTimeStamp=function(){},p.resetInitSegment=function(r,i,o,l){var h=this.videoTrack=br("video",1),v=this.audioTrack=br("audio",1),C=this.txtTrack=br("text",1);if(this.id3Track=br("id3",1),this.timeOffset=0,r!=null&&r.byteLength){var T=fr(r);
vendor: 4,667 bytes, line 95
95if(T.video){var w=T.video,M=w.id,F=w.timescale,B=w.codec,U=w.supplemental;h.id=M,h.timescale=C.timescale=F,h.codec=B,h.supplemental=U}if(T.audio){var tt=T.audio,et=tt.id,st=tt.timescale,ft=tt.codec;v.id=et,v.timescale=st,v.codec=ft}C.id=qn.text,h.sampleDuration=0,h.duration=v.duration=l}},p.resetContiguity=function(){this.remainderData=null},f.probe=function(r){return function(i){for(var o=i.byteLength,l=0;l<o;){var h=Ti(i,l);if(h>8&&i[l+4]===109&&i[l+5]===111&&i[l+6]===111&&i[l+7]===102)return!0;l=h>1?l+h:o}return!1}(r)},p.demux=function(r,i){this.timeOffset=i;var o=r,l=this.videoTrack,h=this.txtTrack;if(this.config.progressive){this.remainderData&&(o=un(this.remainderData,r));var v=function(T){var w={valid:null,remainder:null},M=wi(T,["moof"]);if(M.length<2)return w.remainder=T,w;var F=M[M.length-1];return w.valid=T.slice(0,F.byteOffset-8),w.remainder=T.slice(F.byteOffset-8),w}(o);this.remainderData=v.remainder,l.samples=v.valid||new Uint8Array}else l.samples=o;var C=this.extractID3Track(l,i);return h.samples=pr(i,l),{videoTrack:l,audioTrack:this.audioTrack,id3Track:C,textTrack:this.txtTrack}},p.flush=function(){var r=this.timeOffset,i=this.videoTrack,o=this.txtTrack;i.samples=this.remainderData||new Uint8Array,this.remainderData=null;var l=this.extractID3Track(i,this.timeOffset);return o.samples=pr(r,i),{videoTrack:i,audioTrack:br(),id3Track:l,textTrack:br()}},p.extractID3Track=function(r,i){var o=this,l=this.id3Track;if(r.samples.length){var h=wi(r.samples,["emsg"]);h&&h.forEach(function(v){var C=function(B){var U=B[0],tt="",et="",st=0,ft=0,kt=0,At=0,Yt=0,Bt=0;if(U===0){for(;nn(B.subarray(Bt,Bt+1))!=="\0";)tt+=nn(B.subarray(Bt,Bt+1)),Bt+=1;for(tt+=nn(B.subarray(Bt,Bt+1)),Bt+=1;nn(B.subarray(Bt,Bt+1))!=="\0";)et+=nn(B.subarray(Bt,Bt+1)),Bt+=1;et+=nn(B.subarray(Bt,Bt+1)),Bt+=1,st=Ti(B,12),ft=Ti(B,16),At=Ti(B,20),Yt=Ti(B,24),Bt=28}else if(U===1){st=Ti(B,Bt+=4);var $t=Ti(B,Bt+=4),oe=Ti(B,Bt+=4);for(Bt+=4,kt=Math.pow(2,32)*$t+oe,Be(kt)||(kt=Number.MAX_SAFE_INTEGER,Ri.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),At=Ti(B,Bt),Yt=Ti(B,Bt+=4),Bt+=4;nn(B.subarray(Bt,Bt+1))!=="\0";)tt+=nn(B.subarray(Bt,Bt+1)),Bt+=1;for(tt+=nn(B.subarray(Bt,Bt+1)),Bt+=1;nn(B.subarray(Bt,Bt+1))!=="\0";)et+=nn(B.subarray(Bt,Bt+1)),Bt+=1;et+=nn(B.subarray(Bt,Bt+1)),Bt+=1}return{schemeIdUri:tt,value:et,timeScale:st,presentationTime:kt,presentationTimeDelta:ft,eventDuration:At,id:Yt,payload:B.subarray(Bt,B.byteLength)}}(v);if(dn.test(C.schemeIdUri)){var T=Yi(C,i),w=C.eventDuration===4294967295?Number.POSITIVE_INFINITY:C.eventDuration/C.timeScale;w<=.001&&(w=Number.POSITIVE_INFINITY);var M=C.payload;l.samples.push({data:M,len:M.byteLength,dts:T,pts:T,type:dr.emsg,duration:w})}else if(o.config.enableEmsgKLVMetadata&&C.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){var F=Yi(C,i);l.samples.push({data:C.payload,len:C.payload.byteLength,dts:F,pts:F,type:dr.misbklv,duration:Number.POSITIVE_INFINITY})}})}return l},p.demuxSampleAes=function(r,i,o){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},p.destroy=function(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0},f}();function Yi(f,p){return Ot(f.presentationTime)?f.presentationTime/f.timeScale:p+f.presentationTimeDelta/f.timeScale}var hn=function(){function f(r,i,o){this.keyData=void 0,this.decrypter=void 0,this.keyData=o,this.decrypter=new hi(i,{removePKCS7Padding:!1})}var p=f.prototype;return p.decryptBuffer=function(r){return this.decrypter.decrypt(r,this.keyData.key.buffer,this.keyData.iv.buffer,fi)},p.decryptAacSample=function(r,i,o){var l=this,h=r[i].unit;if(!(h.length<=16)){var v=h.subarray(16,h.length-h.length%16),C=v.buffer.slice(v.byteOffset,v.byteOffset+v.length);this.decryptBuffer(C).then(function(T){var w=new Uint8Array(T);h.set(w,16),l.decrypter.isSync()||l.decryptAacSamples(r,i+1,o)}).catch(o)}},p.decryptAacSamples=function(r,i,o){for(;;i++){if(i>=r.length)return void o();if(!(r[i].unit.length<32||(this.decryptAacSample(r,i,o),this.decrypter.isSync())))return}},p.getAvcEncryptedData=function(r){for(var i=16*Math.floor((r.length-48)/160)+16,o=new Int8Array(i),l=0,h=32;h<r.length-16;h+=160,l+=16)o.set(r.subarray(h,h+16),l);return o},p.getAvcDecryptedUnit=function(r,i){for(var o=new Uint8Array(i),l=0,h=32;h<r.length-16;h+=160,l+=16)r.set(o.subarray(l,l+16),h);return r},p.decryptAvcSample=function(r,i,o,l,h){var v=this,C=Zn(h.data),T=this.getAvcEncryptedData(C);this.decryptBuffer(T.buffer).then(function(w){h.data=v.getAvcDecryptedUnit(C,w),v.decrypter.isSync()||v.decryptAvcSamples(r,i,o+1,l)}
vendor: 4,877 bytes, line 95
95).catch(l)},p.decryptAvcSamples=function(r,i,o,l){if(r instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;i++,o=0){if(i>=r.length)return void l();for(var h=r[i].units;!(o>=h.length);o++){var v=h[o];if(!(v.data.length<=48||v.type!==1&&v.type!==5||(this.decryptAvcSample(r,i,o,l,v),this.decrypter.isSync())))return}}},f}(),Fi=function(){function f(){this.VideoSample=null}var p=f.prototype;return p.createVideoSample=function(r,i,o){return{key:r,frame:!1,pts:i,dts:o,units:[],length:0}},p.getLastNalUnit=function(r){var i,o,l=this.VideoSample;if(l&&l.units.length!==0||(l=r[r.length-1]),(i=l)!=null&&i.units){var h=l.units;o=h[h.length-1]}return o},p.pushAccessUnit=function(r,i){if(r.units.length&&r.frame){if(r.pts===void 0){var o=i.samples,l=o.length;if(!l)return void i.dropped++;var h=o[l-1];r.pts=h.pts,r.dts=h.dts}i.samples.push(r)}},p.parseNALu=function(r,i,o){var l,h,v=i.byteLength,C=r.naluState||0,T=C,w=[],M=0,F=-1,B=0;for(C===-1&&(F=0,B=this.getNALuType(i,0),C=0,M=1);M<v;)if(l=i[M++],C)if(C!==1)if(l)if(l===1){if(h=M-C-1,F>=0){var U={data:i.subarray(F,h),type:B};w.push(U)}else{var tt=this.getLastNalUnit(r.samples);tt&&(T&&M<=4-T&&tt.state&&(tt.data=tt.data.subarray(0,tt.data.byteLength-T)),h>0&&(tt.data=un(tt.data,i.subarray(0,h)),tt.state=0))}M<v?(F=M,B=this.getNALuType(i,M),C=0):C=-1}else C=0;else C=3;else C=l?0:2;else C=l?0:1;if(F>=0&&C>=0){var et={data:i.subarray(F,v),type:B,state:C};w.push(et)}if(w.length===0){var st=this.getLastNalUnit(r.samples);st&&(st.data=un(st.data,i))}return r.naluState=C,w},f}(),Un=function(){function f(r){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=r,this.bytesAvailable=r.byteLength,this.word=0,this.bitsAvailable=0}var p=f.prototype;return p.loadWord=function(){var r=this.data,i=this.bytesAvailable,o=r.byteLength-i,l=new Uint8Array(4),h=Math.min(4,i);if(h===0)throw new Error("no bytes available");l.set(r.subarray(o,o+h)),this.word=new DataView(l.buffer).getUint32(0),this.bitsAvailable=8*h,this.bytesAvailable-=h},p.skipBits=function(r){var i;r=Math.min(r,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>r?(this.word<<=r,this.bitsAvailable-=r):(r-=this.bitsAvailable,r-=(i=r>>3)<<3,this.bytesAvailable-=i,this.loadWord(),this.word<<=r,this.bitsAvailable-=r)},p.readBits=function(r){var i=Math.min(this.bitsAvailable,r),o=this.word>>>32-i;if(r>32&&Ri.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=i,this.bitsAvailable>0)this.word<<=i;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return(i=r-i)>0&&this.bitsAvailable?o<<i|this.readBits(i):o},p.skipLZ=function(){var r;for(r=0;r<this.bitsAvailable;++r)if(this.word&2147483648>>>r)return this.word<<=r,this.bitsAvailable-=r,r;return this.loadWord(),r+this.skipLZ()},p.skipUEG=function(){this.skipBits(1+this.skipLZ())},p.skipEG=function(){this.skipBits(1+this.skipLZ())},p.readUEG=function(){var r=this.skipLZ();return this.readBits(r+1)-1},p.readEG=function(){var r=this.readUEG();return 1&r?1+r>>>1:-1*(r>>>1)},p.readBoolean=function(){return this.readBits(1)===1},p.readUByte=function(){return this.readBits(8)},p.readUShort=function(){return this.readBits(16)},p.readUInt=function(){return this.readBits(32)},f}(),Or=function(f){function p(){return f.apply(this,arguments)||this}ct(p,f);var r=p.prototype;return r.parsePES=function(i,o,l,h){var v,C=this,T=this.parseNALu(i,l.data,h),w=this.VideoSample,M=!1;l.data=null,w&&T.length&&!i.audFound&&(this.pushAccessUnit(w,i),w=this.VideoSample=this.createVideoSample(!1,l.pts,l.dts)),T.forEach(function(F){var B,U;switch(F.type){case 1:var tt=!1;v=!0;var et,st=F.data;if(M&&st.length>4){var ft=C.readSliceType(st);ft!==2&&ft!==4&&ft!==7&&ft!==9||(tt=!0)}tt&&(et=w)!=null&&et.frame&&!w.key&&(C.pushAccessUnit(w,i),w=C.VideoSample=null),w||(w=C.VideoSample=C.createVideoSample(!0,l.pts,l.dts)),w.frame=!0,w.key=tt;break;case 5:v=!0,(B=w)!=null&&B.frame&&!w.key&&(C.pushAccessUnit(w,i),w=C.VideoSample=null),w||(w=C.VideoSample=C.createVideoSample(!0,l.pts,l.dts)),w.key=!0,w.frame=!0;break;case 6:v=!0,Mr(F.data,1,l.pts,o.samples);break;case 7:var kt,At;v=!0,M=!0;var Yt=F.data,Bt=C.readSPS(Yt);if(!i.sps||i.width!==Bt.width||i.height!==Bt.height||((kt=i.pixelRatio)==null?void 0:kt[0])!==Bt.pixelRatio[0]||((At=i.pixelRatio)==null?void 0:At[1])!==Bt.pixelRatio[1]){i.width=Bt.width,i.height=Bt.height,i.pixelRatio=Bt.pixelRatio,i.sps=[Yt];for(var $t=Yt.subarray(1,4),oe="avc1.",be=0;be<3;be++){var Gt=$t[be].toString(16);Gt.length<2&&(Gt="0"+Gt),oe+=Gt}i.codec=oe}break;case 8:v=!0,i.pps=[F.data];break;case 9:v=!0,i.audFound=!0,(U=w)!=null&&U.frame&&(C.pushAccessUnit(w,i),w=null),w||(w=C.VideoSample=C.createVideoSample(!1,l.pts,l.dts));break;case 12:v=!0;break;default:v=!1}w&&v&&w.units.push(F)}),h&&w&&(this.pushAccessUnit(w,i),this.VideoSample=null)}
95,r.getNALuType=function(i,o){return 31&i[o]},r.readSliceType=function(i){var o=new Un(i);return o.readUByte(),o.readUEG(),o.readUEG()},r.skipScalingList=function(i,o){for(var l=8,h=8,v=0;v<i;v++)h!==0&&(h=(l+o.readEG()+256)%256),l=h===0?l:h},r.readSPS=function(i){var o,l,h,v=new Un(i),C=0,T=0,w=0,M=0,F=v.readUByte.bind(v),B=v.readBits.bind(v),U=v.readUEG.bind(v),tt=v.readBoolean.bind(v),et=v.skipBits.bind(v),st=v.skipEG.bind(v),ft=v.skipUEG.bind(v),kt=this.skipScalingList.bind(this);F();var At=F();if(B(5),et(3),F(),ft(),At===100||At===110||At===122||At===244||At===44||At===83||At===86||At===118||At===128){var Yt=U();if(Yt===3&&et(1),ft(),ft(),et(1),tt())for(l=Yt!==3?8:12,h=0;h<l;h++)tt()&&kt(h<6?16:64,v)}ft();var Bt=U();if(Bt===0)U();else if(Bt===1)for(et(1),st(),st(),o=U(),h=0;h<o;h++)st();ft(),et(1);var $t=U(),oe=U(),be=B(1);be===0&&et(1),et(1),tt()&&(C=U(),T=U(),w=U(),M=U());var Gt=[1,1];if(tt()&&tt())switch(F()){case 1:Gt=[1,1];break;case 2:Gt=[12,11];break;case 3:Gt=[10,11];break;case 4:Gt=[16,11];break;case 5:Gt=[40,33];break;case 6:Gt=[24,11];break;case 7:Gt=[20,11];break;case 8:Gt=[32,11];break;case 9:Gt=[80,33];break;case 10:Gt=[18,11];break;case 11:Gt=[15,11];break;case 12:Gt=[64,33];break;case 13:Gt=[160,99];break;case 14:Gt=[4,3];break;case 15:Gt=[3,2];break;case 16:Gt=[2,1];break;case 255:Gt=[F()<<8|F(),F()<<8|F()]}return{width:Math.ceil(16*($t+1)-2*C-2*T),height:(2-be)*(oe+1)*16-(be?2:4)*(w+M),pixelRatio:Gt}},p}(Fi),In=188,Ur=function(){function f(r,i,o,l){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=r,this.config=i,this.typeSupported=o,this.logger=l,this.videoParser=null}f.probe=function(r,i){var o=f.syncOffset(r);return o>0&&i.warn("MPEG2-TS detected but first sync word found @ offset "+o),o!==-1},f.syncOffset=function(r){for(var i=r.length,o=Math.min(940,i-In)+1,l=0;l<o;){for(var h=!1,v=-1,C=0,T=l;T<i;T+=In){if(r[T]!==71||i-T!==In&&r[T+In]!==71){if(C)return-1;break}if(C++,v===-1&&(v=T)!==0&&(o=Math.min(v+18612,r.length-In)+1),h||(h=zr(r,T)===0),h&&C>1&&(v===0&&C>2||T+In>o))return v}l++}return-1},f.createTrack=function(r,i){return{container:r==="video"||r==="audio"?"video/mp2t":void 0,type:r,id:qn[r],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:r==="audio"?i:void 0}};var p=f.prototype;return p.resetInitSegment=function(r,i,o,l){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=f.createTrack("video"),this._videoTrack.duration=l,this._audioTrack=f.createTrack("audio",l),this._id3Track=f.createTrack("id3"),this._txtTrack=f.createTrack("text"),this._audioTrack.segmentCodec="aac",this.videoParser=null,this.aacOverFlow=null,this.remainderData=null,this.audioCodec=i,this.videoCodec=o},p.resetTimeStamp=function(){},p.resetContiguity=function(){var r=this._audioTrack,i=this._videoTrack,o=this._id3Track;r&&(r.pesData=null),i&&(i.pesData=null),o&&(o.pesData=null),this.aacOverFlow=null,this.remainderData=null},p.demux=function(r,i,o,l){var h;o===void 0&&(o=!1),l===void 0&&(l=!1),o||(this.sampleAes=null);var v=this._videoTrack,C=this._audioTrack,T=this._id3Track,w=this._txtTrack,M=v.pid,F=v.pesData,B=C.pid,U=T.pid,tt=C.pesData,et=T.pesData,st=null,ft=this.pmtParsed,kt=this._pmtId,At=r.length;if(this.remainderData&&(At=(r=un(this.remainderData,r)).length,this.remainderData=null),At<In&&!l)return this.remainderData=r,{audioTrack:C,videoTrack:v,id3Track:T,textTrack:w};var Yt=Math.max(0,f.syncOffset(r));(At-=(At-Yt)%In)<r.byteLength&&!l&&(this.remainderData=new Uint8Array(r.buffer,At,r.buffer.byteLength-At));for(var Bt=0,$t=Yt;$t<At;$t+=In)if(r[$t]===71){var oe=!!(64&r[$t+1]),be=zr(r,$t),Gt=void 0;if((48&r[$t+3])>>4>1){if((Gt=$t+5+r[$t+4])===$t+In)continue}else Gt=$t+4;switch(be){case M:oe&&(F&&(h=ko(F,this.logger))&&(this.readyVideoParser(v.segmentCodec),this.videoParser!==null&&this.videoParser.parsePES(v,w,h,!1)),F={data:[],size:0}),F&&(F.data.push(r.subarray(Gt,$t+In)),F.size+=$t+In-Gt);break;case B:if(oe){if(tt&&(h=ko(tt,this.logger)))switch(C.segmentCodec){case"aac":this.parseAACPES(C,h);break;case"mp3":this.parseMPEGPES(C,h)}tt={data:[],size:0}}tt&&(tt.data.push(r.subarray(Gt,$t+In)),tt.size+=$t+In-Gt);break;case U:oe&&(et&&(h=ko(et,this.logger))&&this.parseID3PES(T,h),et={data:[],size:0}),et&&(et.data.push(r.subarray(Gt,$t+In)),et.size+=$t+In-Gt);break;case 0:oe&&(Gt+=r[Gt]+1),kt=this._pmtId=uo(r,Gt);break;case kt:oe&&(Gt+=r[Gt]+1);
vendor: 7,634 bytes, line 95
95var se=Ir(r,Gt,this.typeSupported,o,this.observer,this.logger);(M=se.videoPid)>0&&(v.pid=M,v.segmentCodec=se.segmentVideoCodec),(B=se.audioPid)>0&&(C.pid=B,C.segmentCodec=se.segmentAudioCodec),(U=se.id3Pid)>0&&(T.pid=U),st===null||ft||(this.logger.warn("MPEG-TS PMT found at "+$t+" after unknown PID '"+st+"'. Backtracking to sync byte @"+Yt+" to parse all TS packets."),st=null,$t=Yt-188),ft=this.pmtParsed=!0;break;case 17:case 8191:break;default:st=be}}else Bt++;Bt>0&&jo(this.observer,new Error("Found "+Bt+" TS packet/s that do not start with 0x47"),void 0,this.logger),v.pesData=F,C.pesData=tt,T.pesData=et;var he={audioTrack:C,videoTrack:v,id3Track:T,textTrack:w};return l&&this.extractRemainingSamples(he),he},p.flush=function(){var r,i=this.remainderData;return this.remainderData=null,r=i?this.demux(i,-1,!1,!0):{videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(r),this.sampleAes?this.decrypt(r,this.sampleAes):r},p.extractRemainingSamples=function(r){var i,o=r.audioTrack,l=r.videoTrack,h=r.id3Track,v=r.textTrack,C=l.pesData,T=o.pesData,w=h.pesData;if(C&&(i=ko(C,this.logger))?(this.readyVideoParser(l.segmentCodec),this.videoParser!==null&&(this.videoParser.parsePES(l,v,i,!0),l.pesData=null)):l.pesData=C,T&&(i=ko(T,this.logger))){switch(o.segmentCodec){case"aac":this.parseAACPES(o,i);break;case"mp3":this.parseMPEGPES(o,i)}o.pesData=null}else T!=null&&T.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),o.pesData=T;w&&(i=ko(w,this.logger))?(this.parseID3PES(h,i),h.pesData=null):h.pesData=w},p.demuxSampleAes=function(r,i,o){var l=this.demux(r,o,!0,!this.config.progressive),h=this.sampleAes=new hn(this.observer,this.config,i);return this.decrypt(l,h)},p.readyVideoParser=function(r){this.videoParser===null&&r==="avc"&&(this.videoParser=new Or)},p.decrypt=function(r,i){return new Promise(function(o){var l=r.audioTrack,h=r.videoTrack;l.samples&&l.segmentCodec==="aac"?i.decryptAacSamples(l.samples,0,function(){h.samples?i.decryptAvcSamples(h.samples,0,0,function(){o(r)}):o(r)}):h.samples&&i.decryptAvcSamples(h.samples,0,0,function(){o(r)})})},p.destroy=function(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0},p.parseAACPES=function(r,i){var o,l,h,v=0,C=this.aacOverFlow,T=i.data;if(C){this.aacOverFlow=null;var w=C.missing,M=C.sample.unit.byteLength;if(w===-1)T=un(C.sample.unit,T);else{var F=M-w;C.sample.unit.set(T.subarray(0,w),F),r.samples.push(C.sample),v=C.missing}}for(o=v,l=T.length;o<l-1&&!_i(T,o);o++);if(o!==v){var B,U=o<l-1;if(B=U?"AAC PES did not start with ADTS header,offset:"+o:"No ADTS header found in AAC PES",jo(this.observer,new Error(B),U,this.logger),!U)return}if(fe(r,this.observer,T,o,this.audioCodec),i.pts!==void 0)h=i.pts;else{if(!C)return void this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");var tt=Si(r.samplerate);h=C.sample.pts+tt}for(var et,st=0;o<l;){if(o+=(et=Mi(r,T,o,h,st)).length,et.missing){this.aacOverFlow=et;break}for(st++;o<l-1&&!_i(T,o);o++);}},p.parseMPEGPES=function(r,i){var o=i.data,l=o.length,h=0,v=0,C=i.pts;if(C!==void 0)for(;v<l;)if(qt(o,v)){var T=wo(r,o,v,C,h);if(!T)break;v+=T.length,h++}else v++;else this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS")},p.parseAC3PES=function(r,i){},p.parseID3PES=function(r,i){if(i.pts!==void 0){var o=I({},i,{type:this._videoTrack?dr.emsg:dr.audioId3,duration:Number.POSITIVE_INFINITY});r.samples.push(o)}else this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS")},f}();function zr(f,p){return((31&f[p+1])<<8)+f[p+2]}function uo(f,p){return(31&f[p+10])<<8|f[p+11]}function Ir(f,p,r,i,o,l){var h={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},v=p+3+((15&f[p+1])<<8|f[p+2])-4;for(p+=12+((15&f[p+10])<<8|f[p+11]);p<v;){var C=zr(f,p),T=(15&f[p+3])<<8|f[p+4];switch(f[p]){case 207:if(!i){es("ADTS AAC",l);break}case 15:h.audioPid===-1&&(h.audioPid=C);break;case 21:h.id3Pid===-1&&(h.id3Pid=C);break;case 219:if(!i){es("H.264",l);break}case 27:h.videoPid===-1&&(h.videoPid=C);break;case 3:case 4:r.mpeg||r.mp3?h.audioPid===-1&&(h.audioPid=C,h.segmentAudioCodec="mp3"):l.log("MPEG audio found, not supported in this browser");break;case 193:if(!i){es("AC-3",l);break}case 129:l.warn("AC-3 in M2TS support not included in build");break;case 6:if(h.audioPid===-1&&T>0)for(var w=p+5,M=T;M>2;){f[w]===106&&l.warn("AC-3 in M2TS support not included in build");var F=f[w+1]+2;w+=F,M-=F}break;case 194:case 135:return jo(o,new Error("Unsupported EC-3 in M2TS found"),void 0,l),h;case 36:return jo(o,new Error("Unsupported HEVC in M2TS found"),void 0,l),h}p+=T+5}return h}function jo(f,p,r,i){i.warn("parsing error: "+p.message),f.emit(ot.ERROR,ot.ERROR,{type:me.MEDIA_ERROR,details:mt.FRAG_PARSING_ERROR,fatal:!1,levelRetry:r,error:p,reason:p.message})}function es(f,p){p.log(f+" with AES-128-CBC encryption found in unencrypted stream")}function ko(f,p){var r,i,o,l,h,v=0,C=f.data;if(!f||f.size===0)return null;for(;C[0].length<19&&C.length>1;)C[0]=un(C[0],C[1]),C.splice(1,1);if(((r=C[0])[0]<<16)+(r[1]<<8)+r[2]===1){if((i=(r[4]<<8)+r[5])&&i>f.size-6)return null;var T=r[7];192&T&&(l=536870912*(14&r[9])+4194304*(255&r[10])+16384*(254&r[11])+128*(255&r[12])+(254&r[13])/2,64&T?l-(h=536870912*(14&r[14])+4194304*(255&r[15])+16384*(254&r[16])+128*(255&r[17])+(254&r[18])/2)>54e5&&(p.warn(Math.round((l-h)/9e4)+"s delta between PTS and DTS, align them"),l=h):h=l);var w=(o=r[8])+9;if(f.size<=w)return null;f.size-=w;for(var M=new Uint8Array(f.size),F=0,B=C.length;F<B;F++){var U=(r=C[F]).byteLength;if(w){if(w>U){w-=U;continue}r=r.subarray(w),U-=w,w=0}M.set(r,v),v+=U}return i&&(i-=o+3),{data:M,pts:l,dts:h,len:i}}return null}var sa=function(){function f(){}return f.getSilentFrame=function(p,r){if(p==="mp4a.40.2"){if(r===1)return new Uint8Array([0,200,0,128,35,128]);if(r===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(r===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(r===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(r===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(r===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(r===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(r===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(r===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}},f}(),ho=Math.pow(2,32)-1,Dr=function(){function f(){}return f.init=function(){var p;for(p in f.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},f.types)f.types.hasOwnProperty(p)&&(f.types[p]=[p.charCodeAt(0),p.charCodeAt(1),p.charCodeAt(2),p.charCodeAt(3)]);
vendor: 4,655 bytes, line 95
95var r=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),i=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);f.HDLR_TYPES={video:r,audio:i};var o=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),l=new Uint8Array([0,0,0,0,0,0,0,0]);f.STTS=f.STSC=f.STCO=l,f.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),f.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),f.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),f.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var h=new Uint8Array([105,115,111,109]),v=new Uint8Array([97,118,99,49]),C=new Uint8Array([0,0,0,1]);f.FTYP=f.box(f.types.ftyp,h,C,h,v),f.DINF=f.box(f.types.dinf,f.box(f.types.dref,o))},f.box=function(p){for(var r=8,i=arguments.length,o=new Array(i>1?i-1:0),l=1;l<i;l++)o[l-1]=arguments[l];for(var h=o.length,v=h;h--;)r+=o[h].byteLength;var C=new Uint8Array(r);for(C[0]=r>>24&255,C[1]=r>>16&255,C[2]=r>>8&255,C[3]=255&r,C.set(p,4),h=0,r=8;h<v;h++)C.set(o[h],r),r+=o[h].byteLength;return C},f.hdlr=function(p){return f.box(f.types.hdlr,f.HDLR_TYPES[p])},f.mdat=function(p){return f.box(f.types.mdat,p)},f.mdhd=function(p,r){r*=p;var i=Math.floor(r/(ho+1)),o=Math.floor(r%(ho+1));return f.box(f.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,p>>24&255,p>>16&255,p>>8&255,255&p,i>>24,i>>16&255,i>>8&255,255&i,o>>24,o>>16&255,o>>8&255,255&o,85,196,0,0]))},f.mdia=function(p){return f.box(f.types.mdia,f.mdhd(p.timescale||0,p.duration||0),f.hdlr(p.type),f.minf(p))},f.mfhd=function(p){return f.box(f.types.mfhd,new Uint8Array([0,0,0,0,p>>24,p>>16&255,p>>8&255,255&p]))},f.minf=function(p){return p.type==="audio"?f.box(f.types.minf,f.box(f.types.smhd,f.SMHD),f.DINF,f.stbl(p)):f.box(f.types.minf,f.box(f.types.vmhd,f.VMHD),f.DINF,f.stbl(p))},f.moof=function(p,r,i){return f.box(f.types.moof,f.mfhd(p),f.traf(i,r))},f.moov=function(p){for(var r=p.length,i=[];r--;)i[r]=f.trak(p[r]);return f.box.apply(null,[f.types.moov,f.mvhd(p[0].timescale||0,p[0].duration||0)].concat(i).concat(f.mvex(p)))},f.mvex=function(p){for(var r=p.length,i=[];r--;)i[r]=f.trex(p[r]);return f.box.apply(null,[f.types.mvex].concat(i))},f.mvhd=function(p,r){r*=p;var i=Math.floor(r/(ho+1)),o=Math.floor(r%(ho+1)),l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,p>>24&255,p>>16&255,p>>8&255,255&p,i>>24,i>>16&255,i>>8&255,255&i,o>>24,o>>16&255,o>>8&255,255&o,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return f.box(f.types.mvhd,l)},f.sdtp=function(p){var r,i,o=p.samples||[],l=new Uint8Array(4+o.length);for(r=0;r<o.length;r++)i=o[r].flags,l[r+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return f.box(f.types.sdtp,l)},f.stbl=function(p){return f.box(f.types.stbl,f.stsd(p),f.box(f.types.stts,f.STTS),f.box(f.types.stsc,f.STSC),f.box(f.types.stsz,f.STSZ),f.box(f.types.stco,f.STCO))},f.avc1=function(p){var r,i,o,l=[],h=[];for(r=0;r<p.sps.length;r++)o=(i=p.sps[r]).byteLength,l.push(o>>>8&255),l.push(255&o),l=l.concat(Array.prototype.slice.call(i));for(r=0;r<p.pps.length;r++)o=(i=p.pps[r]).byteLength,h.push(o>>>8&255),h.push(255&o),h=h.concat(Array.prototype.slice.call(i));var v=f.box(f.types.avcC,new Uint8Array([1,l[3],l[4],l[5],255,224|p.sps.length].concat(l).concat([p.pps.length]).concat(h))),C=p.width,T=p.height,w=p.pixelRatio[0],M=p.pixelRatio[1];return f.box(f.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,C>>8&255,255&C,T>>8&255,255&T,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),v,f.box(f.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),f.box(f.types.pasp,new Uint8Array([w>>24,w>>16&255,w>>8&255,255&w,M>>24,M>>16&255,M>>8&255,255&M])))},f.esds=function(p){var r=p.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2].concat(r,[6,1,2]))},f.audioStsd=function(p){var r=p.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,p.channelCount||0,0,16,0,0,0,0,r>>8&255,255&r,0,0])},f.mp4a=function(p){return f.box(f.types.mp4a,f.audioStsd(p),f.box(f.types.esds,f.esds(p)))},f.mp3=function(p){return f.box(f.types[".mp3"],f.audioStsd(p))},f.ac3=function(p){return f.box(f.types["ac-3"],f.audioStsd(p),f.box(f.types.dac3,p.config))},f.stsd=function(p){var r=p.segmentCodec;if(p.type==="audio"){if(r==="aac")return f.box(f.types.stsd,f.STSD,f.mp4a(p));if(r==="mp3"&&p.codec==="mp3")return f.box(f.types.stsd,f.STSD,f.mp3(p))}
vendor: 9,210 bytes, line 95
95else{if(!p.pps||!p.sps)throw new Error("video track missing pps or sps");if(r==="avc")return f.box(f.types.stsd,f.STSD,f.avc1(p))}throw new Error("unsupported "+p.type+" segment codec ("+r+"/"+p.codec+")")},f.tkhd=function(p){var r=p.id,i=(p.duration||0)*(p.timescale||0),o=p.width||0,l=p.height||0,h=Math.floor(i/(ho+1)),v=Math.floor(i%(ho+1));return f.box(f.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,r>>24&255,r>>16&255,r>>8&255,255&r,0,0,0,0,h>>24,h>>16&255,h>>8&255,255&h,v>>24,v>>16&255,v>>8&255,255&v,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,o>>8&255,255&o,0,0,l>>8&255,255&l,0,0]))},f.traf=function(p,r){var i=f.sdtp(p),o=p.id,l=Math.floor(r/(ho+1)),h=Math.floor(r%(ho+1));return f.box(f.types.traf,f.box(f.types.tfhd,new Uint8Array([0,0,0,0,o>>24,o>>16&255,o>>8&255,255&o])),f.box(f.types.tfdt,new Uint8Array([1,0,0,0,l>>24,l>>16&255,l>>8&255,255&l,h>>24,h>>16&255,h>>8&255,255&h])),f.trun(p,i.length+16+20+8+16+8+8),i)},f.trak=function(p){return p.duration=p.duration||4294967295,f.box(f.types.trak,f.tkhd(p),f.mdia(p))},f.trex=function(p){var r=p.id;return f.box(f.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},f.trun=function(p,r){var i,o,l,h,v,C,T=p.samples||[],w=T.length,M=12+16*w,F=new Uint8Array(M);for(r+=8+M,F.set([p.type==="video"?1:0,0,15,1,w>>>24&255,w>>>16&255,w>>>8&255,255&w,r>>>24&255,r>>>16&255,r>>>8&255,255&r],0),i=0;i<w;i++)l=(o=T[i]).duration,h=o.size,v=o.flags,C=o.cts,F.set([l>>>24&255,l>>>16&255,l>>>8&255,255&l,h>>>24&255,h>>>16&255,h>>>8&255,255&h,v.isLeading<<2|v.dependsOn,v.isDependedOn<<6|v.hasRedundancy<<4|v.paddingValue<<1|v.isNonSync,61440&v.degradPrio,15&v.degradPrio,C>>>24&255,C>>>16&255,C>>>8&255,255&C],12+16*i);return f.box(f.types.trun,F)},f.initSegment=function(p){f.types||f.init();var r=f.moov(p);return un(f.FTYP,r)},f.hvc1=function(p){return new Uint8Array},f}();function Oo(f,p){return function(r,i,o,l){var h=r*i*o;return Math.round(h)}(f,1e3,1/9e4)}function bs(f){var p=f.baseTime,r=f.timescale;return p/r+" ("+p+"/"+r+") trackId: "+f.trackId}Dr.types=void 0,Dr.HDLR_TYPES=void 0,Dr.STTS=void 0,Dr.STSC=void 0,Dr.STCO=void 0,Dr.STSZ=void 0,Dr.VMHD=void 0,Dr.SMHD=void 0,Dr.STSD=void 0,Dr.FTYP=void 0,Dr.DINF=void 0;var xo=null,is=null;function Cs(f,p,r,i){return{duration:p,size:r,cts:i,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:f?2:1,isNonSync:f?0:1}}}var ns=function(f){function p(i,o,l,h){var v;if((v=f.call(this,"mp4-remuxer",h)||this).observer=void 0,v.config=void 0,v.typeSupported=void 0,v.ISGenerated=!1,v._initPTS=null,v._initDTS=null,v.nextVideoTs=null,v.nextAudioTs=null,v.videoSampleDuration=null,v.isAudioContiguous=!1,v.isVideoContiguous=!1,v.videoTrackConfig=void 0,v.observer=i,v.config=o,v.typeSupported=l,v.ISGenerated=!1,xo===null){var C=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);xo=C?parseInt(C[1]):0}if(is===null){var T=navigator.userAgent.match(/Safari\/(\d+)/i);is=T?parseInt(T[1]):0}return v}ct(p,f);var r=p.prototype;return r.destroy=function(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null},r.resetTimeStamp=function(i){var o=this._initPTS;o&&i&&i.trackId===o.trackId&&i.baseTime===o.baseTime&&i.timescale===o.timescale||this.log("Reset initPTS: "+(o&&bs(o))+" > "+(i&&bs(i))),this._initPTS=this._initDTS=i},r.resetNextTimestamp=function(){this.log("reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},r.resetInitSegment=function(){this.log("ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0},r.getVideoStartPts=function(i){var o=!1,l=i[0].pts,h=i.reduce(function(v,C){var T=C.pts,w=T-v;return w<-4294967296&&(o=!0,w=(T=Yr(T,l))-v),w>0?v:T},l);return o&&this.debug("PTS rollover detected"),h},r.remux=function(i,o,l,h,v,C,T,w){var M,F,B,U,tt,et,st=v,ft=v,kt=i.pid>-1,At=o.pid>-1,Yt=o.samples.length,Bt=i.samples.length>0,$t=T&&Yt>0||Yt>1;if((!kt||Bt)&&(!At||$t)||this.ISGenerated||T){if(this.ISGenerated){var oe,be,Gt,se,he=this.videoTrackConfig;(he&&(o.width!==he.width||o.height!==he.height||((oe=o.pixelRatio)==null?void 0:oe[0])!==((be=he.pixelRatio)==null?void 0:be[0])||((Gt=o.pixelRatio)==null?void 0:Gt[1])!==((se=he.pixelRatio)==null?void 0:se[1]))||!he&&$t||this.nextAudioTs===null&&Bt)&&this.resetInitSegment()}this.ISGenerated||(B=this.generateIS(i,o,v,C));var di,Je=this.isVideoContiguous,He=-1;if($t&&(He=function(Li){for(var Ki=0;Ki<Li.length;Ki++)if(Li[Ki].key)return Ki;return-1}(o.samples),!Je&&this.config.forceKeyFrameOnDiscontinuity))if(et=!0,He>0){this.warn("Dropped "+He+" out of "+Yt+" video samples due to a missing keyframe");var Ve=this.getVideoStartPts(o.samples);o.samples=o.samples.slice(He),o.dropped+=He,di=ft+=(o.samples[0].pts-Ve)/o.inputTimeScale}else He===-1&&(this.warn("No keyframe found out of "+Yt+" video samples"),et=!1);if(this.ISGenerated){if(Bt&&$t){var Ye=this.getVideoStartPts(o.samples),gi=(Yr(i.samples[0].pts,Ye)-Ye)/o.inputTimeScale;st+=Math.max(0,gi),ft+=Math.max(0,-gi)}if(Bt){if(i.samplerate||(this.warn("regenerate InitSegment as audio detected"),B=this.generateIS(i,o,v,C)),F=this.remuxAudio(i,st,this.isAudioContiguous,C,At||$t||w===ye?ft:void 0),$t){var Xi=F?F.endPTS-F.startPTS:0;o.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),B=this.generateIS(i,o,v,C)),M=this.remuxVideo(o,ft,Je,Xi)}}else $t&&(M=this.remuxVideo(o,ft,Je,0));M&&(M.firstKeyFrame=He,M.independent=He!==-1,M.firstKeyFramePTS=di)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(l.samples.length&&(tt=Ss(l,v,this._initPTS,this._initDTS)),h.samples.length&&(U=Es(h,v,this._initPTS))),{audio:F,video:M,initSegment:B,independent:et,text:U,id3:tt}},r.computeInitPts=function(i,o,l,h){var v=Math.round(l*o),C=Yr(i,v);if(C<v+o)for(this.log("Adjusting PTS for rollover in timeline near "+(v-C)/o+" "+h);C<v+o;)C+=8589934592;return C-v},r.generateIS=function(i,o,l,h){var v,C,T,w=i.samples,M=o.samples,F=this.typeSupported,B={},U=this._initPTS,tt=!U||h,et="audio/mp4",st=-1;if(tt&&(v=C=1/0),i.config&&w.length){switch(i.timescale=i.samplerate,i.segmentCodec){case"mp3":F.mpeg?(et="audio/mpeg",i.codec=""):F.mp3&&(i.codec="mp3");break;case"ac3":i.codec="ac-3"}B.audio={id:"audio",container:et,codec:i.codec,initSegment:i.segmentCodec==="mp3"&&F.mpeg?new Uint8Array(0):Dr.initSegment([i]),metadata:{channelCount:i.channelCount}},tt&&(st=i.id,T=i.inputTimeScale,U&&T===U.timescale?tt=!1:v=C=this.computeInitPts(w[0].pts,T,l,"audio"))}if(o.sps&&o.pps&&M.length){if(o.timescale=o.inputTimeScale,B.video={id:"main",container:"video/mp4",codec:o.codec,initSegment:Dr.initSegment([o]),metadata:{width:o.width,height:o.height}},tt)if(st=o.id,T=o.inputTimeScale,U&&T===U.timescale)tt=!1;else{var ft=this.getVideoStartPts(M),kt=Yr(M[0].dts,ft),At=this.computeInitPts(kt,T,l,"video"),Yt=this.computeInitPts(ft,T,l,"video");C=Math.min(C,At),v=Math.min(v,Yt)}this.videoTrackConfig={width:o.width,height:o.height,pixelRatio:o.pixelRatio}}if(Object.keys(B).length)return this.ISGenerated=!0,tt?(U&&this.warn("Timestamps at playlist time: "+(h?"":"~")+l+" "+v/T+" != initPTS: "+U.baseTime/U.timescale+" ("+U.baseTime+"/"+U.timescale+") trackId: "+U.trackId),this.log("Found initPTS at playlist time: "+l+" offset: "+v/T+" ("+v+"/"+T+") trackId: "+st),this._initPTS={baseTime:v,timescale:T,trackId:st},this._initDTS={baseTime:C,timescale:T,trackId:st}):v=T=void 0,{tracks:B,initPTS:v,timescale:T,trackId:st}},r.remuxVideo=function(i,o,l,h){var v,C,T=i.inputTimeScale,w=i.samples,M=[],F=w.length,B=this._initPTS,U=B.baseTime*T/B.timescale,tt=this.nextVideoTs,et=8,st=this.videoSampleDuration,ft=Number.POSITIVE_INFINITY,kt=Number.NEGATIVE_INFINITY,At=!1;if(!l||tt===null){var Yt=U+o*T,Bt=w[0].pts-Yr(w[0].dts,w[0].pts);xo&&tt!==null&&Math.abs(Yt-Bt-(tt+U))<15e3?l=!0:tt=Yt-Bt-U}for(var $t=tt+U,oe=0;oe<F;oe++){var be=w[oe];be.pts=Yr(be.pts,$t),be.dts=Yr(be.dts,$t),be.dts<w[oe>0?oe-1:oe].dts&&(At=!0)}At&&w.sort(function(Xr,Yo){var io=Xr.dts-Yo.dts,fs=Xr.pts-Yo.pts;return io||fs}),v=w[0].dts;var Gt=(C=w[w.length-1].dts)-v,se=Gt?Math.round(Gt/(F-1)):st||i.inputTimeScale/30;if(l){var he=v-$t,di=he>se,Je=he<-1;if((di||Je)&&(di?this.warn((i.segmentCodec||"").toUpperCase()+": "+Oo(he)+" ms ("+he+"dts) hole between fragments detected at "+o.toFixed(3)):this.warn((i.segmentCodec||"").toUpperCase()+": "+Oo(-he)+" ms ("+he+"dts) overlapping between fragments detected at "+o.toFixed(3)),!Je||$t>=w[0].pts||xo)){v=$t;var He=w[0].pts-he;if(di)w[0].dts=v,w[0].pts=He;else for(var Ve=!0,Ye=0;Ye<w.length&&!(w[Ye].dts>He&&Ve);Ye++){var gi=w[Ye].pts;if(w[Ye].dts-=he,w[Ye].pts-=he,Ye<w.length-1){var Xi=w[Ye+1].pts;Ve=Xi<=w[Ye].pts==Xi<=gi}}this.log("Video: Initial PTS/DTS adjusted: "+Oo(He)+"/"+Oo(v)+", delta: "+Oo(he)+" ms")}}for(var Li=0,Ki=0,Kn=v=Math.max(0,v),Dn=0;Dn<F;Dn++){for(var bn=w[Dn],Jn=bn.units,On=Jn.length,en=0,xn=0;xn<On;xn++)en+=Jn[xn].data.length;Ki+=en,Li+=On,bn.length=en,bn.dts<Kn?(bn.dts=Kn,Kn+=se/4|0||1):Kn=bn.dts,ft=Math.min(bn.pts,ft),kt=Math.max(bn.pts,kt)}C=w[F-1].dts;var gn,an=Ki+4*Li+8;try{gn=new Uint8Array(an)}catch(Xr){return void this.observer.emit(ot.ERROR,ot.ERROR,{type:me.MUX_ERROR,details:mt.REMUX_ALLOC_ER
vendor: 5,994 bytes, line 95
95ROR,fatal:!1,error:Xr,bytes:an,reason:"fail allocating video mdat "+an})}var Vn=new DataView(gn.buffer);Vn.setUint32(0,an),gn.set(Dr.types.mdat,4);for(var or=!1,_n=Number.POSITIVE_INFINITY,ln=Number.POSITIVE_INFINITY,sr=Number.NEGATIVE_INFINITY,Er=Number.NEGATIVE_INFINITY,rn=0;rn<F;rn++){for(var tr=w[rn],Wr=tr.units,_r=0,Br=0,Fr=Wr.length;Br<Fr;Br++){var Tr=Wr[Br],Nr=Tr.data,$r=Tr.data.byteLength;Vn.setUint32(et,$r),et+=4,gn.set(Nr,et),et+=$r,_r+=4+$r}var gr=void 0;if(rn<F-1)st=w[rn+1].dts-tr.dts,gr=w[rn+1].pts-tr.pts;else{var eo=this.config,po=rn>0?tr.dts-w[rn-1].dts:se;if(gr=rn>0?tr.pts-w[rn-1].pts:se,eo.stretchShortVideoTrack&&this.nextAudioTs!==null){var Io=Math.floor(eo.maxBufferHole*T),Co=(h?ft+h*T:this.nextAudioTs+U)-tr.pts;Co>Io?((st=Co-po)<0?st=po:or=!0,this.log("It is approximately "+Co/90+" ms to the next segment; using duration "+st/90+" ms for the last video frame.")):st=po}else st=po}var So=Math.round(tr.pts-tr.dts);_n=Math.min(_n,st),sr=Math.max(sr,st),ln=Math.min(ln,gr),Er=Math.max(Er,gr),M.push(Cs(tr.key,st,_r,So))}if(M.length){if(xo){if(xo<70){var mo=M[0].flags;mo.dependsOn=2,mo.isNonSync=0}}else if(is&&Er-ln<sr-_n&&se/sr<.025&&M[0].cts===0){this.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");for(var go=v,qr=0,fn=M.length;qr<fn;qr++){var er=go+M[qr].duration,hr=go+M[qr].cts;if(qr<fn-1){var Qr=er+M[qr+1].cts;M[qr].duration=Qr-hr}else M[qr].duration=qr?M[qr-1].duration:se;M[qr].cts=0,go=er}}}var Go=C+(st=or||!st?se:st);this.nextVideoTs=tt=Go-U,this.videoSampleDuration=st,this.isVideoContiguous=!0;var $o={data1:Dr.moof(i.sequenceNumber++,v,I(i,{samples:M})),data2:gn,startPTS:(ft-U)/T,endPTS:(kt+st-U)/T,startDTS:(v-U)/T,endDTS:tt/T,type:"video",hasAudio:!1,hasVideo:!0,nb:M.length,dropped:i.dropped};return i.samples=[],i.dropped=0,$o},r.getSamplesPerFrame=function(i){switch(i.segmentCodec){case"mp3":return 1152;case"ac3":return 1536;default:return 1024}},r.remuxAudio=function(i,o,l,h,v){var C=i.inputTimeScale,T=C/(i.samplerate?i.samplerate:C),w=this.getSamplesPerFrame(i),M=w*T,F=this._initPTS,B=i.segmentCodec==="mp3"&&this.typeSupported.mpeg,U=[],tt=v!==void 0,et=i.samples,st=B?0:8,ft=this.nextAudioTs||-1,kt=F.baseTime*C/F.timescale,At=kt+o*C;if(this.isAudioContiguous=l=l||et.length&&ft>0&&(h&&Math.abs(At-(ft+kt))<9e3||Math.abs(Yr(et[0].pts,At)-(ft+kt))<20*M),et.forEach(function(_n){_n.pts=Yr(_n.pts,At)}),!l||ft<0){var Yt=et.length;if(et=et.filter(function(_n){return _n.pts>=0}),Yt!==et.length&&this.warn("Removed "+(et.length-Yt)+" of "+Yt+" samples (initPTS "+kt+" / "+C+")"),!et.length)return;ft=v===0?0:h&&!tt?Math.max(0,At-kt):et[0].pts-kt}if(i.segmentCodec==="aac")for(var Bt=this.config.maxAudioFramesDrift,$t=0,oe=ft+kt;$t<et.length;$t++){var be=et[$t],Gt=be.pts,se=Gt-oe,he=Math.abs(1e3*se/C);if(se<=-Bt*M&&tt)$t===0&&(this.warn("Audio frame @ "+(Gt/C).toFixed(3)+"s overlaps marker by "+Math.round(1e3*se/C)+" ms."),this.nextAudioTs=ft=Gt-kt,oe=Gt);else if(se>=Bt*M&&he<1e4&&tt){var di=Math.round(se/M);for(oe=Gt-di*M;oe<0&&di&&M;)di--,oe+=M;$t===0&&(this.nextAudioTs=ft=oe-kt),this.warn("Injecting "+di+" audio frames @ "+((oe-kt)/C).toFixed(3)+"s due to "+Math.round(1e3*se/C)+" ms gap.");for(var Je=0;Je<di;Je++){var He=sa.getSilentFrame(i.parsedCodec||i.manifestCodec||i.codec,i.channelCount);He||(this.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),He=be.unit.subarray()),et.splice($t,0,{unit:He,pts:oe}),oe+=M,$t++}}be.pts=oe,oe+=M}for(var Ve,Ye=null,gi=null,Xi=0,Li=et.length;Li--;)Xi+=et[Li].unit.byteLength;for(var Ki=0,Kn=et.length;Ki<Kn;Ki++){var Dn=et[Ki],bn=Dn.unit,Jn=Dn.pts;if(gi!==null)U[Ki-1].duration=Math.round((Jn-gi)/T);else{if(l&&i.segmentCodec==="aac"&&(Jn=ft+kt),Ye=Jn,!(Xi>0))return;Xi+=st;try{Ve=new Uint8Array(Xi)}catch(_n){return void this.observer.emit(ot.ERROR,ot.ERROR,{type:me.MUX_ERROR,details:mt.REMUX_ALLOC_ERROR,fatal:!1,error:_n,bytes:Xi,reason:"fail allocating audio mdat "+Xi})}B||(new DataView(Ve.buffer).setUint32(0,Xi),Ve.set(Dr.types.mdat,4))}Ve.set(bn,st);var On=bn.byteLength;st+=On,U.push(Cs(!0,w,On,0)),gi=Jn}var en=U.length;if(en){var xn=U[U.length-1];ft=gi-kt,this.nextAudioTs=ft+T*xn.duration;var gn=B?new Uint8Array(0):Dr.moof(i.sequenceNumber++,Ye/T,I({},i,{samples:U}));i.samples=[];var an=(Ye-kt)/C,Vn=this.nextAudioTs/C,or={data1:gn,data2:Ve,startPTS:an,endPTS:Vn,startDTS:an,endDTS:Vn,type:"audio",hasAudio:!0,hasVideo:!1,nb:en};return this.isAudioContiguous=!0,or}},p}(ii);function Yr(f,p){var r;if(p===null)return f;for(r=p<f?-8589934592:8589934592;Math.abs(f-p)>4294967296;)f+=r;return f}function Ss(f,p,r,i){var o=f.samples.length;if(o){for(var l=f.inputTimeScale,h=0;h<o;h++){var v=f.samples[h];v.pts=Yr(v.pts-r.baseTime*l/r.timescale,p*l)/l,v.dts=Yr(v.dts-i.baseTime*l/i.timescale,p*l)/l}var C=f.samples;return f.samples=[],{samples:C}}}function Es(f,p,r){var i=f.samples.length;if(i){for(var o=f.inputTimeScale,l=0;l<i;l++){var h=f.samples[l];h.pts=Yr(h.pts-r.baseTime*o/r.timescale,p*o)/o}f.samples.sort(function(C,T){return C.pts-T.pts});var v=f.samples;return f.samples=[],{samples:v}}}var so,aa=function(f){function p(i,o,l,h){var v;return(v=f.call(this,"passthrough-remuxer",h)||this).emitInitSegment=!1,v.audioCodec=void 0,v.videoCodec=void 0,v.initData=void 0,v.initPTS=null,v.initTracks=void 0,v.lastEndTime=null,v.isVideoContiguous=!1,v}ct(p,f);var r=p.prototype;return r.destroy=function(){},r.resetTimeStamp=function(i){this.lastEndTime=null;var o=this.initPTS;o&&i&&o.baseTime===i.baseTime&&o.timescale===i.timescale||(this.initPTS=i)},r.resetNextTimestamp=function(){this.isVideoContiguous=!1,this.lastEndTime=null},r.resetInitSegment=function(i,o,l,h){this.audioCodec=o,this.videoCodec=l,this.generateInitSegment(i,h),this.emitInitSegment=!0},r.generateInitSegment=function(i,o){var l=this.audioCodec,h=this.videoCodec;if(i==null||!i.byteLength)return this.initTracks=void 0,void(this.initData=void 0);var v=this.initData=fr(i),C=v.audio,T=v.video;
95if(o)(function(F,B){if(F&&B){var U=B.keyId;U&&B.isCommonEncryption&&Gn(F,function(tt,et){var st=tt.subarray(8,24);st.some(function(ft){return ft!==0})||(Ri.log("[eme] Patching keyId in 'enc"+(et?"a":"v")+">sinf>>tenc' box: "+Gi(st)+" -> "+Gi(U)),tt.set(U,8))})}})(i,o);else{var w=C||T;w!=null&&w.encrypted&&this.warn('Init segment with encrypted track with has no key ("'+w.codec+'")!')}C&&(l=Ts(C,Fn,this)),T&&(h=Ts(T,qi,this));var M={};C&&T?M.audiovideo={container:"video/mp4",codec:l+","+h,supplemental:T.supplemental,encrypted:T.encrypted,initSegment:i,id:"main"}:C?M.audio={container:"audio/mp4",codec:l,encrypted:C.encrypted,initSegment:i,id:"audio"}:T?M.video={container:"video/mp4",codec:h,supplemental:T.supplemental,encrypted:T.encrypted,initSegment:i,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=M},r.remux=function(i,o,l,h,v,C){var T,w,M=this.initPTS,F=this.lastEndTime,B={audio:void 0,video:void 0,text:h,id3:l,initSegment:void 0};Ot(F)||(F=this.lastEndTime=v||0);var U=o.samples;if(!U.length)return B;var tt={initPTS:void 0,timescale:void 0,trackId:void 0},et=this.initData;if((T=et)!=null&&T.length||(this.generateInitSegment(U),et=this.initData),(w=et)==null||!w.length)return this.warn("Failed to generate initSegment."),B;this.emitInitSegment&&(tt.tracks=this.initTracks,this.emitInitSegment=!1);var st=function(bn,Jn,On){for(var en={},xn=wi(bn,["moof","traf"]),gn=0;gn<xn.length;gn++){var an=xn[gn],Vn=wi(an,["tfhd"])[0],or=Ti(Vn,4),_n=Jn[or];if(_n){en[or]||(en[or]={start:NaN,duration:0,sampleCount:0,timescale:_n.timescale,type:_n.type});var ln=en[or],sr=wi(an,["tfdt"])[0];if(sr){var Er=sr[0],rn=Ti(sr,4);Er===1&&(rn===kr?On.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"):(rn*=kr+1,rn+=Ti(sr,8))),Ot(rn)&&(!Ot(ln.start)||rn<ln.start)&&(ln.start=rn)}var tr=_n.default,Wr=Ti(Vn,0)|(tr==null?void 0:tr.flags),_r=(tr==null?void 0:tr.duration)||0;8&Wr&&(_r=Ti(Vn,2&Wr?12:8));for(var Br=wi(an,["trun"]),Fr=ln.start||0,Tr=0,Nr=_r,$r=0;$r<Br.length;$r++){var gr=Br[$r],eo=Ti(gr,4),po=ln.sampleCount;ln.sampleCount+=eo;var Io=1&gr[3],Co=4&gr[3],So=1&gr[2],mo=2&gr[2],go=4&gr[2],qr=8&gr[2],fn=8,er=eo;for(Io&&(fn+=4),Co&&eo&&(1&gr[fn+1]||ln.keyFrameIndex!==void 0||(ln.keyFrameIndex=po),fn+=4,So?(Nr=Ti(gr,fn),fn+=4):Nr=_r,mo&&(fn+=4),qr&&(fn+=4),Fr+=Nr,Tr+=Nr,er--);er--;)So?(Nr=Ti(gr,fn),fn+=4):Nr=_r,mo&&(fn+=4),go&&(1&gr[fn+1]||ln.keyFrameIndex===void 0&&(ln.keyFrameIndex=ln.sampleCount-(er+1),ln.keyFrameStart=Fr),fn+=4),qr&&(fn+=4),Fr+=Nr,Tr+=Nr;!Tr&&_r&&(Tr+=_r*eo)}ln.duration+=Tr}}if(!Object.keys(en).some(function(io){return en[io].duration})){for(var hr=1/0,Qr=0,Go=wi(bn,["sidx"]),$o=0;$o<Go.length;$o++){var Xr=Wn(Go[$o]);if(Xr!=null&&Xr.references){hr=Math.min(hr,Xr.earliestPresentationTime/Xr.timescale);var Yo=Xr.references.reduce(function(io,fs){return io+fs.info.duration||0},0);Qr=Math.max(Qr,Yo+Xr.earliestPresentationTime/Xr.timescale)}}Qr&&Ot(Qr)&&Object.keys(en).forEach(function(io){en[io].duration||(en[io].duration=Qr*en[io].timescale-en[io].start)})}return en}(U,et,this),ft=et.audio?st[et.audio.id]:null,kt=et.video?st[et.video.id]:null,At=Uo(kt,1/0),Yt=Uo(ft,1/0),Bt=Uo(kt,0,!0),$t=Uo(ft,0,!0),oe=v,be=0,Gt=ft&&(!kt||!M&&Yt<At||M&&M.trackId===et.audio.id),se=Gt?ft:kt;if(se){var he=se.timescale,di=se.start-v*he,Je=Gt?et.audio.id:et.video.id;oe=se.start/he,be=Gt?$t-Yt:Bt-At,!C&&M||!function(bn,Jn,On,en){if(bn===null)return!0;var xn=Math.max(en,1),gn=Jn-bn.baseTime/bn.timescale;return Math.abs(gn-On)>xn}(M,oe,v,be)&&he===M.timescale||(M&&this.warn("Timestamps at playlist time: "+(C?"":"~")+v+" "+di/he+" != initPTS: "+M.baseTime/M.timescale+" ("+M.baseTime+"/"+M.timescale+") trackId: "+M.trackId),this.log("Found initPTS at playlist time: "+v+" offset: "+(oe-v)+" ("+di+"/"+he+") trackId: "+Je),M=null,tt.initPTS=di,tt.timescale=he,tt.trackId=Je)}else this.warn("No audio or video samples found for initPTS at playlist time: "+v);M?(tt.initPTS=M.baseTime,tt.timescale=M.timescale,tt.trackId=M.trackId):(tt.timescale&&tt.trackId!==void 0&&tt.initPTS!==void 0||(this.warn("Could not set initPTS"),tt.initPTS=oe,tt.timescale=1,tt.trackId=-1),this.initPTS=M={baseTime:tt.initPTS,timescale:tt.timescale,trackId:tt.trackId});var He=oe-M.baseTime/M.timescale,Ve=He+be;be>0?this.lastEndTime=Ve:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var Ye=!!et.audio,gi=!!et.video,Xi="";Ye&&(Xi+="audio"),gi&&(Xi+="video");var Li={data1:U,startPTS:He,startDTS:He,endPTS:Ve,endDTS:Ve,type:Xi,hasAudio:Ye,hasVideo:gi,nb:1,dropped:0,encrypted:!!et.audio&&et.audio.encrypted||!!et.video&&et.video.encrypted};B.audio=Ye&&!gi?Li:void 0,B.video=gi?Li:void 0;
95var Ki=kt==null?void 0:kt.sampleCount;if(Ki){var Kn=kt.keyFrameIndex,Dn=Kn!==-1;Li.nb=Ki,Li.dropped=Kn===0||this.isVideoContiguous?0:Dn?Kn:Ki,Li.independent=Dn,Li.firstKeyFrame=Kn,Dn&&kt.keyFrameStart&&(Li.firstKeyFramePTS=(kt.keyFrameStart-M.baseTime)/M.timescale),this.isVideoContiguous||(B.independent=Dn),this.isVideoContiguous||(this.isVideoContiguous=Dn),Li.dropped&&this.warn("fmp4 does not start with IDR: firstIDR "+Kn+"/"+Ki+" dropped: "+Li.dropped+" start: "+(Li.firstKeyFramePTS||"NA"))}return B.initSegment=tt,B.id3=Ss(l,v,M,M),h.samples.length&&(B.text=Es(h,v,M)),B},p}(ii);function Uo(f,p,r){return r===void 0&&(r=!1),(f==null?void 0:f.start)!==void 0?(f.start+(r?f.duration:0))/f.timescale:p}function Ts(f,p,r){var i=f.codec;return i&&i.length>4?i:p===Fn?i==="ec-3"||i==="ac-3"||i==="alac"?i:i==="fLaC"||i==="Opus"?Pi(i,!1):(r.warn('Unhandled audio codec "'+i+'" in mp4 MAP'),i||"mp4a"):(r.warn('Unhandled video codec "'+i+'" in mp4 MAP'),i||"avc1")}try{so=self.performance.now.bind(self.performance)}catch{so=Date.now}var rs=[{demux:Vi,remux:aa},{demux:Ur,remux:ns},{demux:re,remux:ns},{demux:pe,remux:ns}],os=function(){function f(r,i,o,l,h,v){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=r,this.typeSupported=i,this.config=o,this.id=h,this.logger=v}var p=f.prototype;return p.configure=function(r){this.transmuxConfig=r,this.decrypter&&this.decrypter.reset()},p.push=function(r,i,o,l){var h=this,v=o.transmuxing;v.executeStart=so();var C=new Uint8Array(r),T=this.currentTransmuxState,w=this.transmuxConfig;l&&(this.currentTransmuxState=l);var M=l||T,F=M.contiguous,B=M.discontinuity,U=M.trackSwitch,tt=M.accurateTimeOffset,et=M.timeOffset,st=M.initSegmentChange,ft=w.audioCodec,kt=w.videoCodec,At=w.defaultInitPts,Yt=w.duration,Bt=w.initSegmentData,$t=function(Ve,Ye){var gi=null;return Ve.byteLength>0&&(Ye==null?void 0:Ye.key)!=null&&Ye.iv!==null&&Ye.method!=null&&(gi=Ye),gi}(C,i);if($t&&ge($t.method)){var oe=this.getDecrypter(),be=_e($t.method);if(!oe.isSync())return this.asyncResult=!0,this.decryptionPromise=oe.webCryptoDecrypt(C,$t.key.buffer,$t.iv.buffer,be).then(function(Ve){var Ye=h.push(Ve,null,o);return h.decryptionPromise=null,Ye}),this.decryptionPromise;var Gt=oe.softwareDecrypt(C,$t.key.buffer,$t.iv.buffer,be);if(o.part>-1){var se=oe.flush();Gt=se&&se.buffer}if(!Gt)return v.executeEnd=so(),ss(o);C=new Uint8Array(Gt)}var he=this.needsProbing(B,U);if(he){var di=this.configureTransmuxer(C);if(di)return this.logger.warn("[transmuxer] "+di.message),this.observer.emit(ot.ERROR,ot.ERROR,{type:me.MEDIA_ERROR,details:mt.FRAG_PARSING_ERROR,fatal:!1,error:di,reason:di.message}),v.executeEnd=so(),ss(o)}(B||U||st||he)&&this.resetInitSegment(Bt,ft,kt,Yt,i),(B||st||he)&&this.resetInitialTimestamp(At),F||this.resetContiguity();var Je=this.transmux(C,$t,et,tt,o);this.asyncResult=yo(Je);var He=this.currentTransmuxState;return He.contiguous=!0,He.discontinuity=!1,He.trackSwitch=!1,v.executeEnd=so(),Je},p.flush=function(r){var i=this,o=r.transmuxing;o.executeStart=so();var l=this.decrypter,h=this.currentTransmuxState,v=this.decryptionPromise;if(v)return this.asyncResult=!0,v.then(function(){return i.flush(r)});var C=[],T=h.timeOffset;if(l){var w=l.flush();w&&C.push(this.push(w.buffer,null,r))}var M=this.demuxer,F=this.remuxer;if(!M||!F){o.executeEnd=so();var B=[ss(r)];return this.asyncResult?Promise.resolve(B):B}var U=M.flush(T);return yo(U)?(this.asyncResult=!0,U.then(function(tt){return i.flushRemux(C,tt,r),C})):(this.flushRemux(C,U,r),this.asyncResult?Promise.resolve(C):C)},p.flushRemux=function(r,i,o){var l=i.audioTrack,h=i.videoTrack,v=i.id3Track,C=i.textTrack,T=this.currentTransmuxState,w=T.accurateTimeOffset,M=T.timeOffset;this.logger.log("[transmuxer.ts]: Flushed "+this.id+" sn: "+o.sn+(o.part>-1?" part: "+o.part:"")+" of "+(this.id===ue?"level":"track")+" "+o.level);var F=this.remuxer.remux(l,h,v,C,M,w,!0,this.id);r.push({remuxResult:F,chunkMeta:o}),o.transmuxing.executeEnd=so()},p.resetInitialTimestamp=function(r){var i=this.demuxer,o=this.remuxer;i&&o&&(i.resetTimeStamp(r),o.resetTimeStamp(r))},p.resetContiguity=function(){var r=this.demuxer,i=this.remuxer;r&&i&&(r.resetContiguity(),i.resetNextTimestamp())},p.resetInitSegment=function(r,i,o,l,h){var v=this.demuxer,C=this.remuxer;v&&C&&(v.resetInitSegment(r,i,o,l),C.resetInitSegment(r,i,o,h))},p.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},p.transmux=function(r,i,o,l,h){return i&&i.method==="SAMPLE-AES"?this.transmuxSampleAes(r,i,o,l,h):this.transmuxUnencrypted(r,o,l,h)},p.transmuxUnencrypted=function(r,i,o,l){var h=this.demuxer.demux(r,i,!1,!this.config.progressive),v=h.audioTrack,C=h.videoTrack,T=h.id3Track,w=h.textTrack;return{remuxResult:this.remuxer.remux(v,C,T,w,i,o,!1,this.id),chunkMeta:l}},p.transmuxSampleAes=function(r,i,o,l,h){var v=this;return this.demuxer.demuxSampleAes(r,i,o).then(function(C){return{remuxResult:v.remuxer.remux(C.audioTrack,C.videoTrack,C.id3Track,C.textTrack,o,l,!1,v.id),chunkMeta:h}})},p.configureTransmuxer=function(r){for(var i,o=this.config,l=this.observer,h=this.typeSupp
95orted,v=0,C=rs.length;v<C;v++){var T;if((T=rs[v].demux)!=null&&T.probe(r,this.logger)){i=rs[v];break}}if(!i)return new Error("Failed to find demuxer by probing fragment data");var w=this.demuxer,M=this.remuxer,F=i.remux,B=i.demux;M&&M instanceof F||(this.remuxer=new F(l,o,h,this.logger)),w&&w instanceof B||(this.demuxer=new B(l,o,h,this.logger),this.probe=B.probe)},p.needsProbing=function(r,i){return!this.demuxer||!this.remuxer||r||i},p.getDecrypter=function(){var r=this.decrypter;return r||(r=this.decrypter=new hi(this.config)),r},f}(),ss=function(f){return{remuxResult:{},chunkMeta:f}};function yo(f){return"then"in f&&f.then instanceof Function}var la=function(f,p,r,i,o){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=f,this.videoCodec=p,this.initSegmentData=r,this.duration=i,this.defaultInitPts=o||null},ca=function(f,p,r,i,o,l){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=f,this.contiguous=p,this.accurateTimeOffset=r,this.trackSwitch=i,this.timeOffset=o,this.initSegmentChange=l},ua=/(\d+)-(\d+)\/(\d+)/,ws=function(){function f(r){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=r.fetchSetup||da,this.controller=new self.AbortController,this.stats=new Yn}var p=f.prototype;return p.destroy=function(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null},p.abortInternal=function(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())},p.abort=function(){var r;this.abortInternal(),(r=this.callbacks)!=null&&r.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},p.load=function(r,i,o){var l=this,h=this.stats;if(h.loading.start)throw new Error("Loader can only be used once.");h.loading.start=self.performance.now();var v=function(B,U){var tt={method:"GET",mode:"cors",credentials:"same-origin",signal:U,headers:new self.Headers(I({},B.headers))};return B.rangeEnd&&tt.headers.set("Range","bytes="+B.rangeStart+"-"+String(B.rangeEnd-1)),tt}(r,this.controller.signal),C=r.responseType==="arraybuffer",T=C?"byteLength":"length",w=i.loadPolicy,M=w.maxTimeToFirstByteMs,F=w.maxLoadTimeMs;this.context=r,this.config=i,this.callbacks=o,this.request=this.fetchSetup(r,v),self.clearTimeout(this.requestTimeout),i.timeout=M&&Ot(M)?M:F,this.requestTimeout=self.setTimeout(function(){l.callbacks&&(l.abortInternal(),l.callbacks.onTimeout(h,r,l.response))},i.timeout),(yo(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(function(B){var U;l.response=l.loader=B;var tt=Math.max(self.performance.now(),h.loading.start);if(self.clearTimeout(l.requestTimeout),i.timeout=F,l.requestTimeout=self.setTimeout(function(){l.callbacks&&(l.abortInternal(),l.callbacks.onTimeout(h,r,l.response))},F-(tt-h.loading.start)),!B.ok){var et=B.status,st=B.statusText;throw new ha(st||"fetch, bad network response",et,B)}h.loading.first=tt,h.total=function(kt){var At=kt.get("Content-Range");if(At){var Yt=function($t){var oe=ua.exec($t);if(oe)return parseInt(oe[2])-parseInt(oe[1])+1}(At);if(Ot(Yt))return Yt}var Bt=kt.get("Content-Length");if(Bt)return parseInt(Bt)}(B.headers)||h.total;var ft=(U=l.callbacks)==null?void 0:U.onProgress;return ft&&Ot(i.highWaterMark)?l.loadProgressively(B,h,r,i.highWaterMark,ft):C?B.arrayBuffer():r.responseType==="json"?B.json():B.text()}).then(function(B){var U,tt,et=l.response;if(!et)throw new Error("loader destroyed");self.clearTimeout(l.requestTimeout),h.loading.end=Math.max(self.performance.now(),h.loading.first);var st=B[T];st&&(h.loaded=h.total=st);var ft={url:et.url,data:B,code:et.status},kt=(U=l.callbacks)==null?void 0:U.onProgress;kt&&!Ot(i.highWaterMark)&&kt(h,r,B,et),(tt=l.callbacks)==null||tt.onSuccess(ft,h,r,et)}).catch(function(B){var U;if(self.clearTimeout(l.requestTimeout),!h.aborted){var tt=B&&B.code||0,et=B?B.message:null;(U=l.callbacks)==null||U.onError({code:tt,text:et},r,B?B.details:null,h)}})},p.getCacheAge=function(){var r=null;if(this.response){var i=this.response.headers.get("age");r=i?parseFloat(i):null}return r},p.getResponseHeader=function(r){return this.response?this.response.headers.get(r):null},p.loadProgressively=function(r,i,o,l,h){l===void 0&&(l=0);var v=new Ue,C=r.body.getReader(),T=function(){return C.read().then(function(w){if(w.done)return v.dataLength&&h(i,o,v.flush().buffer,r),Promise.resolve(new ArrayBuffer(0));var M=w.value,F=M.length;return i.loaded+=F,F<l||v.dataLength?(v.push(M),v.dataLength>=l&&h(i,o,v.flush().buffer,r)):h(i,o,M.buffer,r),T()}).catch(function(){return Promise.reject()})};return T()},f}();
95function da(f,p){return new self.Request(f.url,p)}var ha=function(f){function p(r,i,o){var l;return(l=f.call(this,r)||this).code=void 0,l.details=void 0,l.code=i,l.details=o,l}return ct(p,f),p}(xt(Error)),fa=/^age:\s*[\d.]+\s*$/im,ks=function(){function f(r){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=r&&r.xhrSetup||null,this.stats=new Yn,this.retryDelay=0}var p=f.prototype;return p.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null},p.abortInternal=function(){var r=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),r&&(r.onreadystatechange=null,r.onprogress=null,r.readyState!==4&&(this.stats.aborted=!0,r.abort()))},p.abort=function(){var r;this.abortInternal(),(r=this.callbacks)!=null&&r.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},p.load=function(r,i,o){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=r,this.config=i,this.callbacks=o,this.loadInternal()},p.loadInternal=function(){var r=this,i=this.config,o=this.context;if(i&&o){var l=this.loader=new self.XMLHttpRequest,h=this.stats;h.loading.first=0,h.loaded=0,h.aborted=!1;var v=this.xhrSetup;v?Promise.resolve().then(function(){if(r.loader===l&&!r.stats.aborted)return v(l,o.url)}).catch(function(C){if(r.loader===l&&!r.stats.aborted)return l.open("GET",o.url,!0),v(l,o.url)}).then(function(){r.loader!==l||r.stats.aborted||r.openAndSendXhr(l,o,i)}).catch(function(C){var T;(T=r.callbacks)==null||T.onError({code:l.status,text:C.message},o,l,h)}):this.openAndSendXhr(l,o,i)}},p.openAndSendXhr=function(r,i,o){r.readyState||r.open("GET",i.url,!0);var l=i.headers,h=o.loadPolicy,v=h.maxTimeToFirstByteMs,C=h.maxLoadTimeMs;if(l)for(var T in l)r.setRequestHeader(T,l[T]);i.rangeEnd&&r.setRequestHeader("Range","bytes="+i.rangeStart+"-"+(i.rangeEnd-1)),r.onreadystatechange=this.readystatechange.bind(this),r.onprogress=this.loadprogress.bind(this),r.responseType=i.responseType,self.clearTimeout(this.requestTimeout),o.timeout=v&&Ot(v)?v:C,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),o.timeout),r.send()},p.readystatechange=function(){var r=this.context,i=this.loader,o=this.stats;if(r&&i){var l=i.readyState,h=this.config;if(!o.aborted&&l>=2&&(o.loading.first===0&&(o.loading.first=Math.max(self.performance.now(),o.loading.start),h.timeout!==h.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),h.timeout=h.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),h.loadPolicy.maxLoadTimeMs-(o.loading.first-o.loading.start)))),l===4)){self.clearTimeout(this.requestTimeout),i.onreadystatechange=null,i.onprogress=null;var v=i.status,C=i.responseType==="text"?i.responseText:null;if(v>=200&&v<300){var T=C??i.response;if(T!=null){var w,M;o.loading.end=Math.max(self.performance.now(),o.loading.first);var F=i.responseType==="arraybuffer"?T.byteLength:T.length;o.loaded=o.total=F,o.bwEstimate=8e3*o.total/(o.loading.end-o.loading.first);var B=(w=this.callbacks)==null?void 0:w.onProgress;B&&B(o,r,T,i);var U={url:i.responseURL,data:T,code:v};return void((M=this.callbacks)==null||M.onSuccess(U,o,r,i))}}var tt,et=h.loadPolicy.errorRetry;te(et,o.retry,!1,{url:r.url,data:void 0,code:v})?this.retry(et):(Ri.error(v+" while loading "+r.url),(tt=this.callbacks)==null||tt.onError({code:v,text:i.statusText},r,i,o))}}},p.loadtimeout=function(){if(this.config){var r=this.config.loadPolicy.timeoutRetry;if(te(r,this.stats.retry,!0))this.retry(r);else{var i;Ri.warn("timeout while loading "+((i=this.context)==null?void 0:i.url));var o=this.callbacks;o&&(this.abortInternal(),o.onTimeout(this.stats,this.context,this.loader))}}},p.retry=function(r){var i=this.context,o=this.stats;this.retryDelay=Mt(r,o.retry),o.retry++,Ri.warn((status?"HTTP Status "+status:"Timeout")+" while loading "+(i==null?void 0:i.url)+", retrying "+o.retry+"/"+r.maxNumRetry+" in "+this.retryDelay+"ms"),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)},p.loadprogress=function(r){var i=this.stats;i.loaded=r.loaded,r.lengthComputable&&(i.total=r.total)},p.getCacheAge=function(){var r=null;if(this.loader&&fa.test(this.loader.getAllResponseHeaders())){var i=this.loader.getResponseHeader("age");r=i?parseFloat(i):null}return r},p.getResponseHeader=function(r){return this.loader&&new RegExp("^"+r+":\\s*[\\d.]+\\s*$","im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(r):null},f}(),xs={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},pa=q(q({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,startOnSegmentBoundary:!1,maxBufferSize:6e7,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftw
vendor: 5,132 bytes, line 95
95areAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:ks,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:li,bufferController:zt,capLevelController:Oe,errorController:W,fpsController:we,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:null,requireKeySystemAccessOnStart:!1,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!1,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!1,preserveManualLevelOnError:!1,certLoadPolicy:{default:xs},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:xs},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},{cueHandler:Lr,enableWebVTT:!1,enableIMSC1:!1,enableCEA708Captions:!1,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:void 0,subtitleTrackController:void 0,timelineController:void 0,audioStreamController:void 0,audioTrackController:void 0,emeController:void 0,cmcdController:void 0,contentSteeringController:Xt,interstitialsController:void 0});function as(f){return f&&typeof f=="object"?Array.isArray(f)?f.map(as):Object.keys(f).reduce(function(p,r){return p[r]=as(f[r]),p},{}):f}function ma(f,p){var r=f.loader;r!==ws&&r!==ks?(p.log("[config]: Custom loader detected, cannot enable progressive streaming"),f.progressive=!1):function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch{}return!1}()&&(f.loader=ws,f.progressive=!0,f.enableSoftwareAES=!0,p.log("[config]: Progressive streaming enabled, using FetchLoader"))}var As="NOT_LOADED",Ls="APPENDING",_o="PARTIAL",Bo="OK",ga=function(){function f(r){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=r,this._registerListeners()}var p=f.prototype;return p._registerListeners=function(){var r=this.hls;r&&(r.on(ot.MANIFEST_LOADING,this.onManifestLoading,this),r.on(ot.BUFFER_APPENDED,this.onBufferAppended,this),r.on(ot.FRAG_BUFFERED,this.onFragBuffered,this),r.on(ot.FRAG_LOADED,this.onFragLoaded,this))},p._unregisterListeners=function(){var r=this.hls;r&&(r.off(ot.MANIFEST_LOADING,this.onManifestLoading,this),r.off(ot.BUFFER_APPENDED,this.onBufferAppended,this),r.off(ot.FRAG_BUFFERED,this.onFragBuffered,this),r.off(ot.FRAG_LOADED,this.onFragLoaded,this))},p.destroy=function(){this._unregisterListeners(),this.hls=this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null},p.getAppendedFrag=function(r,i){var o=this.activePartLists[i];if(o)for(var l=o.length;l--;){var h=o[l];if(!h)break;if(h.start<=r&&r<=h.end&&h.loaded)return h}return this.getBufferedFrag(r,i)},p.getBufferedFrag=function(r,i){return this.getFragAtPos(r,i,!0)},p.getFragAtPos=function(r,i,o){for(var l=this.fragments,h=Object.keys(l),v=h.length;v--;
95){var C=l[h[v]];if((C==null?void 0:C.body.type)===i&&(!o||C.buffered)){var T=C.body;if(T.start<=r&&r<=T.end)return T}}return null},p.detectEvictedFragments=function(r,i,o,l,h){var v=this;this.timeRanges&&(this.timeRanges[r]=i);var C=(l==null?void 0:l.fragment.sn)||-1;Object.keys(this.fragments).forEach(function(T){var w=v.fragments[T];if(w&&!(C>=w.body.sn))if(w.buffered||w.loaded&&!h){var M=w.range[r];M&&(M.time.length!==0?M.time.some(function(F){var B=!v.isTimeBuffered(F.startPTS,F.endPTS,i);return B&&v.removeFragment(w.body),B}):v.removeFragment(w.body))}else w.body.type===o&&v.removeFragment(w.body)})},p.detectPartialFragments=function(r){var i=this,o=this.timeRanges;if(o&&r.frag.sn!=="initSegment"){var l=r.frag,h=Ao(l),v=this.fragments[h];if(!(!v||v.buffered&&l.gap)){var C=!l.relurl;Object.keys(o).forEach(function(T){var w=l.elementaryStreams[T];if(w){var M=o[T],F=C||w.partial===!0;v.range[T]=i.getBufferedTimes(l,r.part,F,M)}}),v.loaded=null,Object.keys(v.range).length?(this.bufferedEnd(v,l),zo(v)||this.removeParts(l.sn-1,l.type)):this.removeFragment(v.body)}}},p.bufferedEnd=function(r,i){r.buffered=!0,(r.body.endList=i.endList||r.body.endList)&&(this.endListFragments[r.body.type]=r)},p.removeParts=function(r,i){var o=this.activePartLists[i];o&&(this.activePartLists[i]=Ps(o,function(l){return l.fragment.sn>=r}))},p.fragBuffered=function(r,i){var o=Ao(r),l=this.fragments[o];!l&&i&&(l=this.fragments[o]={body:r,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},r.gap&&(this.hasGaps=!0)),l&&(l.loaded=null,this.bufferedEnd(l,r))},p.getBufferedTimes=function(r,i,o,l){for(var h={time:[],partial:o},v=r.start,C=r.end,T=r.minEndPTS||C,w=r.maxStartPTS||v,M=0;M<l.length;M++){var F=l.start(M)-this.bufferPadding,B=l.end(M)+this.bufferPadding;if(w>=F&&T<=B){h.time.push({startPTS:Math.max(v,l.start(M)),endPTS:Math.min(C,l.end(M))});break}if(v<B&&C>F){var U=Math.max(v,l.start(M)),tt=Math.min(C,l.end(M));tt>U&&(h.partial=!0,h.time.push({startPTS:U,endPTS:tt}))}else if(C<=F)break}return h},p.getPartialFragment=function(r){var i,o,l,h=null,v=0,C=this.bufferPadding,T=this.fragments;return Object.keys(T).forEach(function(w){var M=T[w];M&&zo(M)&&(o=M.body.start-C,l=M.body.end+C,r>=o&&r<=l&&(i=Math.min(r-o,l-r),v<=i&&(h=M.body,v=i)))}),h},p.isEndListAppended=function(r){var i=this.endListFragments[r];return i!==void 0&&(i.buffered||zo(i))},p.getState=function(r){var i=Ao(r),o=this.fragments[i];return o?o.buffered?zo(o)?_o:Bo:Ls:As},p.isTimeBuffered=function(r,i,o){for(var l,h,v=0;v<o.length;v++){if(l=o.start(v)-this.bufferPadding,h=o.end(v)+this.bufferPadding,r>=l&&i<=h)return!0;if(i<=l)return!1}return!1},p.onManifestLoading=function(){this.removeAllFragments()},p.onFragLoaded=function(r,i){if(i.frag.sn!=="initSegment"&&!i.frag.bitrateTest){var o=i.frag,l=i.part?null:i,h=Ao(o);this.fragments[h]={body:o,appendedPTS:null,loaded:l,buffered:!1,range:Object.create(null)}}},p.onBufferAppended=function(r,i){var o=i.frag,l=i.part,h=i.timeRanges,v=i.type;if(o.sn!=="initSegment"){var C=o.type;if(l){var T=this.activePartLists[C];T||(this.activePartLists[C]=T=[]),T.push(l)}this.timeRanges=h;var w=h[v];this.detectEvictedFragments(v,w,C,l)}},p.onFragBuffered=function(r,i){this.detectPartialFragments(i)},p.hasFragment=function(r){var i=Ao(r);return!!this.fragments[i]},p.hasFragments=function(r){var i=this.fragments,o=Object.keys(i);if(!r)return o.length>0;for(var l=o.length;l--;){var h=i[o[l]];if((h==null?void 0:h.body.type)===r)return!0}return!1},p.hasParts=function(r){var i;return!((i=this.activePartLists[r])==null||!i.length)},p.removeFragmentsInRange=function(r,i,o,l,h){var v=this;l&&!this.hasGaps||Object.keys(this.fragments).forEach(function(C){var T=v.fragments[C];if(T){var w=T.body;w.type!==o||l&&!w.gap||w.start<i&&w.end>r&&(T.buffered||h)&&v.removeFragment(w)}})},p.removeFragment=function(r){var i=Ao(r);r.clearElementaryStreamInfo();var o=this.activePartLists[r.type];if(o){var l=r.sn;this.activePartLists[r.type]=Ps(o,function(h){return h.fragment.sn!==l})}delete this.fragments[i],r.endList&&delete this.endListFragments[r.type]},p.removeAllFragments=function(){var r;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;var i=(r=this.hls)==null||(r=r.latestLevelDetails)==null?void 0:r.partList;
vendor: 8,213 bytes, line 95
95i&&i.forEach(function(o){return o.clearElementaryStreamInfo()})},f}();function zo(f){var p,r,i;return f.buffered&&!!(f.body.gap||(p=f.range.video)!=null&&p.partial||(r=f.range.audio)!=null&&r.partial||(i=f.range.audiovideo)!=null&&i.partial)}function Ao(f){return f.type+"_"+f.level+"_"+f.sn}function Ps(f,p){return f.filter(function(r){var i=p(r);return i||r.clearElementaryStreamInfo(),i})}var Is=Math.pow(2,17),va=function(){function f(r){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=r}var p=f.prototype;return p.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},p.abort=function(){this.loader&&this.loader.abort()},p.load=function(r,i){var o=this,l=r.url;if(!l)return Promise.reject(new ao({type:me.NETWORK_ERROR,details:mt.FRAG_LOAD_ERROR,fatal:!1,frag:r,error:new Error("Fragment does not have a "+(l?"part list":"url")),networkDetails:null}));this.abort();var h=this.config,v=h.fLoader,C=h.loader;return new Promise(function(T,w){if(o.loader&&o.loader.destroy(),r.gap){if(r.tagList.some(function(et){return et[0]==="GAP"}))return void w(Ms(r));r.gap=!1}var M=o.loader=v?new v(h):new C(h),F=Ds(r);r.loader=M;var B=ee(h.fragLoadPolicy.default),U={loadPolicy:B,timeout:B.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:r.sn==="initSegment"?1/0:Is};r.stats=M.stats;var tt={onSuccess:function(et,st,ft,kt){o.resetLoader(r,M);var At=et.data;ft.resetIV&&r.decryptdata&&(r.decryptdata.iv=new Uint8Array(At.slice(0,16)),At=At.slice(16)),T({frag:r,part:null,payload:At,networkDetails:kt})},onError:function(et,st,ft,kt){o.resetLoader(r,M),w(new ao({type:me.NETWORK_ERROR,details:mt.FRAG_LOAD_ERROR,fatal:!1,frag:r,response:q({url:l,data:void 0},et),error:new Error("HTTP Error "+et.code+" "+et.text),networkDetails:ft,stats:kt}))},onAbort:function(et,st,ft){o.resetLoader(r,M),w(new ao({type:me.NETWORK_ERROR,details:mt.INTERNAL_ABORTED,fatal:!1,frag:r,error:new Error("Aborted"),networkDetails:ft,stats:et}))},onTimeout:function(et,st,ft){o.resetLoader(r,M),w(new ao({type:me.NETWORK_ERROR,details:mt.FRAG_LOAD_TIMEOUT,fatal:!1,frag:r,error:new Error("Timeout after "+U.timeout+"ms"),networkDetails:ft,stats:et}))}};i&&(tt.onProgress=function(et,st,ft,kt){return i({frag:r,part:null,payload:ft,networkDetails:kt})}),M.load(F,U,tt)})},p.loadPart=function(r,i,o){var l=this;this.abort();var h=this.config,v=h.fLoader,C=h.loader;return new Promise(function(T,w){if(l.loader&&l.loader.destroy(),r.gap||i.gap)w(Ms(r,i));else{var M=l.loader=v?new v(h):new C(h),F=Ds(r,i);r.loader=M;var B=ee(h.fragLoadPolicy.default),U={loadPolicy:B,timeout:B.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Is};i.stats=M.stats,M.load(F,U,{onSuccess:function(tt,et,st,ft){l.resetLoader(r,M),l.updateStatsFromPart(r,i);var kt={frag:r,part:i,payload:tt.data,networkDetails:ft};o(kt),T(kt)},onError:function(tt,et,st,ft){l.resetLoader(r,M),w(new ao({type:me.NETWORK_ERROR,details:mt.FRAG_LOAD_ERROR,fatal:!1,frag:r,part:i,response:q({url:F.url,data:void 0},tt),error:new Error("HTTP Error "+tt.code+" "+tt.text),networkDetails:st,stats:ft}))},onAbort:function(tt,et,st){r.stats.aborted=i.stats.aborted,l.resetLoader(r,M),w(new ao({type:me.NETWORK_ERROR,details:mt.INTERNAL_ABORTED,fatal:!1,frag:r,part:i,error:new Error("Aborted"),networkDetails:st,stats:tt}))},onTimeout:function(tt,et,st){l.resetLoader(r,M),w(new ao({type:me.NETWORK_ERROR,details:mt.FRAG_LOAD_TIMEOUT,fatal:!1,frag:r,part:i,error:new Error("Timeout after "+U.timeout+"ms"),networkDetails:st,stats:tt}))}})}})},p.updateStatsFromPart=function(r,i){var o=r.stats,l=i.stats,h=l.total;if(o.loaded+=l.loaded,h){var v=Math.round(r.duration/i.duration),C=Math.min(Math.round(o.loaded/h),v),T=(v-C)*Math.round(o.loaded/C);o.total=o.loaded+T}else o.total=Math.max(o.loaded,o.total);var w=o.loading,M=l.loading;w.start?w.first+=M.first-M.start:(w.start=M.start,w.first=M.first),w.end=M.end},p.resetLoader=function(r,i){r.loader=null,this.loader===i&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),i.destroy()},f}();function Ds(f,p){p===void 0&&(p=null);var r,i=p||f,o={frag:f,part:p,responseType:"arraybuffer",url:i.url,headers:{},rangeStart:0,rangeEnd:0},l=i.byteRangeStartOffset,h=i.byteRangeEndOffset;if(Ot(l)&&Ot(h)){var v,C=l,T=h;if(f.sn==="initSegment"&&((r=(v=f.decryptdata)==null?void 0:v.method)==="AES-128"||r==="AES-256")){var w=h-l;w%16&&(T=h+(16-w%16)),l!==0&&(o.resetIV=!0,C=l-16)}o.rangeStart=C,o.rangeEnd=T}return o}function Ms(f,p){var r=new Error("GAP "+(f.gap?"tag":"attribute")+" found"),i={type:me.MEDIA_ERROR,details:mt.FRAG_GAP,fatal:!1,frag:f,error:r,networkDetails:null};return p&&(i.part=p),(p||f).stats.aborted=!0,new ao(i)}var ao=function(f){function p(r){var i;return(i=f.call(this,r.error.message)||this).data=void 0,i.data=r,i}return ct(p,f),p}(xt(Error)),Rs=function(f){function p(i,o){var l;return(l=f.call(this,i,o)||this)._boundTick=void 0,l._tickTimer=null,l._tickInterval=null,l._tickCallCount=0,l._boundTick=l.tick.bind(l),l}ct(p,f);var r=p.prototype;return r.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},r.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},r.onHandlerDestroyed=function(){},r.hasInterval=function(){return!!this._tickInterval},r.hasNextTick=function(){return!!this._tickTimer},r.setInterval=function(i){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,i),!0)},r.clearInterval=function(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)},r.clearNextTick=function(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)},r.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},r.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},r.doTick=function(){},p}(ii),Os=function(f,p,r,i,o,l){i===void 0&&(i=0),o===void 0&&(o=-1),l===void 0&&(l=!1),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing={start:0,executeStart:0,executeEnd:0,end:0},this.buffering={audio:{start:0,executeStart:0,executeEnd:0,end:0},video:{start:0,executeStart:0,executeEnd:0,end:0},audiovideo:{start:0,executeStart:0,executeEnd:0,end:0}},this.level=f,this.sn=p,this.id=r,this.size=i,this.part=o,this.partial=l};function Fo(f,p){for(var r=0,i=f.length;r<i;r++){var o;if(((o=f[r])==null?void 0:o.cc)===p)return f[r]}return null}function _s(f,p){var r=f.start+p;f.startPTS=r,f.setStart(r),f.endPTS=r+f.duration}function Bs(f,p){for(var r=p.fragments,i=0,o=r.length;i<o;i++)_s(r[i],f);p.fragmentHint&&_s(p.fragmentHint,f),p.alignedSliding=!0}function ya(f,p){f&&(function(r,i){if(function(v,C){return!!(v&&C.startCC<v.endCC&&C.endCC>v.startCC)}(i,r)){var o=Math.min(i.endCC,r.endCC),l=Fo(i.fragments,o),h=Fo(r.fragments,o);l&&h&&(Ri.log("Aligning playlist at start of dicontinuity sequence "+o),Bs(l.start-h.start,r))}}(p,f),p.alignedSliding||function(r,i){if(r.hasProgramDateTime&&i.hasProgramDateTime){var o,l,h=r.fragments,v=i.fragments;if(h.length&&v.length){var C=Math.min(i.endCC,r.endCC);i.startCC<C&&r.startCC<C&&(o=Fo(v,C),l=Fo(h,C)),o&&l||(l=Fo(h,(o=v[Math.floor(v.length/2)]).cc)||h[Math.floor(h.length/2)]);var T=o.programDateTime,w=l.programDateTime;T&&w&&Bs((w-T)/1e3-(l.start-o.start),r)}}}(p,f),p.alignedSliding||p.skippedSegments||j(f,p,!1))}function bo(f,p,r){fo(f,p,r),f.addEventListener(p,r)}function fo(f,p,r){f.removeEventListener(p,r)}var ba=function(f){for(var p="",r=f.length,i=0;i<r;i++)p+="["+f.start(i).toFixed(3)+"-"+f.end(i).toFixed(3)+"]";return p},ri={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_LEVEL:"WAITING_LEVEL"},Ca=function(f){function p(i,o,l,h,v){var C;return(C=f.call(this,h,i.logger)||this).hls=void 0,C.fragPrevious=null,C.fragCurrent=null,C.fragmentTracker=void 0,C.transmuxer=null,C._state=ri.STOPPED,C.playlistType=void 0,C.media=null,C.mediaBuffer=null,C.c
vendor: 5,191 bytes, line 95
95onfig=void 0,C.bitrateTest=!1,C.lastCurrentTime=0,C.nextLoadPosition=0,C.startPosition=0,C.startTimeOffset=null,C.retryDate=0,C.levels=null,C.fragmentLoader=void 0,C.keyLoader=void 0,C.levelLastLoaded=null,C.startFragRequested=!1,C.decrypter=void 0,C.initPTS=[],C.buffering=!0,C.loadingParts=!1,C.loopSn=void 0,C.onMediaSeeking=function(){var T=C,w=T.config,M=T.fragCurrent,F=T.media,B=T.mediaBuffer,U=T.state,tt=F?F.currentTime:0,et=wt.bufferInfo(B||F,tt,w.maxBufferHole),st=!et.len;if(C.log("Media seeking to "+(Ot(tt)?tt.toFixed(3):tt)+", state: "+U+", "+(st?"out of":"in")+" buffer"),C.state===ri.ENDED)C.resetLoadingState();else if(M){var ft=w.maxFragLookUpTolerance,kt=M.start-ft,At=M.start+M.duration+ft;if(st||At<et.start||kt>et.end){var Yt=tt>At;(tt<kt||Yt)&&(Yt&&M.loader&&(C.log("Cancelling fragment load for seek (sn: "+M.sn+")"),M.abortRequests(),C.resetLoadingState()),C.fragPrevious=null)}}if(F&&(C.fragmentTracker.removeFragmentsInRange(tt,1/0,C.playlistType,!0),tt>C.lastCurrentTime&&(C.lastCurrentTime=tt),!C.loadingParts)){var Bt=Math.max(et.end,tt),$t=C.shouldLoadParts(C.getLevelDetails(),Bt);$t&&(C.log("LL-Part loading ON after seeking to "+tt.toFixed(2)+" with buffer @"+Bt.toFixed(2)),C.loadingParts=$t)}C.hls.hasEnoughToStart||(C.log("Setting "+(st?"startPosition":"nextLoadPosition")+" to "+tt+" for seek without enough to start"),C.nextLoadPosition=tt,st&&(C.startPosition=tt)),st&&C.state===ri.IDLE&&C.tickImmediate()},C.onMediaEnded=function(){C.log("setting startPosition to 0 because media ended"),C.startPosition=C.lastCurrentTime=0},C.playlistType=v,C.hls=i,C.fragmentLoader=new va(i.config),C.keyLoader=l,C.fragmentTracker=o,C.config=i.config,C.decrypter=new hi(i.config),C}ct(p,f);var r=p.prototype;return r.registerListeners=function(){var i=this.hls;i.on(ot.MEDIA_ATTACHED,this.onMediaAttached,this),i.on(ot.MEDIA_DETACHING,this.onMediaDetaching,this),i.on(ot.MANIFEST_LOADING,this.onManifestLoading,this),i.on(ot.MANIFEST_LOADED,this.onManifestLoaded,this),i.on(ot.ERROR,this.onError,this)},r.unregisterListeners=function(){var i=this.hls;i.off(ot.MEDIA_ATTACHED,this.onMediaAttached,this),i.off(ot.MEDIA_DETACHING,this.onMediaDetaching,this),i.off(ot.MANIFEST_LOADING,this.onManifestLoading,this),i.off(ot.MANIFEST_LOADED,this.onManifestLoaded,this),i.off(ot.ERROR,this.onError,this)},r.doTick=function(){this.onTickEnd()},r.onTickEnd=function(){},r.startLoad=function(i){},r.stopLoad=function(){if(this.state!==ri.STOPPED){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);var i=this.fragCurrent;i!=null&&i.loader&&(i.abortRequests(),this.fragmentTracker.removeFragment(i)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=ri.STOPPED}},r.pauseBuffering=function(){this.buffering=!1},r.resumeBuffering=function(){this.buffering=!0},r._streamEnded=function(i,o){if(o.live||!this.media)return!1;var l=i.end||0,h=this.config.timelineOffset||0;if(l<=h)return!1;var v=i.buffered;this.config.maxBufferHole&&v&&v.length>1&&(i=wt.bufferedInfo(v,i.start,0));var C=i.nextStart;if(C&&C>h&&C<o.edge||this.media.currentTime<i.start)return!1;var T=o.partList;if(T!=null&&T.length){var w=T[T.length-1];return wt.isBuffered(this.media,w.start+w.duration/2)}var M=o.fragments[o.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(M)},r.getLevelDetails=function(){if(this.levels&&this.levelLastLoaded!==null)return this.levelLastLoaded.details},r.onMediaAttached=function(i,o){var l=this.media=this.mediaBuffer=o.media;bo(l,"seeking",this.onMediaSeeking),bo(l,"ended",this.onMediaEnded);var h=this.config;this.levels&&h.autoStartLoad&&this.state===ri.STOPPED&&this.startLoad(h.startPosition)},r.onMediaDetaching=function(i,o){var l=!!o.transferMedia,h=this.media;if(h!==null){if(h.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),fo(h,"seeking",this.onMediaSeeking),fo(h,"ended",this.onMediaEnded),this.keyLoader&&!l&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loopSn=void 0,l)return this.resetLoadingState(),void this.resetTransmuxer();this.loadingParts=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}},r.onManifestLoading=function(){this.initPTS=[],this.levels=this.levelLastLoaded=this.fragCurrent=null,this.lastCurrentTime=this.startPosition=0,this.startFragRequested=!1},r.onError=function(i,o){},r.onManifestLoaded=function(i,o){this.startTimeOffset=o.startTimeOffset},r.onHandlerDestroying=function(){this.stopLoad(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),f.prototype.onHandlerDestroying.call(this),this.hls=this.onMediaSeeking=this.onMediaEnded=null},r.onHandlerDestroyed=function(){this.state=ri.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,f.prototype.onHandlerDestroyed.call(this)},r.loadFragment=function(i,o,l){this.startFragRequested=!0,this._loadFragForPlayback(i,o,l)},r._loadFragForPlayback=function(i,o,l){var h=this;
95this._doFragLoad(i,o,l,function(v){var C=v.frag;if(h.fragContextChanged(C))return h.warn(C.type+" sn: "+C.sn+(v.part?" part: "+v.part.index:"")+" of "+h.fragInfo(C,!1,v.part)+") was dropped during download."),void h.fragmentTracker.removeFragment(C);C.stats.chunkCount++,h._handleFragmentLoadProgress(v)}).then(function(v){if(v){var C=h.state,T=v.frag;h.fragContextChanged(T)?(C===ri.FRAG_LOADING||!h.fragCurrent&&C===ri.PARSING)&&(h.fragmentTracker.removeFragment(T),h.state=ri.IDLE):("payload"in v&&(h.log("Loaded "+T.type+" sn: "+T.sn+" of "+h.playlistLabel()+" "+T.level),h.hls.trigger(ot.FRAG_LOADED,v)),h._handleFragmentLoadComplete(v))}}).catch(function(v){h.state!==ri.STOPPED&&h.state!==ri.ERROR&&(h.warn("Frag error: "+((v==null?void 0:v.message)||v)),h.resetFragmentLoading(i))})},r.clearTrackerIfNeeded=function(i){var o,l=this.fragmentTracker;if(l.getState(i)===Ls){var h=i.type,v=this.getFwdBufferInfo(this.mediaBuffer,h),C=Math.max(i.duration,v?v.len:this.config.maxBufferLength),T=this.backtrackFragment;((T?i.sn-T.sn:0)==1||this.reduceMaxBufferLength(C,i.duration))&&l.removeFragment(i)}else((o=this.mediaBuffer)==null?void 0:o.buffered.length)===0?l.removeAllFragments():l.hasParts(i.type)&&(l.detectPartialFragments({frag:i,part:null,stats:i.stats,id:i.type}),l.getState(i)===_o&&l.removeFragment(i))},r.checkLiveUpdate=function(i){if(i.updated&&!i.live){var o=i.fragments[i.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:o,part:null,stats:o.stats,id:o.type})}i.fragments[0]||(i.deltaUpdateFailed=!0)},r.waitForLive=function(i){var o=i.details;return(o==null?void 0:o.live)&&o.type!=="EVENT"&&(this.levelLastLoaded!==i||o.expired)},r.flushMainBuffer=function(i,o,l){if(l===void 0&&(l=null),i-o){var h={startOffset:i,endOffset:o,type:l};this.hls.trigger(ot.BUFFER_FLUSHING,h)}},r._loadInitSegment=function(i,o){var l=this;this._doFragLoad(i,o).then(function(h){var v=h==null?void 0:h.frag;if(!v||l.fragContextChanged(v)||!l.levels)throw new Error("init load aborted");return h}).then(function(h){var v=l.hls,C=h.frag,T=h.payload,w=C.decryptdata;if(T&&T.byteLength>0&&w!=null&&w.key&&w.iv&&ge(w.method)){var M=self.performance.now();return l.decrypter.decrypt(new Uint8Array(T),w.key.buffer,w.iv.buffer,_e(w.method)).catch(function(F){throw v.trigger(ot.ERROR,{type:me.MEDIA_ERROR,details:mt.FRAG_DECRYPT_ERROR,fatal:!1,error:F,reason:F.message,frag:C}),F}).then(function(F){var B=self.performance.now();return v.trigger(ot.FRAG_DECRYPTED,{frag:C,payload:F,stats:{tstart:M,tdecrypt:B}}),h.payload=F,l.completeInitSegmentLoad(h)})}return l.completeInitSegmentLoad(h)}).catch(function(h){l.state!==ri.STOPPED&&l.state!==ri.ERROR&&(l.warn(h),l.resetFragmentLoading(i))})},r.completeInitSegmentLoad=function(i){if(!this.levels)throw new Error("init load aborted, missing levels");var o=i.frag.stats;this.state!==ri.STOPPED&&(this.state=ri.IDLE),i.frag.data=new Uint8Array(i.payload),o.parsing.start=o.buffering.start=self.performance.now(),o.parsing.end=o.buffering.end=self.performance.now(),this.tick()},r.unhandledEncryptionError=function(i,o){var l,h,v=i.tracks;if(v&&!o.encrypted&&((l=v.audio)!=null&&l.encrypted||(h=v.video)!=null&&h.encrypted)&&(!this.config.emeEnabled||!this.keyLoader.emeController)){var C=this.media,T=new Error("EME not supported (light build)");return this.warn(T.message),!(!C||C.mediaKeys)&&(this.hls.trigger(ot.ERROR,{type:me.KEY_SYSTEM_ERROR,details:mt.KEY_SYSTEM_NO_KEYS,fatal:!0,error:T,frag:o}),this.resetTransmuxer(),!0)}return!1},r.fragContextChanged=function(i){var o=this.fragCurrent;return!i||!o||i.sn!==o.sn||i.level!==o.level},r.fragBufferedComplete=function(i,o){var l=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log("Buffered "+i.type+" sn: "+i.sn+(o?" part: "+o.index:"")+" of "+this.fragInfo(i,!1,o)+" > buffer:"+(l?ba(wt.getBuffered(l)):"(detached)")+")"),ti(i)){var h;if(i.type!==De){var v=i.elementaryStreams;if(!Object.keys(v).some(function(T){return!!v[T]}))return void(this.state=ri.IDLE)}var C=(h=this.levels)==null?void 0:h[i.level];C!=null&&C.fragmentError&&(this.log("Resetting level fragment error count of "+C.fragmentError+" on frag buffered"),C.fragmentError=0)}this.state=ri.IDLE},r._handleFragmentLoadComplete=function(i){var o=this.transmuxer;if(o){var l=i.frag,h=i.part,v=i.partsLoaded,C=!v||v.length===0||v.some(function(w){return!w}),T=new Os(l.level,l.sn,l.stats.chunkCount+1,0,h?h.index:-1,!C);o.flush(T)}},r._handleFragmentLoadProgress=function(i){},r._doFragLoad=function(i,o,l,h){var v,C=this;l===void 0&&(l=null),this.fragCurrent=i;var T=o.details;if(!this.levels||!T)throw new Error("frag load aborted, missing level"+(T?"":" detail")+"s");var w=null;if(!i.encrypted||(v=i.decryptdata)!=null&&v.key)i.encrypted||(w=this.keyLoader.loadClear(i,T.encryptedFragments,this.startFragRequested))&&this.log("[eme] blocking frag load until media-keys acquired");else if(this.log("Loading key for "+i.sn+" of ["+T.startSN+"-"+T.endSN+"], "+this.playlistLabel()+" "+i.level),this.state=ri.KEY_LOADING,this.fragCurrent=i,w=this.keyLoader.load(i).then(function(At){if(!C.fragContextChanged(At.frag))return C.hl
95s.trigger(ot.KEY_LOADED,At),C.state===ri.KEY_LOADING&&(C.state=ri.IDLE),At}),this.hls.trigger(ot.KEY_LOADING,{frag:i}),this.fragCurrent===null)return this.log("context changed in KEY_LOADING"),Promise.resolve(null);var M,F=this.fragPrevious;if(ti(i)&&(!F||i.sn!==F.sn)){var B=this.shouldLoadParts(o.details,i.end);B!==this.loadingParts&&(this.log("LL-Part loading "+(B?"ON":"OFF")+" loading sn "+(F==null?void 0:F.sn)+"->"+i.sn),this.loadingParts=B)}if(l=Math.max(i.start,l||0),this.loadingParts&&ti(i)){var U=T.partList;if(U&&h){l>T.fragmentEnd&&T.fragmentHint&&(i=T.fragmentHint);var tt=this.getNextPart(U,i,l);if(tt>-1){var et,st=U[tt];return i=this.fragCurrent=st.fragment,this.log("Loading "+i.type+" sn: "+i.sn+" part: "+st.index+" ("+tt+"/"+(U.length-1)+") of "+this.fragInfo(i,!1,st)+") cc: "+i.cc+" ["+T.startSN+"-"+T.endSN+"], target: "+parseFloat(l.toFixed(3))),this.nextLoadPosition=st.start+st.duration,this.state=ri.FRAG_LOADING,et=w?w.then(function(At){return!At||C.fragContextChanged(At.frag)?null:C.doFragPartsLoad(i,st,o,h)}).catch(function(At){return C.handleFragLoadError(At)}):this.doFragPartsLoad(i,st,o,h).catch(function(At){return C.handleFragLoadError(At)}),this.hls.trigger(ot.FRAG_LOADING,{frag:i,part:st,targetBufferTime:l}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):et}if(!i.url||this.loadedEndOfParts(U,l))return Promise.resolve(null)}}if(ti(i)&&this.loadingParts)this.log("LL-Part loading OFF after next part miss @"+l.toFixed(2)+" Check buffer at sn: "+i.sn+" loaded parts: "+((M=T.partList)==null?void 0:M.filter(function(At){return At.loaded}).map(function(At){return"["+At.start+"-"+At.end+"]"}))),this.loadingParts=!1;else if(!i.url)return Promise.resolve(null);this.log("Loading "+i.type+" sn: "+i.sn+" of "+this.fragInfo(i,!1)+") cc: "+i.cc+" ["+T.startSN+"-"+T.endSN+"], target: "+parseFloat(l.toFixed(3))),Ot(i.sn)&&!this.bitrateTest&&(this.nextLoadPosition=i.start+i.duration),this.state=ri.FRAG_LOADING;var ft,kt=this.config.progressive&&i.type!==De;return ft=kt&&w?w.then(function(At){return!At||C.fragContextChanged(At.frag)?null:C.fragmentLoader.load(i,h)}).catch(function(At){return C.handleFragLoadError(At)}):Promise.all([this.fragmentLoader.load(i,kt?h:void 0),w]).then(function(At){var Yt=At[0];return!kt&&h&&h(Yt),Yt}).catch(function(At){return C.handleFragLoadError(At)}),this.hls.trigger(ot.FRAG_LOADING,{frag:i,targetBufferTime:l}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):ft},r.doFragPartsLoad=function(i,o,l,h){var v=this;return new Promise(function(C,T){var w,M=[],F=(w=l.details)==null?void 0:w.partList,B=function(U){v.fragmentLoader.loadPart(i,U,h).then(function(tt){M[U.index]=tt;var et=tt.part;v.hls.trigger(ot.FRAG_LOADED,tt);var st=yt(l.details,i.sn,U.index+1)||vt(F,i.sn,U.index+1);if(!st)return C({frag:i,part:et,partsLoaded:M});B(st)}).catch(T)};B(o)})},r.handleFragLoadError=function(i){if("data"in i){var o=i.data;o.frag&&o.details===mt.INTERNAL_ABORTED?this.handleFragLoadAborted(o.frag,o.part):o.frag&&o.type===me.KEY_SYSTEM_ERROR?(o.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(o.frag)):this.hls.trigger(ot.ERROR,o)}else this.hls.trigger(ot.ERROR,{type:me.OTHER_ERROR,details:mt.INTERNAL_EXCEPTION,err:i,error:i,fatal:!0});return null},r._handleTransmuxerFlush=function(i){var o=this.getCurrentContext(i);if(o&&this.state===ri.PARSING){var l=o.frag,h=o.part,v=o.level,C=self.performance.now();l.stats.parsing.end=C,h&&(h.stats.parsing.end=C);var T=this.getLevelDetails(),w=T&&l.sn>T.endSN||this.shouldLoadParts(T,l.end);w!==this.loadingParts&&(this.log("LL-Part loading "+(w?"ON":"OFF")+" after parsing segment ending @"+l.end.toFixed(2)),this.loadingParts=w),this.updateLevelTiming(l,h,v,i.partial)}else this.fragCurrent||this.state===ri.STOPPED||this.state===ri.ERROR||(this.state=ri.IDLE)},r.shouldLoadParts=function(i,o){if(this.config.lowLatencyMode){if(!i)return this.loadingParts;if(i.partList){var l,h,v=i.partList[0];if(v.fragment.type===De)return!1;if(o>=v.end+(((l=i.fragmentHint)==null?void 0:l.duration)||0)&&(this.hls.hasEnoughToStart?((h=this.media)==null?void 0:h.currentTime)||this.lastCurrentTime:this.getLoadPosition())>v.start-v.fragment.duration)return!0}}return!1},r.getCurrentContext=function(i){var o=this.levels,l=this.fragCurrent,h=i.level,v=i.sn,C=i.part;if(o==null||!o[h])return this.warn("Levels object was unset while buffering fragment "+v+" of "+this.playlistLabel()+" "+h+". The current chunk will not be buffered."),null;var T=o[h],w=T.details,M=C>-1?yt(w,v,C):null,F=M?M.fragment:it(w,v,l);return F?(l&&l!==F&&(F.stats=l.stats),{frag:F,part:M,level:T}):null},r.bufferFragmentData=function(i,o,l,h,v){if(this.state===ri.PARSING){var C=i.data1,T=i.data2,w=C;if(T&&(w=un(C,T)),w.length){var M=this.initPTS[o.cc],F=M?-M.baseTime/M.timescale:void 0,B={type:i.type,frag:o,part:l,chunkMeta:h,offset:F,parent:o.type,data:w};if(this.hls.trigger(ot.BUFFER_APPENDING,B),i.dropped&&i.independent&&!l){if(v)return;this.flushBufferGap(o)}}}},r.flushBufferGap=function(i){var o=this.media;if(o)if(wt.isBuffered(o,o.currentTime)){var l=o.currentTime,h=wt.bufferInfo(o,l,0),v=i.duration,C=Math.min(2*this.config.maxFragLookUpTolerance,.25*v),T=Math.max(Math.min(i.start-C,h.end-C),l+C);i.start-T>C&&this.flushMainBuffer(T,i.start)}else this.flushMainBuffer(0,i.start)},r.getFwdBufferInfo=function(i,o){var l,h=this.getLoadPosition();if(!Ot(h))return null;var v=this.lastCurrentTime>h||(l=this.media)!=null&&l.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(i,h,o,v)},r.getFwdBufferInfoAtPos=function(i,o,l,h){var v=wt.bufferInfo(i,o,h);if(v.len===0&&v.nextStart!==void 0){var C=this.fragmentTracker.getBufferedFrag(o,l);if(C&&(v.nextStart<=C.end||C.gap)){var T=Math.max(Math.min(v.nextStart,C.end)-o,h);return wt.bufferInfo(i,o,T)}}return v},r.getMaxBufferLength=function(i){var o,l=this.config;return o=i?Math.max(8*l.maxBufferSize/i,l.maxBufferLength):l.maxBufferLength,Math.min(o,l.maxMaxBufferLength)},r.exceedsMaxBuffer=function(i,o,l){var h=i.nextStart;if(h&&l.start>h){var v=i.buffered;if(v){for(var C=i.len,T=i.bufferedIndex,w=v.length-1;w>T;w--)v[w].start<l.start&&(C+=v[w].end-v[w].start);return C>=o}}return!1},r.reduceMaxBufferLength=function(i,o){var l=this.config,h=Math.max(Math.min(i-o,l.maxBufferLength),o),v=Math.max(i-3*o,l.maxMaxBufferLength/2,h);return v>=h&&(l.maxMaxBufferLength=v,this.warn("Reduce max buffer length to "+v+"s"),!0)},r.getAppendedFrag=function(i,o){o===void 0&&(o=ue);var l=this.fragmentTracker?this.fragmentTracker.getAppendedFrag(i,o):null;return l&&"fragment"in l?l.fragment:l},r.getNextFragment=function(i,o){var l=o.fragments,h=l.length;
95if(!h)return null;var v=this.config,C=o.fragmentStart,T=v.lowLatencyMode&&!!o.partList,w=null;if(o.live){var M=v.initialLiveManifestSize;if(h<M)return this.warn("Not enough fragments to start playback (have: "+h+", need: "+M+")"),null;if(!o.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||i<C){var F;T&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),w=this.getInitialLiveFragment(o);var B,U,tt=this.config.startPosition,et=this.hls.startPosition,st=this.hls.liveSyncPosition,ft=((F=w)==null?void 0:F.start)||0;et!==-1&&et>=C?(B=et,U=et===tt?"config":"next load start"):st!==null?(B=st,U="live edge"):(B=i,U="buffer pos"),B<ft&&(B=ft,U="live frag start"),B<C&&(B=C,U="playlist start"),this.startPosition==B&&this.nextLoadPosition==B||(this.log("Setting startPosition to "+B.toFixed(3)+" "+(et===-1?"":"(from "+tt+") ")+"based on "+U+". live edge: "+st+" live frag start: "+ft.toFixed(3)+" playlist start: "+C.toFixed(3)+" buffer pos: "+i),this.startPosition=this.nextLoadPosition=B)}}else i<=C&&(w=l[0]);if(!w){var kt=this.loadingParts?o.partEnd:o.fragmentEnd;w=this.getFragmentAtPosition(i,kt,o)}var At=this.filterReplacedPrimary(w,o);if(!At&&w){var Yt=w.sn-o.startSN;At=this.filterReplacedPrimary(l[Yt+1]||null,o)}return this.mapToInitFragWhenRequired(At)},r.isLoopLoading=function(i,o){if(this.nextLoadPosition<=o)return!1;var l=this.fragmentTracker.getState(i);return l===Bo||l===_o&&!!i.gap},r.getNextFragmentLoopLoading=function(i,o,l,h,v){var C=null;if(i.gap&&(C=this.getNextFragment(this.nextLoadPosition,o))&&!C.gap&&l.nextStart){var T=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,l.nextStart,h,0);if(T!==null&&l.len+T.len>=v){var w=C.sn;return this.loopSn!==w&&(this.log('buffer full after gaps in "'+h+'" playlist starting at sn: '+w),this.loopSn=w),null}}return this.loopSn=void 0,C},r.filterReplacedPrimary=function(i,o){return i&&(this.config,i)},r.mapToInitFragWhenRequired=function(i){return i==null||!i.initSegment||i.initSegment.data||this.bitrateTest?i:i.initSegment},r.getNextPart=function(i,o,l){for(var h=-1,v=!1,C=!0,T=0,w=i.length;T<w;T++){var M=i[T];if(C=C&&!M.independent,h>-1&&l<M.start)break;var F=M.loaded;F?h=-1:(v||(M.independent||C)&&M.fragment===o)&&(M.fragment!==o&&this.warn("Need buffer at "+l+" but next unloaded part starts at "+M.start),h=T),v=F}return h},r.loadedEndOfParts=function(i,o){for(var l,h=i.length;h--;){if(!(l=i[h]).loaded)return!1;if(o>l.start)return!0}return!1},r.getInitialLiveFragment=function(i){var o=i.fragments,l=this.fragPrevious,h=null;if(l){if(i.hasProgramDateTime&&(h=function(w,M,F){if(M===null||!Array.isArray(w)||!w.length||!Ot(M)||M<(w[0].programDateTime||0)||M>=(w[w.length-1].endProgramDateTime||0))return null;for(var B=0;B<w.length;++B){var U=w[B];if(Sr(M,F,U))return U}return null}(o,l.endProgramDateTime,this.config.maxFragLookUpTolerance),h&&this.log("Live playlist, switching playlist, load frag with same PDT: "+l.programDateTime)),!h){var v=l.sn+1;if(v>=i.startSN&&v<=i.endSN){var C=o[v-i.startSN];l.cc===C.cc&&(h=C,this.log("Live playlist, switching playlist, load frag with next SN: "+h.sn))}h||(h=function(w,M,F){if(w&&w.startCC<=M&&w.endCC>=M){var B,U=w.fragments,tt=w.fragmentHint;return tt&&(U=U.concat(tt)),Zi(U,function(et){return et.cc<M?1:et.cc>M?-1:(B=et,et.end<=F?1:et.start>F?-1:0)}),B||null}return null}(i,l.cc,l.end),h&&this.log("Live playlist, switching playlist, load frag with same CC: "+h.sn))}}else{var T=this.hls.liveSyncPosition;T!==null&&(h=this.getFragmentAtPosition(T,this.bitrateTest?i.fragmentEnd:i.edge,i))}return h},r.getFragmentAtPosition=function(i,o,l){var h,v,C=this.config,T=this.fragPrevious,w=l.fragments,M=l.endSN,F=l.fragmentHint,B=C.maxFragLookUpTolerance,U=l.partList,tt=!!(this.loadingParts&&U!=null&&U.length&&F);if(tt&&!this.bitrateTest&&U[U.length-1].fragment.sn===F.sn&&(w=w.concat(F),M=F.sn),h=i<o?kn(T,w,i,i<this.lastCurrentTime||i>o-B||(v=this.media)!=null&&v.paused||!this.startFragRequested?0:B):w[w.length-1]){var et=h.sn-l.startSN,st=this.fragmentTracker.getState(h);if((st===Bo||st===_o&&h.gap)&&(T=h),T&&h.sn===T.sn&&(!tt||U[0].fragment.sn>h.sn||!l.live)&&h.level===T.level){var ft=w[et+1];h=h.sn<M&&this.fragmentTracker.getState(ft)!==Bo?ft:null}}return h},r.alignPlaylists=function(i,o,l){var h=i.fragments.length;
vendor: 6,473 bytes, line 95
95if(!h)return this.warn("No fragments in live playlist"),0;var v=i.fragmentStart,C=!o,T=i.alignedSliding&&Ot(v);if(C||!T&&!v){ya(l,i);var w=i.fragmentStart;return this.log("Live playlist sliding: "+w.toFixed(2)+" start-sn: "+(o?o.startSN:"na")+"->"+i.startSN+" fragments: "+h),w}return v},r.waitForCdnTuneIn=function(i){return i.live&&i.canBlockReload&&i.partTarget&&i.tuneInGoal>Math.max(i.partHoldBack,3*i.partTarget)},r.setStartPosition=function(i,o){var l=this.startPosition;l<o&&(l=-1);var h=this.timelineOffset;if(l===-1){var v=this.startTimeOffset!==null,C=v?this.startTimeOffset:i.startTimeOffset;C!==null&&Ot(C)?(l=o+C,C<0&&(l+=i.edge),l=Math.min(Math.max(o,l),o+i.totalduration),this.log("Setting startPosition to "+l+" for start time offset "+C+" found in "+(v?"multivariant":"media")+" playlist"),this.startPosition=l):i.live?(l=this.hls.liveSyncPosition||o,this.log("Setting startPosition to -1 to start at live edge "+l),this.startPosition=-1):(this.log("setting startPosition to 0 by default"),this.startPosition=l=0),this.lastCurrentTime=l+h}this.nextLoadPosition=l+h},r.getLoadPosition=function(){var i,o=this.media,l=0;return(i=this.hls)!=null&&i.hasEnoughToStart&&o?l=o.currentTime:this.nextLoadPosition>=0&&(l=this.nextLoadPosition),l},r.handleFragLoadAborted=function(i,o){this.transmuxer&&i.type===this.playlistType&&ti(i)&&i.stats.aborted&&(this.log("Fragment "+i.sn+(o?" part "+o.index:"")+" of "+this.playlistLabel()+" "+i.level+" was aborted"),this.resetFragmentLoading(i))},r.resetFragmentLoading=function(i){this.fragCurrent&&(this.fragContextChanged(i)||this.state===ri.FRAG_LOADING_WAITING_RETRY)||(this.state=ri.IDLE)},r.onFragmentOrKeyLoadError=function(i,o){var l;if(o.chunkMeta&&!o.frag){var h=this.getCurrentContext(o.chunkMeta);h&&(o.frag=h.frag)}var v=o.frag;if(v&&v.type===i&&this.levels)if(this.fragContextChanged(v)){var C;this.warn("Frag load error must match current frag to retry "+v.url+" > "+((C=this.fragCurrent)==null?void 0:C.url))}else{var T=o.details===mt.FRAG_GAP;T&&this.fragmentTracker.fragBuffered(v,!0);var w=o.errorAction;if(w){var M=w.action,F=w.flags,B=w.retryCount,U=B===void 0?0:B,tt=w.retryConfig,et=!!tt,st=et&&M===Ci,ft=et&&!w.resolved&&F===zi,kt=(l=this.hls.latestLevelDetails)==null?void 0:l.live;if(!st&&ft&&ti(v)&&!v.endList&&kt&&!bt(o))this.resetFragmentErrors(i),this.treatAsGap(v),w.resolved=!0;else if((st||ft)&&U<tt.maxNumRetry){var At,Yt=Fe((At=o.response)==null?void 0:At.code),Bt=Mt(tt,U);if(this.resetStartWhenNotLoaded(),this.retryDate=self.performance.now()+Bt,this.state=ri.FRAG_LOADING_WAITING_RETRY,w.resolved=!0,Yt)return this.log("Waiting for connection (offline)"),this.retryDate=1/0,void(o.reason="offline");this.warn("Fragment "+v.sn+" of "+i+" "+v.level+" errored with "+o.details+", retrying loading "+(U+1)+"/"+tt.maxNumRetry+" in "+Bt+"ms")}else if(tt){if(this.resetFragmentErrors(i),!(U<tt.maxNumRetry))return void this.warn(o.details+" reached or exceeded max retry ("+U+")");T||M===je||(w.resolved=!0)}else this.state=M===Me?ri.WAITING_LEVEL:ri.ERROR;this.tickImmediate()}else this.state=ri.ERROR}},r.checkRetryDate=function(){var i=self.performance.now(),o=this.retryDate,l=o===1/0;(!o||i>=o||l&&!Fe(0))&&(l&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=ri.IDLE)},r.reduceLengthAndFlushBuffer=function(i){if(this.state===ri.PARSING||this.state===ri.PARSED){var o=i.frag,l=i.parent,h=this.getFwdBufferInfo(this.mediaBuffer,l),v=h&&h.len>.5;v&&this.reduceMaxBufferLength(h.len,(o==null?void 0:o.duration)||10);var C=!v;return C&&this.warn("Buffer full error while media.currentTime ("+this.getLoadPosition()+") is not buffered, flush "+l+" buffer"),o&&(this.fragmentTracker.removeFragment(o),this.nextLoadPosition=o.start),this.resetLoadingState(),C}return!1},r.resetFragmentErrors=function(i){i===ye&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==ri.STOPPED&&(this.state=ri.IDLE)},r.afterBufferFlushed=function(i,o,l){if(i){var h=wt.getBuffered(i);this.fragmentTracker.detectEvictedFragments(o,h,l),this.state===ri.ENDED&&this.resetLoadingState()}},r.resetLoadingState=function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==ri.STOPPED&&(this.state=ri.IDLE)},r.resetStartWhenNotLoaded=function(){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;var i=this.levelLastLoaded,o=i?i.details:null;o!=null&&o.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(o,o.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}},r.resetWhenMissingContext=function(i){this.log("Loading context changed while buffering sn "+i.sn+" of "+this.playlistLabel()+" "+(i.level===-1?"<removed>":i.level)+". This chunk will not be buffered."),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(),this.resetLoadingState()},r.removeUnbufferedFrags=function(i){i===void 0&&(i=0),this.fragmentTracker.removeFragmentsInRange(i,1/0,this.playlistType,!1,!0)},r.updateLevelTiming=function(i,o,l,h){var v=this,C=l.details;if(C){if(!Object.keys(i.elementaryStreams).reduce(function(F,B){var U=i.elementaryStreams[B];if(U){var tt=U.endPTS-U.startPTS;if(tt<=0)return v.warn("Could not parse fragment "+i.sn+" "+B+" duration reliably ("+tt+")"),F||!1;var et=h?0:Q(C,i,U.startPTS,U.endPTS,U.startDTS,U.endDTS,v);return v.hls.trigger(ot.LEVEL_PTS_UPDATED,{details:C,level:l,drift:et,type:B,frag:i,start:U.startPTS,end:U.endPTS}),!0}return F},!1)){var T,w=((T=this.transmuxer)==null?void 0:T.error)===null;if((l.fragmentError===0||w&&(l.fragmentError<2||i.endList))&&this.treatAsGap(i,l),w){var M=new Error("Found no media in fragment "+i.sn+" of "+this.playlistLabel()+" "+i.level+" resetting transmuxer to fallback to playlist timing");if(this.warn(M.message),this.hls.trigger(ot.ERROR,{type:me.MEDIA_ERROR,details:mt.FRAG_PARSING_ERROR,fatal:!1,error:M,frag:i,reason:"Found no media in msn "+i.sn+" of "+this.playlistLabel()+' "'+l.url+'"'}),!this.hls)return;this.resetTransmuxer()}}this.state=ri.PARSED,this.log("Parsed "+i.type+" sn: "+i.sn+(o?" part: "+o.index:"")+" of "+this.fragInfo(i,!1,o)+")"),this.hls.trigger(ot.FRAG_PARSED,{frag:i,part:o})}else this.warn("level.details undefined")},r.playlistLabel=function(){return this.playlistType===ue?"level":"track"},r.fragInfo=function(i,o,l){var h,v;return o===void 0&&(o=!0),this.playlistLabel()+" "+i.level+" ("+(l?"part":"frag")+":["+((h=o&&
95!l?i.startPTS:(l||i).start)!=null?h:NaN).toFixed(3)+"-"+((v=o&&!l?i.endPTS:(l||i).end)!=null?v:NaN).toFixed(3)+"]"+(l&&i.type==="main"?"INDEPENDENT="+(l.independent?"YES":"NO"):"")},r.treatAsGap=function(i,o){o&&o.fragmentError++,i.gap=!0,this.fragmentTracker.removeFragment(i),this.fragmentTracker.fragBuffered(i,!0)},r.resetTransmuxer=function(){var i;(i=this.transmuxer)==null||i.reset()},r.recoverWorkerError=function(i){i.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(),this.resetLoadingState())},d(p,[{key:"startPositionValue",get:function(){var i=this.nextLoadPosition,o=this.startPosition;return o===-1&&i?i:o}},{key:"bufferingEnabled",get:function(){return this.buffering}},{key:"inFlightFrag",get:function(){return{frag:this.fragCurrent,state:this.state}}},{key:"timelineOffset",get:function(){var i,o=this.config.timelineOffset;return o?((i=this.getLevelDetails())==null?void 0:i.appliedTimelineOffset)||o:0}},{key:"primaryPrefetch",get:function(){return this.config,!1}},{key:"state",get:function(){return this._state},set:function(i){var o=this._state;o!==i&&(this._state=i,this.log(o+"->"+i))}}])}(Rs),Sa=function(f){function p(i,o){var l;return(l=f.call(this,"gap-controller",i.logger)||this).hls=void 0,l.fragmentTracker=void 0,l.media=null,l.mediaSource=void 0,l.nudgeRetry=0,l.stallReported=!1,l.stalled=null,l.moved=!1,l.seeking=!1,l.buffered={},l.lastCurrentTime=0,l.ended=0,l.waiting=0,l.onMediaPlaying=function(){l.ended=0,l.waiting=0},l.onMediaWaiting=function(){var h;(h=l.media)!=null&&h.seeking||(l.waiting=self.performance.now(),l.tick())},l.onMediaEnded=function(){var h;l.hls&&(l.ended=((h=l.media)==null?void 0:h.currentTime)||1,l.hls.trigger(ot.MEDIA_ENDED,{stalled:!1}))},l.hls=i,l.fragmentTracker=o,l.registerListeners(),l}ct(p,f);var r=p.prototype;return r.registerListeners=function(){var i=this.hls;i&&(i.on(ot.MEDIA_ATTACHED,this.onMediaAttached,this),i.on(ot.MEDIA_DETACHING,this.onMediaDetaching,this),i.on(ot.BUFFER_APPENDED,this.onBufferAppended,this))},r.unregisterListeners=function(){var i=this.hls;i&&(i.off(ot.MEDIA_ATTACHED,this.onMediaAttached,this),i.off(ot.MEDIA_DETACHING,this.onMediaDetaching,this),i.off(ot.BUFFER_APPENDED,this.onBufferAppended,this))},r.destroy=function(){f.prototype.destroy.call(this),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0},r.onMediaAttached=function(i,o){this.setInterval(100),this.mediaSource=o.mediaSource;var l=this.media=o.media;bo(l,"playing",this.onMediaPlaying),bo(l,"waiting",this.onMediaWaiting),bo(l,"ended",this.onMediaEnded)},r.onMediaDetaching=function(i,o){this.clearInterval();var l=this.media;l&&(fo(l,"playing",this.onMediaPlaying),fo(l,"waiting",this.onMediaWaiting),fo(l,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0},r.onBufferAppended=function(i,o){this.buffered=o.timeRanges},r.tick=function(){var i;if((i=this.media)!=null&&i.readyState&&this.hasBuffered){var o=this.media.currentTime;this.poll(o,this.lastCurrentTime),this.lastCurrentTime=o}},r.poll=function(i,o){var l,h,v=(l=this.hls)==null?void 0:l.config;if(v){var C=this.media;if(C){var T=C.seeking,w=this.seeking&&!T,M=!this.seeking&&T,F=C.paused&&!T||C.ended||C.playbackRate===0;if(this.seeking=T,i!==o)return o&&(this.ended=0),this.moved=!0,T||(this.nudgeRetry=0,v.nudgeOnVideoHole&&!F&&i>o&&this.nudgeOnVideoHole(i,o)),void(this.waiting===0&&this.stallResolved(i));if(M||w)w&&this.stallResolved(i);else{if(F)return this.nudgeRetry=0,this.stallResolved(i),void(!this.ended&&C.ended&&this.hls&&(this.ended=i||1,this.hls.trigger(ot.MEDIA_ENDED,{stalled:!1})));if(wt.getBuffered(C).length){var B=wt.bufferInfo(C,i,0),U=B.nextStart||0,tt=this.fragmentTracker;if(T&&tt&&this.hls){var et=Fs(this.hls.inFlightFragments,i),st=B.len>2,ft=!U||et||U-i>2&&!tt.getPartialFragment(i);if(st||ft)return;this.moved=!1}var kt=(h=this.hls)==null?void 0:h.latestLevelDetails;if(!this.moved&&this.stalled!==null&&tt){if(!(B.len>0||U))return;
vendor: 6,149 bytes, line 95
95var At=Math.max(U,B.start||0)-i,Yt=kt!=null&&kt.live?2*kt.targetduration:2,Bt=Vo(i,tt);if(At>0&&(At<=Yt||Bt))return void(C.paused||this._trySkipBufferHole(Bt))}var $t=v.detectStallWithCurrentTimeMs,oe=self.performance.now(),be=this.waiting,Gt=this.stalled;if(Gt===null){if(!(be>0&&oe-be<$t))return void(this.stalled=oe);Gt=this.stalled=be}var se=oe-Gt;if(!T&&(se>=$t||be)&&this.hls){var he;if(((he=this.mediaSource)==null?void 0:he.readyState)==="ended"&&(kt==null||!kt.live)&&Math.abs(i-((kt==null?void 0:kt.edge)||0))<1)return this.ended?void 0:(this.ended=i||1,void this.hls.trigger(ot.MEDIA_ENDED,{stalled:!0}));if(this._reportStall(B),!this.media||!this.hls)return}var di=wt.bufferInfo(C,i,v.maxBufferHole);this._tryFixBufferStall(di,se,i)}else this.nudgeRetry=0}}}},r.stallResolved=function(i){var o=this.stalled;if(o&&this.hls&&(this.stalled=null,this.stallReported)){var l=self.performance.now()-o;this.log("playback not stuck anymore @"+i+", after "+Math.round(l)+"ms"),this.stallReported=!1,this.waiting=0,this.hls.trigger(ot.STALL_RESOLVED,{})}},r.nudgeOnVideoHole=function(i,o){var l,h=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(l=this.buffered.audio)!=null&&l.length&&h&&h.length>1&&i>h.end(0)){var v=wt.bufferedInfo(wt.timeRangesToArray(this.buffered.audio),i,0);if(v.len>1&&o>=v.start){var C=wt.timeRangesToArray(h),T=wt.bufferedInfo(C,o,0).bufferedIndex;if(T>-1&&T<C.length-1){var w=wt.bufferedInfo(C,i,0).bufferedIndex,M=C[T].end,F=C[T+1].start;if((w===-1||w>T)&&F-M<1&&i-M<2){var B=new Error("nudging playhead to flush pipeline after video hole. currentTime: "+i+" hole: "+M+" -> "+F+" buffered index: "+w);this.warn(B.message),this.media.currentTime+=1e-6;var U=Vo(i,this.fragmentTracker);U&&"fragment"in U?U=U.fragment:U||(U=void 0);var tt=wt.bufferInfo(this.media,i,0);this.hls.trigger(ot.ERROR,{type:me.MEDIA_ERROR,details:mt.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:B,reason:B.message,frag:U,buffer:tt.len,bufferInfo:tt})}}}}},r._tryFixBufferStall=function(i,o,l){var h,v,C=this.fragmentTracker,T=this.media,w=(h=this.hls)==null?void 0:h.config;if(T&&C&&w){var M=(v=this.hls)==null?void 0:v.latestLevelDetails,F=Vo(l,C);if((F||M!=null&&M.live&&l<M.fragmentStart)&&(this._trySkipBufferHole(F)||!this.media))return;var B=i.buffered,U=this.adjacentTraversal(i,l);(B&&B.length>1&&i.len>w.maxBufferHole||i.nextStart&&(i.nextStart-l<w.maxBufferHole||U))&&(o>1e3*w.highBufferWatchdogPeriod||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(i))}},r.adjacentTraversal=function(i,o){var l=this.fragmentTracker,h=i.nextStart;if(l&&h){var v=l.getFragAtPos(o,ue),C=l.getFragAtPos(h,ue);if(v&&C)return C.sn-v.sn<2}return!1},r._reportStall=function(i){var o=this.hls,l=this.media,h=this.stallReported,v=this.stalled;if(!h&&v!==null&&l&&o){this.stallReported=!0;var C=new Error("Playback stalling at @"+l.currentTime+" due to low buffer ("+Ce(i)+")");this.warn(C.message),o.trigger(ot.ERROR,{type:me.MEDIA_ERROR,details:mt.BUFFER_STALLED_ERROR,fatal:!1,error:C,buffer:i.len,bufferInfo:i,stalled:{start:v}})}},r._trySkipBufferHole=function(i){var o,l=this.fragmentTracker,h=this.media,v=(o=this.hls)==null?void 0:o.config;if(!h||!l||!v)return 0;var C=h.currentTime,T=wt.bufferInfo(h,C,0),w=C<T.start?T.start:T.nextStart;if(w&&this.hls){var M=T.len<=v.maxBufferHole,F=T.len>0&&T.len<1&&h.readyState<3,B=w-C;if(B>0&&(M||F)){if(B>v.maxBufferHole){var U=!1;if(C===0){var tt=l.getAppendedFrag(0,ue);tt&&w<tt.end&&(U=!0)}if(!U&&i){var et;if((et=this.hls.loadLevelObj)==null||!et.details||Fs(this.hls.inFlightFragments,w))return 0;for(var st=!1,ft=i.end;ft<w;){var kt=Vo(ft,l);if(!kt){st=!0;break}ft+=kt.duration}if(st)return 0}}var At=Math.max(w+.05,C+.1);if(this.warn("skipping hole, adjusting currentTime from "+C+" to "+At),this.moved=!0,h.currentTime=At,i==null||!i.gap){var Yt=new Error("fragment loaded with buffer holes, seeking from "+C+" to "+At),Bt={type:me.MEDIA_ERROR,details:mt.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:Yt,reason:Yt.message,buffer:T.len,bufferInfo:T};i&&("fragment"in i?Bt.part=i:Bt.frag=i),this.hls.trigger(ot.ERROR,Bt)}return At}}return 0},r._tryNudgeBuffer=function(i){var o=this.hls,l=this.media,h=this.nudgeRetry,v=o==null?void 0:o.config;if(!l||!v)return 0;var C=l.currentTime;if(this.nudgeRetry++,h<v.nudgeMaxRetry){var T=C+(h+1)*v.nudgeOffset,w=new Error("Nudging 'currentTime' from "+C+" to "+T);this.warn(w.message),l.currentTime=T,o.trigger(ot.ERROR,{type:me.MEDIA_ERROR,details:mt.BUFFER_NUDGE_ON_STALL,error:w,fatal:!1,buffer:i.len,bufferInfo:i})}else{var M=new Error("Playhead still not moving while enough data buffered @"+C+" after "+v.nudgeMaxRetry+" nudges");this.error(M.message),o.trigger(ot.ERROR,{type:me.MEDIA_ERROR,details:mt.BUFFER_STALLED_ERROR,error:M,fatal:!0,buffer:i.len,bufferInfo:i})}},d(p,[{key:"hasBuffered",get:function(){return Object.keys(this.buffered).length>0}}])}(Rs);function Fs(f,p){var r=Ns(f.main);if(r&&r.start<=p)return r;var i=Ns(f.audio);return i&&i.start<=p?i:null}function Ns(f){if(!f)return null;switch(f.state){case ri.IDLE:case ri.STOPPED:case ri.ENDED:case ri.ERROR:return null}return f.frag}function Vo(f,p){return p.getAppendedFrag(f,ue)||p.getPartialFragment(f)}function Ea(f,p){var r;try{r=new Event("addtrack")}catch{(r=document.createEvent("Event")).initEvent("addtrack",!1,!1)}r.track=f,p.dispatchEvent(r)}function Ta(f,p,r,i){var o=f.mode;if(o==="disabled"&&(f.mode="hidden"),f.cues&&f.cues.length>0)for(var l=function(v,C,T){var w=[],M=function(tt,et){if(et<=tt[0].startTime)return 0;var st=tt.length-1;if(et>tt[st].endTime)return-1;for(var ft,kt=0,At=st;kt<=At;)if(et<tt[ft=Math.floor((At+kt)/2)].startTime)At=ft-1;else{if(!(et>tt[ft].startTime&&kt<st))return ft;kt=ft+1}return tt[kt].startTime-et<et-tt[At].startTime?kt:At}(v,C);if(M>-1)for(var F=M,B=v.length;F<B;F++){var U=v[F];if(U.startTime>=C&&U.endTime<=T)w.push(U);else if(U.startTime>T)return w}return w}(f.cues,p,r),h=0;h<l.length;h++)i&&!i(l[h])||f.removeCue(l[h]);o==="disabled"&&(f.mode=o)}function ls(){if(typeof self<"u")return self.VTTCue||self.TextTrackCue}function $s(f,p,r,i,o){var l=new f(p,r,"");try{l.value=i,o&&(l.type=o)}
95catch{l=new f(p,r,Ce(o?q({type:o},i):i))}return l}var Wo=function(){var f=ls();try{f&&new f(0,Number.POSITIVE_INFINITY,"")}catch{return Number.MAX_VALUE}return Number.POSITIVE_INFINITY}(),wa=function(){function f(r){var i=this;this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.assetCue=void 0,this.onEventCueEnter=function(){i.hls&&i.hls.trigger(ot.EVENT_CUE_ENTER,{})},this.hls=r,this._registerListeners()}var p=f.prototype;return p.destroy=function(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null},p._registerListeners=function(){var r=this.hls;r&&(r.on(ot.MEDIA_ATTACHING,this.onMediaAttaching,this),r.on(ot.MEDIA_ATTACHED,this.onMediaAttached,this),r.on(ot.MEDIA_DETACHING,this.onMediaDetaching,this),r.on(ot.MANIFEST_LOADING,this.onManifestLoading,this),r.on(ot.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),r.on(ot.BUFFER_FLUSHING,this.onBufferFlushing,this),r.on(ot.LEVEL_UPDATED,this.onLevelUpdated,this),r.on(ot.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))},p._unregisterListeners=function(){var r=this.hls;r&&(r.off(ot.MEDIA_ATTACHING,this.onMediaAttaching,this),r.off(ot.MEDIA_ATTACHED,this.onMediaAttached,this),r.off(ot.MEDIA_DETACHING,this.onMediaDetaching,this),r.off(ot.MANIFEST_LOADING,this.onManifestLoading,this),r.off(ot.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),r.off(ot.BUFFER_FLUSHING,this.onBufferFlushing,this),r.off(ot.LEVEL_UPDATED,this.onLevelUpdated,this),r.off(ot.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))},p.onMediaAttaching=function(r,i){var o;this.media=i.media,((o=i.overrides)==null?void 0:o.cueRemoval)===!1&&(this.removeCues=!1)},p.onMediaAttached=function(){var r,i=(r=this.hls)==null?void 0:r.latestLevelDetails;i&&this.updateDateRangeCues(i)},p.onMediaDetaching=function(r,i){this.media=null,i.transferMedia||(this.id3Track&&(this.removeCues&&function(o,l){var h=o.mode;if(h==="disabled"&&(o.mode="hidden"),o.cues)for(var v=o.cues.length;v--;)l&&o.cues[v].removeEventListener("enter",l),o.removeCue(o.cues[v]);h==="disabled"&&(o.mode=h)}(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})},p.onManifestLoading=function(){this.dateRangeCuesAppended={}},p.createTrack=function(r){var i=this.getID3Track(r.textTracks);return i.mode="hidden",i},p.getID3Track=function(r){if(this.media){for(var i=0;i<r.length;i++){var o=r[i];if(o.kind==="metadata"&&o.label==="id3")return Ea(o,this.media),o}return this.media.addTextTrack("metadata","id3")}},p.onFragParsingMetadata=function(r,i){if(this.media&&this.hls){var o=this.hls.config,l=o.enableEmsgMetadataCues,h=o.enableID3MetadataCues;if(l||h){var v=i.samples;this.id3Track||(this.id3Track=this.createTrack(this.media));var C=ls();if(C)for(var T=0;T<v.length;T++){var w=v[T].type;if((w!==dr.emsg||l)&&h){var M=xr(v[T].data),F=v[T].pts,B=F+v[T].duration;B>Wo&&(B=Wo),B-F<=0&&(B=F+.25);for(var U=0;U<M.length;U++){var tt=M[U];if(!no(tt)){this.updateId3CueEnds(F,w);var et=$s(C,F,B,tt,w);et&&this.id3Track.addCue(et)}}}}}}},p.updateId3CueEnds=function(r,i){var o,l=(o=this.id3Track)==null?void 0:o.cues;if(l)for(var h=l.length;h--;){var v=l[h];v.type===i&&v.startTime<r&&v.endTime===Wo&&(v.endTime=r)}},p.onBufferFlushing=function(r,i){var o=i.startOffset,l=i.endOffset,h=i.type,v=this.id3Track,C=this.hls;if(C){var T=C.config,w=T.enableEmsgMetadataCues,M=T.enableID3MetadataCues;v&&(w||M)&&Ta(v,o,l,h==="audio"?function(F){return F.type===dr.audioId3&&M}:h==="video"?function(F){return F.type===dr.emsg&&w}:function(F){return F.type===dr.audioId3&&M||F.type===dr.emsg&&w})}},p.onLevelUpdated=function(r,i){var o=i.details;this.updateDateRangeCues(o,!0)},p.onLevelPtsUpdated=function(r,i){Math.abs(i.drift)>.01&&this.updateDateRangeCues(i.details)},p.updateDateRangeCues=function(r,i){var o=this;if(this.hls&&this.media){var l=this.hls.config;l.assetPlayerId,l.timelineOffset;var h=l.enableDateRangeMetadataCues;if(l.interstitialsController,h){var v=ls();if(r.hasProgramDateTime){var C,T=this.id3Track,w=r.dateRanges,M=Object.keys(w),F=this.dateRangeCuesAppended;if(T&&i)if((C=T.cues)!=null&&C.length)for(var B=Object.keys(F).filter(function(kt){return!M.includes(kt)}),U=function(){var kt,At=B[tt],Yt=(kt=F[At])==null?void 0:kt.cues;delete F[At],Yt&&Object.keys(Yt).forEach(function(Bt){var $t=Yt[Bt];if($t){$t.removeEventListener("enter",o.onEventCueEnter);try{T.removeCue($t)}catch{}}})},tt=B.length;tt--;)U();else F=this.dateRangeCuesAppended={};var et=r.fragments[r.fragments.length-1];if(M.length!==0&&Ot(et==null?void 0:et.programDateTime)){this.id3Track||(this.id3Track=this.createTrack(this.media));for(var st=function(){var kt=M[ft],At=w[kt],Yt=At.startTime,Bt=F[kt],$t=(Bt==null?void 0:Bt.cues)||{}
95,oe=(Bt==null?void 0:Bt.durationKnown)||!1,be=Wo,Gt=At.duration;if(At.endDate&&Gt!==null)be=Yt+Gt,oe=!0;else if(At.endOnNext&&!oe){var se=M.reduce(function(Xi,Li){if(Li!==At.id){var Ki=w[Li];if(Ki.class===At.class&&Ki.startDate>At.startDate&&(!Xi||At.startDate<Xi.startDate))return Ki}return Xi},null);se&&(be=se.startTime,oe=!0)}for(var he,di=Object.keys(At.attr),Je=0;Je<di.length;Je++){var He=di[Je];if((he=He)!=="ID"&&he!=="CLASS"&&he!=="CUE"&&he!=="START-DATE"&&he!=="DURATION"&&he!=="END-DATE"&&he!=="END-ON-NEXT"){var Ve=$t[He];if(Ve)!oe||Bt!=null&&Bt.durationKnown?Math.abs(Ve.startTime-Yt)>.01&&(Ve.startTime=Yt,Ve.endTime=be):Ve.endTime=be;else if(v){var Ye=At.attr[He];$e(He)&&(Ye=wr(Ye));var gi=$s(v,Yt,be,{key:He,data:Ye},dr.dateRange);gi&&(gi.id=kt,o.id3Track.addCue(gi),$t[He]=gi)}}}F[kt]={cues:$t,dateRange:At,durationKnown:oe}},ft=0;ft<M.length;ft++)st()}}}}},f}(),ka=function(){function f(r){var i=this;this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=function(){var o=i.media,l=i.levelDetails;if(o&&l){i.currentTime=o.currentTime;var h=i.computeLatency();if(h!==null){i._latency=h;var v=i.config,C=v.lowLatencyMode,T=v.maxLiveSyncPlaybackRate;if(C&&T!==1&&l.live){var w=i.targetLatency;if(w!==null){var M=h-w;if(M<Math.min(i.maxLatency,w+l.targetduration)&&M>.05&&i.forwardBufferLength>1){var F=Math.min(2,Math.max(1,T)),B=Math.round(2/(1+Math.exp(-.75*M-i.edgeStalled))*20)/20,U=Math.min(F,Math.max(1,B));i.changeMediaPlaybackRate(o,U)}else o.playbackRate!==1&&o.playbackRate!==0&&i.changeMediaPlaybackRate(o,1)}}}}},this.hls=r,this.config=r.config,this.registerListeners()}var p=f.prototype;return p.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null},p.registerListeners=function(){var r=this.hls;r&&(r.on(ot.MEDIA_ATTACHED,this.onMediaAttached,this),r.on(ot.MEDIA_DETACHING,this.onMediaDetaching,this),r.on(ot.MANIFEST_LOADING,this.onManifestLoading,this),r.on(ot.LEVEL_UPDATED,this.onLevelUpdated,this),r.on(ot.ERROR,this.onError,this))},p.unregisterListeners=function(){var r=this.hls;r&&(r.off(ot.MEDIA_ATTACHED,this.onMediaAttached,this),r.off(ot.MEDIA_DETACHING,this.onMediaDetaching,this),r.off(ot.MANIFEST_LOADING,this.onManifestLoading,this),r.off(ot.LEVEL_UPDATED,this.onLevelUpdated,this),r.off(ot.ERROR,this.onError,this))},p.onMediaAttached=function(r,i){this.media=i.media,this.media.addEventListener("timeupdate",this.onTimeupdate)},p.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)},p.onManifestLoading=function(){this._latency=null,this.stallCount=0},p.onLevelUpdated=function(r,i){var o=i.details;o.advanced&&this.onTimeupdate(),!o.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)},p.onError=function(r,i){var o;i.details===mt.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&(o=this.levelDetails)!=null&&o.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))},p.changeMediaPlaybackRate=function(r,i){var o,l;r.playbackRate!==i&&((o=this.hls)==null||o.logger.debug("[latency-controller]: latency="+this.latency.toFixed(3)+", targetLatency="+((l=this.targetLatency)==null?void 0:l.toFixed(3))+", forwardBufferLength="+this.forwardBufferLength.toFixed(3)+": adjusting playback rate from "+r.playbackRate+" to "+i),r.playbackRate=i)},p.estimateLiveEdge=function(){var r=this.levelDetails;return r===null?null:r.edge+r.age},p.computeLatency=function(){var r=this.estimateLiveEdge();return r===null?null:r-this.currentTime},d(f,[{key:"levelDetails",get:function(){var r;return((r=this.hls)==null?void 0:r.latestLevelDetails)||null}},{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var r=this.config;if(r.liveMaxLatencyDuration!==void 0)return r.liveMaxLatencyDuration;var i=this.levelDetails;return i?r.liveMaxLatencyDurationCount*i.targetduration:0}},{key:"targetLatency",get:function(){var r=this.levelDetails;if(r===null||this.hls===null)return null;var i=r.holdBack,o=r.partHoldBack,l=r.targetduration,h=this.config,v=h.liveSyncDuration,C=h.liveSyncDurationCount,T=h.lowLatencyMode,w=this.hls.userConfig,M=T&&o||i;(this._targetLatencyUpdated||w.liveSyncDuration||w.liveSyncDurationCount||M===0)&&(M=v!==void 0?v:C*l);var F=l;return M+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,F)},set:function(r){this.stallCount=0,this.config.liveSyncDuration=r,this._targetLatencyUpdated=!0}},{key:"liveSyncPosition",get:function(){var r=this.estimateLiveEdge(),i=this.targetLatency;if(r===null||i===null)return null;var o=this.levelDetails;if(o===null)return null;var l=o.edge,h=r-i-this.edgeStalled,v=l-o.totalduration,C=l-(this.config.lowLatencyMode&&o.partTarget||o.targetduration);return Math.min(Math.max(v,h),C)}},{key:"drift",get:function(){var r=this.levelDetails;return r===null?1:r.drift}},{key:"edgeStalled",get:function(){var r=this.levelDetails;if(r===null)return 0;var i=3*(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.max(r.age-i,0)}},{key:"forwardBufferLength",get:function(){var r=this.media,i=this.levelDetails;if(!r||!i)return 0;var o=r.buffered.length;return(o?r.buffered.end(o-1):i.edge)-this.currentTime}}])}(),xa=function(f){function p(i,o){var l;return(l=f.call(this,o,i.logger)||this).hls=void 0,l.canLoad=!1,l.timer=-1,l.hls=i,l}ct(p,f);var r=p.prototype;return r.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},r.clearTimer=function(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)},r.startLoad=function(){this.canLoad=!0,this.loadPlaylist()},r.stopLoad=function(){this.canLoad=!1,this.clearTimer()},r.switchParams=function(i,o,l){var h=o==null?void 0:o.renditionReports;if(h){for(var v=-1,C=0;C<h.length;C++){var T=h[C],w=void 0;try{w=new self.URL(T.URI,o.url).href}catch(et){this.warn("Could not construct new URL for Rendition Report: "+et),w=T.URI||""}if(w===i){v=C;break}w===i.substring(0,w.length)&&(v=C)}if(v!==-1){var M=h[v],F=parseInt(M["LAST-MSN"])||o.lastPartSn,B=parseInt(M["LAST-PART"])||o.lastPartIndex;if(this.hls.config.lowLatencyMode){var U=Math.min(o.age-o.partTarget,o.targetduration);B>=0&&U>o.partTarget&&(B+=1)}var tt=l&&dt(l);return new X(F,B>=0?B:void 0,tt)}}},r.loadPlaylist=function(i){this.clearTimer()},r.loadingPlaylist=function(i,o){this.clearTimer()},r.shouldLoadPlaylist=function(i){return this.canLoad&&!!i&&!!i.url&&(!i.details||i.details.live)},r.getUrlWithDirectives=function(i,o){if(o)try{return o.addDirectives(i)}catch(l){this.warn("Could not construct new URL with HLS Delivery Directives: "+l)}return i},r.playlistLoaded=function(i,o,l){var h=o.details,v=o.stats,C=self.performance.now(),T=v.loading.first?Math.max(0,C-v.loading.first):0;h.advancedDateTime=Date.now()-T;var w=this.hls.config.timelineOffset;
95if(w!==h.appliedTimelineOffset){var M=Math.max(w||0,0);h.appliedTimelineOffset=M,h.fragments.forEach(function(Ve){Ve.setStart(Ve.playlistOffset+M)})}if(h.live||l!=null&&l.live){var F="levelInfo"in o?o.levelInfo:o.track;if(h.reloaded(l),l&&h.fragments.length>0){N(l,h,this);var B=h.playlistParsingError;if(B){this.warn(B);var U=this.hls;if(!U.config.ignorePlaylistParsingErrors){var tt,et=o.networkDetails;return void U.trigger(ot.ERROR,{type:me.NETWORK_ERROR,details:mt.LEVEL_PARSING_ERROR,fatal:!1,url:h.url,error:B,reason:B.message,level:o.level||void 0,parent:(tt=h.fragments[0])==null?void 0:tt.type,networkDetails:et,stats:v})}h.playlistParsingError=null}}h.requestScheduled===-1&&(h.requestScheduled=v.loading.start);var st,ft=this.hls.mainForwardBufferInfo,kt=ft?ft.end-ft.len:0,At=V(h,1e3*(h.edge-kt));if(h.requestScheduled+At<C?h.requestScheduled=C:h.requestScheduled+=At,this.log("live playlist "+i+" "+(h.advanced?"REFRESHED "+h.lastPartSn+"-"+h.lastPartIndex:h.updated?"UPDATED":"MISSED")),!this.canLoad||!h.live)return;var Yt=void 0,Bt=void 0;if(h.canBlockReload&&h.endSN&&h.advanced){var $t=this.hls.config.lowLatencyMode,oe=h.lastPartSn,be=h.endSN,Gt=h.lastPartIndex,se=oe===be;Gt!==-1?se?(Yt=be+1,Bt=$t?0:Gt):(Yt=oe,Bt=$t?Gt+1:h.maxPartIndex):Yt=be+1;var he=h.age,di=he+h.ageHeader,Je=Math.min(di-h.partTarget,1.5*h.targetduration);if(Je>0){if(di>3*h.targetduration)this.log("Playlist last advanced "+he.toFixed(2)+"s ago. Omitting segment and part directives."),Yt=void 0,Bt=void 0;else if(l!=null&&l.tuneInGoal&&di-h.partTarget>l.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+l.tuneInGoal+" to: "+Je+" with playlist age: "+h.age),Je=0;else{var He=Math.floor(Je/h.targetduration);Yt+=He,Bt!==void 0&&(Bt+=Math.round(Je%h.targetduration/h.partTarget)),this.log("CDN Tune-in age: "+h.ageHeader+"s last advanced "+he.toFixed(2)+"s goal: "+Je+" skip sn "+He+" to part "+Bt)}h.tuneInGoal=Je}if(st=this.getDeliveryDirectives(h,o.deliveryDirectives,Yt,Bt),$t||!se)return h.requestScheduled=C,void this.loadingPlaylist(F,st)}else(h.canBlockReload||h.canSkipUntil)&&(st=this.getDeliveryDirectives(h,o.deliveryDirectives,Yt,Bt));st&&Yt!==void 0&&h.canBlockReload&&(h.requestScheduled=v.loading.first+Math.max(At-2*T,At/2)),this.scheduleLoading(F,st,h)}else this.clearTimer()},r.scheduleLoading=function(i,o,l){var h=this,v=l||i.details;if(v){var C=self.performance.now(),T=v.requestScheduled;if(C>=T)this.loadingPlaylist(i,o);else{var w=T-C;this.log("reload live playlist "+(i.name||i.bitrate+"bps")+" in "+Math.round(w)+" ms"),this.clearTimer(),this.timer=self.setTimeout(function(){return h.loadingPlaylist(i,o)},w)}}else this.loadingPlaylist(i,o)},r.getDeliveryDirectives=function(i,o,l,h){var v=dt(i);return o!=null&&o.skip&&i.deltaUpdateFailed&&(l=o.msn,h=o.part,v=xi),new X(l,h,v)},r.checkRetry=function(i){var o=this,l=i.details,h=Rn(i),v=i.errorAction,C=v||{},T=C.action,w=C.retryCount,M=w===void 0?0:w,F=C.retryConfig,B=!!v&&!!F&&(T===Ci||!v.resolved&&T===Me);if(B){var U;if(M>=F.maxNumRetry)return!1;if(h&&(U=i.context)!=null&&U.deliveryDirectives)this.warn("Retrying playlist loading "+(M+1)+"/"+F.maxNumRetry+' after "'+l+'" without delivery-directives'),this.loadPlaylist();else{var tt=Mt(F,M);this.clearTimer(),this.timer=self.setTimeout(function(){return o.loadPlaylist()},tt),this.warn("Retrying playlist loading "+(M+1)+"/"+F.maxNumRetry+' after "'+l+'" in '+tt+"ms")}i.levelRetry=!0,v.resolved=!0}return B},p}(ii),Aa=function(f){function p(i,o){var l;return(l=f.call(this,i,"level-controller")||this)._levels=[],l._firstLevel=-1,l._maxAutoLevel=-1,l._startLevel=void 0,l.currentLevel=null,l.currentLevelIndex=-1,l.manualLevelIndex=-1,l.steering=void 0,l.onParsedComplete=void 0,l.steering=o,l._registerListeners(),l}ct(p,f);var r=p.prototype;return r._registerListeners=function(){var i=this.hls;i.on(ot.MANIFEST_LOADING,this.onManifestLoading,this),i.on(ot.MANIFEST_LOADED,this.onManifestLoaded,this),i.on(ot.LEVEL_LOADED,this.onLevelLoaded,this),i.on(ot.LEVELS_UPDATED,this.onLevelsUpdated,this),i.on(ot.FRAG_BUFFERED,this.onFragBuffered,this),i.on(ot.ERROR,this.onError,this)},r._unregisterListeners=function(){var i=this.hls;i.off(ot.MANIFEST_LOADING,this.onManifestLoading,this),i.off(ot.MANIFEST_LOADED,this.onManifestLoaded,this),i.off(ot.LEVEL_LOADED,this.onLevelLoaded,this),i.off(ot.LEVELS_UPDATED,this.onLevelsUpdated,this),i.off(ot.FRAG_BUFFERED,this.onFragBuffered,this),i.off(ot.E
95RROR,this.onError,this)},r.destroy=function(){this._unregisterListeners(),this.steering=null,this.resetLevels(),f.prototype.destroy.call(this)},r.stopLoad=function(){this._levels.forEach(function(i){i.loadError=0,i.fragmentError=0}),f.prototype.stopLoad.call(this)},r.resetLevels=function(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1},r.onManifestLoading=function(i,o){this.resetLevels()},r.onManifestLoaded=function(i,o){var l=this,h=this.hls.config.preferManagedMediaSource,v=[],C={},T={},w=!1,M=!1,F=!1;o.levels.forEach(function(B){var U=B.attrs,tt=B.audioCodec,et=B.videoCodec;tt&&(B.audioCodec=tt=Pi(tt,h)||void 0),et&&(et=B.videoCodec=function(He){for(var Ve=He.split(","),Ye=0;Ye<Ve.length;Ye++){var gi=Ve[Ye].split(".");gi.length>2&&gi[0]==="avc1"&&(Ve[Ye]="avc1."+parseInt(gi[1]).toString(16)+("000"+parseInt(gi[2]).toString(16)).slice(-4))}return Ve.join(",")}(et));var st=B.width,ft=B.height,kt=B.unknownCodecs,At=(kt==null?void 0:kt.length)||0;if(w||(w=!(!st||!ft)),M||(M=!!et),F||(F=!!tt),At||tt&&!l.isAudioSupported(tt)||et&&!l.isVideoSupported(et))l.log('Some or all CODECS not supported "'+U.CODECS+'"');else{var Yt=U.CODECS,Bt=U["FRAME-RATE"],$t=U["HDCP-LEVEL"],oe=U["PATHWAY-ID"],be=U.RESOLUTION,Gt=U["VIDEO-RANGE"],se=(oe||".")+"-"+B.bitrate+"-"+be+"-"+Bt+"-"+Yt+"-"+Gt+"-"+$t;if(C[se])if(C[se].uri===B.url||B.attrs["PATHWAY-ID"])C[se].addGroupId("audio",U.AUDIO),C[se].addGroupId("text",U.SUBTITLES);else{var he=T[se]+=1;B.attrs["PATHWAY-ID"]=new Array(he+1).join(".");var di=l.createLevel(B);C[se]=di,v.push(di)}else{var Je=l.createLevel(B);C[se]=Je,T[se]=1,v.push(Je)}}}),this.filterAndSortMediaOptions(v,o,w,M,F)},r.createLevel=function(i){var o=new _t(i),l=i.supplemental;if(l!=null&&l.videoCodec&&!this.isVideoSupported(l.videoCodec)){var h=new Error('SUPPLEMENTAL-CODECS not supported "'+l.videoCodec+'"');this.log(h.message),o.supportedResult=Sn.getUnsupportedResult(h,[])}return o},r.isAudioSupported=function(i){return Ft(i,"audio",this.hls.config.preferManagedMediaSource)},r.isVideoSupported=function(i){return Ft(i,"video",this.hls.config.preferManagedMediaSource)},r.filterAndSortMediaOptions=function(i,o,l,h,v){var C,T=this,w=[],M=[],F=i,B=((C=o.stats)==null?void 0:C.parsing)||{};if((l||h)&&v&&(F=F.filter(function(Gt){var se,he=Gt.videoCodec,di=Gt.videoRange,Je=Gt.width,He=Gt.height;return(!!he||!(!Je||!He))&&!!(se=di)&&Hi.indexOf(se)>-1})),F.length===0)return Promise.resolve().then(function(){if(T.hls){var Gt="no level with compatible codecs found in manifest",se=Gt;o.levels.length&&(se="one or more CODECS in variant not supported: "+Ce(o.levels.map(function(di){return di.attrs.CODECS}).filter(function(di,Je,He){return He.indexOf(di)===Je})),T.warn(se),Gt+=" ("+se+")");var he=new Error(Gt);T.hls.trigger(ot.ERROR,{type:me.MEDIA_ERROR,details:mt.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:o.url,error:he,reason:se})}}),void(B.end=performance.now());o.audioTracks&&qs(w=o.audioTracks.filter(function(Gt){return!Gt.audioCodec||T.isAudioSupported(Gt.audioCodec)})),o.subtitles&&qs(M=o.subtitles);var U=F.slice(0);F.sort(function(Gt,se){if(Gt.attrs["HDCP-LEVEL"]!==se.attrs["HDCP-LEVEL"])return(Gt.attrs["HDCP-LEVEL"]||"")>(se.attrs["HDCP-LEVEL"]||"")?1:-1;if(l&&Gt.height!==se.height)return Gt.height-se.height;if(Gt.frameRate!==se.frameRate)return Gt.frameRate-se.frameRate;if(Gt.videoRange!==se.videoRange)return Hi.indexOf(Gt.videoRange)-Hi.indexOf(se.videoRange);if(Gt.videoCodec!==se.videoCodec){var he=oi(Gt.videoCodec),di=oi(se.videoCodec);if(he!==di)return di-he}if(Gt.uri===se.uri&&Gt.codecSet!==se.codecSet){var Je=Ge(Gt.codecSet),He=Ge(se.codecSet);if(Je!==He)return He-Je}return Gt.averageBitrate!==se.averageBitrate?Gt.averageBitrate-se.averageBitrate:0});var tt=U[0];if(this.steering&&(F=this.steering.filterParsedLevels(F)).length!==U.length){for(var et=0;et<U.length;et++)if(U[et].pathwayId===F[0].pathwayId){tt=U[et];break}}this._levels=F;for(var st=0;st<F.length;st++)if(F[st]===tt){var ft;this._firstLevel=st;var kt=tt.bitrate,At=this.hls.bandwidthEstimate;if(this.log("manifest loaded, "+F.length+" level(s) found, first bitrate: "+kt),((ft=this.hls.userConfig)==null?void 0:ft.abrEwmaDefaultEstimate)===void 0){var Yt=Math.min(kt,this.hls.config.abrEwmaDefaultEstimateMax);Yt>At&&At===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=Yt)}break}var Bt=v&&!h,$t=this.hls.config,oe=!(!$t.audioStreamController||!$t.audioTrackController),be={levels:F,audioTracks:w,subtitleTracks:M,sessionData:o.sessionData,sessionKeys:o.sessionKeys,firstLevel:this._firstLevel,stats:o.stats,audio:v,video:h,altAudio:oe&&!Bt&&w.some(function(Gt){return!!Gt.url})};B.end=performance.now(),this.hls.trigger(ot.MANIFEST_PARSED,be)},r.onError=function(i,o){!o.fatal&&o.context&&o.context.type===Ct&&o.context.level===this.level&&this.checkRetry(o)},r.onFragBuffered=function(i,o){var l=o.frag;if(l!==void 0&&l.type===ue){var h=l.elementaryStreams;if(!Object.keys(h).some(function(C){return!!h[C]}))return;var v=this._levels[l.level];v!=null&&v.loadError&&(this.log("Resetting level error count of "+v.loadError+" on frag buffered"),v.loadError=0)}},r.onLevelLoaded=function(i,o){var l,h,v=o.level,C=o.details,T=o.levelInfo;if(!T)return this.warn("Invalid level index "+v),void((h=o.deliveryDirectives)!=null&&h.skip&&(C.deltaUpdateFailed=!0));if(T===this.currentLevel||o.withoutMultiVariant){T.fragmentError===0&&(T.loadError=0);var w=T.details;w===o.details&&w.advanced&&(w=void 0),this.playlistLoaded(v,o,w)}else(l=o.deliveryDirectives)!=null&&l.skip&&(C.deltaUpdateFailed=!0)},r.loadPlaylist=function(i){f.prototype.loadPlaylist.call(this),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLo
95ading(this.currentLevel,i)},r.loadingPlaylist=function(i,o){f.prototype.loadingPlaylist.call(this,i,o);var l=this.getUrlWithDirectives(i.uri,o),h=this.currentLevelIndex,v=i.attrs["PATHWAY-ID"],C=i.details,T=C==null?void 0:C.age;this.log("Loading level index "+h+((o==null?void 0:o.msn)!==void 0?" at sn "+o.msn+" part "+o.part:"")+(v?" Pathway "+v:"")+(T&&C.live?" age "+T.toFixed(1)+(C.type&&" "+C.type||""):"")+" "+l),this.hls.trigger(ot.LEVEL_LOADING,{url:l,level:h,levelInfo:i,pathwayId:i.attrs["PATHWAY-ID"],id:0,deliveryDirectives:o||null})},r.removeLevel=function(i){var o,l=this;if(this._levels.length!==1){var h=this._levels.filter(function(C,T){return T!==i||(l.steering&&l.steering.removeLevel(C),C===l.currentLevel&&(l.currentLevel=null,l.currentLevelIndex=-1,C.details&&C.details.fragments.forEach(function(w){return w.level=-1})),!1)});Lt(h),this._levels=h,this.currentLevelIndex>-1&&(o=this.currentLevel)!=null&&o.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);var v=h.length-1;this._firstLevel=Math.min(this._firstLevel,v),this._startLevel&&(this._startLevel=Math.min(this._startLevel,v)),this.hls.trigger(ot.LEVELS_UPDATED,{levels:h})}},r.onLevelsUpdated=function(i,o){var l=o.levels;this._levels=l},r.checkMaxAutoUpdated=function(){var i=this.hls,o=i.autoLevelCapping,l=i.maxAutoLevel,h=i.maxHdcpLevel;this._maxAutoLevel!==l&&(this._maxAutoLevel=l,this.hls.trigger(ot.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:o,levels:this.levels,maxAutoLevel:l,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:h}))},d(p,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"loadLevelObj",get:function(){return this.currentLevel}},{key:"level",get:function(){return this.currentLevelIndex},set:function(i){var o=this._levels;if(o.length!==0){if(i<0||i>=o.length){var l=new Error("invalid level idx"),h=i<0;if(this.hls.trigger(ot.ERROR,{type:me.OTHER_ERROR,details:mt.LEVEL_SWITCH_ERROR,level:i,fatal:h,error:l,reason:l.message}),h)return;i=Math.min(i,o.length-1)}var v=this.currentLevelIndex,C=this.currentLevel,T=C?C.attrs["PATHWAY-ID"]:void 0,w=o[i],M=w.attrs["PATHWAY-ID"];if(this.currentLevelIndex=i,this.currentLevel=w,v!==i||!C||T!==M){this.log("Switching to level "+i+" ("+(w.height?w.height+"p ":"")+(w.videoRange?w.videoRange+" ":"")+(w.codecSet?w.codecSet+" ":"")+"@"+w.bitrate+")"+(M?" with Pathway "+M:"")+" from level "+v+(T?" with Pathway "+T:""));var F={level:i,attrs:w.attrs,details:w.details,bitrate:w.bitrate,averageBitrate:w.averageBitrate,maxBitrate:w.maxBitrate,realBitrate:w.realBitrate,width:w.width,height:w.height,codecSet:w.codecSet,audioCodec:w.audioCodec,videoCodec:w.videoCodec,audioGroups:w.audioGroups,subtitleGroups:w.subtitleGroups,loaded:w.loaded,loadError:w.loadError,fragmentError:w.fragmentError,name:w.name,id:w.id,uri:w.uri,url:w.url,urlId:0,audioGroupIds:w.audioGroupIds,textGroupIds:w.textGroupIds};this.hls.trigger(ot.LEVEL_SWITCHING,F);var B=w.details;if(!B||B.live){var U=this.switchParams(w.uri,C==null?void 0:C.details,B);this.loadPlaylist(U)}}}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(i){this.manualLevelIndex=i,this._startLevel===void 0&&(this._startLevel=i),i!==-1&&(this.level=i)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(i){this._firstLevel=i}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var i=this.hls.config.startLevel;return i!==void 0?i:this.hls.firstAutoLevel}return this._startLevel},set:function(i){this._startLevel=i}},{key:"pathways",get:function(){return this.steering?this.steering.pathways():[]}},{key:"pathwayPriority",get:function(){return this.steering?this.steering.pathwayPriority:null},set:function(i){if(this.steering){var o=this.steering.pathways(),l=i.filter(function(h){return o.indexOf(h)!==-1});if(i.length<1)return void this.warn("pathwayPriority "+i+" should contain at least one pathway from list: "+o);this.steering.pathwayPriority=l}}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(i){this.level=i,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=i)}}])}(xa);function qs(f){var p={};f.forEach(function(r){var i=r.groupId||"";r.id=p[i]=p[i]||0,p[i]++})}var cs=[];function us(f,p,r){if(!((i=p.remuxResult).audio||i.video||i.text||i.id3||i.initSegment))return!1;var i,o=[],l=p.remuxResult,h=l.audio,v=l.video;return h&&Hs(o,h),v&&Hs(o,v),f.postMessage({event:"transmuxComplete",data:p,instanceNo:r},o),!0}
vendor: 4,531 bytes, line 95
95function Hs(f,p){p.data1&&f.push(p.data1.buffer),p.data2&&f.push(p.data2.buffer)}function js(f,p,r,i){p.reduce(function(o,l){return us(f,l,i)||o},!1)||f.postMessage({event:"transmuxComplete",data:p[0],instanceNo:i}),f.postMessage({event:"flush",data:r,instanceNo:i})}function Lo(f,p,r){self.postMessage({event:f,data:p,instanceNo:r})}s!==void 0&&s&&self.addEventListener("message",function(f){var p=f.data,r=p.instanceNo;if(r!==void 0){var i=cs[r];if(p.cmd==="reset"&&(delete cs[p.resetNo],i&&i.destroy(),p.cmd="init"),p.cmd==="init"){var o=JSON.parse(p.config),l=new ut;l.on(ot.FRAG_DECRYPTED,Lo),l.on(ot.ERROR,Lo);var h=pn(o.debug,p.id);return function(w,M){var F=function(U){w[U]=function(){var tt=Array.prototype.join.call(arguments," ");Lo("workerLog",{logType:U,message:tt},M)}};for(var B in w)F(B)}(h,r),cs[r]=new os(l,p.typeSupported,o,"",p.id,h),void Lo("init",null,r)}if(i)switch(p.cmd){case"configure":i.configure(p.config);break;case"demux":var v=i.push(p.data,p.decryptdata,p.chunkMeta,p.state);yo(v)?v.then(function(w){us(self,w,r)}).catch(function(w){Lo(ot.ERROR,{instanceNo:r,type:me.MEDIA_ERROR,details:mt.FRAG_PARSING_ERROR,chunkMeta:p.chunkMeta,fatal:!1,error:w,err:w,reason:"transmuxer-worker push error"},r)}):us(self,v,r);break;case"flush":var C=p.chunkMeta,T=i.flush(C);yo(T)?T.then(function(w){js(self,w,C,r)}).catch(function(w){Lo(ot.ERROR,{type:me.MEDIA_ERROR,details:mt.FRAG_PARSING_ERROR,chunkMeta:p.chunkMeta,fatal:!1,error:w,err:w,reason:"transmuxer-worker flush error"},r)}):js(self,T,C,r)}}});var No="1.6.16",Po={},Us=0,La=function(){function f(r,i,o,l){var h=this;this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Us++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=function(F){var B=F.data,U=h.hls;if(U&&B!=null&&B.event&&B.instanceNo===h.instanceNo)switch(B.event){case"init":var tt,et=(tt=h.workerContext)==null?void 0:tt.objectURL;et&&self.URL.revokeObjectURL(et);break;case"transmuxComplete":h.handleTransmuxComplete(B.data);break;case"flush":h.onFlush(B.data);break;case"workerLog":U.logger[B.data.logType]&&U.logger[B.data.logType](B.data.message);break;default:B.data=B.data||{},B.data.frag=h.frag,B.data.part=h.part,B.data.id=h.id,U.trigger(B.event,B.data)}},this.onWorkerError=function(F){if(h.hls){var B=new Error(F.message+"  ("+F.filename+":"+F.lineno+")");h.hls.config.enableWorker=!1,h.hls.logger.warn('Error in "'+h.id+'" Web Worker, fallback to inline'),h.hls.trigger(ot.ERROR,{type:me.OTHER_ERROR,details:mt.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:B})}};var v=r.config;this.hls=r,this.id=i,this.useWorker=!!v.enableWorker,this.onTransmuxComplete=o,this.onFlush=l;var C=function(F,B){(B=B||{}).frag=h.frag||void 0,F===ot.ERROR&&(B.parent=h.id,B.part=h.part,h.error=B.error),h.hls.trigger(F,B)};this.observer=new ut,this.observer.on(ot.FRAG_DECRYPTED,C),this.observer.on(ot.ERROR,C);var T=Ui(v.preferManagedMediaSource);if(this.useWorker&&typeof Worker<"u"){var w=this.hls.logger;v.workerPath;try{v.workerPath?(w.log("loading Web Worker "+v.workerPath+' for "'+i+'"'),this.workerContext=function(F){var B=Po[F];if(B)return B.clientCount++,B;var U=new self.URL(F,self.location.href).href,tt={worker:new self.Worker(U),scriptURL:U,clientCount:1};return Po[F]=tt,tt}(v.workerPath)):(w.log('injecting Web Worker for "'+i+'"'),this.workerContext=function(){var F=Po[No];if(F)return F.clientCount++,F;var B=new self.Blob(["var exports={};var module={exports:exports};function define(f){f()};define.amd=true;("+t.toString()+")(true);"],{type:"text/javascript"}),U=self.URL.createObjectURL(B),tt={worker:new self.Worker(U),objectURL:U,clientCount:1};return Po[No]=tt,tt}());var M=this.workerContext.worker;M.addEventListener("message",this.onWorkerMessage),M.addEventListener("error",this.onWorkerError),M.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:T,id:i,config:Ce(v)})}catch(F){w.warn('Error setting up "'+i+'" Web Worker, fallback to inline',F),this.terminateWorker(),this.error=null,this.transmuxer=new os(this.observer,T,v,"",i,r.logger)}}else this.transmuxer=new os(this.observer,T,v,"",i,r.logger)}var p=f.prototype;return p.reset=function(){if(this.frag=null,this.part=null,this.workerContext){var r=this.instanceNo;this.instanceNo=Us++;var i=this.hls.config,o=Ui(i.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:r,typeSupp
95orted:o,id:this.id,config:Ce(i)})}},p.terminateWorker=function(){if(this.workerContext){var r=this.workerContext.worker;this.workerContext=null,r.removeEventListener("message",this.onWorkerMessage),r.removeEventListener("error",this.onWorkerError),function(i){var o=Po[i||No];if(o&&o.clientCount--==1){var l=o.worker,h=o.objectURL;delete Po[i||No],h&&self.URL.revokeObjectURL(h),l.terminate()}}(this.hls.config.workerPath)}},p.destroy=function(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{var r=this.transmuxer;r&&(r.destroy(),this.transmuxer=null)}var i=this.observer;i&&i.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null},p.push=function(r,i,o,l,h,v,C,T,w,M){var F,B,U=this;w.transmuxing.start=self.performance.now();var tt=this.instanceNo,et=this.transmuxer,st=v?v.start:h.start,ft=h.decryptdata,kt=this.frag,At=!(kt&&h.cc===kt.cc),Yt=!(kt&&w.level===kt.level),Bt=kt?w.sn-kt.sn:-1,$t=this.part?w.part-this.part.index:-1,oe=Bt===0&&w.id>1&&w.id===(kt==null?void 0:kt.stats.chunkCount),be=!Yt&&(Bt===1||Bt===0&&($t===1||oe&&$t<=0)),Gt=self.performance.now();(Yt||Bt||h.stats.parsing.start===0)&&(h.stats.parsing.start=Gt),!v||!$t&&be||(v.stats.parsing.start=Gt);var se=!(kt&&((F=h.initSegment)==null?void 0:F.url)===((B=kt.initSegment)==null?void 0:B.url)),he=new ca(At,be,T,Yt,st,se);if(!be||At||se){this.hls.logger.log("[transmuxer-interface]: Starting new transmux session for "+h.type+" sn: "+w.sn+(w.part>-1?" part: "+w.part:"")+" "+(this.id===ue?"level":"track")+": "+w.level+" id: "+w.id+`
96        discontinuity: `+At+`
97        trackSwitch: `+Yt+`
98        contiguous: `+be+`
99        accurateTimeOffset: `+T+`
100        timeOffset: `+st+`
101        initSegmentChange: `+se);var di=new la(o,l,i,C,M);this.configureTransmuxer(di)}if(this.frag=h,this.part=v,this.workerContext)this.workerContext.worker.postMessage({instanceNo:tt,cmd:"demux",data:r,decryptdata:ft,chunkMeta:w,state:he},r instanceof ArrayBuffer?[r]:[]);else if(et){var Je=et.push(r,ft,w,he);yo(Je)?Je.then(function(He){U.handleTransmuxComplete(He)}).catch(function(He){U.transmuxerError(He,w,"transmuxer-interface push error")}):this.handleTransmuxComplete(Je)}},p.flush=function(r){var i=this;r.transmuxing.start=self.performance.now();var o=this.instanceNo,l=this.transmuxer;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:o,cmd:"flush",chunkMeta:r});else if(l){var h=l.flush(r);yo(h)?h.then(function(v){i.handleFlushResult(v,r)}).catch(function(v){i.transmuxerError(v,r,"transmuxer-interface flush error")}):this.handleFlushResult(h,r)}},p.transmuxerError=function(r,i,o){this.hls&&(this.error=r,this.hls.trigger(ot.ERROR,{type:me.MEDIA_ERROR,details:mt.FRAG_PARSING_ERROR,chunkMeta:i,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:r,err:r,reason:o}))},p.handleFlushResult=function(r,i){var o=this;r.forEach(function(l){o.handleTransmuxComplete(l)}),this.onFlush(i)},p.configureTransmuxer=function(r){var i=this.instanceNo,o=this.transmuxer;this.workerContext?this.workerContext.worker.postMessage({instanceNo:i,cmd:"configure",config:r}):o&&o.configure(r)},p.handleTransmuxComplete=function(r){r.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(r)},f}();function zs(){return self.SourceBuffer||self.WebKitSourceBuffer}function Vs(){if(!vn())return!1;var f=zs();return!f||f.prototype&&typeof f.prototype.appendBuffer=="function"&&typeof f.prototype.remove=="function"}var Pa=function(f){function p(i,o,l){var h;return(h=f.call(this,i,o,l,"stream-controller",ue)||this).audioCodecSwap=!1,h.level=-1,h._forceStartLoad=!1,h._hasEnoughToStart=!1,h.altAudio=0,h.audioOnly=!1,h.fragPlaying=null,h.fragLastKbps=0,h.couldBacktrack=!1,h.backtrackFragment=null,h.audioCodecSwitch=!1,h.videoBuffer=null,h.onMediaPlaying=function(){h.tick()},h.onMediaSeeked=function(){var v=h.media,C=v?v.currentTime:null;if(C!==null&&Ot(C)&&(h.log("Media seeked to "+C.toFixed(3)),h.getBufferedFrag(C))){var T=h.getFwdBufferInfoAtPos(v,C,ue,0);T!==null&&T.len!==0?h.tick():h.warn("Main forward buffer length at "+C+' on "seeked" event '+(T?T.len:"empty")+")")}},h.registerListeners(),h}ct(p,f);var r=p.prototype;return r.registerListeners=function(){f.prototype.registerListeners.call(this);var i=this.hls;i.on(ot.MANIFEST_PARSED,this.onManifestParsed,this),i.on(ot.LEVEL_LOADING,this.onLevelLoading,this),i.on(ot.LEVEL_LOADED,this.onLevelLoaded,this),i.on(ot.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),i.on(ot.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),i.on(ot.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),i.on(ot.BUFFER_CREATED,this.onBufferCreated,this),i.on(ot.BUFFER_FLUSHED,this.onBufferFlushed,this),i.on(ot.LEVELS_UPDATED,this.onLevelsUpdated,this),i.on(ot.FRAG_BUFFERED,this.onFragBuffered,this)},r.unregisterListeners=function(){f.prototype.unregisterListeners.call(this);var i=this.hls;i.off(ot.MANIFEST_PARSED,this.onManifestParsed,this),i.off(ot.LEVEL_LOADED,this.onLevelLoaded,this),i.off(ot.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),i.off(ot.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),i.off(ot.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),i.off(ot.BUFFER_CREATED,this.onBufferCreated,this),i.off(ot.BUFFER_FLUSHED,this.onBufferFlushed,this),i.off(ot.LEVELS_UPDATED,this.onLevelsUpdated,this),i.off(ot.FRAG_BUFFERED,this.onFragBuffered,this)},r.onHandlerDestroying=function(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),f.prototype.onHandlerDestroying.call(this)},r.startLoad=function(i,o){if(this.levels){var l=this.lastCurrentTime,h=this.hls;if(this.stopLoad(),this.setInterval(100),this.level=-1,!this.startFragRequested){var v=h.startLevel;v===-1&&(h.config.testBandwidth&&this.levels.length>1?(v=0,this.bitrateTest=!0):v=h.firstAutoLevel),h.nextLoadLevel=v,this.level=h.loadLevel,this._hasEnoughToStart=!!o}l>0&&i===-1&&!o&&(this.log("Override startPosition with lastCurrentTime @"+l.toFixed(3)),i=l),this.state=ri.IDLE,this.nextLoadPosition=this.lastCurrentTime=i+this.timelineOffset,this.startPosition=o?-1:i,this.tick()}else this._forceStartLoad=!0,this.state=ri.STOPPED},r.stopLoad=function(){this._forceStartLoad=!1,f.prototype.stopLoad.c
101all(this)},r.doTick=function(){switch(this.state){case ri.WAITING_LEVEL:var i=this.levels,o=this.level,l=i==null?void 0:i[o],h=l==null?void 0:l.details;if(h&&(!h.live||this.levelLastLoaded===l&&!this.waitForLive(l))){if(this.waitForCdnTuneIn(h))break;this.state=ri.IDLE;break}if(this.hls.nextLoadLevel!==this.level){this.state=ri.IDLE;break}break;case ri.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate()}this.state===ri.IDLE&&this.doTickIdle(),this.onTickEnd()},r.onTickEnd=function(){var i;f.prototype.onTickEnd.call(this),(i=this.media)!=null&&i.readyState&&this.media.seeking===!1&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()},r.doTickIdle=function(){var i=this.hls,o=this.levelLastLoaded,l=this.levels,h=this.media;if(o!==null&&(h||this.primaryPrefetch||!this.startFragRequested&&i.config.startFragPrefetch)&&(!this.altAudio||!this.audioOnly)){var v=this.buffering?i.nextLoadLevel:i.loadLevel;if(l!=null&&l[v]){var C=l[v],T=this.getMainFwdBufferInfo();if(T!==null){var w=this.getLevelDetails();if(w&&this._streamEnded(T,w)){var M={};return this.altAudio===2&&(M.type="video"),this.hls.trigger(ot.BUFFER_EOS,M),void(this.state=ri.ENDED)}if(this.buffering){i.loadLevel!==v&&i.manualLevel===-1&&this.log("Adapting to level "+v+" from level "+this.level),this.level=i.nextLoadLevel=v;var F=C.details;if(!F||this.state===ri.WAITING_LEVEL||this.waitForLive(C))return this.level=v,this.state=ri.WAITING_LEVEL,void(this.startFragRequested=!1);var B=T.len,U=this.getMaxBufferLength(C.maxBitrate);if(!(B>=U)){this.backtrackFragment&&this.backtrackFragment.start>T.end&&(this.backtrackFragment=null);var tt=this.backtrackFragment?this.backtrackFragment.start:T.end,et=this.getNextFragment(tt,F);if(this.couldBacktrack&&!this.fragPrevious&&et&&ti(et)&&this.fragmentTracker.getState(et)!==Bo){var st,ft=((st=this.backtrackFragment)!=null?st:et).sn-F.startSN,kt=F.fragments[ft-1];kt&&et.cc===kt.cc&&(et=kt,this.fragmentTracker.removeFragment(kt))}else this.backtrackFragment&&T.len&&(this.backtrackFragment=null);if(et&&this.isLoopLoading(et,tt)){if(!et.gap){var At=this.audioOnly&&!this.altAudio?Fn:qi,Yt=(At===qi?this.videoBuffer:this.mediaBuffer)||this.media;Yt&&this.afterBufferFlushed(Yt,At,ue)}et=this.getNextFragmentLoopLoading(et,F,T,ue,U)}et&&(this.exceedsMaxBuffer(T,U,et)||(!et.initSegment||et.initSegment.data||this.bitrateTest||(et=et.initSegment),this.loadFragment(et,C,tt)))}}}}}},r.loadFragment=function(i,o,l){var h=this.fragmentTracker.getState(i);h===As||h===_o?ti(i)?this.bitrateTest?(this.log("Fragment "+i.sn+" of level "+i.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(i,o)):f.prototype.loadFragment.call(this,i,o,l):this._loadInitSegment(i,o):this.clearTrackerIfNeeded(i)},r.getBufferedFrag=function(i){return this.fragmentTracker.getBufferedFrag(i,ue)},r.followingBufferedFrag=function(i){return i?this.getBufferedFrag(i.end+.5):null},r.immediateLevelSwitch=function(){var i;this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY),this.altAudio!==0&&(((i=this.getLevelDetails())==null?void 0:i.fragmentStart)||0)>this.lastCurrentTime&&f.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")},r.nextLevelSwitch=function(){var i=this.levels,o=this.media;if(o!=null&&o.readyState){var l,h=this.getAppendedFrag(o.currentTime);h&&h.start>1&&this.flushMainBuffer(0,h.start-1);var v=this.getLevelDetails();if(v!=null&&v.live){var C=this.getMainFwdBufferInfo();if(!C||C.len<2*v.targetduration)return}if(!o.paused&&i){var T=i[this.hls.nextLoadLevel],w=this.fragLastKbps;l=w&&this.fragCurrent?this.fragCurrent.duration*T.maxBitrate/(1e3*w)+1:0}else l=0;var M=this.getBufferedFrag(o.currentTime+l);if(M){var F=this.followingBufferedFrag(M);if(F){this.abortCurrentFrag();var B=F.maxStartPTS?F.maxStartPTS:F.start,U=F.duration,tt=Math.max(M.end,B+Math.min(Math.max(U-this.config.maxFragLookUpTolerance,U*(this.couldBacktrack?.5:.125)),U*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(tt,Number.POSITIVE_INFINITY)}}}},r.abortCurrentFrag=function(){var i=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,i&&(i.abortRequests(),this.fragmentTracker.removeFragment(i)),this.state){case ri.KEY_LOADING:case ri.FRAG_LOADING:case ri.FRAG_LOADING_WAITING_RETRY:case ri.PARSING:case ri.PARSED:this.state=ri.IDLE}this.nextLoadPosition=this.getLoadPosition()},r.flushMainBuffer=function(i,o){f.prototype.flushMainBuffer.call(this,i,o,this.altAudio===2?"video":null)},r.onMediaAttached=function(i,o){f.prototype.onMediaAttached.call(this,i,o);var l=o.media;bo(l,"playing",this.onMediaPlaying),bo(l,"seeked",this.onMediaSeeked)},r.onMediaDetaching=function(i,o){var l=this.media;l&&(fo(l,"playing",this.onMediaPlaying),fo(l,"seeked",this.onMediaSeeked)),this.videoBuffer=null,this.fragPlaying=null,f.prototype.onMediaDetaching.call(this,i,o),o.transferMedia||(this._hasEnoughToStart=!1)},r.onManifestLoading=function(){f.prototype.onManifestLoading.call(this),this.log("Trigger BUFFER_RESET"),this.hls.trigger(ot.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1},r.onManifestParsed=function(i,o){for(var l,h,v=!1,C=!1,T=0;T<o.levels.length;T++){var w=o.levels[T].audioCodec;w&&(v=v||w.indexOf("mp4a.40.2")!==-1,C=C||w.indexOf("mp4a.40.5")!==-1)}this.audioCodecSwitch=v&&C&&typeof((h=zs())==null||(l=h.prototype)==null?void 0:l.changeType)!="function",this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=o.levels,this.startFragRequested=!1},r.onLevelLoading=function(i,o){if(this.levels&&this.state===ri.IDLE){var l=o.levelInfo;(!l.details||l.details.live&&(this.levelLastLoaded!==l||l.details.expired)||this.waitForCdnTuneIn(l.details))&&(this.state=ri.WAITING_LEVEL)}},r.onLevelLoaded=function(i,o){var l,h=this.levels,v=this.startFragRequested,C=o.level,T=o.details,w=T.totalduration;if(h){this.log("Level "+C+" loaded ["+T.startSN+","+T.endSN+"]"+(T.lastPartSn?"[part-"+T.lastPartSn+"-"+T.lastPartIndex+"]":"")+", cc ["+T.startCC+", "+T.endCC+"] duration:"+w);var M=o.levelInfo,F=this.fragCurrent;!F||this.state!==ri.FRAG_LOADING&&this.state!==ri.FRAG_LOADING_WAITING_RETRY||F.level!==o.level&&F.loader&&this.abortCurrentFrag();var B=0;if(T.live||(l=M.details)!=null&&l.live){var U;if(this.checkLiveUpdate(T),T.deltaUpdateFailed)return;B=this.alignPlaylists(T,M.details,(U=this.levelLastLoaded)==null?void 0:U.details)}if(M.details=T,this.levelLastLoaded=M,v||this.setStartPosition(T,B),this.hls.trigger(ot.LEVEL_UPDATED,{details:T,level:C}),this.state===ri.WAITING_LEVEL){if(this.waitForCdnTuneIn(T))return;this.state=ri.IDLE}v&&T.live&&this.synchronizeToLiveEdge(T),this.tick()}else this.warn("Levels were reset while loading level "+C)},r.synchronizeToLiveEdge=function(i){var o=this.config,l=this.media;if(l){var h=this.hls.liveSyncPosition,v=this.getLoadPosition(),C=i.fragmentStart,T=i.edge,w=v>=C-o.maxFragLookUpTolerance&&v<=T;if(h!==null&&l.duration>h&&(v<h||!w)){var M=o.liveMaxLatencyDuration!==void 0?o.liveMaxLatencyDuration:o.liveMaxLatencyDurationCount*i.targetduration;if((!w&&l.readyState<4||v<T-M)&&(this._hasEnoughToStart||(this.nextLoadPosition=h),l.readyState))if(this.warn("Playback: "+v.toFixed(3)+" is located too far from the end of live sliding playlist: "+T+", reset currentTime to : "+h.toFixed(3)),this.config.liveSyncMode==="buffered"){var F,B=wt.bufferInfo(l,h,0);if((F=B.buffered)==null||!F.length||B.start<=v)return void(l.currentTime=h);var U=wt.bufferedInfo(B.buffered,v,0).nextStart;U&&(l.currentTime=U)}else l.currentTime=h}}},r._handleFragmentLoadProgress=function(i){var o,l=i.frag,h=i.part,v=i.payload,C=this.levels;if(C){var T=C[l.level];if(T){var w=T.details;if(!w)return this.warn("Dropping fragment "+l.sn+" of level "+l.level+" after level details were reset"),void this.fragmentTracker.removeFragment(l);var M=T.videoCodec,F=w.PTSKnown||!w.live,B=(o=l.initSegment)==null?void 0:o.data,U=this._getAudioCodec(T),tt=this.transmuxer=this.transmuxer||new La(this.hls,ue,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),et=h?h.index:-1,st=et!==-1,ft=new Os(l.level,l.sn,l.stats.chunkCount,v.byteLength,et,st),kt=this.initPTS[l.cc];tt.push(v,B,U,M,l,h,w.totalduration,F,ft,kt)}else this.warn("Level "+l.level+" not found on progress")}else this.warn("Levels were reset while fragment load was in progress. Fragment "+l.sn+" of level "+l.level+" will not be buffered")},r.onAudioTrackSwitching=function(i,o){var l=this,h=this.hls,v=this.altAudio!==0;if(Ai(o.url,h))this.altAudio=1;else{if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;
vendor: 4,173 bytes, line 101
101var C=this.fragCurrent;C&&(this.log("Switching to main audio track, cancel main fragment load"),C.abortRequests(),this.fragmentTracker.removeFragment(C)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();if(v)return this.altAudio=0,this.fragmentTracker.removeAllFragments(),h.once(ot.BUFFER_FLUSHED,function(){l.hls&&l.hls.trigger(ot.AUDIO_TRACK_SWITCHED,o)}),void h.trigger(ot.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});h.trigger(ot.AUDIO_TRACK_SWITCHED,o)}},r.onAudioTrackSwitched=function(i,o){var l=Ai(o.url,this.hls);if(l){var h=this.videoBuffer;h&&this.mediaBuffer!==h&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=h)}this.altAudio=l?2:0,this.tick()},r.onBufferCreated=function(i,o){var l,h,v=o.tracks,C=!1;for(var T in v){var w=v[T];if(w.id==="main"){if(h=T,l=w,T==="video"){var M=v[T];M&&(this.videoBuffer=M.buffer)}}else C=!0}C&&l?(this.log("Alternate track found, use "+h+".buffered to schedule main fragment loading"),this.mediaBuffer=l.buffer):this.mediaBuffer=this.media},r.onFragBuffered=function(i,o){var l=o.frag,h=o.part,v=l.type===ue;if(v){if(this.fragContextChanged(l))return this.warn("Fragment "+l.sn+(h?" p: "+h.index:"")+" of level "+l.level+" finished buffering, but was aborted. state: "+this.state),void(this.state===ri.PARSED&&(this.state=ri.IDLE));var C=h?h.stats:l.stats;this.fragLastKbps=Math.round(8*C.total/(C.buffering.end-C.loading.first)),ti(l)&&(this.fragPrevious=l),this.fragBufferedComplete(l,h)}var T=this.media;T&&(!this._hasEnoughToStart&&wt.getBuffered(T).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),v&&this.tick())},r.onError=function(i,o){var l;if(o.fatal)this.state=ri.ERROR;else switch(o.details){case mt.FRAG_GAP:case mt.FRAG_PARSING_ERROR:case mt.FRAG_DECRYPT_ERROR:case mt.FRAG_LOAD_ERROR:case mt.FRAG_LOAD_TIMEOUT:case mt.KEY_LOAD_ERROR:case mt.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(ue,o);break;case mt.LEVEL_LOAD_ERROR:case mt.LEVEL_LOAD_TIMEOUT:case mt.LEVEL_PARSING_ERROR:o.levelRetry||this.state!==ri.WAITING_LEVEL||((l=o.context)==null?void 0:l.type)!==Ct||(this.state=ri.IDLE);break;case mt.BUFFER_ADD_CODEC_ERROR:case mt.BUFFER_APPEND_ERROR:if(o.parent!=="main")return;this.reduceLengthAndFlushBuffer(o)&&this.resetLoadingState();break;case mt.BUFFER_FULL_ERROR:if(o.parent!=="main")return;this.reduceLengthAndFlushBuffer(o)&&(!this.config.interstitialsController&&this.config.assetPlayerId?this._hasEnoughToStart=!0:this.flushMainBuffer(0,Number.POSITIVE_INFINITY));break;case mt.INTERNAL_EXCEPTION:this.recoverWorkerError(o)}},r.onFragLoadEmergencyAborted=function(){this.state=ri.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()},r.onBufferFlushed=function(i,o){var l=o.type;if(l!==Fn||!this.altAudio){var h=(l===qi?this.videoBuffer:this.mediaBuffer)||this.media;h&&(this.afterBufferFlushed(h,l,ue),this.tick())}},r.onLevelsUpdated=function(i,o){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,this.level===-1&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=o.levels},r.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},r.seekToStartPos=function(){var i=this.media;if(i){var o=i.currentTime,l=this.startPosition;if(l>=0&&o<l){if(i.seeking)return void this.log("could not seek to "+l+", already seeking at "+o);var h=this.timelineOffset;h&&l&&(l+=h);var v=this.getLevelDetails(),C=wt.getBuffered(i),T=C.length?C.start(0):0,w=T-l,M=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);(this.config.startOnSegmentBoundary||w>0&&(w<M||this.loadingParts&&w<2*((v==null?void 0:v.partTarget)||0)))&&(this.log("adjusting start position by "+w+" to match buffer start"),l+=w,this.startPosition=l),o<l&&(this.log("seek to target start position "+l+" from current time "+o+" buffer start "+T),i.currentTime=l)}}},r._getAudioCodec=function(i){var o=this.config.defaultAudioCodec||i.audioCodec;return this.audioCodecSwap&&o&&(this.log("Swapping audio codec"),o=o.indexOf("mp4a.40.5")!==-1?"mp4a.40.2":"mp4a.40.5"),o}
101,r._loadBitrateTestFrag=function(i,o){var l=this;i.bitrateTest=!0,this._doFragLoad(i,o).then(function(h){var v=l.hls,C=h==null?void 0:h.frag;if(C&&!l.fragContextChanged(C)){o.fragmentError=0,l.state=ri.IDLE,l.startFragRequested=!1,l.bitrateTest=!1;var T=C.stats;T.parsing.start=T.parsing.end=T.buffering.start=T.buffering.end=self.performance.now(),v.trigger(ot.FRAG_LOADED,h),C.bitrateTest=!1}}).catch(function(h){l.state!==ri.STOPPED&&l.state!==ri.ERROR&&(l.warn(h),l.resetFragmentLoading(i))})},r._handleTransmuxComplete=function(i){var o=this.playlistType,l=this.hls,h=i.remuxResult,v=i.chunkMeta,C=this.getCurrentContext(v);if(C){var T=C.frag,w=C.part,M=C.level,F=h.video,B=h.text,U=h.id3,tt=h.initSegment,et=M.details,st=this.altAudio?void 0:h.audio;if(this.fragContextChanged(T))this.fragmentTracker.removeFragment(T);else{if(this.state=ri.PARSING,tt){var ft=tt.tracks;if(ft){var kt=T.initSegment||T;if(this.unhandledEncryptionError(tt,T))return;this._bufferInitSegment(M,ft,kt,v),l.trigger(ot.FRAG_PARSING_INIT_SEGMENT,{frag:kt,id:o,tracks:ft})}var At=tt.initPTS,Yt=tt.timescale,Bt=this.initPTS[T.cc];if(Ot(At)&&(!Bt||Bt.baseTime!==At||Bt.timescale!==Yt)){var $t=tt.trackId;this.initPTS[T.cc]={baseTime:At,timescale:Yt,trackId:$t},l.trigger(ot.INIT_PTS_FOUND,{frag:T,id:o,initPTS:At,timescale:Yt,trackId:$t})}}if(F&&et){st&&F.type==="audiovideo"&&this.logMuxedErr(T);var oe=et.fragments[T.sn-1-et.startSN],be=T.sn===et.startSN,Gt=!oe||T.cc>oe.cc;if(h.independent!==!1){var se=F.startPTS,he=F.endPTS,di=F.startDTS,Je=F.endDTS;if(w)w.elementaryStreams[F.type]={startPTS:se,endPTS:he,startDTS:di,endDTS:Je};else if(F.firstKeyFrame&&F.independent&&v.id===1&&!Gt&&(this.couldBacktrack=!0),F.dropped&&F.independent){var He=this.getMainFwdBufferInfo(),Ve=(He?He.end:this.getLoadPosition())+this.config.maxBufferHole,Ye=F.firstKeyFramePTS?F.firstKeyFramePTS:se;if(!be&&Ve<Ye-this.config.maxBufferHole&&!Gt)return void this.backtrack(T);Gt&&(T.gap=!0),T.setElementaryStreamInfo(F.type,T.start,he,T.start,Je,!0)}else be&&se-(et.appliedTimelineOffset||0)>2&&(T.gap=!0);T.setElementaryStreamInfo(F.type,se,he,di,Je),this.backtrackFragment&&(this.backtrackFragment=T),this.bufferFragmentData(F,T,w,v,be||Gt)}else{if(!be&&!Gt)return void this.backtrack(T);T.gap=!0}}if(st){var gi=st.startPTS,Xi=st.endPTS,Li=st.startDTS,Ki=st.endDTS;w&&(w.elementaryStreams[Fn]={startPTS:gi,endPTS:Xi,startDTS:Li,endDTS:Ki}),T.setElementaryStreamInfo(Fn,gi,Xi,Li,Ki),this.bufferFragmentData(st,T,w,v)}if(et&&U!=null&&U.samples.length){var Kn={id:o,frag:T,details:et,samples:U.samples};l.trigger(ot.FRAG_PARSING_METADATA,Kn)}if(et&&B){var Dn={id:o,frag:T,details:et,samples:B.samples};l.trigger(ot.FRAG_PARSING_USERDATA,Dn)}}}else this.resetWhenMissingContext(v)},r.logMuxedErr=function(i){this.warn((ti(i)?"Media":"Init")+" segment with muxed audiovideo where only video expected: "+i.url)},r._bufferInitSegment=function(i,o,l,h){var v=this;if(this.state===ri.PARSING){this.audioOnly=!!o.audio&&!o.video,this.altAudio&&!this.audioOnly&&(delete o.audio,o.audiovideo&&this.logMuxedErr(l));var C=o.audio,T=o.video,w=o.audiovideo;if(C){var M=i.audioCodec,F=Oi(C.codec,M);F==="mp4a"&&(F="mp4a.40.5");var B=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){F&&(F=F.indexOf("mp4a.40.5")!==-1?"mp4a.40.2":"mp4a.40.5");var U=C.metadata;U&&"channelCount"in U&&(U.channelCount||1)!==1&&B.indexOf("firefox")===-1&&(F="mp4a.40.5")}F&&F.indexOf("mp4a.40.5")!==-1&&B.indexOf("android")!==-1&&C.container!=="audio/mpeg"&&(F="mp4a.40.2",this.log("Android: force audio codec to "+F)),M&&M!==F&&this.log('Swapping manifest audio codec "'+M+'" for "'+F+'"'),C.levelCodec=F,C.id=ue,this.log("Init audio buffer, container:"+C.container+", codecs[selected/level/parsed]=["+(F||"")+"/"+(M||"")+"/"+C.codec+"]"),delete o.audiovideo}if(T){T.levelCodec=i.videoCodec,T.id=ue;var tt=T.codec;if((tt==null?void 0:tt.length)===4)switch(tt){case"hvc1":case"hev1":T.codec="hvc1.1.6.L120.90";break;case"av01":T.codec="av01.0.04M.08";break;case"avc1":T.codec="avc1.42e01e"}this.log("Init video buffer, container:"+T.container+", codecs[level/parsed]=["+(i.videoCodec||"")+"/"+tt+"]"+(T.codec!==tt?" parsed-corrected="+T.codec:"")+(T.supplemental?" supplemental="+T.supplemental:"")),delete o.audiovideo}w&&(this.log("Init audiovideo buffer, container:"+w.container+", codecs[level/parsed]=["+i.codecs+"/"+w.codec+"]"),delete o.video,delete o.audio);var et=Object.keys(o);if(et.length){if(this.hls.trigger(ot.BUFFER_CODECS,o),!this.hls)return;et.forEach(function(st){var ft=o[st].initSegment;ft!=null&&ft.byteLength&&v.hls.trigger(ot.BUFFER_APPENDING,{type:st,data:ft,frag:l,part:null,chunkMeta:h,parent:l.type})})}this.tickImmediate()}},r.getMainFwdBufferInfo=function(){var i=this.mediaBuffer&&this.altAudio===2?this.mediaBuffer:this.media;return this.getFwdBufferInfo(i,ue)},r.backtrack=function(i){this.couldBacktrack=!0,this.backtrackFragment=i,this.resetTransmuxer(),this.flushBufferGap(i),this.fragmentTracker.removeFragment(i),this.fragPrevious=null,this.nextLoadPosition=i.start,this.state=ri.IDLE},r.checkFragmentChanged=function(){var i=this.media,o=null;if(i&&i.readyState>1&&i.seeking===!1){var l=i.currentTime;if(wt.isBuffered(i,l)?o=this.getAppendedFrag(l):wt.isBuffered(i,l+.1)&&(o=this.getAppendedFrag(l+.1)),o){this.backtrackFragment=null;var h=this.fragPlaying,v=o.level;h&&o.sn===h.sn&&h.level===v||(this.fragPlaying=o,this.hls.trigger(ot.FRAG_CHANGED,{frag:o}),h&&h.level===v||this.hls.trigger(ot.LEVEL_SWITCHED,{level:v}))}}},d(p,[{key:"hasEnoughToStart",get:function(){return this._hasEnoughToStart}},{key:"maxBufferLength",get:function(){var i=this.levels,o=this.level,l=i==null?void 0:i[o];return l?this.getMaxBufferLength(l.maxBitrate):this.config.maxBufferLength}},{key:"nextLevel",get:function(){var i=this.nextBufferedFrag;return i?i.level:-1}},{key:"currentFrag",get:function(){var i;if(this.fragPlaying)return this.fragPlaying;var o=((i=this.media)==null?void 0:i.currentTime)||this.lastCurrentTime;return Ot(o)?this.getAppendedFrag(o):null}},{key:"currentProgramDateTime",get:function(){var i,o=((i=this.media)==null?void 0:i.currentTime)||this.lastCurrentTime;if(Ot(o)){var l=this.getLevelDetails(),h=this.currentFrag||(l?kn(null,l.fragments,o):null);if(h){var v=h.programDateTime;if(v!==null){var C=v+1e3*(o-h.start);return new Date(C)}}}return null}},{key:"currentLevel",get:function(){var i=this.currentFrag;return i?i.level:-1}},{key:"nextBufferedFrag",get:function(){var i=this.currentFrag;return i?this.followingBufferedFrag(i):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}])}(Ca),Ia=function(f){function p(i,o){var l;return(l=f.call(this,"key-loader",o)||this).config=void 0,l.keyIdToKeyInfo={},l.emeController=null,l.config=i,l}ct(p,f);var r=p.prototype;return r.abort=function(i){for(var o in this.keyIdToKeyInfo){var l=this.keyIdToKeyInfo[o].loader;if(l){var h;if(i&&i!==((h=l.context)==null?void 0:h.frag.type))return;l.abort()}}},r.detach=function(){for(var i in this.keyIdToKeyInfo){var o=this.keyIdToKeyInfo[i];(o.mediaKeySessionContext||o.decryptdata.isCommonEncryption)&&delete this.keyIdToKeyInfo[i]}},r.destroy=function(){for(var i in this.detach(),this.keyIdToKeyInfo){var o=this.keyIdToKeyInfo[i].loader;o&&o.destroy()}this.keyIdToKeyInfo={}},r.createKeyLoadError=function(i,o,l,h,v){return o===void 0&&(o=mt.KEY_LOAD_ERROR),new ao({type:me.NETWORK_E
101RROR,details:o,fatal:!1,frag:i,response:v,error:l,networkDetails:h})},r.loadClear=function(i,o,l){return null},r.load=function(i){var o=this;return!i.decryptdata&&i.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(i).then(function(l){return o.loadInternal(i,l)}):this.loadInternal(i)},r.loadInternal=function(i,o){var l,h,v=i.decryptdata;if(!v){var C=new Error(o?"Expected frag.decryptdata to be defined after setting format "+o:"Missing decryption data on fragment in onKeyLoading (emeEnabled with controller: "+(this.emeController&&this.config.emeEnabled)+")");return Promise.reject(this.createKeyLoadError(i,mt.KEY_LOAD_ERROR,C))}var T=v.uri;if(!T)return Promise.reject(this.createKeyLoadError(i,mt.KEY_LOAD_ERROR,new Error('Invalid key URI: "'+T+'"')));var w=ds(v),M=this.keyIdToKeyInfo[w];if((l=M)!=null&&l.decryptdata.key)return v.key=M.decryptdata.key,Promise.resolve({frag:i,keyInfo:M});if(this.emeController&&(h=M)!=null&&h.keyLoadPromise)switch(this.emeController.getKeyStatus(M.decryptdata)){case"usable":case"usable-in-future":return M.keyLoadPromise.then(function(F){var B=F.keyInfo;return v.key=B.decryptdata.key,{frag:i,keyInfo:B}})}switch(this.log((this.keyIdToKeyInfo[w]?"Rel":"L")+"oading"+(v.keyId?" keyId: "+Gi(v.keyId):"")+" URI: "+v.uri+" from "+i.type+" "+i.level),M=this.keyIdToKeyInfo[w]={decryptdata:v,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},v.method){case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return v.keyFormat==="identity"?this.loadKeyHTTP(M,i):this.loadKeyEME(M,i);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(M,i);default:return Promise.reject(this.createKeyLoadError(i,mt.KEY_LOAD_ERROR,new Error('Key supplied with unsupported METHOD: "'+v.method+'"')))}},r.loadKeyEME=function(i,o){var l={frag:o,keyInfo:i};if(this.emeController&&this.config.emeEnabled){var h;if(!i.decryptdata.keyId&&(h=o.initSegment)!=null&&h.data){var v=function(w){var M=[];return Gn(w,function(F){return M.push(F.subarray(8,24))}),M}(o.initSegment.data);if(v.length){var C=v[0];C.some(function(w){return w!==0})?(this.log("Using keyId found in init segment "+Gi(C)),yi.setKeyIdForUri(i.decryptdata.uri,C)):(C=yi.addKeyIdForUri(i.decryptdata.uri),this.log("Generating keyId to patch media "+Gi(C))),i.decryptdata.keyId=C}}if(!i.decryptdata.keyId&&!ti(o))return Promise.resolve(l);var T=this.emeController.loadKey(l);return(i.keyLoadPromise=T.then(function(w){return i.mediaKeySessionContext=w,l})).catch(function(w){throw i.keyLoadPromise=null,"data"in w&&(w.data.frag=o),w})}return Promise.resolve(l)},r.loadKeyHTTP=function(i,o){var l=this,h=this.config,v=new h.loader(h);return o.keyLoader=i.loader=v,i.keyLoadPromise=new Promise(function(C,T){var w={keyInfo:i,frag:o,responseType:"arraybuffer",url:i.decryptdata.uri},M=h.keyLoadPolicy.default,F={loadPolicy:M,timeout:M.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},B={onSuccess:function(U,tt,et,st){var ft=et.frag,kt=et.keyInfo,At=ds(kt.decryptdata);if(!ft.decryptdata||kt!==l.keyIdToKeyInfo[At])return T(l.createKeyLoadError(ft,mt.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),st));kt.decryptdata.key=ft.decryptdata.key=new Uint8Array(U.data),ft.keyLoader=null,kt.loader=null,C({frag:ft,keyInfo:kt})},onError:function(U,tt,et,st){l.resetLoader(tt),T(l.createKeyLoadError(o,mt.KEY_LOAD_ERROR,new Error("HTTP Error "+U.code+" loading key "+U.text),et,q({url:w.url,data:void 0},U)))},onTimeout:function(U,tt,et){l.resetLoader(tt),T(l.createKeyLoadError(o,mt.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),et))},onAbort:function(U,tt,et){l.resetLoader(tt),T(l.createKeyLoadError(o,mt.INTERNAL_ABORTED,new Error("key loading aborted"),et))}};v.load(w,F,B)})},r.resetLoader=function(i){var o=i.frag,l=i.keyInfo,h=i.url,v=l.loader;o.keyLoader===v&&(o.keyLoader=null,l.loader=null);var C=ds(l.decryptdata)||h;delete this.keyIdToKeyInfo[C],v&&v.destroy()},p}(ii);function ds(f){return f.uri}function Ws(f){switch(f.type){case g:return ye;case ve:return De;default:return ue}}function hs(f,p){var r=f.url;return r!==void 0&&r.indexOf("data:")!==0||(r=p.url),r}var Da=function(){function f(r){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=r,this.registerListeners()}var p=f.prototype;return p.startLoad=function(r){},p.stopLoad=function(){this.destroyInternalLoaders()},p.registerListeners=function(){var r=this.hls;r.on(ot.MANIFEST_LOADING,this.onManifestLoading,this),r.on(ot.LEVEL_LOADING,this.onLevelLoading,this),r.on(ot.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),r.on(ot.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),r.on(ot.LEVELS_UPDATED,this.onLevelsUpdated,this)},p.unregisterListeners=function(){var r=this.hls;r.off(ot.MANIFEST_LOADING,this.onManifestLoading,this),r.off(ot.LEVEL_LOADING,this.onLevelLoading,this),r.off(ot.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),r.off(ot.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),r.off(ot.LEVELS_UPDATED,this.onLevelsUpdated,this)},p.createInternalLoader=function(r){var i=this.hls.config,o=i.pLoader,l=i.loader,h=new(o||l)(i);return this.loaders[r.type]=h,h},p.getInternalLoader=function(r){return this.loaders[r.type]},p.resetInternalLoader=function(r){this.loaders[r]&&delete this.loaders[r]}
vendor: 5,182 bytes, line 101
101,p.destroyInternalLoaders=function(){for(var r in this.loaders){var i=this.loaders[r];i&&i.destroy(),this.resetInternalLoader(r)}},p.destroy=function(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()},p.onManifestLoading=function(r,i){var o=i.url;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:Pt,url:o,deliveryDirectives:null,levelOrTrack:null})},p.onLevelLoading=function(r,i){var o=i.id,l=i.level,h=i.pathwayId,v=i.url,C=i.deliveryDirectives,T=i.levelInfo;this.load({id:o,level:l,pathwayId:h,responseType:"text",type:Ct,url:v,deliveryDirectives:C,levelOrTrack:T})},p.onAudioTrackLoading=function(r,i){var o=i.id,l=i.groupId,h=i.url,v=i.deliveryDirectives,C=i.track;this.load({id:o,groupId:l,level:null,responseType:"text",type:g,url:h,deliveryDirectives:v,levelOrTrack:C})},p.onSubtitleTrackLoading=function(r,i){var o=i.id,l=i.groupId,h=i.url,v=i.deliveryDirectives,C=i.track;this.load({id:o,groupId:l,level:null,responseType:"text",type:ve,url:h,deliveryDirectives:v,levelOrTrack:C})},p.onLevelsUpdated=function(r,i){var o=this.loaders[Ct];if(o){var l=o.context;l&&!i.levels.some(function(h){return h===l.levelOrTrack})&&(o.abort(),delete this.loaders[Ct])}},p.load=function(r){var i,o,l,h=this,v=this.hls.config,C=this.getInternalLoader(r);if(C){var T=this.hls.logger,w=C.context;if(w&&w.levelOrTrack===r.levelOrTrack&&(w.url===r.url||w.deliveryDirectives&&!r.deliveryDirectives))return void(w.url===r.url?T.log("[playlist-loader]: ignore "+r.url+" ongoing request"):T.log("[playlist-loader]: ignore "+r.url+" in favor of "+w.url));T.log("[playlist-loader]: aborting previous loader for type: "+r.type),C.abort()}if(o=r.type===Pt?v.manifestLoadPolicy.default:I({},v.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),C=this.createInternalLoader(r),Ot((i=r.deliveryDirectives)==null?void 0:i.part)&&(r.type===Ct&&r.level!==null?l=this.hls.levels[r.level].details:r.type===g&&r.id!==null?l=this.hls.audioTracks[r.id].details:r.type===ve&&r.id!==null&&(l=this.hls.subtitleTracks[r.id].details),l)){var M=l.partTarget,F=l.targetduration;if(M&&F){var B=1e3*Math.max(3*M,.8*F);o=I({},o,{maxTimeToFirstByteMs:Math.min(B,o.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(B,o.maxTimeToFirstByteMs)})}}var U=o.errorRetry||o.timeoutRetry||{},tt={loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:U.maxNumRetry||0,retryDelay:U.retryDelayMs||0,maxRetryDelay:U.maxRetryDelayMs||0},et={onSuccess:function(st,ft,kt,At){var Yt=h.getInternalLoader(kt);h.resetInternalLoader(kt.type);var Bt=st.data;ft.parsing.start=performance.now(),on.isMediaPlaylist(Bt)||kt.type!==Pt?h.handleTrackOrLevelPlaylist(st,ft,kt,At||null,Yt):h.handleMasterPlaylist(st,ft,kt,At)},onError:function(st,ft,kt,At){h.handleNetworkError(ft,kt,!1,st,At)},onTimeout:function(st,ft,kt){h.handleNetworkError(ft,kt,!0,void 0,st)}};C.load(r,tt,et)},p.checkAutostartLoad=function(){if(this.hls){var r=this.hls,i=r.config,o=i.autoStartLoad,l=i.startPosition,h=r.forceStartLoad;(o||h)&&(this.hls.logger.log((o?"auto":"force")+" startLoad with configured startPosition "+l),this.hls.startLoad(l))}},p.handleMasterPlaylist=function(r,i,o,l){var h=this,v=this.hls,C=r.data,T=hs(r,o),w=on.parseMasterPlaylist(C,T);if(w.playlistParsingError)return i.parsing.end=performance.now(),void this.handleManifestParsingError(r,o,w.playlistParsingError,l,i);var M=w.contentSteering,F=w.levels,B=w.sessionData,U=w.sessionKeys,tt=w.startTimeOffset,et=w.variableList;this.variableList=et,F.forEach(function(Bt){var $t=Bt.unknownCodecs;if($t)for(var oe=h.hls.config.preferManagedMediaSource,be=Bt.audioCodec,Gt=Bt.videoCodec,se=$t.length;se--;){var he=$t[se];Ft(he,"audio",oe)?(Bt.audioCodec=be=be?be+","+he:he,Tn.audio[be.substring(0,4)]=2,$t.splice(se,1)):Ft(he,"video",oe)&&(Bt.videoCodec=Gt=Gt?Gt+","+he:he,Tn.video[Gt.substring(0,4)]=2,$t.splice(se,1))}});var st=on.parseMasterPlaylistMedia(C,T,w),ft=st.AUDIO,kt=ft===void 0?[]:ft,At=st.SUBTITLES,Yt=st["CLOSED-CAPTIONS"];kt.length&&(kt.some(function(Bt){return!Bt.url})||!F[0].audioCodec||F[0].attrs.AUDIO||(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),kt.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new de({}),bitrate:0,url:""}))),v.trigger(ot.MANIFEST_LOADED,{levels:F,audioTracks:kt,subtitles:At,captions:Yt,contentSteering:M,url:T,stats:i,networkDetails:l,sessionData:B,sessionKeys:U,startTimeOffset:tt,variableList:et})},p.handleTrackOrLevelPlaylist=function(r,i,o,l,h){var v=this.hls,C=o.id,T=o.level,w=o.type,M=hs(r,o),F=Ot(T)?T:Ot(C)?C:0,B=Ws(o),U=on.parseLevelPlaylist(r.data,M,F,B,0,this.variableList);if(w===Pt){var tt={attrs:new de({}),bitrate:0,details:U,name:"",url:M};U.requestScheduled=i.loading.start+V(U,0),v.trigger(ot.MANIFEST_LOADED,{levels:[tt],audioTracks:[],url:M,stats:i,networkDetails:l,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}i.parsing.end=performance.now(),o.levelDetails=U,this.handlePlaylistLoaded(U,r,i,o,l,h)},p.handleManifestParsingError=function(r,i,o,l,h){this.hls.trigger(ot.ERROR,{type:me.NETWORK_E
101RROR,details:mt.MANIFEST_PARSING_ERROR,fatal:i.type===Pt,url:r.url,err:o,error:o,reason:o.message,response:r,context:i,networkDetails:l,stats:h})},p.handleNetworkError=function(r,i,o,l,h){o===void 0&&(o=!1);var v="A network "+(o?"timeout":"error"+(l?" (status "+l.code+")":""))+" occurred while loading "+r.type;r.type===Ct?v+=": "+r.level+" id: "+r.id:r.type!==g&&r.type!==ve||(v+=" id: "+r.id+' group-id: "'+r.groupId+'"');var C=new Error(v);this.hls.logger.warn("[playlist-loader]: "+v);var T=mt.UNKNOWN,w=!1,M=this.getInternalLoader(r);switch(r.type){case Pt:T=o?mt.MANIFEST_LOAD_TIMEOUT:mt.MANIFEST_LOAD_ERROR,w=!0;break;case Ct:T=o?mt.LEVEL_LOAD_TIMEOUT:mt.LEVEL_LOAD_ERROR,w=!1;break;case g:T=o?mt.AUDIO_TRACK_LOAD_TIMEOUT:mt.AUDIO_TRACK_LOAD_ERROR,w=!1;break;case ve:T=o?mt.SUBTITLE_TRACK_LOAD_TIMEOUT:mt.SUBTITLE_LOAD_ERROR,w=!1}M&&this.resetInternalLoader(r.type);var F={type:me.NETWORK_ERROR,details:T,fatal:w,url:r.url,loader:M,context:r,error:C,networkDetails:i,stats:h};if(l){var B=(i==null?void 0:i.url)||r.url;F.response=q({url:B,data:void 0},l)}this.hls.trigger(ot.ERROR,F)},p.handlePlaylistLoaded=function(r,i,o,l,h,v){var C=this.hls,T=l.type,w=l.level,M=l.levelOrTrack,F=l.id,B=l.groupId,U=l.deliveryDirectives,tt=hs(i,l),et=Ws(l),st=typeof l.level=="number"&&et===ue?w:void 0,ft=r.playlistParsingError;if(ft){if(this.hls.logger.warn(ft+" "+r.url),!C.config.ignorePlaylistParsingErrors)return void C.trigger(ot.ERROR,{type:me.NETWORK_ERROR,details:mt.LEVEL_PARSING_ERROR,fatal:!1,url:tt,error:ft,reason:ft.message,response:i,context:l,level:st,parent:et,networkDetails:h,stats:o});r.playlistParsingError=null}if(r.fragments.length)switch(r.live&&v&&(v.getCacheAge&&(r.ageHeader=v.getCacheAge()||0),v.getCacheAge&&!isNaN(r.ageHeader)||(r.ageHeader=0)),T){case Pt:case Ct:if(st)if(M){if(M!==C.levels[st]){var kt=C.levels.indexOf(M);kt>-1&&(st=kt)}}else st=0;C.trigger(ot.LEVEL_LOADED,{details:r,levelInfo:M||C.levels[0],level:st||0,id:F||0,stats:o,networkDetails:h,deliveryDirectives:U,withoutMultiVariant:T===Pt});break;case g:C.trigger(ot.AUDIO_TRACK_LOADED,{details:r,track:M,id:F||0,groupId:B||"",stats:o,networkDetails:h,deliveryDirectives:U});break;case ve:C.trigger(ot.SUBTITLE_TRACK_LOADED,{details:r,track:M,id:F||0,groupId:B||"",stats:o,networkDetails:h,deliveryDirectives:U})}else{var At=r.playlistParsingError=new Error("No Segments found in Playlist");C.trigger(ot.ERROR,{type:me.NETWORK_ERROR,details:mt.LEVEL_EMPTY_ERROR,fatal:!1,url:tt,error:At,reason:At.message,response:i,context:l,level:st,parent:et,networkDetails:h,stats:o})}},f}(),Ma={supported:!1,smooth:!1,powerEfficient:!1},Ra={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function Oa(f,p,r,i){i===void 0&&(i={});var o=f.videoCodec;if(!o&&!f.audioCodec||!r)return Promise.resolve(Ra);for(var l=[],h=function(U){var tt,et=(tt=U.videoCodec)==null?void 0:tt.split(","),st=Gs(U),ft=U.width||640,kt=U.height||480,At=U.frameRate||30,Yt=U.videoRange.toLowerCase();return et?et.map(function(Bt){var $t={contentType:Le(tn(Bt),"video"),width:ft,height:kt,bitrate:st,framerate:At};return Yt!=="sdr"&&($t.transferFunction=Yt),$t}):[]}(f),v=h.length,C=function(U,tt,et){var st,ft=(st=U.audioCodec)==null?void 0:st.split(","),kt=Gs(U);return ft&&U.audioGroups?U.audioGroups.reduce(function(At,Yt){var Bt,$t=Yt?(Bt=tt.groups[Yt])==null?void 0:Bt.tracks:null;return $t?$t.reduce(function(oe,be){if(be.groupId===Yt){var Gt=parseFloat(be.channels||"");ft.forEach(function(se){var he={contentType:Le(se,"audio"),bitrate:et?_a(se,kt):kt};Gt&&(he.channels=""+Gt),oe.push(he)})}return oe},At):At},[]):[]}(f,p,v>0),T=C.length,w=v||1*T||1;w--;){var M={type:"media-source"};if(v&&(M.video=h[w%v]),T){M.audio=C[w%T];var F=M.audio.bitrate;M.video&&F&&(M.video.bitrate-=F)}l.push(M)}if(o){var B=navigator.userAgent;if(o.split(",").some(function(U){return cr(U)})&&Ln())return Promise.resolve(function(U,tt){return{supported:!1,configurations:tt,decodingInfoResults:[Ma],error:U}}(new Error("Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: ("+B+")"),l))}return Promise.all(l.map(function(U){var tt,et,st,ft,kt=(et="",st=(tt=U).audio,(ft=tt.video)&&(et+=cn(ft.contentType)+"_r"+ft.height+"x"+ft.width+"f"+Math.ceil(ft.framerate)+(ft.transferFunction||"sd")+"_"+Math.ceil(ft.bitrate/1e5)),st&&(et+=(ft?"_":"")+cn(st.contentType)+"_c"+st.channels),et);return i[kt]||(i[kt]=r.decodingInfo(U))})).then(function(U){return{supported:!U.some(function(tt){return!tt.supported}),configurations:l,decodingInfoResults:U}}).catch(function(U){return{supported:!1,configurations:l,decodingInfoResults:[],error:U}})}function _a(f,p){if(p<=1)return 1;var r=128e3;return f==="ec-3"?r=768e3:f==="ac-3"&&(r=64e4),Math.min(p/2,r)}function Gs(f){return 1e3*Math.ceil(Math.max(.9*f.bitrate,f.averageBitrate)/1e3)||1}var Ys=function(){function f(r){r===void 0&&(r={}),this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new ut,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;var i=this.logger=pn(r.debug||!1,"Hls instance",r.assetPlayerId),o=this.config=function(He,Ve,Ye){if((Ve.liveSyncDurationCount||Ve.liveMaxLatencyDurationCount)&&(Ve.liveSyncDuration||Ve.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(Ve.liveMaxLatencyDurationCount!==void 0&&(Ve.liveSyncDurationCount===void 0||Ve.liveMaxLatencyDurationCount<=Ve.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(Ve.liveMaxLatencyDuration!==void 0&&(Ve.liveSyncDuration===void 0||Ve.liveMaxLatencyDuration<=Ve.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');var gi=as(He),Xi=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach(function(Li){var Ki=(Li==="level"?"playlist":Li)+"LoadPolicy",Kn=Ve[Ki]===void 0,Dn=[];Xi.forEach(function(bn){var Jn=Li+"Loading"+bn,On=Ve[Jn];if(On!==void 0&&Kn){Dn.push(Jn);var en=gi[Ki].default;switch(Ve[Ki]={default:en},bn){case"TimeOut":en.maxLoadTimeMs=On,en.maxTimeToFirstByteMs=On;break;case"MaxRetry":en.errorRetry.maxNumRetry=On,en.timeoutRetry.maxNumRetry=On;break;case"RetryDelay":en.errorRetry.retryDelayMs=On,en.timeoutRetry.retryDelayMs=On;break;case"MaxRetryTimeout":en.errorRetry.maxRetryDelayMs=On,en.timeoutRetry.maxRetryDelayMs=On}}}),Dn.length&&Ye.warn('hls.js config: "'+Dn.join('", "')+'" setting(s) are deprecated, use "'+Ki+'": '+Ce(Ve[Ki]))}),q(q({},gi),Ve)}(f.DefaultConfig,r,i);this.userConfig=r,o.progressive&&ma(o,i);var l=o.abrController,h=o.bufferController,v=o.capLevelController,C=o.errorController,T=o.fpsController,w=new C(this),M=this.abrController=new l(this),F=new ga(this),B=o.interstitialsController,U=B?this.interstitialsController=new B(this,f):null,tt=this.bufferController=new h(this,F),et=this.capLevelController=new v(this),st=new T(this),ft
vendor: 4,694 bytes, line 101
101=new Da(this),kt=o.contentSteeringController,At=kt?new kt(this):null,Yt=this.levelController=new Aa(this,At),Bt=new wa(this),$t=new Ia(this.config,this.logger),oe=this.streamController=new Pa(this,F,$t),be=this.gapController=new Sa(this,F);et.setStreamController(oe),st.setStreamController(oe);var Gt=[ft,Yt,oe];U&&Gt.splice(1,0,U),At&&Gt.splice(1,0,At),this.networkControllers=Gt;var se=[M,tt,be,et,st,Bt,F];this.audioTrackController=this.createController(o.audioTrackController,Gt);var he=o.audioStreamController;he&&Gt.push(this.audioStreamController=new he(this,F,$t)),this.subtitleTrackController=this.createController(o.subtitleTrackController,Gt);var di=o.subtitleStreamController;di&&Gt.push(this.subtititleStreamController=new di(this,F,$t)),this.createController(o.timelineController,se),$t.emeController=this.emeController=this.createController(o.emeController,se),this.cmcdController=this.createController(o.cmcdController,se),this.latencyController=this.createController(ka,se),this.coreComponents=se,Gt.push(w);var Je=w.onErrorOut;typeof Je=="function"&&this.on(ot.ERROR,Je,w),this.on(ot.MANIFEST_LOADED,ft.onManifestLoaded,ft)}f.isMSESupported=function(){return Vs()},f.isSupported=function(){return function(){if(!Vs())return!1;var r=vn();return typeof(r==null?void 0:r.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(function(i){return r.isTypeSupported(Le(i,"video"))})||["mp4a.40.2","fLaC"].some(function(i){return r.isTypeSupported(Le(i,"audio"))}))}()},f.getMediaSource=function(){return vn()};var p=f.prototype;return p.createController=function(r,i){if(r){var o=new r(this);return i&&i.push(o),o}return null},p.on=function(r,i,o){o===void 0&&(o=this),this._emitter.on(r,i,o)},p.once=function(r,i,o){o===void 0&&(o=this),this._emitter.once(r,i,o)},p.removeAllListeners=function(r){this._emitter.removeAllListeners(r)},p.off=function(r,i,o,l){o===void 0&&(o=this),this._emitter.off(r,i,o,l)},p.listeners=function(r){return this._emitter.listeners(r)},p.emit=function(r,i,o){return this._emitter.emit(r,i,o)},p.trigger=function(r,i){if(this.config.debug)return this.emit(r,r,i);try{return this.emit(r,r,i)}catch(l){if(this.logger.error("An internal error happened while handling event "+r+'. Error message: "'+l.message+'". Here is a stacktrace:',l),!this.triggeringException){this.triggeringException=!0;var o=r===ot.ERROR;this.trigger(ot.ERROR,{type:me.OTHER_ERROR,details:mt.INTERNAL_EXCEPTION,fatal:o,event:r,error:l}),this.triggeringException=!1}}return!1},p.listenerCount=function(r){return this._emitter.listenerCount(r)},p.destroy=function(){this.logger.log("destroy"),this.trigger(ot.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(function(i){return i.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(i){return i.destroy()}),this.coreComponents.length=0;var r=this.config;r.xhrSetup=r.fetchSetup=void 0,this.userConfig=null},p.attachMedia=function(r){if(!r||"media"in r&&!r.media){var i=new Error("attachMedia failed: invalid argument ("+r+")");this.trigger(ot.ERROR,{type:me.OTHER_ERROR,details:mt.ATTACH_MEDIA_ERROR,fatal:!0,error:i})}else{this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());var o="media"in r,l=o?r.media:r,h=o?r:{media:l};this._media=l,this.trigger(ot.MEDIA_ATTACHING,h)}},p.detachMedia=function(){this.logger.log("detachMedia"),this.trigger(ot.MEDIA_DETACHING,{}),this._media=null},p.transferMedia=function(){this._media=null;var r=this.bufferController.transferMedia();return this.trigger(ot.MEDIA_DETACHING,{transferMedia:r}),r},p.loadSource=function(r){this.stopLoad();var i=this.media,o=this._url,l=this._url=Vt.buildAbsoluteURL(self.location.href,r,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log("loadSource:"+l),i&&o&&(o!==l||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(i)),this.trigger(ot.MANIFEST_LOADING,{url:r})},p.startLoad=function(r,i){r===void 0&&(r=-1),this.logger.log("startLoad("+r+(i?", <skip seek to start>":"")+")"),this.started=!0,this.resumeBuffering();for(var o=0;o<this.networkControllers.length&&(this.networkControllers[o].startLoad(r,i),this.started&&this.networkControllers);o++);},p.stopLoad=function(){this.logger.log("stopLoad"),this.started=!1;for(var r=0;r<this.networkControllers.length&&(this.networkControllers[r].stopLoad(),!this.started&&this.networkControllers);r++);},p.resumeBuffering=function(){this.bufferingEnabled||(this.logger.log("resume buffering"),this.networkControllers.forEac
101h(function(r){r.resumeBuffering&&r.resumeBuffering()}))},p.pauseBuffering=function(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(function(r){r.pauseBuffering&&r.pauseBuffering()}))},p.swapAudioCodec=function(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},p.recoverMediaError=function(){this.logger.log("recoverMediaError");var r=this._media,i=r==null?void 0:r.currentTime;this.detachMedia(),r&&(this.attachMedia(r),i&&this.startLoad(i))},p.removeLevel=function(r){this.levelController.removeLevel(r)},p.setAudioOption=function(r){var i;return((i=this.audioTrackController)==null?void 0:i.setAudioOption(r))||null},p.setSubtitleOption=function(r){var i;return((i=this.subtitleTrackController)==null?void 0:i.setSubtitleOption(r))||null},p.getMediaDecodingInfo=function(r,i){return i===void 0&&(i=this.allAudioTracks),Oa(r,ai(i),navigator.mediaCapabilities)},d(f,[{key:"url",get:function(){return this._url}},{key:"hasEnoughToStart",get:function(){return this.streamController.hasEnoughToStart}},{key:"startPosition",get:function(){return this.streamController.startPositionValue}},{key:"loadingEnabled",get:function(){return this.started}},{key:"bufferingEnabled",get:function(){return this.streamController.bufferingEnabled}},{key:"inFlightFragments",get:function(){var r,i=((r={})[ue]=this.streamController.inFlightFrag,r);return this.audioStreamController&&(i[ye]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(i[De]=this.subtititleStreamController.inFlightFrag),i}},{key:"sessionId",get:function(){var r=this._sessionId;return r||(r=this._sessionId=function(){try{return crypto.randomUUID()}catch{try{var i=URL.createObjectURL(new Blob),o=i.toString();return URL.revokeObjectURL(i),o.slice(o.lastIndexOf("/")+1)}catch{var l=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(C){var T=(l+16*Math.random())%16|0;return l=Math.floor(l/16),(C=="x"?T:3&T|8).toString(16)})}}}()),r}},{key:"levels",get:function(){var r=this.levelController.levels;return r||[]}},{key:"latestLevelDetails",get:function(){return this.streamController.getLevelDetails()||null}},{key:"loadLevelObj",get:function(){return this.levelController.loadLevelObj}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(r){this.logger.log("set currentLevel:"+r),this.levelController.manualLevel=r,this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(r){this.logger.log("set nextLevel:"+r),this.levelController.manualLevel=r,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(r){this.logger.log("set loadLevel:"+r),this.levelController.manualLevel=r}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(r){this.levelController.nextLoadLevel=r}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(r){this.logger.log("set firstLevel:"+r),this.levelController.firstLevel=r}},{key:"startLevel",get:function(){var r=this.levelController.startLevel;return r===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:r},set:function(r){this.logger.log("set startLevel:"+r),r!==-1&&(r=Math.max(r,this.minAutoLevel)),this.levelController.startLevel=r}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(r){var i=!!r;i!==this.config.capLevelToPlayerSize&&(i?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=i)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(r){this._autoLevelCapping!==r&&(this.logger.log("set autoLevelCapping:"+r),this._autoLevelCapping=r,this.levelController.checkMaxAutoUpdated())}},{key:"bandwidthEstimate",get:function(){var r=this.abrController.bwEstimator;return r?r.getEstimate():NaN},set:function(r){this.abrController.resetEstimator(r)}},{key:"abrEwmaDefaultEstimate",get:function(){var r=this.abrController.bwEstimator;return r?r.defaultEstimate:NaN}},{key:"ttfbEstimate",get:function(){var r=this.abrController.bwEstimator;return r?r.getEstimateTTFB():NaN}},{key:"maxHdcpLevel",get:function(){return this._maxHdcpLevel},set:function(r){(function(i){return $i.indexOf(i)>-1})(r)&&this._maxHdcpLevel!==r&&(this._maxHdcpLevel=r,this.levelController.checkMaxAutoUpdated())}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var r=this.levels,i=this.config.minAutoBitrate;if(!r)return 0;for(var o=r.length,l=0;l<o;l++)if(r[l].maxBitrate>=i)return l;return 0}},{key:"maxAutoLevel",get:function(){var r,i=this.levels,o=this.autoLevelCapping,l=this.maxHdcpLevel;if(r=o===-1&&i!=null&&i.length?i.length-1:o,l)for(var h=r;h--;){var v=i[h].attrs["HDCP-LEVEL"];if(v&&v<=l)return h}return r}},{key:"firstAutoLevel",get:function(){return this.abrController.firstAutoLevel}},{key:"nextAutoLevel",get:function(){return this.abrController.nextAutoLevel},set:function(r){this.abrController.nextAutoLevel=r}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{key:"maxBufferLength",get:function(){return this.streamController.maxBufferLength}},{key:"allAudioTracks",get:function(){var r=this.audioTrackController;return r?r.allAudioTracks:[]}},{key:"audioTracks",get:function(){var r=this.audioTrackController;return r?r.audioTracks:[]}},{key:"audioTrack",get:function(){var r=this.audioTrackController;return r?r.audioTrack:-1},set:function(r){var i=this.audioTrackController;i&&(i.audioTrack=r)}},{key:"allSubtitleTracks",get:function(){var r=this.subtitleTrackController;return r?r.allSubtitleTracks:[]}},{key:"subtitleTracks",get:function(){var r=this.subtitleTrackController;
101return r?r.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var r=this.subtitleTrackController;return r?r.subtitleTrack:-1},set:function(r){var i=this.subtitleTrackController;i&&(i.subtitleTrack=r)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var r=this.subtitleTrackController;return!!r&&r.subtitleDisplay},set:function(r){var i=this.subtitleTrackController;i&&(i.subtitleDisplay=r)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(r){this.config.lowLatencyMode=r}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency},set:function(r){this.latencyController.targetLatency=r}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}},{key:"pathways",get:function(){return this.levelController.pathways}},{key:"pathwayPriority",get:function(){return this.levelController.pathwayPriority},set:function(r){this.levelController.pathwayPriority=r}},{key:"bufferedToEnd",get:function(){var r;return!((r=this.bufferController)==null||!r.bufferedToEnd)}},{key:"interstitialsManager",get:function(){var r;return((r=this.interstitialsController)==null?void 0:r.interstitialsManager)||null}}],[{key:"version",get:function(){return No}},{key:"Events",get:function(){return ot}},{key:"MetadataSchema",get:function(){return dr}},{key:"ErrorTypes",get:function(){return me}},{key:"ErrorDetails",get:function(){return mt}},{key:"DefaultConfig",get:function(){return f.defaultConfig?f.defaultConfig:pa},set:function(r){f.defaultConfig=r}}])}();return Ys.defaultConfig=void 0,Ys},typeof exports=="object"&&typeof module<"u"?module.exports=c():typeof define=="function"&&define.amd?define(c):(e=typeof globalThis<"u"?globalThis:e||self).Hls=c()}(!1);/*!
102 * jQuery Validation Plugin v1.19.3
103 *
104 * https://jqueryvalidation.org/
105 *
106 * Copyright (c) 2021 Jörn Zaefferer
107 * Released under the MIT license
108 */(function(t){typeof define=="function"&&define.amd?define(["jquery"],t):typeof module=="object"&&module.exports?module.exports=t(require("jquery")):t(jQuery)})(function(t){t.extend(t.fn,{validate:function(u){if(!this.length){u&&u.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.");return}var d=t.data(this[0],"validator");return d||(this.attr("novalidate","novalidate"),d=new t.validator(u,this[0]),t.data(this[0],"validator",d),d.settings.onsubmit&&(this.on("click.validate",":submit",function(S){d.submitButton=S.currentTarget,t(this).hasClass("cancel")&&(d.cancelSubmit=!0),t(this).attr("formnovalidate")!==void 0&&(d.cancelSubmit=!0)}),this.on("submit.validate",function(S){d.settings.debug&&S.preventDefault();function I(){var Z,ct;return d.submitButton&&(d.settings.submitHandler||d.formSubmitted)&&(Z=t("<input type='hidden'/>").attr("name",d.submitButton.name).val(t(d.submitButton).val()).appendTo(d.currentForm)),d.settings.submitHandler&&!d.settings.debug?(ct=d.settings.submitHandler.call(d,d.currentForm,S),Z&&Z.remove(),ct!==void 0?ct:!1):!0}return d.cancelSubmit?(d.cancelSubmit=!1,I()):d.form()?d.pendingRequest?(d.formSubmitted=!0,!1):I():(d.focusInvalid(),!1)})),d)},valid:function(){var u,d,S;return t(this[0]).is("form")?u=this.validate().form():(S=[],u=!0,d=t(this[0].form).validate(),this.each(function(){u=d.element
108(this)&&u,u||(S=S.concat(d.errorList))}),d.errorList=S),u},rules:function(u,d){var S=this[0],I=typeof this.attr("contenteditable")<"u"&&this.attr("contenteditable")!=="false",Z,ct,nt,rt,q,J;if(S!=null&&(!S.form&&I&&(S.form=this.closest("form")[0],S.name=this.attr("name")),S.form!=null)){if(u)switch(Z=t.data(S.form,"validator").settings,ct=Z.rules,nt=t.validator.staticRules(S),u){case"add":t.extend(nt,t.validator.normalizeRule(d)),delete nt.messages,ct[S.name]=nt,d.messages&&(Z.messages[S.name]=t.extend(Z.messages[S.name],d.messages));break;case"remove":return d?(J={},t.each(d.split(/\s/),function(ht,xt){J[xt]=nt[xt],delete nt[xt]}),J):(delete ct[S.name],nt)}return rt=t.validator.normalizeRules(t.extend({},t.validator.classRules(S),t.validator.attributeRules(S),t.validator.dataRules(S),t.validator.staticRules(S)),S),rt.required&&(q=rt.required,delete rt.required,rt=t.extend({required:q},rt)),rt.remote&&(q=rt.remote,delete rt.remote,rt=t.extend(rt,{remote:q})),rt}}});var s=function(u){return u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};t.extend(t.expr.pseudos||t.expr[":"],{blank:function(u){return!s(""+t(u).val())},filled:function(u){var d=t(u).val();return d!==null&&!!s(""+d)},unchecked:function(u){return!t(u).prop("checked")}}),t.validator=function(u,d){this.settings=t.extend(!0,{},t.validator.defaults,u),this.currentForm=d,this.init()},t.validator.format=function(u,d){return arguments.length===1?function(){var S=t.makeArray(arguments);return S.unshift(u),t.validator.format.apply(this,S)}:(d===void 0||(arguments.length>2&&d.constructor!==Array&&(d=t.makeArray(arguments).slice(1)),d.constructor!==Array&&(d=[d]),t.each(d,function(S,I){u=u.replace(new RegExp("\\{"+S+"\\}","g"),function(){return I})})),u)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(u){this.lastActive=u,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,u,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(u)))},onfocusout:function(u){!this.checkable(u)&&(u.name in this.submitted||!this.optional(u))&&this.element(u)},onkeyup:function(u,d){var S=[16,17,18,20,35,36,37,38,39,40,45,144,225];d.which===9&&this.elementValue(u)===""||t.inArray(d.keyCode,S)!==-1||(u.name in this.submitted||u.name in this.invalid)&&this.element(u)},onclick:function(u){u.name in this.submitted?this.element(u):u.parentNode.name in this.submitted&&this.element(u.parentNode)},highlight:function(u,d,S){u.type==="radio"?this.findByName(u.name).addClass(d).removeClass(S):t(u).addClass(d).removeClass(S)},unhighlight:function(u,d,S){u.type==="radio"?this.findByName(u.name).removeClass(d).addClass(S):t(u).removeClass(d).addClass(S)}},setDefaults:function(u){t.extend(t.validator.defaults,u)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:t.validator.format("Please enter no more than {0} characters."),minlength:t.validator.format("Please enter at least {0} characters."),rangelength:t.validator.format("Please enter a value between {0} and {1} characters long."),range:t.validator.format("Please enter a value between {0} and {1}."),max:t.validator.format("Please enter a value less than or equal to {0}."),min:t.validator.format("Please enter a value greater than or equal to {0}."),step:t.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currentForm),this.containers=t(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var u=this.currentForm,d=this.groups={},S;t.each(this.settings.groups,function(Z,ct){typeof ct=="string"&&(ct=ct.split(/\s/)),t.each(ct,function(nt,rt){d[rt]=Z})}),S=this.settings.rules,t.each(S,function(Z,ct){S[Z]=t.validator.normalizeRule(ct)});function I(Z){var ct=typeof t(this).attr("contenteditable")<"u"&&t(this).attr("contenteditable")!=="false";if(!this.form&&ct&&(this.form=t(this).closest("form")[0],this.name=t(this).attr("name")),u===this.form){var nt=t.data(this.form,"validator"),rt="on"+Z.type.replace(/^validate/,""),q=nt.settings;q[rt]&&!t(this).is(q.ignore)&&q[rt].call(nt,this,Z)}}t(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",I).on("click.validate","select, option, [type='radio'], [type='checkbox']",I),this.settings.invalidHandler&&t(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),t.extend(this.submitted,this.errorMap),this.invalid=t.extend({},this.errorMap),this.valid()||t(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var u=0,d=this.currentElements=this.elements();d[u];u++)this.check(d[u]);return this.valid()},element:function(u){var d=this.clean(u),S=this.validationTargetFor(d),I=this,Z=!0,ct,nt;return S===void 0?delete this.invalid[d.name]:(this.prepareElement(S),this.currentElements=t(S),nt=this.groups[S.name],nt&&t.each(this.groups,function(rt,q){q===nt&&rt!==S.name&&(d=I.val
108idationTargetFor(I.clean(I.findByName(rt))),d&&d.name in I.invalid&&(I.currentElements.push(d),Z=I.check(d)&&Z))}),ct=this.check(S)!==!1,Z=Z&&ct,ct?this.invalid[S.name]=!1:this.invalid[S.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),t(u).attr("aria-invalid",!ct)),Z},showErrors:function(u){if(u){var d=this;t.extend(this.errorMap,u),this.errorList=t.map(this.errorMap,function(S,I){return{message:S,element:d.findByName(I)[0]}}),this.successList=t.grep(this.successList,function(S){return!(S.name in u)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){t.fn.resetForm&&t(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var u=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(u)},resetElements:function(u){var d;if(this.settings.unhighlight)for(d=0;u[d];d++)this.settings.unhighlight.call(this,u[d],this.settings.errorClass,""),this.findByName(u[d].name).removeClass(this.settings.validClass);else u.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(u){var d=0,S;for(S in u)u[S]!==void 0&&u[S]!==null&&u[S]!==!1&&d++;return d},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(u){u.not(this.containers).text(""),this.addWrapper(u).hide()},valid:function(){return this.size()===0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{t(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").trigger("focus").trigger("focusin")}catch{}},findLastActive:function(){var u=this.lastActive;return u&&t.grep(this.errorList,function(d){return d.element.name===u.name}).length===1&&u},elements:function(){var u=this,d={};return t(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var S=this.name||t(this).attr("name"),I=typeof t(this).attr("contenteditable")<"u"&&t(this).attr("contenteditable")!=="false";return!S&&u.settings.debug&&window.console&&console.error("%o has no name assigned",this),I&&(this.form=t(this).closest("form")[0],this.name=S),this.form!==u.currentForm||S in d||!u.objectLength(t(this).rules())?!1:(d[S]=!0,!0)})},clean:function(u){return t(u)[0]},errors:function(){var u=this.settings.errorClass.split(" ").join(".");return t(this.settings.errorElement+"."+u,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=t([]),this.toHide=t([])},reset:function(){this.resetInternals(),this.currentElements=t([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(u){this.reset(),this.toHide=this.errorsFor(u)},elementValue:function(u){var d=t(u),S=u.type,I=typeof d.attr("contenteditable")<"u"&&d.attr("contenteditable")!=="false",Z,ct;return S==="radio"||S==="checkbox"?this.findByName(u.name).filter(":checked").val():S==="number"&&typeof u.validity<"u"?u.validity.badInput?"NaN":d.val():(I?Z=d.text():Z=d.val(),S==="file"?Z.substr(0,12)==="C:\\fakepath\\"?Z.substr(12):(ct=Z.lastIndexOf("/"),ct>=0||(ct=Z.lastIndexOf("\\"),ct>=0)?Z.substr(ct+1):Z):typeof Z=="string"?Z.replace(/\r/g,""):Z)},check:function(u){u=this.validationTargetFor(this.clean(u));var d=t(u).rules(),S=t.map(d,function(J,ht){return ht}).length,I=!1,Z=this.elementValue(u),ct,nt,rt,q;typeof d.normalizer=="function"?q=d.normalizer:typeof this.settings.normalizer=="function"&&(q=this.settings.normalizer),q&&(Z=q.call(u,Z),delete d.normalizer);for(nt in d){rt={method:nt,parameters:d[nt]};try{if(ct=t.validator.methods[nt].call(this,Z,u,rt.parameters),ct==="dependency-mismatch"&&S===1){I=!0;continue}if(I=!1,ct==="pending"){this.toHide=this.toHide.not(this.errorsFor(u));return}if(!ct)return this.formatAndAdd(u,rt),!1}catch(J){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+u.id+", check the '"+rt.method+"' method.",J),J instanceof TypeError&&(J.message+=".  Exception occurred when checking element "+u.id+", check the '"+rt.method+"' method."),J}}if(!I)return this.objectLength(d)&&this.successList.push(u),!0},customDataMessage:function(u,d){return t(u).data("msg"+d.charAt(0).toUpperCase()+d.substring(1).toLowerCase())||t(u).data("msg")},customMessage:function(u,d){var S=this.settings.messages[u];return S&&(S.constructor===String?S:S[d])},findDefined:function(){for(var u=0;u<arguments.length;u++)if(arguments[u]!==void 0)return arguments[u]}
108,defaultMessage:function(u,d){typeof d=="string"&&(d={method:d});var S=this.findDefined(this.customMessage(u.name,d.method),this.customDataMessage(u,d.method),!this.settings.ignoreTitle&&u.title||void 0,t.validator.messages[d.method],"<strong>Warning: No message defined for "+u.name+"</strong>"),I=/\$?\{(\d+)\}/g;return typeof S=="function"?S=S.call(this,d.parameters,u):I.test(S)&&(S=t.validator.format(S.replace(I,"{$1}"),d.parameters)),S},formatAndAdd:function(u,d){var S=this.defaultMessage(u,d);this.errorList.push({message:S,element:u,method:d.method}),this.errorMap[u.name]=S,this.submitted[u.name]=S},addWrapper:function(u){return this.settings.wrapper&&(u=u.add(u.parent(this.settings.wrapper))),u},defaultShowErrors:function(){var u,d,S;for(u=0;this.errorList[u];u++)S=this.errorList[u],this.settings.highlight&&this.settings.highlight.call(this,S.element,this.settings.errorClass,this.settings.validClass),this.showLabel(S.element,S.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(u=0;this.successList[u];u++)this.showLabel(this.successList[u]);if(this.settings.unhighlight)for(u=0,d=this.validElements();d[u];u++)this.settings.unhighlight.call(this,d[u],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return t(this.errorList).map(function(){return this.element})},showLabel:function(u,d){var S,I,Z,ct,nt=this.errorsFor(u),rt=this.idOrName(u),q=t(u).attr("aria-describedby");nt.length?(nt.removeClass(this.settings.validClass).addClass(this.settings.errorClass),nt.html(d)):(nt=t("<"+this.settings.errorElement+">").attr("id",rt+"-error").addClass(this.settings.errorClass).html(d||""),S=nt,this.settings.wrapper&&(S=nt.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(S):this.settings.errorPlacement?this.settings.errorPlacement.call(this,S,t(u)):S.insertAfter(u),nt.is("label")?nt.attr("for",rt):nt.parents("label[for='"+this.escapeCssMeta(rt)+"']").length===0&&(Z=nt.attr("id"),q?q.match(new RegExp("\\b"+this.escapeCssMeta(Z)+"\\b"))||(q+=" "+Z):q=Z,t(u).attr("aria-describedby",q),I=this.groups[u.name],I&&(ct=this,t.each(ct.groups,function(J,ht){ht===I&&t("[name='"+ct.escapeCssMeta(J)+"']",ct.currentForm).attr("aria-describedby",nt.attr("id"))})))),!d&&this.settings.success&&(nt.text(""),typeof this.settings.success=="string"?nt.addClass(this.settings.success):this.settings.success(nt,u)),this.toShow=this.toShow.add(nt)},errorsFor:function(u){var d=this.escapeCssMeta(this.idOrName(u)),S=t(u).attr("aria-describedby"),I="label[for='"+d+"'], label[for='"+d+"'] *";return S&&(I=I+", #"+this.escapeCssMeta(S).replace(/\s+/g,", #")),this.errors().filter(I)},escapeCssMeta:function(u){return u.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(u){return this.groups[u.name]||(this.checkable(u)?u.name:u.id||u.name)},validationTargetFor:function(u){return this.checkable(u)&&(u=this.findByName(u.name)),t(u).not(this.settings.ignore)[0]},checkable:function(u){return/radio|checkbox/i.test(u.type)},findByName:function(u){return t(this.currentForm).find("[name='"+this.escapeCssMeta(u)+"']")},getLength:function(u,d){switch(d.nodeName.toLowerCase()){case"select":return t("option:selected",d).length;case"input":if(this.checkable(d))return this.findByName(d.name).filter(":checked").length}return u.length},depend:function(u,d){return this.dependTypes[typeof u]?this.dependTypes[typeof u](u,d):!0},dependTypes:{boolean:function(u){return u},string:function(u,d){return!!t(u,d.form).length},function:function(u,d){return u(d)}},optional:function(u){var d=this.elementValue(u);return!t.validator.methods.required.call(this,d,u)&&"dependency-mismatch"},startRequest:function(u){this.pending[u.name]||(this.pendingRequest++,t(u).addClass(this.settings.pendingClass),this.pending[u.name]=!0)},stopRequest:function(u,d){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[u.name],t(u).removeClass(this.settings.pendingClass),d&&this.pendingRequest===0&&this.formSubmitted&&this.form()?(t(this.currentForm).submit(),this.submitButton&&t("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!d&&this.pendingRequest===0&&this.formSubmitted&&(t(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)}
108,previousValue:function(u,d){return d=typeof d=="string"&&d||"remote",t.data(u,"previousValue")||t.data(u,"previousValue",{old:null,valid:!0,message:this.defaultMessage(u,{method:d})})},destroy:function(){this.resetForm(),t(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(u,d){u.constructor===String?this.classRuleSettings[u]=d:t.extend(this.classRuleSettings,u)},classRules:function(u){var d={},S=t(u).attr("class");return S&&t.each(S.split(" "),function(){this in t.validator.classRuleSettings&&t.extend(d,t.validator.classRuleSettings[this])}),d},normalizeAttributeRule:function(u,d,S,I){/min|max|step/.test(S)&&(d===null||/number|range|text/.test(d))&&(I=Number(I),isNaN(I)&&(I=void 0)),I||I===0?u[S]=I:d===S&&d!=="range"&&(u[S]=!0)},attributeRules:function(u){var d={},S=t(u),I=u.getAttribute("type"),Z,ct;for(Z in t.validator.methods)Z==="required"?(ct=u.getAttribute(Z),ct===""&&(ct=!0),ct=!!ct):ct=S.attr(Z),this.normalizeAttributeRule(d,I,Z,ct);return d.maxlength&&/-1|2147483647|524288/.test(d.maxlength)&&delete d.maxlength,d},dataRules:function(u){var d={},S=t(u),I=u.getAttribute("type"),Z,ct;for(Z in t.validator.methods)ct=S.data("rule"+Z.charAt(0).toUpperCase()+Z.substring(1).toLowerCase()),ct===""&&(ct=!0),this.normalizeAttributeRule(d,I,Z,ct);return d},staticRules:function(u){var d={},S=t.data(u.form,"validator");return S.settings.rules&&(d=t.validator.normalizeRule(S.settings.rules[u.name])||{}),d},normalizeRules:function(u,d){return t.each(u,function(S,I){if(I===!1){delete u[S];return}if(I.param||I.depends){var Z=!0;switch(typeof I.depends){case"string":Z=!!t(I.depends,d.form).length;break;case"function":Z=I.depends.call(d,d);break}Z?u[S]=I.param!==void 0?I.param:!0:(t.data(d.form,"validator").resetElements(t(d)),delete u[S])}}),t.each(u,function(S,I){u[S]=typeof I=="function"&&S!=="normalizer"?I(d):I}),t.each(["minlength","maxlength"],function(){u[this]&&(u[this]=Number(u[this]))}),t.each(["rangelength","range"],function(){var S;u[this]&&(Array.isArray(u[this])?u[this]=[Number(u[this][0]),Number(u[this][1])]:typeof u[this]=="string"&&(S=u[this].replace(/[\[\]]/g,"").split(/[\s,]+/),u[this]=[Number(S[0]),Number(S[1])]))}),t.validator.autoCreateRanges&&(u.min!=null&&u.max!=null&&(u.range=[u.min,u.max],delete u.min,delete u.max),u.minlength!=null&&u.maxlength!=null&&(u.rangelength=[u.minlength,u.maxlength],delete u.minlength,delete u.maxlength)),u},normalizeRule:function(u){if(typeof u=="string"){var d={};t.each(u.split(/\s/),function(){d[this]=!0}),u=d}return u},addMethod:function(u,d,S){t.validator.methods[u]=d,t.validator.messages[u]=S!==void 0?S:t.validator.messages[u],d.length<3&&t.validator.addClassRules(u,t.validator.normalizeRule(u))},methods:{required:function(u,d,S){if(!this.depend(S,d))return"dependency-mismatch";if(d.nodeName.toLowerCase()==="select"){var I=t(d).val();return I&&I.length>0}return this.checkable(d)?this.getLength(u,d)>0:u!=null&&u.length>0},email:function(u,d){return this.optional(d)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(u)},url:function(u,d){return this.optional(d)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(u)},date:function(){var u=!1;return function(d,S){return u||(u=!0,this.settings.debug&&window.console&&console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\nPlease don't use it, since it relies on the Date constructor, which\nbehaves very differently across browsers and locales. Use `dateISO`\ninstead or one of the locale specific methods in `localizations/`\nand `additional-methods.js`.")),this.optional(S)||!/Invalid|NaN/.test(new Date(d).toString())}}(),dateISO:function(u,d){return this.optional(d)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(u)},number:function(u,d){return this.optional(d)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(u)},digits:function(u,d){return this.optional(d)||/^\d+$/.test(u)},minlength:function(u,d,S){var I=Array.isArray(u)?u.length:this.getLength(u,d);return this.optional(d)||I>=S},maxlength:function(u,d,S){var I=Array.isArray(u)?u.length:this.getLength(u,d);return this.optional(d)||I<=S},rangelength:function(u,d,S){var I=Array.isArray(u)?u.length:this.getLength(u,d);return this.optional(d)||I>=S[0]&&I<=S[1]},min:function(u,d,S){return this.optional(d)||u>=S},max:function(u,d,S){return this.optional(d)||u<=S},range:function(u,d,S){return this.optional(d)||u>=S[0]&&u<=S[1]},step:function(u,d,S){var I=t(d).attr("type"),Z="Step attribute on input type "+I+" is not supported.",ct=["text","number","range"],nt=ne
108w RegExp("\\b"+I+"\\b"),rt=I&&!nt.test(ct.join()),q=function(Et){var x=(""+Et).match(/(?:\.(\d+))?$/);return x&&x[1]?x[1].length:0},J=function(Et){return Math.round(Et*Math.pow(10,xt))},ht=!0,xt;if(rt)throw new Error(Z);return xt=q(S),(q(u)>xt||J(u)%J(S)!==0)&&(ht=!1),this.optional(d)||ht},equalTo:function(u,d,S){var I=t(S);return this.settings.onfocusout&&I.not(".validate-equalTo-blur").length&&I.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){t(d).valid()}),u===I.val()},remote:function(u,d,S,I){if(this.optional(d))return"dependency-mismatch";I=typeof I=="string"&&I||"remote";var Z=this.previousValue(d,I),ct,nt,rt;return this.settings.messages[d.name]||(this.settings.messages[d.name]={}),Z.originalMessage=Z.originalMessage||this.settings.messages[d.name][I],this.settings.messages[d.name][I]=Z.message,S=typeof S=="string"&&{url:S}||S,rt=t.param(t.extend({data:u},S.data)),Z.old===rt?Z.valid:(Z.old=rt,ct=this,this.startRequest(d),nt={},nt[d.name]=u,t.ajax(t.extend(!0,{mode:"abort",port:"validate"+d.name,dataType:"json",data:nt,context:ct.currentForm,success:function(q){var J=q===!0||q==="true",ht,xt,Et;ct.settings.messages[d.name][I]=Z.originalMessage,J?(Et=ct.formSubmitted,ct.resetInternals(),ct.toHide=ct.errorsFor(d),ct.formSubmitted=Et,ct.successList.push(d),ct.invalid[d.name]=!1,ct.showErrors()):(ht={},xt=q||ct.defaultMessage(d,{method:I,parameters:u}),ht[d.name]=Z.message=xt,ct.invalid[d.name]=!0,ct.showErrors(ht)),Z.valid=J,ct.stopRequest(d,J)}},S)),"pending")}}});var e={},c;return t.ajaxPrefilter?t.ajaxPrefilter(function(u,d,S){var I=u.port;u.mode==="abort"&&(e[I]&&e[I].abort(),e[I]=S)}):(c=t.ajax,t.ajax=function(u){var d=("mode"in u?u:t.ajaxSettings).mode,S=("port"in u?u:t.ajaxSettings).port;return d==="abort"?(e[S]&&e[S].abort(),e[S]=c.apply(this,arguments),e[S]):c.apply(this,arguments)}),t});function vo(){if(!arguments.length)return!1;for(var t=0,s=arguments.length;t<s;t++)if(typeof arguments[t]!="function")return!1;return!0}function Do(){if(!arguments.length)return!1;for(var t=0,s=arguments.length;t<s;t++)if(typeof arguments[t]>"u")return!1;return!0}function Hr(){z.debug&&window.console&&vo(window.console.warn)&&(console.warn.apply(console,arguments),z.debugTrace&&console.trace())}function Ko(){z.debug&&window.console&&vo(window.console.info)&&(console.info.apply(console,arguments),z.debugTrace&&console.trace())}function ke(t,s){var e=function(){};e.prototype=s.prototype,t.superClass_=s.prototype,t.prototype=new e,t.prototype.constructor=t}function Ks(t,s){return parseInt(""+t,10)}function Qs(t){return t.button||t.ctrlKey||t.shiftKey||t.altKey||t.metaKey}function Ar(t,s,e){var c;return function(){var u=this,d=arguments,S=function(){c=null,s.apply(u,d)};clearTimeout(c),c=setTimeout(S,t)}}function Zr(t,s){var e,c;return function(){var u=this,d=+new Date,S=arguments;e&&d<e+t?(clearTimeout(c),c=setTimeout(function(){e=d,s.apply(u,S)},t)):(e=d,s.apply(u,S))}}function Eo(){return document.documentElement.lang}function Zs(){return document.documentElement.dataset.initialCountry}function Js(){const t=document.documentElement.dataset.countries,s=/[a-zA-Z]{2}(?=(?:\s*,\s*|\s*)|$)/g,e=[];let c;for(;(c=s.exec(t))!==null;){const u=c[0].trim();e.push(u)}return e}const ir=350;function To(t,s,e){const c=new Date;c.setTime(c.getTime()+e*24*60*60*1e3),document.cookie=`${t}=${s};expires=${c.toUTCString()};path=/`}function qo(t){document.cookie=`${t}=;expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/`}function ms(t){const s=`${t}=`,e=decodeURIComponent(document.cookie).split(";").find(c=>c.trimStart().startsWith(s));return e?e.trimStart().substring(s.length):!1}function gs(t,s=[]){const e=ms(t);if(!e)return s;try{return JSON.parse(e)}catch{return s}}function Qo(t,s){var e,c,u=s;this.pause=function(){window.clearTimeout(e),e=null,u-=Date.now()-c},this.resume=function(){e||(c=Date.now(),e=window.setTimeout(t,u))},this.clear=function(){window.clearTimeout(e)},this.resume()}function Zo(){var t=window,s="inner";return"innerWidth"in window||(s="client",t=document.documentElement||document.body),{width:t[s+"Width"],height:t[s+"Height"]}}function Bn(t,s){const e=new IntersectionObserver(c=>{c.some(({isIntersecting:u})=>u)&&(e.disconnect(),s())});e.observe(t.get(0))}function vs(t){return t=t.charAt(0).toLowerCase()+t.slice(1),t.replace(/[A-Z]/g,s=>`-${s.toLowerCase()}`)}function ta(t){return t.replace(/-([a-z])/g,(s,e)=>e.toUpperCase())}function ea(){return"_"+Math.random().toString(36).substr(2,9)}function Jo(t,s){const[e,c=""]=t.split("?"),u=new URLSearchParams(c),d=[];
108for(const[S,I]of u.entries())!(S in s)&&I!==""&&d.push(`${S}=${encodeURIComponent(I)}`);for(const[S,I]of Object.entries(s))I==null||I===""||Array.isArray(I)&&I.length===0||(Array.isArray(I)?I.forEach(Z=>{Z!==""&&d.push(`${S}=${encodeURIComponent(Z)}`)}):d.push(`${S}=${encodeURIComponent(I)}`));return d.length?`${e}?${d.join("&")}`:e}var z=z||{};z.service=z.service||{},z.service.Config=function(){this.data={},this.loadConfig()},z.service.Config.prototype.loadConfig=function(){const t=document.querySelector("script[data-config]");if(t)try{const s=JSON.parse(t.textContent);this.data=s||{}}catch(s){console.warn("Invalid config JSON:",s)}},z.service.Config.prototype.getNameSpace=function(t){return this.data[t]||{}},z.service.Config.prototype.getEndpoints=function(){return this.getNameSpace("endpoints")};var z=z||{};z.service=z.service||{},z.service.Translator=function(){this.messages={},this.loadTranslations()},z.service.Translator.PLACEHOLDER=/%%|%(\d+\$)?([sd])/g,z.service.Translator.format=function(t,s){if(typeof t!="string"||!s||!s.length)return t;let e=0;return t.replace(z.service.Translator.PLACEHOLDER,function(c,u,d){if(c==="%%")return"%";const S=u?parseInt(u,10)-1:e++,I=s[S];if(I===void 0)return console.warn(`Missing value for "${c}" in translation "${t}"`),c;if(d==="d"){const Z=parseInt(I,10);return String(Number.isNaN(Z)?0:Z)}return String(I)})},z.service.Translator.prototype.loadTranslations=function(){const t=document.querySelector("script[data-translator]");if(t)try{const s=JSON.parse(t.textContent);this.messages=s||{}}catch(s){console.warn("Invalid translation JSON:",s)}},z.service.Translator.prototype.get=function(t,s,...e){const c=s.split(".").reduce((u,d)=>u==null?void 0:u[d],this.messages[t]);return typeof c!="string"?null:z.service.Translator.format(c,e)},z.service.Translator.prototype.getNameSpace=function(t){const s=this.messages[t]||{};return{get(e,...c){const u=e.split(".").reduce((d,S)=>d==null?void 0:d[S],s);return typeof u=="string"?z.service.Translator.format(u,c):(console.warn(`Missing translation for "${t}.${e}"`),e)}}};var z=z||{};z.Dependencies=function(){this.list={},this.instances={}},z.Dependencies.prototype.get=function(t){return this.instances[t]?this.instances[t]:typeof this.list[t]=="function"?this.instantiate_(t):(Hr("Závislost s názvem '"+t+"' není registrována v bootstrap.js."),null)},z.Dependencies.prototype.getConstructor=function(t){return this.list[t]?this.list[t]:(Hr("Závislost s názvem '"+t+"' není registrována v bootstrap.js."),null)},z.Dependencies.prototype.instantiate_=function(t){return this.instances[t]=new this.list[t](this)},z.Dependencies.prototype.register=function(t,s){if(this.list[t])throw new Error("Název závislosti '"+t+"' je již zaregistrován.");if(!Do(s)&&z.debug)throw new Error("Závislost s názvem '"+t+"' nebyla nalezena.");this.list[t]=s},z.Dependencies.prototype.unregister=function(t){if(!this.list[t]){Hr("Závislost s názvem '"+t+"' není registrována, nelze odregistrovat.");return}delete this.list[t],delete this.instances[t]};var z=z||{};z.service=z.service||{},z.service.Component=function(t){},z.service.Component.prototype.get=function(t){return t instanceof jQuery||(t=$(t)),t.data("componentInstance")};var z=z||{};z.Component=function(t){this.element=t,this.elementNode=t.get(0),this.busy=!1,this.busyOverlay=null,this.switchToDefaultRedrawType(),this.redrawer=null},z.Component.EventType={CLICK:"click"},z.Component.RedrawType={REPLACE:"-replace",APPEND:"-append"},z.Component.prototype.prepare=function(){},z.Component.prototype.setApplication=function(t){this.application=t},z.Component.prototype.getApplication=function(){return this.application},z.Component.prototype.createRequest=function(){return this.getApplication().createRequest()},z.Component.prototype.createTemplate=function(){return this.getApplication().createTemplate()},z.Component.prototype.createPopup=function(t,s){return this.getApplication().createPopup(t,s)},z.Component.prototype.redraw=function(t,s){if(this.destroy(),!this.redrawer||this.redrawer&&this.redrawer(this.element,t)===!1)switch(this.redrawType){case z.Component.RedrawType.REPLACE:this.element.empty().html(t);break;case z.Component.RedrawType.APPEND:this.element.append(t);break}this.application.loadComponents(this.element)},z.Component.prototype.setBusy=function(t,s){if(this.busy!==t){var e=this;if(this.busy=t,s){if(typeof s=="string"){var c=$(s).appendTo(this.element),u=this.getApplication().componentFactory.getConstructor("overlay");s=this.getApplication().createComponent(u,c)}s.show(),this.busyOverlay=s,$(this.busyOverlay).on(z.component.Overlay.EventTypes.HIDE,function(){e.busyOverlay.remove(),e.busyOverlay=null})}!t&&this.busyOverlay&&this.busyOverlay.hide()}},z.Component.prototype.isBusy=function(){return this.busy},z.Component.prototype.redirect=function(t){this.getApplication().redirect(t)},z.Component.prototype.translate=function(t,s,e){return this.getApplication().translate(t,s,e)},z.Component.prototype.switchToDefaultRedrawType=function(){this.redrawType=z.Component.RedrawType.REPLACE},z.Component.prototype.setRedrawType=function(t){this.redrawType=t},z.Component.prototype.setRedrawer=function(t){this.redrawer=t},z.Component.prototype.destroy=function(){};var z=z||{};z.Request=function(t,s){this.url=t||document.URL,this.data=s||{},this.options={},this.successCallbacks=[],this.errorCallbacks=[],this.finalCallbacks=[],this.method="get",this.saveHistory=!0,this.xhr=null,this.historyUrl="",this.historyUrlFallback="",this.addSuccessCallback(this.handleSuccessRequest.bind(this))},z.Request.EventTypes={BEFORE_SEND:"-beforesend",COMPLETE:"-complete"},z.Request.defaultError="Při komunikaci se serverem došlo k chybě.",z.Request.prototype.handleSuccessRequest=function(t,s,e,c){if(!(t&&t.redirect)){if(window.history&&vo(window.history.pushState)&&this.getMethod()==="get"&&this.get
108SaveHistory()){var u=c.replace(/&?_=[0-9]*/,"").replace("?&","?").replace(/\/\?$/,"/");if(this.historyUrlFallback&&(u=this.historyUrlFallback),t.seoUrl&&(u=t.seoUrl),t.ajax&&t.ajax.url&&(u=t.ajax.url),this.historyUrl&&(u=this.historyUrl),window.history.state===null||!window.history.state.redirectAfterPop){var d=history.state||{};d.redirectAfterPop=!0,window.history.replaceState(d,null,window.location.href)}window.history.pushState({url:u,scrollTop:$("body").scrollTop(),redirectAfterPop:!0},document.title,u)}this.setMetaTags(t)}},z.Request.prototype.setMetaTags=function(t){t&&($("title").text(t.seoTitle),$('meta[name="description"]').attr("content",t.seoDescription),$('meta[name="keywords"]').attr("content",t.seoKeywords),$('meta[name="robots"]').attr("content",t.seoRobots),$('meta[name="canonical"]').remove(),$('meta[name="canonical"]').after(t.seoCanonical))},z.Request.prototype.setUrl=function(t){return this.url=t,this},z.Request.prototype.getUrl=function(){return this.url},z.Request.prototype.urlPrefix=function(t){var s=$("html").data("url-prefix");return s&&s.charAt(0)==="/"&&(t=s+t,t=t.replace("//","/")),t},z.Request.prototype.addSuccessCallback=function(t){return this.successCallbacks.push(t),this},z.Request.prototype.addErrorCallback=function(t){return this.errorCallbacks.push(t),this},z.Request.prototype.addFinalCallback=function(t){return this.finalCallbacks.push(t),this},z.Request.prototype.setSuccess=function(t){return this.addSuccessCallback(t),this},z.Request.prototype.setError=function(t){return this.addErrorCallback(t),this},z.Request.prototype.addData=function(t){return $.extend(this.data,t),this},z.Request.prototype.setData=function(t){return this.data=t,this},z.Request.prototype.getData=function(){return this.data},z.Request.prototype.send=function(t){this.url||Hr("URL požadavku nebyla nastavena, bude použitá: "+window.location.href);var s=this.urlPrefix(this.url||window.location.href),e=s.split("#")[1]||null;if(t&&this.setMethod(t),this.data instanceof FormData)var c={dataType:"json",processData:!1,contentType:!1,cache:!1};else var c={dataType:"json"};var u=$.extend(c,this.options);u.data=this.data,u.type=this.method;var d=this;return this.successCallbacks.length&&(u.success=function(S,I,Z){$(d).trigger(z.Request.EventTypes.COMPLETE);for(var ct=this.url+(e!==null?"#"+e:""),nt=0,rt=d.successCallbacks.length;nt<rt;nt++){var q=d.successCallbacks[nt];q(S,I,Z,ct,d.data)}}),this.errorCallbacks.length&&(u.error=function(S,I,Z){$(d).trigger(z.Request.EventTypes.COMPLETE);var ct=this.url;if(I!=="abort")for(var nt=d.errorCallbacks.length-1;nt>=0;nt--){var rt=d.errorCallbacks[nt],q;if(q=rt(S,I,Z,ct,d.data),q===!1)break}}),$(this).trigger(z.Request.EventTypes.BEFORE_SEND),this.xhr=$.ajax(s,u).always(function(S){for(var I=0,Z=d.finalCallbacks.length;I<Z;I++){var ct=d.finalCallbacks[I];ct(S,d.data)}}),this.xhr},z.Request.prototype.setOptions=function(t){return this.options=t,this},z.Request.prototype.getOptions=function(){return this.options||{}},z.Request.prototype.setMethod=function(t){return t=t.toLowerCase(),t==="get"||t==="post"?this.method=t:(this.method="get",Hr("Neplatný argument pro nastavení metody odesílání požadavku, nastavena výchozi get.",t)),this},z.Request.prototype.getMethod=function(){return this.method},z.Request.prototype.get=function(){return this.send()},z.Request.prototype.post=function(){return this.send("post")},z.Request.prototype.setSaveHistory=function(t){return this.saveHistory=t,this},z.Request.prototype.getSaveHistory=function(){return this.saveHistory},z.Request.prototype.getXhr=function(){return this.xhr},z.Request.prototype.setHistoryUrl=function(t){return this.historyUrl=t,this},z.Request.prototype.setHistoryUrlFallback=function(t){return this.historyUrlFallback=t,this};var z=z||{};z.service=z.service||{},z.service.Statistics=function(){},z.service.Statistics.VIEW_TYPES={PRODUCT:{endpoint:"productView",createPayload:function(t){return{productId:t}}}},z.service.Statistics.prototype.setApplication=function(t){this.application=t},z.service.Statistics.prototype.getApplication=function(){return this.application},z.service.Statistics.prototype.init=function(){this.dependencies={config:this.getApplication().dependencyFactory.get("config")},this.endpoints=this.dependencies.config.getEndpoints(),this.addEvents(),this.sendViews()},z.service.Statistics.prototype.addEvents=function(){$("[data-statistics-click]").on("click",this.handleClickEvent.bind(this))},z.service.Statistics.prototype.handleClickEvent=function(t){const s=t.currentTarget,e=this.getId(s),c=this.getType(s);
108e&&c&&this.makeRequest(e,c)},z.service.Statistics.prototype.getId=function(t){return t.dataset.statisticsId||null},z.service.Statistics.prototype.getType=function(t){return t.dataset.statisticsType||null},z.service.Statistics.prototype.makeRequest=async function(t,s){try{await fetch(this.endpoints.statistics.send,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({objectId:t,objectType:s})})}catch(e){console.warn("Error sending statistics:",e)}},z.service.Statistics.prototype.sendViews=function(){document.querySelectorAll("[data-statistics-view]").forEach(this.sendView.bind(this))},z.service.Statistics.prototype.sendView=function(t){const s=this.getView(t);if(!s)return;const e=z.service.Statistics.VIEW_TYPES[s.objectType];if(!e||!s.objectId)return;const c=(this.endpoints.statistics||{})[e.endpoint];c&&this.makeViewRequest(c,e.createPayload(s.objectId))},z.service.Statistics.prototype.getView=function(t){try{return JSON.parse(t.textContent)}catch(s){return console.warn("Invalid statistics view data:",s),null}},z.service.Statistics.prototype.makeViewRequest=async function(t,s){try{await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)})}catch(e){console.warn("Error sending view statistics:",e)}};var a=a||{};a.service=a.service||{},a.service.ProgressBar=function(){window.NProgress&&NProgress.configure({showSpinner:!1})},a.service.ProgressBar.prototype.start=function(){window.NProgress&&NProgress.start()},a.service.ProgressBar.prototype.restart=function(){window.NProgress&&NProgress.set(0)},a.service.ProgressBar.prototype.done=function(){window.NProgress&&NProgress.done()};var z=z||{};z.version="1.2.3",z.Application=function(t,s,e,c){this.dependencyFactory=s,this.componentFactory=t,this.request=e,this.statistics=s.get("statistics"),this.progressBar=s.get("progressBar"),this.variables=s.get("variables"),this.availableArea=s.get("availableArea"),this.ajax=c,this.onStartup=null,this.onError=null,this.requests=[],this.locale=$("html").attr("lang")||null,this.locale===null&&Hr("Není nastavena lokalizace."),this.config={},this.unloading=!1;let u=null;window.addEventListener("beforeunload",(function(){this.unloading=!0,clearTimeout(u),u=setTimeout((function(){this.unloading=!1}).bind(this),1e4)}).bind(this)),window.addEventListener("pagehide",(function(){clearTimeout(u),this.unloading=!0}).bind(this)),window.addEventListener("pageshow",(function(){clearTimeout(u),this.unloading=!1}).bind(this)),this.checkRequiredDependencies_()},z.Application.Attributes={COMPONENT:"data-component",DISABLEAFTERSUBMIT:"data-disable-after-submit"},z.Application.LOG_COLLECTOR_URL="https://logs.emorfiq.app/api/ingest",z.Application.prototype.isLogCollectorEnabled=function(){const t=this.dependencyFactory.get("config").getNameSpace("ajax").logErrors;return t===!0||t==="1"},z.Application.prototype.initPlugins=function(t){},z.Application.prototype.run=function(){try{this.initPlugins(),this.variables.boot(),vo(this.onStartup)&&this.onStartup(this),this.loadComponents()}catch(t){console.error(t)}},z.Application.prototype.loadComponents=function(t){t instanceof $||(t=$(t||document.body));for(var s=t.find("["+z.Application.Attributes.COMPONENT+"]"),e=s.length,c=0;c<e;c++)this.loadComponent_($(s[c]));e===0&&Ko("Kontext neobsahuje žádné další komponenty.",t)},z.Application.prototype.getComponentName_=function(t){return t.attr(z.Application.Attributes.COMPONENT)},z.Application.prototype.loadComponent_=function(t){var s=this.getComponentName_(t),e=this.componentFactory.getConstructor(s);if(!vo(e)){Hr("Komponenta s názvem '"+s+"' není zaregistrována, zkontroluj bootstrap.js.");return}if(t.data("componentInstance")){t.data("componentInstance")instanceof e||Hr("Element",t," je již svázán s komponentou:",s);return}if(z.debug&&z.debugComponents&&$.inArray(s,z.debugComponents)===-1){Hr("Komponenta '"+s+"' se nebude načítat, z důvodu debugování jiných komponent určených v pb.debugComponents v bootstrap.js.");return}this.createComponent(e,t)},z.Application.prototype.immediateLoadComponent=function(t){var s;if(t?s=$("#"+t):s=$("script").last().prev("["+z.Application.Attributes.COMPONENT+"]"),!s.length){Hr("Element, pro který se má okamžitě načíst komponenta neexistuje",s);return}Ko("Okamžité načtení komponenty:"),this.loadComponent_(s)},z.Application.prototype.createComponent=function(t,s){var e=new t(s,this.dependencyFactory);if(!(e instanceof z.Component)){var c=s.attr(z.Application.Attributes.COMPONENT);throw Error("Komponenta "+c+" není instancí pb.Component, použij extend() těsně za konstruktorem.")}return e.setApplication(this),Ko("Načítám komponentu:",`
109 -- instance:`,e,`
110 -- element:`,s),vo(e.prepare)&&e.prepare(),s.data("componentInstance",e),e},z.Application.prototype.destroyComponents=function(t){t instanceof z.Component&&(t=t.getElement()),t instanceof $||(t=$(t||document.body));let s=t.find("["+z.Application.Attributes.COMPONENT+"]");t.is("["+z.Application.Attributes.COMPONENT+"]")&&(s=s.add(t));let e=s.length,c;for(let u=0;u<e;u++)c=this.dependencyFactory.get("component").get(s[u]),c instanceof z.Component&&c.destroy()},z.Application.prototype.createRequest=function(){const t=new this.request;return this.addRequestSuccesses_(t),this.addRequestErrors_(t),this.isLogCollectorEnabled()&&this.addRequestErrorLogging_(t),$(t).on(z.Request.EventTypes.BEFORE_SEND,(function(){this.requests.push(t),this.requests.length===1?(this.progressBar.start(),document.body.classList.add("is-loading")):this.progressBar.restart()}).bind(this)),$(t).on(z.Request.EventTypes.COMPLETE,(function(){this.requests=this.requests.filter(s=>s!==t),this.requests.length===0&&(this.progressBar.done(),document.body.classList.remove("is-loading"))}).bind(this)),t},z.Application.prototype.addRequestSuccesses_=function(t){const s=this;t.addSuccessCallback(function(e,c,u){if(Do(e.redirect)){e.redirect==="self"?window.location.href=document.URL:window.location.href=e.redirect;return}e.snippets&&s.ajax.updateSnippets(e.snippets)})},z.Application.prototype.addRequestErrors_=function(t){t.addErrorCallback((function(s){var c,u;console.error({message:s.message||((c=s.responseJSON)==null?void 0:c.message),status:s.status,statusText:s.statusText,stack:new Error().stack}),this.dependencyFactory.get("toast").show(s.message||((u=s.responseJSON)==null?void 0:u.message)||this.request.defaultError,"error")}).bind(this))},z.Application.prototype.addRequestErrorLogging_=function(t){const s=Date.now().toString(36)+Math.random().toString(36).slice(2);let e=!1;t.setOptions({headers:{"X-Correlation-Id":s},xhr:function(){const u=$.ajaxSettings.xhr();return u.addEventListener("abort",function(){e=!0}),u}});let c=null;$(t).on(z.Request.EventTypes.BEFORE_SEND,function(){e=!1,c=Date.now()}),t.addErrorCallback((function(u,d,S,I){if(this.unloading||e)return;const Z=t.getMethod().toUpperCase(),ct=String(I).slice(0,2048),nt={method:Z,url:ct};u.status&&(nt.status=u.status);const rt=JSON.stringify({app:"eSales",kind:"ajax",message:Z+" "+ct+" -> "+(u.status||S||d),pageUrl:location.href.slice(0,2048),occurredAt:new Date().toISOString(),correlationId:s,request:nt,context:{textStatus:d,elapsedMs:c===null?null:Date.now()-c,online:navigator.onLine,visibilityState:document.visibilityState,responseBody:(u.responseText||"").slice(0,2e3)}});fetch(z.Application.LOG_COLLECTOR_URL,{method:"POST",body:rt,keepalive:!0}).catch(function(){})}).bind(this))},z.Application.prototype.createTemplate=function(){return this.template},z.Application.prototype.getUrl=function(){return window.location.protocol+"//"+window.location.host},z.Application.prototype.resolveUrl=function(t){return/^[a-z][a-z0-9+.-]*:/i.test(t)||t.startsWith("//")?t:this.getUrl()+t},z.Application.prototype.checkRequiredDependencies_=function(){var t=this.dependencyFactory,s=this.componentFactory,e=["component"],c=[],u,d;for(u=0,d=c.length;u<d;u++)if(s.getConstructor(c[u])===null)throw new Error("Komponenta s nazvem "+c[u]+" je interne pouzivana a musi byt registrována.");for(u=0,d=e.length;u<d;u++)if(t.getConstructor(e[u])===null)throw new Error("Zavislost s nazvem "+e[u]+" je interne pouzivana a musi byt registrována.")},z.Application.prototype.addConfig=function(t,s){if(Do(this.config[t]))throw new Error("Konfigurační název "+t+" je již použitý.");this.config[t]=this.config[t]||{},$.extend(this.config[t],s)},z.Application.prototype.getConfig=function(t){return this.config[t]},z.Application.prototype.redirect=function(t){window.location.href=t},z.Application.prototype.setLocale=function(t){this.locale=t},z.Application.prototype.getLocale=function(){return this.locale},z.Application.prototype.setCookie=function(t,s,e){var c=new Date;e=Ks(e)||30,c.setTime(c.getTime()+e*24*60*60*1e3);var u="expires="+c.toUTCString();document.cookie=t+"="+s+"; "+u},z.Application.prototype.initDisableButtonsAfterSubmit=function(){$("form["+z.Application.Attributes.DISABLEAFTERSUBMIT+"]").submit(function(){$(this).find(":input[type=submit]").prop("disabled",!0)})},z.Application.prototype.initHistoryPopRedirect=function(){window.addEventListener("popstate",function(t){t.state&&t.state.redirectAfterPop===!0&&(window.location=location.href)})},z.Application.prototype.initAjax=function(){this.ajax.setApplication(this),this.ajax.init()},z.Application.prototype.initStatistics=function(){this.statistics.setApplication(this),this.statistics.init()};var z=z||{};z.service=z.service||{},z.Ajax=function(){this.ajaxSelector="[data-ajax]",this.ajaxActionSelector="[data-ajax-action]",this.snippetSelector="data-snippet-id",this.lastRequest=null,this.pendingFocus=null,this.activeSkeletons=[],this.snippetOperations={replace:{destroyExisting:!0,updateElement(t,s){t.innerHTML=s},callback(t){}},prepend:{updateElement(t,s){t.insertAdjacentHTML("afterbegin",s)},callback(t){}},append:{updateElement(t,s){t.insertAdjacentHTML("beforeend",s)},callback(t){}},temporaryPrepend:{updateElement(t,s){t.insertAdjacentHTML("afterbegin",s)}
110,callback(t,s){t.unMarkSnippetsForPrependAppend(s)}},temporaryAppend:{updateElement(t,s){t.insertAdjacentHTML("beforeend",s)},callback(t,s){t.unMarkSnippetsForPrependAppend(s)}}}},z.Ajax.prototype.setApplication=function(t){this.application=t},z.Ajax.prototype.getApplication=function(){return this.application},z.Ajax.prototype.init=function(){this.addEvents(),this.initLoadedScripts(),this.dependencies={scrollTo:this.getApplication().dependencyFactory.get("scrollTo"),toast:this.getApplication().dependencyFactory.get("toast")}},z.Ajax.prototype.addEvents=function(){document.body.addEventListener("click",this.handleClick.bind(this)),document.body.addEventListener("submit",this.handleSubmit.bind(this)),document.body.addEventListener("ui.ajax.action",this.handleCustomAction.bind(this))},z.Ajax.prototype.handleClick=function(t){if(t.defaultPrevented||t.button!==0)return;const s=t.target.closest(`a${this.ajaxSelector}`);if(!s||Qs(t))return;const e=s.dataset.href||s.getAttribute("href");e&&(t.preventDefault(),this.sendRequest(this.application.resolveUrl(e),"get",s,s))},z.Ajax.prototype.handleSubmit=function(t){const s=t.target.closest(`form${this.ajaxSelector}`);if(!s)return;t.preventDefault();const e=(s.getAttribute("method")||"get").toLowerCase(),c=s.getAttribute("action"),u=s.dataset.action||c;let d=new FormData(s),S=u,I=null;const Z=document.activeElement;Z&&s.contains(Z)&&Z.tagName==="BUTTON"&&Z.type==="submit"&&Z.name&&d.append(Z.name,Z.value),e==="get"&&(S=this.buildUrlWithParams(u,d),I=this.buildUrlWithParams(c,d),d=null),this.sendRequest(S,e,s,Z,d,I)},z.Ajax.prototype.handleCustomAction=function(t){const s=t.target.closest(this.ajaxActionSelector);if(!s)return;const e=s.dataset.href;e&&this.sendRequest(this.application.resolveUrl(e),"get",s,s)},z.Ajax.prototype.prepareUrlWithParameters=function(t,s){if(!s)return t;const e=s.dataset.ajaxParameters;if(!e||e!=="add"&&e!=="merge")return t;try{const c=new URL(t,window.location.origin),u=new URLSearchParams(window.location.search),d=c.searchParams;return e==="add"?u.forEach((S,I)=>{d.has(I)||d.append(I,S)}):e==="merge"&&u.forEach((S,I)=>{d.set(I,S)}),c.search=d.toString(),c.pathname+c.search+c.hash}catch(c){return console.warn("Failed to merge global parameters:",c),t}},z.Ajax.prototype.buildUrlWithParams=function(t,s){const e=new URLSearchParams;for(const[d,S]of s.entries())S!==""&&e.append(d,S);const c=e.toString();if(!c)return t;const u=t.includes("?")?"&":"?";return`${t}${u}${c}`},z.Ajax.prototype.handleRequestSuccess=function(t,s){this.processReload(s)||(this.processScroll(t),this.processTriggers(t),this.processReplaceParent(t,s),this.processSuccessAction(t))},z.Ajax.prototype.handleRequestError=function(t){this.resetLastRequest(),this.pendingFocus=null},z.Ajax.prototype.handleRequestFinal=function(t,s){this.unsetLoadingState(t),this.processToasts(s),this.removeSkeletons()},z.Ajax.prototype.sendRequest=function(t,s,e,c,u=null,d=null){this.lastRequest&&this.lastRequest.abort(),s==="get"&&u===null&&(t=this.prepareUrlWithParameters(t,e));const S=this.application.createRequest().setUrl(t).setMethod(s).addSuccessCallback(this.handleRequestSuccess.bind(this,e)).addErrorCallback(this.handleRequestError.bind(this)).addFinalCallback(this.handleRequestFinal.bind(this,c));u instanceof FormData&&S.setData(u),this.isSaveHistory(e)||S.setSaveHistory(!1),d&&S.setHistoryUrlFallback(d),this.isHistoryUrl(e)&&S.setHistoryUrl(this.getHistoryUrl(e)),this.markSnippetsForPrependAppend(e),this.insertSkeletons(e),this.markSnippetsForForceReplace(e),this.pendingFocus=this.captureFocus(),this.setLoadingState(c),this.lastRequest=S.send()},z.Ajax.prototype.isSaveHistory=function(t){return t.dataset.ajaxSaveHistory!=="false"},z.Ajax.prototype.isHistoryUrl=function(t){return!!this.getHistoryUrl(t)},z.Ajax.prototype.getHistoryUrl=function(t){return t.dataset.ajaxHistoryUrl||null},z.Ajax.prototype.isSnippetModal=function(t){return t.classList.contains("Modal-content")},z.Ajax.prototype.getModalTarget=function(t){return t.querySelector(".Modal-content")},z.Ajax.prototype.resetLastRequest=function(){this.lastRequest=null},z.Ajax.prototype.processReload=function(t){return t.isPageReload?(window.location.reload(),!0):!1},z.Ajax.prototype.processScroll=function(t){if(!t)return;const s=t.dataset.ajaxScrollTo||null;if(!s)return;const e=t.dataset.ajaxScrollToOffset||null;this.dependencies.scrollTo.scrollToTarget(s,e)},z.Ajax.prototype.processTriggers=function(t){if(!t)return;const s=t.dataset.ajaxTrigger,e=t.dataset.ajaxTriggerEvent;!s||!e||$(s).length&&$(s).trigger(e)},z.Ajax.prototype.processToasts=function(t){t.toast&&t.toast.message&&this.dependencies.toast.show(t.toast.message,t.toast.type||"error")},z.Ajax.prototype.setLoadingState=function(t){t&&requestAnimationFrame(()=>{if(t.tagName==="BUTTON"){const s=t.closest('[data-component="QuantityInput"]');s?s.setAttribute("disabled","disabled"):t.setAttribute("disabled","disabled")}else t.tagName==="A"&&(t.setAttribute("aria-disabled","true"),t.style.pointerEvents="none");t.classList.add("is-loading")})},z.Ajax.prototype.unsetLoadingState=function(t){t&&requestAnimationFrame(()=>{if(t.tagName==="BUTTON"){const s=t.closest('[data-component="QuantityInput"]');s?s.removeAttribute("disabled","disabled"):t.removeAttribute("disabled","disabled")}else t.tagName==="A"&&(t.removeAttribute("aria-disabled"),t.style.pointerEvents="");t.classList.remove("is-loading")})},z.Ajax.prototype.markSnippetsForPrependAppend=function(t){if(!t)return;const s=t.dataset.snippetPrepend,e=t.dataset.snippetAppend;if(!s&&!e)return;if(s&&e){console.error("Both snippet operations (prepend and append) cannot be set at the same time.");return}
110const c=s?"prepend":"append",u=s||e,d=this.getSnippetById(u);d&&d.setAttribute(`data-snippet-temporary-${c}`,"")},z.Ajax.prototype.markSnippetsForForceReplace=function(t){if(!t)return;const s=t.dataset.snippetForceReplace;if(!s)return;const e=this.getSnippetById(s);e&&e.setAttribute("data-snippet-force-replace","")},z.Ajax.prototype.unMarkSnippetsForPrependAppend=function(t){t&&(t.removeAttribute("data-snippet-temporary-prepend"),t.removeAttribute("data-snippet-temporary-append"))},z.Ajax.prototype.unMarkSnippetsForForceReplace=function(t){t&&t.removeAttribute("data-snippet-force-replace")},z.Ajax.prototype.getSnippetTarget=function(t){return t.querySelector("[data-snippet-target]")||t},z.Ajax.prototype.insertSkeletons=function(t){if(!t)return;const s=parseInt(t.dataset.ajaxSkeleton,10);if(!s)return;const e=t.dataset.snippetPrepend,c=t.dataset.snippetAppend,u=e||c;if(!u)return;const d=this.getSnippetById(u);if(!d)return;const S=this.getSnippetTarget(d),I=e?S.firstElementChild:S.lastElementChild;if(!I)return;const Z=I.getBoundingClientRect().height;if(Z)for(let ct=0;ct<s;ct++){const nt=document.createElement(I.tagName);nt.className=I.className,nt.classList.add("is-skeleton"),nt.style.height=`${Z}px`,nt.setAttribute("inert",""),nt.setAttribute("aria-hidden","true"),e?S.insertBefore(nt,S.firstChild):S.appendChild(nt),this.activeSkeletons.push(nt)}},z.Ajax.prototype.removeSkeletons=function(){this.activeSkeletons.forEach(t=>t.remove()),this.activeSkeletons=[]},z.Ajax.prototype.updateSnippets=function(t){for(const s of Object.keys(t)){const e=this.getSnippetById(s);e&&this.updateSnippet(e,t[s],s)}},z.Ajax.prototype.getSnippetById=function(t){return document.querySelector(`[${this.snippetSelector}="${t}"]`)||null},z.Ajax.prototype.updateSnippet=function(t,s,e){let c=this.snippetOperations.replace;t.hasAttribute("data-snippet-prepend")?c=this.snippetOperations.prepend:t.hasAttribute("data-snippet-append")?c=this.snippetOperations.append:t.hasAttribute("data-snippet-temporary-prepend")?c=this.snippetOperations.temporaryPrepend:t.hasAttribute("data-snippet-temporary-append")&&(c=this.snippetOperations.temporaryAppend);const u=t.hasAttribute("data-snippet-force-replace");if(!t.dispatchEvent(new CustomEvent("beforeUpdate",{cancelable:!0,detail:{snippet:t,content:s,operation:c,changeOperation(rt){c=rt}}})))return;t.dispatchEvent(new CustomEvent("pendingUpdate",{detail:{snippet:t,content:s,operation:c}}));const S=this.storeScrollPositions(t),I=this.storeFocus(t,c.destroyExisting);c.destroyExisting&&this.application.destroyComponents(t);const Z=typeof c=="function"?c:c.updateElement,ct=typeof c=="function"?c:c.callback;u||(s=this.sanitizeSnippetContent(s,t));const nt=u?t:this.getSnippetTarget(t);this.removeSkeletons(),Z(nt,s),this.unMarkSnippetsForForceReplace(t),ct(this,t),this.application.initPlugins(t),this.application.loadComponents(t),this.restoreScrollPositions(t,S),this.restoreFocus(t,I),t.dispatchEvent(new CustomEvent("afterUpdate",{detail:{snippet:t,content:s,operation:c}})),this.loadScriptsInSnippet(s)},z.Ajax.prototype.sanitizeSnippetContent=function(t,s=null){if(!t||typeof t!="string")return t;const e=s&&this.isSnippetModal(s);if(!e&&!t.includes("data-snippet-ignore")&&!t.includes("data-snippet-target"))return t;const c=document.createElement("div");if(c.innerHTML=t,e){const d=this.getModalTarget(c);if(d)return d.innerHTML}return c.querySelectorAll("[data-snippet-ignore], [data-snippet-target]").forEach(d=>{if(d.hasAttribute("data-snippet-ignore"))if((d.getAttribute("data-snippet-ignore")||"all")==="element"){const I=d.parentNode;for(;d.firstChild;)I.insertBefore(d.firstChild,d);I.removeChild(d)}else d.remove();else if(d.hasAttribute("data-snippet-target")){const S=d.parentNode;for(;d.firstChild;)S.insertBefore(d.firstChild,d);S.removeChild(d)}}),c.innerHTML},z.Ajax.prototype.storeScrollPositions=function(t){const s=[];return t.querySelectorAll("[data-ajax-remember-scroll-position]").forEach(u=>{s.push({id:u.getAttribute("data-ajax-remember-scroll-position"),top:u.scrollTop,left:u.scrollLeft})}),s}
110,z.Ajax.prototype.restoreScrollPositions=function(t,s){s.forEach(e=>{const c=`[data-ajax-remember-scroll-position="${e.id}"]`,u=t.querySelector(c);u&&(u.scrollTop=e.top,u.scrollLeft=e.left)})},z.Ajax.prototype.captureFocus=function(){const t=document.activeElement;if(!t||t===document.body)return null;let s=null,e=null;try{s=t.selectionStart??null,e=t.selectionEnd??null}catch{}return{element:t,id:t.id||null,name:t.getAttribute("name"),selectionStart:s,selectionEnd:e}},z.Ajax.prototype.storeFocus=function(t,s){const e=this.pendingFocus;return!e||!s||t.dataset.ajaxRestoreFocus==="false"||!t.contains(e.element)?null:(this.pendingFocus=null,e)},z.Ajax.prototype.restoreFocus=function(t,s){if(!s)return;const e=document.activeElement;if(e&&e!==document.body&&e!==document.documentElement)return;const c=this.findFocusTarget(t,s);!c||c.disabled||c.hidden||c.closest("[inert]")||!c.dispatchEvent(new CustomEvent("ui.ajax.focusRestore",{bubbles:!0,cancelable:!0,detail:{target:c,context:t}}))||(c.focus({preventScroll:!0}),this.restoreCaret(c,s))},z.Ajax.prototype.findFocusTarget=function(t,s){if(s.id){const e=t.querySelector(`#${CSS.escape(s.id)}`);if(e)return e}return s.name?t.querySelector(`[name="${CSS.escape(s.name)}"]`):null},z.Ajax.prototype.restoreCaret=function(t,s){if(s.selectionStart!==null)try{t.setSelectionRange(s.selectionStart,s.selectionEnd)}catch{}},z.Ajax.prototype.processReplaceParent=function(t,s){const e=t.getAttribute("data-ajax-replace-parent"),c=t.getAttribute("data-ajax-replace-snippet");if(!e||!c||!s.snippets||!s.snippets[c])return;const[u,d]=e.split("=");if(!u||!d){console.error(`Invalid format for data-ajax-replace-parent: ${e}`);return}const S=`[${u}="${CSS.escape(d)}"]`,I=t.closest(S),Z=s.snippets[c];if(!I||!Z)return;const ct=document.createElement("div");ct.innerHTML=Z.trim();const nt=ct.firstElementChild;if(!nt)return;const rt=this.storeFocus(I,!0);I.innerHTML=nt.innerHTML,Array.from(nt.attributes).forEach(q=>{I.setAttribute(q.name,q.value)}),this.application.initPlugins(I),this.application.loadComponents(I),this.restoreFocus(I,rt)},z.Ajax.prototype.initLoadedScripts=function(){this.loadedScripts=new Set,document.querySelectorAll("script[data-eq-script-id]").forEach(t=>{const s=t.getAttribute("data-eq-script-id");s&&this.loadedScripts.add(s)})},z.Ajax.prototype.loadScriptsInSnippet=function(t){if(!/<script/i.test(t))return;new DOMParser().parseFromString(t,"text/html").querySelectorAll("script").forEach(u=>{const d=u.getAttribute("data-eq-script-id");if(d!==null&&d!==""&&this.loadedScripts.has(d))return;const S=window.document.createElement("script");if(S.innerHTML=u.innerHTML,u.hasAttributes())for(const I of u.attributes)S.setAttribute(I.name,I.value);window.document.head.appendChild(S).parentNode.removeChild(S),d!==null&&d!==""&&this.loadedScripts.add(d)})},z.Ajax.prototype.processSuccessAction=function(t){if(!t)return;const s=t.dataset.successAjaxAction;Array.from(document.body.querySelectorAll(`[data-ajax-action=${s}]`)).map(c=>{const u=new CustomEvent("ui.ajax.action",{bubbles:!0});c.dispatchEvent(u)})};var a=a||{};a.component=a.component||{},a.component.Form=function(s){z.Component.call(this,s)}
110,ke(a.component.Form,z.Component),a.component.Form.prototype.prepare=function(){this.document=$(document),this.window=$(window),this.showValid=!0,this.errorParent=".FormGroup",this.errorElement="span",this.messageClass="FormValidation",this.validClassReset="isValid",this.validClass=this.showValid?this.validClassReset:null,this.inValidClass="isInvalid",this.isValidationEnabled=this.elementNode.dataset.formDisableValidation===void 0,this.isSubmitOnChange=this.elementNode.dataset.formSubmitOnChange!==void 0,this.setEmailValidationRegex(),this.addPhoneInputValidator(),this.isValidationEnabled&&this.element.validate(this.settings()),this.isSubmitOnChange&&this.element.on("change",this.handleChange.bind(this))},a.component.Form.prototype.handleChange=function(t){this.elementNode.requestSubmit()},a.component.Form.prototype.addPhoneInputValidator=function(){$.validator.addMethod("phone-input",function(t,s,e){let c=!0;try{t.length>0&&(c=window.intlTelInputGlobals.getInstance(s).isValidNumber())}catch{c=!0}return c},"Phone number is not valid")},a.component.Form.prototype.setEmailValidationRegex=function(){$.validator.methods.email=function(t,s){return this.optional(s)||/(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))+/.test(t)}},a.component.Form.prototype.settings=function(){return{errorElement:this.errorElement,errorClass:this.messageClass,validClass:this.messageClass,errorPlacement:(t,s)=>{t.appendTo(s.closest(this.errorParent))},highlight:(t,s,e)=>{$(t).parents(this.errorParent).addClass(this.inValidClass).removeClass(this.validClassReset)},unhighlight:(t,s,e)=>{$(t).parents(this.errorParent).addClass(this.validClass).removeClass(this.inValidClass)},ignore:"input:not([name]), :hidden, [readonly]"}};var z=z||{};z.service=z.service||{},z.service.ScrollTo=function(s){this.settings=s.get("settings"),this.variables=s.get("variables")},z.service.ScrollTo.prototype.scrollToTarget=function(t,s,e){const c=$(t);if(!c.length)return;let u=c.offset().top;isNaN(s)&&$(s).length&&(s=$(s).outerHeight()),e&&this.variables.get("fixedHeader")&&(s+=this.variables.get("headerHeight")||0);const d=$(".ProductStickyBarDesktop");d.length&&d.is(":visible")&&(s+=d.outerHeight());const S=$(".ProductStickyBarMobile");S.length&&S.is(":visible")&&S.position().top<1&&(s+=S.outerHeight());let I=u-s;this.scrollTo(I,0),this.focusTarget(t)},z.service.ScrollTo.prototype.scrollTo=function(t,s){t-=s,window.scrollTo({top:t,behavior:"smooth"})},z.service.ScrollTo.prototype.focusTarget=function(t){const s=document.querySelector(t);s&&(s.hasAttribute("tabindex")||s.setAttribute("tabindex","-1"),s.focus({preventScroll:!0}))};var z=z||{};z.service=z.service||{},z.settings={global:{breakpoint:992,isDesktop:t=>Zo().width>=t.get("global.breakpoint"),headerSelector:".PageLayout-header",headerInnerSelector:".Header-inner"},headerHeight:{includeBorderHeight:!0,selector:t=>t.get("global.headerSelector"),innerSelector:t=>t.get("global.headerInnerSelector")},fixedHeader:{selector:t=>t.get("global.headerSelector"),mobileSelector:t=>t.get("global.headerInnerSelector")},isScrolled:{threshold:0},productStickyBarMobile:{triggerSelector:"[data-product-sticky-bar-mobile-trigger] :where(.BuyProduct, .Btn)"}},z.service.Settings=function(){this.data_=this.deepMerge_(z.settings||{},a.settings||{})},z.service.Settings.prototype.get=function(t){const s=t.split(".");let e=this.data_;for(const c of s){if(e==null||typeof e!="object")return;e=e[c]}return typeof e=="function"?e(this):e},z.service.Settings.prototype.deepMerge_=function(t,s){const e=u=>typeof u=="object"&&u!==null&&!Array.isArray(u)&&typeof u!="function",c={...t};for(const[u,d]of Object.entries(s))c[u]=e(d)&&e(c[u])?this.deepMerge_(c[u],d):d;return c};var a=a||{};a.service=a.service||{},a.service.Toast=function(){this.wrapper=null,this.activeClass="is-active"},a.service.Toast.prototype.show=function(t="",s="success",e=3e3){let c=this.createHtmlElement(t,s,e);this.addItem(c,e)},a.service.Toast.prototype.getWrapper=function(){return this.wrapper||this.createWrapper(),this.wrapper},a.service.Toast.prototype.createWrapper=function(){const t=document.createElement("div");t.classList.add("Toast"),this.wrapper=t,document.body.appendChild(this.wrapper)},a.service.Toast.prototype.removeWrapper=function(){this.wrapper&&!this.wrapper.hasChildNodes()&&(this.wrapper.remove(),this.wrapper=null)},a.service.Toast.prototype.addItem=function(t,s){let e;const c=$(t);this.getWrapper().appendChild(t),new Qo(()=>{c.addClass(this.activeClass)},50),s&&(e=new Qo(()=>{this.removeItem(t)},s)),this.addItemEvents(c,e)},a.service.Toast.prototype.removeItem=function(t){$(t).removeClass(this.activeClass),new Qo(()=>{t.remove(),this.removeWrapper()},ir)},a.service.Toast.prototype.addItemEvents=function(t,s){const e=$(t);s&&e.hover(()=>{s.pause()},()=>{s.resume()});
110const c=e.find("[data-toast-close]");c.length&&c.click(()=>{this.removeItem(t),typeof s<"u"&&s.clear()})},a.service.Toast.prototype.createHtmlElement=function(t,s,e){const c=`<div class="Alert Alert--${s} Alert--noMargin ${e?"":"Alert--closable"}"><div class="NotificationLayout-content Alert-content"><p>${t}</p>${e?"":'<button class="Alert-close" type="button" aria-label="Close" data-toast-close><svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="Icon"><use href="#ico-cross"></use></svg></button>'}</div></div>`,u=document.createElement("div");return u.setAttribute("role","alert"),u.setAttribute("aria-live","assertive"),u.setAttribute("aria-atomic","true"),u.insertAdjacentHTML("afterbegin",c),u.classList.add("Toast-item"),u};var z=z||{};z.service=z.service||{},z.service.Variables=function(s){this.cache_={},this.written_=new Set,this.listeners_=new Map,this.root_=document.documentElement,this.dependencies_=s},z.service.Variables.prototype.boot=function(){const t=a.disabledVariables||[],s=this.dependencies_.get("settings");for(const[d,S]of Object.entries(z.variable||{}))t.indexOf(d)===-1&&S(this,s);const e=a.projectVariables||[];for(var c=0;c<e.length;c++){var u=e[c];a.variable&&typeof a.variable[u]=="function"&&a.variable[u](this,s)}},z.service.Variables.prototype.set=function(t,s,e){typeof s=="boolean"&&(s=s?1:0);const c=e?String(s)+e:String(s);this.root_.style.setProperty(`--${t}`,c),this.store_(t,s,e||"",c)},z.service.Variables.prototype.store=function(t,s){this.store_(t,s,"",String(s))},z.service.Variables.prototype.store_=function(t,s,e,c){this.written_.add(t);const u=this.cache_[t];u&&u.cssValue===c||(this.cache_[t]={value:s,unit:e,cssValue:c},this.notify_(t,c,u?u.cssValue:void 0))},z.service.Variables.prototype.get=function(t){if(t in this.cache_)return this.cache_[t].value;const s=getComputedStyle(this.root_).getPropertyValue(`--${t}`).trim();if(!s)return s;const e=parseFloat(s),c=isNaN(e)?s:e,u=isNaN(e)?"":s.replace(String(e),"");return this.cache_[t]={value:c,unit:u,cssValue:s},c},z.service.Variables.prototype.has=function(t){return this.written_.has(t)},z.service.Variables.prototype.getCssValue=function(t){return this.get(t),t in this.cache_?this.cache_[t].cssValue:""},z.service.Variables.prototype.getUnit=function(t){var s=this.cache_[t];return s?s.unit:""},z.service.Variables.prototype.setAll=function(t){for(const[s,e]of Object.entries(t))this.set(s,e)},z.service.Variables.prototype.storeAll=function(t){for(const[s,e]of Object.entries(t))this.store(s,e)},z.service.Variables.prototype.on=function(t,s){this.listeners_.has(t)||this.listeners_.set(t,new Set),this.listeners_.get(t).add(s)},z.service.Variables.prototype.off=function(t,s){const e=this.listeners_.get(t);e&&e.delete(s)},z.service.Variables.prototype.notify_=function(t,s,e){const c=this.listeners_.get(t);if(c)for(const u of c)u(s,e)};var z=z||{};z.service=z.service||{},z.service.AvailableArea=function(s){this.root_=document.documentElement,this.registry_={top:{},bottom:{}},this.values_={},this.headerResolved_=!1,this.applied_=!1,this.listeners_=new Set,this.variables_=s.get("variables"),this.settings_=s.get("settings"),this.values_=this.measure_(),this.initHeaderTracking_(),window.addEventListener("resize",this.compute_.bind(this))},z.service.AvailableArea.prototype.add=function(t,s,e){this.registry_[t][s]!==e&&(this.registry_[t][s]=e,this.compute_())},z.service.AvailableArea.prototype.remove=function(t,s){s in this.registry_[t]&&(delete this.registry_[t][s],this.compute_())},z.service.AvailableArea.prototype.get=function(t){return this.values_[t]||0},z.service.AvailableArea.prototype.on=function(t){this.listeners_.add(t)},z.service.AvailableArea.prototype.off=function(t){this.listeners_.delete(t)},z.service.AvailableArea.prototype.resolve_=function(t){return typeof t=="number"?t:t instanceof HTMLElement?t.offsetHeight:0},z.service.AvailableArea.prototype.sum_=function(t){return Object.values(this.registry_[t]).reduce((s,e)=>s+this.resolve_(e),0)},z.service.AvailableArea.prototype.measure_=function(){const t=this.sum_("top"),s=this.sum_("bottom");return{top:t,bottom:s,height:window.innerHeight-t-s}},z.service.AvailableArea.prototype.compute_=function(){const t=this.measure_();if(!this.headerResolved_){this.values_=t;return}if(!(!this.applied_||Object.keys(t).some(d=>this.values_[d]!==t[d])))return;this.values_=t,this.applied_=!0;const{top:e,bottom:c,height:u}=t;this.root_.style.setProperty("--availableAreaTop",e+"px"),this.root_.style.setProperty("--availableAreaBottom",c+"px"),this.root_.style.setProperty("--availableAreaHeight",u+"px");for(const d of this.listeners_)d(this.values_)},z.service.AvailableArea.prototype.initHeaderTracking_=function(){this.updateHeader=this.updateHeader.bind(this),this.updateHeader(),this.variables_.on("fixedHeader",this.updateHeader),this.variables_.on("headerHeight",this.updateHeader),this.variables_.on("headerInnerHeight",this.updateHeader)},z.service.AvailableArea.prototype.updateHeader=function(){if(!this.variables_.has("fixedHeader"))return;if(!this.variables_.get("fixedHeader")){this.headerResolved_=!0,this.remove("top","header"),this.compute_();return}const s=this.settings_.get("global.isDesktop")?"headerHeight":"headerInnerHeight";this.variables_.has(s)&&(this.headerResolved_=!0,this.add("top","header",this.variables_.get(s)),this.compute_())};var z=z||{};z.variable=z.variable||{},z.variable.ScrollBarWidth=t=>{const s=()=>{t.set("scrollBarWidth",window.innerWidth-document.documentElement.clientWidth,"px")}
110;s(),window.addEventListener("load",s),window.addEventListener("resize",s)};var z=z||{};z.variable=z.variable||{},z.variable.HeaderHeight=(t,s)=>{const e=document.querySelector(s.get("headerHeight.selector")),c=document.querySelector(s.get("headerHeight.innerSelector"));let u=e?e.querySelector(".InfoBanner"):null;const d=()=>{const I=u&&!u.hasAttribute("hidden")?u.offsetHeight:0;t.set("headerInfoBannerHeight",I,"px")},S=()=>{setTimeout(()=>{const I=s.get("global.isDesktop");if(!e)return;let Z=e.offsetHeight,ct=c?c.offsetHeight:0;if(I&&s.get("headerHeight.includeBorderHeight")){const nt=window.getComputedStyle(e,":after");if(nt.display!=="none"&&nt.content!=="none"&&nt.content!=="normal"){let rt=parseInt(nt.height,10);isNaN(rt)||(Z+=rt)}}t.set("headerHeight",Z,"px"),t.set("headerInnerHeight",ct,"px"),d()},10)};S(),window.addEventListener("resize",S),u&&new MutationObserver(Z=>{Z.forEach(ct=>{ct.attributeName==="hidden"&&S()})}).observe(u,{attributes:!0})};var z=z||{};z.variable=z.variable||{},z.variable.IsScrolled=(t,s)=>{const e=s.get("isScrolled.threshold"),c=()=>{const u=window.scrollY>e,d=document.querySelector(".PageLayout");t.store("isScrolled",u),d&&d.classList.toggle("is-scrolled",u)};c(),window.addEventListener("scroll",Zr(100,c))};var z=z||{};z.variable=z.variable||{},z.variable.FixedHeader=(t,s)=>{const e=()=>{const u=s.get("global.isDesktop")?s.get("fixedHeader.selector"):s.get("fixedHeader.mobileSelector"),d=document.querySelector(u);if(!d){t.store("fixedHeader",!1);return}const S=d.getAttribute("style");d.removeAttribute("style");const I=getComputedStyle(d).position!=="relative";S&&d.setAttribute("style",S),t.store("fixedHeader",I)};e(),window.addEventListener("resize",e)};var a=a||{};a.component=a.component||{},a.component.Modal=function(s){z.Component.call(this,s)}
110,ke(a.component.Modal,z.Component),a.component.Modal.prototype.prepare=function(){this.mode=this.getMode(),this.activeDisplay=this.getActiveDisplay(),this.activeClass="is-open",this.showBackdropClass="Modal--withBackdrop",this.staticClass="Modal--static",this.transitionClass="is-animating",this.staticTransition="is-static",this.isStatic=this.element.hasClass(this.staticClass),this.$backdrop=null,this.backdropDelay=50,this.backdropDisabled=this.element.hasClass("Modal--sizeFull"),this.transitioning=null,this.transitionDuration=ir,this.cookieSet=this.element.data("modal-cookie-set")||null,this.cookieSetDays=this.element.data("modal-cookie-set-days")||365,this.cookieRemove=this.element.data("modal-cookie-remove")||null,this.createBackdrop(),this.element.on("click",".js-close",this.close.bind(this)),this.element.on("ui.modal.close",this.close.bind(this)),this.element.on("ui.modal.open",this.open.bind(this)),this.element.on("click",t=>{t.target===t.currentTarget&&(this.isStatic?(this.transitioning=1,this.element.addClass(this.staticTransition),setTimeout(()=>{this.element.removeClass(this.staticTransition),this.transitioning=0},this.transitionDuration)):this.close())})},a.component.Modal.prototype.destroy=function(){this.unbindEscapeKey(),this.unbindFocusTrap()},a.component.Modal.prototype.getMode=function(){let t;return this.element.hasClass("Modal--corner")?t="corner":this.element.hasClass("Modal--side")?t="side":t="default",t},a.component.Modal.prototype.getActiveDisplay=function(){let t="block";return(this.mode==="side"&&this.element.hasClass("Modal--positionBottom")||this.mode==="corner")&&(t="flex"),t},a.component.Modal.prototype.open=function(){!this.element.hasClass(this.activeClass)&&!this.transitioning&&this.storePreviousFocus(),this.closeOther(),!(this.transitioning||this.element.hasClass(this.activeClass))&&this.showBackdrop(()=>{this.element.trigger("ui.modal.opening"),this.element.css("display",this.activeDisplay),this.element.addClass(this.transitionClass),this.transitioning=1,setTimeout(()=>{this.element.removeClass(this.transitionClass).addClass(this.showBackdropClass).addClass(this.activeClass),this.transitioning=0,this.focusModal(),this.bindFocusTrap(),this.bindEscapeKey(),this.handleCookieOnOpen(),this.element.trigger("ui.modal.opened")},50)})},a.component.Modal.prototype.close=function(t){t&&t.preventDefault(),this.unbindEscapeKey(),this.unbindFocusTrap(),this.element.trigger("ui.modal.closing"),!(this.transitioning||!this.element.hasClass(this.activeClass))&&(this.transitioning=1,this.element.addClass(this.transitionClass),this.element.removeClass(this.activeClass),setTimeout(()=>{this.element.removeClass(this.showBackdropClass),this.element.removeClass(this.transitionClass),this.transitioning=0,this.element.css("display","none"),this.handleCookieOnClose(),this.restoreFocus(),this.element.trigger("ui.modal.closed")},this.transitionDuration),this.hideBackdrop())},a.component.Modal.prototype.closeOther=function(){$(".Modal.is-open").each(function(){$(this).trigger("ui.modal.close")})},a.component.Modal.prototype.createBackdrop=function(){this.backdropDisabled||(this.$backdrop=$("<div>"),this.$backdrop.addClass("Backdrop Modal-backdrop Backdrop--animate"))},a.component.Modal.prototype.showBackdrop=function(t){if(!this.$backdrop){t();return}this.$backdrop.appendTo(document.body),setTimeout(()=>{this.$backdrop.addClass("is-active"),t()},this.backdropDelay)},a.component.Modal.prototype.hideBackdrop=function(){this.$backdrop&&(this.$backdrop.removeClass("is-active"),setTimeout(()=>{this.$backdrop.remove()},ir))},a.component.Modal.prototype.handleCookieOnOpen=function(){this.cookieSet&&To(this.cookieSet,"1",this.cookieSetDays)},a.component.Modal.prototype.handleCookieOnClose=function(){this.cookieRemove&&qo(this.cookieRemove)},a.component.Modal.prototype.bindEscapeKey=function(){this.isStatic||(this._onEscKey=t=>{t.key!=="Escape"&&t.keyCode!==27||this.hasActiveLightbox()||this.close()},$(document).on("keydown.modalEsc",this._onEscKey))},a.component.Modal.prototype.unbindEscapeKey=function(){this.isStatic||this._onEscKey&&($(document).off("keydown.modalEsc",this._onEscKey),this._onEscKey=null)},a.component.Modal.prototype.hasActiveLightbox=function(){return typeof $.fancybox<"u"&&!!$.fancybox.getInstance()},a.component.Modal.prototype.getFocusableElements=function(){const t=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not
110([tabindex="-1"])'].join(", ");return this.element.find(t).filter(function(){return this.offsetWidth>0||this.offsetHeight>0||this===document.activeElement}).toArray()},a.component.Modal.prototype.storePreviousFocus=function(){this.previousFocus=document.activeElement},a.component.Modal.prototype.focusModal=function(){const t=this.getFocusableElements(),s=t.length?t[0]:this.element[0];s&&typeof s.focus=="function"&&s.focus()},a.component.Modal.prototype.restoreFocus=function(){const t=document.activeElement,s=this.element[0].contains(t);this.previousFocus&&typeof this.previousFocus.focus=="function"&&this.previousFocus.isConnected&&(this.previousFocus.offsetWidth>0||this.previousFocus.offsetHeight>0)&&(s||t===document.body||!t)&&this.previousFocus.focus(),this.previousFocus=null},a.component.Modal.prototype.bindFocusTrap=function(){this._onFocusTrap=t=>{if(t.key!=="Tab"&&t.keyCode!==9)return;const s=this.getFocusableElements();if(!s.length){t.preventDefault(),this.element[0].focus();return}const e=s[0],c=s[s.length-1],u=document.activeElement;if(!this.element[0].contains(u)){t.preventDefault(),e.focus();return}t.shiftKey&&u===e?(t.preventDefault(),c.focus()):!t.shiftKey&&u===c&&(t.preventDefault(),e.focus())},$(document).on("keydown.modalFocusTrap",this._onFocusTrap)},a.component.Modal.prototype.unbindFocusTrap=function(){this._onFocusTrap&&($(document).off("keydown.modalFocusTrap",this._onFocusTrap),this._onFocusTrap=null)};var a=a||{};a.component=a.component||{},a.component.ModalOpener=function(s,e){z.Component.call(this,s),this.dependencies={baseModal:e.get("baseModal")}},ke(a.component.ModalOpener,z.Component),a.component.ModalOpener.type={AJAX:"ajax",MODAL:"modal"},a.component.ModalOpener.prototype.prepare=function(){this.element.on("click",this.handleClickEvent.bind(this)),this.modalType=this.getModalType(this.element.data("modal-type")),this.autoOpen=this.element.attr("data-modal-auto-open")!==void 0,this.keepOnClose=this.element.attr("data-modal-keep-on-close")!==void 0,this.autoOpen&&this.open()},a.component.ModalOpener.prototype.destroy=function(){},a.component.ModalOpener.prototype.handleClickEvent=function(t){t.preventDefault(),this.open()},a.component.ModalOpener.prototype.open=function(){this.modalType===a.component.ModalOpener.type.MODAL?this.openExistModal():this.openAjaxModal()},a.component.ModalOpener.prototype.getModalType=function(t){return t==="modal"?a.component.ModalOpener.type.MODAL:a.component.ModalOpener.type.AJAX},a.component.ModalOpener.prototype.openAjaxModal=function(){const t=this.element.data("modal-href")||this.element.attr("href");if(!t.length){Hr("Element hasn set ajax url - set url to attr href or data-modal-href");return}const s=this.element.data("modal-snp");if(!t.length){Hr("Element hasn set snippet id for ajax response - set snippet id to attr data-modal-snp");return}this.sendAjaxRequest(t,s)},a.component.ModalOpener.prototype.sendAjaxRequest=function(t,s){if(this.isBusy())return;this.setBusy(!0),this.dependencies.baseModal.reset(this.getApplication()),this.createRequest().setUrl(t).addData({snp:[s]}).setSaveHistory(!1).addSuccessCallback((function(c){const u=c.snippets[s];this.dependencies.baseModal.setSnippetId(s),this.dependencies.baseModal.setContentAndOpe
110nPopup(u,this.getApplication(),this.keepOnClose)}).bind(this)).addFinalCallback((function(){this.setBusy(!1)}).bind(this)).send()},a.component.ModalOpener.prototype.openExistModal=function(){const t=this.element.data("modal-code");if(!t.length){Hr("Element hasn set content code for - set content code to attr data-content-code");return}const s=$("#"+t);if(!s.length){Hr("Element hasn set content id for - set content id to attr data-content-id");return}s.data("componentInstance").open()};var a=a||{};a.service=a.service||{},a.service.BaseModal=function(){this.wrapper=null,this.snippetId=""},a.service.BaseModal.prototype.getWrapper=function(){return this.wrapper||this.createWrapper(),this.wrapper},a.service.BaseModal.prototype.getContent=function(){return this.wrapper},a.service.BaseModal.prototype.createWrapper=function(){const t=document.createElement("div");t.classList.add("BaseModal"),this.wrapper=t,document.body.appendChild(this.wrapper)},a.service.BaseModal.prototype.setSnippetId=function(t){this.snippetId=t},a.service.BaseModal.prototype.reset=function(t){if(this.wrapper){const s=$(this.wrapper),e=s.find('[data-component="Modal"]');e.length&&e.hasClass("is-open")&&e.trigger("ui.modal.close"),t&&t.destroyComponents(s),$(this.wrapper).html("")}}
110,a.service.BaseModal.prototype.setContentAndOpenPopup=function(t,s,e){this.reset(s);const c=$(this.getWrapper());c.html(t),c.find(".Modal-content").attr("data-snippet-id",this.snippetId);const u=c.find('[data-component="Modal"]');s.initPlugins(c),s.loadComponents(c),u.trigger("ui.modal.open"),e||u.on("ui.modal.closed",()=>{this.reset(s)})};var a=a||{};a.component=a.component||{},a.component.PasswordReveal=function(s){z.Component.call(this,s)},ke(a.component.PasswordReveal,z.Component),a.component.PasswordReveal.prototype.prepare=function(){this.input=this.element.find("input"),this.button=this.element.find('[role="switch"]'),this.button.on("click",this.toggle.bind(this))},a.component.PasswordReveal.prototype.toggle=function(t){t.preventDefault(),this.button.attr("aria-pressed")==="false"?(this.input.attr("type","text"),this.button.attr("aria-pressed","true")):(this.input.attr("type","password"),this.button.attr("aria-pressed","false")),this.input.focus()};var a=a||{};a.component=a.component||{},a.component.MobileNavigation=function(s){z.Component.call(this,s)}
110,ke(a.component.MobileNavigation,z.Component),a.component.MobileNavigation.prototype.prepare=function(){this.document=$(document),this.window=$(window),this.rowElement=this.element.get(0),this.toggleButton=document.querySelector('[data-mobile-navigation="toggle"]'),this.openButton=document.querySelector('[data-mobile-navigation="open"]'),this.closeButton=document.querySelector('[data-mobile-navigation="close"]'),this.localeButton=this.rowElement.querySelector('[data-mobile-navigation="locale"]'),this.backButton=this.rowElement.querySelector('[data-mobile-navigation="back"]'),this.panel=this.rowElement.querySelector('[data-mobile-navigation="panel"]'),this.body=document.querySelector('[data-mobile-navigation="body"]'),this.$headerBackdrop=null,this.$mainBackdrop=null,this.backdropDelay=this.withAnimation?50:0,this.rootScreen=this.body?this.body.querySelector(".MobileNavigationLayer"):null,this.layers=this.rootScreen?[{li:null,listEl:this.rootScreen,trigger:null}]:[],this.locked=!1,this.createBackdrop(),$(this.toggleButton).on("click",this.toggle.bind(this)),$(this.openButton).on("click",this.open.bind(this)),$(this.closeButton).on("click",this.close.bind(this)),$(this.backButton).on("click",this.back.bind(this)),$(this.localeButton).on("click",this.showLocales.bind(this)),$(this.backdrop).on("click",this.close.bind(this)),$('[data-mobile-navigation="item"] a:not([data-mobile-navigation-ignore])').on("click",this.processClick.bind(this)),this.element.on("ui.mobileNavigation.back",this.back.bind(this)),$("body").on("click",".MobileNavigationBackdrop",this.close.bind(this)),this.focusableSelector='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',this.document.on("keydown.mobileNavigation",this.handleKeydown.bind(this)),this.document.on("focusin.mobileNavigation",this.handleFocusIn.bind(this)),this.setInert(!0),this.setExpanded(!1),this.setPosition(0)},a.component.MobileNavigation.prototype.destroy=function(){this.document.off("keydown.mobileNavigation"),this.document.off("focusin.mobileNavigation")},a.component.MobileNavigation.prototype.open=function(t){t&&t.preventDefault(),this.element.trigger("ui.mobileNavigation.open"),this.showBackdrop(()=>{this.element.addClass("is-active"),$("body").addClass("is-mobile-navigation-opened"),this.setInert(!1),this.setExpanded(!0),this.focusFirst()})},a.component.MobileNavigation.prototype.close=function(t){t&&t.preventDefault(),this.element.removeClass("is-active"),$("body").removeClass("is-mobile-navigation-opened"),this.hideBackdrop(),this.setInert(!0),this.setExpanded(!1),this.element.trigger("ui.mobileNavigation.close"),this.toggleButton&&this.toggleButton.focus(),setTimeout(this.resetState.bind(this),ir)},a.component.MobileNavigation.prototype.toggle=function(t){this.element.hasClass("is-active")?this.close(t):this.open(t)},a.component.MobileNavigation.prototype.processClick=function(t){if(this.locked)t.preventDefault();else{this.lock();let s=t.currentTarget.parentNode;if(s.matches('[data-mobile-navigation="item"]')&&s.children.length>1){t.preventDefault();let e=t.currentTarget;e.hasAttribute("aria-expanded")&&e.setAttribute("aria-expanded","true"),this.activateLayer(s),this.goToPosition(this.getPosition()+1),this.enterLayer({li:s,listEl:s.querySelector(":scope > ul"),trigger:e})}}},a.component.MobileNavigation.prototype.showLocales=function(t){if(t.preventDefault(),!this.locked){this.lock();let s=document.querySelector('[data-mobile-navigation="locales"]');this.localeButton&&this.localeButton.hasAttribute("aria-expanded")&&this.localeButton.setAttribute("aria-expanded","true"),this.activateLayer(s),this.goToPosition(1),this.enterLayer({li:s,listEl:s,trigger:this.localeButton})}},a.component.MobileNavigation.prototype.activateLayer=function(t){t.classList.add("is-active")},a.component.MobileNavigation.prototype.deActivateLayer=function(t){setTimeout(()=>{t.classList.remove("is-active")},ir)},a.component.MobileNavigation.prototype.back=function(t){if(t&&t.preventDefault(),!this.locked){this.lock();let s=this.layers[this.layers.length-1];s&&s.li&&(this.removeLayer(s.li),this.deActivateLayer(s.li));let e=this.layers[this.layers.length-1];e&&this.setLayerVisible(e.listEl,!0),this.goToPosition(this.getPosition()-1),s&&setTimeout((function(){this.setLayerVisible(s.listEl,!1)}).bind(this),ir),s&&s.trigger&&(s.trigger.hasAttribute("aria-expanded")&&s.trigger.setAttribute("aria-expanded","fal
110se"),setTimeout(function(){s.trigger.focus()},ir))}},a.component.MobileNavigation.prototype.goToPosition=function(t){t<0&&(t=0),this.setPosition(t),this.resetScroll()},a.component.MobileNavigation.prototype.setPosition=function(t){this.rowElement.style.setProperty("--position",t),this.panel&&(t>0?this.panel.classList.add("is-active"):this.panel.classList.remove("is-active"))},a.component.MobileNavigation.prototype.getPosition=function(){return parseInt(this.rowElement.style.getPropertyValue("--position"),10)},a.component.MobileNavigation.prototype.resetScroll=function(){setTimeout(()=>{this.body.scrollTo(0,0)},ir/2)},a.component.MobileNavigation.prototype.lock=function(){this.locked=!0,setTimeout(()=>{this.locked=!1},ir)},a.component.MobileNavigation.prototype.createBackdrop=function(){this.$headerBackdrop=$("<div>"),this.$headerBackdrop.addClass("Backdrop MobileNavigationBackdrop MobileNavigationBackdrop--header").addClass("Backdrop--animate"),this.$mainBackdrop=$("<div>"),this.$mainBackdrop.addClass("Backdrop MobileNavigationBackdrop MobileNavigationBackdrop--main").addClass("Backdrop--animate")},a.component.MobileNavigation.prototype.showBackdrop=function(t){if(!this.$mainBackdrop){t();return}this.$headerBackdrop.appendTo(document.body),this.$mainBackdrop.appendTo(document.body),setTimeout(()=>{this.$mainBackdrop.addClass("is-active"),this.$headerBackdrop.addClass("is-active"),t()},this.backdropDelay)},a.component.MobileNavigation.prototype.hideBackdrop=function(){this.$mainBackdrop&&(this.$headerBackdrop.removeClass("is-active"),this.$mainBackdrop.removeClass("is-active"),setTimeout(()=>{this.$mainBackdrop.remove(),this.$headerBackdrop.remove()},ir))},a.component.MobileNavigation.prototype.setInert=function(t){t?(this.rowElement.setAttribute("inert",""),this.rowElement.setAttribute("aria-hidden","true")):(this.rowElement.removeAttribute("inert"),this.rowElement.removeAttribute("aria-hidden"))},a.component.MobileNavigation.prototype.setExpanded=function(t){let s=t?"true":"false";this.toggleButton&&this.toggleButton.setAttribute("aria-expanded",s),this.openButton&&this.openButton.setAttribute("aria-expanded",s)},a.component.MobileNavigation.prototype.getFocusables=function(){let t=this.layers[this.layers.length-1],s=t?t.listEl:this.rootScreen,e=this.panel,c=this.rowElement.querySelectorAll(this.focusableSelector),u=Array.prototype.filter.call(c,function(d){return d.offsetParent===null||d.closest("[inert]")?!1:s&&s.contains(d)||e&&e.contains(d)});return this.closeButton&&this.closeButton.offsetParent!==null&&u.push(this.closeButton),u},a.component.MobileNavigation.prototype.handleKeydown=function(t){if(this.element.hasClass("is-active")&&!this.isModalOpen()){if(t.key==="Escape"){this.close(t);return}t.key==="Tab"&&this.trapFocus(t)}},a.component.MobileNavigation.prototype.trapFocus=function(t){let s=this.getFocusables();if(!s.length)return;t.preventDefault();let e=s.indexOf(document.activeElement),c;e===-1?c=0:t.shiftKey?c=(e-1+s.length)%s.length:c=(e+1)%s.length,s[c].focus()},a.component.MobileNavigation.prototype.handleFocusIn=function(t){if(!this.element.hasClass("is-active")||this.isModalOpen())return;let s=this.rowElement;if(s===t.target||s.contains(t.target)||this.isTrigger(t.target))return;let e=this.getFocusables();e.length&&e[0].focus()},a.component.MobileNavigation.prototype.isTrigger=function(t){return[this.toggleButton,this.openButton].some(function(e){return e&&(e===t||e.contains(t))})},a.component.MobileNavigation.prototype.isModalOpen=function(){return!!document.querySelector(".Modal.is-open")},a.component.MobileNavigation.prototype.enterLayer=function(t){let s=this.layers[this.layers.length-1];this.layers.push(t),this.setLayerVisible(t.listEl,!0),setTimeout((function(){s&&this.setLayerVisible(s.listEl,!1);let e=this.getFocusables();e.length&&e[0].focus()}).bind(this),ir)},a.component.MobileNavigation.prototype.removeLayer=function(t){let s=-1;for(let e=0;e<this.layers.length;e++)if(this.layers[e].li===t){s=e;break}return s===-1?null:this.layers.splice(s,1)[0]},a.component.MobileNavigation.prototype.setLayerVisible=function(t,s){t&&(t.style.visibility=s?"visible":"hidden")}
110,a.component.MobileNavigation.prototype.focusFirst=function(){setTimeout((function(){let t=this.getFocusables();t.length&&t[0].focus()}).bind(this),ir)},a.component.MobileNavigation.prototype.resetState=function(){if(this.element.hasClass("is-active"))return;let t=this.rowElement.querySelectorAll('[aria-expanded="true"]');Array.prototype.forEach.call(t,function(s){s.setAttribute("aria-expanded","false")}),this.layers.forEach(function(s){s.li&&s.li.classList.remove("is-active"),s.listEl&&(s.listEl.style.visibility="")}),this.layers=this.rootScreen?[{li:null,listEl:this.rootScreen,trigger:null}]:[],this.setPosition(0)};var a=a||{};a.component=a.component||{},a.component.PageNavigation=function(s,e){z.Component.call(this,s),this.dependencies={settings:e.get("settings"),variables:e.get("variables")},this.settings=this.dependencies.settings,this.variables=this.dependencies.variables},ke(a.component.PageNavigation,z.Component),a.component.PageNavigation.prototype.prepare=function(){this.body=$("body"),this.document=$(document),this.window=$(window),this.hoverTimeout=null,this.activeClass="is-open",this.timeOut=150,this.header=$(this.settings.get("global.headerSelector")),this.headerHeight=this.variables.get("headerHeight")||0,this.createBackdrop(),setTimeout(()=>{this.updateBackdrop()},100),this.$items=$(".PageNavigation-item > a"),this.subsClass="PageNavigation-item--hasSub",this.toggleAttr="data-page-navigation-toggle",this.$toggles=this.element.find("[data-sub] > ["+this.toggleAttr+"]"),this.$activeToggle=null,this.$activeItem=null,this.openedWithFocus=!1,this.menuAim=new Xs,this.aimRecheckMs=60,this.aimTolerance=0,this.$items.hover(this.toggleSubNav.bind(this),this.clearSubNav.bind(this)),this.$toggles.on("click",this.handleToggleClick.bind(this)),this.element.on("keydown",this.handleKeydown.bind(this)),this.document.on("focusin.pageNavigation",this.handleFocusIn.bind(this)),this.backdropCloseArmed=!1,this.$backdrop.hover(()=>{this.backdropCloseArmed&&(this.hoverTimeout=setTimeout(()=>{this.close()},this.timeOut))},()=>{clearTimeout(this.hoverTimeout)}),this.variables.on("headerHeight",()=>{this.headerHeight=this.variables.get("headerHeight")||0,this.updateBackdrop()}),$(window).on("resize",Zr(500,()=>{this.element.trigger("ui.pageNavigation.update")})),this.element.on("ui.pageNavigation.update",()=>{this.updateBackdrop()})},a.component.PageNavigation.prototype.toggleSubNav=function(t){clearTimeout(this.hoverTimeout),this.scheduleHoverActivate($(t.currentTarget),this.timeOut)},a.component.PageNavigation.prototype.scheduleHoverActivate=function(t,s){const e=this;this.hoverTimeout=setTimeout(function(){if(!t.is(":hover"))return;const c=t.closest("li");if(!c.is("[data-sub]")){e.close(c);return}if(e.$activeItem&&e.$activeItem.length&&e.$activeItem.get(0)!==c.get(0)&&e.isAimingAtActivePanel()){e.scheduleHoverActivate(t,e.aimRecheckMs);return}e.open(c)},s)},a.component.PageNavigation.prototype.isAimingAtActivePanel=function(){if(!this.$activePanel||!this.$activePanel.length)return!1;const t=this.$activePanel.get(0).getBoundingClientRect();return t.width===0||t.height===0?!1:this.menuAim.isAimingAt(t,{tolerance:this.aimTolerance})},a.component.PageNavigation.prototype.clearSubNav=function(){clearTimeout(this.hoverTimeout)},a.component.PageNavigation.prototype.handleToggleClick=function(t){const s=$(t.currentTarget).closest("li");s.hasClass(this.activeClass)?this.close():this.open(s,!0)},a.component.PageNavigation.prototype.handleKeydown=function(t){if(this.$activeToggle){if(t.key==="Escape"){const s=this.$activeToggle;this.close(),s.trigger("focus");return}t.key==="Tab"&&this.handleTabTrap(t)}},a.component.PageNavigation.prototype.getFocusables=function(t){return!t||!t.length?[]:t.find('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])').filter(":visible").toArray().filter(s=>!s.closest("[inert]"))},a.component.PageNavigation.prototype.handleTabTrap=function(t){const s=this.$activeToggle.get(0),e=this.getFocusables(this.$activePanel);if(!e.length)return;const c=e[0],u=e[e.length-1],d=document.activeElement;t.shiftKey?d===s?(t.preventDefault(),u.focus()):d===c&&(t.preventDefault(),s.focus()):d===s?(t.preventDefault(),c.focus()):d===u&&(t.preventDefault(),s.focus())},a.component.PageNavigation.prototype.handleFocusIn=function(t){if(!this.$activeToggle||!this.openedWithFocus)return;const s=this.element.get(0);s!==t.target&&!$.contains(s,t.target)&&this.close()},a.component.PageNavigation.prototype.destroy=function(){this.document.off("focusin.pageNavigation"),this.document.off("mousemove.pageNavigation")},a.component.PageNavigation.prototype.open=function(t,s){let e=t.attr("data-sub"),c=$("#PageSubNavigation-"+e);
110if(this.body.addClass("is-opened-PageSubNavigation"),this.element.addClass(this.activeClass),t.addClass(this.activeClass),t.siblings().removeClass(this.activeClass),this.$toggles.attr("aria-expanded","false"),this.$activeToggle=t.children("["+this.toggleAttr+"]"),this.$activeToggle.attr("aria-expanded","true"),this.openedWithFocus=!!s,this.$backdrop.show(),this.backdropCloseArmed=!1,this.menuAim.clear(),this.document.off("mousemove.pageNavigation"),this.document.on("mousemove.pageNavigation",u=>{this.backdropCloseArmed=!0,this.menuAim.track(u.clientX,u.clientY,Date.now()),window.MenuAimDebug&&this.$activePanel&&this.$activePanel.length&&this.menuAim.drawDebug(this.$activePanel.get(0).getBoundingClientRect(),{tolerance:this.aimTolerance})}),c.addClass(this.activeClass),c.siblings().removeClass(this.activeClass),this.$activePanel=c,this.$activeItem=t,$(".PageNavigation-item.PageNavigationSideSubNavigation").trigger("ui.PageNavigationSideSubNavigation.close",{target:t.get(0)}),this.element.trigger("ui.pageNavigation.open"),s){const u=this.getFocusables(c);u.length&&u[0].focus()}},a.component.PageNavigation.prototype.close=function(t){this.body.removeClass("is-opened-PageSubNavigation"),this.element.removeClass(this.activeClass),this.$backdrop.hide(),$(".PageSubNavigation-content").removeClass(this.activeClass),$(".PageNavigation-item:not(.PageNavigationSideSubNavigation)").removeClass(this.activeClass),this.$toggles&&this.$toggles.attr("aria-expanded","false"),this.$activeToggle=null,this.$activePanel=null,this.$activeItem=null,this.openedWithFocus=!1,this.backdropCloseArmed=!1,this.menuAim.clear(),this.menuAim.clearDebug(),this.document.off("mousemove.pageNavigation"),t&&$(".PageNavigation-item.PageNavigationSideSubNavigation").trigger("ui.PageNavigationSideSubNavigation.close",{target:t.get(0)}),this.element.trigger("ui.pageNavigation.close")},a.component.PageNavigation.prototype.createBackdrop=function(){let t=$("<div>");t.addClass("Backdrop").addClass("PageSubNavigation-backdrop").addClass("PageSubNavigation-backdrop--header").attr("aria-hidden","true"),this.element.parent().prepend(t),this.headerBackdrop=t,t=$("<div>"),t.addClass("Backdrop").addClass("PageSubNavigation-backdrop").addClass("PageSubNavigation-backdrop--other").attr("aria-hidden","true"),this.element.parent().prepend(t),this.otherBackdrop=t,this.$backdrop=$(".PageSubNavigation-backdrop")},a.component.PageNavigation.prototype.updateBackdrop=function(){this.headerBackdrop.css({height:this.headerHeight,top:0}),this.otherBackdrop.css({height:this.body.outerHeight()-this.headerHeight,top:this.headerHeight})};var a=a||{};a.component=a.component||{},a.component.SideNavigation=function(s,e){z.Component.call(this,s),this.dependencies={settings:e.get("settings"),variables:e.get("variables")},this.settings=this.dependencies.settings,this.variables=this.dependencies.variables},ke(a.component.SideNavigation,z.Component),a.component.SideNavigation.prototype.prepare=function(){this.body=$("body"),this.document=$(document),this.window=$(window),this.hoverTimeout__sub=null,this.hoverTimeout__main=null,this.activeClass="is-active",this.openClass="is-open",this.timeOut=200,this.openSubNaTimeOut=this.timeOut,this.header=$(this.settings.get("global.headerSelector")),this.$closeButton=$('[data-side-navigation="close"]'),this.isClosable=this.element.hasClass("SideNavigation--closable"),this.closableButton=$('[data-side-navigation="toggle"]'),this.$firstLevel=$('[data-side-navigation="main"]'),this.$secondLevel=$('[data-side-navigation="subs"]'),this.$backdrop=null,this.headerBackdrop=null,this.otherBackdrop=null,this.createBackdrop(),this.$items=this.$firstLevel.find("a"),this.subsClass="has-sub",this.$items.hover(this.handleOpenSubNav.bind(this),this.handleCloseSubNav.bind(this)),this.$secondLevel.hover(this.handleSecondLevelHover.bind(this)),this.$closeButton.click(this.handleCloseNav.bind(this)),this.isClosable&&(this.closableButton.hover(this.handleOpenNav.bind(this)),this.closableButton.click(t=>{t.preventDefault()}))},a.component.SideNavigation.prototype.handleOpenNav=function(t){t.preventDefault(),clearTimeout(this.hoverTimeout__main),this.element.hasClass(this.openClass)?this.hoverTimeout__sub=setTimeout(()=>{this.closeSubNav()},this.timeOut):this.hoverTimeout__main=setTimeout(()=>{this.openNav()},this.timeOut)},a.component.SideNavigation.prototype.handleCloseNav=function(t){t.preventDefault(),this.element.hasClass(this.activeClass)&&(this.closeSubNav(),this.isClosable&&this.closeNav())},a.component.SideNavigation.prototype.openNav=function(){this.showBackdrop(()=>{this.body.addClass("is-open-SideNavigation"),this.element.addClass(this.openClass),this.openSubNaTimeOut=this.timeOut*3})},a.component.SideNavigation.prototype.closeNav=function(){this.body.removeClass("is-open-SideNavigation"),this.element.removeClass(this.openClass),this.hideBackdrop()},a.component.SideNavigation.prototype.handleOpenSubNav=function(t){t.preventDefault();let s=$(t.target).parent("li");clearTimeout(this.hoverTimeout__sub),s.hasClass(this.subsClass)?this.hoverTimeout__sub=setTimeout(()=>{this.openSubNav(s),this.openSubNaTimeOut=this.timeOut},this.openSubNaTimeOut):this.hoverTimeout__sub=setTimeout(()=>{this.closeSubNav()},this.timeOut)},a.component.SideNavigation.prototype.handleCloseSubNav=function(t){t.preventDefault(),$(t.target).parent("li").hasClass(this.subsClass)&&(this.element.hasClass(this.activeClass)||clearTimeout(this.hoverTimeout__sub))},a.component.SideNavigation.prototype.openSubNav=function(t){let s=t.attr("data-sub"),e=$(`[data-side-navigation-id="${s}"]`);this.showBackdrop(()=>{this.body.addClass("is-active-SideNavigation"),this.element.addClass(this.activeClass),this.$secondLevel.addClass(this.activeClass),t.addClass(this.activeClass),t.siblings().removeClass(this.activeClass),e.addClass(this.activeClass),e.siblings().removeClass(this.activeClass)})},a.component.SideNavigation.prototype.closeSubNav=function(){this.body.removeClass("is-active-SideNavigation"),this.element.removeClass(this.activeClass),this.$secondLevel.removeClass(this.activeClass),this.isClosable||this.hideBackdrop(),$(".SideNavigationSubs-wrapper").removeClass(this.activeClass),this.$items.parent("li").removeClass(this.activeClass)},a.component.SideNavigation.prototype.handleSecondLevelHover=function(t){t.preventDefault(),clearTimeout(this.hoverTimeout__sub)},a.component.SideNavigation.prototype.createBackdrop=function(){let t=$("<div>");t.addClass("Backdrop SideNavigationBackdrop"),t.addClass("Backdrop SideNavigationBackdrop--header"),this.headerBackdrop=t,t=$("<div>"),t.addClass("Backdrop SideNavigationBackdrop"),t.addClass("Backdrop SideNavigationBackdrop--other"),this.otherBackdrop=t},a.component.SideNavigation.prototype.showBackdrop=function(t){if(this.headerHeight=this.variables.get("headerHeight")||0,this.updateBackdrop(),this.$backdrop){t();return}this.headerBackdrop.appendTo(document.body),this.otherBackdrop.appendTo(document.body),this.$backdrop=$(".SideNavigationBackdrop"),this.$backdrop.addClass("is-active"),t(),this.$backdrop.hover(()=>{this.hoverTimeout__sub=setTimeout(()=>{this.closeSubNav(),this.isClosable&&this.closeNav()},this.timeOut)},()=>{clearTimeout(this.hoverTimeout__sub)})},a.component.SideNavigation.prototype.hideBackdrop=function(){this.$backdrop&&(this.$backdrop.removeClass("is-active"),this.$backdrop.remove(),this.$backdrop=null)},a.component.SideNavigation.prototype.updateBackdrop=function(){this.headerBackdrop.css({height:this.headerHeight,top:0}),this.otherBackdrop.css({height:this.body.outerHeight()-this.headerHeight,top:this.headerHeight})};var a=a||{};a.component=a.component||{},a.component.AutoComplete=function(s,e){z.Component.call(this,s),this.dependencies={settings:e.get("settings")},this.settings=this.dependencies.settings,this.debouncedChangeEvent=Ar(350,(function(c){this.handleSearch(c)}).bind(this))},ke(a.component.AutoComplete,z.Component),a.component.AutoComplete.prototype.prepare=function(){this.body=$("body"),this.document=$(document),this.window=$(window),this.$control=this.element.find(".js-autocomplete-control"),this.$target=this.element.find("[data-autocomplete-target]"),this.$reset=this.element.find(".js-autocomplete-reset"),this.$form=this.element.find("form"),this.requsetUrl=this.$form.attr("data-autocomplete-action"),this.lastSearchPhrase=null,this.searchPhrase=null,this.getConfig(),this.useBackdrop=this.config.useBackdropDesktop||this.config.useBackdropMobile,this.useBackdrop&&(this.$headerBackdrop=null,this.$mainBackdrop=null,this.backdropDelay=0,this.createBackdrop()),this.$control.on("input",this.handleControl.bind(this)),this.$control.on("focus",this.handleFocus.bind(this)),this.$form.on("submit",this.handleSubmit.bind(this)),this.$form.on("reset",this.handleReset.bind(this)),$("body").on("click",".AutoComplete-backdrop",this.handleBackdropClick.bind(this)),this.keydownEvent=t=>{this.watchKeyboard(t)}},a.component.AutoComplete.prototype.destroy=function(){this.removeEvents()},a.component.AutoComplete.prototype.getConfig=function(){const t=this.elementNode.dataset;this.config={useBackdropDesktop:"autocompleteUseBackdropDesktop"in t,useBackdropMobile:"autocompleteUseBackdropMobile"in t}},a.component.AutoComplete.prototype.createBackdrop=function(){this.$headerBackdrop=$("<div>").addClass("Backdrop AutoComplete-backdrop AutoComplete-backdrop--header"),this.$mainBackdrop=$("<div>").addClass("Backdrop AutoComplete-backdrop AutoComplete-backdrop--main")},a.component.AutoComplete.prototype.showBackdrop=function(t){if(!this.$mainBackdrop){t&&t();return}this.$headerBackdrop.appendTo($(this.settings.get("global.headerSelector"))),this.$mainBackdrop.appendTo(document.body),setTimeout(()=>{this.$headerBackdrop.addClass("is-active"),this.$mainBackdrop.addClass("is-active"),t&&t()},this.backdropDelay)},a.component.AutoComplete.prototype.hideBackdrop=function(){this.useBackdrop&&this.$mainBackdrop&&(this.$headerBackdrop.removeClass("is-active"),this.$mainBackdrop.removeClass("is-active"),setTimeout(()=>{this.$headerBackdrop.remove(),this.$mainBackdrop.remove()},this.backdropDelay))},a.component.AutoComplete.prototype.addEvents=function(){window.addEventListener("click",this.clickEvent,!0),window.addEventListener("keydown",this.keydownEvent,!0)},a.component.AutoComplete.prototype.removeEvents=function(){window.removeEventListener("click",this.clickEvent,!0),window.removeEventListener("keydown",this.keydownEvent,!0)},a.component.AutoComplete.prototype.handleControl=function(t){let s=t.target;this.searchPhrase=s.value;let e=this.searchPhrase.length;this.lastSearchPhrase!==this.searchPhrase&&(e>2?this.debouncedChangeEvent():this.close(),e>0?this.$reset.show():this.$reset.hide())},a.component.AutoComplete.prototype.handleFocus=function(t){t.target.value.length>0&&this.lastSearchPhrase!==null?(this.open(),this.$reset.show()):this.$reset.hide()},a.component.AutoComplete.prototype.handleSubmit=function(t){if(!this.$control.val().length)return!1},a.component.AutoComplete.prototype.handleSearch=function(){const t=this.createRequest().setUrl(this.requsetUrl).addData(Object.fromEntries(new FormData(this.$form.get(0)))).setSaveHistory(!1).addSuccessCallback(this.handleRequestSuccess.bind(this)).addErrorCallback(this.handleRequestError.bind(this)).addFinalCallback(this.handleRequestFinal.bind(this));this.setBusy(!0),t.send()},a.component.AutoComplete.prototype.handleRequestSuccess=function(){this.open(),this.lastSearchPhrase=this.searchPhrase},a.component.AutoComplete.prototype.handleRequestError=function(){this.close()},a.component.AutoComplete.prototype.handleRequestFinal=function(){this.setBusy(!1)},a.component.AutoComplete.prototype.handleReset=function(t){setTimeout(()=>{this.$control.focus(),this.$reset.hide(),this.close()},0)},a.component.AutoComplete.prototype.handleBackdropClick=function(t){t.preventDefault(),this.close()},a.component.AutoComplete.prototype.open=function(){this.showBackdrop(()=>{this.body.addClass("is-opened-AutoComplete"),this.element.addClass("is-active"),this.$target.addClass("is-active"),this.addEvents()})},a.component.AutoComplete.prototype.close=function(){this.body.removeClass("is-opened-AutoComplete"),this.element.removeClass("is-active"),this.$target.removeClass("is-active"),this.removeEvents(),this.hideBackdrop()},a.component.AutoComplete.prototype.watchKeyboard=function(t){event.keyCode===27&&this.close()};var a=a||{};a.component=a.component||{},a.component.LiveSearch=function(s){z.Component.call(this,s),this.debouncedSearch=Ar(350,(function(){this.search()}).bind(this))},ke(a.component.LiveSearch,z.Component),a.component.LiveSearch.Defaults={MODE:"snippet",MIN:3,DEBOUNCE:350,PRESENTATION:"dropdown"},a.component.LiveSearch.prototype.prepare=function(){if(this.form=this.elementNode.querySelector("form"),this.control=this.elementNode.querySelector("[data-live-search-input]"),this.reset=this.elementNode.querySelector("[data-live-search-reset]"),this.target=this.elementNode.querySelector("[data-live-search-target]"),this.itemTemplate=this.elementNode.querySelector("template[data-live-search-item]"),this.emptyTemplate=this.elementNode.querySelector("template[data-live-search-empty]"),!this.form||!this.control||!this.target){console.warn("LiveSearch: missing form, input or target");return}this.getConfig(),this.debouncedSearch=Ar(this.config.debounce,(function(){this.search()}).bind(this)),this.requestUrl=this.config.action||this.form.getAttribute("action"),this.lastSearchPhrase=null,this.searchPhrase=null,this.currentRequest=null,this.activeIndex=-1,this.optionNodes=[],this.listbox=null,this.setupAria(),this.control.addEventListener("input",this.handleInput.bind(this)),this.control.addEventListener("keydown",this.handleKeydown.bind(this)),this.control.addEventListener("focus",this.handleFocus.bind(this)),this.form.addEventListener("submit",this.handleSubmit.bind(this)),this.form.addEventListener("reset",this.handleReset.bind(this)),this.target.addEventListener("mouseover",this.handleOptionHover.bind(this)),this.target.addEventListener("mouseleave",this.clearActive.bind(this)),this.isDropdown()&&(this.documentClickHandler=this.handleDocumentClick.bind(this),document.addEventListener("click",this.documentClickHandler)),this.toggleReset()},a.component.LiveSearch.prototype.destroy=function(){this.documentClickHandler&&(document.removeEventListener("click",this.documentClickHandler),this.documentClickHandler=null)},a.component.LiveSearch.prototype.getConfig=function(){const t=this.elementNode.dataset,s=a.c
110omponent.LiveSearch.Defaults;this.config={mode:t.liveSearchMode||s.MODE,action:t.liveSearchAction||"",min:parseInt(t.liveSearchMin,10)||s.MIN,debounce:parseInt(t.liveSearchDebounce,10)||s.DEBOUNCE,presentation:t.liveSearchPresentation||s.PRESENTATION}},a.component.LiveSearch.prototype.isDropdown=function(){return this.config.presentation==="dropdown"},a.component.LiveSearch.prototype.isJsonMode=function(){return this.config.mode==="json"},a.component.LiveSearch.prototype.setupAria=function(){this.listboxId="LiveSearch-listbox-"+Math.round(this.getInstanceSeed()),this.control.setAttribute("role","combobox"),this.control.setAttribute("aria-autocomplete","list"),this.control.setAttribute("aria-expanded","false")},a.component.LiveSearch.prototype.getInstanceSeed=function(){if(typeof this.instanceSeed>"u"){const t=document.querySelectorAll('[data-component="LiveSearch"]');this.instanceSeed=Array.prototype.indexOf.call(t,this.elementNode),this.instanceSeed<0&&(this.instanceSeed=0)}return this.instanceSeed},a.component.LiveSearch.prototype.handleInput=function(t){if(this.searchPhrase=t.target.value,this.toggleReset(),this.lastSearchPhrase!==this.searchPhrase){if(this.searchPhrase.trim().length<this.config.min){this.abortRunning(),this.clearResults(),this.close();return}this.debouncedSearch()}},a.component.LiveSearch.prototype.handleFocus=function(t){t.target.value.trim().length>=this.config.min&&this.hasOptions()&&this.open()},a.component.LiveSearch.prototype.handleSubmit=function(t){if(!this.form.getAttribute("action")){t.preventDefault();return}this.control.value.trim().length||t.preventDefault()},a.component.LiveSearch.prototype.handleReset=function(){setTimeout((function(){this.control.value="",this.searchPhrase="",this.lastSearchPhrase=null,this.abortRunning(),this.clearResults(),this.close(),this.toggleReset(),this.control.focus()}).bind(this),0)},a.component.LiveSearch.prototype.search=function(){if(!this.requestUrl){console.warn("LiveSearch: missing request url");return}this.abortRunning();const t=this.createRequest().setUrl(this.requestUrl).setMethod("get").setData(Object.fromEntries(new FormData(this.form))).setSaveHistory(!1).addErrorCallback(this.handleRequestError.bind(this)).addFinalCallback(this.handleRequestFinal.bind(this));this.isJsonMode()?t.addSuccessCallback(this.handleJsonSuccess.bind(this)):t.addSuccessCallback(this.handleSnippetSuccess.bind(this)),this.setBusy(!0),this.currentRequest=t.send()},a.component.LiveSearch.prototype.abortRunning=function(){this.currentRequest&&this.currentRequest.readyState!==4&&this.currentRequest.abort(),this.currentRequest=null},a.component.LiveSearch.prototype.handleSnippetSuccess=function(){this.lastSearchPhrase=this.searchPhrase,this.refreshOptions(),this.open()},a.component.LiveSearch.prototype.handleJsonSuccess=function(t){this.lastSearchPhrase=this.searchPhrase;const s=t&&t.items||[];this.renderJsonItems(s,t),this.refreshOptions(),this.hasOptions()||this.emptyTemplate?this.open():this.close()},a.component.LiveSearch.prototype.renderJsonItems=function(t,s){const e=this.getJsonHost();if(!t.length){if(e.replaceChildren(),this.emptyTemplate&&this.emptyTemplate.content.firstElementChild){const u=this.emptyTemplate.content.firstElementChild.cloneNode(!0);this.fillJsonRow(u,s||{}),e.appendChild(u)}return}const c=document.createElement("ul");c.classList.add("AutoCompleteList"),t.forEach((function(u){c.appendChild(this.createJsonRow(u))}).bind(this)),e.replaceChildren(c)},a.component.LiveSearch.prototype.getJsonHost=function(){return this.target.querySelector("[data-live-search-list]")||this.target},a.component.LiveSearch.prototype.createJsonRow=function(t){if(this.itemTemplate&&this.itemTemplate.content.firstElementChild){const c=this.itemTemplate.content.firstElementChild.cloneNode(!0);return this.fillJsonRow(c,t),c}const s=document.createElement("li"),e=document.createElement("a");return e.setAttribute("href",t.url),e.textContent=t.title,s.appendChild(e),s},a.component.LiveSearch.prototype.fillJsonRow=function(t,s){const e=[t].concat(Array.prototype.slice.call(t.querySelectorAll("*"))),c="liveSearchAttr";e.forEach(function(u){Object.keys(u.dataset).forEach(function(d){const S=s[u.dataset[d]];if(d==="liveSearchField"){u.textContent=Do(S)&&S!==null?String(S):"";return}if(d.indexOf(c)===0&&d.length>c.length){if(!Do(S)||S===null)return;u.setAttribute(vs(d.slice(c.length)),String(S))}})})},a.component.LiveSearch.prototype.handleRequestError=function(){this.close()},a.component.LiveSearch.prototype.handleRequestFinal=function(){this.setBusy(!1),this.currentRequest=null},a.component.LiveSearch.prototype.refreshOptions=function(){this.clearActive(),this.listbox=this.target.querySelector("[data-live-search-list]")||this.target,this.listbox.setAttribute("id",this.listboxId),this.listbox.setAttribute("role","listbox"),this.control.setAttribute("aria-controls",this.listboxId),this.optionNodes=Array.prototype.slice.call(this.listbox.querySelectorAll("a")),this.optionNodes.forEac
110h((function(t,s){t.setAttribute("role","option"),t.setAttribute("id",this.listboxId+"-option-"+s),t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1"),t.parentNode&&t.parentNode.tagName==="LI"&&t.parentNode.setAttribute("role","presentation")}).bind(this))},a.component.LiveSearch.prototype.hasOptions=function(){return this.optionNodes.length>0},a.component.LiveSearch.prototype.handleOptionHover=function(t){const s=t.target.closest("a");s&&this.setActive(this.optionNodes.indexOf(s),!1)},a.component.LiveSearch.prototype.handleKeydown=function(t){switch(t.key){case"ArrowDown":this.hasOptions()&&(t.preventDefault(),this.open(),this.moveActive(1));break;case"ArrowUp":this.hasOptions()&&(t.preventDefault(),this.open(),this.moveActive(-1));break;case"Enter":this.activeIndex>=0&&this.hasOptions()&&(t.preventDefault(),this.optionNodes[this.activeIndex].click());break;case"Escape":this.close();break;case"Tab":this.close();break}},a.component.LiveSearch.prototype.setActive=function(t,s){if(t<0||t>=this.optionNodes.length)return;this.clearActive(),this.activeIndex=t;const e=this.optionNodes[t];e.classList.add("is-active"),e.setAttribute("aria-selected","true"),this.control.setAttribute("aria-activedescendant",e.getAttribute("id")),s!==!1&&e.scrollIntoView({block:"nearest"})},a.component.LiveSearch.prototype.clearActive=function(){const t=this.optionNodes[this.activeIndex];t&&(t.classList.remove("is-active"),t.setAttribute("aria-selected","false")),this.activeIndex=-1,this.control.removeAttribute("aria-activedescendant")},a.component.LiveSearch.prototype.moveActive=function(t){const s=this.optionNodes.length;if(!s)return;let e=this.activeIndex+t;e<0?e=s-1:e>=s&&(e=0),this.setActive(e)},a.component.LiveSearch.prototype.open=function(){this.control.setAttribute("aria-expanded","true"),this.isDropdown()&&(this.elementNode.classList.add("is-active"),this.target.classList.add("is-active"))},a.component.LiveSearch.prototype.close=function(){this.control.setAttribute("aria-expanded","false"),this.clearActive(),this.isDropdown()&&(this.elementNode.classList.remove("is-active"),this.target.classList.remove("is-active"))},a.component.LiveSearch.prototype.clearResults=function(){this.clearActive(),this.optionNodes=[],this.isJsonMode()&&this.getJsonHost().replaceChildren()},a.component.LiveSearch.prototype.toggleReset=function(){this.reset&&this.reset.classList.toggle("is-visible",this.control.value.length>0)},a.component.LiveSearch.prototype.handleDocumentClick=function(t){this.elementNode.contains(t.target)||this.close()};var a=a||{};a.component=a.component||{},a.component.Collapse=function(s){z.Component.call(this,s)}
110,ke(a.component.Collapse,z.Component),a.component.Collapse.prototype.prepare=function(){if(this.body=$("body"),this.document=$(document),this.window=$(window),this.activeClass="is-active",this.transitionClass="is-collapsing",this.transitioning=null,this.disabledTransiton=!1,this.transitionDuration=ir,this.id=this.element.attr("id"),this.isAccordion=!1,this.$parent=null,this.$showFocus=null,this.$hideFocus=null,this.id===void 0&&console.error(this.element+"is missing id tag"),this.element.hasClass("Collapse--fade")||(this.disabledTransiton=!0),this.element.parents("[data-collapse-parent-item]").length&&(this.isAccordion=this.element.parents("[data-collapse-parent-item]")),this.element.attr("data-collapse-parent")!==void 0&&(this.$parent=$(this.element.attr("data-collapse-parent"))),this.element.attr("data-collapse-show-focus")!==void 0){let t=this.element.attr("data-collapse-show-focus");t==="none"?this.$showFocus=!1:this.$showFocus=$(t)}if(this.element.attr("data-collapse-hide-focus")!==void 0){let t=this.element.attr("data-collapse-hide-focus");t==="none"?this.$hideFocus=!1:this.$hideFocus=$(t)}this.resetFieldsOnShow=this.element.attr("data-collapse-show-reset")!==void 0,this.resetFieldsOnHide=this.element.attr("data-collapse-hide-reset")!==void 0,this.$trigger=$('[data-collapse="#'+this.id+'"]'),this.$trigger.on("click",this.handleClick.bind(this)),this.element.on("ui.collapse.hide",this.handleHide.bind(this)),this.element.on("ui.collapse.show",this.handleShow.bind(this)),this.element.on("ui.collapse.toggle",this.handleToggle.bind(this)),this.controlByCheckbox(this.$trigger)},a.component.Collapse.prototype.destroy=function(){},a.component.Collapse.prototype.updateAria=function(){const t=this.element.hasClass(this.activeClass);this.element.attr("aria-hidden",!t),this.$trigger.attr("aria-expanded",t)},a.component.Collapse.prototype.handleClick=function(t){const s=$(t.target);s.prop("tagName")!=="INPUT"&&t.preventDefault(),s.is(":checkbox")?this.controlByCheckbox(s):this.toggle()},a.component.Collapse.prototype.handleToggle=function(t){t.preventDefault(),t.stopPropagation(),this.toggle()},a.component.Collapse.prototype.handleShow=function(t){t.preventDefault(),t.stopPropagation(),this.show()},a.component.Collapse.prototype.handleHide=function(t){t.preventDefault(),t.stopPropagation(),this.hide()},a.component.Collapse.prototype.controlByCheckbox=function(t){t.is(":checkbox")&&(t.is(":checked")?this.show():this.hide())},a.component.Collapse.prototype.toggle=function(){this[this.element.hasClass(this.activeClass)?"hide":"show"]()},a.component.Collapse.prototype.show=function(){if(!(this.transitioning||this.element.hasClass(this.activeClass))){if(this.resetFieldsOnShow&&this.resetFields(),this.isAccordion){var t=this.isAccordion.siblings();t.find(".Collapse").each((s,e)=>{$(e).trigger("ui.collapse.hide")})}this.disabledTransiton?(this.element.addClass(this.activeClass),this.$parent!==null&&this.$parent.length&&this.$parent.addClass(this.activeClass),this.element.trigger("ui.collapse.showing",{targetHeight:this.element[0].scrollHeight}),this.element.trigger("ui.collapse.shown")):(this.element.addClass(this.activeClass).addClass(this.transitionClass).height(0),this.$parent!==null&&this.$parent.length&&this.$parent.addClass(this.activeClass),this.$trigger.addClass(this.activeClass),this.transitioning=1,this.element.trigger("ui.collapse.showing",{targetHeight:this.element[0].scrollHeight}),this.element.height(this.element[0].scrollHeight),setTimeout(()=>{this.element.removeClass(this.transitionClass),this.element.height(""),this.transitioning=0,this.element.trigger("ui.collapse.shown")},this.transitionDuration)),this.$showFocus===!1?this.$trigger.blur():this.$showFocus!=null&&this.$showFocus.focus(),this.updateAria()}},a.component.Collapse.prototype.hide=function(){this.transitioning||!this.element.hasClass(this.activeClass)||(this.element.height(this.element.height())[0].offsetHeight,this.disabledTransiton?(this.element.trigger("ui.collapse.hiding",{targetHeight:0}),this.element.removeClass(this.activeClass),this.$parent!==null&&this.$parent.length&&this.$parent.removeClass(this.activeClass),this.updateAria(),this.resetFieldsOnHide&&this.resetFields(),this.element.trigger("ui.collapse.hidden")):(this.element.addClass(this.transitionClass),this.$trigger.removeClass(this.activeClass),this.transitioning=1,this.element.trigger("ui.collapse.hiding",{targetHeight:0}),this.element.height(0),setTimeout(()=>{this.element.removeClass(this.activeClass),this.transitioning=0,this.element.removeClass(this.transitionClass),this.element.height(""),this.$parent!==null&&this.$parent.length&&this.$parent.removeClass(this.activeClass),this.updateAria(),this.resetFieldsOnHide&&this.resetFields(),this.element.trigger("ui.collapse.hidden")},this.transitionDuration)),this.$hideFocus===!1?this.$trigger.blur():this.$hideFocus!=null&&this.$hideFocus.focus())},a.component.Collapse.prototype.resetFields=function(){const t=this.element.find('input
110:not([type="hidden"]):not([readonly]), select:not([readonly]), textarea:not([readonly])').filter((s,e)=>!e.disabled);t.each((s,e)=>{const c=e.tagName.toLowerCase();if(c==="textarea"){e.value="";return}if(c==="select"){e.selectedIndex=-1;return}const u=(e.type||"").toLowerCase();u==="checkbox"||u==="radio"?e.checked=!1:e.value=""}),t.each((s,e)=>{e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0}))})};var a=a||{};a.component=a.component||{},a.component.CollapseList=function(s){z.Component.call(this,s)},ke(a.component.CollapseList,z.Component),a.component.CollapseList.prototype.prepare=function(){if(this.body=$("body"),this.document=$(document),this.window=$(window),this.activeClass="is-active",this.transitionClass="is-collapsing",this.transitioning=null,this.disabledTransiton=!1,this.transitionDuration=ir,this.id=this.element.attr("id"),this.$showFocus=null,this.$hideFocus=null,this.$parent=null,this.id===void 0&&console.error(this.element+"is missing id tag"),this.element.hasClass("CollapseList--fade")||(this.disabledTransiton=!0),this.element.attr("data-collapse-list-parent")!==void 0&&(this.$parent=$(this.element.attr("data-collapse-list-parent"))),this.element.attr("data-collapse-list-show-focus")!==void 0){let t=this.element.attr("data-collapse-list-show-focus");t==="none"?this.$showFocus=!1:this.$showFocus=$(t)}this.$trigger=$('[data-collapse-list="#'+this.id+'"]'),this.$hiddenItems=this.element.find(".CollapseList-item--hidden"),this.setHiddenInert(!this.element.hasClass(this.activeClass)),this.$trigger.on("click",this.click.bind(this)),this.element.on("ui.collapseList.hide",this.hide.bind(this)),this.element.on("ui.collapseList.show",this.show.bind(this)),this.element.on("ui.collapseList.toggle",this.toggle.bind(this))},a.component.CollapseList.prototype.setHiddenInert=function(t){this.$hiddenItems.each(function(){this.inert=t})},a.component.CollapseList.prototype.click=function(t){t.preventDefault(),this.toggle()},a.component.CollapseList.prototype.toggle=function(){this[this.element.hasClass(this.activeClass)?"hide":"show"]()},a.component.CollapseList.prototype.show=function(){this.transitioning||this.element.hasClass(this.activeClass)||(this.$trigger.attr("aria-expanded","true"),this.setHiddenInert(!1),this.disabledTransiton?(this.element.addClass(this.activeClass),this.$parent!==null&&this.$parent.length&&this.$parent.addClass(this.activeClass),this.$trigger.addClass(this.activeClass)):(this.element.find(".CollapseList-item--hidden").each(function(){$(this).height(0)}),this.element.addClass(this.activeClass).addClass(this.transitionClass),this.$parent!==null&&this.$parent.length&&this.$parent.addClass(this.activeClass),this.$trigger.addClass(this.activeClass),this.transitioning=1,this.element.find(".CollapseList-item--hidden").each(function(){$(this).height($(this)[0].scrollHeight)}),setTimeout(()=>{this.element.removeClass(this.transitionClass),this.element.find(".CollapseList-item--hidden").removeAttr("height"),this.transitioning=0},this.transitionDuration)),this.$showFocus===!1?this.$trigger.blur():this.$showFocus!=null&&this.$showFocus.focus())},a.component.CollapseList.prototype.hide=function(){this.transitioning||!this.element.hasClass(this.activeClass)||(this.$trigger.attr("aria-expanded","false"),this.setHiddenInert(!0),this.disabledTransiton?(this.element.removeClass(this.activeClass),this.$trigger.removeClass(this.activeClass),this.$parent!==null&&this.$parent.length&&this.$parent.removeClass(this.activeClass)):(this.element.find(".CollapseList-item--hidden").each(function(){$(this).height($(this).height())[0].offsetHeight}),this.element.addClass(this.transitionClass),this.$trigger.removeClass(this.activeClass),this.transitioning=1,this.element.find(".CollapseList-item--hidden").each(function(){$(this).height(0)}),setTimeout(()=>{this.element.removeClass(this.activeClass),this.transitioning=0,this.element.removeClass(this.transitionClass),this.element.find(".CollapseList-item--hidden").removeAttr("height"),this.$parent!==null&&this.$parent.length&&this.$parent.removeClass(this.activeClass)},this.transitionDuration)),this.$hideFocus===!1?this.$trigger.blur():this.$hideFocus!=null&&this.$hideFocus.focus())};var a=a||{};a.component=a.component||{},a.component.Toggle=function(s){z.Component.call(this,s)}
110,ke(a.component.Toggle,z.Component),a.component.Toggle.prototype.prepare=function(){this.body=$("body"),this.document=$(document),this.window=$(window),this.toggleClass="is-active",this.activeClass="is-active",this.id=this.element.attr("id"),this.inFocus=this.element.data("toggle-focus-in"),this.outFocus=this.element.data("toggle-focus-out"),this.inFocus!==void 0&&$(this.inFocus).length&&(this.inFocus=$(this.inFocus)),this.outFocus!==void 0&&$(this.outFocus).length&&(this.outFocus=$(this.outFocus)),this.id===void 0&&console.error(this.element+" is missing id tag"),this.element.data("toggle-class")!==void 0&&(this.toggleClass=this.element.data("toggle-class")),this.$trigger=$('[data-toggle="#'+this.id+'"]'),this.$trigger.on("click",this.handleClick.bind(this))},a.component.Toggle.prototype.handleClick=function(t){t.preventDefault(),this.toggle()},a.component.Toggle.prototype.toggle=function(){this.element.hasClass(this.toggleClass)?(this.element.removeClass(this.toggleClass),this.$trigger.removeClass(this.activeClass),this.outFocus&&this.outFocus.focus()):(this.element.addClass(this.toggleClass),this.$trigger.addClass(this.activeClass),this.inFocus&&this.inFocus.focus())};var a=a||{};a.component=a.component||{},a.component.FilterTree=function(s){z.Component.call(this,s)}
110,ke(a.component.FilterTree,z.Component),a.component.FilterTree.prototype.prepare=function(){Bn(this.element,()=>{this.activeClass="is-active",this.activeJsClass="is-active-js",this.transitionDuration=ir,this.toggleSelector=".FilterTree-trigger",this.addEvents()})},a.component.FilterTree.prototype.destroy=function(){this.removeEvents()},a.component.FilterTree.prototype.addEvents=function(){this.element.find(this.toggleSelector).on("click.FilterTree",this.handleToggle.bind(this))},a.component.FilterTree.prototype.removeEvents=function(){this.element.find(this.toggleSelector).off("click.FilterTree")},a.component.FilterTree.prototype.handleToggle=function(t){t.preventDefault();const s=$(t.target).parent("li");this.toggle(s)},a.component.FilterTree.prototype.toggle=function(t){this.isActive(t)?this.deActivate(t):this.activate(t)},a.component.FilterTree.prototype.isActive=function(t){return t.hasClass(this.activeClass)||t.hasClass(this.activeJsClass)},a.component.FilterTree.prototype.activate=function(t){t.addClass(this.activeJsClass).children("ul").stop().slideDown(this.transitionDuration)},a.component.FilterTree.prototype.deActivate=function(t){t.removeClass(this.activeJsClass).children("ul").stop().slideUp(this.transitionDuration,()=>{t.removeClass(this.activeClass)})};var a=a||{};a.component=a.component||{},a.component.ProductDetailCarousel=function(s){z.Component.call(this,s)}
110,ke(a.component.ProductDetailCarousel,z.Component),a.component.ProductDetailCarousel.prototype.prepare=function(){this.body=$("body"),this.document=$(document),this.window=$(window),this.carousel=null,this.dotsManager=null,Bn(this.element,this.init.bind(this)),this.control()},a.component.ProductDetailCarousel.prototype.destroy=function(){this.carousel!==null&&(this.carousel.slick("unslick"),this.carousel=null,this.dotsManager=null)},a.component.ProductDetailCarousel.prototype.control=function(){$(window).on("resize",Zr(100,()=>{this.init()}))},a.component.ProductDetailCarousel.prototype.init=function(){this.element.get(0).offsetParent!==null?this.create():this.destroy()},a.component.ProductDetailCarousel.prototype.create=function(){if(this.carousel===null){let t=this.element.children(".ProductDetailCarousel-main");t.on("init reInit",(s,e)=>{this.dotsManager=new Xo(e,5)}),this.carousel=t.slick({infinite:!1,rows:0,dots:!0,mobileFirst:!0,prevArrow:".ProductDetailCarousel-prev",nextArrow:".ProductDetailCarousel-next"}),this.carousel.on("afterChange",(s,e,c)=>{this.dotsManager.update(c)})}};var a=a||{};a.component=a.component||{},a.component.ScrollTo=function(s,e){z.Component.call(this,s),this.dependencies={scrollTo:e.get("scrollTo")}},ke(a.component.ScrollTo,z.Component),a.component.ScrollTo.prototype.prepare=function(){this.element.on("click",this.handleClick.bind(this))},a.component.ScrollTo.prototype.handleClick=function(t){t.preventDefault();let s=$(t.currentTarget).attr("href");if($(t.currentTarget).data("scroll-to-target")!==void 0&&(s=this.element.data("scroll-to-target")),s){let e=0,c=!1;if(this.element.data("scroll-to-offset")!==void 0){let u=this.element.data("scroll-to-offset");isNaN(u)?$(u).length&&(e+=$(u).outerHeight()):e+=u}this.element.data("scroll-to-hideable-header")!==void 0&&(c=this.element.data("scroll-to-hideable-header")),this.dependencies.scrollTo.scrollToTarget(s,e,c)}};var a=a||{};a.component=a.component||{},a.component.Sticky=function(s,e){z.Component.call(this,s),this.dependencies={settings:e.get("settings"),variables:e.get("variables"),availableArea:e.get("availableArea")},this.settings=this.dependencies.settings,this.variables=this.dependencies.variables,this.availableArea=this.dependencies.availableArea},ke(a.component.Sticky,z.Component),a.component.Sticky.prototype.prepare=function(){Bn(this.element,()=>{this.document=$(document),this.window=$(window),this.body=$("body"),this.header=$(".PageLayout-header"),this.isSticky=!1,this.lastScrollTop=0,this.scrollDirection=null,this.breakpointDataAttr="data-sticky-breakpoint",this.breakpoint=this.element.attr(this.breakpointDataAttr)||this.settings.get("global.breakpoint"),this.enableEndTrigger=!1,this.header.length&&(this.countHeaderHeight(),this.createTriggers(),this.createHeaderPlaceholder(),this.getTriggersPositions(),this.detectScrollDirection(),this.watchTriggers(),this.scrollEvent=Zr(10,t=>{this.detectScrollDirection(),this.getTriggersPositions(),this.watchTriggers()}),this.resizeEvent=Zr(500,t=>{this.countHeaderHeight(),this.updateTriggers(),this.detectScrollDirection(),this.getTriggersPositions(),this.watchTriggers()}),window.addEventListener("scroll",this.scrollEvent,!0),window.addEventListener("resize",this.resizeEvent,!0),this.element.on("ui.sticky.update",this.resizeEvent))})},a.component.Sticky.prototype.destroy=function(){window.removeEventListener("scroll",this.scrollEvent,!0),window.removeEventListener("resize",this.resizeEvent,!0),this.availableArea.remove("top","sticky")},a.component.Sticky.prototype.detectScrollDirection=function(){let t=window.pageYOffset||document.documentElement.scrollTop,s="up";t>this.lastScrollTop&&(s="down"),this.lastScrollTop=t<=0?0:t,this.scrollDirection=s},a.component.Sticky.prototype.stick=function(){this.isSticky=!0,this.element.addClass("is-sticky"),this.body.addClass("is-sticky-shown"),this.availableArea.add("top","sticky",this.elementNode),this.variables.get("fixedHeader")?this.setHeaderPosition():this.removeHeaderPosition()},a.component.Sticky.prototype.unStick=function(){this.isSticky=!1,this.removeHeaderPosition(),this.element.removeClass("is-sticky"),this.body.removeClass("is-sticky-shown"),this.availableArea.remove("top","sticky")},a.component.Sticky.prototype.setHeaderPosition=function(){this.header.css({position:"absolute",top:this.triggerStart.offset().top}),this.variables.get("fixedHeader")&&(this.headerPlaceholder.css({height:this.headerHeight+"px"}),this.availableArea.remove("top","header"))},a.component.Sticky.prototype.removeHeaderPosition=function(){this.header.css({position:"",top:""}),this.variables.get("fixedHeader")&&(this.headerPlaceholder.css({height:0}),this.availableArea.updateHeader())},a.component.Sticky.prototype.countHeaderHeight=function(){this.headerHeight=this.variables.get("headerHeight")||0},a.component.Sticky.prototype.getTriggersPositions=function(){this.triggerStartPostion=this.triggerStart.offset().top,this.enableEndTrigger&&(this.triggerEndPostion=this.triggerEnd.offset().top)},a.component.Sticky.prototype.watchTriggers=function(){Zo().width>=this.breakpoint?this.enableEndTrigger?this.lastScrollTop>this.triggerStartPostion&&this.lastScrollTop<this.triggerEndPostion?this.stick():this.unStick():this.lastScrollTop>this.triggerStartPostion?this.stick():this.unStick():this.unStick()},a.component.Sticky.prototype.createTriggers=function(){let t=$("<div>");t.addClass("sticky-trigger-start"),t.insertBefore($(this.element)),this.triggerStart=t,this.enableEndTrigger&&(t=$("<div>"),t.addClass("sticky-trigger-end"),t.insertAfter($(this.element).parent()),this.triggerEnd=t),this.updateTriggers()},a.component.Sticky.prototype.createHeaderPlaceholder=function(){if(this.variables.get("fixedHeader")){let t=$("<div>");t.addClass("HeaderPlaceholder"),t.insertBefore(this.header),this.headerPlaceholder=t}},a.component.Sticky.prototype.updateTriggers=function(){this.variables.get("fixedHeader")?this.triggerStart.css({transform:"translateY("+this.headerHeight*-1+"px)"}):this.triggerStart.css({transform:"none"})};var a=a||{};a.component=a.component||{},a.component.ScrollSpy=function(s){z.Component.call(this,s)}
110,ke(a.component.ScrollSpy,z.Component),a.component.ScrollSpy.prototype.prepare=function(){this.activeClass="is-active",this.heightParent=this.element.closest("[data-scroll-spy-height]"),this.sections=document.querySelectorAll("[data-scroll-spy-section]"),this.menuLinks=document.querySelectorAll("[data-scroll-spy-item]"),this.currentActive=-1,this.updateSectionMargin(),this.scrollHandler=this.handleScroll.bind(this),this.init()},a.component.ScrollSpy.prototype.destroy=function(){window.removeEventListener("scroll",this.scrollHandler)},a.component.ScrollSpy.prototype.init=function(){window.addEventListener("scroll",this.scrollHandler)},a.component.ScrollSpy.prototype.updateSectionMargin=function(){this.sectionMargin=this.heightParent.length?this.heightParent.height()+25:200},a.component.ScrollSpy.prototype.handleScroll=function(){requestAnimationFrame(()=>{const t=window.scrollY;let s=this.sections.length-[...this.sections].reverse().findIndex(e=>t>=e.offsetTop-this.sectionMargin)-1;s!==this.currentActive&&this.updateActiveLink(s)})},a.component.ScrollSpy.prototype.updateActiveLink=function(t){this.menuLinks.forEach(s=>{s.classList.remove(this.activeClass),s.removeAttribute("aria-current")}),this.menuLinks[t]&&(this.menuLinks[t].classList.add(this.activeClass),this.menuLinks[t].setAttribute("aria-current","location")),this.currentActive=t};var a=a||{};a.component=a.component||{},a.component.CatalogueCategories=function(s){z.Component.call(this,s)}
110,ke(a.component.CatalogueCategories,z.Component),a.component.CatalogueCategories.prototype.prepare=function(){this.contentClass=".js-catalogue-categories-body",this.buttonClass=".js-catalogue-categories-button",this.activeClass="is-active",this.animationSpeed=ir,this.$content=this.element.find(this.contentClass),this.$button=this.element.find(this.buttonClass),this.minHeight=this.$content.css("height"),this.$button.on("click",this.toggle.bind(this))},a.component.CatalogueCategories.prototype.toggle=function(t){t.preventDefault(),this.element.hasClass(this.activeClass)?(this.$content.stop().animate({height:this.minHeight},this.animationSpeed,()=>{this.$content.css("height","")}),this.element.removeClass(this.activeClass),this.$button.removeClass(this.activeClass)):(this.minHeight=this.$content.css("height"),this.$content.stop().animate({height:this.$content[0].scrollHeight},this.animationSpeed),this.element.addClass(this.activeClass),this.$button.addClass(this.activeClass))};var a=a||{};a.component=a.component||{},a.component.BigCarousel=function(s){z.Component.call(this,s)}
110,ke(a.component.BigCarousel,z.Component),a.component.BigCarousel.prototype.prepare=function(){this.body=$("body"),this.document=$(document),this.window=$(window),this.carousel=null,this.breakpoint=this.element.attr("data-big-carousel-breakpoint"),this.autoplay=this.element.attr("data-big-carousel-autoplay")!==void 0,this.autoplaySpeedMs=this.element.attr("data-big-carousel-autoplay")||8e3,this.withNavigation=this.element.attr("data-big-carousel-with-navigation")!==void 0,this.fade=this.element.attr("data-big-carousel-fade")!==void 0,this.dots=this.element.attr("data-big-carousel-dots")!==void 0,Bn(this.element,this.init.bind(this))},a.component.BigCarousel.prototype.init=function(){let t=this.element.find(".BigCarousel-main");t.on("init reInit",(s,e)=>{this.dotsManager=new Xo(e,8)}),t.on("init",()=>{this.element.addClass("initialized")}),this.carousel=t.slick({infinite:!0,rows:0,arrows:!0,dots:!0,mobileFirst:!0,autoplay:this.autoplay,autoplaySpeed:this.autoplaySpeedMs,prevArrow:".BigCarousel-prev",nextArrow:".BigCarousel-next",responsive:[{breakpoint:this.breakpoint,settings:{dots:this.dots,fade:this.fade}}]}),this.carousel.on("afterChange",(s,e,c)=>{this.dotsManager.update(c)}),this.withNavigation&&(this.carousel.on("beforeChange",(s,e,c,u)=>{this.element.find(".BigCarousel-navigation li:nth-child("+(u+1)+")").addClass("is-active").siblings().removeClass("is-active")}),this.element.find(".BigCarousel-navigation a").on("click",s=>{s.preventDefault();let u=$(s.currentTarget).parent("li").index();this.carousel.slick("slickGoTo",u)}))};var a=a||{};a.component=a.component||{},a.component.CardCarousel=function(s){z.Component.call(this,s)}
110,ke(a.component.CardCarousel,z.Component),a.component.CardCarousel.prototype.prepare=function(){this.cardCarousel=null,this.$wrapper=this.getWrapper(),this.$parentContainer=this.getParentContainer(),this.windowResizeEvent=Zr(50,this.handleResizeThrottled.bind(this)),Bn(this.element,this.init.bind(this))},a.component.CardCarousel.prototype.destroy=function(){this.cardCarousel&&this.cardCarousel.destroy&&(this.cardCarousel.destroy(),this.removeEvents(),this.cardCarousel=null)},a.component.CardCarousel.prototype.init=function(){this.cardCarousel||(this.cardCarousel=new Swiper(this.$wrapper.get(0),{spaceBetween:this.getGap(),slidesPerGroupAuto:!0,slidesPerView:"auto",navigation:{prevEl:this.getNavigationPrevArrow(),nextEl:this.getNavigationNextArrow()},scrollbar:{el:this.getScrollbarElement(),draggable:!0,hide:!1},freeMode:!0,pagination:{el:this.getPaginationElement(),type:"bullets",dynamicBullets:!0,dynamicMainBullets:2,clickable:!0},on:{init:()=>{this.updateContainer()}}}),this.addEvents())},a.component.CardCarousel.prototype.addEvents=function(){window.addEventListener("resize",this.windowResizeEvent,!0)},a.component.CardCarousel.prototype.removeEvents=function(){window.removeEventListener("resize",this.windowResizeEvent,!0)},a.component.CardCarousel.prototype.updateContainer=function(){if(!this.$parentContainer)return;const t=this.$parentContainer.get(0),s=getComputedStyle(t),e=parseInt(s.maxWidth)||0,c=parseInt(s.paddingLeft)||0,u=window.innerWidth,d=u>=e,S=u>=e+c*2;this.element.toggleClass("has-full-width",d).toggleClass("has-full-bleed",S)},a.component.CardCarousel.prototype.handleResizeThrottled=function(){this.cardCarousel&&(this.cardCarousel.params.spaceBetween=this.getGap(),this.cardCarousel.update(),this.updateContainer())},a.component.CardCarousel.prototype.getWrapper=function(){return this.element.find("[data-carousel-wrapper]")},a.component.CardCarousel.prototype.getNavigationPrevArrow=function(){return this.element.find(".swiper-button-prev").get(0)},a.component.CardCarousel.prototype.getNavigationNextArrow=function(){return this.element.find(".swiper-button-next").get(0)},a.component.CardCarousel.prototype.getScrollbarElement=function(){return this.element.find(".swiper-scrollbar").get(0)},a.component.CardCarousel.prototype.getPaginationElement=function(){return this.element.find(".swiper-pagination").get(0)},a.component.CardCarousel.prototype.getGap=function(){return parseInt(getComputedStyle(this.element.get(0)).gap)||0},a.component.CardCarousel.prototype.getParentContainer=function(){const t=this.element.closest(".Container");return t.length?t:null};var a=a||{};a.component=a.component||{},a.component.InfoBanner=function(s){z.Component.call(this,s)}
110,ke(a.component.InfoBanner,z.Component),a.component.InfoBanner.prototype.prepare=function(){this.body=$("body"),this.close=this.element.find("[data-info-banner-close]"),this.id=this.element.attr("data-info-banner-id"),Bn(this.element,this.init.bind(this))},a.component.InfoBanner.prototype.init=function(){this.close.length&&this.close.on("click",t=>{t.preventDefault(),this.setCookie(),this.closeAllInstances()})},a.component.InfoBanner.prototype.closeAllInstances=function(){const t=this.body.find(`[data-info-banner-id="${this.id}"]`);t.length&&t.attr("hidden",""),setTimeout(()=>{$('[data-component="PageNavigation"]').trigger("ui.pageNavigation.update"),$('[data-component="Sticky"]').trigger("ui.sticky.update")},100)},a.component.InfoBanner.prototype.setCookie=function(){To("infoBanner",this.id,365*10)};var a=a||{};a.component=a.component||{},a.component.Tab=function(s){z.Component.call(this,s)},ke(a.component.Tab,z.Component),a.component.Tab.prototype.prepare=function(){this.body=$("body"),this.document=$(document),this.window=$(window),this.activeClass="is-active",this.$trigger=$("[data-tab]"),this.$trigger.on("click",this.handleClick.bind(this))},a.component.Tab.prototype.handleClick=function(t){t.preventDefault();let s=$(t.target),e=$(s.data("tab"));e.hasClass(this.activeClass)||(e.siblings(".Tab").each((c,u)=>{$(u).removeClass(this.activeClass)}),e.addClass(this.activeClass)),s.hasClass(this.activeClass)||(s.parent().prop("tagName")==="LI"?s.parent("li").siblings().each((c,u)=>{$(u).children().removeClass(this.activeClass)}):s.siblings().each((c,u)=>{$(u).removeClass(this.activeClass)}),s.addClass(this.activeClass))};var a=a||{};a.component=a.component||{},a.component.NavigationSelect=function(s){z.Component.call(this,s)}
110,ke(a.component.NavigationSelect,z.Component),a.component.NavigationSelect.prototype.prepare=function(){this.body=$("body"),this.document=$(document),this.window=$(window),this.isAjax=this.element.attr("data-navigation-select-ajax")!==void 0,this.getTrigger(),this.$trigger.on("change",this.change.bind(this)),this.$trigger.on("ui.customSelect.change",this.change.bind(this))},a.component.NavigationSelect.prototype.change=function(t){var s=$(t.target).val();this.isAjax?this.sendAjaxRequest(s):window.location.href=s},a.component.NavigationSelect.prototype.sendAjaxRequest=function(t){if(!this.isBusy()){var s=this.createRequest();this.setBusy(!0),s.setUrl(t),s.setMethod("get"),s.addSuccessCallback((function(){this.setBusy(!1)}).bind(this)),s.addErrorCallback((function(){this.setBusy(!1)}).bind(this)),s.send()}},a.component.NavigationSelect.prototype.getTrigger=function(){this.element.prop("tagName")==="SELECT"?this.$trigger=this.element:this.$trigger=this.element.find("select")};var a=a||{};a.component=a.component||{},a.component.CustomSelect=function(s){z.Component.call(this,s)}
110,ke(a.component.CustomSelect,z.Component),a.component.CustomSelect.prototype.prepare=function(){this.body=$("body"),this.document=$(document),this.window=$(window),this.activeClass="is-active",this.focusClass="is-focus",this.disabledClass="is-disabled",this.hiddenClass="is-hidden",this.inlineClass="CustomSelect--inline",this.typeaheadResetDelay=500,this.$elSelectNative=this.element.find("select"),this.$elSelectCustom=this.element.find('[data-custom-select="container"]'),this.$elSelectCustomBox=this.element.find('[data-custom-select="trigger"]'),this.$elSelectCustomBoxContent=this.element.find('[data-custom-select="triggerContent"]'),this.$elSelectCustomOpts=this.element.find('[data-custom-select="options"]'),this.$elSelectCustomGroup=this.$elSelectCustomOpts.find(".CustomSelect-group"),this.$elSearchInput=this.element.find('[data-custom-select="searchInput"]'),this.$elNoResults=this.element.find('[data-custom-select="noResults"]'),this.$elSelectCustomOptAll=this.$elSelectCustomOpts.find(".CustomSelect-option"),this.$elSelectCustomOpt=this.$elSelectCustomOptAll,this.optionHoveredIndex=-1,this.optionsCount=this.$elSelectCustomOpt.length,this.isDisabled=this.element.hasClass(this.disabledClass),this.isInline=this.element.hasClass(this.inlineClass),this.hasSearch=this.$elSearchInput.length>0,this.isCommitting=!1,this.typeaheadBuffer="",this.typeaheadTimer=null,this.$combobox=this.hasSearch?this.$elSearchInput:this.$elSelectCustomBox,this.labelNode=this.getLabelNode(),this.setupInline(),this.$elSelectCustomBox.on("click",this.handleTriggerClick.bind(this)),this.$elSelectCustomBox.on("keydown",this.handleTriggerKeydown.bind(this)),this.$elSelectNative.on("change",this.handleNativeChange.bind(this)),this.element.on("focusout",this.handleFocusOut.bind(this)),this.hasSearch&&this.$elSearchInput.on("input",this.handleSearchInput.bind(this)),this.labelNode&&$(this.labelNode).on("click.customSelect",this.handleLabelClick.bind(this)),this.$elSelectCustomOpts.on("mouseenter",".CustomSelect-option",this.optionHover.bind(this)),this.$elSelectCustomOpts.on("mousedown",".CustomSelect-option",this.handleOptionMouseDown.bind(this)),this.$elSelectCustomOpts.on("click",".CustomSelect-option",this.optionClick.bind(this)),this.element.on("ui.custom-select.open",this.open.bind(this)),this.element.on("ui.custom-select.close",this.close.bind(this)),this.clickEvent=t=>{this.watchClickOutside(t)},this.keydownEvent=t=>{this.supportKeyboardNavigation(t)},this.viewportResizeEvent=()=>{this.updateMaxHeight()}},a.component.CustomSelect.prototype.destroy=function(){this.removeEvents(),this.labelNode&&$(this.labelNode).off("click.customSelect")},a.component.CustomSelect.prototype.getLabelNode=function(){const t=this.$elSelectNative.attr("id");return t?document.getElementById(t+"-label"):null},a.component.CustomSelect.prototype.addEvents=function(){window.addEventListener("click",this.clickEvent,!0),window.addEventListener("keydown",this.keydownEvent,!0),window.visualViewport&&window.visualViewport.addEventListener("resize",this.viewportResizeEvent)},a.component.CustomSelect.prototype.removeEvents=function(){window.removeEventListener("click",this.clickEvent,!0),window.removeEventListener("keydown",this.keydownEvent,!0),window.visualViewport&&window.visualViewport.removeEventListener("resize",this.viewportResizeEvent)},a.component.CustomSelect.prototype.isOpen=function(){return this.$elSelectCustom.hasClass(this.activeClass)},a.component.CustomSelect.prototype.open=function(){this.isDisabled||this.openSelectCustom()},a.component.CustomSelect.prototype.close=function(){this.isDisabled||this.closeSelectCustom()},a.component.CustomSelect.prototype.handleTriggerClick=function(t){this.isDisabled||(this.isOpen()?(this.closeSelectCustom(),this.focusTrigger()):this.openSelectCustom())},a.component.CustomSelect.prototype.handleLabelClick=function(){this.isDisabled||this.focusTrigger()},a.component.CustomSelect.prototype.handleTriggerKeydown=function(t){if(this.isDisabled||this.isOpen())return;if(t.key==="Enter"||t.key===" "||t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),this.openSelectCustom();return}this.isPrintableKey(t)&&(t.preventDefault(),this.openSelectCustom(),this.hasSearch?(this.$elSearchInput.val(t.key),this.filterOptions(t.key)):this.typeahead(t.key))},a.component.CustomSelect.prototype.isPrintableKey=function(t){return t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey},a.component.CustomSelect.prototype.handleNativeChange=function(t){if(this.isCommitting)return;const s=t.target.value,e=this.$elSelectCustomOpts.find(`.CustomSelect-option[data-value="${s}"]`),c=e.length?e:this.$elSelectCustomOpts.find('.CustomSelect-option[data-value=""], .CustomSelect-option:not([data-value])').first();this.renderChecked(s,c.text()),this.$elSelectNative.trigger("ui.customSelect.change")},a.component.CustomSelect.prototype.optionClick=function(t){this.isDisabled||this.commit($(t.currentTarget))},a.component.CustomSelect.prototype.commit=function(t){const s=t.data("value");this.isCommitting=!0,this.$elSelectNative.val(s),this.renderChecked(s,t.text()),this.closeSelectCustom(),this.focusTrigger(),this.$elSelectNative.trigger("change"),this.isCommitting=!1,this.$elSelectNative.trigger("ui.customSelect.change")}
110,a.component.CustomSelect.prototype.focusTrigger=function(){const t=this.$elSelectCustomBox.get(0);t&&t!==document.activeElement&&t.focus({preventScroll:!0})},a.component.CustomSelect.prototype.handleOptionMouseDown=function(t){t.preventDefault()},a.component.CustomSelect.prototype.optionHover=function(t){if(!this.isDisabled){const s=$(t.currentTarget),e=this.$elSelectCustomOpt.index(s);this.updateCustomSelectHovered(e)}},a.component.CustomSelect.prototype.openSelectCustom=function(){if(this.isOpen())return;this.refreshVisibleOptions(),this.updateMaxHeight(),this.$elSelectCustom.addClass(this.activeClass),this.setExpanded(!0),this.hasSearch?(this.resetSearch(),this.$elSearchInput.trigger("focus")):this.focusTrigger();const t=this.$elSelectCustomOpt.index(this.$elSelectCustomOpt.filter("."+this.activeClass));this.updateCustomSelectHovered(t),this.scrollActiveOptionIntoView(),this.addEvents()},a.component.CustomSelect.prototype.closeSelectCustom=function(){this.$elSelectCustom.removeClass(this.activeClass),this.setExpanded(!1),this.updateCustomSelectHovered(-1),this.clearTypeahead(),this.removeEvents()},a.component.CustomSelect.prototype.setExpanded=function(t){const s=t?"true":"false";this.$elSelectCustomBox.attr("aria-expanded",s),this.hasSearch&&this.$elSearchInput.attr("aria-expanded",s)},a.component.CustomSelect.prototype.updateCustomSelectHovered=function(t){if(this.$elSelectCustomOptAll.removeClass(this.focusClass),t>=0){const s=this.$elSelectCustomOpt.eq(t);s.addClass(this.focusClass);const e=s.attr("id");e&&this.$combobox.attr("aria-activedescendant",e);const c=s.get(0);c&&this.isOpen()&&c.scrollIntoView({block:"nearest"})}else this.$combobox.removeAttr("aria-activedescendant");this.optionHoveredIndex=t},a.component.CustomSelect.prototype.renderChecked=function(t,s){this.$elSelectCustomOptAll.removeClass(this.activeClass).attr("aria-selected","false"),this.$elSelectCustomOpts.find(`.CustomSelect-option[data-value="${t}"]`).addClass(this.activeClass).attr("aria-selected","true"),this.$elSelectCustomBoxContent.text(s),this.scrollActiveOptionIntoView()},a.component.CustomSelect.prototype.scrollActiveOptionIntoView=function(){if(!this.isOpen())return;const t=this.$elSelectCustomOpts.find(".CustomSelect-option."+this.activeClass).get(0);t&&t.scrollIntoView({block:"nearest"})},a.component.CustomSelect.prototype.refreshVisibleOptions=function(){this.$elSelectCustomGroup=this.$elSelectCustomOpts.find(".CustomSelect-group"),this.$elSelectCustomOptAll=this.$elSelectCustomOpts.find(".CustomSelect-option"),this.$elSelectCustomOpt=this.$elSelectCustomOptAll.not("."+this.hiddenClass),this.optionsCount=this.$elSelectCustomOpt.length},a.component.CustomSelect.prototype.handleSearchInput=function(t){this.filterOptions(t.target.value)},a.component.CustomSelect.prototype.filterOptions=function(t){const s=(t||"").trim().toLowerCase();this.$elSelectCustomGroup.each((function(c,u){const d=$(u),S=!!s&&this.textMatches(d.find(".CustomSelect-groupLabel"),s),I=this.filterOptionSet(d.find(".CustomSelect-option"),S?"":s);d.toggleClass(this.hiddenClass,I===0)}).bind(this));const e=this.$elSelectCustomOpts.find('[data-custom-select="list"]');this.filterOptionSet((e.length?e:this.$elSelectCustomOpts).children(".CustomSelect-option"),s),this.refreshVisibleOptions(),this.$elNoResults.prop("hidden",this.optionsCount>0),this.updateCustomSelectHovered(-1)},a.component.CustomSelect.prototype.filterOptionSet=function(t,s){let e=0;return t.each((function(c,u){const d=$(u),S=!s||this.textMatches(d,s);d.toggleClass(this.hiddenClass,!S),S&&e++}).bind(this)),e},a.component.CustomSelect.prototype.textMatches=function(t,s){return t.text().toLowerCase().indexOf(s)!==-1},a.component.CustomSelect.prototype.resetSearch=function(){this.$elSearchInput.val(""),this.$elSelectCustomOptAll.removeClass(this.hiddenClass),this.$elSelectCustomGroup.removeClass(this.hiddenClass),this.$elNoResults.prop("hidden",!0),this.refreshVisibleOptions(),this.updateCustomSelectHovered(-1)},a.component.CustomSelect.prototype.handleFocusOut=function(t){this.elementNode.contains(t.relatedTarget||null)||this.closeSelectCustom()},a.component.CustomSelect.prototype.watchClickOutside=function(t){!this.$elSelectCustom.get(0).contains(t.target)&&!this.$elSelectCustomBox.get(0).contains(t.target)&&this.closeSelectCustom()},a.component.CustomSelect.prototype.supportKeyboardNavigation=function(t){if(!this.isOpen())return;const s=this.hasSearch&&t.target===this.$elSearchInput.get(0);if(t.key==="ArrowDown"&&!t.altKey){t.preventDefault(),this.updateCustomSelectHovered(this.optionHoveredIndex<this.optionsCount-1?this.optionHoveredIndex+1:0);return}if(t.key==="ArrowUp"&&!t.altKey){t.preventDefault(),this.updateCustomSelectHovered(this.optionHoveredIndex>0?this.optionHoveredIndex-1:this.optionsCount-1);return}if(t.key==="ArrowUp"&&t.altKey){t.preventDefault(),this.closeSelectCustom(),this.focusTrigger();return}if(t.key==="Enter"||t.key===" "&&!s){t.preventDefault(),this.commitHighlighted();return}if(t.key==="Escape"){this.closeSelectCustom(),this.focusTrigger();return}if(!s){if(t.key==="Home"){t.preventDefault(),this.updateCustomSelectHovered(0);return}if(t.key==="End"){t.preventDefault(),this.updateCustomSelectHovered(this.optionsCount-1);return}if(t.key==="PageUp"){t.preventDefault(),this.updateCustomSelectHovered(Math.max(0,this.optionHoveredIndex-10));return}if(t.key==="PageDown"){t.preventDefault(),this.updateCustomSelectHovered(Math.min(this.optionsCount-1,this.optionHoveredIndex+10));return}!this.hasSearch&&this.isPrintableKey(t)&&this.typeahead(t.key)}},a.component.CustomSelect.prototype.commitHighlighted=function(){this.optionHoveredIndex>=0?this.commit(this.$elSelectCustomOpt.eq(this.optionHoveredIndex)):(this.closeSelectCustom(),this.focusTrigger())},a.component.CustomSelect.prototype.typeahead=function(t){this.typeaheadBuffer+=t.toLowerCase(),clearTimeout(this.typeaheadTimer),this.typeaheadTimer=setTimeout((function(){this.typeaheadBuffer=""}).bind(this),this.typeaheadResetDelay);const s=this.optionHoveredIndex>=0?this.optionHoveredIndex:0,e=this.typeaheadBuffer.length===1?1:0;for(let c=0;c<this.optionsCount;c++){const u=(s+e+c)%this.optionsCount;if(this.$elSelectCustomOpt.eq(u).text().trim().toLowerCase().indexOf(this.typeaheadBuffer)===0){this.updateCustomSelectHovered(u);return}}},a.component.CustomSelect.prototype.clearTypeahead=function(){clearTimeout(this.typeaheadTimer),this.typeaheadBuffer=""},a.component.CustomSelect.prototype.setupInline=function(){if(this.isInline){const t=this.$elSelectCustomOpt.map((e,c)=>$(c).text().length).get();let s=t.length?Math.max(...t):0;this.element.css("--_minWidth",s+"ch")}},a.component.CustomSelect.prototype.updateMaxHeight=function(){if(!this.$elSelectCustom||!this.$elSelectCustom.length)return;const s=(this.$elSelectCustomBox.get(0)||this.$elSelectCustom.get(0)).getBoundingClientRect(),e=window.visualVie
110wport,c=e?e.height:window.innerHeight||document.documentElement.clientHeight,u=e?e.offsetTop:0,S=Math.max(0,Math.floor(u+c-s.bottom-8));this.$elSelectCustom.css("--_maxHeight",S+"px")};var a=a||{};a.component=a.component||{},a.component.Dropdown=function(s){z.Component.call(this,s)},ke(a.component.Dropdown,z.Component),a.component.Dropdown.prototype.prepare=function(){this.body=$("body"),this.document=$(document),this.window=$(window),this.activeClass="is-active",this.disabledClass="is-disabled",this.inlineClass="Dropdown--inline",this.$trigger=this.element.find(".js-dropdown-trigger"),this.$options=this.element.find(".js-dropdown-options"),this.optionsCount=this.$options.length,this.isDisabled=this.element.hasClass(this.disabledClass),this.isInline=this.element.hasClass(this.inlineClass),this.$trigger.on("click",this.click.bind(this)),this.element.on("focusout",this.watchFocusOut.bind(this)),this.element.on("ui.dropdown.open",this.open.bind(this)),this.element.on("ui.dropdown.close",this.close.bind(this)),this.clickEvent=t=>{this.watchClickOutside(t)},this.keydownEvent=t=>{this.watchKeyboard(t)}},a.component.Dropdown.prototype.destroy=function(){this.removeEvents()},a.component.Dropdown.prototype.addEvents=function(){window.addEventListener("click",this.clickEvent,!0),window.addEventListener("keydown",this.keydownEvent,!0)},a.component.Dropdown.prototype.removeEvents=function(){window.removeEventListener("click",this.clickEvent,!0),window.removeEventListener("keydown",this.keydownEvent,!0)},a.component.Dropdown.prototype.click=function(){this.isDisabled||(this.element.hasClass(this.activeClass)?this.close():this.open())},a.component.Dropdown.prototype.open=function(){this.updateMaxHeight(),this.element.addClass(this.activeClass),this.$trigger.attr("aria-expanded","true"),this.addEvents()},a.component.Dropdown.prototype.close=function(){this.element.removeClass(this.activeClass),this.$trigger.attr("aria-expanded","false"),this.removeEvents()},a.component.Dropdown.prototype.watchKeyboard=function(t){(t.key==="Escape"||t.keyCode===27)&&(this.close(),this.$trigger.trigger("focus"))},a.component.Dropdown.prototype.watchClickOutside=function(t){this.element.get(0).contains(t.target)||this.close()},a.component.Dropdown.prototype.watchFocusOut=function(t){this.element.get(0).contains(t.relatedTarget)||this.close()},a.component.Dropdown.prototype.updateMaxHeight=function(){const s=this.elementNode.getBoundingClientRect(),e=window.innerHeight||document.documentElement.clientHeight,u=Math.max(0,Math.floor(e-s.bottom-8));this.element.css("--_maxHeight",u+"px")};var a=a||{};a.component=a.component||{},a.component.basket=a.component.basket||{},a.component.basket.BasketItem=function(s){z.Component.call(this,s)}
110,ke(a.component.basket.BasketItem,z.Component),a.component.basket.BasketItem.prototype.prepare=function(){if(this.currentRequest=null,this.form=this.element.closest("form"),this.quantityInput=this.elementNode.querySelector("[data-basket-item-quantity-input]"),!this.quantityInput)return console.warn("BasketItem: Missing quantity input"),!1;this.previousCount=this.getQuantityInputValue(),this.debouncedQuantityInputChangeEvent=Ar(350,(function(t){this.handleQuantityChange(t)}).bind(this)),this.quantityInput.addEventListener("ui.quantityInput.change",this.debouncedQuantityInputChangeEvent)},a.component.basket.BasketItem.prototype.handleQuantityChange=function(){this.makeRequest()},a.component.basket.BasketItem.prototype.makeRequest=function(){this.currentRequest&&this.currentRequest.readyState!==4&&this.currentRequest.abort();const t=this.form.attr("action"),s=this.form.attr("method"),e=this.createRequest().setUrl(t).setMethod(s).addData({...Object.fromEntries(new FormData(this.form.get(0))),disabledSnp:["breadcrumb-path","search-autocomplete-results","lostPasswordForm","registrationForm","loginForm-modal","footer"]}).setSaveHistory(!1).addSuccessCallback(this.handleRequestSuccess.bind(this)).addErrorCallback(this.handleRequestError.bind(this)).addFinalCallback(this.handleRequestFinal.bind(this));this.currentRequest=e.send()},a.component.basket.BasketItem.prototype.handleRequestSuccess=function(){this.previousCount=this.getQuantityInputValue()},a.component.basket.BasketItem.prototype.handleRequestError=function(){this.resetQuantityInputToPrevious()},a.component.basket.BasketItem.prototype.handleRequestFinal=function(){this.currentRequest=null},a.component.basket.BasketItem.prototype.getQuantityInputValue=function(){return parseInt(this.quantityInput.querySelector("[data-quantity-input-value]").value)||0},a.component.basket.BasketItem.prototype.resetQuantityInputToPrevious=function(){this.quantityInput.dispatchEvent(new CustomEvent("ui.quantityInput.set",{bubbles:!1,detail:{steps:this.previousCount,triggerEnabled:!1}}))};var a=a||{};a.component=a.component||{},a.component.basket=a.component.basket||{},a.component.basket.BasketGiftItem=function(s,e){z.Component.call(this,s),this.dependencies={toast:e.get("toast")}},ke(a.component.basket.BasketGiftItem,z.Component),a.component.basket.BasketGiftItem.prototype.prepare=function(){if(this.currentRequest=null,this.form=this.element.closest("form"),this.quantityInput=this.elementNode.querySelector("[data-basket-gift-item-quantity-input]"),this.url=this.elementNode.dataset.basketGiftItemUrl,!this.quantityInput)return console.warn("BasketGiftItem: Missing quantity input"),!1;if(!this.url)return console.warn("BasketGiftItem: Missing url"),!1;this.previousCount=this.getQuantityInputValue(),this.debouncedQuantityInputChangeEvent=Ar(350,(function(t){this.handleQuantityChange(t)}).bind(this)),this.quantityInput.addEventListener("ui.quantityInput.change",this.debouncedQuantityInputChangeEvent)},a.component.basket.BasketGiftItem.prototype.handleQuantityChange=function(){this.makeRequest()},a.component.basket.BasketGiftItem.prototype.makeRequest=function(){this.currentRequest&&this.currentRequest.readyState!==4&&this.currentRequest.abort();const t=this.url,s=this.form.attr("method"),e=this.createRequest().setUrl(t).setMethod(s).addData({...Object.fromEntries(new FormData(this.form.get(0))),count:this.getQuantityInputValue(),disabledSnp:["breadcrumb-path","search-autocomplete-results","lostPasswordForm","registrationForm","loginForm-modal","footer"]}).setSaveHistory(!1).addSuccessCallback(this.handleRequestSuccess.bind(this)).addErrorCallback(this.handleRequestError.bind(this)).addFinalCallback(this.handleRequestFinal.bind(this));this.currentRequest=e.send()},a.component.basket.BasketGiftItem.prototype.handleRequestSuccess=function(){this.previousCount=this.getQuantityInputValue()},a.component.basket.BasketGiftItem.prototype.handleRequestError=function(){this.resetQuantityInputToPrevious()},a.component.basket.BasketGiftItem.prototype.handleRequestFinal=function(){this.currentRequest=null},a.component.basket.BasketGiftItem.prototype.getQuantityInputValue=function(){return parseInt(this.quantityInput.querySelector("[data-quantity-input-value]").value)||0},a.component.basket.BasketGiftItem.prototype.resetQuantityInputToPrevious=function(){this.quantityInput.dispatchEvent(new CustomEvent("ui.quantityInput.set",{bubbles:!1,detail:{steps:this.previousCount,triggerEnabled:!1}}))};var a=a||{};a.component=a.component||{},a.component.DatePicker=function(s){z.Component.call(this,s)}
110,ke(a.component.DatePicker,z.Component),a.component.DatePicker.prototype.prepare=function(){Bn(this.element,this.init.bind(this))},a.component.DatePicker.prototype.destroy=function(){this.instance&&(this.instance.destroy(),this.instance=null)},a.component.DatePicker.prototype.init=function(){const t=this.elementNode.dataset;this.minDate=t.datePickerMin||null,this.maxDate=t.datePickerMax||null,this.instance=this.element.flatpickr({locale:Eo(),altInput:!0,altFormat:"j. n. Y",dateFormat:"Y-m-d",minDate:this.minDate,maxDate:this.maxDate})};var a=a||{};a.component=a.component||{},a.component.TimePicker=function(s){z.Component.call(this,s)},ke(a.component.TimePicker,z.Component),a.component.TimePicker.prototype.prepare=function(){Bn(this.element,this.init.bind(this))},a.component.TimePicker.prototype.destroy=function(){this.instance&&(this.instance.destroy(),this.instance=null)},a.component.TimePicker.prototype.init=function(){const t=this.elementNode.dataset;this.minDate=t.timePickerMin||null,this.maxDate=t.timePickerMax||null,this.instance=this.element.flatpickr({locale:Eo(),enableTime:!0,noCalendar:!0,altInput:!0,time_24hr:!0,altFormat:"H:i",dateFormat:"H:i:S",minDate:this.minDate,maxDate:this.maxDate})};var a=a||{};a.component=a.component||{},a.component.DateTimePicker=function(s){z.Component.call(this,s)}
110,ke(a.component.DateTimePicker,z.Component),a.component.DateTimePicker.prototype.prepare=function(){Bn(this.element,this.init.bind(this))},a.component.DateTimePicker.prototype.destroy=function(){this.instance&&(this.instance.destroy(),this.instance=null)},a.component.DateTimePicker.prototype.init=function(){const t=this.elementNode.dataset;this.minDate=t.dateTimePickerMin||null,this.maxDate=t.dateTimePickerMax||null,this.instance=this.element.flatpickr({locale:Eo(),altInput:!0,enableTime:!0,time_24hr:!0,altFormat:"j. n. Y H:i",dateFormat:"Y-m-d H:i:S",minDate:this.minDate,maxDate:this.maxDate})};var a=a||{};a.component=a.component||{},a.component.CheckProductVariant=function(s,e){z.Component.call(this,s)},ke(a.component.CheckProductVariant,z.Component),a.component.CheckProductVariant.prototype.prepare=function(){this.init()},a.component.CheckProductVariant.prototype.destroy=function(){this.removeEvents()},a.component.CheckProductVariant.prototype.init=function(){this.getConfig(),this.getElements(),this.validateElements()&&this.addEvents()},a.component.CheckProductVariant.prototype.getConfig=function(){const{checkProductVariantId:t,checkProductVariantScope:s}=this.elementNode.dataset;this.config={productId:t,scope:this.getScope(s)}},a.component.CheckProductVariant.prototype.getElements=function(){"checkProductVariantButton"in this.elementNode.dataset?this.buyButton=this.elementNode:this.buyButton=this.elementNode.querySelector("[data-check-product-variant-button]"),this.quantityInput=this.elementNode.querySelector("[data-check-product-variant-quantity-input]")},a.component.CheckProductVariant.prototype.validateElements=function(){let t=!0;return this.config.productId||(console.warn("CheckProductVariant: missing productID",this.elementNode),t=!1),!this.buyButton&&!this.quantityInput&&(console.warn("CheckProductVariant: no validation trigger",this.elementNode),t=!1),t},a.component.CheckProductVariant.prototype.addEvents=function(){this.clickBuyButtonEvent=this.handleBuyButtonClick.bind(this),this.debouncedInputChangeEvent=Ar(350,(function(t){this.handleQuantityChange(t)}).bind(this)),this.buyButton&&this.buyButton.addEventListener("click",this.clickBuyButtonEvent),this.quantityInput&&this.quantityInput.addEventListener("ui.quantityInput.change",this.debouncedInputChangeEvent)},a.component.CheckProductVariant.prototype.removeEvents=function(){this.buyButton&&this.buyButton.removeEventListener("click",this.clickBuyButtonEvent),this.quantityInput&&this.quantityInput.removeEventListener("ui.quantityInput.change",this.debouncedInputChangeEvent),this.clickBuyButtonEvent=null,this.debouncedInputChangeEvent=null},a.component.CheckProductVariant.prototype.handleBuyButtonClick=function(t){t.preventDefault(),this.showValidationError()},a.component.CheckProductVariant.prototype.handleQuantityChange=function(t){t.preventDefault(),this.showValidationError(),this.resetQuantityInput()},a.component.CheckProductVariant.prototype.resetQuantityInput=function(){this.quantityInput.dispatchEvent(new CustomEvent("ui.quantityInput.set",{bubbles:!1,detail:{steps:0,triggerEnabled:!1}}))},a.component.CheckProductVariant.prototype.showValidationError=function(){const t=this.config.scope.querySelectorAll("[data-check-product-variant-error]");t.forEach(s=>{s.classList.add("is-active"),s.classList.remove("with-attention"),requestAnimationFrame(()=>{s.classList.add("with-attention")})}),this.scrollToFirstRelevantElement(t)},a.component.CheckProductVariant.prototype.scrollToFirstRelevantElement=function(t){let e=(Array.from(t)||[]).find(c=>c.offsetParent!==null);if(e||(e=Array.from(document.querySelectorAll('[data-check-product-variant="main"]')).find(u=>u.offsetParent!==null)),e&&!this.isElementFullyInView(e)){const c=this.getScrollParent(e);c===document.documentElement||c===document.body?e.scrollIntoView({behavior:"smooth",block:"center"}):c.dispatchEvent(new CustomEvent("ui.scrollToElement",{bubbles:!1,detail:{target:e,block:"center"}}))}},a.component.CheckProductVariant.prototype.isElementFullyInView=function(t){const s=t.getBoundingClientRect(),e=window.innerHeight||document.documentElement.clientHeight;return s.top>=0&&s.bottom<=e},a.component.CheckProductVariant.prototype.getScrollParent=function(t){if(!t||t===document.body||t===document.documentElement)return document.documentElement;const s=window.getComputedStyle(t).overflowY;return s==="scroll"||s==="auto"?t:this.getScrollParent(t.parentElement)},a.component.CheckProductVariant.prototype.getScope=function(t){let s=document;if(t){const e=this.elementNode.closest(t);e&&(s=e)}return s};var a=a||{};a.component=a.component||{}
110,a.component.EditCollapse=function(s){z.Component.call(this,s)},ke(a.component.EditCollapse,z.Component),a.component.EditCollapse.prototype.prepare=function(){this.document=$(document),this.window=$(window),this.body=$("body"),this.options=this.element.find("[data-edit-collapse-options]"),this.input=this.element.find("[data-edit-collapse-input]"),this.collapse=this.element.find("[data-edit-collapse-target]"),this.form=this.element.closest("form"),this.input.on("change",this.handleChange.bind(this)),this.input.on("ui.customSelect.change",this.handleChange.bind(this)),this.getOptionsData()},a.component.EditCollapse.prototype.handleChange=function(){let t=this.input.val();this.data[t]!==void 0?(jQuery.each(this.data[t],(s,e)=>{this.form.find(`[name=${s}]`).val(e).trigger("change")}),this.collapse.trigger("ui.collapse.show")):(this.form.get(0).reset(),this.collapse.trigger("ui.collapse.hide"))},a.component.EditCollapse.prototype.getOptionsData=function(){let t;try{t=JSON.parse(this.options.text())}catch{t=null}this.data=t};var a=a||{};a.component=a.component||{},a.component.Confirm=function(s){z.Component.call(this,s)}
110,ke(a.component.Confirm,z.Component),a.component.Confirm.prototype.prepare=function(){this.document=$(document),this.window=$(window),this.message=this.element.attr("data-confirm-message"),this.element.on("click",this.handleClick.bind(this))},a.component.Confirm.prototype.handleClick=function(){if(!confirm(this.message))return!1};var a=a||{};a.component=a.component||{},a.component.PhoneInput=function(s){z.Component.call(this,s)},ke(a.component.PhoneInput,z.Component),a.component.PhoneInput.prototype.prepare=function(){this.document=$(document),this.window=$(window),this.body=$("body"),this.input=null,this.isValid=!1,this.isDisabled=this.element.is(":disabled"),this.inputBaseName=this.element.attr("name"),this.element.attr("name",this.inputBaseName+"_base"),this.init(),this.changeEvent=Zr(100,t=>{let s=this.element.val();this.input.isValidNumber()&&this.input.setNumber(s),this.fillHiddenPhoneInput()}),this.element.on("change",this.changeEvent),this.element.on("ui.phone-input.change",this.changeEvent),this.element.on("ui.phone-input.init",this.changeEvent)},a.component.PhoneInput.prototype.destroy=function(){this.input&&(this.input.destroy(),this.input=null)},a.component.PhoneInput.prototype.fillHiddenPhoneInput=function(){this.input.hiddenInput&&(this.input.hiddenInput.value=this.input.getNumber())},a.component.PhoneInput.prototype.getInitialCountry=function(){const t=this.element.data("phoneInputInitialCountry");if(t&&this.checkInitialCountry(t))return t;const s=Zs();return this.checkInitialCountry(s)?s:(console.warn(`Invalid initial country code ${s}, fallback to cz`),"cz")},a.component.PhoneInput.prototype.checkInitialCountry=function(t){const s=window.intlTelInputGlobals.getCountryData();return!(!t||!s.some(e=>e.iso2===t))},a.component.PhoneInput.prototype.getPreferredCountries=function(){return Js()},a.component.PhoneInput.prototype.init=function(){this.input=intlTelInput(this.element.get(0),{utilsScript:"/common/js/framework/vendor/intl-tel-input/js/utils.js",initialCountry:this.getInitialCountry(),hiddenInput:this.isDisabled?!1:this.inputBaseName,separateDialCode:!0,formatOnDisplay:!0,nationalMode:!0,preferredCountries:this.getPreferredCountries()}),this.input.promise.then(()=>{this.element.trigger("ui.phone-input.init")})};var a=a||{};a.component=a.component||{},a.component.FavoriteProducts=function(s){z.Component.call(this,s)}
110,ke(a.component.FavoriteProducts,z.Component),a.component.FavoriteProducts.prototype.prepare=function(){this.activeClass="is-active",this.changeUrl=this.element.attr("href"),this.element.on("click",this.changeStatus.bind(this))},a.component.FavoriteProducts.prototype.changeStatus=function(t){this.changeStatusRequest()},a.component.FavoriteProducts.prototype.changeStatusRequest=function(){event.preventDefault();var t=this.createRequest();this.setBusy(!0),t.setUrl(this.changeUrl),t.setMethod("post"),t.addSuccessCallback((function(s){this.addToFavoriteSuccess(s)}).bind(this)),t.addErrorCallback((function(){}).bind(this)),t.send()},a.component.FavoriteProducts.prototype.addToFavoriteSuccess=function(t){t.favoriteProductActive?this.element.hasClass(this.activeClass)||this.element.addClass(this.activeClass):this.element.hasClass(this.activeClass)&&this.element.removeClass(this.activeClass)};var a=a||{};a.component=a.component||{},a.component.FormAutoSubmit=function(s){z.Component.call(this,s)},ke(a.component.FormAutoSubmit,z.Component),a.component.FormAutoSubmit.prototype.prepare=function(){this.document=$(document),this.submitted=!1,this.timeout=setTimeout(this.initAutoSubmit.bind(this),1e4),this.onModalClosing=this.handleModalClosing.bind(this),this.document.on("ui.modal.closing",this.onModalClosing)},a.component.FormAutoSubmit.prototype.destroy=function(){clearTimeout(this.timeout),this.document.off("ui.modal.closing",this.onModalClosing)},a.component.FormAutoSubmit.prototype.handleModalClosing=function(t){t.target.contains(this.element.get(0))&&this.initAutoSubmit()},a.component.FormAutoSubmit.prototype.initAutoSubmit=function(){if(this.submitted)return;clearTimeout(this.timeout),this.submitted=!0;const t=this.element.get(0),s=new Event("submit",{bubbles:!0,cancelable:!0});t.dispatchEvent(s)&&t.submit()};var a=a||{};a.component=a.component||{},a.component.BasketStep3=function(s){z.Component.call(this,s)}
110,ke(a.component.BasketStep3,z.Component),a.component.BasketStep3.prototype.prepare=function(){this.useInvoiceAddress=this.element.find("#company"),this.checkInvoiceAddressRequired(null),this.useInvoiceAddress.on("click",this.checkInvoiceAddressRequired.bind(this))},a.component.BasketStep3.prototype.checkInvoiceAddressRequired=function(){this.useInvoiceAddress.is(":checked")?this.element.find("[data-conditionally-required]").attr("required",!0):this.element.find("[data-conditionally-required]").removeAttr("required")};var a=a||{};a.component=a.component||{},a.component.GtmPromotionClick=function(s){z.Component.call(this,s)},ke(a.component.GtmPromotionClick,z.Component),a.component.GtmPromotionClick.prototype.prepare=function(){this.id=this.element.data("gtm-promotion-click-id"),this.name=this.element.data("gtm-promotion-click-name"),this.url=this.element.data("gtm-promotion-click-url"),this.element.on("click",this.handleClick.bind(this))},a.component.GtmPromotionClick.prototype.handleClick=function(){let t=this.url;dataLayer.push({ecommerce:null}),dataLayer.push({event:"promotionClick",ecommerce:{promoClick:{promotions:[{id:this.id,name:this.name}]}},eventCallback:function(){document.location=t}})};var a=a||{};a.component=a.component||{},a.component.Alert=function(s){z.Component.call(this,s)}
110,ke(a.component.Alert,z.Component),a.component.Alert.prototype.prepare=function(){this.$trigger=this.element.find(".Alert-close"),this.$trigger.on("click",this.click.bind(this))},a.component.Alert.prototype.click=function(t){t.preventDefault(),this.element.hide()};var a=a||{};a.component=a.component||{},a.component.GoogleMap=function(s){z.Component.call(this,s)},ke(a.component.GoogleMap,z.Component),a.component.GoogleMap.prototype.prepare=function(){this.map=null,this.markers=[],this.markerListeners=[],this.init()},a.component.GoogleMap.prototype.init=function(){this.centerLat=this.element.attr("data-map-center-lat")||49.838828,this.centerLng=this.element.attr("data-map-center-lng")||15.77855,this.defaultZoom=this.element.attr("data-map-default-zoom")||7,this.defaultZoomMobile=this.element.attr("data-map-default-zoom-mobile")||6,this.useMapZoom=Zo().width>992?this.defaultZoom:this.defaultZoomMobile,this.wrapper=this.elementNode.closest("[data-map-wrapper]"),this.mapElement=this.elementNode.querySelector('[data-map="map"]'),this.markersElements=this.wrapper.querySelectorAll('[data-map="marker"]'),this.map=new google.maps.Map(this.mapElement,{zoom:parseInt(this.useMapZoom),center:this.prepareMapPointData(this.centerLat,this.centerLng),fullscreenControl:!1});const t=this;this.markersElements.forEach(s=>{const e=s.dataset.mapLat,c=s.dataset.mapLng;if(e!==void 0&&c!==void 0){const u=new google.maps.Marker({position:{lat:parseFloat(e),lng:parseFloat(c)},map:t.map});t.markers.push(u);const d=google.maps.event.addListener(u,"click",()=>{const S=s.querySelector('[data-map="link"]');$(S).trigger("click")});t.markerListeners.push(d)}})},a.component.GoogleMap.prototype.destroy=function(){this.markerListeners.forEach(function(t){google.maps.event.removeListener(t)}),this.markerListeners=[],this.markers.forEach(function(t){t.setMap(null)}),this.markers=[],this.map&&(google.maps.event.clearInstanceListeners(this.map),this.map=null)},a.component.GoogleMap.prototype.prepareMapPointData=function(t,s){return{lat:parseFloat(t),lng:parseFloat(s)}};var a=a||{};a.component=a.component||{},a.component.Gallery360=function(s){z.Component.call(this,s)}
110,ke(a.component.Gallery360,z.Component),a.component.Gallery360.prototype.prepare=function(){this.body=$("body"),this.document=$(document),this.window=$(window),this.gallery=this.element.children(".cloudimage-360"),this.isLazy=this.gallery.get(0).hasAttribute("data-lazyload"),this.isLazy&&(this.gallery.get(0).addEventListener("ci360-init",this.handleLazyload.bind(this),!1),this.gallery.get(0).addEventListener("ci360-openFullscreenModal",this.handleLazyLoadFullScreen.bind(this),!1)),window.CI360.init(this.gallery.get(0))},a.component.Gallery360.prototype.handleLazyload=function(t){var s=$(t.detail).find("img");s.attr("src",s.data("src"))},a.component.Gallery360.prototype.handleLazyLoadFullScreen=function(t){var s=$(t.detail.container).find("img");s.attr("src",s.data("src"))};var a=a||{};a.component=a.component||{},a.component.WysiwygGalleryCarouselFull=function(s){z.Component.call(this,s)},ke(a.component.WysiwygGalleryCarouselFull,z.Component),a.component.WysiwygGalleryCarouselFull.prototype.prepare=function(){this.body=$("body"),this.document=$(document),this.window=$(window),this.carousel=null,this.dotsManager=null,Bn(this.element,this.init.bind(this)),this.control()},a.component.WysiwygGalleryCarouselFull.prototype.destroy=function(){this.carousel!==null&&(this.carousel.slick("unslick"),this.carousel=null,this.dotsManager=null)},a.component.WysiwygGalleryCarouselFull.prototype.control=function(){$(window).on("resize",Zr(100,()=>{this.init()}))},a.component.WysiwygGalleryCarouselFull.prototype.init=function(){this.element.get(0).offsetParent!==null?this.create():this.destroy()},a.component.WysiwygGalleryCarouselFull.prototype.create=function(){if(this.carousel===null){let t=this.element.children(".WysiwygGalleryCarouselFull-main");t.on("init reInit",(s,e)=>{this.dotsManager=new Xo(e,5)}),this.carousel=t.slick({infinite:!1,rows:0,arrows:!1,dots:!0,mobileFirst:!0,prevArrow:".WysiwygGalleryCarouselFull-prev",nextArrow:".WysiwygGalleryCarouselFull-next"}),this.carousel.on("afterChange",(s,e,c)=>{this.dotsManager.update(c)})}};var a=a||{};a.component=a.component||{},a.component.Tooltip=function(s){z.Component.call(this,s)}
110,ke(a.component.Tooltip,z.Component),a.component.Tooltip.prototype.prepare=function(){this.init()},a.component.Tooltip.prototype.init=function(){const t=this.getTriggers();tippy(this.elementNode,{animation:"scale",content:this.getContent(),allowHTML:this.allowHTML(),interactive:this.isCustom()||this.allowHTML(),appendTo:()=>document.body,theme:this.getTheme(),ignoreAttributes:!0,touch:this.getTouch(),...t.length>0?{trigger:t.join(" ")}:{},...t.includes("click")?{onTrigger(s,e){e.preventDefault(),e.stopImmediatePropagation()},onUntrigger(s,e){e.preventDefault(),e.stopImmediatePropagation()}}:{}})},a.component.Tooltip.prototype.getContent=function(){if("tooltipTarget"in this.elementNode.dataset){const t=this.elementNode.dataset.tooltipTarget;return document.querySelector(t).innerHTML}else return this.elementNode.dataset.tooltipContent},a.component.Tooltip.prototype.getTouch=function(){let t=!1;return this.elementNode.hasAttribute("data-tooltip-touch")&&(t=this.elementNode.dataset.tooltipTouch==="true"),t},a.component.Tooltip.prototype.getTriggers=function(){if(this.elementNode.hasAttribute("data-tooltip-triggers")){const t=["mouseenter","focus","click","focusin","manual"],s=this.elementNode.dataset.tooltipTriggers.split(" ").filter(e=>e);return s.every(e=>{const c=t.includes(e);return c||console.warn(`Invalid trigger name ${e} on element:`,this.elementNode),c}),s}else return[]},a.component.Tooltip.prototype.allowHTML=function(){let t=!1;return(this.isCustom()||this.isHtmlEnabled())&&(t=!0),t},a.component.Tooltip.prototype.getTheme=function(){let t="base";return this.isCustom()?t="custom":"tooltipTheme"in this.elementNode.dataset&&(t=this.elementNode.dataset.tooltipTheme),t},a.component.Tooltip.prototype.isCustom=function(){return"tooltipTarget"in this.elementNode.dataset},a.component.Tooltip.prototype.isHtmlEnabled=function(){const t=this.elementNode.dataset;return"tooltipAllowHtml"in t?t.tooltipAllowHtml==="true":!1};var a=a||{};a.component=a.component||{},a.component.EditableContent=function(s){z.Component.call(this,s)}
110,ke(a.component.EditableContent,z.Component),a.component.EditableContent.prototype.prepare=function(){this.activeClass="is-active",this.$trigger=this.element.find("[data-editable-content-trigger]"),this.$trigger.on("click",this.handleToggle.bind(this))},a.component.EditableContent.prototype.handleToggle=function(t){t.preventDefault(),this.element.toggleClass(this.activeClass)};var a=a||{};a.component=a.component||{},a.component.CatalogueFilterTemplate=function(s){z.Component.call(this,s)},ke(a.component.CatalogueFilterTemplate,z.Component),a.component.CatalogueFilterTemplate.prototype.init=function(t){this.name=vs(t),this.cookieName=this.name,this.itemDataSelector=`${this.name}-item`,this.itemSelector=`[data-${this.itemDataSelector}]`,this.triggerSelector=`[data-${this.name}-trigger]`,this.contentSelector=`[data-${this.name}-content]`,this.defaultClosedAttr=`${ta(this.name)}DefaultClosed`,this.activeClass="is-active",this.addEvents()},a.component.CatalogueFilterTemplate.prototype.addEvents=function(){$(this.triggerSelector).on("click.CatalogueFilterTemplate",this.handleClick.bind(this))},a.component.CatalogueFilterTemplate.prototype.removeEvents=function(){$(this.triggerSelector).off("click.CatalogueFilterTemplate")},a.component.CatalogueFilterTemplate.prototype.handleClick=function(t){const s=$(t.currentTarget).closest(this.itemSelector);s&&this.toggle(s)},a.component.CatalogueFilterTemplate.prototype.isActive=function(t){return t.hasClass(this.activeClass)},a.component.CatalogueFilterTemplate.prototype.getId=function(t){return t.data(this.itemDataSelector).toString()||null},a.component.CatalogueFilterTemplate.prototype.getFilterContent=function(t){return t.find(this.contentSelector)},a.component.CatalogueFilterTemplate.prototype.isDefaultClosed=function(t){return this.defaultClosedAttr in t.get(0).dataset},a.component.CatalogueFilterTemplate.prototype.getFilterToggle=function(t){return t.find(this.triggerSelector)},a.component.CatalogueFilterTemplate.prototype.toggle=function(t){this.isActive(t)?this.deActivate(t):this.activate(t)},a.component.CatalogueFilterTemplate.prototype.activate=function(t){this.activateControl(t)},a.component.CatalogueFilterTemplate.prototype.deActivate=function(t){this.deActivateControl(t)},a.component.CatalogueFilterTemplate.prototype.deActivateAll=function(){$(this.itemSelector).each((s,e)=>{this.deActivate($(e))})},a.component.CatalogueFilterTemplate.prototype.saveState=function(t,s){const e=this.getId(t);let c=this.getState();s?c.push(e):c=c.filter(u=>u!==e),To(this.cookieName,JSON.stringify(c),1)},a.component.CatalogueFilterTemplate.prototype.resetState=function(){qo(this.cookieName)},a.component.CatalogueFilterTemplate.prototype.getState=function(){return gs(this.cookieName)};var a=a||{};a.component=a.component||{},a.component.CatalogueDesktopHorizontalFilter=function(s){z.Component.call(this,s)}
110,ke(a.component.CatalogueDesktopHorizontalFilter,a.component.CatalogueFilterTemplate),a.component.CatalogueDesktopHorizontalFilter.prototype.prepare=function(){Bn(this.element,()=>{this.init("CatalogueDesktopHorizontalFilter"),this.filterBodySelector="[data-catalogue-desktop-horizontal-filter-body]",this.backdropSelector="[data-catalogue-desktop-horizontal-filter-backdrop]",this.$backdrop=$(this.backdropSelector),this.isComponentActive()&&this.addWindowEvents()})},a.component.CatalogueDesktopHorizontalFilter.prototype.destroy=function(){this.removeEvents(),this.removeWindowEvents()},a.component.CatalogueFilterTemplate.prototype.addWindowEvents=function(){$(window).on("click.CatalogueDesktopHorizontalFilter",this.handleWindowClick.bind(this)),$(window).on("keydown.CatalogueDesktopHorizontalFilter",this.handleWindowKeydown.bind(this))},a.component.CatalogueFilterTemplate.prototype.removeWindowEvents=function(){$(window).off("click.CatalogueDesktopHorizontalFilter"),$(window).off("keydown.CatalogueDesktopHorizontalFilter")},a.component.CatalogueDesktopHorizontalFilter.prototype.activateControl=function(t){this.activateComponent(),this.resetState(),this.saveState(t,!0),t.addClass(this.activeClass),t.siblings().removeClass(this.activeClass),this.getFilterToggle(t).attr("aria-expanded",!0)},a.component.CatalogueDesktopHorizontalFilter.prototype.deActivateControl=function(t){this.deActivateComponent(),this.saveState(t,!1),t.removeClass(this.activeClass),this.getFilterToggle(t).attr("aria-expanded",!1)},a.component.CatalogueDesktopHorizontalFilter.prototype.handleWindowClick=function(t){this.elementNode.contains(t.target)?$(t.target).closest(this.filterBodySelector).length||this.deActivateAll():this.deActivateAll()},a.component.CatalogueDesktopHorizontalFilter.prototype.handleWindowKeydown=function(t){t.keyCode===27&&this.deActivateAll()},a.component.CatalogueDesktopHorizontalFilter.prototype.activateComponent=function(){this.isComponentActive()||(this.addWindowEvents(),this.showBackdrop(),this.element.addClass(this.activeClass))},a.component.CatalogueDesktopHorizontalFilter.prototype.deActivateComponent=function(){this.removeWindowEvents(),this.hideBackdrop(),this.element.removeClass(this.activeClass)},a.component.CatalogueDesktopHorizontalFilter.prototype.isComponentActive=function(){return this.element.hasClass(this.activeClass)},a.component.CatalogueDesktopHorizontalFilter.prototype.showBackdrop=function(){this.$backdrop.addClass(this.activeClass)},a.component.CatalogueDesktopHorizontalFilter.prototype.hideBackdrop=function(){this.$backdrop.removeClass(this.activeClass)};var a=a||{};a.component=a.component||{},a.component.CatalogueDesktopVerticalFilter=function(s){z.Component.call(this,s)}
110,ke(a.component.CatalogueDesktopVerticalFilter,a.component.CatalogueFilterTemplate),a.component.CatalogueDesktopVerticalFilter.prototype.prepare=function(){Bn(this.element,()=>{this.init("CatalogueDesktopVerticalFilter"),this.transitionClass="is-animating",this.transitionDuration=ir})},a.component.CatalogueDesktopVerticalFilter.prototype.destroy=function(){this.removeEvents()},a.component.CatalogueDesktopVerticalFilter.prototype.activateControl=function(t){const s=this.isDefaultClosed(t);if(this.saveState(t,!s),t.hasClass(this.transitionClass)||t.hasClass(this.activeClass))return;const e=this.getFilterContent(t);e.height(e.height())[0].offsetHeight,t.addClass(this.transitionClass),e.height(0),setTimeout(()=>{t.addClass(this.activeClass),t.removeClass(this.transitionClass),e.height("")},this.transitionDuration),this.getFilterToggle(t).attr("aria-expanded",!1)},a.component.CatalogueDesktopVerticalFilter.prototype.deActivateControl=function(t){const s=this.isDefaultClosed(t);if(this.saveState(t,!!s),t.hasClass(this.transitionClass)||!t.hasClass(this.activeClass))return;const e=this.getFilterContent(t);t.removeClass(this.activeClass).addClass(this.transitionClass),e.height(0),e.height(e.prop("scrollHeight")),setTimeout(()=>{t.removeClass(this.transitionClass),e.height("")},this.transitionDuration),this.getFilterToggle(t).attr("aria-expanded",!0)};var a=a||{};a.component=a.component||{},a.component.CatalogueMobileFilter=function(s){z.Component.call(this,s)}
110,ke(a.component.CatalogueMobileFilter,a.component.CatalogueFilterTemplate),a.component.CatalogueMobileFilter.prototype.prepare=function(){this.init("CatalogueMobileFilter"),this.wrapperCookieName="catalogue-mobile-filter-visible",this.showAllCookieName="catalogue-mobile-filter-visible-all",this.transitionClass="is-animating",this.transitionDuration=ir,this.$backdrop=null,this.backdropDelay=0,this.previousFocus=null,this._onFocusTrap=null,this._onEscKey=null,this.focusableSelector=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", "),this.isMultiFilters=this.element.hasClass("CatalogueMobileFilter--isMultiFilters"),this.isSide=this.element.hasClass("CatalogueMobileFilter--isSide"),this.closeButtonSelector="[data-catalogue-mobile-filter-close]",this.submitButtonSelector="[data-catalogue-mobile-filter-submit]",this.singleTriggerSelector="[data-catalogue-mobile-filter-single-trigger]",this.itemTriggerSelector="[data-catalogue-mobile-filter-trigger-item]",this.refreshButtonSelector="[data-catalogue-mobile-filter-refresh]",this.backdropEvent=this.handleBackdropClick.bind(this),$(this.closeButtonSelector).on("click.CatalogueMobileFilter",this.handleClose.bind(this)),$(this.submitButtonSelector).on("click.CatalogueMobileFilter",this.handleClose.bind(this)),this.isMultiFilters?($(this.singleTriggerSelector).on("click.CatalogueMobileFilter",this.handleSingleOpen.bind(this)),$(this.refreshButtonSelector).on("click.CatalogueMobileFilter",this.handleRefresh.bind(this)),this.filtersRefreshUrl=$(this.refreshButtonSelector).data("catalogue-mobile-filter-refresh")):$(this.itemTriggerSelector).on("click.CatalogueMobileFilter",this.handleOpenItem.bind(this)),$(this.element).on("ui.catalogue-mobile-filter.close",this.handleClose.bind(this)),this.createBackdrop(),this.restoreOpenState()},a.component.CatalogueMobileFilter.prototype.destroy=function(){this.unbindFocusTrap(),this.unbindEscapeKey(),this.removeEvents(),$(this.closeButtonSelector).off("click.CatalogueMobileFilter"),$(this.submitButtonSelector).off("click.CatalogueMobileFilter"),this.isMultiFilters?($(this.singleTriggerSelector).off("click.CatalogueMobileFilter"),$(this.refreshButtonSelector).off("click.CatalogueMobileFilter"),this.filtersRefreshUrl=null):$(this.itemTriggerSelector).off("click.CatalogueMobileFilter"),$(this.itemTriggerSelector).off("ui.catalogue-filter.close"),this.removeBackdrop()},a.component.CatalogueMobileFilter.prototype.handleOpenItem=function(t){const s=$(t.currentTarget).data(this.name+"-trigger-item"),e=`[data-${this.itemDataSelector}="${s}"]`,c=$(e);this.activate(c,!0),this.openFiltersWrapper(c)},a.component.CatalogueMobileFilter.prototype.handleSingleOpen=function(){this.openFiltersWrapper()},a.component.CatalogueMobileFilter.prototype.handleRefresh=function(){this.refreshFilters()},a.component.CatalogueMobileFilter.prototype.handleBackdropClick=function(){this.close()},a.component.CatalogueMobileFilter.prototype.openFiltersWrapper=function(t){this.element.hasClass(this.activeClass)||this.storePreviousFocus(),this.showBackdrop(()=>{this.element.addClass(this.activeClass),this.element.removeAttr("aria-hidden").attr("aria-modal",!0).attr("role","dialog"),To(this.wrapperCookieName,!0,1),this.focusFirst(t),this.bindFocusTrap(),this.bindEscapeKey()})},a.component.CatalogueMobileFilter.prototype.refreshFilters=function(){To(this.showAllCookieName,!0,1),this.makeRefreshRequest()},a.component.CatalogueMobileFilter.prototype.handleClose=function(){this.close()},a.component.CatalogueMobileFilter.prototype.close=function(){this.unbindFocusTrap(),this.unbindEscapeKey(),this.hideBackdrop(()=>{this.element.attr("aria-hidden",!0).removeAttr("aria-modal").removeAttr("role"),this.element.removeClass(this.activeClass),qo(this.wrapperCookieName),this.isMultiFilters&&ms(this.showAllCookieName)&&(qo(this.showAllCookieName),this.makeRefreshRequest()),this.restoreFocus()})},a.component.CatalogueMobileFilter.prototype.activateControl=function(t){if(this.isMultiFilters){const s=this.isDefaultClosed(t);if(this.saveState(t,!s),t.hasClass(this.transitionClass)||t.hasClass(this.activeClass))return;const e=this.getFilterContent(t);e.height(e.height())[0].offsetHeight,t.addClass(this.transitionClass),e.height(0),setTimeout(()=>{t.addClass(this.activeClass),t.removeClass(this.transitionClass),e.height("")},this.transitionDuration),this.getFilterToggle(t).attr("aria-expanded",!1)}else this.resetState(),this.saveState(t,!0),t.addClass(this.activeClass),t.siblings().removeClass(this.activeClass)},a.component.CatalogueMobileFilter.prototype.deActivateControl=function(t){if(this.isMultiFilters){const s=this.isDefaultClosed(t);if(this.saveState(t,!!s),t.hasClass(this.transitionClass)||!t.hasClass(this.activeClass))return;const e=this.getFilterContent(t);t.removeClass(this.activeClass).addClass(this.transitionClass),e.height(0),e.height(e.prop("scrollHeight")),setTimeout(()=>{t.removeClass(this.transitionClass),e.height("")},this.transitionDuration),this.getFilterToggle(t).attr("aria-expanded",!0)}else this.saveState(t,!1),t.removeClass(this.activeClass)},a.component.CatalogueMobileFilter.prototype.makeRefreshRequest=function(){this.abortOngoingRequest();const t=this.createRequest().setUrl(this.filtersRefreshUrl).setMethod("post").addData({snp:["catalogue-mobile-filter"]}).setSaveHistory(!1);this.currentRequest=t.send()},a.component.CatalogueMobileFilter.prototype.abortOngoingRequest=function(){this.currentRequest&&this.currentRequest.readyState!==4&&this.currentRequest.abort()},a.component.CatalogueMobileFilter.prototype.createBackdrop=function(){this.isSide&&(this.$backdrop=$("<div>"),this.$backdrop.addClass("Backdrop CatalogueMobileFilter-backdrop").addClass("Backdrop--animate"),this.element.hasClass(this.activeClass)&&(this.$backdrop.addClass("is-active"),this.$backdrop.appendTo(document.body),this.$backdrop.get(0).addEventListener("click",this.backdropEvent)))},a.component.CatalogueMobileFilter.prototype.showBackdrop=function(t){if(!this.$backdrop){t();return}this.$backdrop.appendTo(document.body),this.$backdrop.get(0).addEventListener("click",this.backdropEvent),setTimeout(()=>{this.$backdrop.addClass("is-active"),t()},this.backdropDelay)},a.component.CatalogueMobileFilter.prototype.hideBackdrop=function(t){if(!this.$backdrop){t();return}t(),this.$backdrop.removeClass("is-active"),setTimeout(()=>{this.removeBackdrop(!1)},ir)},a.component.CatalogueMobileFilter.prototype.removeBackdrop=function(t=!0){this.$backdrop&&(this.$backdrop.get(0).removeEventListener("click",this.backdropEvent),this.$backdrop.remove(),t&&(this.$backdrop=null))},a.component.CatalogueMobileFilter.prototype.restoreOpenState=function(){!this.element.hasClass(this.activeClass)||!this.isVisible()||(this.previousFocus=this.getDefaultTr
110igger(),this.focusFirst(),this.bindFocusTrap(),this.bindEscapeKey())},a.component.CatalogueMobileFilter.prototype.isVisible=function(){const t=this.element.get(0);return t.offsetWidth>0||t.offsetHeight>0},a.component.CatalogueMobileFilter.prototype.getDefaultTrigger=function(){const t=this.isMultiFilters?this.singleTriggerSelector:this.itemTriggerSelector;return $(t).get(0)||null},a.component.CatalogueMobileFilter.prototype.getFocusableElements=function(t){return(t&&t.length?t:this.element).find(this.focusableSelector).filter(function(){return this.offsetWidth>0||this.offsetHeight>0||this===document.activeElement}).toArray()},a.component.CatalogueMobileFilter.prototype.storePreviousFocus=function(){this.previousFocus=document.activeElement},a.component.CatalogueMobileFilter.prototype.focusFirst=function(t){const s=this.getFocusableElements(t),e=s.length?s[0]:this.element.get(0);e&&typeof e.focus=="function"&&e.focus({preventScroll:!0})},a.component.CatalogueMobileFilter.prototype.restoreFocus=function(){const t=this.previousFocus;this.previousFocus=null,t&&typeof t.focus=="function"&&t.isConnected&&(t.offsetWidth>0||t.offsetHeight>0)&&t.focus()},a.component.CatalogueMobileFilter.prototype.bindFocusTrap=function(){this.unbindFocusTrap(),this._onFocusTrap=t=>{if(t.key!=="Tab"&&t.keyCode!==9)return;const s=this.getFocusableElements();if(!s.length){t.preventDefault(),this.element.get(0).focus();return}const e=s[0],c=s[s.length-1],u=document.activeElement;if(!this.element.get(0).contains(u)){t.preventDefault(),e.focus();return}t.shiftKey&&u===e?(t.preventDefault(),c.focus()):!t.shiftKey&&u===c&&(t.preventDefault(),e.focus())},$(document).on("keydown.catalogueMobileFilterFocusTrap",this._onFocusTrap)},a.component.CatalogueMobileFilter.prototype.unbindFocusTrap=function(){this._onFocusTrap&&($(document).off("keydown.catalogueMobileFilterFocusTrap",this._onFocusTrap),this._onFocusTrap=null)},a.component.CatalogueMobileFilter.prototype.bindEscapeKey=function(){this.unbindEscapeKey(),this._onEscKey=t=>{(t.key==="Escape"||t.keyCode===27)&&this.close()},$(document).on("keydown.catalogueMobileFilterEsc",this._onEscKey)},a.component.CatalogueMobileFilter.prototype.unbindEscapeKey=function(){this._onEscKey&&($(document).off("keydown.catalogueMobileFilterEsc",this._onEscKey),this._onEscKey=null)};var a=a||{};a.component=a.component||{},a.component.CatalogueModalFilter=function(s){z.Component.call(this,s)}
110,ke(a.component.CatalogueModalFilter,a.component.CatalogueFilterTemplate),a.component.CatalogueModalFilter.prototype.prepare=function(){this.init("CatalogueModalFilter"),this.navNode=this.element.get(0).querySelector(".CatalogueFilterBox-navigation"),this.resizeObserver=new ResizeObserver(this.handleResize.bind(this)),this.resizeObserver.observe(this.element.get(0)),this.updateAria()},a.component.CatalogueModalFilter.prototype.destroy=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.removeEvents()},a.component.CatalogueModalFilter.prototype.isDesktop=function(){return!!this.navNode&&window.getComputedStyle(this.navNode).display!=="none"},a.component.CatalogueModalFilter.prototype.handleResize=function(){this.updateAria()},a.component.CatalogueModalFilter.prototype.updateAria=function(){const t=this.element.get(0),s=this.isDesktop(),e=t.querySelectorAll(".CatalogueFilterBoxItem"+this.itemSelector),c=[];e.forEach(u=>{u.classList.contains(this.activeClass)&&c.push(u.getAttribute("data-"+this.itemDataSelector))}),s&&c.length===0&&e.length&&c.push(e[0].getAttribute("data-"+this.itemDataSelector)),t.querySelectorAll(this.triggerSelector).forEach(u=>{const d=u.closest(this.itemSelector),S=d&&d.getAttribute("data-"+this.itemDataSelector);u.setAttribute("aria-expanded",c.indexOf(S)!==-1?"true":"false")}),e.forEach(u=>{const d=u.querySelector(".CatalogueFilterBoxItem-body");if(!d)return;const S=u.getAttribute("data-"+this.itemDataSelector),I=c.indexOf(S)!==-1;d.inert=s?!1:!I})},a.component.CatalogueModalFilter.prototype.activateControl=function(t){const s=this.getId(t);if($(this.itemSelector).removeClass(this.activeClass),this.resetState(),$(`[data-${this.itemDataSelector}="${s}"]`).addClass(this.activeClass),this.saveState(t,!0),this.updateAria(),this.isDesktop()){const e=this.element.get(0).querySelector(".CatalogueFilterBoxItem[data-"+this.itemDataSelector+'="'+s+'"] .CatalogueFilterBoxItem-body');e&&e.focus()}},a.component.CatalogueModalFilter.prototype.deActivateControl=function(t){$(this.itemSelector).removeClass(this.activeClass),this.resetState(),this.updateAria()};var a=a||{};a.component=a.component||{},a.component.CatalogueCheckboxFilter=function(s){z.Component.call(this,s)}
110,ke(a.component.CatalogueCheckboxFilter,z.Component),a.component.CatalogueCheckboxFilter.prototype.prepare=function(){Bn(this.element,()=>{this.cookieName="catalogue-checkbox-filter",this.activeClass="is-active",this.jsControlClass="has-jsControl",this.jsSearchControlClass="has-jsSearchControl",this.transitionClass="is-animating",this.htmlControlHiddenClass="is-hidden",this.transitionDuration=ir,this.searchInputSelector="[data-checkbox-filter-search]",this.toggleButtonSelector="[data-checkbox-filter-toggle]",this.listSelector="[data-checkbox-filter-list]",this.hideableDataAttr="data-catalogue-checkbox-filter-hideable",this.searchableDataAttr="data-catalogue-checkbox-filter-searchable",this.id=this.getId(),this.$list=this.getList(),this.isHideable=this.element.attr(this.hideableDataAttr)!==void 0,this.isSearchable=this.element.attr(this.searchableDataAttr)!==void 0,this.maxHideableOptions=this.isHideable?parseInt(this.element.attr(this.hideableDataAttr)):null,this.addEvents()})},a.component.CatalogueCheckboxFilter.prototype.destroy=function(){this.removeEvents()},a.component.CatalogueCheckboxFilter.prototype.addEvents=function(){this.element.find(this.toggleButtonSelector).on("click.CatalogueCheckboxFilter",this.handleToggle.bind(this)),this.initSearch()},a.component.CatalogueCheckboxFilter.prototype.removeEvents=function(){this.element.find(this.toggleButtonSelector).off("click.CatalogueCheckboxFilter"),this.destroySearch()},a.component.CatalogueCheckboxFilter.prototype.handleToggle=function(){this.toggle()},a.component.CatalogueCheckboxFilter.prototype.toggle=function(){this.takeControl(),this.isActive()?this.deActivate():this.activate()},a.component.CatalogueCheckboxFilter.prototype.isActive=function(){return this.element.hasClass(this.activeClass)},a.component.CatalogueCheckboxFilter.prototype.activate=function(){this.saveState(!0),!(this.element.hasClass(this.transitionClass)||this.isActive())&&(this.element.addClass(this.activeClass).addClass(this.transitionClass),this.setHeightAttr(this.countHideableHeight()),this.setHeightAttr(this.$list[0].scrollHeight),setTimeout(()=>{this.element.removeClass(this.transitionClass)},this.transitionDuration))},a.component.CatalogueCheckboxFilter.prototype.deActivate=function(){this.saveState(!1),!(this.element.hasClass(this.transitionClass)||!this.isActive())&&(this.setHeightAttr(this.$list[0].offsetHeight),this.element.addClass(this.transitionClass),this.setHeightAttr(this.countHideableHeight()),setTimeout(()=>{this.element.removeClass(this.activeClass),this.element.removeClass(this.transitionClass)},this.transitionDuration))},a.component.CatalogueCheckboxFilter.prototype.saveState=function(t){let s=this.getState();t?s.push(this.id):s=s.filter(e=>e!==this.id),To(this.cookieName,JSON.stringify(s),1)},a.component.CatalogueCheckboxFilter.prototype.getState=function(){return gs(this.cookieName)},a.component.CatalogueCheckboxFilter.prototype.getId=function(){return this.element.data("catalogue-checkbox-filter").toString()},a.component.CatalogueCheckboxFilter.prototype.getList=function(){return this.element.find(this.listSelector)},a.component.CatalogueCheckboxFilter.prototype.countHideableHeight=function(){const t=this.$list.children(`:nth-child(${this.maxHideableOptions})`),s=t.offset().top-this.$list.offset().top,e=t.outerHeight();return s+e},a.component.CatalogueCheckboxFilter.prototype.setHeightAttr=function(t){this.element.css({"--jsHeight":`${t}px`})},a.component.CatalogueCheckboxFilter.prototype.takeControl=function(){this.element.addClass(this.jsControlClass),this.$list.children("li").removeClass(this.htmlControlHiddenClass)},a.component.CatalogueCheckboxFilter.prototype.initSearch=function(){if(this.isSearchable){const s=this.element.find(this.searchInputSelector).attr("id"),e=this.setId(this.$list);e&&s?this.jets=new Jets({searchTag:`#${s}`,contentTag:`#${e}`,diacriticsMap:{a:"ÀÁÂÃÄÅàáâãäåĀāąĄ",c:"ÇçćĆčČ",d:"đĐďĎ",e:"ÈÉÊËèéêëěĚĒēęĘ",i:"ÌÍÎÏìíîïĪī",l:"łŁ",n:"ÑñňŇńŃ",o:"ÒÓÔÕÕÖØòóôõöøŌō",r:"řŘ",s:"ŠšśŚ",t:"ťŤ",u:"ÙÚÛÜùúûüůŮŪū",y:"ŸÿýÝ",z:"ŽžżŻźŹ"},manualContentHandling:c=>{const u=c.querySelector("[data-catalogue-checkbox-filter-option]");return u?u.textContent.trim():""},didSearch:c=>{c.length>0?this.searchTakeControl():this.searchReturnControl()}}):console.warn("CatalogueCheckboxFilter missing id")}},a.component.CatalogueCheckboxFilter.prototype.destroySearch=function(){this.isSearchable&&this.jets&&(this.jets.destroy(),this.jets=null)},a.component.CatalogueCheckboxFilter.prototype.searchTakeControl=function(){this.element.addClass(this.jsSearchControlClass)},a.component.CatalogueCheckboxFilter.prototype.searchReturnControl=function(){this.element.removeClass(this.jsSearchControlClass)},a.component.CatalogueCheckboxFilter.prototype.setId=function(t){const s=ea();return t.attr("id",s),s};var a=a||{};a.component=a.component||{},a.component.CataloguePriceFilter=function(s){z.Component.call(this,s)}
110,ke(a.component.CataloguePriceFilter,z.Component),a.component.CataloguePriceFilter.prototype.prepare=function(){this.element.on("submit",this.handleSubmit.bind(this))},a.component.CataloguePriceFilter.prototype.handleSubmit=function(t){t.preventDefault();const s=this.createRequest(),e=new URL(t.currentTarget.action),c=e.toString();if(t.currentTarget.querySelectorAll("[data-catalogue-price-filter-input]").forEach(S=>{e.searchParams.set(S.name,S.value)}),encodeURI(c)===e.toString())return;this.setBusy(!0),s.setUrl(e.toString()),s.setMethod(t.currentTarget.method);const d=()=>this.setBusy(!1);s.addSuccessCallback(d),s.addErrorCallback(d),s.send()};var a=a||{};a.component=a.component||{},a.component.ReservationAutocomplete=function(s){z.Component.call(this,s),this.debouncedChangeEvent=Ar(400,(function(){this.handleSearch()}).bind(this))},ke(a.component.ReservationAutocomplete,z.Component),a.component.ReservationAutocomplete.prototype.prepare=function(){this.isInitalized=!1,Bn(this.element,()=>{this.$control=this.element.find("[data-reservation-autocomplete-control]"),this.$reset=this.element.find("[data-reservation-autocomplete-reset]"),this.$form=this.element.find("form"),this.lastSearchPhrase=null,this.searchPhrase=null,this.init(),this.addEvents(),this.isInitalized=!0})},a.component.ReservationAutocomplete.prototype.destroy=function(){this.isInitalized&&this.removeEvents()},a.component.ReservationAutocomplete.prototype.addEvents=function(){this.$reset.on("click.ReservationAutocomplete",this.handleReset.bind(this)),this.$control.on("input.ReservationAutocomplete",this.handleControl.bind(this)),this.$form.on("submit.ReservationAutocomplete",this.handleSubmit.bind(this))},a.component.ReservationAutocomplete.prototype.removeEvents=function(){this.$reset.off("click.ReservationAutocomplete"),this.$control.off("input.ReservationAutocomplete"),this.$form.off("submit.ReservationAutocomplete")},a.component.ReservationAutocomplete.prototype.init=function(t){this.searchPhrase=this.$control.val(),this.lastSearchPhrase=this.searchPhrase,this.searchPhrase.length&&(this.$control.focus(),this.$control.val(""),this.$control.val(this.searchPhrase),this.$reset.show())},a.component.ReservationAutocomplete.prototype.handleControl=function(t){const s=t.target;this.searchPhrase=s.value;const e=this.searchPhrase.length;this.lastSearchPhrase!==this.searchPhrase&&(this.debouncedChangeEvent(),e>0?this.$reset.show():this.$reset.hide())},a.component.ReservationAutocomplete.prototype.handleSubmit=function(t){if(t.preventDefault(),!this.$control.val().length)return!1},a.component.ReservationAutocomplete.prototype.handleSearch=function(){const t=this.element.closest("form").get(0),s=new Event("submit",{bubbles:!0,cancelable:!0});t.dispatchEvent(s)&&t.submit()},a.component.ReservationAutocomplete.prototype.handleReset=function(t){this.$control.removeAttr("value").val(""),this.handleSearch()};var a=a||{};a.component=a.component||{},a.component.Address2Collapse=function(s){z.Component.call(this,s)}
110,ke(a.component.Address2Collapse,z.Component),a.component.Address2Collapse.prototype.prepare=function(){this.document=$(document),this.window=$(window),this.body=$("body"),this.input=this.element.find("[data-address-2-collapse-input]"),this.target=this.element.find("[data-address-2-collapse-target]"),this.input.on("change",this.handleChange.bind(this)),this.input.on("ui.customSelect.change",this.handleChange.bind(this)),this.getOptionsData()},a.component.Address2Collapse.prototype.handleChange=function(){let t=this.input.val();this.isAllowed(t)?this.target.trigger("ui.collapse.show"):this.target.trigger("ui.collapse.hide")},a.component.Address2Collapse.prototype.getOptionsData=function(){let t,s=this.element.get(0).dataset.address2CollapseAllowed;try{t=JSON.parse(s)}catch{t=[]}this.allowed=t},a.component.Address2Collapse.prototype.isAllowed=function(t){return this.allowed.includes(t)};var a=a||{};a.component=a.component||{},a.component.Adyen=function(s,e){z.Component.call(this,s),this.dependencies={toast:e.get("toast"),translator:e.get("translator")},this.translator=this.dependencies.translator.getNameSpace("Adyen")},ke(a.component.Adyen,z.Component),a.component.Adyen.prototype.prepare=function(){this.body=$("body"),this.document=$(document),this.window=$(window),this.HtmlElement=this.element.get(0),this.key=this.getKey(),this.type="dropin",this.orderId=this.getOrderId(),this.prefix=this.getPrefixUrl(),this.waitToExternalAssets(1e3,0)},a.component.Adyen.prototype.destroy=function(){},a.component.Adyen.prototype.waitToExternalAssets=function(t,s){window.AdyenWeb?this.init():s<t?setTimeout(()=>{this.waitToExternalAssets(t,s+1)},250):(console.error("AdyenWeb is not available after maximum attempts."),this.dependencies.toast.show(this.translator.get("loadErrorToast"),"error"))},a.component.Adyen.prototype.init=async function(){try{const t=this,s={};this.orderId>0&&(s.orderId=this.orderId);const e=await this.callServer(this.prefix+"/api/adyen/getCheckoutConfiguration/",s),{payment:c,dropin:u,additional:d}=e;c.onSubmit=async function(ct,nt,rt){if(!ct.isValid){rt.reject();return}t.merchantReference=null,ct.data.buttonPrice=d.buttonPrice,d.orderId&&(ct.data.orderId=d.orderId),await t.handleSubmission(ct,rt,t.prefix+"/api/adyen/initiatePayment/")},c.onAdditionalDetails=async function(ct,nt,rt){await t.handleSubmission(ct,rt,t.prefix+"/api/adyen/submitAdditionalDetails/")},c.onPaymentCompleted=async function(ct,nt){await t.handleConfirmAndRedirect(ct)},c.onPaymentFailed=async function(ct,nt){await t.handleConfirmAndRedirect(ct)};const{AdyenCheckout:S,Dropin:I}=window.AdyenWeb,Z=await S(c);new I(Z,u).mount(this.HtmlElement)}catch(t){console.error(t),this.dependencies.toast.show(this.translator.get("loadErrorToast"),"error")}},a.component.Adyen.prototype.handleSubmission=async function(t,s,e){try{const c=await this.callServer(e,t.data),{action:u,order:d,resultCode:S,donationToken:I,merchantReference:Z,redirectUrl:ct}=c;if(Z&&(this.merchantReference=Z),ct){window.location.href=ct;return}if(!S){s.reject();return}s.resolve({resultCode:S,action:u,order:d,donationToken:I})}catch(c){console.error(c),s.reject(),this.dependencies.toast.show(this.translator.get("submitErrorToast"),"error")}},a.component.Adyen.prototype.handleConfirmAndRedirect=async function(t){try{const s=await this.callServer(this.prefix+"/api/adyen/confirm/",{resultCode:t.resultCode,merchantReference:this.merchantReference});s&&s.redirectUrl&&(window.location.href=s.redirectUrl)}catch(s){console.error(s),this.dependencies.toast.show(this.translator.get("confirmErrorToast"),"error")}},a.component.Adyen.prototype.callServer=async function(t,s){const e=await fetch(t,{method:"POST",body:s?JSON.stringify(s):"",headers:{"Content-Type":"application/json"}}),c=await e.text();if(!e.ok)throw new Error(`Server ${e.status} at ${t}: ${c||"empty response"}`);if(!c)return null;try{return JSON.parse(c)}catch{throw new Error(`Invalid JSON from ${t}: ${c.substring(0,200)}`)}},a.component.Adyen.prototype.getKey=function(){const t=this.HtmlElement.dataset.adyenKey;return t||console.error(new Error("Missing key")),t}
110,a.component.Adyen.prototype.getOrderId=function(){const t=this.HtmlElement.dataset.orderId;return t?parseInt(t):0},a.component.Adyen.prototype.getPrefixUrl=function(){const t=this.HtmlElement.dataset.prefixUrl;return t||""};var a=a||{};a.component=a.component||{},a.component.SeznamSsp=function(s,e){z.Component.call(this,s),this.dependencies={settings:e.get("settings")},this.settings=this.dependencies.settings},ke(a.component.SeznamSsp,z.Component),a.component.SeznamSsp.prototype.prepare=function(){if(this.scriptUrl="https://ssp.seznam.cz/static/js/ssp.js",this.popupUrl="https://ssp.seznam.cz/static/js/popup.js",this.id=this.getId(),this.width=this.getWidth(),this.height=this.getHeight(),this.zoneId=this.getZoneId(),this.type=this.getType(),this.breakPoint=this.getBreakPoint(),this.isMobilePoup=!1,this.isInitalized=!1,this.isTest=!1,!this.id)throw new Error("Missing id");if(!this.width)throw new Error("Missing width");if(!this.height)throw new Error("Missing height");if(!this.zoneId)throw new Error("Missing zoneId");if(!this.type)throw new Error("Missing type");this.type==="pop_up_mobile"&&(this.isMobilePoup=!0),this.isVisible()?this.init():$(window).on("resize",Zr(250,()=>{this.isVisible()&&this.init()}))},a.component.SeznamSsp.prototype.init=function(){this.isInitalized||this.run((function(){this.isMobilePoup?window.getSznAdPopUp([{type:"mobile",zoneId:this.zoneId,breakPoint:this.settings.get("global.breakpoint"),fromFeed:!0,test:this.isTest}]):sssp.getAds([{zoneId:this.zoneId,id:this.id,width:this.width,height:this.height,test:this.isTest}]),this.isInitalized=!0}).bind(this))},a.component.SeznamSsp.prototype.run=function(t){const s=[];typeof sssp>"u"&&s.push(this.scriptUrl),this.isMobilePoup&&typeof window.getSznAdPopUp>"u"&&s.push(this.popupUrl),this.loadScripts(s).done(function(){t()}).fail(function(e){console.error("Failed to load scripts:",e)})},a.component.SeznamSsp.prototype.isVisible=function(){let t=this.element.get(0);for(;t;)if(getComputedStyle(t).display!=="none")t=t.parentElement;else return!1;return!0},a.component.SeznamSsp.prototype.getId=function(){return this.element.get(0).id||""},a.component.SeznamSsp.prototype.getWidth=function(){return this.element.get(0).dataset.sspWidth||""},a.component.SeznamSsp.prototype.getHeight=function(){return this.element.get(0).dataset.sspHeight||""},a.component.SeznamSsp.prototype.getZoneId=function(){return this.element.get(0).dataset.sspZoneId||""},a.component.SeznamSsp.prototype.getType=function(){return this.element.get(0).dataset.sspType||""},a.component.SeznamSsp.prototype.getBreakPoint=function(){return this.element.get(0).dataset.sspBreakpoint||String(this.settings.get("global.breakpoint"))},a.component.SeznamSsp.prototype.loadScripts=function(t){var s=[];return $.each(t,function(e,c){var u=$.Deferred();$.getScript(c).done(function(d,S){u.resolve()}).fail(function(d,S,I){u.reject(I)}),s.push(u)}),$.when.apply($,s)};var a=a||{};a.component=a.component||{},a.component.ExternalVideo=function(s){z.Component.call(this,s)}
110,ke(a.component.ExternalVideo,z.Component),a.component.ExternalVideo.prototype.prepare=function(){this.isInitialized=!1,this.hls=null,this.video=null,this.observer=null,this.playButton=null;const t=this.elementNode.dataset;if(this.src=t.externalVideoSrc,this.poster=t.externalVideoPoster||"",this.autoplay=t.externalVideoAutoplay!==void 0,this.muted=t.externalVideoUnmuted===void 0,this.loop=t.externalVideoLoop!==void 0,this.controls=t.externalVideoControls!==void 0,this.isEager=t.externalVideoEager!==void 0,this.decorative=t.externalVideoDecorative!==void 0,this.label=t.externalVideoLabel||"",this.playLabel=t.externalVideoPlayLabel||"",this.fallbackPlayButton=t.externalVideoFallbackPlayButton!==void 0,this.reduceMotion=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches||navigator.connection&&navigator.connection.saveData||!1,!!this.src&&!(this.decorative&&this.reduceMotion)){if(this.video=this.createVideoElement(),!this.decorative&&this.reduceMotion){this.fallbackPlayButton&&this.createPlayButton();return}this.observer=new IntersectionObserver(this.handleVisibility.bind(this),{rootMargin:this.isEager?"0px":"400px 0px"}),this.observer.observe(this.video),this.isEager&&this.init()}},a.component.ExternalVideo.prototype.handleVisibility=function(t){t.some(function(e){return e.isIntersecting})?this.isInitialized?this.play():this.init():this.autoplay&&this.pause()},a.component.ExternalVideo.prototype.init=function(){if(this.isInitialized||!this.src||!this.video)return;this.isInitialized=!0;const t=window.Hls;if(t&&t.isSupported()){this.hls=new t({abrEwmaDefaultEstimate:5e6,lowLatencyMode:!1,maxBufferLength:10,maxMaxBufferLength:30,backBufferLength:0,startFragPrefetch:!0}),this.hls.attachMedia(this.video),this.hls.on(t.Events.MEDIA_ATTACHED,()=>this.hls.loadSource(this.src)),this.hls.on(t.Events.MANIFEST_PARSED,()=>this.play());return}this.video.canPlayType("application/vnd.apple.mpegurl")&&(this.video.src=this.src,this.play())},a.component.ExternalVideo.prototype.createVideoElement=function(){const t=document.createElement("video");return t.muted=this.muted,t.playsInline=!0,t.autoplay=this.autoplay&&!this.reduceMotion,t.loop=this.loop,t.controls=this.controls,t.preload="auto",t.tabIndex=-1,this.decorative?t.setAttribute("aria-hidden","true"):this.label&&t.setAttribute("aria-label",this.label),this.poster&&(t.poster=this.poster),this.elementNode.appendChild(t),t},a.component.ExternalVideo.prototype.createPlayButton=function(){this.element.addClass("ExternalVideo--interactive");const t=document.createElement("button");t.type="button",t.className="ExternalVideo-playButton",t.setAttribute("aria-label",this.playLabel||"Play video"),t.innerHTML='<span class="ExternalVideo-playButtonIcon" aria-hidden="true"></span>',t.addEventListener("click",this.handlePlayButtonClick.bind(this)),this.elementNode.appendChild(t),this.playButton=t},a.component.ExternalVideo.prototype.handlePlayButtonClick=function(){this.autoplay=!0,this.video&&(this.video.autoplay=!0,this.video.controls=!0),this.removePlayButton(),this.init(),this.play()},a.component.ExternalVideo.prototype.removePlayButton=function(){this.element.removeClass("ExternalVideo--interactive"),this.playButton&&(this.playButton.remove(),this.playButton=null)},a.component.ExternalVideo.prototype.play=function(){if(!this.video||!this.autoplay)return;const t=this.video.play();t&&typeof t.catch=="function"&&t.catch(()=>{})},a.component.ExternalVideo.prototype.pause=function(){this.video&&this.video.pause()},a.component.ExternalVideo.prototype.refresh=function(){this.observer&&this.video&&(this.observer.unobserve(this.video),this.observer.observe(this.video))},a.component.ExternalVideo.prototype.destroy=function(){this.removePlayButton(),this.observer&&(this.observer.disconnect(),this.observer=null),this.hls&&(this.hls.destroy(),this.hls=null),this.video&&(this.video.pause(),this.video.removeAttribute("src"),this.video.load(),this.video.remove(),this.video=null),this.isInitialized=!1};var a=a||{};a.component=a.component||{},a.component.IframeVideo=function(s){z.Component.call(this,s)}
110,ke(a.component.IframeVideo,z.Component),a.component.IframeVideo.prototype.prepare=function(){if(this.iframe=this.elementNode.querySelector("iframe"),this.observer=null,this.provider=null,this.isLoaded=!1,this.loadHandler=null,!this.iframe)return;const t=this.elementNode.dataset;this.lazySrc=t.iframeVideoSrc||"",this.autoplay=t.iframeVideoAutoplay!==void 0,this.isLazy=!!this.lazySrc,this.isLoaded=!this.isLazy,this.provider=this.detectProvider_(this.isLazy?this.lazySrc:this.iframe.src),this.observer=new IntersectionObserver(this.handleVisibility.bind(this),{rootMargin:"400px 0px"}),this.observer.observe(this.iframe)},a.component.IframeVideo.prototype.handleVisibility=function(t){if(t.some(function(e){return e.isIntersecting})){if(!this.isLoaded){this.load();return}this.autoplay&&this.play()}else this.isLoaded&&this.autoplay&&this.pause()},a.component.IframeVideo.prototype.load=function(){this.isLoaded||!this.lazySrc||(this.autoplay&&(this.loadHandler=this.play.bind(this),this.iframe.addEventListener("load",this.loadHandler,{once:!0})),this.iframe.src=this.lazySrc,this.isLoaded=!0)},a.component.IframeVideo.prototype.pause=function(){this.postCommand_("pause")},a.component.IframeVideo.prototype.play=function(){this.postCommand_("play")},a.component.IframeVideo.prototype.refresh=function(){this.observer&&this.iframe&&(this.observer.unobserve(this.iframe),this.observer.observe(this.iframe))},a.component.IframeVideo.prototype.postCommand_=function(t){if(!this.iframe||!this.iframe.contentWindow||!this.provider)return;let s=null;this.provider==="vimeo"?s=JSON.stringify({method:t}):this.provider==="youtube"&&(s=JSON.stringify({event:"command",func:t+"Video",args:""})),s!==null&&this.iframe.contentWindow.postMessage(s,"*")},a.component.IframeVideo.prototype.detectProvider_=function(t){return t?t.indexOf("vimeo.com")!==-1?"vimeo":t.indexOf("youtube.com")!==-1||t.indexOf("youtu.be")!==-1?"youtube":null:null},a.component.IframeVideo.prototype.destroy=function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.loadHandler&&this.iframe&&(this.iframe.removeEventListener("load",this.loadHandler),this.loadHandler=null)};var a=a||{};a.component=a.component||{},a.component.FixedHeaderSearch=function(s,e){z.Component.call(this,s),this.dependencies={settings:e.get("settings")},this.settings=this.dependencies.settings},ke(a.component.FixedHeaderSearch,z.Component),a.component.FixedHeaderSearch.prototype.prepare=function(){this.document=$(document),this.window=$(window),this.desktopToggleButton=document.querySelectorAll('[data-fixed-header-search="toggleDesktop"]'),this.mobileToggleButton=document.querySelectorAll('[data-fixed-header-search="toggleMobile"]'),this.$headerBackdrop=null,this.$mainBackdrop=null,this.backdropDelay=this.withAnimation?50:0,this.createBackdrop(),$(this.desktopToggleButton).on("click",this.toggle.bind(this)),$(this.mobileToggleButton).on("click",this.toggle.bind(this)),$(this.backdrop).on("click",this.close.bind(this)),$("body").on("click",".FixedHeaderSearchBackdrop",this.close.bind(this)),$("[data-component=PageNavigation]").on("ui.pageNavigation.open",this.close.bind(this)),$("[data-component=MobileNavigation]").on("ui.mobileNavigation.open",this.close.bind(this))},a.component.FixedHeaderSearch.prototype.destroy=function(){},a.component.FixedHeaderSearch.prototype.open=function(t){t.preventDefault(),this.showBackdrop(()=>{this.element.addClass("is-active"),$("body").addClass("is-fixed-header-search-opened"),this.element.find(".js-autocomplete-control").focus()})},a.component.FixedHeaderSearch.prototype.close=function(t){t.preventDefault(),this.element.removeClass("is-active"),$("body").removeClass("is-fixed-header-search-opened"),this.hideBackdrop()},a.component.FixedHeaderSearch.prototype.toggle=function(t){this.element.hasClass("is-active")?this.close(t):this.open(t)},a.component.FixedHeaderSearch.prototype.createBackdrop=function(){this.$headerBackdrop=$("<div>"),this.$headerBackdrop.addClass("Backdrop FixedHeaderSearchBackdrop FixedHeaderSearchBackdrop--header").addClass("Backdrop--animate"),this.$mainBackdrop=$("<div>"),this.$mainBackdrop.addClass("Backdrop FixedHeaderSearchBackdrop FixedHeaderSearchBackdrop--main").addClass("Backdrop--animate")},a.component.FixedHeaderSearch.prototype.showBackdrop=function(t){if(!this.$mainBackdrop){t();return}this.$headerBackdrop.appendTo($(this.settings.get("global.headerSelector"))),this.$mainBackdrop.appendTo(document.body),setTimeout(()=>{this.$headerBackdrop.addClass("is-active"),this.$mainBackdrop.addClass("is-active"),t()},this.backdropDelay)},a.component.FixedHeaderSearch.prototype.hideBackdrop=function(){this.$mainBackdrop&&(this.$headerBackdrop.removeClass("is-active"),this.$mainBackdrop.removeClass("is-active"),setTimeout(()=>{this.$headerBackdrop.remove(),this.$mainBackdrop.remove()},ir))};var a=a||{};a.component=a.component||{},a.component.Carousel=function(s){z.Component.call(this,s)}
110,ke(a.component.Carousel,z.Component),a.component.Carousel.prototype.prepare=function(){Bn(this.element,()=>{this.getWrapper()&&(this.hydrateArrowsTemplate(),this.getArrows(),this.getPaginationContainer(),this.isLoop=this.getLoop(),this.isResetOnLeave=this.getResetOnLeave(),this.buildPagination(),this.updateArrows(),this.isScrollingPosible(),this.activeClass="is-active",this.visibleClass="is-visible",this._scrollRafId=0,this._resizeRafId=0,this.isScrolling=!1,this._scrollEndCallbacks=[],this._onPrevClick=this.prevClickEvent.bind(this),this._onNextClick=this.nextClickEvent.bind(this),this._onWrapperScroll=this.handleWrapperScroll.bind(this),this._onWrapperScrollEnd=this.handleWrapperScrollEnd.bind(this),this._onMouseLeave=this.handleMouseLeave.bind(this),this._onWindowResize||(this._onWindowResize=Zr(250,()=>{this._resizeRafId&&cancelAnimationFrame(this._resizeRafId),this._resizeRafId=requestAnimationFrame(()=>{this._resizeRafId=0,this.updateArrows(),this.isScrollingPosible(),this.buildPagination(),this.syncPaginationToScroll(),this.syncVisibleItems()})})),this.$prevArrow&&this.$prevArrow.length&&this.$prevArrow.off("click").on("click",this._onPrevClick),this.$nextArrow&&this.$nextArrow.length&&this.$nextArrow.off("click").on("click",this._onNextClick),this.$wrapper&&this.$wrapper.length&&(this.$wrapper.off("scroll").on("scroll",this._onWrapperScroll),this.$wrapper.off("scrollend").on("scrollend",this._onWrapperScrollEnd)),this.isResetOnLeave&&(this.$resetOnLeaveTarget=this.getResetOnLeaveTarget(),this.$resetOnLeaveTarget.off("mouseleave",this._onMouseLeave).on("mouseleave",this._onMouseLeave)),$(window).off("resize",this._onWindowResize).on("resize",this._onWindowResize),this.element.addClass("carousel-initialized"),this.scrollToActiveItem(),this.syncPaginationToScroll(),this.syncVisibleItems())})},a.component.Carousel.prototype.getLoop=function(){return"carouselLoop"in this.elementNode.dataset},a.component.Carousel.prototype.getResetOnLeave=function(){return"carouselResetOnLeave"in this.elementNode.dataset},a.component.Carousel.prototype.getResetOnLeaveTarget=function(){const t=this.elementNode.dataset.carouselResetOnLeaveTarget;if(t){const s=this.element.closest(t);if(s.length)return s}return this.element},a.component.Carousel.prototype.handleMouseLeave=function(){this.scrollToStart(!1)},a.component.Carousel.prototype.getWrapper=function(){return this.$wrapper=this.element.find("[data-carousel-wrapper]"),this.$wrapper.length?!0:(console.warn("missing wrapper"),!1)},a.component.Carousel.prototype.getArrows=function(){this.$prevArrow=this.element.find('[data-carousel-arrow="prev"]'),this.$nextArrow=this.element.find('[data-carousel-arrow="next"]'),this.$prevArrow.length||(this.$prevArrow=null),this.$nextArrow.length||(this.$nextArrow=null)},a.component.Carousel.prototype.getPaginationContainer=function(){this.$pagination=this.element.find("[data-carousel-pagination]"),(!this.$pagination||!this.$pagination.length)&&(this.$pagination=null)},a.component.Carousel.prototype.hydrateArrowsTemplate=function(){const t=this.elementNode.dataset.carouselArrowsTemplate;if(!t)return;const s=this.elementNode.querySelector(".Carousel-content");if(!s||s.querySelector(".Carousel-arrow"))return;const e=document.querySelector('template[data-template="'+t+'"]');if(!e){console.warn("Carousel: missing shared template for arrows",t);return}s.insertBefore(e.content.cloneNode(!0),s.querySelector(":scope > [data-carousel-pagination]"))},a.component.Carousel.prototype.dehydrateArrowsTemplate=function(){if(!this.elementNode.dataset.carouselArrowsTemplate)return;const t=this.elementNode.querySelector(".Carousel-content");t&&t.querySelectorAll(".Carousel-arrow").forEach(function(s){s.remove()})},a.component.Carousel.prototype.destroy=function(){this._scrollRafId&&(cancelAnimationFrame(this._scrollRafId),this._scrollRafId=0),this._resizeRafId&&(cancelAnimationFrame(this._resizeRafId),this._resizeRafId=0),this.$prevArrow&&this.$prevArrow.length&&this.$prevArrow.off("click",this._onPrevClick),this.$nextArrow&&this.$nextArrow.length&&this.$nextArrow.off("click",this._onNextClick),this.$wrapper&&this.$wrapper.length&&(this.$wrapper.off("scroll",this._onWrapperScroll),this.$wrapper.off("scrollend",this._onWrapperScrollEnd)),this._scrollEndCallbacks=[],this.$resetOnLeaveTarget&&this.$resetOnLeaveTarget.length&&this.$resetOnLeaveTarget.off("mouseleave",this._onMouseLeave),this._onWindowResize&&$(window).off("resize",this._onWindowResize),this.dehydrateArrowsTemplate()},a.component.Carousel.prototype.prevClickEvent=function(t){t.preventDefault(),this.scroll(!0)},a.component.Carousel.prototype.nextClickEvent=function(t){t.preventDefault(),this.scroll()},a.component.Carousel.prototype.handleWrapperScroll=function(t){this.isScrolling=!0,!this._scrollRafId&&(this._scrollRafId=requestAnimationFrame(()=>{this._scrollRafId=0,this.updateArrows(),this.syncPaginationToScroll(),this.syncVisibleItems()}))},a.component.Carousel.prototype.handleWrapperScrollEnd=function(t){this.isScrolling=!1;const s=this._scrollEndCallbacks;this._scrollEndCallbacks=[];for(const e of s)e()},a.component.Carousel.prototype.onScrollEnd=function(t){if(!this.isScrolling){t();return}this._scrollEndCallbacks.push(t)},a.component.Carousel.prototype.updateArrows=function(){if(this.isLoop||!this.$prevArrow&&!this.$nextArrow)return;const t=this.$prevArrow&&this.$prevArrow.length,s=this.$nextArrow&&this.$nextArrow.length;if(!t&&!s)return;const e=this.$wrapper&&this.$wrapper.get(0);if(!e)return;const c=e.scrollLeft,u=this.getCarouselWidth(),d=this.getCarouselScrollWidth();if(t&&this.$prevArrow.prop("disabled",c<=0),s){const S=c+u+1>=d;this.$nextArrow.prop("disabled",S)}},a.component.Carousel.prototype.isScrollingPosible=function(){if(!this.$wrapper||!this.$wrapper.length)return;const t=this.getCarouselWidth(),s=this.getCarouselScrollWidth();this.element.toggleClass("withoutScroll",t>=s)},a.component.Carousel.prototype.getCarouselWidth=function(){return!this.$wrapper||!this.$wrapper.length?0:this.$wrapper.get(0).clientWidth},a.component.Carousel.prototype.getCarouselScrollWidth=function(){return!this.$wrapper||!this.$wrapper.length?0:this.$wrapper.get(0).scrollWidth},a.component.Carousel.prototype.isAtStart=function(){const t=this.$wrapper&&this.$wrapper.get(0);return t?t.scrollLeft<=1:!0},a.component.Carousel.prototype.isAtEnd=function(){const t=this.$wrapper&&this.$wrapper.get(0);return t?t.scrollLeft+t.clientWidth>=t.scrollWidth-1:!0},a.component.Carousel.prototype.scroll=function(t=!1){if(!this.$wrapper||!this.$wrapper.length)return;
110if(this.isLoop){if(t&&this.isAtStart()){this.scrollToEnd();return}if(!t&&this.isAtEnd()){this.scrollToStart();return}}const s=this.$wrapper.get(0),e=this.$wrapper.children();if(!e.length)return;const c=s.scrollLeft,u=s.clientWidth;let d=c;if(t){for(let S=e.length-1;S>=0;S--){const I=e.get(S);if(I.offsetLeft<c-1){d=I.offsetLeft+I.offsetWidth-u;break}}d=Math.max(0,d)}else{for(let S=0;S<e.length;S++){const I=e.get(S);if(I.offsetLeft+I.offsetWidth>c+u+1){d=I.offsetLeft;break}}d=Math.min(d,s.scrollWidth-u)}s.scrollTo({left:d,behavior:"smooth"})},a.component.Carousel.prototype.scrollToItem=function(t,s=!0){!this.$wrapper||!this.$wrapper.length||!t||this.$wrapper.get(0).scrollTo({left:t.offsetLeft,behavior:s?"smooth":"instant"})},a.component.Carousel.prototype.scrollToIndex=function(t,s=!0){if(!this.$wrapper||!this.$wrapper.length)return;const c=this.$wrapper.children().get(t);c&&this.scrollToItem(c,s)},a.component.Carousel.prototype.scrollToStart=function(t=!0){if(!this.$wrapper||!this.$wrapper.length)return;const s=this.$wrapper.get(0);if(!t){this.onScrollEnd(()=>{this.element.addClass("stop-animation"),s.scrollLeft=0,requestAnimationFrame(()=>{this.element.removeClass("stop-animation")})});return}s.scrollTo({left:0,behavior:"smooth"})},a.component.Carousel.prototype.scrollToEnd=function(){if(!this.$wrapper||!this.$wrapper.length)return;const t=this.$wrapper.get(0),s=t.scrollWidth-t.clientWidth;t.scrollTo({left:Math.max(0,s),behavior:"smooth"})},a.component.Carousel.prototype.computeScrollAmount=function(t=!1){if(!this.$wrapper||!this.$wrapper.length)return 0;const s=this.$wrapper.get(0).clientWidth;let c=Math.min(s,200);return t&&(c=-c),c},a.component.Carousel.prototype.scrollToActiveItem=function(){if(!this.$wrapper||!this.$wrapper.length)return;const t=this.$wrapper.find(`.${this.activeClass}`);if(t.length){const s=t[0];this.isItemVisible(s)||this.scrollToItem(s,!1)}},a.component.Carousel.prototype.isItemVisible=function(t){if(!this.$wrapper||!this.$wrapper.length||!t)return!0;const s=this.$wrapper.get(0).getBoundingClientRect(),e=t.getBoundingClientRect();return e.left>=s.left&&e.right<=s.right},a.component.Carousel.prototype.buildPagination=function(){if(!this.$pagination||!this.$wrapper||!this.$wrapper.length)return;const t=this.$wrapper.children();if(this.$pagination.empty(),t.length<=1){this.$pagination.addClass("is-disabled");return}this.$pagination.removeClass("is-disabled");for(let s=0;s<t.length;s++){const e=$("<button/>",{type:"button","data-carousel-marker":s,"aria-label":`Go to item ${s+1}`,"aria-current":"false"});e.on("click",c=>{c.preventDefault(),this.scrollToIndex(s,!0)}),this.$pagination.append(e)}},a.component.Carousel.prototype.syncVisibleItems=function(){if(!this.$wrapper||!this.$wrapper.length)return;const t=this.$wrapper.get(0),s=this.$wrapper.children();if(!s.length||t.clientWidth<=0)return;const e=t.scrollLeft,c=e+t.clientWidth;for(let u=0;u<s.length;u++){const d=s.get(u),S=d.offsetLeft,Z=S+d.offsetWidth>e&&S<c;d.classList.toggle(this.visibleClass,Z)}},a.component.Carousel.prototype.syncPaginationToScroll=function(){if(!this.$pagination||!this.$wrapper||!this.$wrapper.length)return;const t=this.$wrapper.get(0),s=this.$wrapper.children();if(!s.length||t.clientWidth<=0)return;const e=t.scrollLeft+t.clientWidth/2;let c=0,u=1/0;for(let d=0;d<s.length;d++){const S=s.get(d),I=S.offsetLeft+S.offsetWidth/2,Z=Math.abs(I-e);Z<u&&(u=Z,c=d)}this.setActiveMarker(c)},a.component.Carousel.prototype.setActiveMarker=function(t){if(!this.$pagination)return;const s=this.$pagination.find("[data-carousel-marker]");if(!s.length)return;const e=s.length-1,c=Math.max(0,Math.min(t,e));if(s.removeClass(this.activeClass).attr("aria-current","false"),s.filter(`[data-carousel-marker="${c}"]`).addClass(this.activeClass).attr("aria-current","true"),this.$wrapper&&this.$wrapper.length){const u=this.$wrapper.children();u.removeClass(this.activeClass),u.eq(c).addClass(this.activeClass)}};var a=a||{};a.component=a.component||{},a.component.ProductCardGalleryHydrate=function(s){z.Component.call(this,s)}
110,ke(a.component.ProductCardGalleryHydrate,z.Component),a.component.ProductCardGalleryHydrate.prototype.prepare=function(){if(this.hydrated=!1,this.carousel=this.elementNode.querySelector(".Carousel"),this.wrapper=this.carousel?this.carousel.querySelector("[data-carousel-wrapper]"):null,!this.carousel||!this.wrapper)return;const t=this.carousel.dataset.carouselResetOnLeaveTarget;this.triggerTarget=t&&this.elementNode.closest(t)||this.elementNode,this.handleHydrate=this.hydrate.bind(this),this.bindTriggers(),"IntersectionObserver"in window&&(this.observer=new IntersectionObserver(this.handleVisibility.bind(this)),this.observer.observe(this.elementNode))},a.component.ProductCardGalleryHydrate.prototype.bindTriggers=function(){this.triggerTarget.addEventListener("mouseenter",this.handleHydrate),this.triggerTarget.addEventListener("focusin",this.handleHydrate),this.triggerTarget.addEventListener("touchmove",this.handleHydrate,{passive:!0})},a.component.ProductCardGalleryHydrate.prototype.unbindTriggers=function(){this.triggerTarget.removeEventListener("mouseenter",this.handleHydrate),this.triggerTarget.removeEventListener("focusin",this.handleHydrate),this.triggerTarget.removeEventListener("touchmove",this.handleHydrate)},a.component.ProductCardGalleryHydrate.prototype.handleVisibility=function(t){!t.some(function(e){return e.isIntersecting})&&this.hydrated&&this.dehydrate()},a.component.ProductCardGalleryHydrate.prototype.hydrate=function(){if(this.hydrated)return;this.hydrated=!0,this.unbindTriggers();let t;try{t=JSON.parse(this.wrapper.dataset.gallery||"[]")}catch(d){console.warn("ProductCardGalleryHydrate: invalid data-gallery JSON",d);return}if(!Array.isArray(t)||!t.length)return;const s=this.wrapper.dataset.galleryItemTemplate,e=s?document.querySelector('template[data-template="'+s+'"]'):null;if(!e){console.warn("ProductCardGalleryHydrate: missing shared template for gallery item",s);return}const c=this.wrapper,u=c.querySelector(".is-shallow");t.forEach(function(d,S){let I,Z;if(S===0&&u){if(I=u,Z=e.content.cloneNode(!0).querySelector("img"),!Z)return;I.appendChild(Z),I.classList.remove("is-shallow")}else{if(I=e.content.cloneNode(!0).querySelector("li"),!I||(Z=I.querySelector("img"),!Z))return;c.appendChild(I)}Z.src=d.src,Z.alt=d.alt}),this.carousel.setAttribute("data-component","Carousel"),this.application.loadComponents(this.elementNode)},a.component.ProductCardGalleryHydrate.prototype.dehydrate=function(){if(!this.hydrated)return;this.hydrated=!1;const t=$(this.carousel),s=t.data("componentInstance");s&&vo(s.destroy)&&s.destroy(),t.removeData("componentInstance"),this.carousel.removeAttribute("data-component"),this.carousel.classList.remove("carousel-initialized");const e=this.wrapper.children;for(let u=e.length-1;u>=2;u--)e[u].remove();const c=e[1];if(c){const u=c.querySelector("img");u&&u.remove(),c.classList.add("is-shallow")}this.wrapper.style.scrollBehavior="auto",this.wrapper.scrollLeft=0,this.wrapper.style.scrollBehavior="",this.bindTriggers()},a.component.ProductCardGalleryHydrate.prototype.destroy=function(){!this.hydrated&&this.triggerTarget&&this.unbindTriggers(),this.observer&&this.observer.disconnect()};var a=a||{};a.component=a.component||{},a.component.FormInputAjaxAfterChange=function(s,e){z.Component.call(this,s),this.dependencies={toast:e.get("toast")}},ke(a.component.FormInputAjaxAfterChange,z.Component),a.component.FormInputAjaxAfterChange.prototype.prepare=function(){if(this.getHtmlData(),!this.requestUrl){console.warn("Missing requestUrl");return}if(!this.$form.length){console.warn("Missing $form element");return}this.element.on("change",this.handleChangeEvent.bind(this)),this.element.on("ui.customSelect.change",this.handleChangeEvent.bind(this))},a.component.FormInputAjaxAfterChange.prototype.destroy=function(){},a.component.FormInputAjaxAfterChange.prototype.handleChangeEvent=function(t){t.preventDefault(),this.makeRequest(new FormData(this.$form.get(0)))},a.component.FormInputAjaxAfterChange.prototype.makeRequest=function(t){if(this.isBusy())return;const s=this.createRequest().setUrl(this.requestUrl).setMethod("post").addData(Object.fromEntries(t)).setSaveHistory(!1).addSuccessCallback(this.handleRequestSuccess.bind(this)).addErrorCallback(this.handleRequestError.bind(this));this.setBusy(!0),s.send()},a.component.FormInputAjaxAfterChange.prototype.getHtmlData=function(){this.requestUrl=this.element.attr("data-form-input-ajax-after-change-url"),this.$form=this.element.closest("form")},a.component.FormInputAjaxAfterChange.prototype.handleRequestSuccess=function(t){this.setBusy(!1)},a.component.FormInputAjaxAfterChange.prototype.handleRequestError=function(t){this.setBusy(!1),this.dependencies.toast.show("Chyba","error")};var a=a||{};a.component=a.component||{},a.component.PageNavigationSideSubNavigation=function(s){z.Component.call(this,s)}
110,ke(a.component.PageNavigationSideSubNavigation,z.Component),a.component.PageNavigationSideSubNavigation.prototype.prepare=function(){this.isOpen=!1,this.isAnimating=!1,this.activeClass="is-open",Bn(this.element,()=>{this.hoverTimeout=null,this.timeOut=ir,this.trigger=this.element.children("a"),this.$backdrop=null,this.backdropDelay=50,this.createBackdrop(),this.$ul=this.element.find("[data-page-navigation-side-sub-navigation-list]")||null,this.$toggle=this.element.find("[data-page-navigation-toggle]"),this.element.hover(this.handleHoverInEvent.bind(this),this.handleHoverOutEvent.bind(this)),this.element.on("ui.PageNavigationSideSubNavigation.close",this.handleExternalClose.bind(this)),this.$toggle.on("click",this.handleToggleClick.bind(this)),this.element.on("keydown",this.handleKeydown.bind(this)),$(document).on("focusin.pageNavigationSideSubNavigation",this.handleFocusIn.bind(this))})},a.component.PageNavigationSideSubNavigation.prototype.handleToggleClick=function(){this.isOpen?this.close():this.open(!0)},a.component.PageNavigationSideSubNavigation.prototype.handleKeydown=function(t){t.key!=="Escape"||!this.isOpen||(this.close(),this.$toggle.trigger("focus"))},a.component.PageNavigationSideSubNavigation.prototype.handleFocusIn=function(t){if(!this.isOpen)return;const s=this.element.get(0);s!==t.target&&!$.contains(s,t.target)&&this.close()},a.component.PageNavigationSideSubNavigation.prototype.destroy=function(){$(document).off("focusin.pageNavigationSideSubNavigation")},a.component.PageNavigationSideSubNavigation.prototype.handleHoverInEvent=function(){clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(()=>{this.open()},this.timeOut)},a.component.PageNavigationSideSubNavigation.prototype.handleHoverOutEvent=function(){clearTimeout(this.hoverTimeout)},a.component.PageNavigationSideSubNavigation.prototype.handleBackdropHoverInEvent=function(){clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(()=>{this.close()},this.timeOut)},a.component.PageNavigationSideSubNavigation.prototype.handleBackdropHoverOutEvent=function(){clearTimeout(this.hoverTimeout)},a.component.PageNavigationSideSubNavigation.prototype.handleExternalClose=function(t,s){s.target!==this.element.get(0)&&this.close()},a.component.PageNavigationSideSubNavigation.prototype.open=function(t){this.isAnimating||(this.isAnimating=!0,this.showBackdrop(()=>{if(this.isOpen=!0,this.element.addClass(this.activeClass),this.$toggle.attr("aria-expanded","true"),this.isAnimating=!1,t){let s=this.$ul.find("a[href], button:not([disabled])").filter(":visible").first();s.length&&s.trigger("focus")}}))},a.component.PageNavigationSideSubNavigation.prototype.close=function(){this.isAnimating||(this.isAnimating=!0,this.isOpen=!1,this.element.removeClass(this.activeClass),this.$toggle.attr("aria-expanded","false"),this.hideBackdrop(()=>{this.isAnimating=!1}))},a.component.PageNavigationSideSubNavigation.prototype.createBackdrop=function(){this.$backdrop=$("<div>"),this.$backdrop.addClass("Backdrop PageNavigationSideSubNavigation-backdrop").addClass("Backdrop--animate")},a.component.PageNavigationSideSubNavigation.prototype.showBackdrop=function(t){if(!this.$backdrop){t();return}this.$backdrop.appendTo(document.body),this.$backdrop.on("click",this.close.bind(this)),this.$backdrop.on("mouseenter",this.handleBackdropHoverInEvent.bind(this)),this.$backdrop.on("mouseleave",this.handleBackdropHoverOutEvent.bind(this)),setTimeout(()=>{this.$backdrop.addClass("is-active"),t()},this.backdropDelay)},a.component.PageNavigationSideSubNavigation.prototype.hideBackdrop=function(t){this.$backdrop&&(this.$backdrop.off("click"),this.$backdrop.off("mouseenter"),this.$backdrop.off("mouseleave"),this.$backdrop.removeClass("is-active"),setTimeout(()=>{t(),this.$backdrop.remove()},100))};var a=a||{};a.component=a.component||{},a.component.transportBranchPickers=a.component.transportBranchPickers||{},a.component.transportBranchPickers.PickerModal=function(s){z.Component.call(this,s)}
110,ke(a.component.transportBranchPickers.PickerModal,z.Component),a.component.transportBranchPickers.PickerModal.prototype.getPickerModal=function(){return this.element.closest('[data-component="Modal"]')},a.component.transportBranchPickers.PickerModal.prototype.getModalClosedEvent=function(){return"ui.modal.closed."+this.pickerNamespace},a.component.transportBranchPickers.PickerModal.prototype.requestSelection=function(t,s){this.onBranchSelected=t,this.onBranchDismissed=s;const e=this.getPickerModal();e.length&&(this.$pickerModal=e,e.off(this.getModalClosedEvent()),e.on(this.getModalClosedEvent(),this.handleModalClosed.bind(this)),e.trigger("ui.modal.open"))},a.component.transportBranchPickers.PickerModal.prototype.handleModalClosed=function(){const t=this.onBranchDismissed;this.onBranchSelected=null,this.onBranchDismissed=null,t&&t()},a.component.transportBranchPickers.PickerModal.prototype.releasePickerModal=function(){this.$pickerModal&&(this.$pickerModal.off(this.getModalClosedEvent()),this.$pickerModal=null)};var a=a||{};a.component=a.component||{},a.component.transportBranchPickers=a.component.transportBranchPickers||{},a.component.transportBranchPickers.BalikovnaWidget=function(s){z.Component.call(this,s)}
110,ke(a.component.transportBranchPickers.BalikovnaWidget,a.component.transportBranchPickers.PickerModal),a.component.transportBranchPickers.BalikovnaWidget.prototype.pickerNamespace="balikovna",a.component.transportBranchPickers.BalikovnaWidget.prototype.prepare=function(){this.initialized=!1,this.balikovnaIframeUrl="https://b2c.cpost.cz/locations/?type=BALIKOVNY",this.messageEvent=this.handleMessage.bind(this),Bn(this.element,this.init.bind(this))},a.component.transportBranchPickers.BalikovnaWidget.prototype.destroy=function(){this.releasePickerModal(),this.initialized&&this.removeEvents()},a.component.transportBranchPickers.BalikovnaWidget.prototype.init=function(){this.initialized||(this.initialized=!0,this.createIframe(),this.addEvents())},a.component.transportBranchPickers.BalikovnaWidget.prototype.handleMessage=function(t){var c;if(t.origin!=="https://b2c.cpost.cz")return;const s=((c=t==null?void 0:t.data)==null?void 0:c.point)||"";if(!s){console.warn("Missing point data");return}const e=this.onBranchSelected;this.onBranchSelected=null,this.onBranchDismissed=null,this.element.trigger("ui.modal.close"),e&&e({type:"balikovna",branchId:null,external:s})},a.component.transportBranchPickers.BalikovnaWidget.prototype.addEvents=function(){window.addEventListener("message",this.messageEvent,!0)},a.component.transportBranchPickers.BalikovnaWidget.prototype.removeEvents=function(){window.removeEventListener("message",this.messageEvent,!0)},a.component.transportBranchPickers.BalikovnaWidget.prototype.createIframe=function(){const t=document.createElement("iframe");t.src=this.balikovnaIframeUrl,t.allow="geolocation",this.element.append(t)};var a=a||{};a.component=a.component||{},a.component.transportBranchPickers=a.component.transportBranchPickers||{},a.component.transportBranchPickers.BranchSelect=function(s,e){z.Component.call(this,s),this.dependencies={component:e.get("component")},this.debouncedChangeEvent=Ar(350,(function(c){this.handleSearch(this.$control.val())}).bind(this))},ke(a.component.transportBranchPickers.BranchSelect,a.component.transportBranchPickers.PickerModal),a.component.transportBranchPickers.BranchSelect.prototype.pickerNamespace="branchSelect",a.component.transportBranchPickers.BranchSelect.prototype.prepare=function(){this.url=this.getApplication().resolveUrl(this.element.attr("data-branch-select-action")),this.$control=this.element.find("[data-branch-select-control]"),this.$list=this.element.find("[data-branch-select-list]"),this.$reset=this.element.find("[data-branch-select-reset]"),this.noResultAlert=this.element.find("[data-branch-select-results-alert]"),this.countAlert=this.element.find("[data-branch-select-count-alert]"),this.keydownHandle=(function(t){(t.keyCode===10||t.keyCode===13)&&t.preventDefault()}).bind(this),this.$reset.on("click",this.handleReset.bind(this)),this.$control.on("keydown",this.keydownHandle.bind(this)),this.$control.on("input",this.handleControl.bind(this)),this.element.on("click","[data-branch-select-option]",this.handleOptionClick.bind(this))},a.component.transportBranchPickers.BranchSelect.prototype.destroy=function(){this.releasePickerModal()},a.component.transportBranchPickers.BranchSelect.prototype.getModal=function(){const t=this.dependencies.component.get(this.element.parents("[data-component='Modal']").first());return t?t.element:$()},a.component.transportBranchPickers.BranchSelect.prototype.getPickerModal=function(){return this.getModal()},a.component.transportBranchPickers.BranchSelect.prototype.close=function(){const t=this.getModal();t.length&&t.trigger("ui.modal.close")},a.component.transportBranchPickers.BranchSelect.prototype.handleReset=function(){this.$control.focus(),this.handleSearch(""),this.$reset.hide()},a.component.transportBranchPickers.BranchSelect.prototype.handleSearch=function(t){const s={};s[this.$control.attr("name")]=t,this.setBusy(!0),this.createRequest().setUrl(this.url).addData(s).setMethod("GET").setSaveHistory(!1).addSuccessCallback(this.listOptions.bind(this)).addFinalCallback((function(){this.setBusy(!1)}).bind(this)).send()},a.component.transportBranchPickers.BranchSelect.prototype.handleControl=function(){this.debouncedChangeEvent(),this.$control.val()?this.$reset.show():this.$reset.hide()},a.component.transportBranchPickers.BranchSelect.prototype.listOptions=function(t){if(this.setBusy(!1),this.$list.empty(),t.length){const s=t.map(function(e){return $("<li>").append($("<button>",{type:"button","data-branch-select-option":e.branch_id}).text(e.name))});this.$list.append(s),this.noResultAlert.hide(),this.countAlert.hide()}else this.$control.val().length?(this.countAlert.hide(),this.noResultAlert.show()):(this.countAlert.show(),this.noResultAlert.hide())},a.component.transportBranchPickers.BranchSelect.prototype.handleOptionClick=function(t){if(this.isBusy())return;const s=$(t.currentTarget),e=Number(s.attr("data-branch-select-option"));if(!Number.isInteger(e)||e<=0){console.warn("BranchSelect: Option has an invali
110d branch id: "+s.attr("data-branch-select-option"));return}const c=this.onBranchSelected;this.onBranchSelected=null,this.onBranchDismissed=null,this.close(),c&&c({type:"internal",branchId:e,external:null})};var a=a||{};a.component=a.component||{},a.component.transportBranchPickers=a.component.transportBranchPickers||{},a.component.transportBranchPickers.DpdPickupWidget=function(s){z.Component.call(this,s)},ke(a.component.transportBranchPickers.DpdPickupWidget,a.component.transportBranchPickers.PickerModal),a.component.transportBranchPickers.DpdPickupWidget.prototype.pickerNamespace="dpdPickup",a.component.transportBranchPickers.DpdPickupWidget.prototype.prepare=function(){this.initialized=!1,this.dpdIframeUrl=this.getUrl(),this.messageEvent=this.handleMessage.bind(this),Bn(this.element,this.init.bind(this))},a.component.transportBranchPickers.DpdPickupWidget.prototype.destroy=function(){this.releasePickerModal(),this.initialized&&this.removeEvents()},a.component.transportBranchPickers.DpdPickupWidget.prototype.init=function(){if(!this.initialized){if(!this.dpdIframeUrl){console.warn("Missing url data");return}this.initialized=!0,this.createIframe(),this.addEvents()}},a.component.transportBranchPickers.DpdPickupWidget.prototype.handleMessage=function(t){var c;if(t.origin!=="https://api.dpd.cz")return;const s=((c=t==null?void 0:t.data)==null?void 0:c.dpdWidget)||"";if(!s){console.warn("Missing dpdWidget data");return}const e=this.onBranchSelected;this.onBranchSelected=null,this.onBranchDismissed=null,this.element.trigger("ui.modal.close"),e&&e({type:"dpdPickup",branchId:null,external:s})},a.component.transportBranchPickers.DpdPickupWidget.prototype.addEvents=function(){window.addEventListener("message",this.messageEvent,!0)},a.component.transportBranchPickers.DpdPickupWidget.prototype.removeEvents=function(){window.removeEventListener("message",this.messageEvent,!0)},a.component.transportBranchPickers.DpdPickupWidget.prototype.createIframe=function(){const t=document.createElement("iframe");t.src=this.dpdIframeUrl,t.allow="geolocation",this.element.append(t)},a.component.transportBranchPickers.DpdPickupWidget.prototype.getUrl=function(){return this.element.get(0).dataset.dpdPickupWidgetUrl||""};var a=a||{};a.component=a.component||{},a.component.transportBranchPickers=a.component.transportBranchPickers||{},a.component.transportBranchPickers.GlsParcelShopWidget=function(s){z.Component.call(this,s)}
110,ke(a.component.transportBranchPickers.GlsParcelShopWidget,z.Component),a.component.transportBranchPickers.GlsParcelShopWidget.prototype.prepare=function(){this.handleCallbackBound=this.handleCallback.bind(this),window.addEventListener("message",this.handleCallbackBound),this.element.on("ui.glsParcelShop.close",this.close.bind(this))},a.component.transportBranchPickers.GlsParcelShopWidget.prototype.destroy=function(){this.element.off("ui.glsParcelShop.close"),window.removeEventListener("message",this.handleCallbackBound)},a.component.transportBranchPickers.GlsParcelShopWidget.prototype.requestSelection=function(t,s){this.onBranchSelected=t,this.open()},a.component.transportBranchPickers.GlsParcelShopWidget.prototype.open=function(){this.init(()=>{var t;return(t=window.findGlsPs)==null?void 0:t.call(window)})},a.component.transportBranchPickers.GlsParcelShopWidget.prototype.close=function(){console.info("close method not implemented")},a.component.transportBranchPickers.GlsParcelShopWidget.prototype.init=function(t){if(typeof findGlsPs<"u"){t();return}$.getScript(this.getWidgetUrl(),t)},a.component.transportBranchPickers.GlsParcelShopWidget.prototype.handleCallback=function(t){var c;const s=t.data||{};if(s.event_id!=="ps_data_handover")return;if(!((c=s.parcelshop)!=null&&c.detail)){console.warn("Unsupported event or missing parcelshop data",s);return}const e=this.onBranchSelected;this.onBranchSelected=null,e&&e({type:"glsParcelShop",branchId:null,external:s.parcelshop.detail})},a.component.transportBranchPickers.GlsParcelShopWidget.prototype.getWidgetUrl=function(){return this.elementNode.dataset.glsParcelShopWidgetUrl||"https://ps-maps.gls-czech.com/widget/gls_psd_widget.js?v=27"};var a=a||{};a.component=a.component||{},a.component.transportBranchPickers=a.component.transportBranchPickers||{},a.component.transportBranchPickers.OneDeliveryWidget=function(s){z.Component.call(this,s)}
110,ke(a.component.transportBranchPickers.OneDeliveryWidget,a.component.transportBranchPickers.PickerModal),a.component.transportBranchPickers.OneDeliveryWidget.prototype.pickerNamespace="oneDelivery",a.component.transportBranchPickers.OneDeliveryWidget.prototype.prepare=function(){this.initialized=!1,this.iframeUrl="https://widget.wedo.cz/v5/widget-content?selectMode=postMessage",this.pointType=this.getPointType(),this.hiddenPoints=this.getHiddenPoints(),this.hiddenBoxes=this.getHiddenBoxes(),this.supportedCountries=this.getSupportedCountries(),this.messageEvent=this.handleMessage.bind(this),Bn(this.element,this.init.bind(this))},a.component.transportBranchPickers.OneDeliveryWidget.prototype.destroy=function(){this.releasePickerModal(),this.initialized&&this.removeEvents()},a.component.transportBranchPickers.OneDeliveryWidget.prototype.init=function(){this.initialized||(this.initialized=!0,this.createIframe(),this.addEvents())},a.component.transportBranchPickers.OneDeliveryWidget.prototype.handleMessage=function(t){const s=(t==null?void 0:t.data)||"";if(!s){console.warn("Missing point data");return}const e=this.onBranchSelected;this.onBranchSelected=null,this.onBranchDismissed=null,this.element.trigger("ui.modal.close"),e&&e({type:"oneDelivery",branchId:null,external:s})},a.component.transportBranchPickers.OneDeliveryWidget.prototype.addEvents=function(){window.addEventListener("message",this.messageEvent,!0)},a.component.transportBranchPickers.OneDeliveryWidget.prototype.removeEvents=function(){window.removeEventListener("message",this.messageEvent,!0)},a.component.transportBranchPickers.OneDeliveryWidget.prototype.createIframe=function(){var u,d;const t=document.createElement("iframe");let s=null;this.pointType==="box"?s="Box":this.pointType==="point"&&(s="Point");const e=this.supportedCountries,c={fixedType:s,disablePointType:(u=this.hiddenPoints)==null?void 0:u.join(","),disableBoxType:(d=this.hiddenBoxes)==null?void 0:d.join(","),country:e.length===1?e[0]:null};t.allow="geolocation",t.autofocus=!0,t.src=Jo(this.iframeUrl,c),this.element.append(t)},a.component.transportBranchPickers.OneDeliveryWidget.prototype.getPointType=function(){return this.elementNode.dataset.oneDeliveryWidgetPointType||""},a.component.transportBranchPickers.OneDeliveryWidget.prototype.getHiddenPoints=function(){var t;return(t=this.elementNode.dataset.oneDeliveryWidgetHiddenPoints)==null?void 0:t.split(",")},a.component.transportBranchPickers.OneDeliveryWidget.prototype.getHiddenBoxes=function(){var t;return(t=this.elementNode.dataset.oneDeliveryWidgetHiddenBoxes)==null?void 0:t.split(",")},a.component.transportBranchPickers.OneDeliveryWidget.prototype.getSupportedCountries=function(){var t;return((t=this.elementNode.dataset.oneDeliveryWidgetSupportedCountries)==null?void 0:t.split(","))??[]};var a=a||{};a.component=a.component||{},a.component.transportBranchPickers=a.component.transportBranchPickers||{},a.component.transportBranchPickers.PplParcelShopWidget=function(s){z.Component.call(this,s)}
110,ke(a.component.transportBranchPickers.PplParcelShopWidget,a.component.transportBranchPickers.PickerModal),a.component.transportBranchPickers.PplParcelShopWidget.prototype.pickerNamespace="pplParcelShop",a.component.transportBranchPickers.PplParcelShopWidget.prototype.prepare=function(){this.initialized=!1,this.country=this.getCountry(),this.countries=this.getCountries(),this.hiddenPoints=this.getHiddenPoints(),this.$modal=this.getParentModal(),this.$modal.length||console.warn("Parent modal not found"),this.messageEvent=this.handleMessage.bind(this),this.openModalEvent=this.handleModalOpen.bind(this),this.$modal.on("ui.modal.opened",this.openModalEvent)},a.component.transportBranchPickers.PplParcelShopWidget.prototype.destroy=function(){this.releasePickerModal(),this.initialized&&this.removeEvents(),this.$modal.off("ui.modal.opened",this.openModalEvent)},a.component.transportBranchPickers.PplParcelShopWidget.prototype.init=function(){this.initialized||(this.initialized=!0,this.createWidget(),this.addEvents())},a.component.transportBranchPickers.PplParcelShopWidget.prototype.handleMessage=function(t){const s=(t==null?void 0:t.detail)||"";if(!s){console.warn("Missing point data");return}const e=this.onBranchSelected;this.onBranchSelected=null,this.onBranchDismissed=null,this.element.trigger("ui.modal.close"),e&&e({type:"pplParcelShop",branchId:null,external:s})},a.component.transportBranchPickers.PplParcelShopWidget.prototype.handleModalOpen=function(){this.setModalHeaderHeight(),this.init()},a.component.transportBranchPickers.PplParcelShopWidget.prototype.addEvents=function(){window.addEventListener("ppl-parcelshop-map",this.messageEvent,!0)},a.component.transportBranchPickers.PplParcelShopWidget.prototype.removeEvents=function(){window.removeEventListener("ppl-parcelshop-map",this.messageEvent,!0)},a.component.transportBranchPickers.PplParcelShopWidget.prototype.createWidget=function(){const t=document.createElement("div");t.id="ppl-parcelshop-map",this.country&&(t.dataset.country=this.country),this.countries&&(t.dataset.countries=this.countries),this.hiddenPoints&&(t.dataset.hiddenpoints=this.hiddenPoints),this.element.append(t),this.insertAssets()},a.component.transportBranchPickers.PplParcelShopWidget.prototype.insertAssets=function(){const t=document.createElement("link");t.rel="stylesheet",t.href="https://www.ppl.cz/sources/map/main.css";const s=document.createElement("script");s.src="https://www.ppl.cz/sources/map/main.js",document.head.appendChild(t),document.head.appendChild(s)},a.component.transportBranchPickers.PplParcelShopWidget.prototype.getCountry=function(){return this.element.get(0).dataset.pplParcelShopWidgetCountry||""},a.component.transportBranchPickers.PplParcelShopWidget.prototype.getCountries=function(){return this.element.get(0).dataset.pplParcelShopWidgetCountries||""},a.component.transportBranchPickers.PplParcelShopWidget.prototype.getHiddenPoints=function(){return this.element.get(0).dataset.pplParcelShopWidgetHiddenpoints||""},a.component.transportBranchPickers.PplParcelShopWidget.prototype.getParentModal=function(){return this.element.closest(".Modal")},a.component.transportBranchPickers.PplParcelShopWidget.prototype.setModalHeaderHeight=function(){const t=this.$modal.find(".Modal-header");if(t.length){const s=t.get(0).scrollHeight;this.$modal.get(0).style.setProperty("--modalHeaderHeight",`${s}px`)}};var a=a||{};a.component=a.component||{},a.component.transportBranchPickers=a.component.transportBranchPickers||{},a.component.transportBranchPickers.SpsBalikovoWidget=function(s){z.Component.call(this,s)}
110,ke(a.component.transportBranchPickers.SpsBalikovoWidget,z.Component),a.component.transportBranchPickers.SpsBalikovoWidget.prototype.prepare=function(){this.widgetUrl="https://balikomat.sps-sro.sk/widget/v1/widget/php/csv_to_google_map_location.php",this.fillBoxMachineBound=this.handleCallback.bind(this),window.FillBoxMachine3=this.fillBoxMachineBound,this.element.on("ui.spsBalikovo.close",this.close.bind(this))},a.component.transportBranchPickers.SpsBalikovoWidget.prototype.destroy=function(){this.close(),window.FillBoxMachine3===this.fillBoxMachineBound&&(window.FillBoxMachine3=null)},a.component.transportBranchPickers.SpsBalikovoWidget.prototype.requestSelection=function(t,s){this.onBranchSelected=t,this.open()},a.component.transportBranchPickers.SpsBalikovoWidget.prototype.open=function(){if(window.SPSwidget&&window.SPSwidget.initialized){window.SPSwidget.showMap();return}$.getScript(Jo(this.widgetUrl,this.getParams()))},a.component.transportBranchPickers.SpsBalikovoWidget.prototype.close=function(){const t=document.getElementById("balikovo.wrapper");t&&(t.style.display="none")},a.component.transportBranchPickers.SpsBalikovoWidget.prototype.getParams=function(){const t={},s=this.getCountries();s&&(t.country=s);const e=this.getPointTypes();e.indexOf("PS")!==-1&&(t.ps=1),e.indexOf("PT")!==-1&&(t.pt=1);const c=this.getCenter();c&&(t.center=c);const u=this.getFilters();return u.indexOf("cod")!==-1&&(t.cod=1),u.indexOf("dropoff")!==-1&&(t.dropOff=1),u.indexOf("requiredPhoneNumber")!==-1&&(t.requiredPhoneNumber=1),t},a.component.transportBranchPickers.SpsBalikovoWidget.prototype.handleCallback=function(t){if(!t){console.warn("Missing SPS Balikovo point data");return}const s=this.onBranchSelected;this.onBranchSelected=null,s&&s({type:"spsBalikovo",branchId:null,external:t})},a.component.transportBranchPickers.SpsBalikovoWidget.prototype.getCountries=function(){const t=(this.elementNode.dataset.spsBalikovoWidgetCountries||"").split(",").filter(Boolean);return t.length===1?t[0]:""},a.component.transportBranchPickers.SpsBalikovoWidget.prototype.getPointTypes=function(){return(this.elementNode.dataset.spsBalikovoWidgetPointTypes||"").split(",").filter(Boolean)},a.component.transportBranchPickers.SpsBalikovoWidget.prototype.getCenter=function(){return this.elementNode.dataset.spsBalikovoWidgetCenter||""},a.component.transportBranchPickers.SpsBalikovoWidget.prototype.getFilters=function(){return(this.elementNode.dataset.spsBalikovoWidgetFilters||"").split(",").filter(Boolean)};var a=a||{};a.component=a.component||{},a.component.transportBranchPickers=a.component.transportBranchPickers||{},a.component.transportBranchPickers.ZasilkovnaWidget=function(s){z.Component.call(this,s)}
110,ke(a.component.transportBranchPickers.ZasilkovnaWidget,z.Component),a.component.transportBranchPickers.ZasilkovnaWidget.prototype.prepare=function(){if(this.zasilkovnaWidgetUrl="https://widget.packeta.com/v6/www/js/library.js",this.apiKey=this.getApiKey(),!this.apiKey)throw new Error("Missing apiKey");this.element.on("ui.zasilkovna.close",this.close.bind(this))},a.component.transportBranchPickers.ZasilkovnaWidget.prototype.destroy=function(){this.close()},a.component.transportBranchPickers.ZasilkovnaWidget.prototype.requestSelection=function(t,s){this.onBranchSelected=t,this.onBranchDismissed=s,this.open()},a.component.transportBranchPickers.ZasilkovnaWidget.prototype.open=function(){this.init((function(){const t={language:Eo()},s=this.getAllowedCountries();s&&(t.country=s);const e=this.getAllowedCarriers();e.length>0&&(t.vendors=e.map(function(c){return{carrierId:c}})),Packeta.Widget.pick(this.apiKey,this.handleCallback.bind(this),t)}).bind(this))},a.component.transportBranchPickers.ZasilkovnaWidget.prototype.close=function(){typeof Packeta<"u"&&Packeta.Widget.close()},a.component.transportBranchPickers.ZasilkovnaWidget.prototype.init=function(t){typeof Packeta<"u"?t():$.getScript(this.zasilkovnaWidgetUrl,t)},a.component.transportBranchPickers.ZasilkovnaWidget.prototype.handleCallback=function(t){const s=this.onBranchSelected,e=this.onBranchDismissed;if(this.onBranchSelected=null,this.onBranchDismissed=null,!t){e&&e();return}s&&s({type:"zasilkovna",branchId:null,external:t})},a.component.transportBranchPickers.ZasilkovnaWidget.prototype.getApiKey=function(){return this.element.get(0).dataset.apiKey||""},a.component.transportBranchPickers.ZasilkovnaWidget.prototype.getAllowedCountries=function(){return this.element.get(0).dataset.allowedCountries||""},a.component.transportBranchPickers.ZasilkovnaWidget.prototype.getAllowedCarriers=function(){return(this.element.get(0).dataset.allowedCarriers||"").split(",")};var a=a||{};a.component=a.component||{},a.component.ProductVariantMatrix=function(s,e){z.Component.call(this,s),this.dependencies={toast:e.get("toast")}},ke(a.component.ProductVariantMatrix,z.Component),a.component.ProductVariantMatrix.prototype.prepare=function(){if(this.getHtmlData(),this.$total=$("[data-product-variant-matrix-total]"),this.currentRequest=null,!this.requestUrl){console.warn("Missing requestUrl");return}if(!this.$total.length){console.warn("Missing $total element");return}if(!this.inputs.length){console.warn("No input found");return}this.addEvents()},a.component.ProductVariantMatrix.prototype.destroy=function(){this.removeEvents()},a.component.ProductVariantMatrix.prototype.addEvents=function(){this.handleFormSubmitEvent=this.handleFormSubmit.bind(this),this.handleConfirmByEnterEvent=this.handleConfirmByEnter.bind(this),this.debouncedInputChangeEvent=Ar(350,(function(t){this.handleInputChange(t)}).bind(this)),this.element.on("submit",this.handleFormSubmitEvent),this.inputs.forEach(t=>{t.addEventListener("ui.quantityInput.change",this.debouncedInputChangeEvent),t.addEventListener("ui.quantityInput.confirmByEnter",this.handleConfirmByEnterEvent)})},a.component.ProductVariantMatrix.prototype.removeEvents=function(){this.element.off("submit",this.handleFormSubmitEvent),this.inputs.forEach(t=>{t.removeEventListener("ui.quantityInput.change",this.debouncedInputChangeEvent),t.removeEventListener("ui.quantityInput.confirmByEnter",this.handleConfirmByEnterEvent)}),this.handleFormSubmitEvent=null,this.handleConfirmByEnterEvent=null,this.debouncedInputChangeEvent=null},a.component.ProductVariantMatrix.prototype.handleFormSubmit=function(t){t.preventDefault(),this.processForm()},a.component.ProductVariantMatrix.prototype.handleConfirmByEnter=function(t){const s=t.currentTarget,e=t.detail.shiftKey;this.focusNextQuantityInput(s,e)},a.component.ProductVariantMatrix.prototype.handleInputChange=function(t){t.preventDefault(),this.processForm()},a.component.ProductVariantMatrix.prototype.processForm=function(){this.makeRequest(new FormData(this.element.get(0)))},a.component.ProductVariantMatrix.prototype.focusNextQuantityInput=function(t,s=!1){const e=this.inputs,c=e.length;if(c===0)return;const u=e.indexOf(t);if(u===-1)return;let d;s?d=(u-1+c)%c:d=(u+1)%c,e[d].dispatchEvent(new Event("ui.quantityInput.focus"))},a.component.ProductVariantMatrix.prototype.makeRequest=function(t){this.currentRequest&&this.currentRequest.readyState!==4&&this.currentRequest.abort();const s=this.createRequest().setUrl(this.requestUrl).setMethod("post").addData({...Object.fromEntries(t),disabledSnp:["breadcrumb-path","search-autocomplete-results"]}).setSaveHistory(!1).addSuccessCallback(this.handleRequestSuccess.bind(this)).addErrorCallback(this.handleRequestError.bind(this)).addFinalCallback(this.handleRequestFinal.bind(this));this.currentRequest=s.send()},a.component.ProductVariantMatrix.prototype.getHtmlData=function(){this.requestUrl=this.element.attr("action"),this.inputs=this.getAllQuantityInputs()},a.component.ProductVariantMatrix.prototype.handleRequestSuccess=function(t){var s,e;t.matrixData&&(this.updateInputs((s=t.matrixData)==null?void 0:s.products),this.updateTotal((e=t.matrixData)==null?void 0:e.total))},a.component.ProductVariantMatrix.prototype.handleRequestError=function(){this.dependencies.toast.show("Chyba","error")},a.component.ProductVariantMatrix.prototype.handleRequestFinal=function(){this.currentRequest=null},a.component.ProductVariantMatrix.prototype.updateTotal=function(t){t!==void 0&&this.$total.text(t)},a.component.ProductVariantMatrix.prototype.updateInputs=function(t){Object.values(t).forEach(s=>{const e=this.getQuantityInput(s.productId);if(!e){console.warn(`quantity input for product ${s.productId} not found`);return}e.dispatchEvent(new CustomEvent("ui.quantityInput.set",{bubbles:!1,detail:{steps:s.countInBasket,max:s.maxOrderCount,countInBasket:s.countInBasket,countInBasketLabel:s.countInBasketLabel,triggerEnabled:!1}}))})},a.component.ProductVariantMatrix.prototype.getQuantityInput=function(t){return this.elementNode.querySelector(`[data-
110product-variant-matrix-input="${t}"]`)},a.component.ProductVariantMatrix.prototype.getAllQuantityInputs=function(){return Array.from(this.elementNode.querySelectorAll("[data-product-variant-matrix-input]"))};var a=a||{};a.component=a.component||{},a.component.ProductMatrixCardVariants=function(s,e){z.Component.call(this,s),this.dependencies={toast:e.get("toast")}},ke(a.component.ProductMatrixCardVariants,z.Component),a.component.ProductMatrixCardVariants.prototype.prepare=function(){if(this.getHtmlData(),this.currentRequest=null,!this.requestUrl){console.warn("Missing requestUrl");return}if(!this.inputs.length){console.warn("No input found");return}this.addEvents()},a.component.ProductMatrixCardVariants.prototype.destroy=function(){this.removeEvents()},a.component.ProductMatrixCardVariants.prototype.addEvents=function(){this.handleFormSubmitEvent=this.handleFormSubmit.bind(this),this.handleConfirmByEnterEvent=this.handleConfirmByEnter.bind(this),this.debouncedInputChangeEvent=Ar(350,(function(t){this.handleInputChange(t)}).bind(this)),this.element.on("submit",this.handleFormSubmitEvent),this.inputs.forEach(t=>{t.addEventListener("ui.quantityInput.change",this.debouncedInputChangeEvent),t.addEventListener("ui.quantityInput.confirmByEnter",this.handleConfirmByEnterEvent)})},a.component.ProductMatrixCardVariants.prototype.removeEvents=function(){this.element.off("submit",this.handleFormSubmitEvent),this.inputs.forEach(t=>{t.removeEventListener("ui.quantityInput.change",this.debouncedInputChangeEvent),t.removeEventListener("ui.quantityInput.confirmByEnter",this.handleConfirmByEnterEvent)}),this.handleFormSubmitEvent=null,this.handleConfirmByEnterEvent=null,this.debouncedInputChangeEvent=null},a.component.ProductMatrixCardVariants.prototype.handleFormSubmit=function(t){t.preventDefault(),this.processForm()},a.component.ProductMatrixCardVariants.prototype.handleConfirmByEnter=function(t){const s=t.currentTarget,e=t.detail.shiftKey;this.focusNextQuantityInput(s,e)},a.component.ProductMatrixCardVariants.prototype.handleInputChange=function(t){t.preventDefault(),this.processForm()},a.component.ProductMatrixCardVariants.prototype.processForm=function(){this.makeRequest(new FormData(this.element.get(0)))},a.component.ProductMatrixCardVariants.prototype.focusNextQuantityInput=function(t,s=!1){const e=this.inputs,c=e.length;if(c===0)return;const u=e.indexOf(t);if(u===-1)return;let d;s?d=(u-1+c)%c:d=(u+1)%c,e[d].dispatchEvent(new Event("ui.quantityInput.focus"))},a.component.ProductMatrixCardVariants.prototype.makeRequest=function(t){this.currentRequest&&this.currentRequest.readyState!==4&&this.currentRequest.abort();const s=this.createRequest().setUrl(this.requestUrl).setMethod("post").addData({...Object.fromEntries(t),disabledSnp:["breadcrumb-path","search-autocomplete-results"]}).setSaveHistory(!1).addSuccessCallback(this.handleRequestSuccess.bind(this)).addErrorCallback(this.handleRequestError.bind(this)).addFinalCallback(this.handleRequestFinal.bind(this));this.currentRequest=s.send()},a.component.ProductMatrixCardVariants.prototype.getHtmlData=function(){this.requestUrl=this.element.attr("action"),this.inputs=this.getAllQuantityInputs()},a.component.ProductMatrixCardVariants.prototype.handleRequestSuccess=function(t){var s;t.matrixData&&this.updateInputs((s=t.matrixData)==null?void 0:s.products)},a.component.ProductMatrixCardVariants.prototype.handleRequestError=function(){this.dependencies.toast.show("Chyba","error")},a.component.ProductMatrixCardVariants.prototype.handleRequestFinal=function(){this.currentRequest=null},a.component.ProductMatrixCardVariants.prototype.updateInputs=function(t){Object.values(t).forEach(s=>{const e=this.getQuantityInput(s.productId);if(!e){console.warn(`quantity input for product ${s.productId} not found`);return}e.dispatchEvent(new CustomEvent("ui.quantityInput.set",{bubbles:!1,detail:{steps:s.countInBasket,max:s.maxOrderCount,countInBasket:s.countInBasket,countInBasketLabel:s.countInBasketLabel,triggerEnabled:!1}}))})},a.component.ProductMatrixCardVariants.prototype.getQuantityInput=function(t){return this.elementNode.querySelector(`[data-
110product-matrix-card-variants-input="${t}"]`)},a.component.ProductMatrixCardVariants.prototype.getAllQuantityInputs=function(){return Array.from(this.elementNode.querySelectorAll("[data-product-matrix-card-variants-input]"))};var a;a=a||{},a.component=a.component||{},a.component.ProductStickyBarMobile=function(s,e){z.Component.call(this,s),this.dependencies={settings:e.get("settings"),availableArea:e.get("availableArea")},this.settings=this.dependencies.settings,this.availableArea=this.dependencies.availableArea},ke(a.component.ProductStickyBarMobile,z.Component),a.component.ProductStickyBarMobile.prototype.prepare=function(){if(this.activeClass="is-active",this.body=$("body"),this.$trigger=this.getTrigger(),this.$wrapper=this.getWrapper(),!this.$trigger.length){console.warn("Target element data-product-sticky-bar-mobile-trigger not found");return}this.isTop=this.isTopType(),this.lastObserverTop_=null,this.initObserver(),this.onAreaChange_=t=>{t.top!==this.lastObserverTop_&&this.initObserver()},this.availableArea.on(this.onAreaChange_)},a.component.ProductStickyBarMobile.prototype.destroy=function(){this.observer&&this.observer.disconnect(),this.onAreaChange_&&this.availableArea.off(this.onAreaChange_);const t=this.isTop?"top":"bottom";this.availableArea.remove(t,"productStickyBar")},a.component.ProductStickyBarMobile.prototype.getWrapper=function(){return this.element.data("data-product-sticky-bar-mobile-target")?this.element:this.element.closest("[data-product-sticky-bar-mobile-target]")},a.component.ProductStickyBarMobile.prototype.getTrigger=function(){return $(this.settings.get("productStickyBarMobile.triggerSelector"))},a.component.ProductStickyBarMobile.prototype.isTopType=function(){return this.element.data("product-sticky-bar-mobile-type")==="top"},a.component.ProductStickyBarMobile.prototype.show=function(){if(this.$wrapper.hasClass(this.activeClass))return;this.$wrapper.addClass(this.activeClass),this.body.addClass("product-sticky-bar-mobile-shown");const t=this.isTop?"top":"bottom";this.availableArea.add(t,"productStickyBar",this.elementNode)},a.component.ProductStickyBarMobile.prototype.hide=function(){if(!this.$wrapper.hasClass(this.activeClass))return;this.$wrapper.removeClass(this.activeClass),this.body.removeClass("product-sticky-bar-mobile-shown");const t=this.isTop?"top":"bottom";this.availableArea.remove(t,"productStickyBar")},a.component.ProductStickyBarMobile.prototype.initObserver=function(){this.observer&&this.observer.disconnect();const t=this.availableArea.get("top");this.lastObserverTop_=t;const s={root:null,rootMargin:"-"+t+"px 0px 0px 0px",threshold:0};this.observer=new IntersectionObserver(e=>{e.forEach(c=>{c.isIntersecting?this.hide():c.target.getBoundingClientRect().top<this.lastObserverTop_&&this.show()})},s),this.observer.observe(this.$trigger[0])};var a=a||{};a.component=a.component||{},a.component.HideOverflowItems=function(s){z.Component.call(this,s)}
110,ke(a.component.HideOverflowItems,z.Component),a.component.HideOverflowItems.prototype.prepare=function(){this.overflowingClass="is-overflowing",this.hiddenClass="is-hidden",this.$items=this.element.find("[data-hide-overflow-items-item]"),this.resizeObserver=new ResizeObserver(this.handleResize.bind(this)),this.resizeObserver.observe(this.element[0]),this.updateItemsVisibility()},a.component.HideOverflowItems.prototype.destroy=function(){this.resizeObserver&&(this.resizeObserver.unobserve(this.element[0]),this.resizeObserver.disconnect())},a.component.HideOverflowItems.prototype.handleResize=function(){this.updateItemsVisibility()},a.component.HideOverflowItems.prototype.updateItemsVisibility=function(){const t=this.element.width(),{gap:s}=window.getComputedStyle(this.element[0]),e=parseFloat(s)||0;let c=0,u=!1;this.$items.each((d,S)=>{const I=$(S);c+=I.outerWidth(!0),d>0&&(c+=e),c>t?(I.addClass(this.hiddenClass),u=!0):I.removeClass(this.hiddenClass)}),this.element.toggleClass(this.overflowingClass,u)};var a=a||{};a.component=a.component||{},a.component.TextCountdown=function(s){z.Component.call(this,s)}
110,ke(a.component.TextCountdown,z.Component),a.component.TextCountdown.prototype.destroy=function(){this.counter&&this.counter.isRunning&&this.counter.stop()},a.component.TextCountdown.prototype.prepare=function(){this.counter=null,Bn(this.element,()=>{this.init()})},a.component.TextCountdown.prototype.init=function(){this.finishedClass="is-finished";const t=this.getEndDate();this.mergeDayAndHours=this.isMergeDayAndHours(),this.hide0Day=this.isHide0Day(),t&&(this.counter=new ps(t,this.updateCounter.bind(this),this.finished.bind(this)),this.counter.start())},a.component.TextCountdown.prototype.updateCounter=function(t){const s=t.days.toString().padStart(2,"0");let e=t.hours.toString().padStart(2,"0");this.mergeDayAndHours&&(e=t.totalHours.toString().padStart(2,"0"));const c=t.minutes.toString().padStart(2,"0"),u=t.seconds.toString().padStart(2,"0");let d;this.mergeDayAndHours||this.hide0Day&&t.days===0?d=`${e}:${c}:${u}`:d=`${s}:${e}:${c}:${u}`,this.element.text(d)},a.component.TextCountdown.prototype.finished=function(){this.element.get(0).classList.add(this.finishedClass)},a.component.TextCountdown.prototype.getEndDate=function(){let t=this.element.get(0).dataset.textCountdownEnd;return t?(t=new Date(t),t instanceof Date&&!isNaN(t)?t:null):null},a.component.TextCountdown.prototype.isMergeDayAndHours=function(){return this.element.get(0).dataset.textCountdownMergeDayAndHours!==void 0},a.component.TextCountdown.prototype.isHide0Day=function(){return this.element.get(0).dataset.textCountdownHideZeroDay!==void 0};var a=a||{};a.component=a.component||{},a.component.GraphicCountdown=function(s){z.Component.call(this,s)}
110,ke(a.component.GraphicCountdown,z.Component),a.component.GraphicCountdown.prototype.destroy=function(){this.counter&&this.counter.isRunning&&this.counter.stop()},a.component.GraphicCountdown.prototype.prepare=function(){this.counter=null,Bn(this.element,()=>{this.init()})},a.component.GraphicCountdown.prototype.init=function(){this.finishedClass="is-finished",this.daysElement=this.element.get(0).querySelector("[data-graphic-contdown-days]"),this.hoursElement=this.element.get(0).querySelector("[data-graphic-contdown-hours]"),this.minutesElement=this.element.get(0).querySelector("[data-graphic-contdown-minutes]"),this.secondsElement=this.element.get(0).querySelector("[data-graphic-contdown-seconds]");const t=this.getEndDate();t&&(this.counter=new ps(t,this.updateCounter.bind(this),this.finished.bind(this)),this.counter.start())},a.component.GraphicCountdown.prototype.updateCounter=function(t){this.daysElement?(this.updateTimeElement(this.daysElement,t.days),this.updateTimeElement(this.hoursElement,t.hours)):this.updateTimeElement(this.hoursElement,t.totalHours),this.updateTimeElement(this.minutesElement,t.minutes),this.updateTimeElement(this.secondsElement,t.seconds)},a.component.GraphicCountdown.prototype.updateTimeElement=function(t,s){if(t){const e=this.getValueElement(t),c=this.getLabelElement(t);if(e&&e.innerText.toLowerCase()!==s.toString().padStart(2,"0").toLowerCase()&&(e.innerText=s.toString().padStart(2,"0")),c){const u=t.dataset.graphicContdownSingular,d=t.dataset.graphicContdownDual,S=t.dataset.graphicContdownPlural;let I;s===1?I=u:s>=2&&s<=4?I=d:I=S,c.innerText.toLowerCase()!==I.toLowerCase()&&(c.innerText=I)}}},a.component.GraphicCountdown.prototype.finished=function(){this.element.get(0).classList.add(this.finishedClass)},a.component.GraphicCountdown.prototype.getEndDate=function(){let t=this.element.get(0).dataset.graphicCountdownEnd;return t?(t=new Date(t),t instanceof Date&&!isNaN(t)?t:null):null},a.component.GraphicCountdown.prototype.getLabelElement=function(t){return t.querySelector("[data-graphic-contdown-label]")},a.component.GraphicCountdown.prototype.getValueElement=function(t){return t.querySelector("[data-graphic-contdown-value]")};var a=a||{};a.component=a.component||{},a.component.SaveToClipboard=function(s,e){z.Component.call(this,s),this.dependencies={toast:e.get("toast")}},ke(a.component.SaveToClipboard,z.Component),a.component.SaveToClipboard.prototype.destroy=function(){this.clipboard&&this.clipboard.destroy()},a.component.SaveToClipboard.prototype.prepare=function(){this.clipboard=null,Bn(this.element,()=>{this.init()})},a.component.SaveToClipboard.prototype.init=function(){this.clipboard=new ClipboardJS(this.element.get(0)),this.successToast=this.element.data("clipboard-success-toast")||!1,this.errorToast=this.element.data("clipboard-error-toast")||!1,this.successToast&&this.clipboard.on("success",()=>{this.dependencies.toast.show(this.successToast,"success")}),this.errorToast&&this.clipboard.on("error",()=>{this.dependencies.toast.show(this.errorToast,"error")})};var a=a||{};a.component=a.component||{},a.component.SelectCollapse=function(s){z.Component.call(this,s)}
110,ke(a.component.SelectCollapse,z.Component),a.component.SelectCollapse.prototype.prepare=function(){this.document=$(document),this.window=$(window),this.body=$("body"),this.options=this.element.find("[data-select-collapse-options]"),this.resetInputs=this.element.find("[data-select-collapse-reset]"),this.input=this.element.find("[data-select-collapse-input]"),this.collapse=this.element.find("[data-select-collapse-target]"),this.form=this.element.closest("form"),this.input.on("change",this.handleChange.bind(this)),this.input.on("ui.customSelect.change",this.handleChange.bind(this)),this.getOptionsData()},a.component.SelectCollapse.prototype.destroy=function(){},a.component.SelectCollapse.prototype.handleChange=function(){let t=this.input.val();if(this.data[t]===void 0){console.error(`Undefined value for option ${t}`);return}this.data[t]?this.collapse.trigger("ui.collapse.show"):(this.collapse.trigger("ui.collapse.hide"),this.resetInputs.val(""))},a.component.SelectCollapse.prototype.getOptionsData=function(){let t;try{t=JSON.parse(this.options.text())}catch{t=null}this.data=t};var a=a||{};a.component=a.component||{},a.component.ArticleSearch=function(s){z.Component.call(this,s),this.debouncedChangeEvent=Ar(350,(function(e){this.processForm(e)}).bind(this))},ke(a.component.ArticleSearch,z.Component),a.component.ArticleSearch.prototype.prepare=function(){if(this.getHtmlData(),this.currentRequest=null,!this.requestUrl){console.warn("Missing requestUrl");return}if(!this.$control){console.warn("Missing $control)");return}if(!this.$form){console.warn("Missing $form");return}if(!this.$reset){console.warn("Missing $reset");return}this.lastSearchPhrase=this.getInputValue(),this.searchPhrase=null,this.$control.on("input",this.handleControl.bind(this)),this.$form.on("submit",this.handleSubmit.bind(this)),this.$form.on("reset",this.handleReset.bind(this))},a.component.ArticleSearch.prototype.destroy=function(){this.removeEvents()},a.component.ArticleSearch.prototype.addEvents=function(){window.addEventListener("click",this.clickEvent,!0),window.addEventListener("keydown",this.keydownEvent,!0)},a.component.ArticleSearch.prototype.removeEvents=function(){window.removeEventListener("click",this.clickEvent,!0),window.removeEventListener("keydown",this.keydownEvent,!0)},a.component.ArticleSearch.prototype.handleControl=function(t){this.controlResetButton(),this.handleSearchTrigger(t,!1)},a.component.ArticleSearch.prototype.handleSubmit=function(t){t.preventDefault(),this.handleSearchTrigger(t,!0)},a.component.ArticleSearch.prototype.handleReset=function(t){t.preventDefault(),this.abortRunningRequest(),this.$control.val(""),this.$control.focus(),this.controlResetButton(),this.handleSearchTrigger(t,!0)},a.component.ArticleSearch.prototype.controlResetButton=function(){this.getInputValue().length>0?this.$reset.removeAttr("hidden"):this.$reset.attr("hidden","")},a.component.ArticleSearch.prototype.handleSearchTrigger=function(t,s=!1){const e=this.getInputValue(),c=e.length;this.searchPhrase=e,!(!s&&c>0&&c<=2)&&this.searchPhrase!==this.lastSearchPhrase&&(this.lastSearchPhrase=this.searchPhrase,s?this.processForm():this.debouncedChangeEvent())},a.component.ArticleSearch.prototype.processForm=function(){this.makeRequest(new FormData(this.$form.get(0)))},a.component.ArticleSearch.prototype.makeRequest=function(t){this.abortRunningRequest();const s=Jo(this.requestUrl,Object.fromEntries(t)),e=this.createRequest().setUrl(s).setHistoryUrl(s).setMethod("get").addData({disabledSnp:["breadcrumb-path","search-autocomplete-results","articles-search","basket-preview","basket-preview-mobile","lostPasswordForm","registrationForm","loginForm-modal","footer"]}).addErrorCallback(this.handleRequestError.bind(this)).addFinalCallback(this.handleRequestFinal.bind(this));this.currentRequest=e.send()},a.component.ArticleSearch.prototype.getHtmlData=function(){this.$form=this.element.find("form"),this.$control=this.element.find("[data-article-search-input]"),this.$reset=this.element.find("[data-article-search-reset]"),this.requestUrl=this.$form.attr("action")},a.component.ArticleSearch.prototype.getInputValue=function(){return this.$control.val().trim()},a.component.ArticleSearch.prototype.abortRunningRequest=function(){this.currentRequest&&this.currentRequest.readyState!==4&&this.currentRequest.abort()},a.component.ArticleSearch.prototype.handleRequestError=function(){this.dependencies.toast.show("Chyba","error")},a.component.ArticleSearch.prototype.handleRequestFinal=function(){this.currentRequest=null};var a=a||{};a.component=a.component||{},a.component.DownloadFile=function(s){z.Component.call(this,s)}
110,ke(a.component.DownloadFile,z.Component),a.component.DownloadFile.prototype.prepare=function(){if(this.elementNode||(this.elementNode=this.element.get(0)),this.getHtmlData(),!this.url){console.warn("Missing url");return}this.init()},a.component.DownloadFile.prototype.destroy=function(){},a.component.DownloadFile.prototype.init=async function(){try{const t=this.url,s=await fetch(t);if(!s.ok)throw new Error("Failed to download file");const e=await s.blob(),c=t.split("/").pop(),u=document.createElement("a");u.href=URL.createObjectURL(e),u.download=c,document.body.appendChild(u),u.click(),setTimeout(()=>{URL.revokeObjectURL(u.href),document.body.removeChild(u)},1e3)}catch(t){console.error("Error:",t)}},a.component.DownloadFile.prototype.getHtmlData=function(){const t=this.elementNode.dataset;this.url=t.downloadFileUrl||null};var a=a||{};a.component=a.component||{},a.component.QuantityInput=function(s,e){z.Component.call(this,s),this.dependencies={translator:e.get("translator")},this.translator=this.dependencies.translator.getNameSpace("QuantityInput")},ke(a.component.QuantityInput,z.Component),a.component.QuantityInput.prototype.prepare=function(){this.isInitialized=!1,this.isEditMode=!1,this.activeClass="is-active",this.invalidClass="is-invalid",this.invalidDuration=1e3,this.handleExternalIncreaseEvent=this.handleExternalIncrease.bind(this),this.handleExternalDecreaseEvent=this.handleExternalDecrease.bind(this),this.handleExternalSetEvent=this.handleExternalSet.bind(this),this.handleExternalFocusEvent=this.handleExternalFocus.bind(this),this.elementNode.addEventListener("ui.quantityInput.increase",this.handleExternalIncreaseEvent),this.elementNode.addEventListener("ui.quantityInput.decrease",this.handleExternalDecreaseEvent),this.elementNode.addEventListener("ui.quantityInput.set",this.handleExternalSetEvent),this.elementNode.addEventListener("ui.quantityInput.focus",this.handleExternalFocusEvent),Bn(this.element,()=>{this.init()})},a.component.QuantityInput.prototype.destroy=function(){this.elementNode.removeEventListener("ui.quantityInput.increase",this.handleExternalIncreaseEvent),this.elementNode.removeEventListener("ui.quantityInput.decrease",this.handleExternalDecreaseEvent),this.elementNode.removeEventListener("ui.quantityInput.set",this.handleExternalSetEvent),this.elementNode.removeEventListener("ui.quantityInput.focus",this.handleExternalFocusEvent),this.handleExternalIncreaseEvent=null,this.handleExternalDecreaseEvent=null,this.handleExternalSetEvent=null,this.handleExternalFocusEvent=null,this.isInitialized&&this.removeEvents()},a.component.QuantityInput.prototype.init=function(){this.isInitialized||(this.getElements(),this.getConfig(),this.validateElements()&&(this.addEvents(),this.lastValidStep=this.getStepCount(),this.setStepCount(this.lastValidStep),this.isInitialized=!0,this.config.isSubmitOnChangeEnabled&&(this.debounceSubmitOnChangeEvent=Ar(350,function(){this.submitClosestForm()}).bind(this))))},a.component.QuantityInput.prototype.getElements=function(){this.inputPreview=this.elementNode.querySelector("[data-quantity-input-preview]"),this.inputValue=this.elementNode.querySelector("[data-quantity-input-value]"),this.btnIncrease=this.elementNode.querySelector("[data-quantity-input-increase]"),this.btnDecrease=this.elementNode.querySelector("[data-quantity-input-decrease]"),this.feedback=this.elementNode.querySelector("[data-quantity-input-feedback]"),this.countInBasket=this.elementNode.querySelector("[data-quantity-input-count-in-basket]")},a.component.QuantityInput.prototype.validateElements=function(){var e,c;const t=this.inputPreview&&this.inputValue,s=!((e=this.config)!=null&&e.isCountInBasketEnabled)||this.countInBasket!==null;return(!t||!s)&&console.warn("QuantityInput: Missing required elements",{inputPreview:!!this.inputPreview,inputValue:!!this.inputValue,btnIncrease:!!this.btnIncrease,btnDecrease:!!this.btnDecrease,feedback:!!this.feedback,countInBasket:!((c=this.config)!=null&&c.isCountInBasketEnabled)||!!this.countInBasket},this.elementNode),t&&s},a.component.QuantityInput.prototype.getConfig=function(){const t=this.elementNode.dataset;this.config={min:parseInt(t.quantityInputMin)||0,max:t.quantityInputMa
110x?parseInt(t.quantityInputMax):null,unitName:t.quantityInputUnitName||"",step:Math.abs(parseInt(t.quantityInputStep))||1,unitStep:Math.abs(parseFloat(t.quantityInputUnitStep))||1,isStepButtonsEnabled:this.btnIncrease&&this.btnDecrease,isCountInBasketEnabled:"quantityInputCountInBasketEnabled"in t,isSubmitOnChangeEnabled:"quantityInputSubmitOnChange"in t}},a.component.QuantityInput.prototype.addEvents=function(){this.clickIncreaseEvent=this.handleIncreaseClick.bind(this),this.clickDecreaseEvent=this.handleDecreaseClick.bind(this),this.changeValueEvent=this.handleValueChange.bind(this),this.focusPreviewEvent=this.handlePreviewFocus.bind(this),this.blurPreviewEvent=this.handlePreviewBlur.bind(this),this.keydownPreviewEvent=this.handlePreviewKeydown.bind(this),this.config.isStepButtonsEnabled&&(this.btnIncrease.addEventListener("click",this.clickIncreaseEvent),this.btnDecrease.addEventListener("click",this.clickDecreaseEvent)),this.inputValue.addEventListener("change",this.changeValueEvent),this.inputPreview.addEventListener("focus",this.focusPreviewEvent),this.inputPreview.addEventListener("blur",this.blurPreviewEvent),this.inputPreview.addEventListener("keydown",this.keydownPreviewEvent)},a.component.QuantityInput.prototype.removeEvents=function(){var t,s,e,c,u,d;this.config.isStepButtonsEnabled&&((t=this.btnIncrease)==null||t.removeEventListener("click",this.clickIncreaseEvent),(s=this.btnDecrease)==null||s.removeEventListener("click",this.clickDecreaseEvent)),(e=this.inputValue)==null||e.removeEventListener("change",this.changeValueEvent),(c=this.inputPreview)==null||c.removeEventListener("focus",this.focusPreviewEvent),(u=this.inputPreview)==null||u.removeEventListener("blur",this.blurPreviewEvent),(d=this.inputPreview)==null||d.removeEventListener("keydown",this.keydownPreviewEvent),this.clickIncreaseEvent=null,this.clickDecreaseEvent=null,this.changeValueEvent=null,this.focusPreviewEvent=null,this.blurPreviewEvent=null,this.keydownPreviewEvent=null},a.component.QuantityInput.prototype.getStepCount=function(){const t=this.inputValue.value.trim(),s=parseInt(t,10);return Number.isInteger(s)?s:this.config.min},a.component.QuantityInput.prototype.getDisplayValue=function(t){return t*this.config.unitStep},a.component.QuantityInput.prototype.formatDisplay=function(t){const s=Eo()||"en-US",c=new Intl.NumberFormat(s,{minimumFractionDigits:0,maximumFractionDigits:2}).format(t);return this.config.unitName?`${c} ${this.config.unitName}`:c},a.component.QuantityInput.prototype.clampStepCount=function(t){const{min:s,max:e}=this.config;let c=Math.max(s,t);return e!==null&&(c=Math.min(e,c)),c},a.component.QuantityInput.prototype.setStepCount=function(t,s=!0){const e=this.clampStepCount(t),c=this.getDisplayValue(e),u=this.formatDisplay(c),d=this.lastValidStep;this.inputValue.value=e,this.inputPreview.value=u,this.lastValidStep=e;const S=e!==d;return S&&(this.announceChange(`Quantity changed to: ${u}`),s&&this.triggerChangeEvent(e,u,d),this.config.isSubmitOnChangeEnabled&&this.debounceSubmitOnChangeEvent()),this.controlButtons(e),this.controlActiveClass(e),S},a.component.QuantityInput.prototype.validateAndApplyStepInput=function(t=!1,s=!0){const e=(t?this.inputPreview.value:this.inputValue.value).replace(",",".").trim(),c=/^-?\d*(\.\d+)?$/.test(e),u=parseFloat(e);if(!c||isNaN(u)){this.setStepCount(this.lastValidStep),this.announceChange("Invalid input. Quantity reverted to previous value."),this.triggerInvalidValueEvent(),this.flashInvalidClass();return}const d=u/this.config.unitStep,S=Math.ceil(Number(d.toFixed(10))),I=Number.isInteger(S),Z=this.clampStepCount(S);I&&(S<this.config.min||this.config.max!==null&&S>this.config.max?(this.setStepCount(this.lastValidStep),this.announceChange(`Invalid input. Quantity out of range. Reverted. ${this.getAllowedRangeMessage()}`),this.triggerInvalidValueEvent(),this.flashInvalidClass()):this.setStepCount(Z,s))},a.component.QuantityInput.prototype.validateAndApplySteps=function(t,s=!0){if(typeof t!="number"||!Number.isFinite(t)){console.warn("QuantityInput: Value must be a valid number. Skipped:",t);return}const e=Math.round(t),c=this.clampStepCount(e);this.setStepCount(c,s)},a.component.QuantityInput.prototype.setMin=function(t){if(typeof t!="number"||!Number.isFinite(t)){console.warn("QuantityInput: Invalid minimum value:",t);return}this.config.min=t,this.elementNode.dataset.quantityInputMin=t,this.setStepCount(this.getStepCount())},a.component.QuantityInput.prototype.setMax=function(t){if(t===null){this.config.max=null,this.setStepCount(this.getStepCount());return}if(typeof t!="number"||!Number.isFinite(t)){console.warn("QuantityInput: Invalid max value:",t);return}
110this.config.max=t,this.elementNode.dataset.quantityInputMax=t,this.setStepCount(this.getStepCount())},a.component.QuantityInput.prototype.setCountInBasket=function(t,s){this.config.isCountInBasketEnabled&&this.countInBasket&&(t>0?(this.countInBasket.innerHTML=`<span>${s}</span> ${this.translator.get("countInBasketLabel")}`,this.countInBasket.classList.add("is-active")):(this.countInBasket.innerHTML="",this.countInBasket.classList.remove("is-active")))},a.component.QuantityInput.prototype.controlButtons=function(t){const{min:s,max:e,isStepButtonsEnabled:c}=this.config;c&&(this.btnDecrease.disabled=t<=s,this.btnIncrease.disabled=e!==null&&t>=e)},a.component.QuantityInput.prototype.controlActiveClass=function(t){this.elementNode.classList.toggle(this.activeClass,t>this.config.min)},a.component.QuantityInput.prototype.handleIncreaseClick=function(t){t.preventDefault(),t.stopPropagation(),this.updateStepByDelta(this.config.step)},a.component.QuantityInput.prototype.handleDecreaseClick=function(t){t.preventDefault(),t.stopPropagation(),this.updateStepByDelta(-this.config.step)},a.component.QuantityInput.prototype.handleValueChange=function(t){t.stopPropagation(),t.preventDefault(),this.validateAndApplyStepInput(!1)},a.component.QuantityInput.prototype.handleSet=function(t){t.preventDefault();const s=t.detail;"steps"in s&&this.validateAndApplySteps(s.steps,s.triggerEnabled),"min"in s&&this.setMin(s.min),"max"in s&&this.setMax(s.max),"countInBasket"in s&&"countInBasketLabel"in s&&this.setCountInBasket(s.countInBasket,s.countInBasketLabel)},a.component.QuantityInput.prototype.handleExternalIncrease=function(t){this.isInitialized||this.init(),this.handleIncreaseClick(t)},a.component.QuantityInput.prototype.handleExternalDecrease=function(t){this.isInitialized||this.init(),this.handleDecreaseClick(t)},a.component.QuantityInput.prototype.handleExternalSet=function(t){this.isInitialized||this.init(),document.activeElement!==this.inputPreview&&this.handleSet(t)},a.component.QuantityInput.prototype.handleExternalFocus=function(t){this.isInitialized||this.init(),this.inputPreview.focus()},a.component.QuantityInput.prototype.handlePreviewFocus=function(t){t.preventDefault(),t.stopPropagation(),this.setEditMode(),this.selectInputContent(this.inputPreview)},a.component.QuantityInput.prototype.handlePreviewBlur=function(t){t.preventDefault(),t.stopPropagation(),this.setPreviewMode()},a.component.QuantityInput.prototype.handlePreviewKeydown=function(t){t.key==="Enter"&&(t.preventDefault(),t.target.blur(),this.elementNode.dispatchEvent(new CustomEvent("ui.quantityInput.confirmByEnter",{bubbles:!0,detail:{shiftKey:t.shiftKey}})))},a.component.QuantityInput.prototype.setEditMode=function(){if(this.isEditMode)return;this.isEditMode=!0;const t=this.getStepCount(),s=this.getDisplayValue(t),e=Number.isInteger(s)?s.toString():s.toFixed(2).toString().replace(/\.?0+$/,"");this.inputPreview.value=e},a.component.QuantityInput.prototype.setPreviewMode=function(){this.isEditMode&&(this.isEditMode=!1,this.validateAndApplyStepInput(!0))},a.component.QuantityInput.prototype.updateStepByDelta=function(t){const s=this.getStepCount(),e=s+t;if(!this.setStepCount(e)){const u=t>0?"maximum":"minimum",d=this.formatDisplay(this.getDisplayValue(s));this.announceChange(`Quantity is already at ${u} (${d})`)}},a.component.QuantityInput.prototype.announceChange=function(t){this.feedback.textContent="",requestAnimationFrame(()=>{this.feedback.textContent=t})},a.component.QuantityInput.prototype.triggerChangeEvent=function(t,s,e){this.elementNode.dispatchEvent(new CustomEvent("ui.quantityInput.change",{bubbles:!0,detail:{value:t,formatted:s,previousValue:e}}))},a.component.QuantityInput.prototype.triggerInvalidValueEvent=function(){this.elementNode.dispatchEvent(new Event("ui.quantityInput.invalid",{bubbles:!0}))},a.component.QuantityInput.prototype.submitClosestForm=function(){const t=this.elementNode.closest("form");if(t){const s=new Event("submit",{bubbles:!0,cancelable:!0});t.dispatchEvent(s)&&t.submit()}else console.warn("No form found to submit.")},a.component.QuantityInput.prototype.selectInputContent=function(t){requestAnimationFrame(()=>{t.select()})},a.component.QuantityInput.prototype.flashInvalidClass=function(){this.elementNode.classList.add(this.invalidClass),setTimeout(()=>{this.elementNode.classList.remove(this.invalidClass)},this.invalidDuration)},a.component.QuantityInput.prototype.getAllowedRangeMessage=function(){const t=this.config.min,s=this.config.max;return s!==null?`Allowed range: ${t} – ${s}.`:`Minimum allowed: ${t}.`};var a=a||{};a.component=a.component||{},a.component.ExclusiveCheckboxGroup=function(s){z.Component.call(this,s)}
110,ke(a.component.ExclusiveCheckboxGroup,z.Component),a.component.ExclusiveCheckboxGroup.prototype.prepare=function(){this.isInitialized=!1,Bn(this.element,()=>{this.init()})},a.component.ExclusiveCheckboxGroup.prototype.init=function(){this.isInitialized||(this.getElements(),this.validateElements()&&(this.addEvents(),this.isInitialized=!0))},a.component.ExclusiveCheckboxGroup.prototype.destroy=function(){this.isInitialized&&this.removeEvents()},a.component.ExclusiveCheckboxGroup.prototype.getElements=function(){this.checkboxes=Array.from(this.elementNode.querySelectorAll("[data-exclusive-checkbox-group]"))},a.component.ExclusiveCheckboxGroup.prototype.validateElements=function(){return this.checkboxes.length?this.checkboxes.length<2&&console.warn("ExclusiveCheckboxGroup: requires at least 2 checkboxes.",this.elementNode):console.warn("ExclusiveCheckboxGroup: no checkbox found.",this.elementNode),this.checkboxes.length>1},a.component.ExclusiveCheckboxGroup.prototype.addEvents=function(){this.changeHandler=this.handleChange.bind(this),this.checkboxes.forEach(t=>{t.addEventListener("change",this.changeHandler)})},a.component.ExclusiveCheckboxGroup.prototype.removeEvents=function(){var t;(t=this.checkboxes)==null||t.forEach(s=>{s.removeEventListener("change",this.changeHandler)}),this.changeHandler=null},a.component.ExclusiveCheckboxGroup.prototype.handleChange=function(t){const s=t.target;s.checked&&this.checkboxes.forEach(e=>{e!==s&&(e.checked=!1)})};var a=a||{};a.component=a.component||{},a.component.AutoSuggest=function(s){z.Component.call(this,s),this.debouncedChangeEvent=Ar(400,(function(){this.handleSearch()}).bind(this))},ke(a.component.AutoSuggest,z.Component),a.component.AutoSuggest.prototype.prepare=function(){this.isInitialized=!1,Bn(this.element,()=>{this.$control=this.element.find("[data-auto-suggest-control]"),this.$reset=this.element.find("[data-auto-suggest-reset]"),this.$form=this.element.find("form"),this.lastSearchPhrase=null,this.searchPhrase=null,this.init(),this.addEvents(),this.isInitialized=!0})},a.component.AutoSuggest.prototype.destroy=function(){this.isInitialized&&this.removeEvents()},a.component.AutoSuggest.prototype.addEvents=function(){this.$reset.on("click.AutoSuggest",this.handleReset.bind(this)),this.$control.on("input.AutoSuggest",this.handleInput.bind(this)),this.$form.on("submit.AutoSuggest",this.handleSubmit.bind(this))},a.component.AutoSuggest.prototype.removeEvents=function(){this.$reset.off("click.AutoSuggest"),this.$control.off("input.AutoSuggest"),this.$form.off("submit.AutoSuggest")},a.component.AutoSuggest.prototype.init=function(t){this.searchPhrase=this.$control.val(),this.lastSearchPhrase=this.searchPhrase,this.searchPhrase.length&&(this.$control.focus(),this.$control.val(""),this.$control.val(this.searchPhrase),this.$reset.show())},a.component.AutoSuggest.prototype.handleInput=function(t){const s=t.target;this.searchPhrase=s.value;const e=this.searchPhrase.length;this.lastSearchPhrase!==this.searchPhrase&&(this.lastSearchPhrase=this.searchPhrase,this.debouncedChangeEvent(),e>0?this.$reset.show():this.$reset.hide())},a.component.AutoSuggest.prototype.handleSubmit=function(t){t.preventDefault()},a.component.AutoSuggest.prototype.handleSearch=function(){const t=new Event("submit",{bubbles:!0,cancelable:!0});this.$form.get(0).dispatchEvent(t)&&this.$form.submit()},a.component.AutoSuggest.prototype.handleReset=function(){this.$control.focus(),this.$control.removeAttr("value").val(""),this.lastSearchPhrase=null,this.$reset.hide(),this.handleSearch()};var a=a||{};a.component=a.component||{},a.component.SegmentedProduct=function(s,e){z.Component.call(this,s),this.dependencies={translator:e.get("translator")},this.translator=this.dependencies.translator.getNameSpace("SegmentedProduct")},ke(a.component.SegmentedProduct,z.Component),a.component.SegmentedProduct.prototype.prepare=function(){this.hiddenClass="is-hidden",this.activeClass="is-active",this.$filter=this.element.find("[data-segmented-product-filter]"),this.$chips=this.element.find("[data-segmented-product-chip]"),this.$showAll=this.element.find("[data-segmented-product-sh
110ow-all]"),this.$showAllCount=this.element.find("[data-segmented-product-show-all-count]"),this.$status=this.element.find("[data-segmented-product-status]"),this.$items=this.element.find("[data-segmented-product-brand-id]:not([data-segmented-product-chip])"),this.$list=this.$items.first().parent(),this.listLabel=this.$list.attr("aria-label")||"",this.visibleCount=parseInt(this.elementNode.dataset.segmentedProductVisibleCount,10)||0,this.activeBrand="",this.isExpanded=!1,this.$chips.on("click",this.handleChipClick.bind(this)),this.$showAll.on("click","button",this.handleShowAllClick.bind(this)),this.$filter.removeAttr("hidden"),this.updateVisibility_()},a.component.SegmentedProduct.prototype.handleChipClick=function(t){const s=t.currentTarget,e=s.dataset.segmentedProductBrandId||"";this.activeBrand=e===this.activeBrand?"":e,this.protectFocus_(s),this.updateVisibility_(),this.announce_()},a.component.SegmentedProduct.prototype.handleShowAllClick=function(){const t=this.$items.filter("."+this.hiddenClass).first();this.isExpanded=!0,this.updateVisibility_(),this.focusItem_(t),this.announce_()},a.component.SegmentedProduct.prototype.updateVisibility_=function(){const t=this.activeBrand,s=!this.isExpanded&&this.visibleCount>0;let e=0;this.$items.each((d,S)=>{const I=!t||S.dataset.segmentedProductBrandId===t,Z=I&&s&&e>=this.visibleCount;I&&e++,S.classList.toggle(this.hiddenClass,!I||Z)}),this.$chips.each((d,S)=>{const I=!!t&&S.dataset.segmentedProductBrandId===t;S.setAttribute("aria-pressed",I?"true":"false"),S.classList.toggle(this.activeClass,I)});const c=s?Math.min(e,this.visibleCount):e,u=c<e;this.$showAllCount.text(String(e)),this.$showAll.each((d,S)=>{S.hidden=!u}),this.updateListLabel_(c,e)},a.component.SegmentedProduct.prototype.updateListLabel_=function(t,s){if(!(!this.$list.length||!this.listLabel)){if(t>=s){this.$list.attr("aria-label",this.listLabel);return}this.$list.attr("aria-label",this.translator.get("listStatus",this.listLabel,t,s))}},a.component.SegmentedProduct.prototype.announce_=function(){if(!this.$status.length)return;const t=this.$items.not("."+this.hiddenClass).length;this.$status.text(this.activeBrand?this.translator.get("filteredStatus",this.getBrandLabel_(this.activeBrand),t):this.translator.get("allStatus",t))},a.component.SegmentedProduct.prototype.getBrandLabel_=function(t){const s=this.$chips.filter('[data-segmented-product-brand-id="'+t+'"]').get(0);return s?s.textContent.trim():""},a.component.SegmentedProduct.prototype.protectFocus_=function(t){const s=document.activeElement;if(!s||!t)return;this.$items.get().some(c=>c.contains(s))&&t.focus()},a.component.SegmentedProduct.prototype.focusItem_=function(t){if(!t||!t.length)return;const s=t.get(0),e=s.querySelector("a[href], button:not([disabled])");if(e){e.focus();return}s.setAttribute("tabindex","-1"),s.focus()};var a=a||{};a.component=a.component||{},a.component.businessLogic=a.component.businessLogic||{},a.component.businessLogic.AddExtraProduct=function(s,e){z.Component.call(this,s),this.dependencies={baseModal:e.get("baseModal"),toast:e.get("toast"),translator:e.get("translator")},this.translator=this.dependencies.translator.getNameSpace("AddExtraProduct")},ke(a.component.businessLogic.AddExtraProduct,z.Component),a.component.businessLogic.AddExtraProduct.prototype.prepare=function(){this.currentRequest=null,this.disabledSnippets=["breadcrumb-path","search-autocomplete-results","articles-search","lostPasswordForm","registrationForm","loginForm-modal","footer"],Bn(this.element,()=>{this.init()})},a.component.businessLogic.AddExtraProduct.prototype.destroy=function(){this.removeEvents()},a.component.businessLogic.AddExtraProduct.prototype.init=function(){this.readInitialConfig(),this.getElements(),this.validateElements()&&(this.readAdditionalConfig(),this.addEvents())},a.component.businessLogic.AddExtraProduct.prototype.readInitialConfig=function(){const{addExtraProductProductId:t}=this.elementNode.dataset;this.config={productId:t}},a.component.businessLogic.AddExtraProduct.prototype.readAdditionalConfig=function(){const{dataset:t}=this.elementNode;this.config.isBuyModalEnabled=!("addExtraProductModalDisabled"in t),this.config.isBuyToastEnabled=!("addExtraProductToastDisabled"in t)},a.component.businessLogic.AddExtraProduct.prototype.getElements=function(){this.buyButton=this.elementNode.querySelector("[data-add-extra-product-button]")},a.component.businessLogic.AddExtraProduct.prototype.validateElements=function(){let t=!0;return this.buyButton||(console.warn("AddExtraProduct: Missing buy button",this.elementNode),t=!1),t},a.component.businessLogic.AddExtraProduct.prototype.addEvents=function(){this.clickBuyButtonEvent=this.handleBuyButtonClick.bind(this),this.buyButton&&this.buyButton.addEventListener("click",this.clickBuyButtonEvent)},a.component.businessLogic.AddExtraProduct.prototype.removeEvents=function(){this.buyButton&&this.buyButton.removeEventListener("click",this.clickBuyButtonEvent),this.clickBuyButtonEvent=null},a.component.businessLogic.AddExtraProduct.prototype.handleBuyButtonClick=function(t){t.preventDefault(),this.prepareBuyRequest()},a.component.businessLogic.AddExtraProduct.prototype.prepareBuyRequest=function(){const t=this.buyButton.getAttribute("href");let s={count:1,product_id:this.config.productId};this.config.isBuyModalEnabled||(s.noAddPopup=!0),this.makeBuyRequest(t,s)},a.component.businessLogic.AddExtraProduct.prototype.makeBuyRequest=function(t,s){this.abortOngoingRequest();const e=this.createRequest().setUrl(t).setMethod("post").addData({...s,disabledSnp:this.disabledSnippets}).setSaveHistory(!1).addSuccessCallback(this.handleBuyRequestSuccess.bind(this)).addErrorCallback(this.handleBuyRequestError.bind(this)).addFinalCallback(this.handleBuyRequestFinal.bind(this));this.currentRequest=e.send()},a.component.businessLogic.AddExtraProduct.prototype.abortOngoingRequest=function(){this.currentRequest&&this.currentRequest.readyState!==4&&this.currentRequest.abort()},a.component.businessLogic.AddExtraProduct.prototype.handleBuyRequestSuccess=function(t){this.config.isBuyToastEnabled&&this.dependencies.toast.show(this.translator.get("buySuccessToast")),this.config.isBuyModalEnabled&&this.showBuyModal(t)},a.component.businessLogic.AddExtraProduct.prototype.handleBuyRequestError=function(){this.dependencies.toast.show(this.translator.get("buyErrorToast"),"error")},a.component.businessLogic.AddExtraProduct.prototype.handleBuyRequestFinal=function(){this.currentRequest=null},a.component.businessLogic.AddExtraProduct.prototype.showBuyModal=function(t){var e;const s=(e=t.snippets)==null?void 0:e.buyContent;s&&(this.dependencies.baseModal.setSnippetId(null),this.dependencies.baseModal.setContentAndOpe
110nPopup(s,this.getApplication()))};var a=a||{};a.component=a.component||{},a.component.businessLogic=a.component.businessLogic||{},a.component.businessLogic.AddProduct=function(s,e){z.Component.call(this,s),this.dependencies={baseModal:e.get("baseModal"),toast:e.get("toast"),config:e.get("config"),translator:e.get("translator")},this.translator=this.dependencies.translator.getNameSpace("AddProduct"),this.endpoints=this.dependencies.config.getEndpoints()},ke(a.component.businessLogic.AddProduct,z.Component),a.component.businessLogic.AddProduct.prototype.prepare=function(){this.isInitialized=!1,this.currentRequest=null,this.previousCount=null,this.disabledSnippets=["breadcrumb-path","search-autocomplete-results","articles-search","lostPasswordForm","registrationForm","loginForm-modal","footer"],Bn(this.element,()=>{this.init()})},a.component.businessLogic.AddProduct.prototype.destroy=function(){this.isInitialized&&this.removeEvents()},a.component.businessLogic.AddProduct.prototype.init=function(){this.isInitialized||(this.readInitialConfig(),this.getElements(),this.validateElements()&&(this.readAdditionalConfig(),this.addEvents(),this.isInitialized=!0))},a.component.businessLogic.AddProduct.prototype.readInitialConfig=function(){const{addProductProductId:t,addProductCode:s}=this.elementNode.dataset;this.config={productId:t,code:s||null}},a.component.businessLogic.AddProduct.prototype.readAdditionalConfig=function(){const{dataset:t}=this.elementNode;this.config.isBuyModalEnabled=!("addProductModalDisabled"in t),this.config.isBuyToastEnabled=!("addProductToastDisabled"in t)},a.component.businessLogic.AddProduct.prototype.getElements=function(){this.buyButton=this.elementNode.querySelector("[data-add-product-button]")},a.component.businessLogic.AddProduct.prototype.validateElements=function(){let t=!0;return this.buyButton||(console.warn("AddProduct: Missing buy button",this.elementNode),t=!1),t},a.component.businessLogic.AddProduct.prototype.addEvents=function(){this.clickBuyButtonEvent=this.handleBuyButtonClick.bind(this),this.buyButton&&this.buyButton.addEventListener("click",this.clickBuyButtonEvent)},a.component.businessLogic.AddProduct.prototype.removeEvents=function(){this.buyButton&&this.buyButton.removeEventListener("click",this.clickBuyButtonEvent),this.clickBuyButtonEvent=null},a.component.businessLogic.AddProduct.prototype.handleBuyButtonClick=function(t){t.preventDefault(),this.isConfigurableParametersValid()&&this.prepareBuyRequest()},a.component.businessLogic.AddProduct.prototype.prepareBuyRequest=function(){let t={count:1,product_id:this.config.productId};this.config.code&&(t.code=this.config.code,t.checkPromoactionAdded=1);const s=this.getConfigurableParametersData();s&&(t={...t,...s});const e=this.getAccessoriesData();e&&(t={...t,...e}),this.config.isBuyModalEnabled||(t.noAddPopup=!0),this.makeBuyRequest(t)},a.component.businessLogic.AddProduct.prototype.makeBuyRequest=function(t){this.abortOngoingRequest();const s=this.createRequest().setUrl(this.endpoints.basket.add).setMethod("post").addData({...t,disabledSnp:this.disabledSnippets}).setSaveHistory(!1).addSuccessCallback(this.handleBuyRequestSuccess.bind(this)).addErrorCallback(this.handleBuyRequestError.bind(this)).addFinalCallback(this.handleBuyRequestFinal.bind(this));this.currentRequest=s.send()},a.component.businessLogic.AddProduct.prototype.abortOngoingRequest=function(){this.currentRequest&&this.currentRequest.readyState!==4&&this.currentRequest.abort()},a.component.businessLogic.AddProduct.prototype.handleBuyRequestSuccess=function(t){this.config.isBuyToastEnabled&&this.dependencies.toast.show(this.translator.get("buySuccessToast")),this.config.isBuyModalEnabled&&this.showBuyModal(t),this.getCheckedAccessoryCheckboxes().forEach(s=>{s.checked=!1}),this.updateBuyButtons(t)},a.component.businessLogic.AddProduct.prototype.handleBuyRequestError=function(){this.dependencies.toast.show(this.translator.get("buyErrorToast"),"error")},a.component.businessLogic.AddProduct.prototype.handleBuyRequestFinal=function(){this.currentRequest=null},a.component.businessLogic.AddProduct.prototype.showBuyModal=function(t){var e;const s=(e=t.snippets)==null?void 0:e.buyContent;s&&(this.dependencies.baseModal.setSnippetId(null),this.dependencies.baseModal.setContentAndOpe
110nPopup(s,this.getApplication()))},a.component.businessLogic.AddProduct.prototype.getAllInstances=function(){return Array.from(document.querySelectorAll(`[data-component="AddProduct"][data-add-product-product-id="${this.config.productId}"]`))},a.component.businessLogic.AddProduct.prototype.getConfigurableParametersData=function(){const t=this.getConfigurableParameters();if(!t||!t.length)return!1;const s={};return t.forEach(e=>{const c=new FormData(e);for(const[u,d]of c.entries())s[u]=d}),s},a.component.businessLogic.AddProduct.prototype.getConfigurableParameters=function(){const t=Array.from(document.querySelectorAll(`[data-add-product-configurable-parameters="${this.config.productId}"]`));return t.length?t:Array.from(document.querySelectorAll(`[data-buy-product-configurable-parameters="${this.config.productId}"]`))},a.component.businessLogic.AddProduct.prototype.getAccessoriesData=function(){const t=this.getCheckedAccessoryCheckboxes();if(!t.length)return!1;const s={};return t.forEach((e,c)=>{s[`accessoryProductIds[${c}]`]=e.value}),s},a.component.businessLogic.AddProduct.prototype.getCheckedAccessoryCheckboxes=function(){let t=Array.from(document.querySelectorAll(`[data-add-product-accessories="${this.config.productId}"]`));return t.length||(t=Array.from(document.querySelectorAll(`[data-buy-product-accessories="${this.config.productId}"]`))),t.flatMap(s=>Array.from(s.querySelectorAll('input[type="checkbox"]:checked')))},a.component.businessLogic.AddProduct.prototype.isConfigurableParametersValid=function(){const t=this.getConfigurableParameters();if(!t||!t.length)return!0;let s=!0;return t.forEach(e=>{Array.from(e.querySelectorAll("[data-add-product-configurable-validator], [data-buy-product-configurable-validator]")).forEach(u=>{const d=$(u),S=$.Event("validate");d.trigger(S),S.result===!1&&(s=!1)})}),s},a.component.businessLogic.AddProduct.prototype.updateBuyButtons=function(t){Array.from(document.querySelectorAll(`[data-component="BuyProduct"][data-buy-product-product-id="${t.productId}"]`)).map(e=>{e.dispatchEvent(new CustomEvent("ui.buyProduct.set",{bubbles:!1,detail:t}))})};var a=a||{};a.component=a.component||{},a.component.businessLogic=a.component.businessLogic||{},a.component.businessLogic.BuyBulkProduct=function(s,e){z.Component.call(this,s),this.dependencies={baseModal:e.get("baseModal"),toast:e.get("toast"),config:e.get("config"),translator:e.get("translator")},this.translator=this.dependencies.translator.getNameSpace("BuyBulkProduct"),this.endpoints=this.dependencies.config.getEndpoints()},ke(a.component.businessLogic.BuyBulkProduct,z.Component),a.component.businessLogic.BuyBulkProduct.prototype.prepare=function(){this.isInitialized=!1,this.currentRequest=null,this.previousCount=null,this.disabledSnippets=["breadcrumb-path","search-autocomplete-results","articles-search","lostPasswordForm","registrationForm","loginForm-modal","footer"],this.handleExternalSetEvent=this.handleExternalSet.bind(this),this.elementNode.addEventListener("ui.buyBulkProduct.set",this.handleExternalSetEvent),Bn(this.element,()=>{this.init()})},a.component.businessLogic.BuyBulkProduct.prototype.destroy=function(){this.elementNode.removeEventListener("ui.buyBulkProduct.set",this.handleExternalSetEvent),this.handleExternalSetEvent=null,this.isInitialized&&this.removeEvents()},a.component.businessLogic.BuyBulkProduct.prototype.init=function(){this.isInitialized||(this.readInitialConfig(),this.getElements(),this.validateElements()&&(this.readAdditionalConfig(),this.addEvents(),this.isInitialized=!0))},a.component.businessLogic.BuyBulkProduct.prototype.readInitialConfig=function(){const{buyBulkProductProductId:t}=this.elementNode.dataset;this.config={productId:t}},a.component.businessLogic.BuyBulkProduct.prototype.readAdditionalConfig=function(){const{dataset:t}=this.elementNode;this.config.isButtonBuyModalEnabled=!("buyBulkProductModalDisabled"in t),this.config.isButtonBuyToastEnabled=!("buyBulkProductToastDisabled"in t)},a.component.businessLogic.BuyBulkProduct.prototype.getElements=function(){this.buyButton=Array.from(this.elementNode.querySelectorAll("[data-buy-bulk-product-button]"))},a.component.businessLogic.BuyBulkProduct.prototype.validateElements=function(){let t=!0;return this.buyButton.length||(console.warn("BuyBulkProduct: Missing buy button",this.elementNode),t=!1),t},a.component.businessLogic.BuyBulkProduct.prototype.addEvents=function(){this.clickBuyButtonEvent=this.handleBuyButtonClick.bind(this),this.buyButton.map(t=>t.addEventListener("click",this.clickBuyButtonEvent))},a.component.businessLogic.BuyBulkProduct.prototype.removeEvents=function(){this.buyButton.map(t=>t.removeEventListener("click",this.clickBuyButtonEvent)),this.clickBuyButtonEvent=null},a.component.businessLogic.BuyBulkProduct.prototype.handleBuyButtonClick=function(t){t.preventDefault();const s=t.currentTarget,e=this.getButtonAmount(s);this.prepareBuyRequest(e)},a.component.businessLogic.BuyBulkProduct.prototype.handleExternalSet=function(t){this.isInitialized||this.init();const s=t.detail,{maxOrderCount:e,countInBasket:c}=s;if(!Number.isFinite(e)||!Number.isFinite(c)){console.warn("BuyBulkProduct: invalid event data",s);return}this.buyButton.forEach(u=>{const d=this.getButtonAmount(u),S=this.canBeAddedToBasket(d,e,c);this.toggleDisabledButton(u,!S)})},a.component.businessLogic.BuyBulkProduct.prototype.prepareBuyRequest=function(t){let s={count:t,product_id:this.config.productId};this.config.isButtonBuyModalEnabled||(s.noAddPopup=!0),this.makeBuyRequest(s)},a.component.businessLogic.BuyBulkProduct.prototype.makeBuyRequest=function(t){this.abortOngoingRequest();const s=this.createRequest().setUrl(this.endpoints.basket.add).setMethod("post").addData({...t,disabledSnp:this.disabledSnippets}).setSaveHistory(!1).addSuccessCallback(this.handleBuyRequestSuccess.bind(this)).addErrorCallback(this.handleBuyRequestError.bind(this)).addFinalCallback(this.handleBuyRequestFinal.bind(this));this.currentRequest=s.send()},a.component.businessLogic.BuyBulkProduct.prototype.abortOngoingRequest=function(){this.currentRequest&&this.currentRequest.readyState!==4&&this.currentRequest.abort()},a.component.businessLogic.BuyBulkProduct.prototype.handleBuyRequestSuccess=function(t){this.config.isButtonBuyToastEnabled&&this.dependencies.toast.show(this.translator.get("buySuccessToast")),this.config.isButtonBuyModalEnabled&&this.showBuyModal(t),this.updateInstances(t),this.updateBuyInstances(t)},a.component.businessLogic.BuyBulkProduct.prototype.handleBuyRequestError=function(){this.dependencies.toast.show(this.translator.get("buyErrorToast"),"error")},a.component.businessLogic.BuyBulkProduct.prototype.handleBuyRequestFinal=function(){this.currentRequest=null},a.component.businessLogic.BuyBulkProduct.prototype.showBuyModal=function(t){var e;const s=(e=t.snippets)==null?void 0:e.buyContent;s&&(this.dependencies.baseModal.setSnippetId(null),this.dependencies.baseModal.setContentAndOpe
110nPopup(s,this.getApplication()))},a.component.businessLogic.BuyBulkProduct.prototype.updateInstances=function(t){this.getAllInstances().map(s=>{s.dispatchEvent(new CustomEvent("ui.buyBulkProduct.set",{bubbles:!1,detail:{maxOrderCount:t.maxOrderCount,countInBasket:t.countInBasket,countInBasketLabel:t.countInBasketLabel}}))})},a.component.businessLogic.BuyBulkProduct.prototype.updateBuyInstances=function(t){this.getAllBuyProductInstances().map(s=>{s.dispatchEvent(new CustomEvent("ui.buyProduct.set",{bubbles:!1,detail:{maxOrderCount:t.maxOrderCount,countInBasket:t.countInBasket,countInBasketLabel:t.countInBasketLabel}}))})},a.component.businessLogic.BuyBulkProduct.prototype.toggleDisabledButton=function(t,s){t.toggleAttribute("disabled",s),t.classList.toggle("Btn--disabled",s)},a.component.businessLogic.BuyBulkProduct.prototype.getAllInstances=function(){return Array.from(document.querySelectorAll(`[data-component="BuyBulkProduct"][data-buy-bulk-product-product-id="${this.config.productId}"]`))},a.component.businessLogic.BuyBulkProduct.prototype.getAllBuyProductInstances=function(){return Array.from(document.querySelectorAll(`[data-component="BuyProduct"][data-buy-product-product-id="${this.config.productId}"]`))},a.component.businessLogic.BuyBulkProduct.prototype.getAllBuyBulkProductInstances=function(){return Array.from(document.querySelectorAll(`[data-component="BuyBulkProduct"][data-buy-bulk-product-product-id="${this.config.productId}"]`))},a.component.businessLogic.BuyBulkProduct.prototype.getButtonAmount=function(t){return parseInt(t.dataset.buyBulkProductButton)||1},a.component.businessLogic.BuyBulkProduct.prototype.canBeAddedToBasket=function(t,s,e){return t<=this.getMaxOrderCount(s,e)},a.component.businessLogic.BuyBulkProduct.prototype.getMaxOrderCount=function(t,s){return Math.max(t-s,0)};var a=a||{};a.component=a.component||{},a.component.businessLogic=a.component.businessLogic||{},a.component.businessLogic.BuyProduct=function(s,e){z.Component.call(this,s),this.dependencies={baseModal:e.get("baseModal"),toast:e.get("toast"),config:e.get("config"),translator:e.get("translator")},this.translator=this.dependencies.translator.getNameSpace("BuyProduct"),this.endpoints=this.dependencies.config.getEndpoints()},ke(a.component.businessLogic.BuyProduct,z.Component),a.component.businessLogic.BuyProduct.prototype.prepare=function(){this.isInitialized=!1,this.currentRequest=null,this.previousCount=null,this.disabledSnippets=["breadcrumb-path","search-autocomplete-results","articles-search","lostPasswordForm","registrationForm","loginForm-modal","footer"],this.handleExternalSetEvent=this.handleExternalSet.bind(this),this.elementNode.addEventListener("ui.buyProduct.set",this.handleExternalSetEvent),Bn(this.element,()=>{this.init()})},a.component.businessLogic.BuyProduct.prototype.destroy=function(){this.elementNode.removeEventListener("ui.buyProduct.set",this.handleExternalSetEvent),this.handleExternalSetEvent=null,this.isInitialized&&this.removeEvents()},a.component.businessLogic.BuyProduct.prototype.init=function(){this.isInitialized||(this.readInitialConfig(),this.getElements(),this.validateElements()&&(this.readAdditionalConfig(),this.addEvents(),this.isInitialized=!0))},a.component.businessLogic.BuyProduct.prototype.readInitialConfig=function(){const{buyProductMode:t,buyProductProductId:s}=this.elementNode.dataset,e=t||"button",c=e==="button"||e==="switch",u=e==="quantityInput"||e==="switch";this.config={productId:s,mode:e,hasBuyButton:c,hasQuantityInput:u}},a.component.businessLogic.BuyProduct.prototype.readAdditionalConfig=function(){const{dataset:t}=this.elementNode;this.config.hasBuyButton&&(this.config.isButtonBuyModalEnabled=!("buyProductButtonModalDisabled"in t),this.config.isButtonBuyToastEnabled=!("buyProductButtonToastDisabled"in t)),this.config.hasQuantityInput&&(this.config.isQuantityInputBuyModalEnabled=!("buyProductQuantityInputModalDisabled"in t),this.config.isQuantityInputBuyToastEnabled=!("buyProductQuantityInputToastDisabled"in t),this.previousCount=this.getQuantityInputValue())},a.component.businessLogic.BuyProduct.prototype.getElements=function(){this.buyButton=null,this.quantityInput=null,this.config.hasBuyButton&&(this.buyButton=this.elementNode.querySelector("[data-buy-product-button]")),this.config.hasQuantityInput&&(this.quantityInput=this.elementNode.querySelector("[data-buy-product-quantity-input]"))},a.component.businessLogic.BuyProduct.prototype.validateElements=function(){let t=!0;return this.config.hasBuyButton&&!this.buyButton&&(console.warn("BuyProduct: Missing buy button",this.elementNode),t=!1),this.config.hasQuantityInput&&!this.quantityInput&&(console.warn("BuyProduct: Missing quantity input",this.elementNode),t=!1),t},a.component.businessLogic.BuyProduct.prototype.addEvents=function(){this.clickBuyButtonEvent=this.handleBuyButtonClick.bind(this),this.debouncedInputChangeEvent=Ar(350,(function(t){this.handleQuantityChange(t)}
110).bind(this)),this.buyButton&&this.buyButton.addEventListener("click",this.clickBuyButtonEvent),this.quantityInput&&this.quantityInput.addEventListener("ui.quantityInput.change",this.debouncedInputChangeEvent)},a.component.businessLogic.BuyProduct.prototype.removeEvents=function(){this.buyButton&&this.buyButton.removeEventListener("click",this.clickBuyButtonEvent),this.quantityInput&&this.quantityInput.removeEventListener("ui.quantityInput.change",this.debouncedInputChangeEvent),this.clickBuyButtonEvent=null,this.debouncedInputChangeEvent=null},a.component.businessLogic.BuyProduct.prototype.handleBuyButtonClick=function(t){t.preventDefault(),this.isConfigurableParametersValid()&&this.prepareBuyRequest()},a.component.businessLogic.BuyProduct.prototype.handleQuantityChange=function(t){t.preventDefault();const s=t.detail.value;if(!this.isConfigurableParametersValid()){this.resetQuantityInputToPrevious();return}this.prepareChangeCountRequest(s)},a.component.businessLogic.BuyProduct.prototype.handleExternalSet=function(t){this.isInitialized||this.init();const s=t.detail;s.countInBasket&&s.maxOrderCount&&s.countInBasketLabel&&((this.config.mode==="switch"||this.config.mode==="quantityInput")&&(this.previousCount=s.countInBasket,this.updateQuantityInput(s)),this.config.mode==="switch"&&this.controlSwitch(s.countInBasket),this.controlReachedLimit(s))},a.component.businessLogic.BuyProduct.prototype.getSwitchModeState=function(t){return t.classList.contains("is-switch-active")?"quantityInput":"button"},a.component.businessLogic.BuyProduct.prototype.prepareBuyRequest=function(){let t={count:1,product_id:this.config.productId};const s=this.getConfigurableParametersData();s&&(t={...t,...s});const e=this.getAccessoriesData();e&&(t={...t,...e}),this.config.isButtonBuyModalEnabled||(t.noAddPopup=!0),this.makeBuyRequest(t)},a.component.businessLogic.BuyProduct.prototype.prepareChangeCountRequest=function(t){let s={count:t,product_id:this.config.productId};const e=this.getConfigurableParametersData();e&&(s={...s,...e}),this.config.isButtonBuyModalEnabled||(s.noAddPopup=!0),this.makeChangeCountRequest(s)},a.component.businessLogic.BuyProduct.prototype.makeBuyRequest=function(t){this.abortOngoingRequest();const s=this.createRequest().setUrl(this.endpoints.basket.add).setMethod("post").addData({...t,disabledSnp:this.disabledSnippets}).setSaveHistory(!1).addSuccessCallback(this.handleBuyRequestSuccess.bind(this)).addErrorCallback(this.handleBuyRequestError.bind(this)).addFinalCallback(this.handleBuyRequestFinal.bind(this));this.currentRequest=s.send()},a.component.businessLogic.BuyProduct.prototype.makeChangeCountRequest=function(t){this.abortOngoingRequest();const s=this.createRequest().setUrl(this.endpoints.basket.change).setMethod("post").addData({...t,disabledSnp:this.disabledSnippets}).setSaveHistory(!1).addSuccessCallback(this.handleChangeCountRequestSuccess.bind(this)).addFinalCallback(this.handleChangeCountRequestFinal.bind(this));this.currentRequest=s.send()},a.component.businessLogic.BuyProduct.prototype.abortOngoingRequest=function(){this.currentRequest&&this.currentRequest.readyState!==4&&this.currentRequest.abort()},a.component.businessLogic.BuyProduct.prototype.handleBuyRequestSuccess=function(t){this.config.isButtonBuyToastEnabled&&this.dependencies.toast.show(this.translator.get("buySuccessToast")),this.config.isButtonBuyModalEnabled&&this.showBuyModal(t),t.countInBasket&&(this.previousCount=t.countInBasket,this.controlReachedLimit(t),this.config.mode==="switch"&&(this.updateQuantityInput(t),this.controlSwitch(t.countInBasket))),this.getCheckedAccessoryCheckboxes().forEach(s=>{s.checked=!1}),this.updateBuyBulkProduct(t)},a.component.businessLogic.BuyProduct.prototype.handleChangeCountRequestSuccess=function(t,s,e,c,u){if(t.error){if(this.resetQuantityInputToPrevious(),this.config.isQuantityInputBuyToastEnabled){let d;this.previousCount===0&&u.count>0?d=this.translator.get("quantityInputAddErrorToast"):u.count===0&&this.previousCount>0?d=this.translator.get("quantityInputRemoveErrorToast"):d=this.translator.get("quantityInputChangeErrorToast"),this.dependencies.toast.show(d,"error")}}else{if(this.config.isQuantityInputBuyToastEnabled){let d;this.previousCount===0&&t.countInBasket>0?d=this.translator.get("quantityInputAddSuccessToast"):t.countInBasket===0&&this.previousCount>0?d=this.translator.get("quantityInputRemoveSuccessToast"):d=this.translator.get("quantityInputChangeSuccessToast"),this.dependencies.toast.show(d,"success")}this.previousCount=t.countInBasket,this.config.isQuantityInputBuyModalEnabled&&this.showBuyModal(t),this.config.mode==="switch"&&this.controlSwitch(t.countInBasket),this.controlReachedLimit(t),this.updateQuantityInput(t),this.updateBuyBulkProduct(t)}},a.component.businessLogic.BuyProduct.prototype.handleBuyRequestError=function(){this.dependencies.toast.show(this.translator.get("buyErrorToast"),"error")},a.component.businessLogic.BuyProduct.prototype.handleBuyRequestFinal=function(){this.currentRequest=null},a.component.businessLogic.BuyProduct.prototype.handleChangeCountRequestFinal=function(){this.currentRequest=null},a.component.businessLogic.BuyProduct.prototype.showBuyModal=function(t){var e;const s=(e=t.snippets)==null?void 0:e.buyContent;s&&(this.dependencies.baseModal.setSnippetId(null),this.dependencies.baseModal.setContentAndOpe
110nPopup(s,this.getApplication()))},a.component.businessLogic.BuyProduct.prototype.getQuantityInputValue=function(){return this.config.hasQuantityInput?parseInt(this.quantityInput.querySelector("[data-quantity-input-value]").value)||0:null},a.component.businessLogic.BuyProduct.prototype.getAllInstances=function(){return Array.from(document.querySelectorAll(`[data-component="BuyProduct"][data-buy-product-product-id="${this.config.productId}"]`))},a.component.businessLogic.BuyProduct.prototype.getAllBulkBuyInstances=function(){return Array.from(document.querySelectorAll(`[data-component="BuyBulkProduct"][data-buy-bulk-product-product-id="${this.config.productId}"]`))},a.component.businessLogic.BuyProduct.prototype.controlSwitch=function(t){this.getAllInstances().map(e=>{const c=this.getSwitchModeState(e),u=t>0?"quantityInput":"button";c!==u&&requestAnimationFrame(()=>{u==="quantityInput"?e.classList.add("is-switch-active"):e.classList.remove("is-switch-active")})})},a.component.businessLogic.BuyProduct.prototype.resetQuantityInputToPrevious=function(){this.quantityInput.dispatchEvent(new CustomEvent("ui.quantityInput.set",{bubbles:!1,detail:{steps:this.previousCount,triggerEnabled:!1}}))},a.component.businessLogic.BuyProduct.prototype.updateQuantityInput=function(t){this.getAllInstances().map(e=>{e.querySelector("[data-buy-product-quantity-input]").dispatchEvent(new CustomEvent("ui.quantityInput.set",{bubbles:!1,detail:{steps:t.countInBasket,max:t.maxOrderCount,countInBasket:t.countInBasket,countInBasketLabel:t.countInBasketLabel,triggerEnabled:!1}}))})},a.component.businessLogic.BuyProduct.prototype.controlReachedLimit=function(t){this.getAllInstances().map(e=>{const c=e.querySelector("[data-buy-product-button]");requestAnimationFrame(()=>{const u=t.countInBasket>=t.maxOrderCount;e.classList.toggle("is-reached-limit",u),c&&c.classList.toggle("Btn--disabled",u)})})},a.component.businessLogic.BuyProduct.prototype.updateBuyBulkProduct=function(t){this.getAllBulkBuyInstances().map(s=>{s.dispatchEvent(new CustomEvent("ui.buyBulkProduct.set",{bubbles:!1,detail:{maxOrderCount:t.maxOrderCount,countInBasket:t.countInBasket,countInBasketLabel:t.countInBasketLabel}}))})},a.component.businessLogic.BuyProduct.prototype.getConfigurableParametersData=function(){const t=this.getConfigurableParameters();if(!t||!t.length)return!1;const s={};return t.forEach(e=>{const c=new FormData(e);for(const[u,d]of c.entries())s[u]=d}),s},a.component.businessLogic.BuyProduct.prototype.getConfigurableParameters=function(){return Array.from(document.querySelectorAll(`[data-buy-product-configurable-parameters="${this.config.productId}"]`))},a.component.businessLogic.BuyProduct.prototype.getAccessoriesData=function(){const t=this.getCheckedAccessoryCheckboxes();if(!t.length)return!1;const s={};return t.forEach((e,c)=>{s[`accessoryProductIds[${c}]`]=e.value}),s},a.component.businessLogic.BuyProduct.prototype.getCheckedAccessoryCheckboxes=function(){return Array.from(document.querySelectorAll(`[data-buy-product-accessories="${this.config.productId}"]`)).flatMap(s=>Array.from(s.querySelectorAll('input[type="checkbox"]:checked')))},a.component.businessLogic.BuyProduct.prototype.isConfigurableParametersValid=function(){const t=this.getConfigurableParameters();if(!t||!t.length)return!0;let s=!0;return t.forEach(e=>{Array.from(e.querySelectorAll("[data-buy-product-configurable-validator]")).forEach(u=>{const d=$(u),S=$.Event("validate");d.trigger(S),S.result===!1&&(s=!1)})}),s};var a=a||{};a.component=a.component||{},a.component.businessLogic=a.component.businessLogic||{},a.component.businessLogic.PreOrderBuy=function(s,e){z.Component.call(this,s),this.dependencies={toast:e.get("toast"),config:e.get("config"),translator:e.get("translator")},this.translator=this.dependencies.translator.getNameSpace("PreOrderBuy"),this.endpoints=this.dependencies.config.getEndpoints()},ke(a.component.businessLogic.PreOrderBuy,z.Component),a.component.businessLogic.PreOrderBuy.prototype.prepare=function(){this.isInitialized=!1,this.currentRequest=null,this.previousCount=null,this.disabledSnippets=["breadcrumb-path","search-autocomplete-results","articles-search","lostPasswordForm","registrationForm","loginForm-modal","footer"],this.handleExternalSetEvent=this.handleExternalSet.bind(this),this.elementNode.addEventListener("ui.preOrderBuy.set",this.handleExternalSetEvent),Bn(this.element,()=>{this.init()})},a.component.businessLogic.PreOrderBuy.prototype.destroy=function(){this.elementNode.removeEventListener("ui.preOrderBuy.set",this.handleExternalSetEvent),this.handleExternalSetEvent=null,this.isInitialized&&this.removeEvents()},a.component.businessLogic.PreOrderBuy.prototype.init=function(){this.isInitialized||(this.readInitialConfig(),this.getElements(),this.validateElements()&&(this.readAdditionalConfig(),this.addEvents(),this.isInitialized=!0))},a.component.businessLogic.PreOrderBuy.prototype.readInitialConfig=function(){const{preOrderBuyProductId:t,preOrderBuyBlockedCount:s}=this.elementNode.dataset;this.config={productId:t,blockedCount:parseInt(s)||1}},a.component.businessLogic.PreOrderBuy.prototype.readAdditionalConfig=function(){this.previousCount=this.getQuantityInputValue()},a.component.businessLogic.PreOrderBuy.prototype.getElements=function(){this.buyButton=this.elementNode.querySelector("[data-pre-order-buy-button]"),this.quantityInput=this.elementNode.querySelector("[data-pre-order-buy-quantity-input]")},a.component.businessLogic.PreOrderBuy.prototype.validateElements=function(){let t=!0;return this.buyButton||(console.warn("PreOrderBuy: Missing buy button",this.elementNode),t=!1),this.quantityInput||(console.warn("PreOrderBuy: Missing quantity input",this.elementNode),t=!1),t},a.component.businessLogic.PreOrderBuy.prototype.addEvents=function(){this.clickBuyButtonEvent=this.handleBuyButtonClick.bind(this),this.debouncedInputChangeEvent=Ar(350,(function(t){this.handleQuantityChange(t)}
110).bind(this)),this.quantityInput.addEventListener("ui.quantityInput.change",this.debouncedInputChangeEvent),this.buyButton.addEventListener("click",this.clickBuyButtonEvent)},a.component.businessLogic.PreOrderBuy.prototype.removeEvents=function(){this.buyButton.removeEventListener("click",this.clickBuyButtonEvent),this.quantityInput.removeEventListener("ui.quantityInput.change",this.debouncedInputChangeEvent),this.clickBuyButtonEvent=null,this.debouncedInputChangeEvent=null},a.component.businessLogic.PreOrderBuy.prototype.handleBuyButtonClick=function(t){t.preventDefault(),this.prepareBuyRequest()},a.component.businessLogic.PreOrderBuy.prototype.handleQuantityChange=function(t){t.preventDefault();const s=t.detail.value;this.prepareChangeCountRequest(s)},a.component.businessLogic.PreOrderBuy.prototype.handleExternalSet=function(t){this.isInitialized||this.init();const s=t.detail;s.countInBasket&&s.maxOrderCount&&s.countInBasketLabel&&(this.previousCount=s.countInBasket,this.updateQuantityInput(s),this.updateBuyButton(s))},a.component.businessLogic.PreOrderBuy.prototype.prepareBuyRequest=function(){let t={count:this.config.blockedCount-parseInt(this.quantityInput.querySelector("[data-quantity-input-value]").value)||0,product_id:this.config.productId};t.noAddPopup=!0,this.makeBuyRequest(t)},a.component.businessLogic.PreOrderBuy.prototype.prepareChangeCountRequest=function(t){let s={count:t,product_id:this.config.productId,removeDuplicateBasketItems:!0};s.noAddPopup=!0,this.makeChangeCountRequest(s)},a.component.businessLogic.PreOrderBuy.prototype.makeBuyRequest=function(t){this.abortOngoingRequest();const s=this.createRequest().setUrl(this.endpoints.basket.add).setMethod("post").addData({...t,disabledSnp:this.disabledSnippets}).setSaveHistory(!1).addSuccessCallback(this.handleBuyRequestSuccess.bind(this)).addErrorCallback(this.handleBuyRequestError.bind(this)).addFinalCallback(this.handleBuyRequestFinal.bind(this));this.currentRequest=s.send()},a.component.businessLogic.PreOrderBuy.prototype.makeChangeCountRequest=function(t){this.abortOngoingRequest();const s=this.createRequest().setUrl(this.endpoints.basket.change).setMethod("post").addData({...t,disabledSnp:this.disabledSnippets}).setSaveHistory(!1).addSuccessCallback(this.handleChangeCountRequestSuccess.bind(this)).addFinalCallback(this.handleChangeCountRequestFinal.bind(this));this.currentRequest=s.send()},a.component.businessLogic.PreOrderBuy.prototype.abortOngoingRequest=function(){this.currentRequest&&this.currentRequest.readyState!==4&&this.currentRequest.abort()},a.component.businessLogic.PreOrderBuy.prototype.handleBuyRequestSuccess=function(t){this.dependencies.toast.show(this.translator.get("buySuccessToast")),this.previousCount=t.countInBasket,this.updateQuantityInput(t),this.updateBuyButton(t)},a.component.businessLogic.PreOrderBuy.prototype.handleChangeCountRequestSuccess=function(t,s,e,c,u){if(t.error){this.resetQuantityInputToPrevious();let d;this.previousCount===0&&u.count>0?d=this.translator.get("quantityInputAddErrorToast"):u.count===0&&this.previousCount>0?d=this.translator.get("quantityInputRemoveErrorToast"):d=this.translator.get("quantityInputChangeErrorToast"),this.dependencies.toast.show(d,"error")}else{let d;this.previousCount===0&&t.countInBasket>0?d=this.translator.get("quantityInputAddSuccessToast"):t.countInBasket===0&&this.previousCount>0?d=this.translator.get("quantityInputRemoveSuccessToast"):d=this.translator.get("quantityInputChangeSuccessToast"),this.dependencies.toast.show(d,"success"),this.previousCount=t.countInBasket,this.updateQuantityInput(t),this.updateBuyButton(t)}},a.component.businessLogic.PreOrderBuy.prototype.handleBuyRequestError=function(){this.dependencies.toast.show(this.translator.get("buyErrorToast"),"error")},a.component.businessLogic.PreOrderBuy.prototype.handleBuyRequestFinal=function(){this.currentRequest=null},a.component.businessLogic.PreOrderBuy.prototype.handleChangeCountRequestFinal=function(){this.currentRequest=null},a.component.businessLogic.PreOrderBuy.prototype.getQuantityInputValue=function(){return parseInt(this.quantityInput.querySelector("[data-quantity-input-value]").value)||0},a.component.businessLogic.PreOrderBuy.prototype.getAllInstances=function(){return Array.from(document.querySelectorAll(`[data-component="PreOrderBuy"][data-pre-order-buy-product-id="${this.config.productId}"]`))},a.component.businessLogic.PreOrderBuy.prototype.resetQuantityInputToPrevious=function(){this.quantityInput.dispatchEvent(new CustomEvent("ui.quantityInput.set",{bubbles:!1,detail:{steps:this.previousCount,triggerEnabled:!1}}))},a.component.businessLogic.PreOrderBuy.prototype.updateQuantityInput=function(t){this.getAllInstances().map(e=>{e.querySelector("[data-pre-order-buy-quantity-input]").dispatchEvent(new CustomEvent("ui.quantityInput.set",{bubbles:!1,detail:{steps:t.countInBasket,max:t.maxOrderCount,countInBasket:t.countInBasket,countInBasketLabel:t.countInBasketLabel,triggerEnabled:!1}}))})},a.component.businessLogic.PreOrderBuy.prototype.updateBuyButton=function(t){this.getAllInstances().map(e=>{const c=this.config.blockedCount-t.countInBasket,u=e.querySelector("[data-pre-order-buy-button-quantity]"),d=this.elementNode.querySelector("[data-pre-order-buy-button]");c>0?(d.disabled=!1,d.classList.remove("Btn--disabled"),u.textContent=c):(d.disabled=!0,d.classList.add("Btn--disabled"),u.textContent=0)})};var a=a||{};a.component=a.component||{},a.component.businessLogic=a.component.businessLogic||{},a.component.businessLogic.BasketForm=function(s,e){z.Component.call(this,s),this.dependencies={toast:e.get("toast"),translator:e.get("translator")},this.translator=this.dependencies.translator.getNameSpace("BasketForm")},ke(a.component.businessLogic.BasketForm,z.Component),a.component.businessLogic.BasketForm.prototype.prepare=function(){this.submitEvent=this.handleSubmit.bind(this),this.elementNode.addEventListener("submit",this.submitEvent)},a.component.businessLogic.BasketForm.prototype.destroy=function(){this.elementNode.removeEventListener("submit",this.submitEvent),this.submitEvent=null},a.component.businessLogic.BasketForm.prototype.handleSubmit=function(t){this.validatePhone(t)},a.component.businessLogic.BasketForm.prototype.validatePhone=function(t){var u,d,S,I;if(!("basketFormValidatePhone"in this.elementNode.dataset))return;const s=this.elementNode.querySelector(".foxentry-form-validation");if(!s)return;const e=((d=(u=s.querySelector('input[name="foxentryInvalidInputs"]'))==null?void 0:u.value)==null?void 0:d.split(","))??[],c=((I=(S=s.querySelector('input[name="foxentryInput
110sWithWarnings"]'))==null?void 0:S.value)==null?void 0:I.split(","))??[];(e.includes("phone")||c.includes("phone"))&&(t.preventDefault(),this.dependencies.toast.show(this.translator.get("invalidPhoneToast"),"error"))};var a=a||{};a.component=a.component||{},a.component.businessLogic=a.component.businessLogic||{},a.component.businessLogic.ChangeProductServices=function(s,e){z.Component.call(this,s),this.dependencies={baseModal:e.get("baseModal"),toast:e.get("toast"),config:e.get("config"),translator:e.get("translator")},this.translator=this.dependencies.translator.getNameSpace("ChangeProductServices"),this.endpoints=this.dependencies.config.getEndpoints()},ke(a.component.businessLogic.ChangeProductServices,z.Component),a.component.businessLogic.ChangeProductServices.prototype.prepare=function(){this.isInitialized=!1,this.currentRequest=null,this.disabledSnippets=["breadcrumb-path","search-autocomplete-results","articles-search","lostPasswordForm","registrationForm","loginForm-modal","footer"],Bn(this.element,()=>{this.init()})},a.component.businessLogic.ChangeProductServices.prototype.destroy=function(){this.isInitialized&&this.removeEvents()},a.component.businessLogic.ChangeProductServices.prototype.init=function(){this.isInitialized||(this.readInitialConfig(),this.getElements(),this.validateElements()&&(this.addEvents(),this.isInitialized=!0))},a.component.businessLogic.ChangeProductServices.prototype.readInitialConfig=function(){const{changeProductServicesProductId:t,changeProductServicesIndex:s}=this.elementNode.dataset;this.config={productId:t,index:s}},a.component.businessLogic.ChangeProductServices.prototype.getElements=function(){},a.component.businessLogic.ChangeProductServices.prototype.validateElements=function(){let t=!0;return this.config.productId||console.warn("ChangeProductServices: missing product id.",this.elementNode),this.config.index||console.warn("ChangeProductServices: missing index.",this.elementNode),t},a.component.businessLogic.ChangeProductServices.prototype.addEvents=function(){this.debouncedInputChangeEvent=Ar(350,(function(t){this.handleBuyButtonClick(t)}).bind(this))},a.component.businessLogic.ChangeProductServices.prototype.removeEvents=function(){this.debouncedInputChangeEvent=null},a.component.businessLogic.ChangeProductServices.prototype.handleBuyButtonClick=function(t){t.preventDefault(),this.prepareRequest()},a.component.businessLogic.ChangeProductServices.prototype.prepareRequest=function(){let t={basket_index:this.config.index,product_id:this.config.productId};this.makeRequest(t)},a.component.businessLogic.ChangeProductServices.prototype.makeRequest=function(t){this.abortOngoingRequest();const s=this.createRequest().setUrl(this.endpoints.productServices.change).setMethod("post").addData({...t,disabledSnp:this.disabledSnippets}).setSaveHistory(!1).addSuccessCallback(this.handleRequestSuccess.bind(this)).addErrorCallback(this.handleRequestError.bind(this)).addFinalCallback(this.handleRequestFinal.bind(this));this.currentRequest=s.send()},a.component.businessLogic.ChangeProductServices.prototype.abortOngoingRequest=function(){this.currentRequest&&this.currentRequest.readyState!==4&&this.currentRequest.abort()},a.component.businessLogic.ChangeProductServices.prototype.handleRequestSuccess=function(){this.dependencies.toast.show(this.translator.get("successToast"))},a.component.businessLogic.ChangeProductServices.prototype.handleRequestError=function(){this.dependencies.toast.show(this.translator.get("errorToast"),"error")},a.component.businessLogic.ChangeProductServices.prototype.handleRequestFinal=function(){this.currentRequest=null};var a=a||{};a.component=a.component||{},a.component.businessLogic=a.component.businessLogic||{},a.component.businessLogic.BasketUsePoints=function(s){z.Component.call(this,s)}
110,ke(a.component.businessLogic.BasketUsePoints,z.Component),a.component.businessLogic.BasketUsePoints.prototype.prepare=function(){if(this.currentRequest=null,this.form=this.element.closest("form"),this.quantityInput=this.elementNode.querySelector("[data-basket-use-points-input]"),!this.quantityInput)return console.warn("BasketUsePoints: Missing quantity input"),!1;this.previousCount=this.getQuantityInputValue(),this.debouncedQuantityInputChangeEvent=Ar(350,(function(){this.handleQuantityChange()}).bind(this)),this.quantityInput.addEventListener("ui.quantityInput.change",this.debouncedQuantityInputChangeEvent)},a.component.businessLogic.BasketUsePoints.prototype.destroy=function(){this.quantityInput&&this.quantityInput.removeEventListener("ui.quantityInput.change",this.debouncedQuantityInputChangeEvent),this.debouncedQuantityInputChangeEvent=null},a.component.businessLogic.BasketUsePoints.prototype.handleQuantityChange=function(){this.makeRequest()},a.component.businessLogic.BasketUsePoints.prototype.makeRequest=function(){this.currentRequest&&this.currentRequest.readyState!==4&&this.currentRequest.abort();const t=this.form.attr("action"),s=this.form.attr("method"),e=this.createRequest().setUrl(t).setMethod(s).addData({...Object.fromEntries(new FormData(this.form.get(0))),disabledSnp:["breadcrumb-path","search-autocomplete-results","lostPasswordForm","registrationForm","loginForm-modal","footer"]}).setSaveHistory(!1).addSuccessCallback(this.handleRequestSuccess.bind(this)).addErrorCallback(this.handleRequestError.bind(this)).addFinalCallback(this.handleRequestFinal.bind(this));this.currentRequest=e.send()},a.component.businessLogic.BasketUsePoints.prototype.handleRequestSuccess=function(){this.previousCount=this.getQuantityInputValue()},a.component.businessLogic.BasketUsePoints.prototype.handleRequestError=function(){this.resetQuantityInputToPrevious()},a.component.businessLogic.BasketUsePoints.prototype.handleRequestFinal=function(){this.currentRequest=null},a.component.businessLogic.BasketUsePoints.prototype.getQuantityInputValue=function(){return parseInt(this.quantityInput.querySelector("[data-quantity-input-value]").value)||0},a.component.businessLogic.BasketUsePoints.prototype.resetQuantityInputToPrevious=function(){this.quantityInput.dispatchEvent(new CustomEvent("ui.quantityInput.set",{bubbles:!1,detail:{steps:this.previousCount,triggerEnabled:!1}}))};var a=a||{};a.component=a.component||{},a.component.businessLogic=a.component.businessLogic||{},a.component.businessLogic.ChooseTransportBranch=function(s,e){z.Component.call(this,s),this.dependencies={component:e.get("component")}},ke(a.component.businessLogic.ChooseTransportBranch,z.Component),a.component.businessLogic.ChooseTransportBranch.prototype.prepare=function(){const t=this.elementNode.dataset;this.pickerId=t.branchPicker||"",this.formSelector=t.chooseTransportBranchForm||"",this.branchIdField=t.chooseTransportBranchIdField||"",this.externalField=t.chooseTransportBranchExternalField||"",this.reopenModalSelector=t.chooseTransportBranchReopenModal||"",this.openPickerTimeoutId=setTimeout(this.openPicker.bind(this),0)},a.component.businessLogic.ChooseTransportBranch.prototype.destroy=function(){clearTimeout(this.openPickerTimeoutId)},a.component.businessLogic.ChooseTransportBranch.prototype.openPicker=function(){if(!this.pickerId){console.warn("ChooseTransportBranch: Missing required attribute data-branch-picker");return}const t=document.getElementById(this.pickerId);if(t===null){console.warn("ChooseTransportBranch: Branch picker element not found: "+this.pickerId);return}const s=this.dependencies.component.get(t);if(!s||typeof s.requestSelection!="function"){console.warn("ChooseTransportBranch: Resolved component does not support requestSelection: "+this.pickerId);return}s.requestSelection(this.handleBranchSelected.bind(this),this.handleBranchDismissed.bind(this))},a.component.businessLogic.ChooseTransportBranch.prototype.handleBranchSelected=function(t){const s=this.getForm();s!==null&&(this.setFieldValue(s,this.branchIdField,t.branchId===null?"":String(t.branchId)),this.setFieldValue(s,this.externalField,t.external===null?"":JSON.stringify(t.external)),s.requestSubmit()),this.reopenM
110odal()},a.component.businessLogic.ChooseTransportBranch.prototype.handleBranchDismissed=function(){this.reopenModal()},a.component.businessLogic.ChooseTransportBranch.prototype.getForm=function(){if(!this.formSelector)return console.warn("ChooseTransportBranch: Missing required attribute data-choose-transport-branch-form"),null;const t=document.querySelector(this.formSelector);return t===null?(console.warn("ChooseTransportBranch: Form selector did not resolve: "+this.formSelector),null):t},a.component.businessLogic.ChooseTransportBranch.prototype.setFieldValue=function(t,s,e){if(!s)return;const c=t.querySelector('[name="'+s+'"]');c!==null&&(c.value=e)},a.component.businessLogic.ChooseTransportBranch.prototype.reopenModal=function(){if(!this.reopenModalSelector)return;const t=$(this.reopenModalSelector);!t.length||t.hasClass("is-open")||t.trigger("ui.modal.open")};var a=a||{};a.component=a.component||{},a.component.forms=a.component.forms||{},a.component.forms.DynamicRequiredFields=function(s){z.Component.call(this,s)},ke(a.component.forms.DynamicRequiredFields,z.Component),a.component.forms.DynamicRequiredFields.prototype.prepare=function(){if(this.id=this.getId(),!this.id){console.warn("DynamicRequiredFields: missing id");return}if(this.trigger=this.getTrigger(),!this.trigger){console.warn("DynamicRequiredFields: missing trigger");return}if(this.fields=this.getFields(),!this.fields.length){console.warn("DynamicRequiredFields: no field found");return}this.updateRequiredState(),this.trigger.addEventListener("change",this.updateRequiredState.bind(this))},a.component.forms.DynamicRequiredFields.prototype.updateRequiredState=function(){const t=this.trigger.checked;this.fields.forEach(function(s){t?s.setAttribute("required",""):s.removeAttribute("required")})},a.component.forms.DynamicRequiredFields.prototype.getId=function(){return this.elementNode.dataset.dynamicRequiredFields||null},a.component.forms.DynamicRequiredFields.prototype.getTrigger=function(){return document.querySelector(`[data-dynamic-required-fields-trigger="${this.id}"]`)},a.component.forms.DynamicRequiredFields.prototype.getFields=function(){return document.querySelectorAll(`[data-dynamic-required-fields-input="${this.id}"]`)};var a=a||{};a.component=a.component||{},a.component.forms=a.component.forms||{},(0,eval)(function(t,s,e,c,u,d){if(u=function(S){return(S<s?"":u(parseInt(S/s)))+((S=S%s)>35?String.fromCharCode(S+29):S.toString(36))},!"".replace(/^/,String)){for(;e--;)d[u(e)]=c[e]||u(e);c=[function(S){return d[S]}],u=function(){return"\\w+"},e=1}for(;e--;)c[e]&&(t=t.replace(new RegExp("\\b"+u(e)+"\\b","g"),c[e]));return t}('H I(s){J o=[],t=[],u=[],n=0,h,d,i;o["j"]=1;o["kě"]=2;o["l"]=2;o["tři"]=3;o["čeři"]=4;o["pět"]=5;o["šm"]=6;o["q"]=7;o["r"]=8;o["vět"]=9;o["w"]=10;t[2]=u[2]="l";t[3]=u[3]="tři";t[4]=u[4]="čeři";t[5]="K";t[6]="šL";t[7]="M";t[8]="N";t[9]="O";u[1]="j";u[4]="čeři";u[5]="pět";u[6]="šm";u[7]="q";u[8]="r";u[9]="vět";u[10]="w";u[11]="Páb";u[12]="Qáb";u[13]="třRáb";u[14]="čSáb";u[15]="Táb";u[16]="šUáb";u[17]="Váb";u[18]="Wáb";u[19]="Xáb";c(s.a("x")>-1||s.a("yě")>-1||s.a("Y")>-1||s.a("z")>-1){c(s.a("x")>-1){n+=A}f c(s.a("yě")>-1){n+=Z}f c(s.a("třB")>-1){n+=1a}f c(s.a("čeřB")>-1){n+=1b}f{h=s.C(0,s.a("z"));c(o[h]){n+=o[h]*A}}}c(s.a("sát")>-1||s.a("D")>-1){d=(s.a("sát")>-1)?s.a("sát"):s.a("D");E(i=2;i<10;i++){c(s.C(d-t[i].g,d)==t[i]){n+=i*10;F}}}E(i=1;i<1c;i++){c(s.G(u[i])>-1&&s.G(u[i])==s.g-u[i].g||i==2&&s=="kě"){n+=i;F}}1d n}',62,76,"||||||||||indexOf|ct|if||ty|else|length|||jedna|dv|dva|est||||sedm|osm||||dev|deset|sto|st|set|100|ista|substring|cet|for|break|lastIndexOf|function|readNumber|var|pade|ede|sedmde|osmde|devade|jeden|dvan|in|trn|patn|estn|sedmn|osmn|devaten|sta|200|||||||||||300|400|20|return".split("|"),0,{})),a.component.forms.BaseAntispam=function(s){z.Component.call(this,s)}
110,ke(a.component.forms.BaseAntispam,z.Component),a.component.forms.BaseAntispam.prototype.prepare=function(){this.textSelector="[data-base-antispam-text]",this.valueSelector="[data-base-antispam-value]",this.solve()},a.component.forms.BaseAntispam.prototype.solve=function(){const t=/u\s(.+)\s.+\s(.+)\sa/i,s=this.elementNode.querySelector(this.textSelector),e=this.elementNode.querySelector(this.valueSelector);if(!s||!e)return;const c=t.exec(s.innerHTML);c&&(e.value=readNumber(c[1])+readNumber(c[2]),this.elementNode.style.display="none")};var a=a||{};a.component=a.component||{},a.component.forms=a.component.forms||{};const ia="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit&onload=onloadTurnstileCallback",na=1e4;let Ho=null;function ra(){return Ho!==null||(Ho=new Promise(function(t,s){window.onloadTurnstileCallback=t;const e=document.createElement("script");e.src=ia,e.async=!0,e.defer=!0,e.onerror=function(){s(new Error("Cloudflare Turnstile api.js failed to load"))},document.head.appendChild(e)})),Ho}a.component.forms.Turnstile=function(s){z.Component.call(this,s)}
110,ke(a.component.forms.Turnstile,z.Component),a.component.forms.Turnstile.prototype.prepare=function(){this.widgetId=null,this.destroyed=!1,this.rendering=!1,this.formId=this.elementNode.dataset.turnstileFormId||"";const t=this.element.closest("form");if(t.length===0){console.warn('[Turnstile] "'+this.formId+'" has no parent <form>, rendering immediately'),this.triggerRender();return}this.$form=t,this.submitPending=!1,this.replayingSubmit=!1,this.handleInteraction=this.handleInteraction.bind(this),this.$form.on("pointerdown.turnstile keydown.turnstile",this.handleInteraction),this.handleSubmit=this.handleSubmit.bind(this),document.addEventListener("submit",this.handleSubmit,!0),this.$form[0].dataset.antispamEager!==void 0&&(this.handleIntersect=this.handleIntersect.bind(this),this.observer=new IntersectionObserver(this.handleIntersect),this.observer.observe(this.$form[0]))},a.component.forms.Turnstile.prototype.destroy=function(){this.destroyed=!0,this.unbindTriggers(),this.handleSubmit&&document.removeEventListener("submit",this.handleSubmit,!0),this.submitTimeout&&(clearTimeout(this.submitTimeout),this.submitTimeout=null),this.unsetLoadingState(),this.removeWidget()},a.component.forms.Turnstile.prototype.removeWidget=function(){if(this.widgetId!==null&&this.isApiReady()&&typeof window.turnstile.remove=="function")try{window.turnstile.remove(this.widgetId)}catch{}this.elementNode.replaceChildren(),this.widgetId=null,this.rendering=!1},a.component.forms.Turnstile.prototype.handleInteraction=function(t){this.isUserInteraction(t.originalEvent||t)&&this.triggerRender()},a.component.forms.Turnstile.prototype.isUserInteraction=function(t){return t.isTrusted?t.type==="keydown"?!!t.key:t.type==="pointerdown"?!!t.pointerType:!0:!1},a.component.forms.Turnstile.prototype.handleIntersect=function(t){t.some(function(e){return e.isIntersecting})&&(this.intersectTimeout=setTimeout(this.triggerRender.bind(this),ir+50))},a.component.forms.Turnstile.prototype.unbindTriggers=function(){this.$form&&this.$form.off("pointerdown.turnstile keydown.turnstile",this.handleInteraction),this.observer&&(this.observer.disconnect(),this.observer=null),this.intersectTimeout&&(clearTimeout(this.intersectTimeout),this.intersectTimeout=null)},a.component.forms.Turnstile.prototype.triggerRender=function(){this.rendering||this.widgetId!==null||(this.rendering=!0,this.unbindTriggers(),ra().then(this.handleApiReady.bind(this)).catch(this.handleApiError.bind(this)))},a.component.forms.Turnstile.prototype.handleApiReady=function(){this.destroyed||this.renderWidget()},a.component.forms.Turnstile.prototype.handleApiError=function(t){console.warn("[Turnstile] "+t.message)},a.component.forms.Turnstile.prototype.renderWidget=function(){if(this.widgetId!==null||this.isAlreadyRendered())return;const t=this.elementNode.dataset;try{this.widgetId=window.turnstile.render(this.elementNode,{sitekey:t.turnstileSitekey,size:t.turnstileSize||"normal",theme:t.turnstileTheme||"auto",retry:"never",callback:this.handleToken.bind(this),"error-callback":this.handleWidgetError.bind(this),"expired-callback":this.handleExpired.bind(this),"timeout-callback":this.handleTimeout.bind(this)})}catch(s){console.warn("[Turnstile] render failed: "+s.message)}},a.component.forms.Turnstile.prototype.handleToken=function(){this.submitPending&&this.releaseSubmit()},a.component.forms.Turnstile.prototype.handleSubmit=function(t){t.target===this.$form[0]&&(this.replayingSubmit||this.hasToken()||this.isFormValid()&&(t.preventDefault(),t.stopPropagation(),!this.submitPending&&(this.pendingSubmitter=t.submitter||null,this.submitPending=!0,this.setLoadingState(),this.triggerRender(),this.submitTimeout=setTimeout(this.releaseSubmit.bind(this),na))))},a.component.forms.Turnstile.prototype.releaseSubmit=function(){if(this.submitPending){this.submitPending=!1,this.submitTimeout&&(clearTimeout(this.submitTimeout),this.submitTimeout=null),this.hasToken()||console.warn('[Turnstile] "'+this.formId+'" submitting without a token'),this.unsetLoadingState(),this.pendingSubmitter&&this.pendingSubmitter.focus(),this.replayingSubmit=!0;try{this.$form[0].requestSubmit(this.pendingSubmitter||void 0)}finally{this.replayingSubmit=!1}this.pendingSubmitter=null}},a.component.forms.Turnstile.prototype.isFormValid=function(){const t=this.$form[0];return typeof this.$form.valid=="function"&&$.data(t,"validator")?this.$form.valid():!t.noValidate&&typeof t.reportValidity=="function"?t.reportValidity():!0},a.component.forms.Turnstile.prototype.setLoadingState=function(){this.pendingSubmitter&&(this.pendingSubmitter.setAttribute("disabled","disabled"),this.pendingSubmitter.classList.add("is-loading"))},a.component.forms.Turnstile.prototype.unsetLoadingState=function(){this.pendingSubmitter&&(this.pendingSubmitter.removeAttribute("disabled"),this.pendingSubmitter.classList.remove("is-loading"))},a.component.forms.Turnstile.prototype.hasToken=function(){const t=this.elementNode.querySelector("[name='cf-turnstile-response']");return!!(t&&t.value)},a.component.forms.Turnstile.prototype.handleWidgetError=function(t){console.warn('[Turnstile] "'+this.formId+'" widget error: '+t),this.removeWidget(),this.submitPending&&this.releaseSubmit()},a.component.forms.Turnstile.prototype.handleExpired=function(){console.warn('[Turnstile] "'+this.formId+'" token expired')},a.component.forms.Turnstile.prototype.handleTimeout=function(){console.warn('[Turnstile] "'+this.formId+'" challenge timed out')},a.component.forms.Turnstile.prototype.isApiReady=function(){return!!(window.turnstile&&typeof window.turnstile.render=="function")},a.component.forms.Turnstile.prototype.isAlreadyRendered=function(){return!!(this.elementNode.querySelector("iframe")||this.elementNode.querySelector("[name='cf-turnstile-response']"))};var a=a||{};a.component=a.component||{},a.component.BasketPreview=function(s){z.Component.call(this,s)}
110,ke(a.component.BasketPreview,z.Component),a.component.BasketPreview.prototype.prepare=function(){this.activeClass="is-active",this.body=$("body"),this.element.hover(()=>{this.open()},()=>{this.close()})},a.component.BasketPreview.prototype.open=function(){this.element.addClass(this.activeClass),this.body.addClass("is-opened-BasketPreview")},a.component.BasketPreview.prototype.close=function(){this.element.removeClass(this.activeClass),this.body.removeClass("is-opened-BasketPreview")};var a=a||{};a.component=a.component||{},a.component.basket=a.component.basket||{},a.component.basket.Transports=function(s,e){z.Component.call(this,s),this.dependencies={component:e.get("component")}},ke(a.component.basket.Transports,z.Component),a.component.basket.Transports.prototype.prepare=function(){this.currentRequest=null,this.form=this.element.closest("form"),this.element.on("change","[data-basket-transport-input]",this.handleChange.bind(this)),this.element.on("click","[data-basket-transport-modal-trigger]",this.handleModalTriggerClick.bind(this))},a.component.basket.Transports.prototype.handleModalTriggerClick=function(t){const s=$(t.currentTarget).closest("[data-branch-picker]");s.length&&this.openModal(s)},a.component.basket.Transports.prototype.openModal=function(t){const s=t.data("branchPicker");if(!s)return;const e=document.getElementById(s);if(e===null){console.warn("Transports: Branch picker element not found: "+s);return}const c=this.dependencies.component.get(e);if(!c||typeof c.requestSelection!="function"){console.warn("Transports: Resolved component does not support requestSelection: "+s);return}c.requestSelection(this.handleBranchSelected.bind(this))},a.component.basket.Transports.prototype.handleBranchSelected=function(t){if(t.type==="internal"){this.saveInternalBranch(t);return}this.saveExternalBranch(t)},a.component.basket.Transports.prototype.saveInternalBranch=function(t){if(this.isBusy())return;this.setBusy(!0),this.form.find(".js-selectedValue").val(t.branchId),this.createRequest().setUrl(this.form.attr("action")).setMethod(this.form.attr("method")).addData({...Object.fromEntries(new FormData(this.form.get(0))),disabledSnp:["breadcrumb-path","search-autocomplete-results","lostPasswordForm","registrationForm","loginForm-modal","footer","favorite-products-mobile","favorite-products-header","newsletter-form"]}).setSaveHistory(!1).addFinalCallback((function(){this.setBusy(!1)}).bind(this)).send()},a.component.basket.Transports.prototype.saveExternalBranch=function(t){if(this.isBusy())return;this.setBusy(!0);const s=this.createRequest();s.addData({externalBranchType:t.type,externalBranch:t.external,disabledSnp:["breadcrumb-path","search-autocomplete-results","lostPasswordForm","registrationForm","loginForm-modal","footer","favorite-products-mobile","favorite-products-header","newsletter-form"]}),s.addFinalCallback((function(){this.setBusy(!1)}).bind(this)),s.send("post")},a.component.basket.Transports.prototype.handleChange=function(t){this.makeRequest()},a.component.basket.Transports.prototype.makeRequest=function(){this.currentRequest&&this.currentRequest.readyState!==4&&this.currentRequest.abort();const t=this.form.attr("action"),s=this.form.attr("method"),e=this.createRequest().setUrl(t).setMethod(s).addData({...Object.fromEntries(new FormData(this.form.get(0))),noRedirect:"1",disabledSnp:["breadcrumb-path","search-autocomplete-results","lostPasswordForm","registrationForm","loginForm-modal","footer","favorite-products-mobile","favorite-products-header","newsletter-form"]}).setSaveHistory(!1).addSuccessCallback(this.handleRequestSuccess.bind(this)).addFinalCallback(this.handleRequestFinal.bind(this));this.currentRequest=e.send()},a.component.basket.Transports.prototype.handleRequestSuccess=function(){const t=$("input[data-basket-transport-input]:checked");if(t.length){const s=t.closest("[data-branch-picker]");s.length&&this.openModal(s)}},a.component.basket.Transports.prototype.handleRequestFinal=function(){this.currentRequest=null};var a=a||{};a.component=a.component||{},a.component.basket=a.component.basket||{},a.component.basket.Payments=function(s){z.Component.call(this,s)}
110,ke(a.component.basket.Payments,z.Component),a.component.basket.Payments.prototype.prepare=function(){this.currentRequest=null,this.form=this.element.closest("form"),this.element.on("change","[data-basket-payment]",this.handleChange.bind(this))},a.component.basket.Payments.prototype.handleChange=function(){this.makeRequest()},a.component.basket.Payments.prototype.makeRequest=function(){this.currentRequest&&this.currentRequest.readyState!==4&&this.currentRequest.abort();const t=this.form.attr("action"),s=this.form.attr("method"),e=this.createRequest().setUrl(t).setMethod(s).addData({...Object.fromEntries(new FormData(this.form.get(0))),noRedirect:"1",disabledSnp:["breadcrumb-path","search-autocomplete-results","lostPasswordForm","registrationForm","loginForm-modal","footer","favorite-products-mobile","favorite-products-header","newsletter-form"]}).setSaveHistory(!1).addFinalCallback(this.handleRequestFinal.bind(this));this.currentRequest=e.send()},a.component.basket.Payments.prototype.handleRequestFinal=function(){this.currentRequest=null};var a=a||{};a.component=a.component||{},a.component.Lightbox=function(s){z.Component.call(this,s)}
110,ke(a.component.Lightbox,z.Component),a.component.Lightbox.INLINE_SELECTOR=".js-gallery-inline, .js-gallery-base-inline, .js-gallery-mobile-inline",a.component.Lightbox.INSTANT_VIDEO_SRC_PREFIX="#instant-video-lightbox-",a.component.Lightbox.GROUPS=["detail-gallery","detail-gallery-base","detail-gallery-mobile"],a.component.Lightbox.prototype.prepare=function(){this.init(".js-gallery","detail-gallery"),this.init(".js-gallery-base","detail-gallery-base"),this.init(".js-gallery-mobile","detail-gallery-mobile"),this.initInline(".js-gallery-inline","detail-gallery"),this.initInline(".js-gallery-base-inline","detail-gallery-base"),this.initInline(".js-gallery-mobile-inline","detail-gallery-mobile"),this.applyInstantVideoOptions()},a.component.Lightbox.prototype.applyInstantVideoOptions=function(){const t=a.component.Lightbox.INSTANT_VIDEO_SRC_PREFIX,s=JSON.stringify({video:{autoStart:!1},autoFocus:!1}),e=this.elementNode;a.component.Lightbox.GROUPS.forEach(function(c){const u=e.querySelectorAll('[data-fancybox="'+c+'"]');Array.prototype.some.call(u,function(S){return(S.dataset.src||"").indexOf(t)===0})&&u.forEach(function(S){S.dataset.options=s})})},a.component.Lightbox.prototype.destroy=function(){this.elementNode.querySelectorAll(a.component.Lightbox.INLINE_SELECTOR).forEach(function(s){s.removeEventListener("click",s._lightboxClickHandler),delete s._lightboxClickHandler})},a.component.Lightbox.prototype.init=function(t,s){this.elementNode.querySelectorAll(t).forEach(function(c){c.dataset.fancybox=s,c.dataset.hideScrollbar="false"})},a.component.Lightbox.prototype.initInline=function(t,s){this.elementNode.querySelectorAll(t).forEach(function(c){c.dataset.fancybox=s,c.dataset.type="inline",c.dataset.hideScrollbar="false",c._lightboxClickHandler=function(u){u.stopPropagation()},c.addEventListener("click",c._lightboxClickHandler)})};var a=a||{};a.component=a.component||{},a.component.LightboxOpener=function(s){z.Component.call(this,s)}
110,ke(a.component.LightboxOpener,z.Component),a.component.LightboxOpener.prototype.prepare=function(){this.targetAttr=this.element.data("lightbox-target"),this.targetElement=$(this.targetAttr),this.element.on("click",this.handleClick.bind(this))},a.component.LightboxOpener.prototype.handleClick=function(t){this.targetElement.length&&(t.preventDefault(),this.targetElement.trigger("click"))};var a=a||{};a.component=a.component||{},a.component.RatingInput=function(s){z.Component.call(this,s)},ke(a.component.RatingInput,z.Component),a.component.RatingInput.prototype.prepare=function(){this.starHook="[data-rating-input-star]",this.radioHook="[data-rating-input-radio]",this.activeClass="is-active",this.hoverClass="is-hover",this.stars=Array.from(this.elementNode.querySelectorAll(this.starHook)),this.radios=Array.from(this.elementNode.querySelectorAll(this.radioHook)),this.handleChangeEvent=this.handleChange.bind(this),this.handleStarEnterEvent=this.handleStarEnter.bind(this),this.handleLeaveEvent=this.handleLeave.bind(this),this.syncActive_(),this.radios.forEach(t=>t.addEventListener("change",this.handleChangeEvent)),this.stars.forEach(t=>t.addEventListener("mouseenter",this.handleStarEnterEvent)),this.elementNode.addEventListener("mouseleave",this.handleLeaveEvent)},a.component.RatingInput.prototype.destroy=function(){this.radios.forEach(t=>t.removeEventListener("change",this.handleChangeEvent)),this.stars.forEach(t=>t.removeEventListener("mouseenter",this.handleStarEnterEvent)),this.elementNode.removeEventListener("mouseleave",this.handleLeaveEvent)},a.component.RatingInput.prototype.handleChange=function(t){this.setActive_(this.starIndex_(t.target)+1)},a.component.RatingInput.prototype.handleStarEnter=function(t){this.fill_(this.hoverClass,this.stars.indexOf(t.currentTarget)+1)},a.component.RatingInput.prototype.handleLeave=function(){this.fill_(this.hoverClass,0)},a.component.RatingInput.prototype.syncActive_=function(){var t=this.elementNode.querySelector(this.radioHook+":checked");this.setActive_(t?this.starIndex_(t)+1:0)},a.component.RatingInput.prototype.setActive_=function(t){this.fill_(this.activeClass,t),this.elementNode.classList.toggle(this.activeClass,t>0)},a.component.RatingInput.prototype.fill_=function(t,s){this.stars.forEach((e,c)=>e.classList.toggle(t,c<s))},a.component.RatingInput.prototype.starIndex_=function(t){return this.stars.indexOf(t.closest(this.starHook))};var a=a||{};(function(t,s,e,c){s.debug=!!c("html").attr("debug"),s.debugTrace=!1;var u=new s.Dependencies;u.register("settings",s.service.Settings),u.register("variables",s.service.Variables),u.register("component",s.service.Component),u.register("statistics",s.service.Statistics),u.register("config",s.service.Config),u.register("translator",s.service.Translator),u.register("toast",e.service.Toast),u.register("baseModal",e.service.BaseModal),u.register("progressBar",e.service.ProgressBar),u.register("scrollTo",s.service.ScrollTo),u.register("availableArea",s.service.AvailableArea);var d=new s.Dependencies;d.register("component",s.Component),d.register("MobileNavigation",e.component.MobileNavigation),d.register("PageNavigation",e.component.PageNavigation),d.register("SideNavigation",e.component.SideNavigation),d.register("AutoComplete",e.component.AutoComplete),d.register("LiveSearch",e.component.LiveSearch),d.register("CollapseList",e.component.CollapseList),d.register("Collapse",e.component.Collapse),d.register("Toggle",e.component.Toggle),d.register("FilterTree",e.component.FilterTree),d.register("ProductDetailCarousel",e.component.ProductDetailCarousel),d.register("ScrollTo",e.component.ScrollTo),d.register("Sticky",e.component.Sticky),d.register("ScrollSpy",e.component.ScrollSpy),d.register("CatalogueCategories",e.component.CatalogueCategories),d.register("Lightbox",e.component.Lightbox),d.register("LightboxOpener",e.component.LightboxOpener),d.register("BigCarousel",e.component.BigCarousel),d.register("CardCarousel",e.component.CardCarousel),d.register("InfoBanner",e.component.InfoBanner),d.register("Tab",e.component.Tab),d.register("NavigationSelect",e.component.NavigationSelect),d.register("CustomSelect",e.component.CustomSelect),d.register("Dropdown",e.component.Dropdown),d.register("BasketPreview",e.component.BasketPreview),d.register("BasketItem",e.component.basket.BasketItem),d.register("BasketGiftItem",e.component.basket.BasketGiftItem),d.register("Form",e.component.Form),d.register("DatePicker",e.component.DatePicker),d.register("TimePicker",e.component.TimePicker),d.register("DateTimePicker",e.component.DateTimePicker),d.register("CheckProductVariant",e.component.CheckProductVariant),d.register("EditCollapse",e.component.E
110ditCollapse),d.register("Confirm",e.component.Confirm),d.register("PhoneInput",e.component.PhoneInput),d.register("FavoriteProducts",e.component.FavoriteProducts),d.register("FormAutoSubmit",e.component.FormAutoSubmit),d.register("BasketStep3",e.component.BasketStep3),d.register("Alert",e.component.Alert),d.register("GtmPromotionClick",e.component.GtmPromotionClick),d.register("GoogleMap",e.component.GoogleMap),d.register("Gallery360",e.component.Gallery360),d.register("WysiwygGalleryCarouselFull",e.component.WysiwygGalleryCarouselFull),d.register("Tooltip",e.component.Tooltip),d.register("EditableContent",e.component.EditableContent),d.register("CatalogueFilterTemplate",e.component.CatalogueFilterTemplate),d.register("CatalogueDesktopHorizontalFilter",e.component.CatalogueDesktopHorizontalFilter),d.register("CatalogueDesktopVerticalFilter",e.component.CatalogueDesktopVerticalFilter),d.register("CatalogueMobileFilter",e.component.CatalogueMobileFilter),d.register("CatalogueModalFilter",e.component.CatalogueModalFilter),d.register("CatalogueCheckboxFilter",e.component.CatalogueCheckboxFilter),d.register("CataloguePriceFilter",e.component.CataloguePriceFilter),d.register("ReservationAutocomplete",e.component.ReservationAutocomplete),d.register("Address2Collapse",e.component.Address2Collapse),d.register("Adyen",e.component.Adyen),d.register("SeznamSsp",e.component.SeznamSsp),d.register("ExternalVideo",e.component.ExternalVideo),d.register("IframeVideo",e.component.IframeVideo),d.register("FixedHeaderSearch",e.component.FixedHeaderSearch),d.register("Carousel",e.component.Carousel),d.register("ProductCardGalleryHydrate",e.component.ProductCardGalleryHydrate),d.register("FormInputAjaxAfterChange",e.component.FormInputAjaxAfterChange),d.register("PageNavigationSideSubNavigation",e.component.PageNavigationSideSubNavigation),d.register("ZasilkovnaWidget",e.component.transportBranchPickers.ZasilkovnaWidget),d.register("ProductVariantMatrix",e.component.ProductVariantMatrix),d.register("ProductMatrixCardVariants",e.component.ProductMatrixCardVariants),d.register("BalikovnaWidget",e.component.transportBranchPickers.BalikovnaWidget),d.register("PplParcelShopWidget",e.component.transportBranchPickers.PplParcelShopWidget),d.register("OneDeliveryWidget",e.component.transportBranchPickers.OneDeliveryWidget),d.register("GlsParcelShopWidget",e.component.transportBranchPickers.GlsParcelShopWidget),d.register("SpsBalikovoWidget",e.component.transportBranchPickers.SpsBalikovoWidget),d.register("ProductStickyBarMobile",e.component.ProductStickyBarMobile),d.register("HideOverflowItems",e.component.HideOverflowItems),d.register("TextCountdown",e.component.TextCountdown),d.register("GraphicCountdown",e.component.GraphicCountdown),d.register("DpdPickupWidget",e.component.transportBranchPickers.DpdPickupWidget),d.register("SaveToClipboard",e.component.SaveToClipboard),d.register("SelectCollapse",e.component.SelectCollapse),d.register("ArticleSearch",e.component.ArticleSearch),d.register("DownloadFile",e.component.DownloadFile),d.register("Modal",e.component.Modal),d.register("ModalOpener",e.component.ModalOpener),d.register("PasswordReveal",e.component.PasswordReveal),d.register("QuantityInput",e.component.QuantityInput),d.register("ExclusiveCheckboxGroup",e.component.ExclusiveCheckboxGroup),d.register("AutoSuggest",e.component.AutoSuggest),d.register("AddExtraProduct",e.component.businessLogic.AddExtraProduct),d.register("AddProduct",e.component.businessLogic.AddProduct),d.register("BuyBulkProduct",e.component.businessLogic.BuyBulkProduct),d.register("BuyProduct",e.component.businessLogic.BuyProduct),d.register("PreOrderBuy",e.component.businessLogic.PreOrderBuy),d.register("BasketForm",e.component.businessLogic.BasketForm),d.register("ChangeProductServices",e.component.businessLogic.ChangeProductServices),d.register("BasketUsePoints",e.component.businessLogic.BasketUsePoints),d.register("ChooseTransportBranch",e.component.businessLogic.ChooseTransportBranch),d.register("DynamicRequiredFields",e.component.forms.DynamicRequiredFields),d.register("BaseAntispam",e.component.forms.BaseAntispam),d.register("Turnstile",e.component.forms.Turnstile),d.register("BasketStates",e.component.basket.StateComponent),d.register("BasketTransports",e.component.basket.Transports),d.register("BasketPayments",e.component.basket.Payments),d.register("branchSelect",e.component.transportBranchPickers.BranchSelect),d.register("RatingInput",e.component.RatingInput),d.register("SegmentedProduct",e.component.SegmentedProduct),e.$$lightboxOptions={fileExt:!1,history:!1};var S=new s.Application(d,u,s.Request,new s.Ajax);S.onStartup=function(){S.initAjax(),S.initStatistics(),S.initDisableButtonsAfterSubmit(),S.initHistoryPopRedirect();const I=["ar","az","bg","ca","cs","da","de","el","es","et","eu","fa","fi","fr","ge","gl","he","hr","hu","id","is","it","ja","ka","kk","ko","lt","lv","mk","my","nl","no","pl","ro","ru","sd","si","sk","sl","sr","sv","th","tj","tr","uk","ur","vi","zh"],Z=Eo();I.includes(Z)&&c.getScript(`/common/js/framework/vendor/jquery.validate/localization/messages_${Z}.js`)},S.initPlugins=function(I){I=I||c("body")}
110,c(function(){(e.disabledComponents||[]).forEach(function(I){d.unregister(I)}),e.projectComponents.forEach(function(I){d.register(I,e.component[I])}),S.run()}),t.application=S})(window,z,a,jQuery);class oa{constructor(){this.application=window.application,this.baseModal=this.application.dependencyFactory.get("baseModal"),this.config=this.application.dependencyFactory.get("config"),this.endpoints=this.config.getEndpoints(),this.isLoadingData=!1}add({productId:s,showModal:e=!1}={}){if(!s)throw new Error("productId is required parameter.");if(typeof e!="boolean")throw new Error("showModal must be a boolean value.");return this.request(this.endpoints.basket.add,{product_id:s,count:1,disabledSnp:["breadcrumb-path","search-autocomplete-results","footer"],noAddPopup:+!e,noRedirect:1})}request(s,e={}){return new Promise((c,u)=>{if(this.isLoadingData)return u(new Error("application is busy"));const d=this.application.createRequest();this.isLoadingData=!0,d.setUrl(s),d.addData(e),d.setMethod("post"),d.addSuccessCallback(S=>{var I;if(this.isLoadingData=!1,(e==null?void 0:e.noAddPopup)===0&&((I=S==null?void 0:S.snippets)!=null&&I.buyContent)){const Z=S.snippets.buyContent;this.baseModal.setSnippetId(null),this.baseModal.setContentAndOpe
110nPopup(Z,this.application)}this.updateBasketButtons(S),this.updateBasketQuickAdd(S),this.updatePreOrderBuy(S),c(S)}),d.addErrorCallback(S=>{this.isLoadingData=!1,console.error("Request failed:",S),u(S)}),d.send()})}updateBasketButtons(s){Array.from(document.querySelectorAll(`[data-component="BuyProduct"][data-buy-product-product-id="${s.productId}"]`)).map(c=>{c.dispatchEvent(new CustomEvent("ui.buyProduct.set",{bubbles:!1,detail:s}))})}updateBasketQuickAdd(s){Array.from(document.querySelectorAll(`[data-component="BuyBulkProduct"][data-buy-bulk-product-product-id="${s.productId}"]`)).map(c=>{c.dispatchEvent(new CustomEvent("ui.buyBulkProduct.set",{bubbles:!1,detail:s}))})}updatePreOrderBuy(s){Array.from(document.querySelectorAll(`[data-component="PreOrderBuy"][data-pre-order-buy-product-id="${s.productId}"]`)).map(c=>{c.dispatchEvent(new CustomEvent("ui.preOrderBuy.set",{bubbles:!1,detail:s}))})}}window.Emorfiq=window.Emorfiq||{};const ys=new oa;window.Emorfiq.basket={add:ys.add.bind(ys)};var a=a||{};a.component=a.component||{},a.component.CustomMobileNavigationBack=function(s){z.Component.call(this,s)}
110,ke(a.component.CustomMobileNavigationBack,z.Component),a.component.CustomMobileNavigationBack.prototype.prepare=function(){this.document=$(document),this.mobileNavigation=this.getMobileNavigation(),this.element.on("click",this.handleClick.bind(this))},a.component.CustomMobileNavigationBack.prototype.handleClick=function(t){t.preventDefault(),this.mobileNavigation.trigger("ui.mobileNavigation.back")},a.component.CustomMobileNavigationBack.prototype.getMobileNavigation=function(t){return this.document.find('[data-component="MobileNavigation"]')};var a=a||{};a.component=a.component||{},a.component.CustomReviewCarousel=function(s){z.Component.call(this,s)},ke(a.component.CustomReviewCarousel,z.Component),a.component.CustomReviewCarousel.prototype.prepare=function(){this.init()},a.component.CustomReviewCarousel.prototype.init=function(){this.element.find(".CustomReviewCarousel-items").slick({infinite:!1,rows:0,arrows:!0,dots:!1,mobileFirst:!0,autoplay:!1,prevArrow:".CustomReviewCarousel-prev",nextArrow:".CustomReviewCarousel-next"})};var a=a||{};a.component=a.component||{},a.component.CustomPageNavigation=function(s,e){a.component.PageNavigation.call(this,s,e)},ke(a.component.CustomPageNavigation,a.component.PageNavigation),a.component.CustomPageNavigation.prototype.prepare=function(){a.component.PageNavigation.prototype.prepare.call(this),this.element.on("ui.pageNavigation.update",()=>{this.storeActiveItem&&this.storeActiveSubItem&&this.updateItemPosition(this.storeActiveItem,this.storeActiveSubItem)})},a.component.CustomPageNavigation.prototype.open=function(t,s){a.component.PageNavigation.prototype.open.call(this,t,s);const e=t.attr("data-sub"),c=$("#PageSubNavigation-"+e);this.updateItemPosition(t,c)},a.component.CustomPageNavigation.prototype.updateItemPosition=function(t,s){if(this.storeActiveItem=t,this.storeActiveSubItem=s,!t.length||!s.length)return;const e=t.closest(".Container");if(!e.length)return;const c=t.get(0).offsetLeft-e.get(0).offsetLeft,u=t.width();s.get(0).style.setProperty("--positionLeft",c+"px"),s.get(0).style.setProperty("--itemWidth",u+"px")};var a=a||{};a.component=a.component||{},a.component.CustomFooterClosableSection=function(s){z.Component.call(this,s)}
110,ke(a.component.CustomFooterClosableSection,z.Component),a.component.CustomFooterClosableSection.prototype.prepare=function(){if(this.document=$(document),this.$closableSection=this.getClosableSection(),this.activeClass="is-active",!this.$closableSection.length){console.warn("No section found");return}this.element.on("click",this.handleClick.bind(this)),this.setInitializedState(),this.addWrapper()},a.component.CustomFooterClosableSection.prototype.handleClick=function(t){t.preventDefault();const s=this.element.hasClass(this.activeClass);this.element.toggleClass(this.activeClass,!s),this.$closableSectionWrapper.toggleClass(this.activeClass,!s)},a.component.CustomFooterClosableSection.prototype.getClosableSection=function(){return this.element.next()||null},a.component.CustomFooterClosableSection.prototype.setInitializedState=function(){this.element.addClass("Custom-FooterNavigationTitle--initialized")},a.component.CustomFooterClosableSection.prototype.addWrapper=function(){this.$closableSection.wrap('<div class="Custom-FooterNavigation-closable"><div></div></div>'),this.$closableSectionWrapper=this.$closableSection.closest(".Custom-FooterNavigation-closable")}}).call(window);

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.