vendor: 12,454 bytes, lines 1-2
1/*! For license information please see main.js.LICENSE.txt */ 2(()=>{var __webpack_modules__={119:function(e,t,i){!function(e){"use strict";var t={1:"Û±",2:"Û²",3:"Û³",4:"Û´",5:"Ûµ",6:"Û¶",7:"Û·",8:"Û¸",9:"Û¹",0:"Û°"},i={"Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9","Û°":"0"};e.defineLocale("fa",{months:"ÚØ§ÙÙÛÙ_ÙÙØ±ÛÙ_٠ارس_Ø¢ÙØ±ÛÙ_Ù Ù_ÚÙØ¦Ù_ÚÙØ¦ÛÙ_Ø§ÙØª_سپتا٠بر_اکتبر_ÙÙØ§Ù بر_دسا٠بر".split("_"),monthsShort:"ÚØ§ÙÙÛÙ_ÙÙØ±ÛÙ_٠ارس_Ø¢ÙØ±ÛÙ_Ù Ù_ÚÙØ¦Ù_ÚÙØ¦ÛÙ_Ø§ÙØª_سپتا٠بر_اکتبر_ÙÙØ§Ù بر_دسا٠بر".split("_"),weekdays:"ÛÚ©âØ´ÙØ¨Ù_Ø¯ÙØ´ÙبÙ_سÙâØ´ÙØ¨Ù_ÚÙØ§Ø±Ø´ÙبÙ_Ù¾ÙØ¬âØ´ÙØ¨Ù_ج٠عÙ_Ø´ÙØ¨Ù".split("_"),weekdaysShort:"ÛÚ©âØ´ÙØ¨Ù_Ø¯ÙØ´ÙبÙ_سÙâØ´ÙØ¨Ù_ÚÙØ§Ø±Ø´ÙبÙ_Ù¾ÙØ¬âØ´ÙØ¨Ù_ج٠عÙ_Ø´ÙØ¨Ù".split("_"),weekdaysMin:"Û_د_س_Ú_Ù¾_ج_Ø´".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ÙØ¨Ù از Ø¸ÙØ±|بعد از Ø¸ÙØ±/,isPM:function(e){return/بعد از Ø¸ÙØ±/.test(e)},meridiem:function(e,t,i){return e<12?"ÙØ¨Ù از Ø¸ÙØ±":"بعد از Ø¸ÙØ±"},calendar:{sameDay:"[Ø§Ù Ø±ÙØ² ساعت] LT",nextDay:"[ÙØ±Ø¯Ø§ ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[Ø¯ÛØ±Ùز ساعت] LT",lastWeek:"dddd [Ù¾ÛØ´] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s Ù¾ÛØ´",s:"ÚÙØ¯ ثاÙÛÙ",ss:"%d ثاÙÛÙ",m:"ÛÚ© دÙÛÙÙ",mm:"%d دÙÛÙÙ",h:"ÛÚ© ساعت",hh:"%d ساعت",d:"ÛÚ© Ø±ÙØ²",dd:"%d Ø±ÙØ²",M:"ÛÚ© ٠اÙ",MM:"%d ٠اÙ",y:"ÛÚ© ساÙ",yy:"%d ساÙ"},preparse:function(e){return e.replace(/[Û°-Û¹]/g,(function(e){return i[e]})).replace(/Ø/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"Ø")},dayOfMonthOrdinalParse:/\d{1,2}Ù /,ordinal:"%dÙ ",week:{dow:6,doy:12}})}(i(5093))},158:function(e,t,i){!function(e){"use strict";var t=["جÙÙØ±Û","ÙØ±ÙرÛ","٠ارÚ","اپرÛÙ","٠ئÛ","جÙÙ","جÙÙØ§Ø¦Û","اگست","ست٠بر","Ø§Ú©ØªÙØ¨Ø±","ÙÙ٠بر","دس٠بر"],i=["Ø§ØªÙØ§Ø±","Ù¾ÛØ±","Ù ÙÚ¯Ù","بدھ","ج٠عرات","ج٠عÛ","ÛÙØªÛ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:i,weekdaysShort:i,weekdaysMin:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ddddØ D MMMM YYYY HH:mm"},meridiemParse:/صبØ|شا٠/,isPM:function(e){return"شا٠"===e},meridiem:function(e,t,i){return e<12?"صبØ":"شا٠"},calendar:{sameDay:"[آج بÙÙØª] LT",nextDay:"[ک٠بÙÙØª] LT",nextWeek:"dddd [بÙÙØª] LT",lastDay:"[Ú¯Ø°Ø´ØªÛ Ø±ÙØ² بÙÙØª] LT",lastWeek:"[گذشتÛ] dddd [بÙÙØª] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s ÙØ¨Ù",s:"ÚÙØ¯ سÛÚ©ÙÚ",ss:"%d سÛÚ©ÙÚ",m:"اÛÚ© Ù ÙÙ¹",mm:"%d Ù ÙÙ¹",h:"اÛÚ© Ú¯Ú¾ÙÙ¹Û",hh:"%d Ú¯Ú¾ÙÙ¹Û",d:"اÛÚ© دÙ",dd:"%d دÙ",M:"اÛÚ© ٠اÛ",MM:"%d ٠اÛ",y:"اÛÚ© ساÙ",yy:"%d ساÙ"},preparse:function(e){return e.replace(/Ø/g,",")},postformat:function(e){return e.replace(/,/g,"Ø")},week:{dow:1,doy:4}})}(i(5093))},217:function(e,t,i){!function(e){"use strict";var t=["Am Faoilleach","An Gearran","Am Mà rt","An Giblean","An Cèitean","An t-Ãgmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dà mhair","An t-Samhain","An Dùbhlachd"],i=["Faoi","Gear","Mà rt","Gibl","Cèit","Ãgmh","Iuch","Lùn","Sult","Dà mh","Samh","Dùbh"],s=["Didòmhnaich","Diluain","Dimà irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],r=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],n=["Dò","Lu","Mà ","Ci","Ar","Ha","Sa"];e.defineLocale("gd",{months:t,monthsShort:i,monthsParseExact:!0,weekdays:s,weekdaysShort:r,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-mà ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(5093))},304:function(e,t,i){!function(e){"use strict";e.defineLocale("zh-tw",{months:"䏿_äºæ_䏿_åæ_äºæ_å æ_䏿_å «æ_乿_åæ_å䏿_åäºæ".split("_"),monthsShort:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),weekdays:"æææ¥_ææä¸_ææäº_ææä¸_ææå_ææäº_ææå ".split("_"),weekdaysShort:"鱿¥_é±ä¸_é±äº_é±ä¸_é±å_é±äº_é±å ".split("_"),weekdaysMin:"æ¥_ä¸_äº_ä¸_å_äº_å ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYYå¹´MæDæ¥",LLL:"YYYYå¹´MæDæ¥ HH:mm",LLLL:"YYYYå¹´MæDæ¥dddd HH:mm",l:"YYYY/M/D",ll:"YYYYå¹´MæDæ¥",lll:"YYYYå¹´MæDæ¥ HH:mm",llll:"YYYYå¹´MæDæ¥dddd HH:mm"},meridiemParse:/忍|æ©ä¸|ä¸å|ä¸å|ä¸å|æä¸/,meridiemHour:function(e,t){return 12===e&&(e=0),"忍"===t||"æ©ä¸"===t||"ä¸å"===t?e:"ä¸å"===t?e>=11?e:e+12:"ä¸å"===t||"æä¸"===t?e+12:void 0},meridiem:function(e,t,i){var s=100*e+t;return s<600?"忍":s<900?"æ©ä¸":s<1130?"ä¸å":s<1230?"ä¸å":s<1800?"ä¸å":"æä¸"},calendar:{sameDay:"[ä»å¤©] LT",nextDay:"[æå¤©] LT",nextWeek:"[ä¸]dddd LT",lastDay:"[æ¨å¤©] LT",lastWeek:"[ä¸]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(æ¥|æ|é±)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"æ¥";case"M":return e+"æ";case"w":case"W":return e+"é±";default:return e}},relativeTime:{future:"%så¾",past:"%så",s:"å¹¾ç§",ss:"%d ç§",m:"1 åé",mm:"%d åé",h:"1 å°æ",hh:"%d å°æ",d:"1 天",dd:"%d 天",M:"1 åæ",MM:"%d åæ",y:"1 å¹´",yy:"%d å¹´"}})}(i(5093))},306:function(e,t,i){!function(e){"use strict";e.defineLocale("mk",{months:"ÑанÑаÑи_ÑевÑÑаÑи_маÑÑ_апÑил_маÑ_ÑÑни_ÑÑли_авгÑÑÑ_ÑепÑемвÑи_окÑомвÑи_ноемвÑи_декемвÑи".split("_"),monthsShort:"Ñан_Ñев_маÑ_апÑ_маÑ_ÑÑн_ÑÑл_авг_Ñеп_окÑ_ное_дек".split("_"),weekdays:"недела_понеделник_вÑоÑник_ÑÑеда_ÑеÑвÑÑок_пеÑок_ÑабоÑа".split("_"),weekdaysShort:"нед_пон_вÑо_ÑÑе_ÑеÑ_пеÑ_Ñаб".split("_"),weekdaysMin:"нe_пo_вÑ_ÑÑ_Ñе_пе_Ña".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[ÐÐµÐ½ÐµÑ Ð²Ð¾] LT",nextDay:"[УÑÑе во] LT",nextWeek:"[Ðо] dddd [во] LT",lastDay:"[ÐÑеÑа во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[ÐзминаÑаÑа] dddd [во] LT";case 1:case 2:case 4:case 5:return"[ÐзминаÑиоÑ] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пÑед %s",s:"Ð½ÐµÐºÐ¾Ð»ÐºÑ ÑекÑнди",ss:"%d ÑекÑнди",m:"една минÑÑа",mm:"%d минÑÑи",h:"еден ÑаÑ",hh:"%d ÑаÑа",d:"еден ден",dd:"%d дена",M:"еден меÑеÑ",MM:"%d меÑеÑи",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|Ñи|ви|Ñи|ми)/,ordinal:function(e){var t=e%10,i=e%100;return 0===e?e+"-ев":0===i?e+"-ен":i>10&&i<20?e+"-Ñи":1===t?e+"-ви":2===t?e+"-Ñи":7===t||8===t?e+"-ми":e+"-Ñи"},week:{dow:1,doy:7}})}(i(5093))},527:function(e,t,i){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),i=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function s(e,t,i,s){var n="";switch(i){case"s":return s?"muutaman sekunnin":"muutama sekunti";case"ss":n=s?"sekunnin":"sekuntia";break;case"m":return s?"minuutin":"minuutti";case"mm":n=s?"minuutin":"minuuttia";break;case"h":return s?"tunnin":"tunti";case"hh":n=s?"tunnin":"tuntia";break;case"d":return s?"päivän":"päivä";case"dd":n=s?"päivän":"päivää";break;case"M":return s?"kuukauden":"kuukausi";case"MM":n=s?"kuukauden":"kuukautta";break;case"y":return s?"vuoden":"vuosi";case"yy":n=s?"vuoden":"vuotta"}return n=r(e,s)+" "+n}function r(e,s){return e<10?s?i[e]:t[e]:e}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(5093))},609:function(e,t,i){!function(e){"use strict";var t="vasárnap hétfÅn kedden szerdán csütörtökön pénteken szombaton".split(" ");function i(e,t,i,s){var r=e;switch(i){case"s":return s||t?"néhány másodperc":"néhány másodperce";case"ss":return r+(s||t)?" másodperc":" másodperce";case"m":return"egy"+(s||t?" perc":" perce");case"mm":return r+(s||t?" perc":" perce");case"h":return"egy"+(s||t?" óra":" órája");case"hh":return r+(s||t?" óra":" órája");case"d":return"egy"+(s||t?" nap":" napja");case"dd":return r+(s||t?" nap":" napja");case"M":return"egy"+(s||t?" hónap":" hónapja");case"MM":return r+(s||t?" hónap":" hónapja");case"y":return"egy"+(s||t?" év":" éve");case"yy":return r+(s||t?" év":" éve")}return""}function s(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfÅ_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,i){return e<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return s.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return s.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(5093))},653:function(e,t,i){e.exports=function(e,t,i,s){"use strict";const r="toast",n=".bs.toast",a=`mouseover${n}`,o=`mouseout${n}`,l=`focusin${n}`,d=`focusout${n}`,h=`hide${n}`,c=`hidden${n}`,u=`show${n}`,f=`shown${n}`,m="fade",p="hide",g="show",y="showing",_={animation:"boolean",autohide:"boolean",delay:"number"},v={animation:!0,autohide:!0,delay:5e3};class b extends e{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return v}static get DefaultType(){return _}static get NAME(){return r}show(){if(t.trigger(this._element,u).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(m);const e=()=>{this._element.classList.remove(y),t.trigger(this._element,f),this._maybeScheduleHide()};this._element.classList.remove(p),s.reflow(this._element),this._element.classList.add(g,y),this._queueCallback(e,this._element,this._config.animation)}
2hide(){if(!this.isShown())return;if(t.trigger(this._element,h).defaultPrevented)return;const e=()=>{this._element.classList.add(p),this._element.classList.remove(y,g),t.trigger(this._element,c)};this._element.classList.add(y),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(g),super.dispose()}isShown(){return this._element.classList.contains(g)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const i=e.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){t.on(this._element,a,(e=>this._onInteraction(e,!0))),t.on(this._element,o,(e=>this._onInteraction(e,!1))),t.on(this._element,l,(e=>this._onInteraction(e,!0))),t.on(this._element,d,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=b.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}return i.enableDismissTrigger(b),s.defineJQueryPlugin(b),b}(i(9011),i(7956),i(8248),i(4035))},708:function(e,t,i){!function(e){"use strict";var t=["ÞÞ¬ÞÞªÞÞ¦ÞÞ©","ÞÞ¬ÞÞ°ÞÞªÞÞ¦ÞÞ©","ÞÞ§ÞÞ¨ÞÞª","ÞÞÞÞ°ÞÞ©ÞÞª","ÞÞ","ÞÞ«ÞÞ°","ÞÞªÞÞ¦ÞÞ¨","ÞÞ¯ÞÞ¦ÞÞ°ÞÞª","ÞÞ¬ÞÞ°ÞÞ¬ÞÞ°ÞÞ¦ÞÞª","ÞÞ®ÞÞ°ÞÞ¯ÞÞ¦ÞÞª","ÞÞ®ÞÞ¬ÞÞ°ÞÞ¦ÞÞª","ÞÞ¨ÞÞ¬ÞÞ°ÞÞ¦ÞÞª"],i=["ÞÞ§ÞÞ¨ÞÞ°ÞÞ¦","ÞÞ¯ÞÞ¦","ÞÞ¦ÞÞ°ÞÞ§ÞÞ¦","ÞÞªÞÞ¦","ÞÞªÞÞ§ÞÞ°ÞÞ¦ÞÞ¨","ÞÞªÞÞªÞÞª","ÞÞ®ÞÞ¨ÞÞ¨ÞÞª"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:i,weekdaysShort:i,weekdaysMin:"ÞÞ§ÞÞ¨_ÞÞ¯ÞÞ¦_ÞÞ¦ÞÞ°_ÞÞªÞÞ¦_ÞÞªÞÞ§_ÞÞªÞÞª_ÞÞ®ÞÞ¨".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ÞÞ|ÞÞ/,isPM:function(e){return"ÞÞ"===e},meridiem:function(e,t,i){return e<12?"ÞÞ":"ÞÞ"},calendar:{sameDay:"[ÞÞ¨ÞÞ¦ÞÞª] LT",nextDay:"[ÞÞ§ÞÞ¦ÞÞ§] LT",nextWeek:"dddd LT",lastDay:"[ÞÞ¨ÞÞ°ÞÞ¬] LT",lastWeek:"[ÞÞ§ÞÞ¨ÞÞªÞÞ¨] dddd LT",sameElse:"L"},relativeTime:{future:"ÞÞ¬ÞÞÞÞ¦ÞÞ¨ %s",past:"ÞÞªÞÞ¨ÞÞ° %s",s:"ÞÞ¨ÞÞªÞÞ°ÞÞªÞÞ®Þ
Þ¬ÞÞ°",ss:"d% ÞÞ¨ÞÞªÞÞ°ÞÞª",m:"ÞÞ¨ÞÞ¨ÞÞ¬ÞÞ°",mm:"ÞÞ¨ÞÞ¨ÞÞª %d",h:"ÞÞ¦ÞÞ¨ÞÞ¨ÞÞ¬ÞÞ°",hh:"ÞÞ¦ÞÞ¨ÞÞ¨ÞÞª %d",d:"ÞÞªÞÞ¦ÞÞ¬ÞÞ°",dd:"ÞÞªÞÞ¦ÞÞ° %d",M:"ÞÞ¦ÞÞ¬ÞÞ°",MM:"ÞÞ¦ÞÞ° %d",y:"ÞÞ¦ÞÞ¦ÞÞ¬ÞÞ°",yy:"ÞÞ¦ÞÞ¦ÞÞª %d"},preparse:function(e){return e.replace(/Ø/g,",")},postformat:function(e){return e.replace(/,/g,"Ø")},week:{dow:7,doy:12}})}(i(5093))},748:function(e,t,i){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(i(5093))},838:function(e,t,i){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?i[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LT
vendor: 12,867 bytes, line 2
2S:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un dÃa",dd:"%d dÃas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(i(5093))},941:(e,t,i)=>{var s;e.exports=function(){function e(t,i,s){function r(a,o){if(!i[a]){if(!t[a]){if(n)return n(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var d=i[a]={exports:{}};t[a][0].call(d.exports,(function(e){return r(t[a][1][e]||e)}),d,d.exports,e,t,i,s)}return i[a].exports}for(var n=void 0,a=0;a<s.length;a++)r(s[a]);return r}return e}()({1:[function(e,t,s){(function(e){(function(){var i=200,r="__lodash_hash_undefined__",n=800,a=16,o=9007199254740991,l="[object Arguments]",d="[object Array]",h="[object AsyncFunction]",c="[object Boolean]",u="[object Date]",f="[object Error]",m="[object Function]",p="[object GeneratorFunction]",g="[object Map]",y="[object Number]",_="[object Null]",v="[object Object]",b="[object Proxy]",w="[object RegExp]",T="[object Set]",M="[object String]",S="[object Undefined]",L="[object WeakMap]",k="[object ArrayBuffer]",E="[object DataView]",D="[object Float64Array]",x="[object Int8Array]",A="[object Int16Array]",P="[object Int32Array]",C="[object Uint8Array]",I="[object Uint8ClampedArray]",R="[object Uint16Array]",O="[object Uint32Array]",Y=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,$=/^(?:0|[1-9]\d*)$/,N={};N["[object Float32Array]"]=N[D]=N[x]=N[A]=N[P]=N[C]=N[I]=N[R]=N[O]=!0,N[l]=N[d]=N[k]=N[c]=N[E]=N[u]=N[f]=N[m]=N[g]=N[y]=N[v]=N[w]=N[T]=N[M]=N[L]=!1;var B="object"==typeof e&&e&&e.Object===Object&&e,H="object"==typeof self&&self&&self.Object===Object&&self,j=B||H||Function("return this")(),U="object"==typeof s&&s&&!s.nodeType&&s,V=U&&"object"==typeof t&&t&&!t.nodeType&&t,G=V&&V.exports===U,z=G&&B.process,W=function(){try{var e=V&&V.require&&V.require("util").types;return e||z&&z.binding&&z.binding("util")}catch(e){}}(),q=W&&W.isTypedArray;function K(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function J(e,t){for(var i=-1,s=Array(e);++i<e;)s[i]=t(i);return s}function X(e){return function(t){return e(t)}}function Q(e,t){return null==e?void 0:e[t]}function Z(e,t){return function(i){return e(t(i))}}var ee,te=Array.prototype,ie=Function.prototype,se=Object.prototype,re=j["__core-js_shared__"],ne=ie.toString,ae=se.hasOwnProperty,oe=(ee=/[^.]+$/.exec(re&&re.keys&&re.keys.IE_PROTO||""))?"Symbol(src)_1."+ee:"",le=se.toString,de=ne.call(Object),he=RegExp("^"+ne.call(ae).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ce=G?j.Buffer:void 0,ue=j.Symbol,fe=j.Uint8Array,me=ce?ce.allocUnsafe:void 0,pe=Z(Object.getPrototypeOf,Object),ge=Object.create,ye=se.propertyIsEnumerable,_e=te.splice,ve=ue?ue.toStringTag:void 0,be=function(){try{var e=vt(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),we=ce?ce.isBuffer:void 0,Te=Math.max,Me=Date.now,Se=vt(j,"Map"),Le=vt(Object,"create"),ke=function(){function e(){}return function(t){if(!jt(t))return{};if(ge)return ge(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}();function Ee(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var s=e[t];this.set(s[0],s[1])}}function De(){this.__data__=Le?Le(null):{},this.size=0}function xe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Ae(e){var t=this.__data__;if(Le){var i=t[e];return i===r?void 0:i}return ae.call(t,e)?t[e]:void 0}function Pe(e){var t=this.__data__;return Le?void 0!==t[e]:ae.call(t,e)}function Ce(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Le&&void 0===t?r:t,this}function Ie(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var s=e[t];this.set(s[0],s[1])}}function Re(){this.__data__=[],this.size=0}function Oe(e){var t=this.__data__,i=et(t,e);return!(i<0||(i==t.length-1?t.pop():_e.call(t,i,1),--this.size,0))}function Ye(e){var t=this.__data__,i=et(t,e);return i<0?void 0:t[i][1]}function Fe(e){return et(this.__data__,e)>-1}function $e(e,t){var i=this.__data__,s=et(i,e);return s<0?(++this.size,i.push([e,t])):i[s][1]=t,this}function Ne(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var s=e[t];this.set(s[0],s[1])}}function Be(){this.size=0,this.__data__={hash:new Ee,map:new(Se||Ie),string:new Ee}}function He(e){var t=_t(this,e).delete(e);return this.size-=t?1:0,t}function je(e){return _t(this,e).get(e)}function Ue(e){return _t(this,e).has(e)}function Ve(e,t){var i=_t(this,e),s=i.size;return i.set(e,t),this.size+=i.size==s?0:1,this}function Ge(e){var t=this.__data__=new Ie(e);this.size=t.size}function ze(){this.__data__=new Ie,this.size=0}function We(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}function qe(e){return this.__data__.get(e)}function Ke(e){return this.__data__.has(e)}function Je(e,t){var s=this.__data__;if(s instanceof Ie){var r=s.__data__;if(!Se||r.length<i-1)return r.push([e,t]),this.size=++s.size,this;s=this.__data__=new Ne(r)}return s.set(e,t),this.size=s.size,this}function Xe(e,t){var i=Yt(e),s=!i&&Ot(e),r=!i&&!s&&Nt(e),n=!i&&!s&&!r&&Gt(e),a=i||s||r||n,o=a?J(e.length,String):[],l=o.length;for(var d in e)!t&&!ae.call(e,d)||a&&("length"==d||r&&("offset"==d||"parent"==d)||n&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||Tt(d,l))||o.push(d);return o}function Qe(e,t,i){(void 0!==i&&!Rt(e[t],i)||void 0===i&&!(t in e))&&tt(e,t,i)}function Ze(e,t,i){var s=e[t];ae.call(e,t)&&Rt(s,i)&&(void 0!==i||t in e)||tt(e,t,i)}function et(e,t){for(var i=e.length;i--;)if(Rt(e[i][0],t))return i;return-1}function tt(e,t,i){"__proto__"==t&&be?be(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}Ee.prototype.clear=De,Ee.prototype.delete=xe,Ee.prototype.get=Ae,Ee.prototype.has=Pe,Ee.prototype.set=Ce,Ie.prototype.clear=Re,Ie.prototype.delete=Oe,Ie.prototype.get=Ye,Ie.prototype.has=Fe,Ie.prototype.set=$e,Ne.prototype.clear=Be,Ne.prototype.delete=He,Ne.prototype.get=je,Ne.prototype.has=Ue,Ne.prototype.set=Ve,Ge.prototype.clear=ze,Ge.prototype.delete=We,Ge.prototype.get=qe,Ge.prototype.has=Ke,Ge.prototype.set=Je;var it=yt();function st(e){return null==e?void 0===e?S:_:ve&&ve in Object(e)?bt(e):Dt(e)}function rt(e){return Ut(e)&&st(e)==l}function nt(e){return!(!jt(e)||Lt(e))&&(Bt(e)?he:F).test(It(e))}function at(e){return Ut(e)&&Ht(e.length)&&!!N[st(e)]}function ot(e){if(!jt(e))return Et(e);var t=kt(e),i=[];for(var s in e)("constructor"!=s||!t&&ae.call(e,s))&&i.push(s);return i}function lt(e,t,i,s,r){e!==t&&it(t,(function(n,a){if(r||(r=new Ge),jt(n))dt(e,t,a,i,lt,s,r);else{var o=s?s(At(e,a),n,a+"",e,t,r):void 0;void 0===o&&(o=n),Qe(e,a,o)}}),Wt)}function dt(e,t,i,s,r,n,a){var o=At(e,i),l=At(t,i),d=a.get(l);if(d)Qe(e,i,d);else{var h=n?n(o,l,i+"",e,t,a):void 0,c=void 0===h;if(c){var u=Yt(l),f=!u&&Nt(l),m=!u&&!f&&Gt(l);h=l,u||f||m?Yt(o)?h=o:$t(o)?h=mt(o):f?(c=!1,h=ct(l,!0)):m?(c=!1,h=ft(l,!0)):h=[]:Vt(l)||Ot(l)?(h=o,Ot(o)?h=zt(o):jt(o)&&!Bt(o)||(h=wt(l))):c=!1}c&&(a.set(l,h),r(h,l,s,n,a),a.delete(l)),Qe(e,i,h)}}function ht(e,t){return Pt(xt(e,t,Jt),e+"")}function ct(e,t){if(t)return e.slice();var i=e.length,s=me?me(i):new e.constructor(i);return e.copy(s),s}function ut(e){var t=new e.constructor(e.byteLength);return new fe(t).set(new fe(e)),t}function ft(e,t){var i=t?ut(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function mt(e,t){var i=-1,s=e.length;for(t||(t=Array(s));++i<s;)t[i]=e[i];return t}function pt(e,t,i,s){var r=!i;i||(i={});for(var n=-1,a=t.length;++n<a;){var o=t[n],l=s?s(i[o],e[o],o,i,e):void 0;void 0===l&&(l=e[o]),r?tt(i,o,l):Ze(i,o,l)}return i}function gt(e){return ht((function(t,i){var s=-1,r=i.length,n=r>1?i[r-1]:void 0,a=r>2?i[2]:void 0;for(n=e.length>3&&"function"==typeof n?(r--,n):void 0,a&&Mt(i[0],i[1],a)&&(n=r<3?void 0:n,r=1),t=Object(t);++s<r;){var o=i[s];o&&e(t,o,s,n)}return t}))}function yt(e){return function(t,i,s){for(var r=-1,n=Object(t),a=s(t),o=a.length;o--;){var l=a[e?o:++r];if(!1===i(n[l],l,n))break}return t}}function _t(e,t){var i=e.__data__;return St(t)?i["string"==typeof t?"string":"hash"]:i.map}function vt(e,t){var i=Q(e,t);return nt(i)?i:void 0}function bt(e){var t=ae.call(e,ve),i=e[ve];try{e[ve]=void 0;var s=!0}catch(e){}var r=le.call(e);return s&&(t?e[ve]=i:delete e[ve]),r}function wt(e){return"function"!=typeof e.constructor||kt(e)?{}:ke(pe(e))}function Tt(e,t){var i=typeof e;return!!(t=null==t?o:t)&&("number"==i||"symbol"!=i&&$.test(e))&&e>-1&&e%1==0&&e<t}function Mt(e,t,i){if(!jt(i))return!1;var s=typeof t;return!!("number"==s?Ft(i)&&Tt(t,i.length):"string"==s&&t in i)&&Rt(i[t],e)}function St(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Lt(e){return!!oe&&oe in e}function kt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||se)}function Et(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t}function Dt(e){return le.call(e)}function xt(e,t,i){return t=Te(void 0===t?e.length-1:t,0),function(){for(var s=arguments,r=-1,n=Te(s.length-t,0),a=Array(n);++r<n;)a[r]=s[t+r];r=-1;for(var o=Array(t+1);++r<t;)o[r]=s[r];return o[t]=i(a),K(e,this,o)}}function At(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Pt=Ct(be?function(e,t){return be(e,"toString",{configurable:!0,enumerable:!1,value:Kt(t),writable:!0})}:Jt);function Ct(e){var t=0,i=0;return function(){var s=Me(),r=a-(s-i);if(i=s,r>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function It(e){if(null!=e){try{return ne.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Rt(e,t){return e===t||e!=e&&t!=t}var Ot=rt(function(){return arguments}())?rt:function(e){return Ut(e)&&ae.call(e,"callee")&&!ye.call(e,"callee")},Yt=Array.isArray;function Ft(e){return null!=e&&Ht(e.length)&&!Bt(e)}function $t(e){return Ut(e)&&Ft(e)}var Nt=we||Xt;function Bt(e){if(!jt(e))return!1;var t=st(e);return t==m||t==p||t==h||t==b}function Ht(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function jt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ut(e){return null!=e&&"object"==typeof e}function Vt(e){if(!Ut(e)||st(e)!=v)return!1;var t=pe(e);if(null===t)return!0;var i=ae.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&ne.call(i)==de}var Gt=q?X(q):at;function zt(e){return pt(e,Wt(e))}function Wt(e){return Ft(e)?Xe(e,!0):ot(e)}var qt=gt((function(e,t,i){lt(e,t,i)}));function Kt(e){return function(){return e}}function Jt(e){return e}function Xt(){return!1}t.exports=qt}).call(this)}).call(this,void 0!==i.g?i.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,i){var r,n;r=self,n=function(){return function(){"use strict";var e={720:function(e,t,i){i.r(t),i.d(t,{Scene:function(){return ot},Tweenable:function(){return Le},interpolate:function(){return tt},processTweens:function(){return ye},setBezierFunction:function(){return U},shouldScheduleUpdate:function(){return be},tween:function(){return ke},unsetBezierFunction:function(){return V}});var s={};i.r(s),i.d(s,{bounce:function(){return O},bouncePast:function(){return Y},easeFrom:function(){return $},easeFromTo:function(){return F},easeInBack:function(){return D},easeInCirc:function(){return S},easeInCubic:function(){return d},easeInExpo:function(){return w},easeInOutBack:function(){return A},easeInOutCirc:function(){return k},easeInOutCubic:function(){return c},easeInOutExpo:function(){return M},easeInOutQuad:function(){return l},easeInOutQuart:function(){return m},easeInOutQuint:function(){return y},easeInOutSine:function(){return b},easeInQuad:function(){return a},easeInQuart:function(){return u},easeInQuint:function(){return p},easeInSine:function(){return _},easeOutBack:function(){return x},easeOutBounce:function(){return E},easeOutCirc:function(){return L},easeOutCubic:function(){return h},easeOutExpo:function(){return T},easeOutQuad:function(){return o},easeOutQuart:function(){return f},easeOutQuint:function(){return g},easeOutSine:function(){return v},easeTo:function(){return N},elastic:function(){return P},linear:function(){return n}
vendor: 16,732 bytes, line 2
2,swingFrom:function(){return I},swingFromTo:function(){return C},swingTo:function(){return R}});var r={};i.r(r),i.d(r,{afterTween:function(){return Ke},beforeTween:function(){return qe},doesApply:function(){return ze},tweenCreated:function(){return We}});var n=function(e){return e},a=function(e){return Math.pow(e,2)},o=function(e){return-(Math.pow(e-1,2)-1)},l=function(e){return(e/=.5)<1?.5*Math.pow(e,2):-.5*((e-=2)*e-2)},d=function(e){return Math.pow(e,3)},h=function(e){return Math.pow(e-1,3)+1},c=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},u=function(e){return Math.pow(e,4)},f=function(e){return-(Math.pow(e-1,4)-1)},m=function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},p=function(e){return Math.pow(e,5)},g=function(e){return Math.pow(e-1,5)+1},y=function(e){return(e/=.5)<1?.5*Math.pow(e,5):.5*(Math.pow(e-2,5)+2)},_=function(e){return 1-Math.cos(e*(Math.PI/2))},v=function(e){return Math.sin(e*(Math.PI/2))},b=function(e){return-.5*(Math.cos(Math.PI*e)-1)},w=function(e){return 0===e?0:Math.pow(2,10*(e-1))},T=function(e){return 1===e?1:1-Math.pow(2,-10*e)},M=function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},S=function(e){return-(Math.sqrt(1-e*e)-1)},L=function(e){return Math.sqrt(1-Math.pow(e-1,2))},k=function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},E=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},D=function(e){var t=1.70158;return e*e*((t+1)*e-t)},x=function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},A=function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},P=function(e){return-1*Math.pow(4,-8*e)*Math.sin((6*e-1)*(2*Math.PI)/2)+1},C=function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},I=function(e){var t=1.70158;return e*e*((t+1)*e-t)},R=function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},O=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},Y=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?2-(7.5625*(e-=1.5/2.75)*e+.75):e<2.5/2.75?2-(7.5625*(e-=2.25/2.75)*e+.9375):2-(7.5625*(e-=2.625/2.75)*e+.984375)},F=function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},$=function(e){return Math.pow(e,4)},N=function(e){return Math.pow(e,.25)};function B(e,t,i,s,r,n){var a,o,l,d,h,c=0,u=0,f=0,m=function(e){return((c*e+u)*e+f)*e},p=function(e){return(3*c*e+2*u)*e+f},g=function(e){return e>=0?e:0-e};return c=1-(f=3*t)-(u=3*(s-t)-f),l=1-(h=3*i)-(d=3*(r-i)-h),a=e,o=function(e){return 1/(200*e)}(n),function(e){return((l*e+d)*e+h)*e}(function(e,t){var i,s,r,n,a,o;for(r=e,o=0;o<8;o++){if(n=m(r)-e,g(n)<t)return r;if(a=p(r),g(a)<1e-6)break;r-=n/a}if((r=e)<(i=0))return i;if(r>(s=1))return s;for(;i<s;){if(n=m(r),g(n-e)<t)return r;e>n?i=r:s=r,r=.5*(s-i)+i}return r}(a,o))}var H,j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.25,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.25,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.75,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.75;return function(r){return B(r,e,t,i,s,1)}},U=function(e,t,i,s,r){var n=j(t,i,s,r);return n.displayName=e,n.x1=t,n.y1=i,n.x2=s,n.y2=r,Le.formulas[e]=n},V=function(e){return delete Le.formulas[e]};function G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function W(e){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(e)}function q(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return K(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?K(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}function J(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function X(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?J(Object(i),!0).forEach((function(t){Q(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):J(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Q(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var Z,ee,te,ie="linear",se="undefined"!=typeof window?window:i.g,re="afterTween",ne="afterTweenEnd",ae="beforeTween",oe="tweenCreated",le="function",de="string",he=se.requestAnimationFrame||se.webkitRequestAnimationFrame||se.oRequestAnimationFrame||se.msRequestAnimationFrame||se.mozCancelRequestAnimationFrame&&se.mozRequestAnimationFrame||setTimeout,ce=function(){},ue=null,fe=null,me=X({},s),pe=function(e,t,i,s,r,n,a){var o,l,d,h=e<n?0:(e-n)/r,c=!1;for(var u in a&&a.call&&(c=!0,o=a(h)),t)c||(o=((l=a[u]).call?l:me[l])(h)),d=i[u],t[u]=d+(s[u]-d)*o;return t},ge=function(e,t){var i=e._timestamp,s=e._currentState,r=e._delay;if(!(t<i+r)){var n=e._duration,a=e._targetState,o=i+r+n,l=t>o?o:t;e._hasEnded=l>=o;var d=n-(o-l),h=e._filters.length>0;if(e._hasEnded)return e._render(a,e._data,d),e.stop(!0);h&&e._applyFilter(ae),l<i+r?i=n=l=1:i+=r,pe(l,s,e._originalState,a,n,i,e._easing),h&&e._applyFilter(re),e._render(s,e._data,d)}},ye=function(){for(var e,t=Le.now(),i=ue;i;)e=i._next,ge(i,t),i=e},_e=Date.now||function(){return+new Date},ve=!1,be=function(e){e&&ve||(ve=e,e&&we())},we=function e(){Z=_e(),ve&&he.call(se,e,16.666666666666668),ye()},Te=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Array.isArray(t))return j.apply(void 0,q(t));var s=W(t);if(me[t])return me[t];if(s===de||s===le)for(var r in e)i[r]=t;else for(var n in e)i[n]=t[n]||ie;return i},Me=function(e){e===ue?(ue=e._next)?ue._previous=null:fe=null:e===fe?(fe=e._previous)?fe._next=null:ue=null:(ee=e._previous,te=e._next,ee._next=te,te._previous=ee),e._previous=e._next=null},Se="function"==typeof Promise?Promise:null;H=Symbol.toStringTag;var Le=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;G(this,e),Q(this,H,"Promise"),this._config={},this._data={},this._delay=0,this._filters=[],this._next=null,this._previous=null,this._timestamp=null,this._hasEnded=!1,this._resolve=null,this._reject=null,this._currentState=t||{},this._originalState={},this._targetState={},this._start=ce,this._render=ce,this._promiseCtor=Se,i&&this.setConfig(i)}var t;return t=[{key:"_applyFilter",value:function(e){for(var t=this._filters.length;t>0;t--){var i=this._filters[t-t][e];i&&i(this)}}},{key:"tween",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return this._isPlaying&&this.stop(),!t&&this._config||this.setConfig(t),this._pausedAtTime=null,this._timestamp=e.now(),this._start(this.get(),this._data),this._delay&&this._render(this._currentState,this._data,0),this._resume(this._timestamp)}},{key:"setConfig",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=this._config;for(var s in t)i[s]=t[s];var r=i.promise,n=void 0===r?this._promiseCtor:r,a=i.start,o=void 0===a?ce:a,l=i.finish,d=i.render,h=void 0===d?this._config.step||ce:d,c=i.step,u=void 0===c?ce:c;this._data=i.data||i.attachment||this._data,this._isPlaying=!1,this._pausedAtTime=null,this._scheduleId=null,this._delay=t.delay||0,this._start=o,this._render=h||u,this._duration=i.duration||500,this._promiseCtor=n,l&&(this._resolve=l);var f=t.from,m=t.to,p=void 0===m?{}:m,g=this._currentState,y=this._originalState,_=this._targetState;for(var v in f)g[v]=f[v];var b=!1;for(var w in g){var T=g[w];b||W(T)!==de||(b=!0),y[w]=T,_[w]=p.hasOwnProperty(w)?p[w]:T}if(this._easing=Te(this._currentState,i.easing,this._easing),this._filters.length=0,b){for(var M in e.filters)e.filters[M].doesApply(this)&&this._filters.push(e.filters[M]);this._applyFilter(oe)}return this}},{key:"then",value:function(e,t){var i=this;return this._promise=new this._promiseCtor((function(e,t){i._resolve=e,i._reject=t})),this._promise.then(e,t)}},{key:"catch",value:function(e){return this.then().catch(e)}},{key:"finally",value:function(e){return this.then().finally(e)}},{key:"get",value:function(){return X({},this._currentState)}},{key:"set",value:function(e){this._currentState=e}},{key:"pause",value:function(){if(this._isPlaying)return this._pausedAtTime=e.now(),this._isPlaying=!1,Me(this),this}},{key:"resume",value:function(){return this._resume()}},{key:"_resume",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.now();return null===this._timestamp?this.tween():this._isPlaying?this._promise:(this._pausedAtTime&&(this._timestamp+=t-this._pausedAtTime,this._pausedAtTime=null),this._isPlaying=!0,null===ue?(ue=this,fe=this):(this._previous=fe,fe._next=this,fe=this),this)}},{key:"seek",value:function(t){t=Math.max(t,0);var i=e.now();return this._timestamp+t===0||(this._timestamp=i-t,ge(this,i)),this}},{key:"stop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._isPlaying)return this;this._isPlaying=!1,Me(this);var t=this._filters.length>0;return e&&(t&&this._applyFilter(ae),pe(1,this._currentState,this._originalState,this._targetState,1,0,this._easing),t&&(this._applyFilter(re),this._applyFilter(ne))),this._resolve&&this._resolve({data:this._data,state:this._currentState,tweenable:this}),this._resolve=null,this._reject=null,this}},{key:"cancel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._currentState,i=this._data;return this._isPlaying?(this._reject&&this._reject({data:i,state:t,tweenable:this}),this._resolve=null,this._reject=null,this.stop(e)):this}},{key:"isPlaying",value:function(){return this._isPlaying}},{key:"hasEnded",value:function(){return this._hasEnded}},{key:"setScheduleFunction",value:function(t){e.setScheduleFunction(t)}},{key:"data",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e&&(this._data=X({},e)),this._data}},{key:"dispose",value:function(){for(var e in this)delete this[e]}}],t&&z(e.prototype,t),e}();function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Le;return t.tween(e),t.tweenable=t,t}Q(Le,"now",(function(){return Z})),Q(Le,"setScheduleFunction",(function(e){return he=e})),Q(Le,"filters",{}),Q(Le,"formulas",me),be(!0);var Ee,De,xe=/(\d|-|\.)/,Ae=/([^\-0-9.]+)/g,Pe=/[0-9.-]+/g,Ce=(Ee=Pe.source,De=/,\s*/.source,new RegExp("rgba?\\(".concat(Ee).concat(De).concat(Ee).concat(De).concat(Ee,"(").concat(De).concat(Ee,")?\\)"),"g")),Ie=/^.*\(/,Re=/#([0-9]|[a-f]){3,6}/gi,Oe="VAL",Ye=function(e,t){return e.map((function(e,i){return"_".concat(t,"_").concat(i)}))};function Fe(e){return parseInt(e,16)}var $e=function(e){return"rgb(".concat((t=e,3===(t=t.replace(/#/,"")).length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]),[Fe(t.substr(0,2)),Fe(t.substr(2,2)),Fe(t.substr(4,2))]).join(","),")");var t},Ne=function(e,t,i){var s=t.match(e),r=t.replace(e,Oe);return s&&s.forEach((function(e){return r=r.replace(Oe,i(e))})),r},Be=function(e){for(var t in e){var i=e[t];"string"==typeof i&&i.match(Re)&&(e[t]=Ne(Re,i,$e))}},He=function(e){var t=e.match(Pe),i=t.slice(0,3).map(Math.floor),s=e.match(Ie)[0];if(3===t.length)return"".concat(s).concat(i.join(","),")");if(4===t.length)return"".concat(s).concat(i.join(","),",").concat(t[3],")");throw new Error("Invalid rgbChunk: ".concat(e))},je=function(e){return e.match(Pe)},Ue=function(e,t){var i={};return t.forEach((function(t){i[t]=e[t],delete e[t]})),i},Ve=function(e,t){return t.map((function(t){return e[t]}))},Ge=function(e,t){return t.forEach((function(t){return e=e.replace(Oe,+t.toFixed(4))})),e},ze=function(e){for(var t in e._currentState)if("string"==typeof e._currentState[t])return!0;return!1};function We(e){var t=e._currentState;[t,e._originalState,e._targetState].forEach(Be),e._tokenData=function(e){var t,i,s={};for(var r in e){var n=e[r];"string"==typeof n&&(s[r]={formatString:(t=n,i=void 0,i=t.match(Ae),i?(1===i.length||t.charAt(0).match(xe))&&i.unshift(""):i=["",""],i.join(Oe)),chunkNames:Ye(je(n),r)})}return s}(t)}function qe(e){var t=e._currentState,i=e._originalState,s=e._targetState,r=e._easing,n=e._tokenData;!function(e,t){var i=function(i){var s=t[i].chunkNames,r=e[i];if("string"==typeof r){var n=r.split(" "),a=n[n.length-1];s.forEach((function(t,i){return e[t]=n[i]||a}))}else s.forEach((function(t){return e[t]=r}));delete e[i]};for(var s in t)i(s)}(r,n),[t,i,s].forEach((function(e){return function(e,t){var i=function(i){je(e[i]).forEach((function(s,r){return e[t[i].chunkNames[r]]=+s})),delete e[i]};for(var s in t)i(s)}(e,n)}))}function Ke(e){var t=e._currentState,i=e._originalState,s=e._targetState,r=e._easing,n=e._tokenData;[t,i,s].forEach((function(e){return function(e,t){for(var i in t){var s=t[i],r=s.chunkNames,n=s.formatString,a=Ge(n,Ve(Ue(e,r),r));e[i]=Ne(Ce,a,He)}}(e,n)})),function(e,t){for(var i in t){var s=t[i].chunkNames,r=e[s[0]];e[i]="string"==typeof r?s.map((function(t){var i=e[t];return delete e[t],i})).join(" "):r}}(r,n)}function Je(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function Xe(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(i),!0).forEach((function(t){Qe(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Je(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Qe(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var Ze=new Le,et=Le.filters,tt=function(e,t,i,s){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,n=Xe({},e),a=Te(e,s);for(var o in Ze._filters.length=0,Ze.set({}),Ze._currentState=n,Ze._originalState=e,Ze._targetState=t,Ze._easing=a,et)et[o].doesApply(Ze)&&Ze._filters.push(et[o]);Ze._applyFilter("tweenCreated"),Ze._applyFilter("beforeTween");var l=pe(i,n,e,t,1,r,a);return Ze._applyFilter("afterTween"),l};function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}function st(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rt(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function nt(e,t){var i=t.get(e);if(!i)throw new TypeError("attempted to get private field on non-instance");return i.get?i.get.call(e):i.value}var at=new WeakMap,ot=function(){function e(){st(this,e),at.set(this,{writable:!0,value:[]});for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];i.forEach(this.add.bind(this))}var t;return(t=[{key:"add",value:function(e){return nt(this,at).push(e),e}},{key:"remove",value:function(e){var t=nt(this,at).indexOf(e);return~t&&nt(this,at).splice(t,1),e}},{key:"empty",value:function(){return this.tweenables.map(this.remove.bind(this))}},{key:"isPlaying",value:function(){return nt(this,at).some((function(e){return e.isPlaying()}))}},{key:"play",value:function(){return nt(this,at).forEach((function(e){return e.tween()})),this}},{key:"pause",value:function(){return nt(this,at).forEach((function(e){return e.pause()})),this}},{key:"resume",value:function(){return this.playingTweenables.forEac
vendor: 9,909 bytes, line 2
2h((function(e){return e.resume()})),this}},{key:"stop",value:function(e){return nt(this,at).forEach((function(t){return t.stop(e)})),this}},{key:"tweenables",get:function(){return function(e){if(Array.isArray(e))return it(e)}(e=nt(this,at))||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return it(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?it(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();var e}},{key:"playingTweenables",get:function(){return nt(this,at).filter((function(e){return!e.hasEnded()}))}},{key:"promises",get:function(){return nt(this,at).map((function(e){return e.then()}))}}])&&rt(e.prototype,t),e}();Le.filters.token=r}},t={};function i(s){if(t[s])return t[s].exports;var r=t[s]={exports:{}};return e[s](r,r.exports,i),r.exports}return i.d=function(e,t){for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i(720)}()},"object"==typeof i&&"object"==typeof t?t.exports=n():"function"==typeof s&&s.amd?s("shifty",[],n):"object"==typeof i?i.shifty=n():r.shifty=n()},{}],3:[function(e,t,i){var s=e("./shape"),r=e("./utils"),n=function(e,t){this._pathTemplate="M 50,50 m 0,-{radius} a {radius},{radius} 0 1 1 0,{2radius} a {radius},{radius} 0 1 1 0,-{2radius}",this.containerAspectRatio=1,s.apply(this,arguments)};n.prototype=new s,n.prototype.constructor=n,n.prototype._pathString=function(e){var t=e.strokeWidth;e.trailWidth&&e.trailWidth>e.strokeWidth&&(t=e.trailWidth);var i=50-t/2;return r.render(this._pathTemplate,{radius:i,"2radius":2*i})},n.prototype._trailString=function(e){return this._pathString(e)},t.exports=n},{"./shape":8,"./utils":10}],4:[function(e,t,i){var s=e("./shape"),r=e("./utils"),n=function(e,t){this._pathTemplate=t.vertical?"M {center},100 L {center},0":"M 0,{center} L 100,{center}",s.apply(this,arguments)};n.prototype=new s,n.prototype.constructor=n,n.prototype._initializeSvg=function(e,t){var i=t.vertical?"0 0 "+t.strokeWidth+" 100":"0 0 100 "+t.strokeWidth;e.setAttribute("viewBox",i),e.setAttribute("preserveAspectRatio","none")},n.prototype._pathString=function(e){return r.render(this._pathTemplate,{center:e.strokeWidth/2})},n.prototype._trailString=function(e){return this._pathString(e)},t.exports=n},{"./shape":8,"./utils":10}],5:[function(e,t,i){t.exports={Line:e("./line"),Circle:e("./circle"),SemiCircle:e("./semicircle"),Square:e("./square"),Path:e("./path"),Shape:e("./shape"),utils:e("./utils")}},{"./circle":3,"./line":4,"./path":6,"./semicircle":7,"./shape":8,"./square":9,"./utils":10}],6:[function(e,t,i){var s=e("shifty"),r=e("./utils"),n=s.Tweenable,a={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"},o=function e(t,i){if(!(this instanceof e))throw new Error("Constructor was called without new keyword");var s;i=r.extend({delay:0,duration:800,easing:"linear",from:{},to:{},step:function(){}},i),s=r.isString(t)?document.querySelector(t):t,this.path=s,this._opts=i,this._tweenable=null;var n=this.path.getTotalLength();this.path.style.strokeDasharray=n+" "+n,this.set(0)};o.prototype.value=function(){var e=this._getComputedDashOffset(),t=this.path.getTotalLength();return parseFloat((1-e/t).toFixed(6),10)},o.prototype.set=function(e){this.stop(),this.path.style.strokeDashoffset=this._progressToOffset(e);var t=this._opts.step;if(r.isFunction(t)){var i=this._easing(this._opts.easing);t(this._calculateTo(e,i),this._opts.shape||this,this._opts.attachment)}},o.prototype.stop=function(){this._stopTween(),this.path.style.strokeDashoffset=this._getComputedDashOffset()},o.prototype.animate=function(e,t,i){t=t||{},r.isFunction(t)&&(i=t,t={});var s=r.extend({},t),a=r.extend({},this._opts);t=r.extend(a,t);var o=this._easing(t.easing),l=this._resolveFromAndTo(e,o,s);this.stop(),this.path.getBoundingClientRect();var d=this._getComputedDashOffset(),h=this._progressToOffset(e),c=this;this._tweenable=new n,this._tweenable.tween({from:r.extend({offset:d},l.from),to:r.extend({offset:h},l.to),duration:t.duration,delay:t.delay,easing:o,step:function(e){c.path.style.strokeDashoffset=e.offset;var i=t.shape||c;t.step(e,i,t.attachment)}}).then((function(e){r.isFunction(i)&&i()})).catch((function(e){throw console.error("Error in tweening:",e),e}))},o.prototype._getComputedDashOffset=function(){var e=window.getComputedStyle(this.path,null);return parseFloat(e.getPropertyValue("stroke-dashoffset"),10)},o.prototype._progressToOffset=function(e){var t=this.path.getTotalLength();return t-e*t},o.prototype._resolveFromAndTo=function(e,t,i){return i.from&&i.to?{from:i.from,to:i.to}:{from:this._calculateFrom(t),to:this._calculateTo(e,t)}},o.prototype._calculateFrom=function(e){return s.interpolate(this._opts.from,this._opts.to,this.value(),e)},o.prototype._calculateTo=function(e,t){return s.interpolate(this._opts.from,this._opts.to,e,t)},o.prototype._stopTween=function(){null!==this._tweenable&&(this._tweenable.stop(!0),this._tweenable=null)},o.prototype._easing=function(e){return a.hasOwnProperty(e)?a[e]:e},t.exports=o},{"./utils":10,shifty:2}],7:[function(e,t,i){var s=e("./shape"),r=e("./circle"),n=e("./utils"),a=function(e,t){this._pathTemplate="M 50,50 m -{radius},0 a {radius},{radius} 0 1 1 {2radius},0",this.containerAspectRatio=2,s.apply(this,arguments)};a.prototype=new s,a.prototype.constructor=a,a.prototype._initializeSvg=function(e,t){e.setAttribute("viewBox","0 0 100 50")},a.prototype._initializeTextContainer=function(e,t,i){e.text.style&&(i.style.top="auto",i.style.bottom="0",e.text.alignToBottom?n.setStyle(i,"transform","translate(-50%, 0)"):n.setStyle(i,"transform","translate(-50%, 50%)"))},a.prototype._pathString=r.prototype._pathString,a.prototype._trailString=r.prototype._trailString,t.exports=a},{"./circle":3,"./shape":8,"./utils":10}],8:[function(e,t,i){var s=e("./path"),r=e("./utils"),n="Object is destroyed",a=function e(t,i){if(!(this instanceof e))throw new Error("Constructor was called without new keyword");if(0!==arguments.length){this._opts=r.extend({color:"#555",strokeWidth:1,trailColor:null,trailWidth:null,fill:null,text:{style:{color:null,position:"absolute",left:"50%",top:"50%",padding:0,margin:0,transform:{prefix:!0,value:"translate(-50%, -50%)"}},autoStyleContainer:!0,alignToBottom:!0,value:null,className:"progressbar-text"},svgStyle:{display:"block",width:"100%"},warnings:!1},i,!0),r.isObject(i)&&void 0!==i.svgStyle&&(this._opts.svgStyle=i.svgStyle),r.isObject(i)&&r.isObject(i.text)&&void 0!==i.text.style&&(this._opts.text.style=i.text.style);var n,a=this._createSvgView(this._opts);if(!(n=r.isString(t)?document.querySelector(t):t))throw new Error("Container does not exist: "+t);this._container=n,this._container.appendChild(a.svg),this._opts.warnings&&this._warnContainerAspectRatio(this._container),this._opts.svgStyle&&r.setStyles(a.svg,this._opts.svgStyle),this.svg=a.svg,this.path=a.path,this.trail=a.trail,this.text=null;var o=r.extend({attachment:void 0,shape:this},this._opts);this._progressPath=new s(a.path,o),r.isObject(this._opts.text)&&null!==this._opts.text.value&&this.setText(this._opts.text.value)}};a.prototype.animate=function(e,t,i){if(null===this._progressPath)throw new Error(n);this._progressPath.animate(e,t,i)},a.prototype.stop=function(){if(null===this._progressPath)throw new Error(n);void 0!==this._progressPath&&this._progressPath.stop()},a.prototype.pause=function(){if(null===this._progressPath)throw new Error(n);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.pause()},a.prototype.resume=function(){if(null===this._progressPath)throw new Error(n);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.resume()},a.prototype.destroy=function(){if(null===this._progressPath)throw new Error(n);this.stop(),this.svg.parentNode.removeChild(this.svg),this.svg=null,this.path=null,this.trail=null,this._progressPath=null,null!==this.text&&(this.text.parentNode.removeChild(this.text),this.text=null)},a.prototype.set=function(e){if(null===this._progressPath)throw new Error(n);this._progressPath.set(e)},a.prototype.value=function(){if(null===this._progressPath)throw new Error(n);return void 0===this._progressPath?0:this._progressPath.value()},a.prototype.setText=function(e){if(null===this._progressPath)throw new Error(n);null===this.text&&(this.text=this._createTextContainer(this._opts,this._container),this._container.appendChild(this.text)),r.isObject(e)?(r.removeChildren(this.text),this.text.appendChild(e)):this.text.innerHTML=e},a.prototype._createSvgView=function(e){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(t,e);var i=null;(e.trailColor||e.trailWidth)&&(i=this._createTrail(e),t.appendChild(i));var s=this._createPath(e);return t.appendChild(s),{svg:t,path:s,trail:i}},a.prototype._initializeSvg=function(e,t){e.setAttribute("viewBox","0 0 100 100")},a.prototype._createPath=function(e){var t=this._pathString(e);return this._createPathElement(t,e)},a.prototype._createTrail=function(e){var t=this._trailString(e),i=r.extend({},e);return i.trailColor||(i.trailColor="#eee"),i.trailWidth||(i.trailWidth=i.strokeWidth),i.color=i.trailColor,
2i.strokeWidth=i.trailWidth,i.fill=null,this._createPathElement(t,i)},a.prototype._createPathElement=function(e,t){var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",e),i.setAttribute("stroke",t.color),i.setAttribute("stroke-width",t.strokeWidth),t.fill?i.setAttribute("fill",t.fill):i.setAttribute("fill-opacity","0"),i},a.prototype._createTextContainer=function(e,t){var i=document.createElement("div");i.className=e.text.className;var s=e.text.style;return s&&(e.text.autoStyleContainer&&(t.style.position="relative"),r.setStyles(i,s),s.color||(i.style.color=e.color)),this._initializeTextContainer(e,t,i),i},a.prototype._initializeTextContainer=function(e,t,i){},a.prototype._pathString=function(e){throw new Error("Override this function for each progress bar")},a.prototype._trailString=function(e){throw new Error("Override this function for each progress bar")},a.prototype._warnContainerAspectRatio=function(e){if(this.containerAspectRatio){var t=window.getComputedStyle(e,null),i=parseFloat(t.getPropertyValue("width"),10),s=parseFloat(t.getPropertyValue("height"),10);r.floatEquals(this.containerAspectRatio,i/s)||(console.warn("Incorrect aspect ratio of container","#"+e.id,"detected:",t.getPropertyValue("width")+"(width)","/",t.getPropertyValue("height")+"(height)","=",i/s),console.warn("Aspect ratio of should be",this.containerAspectRatio))}},t.exports=a},{"./path":6,"./utils":10}],9:[function(e,t,i){var s=e("./shape"),r=e("./utils"),n=function(e,t){this._pathTemplate="M 0,{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{strokeWidth}",this._trailTemplate="M {startMargin},{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{halfOfStrokeWidth}",s.apply(this,arguments)};n.prototype=new s,n.prototype.constructor=n,n.prototype._pathString=function(e){var t=100-e.strokeWidth/2;return r.render(this._pathTemplate,{width:t,strokeWidth:e.strokeWidth,halfOfStrokeWidth:e.strokeWidth/2})},n.prototype._trailString=function(e){var t=100-e.strokeWidth/2;return r.render(this._trailTemplate,{width:t,strokeWidth:e.strokeWidth,halfOfStrokeWidth:e.strokeWidth/2,startMargin:e.strokeWidth/2-e.trailWidth/2})},t.exports=n},{"./shape":8,"./utils":10}],10:[function(e,t,i){var s=e("lodash.merge"),r="Webkit Moz O ms".split(" "),n=.001;function a(e,t){var i=e;for(var s in t)if(t.hasOwnProperty(s)){var r=t[s],n=new RegExp("\\{"+s+"\\}","g");i=i.replace(n,r)}return i}function o(e,t,i){for(var s=e.style,n=0;n<r.length;++n)s[r[n]+d(t)]=i;s[t]=i}function l(e,t){m(t,(function(t,i){null!=t&&(f(t)&&!0===t.prefix?o(e,i,t.value):e.style[i]=t)}))}function d(e){return e.charAt(0).toUpperCase()+e.slice(1)}function h(e){return"string"==typeof e||e instanceof String}function c(e){return"function"==typeof e}function u(e){return"[object Array]"===Object.prototype.toString.call(e)}function f(e){return!u(e)&&"object"==typeof e&&!!e}function m(e,t){for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)}function p(e,t){return Math.abs(e-t)<n}function g(e){for(;e.firstChild;)e.removeChild(e.firstChild)}t.exports={extend:s,render:a,setStyle:o,setStyles:l,capitalize:d,isString:h,isFunction:c,isObject:f,forEachObject:m,floatEquals:p,removeChildren:g}},{"lodash.merge":1}]},{},[5])(5)},1011:function(e,t,i){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_mÃ¥ndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mÃ¥n_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_mÃ¥_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[IgÃ¥r] LT",nextWeek:"[PÃ¥] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"nÃ¥gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en mÃ¥nad",MM:"%d mÃ¥nader",y:"ett Ã¥r",yy:"%d Ã¥r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(i(5093))},1025:function(e,t,i){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"à¯",8:"௮",9:"௯",0:"௦"},i={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","à¯":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"à®à®©à®µà®°à®¿_பிபà¯à®°à®µà®°à®¿_மாரà¯à®à¯_à®à®ªà¯à®°à®²à¯_à®®à¯_à®à¯à®©à¯_à®à¯à®²à¯_à®à®à®¸à¯à®à¯_à®à¯à®ªà¯à®à¯à®®à¯à®ª
2à®°à¯_à®
à®à¯à®à¯à®¾à®ªà®°à¯_நவமà¯à®ªà®°à¯_à®à®¿à®à®®à¯à®ªà®°à¯".split("_"),monthsShort:"à®à®©à®µà®°à®¿_பிபà¯à®°à®µà®°à®¿_மாரà¯à®à¯_à®à®ªà¯à®°à®²à¯_à®®à¯_à®à¯à®©à¯_à®à¯à®²à¯_à®à®à®¸à¯à®à¯_à®à¯à®ªà¯à®à¯à®®à¯à®ªà®°à¯_à®
à®à¯à®à¯à®¾à®ªà®°à¯_நவமà¯à®ªà®°à¯_à®à®¿à®à®®à¯à®ªà®°à¯".split("_"),weekdays:"à®à®¾à®¯à®¿à®±à¯à®±à¯à®à¯à®à®¿à®´à®®à¯_திà®à¯à®à®à¯à®à®¿à®´à®®à¯_à®à¯à®µà¯à®µà®¾à®¯à¯à®à®¿à®´à®®à¯_பà¯à®¤à®©à¯à®à®¿à®´à®®à¯_வியாழà®à¯à®à®¿à®´à®®à¯_வà¯à®³à¯à®³à®¿à®à¯à®à®¿à®´à®®à¯_à®à®©à®¿à®à¯à®à®¿à®´à®®à¯".split("_"),weekdaysShort:"à®à®¾à®¯à®¿à®±à¯_திà®à¯à®à®³à¯_à®à¯à®µà¯à®µà®¾à®¯à¯_பà¯à®¤à®©à¯_வியாழனà¯_வà¯à®³à¯à®³à®¿_à®à®©à®¿".split("_"),weekdaysMin:"à®à®¾_தி_à®à¯_பà¯_வி_வà¯_à®".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[à®à®©à¯à®±à¯] LT",nextDay:"[நாளà¯] LT",nextWeek:"dddd, LT",lastDay:"[நà¯à®±à¯à®±à¯] LT",lastWeek:"[à®à®à®¨à¯à®¤ வாரமà¯] dddd, LT",sameElse:"L"},relativeTime:{future:"%s à®à®²à¯",past:"%s à®®à¯à®©à¯",s:"à®à®°à¯ à®à®¿à®² விநாà®à®¿à®à®³à¯",ss:"%d விநாà®à®¿à®à®³à¯",m:"à®à®°à¯ நிமிà®à®®à¯",mm:"%d நிமிà®à®à¯à®à®³à¯",h:"à®à®°à¯ மணி நà¯à®°à®®à¯",hh:"%d மணி நà¯à®°à®®à¯",d:"à®à®°à¯ நாளà¯",dd:"%d நாà®à¯à®à®³à¯",M:"à®à®°à¯ மாதமà¯",MM:"%d மாதà®à¯à®à®³à¯",y:"à®à®°à¯ வரà¯à®à®®à¯",yy:"%d à®à®£à¯à®à¯à®à®³à¯"},dayOfMonthOrdinalParse:/\d{1,2}வதà¯/,ordinal:function(e){return e+"வதà¯"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬à¯à¯®à¯¯à¯¦]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமமà¯|வà¯à®à®±à¯|à®à®¾à®²à¯|நணà¯à®ªà®à®²à¯|à®à®±à¯à®ªà®¾à®à¯|மாலà¯/,meridiem:function(e,t,i){return e<2?" யாமமà¯":e<6?" வà¯à®à®±à¯":e<10?" à®à®¾à®²à¯":e<14?" நணà¯à®ªà®à®²à¯":e<18?" à®à®±à¯à®ªà®¾à®à¯":e<22?" மாலà¯":" யாமமà¯"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமமà¯"===t?e<2?e:e+12:"வà¯à®à®±à¯"===t||"à®à®¾à®²à¯"===t||"நணà¯à®ªà®à®²à¯"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(i(5093))},1052:function(e,t,i){!function(e){"use strict";var t="pagh_waâ_chaâ_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function i(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"}function s(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Huâ":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"}function r(e,t,i,s){var r=n(e);switch(i){case"ss":return r+" lup";case"mm":return r+" tup";
2case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}function n(e){var i=Math.floor(e%1e3/100),s=Math.floor(e%100/10),r=e%10,n="";return i>0&&(n+=t[i]+"vatlh"),s>0&&(n+=(""!==n?" ":"")+t[s]+"maH"),r>0&&(n+=(""!==n?" ":"")+t[r]),""===n?"pagh":n}e.defineLocale("tlh",{months:"teraâ jar waâ_teraâ jar chaâ_teraâ jar wej_teraâ jar loS_teraâ jar vagh_teraâ jar jav_teraâ jar Soch_teraâ jar chorgh_teraâ jar Hut_teraâ jar waâmaH_teraâ jar waâmaH waâ_teraâ jar waâmaH chaâ".split("_"),monthsShort:"jar waâ_jar chaâ_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar waâmaH_jar waâmaH waâ_jar waâmaH chaâ".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[waâleS] LT",nextWeek:"LLL",lastDay:"[waâHuâ] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:i,past:s,s:"puS lup",ss:r,m:"waâ tup",mm:r,h:"waâ rep",hh:r,d:"waâ jaj",dd:r,M:"waâ jar",MM:r,y:"waâ DIS",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(5093))},1135:function(e,t,i){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chá»§ nháºt_thứ hai_thứ ba_thứ tư_thứ nÄm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,i){return e<12?i?"sa":"SA":i?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [nÄm] YYYY",LLL:"D MMMM [nÄm] YYYY HH:mm",LLLL:"dddd, D MMMM [nÄm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngà y mai lúc] LT",nextWeek:"dddd [tuần tá»i lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trưá»c lúc] LT",sameElse:"L"},relativeTime:{future:"%s tá»i",past:"%s trưá»c",s:"và i giây",ss:"%d giây",m:"má»t phút",mm:"%d phút",h:"má»t giá»",hh:"%d giá»",d:"má»t ngà y",dd:"%d ngà y",w:"má»t tuần",ww:"%d tuần",M:"má»t tháng",MM:"%d tháng",y:"má»t nÄm",yy:"%d nÄm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(i(5093))},1216:(e,t,i)=>{"use strict";i.r(t),i.d(t,{afterMain:()=>T,afterRead:()=>v,afterWrite:()=>L,applyStyles:()=>C,arrow:()=>Q,auto:()=>o,basePlacements:()=>l,beforeMain:()=>b,beforeRead:()=>y,beforeWrite:()=>M,bottom:()=>r,clippingParents:()=>c,computeStyles:()=>ie,createPopper:()=>Ce,createPopperBase:()=>Pe,createPopperLite:()=>Ie,detectOverflow:()=>_e,end:()=>h,eventListeners:()=>re,flip:()=>ve,hide:()=>Te,left:()=>a,main:()=>w,modifierPhases:()=>k,offset:()=>Me,placements:()=>g,popper:()=>f,popperGenerator:()=>Ae,popperOffsets:()=>Se,preventOverflow:()=>Le,read:()=>_,reference:()=>m,right:()=>n,start:()=>d,top:()=>s,variationPlacements:()=>p,viewport:()=>u,write:()=>S});var s="top",r="bottom",n="right",a="left",o="auto",l=[s,r,n,a],d="start",h="end",c="clippingParents",u="viewport",f="popper",m="reference",p=l.reduce((function(e,t){return e.concat([t+"-"+d,t+"-"+h])}),[]),g=[].concat(l,[o]).reduce((function(e,t){return e.concat([t,t+"-"+d,t+"-"+h])}),[]),y="beforeRead",_="read",v="afterRead",b="beforeMain",w="main",T="afterMain",M="beforeWrite",S="write",L="afterWrite",k=[y,_,v,b,w,T,M,S,L];function E(e){return e?(e.nodeName||"").toLowerCase():null}function D(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function x(e){return e instanceof D(e).Element||e instanceof Element}function A(e){return e instanceof D(e).HTMLElement||e instanceof HTMLElement}function P(e){return"undefined"!=typeof ShadowRoot&&(e instanceof D(e).ShadowRoot||e instanceof ShadowRoot)}const C={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;
vendor: 10,633 bytes, line 2
2Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},s=t.attributes[e]||{},r=t.elements[e];A(r)&&E(r)&&(Object.assign(r.style,i),Object.keys(s).forEach((function(e){var t=s[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var s=t.elements[e],r=t.attributes[e]||{},n=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});A(s)&&E(s)&&(Object.assign(s.style,n),Object.keys(r).forEach((function(e){s.removeAttribute(e)})))}))}},requires:["computeStyles"]};function I(e){return e.split("-")[0]}var R=Math.max,O=Math.min,Y=Math.round;function F(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function $(){return!/^((?!chrome|android).)*safari/i.test(F())}function N(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var s=e.getBoundingClientRect(),r=1,n=1;t&&A(e)&&(r=e.offsetWidth>0&&Y(s.width)/e.offsetWidth||1,n=e.offsetHeight>0&&Y(s.height)/e.offsetHeight||1);var a=(x(e)?D(e):window).visualViewport,o=!$()&&i,l=(s.left+(o&&a?a.offsetLeft:0))/r,d=(s.top+(o&&a?a.offsetTop:0))/n,h=s.width/r,c=s.height/n;return{width:h,height:c,top:d,right:l+h,bottom:d+c,left:l,x:l,y:d}}function B(e){var t=N(e),i=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:s}}function H(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&P(i)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function j(e){return D(e).getComputedStyle(e)}function U(e){return["table","td","th"].indexOf(E(e))>=0}function V(e){return((x(e)?e.ownerDocument:e.document)||window.document).documentElement}function G(e){return"html"===E(e)?e:e.assignedSlot||e.parentNode||(P(e)?e.host:null)||V(e)}function z(e){return A(e)&&"fixed"!==j(e).position?e.offsetParent:null}function W(e){for(var t=D(e),i=z(e);i&&U(i)&&"static"===j(i).position;)i=z(i);return i&&("html"===E(i)||"body"===E(i)&&"static"===j(i).position)?t:i||function(e){var t=/firefox/i.test(F());if(/Trident/i.test(F())&&A(e)&&"fixed"===j(e).position)return null;var i=G(e);for(P(i)&&(i=i.host);A(i)&&["html","body"].indexOf(E(i))<0;){var s=j(i);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||t&&"filter"===s.willChange||t&&s.filter&&"none"!==s.filter)return i;i=i.parentNode}return null}(e)||t}function q(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function K(e,t,i){return R(e,O(t,i))}function J(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function X(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}const Q={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,o=e.name,d=e.options,h=i.elements.arrow,c=i.modifiersData.popperOffsets,u=I(i.placement),f=q(u),m=[a,n].indexOf(u)>=0?"height":"width";if(h&&c){var p=function(e,t){return J("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:X(e,l))}(d.padding,i),g=B(h),y="y"===f?s:a,_="y"===f?r:n,v=i.rects.reference[m]+i.rects.reference[f]-c[f]-i.rects.popper[m],b=c[f]-i.rects.reference[f],w=W(h),T=w?"y"===f?w.clientHeight||0:w.clientWidth||0:0,M=v/2-b/2,S=p[y],L=T-g[m]-p[_],k=T/2-g[m]/2+M,E=K(S,k,L),D=f;i.modifiersData[o]=((t={})[D]=E,t.centerOffset=E-k,t)}},effect:function(e){var t=e.state,i=e.options.element,s=void 0===i?"[data-popper-arrow]":i;null!=s&&("string"!=typeof s||(s=t.elements.popper.querySelector(s)))&&H(t.elements.popper,s)&&(t.elements.arrow=s)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Z(e){return e.split("-")[1]}var ee={top:"auto",right:"auto",bottom:"auto",left:"auto"};function te(e){var t,i=e.popper,o=e.popperRect,l=e.placement,d=e.variation,c=e.offsets,u=e.position,f=e.gpuAcceleration,m=e.adaptive,p=e.roundOffsets,g=e.isFixed,y=c.x,_=void 0===y?0:y,v=c.y,b=void 0===v?0:v,w="function"==typeof p?p({x:_,y:b}):{x:_,y:b};_=w.x,b=w.y;var T=c.hasOwnProperty("x"),M=c.hasOwnProperty("y"),S=a,L=s,k=window;if(m){var E=W(i),x="clientHeight",A="clientWidth";if(E===D(i)&&"static"!==j(E=V(i)).position&&"absolute"===u&&(x="scrollHeight",A="scrollWidth"),l===s||(l===a||l===n)&&d===h)L=r,b-=(g&&E===k&&k.visualViewport?k.visualViewport.height:E[x])-o.height,b*=f?1:-1;if(l===a||(l===s||l===r)&&d===h)S=n,_-=(g&&E===k&&k.visualViewport?k.visualViewport.width:E[A])-o.width,_*=f?1:-1}var P,C=Object.assign({position:u},m&&ee),I=!0===p?function(e,t){var i=e.x,s=e.y,r=t.devicePixelRatio||1;return{x:Y(i*r)/r||0,y:Y(s*r)/r||0}}({x:_,y:b},D(i)):{x:_,y:b};return _=I.x,b=I.y,f?Object.assign({},C,((P={})[L]=M?"0":"",P[S]=T?"0":"",P.transform=(k.devicePixelRatio||1)<=1?"translate("+_+"px, "+b+"px)":"translate3d("+_+"px, "+b+"px, 0)",P)):Object.assign({},C,((t={})[L]=M?b+"px":"",t[S]=T?_+"px":"",t.transform="",t))}const ie={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,s=i.gpuAcceleration,r=void 0===s||s,n=i.adaptive,a=void 0===n||n,o=i.roundOffsets,l=void 0===o||o,d={placement:I(t.placement),variation:Z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,te(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,te(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var se={passive:!0};const re={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,s=e.options,r=s.scroll,n=void 0===r||r,a=s.resize,o=void 0===a||a,l=D(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return n&&d.forEach((function(e){e.addEventListener("scroll",i.update,se)})),o&&l.addEventListener("resize",i.update,se),function(){n&&d.forEach((function(e){e.removeEventListener("scroll",i.update,se)})),o&&l.removeEventListener("resize",i.update,se)}},data:{}};var ne={left:"right",right:"left",bottom:"top",top:"bottom"};function ae(e){return e.replace(/left|right|bottom|top/g,(function(e){return ne[e]}))}var oe={start:"end",end:"start"};function le(e){return e.replace(/start|end/g,(function(e){return oe[e]}))}function de(e){var t=D(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function he(e){return N(V(e)).left+de(e).scrollLeft}function ce(e){var t=j(e),i=t.overflow,s=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+s)}function ue(e){return["html","body","#document"].indexOf(E(e))>=0?e.ownerDocument.body:A(e)&&ce(e)?e:ue(G(e))}function fe(e,t){var i;void 0===t&&(t=[]);var s=ue(e),r=s===(null==(i=e.ownerDocument)?void 0:i.body),n=D(s),a=r?[n].concat(n.visualViewport||[],ce(s)?s:[]):s,o=t.concat(a);return r?o:o.concat(fe(G(a)))}function me(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pe(e,t,i){return t===u?me(function(e,t){var i=D(e),s=V(e),r=i.visualViewport,n=s.clientWidth,a=s.clientHeight,o=0,l=0;if(r){n=r.width,a=r.height;var d=$();(d||!d&&"fixed"===t)&&(o=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:o+he(e),y:l}}(e,i)):x(t)?function(e,t){var i=N(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):me(function(e){var t,i=V(e),s=de(e),r=null==(t=e.ownerDocument)?void 0:t.body,n=R(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=R(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-s.scrollLeft+he(e),l=-s.scrollTop;return"rtl"===j(r||i).direction&&(o+=R(i.clientWidth,r?r.clientWidth:0)-n),{width:n,height:a,x:o,y:l}}(V(e)))}function ge(e,t,i,s){var r="clippingParents"===t?function(e){var t=fe(G(e)),i=["absolute","fixed"].indexOf(j(e).position)>=0&&A(e)?W(e):e;return x(i)?t.filter((function(e){return x(e)&&H(e,i)&&"body"!==E(e)})):[]}(e):[].concat(t),n=[].concat(r,[i]),a=n[0],o=n.reduce((function(t,i){var r=pe(e,i,s);return t.top=R(r.top,t.top),t.right=O(r.right,t.right),t.bottom=O(r.bottom,t.bottom),t.left=R(r.left,t.left),t}),pe(e,a,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function ye(e){var t,i=e.reference,o=e.element,l=e.placement,c=l?I(l):null,u=l?Z(l):null,f=i.x+i.width/2-o.width/2,m=i.y+i.height/2-o.height/2;switch(c){case s:t={x:f,y:i.y-o.height};break;case r:t={x:f,y:i.y+i.height};break;case n:t={x:i.x+i.width,y:m};break;case a:t={x:i.x-o.width,y:m};break;default:t={x:i.x,y:i.y}}var p=c?q(c):null;if(null!=p){var g="y"===p?"height":"width";switch(u){case d:t[p]=t[p]-(i[g]/2-o[g]/2);break;case h:t[p]=t[p]+(i[g]/2-o[g]/2)}}return t}function _e(e,t){void 0===t&&(t={});var i=t,a=i.placement,o=void 0===a?e.placement:a,d=i.strategy,h=void 0===d?e.strategy:d,p=i.boundary,g=void 0===p?c:p,y=i.rootBoundary,_=void 0===y?u:y,v=i.elementContext,b=void 0===v?f:v,w=i.altBoundary,T=void 0!==w&&w,M=i.padding,S=void 0===M?0:M,L=J("number"!=typeof S?S:X(S,l)),k=b===f?m:f,E=e.rects.popper,D=e.elements[T?k:b],A=ge(x(D)?D:D.contextElement||V(e.elements.popper),g,_,h),P=N(e.elements.reference),C=ye({reference:P,element:E,strategy:"absolute",placement:o}),I=me(Object.assign({},E,C)),R=b===f?I:P,O={top:A.top-R.top+L.top,bottom:R.bottom-A.bottom+L.bottom,left:A.left-R.left+L.left,right:R.right-A.right+L.right},Y=e.modifiersData.offset;if(b===f&&Y){var F=Y[o];Object.keys(O).forEach((function(e){var t=[n,r].indexOf(e)>=0?1:-1,i=[s,r].indexOf(e)>=0?"y":"x";O[e]+=F[i]*t}))}return O}const ve={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,h=e.name;if(!t.modifiersData[h]._skip){for(var c=i.mainAxis,u=void 0===c||c,f=i.altAxis,m=void 0===f||f,y=i.fallbackPlacements,_=i.padding,v=i.boundary,b=i.rootBoundary,w=i.altBoundary,T=i.flipVariations,M=void 0===T||T,S=i.allowedAutoPlacements,L=t.o
vendor: 5,399 bytes, line 2
2ptions.placement,k=I(L),E=y||(k===L||!M?[ae(L)]:function(e){if(I(e)===o)return[];var t=ae(e);return[le(e),t,le(t)]}(L)),D=[L].concat(E).reduce((function(e,i){return e.concat(I(i)===o?function(e,t){void 0===t&&(t={});var i=t,s=i.placement,r=i.boundary,n=i.rootBoundary,a=i.padding,o=i.flipVariations,d=i.allowedAutoPlacements,h=void 0===d?g:d,c=Z(s),u=c?o?p:p.filter((function(e){return Z(e)===c})):l,f=u.filter((function(e){return h.indexOf(e)>=0}));0===f.length&&(f=u);var m=f.reduce((function(t,i){return t[i]=_e(e,{placement:i,boundary:r,rootBoundary:n,padding:a})[I(i)],t}),{});return Object.keys(m).sort((function(e,t){return m[e]-m[t]}))}(t,{placement:i,boundary:v,rootBoundary:b,padding:_,flipVariations:M,allowedAutoPlacements:S}):i)}),[]),x=t.rects.reference,A=t.rects.popper,P=new Map,C=!0,R=D[0],O=0;O<D.length;O++){var Y=D[O],F=I(Y),$=Z(Y)===d,N=[s,r].indexOf(F)>=0,B=N?"width":"height",H=_e(t,{placement:Y,boundary:v,rootBoundary:b,altBoundary:w,padding:_}),j=N?$?n:a:$?r:s;x[B]>A[B]&&(j=ae(j));var U=ae(j),V=[];if(u&&V.push(H[F]<=0),m&&V.push(H[j]<=0,H[U]<=0),V.every((function(e){return e}))){R=Y,C=!1;break}P.set(Y,V)}if(C)for(var G=function(e){var t=D.find((function(t){var i=P.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return R=t,"break"},z=M?3:1;z>0;z--){if("break"===G(z))break}t.placement!==R&&(t.modifiersData[h]._skip=!0,t.placement=R,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function be(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function we(e){return[s,n,r,a].some((function(t){return e[t]>=0}))}const Te={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,s=t.rects.reference,r=t.rects.popper,n=t.modifiersData.preventOverflow,a=_e(t,{elementContext:"reference"}),o=_e(t,{altBoundary:!0}),l=be(a,s),d=be(o,r,n),h=we(l),c=we(d);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:h,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":c})}};const Me={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,r=e.name,o=i.offset,l=void 0===o?[0,0]:o,d=g.reduce((function(e,i){return e[i]=function(e,t,i){var r=I(e),o=[a,s].indexOf(r)>=0?-1:1,l="function"==typeof i?i(Object.assign({},t,{placement:e})):i,d=l[0],h=l[1];return d=d||0,h=(h||0)*o,[a,n].indexOf(r)>=0?{x:h,y:d}:{x:d,y:h}}(i,t.rects,l),e}),{}),h=d[t.placement],c=h.x,u=h.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=d}};const Se={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=ye({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};const Le={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,o=e.name,l=i.mainAxis,h=void 0===l||l,c=i.altAxis,u=void 0!==c&&c,f=i.boundary,m=i.rootBoundary,p=i.altBoundary,g=i.padding,y=i.tether,_=void 0===y||y,v=i.tetherOffset,b=void 0===v?0:v,w=_e(t,{boundary:f,rootBoundary:m,padding:g,altBoundary:p}),T=I(t.placement),M=Z(t.placement),S=!M,L=q(T),k="x"===L?"y":"x",E=t.modifiersData.popperOffsets,D=t.rects.reference,x=t.rects.popper,A="function"==typeof b?b(Object.assign({},t.rects,{placement:t.placement})):b,P="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(E){if(h){var F,$="y"===L?s:a,N="y"===L?r:n,H="y"===L?"height":"width",j=E[L],U=j+w[$],V=j-w[N],G=_?-x[H]/2:0,z=M===d?D[H]:x[H],J=M===d?-x[H]:-D[H],X=t.elements.arrow,Q=_&&X?B(X):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=ee[$],ie=ee[N],se=K(0,D[H],Q[H]),re=S?D[H]/2-G-se-te-P.mainAxis:z-se-te-P.mainAxis,ne=S?-D[H]/2+G+se+ie+P.mainAxis:J+se+ie+P.mainAxis,ae=t.elements.arrow&&W(t.elements.arrow),oe=ae?"y"===L?ae.clientTop||0:ae.clientLeft||0:0,le=null!=(F=null==C?void 0:C[L])?F:0,de=j+ne-le,he=K(_?O(U,j+re-le-oe):U,j,_?R(V,de):V);E[L]=he,Y[L]=he-j}if(u){var ce,ue="x"===L?s:a,fe="x"===L?r:n,me=E[k],pe="y"===k?"height":"width",ge=me+w[ue],ye=me-w[fe],ve=-1!==[s,a].indexOf(T),be=null!=(ce=null==C?void 0:C[k])?ce:0,we=ve?ge:me-D[pe]-x[pe]-be+P.altAxis,Te=ve?me+D[pe]+x[pe]-be-P.altAxis:ye,Me=_&&ve?function(e,t,i){var s=K(e,t,i);return s>i?i:s}(we,me,Te):K(_?we:ge,me,_?Te:ye);E[k]=Me,Y[k]=Me-me}t.modifiersData[o]=Y}},requiresIfExists:["offset"]};function ke(e,t,i){void 0===i&&(i=!1);var s,r,n=A(t),a=A(t)&&function(e){var t=e.getBoundingClientRect(),i=Y(t.width)/e.offsetWidth||1,s=Y(t.height)/e.offsetHeight||1;return 1!==i||1!==s}(t),o=V(t),l=N(e,a,i),d={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(n||!n&&!i)&&(("body"!==E(t)||ce(o))&&(d=(s=t)!==D(s)&&A(s)?{scrollLeft:(r=s).scrollLeft,scrollTop:r.scrollTop}:de(s)),A(t)?((h=N(t,!0)).x+=t.clientLeft,h.y+=t.clientTop):o&&(h.x=he(o))),{x:l.left+d.scrollLeft-h.x,y:l.top+d.scrollTop-h.y,width:l.width,height:l.height}}function Ee(e){var t=new Map,i=new Set,s=[];function r(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEac
vendor: 5,980 bytes, line 2
2h((function(e){if(!i.has(e)){var s=t.get(e);s&&r(s)}})),s.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||r(e)})),s}var De={placement:"bottom",modifiers:[],strategy:"absolute"};function xe(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Ae(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,s=void 0===i?[]:i,r=t.defaultOptions,n=void 0===r?De:r;return function(e,t,i){void 0===i&&(i=n);var r,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},De,n),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],d=!1,h={state:o,setOptions:function(i){var r="function"==typeof i?i(o.options):i;c(),o.options=Object.assign({},n,o.options,r),o.scrollParents={reference:x(e)?fe(e):e.contextElement?fe(e.contextElement):[],popper:fe(t)};var a,d,u=function(e){var t=Ee(e);return k.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}((a=[].concat(s,o.options.modifiers),d=a.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{}),Object.keys(d).map((function(e){return d[e]}))));return o.orderedModifiers=u.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,s=void 0===i?{}:i,r=e.effect;if("function"==typeof r){var n=r({state:o,name:t,instance:h,options:s}),a=function(){};l.push(n||a)}})),h.update()},forceUpdate:function(){if(!d){var e=o.elements,t=e.reference,i=e.popper;if(xe(t,i)){o.rects={reference:ke(t,W(i),"fixed"===o.options.strategy),popper:B(i)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var s=0;s<o.orderedModifiers.length;s++)if(!0!==o.reset){var r=o.orderedModifiers[s],n=r.fn,a=r.options,l=void 0===a?{}:a,c=r.name;"function"==typeof n&&(o=n({state:o,options:l,name:c,instance:h})||o)}else o.reset=!1,s=-1}}},update:(r=function(){return new Promise((function(e){h.forceUpdate(),e(o)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(r())}))}))),a}),destroy:function(){c(),d=!0}};if(!xe(e,t))return h;function c(){l.forEach((function(e){return e()})),l=[]}return h.setOptions(i).then((function(e){!d&&i.onFirstUpdate&&i.onFirstUpdate(e)})),h}}var Pe=Ae(),Ce=Ae({defaultModifiers:[re,Se,ie,C,Me,ve,Le,Q,Te]}),Ie=Ae({defaultModifiers:[re,Se,ie,C]})},1221:function(e,t,i){!function(e){"use strict";var t=["جÙÙØ±Ù","ÙÙØ¨Ø±ÙرÙ","Ù
ارÚ","اپرÙÙ","Ù
ئÙ","جÙÙ","جÙÙØ§Ø¡Ù","آگسٽ","سÙپٽÙ
بر","Ø¢ÚªÙ½ÙØ¨Ø±","ÙÙÙ
بر","ÚØ³Ù
بر"],i=["Ø¢ÚØ±","سÙÙ
ر","اڱارÙ","اربع","Ø®Ù
ÙØ³","جÙ
ع","ÚÙÚØ±"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:i,weekdaysShort:i,weekdaysMin:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ddddØ D MMMM YYYY HH:mm"},meridiemParse:/صبØ|شاÙ
/,isPM:function(e){return"شاÙ
"===e},meridiem:function(e,t,i){return e<12?"صبØ":"شاÙ
"},calendar:{sameDay:"[اÚ] LT",nextDay:"[Ø³ÚØ§Ú»Ù] LT",nextWeek:"dddd [اڳÙÙ ÙÙØªÙ تÙ] LT",lastDay:"[ڪاÙÙÙ] LT",lastWeek:"[گزرÙÙ ÙÙØªÙ] dddd [تÙ] LT",sameElse:"L"},relativeTime:{future:"%s Ù¾ÙØ¡",past:"%s اڳ",s:"ÚÙØ¯ سÙÚªÙÚ",ss:"%d سÙÚªÙÚ",m:"ÙÚª Ù
ÙÙ½",mm:"%d Ù
ÙÙ½",h:"ÙÚª ÚªÙØ§Úª",hh:"%d ÚªÙØ§Úª",d:"ÙÚª ÚÙÙÙÙ",dd:"%d ÚÙÙÙÙ",M:"ÙÚª Ù
ÙÙÙÙ",MM:"%d Ù
ÙÙÙØ§",y:"ÙÚª ساÙ",yy:"%d ساÙ"},preparse:function(e){return e.replace(/Ø/g,",")},postformat:function(e){return e.replace(/,/g,"Ø")},week:{dow:1,doy:4}})}(i(5093))},1290:function(e,t,i){!function(e){"use strict";var t={1:"à§§",2:"২",3:"à§©",4:"৪",5:"à§«",6:"৬",7:"à§",8:"à§®",9:"৯",0:"০"},i={"à§§":"1","২":"2","à§©":"3","৪":"4","à§«":"5","৬":"6","à§":"7","à§®":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"à¦à¦¾à¦¨à§à§à¦¾à¦°à¦¿_ফà§à¦¬à§à¦°à§à§à¦¾à¦°à¦¿_মারà§à¦_à¦à¦ªà§à¦°à¦¿à¦²_মà§_à¦à§à¦¨_à¦à§à¦²à¦¾à¦_à¦à¦à¦¸à§à¦_সà§à¦ªà§à¦à§à¦®à§à¦¬à¦°_à¦
à¦à§à¦à§à¦¬à¦°_নà¦à§à¦®à§à¦¬à¦°_ডিসà§à¦®à§à¦¬à¦°".split("_"),monthsShort:"à¦à¦¾à¦¨à§_ফà§à¦¬à§à¦°à§_মারà§à¦_à¦à¦ªà§à¦°à¦¿à¦²_মà§_à¦à§à¦¨_à¦à§à¦²à¦¾à¦_à¦à¦à¦¸à§à¦_সà§à¦ªà§à¦_à¦
à¦à§à¦à§_নà¦à§_ডিসà§".split("_"),weekdays:"রবিবার_সà§à¦®à¦¬à¦¾à¦°_মà¦à§à¦à¦²à¦¬à¦¾à¦°_বà§à¦§à¦¬à¦¾à¦°_বà§à¦¹à¦¸à§à¦ªà¦¤à¦¿à¦¬à¦¾à¦°_শà§à¦à§à¦°à¦¬à¦¾à¦°_শনিবার".split("_"),weekdaysShort:"রবি_সà§à¦®_মà¦à§à¦à¦²_বà§à¦§_বà§à¦¹à¦¸à§à¦ªà¦¤à¦¿_শà§à¦à§à¦°_শনি".split("_"),weekdaysMin:"রবি_সà§à¦®_মà¦à§à¦à¦²_বà§à¦§_বà§à¦¹_শà§à¦à§à¦°_শনি".split("_"),longDateFormat:{LT:"A h:mm সমà§",LTS:"A h:mm:ss সমà§",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সমà§",LLLL:"dddd, D MMMM YYYY, A h:mm সমà§"},calendar:{sameDay:"[à¦à¦] LT",nextDay:"[à¦à¦à¦¾à¦®à§à¦à¦¾à¦²] LT",nextWeek:"dddd, LT",lastDay:"[à¦à¦¤à¦à¦¾à¦²] LT",lastWeek:"[à¦à¦¤] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরà§",past:"%s à¦à¦à§",s:"à¦à§à§à¦ সà§à¦à§à¦¨à§à¦¡",ss:"%d সà§à¦à§à¦¨à§à¦¡",m:"à¦à¦ মিনিà¦",mm:"%d মিনিà¦",h:"à¦à¦ à¦à¦¨à§à¦à¦¾",hh:"%d à¦à¦¨à§à¦à¦¾",d:"à¦à¦ দিন",dd:"%d দিন",M:"à¦à¦ মাস",MM:"%d মাস",y:"à¦à¦ বà¦à¦°",yy:"%d বà¦à¦°"},preparse:function(e){return e.replace(/[১২৩৪৫৬à§à§®à§¯à§¦]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সà¦à¦¾à¦²|দà§à¦ªà§à¦°|বিà¦à¦¾à¦²|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>
vendor: 22,666 bytes, line 2
2=4||"দà§à¦ªà§à¦°"===t&&e<5||"বিà¦à¦¾à¦²"===t?e+12:e},meridiem:function(e,t,i){return e<4?"রাত":e<10?"সà¦à¦¾à¦²":e<17?"দà§à¦ªà§à¦°":e<20?"বিà¦à¦¾à¦²":"রাত"},week:{dow:0,doy:6}})}(i(5093))},1470:function(e,t,i){!function(e){"use strict";function t(e,t,i){return e+" "+r({mm:"munutenn",MM:"miz",dd:"devezh"}[i],e)}function i(e){switch(s(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function s(e){return e>9?s(e%10):e}function r(e,t){return 2===t?n(e):e}function n(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}var a=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],o=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,l=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,d=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,h=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],c=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],u=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:u,fullWeekdaysParse:h,shortWeekdaysParse:c,minWeekdaysParse:u,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:l,monthsShortStrictRegex:d,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:i},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,i){return e<12?"a.m.":"g.m."}})}(i(5093))},1488:function(e,t,i){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["Ø£ÙÙ Ù
٠ثاÙÙØ©","ثاÙÙØ© ÙØ§ØØ¯Ø©",["ثاÙÙØªØ§Ù","ثاÙÙØªÙÙ"],"%d Ø«ÙØ§Ù","%d ثاÙÙØ©","%d ثاÙÙØ©"],m:["Ø£ÙÙ Ù
٠دÙÙÙØ©","دÙÙÙØ© ÙØ§ØØ¯Ø©",["دÙÙÙØªØ§Ù","دÙÙÙØªÙÙ"],"%d Ø¯ÙØ§Ø¦Ù","%d دÙÙÙØ©","%d دÙÙÙØ©"],h:["Ø£ÙÙ Ù
٠ساعة","ساعة ÙØ§ØØ¯Ø©",["ساعتاÙ","ساعتÙÙ"],"%d ساعات","%d ساعة","%d ساعة"],d:["Ø£ÙÙ Ù
Ù ÙÙÙ
","ÙÙÙ
ÙØ§ØØ¯",["ÙÙÙ
اÙ","ÙÙÙ
ÙÙ"],"%d Ø£ÙØ§Ù
","%d ÙÙÙ
ÙØ§","%d ÙÙÙ
"],M:["Ø£ÙÙ Ù
Ù Ø´ÙØ±","Ø´ÙØ± ÙØ§ØØ¯",["Ø´ÙØ±Ø§Ù","Ø´ÙØ±ÙÙ"],"%d Ø£Ø´ÙØ±","%d Ø´ÙØ±Ø§","%d Ø´ÙØ±"],y:["Ø£ÙÙ Ù
٠عاÙ
","عاÙ
ÙØ§ØØ¯",["عاÙ
اÙ","عاÙ
ÙÙ"],"%d Ø£Ø¹ÙØ§Ù
","%d عاÙ
ÙØ§","%d عاÙ
"]},s=function(e){return function(s,r,n,a){var o=t(s),l=i[e][t(s)];return 2===o&&(l=l[r?0:1]),l.replace(/%d/i,s)}},r=["جاÙÙÙ","ÙÙÙØ±Ù","Ù
ارس","Ø£ÙØ±ÙÙ","Ù
اÙ","Ø¬ÙØ§Ù","جÙÙÙÙØ©","Ø£ÙØª","سبتÙ
بر","Ø£ÙØªÙبر","ÙÙÙÙ
بر","Ø¯ÙØ³Ù
بر"];e.defineLocale("ar-dz",{months:r,monthsShort:r,weekdays:"Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù
ÙØ³_Ø§ÙØ¬Ù
عة_Ø§ÙØ³Ø¨Øª".split("_"),weekdaysShort:"Ø£ØØ¯_إثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_أربعاء_Ø®Ù
ÙØ³_جÙ
عة_سبت".split("_"),weekdaysMin:"Ø_Ù_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/âM/âYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|Ù
/,isPM:function(e){return"Ù
"===e},meridiem:function(e,t,i){return e<12?"ص":"Ù
"},calendar:{sameDay:"[اÙÙÙÙ
Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextDay:"[ØºØ¯ÙØ§ Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextWeek:"dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastDay:"[Ø£Ù
س Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastWeek:"dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"Ù
ÙØ° %s",s:s("s"),ss:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},postformat:function(e){return e.replace(/,/g,"Ø")},week:{dow:0,doy:4}})}(i(5093))},1509:function(e,t,i){!function(e){"use strict";var t={1:"Ù¡",2:"Ù¢",3:"Ù£",4:"Ù¤",5:"Ù¥",6:"Ù¦",7:"Ù§",8:"Ù¨",9:"Ù©",0:"Ù "},i={"Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù ":"0"},s=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["Ø£ÙÙ Ù
٠ثاÙÙØ©","ثاÙÙØ© ÙØ§ØØ¯Ø©",["ثاÙÙØªØ§Ù","ثاÙÙØªÙÙ"],"%d Ø«ÙØ§Ù","%d ثاÙÙØ©","%d ثاÙÙØ©"],m:["Ø£ÙÙ Ù
٠دÙÙÙØ©","دÙÙÙØ© ÙØ§ØØ¯Ø©",["دÙÙÙØªØ§Ù","دÙÙÙØªÙÙ"],"%d Ø¯ÙØ§Ø¦Ù","%d دÙÙÙØ©","%d دÙÙÙØ©"],h:["Ø£ÙÙ Ù
٠ساعة","ساعة ÙØ§ØØ¯Ø©",["ساعتاÙ","ساعتÙÙ"],"%d ساعات","%d ساعة","%d ساعة"],d:["Ø£ÙÙ Ù
Ù ÙÙÙ
","ÙÙÙ
ÙØ§ØØ¯",["ÙÙÙ
اÙ","ÙÙÙ
ÙÙ"],"%d Ø£ÙØ§Ù
","%d ÙÙÙ
ÙØ§","%d ÙÙÙ
"],M:["Ø£ÙÙ Ù
Ù Ø´ÙØ±","Ø´ÙØ± ÙØ§ØØ¯",["Ø´ÙØ±Ø§Ù","Ø´ÙØ±ÙÙ"],"%d Ø£Ø´ÙØ±","%d Ø´ÙØ±Ø§","%d Ø´ÙØ±"],y:["Ø£ÙÙ Ù
٠عاÙ
","عاÙ
ÙØ§ØØ¯",["عاÙ
اÙ","عاÙ
ÙÙ"],"%d Ø£Ø¹ÙØ§Ù
","%d عاÙ
ÙØ§","%d عاÙ
"]},n=function(e){return function(t,i,n,a){var o=s(t),l=r[e][s(t)];return 2===o&&(l=l[i?0:1]),l.replace(/%d/i,t)}},a=["ÙÙØ§Ùر","ÙØ¨Ø±Ø§Ùر","Ù
ارس","أبرÙÙ","Ù
اÙÙ","ÙÙÙÙÙ","ÙÙÙÙÙ","أغسطس","سبتÙ
بر","Ø£ÙØªÙبر","ÙÙÙÙ
بر","Ø¯ÙØ³Ù
بر"];e.defineLocale("ar",{months:a,monthsShort:a,weekdays:"Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù
ÙØ³_Ø§ÙØ¬Ù
عة_Ø§ÙØ³Ø¨Øª".split("_"),weekdaysShort:"Ø£ØØ¯_إثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_أربعاء_Ø®Ù
ÙØ³_جÙ
عة_سبت".split("_"),weekdaysMin:"Ø_Ù_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/âM/âYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|Ù
/,isPM:function(e){return"Ù
"===e},meridiem:function(e,t,i){return e<12?"ص":"Ù
"},calendar:{sameDay:"[اÙÙÙÙ
Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextDay:"[ØºØ¯ÙØ§ Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextWeek:"dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastDay:"[Ø£Ù
س Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastWeek:"dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"Ù
ÙØ° %s",s:n("s"),ss:n("s"),m:n("m"),mm:n("m"),h:n("h"),hh:n("h"),d:n("d"),dd:n("d"),M:n("M"),MM:n("M"),y:n("y"),yy:n("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return i[e]})).replace(/Ø/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"Ø")},week:{dow:6,doy:12}})}(i(5093))},1541:function(e,t,i){!function(e){"use strict";e.defineLocale("zh-mo",{months:"䏿_äºæ_䏿_åæ_äºæ_å
æ_䏿_å
«æ_乿_åæ_å䏿_åäºæ".split("_"),monthsShort:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),weekdays:"æææ¥_ææä¸_ææäº_ææä¸_ææå_ææäº_ææå
".split("_"),weekdaysShort:"鱿¥_é±ä¸_é±äº_é±ä¸_é±å_é±äº_é±å
".split("_"),weekdaysMin:"æ¥_ä¸_äº_ä¸_å_äº_å
".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYYå¹´MæDæ¥",LLL:"YYYYå¹´MæDæ¥ HH:mm",LLLL:"YYYYå¹´MæDæ¥dddd HH:mm",l:"D/M/YYYY",ll:"YYYYå¹´MæDæ¥",lll:"YYYYå¹´MæDæ¥ HH:mm",llll:"YYYYå¹´MæDæ¥dddd HH:mm"},meridiemParse:/忍|æ©ä¸|ä¸å|ä¸å|ä¸å|æä¸/,meridiemHour:function(e,t){return 12===e&&(e=0),"忍"===t||"æ©ä¸"===t||"ä¸å"===t?e:"ä¸å"===t?e>=11?e:e+12:"ä¸å"===t||"æä¸"===t?e+12:void 0},meridiem:function(e,t,i){var s=100*e+t;return s<600?"忍":s<900?"æ©ä¸":s<1130?"ä¸å":s<1230?"ä¸å":s<1800?"ä¸å":"æä¸"},calendar:{sameDay:"[ä»å¤©] LT",nextDay:"[æå¤©] LT",nextWeek:"[ä¸]dddd LT",lastDay:"[æ¨å¤©] LT",lastWeek:"[ä¸]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(æ¥|æ|é±)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"æ¥";case"M":return e+"æ";case"w":case"W":return e+"é±";default:return e}},relativeTime:{future:"%så
§",past:"%så",s:"å¹¾ç§",ss:"%d ç§",m:"1 åé",mm:"%d åé",h:"1 å°æ",hh:"%d å°æ",d:"1 天",dd:"%d 天",M:"1 åæ",MM:"%d åæ",y:"1 å¹´",yy:"%d å¹´"}})}(i(5093))},1545:function(e,t,i){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},i={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"à½à¾³à¼à½à¼à½à½à¼à½à½¼_à½à¾³à¼à½à¼à½à½à½²à½¦à¼à½_à½à¾³à¼à½à¼à½à½¦à½´à½à¼à½_à½à¾³à¼à½à¼à½à½à½²à¼à½_à½à¾³à¼à½à¼à½£à¾à¼à½_à½à¾³à¼à½à¼à½à¾²à½´à½à¼à½_à½à¾³à¼à½à¼à½à½à½´à½à¼à½_à½à¾³à¼à½à¼à½à½¢à¾à¾±à½à¼à½_à½à¾³à¼à½à¼à½à½à½´à¼à½_à½à¾³à¼à½à¼à½à½
ུà¼à½_à½à¾³à¼à½à¼à½à½
ུà¼à½à½
ིà½à¼à½_à½à¾³à¼à½à¼à½à½
ུà¼à½à½à½²à½¦à¼à½".split("_"),monthsShort:"à½à¾³à¼1_à½à¾³à¼2_à½à¾³à¼3_à½à¾³à¼4_à½à¾³à¼5_à½à¾³à¼6_à½à¾³à¼7_à½à¾³à¼8_à½à¾³à¼9_à½à¾³à¼10_à½à¾³à¼11_à½à¾³à¼12".split("_"),monthsShortRegex:/^(à½à¾³à¼\d{1,2})/,monthsParseExact:!0,weekdays:"à½à½à½ à¼à½à½²à¼à½à¼_à½à½à½ à¼à½à¾³à¼à½à¼_à½à½à½ à¼à½à½²à½à¼à½à½à½¢à¼_à½à½à½ à¼à½£à¾·à½à¼à½à¼_à½à½à½ à¼à½à½´à½¢à¼à½à½´_à½à½à½ à¼à½à¼à½¦à½à½¦à¼_à½à½à½ à¼à½¦à¾¤à½ºà½à¼à½à¼".split("_"),weekdaysShort:"à½à½²à¼à½à¼_à½à¾³à¼à½à¼_à½à½²à½à¼à½à½à½¢à¼_ལྷà½à¼à½à¼_à½à½´à½¢à¼à½à½´_à½à¼à½¦à½à½¦à¼_སྤེà½à¼à½à¼".split("_"),weekdaysMin:"à½à½²_à½à¾³_à½à½²à½_ལྷà½_à½à½´à½¢_སà½à½¦_སྤེà½".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[à½à½²à¼à½¢à½²à½] LT",nextDay:"[སà½à¼à½à½²à½] LT",nextWeek:"[à½à½à½´à½à¼à½à¾²à½à¼à½¢à¾à½ºà½¦à¼à½], LT",lastDay:"[à½à¼à½¦à½] LT",lastWeek:"[à½à½à½´à½à¼à½à¾²à½à¼à½à½à½ à¼à½] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལà¼",past:"%s སà¾à½à¼à½£",s:"ལà½à¼à½¦à½",ss:"%d སà¾à½¢à¼à½à¼",m:"སà¾à½¢à¼à½à¼à½à½
ིà½",mm:"%d སà¾à½¢à¼à½",h:"à½à½´à¼à½à½¼à½à¼à½à½
ིà½",hh:"%d à½à½´à¼à½à½¼à½",d:"à½à½²à½à¼à½à½
ིà½",dd:"%d à½à½²à½à¼",M:"à½à¾³à¼à½à¼à½à½
ིà½",MM:"%d à½à¾³à¼à½",y:"ལོà¼à½à½
ིà½",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/à½à½à½à¼à½à½¼|à½à½¼à½à½¦à¼à½à½¦|à½à½²à½à¼à½à½´à½|à½à½à½¼à½à¼à½à½|à½à½à½à¼à½à½¼/,meridiemHour:function(e,t){return 12===e&&(e=0),"à½à½à½à¼à½à½¼"===t&&e>=4||"à½à½²à½à¼à½à½´à½"===t&&e<5||"à½à½à½¼à½à¼à½à½"===t?e+12:e},meridiem:function(e,t,i){return e<4?"à½à½à½à¼à½à½¼":e<10?"à½à½¼à½à½¦à¼à½à½¦":e<17?"à½à½²à½à¼à½à½´à½":e<20?"à½à½à½¼à½à¼à½à½":"à½à½à½à¼à½à½¼"},week:{dow:0,doy:6}})}(i(5093))},1632:function(e,t,i){!function(e){"use strict";e.defineLocale("zh-hk",{months:"䏿_äºæ_䏿_åæ_äºæ_å
æ_䏿_å
«æ_乿_åæ_å䏿_åäºæ".split("_"),monthsShort:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),weekdays:"æææ¥_ææä¸_ææäº_ææä¸_ææå_ææäº_ææå
".split("_"),weekdaysShort:"鱿¥_é±ä¸_é±äº_é±ä¸_é±å_é±äº_é±å
".split("_"),weekdaysMin:"æ¥_ä¸_äº_ä¸_å_äº_å
".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYYå¹´MæDæ¥",LLL:"YYYYå¹´MæDæ¥ HH:mm",LLLL:"YYYYå¹´MæDæ¥dddd HH:mm",l:"YYYY/M/D",ll:"YYYYå¹´MæDæ¥",lll:"YYYYå¹´MæDæ¥ HH:mm",llll:"YYYYå¹´MæDæ¥dddd HH:mm"},meridiemParse:/忍|æ©ä¸|ä¸å|ä¸å|ä¸å|æä¸/,meridiemHour:function(e,t){return 12===e&&(e=0),"忍"===t||"æ©ä¸"===t||"ä¸å"===t?e:"ä¸å"===t?e>=11?e:e+12:"ä¸å"===t||"æä¸"===t?e+12:void 0},meridiem:function(e,t,i){var s=100*e+t;return s<600?"忍":s<900?"æ©ä¸":s<1200?"ä¸å":1200===s?"ä¸å":s<1800?"ä¸å":"æä¸"},calendar:{sameDay:"[ä»å¤©]LT",nextDay:"[æå¤©]LT",nextWeek:"[ä¸]ddddLT",lastDay:"[æ¨å¤©]LT",lastWeek:"[ä¸]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(æ¥|æ|é±)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"æ¥";case"M":return e+"æ";case"w":case"W":return e+"é±";default:return e}},relativeTime:{future:"%så¾",past:"%så",s:"å¹¾ç§",ss:"%d ç§",m:"1 åé",mm:"%d åé",h:"1 å°æ",hh:"%d å°æ",d:"1 天",dd:"%d 天",M:"1 åæ",MM:"%d åæ",y:"1 å¹´",yy:"%d å¹´"}})}(i(5093))},1713:function(e,t,i){!function(e){"use strict";e.defineLocale("he",{months:"×× ××ר_פ×ר××ר_×רץ_×פר××_×××_××× ×_××××_××××ס×_ספ×××ר_×××§×××ר_× ××××ר_×צ××ר".split("_"),monthsShort:"×× ×׳_פ×ר׳_×רץ_×פר׳_×××_××× ×_××××_×××׳_ספ×׳_××ק׳_× ××׳_×צ×׳".split("_"),weekdays:"ר×ש××_×©× ×_ש××ש×_ר×××¢×_×××ש×_ש×ש×_ש×ת".split("_"),weekdaysShort:"×׳_×׳_×׳_×׳_×׳_×׳_ש׳".split("_"),weekdaysMin:"×_×_×_×_×_×_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [×]MMMM YYYY",LLL:"D [×]MMMM YYYY HH:mm",LLLL:"dddd, D [×]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[×××× ×Ö¾]LT",nextDay:"[××ר ×Ö¾]LT",nextWeek:"dddd [×שע×] LT",lastDay:"[×ת××× ×Ö¾]LT",lastWeek:"[××××] dddd [×××ר×× ×שע×] LT",sameElse:"L"},relativeTime:{future:"××¢×× %s",past:"××¤× × %s",s:"×ספר ×©× ××ת",ss:"%d ×©× ××ת",m:"××§×",mm:"%d ××§×ת",h:"שע×",hh:function(e){return 2===e?"שעת×××":e+" שע×ת"},d:"×××",dd:function(e){return 2===e?"××××××":e+" ××××"},M:"×××ש",MM:function(e){return 2===e?"×××ש×××":e+" ×××ש××"},y:"×©× ×",yy:function(e){return 2===e?"×©× ×ª×××":e%10==0&&10!==e?e+" ×©× ×":e+" ×©× ××"}},meridiemParse:/×××"צ|××¤× ×"צ|×××¨× ×צ×ר×××|××¤× × ×צ×ר×××|××¤× ×ת ××קר|×××קר|×ער×/i,isPM:function(e){return/^(×××"צ|×××¨× ×צ×ר×××|×ער×)$/.test(e)},meridiem:function(e,t,i){return e<5?"××¤× ×ת ××קר":e<10?"×××קר":e<12?i?'××¤× ×"צ':"××¤× × ×צ×ר×××":e<18?i?'×××"צ':"×××¨× ×צ×ר×××":"×ער×"}})}(i(5093))},1734:function(e,t,i){!function(e){"use strict";var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],i=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],s=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],r=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],n=["Do","Lu","Má","Cé","Dé","A","Sa"];e.defineLocale("ga",{months:t,monthsShort:i,monthsParseExact:!0,weekdays:s,weekdaysShort:r,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mÃ",MM:"%d mÃonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(i(5093))},1765:function(e,t,i){!function(e){"use strict";e.defineLocale("tzm",{months:"âµâµâµâ´°âµ¢âµ_â´±âµâ´°âµ¢âµ_âµâ´°âµâµ_âµâ´±âµâµâµ_âµâ´°âµ¢âµ¢âµ_âµ¢âµâµâµ¢âµ_âµ¢âµâµâµ¢âµâµ£_âµâµâµâµ_âµâµâµâ´°âµâ´±âµâµ_â´½âµâµâ´±âµ_âµâµâµ¡â´°âµâ´±âµâµ_â´·âµâµâµâ´±âµâµ".split("_"),monthsShort:"âµâµâµâ´°âµ¢âµ_â´±âµâ´°âµ¢âµ_âµâ´°âµâµ_âµâ´±âµâµâµ_âµâ´°âµ¢âµ¢âµ_âµ¢âµâµâµ¢âµ_âµ¢âµâµâµ¢âµâµ£_âµâµâµâµ_âµâµâµâ´°âµâ´±âµâµ_â´½âµâµâ´±âµ_âµâµâµ¡â´°âµâ´±âµâµ_â´·âµâµâµâ´±âµâµ".split("_"),weekdays:"â´°âµâ´°âµâ´°âµ_â´°âµ¢âµâ´°âµ_â´°âµâµâµâ´°âµ_â´°â´½âµâ´°âµ_ⴰⴽⵡⴰâµ_â´°âµâµâµâµ¡â´°âµ_â´°âµâµâ´¹âµ¢â´°âµ".split("_"),weekdaysShort:"â´°âµâ´°âµâ´°âµ_â´°âµ¢âµâ´°âµ_â´°âµâµâµâ´°âµ_â´°â´½âµâ´°âµ_ⴰⴽⵡⴰâµ_â´°âµâµâµâµ¡â´°âµ_â´°âµâµâ´¹âµ¢â´°âµ".split("_"),weekdaysMin:"â´°âµâ´°âµâ´°âµ_â´°âµ¢âµâ´°âµ_â´°âµâµâµâ´°âµ_â´°â´½âµâ´°âµ_ⴰⴽⵡⴰâµ_â´°âµâµâµâµ¡â´°âµ_â´°âµâµâ´¹âµ¢â´°âµ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[â´°âµâ´·âµ
â´´] LT",nextDay:"[â´°âµâ´½â´° â´´] LT",nextWeek:"dddd [â´´] LT",lastDay:"[â´°âµâ´°âµâµ â´´] LT",lastWeek:"dddd [â´´] LT",sameElse:"L"},relativeTime:{future:"â´·â´°â´·âµ
ⵠⵢⴰⵠ%s",past:"ⵢⴰⵠ%s",s:"âµâµâµâ´½",ss:"%d âµâµâµâ´½",m:"âµâµâµâµâ´º",mm:"%d âµâµâµâµâ´º",h:"âµâ´°âµâ´°",hh:"%d âµâ´°âµâµâ´°âµâµâµ",d:"â´°âµâµ",dd:"%d oâµâµâ´°âµ",M:"â´°âµ¢oâµâµ",MM:"%d âµâµ¢âµ¢âµâµâµ",y:"â´°âµâ´³â´°âµ",yy:"%d âµâµâ´³â´°âµâµ"},week:{dow:6,doy:12}})}(i(5093))},1794:function(e,t,i){!function(e){"use strict";e.defineLocale("ka",{months:"áááááá á_ááááá áááá_ááá á¢á_ááá ááá_áááá¡á_ááááá¡á_ááááá¡á_ááááá¡á¢á_á¡áá¥á¢ááááá á_áá¥á¢ááááá á_ááááááá á_áááááááá á".split("_"),monthsShort:"ááá_ááá_ááá _ááá _ááá_ááá_ááá_ááá_á¡áá¥_áá¥á¢_ááá_ááá".split("_"),weekdays:{standalone:"áááá á_áá á¨ááááá_á¡ááá¨ááááá_ááá®á¨ááááá_á®á£áá¨ááááá_ááá áá¡áááá_á¨ááááá".split("_"),format:"áááá áá¡_áá á¨ááááá¡_á¡ááá¨ááááá¡_ááá®á¨ááááá¡_á®á£áá¨ááááá¡_ááá áá¡áááá¡_á¨ááááá¡".split("_"),isFormat:/(á¬ááá|á¨ááááá)/},weekdaysShort:"ááá_áá á¨_á¡áá_ááá®_á®á£á_ááá _á¨áá".split("_"),weekdaysMin:"áá_áá _á¡á_áá_á®á£_áá_á¨á".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[áá¦áá¡] LT[-áá]",nextDay:"[á®ááá] LT[-áá]",lastDay:"[áá£á¨áá] LT[-áá]",nextWeek:"[á¨ááááá] dddd LT[-áá]",lastWeek:"[á¬ááá] dddd LT-áá",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(á¬áá|á¬á£á|á¡ááá|á¬áá|áá¦|áá)(á|á)/,(function(e,t,i){return"á"===i?t+"á¨á":t+i+"á¨á"}))},past:function(e){return/(á¬ááá|á¬á£áá|á¡áááá|áá¦á|ááá)/.test(e)?e.replace(/(á|á)$/,"áá¡ á¬áá"):/á¬ááá/.test(e)?e.replace(/á¬ááá$/,"á¬ááá¡ á¬áá"):e},s:"á áááááááá á¬ááá",ss:"%d á¬ááá",m:"á¬á£áá",mm:"%d á¬á£áá",h:"á¡áááá",hh:"%d á¡áááá",d:"áá¦á",dd:"%d áá¦á",M:"ááá",MM:"%d ááá",y:"á¬ááá",yy:"%d á¬ááá"},dayOfMonthOrdinalParse:/0|1-áá|áá-\d{1,2}|\d{1,2}-á/,ordinal:function(e){return 0===e?e:1===e?e+"-áá":e<20||e<=100&&e%20==0||e%100==0?"áá-"+e:e+"-á"},week:{dow:1,doy:7}})}(i(5093))},1827:function(e,t,i){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(i(5093))},1848:function(e,t,i){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tÄte_Hui-tanguru_PoutÅ«-te-rangi_Paenga-whÄwhÄ_Haratua_Pipiri_HÅngoingoi_Here-turi-kÅkÄ_Mahuru_Whiringa-Ä-nuku_Whiringa-Ä-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_HÅngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"RÄtapu_Mane_TÅ«rei_Wenerei_TÄite_Paraire_HÄtarei".split("_"),weekdaysShort:"Ta_Ma_TÅ«_We_TÄi_Pa_HÄ".split("_"),weekdaysMin:"Ta_Ma_TÅ«_We_TÄi_Pa_HÄ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hÄkona ruarua",ss:"%d hÄkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%
2d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(i(5093))},1877:function(e,t,i){e.exports=function(e,t,i){"use strict";const s="backdrop",r="fade",n="show",a=`mousedown.bs.${s}`,o={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},l={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class d extends t{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return o}static get DefaultType(){return l}static get NAME(){return s}show(e){if(!this._config.isVisible)return void i.execute(e);this._append();const t=this._getElement();this._config.isAnimated&&i.reflow(t),t.classList.add(n),this._emulateAnimation((()=>{i.execute(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(n),this._emulateAnimation((()=>{this.dispose(),i.execute(e)}))):i.execute(e)}dispose(){this._isAppended&&(e.off(this._element,a),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(r),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=i.getElement(e.rootElement),e}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),e.on(t,a,(()=>{i.execute(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){i.executeAfterTransition(e,this._getElement(),this._config.isAnimated)}}return d}(i(7956),i(2105),i(4035))},1885:function(e,t,i){!function(e){"use strict";e.defineLocale("te",{months:"à°à°¨à°µà°°à°¿_à°«à°¿à°¬à±à°°à°µà°°à°¿_మారà±à°à°¿_à°à°ªà±à°°à°¿à°²à±_à°®à±_à°à±à°¨à±_à°à±à°²à±_à°à°à°¸à±à°à±_à°¸à±à°ªà±à°à±à°à°¬à°°à±_à°
à°à±à°à±à°¬à°°à±_నవà°à°¬à°°à±_à°¡à°¿à°¸à±à°à°¬à°°à±".split("_"),monthsShort:"à°à°¨._à°«à°¿à°¬à±à°°._మారà±à°à°¿_à°à°ªà±à°°à°¿._à°®à±_à°à±à°¨à±_à°à±à°²à±_à°à°._à°¸à±à°ªà±._à°
à°à±à°à±._నవ._à°¡à°¿à°¸à±.".split("_"),monthsParseExact:!0,weekdays:"à°à°¦à°¿à°µà°¾à°°à°_à°¸à±à°®à°µà°¾à°°à°_à°®à°à°à°³à°µà°¾à°°à°_à°¬à±à°§à°µà°¾à°°à°_à°à±à°°à±à°µà°¾à°°à°_à°¶à±à°à±à°°à°µà°¾à°°à°_శనివారà°".split("_"),weekdaysShort:"à°à°¦à°¿_à°¸à±à°®_à°®à°à°à°³_à°¬à±à°§_à°à±à°°à±_à°¶à±à°à±à°°_శని".split("_"),weekdaysMin:"à°_à°¸à±_à°®à°_à°¬à±_à°à±_à°¶à±_à°¶".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[à°¨à±à°¡à±] LT",nextDay:"[à°°à±à°ªà±] LT",nextWeek:"dddd, LT",lastDay:"[నినà±à°¨] LT",lastWeek:"[à°à°¤] dddd, LT",sameElse:"L"},relativeTime:{future:"%s à°²à±",past:"%s à°à±à°°à°¿à°¤à°",s:"à°à±à°¨à±à°¨à°¿ à°à±à°·à°£à°¾à°²à±",ss:"%d à°¸à±à°à°¨à±à°²à±",m:"à°à° నిమిషà°",mm:"%d నిమిషాలà±",h:"à°à° à°à°à°",hh:"%d à°à°à°à°²à±",d:"à°à° à°°à±à°à±",dd:"%d à°°à±à°à±à°²à±",M:"à°à° à°¨à±à°²",MM:"%d à°¨à±à°²à°²à±",y:"à°à° à°¸à°à°µà°¤à±à°¸à°°à°",yy:"%d à°¸à°à°µà°¤à±à°¸à°°à°¾à°²à±"},dayOfMonthOrdinalParse:/\d{1,2}à°µ/,ordinal:"%dà°µ",meridiemParse:/రాతà±à°°à°¿|à°à°¦à°¯à°|మధà±à°¯à°¾à°¹à±à°¨à°|సాయà°à°¤à±à°°à°/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాతà±à°°à°¿"===t?e<4?e:e+12:"à°à°¦à°¯à°"===t?e:"మధà±à°¯à°¾à°¹à±à°¨à°"===t?e>=10?e:e+12:"సాయà°à°¤à±à°°à°"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"రాతà±à°°à°¿":e<10?"à°à°¦à°¯à°":e<17?"మధà±à°¯à°¾à°¹à±à°¨à°":e<20?"సాయà°à°¤à±à°°à°":"రాతà±à°°à°¿"},week:{dow:0,doy:6}})}(i(5093))},2105:function(e,t,i){e.exports=function(e,t){"use strict";class i{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(i,s){const r=t.isElement(s)?e.getDataAttribute(s,"config"):{};return{...this.constructor.Default,..."object"==typeof r?r:{},...t.isElement(s)?e.getDataAttributes(s):{},..."object"==typeof i?i:{}}}_typeCheckConfig(e,i=this.constructor.DefaultType){for(const[s,r]of Object.entries(i)){const i=e[s],n=t.isElement(i)?"element":t.toType(i);if(!new RegExp(r).test(n))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${n}" but expected type "${r}".`)}}}return i}(i(2333),i(4035))},2124:function(e,t,i){!function(e){"use strict";function t(e,t,i,s){var r={s:["थà¥à¤¡à¤¯à¤¾ सà¥
à¤à¤à¤¡à¤¾à¤à¤¨à¥","थà¥à¤¡à¥ सà¥
à¤à¤à¤¡"],ss:[e+" सà¥
à¤à¤à¤¡à¤¾à¤à¤¨à¥",e+" सà¥
à¤à¤à¤¡"],m:["à¤à¤à¤¾ मिणà¤à¤¾à¤¨","à¤à¤ मिनà¥à¤"],mm:[e+" मिणà¤à¤¾à¤à¤¨à¥",e+" मिणà¤à¤¾à¤"],h:["à¤à¤à¤¾ वरान","à¤à¤ वर"],hh:[e+" वराà¤à¤¨à¥",e+" वराà¤"],d:["à¤à¤à¤¾ दिसान","à¤à¤ दà¥à¤¸"],dd:[e+" दिसाà¤à¤¨à¥",e+" दà¥à¤¸"],M:["à¤à¤à¤¾ मà¥à¤¹à¤¯à¤¨à¥à¤¯à¤¾à¤¨","à¤à¤ मà¥à¤¹à¤¯à¤¨à¥"],MM:[e+" मà¥à¤¹à¤¯à¤¨à¥à¤¯à¤¾à¤¨à¥",e+" मà¥à¤¹à¤¯à¤¨à¥"],y:["à¤à¤à¤¾ वरà¥à¤¸à¤¾à¤¨","à¤à¤ वरà¥à¤¸"],yy:[e+" वरà¥à¤¸à¤¾à¤à¤¨à¥",e+" वरà¥à¤¸à¤¾à¤"]};return s?r[i][0]:r[i][1]}e.defineLocale("gom-deva",{months:{standalone:"à¤à¤¾à¤¨à¥à¤µà¤¾à¤°à¥_फà¥à¤¬à¥à¤°à¥à¤µà¤¾à¤°à¥_मारà¥à¤_à¤à¤ªà¥à¤°à¥à¤²_मà¥_à¤à¥à¤¨_à¤à¥à¤²à¤¯_à¤à¤à¤¸à¥à¤_सपà¥à¤à¥à¤à¤¬à¤°_à¤à¤à¥à¤à¥à¤¬à¤°_नà¥à¤µà¥à¤¹à¥à¤à¤¬à¤°_डिसà¥à¤à¤¬à¤°".split("_"),format:"à¤à¤¾à¤¨à¥à¤µà¤¾à¤°à¥à¤à¥à¤¯à¤¾_फà¥à¤¬à¥à¤°à¥à¤µà¤¾à¤°à¥à¤à¥à¤¯à¤¾_मारà¥à¤à¤¾à¤à¥à¤¯à¤¾_à¤à¤ªà¥à¤°à¥à¤²à¤¾à¤à¥à¤¯à¤¾_मà¥à¤¯à¤¾à¤à¥à¤¯à¤¾_à¤à¥à¤¨à¤¾à¤à¥à¤¯à¤¾_à¤à¥à¤²à¤¯à¤¾à¤à¥à¤¯à¤¾_à¤à¤à¤¸à¥à¤à¤¾à¤à¥à¤¯à¤¾_सपà¥à¤à¥à¤à¤¬à¤°à¤¾à¤à¥à¤¯à¤¾_à¤à¤à¥à¤à¥à¤¬à¤°à¤¾à¤à¥à¤¯à¤¾_नà¥à¤µà¥à¤¹à¥à¤à¤¬à¤°à¤¾à¤à¥à¤¯à¤¾_डिसà¥à¤à¤¬à¤°à¤¾à¤à¥à¤¯à¤¾".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"à¤à¤¾à¤¨à¥._फà¥à¤¬à¥à¤°à¥._मारà¥à¤_à¤à¤ªà¥à¤°à¥._मà¥_à¤à¥à¤¨_à¤à¥à¤²._à¤à¤._सपà¥à¤à¥à¤._à¤à¤à¥à¤à¥._नà¥à¤µà¥à¤¹à¥à¤._डिसà¥à¤.".split("_"),monthsParseExact:!0,weekdays:"à¤à¤¯à¤¤à¤¾à¤°_सà¥à¤®à¤¾à¤°_मà¤à¤à¤³à¤¾à¤°_बà¥à¤§à¤µà¤¾à¤°_बिरà¥à¤¸à¥à¤¤à¤¾à¤°_सà¥à¤à¥à¤°à¤¾à
2¤°_शà¥à¤¨à¤µà¤¾à¤°".split("_"),weekdaysShort:"à¤à¤¯à¤¤._सà¥à¤®._मà¤à¤à¤³._बà¥à¤§._बà¥à¤°à¥à¤¸à¥à¤¤._सà¥à¤à¥à¤°._शà¥à¤¨.".split("_"),weekdaysMin:"à¤_सà¥_मà¤_बà¥_बà¥à¤°à¥_सà¥_शà¥".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाà¤à¤¤à¤¾à¤]",LTS:"A h:mm:ss [वाà¤à¤¤à¤¾à¤]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाà¤à¤¤à¤¾à¤]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाà¤à¤¤à¤¾à¤]",llll:"ddd, D MMM YYYY, A h:mm [वाà¤à¤¤à¤¾à¤]"},calendar:{sameDay:"[à¤à¤¯à¤] LT",nextDay:"[फालà¥à¤¯à¤¾à¤] LT",nextWeek:"[फà¥à¤¡à¤²à¥] dddd[,] LT",lastDay:"[à¤à¤¾à¤²] LT",lastWeek:"[फाà¤à¤²à¥] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s à¤à¤¦à¥à¤",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वà¥à¤°)/,ordinal:function(e,t){return"D"===t?e+"वà¥à¤°":e},week:{dow:0,doy:3},meridiemParse:/रातà¥|सà¤à¤¾à¤³à¥à¤|दनपाराà¤|साà¤à¤à¥/,meridiemHour:function(e,t){return 12===e&&(e=0),"रातà¥"===t?e<4?e:e+12:"सà¤à¤¾à¤³à¥à¤"===t?e:"दनपाराà¤"===t?e>12?e:e+12:"साà¤à¤à¥"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"रातà¥":e<12?"सà¤à¤¾à¤³à¥à¤":e<16?"दनपाराà¤":e<20?"साà¤à¤à¥":"रातà¥"}})}(i(5093))},2218:function(e,t,i){!function(e){"use strict";e.defineLocale("yo",{months:"SẹÌrẹÌ_EÌreÌleÌ_ẸrẹÌnaÌ_IÌgbeÌ_EÌbibi_OÌkuÌdu_Agẹmo_OÌguÌn_Owewe_á»ÌwaÌraÌ_BeÌluÌ_á»ÌpẹÌÌ".split("_"),monthsShort:"SẹÌr_EÌrl_Ẹrn_IÌgb_EÌbi_OÌkuÌ_Agẹ_OÌguÌ_Owe_á»ÌwaÌ_BeÌl_á»ÌpẹÌÌ".split("_"),weekdays:"AÌiÌkuÌ_AjeÌ_IÌsẹÌgun_á»já»ÌruÌ_á»já»Ìbá»_ẸtiÌ_AÌbaÌmẹÌta".split("_"),weekdaysShort:"AÌiÌk_AjeÌ_IÌsẹÌ_á»jr_á»jb_ẸtiÌ_AÌbaÌ".split("_"),weekdaysMin:"AÌiÌ_Aj_IÌs_á»r_á»b_Ẹt_AÌb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[OÌniÌ ni] LT",nextDay:"[á»Ìla ni] LT",nextWeek:"dddd [á»sáº¹Ì toÌn'bá»] [ni] LT",lastDay:"[AÌna ni] LT",lastWeek:"dddd [á»sáº¹Ì toÌlá»Ì] [ni] LT",sameElse:"L"},relativeTime:{future:"niÌ %s",past:"%s ká»jaÌ",s:"iÌsẹjuÌ aayaÌ die",ss:"aayaÌ %d",m:"iÌsẹjuÌ kan",mm:"iÌsẹjuÌ %d",h:"waÌkati kan",hh:"waÌkati %d",d:"á»já»Ì kan",dd:"á»já»Ì %d",M:"osuÌ kan",MM:"osuÌ %d",y:"á»duÌn kan",yy:"á»duÌn %d"},dayOfMonthOrdinalParse:/á»já»Ì\s\d{1,2}/,ordinal:"á»já»Ì %d",week:{dow:1,doy:4}})}(i(5093))},2264:function(e,t,i){!function(e){"use strict";var t={1:"á",2:"á",3:"á",4:"á",5:"á
",6:"á",7:"á",8:"á",9:"á",0:"á"},i={"á":"1","á":"2","á":"3","á":"4","á
":"5","á":"6","á":"7","á":"8","á":"9","á":"0"};e.defineLocale("my",{months:"áááºááá«áá®_áá±áá±á¬áºáá«áá®_áááº_á§áá¼á®_áá±_áá½ááº_áá°ááá¯ááº_áá¼áá¯ááº_á
ááºáááºáá¬_á¡á±á¬ááºááá¯áá¬_ááá¯áááºáá¬_áá®áááºáá¬".split("_"),monthsShort:"áááº_áá±_áááº_áá¼á®_áá±_áá½ááº_ááá¯ááº_áá¼_á
ááº_á¡á±á¬ááº_ááá¯_áá®".split("_"),weekdays:"ááááºá¹ááá½á±_ááááºá¹áá¬_á¡ááºá¹áá«_áá¯áá¹ááá°á¸_áá¼á¬áááá±á¸_áá±á¬áá¼á¬_á
áá±".split("_"),weekdaysShort:"áá½á±_áá¬_áá«_áá°á¸_áá¼á¬_áá±á¬_áá±".split("_"),weekdaysMin:"áá½á±_áá¬_áá«_áá°á¸_áá¼á¬_áá±á¬_áá±".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ááá±.] LT [áá¾á¬]",nextDay:"[ááááºáá¼ááº] LT [áá¾á¬]",nextWeek:"dddd LT [áá¾á¬]",lastDay:"[ááá±.á] LT [áá¾á¬]",lastWeek:"[áá¼á®á¸áá²á·áá±á¬] dddd LT [áá¾á¬]",sameElse:"L"},relativeTime:{future:"áá¬áááºá· %s áá¾á¬",past:"áá½ááºáá²á·áá±á¬ %s á",s:"á
áá¹áááº.á¡ááá
2ºá¸áááº",ss:"%d á
áá¹ááá·áº",m:"áá
áºáááá
áº",mm:"%d áááá
áº",h:"áá
áºáá¬áá®",hh:"%d áá¬áá®",d:"áá
áºáááº",dd:"%d áááº",M:"áá
áºá",MM:"%d á",y:"áá
áºáá¾á
áº",yy:"%d áá¾á
áº"},preparse:function(e){return e.replace(/[ááááá
ááááá]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(i(5093))},2271:function(e,t,i){!function(e){"use strict";function t(e,t){var i=e.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function i(e,i,s){return"m"===s?i?"минÑÑа":"минÑÑÑ":e+" "+t({ss:i?"ÑекÑнда_ÑекÑндÑ_ÑекÑнд":"ÑекÑндÑ_ÑекÑндÑ_ÑекÑнд",mm:i?"минÑÑа_минÑÑÑ_минÑÑ":"минÑÑÑ_минÑÑÑ_минÑÑ",hh:"ÑаÑ_ÑаÑа_ÑаÑов",dd:"денÑ_днÑ_дней",ww:"неделÑ_недели_неделÑ",MM:"меÑÑÑ_меÑÑÑа_меÑÑÑев",yy:"год_года_леÑ"}[s],+e)}var s=[/^Ñнв/i,/^Ñев/i,/^маÑ/i,/^апÑ/i,/^ма[йÑ]/i,/^иÑн/i,/^иÑл/i,/^авг/i,/^Ñен/i,/^окÑ/i,/^ноÑ/i,/^дек/i];e.defineLocale("ru",{months:{format:"ÑнваÑÑ_ÑевÑалÑ_маÑÑа_апÑелÑ_маÑ_иÑнÑ_иÑлÑ_авгÑÑÑа_ÑенÑÑбÑÑ_окÑÑбÑÑ_ноÑбÑÑ_декабÑÑ".split("_"),standalone:"ÑнваÑÑ_ÑевÑалÑ_маÑÑ_апÑелÑ_май_иÑнÑ_иÑлÑ_авгÑÑÑ_ÑенÑÑбÑÑ_окÑÑбÑÑ_ноÑбÑÑ_декабÑÑ".split("_")},monthsShort:{format:"Ñнв._ÑевÑ._маÑ._апÑ._маÑ_иÑнÑ_иÑлÑ_авг._ÑенÑ._окÑ._ноÑб._дек.".split("_"),standalone:"Ñнв._ÑевÑ._маÑÑ_апÑ._май_иÑнÑ_иÑлÑ_авг._ÑенÑ._окÑ._ноÑб._дек.".split("_")},weekdays:{standalone:"воÑкÑеÑенÑе_понеделÑник_вÑоÑник_ÑÑеда_ÑеÑвеÑг_пÑÑниÑа_ÑÑббоÑа".split("_"),format:"воÑкÑеÑенÑе_понеделÑник_вÑоÑник_ÑÑедÑ_ÑеÑвеÑг_пÑÑниÑÑ_ÑÑббоÑÑ".split("_"),isFormat:/\[ ?[Ðв] ?(?:пÑоÑлÑÑ|ÑледÑÑÑÑÑ|ÑÑÑ)? ?] ?dddd/},weekdaysShort:"вÑ_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),weekdaysMin:"вÑ_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),monthsParse:s,longMonthsParse:s,shortMonthsParse:s,monthsRegex:/^(ÑнваÑ[ÑÑ]|Ñнв\.?|ÑевÑал[ÑÑ]|ÑевÑ?\.?|маÑÑа?|маÑ\.?|апÑел[ÑÑ]|апÑ\.?|ма[йÑ]|иÑн[ÑÑ]|иÑн\.?|иÑл[ÑÑ]|иÑл\.?|авгÑÑÑа?|авг\.?|ÑенÑÑбÑ[ÑÑ]|ÑенÑ?\.?|окÑÑбÑ[ÑÑ]|окÑ\.?|ноÑбÑ[ÑÑ]|ноÑб?\.?|декабÑ[ÑÑ]|дек\.?)/i,monthsShortRegex:/^(ÑнваÑ[ÑÑ]|Ñнв\.?|ÑевÑал[ÑÑ]|ÑевÑ?\.?|маÑÑа?|маÑ\.?|апÑел[ÑÑ]|апÑ\.?|ма[йÑ]|иÑн[ÑÑ]|иÑн\.?|иÑл[ÑÑ]|иÑл\.?|авгÑÑÑа?|авг\.?|ÑенÑÑбÑ[ÑÑ]|ÑенÑ?\.?|окÑÑбÑ[ÑÑ]|окÑ\.?|ноÑбÑ[ÑÑ]|ноÑб?\.?|декабÑ[ÑÑ]|дек\.?)/i,monthsStrictRegex:/^(ÑнваÑ[ÑÑ]|ÑевÑал[ÑÑ]|маÑÑа?|апÑел[ÑÑ]|ма[Ñй]|иÑн[ÑÑ]|иÑл[ÑÑ]|авгÑÑÑа?|ÑенÑÑбÑ[ÑÑ]|окÑÑбÑ[ÑÑ]|ноÑбÑ[ÑÑ]|декабÑ[ÑÑ])/i,monthsShortStrictRegex:/^(Ñнв\.|ÑевÑ?\.|маÑ[Ñ.]|апÑ\.|ма[Ñй]|иÑн[ÑÑ.]|иÑл[ÑÑ.]|авг\.|ÑенÑ?\.|окÑ\.|ноÑб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[СегоднÑ, в] LT",nextDay:"[ÐавÑÑа, в] LT",lastDay:"[ÐÑеÑа, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Ðо] dddd, [в] LT":"[Ð] dddd, [в] LT";switch(this.day()){case 0:return"[Ð ÑледÑÑÑее] dddd, [в] LT";case 1:case 2:case 4:return"[Ð ÑледÑÑÑий] dddd, [в] LT";case 3:case 5:case 6:return"[Ð ÑледÑÑÑÑÑ] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Ðо] dddd, [в] LT":"[Ð] dddd, [в] LT";switch(this.day()){case 0:return"[РпÑоÑлое] dddd, [в] LT";case 1:case 2:case 4:return"[РпÑоÑлÑй] dddd, [в] LT";
2case 3:case 5:case 6:return"[РпÑоÑлÑÑ] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"ÑеÑез %s",past:"%s назад",s:"неÑколÑко ÑекÑнд",ss:i,m:i,mm:i,h:"ÑаÑ",hh:i,d:"денÑ",dd:i,w:"неделÑ",ww:i,M:"меÑÑÑ",MM:i,y:"год",yy:i},meridiemParse:/ноÑи|ÑÑÑа|днÑ|веÑеÑа/i,isPM:function(e){return/^(днÑ|веÑеÑа)$/.test(e)},meridiem:function(e,t,i){return e<4?"ноÑи":e<12?"ÑÑÑа":e<17?"днÑ":"веÑеÑа"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|Ñ)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-Ñ";default:return e}},week:{dow:1,doy:4}})}(i(5093))},2274:function(e,t,i){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i gÃ¥r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én mÃ¥ned",MM:"%d mÃ¥neder",y:"ett Ã¥r",yy:"%d Ã¥r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(5093))},2297:function(e,t,i){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(i(5093))},2333:function(e){e.exports=function(){"use strict";function e(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function t(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}return{setDataAttribute(e,i,s){e.setAttribute(`data-bs-${t(i)}`,s)},removeDataAttribute(e,i){e.removeAttribute(`data-bs-${t(i)}`)},getDataAttributes(t){if(!t)return{};const i={},s=Object.keys(t.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const r of s){let s=r.replace(/^bs/,"");s=s.charAt(0).toLowerCase()+s.slice(1),i[s]=e(t.dataset[r])}return i},getDataAttribute:(i,s)=>e(i.getAttribute(`data-bs-${t(s)}`))}}()},2353:function(e,t,i){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},s={s:["Ø£ÙÙ Ù
٠ثاÙÙØ©","ثاÙÙØ© ÙØ§ØØ¯Ø©",["ثاÙÙØªØ§Ù","ثاÙÙØªÙÙ"],"%d Ø«ÙØ§Ù","%d ثاÙÙØ©","%d ثاÙÙØ©"],m:["Ø£ÙÙ Ù
٠دÙÙÙØ©","دÙÙÙØ© ÙØ§ØØ¯Ø©",["دÙÙÙØªØ§Ù","دÙÙÙØªÙÙ"],"%d Ø¯ÙØ§Ø¦Ù","%d دÙÙÙØ©","%d دÙÙÙØ©"],h:["Ø£ÙÙ Ù
٠ساعة","ساعة ÙØ§ØØ¯Ø©",["ساعتاÙ","ساعتÙÙ"],"%d ساعات","%d ساعة","%d ساعة"],d:["Ø£ÙÙ Ù
Ù ÙÙÙ
","ÙÙÙ
ÙØ§ØØ¯",["ÙÙÙ
اÙ","ÙÙÙ
ÙÙ"],"%d Ø£ÙØ§Ù
","%d ÙÙÙ
ÙØ§","%d ÙÙÙ
"],M:["Ø£ÙÙ Ù
Ù Ø´ÙØ±","Ø´ÙØ± ÙØ§ØØ¯",["Ø´ÙØ±Ø§Ù","Ø´ÙØ±ÙÙ"],"%d Ø£Ø´ÙØ±","%d Ø´ÙØ±Ø§","%d Ø´ÙØ±"],y:["Ø£ÙÙ Ù
٠عاÙ
","عاÙ
ÙØ§ØØ¯",["عاÙ
اÙ","عاÙ
ÙÙ"],"%d Ø£Ø¹ÙØ§Ù
","%d عاÙ
ÙØ§","%d عاÙ
"]},r=function(e){return function(t,r,n,a){var o=i(t),l=s[e][i(t)];return 2===o&&(l=l[r?0:1]),l.replace(/%d/i,t)}},n=["ÙÙØ§Ùر","ÙØ¨Ø±Ø§Ùر","Ù
ارس","أبرÙÙ","Ù
اÙÙ","ÙÙÙÙÙ","ÙÙÙÙÙ","أغسطس","سبتÙ
بر","Ø£ÙØªÙبر","ÙÙÙÙ
بر","Ø¯ÙØ³Ù
بر"];e.defineLocale("ar-ly",{months:n,monthsShort:n,weekdays:"Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù
ÙØ³_Ø§ÙØ¬Ù
عة_Ø§ÙØ³Ø¨Øª".split("_"),weekdaysShort:"Ø£ØØ¯_إثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_أربعاء_Ø®Ù
ÙØ³_جÙ
عة_سبت".split("_"),weekdaysMin:"Ø_Ù_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/âM/âYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|Ù
/,isPM:function(e){return"Ù
"===e},meridiem:function(e,t,i){return e<12?"ص":"Ù
"},calendar:{sameDay:"[اÙÙÙÙ
Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextDay:"[ØºØ¯ÙØ§ Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextWeek:"dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastDay:"[Ø£Ù
س Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastWeek:"dddd [Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø©] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"Ù
ÙØ° %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/Ø/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"Ø")},week:{dow:6,doy:12}})}(i(5093))},2453:function(e,t,i){e.exports=function(e,t,i,s,r,n){"use strict";function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const i in e)if("default"!==i){const s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>e[i]})}return t.default=e,Object.freeze(t)}const o=a(e),l="dropdown",d=".bs.dropdown",h=".data-api",c="Escape",u="Tab",f="ArrowUp",m="ArrowDown",p=2,g=`hide${d}`,y=`hidden${d}`,_=`show${d}`,v=`shown${d}`,b=`click${d}${h}`,w=`keydown${d}${h}`,T=`keyup${d}${h}`,M="show",S="dropup",L="dropend",k="dropstart",E="dropup-center",D="dropdown-center",x='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',A=`${x}.${M}`,P=".dropdown-menu",C=".navbar",I=".navbar-nav",R=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",O=n.isRTL()?"top-end":"top-start",Y=n.isRTL()?"top-start":"top-end",F=n.isRTL()?"bottom-end":"bottom-start",$=n.isRTL()?"bottom-start":"bottom-end",N=n.isRTL()?"left-start":"right-start",B=n.isRTL()?"right-start":"left-start",H="top",j="bottom",U={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},V={autoClose:"(boolean|string)",boundary:"(string|element)",display:"str
2ing",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class G extends t{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=r.next(this._element,P)[0]||r.prev(this._element,P)[0]||r.findOne(P,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return U}static get DefaultType(){return V}static get NAME(){return l}toggle(){return this._isShown()?this.hide():this.show()}show(){if(n.isDisabled(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!i.trigger(this._element,_,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(I))for(const e of[].concat(...document.body.children))i.on(e,"mouseover",n.noop);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(M),this._element.classList.add(M),i.trigger(this._element,v,e)}}hide(){if(n.isDisabled(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!i.trigger(this._element,g,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))i.off(e,"mouseover",n.noop);this._popper&&this._popper.destroy(),this._menu.classList.remove(M),this._element.classList.remove(M),this._element.setAttribute("aria-expanded","false"),s.removeDataAttribute(this._menu,"popper"),i.trigger(this._element,y,e),this._element.focus()}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!n.isElement(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${l.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===o)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;"parent"===this._config.reference?e=this._parent:n.isElement(this._config.reference)?e=n.getElement(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=o.createPopper(e,this._menu,t)}_isShown(){return this._menu.classList.contains(M)}_getPlacement(){const e=this._parent;if(e.classList.contains(L))return N;if(e.classList.contains(k))return B;if(e.classList.contains(E))return H;if(e.classList.contains(D))return j;const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains(S)?t?Y:O:t?$:F}_detectNavbar(){return null!==this._element.closest(C)}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(s.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...n.execute(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){const i=r.find(R,this._menu).filter((e=>n.isVisible(e)));i.length&&n.getNextActiveElement(i,t,e===m,!i.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=G.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(e.button===p||"keyup"===e.type&&e.key!==u)return;const t=r.find(A);for(const i of t){const t=G.getInstance(i);if(!t||!1===t._config.autoClose)continue;const s=e.composedPath(),r=s.includes(t._menu);if(s.includes(t._element)||"inside"===t._config.autoClose&&!r||"outside"===t._config.autoClose&&r)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&e.key===u||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const n={relatedTarget:t._element};"click"===e.type&&(n.clickEvent=e),t._completeHide(n)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),i=e.key===c,s=[f,m].includes(e.ke
2y);if(!s&&!i)return;if(t&&!i)return;e.preventDefault();const n=this.matches(x)?this:r.prev(this,x)[0]||r.next(this,x)[0]||r.findOne(x,e.delegateTarget.parentNode),a=G.getOrCreateInstance(n);if(s)return e.stopPropagation(),a.show(),void a._selectMenuItem(e);a._isShown()&&(e.stopPropagation(),a.hide(),n.focus())}}return i.on(document,w,x,G.dataApiKeydownHandler),i.on(document,w,P,G.dataApiKeydownHandler),i.on(document,b,G.clearMenus),i.on(document,T,G.clearMenus),i.on(document,b,x,(function(e){e.preventDefault(),G.getOrCreateInstance(this).toggle()})),n.defineJQueryPlugin(G),G}(i(1216),i(9011),i(7956),i(2333),i(5411),i(4035))},2475:function(e,t,i){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(i(5093))},2477:function(e,t,i){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_aprÃl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_frÃggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frÃ_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[à dag kl.] LT",nextDay:"[à morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[à gjár kl.] LT",lastWeek:"[sÃðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s sÃðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tÃmi",hh:"%d tÃmar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(5093))},2572:function(e,t,i){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),s=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?i[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(5093))},2648:function(e,t,i){!function(e){"use strict";e.defineLocale("zh-cn",{months:"䏿_äºæ_䏿_åæ_äºæ_å
æ_䏿_å
«æ_乿_åæ_å䏿_åäºæ".split("_"),monthsShort:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),weekdays:"æææ¥_ææä¸_ææäº_ææä¸_ææå_ææäº_ææå
".split("_"),weekdaysShort:"卿¥_å¨ä¸_å¨äº_å¨ä¸_å¨å_å¨äº_å¨å
".split("_"),weekdaysMin:"æ¥_ä¸_äº_ä¸_å_äº_å
".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYYå¹´MæDæ¥",LLL:"YYYYå¹´MæDæ¥Ahç¹mmå",LLLL:"YYYYå¹´MæDæ¥ddddAhç¹mmå",l:"YYYY/M/D",ll:"YYYYå¹´MæDæ¥",lll:"YYYYå¹´MæDæ¥ HH:mm",llll:"YYYYå¹´MæDæ¥dddd HH:mm"},meridiemParse:/忍|æ©ä¸|ä¸å|ä¸å|ä¸å|æä¸/,meridiemHour:function(e,t){return 12===e&&(e=0),"忍"===t||"æ©ä¸"===t||"ä¸å"===t?e:"ä¸å"===t||"æä¸"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,i){var s=100*e+t;
2return s<600?"忍":s<900?"æ©ä¸":s<1130?"ä¸å":s<1230?"ä¸å":s<1800?"ä¸å":"æä¸"},calendar:{sameDay:"[ä»å¤©]LT",nextDay:"[æå¤©]LT",nextWeek:function(e){return e.week()!==this.week()?"[ä¸]dddLT":"[æ¬]dddLT"},lastDay:"[æ¨å¤©]LT",lastWeek:function(e){return this.week()!==e.week()?"[ä¸]dddLT":"[æ¬]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(æ¥|æ|å¨)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"æ¥";case"M":return e+"æ";case"w":case"W":return e+"å¨";default:return e}},relativeTime:{future:"%så",past:"%så",s:"å ç§",ss:"%d ç§",m:"1 åé",mm:"%d åé",h:"1 å°æ¶",hh:"%d å°æ¶",d:"1 天",dd:"%d 天",w:"1 å¨",ww:"%d å¨",M:"1 个æ",MM:"%d 个æ",y:"1 å¹´",yy:"%d å¹´"},week:{dow:1,doy:4}})}(i(5093))},2682:function(e,t,i){!function(e){"use strict";var t={1:"Ù¡",2:"Ù¢",3:"Ù£",4:"Ù¤",5:"Ù¥",6:"Ù¦",7:"Ù§",8:"Ù¨",9:"Ù©",0:"Ù "},i={"Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù ":"0"};e.defineLocale("ar-sa",{months:"ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_Ù
ارس_أبرÙÙ_Ù
اÙÙ_ÙÙÙÙÙ_ÙÙÙÙÙ_أغسطس_سبتÙ
بر_Ø£ÙØªÙبر_ÙÙÙÙ
بر_Ø¯ÙØ³Ù
بر".split("_"),monthsShort:"ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_Ù
ارس_أبرÙÙ_Ù
اÙÙ_ÙÙÙÙÙ_ÙÙÙÙÙ_أغسطس_سبتÙ
بر_Ø£ÙØªÙبر_ÙÙÙÙ
بر_Ø¯ÙØ³Ù
بر".split("_"),weekdays:"Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù
ÙØ³_Ø§ÙØ¬Ù
عة_Ø§ÙØ³Ø¨Øª".split("_"),weekdaysShort:"Ø£ØØ¯_إثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_أربعاء_Ø®Ù
ÙØ³_جÙ
عة_سبت".split("_"),weekdaysMin:"Ø_Ù_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|Ù
/,isPM:function(e){return"Ù
"===e},meridiem:function(e,t,i){return e<12?"ص":"Ù
"},calendar:{sameDay:"[اÙÙÙÙ
عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextDay:"[غدا عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextWeek:"dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastDay:"[Ø£Ù
س عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastWeek:"dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",sameElse:"L"},relativeTime:{future:"ÙÙ %s",past:"Ù
ÙØ° %s",s:"Ø«ÙØ§Ù",ss:"%d ثاÙÙØ©",m:"دÙÙÙØ©",mm:"%d Ø¯ÙØ§Ø¦Ù",h:"ساعة",hh:"%d ساعات",d:"ÙÙÙ
",dd:"%d Ø£ÙØ§Ù
",M:"Ø´ÙØ±",MM:"%d Ø£Ø´ÙØ±",y:"Ø³ÙØ©",yy:"%d سÙÙØ§Øª"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return i[e]})).replace(/Ø/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"Ø")},week:{dow:0,doy:6}})}(i(5093))},2934:function(e,t,i){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aÅgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aÅg_sept_okt_nov_dec".split("_"),weekdays:"dimanÄo_lundo_mardo_merkredo_ĵaÅdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaÅ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,i){return e>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[HodiaÅ je] LT",nextDay:"[MorgaÅ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[HieraÅ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaÅ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(i(5093))},2936:function(e,t,i){e.exports=function(e,t,i){"use strict";const s="focustrap",r=".bs.focustrap",n=`focusin${r}`,a=`keydown.tab${r}`,o="Tab",l="forward",d="backward",h={autofocus:!0,trapElement:null},c={autofocus:"boolean",trapElement:"element"};class u extends i{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return h}static get DefaultType(){return c}static get NAME(){return s}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),e.off(document,r),e.on(document,n,(e=>this._handleFocusin(e))),e.on(document,a,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,e.off(document,r))}_handleFocusin(e){const{trapElement:i}=this._config;if(e.target===document||e.target===i||i.contains(e.target))return;const s=t.focusableChildren(i);0===s.length?i.focus():this._lastTabNavDirection===d?s[s.length-1].focus():s[0].focus()}_handleKeydown(e){e.key===o&&(this._lastTabNavDirection=e.shiftKey?d:l)}}return u}(i(7956),i(5411),i(2105))},3004:function(e,t,i){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(i(5093))},3035:function(e,t,i){!function(e){"use strict";function t(e,t,i,s){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[i][2]?r[i][2]:r[i][1]:s?r[i][0]:r[i][1]}
vendor: 10,438 bytes, line 2
2e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(5093))},3164:function(e,t,i){!function(e){"use strict";e.defineLocale("ko",{months:"1ì_2ì_3ì_4ì_5ì_6ì_7ì_8ì_9ì_10ì_11ì_12ì".split("_"),monthsShort:"1ì_2ì_3ì_4ì_5ì_6ì_7ì_8ì_9ì_10ì_11ì_12ì".split("_"),weekdays:"ì¼ìì¼_ììì¼_íìì¼_ììì¼_목ìì¼_ê¸ìì¼_í ìì¼".split("_"),weekdaysShort:"ì¼_ì_í_ì_목_ê¸_í ".split("_"),weekdaysMin:"ì¼_ì_í_ì_목_ê¸_í ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYYë
MMMM Dì¼",LLL:"YYYYë
MMMM Dì¼ A h:mm",LLLL:"YYYYë
MMMM Dì¼ dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYYë
MMMM Dì¼",lll:"YYYYë
MMMM Dì¼ A h:mm",llll:"YYYYë
MMMM Dì¼ dddd A h:mm"},calendar:{sameDay:"ì¤ë LT",nextDay:"ë´ì¼ LT",nextWeek:"dddd LT",lastDay:"ì´ì LT",lastWeek:"ì§ë주 dddd LT",sameElse:"L"},relativeTime:{future:"%s í",past:"%s ì ",s:"ëª ì´",ss:"%dì´",m:"1ë¶",mm:"%dë¶",h:"í ìê°",hh:"%dìê°",d:"í루",dd:"%dì¼",M:"í ë¬",MM:"%dë¬",y:"ì¼ ë
",yy:"%dë
"},dayOfMonthOrdinalParse:/\d{1,2}(ì¼|ì|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"ì¼";case"M":return e+"ì";case"w":case"W":return e+"주";default:return e}},meridiemParse:/ì¤ì |ì¤í/,isPM:function(e){return"ì¤í"===e},meridiem:function(e,t,i){return e<12?"ì¤ì ":"ì¤í"}})}(i(5093))},3322:function(e,t,i){!function(e){"use strict";var t={words:{ss:["ÑекÑнда","ÑекÑнде","ÑекÑнди"],m:["Ñедан минÑÑ","Ñедног минÑÑа"],mm:["минÑÑ","минÑÑа","минÑÑа"],h:["Ñедан ÑаÑ","Ñедног ÑаÑа"],hh:["ÑаÑ","ÑаÑа","ÑаÑи"],d:["Ñедан дан","Ñедног дана"],dd:["дан","дана","дана"],M:["Ñедан меÑеÑ","Ñедног меÑеÑа"],MM:["меÑеÑ","меÑеÑа","меÑеÑи"],y:["ÑÐµÐ´Ð½Ñ Ð³Ð¾Ð´Ð¸Ð½Ñ","Ñедне године"],yy:["годинÑ","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,i,s,r){var n,a=t.words[s];return 1===s.length?"y"===s&&i?"Ñедна година":r||i?a[0]:a[1]:(n=t.correctGrammaticalCase(e,a),"yy"===s&&i&&"годинÑ"===n?e+" година":e+" "+n)}};e.defineLocale("sr-cyrl",{months:"ÑанÑаÑ_ÑебÑÑаÑ_маÑÑ_апÑил_маÑ_ÑÑн_ÑÑл_авгÑÑÑ_ÑепÑембаÑ_окÑобаÑ_новембаÑ_деÑембаÑ".split("_"),monthsShort:"Ñан._Ñеб._маÑ._апÑ._маÑ_ÑÑн_ÑÑл_авг._Ñеп._окÑ._нов._деÑ.".split("_"),monthsParseExact:!0,weekdays:"недеÑа_понедеÑак_ÑÑоÑак_ÑÑеда_ÑеÑвÑÑак_пеÑак_ÑÑбоÑа".split("_"),weekdaysShort:"нед._пон._ÑÑо._ÑÑе._ÑеÑ._пеÑ._ÑÑб.".split("_"),weekdaysMin:"не_по_ÑÑ_ÑÑ_Ñе_пе_ÑÑ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[Ð´Ð°Ð½Ð°Ñ Ñ] LT",nextDay:"[ÑÑÑÑа Ñ] LT",nextWeek:function(){switch(this.day()){case 0:return"[Ñ] [недеÑÑ] [Ñ] LT";case 3:return"[Ñ] [ÑÑедÑ] [Ñ] LT";case 6:return"[Ñ] [ÑÑбоÑÑ] [Ñ] LT";case 1:case 2:case 4:case 5:return"[Ñ] dddd [Ñ] LT"}},lastDay:"[ÑÑÑе Ñ] LT",lastWeek:function(){return["[пÑоÑле] [недеÑе] [Ñ] LT","[пÑоÑлог] [понедеÑка] [Ñ] LT","[пÑоÑлог] [ÑÑоÑка] [Ñ] LT","[пÑоÑле] [ÑÑеде] [Ñ] LT","[пÑоÑлог] [ÑеÑвÑÑка] [Ñ] LT","[пÑоÑлог] [пеÑка] [Ñ] LT","[пÑоÑле] [ÑÑбоÑе] [Ñ] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пÑе %s",s:"неколико ÑекÑнди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(5093))},3383:function(e,t,i){!function(e){"use strict";function t(e,t,i,s){var r={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return s?r[i][0]:r[i][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(i(5093))},3386:function(e,t,i){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(i(5093))},3478:function(e,t,i){!function(e){"use strict";e.defineLocale("se",{months:"oÄÄajagemánnu_guovvamánnu_njukÄamánnu_cuoÅománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_ÄakÄamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"oÄÄj_guov_njuk_cuo_mies_geas_suoi_borg_ÄakÄ_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maÅÅebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maÅ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maÅit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(5093))},3508:function(e,t,i){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}
2(i(5093))},3601:function(e,t,i){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"pÃ¥ dddd [kl.] LT",lastDay:"[i gÃ¥r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"fÃ¥ sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en mÃ¥ned",MM:"%d mÃ¥neder",y:"et Ã¥r",yy:"%d Ã¥r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(5093))},3635:function(e,t,i){!function(e){"use strict";e.defineLocale("cv",{months:"кÓÑлаÑ_наÑÓÑ_пÑÑ_ака_май_Ò«ÓÑÑме_ÑÑÓ_Ò«ÑÑла_авÓн_Ñпа_Ñӳк_ÑаÑÑав".split("_"),monthsShort:"кÓÑ_наÑ_пÑÑ_ака_май_Ò«ÓÑ_ÑÑÓ_Ò«ÑÑ_авн_Ñпа_Ñӳк_ÑаÑ".split("_"),weekdays:"вÑÑÑаÑникÑн_ÑÑнÑикÑн_ÑÑлаÑикÑн_ÑнкÑн_кÓҫнеÑникÑн_ÑÑнекÑн_ÑÓмаÑкÑн".split("_"),weekdaysShort:"вÑÑ_ÑÑн_ÑÑл_Ñн_кÓÒ«_ÑÑн_ÑÓм".split("_"),weekdaysMin:"вÑ_Ñн_ÑÑ_Ñн_кҫ_ÑÑ_Ñм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [Ò«ÑлÑ
и] MMMM [ÑйÓÑ
Óн] D[-мÓÑÓ]",LLL:"YYYY [Ò«ÑлÑ
и] MMMM [ÑйÓÑ
Óн] D[-мÓÑÓ], HH:mm",LLLL:"dddd, YYYY [Ò«ÑлÑ
и] MMMM [ÑйÓÑ
Óн] D[-мÓÑÓ], HH:mm"},calendar:{sameDay:"[ÐаÑн] LT [ÑеÑ
еÑÑе]",nextDay:"[ЫÑан] LT [ÑеÑ
еÑÑе]",lastDay:"[ÓнеÑ] LT [ÑеÑ
еÑÑе]",nextWeek:"[ҪиÑеÑ] dddd LT [ÑеÑ
еÑÑе]",lastWeek:"[ÐÑÑнÓ] dddd LT [ÑеÑ
еÑÑе]",sameElse:"L"},relativeTime:{future:function(e){return e+(/ÑеÑ
еÑ$/i.exec(e)?"Ñен":/Ò«Ñл$/i.exec(e)?"Ñан":"Ñан")},past:"%s каÑлла",s:"пÓÑ-ик ҫеккÑнÑ",ss:"%d ҫеккÑнÑ",m:"пÓÑ Ð¼Ð¸Ð½ÑÑ",mm:"%d минÑÑ",h:"пÓÑ ÑеÑ
еÑ",hh:"%d ÑеÑ
еÑ",d:"пÓÑ ÐºÑн",dd:"%d кÑн",M:"пÓÑ ÑйÓÑ
",MM:"%d ÑйÓÑ
",y:"пÓÑ Ò«Ñл",yy:"%d Ò«Ñл"},dayOfMonthOrdinalParse:/\d{1,2}-мÓÑ/,ordinal:"%d-мÓÑ",week:{dow:1,doy:7}})}(i(5093))},3673:function(e,t,i){e.exports=function(e,t,i){"use strict";const s=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",r=".sticky-top",n="padding-right",a="margin-right";class o{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,n,(t=>t+e)),this._setElementAttributes(s,n,(t=>t+e)),this._setElementAttributes(r,a,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,n),this._resetElementAttributes(s,n),this._resetElementAttributes(r,a)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const s=this.getWidth(),r=e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+s)return;this._saveInitialAttribute(e,t);const r=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${i(Number.parseFloat(r))}px`)};this._applyManipulationCallback(e,r)}_saveInitialAttribute(t,i){const s=t.style.getPropertyValue(i);s&&e.setDataAttribute(t,i,s)}_resetElementAttributes(t,i){const s=t=>{const s=e.getDataAttribute(t,i);null!==s?(e.removeDataAttribute(t,i),t.style.setProperty(i,s)):t.style.removeProperty(i)};this._applyManipulationCallback(t,s)}_applyManipulationCallback(e,s){if(i.isElement(e))s(e);else for(const i of t.find(e,this._element))s(i)}}return o}(i(2333),i(5411),i(4035))},3739:function(e,t,i){!function(e){"use strict";e.defineLocale("ml",{months:"à´à´¨àµà´µà´°à´¿_à´«àµà´¬àµà´°àµà´µà´°à´¿_മാർà´àµà´à
2µ_à´à´ªàµà´°à´¿àµ½_à´®àµà´¯àµ_à´àµàµº_à´àµà´²àµ_à´à´à´¸àµà´±àµà´±àµ_à´¸àµà´ªàµà´±àµà´±à´à´¬àµ¼_à´à´àµà´àµà´¬àµ¼_നവà´à´¬àµ¼_à´¡à´¿à´¸à´à´¬àµ¼".split("_"),monthsShort:"à´à´¨àµ._à´«àµà´¬àµà´°àµ._മാർ._à´à´ªàµà´°à´¿._à´®àµà´¯àµ_à´àµàµº_à´àµà´²àµ._à´à´._à´¸àµà´ªàµà´±àµà´±._à´à´àµà´àµ._നവà´._à´¡à´¿à´¸à´.".split("_"),monthsParseExact:!0,weekdays:"à´à´¾à´¯à´±à´¾à´´àµà´_തിà´àµà´à´³à´¾à´´àµà´_à´àµà´µàµà´µà´¾à´´àµà´_à´¬àµà´§à´¨à´¾à´´àµà´_à´µàµà´¯à´¾à´´à´¾à´´àµà´_à´µàµà´³àµà´³à´¿à´¯à´¾à´´àµà´_ശനിയാഴàµà´".split("_"),weekdaysShort:"à´à´¾à´¯àµ¼_തിà´àµà´àµ¾_à´àµà´µàµà´µ_à´¬àµà´§àµ»_à´µàµà´¯à´¾à´´à´_à´µàµà´³àµà´³à´¿_ശനി".split("_"),weekdaysMin:"à´à´¾_തി_à´àµ_à´¬àµ_à´µàµà´¯à´¾_à´µàµ_à´¶".split("_"),longDateFormat:{LT:"A h:mm -à´¨àµ",LTS:"A h:mm:ss -à´¨àµ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -à´¨àµ",LLLL:"dddd, D MMMM YYYY, A h:mm -à´¨àµ"},calendar:{sameDay:"[à´à´¨àµà´¨àµ] LT",nextDay:"[നാളàµ] LT",nextWeek:"dddd, LT",lastDay:"[à´à´¨àµà´¨à´²àµ] LT",lastWeek:"[à´à´´à´¿à´àµà´] dddd, LT",sameElse:"L"},relativeTime:{future:"%s à´à´´à´¿à´àµà´àµ",past:"%s à´®àµàµ»à´ªàµ",s:"à´
ൽപ നിമിഷà´àµà´àµ¾",ss:"%d à´¸àµà´àµà´àµ»à´¡àµ",m:"à´à´°àµ മിനിറàµà´±àµ",mm:"%d മിനിറàµà´±àµ",h:"à´à´°àµ മണിà´àµà´àµàµ¼",hh:"%d മണിà´àµà´àµàµ¼",d:"à´à´°àµ ദിവസà´",dd:"%d ദിവസà´",M:"à´à´°àµ മാസà´",MM:"%d മാസà´",y:"à´à´°àµ വർഷà´",yy:"%d വർഷà´"},meridiemParse:/രാതàµà´°à´¿|രാവിലàµ|à´à´àµà´ à´à´´à´¿à´àµà´àµ|à´µàµà´àµà´¨àµà´¨àµà´°à´|രാതàµà´°à´¿/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാതàµà´°à´¿"===t&&e>=4||"à´à´àµà´ à´à´´à´¿à´àµà´àµ"===t||"à´µàµà´àµà´¨àµà´¨àµà´°à´"===t?e+12:e},meridiem:function(e,t,i){return e<4?"രാതàµà´°à´¿":e<12?"രാവിലàµ":e<17?"à´à´àµà´ à´à´´à´¿à´àµà´àµ":e<20?"à´µàµà´àµà´¨àµà´¨àµà´°à´":"രാതàµà´°à´¿"}})}(i(5093))},3784:function(e,t,i){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),s=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?i[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(5093))},3827:function(e,t,i){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令å",narrow:"ã¿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"å¹³æ",narrow:"ã»",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"æå",narrow:"ã¼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大æ£",narrow:"ã½",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"ææ²»",narrow:"ã¾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西æ¦",n
2arrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"ç´å
å",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(å
|\d+)å¹´/,eraYearOrdinalParse:function(e,t){return"å
"===t[1]?1:parseInt(t[1]||e,10)},months:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),monthsShort:"1æ_2æ_3æ_4æ_5æ_6æ_7æ_8æ_9æ_10æ_11æ_12æ".split("_"),weekdays:"æ¥ææ¥_æææ¥_ç«ææ¥_æ°´ææ¥_æ¨ææ¥_éææ¥_åææ¥".split("_"),weekdaysShort:"æ¥_æ_ç«_æ°´_æ¨_é_å".split("_"),weekdaysMin:"æ¥_æ_ç«_æ°´_æ¨_é_å".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYYå¹´MæDæ¥",LLL:"YYYYå¹´MæDæ¥ HH:mm",LLLL:"YYYYå¹´MæDæ¥ dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYYå¹´MæDæ¥",lll:"YYYYå¹´MæDæ¥ HH:mm",llll:"YYYYå¹´MæDæ¥(ddd) HH:mm"},meridiemParse:/åå|åå¾/i,isPM:function(e){return"åå¾"===e},meridiem:function(e,t,i){return e<12?"åå":"åå¾"},calendar:{sameDay:"[仿¥] LT",nextDay:"[ææ¥] LT",nextWeek:function(e){return e.week()!==this.week()?"[æ¥é±]dddd LT":"dddd LT"},lastDay:"[æ¨æ¥] LT",lastWeek:function(e){return this.week()!==e.week()?"[å
é±]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}æ¥/,ordinal:function(e,t){switch(t){case"y":return 1===e?"å
å¹´":e+"å¹´";case"d":case"D":case"DDD":return e+"æ¥";default:return e}},relativeTime:{future:"%så¾",past:"%så",s:"æ°ç§",ss:"%dç§",m:"1å",mm:"%då",h:"1æé",hh:"%dæé",d:"1æ¥",dd:"%dæ¥",M:"1ã¶æ",MM:"%dã¶æ",y:"1å¹´",yy:"%då¹´"}})}(i(5093))},3837:(e,t,i)=>{"use strict";function s(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function r(e={},t={}){Object.keys(t).forEach((i=>{void 0===e[i]?e[i]=t[i]:s(t[i])&&s(e[i])&&Object.keys(t[i]).length>0&&r(e[i],t[i])}))}const n={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const e="undefined"!=typeof document?document:{};return r(e,n),e}const o={document:n,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function l(){const e="undefined"!=typeof window?window:{};return r(e,o),e}class d extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function h(e=[]){const t=[];return e.forEach((e=>{Array.isArray(e)?t.push(...h(e)):t.push(e)})),t}function c(e,t){return Array.prototype.filter.call(e,t)}function u(e,t){const i=l(),s=a();let r=[];if(!t&&e instanceof d)return e;if(!e)return new d(r);if("string"==typeof e){const i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){let e="div";0===i.indexOf("<li")&&(e="ul"),0===i.indexOf("<tr")&&(e="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(e="tr"),0===i.indexOf("<tbody")&&(e="table"),0===i.indexOf("<option")&&(e="select");const t=s.createElement(e);t.innerHTML=i;for(let e=0;e<t.childNodes.length;e+=1)r.push(t.childNodes[e])}else r=function(e,t){if("string"!=typeof e)return[e];const i=[],s=t.querySelectorAll(e);for(let e=0;e<s.length;e+=1)i.push(s[e]);return i}(e.trim(),t||s)}else if(e.nodeType||e===i||e===s)r.push(e);else if(Array.isArray(e)){if(e instanceof d)return e;r=e}return new d(function(e){const t=[];for(let i=0;i<e.length;
vendor: 5,418 bytes, line 2
2i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}(r))}u.fn=d.prototype;const f="resize scroll".split(" ");function m(e){return function(...t){if(void 0===t[0]){for(let t=0;t<this.length;t+=1)f.indexOf(e)<0&&(e in this[t]?this[t][e]():u(this[t]).trigger(e));return this}return this.on(e,...t)}}m("click"),m("blur"),m("focus"),m("focusin"),m("focusout"),m("keyup"),m("keydown"),m("keypress"),m("submit"),m("change"),m("mousedown"),m("mousemove"),m("mouseup"),m("mouseenter"),m("mouseleave"),m("mouseout"),m("mouseover"),m("touchstart"),m("touchend"),m("touchmove"),m("resize"),m("scroll");const p={addClass:function(...e){const t=h(e.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.add(...t)})),this},removeClass:function(...e){const t=h(e.map((e=>e.split(" "))));return this.forEach((e=>{e.classList.remove(...t)})),this},hasClass:function(...e){const t=h(e.map((e=>e.split(" "))));return c(this,(e=>t.filter((t=>e.classList.contains(t))).length>0)).length>0},toggleClass:function(...e){const t=h(e.map((e=>e.split(" "))));this.forEach((e=>{t.forEach((t=>{e.classList.toggle(t)}))}))},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(e,t);else for(const t in e)this[i][t]=e[t],this[i].setAttribute(t,e[t]);return this},removeAttr:function(e){for(let t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},transform:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transform=e;return this},transition:function(e){for(let t=0;t<this.length;t+=1)this[t].style.transitionDuration="string"!=typeof e?`${e}ms`:e;return this},on:function(...e){let[t,i,s,r]=e;function n(e){const t=e.target;if(!t)return;const r=e.target.dom7EventData||[];if(r.indexOf(e)<0&&r.unshift(e),u(t).is(i))s.apply(t,r);else{const e=u(t).parents();for(let t=0;t<e.length;t+=1)u(e[t]).is(i)&&s.apply(e[t],r)}}function a(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),s.apply(this,t)}"function"==typeof e[1]&&([t,s,r]=e,i=void 0),r||(r=!1);const o=t.split(" ");let l;for(let e=0;e<this.length;e+=1){const t=this[e];if(i)for(l=0;l<o.length;l+=1){const e=o[l];t.dom7LiveListeners||(t.dom7LiveListeners={}),t.dom7LiveListeners[e]||(t.dom7LiveListeners[e]=[]),t.dom7LiveListeners[e].push({listener:s,proxyListener:n}),t.addEventListener(e,n,r)}else for(l=0;l<o.length;l+=1){const e=o[l];t.dom7Listeners||(t.dom7Listeners={}),t.dom7Listeners[e]||(t.dom7Listeners[e]=[]),t.dom7Listeners[e].push({listener:s,proxyListener:a}),t.addEventListener(e,a,r)}}return this},off:function(...e){let[t,i,s,r]=e;"function"==typeof e[1]&&([t,s,r]=e,i=void 0),r||(r=!1);const n=t.split(" ");for(let e=0;e<n.length;e+=1){const t=n[e];for(let e=0;e<this.length;e+=1){const n=this[e];let a;if(!i&&n.dom7Listeners?a=n.dom7Listeners[t]:i&&n.dom7LiveListeners&&(a=n.dom7LiveListeners[t]),a&&a.length)for(let e=a.length-1;e>=0;e-=1){const i=a[e];s&&i.listener===s||s&&i.listener&&i.listener.dom7proxy&&i.listener.dom7proxy===s?(n.removeEventListener(t,i.proxyListener,r),a.splice(e,1)):s||(n.removeEventListener(t,i.proxyListener,r),a.splice(e,1))}}}return this},trigger:function(...e){const t=l(),i=e[0].split(" "),s=e[1];for(let r=0;r<i.length;r+=1){const n=i[r];for(let i=0;i<this.length;i+=1){const r=this[i];if(t.CustomEvent){const i=new t.CustomEvent(n,{detail:s,bubbles:!0,cancelable:!0});r.dom7EventData=e.filter(((e,t)=>t>0)),r.dispatchEvent(i),r.dom7EventData=[],delete r.dom7EventData}}}return this},transitionEnd:function(e){const t=this;return e&&t.on("transitionend",(function i(s){s.target===this&&(e.call(this,s),t.off("transitionend",i))})),this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const e=l();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const e=l(),t=a(),i=this[0],s=i.getBoundingClientRect(),r=t.body,n=i.clientTop||r.clientTop||0,o=i.clientLeft||r.clientLeft||0,d=i===e?e.scrollY:i.scrollTop,h=i===e?e.scrollX:i.scrollLeft;return{top:s.top+d-n,left:s.left+h-o}}return null},css:function(e,t){const i=l();let s;if(1===arguments.length){if("string"!=typeof e){for(s=0;s<this.length;s+=1)for(const t in e)this[s].style[t]=e[t];return this}if(this[0])return i.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(s=0;s<this.length;s+=1)this[s].style[e]=t;return this}return this},each:function(e){return e?(this.forEach(((t,i)=>{e.apply(t,[t,i])})),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(let t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(e){const t=l(),i=a(),s=this[0];let r,n;if(!s||void 0===e)return!1;if("string"==typeof e){if(s.matches)return s.matches(e);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(e);
vendor: 23,220 bytes, line 2
2if(s.msMatchesSelector)return s.msMatchesSelector(e);for(r=u(e),n=0;n<r.length;n+=1)if(r[n]===s)return!0;return!1}if(e===i)return s===i;if(e===t)return s===t;if(e.nodeType||e instanceof d){for(r=e.nodeType?[e]:e,n=0;n<r.length;n+=1)if(r[n]===s)return!0;return!1}return!1},index:function(){let e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;const t=this.length;if(e>t-1)return u([]);if(e<0){const i=t+e;return u(i<0?[]:[this[i]])}return u([this[e]])},append:function(...e){let t;const i=a();for(let s=0;s<e.length;s+=1){t=e[s];for(let e=0;e<this.length;e+=1)if("string"==typeof t){const s=i.createElement("div");for(s.innerHTML=t;s.firstChild;)this[e].appendChild(s.firstChild)}else if(t instanceof d)for(let i=0;i<t.length;i+=1)this[e].appendChild(t[i]);else this[e].appendChild(t)}return this},prepend:function(e){const t=a();let i,s;for(i=0;i<this.length;i+=1)if("string"==typeof e){const r=t.createElement("div");for(r.innerHTML=e,s=r.childNodes.length-1;s>=0;s-=1)this[i].insertBefore(r.childNodes[s],this[i].childNodes[0])}else if(e instanceof d)for(s=0;s<e.length;s+=1)this[i].insertBefore(e[s],this[i].childNodes[0]);else this[i].insertBefore(e,this[i].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&u(this[0].nextElementSibling).is(e)?u([this[0].nextElementSibling]):u([]):this[0].nextElementSibling?u([this[0].nextElementSibling]):u([]):u([])},nextAll:function(e){const t=[];let i=this[0];if(!i)return u([]);for(;i.nextElementSibling;){const s=i.nextElementSibling;e?u(s).is(e)&&t.push(s):t.push(s),i=s}return u(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&u(t.previousElementSibling).is(e)?u([t.previousElementSibling]):u([]):t.previousElementSibling?u([t.previousElementSibling]):u([])}return u([])},prevAll:function(e){const t=[];let i=this[0];if(!i)return u([]);for(;i.previousElementSibling;){const s=i.previousElementSibling;e?u(s).is(e)&&t.push(s):t.push(s),i=s}return u(t)},parent:function(e){const t=[];for(let i=0;i<this.length;i+=1)null!==this[i].parentNode&&(e?u(this[i].parentNode).is(e)&&t.push(this[i].parentNode):t.push(this[i].parentNode));return u(t)},parents:function(e){const t=[];for(let i=0;i<this.length;i+=1){let s=this[i].parentNode;for(;s;)e?u(s).is(e)&&t.push(s):t.push(s),s=s.parentNode}return u(t)},closest:function(e){let t=this;return void 0===e?u([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){const t=[];for(let i=0;i<this.length;i+=1){const s=this[i].querySelectorAll(e);for(let e=0;e<s.length;e+=1)t.push(s[e])}return u(t)},children:function(e){const t=[];for(let i=0;i<this.length;i+=1){const s=this[i].children;for(let i=0;i<s.length;i+=1)e&&!u(s[i]).is(e)||t.push(s[i])}return u(t)},filter:function(e){return u(c(this,e))},remove:function(){for(let e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}};Object.keys(p).forEach((e=>{Object.defineProperty(u.fn,e,{value:p[e],writable:!0})}));const g=u;function y(e,t=0){return setTimeout(e,t)}function _(){return Date.now()}function v(e,t="x"){const i=l();let s,r,n;const a=function(e){const t=l();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}(e);return i.WebKitCSSMatrix?(r=a.transform||a.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map((e=>e.replace(",","."))).join(", ")),n=new i.WebKitCSSMatrix("none"===r?"":r)):(n=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=n.toString().split(",")),"x"===t&&(r=i.WebKitCSSMatrix?n.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===t&&(r=i.WebKitCSSMatrix?n.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),r||0}function b(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function w(...e){const t=Object(e[0]),i=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const n=e[r];if(null!=n&&(s=n,!("undefined"!=typeof window&&void 0!==window.HTMLElement?s instanceof HTMLElement:s&&(1===s.nodeType||11===s.nodeType)))){const e=Object.keys(Object(n)).filter((e=>i.indexOf(e)<0));for(let i=0,s=e.length;i<s;i+=1){const s=e[i],r=Object.getOwnPropertyDescriptor(n,s);void 0!==r&&r.enumerable&&(b(t[s])&&b(n[s])?n[s].__swiper__?t[s]=n[s]:w(t[s],n[s]):!b(t[s])&&b(n[s])?(t[s]={},n[s].__swiper__?t[s]=n[s]:w(t[s],n[s])):t[s]=n[s])}}}var s;return t}function T(e,t,i){e.style.setProperty(t,i)}function M({swiper:e,targetPosition:t,side:i}){const s=l(),r=-e.translate;let n,a=null;const o=e.params.speed;e.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(e.cssModeFrameID);const d=t>r?"next":"prev",h=(e,t)=>"next"===d&&e>=t||"prev"===d&&e<=t,c=()=>{n=(new Date).getTime(),null===a&&(a=n);const l=Math.max(Math.min((n-a)/o,1),0),d=.5-Math.cos(l*Math.PI)/2;let u=r+d*(t-r);if(h(u,t)&&(u=t),e.wrapperEl.scrollTo({[i]:u}),h(u,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout((()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[i]:u})})),void s.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=s.requestAnimationFrame(c)};c()}let S,L,k;function E(){return S||(S=function(){const e=l(),t=a();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{const i=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,i)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),S}function D(e={}){return L||(L=function({userAgent:e}={}){const t=E(),i=l(),s=i.navigator.platform,r=e||i.navigator.userAgent,n={ios:!1,android:!1},a=i.screen.width,o=i.screen.height,d=r.match(/(Android);?[\s\/]+([\d.]+)?/);let h=r.match(/(iPad).*OS\s([\d_]+)/);const c=r.match(/(iPod)(.*OS\s([\d_]+))?/),u=!h&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===s;let m="MacIntel"===s;return!h&&m&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${o}`)>=0&&(h=r.match(/(Version)\/([\d.]+)/),h||(h=[0,1,"13_0_0"]),m=!1),d&&!f&&(n.os="android",n.android=!0),(h||u||c)&&(n.os="ios",n.ios=!0),n}(e)),L}function x(){return k||(k=function(){const e=l();return{isSafari:function(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),k}const A={on(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;const r=i?"unshift":"push";return e.split(" ").forEach((e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][r](t)})),s},once(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;function r(...i){s.off(e,r),r.__emitterProxy&&delete r.__emitterProxy,t.apply(s,i)}return r.__emitterProxy=t,s.on(e,r,i)},onAny(e,t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof e)return i;const s=t?"unshift":"push";return i.eventsAnyListeners.indexOf(e)<0&&i.eventsAnyListeners[s](e),i},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const i=t.eventsAnyListeners.indexOf(e);return i>=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return!i.eventsListeners||i.destroyed?i:i.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach(((s,r)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&i.eventsListeners[e].splice(r,1)}))})),i):i},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let i,s,r;"string"==typeof e[0]||Array.isArray(e[0])?(i=e[0],s=e.slice(1,e.length),r=t):(i=e[0].events,s=e[0].data,r=e[0].context||t),s.unshift(r);return(Array.isArray(i)?i:i.split(" ")).forEach((e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach((t=>{t.apply(r,[e,...s])})),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach((e=>{e.apply(r,s)}))})),t}};const P={updateSize:function(){const e=this;let t,i;const s=e.$el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:s[0].clientWidth,i=void 0!==e.params.height&&null!==e.params.height?e.params.height:s[0].clientHeight,0===t&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(s.css("padding-left")||0,10)-parseInt(s.css("padding-right")||0,10),i=i-parseInt(s.css("padding-top")||0,10)-parseInt(s.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{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"}[t]}function i(e,i){return parseFloat(e.getPropertyValue(t(i))||0)}const s=e.params,{$wrapperEl:r,size:n,rtlTranslate:a,wrongRTL:o}=e,l=e.virtual&&s.virtual.enabled,d=l?e.virtual.slides.length:e.slides.length,h=r.children(`.${e.params.slideClass}`),c=l?e.virtual.slides.length:h.length;let u=[];const f=[],m=[];let p=s.slidesOffsetBefore;"function"==typeof p&&(p=s.slidesOffsetBefore.call(e));let g=s.slidesOffsetAfter;"function"==typeof g&&(g=s.slidesOffsetAfter.call(e));const y=e.snapGrid.length,_=e.slidesGrid.length;let v=s.spaceBetween,b=-p,w=0,M=0;if(void 0===n)return;"string"==typeof v&&v.indexOf("%")>=0&&(v=parseFloat(v.replace("%",""))/100*n),e.virtualSize=-v,a?h.css({marginLeft:"",marginBottom:"",marginTop:""}):h.css({marginRight:"",marginBottom:"",marginTop:""}),s.centeredSlides&&s.cssMode&&(T(e.wrapperEl,"--swiper-centered-offset-before",""),T(e.wrapperEl,"--swiper-centered-offset-after",""));const S=s.grid&&s.grid.rows>1&&e.grid;let L;S&&e.grid.initSlides(c);const k="auto"===s.slidesPerView&&s.breakpoints&&Object.keys(s.breakpoints).filter((e=>void 0!==s.breakpoints[e].slidesPerView)).length>0;for(let r=0;r<c;r+=1){L=0;const a=h.eq(r);if(S&&e.grid.updateSlide(r,a,c,t),"none"!==a.css("display")){if("auto"===s.slidesPerView){k&&(h[r].style[t("width")]="");const n=getComputedStyle(a[0]),o=a[0].style.transform,l=a[0].style.webkitTransform;if(o&&(a[0].style.transform="none"),l&&(a[0].style.webkitTransform="none"),s.roundLengths)L=e.isHorizontal()?a.outerWidth(!0):a.outerHeight(!0);else{const e=i(n,"width"),t=i(n,"padding-left"),s=i(n,"padding-right"),r=i(n,"margin-left"),o=i(n,"margin-right"),l=n.getPropertyValue("box-sizing");if(l&&"border-box"===l)L=e+r+o;else{const{clientWidth:i,offsetWidth:n}=a[0];L=e+t+s+r+o+(n-i)}}o&&(a[0].style.transform=o),l&&(a[0].style.webkitTransform=l),s.roundLengths&&(L=Math.floor(L))}else L=(n-(s.slidesPerView-1)*v)/s.slidesPerView,s.roundLengths&&(L=Math.floor(L)),h[r]&&(h[r].style[t("width")]=`${L}px`);h[r]&&(h[r].swiperSlideSize=L),m.push(L),s.centeredSlides?(b=b+L/2+w/2+v,0===w&&0!==r&&(b=b-n/2-v),0===r&&(b=b-n/2-v),Math.abs(b)<.001&&(b=0),s.roundLengths&&(b=Math.floor(b)),M%s.slidesPerGroup==0&&u.push(b),f.push(b)):(s.roundLengths&&(b=Math.floor(b)),(M-Math.min(e.params.slidesPerGroupSkip,M))%e.params.slidesPerGroup==0&&u.push(b),f.push(b),b=b+L+v),e.virtualSize+=L+v,w=L,M+=1}}if(e.virtualSize=Math.max(e.virtualSize,n)+g,a&&o&&("slide"===s.effect||"coverflow"===s.effect)&&r.css({width:`${e.virtualSize+s.spaceBetween}px`}),s.setWrapperSize&&r.css({[t("width")]:`${e.virtualSize+s.spaceBetween}px`}),S&&e.grid.updateWrapperSize(L,u,t),!s.centeredSlides){const t=[];for(let i=0;i<u.length;i+=1){let r=u[i];s.roundLengths&&(r=Math.floor(r)),u[i]<=e.virtualSize-n&&t.push(r)}u=t,Math.floor(e.virtualSize-n)-Math.floor(u[u.length-1])>1&&u.push(e.virtualSize-n)}if(0===u.length&&(u=[0]),0!==s.spaceBetween){const i=e.isHorizontal()&&a?"marginLeft":t("marginRight");h.filter(((e,t)=>!s.cssMode||t!==h.length-1)).css({[i]:`${v}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let e=0;m.forEach((t=>{e+=t+(s.spaceBetween?s.spaceBetween:0)})),e-=s.spaceBetween;const t=e-n;u=u.map((e=>e<0?-p:e>t?t+g:e))}if(s.centerInsufficientSlides){let e=0;if(m.forEach((t=>{e+=t+(s.spaceBetween?s.spaceBetween:0)})),e-=s.spaceBetween,e<n){const t=(n-e)/2;u.forEach(((e,i)=>{u[i]=e-t})),f.forEach(((e,i)=>{f[i]=e+t}))}}if(Object.assign(e,{slides:h,snapGrid:u,slidesGrid:f,slidesSizesGrid:m}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){T(e.wrapperEl,"--swiper-centered-offset-before",-u[0]+"px"),T(e.wrapperEl,"--swiper-centered-offset-after",e.size/2-m[m.length-1]/2+"px");const t=-e.snapGrid[0],i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+i))}if(c!==d&&e.emit("slidesLengthChange"),u.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==_&&e.emit("slidesGridLengthChange"),s.watchSlidesProgress&&e.updateSlidesOffset(),!(l||s.cssMode||"slide"!==s.effect&&"fade"!==s.effect)){const t=`${s.containerModifierClass}backface-hidden`,i=e.$el.hasClass(t);c<=s.maxBackfaceHiddenSlides?i||e.$el.addClass(t):i&&e.$el.removeClass(t)}},updateAutoHeight:function(e){const t=this,i=[],s=t.virtual&&t.params.virtual.enabled;let r,n=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>s?t.slides.filter((t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e))[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||g([])).each((e=>{i.push(e)}));else for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const e=t.activeIndex+r;if(e>t.slides.length&&!s)break;i.push(a(e))}else i.push(a(t.activeIndex));for(r=0;r<i.length;r+=1)if(void 0!==i[r]){const e=i[r].offsetHeight;n=e>n?e:n}(n||0===n)&&t.$wrapperEl.css("height",`${n}px`)},updateSlidesOffset:function(){const e=this,t=e.slides;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,i=t.params,{slides:s,rtlTranslate:r,snapGrid:n}=t;if(0===s.length)return;void 0===s[0].swiperSlideOffset&&t.updateSlidesOffset();let a=-e;r&&(a=e),s.removeClass(i.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let e=0;e<s.length;e+=1){const o=s[e];let l=o.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(l-=s[0].swiperSlideOffset);const d=(a+(i.centeredSlides?t.minTranslate():0)-l)/(o.swiperSlideSize+i.spaceBetween),h=(a-n[0]+(i.centeredSlides?t.minTranslate():0)-l)/(o.swiperSlideSize+i.spaceBetween),c=-(a-l),u=c+t.slidesSizesGrid[e];(c>=0&&c<t.size-1||u>1&&u<=t.size||c<=0&&u>=t.size)&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(e),s.eq(e).addClass(i.slideVisibleClass)),o.progress=r?-d:d,o.originalProgress=r?-h:h}t.visibleSlides=g(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:n,isEnd:a}=t;const o=n,l=a;0===s?(r=0,n=!0,a=!0):(r=(e-t.minTranslate())/s,n=r<=0,a=r>=1),Object.assign(t,{progress:r,isBeginning:n,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),n&&!o&&t.emit("reachBeginning toEdge"),a&&!l&&t.emit("reachEnd toEdge"),(o&&!n||l&&!a)&&t.emit("fromEdge"),t.emit("progress",r)},updateSlidesClasses:function(){const e=this,{slides:t,params:i,$wrapperEl:s,activeIndex:r,realIndex:n}=e,a=e.virtual&&i.virtual.enabled;let o;t.removeClass(`${i.slideActiveClass} ${i.slideNextClass} ${i.slidePrevClass} ${i.slideDuplicateActiveClass} ${i.slideDuplicateNextClass} ${i.slideDuplicatePrevClass}`),o=a?e.$wrapperEl.find(`.${i.slideClass}[data-swiper-slide-index="${r}"]`):t.eq(r),o.addClass(i.slideActiveClass),i.loop&&(o.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${n}"]`).addClass(i.slideDuplicateActiveClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${n}"]`).addClass(i.slideDuplicateActiveClass));let l=o.nextAll(`.${i.slideClass}`).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=t.eq(0),l.addClass(i.slideNextClass));let d=o.prevAll(`.${i.slideClass}`).eq(0).addClass(i.slidePrevClass);i.loop&&0===d.length&&(d=t.eq(-1),d.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass),d.hasClass(i.slideDuplicateClass)?s.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass):s.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:s,snapGrid:r,params:n,activeIndex:a,realIndex:o,snapIndex:l}=t;let d,h=e;if(void 0===h){for(let e=0;e<s.length;e+=1)void 0!==s[e+1]?i>=s[e]&&i<s[e+1]-(s[e+1]-s[e])/2?h=e:i>=s[e]&&i<s[e+1]&&(h=e+1):i>=s[e]&&(h=e);n.normalizeSlideIndex&&(h<0||void 0===h)&&(h=0)}if(r.indexOf(i)>=0)d=r.indexOf(i);else{const e=Math.min(n.slidesPerGroupSkip,h);d=e+Math.floor((h-e)/n.slidesPerGroup)}if(d>=r.length&&(d=r.length-1),h===a)return void(d!==l&&(t.snapIndex=d,t.emit("snapIndexChange")));const c=parseInt(t.slides.eq(h).attr("data-swiper-slide-index")||h,10);Object.assign(t,{snapIndex:d,realIndex:c,previousIndex:a,activeIndex:h}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),o!==c&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,i=t.params,s=g(e).closest(`.${i.slideClass}`)[0];let r,n=!1;if(s)for(let e=0;e<t.slides.length;e+=1)if(t.slides[e]===s){n=!0,r=e;break}if(!s||!n)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=s,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(g(s).attr("data-swiper-slide-index"),10):t.clickedIndex=r,i.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}};const C={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:i,translate:s,$wrapperEl:r}=this;if(t.virtualTranslate)return i?-s:s;if(t.cssMode)return s;let n=v(r[0],e);return i&&(n=-n),n||0},setTranslate:function(e,t){const i=this,{rtlTranslate:s,params:r,$wrapperEl:n,wrapperEl:a,progress:o}=i;let l,d=0,h=0;i.isHorizontal()?d=s?-e:e:h=e,r.roundLengths&&(d=Math.floor(d),h=Math.floor(h)),r.cssMode?a[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-d:-h:r.virtualTranslate||n.transform(`translate3d(${d}px, ${h}px, 0px)`),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?d:h;const c=i.maxTranslate()-i.minTranslate();l=0===c?0:(e-i.minTranslate())/c,l!==o&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,i=!0,s=!0,r){const n=this,{params:a,wrapperEl:o}=n;if(n.animating&&a.preventInteractionOnTransition)return!1;const l=n.minTranslate(),d=n.maxTranslate();let h;if(h=s&&e>l?l:s&&e<d?d:e,n.updateProgress(h),a.cssMode){const e=n.isHorizontal();if(0===t)o[e?"scrollLeft":"scrollTop"]=-h;else{if(!n.support.smoothScroll)return M({swiper:n,targetPosition:-h,side:e?"left":"top"}),!0;o.scrollTo({[e?"left":"top"]:-h,behavior:"smooth"})}return!0}return 0===t?(n.setTransition(0),n.setTranslate(h),i&&(n.emit("beforeTransitionStart",t,r),n.emit("transitionEnd"))):(n.setTransition(t),n.setTranslate(h),i&&(n.emit("beforeTransitionStart",t,r),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(e){n&&!n.destroyed&&e.target===this&&(n.$wrapperEl[0].removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.$wrapperEl[0].removeEventListener("webkitTransitionEnd",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,i&&n.emit("transitionEnd"))}),n.$wrapperEl[0].addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.$wrapperEl[0].addEventListener("webkitTransitionEnd",n.onTranslateToWrapperTransitionEnd))),!0}};function I({swiper:e,runCallbacks:t,direction:i,step:s}){const{activeIndex:r,previousIndex:n}=e;let a=i;if(a||(a=r>n?"next":r<n?"prev":"reset"),e.emit(`transition${s}`),t&&r!==n){if("reset"===a)return void e.emit(`slideResetTransition${s}`);e.emit(`slideChangeTransition${s}`),"next"===a?e.emit(`slideNextTransition${s}`):e.emit(`slidePrevTransition${s}`)}}const R={slideTo:function(e=0,t=this.params.speed,i=!0,s,r){if("number"!=typeof e&&"string"!=typeof e)throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`);if("string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const n=this;let a=e;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:d,previousIndex:h,activeIndex:c,rtlTranslate:u,wrapperEl:f,enabled:m}=n;if(n.animating&&o.preventInteractionOnTransition||!m&&!s&&!r)return!1;const p=Math.min(n.params.slidesPerGroupSkip,a);let g=p+Math.floor((a-p)/n.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const y=-l[g];if(o.normalizeSlideIndex)for(let e=0;e<d.length;e+=1){const t=-Math.floor(100*y),i=Math.floor(100*d[e]),s=Math.floor(100*d[e+1]);void 0!==d[e+1]?t>=i&&t<s-(s-i)/2?a=e:t>=i&&t<s&&(a=e+1):t>=i&&(a=e)}if(n.initialized&&a!==c){if(!n.allowSlideNext&&y<n.translate&&y<n.minTranslate())return!1;if(!n.allowSlidePrev&&y>n.translate&&y>n.maxTranslate()&&(c||0)!==a)return!1}let _;if(a!==(h||0)&&i&&n.emit("beforeSlideChangeStart"),n.updateProgress(y),_=a>c?"next":a<c?"prev":"reset",u&&-y===n.translate||!u&&y===n.translate)return n.updateActiveIndex(a),o.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),"slide"!==o.effect&&n.setTranslate(y),"reset"!==_&&(n.transitionStart(i,_),n.transitionEnd(i,_)),!1;if(o.cssMode){const e=n.isHorizontal(),i=u?y:-y;if(0===t){const t=n.virtual&&n.params.virtual.enabled;t&&(n.wrapperEl.style.scrollSnapType="none",n._immediateVirtual=!0),f[e?"scrollLeft":"scrollTop"]=i,t&&requestAnimationFrame((()=>{n.wrapperEl.style.scrollSnapType="",n._swiperImmediateVirtual=!1}))}else{if(!n.support.smoothScroll)return M({swiper:n,targetPosition:i,side:e?"left"
2:"top"}),!0;f.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return n.setTransition(t),n.setTranslate(y),n.updateActiveIndex(a),n.updateSlidesClasses(),n.emit("beforeTransitionStart",t,s),n.transitionStart(i,_),0===t?n.transitionEnd(i,_):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(e){n&&!n.destroyed&&e.target===this&&(n.$wrapperEl[0].removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.$wrapperEl[0].removeEventListener("webkitTransitionEnd",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(i,_))}),n.$wrapperEl[0].addEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.$wrapperEl[0].addEventListener("webkitTransitionEnd",n.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t=this.params.speed,i=!0,s){if("string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const r=this;let n=e;return r.params.loop&&(n+=r.loopedSlides),r.slideTo(n,t,i,s)},slideNext:function(e=this.params.speed,t=!0,i){const s=this,{animating:r,enabled:n,params:a}=s;if(!n)return s;let o=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(o=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex<a.slidesPerGroupSkip?1:o;if(a.loop){if(r&&a.loopPreventsSlide)return!1;s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft}return a.rewind&&s.isEnd?s.slideTo(0,e,t,i):s.slideTo(s.activeIndex+l,e,t,i)},slidePrev:function(e=this.params.speed,t=!0,i){const s=this,{params:r,animating:n,snapGrid:a,slidesGrid:o,rtlTranslate:l,enabled:d}=s;if(!d)return s;if(r.loop){if(n&&r.loopPreventsSlide)return!1;s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft}function h(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const c=h(l?s.translate:-s.translate),u=a.map((e=>h(e)));let f=a[u.indexOf(c)-1];if(void 0===f&&r.cssMode){let e;a.forEach(((t,i)=>{c>=t&&(e=i)})),void 0!==e&&(f=a[e>0?e-1:e])}let m=0;if(void 0!==f&&(m=o.indexOf(f),m<0&&(m=s.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(m=m-s.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),r.rewind&&s.isBeginning){const r=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(r,e,t,i)}return s.slideTo(m,e,t,i)},slideReset:function(e=this.params.speed,t=!0,i){return this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e=this.params.speed,t=!0,i,s=.5){const r=this;let n=r.activeIndex;const a=Math.min(r.params.slidesPerGroupSkip,n),o=a+Math.floor((n-a)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[o]){const e=r.snapGrid[o];l-e>(r.snapGrid[o+1]-e)*s&&(n+=r.params.slidesPerGroup)}else{const e=r.snapGrid[o-1];l-e<=(r.snapGrid[o]-e)*s&&(n-=r.params.slidesPerGroup)}return n=Math.max(n,0),n=Math.min(n,r.slidesGrid.length-1),r.slideTo(n,e,t,i)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:i}=e,s="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let r,n=e.clickedIndex;if(t.loop){if(e.animating)return;r=parseInt(g(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?n<e.loopedSlides-s/2||n>e.slides.length-e.loopedSlides+s/2?(e.loopFix(),n=i.children(`.${t.slideClass}[data-swiper-slide-index="${r}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),y((()=>{e.slideTo(n)}))):e.slideTo(n):n>e.slides.length-s?(e.loopFix(),n=i.children(`.${t.slideClass}[data-swiper-slide-index="${r}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),y((()=>{e.slideTo(n)}))):e.slideTo(n)}else e.slideTo(n)}};const O={loopCreate:function(){const e=this,t=a(),{params:i,$wrapperEl:s}=e,r=s.children().length>0?g(s.children()[0].parentNode):s;r.children(`.${i.slideClass}.${i.slideDuplicateClass}`).remove();let n=r.children(`.${i.slideClass}`);if(i.loopFillGroupWithBlank){const e=i.slidesPerGroup-n.length%i.slidesPerGroup;if(e!==i.slidesPerGroup){for(let s=0;s<e;s+=1){const e=g(t.createElement("div")).addClass(`${i.slideClass} ${i.slideBlankClass}`);r.append(e)}n=r.children(`.${i.slideClass}`)}}"auto"!==i.slidesPerView||i.loopedSlides||(i.loopedSlides=n.length),e.loopedSlides=Math.ceil(parseFloat(i.loopedSlides||i.slidesPerView,10)),e.loopedSlides+=i.loopAdditionalSlides,e.loopedSlides>n.length&&e.params.loopedSlidesLimit&&(e.loopedSlides=n.length);const o=[],l=[];n.each(((e,t)=>{g(e).attr("data-swiper-slide-index",t)}));for(let t=0;t<e.loopedSlides;t+=1){const e=t-Math.floor(t/n.length)*n.length;l.push(n.eq(e)[0]),o.unshift(n.eq(n.length-e-1)[0])}for(let e=0;e<l.length;e+=1)r.append(g(l[e].cloneNode(!0)).addClass(i.slideDuplicateClass));for(let e=o.length-1;e>=0;e-=1)r.prepend(g(o[e].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:i,loopedSlides:s,allowSlidePrev:r,allowSlideNext:n,snapGrid:a,rtlTranslate:o}=e;let l;e.allowSlidePrev=!0,e.allowSlideNext=!0;const d=-a[t]-e.getTranslate();if(t<s){l=i.length-3*s+t,l+=s;e.slideTo(l,0,!1,!0)&&0!==d&&e.setTranslate((o?-e.translate:e.translate)-d)}else if(t>=i.length-s){l=-i.length+t+s,l+=s;e.slideTo(l,0,!1,!0)&&0!==d&&e.setTranslate((o?-e.translate:e.translate)-d)}e.allowSlidePrev=r,e.allowSlideNext=n,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:i}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),i.removeAttr("data-swiper-slide-index")}};function Y(e){const t=this,i=a(),s=l(),r=t.touchEventsData,{params:n,touches:o,enabled:d}=t;if(!d)return;if(t.animating&&n.preventInteractionOnTransition)return;!t.animating&&n.cssMode&&n.loop&&t.loopFix();let h=e;h.originalEvent&&(h=h.originalEvent);let c=g(h.target);if("wrapper"===n.touchEventsTarget&&!c.closest(t.wrapperEl).length)return;if(r.isTouchEvent="touchstart"===h.type,!r.isTouchEvent&&"which"in h&&3===h.which)return;if(!r.isTouchEvent&&"button"in h&&h.button>0)return;if(r.isTouched&&r.isMoved)return;const u=!!n.noSwipingClass&&""!==n.noSwipingClass,f=e.composedPath?e.composedPath():e.path;u&&h.target&&h.target.shadowRoot&&f&&(c=g(f[0]));const m=n.noSwipingSelector?n.noSwipingSelector:`.${n.noSwipingClass}`,p=!(!h.target||!h.target.shadowRoot);if(n.noSwiping&&(p?function(e,t=this){return function t(i){if(!i||i===a()||i===l())return null;i.assignedSlot&&(i=i.assignedSlot);
vendor: 21,952 bytes, line 2
2const s=i.closest(e);return s||i.getRootNode?s||t(i.getRootNode().host):null}(t)}(m,c[0]):c.closest(m)[0]))return void(t.allowClick=!0);if(n.swipeHandler&&!c.closest(n.swipeHandler)[0])return;o.currentX="touchstart"===h.type?h.targetTouches[0].pageX:h.pageX,o.currentY="touchstart"===h.type?h.targetTouches[0].pageY:h.pageY;const y=o.currentX,v=o.currentY,b=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,w=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(b&&(y<=w||y>=s.innerWidth-w)){if("prevent"!==b)return;e.preventDefault()}if(Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=y,o.startY=v,r.touchStartTime=_(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,n.threshold>0&&(r.allowThresholdMove=!1),"touchstart"!==h.type){let e=!0;c.is(r.focusableElements)&&(e=!1,"SELECT"===c[0].nodeName&&(r.isTouched=!1)),i.activeElement&&g(i.activeElement).is(r.focusableElements)&&i.activeElement!==c[0]&&i.activeElement.blur();const s=e&&t.allowTouchMove&&n.touchStartPreventDefault;!n.touchStartForcePreventDefault&&!s||c[0].isContentEditable||h.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!n.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",h)}function F(e){const t=a(),i=this,s=i.touchEventsData,{params:r,touches:n,rtlTranslate:o,enabled:l}=i;if(!l)return;let d=e;if(d.originalEvent&&(d=d.originalEvent),!s.isTouched)return void(s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",d));if(s.isTouchEvent&&"touchmove"!==d.type)return;const h="touchmove"===d.type&&d.targetTouches&&(d.targetTouches[0]||d.changedTouches[0]),c="touchmove"===d.type?h.pageX:d.pageX,u="touchmove"===d.type?h.pageY:d.pageY;if(d.preventedByNestedSwiper)return n.startX=c,void(n.startY=u);if(!i.allowTouchMove)return g(d.target).is(s.focusableElements)||(i.allowClick=!1),void(s.isTouched&&(Object.assign(n,{startX:c,startY:u,currentX:c,currentY:u}),s.touchStartTime=_()));if(s.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(i.isVertical()){if(u<n.startY&&i.translate<=i.maxTranslate()||u>n.startY&&i.translate>=i.minTranslate())return s.isTouched=!1,void(s.isMoved=!1)}else if(c<n.startX&&i.translate<=i.maxTranslate()||c>n.startX&&i.translate>=i.minTranslate())return;if(s.isTouchEvent&&t.activeElement&&d.target===t.activeElement&&g(d.target).is(s.focusableElements))return s.isMoved=!0,void(i.allowClick=!1);if(s.allowTouchCallbacks&&i.emit("touchMove",d),d.targetTouches&&d.targetTouches.length>1)return;n.currentX=c,n.currentY=u;const f=n.currentX-n.startX,m=n.currentY-n.startY;if(i.params.threshold&&Math.sqrt(f**2+m**2)<i.params.threshold)return;if(void 0===s.isScrolling){let e;i.isHorizontal()&&n.currentY===n.startY||i.isVertical()&&n.currentX===n.startX?s.isScrolling=!1:f*f+m*m>=25&&(e=180*Math.atan2(Math.abs(m),Math.abs(f))/Math.PI,s.isScrolling=i.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",d),void 0===s.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(s.startMoving=!0)),s.isScrolling)return void(s.isTouched=!1);if(!s.startMoving)return;i.allowClick=!1,!r.cssMode&&d.cancelable&&d.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&d.stopPropagation(),s.isMoved||(r.loop&&!r.cssMode&&i.loopFix(),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),s.allowMomentumBounce=!1,!r.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",d)),i.emit("sliderMove",d),s.isMoved=!0;let p=i.isHorizontal()?f:m;n.diff=p,p*=r.touchRatio,o&&(p=-p),i.swipeDirection=p>0?"prev":"next",s.currentTranslate=p+s.startTranslate;let y=!0,v=r.resistanceRatio;if(r.touchReleaseOnEdges&&(v=0),p>0&&s.currentTranslate>i.minTranslate()?(y=!1,r.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+p)**v)):p<0&&s.currentTranslate<i.maxTranslate()&&(y=!1,r.resistance&&(s.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-s.startTranslate-p)**v)),y&&(d.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),i.allowSlidePrev||i.allowSlideNext||(s.currentTranslate=s.startTranslate),r.threshold>0){if(!(Math.abs(p)>r.threshold||s.allowThresholdMove))return void(s.currentTranslate=s.startTranslate);if(!s.allowThresholdMove)return s.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,s.currentTranslate=s.startTranslate,void(n.diff=i.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&i.freeMode||r.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),i.params.freeMode&&r.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function N(e){const t=this,i=t.touchEventsData,{params:s,touches:r,rtlTranslate:n,slidesGrid:a,enabled:o}=t;if(!o)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",l),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&s.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);s.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const d=_(),h=d-i.touchStartTime;if(t.allowClick){const e=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(e&&e[0]||l.target),t.emit("tap click",l),h<300&&d-i.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(i.lastClickTime=_(),y((()=>{t.destroyed||(t.allowClick=!0)})),!i.isTouched||!i.isMoved||!t.swipeDirection||0===r.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let c;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,c=s.followFinger?n?t.translate:-t.translate:-i.currentTranslate,s.cssMode)return;if(t.params.freeMode&&s.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:c});let u=0,f=t.slidesSizesGrid[0];for(let e=0;e<a.length;e+=e<s.slidesPerGroupSkip?1:s.slidesPerGroup){const t=e<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;void 0!==a[e+t]?c>=a[e]&&c<a[e+t]&&(u=e,f=a[e+t]-a[e]):c>=a[e]&&(u=e,f=a[a.length-1]-a[a.length-2])}let m=null,p=null;s.rewind&&(t.isBeginning?p=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(m=0));const g=(c-a[u])/f,v=u<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(h>s.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(g>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?m:u+v):t.slideTo(u)),"prev"===t.swipeDirection&&(g>1-s.longSwipesRatio?t.slideTo(u+v):null!==p&&g<0&&Math.abs(g)>s.longSwipesRatio?t.slideTo(p):t.slideTo(u))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(l.target===t.navigation.nextEl||l.target===t.navigation.prevEl)?l.target===t.navigation.nextEl?t.slideTo(u+v):t.slideTo(u):("next"===t.swipeDirection&&t.slideTo(null!==m?m:u+v),"prev"===t.swipeDirection&&t.slideTo(null!==p?p:u))}}function B(){const e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:r,snapGrid:n}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=r,e.allowSlideNext=s,e.params.watchOverflow&&n!==e.snapGrid&&e.checkOverflow()}function H(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function j(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:s}=e;if(!s)return;let r;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const n=e.maxTranslate()-e.minTranslate();r=0===n?0:(e.translate-e.minTranslate())/n,r!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let U=!1;function V(){}const G=(e,t)=>{const i=a(),{params:s,touchEvents:r,el:n,wrapperEl:o,device:l,support:d}=e,h=!!s.nested,c="on"===t?"addEventListener":"removeEventListener",u=t;if(d.touch){const t=!("touchstart"!==r.start||!d.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1};n[c](r.start,e.onTouchStart,t),n[c](r.move,e.onTouchMove,d.passiveListener?{passive:!1,capture:h}:h),n[c](r.end,e.onTouchEnd,t),r.cancel&&n[c](r.cancel,e.onTouchEnd,t)}else n[c](r.start,e.onTouchStart,!1),i[c](r.move,e.onTouchMove,h),i[c](r.end,e.onTouchEnd,!1);(s.preventClicks||s.preventClicksPropagation)&&n[c]("click",e.onClick,!0),s.cssMode&&o[c]("scroll",e.onScroll),s.updateOnWindowResize?e[u](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",B,!0):e[u]("observerUpdate",B,!0)};const z={attachEvents:function(){const e=this,t=a(),{params:i,support:s}=e;e.onTouchStart=Y.bind(e),e.onTouchMove=F.bind(e),e.onTouchEnd=N.bind(e),i.cssMode&&(e.onScroll=j.bind(e)),e.onClick=H.bind(e),s.touch&&!U&&(t.addEventListener("touchstart",V),U=!0),G(e,"on")},detachEvents:function(){G(this,"off")}},W=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;const q={setBreakpoint:function(){const e=this,{activeIndex:t,initialized:i,loopedSlides:s=0,params:r,$el:n}=e,a=r.breakpoints;if(!a||a&&0===Object.keys(a).length)return;const o=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;const l=(o in a?a[o]:void 0)||e.originalParams,d=W(e,r),h=W(e,l),c=r.enabled;d&&!h?(n.removeClass(`${r.containerModifierClass}grid ${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&h&&(n.addClass(`${r.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===r.grid.fill)&&n.addClass(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((t=>{const i=r[t]&&r[t].enabled,s=l[t]&&l[t].enabled;i&&!s&&e[t].disable(),!i&&s&&e[t].enable()}));const u=l.direction&&l.direction!==r.direction,f=r.loop&&(l.slidesPerView!==r.slidesPerView||u);u&&i&&e.changeDirection(),w(e.params,l);const m=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),c&&!m?e.disable():!c&&m&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",l),f&&i&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-s+e.loopedSlides,0,!1)),e.emit("breakpoint",l)},getBreakpoint:function(e,t="window",i){if(!e||"container"===t&&!i)return;let s=!1;const r=l(),n="window"===t?r.innerHeight:i.clientHeight,a=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:n*t,point:e}}return{value:e,point:e}}));a.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<a.length;e+=1){const{point:n,value:o}=a[e];"window"===t?r.matchMedia(`(min-width: ${o}px)`).matches&&(s=n):o<=i.clientWidth&&(s=n)}return s||"max"}};const K={addClasses:function(){const e=this,{classNames:t,params:i,rtl:s,$el:r,device:n,support:a}=e,o=function(e,t){const i=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((s=>{e[s]&&i.push(t+s)})):"string"==typeof e&&i.push(t+e)})),i}(["initialized",i.direction,{"pointer-events":!a.touch},{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:n.android},{ios:n.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);t.push(...o),r.addClass([...t].join(" ")),e.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}};const J={loadImage:function(e,t,i,s,r,n){const a=l();let o;function d(){n&&n()}g(e).parent("picture")[0]||e.complete&&r?d():t?(o=new a.Image,o.onload=d,o.onerror=d,s&&(o.sizes=s),i&&(o.srcset=i),t&&(o.src=t)):d()},preloadImages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let i=0;i<e.imagesToLoad.length;i+=1){const s=e.imagesToLoad[i];e.loadImage(s,s.currentSrc||s.getAttribute("src"),s.srcset||s.getAttribute("srcset"),s.sizes||s.getAttribute("sizes"),!0,t)}}};const X={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,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-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 Q(e,t){return function(i={}){const s=Object.keys(i)[0],r=i[s];"object"==typeof r&&null!==r?(["navigation","pagination","scrollbar"].indexOf(s)>=0&&!0===e[s]&&(e[s]={auto:!0}),s in e&&"enabled"in r?(!0===e[s]&&(e[s]={enabled:!0}),"object"!=typeof e[s]||"enabled"in e[s]||(e[s].enabled=!0),e[s]||(e[s]={enabled:!1}),w(t,i)):w(t,i)):w(t,i)}}const Z={eventsEmitter:A,update:P,translate:C,transition:{setTransition:function(e,t){const i=this;i.params.cssMode||i.$wrapperEl.transition(e),i.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const i=this,{params:s}=i;s.cssMode||(s.autoHeight&&i.updateAutoHeight(),I({swiper:i,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const i=this,{params:s}=i;i.animating=!1,s.cssMode||(i.setTransition(0),I({swiper:i,runCallbacks:e,direction:t,step:"End"}))}},slide:R,loop:O,grabCursor:{setGrabCursor:function(e){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;i.style.cursor="move",i.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){const e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:z,breakpoints:q,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:i}=e,{slidesOffsetBefore:s}=i;if(s){const t=e.slides.length-1,i=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*s;e.isLocked=e.size>i}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:K,images:J},ee={};class te{constructor(...e){let t,i;if(1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?i=e[0]:[t,i]=e,i||(i={}),i=w({},i),t&&!i.el&&(i.el=t),i.el&&g(i.el).length>1){const e=[];return g(i.el).each((t=>{const s=w({},i,{el:t});e.push(new te(s))})),e}const s=this;s.__swiper__=!0,s.support=E(),s.device=D({userAgent:i.userAgent}),s.browser=x(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],i.modules&&Array.isArray(i.modules)&&s.modules.push(...i.modules);const r={};s.modules.forEach((e=>{e({swiper:s,extendParams:Q(i,r),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})}));const n=w({},X,r);return s.params=w({},n,ee,i),s.originalParams=w({},s.params),s.passedParams=w({},i),s.params&&s.params.on&&Object.keys(s.params.on).forEach((e=>{s.on(e,s.params.on[e])})),s.params&&s.params.onAny&&s.onAny(s.params.onAny),s.$=g,Object.assign(s,{enabled:s.params.enabled,el:t,classNames:[],slides:g(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===s.params.direction,isVertical:()=>"vertical"===s.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return s.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},s.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},s.support.touch||!s.params.simulateTouch?s.touchEventsTouch:s.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:s.params.focusableElements,lastClickTime:_(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const i=this;e=Math.min(Math.max(e,0),1);const s=i.minTranslate(),r=(i.maxTranslate()-s)*e+s;i.translateTo(r,void 0===t?0:t),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each((i=>{const s=e.getSlideClasses(i);t.push({slideEl:i,classNames:s}),e.emit("_slideClass",i,s)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:i,slides:s,slidesGrid:r,slidesSizesGrid:n,size:a,activeIndex:o}=this;let l=1;if(i.centeredSlides){let e,t=s[o].swiperSlideSize;for(let i=o+1;i<s.length;i+=1)s[i]&&!e&&(t+=s[i].swiperSlideSize,l+=1,t>a&&(e=!0));for(let i=o-1;i>=0;i-=1)s[i]&&!e&&(t+=s[i].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=o+1;e<s.length;e+=1){(t?r[e]+n[e]-r[o]<a:r[e]-r[o]<a)&&(l+=1)}else for(let e=o-1;e>=0;e-=1){r[o]-r[e]<a&&(l+=1)}return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:i}=e;function s(){const t=e.rtlTranslate?-1*e.translate:e.translate,i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i),e.updateActiveIndex(),e.updateSlidesClasses()}let r;i.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode&&e.params.freeMode.enabled?(s(),e.params.autoHeight&&e.updateAutoHeight()):(r=("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),r||s()),i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const i=this,s=i.params.direction;return e||(e="horizontal"===s?"vertical":"horizontal"),e===s||"horizontal"!==e&&"vertical"!==e||(i.$el.removeClass(`${i.params.containerModifierClass}${s}`).addClass(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.each((t=>{"vertical"===e?t.style.width="":t.style.height=""})),i.emit("changeDirection"),t&&i.update()),i}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.$el.addClass(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.$el.removeClass(`${t.params.containerModifierClass}
2rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;const i=g(e||t.params.el);if(!(e=i[0]))return!1;e.swiper=t;const s=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let r=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=g(e.shadowRoot.querySelector(s()));return t.children=e=>i.children(e),t}return i.children?i.children(s()):g(i).children(s())})();if(0===r.length&&t.params.createElements){const e=a().createElement("div");r=g(e),e.className=t.params.wrapperClass,i.append(e),i.children(`.${t.params.slideClass}`).each((e=>{r.append(e)}))}return Object.assign(t,{$el:i,el:e,$wrapperEl:r,wrapperEl:r[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===i.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===i.css("direction")),wrongRTL:"-webkit-box"===r.css("display")}),!0}init(e){const t=this;if(t.initialized)return t;return!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e=!0,t=!0){const i=this,{params:s,$el:r,$wrapperEl:n,slides:a}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),r.removeAttr("style"),n.removeAttr("style"),a&&a.length&&a.removeClass([s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((e=>{i.off(e)})),!1!==e&&(i.$el[0].swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(i)),i.destroyed=!0),null}static extendDefaults(e){w(ee,e)}static get extendedDefaults(){return ee}static get defaults(){return X}static installModule(e){te.prototype.__modules__||(te.prototype.__modules__=[]);const t=te.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>te.installModule(e))),te):(te.installModule(e),te)}}Object.keys(Z).forEach((e=>{Object.keys(Z[e]).forEach((t=>{te.prototype[t]=Z[e][t]}))})),te.use([function({swiper:e,on:t,emit:i}){const s=l();let r=null,n=null;const a=()=>{e&&!e.destroyed&&e.initialized&&(i("beforeResize"),i("resize"))},o=()=>{e&&!e.destroyed&&e.initialized&&i("orientationchange")};t("init",(()=>{e.params.resizeObserver&&void 0!==s.ResizeObserver?e&&!e.destroyed&&e.initialized&&(r=new ResizeObserver((t=>{n=s.requestAnimationFrame((()=>{const{width:i,height:s}=e;let r=i,n=s;t.forEach((({contentBoxSize:t,contentRect:i,target:s})=>{s&&s!==e.el||(r=i?i.width:(t[0]||t).inlineSize,n=i?i.height:(t[0]||t).blockSize)})),r===i&&n===s||a()}))})),r.observe(e.el)):(s.addEventListener("resize",a),s.addEventListener("orientationchange",o))})),t("destroy",(()=>{n&&s.cancelAnimationFrame(n),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null),s.removeEventListener("resize",a),s.removeEventListener("orientationchange",o)}))},function({swiper:e,extendParams:t,on:i,emit:s}){const r=[],n=l(),a=(e,t={})=>{const i=new(n.MutationObserver||n.WebkitMutationObserver)((e=>{if(1===e.length)return void s("observerUpdate",e[0]);const t=function(){s("observerUpdate",e[0])};n.requestAnimationFrame?n.requestAnimationFrame(t):n.setTimeout(t,0)}));i.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),r.push(i)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",(()=>{if(e.params.observer){if(e.params.observeParents){const t=e.$el.parents();for(let e=0;e<t.length;e+=1)a(t[e])}a(e.$el[0],{childList:e.params.observeSlideChildren}),a(e.$wrapperEl[0],{attributes:!1})}})),i("destroy",(()=>{r.forEach((e=>{e.disconnect()})),r.splice(0,r.length)}))}]);const ie=te;function se({swiper:e,extendParams:t,on:i,emit:s}){const r=l();let n;t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}}),e.mousewheel={enabled:!1};let a,o=_();const d=[];function h(){e.enabled&&(e.mouseEntered=!0)}function c(){e.enabled&&(e.mouseEntered=!1)}function u(t){return!(e.params.mousewheel.thresholdDelta&&t.delta<e.params.mousewheel.thresholdDelta)&&(!(e.params.mousewheel.thresholdTime&&_()-o<e.params.mousewheel.thresholdTime)&&(t.delta>=6&&_()-o<60||(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),s("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),s("scroll",t.raw)),o=(new r.Date).getTime(),!1)))}function f(t){let i=t,r=!0;if(!e.enabled)return;const o=e.params.mousewheel;e.params.cssMode&&i.preventDefault();let l=e.$el;if("container"!==e.params.mousewheel.eventsTarget&&(l=g(e.params.mousewheel.eventsTarget)),!e.mouseEntered&&!l[0].contains(i.target)&&!o.releaseOnEdges)return!0;
vendor: 5,011 bytes, line 2
2i.originalEvent&&(i=i.originalEvent);let h=0;const c=e.rtlTranslate?-1:1,f=function(e){let t=0,i=0,s=0,r=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),s=10*t,r=10*i,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(s=e.deltaX),e.shiftKey&&!s&&(s=r,r=0),(s||r)&&e.deltaMode&&(1===e.deltaMode?(s*=40,r*=40):(s*=800,r*=800)),s&&!t&&(t=s<1?-1:1),r&&!i&&(i=r<1?-1:1),{spinX:t,spinY:i,pixelX:s,pixelY:r}}(i);if(o.forceToAxis)if(e.isHorizontal()){if(!(Math.abs(f.pixelX)>Math.abs(f.pixelY)))return!0;h=-f.pixelX*c}else{if(!(Math.abs(f.pixelY)>Math.abs(f.pixelX)))return!0;h=-f.pixelY}else h=Math.abs(f.pixelX)>Math.abs(f.pixelY)?-f.pixelX*c:-f.pixelY;if(0===h)return!0;o.invert&&(h=-h);let m=e.getTranslate()+h*o.sensitivity;if(m>=e.minTranslate()&&(m=e.minTranslate()),m<=e.maxTranslate()&&(m=e.maxTranslate()),r=!!e.params.loop||!(m===e.minTranslate()||m===e.maxTranslate()),r&&e.params.nested&&i.stopPropagation(),e.params.freeMode&&e.params.freeMode.enabled){const t={time:_(),delta:Math.abs(h),direction:Math.sign(h)},r=a&&t.time<a.time+500&&t.delta<=a.delta&&t.direction===a.direction;if(!r){a=void 0,e.params.loop&&e.loopFix();let l=e.getTranslate()+h*o.sensitivity;const c=e.isBeginning,u=e.isEnd;if(l>=e.minTranslate()&&(l=e.minTranslate()),l<=e.maxTranslate()&&(l=e.maxTranslate()),e.setTransition(0),e.setTranslate(l),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!c&&e.isBeginning||!u&&e.isEnd)&&e.updateSlidesClasses(),e.params.freeMode.sticky){clearTimeout(n),n=void 0,d.length>=15&&d.shift();const i=d.length?d[d.length-1]:void 0,s=d[0];if(d.push(t),i&&(t.delta>i.delta||t.direction!==i.direction))d.splice(0);else if(d.length>=15&&t.time-s.time<500&&s.delta-t.delta>=1&&t.delta<=6){const i=h>0?.8:.2;a=t,d.splice(0),n=y((()=>{e.slideToClosest(e.params.speed,!0,void 0,i)}),0)}n||(n=y((()=>{a=t,d.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)}),500))}if(r||s("scroll",i),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),l===e.minTranslate()||l===e.maxTranslate())return!0}}else{const i={time:_(),delta:Math.abs(h),direction:Math.sign(h),raw:t};d.length>=2&&d.shift();const s=d.length?d[d.length-1]:void 0;if(d.push(i),s?(i.direction!==s.direction||i.delta>s.delta||i.time>s.time+150)&&u(i):u(i),function(t){const i=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&i.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&i.releaseOnEdges)return!0;return!1}(i))return!0}return i.preventDefault?i.preventDefault():i.returnValue=!1,!1}function m(t){let i=e.$el;"container"!==e.params.mousewheel.eventsTarget&&(i=g(e.params.mousewheel.eventsTarget)),i[t]("mouseenter",h),i[t]("mouseleave",c),i[t]("wheel",f)}function p(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",f),!0):!e.mousewheel.enabled&&(m("on"),e.mousewheel.enabled=!0,!0)}function v(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,f),!0):!!e.mousewheel.enabled&&(m("off"),e.mousewheel.enabled=!1,!0)}i("init",(()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&v(),e.params.mousewheel.enabled&&p()})),i("destroy",(()=>{e.params.cssMode&&p(),e.mousewheel.enabled&&v()})),Object.assign(e.mousewheel,{enable:p,disable:v})}function re(e,t,i,s){const r=a();return e.params.createElements&&Object.keys(s).forEach((n=>{if(!i[n]&&!0===i.auto){let a=e.$el.children(`.${s[n]}`)[0];a||(a=r.createElement("div"),a.className=s[n],e.$el.append(a)),i[n]=a,t[n]=a}})),i}function ne({swiper:e,extendParams:t,on:i,emit:s}){function r(t){let i;return t&&(i=g(t),e.params.uniqueNavElements&&"string"==typeof t&&i.length>1&&1===e.$el.find(t).length&&(i=e.$el.find(t))),i}function n(t,i){const s=e.params.navigation;t&&t.length>0&&(t[i?"addClass":"removeClass"](s.disabledClass),t[0]&&"BUTTON"===t[0].tagName&&(t[0].disabled=i),e.params.watchOverflow&&e.enabled&&t[e.isLocked?"addClass":"removeClass"](s.lockClass))}function a(){if(e.params.loop)return;const{$nextEl:t,$prevEl:i}=e.navigation;n(i,e.isBeginning&&!e.params.rewind),n(t,e.isEnd&&!e.params.rewind)}function o(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),s("navigationPrev"))}function l(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),s("navigationNext"))}function d(){const t=e.params.navigation;if(e.params.navigation=re(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;const i=r(t.nextEl),s=r(t.prevEl);i&&i.length>0&&i.on("click",l),s&&s.length>0&&s.on("click",o),Object.assign(e.navigation,{$nextEl:i,nextEl:i&&i[0],$prevEl:s,prevEl:s&&s[0]}),e.enabled||(i&&i.addClass(t.lockClass),s&&s.addClass(t.lockClass))}function h(){const{$nextEl:t,$prevEl:i}=e.navigation;t&&t.length&&(t.off("click",l),t.removeClass(e.params.navigation.disabledClass)),i&&i.length&&(i.off("
2click",o),i.removeClass(e.params.navigation.disabledClass))}t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},i("init",(()=>{!1===e.params.navigation.enabled?c():(d(),a())})),i("toEdge fromEdge lock unlock",(()=>{a()})),i("destroy",(()=>{h()})),i("enable disable",(()=>{const{$nextEl:t,$prevEl:i}=e.navigation;t&&t[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),i&&i[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)})),i("click",((t,i)=>{const{$nextEl:r,$prevEl:n}=e.navigation,a=i.target;if(e.params.navigation.hideOnClick&&!g(a).is(n)&&!g(a).is(r)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===a||e.pagination.el.contains(a)))return;let t;r?t=r.hasClass(e.params.navigation.hiddenClass):n&&(t=n.hasClass(e.params.navigation.hiddenClass)),s(!0===t?"navigationShow":"navigationHide"),r&&r.toggleClass(e.params.navigation.hiddenClass),n&&n.toggleClass(e.params.navigation.hiddenClass)}}));const c=()=>{e.$el.addClass(e.params.navigation.navigationDisabledClass),h()};Object.assign(e.navigation,{enable:()=>{e.$el.removeClass(e.params.navigation.navigationDisabledClass),d(),a()},disable:c,update:a,init:d,destroy:h})}function ae(e=""){return`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function oe({swiper:e,extendParams:t,on:i,emit:s}){const r="swiper-pagination";let n;t({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:e=>e,formatFractionTotal:e=>e,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),e.pagination={el:null,$el:null,bullets:[]};let a=0;function o(){return!e.params.pagination.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length}function l(t,i){const{bulletActiveClass:s}=e.params.pagination;t[i]().addClass(`${s}-${i}`)[i]().addClass(`${s}-${i}-${i}`)}function d(){const t=e.rtl,i=e.params.pagination;if(o())return;const r=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,d=e.pagination.$el;let h;const c=e.params.loop?Math.ceil((r-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(h=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),h>r-1-2*e.loopedSlides&&(h-=r-2*e.loopedSlides),h>c-1&&(h-=c),h<0&&"bullets"!==e.params.paginationType&&(h=c+h)):h=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===i.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const s=e.pagination.bullets;let r,o,c;if(i.dynamicBullets&&(n=s.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),d.css(e.isHorizontal()?"width":"height",n*(i.dynamicMainBullets+4)+"px"),i.dynamicMainBullets>1&&void 0!==e.previousIndex&&(a+=h-(e.previousIndex-e.loopedSlides||0),a>i.dynamicMainBullets-1?a=i.dynamicMainBullets-1:a<0&&(a=0)),r=Math.max(h-a,0),o=r+(Math.min(s.length,i.dynamicMainBullets)-1),c=(o+r)/2),s.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${i.bulletActiveClass}${e}`)).join(" ")),d.length>1)s.each((e=>{const t=g(e),s=t.index();s===h&&t.addClass(i.bulletActiveClass),i.dynamicBullets&&(s>=r&&s<=o&&t.addClass(`${i.bulletActiveClass}-main`),s===r&&l(t,"prev"),s===o&&l(t,"next"))}));else{const t=s.eq(h),n=t.index();if(t.addClass(i.bulletActiveClass),i.dynamicBullets){const t=s.eq(r),a=s.eq(o);for(let e=r;e<=o;e+=1)s.eq(e).addClass(`${i.bulletActiveClass}-main`);if(e.params.loop)if(n>=s.length){for(let e=i.dynamicMainBullets;e>=0;e-=1)s.eq(s.length-e).addClass(`${i.bulletActiveClass}-main`);s.eq(s.length-i.dynamicMainBullets-1).addClass(`${i.bulletActiveClass}-prev`)}else l(t,"prev"),l(a,"next");else l(t,"prev"),l(a,"next")}}if(i.dynamicBullets){const r=Math.min(s.length,i.dynamicMainBullets+4),a=(n*r-n)/2-c*n,o=t?"right":"left";s.css(e.isHorizontal()?o:"top",`${a}px`)}}
2if("fraction"===i.type&&(d.find(ae(i.currentClass)).text(i.formatFractionCurrent(h+1)),d.find(ae(i.totalClass)).text(i.formatFractionTotal(c))),"progressbar"===i.type){let t;t=i.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const s=(h+1)/c;let r=1,n=1;"horizontal"===t?r=s:n=s,d.find(ae(i.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${r}) scaleY(${n})`).transition(e.params.speed)}"custom"===i.type&&i.renderCustom?(d.html(i.renderCustom(e,h+1,c)),s("paginationRender",d[0])):s("paginationUpdate",d[0]),e.params.watchOverflow&&e.enabled&&d[e.isLocked?"addClass":"removeClass"](i.lockClass)}function h(){const t=e.params.pagination;if(o())return;const i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,r=e.pagination.$el;let n="";if("bullets"===t.type){let s=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&!e.params.loop&&s>i&&(s=i);for(let i=0;i<s;i+=1)t.renderBullet?n+=t.renderBullet.call(e,i,t.bulletClass):n+=`<${t.bulletElement} class="${t.bulletClass}"></${t.bulletElement}>`;r.html(n),e.pagination.bullets=r.find(ae(t.bulletClass))}"fraction"===t.type&&(n=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`,r.html(n)),"progressbar"===t.type&&(n=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`,r.html(n)),"custom"!==t.type&&s("paginationRender",e.pagination.$el[0])}function c(){e.params.pagination=re(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let i=g(t.el);0!==i.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&i.length>1&&(i=e.$el.find(t.el),i.length>1&&(i=i.filter((t=>g(t).parents(".swiper")[0]===e.el)))),"bullets"===t.type&&t.clickable&&i.addClass(t.clickableClass),i.addClass(t.modifierClass+t.type),i.addClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(i.addClass(`${t.modifierClass}${t.type}-dynamic`),a=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&i.addClass(t.progressbarOppositeClass),t.clickable&&i.on("click",ae(t.bulletClass),(function(t){t.preventDefault();let i=g(this).index()*e.params.slidesPerGroup;e.params.loop&&(i+=e.loopedSlides),e.slideTo(i)})),Object.assign(e.pagination,{$el:i,el:i[0]}),e.enabled||i.addClass(t.lockClass))}function u(){const t=e.params.pagination;if(o())return;const i=e.pagination.$el;i.removeClass(t.hiddenClass),i.removeClass(t.modifierClass+t.type),i.removeClass(e.isHorizontal()?t.horizontalClass:t.verticalClass),e.pagination.bullets&&e.pagination.bullets.removeClass&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&i.off("click",ae(t.bulletClass))}i("init",(()=>{!1===e.params.pagination.enabled?f():(c(),h(),d())})),i("activeIndexChange",(()=>{(e.params.loop||void 0===e.snapIndex)&&d()})),i("snapIndexChange",(()=>{e.params.loop||d()})),i("slidesLengthChange",(()=>{e.params.loop&&(h(),d())})),i("snapGridLengthChange",(()=>{e.params.loop||(h(),d())})),i("destroy",(()=>{u()})),i("enable disable",(()=>{const{$el:t}=e.pagination;t&&t[e.enabled?"removeClass":"addClass"](e.params.pagination.lockClass)})),i("lock unlock",(()=>{d()})),i("click",((t,i)=>{const r=i.target,{$el:n}=e.pagination;if(e.params.pagination.el&&e.params.pagination.hideOnClick&&n&&n.length>0&&!g(r).hasClass(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&r===e.navigation.nextEl||e.navigation.prevEl&&r===e.navigation.prevEl))return;const t=n.hasClass(e.params.pagination.hiddenClass);s(!0===t?"paginationShow":"paginationHide"),n.toggleClass(e.params.pagination.hiddenClass)}}));const f=()=>{e.$el.addClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.addClass(e.params.pagination.paginationDisabledClass),u()};Object.assign(e.pagination,{enable:()=>{e.$el.removeClass(e.params.pagination.paginationDisabledClass),e.pagination.$el&&e.pagination.$el.removeClass(e.params.pagination.paginationDisabledClass),c(),h(),d()},disable:f,render:h,update:d,init:c,destroy:u})}function le({swiper:e,extendParams:t,on:i}){t({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let s=!1,r=!1;function n(){const t=e.thumbs.swiper;if(!t||t.destroyed)return;const i=t.clickedIndex,s=t.clickedSlide;if(s&&g(s).hasClass(e.params.thumbs.slideThumbActiveClass))return;if(null==i)return;let r;if(r=t.params.loop?parseInt(g(t.clickedSlide).attr("data-swiper-slide-index"),10):i,e.params.loop){let t=e.activeIndex;e.slides.eq(t).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,t=e.activeIndex);const i=e.slides.eq(t).prevAll(`[data-swiper-slide-index="${r}"]`).eq(0).index(),s=e.slides.eq(t).nextAll(`[data-swiper-slide-index="${r}"]`).eq(0).index();r=void 0===i?s:void 0===s?i:s-t<t-i?s:i}e.slideTo(r)}function a(){const{thumbs:t}=e.params;if(s)return!1;s=!0;const i=e.constructor;if(t.swiper instanceof i)e.thumbs.swiper=t.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1});else if(b(t.swiper)){const s=Object.assign({},t.swiper);Object.assign(s,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new i(s),r=!0}return e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",n),!0}function o(t){const i=e.thumbs.swiper;if(!i||i.destroyed)return;const s="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView;let r=1;const n=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(r=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(r=1),r=Math.floor(r),i.slides.removeClass(n),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(let t=0;t<r;t+=1)i.$wrapperEl.children(`[data-swiper-slide-index="${e.realIndex+t}"]`).addClass(n);else for(let t=0;t<r;t+=1)i.slides.eq(e.realIndex+t).addClass(n);const a=e.params.thumbs.autoScrollOffset,o=a&&!i.params.loop;if(e.realIndex!==i.realIndex||o){let r,n,l=i.activeIndex;if(i.params.loop){i.slides.eq(l).hasClass(i.params.slideDuplicateClass)&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,l=i.activeIndex);const t=i.slides.eq(l).prevAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index(),s=i.slides.eq(l).nextAll(`[data-swiper-slide-index="${e.realIndex}"]`).eq(0).index();r=void 0===t?s:void 0===s?t:s-l==l-t?i.params.slidesPerGroup>1?s:l:s-l<l-t?s:t,n=e.activeIndex>e.previousIndex?"next":"prev"}else r=e.realIndex,n=r>e.previousIndex?"next":"prev";o&&(r+="next"===n?a:-1*a),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(r)<0&&(i.params.centeredSlides?r=r>l?r-Math.floor(s/2)+1:r+Math.floor(s/2)-1:r>l&&i.params.slidesPerGroup,i.slideTo(r,t?0:void 0))}}e.thumbs={swiper:null},i("beforeInit",(()=>{const{thumbs:t}=e.params;t&&t.swiper&&(a(),o(!0))})),i("slideChange update resize observerUpdate",(()=>{o()})),i("setTransition",((t,i)=>{const s=e.thumbs.swiper;s&&!s.destroyed&&s.setTransition(i)})),i("beforeDestroy",(()=>{const t=e.thumbs.swiper;t&&!t.destroyed&&r&&t.destroy()})),Object.assign(e.thumbs,{init:a,update:o})}function de(e,t,i){const s="swiper-slide-shadow"+(i?`-${i}`:""),r=e.transformEl?t.find(e.transformEl):t;let n=r.children(`.${s}`);return n.length||(n=g(`<div class="swiper-slide-shadow${i?`-${i}`:""}"></div>`),r.append(n)),n}function he(e,t){return e.transformEl?t.find(e.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):t}function ce({swiper:e,extendParams:t,on:i}){t({cardsEffect:{slideShadows:!0,transformEl:null,rotate:!0,perSlideRotate:2,perSlideOffset:8}});!function(e){const{effect:t,swiper:i,on:s,setTranslate:r,setTransition:n,overwriteParams:a,perspective:o,recreateShadows:l,getEffectParams:d}=e;let h;s("beforeInit",(()=>{if(i.params.effect!==t)return;i.classNames.push(`${i.params.containerModifierClass}${t}`),o&&o()&&i.classNames.push(`${i.params.containerModifierClass}3d`);const e=a?a():{};Object.assign(i.params,e),Object.assign(i.originalParams,e)})),s("setTranslate",(()=>{i.params.effect===t&&r()})),s("setTransition",((e,s)=>{i.params.effect===t&&n(s)})),s("transitionEnd",(()=>{if(i.params.effect===t&&l){if(!d||!d().slideShadows)return;i.slides.each((e=>{i.$(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").remove()})),l()}})),s("virtualUpdate",(()=>{i.params.effect===t&&(i.slides.length||(h=!0),requestAnimationFrame((()=>{h&&i.slides&&i.slides.length&&(r(),h=!1)})))}))}({effect:"cards",swiper:e,on:i,setTranslate:()=>{const{slides:t,activeIndex:i}=e,s=e.params.cardsEffect,{startTranslate:r,isTouched:n}=e.touchEventsData,a=e.translate;
2for(let o=0;o<t.length;o+=1){const l=t.eq(o),d=l[0].progress,h=Math.min(Math.max(d,-4),4);let c=l[0].swiperSlideOffset;e.params.centeredSlides&&!e.params.cssMode&&e.$wrapperEl.transform(`translateX(${e.minTranslate()}px)`),e.params.centeredSlides&&e.params.cssMode&&(c-=t[0].swiperSlideOffset);let u=e.params.cssMode?-c-e.translate:-c,f=0;const m=-100*Math.abs(h);let p=1,g=-s.perSlideRotate*h,y=s.perSlideOffset-.75*Math.abs(h);const _=e.virtual&&e.params.virtual.enabled?e.virtual.from+o:o,v=(_===i||_===i-1)&&h>0&&h<1&&(n||e.params.cssMode)&&a<r,b=(_===i||_===i+1)&&h<0&&h>-1&&(n||e.params.cssMode)&&a>r;if(v||b){const e=(1-Math.abs((Math.abs(h)-.5)/.5))**.5;g+=-28*h*e,p+=-.5*e,y+=96*e,f=-25*e*Math.abs(h)+"%"}if(u=h<0?`calc(${u}px + (${y*Math.abs(h)}%))`:h>0?`calc(${u}px + (-${y*Math.abs(h)}%))`:`${u}px`,!e.isHorizontal()){const e=f;f=u,u=e}const w=h<0?""+(1+(1-p)*h):""+(1-(1-p)*h),T=`\n translate3d(${u}, ${f}, ${m}px)\n rotateZ(${s.rotate?g:0}deg)\n scale(${w})\n `;if(s.slideShadows){let e=l.find(".swiper-slide-shadow");0===e.length&&(e=de(s,l)),e.length&&(e[0].style.opacity=Math.min(Math.max((Math.abs(h)-.5)/.5,0),1))}l[0].style.zIndex=-Math.abs(Math.round(d))+t.length;he(s,l).transform(T)}},setTransition:t=>{const{transformEl:i}=e.params.cardsEffect;(i?e.slides.find(i):e.slides).transition(t).find(".swiper-slide-shadow").transition(t),function({swiper:e,duration:t,transformEl:i,allSlides:s}){const{slides:r,activeIndex:n,$wrapperEl:a}=e;if(e.params.virtualTranslate&&0!==t){let t,o=!1;t=s?i?r.find(i):r:i?r.eq(n).find(i):r.eq(n),t.transitionEnd((()=>{if(o)return;if(!e||e.destroyed)return;o=!0,e.animating=!1;const t=["webkitTransitionEnd","transitionend"];for(let e=0;e<t.length;e+=1)a.trigger(t[e])}))}}({swiper:e,duration:t,transformEl:i})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}var ue=i(4330),fe=i.n(ue),me=i(9891),pe=i.n(me),ge=(i(2453),i(9635)),ye=i.n(ge),_e=i(8647),ve=i.n(_e),be=(i(8013),i(653)),we=i.n(be);const Te=function(e){return"".concat(e.charAt(0).toLowerCase()).concat(e.replace(/[\W_]/g,"|").split("|").map((function(e){return"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))})).join("").slice(1))};function Me(e){return Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}function Se(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,Le(s.key),s)}}function Le(e){var t=function(e,t){if("object"!=Me(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var s=i.call(e,t||"default");if("object"!=Me(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Me(t)?t:t+""}var ke=function(){return function(e,t,i){return t&&Se(e.prototype,t),i&&Se(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.routes=t}),[{key:"fire",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"init",i=arguments.length>2?arguments[2]:void 0,s=""!==e&&this.routes[e+"Route"]&&"function"==typeof this.routes[e+"Route"][t];s&&this.routes[e+"Route"][t](i)}},{key:"loadEvents",value:function(){var e=this;this.fire("common"),jQuery('main[role="main"]')[0].className.toLowerCase().replace(/-/g,"_").split(/\s+/).map(Te).forEach((function(t){e.fire(t),e.fire(t,"finalize")})),this.fire("common","finalize")}}])}();const Ee=ke;function De(e,t){if(Ve(e))for(let i=0;i<e.length&&!1!==t(e[i],i,e);i++);else e&&De(Object.keys(e),(i=>t(e[i],i,e)));return e}function xe(e,t){const i=Ne(t);if(je(t)||i){let s=i?"":{};if(e){const r=window.getComputedStyle(e,null);s=i?Zt(e,r,t):t.reduce(((t,i)=>(t[i]=Zt(e,r,i),t)),s)}return s}e&&De(et(t),(i=>ei(e,i,t[i])))}const Ae=(e,t)=>
2{const{o:i,u:s,_:r}=e;let n,a=i;const o=(e,t)=>{const i=a,o=e,l=t||(s?!s(i,o):i!==o);return(l||r)&&(a=o,n=i),[a,l,n]};return[t?e=>o(t(a,n),e):o,e=>[a,!!e,n]]},Pe=()=>"undefined"!=typeof window,Ce=Pe()&&Node.ELEMENT_NODE,{toString:Ie,hasOwnProperty:Re}=Object.prototype,Oe=e=>void 0===e,Ye=e=>null===e,Fe=e=>Oe(e)||Ye(e)?`${e}`:Ie.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase(),$e=e=>"number"==typeof e,Ne=e=>"string"==typeof e,Be=e=>"boolean"==typeof e,He=e=>"function"==typeof e,je=e=>Array.isArray(e),Ue=e=>"object"==typeof e&&!je(e)&&!Ye(e),Ve=e=>{const t=!!e&&e.length,i=$e(t)&&t>-1&&t%1==0;return!!(je(e)||!He(e)&&i)&&(!(t>0&&Ue(e))||t-1 in e)},Ge=e=>{if(!e||!Ue(e)||"object"!==Fe(e))return!1;let t;const i="constructor",s=e[i],r=s&&s.prototype,n=Re.call(e,i),a=r&&Re.call(r,"isPrototypeOf");if(s&&!n&&!a)return!1;for(t in e);return Oe(t)||Re.call(e,t)},ze=e=>{const t=HTMLElement;return!!e&&(t?e instanceof t:e.nodeType===Ce)},We=e=>{const t=Element;return!!e&&(t?e instanceof t:e.nodeType===Ce)},qe=(e,t,i)=>e.indexOf(t,i),Ke=(e,t,i)=>(i||Ne(t)||!Ve(t)?e.push(t):Array.prototype.push.apply(e,t),e),Je=e=>{const t=Array.from,i=[];return t&&e?t(e):(e instanceof Set?e.forEach((e=>{Ke(i,e)})):De(e,(e=>{Ke(i,e)})),i)},Xe=e=>!!e&&0===e.length,Qe=(e,t,i)=>{De(e,(e=>e&&e.apply(void 0,t||[]))),!i&&(e.length=0)},Ze=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),et=e=>e?Object.keys(e):[],tt=(e,t,i,s,r,n,a)=>{const o=[t,i,s,r,n,a];return"object"==typeof e&&!Ye(e)||He(e)||(e={}),De(o,(t=>{De(et(t),(i=>{const s=t[i];if(e===s)return!0;const r=je(s);if(s&&Ge(s)){const t=e[i];let n=t;r&&!je(t)?n=[]:r||Ge(t)||(n={}),e[i]=tt(n,s)}else e[i]=r?s.slice():s}))})),e},it=e=>{for(const t in e)return!1;return!0},st=(e,t,i,s)=>{if(Oe(s))return i?i[e]:t;i&&(Ne(s)||$e(s))&&(i[e]=s)},rt=(e,t,i)=>{if(Oe(i))return e?e.getAttribute(t):null;e&&e.setAttribute(t,i)},nt=(e,t)=>new Set((rt(e,t)||"").split(" ")),at=(e,t)=>{e&&e.removeAttribute(t)},ot=(e,t,i,s)=>{if(i){const r=nt(e,t);r[s?"add":"delete"](i);const n=Je(r).join(" ").trim();rt(e,t,n)}},lt=(e,t)=>st("scrollLeft",0,e,t),dt=(e,t)=>
2st("scrollTop",0,e,t),ht=Pe()&&Element.prototype,ct=(e,t)=>{const i=[],s=t?We(t)&&t:document;return s?Ke(i,s.querySelectorAll(e)):i},ut=(e,t)=>{if(We(e)){return(ht.matches||ht.msMatchesSelector).call(e,t)}return!1},ft=e=>e?Je(e.childNodes):[],mt=e=>e&&e.parentElement,pt=(e,t)=>{if(We(e)){const i=ht.closest;if(i)return i.call(e,t);do{if(ut(e,t))return e;e=mt(e)}while(e)}},gt=(e,t,i)=>{const s=pt(e,t),r=e&&((e,t)=>{const i=t?We(t)&&t:document;return i?i.querySelector(e):null})(i,s),n=pt(r,t)===s;return!(!s||!r)&&(s===e||r===e||n&&pt(pt(e,i),t)!==s)},yt=(e,t,i)=>{if(i&&e){let s,r=t;Ve(i)?(s=document.createDocumentFragment(),De(i,(e=>{e===r&&(r=e.previousSibling),s.appendChild(e)}))):s=i,t&&(r?r!==t&&(r=r.nextSibling):r=e.firstChild),e.insertBefore(s,r||null)}},_t=(e,t)=>{yt(e,null,t)},vt=(e,t)=>{yt(mt(e),e&&e.nextSibling,t)},bt=e=>{if(Ve(e))De(Je(e),(e=>bt(e)));else if(e){const t=mt(e);t&&t.removeChild(e)}},wt=e=>{const t=document.createElement("div");return e&&rt(t,"class",e),t},Tt=e=>{const t=wt();return t.innerHTML=e.trim(),De(ft(t),(e=>bt(e)))},Mt=e=>e.charAt(0).toUpperCase()+e.slice(1),St=["-webkit-","-moz-","-o-","-ms-"],Lt=["WebKit","Moz","O","MS","webkit","moz","o","ms"],kt={},Et={},Dt=e=>{let t=Et[e];if(Ze(Et,e))return t;const i=Mt(e),s=wt().style;return De(St,(r=>{const n=r.replace(/-/g,""),a=[e,r+e,n+i,Mt(n)+i];return!(t=a.find((e=>void 0!==s[e])))})),Et[e]=t||""},xt=e=>{if(Pe()){let t=kt[e]||window[e];return Ze(kt,e)||(De(Lt,(i=>(t=t||window[i+Mt(e)],!t))),kt[e]=t),t}},At=xt("MutationObserver"),Pt=xt("IntersectionObserver"),Ct=xt("ResizeObserver"),It=xt("cancelAnimationFrame"),Rt=xt("requestAnimationFrame"),Ot=xt("ScrollTimeline"),Yt=Pe()&&window.setTimeout,Ft=Pe()&&window.clearTimeout,$t=/[^\x20\t\r\n\f]+/g,Nt=(e,t,i)=>{const s=e&&e.classList;let r,n=0,a=!1;if(s&&t&&Ne(t)){const e=t.match($t)||[];for(a=e.length>0;r=e[n++];)a=!!i(s,r)&&a}return a},Bt=(e,t)=>{Nt(e,t,((e,t)=>e.remove(t)))},Ht=(e,t)=>(Nt(e,t,((e,t)=>e.add(t))),Bt.bind(0,e,t)),{max:jt}=Math,Ut=(e,t,i,s)=>{if(e&&t){let r=!0;return De(i,(i=>{(s?s(e[i]):e[i])!==(s?s(t[i]):t[i])&&(r=!1)})),r}return!1},Vt=(e,t)=>Ut(e,t,["w","h"]),Gt=(e,t)=>Ut(e,t,["x","y"]),zt=(e,t)=>Ut(e,t,["t","r","b","l"]),Wt=(e,t,i)=>Ut(e,t,["width","height"],i&&(e=>Math.round(e))),qt=()=>{},Kt=e=>{let t;const i=e?Yt:Rt,s=e?Ft:It;return[r=>{s(t),t=i(r,He(e)?e():e)},()=>s(t)]},Jt=(e,t)=>{let i,s,r,n=qt;const{g:a,v:o,p:l}=t||{},d=function(t){n(),Ft(i),i=s=void 0,n=qt,e.apply(this,t)},h=e=>l&&s?l(s,e):e,c=()=>{n!==qt&&d(h(r)||r)},u=function(){const e=Je(arguments),t=He(a)?a():a;if($e(t)&&t>=0){const a=He(o)?o():o,l=$e(a)&&a>=0,u=t>0?Yt:Rt,f=t>0?Ft:It,m=h(e)||e,p=d.bind(0,m);n();const g=u(p,t);n=()=>f(g),l&&!i&&(i=Yt(c,a)),s=r=m}else d(e)};return u.m=c,u},Xt={opacity:1,zIndex:1},Qt=(e,t)=>{const i=e||"",s=t?parseFloat(i):parseInt(i,10);return s==s?s:0},Zt=(e,t,i)=>String((null!=t?t[i]||t.getPropertyValue(i):e.style[i])||""),ei=(e,t,i)=>{try{const{style:s}=e;Oe(s[t])?s.setProperty(t,i):s[t]=((e,t)=>!Xt[e]&&$e(t)?`${t}px`:t)(t,i)}catch(e){}},ti=e=>"rtl"===xe(e,"direction"),ii=(e,t,i)=>{const s=t?`${t}-`:"",r=i?`-${i}`:"",n=`${s}top${r}`,a=`${s}right${r}`,o=`${s}bottom${r}`,l=`${s}left${r}`,d=xe(e,[n,a,o,l]);return{t:Qt(d[n],!0),r:Qt(d[a],!0),b:Qt(d[o],!0),l:Qt(d[l],!0)}},si=(e,t)=>"translate"+(je(e)?`(${e[0]},${e[1]})`:`${t?"X":"Y"}(${e})`),{round:ri}=Math,ni={w:0,h:0},ai=e=>e?{w:e.offsetWidth,h:e.offsetHeight}:ni,oi=e=>e?{w:e.clientWidth,h:e.clientHeight}:ni,li=e=>e?{w:e.scrollWidth,h:e.scrollHeight}:ni,di=e=>{const t=parseFloat(xe(e,"height"))||0,i=parseFloat(xe(e,"width"))||0;return{w:i-ri(i),h:t-ri(t)}},hi=e=>e.getBoundingClientRect(),ci=e=>!(!e||!e.height&&!e.width);let ui;const fi=e=>e.split(" "),mi=(e,t,i,s)=>{De(fi(t),(t=>{e.removeEventListener(t,i,s)}))},pi=(e,t,i,s)=>{var r;const n=(()=>{if(Oe(ui)){ui=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get(){ui=!0}}))}catch(e){}}return ui})(),a=null!=(r=n&&s&&s.S)?r:n,o=s&&s.$||!1,l=s&&s.C||!1,d=[],h=n?{passive:a,capture:o}:o;return De(fi(t),(t=>{const s=l?r=>{e.removeEventListener(t,s,o),i&&i(r)}:i;Ke(d,mi.bind(null,e,t,s,o)),e.addEventListener(t,s,h)})),Qe.bind(0,d)},gi=e=>e.stopPropagation(),yi=e=>e.preventDefault(),_i={x:0,y:0},vi=e=>{const t=e?hi(e):0;return t?{x:t.left+window.pageYOffset,y:t.top+window.pageXOffset}:_i},bi=(e,t)=>{De(je(t)?t:[t],e)},wi=e=>{const t=new Map,i=(e,i)=>{if(e){const s=t.get(e);bi((e=>{s&&s[e?"delete":"clear"](e)}),i)}else t.forEach((e=>{e.clear()}
2)),t.clear()},s=(e,r)=>{if(Ne(e)){const s=t.get(e)||new Set;return t.set(e,s),bi((e=>{He(e)&&s.add(e)}),r),i.bind(0,e,r)}Be(r)&&r&&i();const n=et(e),a=[];return De(n,(t=>{const i=e[t];i&&Ke(a,s(t,i))})),Qe.bind(0,a)};return s(e||{}),[s,i,(e,i)=>{const s=t.get(e);De(Je(s),(e=>{i&&!Xe(i)?e.apply(0,i):e()}))}]},Ti=e=>JSON.stringify(e,((e,t)=>{if(He(t))throw new Error;return t})),Mi={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},Si=(e,t)=>{const i={};return De(et(t).concat(et(e)),(s=>{const r=e[s],n=t[s];if(Ue(r)&&Ue(n))tt(i[s]={},Si(r,n)),it(i[s])&&delete i[s];else if(Ze(t,s)&&n!==r){let e=!0;if(je(r)||je(n))try{Ti(r)===Ti(n)&&(e=!1)}catch(e){}e&&(i[s]=n)}})),i},Li="data-overlayscrollbars",ki="os-environment",Ei=`${ki}-flexbox-glue`,Di=`${Ei}-max`,xi="os-scrollbar-hidden",Ai=`${Li}-initialize`,Pi=Li,Ci=`${Pi}-overflow-x`,Ii=`${Pi}-overflow-y`,Ri="overflowVisible",Oi="scrollbarPressed",Yi="updating",Fi=`${Li}-viewport`,$i="arrange",Ni="scrollbarHidden",Bi=Ri,Hi=`${Li}-padding`,ji=Bi,Ui=`${Li}-content`,Vi="os-size-observer",Gi=`${Vi}-appear`,zi=`${Vi}-listener`,Wi=`${zi}-scroll`,qi=`${zi}-item`,Ki=`${qi}-final`,Ji="os-scrollbar",Xi=`${Ji}-rtl`,Qi=`${Ji}-horizontal`,Zi=`${Ji}-vertical`,es=`${Ji}-track`,ts=`${Ji}-handle`,is=`${Ji}-visible`,ss=`${Ji}-cornerless`,rs=`${Ji}-transitionless`,ns=`${Ji}-interaction`,as=`${Ji}-unusable`,os=`${Ji}-auto-hide`,ls=`${os}-hidden`,ds=`${Ji}-wheel`,hs=`${es}-interactive`,cs=`${ts}-interactive`,us={},fs=()=>us,ms=3333333,ps="scroll",gs="__osSizeObserverPlugin",ys=(()=>({[gs]:{O:(e,t,i)=>{const s=Tt(`<div class="${qi}" dir="ltr"><div class="${qi}"><div class="${Ki}"></div></div><div class="${qi}"><div class="${Ki}" style="width: 200%; height: 200%"></div></div></div>`);_t(e,s),Ht(e,Wi);const r=s[0],n=r.lastChild,a=r.firstChild,o=null==a?void 0:a.firstChild;let l,d=ai(r),h=d,c=!1;const u=()=>{lt(a,ms),dt(a,ms),lt(n,ms),dt(n,ms)},f=e=>{l=0,c&&(d=h,t(!0===e))},m=e=>{h=ai(r),c=!e||!Vt(h,d),e?(gi(e),c&&!l&&(It(l),l=Rt(f))):f(!1===e),u()},p=Ke([],[pi(a,ps,m),pi(n,ps,m)]);return xe(o,{width:ms,height:ms}),Rt(u),[i?m.bind(0,!1):u,p]}}}))();let _s=0;const{round:vs,abs:bs}=Math,ws="__osScrollbarsHidingPlugin",Ts=(()=>({[ws]:{T:e=>{const{A:t,I:i,H:s}=e,r=!!(!s&&!t&&(i.x||i.y))&&document.createElement("style");return r&&(rt(r,"id",`${Fi}-${$i}-${_s}`),_s++),r},L:(e,t,i,s,r,n,a)=>[(t,n,a,o)=>{if(e){const{P:e}=r(),{M:l,D:d}=t,{x:h,y:c}=d,{x:u,y:f}=l,m=e[o?"paddingRight":"paddingLeft"],p=e.paddingTop,g=n.w+a.w,y=n.h+a.h,_={w:f&&c?f+g-m+"px":"",h:u&&h?u+y-p+"px":""};if(s){const{sheet:e}=s;if(e){const{cssRules:t}=e;if(t){t.length||e.insertRule(`#${rt(s,"id")} + [${Fi}~='${$i}']::before {}`,0);const i=t[0].style;i.width=_.w,i.height=_.h}}}else xe(i,{"--os-vaw":_.w,"--os-vah":_.h})}return e},(s,o,l)=>{if(e){const d=l||n(s),{P:h}=r(),{D:c}=d,{x:u,y:f}=c,m={},p=e=>De(e.split(" "),(e=>{m[e]=h[e]}));u&&p("marginBottom paddingTop paddingBottom"),f&&p("marginLeft marginRight paddingLeft paddingRight");const g=xe(i,et(m));return ot(i,Fi,$i),t||(m.height=""),xe(i,m),[()=>{a(d,o,e,g),xe(i,g),ot(i,Fi,$i,!0)},d]}return[qt]}],R:()=>{let e={w:0,h:0},t=0;return(i,s,r)=>{const n={w:window.innerWidth,h:window.innerHeight},a={w:n.w-e.w,h:n.h-e.h};if(0===a.w&&0===a.h)return;const o=bs(a.w),l=bs(a.h),d={w:bs(vs(n.w/(e.w/100))),h:bs(vs(n.h/(e.h/100)))},h=(()=>{const e=window.screen.deviceXDPI||0,t=window.screen.logicalXDPI||1;return window.devicePixelRatio||e/t})(),c=o>2&&l>2,u=!((e,t)=>{const i=bs(e),s=bs(t);return!(i===s||i+1===s||i-1===s)})(d.w,d.h);if(c&&u&&(h!==t&&h>0)){const[e,t]=s();tt(i.k,e),t&&r()}e=n,t=h}}}}))(),Ms="__osClickScrollPlugin";let Ss;const Ls=(e,t,i,s)=>{_t(e,t);const r=oi(t),n=ai(t),a=di(i);return s&&bt(t),{x:n.h-r.h+a.h,y:n.w-r.w+a.w}},ks=(e,t)=>{const i="hidden";xe(e,{overflowX:i,overflowY:i,direction:"rtl"}),lt(e,0);const s=vi(e),r=vi(t);lt(e,-999);const n=vi(t);return{i:s.x===r.x,n:r.x!==n.x}},Es=(e,t)=>{const i=Ht(e,Ei),s=hi(e),r=hi(t),n=Wt(r,s,!0),a=Ht(e,Di),o=hi(e),l=hi(t),d=Wt(l,o,!0);return i(),a(),n&&d},Ds=()=>{const{body:e}=document,t=Tt(`<div class="${ki}"><div></div></div>`)[0],i=t.firstChild,[s,,r]=wi(),[n,a]=Ae({o:Ls(e,t,i),u:Gt},Ls.bind(0,e,t,i,!0)),[o]=a(),l=(e=>{let t=!1;const i=Ht(e,xi);try{t="none"===xe(e,Dt("scrollbar-width"))||"none"===window.getComputedStyle(e,"::-webkit-scrollbar").getPropertyValue("display")}catch(e){}return i(),t})(t),d={x:0===o.x,y:0===o.y},h={elements:{host:null,padding:!l,viewport:e=>l&&e===e.ownerDocument.body&&e,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},c=tt({},Mi),u=tt.bind(0,{},c),f=tt.bind(0,{},h),m={k:o,I:d,A:l,H:"-1"===xe(t,"zIndex"),B:!!Ot,V:ks(t,i),Y:Es(t,i),j:s.bind(0,"z"),N:s.bind(0,"r"),q:f,F:e=>tt(h,e)&&f(),G:u,X:e=>tt(c,e)&&u(),U:tt({},h),W:tt({},c)},p=window.addEventListener,g=Jt((e=>r(e?"z":"r")),{g:33,v:99});
2if(at(t,"style"),bt(t),p("resize",g.bind(0,!1)),!(l||d.x&&d.y)){let e;p("resize",(()=>{const t=fs()[ws];e=e||t&&t.R(),e&&e(m,n,g.bind(0,!0))}))}return m},xs=()=>(Ss||(Ss=Ds()),Ss),As=(e,t)=>He(t)?t.apply(0,e):t,Ps=(e,t,i,s)=>{const r=Oe(s)?i:s;return As(e,r)||t.apply(0,e)},Cs=(e,t,i,s)=>{const r=Oe(s)?i:s,n=As(e,r);return!!n&&(ze(n)?n:t.apply(0,e))},Is=new WeakMap,Rs=e=>Is.get(e),Os=(e,t)=>e?t.split(".").reduce(((e,t)=>e&&Ze(e,t)?e[t]:void 0),e):void 0,Ys=(e,t,i)=>s=>[Os(e,s),i||void 0!==Os(t,s)],Fs=e=>{let t=e;return[()=>t,e=>{t=tt({},t,e)}]},$s="tabindex",Ns=wt.bind(0,""),Bs=e=>{_t(mt(e),ft(e)),bt(e)},Hs=e=>{const t=xs(),{q:i,A:s}=t,r=fs()[ws],n=r&&r.T,{elements:a}=i(),{host:o,padding:l,viewport:d,content:h}=a,c=ze(e),u=c?{}:e,{elements:f}=u,{host:m,padding:p,viewport:g,content:y}=f||{},_=c?e:u.target,v=ut(_,"textarea"),b=_.ownerDocument,w=b.documentElement,T=_===b.body,M=b.defaultView,S=Ps.bind(0,[_]),L=Cs.bind(0,[_]),k=As.bind(0,[_]),E=S.bind(0,Ns,d),D=L.bind(0,Ns,h),x=E(g),A=x===_,P=A&&T,C=!A&&D(y),I=!A&&ze(x)&&x===C,R=I&&!!k(h),O=R?E():x,Y=R?C:D(),F=P?w:I?O:x,$=v?S(Ns,o,m):_,N=P?F:$,B=I?Y:C,H=b.activeElement,j=!A&&M.top===M&&H===_,U={Z:_,J:N,K:F,tt:!A&&L(Ns,l,p),nt:B,ot:!A&&!s&&n&&n(t),st:P?w:F,et:P?b:F,ct:M,rt:b,lt:v,it:T,ut:c,ft:A,dt:I,_t:(e,t)=>((e,t,i)=>nt(e,t).has(i))(F,A?Pi:Fi,A?t:e),ht:(e,t,i)=>ot(F,A?Pi:Fi,A?t:e,i)},V=et(U).reduce(((e,t)=>{const i=U[t];return Ke(e,!(!i||!ze(i)||mt(i))&&i)}),[]),G=e=>e?qe(V,e)>-1:null,{Z:z,J:W,tt:q,K,nt:J,ot:X}=U,Q=[()=>{at(W,Pi),at(W,Ai),at(z,Ai),T&&(at(w,Pi),at(w,Ai))}],Z=v&&G(W);let ee=v?z:ft([J,K,q,W,z].find((e=>!1===G(e))));const te=P?z:J||K;return[U,()=>{rt(W,Pi,A?"viewport":"host"),rt(q,Hi,""),rt(J,Ui,""),A||rt(K,Fi,"");const e=T&&!A?Ht(mt(_),xi):qt;if(Z&&(vt(z,W),Ke(Q,(()=>{vt(W,z),bt(W)}))),_t(te,ee),_t(W,q),_t(q||W,!A&&K),_t(K,J),Ke(Q,(()=>{e(),at(q,Hi),at(J,Ui),at(K,Ci),at(K,Ii),at(K,Fi),G(J)&&Bs(J),G(K)&&Bs(K),G(q)&&Bs(q)})),s&&!A&&(ot(K,Fi,Ni,!0),Ke(Q,at.bind(0,K,Fi))),X&&(((e,t)=>{yt(mt(e),e,t)})(K,X),Ke(Q,bt.bind(0,X))),j){const e=rt(K,$s);rt(K,$s,"-1"),K.focus();const t=()=>e?rt(K,$s,e):at(K,$s),i=pi(b,"pointerdown keydown",(()=>{t(),i()}));Ke(Q,[t,i])}else H&&H.focus&&H.focus();ee=0},Qe.bind(0,Q)]},js=(e,t)=>{const{nt:i}=e,[s]=t;return e=>{const{Y:t}=xs(),{gt:r}=s(),{vt:n}=e,a=(i||!t)&&n;return a&&xe(i,{height:r?"":"100%"}),{wt:a,bt:a}}},Us=(e,t)=>{const[i,s]=t,{J:r,tt:n,K:a,ft:o}=e,[l,d]=Ae({u:zt,o:ii()},ii.bind(0,r,"padding",""));return(e,t,r)=>{let[h,c]=d(r);const{A:u,Y:f}=xs(),{yt:m}=i(),{wt:p,bt:g,St:y}=e,[_,v]=t("paddingAbsolute");(p||c||!f&&g)&&([h,c]=l(r));const b=!o&&(v||y||c);if(b){const e=!_||!n&&!u,t=h.r+h.l,i=h.t+h.b,r={marginRight:e&&!m?-t:0,marginBottom:e?-i:0,marginLeft:e&&m?-t:0,top:e?-h.t:0,right:e?m?-h.r:"auto":0,left:e?m?"auto":-h.l:0,width:e?`calc(100% + ${t}px)`:""},o={paddingTop:e?h.t:0,paddingRight:e?h.r:0,paddingBottom:e?h.b:0,paddingLeft:e?h.l:0};xe(n||a,r),xe(a,o),s({tt:h,$t:!e,P:n?o:tt({},r,o)})}return{xt:b}}},{max:Vs}=Math,Gs=Vs.bind(0,0),zs="visible",Ws="hidden",qs={u:Vt,o:{w:0,h:0}},Ks={u:Gt,o:{x:Ws,y:Ws}},Js=e=>0===e.indexOf(zs),Xs=(e,t)=>{const[i,s]=t,{J:r,tt:n,K:a,ot:o,ft:l,ht:d,it:h,ct:c}=e,{k:u,Y:f,A:m,I:p}=xs(),g=fs()[ws],y=!l&&!m&&(p.x||p.y),_=h&&l,[v,b]=Ae(qs,di.bind(0,a)),[w,T]=Ae(qs,li.bind(0,a)),[M,S]=Ae(qs),[L,k]=Ae(qs),[E]=Ae(Ks),D=(e,t)=>{if(xe(a,{height:""}),t){const{$t:t,tt:s}=i(),{Ct:n,M:o}=e,l=di(r),d=oi(r),h="content-box"===xe(a,"boxSizing"),c=t||h?s.b+s.t:0,u=!(p.x&&h);xe(a,{height:d.h+l.h+(n.x&&u?o.x:0)-c})}},x=(e,t)=>{const i=m||e?0:42,s=(e,s,r)=>{const n=xe(a,e),o="scroll"===(t?t[e]:n);return[n,o,o&&!m?s?i:r:0,s&&!!i]},[r,n,o,l]=s("overflowX",p.x,u.x),[d,h,c,f]=s("overflowY",p.y,u.y);return{Ot:{x:r,y:d},Ct:{x:n,y:h},M:{x:o,y:c},D:{x:l,y:f}}},A=(e,t,s,r)=>{const{M:n,D:a}=e,{x:o,y:l}=a,{x:d,y:h}=n,{P:c}=i(),u=t?"marginLeft":"marginRight",f=t?"paddingLeft":"paddingRight",m=c[u],p=c.marginBottom,g=c[f],y=c.paddingBottom;r.width=`calc(100% + ${h+-1*m}px)`,r[u]=-h+m,r.marginBottom=-d+p,s&&(r[f]=g+(l?h:0),r.paddingBottom=y+(o?d:0))},[P,C]=g?g.L(y,f,a,o,i,x,A):[()=>y,()=>[qt]];return(e,t,o)=>{const{wt:h,Tt:u,bt:g,xt:y,vt:I,St:R}=e,{gt:O,yt:Y}=i(),[F,$]=t("showNativeOverlaidScrollbars"),[N,B]=t("overflow"),H=F&&p.x&&p.y,j=!l&&!f&&(h||g||u||$||I),U=Js(N.x),V=Js(N.y),G=U||V;let z,W=b(o),q=T(o),K=S(o),J=k(o);if($&&m&&d(Ni,"scrollbarHidden",!H),j&&(z=x(H),D(z,O)),h||y||g||R||$){G&&d(Bi,Ri,!1);const[e,t]=C(H,Y,z),[i,s]=W=v(o),[r,n]=q=w(o),l=oi(a);let h=r,u=l;e(),(n||s||$)&&t&&!H&&P(t,r,i,Y)&&(u=oi(a),h=li(a));const f={w:Gs(Vs(r.w,h.w)+i.w),h:Gs(Vs(r.h,h.h)+i.h)},m={w:Gs((_?c.innerWidth:u.w+Gs(l.w-r.w))+i.w),h:Gs((_?c.innerHeight+i.h:u.h+Gs(l.h-r.h))+i.h)};J=L(m),K=M(((e,t)=>{const i=window.devicePixelRatio%1!=0?1:0,s={w:Gs(e.w-t.w),h:Gs(e.h-t.h)};return{w:s.w>i?s.w:0,h:s.h>i?s.h:0}})(f,m),o)}const[X,Q]=J,[Z,ee]=K,[te,ie]=q,[se,re]=W,ne={x:Z.w>0,y:Z.h>0},ae=U&&V&&(ne.x||ne.y)||U&&ne.x&&!ne.y||V&&ne.y&&!ne.x;if(y||R||re||ie||Q||ee||B||$||j){const e={marginRight:0,marginBottom:0,marginLeft:0,width:"",overflowY:"",overflowX:""},t=((e,t,i,s)=>{const r=(e,t)=>{const i=Js(e),s=t&&i&&e.replace(`${zs}-`,"")||"";return[t&&!i?e:"",Js(s)?"hidden":s]},[n,a]=r(i.x,t.x),[o,l]=r(i.y,t.y);return s.overflowX=a&&o?a:n,s.overflowY=l&&n?l:o,x(e,s)})(H,ne,N,e),i=P(t,te,se,Y);l||A(t,Y,i,e),j&&D(t,O),l?(rt(r,Ci,e.overflowX),rt(r,Ii,e.overflowY)):xe(a,e)}ot(r,Pi,Ri,ae),ot(n,Hi,ji,ae),l||ot(a,Fi,Bi,G);const[oe,le]=E(x(H).Ot);return s({Ot:oe,zt:{x:X.w,y:X.h},Et:{x:Z.w,y:Z.h},At:ne}),{It:le,Ht:Q,Lt:ee}}},Qs=(e,t,i)=>{const s={},r=t||{};return De(et(e).concat(et(r)),(t=>{const n=e[t],a=r[t];s[t]=!!(i||n||a)})),s},Zs=(e,t,i,s)=>{let r=!1;const{Mt:n,Dt:a,Rt:o,kt:l,Bt:d,Vt:h}=s||{},c=Jt((()=>r&&i(!0)),{g:33,v:99}),[u,f]=((e,t,i)=>{let s,r=!1;const n=n=>{if(i){const a=i.reduce(((t,i)=>{if(i){const[s,r]=i,a=r&&s&&(n?n(s):ct(s,e));a&&a.length&&r&&Ne(r)&&Ke(t,[a,r.trim()],!0)}return t}),[]);De(a,(i=>De(i[0],(n=>{const a=i[1],o=s.get(n)||[];
2if(e.contains(n)){const e=pi(n,a,(i=>{r?(e(),s.delete(n)):t(i)}));s.set(n,Ke(o,e))}else Qe(o),s.delete(n)}))))}};return i&&(s=new WeakMap,n()),[()=>{r=!0},n]})(e,c,o),m=a||[],p=(n||[]).concat(m),g=(r,n)=>{const a=d||qt,o=h||qt,c=new Set,u=new Set;let p=!1,g=!1;if(De(r,(i=>{const{attributeName:r,target:n,type:d,oldValue:h,addedNodes:f,removedNodes:y}=i,_="attributes"===d,v="childList"===d,b=e===n,w=_&&Ne(r)?rt(n,r):0,T=0!==w&&h!==w,M=qe(m,r)>-1&&T;if(t&&(v||!b)){const t=!_,d=_&&T,u=d&&l&&ut(n,l),m=(u?!a(n,r,h,w):t||d)&&!o(i,!!u,e,s);De(f,(e=>c.add(e))),De(y,(e=>c.add(e))),g=g||m}!t&&b&&T&&!a(n,r,h,w)&&(u.add(r),p=p||M)})),c.size>0&&f((e=>Je(c).reduce(((t,i)=>(Ke(t,ct(e,i)),ut(i,e)?Ke(t,i):t)),[]))),t)return!n&&g&&i(!1),[!1];if(u.size>0||p){const e=[Je(u),p];return!n&&i.apply(0,e),e}},y=new At((e=>g(e)));return y.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:p,subtree:t,childList:t,characterData:t}),r=!0,[()=>{r&&(u(),y.disconnect(),r=!1)},()=>{if(r){c.m();const e=y.takeRecords();return!Xe(e)&&g(e,!0)}}]},er=3333333,tr=(e,t,i)=>{const{Yt:s,Pt:r}=i||{},n=fs()[gs],{V:a}=xs(),o=Tt(`<div class="${Vi}"><div class="${zi}"></div></div>`)[0],l=o.firstChild,d=ti.bind(0,e),[h]=Ae({o:!1,_:!0,u:(e,t)=>!(!e||!ci(e)&&ci(t))}),c=e=>{const i=je(e)&&e.length>0&&Ue(e[0]),r=!i&&Be(e[0]);let n=!1,l=!1,d=!0;if(i){const[t,,i]=h(e.pop().contentRect),s=ci(t),r=ci(i);n=!i&&!!r||!s,l=!r&&s,d=!n}else r?[,d]=e:l=!0===e;if(s&&d){const t=r?e[0]:ti(o);lt(o,t?a.n?-er:a.i?0:er:er),dt(o,er)}n||t({wt:!r,jt:r?e:void 0,Pt:!!l})},u=[];return[()=>{Qe(u),bt(o)},()=>{let t=r&&c;if(Ct){const e=new Ct(c);e.observe(l),Ke(u,(()=>{e.disconnect()}))}else if(n){const[e,i]=n.O(l,c,r);t=e,Ke(u,i)}if(s){const[e]=Ae({o:void 0},d);Ke(u,pi(o,"scroll",(t=>{const i=e(),[s,r,n]=i;r&&(Bt(l,"ltr rtl"),Ht(l,s?"rtl":"ltr"),c([!!s,r,n])),gi(t)})))}t&&(Ht(o,Gi),Ke(u,pi(o,"animationstart",t,{C:!!Ct}))),(Ct||n)&&_t(e,o)}]},ir=(e,t)=>
2{let i;const s=wt("os-trinsic-observer"),r=[],[n]=Ae({o:!1}),a=(e,i)=>{if(e){const s=n((e=>0===e.h||e.isIntersecting||e.intersectionRatio>0)(e)),[,r]=s;return r&&!i&&t(s)&&[s]}},o=(e,t)=>e&&e.length>0&&a(e.pop(),t);return[()=>{Qe(r),bt(s)},()=>{if(Pt)i=new Pt((e=>o(e)),{root:e}),i.observe(s),Ke(r,(()=>{i.disconnect()}));else{const e=()=>{const e=ai(s);a(e)},[t,i]=tr(s,e);Ke(r,t),i(),e()}_t(e,s)},()=>i&&o(i.takeRecords(),!0)]},sr=`[${Pi}]`,rr=`[${Fi}]`,nr=["tabindex"],ar=["wrap","cols","rows"],or=["id","class","style","open"],lr=(e,t,i)=>{let s,r,n;const{J:a,K:o,nt:l,lt:d,ft:h,_t:c,ht:u}=e,{Y:f}=xs(),[m]=Ae({u:Vt,o:{w:0,h:0}},(()=>{const e=c(Bi,Ri),t=c($i,""),i=t&<(o),s=t&&dt(o);u(Bi,Ri),u($i,""),u("",Yi,!0);const r=li(l),n=li(o),a=di(o);return u(Bi,Ri,e),u($i,"",t),u("",Yi),lt(o,i),dt(o,s),{w:n.w+r.w+a.w,h:n.h+r.h+a.h}})),p=d?ar:or.concat(ar),g=Jt(i,{g:()=>s,v:()=>r,p(e,t){const[i]=e,[s]=t;return[et(i).concat(et(s)).reduce(((e,t)=>(e[t]=i[t]||s[t],e)),{})]}}),y=e=>{De(e||nr,(e=>{if(qe(nr,e)>-1){const t=rt(a,e);Ne(t)?rt(o,e,t):at(o,e)}}))},_=(e,s)=>{const[r,n]=e,a={vt:n};return t({gt:r}),!s&&i(a),a},v=({wt:e,jt:s,Pt:r})=>{const n=!e||r?i:g;let a=!1;if(s){const[e,i]=s;a=i,t({yt:e})}n({wt:e,Pt:r,St:a})},b=(e,t)=>{const[,s]=m(),r={bt:s};return s&&!t&&(e?i:g)(r),r},w=(e,t,i)=>{const s={Tt:t};return t?!i&&g(s):h||y(e),s},[T,M,S]=l||!f?ir(a,_):[qt,qt,qt],[L,k]=h?[qt,qt]:tr(a,v,{Pt:!0,Yt:!0}),[E,D]=Zs(a,!1,w,{Dt:or,Mt:or.concat(nr)});let x;const A=h&&Ct&&new Ct((e=>{const t=e[e.length-1].contentRect,i=ci(t),s=ci(x);v({wt:!0,Pt:!s&&i}),x=t}));return[()=>{T(),L(),n&&n[0](),A&&A.disconnect(),E()},()=>{A&&A.observe(a),y(),k(),M()},()=>{const e={},t=D(),i=S(),s=n&&n[1]();return t&&tt(e,w.apply(0,Ke(t,!0))),i&&tt(e,_.apply(0,Ke(i,!0))),s&&tt(e,b.apply(0,Ke(s,!0))),e},e=>{const[t]=e("update.ignoreMutation"),[i,a]=e("update.attributes"),[d,c]=e("update.elementEvents"),[u,f]=e("update.debounce"),m=e=>He(t)&&t(e);if((c||a)&&(n&&(n[1](),n[0]()),n=Zs(l||o,!0,b,{Mt:p.concat(i||[]),Rt:d,kt:sr,Vt:(e,t)=>{const{target:i,attributeName:s}=e;return!(t||!s||h)&>(i,sr,rr)||!!pt(i,`.${Ji}`)||!!m(e)}})),f)if(g.m(),je(u)){const e=u[0],t=u[1];s=$e(e)&&e,r=$e(t)&&t}else $e(u)?(s=u,r=!1):(s=!1,r=!1)}]},dr={x:0,y:0},hr=(e,t)=>{const i=Ys(t,{}),[s,r,n]=wi(),[a,o,l]=Hs(e),d=Fs((e=>({tt:{t:0,r:0,b:0,l:0},$t:!1,P:{marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},zt:dr,Et:dr,Ot:{x:"hidden",y:"hidden"},At:{x:!1,y:!1},gt:!1,yt:ti(e.J)}))(a)),[h,c]=d,u=((e,t)=>{const{Z:i,K:s,ht:r,ft:n}=e,{A:a,I:o,Y:l}=xs(),d=!a&&(o.x||o.y),h=[js(e,t),Us(e,t),Xs(e,t)];return(e,t,a)=>{const o=Qs(tt({wt:!1,xt:!1,St:!1,vt:!1,Ht:!1,Lt:!1,It:!1,Tt:!1,bt:!1,Pt:!1},t),{},a),c=d||!l,u=c&<(s),f=c&&dt(s);r("",Yi,!0);let m=o;return De(h,(t=>{m=Qs(m,t(m,e,!!a)||{},a)})),lt(s,u),dt(s,f),r("",Yi),n||(lt(i,0),dt(i,0)),m}})(a,d),f=(e,t,i)=>{const s=et(e).some((t=>!!e[t])),r=s||!it(t)||i;return r&&n("u",[e,t,i]),r},[m,p,g,y]=lr(a,c,(e=>f(u(i,e),{},!1))),_=h.bind(0);return _.Nt=e=>s("u",e),_.qt=()=>{const{Z:e,K:t,rt:i,it:s}=a,r=s?i.documentElement:e,n=lt(r),l=dt(r);p(),o(),lt(t,n),dt(t,l)},_.Ft=a,[(e,i)=>{const s=Ys(t,e,i);return y(s),f(u(s,g(),i),e,!!i)},_,()=>{r(),m(),l()}]},{round:cr}=Math,ur="pointerup pointerleave pointercancel lostpointercapture",fr=(e,t)=>pi(e,"mousedown",pi.bind(0,t,"click",gi,{C:!0,$:!0}),{$:!0}),mr=(e,t,i,s,r,n,a)=>{const{V:o}=xs(),{Gt:l,Xt:d,Ut:h}=s,c="scroll"+(a?"Left":"Top"),u="client"+(a?"X":"Y"),f=a?"width":"height",m=a?"left":"top",p=a?"w":"h",g=a?"x":"y",y=(e,t)=>i=>{const{Et:s}=n(),u=ai(d)[p]-ai(l)[p],f=t*i/u*s[g],m=ti(h)&&a?o.n||o.i?1:-1:1;r[c]=e+f*m};return pi(d,"pointerdown",(s=>{const n=pt(s.target,`.${ts}`)===l,a=n?l:d;if(ot(t,Pi,Oi,!0),((e,t,i)=>{const s=t.scrollbars,{button:r,isPrimary:n,pointerType:a}=e,{pointers:o}=s;return 0===r&&n&&s[i?"dragScroll":"clickScroll"]&&(o||[]).includes(a)})(s,e,n)){const e=!n&&s.shiftKey,o=()=>hi(l),h=()=>hi(d),p=(e,t)=>(e||o())[m]-(t||h())[m],_=y(r[c]||0,1/(e=>{const{width:t,height:i}=hi(e),{w:s,h:r}=ai(e);return{x:cr(t)/s||1,y:cr(i)/r||1}})(r)[g]),v=s[u],b=o(),w=h(),T=b[f],M=p(b,w)+T/2,S=v-w[m],L=n?0:S-M,k=e=>{Qe(E),a.releasePointerCapture(e.pointerId)},E=[ot.bind(0,t,Pi,Oi),pi(i,ur,k),pi(i,"selectstart",(e=>yi(e)),{S:!1}),pi(d,ur,k),pi(d,"pointermove",(t=>{const i=t[u]-v;(n||e)&&_(L+i)}))];if(e)_(L);else if(!n){const e=fs()[Ms];e&&Ke(E,e.O(_,p,L,T,S))}a.setPointerCapture(s.pointerId)}}))},{min:pr,max:gr,round:yr}=Math,_r=(e,t,i,s)=>{if(s){const e=i?"x":"y",{Et:t,zt:r}=s,n=r[e],a=t[e];return gr(0,pr(1,n/(n+a)))}const r=i?"width":"height",n=hi(e)[r],a=hi(t)[r];return gr(0,pr(1,n/a))},vr=(e,t,i,s)=>t&&e.animate(i,{timeline:t,composite:s}),br=(e,t)=>({transform:[si("0%",t),si(t&&e?"100%":"-100%",t)],[t?e?"right":"left":"top"]:["0%","100%"]}),wr=e=>`${Math.max(0,e-.5)}px`,Tr=(e,t,i,s)=>vr(e,t,{transform:[si("0px",s),si(wr(i),s)]},"add"),Mr=(e,t)=>
2Ot?new Ot({source:e,axis:t}):null,Sr=(e,t,i)=>{const{q:s,H:r}=xs(),{scrollbars:n}=s(),{slot:a}=n,{rt:o,Z:l,J:d,K:h,ut:c,st:u,it:f,ft:m}=t,{scrollbars:p}=c?{}:e,{slot:g}=p||{},y=new Map,_=Mr(u,"x"),v=Mr(u,"y"),b=Cs([l,d,h],(()=>m&&f?l:d),a,g),w=e=>m&&!f&&mt(e)===h,T=e=>{y.forEach(((t,i)=>{(!e||qe(je(e)?e:[e],i)>-1)&&((t||[]).forEach((e=>{e&&e.cancel()})),y.delete(i))}))},M=(e,t,i)=>{const s=i?Ht:Bt;De(e,(e=>{s(e.Ut,t)}))},S=(e,t)=>{De(e,(e=>{const[i,s]=t(e);xe(i,s)}))},L=(e,t,i)=>{S(e,(e=>{const{Gt:s,Xt:r}=e;return[s,{[i?"width":"height"]:`${(100*_r(s,r,i,t)).toFixed(3)}%`}]}))},k=(e,t,i)=>{v||v||S(e,(e=>{const{Gt:s,Xt:r,Ut:n}=e,a=((e,t,i,s,r,n)=>{const{V:a}=xs(),o=n?"x":"y",l=n?"Left":"Top",{Et:d}=s,h=yr(d[o]),c=pr(h,gr(0,i[`scroll${l}`])),u=n&&r,f=a.i?c:h-c,m=pr(1,(u?f:c)/h),p=_r(e,t,n);return 1/p*(1-p)*m})(s,r,u,t,ti(n),i);return[s,{transform:a==a?si(`${(100*a).toFixed(3)}%`,i):""}]}))},E=e=>{const{Ut:t}=e,i=w(t)&&t;return[i,{transform:i?si([`${lt(u)}px`,`${dt(u)}px`]):""}]},D=[],x=[],A=[],P=(e,t,i)=>{const s=Be(i),r=!s||!i;(!s||i)&&M(x,e,t),r&&M(A,e,t)},C=e=>{const t=e?Qi:Zi,s=e?x:A,n=Xe(s)?rs:"",a=wt(`${Ji} ${t} ${n}`),l=wt(es),h=wt(ts),c={Ut:a,Xt:l,Gt:h};return r||Ht(a,"os-no-css-vars"),_t(a,l),_t(l,h),Ke(s,c),Ke(D,[bt.bind(0,a),T,i(c,P,o,d,u,e?_:v,e)]),c},I=C.bind(0,!0),R=C.bind(0,!1);return I(),R(),[{Wt:e=>{L(x,e,!0),L(A,e)},Zt:e=>{k(x,e,!0),k(A,e)},Jt:()=>{const e=(e,{Ut:t,Gt:i})=>{T(i),y.set(i,[vr(i,e?_:v,br(e&&ti(t),e))])};x.forEach(e.bind(0,!0)),A.forEach(e.bind(0,!1))},Kt:({Et:e})=>{A.concat(x).forEach((({Ut:t})=>{T(t),w(t)&&y.set(t,[Tr(t,_,e.x,!0),Tr(t,v,e.y)])}))},Qt:()=>{v||v||(m&&S(x,E),m&&S(A,E))},tn:P,nn:{B:_,sn:x,en:I,cn:S.bind(0,x)},rn:{B:v,sn:A,en:R,cn:S.bind(0,A)}},()=>{_t(b,x[0].Ut),_t(b,A[0].Ut),Yt((()=>{P(rs)}),300)},Qe.bind(0,D)]},Lr=e=>"mouse"===e.pointerType,kr=(e,t,i,s)=>{let r,n,a,o,l,d=qt,h=0;const c=Fs({}),[u]=c,[f,m]=Kt(),[p,g]=Kt(),[y,_]=Kt(100),[v,b]=Kt(100),[w,T]=Kt(100),[M,S]=Kt((()=>h)),[L,k,E]=Sr(e,i.Ft,((e,t)=>(i,s,r,n,a,o,l)=>{const{Ut:d}=i,[h,c]=Kt(333),u=!!a.scrollBy;let f=!0;return Qe.bind(0,[pi(d,"pointerenter",(()=>{s(ns,!0)})),pi(d,"pointerleave pointercancel",(()=>{s(ns)})),pi(d,"wheel",(e=>{const{deltaX:t,deltaY:i,deltaMode:r}=e;u&&f&&0===r&&mt(d)===n&&a.scrollBy({left:t,top:i,behavior:"smooth"}),f=!1,s(ds,!0),h((()=>{f=!0,s(ds)})),yi(e)}),{S:!1,$:!0}),fr(d,r),mr(e,n,r,i,a,t,l),c])})(t,i)),{J:D,et:x,it:A}=i.Ft,{tn:P,Wt:C,Zt:I,Jt:R,Kt:O,Qt:Y}=L,F=e=>{P(os,e,!0),P(os,e,!1)},$=(e,t)=>{if(S(),e)P(ls);else{const e=()=>P(ls,!0);h>0&&!t?M(e):e()}},N=e=>{Lr(e)&&(o=n,o&&$(!0))},B=[_,S,b,T,g,m,E,pi(D,"pointerover",N,{C:!0}),pi(D,"pointerenter",N),pi(D,"pointerleave",(e=>{Lr(e)&&(o=!1,n&&$(!1))})),pi(D,"pointermove",(e=>{Lr(e)&&r&&f((()=>{_(),$(!0),v((()=>{r&&$(!1)}))}))})),pi(x,"scroll",(e=>{p((()=>{I(i()),a&&$(!0),y((()=>{a&&!o&&$(!1)}))})),s(e),Y()}))],H=u.bind(0);return H.Ft=L,H.qt=k,[(e,s,o)=>{const{Ht:c,Lt:u,It:f,St:m,Pt:p}=o,{I:g}=xs(),y=Ys(t,e,s),_=i(),{Et:v,Ot:b,yt:T,At:M}=_,[S,L]=y("showNativeOverlaidScrollbars"),[k,E]=y("scrollbars.theme"),[D,N]=y("scrollbars.visibility"),[B,H]=y("scrollbars.autoHide"),[j,U]=y("scrollbars.autoHideSuspend"),[V]=y("scrollbars.autoHideDelay"),[G,z]=y("scrollbars.dragScroll"),[W,q]=y("scrollbars.clickScroll"),K=p&&!s,J=M.x||M.y,X=c||u||m,Q=f||N,Z=S&&g.x&&g.y,ee=(e,t)=>{const i="visible"===D||"auto"===D&&"scroll"===e;return P(is,i,t),i};if(h=V,K&&(j&&J?(F(!1),d(),w((()=>{d=pi(x,"scroll",F.bind(0,!0),{C:!0})}))):F(!0)),L&&P("os-theme-none",Z),E&&(P(l),P(k,!0),l=k),U&&!j&&F(!0),H&&(r="move"===B,n="leave"===B,a="never"!==B,$(!a,!0)),z&&P(cs,G),q&&P(hs,W),Q){const e=ee(b.x,!0),t=ee(b.y,!1);P(ss,!(e&&t))}X&&(C(_),I(_),R(_),O(_),Y(),P(as,!v.x,!0),P(as,!v.y,!1),P(Xi,T&&!A))},H,()=>{Qe(B),d()}]},Er=(e,t,i)=>{He(e)&&e(t||void 0,i||void 0)},Dr=(e,t,i)=>{const{G:s,q:r,j:n,N:a}=xs(),o=fs(),l=ze(e),d=l?e:e.target,h=Rs(d);if(t&&!h){let h=!1;const c=e=>{const t=fs().__osOptionsValidationPlugin,i=t&&t.O;return i?i(e,!0):e},u=tt({},s(),c(t)),[f,m,p]=wi(i),[g,y,_]=hr(e,u),[v,b,w]=kr(e,u,y,(e=>p("scroll",[E,e]))),T=(e,t)=>g(e,!!t),M=T.bind(0,{},!0),S=n(M),L=a(M),k=e=>{(e=>{Is.delete(e)})(d),S(),L(),w(),_(),h=!0,p("destroyed",[E,!!e]),m()},E={options(e,t){if(e){const i=t?s():{},r=Si(u,tt(i,c(e)));it(r)||(tt(u,r),T(r))}return tt({},u)},on:f,off:(e,t)=>{e&&t&&m(e,t)},state(){const{zt:e,Et:t,Ot:i,At:s,tt:r,$t:n,yt:a}=y();return tt({},{overflowEdge:e,overflowAmount:t,overflowStyle:i,hasOverflow:s,padding:r,paddingAbsolute:n,directionRTL:a,destroyed:h})},elements(){const{Z:e,J:t,tt:i,K:s,nt:r,st:n,et:a}=y.Ft,{nn:o,rn:l}
2=b.Ft,d=e=>{const{Gt:t,Xt:i,Ut:s}=e;return{scrollbar:s,track:i,handle:t}},h=e=>{const{sn:t,en:i}=e,s=d(t[0]);return tt({},s,{clone:()=>{const e=d(i());return v({},!0,{}),e}})};return tt({},{target:e,host:t,padding:i||s,viewport:s,content:r||s,scrollOffsetElement:n,scrollEventElement:a,scrollbarHorizontal:h(o),scrollbarVertical:h(l)})},update:e=>T({},e),destroy:k.bind(0)};return y.Nt(((e,t,i)=>{v(t,i,e)})),((e,t)=>{Is.set(e,t)})(d,E),De(et(o),(e=>Er(o[e],0,E))),((e,t,i)=>{const{nativeScrollbarsOverlaid:s,body:r}=i||{},{I:n,A:a}=xs(),{nativeScrollbarsOverlaid:o,body:l}=t,d=null!=s?s:o,h=Oe(r)?l:r,c=(n.x||n.y)&&d,u=e&&(Ye(h)?!a:h);return!!c||!!u})(y.Ft.it,r().cancel,!l&&e.cancel)?(k(!0),E):(y.qt(),b.qt(),p("initialized",[E]),y.Nt(((e,t,i)=>{const{wt:s,St:r,vt:n,Ht:a,Lt:o,It:l,bt:d,Tt:h}=e;p("updated",[E,{updateHints:{sizeChanged:s,directionChanged:r,heightIntrinsicChanged:n,overflowEdgeChanged:a,overflowAmountChanged:o,overflowStyleChanged:l,contentMutation:d,hostMutation:h},changedOptions:t,force:i}])})),E.update(!0),E)}return h};Dr.plugin=e=>{De((e=>{const t=[];return De(je(e)?e:[e],(e=>{De(et(e),(i=>{Ke(t,us[i]=e[i])}))})),t})(e),(e=>Er(e,Dr)))},Dr.valid=e=>{const t=e&&e.elements,i=He(t)&&t();return Ge(i)&&!!Rs(i.target)},Dr.env=()=>{const{k:e,I:t,A:i,V:s,Y:r,H:n,B:a,U:o,W:l,q:d,F:h,G:c,X:u}=xs();return tt({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:i,rtlScrollBehavior:s,flexboxGlue:r,cssCustomProperties:n,scrollTimeline:a,staticDefaultInitialization:o,staticDefaultOptions:l,getDefaultInitialization:d,setDefaultInitialization:h,getDefaultOptions:c,setDefaultOptions:u})};var xr=i(3673),Ar=i.n(xr),Pr=i(4035);function Cr(e,t){return"contained"===function(e,t,i){var s=e.getBoundingClientRect(),r=t?t.getBoundingClientRect():new DOMRect(0,0,window.innerWidth||document.documentElement.clientWidth,window.innerHeight||document.documentElement.clientHeight);if(i){var n=r.x,a=r.y,o=r.width,l=r.height;i.top&&(a+=i.top,l-=i.top),i.bottom&&(l-=i.bottom),i.left&&(n+=i.left,o-=i.left),i.right&&(o-=i.right),r=new DOMRect(n,a,o,l)}return s.left<r.left&&s.right>r.left||s.left<r.right&&s.right>r.right||s.top<r.top&&s.bottom>r.top||s.top<r.bottom&&s.bottom>r.bottom?"overlap":s.left>=r.left&&s.top>=r.top&&s.bottom<=r.bottom&&s.right<=r.right?"contained":"outside"}(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}var Ir=i(941),Rr=i.n(Ir);let Or="â¯";class Yr{static get separator(){return Or}static set separator(e){Or=e}static parse(e){if(!isNaN(parseFloat(e))&&isFinite(e))return Number(e);const t=String(e).trim().replace(/^-/,"").replace(/[NSEW]$/i,"").split(/[^0-9.,]+/);if(""==t[t.length-1]&&t.splice(t.length-1),""==t)return NaN;let i=null;switch(t.length){case 3:i=t[0]/1+t[1]/60+t[2]/3600;break;case 2:i=t[0]/1+t[1]/60;break;case 1:i=t[0];break;default:return NaN}return/^-|[WS]$/i.test(e.trim())&&(i=-i),Number(i)}static toDms(e,t="d",i=void 0){if(isNaN(e))return null;if("string"==typeof e&&""==e.trim())return null;if("boolean"==typeof e)return null;if(e==1/0)return null;if(null==e)return null;if(void 0===i)switch(t){case"d":case"deg":i=4;break;case"dm":case"deg+min":i=2;break;case"dms":case"deg+min+sec":i=0;break;default:t="d",i=4}e=Math.abs(e);let s=null,r=null,n=null,a=null;switch(t){default:case"d":case"deg":r=e.toFixed(i),r<100&&(r="0"+r),r<10&&(r="0"+r),s=r+"°";break;case"dm":case"deg+min":r=Math.floor(e),n=(60*e%60).toFixed(i),60==n&&(n=(0).toFixed(i),r++),r=("000"+r).slice(-3),n<10&&(n="0"+n),s=r+"°"+Yr.separator+n+"â²";break;case"dms":case"deg+min+sec":r=Math.floor(e),n=Math.floor(3600*e/60)%60,a=(3600*e%60).toFixed(i),60==a&&(a=(0).toFixed(i),n++),60==n&&(n=0,r++),r=("000"+r).slice(-3),n=("00"+n).slice(-2),a<10&&(a="0"+a),s=r+"°"+Yr.separator+n+"â²"+Yr.separator+a+"â³"}return s}static toLat(e,t,i){const s=Yr.toDms(Yr.wrap90(e),t,i);return null===s?"â":s.slice(1)+Yr.separator+(e<0?"S":"N")}static toLon(e,t,i){const s=Yr.toDms(Yr.wrap180(e),t,i);return null===s?"â":s+Yr.separator+(e<0?"W":"E")}static toBrng(e,t,i){const s=Yr.toDms(Yr.wrap360(e),t,i);return null===s?"â":s.replace("360","0")}
2static fromLocale(e){const t=123456.789.toLocaleString(),i={thousands:t.slice(3,4),decimal:t.slice(7,8)};return e.replace(i.thousands,"â").replace(i.decimal,".").replace("â",",")}static toLocale(e){const t=123456.789.toLocaleString(),i={thousands:t.slice(3,4),decimal:t.slice(7,8)};return e.replace(/,([0-9])/,"â$1").replace(".",i.decimal).replace("â",i.thousands)}static compassPoint(e,t=3){if(![1,2,3].includes(Number(t)))throw new RangeError(`invalid precision â${t}â`);e=Yr.wrap360(e);const i=4*2**(t-1);return["N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSW","SW","WSW","W","WNW","NW","NNW"][Math.round(e*i/360)%i*16/i]}static wrap90(e){if(-90<=e&&e<=90)return e;const t=e,i=360;return 1*Math.abs(((t-90)%i+i)%i-180)-90}static wrap180(e){if(-180<=e&&e<=180)return e;const t=360;return((360*e/t-180)%t+t)%t-180}static wrap360(e){if(0<=e&&e<360)return e;const t=360;return(360*e/t%t+t)%t}}Number.prototype.toRadians=function(){return this*Math.PI/180},Number.prototype.toDegrees=function(){return 180*this/Math.PI};const Fr=Yr,$r=Math.PI;class Nr{constructor(e,t){if(isNaN(e))throw new TypeError(`invalid lat â${e}â`);if(isNaN(t))throw new TypeError(`invalid lon â${t}â`);this._lat=Fr.wrap90(Number(e)),this._lon=Fr.wrap180(Number(t))}get lat(){return this._lat}get latitude(){return this._lat}set lat(e){if(this._lat=isNaN(e)?Fr.wrap90(Fr.parse(e)):Fr.wrap90(Number(e)),isNaN(this._lat))throw new TypeError(`invalid lat â${e}â`)}set latitude(e){if(this._lat=isNaN(e)?Fr.wrap90(Fr.parse(e)):Fr.wrap90(Number(e)),isNaN(this._lat))throw new TypeError(`invalid latitude â${e}â`)}get lon(){return this._lon}get lng(){return this._lon}get longitude(){return this._lon}set lon(e){if(this._lon=isNaN(e)?Fr.wrap180(Fr.parse(e)):Fr.wrap180(Number(e)),isNaN(this._lon))throw new TypeError(`invalid lon â${e}â`)}set lng(e){if(this._lon=isNaN(e)?Fr.wrap180(Fr.parse(e)):Fr.wrap180(Number(e)),isNaN(this._lon))throw new TypeError(`invalid lng â${e}â`)}set longitude(e){if(this._lon=isNaN(e)?Fr.wrap180(Fr.parse(e)):Fr.wrap180(Number(e)),isNaN(this._lon))throw new TypeError(`invalid longitude â${e}â`)}static get metresToKm(){return.001}static get metresToMiles(){return 1/1609.344}static get metresToNauticalMiles(){return 1/1852}static parse(...e){if(0==e.length)throw new TypeError("invalid (empty) point");if(null===e[0]||null===e[1])throw new TypeError("invalid (null) point");let t,i;if(2==e.length&&([t,i]=e,t=Fr.wrap90(Fr.parse(t)),i=Fr.wrap180(Fr.parse(i)),isNaN(t)||isNaN(i))
2)throw new TypeError(`invalid point â${e.toString()}â`);if(1==e.length&&"string"==typeof e[0]&&([t,i]=e[0].split(","),t=Fr.wrap90(Fr.parse(t)),i=Fr.wrap180(Fr.parse(i)),isNaN(t)||isNaN(i)))throw new TypeError(`invalid point â${e[0]}â`);if(1==e.length&&"object"==typeof e[0]){const s=e[0];if("Point"==s.type&&Array.isArray(s.coordinates)?[i,t]=s.coordinates:(null!=s.latitude&&(t=s.latitude),null!=s.lat&&(t=s.lat),null!=s.longitude&&(i=s.longitude),null!=s.lng&&(i=s.lng),null!=s.lon&&(i=s.lon),t=Fr.wrap90(Fr.parse(t)),i=Fr.wrap180(Fr.parse(i))),isNaN(t)||isNaN(i))throw new TypeError(`invalid point â${JSON.stringify(e[0])}â`)}if(isNaN(t)||isNaN(i))throw new TypeError(`invalid point â${e.toString()}â`);return new Nr(t,i)}distanceTo(e,t=6371e3){if(e instanceof Nr||(e=Nr.parse(e)),isNaN(t))throw new TypeError(`invalid radius â${t}â`);const i=t,s=this.lat.toRadians(),r=this.lon.toRadians(),n=e.lat.toRadians(),a=n-s,o=e.lon.toRadians()-r,l=Math.sin(a/2)*Math.sin(a/2)+Math.cos(s)*Math.cos(n)*Math.sin(o/2)*Math.sin(o/2);return i*(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)))}initialBearingTo(e){if(e instanceof Nr||(e=Nr.parse(e)),this.equals(e))return NaN;const t=this.lat.toRadians(),i=e.lat.toRadians(),s=(e.lon-this.lon).toRadians(),r=Math.cos(t)*Math.sin(i)-Math.sin(t)*Math.cos(i)*Math.cos(s),n=Math.sin(s)*Math.cos(i),a=Math.atan2(n,r).toDegrees();return Fr.wrap360(a)}finalBearingTo(e){e instanceof Nr||(e=Nr.parse(e));const t=e.initialBearingTo(this)+180;return Fr.wrap360(t)}midpointTo(e){e instanceof Nr||(e=Nr.parse(e));const t=this.lat.toRadians(),i=this.lon.toRadians(),s=e.lat.toRadians(),r=(e.lon-this.lon).toRadians(),n=Math.cos(t),a=0,o=Math.sin(t),l={x:n+Math.cos(s)*Math.cos(r),y:a+Math.cos(s)*Math.sin(r),z:o+Math.sin(s)},d=Math.atan2(l.z,Math.sqrt(l.x*l.x+l.y*l.y)),h=i+Math.atan2(l.y,l.x),c=d.toDegrees(),u=h.toDegrees();return new Nr(c,u)}intermediatePointTo(e,t){if(e instanceof Nr||(e=Nr.parse(e)),this.equals(e))return new Nr(this.lat,this.lon);const i=this.lat.toRadians(),s=this.lon.toRadians(),r=e.lat.toRadians(),n=e.lon.toRadians(),a=r-i,o=n-s,l=Math.sin(a/2)*Math.sin(a/2)+Math.cos(i)*Math.cos(r)*Math.sin(o/2)*Math.sin(o/2),d=2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)),h=Math.sin((1-t)*d)/Math.sin(d),c=Math.sin(t*d)/Math.sin(d),u=h*Math.cos(i)*Math.cos(s)+c*Math.cos(r)*Math.cos(n),f=h*Math.cos(i)*Math.sin(s)+c*Math.cos(r)*Math.sin(n),m=h*Math.sin(i)+c*Math.sin(r),p=Math.atan2(m,Math.sqrt(u*u+f*f)),g=Math.atan2(f,u),y=p.toDegrees(),_=g.toDegrees();return new Nr(y,_)}destinationPoint(e,t,i=6371e3){const s=e/i,r=Number(t).toRadians(),n=this.lat.toRadians(),a=this.lon.toRadians(),o=Math.sin(n)*Math.cos(s)+Math.cos(n)*Math.sin(s)*Math.cos(r),l=Math.asin(o),d=Math.sin(r)*Math.sin(s)*Math.cos(n),h=Math.cos(s)-Math.sin(n)*o,c=a+Math.atan2(d,h),u=l.toDegrees(),f=c.toDegrees();return new Nr(u,f)}static intersection(e,t,i,s){if(e instanceof Nr||(e=Nr.parse(e)),i instanceof Nr||(i=Nr.parse(i)),isNaN(t))throw new TypeError(`invalid brng1 â${t}â`);if(isNaN(s))throw new TypeError(`invalid brng2 â${s}â`);const r=e.lat.toRadians(),n=e.lon.toRadians(),a=i.lat.toRadians(),o=i.lon.toRadians(),l=Number(t).toRadians(),d=Number(s).toRadians(),h=a-r,c=o-n,u=2*Math.asin(Math.sqrt(Math.sin(h/2)*Math.sin(h/2)+Math.cos(r)*Math.cos(a)*Math.sin(c/2)*Math.sin(c/2)));if(Math.abs(u)<Number.EPSILON)return new Nr(e.lat,e.lon);const f=(Math.sin(a)-Math.sin(r)*Math.cos(u))/(Math.sin(u)*Math.cos(r)),m=(Math.sin(r)-Math.sin(a)*Math.cos(u))/(Math.sin(u)*Math.cos(a)),p=Math.acos(Math.min(Math.max(f,-1),1)),g=Math.acos(Math.min(Math.max(m,-1),1)),y=l-(Math.sin(o-n)>0?p:2*$r-p),_=(Math.sin(o-n)>0?2*$r-g:g)-d;if(0==Math.sin(y)&&0==Math.sin(_))return null;if(Math.sin(y)*Math.sin(_)<0)return null;const v=-Math.cos(y)*Math.cos(_)+Math.sin(y)*Math.sin(_)*Math.cos(u),b=Math.atan2(Math.sin(u)*Math.sin(y)*Math.sin(_),Math.cos(_)+Math.cos(y)*v),w=Math.asin(Math.min(Math.max(Math.sin(r)*Math.cos(b)+Math.cos(r)*Math.sin(b)*Math.cos(l),-1),1)),T=n+Math.atan2(Math.sin(l)*Math.sin(b)*Math.cos(r),Math.cos(b)-Math.sin(r)*Math.sin(w)),M=w.toDegrees(),S=T.toDegrees();return new Nr(M,S)}crossTrackDistanceTo(e,t,i=6371e3){e instanceof Nr||(e=Nr.parse(e)),t instanceof Nr||(t=Nr.parse(t));const s=i;if(this.equals(e))return 0;const r=e.distanceTo(this,s)/s,n=e.initialBearingTo(this).toRadians(),a=e.initialBearingTo(t).toRadians();return Math.asin(Math.sin(r)*Math.sin(n-a))*s}alongTrackDistanceTo(e,t,i=6371e3){e instanceof Nr||(e=Nr.parse(e)),t instanceof Nr||(t=Nr.parse(t));const s=i;if(this.equals(e))return 0;const r=e.distanceTo(this,s)/s,n=e.initialBearingTo(this).toRadians(),a=e.initialBearingTo(t).toRadians(),o=Math.asin(Math.sin(r)*Math.sin(n-a));return Math.acos(Math.cos(r)/Math.abs(Math.cos(o)))*Math.sign(Math.cos(a-n))*s}maxLatitude(e){const t=Number(e).toRadians(),i=this.lat.toRadians();return Math.acos(Math.abs(Math.sin(t)*Math.cos(i))).toDegrees()}static crossingParallels(e,t,i){if(e.equals(t))return null;const s=Number(i).toRadians(),r=e.lat.toRadians(),n=e.lon.toRadians(),a=t.lat.toRadians(),o=t.lon.toRadians()-n,l=Math.sin(r)*Math.cos(a)*Math.cos(s)*Math.sin(o),d=Math.sin(r)*Math.cos(a)*Math.cos(s)*Math.cos(o)-Math.cos(r)*Math.sin(a)*Math.cos(s),h=Math.cos(r)*Math.cos(a)*Math.sin(s)*Math.sin(o);if(h*h>l*l+d*d)return null;const c=Math.atan2(-d,l),u=Math.acos(h/Math.sqrt(l*l+d*d)),f=n+c+u,m=(n+c-u).toDegrees(),p=f.toDegrees();return{lon1:Fr.wrap180(m),lon2:Fr.wrap180(p)}}rhumbDistanceTo(e,t=6371e3){e instanceof Nr||(e=Nr.parse(e));const i=t,s=this.lat.toRadians(),r=e.lat.toRadians(),n=r-s;let a=Math.abs(e.lon-this.lon).toRadians();Math.abs(a)>$r&&(a=a>0?-(2*$r-a):2*$r+a);const o=Math.log(Math.tan(r/2+$r/4)/Math.tan(s/2+$r/4)),l=Math.abs(o)>1e-11?n/o:Math.cos(s);return Math.sqrt(n*n+l*l*a*a)*i}rhumbBearingTo(e){if(e instanceof Nr||(e=Nr.parse(e)),this.equals(e))return NaN;const t=this.lat.toRadians(),i=e.lat.toRadians();let s=(e.lon-this.lon).toRadians();Math.abs(s)>$r&&(s=s>0?-(2*$r-s):2*$r+s);const r=Math.log(Math.tan(i/2+$r/4)/Math.tan(t/2+$r/4)),n=Math.atan2(s,r).toDegrees();return Fr.wrap360(n)}rhumbDestinationPoint(e,t,i=6371e3){const s=this.lat.toRadians(),r=this.lon.toRadians(),n=Number(t).toRadians(),a=e/i,o=a*Math.cos(n);let l=s+o;Math.abs(l)>$r/2&&(l=l>0?$r-l:-$r-l);const d=Math.log(Math.tan(l/2+$r/4)/Math.tan(s/2+$r/4)),h=Math.abs(d)>1e-11?o/d:Math.cos(s),c=r+a*Math.sin(n)/h,u=l.toDegrees(),f=c.toDegrees();return new Nr(u,f)}rhumbMidpointTo(e){e instanceof Nr||(e=Nr.parse(e));const t=this.lat.toRadians();let i=this.lon.toRadians();const s=e.lat.toRadians(),r=e.lon.toRadians();Math.abs(r-i)>$r&&(i+=2*$r);const n=(t+s)/2,a=Math.tan($r/4+t/2),o=Math.tan($r/4+s/2),l=Math.tan($r/4+n/2);let d=((r-i)*Math.log(l)+i*Math.log(o)-r*Math.log(a))/Math.log(o/a);isFinite(d)||(d=(i+r)/2);const h=n.toDegrees(),c=d.toDegrees();
2return new Nr(h,c)}static areaOf(e,t=6371e3){const i=t,s=e[0].equals(e[e.length-1]);s||e.push(e[0]);const r=e.length-1;let n=0;for(let t=0;t<r;t++){const i=e[t].lat.toRadians(),s=e[t+1].lat.toRadians(),r=(e[t+1].lon-e[t].lon).toRadians();n+=2*Math.atan2(Math.tan(r/2)*(Math.tan(i/2)+Math.tan(s/2)),1+Math.tan(i/2)*Math.tan(s/2))}(function(e){let t=0,i=e[0].initialBearingTo(e[1]);for(let s=0;s<e.length-1;s++){const r=e[s].initialBearingTo(e[s+1]),n=e[s].finalBearingTo(e[s+1]);t+=(r-i+540)%360-180,t+=(n-r+540)%360-180,i=n}const s=e[0].initialBearingTo(e[1]);t+=(s-i+540)%360-180;return Math.abs(t)<90})(e)&&(n=Math.abs(n)-2*$r);const a=Math.abs(n*i*i);return s||e.pop(),a}equals(e){return e instanceof Nr||(e=Nr.parse(e)),!(Math.abs(this.lat-e.lat)>Number.EPSILON)&&!(Math.abs(this.lon-e.lon)>Number.EPSILON)}toGeoJSON(){return{type:"Point",coordinates:[this.lon,this.lat]}}toString(e="d",t=void 0){if(!["d","dm","dms","n"].includes(e))throw new RangeError(`invalid format â${e}â`);if("n"==e)return null==t&&(t=4),`${this.lat.toFixed(t)},${this.lon.toFixed(t)}`;return`${Fr.toLat(this.lat,e,t)}, ${Fr.toLon(this.lon,e,t)}`}}const{getOwnPropertyNames:Br,getOwnPropertySymbols:Hr}=Object,{hasOwnProperty:jr}=Object.prototype;function Ur(e,t){return function(i,s,r){return e(i,s,r)&&t(i,s,r)}}function Vr(e){return function(t,i,s){if(!t||!i||"object"!=typeof t||"object"!=typeof i)return e(t,i,s);const{cache:r}=s,n=r.get(t),a=r.get(i);if(n&&a)return n===i&&a===t;r.set(t,i),r.set(i,t);const o=e(t,i,s);return r.delete(t),r.delete(i),o}}function Gr(e){return Br(e).concat(Hr(e))}const zr=Object.hasOwn||((e,t)=>jr.call(e,t));function Wr(e,t){return e===t||!e&&!t&&e!=e&&t!=t}const{getOwnPropertyDescriptor:qr,keys:Kr}=Object;function Jr(e,t){return e.byteLength===t.byteLength&&hn(new Uint8Array(e),new Uint8Array(t))}function Xr(e,t,i){let s=e.length;if(t.length!==s)return!1;for(;s-- >0;)if(!i.equals(e[s],t[s],s,s,e,t,i))return!1;return!0}function Qr(e,t){return e.byteLength===t.byteLength&&hn(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Zr(e,t){return Wr(e.getTime(),t.getTime())}function en(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function tn(e,t){return e===t}function sn(e,t,i){const s=e.size;if(s!==t.size)return!1;if(!s)return!0;const r=new Array(s),n=e.entries();let a,o,l=0;for(;(a=n.next())&&!a.done;){const s=t.entries();let n=!1,d=0;for(;(o=s.next())&&!o.done;){if(r[d]){d++;continue}const s=a.value,h=o.value;if(i.equals(s[0],h[0],l,d,e,t,i)&&i.equals(s[1],h[1],s[0],h[0],e,t,i)){n=r[d]=!0;break}d++}if(!n)return!1;l++}return!0}const rn=Wr;function nn(e,t,i){const s=Kr(e);let r=s.length;if(Kr(t).length!==r)return!1;for(;r-- >0;)if(!un(e,t,i,s[r]))return!1;return!0}function an(e,t,i){const s=Gr(e);let r,n,a,o=s.length;if(Gr(t).length!==o)return!1;for(;o-- >0;){if(r=s[o],!un(e,t,i,r))return!1;if(n=qr(e,r),a=qr(t,r),(n||a)&&(!n||!a||n.configurable!==a.configurable||n.enumerable!==a.enumerable||n.writable!==a.writable))return!1}return!0}function on(e,t){return Wr(e.valueOf(),t.valueOf())}function ln(e,t){return e.source===t.source&&e.flags===t.flags}function dn(e,t,i){const s=e.size;if(s!==t.size)return!1;if(!s)return!0;const r=new Array(s),n=e.values();let a,o;for(;(a=n.next())&&!a.done;){const s=t.values();let n=!1,l=0;for(;(o=s.next())&&!o.done;){if(!r[l]&&i.equals(a.value,o.value,a.value,o.value,e,t,i)){n=r[l]=!0;break}l++}if(!n)return!1}return!0}function hn(e,t){let i=e.byteLength;if(t.byteLength!==i||e.byteOffset!==t.byteOffset)return!1;for(;i-- >0;)if(e[i]!==t[i])return!1;return!0}function cn(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function un(e,t,i,s){return!("_owner"!==s&&"__o"!==s&&"__v"!==s||!e.$$typeof&&!t.$$typeof)||zr(t,s)&&i.equals(e[s],t[s],s,s,e,t,i)}const fn={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array
2]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},mn=Object.prototype.toString;function pn({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:i,areDatesEqual:s,areErrorsEqual:r,areFunctionsEqual:n,areMapsEqual:a,areNumbersEqual:o,areObjectsEqual:l,arePrimitiveWrappersEqual:d,areRegExpsEqual:h,areSetsEqual:c,areTypedArraysEqual:u,areUrlsEqual:f,unknownTagComparators:m}){return function(p,g,y){if(p===g)return!0;if(null==p||null==g)return!1;const _=typeof p;if(_!==typeof g)return!1;if("object"!==_)return"number"===_?o(p,g,y):"function"===_&&n(p,g,y);const v=p.constructor;if(v!==g.constructor)return!1;if(v===Object)return l(p,g,y);if(Array.isArray(p))return t(p,g,y);if(v===Date)return s(p,g,y);if(v===RegExp)return h(p,g,y);if(v===Map)return a(p,g,y);if(v===Set)return c(p,g,y);const b=mn.call(p);if("[object Date]"===b)return s(p,g,y);if("[object RegExp]"===b)return h(p,g,y);if("[object Map]"===b)return a(p,g,y);if("[object Set]"===b)return c(p,g,y);if("[object Object]"===b)return"function"!=typeof p.then&&"function"!=typeof g.then&&l(p,g,y);if("[object URL]"===b)return f(p,g,y);if("[object Error]"===b)return r(p,g,y);if("[object Arguments]"===b)return l(p,g,y);if(fn[b])return u(p,g,y);if("[object ArrayBuffer]"===b)return e(p,g,y);if("[object DataView]"===b)return i(p,g,y);if("[object Boolean]"===b||"[object Number]"===b||"[object String]"===b)return d(p,g,y);if(m){let e=m[b];if(!e){const t=function(e){return null!=e?e[Symbol.toStringTag]:void 0}(p);t&&(e=m[t])}if(e)return e(p,g,y)}return!1}}const gn=yn();yn({strict:!0}
2),yn({circular:!0}),yn({circular:!0,strict:!0}),yn({createInternalComparator:()=>Wr}),yn({strict:!0,createInternalComparator:()=>Wr}),yn({circular:!0,createInternalComparator:()=>Wr}),yn({circular:!0,createInternalComparator:()=>Wr,strict:!0});function yn(e={}){const{circular:t=!1,createInternalComparator:i,createState:s,strict:r=!1}=e,n=function({circular:e,createCustomConfig:t,strict:i}){let s={areArrayBuffersEqual:Jr,areArraysEqual:i?an:Xr,areDataViewsEqual:Qr,areDatesEqual:Zr,areErrorsEqual:en,areFunctionsEqual:tn,areMapsEqual:i?Ur(sn,an):sn,areNumbersEqual:rn,areObjectsEqual:i?an:nn,arePrimitiveWrappersEqual:on,areRegExpsEqual:ln,areSetsEqual:i?Ur(dn,an):dn,areTypedArraysEqual:i?Ur(hn,an):hn,areUrlsEqual:cn,unknownTagComparators:void 0};if(t&&(s=Object.assign({},s,t(s))),e){const e=Vr(s.areArraysEqual),t=Vr(s.areMapsEqual),i=Vr(s.areObjectsEqual),r=Vr(s.areSetsEqual);s=Object.assign({},s,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:i,areSetsEqual:r})}return s}(e),a=pn(n),o=i?i(a):(l=a,function(e,t,i,s,r,n,a){return l(e,t,a)});var l;return function({circular:e,comparator:t,createState:i,equals:s,strict:r}){if(i)return function(n,a){const{cache:o=(e?new WeakMap:void 0),meta:l}=i();return t(n,a,{cache:o,equals:s,meta:l,strict:r})};if(e)return function(e,i){return t(e,i,{cache:new WeakMap,equals:s,meta:void 0,strict:r})};const n={cache:void 0,equals:s,meta:void 0,strict:r};return function(e,i){return t(e,i,n)}}({circular:t,comparator:a,createState:s,equals:o,strict:r})}const _n=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class vn{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[t,i]=new Uint8Array(e,0,2);if(219!==t)throw new Error("Data does not appear to be in a KDBush format.");const s=i>>4;if(1!==s)throw new Error(`Got v${s} data when expected v1.`);const r=_n[15&i];if(!r)throw new Error("Unrecognized array type.");const[n]=new Uint16Array(e,2,1),[a]=new Uint32Array(e,4,1);return new vn(a,n,r,e)}constructor(e,t=64,i=Float64Array,s){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=i,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const r=_n.indexOf(this.ArrayType),n=2*e*this.ArrayType.BYTES_PER_ELEMENT,a=e*this.IndexArrayType.BYTES_PER_ELEMENT,o=(8-a%8)%8;if(r<0)throw new Error(`Unexpected typed array class: ${i}.`);s&&s instanceof ArrayBuffer?(this.data=s,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+a+o,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+n+a+o),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+a+o,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+r]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){const i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=e,this.coords[this._pos++]=t,i}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return bn(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,i,s){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:r,coords:n,nodeSize:a}=this,o=[0,r.length-1,0],l=[];for(;o.length;){const d=o.pop()||0,h=o.pop()||0,c=o.pop()||0;if(h-c<=a){for(let a=c;a<=h;a++){const o=n[2*a],d=n[2*a+1];o>=e&&o<=i&&d>=t&&d<=s&&l.push(r[a])}continue}const u=c+h>>1,f=n[2*u],m=n[2*u+1];f>=e&&f<=i&&m>=t&&m<=s&&l.push(r[u]),(0===d?e<=f:t<=m)&&(o.push(c),o.push(u-1),o.push(1-d)),(0===d?i>=f:s>=m)&&(o.push(u+1),o.push(h),o.push(1-d))}return l}within(e,t,i){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:s,coords:r,nodeSize:n}=this,a=[0,s.length-1,0],o=[],l=i*i;for(;a.length;){const d=a.pop()||0,h=a.pop()||0,c=a.pop()||0;if(h-c<=n){for(let i=c;i<=h;i++)Sn(r[2*i],r[2*i+1],e,t)<=l&&o.push(s[i]);continue}const u=c+h>>1,f=r[2*u],m=r[2*u+1];Sn(f,m,e,t)<=l&&o.push(s[u]),(0===d?e-i<=f:t-i<=m)&&(a.push(c),a.push(u-1),a.push(1-d)),(0===d?e+i>=f:t+i>=m)&&(a.push(u+1),a.push(h),a.push(1-d))}return o}}function bn(e,t,i,s,r,n){if(r-s<=i)return;const a=s+r>>1;
vendor: 5,539 bytes, line 2
2wn(e,t,a,s,r,n),bn(e,t,i,s,a-1,1-n),bn(e,t,i,a+1,r,1-n)}function wn(e,t,i,s,r,n){for(;r>s;){if(r-s>600){const a=r-s+1,o=i-s+1,l=Math.log(a),d=.5*Math.exp(2*l/3),h=.5*Math.sqrt(l*d*(a-d)/a)*(o-a/2<0?-1:1);wn(e,t,i,Math.max(s,Math.floor(i-o*d/a+h)),Math.min(r,Math.floor(i+(a-o)*d/a+h)),n)}const a=t[2*i+n];let o=s,l=r;for(Tn(e,t,s,i),t[2*r+n]>a&&Tn(e,t,s,r);o<l;){for(Tn(e,t,o,l),o++,l--;t[2*o+n]<a;)o++;for(;t[2*l+n]>a;)l--}t[2*s+n]===a?Tn(e,t,s,l):(l++,Tn(e,t,l,r)),l<=i&&(s=l+1),i<=l&&(r=l-1)}}function Tn(e,t,i,s){Mn(e,i,s),Mn(t,2*i,2*s),Mn(t,2*i+1,2*s+1)}function Mn(e,t,i){const s=e[t];e[t]=e[i],e[i]=s}function Sn(e,t,i,s){const r=e-i,n=t-s;return r*r+n*n}const Ln={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},kn=Math.fround||(En=new Float32Array(1),e=>(En[0]=+e,En[0]));var En;class Dn{constructor(e){this.options=Object.assign(Object.create(Ln),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:t,minZoom:i,maxZoom:s}=this.options;t&&console.time("total time");const r=`prepare ${e.length} points`;t&&console.time(r),this.points=e;const n=[];for(let t=0;t<e.length;t++){const i=e[t];if(!i.geometry)continue;const[s,r]=i.geometry.coordinates,a=kn(Pn(s)),o=kn(Cn(r));n.push(a,o,1/0,t,-1,1),this.options.reduce&&n.push(0)}let a=this.trees[s+1]=this._createTree(n);t&&console.timeEnd(r);for(let e=s;e>=i;e--){const i=+Date.now();a=this.trees[e]=this._createTree(this._cluster(a,e)),t&&console.log("z%d: %d clusters in %dms",e,a.numItems,+Date.now()-i)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let i=((e[0]+180)%360+360)%360-180;const s=Math.max(-90,Math.min(90,e[1]));let r=180===e[2]?180:((e[2]+180)%360+360)%360-180;const n=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)i=-180,r=180;else if(i>r){const e=this.getClusters([i,s,180,n],t),a=this.getClusters([-180,s,r,n],t);return e.concat(a)}const a=this.trees[this._limitZoom(t)],o=a.range(Pn(i),Cn(n),Pn(r),Cn(s)),l=a.data,d=[];for(const e of o){const t=this.stride*e;d.push(l[t+5]>1?xn(l,t,this.clusterProps):this.points[l[t+3]])}return d}getChildren(e){const t=this._getOriginId(e),i=this._getOriginZoom(e),s="No cluster with the specified id.",r=this.trees[i];if(!r)throw new Error(s);const n=r.data;if(t*this.stride>=n.length)throw new Error(s);const a=this.options.radius/(this.options.extent*Math.pow(2,i-1)),o=n[t*this.stride],l=n[t*this.stride+1],d=r.within(o,l,a),h=[];for(const t of d){const i=t*this.stride;n[i+4]===e&&h.push(n[i+5]>1?xn(n,i,this.clusterProps):this.points[n[i+3]])}if(0===h.length)throw new Error(s);return h}getLeaves(e,t,i){t=t||10,i=i||0;const s=[];return this._appendLeaves(s,e,t,i,0),s}getTile(e,t,i){const s=this.trees[this._limitZoom(e)],r=Math.pow(2,e),{extent:n,radius:a}=this.options,o=a/n,l=(i-o)/r,d=(i+1+o)/r,h={features:[]};return this._addTileFeatures(s.range((t-o)/r,l,(t+1+o)/r,d),s.data,t,i,r,h),0===t&&this._addTileFeatures(s.range(1-o/r,l,1,d),s.data,r,i,r,h),t===r-1&&this._addTileFeatures(s.range(0,l,o/r,d),s.data,-1,i,r,h),h.features.length?h:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const i=this.getChildren(e);if(t++,1!==i.length)break;e=i[0].properties.cluster_id}return t}_appendLeaves(e,t,i,s,r){const n=this.getChildren(t);for(const t of n){const n=t.properties;if(n&&n.cluster?r+n.point_count<=s?r+=n.point_count:r=this._appendLeaves(e,n.cluster_id,i,s,r):r<s?r++:e.push(t),e.length===i)break}return r}_createTree(e){const t=new vn(e.length/this.stride|0,this.options.nodeSize,Float32Array);for(let i=0;i<e.length;i+=this.stride)t.add(e[i],e[i+1]);return t.finish(),t.data=e,t}_addTileFeatures(e,t,i,s,r,n){for(const a of e){const e=a*this.stride,o=t[e+5]>1;let l,d,h;if(o)l=An(t,e,this.clusterProps),d=t[e],h=t[e+1];else{const i=this.points[t[e+3]];l=i.properties;const[s,r]=i.geometry.coordinates;d=Pn(s),h=Cn(r)}const c={type:1,geometry:[[Math.round(this.options.extent*(d*r-i)),Math.round(this.options.extent*(h*r-s))]],tags:l};let u;u=o||this.options.generateId?t[e+3]:this.points[t[e+3]].id,void 0!==u&&(c.id=u),n.features.push(c)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){const{radius:i,extent:s,reduce:r,minPoints:n}=this.options,a=i/(s*Math.pow(2,t)),o=e.data,l=[],d=this.stride;for(let i=0;i<o.length;i+=d){if(o[i+2]<=t)continue;o[i+2]=t;const s=o[i],h=o[i+1],c=e.within(o[i],o[i+1],a),u=o[i+5];let f=u;for(const e of c){const i=e*d;o[i+2]>t&&(f+=o[i+5])}if(f>u&&f>=n){let e,n=s*u,a=h*u,m=-1;const p=(i/d<<5)+(t+1)+this.points.length;for(const s of c){const l=s*d;if(o[l+2]<=t)continue;o[l+2]=t;const h=o[l+5];n+=o[l]*h,a+=o[l+1]*h,o[l+4]=p,r&&(e||(e=this._map(o,i,!0),m=this.clusterProps.length,this.clusterProps.push(e)),r(e,this._map(o,l)))}o[i+4]=p,l.push(n/f,a/f,1/0,p,-1,f),r&&l.push(m)}else{for(let e=0;e<d;e++)l.push(o[i+e]);if(f>1)for(const e of c){const i=e*d;if(!(o[i+2]<=t)){o[i+2]=t;for(let e=0;e<d;e++)l.push(o[i+e])}}}}return l}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,i){if(e[t+5]>1){const s=this.clusterProps[e[t+6]];return i?Object.assign({},s):s}const s=this.points[e[t+3]].properties,r=this.options.map(s);return i&&r===s?Object.assign({},r):r}}function xn(e,t,i){return{type:"Feature",id:e[t+3],properties:An(e,t,i),geometry:{type:"Point",coordinates:[In(e[t]),Rn(e[t+1])]}}}function An(e,t,i){const s=e[t+5],r=s>=1e4?`${Math.round(s/1e3)}
2k`:s>=1e3?Math.round(s/100)/10+"k":s,n=e[t+6],a=-1===n?{}:Object.assign({},i[n]);return Object.assign(a,{cluster:!0,cluster_id:e[t+3],point_count:s,point_count_abbreviated:r})}function Pn(e){return e/360+.5}function Cn(e){const t=Math.sin(e*Math.PI/180),i=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return i<0?0:i>1?1:i}function In(e){return 360*(e-.5)}function Rn(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function On(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(i[s[r]]=e[s[r]])}return i}"function"==typeof SuppressedError&&SuppressedError;class Yn{static isAdvancedMarkerAvailable(e){return google.maps.marker&&!0===e.getMapCapabilities().isAdvancedMarkersAvailable}static isAdvancedMarker(e){return google.maps.marker&&e instanceof google.maps.marker.AdvancedMarkerElement}static setMap(e,t){this.isAdvancedMarker(e)?e.map=t:e.setMap(t)}static getPosition(e){if(this.isAdvancedMarker(e)){if(e.position){if(e.position instanceof google.maps.LatLng)return e.position;if(Number.isFinite(e.position.lat)&&Number.isFinite(e.position.lng))return new google.maps.LatLng(e.position.lat,e.position.lng)}return new google.maps.LatLng(null)}return e.getPosition()}static getVisible(e){return!!this.isAdvancedMarker(e)||e.getVisible()}}class Fn{constructor({markers:e,position:t}){this.markers=[],e&&(this.markers=e),t&&(t instanceof google.maps.LatLng?this._position=t:this._position=new google.maps.LatLng(t))}get bounds(){if(0===this.markers.length&&!this._position)return;const e=new google.maps.LatLngBounds(this._position,this._position);for(const t of this.markers)e.extend(Yn.getPosition(t));return e}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter((e=>Yn.getVisible(e))).length}push(e){this.markers.push(e)}delete(){this.marker&&(Yn.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}}function $n(e,t="assertion failed"){if(null==e)throw Error(t)}class Nn{constructor({maxZoom:e=16}){this.maxZoom=e}noop({markers:e}){return Bn(e)}}const Bn=e=>e.map((e=>new Fn({position:Yn.getPosition(e),markers:[e]})));class Hn extends Nn{constructor(e){var{maxZoom:t,radius:i=60}=e,s=On(e,["maxZoom","radius"]);super({maxZoom:t}),this.markers=[],this.clusters=[],this.state={zoom:-1},this.superCluster=new Dn(Object.assign({maxZoom:this.maxZoom,radius:i},s))}calculate(e){let t=!1,i=e.map.getZoom();$n(i),i=Math.round(i);const s={zoom:i};if(!gn(e.markers,this.markers)){t=!0,this.markers=[...e.markers];const i=this.markers.map((e=>{const t=Yn.getPosition(e);return{type:"Feature",geometry:{type:"Point",coordinates:[t.lng(),t.lat()]},properties:{marker:e}}}));this.superCluster.load(i)}return t||(this.state.zoom<=this.maxZoom||s.zoom<=this.maxZoom)&&(t=!gn(this.state,s)),this.state=s,0===e.markers.length?(this.cluster
2s=[],{clusters:this.clusters,changed:t}):(t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t})}cluster({map:e}){const t=e.getZoom();return $n(t),this.superCluster.getClusters([-180,-90,180,90],Math.round(t)).map((e=>this.transformCluster(e)))}transformCluster({geometry:{coordinates:[e,t]},properties:i}){if(i.cluster)return new Fn({markers:this.superCluster.getLeaves(i.cluster_id,1/0).map((e=>e.properties.marker)),position:{lat:t,lng:e}});const s=i.marker;return new Fn({markers:[s],position:Yn.getPosition(s)})}}class jn{constructor(e,t){this.markers={sum:e.length};const i=t.map((e=>e.count)),s=i.reduce(((e,t)=>e+t),0);this.clusters={count:t.length,markers:{mean:s/t.length,sum:s,min:Math.min(...i),max:Math.max(...i)}}}}class Un{render({count:e,position:t},i,s){const r=`<svg fill="${e>Math.max(10,i.clusters.markers.mean)?"#ff0000":"#0000ff"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">\n<circle cx="120" cy="120" opacity=".6" r="70" />\n<circle cx="120" cy="120" opacity=".3" r="90" />\n<circle cx="120" cy="120" opacity=".2" r="110" />\n<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">${e}</text>\n</svg>`,n=`Cluster of ${e} markers`,a=Number(google.maps.Marker.MAX_ZINDEX)+e;if(Yn.isAdvancedMarkerAvailable(s)){const e=(new DOMParser).parseFromString(r,"image/svg+xml").documentElement;e.setAttribute("transform","translate(0 25)");const i={map:s,position:t,zIndex:a,title:n,content:e};return new google.maps.marker.AdvancedMarkerElement(i)}const o={position:t,zIndex:a,title:n,icon:{url:`data:image/svg+xml;base64,${btoa(r)}`,anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(o)}}class Vn{constructor(){!function(e,t){for(let i in t.prototype)e.prototype[i]=t.prototype[i]}(Vn,google.maps.OverlayView)}}var Gn;!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click",e.GMP_CLICK="gmp-click"}(Gn||(Gn={}));const zn=(e,t,i)=>{t.bounds&&i.fitBounds(t.bounds)};class Wn extends Vn{constructor({map:e,markers:t=[],algorithmOptions:i={},algorithm:s=new Hn(i),renderer:r=new Un,onClusterClick:n=zn}){super(),this.map=null,this.idleListener=null,this.markers=[...t],this.clusters=[],this.algorithm=s,this.renderer=r,this.onClusterClick=n,e&&this.setMap(e)}addMarker(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())}addMarkers(e,t){e.forEach((e=>{this.addMarker(e,!0)})),t||this.render()}removeMarker(e,t){const i=this.markers.indexOf(e);return-1!==i&&(Yn.setMap(e,null),this.markers.splice(i,1),t||this.render(),!0)}removeMarkers(e,t){let i=!1;return e.forEach((e=>{i=this.removeMarker(e,!0)||i})),i&&!t&&this.render(),i}clearMarkers(e){this.markers.length=0,e||this.render()}render(){const e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,Gn.CLUSTERING_BEGIN,this);const{clusters:t,changed:i}=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()});if(i||null==i){const e=new Set;for(const i of t)1==i.markers.length&&e.add(i.markers[0]);const i=[];for(const t of this.clusters)null!=t.marker&&(1==t.markers.length?e.has(t.marker)||Yn.setMap(t.marker,null):i.push(t.marker));this.clusters=t,this.renderClusters(),requestAnimationFrame((()=>i.forEach((e=>Yn.setMap(e,null)))))}google.maps.event.trigger(this,Gn.CLUSTERING_END,this)}}onAdd(){const e=this.getMap();$n(e),this.idleListener=e.addListener("idle",this.render.bind(this)),this.render()}onRemove(){this.idleListener&&google.maps.event.removeListener(this.idleListener),this.reset()}reset(){this.markers.forEach((e=>Yn.setMap(e,null))),this.clusters.forEach((e=>e.delete())),this.clusters=[]}renderClusters(){const e=new jn(this.markers,this.clusters),t=this.getMap();this.clusters.forEach((i=>{if(1===i.markers.length)i.marker=i.markers[0];else if(i.marker=this.renderer.render(i,e,t),i.markers.forEach((e=>Yn.setMap(e,null))),this.onClusterClick){const e=Yn.isAdvancedMarker(i.marker)?Gn.GMP_CLICK:Gn.CLUSTER_CLICK;i.marker.addListener(e,(e=>{google.maps.event.trigger(this,Gn.CLUSTER_CLICK,i),this.onClusterClick(e,i,t)}))}Yn.setMap(i.marker,t)}))}}const qn=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>
vendor: 5,066 bytes, line 2
2`#${CSS.escape(t)}`))),e),Kn=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),Jn=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Xn=/[^.]*(?=\..*)\.|.*/,Qn=/\..*/,Zn=/::\d+$/,ea={};let ta=1;const ia={mouseenter:"mouseover",mouseleave:"mouseout"},sa=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function ra(e,t){return t&&`${t}::${ta++}`||e.uidEvent||ta++}function na(e){const t=ra(e);return e.uidEvent=t,ea[t]=ea[t]||{},ea[t]}function aa(e,t,i=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===i))}function oa(e,t,i){const s="string"==typeof t,r=s?i:t||i;let n=ca(e);return sa.has(n)||(n=e),[s,r,n]}function la(e,t,i,s,r){if("string"!=typeof t||!e)return;let[n,a,o]=oa(t,i,s);if(t in ia){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};a=e(a)}const l=na(e),d=l[o]||(l[o]={}),h=aa(d,a,n?i:null);if(h)return void(h.oneOff=h.oneOff&&r);const c=ra(a,t.replace(Xn,"")),u=n?function(e,t,i){return function s(r){const n=e.querySelectorAll(t);for(let{target:a}=r;a&&a!==this;a=a.parentNode)for(const o of n)if(o===a)return fa(r,{delegateTarget:a}),s.oneOff&&ua.off(e,r.type,t,i),i.apply(a,[r])}}(e,i,a):function(e,t){return function i(s){return fa(s,{delegateTarget:e}),i.oneOff&&ua.off(e,s.type,t),t.apply(e,[s])}}(e,a);u.delegationSelector=n?i:null,u.callable=a,u.oneOff=r,u.uidEvent=c,d[c]=u,e.addEventListener(o,u,n)}function da(e,t,i,s,r){const n=aa(t[i],s,r);n&&(e.removeEventListener(i,n,Boolean(r)),delete t[i][n.uidEvent])}function ha(e,t,i,s){const r=t[i]||{};for(const[n,a]of Object.entries(r))n.includes(s)&&da(e,t,i,a.callable,a.delegationSelector)}function ca(e){return e=e.replace(Qn,""),ia[e]||e}const ua={on(e,t,i,s){la(e,t,i,s,!1)},one(e,t,i,s){la(e,t,i,s,!0)},off(e,t,i,s){if("string"!=typeof t||!e)return;const[r,n,a]=oa(t,i,s),o=a!==t,l=na(e),d=l[a]||{},h=t.startsWith(".");if(void 0===n){if(h)for(const i of Object.keys(l))ha(e,l,i,t.slice(1));for(const[i,s]of Object.entries(d)){const r=i.replace(Zn,"");o&&!t.includes(r)||da(e,l,a,s.callable,s.delegationSelector)}}else{if(!Object.keys(d).length)return;da(e,l,a,n,r?i:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;const s=Jn();let r=null,n=!0,a=!0,o=!1;t!==ca(t)&&s&&(r=s.Event(t,i),s(e).trigger(r),n=!r.isPropagationStopped(),a=!r.isImmediatePropagationStopped(),o=r.isDefaultPrevented());const l=fa(new Event(t,{bubbles:n,cancelable:!0}),i);return o&&l.preventDefault(),a&&e.dispatchEvent(l),l.defaultPrevented&&r&&r.preventDefault(),l}};function fa(e,t={}){for(const[i,s]of Object.entries(t))try{e[i]=s}catch{Object.defineProperty(e,i,{configurable:!0,get:()=>s})}return e}const ma=ua,pa=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t?t.split(",").map((e=>qn(e))).join(","):null},ga={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const i=[];let s=e.parentNode.closest(t);for(;s;)i.push(s),s=s.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!(e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")))(e)&&(e=>{if(!Kn(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const t=e.closest("summary");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return t})(e)))},getSelectorFromElement(e){const t=pa(e);return t&&ga.findOne(t)?t:null},getElementFromSelector(e){const t=pa(e);return t?ga.findOne(t):null},getMultipleElementsFromSelector(e){const t=pa(e);return t?ga.find(t):[]}},ya=ga;function _a(e){if("true"===e)return!0;
vendor: 4,652 bytes, line 2
2if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function va(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const ba={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${va(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${va(t)}`)},getDataAttributes(e){if(!e)return{};const t={},i=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const s of i){let i=s.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1),t[i]=_a(e.dataset[s])}return t},getDataAttribute:(e,t)=>_a(e.getAttribute(`data-bs-${va(t)}`))},wa=ba;const Ta=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const i=Kn(t)?wa.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...Kn(t)?wa.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[s,r]of Object.entries(t)){const t=e[s],n=Kn(t)?"element":null==(i=t)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(n))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${n}" but expected type "${r}".`)}var i}},Ma=".bs.focustrap",Sa=`focusin${Ma}`,La=`keydown.tab${Ma}`,ka="backward",Ea={autofocus:!0,trapElement:null},Da={autofocus:"boolean",trapElement:"element"};const xa=class extends Ta{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Ea}static get DefaultType(){return Da}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ma.off(document,Ma),ma.on(document,Sa,(e=>this._handleFocusin(e))),ma.on(document,La,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ma.off(document,Ma))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const i=ya.focusableChildren(t);0===i.length?t.focus():this._lastTabNavDirection===ka?i[i.length-1].focus():i[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?ka:"forward")}},Aa=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},Pa=Number.isSafeInteger||function(e){return"number"==typeof e&&Math.abs(e)<=Ca},Ca=Number.MAX_SAFE_INTEGER||9007199254740991;let Ia=function(e){return e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError",e}({}),Ra=function(e){return e.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",e.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",e.KEY_SYSTEM_NO_SESSION="keySystemNoSession",e.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",e.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",e.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",e.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",e.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",e.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",e.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",e.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",e.MANIFEST_LOAD_ERROR="manifestLoadError",e.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",e.MANIFEST_PARSING_ERROR="manifestParsingError",e.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",e.LEVEL_EMPTY_ERROR="levelEmptyError",e.LEVEL_LOAD_ERROR="levelLoadError",e.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",e.LEVEL_PARSING_ERROR="levelParsingError",e.LEVEL_SWITCH_ERROR="levelSwitchError",e.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",e.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",e.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",e.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",e.FRAG_LOAD_ERROR="fragLoadError",e.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",e.FRAG_DECRYPT_ERROR="fragDecryptError",e.FRAG_PARSING_ERROR="fragParsingError",e.FRAG_GAP="fragGap",e.REMUX_ALLOC_ER
vendor: 4,400 bytes, line 2
2ROR="remuxAllocError",e.KEY_LOAD_ERROR="keyLoadError",e.KEY_LOAD_TIMEOUT="keyLoadTimeOut",e.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",e.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",e.BUFFER_APPEND_ERROR="bufferAppendError",e.BUFFER_APPENDING_ERROR="bufferAppendingError",e.BUFFER_STALLED_ERROR="bufferStalledError",e.BUFFER_FULL_ERROR="bufferFullError",e.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",e.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",e.ASSET_LIST_LOAD_ERROR="assetListLoadError",e.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",e.ASSET_LIST_PARSING_ERROR="assetListParsingError",e.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",e.INTERNAL_EXCEPTION="internalException",e.INTERNAL_ABORTED="aborted",e.ATTACH_MEDIA_ERROR="attachMediaError",e.UNKNOWN="unknown",e}({}),Oa=function(e){return e.MEDIA_ATTACHING="hlsMediaAttaching",e.MEDIA_ATTACHED="hlsMediaAttached",e.MEDIA_DETACHING="hlsMediaDetaching",e.MEDIA_DETACHED="hlsMediaDetached",e.MEDIA_ENDED="hlsMediaEnded",e.STALL_RESOLVED="hlsStallResolved",e.BUFFER_RESET="hlsBufferReset",e.BUFFER_CODECS="hlsBufferCodecs",e.BUFFER_CREATED="hlsBufferCreated",e.BUFFER_APPENDING="hlsBufferAppending",e.BUFFER_APPENDED="hlsBufferAppended",e.BUFFER_EOS="hlsBufferEos",e.BUFFERED_TO_END="hlsBufferedToEnd",e.BUFFER_FLUSHING="hlsBufferFlushing",e.BUFFER_FLUSHED="hlsBufferFlushed",e.MANIFEST_LOADING="hlsManifestLoading",e.MANIFEST_LOADED="hlsManifestLoaded",e.MANIFEST_PARSED="hlsManifestParsed",e.LEVEL_SWITCHING="hlsLevelSwitching",e.LEVEL_SWITCHED="hlsLevelSwitched",e.LEVEL_LOADING="hlsLevelLoading",e.LEVEL_LOADED="hlsLevelLoaded",e.LEVEL_UPDATED="hlsLevelUpdated",e.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",e.LEVELS_UPDATED="hlsLevelsUpdated",e.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",e.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",e.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",e.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",e.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",e.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",e.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",e.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",e.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",e.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",e.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",e.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",e.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",e.CUES_PARSED="hlsCuesParsed",e.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",e.INIT_PTS_FOUND="hlsInitPtsFound",e.FRAG_LOADING="hlsFragLoading",e.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",e.FRAG_LOADED="hlsFragLoaded",e.FRAG_DECRYPTED="hlsFragDecrypted",e.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",e.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",e.FRAG_PARSING_METADATA="hlsFragParsingMetadata",e.FRAG_PARSED="hlsFragParsed",e.FRAG_BUFFERED="hlsFragBuffered",e.FRAG_CHANGED="hlsFragChanged",e.FPS_DROP="hlsFpsDrop",e.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",e.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",e.ERROR="hlsError",e.DESTROYING="hlsDestroying",e.KEY_LOADING="hlsKeyLoading",e.KEY_LOADED="hlsKeyLoaded",e.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",e.BACK_BUFFER_REACHED="hlsBackBufferReached",e.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",e.ASSET_LIST_LOADING="hlsAssetListLoading",e.ASSET_LIST_LOADED="hlsAssetListLoaded",e.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",e.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",e.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",e.INTERSTITIAL_STARTED="hlsInterstitialStarted",e.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",e.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",e.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",e.INTERSTITIAL_ENDED="hlsInterstitialEnded",e.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",e.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",e.EVENT_CUE_ENTER="hlsEventCueEnter",e}({});var Ya="manifest",Fa="level",$a="audioTrack",Na="subtitleTrack",Ba="main",Ha="audio",ja="subtitle";class Ua{constructor(e,t=0,i=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=i}sample(e,t){const i=Math.pow(this.alpha_,e);this.estimate_=t*(1-i)+i*this.estimate_,this.totalWeight_+=e}
vendor: 3,740 bytes, line 2
2getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class Va{constructor(e,t,i,s=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=i,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new Ua(e),this.fast_=new Ua(t),this.defaultTTFB_=s,this.ttfb_=new Ua(e)}update(e,t){const{slow_:i,fast_:s,ttfb_:r}=this;i.halfLife!==e&&(this.slow_=new Ua(e,i.getEstimate(),i.getTotalWeight())),s.halfLife!==t&&(this.fast_=new Ua(t,s.getEstimate(),s.getTotalWeight())),r.halfLife!==e&&(this.ttfb_=new Ua(e,r.getEstimate(),r.getTotalWeight()))}sample(e,t){const i=(e=Math.max(e,this.minDelayMs_))/1e3,s=8*t/i;this.fast_.sample(i,s),this.slow_.sample(i,s)}sampleTTFB(e){const t=e/1e3,i=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(i,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function Ga(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var s=i.call(e,t);if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function za(){return za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},za.apply(null,arguments)}function Wa(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function qa(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Wa(Object(i),!0).forEach((function(t){Ga(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Wa(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}class Ka{constructor(e,t){this.trace=void 0,this.debug=void 0,this.log=void 0,this.warn=void 0,this.info=void 0,this.error=void 0;const i=`[${e}]:`;this.trace=Ja,this.debug=t.debug.bind(null,i),this.log=t.log.bind(null,i),this.warn=t.warn.bind(null,i),this.info=t.info.bind(null,i),this.error=t.error.bind(null,i)}}const Ja=function(){},Xa={trace:Ja,debug:Ja,log:Ja,warn:Ja,info:Ja,error:Ja};function Qa(){return za({},Xa)}function Za(e,t,i){return t[e]?t[e].bind(t):function(e,t){const i=self.console[e];return i?i.bind(self.console,`${t?"["+t+"] ":""}[${e}] >`):Ja}(e,i)}const eo=Qa();const to=eo;function io(e=!0){if("undefined"==typeof self)return;return(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function so(e,t){const i=Object.keys(e),s=Object.keys(t),r=i.length,n=s.length;return!r||!n||r===n&&!i.some((e=>-1===s.indexOf(e)))}function ro(e,t=!1){if("undefined"!=typeof TextDecoder){const i=new TextDecoder("utf-8").decode(e);if(t){const e=i.indexOf("\0");return-1!==e?i.substring(0,e):i}return i.replace(/\0/g,"")}const i=e.length;let s,r,n,a="",o=0;for(;o<i;){if(s=e[o++],0===s&&t)return a;
vendor: 2,237 bytes, line 2
2if(0!==s&&3!==s)switch(s>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:a+=String.fromCharCode(s);break;case 12:case 13:r=e[o++],a+=String.fromCharCode((31&s)<<6|63&r);break;case 14:r=e[o++],n=e[o++],a+=String.fromCharCode((15&s)<<12|(63&r)<<6|63&n)}}return a}const no=function(e){let t="";for(let i=0;i<e.length;i++){let s=e[i].toString(16);s.length<2&&(s="0"+s),t+=s}return t};function ao(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var oo,lo={exports:{}};var ho,co,uo,fo,mo,po=(oo||(oo=1,ho=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,co=/^(?=([^\/?#]*))\1([^]*)$/,uo=/(?:\/|^)\.(?=\/)/g,fo=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,lo.exports=mo={buildAbsoluteURL:function(e,t,i){if(i=i||{},e=e.trim(),!(t=t.trim())){if(!i.alwaysNormalize)return e;var s=mo.parseURL(e);if(!s)throw new Error("Error trying to parse base URL.");return s.path=mo.normalizePath(s.path),mo.buildURLFromParts(s)}var r=mo.parseURL(t);if(!r)throw new Error("Error trying to parse relative URL.");if(r.scheme)return i.alwaysNormalize?(r.path=mo.normalizePath(r.path),mo.buildURLFromParts(r)):t;var n=mo.parseURL(e);if(!n)throw new Error("Error trying to parse base URL.");if(!n.netLoc&&n.path&&"/"!==n.path[0]){var a=co.exec(n.path);n.netLoc=a[1],n.path=a[2]}n.netLoc&&!n.path&&(n.path="/");var o={scheme:n.scheme,netLoc:r.netLoc,path:null,params:r.params,query:r.query,fragment:r.fragment};if(!r.netLoc&&(o.netLoc=n.netLoc,"/"!==r.path[0]))if(r.path){var l=n.path,d=l.substring(0,l.lastIndexOf("/")+1)+r.path;o.path=mo.normalizePath(d)}else o.path=n.path,r.params||(o.params=n.params,r.query||(o.query=n.query));return null===o.path&&(o.path=i.alwaysNormalize?mo.normalizePath(r.path):r.path),mo.buildURLFromParts(o)},parseURL:function(e){var t=ho.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(uo,"");e.length!==(e=e.replace(fo,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}}
vendor: 7,325 bytes, line 2
2),lo.exports);class go{constructor(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}}var yo="audio",_o="video",vo="audiovideo";class bo{constructor(e){this._byteRange=null,this._url=null,this._stats=null,this._streams=null,this.base=void 0,this.relurl=void 0,"string"==typeof e&&(e={url:e}),this.base=e,function(e,t){const i=So(e,t);i&&(i.enumerable=!0,Object.defineProperty(e,t,i))}(this,"stats")}setByteRange(e,t){const i=e.split("@",2);let s;s=1===i.length?(null==t?void 0:t.byteRangeEndOffset)||0:parseInt(i[1]),this._byteRange=[s,parseInt(i[0])+s]}get baseurl(){return this.base.url}get byteRange(){return null===this._byteRange?[]:this._byteRange}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get elementaryStreams(){return null===this._streams&&(this._streams={[yo]:null,[_o]:null,[vo]:null}),this._streams}set elementaryStreams(e){this._streams=e}get hasStats(){return null!==this._stats}get hasStreams(){return null!==this._streams}get stats(){return null===this._stats&&(this._stats=new go),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=po.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[yo]=null,e[_o]=null,e[vo]=null}}function wo(e){return"initSegment"!==e.sn}class To extends bo{constructor(e,t){super(t),this._decryptdata=null,this._programDateTime=null,this._ref=null,this._bitrate=void 0,this.rawProgramDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.playlistOffset=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=e}get byteLength(){if(this.hasStats){const e=this.stats.total;if(e)return e}if(this.byteRange){const e=this.byteRange[0],t=this.byteRange[1];if(Aa(e)&&Aa(t))return t-e}return null}get bitrate(){return this.byteLength?8*this.byteLength/this.duration:this._bitrate?this._bitrate:null}set bitrate(e){this._bitrate=e}get decryptdata(){const{levelkeys:e}=this;if(!e&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){const e=this.levelkeys.identity;if(e)this._decryptdata=e.getDecryptData(this.sn);else{const e=Object.keys(this.levelkeys);if(1===e.length)return this._decryptdata=this.levelkeys[e[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(null===this.programDateTime)return null;const e=Aa(this.duration)?this.duration:0;return this.programDateTime+1e3*e}get encrypted(){var e;if(null!=(e=this._decryptdata)&&e.encrypted)return!0;if(this.levelkeys){const e=Object.keys(this.levelkeys),t=e.length;if(t>1||1===t&&this.levelkeys[e[0]].encrypted)return!0}return!1}get programDateTime(){return null===this._programDateTime&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(e){Aa(e)?this._programDateTime=e:this._programDateTime=this.rawProgramDateTime=null}get ref(){return wo(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(e){this.setStart(this.start+e)}setStart(e){this.start=e,this._ref&&(this._ref.start=e)}setDuration(e){this.duration=e,this._ref&&(this._ref.duration=e)}setKeyFormat(e){if(this.levelkeys){const t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}abortRequests(){var e,t;null==(e=this.loader)||e.abort(),null==(t=this.keyLoader)||t.abort()}setElementaryStreamInfo(e,t,i,s,r,n=!1){const{elementaryStreams:a}=this,o=a[e];o?(o.startPTS=Math.min(o.startPTS,t),o.endPTS=Math.max(o.endPTS,i),o.startDTS=Math.min(o.startDTS,s),o.endDTS=Math.max(o.endDTS,r)):a[e]={startPTS:t,endPTS:i,startDTS:s,endDTS:r,partial:n}}}class Mo extends bo{constructor(e,t,i,s,r){super(i),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=s;const n=e.enumeratedString("BYTERANGE");n&&this.setByteRange(n,r),r&&(this.fragOffset=r.fragOffset+r.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo)}}function So(e,t){const i=Object.getPrototypeOf(e);if(i){const e=Object.getOwnPropertyDescriptor(i,t);return e||So(i,t)}}const Lo=Math.pow(2,32)-1,ko=[].push,Eo={video:1,audio:2,id3:3,text:4};function Do(e){return String.fromCharCode.apply(null,e)}function xo(e,t){const i=e[t]<<8|e[t+1];return i<0?65536+i:i}function Ao(e,t){const i=Co(e,t);return i<0?4294967296+i:i}function Po(e,t){let i=Ao(e,t);return i*=Math.pow(2,32),i+=Ao(e,t+4),i}function Co(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function Io(e,t,i){e[t]=i>>24,e[t+1]=i>>16&255,e[t+2]=i>>8&255,e[t+3]=255&i}function Ro(e,t){const i=[];if(!t.length)return i;const s=e.byteLength;for(let r=0;r<s;){const n=Ao(e,r),a=n>1?r+n:s;if(Do(e.subarray(r+4,r+8))===t[0])if(1===t.length)i.push(e.subarray(r+8,a));else{const s=Ro(e.subarray(r+8,a),t.slice(1));s.length&&ko.apply(i,s)}r=a}return i}function Oo(e){const t=[],i=e[0];let s=8;const r=Ao(e,s);s+=4;let n=0,a=0;0===i?(n=Ao(e,s),a=Ao(e,s+4),s+=8):(n=Po(e,s),a=Po(e,s+8),s+=16),s+=2;let o=e.length+a;const l=xo(e,s);s+=2;for(let i=0;i<l;i++){let i=s;const n=Ao(e,i);i+=4;const a=2147483647&n;if(1===(2147483648&n)>>>31)return to.warn("SIDX has hierarchical references (not supported)"),null;const l=Ao(e,i);i+=4,t.push({referenceSize:a,subsegmentDuration:l,info:{duration:l/r,start:o,end:o+a-1}}),o+=a,i+=4,s=i}return{earliestPresentationTime:n,timescale:r,version:i,referencesCount:l,references:t}}function Yo(e){const t=[],i=Ro(e,["moov","trak"]);for(let e=0;e<i.length;e++){const s=i[e],r=Ro(s,["tkhd"])[0];if(r){let e=r[0];const i=Ao(r,0===e?12:20),n=Ro(s,["mdia","mdhd"])[0];if(n){e=n[0];const r=Ao(n,0===e?12:20),a=Ro(s,["mdia","hdlr"])[0];if(a){const e=Do(a.subarray(8,12)),n={soun:yo,vide:_o}[e],o=Fo(Ro(s,["mdia","minf","stbl","stsd"])[0]);n?(t[i]={timescale:r,type:n,stsd:o},t[n]=qa({timescale:r,id:i},o)):t[i]={timescale:r,type:e,stsd:o}}}}}return Ro(e,["moov","mvex","trex"]).forEach((e=>{const i=Ao(e,4),s=t[i];s&&(s.default={duration:Ao(e,12),flags:Ao(e,20)})})),t}function Fo(e){const t=e.subarray(8),i=t.subarray(86),s=Do(t.subarray(4,8));let r,n=s;const a="enca"===s||"encv"===s;if(a){const e=Ro(t,[s])[0];Ro(e.subarray("enca"===s?28:78),["sinf"]).forEach((e=>{const t=Ro(e,["schm"])[0];if(t){const i=Do(t.subarray(4,8));if("cbcs"===i||"cenc"===i){const t=Ro(e,["frma"])[0];t&&(n=Do(t))}}}))}const o=n;
vendor: 25,796 bytes, line 2
2switch(n){case"avc1":case"avc2":case"avc3":case"avc4":{const e=Ro(i,["avcC"])[0];e&&e.length>3&&(n+="."+Bo(e[1])+Bo(e[2])+Bo(e[3]),r=$o("avc1"===o?"dva1":"dvav",i));break}case"mp4a":{const e=Ro(t,[s])[0],i=Ro(e.subarray(28),["esds"])[0];if(i&&i.length>7){let e=4;if(3!==i[e++])break;e=No(i,e),e+=2;const t=i[e++];if(128&t&&(e+=2),64&t&&(e+=i[e++]),4!==i[e++])break;e=No(i,e);const s=i[e++];if(64!==s)break;if(n+="."+Bo(s),e+=12,5!==i[e++])break;e=No(i,e);const r=i[e++];let a=(248&r)>>3;31===a&&(a+=1+((7&r)<<3)+((224&i[e])>>5)),n+="."+a}break}case"hvc1":case"hev1":{const e=Ro(i,["hvcC"])[0];if(e&&e.length>12){const t=e[1],i=["","A","B","C"][t>>6],s=31&t,r=Ao(e,2),a=(32&t)>>5?"H":"L",o=e[12],l=e.subarray(6,12);n+="."+i+s,n+="."+r.toString(16).toUpperCase(),n+="."+a+o;let d="";for(let e=l.length;e--;){const t=l[e];if(t||d){d="."+t.toString(16).toUpperCase()+d}}n+=d}r=$o("hev1"==o?"dvhe":"dvh1",i);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":n=$o(n,i)||n;break;case"vp09":{const e=Ro(i,["vpcC"])[0];if(e&&e.length>6){const t=e[4],i=e[5],s=e[6]>>4&15;n+="."+Ho(t)+"."+Ho(i)+"."+Ho(s)}break}case"av01":{const e=Ro(i,["av1C"])[0];if(e&&e.length>2){const t=e[1]>>>5,s=31&e[1],a=e[2]>>>7?"H":"M",o=(64&e[2])>>6,l=(32&e[2])>>5,d=2===t&&o?l?12:10:o?10:8,h=(16&e[2])>>4,c=(8&e[2])>>3,u=(4&e[2])>>2,f=3&e[2],m=1,p=1,g=1,y=0;n+="."+t+"."+Ho(s)+a+"."+Ho(d)+"."+h+"."+c+u+f+"."+Ho(m)+"."+Ho(p)+"."+Ho(g)+"."+y,r=$o("dav1",i)}break}}return{codec:n,encrypted:a,supplemental:r}}function $o(e,t){const i=Ro(t,["dvvC"]),s=i.length?i[0]:Ro(t,["dvcC"])[0];if(s){const t=s[2]>>1&127,i=s[2]<<5&32|s[3]>>3&31;return e+"."+Ho(t)+"."+Ho(i)}}function No(e,t){const i=t+5;for(;128&e[t++]&&t<i;);return t}function Bo(e){return("0"+e.toString(16).toUpperCase()).slice(-2)}function Ho(e){return(e<10?"0":"")+e}function jo(e){const t=Ro(e,["schm"])[0];if(t){const i=Do(t.subarray(4,8));if("cbcs"===i||"cenc"===i)return Ro(e,["schi","tenc"])[0]}return null}function Uo(e){const t=Ao(e,0);let i=8;1&t&&(i+=4),4&t&&(i+=4);let s=0;const r=Ao(e,4);for(let n=0;n<r;n++){if(256&t){s+=Ao(e,i),i+=4}512&t&&(i+=4),1024&t&&(i+=4),2048&t&&(i+=4)}return s}function Vo(e,t){const i=new Uint8Array(e.length+t.length);return i.set(e),i.set(t,e.length),i}function Go(e,t){const i=[],s=t.samples,r=t.timescale,n=t.id;let a=!1;return Ro(s,["moof"]).map((o=>{const l=o.byteOffset-8;Ro(o,["traf"]).map((o=>{const d=Ro(o,["tfdt"]).map((e=>{const t=e[0];let i=Ao(e,4);return 1===t&&(i*=Math.pow(2,32),i+=Ao(e,8)),i/r}))[0];return void 0!==d&&(e=d),Ro(o,["tfhd"]).map((d=>{const h=Ao(d,4),c=16777215&Ao(d,0);let u=0;const f=!!(16&c);let m=0;const p=!!(32&c);let g=8;h===n&&(!!(1&c)&&(g+=8),!!(2&c)&&(g+=4),!!(8&c)&&(u=Ao(d,g),g+=4),f&&(m=Ao(d,g),g+=4),p&&(g+=4),"video"===t.type&&(a=zo(t.codec)),Ro(o,["trun"]).map((n=>{const o=n[0],d=16777215&Ao(n,0),h=!!(1&d);let c=0;const f=!!(4&d),p=!!(256&d);let g=0;const y=!!(512&d);let _=0;const v=!!(1024&d),b=!!(2048&d);let w=0;const T=Ao(n,4);let M=8;h&&(c=Ao(n,M),M+=4),f&&(M+=4);let S=c+l;for(let l=0;l<T;l++){if(p?(g=Ao(n,M),M+=4):g=u,y?(_=Ao(n,M),M+=4):_=m,v&&(M+=4),b&&(w=0===o?Ao(n,M):Co(n,M),M+=4),t.type===_o){let t=0;for(;t<_;){const n=Ao(s,S);if(S+=4,Wo(a,s[S])){qo(s.subarray(S,S+n),a?2:1,e+w/r,i)}S+=n,t+=n+4}}e+=g/r}})))}))}))})),i}function zo(e){if(!e)return!1;const t=e.substring(0,4);return"hvc1"===t||"hev1"===t||"dvh1"===t||"dvhe"===t}function Wo(e,t){if(e){const e=t>>1&63;return 39===e||40===e}return 6===(31&t)}function qo(e,t,i,s){const r=Ko(e);let n=0;n+=t;let a=0,o=0,l=0;for(;n<r.length;){a=0;do{if(n>=r.length)break;l=r[n++],a+=l}while(255===l);o=0;do{if(n>=r.length)break;l=r[n++],o+=l}while(255===l);const e=r.length-n;let t=n;if(o<e)n+=o;else if(o>e){to.error(`Malformed SEI payload. ${o} is too small, only ${e} bytes left to parse.`);break}if(4===a){if(181===r[t++]){const e=xo(r,t);if(t+=2,49===e){const e=Ao(r,t);if(t+=4,1195456820===e){const e=r[t++];if(3===e){const n=r[t++],o=64&n,l=o?2+3*(31&n):0,d=new Uint8Array(l);if(o){d[0]=n;for(let e=1;e<l;e++)d[e]=r[t++]}s.push({type:e,payloadType:a,pts:i,bytes:d})}}}}}else if(5===a&&o>16){const e=[];for(let i=0;i<16;i++){const s=r[t++].toString(16);e.push(1==s.length?"0"+s:s),3!==i&&5!==i&&7!==i&&9!==i||e.push("-")}const n=o-16,l=new Uint8Array(n);for(let e=0;e<n;e++)l[e]=r[t++];s.push({payloadType:a,pts:i,uuid:e.join(""),userData:ro(l),userDataBytes:l})}}}function Ko(e){const t=e.byteLength,i=[];let s=1;for(;s<t-2;)0===e[s]&&0===e[s+1]&&3===e[s+2]?(i.push(s+2),s+=2):s++;if(0===i.length)return e;const r=t-i.length,n=new Uint8Array(r);let a=0;for(s=0;s<r;a++,s++)a===i[0]&&(a++,i.shift()),n[s]=e[a];return n}function Jo(e,t,i){if(16!==e.byteLength)throw new RangeError("Invalid system id");let s,r,n;s=0,r=new Uint8Array,n=new Uint8Array;const a=new Uint8Array(4);return i&&i.byteLength>0&&new DataView(a.buffer).setUint32(0,i.byteLength,!1),function(e,...t){const i=t.length;let s=8,r=i;for(;r--;)s+=t[r].byteLength;const n=new Uint8Array(s);for(n[0]=s>>24&255,n[1]=s>>16&255,n[2]=s>>8&255,n[3]=255&s,n.set(e,4),r=0,s=8;r<i;r++)n.set(t[r],s),s+=t[r].byteLength;return n}([112,115,115,104],new Uint8Array([0,0,0,0]),e,n,r,a,i||new Uint8Array)}function Xo(e){const t=e.getUint32(0),i=e.byteOffset,s=e.byteLength;if(s<t)return{offset:i,size:s};if(1886614376!==e.getUint32(4))return{offset:i,size:t};const r=e.getUint32(8)>>>24;if(0!==r&&1!==r)return{offset:i,size:t};const n=e.buffer,a=no(new Uint8Array(n,i+12,16)),o=e.getUint32(28);let l=null,d=null;if(0===r){if(t-32<o||o<22)return{offset:i,size:t};d=new Uint8Array(n,i+32,o)}else if(1===r){if(!o||s<i+32+16*o+16)return{offset:i,size:t};l=[];for(let e=0;e<o;e++)l.push(new Uint8Array(n,i+32+16*e,16))}return{version:r,systemId:a,kids:l,data:d,offset:i,size:t}}const Qo=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),Zo={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 el(e,t){const i=Zo[t];return!!i&&!!i[e.slice(0,4)]}function tl(e,t,i=!0){return!e.split(",").some((e=>!il(e,t,i)))}function il(e,t,i=!0){var s;const r=io(i);return null!=(s=null==r?void 0:r.isTypeSupported(sl(e,t)))&&s}function sl(e,t){return`${t}/mp4;codecs=${e}`}function rl(e){if(e){const t=e.substring(0,4);return Zo.video[t]}return 2}function nl(e){const t=Qo();return e.split(",").reduce(((e,i)=>{const s=t&&zo(i)?9:Zo.video[i];return s?(2*s+e)/(e?3:2):(Zo.audio[i]+e)/(e?2:1)}),0)}const al={};const ol=/flac|opus|mp4a\.40\.34/i;function ll(e,t=!0){return e.replace(ol,(e=>function(e,t=!0){if(al[e])return al[e];const i={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[e];for(let r=0;r<i.length;r++){var s;if(il(i[r],"audio",t))return al[e]=i[r],i[r];if("mp3"===i[r]&&null!=(s=io(t))&&s.isTypeSupported("audio/mpeg"))return""}return e}(e.toLowerCase(),t)))}function dl(e,t){if(e&&(e.length>4||-1!==["ac-3","ec-3","alac","fLaC","Opus"].indexOf(e)))return e;if(t){const i=t.split(",");if(i.length>1){if(e)for(let t=i.length;t--;)if(i[t].substring(0,4)===e.substring(0,4))return i[t];return i[0]}}return t||e}function hl(e){if(e.startsWith("av01.")){const t=e.split("."),i=["0","111","01","01","01","0"];for(let e=t.length;e>4&&e<10;e++)t[e]=i[e-4];return t.join(".")}return e}function cl(e){const t=io(e)||{isTypeSupported:()=>!1};return{mpeg:t.isTypeSupported("audio/mpeg"),mp3:t.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:t.isTypeSupported('audio/mp4; codecs="ac-3"')}}function ul(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const fl={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function ml(e,t){return{supported:!1,configurations:t,decodingInfoResults:[{supported:!1,smooth:!1,powerEfficient:!1}],error:e}}const pl={};function gl(e,t,i,s,r,n){const a=e.audioCodec?e.audioGroups:null,o=null==n?void 0:n.audioCodec,l=null==n?void 0:n.channels,d=l?parseInt(l):o?1/0:2;let h=null;if(null!=a&&a.length)try{h=1===a.length&&a[0]?t.groups[a[0]].channels:a.reduce(((e,i)=>{if(i){const s=t.groups[i];if(!s)throw new Error(`Audio track group ${i} not found`);Object.keys(s.channels).forEach((t=>{e[t]=(e[t]||0)+s.channels[t]}))}return e}),{2:0})}catch(e){return!0}return void 0!==e.videoCodec&&(e.width>1920&&e.height>1088||e.height>1920&&e.width>1088||e.frameRate>Math.max(s,30)||"SDR"!==e.videoRange&&e.videoRange!==i||e.bitrate>Math.max(r,8e6))||!!h&&Aa(d)&&Object.keys(h).some((e=>parseInt(e)>d))}function yl(e,t,i){const s=e.videoCodec,r=e.audioCodec;if(!s&&!r||!i)return Promise.resolve(fl);const n=[];if(s){const t={width:e.width,height:e.height,bitrate:Math.ceil(Math.max(.9*e.bitrate,e.averageBitrate)),framerate:e.frameRate||30},i=e.videoRange;"SDR"!==i&&(t.transferFunction=i.toLowerCase());const r=s.split(","),a=navigator.userAgent;if(r.some((e=>zo(e)))&&Qo())return Promise.resolve(ml(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent sting: (${a})`),n));n.push.apply(n,r.map((e=>({type:"media-source",video:qa(qa({},t),{},{contentType:sl(hl(e),"video")})}))))}return r&&e.audioGroups&&e.audioGroups.forEach((e=>{var i;e&&(null==(i=t.groups[e])||i.tracks.forEach((t=>{if(t.groupId===e){const e=t.channels||"",i=parseFloat(e);Aa(i)&&i>2&&n.push.apply(n,r.split(",").map((e=>({type:"media-source",audio:{contentType:sl(e,"audio"),channels:""+i}}))))}})))})),Promise.all(n.map((e=>{const t=function(e){const{audio:t,video:i}=e,s=i||t;if(s){const e=ul(s.contentType);if(i)return`r${i.height}x${i.width}f${Math.ceil(i.framerate)}${i.transferFunction||"sd"}_${e}_${Math.ceil(i.bitrate/1e5)}`;if(t)return`c${t.channels}${t.spatialRendering?"s":"n"}_${e}`}return""}(e);return pl[t]||(pl[t]=i.decodingInfo(e))}))).then((e=>({supported:!e.some((e=>!e.supported)),configurations:n,decodingInfoResults:e}))).catch((e=>({supported:!1,configurations:n,decodingInfoResults:[],error:e})))}const _l=["NONE","TYPE-0","TYPE-1",null];const vl=["SDR","PQ","HLG"];var bl="",wl="YES",Tl="v2";function Ml(e){const{canSkipUntil:t,canSkipDateRanges:i,age:s}=e;return t&&s<t/2?i?Tl:wl:bl}class Sl{constructor(e,t,i){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=i}addDirectives(e){const t=new self.URL(e);return void 0!==this.msn&&t.searchParams.set("_HLS_msn",this.msn.toString()),void 0!==this.part&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}class Ll{constructor(e){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=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.codecSet=[e.videoCodec,e.audioCodec].filter((e=>!!e)).map((e=>e.substring(0,4))).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;const i=null==(t=e.supplemental)?void 0:t.videoCodec;i&&i!==e.videoCodec&&(this.codecSet+=`,${i.substring(0,4)}`)}this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return kl(this._audioGroups,e)}hasSubtitleGroup(e){return kl(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t)if("audio"===e){let e=this._audioGroups;e||(e=this._audioGroups=[]),-1===e.indexOf(t)&&e.push(t)}else if("text"===e){let e=this._subtitleGroups;e||(e=this._subtitleGroups=[]),-1===e.indexOf(t)&&e.push(t)}}get urlId(){return 0}set urlId(e){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var e;return null==(e=this.audioGroups)?void 0:e[0]}get textGroupId(){var e;return null==(e=this.subtitleGroups)?void 0:e[0]}addFallback(){}}function kl(e,t){return!(!t||!e)&&-1!==e.indexOf(t)}function El(e,t){let i=!1,s=[];if(e&&(i="SDR"!==e,s=[e]),t){s=t.allowedVideoRanges||vl.slice(0);const e="SDR"!==s.join("")&&!t.videoCodec;i=void 0!==t.preferHDR?t.preferHDR:e&&function(){if("function"==typeof matchMedia){const e=matchMedia("(dynamic-range: high)"),t=matchMedia("bad query");if(e.media!==t.media)return!0===e.matches}return!1}(),i||(s=["SDR"])}return{preferHDR:i,allowedVideoRanges:s}}const Dl=(e,t)=>JSON.stringify(e,(e=>{const t=new WeakSet;return(i,s)=>{if(e&&(s=e(i,s)),"object"==typeof s&&null!==s){if(t.has(s))return;t.add(s)}return s}})(t));function xl(e,t){to.log(`[abr] start candidates with "${e}" ignored because ${t}`)}function Al(e){return e.reduce(((e,t)=>{let i=e.groups[t.groupId];i||(i=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),i.tracks.push(t);const s=t.channels||"2";return i.channels[s]=(i.channels[s]||0)+1,i.hasDefault=i.hasDefault||t.default,i.hasAutoSelect=i.hasAutoSelect||t.autoselect,i.hasDefault&&(e.hasDefaultAudio=!0),i.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e}),{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function Pl(e){if(!e)return e;const{lang:t,assocLang:i,characteristics:s,channels:r,audioCodec:n}=e;return{lang:t,assocLang:i,characteristics:s,channels:r,audioCodec:n}}function Cl(e,t,i){if("attrs"in e){const i=t.indexOf(e);if(-1!==i)return i}for(let s=0;s<t.length;s++){if(Il(e,t[s],i))return s}return-1}function Il(e,t,i){const{groupId:s,name:r,lang:n,assocLang:a,default:o}=e,l=e.forced;return(void 0===s||t.groupId===s)&&(void 0===r||t.name===r)&&(void 0===n||function(e,t="--"){if(e.length===t.length)return e===t;return e.startsWith(t)||t.startsWith(e)}(n,t.lang))&&(void 0===n||t.assocLang===a)&&(void 0===o||t.default===o)&&(void 0===l||t.forced===l)&&(!("characteristics"in e)||function(e,t=""){const i=e.split(","),s=t.split(",");return i.length===s.length&&!i.some((e=>-1===s.indexOf(e)))}(e.characteristics||"",t.characteristics))&&(void 0===i||i(e,t))}function Rl(e,t){const{audioCodec:i,channels:s}=e;return!(void 0!==i&&(t.audioCodec||"").substring(0,4)!==i.substring(0,4)||void 0!==s&&s!==(t.channels||"2"))}function Ol(e,t,i){for(let s=t;s>-1;s--)if(i(e[s]))return s;for(let s=t+1;s<e.length;s++)if(i(e[s]))return s;return-1}function Yl(e,t){var i;return!!e&&e!==(null==(i=t.loadLevelObj)?void 0:i.uri)}const Fl=function(e,t){let i=0,s=e.length-1,r=null,n=null;for(;i<=s;){r=(i+s)/2|0,n=e[r];const a=t(n);if(a>0)i=r+1;else{if(!(a<0))return n;s=r-1}}return null};function $l(e,t,i=0,s=0,r=.005){let n=null;if(e){n=t[1+e.sn-t[0].sn]||null;const s=e.endDTS-i;s>0&&s<15e-7&&(i+=15e-7),n&&e.level!==n.level&&n.end<=e.end&&(n=t[2+e.sn-t[0].sn]||null)}else 0===i&&0===t[0].start&&(n=t[0]);if(n&&((!e||e.level===n.level)&&0===Nl(i,s,n)||function(e,t,i){if(t&&0===t.start&&t.level<e.level&&(t.endPTS||0)>0){const s=t.tagList.reduce(((e,t)=>("INF"===t[0]&&(e+=parseFloat(t[1])),e)),i);return e.start<=s}return!1}(n,e,Math.min(r,s))))return n;const a=Fl(t,Nl.bind(null,i,s));return!a||a===e&&n?n:a}function Nl(e=0,t=0,i){if(i.start<=e&&i.start+i.duration>e)return 0;const s=Math.min(t,i.duration+(i.deltaPTS?i.deltaPTS:0));return i.start+i.duration-s<=e?1:i.start-s>e&&i.start?-1:0}function Bl(e,t,i){const s=1e3*Math.min(t,i.duration+(i.deltaPTS?i.deltaPTS:0));return(i.endProgramDateTime||0)-s>e}function Hl(e,t){return Fl(e,(e=>e.cc<t?1:e.cc>t?-1:0))}function jl(e){switch(e.details){case Ra.FRAG_LOAD_TIMEOUT:case Ra.KEY_LOAD_TIMEOUT:case Ra.LEVEL_LOAD_TIMEOUT:case Ra.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Ul(e,t){const i=jl(t);return e.default[(i?"timeout":"error")+"Retry"]}function Vl(e,t){const i="linear"===e.backoff?1:Math.pow(2,t);return Math.min(i*e.retryDelayMs,e.maxRetryDelayMs)}function Gl(e){return qa(qa({},e),{errorRetry:null,timeoutRetry:null})}function zl(e,t,i,s){if(!e)return!1;const r=null==s?void 0:s.code,n=t<e.maxNumRetry&&(function(e){return 0===e&&!1===navigator.onLine||!!e&&(e<400||e>499)}(r)||!!i);return e.shouldRetry?e.shouldRetry(e,t,i,s,n):n}var Wl=0,ql=2,Kl=3,Jl=5,Xl=0,Ql=1,Zl=2;function ed(e){const t={action:Wl,flags:Xl};return e&&(t.resolved=!0),t}var td="NOT_LOADED",id="APPENDING",sd="PARTIAL",rd="OK";class nd{constructor(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Oa.BUFFER_APPENDED,this.onBufferAppended,this),e.on(Oa.FRAG_BUFFERED,this.onFragBuffered,this),e.on(Oa.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Oa.BUFFER_APPENDED,this.onBufferAppended,this),e.off(Oa.FRAG_BUFFERED,this.onFragBuffered,this),e.off(Oa.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const i=this.activePartLists[t];if(i)for(let t=i.length;t--;){const s=i[t];if(!s)break;const r=s.end;if(s.start<=e&&null!==r&&e<=r)return s}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,i){const{fragments:s}=this,r=Object.keys(s);for(let n=r.length;n--;){const a=s[r[n]];if((null==a?void 0:a.body.type)===t&&(!i||a.buffered)){const t=a.body;if(t.start<=e&&e<=t.end)return t}}return null}detectEvictedFragments(e,t,i,s,r){this.timeRanges&&(this.timeRanges[e]=t);const n=(null==s?void 0:s.fragment.sn)||-1;Object.keys(this.fragments).forEach((s=>{const a=this.fragments[s];if(!a)return;if(n>=a.body.sn)return;if(!a.buffered&&(!a.loaded||r))return void(a.body.type===i&&this.removeFragment(a.body));const o=a.range[e];o&&(0!==o.time.length?o.time.some((e=>{const i=!this.isTimeBuffered(e.startPTS,e.endPTS,t);return i&&this.removeFragment(a.body),i})):this.removeFragment(a.body))}))}detectPartialFragments(e){const t=this.timeRanges;if(!t||"initSegment"===e.frag.sn)return;const i=e.frag,s=od(i),r=this.fragments[s];if(!r||r.buffered&&i.gap)return;const n=!i.relurl;if(Object.keys(t).forEach((s=>{const a=i.elementaryStreams[s];if(!a)return;const o=t[s],l=n||!0===a.partial;r.range[s]=this.getBufferedTimes(i,e.part,l,o)})),r.loaded=null,Object.keys(r.range).length){r.buffered=!0;(r.body.endList=i.endList||r.body.endList)&&(this.endListFragments[r.body.type]=r),ad(r)||this.removeParts(i.sn-1,i.type)}else this.removeFragment(r.body)}removeParts(e,t){const i=this.activePartLists[t];i&&(this.activePartLists[t]=ld(i,(t=>t.fragment.sn>=e)))}fragBuffered(e,t){const i=od(e);let s=this.fragments[i];!s&&t&&(s=this.fragments[i]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),s&&(s.loaded=null,s.buffered=!0)}getBufferedTimes(e,t,i,s){const r={time:[],partial:i},n=e.start,a=e.end,o=e.minEndPTS||a,l=e.maxStartPTS||n;for(let e=0;e<s.length;e++){const t=s.start(e)-this.bufferPadding,i=s.end(e)+this.bufferPadding;if(l>=t&&o<=i){r.time.push({startPTS:Math.max(n,s.start(e)),endPTS:Math.min(a,s.end(e))});break}if(n<i&&a>t){const t=Math.max(n,s.start(e)),i=Math.min(a,s.end(e));i>t&&(r.partial=!0,r.time.push({startPTS:t,endPTS:i}))}else if(a<=t)break}return r}getPartialFragment(e){let t,i,s,r=null,n=0;const{bufferPadding:a,fragments:o}=this;return Object.keys(o).forEach((l=>{const d=o[l];d&&ad(d)&&(i=d.body.start-a,s=d.body.end+a,e>=i&&e<=s&&(t=Math.min(e-i,s-e),n<=t&&(r=d.body,n=t)))})),r}isEndListAppended(e){const t=this.endListFragments[e];return void 0!==t&&(t.buffered||ad(t))}getState(e){const t=od(e),i=this.fragments[t];return i?i.buffered?ad(i)?sd:rd:id:td}isTimeBuffered(e,t,i){let s,r;for(let n=0;n<i.length;n++){if(s=i.start(n)-this.bufferPadding,r=i.end(n)+this.bufferPadding,e>=s&&t<=r)return!0;if(t<=s)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if("initSegment"===t.frag.sn||t.frag.bitrateTest)return;const i=t.frag,s=t.part?null:t,r=od(i);this.fragments[r]={body:i,appendedPTS:null,loaded:s,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:i,part:s,timeRanges:r,type:n}=t;if("initSegment"===i.sn)return;const a=i.type;if(s){let e=this.activePartLists[a];e||(this.activePartLists[a]=e=[]),e.push(s)}this.timeRanges=r;const o=r[n];this.detectEvictedFragments(n,o,a,s)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=od(e);return!!this.fragments[t]}hasFragments(e){const{fragments:t}=this,i=Object.keys(t);if(!e)return i.length>0;for(let s=i.length;s--;){const r=t[i[s]];if((null==r?void 0:r.body.type)===e)return!0}return!1}hasParts(e){var t;return!(null==(t=this.activePartLists[e])||!t.length)}removeFragmentsInRange(e,t,i,s,r){s&&!this.hasGaps||Object.keys(this.fragments).forEach((n=>{const a=this.fragments[n];if(!a)return;const o=a.body;o.type!==i||s&&!o.gap||o.start<t&&o.end>e&&(a.buffered||r)&&this.removeFragment(o)}))}removeFragment(e){const t=od(e);e.clearElementaryStreamInfo();const i=this.activePartLists[e.type];if(i){const t=e.sn;this.activePartLists[e.type]=ld(i,(e=>e.fragment.sn!==t))}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){var e,t;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const i=null==(e=this.hls)||null==(t=e.latestLevelDetails)?void 0:t.partList;i&&i.forEach((e=>e.clearElementaryStreamInfo()))}}function ad(e){var t,i,s;return e.buffered&&(e.body.gap||(null==(t=e.range.video)?void 0:t.partial)||(null==(i=e.range.audio)?void 0:i.partial)||(null==(s=e.range.audiovideo)?void 0:s.partial))}function od(e){return`${e.type}_${e.level}_${e.sn}`}function ld(e,t){return e.filter((e=>{const i=t(e);return i||e.clearElementaryStreamInfo(),i}))}var dd=0,hd=1;class cd{constructor(e,t,i){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=e,this.aesIV=t,this.aesMode=i}decrypt(e,t){switch(this.aesMode){case dd:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case hd:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},t,e);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}class ud{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(e){const t=new DataView(e),i=new Uint32Array(4);for(let e=0;e<4;e++)i[e]=t.getUint32(4*e);return i}initTable(){const e=this.sBox,t=this.invSBox,i=this.subMix,s=i[0],r=i[1],n=i[2],a=i[3],o=this.invSubMix,l=o[0],d=o[1],h=o[2],c=o[3],u=new Uint32Array(256);let f=0,m=0,p=0;for(p=0;p<256;p++)u[p]=p<128?p<<1:p<<1^283;for(p=0;p<256;p++){let i=m^m<<1^m<<2^m<<3^m<<4;i=i>>>8^255&i^99,e[f]=i,t[i]=f;const o=u[f],p=u[o],g=u[p];let y=257*u[i]^16843008*i;s[f]=y<<24|y>>>8,r[f]=y<<16|y>>>16,n[f]=y<<8|y>>>24,a[f]=y,y=16843009*g^65537*p^257*o^16843008*f,l[i]=y<<24|y>>>8,d[i]=y<<16|y>>>16,h[i]=y<<8|y>>>24,c[i]=y,f?(f=o^u[u[u[g^o]]],m^=u[u[m]]):f=m=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let i=!0,s=0;for(;s<t.length&&i;)i=t[s]===this.key[s],s++;if(i)return;this.key=t;const r=this.keySize=t.length;if(4!==r&&6!==r&&8!==r)throw new Error("Invalid aes key size="+r);const n=this.ksRows=4*(r+6+1);let a,o;const l=this.keySchedule=new Uint32Array(n),d=this.invKeySchedule=new Uint32Array(n),h=this.sBox,c=this.rcon,u=this.invSubMix,f=u[0],m=u[1],p=u[2],g=u[3];let y,_;for(a=0;a<n;a++)a<r?y=l[a]=t[a]:(_=y,a%r==0?(_=_<<8|_>>>24,_=h[_>>>24]<<24|h[_>>>16&255]<<16|h[_>>>8&255]<<8|h[255&_],_^=c[a/r|0]<<24):r>6&&a%r==4&&(_=h[_>>>24]<<24|h[_>>>16&255]<<16|h[_>>>8&255]<<8|h[255&_]),l[a]=y=(l[a-r]^_)>>>0);for(o=0;o<n;o++)a=n-o,_=3&o?l[a]:l[a-4],d[o]=o<4||a<=4?_:f[h[_>>>24]]^m[h[_>>>16&255]]^p[h[_>>>8&255]]^g[h[255&_]],d[o]=d[o]>>>0}networkToHostOrderSwap(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24}decrypt(e,t,i){const s=this.keySize+6,r=this.invKeySchedule,n=this.invSBox,a=this.invSubMix,o=a[0],l=a[1],d=a[2],h=a[3],c=this.uint8ArrayToUint32Array_(i);let u=c[0],f=c[1],m=c[2],p=c[3];const g=new Int32Array(e),y=new Int32Array(g.length);let _,v,b,w,T,M,S,L,k,E,D,x,A,P;const C=this.networkToHostOrderSwap;for(;t<g.length;
vendor: 7,999 bytes, line 2
2){for(k=C(g[t]),E=C(g[t+1]),D=C(g[t+2]),x=C(g[t+3]),T=k^r[0],M=x^r[1],S=D^r[2],L=E^r[3],A=4,P=1;P<s;P++)_=o[T>>>24]^l[M>>16&255]^d[S>>8&255]^h[255&L]^r[A],v=o[M>>>24]^l[S>>16&255]^d[L>>8&255]^h[255&T]^r[A+1],b=o[S>>>24]^l[L>>16&255]^d[T>>8&255]^h[255&M]^r[A+2],w=o[L>>>24]^l[T>>16&255]^d[M>>8&255]^h[255&S]^r[A+3],T=_,M=v,S=b,L=w,A+=4;_=n[T>>>24]<<24^n[M>>16&255]<<16^n[S>>8&255]<<8^n[255&L]^r[A],v=n[M>>>24]<<24^n[S>>16&255]<<16^n[L>>8&255]<<8^n[255&T]^r[A+1],b=n[S>>>24]<<24^n[L>>16&255]<<16^n[T>>8&255]<<8^n[255&M]^r[A+2],w=n[L>>>24]<<24^n[T>>16&255]<<16^n[M>>8&255]<<8^n[255&S]^r[A+3],y[t]=C(_^u),y[t+1]=C(w^f),y[t+2]=C(b^m),y[t+3]=C(v^p),u=k,f=E,m=D,p=x,t+=4}return y.buffer}}class fd{constructor(e,t,i){this.subtle=void 0,this.key=void 0,this.aesMode=void 0,this.subtle=e,this.key=t,this.aesMode=i}expandKey(){const e=function(e){switch(e){case dd:return"AES-CBC";case hd:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${e}`)}}(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}class md{constructor(e,{removePKCS7Padding:t=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.enableSoftwareAES=void 0,this.enableSoftwareAES=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{const e=self.crypto;e&&(this.subtle=e.subtle||e.webkitSubtle)}catch(e){}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;const i=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?function(e){const t=e.byteLength,i=t&&new DataView(e.buffer).getUint8(t-1);return i?e.slice(0,t-i):e}(i):i}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,i,s){return this.useSoftware?new Promise(((r,n)=>{const a=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(a,t,i,s);const o=this.flush();o?r(o.buffer):n(new Error("[softwareDecrypt] Failed to decrypt data"))})):this.webCryptoDecrypt(new Uint8Array(e),t,i,s)}softwareDecrypt(e,t,i,s){const{currentIV:r,currentResult:n,remainderData:a}=this;if(s!==dd||16!==t.byteLength)return to.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),a&&(e=Vo(a,e),this.remainderData=null);const o=this.getValidChunk(e);if(!o.length)return null;r&&(i=r);let l=this.softwareDecrypter;l||(l=this.softwareDecrypter=new ud),l.expandKey(t);const d=n;return this.currentResult=l.decrypt(o.buffer,0,i),this.currentIV=o.slice(-16).buffer,d||null}webCryptoDecrypt(e,t,i,s){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,i,s));this.key=t,this.fastAesKey=new fd(this.subtle,t,s)}return this.fastAesKey.expandKey().then((t=>{if(!this.subtle)return Promise.reject(new Error("web crypto not initialized"));this.logOnce("WebCrypto AES decrypt");return new cd(this.subtle,new Uint8Array(i),s).decrypt(e.buffer,t)})).catch((r=>(to.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${r.name}: ${r.message}`),this.onWebCryptoError(e,t,i,s))))}onWebCryptoError(e,t,i,s){const r=this.enableSoftwareAES;if(r){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,i,s);const r=this.flush();if(r)return r.buffer}throw new Error("WebCrypto"+(r?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e;const i=e.length-e.length%16;return i!==e.length&&(t=e.slice(0,i),this.remainderData=e.slice(i)),t}logOnce(e){this.logEnabled&&(to.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const pd=Math.pow(2,17);class gd{constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,t){const i=e.url;if(!i)return Promise.reject(new vd({type:Ia.NETWORK_ERROR,details:Ra.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error("Fragment does not have a "+(i?"part list":"url")),networkDetails:null}));this.abort();const s=this.config,r=s.fLoader,n=s.loader;return new Promise(((a,o)=>{if(this.loader&&this.loader.destroy(),e.gap){if(e.tagList.some((e=>"GAP"===e[0])))return void o(_d(e));e.gap=!1}const l=this.loader=r?new r(s):new n(s),d=yd(e);e.loader=l;const h=Gl(s.fragLoadPolicy.default),c={loadPolicy:h,timeout:h.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:"initSegment"===e.sn?1/0:pd};e.stats=l.stats;const u={onSuccess:(t,i,s,r)=>{this.resetLoader(e,l);let n=t.data;s.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(n.slice(0,16)),n=n.slice(16)),a({frag:e,part:null,payload:n,networkDetails:r})},onError:(t,s,r,n)=>{this.resetLoader(e,l),o(new vd({type:Ia.NETWORK_ERROR,details:Ra.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:qa({url:i,data:void 0},t),error:new Error(`HTTP Error ${t.code} ${t.text}`),networkDetails:r,stats:n}))},onAbort:(t,i,s)=>{this.resetLoader(e,l),o(new vd({type:Ia.NETWORK_ERROR,details:Ra.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:s,stats:t}))},onTimeout:(t,i,s)=>{this.resetLoader(e,l),o(new vd({type:Ia.NETWORK_ERROR,details:Ra.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${c.timeout}ms`),networkDetails:s,stats:t}))}};t&&(u.onProgress=(i,s,r,n)=>t({frag:e,part:null,payload:r,networkDetails:n})),l.load(d,c,u)}))}loadPart(e,t,i){this.abort();const s=this.config,r=s.fLoader,n=s.loader;return new Promise(((a,o)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap)return void o(_d(e,t));const l=this.loader=r?new r(s):new n(s),d=yd(e,t);e.loader=l;const h=Gl(s.fragLoadPolicy.default),c={loadPolicy:h,timeout:h.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:pd};t.stats=l.stats,l.load(d,c,{onSuccess:(s,r,n,o)=>{this.resetLoader(e,l),this.updateStatsFromPart(e,t);const d={frag:e,part:t,payload:s.data,networkDetails:o};i(d),a(d)},onError:(i,s,r,n)=>{this.resetLoader(e,l),o(new vd({type:Ia.NETWORK_ERROR,details:Ra.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:qa({url:d.url,data:void 0},i),error:new Error(`HTTP Error ${i.code} ${i.text}`),networkDetails:r,stats:n}))},onAbort:(i,s,r)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,l),o(new vd({type:Ia.NETWORK_ERROR,details:Ra.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:r,stats:i}))},onTimeout:(i,s,r)=>{this.resetLoader(e,l),o(new vd({type:Ia.NETWORK_ERROR,details:Ra.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${c.timeout}ms`),networkDetails:r,stats:i}))}})}))}updateStatsFromPart(e,t){const i=e.stats,s=t.stats,r=s.total;if(i.loaded+=s.loaded,r){const s=Math.round(e.duration/t.duration),n=Math.min(Math.round(i.loaded/r),s),a=(s-n)*Math.round(i.loaded/n);i.total=i.loaded+a}else i.total=Math.max(i.loaded,i.total);const n=i.loading,a=s.loading;n.start?n.first+=a.first-a.start:(n.start=a.start,n.first=a.first),n.end=a.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function yd(e,t=null){const i=t||e,s={frag:e,part:t,responseType:"arraybuffer",url:i.url,headers:{},rangeStart:0,rangeEnd:0},r=i.byteRangeStartOffset,n=i.byteRangeEndOffset;if(Aa(r)&&Aa(n)){var a;let t=r,i=n;if("initSegment"===e.sn&&("AES-128"===(o=null==(a=e.decryptdata)?void 0:a.method)||"AES-256"===o)){const e=n-r;e%16&&(i=n+(16-e%16)),0!==r&&(s.resetIV=!0,t=r-16)}s.rangeStart=t,s.rangeEnd=i}var o;return s}function _d(e,t){const i=new Error(`GAP ${e.gap?"tag":"attribute"} found`),s={type:Ia.MEDIA_ERROR,details:Ra.FRAG_GAP,fatal:!1,frag:e,error:i,networkDetails:null};return t&&(s.part=t),(t||e).stats.aborted=!0,new vd(s)}
vendor: 23,570 bytes, line 2
2class vd extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class bd extends Ka{constructor(e,t){super(e,t),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)}clearNextTick(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)}tick(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class wd{constructor(e,t,i,s=0,r=-1,n=!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=e,this.sn=t,this.id=i,this.size=s,this.part=r,this.partial=n}}const Td={length:0,start:()=>0,end:()=>0};class Md{static isBuffered(e,t){if(e){const i=Md.getBuffered(e);for(let e=i.length;e--;)if(t>=i.start(e)&&t<=i.end(e))return!0}return!1}static bufferedRanges(e){if(e){const t=Md.getBuffered(e);return Md.timeRangesToArray(t)}return[]}static timeRangesToArray(e){const t=[];for(let i=0;i<e.length;i++)t.push({start:e.start(i),end:e.end(i)});return t}static bufferInfo(e,t,i){if(e){const s=Md.bufferedRanges(e);if(s.length)return Md.bufferedInfo(s,t,i)}return{len:0,start:t,end:t,bufferedIndex:-1}}static bufferedInfo(e,t,i){t=Math.max(0,t),e.length>1&&e.sort(((e,t)=>e.start-t.start||t.end-e.end));let s=-1,r=[];if(i)for(let n=0;n<e.length;n++){t>=e[n].start&&t<=e[n].end&&(s=n);const a=r.length;if(a){const t=r[a-1].end;e[n].start-t<i?e[n].end>t&&(r[a-1].end=e[n].end):r.push(e[n])}else r.push(e[n])}else r=e;let n,a=0,o=t,l=t;for(let e=0;e<r.length;e++){const d=r[e].start,h=r[e].end;if(-1===s&&t>=d&&t<=h&&(s=e),t+i>=d&&t<h)o=d,l=h,a=l-t;else if(t+i<d){n=d;break}}return{len:a,start:o||0,end:l||0,nextStart:n,buffered:e,bufferedIndex:s}}static getBuffered(e){try{return e.buffered||Td}catch(e){return to.log("failed to get media.buffered",e),Td}}}const Sd=/\{\$([a-zA-Z0-9-_]+)\}/g;function Ld(e){return Sd.test(e)}function kd(e,t){if(null!==e.variableList||e.hasVariableRefs){const i=e.variableList;return t.replace(Sd,(t=>{const s=t.substring(2,t.length-1),r=null==i?void 0:i[s];return void 0===r?(e.playlistParsingError||(e.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${s}"`)),t):r}))}return t}function Ed(e,t,i){let s,r,n=e.variableList;if(n||(e.variableList=n={}),"QUERYPARAM"in t){s=t.QUERYPARAM;try{const e=new self.URL(i).searchParams;if(!e.has(s))throw new Error(`"${s}" does not match any query parameter in URI: "${i}"`);r=e.get(s)}catch(t){e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${t.message}`))}}else s=t.NAME,r=t.VALUE;s in n?e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${s}"`)):n[s]=r||""}function Dd(e,t,i){const s=t.IMPORT;if(i&&s in i){let t=e.variableList;t||(e.variableList=t={}),t[s]=i[s]}else e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${s}"`))}const xd=/^(\d+)x(\d+)$/,Ad=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Pd{constructor(e,t){"string"==typeof e&&(e=Pd.parseAttrList(e,t)),za(this,e)}get clientAttrs(){return Object.keys(this).filter((e=>"X-"===e.substring(0,2)))}decimalInteger(e){const t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(1&t.length?"0":"")+t;const i=new Uint8Array(t.length/2);for(let e=0;e<t.length/2;e++)i[e]=parseInt(t.slice(2*e,2*e+2),16);return i}return null}hexadecimalIntegerAsNumber(e){const t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){const i=this[e];return i?parseFloat(i):t}enumeratedString(e){return this[e]}enumeratedStringList(e,t){const i=this[e];return(i?i.split(/[ ,]+/):[]).reduce(((e,t)=>(e[t.toLowerCase()]=!0,e)),t)}bool(e){return"YES"===this[e]}decimalResolution(e){const t=xd.exec(this[e]);if(null!==t)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let i;const s={};for(Ad.lastIndex=0;null!==(i=Ad.exec(e));){const r=i[1].trim();let n=i[2];const a=0===n.indexOf('"')&&n.lastIndexOf('"')===n.length-1;let o=!1;if(a)n=n.slice(1,-1);else switch(r){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":o=!0}if(t&&(a||o))n=kd(t,n);else if(!o&&!a)switch(r){case"CLOSED-CAPTIONS":if("NONE"===n)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":to.warn(`${e}: attribute ${r} is missing quotes`)}s[r]=n}return s}}function Cd(e){return"SCTE35-OUT"===e||"SCTE35-IN"===e||"SCTE35-CMD"===e}class Id{constructor(e,t,i=0){var s;if(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=(null==t?void 0:t.tagAnchor)||null,this.tagOrder=null!=(s=null==t?void 0:t.tagOrder)?s:i,t){const i=t.attr;for(const t in i)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==i[t]){to.warn(`DATERANGE tag attribute: "${t}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=t;break}e=za(new Pd({}),i,e)}if(this.attr=e,t?(this._startDate=t._startDate,this._cue=t._cue,this._endDate=t._endDate,this._dateAtEnd=t._dateAtEnd):this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const e=(null==t?void 0:t.endDate)||new Date(this.attr["END-DATE"]);Aa(e.getTime())&&(this._endDate=e)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const e=this._cue;return void 0===e?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):e}get startTime(){const{tagAnchor:e}=this;return null===e||null===e.programDateTime?(to.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${e}`),NaN):e.start+(this.startDate.getTime()-e.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const e=this._endDate||this._dateAtEnd;if(e)return e;const t=this.duration;return null!==t?this._dateAtEnd=new Date(this._startDate.getTime()+1e3*t):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(Aa(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return"com.apple.hls.interstitial"===this.class}get isValid(){return!!this.id&&!this._badValueForSameId&&Aa(this.startDate.getTime())&&(null===this.duration||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)}}class Rd{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.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.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e)return this.advanced=!0,void(this.updated=!0);const t=this.lastPartSn-e.lastPartSn,i=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!i||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||0===t&&i>0,this.updated||this.advanced?this.misses=Math.floor(.6*e.misses):this.misses=e.misses+1}get hasProgramDateTime(){return!!this.fragments.length&&Aa(this.fragments[this.fragments.length-1].programDateTime)}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||10}get drift(){const e=this.driftEndTime-this.driftStartTime;if(e>0){return 1e3*(this.driftEnd-this.driftStart)/e}return 1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var e;return null!=(e=this.fragments)&&e.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){var e;return null!=(e=this.fragments)&&e.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const e=this.partList;if(e){const t=this.lastPartIndex;if(-1!==t){for(let i=e.length;i--;)if(e[i].index>t)return e[i].index;return t}}return 0}get lastPartSn(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const e=this.partEnd-this.fragmentStart;return this.age>Math.max(e,this.totalduration)+this.levelTargetDuration}return!1}}function Od(e){return"AES-128"===e||"AES-256"===e||"AES-256-CTR"===e}function Yd(e){switch(e){case"AES-128":case"AES-256":return dd;case"AES-256-CTR":return hd;default:throw new Error(`invalid full segment method ${e}`)}}function Fd(e){return Uint8Array.from(atob(e),(e=>e.charCodeAt(0)))}function $d(e){return Uint8Array.from(unescape(encodeURIComponent(e)),(e=>e.charCodeAt(0)))}function Nd(e){const t=e.split(":");let i=null;if("data"===t[0]&&2===t.length){const e=t[1].split(";"),s=e[e.length-1].split(",");if(2===s.length){const t="base64"===s[0],r=s[1];t?(e.splice(-1,1),i=Fd(r)):i=function(e){const t=$d(e).subarray(0,16),i=new Uint8Array(16);return i.set(t,16-t.length),i}(r)}}return i}const Bd="undefined"!=typeof self?self:void 0;var Hd={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},jd="org.w3.clearkey",Ud="com.apple.streamingkeydelivery",Vd="com.microsoft.playready",Gd="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";function zd(e){switch(e){case Ud:return Hd.FAIRPLAY;case Vd:return Hd.PLAYREADY;case Gd:return Hd.WIDEVINE;case jd:return Hd.CLEARKEY}}var Wd="1077efecc0b24d02ace33c1e52e2fb4b",qd="e2719d58a985b3c9781ab030af78d30e",Kd="9a04f07998404286ab92e65be0885f95",Jd="edef8ba979d64acea3c827dcd51d21ed";function Xd(e){return e===Jd?Hd.WIDEVINE:e===Kd?Hd.PLAYREADY:e===Wd||e===qd?Hd.CLEARKEY:void 0}function Qd(e){switch(e){case Hd.FAIRPLAY:return Ud;case Hd.PLAYREADY:return Vd;case Hd.WIDEVINE:return Gd;case Hd.CLEARKEY:return jd}}function Zd(e){const{drmSystems:t,widevineLicenseUrl:i}=e,s=t?[Hd.FAIRPLAY,Hd.WIDEVINE,Hd.PLAYREADY,Hd.CLEARKEY].filter((e=>!!t[e])):[];return!s[Hd.WIDEVINE]&&i&&s.push(Hd.WIDEVINE),s}const eh=null!=Bd&&null!=(th=Bd.navigator)&&th.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;var th;function ih(e){const t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),i=String.fromCharCode.apply(null,Array.from(t)),s=i.substring(i.indexOf("<"),i.length),r=(new DOMParser).parseFromString(s,"text/xml").getElementsByTagName("KID")[0];if(r){const e=r.childNodes[0]?r.childNodes[0].nodeValue:r.getAttribute("VALUE");if(e){const t=Fd(e).subarray(0,16);return function(e){const t=function(e,t,i){const s=e[t];e[t]=e[i],e[i]=s};t(e,0,3),t(e,1,2),t(e,4,5),t(e,6,7)}(t),t}}return null}let sh={};class rh{static clearKeyUriToKeyIdMap(){sh={}}constructor(e,t,i,s=[1],r=null){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=e,this.uri=t,this.keyFormat=i,this.keyFormatVersions=s,this.iv=r,this.encrypted=!!e&&"NONE"!==e,this.isCommonEncryption=this.encrypted&&!Od(e)}isSupported(){if(this.method){if(Od(this.method)||"NONE"===this.method)return!0;if("identity"===this.keyFormat)return"SAMPLE-AES"===this.method;switch(this.keyFormat){case Ud:case Gd:case Vd:case jd:return-1!==["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(Od(this.method)&&this.uri&&!this.iv){"number"!=typeof e&&(to.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const t=function(e){const t=new Uint8Array(16);for(let i=12;i<16;i++)t[i]=e>>8*(15-i)&255;return t}(e);return new rh(this.method,this.uri,"identity",this.keyFormatVersions,t)}const t=Nd(this.uri);if(t)switch(this.keyFormat){case Gd:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case Vd:{const e=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=Jo(e,0,t),this.keyId=ih(t);break}default:{let e=t.subarray(0,16);if(16!==e.length){const t=new Uint8Array(16);t.set(e,16-e.length),e=t}this.keyId=e;break}}if(!this.keyId||16!==this.keyId.byteLength){let e=sh[this.uri];if(!e){const t=Object.keys(sh).length%Number.MAX_SAFE_INTEGER;e=new Uint8Array(16);new DataView(e.buffer,12,4).setUint32(0,t),sh[this.uri]=e}this.keyId=e}return this}}const nh=/#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,ah=/#EXT-X-MEDIA:(.*)/g,oh=/^#EXT(?:INF|-X-TARGETDURATION):/m,lh=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),dh=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("|"));class hh{static findGroup(e,t){for(let i=0;i<e.length;i++){const s=e[i];if(s.id===t)return s}}static resolve(e,t){return po.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return oh.test(e)}static parseMasterPlaylist(e,t){const i={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:Ld(e)},s=[];let r;for(nh.lastIndex=0;null!=(r=nh.exec(e));)if(r[1]){var n;const e=new Pd(r[1],i),a=kd(i,r[2]),o={attrs:e,bitrate:e.decimalInteger("BANDWIDTH")||e.decimalInteger("AVERAGE-BANDWIDTH"),name:e.NAME,url:hh.resolve(a,t)},l=e.decimalResolution("RESOLUTION");l&&(o.width=l.width,o.height=l.height),ph(e.CODECS,o);const d=e["SUPPLEMENTAL-CODECS"];d&&(o.supplemental={},ph(d,o.supplemental)),null!=(n=o.unknownCodecs)&&n.length||s.push(o),i.levels.push(o)}else if(r[3]){const e=r[3],s=r[4];switch(e){case"SESSION-DATA":{const e=new Pd(s,i),t=e["DATA-ID"];t&&(null===i.sessionData&&(i.sessionData={}),i.sessionData[t]=e);break}case"SESSION-KEY":{const e=fh(s,t,i);e.encrypted&&e.isSupported()?(null===i.sessionKeys&&(i.sessionKeys=[]),i.sessionKeys.push(e)):to.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${s}"`);break}case"DEFINE":Ed(i,new Pd(s,i),t);break;case"CONTENT-STEERING":{const e=new Pd(s,i);i.contentSteering={uri:hh.resolve(e["SERVER-URI"],t),pathwayId:e["PATHWAY-ID"]||"."};break}case"START":i.startTimeOffset=mh(s)}}const a=s.length>0&&s.length<i.levels.length;return i.levels=a?s:i.levels,0===i.levels.length&&(i.playlistParsingError=new Error("no levels found in manifest")),i}static parseMasterPlaylistMedia(e,t,i){let s;const r={},n=i.levels,a={AUDIO:n.map((e=>({id:e.attrs.AUDIO,audioCodec:e.audioCodec}))),SUBTITLES:n.map((e=>({id:e.attrs.SUBTITLES,textCodec:e.textCodec}))),"CLOSED-CAPTIONS":[]};let o=0;for(ah.lastIndex=0;null!==(s=ah.exec(e));){const e=new Pd(s[1],i),n=e.TYPE;if(n){const i=a[n],s=r[n]||[];r[n]=s;const l=e.LANGUAGE,d=e["ASSOC-LANGUAGE"],h=e.CHANNELS,c=e.CHARACTERISTICS,u=e["INSTREAM-ID"],f={attrs:e,bitrate:0,id:o++,groupId:e["GROUP-ID"]||"",name:e.NAME||l||"",type:n,default:e.bool("DEFAULT"),autoselect:e.bool("AUTOSELECT"),forced:e.bool("FORCED"),lang:l,url:e.URI?hh.resolve(e.URI,t):""};if(d&&(f.assocLang=d),h&&(f.channels=h),c&&(f.characteristics=c),u&&(f.instreamId=u),null!=i&&i.length){const e=hh.findGroup(i,f.groupId)||i[0];gh(f,e,"audioCodec"),gh(f,e,"textCodec")}s.push(f)}}return r}static parseLevelPlaylist(e,t,i,s,r,n){var a;const o={url:t},l=new Rd(t),d=l.fragments,h=[];let c,u,f,m,p=null,g=0,y=0,_=0,v=0,b=0,w=null,T=new To(s,o),M=-1,S=!1,L=null;if(lh.lastIndex=0,l.m3u8=e,l.hasVariableRefs=Ld(e),"#EXTM3U"!==(null==(a=lh.exec(e))?void 0:a[0]))return l.playlistParsingError=new Error("Missing format identifier #EXTM3U"),l;for(;null!==(c=lh.exec(e));){S&&(S=!1,T=new To(s,o),T.playlistOffset=_,T.start=_,T.sn=g,T.cc=v,b&&(T.bitrate=b),T.level=i,p&&(T.initSegment=p,p.rawProgramDateTime&&(T.rawProgramDateTime=p.rawProgramDateTime,p.rawProgramDateTime=null),L&&(T.setByteRange(L),L=null)));const e=c[1];if(e){T.duration=parseFloat(e);const t=(" "+c[2]).slice(1);T.title=t||null,T.tagList.push(t?["INF",e,t]:["INF",e])}else if(c[3]){if(Aa(T.duration)){T.playlistOffset=_,T.start=_,f&&vh(T,f,l),T.sn=g,T.level=i,T.cc=v,d.push(T);const e=(" "+c[3]).slice(1);T.relurl=kd(l,e),yh(T,w,h),w=T,_+=T.duration,g++,y=0,S=!0}}else{if(c=c[0].match(dh),!c){to.warn("No matches on slow regex match for level playlist!");continue}for(u=1;u<c.length&&void 0===c[u];u++);const e=(" "+c[u]).slice(1),r=(" "+c[u+1]).slice(1),a=c[u+2]?(" "+c[u+2]).slice(1):null;switch(e){case"BYTERANGE":w?T.setByteRange(r,w):T.setByteRange(r);break;case"PROGRAM-DATE-TIME":T.rawProgramDateTime=r,T.tagList.push(["PROGRAM-DATE-TIME",r]),-1===M&&(M=d.length);break;case"PLAYLIST-TYPE":l.type&&bh(l,e,c),l.type=r.toUpperCase();break;case"MEDIA-SEQUENCE":0!==l.startSN?bh(l,e,c):d.length>0&&wh(l,e,c),g=l.startSN=parseInt(r);break;case"SKIP":{l.skippedSegments&&bh(l,e,c);const t=new Pd(r,l),i=t.decimalInteger("SKIPPED-SEGMENTS");if(Aa(i)){l.skippedSegments+=i;for(let e=i;e--;)d.push(null);g+=i}const s=t.enumeratedString("RECENTLY-REMOVED-DATERANGES");s&&(l.recentlyRemovedDateranges=(l.recentlyRemovedDateranges||[]).concat(s.split("\t")));break}case"TARGETDURATION":0!==l.targetduration&&bh(l,e,c),l.targetduration=Math.max(parseInt(r),1);break;case"VERSION":null!==l.version&&bh(l,e,c),l.version=parseInt(r);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":l.live||bh(l,e,c),l.live=!1;break;case"#":(r||a)&&T.tagList.push(a?[r,a]:[r]);break;case"DISCONTINUITY":v++,T.tagList.push(["DIS"]);break;case"GAP":T.gap=!0,T.tagList.push([e]);break;case"BITRATE":T.tagList.push([e,r]),b=1e3*parseInt(r),Aa(b)?T.bitrate=b:b=0;break;case"DATERANGE":{const e=new Pd(r,l),t=new Id(e,l.dateRanges[e.ID],l.dateRangeTagCount);l.dateRangeTagCount++,t.isValid||l.skippedSegments?l.dateRanges[t.id]=t:to.warn(`Ignoring invalid DATERANGE tag: "${r}"`),T.tagList.push(["EXT-X-DATERANGE",r]);break}case"DEFINE":{const e=new Pd(r,l);"IMPORT"in e?Dd(l,e,n):Ed(l,e,t)}break;case"DISCONTINUITY-SEQUENCE":0!==l.startCC?bh(l,e,c):d.length>0&&wh(l,e,c),l.startCC=v=parseInt(r);break;case"KEY":{const e=fh(r,t,l);if(e.isSupported()){if("NONE"===e.method){f=void 0;break}f||(f={}),f[e.keyFormat]&&(f=za({},f)),f[e.keyFormat]=e}else to.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${r}"`);break}case"START":l.startTimeOffset=mh(r);break;case"MAP":{const e=new Pd(r,l);if(T.duration){const t=new To(s,o);_h(t,e,i,f),p=t,T.initSegment=p,p.rawProgramDateTime&&!T.rawProgramDateTime&&(T.rawProgramDateTime=p.rawProgramDateTime)}else{const t=T.byteRangeEndOffset;if(t){const e=T.byteRangeStartOffset;L=`${t-e}@${e}`}else L=null;_h(T,e,i,f),p=T,S=!0}p.cc=v;break}case"SERVER-CONTROL":m&&bh(l,e,c),m=new Pd(r),l.canBlockReload=m.bool("CAN-BLOCK-RELOAD"),l.canSkipUntil=m.optionalFloat("CAN-SKIP-UNTIL",0),l.canSkipDateRanges=l.canSkipUntil>0&&m.bool("CAN-SKIP-DATERANGES"),l.partHoldBack=m.optionalFloat("PART-HOLD-BACK",0),l.holdBack=m.optionalFloat("HOLD-BACK",0);break;case"PART-INF":{l.partTarget&&bh(l,e,c);const t=new Pd(r);l.partTarget=t.decimalFloatingPoint("PART-TARGET");break}case"PART":{let e=l.partList;e||(e=l.partList=[]);const t=y>0?e[e.length-1]:void 0,i=y++,s=new Pd(r,l),n=new Mo(s,T,o,i,t);e.push(n),T.duration+=n.duration;break}case"PRELOAD-HINT":{const e=new Pd(r,l);l.preloadHint=e;break}case"RENDITION-REPORT":{const e=new Pd(r,l);l.renditionReports=l.renditionReports||[],l.renditionReports.push(e);break}default:to.warn(`line parsed but not handled: ${c}`)}}}w&&!w.relurl?(d.pop(),_-=w.duration,l.partList&&(l.fragmentHint=w)):l.partList&&(yh(T,w,h),T.cc=v,l.fragmentHint=T,f&&vh(T,f,l)),l.targetduration||(l.playlistParsingError=new Error("#EXT-X-TARGETDURATION is required"));const k=d.length,E=d[0],D=d[k-1];if(_+=l.skippedSegments*l.targetduration,_>0&&k&&D){l.averagetargetduration=_/k;const e=D.sn;l.endSN="initSegment"!==e?e:0,l.live||(D.endList=!0),E&&void 0===l.startCC&&(l.startCC=E.cc),M>0&&(!function(e,t){let i=e[t];for(let s=t;s--;){const t=e[s];if(!t)return;t.programDateTime=i.programDateTime-1e3*t.duration,i=t}}(d,M),E&&h.unshift(E))}else l.endSN=0,l.startCC=0;return l.fragmentHint&&(_+=l.fragmentHint.duration),l.totalduration=_,h.length&&l.dateRangeTagCount&&E&&ch(h,l),l.endCC=v,l}}function ch(e,t){const i=e.length,s=e[i-1],r=t.live?1/0:t.totalduration,n=Object.keys(t.dateRanges);for(let a=n.length;a--;){const o=t.dateRanges[n[a]],l=o.startDate.getTime();o.tagAnchor=s.ref;for(let s=i;s--;){const i=uh(t,l,e,s,r);if(-1!==i){o.tagAnchor=t.fragments[i].ref;break}}}}function uh(e,t,i,s,r){const n=i[s];if(n){const o=n.programDateTime;if(t>=o||0===s){var a;
vendor: 4,486 bytes, line 2
2if(t<=o+1e3*(((null==(a=i[s+1])?void 0:a.start)||r)-n.start)){const r=i[s].sn-e.startSN,n=e.fragments;if(n.length>i.length){for(let a=(i[s+1]||n[n.length-1]).sn-e.startSN;a>r;a--){const e=n[a].programDateTime;if(t>=e&&t<e+1e3*n[a].duration)return a}}return r}}}return-1}function fh(e,t,i){var s,r;const n=new Pd(e,i),a=null!=(s=n.METHOD)?s:"",o=n.URI,l=n.hexadecimalInteger("IV"),d=n.KEYFORMATVERSIONS,h=null!=(r=n.KEYFORMAT)?r:"identity";o&&n.IV&&!l&&to.error(`Invalid IV: ${n.IV}`);const c=o?hh.resolve(o,t):"",u=(d||"1").split("/").map(Number).filter(Number.isFinite);return new rh(a,c,h,u,l)}function mh(e){const t=new Pd(e).decimalFloatingPoint("TIME-OFFSET");return Aa(t)?t:null}function ph(e,t){let i=(e||"").split(/[ ,]+/).filter((e=>e));["video","audio","text"].forEach((e=>{const s=i.filter((t=>el(t,e)));s.length&&(t[`${e}Codec`]=s.map((e=>e.split("/")[0])).join(","),i=i.filter((e=>-1===s.indexOf(e))))})),t.unknownCodecs=i}function gh(e,t,i){const s=t[i];s&&(e[i]=s)}function yh(e,t,i){e.rawProgramDateTime?i.push(e):null!=t&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function _h(e,t,i,s){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=i,e.sn="initSegment",s&&(e.levelkeys=s),e.initSegment=null}function vh(e,t,i){e.levelkeys=t;const{encryptedFragments:s}=i;s.length&&s[s.length-1].levelkeys===t||!Object.keys(t).some((e=>t[e].isCommonEncryption))||s.push(e)}function bh(e,t,i){e.playlistParsingError=new Error(`#EXT-X-${t} must not appear more than once (${i[0]})`)}function wh(e,t,i){e.playlistParsingError=new Error(`#EXT-X-${t} must appear before the first Media Segment (${i[0]})`)}function Th(e,t){const i=t.startPTS;if(Aa(i)){let s,r=0;t.sn>e.sn?(r=i-e.start,s=e):(r=e.start-i,s=t),s.duration!==r&&s.setDuration(r)}else if(t.sn>e.sn){e.cc===t.cc&&e.minEndPTS?t.setStart(e.start+(e.minEndPTS-e.start)):t.setStart(e.start+e.duration)}else t.setStart(Math.max(e.start-t.duration,0))}function Mh(e,t,i,s,r,n){s-i<=0&&(to.warn("Fragment should have a positive duration",t),s=i+t.duration,n=r+t.duration);let a=i,o=s;const l=t.startPTS,d=t.endPTS;if(Aa(l)){const e=Math.abs(l-i);Aa(t.deltaPTS)?t.deltaPTS=Math.max(e,t.deltaPTS):t.deltaPTS=e,a=Math.max(i,l),i=Math.min(i,l),r=Math.min(r,t.startDTS),o=Math.min(s,d),s=Math.max(s,d),n=Math.max(n,t.endDTS)}const h=i-t.start;0!==t.start&&t.setStart(i),t.setDuration(s-t.start),t.startPTS=i,t.maxStartPTS=a,t.startDTS=r,t.endPTS=s,t.minEndPTS=o,t.endDTS=n;const c=t.sn;if(!e||c<e.startSN||c>e.endSN)return 0;let u;const f=c-e.startSN,m=e.fragments;for(m[f]=t,u=f;u>0;u--)Th(m[u],m[u-1]);for(u=f;u<m.length-1;u++)Th(m[u],m[u+1]);return e.fragmentHint&&Th(m[m.length-1],e.fragmentHint),e.PTSKnown=e.alignedSliding=!0,h}function Sh(e,t){if(e===t)return;let i=null;const s=e.fragments;for(let e=s.length-1;e>=0;e--){const t=s[e].initSegment;if(t){i=t;break}}let r;e.fragmentHint&&delete e.fragmentHint.endPTS,function(e,t,i){const s=t.skippedSegments,r=Math.max(e.startSN,t.startSN)-t.startSN,n=(e.fragmentHint?1:0)+(s?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,a=t.startSN-e.startSN,o=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,l=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments;for(let d=r;d<=n;d++){const r=l[a+d];let n=o[d];if(s&&!n&&r&&(n=t.fragments[d]=r),r&&n){if(i(r,n,d,o),r.url&&r.url!==n.url)return void(t.playlistParsingError=Lh(`media sequence mismatch ${n.sn}:`,e,t,r,n));if(r.cc!==n.cc)return void(t.playlistParsingError=Lh(`discontinuity sequence mismatch (${r.cc}!=${n.cc})`,e,t,r,n))}}}(e,t,((s,n,a,o)=>{if(!t.startCC&&n.cc!==s.cc){var l,d;const i=s.cc-n.cc;for(let e=a;e<o.length;e++)o[e].cc+=i;t.startCC=null!=(l=null==(d=xh(e,t.startSN-1))?void 0:d.cc)?l:o[0].cc,t.endCC=o[o.length-1].cc}Aa(s.startPTS)&&Aa(s.endPTS)&&(n.setStart(n.startPTS=s.startPTS),n.startDTS=s.startDTS,n.maxStartPTS=s.maxStartPTS,n.endPTS=s.endPTS,n.endDTS=s.endDTS,n.minEndPTS=s.minEndPTS,n.setDuration(s.endPTS-s.startPTS),n.duration&&(r=n),t.PTSKnown=t.alignedSliding=!0),s.hasStreams&&(n.elementaryStreams=s.elementaryStreams),n.loader=s.loader,s.hasStats&&(n.stats=s.stats),s.initSegment&&(n.initSegment=s.initSegment,i=s.initSegment)}));const n=t.fragments,a=t.fragmentHint?n.concat(t.fragmentHint):n;if(i&&a.forEach((e=>{var t;!e||e.initSegment&&e.initSegment.relurl!==(null==(t=i)?void 0:t.relurl)||(e.initSegment=i)})),t.skippedSegments)if(t.deltaUpdateFailed=n.some((e=>!e)),t.deltaUpdateFailed){to.warn("[level-helper] Previous playlist missing segments ski
2pped in delta playlist");for(let e=t.skippedSegments;e--;)n.shift();t.startSN=n[0].sn}else{t.endCC=n[n.length-1].cc,t.canSkipDateRanges&&(t.dateRanges=function(e,t){const{dateRanges:i,recentlyRemovedDateranges:s}=t,r=za({},e);s&&s.forEach((e=>{delete r[e]}));const n=Object.keys(r).length;n&&Object.keys(i).forEach((e=>{const t=r[e],s=new Id(i[e].attr,t);s.isValid?(r[e]=s,t||(s.tagOrder+=n)):to.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${Dl(i[e].attr)}"`)}));return r}(e.dateRanges,t));const i=e.fragments.filter((e=>e.rawProgramDateTime));if(e.hasProgramDateTime&&!t.hasProgramDateTime)for(let e=1;e<a.length;e++)null===a[e].programDateTime&&yh(a[e],a[e-1],i);ch(i,t)}!function(e,t,i){if(e&&t){let s=0;for(let r=0,n=e.length;r<=n;r++){const n=e[r],a=t[r+s];n&&a&&n.index===a.index&&n.fragment.sn===a.fragment.sn?i(n,a):s--}}}(e.partList,t.partList,((e,t)=>{t.elementaryStreams=e.elementaryStreams,t.stats=e.stats})),r?Mh(t,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):kh(e,t),n.length&&(t.totalduration=t.edge-n[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;const o=t.advancedDateTime;if(t.advanced&&o){const e=t.edge;t.driftStart||(t.driftStartTime=o,t.driftStart=e),t.driftEndTime=o,t.driftEnd=e}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime;-1===t.requestScheduled&&(t.requestScheduled=e.requestScheduled)}function Lh(e,t,i,s,r){return new Error(`${e} ${r.url}\nPlaylist starting @${t.startSN}\n${t.m3u8}\n\nPlaylist starting @${i.startSN}\n${i.m3u8}`)}function kh(e,t,i=!0){const s=t.startSN+t.skippedSegments-e.startSN,r=e.fragments,n=s>=0;let a=0;if(n&&s<r.length)a=r[s].start;else if(n&&t.startSN===e.endSN+1)a=e.fragmentEnd;else if(n&&i)a=e.fragmentStart+s*t.levelTargetDuration;else{if(t.skippedSegments||0!==t.fragmentStart)return;a=e.fragmentStart}Eh(t,a)}function Eh(e,t){if(t){const i=e.fragments;for(let s=e.skippedSegments;s<i.length;s++)i[s].addStart(t);e.fragmentHint&&e.fragmentHint.addStart(t)}}function Dh(e,t=1/0){let i=1e3*e.targetduration;if(e.updated){const s=e.fragments,r=4;if(s.length&&i*r>t){const e=1e3*s[s.length-1].duration;e<i&&(i=e)}}else i/=2;return Math.round(i)}function xh(e,t,i){if(!e)return null;let s=e.fragments[t-e.startSN];return s||(s=e.fragmentHint,s&&s.sn===t?s:t<e.startSN&&i&&i.sn===t?i:null)}function Ah(e,t,i){return e?Ph(e.partList,t,i):null}function Ph(e,t,i){if(e)for(let s=e.length;s--;){const r=e[s];if(r.index===i&&r.fragment.sn===t)return r}return null}function Ch(e){e.forEach(((e,t)=>{var i;null==(i=e.details)||i.fragments.forEach((e=>{e.level=t,e.initSegment&&(e.initSegment.level=t)}))}))}function Ih(e,t){for(let s=0,r=e.length;s<r;s++){var i;if((null==(i=e[s])?void 0:i.cc)===t)return e[s]}return null}function Rh(e,t){if(e){const i=e.start+t;e.start=e.startPTS=i,e.endPTS=i+e.duration}}function Oh(e,t){const i=t.fragments;for(let t=0,s=i.length;t<s;t++)Rh(i[t],e);t.fragmentHint&&Rh(t.fragmentHint,e),t.alignedSliding=!0}function Yh(e,t){if(!function(e,t){return!!(e&&t.startCC<e.endCC&&t.endCC>e.startCC)}(t,e))return;const i=Math.min(t.endCC,e.endCC),s=Ih(t.fragments,i),r=Ih(e.fragments,i);if(!s||!r)return;to.log(`Aligning playlist at start of dicontinuity sequence ${i}`);Oh(s.start-r.start,e)}function Fh(e,t){if(!e.hasProgramDateTime||!t.hasProgramDateTime)return;const i=e.fragments,s=t.fragments;if(!i.length||!s.length)return;let r,n;const a=Math.min(t.endCC,e.endCC);t.startCC<a&&e.startCC<a&&(r=Ih(s,a),n=Ih(i,a)),r&&n||(r=s[Math.floor(s.length/2)],n=Ih(i,r.cc)||i[Math.floor(i.length/2)]);const o=r.programDateTime,l=n.programDateTime;if(!o||!l)return;Oh((l-o)/1e3-(n.start-r.start),e)}const $h=function(e){let t="";const i=e.length;for(let s=0;s<i;s++)t+=`[${e.start(s).toFixed(3)}-${e.end(s).toFixed(3)}]`;return t},Nh="STOPPED",Bh="IDLE",Hh="KEY_LOADING",jh="FRAG_LOADING",Uh="FRAG_LOADING_WAITING_RETRY",Vh="WAITING_TRACK",Gh="PARSING",zh="PARSED",Wh="ENDED",qh="ERROR",Kh="WAITING_INIT_PTS",Jh="WAITING_LEVEL";class Xh extends bd{constructor(e,t,i,s,r){super(s,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=Nh,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.loadingParts=!1,this.loopSn=void 0,this.onMediaSeeking=()=>{const{config:e,fragCurrent:t,media:i,mediaBuffer:s,state:r}=this,n=i?i.currentTime:0,a=Md.bufferInfo(s||i,n,e.maxBufferHole);if(this.log(`media seeking to ${Aa(n)?n.toFixed(3):n}, state: ${r}`),this.state===Wh)this.resetLoadingState();else if(t){const i=e.maxFragLookUpTolerance,s=t.start-i,r=t.start+t.duration+i;if(!a.len||r<a.start||s>a.end){const e=n>r;(n<s||e)&&(e&&t.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(i){this.fragmentTracker.removeFragmentsInRange(n,1/0,this.playlistType,!0);if(n>this.lastCurrentTime&&(this.lastCurrentTime=n),!this.loadingParts){const e=Math.max(a.end,n),t=this.shouldLoadParts(this.getLevelDetails(),e);t&&(this.log(`LL-Part loading ON after seeking to ${n.toFixed(2)} with buffer @${e.toFixed(2)}`),this.loadingParts=t)}}this.hls.hasEnoughToStart||a.len||(this.log(`setting startPosition to ${n} because of seek before start`),this.nextLoadPosition=this.startPosition=n),this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=r,this.hls=e,this.fragmentLoader=new gd(e.config),this.keyLoader=i,this.fragmentTracker=t,this.config=e.config,this.decrypter=new md(e.config)}registerListeners(){const{hls:e}=this;
vendor: 12,057 bytes, line 2
2e.on(Oa.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Oa.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Oa.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(Oa.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(Oa.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Oa.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Oa.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(Oa.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===Nh)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;null!=e&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Nh}get startPositionValue(){const{nextLoadPosition:e,startPosition:t}=this;return-1===t&&e?e:t}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(e,t){if(t.live||!this.media)return!1;const i=e.end||0,s=this.config.timelineOffset||0;if(i<=s)return!1;const r=e.nextStart;if(r&&r>s&&r<t.edge)return!1;if(this.media.currentTime<e.start)return!1;const n=t.partList;if(null!=n&&n.length){const e=n[n.length-1];return Md.isBuffered(this.media,e.start+e.duration/2)}const a=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(a)}getLevelDetails(){var e;if(this.levels&&null!==this.levelLastLoaded)return null==(e=this.levelLastLoaded)?void 0:e.details}get timelineOffset(){const e=this.config.timelineOffset;var t;return e?(null==(t=this.getLevelDetails())?void 0:t.appliedTimelineOffset)||e:0}onMediaAttached(e,t){const i=this.media=this.mediaBuffer=t.media;i.removeEventListener("seeking",this.onMediaSeeking),i.removeEventListener("ended",this.onMediaEnded),i.addEventListener("seeking",this.onMediaSeeking),i.addEventListener("ended",this.onMediaEnded);const s=this.config;this.levels&&s.autoStartLoad&&this.state===Nh&&this.startLoad(s.startPosition)}onMediaDetaching(e,t){const i=!!t.transferMedia,s=this.media;if(null!==s){if(s.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),s.removeEventListener("seeking",this.onMediaSeeking),s.removeEventListener("ended",this.onMediaEnded),this.keyLoader&&!i&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loopSn=void 0,i)return this.resetLoadingState(),void this.resetTransmuxer();this.loadingParts=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}}onManifestLoading(){this.initPTS=[],this.levels=this.levelLastLoaded=this.fragCurrent=null,this.lastCurrentTime=this.startPosition=0,this.startFragRequested=!1}onError(e,t){}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset}onHandlerDestroying(){this.stopLoad(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),super.onHandlerDestroying(),this.hls=this.onMediaSeeking=this.onMediaEnded=null}onHandlerDestroyed(){this.state=Nh,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,t,i){this.startFragRequested=!0,this._loadFragForPlayback(e,t,i)}_loadFragForPlayback(e,t,i){this._doFragLoad(e,t,i,(e=>{const t=e.frag;if(this.fragContextChanged(t))return this.warn(`${t.type} sn: ${t.sn}${e.part?" part: "+e.part.index:""} of ${this.fragInfo(t,!1,e.part)}) was dropped during download.`),void this.fragmentTracker.removeFragment(t);t.stats.chunkCount++,this._handleFragmentLoadProgress(e)})).then((e=>{if(!e)return;const t=this.state,i=e.frag;this.fragContextChanged(i)?(t===jh||!this.fragCurrent&&t===Gh)&&(this.fragmentTracker.removeFragment(i),this.state=Bh):("payload"in e&&(this.log(`Loaded ${i.type} sn: ${i.sn} of ${this.playlistLabel()} ${i.level}`),this.hls.trigger(Oa.FRAG_LOADED,e)),this._handleFragmentLoadComplete(e))})).catch((t=>{this.state!==Nh&&this.state!==qh&&(this.warn(`Frag error: ${(null==t?void 0:t.message)||t}`),this.resetFragmentLoading(e))}))}clearTrackerIfNeeded(e){var t;const{fragmentTracker:i}=this;if(i.getState(e)===id){const t=e.type,s=this.getFwdBufferInfo(this.mediaBuffer,t),r=Math.max(e.duration,s?s.len:this.config.maxBufferLength),n=this.backtrackFragment;(1===(n?e.sn-n.sn:0)||this.reduceMaxBufferLength(r,e.duration))&&i.removeFragment(e)}else 0===(null==(t=this.mediaBuffer)?void 0:t.buffered.length)?i.removeAllFragments():i.hasParts(e.type)&&(i.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),i.getState(e)===sd&&i.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}waitForLive(e){const t=e.details;return(null==t?void 0:t.live)&&"EVENT"!==t.type&&(this.levelLastLoaded!==e||t.expired)}flushMainBuffer(e,t,i=null){if(!(e-t))return;const s={startOffset:e,endOffset:t,type:i};this.hls.trigger(Oa.BUFFER_FLUSHING,s)}_loadInitSegment(e,t){this._doFragLoad(e,t).then((e=>{const t=null==e?void 0:e.frag;if(!t||this.fragContextChanged(t)||!this.levels)throw new Error("init load aborted");return e})).then((e=>{const{hls:t}=this,{frag:i,payload:s}=e,r=i.decryptdata;if(s&&s.byteLength>0&&null!=r&&r.key&&r.iv&&Od(r.method)){const n=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),r.key.buffer,r.iv.buffer,Yd(r.method)).catch((e=>{throw t.trigger(Oa.ERROR,{type:Ia.MEDIA_ERROR,details:Ra.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:i}),e})).then((s=>{const r=self.performance.now();return t.trigger(Oa.FRAG_DECRYPTED,{frag:i,payload:s,stats:{tstart:n,tdecrypt:r}}),e.payload=s,this.completeInitSegmentLoad(e)}))}return this.completeInitSegmentLoad(e)})).catch((t=>{this.state!==Nh&&this.state!==qh&&(this.warn(t),this.resetFragmentLoading(e))}))}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const i=e.frag.stats;this.state!==Nh&&(this.state=Bh),e.frag.data=new Uint8Array(e.payload),i.parsing.start=i.buffering.start=self.performance.now(),i.parsing.end=i.buffering.end=self.performance.now(),this.tick()}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){const i=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)} > buffer:${i?$h(Md.getBuffered(i)):"(detached)"})`),wo(e)){var s;if(e.type!==ja){const t=e.elementaryStreams;if(!Object.keys(t).some((e=>!!t[e])))return void(this.state=Bh)}const t=null==(s=this.levels)?void 0:s[e.level];null!=t&&t.fragmentError&&(this.log(`Resetting level fragment error count of ${t.fragmentError} on frag buffered`),t.fragmentError=0)}this.state=Bh}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:i,part:s,partsLoaded:r}=e,n=!r||0===r.length||r.some((e=>!e)),a=new wd(i.level,i.sn,i.stats.chunkCount+1,0,s?s.index:-1,!n);t.flush(a)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,i=null,s){var r;this.fragCurrent=e;const n=null==t?void 0:t.details;if(!this.levels||!n)throw new Error(`frag load aborted, missing level${n?"":" detail"}s`);let a=null;!e.encrypted||null!=(r=e.decryptdata)&&r.key?!e.encrypted&&n.encryptedFragments.length&&this.keyLoader.loadClear(e,n.encryptedFragments):(this.log(`Loading key for ${e.sn} of [${n.startSN}-${n.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=Hh,this.fragCurrent=e,a=this.keyLoader.load(e).then((e=>{if(!this.fragContextChanged(e.frag))return this.hls.trigger(Oa.KEY_LOADED,e),this.state===Hh&&(this.state=Bh),e})),this.hls.trigger(Oa.KEY_LOADING,{frag:e}),null===this.fragCurrent&&(a=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING"))));const o=this.fragPrevious;if(wo(e)&&(!o||e.sn!==o.sn)){const i=this.shouldLoadParts(t.details,e.end);i!==this.loadingParts&&(this.log(`LL-Part loading ${i?"ON":"OFF"} loading sn ${null==o?void 0:o.sn}->${e.sn}`),this.loadingParts=i)}if(i=Math.max(e.start,i||0),this.loadingParts&&wo(e)){const r=n.partList;if(r&&s){i>e.end&&n.fragmentHint&&(e=n.fragmentHint);const o=this.getNextPart(r,e,i);if(o>-1){const l=r[o];let d;return e=this.fragCurrent=l.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${l.index} (${o}/${r.length-1}) of ${this.fragInfo(e,!1,l)}) cc: ${e.cc} [${n.startSN}-${n.endSN}], target: ${parseFloat(i.toFixed(3))}`),this.nextLoadPosition=l.start+l.duration,this.state=jh,d=a?a.then((i=>!i||this.fragContextChanged(i.frag)?null:this.doFragPartsLoad(e,l,t,s))).catch((e=>this.handleFragLoadError(e))):this.doFragPartsLoad(e,l,t,s).catch((e=>this.handleFragLoadError(e))),this.hls.trigger(Oa.FRAG_LOADING,{frag:e,part:l,targetBufferTime:i}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):d}if(!e.url||this.loadedEndOfParts(r,i))return Promise.resolve(null)}}if(wo(e)&&this.loadingParts)this.log(`LL-Part loading OFF after next part miss @${i.toFixed(2)}`),this.loadingParts=!1;else if(!e.url)return Promise.resolve(null);this.log(`Loading ${e.type} sn: ${e.sn} of ${this.fragInfo(e,!1)}) cc: ${e.cc} ${n?"["+n.startSN+"-"+n.endSN+"]":""}, target: ${parseFloat(i.toFixed(3))}`),Aa(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=jh;const l=this.config.progressive;let d;return d=l&&a?a.then((t=>!t||this.fragContextChanged(null==t?void 0:t.frag)?null:this.fragmentLoader.load(e,s))).catch((e=>this.handleFragLoadError(e))):Promise.all([this.fragmentLoader.load(e,l?s:void 0),a]).then((([e])=>(!l&&e&&s&&s(e),e))).catch((e=>this.handleFragLoadError(e))),this.hls.trigger(Oa.FRAG_LOADING,{frag:e,targetBufferTime:i}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):d}doFragPartsLoad(e,t,i,s){return new Promise(((r,n)=>{var a;const o=[],l=null==(a=i.details)?void 0:a.partList,d=t=>{this.fragmentLoader.loadPart(e,t,s).then((s=>{o[t.index]=s;const n=s.part;this.hls.trigger(Oa.FRAG_LOADED,s);const a=Ah(i.details,e.sn,t.index+1)||Ph(l,e.sn,t.index+1);if(!a)return r({frag:e,part:n,partsLoaded:o});d(a)})).catch(n)};d(t)}))}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===Ra.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(Oa.ERROR,t)}else this.hls.trigger(Oa.ERROR,{type:Ia.OTHER_ERROR,details:Ra.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==Gh)return void(this.fragCurrent||this.state===Nh||this.state===qh||(this.state=Bh));const{frag:i,part:s,level:r}=t,n=self.performance.now();i.stats.parsing.end=n,s&&(s.stats.parsing.end=n);const a=this.getLevelDetails(),o=a&&i.sn>a.endSN||this.shouldLoadParts(a,i.end);o!==this.loadingParts&&(this.log(`LL-Part loading ${o?"ON":"OFF"} after parsing segment ending @${i.end.toFixed(2)}`),this.loadingParts=o),this.updateLevelTiming(i,s,r,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(null!=e&&e.partList){var i;const r=e.partList[0];if(t>=r.end+((null==(i=e.fragmentHint)?void 0:i.duration)||0)){var s;if((this.hls.hasEnoughToStart?(null==(s=this.media)?void 0:s.currentTime)||this.lastCurrentTime:this.getLoadPosition())>r.start-r.fragment.duration)return!0}}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:i}=this,{level:s,sn:r,part:n}=e;if(null==t||!t[s])return this.warn(`Levels object was unset while buffering fragment ${r} of ${this.playlistLabel()} ${s}. The current chunk will not be buffered.`),null;const a=t[s],o=a.details,l=n>
vendor: 9,742 bytes, line 2
2-1?Ah(o,r,n):null,d=l?l.fragment:xh(o,r,i);return d?(i&&i!==d&&(d.stats=i.stats),{frag:d,part:l,level:a}):null}bufferFragmentData(e,t,i,s,r){var n;if(!e||this.state!==Gh)return;const{data1:a,data2:o}=e;let l=a;if(a&&o&&(l=Vo(a,o)),null==(n=l)||!n.length)return;const d={type:e.type,frag:t,part:i,chunkMeta:s,parent:t.type,data:l};if(this.hls.trigger(Oa.BUFFER_APPENDING,d),e.dropped&&e.independent&&!i){if(r)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!Md.isBuffered(t,t.currentTime))return void this.flushMainBuffer(0,e.start);const i=t.currentTime,s=Md.bufferInfo(t,i,0),r=e.duration,n=Math.min(2*this.config.maxFragLookUpTolerance,.25*r),a=Math.max(Math.min(e.start-n,s.end-n),i+n);e.start-a>n&&this.flushMainBuffer(a,e.start)}getFwdBufferInfo(e,t){var i;const s=this.getLoadPosition();if(!Aa(s))return null;const r=this.lastCurrentTime>s||null!=(i=this.media)&&i.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,s,t,r)}getFwdBufferInfoAtPos(e,t,i,s){const r=Md.bufferInfo(e,t,s);if(0===r.len&&void 0!==r.nextStart){const n=this.fragmentTracker.getBufferedFrag(t,i);if(n&&(r.nextStart<=n.end||n.gap)){const i=Math.max(Math.min(r.nextStart,n.end)-t,s);return Md.bufferInfo(e,t,i)}}return r}getMaxBufferLength(e){const{config:t}=this;let i;return i=e?Math.max(8*t.maxBufferSize/e,t.maxBufferLength):t.maxBufferLength,Math.min(i,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){const i=this.config,s=Math.max(Math.min(e-t,i.maxBufferLength),t),r=Math.max(e-3*t,i.maxMaxBufferLength/2,s);return r>=s&&(i.maxMaxBufferLength=r,this.warn(`Reduce max buffer length to ${r}s`),!0)}getAppendedFrag(e,t=Ba){var i;const s=null==(i=this.fragmentTracker)?void 0:i.getAppendedFrag(e,t);return s&&"fragment"in s?s.fragment:s}getNextFragment(e,t){const i=t.fragments,s=i.length;if(!s)return null;const{config:r}=this,n=i[0].start,a=r.lowLatencyMode&&!!t.partList;let o=null;if(t.live){const d=r.initialLiveManifestSize;if(s<d)return this.warn(`Not enough fragments to start playback (have: ${s}, need: ${d})`),null;if(!t.PTSKnown&&!this.startFragRequested&&-1===this.startPosition||e<n){var l;a&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),o=this.getInitialLiveFragment(t,i);const s=this.hls.startPosition,r=this.hls.liveSyncPosition,d=o?(-1!==s&&s>=n?s:r)||o.start:e;this.log(`Setting startPosition to ${d} to match start frag at live edge. mainStart: ${s} liveSyncPosition: ${r} frag.start: ${null==(l=o)?void 0:l.start}`),this.startPosition=this.nextLoadPosition=d}}else e<=n&&(o=i[0]);if(!o){const i=this.loadingParts?t.partEnd:t.fragmentEnd;o=this.getFragmentAtPosition(e,i,t)}let d=this.filterReplacedPrimary(o,t);if(!d&&o){const e=o.sn-t.startSN;d=this.filterReplacedPrimary(i[e+1]||null,t)}return this.mapToInitFragWhenRequired(d)}isLoopLoading(e,t){const i=this.fragmentTracker.getState(e);return(i===rd||i===sd&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,i,s,r){let n=null;if(e.gap&&(n=this.getNextFragment(this.nextLoadPosition,t),n&&!n.gap&&i.nextStart)){const e=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,i.nextStart,s,0);if(null!==e&&i.len+e.len>=r){const e=n.sn;return this.loopSn!==e&&(this.log(`buffer full after gaps in "${s}" playlist starting at sn: ${e}`),this.loopSn=e),null}}return this.loopSn=void 0,n}get primaryPrefetch(){if(Qh(this.hls.config)){var e,t;if(null==(e=this.hls.interstitialsManager)||null==(t=e.playingItem)?void 0:t.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(Qh(this.hls.config)&&e.type!==ja){const i=this.hls.interstitialsManager,s=null==i?void 0:i.bufferingItem;if(s){const i=s.event;if(i){if(i.appendInPlace||Math.abs(e.start-s.start)>1||0===s.start)return null}else{if(e.end<=s.start&&!1===(null==t?void 0:t.live))return null;if(e.start>s.end&&s.nextEvent&&(s.nextEvent.appendInPlace||e.start-s.end>1))return null}}const r=null==i?void 0:i.playerQueue;if(r)for(let t=r.length;t--;){const i=r[t].interstitial;if(i.appendInPlace&&e.start>=i.startTime&&e.end<=i.resumeTime)return null}}return e}mapToInitFragWhenRequired(e){return null==e||!e.initSegment||null!=e&&e.initSegment.data||this.bitrateTest?e:e.initSegment}getNextPart(e,t,i){let s=-1,r=!1,n=!0;for(let a=0,o=e.length;a<o;a++){const o=e[a];if(n=n&&!o.independent,s>-1&&i<o.start)break;const l=o.loaded;l?s=-1:(r||o.independent||n)&&o.fragment===t&&(s=a),r=l}return s}loadedEndOfParts(e,t){const i=e[e.length-1];return i&&t>i.start&&i.loaded}getInitialLiveFragment(e,t){const i=this.fragPrevious;let s=null;if(i){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${i.programDateTime}`),s=function(e,t,i){if(null===t||!Array.isArray(e)||!e.length||!Aa(t))return null;if(t<(e[0].programDateTime||0))return null;if(t>=(e[e.length-1].endProgramDateTime||0))return null;i=i||0;for(let s=0;s<e.length;++s){const r=e[s];if(Bl(t,i,r))return r}return null}(t,i.endProgramDateTime,this.config.maxFragLookUpTolerance)),!s){const r=i.sn+1;if(r>=e.startSN&&r<=e.endSN){const n=t[r-e.startSN];i.cc===n.cc&&(s=n,this.log(`Live playlist, switching playlist, load frag with next SN: ${s.sn}`))}s||(s=Hl(t,i.cc),s&&this.log(`Live playlist, switching playlist, load frag with same CC: ${s.sn}`))}}else{const t=this.hls.liveSyncPosition;null!==t&&(s=this.getFragmentAtPosition(t,this.bitrateTest?e.fragmentEnd:e.edge,e))}return s}getFragmentAtPosition(e,t,i){const{config:s}=this;let{fragPrevious:r}=this,{fragments:n,endSN:a}=i;const{fragmentHint:o}=i,{maxFragLookUpTolerance:l}=s,d=i.partList,h=!!(this.loadingParts&&null!=d&&d.length&&o);let c;if(h&&o&&!this.bitrateTest&&d[d.length-1].fragment.sn===o.sn&&(n=n.concat(o),a=o.sn),e<t){var u;c=$l(r,n,e,e<this.lastCurrentTime||e>t-l||null!=(u=this.media)&&u.paused||!this.startFragRequested?0:l)}else c=n[n.length-1];if(c){const e=c.sn-i.startSN,t=this.fragmentTracker.getState(c);if((t===rd||t===sd&&c.gap)&&(r=c),r&&c.sn===r.sn&&(!h||d[0].fragment.sn>c.sn||!i.live&&!h)){if(r&&c.level===r.level){const t=n[e+1];c=c.sn<a&&this.fragmentTracker.getState(t)!==rd?t:null}}}return c}alignPlaylists(e,t,i){const s=e.fragments.length;if(!s)return this.warn("No fragments in live playlist"),0;const r=e.fragmentStart,n=!t,a=e.alignedSliding&&Aa(r);if(n||!a&&!r){!function(e,t){e&&(Yh(t,e),!t.alignedSliding&&e&&Fh(t,e),t.alignedSliding||!e||t.skippedSegments||kh(e,t,!1))}(i,e);const r=e.fragmentStart;return this.log(`Live playlist sliding: ${r.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} fragments: ${s}`),r}return r}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,3*e.partTarget)}setStartPosition(e,t){let i=this.startPosition;i<t&&(i=-1);const s=this.timelineOffset;if(-1===i){const r=null!==this.startTimeOffset,n=r?this.startTimeOffset:e.startTimeOffset;null!==n&&Aa(n)?(i=t+n,n<0&&(i+=e.edge),i=Math.min(Math.max(t,i),t+e.totalduration),this.log(`Setting startPosition to ${i} for start time offset ${n} found in ${r?"multivariant":"media"} playlist`),this.startPosition=i):e.live?(i=this.hls.liveSyncPosition||t,this.log(`Setting startPosition to -1 to start at live edge ${i}`),this.startPosition=-1):(this.log("setting startPosition to 0 by default"),this.startPosition=i=0),this.lastCurrentTime=i+s}this.nextLoadPosition=i+s}getLoadPosition(){var e;const{media:t}=this;let i=0;return null!=(e=this.hls)&&e.hasEnoughToStart&&t?i=t.currentTime:this.nextLoadPosition>=0&&(i=this.nextLoadPosition),i}handleFragLoadAborted(e,t){this.transmuxer&&e.type===this.playlistType&&wo(e)&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of ${this.playlistLabel()} ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){this.fragCurrent&&(this.fragContextChanged(e)||this.state===Uh)||(this.state=Bh)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const e=this.getCurrentContext(t.chunkMeta);e&&(t.frag=e.frag)}const i=t.frag;if(!i||i.type!==e||!this.levels)return;var s;if(this.fragContextChanged(i))return void this.warn(`Frag load error must match current frag to retry ${i.url} > ${null==(s=this.fragCurrent)?void 0:s.url}`);const r=t.details===Ra.FRAG_GAP;r&&this.fragmentTracker.fragBuffered(i,!0);const n=t.errorAction,{action:a,flags:o,retryCount:l=0,retryConfig:d}=n||{},h=!!n&&!!d,c=h&&a===Jl,u=h&&!n.resolved&&o===Ql;if(!c&&u&&wo(i)&&!i.endList)this.resetFragmentErrors(e),this.treatAsGap(i),n.resolved=!0;else if((c||u)&&l<d.maxNumRetry){this.resetStartWhenNotLoaded(this.levelLastLoaded);const s=Vl(d,l);this.warn(`Fragment ${i.sn} of ${e} ${i.level} errored with ${t.details}, retrying loading ${l+1}/${d.maxNumRetry} in ${s}ms`),n.resolved=!0,this.retryDate=self.performance.now()+s,this.state=Uh}else if(d&&n){if(this.resetFragmentErrors(e),!(l<d.maxNumRetry))return void this.warn(`${t.details} reached or exceeded max retry (${l})`);r||a===Kl||(n.resolved=!0)}else this.state=a===ql?Jh:qh;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===Gh||this.state===zh){const t=e.frag,i=e.parent,s=this.getFwdBufferInfo(this.mediaBuffer,i),r=s&&s.len>.5;r&&this.reduceMaxBufferLength(s.len,(null==t?void 0:t.duration)||10);const n=!r;return n&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${i} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),n}return!1}resetFragmentErrors(e){e===Ha&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==Nh&&(this.state=Bh)}afterBufferFlushed(e,t,i){if(!e)return;const s=Md.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,s,i),this.state===Wh&&this.resetLoadingState()}
vendor: 6,127 bytes, line 2
2resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==Nh&&(this.state=Bh)}resetStartWhenNotLoaded(e){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const t=e?e.details:null;null!=t&&t.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(t,t.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of ${this.playlistLabel()} ${e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,i,s){const r=i.details;if(!r)return void this.warn("level.details undefined");const n=Object.keys(e.elementaryStreams).reduce(((t,n)=>{const a=e.elementaryStreams[n];if(a){const o=a.endPTS-a.startPTS;if(o<=0)return this.warn(`Could not parse fragment ${e.sn} ${n} duration reliably (${o})`),t||!1;const l=s?0:Mh(r,e,a.startPTS,a.endPTS,a.startDTS,a.endDTS);return this.hls.trigger(Oa.LEVEL_PTS_UPDATED,{details:r,level:i,drift:l,type:n,frag:e,start:a.startPTS,end:a.endPTS}),!0}return t}),!1);var a;if(!n&&(0===i.fragmentError&&this.treatAsGap(e,i),null===(null==(a=this.transmuxer)?void 0:a.error))){const t=new Error(`Found no media in fragment ${e.sn} of ${this.playlistLabel()} ${e.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(t.message),this.hls.trigger(Oa.ERROR,{type:Ia.MEDIA_ERROR,details:Ra.FRAG_PARSING_ERROR,fatal:!1,error:t,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${i.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=zh,this.log(`Parsed ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)})`),this.hls.trigger(Oa.FRAG_PARSED,{frag:e,part:t})}playlistLabel(){return this.playlistType===Ba?"level":"track"}fragInfo(e,t=!0,i){var s,r;return`${this.playlistLabel()} ${e.level} (${i?"part":"frag"}:[${(null!=(s=t&&!i?e.startPTS:(i||e).start)?s:NaN).toFixed(3)}-${(null!=(r=t&&!i?e.endPTS:(i||e).end)?r:NaN).toFixed(3)}]${i&&"main"===e.type?"INDEPENDENT="+(i.independent?"YES":"NO"):""}`}treatAsGap(e,t){t&&t.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)}resetTransmuxer(){var e;null==(e=this.transmuxer)||e.reset()}recoverWorkerError(e){"demuxerWorker"===e.event&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}function Qh(e){return!!e.interstitialsController&&!1!==e.enableInterstitialPlayback}class Zh{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let i;return e.length?(i=1===e.length?e[0]:function(e,t){const i=new Uint8Array(t);let s=0;for(let t=0;t<e.length;t++){const r=e[t];i.set(r,s),s+=r.length}return i}(e,t),this.reset(),i):new Uint8Array(0)}reset(){this.chunks.length=0,this.dataLength=0}}var ec,tc={exports:{}};var ic=(ec||(ec=1,function(e){var t=Object.prototype.hasOwnProperty,i="~";function s(){}function r(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function n(e,t,s,n,a){if("function"!=typeof s)throw new TypeError("The listener must be a function");var o=new r(s,n||e,a),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],o]:e._events[l].push(o):(e._events[l]=o,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new s:delete e._events[t]}function o(){this._events=new s,this._eventsCount=0}Object.create&&(s.prototype=Object.create(null),(new s).__proto__||(i=!1)),o.prototype.eventNames=function(){var e,s,r=[];if(0===this._eventsCount)return r;for(s in e=this._events)t.call(e,s)&&r.push(i?s.slice(1):s);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},o.prototype.listeners=function(e){var t=i?i+e:e,s=this._events[t];if(!s)return[];if(s.fn)return[s.fn];for(var r=0,n=s.length,a=new Array(n);r<n;r++)a[r]=s[r].fn;return a},o.prototype.listenerCount=function(e){var t=i?i+e:e,s=this._events[t];return s?s.fn?1:s.length:0},o.prototype.emit=function(e,t,s,r,n,a){var o=i?i+e:e;if(!this._events[o])return!1;var l,d,h=this._events[o],c=arguments.length;if(h.fn){switch(h.once&&this.removeListener(e,h.fn,void 0,!0),c){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,t),!0;case 3:return h.fn.call(h.context,t,s),!0;case 4:return h.fn.call(h.context,t,s,r),!0;case 5:return h.fn.call(h.context,t,s,r,n),!0;case 6:return h.fn.call(h.context,t,s,r,n,a),!0}for(d=1,l=new Array(c-1);d<c;d++)l[d-1]=arguments[d];h.fn.apply(h.context,l)}else{var u,f=h.length;for(d=0;d<f;d++)switch(h[d].once&&this.removeListener(e,h[d].fn,void 0,!0),c){case 1:h[d].fn.call(h[d].context);break;case 2:h[d].fn.call(h[d].context,t);break;case 3:h[d].fn.call(h[d].context,t,s);break;case 4:h[d].fn.call(h[d].context,t,s,r);break;default:if(!l)for(u=1,l=new Array(c-1);u<c;u++)l[u-1]=arguments[u];h[d].fn.apply(h[d].context,l)}}return!0},o.prototype.on=function(e,t,i){return n(this,e,t,i,!1)},o.prototype.once=function(e,t,i){return n(this,e,t,i,!0)},o.prototype.removeListener=function(e,t,s,r){var n=i?i+e:e;if(!this._events[n])return this;if(!t)return a(this,n),this;var o=this._events[n];if(o.fn)o.fn!==t||r&&!o.once||s&&o.context!==s||a(this,n);else{for(var l=0,d=[],h=o.length;l<h;l++)(o[l].fn!==t||r&&!o[l].once||s&&o[l].context!==s)&&d.push(o[l]);d.length?this._events[n]=1===d.length?d[0]:d:a(this,n)}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&a(this,t)):(this._events=new s,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=i,o.EventEmitter=o,e.exports=o}
vendor: 5,712 bytes, line 2
2(tc)),tc.exports),sc=ao(ic);const rc="1.6.2",nc={};function ac(e,t){return t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128}function oc(e,t){return t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128}function lc(e,t){let i=0;return i=(127&e[t])<<21,i|=(127&e[t+1])<<14,i|=(127&e[t+2])<<7,i|=127&e[t+3],i}function dc(e,t){const i=t;let s=0;for(;oc(e,t);){s+=10;s+=lc(e,t+6),ac(e,t+10)&&(s+=10),t+=s}if(s>0)return e.subarray(i,i+s)}function hc(e,t){return 255===e[t]&&240==(246&e[t+1])}function cc(e,t){return 1&e[t+1]?7:9}function uc(e,t){return(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5}function fc(e,t){return t+1<e.length&&hc(e,t)}function mc(e,t){if(fc(e,t)){const i=cc(e,t);if(t+i>=e.length)return!1;const s=uc(e,t);if(s<=i)return!1;const r=t+s;return r===e.length||fc(e,r)}return!1}function pc(e,t,i,s,r){if(!e.samplerate){const n=function(e,t,i,s){const r=t[i+2],n=r>>2&15;if(n>12){const t=new Error(`invalid ADTS sampling index:${n}`);return void e.emit(Oa.ERROR,Oa.ERROR,{type:Ia.MEDIA_ERROR,details:Ra.FRAG_PARSING_ERROR,fatal:!0,error:t,reason:t.message})}const a=1+(r>>6&3),o=t[i+3]>>6&3|(1&r)<<2,l="mp4a.40."+a,d=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350][n];let h=n;5!==a&&29!==a||(h-=3);const c=[a<<3|(14&h)>>1,(1&h)<<7|o<<3];return to.log(`manifest codec:${s}, parsed codec:${l}, channels:${o}, rate:${d} (ADTS object type:${a} sampling index:${n})`),{config:c,samplerate:d,channelCount:o,codec:l,parsedCodec:l,manifestCodec:s}}(t,i,s,r);if(!n)return;za(e,n)}}function gc(e){return 9216e4/e}function yc(e,t,i,s,r){const n=s+r*gc(e.samplerate),a=function(e,t){const i=cc(e,t);if(t+i<=e.length){const s=uc(e,t)-i;if(s>0)return{headerLength:i,frameLength:s}}}(t,i);let o;if(a){const{frameLength:s,headerLength:r}=a,l=r+s,d=Math.max(0,i+l-t.length);d?(o=new Uint8Array(l-r),o.set(t.subarray(i+r,t.length),0)):o=t.subarray(i+r,i+l);const h={unit:o,pts:n};return d||e.samples.push(h),{sample:h,length:l,missing:d}}const l=t.length-i;o=new Uint8Array(l),o.set(t.subarray(i,t.length),0);return{sample:{unit:o,pts:n},length:l,missing:-1}}function _c(e,t){return oc(e,t)&&lc(e,t+6)+10<=e.length-t}function vc(e,t){if(e<0)return-vc(-e,t);const i=Math.pow(10,t);if(Math.abs(e*i%1-.5)<Number.EPSILON){const t=Math.floor(e*i);return(t%2==0?t:t+1)/i}return Math.round(e*i)/i}function bc(e,t=0,i=1/0){return function(e,t,i,s){const r=function(e){return e instanceof ArrayBuffer?e:e.buffer}(e);let n=1;"BYTES_PER_ELEMENT"in s&&(n=s.BYTES_PER_ELEMENT);const a=(c=e,c&&c.buffer instanceof ArrayBuffer&&void 0!==c.byteLength&&void 0!==c.byteOffset?e.byteOffset:0),o=(a+e.byteLength)/n,l=(a+t)/n,d=Math.floor(Math.max(0,Math.min(l,o))),h=Math.floor(Math.min(d+Math.max(i,0),o));var c;return new s(r,d,h-d)}(e,t,i,Uint8Array)}function wc(e){const t={key:e.type,description:"",data:"",mimeType:null,pictureType:null};if(e.size<2)return;if(3!==e.data[0])return void console.log("Ignore frame with unrecognized character encoding");const i=e.data.subarray(1).indexOf(0);if(-1===i)return;const s=ro(bc(e.data,1,i)),r=e.data[2+i],n=e.data.subarray(3+i).indexOf(0);if(-1===n)return;const a=ro(bc(e.data,3+i,n));let o;return o="--\x3e"===s?ro(bc(e.data,4+i+n)):function(e){return e instanceof ArrayBuffer?e:0==e.byteOffset&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}(e.data.subarray(4+i+n)),t.mimeType=s,t.pictureType=r,t.description=a,t.data=o,t}function Tc(e){return"PRIV"===e.type?function(e){if(e.size<2)return;const t=ro(e.data,!0),i=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:i.buffer}}(e):"W"===e.type[0]?function(e){if("WXXX"===e.type){if(e.size<2)return;let t=1;const i=ro(e.data.subarray(t),!0);t+=i.length+1;const s=ro(e.data.subarray(t));return{key:e.type,info:i,data:s}}const t=ro(e.data);return{key:e.type,info:"",data:t}}(e):"APIC"===e.type?wc(e):function(e){if(e.size<2)return;if("TXXX"===e.type){let t=1;const i=ro(e.data.subarray(t),!0);t+=i.length+1;const s=ro(e.data.subarray(t));return{key:e.type,info:i,data:s}}const t=ro(e.data.subarray(1));return{key:e.type,info:"",data:t}}(e)}function Mc(e){const t=String.fromCharCode(e[0],e[1],e[2],e[3]),i=lc(e,4);return{type:t,size:i,data:e.subarray(10,10+i)}}function Sc(e){let t=0;const i=[];for(;oc(e,t);){const s=lc(e,t+6);e[t+5]>>6&1&&(t+=10),t+=10;const r=t+s;for(;t+10<r;){const s=Mc(e.subarray(t)),r=Tc(s);r&&i.push(r),t+=s.size+10}ac(e,t)&&(t+=10)}return i}function Lc(e){return e&&"PRIV"===e.key&&"com.apple.streaming.transportStreamTimestamp"===e.info}function kc(e){if(8===e.data.byteLength){const t=new Uint8Array(e.data),i=1&t[3];let s=(t[4]<<23)+(t[5]<<15)+(t[6]<<7)+t[7];return s/=45,i&&(s+=47721858.84),Math.round(s)}}function Ec(e){const t=Sc(e);for(let e=0;e<t.length;e++){const i=t[e];if(Lc(i))return kc(i)}}let Dc=function(e){return e.audioId3="org.id3",e.dateRange="com.apple.quicktime.HLS",e.emsg="https://aomedia.org/emsg/ID3",e.misbklv="urn:misb:KLV:bin:1910.1",e}({});function xc(e="",t=9e4){return{type:e,id:-1,pid:-1,inputTimeScale:t,sequenceNumber:-1,samples:[],dropped:0}}class Ac{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(e,t,i,s){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(e){this.initPTS=e,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(e,t){return!1}appendFrame(e,t,i){}demux(e,t){this.cachedData&&(e=Vo(this.cachedData,e),this.cachedData=null);
vendor: 18,904 bytes, line 2
2let i,s=dc(e,0),r=s?s.length:0;const n=this._audioTrack,a=this._id3Track,o=s?Ec(s):void 0,l=e.length;for((null===this.basePTS||0===this.frameIndex&&Aa(o))&&(this.basePTS=Pc(o,t,this.initPTS),this.lastPTS=this.basePTS),null===this.lastPTS&&(this.lastPTS=this.basePTS),s&&s.length>0&&a.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:s,type:Dc.audioId3,duration:Number.POSITIVE_INFINITY});r<l;){if(this.canParse(e,r)){const t=this.appendFrame(n,e,r);t?(this.frameIndex++,this.lastPTS=t.sample.pts,r+=t.length,i=r):r=l}else _c(e,r)?(s=dc(e,r),a.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:s,type:Dc.audioId3,duration:Number.POSITIVE_INFINITY}),r+=s.length,i=r):r++;if(r===l&&i!==l){const t=e.slice(i);this.cachedData?this.cachedData=Vo(this.cachedData,t):this.cachedData=t}}return{audioTrack:n,videoTrack:xc(),id3Track:a,textTrack:xc()}}demuxSampleAes(e,t,i){return Promise.reject(new Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(e){const t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:xc(),id3Track:this._id3Track,textTrack:xc()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const Pc=(e,t,i)=>{if(Aa(e))return 90*e;return 9e4*t+(i?9e4*i.baseTime/i.timescale:0)};let Cc=null;const Ic=[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],Rc=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Oc=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Yc=[0,1,1,4];function Fc(e,t,i,s,r){if(i+24>t.length)return;const n=$c(t,i);if(n&&i+n.frameLength<=t.length){const a=s+r*(9e4*n.samplesPerFrame/n.sampleRate),o={unit:t.subarray(i,i+n.frameLength),pts:a,dts:a};return e.config=[],e.channelCount=n.channelCount,e.samplerate=n.sampleRate,e.samples.push(o),{sample:o,length:n.frameLength,missing:0}}}function $c(e,t){const i=e[t+1]>>3&3,s=e[t+1]>>1&3,r=e[t+2]>>4&15,n=e[t+2]>>2&3;if(1!==i&&0!==r&&15!==r&&3!==n){const a=e[t+2]>>1&1,o=e[t+3]>>6,l=1e3*Ic[14*(3===i?3-s:3===s?3:4)+r-1],d=Rc[3*(3===i?0:2===i?1:2)+n],h=3===o?1:2,c=Oc[i][s],u=Yc[s],f=8*c*u,m=Math.floor(c*l/d+a)*u;if(null===Cc){const e=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Cc=e?parseInt(e[1]):0}return!!Cc&&Cc<=87&&2===s&&l>=224e3&&0===o&&(e[t+3]=128|e[t+3]),{sampleRate:d,channelCount:h,frameLength:m,samplesPerFrame:f}}}function Nc(e,t){return!(255!==e[t]||224&~e[t+1]||!(6&e[t+1]))}function Bc(e,t){return t+1<e.length&&Nc(e,t)}function Hc(e,t){if(t+1<e.length&&Nc(e,t)){const i=4,s=$c(e,t);let r=i;null!=s&&s.frameLength&&(r=s.frameLength);const n=t+r;return n===e.length||Bc(e,n)}return!1}const jc=(e,t)=>{let i=0,s=5;t+=s;const r=new Uint32Array(1),n=new Uint32Array(1),a=new Uint8Array(1);for(;s>0;){a[0]=e[t];const o=Math.min(s,8),l=8-o;n[0]=4278190080>>>24+l<<l,r[0]=(a[0]&n[0])>>l,i=i?i<<o|r[0]:r[0],t+=1,s-=o}return i};class Uc extends Ac{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,i,s){super.resetInitSegment(e,t,i,s),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:s,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,i){const s=Vc(e,t,i,this.basePTS,this.frameIndex);if(-1!==s){return{sample:e.samples[e.samples.length-1],length:s,missing:0}}}static probe(e){if(!e)return!1;const t=dc(e,0);if(!t)return!1;const i=t.length;return 11===e[i]&&119===e[i+1]&&void 0!==Ec(t)&&jc(e,i)<16}}function Vc(e,t,i,s,r){if(i+8>t.length)return-1;if(11!==t[i]||119!==t[i+1])return-1;const n=t[i+4]>>6;if(n>=3)return-1;const a=[48e3,44100,32e3][n],o=63&t[i+4],l=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*o+n];if(i+l>t.length)return-1;const d=t[i+6]>>5;let h=0;2===d?h+=2:(1&d&&1!==d&&(h+=2),4&d&&(h+=2));const c=(t[i+6]<<8|t[i+7])>>12-h&1,u=[2,1,2,3,3,4,4,5][d]+c,f=t[i+5]>>3,m=7&t[i+5],p=new Uint8Array([n<<6|f<<1|m>>2,(3&m)<<6|d<<3|c<<2|o>>4,o<<4&224]),g=s+r*(1536/a*9e4),y=t.subarray(i,i+l);return e.config=p,e.channelCount=u,e.samplerate=a,e.samples.push({unit:y,pts:g}),l}const Gc=/\/emsg[-/]ID3/i;function zc(e,t){return Aa(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}class Wc{constructor(e,t,i){this.keyData=void 0,this.decrypter=void 0,this.keyData=i,this.decrypter=new md(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,dd)}decryptAacSample(e,t,i){const s=e[t].unit;if(s.length<=16)return;const r=s.subarray(16,s.length-s.length%16),n=r.buffer.slice(r.byteOffset,r.byteOffset+r.length);this.decryptBuffer(n).then((r=>{const n=new Uint8Array(r);s.set(n,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,i)}))}decryptAacSamples(e,t,i){for(;;t++){if(t>=e.length)return void i();if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,i),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=16*Math.floor((e.length-48)/160)+16,i=new Int8Array(t);let s=0;for(let t=32;t<e.length-16;t+=160,s+=16)i.set(e.subarray(t,t+16),s);return i}getAvcDecryptedUnit(e,t){const i=new Uint8Array(t);let s=0;for(let t=32;t<e.length-16;t+=160,s+=16)e.set(i.subarray(s,s+16),t);return e}decryptAvcSample(e,t,i,s,r){const n=Ko(r.data),a=this.getAvcEncryptedData(n);this.decryptBuffer(a.buffer).then((a=>{r.data=this.getAvcDecryptedUnit(n,a),this.decrypter.isSync()||this.decryptAvcSamples(e,t,i+1,s)}))}decryptAvcSamples(e,t,i,s){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,i=0){if(t>=e.length)return void s();const r=e[t].units;for(;!(i>=r.length);i++){const n=r[i];if(!(n.data.length<=48||1!==n.type&&5!==n.type||(this.decryptAvcSample(e,t,i,s,n),this.decrypter.isSync())))return}}}}class qc{constructor(){this.VideoSample=null}createVideoSample(e,t,i){return{key:e,frame:!1,pts:t,dts:i,units:[],length:0}}getLastNalUnit(e){var t;let i,s=this.VideoSample;if(s&&0!==s.units.length||(s=e[e.length-1]),null!=(t=s)&&t.units){const e=s.units;i=e[e.length-1]}return i}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(void 0===e.pts){const i=t.samples,s=i.length;if(!s)return void t.dropped++;{const t=i[s-1];e.pts=t.pts,e.dts=t.dts}}t.samples.push(e)}}parseNALu(e,t,i){const s=t.byteLength;let r=e.naluState||0;const n=r,a=[];let o,l,d,h=0,c=-1,u=0;for(-1===r&&(c=0,u=this.getNALuType(t,0),r=0,h=1);h<s;)if(o=t[h++],r)if(1!==r)if(o)if(1===o){if(l=h-r-1,c>=0){const e={data:t.subarray(c,l),type:u};a.push(e)}else{const i=this.getLastNalUnit(e.samples);i&&(n&&h<=4-n&&i.state&&(i.data=i.data.subarray(0,i.data.byteLength-n)),l>0&&(i.data=Vo(i.data,t.subarray(0,l)),i.state=0))}h<s?(d=this.getNALuType(t,h),c=h,u=d,r=0):r=-1}else r=0;else r=3;else r=o?0:2;else r=o?0:1;if(c>=0&&r>=0){const e={data:t.subarray(c,s),type:u,state:r};a.push(e)}if(0===a.length){const i=this.getLastNalUnit(e.samples);i&&(i.data=Vo(i.data,t))}return e.naluState=r,a}}class Kc{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const e=this.data,t=this.bytesAvailable,i=e.byteLength-t,s=new Uint8Array(4),r=Math.min(4,t);if(0===r)throw new Error("no bytes available");s.set(e.subarray(i,i+r)),this.word=new DataView(s.buffer).getUint32(0),this.bitsAvailable=8*r,this.bytesAvailable-=r}skipBits(e){let t;e=Math.min(e,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(t=(e-=this.bitsAvailable)>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let t=Math.min(this.bitsAvailable,e);const i=this.word>>>32-t;if(e>32&&to.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return t=e-t,t>0&&this.bitsAvailable?i<<t|this.readBits(t):i}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if(this.word&2147483648>>>e)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return 1===this.readBits(1)}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class Jc extends qc{parsePES(e,t,i,s){const r=this.parseNALu(e,i.data,s);let n,a=this.VideoSample,o=!1;i.data=null,a&&r.length&&!e.audFound&&(this.pushAccessUnit(a,e),a=this.VideoSample=this.createVideoSample(!1,i.pts,i.dts)),r.forEach((s=>{var r,l;switch(s.type){case 1:{let t=!1;n=!0;const r=s.data;if(o&&r.length>4){const e=this.readSliceType(r);2!==e&&4!==e&&7!==e&&9!==e||(t=!0)}var d;if(t)null!=(d=a)&&d.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null);a||(a=this.VideoSample=this.createVideoSample(!0,i.pts,i.dts)),a.frame=!0,a.key=t;break}case 5:n=!0,null!=(r=a)&&r.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null),a||(a=this.VideoSample=this.createVideoSample(!0,i.pts,i.dts)),a.key=!0,a.frame=!0;break;case 6:n=!0,qo(s.data,1,i.pts,t.samples);break;case 7:{var h,c;n=!0,o=!0;const t=s.data,i=this.readSPS(t);if(!e.sps||e.width!==i.width||e.height!==i.height||(null==(h=e.pixelRatio)?void 0:h[0])!==i.pixelRatio[0]||(null==(c=e.pixelRatio)?void 0:c[1])!==i.pixelRatio[1]){e.width=i.width,e.height=i.height,e.pixelRatio=i.pixelRatio,e.sps=[t];const s=t.subarray(1,4);let r="avc1.";for(let e=0;e<3;e++){let t=s[e].toString(16);t.length<2&&(t="0"+t),r+=t}e.codec=r}break}case 8:n=!0,e.pps=[s.data];break;case 9:n=!0,e.audFound=!0,null!=(l=a)&&l.frame&&(this.pushAccessUnit(a,e),a=null),a||(a=this.VideoSample=this.createVideoSample(!1,i.pts,i.dts));break;case 12:n=!0;break;default:n=!1}if(a&&n){a.units.push(s)}})),s&&a&&(this.pushAccessUnit(a,e),this.VideoSample=null)}getNALuType(e,t){return 31&e[t]}readSliceType(e){const t=new Kc(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let i,s=8,r=8;for(let n=0;n<e;n++)0!==r&&(i=t.readEG(),r=(s+i+256)%256),s=0===r?s:r}readSPS(e){const t=new Kc(e);let i,s,r,n=0,a=0,o=0,l=0;const d=t.readUByte.bind(t),h=t.readBits.bind(t),c=t.readUEG.bind(t),u=t.readBoolean.bind(t),f=t.skipBits.bind(t),m=t.skipEG.bind(t),p=t.skipUEG.bind(t),g=this.skipScalingList.bind(this);d();const y=d();if(h(5),f(3),d(),p(),100===y||110===y||122===y||244===y||44===y||83===y||86===y||118===y||128===y){const e=c();if(3===e&&f(1),p(),p(),f(1),u())for(s=3!==e?8:12,r=0;r<s;r++)u()&&g(r<6?16:64,t)}p();const _=c();if(0===_)c();else if(1===_)for(f(1),m(),m(),i=c(),r=0;r<i;r++)m();p(),f(1);const v=c(),b=c(),w=h(1);0===w&&f(1),f(1),u()&&(n=c(),a=c(),o=c(),l=c());let T=[1,1];if(u()&&u()){switch(d()){case 1:T=[1,1];break;case 2:T=[12,11];break;case 3:T=[10,11];break;case 4:T=[16,11];break;case 5:T=[40,33];break;case 6:T=[24,11];break;case 7:T=[20,11];break;case 8:T=[32,11];break;case 9:T=[80,33];break;case 10:T=[18,11];break;case 11:T=[15,11];break;case 12:T=[64,33];break;case 13:T=[160,99];break;case 14:T=[4,3];break;case 15:T=[3,2];break;case 16:T=[2,1];break;case 255:T=[d()<<8|d(),d()<<8|d()]}}return{width:Math.ceil(16*(v+1)-2*n-2*a),height:(2-w)*(b+1)*16-(w?2:4)*(o+l),pixelRatio:T}}}class Xc extends qc{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,i,s){const r=this.parseNALu(e,i.data,s);let n,a=this.VideoSample,o=!1;i.data=null,a&&r.length&&!e.audFound&&(this.pushAccessUnit(a,e),a=this.VideoSample=this.createVideoSample(!1,i.pts,i.dts)),r.forEach((s=>{var r,l;switch(s.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:a||(a=this.VideoSample=this.createVideoSample(!1,i.pts,i.dts)),a.frame=!0,n=!0;break;case 16:case 17:case 18:case 21:var d;if(n=!0,o)null!=(d=a)&&d.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null);a||(a=this.VideoSample=this.createVideoSample(!0,i.pts,i.dts)),a.key=!0,a.frame=!0;break;case 19:case 20:n=!0,null!=(r=a)&&r.frame&&!a.key&&(this.pushAccessUnit(a,e),a=this.VideoSample=null),a||(a=this.VideoSample=this.createVideoSample(!0,i.pts,i.dts)),a.key=!0,a.frame=!0;break;case 39:n=!0,qo(s.data,2,i.pts,t.samples);break;case 32:n=!0,e.vps||("object"!=typeof e.params&&(e.params={}),e.params=za(e.params,this.readVPS(s.data)),this.initVPS=s.data),e.vps=[s.data];break;case 33:if(n=!0,o=!0,void 0===e.vps||e.vps[0]===this.initVPS||void 0===e.sps||this.matchSPS(e.sps[0],s.data)||(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const t=this.readSPS(s.data);e.width=t.width,e.height=t.height,e.pixelRatio=t.pixelRatio,e.codec=t.codecString,e.sps=[],"object"!=typeof e.params&&(e.params={});for(const i in t.params)e.params[i]=t.params[i]}this.pushParameterSet(e.sps,s.data,e.vps),a||(a=this.VideoSample=this.createVideoSample(!0,i.pts,i.dts)),a.key=!0;break;case 34:if(n=!0,"object"==typeof e.params){if(!e.pps){e.pps=[];const t=this.readPPS(s.data);for(const i in t)e.params[i]=t[i]}this.pushParameterSet(e.pps,s.data,e.vps)}break;case 35:n=!0,e.audFound=!0,null!=(l=a)&&l.frame&&(this.pushAccessUnit(a,e),a=null),a||(a=this.VideoSample=this.createVideoSample(!1,i.pts,i.dts));break;default:n=!1}if(a&&n){a.units.push(s)}})),s&&a&&(this.pushAccessUnit(a,e),this.VideoSample=null)}pushParameterSet(e,t,i){(i&&i[0]===this.initVPS||!i&&!e.length)&&e.push(t)}getNALuType(e,t){return(126&e[t])>>>1}ebsp2rbsp(e){const t=new Uint8Array(e.byteLength);let i=0;for(let s=0;s<e.byteLength;s++)s>=2&&3===e[s]&&0===e[s-1]&&0===e[s-2]||(t[i]=e[s],i++);return new Uint8Array(t.buffer,0,i)}pushAccessUnit(e,t){super.pushAccessUnit(e,t),this.initVPS&&(this.initVPS=null)}readVPS(e){const t=new Kc(e);t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6);return{numTemporalLayers:t.readBits(3)+1,temporalIdNested:t.readBoolean()}}readSPS(e){const t=new Kc(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const i=t.readBits(3);t.readBoolean();const s=t.readBits(2),r=t.readBoolean(),n=t.readBits(5),a=t.readUByte(),o=t.readUByte(),l=t.readUByte(),d=t.readUByte(),h=t.readUByte(),c=t.readUByte(),u=t.readUByte(),f=t.readUByte(),m=t.readUByte(),p=t.readUByte(),g=t.readUByte(),y=[],_=[];for(let e=0;e<i;e++)y.push(t.readBoolean()),_.push(t.readBoolean());if(i>0)for(let e=i;e<8;e++)t.readBits(2);for(let e=0;e<i;e++)y[e]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),_[e]&&t.readUByte();t.readUEG();const v=t.readUEG();3==v&&t.skipBits(1);const b=t.readUEG(),w=t.readUEG(),T=t.readBoolean();let M=0,S=0,L=0,k=0;T&&(M+=t.readUEG(),S+=t.readUEG(),L+=t.readUEG(),k+=t.readUEG());const E=t.readUEG(),D=t.readUEG(),x=t.readUEG();for(let e=t.readBoolean()?0:i;e<=i;e++)t.skipUEG(),t.skipUEG(),t.skipUEG();t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG();if(t.readBoolean()){if(t.readBoolean())for(let e=0;e<4;e++)for(let i=0;i<(3===e?2:6);i++){if(t.readBoolean()){const i=Math.min(64,1<<4+(e<<1));e>1&&t.readEG();for(let e=0;e<i;e++)t.readEG()}else t.readUEG()}}t.readBoolean(),t.readBoolean();t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const A=t.readUEG();let P=0;for(let e=0;e<A;e++){let i=!1;if(0!==e&&(i=t.readBoolean()),i){e===A&&t.readUEG(),t.readBoolean(),t.readUEG();let i=0;for(let e=0;e<=P;e++){const e=t.readBoolean();let s=!1;e||(s=t.readBoolean()),(e||s)&&i++}P=i}else{const e=t.readUEG(),i=t.readUEG();P=e+i;for(let i=0;i<e;i++)t.readUEG(),t.readBoolean();for(let e=0;e<i;e++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const e=t.readUEG();for(let i=0;i<e;i++){for(let e=0;e<x+4;e++)t.readBits(1);t.readBits(1)}}let C=0,I=1,R=1,O=!0,Y=1,F=0;t.readBoolean(),t.readBoolean();let $=!1;if(t.readBoolean()){if(t.readBoolean()){const e=t.readUByte();e>0&&e<16?(I=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][e-1],R=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][e-1]):255===e&&(I=t.readBits(16),R=t.readBits(16))}t.readBoolean()&&t.readBoolean();if(t.readBoolean()){t.readBits(3),t.readBoolean();t.readBoolean()&&(t.readUByte(),t.readUByte(),t.readUByte())}t.readBoolean()&&(t.readUEG(),t.readUEG()),t.readBoolean(),t.readBoolean(),t.readBoolean(),$=t.readBoolean(),$&&(M+=t.readUEG(),S+=t.readUEG(),L+=t.readUEG(),k+=t.readUEG());if(t.readBoolean()){Y=t.readBits(32),F=t.readBits(32);t.readBoolean()&&t.readUEG();if(t.readBoolean()){const e=t.readBoolean(),s=t.readBoolean();let r=!1;(e||s)&&(r=t.readBoolean(),r&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),r&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let n=0;n<=i;n++){O=t.readBoolean();let i=!1;O||t.readBoolean()?t.readEG():i=t.readBoolean();const n=i?1:t.readUEG()+1;if(e)for(let e=0;e<n;e++)t.readUEG(),t.readUEG(),r&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(s)for(let e=0;e<n;e++)t.readUEG(),t.readUEG(),r&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),C=t.readUEG())}let N=b,B=w;if(T||$){let e=1,t=1;1===v?e=t=2:2==v&&(e=2),N=b-e*S-e*M,B=w-t*k-t*L}const H=s?["A","B","C"][s]:"",j=a<<24|o<<16|l<<8|d;let U=0;for(let e=0;e<32;e++)U=(U|(j>>e&1)<<31-e)>>>0;let V=U.toString(16);1===n&&"2"===V&&(V="6");return{codecString:`hvc1.${H}${n}.${V}.${r?"H":"L"}${g}.B0`,params:{general_tier_flag:r,general_profile_idc:n,general_profile_space:s,general_profile_compatibility_flags:[a,o,l,d],general_constraint_indicator_flags:[h,c,u,f,m,p],general_level_idc:g,bit_depth:E+8,bit_depth_luma_minus8:E,bit_depth_chroma_minus8:D,min_spatial_segmentation_idc:C,chroma_format_idc:v,frame_rate:{fixed:O,fps:F/Y}},width:N,height:B,pixelRatio:[I,R]}}readPPS(e){const t=new Kc(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.skipUEG(),t.skipUEG(),t.skipBits(2),t.skipBits(3),t.skipBits(2),t.skipUEG(),t.skipUEG(),t.skipEG(),t.skipBits(2);t.readBoolean()&&t.skipUEG(),t.skipEG(),t.skipEG(),t.skipBits(4);const i=t.readBoolean(),s=t.readBoolean();let r=1;return s&&i?r=0:s?r=3:i&&(r=2),{parallelismType:r}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}const Qc=188;class Zc{constructor(e,t,i,s){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupp
vendor: 4,393 bytes, line 2
2orted=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=e,this.config=t,this.typeSupported=i,this.logger=s,this.videoParser=null}static probe(e,t){const i=Zc.syncOffset(e);return i>0&&t.warn(`MPEG2-TS detected but first sync word found @ offset ${i}`),-1!==i}static syncOffset(e){const t=e.length;let i=Math.min(940,t-Qc)+1,s=0;for(;s<i;){let r=!1,n=-1,a=0;for(let o=s;o<t;o+=Qc){if(71!==e[o]||t-o!==Qc&&71!==e[o+Qc]){if(a)return-1;break}if(a++,-1===n&&(n=o,0!==n&&(i=Math.min(n+18612,e.length-Qc)+1)),r||(r=0===eu(e,o)),r&&a>1&&(0===n&&a>2||o+Qc>i))return n}s++}return-1}static createTrack(e,t){return{container:"video"===e||"audio"===e?"video/mp2t":void 0,type:e,id:Eo[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===e?t:void 0}}resetInitSegment(e,t,i,s){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=Zc.createTrack("video"),this._videoTrack.duration=s,this._audioTrack=Zc.createTrack("audio",s),this._id3Track=Zc.createTrack("id3"),this._txtTrack=Zc.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=i}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:i}=this;e&&(e.pesData=null),t&&(t.pesData=null),i&&(i.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,i=!1,s=!1){let r;i||(this.sampleAes=null);const n=this._videoTrack,a=this._audioTrack,o=this._id3Track,l=this._txtTrack;let d=n.pid,h=n.pesData,c=a.pid,u=o.pid,f=a.pesData,m=o.pesData,p=null,g=this.pmtParsed,y=this._pmtId,_=e.length;if(this.remainderData&&(_=(e=Vo(this.remainderData,e)).length,this.remainderData=null),_<Qc&&!s)return this.remainderData=e,{audioTrack:a,videoTrack:n,id3Track:o,textTrack:l};const v=Math.max(0,Zc.syncOffset(e));_-=(_-v)%Qc,_<e.byteLength&&!s&&(this.remainderData=new Uint8Array(e.buffer,_,e.buffer.byteLength-_));let b=0;for(let t=v;t<_;t+=Qc)if(71===e[t]){const s=!!(64&e[t+1]),_=eu(e,t);let b;if((48&e[t+3])>>4>1){if(b=t+5+e[t+4],b===t+Qc)continue}else b=t+4;switch(_){case d:if(s){if(h&&(r=nu(h,this.logger))){if(null===this.videoParser)switch(n.segmentCodec){case"avc":this.videoParser=new Jc;break;case"hevc":this.videoParser=new Xc}null!==this.videoParser&&this.videoParser.parsePES(n,l,r,!1)}h={data:[],size:0}}h&&(h.data.push(e.subarray(b,t+Qc)),h.size+=t+Qc-b);break;case c:if(s){if(f&&(r=nu(f,this.logger)))switch(a.segmentCodec){case"aac":this.parseAACPES(a,r);break;case"mp3":this.parseMPEGPES(a,r);break;case"ac3":this.parseAC3PES(a,r)}f={data:[],size:0}}f&&(f.data.push(e.subarray(b,t+Qc)),f.size+=t+Qc-b);break;case u:s&&(m&&(r=nu(m,this.logger))&&this.parseID3PES(o,r),m={data:[],size:0}),m&&(m.data.push(e.subarray(b,t+Qc)),m.size+=t+Qc-b);break;case 0:s&&(b+=e[b]+1),y=this._pmtId=tu(e,b);break;case y:{s&&(b+=e[b]+1);const r=iu(e,b,this.typeSupported,i,this.observer,this.logger);d=r.videoPid,d>0&&(n.pid=d,n.segmentCodec=r.segmentVideoCodec),c=r.audioPid,c>0&&(a.pid=c,a.segmentCodec=r.segmentAudioCodec),u=r.id3Pid,u>0&&(o.pid=u),null===p||g||(this.logger.warn(`MPEG-TS PMT found at ${t} after unknown PID '${p}'. Backtracking to sync byte @${v} to parse all TS packets.`),p=null,t=v-188),g=this.pmtParsed=!0;break}case 17:case 8191:break;default:p=_}}else b++;b>0&&su(this.observer,new Error(`Found ${b} TS packet/s that do not start with 0x47`),void 0,this.logger),n.pesData=h,a.pesData=f,o.pesData=m;const w={audioTrack:a,videoTrack:n,id3Track:o,textTrack:l};return s&&this.extractRemainingSamples(w),w}flush(){const{remainderData:e}=this;let t;return this.remainderData=null,t=e?this.demux(e,-1,!1,!0):{videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t}extractRemainingSamples(e){const{audioTrack:t,videoTrack:i,id3Track:s,textTrack:r}=e,n=i.pesData,a=t.pesData,o=s.pesData;let l;if(n&&(l=nu(n,this.logger))){if(null===this.videoParser)switch(i.segmentCodec){case"avc":this.videoParser=new Jc;break;case"hevc":this.videoParser=new Xc}null!==this.videoParser&&(this.videoParser.parsePES(i,r,l,!0),i.pesData=null)}else i.pesData=n;
vendor: 6,874 bytes, line 2
2if(a&&(l=nu(a,this.logger))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,l);break;case"mp3":this.parseMPEGPES(t,l);break;case"ac3":this.parseAC3PES(t,l)}t.pesData=null}else null!=a&&a.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=a;o&&(l=nu(o,this.logger))?(this.parseID3PES(s,l),s.pesData=null):s.pesData=o}demuxSampleAes(e,t,i){const s=this.demux(e,i,!0,!this.config.progressive),r=this.sampleAes=new Wc(this.observer,this.config,t);return this.decrypt(s,r)}decrypt(e,t){return new Promise((i=>{const{audioTrack:s,videoTrack:r}=e;s.samples&&"aac"===s.segmentCodec?t.decryptAacSamples(s.samples,0,(()=>{r.samples?t.decryptAvcSamples(r.samples,0,0,(()=>{i(e)})):i(e)})):r.samples&&t.decryptAvcSamples(r.samples,0,0,(()=>{i(e)}))}))}destroy(){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}parseAACPES(e,t){let i=0;const s=this.aacOverFlow;let r,n,a,o=t.data;if(s){this.aacOverFlow=null;const t=s.missing,r=s.sample.unit.byteLength;if(-1===t)o=Vo(s.sample.unit,o);else{const n=r-t;s.sample.unit.set(o.subarray(0,t),n),e.samples.push(s.sample),i=s.missing}}for(r=i,n=o.length;r<n-1&&!fc(o,r);r++);if(r!==i){let e;const t=r<n-1;if(e=t?`AAC PES did not start with ADTS header,offset:${r}`:"No ADTS header found in AAC PES",su(this.observer,new Error(e),t,this.logger),!t)return}if(pc(e,this.observer,o,r,this.audioCodec),void 0!==t.pts)a=t.pts;else{if(!s)return void this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");{const t=gc(e.samplerate);a=s.sample.pts+t}}let l,d=0;for(;r<n;){if(l=yc(e,o,r,a,d),r+=l.length,l.missing){this.aacOverFlow=l;break}for(d++;r<n-1&&!fc(o,r);r++);}}parseMPEGPES(e,t){const i=t.data,s=i.length;let r=0,n=0;const a=t.pts;if(void 0!==a)for(;n<s;)if(Bc(i,n)){const t=Fc(e,i,n,a,r);if(!t)break;n+=t.length,r++}else n++;else this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS")}parseAC3PES(e,t){{const i=t.data,s=t.pts;if(void 0===s)return void this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");const r=i.length;let n,a=0,o=0;for(;o<r&&(n=Vc(e,i,o,s,a++))>0;)o+=n}}parseID3PES(e,t){if(void 0===t.pts)return void this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");const i=za({},t,{type:this._videoTrack?Dc.emsg:Dc.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(i)}}function eu(e,t){return((31&e[t+1])<<8)+e[t+2]}function tu(e,t){return(31&e[t+10])<<8|e[t+11]}function iu(e,t,i,s,r,n){const a={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},o=t+3+((15&e[t+1])<<8|e[t+2])-4;for(t+=12+((15&e[t+10])<<8|e[t+11]);t<o;){const o=eu(e,t),l=(15&e[t+3])<<8|e[t+4];switch(e[t]){case 207:if(!s){ru("ADTS AAC",n);break}case 15:-1===a.audioPid&&(a.audioPid=o);break;case 21:-1===a.id3Pid&&(a.id3Pid=o);break;case 219:if(!s){ru("H.264",n);break}case 27:-1===a.videoPid&&(a.videoPid=o);break;case 3:case 4:i.mpeg||i.mp3?-1===a.audioPid&&(a.audioPid=o,a.segmentAudioCodec="mp3"):n.log("MPEG audio found, not supported in this browser");break;case 193:if(!s){ru("AC-3",n);break}case 129:i.ac3?-1===a.audioPid&&(a.audioPid=o,a.segmentAudioCodec="ac3"):n.log("AC-3 audio found, not supported in this browser");break;case 6:if(-1===a.audioPid&&l>0){let s=t+5,r=l;for(;r>2;){if(106===e[s])!0!==i.ac3?n.log("AC-3 audio found, not supported in this browser for now"):(a.audioPid=o,a.segmentAudioCodec="ac3");const t=e[s+1]+2;s+=t,r-=t}}break;case 194:case 135:return su(r,new Error("Unsupported EC-3 in M2TS found"),void 0,n),a;case 36:-1===a.videoPid&&(a.videoPid=o,a.segmentVideoCodec="hevc",n.log("HEVC in M2TS found"))}t+=l+5}return a}function su(e,t,i,s){s.warn(`parsing error: ${t.message}`),e.emit(Oa.ERROR,Oa.ERROR,{type:Ia.MEDIA_ERROR,details:Ra.FRAG_PARSING_ERROR,fatal:!1,levelRetry:i,error:t,reason:t.message})}function ru(e,t){t.log(`${e} with AES-128-CBC encryption found in unencrypted stream`)}function nu(e,t){let i,s,r,n,a,o=0;const l=e.data;if(!e||0===e.size)return null;for(;l[0].length<19&&l.length>1;)l[0]=Vo(l[0],l[1]),l.splice(1,1);i=l[0];if(1===(i[0]<<16)+(i[1]<<8)+i[2]){if(s=(i[4]<<8)+i[5],s&&s>e.size-6)return null;const d=i[7];192&d&&(n=536870912*(14&i[9])+4194304*(255&i[10])+16384*(254&i[11])+128*(255&i[12])+(254&i[13])/2,64&d?(a=536870912*(14&i[14])+4194304*(255&i[15])+16384*(254&i[16])+128*(255&i[17])+(254&i[18])/2,n-a>54e5&&(t.warn(`${Math.round((n-a)/9e4)}s delta between PTS and DTS, align them`),n=a)):a=n),r=i[8];let h=r+9;if(e.size<=h)return null;e.size-=h;const c=new Uint8Array(e.size);for(let e=0,t=l.length;e<t;e++){i=l[e];let t=i.byteLength;if(h){if(h>t){h-=t;continue}i=i.subarray(h),t-=h,h=0}c.set(i,o),o+=t}return s&&(s-=r+3),{data:c,pts:n,dts:a,len:s}}return null}class au{static getSilentFrame(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)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(6===t)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(1===t)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(2===t)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(3===t)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])}}}const ou=Math.pow(2,32)-1;class lu{static init(){let e;for(e in lu.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:[]},lu.types)lu.types.hasOwnProperty(e)&&(lu.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);const t=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]);lu.HDLR_TYPES={video:t,audio:i};const s=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),r=new
vendor: 4,162 bytes, line 2
2Uint8Array([0,0,0,0,0,0,0,0]);lu.STTS=lu.STSC=lu.STCO=r,lu.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),lu.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),lu.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),lu.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const n=new Uint8Array([105,115,111,109]),a=new Uint8Array([97,118,99,49]),o=new Uint8Array([0,0,0,1]);lu.FTYP=lu.box(lu.types.ftyp,n,o,n,a),lu.DINF=lu.box(lu.types.dinf,lu.box(lu.types.dref,s))}static box(e,...t){let i=8,s=t.length;const r=s;for(;s--;)i+=t[s].byteLength;const n=new Uint8Array(i);for(n[0]=i>>24&255,n[1]=i>>16&255,n[2]=i>>8&255,n[3]=255&i,n.set(e,4),s=0,i=8;s<r;s++)n.set(t[s],i),i+=t[s].byteLength;return n}static hdlr(e){return lu.box(lu.types.hdlr,lu.HDLR_TYPES[e])}static mdat(e){return lu.box(lu.types.mdat,e)}static mdhd(e,t){t*=e;const i=Math.floor(t/(ou+1)),s=Math.floor(t%(ou+1));return lu.box(lu.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24,i>>16&255,i>>8&255,255&i,s>>24,s>>16&255,s>>8&255,255&s,85,196,0,0]))}static mdia(e){return lu.box(lu.types.mdia,lu.mdhd(e.timescale||0,e.duration||0),lu.hdlr(e.type),lu.minf(e))}static mfhd(e){return lu.box(lu.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))}static minf(e){return"audio"===e.type?lu.box(lu.types.minf,lu.box(lu.types.smhd,lu.SMHD),lu.DINF,lu.stbl(e)):lu.box(lu.types.minf,lu.box(lu.types.vmhd,lu.VMHD),lu.DINF,lu.stbl(e))}static moof(e,t,i){return lu.box(lu.types.moof,lu.mfhd(e),lu.traf(i,t))}static moov(e){let t=e.length;const i=[];for(;t--;)i[t]=lu.trak(e[t]);return lu.box.apply(null,[lu.types.moov,lu.mvhd(e[0].timescale||0,e[0].duration||0)].concat(i).concat(lu.mvex(e)))}static mvex(e){let t=e.length;const i=[];for(;t--;)i[t]=lu.trex(e[t]);return lu.box.apply(null,[lu.types.mvex,...i])}static mvhd(e,t){t*=e;const i=Math.floor(t/(ou+1)),s=Math.floor(t%(ou+1)),r=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24,i>>16&255,i>>8&255,255&i,s>>24,s>>16&255,s>>8&255,255&s,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 lu.box(lu.types.mvhd,r)}static sdtp(e){const t=e.samples||[],i=new Uint8Array(4+t.length);let s,r;for(s=0;s<t.length;s++)r=t[s].flags,i[s+4]=r.dependsOn<<4|r.isDependedOn<<2|r.hasRedundancy;return lu.box(lu.types.sdtp,i)}static stbl(e){return lu.box(lu.types.stbl,lu.stsd(e),lu.box(lu.types.stts,lu.STTS),lu.box(lu.types.stsc,lu.STSC),lu.box(lu.types.stsz,lu.STSZ),lu.box(lu.types.stco,lu.STCO))}static avc1(e){let t,i,s,r=[],n=[];for(t=0;t<e.sps.length;t++)i=e.sps[t],s=i.byteLength,r.push(s>>>8&255),r.push(255&s),r=r.concat(Array.prototype.slice.call(i));for(t=0;t<e.pps.length;t++)i=e.pps[t],s=i.byteLength,n.push(s>>>8&255),n.push(255&s),n=n.concat(Array.prototype.slice.call(i));const a=lu.box(lu.types.avcC,new Uint8Array([1,r[3],r[4],r[5],255,224|e.sps.length].concat(r).concat([e.pps.length]).concat(n))),o=e.width,l=e.height,d=e.pixelRatio[0],h=e.pixelRatio[1];return lu.box(lu.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,o>>8&255,255&o,l>>8&255,255&l,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]),a,lu.box(lu.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),lu.box(lu.types.pasp,new Uint8Array([d>>24,d>>16&255,d>>8&255,255&d,h>>24,h>>16&255,h>>8&255,255&h])))}static esds(e){const t=e.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,...t,6,1,2])}static audioStsd(e){const t=e.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount||0,0,16,0,0,0,0,t>>8&255,255&t,0,0])}static mp4a(e){return lu.box(lu.types.mp4a,lu.audioStsd(e),lu.box(lu.types.esds,lu.esds(e)))}static mp3(e){return lu.box(lu.types[".mp3"],lu.audioStsd(e))}static ac3(e){return lu.box(lu.types["ac-3"],lu.audioStsd(e),lu.box(lu.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if("audio"===e.type){if("aac"===t)return lu.box(lu.types.stsd,lu.ST
vendor: 4,513 bytes, line 2
2SD,lu.mp4a(e));if("ac3"===t&&e.config)return lu.box(lu.types.stsd,lu.STSD,lu.ac3(e));if("mp3"===t&&"mp3"===e.codec)return lu.box(lu.types.stsd,lu.STSD,lu.mp3(e))}else{if(!e.pps||!e.sps)throw new Error("video track missing pps or sps");if("avc"===t)return lu.box(lu.types.stsd,lu.STSD,lu.avc1(e));if("hevc"===t&&e.vps)return lu.box(lu.types.stsd,lu.STSD,lu.hvc1(e))}throw new Error(`unsupported ${e.type} segment codec (${t}/${e.codec})`)}static tkhd(e){const t=e.id,i=(e.duration||0)*(e.timescale||0),s=e.width||0,r=e.height||0,n=Math.floor(i/(ou+1)),a=Math.floor(i%(ou+1));return lu.box(lu.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n,a>>24,a>>16&255,a>>8&255,255&a,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,s>>8&255,255&s,0,0,r>>8&255,255&r,0,0]))}static traf(e,t){const i=lu.sdtp(e),s=e.id,r=Math.floor(t/(ou+1)),n=Math.floor(t%(ou+1));return lu.box(lu.types.traf,lu.box(lu.types.tfhd,new Uint8Array([0,0,0,0,s>>24,s>>16&255,s>>8&255,255&s])),lu.box(lu.types.tfdt,new Uint8Array([1,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,n>>24,n>>16&255,n>>8&255,255&n])),lu.trun(e,i.length+16+20+8+16+8+8),i)}static trak(e){return e.duration=e.duration||4294967295,lu.box(lu.types.trak,lu.tkhd(e),lu.mdia(e))}static trex(e){const t=e.id;return lu.box(lu.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const i=e.samples||[],s=i.length,r=12+16*s,n=new Uint8Array(r);let a,o,l,d,h,c;for(t+=8+r,n.set(["video"===e.type?1:0,0,15,1,s>>>24&255,s>>>16&255,s>>>8&255,255&s,t>>>24&255,t>>>16&255,t>>>8&255,255&t],0),a=0;a<s;a++)o=i[a],l=o.duration,d=o.size,h=o.flags,c=o.cts,n.set([l>>>24&255,l>>>16&255,l>>>8&255,255&l,d>>>24&255,d>>>16&255,d>>>8&255,255&d,h.isLeading<<2|h.dependsOn,h.isDependedOn<<6|h.hasRedundancy<<4|h.paddingValue<<1|h.isNonSync,61440&h.degradPrio,15&h.degradPrio,c>>>24&255,c>>>16&255,c>>>8&255,255&c],12+16*a);return lu.box(lu.types.trun,n)}static initSegment(e){lu.types||lu.init();const t=lu.moov(e);return Vo(lu.FTYP,t)}static hvc1(e){const t=e.params,i=[e.vps,e.sps,e.pps],s=new Uint8Array([1,t.general_profile_space<<6|(t.general_tier_flag?32:0)|t.general_profile_idc,t.general_profile_compatibility_flags[0],t.general_profile_compatibility_flags[1],t.general_profile_compatibility_flags[2],t.general_profile_compatibility_flags[3],t.general_constraint_indicator_flags[0],t.general_constraint_indicator_flags[1],t.general_constraint_indicator_flags[2],t.general_constraint_indicator_flags[3],t.general_constraint_indicator_flags[4],t.general_constraint_indicator_flags[5],t.general_level_idc,240|t.min_spatial_segmentation_idc>>8,255&t.min_spatial_segmentation_idc,252|t.parallelismType,252|t.chroma_format_idc,248|t.bit_depth_luma_minus8,248|t.bit_depth_chroma_minus8,0,parseInt(t.frame_rate.fps),3|t.temporal_id_nested<<2|t.num_temporal_layers<<3|(t.frame_rate.fixed?64:0),i.length]);let r=s.length;for(let e=0;e<i.length;e+=1){r+=3;for(let t=0;t<i[e].length;t+=1)r+=2+i[e][t].length}const n=new Uint8Array(r);n.set(s,0),r=s.length;const a=i.length-1;for(let e=0;e<i.length;e+=1){n.set(new Uint8Array([32+e|(e===a?128:0),0,i[e].length]),r),r+=3;for(let t=0;t<i[e].length;t+=1)n.set(new Uint8Array([i[e][t].length>>8,255&i[e][t].length]),r),r+=2,n.set(i[e][t],r),r+=i[e][t].length}const o=lu.box(lu.types.hvcC,n),l=e.width,d=e.height,h=e.pixelRatio[0],c=e.pixelRatio[1];return lu.box(lu.types.hvc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,l>>8&255,255&l,d>>8&255,255&d,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o,lu.box(lu.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),lu.box(lu.types.pasp,new Uint8Array([h>>24,h>>16&255,h>>8&255,255&h,c>>24,c>>16&255,c>>8&255,255&c])))}}lu.types=void 0,lu.HDLR_TYPES=void 0,lu.STTS=void 0,lu.STSC=void 0,lu.STCO=void 0,lu.STSZ=void 0,lu.VMHD=void 0,lu.SMHD=void 0,lu.STSD=void 0,lu.FTYP=void 0,lu.DINF=void 0;function du(e,t,i=1,s=!1){const r=e*t*i;return s?Math.round(r):r}function hu(e,t=!1){return du(e,1e3,1/9e4,t)}let cu,uu=null,fu=null;function mu(e,t,i,s){return{duration:t,size:i,cts:s,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class pu{constructor(e,t,i,s){if(this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupp
vendor: 8,354 bytes, line 2
2orted=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=i,this.logger=s,this.ISGenerated=!1,null===uu){const e=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);uu=e?parseInt(e[1]):0}if(null===fu){const e=navigator.userAgent.match(/Safari\/(\d+)/i);fu=e?parseInt(e[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){this.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){this.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const i=e[0].pts,s=e.reduce(((e,s)=>{let r=s.pts,n=r-e;return n<-4294967296&&(t=!0,r=gu(r,i),n=r-e),n>0?e:r}),i);return t&&this.logger.debug("PTS rollover detected"),s}remux(e,t,i,s,r,n,a,o){let l,d,h,c,u,f,m=r,p=r;const g=e.pid>-1,y=t.pid>-1,_=t.samples.length,v=e.samples.length>0,b=a&&_>0||_>1;if((!g||v)&&(!y||b)||this.ISGenerated||a){if(this.ISGenerated){var w,T,M,S;const e=this.videoTrackConfig;(e&&(t.width!==e.width||t.height!==e.height||(null==(w=t.pixelRatio)?void 0:w[0])!==(null==(T=e.pixelRatio)?void 0:T[0])||(null==(M=t.pixelRatio)?void 0:M[1])!==(null==(S=e.pixelRatio)?void 0:S[1]))||!e&&b||null===this.nextAudioPts&&v)&&this.resetInitSegment()}this.ISGenerated||(h=this.generateIS(e,t,r,n));const i=this.isVideoContiguous;let s,a=-1;if(b&&(a=function(e){for(let t=0;t<e.length;t++)if(e[t].key)return t;return-1}(t.samples),!i&&this.config.forceKeyFrameOnDiscontinuity))if(f=!0,a>0){this.logger.warn(`[mp4-remuxer]: Dropped ${a} out of ${_} video samples due to a missing keyframe`);const e=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(a),t.dropped+=a,p+=(t.samples[0].pts-e)/t.inputTimeScale,s=p}else-1===a&&(this.logger.warn(`[mp4-remuxer]: No keyframe found out of ${_} video samples`),f=!1);if(this.ISGenerated){if(v&&b){const i=this.getVideoStartPts(t.samples),s=(gu(e.samples[0].pts,i)-i)/t.inputTimeScale;m+=Math.max(0,s),p+=Math.max(0,-s)}if(v){if(e.samplerate||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),h=this.generateIS(e,t,r,n)),d=this.remuxAudio(e,m,this.isAudioContiguous,n,y||b||o===Ha?p:void 0),b){const s=d?d.endPTS-d.startPTS:0;t.inputTimeScale||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),h=this.generateIS(e,t,r,n)),l=this.remuxVideo(t,p,i,s)}}else b&&(l=this.remuxVideo(t,p,i,0));l&&(l.firstKeyFrame=a,l.independent=-1!==a,l.firstKeyFramePTS=s)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(i.samples.length&&(u=yu(i,r,this._initPTS,this._initDTS)),s.samples.length&&(c=_u(s,r,this._initPTS))),{audio:d,video:l,initSegment:h,independent:f,text:c,id3:u}}generateIS(e,t,i,s){const r=e.samples,n=t.samples,a=this.typeSupported,o={},l=this._initPTS;let d,h,c,u=!l||s,f="audio/mp4";if(u&&(d=h=1/0),e.config&&r.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":a.mpeg?(f="audio/mpeg",e.codec=""):a.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3"}o.audio={id:"audio",container:f,codec:e.codec,initSegment:"mp3"===e.segmentCodec&&a.mpeg?new Uint8Array(0):lu.initSegment([e]),metadata:{channelCount:e.channelCount}},u&&(c=e.inputTimeScale,l&&c===l.timescale?u=!1:d=h=r[0].pts-Math.round(c*i))}if(t.sps&&t.pps&&n.length){if(t.timescale=t.inputTimeScale,o.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:lu.initSegment([t]),metadata:{width:t.width,height:t.height}},u)if(c=t.inputTimeScale,l&&c===l.timescale)u=!1;else{const e=this.getVideoStartPts(n),t=Math.round(c*i);h=Math.min(h,gu(n[0].dts,e)-t),d=Math.min(d,e-t)}this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(o).length)return this.ISGenerated=!0,u?(this._initPTS={baseTime:d,timescale:c},this._initDTS={baseTime:h,timescale:c}):d=c=void 0,{tracks:o,initPTS:d,timescale:c}}remuxVideo(e,t,i,s){const r=e.inputTimeScale,n=e.samples,a=[],o=n.length,l=this._initPTS;let d,h,c=this.nextAvcDts,u=8,f=this.videoSampleDuration,m=Number.POSITIVE_INFINITY,p=Number.NEGATIVE_INFINITY,g=!1;if(!i||null===c){const e=t*r,s=n[0].pts-gu(n[0].dts,n[0].pts);uu&&null!==c&&Math.abs(e-s-c)<15e3?i=!0:c=e-s}const y=l.baseTime*r/l.timescale;for(let e=0;e<o;e++){const t=n[e];t.pts=gu(t.pts-y,c),t.dts=gu(t.dts-y,c),t.dts<n[e>0?e-1:e].dts&&(g=!0)}g&&n.sort((function(e,t){const i=e.dts-t.dts,s=e.pts-t.pts;return i||s})),d=n[0].dts,h=n[n.length-1].dts;const _=h-d,v=_?Math.round(_/(o-1)):f||e.inputTimeScale/30;if(i){const i=d-c,s=i>v,r=i<-1;if((s||r)&&(s?this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${hu(i,!0)} ms (${i}dts) hole between fragments detected at ${t.toFixed(3)}`):this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${hu(-i,!0)} ms (${i}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!r||c>=n[0].pts||uu)){d=c;const e=n[0].pts-i;if(s)n[0].dts=d,n[0].pts=e;else{let t=!0;for(let s=0;s<n.length&&!(n[s].dts>e&&t);s++){const e=n[s].pts;if(n[s].dts-=i,n[s].pts-=i,s<n.length-1){const i=n[s+1].pts;t=i<=n[s].pts==i<=e}}}this.logger.log(`Video: Initial PTS/DTS adjusted: ${hu(e,!0)}/${hu(d,!0)}, delta: ${hu(i,!0)} ms`)}}d=Math.max(0,d);let b=0,w=0,T=d;for(let e=0;e<o;e++){const t=n[e],i=t.units,s=i.length;let r=0;for(let e=0;e<s;e++)r+=i[e].data.length;w+=r,b+=s,t.length=r,t.dts<T?(t.dts=T,T+=v/4|0||1):T=t.dts,m=Math.min(t.pts,m),p=Math.max(t.pts,p)}h=n[o-1].dts;const M=w+4*b+8;let S;try{S=new Uint8Array(M)}catch(e){return void this.observer.emit(Oa.ERROR,Oa.ERROR,{type:Ia.MUX_ERROR,details:Ra.REMUX_ALLOC_ERROR,fatal:!1,error:e,bytes:M,reason:`fail allocating video mdat ${M}`})}const L=new DataView(S.buffer);L.setUint32(0,M),S.set(lu.types.mdat,4);let k=!1,E=Number.POSITIVE_INFINITY,D=Number.POSITIVE_INFINITY,x=Number.NEGATIVE_INFINITY,A=Number.NEGATIVE_INFINITY;for(let e=0;e<o;e++){const t=n[e],i=t.units;let l,d=0;for(let e=0,t=i.length;e<t;e++){const t=i[e],s=t.data,r=t.data.byteLength;L.setUint32(u,r),u+=4,S.set(s,u),u+=r,d+=4+r}if(e<o-1)f=n[e+1].dts-t.dts,l=n[e+1].pts-t.pts;else{const i=this.config,a=e>0?t.dts-n[e-1].dts:v;if(l=e>0?t.pts-n[e-1].pts:v,i.stretchShortVideoTrack&&null!==this.nextAudioPts){const e=Math.floor(i.maxBufferHole*r),n=(s?m+s*r:this.nextAudioPts)-t.pts;n>e?(f=n-a,f<0?f=a:k=!0,this.logger.log(`[mp4-remuxer]: It is approximately ${n/90} ms to the next segment; using duration ${f/90} ms for the last video frame.`)):f=a}else f=a}const h=Math.round(t.pts-t.dts);E=Math.min(E,f),x=Math.max(x,f),D=Math.min(D,l),A=Math.max(A,l),a.push(mu(t.key,f,d,h))}if(a.length)if(uu){if(uu<70){const e=a[0].flags;e.dependsOn=2,e.isNonSync=0}}else if(fu&&A-D<x-E&&v/x<.025&&0===a[0].cts){this.logger.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let e=d;for(let t=0,i=a.length;t<i;t++){const s=e+a[t].duration,r=e+a[t].cts;if(t<i-1){const e=s+a[t+1].cts;a[t].duration=e-r}else a[t].duration=t?a[t-1].duration:v;a[t].cts=0,e=s}}f=k||!f?v:f,this.nextAvcDts=c=h+f,this.videoSampleDuration=f,this.isVideoContiguous=!0;const P={data1:lu.moof(e.sequenceNumber++,d,za(e,{samples:a})),data2:S,startPTS:m/r,endPTS:(p+f)/r,startDTS:d/r,endDTS:c/r,type:"video",hasAudio:!1,hasVideo:!0,nb:a.length,dropped:e.dropped};return e.samples=[],e.dropped=0,P}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return 1152;case"ac3":return 1536;default:return 1024}}remuxAudio(e,t,i,s,r){const n=e.inputTimeScale,a=n/(e.samplerate?e.samplerate:n),o=this.getSamplesPerFrame(e),l=o*a,d=this._initPTS,h="mp3"===e.segmentCodec&&this.typeSupported.mpeg,c=[],u=void 0!==r;let f=e.samples,m=h?0:8,p=this.nextAudioPts||-1;const g=t*n,y=d.baseTime*n/d.timescale;if(this.isAudioContiguous=i=i||f.length&&p>0&&(s&&Math.abs(g-p)<9e3||Math.abs(gu(f[0].pts-y,g)-p)<20*l),f.forEach((function(e){e.pts=gu(e.pts-y,g)})),!i||p<0){if(f=f.filter((e=>e.pts>=0)),!f.length)return;p=0===r?0:s&&!u?Math.max(0,g):f[0].pts}if("aac"===e.segmentCodec){const t=this.config.maxAudioFramesDrift;for(let i=0,s=p;i<f.length;i++){const r=f[i],a=r.pts,o=a-s,d=Math.abs(1e3*o/n);
vendor: 4,056 bytes, line 2
2if(o<=-t*l&&u)0===i&&(this.logger.warn(`Audio frame @ ${(a/n).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*o/n)} ms.`),this.nextAudioPts=p=s=a);else if(o>=t*l&&d<1e4&&u){let t=Math.round(o/l);s=a-t*l,s<0&&(t--,s+=l),0===i&&(this.nextAudioPts=p=s),this.logger.warn(`[mp4-remuxer]: Injecting ${t} audio frame @ ${(s/n).toFixed(3)}s due to ${Math.round(1e3*o/n)} ms gap.`);for(let n=0;n<t;n++){const t=Math.max(s,0);let n=au.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);n||(this.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),n=r.unit.subarray()),f.splice(i,0,{unit:n,pts:t}),s+=l,i++}}r.pts=s,s+=l}}let _,v=null,b=null,w=0,T=f.length;for(;T--;)w+=f[T].unit.byteLength;for(let t=0,s=f.length;t<s;t++){const s=f[t],r=s.unit;let n=s.pts;if(null!==b){c[t-1].duration=Math.round((n-b)/a)}else{if(i&&"aac"===e.segmentCodec&&(n=p),v=n,!(w>0))return;w+=m;try{_=new Uint8Array(w)}catch(e){return void this.observer.emit(Oa.ERROR,Oa.ERROR,{type:Ia.MUX_ERROR,details:Ra.REMUX_ALLOC_ERROR,fatal:!1,error:e,bytes:w,reason:`fail allocating audio mdat ${w}`})}if(!h){new DataView(_.buffer).setUint32(0,w),_.set(lu.types.mdat,4)}}_.set(r,m);const l=r.byteLength;m+=l,c.push(mu(!0,o,l,0)),b=n}const M=c.length;if(!M)return;const S=c[c.length-1];this.nextAudioPts=p=b+a*S.duration;const L=h?new Uint8Array(0):lu.moof(e.sequenceNumber++,v/a,za({},e,{samples:c}));e.samples=[];const k=v/n,E=p/n,D={data1:L,data2:_,startPTS:k,endPTS:E,startDTS:k,endDTS:E,type:"audio",hasAudio:!0,hasVideo:!1,nb:M};return this.isAudioContiguous=!0,D}}function gu(e,t){let i;if(null===t)return e;for(i=t<e?-8589934592:8589934592;Math.abs(e-t)>4294967296;)e+=i;return e}function yu(e,t,i,s){const r=e.samples.length;if(!r)return;const n=e.inputTimeScale;for(let a=0;a<r;a++){const r=e.samples[a];r.pts=gu(r.pts-i.baseTime*n/i.timescale,t*n)/n,r.dts=gu(r.dts-s.baseTime*n/s.timescale,t*n)/n}const a=e.samples;return e.samples=[],{samples:a}}function _u(e,t,i){const s=e.samples.length;if(!s)return;const r=e.inputTimeScale;for(let n=0;n<s;n++){const s=e.samples[n];s.pts=gu(s.pts-i.baseTime*r/i.timescale,t*r)/r}e.samples.sort(((e,t)=>e.pts-t.pts));const n=e.samples;return e.samples=[],{samples:n}}function vu(e,t){const i=null==e?void 0:e.codec;if(i&&i.length>4)return i;if(t===yo){if("ec-3"===i||"ac-3"===i||"alac"===i)return i;if("fLaC"===i||"Opus"===i){return ll(i,!1)}return to.warn(`Unhandled audio codec "${i}" in mp4 MAP`),i||"mp4a"}return to.warn(`Unhandled video codec "${i}" in mp4 MAP`),i||"avc1"}try{cu=self.performance.now.bind(self.performance)}catch(e){cu=Date.now}const bu=[{demux:class{constructor(e,t){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=t}resetTimeStamp(){}resetInitSegment(e,t,i,s){const r=this.videoTrack=xc("video",1),n=this.audioTrack=xc("audio",1),a=this.txtTrack=xc("text",1);if(this.id3Track=xc("id3",1),this.timeOffset=0,null==e||!e.byteLength)return;const o=Yo(e);if(o.video){const{id:e,timescale:t,codec:i,supplemental:s}=o.video;r.id=e,r.timescale=a.timescale=t,r.codec=i,r.supplemental=s}if(o.audio){const{id:e,timescale:t,codec:i}=o.audio;n.id=e,n.timescale=t,n.codec=i}a.id=Eo.text,r.sampleDuration=0,r.duration=n.duration=s}resetContiguity(){this.remainderData=null}static probe(e){return function(e){const t=e.byteLength;for(let i=0;i<t;){const s=Ao(e,i);if(s>8&&109===e[i+4]&&111===e[i+5]&&111===e[i+6]&&102===e[i+7])return!0;i=s>1?i+s:t}return!1}(e)}demux(e,t){this.timeOffset=t;let i=e;const s=this.videoTrack,r=this.txtTrack;if(this.config.progressive){this.remainderData&&(i=Vo(this.remainderData,e));const t=function(e){const t={valid:null,remainder:null},i=Ro(e,["moof"]);if(i.length<2)return t.remainder=e,t;const s=i[i.length-1];return t.valid=e.slice(0,s.byteOffset-8),t.remainder=e.slice(s.byteOffset-8),t}(i);this.remainderData=t.remainder,s.samples=t.valid||new Uint8Array}else s.samples=i;const n=this.extractID3Track(s,t);
vendor: 5,250 bytes, line 2
2return r.samples=Go(t,s),{videoTrack:s,audioTrack:this.audioTrack,id3Track:n,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,i=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const s=this.extractID3Track(t,this.timeOffset);return i.samples=Go(e,t),{videoTrack:t,audioTrack:xc(),id3Track:s,textTrack:xc()}}extractID3Track(e,t){const i=this.id3Track;if(e.samples.length){const s=Ro(e.samples,["emsg"]);s&&s.forEach((e=>{const s=function(e){const t=e[0];let i="",s="",r=0,n=0,a=0,o=0,l=0,d=0;if(0===t){for(;"\0"!==Do(e.subarray(d,d+1));)i+=Do(e.subarray(d,d+1)),d+=1;for(i+=Do(e.subarray(d,d+1)),d+=1;"\0"!==Do(e.subarray(d,d+1));)s+=Do(e.subarray(d,d+1)),d+=1;s+=Do(e.subarray(d,d+1)),d+=1,r=Ao(e,12),n=Ao(e,16),o=Ao(e,20),l=Ao(e,24),d=28}else if(1===t){d+=4,r=Ao(e,d),d+=4;const t=Ao(e,d);d+=4;const n=Ao(e,d);for(d+=4,a=2**32*t+n,Pa(a)||(a=Number.MAX_SAFE_INTEGER,to.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),o=Ao(e,d),d+=4,l=Ao(e,d),d+=4;"\0"!==Do(e.subarray(d,d+1));)i+=Do(e.subarray(d,d+1)),d+=1;for(i+=Do(e.subarray(d,d+1)),d+=1;"\0"!==Do(e.subarray(d,d+1));)s+=Do(e.subarray(d,d+1)),d+=1;s+=Do(e.subarray(d,d+1)),d+=1}return{schemeIdUri:i,value:s,timeScale:r,presentationTime:a,presentationTimeDelta:n,eventDuration:o,id:l,payload:e.subarray(d,e.byteLength)}}(e);if(Gc.test(s.schemeIdUri)){const e=zc(s,t);let r=4294967295===s.eventDuration?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;r<=.001&&(r=Number.POSITIVE_INFINITY);const n=s.payload;i.samples.push({data:n,len:n.byteLength,dts:e,pts:e,type:Dc.emsg,duration:r})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const e=zc(s,t);i.samples.push({data:s.payload,len:s.payload.byteLength,dts:e,pts:e,type:Dc.misbklv,duration:Number.POSITIVE_INFINITY})}}))}return i}demuxSampleAes(e,t,i){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}},remux:class{constructor(e,t,i,s){this.logger=void 0,this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.logger=s}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(e,t,i,s){this.audioCodec=t,this.videoCodec=i,this.generateInitSegment(function(e,t){if(!e||!t)return e;const i=t.keyId;i&&t.isCommonEncryption&&Ro(e,["moov","trak"]).forEach((e=>{const t=Ro(e,["mdia","minf","stbl","stsd"])[0].subarray(8);let s=Ro(t,["enca"]);const r=s.length>0;r||(s=Ro(t,["encv"])),s.forEach((e=>{Ro(r?e.subarray(28):e.subarray(78),["sinf"]).forEach((e=>{const t=jo(e);if(t){const e=t.subarray(8,24);e.some((e=>0!==e))||(to.log(`[eme] Patching keyId in 'enc${r?"a":"v"}>sinf>>tenc' box: ${no(e)} -> ${no(i)}`),t.set(i,8))}}))}))}));return e}(e,s)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:t,videoCodec:i}=this;if(null==e||!e.byteLength)return this.initTracks=void 0,void(this.initData=void 0);const s=this.initData=Yo(e);s.audio&&(t=vu(s.audio,yo)),s.video&&(i=vu(s.video,_o));const r={};s.audio&&s.video?r.audiovideo={container:"video/mp4",codec:t+","+i,supplemental:s.video.supplemental,initSegment:e,id:"main"}:s.audio?r.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:s.video?r.video={container:"video/mp4",codec:i,supplemental:s.video.supplemental,initSegment:e,id:"main"}:this.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=r}remux(e,t,i,s,r,n){var a,o;let{initPTS:l,lastEndTime:d}=this;const h={audio:void 0,video:void 0,text:s,id3:i,initSegment:void 0};Aa(d)||(d=this.lastEndTime=r||0);const c=t.samples;if(null==c||!c.length)return h;const u={initPTS:void 0,timescale:1};let f=this.initData;if(null!=(a=f)&&a.length||(this.generateInitSegment(c),f=this.initData),null==(o=f)||!o.length)return this.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),h;this.emitInitSegment&&(u.tracks=this.initTracks,this.emitInitSegment=!1);const m=function(e,t){let i=0,s=0,r=0;const n=Ro(e,["moof","traf"]);for(let e=0;e<n.length;e++){const a=n[e],o=Ro(a,["tfhd"])[0],l=t[Ao(o,4)];if(!l)continue;const d=l.default,h=Ao(o,0)|(null==d?void 0:d.flags);let c=null==d?void 0:d.duration;8&h&&(c=Ao(o,2&h?12:8));const u=l.timescale||9e4,f=Ro(a,["trun"]);for(let e=0;e<f.length;e++)i=Uo(f[e]),!i&&c&&(i=c*Ao(f[e],4)),l.type===_o?s+=i/u:l.type===yo&&(r+=i/u)}if(0===s&&0===r){let t=1/0,i=0,s=0;const r=Ro(e,["sidx"]);for(let e=0;e<r.length;e++){const n=Oo(r[e]);if(null!=n&&n.references){t=Math.min(t,n.earliestPresentationTime/n.timescale);const e=n.references.reduce(((e,t)=>e+t.info.duration||0),0);i=Math.max(i,e+n.earliestPresentationTime/n.timescale),s=i-t}}if(s&&Aa(s))return s}return s||r}(c,f),p=function(e,t){return Ro(t,["moof","traf"]).reduce(((t,i)=>{const s=Ro(i,["tfdt"])[0],r=s[0],n=Ro(i,["tfhd"]).reduce(((t,i)=>{const n=Ao(i,4),a=e[n];if(a){let e=Ao(s,4);if(1===r){if(e===Lo)return to.warn("[mp4-demuxer]: Ignoring assumed invali
2d signed 64-bit track fragment decode time"),t;e*=Lo+1,e+=Ao(s,8)}const i=e/(a.timescale||9e4);if(Aa(i)&&(null===t||i<t))return i}return t}),null);return null!==n&&Aa(n)&&(null===t||n<t)?n:t}),null)}(f,c),g=null===p?r:p;!n&&l||!function(e,t,i,s){if(null===e)return!0;const r=Math.max(s,1),n=t-e.baseTime/e.timescale;return Math.abs(n-i)>r}(l,g,r,m)&&u.timescale===l.timescale||(u.initPTS=g-r,l&&1===l.timescale&&this.logger.warn(`Adjusting initPTS @${r} from ${l.baseTime/l.timescale} to ${u.initPTS}`),this.initPTS=l={baseTime:u.initPTS,timescale:1});const y=e?g-l.baseTime/l.timescale:d,_=y+m;!function(e,t,i){Ro(t,["moof","traf"]).forEach((t=>{Ro(t,["tfhd"]).forEach((s=>{const r=Ao(s,4),n=e[r];if(!n)return;const a=n.timescale||9e4;Ro(t,["tfdt"]).forEach((e=>{const t=e[0],s=i*a;if(s){let i=Ao(e,4);if(0===t)i-=s,i=Math.max(i,0),Io(e,4,i);else{i*=Math.pow(2,32),i+=Ao(e,8),i-=s,i=Math.max(i,0);const t=Math.floor(i/(Lo+1)),r=Math.floor(i%(Lo+1));Io(e,4,t),Io(e,8,r)}}}))}))}))}(f,c,l.baseTime/l.timescale),m>0?this.lastEndTime=_:(this.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const v=!!f.audio,b=!!f.video;let w="";v&&(w+="audio"),b&&(w+="video");const T={data1:c,startPTS:y,startDTS:y,endPTS:_,endDTS:_,type:w,hasAudio:v,hasVideo:b,nb:1,dropped:0};return h.audio="audio"===T.type?T:void 0,h.video="audio"!==T.type?T:void 0,h.initSegment=u,h.id3=yu(i,r,l,l),s.samples.length&&(h.text=_u(s,r,l)),h}}},{demux:Zc,remux:pu},{demux:class extends Ac{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,i,s){super.resetInitSegment(e,t,i,s),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:s,inputTimeScale:9e4,dropped:0}}static probe(e,t){if(!e)return!1;const i=dc(e,0);let s=(null==i?void 0:i.length)||0;if(Hc(e,s))return!1;for(let i=e.length;s<i;s++)if(mc(e,s))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return function(e,t){return function(e,t){return t+5<e.length}(e,t)&&hc(e,t)&&uc(e,t)<=e.length-t}(e,t)}appendFrame(e,t,i){pc(e,this.observer,t,i,e.manifestCodec);const s=yc(e,t,i,this.basePTS,this.frameIndex);if(s&&0===s.missing)return s}},remux:pu},{demux:class extends Ac{resetInitSegment(e,t,i,s){super.resetInitSegment(e,t,i,s),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:s,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=dc(e,0);let i=(null==t?void 0:t.length)||0;if(t&&11===e[i]&&119===e[i+1]&&void 0!==Ec(t)&&jc(e,i)<=16)return!1;for(let t=e.length;i<t;i++)if(Hc(e,i))return to.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return function(e,t){return Nc(e,t)&&4<=e.length-t}(e,t)}appendFrame(e,t,i){if(null!==this.basePTS)return Fc(e,t,i,this.basePTS,this.frameIndex)}},remux:pu}];bu.splice(2,0,{demux:Uc,remux:pu});class wu{constructor(e,t,i,s,r,n){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=e,this.typeSupported=t,this.config=i,this.id=r,this.logger=n}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,i,s){const r=i.transmuxing;r.executeStart=cu();let n=new Uint8Array(e);const{currentTransmuxState:a,transmuxConfig:o}=this;s&&(this.currentTransmuxState=s);const{contiguous:l,discontinuity:d,trackSwitch:h,accurateTimeOffset:c,timeOffset:u,initSegmentChange:f}=s||a,{audioCodec:m,videoCodec:p,defaultInitPts:g,duration:y,initSegmentData:_}=o,v=function(e,t){let i=null;e.byteLength>0&&null!=(null==t?void 0:t.key)&&null!==t.iv&&null!=t.method&&(i=t);return i}(n,t);if(v&&Od(v.method)){const e=this.getDecrypter(),t=Yd(v.method);if(!e.isSync())return this.asyncResult=!0,this.decryptionPromise=e.webCryptoDecrypt(n,v.key.buffer,v.iv.buffer,t).then((e=>{const t=this.push(e,null,i);return this.decryptionPromise=null,t})),this.decryptionPromise;{let s=e.softwareDecrypt(n,v.key.buffer,v.iv.buffer,t);if(i.part>-1){const t=e.flush();s=t?t.buffer:t}if(!s)return r.executeEnd=cu(),Tu(i);n=new Uint8Array(s)}}const b=this.needsProbing(d,h);if(b){const e=this.configureTransmuxer(n);if(e)return this.logger.warn(`[transmuxer] ${e.message}`),this.observer.emit(Oa.ERROR,Oa.ERROR,{type:Ia.MEDIA_ERROR,details:Ra.FRAG_PARSING_ERROR,fatal:!1,error:e,reason:e.message}),r.executeEnd=cu(),Tu(i)}(d||h||f||b)&&this.resetInitSegment(_,m,p,y,t),(d||f||b)&&this.resetInitialTimestamp(g),l||this.resetContiguity();const w=this.transmux(n,v,u,c,i);this.asyncResult=Mu(w);const T=this.currentTransmuxState;return T.contiguous=!0,T.discontinuity=!1,T.trackSwitch=!1,r.executeEnd=cu(),w}flush(e){const t=e.transmuxing;t.executeStart=cu();const{decrypter:i,currentTransmuxState:s,decryptionPromise:r}=this;if(r)return this.asyncResult=!0,r.then((()=>this.flush(e)));const n=[],{timeOffset:a}=s;
vendor: 15,085 bytes, line 2
2if(i){const t=i.flush();t&&n.push(this.push(t.buffer,null,e))}const{demuxer:o,remuxer:l}=this;if(!o||!l){t.executeEnd=cu();const i=[Tu(e)];return this.asyncResult?Promise.resolve(i):i}const d=o.flush(a);return Mu(d)?(this.asyncResult=!0,d.then((t=>(this.flushRemux(n,t,e),n)))):(this.flushRemux(n,d,e),this.asyncResult?Promise.resolve(n):n)}flushRemux(e,t,i){const{audioTrack:s,videoTrack:r,id3Track:n,textTrack:a}=t,{accurateTimeOffset:o,timeOffset:l}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${i.sn}${i.part>-1?" part: "+i.part:""} of ${this.id===Ba?"level":"track"} ${i.level}`);const d=this.remuxer.remux(s,r,n,a,l,o,!0,this.id);e.push({remuxResult:d,chunkMeta:i}),i.transmuxing.executeEnd=cu()}resetInitialTimestamp(e){const{demuxer:t,remuxer:i}=this;t&&i&&(t.resetTimeStamp(e),i.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;e&&t&&(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,i,s,r){const{demuxer:n,remuxer:a}=this;n&&a&&(n.resetInitSegment(e,t,i,s),a.resetInitSegment(e,t,i,r))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,i,s,r){let n;return n=t&&"SAMPLE-AES"===t.method?this.transmuxSampleAes(e,t,i,s,r):this.transmuxUnencrypted(e,i,s,r),n}transmuxUnencrypted(e,t,i,s){const{audioTrack:r,videoTrack:n,id3Track:a,textTrack:o}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(r,n,a,o,t,i,!1,this.id),chunkMeta:s}}transmuxSampleAes(e,t,i,s,r){return this.demuxer.demuxSampleAes(e,t,i).then((e=>({remuxResult:this.remuxer.remux(e.audioTrack,e.videoTrack,e.id3Track,e.textTrack,i,s,!1,this.id),chunkMeta:r})))}configureTransmuxer(e){const{config:t,observer:i,typeSupported:s}=this;let r;for(let t=0,i=bu.length;t<i;t++){var n;if(null!=(n=bu[t].demux)&&n.probe(e,this.logger)){r=bu[t];break}}if(!r)return new Error("Failed to find demuxer by probing fragment data");const a=this.demuxer,o=this.remuxer,l=r.remux,d=r.demux;o&&o instanceof l||(this.remuxer=new l(i,t,s,this.logger)),a&&a instanceof d||(this.demuxer=new d(i,t,s,this.logger),this.probe=d.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new md(this.config)),e}}const Tu=e=>({remuxResult:{},chunkMeta:e});function Mu(e){return"then"in e&&e.then instanceof Function}class Su{constructor(e,t,i,s,r){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=i,this.duration=s,this.defaultInitPts=r||null}}class Lu{constructor(e,t,i,s,r,n){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=i,this.trackSwitch=s,this.timeOffset=r,this.initSegmentChange=n}}let ku=0;class Eu{constructor(e,t,i,s){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=ku++,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=e=>{const t=e.data,i=this.hls;if(i&&null!=t&&t.event&&t.instanceNo===this.instanceNo)switch(t.event){case"init":{var s;const e=null==(s=this.workerContext)?void 0:s.objectURL;e&&self.URL.revokeObjectURL(e);break}case"transmuxComplete":this.handleTransmuxComplete(t.data);break;case"flush":this.onFlush(t.data);break;case"workerLog":i.logger[t.data.logType]&&i.logger[t.data.logType](t.data.message);break;default:t.data=t.data||{},t.data.frag=this.frag,t.data.part=this.part,t.data.id=this.id,i.trigger(t.event,t.data)}},this.onWorkerError=e=>{if(!this.hls)return;const t=new Error(`${e.message} (${e.filename}:${e.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(Oa.ERROR,{type:Ia.OTHER_ERROR,details:Ra.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:t})};const r=e.config;this.hls=e,this.id=t,this.useWorker=!!r.enableWorker,this.onTransmuxComplete=i,this.onFlush=s;const n=(e,t)=>{(t=t||{}).frag=this.frag||void 0,e===Oa.ERROR&&(t.parent=this.id,t.part=this.part,this.error=t.error),this.hls.trigger(e,t)};this.observer=new sc,this.observer.on(Oa.FRAG_DECRYPTED,n),this.observer.on(Oa.ERROR,n);const a=cl(r.preferManagedMediaSource);if(this.useWorker&&"undefined"!=typeof Worker){const i=this.hls.logger;if(r.workerPath||"function"==typeof __HLS_WORKER_BUNDLE__){try{r.workerPath?(i.log(`loading Web Worker ${r.workerPath} for "${t}"`),this.workerContext=function(e){const t=nc[e];if(t)return t.clientCount++,t;const i=new self.URL(e,self.location.href).href,s={worker:new self.Worker(i),scriptURL:i,clientCount:1};return nc[e]=s,s}(r.workerPath)):(i.log(`injecting Web Worker for "${t}"`),this.workerContext=function(){const e=nc[rc];if(e)return e.clientCount++,e;const t=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),i=self.URL.createObjectURL(t),s={worker:new self.Worker(i),objectURL:i,clientCount:1};return nc[rc]=s,s}());const{worker:e}=this.workerContext;e.addEventListener("message",this.onWorkerMessage),e.addEventListener("error",this.onWorkerError),e.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:a,id:t,config:Dl(r)})}catch(s){i.warn(`Error setting up "${t}" Web Worker, fallback to inline`,s),this.terminateWorker(),this.error=null,this.transmuxer=new wu(this.observer,a,r,"",t,e.logger)}return}}this.transmuxer=new wu(this.observer,a,r,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=ku++;const t=this.hls.config,i=cl(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:i,id:this.id,config:Dl(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),function(e){const t=nc[e||rc];if(t&&1==t.clientCount--){const{worker:i,objectURL:s}=t;delete nc[e||rc],s&&self.URL.revokeObjectURL(s),i.terminate()}}(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const e=this.transmuxer;e&&(e.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(e,t,i,s,r,n,a,o,l,d){var h,c;l.transmuxing.start=self.performance.now();const{instanceNo:u,transmuxer:f}=this,m=n?n.start:r.start,p=r.decryptdata,g=this.frag,y=!(g&&r.cc===g.cc),_=!(g&&l.level===g.level),v=g?l.sn-g.sn:-1,b=this.part?l.part-this.part.index:-1,w=0===v&&l.id>1&&l.id===(null==g?void 0:g.stats.chunkCount),T=!_&&(1===v||0===v&&(1===b||w&&b<=0)),M=self.performance.now();(_||v||0===r.stats.parsing.start)&&(r.stats.parsing.start=M),!n||!b&&T||(n.stats.parsing.start=M);const S=!(g&&(null==(h=r.initSegment)?void 0:h.url)===(null==(c=g.initSegment)?void 0:c.url)),L=new Lu(y,T,o,_,m,S);if(!T||y||S){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${r.type} sn: ${l.sn}${l.part>-1?" part: "+l.part:""} ${this.id===Ba?"level":"track"}: ${l.level} id: ${l.id}\n discontinuity: ${y}\n trackSwitch: ${_}\n contiguous: ${T}\n accurateTimeOffset: ${o}\n timeOffset: ${m}\n initSegmentChange: ${S}`);const e=new Su(i,s,t,a,d);this.configureTransmuxer(e)}if(this.frag=r,this.part=n,this.workerContext)this.workerContext.worker.postMessage({instanceNo:u,cmd:"demux",data:e,decryptdata:p,chunkMeta:l,state:L},e instanceof ArrayBuffer?[e]:[]);else if(f){const t=f.push(e,p,l,L);Mu(t)?t.then((e=>{this.handleTransmuxComplete(e)})).catch((e=>{this.transmuxerError(e,l,"transmuxer-interface push error")})):this.handleTransmuxComplete(t)}}flush(e){e.transmuxing.start=self.performance.now();const{instanceNo:t,transmuxer:i}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:t,cmd:"flush",chunkMeta:e});else if(i){const t=i.flush(e);Mu(t)?t.then((t=>{this.handleFlushResult(t,e)})).catch((t=>{this.transmuxerError(t,e,"transmuxer-interface flush error")})):this.handleFlushResult(t,e)}}transmuxerError(e,t,i){this.hls&&(this.error=e,this.hls.trigger(Oa.ERROR,{type:Ia.MEDIA_ERROR,details:Ra.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:i}))}handleFlushResult(e,t){e.forEach((e=>{this.handleTransmuxComplete(e)})),this.onFlush(t)}configureTransmuxer(e){const{instanceNo:t,transmuxer:i}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:t,cmd:"configure",config:e}):i&&i.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}class Du extends Ka{constructor(e,t){super(t,e.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){-1!==this.timer&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,i){const s=null==t?void 0:t.renditionReports;if(s){let r=-1;for(let i=0;i<s.length;i++){const n=s[i];let a;try{a=new self.URL(n.URI,t.url).href}catch(e){this.warn(`Could not construct new URL for Rendition Report: ${e}`),a=n.URI||""}if(a===e){r=i;break}a===e.substring(0,a.length)&&(r=i)}if(-1!==r){const e=s[r],n=parseInt(e["LAST-MSN"])||(null==t?void 0:t.lastPartSn);let a=parseInt(e["LAST-PART"])||(null==t?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const e=Math.min(t.age-t.partTarget,t.targetduration);a>=0&&e>t.partTarget&&(a+=1)}const o=i&&Ml(i);return new Sl(n,a>=0?a:void 0,o)}}}loadPlaylist(e){this.clearTimer()}loadingPlaylist(e,t){this.clearTimer()}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}getUrlWithDirectives(e,t){if(t)try{return t.addDirectives(e)}catch(e){this.warn(`Could not construct new URL with HLS Delivery Directives: ${e}`)}return e}playlistLoaded(e,t,i){const{details:s,stats:r}=t,n=self.performance.now(),a=r.loading.first?Math.max(0,n-r.loading.first):0;s.advancedDateTime=Date.now()-a;const o=this.hls.config.timelineOffset;if(o!==s.appliedTimelineOffset){const e=Math.max(o||0,0);s.appliedTimelineOffset=e,s.fragments.forEach((t=>{t.start=t.playlistOffset+e}))}if(s.live||null!=i&&i.live){const o="levelInfo"in t?t.levelInfo:t.track;if(s.reloaded(i),i&&s.fragments.length>0){Sh(i,s);const e=s.playlistParsingError;if(e){this.warn(e);const i=this.hls;if(!i.config.ignorePlaylistParsingErrors){var l;const{networkDetails:n}=t;return void i.trigger(Oa.ERROR,{type:Ia.NETWORK_ERROR,details:Ra.LEVEL_PARSING_ERROR,fatal:!1,url:s.url,error:e,reason:e.message,level:t.level||void 0,parent:null==(l=s.fragments[0])?void 0:l.type,networkDetails:n,stats:r})}s.playlistParsingError=null}}-1===s.requestScheduled&&(s.requestScheduled=r.loading.start);const d=this.hls.mainForwardBufferInfo,h=d?d.end-d.len:0,c=Dh(s,1e3*(s.edge-h));if(s.requestScheduled+c<n?s.requestScheduled=n:s.requestScheduled+=c,this.log(`live playlist ${e} ${s.advanced?"REFRESHED "+s.lastPartSn+"-"+s.lastPartIndex:s.updated?"UPDATED":"MISSED"}`),!this.canLoad||!s.live)return;let u,f,m;if(s.canBlockReload&&s.endSN&&s.advanced){const e=this.hls.config.lowLatencyMode,r=s.lastPartSn,a=s.endSN,l=s.lastPartIndex,d=r===a;-1!==l?d?(f=a+1,m=e?0:l):(f=r,m=e?l+1:s.maxPartIndex):f=a+1;const h=s.age,c=h+s.ageHeader;let p=Math.min(c-s.partTarget,1.5*s.targetduration);if(p>0){if(c>3*s.targetduration)this.log(`Playlist last advanced ${h.toFixed(2)}s ago. Omitting segment and part directives.`),f=void 0,m=void 0;else if(null!=i&&i.tuneInGoal&&c-s.partTarget>i.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${i.tuneInGoal} to: ${p} with playlist age: ${s.age}`),p=0;else{const e=Math.floor(p/s.targetduration);if(f+=e,void 0!==m){m+=Math.round(p%s.targetduration/s.partTarget)}this.log(`CDN Tune-in age: ${s.ageHeader}s last advanced ${h.toFixed(2)}s goal: ${p} skip sn ${e} to part ${m}`)}s.tuneInGoal=p}if(u=this.getDeliveryDirectives(s,t.deliveryDirectives,f,m),e||!d)return s.requestScheduled=n,void this.loadingPlaylist(o,u)}else(s.canBlockReload||s.canSkipUntil)&&(u=this.getDeliveryDirectives(s,t.deliveryDirectives,f,m));u&&void 0!==f&&s.canBlockReload&&(s.requestScheduled=r.loading.first+Math.max(c-2*a,c/2)),this.scheduleLoading(o,u,s)}else this.clearTimer()}scheduleLoading(e,t,i){const s=i||e.details;if(!s)return void this.loadingPlaylist(e,t);const r=self.performance.now(),n=s.requestScheduled;if(r>=n)return void this.loadingPlaylist(e,t);const a=n-r;this.log(`reload live playlist ${e.name||e.bitrate+"bps"} in ${Math.round(a)} ms`),this.clearTimer(),this.timer=self.setTimeout((()=>this.loadingPlaylist(e,t)),a)}getDeliveryDirectives(e,t,i,s){let r=Ml(e);return null!=t&&t.skip&&e.deltaUpdateFailed&&(i=t.msn,s=t.part,r=bl),new Sl(i,s,r)}checkRetry(e){const t=e.details,i=jl(e),s=e.errorAction,{action:r,retryCount:n=0,retryConfig:a}=s||{},o=!!s&&!!a&&(r===Jl||!s.resolved&&r===ql);if(o){var l;if(n>=a.maxNumRetry)return!1;if(i&&null!=(l=e.context)&&l.deliveryDirectives)this.warn(`Retrying playlist loading ${n+1}/${a.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const e=Vl(a,n);this.clearTimer(),this.timer=self.setTimeout((()=>this.loadPlaylist()),e),this.warn(`Retrying playlist loading ${n+1}/${a.maxNumRetry} after "${t}" in ${e}ms`)}e.levelRetry=!0,s.resolved=!0}return o}}function xu(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!Au(e[i].attrs,t[i].attrs))return!1;return!0}function Au(e,t,i){const s=e["STABLE-RENDITION-ID"];return s&&!i?s===t["STABLE-RENDITION-ID"]:!(i||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some((i=>e[i]!==t[i]))}function Pu(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}class Cu{constructor(e){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=e}destroy(){this.tracks=this.queues=null}append(e,t,i){if(null===this.queues||null===this.tracks)return;const s=this.queues[t];s.push(e),1!==s.length||i||this.executeNext(t)}appendBlocker(e){return new Promise((t=>{const i={label:"async-blocker",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(i,e)}))}prependBlocker(e){return new Promise((t=>{if(this.queues){const i={label:"async-blocker-prepend",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[e].unshift(i)}}))}removeBlockers(){null!==this.queues&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEac
vendor: 4,923 bytes, line 2
2h((e=>{var t;const i=null==(t=e[0])?void 0:t.label;"async-blocker"!==i&&"async-blocker-prepend"!==i||(e[0].execute(),e.splice(0,1))}))}unblockAudio(e){if(null===this.queues)return;this.queues.audio[0]===e&&this.shiftAndExecuteNext("audio")}executeNext(e){if(null===this.queues||null===this.tracks)return;const t=this.queues[e];if(t.length){const s=t[0];try{s.execute()}catch(t){var i;if(s.onError(t),null===this.queues||null===this.tracks)return;const r=null==(i=this.tracks[e])?void 0:i.buffer;null!=r&&r.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){null!==this.queues&&(this.queues[e].shift(),this.executeNext(e))}current(e){var t;return(null==(t=this.queues)?void 0:t[e][0])||null}toString(){const{queues:e,tracks:t}=this;return null===e||null===t?"<destroyed>":`\n${this.list("video")}\n${this.list("audio")}\n${this.list("audiovideo")}}`}list(e){var t,i;return null!=(t=this.queues)&&t[e]||null!=(i=this.tracks)&&i[e]?`${e}: (${this.listSbInfo(e)}) ${this.listOps(e)}`:""}listSbInfo(e){var t;const i=null==(t=this.tracks)?void 0:t[e],s=null==i?void 0:i.buffer;return s?`SourceBuffer${s.updating?" updating":""}${i.ended?" ended":""}${i.ending?" ending":""}`:"none"}listOps(e){var t;return(null==(t=this.queues)?void 0:t[e].map((e=>e.label)).join(", "))||""}}const Iu=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,Ru="HlsJsTrackRemovedError";class Ou extends Error{constructor(e){super(e),this.name=Ru}}function Yu(e){const t=e.querySelectorAll("source");[].slice.call(t).forEach((t=>{e.removeChild(t)}))}function Fu(e){return"audio"===e?1:0}class $u{constructor(e){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(e){this.streamController=e}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:e}=this;e.on(Oa.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(Oa.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(Oa.MANIFEST_PARSED,this.onManifestParsed,this),e.on(Oa.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(Oa.BUFFER_CODECS,this.onBufferCodecs,this),e.on(Oa.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(Oa.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(Oa.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(Oa.MANIFEST_PARSED,this.onManifestParsed,this),e.off(Oa.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(Oa.BUFFER_CODECS,this.onBufferCodecs,this),e.off(Oa.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){const i=this.hls.levels[t.droppedLevel];this.isLevelAllowed(i)&&this.restrictedLevels.push({bitrate:i.bitrate,height:i.height,width:i.width})}onMediaAttaching(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(e,t){const i=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,i.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onLevelsUpdated(e,t){this.timer&&Aa(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0)return void(this.clientRect=null);const e=this.hls.levels;if(e.length){const t=this.hls,i=this.getMaxLevel(e.length-1);i!==this.autoLevelCapping&&t.logger.log(`Setting autoLevelCapping to ${i}: ${e[i].height}p@${e[i].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=i,t.autoLevelEnabled&&t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){const t=this.hls.levels;if(!t.length)return-1;const i=t.filter(((t,i)=>this.isLevelAllowed(t)&&i<=e));return this.clientRect=null,$u.getMaxLevelByMediaSize(i,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const e=this.media,t={width:0,height:0};if(e){const i=e.getBoundingClientRect();t.width=i.width,t.height=i.height,t.width||t.height||(t.width=i.right-i.left||e.
2width||0,t.height=i.bottom-i.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(e){}return Math.min(e,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(e){return!this.restrictedLevels.some((t=>e.bitrate===t.bitrate&&e.width===t.width&&e.height===t.height))}static getMaxLevelByMediaSize(e,t,i){if(null==e||!e.length)return-1;let s=e.length-1;const r=Math.max(t,i);for(let t=0;t<e.length;t+=1){const i=e[t];if((i.width>=r||i.height>=r)&&(n=i,!(a=e[t+1])||n.width!==a.width||n.height!==a.height)){s=t;break}}var n,a;return s}}const Nu={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},Bu={HLS:"h"},Hu="CMCD-Object",ju="CMCD-Request",Uu="CMCD-Session",Vu="CMCD-Status",Gu={[Hu]:["br","d","ot","tb"],[ju]:["bl","dl","mtp","nor","nrr","su"],[Uu]:["cid","pr","sf","sid","st","v"],[Vu]:["bs","rtp"]};class zu{constructor(e,t){Array.isArray(e)&&(e=e.map((e=>e instanceof zu?e:new zu(e)))),this.value=e,this.params=t}}function Wu(e,t,i,s){return new Error(`failed to ${e} "${function(e){return Array.isArray(e)?JSON.stringify(e):e instanceof Map?"Map{}":e instanceof Set?"Set{}":"object"==typeof e?JSON.stringify(e):String(e)}(t)}" as ${i}`,{cause:s})}function qu(e,t,i){return Wu("serialize",e,t,i)}class Ku{constructor(e){this.description=e}}const Ju="Bare Item";function Xu(e){if(!1===ArrayBuffer.isView(e))throw qu(e,"Byte Sequence");return`:${t=e,btoa(String.fromCharCode(...t))}:`;var t}function Qu(e){if(function(e){return e<-999999999999999||999999999999999<e}(e))throw qu(e,"Integer");return e.toString()}function Zu(e){const t=vc(e,3);if(Math.floor(Math.abs(t)).toString().length>12)throw qu(e,"Decimal");const i=t.toString();return i.includes(".")?i:`${i}.0`}const ef=/[\x00-\x1f\x7f]+/;function tf(e){const t=(i=e).description||i.toString().slice(7,-1);var i;if(!1===/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t))throw qu(t,"Token");return t}function sf(e){switch(typeof e){case"number":if(!Aa(e))throw qu(e,Ju);return Number.isInteger(e)?Qu(e):Zu(e);case"string":return function(e){if(ef.test(e))throw qu(e,"String");return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}(e);case"symbol":return tf(e);case"boolean":return function(e){if("boolean"!=typeof e)throw qu(e,"Boolean");return e?"?1":"?0"}(e);case"object":if(e instanceof Date)return function(e){return`@${Qu(e.getTime()/1e3)}`}(e);if(e instanceof Uint8Array)return Xu(e);if(e instanceof Ku)return tf(e);default:throw qu(e,Ju)}}function rf(e){if(!1===/^[a-z*][a-z0-9\-_.*]*$/.test(e))throw qu(e,"Key");return e}function nf(e){return null==e?"":Object.entries(e).map((([e,t])=>!0===t?`;${rf(e)}`:`;${rf(e)}=${sf(t)}`)).join("")}function af(e){return e instanceof zu?`${sf(e.value)}${nf(e.params)}`:sf(e)}function of(e,t={whitespace:!0}){if("object"!=typeof e)throw qu(e,"Dict");const i=e instanceof Map?e.entries():Object.entries(e),s=(null==t?void 0:t.whitespace)?" ":"";return Array.from(i).map((([e,t])=>{t instanceof zu==!1&&(t=new zu(t));let i=rf(e);return!0===t.value?i+=nf(t.params):(i+="=",Array.isArray(t.value)?i+=function(e){return`(${e.value.map(af).join(" ")})${nf(e.params)}`}(t):i+=af(t)),i})).join(`,${s}`)}const lf=e=>Math.round(e),df=e=>100*lf(e/100),hf={br:lf,d:lf,bl:df,dl:df,mtp:df,nor:(e,t)=>((null==t?void 0:t.baseUrl)&&(e=function(e,t){const i=new URL(e),s=new URL(t);if(i.origin!==s.origin)return e;const r=i.pathname.split("/").slice(1),n=s.pathname.split("/").slice(1,-1);for(;r[0]===n[0];)r.shift(),n.shift();for(;n.length;)n.shift(),r.unshift("..");return r.join("/")}(e,t.baseUrl)),encodeURIComponent(e)),rtp:df,tb:lf};function cf(e,t){const i={};if(null==e||"object"!=typeof e)return i;const s=Object.keys(e).sort(),r=za({},hf,null==t?void 0:t.formatters),n=null==t?void 0:t.filter;return s.forEach((s=>{if(null==n?void 0:n(s))return;let a=e[s];const o=r[s];o&&(a=o(a,t)),"v"===s&&1===a||"pr"==s&&1===a||function(e){return"number"==typeof e?Aa(e):null!=e&&""!==e&&!1!==e}(a)&&(function(e){return"ot"===e||"sf"===e||"st"===e}(s)&&"string"==typeof a&&(a=new Ku(a)),i[s]=a)})),i}function uf(e,t={}){return e?function(e,t){return of(e,t)}(cf(e,t),za({whitespace:!1},t)):""}function ff(e,t,i){return za(e,function(e,t={}){const i={};if(!e)return i;const s=Object.entries(e),r=Object.entries(Gu).concat(Object.entries((null==t?void 0:t.customHeaderMap)||{})),n=s.reduce(((e,t)=>{var i,s;const[n,a]=t,o=(null===(i=r.find((e=>e[1].includes(n))))||void 0===i?void 0:i[0])||ju;return null!==(s=e[o])&&void 0!==s||(e[o]={}),e[o][n]=a,e}),{});return Object.entries(n).reduce(((e,[i,s])=>(e[i]=uf(s,t),e)),i)}(t,i))}const mf=/CMCD=[^&#]+/;function pf(e,t,i){const s=function(e,t={}){if(!e)return"";const i=uf(e,t);return`CMCD=${encodeURIComponent(i)}`}(t,i);if(!s)return e;if(mf.test(e))return e.replace(mf,s);const r=e.includes("?")?"&":"?";return`${e}${r}${s}`}function gf(e,t,i,s){e&&Object.keys(t).forEach((r=>{const n=e.filter((e=>e.groupId===r)).map((e=>{const n=za({},e);return n.details=void 0,n.attrs=new Pd(n.attrs),n.url=n.attrs.URI=yf(e.url,e.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",i),n.groupId=n.attrs["GROUP-ID"]=t[r],n.attrs["PATHWAY-ID"]=s,n}));e.push(...n)}))}function yf(e,t,i,s){const{HOST:r,PARAMS:n,[i]:a}=s;let o;
vendor: 6,051 bytes, line 2
2t&&(o=null==a?void 0:a[t],o&&(e=o));const l=new self.URL(e);return r&&!o&&(l.host=r),n&&Object.keys(n).sort().forEach((e=>{e&&l.searchParams.set(e,n[e])})),l.href}class _f extends Ka{constructor(e){super("eme",e.logger),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=_f.CDMCleanupPromise?[_f.CDMCleanupPromise]:[],this.onMediaEncrypted=e=>{const{initDataType:t,initData:i}=e,s=`"${e.type}" event: init data type: "${t}"`;if(this.debug(s),null!==i){if(!this.keyFormatPromise){let e=Object.keys(this.keySystemAccessPromises);e.length||(e=Zd(this.config));const t=e.map(Qd).filter((e=>!!e));this.keyFormatPromise=this.getKeyFormatPromise(t)}this.keyFormatPromise.then((r=>{const n=zd(r);let a,o;if("sinf"===t){if(n!==Hd.FAIRPLAY)return void this.warn(`Ignoring unexpected "${e.type}" event with init data type: "${t}" for selected key-system ${n}`);const r=Do(new Uint8Array(i));try{const e=jo(Fd(JSON.parse(r).sinf));if(!e)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");a=new Uint8Array(e.subarray(8,24)),o=Hd.FAIRPLAY}catch(e){return void this.warn(`${s} Failed to parse sinf: ${e}`)}}else{if(n!==Hd.WIDEVINE&&n!==Hd.PLAYREADY)return void this.warn(`Ignoring unexpected "${e.type}" event with init data type: "${t}" for selected key-system ${n}`);const r=function(e){const t=[];if(e instanceof ArrayBuffer){const i=e.byteLength;let s=0;for(;s+32<i;){const i=Xo(new DataView(e,s));t.push(i),s+=i.size}}return t}(i),l=r.filter((e=>!!e.systemId&&Xd(e.systemId)===n));l.length>1&&this.warn(`${s} Using first of ${l.length} pssh found for selected key-system ${n}`);const d=l[0];if(!d)return void(0===r.length||r.some((e=>!e.systemId))?this.warn(`${s} contains incomplete or invalid pssh data`):this.log(`ignoring ${s} for ${r.map((e=>Xd(e.systemId))).join(",")} pssh data in favor of playlist keys`));if(o=Xd(d.systemId),0===d.version&&d.data)if(o===Hd.WIDEVINE){const e=d.data.length-22;a=new Uint8Array(d.data.subarray(e,e+16))}else o===Hd.PLAYREADY&&(a=ih(d.data))}if(!o||!a)return;const l=no(a),{keyIdToKeySessionPromise:d,mediaKeySessions:h}=this;let c=d[l];for(let e=0;e<h.length;e++){const s=h[e],r=s.decryptdata;if(!r.keyId)continue;const n=no(r.keyId);if(l===n||-1!==r.uri.replace(/-/g,"").indexOf(l)){if(c=d[n],r.pssh)break;delete d[n],r.pssh=new Uint8Array(i),r.keyId=a,c=d[l]=c.then((()=>this.generateRequestWithPreferredKeySession(s,t,i,"encrypted-event-key-match"))),c.catch((e=>this.handleError(e)));break}}if(!c){if(o!==n)return void this.log(`Ignoring "${e.type}" event with ${o} init data for selected key-system ${n}`);c=d[l]=this.getKeySystemSelectionPromise([o]).then((({keySystem:e,mediaKeys:s})=>{var r;this.throwIfDestroyed();const n=new rh("ISO-23001-7",l,null!=(r=Qd(e))?r:"");return n.pssh=new Uint8Array(i),n.keyId=a,this.attemptSetMediaKeys(e,s).then((()=>{this.throwIfDestroyed();const r=this.createMediaKeySessionContext({decryptdata:n,keySystem:e,mediaKeys:s});return this.generateRequestWithPreferredKeySession(r,t,i,"encrypted-event-no-match")}))})),c.catch((e=>this.handleError(e)))}}))}},this.onWaitingForKey=e=>{this.log(`"${e.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){const e=this.media;this.unregisterListeners(),this.onMediaDetached(),this._clear(e);const t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(Oa.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(Oa.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(Oa.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(Oa.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(Oa.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(Oa.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(Oa.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(Oa.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:i}=this.config,s=t[e];return s?s.licenseUrl:e===Hd.WIDEVINE&&i?i:void 0}getLicenseServerUrlOrThrow(e){const t=this.getLicenseServerUrl(e);if(void 0===t)throw new Error(`no license server URL configured for key-system "${e}"`);return t}getServerCertificateUrl(e){const{drmSystems:t}=this.config,i=t[e];if(i)return i.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){const t=this.hls.levels,i=(e,t,i)=>!!e&&i.indexOf(e)===t,s=t.map((e=>e.audioCodec)).filter(i),r=t.map((e=>e.videoCodec)).filter(i);return s.length+r.length===0&&r.push("avc1.42e01e"),new Promise(((t,i)=>{const n=e=>{const a=e.shift();this.getMediaKeysPromise(a,s,r).then((e=>t({keySystem:a,mediaKeys:e}))).catch((t=>{e.length?n(e):i(t instanceof vf?t:new vf({type:Ia.KEY_SYSTEM_ERROR,details:Ra.KEY_SYSTEM_NO_ACCESS,error:t,fatal:!0},t.message))}))};n(e)}))}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:i}=this.config;if("function"!=typeof i){let e=`Configured requestMediaKeySystemAccess is not a function ${i}`;return null===eh&&"http:"===self.location.protocol&&(e=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(e))}return i(e,t)}getMediaKeysPromise(e,t,i){const s=function(e,t,i,s){let r;switch(e){case Hd.FAIRPLAY:r=["cenc","sinf"];break;case Hd.WIDEVINE:case Hd.PLAYREADY:r=["cenc"];break;case Hd.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${e}`)}return function(e,t,i,s){return[{initDataTypes:e,persistentState:s.persistentState||"optional",distinctiveIdentifier:s.distinctiveIdentifier||"optional",sessionTypes:s.sessionTypes||[s.sessionType||"temporary"],audioCapabilities:t.map((e=>({contentType:`audio/mp4; codecs=${e}
2`,robustness:s.audioRobustness||"",encryptionScheme:s.audioEncryptionScheme||null}))),videoCapabilities:i.map((e=>({contentType:`video/mp4; codecs=${e}`,robustness:s.videoRobustness||"",encryptionScheme:s.videoEncryptionScheme||null})))}]}(r,t,i,s)}(e,t,i,this.config.drmSystemOptions),r=this.keySystemAccessPromises[e];let n=null==r?void 0:r.keySystemAccess;if(!n){this.log(`Requesting encrypted media "${e}" key-system access with config: ${Dl(s)}`),n=this.requestMediaKeySystemAccess(e,s);const t=this.keySystemAccessPromises[e]={keySystemAccess:n};return n.catch((t=>{this.log(`Failed to obtain access to key-system "${e}": ${t}`)})),n.then((i=>{this.log(`Access for key-system "${i.keySystem}" obtained`);const s=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),t.mediaKeys=i.createMediaKeys().then((t=>(this.log(`Media-keys created for "${e}"`),s.then((i=>i?this.setMediaKeysServerCertificate(t,e,i):t))))),t.mediaKeys.catch((t=>{this.error(`Failed to create media-keys for "${e}"}: ${t}`)})),t.mediaKeys}))}return n.then((()=>r.mediaKeys))}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:i}){this.log(`Creating key-system session "${t}" keyId: ${no(e.keyId||[])}`);const s=i.createSession(),r={decryptdata:e,keySystem:t,mediaKeys:i,mediaKeysSession:s,keyStatus:"status-pending"};return this.mediaKeySessions.push(r),r}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const i=this.createMediaKeySessionContext(e),s=this.getKeyIdString(t),r="cenc";this.keyIdToKeySessionPromise[s]=this.generateRequestWithPreferredKeySession(i,r,t.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}getKeyIdString(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(null===e.keyId)throw new Error("keyId is null");return no(e.keyId)}updateKeySession(e,t){var i;const s=e.mediaKeysSession;return this.log(`Updating key-session "${s.sessionId}" for keyID ${no((null==(i=e.decryptdata)?void 0:i.keyId)||[])}\n } (data length: ${t?t.byteLength:t})`),s.update(t)}selectKeySystemFormat(e){const t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${e.sn} ${e.type}: ${e.level}) key formats ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise}getKeyFormatPromise(e){return new Promise(((t,i)=>{const s=Zd(this.config),r=e.map(zd).filter((e=>!!e&&-1!==s.indexOf(e)));return this.getKeySystemSelectionPromise(r).then((({keySystem:e})=>{const s=Qd(e);s?t(s):i(new Error(`Unable to find format for key-system "${e}"`))})).catch(i)}))}loadKey(e){const t=e.keyInfo.decryptdata,i=this.getKeyIdString(t),s=`(keyId: ${i} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${s}`);let r=this.keyIdToKeySessionPromise[i];if(!r){r=this.getKeySystemForKeyPromise(t).then((({keySystem:i,mediaKeys:r})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${s}`),this.attemptSetMediaKeys(i,r).then((()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:i,mediaKeys:r,decryptdata:t})))))));(this.keyIdToKeySessionPromise[i]=r.then((e=>{const i=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(e,"cenc",i,"playlist-key")}))).catch((e=>this.handleError(e)))}return r}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof vf?this.hls.trigger(Oa.ERROR,e.data):this.hls.trigger(Oa.ERROR,{type:Ia.KEY_SYSTEM_ERROR,details:Ra.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),i=this.keyIdToKeySessionPromise[t];if(!i){const t=zd(e.keyFormat),i=t?[t]:Zd(this.config);return this.attemptKeySystemAccess(i)}return i}getKeySystemSelectionPromise(e){if(e.length||(e=Zd(this.config)),0===e.length)throw new vf({type:Ia.KEY_SYSTEM_ERROR,details:Ra.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${Dl({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){const i=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const s=Promise.all(i).then((()=>
vendor: 5,403 bytes, line 2
2{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)}));return this.setMediaKeysQueue.push(s),s.then((()=>{this.log(`Media-keys set for "${e}"`),i.push(s),this.setMediaKeysQueue=this.setMediaKeysQueue.filter((e=>-1===i.indexOf(e)))}))}generateRequestWithPreferredKeySession(e,t,i,s){var r,n;const a=null==(r=this.config.drmSystems)||null==(n=r[e.keySystem])?void 0:n.generateRequest;if(a)try{const s=a.call(this.hls,t,i,e);if(!s)throw new Error("Invalid response from configured generateRequest filter");t=s.initDataType,i=s.initData?s.initData:null,e.decryptdata.pssh=i?new Uint8Array(i):null}catch(e){var o;if(this.warn(e.message),null!=(o=this.hls)&&o.config.debug)throw e}if(null===i)return this.log(`Skipping key-session request for "${s}" (no initData)`),Promise.resolve(e);const l=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${s}": ${l} (init data type: ${t} length: ${i?i.byteLength:null})`);const d=new sc,h=e._onmessage=t=>{const i=e.mediaKeysSession;if(!i)return void d.emit("error",new Error("invalid state"));const{messageType:s,message:r}=t;this.log(`"${s}" message event for session "${i.sessionId}" message size: ${r.byteLength}`),"license-request"===s||"license-renewal"===s?this.renewLicense(e,r).catch((e=>{d.eventNames().length?d.emit("error",e):this.handleError(e)})):"license-release"===s?e.keySystem===Hd.FAIRPLAY&&(this.updateKeySession(e,$d("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${s}"`)},c=e._onkeystatuseschange=t=>{if(!e.mediaKeysSession)return void d.emit("error",new Error("invalid state"));this.onKeyStatusChange(e);const i=e.keyStatus;d.emit("keyStatus",i),"expired"===i&&(this.warn(`${e.keySystem} expired for key ${l}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",h),e.mediaKeysSession.addEventListener("keystatuseschange",c);const u=new Promise(((e,t)=>{d.on("error",t),d.on("keyStatus",(i=>{i.startsWith("usable")?e():"output-restricted"===i?t(new vf({type:Ia.KEY_SYSTEM_ERROR,details:Ra.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):"internal-error"===i?t(new vf({type:Ia.KEY_SYSTEM_ERROR,details:Ra.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${i}"`)):"expired"===i?t(new Error("key expired while generating request")):this.warn(`unhandled key status change "${i}"`)}))}));return e.mediaKeysSession.generateRequest(t,i).then((()=>{var t;this.log(`Request generated for key-session "${null==(t=e.mediaKeysSession)?void 0:t.sessionId}" keyId: ${l}`)})).catch((e=>{throw new vf({type:Ia.KEY_SYSTEM_ERROR,details:Ra.KEY_SYSTEM_NO_SESSION,error:e,fatal:!1},`Error generating key-session request: ${e}`)})).then((()=>u)).catch((t=>{throw d.removeAllListeners(),this.removeSession(e),t})).then((()=>(d.removeAllListeners(),e)))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach(((t,i)=>{if("string"==typeof i&&"object"==typeof t){const e=i;i=t,t=e}this.log(`key status change "${t}" for keyStatuses keyId: ${no("buffer"in i?new Uint8Array(i.buffer,i.byteOffset,i.byteLength):new Uint8Array(i))} session keyId: ${no(new Uint8Array(e.decryptdata.keyId||[]))} uri: ${e.decryptdata.uri}`),e.keyStatus=t}))}fetchServerCertificate(e){const t=this.config,i=new(0,t.loader)(t),s=this.getServerCertificateUrl(e);return s?(this.log(`Fetching server certificate for "${e}"`),new Promise(((r,n)=>{const a={responseType:"arraybuffer",url:s},o=t.certLoadPolicy.default,l={loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},d={onSuccess:(e,t,i,s)=>{r(e.data)},onError:(t,i,r,o)=>{n(new vf({type:Ia.KEY_SYSTEM_ERROR,details:Ra.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:r,response:qa({url:a.url,data:void 0},t)},`"${e}" certificate request failed (${s}). Status: ${t.code} (${t.text})`))},onTimeout:(t,i,r)=>{n(new vf({type:Ia.KEY_SYSTEM_ERROR,details:Ra.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:r,response:{url:a.url,data:void 0}},`"${e}" certificate request timed out (${s})`))},onAbort:(e,t,i)=>{n(new Error("aborted"))}};i.load(a,l,d)}))):Promise.resolve()}setMediaKeysServerCertificate(e,t,i){return new Promise(((s,r)=>{e.setServerCertificate(i).then((r=>{this.log(`setServerCertificate ${r?"success":"not supported by CDM"} (${null==i?void 0:i.byteLength}) on "${t}"`),s(e)})).catch((e=>{r(new vf({type:Ia.KEY_SYSTEM_ERROR,details:Ra.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:e,fatal:!0},e.message))}))}))}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then((t=>this.updateKeySession(e,new Uint8Array(t)).catch((e=>{throw new vf({type:Ia.KEY_SYSTEM_ERROR,details:Ra.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:e,fatal:!0},e.message)}))))}unpackPlayReadyKeyMessage(e,t){const i=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!i.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const s=(new DOMParser).parseFromString(i,"application/xml"),r=s.querySelectorAll("HttpHeader");if(r.length>0){let t;for(let i=0,s=r.length;i<s;i++){var n,a;t=r[i];const s=null==(n=t.querySelector("name"))?void 0:n.textContent,o=null==(a=t.querySelector("value"))?void 0:a.textContent;s&&o&&e.setRequestHeader(s,o)}}const o=s.querySelector("Challenge"),l=null==o?void 0:o.textContent;
2if(!l)throw new Error("Cannot find <Challenge> in key message");return $d(atob(l))}setupLicenseXHR(e,t,i,s){const r=this.config.licenseXhrSetup;return r?Promise.resolve().then((()=>{if(!i.decryptdata)throw new Error("Key removed");return r.call(this.hls,e,t,i,s)})).catch((n=>{if(!i.decryptdata)throw n;return e.open("POST",t,!0),r.call(this.hls,e,t,i,s)})).then((i=>{e.readyState||e.open("POST",t,!0);return{xhr:e,licenseChallenge:i||s}})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:s}))}requestLicense(e,t){const i=this.config.keyLoadPolicy.default;return new Promise(((s,r)=>{const n=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${n}`);const a=new XMLHttpRequest;a.responseType="arraybuffer",a.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return r(new Error("invalid state"));if(4===a.readyState)if(200===a.status){this._requestLicenseFailureCount=0;let t=a.response;this.log(`License received ${t instanceof ArrayBuffer?t.byteLength:t}`);const i=this.config.licenseResponseCallback;if(i)try{t=i.call(this.hls,a,n,e)}catch(e){this.error(e)}s(t)}else{const o=i.errorRetry,l=o?o.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>l||a.status>=400&&a.status<500)r(new vf({type:Ia.KEY_SYSTEM_ERROR,details:Ra.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:a,response:{url:n,data:void 0,code:a.status,text:a.statusText}},`License Request XHR failed (${n}). Status: ${a.status} (${a.statusText})`));else{const i=l-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${i} attempts left`),this.requestLicense(e,t).then(s,r)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=a,this.setupLicenseXHR(a,n,e,t).then((({xhr:t,licenseChallenge:i})=>{e.keySystem==Hd.PLAYREADY&&(i=this.unpackPlayReadyKeyMessage(t,i)),t.send(i)}))}))}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const i=t.media;this.media=i,i.removeEventListener("encrypted",this.onMediaEncrypted),i.removeEventListener("waitingforkey",this.onWaitingForKey),i.addEventListener("encrypted",this.onMediaEncrypted),i.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media;e&&(e.removeEventListener("encrypted",this.onMediaEncrypted),e.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null)}_clear(e){var t;const i=this.mediaKeySessions;this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},rh.clearKeyUriToKeyIdMap();const s=i.length;_f.CDMCleanupPromise=Promise.all(i.map((e=>this.removeSession(e))).concat(null==e||null==(t=e.setMediaKeys(null))?void 0:t.catch((e=>{var t;this.log(`Could not clear media keys: ${e}`),null==(t=this.hls)||t.trigger(Oa.ERROR,{type:Ia.OTHER_ERROR,details:Ra.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${e}`)})})))).then((()=>{s&&(this.log("finished closing key sessions and clearing media keys"),i.length=0)})).catch((e=>{var t;this.log(`Could not close sessions and clear media keys: ${e}`),null==(t=this.hls)||t.trigger(Oa.ERROR,{type:Ia.OTHER_ERROR,details:Ra.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${e}`)})}))}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(t&&this.config.emeEnabled&&!this.keyFormatPromise){const e=t.reduce(((e,t)=>(-1===e.indexOf(t.keyFormat)&&e.push(t.keyFormat),e)),[]);this.log(`Selecting key-system from session-keys ${e.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(e)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:i}=e;if(t){this.log(`Remove licenses and keys and close session ${t.sessionId}`),e._onmessage&&(t.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(t.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),i&&i.readyState!==XMLHttpRequest.DONE&&i.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const s=this.mediaKeySessions.indexOf(e);s>-1&&this.mediaKeySessions.splice(s,1);const{drmSystemOptions:r}=this.config,n=function(e){var t;return"persistent-license"===e.sessionType||!(null==(t=e.sessionTypes)||!t.some((e=>"persistent-license"===e)))}(r)?new Promise(((e,i)=>{self.setTimeout((()=>i(new Error("MediaKeySession.remove() timeout"))),8e3),t.remove().then(e)})):Promise.resolve();return n.catch((e=>{var t;this.log(`Could not remove session: ${e}`),null==(t=this.hls)||t.trigger(Oa.ERROR,{type:Ia.OTHER_ERROR,details:Ra.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${e}`)})})).then((()=>t.close())).catch((e=>{var t;this.log(`Could not close session: ${e}`),null==(t=this.hls)||t.trigger(Oa.ERROR,{type:Ia.OTHER_ERROR,details:Ra.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${e}`)})}))}}}_f.CDMCleanupPromise=void 0;
2class vf extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=new Error(t)),this.data=e,e.err=e.error}}function bf(e,t){let i;try{i=new Event("addtrack")}catch(e){i=document.createEvent("Event"),i.initEvent("addtrack",!1,!1)}i.track=e,t.dispatchEvent(i)}function wf(e,t){const i=e.mode;if("disabled"===i&&(e.mode="hidden"),e.cues&&!e.cues.getCueById(t.id))try{if(e.addCue(t),!e.cues.getCueById(t.id))throw new Error(`addCue is failed for: ${t}`)}catch(i){to.debug(`[texttrack-utils]: ${i}`);try{const i=new self.TextTrackCue(t.startTime,t.endTime,t.text);i.id=t.id,e.addCue(i)}catch(e){to.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${e}`)}}"disabled"===i&&(e.mode=i)}function Tf(e,t){const i=e.mode;if("disabled"===i&&(e.mode="hidden"),e.cues)for(let i=e.cues.length;i--;)t&&e.cues[i].removeEventListener("enter",t),e.removeCue(e.cues[i]);"disabled"===i&&(e.mode=i)}function Mf(e,t,i,s){const r=e.mode;if("disabled"===r&&(e.mode="hidden"),e.cues&&e.cues.length>0){const r=function(e,t,i){const s=[],r=function(e,t){if(t<=e[0].startTime)return 0;const i=e.length-1;if(t>e[i].endTime)return-1;let s,r=0,n=i;for(;r<=n;)if(s=Math.floor((n+r)/2),t<e[s].startTime)n=s-1;else{if(!(t>e[s].startTime&&r<i))return s;r=s+1}return e[r].startTime-t<t-e[n].startTime?r:n}(e,t);if(r>-1)for(let n=r,a=e.length;n<a;n++){const r=e[n];if(r.startTime>=t&&r.endTime<=i)s.push(r);else if(r.startTime>i)return s}return s}(e.cues,t,i);for(let t=0;t<r.length;t++)s&&!s(r[t])||e.removeCue(r[t])}"disabled"===r&&(e.mode=r)}function Sf(e){const t=[];for(let i=0;i<e.length;i++){const s=e[i];"subtitles"!==s.kind&&"captions"!==s.kind||!s.label||t.push(e[i])}return t}function Lf(e){let t=5381,i=e.length;for(;i;)t=33*t^e.charCodeAt(--i);return(t>>>0).toString()}const kf=.025;let Ef=function(e){return e[e.Point=0]="Point",e[e.Range=1]="Range",e}({});function Df(e,t,i){return`${e.identifier}-${i+1}-${Lf(t)}`}class xf{constructor(e,t){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=t,this.dateRange=e,this.setDateRange(e)}setDateRange(e){this.dateRange=e,this.resumeOffset=e.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=e.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=e.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=e.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var e;this.appendInPlaceStarted=!1,null==(e=this.assetListLoader)||e.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(e){if(e>=this.assetList.length)return!0;const t=this.playoutLimit;if(e<=0||isNaN(t))return!1;return this.assetList[e].startOffset>t}findAssetIndex(e){return this.assetList.indexOf(e)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const e=this.dateRange.startTime;if(this.snapOptions.out){const t=this.dateRange.tagAnchor;if(t)return Af(e,t)}return e}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(0===this.startTime||this.snapOptions.out)return!0;const e=this.dateRange.tagAnchor;if(e){const t=this.dateRange.startTime;return t-Af(t,e)<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=Aa(e)?e:this.duration;return this.cumulativeDuration+t}get resumeTime(){const e=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const t=this.resumeAnchor;if(t)return Af(e,t)}return e}get appendInPlace(){return!!this.appendInPlaceStarted||!this.appendInPlaceDisabled&&!(this.cue.once||this.cue.pre||!this.startIsAligned||!(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)<kf))}set appendInPlace(e){this.appendInPlaceStarted?this.resetOnResume=!e:this.appendInPlaceDisabled=!e}get timelineStart(){return null!==this._timelineStart?this._timelineStart:this.startTime}set timelineStart(e){this._timelineStart=e}get duration(){const e=this.playoutLimit;let t;return t=null!==this._duration?this._duration:this.dateRange.duration?this.dateRange.duration:this.dateRange.plannedDuration||0,!isNaN(e)&&e<t&&(t=e),t}set duration(e){this._duration=e}get cue(){return this.dateRange.cue}get timelineOccupancy(){return"RANGE"===this.dateRange.attr["X-TIMELINE-OCCUPIES"]?Ef.Range:Ef.Point}get supplementsPrimary(){return"PRIMARY"===this.dateRange.attr["X-TIMELINE-STYLE"]}get contentMayVary(){return"NO"!==this.dateRange.attr["X-CONTENT-MAY-VARY"]}get assetUrl(){return this.dateRange.attr["X-ASSET-URI"]}get assetListUrl(){return this.dateRange.attr["X-ASSET-LIST"]}get baseUrl(){return this.base.url}get assetListLoaded(){return this.assetList.length>0||null!==this.assetListResponse}toString(){return`["${(e=this).identifier}" ${e.cue.pre?"<pre>":e.cue.post?"<post>":""}${e.timelineStart.toFixed(2)}-${e.resumeTime.toFixed(2)}]`;var e}}function Af(e,t){return e-t.start<t.duration/2&&!(Math.abs(e-(t.start+t.duration))<kf)?t.start:t.start+t.duration}function Pf(e,t,i){const s=new self.URL(e,i);return"data:"!==s.protocol&&s.searchParams.set("_HLS_primary_id",t),s}function Cf(e){const t=e.timelineStart,i=e.duration||0;return`["${e.identifier}" ${t.toFixed(2)}-${(t+i).toFixed(2)}]`}class If{constructor(e,t,i,s){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetail
2s=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{const e=this.interstitial.playoutLimit,t=this.currentTime;this.startOffset+t>=e&&this.hls.trigger(Oa.PLAYOUT_LIMIT_REACHED,{})};const r=this.hls=new e(t);this.interstitial=i,this.assetItem=s;let n=s.uri;try{n=Pf(n,r.sessionId).href}catch(e){}r.loadSource(n);const a=()=>{this.hasDetails=!0};r.once(Oa.LEVEL_LOADED,a),r.once(Oa.AUDIO_TRACK_LOADED,a),r.once(Oa.SUBTITLE_TRACK_LOADED,a),r.on(Oa.MEDIA_ATTACHING,((e,{media:t})=>{this.removeMediaListeners(),this.mediaAttached=t;this.interstitial.playoutLimit&&t.addEventListener("timeupdate",this.checkPlayout)}))}bufferedInPlaceToEnd(e){var t;if(!this.interstitial.appendInPlace)return!1;if(null!=(t=this.hls)&&t.bufferedToEnd)return!0;if(!e||!this._bufferedEosTime)return!1;const i=this.timelineOffset,s=Md.bufferInfo(e,i,0);return this.getAssetTime(s.end)>=this._bufferedEosTime-.02}get destroyed(){var e;return!(null!=(e=this.hls)&&e.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var e;return(null==(e=this.hls)?void 0:e.media)||null}get bufferedEnd(){const e=this.media||this.mediaAttached;if(!e)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const t=Md.bufferInfo(e,e.currentTime,.001);return this.getAssetTime(t.end)}get currentTime(){const e=this.media||this.mediaAttached;return e?this.getAssetTime(e.currentTime):this._currentTime||0}get duration(){const e=this.assetItem.duration;return e||0}get remaining(){const e=this.duration;return e?Math.max(0,e-this.currentTime):0}get startOffset(){return this.assetItem.startOffset}get timelineOffset(){var e;return(null==(e=this.hls)?void 0:e.config.timelineOffset)||0}set timelineOffset(e){const t=this.timelineOffset;if(e!==t){const i=e-t;if(Math.abs(i)>1/9e4){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=e}}}getAssetTime(e){const t=this.timelineOffset,i=this.duration;return Math.min(Math.max(0,e-t),i)}removeMediaListeners(){const e=this.mediaAttached;e&&(this._currentTime=e.currentTime,this.bufferSnapShot(),e.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){var e;this.mediaAttached&&(null!=(e=this.hls)&&e.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd))}destroy(){this.removeMediaListeners(),this.hls.destroy(),this.hls=this.interstitial=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(e){this.hls.attachMedia(e)}detachMedia(){this.removeMediaListeners(),this.mediaAttached=null,this.hls.detachMedia()}resumeBuffering(){this.hls.resumeBuffering()}pauseBuffering(){this.hls.pauseBuffering()}transferMedia(){return this.bufferSnapShot(),this.hls.transferMedia()}on(e,t,i){this.hls.on(e,t)}once(e,t,i){this.hls.once(e,t)}off(e,t,i){this.hls.off(e,t)}toString(){var e,t;return`HlsAssetPlayer: ${Cf(this.assetItem)} ${null==(e=this.hls)?void 0:e.sessionId} ${null!=(t=this.interstitial)&&t.appendInPlace?"append-in-place":""}`}}class Rf extends Ka{constructor(e,t){super("interstitials-sched",t),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=e}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach((e=>e.reset())),this.events=this.items=null}resetErrorsInRange(e,t){return this.events?this.events.reduce(((i,s)=>e<=s.startOffset&&t>s.startOffset?(delete s.error,i+1):i),0):0}get duration(){const e=this.items;return e?e[e.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(e){return e&&this.eventMap[e]||null}hasEvent(e){return e in this.eventMap}findItemIndex(e,t){if(e.event)return this.findEventIndex(e.event.identifier);let i=-1;e.nextEvent?i=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(i=this.findEventIndex(e.previousEvent.identifier)+1);const s=this.items;if(s)for(s[i]||(void 0===t&&(t=e.start),i=this.findItemIndexAtTime(t));i>=0&&null!=(r=s[i])&&r.event;){var r;i--}return i}findItemIndexAtTime(e,t){const i=this.items;if(i)for(let s=0;s<i.length;s++){let r=i[s];if(t&&"primary"!==t&&(r=r[t]),e===r.start||e>
2r.start&&e<r.end)return s}return-1}findJumpRestrictedIndex(e,t){const i=this.items;if(i)for(let s=e;s<=t&&i[s];s++){const e=i[s].event;if(null!=e&&e.restrictions.jump&&!e.appendInPlace)return s}return-1}findEventIndex(e){const t=this.items;if(t)for(let s=t.length;s--;){var i;if((null==(i=t[s].event)?void 0:i.identifier)===e)return s}return-1}findAssetIndex(e,t){const i=e.assetList,s=i.length;if(s>1)for(let e=0;e<s;e++){const s=i[e];if(!s.error){const i=s.timelineStart;if(t===i||t>i&&t<i+(s.duration||0))return e}}return 0}get assetIdAtEnd(){var e,t;const i=null==(e=this.items)||null==(t=e[this.length-1])?void 0:t.event;if(i){const e=i.assetList,t=e[e.length-1];if(t)return t.identifier}return null}parseInterstitialDateRanges(e,t){const i=e.main.details,{dateRanges:s}=i,r=this.events,n=this.parseDateRanges(s,{url:i.url},t),a=Object.keys(s),o=r?r.filter((e=>!a.includes(e.identifier))):[];n.length&&n.sort(((e,t)=>{const i=e.cue.pre,s=e.cue.post,r=t.cue.pre,n=t.cue.post;if(i&&!r)return-1;if(r&&!i)return 1;if(s&&!n)return 1;if(n&&!s)return-1;if(!(i||r||s||n)){const i=e.startTime,s=t.startTime;if(i!==s)return i-s}return e.dateRange.tagOrder-t.dateRange.tagOrder})),this.events=n,o.forEach((e=>{this.removeEvent(e)})),this.updateSchedule(e,o)}updateSchedule(e,t=[]){const i=this.events||[];
2if(i.length||t.length||this.length<2){const s=this.items,r=this.parseSchedule(i,e),n=t.length||(null==s?void 0:s.length)!==r.length||r.some(((e,t)=>Math.abs(e.playout.start-s[t].playout.start)>.005||Math.abs(e.playout.end-s[t].playout.end)>.005));n&&(this.items=r,this.onScheduleUpdate(t,s))}}parseDateRanges(e,t,i){const s=[],r=Object.keys(e);for(let n=0;n<r.length;n++){const a=r[n],o=e[a];if(o.isInterstitial){let e=this.eventMap[a];e?e.setDateRange(o):(e=new xf(o,t),this.eventMap[a]=e,!1===i&&(e.appendInPlace=i)),s.push(e)}}return s}parseSchedule(e,t){const i=[],s=t.main.details,r=s.live?1/0:s.edge;let n=0;if((e=e.filter((e=>!(e.error||e.cue.once&&e.hasPlayed)))).length){this.resolveOffsets(e,t);let s=0,o=0;if(e.forEach(((t,a)=>{const l=t.cue.pre,d=t.cue.post,h=e[a-1]||null,c=t.appendInPlace,u=d?r:t.startOffset,f=t.duration,m=t.timelineOccupancy===Ef.Range?f:0,p=t.resumptionOffset,g=(null==h?void 0:h.startTime)===u,y=u+t.cumulativeDuration;let _=c?y+f:u+p;if(l||!d&&u<=0){const e=o;o+=m,t.timelineStart=y;const s=n;n+=f,i.push({event:t,start:y,end:_,playout:{start:s,end:n},integrated:{start:e,end:o}})}else{if(!(u<=r))return;{if(!g){const r=u-s;if(r>.033){const l=s,d=o;o+=r;const h=n;n+=r;const c={previousEvent:e[a-1]||null,nextEvent:t,start:l,end:l+r,playout:{start:h,end:n},integrated:{start:d,end:o}};i.push(c)}else r>0&&h&&(h.cumulativeDuration+=r,i[i.length-1].end=u)}d&&(_=y),t.timelineStart=y;const r=o;o+=m;const l=n;n+=f,i.push({event:t,start:y,end:_,playout:{start:l,end:n},integrated:{start:r,end:o}})}}const v=t.resumeTime;s=d||v>r?r:v})),s<r){var a;const e=s,t=o,l=r-s;o+=l;const d=n;n+=l,i.push({previousEvent:(null==(a=i[i.length-1])?void 0:a.event)||null,nextEvent:null,start:s,end:e+l,playout:{start:d,end:n},integrated:{start:t,end:o}})}this.setDurations(r,n,o)}else{const e=0;i.push({previousEvent:null,nextEvent:null,start:e,end:r,playout:{start:e,end:r},integrated:{start:e,end:r}}),this.setDurations(r,r,r)}return i}setDurations(e,t,i){this.durations={primary:e,playout:t,integrated:i}}resolveOffsets(e,t){const i=t.main.details,s=i.live?1/0:i.edge;let r=0,n=-1;e.forEach(((a,o)=>{const l=a.cue.pre,d=a.cue.post,h=l?0:d?s:a.startTime;this.updateAssetDurations(a);if(n===h?a.cumulativeDuration=r:(r=0,n=h),!d&&a.snapOptions.in&&(a.resumeAnchor=$l(null,i.fragments,a.startOffset+a.resumptionOffset,0,0)||void 0),a.appendInPlace&&!a.appendInPlaceStarted){this.primaryCanResumeInPlaceAt(a,t)||(a.appendInPlace=!1)}if(!a.appendInPlace&&o+1<e.length){e[o+1].startTime-e[o].resumeTime<.033&&(e[o+1].appendInPlace=!1,e[o+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${a}`))}const c=Aa(a.resumeOffset)?a.resumeOffset:a.duration;r+=c}))}primaryCanResumeInPlaceAt(e,t){const i=e.resumeTime,s=e.startTime+e.resumptionOffset;if(Math.abs(i-s)>kf)return this.log(`"${e.identifier}" resumption ${i} not aligned with estimated timeline end ${s}`),!1;if(!t)return this.log(`"${e.identifier}" resumption ${i} can not be aligned with media (none selected)`),!1;return!Object.keys(t).some((s=>{const r=t[s].details,n=r.edge;if(i>=n)return this.log(`"${e.identifier}" resumption ${i} past ${s} playlist end ${n}`),!1;const a=$l(null,r.fragments,i);if(!a)return this.log(`"${e.identifier}" resumption ${i} does not align with any fragments in ${s} playlist (${r.fragStart}-${r.fragmentEnd})`),!0;const o="audio"===s?.175:0;return!(Math.abs(a.start-i)<kf+o||Math.abs(a.end-i)<kf+o)&&(this.log(`"${e.identifier}" resumption ${i} not aligned with ${s} fragment bounds (${a.start}-${a.end} sn: ${a.sn} cc: ${a.cc})`),!0)}))}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let i=0,s=!1,r=!1;e.assetList.forEach(((e,n)=>{const a=t+i;e.startOffset=i,e.timelineStart=a,s||(s=null===e.duration),r||(r=!!e.error);const o=e.error?0:e.duration||0;i+=o})),e.duration=s&&!r?Math.max(i,e.duration):i}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function Of(e){return`[${e.event?'"'+e.event.identifier+'"':"primary"}: ${e.start.toFixed(2)}-${e.end.toFixed(2)}]`}class Yf{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const i=e.assetListUrl;let s;try{s=Pf(i,this.hls.sessionId,e.baseUrl)}catch(t){const s=this.assignAssetListError(e,Ra.ASSET_LIST_LOAD_ERROR,t,i
2);return void this.hls.trigger(Oa.ERROR,s)}t&&"data:"!==s.protocol&&s.searchParams.set("_HLS_start_offset",""+t);const r=this.hls.config,n=new(0,r.loader)(r),a={responseType:"json",url:s.href},o=r.interstitialAssetListLoadPolicy.default,l={loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},d={onSuccess:(t,i,s,r)=>{const n=t.data,a=null==n?void 0:n.ASSETS;if(Array.isArray(a))e.assetListResponse=n,this.hls.trigger(Oa.ASSET_LIST_LOADED,{event:e,assetListResponse:n,networkDetails:r});else{const t=this.assignAssetListError(e,Ra.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),s.url,i,r);this.hls.trigger(Oa.ERROR,t)}},onError:(t,i,s,r)=>{const n=this.assignAssetListError(e,Ra.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${t.code} ${t.text} (${i.url})`),i.url,r,s);this.hls.trigger(Oa.ERROR,n)},onTimeout:(t,i,s)=>{const r=this.assignAssetListError(e,Ra.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${i.url})`),i.url,t,s);this.hls.trigger(Oa.ERROR,r)}};return n.load(a,l,d),this.hls.trigger(Oa.ASSET_LIST_LOADING,{event:e}),n}assignAssetListError(e,t,i,s,r,n){return e.error=i,{type:Ia.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:s,error:i,networkDetails:n,stats:r}}}function Ff(e,t,i){$f(e,t,i),e.addEventListener(t,i)}function $f(e,t,i){e.removeEventListener(t,i)}function Nf(e){null==e||e.play().catch((()=>{}))}class Bf{constructor(e){this.buffered=void 0;const t=(t,i,s)=>{if((i>>>=0)>s-1)throw new DOMException(`Failed to execute '${t}' on 'TimeRanges': The index provided (${i}) is greater than the maximum bound (${s})`);return e[i][t]};this.buffered={get length(){return e.length},end:i=>t("end",i,e.length),start:i=>t("start",i,e.length)}}}const Hf={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},jf=e=>String.fromCharCode(Hf[e]||e),Uf=15,Vf=100,Gf={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},zf={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Wf={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},qf={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Kf=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class Jf{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const i="function"==typeof t?t():t;to.log(`${this.time} [${e}] ${i}`)}}}const Xf=function(e){const t=[];for(let i=0;i<e.length;i++)t.push(e[i].toString(16));return t};class Qf{constructor(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}reset(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}setStyles(e){const t=["foreground","underline","italics","background","flash"];for(let i=0;i<t.length;i++){const s=t[i];e.hasOwnProperty(s)&&(this[s]=e[s])}}isDefault(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash}equals(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash}copy(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class Zf{constructor(){this.uchar=" ",this.penState=new Qf}reset(){this.uchar=" ",this.penState.reset()}setChar(e,t){this.uchar=e,this.penState.copy(t)}setPenState(e){this.penState.copy(e)}equals(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)}copy(e){this.uchar=e.uchar,this.penState.copy(e.penState)}isEmpty(){return" "===this.uchar&&this.penState.isDefault()}}class em{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Qf,this.cueStartTime=null,this.logger=void 0;for(let e=0;e<Vf;e++)this.chars.push(new Zf);this.logger=e}equals(e){for(let t=0;t<Vf;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<Vf;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<Vf;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e}
vendor: 15,062 bytes, line 2
2setCursor(e){this.pos!==e&&(this.pos=e),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>Vf&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Vf)}moveCursor(e){const t=this.pos+e;if(e>1)for(let e=this.pos+1;e<t+1;e++)this.chars[e].setPenState(this.currPenState);this.setCursor(t)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(e){e>=144&&this.backSpace();const t=jf(e);this.pos>=Vf?this.logger.log(0,(()=>"Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!")):(this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1))}clearFromPos(e){let t;for(t=e;t<Vf;t++)this.chars[t].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){const e=[];let t=!0;for(let i=0;i<Vf;i++){const s=this.chars[i].uchar;" "!==s&&(t=!1),e.push(s)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e);this.chars[this.pos].setPenState(this.currPenState)}}class tm{constructor(e){this.rows=[],this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<Uf;t++)this.rows.push(new em(e));this.logger=e}reset(){for(let e=0;e<Uf;e++)this.rows[e].clear();this.currRow=14}equals(e){let t=!0;for(let i=0;i<Uf;i++)if(!this.rows[i].equals(e.rows[i])){t=!1;break}return t}copy(e){for(let t=0;t<Uf;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<Uf;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(e){this.rows[this.currRow].insertChar(e)}setPen(e){this.rows[this.currRow].setPenStyles(e)}moveCursor(e){this.rows[this.currRow].moveCursor(e)}setCursor(e){this.logger.log(2,"setCursor: "+e);this.rows[this.currRow].setCursor(e)}setPAC(e){this.logger.log(2,(()=>"pacData = "+Dl(e)));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let e=0;e<Uf;e++)this.rows[e].clear();const e=this.currRow+1-this.nrRollUpRows,i=this.lastOutputScreen;if(i){const s=i.rows[e].cueStartTime,r=this.logger.time;if(null!==s&&null!==r&&s<r)for(let s=0;s<this.nrRollUpRows;s++)this.rows[t-this.nrRollUpRows+s+1].copy(i.rows[e+s])}}this.currRow=t;const i=this.rows[this.currRow];if(null!==e.indent){const t=e.indent,s=Math.max(t-1,0);i.setCursor(e.indent),e.color=i.chars[s].penState.foreground}const s={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(s)}setBkgData(e){this.logger.log(2,(()=>"bkgData = "+Dl(e))),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(null===this.nrRollUpRows)return void this.logger.log(3,"roll_up but nrRollUpRows not set yet");this.logger.log(1,(()=>this.getDisplayText()));const e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;const t=[];let i="",s=-1;for(let i=0;i<Uf;i++){const r=this.rows[i].getTextString();r&&(s=i+1,e?t.push("Row "+s+": '"+r+"'"):t.push(r.trim()))}return t.length>0&&(i=e?"["+t.join(" | ")+"]":t.join("\n")),i}getTextAndFormat(){return this.rows}}class im{constructor(e,t,i){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new tm(i),this.nonDisplayedMemory=new tm(i),this.lastOutputScreen=new tm(i),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=i}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,(()=>"MODE="+e)),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let t=0;t<e.length;t++)this.writeScreen.insertChar(e[t]);const t=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,(()=>t+": "+this.writeScreen.getDisplayText(!0))),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(1,(()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0))),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){const e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,(()=>"DISP: "+this.displayedMemory.getDisplayText()))}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){const t={flash:!1};if(t.underline=e%2==1,t.italics=e>=46,t.italics)t.foreground="white";else{const i=Math.floor(e/2)-16,s=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=s[i]}this.logger.log(2,"MIDROW: "+Dl(t)),this.writeScreen.setPen(t)}outputDataUpdate(e=!1){const t=this.logger.time;null!==t&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t):this.cueStartTime=t,this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}class sm{constructor(e,t,i){this.channels=void 0,this.currentChannel=0,this.cmdHistory={a:null,b:null},this.logger=void 0;const s=this.logger=new Jf;this.channels=[null,new im(e,t,s),new im(e+1,i,s)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let e=0;e<t.length;e+=2){const i=127&t[e],s=127&t[e+1];let r=!1,n=null;if(0===i&&0===s)continue;this.logger.log(3,(()=>"["+Xf([t[e],t[e+1]])+"] -> ("+Xf([i,s])+")"));const a=this.cmdHistory;if(i>=16&&i<=31){if(nm(i,s,a)){rm(null,null,a),this.logger.log(3,(()=>"Repeated command ("+Xf([i,s])+") is dropped"));continue}rm(i,s,this.cmdHistory),r=this.parseCmd(i,s),r||(r=this.parseMidrow(i,s)),r||(r=this.parsePAC(i,s)),r||(r=this.parseBackgroundAttributes(i,s))}else rm(null,null,a);if(!r&&(n=this.parseChars(i,s),n)){const e=this.currentChannel;if(e&&e>0){this.channels[e].insertChars(n)}else this.logger.log(2,"No channel found yet. TEXT-MODE?")}r||n||this.logger.log(2,(()=>"Couldn't parse cleaned data "+Xf([i,s])+" orig: "+Xf([t[e],t[e+1]])))}}parseCmd(e,t){if(!((20===e||28===e||21===e||29===e)&&t>=32&&t<=47)&&!((23===e||31===e)&&t>=33&&t<=35))return!1;const i=20===e||21===e||23===e?1:2,s=this.channels[i];return 20===e||21===e||28===e||29===e?32===t?s.ccRCL():33===t?s.ccBS():34===t?s.ccAOF():35===t?s.ccAON():36===t?s.ccDER():37===t?s.ccRU(2):38===t?s.ccRU(3):39===t?s.ccRU(4):40===t?s.ccFON():41===t?s.ccRDC():42===t?s.ccTR():43===t?s.ccRTD():44===t?s.ccEDM():45===t?s.ccCR():46===t?s.ccENM():47===t&&s.ccEOC():s.ccTO(t-32),this.currentChannel=i,!0}parseMidrow(e,t){let i=0;if((17===e||25===e)&&t>=32&&t<=47){if(i=17===e?1:2,i!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const s=this.channels[i];return!!s&&(s.ccMIDROW(t),this.logger.log(3,(()=>"MIDROW ("+Xf([e,t])+")")),!0)}return!1}parsePAC(e,t){let i;if(!((e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127)&&!((16===e||24===e)&&t>=64&&t<=95))return!1;const s=e<=23?1:2;i=t>=64&&t<=95?1===s?Gf[e]:Wf[e]:1===s?zf[e]:qf[e];const r=this.channels[s];return!!r&&(r.setPAC(this.interpretPAC(i,t)),this.currentChannel=s,!0)}interpretPAC(e,t){let i;const s={color:null,italics:!1,indent:null,underline:!1,row:e};return i=t>95?t-96:t-64,s.underline=!(1&~i),i<=13?s.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(i/2)]:i<=15?(s.italics=!0,s.color="white"):s.indent=4*Math.floor((i-16)/2),s}parseChars(e,t){let i,s=null,r=null;if(e>=25?(i=2,r=e-8):(i=1,r=e),r>=17&&r<=19){let e;e=17===r?t+80:18===r?t+112:t+144,this.logger.log(2,(()=>"Special char '"+jf(e)+"' in channel "+i)),s=[e]}else e>=32&&e<=127&&(s=0===t?[e]:[e,t]);return s&&this.logger.log(3,(()=>"Char codes = "+Xf(s).join(","))),s}parseBackgroundAttributes(e,t){if(!((16===e||24===e)&&t>=32&&t<=47)&&!((23===e||31===e)&&t>=45&&t<=47))return!1;let i;const s={};16===e||24===e?(i=Math.floor((t-32)/2),s.background=Kf[i],t%2==1&&(s.background=s.background+"_semi")):45===t?s.background="transparent":(s.foreground="black",47===t&&(s.underline=!0));const r=e<=23?1:2;return this.channels[r].setBkgData(s),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}rm(null,null,this.cmdHistory)}cueSplitAtTime(e){for(let t=0;t<this.channels.length;t++){const i=this.channels[t];i&&i.cueSplitAtTime(e)}}}function rm(e,t,i){i.a=e,i.b=t}function nm(e,t,i){return i.a===e&&i.b===t}var am=function(){if(null!=Bd&&Bd.VTTCue)return self.VTTCue;const e=["","lr","rl"],t=["start","middle","end","left","right"];function i(e,t){if("string"!=typeof t)return!1;if(!Array.isArray(e))return!1;const i=t.toLowerCase();return!!~e.indexOf(i)&&i}function s(e){return i(t,e)}function r(e,...t){let i=1;for(;i<arguments.length;i++){const t=arguments[i];for(const i in t)e[i]=t[i]}return e}function n(t,n,a){const o=this,l={enumerable:!0};o.hasBeenReset=!1;let d="",h=!1,c=t,u=n,f=a,m=null,p="",g=!0,y="auto",_="start",v=50,b="middle",w=50,T="middle";Object.defineProperty(o,"id",r({},l,{get:function(){return d},set:function(e){d=""+e}})),Object.defineProperty(o,"pauseOnExit",r({},l,{get:function(){return h},set:function(e){h=!!e}})),Object.defineProperty(o,"startTime",r({},l,{get:function(){return c},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");c=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"endTime",r({},l,{get:function(){return u},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");u=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"text",r({},l,{get:function(){return f},set:function(e){f=""+e,this.hasBeenReset=!0}})),Object.defineProperty(o,"region",r({},l,{get:function(){return m},set:function(e){m=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"vertical",r({},l,{get:function(){return p},set:function(t){const s=function(t){return i(e,t)}(t);if(!1===s)throw new SyntaxError("An invalid or illegal string was specified.");p=s,this.hasBeenReset=!0}})),Object.defineProperty(o,"snapToLines",r({},l,{get:function(){return g},set:function(e){g=!!e,this.hasBeenReset=!0}})),Object.defineProperty(o,"line",r({},l,{get:function(){return y},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("An invalid number or illegal string was specified.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"lineAlign",r({},l,{get:function(){return _},set:function(e){const t=s(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");_=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"position",r({},l,{get:function(){return v},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");v=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"positionAlign",r({},l,{get:function(){return b},set:function(e){const t=s(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(o,"size",r({},l,{get:function(){return w},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");w=e,this.hasBeenReset=!0}})),Object.defineProperty(o,"align",r({},l,{get:function(){return T},set:function(e){const t=s(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");T=t,this.hasBeenReset=!0}})),o.displayState=void 0}return n.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},n}();class om{decode(e,t){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function lm(e){function t(e,t,i,s){return 3600*(0|e)+60*(0|t)+(0|i)+parseFloat(s||0)}const i=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return i?parseFloat(i[2])>59?t(i[2],i[3],0,i[4]):t(i[1],i[2],i[3],i[4]):null}class dm{constructor(){this.values=Object.create(null)}set(e,t){this.get(e)||""===t||(this.values[e]=t)}get(e,t,i){return i?this.has(e)?this.values[e]:t[i]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,i){for(let s=0;s<i.length;++s)if(t===i[s]){this.set(e,t);break}}integer(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))}percent(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){const i=parseFloat(t);if(i>=0&&i<=100)return this.set(e,i),!0}return!1}}function hm(e,t,i,s){const r=s?e.split(s):[e];for(const e in r){if("string"!=typeof r[e])continue;const s=r[e].split(i);if(2!==s.length)continue;t(s[0],s[1])}}const cm=new am(0,0,""),um="middle"===cm.align?"middle":"center";function fm(e,t,i){const s=e;function r(){const t=lm(e);
vendor: 5,259 bytes, line 2
2if(null===t)throw new Error("Malformed timestamp: "+s);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function n(){e=e.replace(/^\s+/,"")}if(n(),t.startTime=r(),n(),"--\x3e"!==e.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+s);e=e.slice(3),n(),t.endTime=r(),n(),function(e,t){const s=new dm;hm(e,(function(e,t){let r;switch(e){case"region":for(let r=i.length-1;r>=0;r--)if(i[r].id===t){s.set(e,i[r].region);break}break;case"vertical":s.alt(e,t,["rl","lr"]);break;case"line":r=t.split(","),s.integer(e,r[0]),s.percent(e,r[0])&&s.set("snapToLines",!1),s.alt(e,r[0],["auto"]),2===r.length&&s.alt("lineAlign",r[1],["start",um,"end"]);break;case"position":r=t.split(","),s.percent(e,r[0]),2===r.length&&s.alt("positionAlign",r[1],["start",um,"end","line-left","line-right","auto"]);break;case"size":s.percent(e,t);break;case"align":s.alt(e,t,["start",um,"end","left","right"])}}),/:/,/\s/),t.region=s.get("region",null),t.vertical=s.get("vertical","");let r=s.get("line","auto");"auto"===r&&-1===cm.line&&(r=-1),t.line=r,t.lineAlign=s.get("lineAlign","start"),t.snapToLines=s.get("snapToLines",!0),t.size=s.get("size",100),t.align=s.get("align",um);let n=s.get("position","auto");"auto"===n&&50===cm.position&&(n="start"===t.align||"left"===t.align?0:"end"===t.align||"right"===t.align?100:50),t.position=n}(e,t)}function mm(e){return e.replace(/<br(?: \/)?>/gi,"\n")}class pm{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new om,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){const t=this;function i(){let e=t.buffer,i=0;for(e=mm(e);i<e.length&&"\r"!==e[i]&&"\n"!==e[i];)++i;const s=e.slice(0,i);return"\r"===e[i]&&++i,"\n"===e[i]&&++i,t.buffer=e.slice(i),s}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{let e="";if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;e=i();const s=e.match(/^()?WEBVTT([ \t].*)?$/);if(null==s||!s[0])throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let s=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(s?s=!1:e=i(),t.state){case"HEADER":/:/.test(e)?hm(e,(function(e,t){}),/:/):e||(t.state="ID");continue;case"NOTE":e||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(e)){t.state="NOTE";break}if(!e)continue;if(t.cue=new am(0,0,""),t.state="CUE",-1===e.indexOf("--\x3e")){t.cue.id=e;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{fm(e,t.cue,t.regionList)}catch(e){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const i=-1!==e.indexOf("--\x3e");if(!e||i&&(s=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(null===t.cue)continue;t.cue.text&&(t.cue.text+="\n"),t.cue.text+=e}continue;case"BADCUE":e||(t.state="ID")}}}catch(e){"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this}flush(){const e=this;try{if((e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state||"BADWEBVTT"===e.state)throw new Error("Malformed WebVTT signature.")}catch(t){e.onparsingerror&&e.onparsingerror(t)}return e.onflush&&e.onflush(),this}}const gm=/\r\n|\n\r|\n|\r/g,ym=function(e,t,i=0){return e.slice(i,i+t.length)===t};function _m(e,t,i){return Lf(e.toString())+Lf(t.toString())+Lf(i)}function vm(e,t,i,s,r,n,a){const o=new pm,l=ro(new Uint8Array(e)).trim().replace(gm,"\n").split("\n"),d=[],h=t?function(e,t=1){return du(e,9e4,1/t)}(t.baseTime,t.timescale):0;let c,u="00:00.000",f=0,m=0,p=!0;o.oncue=function(e){const n=i[s];let a=i.ccOffset;const o=(f-h)/9e4;if(null!=n&&n.new&&(void 0!==m?a=i.ccOffset=n.start:function(e,t,i){let s=e[t],r=e[s.prevCC];if(!r||!r.new&&s.new)return e.ccOffset=e.presentationOffset=s.start,void(s.new=!1);for(;null!=(n=r)&&n.new;){var n;e.ccOffset+=s.start-r.start,s.new=!1,s=r,r=e[s.prevCC]}e.presentationOffset=i}(i,s,o)),o){if(!t)return void(c=new Error("Missing initPTS for VTT MPEGTS"));a=o-i.presentationOffset}const l=e.endTime-e.startTime,u=gu(9e4*(e.startTime+a-m),9e4*r)/9e4;e.startTime=Math.max(u,0),e.endTime=Math.max(u+l,0);const p=e.text.trim();e.text=decodeURIComponent(encodeURIComponent(p)),e.id||(e.id=_m(e.startTime,e.endTime,p)),e.endTime>0&&d.push(e)},o.onparsingerror=function(e){c=e},o.onflush=function(){c?a(c):n(d)},l.forEach((e=>{if(p){if(ym(e,"X-TIMESTAMP-MAP=")){p=!1,e.slice(16).split(",").forEach((e=>{ym(e,"LOCAL:")?u=e.slice(6):ym(e,"MPEGTS:")&&(f=parseInt(e.slice(7)))}));try{m=function(e){let t=parseInt(e.slice(-3));const i=parseInt(e.slice(-6,-4)),s=parseInt(e.slice(-9,-7)),r=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!(Aa(t)&&Aa(i)&&Aa(s)&&Aa(r)))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*i,t+=6e4*s,t+=36e5*r,t}(u)/1e3}catch(e){c=e}return}""===e&&(p=!1)}o.parse(e+"\n")})),o.flush()}const bm="stpp.ttml.im1t",wm=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Tm=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Mm={left:"start",center:"center",right:"end",start:"start",end:"end"};function Sm(e,t,i,s){const r=Ro(new Uint8Array(e),["mdat"]);if(0===r.length)return void s(new Error("Could not parse IMSC1 mdat"));const n=r.map((e=>ro(e))),a=function(e,t,i=1,s=!1){return du(e,t,1/i,s)}(t.baseTime,1,t.timescale);
2try{n.forEach((e=>i(function(e,t){const i=(new DOMParser).parseFromString(e,"text/xml"),s=i.getElementsByTagName("tt")[0];if(!s)throw new Error("Invalid ttml");const r={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},n=Object.keys(r).reduce(((e,t)=>(e[t]=s.getAttribute(`ttp:${t}`)||r[t],e)),{}),a="preserve"!==s.getAttribute("xml:space"),o=km(Lm(s,"styling","style")),l=km(Lm(s,"layout","region")),d=Lm(s,"body","[begin]");return[].map.call(d,(e=>{const i=Em(e,a);if(!i||!e.hasAttribute("begin"))return null;const s=Am(e.getAttribute("begin"),n),r=Am(e.getAttribute("dur"),n);let d=Am(e.getAttribute("end"),n);if(null===s)throw xm(e);if(null===d){if(null===r)throw xm(e);d=s+r}const h=new am(s-t,d-t,i);h.id=_m(h.startTime,h.endTime,h.text);const c=function(e,t,i){const s="http://www.w3.org/ns/ttml#styling";let r=null;const n=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],a=null!=e&&e.hasAttribute("style")?e.getAttribute("style"):null;a&&i.hasOwnProperty(a)&&(r=i[a]);return n.reduce(((i,n)=>{const a=Dm(t,s,n)||Dm(e,s,n)||Dm(r,s,n);return a&&(i[n]=a),i}),{})}(l[e.getAttribute("region")],o[e.getAttribute("style")],o),{textAlign:u}=c;if(u){const e=Mm[u];e&&(h.lineAlign=e),h.align=u}return za(h,c),h})).filter((e=>null!==e))}(e,a))))}catch(e){s(e)}}function Lm(e,t,i){const s=e.getElementsByTagName(t)[0];return s?[].slice.call(s.querySelectorAll(i)):[]}function km(e){return e.reduce(((e,t)=>{const i=t.getAttribute("xml:id");return i&&(e[i]=t),e}),{})}function Em(e,t){return[].slice.call(e.childNodes).reduce(((e,i,s)=>{var r;return"br"===i.nodeName&&s?e+"\n":null!=(r=i.childNodes)&&r.length?Em(i,t):t?e+i.textContent.trim().replace(/\s+/g," "):e+i.textContent}),"")}function Dm(e,t,i){return e&&e.hasAttributeNS(t,i)?e.getAttributeNS(t,i):null}function xm(e){return new Error(`Could not parse ttml timestamp ${e}`)}function Am(e,t){if(!e)return null;let i=lm(e);return null===i&&(wm.test(e)?i=function(e,t){const i=wm.exec(e),s=(0|i[4])+(0|i[5])/t.subFrameRate;return 3600*(0|i[1])+60*(0|i[2])+(0|i[3])+s/t.frameRate}(e,t):Tm.test(e)&&(i=function(e,t){const i=Tm.exec(e),s=Number(i[1]);switch(i[2]){case"h":return 3600*s;case"m":return 60*s;case"ms":return 1e3*s;case"f":return s/t.frameRate;case"t":return s/t.tickRate}return s}(e,t))),i}class Pm{constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,i){(null===this.startTime||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=i,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}function Cm(e){return e.characteristics&&/transcribes-spoken-dialog/gi.test(e.characteristics)&&/describes-music-and-sound/gi.test(e.characteristics)?"captions":"subtitles"}function Im(e,t){return!!e&&e.kind===Cm(t)&&Pu(t,e)}const Rm=/\s/,Om={newCue(e,t,i,s){const r=[];let n,a,o,l,d;const h=self.VTTCue||self.TextTrackCue;for(let u=0;u<s.rows.length;u++)if(n=s.rows[u],o=!0,l=0,d="",!n.isEmpty()){var c;for(let e=0;e<n.chars.length;e++)Rm.test(n.chars[e].uchar)&&o?l++:(d+=n.chars[e].uchar,o=!1);n.cueStartTime=t,t===i&&(i+=1e-4),l>=16?l--:l++;const s=mm(d.trim()),f=_m(t,i,s);null!=e&&null!=(c=e.cues)&&c.getCueById(f)||(a=new h(t,i,s),a.id=f,a.line=u+1,a.align="left",a.position=10+Math.min(80,10*Math.floor(8*l/32)),r.push(a))}return e&&r.length&&(r.sort(((e,t)=>"auto"===e.line||"auto"===t.line?0:e.line>8&&t.line>8?t.line-e.line:e.line-t.line)),r.forEach((t=>wf(e,t)))),r}};const Ym=/(\d+)-(\d+)\/(\d+)/;class Fm{constructor(e){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=e.fetchSetup||$m,this.controller=new self.AbortController,this.stats=new go}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var e;this.abortInternal(),null!=(e=this.callbacks)&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(e,t,i){const s=this.stats;if(s.loading.start)throw new Error("Loader can only be used once.");s.loading.start=self.performance.now();const r=function(e,t){const i={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(za({},e.headers))};e.rangeEnd&&i.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1));return i}(e,this.controller.signal),n="arraybuffer"===e.responseType,a=n?"byteLength":"length",{maxTimeToFirstByteMs:o,maxLoadTimeMs:l}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=i,this.request=this.fetchSetup(e,r),self.clearTimeout(this.requestTimeout),t.timeout=o&&Aa(o)?o:l,this.requestTimeout=self.setTimeout((()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(s,e,this.response))}),t.timeout);(Mu(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then((i=>{var r;this.response=this.loader=i;const a=Math.max(self.performance.now(),s.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=l,this.requestTimeout=self.setTimeout((()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(s,e,this.response))}),l-(a-s.loading.start)),!i.ok){const{status:e,statusText:t}=i;throw new Nm(t||"fetch, bad network response",e,i)}s.loading.first=a,s.total=function(e){const t=e.get("Content-Range");if(t){const e=function(e){const t=Ym.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}(t);if(Aa(e))return e}const i=e.get("Content-Length");if(i)return parseInt(i)}(i.headers)||s.total;const o=null==(r=this.callbacks)?void 0:r.onProgress;return o&&Aa(t.highWaterMark)?this.loadProgressively(i,s,e,t.highWaterMark,o):n?i.arrayBuffer():"json"===e.responseType?i.json():i.text()})).then((i=>{var r,n;const o=this.response;if(!o)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),s.loading.end=Math.max(self.performance.now(),s.loading.first);const l=i[a];l&&(s.loaded=s.total=l);const d={url:o.url,data:i,code:o.status},h=null==(r=this.callbacks)?void 0:r.onProgress;h&&!Aa(t.highWaterMark)&&h(s,e,i,o),null==(n=this.callbacks)||n.onSuccess(d,s,e,o)})).catch((t=>{var i;if(self.clearTimeout(this.requestTimeout),s.aborted)return;const r=t&&t.code||0,n=t?t.message:null;null==(i=this.callbacks)||i.onError({code:r,text:n}
vendor: 14,556 bytes, line 2
2,e,t?t.details:null,s)}))}getCacheAge(){let e=null;if(this.response){const t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,i,s=0,r){const n=new Zh,a=e.body.getReader(),o=()=>a.read().then((a=>{if(a.done)return n.dataLength&&r(t,i,n.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const l=a.value,d=l.length;return t.loaded+=d,d<s||n.dataLength?(n.push(l),n.dataLength>=s&&r(t,i,n.flush().buffer,e)):r(t,i,l.buffer,e),o()})).catch((()=>Promise.reject()));return o()}}function $m(e,t){return new self.Request(e.url,t)}class Nm extends Error{constructor(e,t,i){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=i}}const Bm=/^age:\s*[\d.]+\s*$/im;class Hm{constructor(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new go,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,4!==e.readyState&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),null!=(e=this.callbacks)&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(e,t,i){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=i,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const i=this.loader=new self.XMLHttpRequest,s=this.stats;s.loading.first=0,s.loaded=0,s.aborted=!1;const r=this.xhrSetup;r?Promise.resolve().then((()=>{if(this.loader===i&&!this.stats.aborted)return r(i,t.url)})).catch((e=>{if(this.loader===i&&!this.stats.aborted)return i.open("GET",t.url,!0),r(i,t.url)})).then((()=>{this.loader!==i||this.stats.aborted||this.openAndSendXhr(i,t,e)})).catch((e=>{var r;null==(r=this.callbacks)||r.onError({code:i.status,text:e.message},t,i,s)})):this.openAndSendXhr(i,t,e)}openAndSendXhr(e,t,i){e.readyState||e.open("GET",t.url,!0);const s=t.headers,{maxTimeToFirstByteMs:r,maxLoadTimeMs:n}=i.loadPolicy;if(s)for(const t in s)e.setRequestHeader(t,s[t]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),i.timeout=r&&Aa(r)?r:n,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:i}=this;if(!e||!t)return;const s=t.readyState,r=this.config;if(!i.aborted&&s>=2&&(0===i.loading.first&&(i.loading.first=Math.max(self.performance.now(),i.loading.start),r.timeout!==r.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),r.timeout=r.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.loadPolicy.maxLoadTimeMs-(i.loading.first-i.loading.start)))),4===s)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const s=t.status,l="text"===t.responseType?t.responseText:null;if(s>=200&&s<300){const r=null!=l?l:t.response;if(null!=r){var n,a;i.loading.end=Math.max(self.performance.now(),i.loading.first);const o="arraybuffer"===t.responseType?r.byteLength:r.length;i.loaded=i.total=o,i.bwEstimate=8e3*i.total/(i.loading.end-i.loading.first);const l=null==(n=this.callbacks)?void 0:n.onProgress;l&&l(i,e,r,t);const d={url:t.responseURL,data:r,code:s};return void(null==(a=this.callbacks)||a.onSuccess(d,i,e,t))}}const d=r.loadPolicy.errorRetry;var o;if(zl(d,i.retry,!1,{url:e.url,data:void 0,code:s}))this.retry(d);else to.error(`${s} while loading ${e.url}`),null==(o=this.callbacks)||o.onError({code:s,text:t.statusText},e,t,i)}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry;if(zl(e,this.stats.retry,!0))this.retry(e);else{var t;to.warn(`timeout while loading ${null==(t=this.context)?void 0:t.url}`);const e=this.callbacks;e&&(this.abortInternal(),e.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:i}=this;this.retryDelay=Vl(e,i.retry),i.retry++,to.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${null==t?void 0:t.url}, retrying ${i.retry}/${e.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(e){const t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)}getCacheAge(){let e=null;if(this.loader&&Bm.test(this.loader.getAllResponseHeaders())){const t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&new RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}const jm=qa(qa({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,maxBufferSize:6e7,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,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,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:Hm,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:class extends Ka{constructor(e){super("abr",e.logger),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.rebufferNotice=-1,this.bwEstimator=void 0,this._abandonRulesCheck=e=>{var t;const{fragCurrent:i,partCurrent:s,hls:r}=this,{autoLevelEnabled:n,media:a}=r;if(!i||!a)return;const o=performance.now(),l=s?s.stats:i.stats,d=s?s.duration:i.duration,h=o-l.loading.start,c=r.minAutoLevel,u=i.level,f=this._nextAutoLevel;if(l.aborted||l.loaded&&l.loaded===l.total||u<=c)return this.clearTimer(),void(this._nextAutoLevel=-1);if(!n)return;const m=f>-1&&f!==u,p=!!e||m;if(!p&&(a.paused||!a.playbackRate||!a.readyState))return;const g=r.mainForwardBufferInfo;if(!p&&null===g)return;const y=this.bwEstimator.getEstimateTTFB(),_=Math.abs(a.playbackRate);if(h<=Math.max(y,d/(2*_)*1e3))return;const v=g?g.len/_:0,b=l.loading.first?l.loading.first-l.loading.start:-1,w=l.loaded&&b>-1,T=this.getBwEstimate(),M=r.levels,S=M[u],L=Math.max(l.loaded,Math.round(d*(i.bitrate||S.averageBitrate)/8));let k=w?h-b:h;k<1&&w&&(k=Math.min(h,8*l.loaded/T));const E=w?1e3*l.loaded/k:0,D=y/1e3,x=E?(L-l.loaded)/E:8*L/T+D;if(x<=v)return;const A=E?8*E:T,P=!0===(null==(t=(null==e?void 0:e.details)||this.hls.latestLevelDetails)?void 0:t.live),C=this.hls.config.abrBandWidthUpFactor;let I,R=Number.POSITIVE_INFINITY;for(I=u-1;I>c;I--){const e=M[I].maxBitrate,t=!M[I].details||P;if(R=this.getTimeToLoadFrag(D,A,d*e,t),R<Math.min(v,d+D))break}if(R>=x)return;if(R>10*d)return;w?this.bwEstimator.sample(h-Math.min(y,b),l.loaded):this.bwEstimator.sampleTTFB(h);const O=M[I].maxBitrate;this.getBwEstimate()*C>O&&this.resetEstimator(O);const Y=this.findBestLevel(O,c,I,0,v,1,1);Y>-1&&(I=Y),this.warn(`Fragment ${i.sn}${s?" part "+s.index:""} of level ${u} is loading too slowly;\n Fragment duration: ${i.duration.toFixed(3)}\n Time to underbuffer: ${v.toFixed(3)} s\n Estimated load time for current fragment: ${x.toFixed(3)} s\n Estimated load time for down switch fragment: ${R.toFixed(3)} s\n TTFB estimate: ${0|b} ms\n Current BW estimate: ${Aa(T)?0|T:"Unknown"} bps\n New BW estimate: ${0|this.getBwEstimate()} bps\n Switching to level ${I} @ ${0|O} bps`),r.nextLoadLevel=r.nextAutoLevel=I,this.clearTimer();const F=()=>{if(this.clearTimer(),this.fragCurrent===i&&this.hls.loadLevel===I&&I>0){const e=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${I>0?"and switching down":""}\n Fragment duration: ${i.duration.toFixed(3)} s\n Time to underbuffer: ${e.toFixed(3)} s`),i.abortRequests(),this.fragCurrent=this.partCurrent=null,I>c){let t=this.findBestLevel(this.hls.levels[c].bitrate,c,I,0,e,1,1);-1===t&&(t=c),this.hls.nextLoadLevel=this.hls.nextAutoLevel=t,this.resetEstimator(this.hls.levels[t].bitrate)}}};m||x>2*R?F():this.timer=self.setInterval(F,1e3*R),r.trigger(Oa.FRAG_LOAD_EMERGENCY_ABORTED,{frag:i,part:s,stats:l})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(this.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const e=this.hls.config;return new Va(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Oa.FRAG_LOADING,this.onFragLoading,this),e.on(Oa.FRAG_LOADED,this.onFragLoaded,this),e.on(Oa.FRAG_BUFFERED,this.onFragBuffered,this),e.on(Oa.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(Oa.LEVEL_LOADED,this.onLevelLoaded,this),e.on(Oa.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(Oa.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(Oa.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Oa.FRAG_LOADING,this.onFragLoading,this),e.off(Oa.FRAG_LOADED,this.onFragLoaded,this),e.off(Oa.FRAG_BUFFERED,this.onFragBuffered,this),e.off(Oa.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(Oa.LEVEL_LOADED,this.onLevelLoaded,this),e.off(Oa.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(Oa.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(Oa.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(e,t){const i=t.frag;if(!this.ignoreFragment(i)){var s;if(!i.bitrateTest)this.fragCurrent=i,this.partCurrent=null!=(s=t.part)?s:null;this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case Ra.BUFFER_ADD_CODEC_ERROR:case Ra.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case Ra.FRAG_LOAD_TIMEOUT:{const e=t.frag,{fragCurrent:i,partCurrent:s}=this;if(e&&i&&e.sn===i.sn&&e.level===i.level){const t=performance.now(),i=s?s.stats:e.stats,r=t-i.loading.start,n=i.loading.first?i.loading.first-i.loading.start:-1;if(i.loaded&&n>-1){const e=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(r-Math.min(e,n),i.loaded)}else this.bwEstimator.sampleTTFB(r)}break}}}getTimeToLoadFrag(e,t,i,s){return e+i/t+(s?e+this.lastLevelLoadSec:0)}onLevelLoaded(e,t){const i=this.hls.config,{loading:s}=t.stats,r=s.end-s.first;Aa(r)&&(this.lastLevelLoadSec=r/1e3),t.details.live?this.bwEstimator.update(i.abrEwmaSlowLive,i.abrEwmaFastLive):this.bwEstimator.update(i.abrEwmaSlowVoD,i.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(t.levelInfo)}onFragLoaded(e,{frag:t,part:i}){const s=i?i.stats:t.stats;if(t.type===Ba&&this.bwEstimator.sampleTTFB(s.loading.first-s.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const e=i?i.duration:t.duration,r=this.hls.levels[t.level],n=(r.loaded?r.loaded.bytes:0)+s.loaded,a=(r.loaded?r.loaded.duration:0)+e;r.loaded={bytes:n,duration:a},r.realBitrate=Math.round(8*n/a)}if(t.bitrateTest){const e={stats:s,frag:t,part:i,id:t.type};this.onFragBuffered(Oa.FRAG_BUFFERED,e),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:i,part:s}=t,r=null!=s&&s.stats.loaded?s.stats:i.stats;if(r.aborted)return;if(this.ignoreFragment(i))return;const n=r.parsing.end-r.loading.start-Math.min(r.loading.first-r.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(n,r.loaded),r.bwEstimate=this.getBwEstimate(),i.bitrateTest?this.bitrateTestDelay=n/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==Ba||"initSegment"===e.sn}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,i=this.getBwEstimate(),s=this.hls.config.maxStarvationDelay,r=this.findBestLevel(i,t,e,0,s,1,1);if(r>-1)return r;const n=this.hls.firstLevel,a=Math.min(Math.max(n,t),e);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${n} clamped to ${a}`),a}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,t=this.bwEstimator.canEstimate(),i=this.lastLoadedFragLevel>-1;if(!(-1===e||t&&i&&this.nextAutoLevelKey!==this.getAutoLevelKey()))return e;const s=t&&i?this.getNextABRAutoLevel():this.firstAutoLevel;if(-1!==e){const t=this.hls.levels;if(t.length>Math.max(e,s)&&t[e].loadError<=t[s].loadError)return e}return this._nextAutoLevel=s,this.nextAutoLevelKey=this.getAutoLevelKey(),s}getAutoLevelKey(){return`${this.getBwEstimate()}
2_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:i}=this;if(i.levels.length<=1)return i.loadLevel;const{maxAutoLevel:s,config:r,minAutoLevel:n}=i,a=t?t.duration:e?e.duration:0,o=this.getBwEstimate(),l=this.getStarvationDelay();let d=r.abrBandWidthFactor,h=r.abrBandWidthUpFactor;if(l){const e=this.findBestLevel(o,n,s,l,0,d,h);if(e>=0)return this.rebufferNotice=-1,e}let c=a?Math.min(a,r.maxStarvationDelay):r.maxStarvationDelay;if(!l){const e=this.bitrateTestDelay;if(e){c=(a?Math.min(a,r.maxLoadingDelay):r.maxLoadingDelay)-e,this.info(`bitrate test took ${Math.round(1e3*e)}ms, set first fragment max fetchDuration to ${Math.round(1e3*c)} ms`),d=h=1}}const u=this.findBestLevel(o,n,s,l,c,d,h);if(this.rebufferNotice!==u&&(this.rebufferNotice=u,this.info(`${l?"rebuffering expected":"buffer is empty"}, optimal quality level ${u}`)),u>-1)return u;const f=i.levels[n],m=i.loadLevelObj;return m&&(null==f?void 0:f.bitrate)<m.bitrate?n:i.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const i=t&&0!==t.playbackRate?Math.abs(t.playbackRate):1,s=e.mainForwardBufferInfo;return(s?s.len:0)/i}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,i,s,r,n,a){var o;const l=s+r,d=this.lastLoadedFragLevel,h=-1===d?this.hls.firstLevel:d,{fragCurrent:c,partCurrent:u}=this,{levels:f,allAudioTracks:m,loadLevel:p,config:g}=this.hls;if(1===f.length)return 0;const y=f[h],_=!(null==(o=this.hls.latestLevelDetails)||!o.live),v=-1===p||-1===d;let b,w="SDR",T=(null==y?void 0:y.frameRate)||0;const{audioPreference:M,videoPreference:S}=g,L=this.audioTracksByGroup||(this.audioTracksByGroup=Al(m));let k=-1;if(v){if(-1!==this.firstSelection)return this.firstSelection;const s=this.codecTiers||(this.codecTiers=function(e,t,i,s){return e.slice(i,s+1).reduce(((e,i,s)=>{if(!i.codecSet)return e;const r=i.audioGroups;let n=e[i.codecSet];n||(e[i.codecSet]=n={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:s,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!r,fragmentError:0}),n.minBitrate=Math.min(n.minBitrate,i.bitrate);const a=Math.min(i.height,i.width);return n.minHeight=Math.min(n.minHeight,a),n.minFramerate=Math.min(n.minFramerate,i.frameRate),n.minIndex=Math.min(n.minIndex,s),n.maxScore=Math.max(n.maxScore,i.score),n.fragmentError+=i.fragmentError,n.videoRanges[i.videoRange]=(n.videoRanges[i.videoRange]||0)+1,r&&r.forEach((e=>{if(!e)return;const i=t.groups[e];i&&(n.hasDefaultAudio=n.hasDefaultAudio||t.hasDefaultAudio?i.hasDefault:i.hasAutoSelect||!t.hasDefaultAudio&&!t.hasAutoSelectAudio,Object.keys(i.channels).forEach((e=>{n.channels[e]=(n.channels[e]||0)+i.channels[e]})))})),e}),{})}(f,L,t,i)),r=function(e,t,i,s,r){const n=Object.keys(e),a=null==s?void 0:s.channels,o=null==s?void 0:s.audioCodec,l=null==r?void 0:r.videoCodec,d=a&&2===parseInt(a);let h=!1,c=!1,u=1/0,f=1/0,m=1/0,p=1/0,g=0,y=[];const{preferHDR:_,allowedVideoRanges:v}=El(t,r);for(let t=n.length;t--;){const i=e[n[t]];h||(h=i.channels[2]>0),u=Math.min(u,i.minHeight),f=Math.min(f,i.minFramerate),m=Math.min(m,i.minBitrate),v.filter((e=>i.videoRanges[e]>0)).length>0&&(c=!0)}u=Aa(u)?u:0,f=Aa(f)?f:0;const b=Math.max(1080,u),w=Math.max(30,f);m=Aa(m)?m:i,i=Math.max(m,i),c||(t=void 0);const T=n.length>1;return{codecSet:n.reduce(((t,s)=>{const r=e[s];if(s===t)return t;if(y=c?v.filter((e=>r.videoRanges[e]>0)):[],T){if(r.minBitrate>i)return xl(s,`min bitrate of ${r.minBitrate} > current estimate of ${i}`),t;if(!r.hasDefaultAudio)return xl(s,"no renditions with default or auto-select sound found"),t;if(o&&s.indexOf(o.substring(0,4))%5!=0)return xl(s,`audio codec preference "${o}" not found`),t;if(a&&!d){if(!r.channels[a])return xl(s,`no renditions with ${a} channel sound found (channels options: ${Object.keys(r.channels)})`),t}else if((!o||d)&&h&&0===r.channels[2])return xl(s,"no renditions with stereo sound found"),t;if(r.minHeight>b)return xl(s,`min resolution of ${r.minHeight} > maximum of ${b}`),t;if(r.minFramerate>w)return xl(s,`min framerate of ${r.minFramerate} > maximum of ${w}`),t;if(!y.some((e=>r.videoRanges[e]>0)))return xl(s,`no variants with VIDEO-RANGE of ${Dl(y)} found`),t;if(l&&s.indexOf(l.substring(0,4))%5!=0)return xl(s,`video codec preference "${l}" not found`),t;if(r.maxScore<g)return xl(s,`max score of ${r.maxScore} < selected max of ${g}`),t}return t&&(nl(s)>=nl(t)||r.fragmentError>e[t].fragmentError)?t:(p=r.minIndex,g=r.maxScore,s)}),void 0),videoRanges:y,preferHDR:_,minFramerate:f,minBitrate:m,minIndex:p}}(s,w,e,M,S),{codecSet:n,videoRanges:a,minFramerate:o,minBitrate:l,minIndex:d,preferHDR:h}=r;k=d,b=n,w=h?a[a.length-1]:a[0],T=o,e=Math.max(e,l),this.log(`picked start tier ${Dl(r)}`)}else b=null==y?void 0:y.codecSet,w=null==y?void 0:y.videoRange;const E=u?u.duration:c?c.duration:0,D=this.bwEstimator.getEstimateTTFB()/1e3,x=[];for(let o=i;o>=t;o--){var A;const t=f[o],c=o>h;if(!t)continue;
2if(g.useMediaCapabilities&&!t.supportedResult&&!t.supportedPromise){const i=navigator.mediaCapabilities;"function"==typeof(null==i?void 0:i.decodingInfo)&&(gl(t,L,w,T,e,M)||zo(t.videoCodec))?(t.supportedPromise=yl(t,L,i),t.supportedPromise.then((e=>{if(!this.hls)return;t.supportedResult=e;const i=this.hls.levels,s=i.indexOf(t);e.error?this.warn(`MediaCapabilities decodingInfo error: "${e.error}" for level ${s} ${Dl(e)}`):e.supported||(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${s} ${Dl(e)}`),s>-1&&i.length>1&&(this.log(`Removing unsupported level ${s}`),this.hls.removeLevel(s),-1===this.hls.loadLevel&&(this.hls.nextLoadLevel=0)))}))):t.supportedResult=fl}if((b&&t.codecSet!==b||w&&t.videoRange!==w||c&&T>t.frameRate||!c&&T>0&&T<t.frameRate||t.supportedResult&&(null==(A=t.supportedResult.decodingInfoResults)||!A[0].smooth))&&(!v||o!==k)){x.push(o);continue}const m=t.details,y=(u?null==m?void 0:m.partTarget:null==m?void 0:m.averagetargetduration)||E;let S;S=c?a*e:n*e;const P=E&&s>=2*E&&0===r?t.averageBitrate:t.maxBitrate,C=this.getTimeToLoadFrag(D,S,P*y,void 0===m);if(S>=P&&(o===d||0===t.loadError&&0===t.fragmentError)&&(C<=D||!Aa(C)||_&&!this.bitrateTestDelay||C<l)){const e=this.forcedAutoLevel;return o===p||-1!==e&&e===p||(x.length&&this.trace(`Skipped level(s) ${x.join(",")} of ${i} max with CODECS and VIDEO-RANGE:"${f[x[0]].codecs}" ${f[x[0]].videoRange}; not compatible with "${b}" ${w}`),this.info(`switch candidate:${h}->${o} adjustedbw(${Math.round(S)})-bitrate=${Math.round(S-P)} ttfb:${D.toFixed(1)} avgDuration:${y.toFixed(1)} maxFetchDuration:${l.toFixed(1)} fetchDuration:${C.toFixed(1)} firstSelection:${v} codecSet:${t.codecSet} videoRange:${t.videoRange} hls.loadLevel:${p}`)),v&&(this.firstSelection=o),o}}return-1}set nextAutoLevel(e){const t=this.deriveNextAutoLevel(e);this._nextAutoLevel!==t&&(this.nextAutoLevelKey="",this._nextAutoLevel=t)}deriveNextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:i}=this.hls;return Math.min(Math.max(e,i),t)}}
vendor: 4,321 bytes, line 2
2,bufferController:class extends Ka{constructor(e,t){var i;super("buffer-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=e=>{var t;this.hls&&"open"===(null==(t=this.mediaSource)?void 0:t.readyState)&&this.hls.pauseBuffering()},this._onStartStreaming=e=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=e=>{const{media:t,mediaSource:i}=this;e&&this.log("Media source opened"),t&&i&&(i.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(Oa.MEDIA_ATTACHED,{media:t,mediaSource:i}),null!==this.mediaSource&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:e,_objectUrl:t}=this;e!==t&&this.error(`Media element src was set while attaching MediaSource (${t} > ${e})`)},this.hls=e,this.fragmentTracker=t,this.appendSource=(i=io(e.config.preferManagedMediaSource),"undefined"!=typeof self&&i===self.ManagedMediaSource),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){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}registerListeners(){const{hls:e}=this;e.on(Oa.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(Oa.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Oa.MANIFEST_PARSED,this.onManifestParsed,this),e.on(Oa.BUFFER_RESET,this.onBufferReset,this),e.on(Oa.BUFFER_APPENDING,this.onBufferAppending,this),e.on(Oa.BUFFER_CODECS,this.onBufferCodecs,this),e.on(Oa.BUFFER_EOS,this.onBufferEos,this),e.on(Oa.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(Oa.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(Oa.FRAG_PARSED,this.onFragParsed,this),e.on(Oa.FRAG_CHANGED,this.onFragChanged,this),e.on(Oa.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(Oa.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(Oa.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Oa.MANIFEST_PARSED,this.onManifestParsed,this),e.off(Oa.BUFFER_RESET,this.onBufferReset,this),e.off(Oa.BUFFER_APPENDING,this.onBufferAppending,this),e.off(Oa.BUFFER_CODECS,this.onBufferCodecs,this),e.off(Oa.BUFFER_EOS,this.onBufferEos,this),e.off(Oa.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(Oa.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(Oa.FRAG_PARSED,this.onFragParsed,this),e.off(Oa.FRAG_CHANGED,this.onFragChanged,this),e.off(Oa.ERROR,this.onError,this)}transferMedia(){const{media:e,mediaSource:t}=this;if(!e)return null;const i={};if(this.operationQueue){const e=this.isUpdating();e||this.operationQueue.removeBlockers();const t=this.isQueued();(e||t)&&this.warn(`Transfering MediaSource with${t?" operations in queue":""}${e?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const s=this.transferData;return!this.sourceBufferCount&&s&&s.mediaSource===t?za(i,s.tracks):this.sourceBuffers.forEach((e=>{const[t]=e;t&&(i[t]=za({},this.tracks[t]),this.removeBuffer(t)),e[0]=e[1]=null})),{media:e,mediaSource:t,tracks:i}}initTracks(){this.sourceBuffers=[[null,null],[null,null]],this.tracks={},this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){var i;let s=2;(t.audio&&!t.video||!t.altAudio)&&(s=1),this.bufferCodecEventsTotal=s,this.log(`${s}
2 bufferCodec event(s) expected.`),null!=(i=this.transferData)&&i.mediaSource&&this.sourceBufferCount&&s&&this.bufferCreated()}onMediaAttaching(e,t){const i=this.media=t.media,s=io(this.appendSource);if(this.transferData=this.overrides=void 0,i&&s){const e=!!t.mediaSource;(e||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const r=this.mediaSource=t.mediaSource||new s;if(this.assignMediaSource(r),e)this._objectUrl=i.src,this.attachTransferred();else{const e=this._objectUrl=self.URL.createObjectURL(r);if(this.appendSource)try{i.removeAttribute("src");const t=self.ManagedMediaSource;i.disableRemotePlayback=i.disableRemotePlayback||t&&r instanceof t,Yu(i),function(e,t){const i=self.document.createElement("source");i.type="video/mp4",i.src=t,e.appendChild(i)}(i,e),i.load()}catch(t){i.src=e}else i.src=e}i.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(e){var t,i;this.log(`${(null==(t=this.transferData)?void 0:t.mediaSource)===e?"transferred":"created"} media source: ${null==(i=e.constructor)?void 0:i.name}`),e.addEventListener("sourceopen",this._onMediaSourceOpen),e.addEventListener("sourceended",this._onMediaSourceEnded),e.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(e.addEventListener("startstreaming",this._onStartStreaming),e.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){const e=this.media,t=this.transferData;if(!t||!e)return;const i=this.tracks,s=t.tracks,r=s?Object.keys(s):null,n=r?r.length:0,a=()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()};if(s&&r&&n){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})\nrequired tracks: ${Dl(i,((e,t)=>"initSegment"===e?void 0:t))};\ntransfer tracks: ${Dl(s,((e,t)=>"initSegment"===e?void 0:t))}}`),!so(s,i)){t.mediaSource=null,t.tracks=void 0;const r=e.currentTime,n=this.details,a=Math.max(r,(null==n?void 0:n.fragments[0].start)||0);return a-r>1?void this.log(`attachTransferred: waiting for playback to reach new tracks start time ${r} -> ${a}`):(this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(s)}"->"${Object.keys(i)}") start time: ${a} currentTime: ${r}`),this.onMediaDetaching(Oa.MEDIA_DETACHING,{}),this.onMediaAttaching(Oa.MEDIA_ATTACHING,t),void(e.currentTime=a))}this.transferData=void 0,r.forEach((e=>{const t=e,i=s[t];if(i){const e=i.buffer;if(e){const s=this.fragmentTracker,r=i.id;if(s.hasFragments(r)||s.hasParts(r)){const i=Md.getBuffered(e);s.detectEvictedFragments(t,i,r,null,!0)}const n=Fu(t),a=[t,e];this.sourceBuffers[n]=a,e.updating&&this.operationQueue&&this.operationQueue.prependBlocker(t),this.trackSourceBuffer(t,i)}}})),a(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),a()}get mediaSourceOpenOrEnded(){var e;const t=null==(e=this.mediaSource)?void 0:e.readyState;return"open"===t||"ended"===t}onMediaDetaching(e,t){const i=!!t.transferMedia;this.transferData=this.overrides=void 0;const{media:s,mediaSource:r,_objectUrl:n}=this;if(r){if(this.log("media source "+(i?"transferring":"detaching")),i)this.sourceBuffers.forEach((([e])=>{e&&this.removeBuffer(e)})),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const e="open"===r.readyState;try{const t=r.sourceBuffers;for(let i=t.length;i--;)e&&t[i].abort(),r.removeSourceBuffer(t[i]);e&&r.endOfStream()}catch(e){this.warn(`onMediaDetaching: ${e.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}r.removeEventListener("sourceopen",this._onMediaSourceOpen),r.removeEventListener("sourceended",this._onMediaSourceEnded),r.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(r.removeEventListener("startstreaming",this._onStartStreaming),r.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}s&&(s.removeEventListener("emptied",this._onMediaEmptied),i||(n&&self.URL.revokeObjectURL(n),this.mediaSrc===n?(s.removeAttribute("src"),this.appendSource&&Yu(s),s.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(Oa.MEDIA_DETACHED,t)}
vendor: 5,530 bytes, line 2
2onBufferReset(){this.sourceBuffers.forEach((([e])=>{e&&this.resetBuffer(e)})),this.initTracks()}resetBuffer(e){var t;const i=null==(t=this.tracks[e])?void 0:t.buffer;if(this.removeBuffer(e),i)try{var s;null!=(s=this.mediaSource)&&s.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(i)}catch(t){this.warn(`onBufferReset ${e}`,t)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[Fu(e)]=[null,null];const t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new Cu(this.tracks)}onBufferCodecs(e,t){const i=this.tracks,s=Object.keys(t);this.log(`BUFFER_CODECS: "${s}" (current SB count ${this.sourceBufferCount})`);const r="audiovideo"in t&&(i.audio||i.video)||i.audiovideo&&("audio"in t||"video"in t),n=!r&&this.sourceBufferCount&&this.media&&s.some((e=>!i[e]));r||n?this.warn(`Unsupported transition between "${Object.keys(i)}" and "${s}" SourceBuffers`):(s.forEach((e=>{var s,r,n;const a=t[e],{id:o,codec:l,levelCodec:d,container:h,metadata:c,supplemental:u}=a;let f=i[e];const m=null==(s=this.transferData)||null==(r=s.tracks)?void 0:r[e],p=null!=m&&m.buffer?m:f,g=(null==p?void 0:p.pendingCodec)||(null==p?void 0:p.codec),y=null==p?void 0:p.levelCodec;f||(f=i[e]={buffer:void 0,listeners:[],codec:l,supplemental:u,container:h,levelCodec:d,metadata:c,id:o});const _=dl(g,y),v=null==_?void 0:_.replace(Iu,"$1");let b=dl(l,d);const w=null==(n=b)?void 0:n.replace(Iu,"$1");b&&_&&v!==w&&("audio"===e.slice(0,5)&&(b=ll(b,this.appendSource)),this.log(`switching codec ${g} to ${b}`),b!==(f.pendingCodec||f.codec)&&(f.pendingCodec=b),f.container=h,this.appendChangeType(e,h,b))})),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),this.sourceBufferCount||this.mediaSourceOpenOrEnded&&this.checkPendingTracks())}get sourceBufferTracks(){return Object.keys(this.tracks).reduce(((e,t)=>{const i=this.tracks[t];return e[t]={id:i.id,container:i.container,codec:i.codec,levelCodec:i.levelCodec},e}),{})}appendChangeType(e,t,i){const s=`${t};codecs=${i}`,r={label:`change-type=${s}`,execute:()=>{const r=this.tracks[e];if(r){const n=r.buffer;null!=n&&n.changeType&&(this.log(`changing ${e} sourceBuffer type to ${s}`),n.changeType(s),r.codec=i,r.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:t=>{this.warn(`Failed to change ${e} SourceBuffer type`,t)}};this.append(r,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;const i=e.start,s=i+.05*e.duration;if(!0===(null==(t=this.fragmentTracker.getAppendedFrag(i,Ba))?void 0:t.gap))return;const r={label:"block-audio",execute:()=>{var e;const t=this.tracks.video;(this.lastVideoAppendEnd>s||null!=t&&t.buffer&&Md.isBuffered(t.buffer,s)||!0===(null==(e=this.fragmentTracker.getAppendedFrag(s,Ba))?void 0:e.gap))&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:e=>{this.warn("Error executing block-audio operation",e)}};this.blockedAudioAppend={op:r,frag:e},this.append(r,"audio",!0)}unblockAudio(){const{blockedAudioAppend:e,operationQueue:t}=this;e&&t&&(this.blockedAudioAppend=null,t.unblockAudio(e.op))}onBufferAppending(e,t){const{tracks:i}=this,{data:s,type:r,parent:n,frag:a,part:o,chunkMeta:l}=t,d=l.buffering[r],h=a.sn,c=self.performance.now();d.start=c;const u=a.stats.buffering,f=o?o.stats.buffering:null;0===u.start&&(u.start=c),f&&0===f.start&&(f.start=c);const m=i.audio;let p=!1;"audio"===r&&"audio/mpeg"===(null==m?void 0:m.container)&&(p=!this.lastMpegAudioChunk||1===l.id||this.lastMpegAudioChunk.sn!==l.sn,this.lastMpegAudioChunk=l);const g=this.tracks.video,y=null==g?void 0:g.buffer;if(y&&"initSegment"!==h){const e=o||a,t=this.blockedAudioAppend;if("audio"!==r||"main"===n||this.blockedAudioAppend){if("video"===r){const i=e.end;if(t){const e=t.frag.start;(i>e||i<this.lastVideoAppendEnd||Md.isBuffered(y,e))&&this.unblockAudio()}this.lastVideoAppendEnd=i}}else{const t=e.start+.05*e.duration,i=y.buffered,s=this.currentOp("video");i.length||s?!s&&!Md.isBuffered(y,t)&&this.lastVideoAppendEnd<t&&this.blockAudio(e):this.blockAudio(e)}}const _=(o||a).start,v={label:`append-${r}`,execute:()=>{if(d.executeStart=self.performance.now(),p){const e=this.tracks[r];if(e){const t=e.buffer;if(t){const e=_-t.timestampOffset;Math.abs(e)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${_} (delta: ${e}) sn: ${h})`),t.timestampOffset=_)}}}this.appendExecutor(s,r)},onStart:()=>{},onComplete:()=>{const e=self.performance.now();d.executeEnd=d.end=e,0===u.first&&(u.first=e),f&&0===f.first&&(f.first=e);const t={};this.sourceBuffers.forEach((([e,i])=>{e&&(t[e]=Md.getBuffered(i))})),this.appendErrors[r]=0,"audio"===r||"video"===r?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(Oa.BUFFER_APPENDED,{type:r,frag:a,part:o,chunkMeta:l,parent:a.type,timeRanges:t})},onError:e=>{var t;const i={type:Ia.MEDIA_ERROR,parent:a.type,details:Ra.BUFFER_APPEND_ERROR,sourceBufferName:r,frag:a,part:o,chunkMeta:l,error:e,err:e,fatal:!1},s=null==(t=this.media)?void 0:t.error;if(e.code===DOMException.QUOTA_EXCEEDED_ERR)i.details=Ra.BUFFER_FULL_ERROR;else if(e.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!s)i.errorAction=ed(!0);else if(e.name===Ru&&0===this.sourceBufferCount)i.errorAction=ed(!0);else{const e=++this.appendErrors[r];this.warn(`Failed ${e}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${r}" sourceBuffer (${s||"no media error"}
2)`),(e>=this.hls.config.appendErrorMaxRetry||s)&&(i.fatal=!0)}this.hls.trigger(Oa.ERROR,i)}};this.append(v,r,this.isPending(this.tracks[r]))}getFlushOp(e,t,i){return this.log(`queuing "${e}" remove ${t}-${i}`),{label:"remove",execute:()=>{this.removeExecutor(e,t,i)},onStart:()=>{},onComplete:()=>{this.hls.trigger(Oa.BUFFER_FLUSHED,{type:e})},onError:s=>{this.warn(`Failed to remove ${t}-${i} from "${e}" SourceBuffer`,s)}}}onBufferFlushing(e,t){const{type:i,startOffset:s,endOffset:r}=t;i?this.append(this.getFlushOp(i,s,r),i):this.sourceBuffers.forEach((([e])=>{e&&this.append(this.getFlushOp(e,s,r),e)}))}onFragParsed(e,t){const{frag:i,part:s}=t,r=[],n=s?s.elementaryStreams:i.elementaryStreams;n[vo]?r.push("audiovideo"):(n[yo]&&r.push("audio"),n[_o]&&r.push("video"));0===r.length&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${i.type} level: ${i.level} sn: ${i.sn}`),this.blockBuffers((()=>{const e=self.performance.now();i.stats.buffering.end=e,s&&(s.stats.buffering.end=e);const t=s?s.stats:i.stats;this.hls.trigger(Oa.FRAG_BUFFERED,{frag:i,part:s,stats:t,id:i.type})}),r).catch((e=>{this.warn(`Fragment buffered callback ${e}`),this.stepOperationQueue(this.sourceBufferTypes)}))}onFragChanged(e,t){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some((([e])=>{var t,i;return e&&(!(null!=(t=this.tracks[e])&&t.ended)||(null==(i=this.tracks[e])?void 0:i.ending))}))}onBufferEos(e,t){var i;this.sourceBuffers.forEach((([e])=>{if(e){const i=this.tracks[e];t.type&&t.type!==e||(i.ending=!0,i.ended||(i.ended=!0,this.log(`${e} buffer reached EOS`)))}}));const s=!1!==(null==(i=this.overrides)?void 0:i.endOfStream),r=this.sourceBufferCount>0&&!this.sourceBuffers.some((([e])=>{var t;return e&&!(null!=(t=this.tracks[e])&&t.ended)}));r&&(s?(this.log("Queueing EOS"),this.blockUntilOpen((()=>{this.tracksEnded();const{mediaSource:e}=this;e&&"open"===e.readyState?(this.log("Calling mediaSource.endOfStream()"),e.endOfStream(),this.hls.trigger(Oa.BUFFERED_TO_END,void 0)):e&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${e.readyState}`)}))):(this.tracksEnded(),this.hls.trigger(Oa.BUFFERED_TO_END,void 0)))}tracksEnded(){this.sourceBuffers.forEach((([e])=>{if(null!==e){const t=this.tracks[e];t&&(t.ending=!1)}}))}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.updateDuration())}updateDuration(){const e=this.getDurationAndRange();e&&this.blockUntilOpen((()=>this.updateMediaSource(e)))}onError(e,t){if(t.details===Ra.BUFFER_APPEND_ERROR&&t.frag){var i;const e=null==(i=t.errorAction)?void 0:i.nextAutoLevel;Aa(e)&&e!==t.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:e,details:t,media:i}=this;if(!i||null===t)return;if(!this.sourceBufferCount)return;const s=e.config,r=i.currentTime,n=t.levelTargetDuration,a=t.live&&null!==s.liveBackBufferLength?s.liveBackBufferLength:s.backBufferLength;if(Aa(a)&&a>=0){const e=Math.max(a,n),t=Math.floor(r/n)*n-e;this.flushBackBuffer(r,n,t)}if(Aa(s.frontBufferFlushThreshold)&&s.frontBufferFlushThreshold>0){const e=Math.max(s.maxBufferLength,s.frontBufferFlushThreshold),t=Math.max(e,n),i=Math.floor(r/n)*n+t;this.flushFrontBuffer(r,n,i)}}flushBackBuffer(e,t,i){this.sourceBuffers.forEach((([e,t])=>{if(t){const r=Md.getBuffered(t);if(r.length>0&&i>r.start(0)){var s;this.hls.trigger(Oa.BACK_BUFFER_REACHED,{bufferEnd:i});const t=this.tracks[e];if(null!=(s=this.details)&&s.live)this.hls.trigger(Oa.LIVE_BACK_BUFFER_REACHED,{bufferEnd:i});else if(null!=t&&t.ended)return void this.log(`Cannot flush ${e} back buffer while SourceBuffer is in ended state`);this.hls.trigger(Oa.BUFFER_FLUSHING,{startOffset:0,endOffset:i,type:e})}}}))}flushFrontBuffer(e,t,i){this.sourceBuffers.forEach((([t,s])=>{if(s){const r=Md.getBuffered(s),n=r.length;if(n<2)return;const a=r.start(n-1),o=r.end(n-1);if(i>a||e>=a&&e<=o)return;this.hls.trigger(Oa.BUFFER_FLUSHING,{startOffset:a,endOffset:1/0,type:t})}}))}getDurationAndRange(){var e;const{details:t,mediaSource:i}=this;if(!t||!this.media||"open"!==(null==i?void 0:i.readyState))return null;const s=t.edge;
vendor: 12,495 bytes, line 2
2if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&t.live&&i.setLiveSeekableRange){const e=Math.max(0,t.fragmentStart);return{duration:1/0,start:e,end:Math.max(e,s)}}return{duration:1/0}}const r=null==(e=this.overrides)?void 0:e.duration;if(r)return Aa(r)?{duration:r}:null;const n=this.media.duration;return s>(Aa(i.duration)?i.duration:0)&&s>n||!Aa(n)?{duration:s}:null}updateMediaSource({duration:e,start:t,end:i}){const s=this.mediaSource;this.media&&s&&"open"===s.readyState&&(s.duration!==e&&(Aa(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),s.duration=e),void 0!==t&&void 0!==i&&(this.log(`MediaSource duration is set to ${s.duration}. Setting seekable range to ${t}-${i}.`),s.setLiveSeekableRange(t,i)))}get tracksReady(){const e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:e,pendingTrackCount:t,tracks:i}=this;if(this.log(`checkPendingTracks (pending: ${t} codec events expected: ${e}) ${Dl(i)}`),this.tracksReady){var s;const e=null==(s=this.transferData)?void 0:s.tracks;e&&Object.keys(e).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const e={};this.sourceBuffers.forEach((([t,i])=>{if(t){const s=this.tracks[t];e[t]={buffer:i,container:s.container,codec:s.codec,supplemental:s.supplemental,levelCodec:s.levelCodec,id:s.id,metadata:s.metadata}}})),this.hls.trigger(Oa.BUFFER_CREATED,{tracks:e}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach((([e])=>{this.executeNext(e)}))}else{const e=new Error("could not create source buffer for media codec(s)");this.hls.trigger(Oa.ERROR,{type:Ia.MEDIA_ERROR,details:Ra.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:e,reason:e.message})}}createSourceBuffers(){const{tracks:e,sourceBuffers:t,mediaSource:i}=this;if(!i)throw new Error("createSourceBuffers called when mediaSource was null");for(const r in e){const n=r,a=e[n];if(this.isPending(a)){const e=this.getTrackCodec(a,n),r=`${a.container};codecs=${e}`;a.codec=e,this.log(`creating sourceBuffer(${r})${this.currentOp(n)?" Queued":""} ${Dl(a)}`);try{const e=i.addSourceBuffer(r),s=Fu(n),o=[n,e];t[s]=o,a.buffer=e}catch(e){var s;return this.error(`error while trying to add sourceBuffer: ${e.message}`),this.shiftAndExecuteNext(n),null==(s=this.operationQueue)||s.removeBlockers(),delete this.tracks[n],void this.hls.trigger(Oa.ERROR,{type:Ia.MEDIA_ERROR,details:Ra.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:e,sourceBufferName:n,mimeType:r,parent:a.id})}this.trackSourceBuffer(n,a)}}this.bufferCreated()}getTrackCodec(e,t){const i=e.supplemental;let s=e.codec;i&&("video"===t||"audiovideo"===t)&&tl(i,"video")&&(s=function(e,t){const i=[];if(e){const t=e.split(",");for(let e=0;e<t.length;e++)el(t[e],"video")||i.push(t[e])}return t&&i.push(t),i.join(",")}(s,i));const r=dl(s,e.levelCodec);return r?"audio"===t.slice(0,5)?ll(r,this.appendSource):r:""}trackSourceBuffer(e,t){const i=t.buffer;if(!i)return;const s=this.getTrackCodec(t,e);this.tracks[e]={buffer:i,codec:s,container:t.container,levelCodec:t.levelCodec,supplemental:t.supplemental,metadata:t.metadata,id:t.id,listeners:[]},this.removeBufferListeners(e),this.addBufferListener(e,"updatestart",this.onSBUpdateStart),this.addBufferListener(e,"updateend",this.onSBUpdateEnd),this.addBufferListener(e,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(e,"bufferedchange",((e,t)=>{const i=t.removedRanges;null!=i&&i.length&&this.hls.trigger(Oa.BUFFER_FLUSHED,{type:e})}))}get mediaSrc(){var e,t;const i=(null==(e=this.media)||null==(t=e.querySelector)?void 0:t.call(e,"source"))||this.media;return null==i?void 0:i.src}onSBUpdateStart(e){const t=this.currentOp(e);t&&t.onStart()}onSBUpdateEnd(e){var t;if("closed"===(null==(t=this.mediaSource)?void 0:t.readyState))return void this.resetBuffer(e);const i=this.currentOp(e);i&&(i.onComplete(),this.shiftAndExecuteNext(e))}onSBUpdateError(e,t){var i;const s=new Error(`${e} SourceBuffer error. MediaSource readyState: ${null==(i=this.mediaSource)?void 0:i.readyState}`);this.error(`${s}`,t),this.hls.trigger(Oa.ERROR,{type:Ia.MEDIA_ERROR,details:Ra.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:s,fatal:!1});const r=this.currentOp(e);r&&r.onError(s)}removeExecutor(e,t,i){const{media:s,mediaSource:r}=this,n=this.tracks[e],a=null==n?void 0:n.buffer;if(!s||!r||!a)return this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),void this.shiftAndExecuteNext(e);const o=Aa(s.duration)?s.duration:1/0,l=Aa(r.duration)?r.duration:1/0,d=Math.max(0,t),h=Math.min(i,o,l);h>d&&(!n.ending||n.ended)?(n.ended=!1,this.log(`Removing [${d},${h}] from the ${e} SourceBuffer`),a.remove(d,h)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const i=this.tracks[t],s=null==i?void 0:i.buffer;if(!s)throw new Ou(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);i.ending=!1,i.ended=!1,s.appendBuffer(e)}blockUntilOpen(e){if(this.isUpdating()||this.isQueued())this.blockBuffers(e).catch((e=>{this.warn(`SourceBuffer blocked callback ${e}`),this.stepOperationQueue(this.sourceBufferTypes)}));else try{e()}catch(e){this.warn(`Callback run without blocking ${this.operationQueue} ${e}`)}}isUpdating(){return this.sourceBuffers.some((([e,t])=>e&&t.updating))}isQueued(){return this.sourceBuffers.some((([e])=>e&&!!this.currentOp(e)))}isPending(e){return!!e&&!e.buffer}blockBuffers(e,t=this.sourceBufferTypes){if(!t.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);const{operationQueue:i}=this,s=t.map((e=>this.appendBlocker(e)));return t.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(s).then((t=>{i===this.operationQueue&&(e(),this.stepOperationQueue(this.sourceBufferTypes))}))}stepOperationQueue(e){e.forEach((e=>{var t;const i=null==(t=this.tracks[e])?void 0:t.buffer;i&&!i.updating&&this.shiftAndExecuteNext(e)}))}append(e,t,i){this.operationQueue&&this.operationQueue.append(e,t,i)}appendBlocker(e){if(this.operationQueue)return this.operationQueue.appendBlocker(e)}currentOp(e){return this.operationQueue?this.operationQueue.current(e):null}executeNext(e){e&&this.operationQueue&&this.operationQueue.executeNext(e)}shiftAndExecuteNext(e){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(e)}get pendingTrackCount(){return Object.keys(this.tracks).reduce(((e,t)=>e+(this.isPending(this.tracks[t])?1:0)),0)}get sourceBufferCount(){return this.sourceBuffers.reduce(((e,[t])=>e+(t?1:0)),0)}get sourceBufferTypes(){return this.sourceBuffers.map((([e])=>e)).filter((e=>!!e))}addBufferListener(e,t,i){const s=this.tracks[e];if(!s)return;const r=s.buffer;if(!r)return;const n=i.bind(this,e);s.listeners.push({event:t,listener:n}),r.addEventListener(t,n)}removeBufferListeners(e){const t=this.tracks[e];if(!t)return;const i=t.buffer;i&&(t.listeners.forEach((e=>{i.removeEventListener(e.event,e.listener)})),t.listeners.length=0)}},capLevelController:$u,errorController:class extends Ka{constructor(e){super("error-controller",e.logger),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(Oa.ERROR,this.onError,this),e.on(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Oa.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(Oa.ERROR,this.onError,this),e.off(Oa.ERROR,this.onErrorOut,this),e.off(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Oa.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(null==e?void 0:e.type)===Ba?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var i;if(t.fatal)return;const s=this.hls,r=t.context;switch(t.details){case Ra.FRAG_LOAD_ERROR:case Ra.FRAG_LOAD_TIMEOUT:case Ra.KEY_LOAD_ERROR:case Ra.KEY_LOAD_TIMEOUT:return void(t.errorAction=this.getFragRetryOrSwitchAction(t));case Ra.FRAG_PARSING_ERROR:if(null!=(i=t.frag)&&i.gap)return void(t.errorAction=ed());case Ra.FRAG_GAP:case Ra.FRAG_DECRYPT_ERROR:return t.errorAction=this.getFragRetryOrSwitchAction(t),void(t.errorAction.action=ql);case Ra.LEVEL_EMPTY_ERROR:case Ra.LEVEL_PARSING_ERROR:{var n,a;const e=t.parent===Ba?t.level:s.loadLevel;t.details===Ra.LEVEL_EMPTY_ERROR&&null!=(n=t.context)&&null!=(a=n.levelDetails)&&a.live?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,e):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,e))}return;case Ra.LEVEL_LOAD_ERROR:case Ra.LEVEL_LOAD_TIMEOUT:return void("number"==typeof(null==r?void 0:r.level)&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.level)));case Ra.AUDIO_TRACK_LOAD_ERROR:case Ra.AUDIO_TRACK_LOAD_TIMEOUT:case Ra.SUBTITLE_LOAD_ERROR:case Ra.SUBTITLE_TRACK_LOAD_TIMEOUT:if(r){const e=s.loadLevelObj;if(e&&(r.type===$a&&e.hasAudioGroup(r.groupId)||r.type===Na&&e.hasSubtitleGroup(r.groupId)))return t.errorAction=this.getPlaylistRetryOrSwitchAction(t,s.loadLevel),t.errorAction.action=ql,void(t.errorAction.flags=Ql)}return;case Ra.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const e=s.loadLevelObj,i=null==e?void 0:e.attrs["HDCP-LEVEL"];i?t.errorAction={action:ql,flags:Zl,hdcpLevel:i}:this.keySystemError(t)}return;case Ra.BUFFER_ADD_CODEC_ERROR:case Ra.REMUX_ALLOC_ERROR:case Ra.BUFFER_APPEND_ERROR:var o;if(!t.errorAction)t.errorAction=this.getLevelSwitchAction(t,null!=(o=t.level)?o:s.loadLevel);return;case Ra.INTERNAL_EXCEPTION:case Ra.BUFFER_APPENDING_ERROR:case Ra.BUFFER_FULL_ERROR:case Ra.LEVEL_SWITCH_ERROR:case Ra.BUFFER_STALLED_ERROR:case Ra.BUFFER_SEEK_OVER_HOLE:case Ra.BUFFER_NUDGE_ON_STALL:return void(t.errorAction=ed())}t.type===Ia.KEY_SYSTEM_ERROR&&this.keySystemError(t)}keySystemError(e){const t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)}getPlaylistRetryOrSwitchAction(e,t){const i=Ul(this.hls.config.playlistLoadPolicy,e),s=this.playlistError++;if(zl(i,s,jl(e),e.response))return{action:Jl,flags:Xl,retryConfig:i,retryCount:s};const r=this.getLevelSwitchAction(e,t);return i&&(r.retryConfig=i,r.retryCount=s),r}getFragRetryOrSwitchAction(e){const t=this.hls,i=this.getVariantLevelIndex(e.frag),s=t.levels[i],{fragLoadPolicy:r,keyLoadPolicy:n}=t.config,a=Ul(e.details.startsWith("key")?n:r,e),o=t.levels.reduce(((e,t)=>e+t.fragmentError),0);if(s){e.details!==Ra.FRAG_GAP&&s.fragmentError++;if(zl(a,o,jl(e),e.response))return{action:Jl,flags:Xl,retryConfig:a,retryCount:o}}const l=this.getLevelSwitchAction(e,i);return a&&(l.retryConfig=a,l.retryCount=o),l}getLevelSwitchAction(e,t){const i=this.hls;null==t&&(t=i.loadLevel);const s=this.hls.levels[t];if(s){var r,n;const t=e.details;s.loadError++,t===Ra.BUFFER_APPEND_ERROR&&s.fragmentError++;let l=-1;const{levels:d,loadLevel:h,minAutoLevel:c,maxAutoLevel:u}=i;i.autoLevelEnabled||(i.loadLevel=-1);const f=null==(r=e.frag)?void 0:r.type,m=(f===Ha&&t===Ra.FRAG_PARSING_ERROR||"audio"===e.sourceBufferName&&(t===Ra.BUFFER_ADD_CODEC_ERROR||t===Ra.BUFFER_APPEND_ERROR))&&d.some((({audioCodec:e})=>s.audioCodec!==e)),p="video"===e.sourceBufferName&&(t===Ra.BUFFER_ADD_CODEC_ERROR||t===Ra.BUFFER_APPEND_ERROR)&&d.some((({codecSet:e,audioCodec:t})=>s.codecSet!==e&&s.audioCodec===t)),{type:g,groupId:y}=null!=(n=e.context)?n:{};for(let i=d.length;i--;){const r=(i+h)%d.length;if(r!==h&&r>=c&&r<=u&&0===d[r].loadError){var a,o;const i=d[r];if(t===Ra.FRAG_GAP&&f===Ba&&e.frag){const t=d[r].details;if(t){const i=$l(e.frag,t.fragments,e.frag.start);if(null!=i&&i.gap)continue}}else{if(g===$a&&i.hasAudioGroup(y)||g===Na&&i.hasSubtitleGroup(y))continue;if(f===Ha&&null!=(a=s.audioGroups)&&a.some((e=>i.hasAudioGroup(e)))||f===ja&&null!=(o=s.subtitleGroups)&&o.some((e=>i.hasSubtitleGroup(e)))||m&&s.audioCodec===i.audioCodec||!m&&s.audioCodec!==i.audioCodec||p&&s.codecSet===i.codecSet)continue}l=r;break}}if(l>-1&&i.loadLevel!==l)return e.levelRetry=!0,this.playlistError=0,{action:ql,flags:Xl,nextAutoLevel:l}}return{action:ql,flags:Ql}}onErrorOut(e,t){var i;switch(null==(i=t.errorAction)?void 0:i.action){case Wl:break;case ql:this.sendAlternateToPenaltyBox(t),t.errorAction.resolved||t.details===Ra.FRAG_GAP?/MediaSource readyState: ended/.test(t.error.message)&&(this.warn(`MediaSource ended after "${t.sourceBufferName}
2" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError()):t.fatal=!0}t.fatal&&this.hls.stopLoad()}sendAlternateToPenaltyBox(e){const t=this.hls,i=e.errorAction;if(!i)return;const{flags:s,hdcpLevel:r,nextAutoLevel:n}=i;switch(s){case Xl:this.switchLevel(e,n);break;case Zl:r&&(t.maxHdcpLevel=_l[_l.indexOf(r)-1],i.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`)}i.resolved||this.switchLevel(e,n)}switchLevel(e,t){if(void 0!==t&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,e.details===Ra.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&"audiovideo"!==e.sourceBufferName)){const t=ul(e.mimeType),i=this.hls.levels;for(let s=i.length;s--;)i[s][`${e.sourceBufferName}Codec`]===t&&this.hls.removeLevel(s)}}},fpsController:class{constructor(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}setStreamController(e){this.streamController=e}registerListeners(){this.hls.on(Oa.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(Oa.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(Oa.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(Oa.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const i=this.hls.config;if(i.capLevelOnFPSDrop){const e=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=e,e&&"function"==typeof e.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),i.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(e,t,i){const s=performance.now();if(t){if(this.lastTime){const e=s-this.lastTime,r=i-this.lastDroppedFrames,n=t-this.lastDecodedFrames,a=1e3*r/e,o=this.hls;if(o.trigger(Oa.FPS_DROP,{currentDropped:r,currentDecoded:n,totalDroppedFrames:i}),a>0&&r>o.config.fpsDroppedMonitoringThreshold*n){let e=o.currentLevel;o.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+e),e>0&&(-1===o.autoLevelCapping||o.autoLevelCapping>=e)&&(e-=1,o.trigger(Oa.FPS_DROP_LEVEL_CAPPING,{level:e,droppedLevel:o.currentLevel}),o.autoLevelCapping=e,this.streamController.nextLevelSwitch())}}this.lastTime=s,this.lastDroppedFrames=i,this.lastDecodedFrames=t}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}},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:eh,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,certLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null}},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:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},{cueHandler:Om,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:class extends Xh{constructor(e,t,i){super(e,t,i,"subt
2itle-stream-controller",ja),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(Oa.LEVEL_LOADED,this.onLevelLoaded,this),e.on(Oa.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(Oa.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(Oa.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(Oa.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(Oa.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(Oa.LEVEL_LOADED,this.onLevelLoaded,this),e.off(Oa.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(Oa.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(Oa.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(Oa.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(Oa.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=Bh,this.setInterval(500),this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(e,t){this.tracksBuffered=[],super.onMediaDetaching(e,t)}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:i,success:s}=t;if(wo(i)&&(this.fragPrevious=i),this.state=Bh,!s)return;const r=this.tracksBuffered[this.currentTrackId];if(!r)return;let n;const a=i.start;for(let e=0;e<r.length;e++)if(a>=r[e].start&&a<=r[e].end){n=r[e];break}const o=i.start+i.duration;n?n.end=o:(n={start:a,end:o},r.push(n)),this.fragmentTracker.fragBuffered(i),this.fragBufferedComplete(i,null),this.media&&this.tick()}onBufferFlushing(e,t){const{startOffset:i,endOffset:s}=t;if(0===i&&s!==Number.POSITIVE_INFINITY){const e=s-1;if(e<=0)return;t.endOffsetSubtitles=Math.max(0,e),this.tracksBuffered.forEach((t=>{for(let i=0;i<t.length;)if(t[i].end<=e)t.shift();else{if(!(t[i].start<e))break;t[i].start=e,i++}})),this.fragmentTracker.removeFragmentsInRange(i,e,ja)}}onError(e,t){const i=t.frag;(null==i?void 0:i.type)===ja&&(t.details===Ra.FRAG_GAP&&this.fragmentTracker.fragBuffered(i,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Nh&&(this.state=Bh))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){this.levels&&xu(this.levels,t)?this.levels=t.map((e=>new Ll(e))):(this.tracksBuffered=[],this.levels=t.map((e=>{const t=new Ll(e);return this.tracksBuffered[t.id]=[],t})),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,ja),this.fragPrevious=null,this.mediaBuffer=null)}onSubtitleTrackSwitch(e,t){var i;if(this.currentTrackId=t.id,null==(i=this.levels)||!i.length||-1===this.currentTrackId)return void this.clearInterval();const s=this.levels[this.currentTrackId];null!=s&&s.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,s&&this.state!==Nh&&this.setInterval(500)}onSubtitleTrackLoaded(e,t){var i;const{currentTrackId:s,levels:r}=this,{details:n,id:a}=t;if(!r)return void this.warn(`Subtitle tracks were reset while loading level ${a}`);const o=r[a];if(a>=r.length||!o)return;this.log(`Subtitle track ${a} loaded [${n.startSN},${n.endSN}]${n.lastPartSn?`[part-${n.lastPartSn}-${n.lastPartIndex}]`:""},duration:${n.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let l=0;if(n.live||null!=(i=o.details)&&i.live){const e=this.mainDetails;if(n.deltaUpdateFailed||!e)return;const t=e.fragments[0];var d;if(o.details)l=this.alignPlaylists(n,o.details,null==(d=this.levelLastLoaded)?void 0:d.details),0===l&&t&&(l=t.start,Eh(n,l));else n.hasProgramDateTime&&e.hasProgramDateTime?(Fh(n,e),l=n.fragmentStart):t&&(l=t.start,Eh(n,l))}if(o.details=n,this.levelLastLoaded=o,a===s&&(this.hls.trigger(Oa.SUBTITLE_TRACK_UPDATED,{details:n,id:a,groupId:t.groupId}),this.tick(),n.live&&!this.fragCurrent&&this.media&&this.state===Bh)){$l(null,n.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),o.details=void 0)}}_handleFragmentLoadComplete(e){const{frag:t,payload:i}=e,s=t.decryptdata,r=this.hls;if(!this.fragContextChanged(t)&&i&&i.byteLength>0&&null!=s&&s.key&&s.iv&&Od(s.method)){const e=performance.now();
2this.decrypter.decrypt(new Uint8Array(i),s.key.buffer,s.iv.buffer,Yd(s.method)).catch((e=>{throw r.trigger(Oa.ERROR,{type:Ia.MEDIA_ERROR,details:Ra.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:t}),e})).then((i=>{const s=performance.now();r.trigger(Oa.FRAG_DECRYPTED,{frag:t,payload:i,stats:{tstart:e,tdecrypt:s}})})).catch((e=>{this.warn(`${e.name}: ${e.message}`),this.state=Bh}))}}doTick(){if(this.media){if(this.state===Bh){const{currentTrackId:e,levels:t}=this,i=null==t?void 0:t[e];if(!i||!t.length||!i.details)return;if(this.waitForLive(i))return;const{config:s}=this,r=this.getLoadPosition(),n=Md.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],r,s.maxBufferHole),{end:a,len:o}=n,l=i.details;if(o>this.hls.maxBufferLength+l.levelTargetDuration)return;const d=l.fragments,h=d.length,c=l.edge;let u=null;const f=this.fragPrevious;if(a<c){const e=s.maxFragLookUpTolerance,t=a>c-e?0:e;u=$l(f,d,Math.max(d[0].start,a),t),!u&&f&&f.start<d[0].start&&(u=d[0])}else u=d[h-1];if(u=this.filterReplacedPrimary(u,i.details),!u)return;const m=d[u.sn-l.startSN-1];if(m&&m.cc===u.cc&&this.fragmentTracker.getState(m)===td&&(u=m),this.fragmentTracker.getState(u)===td){const e=this.mapToInitFragWhenRequired(u);e&&this.loadFragment(e,i,a)}}}else this.state=Bh}loadFragment(e,t,i){wo(e)?super.loadFragment(e,t,i):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new Bf(this.tracksBuffered[this.currentTrackId]||[])}},subtitleTrackController:class extends Du{constructor(e){super(e,"subtitle-track-controller"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let e=null;const t=Sf(this.media.textTracks);for(let i=0;i<t.length;i++)if("hidden"===t[i].mode)e=t[i];else if("showing"===t[i].mode){e=t[i];break}const i=this.findTrackForTextTrack(e);this.subtitleTrack!==i&&this.setSubtitleTrack(i)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){const{hls:e}=this;e.on(Oa.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Oa.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Oa.MANIFEST_PARSED,this.onManifestParsed,this),e.on(Oa.LEVEL_LOADING,this.onLevelLoading,this),e.on(Oa.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(Oa.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(Oa.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(Oa.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Oa.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Oa.MANIFEST_PARSED,this.onManifestParsed,this),e.off(Oa.LEVEL_LOADING,this.onLevelLoading,this),e.off(Oa.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(Oa.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(Oa.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(e,t){const i=this.media;if(!i)return;const s=!!t.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||i.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,s)return;
vendor: 5,785 bytes, line 2
2Sf(i.textTracks).forEach((e=>{Tf(e)}))}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id:i,groupId:s,details:r}=t,n=this.tracksInGroup[i];if(!n||n.groupId!==s)return void this.warn(`Subtitle track with id:${i} and group:${s} not found in active group ${null==n?void 0:n.groupId}`);const a=n.details;n.details=t.details,this.log(`Subtitle track ${i} "${n.name}" lang:${n.lang} group:${s} loaded [${r.startSN}-${r.endSN}]`),i===this.trackId&&this.playlistLoaded(i,t,a)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const i=t.subtitleGroups||null,s=this.groupIds;let r=this.currentTrack;if(!i||(null==s?void 0:s.length)!==(null==i?void 0:i.length)||null!=i&&i.some((e=>-1===(null==s?void 0:s.indexOf(e))))){this.groupIds=i,this.trackId=-1,this.currentTrack=null;const e=this.tracks.filter((e=>!i||-1!==i.indexOf(e.groupId)));if(e.length)this.selectDefaultTrack&&!e.some((e=>e.default))&&(this.selectDefaultTrack=!1),e.forEach(((e,t)=>{e.id=t}));else if(!r&&!this.tracksInGroup.length)return;this.tracksInGroup=e;const t=this.hls.config.subtitlePreference;if(!r&&t){this.selectDefaultTrack=!1;const i=Cl(t,e);if(i>-1)r=e[i];else{const e=Cl(t,this.tracks);r=this.tracks[e]}}let s=this.findTrackId(r);-1===s&&r&&(s=this.findTrackId(null));const n={subtitleTracks:e};this.log(`Updating subtitle tracks, ${e.length} track(s) found in "${null==i?void 0:i.join(",")}" group-id`),this.hls.trigger(Oa.SUBTITLE_TRACKS_UPDATED,n),-1!==s&&-1===this.trackId&&this.setSubtitleTrack(s)}}findTrackId(e){const t=this.tracksInGroup,i=this.selectDefaultTrack;for(let s=0;s<t.length;s++){const r=t[s];if((!i||r.default)&&(i||e)&&(!e||Il(r,e)))return s}if(e){for(let i=0;i<t.length;i++){const s=t[i];if(Au(e.attrs,s.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return i}for(let i=0;i<t.length;i++){const s=t[i];if(Au(e.attrs,s.attrs,["LANGUAGE"]))return i}}return-1}findTrackForTextTrack(e){if(e){const t=this.tracksInGroup;for(let i=0;i<t.length;i++){if(Pu(t[i],e))return i}}return-1}onError(e,t){!t.fatal&&t.context&&(t.context.type!==Na||t.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(t.context.groupId)||this.checkRetry(t))}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){if(-1===e.id)return this.setSubtitleTrack(-1),null;const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const i=this.currentTrack;if(i&&Il(e,i))return i;const s=Cl(e,this.tracksInGroup);if(s>-1){const e=this.tracksInGroup[s];return this.setSubtitleTrack(s),e}if(i)return null;{const i=Cl(e,t);if(i>-1)return t[i]}}}return null}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const i=e.id,s=e.groupId,r=this.getUrlWithDirectives(e.url,t),n=e.details,a=null==n?void 0:n.age;this.log(`Loading subtitle ${i} "${e.name}" lang:${e.lang} group:${s}${void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:""}${a&&n.live?" age "+a.toFixed(1)+(n.type?" "+n.type||0:""):""} ${r}`),this.hls.trigger(Oa.SUBTITLE_TRACK_LOADING,{url:r,id:i,groupId:s,deliveryDirectives:t||null,track:e})}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=Sf(e.textTracks),i=this.currentTrack;let s;if(i&&(s=t.filter((e=>Pu(i,e)))[0],s||this.warn(`Unable to find subtitle TextTrack with name "${i.name}" and language "${i.lang}"`)),[].slice.call(t).forEach((e=>{"disabled"!==e.mode&&e!==s&&(e.mode="disabled")})),s){const e=this.subtitleDisplay?"showing":"hidden";s.mode!==e&&(s.mode=e)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media)return void(this.queuedDefaultTrack=e);if(e<-1||e>=t.length||!Aa(e))return void this.warn(`Invalid subtitle track id: ${e}`);this.selectDefaultTrack=!1;const i=this.currentTrack,s=t[e]||null;if(this.trackId=e,this.currentTrack=s,this.toggleTrackModes(),!s)return void this.hls.trigger(Oa.SUBTITLE_TRACK_SWITCH,{id:e});const r=!!s.details&&!s.details.live;if(e===this.trackId&&s===i&&r)return;this.log(`Switching to subtitle-track ${e}`+(s?` "${s.name}" lang:${s.lang} group:${s.groupId}`:""));const{id:n,groupId:a="",name:o,type:l,url:d}=s;this.hls.trigger(Oa.SUBTITLE_TRACK_SWITCH,{id:n,groupId:a,name:o,type:l,url:d});const h=this.switchParams(s.url,null==i?void 0:i.details,s.details);this.loadPlaylist(h)}},timelineController:class{constructor(e){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}}
2,e.on(Oa.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(Oa.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Oa.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(Oa.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(Oa.FRAG_LOADING,this.onFragLoading,this),e.on(Oa.FRAG_LOADED,this.onFragLoaded,this),e.on(Oa.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(Oa.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(Oa.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(Oa.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(Oa.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(Oa.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(Oa.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Oa.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(Oa.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(Oa.FRAG_LOADING,this.onFragLoading,this),e.off(Oa.FRAG_LOADED,this.onFragLoaded,this),e.off(Oa.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(Oa.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(Oa.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(Oa.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(Oa.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const e=new Pm(this,"textTrack1"),t=new Pm(this,"textTrack2"),i=new Pm(this,"textTrack3"),s=new Pm(this,"textTrack4");this.cea608Parser1=new sm(1,e,t),this.cea608Parser2=new sm(3,i,s)}addCues(e,t,i,s,r){let n=!1;for(let e=r.length;e--;){const s=r[e],h=(a=s[0],o=s[1],l=t,d=i,Math.min(o,d)-Math.max(a,l));if(h>=0&&(s[0]=Math.min(s[0],t),s[1]=Math.max(s[1],i),n=!0,h/(i-t)>.5))return}var a,o,l,d;if(n||r.push([t,i]),this.config.renderTextTracksNatively){const r=this.captionsTracks[e];this.Cues.newCue(r,t,i,s)}else{const r=this.Cues.newCue(null,t,i,s);this.hls.trigger(Oa.CUES_PARSED,{type:"captions",cues:r,track:e})}}onInitPtsFound(e,{frag:t,id:i,initPTS:s,timescale:r}){const{unparsedVttFrags:n}=this;i===Ba&&(this.initPTS[t.cc]={baseTime:s,timescale:r}),n.length&&(this.unparsedVttFrags=[],n.forEach((e=>{this.onFragLoaded(Oa.FRAG_LOADED,e)})))}getExistingTrack(e,t){const{media:i}=this;if(i)for(let s=0;s<i.textTracks.length;s++){const r=i.textTracks[s];if(Im(r,{name:e,lang:t,characteristics:"transcribes-spoken-dialog,describes-music-and-sound"}))return r}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:t,captionsTracks:i,media:s}=this,{label:r,languageCode:n}=t[e],a=this.getExistingTrack(r,n);if(a)i[e]=a,Tf(i[e]),bf(i[e],s);else{const t=this.createTextTrack("captions",r,n);t&&(t[e]=!0,i[e]=t)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const i={_id:e,label:t.label,kind:"captions",default:!!t.media&&!!t.media.default,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=i,this.hls.trigger(Oa.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[i]})}createTextTrack(e,t,i){const s=this.media;if(s)return s.addTextTrack(e,t,i)}onMediaAttaching(e,t){this.media=t.media,t.mediaSource||this._cleanTracks()}onMediaDetaching(e,t){const i=!!t.transferMedia;if(this.media=null,i)return;const{captionsTracks:s}=this;Object.keys(s).forEach((e=>{Tf(s[e]),delete s[e]})),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:e}=this;if(!e)return;const t=e.textTracks;if(t)for(let e=0;e<t.length;e++)Tf(t[e])}
vendor: 4,123 bytes, line 2
2onSubtitleTracksUpdated(e,t){const i=t.subtitleTracks||[],s=i.some((e=>e.textCodec===bm));if(this.config.enableWebVTT||s&&this.config.enableIMSC1){if(xu(this.tracks,i))return void(this.tracks=i);if(this.textTracks=[],this.tracks=i,this.config.renderTextTracksNatively){const e=this.media,t=e?Sf(e.textTracks):null;if(this.tracks.forEach(((e,i)=>{let s;if(t){let i=null;for(let s=0;s<t.length;s++)if(t[s]&&Im(t[s],e)){i=t[s],t[s]=null;break}i&&(s=i)}if(s)Tf(s);else{const t=Cm(e);s=this.createTextTrack(t,e.name,e.lang),s&&(s.mode="disabled")}s&&this.textTracks.push(s)})),null!=t&&t.length){const e=t.filter((e=>null!==e)).map((e=>e.label));e.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${e.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const e=this.tracks.map((e=>({label:e.name,kind:e.type.toLowerCase(),default:e.default,subtitleTrack:e})));this.hls.trigger(Oa.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:e})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach((e=>{const t=/(?:CC|SERVICE)([1-4])/.exec(e.instreamId);if(!t)return;const i=`textTrack${t[1]}`,s=this.captionsProperties[i];s&&(s.label=e.name,e.lang&&(s.languageCode=e.lang),s.media=e)}))}closedCaptionsForLevel(e){const t=this.hls.levels[e.level];return null==t?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===Ba){var i,s;const{cea608Parser1:e,cea608Parser2:r,lastSn:n}=this,{cc:a,sn:o}=t.frag,l=null!=(i=null==(s=t.part)?void 0:s.index)?i:-1;e&&r&&(o!==n+1||o===n&&l!==this.lastPartIndex+1||a!==this.lastCc)&&(e.reset(),r.reset()),this.lastCc=a,this.lastSn=o,this.lastPartIndex=l}}onFragLoaded(e,t){const{frag:i,payload:s}=t;if(i.type===ja)if(s.byteLength){const e=i.decryptdata,r="stats"in t;if(null==e||!e.encrypted||r){const e=this.tracks[i.level],r=this.vttCCs;r[i.cc]||(r[i.cc]={start:i.start,prevCC:this.prevCC,new:!0},this.prevCC=i.cc),e&&e.textCodec===bm?this._parseIMSC1(i,s):this._parseVTTs(t)}}else this.hls.trigger(Oa.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:i,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const i=this.hls;Sm(t,this.initPTS[e.cc],(t=>{this._appendCues(t,e.level),i.trigger(Oa.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})}),(t=>{i.logger.log(`Failed to parse IMSC1: ${t}`),i.trigger(Oa.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:t})}))}_parseVTTs(e){var t;const{frag:i,payload:s}=e,{initPTS:r,unparsedVttFrags:n}=this,a=r.length-1;if(!r[i.cc]&&-1===a)return void n.push(e);const o=this.hls;vm(null!=(t=i.initSegment)&&t.data?Vo(i.initSegment.data,new Uint8Array(s)).buffer:s,this.initPTS[i.cc],this.vttCCs,i.cc,i.start,(e=>{this._appendCues(e,i.level),o.trigger(Oa.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:i})}),(t=>{const r="Missing initPTS for VTT MPEGTS"===t.message;r?n.push(e):this._fallbackToIMSC1(i,s),o.logger.log(`Failed to parse VTT cue: ${t}`),r&&a>i.cc||o.trigger(Oa.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:i,error:t})}))}_fallbackToIMSC1(e,t){const i=this.tracks[e.level];i.textCodec||Sm(t,this.initPTS[e.cc],(()=>{i.textCodec=bm,this._parseIMSC1(e,t)}),(()=>{i.textCodec="wvtt"}))}_appendCues(e,t){const i=this.hls;if(this.config.renderTextTracksNatively){const i=this.textTracks[t];if(!i||"disabled"===i.mode)return;e.forEach((e=>wf(i,e)))}else{const s=this.tracks[t];if(!s)return;const r=s.default?"default":"subtitles"+t;i.trigger(Oa.CUES_PARSED,{type:"subtitles",cues:e,track:r})}}onFragDecrypted(e,t){const{frag:i}=t;i.type===ja&&this.onFragLoaded(Oa.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:i,samples:s}=t;if(i.type!==Ba||"NONE"!==this.closedCaptionsForLevel(i))for(let e=0;e<s.length;e++){const t=s[e].bytes;if(t){this.cea608Parser1||this.initCea608Parsers();const i=this.extractCea608Data(t);this.cea608Parser1.addData(s[e].pts,i[0]),this.cea608Parser2.addData(s[e].pts,i[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:i,endOffsetSubtitles:s,type:r}){const{media:n}=this;
2if(n&&!(n.currentTime<i)){if(!r||"video"===r){const{captionsTracks:e}=this;Object.keys(e).forEach((s=>Mf(e[s],t,i)))}if(this.config.renderTextTracksNatively&&0===t&&void 0!==s){const{textTracks:e}=this;Object.keys(e).forEach((i=>Mf(e[i],t,s)))}}}extractCea608Data(e){const t=[[],[]],i=31&e[0];let s=2;for(let r=0;r<i;r++){const i=e[s++],r=127&e[s++],n=127&e[s++];if(0===r&&0===n)continue;if(!!(4&i)){const e=3&i;0!==e&&1!==e||(t[e].push(r),t[e].push(n))}}return t}},audioStreamController:class extends Xh{constructor(e,t,i){super(e,t,i,"audio-stream-controller",Ha),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(Oa.LEVEL_LOADED,this.onLevelLoaded,this),e.on(Oa.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(Oa.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(Oa.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(Oa.BUFFER_RESET,this.onBufferReset,this),e.on(Oa.BUFFER_CREATED,this.onBufferCreated,this),e.on(Oa.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(Oa.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(Oa.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(Oa.FRAG_LOADING,this.onFragLoading,this),e.on(Oa.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:e}=this;e&&(super.unregisterListeners(),e.off(Oa.LEVEL_LOADED,this.onLevelLoaded,this),e.off(Oa.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(Oa.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(Oa.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(Oa.BUFFER_RESET,this.onBufferReset,this),e.off(Oa.BUFFER_CREATED,this.onBufferCreated,this),e.off(Oa.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(Oa.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(Oa.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(Oa.FRAG_LOADING,this.onFragLoading,this),e.off(Oa.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(e,{frag:t,id:i,initPTS:s,timescale:r}){if(i===Ba){const e=t.cc,i=this.fragCurrent;if(this.initPTS[e]={baseTime:s,timescale:r},this.log(`InitPTS for cc: ${e} found from main: ${s}/${r}`),this.mainAnchor=t,this.state===Kh){const i=this.waitingData;(!i&&!this.loadingParts||i&&i.frag.cc!==e)&&(this.nextLoadPosition=this.findSyncFrag(t).start),this.tick()}else!this.hls.hasEnoughToStart&&i&&i.cc!==e?(this.startFragRequested=!1,this.nextLoadPosition=this.findSyncFrag(t).start,i.abortRequests(),this.resetLoadingState()):this.state===Bh&&this.tick()}}findSyncFrag(e){const t=this.getLevelDetails(),i=e.cc;return function(e,t,i){if(e&&e.startCC<=t&&e.endCC>=t){const s=i.start,r=i.end;let n=e.fragments;if(!i.relurl){const{fragmentHint:t}=e;t&&(n=n.concat(t))}return Fl(n,(e=>e.cc<t||e.end<=s?1:e.cc>t||e.start>=r?-1:0))}return null}(t,i,e)||t&&Hl(t.fragments,i)||e}startLoad(e,t){if(!this.levels)return this.startPosition=e,void(this.state=Nh);const i=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),i>0&&-1===e?(this.log(`Override startPosition with lastCurrentTime @${i.toFixed(3)}`),e=i,this.state=Bh):this.state=Vh,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case Bh:this.doTickIdle();break;case Vh:{const{levels:e,trackId:t}=this,i=null==e?void 0:e[t],s=null==i?void 0:i.details;if(s&&!this.waitForLive(i)){if(this.waitForCdnTuneIn(s))break;this.state=Kh}break}case Uh:{var e;const t=performance.now(),i=this.retryDate;if(!i||t>=i||null!=(e=this.media)&&e.seeking){const{levels:e,trackId:t}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((null==e?void 0:e[t])||null),this.state=Bh}break}case Kh:{const e=this.waitingData;if(e){const{frag:t,part:i,cache:s,complete:r}=e,n=this.mainAnchor;if(void 0!==this.initPTS[t.cc]){this.waitingData=null,this.state=jh;const e={frag:t,part:i,payload:s.flush().buffer,networkDetails:null};this._handleFragmentLoadProgress(e),r&&super._handleFragmentLoadComplete(e)}else n&&n.cc!==e.frag.cc&&(this.log(`Waiting fragment cc (${t.cc}) cancelled because video is at cc ${n.cc}`),this.nextLoadPosition=this.findSyncFrag(n).start,this.clearWaitingFragment())}else this.state=Bh}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.state!==Nh&&(this.state=Bh))}
2resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:e}=this;null!=e&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){var e;const{hls:t,levels:i,media:s,trackId:r}=this,n=t.config;if(!this.buffering||!s&&!this.primaryPrefetch&&(this.startFragRequested||!n.startFragPrefetch)||null==i||!i[r])return;const a=i[r],o=a.details;if(!o||this.waitForLive(a)||this.waitForCdnTuneIn(o))return this.state=Vh,void(this.startFragRequested=!1);const l=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&l&&(this.bufferFlushed=!1,this.afterBufferFlushed(l,yo,Ha));const d=this.getFwdBufferInfo(l,Ha);if(null===d)return;if(!this.switchingTrack&&this._streamEnded(d,o))return t.trigger(Oa.BUFFER_EOS,{type:"audio"}),void(this.state=Wh);const h=d.len,c=t.maxBufferLength,u=o.fragments,f=u[0].start,m=this.getLoadPosition(),p=this.flushing?m:d.end;if(this.switchingTrack&&s){const e=m;o.PTSKnown&&e<f&&(d.end>f||d.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),s.currentTime=f+.05)}if(h>=c&&!this.switchingTrack&&p<u[u.length-1].start)return;let g=this.getNextFragment(p,o);if(g&&this.isLoopLoading(g,p)&&(g=this.getNextFragmentLoopLoading(g,o,d,Ba,c)),!g)return void(this.bufferFlushed=!0);let y=(null==(e=this.mainFragLoading)?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&y&&wo(g)&&!g.endList&&(!o.live||!this.loadingParts&&p<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(y)===rd&&(this.mainFragLoading=y=null),y&&wo(y))){if(g.start>y.end){const e=this.fragmentTracker.getFragAtPos(p,Ba);e&&e.end>y.end&&(y=e,this.mainFragLoading={frag:e,targetBufferTime:null})}if(g.start>y.end)return}this.loadFragment(g,a,p)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map((e=>new Ll(e)))}onAudioTrackSwitching(e,t){const i=!!t.url;this.trackId=t.id;const{fragCurrent:s}=this;s&&(s.abortRequests(),this.removeUnbufferedFrags(s.start)),this.resetLoadingState(),i?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==Nh&&(this.setInterval(100),this.state=Bh,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=t,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(e,t){this.mainDetails=t.details;const i=this.cachedTrackLoadedData;i&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(Oa.AUDIO_TRACK_LOADED,i))}onAudioTrackLoaded(e,t){var i;const{levels:s}=this,{details:r,id:n,groupId:a,track:o}=t;if(!s)return void this.warn(`Audio tracks reset while loading track ${n} "${o.name}" of "${a}"`);const l=this.mainDetails;if(!l||r.endCC>l.endCC||l.expired)return this.cachedTrackLoadedData=t,void(this.state!==Nh&&(this.state=Vh));this.cachedTrackLoadedData=null,this.log(`Audio track ${n} "${o.name}" of "${a}" loaded [${r.startSN},${r.endSN}]${r.lastPartSn?`[part-${r.lastPartSn}-${r.lastPartIndex}]`:""},duration:${r.totalduration}`);const d=s[n];let h=0;if(r.live||null!=(i=d.details)&&i.live){if(this.checkLiveUpdate(r),r.deltaUpdateFailed)return;var c;if(d.details)h=this.alignPlaylists(r,d.details,null==(c=this.levelLastLoaded)?void 0:c.details);r.alignedSliding||(Yh(r,l),r.alignedSliding||Fh(r,l),h=r.fragmentStart)}d.details=r,this.levelLastLoaded=d,this.startFragRequested||this.setStartPosition(l,h),this.hls.trigger(Oa.AUDIO_TRACK_UPDATED,{details:r,id:n,groupId:t.groupId}),this.state!==Vh||this.waitForCdnTuneIn(r)||(this.state=Bh),this.tick()}_handleFragmentLoadProgress(e){var t;const i=e.frag,{part:s,payload:r}
2=e,{config:n,trackId:a,levels:o}=this;if(!o)return void this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${i.sn} of level ${i.level} will not be buffered`);const l=o[a];if(!l)return void this.warn("Audio track is undefined on fragment load progress");const d=l.details;if(!d)return this.warn("Audio track details undefined on fragment load progress"),void this.removeUnbufferedFrags(i.start);const h=n.defaultAudioCodec||l.audioCodec||"mp4a.40.2";let c=this.transmuxer;c||(c=this.transmuxer=new Eu(this.hls,Ha,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const u=this.initPTS[i.cc],f=null==(t=i.initSegment)?void 0:t.data;if(void 0!==u){const e=!1,t=s?s.index:-1,n=-1!==t,a=new wd(i.level,i.sn,i.stats.chunkCount,r.byteLength,t,n);c.push(r,f,h,"",i,s,d.totalduration,e,a,u)}else{this.log(`Unknown video PTS for cc ${i.cc}, waiting for video PTS before demuxing audio frag ${i.sn} of [${d.startSN} ,${d.endSN}],track ${a}`);const{cache:e}=this.waitingData=this.waitingData||{frag:i,part:s,cache:new Zh,complete:!1};e.push(new Uint8Array(r)),this.state!==Nh&&(this.state=Kh)}}_handleFragmentLoadComplete(e){this.waitingData?this.waitingData.complete=!0:super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(e,t){this.bufferFlushed=this.flushing=!1;const i=t.tracks.audio;i&&(this.mediaBuffer=i.buffer||null)}onFragLoading(e,t){!this.audioOnly&&t.frag.type===Ba&&wo(t.frag)&&(this.mainFragLoading=t,this.state===Bh&&this.tick())}onFragBuffered(e,t){const{frag:i,part:s}=t;if(i.type===Ha)if(this.fragContextChanged(i))this.warn(`Fragment ${i.sn}${s?" p: "+s.index:""} of level ${i.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);else{if(wo(i)){this.fragPrevious=i;const e=this.switchingTrack;e&&(this.bufferedTrack=e,this.switchingTrack=null,this.hls.trigger(Oa.AUDIO_TRACK_SWITCHED,qa({},e)))}this.fragBufferedComplete(i,s),this.media&&this.tick()}else this.audioOnly||i.type!==Ba||i.elementaryStreams.video||i.elementaryStreams.audiovideo||(this.audioOnly=!0,this.mainFragLoading=null)}onError(e,t){var i;if(t.fatal)this.state=qh;else switch(t.details){case Ra.FRAG_GAP:case Ra.FRAG_PARSING_ERROR:case Ra.FRAG_DECRYPT_ERROR:case Ra.FRAG_LOAD_ERROR:case Ra.FRAG_LOAD_TIMEOUT:case Ra.KEY_LOAD_ERROR:case Ra.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ha,t);break;case Ra.AUDIO_TRACK_LOAD_ERROR:case Ra.AUDIO_TRACK_LOAD_TIMEOUT:case Ra.LEVEL_PARSING_ERROR:t.levelRetry||this.state!==Vh||(null==(i=t.context)?void 0:i.type)!==$a||(this.state=Bh);break;case Ra.BUFFER_ADD_CODEC_ERROR:case Ra.BUFFER_APPEND_ERROR:if("audio"!==t.parent)return;this.resetLoadingState();break;case Ra.BUFFER_FULL_ERROR:if("audio"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case Ra.INTERNAL_EXCEPTION:this.recoverWorkerError(t)}}onBufferFlushing(e,{type:t}){t!==_o&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==_o){this.flushing=!1,this.bufferFlushed=!0,this.state===Wh&&(this.state=Bh);const e=this.mediaBuffer||this.media;e&&(this.afterBufferFlushed(e,t,Ha),this.tick())}}_handleTransmuxComplete(e){var t;const i="audio",{hls:s}=this,{remuxResult:r,chunkMeta:n}=e,a=this.getCurrentContext(n);if(!a)return void this.resetWhenMissingContext(n);const{frag:o,part:l,level:d}=a,{details:h}=d,{audio:c,text:u,id3:f,initSegment:m}=r;if(!this.fragContextChanged(o)&&h){if(this.state=Gh,this.switchingTrack&&c&&this.completeAudioSwitch(this.switchingTrack),null!=m&&m.tracks){const e=o.initSegment||o;this._bufferInitSegment(d,m.tracks,e,n),s.trigger(Oa.FRAG_PARSING_INIT_SEGMENT,{frag:e,id:i,tracks:m.tracks})}if(c){const{startPTS:e,endPTS:t,startDTS:i,endDTS:s}=c;l&&(l.elementaryStreams[yo]={startPTS:e,endPTS:t,startDTS:i,endDTS:s}),o.setElementaryStreamInfo(yo,e,t,i,s),this.bufferFragmentData(c,o,l,n)}if(null!=f&&null!=(t=f.samples)&&t.length){const e=za({id:i,frag:o,details:h},f);s.trigger(Oa.FRAG_PARSING_METADATA,e)}if(u){const e=za({id:i,frag:o,details:h},u);s.trigger(Oa.FRAG_PARSING_USERDATA,e)}}else this.fragmentTracker.removeFragment(o)}_bufferInitSegment(e,t,i,s){if(this.state!==Gh)return;if(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio)return;const r=t.audio;r.id=Ha;const n=e.audioCodec;this.log(`Init audio buffer, container:${r.container}, codecs[level/parsed]=[${n}/${r.codec}]`),n&&1===n.split(",").length&&(r.levelCodec=n),this.hls.trigger(Oa.BUFFER_CODECS,t);const a=r.initSegment;if(null!=a&&a.byteLength){const e={type:"audio",frag:i,part:null,chunkMeta:s,parent:i.type,data:a};this.hls.trigger(Oa.BUFFER_APPENDING,e)}this.tickImmediate()}loadFragment(e,t,i){const s=this.fragmentTracker.getState(e);var r;if(this.switchingTrack||s===td||s===sd)if(wo(e))if(null!=(r=t.details)&&r.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=Kh;const i=this.mainDetails;i&&i.fragmentStart!==t.details.fragmentStart&&Fh(t.details,i)}else super.loadFragment(e,t,i);else this._loadInitSegment(e,t);else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:i,assocLang:s,characteristics:r,audioCodec:n,channels:a}=this.bufferedTrack;Il({name:t,lang:i,assocLang:s,characteristics:r,audioCodec:n,channels:a},e,Rl)||(Yl(e.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=e)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(Oa.AUDIO_TRACK_SWITCHED,qa({},e))}},audioTrackController:class extends Du{constructor(e){super(e,"audio-track-controller"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:e}=this;e.on(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Oa.MANIFEST_PARSED,this.onManifestParsed,this),e.on(Oa.LEVEL_LOADING,this.onLevelLoading,this),e.on(Oa.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(Oa.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(Oa.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Oa.MANIFEST_PARSED,this.onManifestParsed,this),e.off(Oa.LEVEL_LOADING,this.onLevelLoading,this),e.off(Oa.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(Oa.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(Oa.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.audioTracks||[]}onAudioTrackLoaded(e,t){const{id:i,groupId:s,details:r}=t,n=this.tracksInGroup[i];if(!n||n.groupId!==s)return void this.warn(`Audio track with id:${i} and group:${s} not found in active group ${null==n?void 0:n.groupId}`);const a=n.details;n.details=t.details,this.log(`Audio track ${i} "${n.name}" lang:${n.lang} group:${s} loaded [${r.startSN}-${r.endSN}]`),i===this.trackId&&this.playlistLoaded(i,t,a)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const i=t.audioGroups||null,s=this.groupIds;let r=this.currentTrack;if(!i||(null==s?void 0:s.length)!==(null==i?void 0:i.length)||null!=i&&i.some((e=>-1===(null==s?void 0:s.indexOf(e))))){this.groupIds=i,this.trackId=-1,this.currentTrack=null;const e=this.tracks.filter((e=>!i||-1!==i.indexOf(e.groupId)));if(e.length)this.selectDefaultTrack&&!e.some((e=>e.default))&&(this.selectDefaultTrack=!1),e.forEach(((e,t)=>
2{e.id=t}));else if(!r&&!this.tracksInGroup.length)return;this.tracksInGroup=e;const t=this.hls.config.audioPreference;if(!r&&t){const i=Cl(t,e,Rl);if(i>-1)r=e[i];else{const e=Cl(t,this.tracks);r=this.tracks[e]}}let s=this.findTrackId(r);-1===s&&r&&(s=this.findTrackId(null));const a={audioTracks:e};this.log(`Updating audio tracks, ${e.length} track(s) found in group(s): ${null==i?void 0:i.join(",")}`),this.hls.trigger(Oa.AUDIO_TRACKS_UPDATED,a);const o=this.trackId;if(-1!==s&&-1===o)this.setAudioTrack(s);else if(e.length&&-1===o){var n;const t=new Error(`No audio track selected for current audio group-ID(s): ${null==(n=this.groupIds)?void 0:n.join(",")} track count: ${e.length}`);this.warn(t.message),this.hls.trigger(Oa.ERROR,{type:Ia.MEDIA_ERROR,details:Ra.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:t})}}}onError(e,t){!t.fatal&&t.context&&(t.context.type!==$a||t.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(t.context.groupId)||this.checkRetry(t))}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const i=this.allAudioTracks;
2if(this.selectDefaultTrack=!1,i.length){const s=this.currentTrack;if(s&&Il(e,s,Rl))return s;const r=Cl(e,this.tracksInGroup,Rl);if(r>-1){const e=this.tracksInGroup[r];return this.setAudioTrack(r),e}if(s){let s=t.loadLevel;-1===s&&(s=t.firstAutoLevel);const r=function(e,t,i,s,r){const n=t[s],a=t.reduce(((e,t,i)=>{const s=t.uri;return(e[s]||(e[s]=[])).push(i),e}),{}),o=a[n.uri];o.length>1&&(s=Math.max.apply(Math,o));const l=n.videoRange,d=n.frameRate,h=n.codecSet.substring(0,4),c=Ol(t,s,(t=>{if(t.videoRange!==l||t.frameRate!==d||t.codecSet.substring(0,4)!==h)return!1;const s=t.audioGroups,n=i.filter((e=>!s||-1!==s.indexOf(e.groupId)));return Cl(e,n,r)>-1}));return c>-1?c:Ol(t,s,(t=>{const s=t.audioGroups,n=i.filter((e=>!s||-1!==s.indexOf(e.groupId)));return Cl(e,n,r)>-1}))}(e,t.levels,i,s,Rl);if(-1===r)return null;t.nextLoadLevel=r}if(e.channels||e.audioCodec){const t=Cl(e,i);if(t>-1)return i[t]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length)return void this.warn(`Invalid audio track id: ${e}`);this.selectDefaultTrack=!1;const i=this.currentTrack,s=t[e],r=s.details&&!s.details.live;if(e===this.trackId&&s===i&&r)return;if(this.log(`Switching to audio-track ${e} "${s.name}" lang:${s.lang} group:${s.groupId} channels:${s.channels}`),this.trackId=e,this.currentTrack=s,this.hls.trigger(Oa.AUDIO_TRACK_SWITCHING,qa({},s)),r)return;const n=this.switchParams(s.url,null==i?void 0:i.details,s.details);this.loadPlaylist(n)}findTrackId(e){const t=this.tracksInGroup;for(let i=0;i<t.length;i++){const s=t[i];if((!this.selectDefaultTrack||s.default)&&(!e||Il(e,s,Rl)))return i}if(e){const{name:i,lang:s,assocLang:r,characteristics:n,audioCodec:a,channels:o}=e;for(let e=0;e<t.length;e++){if(Il({name:i,lang:s,assocLang:r,characteristics:n,audioCodec:a,channels:o},t[e],Rl))return e}for(let i=0;i<t.length;i++){const s=t[i];if(Au(e.attrs,s.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return i}for(let i=0;i<t.length;i++){const s=t[i];if(Au(e.attrs,s.attrs,["LANGUAGE"]))return i}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&Yl(t.url,this.hls)&&this.scheduleLoading(t,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const i=e.id,s=e.groupId,r=this.getUrlWithDirectives(e.url,t),n=e.details,a=null==n?void 0:n.age;this.log(`Loading audio-track ${i} "${e.name}" lang:${e.lang} group:${s}${void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:""}${a&&n.live?" age "+a.toFixed(1)+(n.type?" "+n.type||0:""):""} ${r}`),this.hls.trigger(Oa.AUDIO_TRACK_LOADING,{url:r,id:i,groupId:s,deliveryDirectives:t||null,track:e})}},emeController:_f,cmcdController:class{constructor(e){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=e=>{try{this.apply(e,{ot:Nu.MANIFEST,su:!this.initialized})}catch(e){this.hls.logger.warn("Could not generate manifest CMCD data.",e)}},this.applyFragmentData=e=>{try{const{frag:t,part:i}=e,s=this.hls.levels[t.level],r=this.getObjectType(t),n={d:1e3*(i||t).duration,ot:r};r!==Nu.VIDEO&&r!==Nu.AUDIO&&r!=Nu.MUXED||(n.br=s.bitrate/1e3,n.tb=this.getTopBandwidth(r)/1e3,n.bl=this.getBufferLength(r));const a=i?this.getNextPart(i):this.getNextFrag(t);null!=a&&a.url&&a.url!==t.url&&(n.nor=a.url),this.apply(e,n)}catch(e){this.hls.logger.warn("Could not generate segment CMCD data.",e)}},this.hls=e;const t=this.config=e.config,{cmcd:i}=t;null!=i&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=i.sessionId||e.sessionId,this.cid=i.contentId,this.useHeaders=!0===i.useHeaders,this.includeKeys=i.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(Oa.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Oa.MEDIA_DETACHED,this.onMediaDetached,this),e.on(Oa.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;
2e.off(Oa.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Oa.MEDIA_DETACHED,this.onMediaDetached,this),e.off(Oa.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var i,s;this.audioBuffer=null==(i=t.tracks.audio)?void 0:i.buffer,this.videoBuffer=null==(s=t.tracks.video)?void 0:s.buffer}createData(){var e;return{v:1,sf:Bu.HLS,sid:this.sid,cid:this.cid,pr:null==(e=this.media)?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){za(t,this.createData());const i=t.ot===Nu.INIT||t.ot===Nu.VIDEO||t.ot===Nu.MUXED;this.starved&&i&&(t.bs=!0,t.su=!0,this.starved=!1),null==t.su&&(t.su=this.buffering);const{includeKeys:s}=this;s&&(t=Object.keys(t).reduce(((e,i)=>(s.includes(i)&&(e[i]=t[i]),e)),{}));const r={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),ff(e.headers,t,r)):e.url=pf(e.url,t,r)}getNextFrag(e){var t;const i=null==(t=this.hls.levels[e.level])?void 0:t.details;if(i){const t=e.sn-i.startSN;return i.fragments[t+1]}}getNextPart(e){var t,i;const{index:s,fragment:r}=e,n=null==(t=this.hls.levels[r.level])||null==(i=t.details)?void 0:i.partList;if(n){const{sn:e}=r;for(let t=n.length-1;t>=0;t--){const i=n[t];if(i.index===s&&i.fragment.sn===e)return n[t+1]}}}getObjectType(e){const{type:t}=e;return"subtitle"===t?Nu.TIMED_TEXT:"initSegment"===e.sn?Nu.INIT:"audio"===t?Nu.AUDIO:"main"===t?this.hls.audioTracks.length?Nu.VIDEO:Nu.MUXED:void 0}getTopBandwidth(e){let t,i=0;const s=this.hls;if(e===Nu.AUDIO)t=s.audioTracks;else{const e=s.maxAutoLevel,i=e>-1?e+1:s.levels.length;t=s.levels.slice(0,i)}for(const e of t)e.bitrate>i&&(i=e.bitrate);return i>0?i:NaN}getBufferLength(e){const t=this.media,i=e===Nu.AUDIO?this.audioBuffer:this.videoBuffer;if(!i||!t)return NaN;return 1e3*Md.bufferInfo(i,t.currentTime,this.config.maxBufferHole).len}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,i=e||this.config.loader;return class{constructor(e){this.loader=void 0,this.loader=new i(e)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(e,i,s){t(e),this.loader.load(e,i,s)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,i=e||this.config.loader;return class{constructor(e){this.loader=void 0,this.loader=new i(e)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(e,i,s){t(e),this.loader.load(e,i,s)}}}}
vendor: 7,275 bytes, line 2
2,contentSteeringController:class extends Ka{constructor(e){super("content-steering",e.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Oa.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(Oa.MANIFEST_PARSED,this.onManifestParsed,this),e.on(Oa.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Oa.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(Oa.MANIFEST_PARSED,this.onManifestParsed,this),e.off(Oa.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce(((e,t)=>(-1===e.indexOf(t.pathwayId)&&e.push(t.pathwayId),e)),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(e){this.updatePathwayPriority(e)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=1e3*this.timeToLoad-(performance.now()-this.updated);if(e>0)return void this.scheduleRefresh(this.uri,e)}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){-1!==this.reloadTimer&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter((t=>t!==e)))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){const{contentSteering:i}=t;null!==i&&(this.pathwayId=i.pathwayId,this.uri=i.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:i}=t;if((null==i?void 0:i.action)===ql&&i.flags===Ql){const e=this.levels;let s=this._pathwayPriority,r=this.pathwayId;if(t.context){const{groupId:i,pathwayId:s,type:n}=t.context;i&&e?r=this.getPathwayForGroupId(i,n,r):s&&(r=s)}r in this.penalizedPathways||(this.penalizedPathways[r]=performance.now()),!s&&e&&(s=this.pathways()),s&&s.length>1&&(this.updatePathwayPriority(s),i.resolved=this.pathwayId!==r),i.resolved||this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${r} levels: ${e?e.length:e} priorities: ${Dl(s)} penalized: ${Dl(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(0===t.length){const i=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${i}"`),t=this.getLevelsForPathway(i),this.pathwayId=i}return t.length!==e.length&&this.log(`Found ${t.length}/${e.length} levels in Pathway "${this.pathwayId}"`),t}getLevelsForPathway(e){return null===this.levels?[]:this.levels.filter((t=>e===t.pathwayId))}updatePathwayPriority(e){let t;this._pathwayPriority=e;const i=this.penalizedPathways,s=performance.now();Object.keys(i).forEach((e=>{s-i[e]>3e5&&delete i[e]}));for(let s=0;s<e.length;s++){const r=e[s];if(r in i)continue;if(r===this.pathwayId)return;const n=this.hls.nextLoadLevel,a=this.hls.levels[n];if(t=this.getLevelsForPathway(r),t.length>0){this.log(`Setting Pathway to "${r}"`),this.pathwayId=r,Ch(t),this.hls.trigger(Oa.LEVELS_UPDATED,{levels:t});const e=this.hls.levels[n];a&&e&&this.levels&&(e.attrs["STABLE-VARIANT-ID"]!==a.attrs["STABLE-VARIANT-ID"]&&e.bitrate!==a.bitrate&&this.log(`Unstable Pathways change from bitrate ${a.bitrate} to ${e.bitrate}`),this.hls.nextLoadLevel=n);break}}}getPathwayForGroupId(e,t,i){const s=this.getLevelsForPathway(i).concat(this.levels||[]);for(let i=0;i<s.length;i++)if(t===$a&&s[i].hasAudioGroup(e)||t===Na&&s[i].hasSubtitleGroup(e))return s[i].pathwayId;return i}clonePathways(e){const t=this.levels;if(!t)return;const i={},s={};e.forEach((e=>{const{ID:r,"BASE-ID":n,"URI-REPLACEMENT":a}=e;if(t.some((e=>e.pathwayId===r)))return;const o=this.getLevelsForPathway(n).map((e=>{const t=new Pd(e.attrs);t["PATHWAY-ID"]=r;const n=t.AUDIO&&`${t.AUDIO}_clone_${r}`,o=t.SUBTITLES&&`${t.SUBTITLES}_clone_${r}`;n&&(i[t.AUDIO]=n,t.AUDIO=n),o&&(s[t.SUBTITLES]=o,t.SUBTITLES=o);const l=yf(e.uri,t["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",a),d=new Ll({attrs:t,audioCodec:e.audioCodec,bitrate:e.bitrate,height:e.height,name:e.name,url:l,videoCodec:e.videoCodec,width:e.width});if(e.audioGroups)for(let t=1;t<e.audioGroups.length;t++)d.addGroupId("audio",`${e.audioGroups[t]}_clone_${r}`);if(e.subtitleGroups)for(let t=1;t<e.subtitleGroups.length;t++)d.addGroupId("text",`${e.subtitleGroups[t]}_clone_${r}`);return d}));t.push(...o),gf(this.audioTracks,i,a,r),gf(this.subtitleTracks,s,a,r)}))}loadSteeringManifest(e){const t=this.hls.config,i=t.loader;let s;this.loader&&this.loader.destroy(),this.loader=new i(t);try{s=new self.URL(e)}catch(t){return this.enabled=!1,void this.log(`Failed to parse Steering Manifest URI: ${e}`)}if("data:"!==s.protocol){const e=0|(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate);s.searchParams.set("_HLS_pathway",this.pathwayId),s.searchParams.set("_HLS_throughput",""+e)}const r={responseType:"json",url:s.href},n=t.steeringManifestLoadPolicy.default,a=n.errorRetry||n.timeoutRetry||{},o={loadPolicy:n,timeout:n.maxLoadTimeMs,maxRetry:a.maxNumRetry||0,retryDelay:a.retryDelayMs||0,maxRetryDelay:a.maxRetryDelayMs||0},l={onSuccess:(e,t,i,r)=>{this.log(`Loaded steering manifest: "${s}"`);const n=e.data;if(1!==(null==n?void 0:n.VERSION))return void this.log(`Steering VERSION ${n.VERSION} not supported!`);this.updated=performance.now(),this.timeToLoad=n.TTL;const{"RELOAD-URI":a,"PATHWAY-CLONES":o,"PATHWAY-PRIORITY":l}=n;if(a)try{this.uri=new self.URL(a,s).href}catch(e){return this.enabled=!1,void this.log(`Failed to parse Steering Manifest RELOAD-URI: ${a}`)}this.scheduleRefresh(this.uri||i.url),o&&this.clonePathways(o);const d={steeringManifest:n,url:s.toString()};this.hls.trigger(Oa.STEERING_MANIFEST_LOADED,d),l&&this.updatePathwayPriority(l)},onError:(e,t,i,s)=>{if(this.log(`Error loading steering manifest: ${e.code} ${e.text} (${t.url})`),this.stopLoad(),410===e.code)return this.enabled=!1,void this.log(`Steering manifest ${t.url} no longer available`);let r=1e3*this.timeToLoad;if(429!==e.code)this.scheduleRefresh(this.uri||t.url,r);else{const e=this.loader;if("function"==typeof(null==e?void 0:e.getResponseHeader)){const t=e.getResponseHeader("Retry-After");t&&(r=1e3*parseFloat(t))}this.log(`Steering manifest ${t.url} rate limited`)}},onTimeout:(e,t,i)=>{this.log(`Timeout loading steering manifest (${t.url})`),this.scheduleRefresh(this.uri||t.url)}};this.log(`Requesting steering manifest: ${s}`),this.loader.load(r,o,l)}scheduleRefresh(e,t=1e3*this.timeToLoad){this.clearTimeout(),this.reloadTimer=self.setTimeout((()=>{var t;const i=null==(t=this.hls)?void 0:t.media;!i||i.ended?this.scheduleRefresh(e,1e3*this.timeToLoad):this.loadSteeringManifest(e)}),t)}}
2,interstitialsController:class extends Ka{constructor(e,t){super("interstitials",e.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const e=this.currentTime;if(void 0===e||this.playbackDisabled)return;const t=e-this.timelinePos;if(Math.abs(t)<1/7056e5)return;const i=t<=-.01;this.timelinePos=e,this.bufferedPos=e;const s=this.playingItem;if(!s)return void this.checkBuffer();if(i){this.schedule.resetErrorsInRange(e,e-t)&&this.updateSchedule()}if(this.checkBuffer(),i&&e<s.start||e>=s.end){var r;const e=this.schedule.findItemIndexAtTime(this.timelinePos);if(!this.isInterstitial(s)&&null!=(r=this.media)&&r.paused&&(this.shouldPlay=!1),!i){const t=this.findItemIndex(s);if(e>t){const i=this.schedule.findJumpRestrictedIndex(t+1,e);if(i>t)return void this.setSchedulePosition(i)}}return void this.setSchedulePosition(e)}const n=this.playingAsset;if(!n){if(this.playingLastItem&&this.isInterstitial(s)){const t=s.event.assetList[0];t&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(e,t))}return}const a=n.timelineStart,o=n.duration||0;(i&&e<a||e>=a+o)&&this.setScheduleToAssetAtTime(e,n)},this.onTimeupdate=()=>{const e=this.currentTime;if(void 0===e||this.playbackDisabled)return;if(!(e>this.timelinePos))return;this.timelinePos=e,e>this.bufferedPos&&this.checkBuffer();const t=this.playingItem;if(!t||this.playingLastItem)return;if(e>=t.end){this.timelinePos=t.end;const e=this.findItemIndex(t);this.setSchedulePosition(e+1)}const i=this.playingAsset;if(!i)return;e>=i.timelineStart+(i.duration||0)&&this.setScheduleToAssetAtTime(e,i)},this.onScheduleUpdate=(e,t)=>{const i=this.schedule,s=this.playingItem,r=i.events||[],n=i.items||[],a=i.durations,o=e.map((e=>e.identifier)),l=!(!r.length&&!o.length);if(l&&this.log(`INTERSTITIALS_UPDATED (${r.length}): ${r}\nSchedule: ${n.map((e=>Of(e)))}`),o.length&&this.log(`Removed events ${o}`),this.playerQueue.forEach((e=>{if(e.interstitial.appendInPlace){const t=e.assetItem.timelineStart,i=e.timelineOffset-t;if(i)try{e.timelineOffset=t}catch(s){Math.abs(i)>kf&&this.warn(`${s} ("${e.assetId}" ${e.timelineOffset}->${t})`)}}})),s){const e=this.updateItem(s,this.timelinePos);this.itemsMatch(s,e)&&(this.playingItem=e,this.waitingItem=this.endedItem=null)}else this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const d=this.bufferingItem;if(d){const e=this.updateItem(d,this.bufferedPos);this.itemsMatch(d,e)?this.bufferingItem=e:d.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(d.event,null))}if(e.forEach((e=>{e.assetList.forEach((e=>{this.clearAssetPlayer(e.identifier,null)}))})),l||t){if(this.hls.trigger(Oa.INTERSTITIALS_UPDATED,{events:r.slice(0),schedule:n.slice(0),durations:a,removedIds:o}),this.isInterstitial(s)&&o.includes(s.event.identifier))return this.warn(`Interstitial "${s.event.identifier}" removed while playing`),void this.primaryFallback(s.event);this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new Yf(e),this.schedule=new Rf(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;e.on(Oa.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(Oa.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Oa.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Oa.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(Oa.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(Oa.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(Oa.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(Oa.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(Oa.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(Oa.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(Oa.BUFFER_APPENDED,this.onBufferAppended,this),e.on(Oa.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(Oa.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(Oa.MEDIA_ENDED,this.onMediaEnded,this),e.on(Oa.ERROR,this.onError,this),e.on(Oa.DESTROYING,this.onDestroying,this)}unregisterListeners(){const e=this.hls;
2e&&(e.off(Oa.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(Oa.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Oa.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Oa.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(Oa.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(Oa.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(Oa.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(Oa.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(Oa.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(Oa.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(Oa.BUFFER_CODECS,this.onBufferCodecs,this),e.off(Oa.BUFFER_APPENDED,this.onBufferAppended,this),e.off(Oa.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(Oa.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(Oa.MEDIA_ENDED,this.onMediaEnded,this),e.off(Oa.ERROR,this.onError,this),e.off(Oa.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var e;null==(e=this.getBufferingPlayer())||e.resumeBuffering()}pauseBuffering(){var e;null==(e=this.getBufferingPlayer())||e.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.manager=null,this.hls=this.HlsPlayerClass=this.schedule=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const e=this.primaryMedia||this.media;e&&this.removeMediaListeners(e)}removeMediaListeners(e){$f(e,"play",this.onPlay),$f(e,"pause",this.onPause),$f(e,"seeking",this.onSeeking),$f(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const i=this.media=t.media;Ff(i,"seeking",this.onSeeking),Ff(i,"timeupdate",this.onTimeupdate),Ff(i,"play",this.onPlay),Ff(i,"pause",this.onPause)}onMediaAttached(e,t){const i=this.effectivePlayingItem,s=this.detachedData;if(this.detachedData=null,null===i)this.checkStart();else if(!s){this.clearScheduleState();const e=this.findItemIndex(i);this.setSchedulePosition(e)}}clearScheduleState(){this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(e,t){const i=!!t.transferMedia,s=this.media;if(this.media=null,!i&&(s&&this.removeMediaListeners(s),this.detachedData)){const e=this.getBufferingPlayer();e&&(this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,e.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.manager){if(!this.hls)return null;const e=this,t=()=>e.bufferingItem||e.waitingItem,i=t=>t?e.getAssetPlayer(t.identifier):t,s=(t,s,r,a,o)=>{if(t){let l=t[s].start;const d=t.event;if(d){if("playout"===s||d.timelineOccupancy!==Ef.Point){const e=i(r);(null==e?void 0:e.interstitial)===d&&(l+=e.assetItem.startOffset+e[o])}}else{l+=("bufferedPos"===a?n():e[a])-t.start}return l}return 0},r=(t,i)=>{if(0!==t&&"primary"!==i&&e.schedule.length){var s;const r=e.schedule.findItemIndexAtTime(t),n=null==(s=e.schedule.items)?void 0:s[r];if(n){return t+(n[i].start-n.start)}}return t},n=()=>{const t=e.bufferedPos;return t===Number.MAX_VALUE?a("primary"):Math.max(t,0)},a=t=>{var i;return null!=(i=e.primaryDetails)&&i.live?e.primaryDetails.edge:e.schedule.durations[t]},o=(t,r)=>{var n,a;const o=e.effectivePlayingItem;if(null!=o&&null!=(n=o.event)&&n.restrictions.skip)return;e.log(`seek to ${t} "${r}"`);const l=e.effectivePlayingItem,d=e.schedule.findItemIndexAtTime(t,r),h=null==(a=e.schedule.items)?void 0:a[d],c=e.getBufferingPlayer(),u=null==c?void 0:c.interstitial,f=null==u?void 0:u.appendInPlace,m=l&&e.itemsMatch(l,h);if(l&&(f||m)){const n=i(e.playingAsset),a=(null==n?void 0:n.media)||e.primaryMedia;if(a){const i="primary"===r?a.currentTime:s(l,r,e.playingAsset,"timelinePos","currentTime"),o=t-i,d=(f?i:a.currentTime)+o;if(d>=0&&(!n||f||d<=n.duration))return void(a.currentTime=d)}}if(h){let i=t;if("primary"!==r){const e=t-h[r].start;i=h.start+e}const s=!e.isInterstitial(h);if(e.isInterstitial(l)&&!l.event.appendInPlace||!s&&!h.event.appendInPlace){if(l){const n=e.findItemIndex(l);if(d>n){const t=e.schedule.findJumpRestrictedIndex(n+1,d);if(t>n)return void e.setSchedulePosition(t)}let a=0;if(s)e.timelinePos=i,e.checkBuffer();else{var p;const e=null==h||null==(p=h.event)?void 0:p.assetList;if(e){const i=t-(h[r]||h).start;for(let t=e.length;t--;){const s=e[t];if(s.duration&&i>=s.startOffset&&i<s.startOffset+s.duration){a=t;break}}}}e.setSchedulePosition(d,a)}}else{const t=e.media||(f?null==c?void 0:c.media:null);t&&(t.currentTime=i)}}},l=()=>{const i=e.effectivePlayingItem;if(e.isInterstitial(i))return i;const s=t();return e.isInterstitial(s)?s:null},d={get currentTime(){const t=l(),i=e.effectivePlayingItem;return i&&i===t?s(i,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-i.playout.start:0},set currentTime(t){const i=l(),s=e.effectivePlayingItem;s&&s===i&&o(t+s.playout.start,"playout")},get duration(){const e=l();return e?e.playout.end-e.playout.start:0},get assetPlayers(){var t;const i=null==(t=l())?void 0:t.event.assetList;return i?i.map((t=>e.getAssetPlayer(t.identifier))):[]},get playingIndex(){var t;const i=null==(t=l())?void 0:t.event;return i&&e.effectivePlayingAsset?i.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return l()}};this.manager={get events(){var t,i;return(null==(t=e.schedule)||null==(i=t.events)?void 0:i.slice(0))||[]},get schedule(){var t,i;return(null==(t=e.schedule)||null==(i=t.items)?void 0:i.slice(0))||[]},get interstitialPlayer(){return l()?d:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const i=t();return e.findItemIndex(i)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const t=e.effectivePlayingItem;return e.findItemIndex(t)},primary:{get bufferedEnd(){return n()},get currentTime(){const t=e.timelinePos;return t>0?t:0},set currentTime(e){o(e,"primary")},get duration(){return a("primary")},get seekableStart(){var t;return(null==(t=e.primaryDetails)?void 0:t.fragmentStart)||0}},integrated:{get bufferedEnd(){return s(t(),"integrated",e.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return s(e.effectivePlayingItem,"integrated",e.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(e){o(e,"integrated")},get duration(){return a("integrated")},get seekableStart(){var t;return r((null==(t=e.primaryDetails)?void 0:t.fragmentStart)||0,"integrated")}},skip:()=>{const t=e.effectivePlayingItem,i=null==t?void 0:t.event;if(i&&!i.restrictions.skip){const s=e.findItemIndex(t);if(i.appendInPlace){const e=t.playout.start+t.event.duration;o(e+.001,"playout")}else e.advanceAfterAssetEnded(i,s,1/0)}}}}return this.manager}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var e;const t=this.playingItem,i=null==(e=this.schedule)?void 0:e.items;return!!(this.playbackStarted&&t&&i)&&this.findItemIndex(t)===i.length-1}get playbackStarted(){return null!==this.effectivePlayingItem}get currentTime(){var e,t,i;if(null===this.mediaSelection)return;const s=this.waitingItem||this.playingItem;if(this.isInterstitial(s)&&!s.event.appendInPlace)return;let r=this.media;!r&&null!=(e=this.bufferingItem)&&null!=(t=e.event)&&t.appendInPlace&&(r=this.primaryMedia);const n=null==(i=r)?void 0:i.currentTime;return void 0!==n&&Aa(n)?n:void 0}get primaryMedia(){var e;return this.media||(null==(e=this.detachedData)?void 0:e.media)||null}isInterstitial(e){return!(null==e||!e.event)}retreiveMediaSource(e,t){const i=this.getAssetPlayer(e);i&&this.transferMediaFromPlayer(i,t)}transferMediaFromPlayer(e,t){const i=e.interstitial.appendInPlace,s=e.media;if(i&&s===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&s)return void(this.detachedData={media:s});const i=e.transferMedia();this.log(`transfer MediaSource from ${e} ${Dl(i)}`),this.detachedData=i}else t&&s&&(this.shouldPlay||(this.shouldPlay=!s.paused))}transferMediaTo(e,t){var i,s;if(e.media===t)return;let r=null;const n=this.hls,a=e!==n,o=a&&e.interstitial.appendInPlace,l=null==(i=this.detachedData)?void 0:i.mediaSource;let d;if(n.media)o&&(r=n.transferMedia(),this.detachedData=r),d="Primary";
2else if(l){const e=this.getBufferingPlayer();e?(r=e.transferMedia(),d=`${e}`):d="detached MediaSource"}else d="detached media";if(!r)if(l)r=this.detachedData,this.log(`using detachedData: MediaSource ${Dl(r)}`);else if(!this.detachedData||n.media===t){const e=this.playerQueue;e.length>1&&e.forEach((e=>{if(a&&e.interstitial.appendInPlace!==o){const t=e.interstitial;this.clearInterstitial(e.interstitial,null),t.appendInPlace=!1,t.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${t}`)}})),this.hls.detachMedia(),this.detachedData={media:t}}const h=r&&"mediaSource"in r&&"closed"!==(null==(s=r.mediaSource)?void 0:s.readyState),c=h&&r?r:t;if(this.log(`${h?"transfering MediaSource":"attaching media"} to ${a?e:"Primary"} from ${d}`),c===r){const t=a&&e.assetId===this.schedule.assetIdAtEnd;c.overrides={duration:this.schedule.duration,endOfStream:!a||t,cueRemoval:!a}}e.attachMedia(c)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const e=this.schedule,t=e.events;if(!t||this.playbackDisabled||!this.media)return;-1===this.bufferedPos&&(this.bufferedPos=0);const i=this.timelinePos,s=this.effectivePlayingItem;if(-1===i){const i=this.hls.startPosition;if(this.timelinePos=i,t.length&&t[0].cue.pre){const i=e.findEventIndex(t[0].identifier);this.setSchedulePosition(i)}else if(i>=0||!this.primaryLive){const t=this.timelinePos=i>0?i:0,s=e.findItemIndexAtTime(t);this.setSchedulePosition(s)}}else if(s&&!this.playingItem){const t=e.findItemIndex(s);this.setSchedulePosition(t)}}advanceAfterAssetEnded(e,t,i){const s=i+1;if(e.isAssetPastPlayoutLimit(s)||e.assetList[s].error){const i=this.schedule.items;if(i){const s=t+1;if(s>=i.length)return void this.setSchedulePosition(-1);const r=e.resumeTime;this.timelinePos<r&&(this.timelinePos=r,this.checkBuffer()),this.setSchedulePosition(s)}}else this.setSchedulePosition(t,s)}setScheduleToAssetAtTime(e,t){const i=this.schedule,s=t.parentIdentifier,r=i.getEvent(s);if(r){const t=i.findEventIndex(s),n=i.findAssetIndex(r,e);this.setSchedulePosition(t,n)}}setSchedulePosition(e,t){const i=this.schedule.items;if(!i||this.playbackDisabled)return;this.log(`setSchedulePosition ${e}, ${t}`);const s=e>=0?i[e]:null,r=this.playingItem,n=this.playingLastItem;if(this.isInterstitial(r)){var a;const l=r.event,d=this.playingAsset,h=null==d?void 0:d.identifier,c=h?this.getAssetPlayer(h):null;if(c&&h&&(!this.eventItemsMatch(r,s)||void 0!==t&&h!==(null==(a=l.assetList)?void 0:a[t].identifier))){var o;const t=l.findAssetIndex(d);this.log(`INTERSTITIAL_ASSET_ENDED ${t+1}/${l.assetList.length} ${Cf(d)}`),this.endedAsset=d,this.playingAsset=null,this.hls.trigger(Oa.INTERSTITIAL_ASSET_ENDED,{asset:d,assetListIndex:t,event:l,sc
2hedule:i.slice(0),scheduleIndex:e,player:c}),this.retreiveMediaSource(h,s),!c.media||null!=(o=this.detachedData)&&o.mediaSource||c.detachMedia()}if(!this.eventItemsMatch(r,s)&&(this.endedItem=r,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${l} ${Of(r)}`),l.hasPlayed=!0,this.hls.trigger(Oa.INTERSTITIAL_ENDED,{event:l,schedule:i.slice(0),scheduleIndex:e}),l.cue.once)){this.updateSchedule();const e=this.schedule.items;if(s&&e){const i=this.schedule.findItemIndex(s);this.advanceSchedule(i,e,t,r,n)}return}}this.advanceSchedule(e,i,t,r,n)}advanceSchedule(e,t,i,s,r){const n=e>=0?t[e]:null,a=this.primaryMedia,o=this.playerQueue;if(o.length&&o.forEach((t=>{const i=t.interstitial,s=this.schedule.findEventIndex(i.identifier);(s<e||s>e+1)&&this.clearInterstitial(i,n)})),this.isInterstitial(n)){this.timelinePos=Math.min(Math.max(this.timelinePos,n.start),n.end);const r=n.event;void 0===i&&(i=this.schedule.findAssetIndex(r,this.timelinePos));const o=this.waitingItem;this.assetsBuffered(n,a)||this.setBufferingItem(n);let l=this.preloadAssets(r,i);if(this.eventItemsMatch(n,o||s)||(this.waitingItem=n,this.log(`INTERSTITIAL_STARTED ${Of(n)} ${r.appendInPlace?"append in place":""}`),this.hls.trigger(Oa.INTERSTITIAL_STARTED,{event:r,schedule:t.slice(0),scheduleIndex:e})),!r.assetListLoaded)return void this.log(`Waiting for ASSET-LIST to complete loading ${r}`);if(r.assetListLoader&&(r.assetListLoader.destroy(),r.assetListLoader=void 0),!a)return void this.log(`Waiting for attachMedia to start Interstitial ${r}`);this.waitingItem=this.endedItem=null,this.playingItem=n;const d=r.assetList[i];if(!d){const s=t[e+1],n=this.media;return s&&n&&!this.isInterstitial(s)&&n.currentTime<s.start&&(n.currentTime=this.timelinePos=s.start),void this.advanceAfterAssetEnded(r,e,i||0)}if(l||(l=this.getAssetPlayer(d.identifier)),null===l||l.destroyed){const e=r.assetList.length;this.warn(`asset ${i+1}/${e} player destroyed ${r}`),l=this.createAssetPlayer(r,d,i)}if(!this.eventItemsMatch(n,this.bufferingItem)&&r.appendInPlace&&this.isAssetBuffered(d))return;this.startAssetPlayer(l,i,t,e,a),this.shouldPlay&&Nf(l.media)}else null!==n?(this.resumePrimary(n,e,s),this.shouldPlay&&Nf(this.hls.media)):r&&this.isInterstitial(s)&&(this.endedItem=null,this.playingItem=s,s.event.appendInPlace||this.attachPrimary(this.schedule.durations.primary,null))}get playbackDisabled(){return!1===this.hls.config.enableInterstitialPlayback}get primaryDetails(){var e,t;return null==(e=this.mediaSelection)||null==(t=e.main)?void 0:t.details}get primaryLive(){var e;return!(null==(e=this.primaryDetails)||!e.live)}resumePrimary(e,t,i){var s;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${Of(e)}`),null==(s=this.detachedData)||!s.mediaSource){let i=this.timelinePos;(i<e.start||i>=e.end)&&(i=this.getPrimaryResumption(e,t),this.timelinePos=i),this.attachPrimary(i,e)}if(!i)return;const r=this.schedule.items;r&&(this.log(`resumed ${Of(e)}`),this.hls.trigger(Oa.INTERSTITIALS_PRIMARY_RESUMED,{schedule:r.slice(0),scheduleIndex:t}),this.checkBuffer())}getPrimaryResumption(e,t){const i=e.start;if(this.primaryLive){const e=this.primaryDetails;if(0===t)return this.hls.startPosition;if(e&&(i<e.fragmentStart||i>e.edge))return this.hls.liveSyncPosition||-1}return i}isAssetBuffered(e){const t=this.getAssetPlayer(e.identifier);if(null!=t&&t.hls)return t.hls.bufferedToEnd;return Md.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)}attachPrimary(e,t,i){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const s=this.primaryMedia;if(!s)return;const r=this.hls;r.media?this.checkBuffer():(this.transferMediaTo(r,s),i&&this.startLoadingPrimaryAt(e,i)),i||(this.timelinePos=e,this.startLoadingPrimaryAt(e,i))}startLoadingPrimaryAt(e,t){var i;const s=this.hls;!s.loadingEnabled||!s.media||Math.abs(((null==(i=s.mainForwardBufferInfo)?void 0:i.start)||s.media.currentTime)-e)>.5?s.startLoad(e,t):s.bufferingEnabled||s.resumeBuffering()}onManifestLoading(){this.stopLoad(),this.schedule.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(Oa.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(Oa.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(-1===t.level)return;const i=this.hls.levels[t.level],s=qa(qa({},this.mediaSelection||this.altSelection),{},{main:i});this.mediaSelection=s,this.schedule.parseInterstitialDateRanges(s,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){const i=this.hls.audioTracks[t.id],s=this.mediaSelection;if(!s)return void(this.altSelection=qa(qa({},this.altSelection),{},{audio:i}));const r=qa(qa({},s),{},{audio:i});this.mediaSelection=r}onSubtitleTrackUpdated(e,t){const i=this.hls.subtitleTracks[t.id],s=this.mediaSelection;if(!s)return void(this.altSelection=qa(qa({},this.altSelection),{},{subtitles:i}));const r=qa(qa({},s),{},{subtitles:i});this.mediaSelection=r}onAudioTrackSwitching(e,t){const i=Pl(t);this.playerQueue.forEach((e=>
2e.hls.setAudioOption(t)||e.hls.setAudioOption(i)))}onSubtitleTrackSwitch(e,t){const i=Pl(t);this.playerQueue.forEach((e=>e.hls.setSubtitleOption(t)||-1!==t.id&&e.hls.setSubtitleOption(i)))}onBufferCodecs(e,t){const i=t.tracks;i&&(this.requiredTracks=i)}onBufferAppended(e,t){this.checkBuffer()}onBufferFlushed(e,t){const i=this.playingItem;if(i&&!this.itemsMatch(i,this.bufferingItem)&&!this.isInterstitial(i)){const e=this.timelinePos;this.bufferedPos=e,this.checkBuffer()}}onBufferedToEnd(e){const t=this.schedule.events;if(this.bufferedPos<Number.MAX_VALUE&&t){for(let e=0;e<t.length;e++){const s=t[e];if(s.cue.post){var i;const e=this.schedule.findEventIndex(s.identifier),t=null==(i=this.schedule.items)?void 0:i[e];this.isInterstitial(t)&&this.eventItemsMatch(t,this.bufferingItem)&&this.bufferedToItem(t,0);break}}this.bufferedPos=Number.MAX_VALUE}}onMediaEnded(e){const t=this.playingItem;if(!this.playingLastItem&&t){const e=this.findItemIndex(t);this.setSchedulePosition(e+1)}else this.shouldPlay=!1}updateItem(e,t){const i=this.schedule.items;if(e&&i){return i[this.findItemIndex(e,t)]||null}return null}itemsMatch(e,t){return!!t&&(e===t||e.event&&t.event&&this.eventItemsMatch(e,t)||!e.event&&!t.event&&this.findItemIndex(e)===this.findItemIndex(t))}eventItemsMatch(e,t){var i;return!!t&&(e===t||e.event.identifier===(null==(i=t.event)?void 0:i.identifier))}findItemIndex(e,t){return e?this.schedule.findItemIndex(e,t):-1}updateSchedule(){const e=this.mediaSelection;e&&this.schedule.updateSchedule(e,[])}checkBuffer(e){const t=this.schedule.items;if(!t)return;const i=Md.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=i.len<1),this.updateBufferedPos(i.end,t,e)}updateBufferedPos(e,t,i){const s=this.schedule,r=this.bufferingItem;if(this.bufferedPos>e)return;if(1===t.length&&this.itemsMatch(t[0],r))return void(this.bufferedPos=e);const n=this.playingItem,a=this.findItemIndex(n);let o=s.findItemIndexAtTime(e);if(this.bufferedPos<e){var l,d;const i=this.findItemIndex(r),s=Math.min(i+1,t.length-1),n=t[s];if((-1===o&&r&&e>=r.end||null!=(l=n.event)&&l.appendInPlace&&e+.01>=n.start)&&(o=s),s-a>1&&!1===(null==r||null==(d=r.event)?void 0:d.appendInPlace))return;if(this.bufferedPos=e,o>i&&o>a)this.bufferedToItem(n);else{const t=this.primaryDetails;this.primaryLive&&t&&e>t.edge-t.targetduration&&n.start<t.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(n)&&this.preloadAssets(n.event,0)}}else i&&n&&!this.itemsMatch(n,r)&&(o===a?this.bufferedToItem(n):o===a+1&&this.bufferedToItem(t[o]))}assetsBuffered(e,t){return 0!==e.event.assetList.length&&!e.event.assetList.some((e=>{const i=this.getAssetPlayer(e.identifier);return!(null!=i&&i.bufferedInPlaceToEnd(t))}))}setBufferingItem(e){const t=this.bufferingItem,i=this.schedule;if(this.itemsMatch(e,t))this.bufferingItem!==e&&(this.bufferingItem=e);else{const{items:s,events:r}=i;if(!s||!r)return t;const n=this.isInterstitial(e),a=this.getBufferingPlayer();if(this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos)),!this.playbackDisabled){const i=a?a.remaining:t?t.end-this.timelinePos:0;this.log(`buffered to boundary ${Of(e)}`+(t?` (${i.toFixed(2)} remaining)`:"")),n?e.event.assetList.forEach((e=>{const t=this.getAssetPlayer(e.identifier);t&&t.resumeBuffering()})):(this.hls.resumeBuffering(),this.playerQueue.forEach((e=>e.pauseBuffering())))}this.hls.trigger(Oa.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:r.slice(0),schedule:s.slice(0),bufferingIndex:this.findItemIndex(e),playingIndex:this.findItemIndex(this.playingItem)})}return t}bufferedToItem(e,t=0){const i=this.setBufferingItem(e);if(!this.playbackDisabled)if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(null!==i){this.bufferingAsset=null;const t=this.detachedData;if(t)if(t.mediaSource){const t=!0;this.attachPrimary(e.start,e,t)}else this.preloadPrimary(e);else this.preloadPrimary(e)}}preloadPrimary(e){const t=this.findItemIndex(e),i=this.getPrimaryResumption(e,t);this.startLoadingPrimaryAt(i)}bufferedToEvent(e,t){const i=e.event,s=0===i.assetList.length&&!i.assetListLoader,r=i.cue.once;if(s||!r){const e=this.preloadAssets(i,t);if(null!=e&&e.interstitial.appendInPlace){const s=i.assetList[t],r=this.primaryMedia;s&&r&&this.bufferAssetPlayer(e,r)}}}preloadAssets(e,t){const i=e.assetUrl,s=e.assetList.length,r=0===s&&!e.assetListLoader,n=e.cue.once;if(r){const r=e.timelineStart;if(e.appendInPlace){var a;const t=this.playingItem;this.isInterstitial(t)||(null==t||null==(a=t.nextEvent)?void 0:a.identifier)!==e.identifier||this.flushFrontBuffer(r+.25)}let n,o=0;if(!this.playingItem&&this.primaryLive&&(o=this.hls.startPosition,-1===o&&(o=this.hls.liveSyncPosition||0)),o&&!e.cue.pre&&!e.cue.post){const e=o-r;e>0&&(n=Math.round(1e3*e)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${i?1:s} ${e}${n?` live-start: ${o} start-offset: ${n}`:""}`),i)return this.createAsset(e,0,0,r,e.duration,i);const l=this.assetListLoader.loadAssetList(e,n);l&&(e.assetListLoader=l)}else if(!n&&s){for(let i=t;i<s;i++){const t=e.assetList[i],s=this.getAssetPlayerQueueIndex(t.identifier);-1!==s&&!this.playerQueue[s].destroyed||t.error||this.createAssetPlayer(e,t,i)}return this.getAssetPlayer(e.assetList[t].identifier)}return null}flushFrontBuffer(e){const t=this.requiredTracks;
2if(!t)return;this.log(`Removing front buffer starting at ${e}`);Object.keys(t).forEach((t=>{this.hls.trigger(Oa.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:t})}))}getAssetPlayerQueueIndex(e){const t=this.playerQueue;for(let i=0;i<t.length;i++)if(e===t[i].assetId)return i;return-1}getAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);return this.playerQueue[t]||null}getBufferingPlayer(){const{playerQueue:e,primaryMedia:t}=this;if(t)for(let i=0;i<e.length;i++)if(e[i].media===t)return e[i];return null}createAsset(e,t,i,s,r,n){const a={parentIdentifier:e.identifier,identifier:Df(e,n,t),duration:r,startOffset:i,timelineStart:s,uri:n};return this.createAssetPlayer(e,a,t)}createAssetPlayer(e,t,i){this.log(`create HLSAssetPlayer for ${Cf(t)}`);const s=this.hls,r=s.userConfig;let n=r.videoPreference;const a=s.loadLevelObj||s.levels[s.currentLevel];(n||a)&&(n=za({},n),a.videoCodec&&(n.videoCodec=a.videoCodec),a.videoRange&&(n.allowedVideoRanges=[a.videoRange]));const o=s.audioTracks[s.audioTrack],l=s.subtitleTracks[s.subtitleTrack];let d=0;if(this.primaryLive||e.appendInPlace){const e=this.timelinePos-t.timelineStart;if(e>1){const i=t.duration;i&&e<i&&(d=e)}}const h=t.identifier,c=qa(qa({},r),{},{autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:s.sessionId,assetPlayerId:h,abrEwmaDefaultEstimate:s.bandwidthEstimate,interstitialsController:void 0,startPosition:d,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:n,audioPreference:o||r.audioPreference,subtitlePreference:l||r.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(c.timelineOffset=t.timelineStart));const u=c.cmcd;null!=u&&u.sessionId&&u.contentId&&(c.cmcd=za({},u,{contentId:Lf(t.uri)})),this.getAssetPlayer(h)&&this.warn(`Duplicate date range identifier ${e} and asset ${h}`);const f=new If(this.HlsPlayerClass,c,e,t);this.playerQueue.push(f),e.assetList[i]=t;const m=s=>{if(s.live){const t=new Error(`Interstitials MUST be VOD assets ${e}`),s={fatal:!0,type:Ia.OTHER_ERROR,details:Ra.INTERSTITIAL_ASSET_ITEM_ERROR,error:t};return void this.handleAssetItemError(s,e,this.schedule.findEventIndex(e.identifier),i,t.message)}const r=s.edge-s.fragmentStart,n=t.duration;(null===n||r>n)&&(this.log(`Interstitial asset "${h}" duration change ${n} > ${r}`),t.duration=r,this.updateSchedule())};f.on(Oa.LEVEL_UPDATED,((e,{details:t})=>m(t))),f.on(Oa.LEVEL_PTS_UPDATED,((e,{details:t})=>m(t)));const p=(e,t)=>{const i=this.getAssetPlayer(h);if(i&&t.tracks){i.off(Oa.BUFFER_CODECS,p),i.tracks=t.tracks;const e=this.primaryMedia;this.bufferingAsset===i.assetItem&&e&&!i.media&&this.bufferAssetPlayer(i,e)}};f.on(Oa.BUFFER_CODECS,p);const g=()=>{var i;const s=this.getAssetPlayer(h);if(this.log(`buffered to end of asset ${s}`),!s)return;const r=this.schedule.findEventIndex(e.identifier),n=e.findAssetIndex(t),a=n+1,o=null==(i=this.schedule.items)?void 0:i[r];if(this.isInterstitial(o))if(-1===n||e.isAssetPastPlayoutLimit(a)||e.assetList[a].error){var l;const e=null==(l=this.schedule.items)?void 0:l[r+1];e&&this.bufferedToItem(e)}else this.bufferedToItem(o,a)};f.on(Oa.BUFFERED_TO_END,g);const y=t=>()=>{if(!this.getAssetPlayer(h))return;this.shouldPlay=!0;const i=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,i,t)};return f.once(Oa.MEDIA_ENDED,y(i)),f.once(Oa.PLAYOUT_LIMIT_REACHED,y(1/0)),f.on(Oa.ERROR,((t,s)=>{const r=this.getAssetPlayer(h);if(s.details!==Ra.BUFFER_STALLED_ERROR)this.handleAssetItemError(s,e,this.schedule.findEventIndex(e.identifier),i,`Asset player error ${s.error} ${e}`);else if(null!=r&&r.media){const t=r.currentTime,i=r.duration-t;t&&e.appendInPlace&&i/r.media.playbackRate<.5?(this.log(`Advancing buffer past end of asset ${h} ${e} at ${r.media.currentTime}`),g()):(this.warn(`Stalled at ${t} of ${t+i} in asset ${h} ${e}`),this.onTimeupdate(),this.checkBuffer(!0))}})),f.on(Oa.DESTROYING,(()=>{if(!this.getAssetPlayer(h))return;const t=new Error(`Asset player destroyed unexpectedly ${h}`),s={fatal:!0,type:Ia.OTHER_ERROR,details:Ra.INTERSTITIAL_ASSET_ITEM_ERROR,error:t};this.handleAssetItemError(s,e,this.schedule.findEventIndex(e.identifier),i,t.message)})),this.hls.trigger(Oa.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:i,event:e,player:f}),f}clearInterstitial(e,t){e.assetList.forEach((e=>{this.clearAssetPlayer(e.identifier,t)})),e.reset()}clearAssetPlayer(e,t){const i=this.getAssetPlayerQueueIndex(e);if(-1!==i){this.log(`clearAssetPlayer "${e}" toSegment: ${t?Of(t):t}`);const s=this.playerQueue[i];this.transferMediaFromPlayer(s,t),this.playerQueue.splice(i,1),s.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}startAssetPlayer(e,t,i,s,r){const{interstitial:n,assetItem:a,assetId:o}=e,l=n.assetList.length,d=this.playingAsset;this.endedAsset=null,this.playingAsset=a,d&&d.identifier===o||(d&&(this.clearAssetPlayer(d.identifier,i[s]),delete d.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${l} ${e}`),this.hls.trigger(Oa.INTERSTITIAL_ASSET_STARTED,{asset:a,assetListIndex:t,event:n,schedule:i.slice(0),scheduleIndex:s,player:e})),this.bufferAssetPlayer(e,r)}bufferAssetPlayer(e,t){var i,s;const{interstitial:r,assetItem:n,assetId:a}=e,o=this.schedule.findEventIndex(r.identifier),l=null==(i=this.schedule.items)?void 0:i[o];if(!l)return;this.setBufferingItem(l),this.bufferingAsset=n;
2const d=this.getBufferingPlayer();if(d===e)return;const h=r.appendInPlace;if(h&&!1===(null==d?void 0:d.interstitial.appendInPlace))return;const c=(null==d?void 0:d.tracks)||(null==(s=this.detachedData)?void 0:s.tracks)||this.requiredTracks;if(h&&n!==this.playingAsset){if(!e.tracks)return;if(c&&!so(c,e.tracks)){const t=new Error(`Asset "${a}" SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(c)}')`),i={fatal:!0,type:Ia.OTHER_ERROR,details:Ra.INTERSTITIAL_ASSET_ITEM_ERROR,error:t},s=r.findAssetIndex(n);return void this.handleAssetItemError(i,r,o,s,t.message)}}this.transferMediaTo(e,t)}handleAssetItemError(e,t,i,s,r){if(e.details===Ra.BUFFER_STALLED_ERROR)return;const n=t.assetList[s]||null;let a=null;if(n){const e=this.getAssetPlayerQueueIndex(n.identifier);a=this.playerQueue[e]||null}const o=this.schedule.items,l=za({},e,{fatal:!1,errorAction:ed(!0),asset:n,assetListIndex:s,event:t,schedule:o,scheduleIndex:i,player:a});if(this.warn(`Asset item error: ${e.error}`),this.hls.trigger(Oa.INTERSTITIAL_ASSET_ERROR,l),!e.fatal)return;const d=new Error(r);n&&(this.playingAsset!==n&&this.clearAssetPlayer(n.identifier,null),n.error=d),t.assetList.some((e=>!e.error))?t.appendInPlace&&(t.error=d):t.error=d,this.primaryFallback(t)}primaryFallback(e){const t=e.timelineStart,i=this.effectivePlayingItem;if(this.updateSchedule(),i){this.log(`Fallback to primary from event "${e.identifier}" start: ${t} pos: ${this.timelinePos} playing: ${i?Of(i):"<none>"} error: ${e.error}`),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t));let s=this.timelinePos;-1===s&&(s=this.hls.startPosition);const r=this.updateItem(i,s);if(this.itemsMatch(i,r))this.clearInterstitial(e,null);else{const e=this.schedule.findItemIndexAtTime(s);this.setSchedulePosition(e)}}else this.checkStart()}onAssetListLoaded(e,t){var i;const s=t.event,r=s.identifier,n=t.assetListResponse.ASSETS;if(!this.schedule.hasEvent(r))return;const a=s.timelineStart,o=s.duration;let l=0;n.forEach(((e,t)=>{const i=parseFloat(e.DURATION);this.createAsset(s,t,l,a+l,i,e.URI),l+=i})),s.duration=l,this.log(`Loaded asset-list with duration: ${l} (was: ${o}) ${s}`);const d=this.waitingItem,h=(null==d?void 0:d.event.identifier)===r;this.updateSchedule();const c=null==(i=this.bufferingItem)?void 0:i.event;if(h){var u;const e=this.schedule.findEventIndex(r),t=null==(u=this.schedule.items)?void 0:u[e];if(t){if(!this.playingItem&&this.timelinePos>t.end){if(this.schedule.findItemIndexAtTime(this.timelinePos)!==e)return s.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${s}`),void this.primaryFallback(s)}this.setBufferingItem(t)}this.setSchedulePosition(e)}else if((null==c?void 0:c.identifier)===r&&c.appendInPlace){const e=s.assetList[0],t=this.getAssetPlayer(e.identifier),i=this.primaryMedia;e&&t&&i&&this.bufferAssetPlayer(t,i)}}onError(e,t){switch(t.details){case Ra.ASSET_LIST_PARSING_ERROR:case Ra.ASSET_LIST_LOAD_ERROR:case Ra.ASSET_LIST_LOAD_TIMEOUT:{const e=t.interstitial;e&&this.primaryFallback(e);break}case Ra.BUFFER_STALLED_ERROR:this.onTimeupdate(),this.checkBuffer(!0)}}}});function Um(e){return e&&"object"==typeof e?Array.isArray(e)?e.map(Um):Object.keys(e).reduce(((t,i)=>(t[i]=Um(e[i]),t)),{}):e}function Vm(e,t){const i=e.loader;if(i!==Fm&&i!==Hm)t.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1;else{(function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(e){}return!1})()&&(e.loader=Fm,e.progressive=!0,e.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}}class Gm extends bd{constructor(e,t){super("gap-controller",e.logger),this.hls=null,this.fragmentTracker=null,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var e;null!=(e=this.media)&&e.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{var e;this.hls&&(this.ended=(null==(e=this.media)?void 0:e.currentTime)||1,this.hls.trigger(Oa.MEDIA_ENDED,{stalled:!1}))},this.hls=e,this.fragmentTracker=t,this.registerListeners()}registerListeners(){const{hls:e}=this;
vendor: 6,112 bytes, line 2
2e&&(e.on(Oa.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Oa.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Oa.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(Oa.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Oa.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Oa.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(e,t){this.setInterval(100),this.mediaSource=t.mediaSource;const i=this.media=t.media;Ff(i,"playing",this.onMediaPlaying),Ff(i,"waiting",this.onMediaWaiting),Ff(i,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:i}=this;i&&($f(i,"playing",this.onMediaPlaying),$f(i,"waiting",this.onMediaWaiting),$f(i,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(e,t){this.buffered=t.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var e;if(null==(e=this.media)||!e.readyState||!this.hasBuffered)return;const t=this.media.currentTime;this.poll(t,this.lastCurrentTime),this.lastCurrentTime=t}poll(e,t){var i,s;const r=null==(i=this.hls)?void 0:i.config;if(!r)return;const{media:n,stalled:a}=this;if(!n)return;const{seeking:o}=n,l=this.seeking&&!o,d=!this.seeking&&o,h=n.paused&&!o||n.ended||0===n.playbackRate;if(this.seeking=o,e!==t)return t&&(this.ended=0),this.moved=!0,o||(this.nudgeRetry=0,r.nudgeOnVideoHole&&!h&&e>t&&this.nudgeOnVideoHole(e,t)),void(0===this.waiting&&this.stallResolved(e));if(d||l)return void(l&&this.stallResolved(e));if(h)return this.nudgeRetry=0,this.stallResolved(e),void(!this.ended&&n.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(Oa.MEDIA_ENDED,{stalled:!1})));if(!Md.getBuffered(n).length)return void(this.nudgeRetry=0);const c=Md.bufferInfo(n,e,0),u=c.nextStart||0,f=this.fragmentTracker;if(o&&f&&this.hls){const t=zm(this.hls.inFlightFragments,e),i=c.len>2,s=!u||t||u-e>2&&!f.getPartialFragment(e);if(i||s)return;this.moved=!1}const m=null==(s=this.hls)?void 0:s.latestLevelDetails;if(!this.moved&&null!==this.stalled&&f){if(!(c.len>0)&&!u)return;const t=Math.max(u,c.start||0)-e,i=!(null==m||!m.live)?2*m.targetduration:2,s=f.getPartialFragment(e);if(t>0&&(t<=i||s))return void(n.paused||this._trySkipBufferHole(s))}const p=r.detectStallWithCurrentTimeMs,g=self.performance.now(),y=this.waiting;if(null===a)return void(this.stalled=y>0&&g-y<p?y:g);const _=g-a;if(!o&&(_>=p||y)&&this.hls){var v;if("ended"===(null==(v=this.mediaSource)?void 0:v.readyState)&&(null==m||!m.live)&&Math.abs(e-((null==m?void 0:m.edge)||0))<1){if(this.ended)return;return this.ended=e||1,void this.hls.trigger(Oa.MEDIA_ENDED,{stalled:!0})}if(this._reportStall(c),!this.media||!this.hls)return}const b=Md.bufferInfo(n,e,r.maxBufferHole);this._tryFixBufferStall(b,_)}stallResolved(e){const t=this.stalled;if(t&&this.hls&&(this.stalled=null,this.stallReported)){const i=self.performance.now()-t;this.log(`playback not stuck anymore @${e}, after ${Math.round(i)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(Oa.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var i;const s=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&null!=(i=this.buffered.audio)&&i.length&&s&&s.length>1&&e>s.end(0)){const i=Md.bufferedInfo(Md.timeRangesToArray(this.buffered.audio),e,0);if(i.len>1&&t>=i.start){const i=Md.timeRangesToArray(s),r=Md.bufferedInfo(i,t,0).bufferedIndex;if(r>-1&&r<i.length-1){const t=Md.bufferedInfo(i,e,0).bufferedIndex,s=i[r].end,n=i[r+1].start;if((-1===t||t>r)&&n-s<1&&e-s<2){const i=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${s} -> ${n} buffered index: ${t}`);this.warn(i.message),this.media.currentTime+=1e-6;const r=this.fragmentTracker.getPartialFragment(e)||void 0,a=Md.bufferInfo(this.media,e,0);this.hls.trigger(Oa.ERROR,{type:Ia.MEDIA_ERROR,details:Ra.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:i,reason:i.message,frag:r,buffer:a.len,bufferInfo:a})}}}}}_tryFixBufferStall(e,t){var i,s;const{fragmentTracker:r,media:n}=this,a=null==(i=this.hls)?void 0:i.config;if(!n||!r||!a)return;const o=n.currentTime,l=null==(s=this.hls)?void 0:s.latestLevelDetails,d=r.getPartialFragment(o);if(d||null!=l&&l.live&&o<l.fragmentStart){if(this._trySkipBufferHole(d)||!this.media)return}const h=e.buffered;(h&&h.length>1&&e.len>a.maxBufferHole||e.nextStart&&e.nextStart-o<a.maxBufferHole)&&(t>1e3*a.highBufferWatchdogPeriod||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}_reportStall(e){const{hls:t,media:i,stallReported:s,stalled:r}=this;if(!s&&null!==r&&i&&t){this.stallReported=!0;const s=new Error(`Playback stalling at @${i.currentTime} due to low buffer (${Dl(e)})`);this.warn(s.message),t.trigger(Oa.ERROR,{type:Ia.MEDIA_ERROR,details:Ra.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:e.len,bufferInfo:e,stalled:{start:r}})}}_trySkipBufferHole(e){var t;const{fragmentTracker:i,media:s}=this,r=null==(t=this.hls)?void 0:t.config;if(!s||!i||!r)return 0;const n=s.currentTime,a=Md.bufferInfo(s,n,0),o=n<a.start?a.start:a.nextStart;if(o&&this.hls){const t=a.len<=r.maxBufferHole,d=a.len>0&&a.len<1&&s.readyState<3,h=o-n;if(h>0&&(t||d)){if(h>r.maxBufferHole){let t=!1;if(0===n){const e=i.getAppendedFrag(0,Ba);e&&o<e.end&&(t=!0)}if(!t){const t=e||i.getAppendedFrag(n,Ba);if(t){var l;if(null==(l=this.hls.loadLevelObj)||!l.details)return 0;if(zm(this.hls.inFlightFragments,o))return 0;let e=!1,s=t.end;for(;s<o;){const t=i.getPartialFragment(s);if(!t){e=!0;break}s+=t.duration}if(e)return 0}}}const t=Math.max(o+.05,n+.1);if(this.warn(`skipping hole, adjusting currentTime from ${n} to ${t}`),this.moved=!0,s.currentTime=t,null==e||!e.gap){const i=new Error(`fragment loaded with buffer holes, seeking from ${n} to ${t}`);this.hls.trigger(Oa.ERROR,{type:Ia.MEDIA_ERROR,details:Ra.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:i,reason:i.message,frag:e||void 0,buffer:a.len,bufferInfo:a})}return t}}return 0}_tryNudgeBuffer(e){const{hls:t,media:i,nudgeRetry:s}=this,r=null==t?void 0:t.config;if(!i||!r)return 0;
2const n=i.currentTime;if(this.nudgeRetry++,s<r.nudgeMaxRetry){const a=n+(s+1)*r.nudgeOffset,o=new Error(`Nudging 'currentTime' from ${n} to ${a}`);this.warn(o.message),i.currentTime=a,t.trigger(Oa.ERROR,{type:Ia.MEDIA_ERROR,details:Ra.BUFFER_NUDGE_ON_STALL,error:o,fatal:!1,buffer:e.len,bufferInfo:e})}else{const i=new Error(`Playhead still not moving while enough data buffered @${n} after ${r.nudgeMaxRetry} nudges`);this.error(i.message),t.trigger(Oa.ERROR,{type:Ia.MEDIA_ERROR,details:Ra.BUFFER_STALLED_ERROR,error:i,fatal:!0,buffer:e.len,bufferInfo:e})}}}function zm(e,t){const i=Wm(e.main);if(i&&i.start<=t)return i;const s=Wm(e.audio);return s&&s.start<=t?s:null}function Wm(e){if(!e)return null;switch(e.state){case Bh:case Nh:case Wh:case qh:return null}return e.frag}function qm(){if("undefined"!=typeof self)return self.VTTCue||self.TextTrackCue}function Km(e,t,i,s,r){let n=new e(t,i,"");try{n.value=s,r&&(n.type=r)}catch(a){n=new e(t,i,Dl(r?qa({type:r},s):s))}return n}const Jm=(()=>{const e=qm();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class Xm{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(Oa.EVENT_CUE_ENTER,{})},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:e}=this;e.on(Oa.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(Oa.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Oa.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Oa.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(Oa.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(Oa.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(Oa.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(Oa.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(Oa.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Oa.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Oa.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(Oa.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(Oa.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(Oa.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}onMediaAttaching(e,t){var i;this.media=t.media,!1===(null==(i=t.overrides)?void 0:i.cueRemoval)&&(this.removeCues=!1)}onMediaAttached(){const e=this.hls.latestLevelDetails;e&&this.updateDateRangeCues(e)}onMediaDetaching(e,t){this.media=null;!!t.transferMedia||(this.id3Track&&(this.removeCues&&Tf(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;t<e.length;t++){const i=e[t];if("metadata"===i.kind&&"id3"===i.label)return bf(i,this.media),i}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:i,enableID3MetadataCues:s}}}=this;if(!i&&!s)return;const{samples:r}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const n=qm();if(n)for(let e=0;e<r.length;e++){const t=r[e].type;if(t===Dc.emsg&&!i||!s)continue;const a=Sc(r[e].data);if(a){const i=r[e].pts;let s=i+r[e].duration;s>Jm&&(s=Jm);s-i<=0&&(s=i+.25);for(let e=0;e<a.length;e++){const r=a[e];if(!Lc(r)){this.updateId3CueEnds(i,t);const e=Km(n,i,s,r,t);e&&this.id3Track.addCue(e)}}}}}updateId3CueEnds(e,t){var i;const s=null==(i=this.id3Track)?void 0:i.cues;if(s)for(let i=s.length;i--;){const r=s[i];r.type===t&&r.startTime<e&&r.endTime===Jm&&(r.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:i,type:s}){const{id3Track:r,hls:n}=this;if(!n)return;const{config:{enableEmsgMetadataCues:a,enableID3MetadataCues:o}}=n;if(r&&(a||o)){let e;e="audio"===s?e=>e.type===Dc.audioId3&&o:"video"===s?e=>e.type===Dc.emsg&&a:e=>e.type===Dc.audioId3&&o||e.type===Dc.emsg&&a,Mf(r,t,i,e)}}onLevelUpdated(e,{details:t}){this.updateDateRangeCues(t,!0)}onLevelPtsUpdated(e,t){Math.abs(t.drift)>.01&&this.updateDateRangeCues(t.details)}updateDateRangeCues(e,t){if(!this.media||!e.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{id3Track:i}=this,{dateRanges:s}=e,r=Object.keys(s);let n=this.dateRangeCuesAppended;var a;if(i&&t)if(null!=(a=i.cues)&&a.length){const e=Object.keys(n).filter((e=>!r.includes(e)));for(let t=e.length;t--;){const s=e[t],r=n[s].cues;delete n[s],Object.keys(r).forEach((e=>{try{const t=r[e];t.removeEventListener("enter",this.onEventCueEnter),i.removeCue(t)}catch(e){}}))}}else n=this.dateRangeCuesAppended={};const o=e.fragments[e.fragments.length-1];if(0===r.length||!Aa(null==o?void 0:o.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const l=qm();for(let e=0;e<r.length;e++){const t=r[e],i=s[t],a=i.startTime,o=n[t],c=(null==o?void 0:o.cues)||{};
vendor: 6,297 bytes, line 2
2let u=(null==o?void 0:o.durationKnown)||!1,f=Jm;const{duration:m,endDate:p}=i;if(p&&null!==m)f=a+m,u=!0;else if(i.endOnNext&&!u){const e=r.reduce(((e,t)=>{if(t!==i.id){const r=s[t];if(r.class===i.class&&r.startDate>i.startDate&&(!e||i.startDate<e.startDate))return r}return e}),null);e&&(f=e.startTime,u=!0)}const g=Object.keys(i.attr);for(let e=0;e<g.length;e++){const s=g[e];if("ID"===(h=s)||"CLASS"===h||"CUE"===h||"START-DATE"===h||"DURATION"===h||"END-DATE"===h||"END-ON-NEXT"===h)continue;const r=c[s];if(r)u&&!o.durationKnown?r.endTime=f:Math.abs(r.startTime-a)>.01&&(r.startTime=a,r.endTime=f);else if(l){let e=i.attr[s];Cd(s)&&(d=e,e=Uint8Array.from(d.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer);const r=Km(l,a,f,{key:s,data:e},Dc.dateRange);r&&(r.id=t,this.id3Track.addCue(r),c[s]=r,this.hls.config.interstitialsController&&("X-ASSET-LIST"!==s&&"X-ASSET-URL"!==s||r.addEventListener("enter",this.onEventCueEnter)))}}n[t]={cues:c,dateRange:i,durationKnown:u}}var d,h}}class Qm{constructor(e){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=()=>{const{media:e}=this,t=this.levelDetails;if(!e||!t)return;this.currentTime=e.currentTime;const i=this.computeLatency();if(null===i)return;this._latency=i;const{lowLatencyMode:s,maxLiveSyncPlaybackRate:r}=this.config;if(!s||1===r||!t.live)return;const n=this.targetLatency;if(null===n)return;const a=i-n;if(a<Math.min(this.maxLatency,n+t.targetduration)&&a>.05&&this.forwardBufferLength>1){const t=Math.min(2,Math.max(1,r)),i=Math.round(2/(1+Math.exp(-.75*a-this.edgeStalled))*20)/20,s=Math.min(t,Math.max(1,i));this.changeMediaPlaybackRate(e,s)}else 1!==e.playbackRate&&0!==e.playbackRate&&this.changeMediaPlaybackRate(e,1)},this.hls=e,this.config=e.config,this.registerListeners()}get levelDetails(){var e;return(null==(e=this.hls)?void 0:e.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:e}=this;if(void 0!==e.liveMaxLatencyDuration)return e.liveMaxLatencyDuration;const t=this.levelDetails;return t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const e=this.levelDetails;if(null===e||null===this.hls)return null;const{holdBack:t,partHoldBack:i,targetduration:s}=e,{liveSyncDuration:r,liveSyncDurationCount:n,lowLatencyMode:a}=this.config,o=this.hls.userConfig;let l=a&&i||t;(this._targetLatencyUpdated||o.liveSyncDuration||o.liveSyncDurationCount||0===l)&&(l=void 0!==r?r:n*s);const d=s;return l+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,d)}set targetLatency(e){this.stallCount=0,this.config.liveSyncDuration=e,this._targetLatencyUpdated=!0}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency;if(null===e||null===t)return null;const i=this.levelDetails;if(null===i)return null;const s=i.edge,r=e-t-this.edgeStalled,n=s-i.totalduration,a=s-(this.config.lowLatencyMode&&i.partTarget||i.targetduration);return Math.min(Math.max(n,r),a)}get drift(){const e=this.levelDetails;return null===e?1:e.drift}get edgeStalled(){const e=this.levelDetails;if(null===e)return 0;const t=3*(this.config.lowLatencyMode&&e.partTarget||e.targetduration);return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e}=this,t=this.levelDetails;if(!e||!t)return 0;const i=e.buffered.length;return(i?e.buffered.end(i-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:e}=this;e&&(e.on(Oa.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(Oa.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Oa.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(Oa.ERROR,this.onError,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(Oa.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(Oa.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Oa.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(Oa.ERROR,this.onError,this))}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){t.advanced&&this.onTimeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(e,t){var i;t.details===Ra.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&null!=(i=this.levelDetails)&&i.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(e,t){var i,s;e.playbackRate!==t&&(null==(i=this.hls)||i.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${null==(s=this.targetLatency)?void 0:s.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${e.playbackRate} to ${t}`),e.playbackRate=t)}estimateLiveEdge(){const e=this.levelDetails;return null===e?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return null===e?null:e-this.currentTime}}class Zm extends Du{constructor(e,t){super(e,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=t,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Oa.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(Oa.LEVEL_LOADED,this.onLevelLoaded,this),e.on(Oa.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(Oa.FRAG_BUFFERED,this.onFragBuffered,this),e.on(Oa.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Oa.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(Oa.LEVEL_LOADED,this.onLevelLoaded,this),e.off(Oa.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(Oa.FRAG_BUFFERED,this.onFragBuffered,this),e.off(Oa.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}
2stopLoad(){this._levels.forEach((e=>{e.loadError=0,e.fragmentError=0})),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(e,t){this.resetLevels()}onManifestLoaded(e,t){const i=this.hls.config.preferManagedMediaSource,s=[],r={},n={};let a=!1,o=!1,l=!1;t.levels.forEach((e=>{var t;const d=e.attrs;let{audioCodec:h,videoCodec:c}=e;h&&(e.audioCodec=h=ll(h,i)||void 0),0===(null==(t=c)?void 0:t.indexOf("avc1"))&&(c=e.videoCodec=function(e){const t=e.split(",");for(let e=0;e<t.length;e++){const i=t[e].split(".");if(i.length>2){let s=i.shift()+".";s+=parseInt(i.shift()).toString(16),s+=("000"+parseInt(i.shift()).toString(16)).slice(-4),t[e]=s}}return t.join(",")}(c));const{width:u,height:f,unknownCodecs:m}=e;let p=m?m.length:0;if(m)for(let t=p;t--;){const i=m[t];this.isAudioSupported(i)?(e.audioCodec=h=h?`${h},${i}`:i,p--,Zo.audio[h.substring(0,4)]=2):this.isVideoSupported(i)&&(e.videoCodec=c=c?`${c},${i}`:i,p--,Zo.video[c.substring(0,4)]=2)}if(a||(a=!(!u||!f)),o||(o=!!c),l||(l=!!h),p||h&&!this.isAudioSupported(h)||c&&!this.isVideoSupported(c))return void this.log(`Some or all CODECS not supported "${d.CODECS}"`);const{CODECS:g,"FRAME-RATE":y,"HDCP-LEVEL":_,"PATHWAY-ID":v,RESOLUTION:b,"VIDEO-RANGE":w}=d,T=`${`${v||"."}-`}${e.bitrate}-${b}-${y}-${g}-${w}-${_}`;if(r[T])if(r[T].uri===e.url||e.attrs["PATHWAY-ID"])r[T].addGroupId("audio",d.AUDIO),r[T].addGroupId("text",d.SUBTITLES);else{const t=n[T]+=1;e.attrs["PATHWAY-ID"]=new Array(t+1).join(".");const i=this.createLevel(e);r[T]=i,s.push(i)}else{const t=this.createLevel(e);r[T]=t,n[T]=1,s.push(t)}})),this.filterAndSortMediaOptions(s,t,a,o,l)}createLevel(e){const t=new Ll(e),i=e.supplemental;if(null!=i&&i.videoCodec&&!this.isVideoSupported(i.videoCodec)){const e=new Error(`SUPPLEMENTAL-CODECS not supported "${i.videoCodec}"`);this.log(e.message),t.supportedResult=ml(e,[])}return t}isAudioSupported(e){return tl(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return tl(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,i,s,r){let n=[],a=[],o=e;if((i||s)&&r&&(o=o.filter((({videoCodec:e,videoRange:t,width:i,height:s})=>(!!e||!(!i||!s))&&function(e){return!!e&&vl.indexOf(e)>-1}(t)))),0===o.length)return void Promise.resolve().then((()=>
vendor: 52,916 bytes, line 2
2{if(this.hls){let e="no level with compatible codecs found in manifest",i=e;t.levels.length&&(i=`one or more CODECS in variant not supported: ${Dl(t.levels.map((e=>e.attrs.CODECS)).filter(((e,t,i)=>i.indexOf(e)===t)))}`,this.warn(i),e+=` (${i})`);const s=new Error(e);this.hls.trigger(Oa.ERROR,{type:Ia.MEDIA_ERROR,details:Ra.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:s,reason:i})}}));t.audioTracks&&(n=t.audioTracks.filter((e=>!e.audioCodec||this.isAudioSupported(e.audioCodec))),ep(n)),t.subtitles&&(a=t.subtitles,ep(a));const l=o.slice(0);o.sort(((e,t)=>{if(e.attrs["HDCP-LEVEL"]!==t.attrs["HDCP-LEVEL"])return(e.attrs["HDCP-LEVEL"]||"")>(t.attrs["HDCP-LEVEL"]||"")?1:-1;if(i&&e.height!==t.height)return e.height-t.height;if(e.frameRate!==t.frameRate)return e.frameRate-t.frameRate;if(e.videoRange!==t.videoRange)return vl.indexOf(e.videoRange)-vl.indexOf(t.videoRange);if(e.videoCodec!==t.videoCodec){const i=rl(e.videoCodec),s=rl(t.videoCodec);if(i!==s)return s-i}if(e.uri===t.uri&&e.codecSet!==t.codecSet){const i=nl(e.codecSet),s=nl(t.codecSet);if(i!==s)return s-i}return e.averageBitrate!==t.averageBitrate?e.averageBitrate-t.averageBitrate:0}));let d=l[0];if(this.steering&&(o=this.steering.filterParsedLevels(o),o.length!==l.length))for(let e=0;e<l.length;e++)if(l[e].pathwayId===o[0].pathwayId){d=l[e];break}this._levels=o;for(let e=0;e<o.length;e++)if(o[e]===d){var h;this._firstLevel=e;const t=d.bitrate,i=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${o.length} level(s) found, first bitrate: ${t}`),void 0===(null==(h=this.hls.userConfig)?void 0:h.abrEwmaDefaultEstimate)){const e=Math.min(t,this.hls.config.abrEwmaDefaultEstimateMax);e>i&&i===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=e)}break}const c=r&&!s,u=this.hls.config,f=!(!u.audioStreamController||!u.audioTrackController),m={levels:o,audioTracks:n,subtitleTracks:a,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:r,video:s,altAudio:f&&!c&&n.some((e=>!!e.url))};this.hls.trigger(Oa.MANIFEST_PARSED,m)}get levels(){return 0===this._levels.length?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(0===t.length)return;if(e<0||e>=t.length){const i=new Error("invalid level idx"),s=e<0;if(this.hls.trigger(Oa.ERROR,{type:Ia.OTHER_ERROR,details:Ra.LEVEL_SWITCH_ERROR,level:e,fatal:s,error:i,reason:i.message}),s)return;e=Math.min(e,t.length-1)}const i=this.currentLevelIndex,s=this.currentLevel,r=s?s.attrs["PATHWAY-ID"]:void 0,n=t[e],a=n.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=n,i===e&&s&&r===a)return;this.log(`Switching to level ${e} (${n.height?n.height+"p ":""}${n.videoRange?n.videoRange+" ":""}${n.codecSet?n.codecSet+" ":""}@${n.bitrate})${a?" with Pathway "+a:""} from level ${i}${r?" with Pathway "+r:""}`);const o={level:e,attrs:n.attrs,details:n.details,bitrate:n.bitrate,averageBitrate:n.averageBitrate,maxBitrate:n.maxBitrate,realBitrate:n.realBitrate,width:n.width,height:n.height,codecSet:n.codecSet,audioCodec:n.audioCodec,videoCodec:n.videoCodec,audioGroups:n.audioGroups,subtitleGroups:n.subtitleGroups,loaded:n.loaded,loadError:n.loadError,fragmentError:n.fragmentError,name:n.name,id:n.id,uri:n.uri,url:n.url,urlId:0,audioGroupIds:n.audioGroupIds,textGroupIds:n.textGroupIds};this.hls.trigger(Oa.LEVEL_SWITCHING,o);const l=n.details;if(!l||l.live){const e=this.switchParams(n.uri,null==s?void 0:s.details,l);this.loadPlaylist(e)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,void 0===this._startLevel&&(this._startLevel=e),-1!==e&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(void 0===this._startLevel){const e=this.hls.config.startLevel;return void 0!==e?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(e){if(this.steering){const t=this.steering.pathways(),i=e.filter((e=>-1!==t.indexOf(e)));if(e.length<1)return void this.warn(`pathwayPriority ${e} should contain at least one pathway from list: ${t}`);this.steering.pathwayPriority=i}}onError(e,t){!t.fatal&&t.context&&t.context.type===Fa&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(void 0!==t&&t.type===Ba){const e=t.elementaryStreams;if(!Object.keys(e).some((t=>!!e[t])))return;const i=this._levels[t.level];null!=i&&i.loadError&&(this.log(`Resetting level error count of ${i.loadError} on frag buffered`),i.loadError=0)}}onLevelLoaded(e,t){var i;const{level:s,details:r}=t,n=t.levelInfo;var a;if(!n)return this.warn(`Invalid level index ${s}`),void(null!=(a=t.deliveryDirectives)&&a.skip&&(r.deltaUpdateFailed=!0));if(n===this.currentLevel||t.withoutMultiVariant){0===n.fragmentError&&(n.loadError=0);let e=n.details;e===t.details&&e.advanced&&(e=void 0),this.playlistLoaded(s,t,e)}else null!=(i=t.deliveryDirectives)&&i.skip&&(r.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const i=this.getUrlWithDirectives(e.uri,t),s=this.currentLevelIndex,r=e.attrs["PATHWAY-ID"],n=e.details,a=null==n?void 0:n.age;this.log(`Loading level index ${s}${void 0!==(null==t?void 0:t.msn)?" at sn "+t.msn+" part "+t.part:""}${r?" Pathway "+r:""}${a&&n.live?" age "+a.toFixed(1)+(n.type?" "+n.type||0:""):""} ${i}`),this.hls.trigger(Oa.LEVEL_LOADING,{url:i,level:s,levelInfo:e,pathwayId:e.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}get nextLoadLevel(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;if(1===this._levels.length)return;const i=this._levels.filter(((t,i)=>i!==e||(this.steering&&this.steering.removeLevel(t),t===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,t.details&&t.details.fragments.forEach((e=>e.level=-1))),!1)));Ch(i),this._levels=i,this.currentLevelIndex>-1&&null!=(t=this.currentLevel)&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const s=i.length-1;this._firstLevel=Math.min(this._firstLevel,s),this._startLevel&&(this._startLevel=Math.min(this._startLevel,s)),this.hls.trigger(Oa.LEVELS_UPDATED,{levels:i})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:i}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(Oa.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:i}))}}function ep(e){const t={};e.forEach((e=>{const i=e.groupId||"";e.id=t[i]=t[i]||0,t[i]++}))}function tp(){return self.SourceBuffer||self.WebKitSourceBuffer}function ip(){if(!io())return!1;const e=tp();return!e||e.prototype&&"function"==typeof e.prototype.appendBuffer&&"function"==typeof e.prototype.remove}class sp extends Xh{constructor(e,t,i){super(e,t,i,"stream-controller",Ba),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const e=this.media,t=e?e.currentTime:null;if(null===t||!Aa(t))return;if(this.log(`Media seeked to ${t.toFixed(3)}`),!this.getBufferedFrag(t))return;const i=this.getFwdBufferInfoAtPos(e,t,Ba,0);null!==i&&0!==i.len?this.tick():this.warn(`Main forward buffer length at ${t} on "seeked" event ${i?i.len:"empty"})`)},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(Oa.MANIFEST_PARSED,this.onManifestParsed,this),e.on(Oa.LEVEL_LOADING,this.onLevelLoading,this),e.on(Oa.LEVEL_LOADED,this.onLevelLoaded,this),e.on(Oa.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(Oa.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(Oa.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(Oa.BUFFER_CREATED,this.onBufferCreated,this),e.on(Oa.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(Oa.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(Oa.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(Oa.MANIFEST_PARSED,this.onManifestParsed,this),e.off(Oa.LEVEL_LOADED,this.onLevelLoaded,this),e.off(Oa.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(Oa.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(Oa.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(Oa.BUFFER_CREATED,this.onBufferCreated,this),e.off(Oa.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(Oa.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(Oa.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(e,t){if(this.levels){const{lastCurrentTime:i,hls:s}=this;if(this.stopLoad(),this.setInterval(100),this.level=-1,!this.startFragRequested){let e=s.startLevel;-1===e&&(s.config.testBandwidth&&this.levels.length>1?(e=0,this.bitrateTest=!0):e=s.firstAutoLevel),s.nextLoadLevel=e,this.level=s.loadLevel,this._hasEnoughToStart=!!t}i>0&&-1===e&&!t&&(this.log(`Override startPosition with lastCurrentTime @${i.toFixed(3)}`),e=i),this.state=Bh,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=Nh}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Jh:{const{levels:e,level:t}=this,i=null==e?void 0:e[t],s=null==i?void 0:i.details;if(s&&(!s.live||this.levelLastLoaded===i&&!this.waitForLive(i))){if(this.waitForCdnTuneIn(s))break;this.state=Bh;break}if(this.hls.nextLoadLevel!==this.level){this.state=Bh;break}break}case Uh:{var e;const t=self.performance.now(),i=this.retryDate;if(!i||t>=i||null!=(e=this.media)&&e.seeking){const{levels:e,level:t}=this,i=null==e?void 0:e[t];this.resetStartWhenNotLoaded(i||null),this.state=Bh}}}this.state===Bh&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var e;super.onTickEnd(),null!=(e=this.media)&&e.readyState&&!1===this.media.seeking&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:i,media:s}=this;if(null===t||!s&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;const r=this.buffering?e.nextLoadLevel:e.loadLevel;if(null==i||!i[r])return;const n=i[r],a=this.getMainFwdBufferInfo();if(null===a)return;const o=this.getLevelDetails();if(o&&this._streamEnded(a,o)){const e={};return 2===this.altAudio&&(e.type="video"),this.hls.trigger(Oa.BUFFER_EOS,e),void(this.state=Wh)}if(!this.buffering)return;e.loadLevel!==r&&-1===e.manualLevel&&this.log(`Adapting to level ${r} from level ${this.level}`),this.level=e.nextLoadLevel=r;const l=n.details;if(!l||this.state===Jh||this.waitForLive(n))return this.level=r,this.state=Jh,void(this.startFragRequested=!1);const d=a.len,h=this.getMaxBufferLength(n.maxBitrate);if(d>=h)return;this.backtrackFragment&&this.backtrackFragment.start>a.end&&(this.backtrackFragment=null);const c=this.backtrackFragment?this.backtrackFragment.start:a.end;let u=this.getNextFragment(c,l);if(this.couldBacktrack&&!this.fragPrevious&&u&&wo(u)&&this.fragmentTracker.getState(u)!==rd){var f;const e=(null!=(f=this.backtrackFragment)?f:u).sn-l.startSN,t=l.fragments[e-1];t&&u.cc===t.cc&&(u=t,this.fragmentTracker.removeFragment(t))}else this.backtrackFragment&&a.len&&(this.backtrackFragment=null);if(u&&this.isLoopLoading(u,c)){if(!u.gap){const e=this.audioOnly&&!this.altAudio?yo:_o,t=(e===_o?this.videoBuffer:this.mediaBuffer)||this.media;t&&this.afterBufferFlushed(t,e,Ba)}u=this.getNextFragmentLoopLoading(u,l,a,Ba,h)}u&&(!u.initSegment||u.initSegment.data||this.bitrateTest||(u=u.initSegment),this.loadFragment(u,n,c))}loadFragment(e,t,i){const s=this.fragmentTracker.getState(e);s===td||s===sd?wo(e)?this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,t)):super.loadFragment(e,t,i):this._loadInitSegment(e,t):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,Ba)}followingBufferedFrag(e){return e?this.getBufferedFrag(e.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:e,media:t}=this;if(null!=t&&t.readyState){let i;const s=this.getAppendedFrag(t.currentTime);s&&s.start>1&&this.flushMainBuffer(0,s.start-1);const r=this.getLevelDetails();if(null!=r&&r.live){const e=this.getMainFwdBufferInfo();if(!e||e.len<2*r.targetduration)return}if(!t.paused&&e){const t=e[this.hls.nextLoadLevel],s=this.fragLastKbps;i=s&&this.fragCurrent?this.fragCurrent.duration*t.maxBitrate/(1e3*s)+1:0}else i=0;const n=this.getBufferedFrag(t.currentTime+i);if(n){const e=this.followingBufferedFrag(n);if(e){this.abortCurrentFrag();const t=e.maxStartPTS?e.maxStartPTS:e.start,i=e.duration,s=Math.max(n.end,t+Math.min(Math.max(i-this.config.maxFragLookUpTolerance,i*(this.couldBacktrack?.5:.125)),i*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(s,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){const e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case Hh:case jh:case Uh:case Gh:case zh:this.state=Bh}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,2===this.altAudio?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const i=t.media;Ff(i,"playing",this.onMediaPlaying),Ff(i,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:i}=this;i&&($f(i,"playing",this.onMediaPlaying),$f(i,"seeked",this.onMediaSeeked)),this.videoBuffer=null,this.fragPlaying=null,super.onMediaDetaching(e,t);!!t.transferMedia||(this._hasEnoughToStart=!1)}onManifestLoading(){super.onManifestLoading(),this.log("Trigger BUFFER_RESET"),this.hls.trigger(Oa.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1}onManifestParsed(e,t){let i=!1,s=!1;t.levels.forEach((e=>{const t=e.audioCodec;t&&(i=i||-1!==t.indexOf("mp4a.40.2"),s=s||-1!==t.indexOf("mp4a.40.5"))})),this.audioCodecSwitch=i&&s&&!function(){var e;const t=tp();return"function"==typeof(null==t||null==(e=t.prototype)?void 0:e.changeType)}(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1}onLevelLoading(e,t){const{levels:i}=this;if(!i||this.state!==Bh)return;const s=t.levelInfo;(!s.details||s.details.live&&(this.levelLastLoaded!==s||s.details.expired)||this.waitForCdnTuneIn(s.details))&&(this.state=Jh)}onLevelLoaded(e,t){var i;const{levels:s,startFragRequested:r}=this,n=t.level,a=t.details,o=a.totalduration;if(!s)return void this.warn(`Levels were reset while loading level ${n}`);this.log(`Level ${n} loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""}, cc [${a.startCC}, ${a.endCC}] duration:${o}`);const l=t.levelInfo,d=this.fragCurrent;!d||this.state!==jh&&this.state!==Uh||d.level!==t.level&&d.loader&&this.abortCurrentFrag();let h=0;if(a.live||null!=(i=l.details)&&i.live){var c;if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;h=this.alignPlaylists(a,l.details,null==(c=this.levelLastLoaded)?void 0:c.details)}if(l.details=a,this.levelLastLoaded=l,r||this.setStartPosition(a,h),this.hls.trigger(Oa.LEVEL_UPDATED,{details:a,level:n}),this.state===Jh){if(this.waitForCdnTuneIn(a))return;this.state=Bh}r&&a.live&&this.synchronizeToLiveEdge(a),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:i}=this;if(!i)return;const s=this.hls.liveSyncPosition,r=this.getLoadPosition(),n=e.fragmentStart,a=e.edge,o=r>=n-t.maxFragLookUpTolerance&&r<=a;if(null!==s&&i.duration>s&&(r<s||!o)){const n=void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!o&&i.readyState<4||r<a-n)&&(this._hasEnoughToStart||(this.nextLoadPosition=s),i.readyState&&(this.warn(`Playback: ${r.toFixed(3)} is located too far from the end of live sliding playlist: ${a}, reset currentTime to : ${s.toFixed(3)}`),i.currentTime=s))}}_handleFragmentLoadProgress(e){var t;const i=e.frag,{part:s,payload:r}=e,{levels:n}=this;if(!n)return void this.warn(`Levels were reset while fragment load was in progress. Fragment ${i.sn} of level ${i.level} will not be buffered`);const a=n[i.level];if(!a)return void this.warn(`Level ${i.level} not found on progress`);const o=a.details;if(!o)return this.warn(`Dropping fragment ${i.sn} of level ${i.level} after level details were reset`),void this.fragmentTracker.removeFragment(i);const l=a.videoCodec,d=o.PTSKnown||!o.live,h=null==(t=i.initSegment)?void 0:t.data,c=this._getAudioCodec(a),u=this.transmuxer=this.transmuxer||new Eu(this.hls,Ba,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),f=s?s.index:-1,m=-1!==f,p=new wd(i.level,i.sn,i.stats.chunkCount,r.byteLength,f,m),g=this.initPTS[i.cc];u.push(r,h,c,l,i,s,o.totalduration,d,p,g)}onAudioTrackSwitching(e,t){const i=this.hls,s=2===this.altAudio;if(Yl(t.url,i))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;const e=this.fragCurrent;e&&(this.log("Switching to main audio track, cancel main fragment load"),e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();if(s)return this.fragmentTracker.removeAllFragments(),i.once(Oa.BUFFER_FLUSHED,(()=>{var e;null==(e=this.hls)||e.trigger(Oa.AUDIO_TRACK_SWITCHED,t)})),void i.trigger(Oa.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});i.trigger(Oa.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const i=Yl(t.url,this.hls);if(i){const e=this.videoBuffer;e&&this.mediaBuffer!==e&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=e)}this.altAudio=i?2:0,this.tick()}onBufferCreated(e,t){const i=t.tracks;let s,r,n=!1;for(const e in i){const t=i[e];if("main"===t.id){if(r=e,s=t,"video"===e){const t=i[e];t&&(this.videoBuffer=t.buffer)}}else n=!0}n&&s?(this.log(`Alternate track found, use ${r}.buffered to schedule main fragment loading`),this.mediaBuffer=s.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:i,part:s}=t,r=i.type===Ba;if(r){if(this.fragContextChanged(i))return this.warn(`Fragment ${i.sn}${s?" p: "+s.index:""} of level ${i.level} finished buffering, but was aborted. state: ${this.state}`),void(this.state===zh&&(this.state=Bh));const e=s?s.stats:i.stats;this.fragLastKbps=Math.round(8*e.total/(e.buffering.end-e.loading.first)),wo(i)&&(this.fragPrevious=i),this.fragBufferedComplete(i,s)}const n=this.media;n&&(!this._hasEnoughToStart&&Md.getBuffered(n).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),r&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var i;if(t.fatal)this.state=qh;else switch(t.details){case Ra.FRAG_GAP:case Ra.FRAG_PARSING_ERROR:case Ra.FRAG_DECRYPT_ERROR:case Ra.FRAG_LOAD_ERROR:case Ra.FRAG_LOAD_TIMEOUT:case Ra.KEY_LOAD_ERROR:case Ra.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ba,t);break;case Ra.LEVEL_LOAD_ERROR:case Ra.LEVEL_LOAD_TIMEOUT:case Ra.LEVEL_PARSING_ERROR:t.levelRetry||this.state!==Jh||(null==(i=t.context)?void 0:i.type)!==Fa||(this.state=Bh);break;case Ra.BUFFER_ADD_CODEC_ERROR:case Ra.BUFFER_APPEND_ERROR:if("main"!==t.parent)return;this.resetLoadingState();break;case Ra.BUFFER_FULL_ERROR:if("main"!==t.parent)return;this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case Ra.INTERNAL_EXCEPTION:this.recoverWorkerError(t)}}onFragLoadEmergencyAborted(){this.state=Bh,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==yo||!this.altAudio){const e=(t===_o?this.videoBuffer:this.mediaBuffer)||this.media;e&&(this.afterBufferFlushed(e,t,Ba),this.tick())}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,-1===this.level&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let i=this.startPosition;if(i>=0&&t<i){if(e.seeking)return void this.log(`could not seek to ${i}, already seeking at ${t}`);const s=this.timelineOffset;s&&i&&(i+=s);const r=this.getLevelDetails(),n=Md.getBuffered(e),a=n.length?n.start(0):0,o=a-i,l=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);o>0&&(o<l||this.loadingParts&&o<2*((null==r?void 0:r.partTarget)||0))&&(this.log(`adjusting start position by ${o} to match buffer start`),i+=o,this.startPosition=i),t<i&&(this.log(`seek to target start position ${i} from current time ${t} buffer start ${a}`),e.currentTime=i)}}_getAudioCodec(e){let t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t=-1!==t.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),t}_loadBitrateTestFrag(e,t){e.bitrateTest=!0,this._doFragLoad(e,t).then((e=>{const{hls:i}=this,s=null==e?void 0:e.frag;if(!s||this.fragContextChanged(s))return;t.fragmentError=0,this.state=Bh,this.startFragRequested=!1,this.bitrateTest=!1;const r=s.stats;r.parsing.start=r.parsing.end=r.buffering.start=r.buffering.end=self.performance.now(),i.trigger(Oa.FRAG_LOADED,e),s.bitrateTest=!1}))}_handleTransmuxComplete(e){var t;const i=this.playlistType,{hls:s}=this,{remuxResult:r,chunkMeta:n}=e,a=this.getCurrentContext(n);if(!a)return void this.resetWhenMissingContext(n);const{frag:o,part:l,level:d}=a,{video:h,text:c,id3:u,initSegment:f}=r,{details:m}=d,p=this.altAudio?void 0:r.audio;if(this.fragContextChanged(o))this.fragmentTracker.removeFragment(o);else{if(this.state=Gh,f){if(null!=f&&f.tracks){const e=o.initSegment||o;this._bufferInitSegment(d,f.tracks,e,n),s.trigger(Oa.FRAG_PARSING_INIT_SEGMENT,{frag:e,id:i,tracks:f.tracks})}const e=f.initPTS,t=f.timescale;Aa(e)&&(this.initPTS[o.cc]={baseTime:e,timescale:t},s.trigger(Oa.INIT_PTS_FOUND,{frag:o,id:i,initPTS:e,timescale:t}))}if(h&&m){p&&"audiovideo"===h.type&&this.logMuxedErr(o);const e=m.fragments[o.sn-1-m.startSN],t=o.sn===m.startSN,i=!e||o.cc>e.cc;if(!1!==r.independent){const{startPTS:e,endPTS:s,startDTS:r,endDTS:a}=h;if(l)l.elementaryStreams[h.type]={startPTS:e,endPTS:s,startDTS:r,endDTS:a};else if(h.firstKeyFrame&&h.independent&&1===n.id&&!i&&(this.couldBacktrack=!0),h.dropped&&h.independent){const r=this.getMainFwdBufferInfo(),n=(r?r.end:this.getLoadPosition())+this.config.maxBufferHole,l=h.firstKeyFramePTS?h.firstKeyFramePTS:e;if(!t&&n<l-this.config.maxBufferHole&&!i)return void this.backtrack(o);i&&(o.gap=!0),o.setElementaryStreamInfo(h.type,o.start,s,o.start,a,!0)}else t&&e-(m.appliedTimelineOffset||0)>2&&(o.gap=!0);o.setElementaryStreamInfo(h.type,e,s,r,a),this.backtrackFragment&&(this.backtrackFragment=o),this.bufferFragmentData(h,o,l,n,t||i)}else{if(!t&&!i)return void this.backtrack(o);o.gap=!0}}if(p){const{startPTS:e,endPTS:t,startDTS:i,endDTS:s}=p;l&&(l.elementaryStreams[yo]={startPTS:e,endPTS:t,startDTS:i,endDTS:s}),o.setElementaryStreamInfo(yo,e,t,i,s),this.bufferFragmentData(p,o,l,n)}if(m&&null!=u&&null!=(t=u.samples)&&t.length){const e={id:i,frag:o,details:m,samples:u.samples};s.trigger(Oa.FRAG_PARSING_METADATA,e)}if(m&&c){const e={id:i,frag:o,details:m,samples:c.samples};s.trigger(Oa.FRAG_PARSING_USERDATA,e)}}}logMuxedErr(e){this.warn(`${wo(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,i,s){if(this.state!==Gh)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(i));const{audio:r,video:n,audiovideo:a}=t;if(r){let i=dl(r.codec,e.audioCodec);"mp4a"===i&&(i="mp4a.40.5");const s=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){i&&(i=-1!==i.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5");const e=r.metadata;e&&"channelCount"in e&&1!==(e.channelCount||1)&&-1===s.indexOf("firefox")&&(i="mp4a.40.5")}i&&-1!==i.indexOf("mp4a.40.5")&&-1!==s.indexOf("android")&&"audio/mpeg"!==r.container&&(i="mp4a.40.2",this.log(`Android: force audio codec to ${i}`)),e.audioCodec&&e.audioCodec!==i&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${i}"`),r.levelCodec=i,r.id=Ba,this.log(`Init audio buffer, container:${r.container}, codecs[selected/level/parsed]=[${i||""}/${e.audioCodec||""}/${r.codec}]`),delete t.audiovideo}if(n){n.levelCodec=e.videoCodec,n.id=Ba;const i=n.codec;if(4===(null==i?void 0:i.length))switch(i){case"hvc1":case"hev1":n.codec="hvc1.1.6.L120.90";break;case"av01":n.codec="av01.0.04M.08";break;case"avc1":n.codec="avc1.42e01e"}this.log(`Init video buffer, container:${n.container}, codecs[level/parsed]=[${e.videoCodec||""}/${i}]${n.codec!==i?" parsed-corrected="+n.codec:""}${n.supplemental?" supplemental="+n.supplemental:""}`),delete t.audiovideo}a&&(this.log(`Init audiovideo buffer, container:${a.container}, codecs[level/parsed]=[${e.codecs}/${a.codec}]`),delete t.video,delete t.audio);const o=Object.keys(t);if(o.length){if(this.hls.trigger(Oa.BUFFER_CODECS,t),!this.hls)return;o.forEach((e=>{const r=t[e].initSegment;null!=r&&r.byteLength&&this.hls.trigger(Oa.BUFFER_APPENDING,{type:e,data:r,frag:i,part:null,chunkMeta:s,parent:i.type})}))}this.tickImmediate()}getMainFwdBufferInfo(){const e=this.mediaBuffer&&2===this.altAudio?this.mediaBuffer:this.media;return this.getFwdBufferInfo(e,Ba)}get maxBufferLength(){const{levels:e,level:t}=this,i=null==e?void 0:e[t];return i?this.getMaxBufferLength(i.maxBitrate):this.config.maxBufferLength}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=Bh}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&!1===e.seeking){const i=e.currentTime;if(Md.isBuffered(e,i)?t=this.getAppendedFrag(i):Md.isBuffered(e,i+.1)&&(t=this.getAppendedFrag(i+.1)),t){this.backtrackFragment=null;const e=this.fragPlaying,i=t.level;e&&t.sn===e.sn&&e.level===i||(this.fragPlaying=t,this.hls.trigger(Oa.FRAG_CHANGED,{frag:t}),e&&e.level===i||this.hls.trigger(Oa.LEVEL_SWITCHED,{level:i}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){var e;if(this.fragPlaying)return this.fragPlaying;const t=(null==(e=this.media)?void 0:e.currentTime)||this.lastCurrentTime;return Aa(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=(null==(e=this.media)?void 0:e.currentTime)||this.lastCurrentTime;if(Aa(t)){const e=this.getLevelDetails(),i=this.currentFrag||(e?$l(null,e.fragments,t):null);if(i){const e=i.programDateTime;if(null!==e){const s=e+1e3*(t-i.start);return new Date(s)}}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class rp{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const i in this.keyUriToKeyInfo){const s=this.keyUriToKeyInfo[i].loader;if(s){var t;if(e&&e!==(null==(t=s.context)?void 0:t.frag.type))return;s.abort()}}}detach(){for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(e,t=Ra.KEY_LOAD_ERROR,i,s,r){return new vd({type:Ia.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:r,error:i,networkDetails:s})}loadClear(e,t){if(this.emeController&&this.config.emeEnabled){const{sn:i,cc:s}=e;for(let e=0;e<t.length;e++){const r=t[e];if(s<=r.cc&&("initSegment"===i||"initSegment"===r.sn||i<r.sn)){this.emeController.selectKeySystemFormat(r).then((e=>{r.setKeyFormat(e)}));break}}}}load(e){return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then((t=>this.loadInternal(e,t))):this.loadInternal(e)}loadInternal(e,t){var i,s;t&&e.setKeyFormat(t);const r=e.decryptdata;if(!r){const i=new Error(t?`Expected frag.decryptdata to be defined after setting format ${t}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,Ra.KEY_LOAD_ERROR,i))}const n=r.uri;if(!n)return Promise.reject(this.createKeyLoadError(e,Ra.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${n}"`)));let a=this.keyUriToKeyInfo[n];if(null!=(i=a)&&i.decryptdata.key)return r.key=a.decryptdata.key,Promise.resolve({frag:e,keyInfo:a});var o;if(null!=(s=a)&&s.keyLoadPromise)switch(null==(o=a.mediaKeySessionContext)?void 0:o.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return a.keyLoadPromise.then((t=>(r.key=t.keyInfo.decryptdata.key,{frag:e,keyInfo:a})))}switch(a=this.keyUriToKeyInfo[n]={decryptdata:r,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},r.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return"identity"===r.keyFormat?this.loadKeyHTTP(a,e):this.loadKeyEME(a,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(a,e);default:return Promise.reject(this.createKeyLoadError(e,Ra.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${r.method}"`)))}}loadKeyEME(e,t){const i={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const t=this.emeController.loadKey(i);if(t)return(e.keyLoadPromise=t.then((t=>(e.mediaKeySessionContext=t,i)))).catch((t=>{throw e.keyLoadPromise=null,t}))}return Promise.resolve(i)}loadKeyHTTP(e,t){const i=this.config,s=new(0,i.loader)(i);return t.keyLoader=e.loader=s,e.keyLoadPromise=new Promise(((r,n)=>{const a={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},o=i.keyLoadPolicy.default,l={loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},d={onSuccess:(e,t,i,s)=>{const{frag:a,keyInfo:o,url:l}=i;if(!a.decryptdata||o!==this.keyUriToKeyInfo[l])return n(this.createKeyLoadError(a,Ra.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),s));o.decryptdata.key=a.decryptdata.key=new Uint8Array(e.data),a.keyLoader=null,o.loader=null,r({frag:a,keyInfo:o})},onError:(e,i,s,r)=>{this.resetLoader(i),n(this.createKeyLoadError(t,Ra.KEY_LOAD_ERROR,new Error(`HTTP Error ${e.code} loading key ${e.text}`),s,qa({url:a.url,data:void 0},e)))},onTimeout:(e,i,s)=>{this.resetLoader(i),n(this.createKeyLoadError(t,Ra.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),s))},onAbort:(e,i,s)=>{this.resetLoader(i),n(this.createKeyLoadError(t,Ra.INTERNAL_ABORTED,new Error("key loading aborted"),s))}};s.load(a,l,d)}))}resetLoader(e){const{frag:t,keyInfo:i,url:s}=e,r=i.loader;t.keyLoader===r&&(t.keyLoader=null,i.loader=null),delete this.keyUriToKeyInfo[s],r&&r.destroy()}}function np(e){const{type:t}=e;switch(t){case $a:return Ha;case Na:return ja;default:return Ba}}function ap(e,t){let i=e.url;return void 0!==i&&0!==i.indexOf("data:")||(i=t.url),i}class op{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.on(Oa.LEVEL_LOADING,this.onLevelLoading,this),e.on(Oa.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(Oa.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(Oa.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:e}=this;e.off(Oa.MANIFEST_LOADING,this.onManifestLoading,this),e.off(Oa.LEVEL_LOADING,this.onLevelLoading,this),e.off(Oa.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(Oa.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(Oa.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){const t=this.hls.config,i=t.pLoader,s=t.loader,r=new(i||s)(t);return this.loaders[e.type]=r,r}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:i}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:Ya,url:i,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:i,level:s,pathwayId:r,url:n,deliveryDirectives:a,levelInfo:o}=t;this.load({id:i,level:s,pathwayId:r,responseType:"text",type:Fa,url:n,deliveryDirectives:a,levelOrTrack:o})}onAudioTrackLoading(e,t){const{id:i,groupId:s,url:r,deliveryDirectives:n,track:a}=t;this.load({id:i,groupId:s,level:null,responseType:"text",type:$a,url:r,deliveryDirectives:n,levelOrTrack:a})}onSubtitleTrackLoading(e,t){const{id:i,groupId:s,url:r,deliveryDirectives:n,track:a}=t;this.load({id:i,groupId:s,level:null,responseType:"text",type:Na,url:r,deliveryDirectives:n,levelOrTrack:a})}onLevelsUpdated(e,t){const i=this.loaders[Fa];if(i){const e=i.context;e&&!t.levels.some((t=>t===e.levelOrTrack))&&(i.abort(),delete this.loaders[Fa])}}load(e){var t;const i=this.hls.config;let s,r=this.getInternalLoader(e);if(r){const t=this.hls.logger,i=r.context;if(i&&i.levelOrTrack===e.levelOrTrack&&(i.url===e.url||i.deliveryDirectives&&!e.deliveryDirectives))return void(i.url===e.url?t.log(`[playlist-loader]: ignore ${e.url} ongoing request`):t.log(`[playlist-loader]: ignore ${e.url} in favor of ${i.url}`));t.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}if(s=e.type===Ya?i.manifestLoadPolicy.default:za({},i.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),Aa(null==(t=e.deliveryDirectives)?void 0:t.part)){let t;if(e.type===Fa&&null!==e.level?t=this.hls.levels[e.level].details:e.type===$a&&null!==e.id?t=this.hls.audioTracks[e.id].details:e.type===Na&&null!==e.id&&(t=this.hls.subtitleTracks[e.id].details),t){const e=t.partTarget,i=t.targetduration;if(e&&i){const t=1e3*Math.max(3*e,.8*i);s=za({},s,{maxTimeToFirstByteMs:Math.min(t,s.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(t,s.maxTimeToFirstByteMs)})}}}const n=s.errorRetry||s.timeoutRetry||{},a={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:n.maxNumRetry||0,retryDelay:n.retryDelayMs||0,maxRetryDelay:n.maxRetryDelayMs||0},o={onSuccess:(e,t,i,s)=>{const r=this.getInternalLoader(i);this.resetInternalLoader(i.type);const n=e.data;0===n.indexOf("#EXTM3U")?(t.parsing.start=performance.now(),hh.isMediaPlaylist(n)||i.type!==Ya?this.handleTrackOrLevelPlaylist(e,t,i,s||null,r):this.handleMasterPlaylist(e,t,i,s)):this.handleManifestParsingError(e,i,new Error("no EXTM3U delimiter"),s||null,t)},onError:(e,t,i,s)=>{this.handleNetworkError(t,i,!1,e,s)},onTimeout:(e,t,i)=>{this.handleNetworkError(t,i,!0,void 0,e)}};r.load(e,a,o)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:e,startPosition:t},forceStartLoad:i}=this.hls;(e||i)&&(this.hls.logger.log(`${e?"auto":"force"} startLoad with configured startPosition ${t}`),this.hls.startLoad(t))}handleMasterPlaylist(e,t,i,s){const r=this.hls,n=e.data,a=ap(e,i),o=hh.parseMasterPlaylist(n,a);if(o.playlistParsingError)return void this.handleManifestParsingError(e,i,o.playlistParsingError,s,t);const{contentSteering:l,levels:d,sessionData:h,sessionKeys:c,startTimeOffset:u,variableList:f}=o;this.variableList=f;const{AUDIO:m=[],SUBTITLES:p,"CLOSED-CAPTIONS":g}=hh.parseMasterPlaylistMedia(n,a,o);if(m.length){m.some((e=>!e.url))||!d[0].audioCodec||d[0].attrs.AUDIO||(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),m.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Pd({}),bitrate:0,url:""}))}r.trigger(Oa.MANIFEST_LOADED,{levels:d,audioTracks:m,subtitles:p,captions:g,contentSteering:l,url:a,stats:t,networkDetails:s,sessionData:h,sessionKeys:c,startTimeOffset:u,variableList:f})}handleTrackOrLevelPlaylist(e,t,i,s,r){const n=this.hls,{id:a,level:o,type:l}=i,d=ap(e,i),h=Aa(o)?o:Aa(a)?a:0,c=np(i),u=hh.parseLevelPlaylist(e.data,d,h,c,0,this.variableList);if(l===Ya){const e={attrs:new Pd({}),bitrate:0,details:u,name:"",url:d};u.requestScheduled=t.loading.start+Dh(u,0),n.trigger(Oa.MANIFEST_LOADED,{levels:[e],audioTracks:[],url:d,stats:t,networkDetails:s,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),i.levelDetails=u,this.handlePlaylistLoaded(u,e,t,i,s,r)}handleManifestParsingError(e,t,i,s,r){this.hls.trigger(Oa.ERROR,{type:Ia.NETWORK_ERROR,details:Ra.MANIFEST_PARSING_ERROR,fatal:t.type===Ya,url:e.url,err:i,error:i,reason:i.message,response:e,context:t,networkDetails:s,stats:r})}handleNetworkError(e,t,i=!1,s,r){let n=`A network ${i?"timeout":"error"+(s?" (status "+s.code+")":"")} occurred while loading ${e.type}`;e.type===Fa?n+=`: ${e.level} id: ${e.id}`:e.type!==$a&&e.type!==Na||(n+=` id: ${e.id} group-id: "${e.groupId}"`);const a=new Error(n);this.hls.logger.warn(`[playlist-loader]: ${n}`);let o=Ra.UNKNOWN,l=!1;const d=this.getInternalLoader(e);switch(e.type){case Ya:o=i?Ra.MANIFEST_LOAD_TIMEOUT:Ra.MANIFEST_LOAD_ERROR,l=!0;break;case Fa:o=i?Ra.LEVEL_LOAD_TIMEOUT:Ra.LEVEL_LOAD_ERROR,l=!1;break;case $a:o=i?Ra.AUDIO_TRACK_LOAD_TIMEOUT:Ra.AUDIO_TRACK_LOAD_ERROR,l=!1;break;case Na:o=i?Ra.SUBTITLE_TRACK_LOAD_TIMEOUT:Ra.SUBTITLE_LOAD_ERROR,l=!1}d&&this.resetInternalLoader(e.type);const h={type:Ia.NETWORK_ERROR,details:o,fatal:l,url:e.url,loader:d,context:e,error:a,networkDetails:t,stats:r};if(s){const i=(null==t?void 0:t.url)||e.url;h.response=qa({url:i,data:void 0},s)}this.hls.trigger(Oa.ERROR,h)}handlePlaylistLoaded(e,t,i,s,r,n){const a=this.hls,{type:o,level:l,id:d,groupId:h,deliveryDirectives:c}=s,u=ap(t,s),f=np(s),m="number"==typeof s.level&&f===Ba?l:void 0;if(!e.fragments.length){const n=e.playlistParsingError=new Error("No Segments found in Playlist");return void a.trigger(Oa.ERROR,{type:Ia.NETWORK_ERROR,details:Ra.LEVEL_EMPTY_ERROR,fatal:!1,url:u,error:n,reason:n.message,response:t,context:s,level:m,parent:f,networkDetails:r,stats:i})}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const p=e.playlistParsingError;if(p){if(this.hls.logger.warn(p),!a.config.ignorePlaylistParsingErrors)return void a.trigger(Oa.ERROR,{type:Ia.NETWORK_ERROR,details:Ra.LEVEL_PARSING_ERROR,fatal:!1,url:u,error:p,reason:p.message,response:t,context:s,level:m,parent:f,networkDetails:r,stats:i});e.playlistParsingError=null}switch(e.live&&n&&(n.getCacheAge&&(e.ageHeader=n.getCacheAge()||0),n.getCacheAge&&!isNaN(e.ageHeader)||(e.ageHeader=0)),o){case Ya:case Fa:a.trigger(Oa.LEVEL_LOADED,{details:e,levelInfo:s.levelOrTrack||a.levels[0],level:m||0,id:d||0,stats:i,networkDetails:r,deliveryDirectives:c,withoutMultiVariant:o===Ya});break;case $a:a.trigger(Oa.AUDIO_TRACK_LOADED,{details:e,track:s.levelOrTrack,id:d||0,groupId:h||"",stats:i,networkDetails:r,deliveryDirectives:c});break;case Na:a.trigger(Oa.SUBTITLE_TRACK_LOADED,{details:e,track:s.levelOrTrack,id:d||0,groupId:h||"",stats:i,networkDetails:r,deliveryDirectives:c})}}}class lp{static get version(){return rc}static isMSESupported(){return ip()}static isSupported(){return function(){if(!ip())return!1;const e=io();return"function"==typeof(null==e?void 0:e.isTypeSupported)&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some((t=>e.isTypeSupported(sl(t,"video"))))||["mp4a.40.2","fLaC"].some((t=>e.isTypeSupported(sl(t,"audio")))))}()}static getMediaSource(){return io()}static get Events(){return Oa}static get MetadataSchema(){return Dc}static get ErrorTypes(){return Ia}static get ErrorDetails(){return Ra}static get DefaultConfig(){return lp.defaultConfig?lp.defaultConfig:jm}static set DefaultConfig(e){lp.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new sc,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;const t=this.logger=function(e,t,i){const s=Qa();if("object"==typeof console&&!0===e||"object"==typeof e){const r=["debug","log","info","warn","error"];r.forEach((t=>{s[t]=Za(t,e,i)}));try{s.log(`Debug logs enabled for "${t}" in hls.js version 1.6.2`)}catch(e){return Qa()}r.forEach((t=>{eo[t]=Za(t,e)}))}else za(eo,s);return s}(e.debug||!1,"Hls instance",e.assetPlayerId),i=this.config=function(e,t,i){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==t.liveMaxLatencyDurationCount&&(void 0===t.liveSyncDurationCount||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==t.liveMaxLatencyDuration&&(void 0===t.liveSyncDuration||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const s=Um(e),r=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach((e=>{const n=`${"level"===e?"playlist":e}LoadPolicy`,a=void 0===t[n],o=[];r.forEach((i=>{const r=`${e}Loading${i}`,l=t[r];if(void 0!==l&&a){o.push(r);const e=s[n].default;switch(t[n]={default:e},i){case"TimeOut":e.maxLoadTimeMs=l,e.maxTimeToFirstByteMs=l;break;case"MaxRetry":e.errorRetry.maxNumRetry=l,e.timeoutRetry.maxNumRetry=l;break;case"RetryDelay":e.errorRetry.retryDelayMs=l,e.timeoutRetry.retryDelayMs=l;break;case"MaxRetryTimeout":e.errorRetry.maxRetryDelayMs=l,e.timeoutRetry.maxRetryDelayMs=l}}})),o.length&&i.warn(`hls.js config: "${o.join('", "')}" setting(s) are deprecated, use "${n}": ${Dl(t[n])}`)})),qa(qa({},s),t)}(lp.DefaultConfig,e,t);this.userConfig=e,i.progressive&&Vm(i,t);const{abrController:s,bufferController:r,capLevelController:n,errorController:a,fpsController:o}=i,l=new a(this),d=this.abrController=new s(this),h=new nd(this),c=i.interstitialsController,u=c?this.interstitialsController=new c(this,lp):null,f=this.bufferController=new r(this,h),m=this.capLevelController=new n(this),p=new o(this),g=new op(this),y=i.contentSteeringController,_=y?new y(this):null,v=this.levelController=new Zm(this,_),b=new Xm(this),w=new rp(this.config),T=this.streamController=new sp(this,h,w),M=this.gapController=new Gm(this,h);m.setStreamController(T),p.setStreamController(T);const S=[g,v,T];u&&S.splice(1,0,u),_&&S.splice(1,0,_),this.networkControllers=S;const L=[d,f,M,m,p,b,h];this.audioTrackController=this.createController(i.audioTrackController,S);const k=i.audioStreamController;k&&S.push(this.audioStreamController=new k(this,h,w)),this.subtitleTrackController=this.createController(i.subtitleTrackController,S);const E=i.subtitleStreamController;E&&S.push(this.subtititleStreamController=new E(this,h,w)),this.createController(i.timelineController,L),w.emeController=this.emeController=this.createController(i.emeController,L),this.cmcdController=this.createController(i.cmcdController,L),this.latencyController=this.createController(Qm,L),this.coreComponents=L,S.push(l);const D=l.onErrorOut;"function"==typeof D&&this.on(Oa.ERROR,D,l),this.on(Oa.MANIFEST_LOADED,g.onManifestLoaded,g)}createController(e,t){if(e){const i=new e(this);return t&&t.push(i),i}return null}on(e,t,i=this){this._emitter.on(e,t,i)}once(e,t,i=this){this._emitter.once(e,t,i)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,i=this,s){this._emitter.off(e,t,i,s)}listeners(e){return this._emitter.listeners(e)}emit(e,t,i){return this._emitter.emit(e,t,i)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(t){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+t.message+'". Here is a stacktrace:',t),!this.triggeringException){this.triggeringException=!0;const i=e===Oa.ERROR;this.trigger(Oa.ERROR,{type:Ia.OTHER_ERROR,details:Ra.INTERNAL_EXCEPTION,fatal:i,event:e,error:t}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(Oa.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach((e=>e.destroy())),this.networkControllers.length=0,this.coreComponents.forEach((e=>e.destroy())),this.coreComponents.length=0;const e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){if(!e||"media"in e&&!e.media){const t=new Error(`attachMedia failed: invalid argument (${e})`);return void this.trigger(Oa.ERROR,{type:Ia.OTHER_ERROR,details:Ra.ATTACH_MEDIA_ERROR,fatal:!0,error:t})}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const t="media"in e,i=t?e.media:e,s=t?e:{media:i};this._media=i,this.trigger(Oa.MEDIA_ATTACHING,s)}detachMedia(){this.logger.log("detachMedia"),this.trigger(Oa.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const e=this.bufferController.transferMedia();return this.trigger(Oa.MEDIA_DETACHING,{transferMedia:e}),e}loadSource(e){this.stopLoad();const t=this.media,i=this._url,s=this._url=po.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${s}`),t&&i&&(i!==s||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(Oa.MANIFEST_LOADING,{url:e})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(e=-1,t){this.logger.log(`startLoad(${e+(t?", <skip seek to start>":"")})`),this.started=!0,this.resumeBuffering();for(let i=0;i<this.networkControllers.length&&(this.networkControllers[i].startLoad(e,t),this.started&&this.networkControllers);i++);}stopLoad(){this.logger.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!this.started&&this.networkControllers);e++);}get loadingEnabled(){return this.started}get bufferingEnabled(){return this.streamController.bufferingEnabled}resumeBuffering(){this.bufferingEnabled||(this.logger.log("resume buffering"),this.networkControllers.forEach((e=>{e.resumeBuffering&&e.resumeBuffering()})))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach((e=>{e.pauseBuffering&&e.pauseBuffering()})))}get inFlightFragments(){const e={[Ba]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[Ha]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[ja]=this.subtititleStreamController.inFlightFrag),e}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const e=this._media,t=null==e?void 0:e.currentTime;this.detachMedia(),e&&(this.attachMedia(e),t&&this.startLoad(t))}removeLevel(e){this.levelController.removeLevel(e)}get sessionId(){let e=this._sessionId;return e||(e=this._sessionId=function(){try{return crypto.randomUUID()}catch(e){try{const e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(e){let t=(new Date).getTime();const i="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const i=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?i:3&i|8).toString(16)}));return i}}}()),e}get levels(){const e=this.levelController.levels;return e||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){this.logger.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){this.logger.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){this.logger.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){this.logger.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){const e=this.levelController.startLevel;return-1===e&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){this.logger.log(`set startLevel:${e}`),-1!==e&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get abrEwmaDefaultEstimate(){const{bwEstimator:e}=this.abrController;return e?e.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(this.logger.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){(function(e){return _l.indexOf(e)>-1})(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return-1===this.levelController.manualLevel}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;const i=e.length;for(let s=0;s<i;s++)if(e[s].maxBitrate>=t)return s;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:i}=this;let s;if(s=-1===t&&null!=e&&e.length?e.length-1:t,i)for(let t=s;t--;){const s=e[t].attrs["HDCP-LEVEL"];if(s&&s<=i)return t}return s}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(e){var t;return(null==(t=this.audioTrackController)?void 0:t.setAudioOption(e))||null}
2setSubtitleOption(e){var t;return(null==(t=this.subtitleTrackController)?void 0:t.setSubtitleOption(e))||null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return!!e&&e.subtitleDisplay}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(e){this.latencyController.targetLatency=e}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(e){this.levelController.pathwayPriority=e}get bufferedToEnd(){var e;return!(null==(e=this.bufferController)||!e.bufferedToEnd)}get interstitialsManager(){var e;return(null==(e=this.interstitialsController)?void 0:e.interstitialsManager)||null}getMediaDecodingInfo(e,t=this.allAudioTracks){return yl(e,Al(t),navigator.mediaCapabilities)}}lp.defaultConfig=void 0;var dp=i(5093);function hp(e){return hp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hp(e)}function cp(){cp=function(){return t};var e,t={},i=Object.prototype,s=i.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function l(e,t,i,s){return Object.defineProperty(e,t,{value:i,enumerable:!s,configurable:!s,writable:!s})}try{l({},"")}catch(e){l=function(e,t,i){return e[t]=i}}function d(t,i,s,r){var n=i&&i.prototype instanceof u?i:u,a=Object.create(n.prototype);return l(a,"_invoke",function(t,i,s){var r=1;return function(n,a){if(3===r)throw Error("Generator is already running");if(4===r){if("throw"===n)throw a;return{value:e,done:!0}}for(s.method=n,s.arg=a;;){var o=s.delegate;if(o){var l=w(o,s);if(l){if(l===c)continue;return l}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(1===r)throw r=4,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);r=3;var d=h(t,i,s);if("normal"===d.type){if(r=s.done?4:2,d.arg===c)continue;return{value:d.arg,done:s.done}}"throw"===d.type&&(r=4,s.method="throw",s.arg=d.arg)}}}(t,s,new S(r||[])),!0),a}function h(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var c={};function u(){}function f(){}function m(){}var p={};l(p,n,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(L([])));y&&y!==i&&s.call(y,n)&&(p=y);var _=m.prototype=u.prototype=Object.create(p);function v(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function i(r,n,a,o){var l=h(e[r],e,n);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==hp(c)&&s.call(c,"__await")?t.resolve(c.__await).then((function(e){i("next",e,a,o)}),(function(e){i("throw",e,a,o)})):t.resolve(c).then((function(e){d.value=e,a(d)}),(function(e){return i("throw",e,a,o)}))}o(l.arg)}var r;l(this,"_invoke",(function(e,s){function n(){return new t((function(t,r){i(e,s,t,r)}))}return r=r?r.then(n,n):n()}),!0)}function w(t,i){var s=i.method,r=t.i[s];
2if(r===e)return i.delegate=null,"throw"===s&&t.i.return&&(i.method="return",i.arg=e,w(t,i),"throw"===i.method)||"return"!==s&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+s+"' method")),c;var n=h(r,t.i,i.arg);if("throw"===n.type)return i.method="throw",i.arg=n.arg,i.delegate=null,c;var a=n.arg;return a?a.done?(i[t.r]=a.value,i.next=t.n,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,c):a:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,c)}function T(e){this.tryEntries.push(e)}function M(t){var i=t[4]||{};i.type="normal",i.arg=e,t[4]=i}function S(e){this.tryEntries=[[-1]],e.forEach(T,this),this.reset(!0)}function L(t){if(null!=t){var i=t[n];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function i(){for(;++r<t.length;)if(s.call(t,r))return i.value=t[r],i.done=!1,i;return i.value=e,i.done=!0,i};return a.next=a}}throw new TypeError(hp(t)+" is not iterable")}return f.prototype=m,l(_,"constructor",m),l(m,"constructor",f),f.displayName=l(m,o,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,o,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},v(b.prototype),l(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,i,s,r,n){void 0===n&&(n=Promise);var a=new b(d(e,i,s,r),n);return t.isGeneratorFunction(i)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},v(_),l(_,o,"Generator"),l(_,n,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),i=[];for(var s in t)i.unshift(s);return function e(){for(;i.length;)if((s=i.pop())in t)return e.value=s,e.done=!1,e;return e.done=!0,e}},t.values=L,S.prototype={constructor:S,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var i in this)"t"===i.charAt(0)&&s.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function s(e){a.type="throw",a.arg=t,i.next=e}for(var r=i.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r],a=n[4],o=this.prev,l=n[1],d=n[2];if(-1===n[0])return s("end"),!1;if(!l&&!d)throw Error("try statement without catch or finally");if(null!=n[0]&&n[0]<=o){if(o<l)return this.method="next",this.arg=e,s(l),!0;if(o<d)return s(d),!1}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i];if(s[0]>-1&&s[0]<=this.prev&&this.prev<s[2]){var r=s;break}}r&&("break"===e||"continue"===e)&&r[0]<=t&&t<=r[2]&&(r=null);var n=r?r[4]:{};return n.type=e,n.arg=t,r?(this.method="next",this.next=r[2],c):this.complete(n)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i[2]===e)return this.complete(i[4],i[3]),M(i),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i[0]===e){var s=i[4];if("throw"===s.type){var r=s.arg;M(i)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,i,s){return this.delegate={i:L(t),r:i,n:s},"next"===this.method&&(this.arg=e),c}},t}function up(e,t,i,s,r,n,a){try{var o=e[n](a),l=o.value}catch(e){return void i(e)}o.done?t(l):Promise.resolve(l).then(s,r)}function fp(e){return function(){var t=this,i=arguments;return new Promise((function(s,r){var n=e.apply(t,i);function a(e){up(n,s,r,a,o,"next",e)}function o(e){up(n,s,r,a,o,"throw",e)}a(void 0)}))}}function mp(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=gp(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var s=0,r=function(){};return{s:r,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a=!0,o=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){o=!0,n=e},f:function(){try{a||null==i.return||i.return()}finally{if(o)throw n}}}}function pp(e){return function(e){if(Array.isArray(e))return yp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gp(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gp(e,t){if(e){if("string"==typeof e)return yp(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?yp(e,t):void 0}}function yp(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=Array(t);i<t;i++)s[i]=e[i];return s}Dr.plugin([Ts,ys]);const _p={$window:null,$body:null,$document:null,plyrItems:null,plyrDelay:500,_mapEmbedded:[],_mapInitialized:[],_$mapContainer:[],_mapInstance:[],_mapInstanceClusterer:[],_storeDetailModal:{visible:null,focusTrap:null,
2selectedMarker:null,mapListeners:[],firstUpdatePosition:null},_myGeolocationPosition:[],_myGeolocationPositionMarker:[],_myPositionUpdateTimeoutId:[],_geolocationPosition:[],_geolocationLastPlace:[],_geolocationTimeoutInterval:[],init:function(){var e=this;this.$window=$(window),this.$body=$("body"),this.$document=$(document),this.$document.on("click",'a[href="#"]',(function(e){e.preventDefault()})),window.ACF.listingFunctions=this.listingFunctions.bind(this),this._progressInit(),this._scrollbarEventsInit(),this._menuInit(),this._accountMenuInit(),this._menuContainerInit(),this._marqueeHorizontalInit(),this._sliderInit(),this._accountButtonRepeatedBackgroundInit(),this._applyStyleToInvalidSelect(),this._applyStyleToInvalidDateTime(),this._initCardSelector(),this._animateChallengeCards(),this._showChallengeCardDetailsModal(),this._initLastCompletedChallengesSwiper(),this._initProgressionLiveMatch(),this._initFullWidthSlider(),this._initDesktopMenuExpansion(),this._initStickyTabNav(),this._initSearchModal(),this._initTicketOfficeMatchDetailsModal(),this._changeModalTableTemplateOnResize(),this._initPlayPauseJingleAudio(),this._initPlayPauseLive(),this._initResponsiveGallerySlider(),this._initBannerFullWidthSwiper(),this._initCountDown(),this._initGraphProgression(),this._initScrollIndicatorChange(),$("*[data-store-view-section]").each((function(t,i){var s=$(i);e._mapEmbedded.push(!!s.data("embedded")),e._geolocationTimeoutInterval.push(parseInt(s.data("refresh-position-time"))),e._consoleBarInit(s,t),e._mapCreateInstance(s,t),e._geolocationInit(s,t),e._listInit(s,t),e._storeDetailModalInit()})),this._desktopCoverInit(),this._catalogListCategoriesInit(),this._initSectionPhaseCardAccordion(),this._modalNotifications(),this._initRoom100Center()},finalize:function(){var e=this;this._btnAnimationInit(),this._fitTextInit(),this.listingFunctions(),setTimeout((function(){e._initResumeVideoOnSwiperSlides()}),this.plyrDelay+100)},_fitTextInit:function(){try{fitty('[data-fit-text="true"]',{minSize:12,maxSize:300}),setTimeout((function(){fitty.fitAll()}),3e3)}catch(e){}},listingFunctions:function(){this._initLockObserver(),this._initNewsDetailsModal(),this._initLightboxGallery(),this._initShareModal(),this._initPlyrVideo()},_btnAnimationInit:function(){var e=this,t="btn-anim-inited",i=function(){$(".btn-primary:not(.".concat(t,"), .btn-outline-secondary:not(.").concat(t,")")).each((function(e,i){var s=$(i),r="anim-text";s.wrapInner('<span class="'.concat(r,'"></span>')),s.children(".".concat(r)).clone().addClass("shadow-label").wrapInner("<span></span>").appendTo(s).data("dimension-target",s.children(".".concat(r)).first()),s.addClass(t)})),e.$window.trigger("resize.animationClassBtnLabel")};this.$window.on("resize.animationClassBtnLabel orientationchange.animationClassBtnLabel",$.debounce(1e3,(function(){$(".btn-primary.".concat(t,", .btn-outline-secondary.").concat(t)).each((function(e,t){var i=$(t).find(".shadow-label"),s=i.data("dimension-target");if(s&&s.length&&i.length){var r=i.children().first(),n=s[0];n.offsetWidth<n.scrollWidth?r.css("width","".concat(s[0].offsetWidth+.1,"px")):r.css("width","")}}))}))),this.$window.on("addAnimationClassBtn",(function(e){i()})),setTimeout((function(){i()}),300)},_progressInit:function(){var e={rootMargin:"0px",threshold:1};$(".personal-rank-container .progress-svg").each((function(t,i){var s=$(i),r=parseInt(s.data("progress"));(!r||r<0)&&(r=0),r>100&&(r=100),r*=.01;var n=new(Rr().Path)(s.find(".progress-svg-path")[0],{easing:"easeOut",duration:1400});n.set(0),s.addClass("progress-svg-initialized"),new IntersectionObserver((function(e,t){e.forEach((function(e){e.isIntersecting&&(setTimeout((function(){n.animate(r)}),1e3),t.unobserve(s[0]))}))}),e).observe(s[0])}))}
2,_initCardSelector:function(){var e=$(".card-selector .selector");e.length&&e.each((function(e,t){var i=$(t),s=i.find('input[type="hidden"]'),r=i.find("button.card-selection.selected");r.length&&s.val(r.first().data("selected-value")).trigger("change"),i.on("click","button.card-selection",(function(e){i.find("button.card-selection.selected").removeClass("selected");var t=$(e.currentTarget);t.addClass("selected"),s.val(t.data("selected-value")).trigger("change")}))}))},_menuContainerInit:function(){var e=this;setTimeout((function(){var t=e.$window.scrollTop(),i=$("body header.main-header"),s=i.length?i.height():88;e.$window.on("scroll.menuContainer load",(function(){var i=e.$window.scrollTop();i>s||t>s?(t=-1,e.$body.hasClass("menu-open")||e.$body.hasClass("menu-container-sticky-in")||e.$body.addClass("menu-container-sticky-in")):i<=s&&e.$body.hasClass("menu-container-sticky-in")&&e.$body.removeClass("menu-container-sticky-in")}))}),0)},_scrollbarEventsInit:function(){var e=$("#mainMenu").first(),t=$("body > header.main-header").first(),i=$("nav.container-nav").first(),s=$(".match-result .team-wrapper").first(),r=$(".fixed-background"),n=new(Ar());this.$window.on("mainscrollbarshide",(function(){var a=(0,Pr.isRTL)()?"paddingLeft":"paddingRight",o=n.getWidth();t.css(a,"".concat(o,"px")),e.css(a,"".concat(o,"px")),i.hasClass("sticky-nav")&&i.css(a,"".concat(o,"px")),s.length&&s.css(a,"".concat(o,"px")),r.length&&r.css(a,"".concat(o,"px")),n.hide()})),this.$window.on("mainscrollbarsshow",(function(){var a={paddingLeft:"",paddingRight:""};t.css(a),e.css(a),i.hasClass("sticky-nav")&&i.css(a),s.length&&s.css(a),r.length&&r.css(a),n.reset()}))},_menuInit:function(){var e=this,t=!1,i=$("#mainMenu").first(),s=i.find(".menu-panel").first(),r=$("body > header.main-header").first(),n=r.find(".menu-container").first().find(".left-bar").first(),a=n.find(".btn-menu").first(),o=$(".expansion-menu-wrapper"),l=s.find("li:not(.mbl-lang-selector) .btn.btn-link[data-bs-toggle]");if(i.length&&r.length&&s.length&&n.length){var d=i.sideForm();d.on("show.side-form",(function(){e.$body.addClass("menu-open"),setTimeout((function(){e.$window.on("resize.mainMenu orientationchange.mainMenu",(function(){var e=s.outerWidth(),t=a.outerWidth(),i=a.position().left-a.parent().position().left+t/2-e/2;i<0&&(i=0),s.get(0).style.setProperty("--left-adjustment","".concat(i,"px"))})),e.$window.trigger("resize.mainMenu"),s.on("show.bs.collapse",".collapse",(function(e){s.find(".collapse.show").collapse("hide")}))}))})),d.on("hide.side-form",(function(){o.find(".expansion-menu").removeClass("in"),l.removeClass("expanded-menu"),e.$window.off("resize.mainMenu orientationchange.mainMenu"),s.off("show.bs.collapse"),(0,Pr.executeAfterTransition)((function(){e.$body.removeClass("menu-open")}),i[0])})),d.on("hidden.side-form",(function(){t=!1})),a.on("click",(function(e){t?d.sideForm("hide"):d.sideForm("show"),t=!t}))}},_accountMenuInit:function(){var e=this,t=!1,i=$("#accountMenu").first(),s=i.find(".menu-panel").first(),r=$("body > header.main-header").first(),n=r.find(".menu-container").first().find(".right-bar").first(),a=n.find("#accountMenuToggle").first(),o=i.sideForm();i.length&&r.length&&s.length&&n.length&&(o.on("show.side-form",(function(){e.$body.addClass("account-menu-open"),setTimeout((function(){e.$window.on("resize.mainMenu orientationchange.mainMenu",(function(){var e=s.outerWidth(),t=n.outerWidth(),i=n.offset().left,r=a.outerWidth(),o=a.offset().left+r/2-14-e;window.matchMedia("(max-width: 575)").matches&&(o=i+t/2-e/2),s.get(0).style.setProperty("--left-adjustment","".concat(o,"px"))})),e.$window.trigger("resize.mainMenu")}))})),o.on("hide.side-form",(function(){e.$window.off("resize.mainMenu orientationchange.mainMenu"),(0,Pr.executeAfterTransition)((function(){e.$body.removeClass("account-menu-open")}),i[0])})),o.on("hidden.side-form",(function(){t=!1})),a.on("click",(function(e){t?o.sideForm("hide"):o.sideForm("show"),t=!t})))},_accountButtonRepeatedBackgroundInit:function(){$(".btn-account-repeated-bg").each((function(e,t){var i=$(t),s=i.children(".name-initials"),r=s.children("span");if(r.length){var n=$('<span class="name-initials-bg"></span>');r.each((function(e,t){var i=$(t),s="<span>"+i.text()+"</span>";e%2?i.prepend(s):i.append(s)}));for(var a=0;a<2;a++)r.each((function(e,t){for(var i=$("<span></span>"),s=0;s<10;s++)i.text(i.text()+$(t).text());n.prepend(i)}));s.after(n),new ResizeObserver((function(){i.css("font-size",11*i.width()/45+"px")})).observe(t)}}))},_sliderInit:function(){$("section.slider").each((function(e,t){var i=$(t),s=i.find(".h-sli
2der-wrapper").first();if(s.length){var r,n,a=i.find(".scroll-arrow-l").first(),o=i.find(".scroll-arrow-r").first(),l=i.find(".h-slider-container").children(),d=Dr({target:s[0]},{paddingAbsolute:!0,update:{elementEvents:[]},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"scroll",autoHideDelay:500,autoHideSuspend:!1,dragScroll:!1}},{initialized:function(e){r=s.find("[data-overlayscrollbars-viewport]").first(),n=s.find(".h-slider-container").first()},updated:function(e,t){if(r&&n)if(r.outerWidth()>=n.outerWidth())a.removeClass("active"),o.removeClass("active");else{a.addClass("active"),o.addClass("active");var i=e.state().overflowAmount,s=e.elements().scrollOffsetElement,l=s.scrollLeft;s.scrollWidth;l>0?a.addClass("visible"):a.removeClass("visible"),l<i.x?o.addClass("visible"):o.removeClass("visible")}},scroll:function(e,t){var i=e.state().overflowAmount,s=e.elements().scrollOffsetElement,r=s.scrollLeft;s.scrollWidth;r>0?a.addClass("visible"):a.removeClass("visible"),r<i.x?o.addClass("visible"):o.removeClass("visible")}});a.on("click",(function(){if(r&&n&&r.length&&n.length){var e,t=d.elements().scrollOffsetElement;l.each((function(i,s){var n=Cr(s,r[0]);return 0===i&&n?(t.scrollTo({behavior:"smooth",left:0}),!1):!n&&void(e=s)})),e&&t.scrollTo({behavior:"smooth",left:e.offsetLeft-parseInt(n.css("padding-left"))})}})),o.on("click",(function(){if(r&&n&&r.length&&n.length){var e,t=d.elements().scrollOffsetElement,i=(t.scrollLeft,t.scrollTop,t.scrollWidth);$(l.get().reverse()).each((function(s,n){var a=Cr(n,r[0]);if(0===s&&a)t.scrollTo({behavior:"smooth",left:i});else{if(a)return!1;e=n}})),e&&t.scrollTo({behavior:"smooth",left:e.offsetLeft-r.outerWidth()+e.getBoundingClientRect().width+parseInt(n.css("padding-left"))})}}))}}))},_marqueeHorizontalInit:function(){var e=this,t=$(".marquee-horizontal");t.each((function(e,t){var i=$(t);i.hasClass("marquee-horizontal-initialized")||i.addClass("marquee-horizontal-initialized")})),this.$window.on("resize.marqueeHorizontal orientationchange.marqueeHorizontal",(function(){t.each((function(t,i){var s=$(i);if(s.hasClass("marquee-horizontal-initialized")){e._marqueeHorizontalUpdateChild(s);var r=s.find(".track-horizontal").first(),n=80*r.width()/3425;n=Math.round(100*n)/100,r.css("animation-duration",n+"s")}}))})),this.$window.trigger("resize.marqueeHorizontal")},_marqueeHorizontalUpdateChild:function(e){var t=e.find(".track-horizontal").first(),i=t.find(".marquee-text").first(),s=Math.ceil(e.outerWidth()/(i.outerWidth()/2))+3;s=2*Math.round(s/2),t.children().length<s&&(t.empty(),pp(Array(s)).forEach((function(e,s){i.clone().appendTo(t)})))}
2,_applyStyleToInvalidSelect:function(){var e=$(".form-floating .form-select");e.each((function(e,t){var i=$(t),s=i.find("option:selected");(s.length&&s.attr("value")?s.attr("value").trim():"")?i.removeClass("select-no-options"):i.addClass("select-no-options")})),e.on("change",(function(e){var t=$(e.currentTarget),i=t.find("option:selected");(i.length&&i.attr("value")?i.attr("value").trim():"")?t.removeClass("select-no-options"):t.addClass("select-no-options")}))},_applyStyleToInvalidDateTime:function(){var e=$(".form-floating .form-control[type=date]");e.each((function(e,t){var i=$(t);(i&&i.val()?i.val().trim():"")?i.removeClass("invalid-date"):i.addClass("invalid-date")})),e.on("change",(function(e){var t=$(e.currentTarget);(t&&t.val()?t.val().trim():"")?t.removeClass("invalid-date"):t.addClass("invalid-date")}))},_animateChallengeCards:function(){$(".challenge-card-box:not(.details)").on({mouseenter:function(e){$(e.currentTarget).parent().closest().prevObject.addClass("hover")},mouseleave:function(e){$(e.currentTarget).parent().closest().prevObject.removeClass("hover")}})},_showChallengeCardDetailsModal:function(){var e,t,i,s,r=this,n=function(i,s){i.find(".challenge-details").first().data("overlayscrollbars",""),i.removeClass("in").addClass("out"),r.$window.off("mousedown.modalClickOutside"),(0,Pr.executeAfterTransition)((function(){i.removeClass("out animate"),i.find(".points-row").addClass("d-none"),i.find(".goals-row").addClass("d-none"),i.find(".challenge-relative-container").removeClass(e),i.find(".img-outline").removeClass(t),i.find(".background-cover").attr("src",""),i.find(".challenge-title").html(""),i.find(".challenge-details *[data-overlayscrollbars-viewport]").text(""),i.find(".points").text(""),i.find(".goals").text(""),i.trigger("mainscrollbarsshow"),r.$body.removeClass("challenge-modal-open")}),i[0]),s&&(s.removeClass("reallocate-card"),s.css("opacity",1))};$(".challenge-card-box:not(.details)").on("click",(function(a){a.preventDefault();var o=$(a.currentTarget),l=$(".challenge-card-modal"),d=o.parent().closest().prevObject,h=d.parent().closest().prevObject;e=d.data("status"),t=d.find(".img-outline").data("background-type");var c=o.find(".background-cover").attr("src"),u=o.find(".challenge-title").text(),f=o.find(".challenge-details").html(),m=o.find(".points").text(),p=o.find(".goals").text();if(l.find(".challenge-relative-container").addClass(e),l.find(".img-outline").addClass(t),l.find(".background-cover").attr("src",c),l.find(".challenge-title").text(u),!$(".challenge-details *[data-overlayscrollbars-viewport]").length){var g=l.find(".challenge-details").first();g.length&&Dr({target:g[0]},{paddingAbsolute:!0,update:{elementEvents:[]},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:200,autoHideSuspend:!1,dragScroll:!1}})}l.find(".challenge-details *[data-overlayscrollbars-viewport]").html(f),m&&(l.find(".points").text(m),l.find(".points-row").removeClass("d-none")),p&&(l.find(".goals").text(p),l.find(".goals-row").removeClass("d-none")),i=l,s=d;var y=$(window).scrollTop(),_=$(window).width()/2,v=y+$(window).height()/2,b=_-(h.offset().left+h.width()/2),w=v-(h.offset().top+h.height()/2);d.animate({top:w,left:b,zIndex:10,borderSpacing:"-360px"},{step:function(e,t){$(this).css("transform","rotateY("+e+"deg)"),$(this).css("opacity",0)},complete:function(){!function(e,t){e.addClass("animate"),r.$body.addClass("challenge-modal-open"),setTimeout((function(){e.trigger("mainscrollbarshide"),e.addClass("in")}),0),r.$window.on("mousedown.modalClickOutside",(function(s){$(i).has(s.target).length||n(e,t)}))}(l,d),d.addClass("reallocate-card"),d.css("top",""),d.css("left",""),d.css("z-index",""),d.css("transform",""),d.css("border-spacing","")}})})),this.$document.on("keydown",(function(e){"Escape"===e.key&&i&&i.hasClass("in")&&n(i,s)}))},_initLastCompletedChallengesSwiper:function(){var e=this,t=window.matchMedia("(min-width:768px)"),i=$(".challenge-card-container"),s=i.find(".challenge-card-swiper");s.length&&s.each((function(r,n){var a=i.has(n).find(".category-title"),o=s[r].swiper?s[r].swiper:void 0,l=function(e){e.matches?void 0!==o&&(o.destroy(!0,!0),o=void 0,i.find("[data-swiper-enabled-class]").each((function(e,t){var i=$(t);$(t).removeClass(i.data("swiper-enabled-class"))}))):(void 0===o&&(i.find("[data-swiper-enabled-class]").each((function(e,t){var i=$(t);$(t).addClass(i.data("swiper-enabled-class"))})),o=new ie(s[r],{slidesPerView:1,breakpoints:{320:{spaceBetween:40},576:{spaceBetween:70}}})),o.on("slideChange",(function(e){0===e.activeIndex?a.removeClass("hide-with-scroll"):a.addClass("hide-with-scroll")})))};t.addEventListener("change",l.bind(e)),l(t)}))},_playPauseVideoComponent:function(){var e=this,t=$(".video-player"),i=$(".fullscreen-button"),s=$("*[data-video-container] video");s.on("click",(function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault()}));s.on("loadedmetadata",(function(t){var i=$(t.currentTarget).closest("[data-vi
2deo-container]").find("[data-duration]"),s=t.currentTarget.duration;i.length&&i.text(e._formatTime(s)+" MIN.")})),s.on("timeupdate",(function(t){var i=$(t.currentTarget).closest("[data-video-container]").find("[data-elapsed]"),s=$(t.currentTarget).closest("[data-video-container]").find("[data-video-progression]"),r=t.currentTarget.currentTime,n=(r/t.currentTarget.duration*100).toFixed(2);i&&i.length&&i.text(e._formatTime(r)),s&&s.length&&s.css("width","".concat(n,"%"))})),function(){s.on("ended",(function(e){var t=$(e.currentTarget).closest("[data-video-container]");t.length&&(t.removeClass("started"),t.removeClass("playing"))})),t.on("click",(function(e){var t=$(e.currentTarget).closest("[data-video-container]");if(t.length){var i=t.find("video").get(0);i.paused?i.play():i.pause()}})),s.on("playing",(function(t){return e(t.currentTarget,!0)})),s.on("pause",(function(t){return e(t.currentTarget)}));var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=$(e).closest("[data-video-container]");i.length&&(t?i.addClass("playing"):i.removeClass("playing"),i.hasClass("started")||i.addClass("started"))}}(),s.on("webkitfullscreenchange mozfullscreenchange fullscreenchange",(function(e){var t=$(e.currentTarget).closest("[data-video-container]");t.length&&t.toggleClass("fullscreen")})),i.on("click",(function(e){var t=$(e.currentTarget).closest("[data-video-container]");if(t.length){var i=t.find("video").get(0);i.requestFullScreen?i.requestFullScreen():i.webkitRequestFullScreen?i.webkitRequestFullScreen():i.mozRequestFullScreen&&i.mozRequestFullScreen()}}))},_initPlyrVideo:function(){var e=this,t=$(".plyr-video-embed[data-init-plyr-player]"),i=Array.from(document.querySelectorAll(".plyr-video-embed[data-init-plyr-player]")).map((function(t,i){var s,r=!1,n=!1,a=!0;try{var o=(s=$(t)).data("plyr-config");o&&(r=!0,!0===o.autoplay&&(n=!0),!0===o.muted&&(a=!0)),s.attr("data-plyr-init-id",i)}catch(e){}var l=new(fe())(t);if(r){var d=function(){l.muted=a,n&&(l.autoplay=!0,l.play())};e.$window.on("load",(function(){d(),setTimeout(d,e.plyrDelay)}))}if(s&&"video"===s.get(0).nodeName.toLowerCase()){var h=s.parent(),c=h.parents(".plyr").next("[data-external-backdrop]");c.length&&h.append(c)}return l}));this.plyrItems=i,i&&i.length&&i.forEach((function(t,i){t.volume=0,t.muted=!0,t.on("enterfullscreen exitfullscreen",(function(e){var t=$(e.currentTarget);if(t.add(t.find(".plyr__video-wrapper")).css("clip-path",e.detail.plyr.fullscreen.active?"none":""),void 0!==t.attr("data-backdrop-visible"))t.attr("data-backdrop-visible",!e.detail.plyr.fullscreen.active);else{t.attr("data-backdrop-visible",!e.detail.plyr.fullscreen.active);var i=t.find("[data-external-backdrop]");i.length&&(e.detail.plyr.fullscreen.active?i.hide():i.show())}})),t.on("play pause",(function(i){var s=$(i.currentTarget),r=s.data("hide-overlay-on-play"),n=$(r);if(n.length){var a=s.data("hide-overlay-breakpoint");if(a)new ResizeObserver((function(){e.$window.width()<parseInt(a)?n.hasClass("fade")&&n.removeClass("fade show"):(n.hasClass("fade")||n.addClass("fade"),"pause"===i.type?n.addClass("show"):n.removeClass("show"))})).observe(i.currentTarget);n.addClass("fade"),"pause"===i.type?n.addClass("show"):n.removeClass("show")}else t.off("play pause")}))})),t.removeAttr("data-init-plyr-player");var s=$(".plyr[data-video-cover]"),r=$("video[data-video-cover]"),n=function(e,t){var i,s=e.width(),r=e.height();(s/r).toFixed(2)>=(16/9).toFixed(2)?i=(s/Math.floor(16*r/9)).toFixed(2):i=(r/Math.floor(9*s/16)).toFixed(2);(t&&t.length?t:e).css("transform","scale(".concat(i,")"))};this.$window.on("resize load",(function(e){var t=function(){n(s,s.find("iframe")),n(r)};t(),setTimeout((function(){return t()}),100),setTimeout((function(){return t()}),800)}))}
2,_initLockObserver:function(){var e=$("*[data-locked-content]");if($("#lockedContentModal").length){var t=new(ye())("#lockedContentModal");e.on("click",(function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),t.show()}))}},_initResumeVideoOnSwiperSlides:function(){var e=this,t=$(".swiper-initialized:has([data-slide-active-autoplay])");t.length&&t.each((function(t,i){var s=$(i),r=i.swiper,n=[];$.map(s.find("[data-plyr-init-id]"),(function(e){n.push($(e).data("plyr-init-id"))})),r.on("slideChangeTransitionEnd update",(function(t){if(e.plyrItems.length){var i=$(t.$el[0]).find(".swiper-slide-active [data-plyr-init-id]").data("plyr-init-id");n.forEach((function(t){e.plyrItems[t]&&(t===i?e.plyrItems[t].play():e.plyrItems[t].pause())}))}})),setTimeout((function(){return r.update()}),1e3)}))},_initNewsDetailsModal:function(){var e=$("#newsDetailsModal").first().sideForm();$('[data-action="show-details-modal"]').on("click",(function(t){e.sideForm("show")}))},_initProgressionLiveMatch:function(){var e=$("*[data-live-progression]"),t=[],i=null;e.each((function(e,i){var s=$(i),r=s.find(".current-progress"),n=s.find(".progress-bar");t.push({container:s,currentProgression:r,progressBar:n})})),i=setInterval((function(){t.length?t.forEach((function(e,i){if(e.progressBar.length&&e.currentProgression.length){var s=parseInt(e.currentProgression.attr("data-progress")),r=parseInt(e.progressBar.attr("data-max-progression")),n=Math.floor(s/r*100);e.currentProgression.css("width",n+"%"),100===n&&t.splice(i,1)}})):clearInterval(i)}),1e3)},_initFullWidthSlider:function(){$(".slider-full-width.swiper").each((function(e,t){var i=$(t);i.find(".scroll-arrow-l"),i.find(".scroll-arrow-r"),new ie(t,{modules:[ne],autoHeight:!0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}})}))}
2,_initDesktopMenuExpansion:function(){var e=$(".expansion-menu-wrapper"),t=$("#mainMenu .menu-panel"),i=!1;if(t.length){var s=t.find("li:not(.mbl-lang-selector) .btn.btn-link[data-bs-toggle]");s.each((function(t,i){var s=$(i),r=s.parent().find("ul.sub-menu"),n=s.data("href"),a='\n <div class="expansion-menu" data-target-ref="'.concat(n,'">\n <ul class="sub-menu">').concat(r.html(),"</ul>\n </div>");e.prepend(a),Dr({target:$('.expansion-menu[data-target-ref="'+n+'"]').get(0)},{paddingAbsolute:!0,update:{elementEvents:[]},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"scroll",autoHideDelay:200,autoHideSuspend:!1,dragScroll:!1}})})),this.$window.on("resize.enableCollapse load.enableCollapse",(function(t){(i=window.matchMedia("(max-width: 991px)").matches)?(e.find(".expansion-menu").removeClass("in"),s.removeClass("expanded-menu"),s.each((function(e,t){var i=$(t);i.attr("href",i.data("href"))}))):s.each((function(e,t){$(t).removeAttr("href")}))})),this.$window.trigger("resize.enableCollapse"),this.$window.trigger("load.enableCollapse"),s.on("click",(function(t){if(!i){var r=$(t.currentTarget),n='[data-target-ref="'+r.data("href")+'"]',a=e.find(".expansion-menu"+n),o=e.find(".expansion-menu.in").length>0?300:0;e.find(".expansion-menu:not("+n+")").removeClass("in"),s.removeClass("expanded-menu"),a.length&&(a.hasClass("in")?(a.removeClass("in"),r.removeClass("expanded-menu")):(setTimeout((function(){a.addClass("in")}),o),r.addClass("expanded-menu")))}}))}},_initStickyTabNav:function(){var e=this,t=$(".nav-placeholder"),i=t.find("nav.container-nav"),s=$("header.main-header"),r=$("*[data-anchor-element]"),n=$('a[data-observe-scroll="true"]');if(i.length&&s.length){var a=function(){return t.offset().top+(t.outerHeight()/2-i.outerHeight()/2)},o=s.height(),l=a();this.$window.on("resize",(function(){l=a()})),this.$window.on("load scroll",(function(e){var t=$(e.currentTarget).scrollTop();o=s.height(),t>=Math.floor(l-o)?i.hasClass("sticky-nav")||i.addClass("sticky-nav"):i.removeClass("sticky-nav")}))}this.$window.on("scroll resize",(function(t){var i=e.$window.height()/4,s=e.$window.scrollTop();r.each((function(e,t){var r=$(t),a=i+s,o=r.offset().top,l=r.height();if(o<=a&&a<l+o){var d=$('a[data-observe-scroll="true"][href="#'.concat(r.attr("id"),'"]'));d.length&&!d.hasClass("active")&&(n.removeClass("active"),d.addClass("active"))}}))}))},_initLightboxGallery:function(){var e=this,t=$("*[data-init-lightbox]"),i=$("#lightboxModal"),s=$("#mainLightboxSlider"),r=$("#thumbsLightboxSlider");if(t.length&&i.length){var n=new(ye())("#lightboxModal");t.on("click",(function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();var t=$(e.currentTarget).find("[data-lightbox-gallery]");if(t.length){s.find(".swiper-wrapper > *").remove(),r.find(".swiper-wrapper > *").remove();var i="";t.find("> .swiper-slide").each((function(e,t){var s=$(t).data("thumb-url");i+='\n <div class="swiper-slide">\n <img class="background-contain" src="'.concat(s,'" width="500" height="300" loading="lazy" alt="">\n </div>')})),s.find(".swiper-wrapper").append(t.html()),r.find(".swiper-wrapper").append(i);var a=new ie(r.get(0),{spaceBetween:6,slidesPerView:1.8,freeMode:!0,slideToClickedSlide:!0,watchSlidesProgress:!0,breakpoints:{768:{slidesPerView:2.5},992:{slidesPerView:3.2},1200:{slidesPerView:4},1400:{slidesPerView:5},1600:{slidesPerView:6}}});new ie(s.get(0),{modules:[ne,le],navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},thumbs:{swiper:a}});n.show()}})),i.on("show.bs.modal hide.bs.modal",(function(){e.$body.hasClass("lightbox-open")?e.$body.removeClass("lightbox-open"):e.$body.addClass("lightbox-open")}))}}
2,_initShareModal:function(){var e=$("*[data-share-link]"),t=$("#shareLinkModal"),i=$("#copiedToClipboardToast");if(e.length&&e.length){var s;i.length&&(s=new(we())("#copiedToClipboardToast"));var r,n=new(ye())("#shareLinkModal"),a=t.find(".social-wrapper"),o=t.find("#shareLinkInput"),l=t.find("#shareModalTitle"),d=t.find(".share-btn");e.on("click",(function(e){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();var t=$(e.currentTarget),i=t.data("share-title"),s=t.parent().find("[data-share-socials]");if(a&&s.length){var d=s.html();a.html(d)}(r=t.data("share-link"))&&(l.text(i),o.val(r),n.show())})),d.length&&d.on("click",(function(){navigator.clipboard.writeText(r).then((function(){s&&s.show()})).catch((function(){s&&(i.find(".toast-body").text("Impossibile copiare il testo selezionato! Riprova manualmente"),s.show())})),s&&s.show()})),t.on("hidden.bs.modal",(function(){a.length&&a.html(""),s&&s.hide()}))}},_initSearchModal:function(){var e=$("#searchModal").first().sideForm();$('[data-action="show-search-modal"]').on("click",(function(t){e.sideForm("show")}))}
2,_initTicketOfficeMatchDetailsModal:function(){var e=$("#ticketMatchDetailsModal").first().sideForm();$('[data-action="show-ticket-match-details-modal"]').on("click",(function(t){e.sideForm("show")}))},_changeModalTableTemplateOnResize:function(){var e=$("*[data-table-builder] .table[data-init-table-builder]");if(e.length){var t=new Array(e.length).fill(!1);this.$window.on("load resize",(function(i){e.each((function(e,i){var s,r,n,a;t[e]||(r=$(i),n=r.find(".table-header .cell:not(.cell-first)"),a=r.find(".table-content .table-row"),s='<div class="mobile-table">',n.each((function(e,t){var i=$(t).text();e>0&&(s+='<div class="row-spacer"></div>'),s+='\n <h4 class="table-heading">'.concat(i,"</h4>"),a.each((function(t,i){var r=$(i),n=r.find(".cell.cell-first").html(),a=$(r.find(".cell:not(.cell-first):nth-child(".concat(e+2,")"))),o=a.attr("class"),l=a.text();s+='\n <div class="table-row">\n <div class="cell cell-first">'.concat(n,'</div>\n <div class="').concat(o,'">').concat(l,"</div>\n </div>")}))})),s+="</div>",r.append(s),t[e]=!0)}))}))}},_initPlayPauseJingleAudio:function(){var e=this,t=$("*[data-audio-container]");if(t.length){var i=t.find("[data-audio-player]"),s=t.find("audio"),r=null,n=null;s.on("loadedmetadata",(function(t){var i=$(t.currentTarget).closest("[data-audio-container]").find("[data-audio-duration]"),s=t.currentTarget.duration;i.length&&i.text(e._formatTime(s))})),s.on("timeupdate",(function(e){var t=$(e.currentTarget).closest("[data-audio-container]").find("[data-audio-progression]"),i=(e.currentTarget.currentTime/e.currentTarget.duration*100).toFixed(2);t&&t.length&&t.css("width","".concat(i,"%"))})),i.on("click",(function(e){var t=$(e.currentTarget).closest("[data-audio-container]");if(t.length){var i=t.find("audio"),s=i.data("audio-id"),a=i[0];if(r&&!r[0].paused&&(r[0].pause(),$("[data-audio-container]").removeClass("playing"),n===s))return void(n=null);r=i,n=s,a.play(),t.addClass("playing")}})),s.on("ended",(function(e){var t=$(e.currentTarget).closest("[data-audio-container]");t.length&&t.removeClass("playing")}))}},_formatTime:function(e){var t=Math.floor(e/60);t=t>=10?t:"0"+t;var i=Math.floor(e%60);return t+":"+(i=i>=10?i:"0"+i)}
2,_initPlayPauseLive:function(){var e=$("*[data-live-audio]");if(e.length){var t=e.find("[data-audio-player]"),i=e.find("audio");i.each((function(e,t){var i=$(t);!function(e,t){if(lp.isSupported()){var i=new lp;i.loadSource(t),i.attachMedia(e)}else e.canPlayType("application/vnd.apple.mpegurl")&&(e.src=t)}(t,i.data("audio-src")),i.attr("data-initialized-hls","true")})),t.on("click",(function(t){var i=$(t.currentTarget).closest("[data-live-audio]");if(i.length){var s=i.find("audio")[0];s.paused?(s.play(),i.addClass("playing")):(s.pause(),e.removeClass("playing"))}})),i.on("ended",(function(e){var t=$(e.currentTarget).closest("[data-live-audio]");t.length&&t.removeClass("playing")}))}},_initResponsiveGallerySlider:function(){var e=$(".content-wrapper[data-slider-gallery]");e.length&&this.$window.on("resize load",(function(){if(window.matchMedia("(max-width: 991px)").matches)e.each((function(e,t){var i=$(t),s=i.find("[data-lightbox-gallery]");if(s.length){var r='\n <div class="swiper gallery-swiper">\n <div class="swiper-wrapper">';r+=s.html(),r+='</div>\n\n <div class="black-gradient-from-bottom gallery-backdrop"></div>\n\n <button class="btn btn-link btn-icon scroll-arrow scroll-arrow-l swiper-button-prev" title="">\n \x3c!-- source of "slider-r.svg" --\x3e\n <svg class="arrow" width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">\n <rect class="svg-bg" x="1.41421" y="40" width="54.5685" height="54.5685" transform="rotate(-45 1.41421 40)" fill="white" fill-opacity="0.95" stroke="#5A348B" stroke-width="2"/>\n <path class="svg-arrow" d="M37 48L45 40L37.0002 32" stroke="#6432A4" stroke-width="2"/>\n </svg>\n\n </button>\n\n <button class="btn btn-link btn-icon scroll-arrow scroll-arrow-r swiper-button-next" title="">\n \x3c!-- source of "slider-r.svg" --\x3e\n <svg class="arrow" width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">\n <rect class="svg-bg" x="1.41421" y="40" width="54.5685" height="54.5685" transform="rotate(-45 1.41421 40)" fill="white" fill-opacity="0.95" stroke="#5A348B" stroke-width="2"/>\n <path class="svg-arrow" d="M37 48L45 40L37.0002 32" stroke="#6432A4" stroke-width="2"/>\n </svg>\n\n </button>\n </div>';var n=i.find(".intro-backdrop");n.length&&n.hide(),i.find("> picture, > img.background-cover").hide(),i.addClass("swiper-show");var a=i.find(".gallery-swiper");if(a&&a.length)a.show();else{i.prepend(r);new ie(i.find(".gallery-swiper").get(0),{modules:[ne],slidesPerView:1,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}})}}}));else{e.find(".gallery-swiper").hide(),e.find("> picture, > img.background-cover").show(),e.removeClass("swiper-show");var t=e.find(".intro-backdrop");t.length&&t.show()}}))},_initBannerFullWidthSwiper:function(){new ie(".full-width-banner-swiper",{modules:[oe,ne],slidesPerView:1,loop:!0,pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}})},_initCountDown:function(){var e,t=$("*[data-countdown]");if(t.length){var i=[];t.each((function(e,t){var s=$(t),r=s.data("countdown"),n=s.data("date-format"),a=dp(r,n||"YYYY-MM-D HH:mm");i.push({id:e,target:s,endDate:a,daysTarget:s.find("*[data-countdown-days]"),hoursTarget:s.find("*[data-countdown-hours]"),minutesTarget:s.find("*[data-countdown-minutes]")})})),e=setInterval((function(){i.length?i.forEach((function(e){var t=dp.duration(e.endDate.diff(dp())),s=Math.floor(t.asDays()),r=Math.floor(t.asHours())%24,n=Math.ceil(t.asMinutes())%60;if(s<=0&&r<=0&&n<=0){var a=i.findIndex((function(t){return t.id===e.id}));a>=0&&i.splice(a,1),s=0,r=0,n=0}e.daysTarget.length&&e.daysTarget.text(s.toString().padStart(2,"0")),e.hoursTarget.length&&e.hoursTarget.text(r.toString().padStart(2,"0")),e.minutesTarget.length&&e.minutesTarget.text(n.toString().padStart(2,"0"))})):clearInterval(e)}),1e3)}},_initGraphProgression:function(){$(".circular-progress").each((function(e,t){var i=$(t),s=i.find(".current-progression"),r=i.attr("data-max-chart-progress")?parseInt(i.attr("data-max-chart-progress")):100,n=i.height(),a=i.hasClass("main")?10:5,o=parseInt(i.attr("data-chart-progress"))/r*100,l=(n-a)/2*Math.PI*2,d=Math.round(o*l/100),h=Math.round(l-d);s.length&&s.css({strokeDasharray:"".concat(d," ").concat(h),strokeDashoffset:0})})),$(".linear-chart").each((function(e,t){var i=$(t),s=i.find(".linear-progress:nth-child(1)"),r=i.find(".linear-progress:nth-child(2)");if(s.length&&r.length){var n=s.attr("data-progress")?parseInt(s.attr("data-progress")):0,a=r.attr("data-progress")?parseInt(r.attr("data-progress")):0,o=s.data("c
2olor")?s.data("color"):"#56358B",l=r.data("color")?r.data("color"):"#ECECEC",d=n+a;i.hasClass("single")&&(a=(d=i.attr("data-max-linear-progress")?parseInt(i.attr("data-max-linear-progress")):d)-n);var h=Math.floor(n/d*100).toString()+"%",c=Math.floor(a/d*100).toString()+"%";s.css("width","calc(".concat(h," - 4px)")),s.css("background-color",o),r.css("width","calc(".concat(c," - 4px)")),r.css("background-color",l)}}))},_initSectionPhaseCardAccordion:function(){var e=$(".subscription-phase-card:not(.active)"),t=[];e.each((function(e,i){var s=$(i),r=s.find(".card-body"),n=s.find(".collapse-card-wrapper"),a=s.find(".phase-title");t.push({cardBody:r,collapseCardWrapper:n,phaseTitle:a})}));var i=window.matchMedia("(max-width: 991.98px)");this.$window.on("load.updateAccordionVisibility resize.updateAccordionVisibility",(function(e){i.matches?t.forEach((function(e){e.cardBody.addClass(e.cardBody.data("accordion-class")),e.collapseCardWrapper.addClass(e.collapseCardWrapper.data("accordion-class")),e.phaseTitle.addClass(e.phaseTitle.data("accordion-class"))})):t.forEach((function(e){e.cardBody.removeClass(e.cardBody.data("accordion-class")),e.collapseCardWrapper.removeClass(e.collapseCardWrapper.data("accordion-class")),e.phaseTitle.removeClass(e.phaseTitle.data("accordion-class"))}))})),this.$window.trigger("load.updateAccordionVisibility"),this.$window.trigger("resize.updateAccordionVisibility")},_mapCreateInstance:function(e,t){var i=this;switch(e.attr("data-view-type")){case"map":this._mapInit(e,t);break;case"list":window.matchMedia("(min-width: 992px)").matches&&this._mapInit(e,t)}this.$window.on("resize.consoleBar orientationchange.consoleBar",(function(){"list"===e.attr("data-view-type")&&window.matchMedia("(min-width: 992px)").matches&&i._mapInit(e,t)}))},_geolocationInit:function(e,t){var i=this;navigator&&navigator.geolocation?navigator.geolocation.getCurrentPosition((function(s){i._myGeolocationPosition[t]={lat:s.coords.latitude,lng:s.coords.longitude},i._geolocationSuccess(i._myGeolocationPosition[t],e,t)}),(function(s){switch(s.code){case s.TIMEOUT:case s.PERMISSION_DENIED:case s.POSITION_UNAVAILABLE:}i._tryAPIGeolocation(e,t)}),{maximumAge:36e5,timeout:2e4,enableHighAccuracy:!0}):this._tryAPIGeolocation(e,t)},_tryAPIGeolocation:function(e,t){var i=this;window.ACF.googleGeolocateApiKey?$.post("https://www.googleapis.com/geolocation/v1/geolocate?key=".concat(window.ACF.googleGeolocateApiKey),(function(s){i._myGeolocationPosition[t]={lat:s.location.lat,lng:s.location.lng},i._geolocationSuccess(i._myGeolocationPosition[t],e,t)})).fail((function(s){i._geolocationError(e,t)})):this._geolocationError(e,t)},_geolocationSuccess:function(e,t,i){this._geolocationPosition[i]=e,this._mapInstance[i]&&this._mapInstance[i].setCenter(this._geolocationPosition[i]),this._sortStoresByDistance(this._geolocationPosition[i],t)},_geolocationError:function(e,t){var i=e.find(".list .stores .store");i.find(".distance .loading").remove(),i.find(".distance .geolocation-error").css({display:"inline"}),this._myGeolocationPositionMarker[t]=null,clearTimeout(this._myPositionUpdateTimeoutId[t]),e.find(".btn-location-tracker").length&&e.find(".btn-location-tracker").addClass("no-permissions")},_sortStoresByDistance:function(e,t){var i=t.find(".list .stores"),s=i.find(".store");if(s.length){var r=new Nr(e.lat,e.lng),n=new Intl.NumberFormat(window.ACF.currentLang?window.ACF.currentLang:"it",{maximumFractionDigits:1});s.each((function(e,t){var i=$(t),s=new Nr(parseFloat(i.data("lat")),parseFloat(i.data("lng"))),a=r.distanceTo(s);i.attr("data-distance",a||0);var o=a/1e3>100,l=a>
21e3?n.format(o?Math.round(a/1e3):a/1e3)+" km":n.format(Math.round(a))+" m";i.find(".store-base-info .distance").text(l)})),s.sort((function(e,t){return+e.dataset.distance-+t.dataset.distance})).appendTo(i)}},_filtersPanelInit:function(e,t){var i=this,s=!1,r=!1,n=e.find(".filters-panel"),a=e.find(".search-bar .btn-filter"),o=e.find(".search-form").first(),l=e.find(".store-filter-value");if(n.length){var d=function(){r=!0,n.removeClass("in").addClass("out"),a.removeClass("active"),e.removeClass("filters-open"),i.$window.off("resize.filtersOpenBackdropPosition orientationchange.filtersOpenBackdropPosition scroll.filtersOpenBackdropPosition"),i.$window.off("click.filtersClickOutside"),n.find('input[name="f"]').add(n.find('input[name="t"]')).off("change.filtersChangeSubmit"),(0,Pr.executeAfterTransition)((function(){n.removeClass("out animate"),n.trigger("mainscrollbarsshow"),r=!1,o.trigger("submit")}),n[0])};a.on("click",(function(t){t.preventDefault(),r||(s?d():(r=!0,n.addClass("animate"),a.addClass("active"),e.addClass("filters-open"),setTimeout((function(){n.trigger("mainscrollbarshide"),n.addClass("in"),r=!1}),0),i.$window.on("resize.filtersOpenBackdropPosition orientationchange.filtersOpenBackdropPosition scroll.filtersOpenBackdropPosition",(function(){e.get(0).style.setProperty("--filters-open-top-adjustment","".concat(i.$window.scrollTop(),"px"))})),i.$window.trigger("resize.filtersOpenBackdropPosition"),i.$window.on("click.filtersClickOutside",(function(e){$.contains(o.get(0),e.target)||s&&(d(),s=!1)})),n.find('input[name="f"]').add(n.find('input[name="t"]')).on("change.filtersChangeSubmit",$.debounce(500,(function(e){o.trigger("submit")})))),s=!s)})),l.find(".btn-icon").on("click",(function(e){e.preventDefault(),n.find('input[name="f"]').prop("checked",!1),n.find('input[name="t"]').prop("checked",!1),o.trigger("submit")})),Dr({target:n.find(".scroll-panel").first()[0]},{paddingAbsolute:!0,update:{elementEvents:[]},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:200,autoHideSuspend:!1,dragScroll:!0}})}}
2,_storeDetailModalInit:function(){var e=$("#storeDetails"),t=e.find(".store-panel").first();e.length&&t.length&&(this._storeDetailModal.focusTrap=new xa({trapElement:e[0]}),Dr({target:t[0]},{paddingAbsolute:!0,update:{elementEvents:[]},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"scroll",autoHideDelay:200,autoHideSuspend:!1,dragScroll:!1}}))},_showStoreDetails:function(e,t,i){var s=this,r=$("#storeDetails"),n=$("#selectedMarkerOverlay"),a=r.find(".store-panel").first(),o=t.find('.list .stores .store[data-id="'+e+'"]');if(o.length){var l=(document.querySelector("base")||{}).href;l||(l="/");var d=o.data("marker")?o.data("marker"):l+"inc/FIORENTINA/img/icon-selected-marker-map.svg";n.attr("src",d),this._storeDetailModal.visible=!0,r.trigger("mainscrollbarshide"),a.find(".header .image img").attr("src",o.find(".store-extended-info .image img").attr("src"));var h=o.find(".store-extended-info .footer-image img");h.length?a.find(".footer .image img").attr("src",h.attr("src")):a.find(".footer .image img").attr("src",".");var c=this._geolocationLastPlace[i]?this._geolocationLastPlace[i].displayName:"te",u=o.find(".store-base-info .distance").text();if(u.trim()){var f=a.find(".header .distance");f.text(f.data("text").replace("%%distance%%",u).replace("%%location%%",c))}else a.find(".header .distance").html(o.find(".store-base-info .distance").html());a.find(".name").text(o.find(".store-base-info .name").text()),a.find(".address span:first-child").text(o.find(".store-base-info .address span:first-child").text()),a.find(".address span:last-child").text(o.find(".store-base-info .address span:last-child").text());var m=a.find(".directions-link"),p=m.data("base-href").replace("%%lat%%",o.data("lat")).replace("%%lng%%",o.data("lng"));m.attr("href",p);var g=o.find(".directions-link a");g.length&&g.attr("onclick")&&m.on("click",(function(e){g.click()})),a.find(".info").remove(),m.after(o.find(".store-extended-info .info").clone()),r.addClass("animate").focus(),n.addClass("animate"),setTimeout((function(){r.addClass("in"),n.addClass("in"),(0,Pr.executeAfterTransition)((function(){s._storeDetailModal.focusTrap.activate()}),r[0])}),0),r.on("click.storeDetailsHide",(function(e){e.target===r[0]&&s._hideStoreDetails()})),this.$document.on("keydown.storeDetailsHide",(function(e){"Escape"===e.key&&s._hideStoreDetails()}));var y=o.data("marker-reference");if(y){this._storeDetailModal.selectedMarker=y,y.zIndex=10;var _=$(y.content).parent(),v=function(){var e=!1;a.css({left:"",top:"",bottom:"",right:"",transform:""}).removeClass("js-position");var r=_.offset().left+_.outerWidth()/2,o=_.offset().top+_.outerHeight();if(window.matchMedia("(min-width: 768px)").matches){r+22.5+a.outerWidth()+30<s.$window.width()?a.css({left:"".concat(r+22.5+18,"px")}).addClass("js-position"):r-22.5-a.outerWidth()-30>0?a.css({left:"".concat(r-22.5-a.outerWidth()-18,"px")}).addClass("js-position"):a.css({left:"50%",transform:"translateX(-50%)"}).addClass("js-position");var l=a.outerHeight();o-26+l/2+40-s.$window.scrollTop()<=s.$window.height()&&o-26-l/2-80-s.$window.scrollTop()>=0?a.css({top:"".concat(o-26-l/2-s.$window.scrollTop(),"px")}).addClass("js-position"):o-26+l/2+40-s.$window.scrollTop()>s.$window.height()?a.css({top:"".concat(s.$window.height()-l-40,"px")}).addClass("js-position"):o-26-l/2-80-s.$window.scrollTop()<0&&a.css({top:"80px"}).addClass("js-position")}else{var d;if(s._mapEmbedded[i]){var h=t.offset().top+t.outerHeight()-s.$window.scrollTop()-a.outerHeight()-40;d={left:"50%",top:"".concat(h,"px"),transform:"translateX(-50%)"}}else d={left:"50%",bottom:"".concat(40+s.$window.scrollTop(),"px"),transform:"translateX(-50%)"};if(a.css(d).addClass("js-position"),s._storeDetailModal.firstUpdatePosition)if(s._mapEmbedded[i])s._mapInstance[i].panTo(y.position);else{e=!0;var c=a.outerHeight();s._mapInstance[i].panBy(r-s.$window.width()/2,o-(s.$window.height()-c)/2-n.outerHeight()/2)}}var u=n.outerHeight(),f=n.outerWidth();return n.css({top:"".concat(o-7-22.5-u/2-s.$window.scrollTop(),"px"),left:"".concat(r-f/2,"px")}),s._storeDetailModal.firstUpdatePosition=!1,e};if(this._storeDetailModal.firstUpdatePosition=!0,v()){y.content.classList.add("pan","details"),n.addClass("pan");var b=this._mapInstance[i].addListener("idle",(function(){google.maps.event.removeListener(b),v(),s._storeDetailModal.mapListeners.push(s._mapInstance[i].addListener("center_changed",v.bind(s))),s._storeDetailModal.mapListeners.push(s._mapInstance[i].addListener("zoom_changed",v.bind(s))),s._storeDetailModal.mapListeners.push(s._mapInstance[i].addListener("bounds_changed",v.bind(s))),s._storeDetailModal.mapListeners.push(s._mapInstance[i].addListener("idle",v.bind(s)))}));this._storeDetailModal.mapListeners.push(b)}else y.content.classList.add("details"),this._storeDetailModal.mapListeners.push(this._mapInstance[i].addListener("center_changed",v.bind(this))),this._storeDetailModal.mapListeners.push(this._mapInstance[i].addListener("zoom_changed",v.bind(this))),this._storeDetailModal.mapListeners.push(this._mapInstance[i].addListener("bounds_changed",v.bind(this))),this._storeDetailModal.mapListeners.push(this._mapInstance[i].addListener("idle",v.bind(this)))}}},_hideStoreDetails:function(){if(this._storeDetailModal.visible){this._storeDetailModal.visible=!1;
2var e=$("#storeDetails"),t=$("#selectedMarkerOverlay"),i=e.find(".store-panel").first();this._storeDetailModal.focusTrap.deactivate();var s,r=mp(this._storeDetailModal.mapListeners);try{for(r.s();!(s=r.n()).done;){var n=s.value;google.maps.event.removeListener(n)}}catch(e){r.e(e)}finally{r.f()}this._storeDetailModal.mapListeners=[],this.$window.off("resize.storeDetails orientationchange.storeDetails"),this.$document.off("keydown.storeDetailsHide"),e.on("click.storeDetailsHide"),e.removeClass("in").addClass("out"),t.removeClass("in pan").addClass("out"),(0,Pr.executeAfterTransition)((function(){e.removeClass("out animate"),t.removeClass("out animate"),e.trigger("mainscrollbarsshow")}),e[0]),this._storeDetailModal.selectedMarker&&(this._storeDetailModal.selectedMarker.content.classList.remove("details","pan"),this._storeDetailModal.selectedMarker.zIndex=null,this._storeDetailModal.selectedMarker=null),i.find(".directions-link").off("click")}},_onMarkerClick:function(e,t,i){var s=t.find('.list .stores .store[data-id="'+e+'"]');if(s.length)switch(t.attr("data-view-type")){case"map":this._showStoreDetails(e,t,i);break;case"list":window.matchMedia("(min-width: 992px)").matches&&s.trigger("click.onMarker")}},_listInit:function(e,t){var i=this,s=e.find(".list"),r=s.find(".stores"),n=e.parents(".embedded-map-container");r.on("show.bs.collapse",(function(e){var t=$(e.target).closest(".store");t.addClass("open"),r.find(".collapse.show").collapse("hide");var i=t.data("marker-reference");i&&(i.content.classList.add("selected"),i.zIndex=10)})),r.on("hide.bs.collapse",(function(e){var t=$(e.target).closest(".store");t.addClass("will-close");var i=t.data("marker-reference");i&&(i.content.classList.remove("selected"),i.zIndex=null)})),r.on("hidden.bs.collapse",(function(e){$(e.target).closest(".store").removeClass("open will-close")})),r.on("click.onMarker",".store",(function(a){if($(a.target).is(".store-extended-info a")||$(a.target).is("a.map-link"))return!0;a.preventDefault();var o=$(a.currentTarget),l=o.find(".collapse");if(l.length){ve().getOrCreateInstance(l[0]).show();var d=parseInt(s.css("padding-top")),h=parseInt(r.css("padding-bottom"));if(!Cr(o.get(0),null,i._mapEmbedded[t]?null:{top:d,bottom:h}))if(i._mapEmbedded[t])n.animate({scrollTop:o.offset().top-n.offset().top+n.scrollTop()});else{var c=function(){var e=o.offset().top-d,t=o.offset().top-i.$window.height()+h+o.outerHeight();Math.abs(i.$window.scrollTop()-e)<Math.abs(i.$window.scrollTop()-t)?window.scrollTo({top:e,behavior:"smooth"}):window.scrollTo({top:t,behavior:"smooth"})};l.hasClass("show")?c():o.one("shown.bs.collapse",(function(e){c()}))}}"onMarker"===a.namespace||l.hasClass("show")||i._mapCenter(e,t,parseFloat(o.data("lat")),parseFloat(o.data("lng")))})),r.on("click",".store a.map-link",(function(s){var r=e.find(".search-form").first(),n=r.find('input[name="v"]');n.removeProp("checked"),n.filter('[value="map"]').prop("checked",!0),r.trigger("submit"),setTimeout((function(){var r=$(s.currentTarget).closest(".store");i._mapInstance[t]?(i._mapCenter(e,t,parseFloat(r.data("lat")),parseFloat(r.data("lng")),!1),setTimeout((function(){i._showStoreDetails(r.data("id"))}),500)):e.one("mapinit",(function(){setTimeout((function(){i._mapCenter(e,t,parseFloat(r.data("lat")),parseFloat(r.data("lng")),!1),setTimeout((function(){i._showStoreDetails(r.data("id"))}),200)}),200)}))}),300)})),r.on("mouseenter mouseleave",".store",(function(e){var t=$(e.currentTarget).data("marker-reference");t&&("mouseenter"===e.type?(t.content.classList.add("hover"),t.zIndex=5):(t.content.classList.remove("hover"),t.zIndex=null))}))},_mapCenter:function(e,t,i,s){var r=this,n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];this._mapInstance[t]&&("map"===e.attr("data-view-type")||window.matchMedia("(min-width: 992px)").matches&&"list"===e.attr("data-view-type"))&&(n?(this._mapInstance[t].setZoom(15),this._mapInstance[t].panTo({lat:i,lng:s})):(this._mapInstance[t].setCenter({lat:i,lng:s}),setTimeout((function(){r._mapInstance[t].setZoom(15)}),300)))},_consoleBarInit:function(e,t){var i=this,s=e.find(".search-form").first(),r=s.find('input[name="s"]').first(),n=s.find('input[name="v"]'),a=e.find(".filters-panel"),o=a.find('input[name="f"]'),l=a.find('input[name="t"]'),d=n.filter("[value="+e.data("default-view-type")+"]").length?e.data("default-view-type"):"map";if(s.length){s.submit((function(s){s.preventDefault();var a=new URL(location);if(r.length&&(r.val().trim()?a.searchParams.set("s".concat(t),r.val().trim()):a.searchParams.delete("s".concat(t))),n.length&&(n.filter(":checked").val()!==d?a.searchParams.set("v".concat(t),n.filter(":checked").val()):a.searchParams.delete("v".concat(t))),o.length){a.searchParams.delete("f".concat(t));var h=o.filter(":checked");h.length&&h.each((function(e,i){a.searchParams.append("f".concat(t),$(i).val())}))}if(l.length){a.searchParams.delete("t".concat(t));var c=l.filter(":checked");c.length&&c.each((function(e,i){a.searchParams.append("t".concat(t),$(i).val())}))}(r.length||n.length||o.length||l.length)&&history.pushState({},"",a),i._handlePopstate(e,t)}));var h=new URLSearchParams(window.location.search);r.length&&(r.on("keyup.searchFormChangeSubmit",$.debounce(500,(function(){s.trigger("submit")}))),this._searchAutocompleteInit(e,t).catch((function(e){return console.error("Store search autocomplete init failed",e)}))),n.length&&(e.attr("data-view-type")&&n.filter("[value="+e.attr("data-view-type")+"]").length?(n.removeProp("checked"),n.filter('[value="'+e.attr("data-view-type")+'"]').prop("checked",!0)):h.has("v".concat(t))&&n.filter("[value="+h.get("v".concat(t))+"]").length?(e.attr("data-view-type",h.get("v".concat(t))),n.removeProp("checked"),n.filter('[value="'+h.get("v".concat(t))+'"]').prop("checked",!0)):e.attr("data-view-type",d),n.filter(":checked").length||n.filter("[value="+d+"]").prop("checked",!0),n.change((function(){s.trigger("submit")}))),this._filtersPanelInit(e,t),this._handlePopstate(e,t),e.addClass("view-section-initialized"),window.addEventListener("popstate",this._handlePopstate.bind(this,e,t))}},_searchAutocompleteInit:function(e,t){var i=this;return fp(cp().mark((function s(){var r,n,a,o,l,d,h,c,u,f,m,p,g,y,_,v,b,w;return cp().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,window.googleMapsReady;case 2:if(r=e.find(".search-form").first(),n=r.find(".search-bar").first(),a=r.find('input[name="s"]').first(),o=e.find(".store-location-value").first(),!a.length||!n.length){s.next=28;break}return s.next=9,google.maps.importLibrary("places");case 9:l=s.sent,d=l.AutocompleteSuggestion,h=l.AutocompleteSessionToken,c="searchPredictions".concat(t),u=$('<div class="search-predictions" id="'.concat(c,'" role="listbox" hidden></div>')),n.append(u),a.attr({role:"combobox","aria-autocomplete":"list","aria-expanded":"false","aria-controls":c}).attr("autocomplete","off"),f=[],m=-1,p=null,g=function(){p=null},y=function(){f=[],m=-1,u.attr("hidden",!0).empty(),a.attr("aria-expanded","fal
2se").removeAttr("aria-activedescendant")},_=function(e){m=e;var t=u.find(".search-prediction");if(t.removeClass("is-active").attr("aria-selected","false"),e<0)a.removeAttr("aria-activedescendant");else{var i=t.eq(e).addClass("is-active").attr("aria-selected","true");a.attr("aria-activedescendant",i.attr("id"))}},v=function(e){var t=String(e),i=(e.matches||[]).slice().sort((function(e,t){return e.startOffset-t.startOffset})),s=$("<span></span>"),r=0;return i.forEach((function(e){var i=e.startOffset,n=e.endOffset,a=i||0;a>r&&s.append(document.createTextNode(t.slice(r,a))),s.append($("<b></b>").text(t.slice(a,n))),r=n})),r<t.length&&s.append(document.createTextNode(t.slice(r))),s.contents()},b=function(){u.empty(),f.forEach((function(s,n){var l=s.placePrediction,d=$('<button type="button" class="search-prediction" role="option" id="'.concat(c,"-").concat(n,'" aria-selected="false"></button>'));d.append('<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><path d="M12 21s7-6.2 7-11a7 7 0 1 0-14 0c0 4.8 7 11 7 11z"/><circle cx="12" cy="10" r="2.4"/></svg>');var h=$('<span class="text"></span>');h.append($('<span class="main"></span>').append(v(l.mainText))),l.secondaryText&&h.append($('<span class="secondary"></span>').text(String(l.secondaryText))),d.append(h),d.on("mousedown",(function(s){s.preventDefault(),i._onPredictionSelected(f[n],e,t,r,a,o,y,g).catch((function(e){return console.error("Place selection failed",e)}))})),u.append(d)})),u.append('<div class="search-attribution"><img src="https://maps.gstatic.com/mapfiles/api-3/images/powered-by-google-on-white3_hdpi.png" alt="powered by Google"></div>'),u.removeAttr("hidden"),a.attr("aria-expanded","true"),_(-1)},w=function(){var e=fp(cp().mark((function e(t){var i;return cp().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return p||(p=new h),e.prev=1,e.next=4,d.fetchAutocompleteSuggestions({input:t,sessionToken:p,language:window.ACF.currentLang?window.ACF.currentLang:"it",includedRegionCodes:[window.ACF.currentCountry?window.ACF.currentCountry:"it"]});case 4:if(i=e.sent,a.val().trim()===t){e.next=7;break}return e.abrupt("return");case 7:f=i.suggestions.filter((function(e){return e.placePrediction})),f.length?b():y(),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),y();case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(t){return e.apply(this,arguments)}}(),a.on("input.searchPredictions",$.debounce(200,(function(){var e=a.val().trim();e?w(e):y()}))),a.on("keydown.searchPredictions",(function(s){if(f.length)switch(s.key){case"ArrowDown":s.preventDefault(),_((m+1)%f.length);break;case"ArrowUp":s.preventDefault(),_(m<=0?f.length-1:m-1);break;case"Enter":m>=0&&(s.preventDefault(),i._onPredictionSelected(f[m],e,t,r,a,o,y,g).catch((function(e){return console.error("Place selection failed",e)})));break;case"Escape":y()}})),a.on("blur.searchPredictions",(function(){return setTimeout(y,0)}));case 28:o.find(".btn-icon").on("click",(function(s){s.preventDefault(),i._geolocationLastPlace[t]=null,o.removeClass("active"),i._myGeolocationPosition[t]&&i._geolocationSuccess(i._myGeolocationPosition[t],e,t)}));case 29:case"end":return s.stop()}}),s)})))()},_onPredictionSelected:function(e,t,i,s,r,n,a,o){var l=this;return fp(cp().mark((function d(){var h,c,u;return cp().wrap((function(d){for(;;)switch(d.prev=d.next){case 0:return h=e.placePrediction,r.val(String(h.text)),a(),o(),l._geolocationLastPlace[i]=null,c=h.toPlace(),d.next=8,c.fetchFields({fields:["displayName","location","viewport"]});case 8:if(c.location){d.next=10;break}return d.abrupt("return");case 10:n.find(".location-name").text(c.displayName),n.addClass("active"),u={lat:c.location.lat(),lng:c.location.lng()},l._geolocationLastPlace[i]=c,l._geolocationPosition[i]=u,l._sortStoresByDistance(u,t),c.viewport?l._mapInstance[i]&&("map"===t.attr("data-view-type")||window.matchMedia("(min-width: 992px)").matches&&"list"===t.attr("data-view-type"))&&l._mapInstance[i].fitBounds(c.viewport):l._mapCenter(t,i,u.lat,u.lng,!0),setTimeout((function(){s.trigger("submit")}),0);case 18:case"end":return d.stop()}}),d)})))()},_handlePopstate:function(e,t){var i=e.find(".search-form").first(),s=i.find('input[name="s"]').first(),r=i.find('input[name="v"]'),n=e.find(".filters-panel"),a=n.find('input[name="f"]'),o=n.find('input[name="t"]');try{this._hideStoreDetails()}catch(e){}var l=new URLSearchParams(window.location.search),d=r.filter("[value="+e.data("default-view-type")+"]").length?e.data("default-view-type"):"map",h=l.has("v".concat(t))&&r.filter("[value="+l.get("v".concat(t))+"]").length?l.get("v".concat(t)):d;if(e.attr("data-view-type")!==h){switch(r.filter(":checked").val()!==h&&(r.removeProp("checked"),r.filter('[value="'+h+'"]').prop("checked",!0)),e.css("height","".concat(e.outerHeight(),"px")),e.addClass("animate").attr("data-view-type",h),e.attr("data-view-type")){case"map":this._mapInitialized[t]?this._$mapContainer[t].detach().appendTo(e.find(".map").get(0)):this._mapInit(e),this._mapEmbedded[t]||window.scrollTo({top:0,behavior:"instant"});break;case"list":this._mapInitialized[t]?this._$mapContainer[t].detach().appendTo(e.find(".map-small").get(0)):this._mapInit(e,t),window.matchMedia("(min-width: 992px)").matches&&this.$window.trigger("resize.smallMapContainer")}setTimeout((function(){var t=e.find("#".concat(h)).outerHeight();e.css("height","".concat(t,"px")),e.addClass("switch"),(0,Pr.executeAfterTransition)((function(){e.removeClass("switch animate").css("height","")}),e[0])}),0)}if(s.length){var c=l.has("s".concat(t))?l.get("s".concat(t)):"";(s.val()||"")!==c&&s.val(c)}if(a.length||o.length){if(a.length&&(a.prop("checked",!1),l.has("f".concat(t)))){var u,f=mp(l.getAll("f".concat(t)));try{for(f.s();!(u=f.n()).done;){var m=u.value;a.filter('[value="'+m+'"]').prop("checked",!0)}}catch(e){f.e(e)}finally{f.f()}}if(o.length&&(o.prop("checked",!1),l.has("t".concat(t)))){var p,g=mp(l.getAll("t".concat(t)));try{for(g.s();!(p=g.n()).done;){var y=p.value;o.filter('[value="'+y+'"]').prop("checked",!0)}}catch(e){g.e(e)}finally{g.f()}}this._filterStore(e,t)}},_filterStore:function(e,t){var i=new URLSearchParams(window.location.search),s=e.find(".list .stores .store"),r=e.find("#storesCount"),n=e.find(".store-filter-value"),a=e.find(".filters-panel");
2if(s.removeAttr("data-filtered-out"),i.has("f".concat(t))||i.has("t".concat(t))){for(var o=i.getAll("f".concat(t)),l=i.getAll("t".concat(t)),d=0,h=0;h<s.length;h++){var c=s.eq(h),u=c.data("categories"),f=!!(u=u?u.toString().split(",").map((function(e){return e.trim()})):[]).length&&u.some((function(e){return o.includes(e)})),m=parseInt(c.data("special")).toString(),p=!!m&&l.includes(m);f||p?d++:c.attr("data-filtered-out",!0)}r.text(d);var g=[];a.find('.form-check-label:has(input[name="f"]:checked)').add(a.find('.form-check-label:has(input[name="t"]:checked)')).each((function(e,t){g.push($(t).text())})),n.find(".filter-value").text(g.join(", ")),n.addClass("active")}else r.text(s.length),n.removeClass("active");this._updateMapMarkerVisibility(e,t)},_updateMapMarkerVisibility:function(e,t){if(this._mapInstanceClusterer[t]){for(var i=e.find(".list .stores .store"),s=[],r=[],n=0;n<i.length;n++){var a=i.eq(n),o=a.data("marker-reference");o&&(a.is('[data-filtered-out="true"]')?r.push(o):s.push(o))}this._mapInstanceClusterer[t].removeMarkers(r,!0),this._mapInstanceClusterer[t].addMarkers(s)}},_mapInit:function(e,t){var i=this;if(!this._mapInitialized[t]){switch(this._$mapContainer[t]=$('<div id="mapContainer"></div>'),e.attr("data-view-type")){case"map":this._$mapContainer[t].appendTo(e.find(".map").get(0));break;case"list":this._$mapContainer[t].appendTo(e.find(".map-small").get(0))}this._mapInitialized[t]=!0,this._mapInitInstance(e,t).catch((function(e){return console.error("Stores map init failed",e)})),this.$window.on("resize.smallMapContainer orientationchange.smallMapContainer mainscrollbarsshow.smallMapContainer",(function(){if("list"===e.attr("data-view-type")&&window.matchMedia("(min-width: 992px)").matches){var t=$(".list .small-map-container");t.get(0).style.setProperty("--small-map-container-left-fill","0px");var s=i.$window.width()-t.offset().left-t.outerWidth();t.get(0).style.setProperty("--small-map-container-left-fill","".concat(s,"px"))}})),"list"===e.attr("data-view-type")&&window.matchMedia("(min-width: 992px)").matches&&this.$window.trigger("resize.smallMapContainer")}},_initLocationTrackerButtonClick:function(e,t){var i=this;e.find(".btn-location-tracker").length&&e.find(".btn-location-tracker").on("click",(function(){if(i._myGeolocationPosition[t]&&i._mapInstance[t]){var s=i._myGeolocationPosition[t];i._mapCenter(e,t,s.lat,s.lng)}}))},_getCurrentPositionMarkerContent:function(){var e=document.createElement("div");return e.classList.add("my-position-marker"),e},_updateCurrentPosition:function(e,t){var i=this;arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this._fetchPosition(e,t),this._myPositionUpdateTimeoutId[t]=setTimeout((function(){i._fetchPosition(e,t),i._updateCurrentPosition(e,t)}),1e3*this._geolocationTimeoutInterval[t])},_fetchPosition:function(e,t){var i=this;this._myGeolocationPositionMarker[t]&&(navigator&&navigator.geolocation?navigator.geolocation.getCurrentPosition((function(s){i._myGeolocationPosition[t]={lat:s.coords.latitude,lng:s.coords.longitude},i._myGeolocationPositionMarker[t].position=i._myGeolocationPosition[t];var r=e.find(".btn-location-tracker");r.length&&r.hasClass("no-permissions")&&r.removeClass("no-permissions")})):window.ACF.googleGeolocateApiKey?$.post("https://www.googleapis.com/geolocation/v1/geolocate?key=".concat(window.ACF.googleGeolocateApiKey),(function(s){i._myGeolocationPosition[t]={lat:s.location.lat,lng:s.location.lng},i._myGeolocationPositionMarker[t].position=i._myGeolocationPosition[t];var r=e.find(".btn-location-tracker");r.length&&r.hasClass("no-permissions")&&r.removeClass("no-permissions")})).fail((function(s){i._geolocationError(e,t)})):this._geolocationError(e,t))},_mapInitInstance:function(e,t){var i=this;return fp(cp().mark((function s(){var r,n,a;return cp().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,window.googleMapsReady;case 2:(r=(document.querySelector("base")||{}).href)||(r="/"),n=e.find(".list .stores .store"),i._mapInstance[t]=new google.maps.Map(i._$mapContainer[t].get(0),{center:i._geolocationPosition[t]?i._geolocationPosition[t]:{lat:43.771599,lng:11.2512127},zoom:14,minZoom:3,disableDefaultUI:!0,backgroundColor:"transparent",keyboardShortcuts:!1,mapId:window.ACF.googleMap
2Id}),a=[],n.each((function(s,n){var o=$(n),l=document.createElement("img");l.src=o.data("marker")?o.data("marker"):r+"inc/FIORENTINA/img/icon-marker-map.svg",l.width=46,l.height=54,l.alt="",l.style.width="auto",l.style.height="52px",l.setAttribute("data-id",o.data("id")),l.classList.add("marker-icon");var d=new google.maps.marker.AdvancedMarkerElement({position:{lat:parseFloat(o.data("lat")),lng:parseFloat(o.data("lng"))},content:l,gmpClickable:!0});d.addEventListener("gmp-click",(function(){i._onMarkerClick(o.data("id"),e,t)})),a.push(d),o.data("marker-reference",d)})),i._myGeolocationPositionMarker[t]||(i._myGeolocationPositionMarker[t]=new google.maps.marker.AdvancedMarkerElement({map:i._mapInstance[t],content:i._getCurrentPositionMarkerContent()}),a.push(i._myGeolocationPositionMarker[t])),i._mapInstanceClusterer[t]=new Wn({markers:a,map:i._mapInstance[t],algorithmOptions:{maxZoom:15},renderer:{render:function(e,t){var i=e.count,s=e.position,n=[50,60,70,80],a=Math.round(n.length*(i/t.clusters.markers.max))-1,o=document.createElement("div");
2o.style.position="relative",o.style.clipPath="polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)";var l=document.createElement("img");l.src=r+"inc/FIORENTINA/img/icon-cluster-map.svg",l.width=80,l.height=80,l.alt="",l.style.width="".concat(n[a],"px"),l.style.height="".concat(n[a],"px"),o.append(l);var d=document.createElement("span");return d.style.position="absolute",d.style.left="50%",d.style.top="50%",d.style.transform="translate(-50%, -50%)",d.style.color="#FFF",d.style.fontFamily="commuters-sans, sans-serif",d.style.fontWeight="800",d.style.fontStyle="italic",d.style.fontSize="14px",d.textContent=String(i),o.append(d),new google.maps.marker.AdvancedMarkerElement({position:s,content:o})}}}),e.trigger("mapinit"),i._initLocationTrackerButtonClick(e,t),i._updateMapMarkerVisibility(e,t),i._updateCurrentPosition(e,t,!0);case 14:case"end":return s.stop()}}),s)})))()},_catalogListCategoriesInit:function(){var e=this,t=$("section.catalog-list .categories").first();t.length&&(Dr({target:t[0]},{paddingAbsolute:!0,update:{elementEvents:[]},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"scroll",autoHideDelay:500,autoHideSuspend:!1,dragScroll:!1}}),this.$window.on("resize.catalogListCategories orientationchange.catalogListCategories",(function(){window.matchMedia("(min-width: 576px) and (max-width: 992px)").matches&&(t.css({marginLeft:0,marginRight:0}),t.get(0).style.setProperty("--full-width-delta-mbl","".concat((e.$window.width()-t.innerWidth())/2,"px")),t.css({marginLeft:"",marginRight:""}))})),this.$window.trigger("resize.catalogListCategories"))}
2,_desktopCoverInit:function(){var e=$("section.catalog-list .prizes-list .prize-card");if(!(e.length<=2)){var t=$("section.catalog-list .prizes-list .cover-dsk .inner"),i=!0;this.$window.on("resize.desktopCover orientationchange.desktopCover",(function(){if(window.matchMedia("(min-width: 992px)").matches){var s=e.eq(2);setTimeout((function(){t.css({height:"".concat(s.position().top+s.find(".image").outerHeight(),"px"),paddingBottom:"0"})}),0),i&&(i=!1,setTimeout((function(){t.css({height:"".concat(s.position().top+s.find(".image").outerHeight(),"px"),paddingBottom:"0"})}),300))}})),this.$window.trigger("resize.desktopCover")}},_initRoom100Center:function(){var e=$(".room100-container");if(e.length){var t=[],i=function(){e.each((function(e,i){var s=i.scrollWidth-i.clientWidth;s<=0||s===t[e]||(t[e]=s,i.scrollLeft=s/2)}))};i(),this.$window.on("resize.room100Center orientationchange.room100Center",i)}},_modalNotifications:function(){$(".notification-card").on("click",(function(){$(this).removeClass("unread"),$(this).closest(".notification-card-wrapper").toggleClass("close"),$(this).find(".notification-text.short, .notification-text.long").toggleClass("hide")})),$(".open-filters").on("click",(function(){$(this).next(".filters-modal").fadeToggle(),setTimeout((function(){e()}),10)})),$(".close-filters").on("click",(function(){$(this).closest(".filters-modal").fadeToggle()})),$(window).on("resize",(function(){e()}));
2var e=function(){var e=$(".container-notifications");if(e){var t=e.outerWidth(),i=$(".filters-modal");i&&i.css("width",t)}}},_initScrollIndicatorChange:function(){var e=$(".scroll-indicator");e.length&&e.each((function(e,t){var i=$(t),s=$(t).data("scroll-ref");if(s){var r=$(s);r.on("scroll",(function(e){var t=Math.abs(r.scrollTop());0===t?i.attr("data-position","start"):t+r.innerHeight()>=r.get(0).scrollHeight?i.attr("data-position","end"):i.attr("data-position","mid")}))}}))}},vp={$window:null,init:function(){this.$window=$(window),this._cardInit(),this._selectBarcodeCode(),this._addReachClass(),this._progressionLevelInit(),this._parallaxInit()},finalize:function(){},_parallaxInit:function(){var e=this,t=$(".header-background-container");if(t.length){var i=!1,s=t.get(0),r=function(){var e=window.scrollY,t=.01*Math.round(.67*Math.min(e,460)*100);s.style.setProperty("--scroll-parallax-layer","".concat(t,"px"))},n=window.matchMedia("(min-width: 992px)");n.onchange=function(t){t.matches?i||(i=!0,e.$window.on("resize.updateParallax orientationchange.updateParallax scroll.updateParallax",r.bind(e))):i&&(i=!1,e.$window.off("resize.updateParallax orientationchange.updateParallax scroll.updateParallax"))},n.matches&&(this.$window.on("resize.updateParallax orientationchange.updateParallax scroll.updateParallax",r.bind(this)),r())}},_cardInit:function(){$(".dashboard .card-data-container .dashboard-card-wrapper .card .btn-toggle-flip-card").on("click",(function(e){$(e.currentTarget).parents(".card").toggleClass("flip")})),$(".fiorentina-dashboard .card-data-container .dashboard-card-wrapper .card .btn-toggle-flip-card").on("click",(function(e){$(e.currentTarget).parents(".card").toggleClass("flip")})),$(".page-daily-streaks .dashboard-card-wrapper-2 .card .btn-toggle-flip-card").on("click",(function(e){$(e.currentTarget).parents(".card").toggleClass("flip")}))},_selectBarcodeCode:function(){var e,t=$(".barcode-code"),i=$("#copiedCodeToClipboardToast");i.length&&(e=new(we())("#copiedCodeToClipboardToast")),t.on("click",(function(t){n
2avigator.clipboard.writeText($(t.currentTarget).text()).then((function(){e&&e.show()})).catch((function(){e&&(i.find(".toast-body").text("Impossibile copiare il testo selezionato! Riprova manualmente"),e.show())}))}))},_progressionLevelInit:function(){var e=function(){var e=$(".marker.personal-progression"),t=$(".progress-bar-wrapper .progress-bar"),i=t.find(".current-progress"),s=$(".marker-container"),r=e.attr("data-curr-progression"),n=e.attr("data-max-progression"),a=e.attr("data-container-width");if(r&&(e.find(".step-point").text(r.toString()),a?(s.css("width","".concat(a,"%")),t.css("width","".concat(a,"%"))):(s.css("width","100%"),t.css("width","100%")),n&&r)){var o=(r/n*100).toFixed(2);i.css("width","".concat(o,"%")),e.css({left:"".concat(o,"%")})}};this.$window.on("resize.progressionLevel orientationchange.progressionLevel load.progressionLevel",(function(){e()})),e()},_addReachClass:function(){var e=function(){var e=$(".marker.personal-progression"),t=e.attr("data-curr-progression"),i=e.attr("data-max-progression"),s=$(".marker:not(.personal-progression)"),r=$(s.children(".step-point")),n=$(s.children(".step-icon"));r.removeClass("reached"),s.find(".marker-rank").removeClass("current-rank"),n.removeClass("invisible"),r.each((function(e,a){var o=$(a),l=$(n[e]),d=+o.text(),h=+parseFloat(d/i*100).toFixed(2);$(s[e]).css("left","".concat(h,"%"));var c=Number.MAX_VALUE;r[e+1]&&(c=+$(r[e+1]).text()),t>=d?o.addClass("reached"):o.hasClass("reached")&&o.removeClass("reached"),c?t>=d&&t<c&&(l.addClass("invisible"),$($(s[e]).children(".marker-rank")).addClass("current-rank")):$(n[r-length-1]).addClass("invisible")}))};this.$window.on("resize.progressionLevel orientationchange.progressionLevel load.progressionLevel",(function(){e()})),e()}},bp={init:function(){this._initCardSelector()},finalize:function(){}
2,_initCardSelector:function(){var e=$(".card-selector .selector");e.length&&e.each((function(e,t){var i=$(t).find('input[type="hidden"]');i.on("change",(function(){var e=!!parseInt(i.val()),t=$(i.data("toggle-target"));e?t.removeClass("d-none"):t.addClass("d-none")}))}))}},wp={$window:null,init:function(){this.$window=$(window),this._initSectionHeight()},finalize:function(){},_initSectionHeight:function(){var e=this,t=$("section.winner-of-the-month").find(".player-card");this.$window.on("scroll.playerOfTheMonthSectionHeight resize.playerOfTheMonthSectionHeight orientationchange.playerOfTheMonthSectionHeight",(function(i){if(window.matchMedia("(max-width: 991px)").matches){var s=e.$window.scrollTop();t.each((function(t,i){var r=$(i),n=r.parent().offset().top,a=e.$window.outerHeight()/2,o=s-n+a-r.height()/2;r.css("top","".concat(o,"px"))}))}else t.each((function(e,t){$(t).css("top","")}))})),this.$window.trigger("scroll.playerOfTheMonthSectionHeight")}},Tp={$window:null,timeoutId:null,swiper:null,voted:!1,$currentPlayerContainer:null,$sliderContainer:null,$inputPlayerId:null,$voteForm:null,$sliderCtaWrapper:null,$buyShirtBtn:null,$playerDetailsBtn:null,preloadedData:!1,init:function(){this.$window=$(window);var e=$("section.scroll-player");e.length&&(this.$currentPlayerContainer=e.find(".current-player"),this.$sliderContainer=e.find(".slider-container"),this.$inputPlayerId=e.find("#playerId"),this.$voteForm=e.find("#voteForm"),this.$sliderCtaWrapper=e.find(".slider-cta-wrapper"),this.$playerDetailsBtn=e.find("#playerDetailsBtn"),this.$buyShirtBtn=e.find("#buyShirtBtn")),this._initSwiper(),this._initSliderItemChangeOnClick(),this._showPageLoading(),this._handlePlayerScroll()},finalize:function(){this._preloadVotedPlayer()},_preloadVotedPlayer:function(){var e=this,t=this.$currentPlayerContainer.data("preload-player-id"),i=$("section.scroll-player");if(void 0!==t){var s=null;if(window.matchMedia("(max-width: 991px)").matches){var r=$('.swiper-slide:has(.player-item[data-player-id="'.concat(t,'"])')),n=r.index();s=r.find(".player-item"),-1!==n&&this.swiper.slideTo(n),setTimeout((function(){return e._changeCurrentItemInfo(s)}),0)}else s=this.$sliderContainer.find('.swiper-slide .player-item[data-player-id="'.concat(t,'"]')).first().get(0),setTimeout((function(){var s=e.$sliderContainer.find('.swiper-slide .player-item[data-player-id="'+t+'"]').first(),r=i.find(".vote-player-swiper-container"),n=s.offset().top-r.offset().top,a=r.outerHeight()/2-n-s.outerHeight()/2,o=r.scrollTop()-a;r.get(0).scrollTop=o,r.trigger("scroll.verticalSlider")}),50),this.preloadedData=!0}},_initSwiper:function(){var e=this,t=$("._swiperPlayer .swiper-slide"),i=null,s=!0;this.$window.on("resize.initSwiperVotePlayer orientationchange.initSwiperVotePlayer",(function(r){if(!e.voted)if(window.matchMedia("(max-width: 991px)").matches&&!i){if(t.removeAttr("style"),i=!0,e.swiper&&e.swiper.destroy(),e.swiper=new ie("._swiperPlayer",{slidesPerView:"auto",resizeObserver:!1,centeredSlides:!0,centeredSlidesBounds:!0,slideToClickedSlide:!0}),s){s=!1;var n=$("#swiperPlayer").find(".swiper-slide.swiper-slide-active .player-item").first();e._changeCurrentItemInfo(n[0])}}else(window.matchMedia("(min-width: 992px)").matches&&i||null===i)&&(i=!1,e.swiper&&e.swiper.destroy())})),this.$window.trigger("resize.initSwiperVotePlayer")},_handlePlayerScroll:function(){var e,t,i,s,r,n,a,o=this,l=$("section.scroll-player"),d=l.find(".swiper-slide"),h=l.find(".placeholder-container"),c=l.find(".vote-player-swiper-container"),u=l.find(".swiper-wrapper"),f=window.matchMedia("(min-width: 992px)").matches,m=!1,p=!0;this.$window.on("resize.handlePlayerScroll orientationchange.handlePlayerScroll",(function(l){if((f=window.matchMedia("(min-width: 992px)").matches)&&(p&&(p=!1,o._animateInDesktopSlider()),u.removeAttr("style"),d.length&&(s=d.eq(0).outerHeight(),t=c.height(),i=t+(s-t%s),a=c.offset().top,e=i,h.eq(1).css("margin-top","".concat(t,"px"))),h.find("> *").remove(),!(m=d.length*s<=t)||!u.hasClass("disabled-scroll"))){if(u.removeClass("disabled-scroll"),m)return u.addClass("disabled-scroll"),void o._changeCurrentItemInfo(d.eq(0).find(".player-item"));r=[],d.each((function(e,t){var n=e*s,a=$(t);a.css("top","".concat(n,"px")),r.push(a),n<i&&h.append("<div></div>")})),c.scrollTop(e),n=c.scrollTop(),setTimeout((function(){c.trigger("scroll.verticalSlider")}),0)}})),this.$window.trigger("resize.handlePlayerScroll"),c.on("scroll.verticalSlider",(function(e){if(f&&!m)if(o.preloadedData)o.preloadedData=!1;else{var t=$(e.currentTarget);if(v(),t.scrollTop()!==n){var i=t.scrollTop()>n;n=t.scrollTop(),i?g():y()}}}));var g=function(){var t=Math.floor(Math.abs(n-e)/s);if(t){for(var i=0;i<t;)r.push(r.shift()),i++;r.forEach((function(e,t){return e.css("top","".concat(t*s,"px"))})),_(Math.abs(n-e)-t*s)}},y=function(){var i=r.filter((function(i){return parseInt(i[0].style.top)>t-(e-n)})).length;if(!(i<=0)){for(var a=0;a<i;)r.unshift(r.pop()),a++;r.forEach((function(e,t){return e.css("top","".concat(t*s,"px"))})),_(i*s-(e-n))}},_=function(t){n=e+t,c.scrollTop(n)},v=function(){var e=t/2,i=r.filter((function(t,i){var r=t.offset().top-a;return r<=e&&e<r+s}
2));i.length&&o._changeCurrentItemInfo(i[0].find(".player-item"))}},_animateInDesktopSlider:function(){var e=this;this.$sliderContainer.removeClass("hidden"),this.$sliderContainer.addClass("slider-in"),setTimeout((function(){e.$currentPlayerContainer.removeClass("hidden"),e.$sliderCtaWrapper.removeClass("hidden"),e.$currentPlayerContainer.addClass("element-in")}),500)},_initSliderItemChangeOnClick:function(){var e,t=this,i=$("._swiperPlayer .player-item");i.length&&i.on("click",(function(i){e!==i.currentTarget&&(e=i.currentTarget,t._changeCurrentItemInfo(e))}))},_changeCurrentItemInfo:function(e){var t=this,i=$(e),s=i.data("player-id");if(!i.hasClass("current")){$("._swiperPlayer .player-item").removeClass("current"),i.addClass("current");var r=i.data("item-player-number"),n=i.data("item-player-name"),a=i.data("item-player-surname"),o=i.data("item-player-role"),l=i.data("item-player-details-url"),d=i.data("item-player-shirt-url"),h=i.find(".player-pic-container img").attr("src"),c=i.data("item-player-voted-img-url");this.$currentPlayerContainer.addClass("player-current-out"),this.timeoutId&&clearTimeout(this.timeoutId),this.timeoutId=setTimeout((function(){t.$currentPlayerContainer.removeClass("player-current-out"),t.$currentPlayerContainer.removeClass("element-out"),t.$currentPlayerContainer.attr("data-voted-img-url",c),$("#currentPlayerNumber").text(r),$("#currentPlayerName").text(n),$("#currentPlayerSurname").text(a),$("#currentPlayerRole").text(o),$("#currentPlayerPic").attr("src",h),t.$inputPlayerId.val(s),t.$playerDetailsBtn&&t.$playerDetailsBtn.length&&t.$playerDetailsBtn.attr("href",l),t.$buyShirtBtn&&t.$buyShirtBtn.length&&t.$buyShirtBtn.attr("href",d),t.$currentPlayerContainer.addClass("player-current-in"),t.timeoutId=void 0}),300)}},_showPageLoading:function(){var e=this,t=$(".loading-container"),i=t.data("loading-time"),s=function(){e.$sliderContainer.removeClass("hidden"),e.$sliderContainer.addClass("slider-in"),setTimeout((function(){e.$currentPlayerContainer.removeClass("hidden"),e.$sliderCtaWrapper.removeClass("hidden"),e.$currentPlayerContainer.addClass("element-in")}),300)};window.matchMedia("(max-width: 991px)").matches&&setTimeout((function(){t.length?t.animate({opacity:0,visibility:"hidden"},i,(function(){t.hide(),t.css("opacity",""),t.css("visibility",""),s()})):s()}),i),$(window).on("resize",(function(){window.matchMedia("(max-width: 991px)").matches?t.hide():t.show()}))}},Mp={$window:null,$document:null,init:function(){var e=this;this.$window=$(window),this.$document=$(document),this.$window.on("form.checkout.init",(function(){e._formCheckoutInit()})),this._selectSizeOnChange()},finalize:function(){},_formCheckoutActionsInit:function(){var e=this,t=$("#checkoutForm").first(),i=t.find("[data-form-step]"),s=i.filter(".form-panel-form"),r=function(t){var s=i.filter(".current-step"),r=i.filter('[data-form-step="'.concat(t,'"]'));s.length&&r.length&&s[0]!==r[0]&&(s.removeClass("in").addClass("out"),(0,Pr.executeAfterTransition)((function(){s.removeClass("out animate current-step")}),s[0]),s.hasClass("size-panel")&&e.$window.off("resize.sizePanelPosition"),r.addClass("current-step animate"),setTimeout((function(){r.hasClass("size-panel")&&e._formCheckoutSizePanelPosition(r),r.addClass("in")})))};s.length&&(s.on("click",'[data-action="next-step"]',(function(e){e.isDefaultPrevented()||(e.preventDefault(),function(){var e=i.filter(".current-step").next();if(e.length){var t=e.data("form-step");t&&r(t)}}())})),s.on("click",'[data-action="prev-step"]',(function(e){e.isDefaultPrevented()||(e.preventDefault(),function(){var e=i.filter(".current-step").prev();if(e.length){var s=e.data("form-step");s&&r(s)}else t.trigger("click")}())}))),t.on("gotostep",(function(e,t){r(t)}))},_formCheckoutSizePanelPosition:function(e){var t=this;this.$window.on("resize.sizePanelPosition orientationchange.sizePanelPosition",(function(){if(window.matchMedia("(min-width: 768px)").matches){var i=$('[data-action="show-size-dialog"]'),s=i.offset().top-t.$window.scrollTop();s+e.outerHeight()>t.$window.height()&&i.offset().top-t.$window.scrollTop()-e.outerHeight()+i.outerHeight()>0&&(s=i.offset().top-t.$window.scrollTop()-e.outerHeight()+i.outerHeight()),e.css({width:"".concat(i.outerWidth()+1,"px"),transform:"none",left:"".concat(i.offset().left,"px"),top:"".concat(s,"px"),bottom:""})}else e.css({width:"",left:"",top:"calc(100dvh - ".concat(e.outerHeight(),"px - 40px)"),transform:"translateX(-50%)"})})),this.$window.trigger("resize.sizePanelPosition")},_formCheckoutInit:function(){var e=this,t=$("#checkoutForm").first(),i=t.find("[data-form-step]"),s=t.sideForm();t.on("show.side-form",(function(){i.filter(".current-step").length||i.eq(0).addClass("current-step animate in");var t=i.filter(".current-step").first();t.hasClass("size-panel")&&e._formCheckoutSizePanelPosition(t)})),t.on("hidden.side-form",(function(){i.removeClass("out animate in current-step")})),$('[data-action="show-checkout-form"]').on("click",(function(e){s.sideForm("show")})),this._formCheckoutActionsInit()}
2,_selectSizeOnChange:function(){var e=$("#checkoutForm #checkoutFormSize");$(".container-checkout-details #itemSize").on("change",(function(t){var i=$(t.currentTarget).find("option:selected"),s=i.length&&i.attr("value")?i.attr("value").trim():"";e.val(s)}))}},Sp={$window:null,$document:null,init:function(){this.$window=$(window),this.$document=$(document),this._swiperInit()},finalize:function(){},_swiperInit:function(){var e=window.matchMedia("(min-width:768px)"),t=$(".container-prize-image").first(),i=t.find("#prizeSwiper").first();if(i.length){var s=i[0].swiper?i[0].swiper:void 0,r=function(e){e.matches?void 0!==s&&(s.pagination.destroy(),s.destroy(!0,!0),s=void 0,t.removeClass("with-swiper"),t.find("[data-swiper-enabled-class]").each((function(e,t){var i=$(t);$(t).removeClass(i.data("swiper-enabled-class"))}))):void 0===s&&(t.addClass("with-swiper"),t.find("[data-swiper-enabled-class]").each((function(e,t){var i=$(t);$(t).addClass(i.data("swiper-enabled-class"))})),s=new ie(i[0],{modules:[oe],autoHeight:!0,pagination:{el:".swiper-pagination",clickable:!0}}))};e.addEventListener("change",r.bind(this)),r(e)}}},Lp={$window:null,$document:null,init:function(){this.$window=$(window),this.$document=$(document),this._formEventInit(),this._invalidInputResetOnChange()},finalize:function(){}
2,_formEventInit:function(){var e=$("#eventForm").first(),t=e.find("[data-form-step]"),i=e.sideForm();i.on("show.side-form",(function(){t.filter(".current-step").length||t.eq(0).addClass("current-step animate in")})),i.on("hide.side-form",(function(){t.removeClass("out animate in current-step")})),$('[data-action="show-event-form"]').on("click",(function(e){i.sideForm("show")})),$('[data-action="close-event-form"]').on("click",(function(e){i.sideForm("hide")}));e.on("gotostep",(function(e,i){!function(e){var i=t.filter(".current-step"),s=t.filter('[data-form-step="'.concat(e,'"]'));i.length&&s.length&&i[0]!==s[0]&&(i.removeClass("in").addClass("out"),(0,Pr.executeAfterTransition)((function(){i.removeClass("out animate current-step")}),i[0]),s.addClass("current-step animate"),setTimeout((function(){s.addClass("in")})))}(i)}))},_invalidInputResetOnChange:function(){$("#eventForm form").on("change focus","input",(function(e){try{e.target.matches(":invalid")&&e.target.setCustomValidity("")}catch(e){}}))}},kp={$window:null,$document:null,init:function(){this.$window=$(window),this.$document=$(document),this._homepageSwiperInit()},finalize:function(){}
2,_homepageSwiperInit:function(){var e=$(".container-image").first().find("#homepageSwiper").first(),t=e.find(".swiper-slide");new ie(e[0],{modules:[oe],autoHeight:!0,loop:t.length>1,pagination:{el:".swiper-pagination",clickable:!0}})}};function Ep(e){return Ep="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ep(e)}const Dp={$window:null,$document:null,init:function(){this.$window=$(window),this.$document=$(document),this._parallaxInit(),this._initCardPremiumModal(),this._initSubscriptionCollectionSwiper(),this._initTicketCollectionSwiper(),this._initInviolaCardSwiper(),this._initFriendsActions()},finalize:function(){},_parallaxInit:function(){var e=this,t=$(".header-background-container");if(t.length){var i=!1,s=t.get(0),r=function(){var e=window.scrollY,t=.01*Math.round(.67*Math.min(e,460)*100);s.style.setProperty("--scroll-parallax-layer","".concat(t,"px"))},n=window.matchMedia("(min-width: 992px)");n.onchange=function(t){t.matches?i||(i=!0,e.$window.on("resize.updateParallax orientationchange.updateParallax scroll.updateParallax",r.bind(e))):i&&(i=!1,e.$window.off("resize.updateParallax orientationchange.updateParallax scroll.updateParallax"))},n.matches&&(this.$window.on("resize.updateParallax orientationchange.updateParallax scroll.updateParallax",r.bind(this)),r())}}
2,_initCardPremiumModal:function(){var e=$("#premiumCardModal").first().sideForm();$('[data-action="show-premium-modal"]').on("click",(function(t){e.sideForm("show")}))},_initSubscriptionCollectionSwiper:function(){var e=$(".subscription-collection-swiper");e.length&&e.each((function(e,t){var i=$(t),s=i.find(".swiper-slide"),r=i.find(".scroll-arrow");if(s.length>1){new ie(t,{modules:[ce,ne],effect:"cards",cardsEffect:{perSlideRotate:-2,rotate:!1,slideShadows:!1},grabCursor:!0,loop:!0,observer:!0,observeParents:!0,initialSlide:s.length,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{992:{direction:"vertical",cardsEffect:{rotate:!0}}}});s.length>1&&r.removeClass("d-none")}}))},_initTicketCollectionSwiper:function(){var e=$(".ticket-collection-swiper");e.length&&e.each((function(e,t){var i=$(t),s=i.find(".swiper-slide"),r=i.find(".scroll-arrow");if(s.length>1){new ie(t,{modules:[ce,ne],effect:"cards",cardsEffect:{perSlideRotate:-2,rotate:!1,slideShadows:!1},grabCursor:!0,loop:!0,observer:!0,observeParents:!0,initialSlide:s.length,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{992:{direction:"vertical",cardsEffect:{rotate:!0}}}});r.length>1&&r.removeClass("d-none")}}))}
2,_initInviolaCardSwiper:function(){var e=$("#inviolaCardSlider");if(e.length){var t=e.find(".swiper-slide"),i=e.find(".scroll-arrow");if(t.length>1){new ie(e.get(0),{modules:[ce,ne],effect:"cards",slidesPerView:1,cardsEffect:{slideShadows:!1},grabCursor:!0,observer:!0,observeParents:!0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}});i.length&&i.removeClass("d-none")}}},_initFriendsActions:function(){var e=$("#deleteFriendModal"),t=$("#addFriendModal"),i=$("#sendTicketModal"),s=$("#confirmSendTicketModal");if(t.length&&e.length&&i.length){var r,n=$('*[data-friend-action="delete"]'),a=$('*[data-friend-action="resend"]'),o=$('*[data-friend-action="give-ticket"]'),l=new(ye())("#deleteFriendModal"),d=e.find("#deleteMessage"),h=e.find("#deleteFriendId");d.length&&(r=d.text()),n.on("click",(function(e){var t=$(e.currentTarget).closest(".cell-row");if(t.length){var i=t.data("object");if(i){if("object"!==Ep(i)&&(i=JSON.parse(t.data("object"))),d.length&&i.name){var s=d.text();d.attr("data-replace-keys").split(",").forEach((function(e){e=e.trim(),i[e]&&(s=s.replace("${"+e+"}",i[e]))})),d.html(s)}h.length&&i.id&&h.val(i.id),l.show()}}}));var c,u=new(ye())("#addFriendModal"),f=t.find("#addMessage"),m=t.find("#friendEmail");f.length&&(c=f.text()),a.on("click",(function(e){var t=$(e.currentTarget).closest(".cell-row");if(t.length){var i=t.data("object");if(i){if("object"!==Ep(i)&&(i=JSON.parse(t.data("object"))),f.length){var s=f.attr("data-resend-msg")?f.attr("data-resend-msg"):"";f.attr("data-replace-keys").split(",").forEach((function(e){e=e.trim(),i[e]&&(s=s.replace("${"+e+"}",i[e]))})),f.html(s)}m.length&&i.email&&m.val(i.email),u.show()}}}));var p=new(ye())("#sendTicketModal"),g=(new(ye())("#confirmSendTicketModal"),i.find("#sendTicketForm")),y=i.find("#sendTicketMessage"),_=i.find(".form-check-input"),v=i.find(".check-submit");y.length&&y.text(),o.on("click",(function(e){var t=$(e.currentTarget).closest(".ticket-content");if(t.length){var i=t.data("object");if(i){if("object"!==Ep(i)&&(i=JSON.parse(t.data("object"))),y.length){var s=y.text();y.attr("data-replace-keys").split(",").forEach((function(e){e=e.trim(),i[e]&&(s=s.replace("${"+e+"}",i[e]))})),y.html(s)}p.show()}}})),s.find("#confirmationSendTicket").on("click",(function(e){g&&g.submit()})),_.on("change",(function(e){_.not(e.currentTarget).prop("checked",!1),v.length&&v.prop("disabled",!_.filter(":checked").length)})),e.on("hidden.bs.modal",(function(){r&&d.html(r),h.length&&h.val("")})),t.on("hidden.bs.modal",(function(){c&&f.html(c),m.length&&m.val("")})),i.on("show.bs.modal",(function(){_.length&&_.prop("checked",!1),v.length&&v.attr("disabled",!0)})),s.on("hidden.bs.modal",(function(){p&&p.show()}))}}};function xp(e){return xp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xp(e)}function Ap(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return Pp(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Pp(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var s=0,r=function(){};return{s:r,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a=!0,o=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){o=!0,n=e},f:function(){try{a||null==i.return||i.return()}finally{if(o)throw n}}}}function Pp(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=Array(t);i<t;i++)s[i]=e[i];return s}function Cp(){Cp=function(){return t};var e,t={},i=Object.prototype,s=i.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function l(e,t,i,s){return Object.defineProperty(e,t,{value:i,enumerable:!s,configurable:!s,writable:!s})}try{l({},"")}catch(e){l=function(e,t,i){return e[t]=i}}function d(t,i,s,r){var n=i&&i.prototype instanceof u?i:u,a=Object.create(n.prototype);return l(a,"_invoke",function(t,i,s){var r=1;return function(n,a){if(3===r)throw Error("Generator is already running");if(4===r){if("throw"===n)throw a;return{value:e,done:!0}}
2for(s.method=n,s.arg=a;;){var o=s.delegate;if(o){var l=w(o,s);if(l){if(l===c)continue;return l}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(1===r)throw r=4,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);r=3;var d=h(t,i,s);if("normal"===d.type){if(r=s.done?4:2,d.arg===c)continue;return{value:d.arg,done:s.done}}"throw"===d.type&&(r=4,s.method="throw",s.arg=d.arg)}}}(t,s,new S(r||[])),!0),a}function h(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var c={};function u(){}function f(){}function m(){}var p={};l(p,n,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(L([])));y&&y!==i&&s.call(y,n)&&(p=y);var _=m.prototype=u.prototype=Object.create(p);function v(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function i(r,n,a,o){var l=h(e[r],e,n);if("throw"!==l.type){var d=l.arg,c=d.value;return c&&"object"==xp(c)&&s.call(c,"__await")?t.resolve(c.__await).then((function(e){i("next",e,a,o)}),(function(e){i("throw",e,a,o)})):t.resolve(c).then((function(e){d.value=e,a(d)}),(function(e){return i("throw",e,a,o)}))}o(l.arg)}var r;l(this,"_invoke",(function(e,s){function n(){return new t((function(t,r){i(e,s,t,r)}))}return r=r?r.then(n,n):n()}),!0)}function w(t,i){var s=i.method,r=t.i[s];if(r===e)return i.delegate=null,"throw"===s&&t.i.return&&(i.method="return",i.arg=e,w(t,i),"throw"===i.method)||"return"!==s&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+s+"' method")),c;var n=h(r,t.i,i.arg);if("throw"===n.type)return i.method="throw",i.arg=n.arg,i.delegate=null,c;var a=n.arg;return a?a.done?(i[t.r]=a.value,i.next=t.n,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,c):a:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,c)}function T(e){this.tryEntries.push(e)}function M(t){var i=t[4]||{};i.type="normal",i.arg=e,t[4]=i}function S(e){this.tryEntries=[[-1]],e.forEach(T,this),this.reset(!0)}function L(t){if(null!=t){var i=t[n];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function i(){for(;++r<t.length;)if(s.call(t,r))return i.value=t[r],i.done=!1,i;return i.value=e,i.done=!0,i};return a.next=a}}throw new TypeError(xp(t)+" is not iterable")}return f.prototype=m,l(_,"constructor",m),l(m,"constructor",f),f.displayName=l(m,o,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,o,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},v(b.prototype),l(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,i,s,r,n){void 0===n&&(n=Promise);var a=new b(d(e,i,s,r),n);return t.isGeneratorFunction(i)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},v(_),l(_,o,"Generator"),l(_,n,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),i=[];for(var s in t)i.unshift(s);return function e(){for(;i.length;)if((s=i.pop())in t)return e.value=s,e.done=!1,e;return e.done=!0,e}},t.values=L,S.prototype={constructor:S,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var i in this)"t"===i.charAt(0)&&s.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function s(e){a.type="throw",a.arg=t,i.next=e}for(var r=i.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r],a=n[4],o=this.prev,l=n[1],d=n[2];if(-1===n[0])return s("end"),!1;if(!l&&!d)throw Error("try statement without catch or finally");if(null!=n[0]&&n[0]<=o){if(o<l)return this.method="next",this.arg=e,s(l),!0;if(o<d)return s(d),!1}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i];if(s[0]>-1&&s[0]<=this.prev&&this.prev<s[2]){var r=s;break}}r&&("break"===e||"continue"===e)&&r[0]<=t&&t<=r[2]&&(r=null);var n=r?r[4]:{};return n.type=e,n.arg=t,r?(this.method="next",this.next=r[2],c):this.complete(n)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];
2if(i[2]===e)return this.complete(i[4],i[3]),M(i),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i[0]===e){var s=i[4];if("throw"===s.type){var r=s.arg;M(i)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,i,s){return this.delegate={i:L(t),r:i,n:s},"next"===this.method&&(this.arg=e),c}},t}function Ip(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function Rp(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ip(Object(i),!0).forEach((function(t){Op(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ip(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Op(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=xp(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var s=i.call(e,t||"default");if("object"!=xp(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xp(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Yp(e,t,i,s,r,n,a){try{var o=e[n](a),l=o.value}catch(e){return void i(e)}o.done?t(l):Promise.resolve(l).then(s,r)}const Fp={$window:null,$document:null,_mapInstance:null,_storeDetailModal:{visible:null,focusTrap:null,selectedMarker:null,mapListeners:[],firstUpdatePosition:null},init:function(){this.$window=$(window),this.$document=$(document),this._storeDetailModalInit(),this._initFixedAnimation(),this._initViolaParkMap().catch((function(e){return console.error("Viola Park map init failed",e)}))},finalize:function(){}
2,_storeDetailModalInit:function(){var e=$("#parkPlaceDetails"),t=e.find(".store-panel").first();e.length&&t.length&&(this._storeDetailModal.focusTrap=new xa({trapElement:e[0]}),Dr({target:t[0]},{paddingAbsolute:!0,update:{elementEvents:[]},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"scroll",autoHideDelay:200,autoHideSuspend:!1,dragScroll:!1}}))},_initFixedAnimation:function(){var e=this,t=$(".viola-park-container"),i=$("header.main-header"),s=t.find(".article-wrapper .article.init-scroll-anim");if(i.length&&s.length){s.addClass("fade-out"),s.get().map((function(e,t){return $(e).css({zIndex:t})}));var r=this.$window.outerHeight()/2-s.eq(0).outerHeight()/2,n=0,a=4e3,o=!1,l=s.eq(-1),d=$(".directions-wrapper");d.length&&(a=d.offset().top+d.outerHeight());this.$window.on("scroll.fixedElementScrollTrigger",(function(e){if(!window.matchMedia("(max-width: 991px)").matches){var t=$(e.currentTarget),i=t.scrollTop()>n;n=t.scrollTop(),i?function(e){s.each((function(t,i){var n=$(i),d=t>0?s.eq(t-1):null;n.hasClass("fixed-article")||n.offset().top-n.outerHeight()/2<=r+e&&(n.addClass("fixed-article fade-in"),d&&d.hasClass("fade-in")&&d.removeClass("fade-in")),l.offset().top+l.outerHeight()/2>=a&&(l.removeClass("fade-in"),o=!0)}))}(n):function(e){l.offset().top+l.outerHeight()/2<a&&o&&(l.addClass("fade-in"),o=!1),s.each((function(t,i){var n=$(i),a=t>0?s.eq(t-1):null;n.hasClass("fade-in")&&n.parent().offset().top-l.outerHeight()/2>r+e&&(n.removeClass("fade-in"),(0,Pr.executeAfterTransition)((function(){n.removeClass("fixed-article")}),n.get(0)),a&&!a.hasClass("fade-in")&&a.addClass("fade-in"))}))}(n)}})),this.$window.on("resize",(function(){r=e.$window.outerHeight()/2-s.eq(0).outerHeight()/2,d.length&&(a=d.offset().top+d.outerHeight())})),this.$window.trigger("scroll.fixedElementScrollTrigger")}},_initViolaParkMap:function(){var e=this;return function(e){return function(){var t=this,i=arguments;return new Promise((function(s,r){var n=e.apply(t,i);function a(e){Yp(n,s,r,a,o,"next",e)}function o(e){Yp(n,s,r,a,o,"throw",e)}a(void 0)}))}}(Cp().mark((function t(){var i,s,r,n,a,o,l,d,h,c;return Cp().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,window.googleMapsReady;case 2:if(i=$(".viola-park-map"),s=i.find("#violaParkMap"),r=i.find(".viola-park-marker-wrapper .park-marker"),s.length){t.next=7;break}return t.abrupt("return");case 7:(n=(document.querySelector("base")||{}).href)||(n="/"),a=+s.data("lat"),o=+s.data("lng"),l=s.data("map-options"),d=Rp(Rp({},l),{backgroundColor:"transparent",center:{lat:a,lng:o},mapId:window.ACF.googleMapId}),h=new google.maps.Map(s.get(0),d),e._mapInstance=h,c=[],r.each((function(t,i){var s=$(i),r=document.createElement("img");r.src=s.data("marker")?s.data("marker"):n+"inc/FIORENTINA/img/icon-marker-map.svg",r.width=46,r.height=54,r.alt="",r.style.width="auto",r.style.height="52px",r.setAttribute("data-id",s.data("id")),r.classList.add("marker-icon");var a=new google.maps.marker.AdvancedMarkerElement({position:{lat:parseFloat(s.data("lat")),lng:parseFloat(s.data("lng"))},content:r,gmpClickable:!0});a.addEventListener("gmp-click",(function(){e._showStoreDetails(s.data("id"),a.position)})),c.push(a),s.data("marker-reference",a)})),new Wn({markers:c,map:h,algorithmOptions:{maxZoom:15},renderer:{render:function(e,t){var i=e.count,s=e.position,r=[50,60,70,80],a=Math.round(r.length*(i/t.clusters.markers.max))-1,o=document.createElement("div");
2o.style.position="relative",o.style.clipPath="polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)";var l=document.createElement("img");l.src=n+"inc/FIORENTINA/img/icon-cluster-map.svg",l.width=80,l.height=80,l.alt="",l.style.width="".concat(r[a],"px"),l.style.height="".concat(r[a],"px"),o.append(l);var d=document.createElement("span");return d.style.position="absolute",d.style.left="50%",d.style.top="50%",d.style.transform="translate(-50%, -50%)",d.style.color="#FFF",d.style.fontFamily="commuters-sans, sans-serif",d.style.fontWeight="800",d.style.fontStyle="italic",d.style.fontSize="14px",d.textContent=String(i),o.append(d),new google.maps.marker.AdvancedMarkerElement({position:s,content:o})}}}),e._createOverlayMap(h,s);case 19:case"end":return t.stop()}}),t)})))()},_createOverlayMap:function(e,t){var i=t.data("area-bounds");i?google.maps.event.addListenerOnce(e,"idle",(function(){if(e){var s=t.length?t.data("img-src"):"";new google.maps.GroundOverlay(s,i).setMap(e)}})):console.error("No map bounds found. Default map will be loaded")},_showStoreDetails:function(e,t){var i=this,s=$("section.viola-park-map"),r=$("#parkPlaceDetails"),n=$("#selectedParkMarkerOverlay"),a=r.find(".store-panel").first(),o=$('.viola-park-marker-wrapper .park-marker[data-id="'+e+'"]');if(o.length){var l=(document.querySelector("base")||{}).href;l||(l="/");var d=o.data("marker")?o.data("marker"):l+"inc/FIORENTINA/img/icon-selected-marker-map.svg";n.attr("src",d),this._storeDetailModal.visible=!0,r.trigger("mainscrollbarshide"),a.find(".header .image img").attr("src",o.find(".store-extended-info .image img").attr("src")),a.find(".header .image img").attr("src",o.find("img.marker-icon").attr("src")),a.find(".name").text(o.data("name")),a.find(".description").html(o.data("desc")),a.find(".position").text(o.data("position"));var h=a.find(".directions-link"),c=h.data("base-href").replace("%%lat%%",o.data("lat")).replace("%%lng%%",o.data("lng"));h.attr("href",c),a.find(".info").remove(),h.after(o.find(".store-extended-info .info").clone()),r.addClass("animate").focus(),n.addClass("animate"),setTimeout((function(){r.addClass("in"),n.addClass("in"),(0,Pr.executeAfterTransition)((function(){i._storeDetailModal.focusTrap.activate()}),r[0])}),0),r.on("click.storeDetailsHide",(function(e){e.target===r[0]&&i._hideStoreDetails()})),this.$document.on("keydown.storeDetailsHide",(function(e){"Escape"===e.key&&i._hideStoreDetails()}));var u=o.data("marker-reference");if(u){this._storeDetailModal.selectedMarker=u,u.zIndex=10;var f=$(u.content).parent(),m=function(){var e=!1;a.css({left:"",top:"",bottom:"",right:"",transform:""}).removeClass("js-position");var r=f.offset().left+f.outerWidth()/2,o=f.offset().top+f.outerHeight();if(window.matchMedia("(min-width: 768px)").matches){r+22.5+a.outerWidth()+30<i.$window.width()?a.css({left:"".concat(r+22.5+18,"px")}).addClass("js-position"):r-22.5-a.outerWidth()-30>0?a.css({left:"".concat(r-22.5-a.outerWidth()-18,"px")}).addClass("js-position"):a.css({left:"50%",transform:"translateX(-50%)"}).addClass("js-position");var l=a.outerHeight();o-26+l/2+40-i.$window.scrollTop()<=i.$window.height()&&o-26-l/2-80-i.$window.scrollTop()>=0?a.css({top:"".concat(o-26-l/2-i.$window.scrollTop(),"px")}).addClass("js-position"):o-26+l/2+40-i.$window.scrollTop()>i.$window.height()?a.css({top:"".concat(i.$window.height()-l-40,"px")}).addClass("js-position"):o-26-l/2-80-i.$window.scrollTop()<0&&a.css({top:"80px"}).addClass("js-position")}else{var d=s.offset().top+s.outerHeight()-i.$window.scrollTop()-a.outerHeight()-40;a.css({left:"50%",top:"".concat(d,"px"),transform:"translateX(-50%)"}).addClass("js-position"),i._storeDetailModal.firstUpdatePosition&&(e=!0,i._mapInstance.panTo(t))}var h=n.outerHeight(),c=n.outerWidth();return n.css({top:"".concat(o-7-22.5-h/2-i.$window.scrollTop(),"px"),left:"".concat(r-c/2,"px")}),i._storeDetailModal.firstUpdatePosition=!1,e};if(this._storeDetailModal.firstUpdatePosition=!0,m()){u.content.classList.add("pan","details"),n.addClass("pan");var p=this._mapInstance.addListener("idle",(function(){google.maps.event.removeListener(p),m(),i._storeDetailModal.mapListeners.push(i._mapInstance.addListener("center_changed",m.bind(i))),i._storeDetailModal.mapListeners.push(i._mapInstance.addListener("zoom_changed",m.bind(i))),i._storeDetailModal.mapListeners.push(i._mapInstance.addListener("bounds_changed",m.bind(i))),i._storeDetailModal.mapListeners.push(i._mapInstance.addListener("idle",m.bind(i)))}));this._storeDetailModal.mapListeners.push(p)}else u.content.classList.add("details"),this._storeDetailModal.mapListeners.push(this._mapInstance.addListener("center_changed",m.bind(this))),this._storeDetailModal.mapListeners.push(this._mapInstance.addListener("zoom_changed",m.bind(this))),this._storeDetailModal.mapListeners.push(this._mapInstance.addListener("bounds_changed",m.bind(this))),this._storeDetailModal.mapListeners.push(this._mapInstance.addListener("idle",m.bind(this)))}}},_hideStoreDetails:function(){if(this._storeDetailModal.visible){this._storeDetailModal.visible=!1;
2var e=$("#parkPlaceDetails"),t=$("#selectedParkMarkerOverlay");this._storeDetailModal.focusTrap.deactivate();var i,s=Ap(this._storeDetailModal.mapListeners);try{for(s.s();!(i=s.n()).done;){var r=i.value;google.maps.event.removeListener(r)}}catch(e){s.e(e)}finally{s.f()}this._storeDetailModal.mapListeners=[],this.$window.off("resize.storeDetails orientationchange.storeDetails"),this.$document.off("keydown.storeDetailsHide"),e.on("click.storeDetailsHide"),e.removeClass("in").addClass("out"),t.removeClass("in pan").addClass("out"),(0,Pr.executeAfterTransition)((function(){e.removeClass("out animate"),t.removeClass("out animate"),e.trigger("mainscrollbarsshow")}),e[0]),this._storeDetailModal.selectedMarker&&(this._storeDetailModal.selectedMarker.content.classList.remove("details","pan"),this._storeDetailModal.selectedMarker.zIndex=null,this._storeDetailModal.selectedMarker=null)}}},$p={videoMainSwiper:null,videoThumbSwiper:null,$window:null,$thumbSwiper:null,$videoSwiper:null,$videoSwiperContainer:null,$voteForm:null,init:function(){this.$window=$(window),this._initSwiper(),this._destroySwiperOnSubmit(),this._showPageLoading(),this._updateVoteFormPosition()},finalize:function(){},_initSwiper:function(){var e=this;this.$thumbSwiper=$(".vote-thumb-slider"),this.$videoSwiperContainer=$(".navigable-swiper-container"),this.$videoSwiper=this.$videoSwiperContainer.find(".vote-navigable-slider"),this.$voteForm=$(".vote-form"),this.videoThumbSwiper=new ie(this.$thumbSwiper.get(0),{slidesPerView:1,height:340,shortSwipes:!1,slideToClickedSlide:!0,breakpoints:{992:{direction:"vertical",height:500}}}),this.videoMainSwiper=new ie(this.$videoSwiper.get(0),{modules:[se,le],slidesPerView:"auto",slideToClickedSlide:!0,centeredSlides:!0,mousewheel:{forceToAxis:!0,releaseOnEdges:!0,eventsTarget:'main[role="main"]'},thumbs:{swiper:this.videoThumbSwiper},breakpoints:{992:{direction:"vertical"}}}),this.videoThumbSwiper.on("activeIndexChange",(function(t){e.videoMainSwiper.slideTo(t.activeIndex,void 0,!1)}))},_destroySwiperOnSubmit:function(){var e=this;$(".vote-form").on("submit",(function(){e.videoMainSwiper&&e.videoMainSwiper.disable(),e.videoThumbSwiper&&e.videoThumbSwiper.disable()}))},_animateInSliders:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300;this.$videoSwiperContainer.removeClass("hidden"),this.$videoSwiperContainer.addClass("slider-in"),setTimeout((function(){e.$thumbSwiper.removeClass("hidden"),e.$voteForm.removeClass("hidden"),e.$thumbSwiper.addClass("element-in")}),t)},_showPageLoading:function(){var e=this,t=$(".loading-container"),i=t.data("loading-time");window.matchMedia("(max-width: 991px)").matches?setTimeout((function(){t.animate({opacity:0,visibility:"hidden"},i,(function(){t.hide(),t.css("opacity",""),t.css("visibility",""),e._animateInSliders()}))}),i):this._animateInSliders(500),this.$window.on("resize",(function(){window.matchMedia("(max-width: 991px)").matches?t.hide():t.show()}))},_updateVoteFormPosition:function(){var e=this;this.$window.on("resize.updateFormPosition load.updateFormPosition",(function(){if(e.$thumbSwiper.length&&e.$voteForm.length){var t=e.$thumbSwiper.find(".swiper-slide-thumb-active"),i=e.$thumbSwiper.find(".swiper-wrapper");if(t.length&&i.length)if(e.$window.width()<992)e.$voteForm.css("top","");else{var s=t.position().top+t.outerHeight()+i.position().top-e.$voteForm.outerHeight();e.$voteForm.css("top",s)}}})),setTimeout((function(){e.$window.trigger("resize.updateFormPosition"),e.$window.trigger("load.updateFormPosition")}),0)}},Np={jingleMainSwiper:null,jingleThumbSwiper:null,$window:null,$thumbSwiper:null,$jingleSwiperContainer:null,$jingleSwiper:null,$voteForm:null,init:function(){this.$window=$(window),this._initSwiper(),this._destroySwiperOnSubmit(),this._showPageLoading(),this._updateVoteFormPosition()},finalize:function(){},_initSwiper:function(){var e=this;this.$thumbSwiper=$(".vote-thumb-slider"),this.$jingleSwiperContainer=$(".navigable-swiper-container"),this.$jingleSwiper=this.$jingleSwiperContainer.find(".vote-navigable-slider"),this.$voteForm=$(".vote-form"),this.jingleThumbSwiper=new ie(this.$thumbSwiper.get(0),{slidesPerView:1,width:340,shortSwipes:!1,slideToClickedSlide:!0,direction:"horizontal",breakpoints:{576:{slidesPerView:"auto",width:340,shortSwipes:!1,slideToClickedSlide:!0,direction:"horizontal"},768:{direction:"vertical",height:400}}}),this.jingleMainSwiper=new ie(this.$jingleSwiper.get(0),{modules:[se,le],slidesPerView:"auto",slideToClickedSlide:!0,centeredSlides:!0,mousewheel:{forceToAxis:!0,releaseOnEdges:!0,eventsTarget:'main[role="main"]'},thumbs:{swiper:this.jingleThumbSwiper},breakpoints:{768:{direction:"vertical"}}}),this.jingleThumbSwiper.on("activeIndexChange",(function(t){e.jingleMainSwiper.slideTo(t.activeIndex,void 0,!1)}))},_destroySwiperOnSubmit:function(){var e=this;this.$voteForm.on("submit",(function(){e.jingleMainSwiper&&e.jingleMainSwiper.disable(),e.jingleThumbSwiper&&e.jingleThumbSwiper.disable()}))},_animateInSliders:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300;this.$jingleSwiperContainer.removeClass("hidden"),this.$jingleSwiperContainer.addClass("slider-in"),setTimeout((function(){e.$thumbSwiper.removeClass("hidden"),e.$voteForm.removeClass("hidden"),e.$thumbSwiper.addClass("element-in")}),t)},_showPageLoading:function(){var e=this,t=$(".loading-container"),i=t.data("loading-time");window.matchMedia("(max-width: 991px)").matches?setTimeout((function(){t.animate({opacity:0,visibility:"hidden"},i,(function(){t.hide(),t.css("opacity",""),t.css("visibility",""),e._animateInSliders()}))}),i):this._animateInSliders(500),this.$window.on("resize",(function(){window.matchMedia("(max-width: 991px)").matches?t.hide():t.show()}))},_updateVoteFormPosition:function(){var e=this;this.$window.on("resize.updateFormPosition load.updateFormPosition",(function(){if(e.$thumbSwiper.length&&e.$voteForm.length){var t=e.$thumbSwiper.find(".swiper-slide-thumb-active"),i=e.$thumbSwiper.find(".swiper-wrapper");if(t.length&&i.length)if(e.$window.width()<768)e.$voteForm.css("top","");else{var s=t.position().top+t.outerHeight()+i.position().top-e.$voteForm.outerHeight();e.$voteForm.css("top",s)}}})),setTimeout((function(){e.$window.trigger("resize.updateFormPosition"),e.$window.trigger("load.updateFormPosition")}),0)}},Bp={$window:null,$document:null,init:function(){this.$window=$(window),this.$document=$(document),this._initFaqDetailsModal(),this._initFilterFAQ()},finalize:function(){},_initFaqDetailsModal:function(){var e=this,t=$("#faqDetailsModal").first(),i=t.find(".modal
2-content"),s=t.sideForm(),r=null;s.on("show.side-form",(function(){r&&e._buildModalHtmlStructure(r)})),s.on("hidden.side-form",(function(){i.html(""),r=null})),$("section.faq-container .faq-cta-action").on("click",(function(e){r=$(e.currentTarget),s.sideForm("show")}))},_buildModalHtmlStructure:function(e){var t=$("#faqDetailsContainer"),i=$("#faqDetailsModal"),s=t.find('> div[data-id="'+e.data("id")+'"]'),r=i.find(".header span"),n=i.find(".modal-content");if(r.length&&r.text(e.text()),s.length){var a=s.find("> div"),o="";a.each((function(e,t){var i,s,r,n=$(t),a=n.find("> div[data-title]"),l=n.find("> div[data-body]"),d=n.find("> img");a.length&&(i=a.data("title")),l.length&&(s=l.data("body")),d.length&&(r=d.get(0).outerHTML),o+='<div class="expansion-item">\n <h3 class="expansion-title" data-filter="'.concat(i,'" data-bs-toggle="collapse" data-bs-target="#collapse').concat(e,'" aria-expanded="false" aria-controls="collapseStore').concat(e,'">\n ').concat(i,'\n \n <button class="btn btn-link btn-icon btn-toggle" type="button">\n <span>INFO</span>\n </button>\n </h3>\n\n <div class="collapse" id="collapse').concat(e,'">\n <p>').concat(s,"</p>"),r&&(o+=r),o+="\n </div>\n </div>"})),n.append(o)}}
2,_initFilterFAQ:function(){var e=$("form.faq-search-wrapper"),t=$(".actions-group-container[data-filter]"),i=t.find(".action-cta-wrapper");if(e.length){var s,r,n=$("#searchFormControl"),a=function(e,t){var i=$(t).data("filter");return!i||i&&!i.toString().toLowerCase().startsWith(r.toLowerCase())},o=function(e,t){var i=$(t).data("filter");return i&&i.toString().toLowerCase().startsWith(r.toLowerCase())};e.on("input submit",(function(e){"submit"===e.type&&e.preventDefault(),r=n.val().toString(),clearTimeout(s),r.trim()?s=setTimeout((function(){var e=t.filter(o),i=e;$.merge(i,e.find(".action-cta-wrapper")),t.filter(a).each((function(e,t){var s=$(t),n=s.find(".action-cta-wrapper"),l=s.find(".action-cta-wrapper").filter(a),d=s.find(".action-cta-wrapper").filter(o),h=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=new RegExp(r,"i");return e.filter((function(e,s){var r=$(s).find(".faq-cta-action").data("id"),n=$("#faqDetailsContainer").find('[data-id="'.concat(r,'"] > div')).map((function(e,t){return $(t).find("> div[data-title]")})).map((function(e,t){return $(t).data("title")})).toArray(),a=n.filter((function(e){return i.test(e)}));return t&&(a=n.filter((function(e){return!i.test(e)}))),!!a.length}))}(l);$.merge(i,d),h.length&&$.merge(i,h),n.length!==l.length||h.length?(l.addClass("hidden"),$.merge(i,s)):s.addClass("hidden")})),i.removeClass("hidden")}),1200):(t.removeClass("hidden"),i.removeClass("hidden"))}))}}},Hp={init:function(){this._initTeamScroll(),this._initPlayerCardSwiper()},finalize:function(){}
2,_initTeamScroll:function(){var e=$(".player-scroll-wrapper"),t=e.find(".player-slide"),i=!1,s=0,r=-1,n=0,a=function(o){var l,d=$(o.currentTarget).scrollTop();i?o.preventDefault():(i=!0,d>n?(s++,l=t.eq(s)):(s=s-1<0?0:--s,l=t.eq(s)),n=d,l.length&&s!==r?(r=s,e.animate({scrollTop:l.offset().top-e.offset().top+e.scrollTop()},{duration:500,complete:function(){n=$(o.currentTarget).scrollTop(),i=!1,e.off("scroll.playerSlideScroll"),e.stop(),setTimeout((function(){return e.on("scroll.playerSlideScroll",a)}),100)}})):i=!1)};e.on("scroll.playerSlideScroll",a)},_initPlayerCardSwiper:function(){var e=this,t=window.matchMedia("(min-width:992px)"),i=$(".team-roles-container"),s=i.find(".player-cards-swiper");s.length&&s.each((function(r,n){var a=s[r].swiper?s[r].swiper:void 0,o=function(e){e.matches?void 0!==a&&(a.destroy(!0,!0),a=void 0,i.find("[data-swiper-enabled-class]").each((function(e,t){var i=$(t);$(t).removeClass(i.data("swiper-enabled-class"))}))):void 0===a&&(i.find("[data-swiper-enabled-class]").each((function(e,t){var i=$(t);$(t).addClass(i.data("swiper-enabled-class"))})),a=new ie(s[r],{slidesPerView:1,breakpoints:{320:{spaceBetween:40},576:{spaceBetween:70}}}))};t.addEventListener("change",o.bind(e)),o(t)}))}},jp={$window:null,init:function(){this.$window=$(window),this._initMatchScrollTrigger()},finalize:function(){},_initMatchScrollTrigger:function(){var e=this,t=$("section.schedule-matches-list").find(".match-wrapper"),i=this.$window.outerHeight()-t.eq(0).outerHeight()/2,s=-1;this.$window.on("scroll.matchScrollTrigger",(function(e){if(!window.matchMedia("(max-width: 991px)").matches){var r=$(e.currentTarget),n=r.scrollTop()>s;s=r.scrollTop(),n?function(e){t.each((function(t,s){var r=$(s);r.hasClass("element-in")||r.offset().top<=i+e&&r.addClass("element-in")}))}(s):function(e){t.each((function(t,s){var r=$(s);r.hasClass("element-in")&&r.offset().top>i+e&&r.removeClass("element-in")}))}(s)}})),this.$window.on("resize",(function(){return i=e.$window.outerHeight()-t.eq(0).outerHeight()/2})),this.$window.trigger("scroll.matchScrollTrigger")}},Up={$window:null,init:function(){this.$window=$(window),this._updateSectionMargin()},finalize:function(){},_updateSectionMargin:function(){var e=this,t=$(".premium-intro-section");if(t.length){var i=t.find(".intro-text");if(i.length){this.$window.on("load.updateTextPosition resize.updateTextPosition",(function(){var s=e.$window.width()<768?80:144,r=t.outerHeight(),n=i.outerHeight(),a=i.position().top+n-r+s;t.css("margin-bottom",a)})),setTimeout((function(){e.$window.trigger("load.updateTextPosition"),e.$window.trigger("resize.updateTextPosition")}),0)}else t.css("margin-bottom",500)}}};var Vp=function(){return Vp=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Vp.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError,"undefined"!=typeof window&&(window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),"function"!=typeof window.CustomEvent&&(window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}));var Gp,zp="undefined"!=typeof document&&!!document.documentMode;function Wp(){return Gp||(Gp=document.createElement("div").style)}var qp=["webkit","moz","ms"],Kp={};function Jp(e){if(Kp[e])return Kp[e];var t=Wp();if(e in t)return Kp[e]=e;for(var i=e[0].toUpperCase()+e.slice(1),s=qp.length;s--;){var r="".concat(qp[s]).concat(i);if(r in t)return Kp[e]=r}}function Xp(e,t){return parseFloat(t[Jp(e)])||0}function Qp(e,t,i){void 0===i&&(i=window.getComputedStyle(e));var s="border"===t?"Width":"";return{left:Xp("".concat(t,"Left").concat(s),i),right:Xp("".concat(t,"Right").concat(s),i),top:Xp("".concat(t,"Top").concat(s),i),bottom:Xp("".concat(t,"Bottom").concat(s),i)}}function Zp(e,t,i){e.style[Jp(t)]=i}function eg(e){var t=e.parentNode,i=window.getComputedStyle(e),s=window.getComputedStyle(t),r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return{elem:{style:i,width:r.width,height:r.height,top:r.top,bottom:r.bottom,left:r.left,right:r.right,margin:Qp(e,"margin",i),border:Qp(e,"border",i)},parent:{style:s,width:n.width,height:n.height,top:n.top,bottom:n.bottom,left:n.left,right:n.right,padding:Qp(t,"padding",s),border:Qp(t,"border",s)}}}
2var tg={down:"mousedown",move:"mousemove",up:"mouseup mouseleave"};function ig(e,t,i,s){tg[e].split(" ").forEach((function(e){t.addEventListener(e,i,s)}))}function sg(e,t,i){tg[e].split(" ").forEach((function(e){t.removeEventListener(e,i)}))}function rg(e,t){for(var i=e.length;i--;)if(e[i].pointerId===t.pointerId)return i;return-1}function ng(e,t){var i;if(t.touches){i=0;for(var s=0,r=t.touches;s<r.length;s++){var n=r[s];n.pointerId=i++,ng(e,n)}}else(i=rg(e,t))>-1&&e.splice(i,1),e.push(t)}function ag(e){for(var t,i=(e=e.slice(0)).pop();t=e.pop();)i={clientX:(t.clientX-i.clientX)/2+i.clientX,clientY:(t.clientY-i.clientY)/2+i.clientY};return i}function og(e){if(e.length<2)return 0;var t=e[0],i=e[1];return Math.sqrt(Math.pow(Math.abs(i.clientX-t.clientX),2)+Math.pow(Math.abs(i.clientY-t.clientY),2))}function lg(e,t){return 1===e.nodeType&&" ".concat(function(e){return(e.getAttribute("class")||"").trim()}(e)," ").indexOf(" ".concat(t," "))>-1}"undefined"!=typeof window&&("function"==typeof window.PointerEvent?tg={down:"pointerdown",move:"pointermove",up:"pointerup pointerleave pointercancel"}:"function"==typeof window.TouchEvent&&(tg={down:"touchstart",move:"touchmove",up:"touchend touchcancel"}));var dg=/^http:[\w\.\/]+svg$/;var hg={animate:!1,canvas:!1,cursor:"move",disablePan:!1,disableZoom:!1,disableXAxis:!1,disableYAxis:!1,duration:200,easing:"ease-in-out",exclude:[],excludeClass:"panzoom-exclude",handleStartEvent:function(e){e.preventDefault(),e.stopPropagation()},maxScale:4,minScale:.125,overflow:"hidden",panOnlyWhenZoomed:!1,pinchAndPan:!1,relative:!1,setTransform:function(e,t,i){var s=t.x,r=t.y,n=t.scale,a=t.isSVG;if(Zp(e,"transform","scale(".concat(n,") translate(").concat(s,"px, ").concat(r,"px)")),a&&zp){var o=window.getComputedStyle(e).getPropertyValue("transform");e.setAttribute("transform",o)}},startX:0,startY:0,startScale:1,step:.3,touchAction:"none"};function cg(e,t){if(!e)throw new Error("Panzoom requires an element as an argument");if(1!==e.nodeType)throw new Error("Panzoom requires an element with a nodeType of 1");if(!function(e){for(var t=e;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1}(e))throw new Error("Panzoom should be called on elements that have been attached to the DOM");t=Vp(Vp({},hg),t);var i=function(e){return dg.test(e.namespaceURI)&&"svg"!==e.nodeName.toLowerCase()}(e),s=e.parentNode;s.style.overflow=t.overflow,s.style.userSelect="none",s.style.touchAction=t.touchAction,(t.canvas?s:e).style.cursor=t.cursor,e.style.userSelect="none",e.style.touchAction=t.touchAction,Zp(e,"transformOrigin","string"==typeof t.origin?t.origin:i?"0 0":"50% 50%");var r,n,a,o,l,d,h=0,c=0,u=1,f=!1;function m(t,i,s){if(!s.silent){var r=new CustomEvent(t,{detail:i});e.dispatchEvent(r)}}function p(t,s,r){var n={x:h,y:c,scale:u,isSVG:i,originalEvent:r};return requestAnimationFrame((function(){"boolean"==typeof s.animate&&(s.animate?function(e,t){var i=Jp("transform");Zp(e,"transition","".concat(i," ").concat(t.duration,"ms ").concat(t.easing))}(e,s):Zp(e,"transition","none")),s.setTransform(e,n,s),m(t,n,s),m("panzoomchange",n,s)})),n}function g(i,s,r,n){var a=Vp(Vp({},t),n),o={x:h,y:c,opts:a};if(!a.force&&(a.disablePan||a.panOnlyWhenZoomed&&u===a.startScale))return o;if(i=parseFloat(i),s=parseFloat(s),a.disableXAxis||(o.x=(a.relative?h:0)+i),a.disableYAxis||(o.y=(a.relative?c:0)+s),a.contain){var l=eg(e),d=l.elem.width/u,f=l.elem.height/u,m=d*r,p=f*r,g=(m-d)/2,y=(p-f)/2;if("inside"===a.contain){var _=(-l.elem.margin.left-l.parent.padding.left+g)/r,v=(l.parent.width-m-l.parent.padding.left-l.elem.margin.left-l.parent.border.left-l.parent.border.right+g)/r;o.x=Math.max(Math.min(o.x,v),_);var b=(-l.elem.margin.top-l.parent.padding.top+y)/r,w=(l.parent.height-p-l.parent.padding.top-l.elem.margin.top-l.parent.border.top-l.parent.border.bottom+y)/r;o.y=Math.max(Math.min(o.y,w),b)}else if("outside"===a.contain){_=(-(m-l.parent.width)-l.parent.padding.left-l.parent.border.left-l.parent.border.right+g)/r,v=(g-l.parent.padding.left)/r;o.x=Math.max(Math.min(o.x,v),_);b=(-(p-l.parent.height)-l.parent.padding.top-l.parent.border.top-l.parent.border.bottom+y)/r,w=(y-l.parent.padding.top)/r;o.y=Math.max(Math.min(o.y,w),b)}}return a.roundPixels&&(o.x=Math.round(o.x),o.y=Math.round(o.y)),o}function y(i,s){var r=Vp(Vp({},t),s),n={scale:u,opts:r};if(!r.force&&r.disableZoom)return n;var a=t.minScale,o=t.maxScale;if(r.contain){var l=eg(e),d=l.elem.width/u,h=l.elem.height/u;if(d>1&&h>1){var c=(l.parent.width-l.parent.border.left-l.parent.border.right)/d,f=(l.parent.height-l.parent.border.top-l.parent.border.bottom)/h;"inside"===t.contain?o=Math.min(o,c,f):"outside"===t.contain&&(a=Math.max(a,c,f))}}return n.scale=Math.min(Math.max(i,a),o),n}function _(e,t,s,r){var n=g(e,t,u,s);return h!==n.x||c!==n.y?(h=n.x,c=n.y,p("panzoompan",n.opts,r)):{x:
2h,y:c,scale:u,isSVG:i,originalEvent:r}}function v(e,t,i){var s=y(e,t),r=s.opts;if(r.force||!r.disableZoom){e=s.scale;var n=h,a=c;if(r.focal){var o=r.focal;n=(o.x/e-o.x/u+h*e)/e,a=(o.y/e-o.y/u+c*e)/e}var l=g(n,a,e,{relative:!1,force:!0});return h=l.x,c=l.y,u=e,p("panzoomzoom",r,i)}}function b(e,i){var s=Vp(Vp(Vp({},t),{animate:!0}),i);return v(u*Math.exp((e?1:-1)*s.step),s)}function w(t,s,r,n){var a=eg(e),o=a.parent.width-a.parent.padding.left-a.parent.padding.right-a.parent.border.left-a.parent.border.right,l=a.parent.height-a.parent.padding.top-a.parent.padding.bottom-a.parent.border.top-a.parent.border.bottom,d=s.clientX-a.parent.left-a.parent.padding.left-a.parent.border.left-a.elem.margin.left,h=s.clientY-a.parent.top-a.parent.padding.top-a.parent.border.top-a.elem.margin.top;i||(d-=a.elem.width/u/2,h-=a.elem.height/u/2);var c={x:d/o*(o*t),y:h/l*(l*t)};return v(t,Vp(Vp({},r),{animate:!1,focal:c}),n)}v(t.startScale,{animate:!1,force:!0}),setTimeout((function(){_(t.startX,t.startY,{animate:!1,force:!0})}));var T=[];function M(e){if(!function(e,t){for(var i=e;null!=i;i=i.parentNode)if(lg(i,t.excludeClass)||t.exclude.indexOf(i)>-1)return!0;return!1}(e.target,t)){ng(T,e),f=!0,t.handleStartEvent(e),r=h,n=c,m("panzoomstart",{x:h,y:c,scale:u,isSVG:i,originalEvent:e},t);var s=ag(T);a=s.clientX,o=s.clientY,l=u,d=og(T)}}function S(e){if(f&&void 0!==r&&void 0!==n&&void 0!==a&&void 0!==o){ng(T,e);var i=ag(T),s=T.length>1,h=u;if(s)0===d&&(d=og(T)),w(h=y((og(T)-d)*t.step/80+l).scale,i,{animate:!1},e);s&&!t.pinchAndPan||_(r+(i.clientX-a)/h,n+(i.clientY-o)/h,{animate:!1},e)}}function L(e){1===T.length&&m("panzoomend",{x:h,y:c,scale:u,isSVG:i,originalEvent:e},t),function(e,t){if(t.touches)for(;e.length;)e.pop();else{var i=rg(e,t);i>-1&&e.splice(i,1)}}(T,e),f&&(f=!1,r=n=a=o=void 0)}var k=!1;function E(){k||(k=!0,ig("down",t.canvas?s:e,M),ig("move",document,S,{passive:!0}),ig("up",document,L,{passive:!0}))}return t.noBind||E(),{bind:E,destroy:function(){k=!1,sg("down",t.canvas?s:e,M),sg("move",document,S),sg("up",document,L)},eventNames:tg,getPan:function(){return{x:h,y:c}},getScale:function(){return u},getOptions:function(){return function(e){var t={};for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}(t)},handleDown:M,handleMove:S,handleUp:L,pan:_,reset:function(e){var i=Vp(Vp(Vp({},t),{animate:!0,force:!0}),e);u=y(i.startScale,i).scale;var s=g(i.startX,i.startY,u,i);return h=s.x,c=s.y,p("panzoomreset",i)},resetStyle:function(){s.style.overflow="",s.style.userSelect="",s.style.touchAction="",s.style.cursor="",e.style.cursor="",e.style.userSelect="",e.style.touchAction="",Zp(e,"transformOrigin","")},setOptions:function(i){for(var r in void 0===i&&(i={}),i)i.hasOwnProperty(r)&&(t[r]=i[r]);(i.hasOwnProperty("cursor")||i.hasOwnProperty("canvas"))&&(s.style.cursor=e.style.cursor="",(t.canvas?s:e).style.cursor=t.cursor),i.hasOwnProperty("overflow")&&(s.style.overflow=i.overflow),i.hasOwnProperty("touchAction")&&(s.style.touchAction=i.touchAction,e.style.touchAction=i.touchAction)},setStyle:function(t,i){return Zp(e,t,i)},zoom:v,zoomIn:function(e){return b(!0,e)},zoomOut:function(e){return b(!1,e)},zoomToPoint:w,zoomWithWheel:function(e,i){e.preventDefault();var s=Vp(Vp(Vp({},t),i),{animate:!1}),r=(0===e.deltaY&&e.deltaX?e.deltaX:e.deltaY)<0?1:-1;return w(y(u*Math.exp(r*s.step/3),s).scale,e,s,e)}}}cg.defaultOptions=hg;const ug={TABLE_MINIMIZED_MIN_HEIGHT:420,$window:null,init:function(){this.$window=$(window),this._handleTableExpansion(),this._initCardSwiper(),this._initZoomableSVG()},finalize:function(){},_handleTableExpansion:function(){var e=this,t=$(".table-wrapper"),i=$(".mask-expansion");if(t.length&&i.length){var s=i.find(".expand-btn"),r=t.find(".nav-tabs"),n=t.find(".price-table"),a=r.outerHeight()+n.outerHeight(),o=!1;this.TABLE_MINIMIZED_MIN_HEIGHT=parseInt(t.data("minimized-min-height"));var l=window.matchMedia("(max-width: 767.98px)"),d=function(){t.hasClass("minimized")?(a=r.outerHeight()+n.outerHeight(),i.fadeOut(200,"swing",(function(){return i.css("display","")})),t.css("height",a),t.removeClass("minimized")):t.css("height","")};s.on("click",(function(){d(),o=!0})),this.$window.on("resize.updateExpansionState load.updateExpansionState",(function(s){if(l.matches){if(a<e.TABLE_MINIMIZED_MIN_HEIGHT||o)return;t.hasClass("minimized")||(t.css("height",e.TABLE_MINIMIZED_MIN_HEIGHT),t.addClass("minimized"),setTimeout((function(){i.fadeIn(200,"swing",(function(){return i.css("display","flex")}))}),300),o=!1)}else o=!1,d()})),this.$window.trigger("resize.updateExpansionState"),this.$window.trigger("load.updateExpansionState")}}
2,_initCardSwiper:function(){var e=$(".phase-card-wrapper");if(e.length){var t=window.matchMedia("(min-width: 992px)"),i={modules:[ne],spaceBetween:16,slidesPerView:"auto",navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}},s=new ie(e.get(0),i);this.$window.on("resize.updateSwiperSlider load.updateSwiperSlider",(function(r){t.matches?void 0===s&&(s=new ie(e.get(0),i)):void 0!==s&&(s.destroy(),s=void 0)})),this.$window.trigger("resize.updateSwiperSlider"),this.$window.trigger("load.updateSwiperSlider")}},_initZoomableSVG:function(){var e=$(".interactive-map");if(e.length)cg(e.find("> svg").get(0),{maxScale:3,minScale:1,contain:"outside"})}},fg={init:function(){this._initSwiper()},finalize:function(){},_initSwiper:function(){var e=$(".predict-result-wrapper .result-scroll-container"),t=$(".goal-counter-swiper"),i=$("#predictResultForm > input");if(t.length&&e.length){var s=e.data("preload-result"),r=[];s&&(r=s.split("-").map((function(e){return e.trim()}))),t.each((function(e,t){var s=$(t).parents(".scroll-wrapper").find(".scroll-indicator"),n=new ie(t,{modules:[se],slidesPerView:1.5,freeMode:!0,centeredSlides:!0,slideToClickedSlide:!0,direction:"vertical",mousewheel:{forceToAxis:!0,releaseOnEdges:!0},on:{progress:function(e,t){var i=Math.abs(t);0===i?s.attr("data-position","start"):1===i?s.attr("data-position","end"):s.attr("data-position","mid")},slideChangeTransitionEnd:function(t){i.eq(e).val(t.activeIndex)}}});void 0!==r[e]&&n.slideTo(r[e])}))}}};function mg(e){return mg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mg(e)}function pg(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function gg(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?pg(Object(i),!0).forEach((function(t){yg(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):pg(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function yg(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=mg(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var s=i.call(e,t||"default");if("object"!=mg(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mg(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var s,r,n,a,o=[],l=!0,d=!1;try{if(n=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(s=n.call(i)).done)&&(o.push(s.value),o.length!==t);l=!0);}catch(e){d=!0,r=e}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(d)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vg(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?vg(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vg(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=Array(t);i<t;i++)s[i]=e[i];return s}const bg={$window:null,timeoutId:null,lastFormation:null,$formationForm:null,$selectedFormationWrapper:null,$formationSwiperWrapper:null,$formationSwiper:null,$currentFormation:null,$playerSwiperWrapper:null,$playerSwiper:null,$playerSwiperBackdrop:null,$sliderContainer:null,formationSwiperInstance:null,playerSwiperInstance:null,ROLES:["P","D","C","AT"],init:function(){this.$window=$(window);
2var e=$("section.scroll-formation");e.length&&(this.$formationForm=e.find("#formationForm"),this.$selectedFormationWrapper=e.find(".selected-formation-wrapper"),this.$currentFormation=e.find("#currentFormation"),this.$playerSwiperBackdrop=this.$currentFormation.find(".player-swiper-backdrop"),this.$sliderContainer=e.find(".slider-container"),this.$formationSwiper=this.$sliderContainer.find(".select-formation-swiper-container"),this.$formationSwiperWrapper=this.$formationSwiper.parents(".swiper-container-wrapper"),this.$playerSwiper=this.$sliderContainer.find(".select-player-swiper-container"),this.$playerSwiperWrapper=this.$playerSwiper.parents(".swiper-container-wrapper")),this._initSwiper(),this._initSliderFormationChangeOnClick(),this._initSliderPlayerChangeOnClick(),this._initVerticalFormationsScroll(),this._initVerticalPlayersScroll(),this._initUndoFormationSelection(),this._initPlayerBoxOnClick(),this._initHidePlayerSwiperOnBackgroundClick(),this._initCloseSwiperOnBtnClick()},finalize:function(){this._preloadFormation()}
2,_preloadFormation:function(){var e=$("section.predict-formation");if(e.length){var t=e.data("preload-formation"),i=e.data("preload-players");if(t){var s=this.$formationSwiper.find('.swiper-slide .formation[data-formation="'+t+'"]');this._changeCurrentFormation(s.eq(0)),this._selectFormation(s.eq(0))}if(i){for(var r=Object.entries(i),n=0,a=r;n<a.length;n++){var o=_g(a[n],2),l=o[0],d=o[1],h=this.$playerSwiper.find('.swiper-slide .player-item[data-player-id="'+d+'"]');this._selectPlayer(h.eq(0),+l)}this._handleConfirmFormationVisibility(this.$currentFormation.find(".player-box").length===r.length)}}},_initSwiper:function(){var e=this,t=this.$playerSwiper.find(".swiper-slide"),i=this.$formationSwiper.find(".swiper-slide"),s=null,r=!0;this.$window.on("resize.initFormationsSwiper orientationchange.initFormationsSwiper",(function(n){if(!e.voted)if(window.matchMedia("(max-width: 991px)").matches&&!s){t.removeAttr("style"),i.removeAttr("style").removeClass("active"),s=!0,e.playerSwiperInstance&&e.playerSwiperInstance.destroy(),e.formationSwiperInstance&&e.formationSwiperInstance.destroy();var a={slidesPerView:"auto",resizeObserver:!1,centeredSlides:!0,loop:!0,centeredSlidesBounds:!0,slideToClickedSlide:!0};if(e.playerSwiperInstance=new ie("#swiperSelectPlayer",a),e.formationSwiperInstance=new ie("#swiperSelectFormation",gg(gg({},a),{on:{slideChangeTransitionStart:function(t){e._changeCurrentFormation(e.$formationSwiper.find(".swiper-slide.swiper-slide-active .formation"))}}})),r){r=!1;var o=e.$formationSwiper.find(".swiper-slide.swiper-slide-active");e._changeCurrentFormation(o.find(".formation"))}}else(window.matchMedia("(min-width: 992px)").matches&&s||null===s)&&(s=!1,e.playerSwiperInstance&&e.playerSwiperInstance.destroy(),e.formationSwiperInstance&&e.formationSwiperInstance.destroy())})),this.$window.trigger("resize.initFormationsSwiper")},_initVerticalPlayersScroll:function(){var e,t,i,s,r,n,a=this,o=this.$playerSwiper.find(".swiper-slide:not(.swiper-slide-duplicate)"),l=this.$playerSwiper.find(".placeholder-container"),d=this.$playerSwiper.find(".swiper-wrapper"),h=window.matchMedia("(min-width: 992px)").matches,c=!1;this.$window.on("resize.handlePlayerScroll orientationchange.handlePlayerScroll",(function(u){(h=window.matchMedia("(min-width: 992px)").matches)&&(o.length&&(s=o.eq(0).outerHeight(),t=a.$playerSwiper.height(),i=t+(s-t%s),a.$playerSwiper.offset().top,e=i,l.eq(1).css("margin-top","".concat(t,"px"))),l.find("> *").remove(),(c=o.length*s<=t)&&d.hasClass("disabled-scroll")||(d.removeClass("disabled-scroll"),c?d.addClass("disabled-scroll"):(r=[],o.each((function(e,t){var n=e*s,a=$(t);a.css("top","".concat(n,"px")),r.push(a),n<i&&l.append("<div></div>")})),a.$playerSwiper.scrollTop(e),n=a.$playerSwiper.scrollTop(),setTimeout((function(){a.$playerSwiper.trigger("scroll.verticalSlider")}),0))))})),this.$window.trigger("resize.handlePlayerScroll"),this.$playerSwiper.on("scroll.verticalSlider",(function(e){if(h&&!c){var t=$(e.currentTarget);if(t.scrollTop()!==n){var i=t.scrollTop()>n;n=t.scrollTop(),i?u():f()}}}));var u=function(){var t=Math.floor(Math.abs(n-e)/s);if(t){for(var i=0;i<t;)r.push(r.shift()),i++;r.forEach((function(e,t){return e.css("top","".concat(t*s,"px"))})),m(Math.abs(n-e)-t*s)}},f=function(){var i=r.filter((function(i){return parseInt(i[0].style.top)>t-(e-n)})).length;if(!(i<=0)){for(var a=0;a<i;)r.unshift(r.pop()),a++;r.forEach((function(e,t){return e.css("top","".concat(t*s,"px"))})),m(i*s-(e-n))}},m=function(t){n=e+t,a.$playerSwiper.scrollTop(n)}},_initVerticalFormationsScroll:function(){var e,t,i,s,r,n,a,o=this,l=this.$formationSwiper.find(".swiper-slide:not(.swiper-slide-duplicate)"),d=this.$formationSwiper.find(".placeholder-container"),h=this.$formationSwiper.find(".swiper-wrapper"),c=window.matchMedia("(min-width: 992px)").matches,u=!1,f=!0;this.$window.on("resize.handleFormationScroll orientationchange.handleFormationScroll",(function(m){if(c=window.matchMedia("(min-width: 992px)").matches,f&&(f=!1,o._animateInDesktopSlider()),c&&(h.removeAttr("style"),l.length&&(s=l.eq(0).outerHeight(),t=o.$formationSwiper.height(),i=t+(s-t%s),a=o.$formationSwiper.offset().top,e=i,d.eq(1).css("margin-top","".concat(t,"px"))),d.find("> *").remove(),!(u=l.length*s<=t)||!h.hasClass("disabled-scroll"))){if(h.removeClass("disabled-scroll"),u)return h.addClass("disabled-scroll"),l.removeClass("active"),l.eq(0).addClass("active"),void o._changeCurrentFormation(l.eq(0).find(".formation"));r=[],l.each((function(e,t){var n=e*s,a=$(t);a.css("top","".concat(n,"px")),r.push(a),n<i&&d.append("<div></div>")})),o.$formationSwiper.scrollTop(e),n=o.$formationSwiper.scrollTop(),setTimeout((function(){o.$formationSwiper.trigger("scroll.verticalSlider")}),0)}})),this.$window.trigger("resize.handleFormationScroll"),this.$formationSwiper.on("scroll.verticalSlider",(function(e){if(c&&!u){var t=$(e.currentTarget);if(y(),t.scrollTop()!==n){var i=t.scrollTop()>n;n=t.scrollTop(),i?m():p()}}}));var m=function(){var t=Math.floor(Math.abs(n-e)/s);if(t){for(var i=0;i<t;)r.push(r.shift()),i++;r.forEach((function(e,t){return e.css("top","".concat(t*s,"px"))})),g(Math.abs(n-e)-t*s)}},p=function(){var i=r.filter((function(i){return parseInt(i[0].style.top)>t-(e-n)})).length;if(!(i<=0)){for(var a=0;a<i;)r.unshift(r.pop()),a++;r.forEach((function(e,t){return e.css("top","".concat(t*s,"px"))})),g(i*s-(e-n))}},g=function(t){n=e+t,o.$formationSwiper.scrollTop(n)},y=function(){var e=t/2,i=r.filter((function(t,i){var r=t.offset().top-a;return r<=e&&e<r+s}
2));i.length&&(l.removeClass("active"),i[0].addClass("active"),o._changeCurrentFormation(i[0].find(".formation")))}},_initSliderFormationChangeOnClick:function(){var e=this,t=this.$formationSwiper.find(".swiper-slide");t.length&&t.on("click",(function(i){var s=$(i.currentTarget);window.matchMedia("(min-width: 992px)").matches&&(t.removeClass("active"),s.addClass("active")),e._selectFormation(s.find(".formation"))}))},_initSliderPlayerChangeOnClick:function(){var e=this,t=this.$playerSwiper.find(".swiper-slide"),i=this.$currentFormation.find(".player-box").length;t.length&&t.on("click",(function(t){t.stopPropagation(),e._selectPlayer($(t.currentTarget).find(".player-item")),e._hidePlayerSlider();var s=e.$currentFormation.find(".player-box.selected").length;e._handleConfirmFormationVisibility(s===i)}))},_changeCurrentFormation:function(e){var t=this,i=e.data("formation");i&&this.lastFormation!==i&&(this.lastFormation=i,this.$currentFormation.attr("data-current-formation",i),this.$currentFormation.hasClass("formation-selected")||(this.$currentFormation.removeClass("is-moving").addClass("is-moving"),this.$currentFormation.on("animationend",(function(){return t.$currentFormation.removeClass("is-moving")}))))},_selectFormation:function(e){var t=this,i=e.data("formation"),s=this.$currentFormation.find(".player-box");this.lastFormation=i,this.$currentFormation.attr("data-current-formation",i).addClass("formation-selected"),this.$sliderContainer.removeClass("slider-in").addClass("slider-out"),this.$sliderContainer.one("transitionend",(function(){return t.$formationSwiperWrapper.addClass("hidden")})),this.$selectedFormationWrapper.find("#selectedFormation").text(i),this.$selectedFormationWrapper.removeClass("hidden"),s.eq(0).css({left:"50%",transform:"translateX(-50%)",transitionProperty:"top, left"}).addClass("line-0");var r=1;i.split("-").map((function(e){return+e})).forEach((function(e,t){var i=100/(e+1),n=i;s.slice(r,r+e).each((function(e,s){var r=$(s);r.css({left:"".concat(n,"%"),transform:"translateX(-50%)",transitionProperty:"top, left"}),r.addClass("line-"+(t+1)),n+=i})),r+=e}))},_selectPlayer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.$currentFormation.find(".player-box"),s=null!==t?i.eq(t):i.filter(".selecting");if(s.length){var r=e.data("player-id"),n=i.filter("[data-selected-player-id=".concat(r,"]"));n.length&&(n.find(".selected-player").removeClass("in"),n.removeClass("selected"),n.attr("data-selected-player-id","")),s.attr("data-selected-player-id",r),s.find(".player-name").text(e.data("item-player-name")),s.find(".player-number").text(e.data("item-player-number"));var a=s.find(".selected-player > img");a.attr("src",e.find(".player-pic-container > img").attr("src")),a.on("load",(function(){a.parents(".selected-player").addClass("in")})),s.removeClass("selecting").addClass("selected")}},_initUndoFormationSelection:function(){var e=this,t=this.$selectedFormationWrapper.find("#undoSelection");t.length&&t.on("click",(function(t){t.preventDefault(),e.$selectedFormationWrapper.addClass("hidden"),e._handleConfirmFormationVisibility(!1),$(".player-box").attr("style",""),e.$currentFormation.find(".player-box").removeClass("selected selecting line-0 line-1 line-2 line-3"),e.$formationSwiperWrapper.removeClass("hidden"),e.$formationSwiperWrapper.one("transitionend",(function(){return e.$sliderContainer.removeClass("slider-out").addClass("slider-in")})),e.$currentFormation.removeClass("formation-selected")}))},_initPlayerBoxOnClick:function(){var e=this,t=this.$currentFormation.find(".player-box");t&&t.on("click",(function(i){i.stopPropagation();var s=e.$currentFormation.data("current-formation").split("-").map((function(e){return+e})),r=window.matchMedia("max-width: 991px"),n=$(i.currentTarget);if(t.removeClass("selecting highlight-selecting"),n.find(".selected-player").removeClass("in"),n.removeClass("selected").addClass("selecting"),r){var a=+n.data("role-id")-1;if(a>0){for(var o=0,l=null,d=0;d<s.length;d++){var h=o,c=o+s[d];if(h<a&&a<=c){l={prevIndex:d-1,currIndex:d};break}o=c}if(l){var u=s.slice(0,l.prevIndex+1).reduce((function(e,t){return e+t}),1),f=s.slice(0,l.currIndex+1).reduce((function(e,t){return e+t}),1);t.slice(u,f).addClass("highlight-selecting")}}else t.eq(0).addClass("highlight-selecting")}e._handleConfirmFormationVisibility(!1),e.$playerSwiperWrapper.hasClass("hidden")&&(e.$selectedFormationWrapper.addClass("hidden"),e.$playerSwiperWrapper.removeClass("hidden"),e.$playerSwiperWrapper.one("transitionend",(function(){r&&e.$playerSwiperBackdrop.removeClass("hidden"),e.$sliderContainer.removeClass("slider-out").addClass("slider-in")})))}))},_hidePlayerSlider:function(){var e=this;this.$playerSwiperBackdrop.addClass("hidden"),this.$currentFormation.find(".player-box").removeClass("selecting"),this.$sliderContainer.removeClass("slider-in").addClass("slider-out"),this.$sliderContainer.one("transitionend",(function(){return e.$playerSwiperWrapper.addClass("hidden")})),this.$selectedFormationWrapper.removeClass("hidden")}
2,_initHidePlayerSwiperOnBackgroundClick:function(){var e=this;$("section.scroll-formation").on("click",(function(){e.$playerSwiperWrapper.hasClass("hidden")||e._hidePlayerSlider()}))},_initCloseSwiperOnBtnClick:function(){var e=this,t=$(".swiper-container-wrapper .swiper-btn-close");t.length&&t.on("click",(function(){e.$playerSwiperWrapper.hasClass("hidden")||e._hidePlayerSlider()}))},_handleConfirmFormationVisibility:function(e){var t=this;e?this.$formationForm.removeClass("hidden").addClass("in"):this.$formationForm.hasClass("in")&&(this.$formationForm.removeClass("in").addClass("out"),this.$formationForm.one("animationend",(function(){return t.$formationForm.addClass("hidden").removeClass("out")})))},_animateInDesktopSlider:function(){var e=this;this.$sliderContainer.removeClass("hidden").addClass("slider-in"),setTimeout((function(){e.$currentFormation.removeClass("hidden"),e.$currentFormation.addClass("element-in")}),500)}},wg={init:function(){$(".page-daily-streaks .daily-streaks-card .card .btn-toggle-flip-card").on("click",(function(e){$(e.currentTarget).parents(".card").toggleClass("flip")}))},finalize:function(){}};function Tg(e){return function(e){if(Array.isArray(e))return Lg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Sg(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var s,r,n,a,o=[],l=!0,d=!1;try{if(n=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(s=n.call(i)).done)&&(o.push(s.value),o.length!==t);l=!0);}catch(e){d=!0,r=e}finally{try{if(!l&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(d)throw r}}return o}}(e,t)||Sg(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sg(e,t){if(e){if("string"==typeof e)return Lg(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Lg(e,t):void 0}}function Lg(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=Array(t);i<t;i++)s[i]=e[i];return s}const kg={init:function(){window.ACF.updateMatchPredictorCardsDividerPosition=function(){$(window).trigger("load.matchPredictorCard")}.bind(this),this.updateDividerPosition()},finalize:function(){}
2,updateDividerPosition:function(){var e=$(".match-predictor-cards .card:has(hr.hr)");e.length&&($(window).on("load.matchPredictorCard resize.matchPredictorCard",(function(){var t={};if(window.matchMedia("(max-width: 991px)").matches)e.find("hr.hr").css("padding-bottom","");else{e.each((function(e,i){var s=$(i),r=Math.ceil(s.offset().top);t[r]||(t[r]=[]),t[r].push(s)}));for(var i=function(){var e=Mg(r[s],2),t=(e[0],e[1]),i=t.map((function(e){return e.find(".card-bottom-text").height()}));if(i.length>1){var n=Math.max.apply(Math,Tg(i));t.forEach((function(e){var t=e.find(".card-bottom-text").height();t<n&&e.find("hr.hr").css("padding-bottom",n-t)}))}},s=0,r=Object.entries(t);s<r.length;s++)i()}})),$(window).trigger("load.matchPredictorCard"))}};window.ACF||(window.ACF={});var Eg=new Ee({commonRoute:_p,pageHomepageRoute:vp,pageRegisterRoute:bp,pageStoresRoute:{$window:null,$document:null,$viewSection:null,_mapInitialized:!1,_$mapContainer:null,_mapInstance:null,_mapInstanceClusterer:null,_storeDetailModal:{visible:null,focusTrap:null,selectedMarker:null,mapListeners:[],firstUpdatePosition:null},_myGeolocationPosition:null,_geolocationPosition:null,_geolocationLastPlace:null,init:function(){},finalize:function(){}},pageCatalogListRoute:{init:function(){},finalize:function(){}},pageCatalogPrizeRoute:Sp,pageCheckoutFormRoute:Mp,pagePlayerOfTheMonthRoute:wp,pageVotePlayerRoute:Tp,pageSingleEventDetailsRoute:Lp,corporatePageHomepageRoute:kp,corporatePageHomepageLoggedRoute:Dp,pageVoteVideoRoute:$p,pageVoteJingleRoute:Np,pageViolaParkRoute:Fp,pageFaqRoute:Bp,pageMenTeamRoute:Hp,pageTicketOfficeTeamRoute:jp,pagePremiumCardRoute:Up,pageSubscriptionsRoute:ug,pagePredictResultRoute:fg,pagePredictFormationRoute:bg,pageDailyStreaksRoute:wg,pageMatchPredictorRoute:kg});jQuery(document).ready((function(){return Eg.loadEvents()})),window.swiperExternal=ie,window.plyrExternal=fe(),window.jqueryExternal=jQuery,window.bsModalExternal=ye(),window.lottieExternal=pe(),jQuery.fn.showLoading=function(e,t){return void 0===e&&(e=!0),this.each((function(){var i=$(this);e?(i.addClass("loading"),i.find(".lds-loading").length||i.append('<div class="lds-loading '.concat(t?"lds-"+t:"",'"><div></div></div>')),i.find(".lds-loading").stop().hide().fadeIn(400),i.find(".anim-text").stop().fadeTo(400,0)):(i.removeClass("loading"),i.find(".lds-loading").stop().fadeOut({duration:400,complete:function(){i.find(".lds-loading").remove(),i.find(".anim-text").stop().fadeTo(400,1)}}))})),this},jQuery.fn.sideForm=function(e){var t=function(e){var t=e.find(".modal-panel");e.data("is-submitting")||!1!==e.data("side-form-state").isFormVisible&&(e.data("side-form-state").isFormVisible=!1,e.trigger("hide.side-form"),e.data("side-form-state").focusTrap.deactivate(),e.removeClass("in").addClass("out"),jQuery(window).off("resize.sizePanelPosition"),(0,Pr.executeAfterTransition)((function(){e.removeClass("out animate"),t.length&&t.eq(0).removeClass("out animate in"),e.trigger("mainscrollbarsshow"),e.trigger("hidden.side-form")}),e[0]))};return this.each((function(){var i=$(this),s=i.find(".custom-modal-btn-close");switch(e){case"show":!function(e){var t=e.find(".modal-panel");e.data("side-form-state").isFormVisible||(e.data("side-form-state").isFormVisible=!0,e.trigger("mainscrollbarshide"),e.addClass("animate"),setTimeout((function(){e.trigger("show.side-form"),setTimeout((function(){t.length&&t.eq(0).addClass("animate in current-step"),e.addClass("in"),(0,Pr.executeAfterTransition)((function(){e.data("side-form-state").focusTrap.activate(),e.trigger("shown.side-form")}),e[0])}))})))}(i);break;case"hide":t(i);break;default:if(i.data("side-form-init"))return;i.data("side-form-init",!0);var r=new xa({trapElement:i[0]});i.data("side-form-state",jQuery.extend({},i.data("side-form-state"),{isFormVisible:!1,focusTrap:r})),i.on("click",(function(e){e.target===i[0]&&t(i)})),jQuery(document).on("keydown",(function(e){"Escape"===e.key&&t(i)})),s.length&&s.on("click",(function(){t(i)})),i.find("[data-overlayscrollbars-initialize]").each((function(e,t){Dr({target:t},{paddingAbsolute:!0,update:{elementEvents:[]},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:200,autoHideSuspend:!1,dragScroll:!1}})}))}}))}},3861:function(e,t,i){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"à¥",8:"८",9:"९",0:"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","à¥":"7","८":"8","९":"9","०":"0"},s=[/^à¤à¤¨/i,/^फ़र|फर/i,/^मारà¥à¤/i,/^à¤
पà¥à¤°à¥/i,/^मà¤/i,/^à¤à¥à¤¨/i,/^à¤à¥à¤²/i,/^à¤
à¤/i,/^सितà¤|सित/i,/^à¤
à¤à¥à¤à¥/i,/^नव|नवà¤/i,/^दिसà¤|दिस/i],r=[/^à¤à¤¨/i,/^फ़र/i,/^मारà¥à¤/i,/^à¤
पà¥à¤°à¥/i,/^मà¤/i,/^à¤à¥à¤¨/i,/^à¤à¥à¤²/i,/^à¤
à¤/i,/^सित/i,/^à¤
à¤à¥à¤à¥/i,/^नव/i,/^दिस/i];e.defineLocale("hi",{months:{format:"à¤à¤¨à¤µà¤°à¥_फ़रवरà¥_मारà¥à¤_à¤
पà¥à¤°à¥à¤²_मà¤_à¤à¥à¤¨_à¤à¥à¤²à¤¾à¤_à¤
à¤à¤¸à¥à¤¤_सितमà¥à¤¬à¤°_à¤
à¤à¥à¤à¥à¤¬à¤°_नवमà¥à¤¬à¤°_दिसमà¥à¤¬à¤°".split("_"),standalone:"à¤à¤¨à¤µà¤°à¥_फरवरà¥_मारà¥à¤_à¤
पà¥à¤°à¥à¤²_मà¤_à¤à¥à¤¨_à¤à¥à¤²à¤¾à¤_à¤
à¤à¤¸à¥à¤¤_सितà¤à¤¬à¤°_à¤
à¤à¥à¤à¥à¤¬à¤°_नवà¤à¤¬à¤°_दिसà¤à¤¬à¤°".split("_")},monthsShort:"à¤à¤¨._फ़र._मारà¥à¤_à¤
पà¥à¤°à¥._मà¤_à¤à¥à¤¨_à¤à¥à¤²._à¤
à¤._सित._à¤
à¤à¥à¤à¥._नव._दिस.".split("_"),weekdays:"रविवार_सà¥à¤®à¤µà¤¾à¤°_मà¤à¤à¤²à¤µà¤¾à¤°_बà¥à¤§à¤µà¤¾à¤°_à¤à¥à¤°à¥à¤µà¤¾à¤°_शà¥à¤à¥à¤°à¤µà¤¾à¤°_शनिवार".split("_"),weekdaysShort:"रवि_सà¥à¤®_मà¤à¤à¤²_बà¥à¤§_à¤à¥à¤°à¥_शà¥à¤à¥à¤°_शनि".split("_"),weekdaysMin:"र_सà¥_मà¤_बà¥_à¤à¥_शà¥_श".split("_"),longDateFormat:{LT:"A h:mm बà¤à¥",LTS:"A h:mm:ss बà¤à¥",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बà¤à¥",LLLL:"dddd, D MMMM YYYY, A h:mm बà¤à¥"},monthsParse:s,longMonthsParse:s,shortMonthsParse:r,monthsRegex:/^(à¤à¤¨à¤µà¤°à¥|à¤à¤¨\.?|फ़रवरà¥|फरवरà¥|फ़र\.?|मारà¥à¤?|à¤
पà¥à¤°à¥à¤²|à¤
2पà¥à¤°à¥\.?|मà¤?|à¤à¥à¤¨?|à¤à¥à¤²à¤¾à¤|à¤à¥à¤²\.?|à¤
à¤à¤¸à¥à¤¤|à¤
à¤\.?|सितमà¥à¤¬à¤°|सितà¤à¤¬à¤°|सित\.?|à¤
à¤à¥à¤à¥à¤¬à¤°|à¤
à¤à¥à¤à¥\.?|नवमà¥à¤¬à¤°|नवà¤à¤¬à¤°|नव\.?|दिसमà¥à¤¬à¤°|दिसà¤à¤¬à¤°|दिस\.?)/i,monthsShortRegex:/^(à¤à¤¨à¤µà¤°à¥|à¤à¤¨\.?|फ़रवरà¥|फरवरà¥|फ़र\.?|मारà¥à¤?|à¤
पà¥à¤°à¥à¤²|à¤
पà¥à¤°à¥\.?|मà¤?|à¤à¥à¤¨?|à¤à¥à¤²à¤¾à¤|à¤à¥à¤²\.?|à¤
à¤à¤¸à¥à¤¤|à¤
à¤\.?|सितमà¥à¤¬à¤°|सितà¤à¤¬à¤°|सित\.?|à¤
à¤à¥à¤à¥à¤¬à¤°|à¤
à¤à¥à¤à¥\.?|नवमà¥à¤¬à¤°|नवà¤à¤¬à¤°|नव\.?|दिसमà¥à¤¬à¤°|दिसà¤à¤¬à¤°|दिस\.?)/i,monthsStrictRegex:/^(à¤à¤¨à¤µà¤°à¥?|फ़रवरà¥|फरवरà¥?|मारà¥à¤?|à¤
पà¥à¤°à¥à¤²?|मà¤?|à¤à¥à¤¨?|à¤à¥à¤²à¤¾à¤?|à¤
à¤à¤¸à¥à¤¤?|सितमà¥à¤¬à¤°|सितà¤à¤¬à¤°|सित?\.?|à¤
à¤à¥à¤à¥à¤¬à¤°|à¤
à¤à¥à¤à¥\.?|नवमà¥à¤¬à¤°|नवà¤à¤¬à¤°?|दिसमà¥à¤¬à¤°|दिसà¤à¤¬à¤°?)/i,monthsShortStrictRegex:/^(à¤à¤¨\.?|फ़र\.?|मारà¥à¤?|à¤
पà¥à¤°à¥\.?|मà¤?|à¤à¥à¤¨?|à¤à¥à¤²\.?|à¤
à¤\.?|सित\.?|à¤
à¤à¥à¤à¥\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[à¤à¤] LT",nextDay:"[à¤à¤²] LT",nextWeek:"dddd, LT",lastDay:"[à¤à¤²] LT",lastWeek:"[पिà¤à¤²à¥] dddd, LT",sameElse:"L"},relativeTime:{future:"%s मà¥à¤",past:"%s पहलà¥",s:"à¤à¥à¤ हॠà¤à¥à¤·à¤£",ss:"%d सà¥à¤à¤à¤¡",m:"à¤à¤ मिनà¤",mm:"%d मिनà¤",h:"à¤à¤ à¤à¤à¤à¤¾",hh:"%d à¤à¤à¤à¥",d:"à¤à¤ दिन",dd:"%d दिन",M:"à¤à¤ महà¥à¤¨à¥",MM:"%d महà¥à¤¨à¥",y:"à¤à¤ वरà¥à¤·",yy:"%d वरà¥à¤·"},preparse:function(e){return e.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सà¥à¤¬à¤¹|दà¥à¤ªà¤¹à¤°|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सà¥à¤¬à¤¹"===t?e:"दà¥à¤ªà¤¹à¤°"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"रात":e<10?"सà¥à¤¬à¤¹":e<17?"दà¥à¤ªà¤¹à¤°":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(i(5093))},3872:function(e,t,i){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(i(5093))},4035:function(e,t){!function(e){"use strict";const t=1e6,i=1e3,s="transitionend",r=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),n=e=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),a=e=>{do{e+=Math.floor(Math.random()*t)}while(document.getElementById(e));return e},o=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:s}=window.getComputedStyle(e);const r=Number.parseFloat(t),n=Number.parseFloat(s);return r||n?(t=t.split(",")[0],s=s.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(s))*i):0},l=e=>{e.dispatchEvent(new Event(s))},d=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),h=e=>d(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(r(e)):null,c=e=>{if(!d(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const t=e.closest("summary");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return t},u=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),f=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?f(e.parentNode):null},m=()=>{},p=e=>{e.offsetHeight},g=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,y=[],_=e=>{"loading"===document.readyState?(y.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of y)e()})),y.push(e)):e()},v=()=>"rtl"===document.documentElement.dir,b=e=>{_((()=>{const t=g();if(t){const i=e.NAME,s=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=s,e.jQueryInterface)}}))},w=(e,t=[],i=e)=>"function"==typeof e?e.call(...t):i,T=(e,t,i=!0)=>
2{if(!i)return void w(e);const r=5,n=o(t)+r;let a=!1;const d=({target:i})=>{i===t&&(a=!0,t.removeEventListener(s,d),w(e))};t.addEventListener(s,d),setTimeout((()=>{a||l(t)}),n)},M=(e,t,i,s)=>{const r=e.length;let n=e.indexOf(t);return-1===n?!i&&s?e[r-1]:e[0]:(n+=i?1:-1,s&&(n=(n+r)%r),e[Math.max(0,Math.min(n,r-1))])};e.defineJQueryPlugin=b,e.execute=w,e.executeAfterTransition=T,e.findShadowRoot=f,e.getElement=h,e.getNextActiveElement=M,e.getTransitionDurationFromElement=o,e.getUID=a,e.getjQuery=g,e.isDisabled=u,e.isElement=d,e.isRTL=v,e.isVisible=c,e.noop=m,e.onDOMContentLoaded=_,e.parseSelector=r,e.reflow=p,e.toType=n,e.triggerTransitionEnd=l,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}(t)},4051:function(e,t,i){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Ãp~rÃl_~Máý_~Júñé~_Júl~ý_Ãú~gúst~_Sép~témb~ér_Ã~ctób~ér_Ã~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ãpr_~Máý_~Júñ_~Júl_~Ãúg_~Sép_~Ãct_~Ãóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~FrÃd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~FrÃ_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ã~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"Ã~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~mÃñ~út
2é",mm:"%d m~Ãñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(i(5093))},4063:function(e,t,i){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(i(5093))},4226:function(e,t,i){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(i(5093))},4330:function(e,t,i){"object"==typeof navigator&&(e.exports=function(){"use strict";function e(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var s=i.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function t(e,t){for(var i=0;i<t.length;i++){var s=t[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function s(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,s)}return i}function n(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach((function(t){s(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEac
vendor: 45,070 bytes, line 2
2h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var a={addCSS:!0,thumbWidth:15,watch:!0},o=function(e){return null!=e?e.constructor:null},l=function(e,t){return!!(e&&t&&e instanceof t)},d=function(e){return null==e},h=function(e){return o(e)===Object},c=function(e){return o(e)===String},u=function(e){return Array.isArray(e)},f=function(e){return l(e,NodeList)},m={nullOrUndefined:d,object:h,number:function(e){return o(e)===Number&&!Number.isNaN(e)},string:c,boolean:function(e){return o(e)===Boolean},function:function(e){return o(e)===Function},array:u,nodeList:f,element:function(e){return l(e,Element)},event:function(e){return l(e,Event)},empty:function(e){return d(e)||(c(e)||u(e)||f(e))&&!e.length||h(e)&&!Object.keys(e).length}};function p(e,t){if(1>t){var i=function(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}(t);return parseFloat(e.toFixed(i))}return Math.round(e/t)*t}var g=function(){function e(t,i){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),m.element(t)?this.element=t:m.string(t)&&(this.element=document.querySelector(t)),m.element(this.element)&&m.empty(this.element.rangeTouch)&&(this.config=n({},a,{},i),this.init())}return function(e,i,s){i&&t(e.prototype,i),s&&t(e,s)}(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(e){var t=this,i=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(e){t.element[i](e,(function(e){return t.set(e)}),!1)}))}},{key:"get",value:function(t){if(!e.enabled||!m.event(t))return null;var i,s=t.target,r=t.changedTouches[0],n=parseFloat(s.getAttribute("min"))||0,a=parseFloat(s.getAttribute("max"))||100,o=parseFloat(s.getAttribute("step"))||1,l=s.getBoundingClientRect(),d=100/l.width*(this.config.thumbWidth/2)/100;return 0>(i=100/l.width*(r.clientX-l.left))?i=0:100<i&&(i=100),50>i?i-=(100-2*i)*d:50<i&&(i+=2*(i-50)*d),n+p(i/100*(a-n),o)}},{key:"set",value:function(t){e.enabled&&m.event(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),function(e,t){if(e&&t){var i=new Event(t,{bubbles:!0});e.dispatchEvent(i)}}(t.target,"touchend"===t.type?"change":"input"))}}],[{key:"setup",value:function(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},s=null;if(m.empty(t)||m.string(t)?s=Array.from(document.querySelectorAll(m.string(t)?t:'input[type="range"]')):m.element(t)?s=[t]:m.nodeList(t)?s=Array.from(t):m.array(t)&&(s=t.filter(m.element)),m.empty(s))return null;var r=n({},a,{},i);if(m.string(t)&&r.watch){var o=new MutationObserver((function(i){Array.from(i).forEach((function(i){Array.from(i.addedNodes).forEach((function(i){m.element(i)&&function(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}(i,t)&&new e(i,r)}))}))}));o.observe(document.body,{childList:!0,subtree:!0})}return s.map((function(t){return new e(t,i)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}();const y=e=>null!=e?e.constructor:null,_=(e,t)=>Boolean(e&&t&&e instanceof t),v=e=>null==e,b=e=>y(e)===Object,w=e=>y(e)===String,T=e=>"function"==typeof e,M=e=>Array.isArray(e),S=e=>_(e,NodeList),L=e=>v(e)||(w(e)||M(e)||S(e))&&!e.length||b(e)&&!Object.keys(e).length;var k={nullOrUndefined:v,object:b,number:e=>y(e)===Number&&!Number.isNaN(e),string:w,boolean:e=>y(e)===Boolean,function:T,array:M,weakMap:e=>_(e,WeakMap),nodeList:S,element:e=>null!==e&&"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument,textNode:e=>y(e)===Text,event:e=>_(e,Event),keyboardEvent:e=>_(e,KeyboardEvent),cue:e=>_(e,window.TextTrackCue)||_(e,window.VTTCue),track:e=>_(e,TextTrack)||!v(e)&&w(e.kind),promise:e=>_(e,Promise)&&T(e.then),url:e=>{if(_(e,window.URL))return!0;if(!w(e))return!1;let t=e;e.startsWith("http://")&&e.startsWith("https://")||(t=`http://${e}`);try{return!L(new URL(t).hostname)}catch(e){return!1}},empty:L};const E=(()=>{const e=document.createElement("span"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},i=Object.keys(t).find((t=>void 0!==e.style[t]));return!!k.string(i)&&t[i]})();function D(e,t){setTimeout((()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch(e){}}),t)}var x={isIE:Boolean(window.document.documentMode),isEdge:/Edge/g.test(navigator.userAgent),isWebKit:"WebkitAppearance"in document.documentElement.style&&!/Edge/g.test(navigator.userAgent),isIPhone:/iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1,isIPadOS:"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,isIos:/iPad|iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1};function A(e,t){return t.split(".").reduce(((e,t)=>e&&e[t]),e)}function P(e={},...t){if(!t.length)return e;const i=t.shift();return k.object(i)?(Object.keys(i).forEach((t=>{k.object(i[t])?(Object.keys(e).includes(t)||Object.assign(e,{[t]:{}}),P(e[t],i[t])):Object.assign(e,{[t]:i[t]})})),P(e,...t)):e}function C(e,t){const i=e.length?e:[e];Array.from(i).reverse().forEach(((e,i)=>{const s=i>0?t.cloneNode(!0):t,r=e.parentNode,n=e.nextSibling;s.appendChild(e),n?r.insertBefore(s,n):r.appendChild(s)}))}function I(e,t){k.element(e)&&!k.empty(t)&&Object.entries(t).filter((([,e])=>!k.nullOrUndefined(e))).forEach((([t,i])=>e.setAttribute(t,i)))}function R(e,t,i){const s=document.createElement(e);return k.object(t)&&I(s,t),k.string(i)&&(s.innerText=i),s}function O(e,t,i,s){k.element(t)&&t.appendChild(R(e,i,s))}function Y(e){k.nodeList(e)||k.array(e)?Array.from(e).forEach(Y):k.element(e)&&k.element(e.parentNode)&&e.parentNode.removeChild(e)}function F(e){if(!k.element(e))return;let{length:t}=e.childNodes;for(;t>0;)e.removeChild(e.lastChild),t-=1}function $(e,t){return k.element(t)&&k.element(t.parentNode)&&k.element(e)?(t.parentNode.replaceChild(e,t),e):null}function N(e,t){if(!k.string(e)||k.empty(e))return{};const i={},s=P({},t);return e.split(",").forEach((e=>{const t=e.trim(),r=t.replace(".",""),n=t.replace(/[[\]]/g,"").split("="),[a]=n,o=n.length>1?n[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":k.string(s.class)?i.class=`${s.class} ${r}`:i.class=r;break;case"#":i.id=t.replace("#","");break;case"[":i[a]=o}})),P(s,i)}function B(e,t){if(!k.element(e))return;let i=t;k.boolean(i)||(i=!e.hidden),e.hidden=i}function H(e,t,i){if(k.nodeList(e))return Array.from(e).map((e=>H(e,t,i)));if(k.element(e)){let s="toggle";return void 0!==i&&(s=i?"add":"remove"),e.classList[s](t),e.classList.contains(t)}return!1}function j(e,t){return k.element(e)&&e.classList.contains(t)}function U(e,t){const{prototype:i}=Element;return(i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(){return Array.from(document.querySelectorAll(t)).includes(this)}).call(e,t)}function V(e){return this.elements.container.querySelectorAll(e)}function G(e){return this.elements.container.querySelector(e)}function z(e=null,t=!1){k.element(e)&&e.focus({preventScroll:!0,focusVisible:t})}const W={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},q={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,t){const i=q[e]||"html5"!==t;return{api:i,ui:i&&q.rangeInput}},pip:!(x.isIPhone||!k.function(R("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||R("video").disablePictureInPicture)),airplay:k.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(k.empty(e))return!1;const[t]=e.split("/");let i=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(W).includes(i)&&(i+=`; codecs="${W[e]}"`);try{return Boolean(i&&this.media.canPlayType(i).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range","range"===e.type})(),touch:"ontouchstart"in document.documentElement,transitions:!1!==E,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},K=(()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get:()=>(e=!0,null)});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e})();function J(e,t,i,s=!1,r=!0,n=!1){if(!e||!("addEventListener"in e)||k.empty(t)||!k.function(i))return;const a=t.split(" ");let o=n;K&&(o={passive:r,capture:n}),a.forEach((t=>{this&&this.eventListeners&&s&&this.eventListeners.push({element:e,type:t,callback:i,options:o}),e[s?"addEventListener":"removeEventListener"](t,i,o)}))}function X(e,t="",i,s=!0,r=!1){J.call(this,e,t,i,!0,s,r)}function Q(e,t="",i,s=!0,r=!1){J.call(this,e,t,i,!1,s,r)}function Z(e,t="",i,s=!0,r=!1){const n=(...a)=>{Q(e,t,n,s,r),i.apply(this,a)};J.call(this,e,t,n,!0,s,r)}function ee(e,t="",i=!1,s={}){if(!k.element(e)||k.empty(t))return;const r=new CustomEvent(t,{bubbles:i,detail:{...s,plyr:this}});e.dispatchEvent(r)}function te(){this&&this.eventListeners&&(this.eventListeners.forEach((e=>{const{element:t,type:i,callback:s,options:r}=e;t.removeEventListener(i,s,r)})),this.eventListeners=[])}function ie(){return new Promise((e=>this.ready?setTimeout(e,0):X.call(this,this.elements.container,"ready",e))).then((()=>{}))}function se(e){k.promise(e)&&e.then(null,(()=>{}))}function re(e){return k.array(e)?e.filter(((t,i)=>e.indexOf(t)===i)):e}function ne(e,t){return k.array(e)&&e.length?e.reduce(((e,i)=>Math.abs(i-t)<Math.abs(e-t)?i:e)):null}function ae(e){return!(!window||!window.CSS)&&window.CSS.supports(e)}const oe=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce(((e,[t,i])=>({...e,[t/i]:[t,i]})),{});function le(e){return!!(k.array(e)||k.string(e)&&e.includes(":"))&&(k.array(e)?e:e.split(":")).map(Number).every(k.number)}function de(e){if(!k.array(e)||!e.every(k.number))return null;const[t,i]=e,s=(e,t)=>0===t?e:s(t,e%t),r=s(t,i);return[t/r,i/r]}function he(e){const t=e=>le(e)?e.split(":").map(Number):null;let i=t(e);if(null===i&&(i=t(this.config.ratio)),null===i&&!k.empty(this.embed)&&k.array(this.embed.ratio)&&({ratio:i}=this.embed),null===i&&this.isHTML5){const{videoWidth:e,videoHeight:t}=this.media;i=[e,t]}return de(i)}function ce(e){if(!this.isVideo)return{};const{wrapper:t}=this.elements,i=he.call(this,e);if(!k.array(i))return{};const[s,r]=de(i),n=100/s*r;if(ae(`aspect-ratio: ${s}/${r}`)?t.style.aspectRatio=`${s}/${r}`:t.style.paddingBottom=`${n}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const e=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),i=(e-n)/(e/50);this.fullscreen.active?t.style.paddingBottom=null:this.media.style.transform=`translateY(-${i}%)`}else this.isHTML5&&t.classList.add(this.config.classNames.videoFixedRatio);return{padding:n,ratio:i}}function ue(e,t,i=.05){const s=e/t,r=ne(Object.keys(oe),s);return Math.abs(r-s)<=i?oe[r]:[e,t]}const fe={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((e=>{const t=e.getAttribute("type");return!!k.empty(t)||q.mime.call(this,t)})):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:fe.getSources.call(this).map((e=>Number(e.getAttribute("size")))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,k.empty(this.config.ratio)||ce.call(e),Object.defineProperty(e.media,"quality",{get(){const t=fe.getSources.call(e).find((t=>t.getAttribute("src")===e.source));return t&&Number(t.getAttribute("size"))},set(t){if(e.quality!==t){if(e.config.quality.forced&&k.function(e.config.quality.onChange))e.config.quality.onChange(t);else{const i=fe.getSources.call(e).find((e=>Number(e.getAttribute("size"))===t));if(!i)return;const{currentTime:s,paused:r,preload:n,readyState:a,playbackRate:o}=e.media;e.media.src=i.getAttribute("src"),("none"!==n||a)&&(e.once("loadedmetadata",(()=>{e.speed=o,e.currentTime=s,r||se(e.play())})),e.media.load())}ee.call(e,e.media,"qualitychange",!1,{quality:t})}}})},cancelRequests(){this.isHTML5&&(Y(fe.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function me(e,...t){return k.empty(e)?e:e.toString().replace(/{(\d+)}/g,((e,i)=>t[i].toString()))}const pe=(e="",t="",i="")=>e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),i.toString()),ge=(e="")=>e.toString().replace(/\w\S*/g,(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()));function ye(e=""){let t=e.toString();return t=function(e=""){let t=e.toString();return t=pe(t,"-"," "),t=pe(t,"_"," "),t=ge(t),pe(t," ","")}(t),t.charAt(0).toLowerCase()+t.slice(1)}function _e(e){const t=document.createElement("div");return t.appendChild(e),t.innerHTML}const ve={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},be={get(e="",t={}){if(k.empty(e)||k.empty(t))return"";let i=A(t.i18n,e);if(k.empty(i))return Object.keys(ve).includes(e)?ve[e]:"";const s={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(s).forEach((([e,t])=>{i=pe(i,e,t)})),i}};class we{constructor(t){e(this,"get",(e=>{if(!we.supported||!this.enabled)return null;const t=window.localStorage.getItem(this.key);if(k.empty(t))return null;const i=JSON.parse(t);return k.string(e)&&e.length?i[e]:i})),e(this,"set",(e=>{if(!we.supported||!this.enabled)return;if(!k.object(e))return;let t=this.get();k.empty(t)&&(t={}),P(t,e);try{window.localStorage.setItem(this.key,JSON.stringify(t))}catch(e){}})),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const e="___test";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}}function Te(e,t="text"){return new Promise(((i,s)=>{try{const s=new XMLHttpRequest;if(!("withCredentials"in s))return;s.addEventListener("load",(()=>{if("text"===t)try{i(JSON.parse(s.responseText))}catch(e){i(s.responseText)}else i(s.response)})),s.addEventListener("error",(()=>{throw new Error(s.status)})),s.open("GET",e,!0),s.responseType=t,s.send()}catch(e){s(e)}}))}function Me(e,t){if(!k.string(e))return;const i="cache",s=k.string(t);let r=!1;const n=()=>null!==document.getElementById(t),a=(e,t)=>{e.innerHTML=t,s&&n()||document.body.insertAdjacentElement("afterbegin",e)};if(!s||!n()){const n=we.supported,o=document.createElement("div");if(o.setAttribute("hidden",""),s&&o.setAttribute("id",t),n){const e=window.localStorage.getItem(`${i}-${t}`);if(r=null!==e,r){const t=JSON.parse(e);a(o,t.content)}}Te(e).then((e=>{if(!k.empty(e)){if(n)try{window.localStorage.setItem(`${i}-${t}`,JSON.stringify({content:e}))}catch(e){}a(o,e)}})).catch((()=>{}))}}const Se=e=>Math.trunc(e/60/60%60,10),Le=e=>Math.trunc(e/60%60,10),ke=e=>Math.trunc(e%60,10);function Ee(e=0,t=!1,i=!1){if(!k.number(e))return Ee(void 0,t,i);const s=e=>`0${e}`.slice(-2);let r=Se(e);const n=Le(e),a=ke(e);return r=t||r>0?`${r}:`:"",`${i&&e>0?"-":""}${r}${s(n)}:${s(a)}`}const De={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),t=window.location.host?window.location.host:window.top.location.host,i=e.host!==t||x.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:i}},findElements(){try{return this.elements.controls=G.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:V.call(this,this.config.selectors.buttons.play),pause:G.call(this,this.config.selectors.buttons.pause),restart:G.call(this,this.config.selectors.buttons.restart),rewind:G.call(this,this.config.selectors.buttons.rewind),fastForward:G.call(this,this.config.selectors.buttons.fastForward),mute:G.call(this,this.config.selectors.buttons.mute),pip:G.call(this,this.config.selectors.buttons.pip),airplay:G.call(this,this.config.selectors.buttons.airplay),settings:G.call(this,this.config.selectors.buttons.settings),captions:G.call(this,this.config.selectors.buttons.captions),fullscreen:G.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=G.call(this,this.config.selectors.progress),this.elements.inputs={seek:G.call(this,this.config.selectors.inputs.seek),volume:G.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:G.call(this,this.config.selectors.display.buffer),currentTime:G.call(this,this.config.selectors.display.currentTime),duration:G.call(this,this.config.selectors.display.duration)},k.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,t){const i="http://www.w3.org/2000/svg",s=De.getIconUrl.call(this),r=`${s.cors?"":s.url}#${this.config.iconPrefix}`,n=document.createElementNS(i,"svg");I(n,P(t,{"aria-hidden":"true",focusable:"false"}));const a=document.createElementNS(i,"use"),o=`${r}-${e}`;return"href"in a&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",o),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),n.appendChild(a),n},createLabel(e,t={}){const i=be.get(e,this.config);return R("span",{...t,class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")},i)},createBadge(e){if(k.empty(e))return null;const t=R("span",{class:this.config.classNames.menu.value});return t.appendChild(R("span",{class:this.config.classNames.menu.badge},e)),t},createButton(e,t){const i=P({},t);let s=ye(e);const r={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((e=>{Object.keys(i).includes(e)&&(r[e]=i[e],delete i[e])})),"button"!==r.element||Object.keys(i).includes("type")||(i.type="button"),Object.keys(i).includes("class")?i.class.split(" ").some((e=>e===this.config.classNames.control))||P(i,{class:`${i.class} ${this.config.classNames.control}`}):i.class=this.config.classNames.control,e){case"play":r.toggle=!0,r.label="play",r.labelPressed="pause",r.icon="play",r.iconPressed="pause";break;case"mute":r.toggle=!0,r.label="mute",r.labelPressed="unmute",r.icon="volume",r.iconPressed="muted";break;case"captions":r.toggle=!0,r.label="enableCaptions",r.labelPressed="disableCaptions",r.icon="captions-off",r.iconPressed="captions-on";break;case"fullscreen":r.toggle=!0,r.label="enterFullscreen",r.labelPressed="exitFullscreen",r.icon="enter-fullscreen",r.iconPressed="exit-fullscreen";break;case"play-large":i.class+=` ${this.config.classNames.control}--overlaid`,s="play",r.label="play",r.icon="play";break;default:k.empty(r.label)&&(r.label=s),k.empty(r.icon)&&(r.icon=e)}const n=R(r.element);return r.toggle?(n.appendChild(De.createIcon.call(this,r.iconPressed,{class:"icon--pressed"})),n.appendChild(De.createIcon.call(this,r.icon,{class:"icon--not-pressed"})),n.appendChild(De.createLabel.call(this,r.labelPressed,{class:"label--pressed"})),n.appendChild(De.createLabel.call(this,r.label,{class:"label--not-pressed"}))):(n.appendChild(De.createIcon.call(this,r.icon)),n.appendChild(De.createLabel.call(this,r.label))),P(i,N(this.config.selectors.buttons[s],i)),I(n,i),"play"===s?(k.array(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(n)):this.elements.buttons[s]=n,n},createRange(e,t){const i=R("input",P(N(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":be.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=i,De.updateRangeFill.call(this,i),g.setup(i),i},createProgress(e,t){const i=R("progress",P(N(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){i.appendChild(R("span",null,"0"));const t={played:"played",buffer:"buffered"}[e],s=t?be.get(t,this.config):"";i.innerText=`% ${s.toLowerCase()}`}return this.elements.display[e]=i,i},createTime(e,t){const i=N(this.config.selectors.display[e],t),s=R("div",P(i,{class:`${i.class?i.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":be.get(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=s,s},bindMenuItemShortcuts(e,t){X.call(this,e,"keydown keyup",(i=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(i.key))return;if(i.preventDefault(),i.stopPropagation(),"keydown"===i.type)return;const s=U(e,'[role="menuitemradio"]');if(!s&&[" ","ArrowRight"].includes(i.key))De.showMenuPanel.call(this,t,!0);else{let t;" "!==i.key&&("ArrowDown"===i.key||s&&"ArrowRight"===i.key?(t=e.nextElementSibling,k.element(t)||(t=e.parentNode.firstElementChild)):(t=e.previousElementSibling,k.element(t)||(t=e.parentNode.lastElementChild)),z.call(this,t,!0))}}),!1),X.call(this,e,"keyup",(e=>{"Return"===e.key&&De.focusFirstMenuItem.call(this,null,!0)}))},createMenuItem({value:e,list:t,type:i,title:s,badge:r=null,checked:n=!1}){const a=N(this.config.selectors.inputs[i]),o=R("button",P(a,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${a.class?a.class:""}`.trim(),"aria-checked":n,value:e})),l=R("span");l.innerHTML=s,k.element(r)&&l.appendChild(r),o.appendChild(l),Object.defineProperty(o,"checked",{enumerable:!0,get:()=>"true"===o.getAttribute("aria-checked"),set(e){e&&Array.from(o.parentNode.children).filter((e=>U(e,'[role="menuitemradio"]'))).forEach((e=>e.setAttribute("aria-checked","false"))),o.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(o,"click keyup",(t=>{if(!k.keyboardEvent(t)||" "===t.key){switch(t.preventDefault(),t.stopPropagation(),o.checked=!0,i){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=parseFloat(e)}De.showMenuPanel.call(this,"home",k.keyboardEvent(t))}}),i,!1),De.bindMenuItemShortcuts.call(this,o,i),t.appendChild(o)},formatTime(e=0,t=!1){return k.number(e)?Ee(e,Se(this.duration)>0,t):e},updateTimeDisplay(e=null,t=0,i=!1){k.element(e)&&k.number(t)&&(e.innerText=De.formatTime(t,i))},updateVolume(){this.supported.ui&&(k.element(this.elements.inputs.volume)&&De.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),k.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange(e,t=0){k.element(e)&&(e.value=t,De.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!k.event(e))return;let t=0;const i=(e,t)=>{const i=k.number(t)?t:0,s=k.element(e)?e:this.elements.display.buffer;if(k.element(s)){s.value=i;const e=s.getElementsByTagName("span")[0];k.element(e)&&(e.childNodes[0].nodeValue=i)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":s=this.currentTime,r=this.duration,t=0===s||0===r||Number.isNaN(s)||Number.isNaN(r)?0:(s/r*100).toFixed(2),"timeupdate"===e.type&&De.setRange.call(this,this.elements.inputs.seek,t);break;case"playing":case"progress":i(this.elements.display.buffer,100*this.buffered)}var s,r},updateRangeFill(e){const t=k.event(e)?e.target:e;if(k.element(t)&&"range"===t.getAttribute("type")){if(U(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);const e=De.formatTime(this.currentTime),i=De.formatTime(this.duration),s=be.get("seekLabel",this.config);t.setAttribute("aria-valuetext",s.replace("{currentTime}",e).replace("{duration}",i))}else if(U(t,this.config.selectors.inputs.volume)){const e=100*t.value;t.setAttribute("aria-valuenow",e),t.setAttribute("aria-valuetext",`${e.toFixed(1)}%`)}else t.setAttribute("aria-valuenow",t.value);(x.isWebKit||x.isIPadOS)&&t.style.setProperty("--value",t.value/t.max*100+"%")}},updateSeekTooltip(e){var t,i;if(!this.config.tooltips.seek||!k.element(this.elements.inputs.seek)||!k.element(this.elements.display.seekTooltip)||0===this.duration)return;const s=this.elements.display.seekTooltip,r=`${this.config.classNames.tooltip}--visible`,n=e=>H(s,r,e);if(this.touch)return void n(!1);let a=0;const o=this.elements.progress.getBoundingClientRect();if(k.event(e))a=100/o.width*(e.pageX-o.left);else{if(!j(s,r))return;a=parseFloat(s.style.left,10)}a<0?a=0:a>100&&(a=100);const l=this.duration/100*a;s.innerText=De.formatTime(l);const d=null===(t=this.config.markers)||void 0===t||null===(i=t.points)||void 0===i?void 0:i.find((({time:e})=>e===Math.round(l)));d&&s.insertAdjacentHTML("afterbegin",`${d.label}<br>`),s.style.left=`${a}%`,k.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&n("mouseenter"===e.type)},timeUpdate(e){const t=!k.element(this.elements.display.duration)&&this.config.invertTime;De.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||De.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return B(this.elements.display.currentTime,!0),void B(this.elements.progress,!0);k.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=k.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&De.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&De.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&De.setMarkers.call(this),De.updateSeekTooltip.call(this)},toggleMenuButton(e,t){B(this.elements.settings.buttons[e],!t)},updateSetting(e,t,i){const s=this.elements.settings.panels[e];let r=null,n=t;if("captions"===e)r=this.currentTrack;else{if(r=k.empty(i)?this[e]:i,k.empty(r)&&(r=this.config[e].default),!k.empty(this.options[e])&&!this.options[e].includes(r))return void this.debug.warn(`Unsupported value of '${r}' for ${e}`);if(!this.config[e].options.includes(r))return void this.debug.warn(`Disabled value of '${r}' for ${e}`)}if(k.element(n)||(n=s&&s.querySelector('[role="menu"]')),!k.element(n))return;this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=De.getLabel.call(this,e,r);const a=n&&n.querySelector(`[value="${r}"]`);k.element(a)&&(a.checked=!0)},getLabel(e,t){switch(e){case"speed":return 1===t?be.get("normal",this.config):`${t}×`;case"quality":if(k.number(t)){const e=be.get(`qualityLabel.${t}`,this.config);return e.length?e:`${t}p`}return ge(t);case"captions":return Pe.getLabel.call(this);default:return null}},setQualityMenu(e){if(!k.element(this.elements.settings.panels.quality))return;const t="quality",i=this.elements.settings.panels.quality.querySelector('[role="menu"]');k.array(e)&&(this.options.quality=re(e).filter((e=>this.config.quality.options.includes(e))));const s=!k.empty(this.options.quality)&&this.options.quality.length>1;if(De.toggleMenuButton.call(this,t,s),F(i),De.checkMenu.call(this),!s)return;const r=e=>{const t=be.get(`qualityBadge.${e}`,this.config);return t.length?De.createBadge.call(this,t):null};this.options.quality.sort(((e,t)=>{const i=this.config.quality.options;return i.indexOf(e)>i.indexOf(t)?1:-1})).forEach((e=>{De.createMenuItem.call(this,{value:e,list:i,type:t,title:De.getLabel.call(this,"quality",e),badge:r(e)})})),De.updateSetting.call(this,t,i)},setCaptionsMenu(){if(!k.element(this.elements.settings.panels.captions))return;const e="captions",t=this.elements.settings.panels.captions.querySelector('[role="menu"]'),i=Pe.getTracks.call(this),s=Boolean(i.length);if(De.toggleMenuButton.call(this,e,s),F(t),De.checkMenu.call(this),!s)return;const r=i.map(((e,i)=>({value:i,checked:this.captions.toggled&&this.currentTrack===i,title:Pe.getLabel.call(this,e),badge:e.language&&De.createBadge.call(this,e.language.toUpperCase()),list:t,type:"language"})));r.unshift({value:-1,checked:!this.captions.toggled,title:be.get("disabled",this.config),list:t,type:"language"}),r.forEach(De.createMenuItem.bind(this)),De.updateSetting.call(this,e,t)},setSpeedMenu(){if(!k.element(this.elements.settings.panels.speed))return;const e="speed",t=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((e=>e>=this.minimumSpeed&&e<=this.maximumSpeed));const i=!k.empty(this.options.speed)&&this.options.speed.length>1;De.toggleMenuButton.call(this,e,i),F(t),De.checkMenu.call(this),i&&(this.options.speed.forEach((i=>{De.createMenuItem.call(this,{value:i,list:t,type:e,title:De.getLabel.call(this,"speed",i)})})),De.updateSetting.call(this,e,t))},checkMenu(){const{buttons:e}=this.elements.settings,t=!k.empty(e)&&Object.values(e).some((e=>!e.hidden));B(this.elements.settings.menu,!t)},focusFirstMenuItem(e,t=!1){if(this.elements.settings.popup.hidden)return;let i=e;k.element(i)||(i=Object.values(this.elements.settings.panels).find((e=>!e.hidden)));const s=i.querySelector('[role^="menuitem"]');z.call(this,s,t)},toggleMenu(e){const{popup:t}=this.elements.settings,i=this.elements.buttons.settings;if(!k.element(t)||!k.element(i))return;const{hidden:s}=t;let r=s;if(k.boolean(e))r=e;else if(k.keyboardEvent(e)&&"Escape"===e.key)r=!1;else if(k.event(e)){const s=k.function(e.composedPath)?e.composedPath()[0]:e.target,n=t.contains(s);if(n||!n&&e.target!==i&&r)return}i.setAttribute("aria-expanded",r),B(t,!r),H(this.elements.container,this.config.classNames.menu.open,r),r&&k.keyboardEvent(e)?De.focusFirstMenuItem.call(this,null,!0):r||s||z.call(this,i,k.keyboardEvent(e))},getMenuSize(e){const t=e.cloneNode(!0);t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),e.parentNode.appendChild(t);const i=t.scrollWidth,s=t.scrollHeight;return Y(t),{width:i,height:s}},showMenuPanel(e="",t=!1){const i=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!k.element(i))return;const s=i.parentNode,r=Array.from(s.children).find((e=>!e.hidden));if(q.transitions&&!q.reducedMotion){s.style.width=`${r.scrollWidth}px`,s.style.height=`${r.scrollHeight}px`;const e=De.getMenuSize.call(this,i),t=e=>{e.target===s&&["width","height"].includes(e.propertyName)&&(s.style.width="",s.style.height="",Q.call(this,s,E,t))};X.call(this,s,E,t),s.style.width=`${e.width}px`,s.style.height=`${e.height}px`}B(r,!0),B(i,!1),De.focusFirstMenuItem.call(this,i,t)},setDownloadUrl(){const e=this.elements.buttons.download;k.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:t,createButton:i,createProgress:s,createRange:r,createTime:n,setQualityMenu:a,setSpeedMenu:o,showMenuPanel:l}=De;this.elements.controls=null,k.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(i.call(this,"play-large"));const d=R("div",N(this.config.selectors.controls.wrapper));this.elements.controls=d;const h={class:"plyr__controls__item"};return re(k.array(this.config.controls)?this.config.controls:[]).forEach((a=>{if("restart"===a&&d.appendChild(i.call(this,"restart",h)),"rewind"===a&&d.appendChild(i.call(this,"rewind",h)),"play"===a&&d.appendChild(i.call(this,"play",h)),"fast-forward"===a&&d.appendChild(i.call(this,"fast-forward",h)),"progress"===a){const t=R("div",{class:`${h.class} plyr__progress__container`}),i=R("div",N(this.config.selectors.progress));if(i.appendChild(r.call(this,"seek",{id:`plyr-seek-${e.id}`})),i.appendChild(s.call(this,"buffer")),this.config.tooltips.seek){const e=R("span",{class:this.config.classNames.tooltip},"00:00");i.appendChild(e),this.elements.display.seekTooltip=e}this.elements.progress=i,t.appendChild(this.elements.progress),d.appendChild(t)}if("current-time"===a&&d.appendChild(n.call(this,"currentTime",h)),"duration"===a&&d.appendChild(n.call(this,"duration",h)),"mute"===a||"volume"===a){let{volume:t}=this.elements;if(k.element(t)&&d.contains(t)||(t=R("div",P({},h,{class:`${h.class} plyr__volume`.trim()})),this.elements.volume=t,d.appendChild(t)),"mute"===a&&t.appendChild(i.call(this,"mute")),"volume"===a&&!x.isIos&&!x.isIPadOS){const i={max:1,step:.05,value:this.config.volume};t.appendChild(r.call(this,"volume",P(i,{id:`plyr-volume-${e.id}`})))}}if("captions"===a&&d.appendChild(i.call(this,"captions",h)),"settings"===a&&!k.empty(this.config.settings)){const s=R("div",P({},h,{class:`${h.class} plyr__menu`.trim(),hidden:""}));s.appendChild(i.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const r=R("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),n=R("div"),a=R("div",{id:`plyr-settings-${e.id}-home`}),o=R("div",{role:"menu"});a.appendChild(o),n.appendChild(a),this.elements.settings.panels.home=a,this.config.settings.forEach((i=>{const s=R("button",P(N(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));t.call(this,s,i),X.call(this,s,"click",(()=>{l.call(this,i,!1)}));const r=R("span",null,be.get(i,this.config)),a=R("span",{class:this.config.classNames.menu.value});a.innerHTML=e[i],r.appendChild(a),s.appendChild(r),o.appendChild(s);const d=R("div",{id:`plyr-settings-${e.id}-${i}`,hidden:""}),h=R("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});h.appendChild(R("span",{"aria-hidden":!0},be.get(i,this.config))),h.appendChild(R("span",{class:this.config.classNames.hidden},be.get("menuBack",this.config))),X.call(this,d,"keydown",(e=>{"ArrowLeft"===e.key&&(e.preventDefault(),e.stopPropagation(),l.call(this,"home",!0))}),!1),X.call(this,h,"click",(()=>{l.call(this,"home",!1)})),d.appendChild(h),d.appendChild(R("div",{role:"menu"})),n.appendChild(d),this.elements.settings.buttons[i]=s,this.elements.settings.panels[i]=d})),r.appendChild(n),s.appendChild(r),d.appendChild(s),this.elements.settings.popup=r,this.elements.settings.menu=s}if("pip"===a&&q.pip&&d.appendChild(i.call(this,"pip",h)),"airplay"===a&&q.airplay&&d.appendChild(i.call(this,"airplay",h)),"download"===a){const e=P({},h,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(e.download="");const{download:t}=this.config.urls;!k.url(t)&&this.isEmbed&&P(e,{icon:`logo-${this.provider}`,label:this.provider}),d.appendChild(i.call(this,"download",e))}"fullscreen"===a&&d.appendChild(i.call(this,"fullscreen",h))})),this.isHTML5&&a.call(this,fe.getQualityOptions.call(this)),o.call(this),d},inject(){if(this.config.loadSprite){const e=De.getIconUrl.call(this);e.cors&&Me(e.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let e=null;this.elements.controls=null;const t={id:this.id,seektime:this.config.seekTime,title:this.config.title};let i,s=!0;if(k.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,t)),this.config.controls||(this.config.controls=[]),k.element(this.config.controls)||k.string(this.config.controls)?e=this.config.controls:(e=De.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Pe.getLabel.call(this)}),s=!1),s&&k.string(this.config.controls)&&(e=(e=>{let i=e;return Object.entries(t).forEach((([e,t])=>{i=pe(i,`{${e}}`,t)})),i})(e)),k.string(this.config.selectors.controls.container)&&(i=document.querySelector(this.config.selectors.controls.container)),k.element(i)||(i=this.elements.container),i[k.element(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),k.element(this.elements.controls)||De.findElements.call(this),!k.empty(this.elements.buttons)){const e=e=>{const t=this.config.classNames.controlPressed;e.setAttribute("aria-pressed","false"),Object.defineProperty(e,"pressed",{configurable:!0,enumerable:!0,get:()=>j(e,t),set(i=!1){H(e,t,i),e.setAttribute("aria-pressed",i?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach((t=>{k.array(t)||k.nodeList(t)?Array.from(t).filter(Boolean).forEach(e):e(t)}))}if(x.isEdge&&D(i),this.config.tooltips.controls){const{classNames:e,selectors:t}=this.config,i=`${t.controls.wrapper} ${t.labels} .${e.hidden}`,s=V.call(this,i);Array.from(s).forEach((e=>{H(e,this.config.classNames.hidden,!1),H(e,this.config.classNames.tooltip,!0)}))}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch(e){}},setMarkers(){var e,t;if(!this.duration||this.elements.markers)return;const i=null===(e=this.config.markers)||void 0===e||null===(t=e.points)||void 0===t?void 0:t.filter((({time:e})=>e>0&&e<this.duration));if(null==i||!i.length)return;const s=document.createDocumentFragment(),r=document.createDocumentFragment();let n=null;const a=`${this.config.classNames.tooltip}--visible`,o=e=>H(n,a,e);i.forEach((e=>{const t=R("span",{class:this.config.classNames.marker},""),i=e.time/this.duration*100+"%";n&&(t.addEventListener("mouseenter",(()=>{e.label||(n.style.left=i,n.innerHTML=e.label,o(!0))})),t.addEventListener("mouseleave",(()=>{o(!1)}))),t.addEventListener("click",(()=>{this.currentTime=e.time})),t.style.left=i,r.appendChild(t)})),s.appendChild(r),this.config.tooltips.seek||(n=R("span",{class:this.config.classNames.tooltip},""),s.appendChild(n)),this.elements.markers={points:r,tip:n},this.elements.progress.appendChild(s)}};function xe(e,t=!0){let i=e;if(t){const e=document.createElement("a");e.href=i,i=e.href}try{return new URL(i)}catch(e){return null}}function Ae(e){const t=new URLSearchParams;return k.object(e)&&Object.entries(e).forEach((([e,i])=>{t.set(e,i)})),t}const Pe={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!q.textTracks)return void(k.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&De.setCaptionsMenu.call(this));var e,t;if(k.element(this.elements.captions)||(this.elements.captions=R("div",N(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),e=this.elements.captions,t=this.elements.wrapper,k.element(e)&&k.element(t)&&t.parentNode.insertBefore(e,t.nextSibling)),x.isIE&&window.URL){const e=this.media.querySelectorAll("track");Array.from(e).forEach((e=>{const t=e.getAttribute("src"),i=xe(t);null!==i&&i.hostname!==window.location.href.hostname&&["http:","https:"].includes(i.protocol)&&Te(t,"blob").then((t=>{e.setAttribute("src",window.URL.createObjectURL(t))})).catch((()=>{Y(e)}))}))}const i=re((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((e=>e.split("-")[0])));let s=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===s&&([s]=i);let r=this.storage.get("captions");if(k.boolean(r)||({active:r}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:r,language:s,languages:i}),this.isHTML5){const e=this.config.captions.update?"addtrack removetrack":"removetrack";X.call(this,this.media.textTracks,e,Pe.update.bind(this))}setTimeout(Pe.update.bind(this),0)},update(){const e=Pe.getTracks.call(this,!0),{active:t,language:i,meta:s,currentTrackNode:r}=this.captions,n=Boolean(e.find((e=>e.language===i)));this.isHTML5&&this.isVideo&&e.filter((e=>!s.get(e))).forEach((e=>{this.debug.log("Track added",e),s.set(e,{default:"showing"===e.mode}),"showing"===e.mode&&(e.mode="hidden"),X.call(this,e,"cuechange",(()=>Pe.updateCues.call(this)))})),(n&&this.language!==i||!e.includes(r))&&(Pe.setLanguage.call(this,i),Pe.toggle.call(this,t&&n)),this.elements&&H(this.elements.container,this.config.classNames.captions.enabled,!k.empty(e)),k.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&De.setCaptionsMenu.call(this)},toggle(e,t=!0){if(!this.supported.ui)return;const{toggled:i}=this.captions,s=this.config.classNames.captions.active,r=k.nullOrUndefined(e)?!i:e;if(r!==i){if(t||(this.captions.active=r,this.storage.set({captions:r})),!this.language&&r&&!t){const e=Pe.getTracks.call(this),t=Pe.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=t.language,void Pe.set.call(this,e.indexOf(t))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=r),H(this.elements.container,s,r),this.captions.toggled=r,De.updateSetting.call(this,"captions"),ee.call(this,this.media,r?"captionsenabled":"captionsdisabled")}setTimeout((()=>{r&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")}))},set(e,t=!0){const i=Pe.getTracks.call(this);if(-1!==e)if(k.number(e))if(e in i){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const s=i[e],{language:r}=s||{};this.captions.currentTrackNode=s,De.updateSetting.call(this,"captions"),t||(this.captions.language=r,this.storage.set({language:r})),this.isVimeo&&this.embed.enableTextTrack(r),ee.call(this,this.media,"languagechange")}Pe.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&Pe.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else Pe.toggle.call(this,!1,t)},setLanguage(e,t=!0){if(!k.string(e))return void this.debug.warn("Invalid language argument",e);const i=e.toLowerCase();this.captions.language=i;const s=Pe.getTracks.call(this),r=Pe.findTrack.call(this,[i]);Pe.set.call(this,s.indexOf(r),t)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter((t=>!this.isHTML5||e||this.captions.meta.has(t))).filter((e=>["captions","subtitles"].includes(e.kind)))},findTrack(e,t=!1){const i=Pe.getTracks.call(this),s=e=>Number((this.captions.meta.get(e)||{}).default),r=Array.from(i).sort(((e,t)=>s(t)-s(e)));let n;return e.every((e=>(n=r.find((t=>t.language===e)),!n))),n||(t?r[0]:void 0)},getCurrentTrack(){return Pe.getTracks.call(this)[this.currentTrack]},getLabel(e){let t=e;return!k.track(t)&&q.textTracks&&this.captions.toggled&&(t=Pe.getCurrentTrack.call(this)),k.track(t)?k.empty(t.label)?k.empty(t.language)?be.get("enabled",this.config):e.language.toUpperCase():t.label:be.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!k.element(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!k.nullOrUndefined(e)&&!Array.isArray(e))return void this.debug.warn("updateCues: Invalid input",e);let t=e;if(!t){const e=Pe.getCurrentTrack.call(this);t=Array.from((e||{}).activeCues||[]).map((e=>e.getCueAsHTML())).map(_e)}const i=t.map((e=>e.trim())).join("\n");if(i!==this.elements.captions.innerHTML){F(this.elements.captions);const e=R("span",N(this.config.selectors.caption));e.innerHTML=i,this.elements.captions.appendChild(e),ee.call(this,this.media,"cuechange")}}},Ce={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.7.8/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"S
2D"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},Ie="picture-in-picture",Re="inline",Oe={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Ye="audio",Fe="video",$e=()=>{};class Ne{constructor(e=!1){this.enabled=window.console&&e,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):$e}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):$e}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):$e}}class Be{constructor(t){e(this,"onChange",(()=>{if(!this.supported)return;const e=this.player.elements.buttons.fullscreen;
vendor: 54,538 bytes, line 2
2k.element(e)&&(e.pressed=this.active);const t=this.target===this.player.media?this.target:this.player.elements.container;ee.call(this.player,t,this.active?"enterfullscreen":"exitfullscreen",!0)})),e(this,"toggleFallback",((e=!1)=>{if(e?this.scrollPosition={x:window.scrollX??0,y:window.scrollY??0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=e?"hidden":"",H(this.target,this.player.config.classNames.fullscreen.fallback,e),x.isIos){let t=document.head.querySelector('meta[name="viewport"]');const i="viewport-fit=cover";t||(t=document.createElement("meta"),t.setAttribute("name","viewport"));const s=k.string(t.content)&&t.content.includes(i);e?(this.cleanupViewport=!s,s||(t.content+=`,${i}`)):this.cleanupViewport&&(t.content=t.content.split(",").filter((e=>e.trim()!==i)).join(","))}this.onChange()})),e(this,"trapFocus",(e=>{if(x.isIos||x.isIPadOS||!this.active||"Tab"!==e.key)return;const t=document.activeElement,i=V.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[s]=i,r=i[i.length-1];t!==r||e.shiftKey?t===s&&e.shiftKey&&(r.focus(),e.preventDefault()):(s.focus(),e.preventDefault())})),e(this,"update",(()=>{if(this.supported){let e;e=this.forceFallback?"Fallback (forced)":Be.nativeSupported?"Native":"Fallback",this.player.debug.log(`${e} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");H(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported)})),e(this,"enter",(()=>{this.supported&&(x.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!Be.nativeSupported||this.forceFallback?this.toggleFallback(!0):this.prefix?k.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))})),e(this,"exit",(()=>{if(this.supported)if(x.isIos&&this.player.config.fullscreen.iosNative)this.player.isVimeo?this.player.embed.exitFullscreen():this.target.webkitEnterFullscreen(),se(this.player.play());else if(!Be.nativeSupported||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!k.empty(this.prefix)){const e="moz"===this.prefix?"Cancel":"Exit";document[`${this.prefix}${e}${this.property}`]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)})),e(this,"toggle",(()=>{this.active?this.exit():this.enter()})),this.player=t,this.prefix=Be.prefix,this.property=Be.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===t.config.fullscreen.fallback,this.player.elements.fullscreen=t.config.fullscreen.container&&function(e,t){const{prototype:i}=Element;return(i.closest||function(){let e=this;do{if(U.matches(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}).call(e,t)}(this.player.elements.container,t.config.fullscreen.container),X.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":`${this.prefix}fullscreenchange`,(()=>{this.onChange()})),X.call(this.player,this.player.elements.container,"dblclick",(e=>{k.element(this.player.elements.controls)&&this.player.elements.controls.contains(e.target)||this.player.listeners.proxy(e,this.toggle,"fullscreen")})),X.call(this,this.player.elements.container,"keydown",(e=>this.trapFocus(e))),this.update()}static get nativeSupported(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get useNative(){return Be.nativeSupported&&!this.forceFallback}static get prefix(){if(k.function(document.exitFullscreen))return"";let e="";return["webkit","moz","ms"].some((t=>!(!k.function(document[`${t}ExitFullscreen`])&&!k.function(document[`${t}CancelFullScreen`])||(e=t,0)))),e}static get property(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}get supported(){return[this.player.config.fullscreen.enabled,this.player.isVideo,Be.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||Be.nativeSupported||!x.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}get active(){if(!this.supported)return!1;if(!Be.nativeSupported||this.forceFallback)return j(this.target,this.player.config.classNames.fullscreen.fallback);const e=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return e&&e.shadowRoot?e===this.target.getRootNode().host:e===this.target}get target(){return x.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen??this.player.elements.container}}function He(e,t=1){return new Promise(((i,s)=>{const r=new Image,n=()=>{delete r.onload,delete r.onerror,(r.naturalWidth>=t?i:s)(r)};Object.assign(r,{onload:n,onerror:n,src:e})}))}const je={addStyleHook(){H(this.elements.container,this.config.selectors.container.replace(".",""),!0),H(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui)return this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),void je.toggleNativeControls.call(this,!0);k.element(this.elements.controls)||(De.inject.call(this),this.listeners.controls()),je.toggleNativeControls.call(this),this.isHTML5&&Pe.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,De.updateVolume.call(this),De.timeUpdate.call(this),De.durationUpdate.call(this),je.checkPlaying.call(this),H(this.elements.container,this.config.classNames.pip.supported,q.pip&&this.isHTML5&&this.isVideo),H(this.elements.container,this.config.classNames.airplay.supported,q.airplay&&this.isHTML5),H(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((()=>{ee.call(this,this.media,"ready")}),0),je.setTitle.call(this),this.poster&&je.setPoster.call(this,this.poster,!1).catch((()=>{})),this.config.duration&&De.durationUpdate.call(this),this.config.mediaMetadata&&De.setMediaMetadata.call(this)},setTitle(){let e=be.get("play",this.config);if(k.string(this.config.title)&&!k.empty(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach((t=>{t.setAttribute("aria-label",e)})),this.isEmbed){const e=G.call(this,"iframe");if(!k.element(e))return;const t=k.empty(this.config.title)?"video":this.config.title,i=be.get("frameTitle",this.config);e.setAttribute("title",i.replace("{title}",t))}},togglePoster(e){H(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(e,t=!0){return t&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),ie.call(this).then((()=>He(e))).catch((t=>{throw e===this.poster&&je.togglePoster.call(this,!1),t})).then((()=>{if(e!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${e}')`,backgroundSize:""}),je.togglePoster.call(this,!0),e))))},checkPlaying(e){H(this.elements.container,this.config.classNames.playing,this.playing),H(this.elements.container,this.config.classNames.paused,this.paused),H(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((e=>{Object.assign(e,{pressed:this.playing}),e.setAttribute("aria-label",be.get(this.playing?"pause":"play",this.config))})),k.event(e)&&"timeupdate"===e.type||je.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((()=>{H(this.elements.container,this.config.classNames.loading,this.loading),je.toggleControls.call(this)}),this.loading?250:0)},toggleControls(e){const{controls:t}=this.elements;if(t&&this.config.hideControls){const i=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(e||this.loading||this.paused||t.pressed||t.hover||i))}},migrateStyles(){Object.values({...this.media.style}).filter((e=>!k.empty(e)&&k.string(e)&&e.startsWith("--plyr"))).forEach((e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)})),k.empty(this.media.style)&&this.media.removeAttribute("style")}};class Ue{constructor(t){e(this,"firstTouch",(()=>{const{player:e}=this,{elements:t}=e;e.touch=!0,H(t.container,e.config.classNames.isTouch,!0)})),e(this,"global",((e=!0)=>{const{player:t}=this;t.config.keyboard.global&&J.call(t,window,"keydown keyup",this.handleKey,e,!1),J.call(t,document.body,"click",this.toggleMenu,e),Z.call(t,document.body,"touchstart",this.firstTouch)})),e(this,"container",(()=>{const{player:e}=this,{config:t,elements:i,timers:s}=e;!t.keyboard.global&&t.keyboard.focused&&X.call(e,i.container,"keydown keyup",this.handleKey,!1),X.call(e,i.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(t=>{const{controls:r}=i;r&&"enterfullscreen"===t.type&&(r.pressed=!1,r.hover=!1);let n=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(je.toggleControls.call(e,!0),n=e.touch?3e3:2e3),clearTimeout(s.controls),s.controls=setTimeout((()=>je.toggleControls.call(e,!1)),n)}));const r=()=>{if(!e.isVimeo||e.config.vimeo.premium)return;const t=i.wrapper,{active:s}=e.fullscreen,[r,n]=he.call(e),a=ae(`aspect-ratio: ${r} / ${n}`);if(!s)return void(a?(t.style.width=null,t.style.height=null):(t.style.maxWidth=null,t.style.margin=null));const[o,l]=[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],d=o/l>r/n;a?(t.style.width=d?"auto":"100%",t.style.height=d?"100%":"auto"):(t.style.maxWidth=d?l/n*r+"px":null,t.style.margin=d?"0 auto":null)},n=()=>{clearTimeout(s.resized),s.resized=setTimeout(r,50)};X.call(e,i.container,"enterfullscreen exitfullscreen",(t=>{const{target:s}=e.fullscreen;s===i.container&&(!e.isEmbed&&k.empty(e.config.ratio)||(r(),("enterfullscreen"===t.type?X:Q).call(e,window,"resize",n)))}))})),e(this,"media",(()=>{const{player:e}=this,{elements:t}=e;if(X.call(e,e.media,"timeupdate seeking seeked",(t=>De.timeUpdate.call(e,t))),X.call(e,e.media,"durationchange loadeddata loadedmetadata",(t=>De.durationUpdate.call(e,t))),X.call(e,e.media,"ended",(()=>{e.isHTML5&&e.isVideo&&e.config.resetOnEnd&&(e.restart(),e.pause())})),X.call(e,e.media,"progress playing seeking seeked",(t=>De.updateProgress.call(e,t))),X.call(e,e.media,"volumechange",(t=>De.updateVolume.call(e,t))),X.call(e,e.media,"playing play pause ended emptied timeupdate",(t=>je.checkPlaying.call(e,t))),X.call(e,e.media,"waiting canplay seeked playing",(t=>je.checkLoading.call(e,t))),e.supported.ui&&e.config.clickToPlay&&!e.isAudio){const i=G.call(e,`.${e.config.classNames.video}`);if(!k.element(i))return;X.call(e,t.container,"click",(s=>{([t.container,i].includes(s.target)||i.contains(s.target))&&(e.touch&&e.config.hideControls||(e.ended?(this.proxy(s,e.restart,"restart"),this.proxy(s,(()=>{se(e.play())}),"play")):this.proxy(s,(()=>{se(e.togglePlay())}),"play")))}))}e.supported.ui&&e.config.disableContextMenu&&X.call(e,t.wrapper,"contextmenu",(e=>{e.preventDefault()}),!1),X.call(e,e.media,"volumechange",(()=>{e.storage.set({volume:e.volume,muted:e.muted})})),X.call(e,e.media,"ratechange",(()=>{De.updateSetting.call(e,"speed"),e.storage.set({speed:e.speed})})),X.call(e,e.media,"qualitychange",(t=>{De.updateSetting.call(e,"quality",null,t.detail.quality)})),X.call(e,e.media,"ready qualitychange",(()=>{De.setDownloadUrl.call(e)}));const i=e.config.events.concat(["keyup","keydown"]).join(" ");X.call(e,e.media,i,(i=>{let{detail:s={}}=i;"error"===i.type&&(s=e.media.error),ee.call(e,t.container,i.type,!0,s)}))})),e(this,"proxy",((e,t,i)=>{const{player:s}=this,r=s.config.listeners[i];let n=!0;k.function(r)&&(n=r.call(s,e)),!1!==n&&k.function(t)&&t.call(s,e)})),e(this,"bind",((e,t,i,s,r=!0)=>{const{player:n}=this,a=n.config.listeners[s],o=k.function(a);X.call(n,e,t,(e=>this.proxy(e,i,s)),r&&!o)})),e(this,"controls",(()=>{const{player:e}=this,{elements:t}=e,i=x.isIE?"change":"input";if(t.buttons.play&&Array.from(t.buttons.play).forEach((t=>{this.bind(t,"click",(()=>{se(e.togglePlay())}),"play")})),this.bind(t.buttons.restart,"click",e.restart,"restart"),this.bind(t.buttons.rewind,"click",(()=>{e.lastSeekTime=Date.now(),e.rewind()}),"rewind"),this.bind(t.buttons.fastForward,"click",(()=>{e.lastSeekTime=Date.now(),e.forward()}),"fastForward"),this.bind(t.buttons.mute,"click",(()=>{e.muted=!e.muted}),"mute"),this.bind(t.buttons.captions,"click",(()=>e.toggleCaptions())),this.bind(t.buttons.download,"click",(()=>{ee.call(e,e.media,"download")}),"download"),this.bind(t.buttons.fullscreen,"click",(()=>{e.fullscreen.toggle()}),"fullscreen"),this.bind(t.buttons.pip,"click",(()=>{e.pip="toggle"}),"pip"),this.bind(t.buttons.airplay,"click",e.airplay,"airplay"),this.bind(t.buttons.settings,"click",(t=>{t.stopPropagation(),t.preventDefault(),De.toggleMenu.call(e,t)}),null,!1),this.bind(t.buttons.settings,"keyup",(t=>{[" ","Enter"].includes(t.key)&&("Enter"!==t.key?(t.preventDefault(),t.stopPropagation(),De.toggleMenu.call(e,t)):De.focusFirstMenuItem.call(e,null,!0))}),null,!1),this.bind(t.settings.menu,"keydown",(t=>{"Escape"===t.key&&De.toggleMenu.call(e,t)})),this.bind(t.inputs.seek,"mousedown mousemove",(e=>{const i=t.progress.getBoundingClientRect(),s=100/i.width*(e.pageX-i.left);e.currentTarget.setAttribute("seek-value",s)})),this.bind(t.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(t=>{const i=t.currentTarget,s="play-on-seeked";if(k.keyboardEvent(t)&&!["ArrowLeft","ArrowRight"].includes(t.key))return;e.lastSeekTime=Date.now();const r=i.hasAttribute(s),n=["mouseup","touchend","keyup"].includes(t.type);r&&n?(i.removeAttribute(s),se(e.play())):!n&&e.playing&&(i.setAttribute(s,""),e.pause())})),x.isIos){const t=V.call(e,'input[type="range"]');Array.from(t).forEach((e=>this.bind(e,i,(e=>D(e.target)))))}this.bind(t.inputs.seek,i,(t=>{const i=t.currentTarget;let s=i.getAttribute("seek-value");k.empty(s)&&(s=i.value),i.removeAttribute("seek-value"),e.currentTime=s/i.max*e.duration}),"seek"),this.bind(t.progress,"mouseenter mouseleave mousemove",(t=>De.updateSeekTooltip.call(e,t))),this.bind(t.progress,"mousemove touchmove",(t=>{const{previewThumbnails:i}=e;i&&i.loaded&&i.startMove(t)})),this.bind(t.progress,"mouseleave touchend click",(()=>{const{previewThumbnails:t}=e;t&&t.loaded&&t.endMove(!1,!0)})),this.bind(t.progress,"mousedown touchstart",(t=>{const{previewThumbnails:i}=e;i&&i.loaded&&i.startScrubbing(t)})),this.bind(t.progress,"mouseup touchend",(t=>{const{previewThumbnails:i}=e;i&&i.loaded&&i.endScrubbing(t)})),x.isWebKit&&Array.from(V.call(e,'input[type="range"]')).forEach((t=>{this.bind(t,"input",(t=>De.updateRangeFill.call(e,t.target)))})),e.config.toggleInvert&&!k.element(t.display.duration)&&this.bind(t.display.currentTime,"click",(()=>{0!==e.currentTime&&(e.config.invertTime=!e.config.invertTime,De.timeUpdate.call(e))})),this.bind(t.inputs.volume,i,(t=>{e.volume=t.target.value}),"volume"),this.bind(t.controls,"mouseenter mouseleave",(i=>{t.controls.hover=!e.touch&&"mouseenter"===i.type})),t.fullscreen&&Array.from(t.fullscreen.children).filter((e=>!e.contains(t.container))).forEach((i=>{this.bind(i,"mouseenter mouseleave",(i=>{t.controls&&(t.controls.hover=!e.touch&&"mouseenter"===i.type)}))})),this.bind(t.controls,"mousedown mouseup touchstart touchend touchcancel",(e=>{t.controls.pressed=["mousedown","touchstart"].includes(e.type)})),this.bind(t.controls,"focusin",(()=>{const{config:i,timers:s}=e;H(t.controls,i.classNames.noTransition,!0),je.toggleControls.call(e,!0),setTimeout((()=>{H(t.controls,i.classNames.noTransition,!1)}),0);const r=this.touch?3e3:4e3;clearTimeout(s.controls),s.controls=setTimeout((()=>je.toggleControls.call(e,!1)),r)})),this.bind(t.inputs.volume,"wheel",(t=>{const i=t.webkitDirectionInvertedFromDevice,[s,r]=[t.deltaX,-t.deltaY].map((e=>i?-e:e)),n=Math.sign(Math.abs(s)>Math.abs(r)?s:r);e.increaseVolume(n/50);const{volume:a}=e.media;(1===n&&a<1||-1===n&&a>0)&&t.preventDefault()}),"volume",!1)})),this.player=t,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(e){const{player:t}=this,{elements:i}=t,{key:s,type:r,altKey:n,ctrlKey:a,metaKey:o,shiftKey:l}=e,d="keydown"===r,h=d&&s===this.lastKey;var c;if(!(n||a||o||l)&&s)if(d){const r=document.activeElement;if(k.element(r)){const{editable:s}=t.config.selectors,{seek:n}=i.inputs;if(r!==n&&U(r,s))return;if(" "===e.key&&U(r,'button, [role^="menuitem"]'))return}switch([" ","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(s)&&(e.preventDefault(),e.stopPropagation()),s){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":h||(c=parseInt(s,10),t.currentTime=t.duration/10*c);break;case" ":case"k":h||se(t.togglePlay());break;case"ArrowUp":t.increaseVolume(.1);break;case"ArrowDown":t.decreaseVolume(.1);break;case"m":h||(t.muted=!t.muted);break;case"ArrowRight":t.forward();break;case"ArrowLeft":t.rewind();break;case"f":t.fullscreen.toggle();break;case"c":h||t.toggleCaptions();break;case"l":t.loop=!t.loop}"Escape"===s&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=s}else this.lastKey=null}toggleMenu(e){De.toggleMenu.call(this.player,e)}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self&&self;var Ve=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports=function(){var e=function(){},t={},i={},s={};function r(e,t){e=e.push?e:[e];var r,n,a,o=[],l=e.length,d=l;for(r=function(e,i){i.length&&o.push(e),--d||t(o)};l--;)n=e[l],(a=i[n])?r(n,a):(s[n]=s[n]||[]).push(r)}function n(e,t){if(e){var r=s[e];if(i[e]=t,r)for(;r.length;)r[0](e,t),r.splice(0,1)}}function a(t,i){t.call&&(t={success:t}),i.length?(t.error||e)(i):(t.success||e)(t)}function o(t,i,s,r){var n,a,l=document,d=s.async,h=(s.numRetries||0)+1,c=s.before||e,u=t.replace(/[\?|#].*$/,""),f=t.replace(/^(css|img)!/,"");r=r||0,/(^css!|\.css$)/.test(u)?((a=l.createElement("link")).rel="stylesheet",a.href=f,(n="hideFocus"in a)&&a.relList&&(n=0,a.rel="preload",a.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(u)?(a=l.createElement("img")).src=f:((a=l.createElement("script")).src=t,a.async=void 0===d||d),a.onload=a.onerror=a.onbeforeload=function(e){var l=e.type[0];if(n)try{a.sheet.cssText.length||(l="e")}catch(e){18!=e.code&&(l="e")}if("e"==l){if((r+=1)<h)return o(t,i,s,r)}else if("preload"==a.rel&&"style"==a.as)return a.rel="stylesheet";i(t,l,e.defaultPrevented)},!1!==c(t,a)&&l.head.appendChild(a)}function l(e,t,i){var s,r,n=(e=e.push?e:[e]).length,a=n,l=[];for(s=function(e,i,s){if("e"==i&&l.push(e),"b"==i){if(!s)return;l.push(e)}--n||t(l)},r=0;r<a;r++)o(e[r],s,i)}function d(e,i,s){var r,o;if(i&&i.trim&&(r=i),o=(r?s:i)||{},r){if(r in t)throw"LoadJS";t[r]=!0}function d(t,i){l(e,(function(e){a(o,e),t&&a({success:t,error:i},e),n(r,e)}),o)}if(o.returnPromise)return new Promise(d);d()}return d.ready=function(e,t){return r(e,(function(e){a(t,e)})),d},d.done=function(e){n(e,[])},d.reset=function(){t={},i={},s={}},d.isDefined=function(e){return e in t},d}()}));function Ge(e){return new Promise(((t,i)=>{Ve(e,{success:t,error:i})}))}function ze(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,ee.call(this,this.media,e?"play":"pause"))}const We={setup(){const e=this;H(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,ce.call(e),k.object(window.Vimeo)?We.ready.call(e):Ge(e.config.urls.vimeo.sdk).then((()=>{We.ready.call(e)})).catch((t=>{e.debug.warn("Vimeo SDK (player.js) failed to load",t)}))},ready(){const e=this,t=e.config.vimeo,{premium:i,referrerPolicy:s,...r}=t;let n=e.media.getAttribute("src"),a="";k.empty(n)?(n=e.media.getAttribute(e.config.attributes.embed.id),a=e.media.getAttribute(e.config.attributes.embed.hash)):a=function(e){const t=e.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return t&&5===t.length?t[4]:null}(n);const o=a?{h:a}:{};i&&Object.assign(r,{controls:!1,sidedock:!1});const l=Ae({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:e.config.playsinline,...o,...r}),d=(h=n,k.empty(h)?null:k.number(Number(h))?h:h.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:h);var h;const c=R("iframe"),u=me(e.config.urls.vimeo.iframe,d,l);if(c.setAttribute("src",u),c.setAttribute("allowfullscreen",""),c.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),k.empty(s)||c.setAttribute("referrerPolicy",s),i||!t.customControls)c.setAttribute("data-poster",e.poster),e.media=$(c,e.media);else{const t=R("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});t.appendChild(c),e.media=$(t,e.media)}t.customControls||Te(me(e.config.urls.vimeo.api,u)).then((t=>{!k.empty(t)&&t.thumbnail_url&&je.setPoster.call(e,t.thumbnail_url).catch((()=>{}))})),e.embed=new window.Vimeo.Player(c,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(ze.call(e,!0),e.embed.play()),e.media.pause=()=>(ze.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:f}=e.media;Object.defineProperty(e.media,"currentTime",{get:()=>f,set(t){const{embed:i,media:s,paused:r,volume:n}=e,a=r&&!i.hasPlayed;s.seeking=!0,ee.call(e,s,"seeking"),Promise.resolve(a&&i.setVolume(0)).then((()=>i.setCurrentTime(t))).then((()=>a&&i.pause())).then((()=>a&&i.setVolume(n))).catch((()=>{}))}});let m=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:()=>m,set(t){e.embed.setPlaybackRate(t).then((()=>{m=t,ee.call(e,e.media,"ratechange")})).catch((()=>{e.options.speed=[1]}))}});let{volume:p}=e.config;Object.defineProperty(e.media,"volume",{get:()=>p,set(t){e.embed.setVolume(t).then((()=>{p=t,ee.call(e,e.media,"volumechange")}))}});let{muted:g}=e.config;Object.defineProperty(e.media,"muted",{get:()=>g,set(t){const i=!!k.boolean(t)&&t;e.embed.setMuted(!!i||e.config.muted).then((()=>{g=i,ee.call(e,e.media,"volumechange")}))}});let y,{loop:_}=e.config;Object.defineProperty(e.media,"loop",{get:()=>_,set(t){const i=k.boolean(t)?t:e.config.loop.active;e.embed.setLoop(i).then((()=>{_=i}))}}),e.embed.getVideoUrl().then((t=>{y=t,De.setDownloadUrl.call(e)})).catch((e=>{this.debug.warn(e)})),Object.defineProperty(e.media,"currentSrc",{get:()=>y}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then((t=>{const[i,s]=t;e.embed.ratio=ue(i,s),ce.call(this)})),e.embed.setAutopause(e.config.autopause).then((t=>{e.config.autopause=t})),e.embed.getVideoTitle().then((t=>{e.config.title=t,je.setTitle.call(this)})),e.embed.getCurrentTime().then((t=>{f=t,ee.call(e,e.media,"timeupdate")})),e.embed.getDuration().then((t=>{e.media.duration=t,ee.call(e,e.media,"durationchange")})),e.embed.getTextTracks().then((t=>{e.media.textTracks=t,Pe.setup.call(e)})),e.embed.on("cuechange",(({cues:t=[]})=>{const i=t.map((e=>function(e){const t=document.createDocumentFragment(),i=document.createElement("div");return t.appendChild(i),i.innerHTML=e,t.firstChild.innerText}(e.text)));Pe.updateCues.call(e,i)})),e.embed.on("loaded",(()=>{e.embed.getPaused().then((t=>{ze.call(e,!t),t||ee.call(e,e.media,"playing")})),k.element(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)})),e.embed.on("bufferstart",(()=>{ee.call(e,e.media,"waiting")})),e.embed.on("bufferend",(()=>{ee.call(e,e.media,"playing")})),e.embed.on("play",(()=>{ze.call(e,!0),ee.call(e,e.media,"playing")})),e.embed.on("pause",(()=>{ze.call(e,!1)})),e.embed.on("timeupdate",(t=>{e.media.seeking=!1,f=t.seconds,ee.call(e,e.media,"timeupdate")})),e.embed.on("progress",(t=>{e.media.buffered=t.percent,ee.call(e,e.media,"progress"),1===parseInt(t.percent,10)&&ee.call(e,e.media,"canplaythrough"),e.embed.getDuration().then((t=>{t!==e.media.duration&&(e.media.duration=t,ee.call(e,e.media,"durationchange"))}))})),e.embed.on("seeked",(()=>{e.media.seeking=!1,ee.call(e,e.media,"seeked")})),e.embed.on("ended",(()=>{e.media.paused=!0,ee.call(e,e.media,"ended")})),e.embed.on("error",(t=>{e.media.error=t,ee.call(e,e.media,"error")})),t.customControls&&setTimeout((()=>je.build.call(e)),0)}};function qe(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,ee.call(this,this.media,e?"play":"pause"))}function Ke(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}const Je={setup(){if(H(this.elements.wrapper,this.config.classNames.embed,!0),k.object(window.YT)&&k.function(window.YT.Player))Je.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{k.function(e)&&e(),Je.ready.call(this)},Ge(this.config.urls.youtube.sdk).catch((e=>{this.debug.warn("YouTube API failed to load",e)}))}},getTitle(e){Te(me(this.config.urls.youtube.api,e)).then((e=>{if(k.object(e)){const{title:t,height:i,width:s}=e;this.config.title=t,je.setTitle.call(this),this.embed.ratio=ue(s,i)}ce.call(this)})).catch((()=>{ce.call(this)}))},ready(){const e=this,t=e.config.youtube,i=e.media&&e.media.getAttribute("id");if(!k.empty(i)&&i.startsWith("youtube-"))return;let s=e.media.getAttribute("src");k.empty(s)&&(s=e.media.getAttribute(this.config.attributes.embed.id));const r=(n=s,k.empty(n)?null:n.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:n);var n;const a=R("div",{id:`${e.provider}-${Math.floor(1e4*Math.random())}`,"data-poster":t.customControls?e.poster:void 0});if(e.media=$(a,e.media),t.customControls){const t=e=>`https://i.ytimg.com/vi/${r}/${e}default.jpg`;He(t("maxres"),121).catch((()=>He(t("sd"),121))).catch((()=>He(t("hq")))).then((t=>je.setPoster.call(e,t.src))).then((t=>{t.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")})).catch((()=>{}))}e.embed=new window.YT.Player(e.media,{videoId:r,host:Ke(t),playerVars:P({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&t.customControls?0:1,disablekb:1,playsinline:e.config.playsinline&&!e.config.fullscreen.iosNative?1:0,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},t),events:{onError(t){if(!e.media.error){const i=t.data,s={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[i]||"An unknown error occurred";e.media.error={code:i,message:s},ee.call(e,e.media,"error")}},onPlaybackRateChange(t){const i=t.target;e.media.playbackRate=i.getPlaybackRate(),ee.call(e,e.media,"ratechange")},onReady(i){if(k.function(e.media.play))return;const s=i.target;Je.getTitle.call(e,r),e.media.play=()=>{qe.call(e,!0),s.playVideo()},e.media.pause=()=>{qe.call(e,!1),s.pauseVideo()},e.media.stop=()=>{s.stopVideo()},e.media.duration=s.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:()=>Number(s.getCurrentTime()),set(t){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,ee.call(e,e.media,"seeking"),s.seekTo(t)}}),Object.defineProperty(e.media,"playbackRate",{get:()=>s.getPlaybackRate(),set(e){s.setPlaybackRate(e)}});let{volume:n}=e.config;Object.defineProperty(e.media,"volume",{get:()=>n,set(t){n=t,s.setVolume(100*n),ee.call(e,e.media,"volumechange")}});let{muted:a}=e.config;Object.defineProperty(e.media,"muted",{get:()=>a,set(t){const i=k.boolean(t)?t:a;a=i,s[i?"mute":"unMute"](),s.setVolume(100*n),ee.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:()=>s.getVideoUrl()}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration});const o=s.getAvailablePlaybackRates();e.options.speed=o.filter((t=>e.config.speed.options.includes(t))),e.supported.ui&&t.customControls&&e.media.setAttribute("tabindex",-1),ee.call(e,e.media,"timeupdate"),ee.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval((()=>{e.media.buffered=s.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBuffered<e.media.buffered)&&ee.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,1===e.media.buffered&&(clearInterval(e.timers.buffering),ee.call(e,e.media,"canplaythrough"))}),200),t.customControls&&setTimeout((()=>je.build.call(e)),50)},onStateChange(i){const s=i.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(i.data)&&(e.media.seeking=!1,ee.call(e,e.media,"seeked")),i.data){case-1:ee.call(e,e.media,"timeupdate"),e.media.buffered=s.getVideoLoadedFraction(),ee.call(e,e.media,"progress");break;case 0:qe.call(e,!1),e.media.loop?(s.stopVideo(),s.playVideo()):ee.call(e,e.media,"ended");break;case 1:t.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(qe.call(e,!0),ee.call(e,e.media,"playing"),e.timers.playing=setInterval((()=>{ee.call(e,e.media,"timeupdate")}),50),e.media.duration!==s.getDuration()&&(e.media.duration=s.getDuration(),ee.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),qe.call(e,!1);break;case 3:ee.call(e,e.media,"waiting")}ee.call(e,e.elements.container,"statechange",!1,{code:i.data})}}})}},Xe={setup(){this.media?(H(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),H(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&H(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=R("div",{class:this.config.classNames.video}),C(this.media,this.elements.wrapper),this.elements.poster=R("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?fe.setup.call(this):this.isYouTube?Je.setup.call(this):this.isVimeo&&We.setup.call(this)):this.debug.warn("No media element found!")}};class Qe{constructor(t){e(this,"load",(()=>{this.enabled&&(k.object(window.google)&&k.object(window.google.ima)?this.ready():Ge(this.player.config.urls.googleIMA.sdk).then((()=>{this.ready()})).catch((()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))})))})),e(this,"ready",(()=>{var e;this.enabled||((e=this).manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then((()=>{this.clearSafetyTimer("onAdsManagerLoaded()")})),this.listeners(),this.setupIMA()})),e(this,"setupIMA",(()=>{this.elements.container=R("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(e=>this.onAdsManagerLoaded(e)),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(e=>this.onAdError(e)),!1),this.requestAds()})),e(this,"requestAds",(()=>{const{container:e}=this.player.elements;try{const t=new google.ima.AdsRequest;t.adTagUrl=this.tagUrl,t.linearAdSlotWidth=e.offsetWidth,t.linearAdSlotHeight=e.offsetHeight,t.nonLinearAdSlotWidth=e.offsetWidth,t.nonLinearAdSlotHeight=e.offsetHeight,t.forceNonLinearFullSlot=!1,t.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(t)}catch(e){this.onAdError(e)}})),e(this,"pollCountdown",((e=!1)=>{if(!e)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval((()=>{const e=Ee(Math.max(this.manager.getRemainingTime(),0)),t=`${be.get("advertisement",this.player.config)} - ${e}`;this.elements.container.setAttribute("data-badge-text",t)}),100)})),e(this,"onAdsManagerLoaded",(e=>{if(!this.enabled)return;const t=new google.ima.AdsRenderingSettings;t.restoreCustomPlaybackStateOnAdBreakComplete=!0,t.enablePreloading=!0,this.manager=e.getAdsManager(this.player,t),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(e=>this.onAdError(e))),Object.keys(google.ima.AdEvent.Type).forEach((e=>{this.manager.addEventListener(google.ima.AdEvent.Type[e],(e=>this.onAdEvent(e)))})),this.trigger("loaded")})),e(this,"addCuePoints",(()=>{k.empty(this.cuePoints)||this.cuePoints.forEach((e=>{if(0!==e&&-1!==e&&e<this.player.duration){const t=this.player.elements.progress;if(k.element(t)){const i=100/this.player.duration*e,s=R("span",{class:this.player.config.classNames.cues});s.style.left=`${i.toString()}%`,t.appendChild(s)}}}))})),e(this,"onAdEvent",(e=>{const{container:t}=this.player.elements,i=e.getAd(),s=e.getAdData();switch((e=>{ee.call(this.player,this.player.media,`ads${e.replace(/_/g,"").toLowerCase()}`)})(e.type),e.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),i.isLinear()||(i.width=t.offsetWidth,i.height=t.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:s.adError&&this.player.debug.warn(`Non-fatal ad error: ${s.adError.getMessage()}`)}})),e(this,"onAdError",(e=>{this.cancel(),this.player.debug.warn("Ads error",e)})),e(this,"listeners",(()=>{const{container:e}=this.player.elements;let t;this.player.on("canplay",(()=>{this.addCuePoints()})),this.player.on("ended",(()=>{this.loader.contentComplete()})),this.player.on("timeupdate",(()=>{t=this.player.currentTime})),this.player.on("seeked",(()=>{const e=this.player.currentTime;k.empty(this.cuePoints)||this.cuePoints.forEach(((i,s)=>{t<i&&i<e&&(this.manager.discardAdBreak(),this.cuePoints.splice(s,1))}))})),window.addEventListener("resize",(()=>{this.manager&&this.manager.resize(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL)}))})),e(this,"play",(()=>{const{container:e}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then((()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(e){this.onAdError(e)}})).catch((()=>{}))})),e(this,"resumeContent",(()=>{this.elements.container.style.zIndex="",this.playing=!1,se(this.player.media.play())})),e(this,"pauseContent",(()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()})),e(this,"cancel",(()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()})),e(this,"loadAds",(()=>{this.managerPromise.then((()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise((e=>{this.on("loaded",e),this.player.debug.log(this.manager)})),this.initialized=!1,this.requestAds()})).catch((()=>{}))})),e(this,"trigger",((e,...t)=>{const i=this.events[e];k.array(i)&&i.forEach((e=>{k.function(e)&&e.apply(this,t)}))})),e(this,"on",((e,t)=>(k.array(this.events[e])||(this.events[e]=[]),this.events[e].push(t),this))),e(this,"startSafetyTimer",((e,t)=>{this.player.debug.log(`Safety timer invoked from: ${t}`),this.safetyTimer=setTimeout((()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")}),e)})),e(this,"clearSafetyTimer",(e=>{k.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${e}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)})),this.player=t,this.config=t.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise(((e,t)=>{this.on("loaded",e),this.on("error",t)})),this.load()}get enabled(){const{config:e}=this;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!k.empty(e.publisherId)||k.url(e.tagUrl))}get tagUrl(){const{config:e}=this;return k.url(e.tagUrl)?e.tagUrl:`https://go.aniview.com/api/adserver6/vast/?${Ae({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:e.publisherId})}`}}function Ze(e=0,t=0,i=255){return Math.min(Math.max(e,t),i)}const et=e=>{const t=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach((e=>{const i={};e.split(/\r\n|\n|\r/).forEach((e=>{if(k.number(i.startTime)){if(!k.empty(e.trim())&&k.empty(i.text)){const t=e.trim().split("#xywh=");[i.text]=t,t[1]&&([i.x,i.y,i.w,i.h]=t[1].split(","))}}else{const t=e.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);t&&(i.startTime=60*Number(t[1]||0)*60+60*Number(t[2])+Number(t[3])+Number(`0.${t[4]}`),i.endTime=60*Number(t[6]||0)*60+60*Number(t[7])+Number(t[8])+Number(`0.${t[9]}`))}})),i.text&&t.push(i)})),t},tt=(e,t)=>{const i={};return e>t.width/t.height?(i.width=t.width,i.height=1/e*t.width):(i.height=t.height,i.width=e*t.height),i};class it{constructor(t){e(this,"load",(()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then((()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.listeners(),this.loaded=!0)}))})),e(this,"getThumbnails",(()=>new Promise((e=>{const{src:t}=this.player.config.previewThumbnails;if(k.empty(t))throw new Error("Missing previewThumbnails.src config attribute");const i=()=>{this.thumbnails.sort(((e,t)=>e.height-t.height)),this.player.debug.log("Preview thumbnails",this.thumbnails),e()};if(k.function(t))t((e=>{this.thumbnails=e,i()}));else{const e=(k.string(t)?[t]:t).map((e=>this.getThumbnail(e)));Promise.all(e).then(i)}})))),e(this,"getThumbnail",(e=>new Promise((t=>{Te(e).then((i=>{const s={frames:et(i),height:null,urlPrefix:""};s.frames[0].text.startsWith("/")||s.frames[0].text.startsWith("http://")||s.frames[0].text.startsWith("https://")||(s.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));const r=new Image;r.onload=()=>{s.height=r.naturalHeight,s.width=r.naturalWidth,this.thumbnails.push(s),t()},r.src=s.urlPrefix+s.frames[0].text}))})))),e(this,"startMove",(e=>{if(this.loaded&&k.event(e)&&["touchmove","mousemove"].includes(e.type)&&this.player.media.duration){if("touchmove"===e.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var t,i;const s=this.player.elements.progress.getBoundingClientRect(),r=100/s.width*(e.pageX-s.left);this.seekTime=this.player.media.duration*(r/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=e.pageX,this.elements.thumb.time.innerText=Ee(this.seekTime);const n=null===(t=this.player.config.markers)||void 0===t||null===(i=t.points)||void 0===i?void 0:i.find((({time:e})=>e===Math.round(this.seekTime)));n&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${n.label}<br>`)}this.showImageAtCurrentTime()}})),e(this,"endMove",(()=>{this.toggleThumbContainer(!1,!0)})),e(this,"startScrubbing",(e=>{(k.nullOrUndefined(e.button)||!1===e.button||0===e.button)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))})),e(this,"endScrubbing",(()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):Z.call(this.player,this.player.media,"timeupdate",(()=>{this.mouseDown||this.toggleScrubbingContainer(!1)}))})),e(this,"listeners",(()=>{this.player.on("play",(()=>{this.toggleThumbContainer(!1,!0)})),this.player.on("seeked",(()=>{this.toggleThumbContainer(!1)})),this.player.on("timeupdate",(()=>{this.lastTime=this.player.media.currentTime}))})),e(this,"render",(()=>{this.elements.thumb.container=R("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=R("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const e=R("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=R("span",{},"00:00"),e.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(e),k.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=R("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)})),e(this,"destroy",(()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()})),e(this,"showImageAtCurrentTime",(()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const e=this.thumbnails[0].frames.findIndex((e=>this.seekTime>=e.startTime&&this.seekTime<=e.endTime)),t=e>=0;let i=0;this.mouseDown||this.toggleThumbContainer(t),t&&(this.thumbnails.forEach(((t,s)=>{this.loadedImages.includes(t.frames[e].text)&&(i=s)})),e!==this.showingThumb&&(this.showingThumb=e,this.loadImage(i)))})),e(this,"loadImage",((e=0)=>{const t=this.showingThumb,i=this.thumbnails[e],{urlPrefix:s}=i,r=i.frames[t],n=i.frames[t].text,a=s+n;if(this.currentImageElement&&this.currentImageElement.dataset.filename===n)this.showImage(this.currentImageElement,r,e,t,n,!1),this.currentImageElement.dataset.index=t,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const i=new Image;i.src=a,i.dataset.index=t,i.dataset.filename=n,this.showingThumbFilename=n,this.player.debug.log(`Loading image: ${a}`),i.onload=()=>this.showImage(i,r,e,t,n,!0),this.loadingImage=i,this.removeOldImages(i)}})),e(this,"showImage",((e,t,i,s,r,n=!0)=>{this.player.debug.log(`Showing thumb: ${r}. num: ${s}. qual: ${i}. newimg: ${n}`),this.setImageSizeAndOffset(e,t),n&&(this.currentImageContainer.appendChild(e),this.currentImageElement=e,this.loadedImages.includes(r)||this.loadedImages.push(r)),this.preloadNearby(s,!0).then(this.preloadNearby(s,!1)).then(this.getHigherQuality(i,e,t,r))})),e(this,"removeOldImages",(e=>{Array.from(this.currentImageContainer.children).forEach((t=>{if("img"!==t.tagName.toLowerCase())return;const i=this.usingSprites?500:1e3;if(t.dataset.index!==e.dataset.index&&!t.dataset.deleting){t.dataset.deleting=!0;const{currentImageContainer:e}=this;setTimeout((()=>{e.removeChild(t),this.player.debug.log(`Removing thumb: ${t.dataset.filename}`)}),i)}}))})),e(this,"preloadNearby",((e,t=!0)=>new Promise((i=>{setTimeout((()=>{const s=this.thumbnails[0].frames[e].text;if(this.showingThumbFilename===s){let r;r=t?this.thumbnails[0].frames.slice(e):this.thumbnails[0].frames.slice(0,e).reverse();let n=!1;r.forEach((e=>{const t=e.text;if(t!==s&&!this.loadedImages.includes(t)){n=!0,this.player.debug.log(`Preloading thumb filename: ${t}`);const{urlPrefix:e}=this.thumbnails[0],s=e+t,r=new Image;r.src=s,r.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${t}`),this.loadedImages.includes(t)||this.loadedImages.push(t),i()}}})),n||i()}}),300)})))),e(this,"getHigherQuality",((e,t,i,s)=>{if(e<this.thumbnails.length-1){let r=t.naturalHeight;this.usingSprites&&(r=i.h),r<this.thumbContainerHeight&&setTimeout((()=>{this.showingThumbFilename===s&&(this.player.debug.log(`Showing higher quality thumb for: ${s}`),this.loadImage(e+1))}),300)}})),e(this,"toggleThumbContainer",((e=!1,t=!1)=>{const i=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(i,e),!e&&t&&(this.showingThumb=null,this.showingThumbFilename=null)})),e(this,"toggleScrubbingContainer",((e=!1)=>{const t=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(t,e),e||(this.showingThumb=null,this.showingThumbFilename=null)})),e(this,"determineContainerAutoSizing",(()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)})),e(this,"setThumbContainerSizeAndPos",(()=>{const{imageContainer:e}=this.elements.thumb;if(this.sizeSpecifiedInCSS){if(e.clientHeight>20&&e.clientWidth<20){const t=Math.floor(e.clientHeight*this.thumbAspectRatio);e.style.width=`${t}px`}else if(e.clientHeight<20&&e.clientWidth>20){const t=Math.floor(e.clientWidth/this.thumbAspectRatio);e.style.height=`${t}px`}}else{const t=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);e.style.height=`${this.thumbContainerHeight}px`,e.style.width=`${t}px`}this.setThumbContainerPos()})),e(this,"setThumbContainerPos",(()=>{const e=this.player.elements.progress.getBoundingClientRect(),t=this.player.elements.container.getBoundingClientRect(),{container:i}=this.elements.thumb,s=t.left-e.left+10,r=t.right-e.left-i.clientWidth-10,n=this.mousePosX-e.left-i.clientWidth/2,a=Ze(n,s,r);i.style.left=`${a}px`,i.style.setProperty("--preview-arrow-offset",n-a+"px")})),e(this,"setScrubbingContainerSize",(()=>{const{width:e,height:t}=tt(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${e}px`,this.elements.scrubbing.container.style.height=`${t}px`})),e(this,"setImageSizeAndOffset",((e,t)=>{if(!this.usingSprites)return;const i=this.thumbContainerHeight/t.h;e.style.height=e.naturalHeight*i+"px",e.style.width=e.naturalWidth*i+"px",e.style.left=`-${t.x*i}px`,e.style.top=`-${t.y*i}px`})),this.player=t,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:e}=tt(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return e}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(e){this.mouseDown?this.currentScrubbingImageElement=e:this.currentThumbnailImageElement=e}}const st={insertElements(e,t){k.string(t)?O(e,this.media,{src:t}):k.array(t)&&t.forEach((t=>{O(e,this.media,t)}))},change(e){A(e,"sources.length")?(fe.cancelRequests.call(this),this.destroy.call(this,(()=>{this.options.quality=[],Y(this.media),this.media=null,k.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:t,type:i}=e,[{provider:s=Oe.html5,src:r}]=t,n="html5"===s?i:"div",a="html5"===s?{}:{src:r};Object.assign(this,{provider:s,type:i,supported:q.check(i,s,this.config.playsinline),media:R(n,a)}),this.elements.container.appendChild(this.media),k.boolean(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),k.empty(e.poster)||(this.poster=e.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),je.addStyleHook.call(this),this.isHTML5&&st.insertElements.call(this,"source",t),this.config.title=e.title,Xe.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&st.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&je.build.call(this),this.isHTML5&&this.media.load(),k.empty(e.previewThumbnails)||(Object.assign(this.config.previewThumbnails,e.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new it(this))),this.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}};class rt{constructor(t,i){if(e(this,"play",(()=>k.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then((()=>this.ads.play())).catch((()=>se(this.media.play()))),this.media.play()):null)),e(this,"pause",(()=>this.playing&&k.function(this.media.pause)?this.media.pause():null)),e(this,"togglePlay",(e=>(k.boolean(e)?e:!this.playing)?this.play():this.pause())),e(this,"stop",(()=>{this.isHTML5?(this.pause(),this.restart()):k.function(this.media.stop)&&this.media.stop()})),e(this,"restart",(()=>{this.currentTime=0})),e(this,"rewind",(e=>{this.currentTime-=k.number(e)?e:this.config.seekTime})),e(this,"forward",(e=>{this.currentTime+=k.number(e)?e:this.config.seekTime})),e(this,"increaseVolume",(e=>{const t=this.media.muted?0:this.volume;this.volume=t+(k.number(e)?e:0)})),e(this,"decreaseVolume",(e=>{this.increaseVolume(-e)})),e(this,"airplay",(()=>{q.airplay&&this.media.webkitShowPlaybackTargetPicker()})),e(this,"toggleControls",(e=>{if(this.supported.ui&&!this.isAudio){const t=j(this.elements.container,this.config.classNames.hideControls),i=void 0===e?void 0:!e,s=H(this.elements.container,this.config.classNames.hideControls,i);if(s&&k.array(this.config.controls)&&this.config.controls.includes("settings")&&!k.empty(this.config.settings)&&De.toggleMenu.call(this,!1),s!==t){const e=s?"controlshidden":"controlsshown";ee.call(this,this.media,e)}return!s}return!1})),e(this,"on",((e,t)=>{X.call(this,this.elements.container,e,t)})),e(this,"once",((e,t)=>{Z.call(this,this.elements.container,e,t)})),e(this,"off",((e,t)=>{Q(this.elements.container,e,t)})),e(this,"destroy",((e,t=!1)=>{if(!this.ready)return;const i=()=>{document.body.style.overflow="",this.embed=null,t?(Object.keys(this.elements).length&&(Y(this.elements.buttons.play),Y(this.elements.captions),Y(this.elements.controls),Y(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),k.function(e)&&e()):(te.call(this),fe.cancelRequests.call(this),$(this.elements.original,this.elements.container),ee.call(this,this.elements.original,"destroyed",!0),k.function(e)&&e.call(this.elements.original),this.ready=!1,setTimeout((()=>{this.elements=null,this.media=null}),200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(je.toggleNativeControls.call(this,!0),i()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&k.function(this.embed.destroy)&&this.embed.destroy(),i()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(i),setTimeout(i,200))})),e(this,"supports",(e=>q.mime.call(this,e))),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=q.touch,this.media=t,k.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||k.nodeList(this.media)||k.array(this.media))&&(this.media=this.media[0]),this.config=P({},Ce,rt.defaults,i||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch(e){return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new Ne(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",q),k.nullOrUndefined(this.media)||!k.element(this.media))return void this.debug.error("Setup failed: no suitable element passed");if(this.media.plyr)return void this.debug.warn("Target already setup");if(!this.config.enabled)return void this.debug.error("Setup failed: disabled by config");if(!q.check().api)return void this.debug.error("Setup failed: no support");const s=this.media.cloneNode(!0);s.autoplay=!1,this.elements.original=s;const r=this.media.tagName.toLowerCase();let n=null,a=null;switch(r){case"div":if(n=this.media.querySelector("iframe"),k.element
vendor: 1,663 bytes, line 2
2(n)){if(a=xe(n.getAttribute("src")),this.provider=function(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?Oe.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?Oe.vimeo:null}(a.toString()),this.elements.container=this.media,this.media=n,this.elements.container.className="",a.search.length){const e=["1","true"];e.includes(a.searchParams.get("autoplay"))&&(this.config.autoplay=!0),e.includes(a.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=e.includes(a.searchParams.get("playsinline")),this.config.youtube.hl=a.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(k.empty(this.provider)||!Object.values(Oe).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=Fe;break;case"video":case"audio":this.type=r,this.provider=Oe.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=q.check(this.type,this.provider),this.supported.api?(this.eventListeners=[],this.listeners=new Ue(this),this.storage=new we(this),this.media.plyr=this,k.element
vendor: 4,252 bytes, line 2
2(this.elements.container)||(this.elements.container=R("div"),C(this.media,this.elements.container)),je.migrateStyles.call(this),je.addStyleHook.call(this),Xe.setup.call(this),this.config.debug&&X.call(this,this.elements.container,this.config.events.join(" "),(e=>{this.debug.log(`event: ${e.type}`)})),this.fullscreen=new Be(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&je.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Qe(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(()=>se(this.play()))),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new it(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===Oe.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===Oe.youtube}get isVimeo(){return this.provider===Oe.vimeo}get isVideo(){return this.type===Fe}get isAudio(){return this.type===Ye}get playing(){return Boolean(this.ready&&!this.paused&&!this.ended)}get paused(){return Boolean(this.media.paused)}get stopped(){return Boolean(this.paused&&0===this.currentTime)}get ended(){return Boolean(this.media.ended)}set currentTime(e){if(!this.duration)return;const t=k.number(e)&&e>0;this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:e}=this.media;return k.number(e)?e:e&&e.length&&this.duration>0?e.end(0)/this.duration:0}get seeking(){return Boolean(this.media.seeking)}get duration(){const e=parseFloat(this.config.duration),t=(this.media||{}).duration,i=k.number(t)&&t!==1/0?t:0;return e||i}set volume(e){let t=e;k.string(t)&&(t=Number(t)),k.number(t)||(t=this.storage.get("volume")),k.number(t)||({volume:t}=this.config),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!k.empty(e)&&this.muted&&t>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(e){let t=e;k.boolean(t)||(t=this.storage.get("muted")),k.boolean(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}get muted(){return Boolean(this.media.muted)}get hasAudio(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}set speed(e){let t=null;k.number(e)&&(t=e),k.number(t)||(t=this.storage.get("speed")),k.number(t)||(t=this.config.speed.selected);const{minimumSpeed:i,maximumSpeed:s}=this;t=Ze(t,i,s),this.config.speed.selected=t,setTimeout((()=>{this.media&&(this.media.playbackRate=t)}),0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(e){const t=this.config.quality,i=this.options.quality;if(!i.length)return;let s=[!k.empty(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(k.number),r=!0;if(!i.includes(s)){const e=ne(i,s);this.debug.warn(`Unsupported quality option: ${s}, using ${e} instead`),s=e,r=!1}t.selected=s,this.media.quality=s,r&&this.storage.set({quality:s})}get quality(){return this.media.quality}set loop(e){const t=k.boolean(e)?e:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}get loop(){return Boolean(this.media.loop)}set source(e){st.change.call(this,e)}get source(){return this.media.currentSrc}get download(){const{download:e}=this.config.urls;return k.url(e)?e:this.source}set download(e){k.url(e)&&(this.config.urls.download=e,De.setDownloadUrl.call(this))}set poster(e){this.isVideo?je.setPoster.call(this,e,!1).catch((()=>{})):this.debug.warn("Poster can only be set for video")}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const e=de(he.call(this));return k.array(e)?e.join(":"):e}set ratio(e){this.isVideo?k.string(e)&&le(e)?(this.config.ratio=de(e),ce.call(this)):this.debug.error(`Invalid aspect ratio specified (${e})`):this.debug.warn("Aspect ratio can only be set for video")}
2set autoplay(e){this.config.autoplay=k.boolean(e)?e:this.config.autoplay}get autoplay(){return Boolean(this.config.autoplay)}toggleCaptions(e){Pe.toggle.call(this,e,!1)}set currentTrack(e){Pe.set.call(this,e,!1),Pe.setup.call(this)}get currentTrack(){const{toggled:e,currentTrack:t}=this.captions;return e?t:-1}set language(e){Pe.setLanguage.call(this,e,!1)}get language(){return(Pe.getCurrentTrack.call(this)||{}).language}set pip(e){if(!q.pip)return;const t=k.boolean(e)?e:!this.pip;k.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?Ie:Re),k.function(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}get pip(){return q.pip?k.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Ie:null}setPreviewThumbnails(e){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,e),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new it(this))}static supported(e,t){return q.check(e,t)}static loadSprite(e,t){return Me(e,t)}static setup(e,t={}){let i=null;return k.string(e)?i=Array.from(document.querySelectorAll(e)):k.nodeList(e)?i=Array.from(e):k.array(e)&&(i=e.filter(k.element)),k.empty(i)?null:i.map((e=>new rt(e,t)))}}var nt;return rt.defaults=(nt=Ce,JSON.parse(JSON.stringify(nt))),rt}())},4418:function(e,t,i){!function(e){"use strict";var t="styczeÅ_luty_marzec_kwiecieÅ_maj_czerwiec_lipiec_sierpieÅ_wrzesieÅ_październik_listopad_grudzieÅ".split("_"),i="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrzeÅnia_października_listopada_grudnia".split("_"),s=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function n(e,t,i){var s=e+" ";switch(i){case"ss":return s+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutÄ";case"mm":return s+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinÄ";case"hh":return s+(r(e)?"godziny":"godzin");case"ww":return s+(r(e)?"tygodnie":"tygodni");case"MM":return s+(r(e)?"miesiÄ
ce":"miesiÄcy");case"yy":return s+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,s){return e?/D MMMM/.test(s)?i[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"niedziela_poniedziaÅek_wtorek_Åroda_czwartek_piÄ
tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_År_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_År_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DziÅ o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielÄ o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W ÅrodÄ o] LT";case 6:return"[W sobotÄ o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszÅÄ
niedzielÄ o] LT";case 3:return"[W zeszÅÄ
ÅrodÄ o] LT";case 6:return"[W zeszÅÄ
sobotÄ o] LT";default:return"[W zeszÅy] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:n,m:n,mm:n,h:n,hh:n,d:"1 dzieÅ",dd:"%d dni",w:"tydzieÅ",ww:n,M:"miesiÄ
c",MM:n,y:"rok",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(5093))},4429:function(e,t,i){!function(e){"use strict";function t(e,t,i,s){if("m"===i)return t?"jedna minuta":s?"jednu minutu":"jedne minute"}function i(e,t,i){var s=e+" ";switch(i){case"ss":return s+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"mm":return s+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return"jedan sat";case"hh":return s+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return s+=1===e?"dan":"dana";case"MM":return s+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return s+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_Äetvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._Äet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_Äe_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juÄer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[proÅ¡lu] dddd [u] LT";case 6:return"[proÅ¡le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[proÅ¡li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:t,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}
vendor: 5,412 bytes, line 2
2(i(5093))},4451:function(e,t,i){!function(e){"use strict";var t={1:"à³§",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"à³",8:"à³®",9:"೯",0:"೦"},i={"à³§":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","à³":"7","à³®":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"à²à²¨à²µà²°à²¿_ಫà³à²¬à³à²°à²µà²°à²¿_ಮಾರà³à²à³_à²à²ªà³à²°à²¿à²²à³_ಮà³à³_à²à³à²¨à³_à²à³à²²à³à³_à²à²à²¸à³à²à³_ಸà³à²ªà³à²à³à²à²¬à²°à³_à²
à²à³à²à³à³à³à²¬à²°à³_ನವà³à²à²¬à²°à³_ಡಿಸà³à²à²¬à²°à³".split("_"),monthsShort:"à²à²¨_ಫà³à²¬à³à²°_ಮಾರà³à²à³_à²à²ªà³à²°à²¿à²²à³_ಮà³à³_à²à³à²¨à³_à²à³à²²à³à³_à²à²à²¸à³à²à³_ಸà³à²ªà³à²à³à²_à²
à²à³à²à³à³à³_ನವà³à²_ಡಿಸà³à²".split("_"),monthsParseExact:!0,weekdays:"à²à²¾à²¨à³à²µà²¾à²°_ಸà³à³à³à²®à²µà²¾à²°_ಮà²à²à²³à²µà²¾à²°_ಬà³à²§à²µà²¾à²°_à²à³à²°à³à²µà²¾à²°_ಶà³à²à³à²°à²µà²¾à²°_ಶನಿವಾರ".split("_"),weekdaysShort:"à²à²¾à²¨à³_ಸà³à³à³à²®_ಮà²à²à²³_ಬà³à²§_à²à³à²°à³_ಶà³à²à³à²°_ಶನಿ".split("_"),weekdaysMin:"à²à²¾_ಸà³à³à³_ಮà²_ಬà³_à²à³_ಶà³_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[à²à²à²¦à³] LT",nextDay:"[ನಾಳà³] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನà³à²¨à³] LT",lastWeek:"[à²à³à³à²¨à³à²¯] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನà²à²¤à²°",past:"%s ಹಿà²à²¦à³",s:"à²à³à²²à²µà³ à²à³à²·à²£à²à²³à³",ss:"%d ಸà³à²à³à²à²¡à³à²à²³à³",m:"à²à²à²¦à³ ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"à²à²à²¦à³ à²à²à²à³",hh:"%d à²à²à²à³",d:"à²à²à²¦à³ ದಿನ",dd:"%d ದಿನ",M:"à²à²à²¦à³ ತಿà²à²à²³à³",MM:"%d ತಿà²à²à²³à³",y:"à²à²à²¦à³ ವರà³à²·",yy:"%d ವರà³à²·"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬à³à³®à³¯à³¦]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತà³à²°à²¿|ಬà³à²³à²¿à²à³à²à³|ಮಧà³à²¯à²¾à²¹à³à²¨|ಸà²à²à³/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತà³à²°à²¿"===t?e<4?e:e+12:"ಬà³à²³à²¿à²à³à²à³"===t?e:"ಮಧà³à²¯à²¾à²¹à³à²¨"===t?e>=10?e:e+12:"ಸà²à²à³"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"ರಾತà³à²°à²¿":e<10?"ಬà³à²³à²¿à²à³à²à³":e<17?"ಮಧà³à²¯à²¾à²¹à³à²¨":e<20?"ಸà²à²à³":"ರಾತà³à²°à²¿"},dayOfMonthOrdinalParse:/\d{1,2}(ನà³à³)/,ordinal:function(e){return e+"ನà³à³"},week:{dow:0,doy:6}})}(i(5093))},4457:function(e,t,i){!function(e){"use strict";function t(e,t,i){var s=" ";return(e%100>=20||e>=100&&e%100==0)&&(s=" de "),e+s+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"sÄptÄmâni",MM:"luni",yy:"ani"}[i]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminicÄ_luni_marÈi_miercuri_joi_vineri_sâmbÄtÄ".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmÄ",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o orÄ",hh:t,d:"o zi",dd:t,w:"o sÄptÄmânÄ",ww:t,M:"o lunÄ",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(i(5093))},4496:function(e,t,i){!function(e){"use strict";e.defineLocale("ar-ma",{months:"ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_Ù
ارس_أبرÙÙ_Ù
اÙ_ÙÙÙÙÙ_ÙÙÙÙÙØ²_غشت_Ø´ØªÙØ¨Ø±_Ø£ÙØªÙبر_ÙÙÙØ¨Ø±_Ø¯Ø¬ÙØ¨Ø±".split("_"),monthsShort:"ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_Ù
ارس_أبرÙÙ_Ù
اÙ_ÙÙÙÙÙ_ÙÙÙÙÙØ²_غشت_Ø´ØªÙØ¨Ø±_Ø£ÙØªÙبر_ÙÙÙØ¨Ø±_Ø¯Ø¬ÙØ¨Ø±".split("_"),weekdays:"Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù
ÙØ³_Ø§ÙØ¬Ù
عة_Ø§ÙØ³Ø¨Øª".split("_"),weekdaysShort:"Ø§ØØ¯_اثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_اربعاء_Ø®Ù
ÙØ³_جÙ
عة_سبت".split("_"),weekdaysMin:"Ø_Ù_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اÙÙÙÙ
عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextDay:"[غدا عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextWeek:"dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastDay:"[Ø£Ù
س عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastWeek:"dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",sameElse:"L"},relativeTime:{future:"ÙÙ %s",past:"Ù
ÙØ° %s",s:"Ø«ÙØ§Ù",ss:"%d ثاÙÙØ©",m:"دÙÙÙØ©",mm:"%d Ø¯ÙØ§Ø¦Ù",h:"ساعة",hh:"%d ساعات",d:"ÙÙÙ
",dd:"%d Ø£ÙØ§Ù
",M:"Ø´ÙØ±",MM:"%d Ø£Ø´ÙØ±",y:"Ø³ÙØ©",yy:"%d سÙÙØ§Øª"},week:{dow:1,doy:4}})}(i(5093))},4566:function(e,t,i){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_mÃ¥ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._mÃ¥._t
2y._on._to._fr._lau.".split("_"),weekdaysMin:"su_mÃ¥_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I gÃ¥r klokka] LT",lastWeek:"[FøregÃ¥ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein mÃ¥nad",MM:"%d mÃ¥nader",y:"eit Ã¥r",yy:"%d Ã¥r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(5093))},4691:function(e,t,i){!function(e){"use strict";function t(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}e.defineLocale("el",{monthsNominativeEl:"ÎανοÏ
άÏιοÏ_ΦεβÏοÏ
άÏιοÏ_ÎάÏÏιοÏ_ÎÏÏίλιοÏ_ÎάιοÏ_ÎοÏνιοÏ_ÎοÏλιοÏ_ÎÏγοÏ
ÏÏοÏ_ΣεÏÏÎμβÏιοÏ_ÎκÏÏβÏιοÏ_ÎοÎμβÏιοÏ_ÎεκÎμβÏιοÏ".split("_"),monthsGenitiveEl:"ÎανοÏ
αÏίοÏ
_ΦεβÏοÏ
αÏίοÏ
_ÎαÏÏίοÏ
_ÎÏÏιλίοÏ
_ÎαÎοÏ
_ÎοÏ
νίοÏ
_ÎοÏ
λίοÏ
_ÎÏ
γοÏÏÏοÏ
_ΣεÏÏεμβÏίοÏ
_ÎκÏÏβÏίοÏ
_ÎοεμβÏίοÏ
_ÎεκεμβÏίοÏ
".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Îαν_Φεβ_ÎαÏ_ÎÏÏ_ÎαÏ_ÎοÏ
ν_ÎοÏ
λ_ÎÏ
γ_ΣεÏ_ÎκÏ_Îοε_Îεκ".split("_"),weekdays:"ÎÏ
Ïιακή_ÎεÏ
ÏÎÏα_ΤÏίÏη_ΤεÏάÏÏη_Î ÎμÏÏη_ΠαÏαÏκεÏ
ή_ΣάββαÏο".split("_"),weekdaysShort:"ÎÏ
Ï_ÎεÏ
_ΤÏι_ΤεÏ_Πεμ_ΠαÏ_Σαβ".split("_"),weekdaysMin:"ÎÏ
_Îε_ΤÏ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,i){return e>11?i?"μμ":"ÎÎ":i?"Ïμ":"Î Î"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[Î Î]\.?Î?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[ΣήμεÏα {}] LT",nextDay:"[ÎÏÏιο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Î§Î¸ÎµÏ {}] LT",lastWeek:function(){return 6===this.day()?"[Ïο ÏÏοηγοÏμενο] dddd [{}] LT":"[Ïην ÏÏοηγοÏμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(e,i){var s=this._calendarEl[e],r=i&&i.hours();return t(s)&&(s=s.apply(i)),s.replace("{}",r%12==1?"ÏÏη":"ÏÏιÏ")},relativeTime:{future:"Ïε %s",past:"%s ÏÏιν",s:"λίγα δεÏ
ÏεÏÏλεÏÏα",ss:"%d δεÏ
ÏεÏÏλεÏÏα",m:"Îνα λεÏÏÏ",mm:"%d λεÏÏά",h:"μία ÏÏα",hh:"%d ÏÏεÏ",d:"μία μÎÏα",dd:"%d μÎÏεÏ",M:"ÎÎ½Î±Ï Î¼Î®Î½Î±Ï",MM:"%d μήνεÏ",y:"ÎÎ½Î±Ï ÏÏÏνοÏ",yy:"%d ÏÏÏνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(i(5093))},4697:function(e,t,i){!function(e){"use strict";function t(e,t,i,s){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[i][0]:r[i][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%
2d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(5093))},4903:function(e,t,i){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_MÉkalo_ZuwÉnkalo_Zuluyekalo_Utikalo_SÉtanburukalo_ÉkutÉburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_MÉ_Zuw_Zul_Uti_SÉt_Éku_Now_Des".split("_"),weekdays:"Kari_NtÉnÉn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_NtÉ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lÉrÉ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lÉrÉ] HH:mm"},calendar:{sameDay:"[Bi lÉrÉ] LT",nextDay:"[Sini lÉrÉ] LT",nextWeek:"dddd [don lÉrÉ] LT",lastDay:"[Kunu lÉrÉ] LT",lastWeek:"dddd [tÉmÉnen lÉrÉ] LT",sameElse:"L"},relativeTime:{future:"%s kÉnÉ",past:"a bÉ %s bÉ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lÉrÉ kelen",hh:"lÉrÉ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(i(5093))},5050:function(e,t,i){!function(e){"use strict";var t={1:"à«§",2:"૨",3:"à«©",4:"૪",5:"à««",6:"૬",7:"à«",8:"à«®",9:"૯",0:"૦"},i={"à«§":"1","૨":"2","à«©":"3","૪":"4","à««":"5","૬":"6","à«":"7","à«®":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"àªàª¾àª¨à«àª¯à«àªàª°à«_ફà«àª¬à«àª°à«àªàª°à«_મારà«àª_àªàªªà«àª°àª¿àª²_મà«_àªà«àª¨_àªà«àª²àª¾àª_àªàªàª¸à«àª_સપà«àªà«àª®à«àª¬àª°_àªàªà«àªà«àª¬àª°_નવà«àª®à«àª¬àª°_ડિસà«àª®à«àª¬àª°".split("_"),monthsShort:"àªàª¾àª¨à«àª¯à«._ફà«àª¬à«àª°à«._મારà«àª_àªàªªà«àª°àª¿._મà«_àªà«àª¨_àªà«àª²àª¾._àªàª._સપà«àªà«._àªàªà«àªà«._નવà«._ડિસà«.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સà«àª®àªµàª¾àª°_મàªàªàª³àªµàª¾àª°_બà«àª§à«àªµàª¾àª°_àªà«àª°à«àªµàª¾àª°_શà«àªà«àª°àªµàª¾àª°_શનિવાર".split("_"),weekdaysShort:"રવિ_સà«àª®_મàªàªàª³_બà«àª§à«_àªà«àª°à«_શà«àªà«àª°_શનિ".split("_"),weekdaysMin:"ર_સà«_મàª_બà«_àªà«_શà«_શ".split("_"),longDateFormat:{LT:"A h:mm વાàªà«àª¯à«",LTS:"A h:mm:ss વાàªà«àª¯à«",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાàªà«àª¯à«",LLLL:"dddd, D MMMM YYYY, A h:mm વાàªà«àª¯à«"},calendar:{sameDay:"[àªàª] LT",nextDay:"[àªàª¾àª²à«] LT",nextWeek:"dddd, LT",lastDay:"[àªàªàªàª¾àª²à«] LT",lastWeek:"[પાàªàª²àª¾] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહà«àª²àª¾",s:"àª
મà«àª પળà«",ss:"%d સà«àªàªàª¡",m:"àªàª મિનિàª",mm:"%d મિનિàª",h:"àªàª àªàª²àª¾àª",hh:"%d àªàª²àª¾àª",d:"àªàª દિવસ",dd:"%d દિવસ",M:"àªàª મહિનà«",MM:"%d મહિનà«",y:"àªàª વરà«àª·",yy:"%d વરà«àª·"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬à«à«®à«¯à«¦]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપà«àª°|સવાર|સાàªàª/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપà«àª°"===t?e>=10?e:e+12:"સાàªàª"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"રાત":e<10?"સવાર":e<17?"બપà«àª°":e<20?"સાàªàª":"રાત"},week:{dow:0,doy:6}})}(i(5093))},5093:function(e,t,i){(e=i.nmd(e)).exports=function(){"use strict";var t,s;function r(){return t.apply(null,arguments)}function n(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(e,t))return!1;return!0}function h(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var i,s=[],r=e.length;for(i=0;i<r;++i)s.push(t(e[i],i));return s}
vendor: 13,966 bytes, line 2
2function m(e,t){for(var i in t)l(t,i)&&(e[i]=t[i]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,i,s){return qi(e,t,i,s,!0).utc()}function g(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function y(e){return null==e._pf&&(e._pf=g()),e._pf}function _(e){var t=null,i=!1,r=e._d&&!isNaN(e._d.getTime());return r&&(t=y(e),i=s.call(t.parsedDateParts,(function(e){return null!=e})),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i),e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?r:(e._isValid=r,e._isValid)}function v(e){var t=p(NaN);return null!=e?m(y(t),e):y(t).userInvalidated=!0,t}s=Array.prototype.some?Array.prototype.some:function(e){var t,i=Object(this),s=i.length>>>0;for(t=0;t<s;t++)if(t in i&&e.call(this,i[t],t,i))return!0;return!1};var b=r.momentProperties=[],w=!1;function T(e,t){var i,s,r,n=b.length;if(h(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),h(t._i)||(e._i=t._i),h(t._f)||(e._f=t._f),h(t._l)||(e._l=t._l),h(t._strict)||(e._strict=t._strict),h(t._tzm)||(e._tzm=t._tzm),h(t._isUTC)||(e._isUTC=t._isUTC),h(t._offset)||(e._offset=t._offset),h(t._pf)||(e._pf=y(t)),h(t._locale)||(e._locale=t._locale),n>0)for(i=0;i<n;i++)h(r=t[s=b[i]])||(e[s]=r);return e}function M(e){T(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function S(e){return e instanceof M||null!=e&&null!=e._isAMomentObject}function L(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,t){var i=!0;return m((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),i){var s,n,a,o=[],d=arguments.length;for(n=0;n<d;n++){if(s="","object"==typeof arguments[n]){for(a in s+="\n["+n+"] ",arguments[0])l(arguments[0],a)&&(s+=a+": "+arguments[0][a]+", ");s=s.slice(0,-2)}else s=arguments[n];o.push(s)}L(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),i=!1}return t.apply(this,arguments)}),t)}var E,D={};function x(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),D[e]||(L(t),D[e]=!0)}function A(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e){var t,i;for(i in e)l(e,i)&&(A(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function C(e,t){var i,s=m({},e);for(i in t)l(t,i)&&(o(e[i])&&o(t[i])?(s[i]={},m(s[i],e[i]),m(s[i],t[i])):null!=t[i]?s[i]=t[i]:delete s[i]);for(i in e)l(e,i)&&!l(t,i)&&o(e[i])&&(s[i]=m({},s[i]));return s}function I(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,i=[];for(t in e)l(e,t)&&i.push(t);return i};var R={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function O(e,t,i){var s=this._calendar[e]||this._calendar.sameElse;return A(s)?s.call(t,i):s}function Y(e,t,i){var s=""+Math.abs(e),r=t-s.length;return(e>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+s}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,$=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},B={};function H(e,t,i,s){var r=s;"string"==typeof s&&(r=function(){return this[s]()}),e&&(B[e]=r),t&&(B[t[0]]=function(){return Y(r.apply(this,arguments),t[1],t[2])}),i&&(B[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function j(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function U(e){var t,i,s=e.match(F);for(t=0,i=s.length;t<i;t++)B[s[t]]?s[t]=B[s[t]]:s[t]=j(s[t]);return function(t){var r,n="";for(r=0;r<i;r++)n+=A(s[r])?s[r].call(t,e):s[r];return n}}function V(e,t){return e.isValid()?(t=G(t,e.localeData()),N[t]=N[t]||U(t),N[t](e)):e.localeData().invalidDate()}function G(e,t){var i=5;function s(e){return t.longDateFormat(e)||e}for($.lastIndex=0;i>=0&&$.test(e);)e=e.replace($,s),$.lastIndex=0,i-=1;return e}var z={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function W(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match(F).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var q="Invalid date";function K(){return this._invalidDate}var J="%d",X=/\d{1,2}/;function Q(e){return this._ordinal.replace("%d",e)}var Z={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,i,s){var r=this._relativeTime[i];return A(r)?r(e,t,i,s):r.replace(/%d/i,e)}function te(e,t){var i=this._relativeTime[e>0?"future":"past"];return A(i)?i(t):i.replace(/%s/i,t)}var ie={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function se(e){return"string"==typeof e?ie[e]||ie[e.toLowerCase()]:void 0}function re(e){var t,i,s={};for(i in e)l(e,i)&&(t=se(i))&&(s[t]=e[i]);return s}var ne={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ae(e){var t,i=[];for(t in e)l(e,t)&&i.push({unit:t,priority:ne[t]});return i.sort((function(e,t){return e.priority-t.priority})),i}var oe,le=/\d/,de=/\d\d/,he=/\d{3}/,ce=/\d{4}/,ue=/[+-]?\d{6}/,fe=/\d\d?/,me=/\d\d\d\d?/,pe=/\d\d\d\d\d\d?/,ge=/\d{1,3}/,ye=/\d{1,4}/,_e=/[+-]?\d{1,6}/,ve=/\d+/,be=/[+-]?\d+/,we=/Z|[+-]\d\d:?\d\d/gi,Te=/Z|[+-]\d\d(?::?\d\d)?/gi,Me=/[+-]?\d+(\.\d{1,3})?/,Se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Le=/^[1-9]\d?/,ke=/^([1-9]\d|\d)/;function Ee(e,t,i){oe[e]=A(t)?t:function(e,s){return e&&i?i:t}}function De(e,t){return l(oe,e)?oe[e](t._strict,t._locale):new RegExp(xe(e))}function xe(e){return Ae(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,i,s,r){return t||i||s||r})))}function Ae(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Pe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ce(e){var t=+e,i=0;return 0!==t&&isFinite(t)&&(i=Pe(t)),i}oe={};var Ie={};function Re(e,t){var i,s,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,i){i[t]=Ce(e)}),s=e.length,i=0;i<s;i++)Ie[e[i]]=r}function Oe(e,t){Re(e,(function(e,i,s,r){s._w=s._w||{},t(e,s._w,s,r)}))}function Ye(e,t,i){null!=t&&l(Ie,e)&&Ie[e](t,i._a,i,e)}function Fe(e){return e%4==0&&e%100!=0||e%400==0}var $e=0,Ne=1,Be=2,He=3,je=4,Ue=5,Ve=6,Ge=7,ze=8;function We(e){return Fe(e)?366:365}H("Y",0,0,(function(){var e=this.year();return e<=9999?Y(e,4):"+"+e})),H(0,["YY",2],0,(function(){return this.year()%100})),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),Ee("Y",be),Ee("YY",fe,de),Ee("YYYY",ye,ce),Ee("YYYYY",_e,ue),Ee("YYYYYY",_e,ue),Re(["YYYYY","YYYYYY"],$e),Re("YYYY",(function(e,t){t[$e]=2===e.length?r.parseTwoDigitYear(e):Ce(e)})),Re("YY",(function(e,t){t[$e]=r.parseTwoDigitYear(e)})),Re("Y",(function(e,t){t[$e]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return Ce(e)+(Ce(e)>68?1900:2e3)};var qe,Ke=Xe("FullYear",!0);function Je(){return Fe(this.year())}function Xe(e,t){return function(i){return null!=i?(Ze(this,e,i),r.updateOffset(this,t),this):Qe(this,e)}}function Qe(e,t){if(!e.isValid())return NaN;var i=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return s?i.getUTCSeconds():i.getSeconds();case"Minutes":return s?i.getUTCMinutes():i.getMinutes();case"Hours":return s?i.getUTCHours():i.getHours();case"Date":return s?i.getUTCDate():i.getDate();case"Day":return s?i.getUTCDay():i.getDay();case"Month":return s?i.getUTCMonth():i.getMonth();case"FullYear":return s?i.getUTCFullYear():i.getFullYear();default:return NaN}}function Ze(e,t,i){var s,r,n,a,o;if(e.isValid()&&!isNaN(i)){switch(s=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?s.setUTCMilliseconds(i):s.setMilliseconds(i));case"Seconds":return void(r?s.setUTCSeconds(i):s.setSeconds(i));case"Minutes":return void(r?s.setUTCMinutes(i):s.setMinutes(i));case"Hours":return void(r?s.setUTCHours(i):s.setHours(i));case"Date":return void(r?s.setUTCDate(i):s.setDate(i));case"FullYear":break;default:return}n=i,a=e.month(),o=29!==(o=e.date())||1!==a||Fe(n)?o:28,r?s.setUTCFullYear(n,a,o):s.setFullYear(n,a,o)}}function et(e){return A(this[e=se(e)])?this[e]():this}function tt(e,t){if("object"==typeof e){var i,s=ae(e=re(e)),r=s.length;for(i=0;i<r;i++)this[s[i].unit](e[s[i].unit])}else if(A(this[e=se(e)]))return this[e](t);return this}function it(e,t){return(e%t+t)%t}function st(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=it(t,12);return e+=(t-i)/12,1===i?Fe(e)?29:28:31-i%7%2}qe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},H("M",["MM",2],"Mo",(function(){return this.month()+1})),H("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),H("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),Ee("M",fe,Le),Ee("MM",fe,de),Ee("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ee("MMMM",(function(e,t){return t.monthsRegex(e)})),Re(["M","MM"],(function(e,t){t[Ne]=Ce(e)-1})),Re(["MMM","MMMM"],(function(e,t,i,s){var r=i._locale.monthsParse(e,s,i._strict);null!=r?t[Ne]=r:y(i).invalidMonth=e}));var rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),at=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ot=Se,lt=Se;function dt(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||at).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function ht(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[at.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ct(e,t,i){var s,r,n,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)n=p([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(n,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(r=qe.call(this._shortMonthsParse,a))?r:null:-1!==(r=qe.call(this._longMonthsParse,a))?r:null:"MMM"===t?-1!==(r=qe.call(this._shortMonthsParse,a))||-1!==(r=qe.call(this._longMonthsParse,a))?r:null:-1!==(r=qe.call(this._longMonthsParse,a))||-1!==(r=qe.call(this._shortMonthsParse,a))?r:null}function ut(e,t,i){var s,r,n;if(this._monthsParseExact)return ct.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(r=p([2e3,s]),i&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[s]||(n="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[s]=new RegExp(n.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(i&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!i&&this._monthsParse[s].test(e))return s}}function ft(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Ce(t);else if(!c(t=e.localeData().monthsParse(t)))return e;var i=t,s=e.date();return s=s<29?s:Math.min(s,st(e.year(),i)),e._isUTC?e._d.setUTCMonth(i,s):e._d.setMonth(i,s),e}function mt(e){return null!=e?(ft(this,e),r.updateOffset(this,!0),this):Qe(this,"Month")}function pt(){return st(this.year(),this.month())}function gt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||_t.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=ot),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function yt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||_t.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=lt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function _t(){function e(e,t){return t.length-e.length}var t,i,s,r,n=[],a=[],o=[];for(t=0;t<12;
vendor: 7,584 bytes, line 2
2t++)i=p([2e3,t]),s=Ae(this.monthsShort(i,"")),r=Ae(this.months(i,"")),n.push(s),a.push(r),o.push(r),o.push(s);n.sort(e),a.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function vt(e,t,i,s,r,n,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,i,s,r,n,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,i,s,r,n,a),o}function bt(e){var t,i;return e<100&&e>=0?((i=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,i)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,i){var s=7+t-i;return-(7+bt(e,0,s).getUTCDay()-t)%7+s-1}function Tt(e,t,i,s,r){var n,a,o=1+7*(t-1)+(7+i-s)%7+wt(e,s,r);return o<=0?a=We(n=e-1)+o:o>We(e)?(n=e+1,a=o-We(e)):(n=e,a=o),{year:n,dayOfYear:a}}function Mt(e,t,i){var s,r,n=wt(e.year(),t,i),a=Math.floor((e.dayOfYear()-n-1)/7)+1;return a<1?s=a+St(r=e.year()-1,t,i):a>St(e.year(),t,i)?(s=a-St(e.year(),t,i),r=e.year()+1):(r=e.year(),s=a),{week:s,year:r}}function St(e,t,i){var s=wt(e,t,i),r=wt(e+1,t,i);return(We(e)-s+r)/7}function Lt(e){return Mt(e,this._week.dow,this._week.doy).week}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),Ee("w",fe,Le),Ee("ww",fe,de),Ee("W",fe,Le),Ee("WW",fe,de),Oe(["w","ww","W","WW"],(function(e,t,i,s){t[s.substr(0,1)]=Ce(e)}));var kt={dow:0,doy:6};function Et(){return this._week.dow}function Dt(){return this._week.doy}function xt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function At(e){var t=Mt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Pt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ct(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function It(e,t){return e.slice(t,7).concat(e.slice(0,t))}H("d",0,"do","day"),H("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),H("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),H("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),Ee("d",fe),Ee("e",fe),Ee("E",fe),Ee("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ee("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ee("dddd",(function(e,t){return t.weekdaysRegex(e)})),Oe(["dd","ddd","dddd"],(function(e,t,i,s){var r=i._locale.weekdaysParse(e,s,i._strict);null!=r?t.d=r:y(i).invalidWeekday=e})),Oe(["d","e","E"],(function(e,t,i,s){t[s]=Ce(e)}));var Rt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ot="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Yt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ft=Se,$t=Se,Nt=Se;function Bt(e,t){var i=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?It(i,this._week.dow):e?i[e.day()]:i}function Ht(e){return!0===e?It(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function jt(e){return!0===e?It(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ut(e,t,i){var s,r,n,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)n=p([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(n,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(r=qe.call(this._weekdaysParse,a))?r:null:"ddd"===t?-1!==(r=qe.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=qe.call(this._minWeekdaysParse,a))?r:null:"dddd"===t?-1!==(r=qe.call(this._weekdaysParse,a))||-1!==(r=qe.call(this._shortWeekdaysParse,a))||-1!==(r=qe.call(this._minWeekdaysParse,a))?r:null:"ddd"===t?-1!==(r=qe.call(this._shortWeekdaysParse,a))||-1!==(r=qe.call(this._weekdaysParse,a))||-1!==(r=qe.call(this._minWeekdaysParse,a))?r:null:-1!==(r=qe.call(this._minWeekdaysParse,a))||-1!==(r=qe.call(this._weekdaysParse,a))||-1!==(r=qe.call(this._shortWeekdaysParse,a))?r:null}function Vt(e,t,i){var s,r,n;if(this._weekdaysParseExact)return Ut.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(r=p([2e3,1]).day(s),i&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(n="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[s]=new RegExp(n.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(i&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(i&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!i&&this._weekdaysParse[s].test(e))return s}}function Gt(e){if(!this.isValid())return null!=e?this:NaN;var t=Qe(this,"Day");return null!=e?(e=Pt(e,this.localeData()),this.add(e-t,"d")):t}function zt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Wt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ct(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function qt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ft),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Kt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$t),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xt(){function e(e,t){return t.length-e.length}var t,i,s,r,n,a=[],o=[],l=[],d=[];for(t=0;t<7;t++)i=p([2e3,1]).day(t),s=Ae(this.weekdaysMin(i,"")),r=Ae(this.weekdaysShort(i,"")),n=Ae(this.weekdays(i,"")),a.push(s),o.push(r),l.push(n),d.push(s),d.push(r),d.push(n);a.sort(e),o.sort(e),l.sort(e),d.sort(e),this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qt(){return this.hours()%12||12}function Zt(){return this.hours()||24}function ei(e,t){H(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function ti(e,t){return t._meridiemParse}function ii(e){return"p"===(e+"").toLowerCase().charAt(0)}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Qt),H("k",["kk",2],0,Zt),H("hmm",0,0,(function(){return""+Qt.apply(this)+Y(this.minutes(),2)}
vendor: 22,304 bytes, line 2
2)),H("hmmss",0,0,(function(){return""+Qt.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)})),H("Hmm",0,0,(function(){return""+this.hours()+Y(this.minutes(),2)})),H("Hmmss",0,0,(function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)})),ei("a",!0),ei("A",!1),Ee("a",ti),Ee("A",ti),Ee("H",fe,ke),Ee("h",fe,Le),Ee("k",fe,Le),Ee("HH",fe,de),Ee("hh",fe,de),Ee("kk",fe,de),Ee("hmm",me),Ee("hmmss",pe),Ee("Hmm",me),Ee("Hmmss",pe),Re(["H","HH"],He),Re(["k","kk"],(function(e,t,i){var s=Ce(e);t[He]=24===s?0:s})),Re(["a","A"],(function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e})),Re(["h","hh"],(function(e,t,i){t[He]=Ce(e),y(i).bigHour=!0})),Re("hmm",(function(e,t,i){var s=e.length-2;t[He]=Ce(e.substr(0,s)),t[je]=Ce(e.substr(s)),y(i).bigHour=!0})),Re("hmmss",(function(e,t,i){var s=e.length-4,r=e.length-2;t[He]=Ce(e.substr(0,s)),t[je]=Ce(e.substr(s,2)),t[Ue]=Ce(e.substr(r)),y(i).bigHour=!0})),Re("Hmm",(function(e,t,i){var s=e.length-2;t[He]=Ce(e.substr(0,s)),t[je]=Ce(e.substr(s))})),Re("Hmmss",(function(e,t,i){var s=e.length-4,r=e.length-2;t[He]=Ce(e.substr(0,s)),t[je]=Ce(e.substr(s,2)),t[Ue]=Ce(e.substr(r))}));var si=/[ap]\.?m?\.?/i,ri=Xe("Hours",!0);function ni(e,t,i){return e>11?i?"pm":"PM":i?"am":"AM"}var ai,oi={calendar:R,longDateFormat:z,invalidDate:q,ordinal:J,dayOfMonthOrdinalParse:X,relativeTime:Z,months:rt,monthsShort:nt,week:kt,weekdays:Rt,weekdaysMin:Yt,weekdaysShort:Ot,meridiemParse:si},li={},di={};function hi(e,t){var i,s=Math.min(e.length,t.length);for(i=0;i<s;i+=1)if(e[i]!==t[i])return i;return s}function ci(e){return e?e.toLowerCase().replace("_","-"):e}function ui(e){for(var t,i,s,r,n=0;n<e.length;){for(t=(r=ci(e[n]).split("-")).length,i=(i=ci(e[n+1]))?i.split("-"):null;t>0;){if(s=mi(r.slice(0,t).join("-")))return s;if(i&&i.length>=t&&hi(r,i)>=t-1)break;t--}n++}return ai}function fi(e){return!(!e||!e.match("^[^/\\\\]*$"))}function mi(t){var s=null;if(void 0===li[t]&&e&&e.exports&&fi(t))try{s=ai._abbr,i(5358)("./"+t),pi(s)}catch(e){li[t]=null}return li[t]}function pi(e,t){var i;return e&&((i=h(t)?_i(e):gi(e,t))?ai=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ai._abbr}function gi(e,t){if(null!==t){var i,s=oi;if(t.abbr=e,null!=li[e])x("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=li[e]._config;else if(null!=t.parentLocale)if(null!=li[t.parentLocale])s=li[t.parentLocale]._config;else{if(null==(i=mi(t.parentLocale)))return di[t.parentLocale]||(di[t.parentLocale]=[]),di[t.parentLocale].push({name:e,config:t}),null;s=i._config}return li[e]=new I(C(s,t)),di[e]&&di[e].forEach((function(e){gi(e.name,e.config)})),pi(e),li[e]}return delete li[e],null}function yi(e,t){if(null!=t){var i,s,r=oi;null!=li[e]&&null!=li[e].parentLocale?li[e].set(C(li[e]._config,t)):(null!=(s=mi(e))&&(r=s._config),t=C(r,t),null==s&&(t.abbr=e),(i=new I(t)).parentLocale=li[e],li[e]=i),pi(e)}else null!=li[e]&&(null!=li[e].parentLocale?(li[e]=li[e].parentLocale,e===pi()&&pi(e)):null!=li[e]&&delete li[e]);return li[e]}function _i(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ai;if(!a(e)){if(t=mi(e))return t;e=[e]}return ui(e)}function vi(){return E(li)}function bi(e){var t,i=e._a;return i&&-2===y(e).overflow&&(t=i[Ne]<0||i[Ne]>11?Ne:i[Be]<1||i[Be]>st(i[$e],i[Ne])?Be:i[He]<0||i[He]>24||24===i[He]&&(0!==i[je]||0!==i[Ue]||0!==i[Ve])?He:i[je]<0||i[je]>59?je:i[Ue]<0||i[Ue]>59?Ue:i[Ve]<0||i[Ve]>999?Ve:-1,y(e)._overflowDayOfYear&&(t<$e||t>Be)&&(t=Be),y(e)._overflowWeeks&&-1===t&&(t=Ge),y(e)._overflowWeekday&&-1===t&&(t=ze),y(e).overflow=t),e}var wi=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ti=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Mi=/Z|[+-]\d\d(?::?\d\d)?/,Si=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Li=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ki=/^\/?Date\((-?\d+)/i,Ei=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Di={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xi(e){var t,i,s,r,n,a,o=e._i,l=wi.exec(o)||Ti.exec(o),d=Si.length,h=Li.length;if(l){for(y(e).iso=!0,t=0,i=d;t<i;t++)if(Si[t][1].exec(l[1])){r=Si[t][0],s=!1!==Si[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,i=h;t<i;t++)if(Li[t][1].exec(l[3])){n=(l[2]||" ")+Li[t][0];break}if(null==n)return void(e._isValid=!1)}if(!s&&null!=n)return void(e._isValid=!1);if(l[4]){if(!Mi.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=r+(n||"")+(a||""),Hi(e)}else e._isValid=!1}function Ai(e,t,i,s,r,n){var a=[Pi(e),nt.indexOf(t),parseInt(i,10),parseInt(s,10),parseInt(r,10)];return n&&a.push(parseInt(n,10)),a}function Pi(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Ci(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ii(e,t,i){return!e||Ot.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(y(i).weekdayMismatch=!0,i._isValid=!1,!1)}function Ri(e,t,i){if(e)return Di[e];if(t)return 0;var s=parseInt(i,10),r=s%100;return(s-r)/100*60+r}function Oi(e){var t,i=Ei.exec(Ci(e._i));if(i){if(t=Ai(i[4],i[3],i[2],i[5],i[6],i[7]),!Ii(i[1],t,e))return;e._a=t,e._tzm=Ri(i[8],i[9],i[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}function Yi(e){var t=ki.exec(e._i);null===t?(xi(e),!1===e._isValid&&(delete e._isValid,Oi(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Fi(e,t,i){return null!=e?e:null!=t?t:i}function $i(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Ni(e){var t,i,s,r,n,a=[];if(!e._d){for(s=$i(e),e._w&&null==e._a[Be]&&null==e._a[Ne]&&Bi(e),null!=e._dayOfYear&&(n=Fi(e._a[$e],s[$e]),(e._dayOfYear>We(n)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),i=bt(n,0,e._dayOfYear),e._a[Ne]=i.getUTCMonth(),e._a[Be]=i.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=s[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[He]&&0===e._a[je]&&0===e._a[Ue]&&0===e._a[Ve]&&(e._nextDay=!0,e._a[He]=0),e._d=(e._useUTC?bt:vt).apply(null,a),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[He]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(y(e).weekdayMismatch=!0)}}function Bi(e){var t,i,s,r,n,a,o,l,d;null!=(t=e._w).GG||null!=t.W||null!=t.E?(n=1,a=4,i=Fi(t.GG,e._a[$e],Mt(Ki(),1,4).year),s=Fi(t.W,1),((r=Fi(t.E,1))<1||r>7)&&(l=!0)):(n=e._locale._week.dow,a=e._locale._week.doy,d=Mt(Ki(),n,a),i=Fi(t.gg,e._a[$e],d.year),s=Fi(t.w,d.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+n,(t.e<0||t.e>6)&&(l=!0)):r=n),s<1||s>St(i,n,a)?y(e)._overflowWeeks=!0:null!=l?y(e)._overflowWeekday=!0:(o=Tt(i,s,r,n,a),e._a[$e]=o.year,e._dayOfYear=o.dayOfYear)}function Hi(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],y(e).empty=!0;var t,i,s,n,a,o,l,d=""+e._i,h=d.length,c=0;for(l=(s=G(e._f,e._locale).match(F)||[]).length,t=0;t<l;t++)n=s[t],(i=(d.match(De(n,e))||[])[0])&&((a=d.substr(0,d.indexOf(i))).length>0&&y(e).unusedInput.push(a),d=d.slice(d.indexOf(i)+i.length),c+=i.length),B[n]?(i?y(e).empty=!1:y(e).unusedTokens.push(n),Ye(n,i,e)):e._strict&&!i&&y(e).unusedTokens.push(n);y(e).charsLeftOver=h-c,d.length>0&&y(e).unusedInput.push(d),e._a[He]<=12&&!0===y(e).bigHour&&e._a[He]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[He]=ji(e._locale,e._a[He],e._meridiem),null!==(o=y(e).era)&&(e._a[$e]=e._locale.erasConvertYear(o,e._a[$e])),Ni(e),bi(e)}else Oi(e);else xi(e)}function ji(e,t,i){var s;return null==i?t:null!=e.meridiemHour?e.meridiemHour(t,i):null!=e.isPM?((s=e.isPM(i))&&t<12&&(t+=12),s||12!==t||(t=0),t):t}function Ui(e){var t,i,s,r,n,a,o=!1,l=e._f.length;if(0===l)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<l;r++)n=0,a=!1,t=T({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Hi(t),_(t)&&(a=!0),n+=y(t).charsLeftOver,n+=10*y(t).unusedTokens.length,y(t).score=n,o?n<s&&(s=n,i=t):(null==s||n<s||a)&&(s=n,i=t,a&&(o=!0));m(e,i||t)}function Vi(e){if(!e._d){var t=re(e._i),i=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,i,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Ni(e)}}function Gi(e){var t=new M(bi(zi(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function zi(e){var t=e._i,i=e._f;return e._locale=e._locale||_i(e._l),null===t||void 0===i&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new M(bi(t)):(u(t)?e._d=t:a(i)?Ui(e):i?Hi(e):Wi(e),_(e)||(e._d=null),e))}function Wi(e){var t=e._i;h(t)?e._d=new Date(r.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Yi(e):a(t)?(e._a=f(t.slice(0),(function(e){return parseInt(e,10)})),Ni(e)):o(t)?Vi(e):c(t)?e._d=new Date(t):r.createFromInputFallback(e)}function qi(e,t,i,s,r){var n={};return!0!==t&&!1!==t||(s=t,t=void 0),!0!==i&&!1!==i||(s=i,i=void 0),(o(e)&&d(e)||a(e)&&0===e.length)&&(e=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=r,n._l=i,n._i=e,n._f=t,n._strict=s,Gi(n)}function Ki(e,t,i,s){return qi(e,t,i,s,!1)}r.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Ji=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Ki.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),Xi=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Ki.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}));function Qi(e,t){var i,s;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Ki();for(i=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](i)||(i=t[s]);return i}function Zi(){return Qi("isBefore",[].slice.call(arguments,0))}function es(){return Qi("isAfter",[].slice.call(arguments,0))}var ts=function(){return Date.now?Date.now():+new Date},is=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ss(e){var t,i,s=!1,r=is.length;for(t in e)if(l(e,t)&&(-1===qe.call(is,t)||null!=e[t]&&isNaN(e[t])))return!1;for(i=0;i<r;++i)if(e[is[i]]){if(s)return!1;parseFloat(e[is[i]])!==Ce(e[is[i]])&&(s=!0)}return!0}function rs(){return this._isValid}function ns(){return Ds(NaN)}function as(e){var t=re(e),i=t.year||0,s=t.quarter||0,r=t.month||0,n=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,l=t.minute||0,d=t.second||0,h=t.millisecond||0;this._isValid=ss(t),this._milliseconds=+h+1e3*d+6e4*l+1e3*o*60*60,this._days=+a+7*n,this._months=+r+3*s+12*i,this._data={},this._locale=_i(),this._bubble()}function os(e){return e instanceof as}function ls(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ds(e,t,i){var s,r=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),a=0;for(s=0;s<r;s++)(i&&e[s]!==t[s]||!i&&Ce(e[s])!==Ce(t[s]))&&a++;return a+n}function hs(e,t){H(e,0,0,(function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+Y(~~(e/60),2)+t+Y(~~e%60,2)}))}hs("Z",":"),hs("ZZ",""),Ee("Z",Te),Ee("ZZ",Te),Re(["Z","ZZ"],(function(e,t,i){i._useUTC=!0,i._tzm=us(Te,e)}));var cs=/([\+\-]|\d\d)/gi;function us(e,t){var i,s,r=(t||"").match(e);return null===r?null:0===(s=60*(i=((r[r.length-1]||[])+"").match(cs)||["-",0,0])[1]+Ce(i[2]))?0:"+"===i[0]?s:-s}function fs(e,t){var i,s;return t._isUTC?(i=t.clone(),s=(S(e)||u(e)?e.valueOf():Ki(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+s),r.updateOffset(i,!1),i):Ki(e).local()}function ms(e){return-Math.round(e._d.getTimezoneOffset())}function ps(e,t,i){var s,n=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=us(Te,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&t&&(s=ms(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),n!==e&&(!t||this._changeInProgress?Is(this,Ds(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?n:ms(this)}function gs(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function ys(e){return this.utcOffset(0,e)}function _s(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ms(this),"m")),this}function vs(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=us(we,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function bs(e){return!!this.isValid()&&(e=e?Ki(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function ws(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ts(){if(!h(this._isDSTShifted))return this._isDSTShifted;var e,t={};return T(t,this),(t=zi(t))._a?(e=t._isUTC?p(t._a):Ki(t._a),this._isDSTShifted=this.isValid()&&ds(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ms(){return!!this.isValid()&&!this._isUTC}function Ss(){return!!this.isValid()&&this._isUTC}function Ls(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var ks=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Es=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ds(e,t){var i,s,r,n=e,a=null;return os(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(a=ks.exec(e))?(i="-"===a[1]?-1:1,n={y:0,d:Ce(a[Be])*i,h:Ce(a[He])*i,m:Ce(a[je])*i,s:Ce(a[Ue])*i,ms:Ce(ls(1e3*a[Ve]))*i}):(a=Es.exec(e))?(i="-"===a[1]?-1:1,n={y:xs(a[2],i),M:xs(a[3],i),w:xs(a[4],i),d:xs(a[5],i),h:xs(a[6],i),m:xs(a[7],i),s:xs(a[8],i)}):null==n?n={}:"object"==typeof n&&("from"in n||"to"in n)&&(r=Ps(Ki(n.from),Ki(n.to)),(n={}).ms=r.milliseconds,n.M=r.months),s=new as(n),os(e)&&l(e,"_locale")&&(s._locale=e._locale),os(e)&&l(e,"_isValid")&&(s._isValid=e._isValid),s}function xs(e,t){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*t}function As(e,t){var i={};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function Ps(e,t){var i;return e.isValid()&&t.isValid()?(t=fs(t,e),e.isBefore(t)?i=As(e,t):((i=As(t,e)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function Cs(e,t){return function(i,s){var r;return null===s||isNaN(+s)||(x(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=s,s=r),Is(this,Ds(i,s),e),this}}function Is(e,t,i,s){var n=t._milliseconds,a=ls(t._days),o=ls(t._months);e.isValid()&&(s=null==s||s,o&&ft(e,Qe(e,"Month")+o*i),a&&Ze(e,"Date",Qe(e,"Date")+a*i),n&&e._d.setTime(e._d.valueOf()+n*i),s&&r.updateOffset(e,a||o))}Ds.fn=as.prototype,Ds.invalid=ns;var Rs=Cs(1,"add"),Os=Cs(-1,"subtract");function Ys(e){return"string"==typeof e||e instanceof String}function Fs(e){return S(e)||u(e)||Ys(e)||c(e)||Ns(e)||$s(e)||null==e}function $s(e){var t,i,s=o(e)&&!d(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=n.length;for(t=0;t<a;t+=1)i=n[t],r=r||l(e,i);return s&&r}function Ns(e){var t=a(e),i=!1;return t&&(i=0===e.filter((function(t){return!c(t)&&Ys(e)})).length),t&&i}function Bs(e){var t,i,s=o(e)&&!d(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<n.length;t+=1)i=n[t],r=r||l(e,i);return s&&r}function Hs(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function js(e,t){1===arguments.length&&(arguments[0]?Fs(arguments[0])?(e=arguments[0],t=void 0):Bs(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var i=e||Ki(),s=fs(i,this).startOf("day"),n=r.calendarFormat(this,s)||"sameElse",a=t&&(A(t[n])?t[n].call(this,i):t[n]);return this.format(a||this.localeData().calendar(n,this,Ki(i)))}function Us(){return new M(this)}function Vs(e,t){var i=S(e)?e:Ki(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=se(t)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())}function Gs(e,t){var i=S(e)?e:Ki(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=se(t)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())}function zs(e,t,i,s){var r=S(e)?e:Ki(e),n=S(t)?t:Ki(t);return!!(this.isValid()&&r.isValid()&&n.isValid())&&("("===(s=s||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===s[1]?this.isBefore(n,i):!this.isAfter(n,i))}function Ws(e,t){var i,s=S(e)?e:Ki(e);return!(!this.isValid()||!s.isValid())&&("millisecond"===(t=se(t)||"millisecond")?this.valueOf()===s.valueOf():(i=s.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))}function qs(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Ks(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Js(e,t,i){var s,r,n;if(!this.isValid())return NaN;if(!(s=fs(e,this)).isValid())return NaN;switch(r=6e4*(s.utcOffset()-this.utcOffset()),t=se(t)){case"year":n=Xs(this,s)/12;break;case"month":n=Xs(this,s);break;case"quarter":n=Xs(this,s)/3;break;case"second":n=(this-s)/1e3;break;case"minute":n=(this-s)/6e4;break;case"hour":n=(this-s)/36e5;break;case"day":n=(this-s-r)/864e5;break;case"week":n=(this-s-r)/6048e5;break;default:n=this-s}return i?n:Pe(n)}function Xs(e,t){if(e.date()<t.date())return-Xs(t,e);var i=12*(t.year()-e.year())+(t.month()-e.month()),s=e.clone().add(i,"months");return-(i+(t-s<0?(t-s)/(s-e.clone().add(i-1,"months")):(t-s)/(e.clone().add(i+1,"months")-s)))||0}function Qs(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Zs(e){if(!this.isValid())return null;var t=!0!==e,i=t?this.clone().utc():this;return i.year()<0||i.year()>9999?V(i,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):A(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(i,"Z")):V(i,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function er(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,i,s,r="moment",n="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",s=n+'[")]',this.format(e+t+i+s)}function tr(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)}function ir(e,t){return this.isValid()&&(S(e)&&e.isValid()||Ki(e).isValid())?Ds({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function sr(e){return this.from(Ki(),e)}function rr(e,t){return this.isValid()&&(S(e)&&e.isValid()||Ki(e).isValid())?Ds({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function nr(e){return this.to(Ki(),e)}function ar(e){var t;return void 0===e?this._locale._abbr:(null!=(t=_i(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var or=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function lr(){return this._locale}var dr=1e3,hr=60*dr,cr=60*hr,ur=3506328*cr;function fr(e,t){return(e%t+t)%t}function mr(e,t,i){return e<100&&e>=0?new Date(e+400,t,i)-ur:new Date(e,t,i).valueOf()}function pr(e,t,i){return e<100&&e>=0?Date.UTC(e+400,t,i)-ur:Date.UTC(e,t,i)}function gr(e){var t,i;if(void 0===(e=se(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?pr:mr,e){case"year":t=i(this.year(),0,1);break;case"quarter":t=i(this.year(),this.month()-this.month()%3,1);break;case"month":t=i(this.year(),this.month(),1);break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=i(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fr(t+(this._isUTC?0:this.utcOffset()*hr),cr);break;case"minute":t=this._d.valueOf(),t-=fr(t,hr);break;case"second":t=this._d.valueOf(),t-=fr(t,dr)}return this._d.setTime(t),r.updateOffset(this,!0),this}function yr(e){var t,i;if(void 0===(e=se(e))||"millisecond"===e||!this.isValid())return this;switch(i=this._isUTC?pr:mr,e){case"year":t=i(this.year()+1,0,1)-1;break;case"quarter":t=i(this.year(),this.month()-this.month()%3+3,1)-1;break;
vendor: 10,436 bytes, line 2
2case"month":t=i(this.year(),this.month()+1,1)-1;break;case"week":t=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=cr-fr(t+(this._isUTC?0:this.utcOffset()*hr),cr)-1;break;case"minute":t=this._d.valueOf(),t+=hr-fr(t,hr)-1;break;case"second":t=this._d.valueOf(),t+=dr-fr(t,dr)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function _r(){return this._d.valueOf()-6e4*(this._offset||0)}function vr(){return Math.floor(this.valueOf()/1e3)}function br(){return new Date(this.valueOf())}function wr(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Tr(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Mr(){return this.isValid()?this.toISOString():null}function Sr(){return _(this)}function Lr(){return m({},y(this))}function kr(){return y(this).overflow}function Er(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Dr(e,t){var i,s,n,a=this._eras||_i("en")._eras;for(i=0,s=a.length;i<s;++i)switch("string"==typeof a[i].since&&(n=r(a[i].since).startOf("day"),a[i].since=n.valueOf()),typeof a[i].until){case"undefined":a[i].until=1/0;break;case"string":n=r(a[i].until).startOf("day").valueOf(),a[i].until=n.valueOf()}return a}function xr(e,t,i){var s,r,n,a,o,l=this.eras();for(e=e.toUpperCase(),s=0,r=l.length;s<r;++s)if(n=l[s].name.toUpperCase(),a=l[s].abbr.toUpperCase(),o=l[s].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[s];break;case"NNNN":if(n===e)return l[s];break;case"NNNNN":if(o===e)return l[s]}else if([n,a,o].indexOf(e)>=0)return l[s]}function Ar(e,t){var i=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*i}function Pr(){var e,t,i,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e){if(i=this.clone().startOf("day").valueOf(),s[e].since<=i&&i<=s[e].until)return s[e].name;if(s[e].until<=i&&i<=s[e].since)return s[e].name}return""}function Cr(){var e,t,i,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e){if(i=this.clone().startOf("day").valueOf(),s[e].since<=i&&i<=s[e].until)return s[e].narrow;if(s[e].until<=i&&i<=s[e].since)return s[e].narrow}return""}function Ir(){var e,t,i,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e){if(i=this.clone().startOf("day").valueOf(),s[e].since<=i&&i<=s[e].until)return s[e].abbr;if(s[e].until<=i&&i<=s[e].since)return s[e].abbr}return""}function Rr(){var e,t,i,s,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(i=n[e].since<=n[e].until?1:-1,s=this.clone().startOf("day").valueOf(),n[e].since<=s&&s<=n[e].until||n[e].until<=s&&s<=n[e].since)return(this.year()-r(n[e].since).year())*i+n[e].offset;return this.year()}function Or(e){return l(this,"_erasNameRegex")||jr.call(this),e?this._erasNameRegex:this._erasRegex}function Yr(e){return l(this,"_erasAbbrRegex")||jr.call(this),e?this._erasAbbrRegex:this._erasRegex}function Fr(e){return l(this,"_erasNarrowRegex")||jr.call(this),e?this._erasNarrowRegex:this._erasRegex}function $r(e,t){return t.erasAbbrRegex(e)}function Nr(e,t){return t.erasNameRegex(e)}function Br(e,t){return t.erasNarrowRegex(e)}function Hr(e,t){return t._eraYearOrdinalRegex||ve}function jr(){var e,t,i,s,r,n=[],a=[],o=[],l=[],d=this.eras();for(e=0,t=d.length;e<t;++e)i=Ae(d[e].name),s=Ae(d[e].abbr),r=Ae(d[e].narrow),a.push(i),n.push(s),o.push(r),l.push(i),l.push(s),l.push(r);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function Ur(e,t){H(0,[e,e.length],0,t)}function Vr(e){return Jr.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Gr(e){return Jr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function zr(){return St(this.year(),1,4)}function Wr(){return St(this.isoWeekYear(),1,4)}function qr(){var e=this.localeData()._week;return St(this.year(),e.dow,e.doy)}function Kr(){var e=this.localeData()._week;return St(this.weekYear(),e.dow,e.doy)}function Jr(e,t,i,s,r){var n;return null==e?Mt(this,s,r).year:(t>(n=St(e,s,r))&&(t=n),Xr.call(this,e,t,i,s,r))}function Xr(e,t,i,s,r){var n=Tt(e,t,i,s,r),a=bt(n.year,0,n.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Qr(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),Ee("N",$r),Ee("NN",$r),Ee("NNN",$r),Ee("NNNN",Nr),Ee("NNNNN",Br),Re(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,i,s){var r=i._locale.erasParse(e,s,i._strict);r?y(i).era=r:y(i).invalidEra=e})),Ee("y",ve),Ee("yy",ve),Ee("yyy",ve),Ee("yyyy",ve),Ee("yo",Hr),Re(["y","yy","yyy","yyyy"],$e),Re(["yo"],(function(e,t,i,s){var r;i._locale._eraYearOrdinalRegex&&(r=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[$e]=i._locale.eraYearOrdinalParse(e,r):t[$e]=parseInt(e,10)})),H(0,["gg",2],0,(function(){return this.weekYear()%100})),H(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ur("gggg","weekYear"),Ur("ggggg","weekYear"),Ur("GGGG","isoWeekYear"),Ur("GGGGG","isoWeekYear"),Ee("G",be),Ee("g",be),Ee("GG",fe,de),Ee("gg",fe,de),Ee("GGGG",ye,ce),Ee("gggg",ye,ce),Ee("GGGGG",_e,ue),Ee("ggggg",_e,ue),Oe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,i,s){t[s.substr(0,2)]=Ce(e)})),Oe(["gg","GG"],(function(e,t,i,s){t[s]=r.parseTwoDigitYear(e)})),H("Q",0,"Qo","quarter"),Ee("Q",le),Re("Q",(function(e,t){t[Ne]=3*(Ce(e)-1)})),H("D",["DD",2],"Do","date"),Ee("D",fe,Le),Ee("DD",fe,de),Ee("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Re(["D","DD"],Be),Re("Do",(function(e,t){t[Be]=Ce(e.match(fe)[0])}));var Zr=Xe("Date",!0);function en(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}H("DDD",["DDDD",3],"DDDo","dayOfYear"),Ee("DDD",ge),Ee("DDDD",he),Re(["DDD","DDDD"],(function(e,t,i){i._dayOfYear=Ce(e)})),H("m",["mm",2],0,"minute"),Ee("m",fe,ke),Ee("mm",fe,de),Re(["m","mm"],je);var tn=Xe("Minutes",!1);H("s",["ss",2],0,"second"),Ee("s",fe,ke),Ee("ss",fe,de),Re(["s","ss"],Ue);var sn,rn,nn=Xe("Seconds",!1);for(H("S",0,0,(function(){return~~(this.millisecond()/100)})),H(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),H(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),H(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),H(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),H(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),H(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Ee("S",ge,le),Ee("SS",ge,de),Ee("SSS",ge,he),sn="SSSS";sn.length<=9;sn+="S")Ee(sn,ve);function an(e,t){t[Ve]=Ce(1e3*("0."+e))}for(sn="S";sn.length<=9;sn+="S")Re(sn,an);function on(){return this._isUTC?"UTC":""}function ln(){return this._isUTC?"Coordinated Universal Time":""}rn=Xe("Milliseconds",!1),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var dn=M.prototype;function hn(e){return Ki(1e3*e)}function cn(){return Ki.apply(null,arguments).parseZone()}function un(e){return e}dn.add=Rs,dn.calendar=js,dn.clone=Us,dn.diff=Js,dn.endOf=yr,dn.format=tr,dn.from=ir,dn.fromNow=sr,dn.to=rr,dn.toNow=nr,dn.get=et,dn.invalidAt=kr,dn.isAfter=Vs,dn.isBefore=Gs,dn.isBetween=zs,dn.isSame=Ws,dn.isSameOrAfter=qs,dn.isSameOrBefore=Ks,dn.isValid=Sr,dn.lang=or,dn.locale=ar,dn.localeData=lr,dn.max=Xi,dn.min=Ji,dn.parsingFlags=Lr,dn.set=tt,dn.startOf=gr,dn.subtract=Os,dn.toArray=wr,dn.toObject=Tr,dn.toDate=br,dn.toISOString=Zs,dn.inspect=er,"undefined"!=typeof Symbol&&null!=Symbol.for&&(dn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),dn.toJSON=Mr,dn.toString=Qs,dn.unix=vr,dn.valueOf=_r,dn.creationData=Er,dn.eraName=Pr,dn.eraNarrow=Cr,dn.eraAbbr=Ir,dn.eraYear=Rr,dn.year=Ke,dn.isLeapYear=Je,dn.weekYear=Vr,dn.isoWeekYear=Gr,dn.quarter=dn.quarters=Qr,dn.month=mt,dn.daysInMonth=pt,dn.week=dn.weeks=xt,dn.isoWeek=dn.isoWeeks=At,dn.weeksInYear=qr,dn.weeksInWeekYear=Kr,dn.isoWeeksInYear=zr,dn.isoWeeksInISOWeekYear=Wr,dn.date=Zr,dn.day=dn.days=Gt,dn.weekday=zt,dn.isoWeekday=Wt,dn.dayOfYear=en,dn.hour=dn.hours=ri,dn.minute=dn.minutes=tn,dn.second=dn.seconds=nn,dn.millisecond=dn.milliseconds=rn,dn.utcOffset=ps,dn.utc=ys,dn.local=_s,dn.parseZone=vs,dn.hasAlignedHourOffset=bs,dn.isDST=ws,dn.isLocal=Ms,dn.isUtcOffset=Ss,dn.isUtc=Ls,dn.isUTC=Ls,dn.zoneAbbr=on,dn.zoneName=ln,dn.dates=k("dates accessor is deprecated. Use date instead.",Zr),dn.months=k("months accessor is deprecated. Use month instead",mt),dn.years=k("years accessor is deprecated. Use year instead",Ke),dn.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gs),dn.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ts);var fn=I.prototype;function mn(e,t,i,s){var r=_i(),n=p().set(s,t);return r[i](n,e)}function pn(e,t,i){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return mn(e,t,i,"month");var s,r=[];for(s=0;s<12;s++)r[s]=mn(e,s,i,"month");return r}function gn(e,t,i,s){"boolean"==typeof e?(c(t)&&(i=t,t=void 0),t=t||""):(i=t=e,e=!1,c(t)&&(i=t,t=void 0),t=t||"");var r,n=_i(),a=e?n._week.dow:0,o=[];if(null!=i)return mn(t,(i+a)%7,s,"day");for(r=0;r<7;r++)o[r]=mn(t,(r+a)%7,s,"day");return o}function yn(e,t){return pn(e,t,"months")}function _n(e,t){return pn(e,t,"monthsShort")}function vn(e,t,i){return gn(e,t,i,"weekdays")}function bn(e,t,i){return gn(e,t,i,"weekdaysShort")}function wn(e,t,i){return gn(e,t,i,"weekdaysMin")}fn.calendar=O,fn.longDateFormat=W,fn.invalidDate=K,fn.ordinal=Q,fn.preparse=un,fn.postformat=un,fn.relativeTime=ee,fn.pastFuture=te,fn.set
vendor: 7,490 bytes, line 2
2=P,fn.eras=Dr,fn.erasParse=xr,fn.erasConvertYear=Ar,fn.erasAbbrRegex=Yr,fn.erasNameRegex=Or,fn.erasNarrowRegex=Fr,fn.months=dt,fn.monthsShort=ht,fn.monthsParse=ut,fn.monthsRegex=yt,fn.monthsShortRegex=gt,fn.week=Lt,fn.firstDayOfYear=Dt,fn.firstDayOfWeek=Et,fn.weekdays=Bt,fn.weekdaysMin=jt,fn.weekdaysShort=Ht,fn.weekdaysParse=Vt,fn.weekdaysRegex=qt,fn.weekdaysShortRegex=Kt,fn.weekdaysMinRegex=Jt,fn.isPM=ii,fn.meridiem=ni,pi("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=k("moment.lang is deprecated. Use moment.locale instead.",pi),r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",_i);var Tn=Math.abs;function Mn(){var e=this._data;return this._milliseconds=Tn(this._milliseconds),this._days=Tn(this._days),this._months=Tn(this._months),e.milliseconds=Tn(e.milliseconds),e.seconds=Tn(e.seconds),e.minutes=Tn(e.minutes),e.hours=Tn(e.hours),e.months=Tn(e.months),e.years=Tn(e.years),this}function Sn(e,t,i,s){var r=Ds(t,i);return e._milliseconds+=s*r._milliseconds,e._days+=s*r._days,e._months+=s*r._months,e._bubble()}function Ln(e,t){return Sn(this,e,t,1)}function kn(e,t){return Sn(this,e,t,-1)}function En(e){return e<0?Math.floor(e):Math.ceil(e)}function Dn(){var e,t,i,s,r,n=this._milliseconds,a=this._days,o=this._months,l=this._data;return n>=0&&a>=0&&o>=0||n<=0&&a<=0&&o<=0||(n+=864e5*En(An(o)+a),a=0,o=0),l.milliseconds=n%1e3,e=Pe(n/1e3),l.seconds=e%60,t=Pe(e/60),l.minutes=t%60,i=Pe(t/60),l.hours=i%24,a+=Pe(i/24),o+=r=Pe(xn(a)),a-=En(An(r)),s=Pe(o/12),o%=12,l.days=a,l.months=o,l.years=s,this}function xn(e){return 4800*e/146097}function An(e){return 146097*e/4800}function Pn(e){if(!this.isValid())return NaN;var t,i,s=this._milliseconds;if("month"===(e=se(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,i=this._months+xn(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(An(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e)}}function Cn(e){return function(){return this.as(e)}}var In=Cn("ms"),Rn=Cn("s"),On=Cn("m"),Yn=Cn("h"),Fn=Cn("d"),$n=Cn("w"),Nn=Cn("M"),Bn=Cn("Q"),Hn=Cn("y"),jn=In;function Un(){return Ds(this)}function Vn(e){return e=se(e),this.isValid()?this[e+"s"]():NaN}function Gn(e){return function(){return this.isValid()?this._data[e]:NaN}}var zn=Gn("milliseconds"),Wn=Gn("seconds"),qn=Gn("minutes"),Kn=Gn("hours"),Jn=Gn("days"),Xn=Gn("months"),Qn=Gn("years");function Zn(){return Pe(this.days()/7)}var ea=Math.round,ta={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ia(e,t,i,s,r){return r.relativeTime(t||1,!!i,e,s)}function sa(e,t,i,s){var r=Ds(e).abs(),n=ea(r.as("s")),a=ea(r.as("m")),o=ea(r.as("h")),l=ea(r.as("d")),d=ea(r.as("M")),h=ea(r.as("w")),c=ea(r.as("y")),u=n<=i.ss&&["s",n]||n<i.s&&["ss",n]||a<=1&&["m"]||a<i.m&&["mm",a]||o<=1&&["h"]||o<i.h&&["hh",o]||l<=1&&["d"]||l<i.d&&["dd",l];return null!=i.w&&(u=u||h<=1&&["w"]||h<i.w&&["ww",h]),(u=u||d<=1&&["M"]||d<i.M&&["MM",d]||c<=1&&["y"]||["yy",c])[2]=t,u[3]=+e>0,u[4]=s,ia.apply(null,u)}function ra(e){return void 0===e?ea:"function"==typeof e&&(ea=e,!0)}function na(e,t){return void 0!==ta[e]&&(void 0===t?ta[e]:(ta[e]=t,"s"===e&&(ta.ss=t-1),!0))}function aa(e,t){if(!this.isValid())return this.localeData().invalidDate();var i,s,r=!1,n=ta;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(n=Object.assign({},ta,t),null!=t.s&&null==t.ss&&(n.ss=t.s-1)),s=sa(this,!r,n,i=this.localeData()),r&&(s=i.pastFuture(+this,s)),i.postformat(s)}var oa=Math.abs;function la(e){return(e>0)-(e<0)||+e}function da(){if(!this.isValid())return this.localeData().invalidDate();var e,t,i,s,r,n,a,o,l=oa(this._milliseconds)/1e3,d=oa(this._days),h=oa(this._months),c=this.asSeconds();return c?(e=Pe(l/60),t=Pe(e/60),l%=60,e%=60,i=Pe(h/12),h%=12,s=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=c<0?"-":"",n=la(this._months)!==la(c)?"-":"",a=la(this._days)!==la(c)?"-":"",o=la(this._milliseconds)!==la(c)?"-":"",r+"P"+(i?n+i+"Y":"")+(h?n+h+"M":"")+(d?a+d+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+s+"S":"")):"P0D"}var ha=as.prototype;return ha.isValid=rs,ha.abs=Mn,ha.add=Ln,ha.subtract=kn,ha.as=Pn,ha.asMilliseconds=In,ha.asSeconds=Rn,ha.asMinutes=On,ha.asHours=Yn,ha.asDays=Fn,ha.asWeeks=$n,ha.asMonths=Nn,ha.asQuarters=Bn,ha.asYears=Hn,ha.valueOf=jn,ha._bubble=Dn,ha.clone=Un,ha.get=Vn,ha.milliseconds=zn,ha.seconds=Wn,ha.minutes=qn,ha.hours=Kn,ha.days=Jn,ha.weeks=Zn,ha.months=Xn,ha.years=Qn,ha.humanize=aa,ha.toISOString=da,ha.toString=da,ha.toJSON=da,ha.locale=ar,ha.localeData=lr,ha.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",da),ha.lang=or,H("X",0,0,"unix"),H("x",0,0,"valueOf"),Ee("x",be),Ee("X",Me),Re("X",(function(e,t,i){i._d=new Date(1e3*parseFloat(e))})),Re("x",(function(e,t,i){i._d=new Date(Ce(e))})),r.version="2.30.1",n(Ki),r.fn=dn,r.min=Zi,r.max=es,r.now=ts,r.utc=p,r.unix=hn,r.months=yn,r.isDate=u,r.locale=pi,r.invalid=v,r.duration=Ds,r.isMoment=S,r.weekdays=vn,r.parseZone=cn,r.localeData=_i,r.isDuration=os,r.monthsShort=_n,r.weekdaysMin=wn,r.defineLocale=gi,r.updateLocale=yi,r.locales=vi,r.weekdaysShort=bn,r.normalizeUnits=se,r.relativeTimeRounding=ra,r.relativeTimeThreshold=na,r.calendarFormat=Hs,r.prototype=dn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()},5096:function(e,t,i){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Åubat_Mart_Nisan_Mayıs_Haziran_Temmuz_AÄustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Åub_Mar_Nis_May_Haz_Tem_AÄu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_ÃarÅamba_PerÅembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Ãar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ãa_Pe_Cu_Ct".split("_"),meridiem:function(e,t,i){return e<12?i?"öö":"ÃÃ":i?"ös":"ÃS"},meridiemParse:/öö|ÃÃ|ös|ÃS/,isPM:function(e){return"ös"===e||"ÃS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,i){switch(i){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var s=e%10,r=e%100-s,n=e>=100?100:null;return e+(t[s]||t[r]||t[n])}},week:{dow:1,doy:7}})}
2(i(5093))},5177:function(e,t,i){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,i){return e<12?i?"vm":"VM":i?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(5093))},5358:(e,t,i)=>{var s={"./af":5177,"./af.js":5177,"./ar":1509,"./ar-dz":1488,"./ar-dz.js":1488,"./ar-kw":8676,"./ar-kw.js":8676,"./ar-ly":2353,"./ar-ly.js":2353,"./ar-ma":4496,"./ar-ma.js":4496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":2682,"./ar-sa.js":2682,"./ar-tn":9756,"./ar-tn.js":9756,"./ar.js":1509,"./az":5533,"./az.js":5533,"./be":8959,"./be.js":8959,"./bg":7777,"./bg.js":7777,"./bm":4903,"./bm.js":4903,"./bn":1290,"./bn-bd":7357,"./bn-bd.js":7357,"./bn.js":1290,"./bo":1545,"./bo.js":1545,"./br":1470,"./br.js":1470,"./bs":4429,"./bs.js":4429,"./ca":7306,"./ca.js":7306,"./cs":6464,"./cs.js":6464,"./cv":3635,"./cv.js":3635,"./cy":4226,"./cy.js":4226,"./da":3601,"./da.js":3601,"./de":7853,"./de-at":6111,"./de-at.js":6111,"./de-ch":4697,"./de-ch.js":4697,"./de.js":7853,"./dv":708,"./dv.js":708,"./el":4691,"./el.js":4691,"./en-au":3872,"./en-au.js":3872,"./en-ca":8298,"./en-ca.js":8298,"./en-gb":6195,"./en-gb.js":6195,"./en-ie":6584,"./en-ie.js":6584,"./en-il":5543,"./en-il.js":5543,"./en-in":9033,"./en-in.js":9033,"./en-nz":9402,"./en-nz.js":9402,"./en-sg":3004,"./en-sg.js":3004,"./eo":2934,"./eo.js":2934,"./es":7650,"./es-do":838,"./es-do.js":838,"./es-mx":7730,"./es-mx.js":7730,"./es-us":6575,"./es-us.js":6575,"./es.js":7650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":527,"./fi.js":527,"./fil":5995,"./fil.js":5995,"./fo":2477,"./fo.js":2477,"./fr":5498,"./fr-ca":6435,"./fr-ca.js":6435,"./fr-ch":7892,"./fr-ch.js":7892,"./fr.js":5498,"./fy":7071,"./fy.js":7071,"./ga":1734,"./ga.js":1734,"./gd":217,"./gd.js":217,"./gl":7329,"./gl.js":7329,"./gom-deva":2124,"./gom-deva.js":2124,"./gom-latn":3383,"./gom-latn.js":3383,"./gu":5050,"./gu.js":5050,"./he":1713,"./he.js":1713,"./hi":3861,"./hi.js":3861,"./hr":6308,"./hr.js":6308,"./hu":609,"./hu.js":609,"./hy-am":7160,"./hy-am.js":7160,"./id":4063,"./id.js":4063,"./is":9374,"./is.js":9374,"./it":8383,"./it-ch":1827,"./it-ch.js":1827,"./it.js":8383,"./ja":3827,"./ja.js":3827,"./jv":9722,"./jv.js":9722,"./ka":1794,"./ka.js":1794,"./kk":7088,"./kk.js":7088,"./km":6870,"./km.js":6870,"./kn":4451,"./kn.js":4451,"./ko":3164,"./ko.js":3164,"./ku":8174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":8174,"./ky":8474,"./ky.js":8474,"./lb":9680,"./lb.js":9680,"./lo":5867,"./lo.js":5867,"./lt":5766,"./lt.js":5766,"./lv":9532,"./lv.js":9532,"./me":8076,"./me.js":8076,"./mi":1848,"./mi.js":1848,"./mk":306,"./mk.js":306,"./ml":3739,"./ml.js":3739,"./mn":9053,"./mn.js":9053,"./mr":6169,"./mr.js":6169,"./ms":3386,"./ms-my":2297,"./ms-my.js":2297,"./ms.js":3386,"./mt":7075,"./mt.js":7075,"./my":2264,"./my.js":2264,"./nb":2274,"./nb.js":2274,"./ne":8235,"./ne.js":8235,"./nl":2572,"./nl-be":3784,"./nl-be.js":3784,"./nl.js":2572,"./nn":4566,"./nn.js":4566,"./oc-lnc":9330,"./oc-lnc.js":9330,"./pa-in":9849,"./pa-in.js":9849,"./pl":4418,"./pl.js":4418,"./pt":9834,"./pt-br":8303,"./pt-br.js":8303,"./pt.js":9834,"./ro":4457,"./ro.js":4457,"./ru":2271,"./ru.js":2271,"./sd":1221,"./sd.js":1221,"./se":3478,"./se.js":3478,"./si":7538,"./si.js":7538,"./sk":5784,"./sk.js":5784,"./sl":6637,"./sl.js":6637,"./sq":6794,"./sq.js":6794,"./sr":5719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":5719,"./ss":6e3,"./ss.js":6e3,"./sv":1011,"./sv.js":1011,"./sw":748,"./sw.js":748,"./ta":1025,"./ta.js":1025,"./te":1885,"./te.js":1885,"./tet":8861,"./tet.js":8861,"./tg":6571,"./tg.js":6571,"./th":5802,"./th.js":5802,"./tk":9527,"./tk.js":9527,"./tl-ph":9231,"./tl-ph.js":9231,"./tlh":1052,"./tlh.js":1052,"./tr":5096,"./tr.js":5096,"./tzl":9846,"./tzl.js":9846,"./tzm":1765,"./tzm-latn":7711,"./tzm-latn.js":7711,"./tzm.js":1765,"./ug-cn":8414,"./ug-cn.js":8414,"./uk":6618,"./uk.js":6618,"./ur":158,"./ur.js":158,"./uz":7609,"./uz-latn":2475,"./uz-latn.js":2475,"./uz.js":7609,"./vi":1135,"./vi.js":1135,"./x-pseudo":4051,"./x-pseudo.js":4051,"./yo":2218,"./yo.js":2218,"./zh-cn":2648,"./zh-cn.js":2648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":1541,"./zh-mo.js":1541,"./zh-tw":304,"./zh-tw.js":304};function r(e){var t=n(e);return i(t)}function n(e){if(!i.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}r.keys=function(){return Object.keys(s)},r.resolve=n,e.exports=r,r.id=5358},5411:function(e,t,i){e.exports=function(e){"use strict";const t=t=>{let i=t.getAttribute("data-bs-target");if(!i||"#"===i){let e=t.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),i=e&&"#"!==e?e.trim():null}return i?i.split(",").map((t=>e.parseSelector(t))).join(","):null},i={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>
2[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const i=[];let s=e.parentNode.closest(t);for(;s;)i.push(s),s=s.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const i=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(i,t).filter((t=>!e.isDisabled(t)&&e.isVisible(t)))},getSelectorFromElement(e){const s=t(e);return s&&i.findOne(s)?s:null},getElementFromSelector(e){const s=t(e);return s?i.findOne(s):null},getMultipleElementsFromSelector(e){const s=t(e);return s?i.find(s):[]}};return i}(i(4035))},5498:function(e,t,i){!function(e){"use strict";var t=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,i=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,s=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,r=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:t,monthsShortStrictRegex:i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourdâhui à ] LT",nextDay:"[Demain à ] LT",nextWeek:"dddd [à ] LT",lastDay:"[Hier à ] LT",lastWeek:"dddd [dernier à ] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(i(5093))},5533:function(e,t,i){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertÉsi_ÃÉrÅÉnbÉ axÅamı_ÃÉrÅÉnbÉ_CümÉ axÅamı_CümÉ_ÅÉnbÉ".split("_"),weekdaysShort:"Baz_BzE_ÃAx_ÃÉr_CAx_Cüm_ÅÉn".split("_"),weekdaysMin:"Bz_BE_ÃA_ÃÉ_CA_Cü_ÅÉ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gÉlÉn hÉftÉ] dddd [saat] LT",lastDay:"[dünÉn] LT",lastWeek:"[keçÉn hÉftÉ] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s ÉvvÉl",s:"bir neÃ§É saniyÉ",ss:"%d saniyÉ",m:"bir dÉqiqÉ",mm:"%d dÉqiqÉ",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecÉ|sÉhÉr|gündüz|axÅam/,isPM:function(e){return/^(gündüz|axÅam)$/.test(e)},meridiem:function(e,t,i){return e<4?"gecÉ":e<12?"sÉhÉr":e<17?"gündüz":"axÅam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var i=e%10,s=e%100-i,r=e>=100?100:null;return e+(t[i]||t[s]||t[r])},week:{dow:1,doy:7}})}
vendor: 11,069 bytes, line 2
2(i(5093))},5543:function(e,t,i){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(i(5093))},5719:function(e,t,i){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,i,s,r){var n,a=t.words[s];return 1===s.length?"y"===s&&i?"jedna godina":r||i?a[0]:a[1]:(n=t.correctGrammaticalCase(e,a),"yy"===s&&i&&"godinu"===n?e+" godina":e+" "+n)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_Äetvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._Äet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_Äe_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juÄe u] LT",lastWeek:function(){return["[proÅ¡le] [nedelje] [u] LT","[proÅ¡log] [ponedeljka] [u] LT","[proÅ¡log] [utorka] [u] LT","[proÅ¡le] [srede] [u] LT","[proÅ¡log] [Äetvrtka] [u] LT","[proÅ¡log] [petka] [u] LT","[proÅ¡le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(5093))},5766:function(e,t,i){!function(e){"use strict";var t={ss:"sekundÄ_sekundžių_sekundes",m:"minutÄ_minutÄs_minutÄ",mm:"minutÄs_minuÄių_minutes",h:"valanda_valandos_valandÄ
",hh:"valandos_valandų_valandas",d:"diena_dienos_dienÄ
",dd:"dienos_dienų_dienas",M:"mÄnuo_mÄnesio_mÄnesį",MM:"mÄnesiai_mÄnesių_mÄnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function i(e,t,i,s){return t?"kelios sekundÄs":s?"kelių sekundžių":"kelias sekundes"}function s(e,t,i,s){return t?n(i)[0]:s?n(i)[1]:n(i)[2]}function r(e){return e%10==0||e>10&&e<20}function n(e){return t[e].split("_")}function a(e,t,i,a){var o=e+" ";return 1===e?o+s(e,t,i[0],a):t?o+(r(e)?n(i)[1]:n(i)[0]):a?o+n(i)[1]:o+(r(e)?n(i)[1]:n(i)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužÄs_birželio_liepos_rugpjÅ«Äio_rugsÄjo_spalio_lapkriÄio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužÄ_birželis_liepa_rugpjÅ«tis_rugsÄjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_treÄiadienį_ketvirtadienį_penktadienį_Å¡eÅ¡tadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_treÄiadienis_ketvirtadienis_penktadienis_Å¡eÅ¡tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Å eÅ¡".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Å ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Å iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[PraÄjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieÅ¡ %s",s:i,ss:a,m:s,mm:a,h:s,hh:a,d:s,dd:a,M:s,MM:a,y:s,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(i(5093))},5784:function(e,t,i){!function(e){"use strict";var t="január_február_marec_aprÃl_máj_jún_júl_august_september_október_november_december".split("_"),i="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function s(e){return e>1&&e<5}function r(e,t,i,r){var n=e+" ";switch(i){case"s":return t||r?"pár sekúnd":"pár sekundami";case"ss":return t||r?n+(s(e)?"sekundy":"sekúnd"):n+"sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?n+(s(e)?"minúty":"minút"):n+"minútami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?n+(s(e)?"hodiny":"hodÃn"):n+"hodinami";case"d":return t||r?"deÅ":"dÅom";case"dd":return t||r?n+(s(e)?"dni":"dnÃ"):n+"dÅami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?n+(s(e)?"mesiace":"mesiacov"):n+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?n+(s(e)?"roky":"rokov"):n+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:i,weekdays:"nedeľa_pondelok_utorok_streda_Å¡tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_Å¡t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_Å¡t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo Å¡tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[vÄera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(5093))},5802:function(e,t,i){!function(e){"use strict";e.defineLocale("th",{months:"มà¸à¸£à¸²à¸à¸¡_à¸à¸¸à¸¡à¸ าà¸à¸±à¸à¸à¹_มีà¸à¸²à¸à¸¡_à¹à¸¡à¸©à¸²à¸¢à¸_à¸à¸¤à¸©à¸ าà¸à¸¡_มิà¸à¸¸à¸à¸²à¸¢à¸_à¸à¸£à¸à¸à¸²à¸à¸¡_สิà¸à¸«à¸²à¸à¸¡_à¸à¸±à¸à¸¢à¸²à¸¢à¸_à¸à¸¸à¸¥à¸²à¸à¸¡_à¸à¸¤à¸¨à¸à¸´à¸à¸²à¸¢à¸_à¸à¸±à¸à¸§à¸²à¸à¸¡".split("_"),monthsShort:"ม.à¸._à¸.à¸._มี.à¸._à¹à¸¡.ย._à¸.à¸._มิ.ย._à¸.à¸._ส.à¸._à¸.ย._à¸.à¸._à¸.ย._à¸.à¸.".split("_"),monthsParseExact:!0,weekdays:"à¸à¸²à¸à¸´à¸à¸¢à¹_à¸à¸±à¸à¸à¸£à¹_à¸à¸±à¸à¸à¸²à¸£_à¸à¸¸à¸_à¸à¸¤à¸«à¸±à¸ªà¸à¸à¸µ_ศุà¸à¸£à¹_à¹à¸ªà¸²à¸£à¹".split("_"),weekdaysShort:"à¸à¸²à¸à¸´à¸à¸¢à¹_à¸à¸±à¸à¸à¸£à¹_à¸à¸±à¸à¸à¸²à¸£_à¸à¸¸à¸_à¸à¸¤à¸«à¸±à¸ª_ศุà¸à¸£à¹_à¹à¸ªà¸²à¸£à¹".split("_"),weekdaysMin:"à¸à¸²._à¸._à¸._à¸._à¸à¸¤._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY à¹à¸§à¸¥à¸² H:mm",LLLL:"วัà¸ddddà¸à¸µà¹ D MMMM YYYY à¹à¸§à¸¥à¸² H:mm"},meridiemParse:/à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸|หลัà¸à¹à¸à¸µà¹à¸¢à¸/,isPM:function(e){return"หลัà¸à¹à¸à¸µà¹à¸¢à¸"===e},meridiem:function(e,t,i){return e<12?"à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸":"หลัà¸à¹à¸à¸µà¹à¸¢à¸"},calendar:{sameDay:"[วัà¸à¸à¸µà¹ à¹à¸§à¸¥à¸²] LT",nextDay:"[à¸à¸£à¸¸à¹à¸à¸à¸µà¹ à¹à¸§à¸¥à¸²] LT",nextWeek:"dddd[หà¸à¹à¸² à¹à¸§à¸¥à¸²] LT",lastDay:"[à¹à¸¡à¸·à¹à¸à¸§à¸²à¸à¸à¸µà¹ à¹à¸§à¸¥à¸²] LT",lastWeek:"[วัà¸]dddd[à¸à¸µà¹à¹à¸¥à¹à¸§ à¹à¸§à¸¥à¸²] LT",sameElse:"L"},relativeTime:{future:"à¸à¸µà¸ %s",past:"%sà¸à¸µà¹à¹à¸¥à¹à¸§",s:"à¹à¸¡à¹à¸à¸µà¹à¸§à¸´à¸à¸²à¸à¸µ",ss:"%d วิà¸à¸²à¸à¸µ",m:"1 à¸à¸²à¸à¸µ",mm:"%d à¸à¸²à¸à¸µ",h:"1 à¸à¸±à¹à¸§à¹à¸¡à¸",hh:"%d à¸à¸±à¹à¸§à¹à¸¡à¸",d:"1 วัà¸",dd:"%d วัà¸",w:"1 สัà¸à¸à¸²à¸«à¹",ww:"%d สัà¸à¸à¸²à¸«à¹",M:"1 à¹à¸à¸·à¸à¸",MM:"%d à¹à¸à¸·à¸à¸",y:"1 à¸à¸µ",yy:"%d à¸à¸µ"}})}(i(5093))},5867:function(e,t,i){!function(e){"use strict";e.defineLocale("lo",{months:"ມັàºàºàºàº_àºàº¸àº¡àºàº²_ມີàºàº²_à»àº¡àºªàº²_àºàº¶àºàºªàº°àºàº²_ມິàºàº¸àºàº²_àºà»àº¥àº°àºàº»àº_ສິàºàº«àº²_àºàº±àºàºàº²_àºàº¸àº¥àº²_àºàº°àºàº´àº_àºàº±àºàº§àº²".split("_"),monthsShort:"ມັàºàºàºàº_àºàº¸àº¡àºàº²_ມີàºàº²_à»àº¡àºªàº²_àºàº¶àºàºªàº°àºàº²_ມິàºàº¸àºàº²_àºà»àº¥àº°àºàº»àº_ສິàºàº«àº²_àºàº±àºàºàº²_àºàº¸àº¥àº²_àºàº°àºàº´àº_àºàº±àºàº§àº²".split("_"),weekdays:"àºàº²àºàº´àº_àºàº±àº_àºàº±àºàºàº²àº_àºàº¸àº_àºàº°àº«àº±àº_ສຸàº_à»àºªàº»àº²".split("_"),weekdaysShort:"àºàº´àº_àºàº±àº_àºàº±àºàºàº²àº_àºàº¸àº_àºàº°àº«àº±àº_ສຸàº_à»àºªàº»àº²".split("_"),weekdaysMin:"àº_àº_àºàº_àº_àºàº«_ສàº_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັàºdddd D MMMM YYYY HH:mm"},meridiemParse:/àºàºàºà»àºàº»à»àº²|àºàºàºà»àº¥àº/,isPM:function(e){return"àºàºàºà»àº¥àº"===e},meridiem:function(e,t,i){return e<12?"àºàºàºà»àºàº»à»àº²":"àºàºàºà»àº¥àº"},calendar:{sameDay:"[ມືà»àºàºµà»à»àº§àº¥àº²] LT",nextDay:"[ມືà»àºàº·à»àºà»àº§àº¥àº²] LT",nextWeek:"[ວັàº]dddd[à»à»àº²à»àº§àº¥àº²] LT",lastDay:"[ມືà»àº§àº²àºàºàºµà»à»àº§àº¥àº²] LT",lastWeek:"[ວັàº]dddd[à»àº¥à»àº§àºàºµà»à»àº§àº¥àº²] LT",sameElse:"L"},relativeTime:{future:"àºàºµàº %s",past:"%sàºà»àº²àºàº¡àº²",s:"àºà»à»à»àºàº»à»àº²à»àºàº§àº´àºàº²àºàºµ",ss:"%d ວິàºàº²àºàºµ",m:"1 àºàº²àºàºµ",mm:"%d àºàº²àºàºµ",h:"1 àºàº»à»àº§à»àº¡àº",hh:"%
2d àºàº»à»àº§à»àº¡àº",d:"1 ມືà»",dd:"%d ມືà»",M:"1 à»àºàº·àºàº",MM:"%d à»àºàº·àºàº",y:"1 àºàºµ",yy:"%d àºàºµ"},dayOfMonthOrdinalParse:/(àºàºµà»)\d{1,2}/,ordinal:function(e){return"àºàºµà»"+e}})}(i(5093))},5995:function(e,t,i){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(i(5093))},6e3:function(e,t,i){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,i){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(i(5093))},6111:function(e,t,i){!function(e){"use strict";function t(e,t,i,s){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[i][0]:r[i][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(5093))},6169:function(e,t,i){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"à¥",8:"८",9:"९",0:"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","à¥":"7","८":"8","९":"9","०":"0"};function s(e,t,i,s){var r="";if(t)switch(i){case"s":r="à¤à¤¾à¤¹à¥ सà¥à¤à¤à¤¦";break;case"ss":r="%d सà¥à¤à¤à¤¦";break;case"m":r="à¤à¤ मिनिà¤";break;case"mm":r="%d मिनिà¤à¥";break;case"h":r="à¤à¤ तास";break;case"hh":r="%d तास";break;case"d":r="à¤à¤ दिवस";break;case"dd":r="%d दिवस";break;case"M":r="à¤à¤ महिना";break;case"MM":r="%d महिनà¥";break;case"y":r="à¤à¤ वरà¥à¤·";break;case"yy":r="%d वरà¥à¤·à¥"}
vendor: 12,492 bytes, line 2
2else switch(i){case"s":r="à¤à¤¾à¤¹à¥ सà¥à¤à¤à¤¦à¤¾à¤";break;case"ss":r="%d सà¥à¤à¤à¤¦à¤¾à¤";break;case"m":r="à¤à¤à¤¾ मिनिà¤à¤¾";break;case"mm":r="%d मिनिà¤à¤¾à¤";break;case"h":r="à¤à¤à¤¾ तासा";break;case"hh":r="%d तासाà¤";break;case"d":r="à¤à¤à¤¾ दिवसा";break;case"dd":r="%d दिवसाà¤";break;case"M":r="à¤à¤à¤¾ महिनà¥à¤¯à¤¾";break;case"MM":r="%d महिनà¥à¤¯à¤¾à¤";break;case"y":r="à¤à¤à¤¾ वरà¥à¤·à¤¾";break;case"yy":r="%d वरà¥à¤·à¤¾à¤"}return r.replace(/%d/i,e)}e.defineLocale("mr",{months:"à¤à¤¾à¤¨à¥à¤µà¤¾à¤°à¥_फà¥à¤¬à¥à¤°à¥à¤µà¤¾à¤°à¥_मारà¥à¤_à¤à¤ªà¥à¤°à¤¿à¤²_मà¥_à¤à¥à¤¨_à¤à¥à¤²à¥_à¤à¤à¤¸à¥à¤_सपà¥à¤à¥à¤à¤¬à¤°_à¤à¤à¥à¤à¥à¤¬à¤°_नà¥à¤µà¥à¤¹à¥à¤à¤¬à¤°_डिसà¥à¤à¤¬à¤°".split("_"),monthsShort:"à¤à¤¾à¤¨à¥._फà¥à¤¬à¥à¤°à¥._मारà¥à¤._à¤à¤ªà¥à¤°à¤¿._मà¥._à¤à¥à¤¨._à¤à¥à¤²à¥._à¤à¤._सपà¥à¤à¥à¤._à¤à¤à¥à¤à¥._नà¥à¤µà¥à¤¹à¥à¤._डिसà¥à¤.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सà¥à¤®à¤µà¤¾à¤°_मà¤à¤à¤³à¤µà¤¾à¤°_बà¥à¤§à¤µà¤¾à¤°_à¤à¥à¤°à¥à¤µà¤¾à¤°_शà¥à¤à¥à¤°à¤µà¤¾à¤°_शनिवार".split("_"),weekdaysShort:"रवि_सà¥à¤®_मà¤à¤à¤³_बà¥à¤§_à¤à¥à¤°à¥_शà¥à¤à¥à¤°_शनि".split("_"),weekdaysMin:"र_सà¥_मà¤_बà¥_à¤à¥_शà¥_श".split("_"),longDateFormat:{LT:"A h:mm वाà¤à¤¤à¤¾",LTS:"A h:mm:ss वाà¤à¤¤à¤¾",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाà¤à¤¤à¤¾",LLLL:"dddd, D MMMM YYYY, A h:mm वाà¤à¤¤à¤¾"},calendar:{sameDay:"[à¤à¤] LT",nextDay:"[à¤à¤¦à¥à¤¯à¤¾] LT",nextWeek:"dddd, LT",lastDay:"[à¤à¤¾à¤²] LT",lastWeek:"[माà¤à¥à¤²] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमधà¥à¤¯à¥",past:"%sपà¥à¤°à¥à¤µà¥",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},preparse:function(e){return e.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाà¤à¥|सà¤à¤¾à¤³à¥|दà¥à¤ªà¤¾à¤°à¥|सायà¤à¤à¤¾à¤³à¥|रातà¥à¤°à¥/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाà¤à¥"===t||"सà¤à¤¾à¤³à¥"===t?e:"दà¥à¤ªà¤¾à¤°à¥"===t||"सायà¤à¤à¤¾à¤³à¥"===t||"रातà¥à¤°à¥"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,i){return e>=0&&e<6?"पहाà¤à¥":e<12?"सà¤à¤¾à¤³à¥":e<17?"दà¥à¤ªà¤¾à¤°à¥":e<20?"सायà¤à¤à¤¾à¤³à¥":"रातà¥à¤°à¥"},week:{dow:0,doy:6}})}(i(5093))},6181:function(e,t,i){!function(e){"use strict";function t(e,t,i,s){var r={s:["çend sanîye","çend sanîyeyan"],ss:[e+" sanîye",e+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[e+" deqîqe",e+" deqîqeyan"],h:["saetek","saetekê"],hh:[e+" saet",e+" saetan"],d:["rojek","rojekê"],dd:[e+" roj",e+" rojan"],w:["hefteyek","hefteyekê"],ww:[e+" hefte",e+" hefteyan"],M:["mehek","mehekê"],MM:[e+" meh",e+" mehan"],y:["salek","salekê"],yy:[e+" sal",e+" salan"]};return t?r[i][0]:r[i][1]}function i(e){var t=(e=""+e).substring(e.length-1),i=e.length>1?e.substring(e.length-2):"";return 12==i||13==i||"2"!=t&&"3"!=t&&"50"!=i&&"70"!=t&&"80"!=t?"ê":"yê"}e.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Ãlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Ãlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"YekÅem_DuÅem_SêÅem_ÃarÅem_PêncÅem_Ãn_Åemî".split("_"),weekdaysShort:"Yek_Du_Sê_Ãar_Pên_Ãn_Åem".split("_"),weekdaysMin:"Ye_Du_Sê_Ãa_Pê_Ãn_Åe".split("_"),meridiem:function(e,t,i){return e<12?i?"bn":"BN":i?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Ãro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,w:t,ww:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(e,t){var s=t.toLowerCase();return s.includes("w")||s.includes("m")?e+".":e+i(e)},week:{dow:1,doy:4}})}(i(5093))},6195:function(e,t,i){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(i(5093))},6308:function(e,t,i){!function(e){"use strict";function t(e,t,i){var s=e+" ";switch(i){case"ss":return s+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return s+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return s+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return s+=1===e?"dan":"dana";case"MM":return s+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return s+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"sijeÄnja_veljaÄe_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sijeÄanj_veljaÄa_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_Äetvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._Äet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_Äe_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juÄer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[proÅ¡lu] [nedjelju] [u] LT";case 3:return"[proÅ¡lu] [srijedu] [u] LT";case 6:return"[proÅ¡le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[proÅ¡li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(5093))},6435:function(e,t,i){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourdâhui à ] LT",nextDay:"[Demain à ] LT",nextWeek:"dddd [à ] LT",lastDay:"[Hier à ] LT",lastWeek:"dddd [dernier à ] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(i(5093))},6464:function(e,t,i){!function(e){"use strict";var t={standalone:"leden_únor_bÅezen_duben_kvÄten_Äerven_Äervenec_srpen_záÅÃ_ÅÃjen_listopad_prosinec".split("_"),format:"ledna_února_bÅezna_dubna_kvÄtna_Äervna_Äervence_srpna_záÅÃ_ÅÃjna_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},i="led_úno_bÅe_dub_kvÄ_Ävn_Ävc_srp_záÅ_ÅÃj_lis_pro".split("_"),s=[/^led/i,/^úno/i,/^bÅe/i,/^dub/i,/^kvÄ/i,/^(Ävn|Äerven$|Äervna)/i,/^(Ävc|Äervenec|Äervence)/i,/^srp/i,/^záÅ/i,/^ÅÃj/i,/^lis/i,/^pro/i],r=/^(leden|únor|bÅezen|duben|kvÄten|Äervenec|Äervence|Äerven|Äervna|srpen|záÅÃ|ÅÃjen|listopad|prosinec|led|úno|bÅe|dub|kvÄ|Ävn|Ävc|srp|záÅ|ÅÃj|lis|pro)/i;function n(e){return e>1&&e<5&&1!=~~(e/10)}function a(e,t,i,s){var r=e+" ";switch(i){case"s":return t||s?"pár sekund":"pár sekundami";case"ss":return t||s?r+(n(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":s?"minutu":"minutou";case"mm":return t||s?r+(n(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":s?"hodinu":"hodinou";case"hh":return t||s?r+(n(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||s?"den":"dnem";case"dd":return t||s?r+(n(e)?"dny":"dnÃ"):r+"dny";case"M":return t||s?"mÄsÃc":"mÄsÃcem";case"MM":return t||s?r+(n(e)?"mÄsÃce":"mÄsÃců"):r+"mÄsÃci";case"y":return t||s?"rok":"rokem";case"yy":return t||s?r+(n(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:i,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|února|únor|bÅezen|bÅezna|duben|dubna|kvÄten|kvÄtna|Äervenec|Äervence|Äerven|Äervna|srpen|srpna|záÅÃ|ÅÃjen|ÅÃjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bÅe|dub|kvÄ|Ävn|Ävc|srp|záÅ|ÅÃj|lis|pro)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"nedÄle_pondÄlÃ_úterý_stÅeda_Ätvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_Ät_pá_so".split("_"),weekdaysMin:"ne_po_út_st_Ät_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zÃtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedÄli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve stÅedu v] LT";case 4:return"[ve Ätvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[vÄera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou nedÄli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou stÅedu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pÅed %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(5093))},6571:function(e,t,i){!function(e){"use strict";var t={0:"-Ñм",1:"-Ñм",2:"-Ñм",3:"-Ñм",4:"-Ñм",5:"-Ñм",6:"-Ñм",7:"-Ñм",8:"-Ñм",9:"-Ñм",10:"-Ñм",12:"-Ñм",13:"-Ñм",20:"-Ñм",30:"-Ñм",40:"-Ñм",50:"-Ñм",60:"-Ñм",70:"-Ñм",80:"-Ñм",90:"-Ñм",100:"-Ñм"};e.defineLocale("tg",{months:{format:"ÑнваÑи_ÑевÑали_маÑÑи_апÑели_майи_иÑни_иÑли_авгÑÑÑи_ÑенÑÑбÑи_окÑÑбÑи_ноÑбÑи_декабÑи".split("_"),standalone:"ÑнваÑ_ÑевÑал_маÑÑ_апÑел_май_иÑн_иÑл_авгÑÑÑ_ÑенÑÑбÑ_окÑÑбÑ_ноÑбÑ_декабÑ".split("_")},monthsShort:"Ñнв_Ñев_маÑ_апÑ_май_иÑн_иÑл_авг_Ñен_окÑ_ноÑ_дек".split("_"),weekdays:"Ñ
2кÑанбе_дÑÑанбе_ÑеÑанбе_ÑоÑÑанбе_панҷÑанбе_Ò·ÑмÑа_Ñанбе".split("_"),weekdaysShort:"ÑÑб_дÑб_ÑÑб_ÑÑб_пÑб_Ò·Ñм_Ñнб".split("_"),weekdaysMin:"ÑÑ_дÑ_ÑÑ_ÑÑ_пÑ_ҷм_Ñб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ÐмÑӯз ÑоаÑи] LT",nextDay:"[ФаÑдо ÑоаÑи] LT",lastDay:"[ÐиÑӯз ÑоаÑи] LT",nextWeek:"dddd[и] [ҳаÑÑаи оÑнда ÑоаÑи] LT",lastWeek:"dddd[и] [ҳаÑÑаи гÑзаÑÑа ÑоаÑи] LT",sameElse:"L"},relativeTime:{future:"баÑди %s",past:"%s пеÑ",s:"ÑкÑанд ÑониÑ",m:"Ñк даÒиÒа",mm:"%d даÒиÒа",h:"Ñк ÑоаÑ",hh:"%d ÑоаÑ",d:"Ñк Ñӯз",dd:"%d Ñӯз",M:"Ñк моҳ",MM:"%d моҳ",y:"Ñк Ñол",yy:"%d Ñол"},meridiemParse:/Ñаб|ÑÑбҳ|Ñӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"Ñаб"===t?e<4?e:e+12:"ÑÑбҳ"===t?e:"Ñӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"Ñаб":e<11?"ÑÑбҳ":e<16?"Ñӯз":e<19?"бегоҳ":"Ñаб"},dayOfMonthOrdinalParse:/\d{1,2}-(Ñм|Ñм)/,ordinal:function(e){var i=e%10,s=e>=100?100:null;return e+(t[e]||t[i]||t[s])},week:{dow:1,doy:7}})}(i(5093))},6575:function(e,t,i){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?i[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un dÃa",dd:"%d dÃas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(i(5093))},6584:function(e,t,i){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(i(5093))},6618:function(e,t,i){!function(e){"use strict";function t(e,t){var i=e.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function i(e,i,s){return"m"===s?i?"Ñ
вилина":"Ñ
вилинÑ":"h"===s?i?"година":"годинÑ":e+" "+t
vendor: 14,082 bytes, line 2
2({ss:i?"ÑекÑнда_ÑекÑнди_ÑекÑнд":"ÑекÑндÑ_ÑекÑнди_ÑекÑнд",mm:i?"Ñ
вилина_Ñ
вилини_Ñ
вилин":"Ñ
вилинÑ_Ñ
вилини_Ñ
вилин",hh:i?"година_години_годин":"годинÑ_години_годин",dd:"денÑ_днÑ_днÑв",MM:"мÑÑÑÑÑ_мÑÑÑÑÑ_мÑÑÑÑÑв",yy:"ÑÑк_Ñоки_ÑокÑв"}[s],+e)}function s(e,t){var i={nominative:"недÑлÑ_понедÑлок_вÑвÑоÑок_ÑеÑеда_ÑеÑвеÑ_пâÑÑниÑÑ_ÑÑбоÑа".split("_"),accusative:"недÑлÑ_понедÑлок_вÑвÑоÑок_ÑеÑедÑ_ÑеÑвеÑ_пâÑÑниÑÑ_ÑÑбоÑÑ".split("_"),genitive:"недÑлÑ_понедÑлка_вÑвÑоÑка_ÑеÑеди_ÑеÑвеÑга_пâÑÑниÑÑ_ÑÑбоÑи".split("_")};return!0===e?i.nominative.slice(1,7).concat(i.nominative.slice(0,1)):e?i[/(\[[ÐвУÑ]\]) ?dddd/.test(t)?"accusative":/\[?(?:минÑлоÑ|наÑÑÑпноÑ)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:i.nominative}function r(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"ÑÑÑнÑ_лÑÑого_беÑезнÑ_квÑÑнÑ_ÑÑавнÑ_ÑеÑвнÑ_липнÑ_ÑеÑпнÑ_веÑеÑнÑ_жовÑнÑ_лиÑÑопада_гÑÑднÑ".split("_"),standalone:"ÑÑÑенÑ_лÑÑий_беÑезенÑ_квÑÑенÑ_ÑÑавенÑ_ÑеÑвенÑ_липенÑ_ÑеÑпенÑ_веÑеÑенÑ_жовÑенÑ_лиÑÑопад_гÑÑденÑ".split("_")},monthsShort:"ÑÑÑ_лÑÑ_беÑ_квÑÑ_ÑÑав_ÑеÑв_лип_ÑеÑп_веÑ_жовÑ_лиÑÑ_гÑÑд".split("_"),weekdays:s,weekdaysShort:"нд_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),weekdaysMin:"нд_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY Ñ.",LLL:"D MMMM YYYY Ñ., HH:mm",LLLL:"dddd, D MMMM YYYY Ñ., HH:mm"},calendar:{sameDay:r("[СÑÐ¾Ð³Ð¾Ð´Ð½Ñ "),nextDay:r("[ÐавÑÑа "),lastDay:r("[ÐÑоÑа "),nextWeek:r("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return r("[ÐинÑлоÑ] dddd [").call(this);case 1:case 2:case 4:return r("[ÐинÑлого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s ÑомÑ",s:"декÑлÑка ÑекÑнд",ss:i,m:i,mm:i,h:"годинÑ",hh:i,d:"денÑ",dd:i,M:"мÑÑÑÑÑ",MM:i,y:"ÑÑк",yy:i},meridiemParse:/ноÑÑ|ÑанкÑ|днÑ|веÑоÑа/,isPM:function(e){return/^(днÑ|веÑоÑа)$/.test(e)},meridiem:function(e,t,i){return e<4?"ноÑÑ":e<12?"ÑанкÑ":e<17?"днÑ":"веÑоÑа"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(i(5093))},6637:function(e,t,i){!function(e){"use strict";function t(e,t,i,s){var r=e+" ";switch(i){case"s":return t||s?"nekaj sekund":"nekaj sekundami";case"ss":return r+=1===e?t?"sekundo":"sekundi":2===e?t||s?"sekundi":"sekundah":e<5?t||s?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return r+=1===e?t?"minuta":"minuto":2===e?t||s?"minuti":"minutama":e<5?t||s?"minute":"minutami":t||s?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return r+=1===e?t?"ura":"uro":2===e?t||s?"uri":"urama":e<5?t||s?"ure":"urami":t||s?"ur":"urami";case"d":return t||s?"en dan":"enim dnem";case"dd":return r+=1===e?t||s?"dan":"dnem":2===e?t||s?"dni":"dnevoma":t||s?"dni":"dnevi";case"M":return t||s?"en mesec":"enim mesecem";case"MM":return r+=1===e?t||s?"mesec":"mesecem":2===e?t||s?"meseca":"mesecema":e<5?t||s?"mesece":"meseci":t||s?"mesecev":"meseci";case"y":return t||s?"eno leto":"enim letom";case"yy":return r+=1===e?t||s?"leto":"letom":2===e?t||s?"leti":"letoma":e<5?t||s?"leta":"leti":t||s?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_Äetrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._Äet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_Äe_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[vÄeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejÅ¡njo] [nedeljo] [ob] LT";case 3:return"[prejÅ¡njo] [sredo] [ob] LT";case 6:return"[prejÅ¡njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejÅ¡nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"Äez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(5093))},6794:function(e,t,i){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,i){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(5093))},6870:function(e,t,i){!function(e){"use strict";var t={1:"á¡",2:"á¢",3:"á£",4:"á¤",5:"á¥",6:"á¦",7:"á§",8:"á¨",9:"á©",0:"á "},i={"á¡":"1","á¢":"2","á£":"3","á¤":"4","á¥":"5","á¦":"6","á§":"7","á¨":"8","á©":"9","á ":"0"};e.defineLocale("km",{months:"áááá¶_áá»áááá_áá¸áá¶_áááá¶_á§ááá¶_áá·áá»áá¶_áááááá¶_áá¸á á¶_ááááá¶_áá»áá¶_áá·á
ááá·áá¶_áááá¼".split("_"),monthsShort:"áááá¶_áá»áááá_áá¸áá¶_áááá¶_á§ááá¶_áá·áá»áá¶_áááááá¶_áá¸á á¶_ááááá¶_áá»áá¶_áá·á
ááá·áá¶_áááá¼".split("_"),weekdays:"á¢á¶áá·ááá_á
áááá_á¢áááá¶á_áá»á_áááá ááááá·á_áá»ááá_áá
áá".split("_"),weekdaysShort:"á¢á¶_á
_á¢_á_ááá_áá»_á".split("_"),weekdaysMin:"á¢á¶_á
_á¢_á_ááá_áá»_á".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/áááá¹á|áááá¶á
/,isPM:function(e){return"áááá¶á
"===e},meridiem:function(e,t,i){return e<12?"áááá¹á":"áááá¶á
"},calendar:{sameDay:"[ááááááá áááá] LT",nextDay:"[ááá¢áá áááá] LT",nextWeek:"dddd [áááá] LT",lastDay:"[áááá·ááá·á áááá] LT",lastWeek:"dddd [ááááá¶á ááá»á] [áááá] LT",sameElse:"L"},relativeTime:{future:"%sááá",past:"%sáá»á",s:"ááá»áááá¶ááá·áá¶áá¸",ss:"%d áá·áá¶áá¸",m:"áá½ááá¶áá¸",mm:"%d áá¶áá¸",h:"áá½ááááá",hh:"%d áááá",d:"áá½ááááá",dd:"%d áááá",M:"áá½ááá",MM:"%d áá",y:"áá½ááááá¶á",yy:"%d áááá¶á"},dayOfMonthOrdinalParse:/áá¸\d{1,2}/,ordinal:"áá¸%d",preparse:function(e){return e.replace(/[á¡á¢á£á¤á¥á¦á§á¨á©á ]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(i(5093))},6947:function(e,t,i){!function(e){"use strict";var t={1:"Ù¡",2:"Ù¢",3:"Ù£",4:"Ù¤",5:"Ù¥",6:"Ù¦",7:"Ù§",8:"Ù¨",9:"Ù©",0:"Ù "},i={"Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù ":"0"};e.defineLocale("ar-ps",{months:"ÙØ§ÙÙÙ Ø§ÙØ«Ø§ÙÙ_شباط_آذار_ÙÙØ³Ø§Ù_Ø£ÙÙØ§Ø±_ØØ²ÙراÙ_تÙ
ÙÙØ²_آب_Ø£ÙÙÙÙ_ØªØ´Ø±Ù Ø§ÙØ£ÙÙÙ_تشرÙÙ Ø§ÙØ«Ø§ÙÙ_ÙØ§ÙÙÙ Ø§ÙØ£ÙÙÙ".split("_"),monthsShort:"ÙÙ¢_شباط_آذار_ÙÙØ³Ø§Ù_Ø£ÙÙØ§Ø±_ØØ²ÙراÙ_تÙ
ÙÙØ²_آب_Ø£ÙÙÙÙ_ت١_ت٢_ÙÙ¡".split("_"),weekdays:"Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù
ÙØ³_Ø§ÙØ¬Ù
عة_Ø§ÙØ³Ø¨Øª".split("_"),weekdaysShort:"Ø£ØØ¯_إثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_أربعاء_Ø®Ù
ÙØ³_جÙ
عة_سبت".split("_"),weekdaysMin:"Ø_Ù_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|Ù
/,isPM:function(e){return"Ù
"===e},meridiem:function(e,t,i){return e<12?"ص":"Ù
"},calendar:{sameDay:"[اÙÙÙÙ
عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextDay:"[غدا عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextWeek:"dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastDay:"[Ø£Ù
س عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastWeek:"dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",sameElse:"L"},relativeTime:{future:"ÙÙ %s",past:"Ù
ÙØ° %s",s:"Ø«ÙØ§Ù",ss:"%d ثاÙÙØ©",m:"دÙÙÙØ©",mm:"%d Ø¯ÙØ§Ø¦Ù",h:"ساعة",hh:"%d ساعات",d:"ÙÙÙ
",dd:"%d Ø£ÙØ§Ù
",M:"Ø´ÙØ±",MM:"%d Ø£Ø´ÙØ±",y:"Ø³ÙØ©",yy:"%d سÙÙØ§Øª"},preparse:function(e){return e.replace(/[٣٤٥٦٧٨٩٠]/g,(function(e){return i[e]})).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,(function(e){return i[e]})).split("").reverse().join("").replace(/Ø/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"Ø")},week:{dow:0,doy:6}})}(i(5093))},7071:function(e,t,i){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),i="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?i[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(i(5093))},7075:function(e,t,i){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ä unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_DiÄembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ä un_Lul_Aww_Set_Ott_Nov_DiÄ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ä imgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ä im_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ä i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"fâ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"Ä¡urnata",dd:"%d Ä¡ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(i(5093))},7088:function(e,t,i){!function(e){"use strict";var t={0:"-ÑÑ",1:"-ÑÑ",2:"-ÑÑ",3:"-ÑÑ",4:"-ÑÑ",5:"-ÑÑ",6:"-ÑÑ",7:"-ÑÑ",8:"-ÑÑ",9:"-ÑÑ",10:"-ÑÑ",20:"-ÑÑ",30:"-ÑÑ",40:"-ÑÑ",50:"-ÑÑ",60:"-ÑÑ",70:"-ÑÑ",80:"-ÑÑ",90:"-ÑÑ",100:"-ÑÑ"};e.defineLocale("kk",{months:"ÒаңÑаÑ_аÒпан_наÑÑÑз_ÑÓÑÑÑ_мамÑÑ_маÑÑÑм_ÑÑлде_ÑамÑз_ÒÑÑкүйек_Òазан_ÒаÑаÑа_желÑоÒÑан".split("_"),monthsShort:"Òаң_аÒп_наÑ_ÑÓÑ_мам_маÑ_ÑÑл_Ñам_ÒÑÑ_Òаз_ÒаÑ_жел".split("_"),weekdays:"жекÑенбÑ_дүйÑенбÑ_ÑейÑенбÑ_ÑÓÑÑенбÑ_бейÑенбÑ_жұма_ÑенбÑ".split("_"),weekdaysShort:"жек_дүй_Ñей_ÑÓÑ_бей_жұм_Ñен".split("_"),weekdaysMin:"жк_дй_Ñй_ÑÑ_бй_жм_Ñн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ÐүгÑн ÑаÒаÑ] LT",nextDay:"[ÐÑÑең ÑаÒаÑ] LT",nextWeek:"dddd [ÑаÒаÑ] LT",lastDay:"[ÐеÑе ÑаÒаÑ] LT",lastWeek:"[Ó¨Ñкен апÑанÑÒ£] dddd [ÑаÒаÑ] LT",sameElse:"L"},relativeTime:{future:"%s ÑÑÑнде",past:"%s бұÑÑн",s:"бÑÑнеÑе ÑекÑнд",ss:"%d ÑекÑнд",m:"бÑÑ Ð¼Ð¸Ð½ÑÑ",mm:"%d минÑÑ",h:"бÑÑ ÑаÒаÑ",hh:"%
2d ÑаÒаÑ",d:"бÑÑ ÐºÒ¯Ð½",dd:"%d күн",M:"бÑÑ Ð°Ð¹",MM:"%d ай",y:"бÑÑ Ð¶Ñл",yy:"%d жÑл"},dayOfMonthOrdinalParse:/\d{1,2}-(ÑÑ|ÑÑ)/,ordinal:function(e){var i=e%10,s=e>=100?100:null;return e+(t[e]||t[i]||t[s])},week:{dow:1,doy:7}})}(i(5093))},7160:function(e,t,i){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"Õ°Õ¸ÖÕ¶Õ¾Õ¡ÖÕ«_ÖÕ¥Õ¿ÖÕ¾Õ¡ÖÕ«_Õ´Õ¡ÖÕ¿Õ«_Õ¡ÕºÖÕ«Õ¬Õ«_Õ´Õ¡ÕµÕ«Õ½Õ«_Õ°Õ¸ÖÕ¶Õ«Õ½Õ«_Õ°Õ¸ÖÕ¬Õ«Õ½Õ«_Ö
Õ£Õ¸Õ½Õ¿Õ¸Õ½Õ«_Õ½Õ¥ÕºÕ¿Õ¥Õ´Õ¢Õ¥ÖÕ«_Õ°Õ¸Õ¯Õ¿Õ¥Õ´Õ¢Õ¥ÖÕ«_Õ¶Õ¸ÕµÕ¥Õ´Õ¢Õ¥ÖÕ«_Õ¤Õ¥Õ¯Õ¿Õ¥Õ´Õ¢Õ¥ÖÕ«".split("_"),standalone:"Õ°Õ¸ÖÕ¶Õ¾Õ¡Ö_ÖÕ¥Õ¿ÖÕ¾Õ¡Ö_Õ´Õ¡ÖÕ¿_Õ¡ÕºÖÕ«Õ¬_Õ´Õ¡ÕµÕ«Õ½_Õ°Õ¸ÖÕ¶Õ«Õ½_Õ°Õ¸ÖÕ¬Õ«Õ½_Ö
Õ£Õ¸Õ½Õ¿Õ¸Õ½_Õ½Õ¥ÕºÕ¿Õ¥Õ´Õ¢Õ¥Ö_Õ°Õ¸Õ¯Õ¿Õ¥Õ´Õ¢Õ¥Ö_Õ¶Õ¸ÕµÕ¥Õ´Õ¢Õ¥Ö_Õ¤Õ¥Õ¯Õ¿Õ¥Õ´Õ¢Õ¥Ö".split("_")},monthsShort:"Õ°Õ¶Õ¾_ÖÕ¿Ö_Õ´ÖÕ¿_Õ¡ÕºÖ_Õ´ÕµÕ½_Õ°Õ¶Õ½_Õ°Õ¬Õ½_Ö
Õ£Õ½_Õ½ÕºÕ¿_Õ°Õ¯Õ¿_Õ¶Õ´Õ¢_Õ¤Õ¯Õ¿".split("_"),weekdays:"Õ¯Õ«ÖÕ¡Õ¯Õ«_Õ¥ÖÕ¯Õ¸ÖÕ·Õ¡Õ¢Õ©Õ«_Õ¥ÖÕ¥ÖÕ·Õ¡Õ¢Õ©Õ«_Õ¹Õ¸ÖÕ¥ÖÕ·Õ¡Õ¢Õ©Õ«_Õ°Õ«Õ¶Õ£Õ·Õ¡Õ¢Õ©Õ«_Õ¸ÖÖÕ¢Õ¡Õ©_Õ·Õ¡Õ¢Õ¡Õ©".split("_"),weekdaysShort:"Õ¯ÖÕ¯_Õ¥ÖÕ¯_Õ¥ÖÖ_Õ¹ÖÖ_Õ°Õ¶Õ£_Õ¸ÖÖÕ¢_Õ·Õ¢Õ©".split("_"),weekdaysMin:"Õ¯ÖÕ¯_Õ¥ÖÕ¯_Õ¥ÖÖ_Õ¹ÖÖ_Õ°Õ¶Õ£_Õ¸ÖÖÕ¢_Õ·Õ¢Õ©".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY Õ©.",LLL:"D MMMM YYYY Õ©., HH:mm",LLLL:"dddd, D MMMM YYYY Õ©., HH:mm"},calendar:{sameDay:"[Õ¡ÕµÕ½Ö
Ö] LT",nextDay:"[Õ¾Õ¡Õ²Õ¨] LT",lastDay:"[Õ¥ÖÕ¥Õ¯] LT",nextWeek:function(){return"dddd [Ö
ÖÕ¨ ÕªÕ¡Õ´Õ¨] LT"},lastWeek:function(){return"[Õ¡Õ¶ÖÕ¡Õ®] dddd [Ö
ÖÕ¨ ÕªÕ¡Õ´Õ¨] LT"},sameElse:"L"},relativeTime:{future:"%s Õ°Õ¥Õ¿Õ¸",past:"%s Õ¡Õ¼Õ¡Õ»",s:"Õ´Õ« ÖÕ¡Õ¶Õ« Õ¾Õ¡ÕµÖÕ¯ÕµÕ¡Õ¶",ss:"%d Õ¾Õ¡ÕµÖÕ¯ÕµÕ¡Õ¶",m:"ÖÕ¸ÕºÕ¥",mm:"%d ÖÕ¸ÕºÕ¥",h:"ÕªÕ¡Õ´",hh:"%d ÕªÕ¡Õ´",d:"Ö
Ö",dd:"%d Ö
Ö",M:"Õ¡Õ´Õ«Õ½",MM:"%d Õ¡Õ´Õ«Õ½",y:"Õ¿Õ¡ÖÕ«",yy:"%d Õ¿Õ¡ÖÕ«"},meridiemParse:/Õ£Õ«Õ·Õ¥ÖÕ¾Õ¡|Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿Õ¾Õ¡|ÖÕ¥ÖÕ¥Õ¯Õ¾Õ¡|Õ¥ÖÕ¥Õ¯Õ¸ÕµÕ¡Õ¶/,isPM:function(e){return/^(ÖÕ¥ÖÕ¥Õ¯Õ¾Õ¡|Õ¥ÖÕ¥Õ¯Õ¸ÕµÕ¡Õ¶)$/.test(e)},meridiem:function(e){return e<4?"Õ£Õ«Õ·Õ¥ÖÕ¾Õ¡":e<12?"Õ¡Õ¼Õ¡Õ¾Õ¸Õ¿Õ¾Õ¡":e<17?"ÖÕ¥ÖÕ¥Õ¯Õ¾Õ¡":"Õ¥ÖÕ¥Õ¯Õ¸ÕµÕ¡Õ¶"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(Õ«Õ¶|ÖÕ¤)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-Õ«Õ¶":e+"-ÖÕ¤";default:return e}},week:{dow:1,doy:7}})}(i(5093))},7269:function(e){e.exports=function(){"use strict";const e=new Map;return{set(t,i,s){e.has(t)||e.set(t,new Map);const r=e.get(t);r.has(i)||0===r.size?r.set(i,s):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(t,i)=>e.has(t)&&e.get(t).get(i)||null,remove(t,i){if(!e.has(t))return;const s=e.get(t);s.delete(i),0===s.size&&e.delete(t)}}}()},7306:function(e,t,i){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquà %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var i=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(i="a"),e+i},week:{dow:1,doy:4}})}(i(5093))},7329:function(e,t,i){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%
2d horas",d:"un dÃa",dd:"%d dÃas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(i(5093))},7357:function(e,t,i){!function(e){"use strict";var t={1:"à§§",2:"২",3:"à§©",4:"৪",5:"à§«",6:"৬",7:"à§",8:"à§®",9:"৯",0:"০"},i={"à§§":"1","২":"2","à§©":"3","৪":"4","à§«":"5","৬":"6","à§":"7","à§®":"8","৯":"9","০":"0"};e.defineLocale("bn-bd",{months:"à¦à¦¾à¦¨à§à§à¦¾à¦°à¦¿_ফà§à¦¬à§à¦°à§à§à¦¾à¦°à¦¿_মারà§à¦_à¦à¦ªà§à¦°à¦¿à¦²_মà§_à¦à§à¦¨_à¦à§à¦²à¦¾à¦_à¦à¦à¦¸à§à¦_সà§à¦ªà§à¦à§à¦®à§à¦¬à¦°_à¦
à¦à§à¦à§à¦¬à¦°_নà¦à§à¦®à§à¦¬à¦°_ডিসà§à¦®à§à¦¬à¦°".split("_"),monthsShort:"à¦à¦¾à¦¨à§_ফà§à¦¬à§à¦°à§_মারà§à¦_à¦à¦ªà§à¦°à¦¿à¦²_মà§_à¦à§à¦¨_à¦à§à¦²à¦¾à¦_à¦à¦à¦¸à§à¦_সà§à¦ªà§à¦_à¦
à¦à§à¦à§_নà¦à§_ডিসà§".split("_"),weekdays:"রবিবার_সà§à¦®à¦¬à¦¾à¦°_মà¦à§à¦à¦²à¦¬à¦¾à¦°_বà§à¦§à¦¬à¦¾à¦°_বà§à¦¹à¦¸à§à¦ªà¦¤à¦¿à¦¬à¦¾à¦°_শà§à¦à§à¦°à¦¬à¦¾à¦°_শনিবার".split("_"),weekdaysShort:"রবি_সà§à¦®_মà¦à§à¦à¦²_বà§à¦§_বà§à¦¹à¦¸à§à¦ªà¦¤à¦¿_শà§à¦à§à¦°_শনি".split("_"),weekdaysMin:"রবি_সà§à¦®_মà¦à§à¦à¦²_বà§à¦§_বà§à¦¹_শà§à¦à§à¦°_শনি".split("_"),longDateFormat:{LT:"A h:mm সমà§",LTS:"A h:mm:ss সমà§",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সমà§",LLLL:"dddd, D MMMM YYYY, A h:mm সমà§"},calendar:{sameDay:"[à¦à¦] LT",nextDay:"[à¦à¦à¦¾à¦®à§à¦à¦¾à¦²] LT",nextWeek:"dddd, LT",lastDay:"[à¦à¦¤à¦à¦¾à¦²] LT",lastWeek:"[à¦à¦¤] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরà§",past:"%s à¦à¦à§",s:"à¦à§à§à¦ সà§à¦à§à¦¨à§à¦¡",ss:"%d সà§à¦à§à¦¨à§à¦¡",m:"à¦à¦ মিনিà¦",mm:"%d মিনিà¦",h:"à¦à¦ à¦à¦¨à§à¦à¦¾",hh:"%d à¦à¦¨à§à¦à¦¾",d:"à¦à¦ দিন",dd:"%d দিন",M:"à¦à¦ মাস",MM:"%d মাস",y:"à¦à¦ বà¦à¦°",yy:"%d বà¦à¦°"},preparse:function(e){return e.replace(/[১২৩৪৫৬à§à§®à§¯à§¦]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|à¦à§à¦°|সà¦à¦¾à¦²|দà§à¦ªà§à¦°|বিà¦à¦¾à¦²|সনà§à¦§à§à¦¯à¦¾|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"à¦à§à¦°"===t||"সà¦à¦¾à¦²"===t?e:"দà§à¦ªà§à¦°"===t?e>=3?e:e+12:"বিà¦à¦¾à¦²"===t||"সনà§à¦§à§à¦¯à¦¾"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"রাত":e<6?"à¦à§à¦°":e<12?"সà¦à¦¾à¦²":e<15?"দà§à¦ªà§à¦°":e<18?"বিà¦à¦¾à¦²":e<20?"সনà§à¦§à§à¦¯à¦¾":"রাত"},week:{dow:0,doy:6}})}(i(5093))},7538:function(e,t,i){!function(e){"use strict";e.defineLocale("si",{months:"ජනà·à·à¶»à·_à¶´à·à¶¶à¶»à·à·à¶»à·_මà·à¶»à·à¶à·_à¶
à¶´à·âà¶»à·à¶½à·_මà·à¶ºà·_à¶¢à·à¶±à·_à¶¢à·à¶½à·_à¶
à¶à·à·à·à¶à·_à·à·à¶´à·à¶à·à¶¸à·à¶¶à¶»à·_à¶à¶à·à¶à·à¶¶à¶»à·_à¶±à·à·à·à¶¸à·à¶¶à¶»à·_දà·à·à·à¶¸à·à¶¶à¶»à·".split("_"),monthsShort:"ජන_à¶´à·à¶¶_මà·à¶»à·_à¶
à¶´à·_මà·à¶ºà·_à¶¢à·à¶±à·_à¶¢à·à¶½à·_à¶
à¶à·_à·à·à¶´à·_à¶à¶à·_à¶±à·à·à·_දà·à·à·".split("_"),weekdays:"à¶à¶»à·à¶¯à·_à·à¶³à·à¶¯à·_à¶
à¶à·à¶»à·à·à·à¶¯à·_බදà·à¶¯à·_à¶¶à·âà¶»à·à·à·à¶´à¶à·à¶±à·à¶¯à·_à·à·à¶à·à¶»à·à¶¯à·_à·à·à¶±à·à·à¶»à·à¶¯à·".split("_"),weekdaysShort:"à¶à¶»à·_à·à¶³à·_à¶
à¶_බදà·_à¶¶à·âà¶»à·_à·à·à¶à·_à·à·à¶±".split("_"),weekdaysMin:"à¶_à·_à¶
_à¶¶_à¶¶à·âà¶»_à·à·_à·à·".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [à·à·à¶±à·] dddd, a h:mm:ss"},calendar:{sameDay:"[à¶
ද] LT[à¶§]",nextDay:"[à·à·à¶§] LT[à¶§]",nextWeek:"dddd LT[à¶§]",lastDay:"[à¶à¶ºà·] LT[à¶§]",lastWeek:"[à¶´à·à·à¶à·à¶º] dddd LT[à¶§]",sameElse:"L"},relativeTime:{future:"%sà¶à·à¶±à·",past:"%sà¶à¶§ à¶´à·à¶»",s:"à¶à¶à·à¶´à¶» à¶à·à·à·à¶´à¶º",ss:"à¶à¶à·à¶´à¶» %d",m:"මà·à¶±à·à¶à·à¶à·à·",mm:"මà·à¶±à·à¶à·à¶à· %d",h:"à¶´à·à¶º",hh:"à¶´à·à¶º %d",d:"දà·à¶±à¶º",dd:"දà·à¶± %d",M:"මà·à·à¶º",MM:"මà·à· %d",y:"à·à·à¶»",yy:"à·à·à¶» %d"},dayOfMonthOrdinalParse:/\d{1,2} à·à·à¶±à·/,ordinal:function(e){return e+" à·à·à¶±à·"},meridiemParse:/à¶´à·à¶» à·à¶»à·|à¶´à·à· à·à¶»à·|à¶´à·.à·|à¶´.à·./,isPM:function(e){return"à¶´.à·."===e||"à¶´à·à· à·à¶»à·"===e},meridiem:function(e,t,i){return e>11?i?"à¶´.à·.":"à¶´à·à· à·à¶»à·":i?"à¶´à·.à·.":"à¶´à·à¶» à·à¶»à·"}})}(i(5093))},7609:function(e,t,i){!function(e){"use strict";e.defineLocale("uz",{months:"ÑнваÑ_ÑевÑал_маÑÑ_апÑел_май_иÑн_иÑл_авгÑÑÑ_ÑенÑÑбÑ_окÑÑбÑ_ноÑбÑ_декабÑ".split("_"),monthsShort:"Ñнв_Ñев_маÑ_апÑ_май_иÑн_иÑл_авг_Ñен_окÑ_ноÑ_дек".split("_"),weekdays:"ЯкÑанба_ÐÑÑанба_СеÑанба_ЧоÑÑанба_ÐайÑанба_ÐÑма_Шанба".split("_"),weekdaysShort:"ЯкÑ_ÐÑÑ_СеÑ_ЧоÑ_Ðай_ÐÑм_Шан".split("_"),weekdaysMin:"Як_ÐÑ_Се_Чо_Ðа_ÐÑ_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[ÐÑгÑн ÑоаÑ] LT [да]",nextDay:"[ÐÑÑага] LT [да]",nextWeek:"dddd [кÑни ÑоаÑ] LT [да]",lastDay:"[ÐеÑа ÑоаÑ] LT [да]",lastWeek:"[УÑган] dddd [кÑни ÑоаÑ] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s иÑида",past:"ÐÐ¸Ñ Ð½ÐµÑа %s олдин",s:"ÑÑÑÑаÑ",ss:"%d ÑÑÑÑаÑ",m:"Ð±Ð¸Ñ Ð´Ð°ÐºÐ¸ÐºÐ°",mm:"%d дакика",h:"Ð±Ð¸Ñ ÑоаÑ",hh:"%
2d ÑоаÑ",d:"Ð±Ð¸Ñ ÐºÑн",dd:"%d кÑн",M:"Ð±Ð¸Ñ Ð¾Ð¹",MM:"%d ой",y:"Ð±Ð¸Ñ Ð¹Ð¸Ð»",yy:"%d йил"},week:{dow:1,doy:7}})}(i(5093))},7650:function(e,t,i){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?i[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un dÃa",dd:"%d dÃas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(i(5093))},7711:function(e,t,i){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibr
2ir_mayyw_ywnyw_ywlywz_É£wÅ¡t_Å¡wtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_É£wÅ¡t_Å¡wtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiá¸yas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiá¸yas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiá¸yas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuá¸",mm:"%d minuá¸",h:"saÉa",hh:"%d tassaÉin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(i(5093))},7730:function(e,t,i){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?i[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un dÃa",dd:"%d dÃas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(i(5093))},7777:function(e,t,i){!function(e){"use strict";e.defineLocale("bg",{months:"ÑнÑаÑи_ÑевÑÑаÑи_маÑÑ_апÑил_май_Ñни_Ñли_авгÑÑÑ_ÑепÑемвÑи_окÑомвÑи_ноемвÑи_декемвÑи".split("_"),monthsShort:"ÑнÑ_Ñев_маÑ_апÑ_май_Ñни_Ñли_авг_Ñеп_окÑ_ное_дек".split("_"),weekdays:"неделÑ_понеделник_вÑоÑник_ÑÑÑда_ÑеÑвÑÑÑÑк_пеÑÑк_ÑÑбоÑа".split("_"),weekdaysShort:"нед_пон_вÑо_ÑÑÑ_ÑеÑ_пеÑ_ÑÑб".split("_"),weekdaysMin:"нд_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[ÐÐ½ÐµÑ Ð²] LT",nextDay:"[УÑÑе в] LT",nextWeek:"dddd [в] LT",lastDay:"[ÐÑеÑа в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[ÐиналаÑа] dddd [в] LT";case 1:case 2:case 4:case 5:return"[ÐиналиÑ] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"Ñлед %s",past:"пÑеди %s",s:"нÑколко ÑекÑнди",ss:"%d ÑекÑнди",m:"минÑÑа",mm:"%d минÑÑи",h:"ÑаÑ",hh:"%
2d ÑаÑа",d:"ден",dd:"%d дена",w:"ÑедмиÑа",ww:"%d ÑедмиÑи",M:"меÑеÑ",MM:"%d меÑеÑа",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|Ñи|ви|Ñи|ми)/,ordinal:function(e){var t=e%10,i=e%100;return 0===e?e+"-ев":0===i?e+"-ен":i>10&&i<20?e+"-Ñи":1===t?e+"-ви":2===t?e+"-Ñи":7===t||8===t?e+"-ми":e+"-Ñи"},week:{dow:1,doy:7}})}(i(5093))},7853:function(e,t,i){!function(e){"use strict";function t(e,t,i,s){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[i][0]:r[i][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(5093))},7892:function(e,t,i){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourdâhui à ] LT",nextDay:"[Demain à ] LT",nextWeek:"dddd [à ] LT",lastDay:"[Hier à ] LT",lastWeek:"dddd [dernier à ] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(i(5093))},7956:function(e,t,i){e.exports=function(e){"use strict";const t=/[^.]*(?=\..*)\.|.*/,i=/\..*/,s=/::\d+$/,r={};let n=1;
vendor: 4,817 bytes, line 2
2const a={mouseenter:"mouseover",mouseleave:"mouseout"},o=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function l(e,t){return t&&`${t}::${n++}`||e.uidEvent||n++}function d(e){const t=l(e);return e.uidEvent=t,r[t]=r[t]||{},r[t]}function h(e,t){return function i(s){return v(s,{delegateTarget:e}),i.oneOff&&_.off(e,s.type,t),t.apply(e,[s])}}function c(e,t,i){return function s(r){const n=e.querySelectorAll(t);for(let{target:a}=r;a&&a!==this;a=a.parentNode)for(const o of n)if(o===a)return v(r,{delegateTarget:a}),s.oneOff&&_.off(e,r.type,t,i),i.apply(a,[r])}}function u(e,t,i=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===i))}function f(e,t,i){const s="string"==typeof t,r=s?i:t||i;let n=y(e);return o.has(n)||(n=e),[s,r,n]}function m(e,i,s,r,n){if("string"!=typeof i||!e)return;let[o,m,p]=f(i,s,r);if(i in a){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};m=e(m)}const g=d(e),y=g[p]||(g[p]={}),_=u(y,m,o?s:null);if(_)return void(_.oneOff=_.oneOff&&n);const v=l(m,i.replace(t,"")),b=o?c(e,s,m):h(e,m);b.delegationSelector=o?s:null,b.callable=m,b.oneOff=n,b.uidEvent=v,y[v]=b,e.addEventListener(p,b,o)}function p(e,t,i,s,r){const n=u(t[i],s,r);n&&(e.removeEventListener(i,n,Boolean(r)),delete t[i][n.uidEvent])}function g(e,t,i,s){const r=t[i]||{};for(const[n,a]of Object.entries(r))n.includes(s)&&p(e,t,i,a.callable,a.delegationSelector)}function y(e){return e=e.replace(i,""),a[e]||e}const _={on(e,t,i,s){m(e,t,i,s,!1)},one(e,t,i,s){m(e,t,i,s,!0)},off(e,t,i,r){if("string"!=typeof t||!e)return;const[n,a,o]=f(t,i,r),l=o!==t,h=d(e),c=h[o]||{},u=t.startsWith(".");if(void 0===a){if(u)for(const i of Object.keys(h))g(e,h,i,t.slice(1));for(const[i,r]of Object.entries(c)){const n=i.replace(s,"");l&&!t.includes(n)||p(e,h,o,r.callable,r.delegationSelector)}}else{if(!Object.keys(c).length)return;p(e,h,o,a,n?i:null)}},trigger(t,i,s){if("string"!=typeof i||!t)return null;const r=e.getjQuery();let n=null,a=!0,o=!0,l=!1;i!==y(i)&&r&&(n=r.Event(i,s),r(t).trigger(n),a=!n.isPropagationStopped(),o=!n.isImmediatePropagationStopped(),l=n.isDefaultPrevented());const d=v(new Event(i,{bubbles:a,cancelable:!0}),s);return l&&d.preventDefault(),o&&t.dispatchEvent(d),d.defaultPrevented&&n&&n.preventDefault(),d}};function v(e,t={}){for(const[i,s]of Object.entries(t))try{e[i]=s}catch(t){Object.defineProperty(e,i,{configurable:!0,get:()=>s})}return e}return _}(i(4035))},8013:function(e,t,i){e.exports=function(e,t,i,s){"use strict";const r="tab",n=".bs.tab",a=`hide${n}`,o=`hidden${n}`,l=`show${n}`,d=`shown${n}`,h=`click${n}`,c=`keydown${n}`,u=`load${n}`,f="ArrowLeft",m="ArrowRight",p="ArrowUp",g="ArrowDown",y="Home",_="End",v="active",b="fade",w="show",T="dropdown",M=".dropdown-toggle",S=".dropdown-menu",L=`:not(${M})`,k='.list-group, .nav, [role="tablist"]',E=".nav-item, .list-group-item",D='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',x=`.nav-link${L}, .list-group-item${L}, [role="tab"]${L}, ${D}`,A=`.${v}[data-bs-toggle="tab"], .${v}[data-bs-toggle="pill"], .${v}[data-bs-toggle="list"]`;class P extends e{constructor(e){super(e),this._parent=this._element.closest(k),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),t.on(this._element,c,(e=>this._keydown(e))))}static get NAME(){return r}show(){const e=this._element;if(this._elemIsActive(e))return;const i=this._getActiveElem(),s=i?t.trigger(i,a,{relatedTarget:e}):null;t.trigger(e,l,{relatedTarget:i}).defaultPrevented||s&&s.defaultPrevented||(this._deactivate(i,e),this._activate(e,i))}_activate(e,s){if(!e)return;e.classList.add(v),this._activate(i.getElementFromSelector(e));const r=()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),t.trigger(e,d,{relatedTarget:s})):e.classList.add(w)};this._queueCallback(r,e,e.classList.contains(b))}_deactivate(e,s){if(!e)return;e.classList.remove(v),e.blur(),this._deactivate(i.getElementFromSelector(e));const r=()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),t.trigger(e,o,{relatedTarget:s})):e.classList.remove(w)};this._queueCallback(r,e,e.classList.contains(b))}
2_keydown(e){if(![f,m,p,g,y,_].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!s.isDisabled(e)));let i;if([y,_].includes(e.key))i=t[e.key===y?0:t.length-1];else{const r=[m,g].includes(e.key);i=s.getNextActiveElement(t,e.target,r,!0)}i&&(i.focus({preventScroll:!0}),P.getOrCreateInstance(i).show())}_getChildren(){return i.find(x,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),i=this._getOuterElement(e);e.setAttribute("aria-selected",t),i!==e&&this._setAttributeIfNotExists(i,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=i.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const s=this._getOuterElement(e);if(!s.classList.contains(T))return;const r=(e,r)=>{const n=i.findOne(e,s);n&&n.classList.toggle(r,t)};r(M,v),r(S,w),s.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(v)}_getInnerElement(e){return e.matches(x)?e:i.findOne(x,e)}_getOuterElement(e){return e.closest(E)||e}static jQueryInterface(e){return this.each((function(){const t=P.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}return t.on(document,h,D,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),s.isDisabled(this)||P.getOrCreateInstance(this).show()})),t.on(window,u,(()=>{for(const e of i.find(A))P.getOrCreateInstance(e)})),s.defineJQueryPlugin(P),P}(i(9011),i(7956),i(5411),i(4035))},8076:function(e,t,i){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,i,s){var r=t.words[s];return 1===s.length?i?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_Äetvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._Äet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_Äe_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juÄe u] LT",lastWeek:function(){return["[proÅ¡le] [nedjelje] [u] LT","[proÅ¡log] [ponedjeljka] [u] LT","[proÅ¡log] [utorka] [u] LT","[proÅ¡le] [srijede] [u] LT","[proÅ¡log] [Äetvrtka] [u] LT","[proÅ¡log] [petka] [u] LT","[proÅ¡le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(i(5093))},8174:function(e,t,i){!function(e){"use strict";var t={1:"Ù¡",2:"Ù¢",3:"Ù£",4:"Ù¤",5:"Ù¥",6:"Ù¦",7:"Ù§",8:"Ù¨",9:"Ù©",0:"Ù "},i={"Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Ù ":"0"},s=["کاÙÙÙÛ Ø¯ÙÙÛÙ
","Ø´ÙØ¨Ø§Øª","ئازار","ÙÛØ³Ø§Ù","Ø¦Ø§ÛØ§Ø±","ØÙزÛÛØ±Ø§Ù","تÛÙ
Ù
ÙØ²","ئاب","ئÛÛÙÙÙÙ","تشرÛÙÛ ÛÛÙÛÙ
","تشرÛÙÛ Ø¯ÙÙÛÙ
","ÙØ§ÙÙÙÛ ÛÛÚ©ÛÙ
"];e.defineLocale("ku",{months:s,monthsShort:s,weekdays:"ÛÙâÙØ´ÙâÙ
Ù
Ùâ_دÙÙØ´ÙâÙ
Ù
Ùâ_Ø³ÛØ´ÙâÙ
Ù
Ùâ_ÚÙØ§Ø±Ø´ÙâÙ
Ù
Ùâ_Ù¾ÛÙØ¬Ø´ÙâÙ
Ù
Ùâ_ÙÙâÛÙÛ_Ø´ÙâÙ
Ù
Ùâ".split("_"),weekdaysShort:"ÛÙâÙØ´ÙâÙ
_دÙÙØ´ÙâÙ
_Ø³ÛØ´ÙâÙ
_ÚÙØ§Ø±Ø´ÙâÙ
_Ù¾ÛÙØ¬Ø´ÙâÙ
_ÙÙâÛÙÛ_Ø´ÙâÙ
Ù
Ùâ".split("_"),weekdaysMin:"Û_د_س_Ú_Ù¾_Ù_Ø´".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئÛÙØ§Ø±Ùâ|بÙâÛØ§ÙÛ/,isPM:function(e){return/ئÛÙØ§Ø±Ùâ/.test(e)},meridiem:function(e,t,i){return e<12?"بÙâÛØ§ÙÛ":"ئÛÙØ§Ø±Ùâ"},calendar:{sameDay:"[ئÙâÙ
Ø±Û ÙØ§ØªÚÙ
ÛØ±] LT",nextDay:"[بÙâÛØ§ÙÛ ÙØ§ØªÚÙ
ÛØ±] LT",nextWeek:"dddd [ÙØ§ØªÚÙ
ÛØ±] LT",lastDay:"[دÙÛÙÛ ÙØ§ØªÚÙ
ÛØ±] LT",lastWeek:"dddd [ÙØ§ØªÚÙ
ÛØ±] LT",sameElse:"L"},relativeTime:{future:"ÙÙâ %s",past:"%s",s:"ÚÙâÙØ¯ ÚØ±ÙÙâÛÙâÙ",ss:"ÚØ±ÙÙâ %d",m:"ÛÙâÙ Ø®ÙÙÙâÙ",mm:"%d Ø®ÙÙÙâÙ",h:"ÛÙâÙ ÙØ§ØªÚÙ
ÛØ±",hh:"%
2d ÙØ§ØªÚÙ
ÛØ±",d:"ÛÙâÙ ÚÛÚ",dd:"%d ÚÛÚ",M:"ÛÙâÙ Ù
اÙÚ¯",MM:"%d Ù
اÙÚ¯",y:"ÛÙâ٠ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return i[e]})).replace(/Ø/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"Ø")},week:{dow:6,doy:12}})}(i(5093))},8235:function(e,t,i){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"à¥",8:"८",9:"९",0:"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","à¥":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"à¤à¤¨à¤µà¤°à¥_फà¥à¤¬à¥à¤°à¥à¤µà¤°à¥_मारà¥à¤_à¤
पà¥à¤°à¤¿à¤²_मà¤_à¤à¥à¤¨_à¤à¥à¤²à¤¾à¤_à¤
à¤à¤·à¥à¤_सà¥à¤ªà¥à¤à¥à¤®à¥à¤¬à¤°_à¤
à¤à¥à¤à¥à¤¬à¤°_नà¥à¤à¥à¤®à¥à¤¬à¤°_डिसà¥à¤®à¥à¤¬à¤°".split("_"),monthsShort:"à¤à¤¨._फà¥à¤¬à¥à¤°à¥._मारà¥à¤_à¤
पà¥à¤°à¤¿._मà¤_à¤à¥à¤¨_à¤à¥à¤²à¤¾à¤._à¤
à¤._सà¥à¤ªà¥à¤._à¤
à¤à¥à¤à¥._नà¥à¤à¥._डिसà¥.".split("_"),monthsParseExact:!0,weekdays:"à¤à¤à¤¤à¤¬à¤¾à¤°_सà¥à¤®à¤¬à¤¾à¤°_मà¤à¥à¤à¤²à¤¬à¤¾à¤°_बà¥à¤§à¤¬à¤¾à¤°_बिहिबार_शà¥à¤à¥à¤°à¤¬à¤¾à¤°_शनिबार".split("_"),weekdaysShort:"à¤à¤à¤¤._सà¥à¤®._मà¤à¥à¤à¤²._बà¥à¤§._बिहि._शà¥à¤à¥à¤°._शनि.".split("_"),weekdaysMin:"à¤._सà¥._मà¤._बà¥._बि._शà¥._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aà¤à¥ h:mm बà¤à¥",LTS:"Aà¤à¥ h:mm:ss बà¤à¥",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aà¤à¥ h:mm बà¤à¥",LLLL:"dddd, D MMMM YYYY, Aà¤à¥ h:mm बà¤à¥"},preparse:function(e){return e.replace(/[१२३४५६à¥à¥®à¥¯à¥¦]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिà¤à¤à¤¸à¥|साà¤à¤/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिà¤à¤à¤¸à¥"===t?e>=10?e:e+12:"साà¤à¤"===t?e+12:void 0},meridiem:function(e,t,i){return e<3?"राति":e<12?"बिहान":e<16?"दिà¤à¤à¤¸à¥":e<20?"साà¤à¤":"राति"},calendar:{sameDay:"[à¤à¤] LT",nextDay:"[à¤à¥à¤²à¤¿] LT",nextWeek:"[à¤à¤à¤à¤¦à¥] dddd[,] LT",lastDay:"[हिà¤à¥] LT",lastWeek:"[à¤à¤à¤à¥] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s à¤
à¤à¤¾à¤¡à¤¿",s:"à¤à¥à¤¹à¥ à¤à¥à¤·à¤£",ss:"%d सà¥à¤à¥à¤£à¥à¤¡",m:"à¤à¤ मिनà¥à¤",mm:"%d मिनà¥à¤",h:"à¤à¤ à¤à¤£à¥à¤à¤¾",hh:"%d à¤à¤£à¥à¤à¤¾",d:"à¤à¤ दिन",dd:"%d दिन",M:"à¤à¤ महिना",MM:"%d महिना",y:"à¤à¤ बरà¥à¤·",yy:"%d बरà¥à¤·"},week:{dow:0,doy:6}})}(i(5093))},8248:function(e,t,i){!function(e,t,i,s){"use strict";const r=(e,r="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,a=e.NAME;t.on(document,n,`[data-bs-dismiss="${a}"]`,(function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),s.isDisabled(this))return;const n=i.getElementFromSelector(this)||this.closest(`.${a}`);e.getOrCreateInstance(n)[r]()}))};e.enableDismissTrigger=r,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}(t,i(7956),i(5411),i(4035))},8298:function(e,t,i){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(i(5093))},8303:function(e,t,i){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [à s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [à s] HH:mm"},calendar:{sameDay:"[Hoje à s] LT",nextDay:"[Amanhã à s] LT",nextWeek:"dddd [à s] LT",lastDay:"[Ontem à s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Ãltimo] dddd [à s] LT":"[Ãltima] dddd [à s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%
2d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(i(5093))},8383:function(e,t,i){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(i(5093))},8414:function(e,t,i){!function(e){"use strict";e.defineLocale("ug-cn",{months:"ÙØ§ÙÛØ§Ø±_ÙÛÛØ±Ø§Ù_Ù
ارت_ئاپرÛÙ_Ù
اÙ_ئÙÙÛÙ_ئÙÙÛÙ_Ø¦Ø§ÛØºÛست_سÛÙØªÛØ¨ÙØ±_ئÛÙØªÛØ¨ÙØ±_ÙÙÙØ§Ø¨Ùر_دÛÙØ§Ø¨Ùر".split("_"),monthsShort:"ÙØ§ÙÛØ§Ø±_ÙÛÛØ±Ø§Ù_Ù
ارت_ئاپرÛÙ_Ù
اÙ_ئÙÙÛÙ_ئÙÙÛÙ_Ø¦Ø§ÛØºÛست_سÛÙØªÛØ¨ÙØ±_ئÛÙØªÛØ¨ÙØ±_ÙÙÙØ§Ø¨Ùر_دÛÙØ§Ø¨Ùر".split("_"),weekdays:"ÙÛÙØ´ÛÙØ¨Û_Ø¯ÛØ´ÛÙØ¨Û_سÛÙØ´ÛÙØ¨Û_ÚØ§Ø±Ø´ÛÙØ¨Û_Ù¾ÛÙØ´ÛÙØ¨Û_جÛÙ
Û_Ø´ÛÙØ¨Û".split("_"),weekdaysShort:"ÙÛ_دÛ_سÛ_ÚØ§_Ù¾Û_جÛ_Ø´Û".split("_"),weekdaysMin:"ÙÛ_دÛ_سÛ_ÚØ§_Ù¾Û_جÛ_Ø´Û".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-ÙÙÙÙM-ئاÙÙÙÚD-ÙÛÙÙ",LLL:"YYYY-ÙÙÙÙM-ئاÙÙÙÚD-ÙÛÙÙØ HH:mm",LLLL:"ddddØ YYYY-ÙÙÙÙM-ئاÙÙÙÚD-ÙÛÙÙØ HH:mm"},meridiemParse:/ÙÛØ±ÙÙ
ÙÛÚÛ|سÛÚ¾ÛØ±|ÚÛØ´ØªÙÙ Ø¨ÛØ±ÛÙ|ÚÛØ´|ÚÛØ´ØªÙÙ ÙÛÙÙÙ|ÙÛÚ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ÙÛØ±ÙÙ
ÙÛÚÛ"===t||"سÛÚ¾ÛØ±"===t||"ÚÛØ´ØªÙÙ Ø¨ÛØ±ÛÙ"===t?e:"ÚÛØ´ØªÙÙ ÙÛÙÙÙ"===t||"ÙÛÚ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,i){var s=100*e+t;return s<600?"ÙÛØ±ÙÙ
ÙÛÚÛ":s<900?"سÛÚ¾ÛØ±":s<1130?"ÚÛØ´ØªÙÙ Ø¨ÛØ±ÛÙ":s<1230?"ÚÛØ´":s<1800?"ÚÛØ´ØªÙÙ ÙÛÙÙÙ":"ÙÛÚ"},calendar:{sameDay:"[بÛÚ¯ÛÙ Ø³Ø§Ø¦ÛØª] LT",nextDay:"[Ø¦ÛØªÛ Ø³Ø§Ø¦ÛØª] LT",nextWeek:"[ÙÛÙÛØ±ÙÙ] dddd [Ø³Ø§Ø¦ÛØª] LT",lastDay:"[تÛÙÛÚ¯ÛÙ] LT",lastWeek:"[Ø¦Ø§ÙØ¯ÙÙÙÙ] dddd [Ø³Ø§Ø¦ÛØª] LT",sameElse:"L"},relativeTime:{future:"%s ÙÛÙÙÙ",past:"%s Ø¨ÛØ±ÛÙ",s:"ÙÛÚÚÛ Ø³ÛÙÙÙØª",ss:"%d سÛÙÙÙØª",m:"Ø¨ÙØ± Ù
ÙÙÛØª",mm:"%d Ù
ÙÙÛØª",h:"Ø¨ÙØ± Ø³Ø§Ø¦ÛØª",hh:"%d Ø³Ø§Ø¦ÛØª",d:"Ø¨ÙØ± ÙÛÙ",dd:"%d ÙÛÙ",M:"Ø¨ÙØ± ئاÙ",MM:"%d ئاÙ",y:"Ø¨ÙØ± ÙÙÙ",yy:"%d ÙÙÙ"},dayOfMonthOrdinalParse:/\d{1,2}(-ÙÛÙÙ|-ئاÙ|-Ú¾ÛپتÛ)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-ÙÛÙÙ";case"w":case"W":return e+"-Ú¾ÛپتÛ";default:return e}},preparse:function(e){return e.replace(/Ø/g,",")},postformat:function(e){return e.replace(/,/g,"Ø")},week:{dow:1,doy:7}})}(i(5093))},8474:function(e,t,i){!function(e){"use strict";var t={0:"-ÑÒ¯",1:"-Ñи",2:"-Ñи",3:"-ÑÒ¯",4:"-ÑÒ¯",5:"-Ñи",6:"-ÑÑ",7:"-Ñи",8:"-Ñи",9:"-ÑÑ",10:"-ÑÑ",20:"-ÑÑ",30:"-ÑÑ",40:"-ÑÑ",50:"-ÑÒ¯",60:"-ÑÑ",70:"-Ñи",80:"-Ñи",90:"-ÑÑ",100:"-ÑÒ¯"};e.defineLocale("ky",{months:"ÑнваÑÑ_ÑевÑалÑ_маÑÑ_апÑелÑ_май_иÑнÑ_иÑлÑ_авгÑÑÑ_ÑенÑÑбÑÑ_окÑÑбÑÑ_ноÑбÑÑ_декабÑÑ".split("_"),monthsShort:"Ñнв_Ñев_маÑÑ_апÑ_май_иÑнÑ_иÑлÑ_авг_Ñен_окÑ_ноÑ_дек".split("_"),weekdays:"ÐекÑемби_ÐүйÑөмбү_ШейÑемби_ШаÑÑемби_ÐейÑемби_ÐÑма_ÐÑемби".split("_"),weekdaysShort:"Ðек_Ðүй_Шей_ШаÑ_Ðей_ÐÑм_ÐÑе".split("_"),weekdaysMin:"Ðк_Ðй_Шй_ШÑ_Ðй_Ðм_ÐÑ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ðүгүн ÑааÑ] LT",nextDay:"[ÐÑÑең ÑааÑ] LT",nextWeek:"dddd [ÑааÑ] LT",lastDay:"[ÐеÑÑÑ ÑааÑ] LT",lastWeek:"[Ó¨Ñкөн апÑанÑн] dddd [күнү] [ÑааÑ] LT",sameElse:"L"},relativeTime:{future:"%s иÑинде",past:"%s мÑÑÑн",s:"биÑнеÑе ÑекÑнд",ss:"%d ÑекÑнд",m:"Ð±Ð¸Ñ Ð¼Ò¯Ð½Ó©Ñ",mm:"%d мүнөÑ",h:"Ð±Ð¸Ñ ÑааÑ",hh:"%
2d ÑааÑ",d:"Ð±Ð¸Ñ ÐºÒ¯Ð½",dd:"%d күн",M:"Ð±Ð¸Ñ Ð°Ð¹",MM:"%d ай",y:"Ð±Ð¸Ñ Ð¶Ñл",yy:"%d жÑл"},dayOfMonthOrdinalParse:/\d{1,2}-(Ñи|ÑÑ|ÑÒ¯|ÑÑ)/,ordinal:function(e){var i=e%10,s=e>=100?100:null;return e+(t[e]||t[i]||t[s])},week:{dow:1,doy:7}})}(i(5093))},8647:function(e,t,i){e.exports=function(e,t,i,s){"use strict";const r="collapse",n=".bs.collapse",a=`show${n}`,o=`shown${n}`,l=`hide${n}`,d=`hidden${n}`,h=`click${n}.data-api`,c="show",u="collapse",f="collapsing",m="collapsed",p=`:scope .${u} .${u}`,g="collapse-horizontal",y="width",_="height",v=".collapse.show, .collapse.collapsing",b='[data-bs-toggle="collapse"]',w={parent:null,toggle:!0},T={parent:"(null|element)",toggle:"boolean"};class M extends e{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const s=i.find(b);for(const e of s){const t=i.getSelectorFromElement(e),s=i.find(t).filter((e=>e===this._element));null!==t&&s.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return w}static get DefaultType(){return T}static get NAME(){return r}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];
2if(this._config.parent&&(e=this._getFirstLevelChildren(v).filter((e=>e!==this._element)).map((e=>M.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(t.trigger(this._element,a).defaultPrevented)return;for(const t of e)t.hide();const i=this._getDimension();this._element.classList.remove(u),this._element.classList.add(f),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=()=>{this._isTransitioning=!1,this._element.classList.remove(f),this._element.classList.add(u,c),this._element.style[i]="",t.trigger(this._element,o)},r=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback(s,this._element,!0),this._element.style[i]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(t.trigger(this._element,l).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,s.reflow(this._element),this._element.classList.add(f),this._element.classList.remove(u,c);for(const e of this._triggerArray){const t=i.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(f),this._element.classList.add(u),t.trigger(this._element,d)};this._element.style[e]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(c)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=s.getElement(e.parent),e}_getDimension(){return this._element.classList.contains(g)?y:_}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(b);for(const t of e){const e=i.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=i.find(p,this._config.parent);return i.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const i of e)i.classList.toggle(m,!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const i=M.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}))}}return t.on(document,h,b,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of i.getMultipleElementsFromSelector(this))M.getOrCreateInstance(e,{toggle:!1}).toggle()})),s.defineJQueryPlugin(M),M}(i(9011),i(7956),i(5411),i(4035))},8676:function(e,t,i){!function(e){"use strict";e.defineLocale("ar-kw",{months:"ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_Ù
ارس_أبرÙÙ_Ù
اÙ_ÙÙÙÙÙ_ÙÙÙÙÙØ²_غشت_Ø´ØªÙØ¨Ø±_Ø£ÙØªÙبر_ÙÙÙØ¨Ø±_Ø¯Ø¬ÙØ¨Ø±".split("_"),monthsShort:"ÙÙØ§Ùر_ÙØ¨Ø±Ø§Ùر_Ù
ارس_أبرÙÙ_Ù
اÙ_ÙÙÙÙÙ_ÙÙÙÙÙØ²_غشت_Ø´ØªÙØ¨Ø±_Ø£ÙØªÙبر_ÙÙÙØ¨Ø±_Ø¯Ø¬ÙØ¨Ø±".split("_"),weekdays:"Ø§ÙØ£ØØ¯_Ø§ÙØ¥ØªÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù
ÙØ³_Ø§ÙØ¬Ù
عة_Ø§ÙØ³Ø¨Øª".split("_"),weekdaysShort:"Ø§ØØ¯_اتÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_اربعاء_Ø®Ù
ÙØ³_جÙ
عة_سبت".split("_"),weekdaysMin:"Ø_Ù_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اÙÙÙÙ
عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextDay:"[غدا عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextWeek:"dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastDay:"[Ø£Ù
س عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastWeek:"dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",sameElse:"L"},relativeTime:{future:"ÙÙ %s",past:"Ù
ÙØ° %s",s:"Ø«ÙØ§Ù",ss:"%d ثاÙÙØ©",m:"دÙÙÙØ©",mm:"%d Ø¯ÙØ§Ø¦Ù",h:"ساعة",hh:"%d ساعات",d:"ÙÙÙ
",dd:"%d Ø£ÙØ§Ù
",M:"Ø´ÙØ±",MM:"%d Ø£Ø´ÙØ±",y:"Ø³ÙØ©",yy:"%d سÙÙØ§Øª"},week:{dow:0,doy:12}})}(i(5093))},8861:function(e,t,i){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(i(5093))},8959:function(e,t,i){!function(e){"use strict";function t(e,t){var i=e.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function i(e,i,s){return"m"===s?i?"Ñ
вÑлÑна":"Ñ
вÑлÑнÑ":"h"===s?i?"гадзÑна":"гадзÑнÑ":e+" "+t
2({ss:i?"ÑекÑнда_ÑекÑндÑ_ÑекÑнд":"ÑекÑндÑ_ÑекÑндÑ_ÑекÑнд",mm:i?"Ñ
вÑлÑна_Ñ
вÑлÑнÑ_Ñ
вÑлÑн":"Ñ
вÑлÑнÑ_Ñ
вÑлÑнÑ_Ñ
вÑлÑн",hh:i?"гадзÑна_гадзÑнÑ_гадзÑн":"гадзÑнÑ_гадзÑнÑ_гадзÑн",dd:"дзенÑ_днÑ_дзÑн",MM:"меÑÑÑ_меÑÑÑÑ_меÑÑÑаÑ",yy:"год_гадÑ_гадоÑ"}[s],+e)}e.defineLocale("be",{months:{format:"ÑÑÑдзенÑ_лÑÑага_ÑакавÑка_кÑаÑавÑка_ÑÑаÑнÑ_ÑÑÑвенÑ_лÑпенÑ_жнÑÑнÑ_веÑаÑнÑ_каÑÑÑÑÑнÑка_лÑÑÑапада_ÑнежнÑ".split("_"),standalone:"ÑÑÑдзенÑ_лÑÑÑ_ÑакавÑк_кÑаÑавÑк_ÑÑавенÑ_ÑÑÑвенÑ_лÑпенÑ_жнÑвенÑ_веÑаÑенÑ_каÑÑÑÑÑнÑк_лÑÑÑапад_ÑнежанÑ".split("_")},monthsShort:"ÑÑÑд_лÑÑ_Ñак_кÑаÑ_ÑÑав_ÑÑÑв_лÑп_жнÑв_веÑ_каÑÑ_лÑÑÑ_Ñнеж".split("_"),weekdays:{format:"нÑдзелÑ_панÑдзелак_аÑÑоÑак_ÑеÑадÑ_ÑаÑвеÑ_пÑÑнÑÑÑ_ÑÑбоÑÑ".split("_"),standalone:"нÑдзелÑ_панÑдзелак_аÑÑоÑак_ÑеÑада_ÑаÑвеÑ_пÑÑнÑÑа_ÑÑбоÑа".split("_"),isFormat:/\[ ?[УÑÑ] ?(?:мÑнÑлÑÑ|наÑÑÑпнÑÑ)? ?\] ?dddd/},weekdaysShort:"нд_пн_аÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),weekdaysMin:"нд_пн_аÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[СÑÐ½Ð½Ñ Ñ] LT",nextDay:"[ÐаÑÑÑа Ñ] LT",lastDay:"[УÑоÑа Ñ] LT",nextWeek:function(){return"[У] dddd [Ñ] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мÑнÑлÑÑ] dddd [Ñ] LT";case 1:case 2:case 4:return"[У мÑнÑлÑ] dddd [Ñ] LT"}},sameElse:"L"},relativeTime:{future:"пÑаз %s",past:"%s ÑамÑ",s:"некалÑÐºÑ ÑекÑнд",m:i,mm:i,h:i,hh:i,d:"дзенÑ",dd:i,M:"меÑÑÑ",MM:i,y:"год",yy:i},meridiemParse:/ноÑÑ|ÑанÑÑÑ|днÑ|веÑаÑа/,isPM:function(e){return/^(днÑ|веÑаÑа)$/.test(e)},meridiem:function(e,t,i){return e<4?"ноÑÑ":e<12?"ÑанÑÑÑ":e<17?"днÑ":"веÑаÑа"},dayOfMonthOrdinalParse:/\d{1,2}-(Ñ|Ñ|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-Ñ":e+"-Ñ";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(i(5093))},9011:function(e,t,i){e.exports=function(e,t,i,s){"use strict";const r="5.3.6";class n extends i{constructor(t,i){super(),(t=s.getElement(t))&&(this._element=t,this._config=this._getConfig(i),e.set(this._element,this.constructor.DATA_KEY,this))}dispose(){e.remove(this._element,this.constructor.DATA_KEY),t.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){s.executeAfterTransition(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(t){return e.get(s.getElement(t),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return r}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}return n}(i(7269),i(7956),i(2105),i(4035))},9033:function(e,t,i){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(i(5093))},9053:function(e,t,i){!function(e){"use strict";function t(e,t,i,s){switch(i){case"s":return t?"Ñ
ÑдÑ
Ñн ÑекÑнд":"Ñ
ÑдÑ
Ñн ÑекÑндÑн";case"ss":return e+(t?" ÑекÑнд":" ÑекÑндÑн");case"m":case"mm":return e+(t?" минÑÑ":" минÑÑÑн");case"h":case"hh":return e+(t?" Ñаг":" Ñагийн");case"d":case"dd":return e+(t?" өдөÑ":" өдÑийн");case"M":case"MM":return e+(t?" ÑаÑ":" ÑаÑÑн");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"ÐÑгдүгÑÑÑ ÑаÑ_ХоÑÑдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐÑÑавдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐÓ©ÑөвдүгÑÑÑ ÑаÑ_ТавдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐÑÑгадÑÐ³Ð°Ð°Ñ ÑаÑ_ÐолдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐаймдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐÑдүгÑÑÑ ÑаÑ_ÐÑавдÑÐ³Ð°Ð°Ñ ÑаÑ_ÐÑван нÑгдүгÑÑÑ ÑаÑ_ÐÑван Ñ
оÑÑдÑÐ³Ð°Ð°Ñ ÑаÑ".split("_"),monthsShort:"1 ÑаÑ_2 ÑаÑ_3 ÑаÑ_4 ÑаÑ_5 ÑаÑ_6 ÑаÑ_7 ÑаÑ_8 ÑаÑ_9 ÑаÑ_10 ÑаÑ_11 ÑаÑ_12 ÑаÑ".split("_"),monthsParseExact:!0,weekdays:"ÐÑм_Ðаваа_ÐÑгмаÑ_ÐÑ
агва_ÐÒ¯ÑÑв_ÐааÑан_ÐÑмба".split("_"),weekdaysShort:"ÐÑм_Ðав_ÐÑг_ÐÑ
а_ÐÒ¯Ñ_Ðаа_ÐÑм".split("_"),weekdaysMin:"ÐÑ_Ðа_ÐÑ_ÐÑ
_ÐÒ¯_Ðа_ÐÑ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY Ð¾Ð½Ñ MMMMÑн D",LLL:"YYYY Ð¾Ð½Ñ MMMMÑн D HH:mm",LLLL:"dddd, YYYY Ð¾Ð½Ñ MMMMÑн D HH:mm"},meridiemParse:/Ò®Ó¨|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,i){return e<12?"Ò®Ó¨":"ҮХ"},calendar:{sameDay:"[ӨнөөдөÑ] LT",nextDay:"[ÐаÑгааÑ
2] LT",nextWeek:"[ÐÑÑÑ
] dddd LT",lastDay:"[Ó¨ÑигдөÑ] LT",lastWeek:"[ӨнгөÑÑөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s даÑаа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөÑ/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөÑ";default:return e}}})}(i(5093))},9231:function(e,t,i){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(i(5093))},9330:function(e,t,i){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquà %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var i=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(i="a"),e+i},week:{dow:1,doy:4}})}(i(5093))},9374:function(e,t,i){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function i(e,i,s,r){var n=e+" ";switch(s){case"s":return i||r?"nokkrar sekúndur":"nokkrum sekúndum";
vendor: 4,377 bytes, line 2
2case"ss":return t(e)?n+(i||r?"sekúndur":"sekúndum"):n+"sekúnda";case"m":return i?"mÃnúta":"mÃnútu";case"mm":return t(e)?n+(i||r?"mÃnútur":"mÃnútum"):i?n+"mÃnúta":n+"mÃnútu";case"hh":return t(e)?n+(i||r?"klukkustundir":"klukkustundum"):n+"klukkustund";case"d":return i?"dagur":r?"dag":"degi";case"dd":return t(e)?i?n+"dagar":n+(r?"daga":"dögum"):i?n+"dagur":n+(r?"dag":"degi");case"M":return i?"mánuður":r?"mánuð":"mánuði";case"MM":return t(e)?i?n+"mánuðir":n+(r?"mánuði":"mánuðum"):i?n+"mánuður":n+(r?"mánuð":"mánuði");case"y":return i||r?"ár":"ári";case"yy":return t(e)?n+(i||r?"ár":"árum"):n+(i||r?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_aprÃl_maÃ_júnÃ_júlÃ_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maÃ_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Ãr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[à dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[à gær kl.] LT",lastWeek:"[sÃðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s sÃðan",s:i,ss:i,m:i,mm:i,h:"klukkustund",hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(5093))},9402:function(e,t,i){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(i(5093))},9527:function(e,t,i){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ãanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ãan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"ÃekÅenbe_DuÅenbe_SiÅenbe_ÃarÅenbe_PenÅenbe_Anna_Åenbe".split("_"),weekdaysShort:"Ãek_DuÅ_SiÅ_Ãar_Pen_Ann_Åen".split("_"),weekdaysMin:"Ãk_DÅ_SÅ_Ãr_Pn_An_Ån".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soÅ",past:"%s öÅ",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,i){switch(i){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var s=e%10,r=e%100-s,n=e>=100?100:null;return e+(t[s]||t[r]||t[n])}},week:{dow:1,doy:7}})}(i(5093))},9532:function(e,t,i){!function(e){"use strict";var t={ss:"sekundes_sekundÄm_sekunde_sekundes".split("_"),m:"minÅ«tes_minÅ«tÄm_minÅ«te_minÅ«tes".split("_"),mm:"minÅ«tes_minÅ«tÄm_minÅ«te_minÅ«tes".split("_"),h:"stundas_stundÄm_stunda_stundas".split("_"),hh:"stundas_stundÄm_stunda_stundas".split("_"),d:"dienas_die
2nÄm_diena_dienas".split("_"),dd:"dienas_dienÄm_diena_dienas".split("_"),M:"mÄneÅ¡a_mÄneÅ¡iem_mÄnesis_mÄneÅ¡i".split("_"),MM:"mÄneÅ¡a_mÄneÅ¡iem_mÄnesis_mÄneÅ¡i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function i(e,t,i){return i?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function s(e,s,r){return e+" "+i(t[r],e,s)}function r(e,s,r){return i(t[r],e,s)}function n(e,t){return t?"dažas sekundes":"dažÄm sekundÄm"}e.defineLocale("lv",{months:"janvÄris_februÄris_marts_aprÄ«lis_maijs_jÅ«nijs_jÅ«lijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jÅ«n_jÅ«l_aug_sep_okt_nov_dec".split("_"),weekdays:"svÄtdiena_pirmdiena_otrdiena_treÅ¡diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Å odien pulksten] LT",nextDay:"[RÄ«t pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[PagÄjuÅ¡Ä] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pÄc %s",past:"pirms %s",s:n,ss:s,m:r,mm:s,h:r,hh:s,d:r,dd:s,M:r,MM:s,y:r,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(5093))},9635:function(e,t,i){e.exports=function(e,t,i,s,r,n,a,o){"use strict";const l="modal",d=".bs.modal",h="Escape",c=`hide${d}`,u=`hidePrevented${d}`,f=`hidden${d}`,m=`show${d}`,p=`shown${d}`,g=`resize${d}`,y=`click.dismiss${d}`,_=`mousedown.dismiss${d}`,v=`keydown.dismiss${d}`,b=`click${d}.data-api`,w="modal-open",T="fade",M="show",S="modal-static",L=".modal.show",k=".modal-dialog",E=".modal-body",D='[data-bs-toggle="modal"]',x={backdrop:!0,focus:!0,keyboard:!0},A={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class P extends e{constructor(e,t){super(e,t),this._dialog=i.findOne(k,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new o,this._addEventListeners()}static get Default(){return x}static get DefaultType(){return A}static get NAME(){return l}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||t.trigger(this._element,m,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(w),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){this._isShown&&!this._isTransitioning&&(t.trigger(this._element,c).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(M),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){t.off(window,d),t.off(this._dialog,d),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new s({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new n({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const s=i.findOne(E,this._dialog);s&&(s.scrollTop=0),a.reflow(this._element),this._element.classList.add(M);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,t.trigger(this._element,p,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){t.on(this._element,v,(e=>{e.key===h&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),t.on(window,g,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),t.on(this._element,_,(e=>{t.one(this._element,y,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(w),this._resetAdjustments(),this._scrollBar.reset(),t.trigger(this._element,f)}))}_isAnimated(){return this._element.classList.contains(T)}_triggerBackdropTransition(){if(t.trigger(this._element,u).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,i=this._element.style.overflowY;"hidden"===i||this._element.classList.contains(S)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(S),this._queueCallback((()=>{this._element.classList.remove(S),this._queueCallback((()=>{this._element.style.overflowY=i}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;
2if(i&&!e){const e=a.isRTL()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!i&&e){const e=a.isRTL()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const i=P.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](t)}}))}}return t.on(document,b,D,(function(e){const s=i.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),t.one(s,m,(e=>{e.defaultPrevented||t.one(s,f,(()=>{a.isVisible(this)&&this.focus()}))}));const r=i.findOne(L);r&&P.getInstance(r).hide(),P.getOrCreateInstance(s).toggle(this)})),r.enableDismissTrigger(P),a.defineJQueryPlugin(P),P}(i(9011),i(7956),i(5411),i(1877),i(8248),i(2936),i(4035),i(3673))},9680:function(e,t,i){!function(e){"use strict";function t(e,t,i,s){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[i][0]:r[i][1]}function i(e){return r(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e}function s(e){return r(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e}function r(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return r(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return r(e)}return r(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:i,past:s,s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(5093))},9703:()=>{},9722:function(e,t,i){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(i(5093))},9756:function(e,t,i){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جاÙÙÙ_ÙÙÙØ±Ù_Ù
ارس_Ø£ÙØ±ÙÙ_Ù
اÙ_Ø¬ÙØ§Ù_جÙÙÙÙØ©_Ø£ÙØª_سبتÙ
بر_Ø£ÙØªÙبر_ÙÙÙÙ
بر_Ø¯ÙØ³Ù
بر".split("_"),monthsShort:"جاÙÙÙ_ÙÙÙØ±Ù_Ù
ارس_Ø£ÙØ±ÙÙ_Ù
اÙ_Ø¬ÙØ§Ù_جÙÙÙÙØ©_Ø£ÙØª_سبتÙ
بر_Ø£ÙØªÙبر_ÙÙÙÙ
بر_Ø¯ÙØ³Ù
بر".split("_"),weekdays:"Ø§ÙØ£ØØ¯_Ø§ÙØ¥Ø«ÙÙÙ_Ø§ÙØ«Ùاثاء_Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡_Ø§ÙØ®Ù
ÙØ³_Ø§ÙØ¬Ù
عة_Ø§ÙØ³Ø¨Øª".split("_"),weekdaysShort:"Ø£ØØ¯_إثÙÙÙ_Ø«ÙØ§Ø«Ø§Ø¡_أربعاء_Ø®Ù
ÙØ³_جÙ
عة_سبت".split("_"),weekdaysMin:"Ø_Ù_Ø«_ر_Ø®_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اÙÙÙÙ
عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextDay:"[غدا عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",nextWeek:"dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastDay:"[Ø£Ù
س عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",lastWeek:"dddd [عÙÙ Ø§ÙØ³Ø§Ø¹Ø©] LT",sameElse:"L"},relativeTime:{future:"ÙÙ %s",past:"Ù
ÙØ° %s",s:"Ø«ÙØ§Ù",ss:"%d ثاÙÙØ©",m:"دÙÙÙØ©",mm:"%d Ø¯ÙØ§Ø¦Ù",h:"ساعة",hh:"%d ساعات",d:"ÙÙÙ
",dd:"%d Ø£ÙØ§Ù
",M:"Ø´ÙØ±",MM:"%d Ø£Ø´ÙØ±",y:"Ø³ÙØ©",yy:"%d سÙÙØ§Øª"},week:{dow:1,doy:4}})}(i(5093))},9834:function(e,t,i){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje à s] LT",nextDay:"[Amanhã à s] LT",nextWeek:"dddd [à s] LT",lastDay:"[Ontem à s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Ãltimo] dddd [à s] LT":"[Ãltima] dddd [à s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%
2d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(i(5093))},9846:function(e,t,i){!function(e){"use strict";function t(e,t,i,s){var r={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n mÃut","'iens mÃut"],mm:[e+" mÃuts",e+" mÃuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return s||t?r[i][0]:r[i][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,i){return e>11?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi à ] LT",nextDay:"[demà à ] LT",nextWeek:"dddd [à ] LT",lastDay:"[ieiri à ] LT",lastWeek:"[sür el] dddd [lasteu à ] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(i(5093))},9849:function(e,t,i){!function(e){"use strict";var t={1:"à©§",2:"੨",3:"à©©",4:"੪",5:"à©«",6:"੬",7:"à©",8:"à©®",9:"੯",0:"੦"},i={"à©§":"1","੨":"2","à©©":"3","੪":"4","à©«":"5","੬":"6","à©":"7","à©®":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"à¨à¨¨à¨µà¨°à©_ਫ਼ਰਵਰà©_ਮਾਰà¨_à¨
ਪà©à¨°à©à¨²_ਮà¨_à¨à©à¨¨_à¨à©à¨²à¨¾à¨_à¨
à¨à¨¸à¨¤_ਸਤੰਬਰ_à¨
à¨à¨¤à©à¨¬à¨°_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"à¨à¨¨à¨µà¨°à©_ਫ਼ਰਵਰà©_ਮਾਰà¨_à¨
ਪà©à¨°à©à¨²_ਮà¨_à¨à©à¨¨_à¨à©à¨²à¨¾à¨_à¨
à¨à¨¸à¨¤_ਸਤੰਬਰ_à¨
à¨à¨¤à©à¨¬à¨°_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"à¨à¨¤à¨µà¨¾à¨°_ਸà©à¨®à¨µà¨¾à¨°_ਮੰà¨à¨²à¨µà¨¾à¨°_ਬà©à¨§à¨µà¨¾à¨°_ਵà©à¨°à¨µà¨¾à¨°_ਸ਼à©à©±à¨à¨°à¨µà¨¾à¨°_ਸ਼ਨà©à¨à¨°à¨µà¨¾à¨°".split("_"),weekdaysShort:"à¨à¨¤_ਸà©à¨®_ਮੰà¨à¨²_ਬà©à¨§_ਵà©à¨°_ਸ਼à©à¨à¨°_ਸ਼ਨà©".split("_"),weekdaysMin:"à¨à¨¤_ਸà©à¨®_ਮੰà¨à¨²_ਬà©à¨§_ਵà©à¨°_ਸ਼à©à¨à¨°_ਸ਼ਨà©".split("_"),longDateFormat:{LT:"A h:mm ਵà¨à©",LTS:"A h:mm:ss ਵà¨à©",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵà¨à©",LLLL:"dddd, D MMMM YYYY, A h:mm ਵà¨à©"},calendar:{sameDay:"[à¨
à¨] LT",nextDay:"[à¨à¨²] LT",nextWeek:"[à¨
à¨à¨²à¨¾] dddd, LT",lastDay:"[à¨à¨²] LT",lastWeek:"[ਪਿà¨à¨²à©] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱà¨",past:"%s ਪਿà¨à¨²à©",s:"à¨à©à¨ ਸà¨à¨¿à©°à¨",ss:"%d ਸà¨à¨¿à©°à¨",m:"à¨à¨ ਮਿੰà¨",mm:"%d ਮਿੰà¨",h:"à¨à©±à¨ à¨à©°à¨à¨¾",hh:"%d à¨à©°à¨à©",d:"à¨à©±à¨ ਦਿਨ",dd:"%d ਦਿਨ",M:"à¨à©±à¨ ਮਹà©à¨¨à¨¾",MM:"%d ਮਹà©à¨¨à©",y:"à¨à©±à¨ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬à©à©®à©¯à©¦]/g,(function(e){return i[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵà©à¨°|ਦà©à¨ªà¨¹à¨¿à¨°|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵà©à¨°"===t?e:"ਦà©à¨ªà¨¹à¨¿à¨°"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"ਰਾਤ":e<10?"ਸਵà©à¨°":e<17?"ਦà©à¨ªà¨¹à¨¿à¨°":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(i(5093))},9891:function(module,exports,__webpack_require__){var factory;"undefined"!=typeof document&&"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var i,s,r=e.length;for(i=0;i<r;i+=1)for(var n in s=e[i].prototype)Object.prototype.hasOwnProperty.call(s,n)&&(t.prototype[n]=s[n])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,i=this.audios.length;for(t=0;t<i;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var i,s=0,r=[];switch(e){case"int16":case"uint8c":i=1;break;default:i=1.1}for(s=0;s<t;s+=1)r.push(i);return r}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,i){return"float32"===t?new Float32Array(i):"int16"===t?new Int16Array(i):"uint8c"===t?new Uint8ClampedArray(i):e(t,i)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i=t.length;for(e=0;e<i;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,i=createSizedArray(e.length),s=e.length;for(t=0;t<s;t+=1)i[t]=Math.abs(e[t]);return i}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){_shouldRoundValues=!!e}function bmRnd(e){return _shouldRoundValues?Math.round(e):e}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,i,s){this.type=e,this.currentTime=t,this.totalTime=i,this.direction=s<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,i,s){this.type=e,this.currentLoop=i,this.totalLoops=t,this.direction=s<0?-1:1}function BMSegmentStartEvent(e,t,i){this.type=e,this.firstFrame=t,this.totalFrames=i}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,i){var s,r,n,a,o,l,d,h;switch(l=i*(1-t),d=i*(1-(o=6*e-(a=Math.floor(6*e)))*t),h=i*(1-(1-o)*t),a%6){case 0:s=i,r=h,n=l;break;case 1:s=d,r=i,n=l;break;case 2:s=l,r=i,n=h;break;case 3:s=l,r=d,n=i;break;case 4:s=h,r=l,n=i;break;case 5:s=i,r=l,n=d}return[s,r,n]}function RGBtoHSV(e,t,i){var s,r=Math.max(e,t,i),n=Math.min(e,t,i),a=r-n,o=0===r?0:a/r,l=r/255;switch(r){case n:s=0;break;case e:s=t-i+a*(t<i?6:0),s/=6*a;break;case t:s=i-e+2*a,s/=6*a;break;case i:s=e-t+4*a,s/=6*a}return[s,o,l]}function addSaturationToRGB(e,t){var i=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return i[1]+=t,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(e,t){var i=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return i[2]+=t,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(e,t){var i=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return i[0]+=t/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var e,t,i=[];for(e=0;e<256;e+=1)t=e.toString(16),i[e]=1===t.length?"0"+t:t;return function(e,t,s){return e<0&&(e=0),t<0&&(t=0),s<0&&(s=0),"#"+i[e]+i[t]+i[s]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(e)}var dataManager=function(){var e,t,i=1,s=[],r={onmessage:function(){},postMessage:function(t){e({data:t})}},n={postMessage:function(e){r.onmessage({data:e})}};function a(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var i=new Blob(["var _workerSelf = self;
2 self.onmessage = ",t.toString()],{type:"text/javascript"}),s=URL.createObjectURL(i);return new Worker(s)}return e=t,r}((function(e){if(n.dataManager||(n.dataManager=function(){function e(r,n){var a,o,l,d,h,u,f=r.length;for(o=0;o<f;o+=1)if("ks"in(a=r[o])&&!a.completed){if(a.completed=!0,a.hasMask){var m=a.masksProperties;for(d=m.length,l=0;l<d;l+=1)if(m[l].pt.k.i)s(m[l].pt.k);else for(u=m[l].pt.k.length,h=0;h<u;h+=1)m[l].pt.k[h].s&&s(m[l].pt.k[h].s[0]),m[l].pt.k[h].e&&s(m[l].pt.k[h].e[0])}0===a.ty?(a.layers=t(a.refId,n),e(a.layers,n)):4===a.ty?i(a.shapes):5===a.ty&&c(a)}}function t(e,t){var i=function(e,t){for(var i=0,s=t.length;i<s;){if(t[i].id===e)return t[i];i+=1}return null}(e,t);return i?i.layers.__used?JSON.parse(JSON.stringify(i.layers)):(i.layers.__used=!0,i.layers):null}function i(e){var t,r,n;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)s(e[t].ks.k);else for(n=e[t].ks.k.length,r=0;r<n;r+=1)e[t].ks.k[r].s&&s(e[t].ks.k[r].s[0]),e[t].ks.k[r].e&&s(e[t].ks.k[r].e[0]);else"gr"===e[t].ty&&i(e[t].it)}function s(e){var t,i=e.i.length;for(t=0;t<i;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function r(e,t){var i=t?t.split("."):[100,100,100];return e[0]>i[0]||!(i[0]>e[0])&&(e[1]>i[1]||!(i[1]>e[1])&&(e[2]>i[2]||!(i[2]>e[2])&&null))}var n,a=function(){var e=[4,4,14];function t(e){var t,i,s,r=e.length;for(t=0;t<r;t+=1)5===e[t].ty&&(s=void 0,s=(i=e[t]).t.d,i.t.d={k:[{s,t:0}]})}return function(i){if(r(e,i.v)&&(t(i.layers),i.assets)){var s,n=i.assets.length;for(s=0;s<n;s+=1)i.assets[s].layers&&t(i.assets[s].layers)}}}(),o=(n=[4,7,99],function(e){if(e.chars&&!r(n,e.v)){var t,s=e.chars.length;for(t=0;t<s;t+=1){var a=e.chars[t];a.data&&a.data.shapes&&(i(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var e=[5,7,15];function t(e){var t,i,s=e.length;for(t=0;t<s;t+=1)5===e[t].ty&&(i=void 0,"number"==typeof(i=e[t].t.p).a&&(i.a={a:0,k:i.a}),"number"==typeof i.p&&(i.p={a:0,k:i.p}),"number"==typeof i.r&&(i.r={a:0,k:i.r}))}return function(i){if(r(e,i.v)&&(t(i.layers),i.assets)){var s,n=i.assets.length;for(s=0;s<n;s+=1)i.assets[s].layers&&t(i.assets[s].layers)}}}(),d=function(){var e=[4,1,9];function t(e){var i,s,r,n=e.length;for(i=0;i<n;i+=1)if("gr"===e[i].ty)t(e[i].it);else if("fl"===e[i].ty||"st"===e[i].ty)if(e[i].c.k&&e[i].c.k[0].i)for(r=e[i].c.k.length,s=0;s<r;s+=1)e[i].c.k[s].s&&(e[i].c.k[s].s[0]/=255,e[i].c.k[s].s[1]/=255,e[i].c.k[s].s[2]/=255,e[i].c.k[s].s[3]/=255),e[i].c.k[s].e&&(e[i].c.k[s].e[0]/=255,e[i].c.k[s].e[1]/=255,e[i].c.k[s].e[2]/=255,e[i].c.k[s].e[3]/=255);else e[i].c.k[0]/=255,e[i].c.k[1]/=255,e[i].c.k[2]/=255,e[i].c.k[3]/=255}function i(e){var i,s=e.length;for(i=0;i<s;i+=1)4===e[i].ty&&t(e[i].shapes)}return function(t){if(r(e,t.v)&&(i(t.layers),t.assets)){var s,n=t.assets.length;for(s=0;s<n;s+=1)t.assets[s].layers&&i(t.assets[s].layers)}}}(),h=function(){var e=[4,4,18];function t(e){var i,s,r;for(i=e.length-1;i>=0;i-=1)if("sh"===e[i].ty)if(e[i].ks.k.i)e[i].ks.k.c=e[i].closed;else for(r=e[i].ks.k.length,s=0;s<r;s+=1)e[i].ks.k[s].s&&(e[i].ks.k[s].s[0].c=e[i].closed),e[i].ks.k[s].e&&(e[i].ks.k[s].e[0].c=e[i].closed);else"gr"===e[i].ty&&t(e[i].it)}function i(e){var i,s,r,n,a,o,l=e.length;for(s=0;s<l;s+=1){if((i=e[s]).hasMask){var d=i.masksProperties;for(n=d.length,r=0;r<n;r+=1)if(d[r].pt.k.i)d[r].pt.k.c=d[r].cl;else for(o=d[r].pt.k.length,a=0;a<o;a+=1)d[r].pt.k[a].s&&(d[r].pt.k[a].s[0].c=d[r].cl),d[r].pt.k[a].e&&(d[r].pt.k[a].e[0].c=d[r].cl)}4===i.ty&&t(i.shapes)}}return function(t){if(r(e,t.v)&&(i(t.layers),t.assets)){var s,n=t.assets.length;for(s=0;s<n;s+=1)t.assets[s].layers&&i(t.assets[s].layers)}}}();function c(e){0===e.t.a.length&&e.t.p}var u={completeData:function(i){i.__complete||(d(i),a(i),o(i),l(i),h(i),e(i.layers,i.assets),function(i,s){if(i){var r=0,n=i.length;for(r=0;r<n;r+=1)1===i[r].t&&(i[r].data.layers=t(i[r].data.refId,s),e(i[r].data.layers,s))}}(i.chars,i.assets),i.__complete=!0)}};return u.checkColors=d,u.checkChars=o,u.checkPathProperties=l,u.checkShapes=h,u.completeLayers=e,u}()),n.assetLoader||(n.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,i,s,r){var n,a=new XMLHttpRequest;try{a.responseType="json"}catch(e){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)n=e(a
vendor: 28,405 bytes, line 2
2),s(n);else try{n=e(a),s(n)}catch(e){r&&r(e)}};try{a.open(["G","E","T"].join(""),t,!0)}catch(e){a.open(["G","E","T"].join(""),i+"/"+t,!0)}a.send()}}}()),"loadAnimation"===e.data.type)n.assetLoader.load(e.data.path,e.data.fullPath,(function(t){n.dataManager.completeData(t),n.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){n.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;n.dataManager.completeData(t),n.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&n.assetLoader.load(e.data.path,e.data.fullPath,(function(t){n.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){n.postMessage({id:e.data.id,status:"error"})}))})),t.onmessage=function(e){var t=e.data,i=t.id,r=s[i];s[i]=null,"success"===t.status?r.onComplete(t.payload):r.onError&&r.onError()})}function o(e,t){var r="processId_"+(i+=1);return s[r]={onComplete:e,onError:t},r}return{loadAnimation:function(e,i,s){a();var r=o(i,s);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:r})},loadData:function(e,i,s){a();var r=o(i,s);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:r})},completeAnimation:function(e,i,s){a();var r=o(i,s);t.postMessage({type:"complete",animation:e,id:r})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(e,t,i){var s="";if(e.e)s=e.p;else if(t){var r=e.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),s=t+r}else s=i,s+=e.u?e.u:"",s+=e.p;return s}function r(e){var t=0,i=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(i)),t+=1}.bind(this),50)}function n(e){var t={assetData:e},i=s(e,this.assetsPath,this.path);return dataManager.loadData(i,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function a(){this._imageLoaded=t.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=r.bind(this),this.createFootageData=n.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(e,t){var i;this.imagesLoadedCb=t;var s=e.length;for(i=0;i<s;i+=1)e[i].layers||(e[i].t&&"seq"!==e[i].t?3===e[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[i]))):(this.totalImages+=1,this.images.push(this._createImageData(e[i]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,i=this.images.length;t<i;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var i=s(t,this.assetsPath,this.path),r=createTag("img");r.crossOrigin="anonymous",r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){n.img=e,this._imageLoaded()}.bind(this),!1),r.src=i;var n={img:r,assetData:t};return n},createImageData:function(t){var i=s(t,this.assetsPath,this.path),r=createNS("image");isSafari?this.testImageLoaded(r):r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){n.img=e,this._imageLoaded()}.bind(this),!1),r.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this._elementHelper.append?this._elementHelper.append(r):this._elementHelper.appendChild(r);var n={img:r,assetData:t};return n},imageLoaded:t,footageLoaded:i,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var i=this._cbs[e],s=0;s<i.length;s+=1)i[s](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var i=0,s=this._cbs[e].length;i<s;)this._cbs[e][i]===t&&(this._cbs[e].splice(i,1),i-=1,s-=1),i+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,i=e.split("\r\n"),s={},r=0,n=0;n<i.length;n+=1)2===(t=i[n].split(":")).length&&(s[t[0]]=t[1].trim(),r+=1);if(0===r)throw new Error;return s}return function(t){for(var i=[],s=0;s<t.length;s+=1){var r=t[s],n={time:r.tm,duration:r.dr};try{n.payload=JSON.parse(t[s].cm)}catch(i){try{n.payload=e(t[s].cm)}catch(e){n.payload={name:t[s].cm}}}i.push(n)}return i}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,i=this.compositions.length;t<i;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var i=getRenderer(t);this.renderer=new i(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var i={wrapper:e,animationData:t},s=e.attributes;i.path=s.getNamedItem("data-animation-path")?s.getNamedItem("data-animation-path").value:s.getNamedItem("data-bm-path")?s.getNamedItem("data-bm-path").value:s.getNamedItem("bm-path")?s.getNamedItem("bm-path").value:"",i.animType=s.getNamedItem("data-anim-type")?s.getNamedItem("data-anim-type").value:s.getNamedItem("data-bm-type")?s.getNamedItem("data-bm-type").value:s.getNamedItem("bm-type")?s.getNamedItem("bm-type").value:s.getNamedItem("data-bm-renderer")?s.getNamedItem("data-bm-renderer").value:s.getNamedItem("bm-renderer")?s.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var r=s.getNamedItem("data-anim-loop")?s.getNamedItem("data-anim-loop").value:s.getNamedItem("data-bm-loop")?s.getNamedItem("data-bm-loop").value:s.getNamedItem("bm-loop")?s.getNamedItem("bm-loop").value:"";"false"===r?i.loop=!1:"true"===r?i.loop=!0:""!==r&&(i.loop=parseInt(r,10));var n=s.getNamedItem("data-anim-autoplay")?s.getNamedItem("data-anim-autoplay").value:s.getNamedItem("data-bm-autoplay")?s.getNamedItem("data-bm-autoplay").value:!s.getNamedItem("bm-autoplay")||s.getNamedItem("bm-autoplay").value;i.autoplay="false"!==n,i.name=s.getNamedItem("data-name")?s.getNamedItem("data-name").value:s.getNamedItem("data-bm-name")?s.getNamedItem("data-bm-name").value:s.getNamedItem("bm-name")?s.getNamedItem("bm-name").value:"","false"===(s.getNamedItem("data-anim-prerender")?s.getNamedItem("data-anim-prerender").value:s.getNamedItem("data-bm-prerender")?s.getNamedItem("data-bm-prerender").value:s.getNamedItem("bm-prerender")?s.getNamedItem("bm-prerender").value:"")&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,i,s=this.animationData.layers,r=s.length,n=e.layers,a=n.length;for(i=0;i<a;i+=1)for(t=0;t<r;){if(s[t].id===n[i].id){s[t]=n[i];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(r=e.assets.length,t=0;t<r;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(i,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var i="number"==typeof e?e:void 0,s="number"==typeof t?t:void 0;this.renderer.updateContainerSize(i,s)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,i=0;i<this.markers.length;i+=1)if((t=this.markers[i]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,i){if(!i||this.name===i){var s=Number(e);if(isNaN(s)){var r=this.getMarkerData(e);r&&this.goToAndStop(r.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,i){if(!i||this.name===i){var s=Number(e);if(isNaN(s)){var r=this.getMarkerData(e);r&&(r.duration?this.playSegments([r.time,r.time+r.duration],!0):this.goToAndStop(r.time,!0))}else this.goToAndStop(s,t,i);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,i=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(i=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),i&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?i=e:this.currentRawFrame+this.firstFrame>t&&(i=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var i,s=e.length;for(i=0;i<s;i+=1)this.segments.push(e[i])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),t=this.assetsPath+i}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,i=this.assets.length;t<i;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,i){try{this.renderer.getElementByPath(e).updateDocumentData(t,i)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],i=0,s=0,r=0,n=!0,a=!1;function o(e){for(var i=0,r=e.target;i<s;)t[i].animation===r&&(t.splice(i,1),i-=1,s-=1,r.isPaused||h()),i+=1}function l(e,i){if(!e)return null;for(var r=0;r<s;){if(t[r].elem===e&&null!==t[r].elem)return t[r].animation;r+=1}var n=new AnimationItem;return c(n,e),n.setData(e,i),n}function d(){r+=1,m()}function h(){r-=1}function c(e,i){e.addEventListener("destroy",o),e.addEventListener("_active",d),e.addEventListener("_idle",h),t.push({elem:i,animation:e}),s+=1}function u(e){var o,l=e-i;for(o=0;o<s;o+=1)t[o].animation.advanceTime(l);i=e,r&&!a?window.requestAnimationFrame(u):n=!0}function f(e){i=e,window.requestAnimationFrame(u)}function m(){!a&&r&&n&&(window.requestAnimationFrame(f),n=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return c(t,null),t.setParams(e),t},e.setSpeed=function(e,i){var r;for(r=0;r<s;r+=1)t[r].animation.setSpeed(e,i)},e.setDirection=function(e,i){var r;for(r=0;r<s;r+=1)t[r].animation.setDirection(e,i)},e.play=function(e){var i;for(i=0;i<s;i+=1)t[i].animation.play(e)},e.pause=function(e){var i;for(i=0;i<s;i+=1)t[i].animation.pause(e)},e.stop=function(e){var i;for(i=0;i<s;i+=1)t[i].animation.stop(e)},e.togglePause=function(e){var i;for(i=0;i<s;i+=1)t[i].animation.togglePause(e)},e.searchAnimations=function(e,t,i){var s,r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),n=r.length;for(s=0;s<n;s+=1)i&&r[s].setAttribute("data-bm-type",i),l(r[s],e);if(t&&0===n){i||(i="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",i),a.appendChild(o),l(o,e)}},e.resize=function(){var e;for(e=0;e<s;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,i,r){var n;for(n=0;n<s;n+=1)t[n].animation.goToAndStop(e,i,r)},e.destroy=function(e){var i;for(i=s-1;i>=0;i-=1)t[i].animation.destroy(e)},e.freeze=function(){a=!0},e.unfreeze=function(){a=!1,m()},e.setVolume=function(e,i){var r;for(r=0;r<s;r+=1)t[r].animation.setVolume(e,i)},e.mute=function(e){var i;for(i=0;i<s;i+=1)t[i].animation.mute(e)},e.unmute=function(e){var i;for(i=0;i<s;i+=1)t[i].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,i=t.length,s=[];for(e=0;e<i;e+=1)s.push(t[e].animation);return s},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,i,s,r,n){var a=n||("bez_"+e+"_"+i+"_"+s+"_"+r).replace(/\./g,"p");if(t[a])return t[a];var o=new h([e,i,s,r]);return t[a]=o,o}},t={},i=11,s=1/(i-1),r="function"==typeof Float32Array;function n(e,t){return 1-3*t+3*e}function a(e,t){return 3*t-6*e}function o(e){return 3*e}function l(e,t,i){return((n(t,i)*e+a(t,i))*e+o(t))*e}function d(e,t,i){return 3*n(t,i)*e*e+2*a(t,i)*e+o(t)}function h(e){this._p=e,this._mSampleValues=r?new Float32Array(i):new Array(i),this._precomputed=!1,this.get=this.get.bind(this)}return h.prototype={get:function(e){var t=this._p[0],i=this._p[1],s=this._p[2],r=this._p[3];return this._precomputed||this._precompute(),t===i&&s===r?e:0===e?0:1===e?1:l(this._getTForX(e),i,r)},_precompute:function(){var e=this._p[0],t=this._p[1],i=this._p[2],s=this._p[3];this._precomputed=!0,e===t&&i===s||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],r=0;r<i;++r)this._mSampleValues[r]=l(r*s,e,t)},_getTForX:function(e){for(var t=this._p[0],r=this._p[2],n=this._mSampleValues,a=0,o=1,h=i-1;o!==h&&n[o]<=e;++o)a+=s;var c=a+(e-n[--o])/(n[o+1]-n[o])*s,u=d(c,t,r);return u>=.001?function(e,t,i,s){for(var r=0;r<4;++r){var n=d(t,i,s);if(0===n)return t;t-=(l(t,i,s)-e)/n}return t}(e,c,t,r):0===u?c:function(e,t,i,s,r){var n,a,o=0;do{(n=l(a=t+(i-t)/2,s,r)-e)>0?i=a:t=a}while(Math.abs(n)>1e-7&&++o<10);return a}(e,a,a+s,t,r)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,i){var s=0,r=e,n=createSizedArray(r);return{newElement:function(){return s?n[s-=1]:t()},release:function(e){s===r&&(n=pooling.double(n),r*=2),i&&i(e),n[s]=e,s+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,i=e.lengths.length;for(t=0;t<i;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0}));function bezFunction(){var e=Math;function t(e,t,i,s,r,n){var a=e*s+t*r+i*n-r*s-n*e-i*t;return a>-.001&&a<.001}var i=function(e,t,i,s){var r,n,a,o,l,d,h=getDefaultCurveSegments(),c=0,u=[],f=[],m=bezierLengthPool.newElement();for(a=i.length,r=0;r<h;r+=1){for(l=r/(h-1),d=0,n=0;n<a;n+=1)o=bmPow(1-l,3)*e[n]+3*bmPow(1-l,2)*l*i[n]+3*(1-l)*bmPow(l,2)*s[n]+bmPow(l,3)*t[n],u[n]=o,null!==f[n]&&(d+=bmPow(u[n]-f[n],2)),f[n]=u[n];d&&(c+=d=bmSqrt(d)),m.percents[r]=l,m.lengths[r]=c}return m.addedLength=c,m};function s(e){this.segmentLength=0,this.points=new Array(e)}function r(e,t){this.partialLength=e,this.point=t}var n,a=(n={},function(e,i,a,o){var l=(e[0]+"_"+e[1]+"_"+i[0]+"_"+i[1]+"_"+a[0]+"_"+a[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!n[l]){var d,h,c,u,f,m,p,g=getDefaultCurveSegments(),y=0,_=null;2===e.length&&(e[0]!==i[0]||e[1]!==i[1])&&t(e[0],e[1],i[0],i[1],e[0]+a[0],e[1]+a[1])&&t(e[0],e[1],i[0],i[1],i[0]+o[0],i[1]+o[1])&&(g=2);var v=new s(g);for(c=a.length,d=0;d<g;d+=1){for(p=createSizedArray(c),f=d/(g-1),m=0,h=0;h<c;h+=1)u=bmPow(1-f,3)*e[h]+3*bmPow(1-f,2)*f*(e[h]+a[h])+3*(1-f)*bmPow(f,2)*(i[h]+o[h])+bmPow(f,3)*i[h],p[h]=u,null!==_&&(m+=bmPow(p[h]-_[h],2));y+=m=bmSqrt(m),v.points[d]=new r(m,p),_=p}v.segmentLength=y,n[l]=v}return n[l]});function o(e,t){var i=t.percents,s=t.lengths,r=i.length,n=bmFloor((r-1)*e),a=e*t.addedLength,o=0;if(n===r-1||0===n||a===s[n])return i[n];for(var l=s[n]>a?-1:1,d=!0;d;)if(s[n]<=a&&s[n+1]>a?(o=(a-s[n])/(s[n+1]-s[n]),d=!1):n+=l,n<0||n>=r-1){if(n===r-1)return i[n];d=!1}return i[n]+(i[n+1]-i[n])*o}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,s=segmentsLengthPool.newElement(),r=e.c,n=e.v,a=e.o,o=e.i,l=e._length,d=s.lengths,h=0;for(t=0;t<l-1;t+=1)d[t]=i(n[t],n[t+1],a[t],o[t+1]),h+=d[t].addedLength;return r&&l&&(d[t]=i(n[t],n[0],a[t],o[0]),h+=d[t].addedLength),s.totalLength=h,s},getNewSegment:function(t,i,s,r,n,a,d){n<0?n=0:n>1&&(n=1);var h,c=o(n,d),u=o(a=a>1?1:a,d),f=t.length,m=1-c,p=1-u,g=m*m*m,y=c*m*m*3,_=c*c*m*3,v=c*c*c,b=m*m*p,w=c*m*
vendor: 4,100 bytes, line 2
2p+m*c*p+m*m*u,T=c*c*p+m*c*u+c*m*u,M=c*c*u,S=m*p*p,L=c*p*p+m*u*p+m*p*u,k=c*u*p+m*u*u+c*p*u,E=c*u*u,D=p*p*p,x=u*p*p+p*u*p+p*p*u,A=u*u*p+p*u*u+u*p*u,P=u*u*u;for(h=0;h<f;h+=1)l[4*h]=e.round(1e3*(g*t[h]+y*s[h]+_*r[h]+v*i[h]))/1e3,l[4*h+1]=e.round(1e3*(b*t[h]+w*s[h]+T*r[h]+M*i[h]))/1e3,l[4*h+2]=e.round(1e3*(S*t[h]+L*s[h]+k*r[h]+E*i[h]))/1e3,l[4*h+3]=e.round(1e3*(D*t[h]+x*s[h]+A*r[h]+P*i[h]))/1e3;return l},getPointInSegment:function(t,i,s,r,n,a){var l=o(n,a),d=1-l;return[e.round(1e3*(d*d*d*t[0]+(l*d*d+d*l*d+d*d*l)*s[0]+(l*l*d+d*l*l+l*d*l)*r[0]+l*l*l*i[0]))/1e3,e.round(1e3*(d*d*d*t[1]+(l*d*d+d*l*d+d*d*l)*s[1]+(l*l*d+d*l*l+l*d*l)*r[1]+l*l*l*i[1]))/1e3]},buildBezierData:a,pointOnLine2D:t,pointOnLine3D:function(i,s,r,n,a,o,l,d,h){if(0===r&&0===o&&0===h)return t(i,s,n,a,l,d);var c,u=e.sqrt(e.pow(n-i,2)+e.pow(a-s,2)+e.pow(o-r,2)),f=e.sqrt(e.pow(l-i,2)+e.pow(d-s,2)+e.pow(h-r,2)),m=e.sqrt(e.pow(l-n,2)+e.pow(d-a,2)+e.pow(h-o,2));return(c=u>f?u>m?u-f-m:m-f-u:m>f?m-f-u:f-u-m)>-1e-4&&c<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var i,s=this.offsetTime;"multidimensional"===this.propType&&(i=createTypedArray("float32",this.pv.length));for(var r,n,a,o,l,d,h,c,u,f=t.lastIndex,m=f,p=this.keyframes.length-1,g=!0;g;){if(r=this.keyframes[m],n=this.keyframes[m+1],m===p-1&&e>=n.t-s){r.h&&(r=n),f=0;break}if(n.t-s>e){f=m;break}m<p-1?m+=1:(f=0,g=!1)}a=this.keyframesMetadata[m]||{};var y,_=n.t-s,v=r.t-s;if(r.to){a.bezierData||(a.bezierData=bez.buildBezierData(r.s,n.s||r.e,r.to,r.ti));var b=a.bezierData;if(e>=_||e<v){var w=e>=_?b.points.length-1:0;for(l=b.points[w].point.length,o=0;o<l;o+=1)i[o]=b.points[w].point[o]}else{a.__fnct?u=a.__fnct:(u=BezierFactory.getBezierEasing(r.o.x,r.o.y,r.i.x,r.i.y,r.n).get,a.__fnct=u),d=u((e-v)/(_-v));var T,M=b.segmentLength*d,S=t.lastFrame<e&&t._lastKeyframeIndex===m?t._lastAddedLength:0;for(c=t.lastFrame<e&&t._lastKeyframeIndex===m?t._lastPoint:0,g=!0,h=b.points.length;g;){if(S+=b.points[c].partialLength,0===M||0===d||c===b.points.length-1){for(l=b.points[c].point.length,o=0;o<l;o+=1)i[o]=b.points[c].point[o];break}if(M>=S&&M<S+b.points[c+1].partialLength){for(T=(M-S)/b.points[c+1].partialLength,l=b.points[c].point.length,o=0;o<l;o+=1)i[o]=b.points[c].point[o]+(b.points[c+1].point[o]-b.points[c].point[o])*T;break}c<h-1?c+=1:g=!1}t._lastPoint=c,t._lastAddedLength=S-b.points[c].partialLength,t._lastKeyframeIndex=m}}else{var L,k,E,D,x;if(p=r.s.length,y=n.s||r.e,this.sh&&1!==r.h)e>=_?(i[0]=y[0],i[1]=y[1],i[2]=y[2]):e<=v?(i[0]=r.s[0],i[1]=r.s[1],i[2]=r.s[2]):quaternionToEuler(i,slerp(createQuaternion(r.s),createQuaternion(y),(e-v)/(_-v)));else for(m=0;m<p;m+=1)1!==r.h&&(e>=_?d=1:e<v?d=0:(r.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[m]?u=a.__fnct[m]:(L=void 0===r.o.x[m]?r.o.x[0]:r.o.x[m],k=void 0===r.o.y[m]?r.o.y[0]:r.o.y[m],E=void 0===r.i.x[m]?r.i.x[0]:r.i.x[m],D=void 0===r.i.y[m]?r.i.y[0]:r.i.y[m],u=BezierFactory.getBezierEasing(L,k,E,D).get,a.__fnct[m]=u)):a.__fnct?u=a.__fnct:(L=r.o.x,k=r.o.y,E=r.i.x,D=r.i.y,u=BezierFactory.getBezierEasing(L,k,E,D).get,r.keyframeMetadata=u),d=u((e-v)/(_-v)))),y=n.s||r.e,x=1===r.h?r.s[m]:r.s[m]+(y[m]-r.s[m])*d,"multidimensional"===this.propType?i[m]=x:i=x}return t.lastIndex=f,i}function slerp(e,t,i){var s,r,n,a,o,l=[],d=e[0],h=e[1],c=e[2],u=e[3],f=t[0],m=t[1],p=t[2],g=t[3];return(r=d*f+h*m+c*p+u*g)<0&&(r=-r,f=-f,m=-m,p=-p,g=-g),1-r>1e-6?(s=Math.acos(r),n=Math.sin(s),a=Math.sin((1-i)*s)/n,o=Math.sin(i*s)/n):(a=1-i,o=i),l[0]=a*d+o*f,l[1]=a*h+o*m,l[2]=a*c+o*p,l[3]=a*u+o*g,l}function quaternionToEuler(e,t){var i=t[0],s=t[1],r=t[2],n=t[3],a=Math.atan2(2*s*n-2*i*r,1-2*s*s-2*r*r),o=Math.asin(2*i*s+2*r*n),l=Math.atan2(2*i*n-2*s*r,1-2*i*i-2*r*r);e[0]=a/degToRads,e[1]=o/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,i=e[1]*degToRads,s=e[2]*degToRads,r=Math.cos(t/2),n=Math.cos(i/2),a=Math.cos(s/2),o=Math.sin(t/2),l=Math.sin(i/2),d=Math.sin(s/2);return[o*l*a+r*n*d,o*n*a+r*l*d,r*l*a-o*n*d,r*n*a-o*l*d]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t
vendor: 13,104 bytes, line 2
2-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&e>=i||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var s=this.interpolateValue(e,this._caching);this.pv=s}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var i=0,s=this.v.length;i<s;)t=e[i]*this.mult,mathAbs(this.v[i]-t)>1e-5&&(this.v[i]=t,this._mdf=!0),i+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)i=this.effectsSequence[e](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,i,s){this.propType="unidimensional",this.mult=i||1,this.data=t,this.v=i?t.k*i:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=s,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,i,s){var r;this.propType="multidimensional",this.mult=i||1,this.data=t,this._mdf=!1,this.elem=e,this.container=s,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var n=t.k.length;for(this.v=createTypedArray("float32",n),this.pv=createTypedArray("float32",n),this.vel=createTypedArray("float32",n),r=0;r<n;r+=1)this.v[r]=t.k[r]*this.mult,this.pv[r]=t.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,i,s){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=i||1,this.elem=e,this.container=s,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,i,s){var r;this.propType="multidimensional";var n,a,o,l,d=t.k.length;for(r=0;r<d-1;r+=1)t.k[r].to&&t.k[r].s&&t.k[r+1]&&t.k[r+1].s&&(n=t.k[r].s,a=t.k[r+1].s,o=t.k[r].to,l=t.k[r].ti,(2===n.length&&(n[0]!==a[0]||n[1]!==a[1])&&bez.pointOnLine2D(n[0],n[1],a[0],a[1],n[0]+o[0],n[1]+o[1])&&bez.pointOnLine2D(n[0],n[1],a[0],a[1],a[0]+l[0],a[1]+l[1])||3===n.length&&(n[0]!==a[0]||n[1]!==a[1]||n[2]!==a[2])&&bez.pointOnLine3D(n[0],n[1],n[2],a[0],a[1],a[2],n[0]+o[0],n[1]+o[1],n[2]+o[2])&&bez.pointOnLine3D(n[0],n[1],n[2],a[0],a[1],a[2],a[0]+l[0],a[1]+l[1],a[2]+l[2]))&&(t.k[r].to=null,t.k[r].ti=null),n[0]===a[0]&&n[1]===a[1]&&0===o[0]&&0===o[1]&&0===l[0]&&0===l[1]&&(2===n.length||n[2]===a[2]&&0===o[2]&&0===l[2])&&(t.k[r].to=null,t.k[r].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=e,this.container=s,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var h=t.k[0].s.length;for(this.v=createTypedArray("float32",h),this.pv=createTypedArray("float32",h),r=0;r<h;r+=1)this.v[r]=initFrame,this.pv[r]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",h)},this.addEffect=addEffect}var PropertyFactory={getProp:function(e,t,i,s,r){var n;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])n=new MultiDimensionalProperty(e,t,s,r);else switch(i){case 0:n=new KeyframedValueProperty(e,t,s,r);break;case 1:n=new KeyframedMultidimensionalProperty(e,t,s,r)}else n=new ValueProperty(e,t,s,r);return n.effectsSequence.length&&r.addDynamicProperty(n),n}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var i=0;i<t;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,i,s,r){var n;switch(this._length=Math.max(this._length,s+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":n=this.v;break;case"i":n=this.i;break;case"o":n=this.o;break;default:n=[]}(!n[s]||n[s]&&!r)&&(n[s]=pointPool.newElement()),n[s][0]=e,n[s][1]=t},ShapePath.prototype.setTripleAt=function(e,t,i,s,r,n,a,o){this.setXYAt(e,t,"v",a,o),this.setXYAt(i,s,"o",a,o),this.setXYAt(r,n,"i",a,o)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,i=this.o,s=this.i,r=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],s[0][0],s[0][1],i[0][0],i[0][1],0,!1),r=1);var n,a=this._length-1,o=this._length;for(n=r;n<o;n+=1)e.setTripleAt(t[a][0],t[a][1],s[a][0],s[a][1],i[a][0],i[a][1],n,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,i=e._length;for(t=0;t<i;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1})),factory.clone=function(e){var t,i=factory.newElement(),s=void 0===e._length?e.v.length:e._length;for(i.setLength(s),i.c=e.c,t=0;t<s;t+=1)i.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return i},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,i=e._length;for(t=0;t<i;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var e=-999999;function t(e,t,i){var s,r,n,a,o,l,d,h,c,u=i.lastIndex,f=this.keyframes;if(e<f[0].t-this.offsetTime)s=f[0].s[0],n=!0,u=0;else if(e>=f[f.length-1].t-this.offsetTime)s=f[f.length-1].s?f[f.length-1].s[0]:f[f.length-2].e[0],n=!0;else{for(var m,p,g,y=u,_=f.length-1,v=!0;v&&(m=f[y],!((p=f[y+1]).t-this.offsetTime>e));)y<_-1?y+=1:v=!1;if(g=this.keyframesMetadata[y]||{},u=y,!(n=1===m.h)){if(e>=p.t-this.offsetTime)h=1;else if(e<m.t-this.offsetTime)h=0;else{var b;g.__fnct?b=g.__fnct:(b=BezierFactory.getBezierEasing(m.o.x,m.o.y,m.i.x,m.i.y).get,g.__fnct=b),h=b((e-(m.t-this.offsetTime))/(p.t-this.offsetTime-(m.t-this.offsetTime)))}r=p.s?p.s[0]:m.e[0]}s=m.s[0]}for(l=t._length,d=s.i[0].length,i.lastIndex=u,a=0;a<l;a+=1)for(o=0;o<d;o+=1)c=n?s.i[a][o]:s.i[a][o]+(r.i[a][o]-s.i[a][o])*h,t.i[a][o]=c,c=n?s.o[a][o]:s.o[a][o]+(r.o[a][o]-s.o[a][o])*h,t.o[a][o]=c,c=n?s.v[a][o]:s.v[a][o]+(r.v[a][o]-s.v[a][o])*h,t.v[a][o]=c}function i(){var t=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return r!==e&&(r<i&&t<i||r>s&&t>s)||(this._caching.lastIndex=r<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function s(){this.paths=this.localShapeCollection}function r(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var i,s=e._length;for(i=0;i<s;i+=1)if(e.v[i][0]!==t.v[i][0]||e.v[i][1]!==t.v[i][1]||e.o[i][0]!==t.o[i][0]||e.o[i][1]!==t.o[i][1]||e.i[i][0]!==t.i[i][0]||e.i[i][1]!==t.i[i][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function n(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var i=this.effectsSequence.length;for(t=0;t<i;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(e,t,i){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var r=3===i?t.pt.k:t.ks.k;this.v=shapePool.clone(r),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=s,this.effectsSequence=[]}function o(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,r,n){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===n?r.pt.k:r.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=s,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[i.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=n,a.prototype.setVValue=r,a.prototype.addEffect=o,l.prototype.getValue=n,l.prototype.interpolateShape=t,l.prototype.setVValue=r,l.prototype.addEffect=o;var d=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],i=this.p.v[1],s=this.s.v[0]/2,r=this.s.v[1]/2,n=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=i-r,a.v[1][0]=n?t+s:t-s,a.v[1][1]=i,a.v[2][0]=t,a.v[2][1]=i+r,a.v[3][0]=n?t-s:t+s,a.v[3][1]=i,a.i[0][0]=n?t-s*e:t+s*e,a.i[0][1]=i-r,a.i[1][0]=n?t+s:t-s,a.i[1][1]=i-r*e,a.i[2][0]=n?t+s*e:t-s*e,a.i[2][1]=i+r,a.i[3][0]=n?t-s:t+s,a.i[3][1]=i+r*e,a.o[0][0]=n?t+s*e:t-s*e,a.o[0][1]=i-r,a.o[1][0]=n?t+s:t-s,a.o[1][1]=i+r*e,a.o[2][0]=n?t-s*e:t+s*e,a.o[2][1]=i+r,a.o[3][0]=n?t-s:t+s,a.o[3][1]=i-r*e}},extendPrototype([DynamicPropertyContainer],t),t}(),h=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=Pro
vendor: 6,001 bytes, line 2
2pertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,i,s,r=2*Math.floor(this.pt.v),n=2*Math.PI/r,a=!0,o=this.or.v,l=this.ir.v,d=this.os.v,h=this.is.v,c=2*Math.PI*o/(2*r),u=2*Math.PI*l/(2*r),f=-Math.PI/2;f+=this.r.v;var m=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<r;e+=1){i=a?d:h,s=a?c:u;var p=(t=a?o:l)*Math.cos(f),g=t*Math.sin(f),y=0===p&&0===g?0:g/Math.sqrt(p*p+g*g),_=0===p&&0===g?0:-p/Math.sqrt(p*p+g*g);p+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(p,g,p-y*s*i*m,g-_*s*i*m,p+y*s*i*m,g+_*s*i*m,e,!0),a=!a,f+=n*m}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),i=2*Math.PI/t,s=this.or.v,r=this.os.v,n=2*Math.PI*s/(4*t),a=.5*-Math.PI,o=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=s*Math.cos(a),d=s*Math.sin(a),h=0===l&&0===d?0:d/Math.sqrt(l*l+d*d),c=0===l&&0===d?0:-l/Math.sqrt(l*l+d*d);l+=+this.p.v[0],d+=+this.p.v[1],this.v.setTripleAt(l,d,l-h*n*r*o,d-c*n*r*o,l+h*n*r*o,d+c*n*r*o,e,!0),a+=i*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),c=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,r=bmMin(i,s,this.r.v),n=r*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+i,t-s+r,e+i,t-s+r,e+i,t-s+n,0,!0),this.v.setTripleAt(e+i,t+s-r,e+i,t+s-n,e+i,t+s-r,1,!0),0!==r?(this.v.setTripleAt(e+i-r,t+s,e+i-r,t+s,e+i-n,t+s,2,!0),this.v.setTripleAt(e-i+r,t+s,e-i+n,t+s,e-i+r,t+s,3,!0),this.v.setTripleAt(e-i,t+s-r,e-i,t+s-r,e-i,t+s-n,4,!0),this.v.setTripleAt(e-i,t-s+r,e-i,t-s+n,e-i,t-s+r,5,!0),this.v.setTripleAt(e-i+r,t-s,e-i+r,t-s,e-i+n,t-s,6,!0),this.v.setTripleAt(e+i-r,t-s,e+i-n,t-s,e+i-r,t-s,7,!0)):(this.v.setTripleAt(e-i,t+s,e-i+n,t+s,e-i,t+s,2),this.v.setTripleAt(e-i,t-s,e-i,t-s+n,e-i,t-s,3))):(this.v.setTripleAt(e+i,t-s+r,e+i,t-s+n,e+i,t-s+r,0,!0),0!==r?(this.v.setTripleAt(e+i-r,t-s,e+i-r,t-s,e+i-n,t-s,1,!0),this.v.setTripleAt(e-i+r,t-s,e-i+n,t-s,e-i+r,t-s,2,!0),this.v.setTripleAt(e-i,t-s+r,e-i,t-s+r,e-i,t-s+n,3,!0),this.v.setTripleAt(e-i,t+s-r,e-i,t+s-n,e-i,t+s-r,4,!0),this.v.setTripleAt(e-i+r,t+s,e-i+r,t+s,e-i+n,t+s,5,!0),this.v.setTripleAt(e+i-r,t+s,e+i-n,t+s,e+i-r,t+s,6,!0),this.v.setTripleAt(e+i,t+s-r,e+i,t+s-r,e+i,t+s-n,7,!0)):(this.v.setTripleAt(e-i,t-s,e-i+n,t-s,e-i,t-s,1,!0),this.v.setTripleAt(e-i,t+s,e-i,t+s-n,e-i,t+s,2,!0),this.v.setTripleAt(e+i,t+s,e+i-n,t+s,e+i,t+s,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:s},extendPrototype([DynamicPropertyContainer],e),e}(),u={getShapeProp:function(e,t,i){var s;return 3===i||4===i?s=(3===i?t.pt:t.ks).k.length?new l(e,t,i):new a(e,t,i):5===i?s=new c(e,t):6===i?s=new d(e,t):7===i&&(s=new h(e,t)),s.k&&e.addDynamicProperty(s),s},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return u}(),Matrix=function(){var e=Math.cos,t=Math.sin,i=Math.tan,s=Math.round;function r(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function n(i){if(0===i)return this;var s=e(i),r=t(i);return this._t(s,-r,0,0,r,s,0,0,0,0,1,0,0,0,0,1)}function a(i){if(0===i)return this;var s=e(i),r=t(i);return this._t(1,0,0,0,0,s,-r,0,0,r,s,0,0,0,0,1)}function o(i){if(0===i)return this;var s=e(i),r=t(i);return this._t(s,0,r,0,0,1,0,0,-r,0,s,0,0,0,0,1)}function l(i){if(0===i)return this;var s=e(i),r=t(i);return this._t(s,-r,0,0,r,s,0,0,0,0,1,0,0,0,0,1)}function d(e,t){return this._t(1,t,e,1,0,0)}function h(e,t){return this.shear(i(e),i(t))}function c(s,r){var n=e(r),a=t(r);return this._t(n,a,0,0,-a,n,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(s),1,0,0,0,0,1,0,0,0,0,1)._t(n,-a,0,0,a,n,0,0,0,0,1,0,0,0,0,1)}function u(e,t,i){return i||0===i||(i=1),1===e&&1===t&&1===i?this:this._t(e,0,0,0,0,t,0,0,0,0,i,0,0,0,0,1)}function f(e,t,i,s,r,n,a,o,l,d,h,c,u,f,m,p){return this.props[0]=e,this.props[1]=t,this.props[2]=i,this.props[3]=s,this.props[4]=r,this.props[5]=n,this.props[6]=a,this.props[7]=o,this.props[8]=l,this.props[9]=d,this.props[10]=h,this.props[11]=c,this.props[12]=u,this.props[13]=f,this.props[14]=m,this.props[15]=p,this}function m(e,t,i){return i=i||0,0!==e||0!==t||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,i,1):this}function p(e,t,i,s,r,n,a,o,l,d,h,c,u,f,m,p){var g=this.props;if(1===e&&0===t&&0===i&&0===s&&0===r&&1===n&&0===a&&0===o&&0===l&&0===d&&1===h&&0===c)return g[12]=g[12]*e+g[15]*u,g[13]=g[13]*n+g[15]*f,g[14]=g[14]*h+g[15]*m,g[15]*=p,this._identityCalculated=!1,this;var y=g[0],_=g[1],v=g[2],b=g[3],w=g[4],T=g[5],M=g[6],S=g[7],L=g[8],k=g[9],E=g[10
vendor: 8,337 bytes, line 2
2],D=g[11],x=g[12],A=g[13],P=g[14],C=g[15];return g[0]=y*e+_*r+v*l+b*u,g[1]=y*t+_*n+v*d+b*f,g[2]=y*i+_*a+v*h+b*m,g[3]=y*s+_*o+v*c+b*p,g[4]=w*e+T*r+M*l+S*u,g[5]=w*t+T*n+M*d+S*f,g[6]=w*i+T*a+M*h+S*m,g[7]=w*s+T*o+M*c+S*p,g[8]=L*e+k*r+E*l+D*u,g[9]=L*t+k*n+E*d+D*f,g[10]=L*i+k*a+E*h+D*m,g[11]=L*s+k*o+E*c+D*p,g[12]=x*e+A*r+P*l+C*u,g[13]=x*t+A*n+P*d+C*f,g[14]=x*i+A*a+P*h+C*m,g[15]=x*s+A*o+P*c+C*p,this._identityCalculated=!1,this}function g(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function _(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function v(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function b(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function w(e,t,i){return{x:e*this.props[0]+t*this.props[4]+i*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+i*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+i*this.props[10]+this.props[14]}}function T(e,t,i){return e*this.props[0]+t*this.props[4]+i*this.props[8]+this.props[12]}function M(e,t,i){return e*this.props[1]+t*this.props[5]+i*this.props[9]+this.props[13]}function S(e,t,i){return e*this.props[2]+t*this.props[6]+i*this.props[10]+this.props[14]}function L(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,i=-this.props[1]/e,s=-this.props[4]/e,r=this.props[0]/e,n=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,o=new Matrix;return o.props[0]=t,o.props[1]=i,o.props[4]=s,o.props[5]=r,o.props[12]=n,o.props[13]=a,o}function k(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function E(e){var t,i=e.length,s=[];for(t=0;t<i;t+=1)s[t]=k(e[t]);return s}function D(e,t,i){var s=createTypedArray("float32",6);if(this.isIdentity())s[0]=e[0],s[1]=e[1],s[2]=t[0],s[3]=t[1],s[4]=i[0],s[5]=i[1];else{var r=this.props[0],n=this.props[1],a=this.props[4],o=this.props[5],l=this.props[12],d=this.props[13];s[0]=e[0]*r+e[1]*a+l,s[1]=e[0]*n+e[1]*o+d,s[2]=t[0]*r+t[1]*a+l,s[3]=t[0]*n+t[1]*o+d,s[4]=i[0]*r+i[1]*a+l,s[5]=i[0]*n+i[1]*o+d}return s}function x(e,t,i){return this.isIdentity()?[e,t,i]:[e*this.props[0]+t*this.props[4]+i*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+i*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+i*this.props[10]+this.props[14]]}function A(e,t){if(this.isIdentity())return e+","+t;var i=this.props;return Math.round(100*(e*i[0]+t*i[4]+i[12]))/100+","+Math.round(100*(e*i[1]+t*i[5]+i[13]))/100}function P(){for(var e=0,t=this.props,i="matrix3d(";e<16;)i+=s(1e4*t[e])/1e4,i+=15===e?")":",",e+=1;return i}function C(e){return e<1e-6&&e>0||e>-1e-6&&e<0?s(1e4*e)/1e4:e}function I(){var e=this.props;return"matrix("+C(e[0])+","+C(e[1])+","+C(e[4])+","+C(e[5])+","+C(e[12])+","+C(e[13])+")"}return function(){this.reset=r,this.rotate=n,this.rotateX=a,this.rotateY=o,this.rotateZ=l,this.skew=h,this.skewFromAxis=c,this.shear=d,this.scale=u,this.setTransform=f,this.translate=m,this.transform=p,this.multiply=g,this.applyToPoint=w,this.applyToX=T,this.applyToY=M,this.applyToZ=S,this.applyToPointArray=x,this.applyToTriplePoints=D,this.applyToPointStringified=A,this.toCSS=P,this.to2dCSS=I,this.clone=v,this.cloneFromProps=b,this.equals=_,this.inversePoints=E,this.inversePoint=k,this.getInverseMatrix=L,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),i=0;i<t.length;i+=1){var s=t[i].split("=");if(decodeURIComponent(s[0])==e)return decodeURIComponent(s[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,i){t[e]||(t[e]=i)},e.getModifier=function(e,i,s){return new t[e](i,s)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=Pro
vendor: 5,368 bytes, line 2
2pertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,i,s,r){var n=[];t<=1?n.push({s:e,e:t}):e>=1?n.push({s:e-1,e:t-1}):(n.push({s:e,e:1}),n.push({s:0,e:t-1}));var a,o,l=[],d=n.length;for(a=0;a<d;a+=1){var h,c;(o=n[a]).e*r<s||o.s*r>s+i||(h=o.s*r<=s?0:(o.s*r-s)/i,c=o.e*r>=s+i?1:(o.e*r-s)/i,l.push([h,c]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,i=e.length;for(t=0;t<i;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,i,s,r;if(this._mdf||e){var n=this.o.v%360/360;if(n<0&&(n+=1),(t=this.s.v>1?1+n:this.s.v<0?0+n:this.s.v+n)>(i=this.e.v>1?1+n:this.e.v<0?0+n:this.e.v+n)){var a=t;t=i,i=a}t=1e-4*Math.round(1e4*t),i=1e-4*Math.round(1e4*i),this.sValue=t,this.eValue=i}else t=this.sValue,i=this.eValue;var o,l,d,h,c,u=this.shapes.length,f=0;if(i===t)for(r=0;r<u;r+=1)this.shapes[r].localShapeCollection.releaseShapes(),this.shapes[r].shape._mdf=!0,this.shapes[r].shape.paths=this.shapes[r].localShapeCollection,this._mdf&&(this.shapes[r].pathsData.length=0);else if(1===i&&0===t||0===i&&1===t){if(this._mdf)for(r=0;r<u;r+=1)this.shapes[r].pathsData.length=0,this.shapes[r].shape._mdf=!0}else{var m,p,g=[];for(r=0;r<u;r+=1)if((m=this.shapes[r]).shape._mdf||this._mdf||e||2===this.m){if(l=(s=m.shape.paths)._length,c=0,!m.shape._mdf&&m.pathsData.length)c=m.totalShapeLength;else{for(d=this.releasePathsData(m.pathsData),o=0;o<l;o+=1)h=bez.getSegmentsLength(s.shapes[o]),d.push(h),c+=h.totalLength;m.totalShapeLength=c,m.pathsData=d}f+=c,m.shape._mdf=!0}else m.shape.paths=m.localShapeCollection;var y,_=t,v=i,b=0;for(r=u-1;r>=0;r-=1)if((m=this.shapes[r]).shape._mdf){for((p=m.localShapeCollection).releaseShapes(),2===this.m&&u>1?(y=this.calculateShapeEdges(t,i,m.totalShapeLength,b,f),b+=m.totalShapeLength):y=[[_,v]],l=y.length,o=0;o<l;o+=1){_=y[o][0],v=y[o][1],g.length=0,v<=1?g.push({s:m.totalShapeLength*_,e:m.totalShapeLength*v}):_>=1?g.push({s:m.totalShapeLength*(_-1),e:m.totalShapeLength*(v-1)}):(g.push({s:m.totalShapeLength*_,e:m.totalShapeLength}),g.push({s:0,e:m.totalShapeLength*(v-1)}));var w=this.addShapes(m,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(m.shape.paths.shapes[m.shape.paths._length-1].c){var T=w.pop();this.addPaths(w,p),w=this.addShapes(m,g[1],T)}else this.addPaths(w,p),w=this.addShapes(m,g[1]);this.addPaths(w,p)}}m.shape.paths=p}}},TrimModifier.prototype.addPaths=function(e,t){var i,s=e.length;for(i=0;i<s;i+=1)t.addShape(e[i])},TrimModifier.prototype.addSegment=function(e,t,i,s,r,n,a){r.setXYAt(t[0],t[1],"o",n),r.setXYAt(i[0],i[1],"i",n+1),a&&r.setXYAt(e[0],e[1],"v",n),r.setXYAt(s[0],s[1],"v",n+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,i,s){t.setXYAt(e[1],e[5],"o",i),t.setXYAt(e[2],e[6],"i",i+1),s&&t.setXYAt(e[0],e[4],"v",i),t.setXYAt(e[3],e[7],"v",i+1)},TrimModifier.prototype.addShapes=function(e,t,i){var s,r,n,a,o,l,d,h,c=e.pathsData,u=e.shape.paths.shapes,f=e.shape.paths._length,m=0,p=[],g=!0;for(i?(o=i._length,h=i._length):(i=shapePool.newElement(),o=0,h=0),p.push(i),s=0;s<f;s+=1){for(l=c[s].lengths,i.c=u[s].c,n=u[s].c?l.length:l.length+1,r=1;r<n;r+=1)if(m+(a=l[r-1]).addedLength<t.s)m+=a.addedLength,i.c=!1;else{if(m>t.e){i.c=!1;break}t.s<=m&&t.e>=m+a.addedLength?(this.addSegment(u[s].v[r-1],u[s].o[r-1],u[s].i[r],u[s].v[r],i,o,g),g=!1):(d=bez.getNewSegment(u[s].v[r-1],u[s].v[r],u[s].o[r-1],u[s].i[r],(t.s-m)/a.addedLength,(t.e-m)/a.addedLength,l[r-1]),this.addSegmentFromArray(d,i,o,g),g=!1,i.c=!1),m+=a.addedLength,o+=1}if(u[s].c&&l.length){if(a=l[r-1],m<=t.e){var y=l[r-1].addedLength;t.s<=m&&t.e>=m+y?(this.addSegment(u[s].v[r-1],u[s].o[r-1],u[s].i[0],u[s].v[0],i,o,g),g=!1):(d=bez.getNewSegment(u[s].v[r-1],u[s].v[0],u[s].o[r-1],u[s].i[0],(t.s-m)/y,(t.e-m)/y,l[r-1]),this.addSegmentFromArray(d,i,o,g),g=!1,i.c=!1)}else i.c=!1;m+=a.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[h][0],i.v[h][1],"i",h),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),m>t.e)break;s<f-1&&(i=shapePool.newElement(),g=!0,p.push(i),o=0)}return p},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var i=t/100,s=[0,0],r=e._length,n=0;for(n=0;n<r;n+=1)s[0]+=e.v[n][0],s[1]+=e.v[n][1];s[0]/=r,s[1]/=r;var a,o,l,d,h,c,u=shapePool.newElement();for(u.c=e.c,n=0;n<r;n+=1)a=e.v[n][0]+(s[0]-e.v[n][0])*i,o=e.v[n][1]+(s[1]-e.v[n][1])*i,l=e.o[n][0]+(s[0]-e.o[n][0])*-i,d=e.o[n][1]+(s[1]-e.o[n][1])*-i,h=e.i[n][0]+(s[0]-e.i[n][0])*-i,c=e.i[n][1]+(s[1]-e.i[n][1])*-i,u.setTripleAt(a,o,l,d,h,c,n);return u},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,i,s,r,n,a,o=this.shapes.length,l=this.amount.v;if(0!==l)for(i=0;i<o;i+=1){if(a=(n=this.shapes[i]).localShapeCollection,n.shape._mdf||this._mdf||e)for(a.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,r
vendor: 44,969 bytes, line 2
2=n.shape.paths._length,s=0;s<r;s+=1)a.addShape(this.processPath(t[s],l));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,i){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var s,r=t.or.k.length;for(s=0;s<r;s+=1)t.or.k[s].to=null,t.or.k[s].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var i;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var s,r;if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(s=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),r=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(s=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),r=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(s=this.p.pv,r=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){s=[],r=[];var n=this.px,a=this.py;n._caching.lastFrame+n.offsetTime<=n.keyframes[0].t?(s[0]=n.getValueAtTime((n.keyframes[0].t+.01)/i,0),s[1]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),r[0]=n.getValueAtTime(n.keyframes[0].t/i,0),r[1]=a.getValueAtTime(a.keyframes[0].t/i,0)):n._caching.lastFrame+n.offsetTime>=n.keyframes[n.keyframes.length-1].t?(s[0]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/i,0),s[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),r[0]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/i,0),r[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0)):(s=[n.pv,a.pv],r[0]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/i,n.offsetTime),r[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime))}else s=r=e;this.v.rotate(-Math.atan2(s[1]-r[1],s[0]-r[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,i,s){return new t(e,i,s)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,i){return e*(1-i)+t*i}function lerpPoint(e,t,i){return[lerp(e[0],t[0],i),lerp(e[1],t[1],i)]}function quadRoots(e,t,i){if(0===e)return[];var s=t*t-4*e*i;if(s<0)return[];var r=-t/(2*e);if(0===s)return[r];var n=Math.sqrt(s)/(2*e);return[r-n,r+n]}function polynomialCoefficients(e,t,i,s){return[3*t-e-3*i+s,3*e-6*t+3*i,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,i,s,r){r&&pointEqual(e,t)&&(t=lerpPoint(e,s,1/3)),r&&pointEqual(i,s)&&(i=lerpPoint(e,s,2/3));var n=polynomialCoefficients(e[0],t[0],i[0],s[0]),a=polynomialCoefficients(e[1],t[1],i[1],s[1]);this.a=[n[0],a[0]],this.b=[n[1],a[1]],this.c=[n[2],a[2]],this.d=[n[3],a[3]],this.points=[e,t,i,s]}function extrema(e,t){var i=e.points[0][t],s=e.points[e.points.length-1][t];if(i>s){var r=s;s=i,i=r}for(var n=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<n.length;a+=1)if(n[a]>0&&n[a]<1){var o=e.point(n[a])[t];o<i?i=o:o>s&&(s=o)}return{min:i,max:s}}function intersectData(e,t,i){var s=e.boundingBox();return{cx:s.cx,cy:s.cy,width:s.width,height:s.height,bez:e,t:(t+i)/2,t1:t,t2:i}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,i,s,r,n){if(boxIntersect(e,t))if(i>=n||e.width<=s&&e.height<=s&&t.width<=s&&t.height<=s)r.push([e.t,t.t]);else{var a=splitData(e),o=splitData(t);intersectsImpl(a[0],o[0],i+1,s,r,n),intersectsImpl(a[0],o[1],i+1,s,r,n),intersectsImpl(a[1],o[0],i+1,s,r,n),intersectsImpl(a[1],o[1],i+1,s,r,n)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,i,s){var r=[e[0],e[1],1],n=[t[0],t[1],1],a=[i[0],i[1],1],o=[s[0],s[1],1],l=crossProduct(crossProduct(r,n),crossProduct(a,o));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,i){return[e[0]+Math.cos(t)*i,e[1]-Math.sin(t)*i]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,i,s,r,n,a){var o=i-Math.PI/2,l=i+Math.PI/2,d=t[0]+Math.cos(i)*s*r,h=t[1]-Math.sin(i)*s*r;e.setTripleAt(d,h,d+Math.cos(o)*n,h-Math.sin(o)*n,d+Math.cos(l)*a,h-Math.sin(l)*a,e.length())}function getPerpendicularVector(e,t){var i=[t[0]-e[0],t[1]-e[1]],s=.5*-Math.PI;return[Math.cos(s)*i[0]-Math.sin(s)*i[1],Math.sin(s)*i[0]+Math.cos(s)*i[1]]}function getProjectingAngle(e,t){var i=0===t?e.length()-1:t-1,s=(t+1)%e.length(),r=getPerpendicularVector(e.v[i],e.v[s]);return Math.atan2(0,1)-Math.atan2(r[1],r[0])}function zigZagCorner(e,t,i,s,r,n,a){var o=getProjectingAngle(t,i),l=t.v[i%t._length],d=t.v[0===i?t._length-1:i-1],h=t.v[(i+1)%t._length],c=2===n?Math.sqrt(Math.pow(l[0]-d[0],2)+Math.pow(l[1]-d[1],2)):0,u=2===n?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0;setPoint(e,t.v[i%t._length],o,a,s,u/(2*(r+1)),c/(2*(r+1)),n)}function zigZagSegment(e,t,i,s,r,n){for(var a=0;a<s;a+=1){var o=(a+1)/(s+1),l=2===r?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,d=t.normalAngle(o);setPoint(e,t.point(o),d,n,i,l/(2*(s+1)),l/(2*(s+1)),r),n=-n}return n}function linearOffset(e,t,i){var s=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,s,i),polarOffset(t,s,i)]}function offsetSegment(e,t){var i,s,r,n,a,o,l;i=(l=linearOffset(e.points[0],e.points[1],t))[0],s=l[1],r=(l=linearOffset(e.points[1],e.points[2],t))[0],n=l[1],a=(l=linearOffset(e.points[2],e.points[3],t))[0],o=l[1];var d=lineIntersection(i,s,r,n);null===d&&(d=s);var h=lineIntersection(a,o,r,n);return null===h&&(h=a),new PolynomialBezier(i,d,h,o)}function joinLines(e,t,i,s,r){var n=t.points[3],a=i.points[0];if(3===s)return n;if(pointEqual(n,a))return n;if(2===s){var o=-t.tangentAngle(1),l=-i.tangentAngle(0)+Math.PI,d=lineIntersection(n,polarOffset(n,o+Math.PI/2,100),a,polarOffset(a,o+Math.PI/2,100)),h=d?pointDistance(d,n):pointDistance(n,a)/2,c=polarOffset(n,o,2*h*roundCorner);return e.setXYAt(c[0],c[1],"o",e.length()-1),c=polarOffset(a,l,2*h*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],c[0],c[1],e.length()),a}var u=lineIntersection(pointEqual(n,t.points[2])?t.points[0]:t.points[2],n,a,pointEqual(a,i.points[1])?i.points[3]:i.points[1]);return u&&pointDistance(u,n)<r?(e.setTripleAt(u[0],u[1],u[0],u[1],u[0],u[1],e.length()),u):n}function getIntersection(e,t){var i=e.intersections(t);return i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length?i[0]:null}function pruneSegmentIntersection(e,t){var i=e.slice(),s=t.slice(),r=getIntersection(e[e.length-1],t[0]);return r&&(i[e.length-1]=e[e.length-1].split(r[0])[0],s[0]=t[0].split(r[1])[1]),e.length>1&&t.length>1&&(r=getIntersection(e[0],t[t.length-1]))?[[e[0].split(r[0])[0]],[t[t.length-1].split(r[1])[1]]]:[i,s]}function pruneIntersections(e){for(var t,i=1;i<e.length;i+=1)t=pruneSegmentIntersection(e[i-1],e[i]),e[i-1]=t[0],e[i]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var i,s,r,n,a=e.inflectionPoints();if(0===a.length)return[offsetSegment(e,t)];if(1===a.length||floatEqual(a[1],1))return i=(r=e.split(a[0]))[0],s=r[1],[offsetSegment(i,t),offsetSegment(s,t)];i=(r=e.split(a[0]))[0];var o=(a[1]-a[0])/(1-a[0]);return n=(r=r[1].split(o))[0],s=r[1],[offsetSegment(i,t),offsetSegment(n,t),offsetSegment(s,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],i="normal",s="normal",r=t.length,n=0;n<r;n+=1)switch(t[n].toLowerCase()){case"italic":s="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:s,weight:e.fWeight||i}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,i,s,r,n){var a=n?-1:1,o=s.s.v[0]+(1-s.s.v[0])*(1-r),l=s.s.v[1]+(1-s.s.v[1])*(1-r);e.translate(s.p.v[0]*a*r,s.p.v[1]*a*r,s.p.v[2]),t.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),t.rotate(-s.r.v*a*r),t.translate(s.a.v[0],s.a.v[1],s.a.v[2]),i.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),i.scale(n?1/o:o,n?1/l:l),i.translate(s.a.v[0],s.a.v[1],s.a.v[2])},RepeaterModifier.prototype.init=function(e,t,i,s){for(this.elem=e,this.arr=t,this.pos=i,this.elemsData=s,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[i]);i>0;)i-=1,this._elements.unshift(t[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,i=e.length;for(t=0;t<i;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var i,s=e.length;for(i=0;i<s;i+=1)e[i]._render=t,"gr"===e[i].ty&&this.changeGroupRender(e[i].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,i,s,r,n,a=!1;if(this._mdf||e){var o,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var d={it:this.cloneElements(this._elements),ty:"gr"};d.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,d),this._groups.splice(0,0,d),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(n=0,s=0;s<=this._groups.length-1;s+=1){if(o=n<l,this._groups[s]._render=o,this.changeGroupRender(this._groups[s].it,o),!o){var h=this.elemsData[s].it,c=h[h.length-1];0!==c.transform.op.v?(c.transform.op._mdf=!0,c.transform.op.v=0):c.transform.op._mdf=!1}n+=1}this._currentCopies=l;var u=this.o.v,f=u%1,m=u>0?Math.floor(u):Math.ceil(u),p=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var _,v,b=0;if(u>0){for(;b<m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),b+=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,f,!1),b+=f)}else if(u<0){for(;b>m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),b-=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-f,!0),b-=f)}for(s=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,n=this._currentCopies;n;){if(v=(i=(t=this.elemsData[s].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(s/(this._currentCopies-1)),0!==b){for((0!==s&&1===r||s!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),_=0;_<v;_+=1)i[_]=this.matrix.props[_];this.matrix.reset()}else for(this.matrix.reset(),_=0;_<v;_+=1)i[_]=this.matrix.props[_];b+=1,n-=1,s+=r}}else for(n=this._currentCopies,s=0,r=1;n;)i=(t=this.elemsData[s].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,n-=1,s+=r;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var i,s=shapePool.newElement();s.c=e.c;var r,n,a,o,l,d,h,c,u,f,m,p,g=e._length,y=0;for(i=0;i<g;i+=1)r=e.v[i],a=e.o[i],n=e.i[i],r[0]===a[0]&&r[1]===a[1]&&r[0]===n[0]&&r[1]===n[1]?0!==i&&i!==g-1||e.c?(o=0===i?e.v[g-1]:e.v[i-1],d=(l=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(l/2,t)/l:0,h=m=r[0]+(o[0]-r[0])*d,c=p=r[1]-(r[1]-o[1])*d,u=h-(h-r[0])*roundCorner,f=c-(c-r[1])*roundCorner,s.setTripleAt(h,c,u,f,m,p,y),y+=1,o=i===g-1?e.v[0]:e.v[i+1],d=(l=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(l/2,t)/l:0,h=u=r[0]+(o[0]-r[0])*d,c=f=r[1]+(o[1]-r[1])*d,m=h-(h-r[0])*roundCorner,p=c-(c-r[1])*roundCorner,s.setTripleAt(h,c,u,f,m,p,y),y+=1):(s.setTripleAt(r[0],r[1],a[0],a[1],n[0],n[1],y),y+=1):(s.setTripleAt(e.v[i][0],e.v[i][1],e.o[i][0],e.o[i][1],e.i[i][0],e.i[i][1],y),y+=1);return s},RoundCornersModifier.prototype.processShapes=function(e){var t,i,s,r,n,a,o=this.shapes.length,l=this.rd.v;if(0!==l)for(i=0;i<o;i+=1){if(a=(n=this.shapes[i]).localShapeCollection,n.shape._mdf||this._mdf||e)for(a.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,r=n.shape.paths._length,s=0;s<r;s+=1)a.addShape(this.processPath(t[s],l));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,i=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(i<0)return[];var s=Math.sqrt(i);return floatZero(s)?s>0&&s<1?[t]:[]:[t-s,t+s].filter((function(e){return e>0&&e<1}))},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),i=lerpPoint(this.points[1],this.points[2],e),s=lerpPoint(this.points[2],this.points[3],e),r=lerpPoint(t,i,e),n=lerpPoint(i,s,e),a=lerpPoint(r,n,e);return[new PolynomialBezier(this.points[0],t,r,a,!0),new PolynomialBezier(a,n,s,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,i){void 0===t&&(t=2),void 0===i&&(i=7);var s=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,s,i),s},PolynomialBezier.shapeSegment=function(e,t){var i=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[i],e.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var i=(t+1)%e.length();return new PolynomialBezier(e.v[i],e.i[i],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,i,s){var r=e._length,n=shapePool.newElement();if(n.c=e.c,e.c||(r-=1),0===r)return n;var a=-1,o=PolynomialBezier.shapeSegment(e,0);zigZagCorner(n,e,0,t,i,s,a);for(var l=0;l<r;l+=1)a=zigZagSegment(n,o,t,i,s,-a),o=l!==r-1||e.c?PolynomialBezier.shapeSegment(e,(l+1)%r):null,zigZagCorner(n,e,l+1,t,i,s,a);return n},ZigZagModifier.prototype.processShapes=function(e){var t,i,s,r,n,a,o=this.shapes.length,l=this.amplitude.v,d=Math.max(0,Math.round(this.frequency.v)),h=this.pointsType.v;if(0!==l)for(i=0;i<o;i+=1){if(a=(n=this.shapes[i]).localShapeCollection,n.shape._mdf||this._mdf||e)for(a.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,r=n.shape.paths._length,s=0;s<r;s+=1)a.addShape(this.processPath(t[s],l,d,h));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,i,s){var r=shapePool.newElement();r.c=e.c;var n,a,o,l=e.length();e.c||(l-=1);var d=[];for(n=0;n<l;n+=1)o=PolynomialBezier.shapeSegment(e,n),d.push(offsetSegmentSplit(o,t));if(!e.c)for(n=l-1;n>=0;n-=1)o=PolynomialBezier.shapeSegmentInverted(e,n),d.push(offsetSegmentSplit(o,t));d=pruneIntersections(d);var h=null,c=null;for(n=0;n<d.length;n+=1){var u=d[n];for(c&&(h=joinLines(r,c,u[0],i,s)),c=u[u.length-1],a=0;a<u.length;a+=1)o=u[a],h&&pointEqual(o.points[0],h)?r.setXYAt(o.points[1][0],o.points[1][1],"o",r.length()-1):r.setTripleAt(o.points[0][0],o.points[0][1],o.points[1][0],o.points[1][1],o.points[0][0],o.points[0][1],r.length()),r.setTripleAt(o.points[3][0],o.points[3][1],o.points[3][0],o.points[3][1],o.points[2][0],o.points[2][1],r.length()),h=o.points[3]}return d.length&&joinLines(r,c,d[0][0],i,s),r},OffsetPathModifier.prototype.processShapes=function(e){var t,i,s,r,n,a,o=this.shapes.length,l=this.amount.v,d=this.miterLimit.v,h=this.lineJoin;if(0!==l)for(i=0;i<o;i+=1){if(a=(n=this.shapes[i]).localShapeCollection,n.shape._mdf||this._mdf||e)for(a.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,r=n.shape.paths._length,s=0;s<r;s+=1)a.addShape(this.processPath(t[s],l,h,d));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,s=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function r(e,t){var i=createTag("span");i.setAttribute("aria-hidden",!0),i.style.fontFamily=t;var s=createTag("span");s.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(s),document.body.appendChild(i);var r=s.offsetWidth;return s.style.fontFamily=function(e){var t,i=e.split(","),s=i.length,r=[];for(t=0;t<s;t+=1)"sans-serif"!==i[t]&&"monospace"!==i[t]&&r.push(i[t]);return r.join(",")}(e)+", "+t,{node:s,w:r,parent:i}}function n(e,t){var i,s=document.body&&t?"svg":"canvas",r=getFontProperties(e);if("svg"===s){var n=createNS("text");n.style.fontSize="100px",n.setAttribute("font-family",e.fFamily),n.setAttribute("font-style",r.style),n.setAttribute("font-weight",r.weight),n.textContent="1",e.fClass?(n.style.fontFamily="inherit",n.setAttribute("class",e.fClass)):n.style.fontFamily=e.fFamily,t.appendChild(n),i=n}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=r.style+" "+r.weight+" 100px "+e.fFamily,i=a}return{measureText:function(e){return"svg"===s?(i.textContent=e,i.getComputedTextLength()):i.measureText(e).width}}}function a(e){var t=0,i=e.charCodeAt(0);if(i>=55296&&i<=56319){var s=e.charCodeAt(1);s>=56320&&s<=57343&&(t=1024*(i-55296)+s-56320+65536)}return t}function o(e){var t=a(e);return t>=127462&&t<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};l.isModifier=function(e,t){var i=e.toString(16)+t.toString(16);return-1!==s.indexOf(i)},l.isZeroWidthJoiner=function(e){return 8205===e},l.isFlagEmoji=function(e){return o(e.substr(0,2))&&o(e.substr(2,2))},l.isRegionalCode=o,l.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},l.isRegionalFlag=function(e,t){var s=a(e.substr(t,2));if(s!==i)return!1;var r=0;for(t+=2;r<5;){if((s=a(e.substr(t,2)))<917601||s>917626)return!1;r+=1,t+=2}return 917631===a(e.substr(t,2))},l.isVariationSelector=function(e){return 65039===e},l.BLACK_FLAG_CODE_POINT=i;var d={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var i,s,r=e.length,n=this.chars.length;for(t=0;t<r;t+=1){for(i=0,s=!1;i<n;)this.chars[i].style===e[t].style&&this.chars[i].fFamily===e[t].fFamily&&this.chars[i].ch===e[t].ch&&(s=!0),i+=1;s||(this.chars.push(e[t]),n+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach((function(e){e.helper=n(e),e.cache={}})),void(this.fonts=e.list);var i,s=e.list,a=s.length,o=a;for(i=0;i<a;i+=1){var l,d,h=!0;if(s[i].loaded=!1,s[i].monoCase=r(s[i].fFamily,"monospace"),s[i].sansCase=r(s[i].fFamily,"sans-serif"),s[i].fPath){if("p"===s[i].fOrigin||3===s[i].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+s[i].fFamily+'"], style[f-origin="3"][f-family="'+s[i].fFamily+'"]')).length>0&&(h=!1),h){var c=createTag("style");c.setAttribute("f-forigin",s[i].fOrigin),c.setAttribute("f-origin",s[i].origin),c.setAttribute("f-family",s[i].fFamily),c.type="text/css",c.innerText="@font-face {font-family: "+s[i].fFamily+"; font-style: normal; src: url('"+s[i].fPath+"');}",t.appendChild(c)}}else if("g"===s[i].fOrigin||1===s[i].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),d=0;d<l.length;d+=1)-1!==l[d].href.indexOf(s[i].fPath)&&(h=!1);if(h){var u=createTag("link");u.setAttribute("f-forigin",s[i].fOrigin),u.setAttribute("f-origin",s[i].origin),u.type="text/css",u.rel="stylesheet",u.href=s[i].fPath,document.body.appendChild(u)}}else if("t"===s[i].fOrigin||2===s[i].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),d=0;d<l.length;d+=1)s[i].fPath===l[d].src&&(h=!1);if(h){var f=createTag("link");f.setAttribute("f-forigin",s[i].fOrigin),f.setAttribute("f-origin",s[i].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",s[i].fPath),t.appendChild(f)}}}else s[i].loaded=!0,o-=1;s[i].helper=n(s[i],t),s[i].cache={},this.fonts.push(s[i])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,i,s){for(var r=0,n=this.chars.length;r<n;){if(this.chars[r].ch===t&&this.chars[r].style===i&&this.chars[r].fFamily===s)return this.chars[r];r+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,i,s)),e},getFontByName:function(e){for(var t=0,i=this.fonts.length;t<i;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,i){var s=this.getFontByName(t),r=e;if(!s.cache[r]){var n=s.helper;if(" "===e){var a=n.measureText("|"+e+"|"),o=n.measureText("||");s.cache[r]=(a-o)/100}else s.cache[r]=n.measureText(e)/100}return s.cache[r]*i},checkLoadedFonts:function(){var e,t,i,s=this.fonts.length,r=s;for(e=0;e<s;e+=1)this.fonts[e].loaded?r-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,i=this.fonts[e].monoCase.w,t.offsetWidth!==i?(r-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,i=this.fonts[e].sansCase.w,t.offsetWidth!==i&&(r-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==r&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return l.prototype=d,l}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function AngleEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function ColorEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,1,0,i)}function PointEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,1,0,i)}function LayerIndexEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function MaskIndexEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function CheckboxEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var i,s=e.ef||[];this.effectElements=[];var r,n=s.length;for(i=0;i<n;i+=1)r=new GroupEffect(s[i],t),this.effectElements.push(r)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,i){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,i)}function AudioElement(e,t,i){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,i),this._isPlaying=!1,this._canPlay=!1;var s=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(s),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var i;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var s,r=this.data.ef.length,n=this.data.ef;for(i=0;i<r;i+=1){switch(s=null,n[i].ty){case 0:s=new SliderEffect(n[i],t,this);break;case 1:s=new AngleEffect(n[i],t,this);break;case 2:s=new ColorEffect(n[i],t,this);break;case 3:s=new PointEffect(n[i],t,this);break;case 4:case 7:s=new CheckboxEffect(n[i],t,this);break;case 10:s=new LayerIndexEffect(n[i],t,this);break;case 11:s=new MaskIndexEffect(n[i],t,this);break;case 5:s=new EffectsManager(n[i],t,this);break;default:s=new NoValueEffect(n[i],t,this)}s&&this.effectElements.push(s)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),i=e("effects"),s=e("shape"),r=e("text"),n=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=n(this):4===this.data.ty?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=r(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,i){this.globalData=t,this.comp=i,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var i,s=this.dynamicProperties.length;for(i=0;i<s;i+=1)(t||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,i,s=this.layers.length;for(this.completeLayers=!0,t=s-1;t>=0;t-=1)this.elements[t]||(i=this.layers[t]).ip-i.st<=e-this.layers[t].st&&i.op-i.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var i,s=e.length,r=this.layers.length;for(t=0;t<s;t+=1)for(i=0;i<r;){if(this.layers[i].id===e[t].id){this.layers[i]=e[t];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,i){for(var s=this.elements,r=this.layers,n=0,a=r.length;n<a;)r[n].ind==t&&(s[n]&&!0!==s[n]?(i.push(s[n]),s[n].setAsParent(),void 0!==r[n].parent?this.buildElementParenting(e,r[n].parent,i):e.setHierarchy(i)):(this.buildItem(n),this.addPendingElement(e))),n+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,i=e.length;for(t=0;t<i;t+=1)if(e[t].xt){var s=this.createComp(e[t]);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}},BaseRenderer.prototype.getElementById=function(e){var t,i=this.elements.length;for(t=0;t<i;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,i=e.shift();if("number"==typeof i)t=this.elements[i];else{var s,r=this.elements.length;for(s=0;s<r;s+=1)if(this.elements[s].data.nm===i){t=this.elements[s];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,i){this.data=e,this.element=t,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var s,r,n=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var o,l,d,h,c,u,f=this.masksProperties,m=0,p=[],g=createElementID(),y="clipPath",_="clip-path";for(s=0;s<a;s+=1)if(("a"!==f[s].mode&&"n"!==f[s].mode||f[s].inv||100!==f[s].o.k||f[s].o.x)&&(y="mask",_="mask"),"s"!==f[s].mode&&"i"!==f[s].mode||0!==m?d=null:((d=createNS("rect")).setAttribute("fill","#ffffff"),d.setAttribute("width",this.element.comp.data.w||0),d.setAttribute("height",this.element.comp.data.h||0),p.push(d)),r=createNS("path"),"n"===f[s].mode)this.viewData[s]={op:PropertyFactory.getProp(this.element,f[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[s],3),elem:r,lastPath:""},n.appendChild(r);else{var v;if(m+=1,r.setAttribute("fill","s"===f[s].mode?"#000000":"#ffffff"),r.setAttribute("clip-rule","nonzero"),0!==f[s].x.k?(y="mask",_="mask",u=PropertyFactory.getProp(this.element,f[s].x,0,null,this.element),v=createElementID(),(h=createNS("filter")).setAttribute("id",v),(c=createNS("feMorphology")).setAttribute("operator","erode"),c.setAttribute("in","SourceGraphic"),c.setAttribute("radius","0"),h.appendChild(c),n.appendChild(h),r.setAttribute("stroke","s"===f[s].mode?"#000000":"#ffffff")):(c=null,u=null),this.storedData[s]={elem:r,x:u,expan:c,lastPath:"",lastOperator:"",filterId:v,lastRadius:0},"i"===f[s].mode){l=p.length;var b=createNS("g");for(o=0;o<l;o+=1)b.appendChild(p[o]);var w=createNS("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",g+"_"+m),w.appendChild(r),n.appendChild(w),b.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+m+")"),p.length=0,p.push(b)}else p.push(r);f[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:r,lastPath:"",op:PropertyFactory.getProp(this.element,f[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[s],3),invRect:d},this.viewData[s].prop.k||this.drawPath(f[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=createNS(y),a=p.length,s=0;s<a;s+=1)this.maskElement.appendChild(p[s]);m>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(_,"url("+getLocationHref()+"#"+g+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,i=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<s;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),i=0;i<s;i+=1)t.multiply(this.hierarchy[i].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),e=1;e<t;e+=1){var s=this.localTransforms[e].matrix;i.multiply(s)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var r=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)r*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=r}}}
vendor: 4,313 bytes, line 2
2,searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,i=e.length;for(t=0;t<i;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var i,s=!0,r=this.comp;s;)r.finalTransform?(r.data.hasMask&&t.splice(0,0,r.finalTransform),r=r.comp):s=!1;var n,a=t.length;for(i=0;i<a;i+=1)n=t[i].mat.applyToPointArray(0,0,0),e=[e[0]-n[0],e[1]-n[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,i=this.element.finalTransform.mat,s=this.masksProperties.length;for(t=0;t<s;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var r=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),r.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,i){var s,r,n=" M"+t.v[0][0]+","+t.v[0][1];for(r=t._length,s=1;s<r;s+=1)n+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[s][0]+","+t.i[s][1]+" "+t.v[s][0]+","+t.v[s][1];if(t.c&&r>1&&(n+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),i.lastPath!==n){var a="";i.elem&&(t.c&&(a=e.inv?this.solidPath+n:n),i.elem.setAttribute("d",a)),i.lastPath=n}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var i=createNS("filter");return i.setAttribute("id",e),!0!==t&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,i,s="SourceGraphic",r=e.data.ef?e.data.ef.length:0,n=createElementID(),a=filtersFactory.createFilter(n,!0),o=0;for(this.filters=[],t=0;t<r;t+=1){i=null;var l=e.data.ef[t].ty;registeredEffects$1[l]&&(i=new(0,registeredEffects$1[l].effect)(a,e.effectsManager.effectElements[t],e,idPrefix+o,s),s=idPrefix+o,registeredEffects$1[l].countsAsEffect&&(o+=1)),i&&this.filters.push(i)}o&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+n+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,i){registeredEffects$1[e]={effect:t,countsAsEffect:i}}function SVGBaseElement(){}function HierarchyElement(){}
vendor: 13,640 bytes, line 2
2function RenderableDOMElement(){}function IImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,i=this.filters.length;for(t=0;t<i;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,i=this.filters.length,s=[];for(t=0;t<i;t+=1)this.filters[t].type===e&&s.push(this.filters[t]);return s},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var i=createNS("clipPath"),s=createNS("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var r=createElementID();if(i.setAttribute("id",r),i.appendChild(s),this.globalData.defs.appendChild(i),this.checkMasks()){var n=createNS("g");n.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")"),n.appendChild(this.layerElement),this.transformedElement=n,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,i,s,r,n=this.layerId+"_"+e;if(1===e||3===e){var a=createNS("mask");a.setAttribute("id",n),a.setAttribute("mask-type",3===e?"luminance":"alpha"),(s=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(s),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==e||(a.setAttribute("mask-type","luminance"),t=createElementID(),i=filtersFactory.createFilter(t),this.globalData.defs.appendChild(i),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(r=createNS("g")).appendChild(s),a.appendChild(r),r.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var o=createNS("mask");o.setAttribute("id",n),o.setAttribute("mask-type","alpha");var l=createNS("g");o.appendChild(l),t=createElementID(),i=filtersFactory.createFilter(t);var d=createNS("feComponentTransfer");d.setAttribute("in","SourceGraphic"),i.appendChild(d);var h=createNS("feFuncA");h.setAttribute("type","table"),h.setAttribute("tableValues","1.0 0.0"),d.appendChild(h),this.globalData.defs.appendChild(i);var c=createNS("rect");c.setAttribute("width",this.comp.data.w),c.setAttribute("height",this.comp.data.h),c.setAttribute("x","0"),c.setAttribute("y","0"),c.setAttribute("fill","#ffffff"),c.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),l.appendChild(c),(s=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(s),featureSupport.maskType||(o.setAttribute("mask-type","luminance"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),r=createNS("g"),l.appendChild(c),r.appendChild(this.layerElement),l.appendChild(r)),this.globalData.defs.appendChild(o)}this.matteMasks[e]=n}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initTransform(e,t,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,i=this.shapeModifiers.length;for(t=0;t<i;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,i=0,s=t.length;i<s;){if(t[i].elem===e)return t[i].pos;i+=1}return 0},addProcessedElement:function(e,t){for(var i=this.processedElements,s=i.length;s;)if(i[s-=1].elem===e)return void(i[s].pos=t);i.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,i){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=i,this.lvl=t,this._isAnimated=!!i.k;for(var s=0,r=e.length;s<r;){if(e[s].mProps.dynamicProperties.length){this._isAnimated=!0;break}s+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,i,s){var r;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(s);var n,a=t.length||0;for(r=0;r<a;r+=1)n=PropertyFactory.getProp(e,t[r].v,0,0,this),this.k=n.k||this.k,this.dataProps[r]={n:t[r].n,p:n};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=i}function SVGNoStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=i}function GradientProperty(e,t,i){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var s=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",s),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=s,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,i)}function SVGGradientStrokeStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,i),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,i){this.transform={mProps:e,op:t,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<i;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var i=0,s=this.o.length/2;i<s;){if(Math.abs(e[4*i]-e[4*t+2*i])>.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,i,s,r=4*this.data.p;for(t=0;t<r;t+=1)i=t%4==0?100:255,s=Math.round(this.prop.v[t]*i),this.c[t]!==s&&(this.c[t]=s,this._cmdf=!e);if(this.o.length)for(r=this.prop.v.length,t=4*this.data.p;t<r;t+=1)i=t%2==0?100:1,s=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==s&&(this.o[t-4*this.data.p]=s,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,i){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,t),this.setGradientOpacity(t,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var i=createElementID(),s=createNS(1===t.t?"linearGradient":"radialGradient");s.setAttribute("id",i),s.setAttribute("spreadMethod","pad"),s.setAttribute("gradientUnits","userSpaceOnUse");var r,n,a,o=[];for(a=4*t.g.p,n=0;n<a;n+=4)r=createNS("stop"),s.appendChild(r),o.push(r);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=s,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var i,s,r,n=createNS("mask"),a=createNS("path");n.appendChild(a);var o=createElementID(),l=createElementID();n.setAttribute("id",l);var d=createNS(1===e.t?"linearGradient":"radialGradient");d.setAttribute("id",o),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse"),r=e.g.k.k[
vendor: 7,318 bytes, line 2
20].s?e.g.k.k[0].s.length:e.g.k.k.length;var h=this.stops;for(s=4*e.g.p;s<r;s+=2)(i=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),d.appendChild(i),h.push(i);a.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),"gs"===e.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=d,this.ms=n,this.ost=h,this.maskId=l,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,i,s){if(0===t)return"";var r,n=e.o,a=e.i,o=e.v,l=" M"+s.applyToPointStringified(o[0][0],o[0][1]);for(r=1;r<t;r+=1)l+=" C"+s.applyToPointStringified(n[r-1][0],n[r-1][1])+" "+s.applyToPointStringified(a[r][0],a[r][1])+" "+s.applyToPointStringified(o[r][0],o[r][1]);return i&&t&&(l+=" C"+s.applyToPointStringified(n[r-1][0],n[r-1][1])+" "+s.applyToPointStringified(a[0][0],a[0][1])+" "+s.applyToPointStringified(o[0][0],o[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function i(e,t,i){(i||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(i||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function s(){}function r(i,s,r){var n,a,o,l,d,h,c,u,f,m,p=s.styles.length,g=s.lvl;for(h=0;h<p;h+=1){if(l=s.sh._mdf||r,s.styles[h].lvl<g){for(u=t.reset(),f=g-s.styles[h].lvl,m=s.transformers.length-1;!l&&f>0;)l=s.transformers[m].mProps._mdf||l,f-=1,m-=1;if(l)for(f=g-s.styles[h].lvl,m=s.transformers.length-1;f>0;)u.multiply(s.transformers[m].mProps.v),f-=1,m-=1}else u=e;if(a=(c=s.sh.paths)._length,l){for(o="",n=0;n<a;n+=1)(d=c.shapes[n])&&d._length&&(o+=buildShapeString(d,d._length,d.c,u));s.caches[h]=o}else o=s.caches[h];s.styles[h].d+=!0===i.hd?"":o,s.styles[h]._mdf=l||s.styles[h]._mdf}}function n(e,t,i){var s=t.style;(t.c._mdf||i)&&s.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||i)&&s.pElem.setAttribute("fill-opacity",t.o.v)}function a(e,t,i){o(e,t,i),l(0,t,i)}function o(e,t,i){var s,r,n,a,o,l=t.gf,d=t.g._hasOpacity,h=t.s.v,c=t.e.v;if(t.o._mdf||i){var u="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(u,t.o.v)}if(t.s._mdf||i){var f=1===e.t?"x1":"cx",m="x1"===f?"y1":"cy";l.setAttribute(f,h[0]),l.setAttribute(m,h[1]),d&&!t.g._collapsable&&(t.of.setAttribute(f,h[0]),t.of.setAttribute(m,h[1]))}if(t.g._cmdf||i){s=t.cst;var p=t.g.c;for(n=s.length,r=0;r<n;r+=1)(a=s[r]).setAttribute("offset",p[4*r]+"%"),a.setAttribute("stop-color","rgb("+p[4*r+1]+","+p[4*r+2]+","+p[4*r+3]+")")}if(d&&(t.g._omdf||i)){var g=t.g.o;for(n=(s=t.g._collapsable?t.cst:t.ost).length,r=0;r<n;r+=1)a=s[r],t.g._collapsable||a.setAttribute("offset",g[2*r]+"%"),a.setAttribute("stop-opacity",g[2*r+1])}if(1===e.t)(t.e._mdf||i)&&(l.setAttribute("x2",c[0]),l.setAttribute("y2",c[1]),d&&!t.g._collapsable&&(t.of.setAttribute("x2",c[0]),t.of.setAttribute("y2",c[1])));else if((t.s._mdf||t.e._mdf||i)&&(o=Math.sqrt(Math.pow(h[0]-c[0],2)+Math.pow(h[1]-c[1],2)),l.setAttribute("r",o),d&&!t.g._collapsable&&t.of.setAttribute("r",o)),t.s._mdf||t.e._mdf||t.h._mdf||t.a._mdf||i){o||(o=Math.sqrt(Math.pow(h[0]-c[0],2)+Math.pow(h[1]-c[1],2)));var y=Math.atan2(c[1]-h[1],c[0]-h[0]),_=t.h.v;_>=1?_=.99:_<=-1&&(_=-.99);var v=o*_,b=Math.cos(y+t.a.v)*v+h[0],w=Math.sin(y+t.a.v)*v+h[1];l.setAttribute("fx",b),l.setAttribute("fy",w),d&&!t.g._collapsable&&(t.of.setAttribute("fx",b),t.of.setAttribute("fy",w))}}function l(e,t,i){var s=t.style,r=t.d;r&&(r._mdf||i)&&r.dashStr&&(s.pElem.setAttribute("stroke-dasharray",r.dashStr),s.pElem.setAttribute("stroke-dashoffset",r.dashoffset[0])),t.c&&(t.c._mdf||i)&&s.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||i)&&s.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||i)&&(s.pElem.setAttribute("stroke-width",t.w.v),s.msElem&&s.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return n;case"gf":return o;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return r;case"tr":return i;case"no":return s;default:return null}}}}();function SVGShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,i),this.prevViewData=[]}function LetterProps(e,t,i,s,r,n){this.o=e,this.sw=t,this.sc=i,this.fc=s,this.m=r,this.p=n,this._mdf={o:!0,sw:!!t,sc:!!i,fc:!!s,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,i,s,r=this.shapes.length,n=this.stylesList.length,a=[],o=!1;for(i=0;i<n;i+=1){for(s=this.stylesList[i],o=!1,a.length=0,e=0;e<r;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(s)&&(a.push(t),o=t._isAnimated||o);a.length>1&&o&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,i=e.length;for(t=0;t<i;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var i,s=new SVGStyleData(e,t),r=s.pElem;return"st"===e.ty?i=new SVGStrokeStyleData(this,e,s):"fl"===e.ty?i=new SVGFillStyleData(this,e,s):"gf"===e.ty||"gs"===e.ty?(i=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,s),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),r.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))):"no"===e.ty&&(i=new SVGNoStyleData(this,e,s)),"st"!==e.ty&&"gs"!==e.ty||(r.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),r.setAttribute("fill-opacity","0"),1===e.lj&&r.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&r.setAttribute("fill-rule","evenodd"),e.ln&&r.setAttribute("id",e.ln),e.cl&&r.setAttribute("class",e.cl),e.bm&&(r.style["mix-blend-mode"]=getBlendM
vendor: 31,657 bytes, line 2
2ode(e.bm)),this.stylesList.push(s),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var i=TransformPropertyFactory.getTransformProperty(this,e,this),s=new SVGTransformData(i,i.o,t);return this.addToAnimatedContents(e,s),s},SVGShapeElement.prototype.createShapeElement=function(e,t,i){var s=4;"rc"===e.ty?s=5:"el"===e.ty?s=6:"sr"===e.ty&&(s=7);var r=new SVGShapeData(t,i,ShapePropertyFactory.getShapeProp(this,e,s,this));return this.shapes.push(r),this.addShapeToModifiers(r),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var i=0,s=this.animatedContents.length;i<s;){if(this.animatedContents[i].element===t)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,i=e.styles,s=this.stylesList.length;for(t=0;t<s;t+=1)-1!==i.indexOf(this.stylesList[t])||this.stylesList[t].closed||i.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,i,s,r,n,a){var o,l,d,h,c,u,f=[].concat(n),m=e.length-1,p=[],g=[];for(o=m;o>=0;o-=1){if((u=this.searchProcessedElement(e[o]))?t[o]=i[u-1]:e[o]._render=a,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty||"no"===e[o].ty)u?t[o].style.closed=e[o].hd:t[o]=this.createStyleElement(e[o],r),e[o]._render&&t[o].style.pElem.parentNode!==s&&s.appendChild(t[o].style.pElem),p.push(t[o].style);else if("gr"===e[o].ty){if(u)for(d=t[o].it.length,l=0;l<d;l+=1)t[o].prevViewData[l]=t[o].it[l];else t[o]=this.createGroupElement(e[o]);this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,t[o].gr,r+1,f,a),e[o]._render&&t[o].gr.parentNode!==s&&s.appendChild(t[o].gr)}else"tr"===e[o].ty?(u||(t[o]=this.createTransformElement(e[o],s)),h=t[o].transform,f.push(h)):"sh"===e[o].ty||"rc"===e[o].ty||"el"===e[o].ty||"sr"===e[o].ty?(u||(t[o]=this.createShapeElement(e[o],f,r)),this.setElementStyles(t[o])):"tm"===e[o].ty||"rd"===e[o].ty||"ms"===e[o].ty||"pb"===e[o].ty||"zz"===e[o].ty||"op"===e[o].ty?(u?(c=t[o]).closed=!1:((c=ShapeModifiers.getModifier(e[o].ty)).init(this,e[o]),t[o]=c,this.shapeModifiers.push(c)),g.push(c)):"rp"===e[o].ty&&(u?(c=t[o]).closed=!0:(c=ShapeModifiers.getModifier(e[o].ty),t[o]=c,c.init(this,e,o,t),this.shapeModifiers.push(c),a=!1),g.push(c));this.addProcessedElement(e[o],o+1)}for(m=p.length,o=0;o<m;o+=1)p[o].closed=!0;for(m=g.length,o=0;o<m;o+=1)g[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,i=this.animatedContents.length;for(e=0;e<i;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,i,s,r,n){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,a=!0),this.fc!==s&&(this.fc=s,this._mdf.fc=!0,a=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,a=!0),!n.length||this.p[0]===n[0]&&this.p[1]===n[1]&&this.p[4]===n[4]&&this.p[5]===n[5]&&this.p[12]===n[12]&&this.p[13]===n[13]||(this.p=n,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var s;this.lock=!0,this._mdf=!1;var r=this.effectsSequence.length,n=e||this.data.d.k[this.keysIndex].s;for(s=0;s<r;s+=1)n=i!==this.keysIndex?this.effectsSequence[s](n,n.t):this.effectsSequence[s](this.currentData,n.t);t!==n&&this.setCurrentData(n),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,i=0,s=e.length;i<=s-1&&!(i===s-1||e[i+1].t>t);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,i,s=[],r=0,n=e.length,a=!1,o=!1,l="";r<n;)a=o,o=!1,t=e.charCodeAt(r),l=e.charAt(r),FontManager.isCombinedCharacter(t)?a=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,r)?l=e.substr(r,14):(i=e.charCodeAt(r+1))>=56320&&i<=57343&&(FontManager.isModifier(t,i)?(l=e.substr(r,2),a=!0):l=FontManager.isFlagEmoji(e.substr(r,4))?e.substr(r,4):e.substr(r,2)):t>56319?(i=e.charCodeAt(r+1),FontManager.isVariationSelector(t)&&(a=!0)):FontManager.isZeroWidthJoiner(t)&&(a=!0,o=!0),a?(s[s.length-1]+=l,a=!1):s.push(l),r+=l.length;return s},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,i,s,r,n,a,o,l=this.elem.globalData.fontManager,d=this.data,h=[],c=0,u=d.m.g,f=0,m=0,p=0,g=[],y=0,_=0,v=l.getFontByName(e.f),b=0,w=getFontProperties(v);e.fWeight=w.weight,e.fStyle=w.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),i=e.finalText.length,e.finalLineHeight=e.lh;var T,M=e.tr/1e3*e.finalSize;if(e.sz)for(var S,L,k=!0,E=e.sz[0],D=e.sz[1];k;){S=0,y=0,i=(L=this.buildFinalText(e.t)).length,M=e.tr/1e3*e.finalSize;var x=-1;for(t=0;t<i;t+=1)T=L[t].charCodeAt(0),s=!1," "===L[t]?x=t:13!==T&&3!==T||(y=0,s=!0,S+=e.finalLineHeight||1.2*e.finalSize),l.chars?(o=l.getCharData(L[t],v.fStyle,v.fFamily),b=s?0:o.w*e.finalSize/100):b=l.measureText(L[t],e.f,e.finalSize),y+b>E&&" "!==L[t]?(-1===x?i+=1:t=x,S+=e.finalLineHeight||1.2*e.finalSize,L.splice(t,x===t?1:0,"\r"),x=-1,y=0):(y+=b,y+=M);S+=v.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&D<S?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=L,i=e.finalText.length,k=!1)}y=-M,b=0;var A,P=0;for(t=0;t<i;t+=1)if(s=!1,13===(T=(A=e.finalText[t]).charCodeAt(0))||3===T?(P=0,g.push(y),_=y>_?y:_,y=-2*M,r="",s=!0,p+=1):r=A,l.chars?(o=l.getCharData(A,v.fStyle,l.getFontByName(e.f).fFamily),b=s?0:o.w*e.finalSize/100):b=l.measureText(r,e.f,e.finalSize)," "===A?P+=b+M:(y+=b+M+P,P=0),h.push({l:b,an:b,add:f,n:s,anIndexes:[],val:r,line:p,animatorJustifyOffset:0}),2==u){if(f+=b,""===r||" "===r||t===i-1){for(""!==r&&" "!==r||(f-=b);m<=t;)h[m].an=f,h[m].ind=c,h[m].extra=b,m+=1;c+=1,f=0}}else if(3==u){if(f+=b,""===r||t===i-1){for(""===r&&(f-=b);m<=t;)h[m].an=f,h[m].ind=c,h[m].extra=b,m+=1;f=0,c+=1}}else h[c].ind=c,h[c].extra=0,c+=1;if(e.l=h,_=y>_?y:_,g.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=_,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var C,I,R,O,Y=d.a;a=Y.length;var F=[];for(n=0;n<a;n+=1){for((C=Y[n]).a.sc&&(e.strokeColorAnim=!0),C.a.sw&&(e.strokeWidthAnim=!0),(C.a.fc||C.a.fh||C.a.fs||C.a.fb)&&(e.fillColorAnim=!0),O=0,R=C.s.b,t=0;t<i;t+=1)(I=h[t]).anIndexes[n]=O,(1==R&&""!==I.val||2==R&&""!==I.val&&" "!==I.val||3==R&&(I.n||" "==I.val||t==i-1)||4==R&&(I.n||t==i-1))&&(1===C.s.rn&&F.push(O),O+=1);d.a[n].s.totalChars=O;var $,N=-1;if(1===C.s.rn)for(t=0;t<i;t+=1)N!=(I=h[t]).anIndexes[n]&&(N=I.anIndexes[n],$=F.splice(Math.floor(Math.random()*F.length),1)[0]),I.anIndexes[n]=$}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=v.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var i=this.copyData({},this.data.d.k[t].s);i=this.copyData(i,e),this.data.d.k[t].s=i,this.recalculate(t),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,i=Math.floor;function s(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return s.prototype={getMult:function(s){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var r=0,n=0,a=1,o=1;this.ne.v>0?r=this.ne.v/100:n=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(r,n,a,o).get,d=0,h=this.finalS,c=this.finalE,u=this.data.sh;if(2===u)d=l(d=c===h?s>=c?1:0:e(0,t(.5/(c-h)+(s-h)/(c-h),1)));else if(3===u)d=l(d=c===h?s>=c?0:1:1-e(0,t(.5/(c-h)+(s-h)/(c-h),1)));else if(4===u)c===h?d=0:(d=e(0,t(.5/(c-h)+(s-h)/(c-h),1)))<.5?d*=2:d=1-2*(d-.5),d=l(d);else if(5===u){if(c===h)d=0;else{var f=c-h,m=-f/2+(s=t(e(0,s+.5-h),c-h)),p=f/2;d=Math.sqrt(1-m*m/(p*p))}d=l(d)}else 6===u?(c===h?d=0:(s=t(e(0,s+.5-h),c-h),d=(1+Math.cos(Math.PI+2*Math.PI*s/(c-h)))/2),d=l(d)):(s>=i(h)&&(d=e(0,t(s-h<0?t(c,1)-(h-s):c-s,1))),d=l(d));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;d<y?d=0:(d=(d-y)/g)>1&&(d=1)}return d*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/t,s=this.s.v/t+i,r=this.e.v/t+i;if(s>r){var n=s;s=r,r=n}this.finalS=s,this.finalE=r}},extendPrototype([DynamicPropertyContainer],s),{getTextSelectorProp:function(e,t,i){return new s(e,t,i)}}}();function TextAnimatorDataProperty(e,t,i){var s={propType:!1},r=PropertyFactory.getProp,n=t.a;this.a={r:n.r?r(e,n.r,0,degToRads,i):s,rx:n.rx?r(e,n.rx,0,degToRads,i):s,ry:n.ry?r(e,n.ry,0,degToRads,i):s,sk:n.sk?r(e,n.sk,0,degToRads,i):s,sa:n.sa?r(e,n.sa,0,degToRads,i):s,s:n.s?r(e,n.s,1,.01,i):s,a:n.a?r(e,n.a,1,0,i):s,o:n.o?r(e,n.o,0,.01,i):s,p:n.p?r(e,n.p,1,0,i):s,sw:n.sw?r(e,n.sw,0,0,i):s,sc:n.sc?r(e,n.sc,1,0,i):s,fc:n.fc?r(e,n.fc,1,0,i):s,fh:n.fh?r(e,n.fh,0,0,i):s,fs:n.fs?r(e,n.fs,0,.01,i):s,fb:n.fb?r(e,n.fb,0,.01,i):s,t:n.t?r(e,n.t,0,0,i):s},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,i),this.s.t=t.s.t}function TextAnimatorProperty(e,t,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,i=this._textData.a.length,s=PropertyFactory.getProp;for(e=0;e<i;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:s(this._elem,this._textData.p.a,0,0,this),f:s(this._elem,this._textData.p.f,0,0,this),l:s(this._elem,this._textData.p.l,0,0,this),r:s(this._elem,this._textData.p.r,0,0,this),p:s(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=s(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,s,r,n,a,o,l,d,h,c,u,f,m,p,g,y,_,v,b,w=this._moreOptions.alignment.v,T=this._animatorsData,M=this._textData,S=this.mHelper,L=this._renderType,k=this.renderedLetters.length,E=e.l;if(this._hasMaskedPath){if(b=this._pathData.m,!this._pathData.n||this._pathData._mdf){var D,x=b.v;for(this._pathData.r.v&&(x=x.reverse()),a={tLength:0,segments:[]},n=x._length-1,y=0,r=0;r<n;r+=1)D=bez.buildBezierData(x.v[r],x.v[r+1],[x.o[r][0]-x.v[r][0],x.o[r][1]-x.v[r][1]],[x.i[r+1][0]-x.v[r+1][0],x.i[r+1][1]-x.v[r+1][1]]),a.tLength+=D.segmentLength,a.segments.push(D),y+=D.segmentLength;r=n,b.v.c&&(D=bez.buildBezierData(x.v[r],x.v[0],[x.o[r][0]-x.v[r][0],x.o[r][1]-x.v[r][1]],[x.i[0][0]-x.v[0][0],x.i[0][1]-x.v[0][1]]),a.tLength+=D.segmentLength,a.segments.push(D),y+=D.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,o=this._pathData.f.v,u=0,c=1,d=0,h=!0,p=a.segments,o<0&&b.v.c)for(a.tLength<Math.abs(o)&&(o=-Math.abs(o)%a.tLength),c=(m=p[u=p.length-1].points).length-1;o<0;)o+=m[c].partialLength,(c-=1)<0&&(c=(m=p[u-=1].points).length-1);f=(m=p[u].points)[c-1],g=(l=m[c]).partialLength}n=E.length,i=0,s=0;var A,P,C,I,R,O=1.2*e.finalSize*.714,Y=!0;C=T.length;var F,$,N,B,H,j,U,V,G,z,W,q,K=-1,J=o,X=u,Q=c,Z=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var ie=0,se=0,re=2===e.j?-.5:-1,ne=0,ae=!0;for(r=0;r<n;r+=1)if(E[r].n){for(ie&&(ie+=se);ne<r;)E[ne].animatorJustifyOffset=ie,ne+=1;ie=0,ae=!0}else{for(P=0;P<C;P+=1)(A=T[P].a).t.propType&&(ae&&2===e.j&&(se+=A.t.v*re),(R=T[P].s.getMult(E[r].anIndexes[P],M.a[P].s.totalChars)).length?ie+=A.t.v*R[0]*re:ie+=A.t.v*R*re);ae=!1}for(ie&&(ie+=se);ne<r;)E[ne].animatorJustifyOffset=ie,ne+=1}for(r=0;r<n;r+=1){if(S.reset(),B=1,E[r].n)i=0,s+=e.yOffset,s+=Y?1:0,o=J,Y=!1,this._hasMaskedPath&&(c=Q,f=(m=p[u=X].points)[c-1],g=(l=m[c]).partialLength,d=0),ee="",W="",G="",q="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Z!==E[r].line){switch(e.j){case 1:o+=y-e.lineWidths[E[r].line];break;case 2:o+=(y-e.lineWidths[E[r].line])/2}Z=E[r].line}K!==E[r].ind&&(E[K]&&(o+=E[K].extra),o+=E[r].an/2,K=E[r].ind),o+=w[0]*E[r].an*.005;var oe=0;for(P=0;P<C;P+=1)(A=T[P].a).p.propType&&((R=T[P].s.getMult(E[r].anIndexes[P],M.a[P].s.totalChars)).length?oe+=A.p.v[0]*R[0]:oe+=A.p.v[0]*R),A.a.propType&&((R=T[P].s.getMult(E[r].anIndexes[P],M.a[P].s.totalChars)).length?oe+=A.a.v[0]*R[0]:oe+=A.a.v[0]*R);for(h=!0,this._pathData.a.v&&(o=.5*E[0].an+(y-this._pathData.f.v-.5*E[0].an-.5*E[E.length-1].an)*K/(n-1),o+=this._pathData.f.v);h;)d+g>=o+oe||!m?(_=(o+oe-d)/l.partialLength,$=f.point[0]+(l.point[0]-f.point[0])*_,N=f.point[1]+(l.point[1]-f.point[1])*_,S.translate(-w[0]*E[r].an*.005,-w[1]*O*.01),h=!1):m&&(d+=l.partialLength,(c+=1)>=m.length&&(c=0,p[u+=1]?m=p[u].points:b.v.c?(c=0,m=p[u=0].points):(d-=l.partialLength,m=null)),m&&(f=l,g=(l=m[c]).partialLength));F=E[r].an/2-E[r].add,S.translate(-F,0,0)}else F=E[r].an/2-E[r].add,S.translate(-F,0,0),S.translate(-w[0]*E[r].an*.005,-w[1]*O*.01,0);for(P=0;P<C;P+=1)(A=T[P].a).t.propType&&(R=T[P].s.getMult(E[r].anIndexes[P],M.a[P].s.totalChars),0===i&&0===e.j||(this._hasMaskedPath?R.length?o+=A.t.v*R[0]:o+=A.t.v*R:R.length?i+=A.t.v*R[0]:i+=A.t.v*R));for(e.strokeWidthAnim&&(j=e.sw||0),e.strokeColorAnim&&(H=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(U=[e.fc[0],e.fc[1],e.fc[2]]),P=0;P<C;P+=1)(A=T[P].a).a.propType&&((R=T[P].s.getMult(E[r].anIndexes[P],M.a[P].s.totalChars)).length?S.translate(-A.a.v[0]*R[0],-A.a.v[1]*R[1],A.a.v[2]*R[2]):S.translate(-A.a.v[0]*R,-A.a.v[1]*R,A.a.v[2]*R));for(P=0;P<C;P+=1)(A=T[P].a).s.propType&&((R=T[P].s.getMult(E[r].anIndexes[P],M.a[P].s.totalChars)).length?S.scale(1+(A.s.v[0]-1)*R[0],1+(A.s.v[1]-1)*R[1],1):S.scale(1+(A.s.v[0]-1)*R,1+(A.s.v[1]-1)*R,1));for(P=0;P<C;P+=1){if(A=T[P].a,R=T[P].s.getMult(E[r].anIndexes[P],M.a[P].s.totalChars),A.sk.propType&&(R.length?S.skewFromAxis(-A.sk.v*R[0],A.sa.v*R[1]):S.skewFromAxis(-A.sk.v*R,A.sa.v*R)),A.r.propType&&(R.length?S.rotateZ(-A.r.v*R[2]):S.rotateZ(-A.r.v*R)),A.ry.propType&&(R.length?S.rotateY(A.ry.v*R[1]):S.rotateY(A.ry.v*R)),A.rx.propType&&(R.length?S.rotateX(A.rx.v*R[0]):S.rotateX(A.rx.v*R)),A.o.propType&&(R.length?B+=(A.o.v*R[0]-B)*R[0]:B+=(A.o.v*R-B)*R),e.strokeWidthAnim&&A.sw.propType&&(R.length?j+=A.sw.v*R[0]:j+=A.sw.v*R),e.strokeColorAnim&&A.sc.propType)for(V=0;V<3;V+=1)R.length?H[V]+=(A.sc.v[V]-H[V])*R[0]:H[V]+=(A.sc.v[V]-H[V])*R;if(e.fillColorAnim&&e.fc){if(A.fc.propType)for(V=0;V<3;V+=1)R.length?U[V]+=(A.fc.v[V]-U[V])*R[0]:U[V]+=(A.fc.v[V]-U[V])*R;A.fh.propType&&(U=R.length?addHueToRGB(U,A.fh.v*R[0]):addHueToRGB(U,A.fh.v*R)),A.fs.propType&&(U=R.length?addSaturationToRGB(U,A.fs.v*R[0]):addSaturationToRGB(U,A.fs.v*R)),A.fb.propType&&(U=R.length?addBrightnessToRGB(U,A.fb.v*R[0]):addBrightnessToRGB(U,A.fb.v*R))}}for(P=0;P<C;P+=1)(A=T[P].a).p.propType&&(R=T[P].s.getMult(E[r].anIndexes[P],M.a[P].s.totalChars),this._hasMaskedPath?R.length?S.translate(0,A.p.v[1]*R[0],-A.p.v[2]*R[1]):S.translate(0,A.p.v[1]*R,-A.p.v[2]*R):R.length?S.translate(A.p.v[0]*R[0],A.p.v[1]*R[1],-A.p.v[2]*R[2]):S.translate(A.p.v[0]*R,A.p.v[1]*R,-A.p.v[2]*R));if(e.strokeWidthAnim&&(G=j<0?0:j),e.strokeColorAnim&&(z="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),e.fillColorAnim&&e.fc&&(W="rgb("+Math.round(255*U[0])+","+Math.round(255*U[1])+","+Math.round(255*U[2])+")"),this._hasMaskedPath){if(S.translate(0,-e.ls),S.translate(0,w[1]*O*.01+s,0),this._pathData.p.v){v=(l.point[1]-f.point[1])/(l.point[0]-f.point[0]);var le=180*Math.atan(v)/Math.PI;l.point[0]<f.point[0]&&(le+=180),S.rotate(-le*Math.PI/180)}S.translate($,N,0),o-=w[0]*E[r].an*.005,E[r+1]&&K!==E[r+1].ind&&(o+=E[r].an/2,o+=.001*e.tr*e.finalSize)}else{switch(S.translate(i,s,0),e.ps&&S.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:S.translate(E[r].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[r].line]),0,0);break;case 2:S.translate(E[r].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[E[r].line])/2,0,0)}S.translate(0,-e.ls),S.translate(F,0,0),S.translate(w[0]*E[r].an*.005,w[1]*O*.01,0),i+=E[r].l+.001*e.tr*e.finalSize}"html"===L?ee=S.toCSS():"svg"===L?ee=S.to2dCSS():te=[S.props[0],S.props[1],S.props[2],S.props[3],S.props[4],S.props[5],S.props[6],S.props[7],S.props[8],S.props[9],S.props[10],S.props[11],S.props[12],S.props[13],S.props[14],S.props[15]],q=B}k<=r?(I=new LetterProps(q,G,z,W,ee,te),this.renderedLetters.push(I),k+=1,this.lettersChangedFlag=!0):(I=this.renderedLetters[r],this.lettersChangedFlag=I.update(q,G,z,W,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,i),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var i,s,r=t.length,n="";for(i=0;i<r;i+=1)"sh"===t[i].ty&&(s=t[i].ks.k,n+=buildShapeString(s,s.i.length,!0,e));return n},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,i,s,r){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i])/2,0,0)}t.translate(s,r,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,i){this.textSpans=[],this.renderType="svg",this.initElement(e,t,i)}function ISolidElement(e,t,i){this.initElement(e,t,i)}function NullElement(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initFrame(),this.initTransform(e,t,i),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,i){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(t&&t.title){var s=createNS("title"),r=createElementID();s.setAttribute("id",r),s.textContent=t.title,this.svgElement.appendChild(s),i+=r}if(t&&t.description){var n=createNS("desc"),a=createElementID();n.setAttribute("id",a),n.textContent=t.description,this.svgElement.appendChild(n),i+=" "+a}i&&this.svgElement.setAttribute("aria-labelledby",i);var o=createNS("defs");this.svgElement.appendChild(o);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,i=e.length,s=[],r="";t<i;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(s.push(r),r=""):r+=e[t],t+=1;return s.push(r),s},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var i=e.shapes[0];if(i.it){var s=i.it[i.it.length-1];s.s&&(s.s.k[0]=t,s.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var s=this.globalData.fontManager.getFontByName(i.f);if(s.fClass)this.layerElement.setAttribute("class",s.fClass);else{this.layerElement.setAttribute("font-family",s.fFamily);var r=i.fWeight,n=i.fStyle;this.layerElement.setAttribute("font-style",n),this.layerElement.setAttribute("font-weight",r)}this.layerElement.setAttribute("aria-label",i.t);var a,o=i.l||[],l=!!this.globalData.fontManager.chars;t=o.length;var d=this.mHelper,h=this.data.singleShape,c=0,u=0,f=!0,m=.001*i.tr*i.finalSize;if(!h||l||i.sz){var p,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!h||0===e){if(a=g>e?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=a,l){var y=createNS("g");a.appendChild(y),this.textSpans[e].childSpan=y}this.textSpans[e].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(d.reset(),h&&(o[e].n&&(c=-m,u+=i.yOffset,u+=f?1:0,f=!1),this.applyTextPropertiesToMatrix(i,d,o[e].line,c,u),c+=o[e].l||0,c+=m),l){var _;if(1===(p=this.globalData.fontManager.getCharData(i.finalText[e],s.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t)_=new SVGCompElement(p.data,this.globalData,this);else{var v=emptyShapeData;p.data&&p.data.shapes&&(v=this.buildShapeData(p.data,i.finalSize)),_=new SVGShapeElement(v,this.globalData,this)}if(this.textSpans[e].glyph){var b=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(b.layerElement),b.destroy()}this.textSpans[e].glyph=_,_._debug=!0,_.prepareFrame(0),_.renderFrame(),this.textSpans[e].childSpan.appendChild(_.layerElement),1===p.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else h&&a.setAttribute("transform","translate("+d.props[12]+","+d.props[13]+")"),a.textContent=o[e].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}h&&a&&a.setAttribute("d","")}else{var w=this.textContainer,T="start";switch(i.j){case 1:T="end";break;case 2:T="middle";break;default:T="start"}w.setAttribute("text-anchor",T),w.setAttribute("letter-spacing",m);var M=this.buildTextContents(i.finalText);for(t=M.length,u=i.ps?i.ps[1]+i.ascent:0,e=0;e<t;e+=1)(a=this.textSpans[e].span||createNS("tspan")).textContent=M[e],a.setAttribute("x",0),a.setAttribute("y",u),a.style.display="inherit",w.appendChild(a),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=a,u+=i.finalLineHeight;this.layerElement.appendChild(w)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<i;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var i,s,r,n=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(t=a.length,e=0;e<t;e+=1)a[e].n||(i=n[e],s=this.textSpans[e].span,(r=this.textSpans[e].glyph)&&r.renderFrame(),i._mdf.m&&s.setAttribute("transform",i.m),i._mdf.o&&s.setAttribute("opacity",i.o),i._mdf.sw&&s.setAttribute("stroke-width",i.sw),i._mdf.sc&&s.setAttribute("stroke",i.sc),i._mdf.fc&&s.setAttribute("fill",i.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,
20,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var i=createNS("clipPath"),s=createNS("rect");s.setAttribute("width",e.w),s.setAttribute("height",e.h),s.setAttribute("x",0),s.setAttribute("y",0);var r=createElementID();i.setAttribute("id",r),i.appendChild(s),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")"),t.appendChild(i),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,i=this.layers.length;for(t=0;t<i;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var i=this.createItem(this.layers[e]);if(t[e]=i,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,e),this.layers[e].tt){var s="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===s)return;if(this.elements[s]&&!0!==this.elements[s]){var r=t[s].getMatte(this.layers[e].tt);i.setMatte(r)}else this.buildItem(s),this.addPendingElement(i)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,i=this.elements.length;t<i;){if(this.elements[t]===e){var s="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,r=this.elements[s].getMatte(this.layers[t].tt);e.setMatte(r);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var i=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=i-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<i;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var i=e.getBaseElement();if(i){for(var s,r=0;r<t;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(s=this.elements[r].getBaseElement()),r+=1;s?this.layerElement.insertBefore(i,s):this.layerElement.appendChild(i)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initTransform(e,t,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var i,s=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=s-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,i=e.length,s="_";for(t=0;t<i;t+=1)s+=e[t].transform.key+"_";var r=this.sequences[s];return r||(r={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[s]=r,this.sequenceList.push(r)),r},processSequence:function(e,t){for(var i=0,s=e.transforms.length,r=t;i<s&&!t;){if(e.transforms[i].transform.mProps._mdf){r=!0;break}i+=1}if(r)for(e.finalTransform.reset(),i=s-1;i>=0;i-=1)e.finalTransform.multiply(e.transforms[i].transform.mProps.v);e._mdf=r},processSequences:function(e){var t,i=this.sequenceList.length;for(t=0;t<i;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,i=null,
vendor: 6,077 bytes, line 2
2s=null;function r(){var r,n,a;t||(r=createNS("svg"),n=createNS("filter"),a=createNS("feColorMatrix"),n.setAttribute("id",e),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),n.appendChild(a),r.appendChild(n),r.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(r.style.display="none"),s=r,document.body.appendChild(s),t=createTag("canvas"),(i=t.getContext("2d")).filter="url(#"+e+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}return{load:r,get:function(s){return t||r(),t.width=s.width,t.height=s.height,i.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var i=createTag("canvas");return i.width=e,i.height=t,i}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(e){var t,i,s=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<s;t+=1){i=null;var r=e.data.ef[t].ty;registeredEffects[r]&&(i=new(0,registeredEffects[r].effect)(e.effectsManager.effectElements[t],e)),i&&this.filters.push(i)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var i;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var s=this.masksProperties.length,r=!1;for(i=0;i<s;i+=1)"n"!==this.masksProperties[i].mode&&(r=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=r,r&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,i=this.filters.length;for(t=0;t<i;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,i=this.filters.length,s=[];for(t=0;t<i;t+=1)this.filters[t].type===e&&s.push(this.filters[t]);return s},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,i,s,r=this.element.finalTransform.mat,n=this.element.canvasContext,a=this.masksProperties.length;for(n.beginPath(),e=0;e<a;e+=1)if("n"!==this.masksProperties[e].mode){var o;this.masksProperties[e].inv&&(n.moveTo(0,0),n.lineTo(this.element.globalData.compSize.w,0),n.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),n.lineTo(0,this.element.globalData.compSize.h),n.lineTo(0,0)),s=this.viewData[e].v,t=r.applyToPointArray(s.v[0][0],s.v[0][1],0),n.moveTo(t[0],t[1]);var l=s._length;for(o=1;o<l;o+=1)i=r.applyToTriplePoints(s.o[o-1],s.i[o],s.v[o]),n.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);i=r.applyToTriplePoints(s.o[o-1],s.i[0],s.v[0]),n.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])}this.element.globalData.renderer.save(!0),n.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,i,s){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r,n=4;"rc"===t.ty?n=5:"el"===t.ty?n=6:"sr"===t.ty&&(n=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,n,e);var a,o=i.length;for(r=0;r<o;r+=1)i[r].closed||(a={transforms:s.addTransformSequence(i[r].transforms),trNodes:[]},this.styledShapes.push(a),i[r].elements.push(a))}function CVShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,i)}function CVTextElement(e,t,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,i)}function CVImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,i)}function CVSolidElement(e,t,i){this.initElement(e,t,i)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,i){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=ne
vendor: 27,925 bytes, line 2
2w Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,i){this.initElement(e,t,i)}function HShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,i)}function HCameraElement(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initHierarchy();var s=PropertyFactory.getProp;if(this.pe=s(this,e.pe,0,0,this),e.ks.p.s?(this.px=s(this,e.ks.p.x,1,0,this),this.py=s(this,e.ks.p.y,1,0,this),this.pz=s(this,e.ks.p.z,1,0,this)):this.p=s(this,e.ks.p,1,0,this),e.ks.a&&(this.a=s(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var r,n=e.ks.or.k.length;for(r=0;r<n;r+=1)e.ks.or.k[r].to=null,e.ks.or.k[r].ti=null}this.or=s(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=s(this,e.ks.rx,0,degToRads,this),this.ry=s(this,e.ks.ry,0,degToRads,this),this.rz=s(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,i)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,i){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var i=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var i=assetLoader.getLumaCanvas(this.canvasContext.canvas);i.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(i,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var i={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},s={};if("fl"===e.ty||"st"===e.ty?(s.c=PropertyFactory.getProp(this,e.c,1,255,this),s.c.k||(i.co="rgb("+bmFloor(s.c.v[0])+","+bmFloor(s.c.v[1])+","+bmFloor(s.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(s.s=PropertyFactory.getProp(this,e.s,1,null,this),s.e=PropertyFactory.getProp(this,e.e,1,null,this),s.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),s.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),s.g=new GradientProperty(this,e.g,this)),s.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(i.lc=lineCapEnum[e.lc||2],i.lj=lineJoinEnum[e.lj||2],1==e.lj&&(i.ml=e.ml),s.w=PropertyFactory.getProp(this,e.w,0,null,this),s.w.k||(i.wi=s.w.v),e.d){var r=new DashProperty(this,e.d,"canvas",this);s.d=r,s.d.k||(i.da=s.d.dashArray,i.do=s.d.dashoffset[0])}}else i.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(i),s.style=i,s},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,i=this.stylesList.length;for(t=0;t<i;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,i=e.length;for(t=0;t<i;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,i,s,r){var n,a,o,l,d,h,c=e.length-1,u=[],f=[],m=[].concat(r);for(n=c;n>=0;n-=1){if((l=this.searchProcessedElement(e[n]))?t[n]=i[l-1]:e[n]._shouldRender=s,"fl"===e[n].ty||"st"===e[n].ty||"gf"===e[n].ty||"gs"===e[n].ty)l?t[n].style.closed=!1:t[n]=this.createStyleElement(e[n],m),u.push(t[n].style);else if("gr"===e[n].ty){if(l)for(o=t[n].it.length,a=0;a<o;a+=1)t[n].prevViewData[a]=t[n].it[a];else t[n]=this.createGroupElement(e[n]);this.searchShapes(e[n].it,t[n].it,t[n].prevViewData,s,m)}else"tr"===e[n].ty?(l||(h=this.createTransformElement(e[n]),t[n]=h),m.push(t[n]),this.addTransformToStyleList(t[n])):"sh"===e[n].ty||"rc"===e[n].ty||"el"===e[n].ty||"sr"===e[n].ty?l||(t[n]=this.createShapeElement(e[n])):"tm"===e[n].ty||"rd"===e[n].ty||"pb"===e[n].ty||"zz"===e[n].ty||"op"===e[n].ty?(l?(d=t[n]).closed=!1:((d=ShapeModifiers.getModifier(e[n].ty)).init(this,e[n]),t[n]=d,this.shapeModifiers.push(d)),f.push(d)):"rp"===e[n].ty&&(l?(d=t[n]).closed=!0:(d=ShapeModifiers.getModifier(e[n].ty),t[n]=d,d.init(this,e,n,t),this.shapeModifiers.push(d),s=!1),f.push(d));this.addProcessedElement(e[n],n+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),c=f.length,n=0;n<c;n+=1)f[n].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,i,s,r,n,a,o,l,d=this.stylesList.length,h=this.globalData.renderer,c=this.globalData.canvasContext;for(e=0;e<d;e+=1)if(("st"!==(o=(l=this.stylesList[e]).type)&&"gs"!==o||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(h.save(),n=l.elements,"st"===o||"gs"===o?(h.ctxStrokeStyle("st"===o?l.co:l.grd),h.ctxLineWidth(l.wi),h.ctxLineCap(l.lc),h.ctxLineJoin(l.lj),h.ctxMiterLimit(l.ml||0)):h.ctxFillStyle("fl"===o?l.co:l.grd),h.ctxOpacity(l.coOp),"st"!==o&&"gs"!==o&&c.beginPath(),h.ctxTransform(l.preTransforms.finalTransform.props),i=n.length,t=0;t<i;t+=1){for("st"!==o&&"gs"!==o||(c.beginPath(),l.da&&(c.setLineDash(l.da),c.lineDashOffset=l.do)),r=(a=n[t].trNodes).length,s=0;s<r;s+=1)"m"===a[s].t?c.moveTo(a[s].p[0],a[s].p[1]):"c"===a[s].t?c.bezierCurveTo(a[s].pts[0],a[s].pts[1],a[s].pts[2],a[s].pts[3],a[s].pts[4],a[s].pts[5]):c.closePath();"st"!==o&&"gs"!==o||(h.ctxStroke(),l.da&&c.setLineDash(this.dashResetter))}"st"!==o&&"gs"!==o&&this.globalData.renderer.ctxFill(l.r),h.restore()}},CVShapeElement.prototype.renderShape=function(e,t,i,s){var r,n;for(n=e,r=t.length-1;r>=0;r-=1)"tr"===t[r].ty?(n=i[r].transform,this.renderShapeTransform(e,n)):"sh"===t[r].ty||"el"===t[r].ty||"rc"===t[r].ty||"sr"===t[r].ty?this.renderPath(t[r],i[r]):"fl"===t[r].ty?this.renderFill(t[r],i[r],n):"st"===t[r].ty?this.renderStroke(t[r],i[r],n):"gf"===t[r].ty||"gs"===t[r].ty?this.renderGradientFill(t[r],i[r],n):"gr"===t[r].ty?this.renderShape(n,t[r].it,i[r].it):t[r].ty;s&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var i,s,r,n=e.trNodes,a=t.paths,o=a._length;n.length=0;var l=e.transforms.finalTransform;for(r=0;r<o;r+=1){var d=a.shapes[r];if(d&&d.v){for(s=d._length,i=1;i<s;i+=1)1===i&&n.push({t:"m",p:l.applyToPointArray(d.v[0][0],d.v[0][1],0)}),n.push({t:"c",pts:l.applyToTriplePoints(d.o[i-1],d.i[i],d.v[i])});1===s&&n.push({t:"m",p:l.applyToPointArray(d.v[0][0],d.v[0][1],0)}),d.c&&s&&(n.push({t:"c",pts:l.applyToTriplePoints(d.o[i-1],d.i[0],d.v[0])}),n.push({t:"z"}))}}e.trNodes=n}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var i,s=t.styledShapes.length;for(i=0;i<s;i+=1)this.renderStyledShape(t.styledShapes[i],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,i){var s=t.style;(t.c._mdf||this._isFirstFrame)&&(s.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||i._opMdf||this._isFirstFrame)&&(s.coOp=t.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,i){var s,r=t.style;if(!r.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var n,a=this.globalData.canvasContext,o=t.s.v,l=t.e.v;if(1===e.t)s=a.createLinearGradient(o[0],o[1],l[0],l[1]);else{var d=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),h=Math.atan2(l[1]-o[1],l[0]-o[0]),c=t.h.v;c>=1?c=.99:c<=-1&&(c=-.99);var u=d*c,f=Math.cos(h+t.a.v)*u+o[0],m=Math.sin(h+t.a.v)*u+o[1];s=a.createRadialGradient(f,m,0,o[0],o[1],d)}var p=e.g.p,g=t.g.c,y=1;for(n=0;n<p;n+=1)t.g._hasOpacity&&t.g._collapsable&&(y=t.g.o[2*n+1]),s.addColorStop(g[4*n]/100,"rgba("+g[4*n+1]+","+g[4*n+2]+","+g[4*n+3]+","+y+")");r.grd=s}r.coOp=t.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(e,t,i){var s=t.style,r=t.d;r&&(r._mdf||this._isFirstFrame)&&(s.da=r.dashArray,s.do=r.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(s.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||i._opMdf||this._isFirstFrame)&&(s.coOp=t.o.v*i.opacity),(t.w._mdf||this._isFirstFrame)&&(s.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var i=!1;e.sc&&(i=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var s,r,n,a,o,l,d,h,c,u,f,m,p=this.globalData.fontManager.getFontByName(e.f),g=e.l,y=this.mHelper;this.stroke=i,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,r=e.finalText.length;var _=this.data.singleShape,v=.001*e.tr*e.finalSize,b=0,w=0,T=!0,M=0;for(s=0;s<r;s+=1){a=(n=this.globalData.fontManager.getCharData(e.finalText[s],p.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&n.data||{},y.reset(),_&&g[s].n&&(b=-v,w+=e.yOffset,w+=T?1:0,T=!1),c=(d=a.shapes?a.shapes[0].it:[]).length,y.scale(e.finalSize/100,e.finalSize/100),_&&this.applyTextPropertiesToMatrix(e,y,g[s].line,b,w),f=createSizedArray(c-1);var S=0;for(h=0;h<c;h+=1)if("sh"===d[h].ty){for(l=d[h].ks.k.i.length,u=d[h].ks.k,m=[],o=1;o<l;o+=1)1===o&&m.push(y.applyToX(u.v[0][0],u.v[0][1],0),y.applyToY(u.v[0][0],u.v[0][1],0)),m.push(y.applyToX(u.o[o-1][0],u.o[o-1][1],0),y.applyToY(u.o[o-1][0],u.o[o-1][1],0),y.applyToX(u.i[o][0],u.i[o][1],0),y.applyToY(u.i[o][0],u.i[o][1],0),y.applyToX(u.v[o][0],u.v[o][1],0),y.applyToY(u.v[o][0],u.v[o][1],0));m.push(y.applyToX(u.o[o-1][0],u.o[o-1][1],0),y.applyToY(u.o[o-1][0],u.o[o-1][1],0),y.applyToX(u.i[0][0],u.i[0][1],0),y.applyToY(u.i[0][0],u.i[0][1],0),y.applyToX(u.v[0][0],u.v[0][1],0),y.applyToY(u.v[0][0],u.v[0][1],0)),f[S]=m,S+=1}_&&(b+=g[s].l,b+=v),this.textSpans[M]?this.textSpans[M].elem=f:this.textSpans[M]={elem:f},M+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,i,s,r,n;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var a,o=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;t=l.length;var d,h,c=null,u=null,f=null,m=this.globalData.renderer;for(e=0;e<t;e+=1)if(!l[e].n){if((a=o[e])&&(m.save(),m.ctxTransform(a.p),m.ctxOpacity(a.o)),this.fill){for(a&&a.fc?c!==a.fc&&(m.ctxFillStyle(a.fc),c=a.fc):c!==this.values.fill&&(c=this.values.fill,m.ctxFillStyle(this.values.fill)),s=(d=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(n=(h=d[i]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),r=2;r<n;r+=6)this.globalData.canvasContext.bezierCurveTo(h[r],h[r+1],h[r+2],h[r+3],h[r+4],h[r+5]);this.globalData.canvasContext.closePath(),m.ctxFill()}if(this.stroke){for(a&&a.sw?f!==a.sw&&(f=a.sw,m.ctxLineWidth(a.sw)):f!==this.values.sWidth&&(f=this.values.sWidth,m.ctxLineWidth(this.values.sWidth)),a&&a.sc?u!==a.sc&&(u=a.sc,m.ctxStrokeStyle(a.sc)):u!==this.values.stroke&&(u=this.values.stroke,m.ctxStrokeStyle(this.values.stroke)),s=(d=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(n=(h=d[i]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),r=2;r<n;r+=6)this.globalData.canvasContext.bezierCurveTo(h[r],h[r+1],h[r+2],h[r+3],h[r+4],h[r+5]);this.globalData.canvasContext.closePath(),m.ctxStroke()}a&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,i,s=e.getContext("2d"),r=this.img.width,n=this.img.height,a=r/n,o=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>o&&"xMidYMid slice"===l||a<o&&"xMidYMid slice"!==l?t=(i=n)*o:i=(t=r)/o,s.drawImage(this.img,(r-t)/2,(n-i)/2,t,i,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,i,s){this.canvasContext.fillRect(e,t,i,s)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var i="0px 0px 0px";t.transformOrigin=i,t.mozTransformOrigin=i,t.webkitTransformOrigin=i,t["-webkit-transform"]=i,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var i,s,r,n;if(this.reset(),e?(i=e,s=t,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=s):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,s=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=s*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var a=this.renderConfig.preserveAspectRatio.split(" "),o=a[1]||"meet",l=a[0]||"xMidYMid",d=l.substr(0,4),h=l.substr(4);r=i/s,(n=this.transformCanvas.w/this.transformCanvas.h)>r&&"meet"===o||n<r&&"slice"===o?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=s/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=s/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===d&&(n<r&&"meet"===o||n>r&&"slice"===o)?(i-this.transformCanvas.w*(s/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===d&&(n<r&&"meet"===o||n>r&&"slice"===o)?(i-this.transformCanvas.w*(s/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===h&&(n>r&&"meet"===o||n<r&&"slice"===o)?(s-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===h&&(n>r&&"meet"===o||n<r&&"slice"===o)?(s-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=s/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var i;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var s=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=s-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=s-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();
vendor: 28,841 bytes, line 2
2!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var i=this.createItem(this.layers[e],this,this.globalData);t[e]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,i=this.stack[this.cArrPos],s=i.transform,r=this.cTr.props;for(t=0;t<16;t+=1)r[t]=s[t];if(e){this.nativeContext.restore();var n=this.stack[this.cArrPos+1];this.appliedFillStyle=n.fillStyle,this.appliedStrokeStyle=n.strokeStyle,this.appliedLineWidth=n.lineWidth,this.appliedLineCap=n.lineCap,this.appliedLineJoin=n.lineJoin,this.appliedMiterLimit=n.miterLimit}this.nativeContext.setTransform(s[0],s[1],s[4],s[5],s[12],s[13]),(e||-1!==i.opacity&&this.currentOpacity!==i.opacity)&&(this.nativeContext.globalAlpha=i.opacity,this.currentOpacity=i.opacity),this.currentFillStyle=i.fillStyle,this.currentStrokeStyle=i.strokeStyle,this.currentLineWidth=i.lineWidth,this.currentLineCap=i.lineCap,this.currentLineJoin=i.lineJoin,this.currentMiterLimit=i.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var i,s=this.stack[this.cArrPos];for(i=0;i<16;i+=1)s.transform[i]=t[i];this.cArrPos+=1;var r=this.stack[this.cArrPos];r.opacity=s.opacity,r.fillStyle=s.fillStyle,r.strokeStyle=s.strokeStyle,r.lineWidth=s.lineWidth,r.lineCap=s.lineCap,r.lineJoin=s.lineJoin,r.miterLimit=s.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var i=t.props;this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,i,s){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,i,s)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var i,s=e.length;for(i=0;i<s;i+=1)t=e[i].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var i,s,r,n,a,o=e.sh.v,l=e.transformers,d=o._length;if(!(d<=1)){for(i=0;i<d-1;i+=1)s=this.getTransformedPoint(l,o.v[i]),r=this.getTransformedPoint(l,o.o[i]),n=this.getTransformedPoint(l,o.i[i+1]),a=this.getTransformedPoint(l,o.v[i+1]),this.checkBounds(s,r,n,a,t);o.c&&(s=this.getTransformedPoint(l,o.v[i]),r=this.getTransformedPoint(l,o.o[i]),n=this.getTransformedPoint(l,o.i[0]),a=this.getTransformedPoint(l,o.v[0]),this.checkBounds(s,r,n,a,t))}},HShapeElement.prototype.checkBounds=function(e,t,i,s,r){this.getBoundsOfCurve(e,t,i,s);var n=this.shapeBoundingBox;r.x=bmMin(n.left,r.x),r.xMax=bmMax(n.right,r.xMax),r.y=bmMin(n.top,r.y),r.yMax=bmMax(n.bottom,r.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,i,s){for(var r,n,a,o,l,d,h,c=[[e[0],s[0]],[e[1],s[1]]],u=0;u<2;++u)n=6*e[u]-12*t[u]+6*i[u],r=-3*e[u]+9*t[u]-9*i[u]+3*s[u],a=3*t[u]-3*e[u],n|=0,a|=0,0==(r|=0)&&0===n||(0===r?(o=-a/n)>0&&o<1&&c[u].push(this.calculateF(o,e,t,i,s,u)):(l=n*n-4*a*r)>=0&&((d=(-n+bmSqrt(l))/(2*r))>0&&d<1&&c[u].push(this.calculateF(d,e,t,i,s,u)),(h=(-n-bmSqrt(l))/(2*r))>0&&h<1&&c[u].push(this.calculateF(h,e,t,i,s,u))));this.shapeBoundingBox.left=bmMin.apply(null,c[0]),this.shapeBoundingBox.top=bmMin.apply(null,c[1]),this.shapeBoundingBox.right=bmMax.apply(null,c[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,c[1])},HShapeElement.prototype.calculateF=function(e,t,i,s,r,n){return bmPow(1-e,3)*t[n]+3*bmPow(1-e,2)*e*i[n]+3*(1-e)*bmPow(e,2)*s[n]+bmPow(e,3)*r[n]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var i,s=e.length;for(i=0;i<s;i+=1)e[i]&&e[i].sh?this.calculateShapeBoundingBox(e[i],t):e[i]&&e[i].it?this.calculateBoundingBox(e[i].it,t):e[i]&&e[i].style&&e[i].w&&this.expandStrokeBoundingBox(e[i].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var i=0;if(e.keyframes){for(var s=0;s<e.keyframes.length;s+=1){var r=e.keyframes[s].s;r>i&&(i=r)}i*=e.mult}else i=e.v*e.mult;t.x-=i,t.xMax+=i,t.y-=i,t.yMax+=i},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var i=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),i=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),i=!0),i||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var s=this.shapeCont.style,r="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";s.transform=r,s.webkitTransform=r}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,i=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=i,t.color=i,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var s,r,n=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",n.fClass)this.innerElem.className=n.fClass;else{t.fontFamily=n.fFamily;var a=e.fWeight,o=e.fStyle;t.fontStyle=o,t.fontWeight=a}var l,d,h,c=e.l;r=c.length;var u,f=this.mHelper,m="",p=0;for(s=0;s<r;s+=1){if(this.globalData.fontManager.chars?(this.textPaths[p]?l=this.textPaths[p]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[p]?h=(d=this.textSpans[p]).children[0]:((d=createTag("div")).style.lineHeight=0,(h=createNS("svg")).appendChild(l),styleDiv(d)))):this.isMasked?l=this.textPaths[p]?this.textPaths[p]:createNS("text"):this.textSpans[p]?(d=this.textSpans[p],l=this.textPaths[p]):(styleDiv(d=createTag("span")),styleDiv(l=createTag("span")),d.appendChild(l)),this.globalData.fontManager.chars){var g,y=this.globalData.fontManager.getCharData(e.finalText[s],n.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=y?y.data:null,f.reset(),g&&g.shapes&&g.shapes.length&&(u=g.shapes[0].it,f.scale(e.finalSize/100,e.finalSize/100),m=this.createPathShape(f,u),l.setAttribute("d",m)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(d),g&&g.shapes){document.body.appendChild(h);var _=h.getBBox();h.setAttribute("width",_.width+2),h.setAttribute("height",_.height+2),h.setAttribute("viewBox",_.x-1+" "+(_.y-1)+" "+(_.width+2)+" "+(_.height+2));var v=h.style,b="translate("+(_.x-1)+"px,"+(_.y-1)+"px)";v.transform=b,v.webkitTransform=b,c[s].yOffset=_.y-1}else h.setAttribute("width",1),h.setAttribute("height",1);d.appendChild(h)}}else if(l.textContent=c[s].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(d);var w=l.style,T="translate3d(0,"+-e.finalSize/1.2+"px,0)";w.transform=T,w.webkitTransform=T}this.isMasked?this.textSpans[p]=l:this.textSpans[p]=d,this.textSpans[p].style.display="block",this.textPaths[p]=l,p+=1}for(;p<this.textSpans.length;)this.textSpans[p].style.display="none",p+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var i,s,r,n,a,o=0,l=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;for(s=d.length,i=0;i<s;i+=1)d[i].n?o+=1:(n=this.textSpans[i],a=this.textPaths[i],r=l[o],o+=1,r._mdf.m&&(this.isMasked?n.setAttribute("transform",r.m):(n.style.webkitTransform=r.m,n.style.transform=r.m)),n.style.opacity=r.o,r.sw&&r._mdf.sw&&a.setAttribute("stroke-width",r.sw),r.sc&&r._mdf.sc&&a.setAttribute("stroke",r.sc),r.fc&&r._mdf.fc&&(a.setAttribute("fill",r.fc),a.style.color=r.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var h=this.innerElem.getBBox();if(this.currentBBox.w!==h.width&&(this.currentBBox.w=h.width,this.svgElement.setAttribute("width",h.width)),this.currentBBox.h!==h.height&&(this.currentBBox.h=h.height,this.svgElement.setAttribute("height",h.height)),this.currentBBox.w!==h.width+2||this.currentBBox.h!==h.height+2||this.currentBBox.x!==h.x-1||this.currentBBox.y!==h.y-1){this.currentBBox.w=h.width+2,this.currentBBox.h=h.height+2,this.currentBBox.x=h.x-1,this.currentBBox.y=h.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var c="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=c,e.webkitTransform=c}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,i,s,r=this.comp.threeDElements.length;for(e=0;e<r;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){i=t.perspectiveElem.style,s=t.container.style;var n=this.pe.v+"px",a="0px 0px 0px",o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=n,i.webkitPerspective=n,s.transformOrigin=a,s.mozTransformOrigin=a,s.webkitTransformOrigin=a,i.transform=o,i.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,i=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)i=this.hierarchy[e].finalTransform.mProp._mdf||i;if(i||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var s=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-s.p.v[0],-s.p.v[1],s.p.v[2]),this.mat.rotateX(-s.or.v[0]).rotateY(-s.or.v[1]).rotateZ(s.or.v[2]),this.mat.rotateX(-s.rx.v).rotateY(-s.ry.v).rotateZ(s.rz.v),this.mat.scale(1/s.s.v[0],1/s.s.v[1],1/s.s.v[2]),this.mat.translate(s.a.v[0],s.a.v[1],s.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var r;r=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var n=Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),a=[r[0]/n,r[1]/n,r[2]/n],o=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],o),d=Math.atan2(a[0],-a[2]);this.mat.rotateY(d).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var h=!this._prevMat.equals(this.mat);if((h||this.pe._mdf)&&this.comp.threeDElements){var c,u,f;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(c=this.comp.threeDElements[e]).type){if(h){var m=this.mat.toCSS();(f=c.container.style).transform=m,f.webkitTransform=m}this.pe._mdf&&((u=c.perspectiveElem.style).perspective=this.pe.v+"px",u.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var i=e.getBaseElement();if(i){var s=this.layers[t];if(s.ddd&&this.supports3d)this.addTo3dContainer(i,t);else if(this.threeDElements)this.addTo3dContainer(i,t);else{for(var r,n,a=0;a<t;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(n=this.elements[a],r=(this.layers[a].ddd?this.getThreeDContainerByPos(a):n.getBaseElement())||r),a+=1;r?s.ddd&&this.supports3d||this.layerElement.insertBefore(i,r):s.ddd&&this.supports3d||this.layerElement.appendChild(i)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,i=this.threeDElements.length;t<i;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var i,s,r=createTag("div");styleDiv(r);var n=createTag("div");if(styleDiv(n),"3d"===t){(i=r.style).width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var a="50% 50%";i.webkitTransformOrigin=a,i.mozTransformOrigin=a,i.transformOrigin=a;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(s=n.style).transform=o,s.webkitTransform=o}r.appendChild(n);var l={container:n,perspectiveElem:r,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,i=this.layers.length,s="";for(e=0;e<i;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==s&&(s="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==s&&(s="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(i=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var i=0,s=this.threeDElements.length;i<s;){if(t<=this.threeDElements[i].endPos){for(var r,n=this.threeDElements[i].startPos;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(r=this.elements[n].getBaseElement()),n+=1;r?this.threeDElements[i].container.insertBefore(e,r):this.threeDElements[i].container.appendChild(e);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),i=this.animationItem.wrapper,s=t.style;s.width=e.w+"px",s.height=e.h+"px",this.resizerElem=t,styleDiv(t),s.transformStyle="flat",s.mozTransformStyle="flat",s.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),i.appendChild(t),s.overflow="hidden";var r=createNS("svg");r.setAttribute("width","1"),r.setAttribute("height","1"),styleDiv(r),this.resizerElem.appendChild(r);var n=createNS("defs");r.appendChild(n),this.data=e,this.setupGlobalData(e,r),this.globalData.defs=n,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,i,s,r=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight,a=r/n;this.globalData.compSize.w/this.globalData.compSize.h>a?(e=r/this.globalData.compSize.w,t=r/this.globalData.compSize.w,i=0,s=(n-this.globalData.compSize.h*(r/this.globalData.compSize.w))/2):(e=n/this.globalData.compSize.h,t=n/this.globalData.compSize.h,i=(r-this.globalData.compSize.w*(n/this.globalData.compSize.h))/2,s=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+i+","+s+",0,1)",o.transform=o.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,i=this.globalData.compSize.h,s=this.threeDElements.length;for(e=0;e<s;e+=1){var r=this.threeDElements[e].perspectiveElem.style;r.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(i,2))+"px",r.perspective=r.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,i=e.length,s=createTag("div");for(t=0;t<i;t+=1)if(e[t].xt){var r=this.createComp(e[t],s,this.globalData.comp,null);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var i,s=0;s<t;)this.elements[s]&&this.elements[s].getBaseElement&&(i=this.elements[s].getBaseElement()),s+=1;i?this.layerElement.insertBefore(e,i):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(t){for(var i=0,s=e.layers.length;i<s;){if(e.layers[i].nm===t||e.layers[i].ind===t)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(e)}function seedRandom(e,t){var i=this,s=256,r="random",n=t.pow(s,6),a=t.pow(2,52),o=2*a,l=255;function d(e){var t,i=e.length,r=this,n=0,a=r.i=r.j=0,o=r.S=[];for(i||(e=[i++]);n<s;)o[n]=n++;for(n=0;n<s;n++)o[n]=o[a=l&a+e[n%i]+(t=o[n])],o[a]=t;
vendor: 4,429 bytes, line 2
2r.g=function(e){for(var t,i=0,n=r.i,a=r.j,o=r.S;e--;)t=o[n=l&n+1],i=i*s+o[l&(o[n]=o[a=l&a+t])+(o[a]=t)];return r.i=n,r.j=a,i}}function h(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function c(e,t){var i,s=[],r=_typeof$2(e);if(t&&"object"==r)for(i in e)try{s.push(c(e[i],t-1))}catch(e){}return s.length?s:"string"==r?e:e+"\0"}function u(e,t){for(var i,s=e+"",r=0;r<s.length;)t[l&r]=l&(i^=19*t[l&r])+s.charCodeAt(r++);return f(t)}function f(e){return String.fromCharCode.apply(0,e)}t["seed"+r]=function(l,m,p){var g=[],y=u(c((m=!0===m?{entropy:!0}:m||{}).entropy?[l,f(e)]:null===l?function(){try{var t=new Uint8Array(s);return(i.crypto||i.msCrypto).getRandomValues(t),f(t)}catch(t){var r=i.navigator,n=r&&r.plugins;return[+new Date,i,n,i.screen,f(e)]}}():l,3),g),_=new d(g),v=function(){for(var e=_.g(6),t=n,i=0;e<a;)e=(e+i)*s,t*=s,i=_.g(1);for(;e>=o;)e/=2,t/=2,i>>>=1;return(e+i)/t};return v.int32=function(){return 0|_.g(4)},v.quick=function(){return _.g(4)/4294967296},v.double=v,u(f(_.S),e),(m.pass||p||function(e,i,s,n){return n&&(n.S&&h(n,_),e.state=function(){return h(_,{})}),s?(t[r]=e,i):e})(v,y,"global"in m?m.global:this==t,m.state)},u(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var i,s=e.length,r=[];for(i=0;i<s;i+=1)r[i]=-e[i];return r}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var i=_typeof$1(e),s=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(s,t)||"string"===i||"string"===s)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(s,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var r=0,n=e.length,a=t.length,o=[];r<n||r<a;)("number"==typeof e[r]||e[r]instanceof Number)&&("number"==typeof t[r]||t[r]instanceof Number)?o[r]=e[r]+t[r]:o[r]=void 0===t[r]?e[r]:e[r]||t[r],r+=1;return o}return 0}var add=sum;function sub(e,t){var i=_typeof$1(e),s=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(s,t))return"string"===i&&(e=parseInt(e,10)),"string"===s&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(s,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var r=0,n=e.length,a=t.length,o=[];r<n||r<a;)("number"==typeof e[r]||e[r]instanceof Number)&&("number"==typeof t[r]||t[r]instanceof Number)?o[r]=e[r]-t[r]:o[r]=void 0===t[r]?e[r]:e[r]||t[r],r+=1;return o}return 0}function mul(e,t){var i,s,r,n=_typeof$1(e),a=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(a,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(r=e.length,i=createTypedArray("float32",r),s=0;s<r;s+=1)i[s]=e[s]*t;return i}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(r=t.length,i=createTypedArray("float32",r),s=0;s<r;s+=1)i[s]=e*t[s];return i}return 0}function div(e,t){var i,s,r,n=_typeof$1(e),a=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(a,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(r=e.length,i=createTypedArray("float32",r),s=0;s<r;s+=1)i[s]=e[s]/t;return i}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(r=t.length,i=createTypedArray("float32",r),s=0;s<r;s+=1)i[s]=e/t[s];return i}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,i){if(t>i){var s=i;i=t,t=s}
vendor: 28,998 bytes, line 2
2return Math.min(Math.max(e,t),i)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var i;t||(t=helperLengthArray);var s=Math.min(e.length,t.length),r=0;for(i=0;i<s;i+=1)r+=Math.pow(t[i]-e[i],2);return Math.sqrt(r)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,i,s=e[0],r=e[1],n=e[2],a=Math.max(s,r,n),o=Math.min(s,r,n),l=(a+o)/2;if(a===o)t=0,i=0;else{var d=a-o;switch(i=l>.5?d/(2-a-o):d/(a+o),a){case s:t=(r-n)/d+(r<n?6:0);break;case r:t=(n-s)/d+2;break;case n:t=(s-r)/d+4}t/=6}return[t,i,l,e[3]]}function hue2rgb(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function hslToRgb(e){var t,i,s,r=e[0],n=e[1],a=e[2];if(0===n)t=a,s=a,i=a;else{var o=a<.5?a*(1+n):a+n-a*n,l=2*a-o;t=hue2rgb(l,o,r+1/3),i=hue2rgb(l,o,r),s=hue2rgb(l,o,r-1/3)}return[t,i,s,e[3]]}function linear(e,t,i,s,r){if(void 0!==s&&void 0!==r||(s=t,r=i,t=0,i=1),i<t){var n=i;i=t,t=n}if(e<=t)return s;if(e>=i)return r;var a,o=i===t?0:(e-t)/(i-t);if(!s.length)return s+(r-s)*o;var l=s.length,d=createTypedArray("float32",l);for(a=0;a<l;a+=1)d[a]=s[a]+(r[a]-s[a])*o;return d}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var i,s=t.length;e||(e=createTypedArray("float32",s));var r=createTypedArray("float32",s),n=BMMath.random();for(i=0;i<s;i+=1)r[i]=e[i]+n*(t[i]-e[i]);return r}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,i,s){var r,n=e.length,a=shapePool.newElement();a.setPathData(!!s,n);var o,l,d=[0,0];for(r=0;r<n;r+=1)o=t&&t[r]?t[r]:d,l=i&&i[r]?i[r]:d,a.setTripleAt(e[r][0],e[r][1],l[0]+e[r][0],l[1]+e[r][1],o[0]+e[r][0],o[1]+e[r][1],r,!0);return a}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var i,s,r=this.pv.length?this.pv.length:1,n=createTypedArray("float32",r),a=Math.floor(5*time);for(i=0,s=0;i<a;){for(s=0;s<r;s+=1)n[s]+=-t+2*t*BMMath.random();i+=1}var o=5*time,l=o-Math.floor(o),d=createTypedArray("float32",r);if(r>1){for(s=0;s<r;s+=1)d[s]=this.pv[s]+n[s]+(-t+2*t*BMMath.random())*l;return d}return this.pv+n[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var i=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],s=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads;return[-Math.atan2(i[1],i[2])/degToRads,s,0]}function easeOut(e,t,i,s,r){return applyEase(easeOutBez,e,t,i,s,r)}function easeIn(e,t,i,s,r){return applyEase(easeInBez,e,t,i,s,r)}function ease(e,t,i,s,r){return applyEase(easeInOutBez,e,t,i,s,r)}function applyEase(e,t,i,s,r,n){void 0===r?(r=i,n=s):t=(t-i)/(s-i),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(r)){var o,l=r.length,d=createTypedArray("float32",l);for(o=0;o<l;o+=1)d[o]=(n[o]-r[o])*a+r[o];return d}return(n-r)*a+r}function nearestKey(e){var t,i,s,r=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(i=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)i=1,s=data.k[0].t;else{for(t=0;t<r-1;t+=1){if(e===data.k[t].t){i=t+1,s=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(i=t+2,s=data.k[t+1].t):(i=t+1,s=data.k[t].t);break}}-1===i&&(i=t+1,s=data.k[t].t)}else i=0,s=0;var n={};return n.index=i,n.time=s/elem.comp.globalData.frameRate,n}function key(e){var t,i,s;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var r=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(s=r.length,i=0;i<s;i+=1)t[i]=r[i],t.value[i]=r[i];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={initExpressions:function(e){var t=0,i=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=i.length;for(e=0;e<t;e+=1)i[e].release();i.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===i.indexOf(e)&&i.push(e)}}};return e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var i,s=createSizedArray(t.viewData.length),r=t.viewData.length;for(i=0;i<r;i+=1)s[i]=new e(t.viewData[i],t.masksProperties[i]);return function(e){for(i=0;i<r;){if(t.masksProperties[i].nm===e)return s[i];i+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function i(e,t,i){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(s){if(!e.numKeys)return 0;var r="";r="s"in t.keyframes[s-1]?t.keyframes[s-1].s:"e"in t.keyframes[s-2]?t.keyframes[s-2].e:t.keyframes[s-2].s;var n="unidimensional"===i?new Number(r):Object.assign({},r);return n.time=t.keyframes[s-1].t/t.elem.comp.globalData.frameRate,n.value="unidimensional"===i?r[0]:r,n},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function s(){return e}return function(r){return r?"unidimensional"===r.propType?function(t){t&&"pv"in t||(t=e);var s=1/t.mult,r=t.pv*s,n=new Number(r);return n.value=r,i(n,t,"unidimensional"),function(){return t.k&&t.getValue(),r=t.v*s,n.value!==r&&((n=new Number(r)).value=r,n[0]=r,i(n,t,"unidimensional")),n}}(r):function(e){e&&"pv"in e||(e=t);var s=1/e.mult,r=e.data&&e.data.l||e.pv.length,n=createTypedArray("float32",r),a=createTypedArray("float32",r);return n.value=a,i(n,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<r;t+=1)a[t]=e.v[t]*s,n[t]=a[t];return n}}(r):s}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var i,s,r,n;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?n=ExpressionPropertyInterface(e.p):(i=ExpressionPropertyInterface(e.px),s=ExpressionPropertyInterface(e.py),e.pz&&(r=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?n():[i(),s(),r?r():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var i=this.getMatrix(t);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.applyPoint(i,e)}function i(e,t){var i=this.getMatrix(t);return this.applyPoint(i,e)}function s(e,t){var i=this.getMatrix(t);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.invertPoint(i,e)}function r(e,t){var i=this.getMatrix(t);return this.invertPoint(i,e)}function n(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,s=this._elem.hierarchy.length;for(i=0;i<s;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,s=this._elem.hierarchy.length;for(i=0;i<s;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function o(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var i,s=this._elem.hierarchy.length;for(i=0;i<s;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(d){var h;function c(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return c.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return h;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return c.effect;case"ADBE Text Properties":return c.textInterface;default:return null}}c.getMatrix=e,c.invertPoint=a,c.applyPoint=n,c.toWorld=i,c.toWorldVec=t,c.fromWorld=r,c.fromWorldVec=s,c.toComp=i,c.fromComp=o,c.sampleImage=l,c.sourceRectAtTime=d.sourceRectAtTime.bind(d),c._elem=d;var u=getDescriptor(h=TransformExpressionInterface(d.finalTransform.mProp),"anchorPoint");return Object.defineProperties(c,{hasParent:{get:function(){return d.hierarchy.length}},parent:{get:function(){return d.hierarchy[0].layerInterface}},rotation:getDescriptor(h,"rotation"),scale:getDescriptor(h,"scale"),position:getDescriptor(h,"position"),opacity:getDescriptor(h,"opacity"),anchorPoint:u,anchor_point:u,transform:{get:function(){return h}},active:{get:function(){return d.isInRange}}}),c.startTime=d.data.st,c.index=d.data.ind,c.source=d.data.refId,c.height=0===d.data.ty?d.data.h:100,c.width=0===d.data.ty?d.data.w:100,c.inPoint=d.data.ip/d.comp.globalData.frameRate,c.outPoint=d.data.op/d.comp.globalData.frameRate,c._name=d.data.nm,c.registerMaskInterface=function(e){c.mask=new MaskManagerInterface(e,d)},c.registerEffectsInterface=function(e){c.effect=e},c}}(),propertyGroupFactory=function(e,t){return function(i){return(i=void 0===i?1:i)<=0?e:t(i-1)}},PropertyInterface=function(e,t){var i={_name:e};return function(e){return(e=void 0===e?1:e)<=0?i:t(e-1)}},EffectsExpressionInterface=function(){function e(i,s,r,n){function a(e){for(var t=i.ef,s=0,r=t.length;s<r;){if(e===t[s].nm||e===t[s].mn||e===t[s].ix)return 5===t[s].ty?d[s]:d[s]();s+=1}throw new Error}var o,l=propertyGroupFactory(a,r),d=[],h=i.ef.length;for(o=0;o<h;o+=1)5===i.ef[o].ty?d.push(e(i.ef[o],s.effectElements[o],s.effectElements[o].propertyGroup,n)):d.push(t(s.effectElements[o],i.ef[o].ty,n,l));return"ADBE Color Control"===i.mn&&Object.defineProperty(a,"color",{get:function(){return d[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return i.np}},_name:{value:i.nm},propertyGroup:{value:l}}),a.enabled=0!==i.en,a.active=a.enabled,a}function t(e,t,i,s){var r=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",s)),function(){return 10===t?i.comp.compInterface(e.p.v):r()}}return{createEffectsInterface:function(t,i){if(t.effectsManager){var s,r=[],n=t.data.ef,a=t.effectsManager.effectElements.length;for(s=0;s<a;s+=1)r.push(e(n[s],t.effectsManager.effectElements[s],i,t));var o=t.data.ef||[],l=function(e){for(s=0,a=o.length;s<a;){if(e===o[s].nm||e===o[s].mn||e===o[s].ix)return r[s];s+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return o.length}}),l}return null}}}(),ShapePathInterface=function(e,t,i){var s=t.sh;function r(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?r.path:null}var n=propertyGroupFactory(r,i);return s.setGroupProperty(PropertyInterface("Path",n)),Object.defineProperties(r,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:i}}),r},ShapeExpressionInterface=function(){function e(e,a,u){var f,m=[],p=e?e.length:0;for(f=0;f<p;f+=1)"gr"===e[f].ty?m.push(t(e[f],a[f],u)):"fl"===e[f].ty?m.push(i(e[f],a[f],u)):"st"===e[f].ty?m.push(r(e[f],a[f],u)):"tm"===e[f].ty?m.push(n(e[f],a[f],u)):"tr"===e[f].ty||("el"===e[f].ty?m.push(o(e[f],a[f],u)):"sr"===e[f].ty?m.push(l(e[f],a[f],u)):"sh"===e[f].ty?m.push(ShapePathInterface(e[f],a[f],u)):"rc"===e[f].ty?m.push(d(e[f],a[f],u)):"rd"===e[f].ty?m.push(h(e[f],a[f],u)):"rp"===e[f].ty?m.push(c(e[f],a[f],u)):"gf"===e[f].ty?m.push(s(e[f],a[f],u)):m.push((e[f],a[f],function(){return null})));return m}function t(t,i,s){var r=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return r.content;default:return r.transform}};r.propertyGroup=propertyGroupFactory(r,s);var n=function(t,i,s){var r,n=function(e){for(var t=0,i=r.length;t<i;){if(r[t]._name===e||r[t].mn===e||r[t].propertyIndex===e||r[t].ix===e||r[t].ind===e)return r[t];t+=1}return"number"==typeof e?r[e-1]:null};n.propertyGroup=propertyGroupFactory(n,s),r=e(t.it,i.it,n.propertyGroup),n.numProperties=r.length;var o=a(t.it[t.it.length-1],i.it[i.it.length-1],n.propertyGroup);return n.transform=o,n.propertyIndex=t.cix,n._name=t.nm,n}(t,i,r.propertyGroup),o=a(t.it[t.it.length-1],i.it[i.it.length-1],r.propertyGroup);return r.content=n,r.transform=o,Object.defineProperty(r,"_name",{get:function(){return t.nm}}),r.numProperties=t.np,r.propertyIndex=t.ix,r.nm=t.nm,r.mn=t.mn,r}function i(e,t,i){function s(e){return"Color"===e||"color"===e?s.color:"Opacity"===e||"opacity"===e?s.opacity:null}return Object.defineProperties(s,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),s}function s(e,t,i){function s(e){return"Start Point"===e||"start point"===e?s.startPoint:"End Point"===e||"end point"===e?s.endPoint:"Opacity"===e||"opacity"===e?s.opacity:null}return Object.defineProperties(s,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",i)),t.e.setGroupProperty(PropertyInterface("End Point",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),s}function r(e,t,i){var s,r=propertyGroupFactory(d,i),n=propertyGroupFactory(l,r);function a(i){Object.defineProperty(l,e.d[i].nm,{get:ExpressionPropertyInterface(t.d.dataProps[i].p)})}var o=e.d?e.d.length:0,l={};for(s=0;s<o;s+=1)a(s),t.d.dataProps[s].p.setGroupProperty(n);function d(e){return"Color"===e||"color"===e?d.color:"Opacity"===e||"opacity"===e?d.opacity:"Stroke Width"===e||"stroke width"===e?d.strokeWidth:null}return Object.defineProperties(d,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),t.w.setGroupProperty(PropertyInterface("Stroke Width",r)),d}function n(e,t,i){function s(t){return t===e.e.ix||"End"===t||"end"===t?s.end:t===e.s.ix?s.start:t===e.o.ix?s.offset:null}var r=propertyGroupFactory(s,i);return s.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",r)),t.e.setGroupProperty(PropertyInterface("End",r)),t.o.setGroupProperty(PropertyInterface("Offset",r)),s.propertyIndex=e.ix,s.propertyGroup=i,Object.defineProperties(s,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),s.mn=e.mn,s}function a(e,t,i){function s(t){return e.a.ix===t||"Anchor Point"===t?s.anchorPoint:e.o.ix===t||"Opacity"===t?s.opacity:e.p.ix===t||"Position"===t?s.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?s.rotation:e.s.ix===t||"Scale"===t?s.scale:e.sk&&e.sk.ix===t||"Skew"===t?s.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?s.skewAxis:null}var r=propertyGroupFactory(s,i);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",r)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",r)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",r)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",r)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",r)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",r)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",r))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",r)),Object.defineProperties(s,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),s.ty="tr",s.mn=e.mn,s.propertyGroup=i,s}function o(e,t,i){function s(t){return e.p.ix===t?s.position:e.s.ix===t?s.size:null}var r=propertyGroupFactory(s,i);s.propertyIndex=e.ix;var n="tm"===t.sh.ty?t.sh.prop:t.sh;return n.s.setGroupProperty(PropertyInterface("Size",r)),n.p.setGroupProperty(PropertyInterface("Position",r)),Object.defineProperties(s,{size:{get:ExpressionPropertyInterface(n.s)},position:{get:ExpressionPropertyInterface(n.p)},_name:{value:e.nm}}),s.mn=e.mn,s}function l(e,t,i){function s(t){return e.p.ix===t?s.position:e.r.ix===t?s.rotation:e.pt.ix===t?s.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?s.outerRadius:e.os.ix===t?s.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?s.innerRoundness:null:s.innerRadius}var r=propertyGroupFactory(s,i),n="tm"===t.sh.ty?t.sh.prop:t.sh;return s.propertyIndex=e.ix,n.or.setGroupProperty(PropertyInterface("Outer Radius",r)),n.os.setGroupProperty(PropertyInterface("Outer Roundness",r)),n.pt.setGroupProperty(PropertyInterface("Points",r)),n.p.setGroupProperty(PropertyInterface("Position",r)),n.r.setGroupProperty(PropertyInterface("Rotation",r)),e.ir&&(n.ir.setGroupProperty(PropertyInterface("Inner Radius",r)),n.is.setGroupProperty(PropertyInterface("Inner Roundness",r))),Object.defineProperties(s,{position:{get:ExpressionPropertyInterface(n.p)},rotation:{get:ExpressionPropertyInterface(n.r)},points:{get:ExpressionPropertyInterface(n.pt)},outerRadius:{get:ExpressionPropertyInterface(n.or)},outerRoundness:{get:ExpressionPropertyInterface(n.os)},innerRadius:{get:ExpressionPropertyInterface(n.ir)},innerRoundness:{get:ExpressionPropertyInterface(n.is)},_name:{value:e.nm}}),s.mn=e.mn,s}function d(e,t,i){function s(t){return e.p.ix===t?s.position:e.r.ix===t?s.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?s.size:null}var r=propertyGroupFactory(s,i),n="tm"===t.sh.ty?t.sh.prop:t.sh;return s.propertyIndex=e.ix,n.p.setGroupProperty(PropertyInterface("Position",r)),n.s.setGroupProperty(PropertyInterface("Size",r)),n.r.setGroupProperty(PropertyInterface("Rotation",r)),Object.defineProperties(s,{position:{get:ExpressionPropertyInterface(n.p)},roundness:{get:ExpressionPropertyInterface(n.r)},size:{get:ExpressionPropertyInterface(n.s)},_name:{value:e.nm}}),s.mn=e.mn,s}function h(e,t,i){function s(t){return e.r.ix===t||"Round Corners 1"===t?s.radius:null}var r=propertyGroupFactory(s,i),n=t;return s.propertyIndex=e.ix,n.rd.setGroupProperty(PropertyInterface("Radius",r)),Object.defineProperties(s,{radius:{get:ExpressionPropertyInterface(n.rd)},_name:{value:e.nm}}),s.mn=e.mn,s}function c(e,t,i){function s(t){return e.c.ix===t||"Copies"===t?s.copies:e.o.ix===t||"Offset"===t?s.offset:null}var r=propertyGroupFactory(s,i),n=t;return s.propertyIndex=e.ix,n.c.setGroupProperty(PropertyInterface("Copies",r)),n.o.setGroupProperty(PropertyInterface("Offset",r)),Object.defineProperties(s,{copies:{get:ExpressionPropertyInterface(n.c)},offset:{get:ExpressionPropertyInterface(n.o)},_name:{value:e.nm}}),s.mn=e.mn,s}return function(t,i,s){var r;function n(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?s:r[e-1];for(var t=0,i=r.length;t<i;){if(r[t]._name===e)return r[t];t+=1}return null}return n.propertyGroup=propertyGroupFactory(n,(function(){return s})),r=e(t,i,n.propertyGroup),n.numProperties=r.length,n._name="Contents",n}}(),TextExpressionInterface=function(e){var t;function i(e){return"ADBE Text Document"===e?i.sourceText:null}return Object.defineProperty(i,"sourceText",{get:function(){e.textProperty.getValue();var i=e.textProperty.currentData.t;return t&&i===t.value||((t=new String(i)).value=i||new String(i),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),i};function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",i=e.getFootageData();function s(e){if(i[e])return t=e,"object"===_typeof(i=i[e])?s:i;var r=e.indexOf(t);if(-1!==r){var n=parseInt(e.substr(r+t.length),10);return"object"===_typeof(i=i[n])?s:i}return""}return function(){return t="",i=e.getFootageData(),s}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,i){t.x&&(i.k=!0,i.x=!0,i.initiateExpression=ExpressionManager.initiateExpression,i.effectsSequence.push(i.initiateExpression(e,t,i).bind(i)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),i=this.getValueAtTime(e+-.01),s=0;if(t.length){var r;for(r=0;r<t.length;r+=1)s+=Math.pow(i[r]-t[r],2);s=100*Math.sqrt(s)}else s=0;return s},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,i,s=-.001,r=this.getValueAtTime(e),n=this.getValueAtTime(e+s);if(r.length)for(t=createTypedArray("float32",r.length),i=0;i<r.length;i+=1)t[i]=(n[i]-r[i])/s;else t=(n-r)/s;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,i){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var s,r,n,a,o,l=this.comp.renderedFrame,d=this.keyframes,h=d[d.length-1].t;if(l<=h)return this.pv;if(i?r=h-(s=t?Math.abs(h-this.elem.comp.globalData.frameRate*t):Math.max(0,h-this.elem.data.ip)):((!t||t>d.length-1)&&(t=d.length-1),s=h-(r=d[d.length-1-t].t)),"pingpong"===e){if(M
vendor: 9,600 bytes, line 2
2ath.floor((l-r)/s)%2!=0)return this.getValueAtTime((s-(l-r)%s+r)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var c=this.getValueAtTime(r/this.comp.globalData.frameRate,0),u=this.getValueAtTime(h/this.comp.globalData.frameRate,0),f=this.getValueAtTime(((l-r)%s+r)/this.comp.globalData.frameRate,0),m=Math.floor((l-r)/s);if(this.pv.length){for(a=(o=new Array(c.length)).length,n=0;n<a;n+=1)o[n]=(u[n]-c[n])*m+f[n];return o}return(u-c)*m+f}if("continue"===e){var p=this.getValueAtTime(h/this.comp.globalData.frameRate,0),g=this.getValueAtTime((h-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(o=new Array(p.length)).length,n=0;n<a;n+=1)o[n]=p[n]+(p[n]-g[n])*((l-h)/this.comp.globalData.frameRate)/5e-4;return o}return p+(l-h)/.001*(p-g)}}return this.getValueAtTime(((l-r)%s+r)/this.comp.globalData.frameRate,0)}function t(e,t,i){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var s,r,n,a,o,l=this.comp.renderedFrame,d=this.keyframes,h=d[0].t;if(l>=h)return this.pv;if(i?r=h+(s=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-h)):((!t||t>d.length-1)&&(t=d.length-1),s=(r=d[t].t)-h),"pingpong"===e){if(Math.floor((h-l)/s)%2==0)return this.getValueAtTime(((h-l)%s+h)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var c=this.getValueAtTime(h/this.comp.globalData.frameRate,0),u=this.getValueAtTime(r/this.comp.globalData.frameRate,0),f=this.getValueAtTime((s-(h-l)%s+h)/this.comp.globalData.frameRate,0),m=Math.floor((h-l)/s)+1;if(this.pv.length){for(a=(o=new Array(c.length)).length,n=0;n<a;n+=1)o[n]=f[n]-(u[n]-c[n])*m;return o}return f-(u-c)*m}if("continue"===e){var p=this.getValueAtTime(h/this.comp.globalData.frameRate,0),g=this.getValueAtTime((h+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(o=new Array(p.length)).length,n=0;n<a;n+=1)o[n]=p[n]+(p[n]-g[n])*(h-l)/.001;return o}return p+(p-g)*(h-l)/.001}}return this.getValueAtTime((s-((h-l)%s+h))/this.comp.globalData.frameRate,0)}function i(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var i,s,r=this.comp.renderedFrame/this.comp.globalData.frameRate,n=r-e,a=t>1?(r+e-n)/(t-1):1,o=0,l=0;for(i=this.pv.length?createTypedArray("float32",this.pv.length):0;o<t;){if(s=this.getValueAtTime(n+o*a),this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]+=s[l];else i+=s;o+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]/=t;else i/=t;return i}function s(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var i=this.a.getValueAtTime(e);t.translate(-i[0]*this.a.mult,-i[1]*this.a.mult,i[2]*this.a.mult)}if(this.appliedTransformations<2){var s=this.s.getValueAtTime(e);t.scale(s[0]*this.s.mult,s[1]*this.s.mult,s[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var r=this.sk.getValueAtTime(e),n=this.sa.getValueAtTime(e);t.skewFromAxis(-r*this.sk.mult,n*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(e);t.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),d=this.rx.getValueAtTime(e),h=this.or.getValueAtTime(e);t.rotateZ(-o*this.rz.mult).rotateY(l*this.ry.mult).rotateX(d*this.rx.mult).rotateZ(-h[2]*this.or.mult).rotateY(h[1]*this.or.mult).rotateX(h[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var c=this.px.getValueAtTime(e),u=this.py.getValueAtTime(e);if(this.data.p.z){var f=this.pz.getValueAtTime(e);t.translate(c*this.px.mult,u*this.py.mult,-f*this.pz.mult)}else t.translate(c*this.px.mult,u*this.py.mult,0)}else{var m=this.p.getValueAtTime(e);t.translate(m[0]*this.p.mult,m[1]*this.p.mult,-m[2]*this.p.mult)}return t}function r(){return this.v.clone(new Matrix)}var n=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,i){var a=n(e,t,i);return a.dynamicProperties.length?a.getValueAtTime=s.bind(a):a.getValueAtTime=r.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(s,r,n,o,l){var d=a(s,r,n,o,l);d.kf?d.getValueAtTime=expressionHelpers.getValueAtTime.bind(d):d.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(d),d.setGroupProperty=expressionHelpers.setGroupProperty,d.loopOut=e,d.loopIn=t,d.smooth=i,d.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(d),d.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(d),d.numKeys=1===r.a?r.k.length:0,d.propertyIndex=r.ix;var h=0;return 0!==n&&(h=createTypedArray("float32",1===r.a?r.k[0].s.length:r.k.length)),d._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:h},expressionHelpers.searchExpressions(s,r,d),d.k&&l.addDynamicProperty(d),d};var o=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function d(){}d.prototype={vertices:function(e,t){this.k&&this.getValue();var i,s=this.v;void 0!==t&&(s=this.getValueAtTime(t,0));var r=s._length,n=s[e],a=s.v,o=createSizedArray(r);for(i=0;i<r;i+=1)o[i]="i"===e||"o"===e?[n[i][0]-a[i][0],n[i][1]-a[i][1]]:[n[i][0],n[i][1]];return o},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var i=this.v;void 0!==t&&(i=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(i));for(var s,r=this._segmentsLength,n=r.lengths,a=r.totalLength*e,o=0,l=n.length,d=0;o<l;){if(d+n[o].addedLength>a){var h=o,c=i.c&&o===l-1?0:o+1,u=(a-d)/n[o].addedLength;s=bez.getPointInSegment(i.v[h],i.v[c],i.o[h],i.i[c],u,n[o]);break}d+=n[o].addedLength,o+=1}return s||(s=i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]]),s},vectorOnPath:function(e,t,i){1==e?e=this.v.c:0==e&&(e=.999);var s=this.pointOnPath(e,t),r=this.pointOnPath(e+.001,t),n=r[0]-s[0],a=r[1]-s[1],o=Math.sqrt(Math.pow(n,2)+Math.pow(a,2));return 0===o?[0,0]:"tangent"===i?[n/o,a/o]:[-a/o,n/o]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([d],o),extendPrototype([d],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var h=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,i,s,r){var n=h(e,t,i,s,r);return n.propertyIndex=t.ix,n.lock=!1,3===i?expressionHelpers.searchExpressions(e,t.pt,n):4===i&&expressionHelpers.searchExpressions(e,t.ks,n),n.k&&e.addDynamicProperty(n),n}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var i=this.calculateExpression(t);if(e.t!==i){var s={};return this.copyData(s,e),s.t=i.toString(),s.__complete=!1,s}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var i,s,r=createNS("feMerge");for(r.setAttribute("result",e),s=0;s<t.length;s+=1)(i=createNS("feMergeNode")).setAttribute("in",t[s]),r.appendChild(i),r.appendChild(i);return r}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,i,s,r){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=n,n.setAttribute("result",s+"_tint_1"),e.appendChild(n),(n=createNS("feColorMatrix")).setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",s+"_tint_2"),e.appendChild(n),this.matrixFilter=n;var a=this.createMergeNode(s,[r,s+"_tint_1",s+"_tint_2"]);e.appendChild(a)}function SVGFillFilter(e,t,i,s){this.filterManager=t;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),r.setAttribute("result",s),e.appendChild(r),this.matrixFilter=r}function SVGStrokeEffect(e,t,i){this.initialized=!1,this.filterManager=t,this.elem=i,this.paths=[]}function SVGTritoneFilter(e,t,i,s){this.filterManager=t;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.a
vendor: 5,131 bytes, line 2
2ppendChild(r);var n=createNS("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",s),this.matrixFilter=n;var a=createNS("feFuncR");a.setAttribute("type","table"),n.appendChild(a),this.feFuncR=a;var o=createNS("feFuncG");o.setAttribute("type","table"),n.appendChild(o),this.feFuncG=o;var l=createNS("feFuncB");l.setAttribute("type","table"),n.appendChild(l),this.feFuncB=l,e.appendChild(n)}function SVGProLevelsFilter(e,t,i,s){this.filterManager=t;var r=this.filterManager.effectElements,n=createNS("feComponentTransfer");(r[10].p.k||0!==r[10].p.v||r[11].p.k||1!==r[11].p.v||r[12].p.k||1!==r[12].p.v||r[13].p.k||0!==r[13].p.v||r[14].p.k||1!==r[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",n)),(r[17].p.k||0!==r[17].p.v||r[18].p.k||1!==r[18].p.v||r[19].p.k||1!==r[19].p.v||r[20].p.k||0!==r[20].p.v||r[21].p.k||1!==r[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",n)),(r[24].p.k||0!==r[24].p.v||r[25].p.k||1!==r[25].p.v||r[26].p.k||1!==r[26].p.v||r[27].p.k||0!==r[27].p.v||r[28].p.k||1!==r[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",n)),(r[31].p.k||0!==r[31].p.v||r[32].p.k||1!==r[32].p.v||r[33].p.k||1!==r[33].p.v||r[34].p.k||0!==r[34].p.v||r[35].p.k||1!==r[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",n)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(n.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(n)),(r[3].p.k||0!==r[3].p.v||r[4].p.k||1!==r[4].p.v||r[5].p.k||1!==r[5].p.v||r[6].p.k||0!==r[6].p.v||r[7].p.k||1!==r[7].p.v)&&((n=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",s),e.appendChild(n),this.feFuncRComposed=this.createFeFunc("feFuncR",n),this.feFuncGComposed=this.createFeFunc("feFuncG",n),this.feFuncBComposed=this.createFeFunc("feFuncB",n))}function SVGDropShadowEffect(e,t,i,s,r){var n=t.container.globalData.renderConfig.filterSize,a=t.data.fs||n;e.setAttribute("x",a.x||n.x),e.setAttribute("y",a.y||n.y),e.setAttribute("width",a.width||n.width),e.setAttribute("height",a.height||n.height),this.filterManager=t;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",s+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,e.appendChild(o);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",s+"_drop_shadow_1"),l.setAttribute("result",s+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var d=createNS("feFlood");d.setAttribute("flood-color","#00ff00"),d.setAttribute("flood-opacity","1"),d.setAttribute("result",s+"_drop_shadow_3"),this.feFlood=d,e.appendChild(d);var h=createNS("feComposite");h.setAttribute("in",s+"_drop_shadow_3"),h.setAttribute("in2",s+"_drop_shadow_2"),h.setAttribute("operator","in"),h.setAttribute("result",s+"_drop_shadow_4"),e.appendChild(h);var c=this.createMergeNode(s,[s+"_drop_shadow_4",r]);e.appendChild(c)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,s=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+s+" 0"),this.matrixFilter.setAttribute("values",i[0]-t[0]+" 0 0 0 "+t[0]+" "+(i[1]-t[1])+" 0 0 0 "+t[1]+" "+(i[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+i+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,i,s,r=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(s=this.elem.maskManager.masksProperties.length,i=0):s=1+(i=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);i<s;i+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:i});if(3===this.filterManager.effectElements[10].p.v){var n=createNS("mask"),a=createElementID();n.setAttribute("id",a),n.setAttribute("mask-type","alpha"),n.appendChild(t),this.elem.globalData.defs.appendChild(n);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+a+")");r[0];)o.appendChild(r[0]);this.elem.layerElement.appendChild(o),this.masker=n,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(r=this.elem.layerElement.children||this.elem.layerElement.childNodes;r.length;)this.elem.layerElement.removeChild(r[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var i,s,r=this.paths.length;for(t=0;t<r;
vendor: 7,567 bytes, line 2
2t+=1)if(-1!==this.paths[t].m&&(i=this.elem.maskManager.viewData[this.paths[t].m],s=this.paths[t].p,(e||this.filterManager._mdf||i.prop._mdf)&&s.setAttribute("d",i.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var n;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=s.getTotalLength();n="0 0 0 "+l*a+" ";var d,h=l*(o-a),c=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,u=Math.floor(h/c);for(d=0;d<u;d+=1)n+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";n+="0 "+10*l+" 0 0"}else n="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;s.setAttribute("stroke-dasharray",n)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var f=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*f[0])+","+bmFloor(255*f[1])+","+bmFloor(255*f[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,s=this.filterManager.effectElements[2].p.v,r=s[0]+" "+i[0]+" "+t[0],n=s[1]+" "+i[1]+" "+t[1],a=s[2]+" "+i[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",r),this.feFuncG.setAttribute("tableValues",n),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var i=createNS(e);return i.setAttribute("type","table"),t.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(e,t,i,s,r){for(var n,a,o=0,l=Math.min(e,t),d=Math.max(e,t),h=Array.call(null,{length:256}),c=0,u=r-s,f=t-e;o<=256;)a=(n=o/256)<=l?f<0?r:s:n>=d?f<0?s:r:s+u*Math.pow((n-e)/f,1/i),h[c]=a,c+=1,o+=256/255;return h.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,i=this.filterManager.effectElements;this.feFuncRComposed&&(e||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(t=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(t=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(t=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(t=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(t=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,s=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=i*Math.cos(s),n=i*Math.sin(s);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",n)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,i){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGGaussianBlurEffect(e,t,i,s){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var r=createNS("feGaussianBlur");r.setAttribute("result",s),e.appendChild(r),this.feGaussianBlur=r}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,i=_svgMatteSymbols.length;t<i;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var i=e.layerElement.parentNode;if(i){for(var s,r=i.children,n=0,a=r.length;n<a&&r[n]!==e.layerElement;)n+=1;n<=a-2&&(s=r[n+1]);var o=createNS("use");o.setAttribute("href","#"+t),s?i.insertBefore(o,s):i.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var i=createElementID(),s=createNS("mask");s.setAttribute("id",t.layerId),s.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var r=e.globalData.defs;r.appendChild(s);var n=createNS("symbol");n.setAttribute("id",i),this.replaceInParent(t,i),n.appendChild(t.layerElement),r.appendChild(n);var a=createNS("use");a.setAttribute("href","#"+i),s.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,i=0,s=t.length;i<s;)t[i]&&t[i].data.ind===e&&this.setElementAsMask(this.elem,t[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,s=3==i?0:t,r=2==i?0:t;this.feGaussianBlur.setAttribute("stdDeviation",s+" "+r);var n=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",n)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,i=t[0].p.v,s=t[1].p.v,r=1===t[2].p.v,n=t[3].p.v,a=r?n:t[4].p.v,o=t[5].p.v,l=t[6].p.v,d=t[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(.01*a,.01*n,1),this.matrix.rotate(-d
2*degToRads),this.matrix.skewFromAxis(-o*degToRads,(l+90)*degToRads),this.matrix.translate(s[0],s[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())}},__webpack_module_cache__={},deferred;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var i=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(i.exports,i,i.exports,__webpack_require__),i.loaded=!0,i.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(e,t,i,s)=>{if(!t){var r=1/0;for(l=0;l<deferred.length;l++){for(var[t,i,s]=deferred[l],n=!0,a=0;a<t.length;a++)(!1&s||r>=s)&&Object.keys(__webpack_require__.O).every((e=>__webpack_require__.O[e](t[a])))?t.splice(a--,1):(n=!1,s<r&&(r=s));if(n){deferred.splice(l--,1);var o=i();void 0!==o&&(e=o)}}return e}s=s||0;for(var l=deferred.length;l>0&&deferred[l-1][2]>s;l--)deferred[l]=deferred[l-1];deferred[l]=[t,i,s]},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var i in t)__webpack_require__.o(t,i)&&!__webpack_require__.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={829:0,552:0};__webpack_require__.O.j=t=>0===e[t];var t=(t,i)=>{var s,r,[n,a,o]=i,l=0;if(n.some((t=>0!==e[t]))){for(s in a)__webpack_require__.o(a,s)&&(__webpack_require__.m[s]=a[s]);if(o)var d=o(__webpack_require__)}for(t&&t(i);l<n.length;l++)r=n[l],__webpack_require__.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return __webpack_require__.O(d)},i=self.webpackChunkfiorentina=self.webpackChunkfiorentina||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})(),__webpack_require__.O(void 0,[552],(()=>__webpack_require__(3837)));var __webpack_exports__=__webpack_require__.O(void 0,[552],(()=>__webpack_require__(9703)));__webpack_exports__=__webpack_require__.O(__webpack_exports__)})();
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.