Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.coaching-en-developpement-personnel.fr
/
htdocs
/
public
/
build
/
/srv/data/web/vhosts/www.coaching-en-developpement-personnel.fr/htdocs/public/build/335.7a2508e1.js
/*! For license information please see 335.7a2508e1.js.LICENSE.txt */ (self.webpackChunk=self.webpackChunk||[]).push([[335],{2754:function(e,t,n){!function(e,t,n){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=i(t),r=i(n);function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},l.apply(this,arguments)}function c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var u="transitionend",d=1e6,h=1e3;function f(e){return null==e?""+e:{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}function p(){return{bindType:u,delegateType:u,handle:function(e){if(s.default(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}}function m(e){var t=this,n=!1;return s.default(this).one(y.TRANSITION_END,(function(){n=!0})),setTimeout((function(){n||y.triggerTransitionEnd(t)}),e),this}function g(){s.default.fn.emulateTransitionEnd=m,s.default.event.special[y.TRANSITION_END]=p()}var y={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do{e+=~~(Math.random()*d)}while(document.getElementById(e));return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");if(!t||"#"===t){var n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=s.default(e).css("transition-duration"),n=s.default(e).css("transition-delay"),i=parseFloat(t),r=parseFloat(n);return i||r?(t=t.split(",")[0],n=n.split(",")[0],(parseFloat(t)+parseFloat(n))*h):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){s.default(e).trigger(u)},supportsTransitionEnd:function(){return Boolean(u)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var s=n[i],r=t[i],o=r&&y.isElement(r)?"element":f(r);if(!new RegExp(s).test(o))throw new Error(e.toUpperCase()+': Option "'+i+'" provided type "'+o+'" but expected type "'+s+'".')}},findShadowRoot:function(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){var t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?y.findShadowRoot(e.parentNode):null},jQueryDetection:function(){if(void 0===s.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=s.default.fn.jquery.split(" ")[0].split("."),t=1,n=2,i=9,r=1,o=4;if(e[0]<n&&e[1]<i||e[0]===t&&e[1]===i&&e[2]<r||e[0]>=o)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};y.jQueryDetection(),g();var v="alert",b="4.6.0",w="bs.alert",_="."+w,T=".data-api",E=s.default.fn[v],C='[data-dismiss="alert"]',k="close"+_,x="closed"+_,S="click"+_+T,A="alert",N="fade",D="show",P=function(){function e(e){this._element=e}var t=e.prototype;return t.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},t.dispose=function(){s.default.removeData(this._element,w),this._element=null},t._getRootElement=function(e){var t=y.getSelectorFromElement(e),n=!1;return t&&(n=document.querySelector(t)),n||(n=s.default(e).closest("."+A)[0]),n},t._triggerCloseEvent=function(e){var t=s.default.Event(k);return s.default(e).trigger(t),t},t._removeElement=function(e){var t=this;if(s.default(e).removeClass(D),s.default(e).hasClass(N)){var n=y.getTransitionDurationFromElement(e);s.default(e).one(y.TRANSITION_END,(function(n){return t._destroyElement(e,n)})).emulateTransitionEnd(n)}else this._destroyElement(e)},t._destroyElement=function(e){s.default(e).detach().trigger(x).remove()},e._jQueryInterface=function(t){return this.each((function(){var n=s.default(this),i=n.data(w);i||(i=new e(this),n.data(w,i)),"close"===t&&i[t](this)}))},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},a(e,null,[{key:"VERSION",get:function(){return b}}]),e}();s.default(document).on(S,C,P._handleDismiss(new P)),s.default.fn[v]=P._jQueryInterface,s.default.fn[v].Constructor=P,s.default.fn[v].noConflict=function(){return s.default.fn[v]=E,P._jQueryInterface};var I="button",L="4.6.0",O="bs.button",j="."+O,M=".data-api",q=s.default.fn[I],H="active",R="btn",F="focus",$='[data-toggle^="button"]',B='[data-toggle="buttons"]',W='[data-toggle="button"]',V='[data-toggle="buttons"] .btn',U='input:not([type="hidden"])',z=".active",Q=".btn",Y="click"+j+M,X="focus"+j+M+" blur"+j+M,K="load"+j+M,G=function(){function e(e){this._element=e,this.shouldAvoidTriggerChange=!1}var t=e.prototype;return t.toggle=function(){var e=!0,t=!0,n=s.default(this._element).closest(B)[0];if(n){var i=this._element.querySelector(U);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(H))e=!1;else{var r=n.querySelector(z);r&&s.default(r).removeClass(H)}e&&("checkbox"!==i.type&&"radio"!==i.type||(i.checked=!this._element.classList.contains(H)),this.shouldAvoidTriggerChange||s.default(i).trigger("change")),i.focus(),t=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(H)),e&&s.default(this._element).toggleClass(H))},t.dispose=function(){s.default.removeData(this._element,O),this._element=null},e._jQueryInterface=function(t,n){return this.each((function(){var i=s.default(this),r=i.data(O);r||(r=new e(this),i.data(O,r)),r.shouldAvoidTriggerChange=n,"toggle"===t&&r[t]()}))},a(e,null,[{key:"VERSION",get:function(){return L}}]),e}();s.default(document).on(Y,$,(function(e){var t=e.target,n=t;if(s.default(t).hasClass(R)||(t=s.default(t).closest(Q)[0]),!t||t.hasAttribute("disabled")||t.classList.contains("disabled"))e.preventDefault();else{var i=t.querySelector(U);if(i&&(i.hasAttribute("disabled")||i.classList.contains("disabled")))return void e.preventDefault();"INPUT"!==n.tagName&&"LABEL"===t.tagName||G._jQueryInterface.call(s.default(t),"toggle","INPUT"===n.tagName)}})).on(X,$,(function(e){var t=s.default(e.target).closest(Q)[0];s.default(t).toggleClass(F,/^focus(in)?$/.test(e.type))})),s.default(window).on(K,(function(){for(var e=[].slice.call(document.querySelectorAll(V)),t=0,n=e.length;t<n;t++){var i=e[t],s=i.querySelector(U);s.checked||s.hasAttribute("checked")?i.classList.add(H):i.classList.remove(H)}for(var r=0,o=(e=[].slice.call(document.querySelectorAll(W))).length;r<o;r++){var a=e[r];"true"===a.getAttribute("aria-pressed")?a.classList.add(H):a.classList.remove(H)}})),s.default.fn[I]=G._jQueryInterface,s.default.fn[I].Constructor=G,s.default.fn[I].noConflict=function(){return s.default.fn[I]=q,G._jQueryInterface};var J="carousel",Z="4.6.0",ee="bs.carousel",te="."+ee,ne=".data-api",ie=s.default.fn[J],se=37,re=39,oe=500,ae=40,le={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},ce={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},ue="next",de="prev",he="left",fe="right",pe="slide"+te,me="slid"+te,ge="keydown"+te,ye="mouseenter"+te,ve="mouseleave"+te,be="touchstart"+te,we="touchmove"+te,_e="touchend"+te,Te="pointerdown"+te,Ee="pointerup"+te,Ce="dragstart"+te,ke="load"+te+ne,xe="click"+te+ne,Se="carousel",Ae="active",Ne="slide",De="carousel-item-right",Pe="carousel-item-left",Ie="carousel-item-next",Le="carousel-item-prev",Oe="pointer-event",je=".active",Me=".active.carousel-item",qe=".carousel-item",He=".carousel-item img",Re=".carousel-item-next, .carousel-item-prev",Fe=".carousel-indicators",$e="[data-slide], [data-slide-to]",Be='[data-ride="carousel"]',We={TOUCH:"touch",PEN:"pen"},Ve=function(){function e(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._element=e,this._indicatorsElement=this._element.querySelector(Fe),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=e.prototype;return t.next=function(){this._isSliding||this._slide(ue)},t.nextWhenVisible=function(){var e=s.default(this._element);!document.hidden&&e.is(":visible")&&"hidden"!==e.css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(de)},t.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(Re)&&(y.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(e){var t=this;this._activeElement=this._element.querySelector(Me);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)s.default(this._element).one(me,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var i=e>n?ue:de;this._slide(i,this._items[e])}},t.dispose=function(){s.default(this._element).off(te),s.default.removeData(this._element,ee),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(e){return e=l({},le,e),y.typeCheckConfig(J,e,ce),e},t._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=ae)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0&&this.prev(),t<0&&this.next()}},t._addEventListeners=function(){var e=this;this._config.keyboard&&s.default(this._element).on(ge,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&s.default(this._element).on(ye,(function(t){return e.pause(t)})).on(ve,(function(t){return e.cycle(t)})),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var t=function(t){e._pointerEvent&&We[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},n=function(t){t.originalEvent.touches&&t.originalEvent.touches.length>1?e.touchDeltaX=0:e.touchDeltaX=t.originalEvent.touches[0].clientX-e.touchStartX},i=function(t){e._pointerEvent&&We[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),oe+e._config.interval))};s.default(this._element.querySelectorAll(He)).on(Ce,(function(e){return e.preventDefault()})),this._pointerEvent?(s.default(this._element).on(Te,(function(e){return t(e)})),s.default(this._element).on(Ee,(function(e){return i(e)})),this._element.classList.add(Oe)):(s.default(this._element).on(be,(function(e){return t(e)})),s.default(this._element).on(we,(function(e){return n(e)})),s.default(this._element).on(_e,(function(e){return i(e)})))}},t._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case se:e.preventDefault(),this.prev();break;case re:e.preventDefault(),this.next()}},t._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(qe)):[],this._items.indexOf(e)},t._getItemByDirection=function(e,t){var n=e===ue,i=e===de,s=this._getItemIndex(t),r=this._items.length-1;if((i&&0===s||n&&s===r)&&!this._config.wrap)return t;var o=(s+(e===de?-1:1))%this._items.length;return-1===o?this._items[this._items.length-1]:this._items[o]},t._triggerSlideEvent=function(e,t){var n=this._getItemIndex(e),i=this._getItemIndex(this._element.querySelector(Me)),r=s.default.Event(pe,{relatedTarget:e,direction:t,from:i,to:n});return s.default(this._element).trigger(r),r},t._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(je));s.default(t).removeClass(Ae);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&s.default(n).addClass(Ae)}},t._updateInterval=function(){var e=this._activeElement||this._element.querySelector(Me);if(e){var t=parseInt(e.getAttribute("data-interval"),10);t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval}},t._slide=function(e,t){var n,i,r,o=this,a=this._element.querySelector(Me),l=this._getItemIndex(a),c=t||a&&this._getItemByDirection(e,a),u=this._getItemIndex(c),d=Boolean(this._interval);if(e===ue?(n=Pe,i=Ie,r=he):(n=De,i=Le,r=fe),c&&s.default(c).hasClass(Ae))this._isSliding=!1;else if(!this._triggerSlideEvent(c,r).isDefaultPrevented()&&a&&c){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(c),this._activeElement=c;var h=s.default.Event(me,{relatedTarget:c,direction:r,from:l,to:u});if(s.default(this._element).hasClass(Ne)){s.default(c).addClass(i),y.reflow(c),s.default(a).addClass(n),s.default(c).addClass(n);var f=y.getTransitionDurationFromElement(a);s.default(a).one(y.TRANSITION_END,(function(){s.default(c).removeClass(n+" "+i).addClass(Ae),s.default(a).removeClass(Ae+" "+i+" "+n),o._isSliding=!1,setTimeout((function(){return s.default(o._element).trigger(h)}),0)})).emulateTransitionEnd(f)}else s.default(a).removeClass(Ae),s.default(c).addClass(Ae),this._isSliding=!1,s.default(this._element).trigger(h);d&&this.cycle()}},e._jQueryInterface=function(t){return this.each((function(){var n=s.default(this).data(ee),i=l({},le,s.default(this).data());"object"==typeof t&&(i=l({},i,t));var r="string"==typeof t?t:i.slide;if(n||(n=new e(this,i),s.default(this).data(ee,n)),"number"==typeof t)n.to(t);else if("string"==typeof r){if(void 0===n[r])throw new TypeError('No method named "'+r+'"');n[r]()}else i.interval&&i.ride&&(n.pause(),n.cycle())}))},e._dataApiClickHandler=function(t){var n=y.getSelectorFromElement(this);if(n){var i=s.default(n)[0];if(i&&s.default(i).hasClass(Se)){var r=l({},s.default(i).data(),s.default(this).data()),o=this.getAttribute("data-slide-to");o&&(r.interval=!1),e._jQueryInterface.call(s.default(i),r),o&&s.default(i).data(ee).to(o),t.preventDefault()}}},a(e,null,[{key:"VERSION",get:function(){return Z}},{key:"Default",get:function(){return le}}]),e}();s.default(document).on(xe,$e,Ve._dataApiClickHandler),s.default(window).on(ke,(function(){for(var e=[].slice.call(document.querySelectorAll(Be)),t=0,n=e.length;t<n;t++){var i=s.default(e[t]);Ve._jQueryInterface.call(i,i.data())}})),s.default.fn[J]=Ve._jQueryInterface,s.default.fn[J].Constructor=Ve,s.default.fn[J].noConflict=function(){return s.default.fn[J]=ie,Ve._jQueryInterface};var Ue="collapse",ze="4.6.0",Qe="bs.collapse",Ye="."+Qe,Xe=".data-api",Ke=s.default.fn[Ue],Ge={toggle:!0,parent:""},Je={toggle:"boolean",parent:"(string|element)"},Ze="show"+Ye,et="shown"+Ye,tt="hide"+Ye,nt="hidden"+Ye,it="click"+Ye+Xe,st="show",rt="collapse",ot="collapsing",at="collapsed",lt="width",ct="height",ut=".show, .collapsing",dt='[data-toggle="collapse"]',ht=function(){function e(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(dt)),i=0,s=n.length;i<s;i++){var r=n[i],o=y.getSelectorFromElement(r),a=[].slice.call(document.querySelectorAll(o)).filter((function(t){return t===e}));null!==o&&a.length>0&&(this._selector=o,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=e.prototype;return t.toggle=function(){s.default(this._element).hasClass(st)?this.hide():this.show()},t.show=function(){var t,n,i=this;if(!(this._isTransitioning||s.default(this._element).hasClass(st)||(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(ut)).filter((function(e){return"string"==typeof i._config.parent?e.getAttribute("data-parent")===i._config.parent:e.classList.contains(rt)}))).length&&(t=null),t&&(n=s.default(t).not(this._selector).data(Qe))&&n._isTransitioning))){var r=s.default.Event(Ze);if(s.default(this._element).trigger(r),!r.isDefaultPrevented()){t&&(e._jQueryInterface.call(s.default(t).not(this._selector),"hide"),n||s.default(t).data(Qe,null));var o=this._getDimension();s.default(this._element).removeClass(rt).addClass(ot),this._element.style[o]=0,this._triggerArray.length&&s.default(this._triggerArray).removeClass(at).attr("aria-expanded",!0),this.setTransitioning(!0);var a=function(){s.default(i._element).removeClass(ot).addClass(rt+" "+st),i._element.style[o]="",i.setTransitioning(!1),s.default(i._element).trigger(et)},l="scroll"+(o[0].toUpperCase()+o.slice(1)),c=y.getTransitionDurationFromElement(this._element);s.default(this._element).one(y.TRANSITION_END,a).emulateTransitionEnd(c),this._element.style[o]=this._element[l]+"px"}}},t.hide=function(){var e=this;if(!this._isTransitioning&&s.default(this._element).hasClass(st)){var t=s.default.Event(tt);if(s.default(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",y.reflow(this._element),s.default(this._element).addClass(ot).removeClass(rt+" "+st);var i=this._triggerArray.length;if(i>0)for(var r=0;r<i;r++){var o=this._triggerArray[r],a=y.getSelectorFromElement(o);null!==a&&(s.default([].slice.call(document.querySelectorAll(a))).hasClass(st)||s.default(o).addClass(at).attr("aria-expanded",!1))}this.setTransitioning(!0);var l=function(){e.setTransitioning(!1),s.default(e._element).removeClass(ot).addClass(rt).trigger(nt)};this._element.style[n]="";var c=y.getTransitionDurationFromElement(this._element);s.default(this._element).one(y.TRANSITION_END,l).emulateTransitionEnd(c)}}},t.setTransitioning=function(e){this._isTransitioning=e},t.dispose=function(){s.default.removeData(this._element,Qe),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(e){return(e=l({},Ge,e)).toggle=Boolean(e.toggle),y.typeCheckConfig(Ue,e,Je),e},t._getDimension=function(){return s.default(this._element).hasClass(lt)?lt:ct},t._getParent=function(){var t,n=this;y.isElement(this._config.parent)?(t=this._config.parent,void 0!==this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',r=[].slice.call(t.querySelectorAll(i));return s.default(r).each((function(t,i){n._addAriaAndCollapsedClass(e._getTargetFromElement(i),[i])})),t},t._addAriaAndCollapsedClass=function(e,t){var n=s.default(e).hasClass(st);t.length&&s.default(t).toggleClass(at,!n).attr("aria-expanded",n)},e._getTargetFromElement=function(e){var t=y.getSelectorFromElement(e);return t?document.querySelector(t):null},e._jQueryInterface=function(t){return this.each((function(){var n=s.default(this),i=n.data(Qe),r=l({},Ge,n.data(),"object"==typeof t&&t?t:{});if(!i&&r.toggle&&"string"==typeof t&&/show|hide/.test(t)&&(r.toggle=!1),i||(i=new e(this,r),n.data(Qe,i)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}}))},a(e,null,[{key:"VERSION",get:function(){return ze}},{key:"Default",get:function(){return Ge}}]),e}();s.default(document).on(it,dt,(function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var t=s.default(this),n=y.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(n));s.default(i).each((function(){var e=s.default(this),n=e.data(Qe)?"toggle":t.data();ht._jQueryInterface.call(e,n)}))})),s.default.fn[Ue]=ht._jQueryInterface,s.default.fn[Ue].Constructor=ht,s.default.fn[Ue].noConflict=function(){return s.default.fn[Ue]=Ke,ht._jQueryInterface};var ft="dropdown",pt="4.6.0",mt="bs.dropdown",gt="."+mt,yt=".data-api",vt=s.default.fn[ft],bt=27,wt=32,_t=9,Tt=38,Et=40,Ct=3,kt=new RegExp(Tt+"|"+Et+"|"+bt),xt="hide"+gt,St="hidden"+gt,At="show"+gt,Nt="shown"+gt,Dt="click"+gt,Pt="click"+gt+yt,It="keydown"+gt+yt,Lt="keyup"+gt+yt,Ot="disabled",jt="show",Mt="dropup",qt="dropright",Ht="dropleft",Rt="dropdown-menu-right",Ft="position-static",$t='[data-toggle="dropdown"]',Bt=".dropdown form",Wt=".dropdown-menu",Vt=".navbar-nav",Ut=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",zt="top-start",Qt="top-end",Yt="bottom-start",Xt="bottom-end",Kt="right-start",Gt="left-start",Jt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Zt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},en=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=e.prototype;return t.toggle=function(){if(!this._element.disabled&&!s.default(this._element).hasClass(Ot)){var t=s.default(this._menu).hasClass(jt);e._clearMenus(),t||this.show(!0)}},t.show=function(t){if(void 0===t&&(t=!1),!(this._element.disabled||s.default(this._element).hasClass(Ot)||s.default(this._menu).hasClass(jt))){var n={relatedTarget:this._element},i=s.default.Event(At,n),o=e._getParentFromElement(this._element);if(s.default(o).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar&&t){if(void 0===r.default)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var a=this._element;"parent"===this._config.reference?a=o:y.isElement(this._config.reference)&&(a=this._config.reference,void 0!==this._config.reference.jquery&&(a=this._config.reference[0])),"scrollParent"!==this._config.boundary&&s.default(o).addClass(Ft),this._popper=new r.default(a,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===s.default(o).closest(Vt).length&&s.default(document.body).children().on("mouseover",null,s.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),s.default(this._menu).toggleClass(jt),s.default(o).toggleClass(jt).trigger(s.default.Event(Nt,n))}}},t.hide=function(){if(!this._element.disabled&&!s.default(this._element).hasClass(Ot)&&s.default(this._menu).hasClass(jt)){var t={relatedTarget:this._element},n=s.default.Event(xt,t),i=e._getParentFromElement(this._element);s.default(i).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),s.default(this._menu).toggleClass(jt),s.default(i).toggleClass(jt).trigger(s.default.Event(St,t)))}},t.dispose=function(){s.default.removeData(this._element,mt),s.default(this._element).off(gt),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;s.default(this._element).on(Dt,(function(t){t.preventDefault(),t.stopPropagation(),e.toggle()}))},t._getConfig=function(e){return e=l({},this.constructor.Default,s.default(this._element).data(),e),y.typeCheckConfig(ft,e,this.constructor.DefaultType),e},t._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);t&&(this._menu=t.querySelector(Wt))}return this._menu},t._getPlacement=function(){var e=s.default(this._element.parentNode),t=Yt;return e.hasClass(Mt)?t=s.default(this._menu).hasClass(Rt)?Qt:zt:e.hasClass(qt)?t=Kt:e.hasClass(Ht)?t=Gt:s.default(this._menu).hasClass(Rt)&&(t=Xt),t},t._detectNavbar=function(){return s.default(this._element).closest(".navbar").length>0},t._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},t._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),l({},e,this._config.popperConfig)},e._jQueryInterface=function(t){return this.each((function(){var n=s.default(this).data(mt);if(n||(n=new e(this,"object"==typeof t?t:null),s.default(this).data(mt,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},e._clearMenus=function(t){if(!t||t.which!==Ct&&("keyup"!==t.type||t.which===_t))for(var n=[].slice.call(document.querySelectorAll($t)),i=0,r=n.length;i<r;i++){var o=e._getParentFromElement(n[i]),a=s.default(n[i]).data(mt),l={relatedTarget:n[i]};if(t&&"click"===t.type&&(l.clickEvent=t),a){var c=a._menu;if(s.default(o).hasClass(jt)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&t.which===_t)&&s.default.contains(o,t.target))){var u=s.default.Event(xt,l);s.default(o).trigger(u),u.isDefaultPrevented()||("ontouchstart"in document.documentElement&&s.default(document.body).children().off("mouseover",null,s.default.noop),n[i].setAttribute("aria-expanded","false"),a._popper&&a._popper.destroy(),s.default(c).removeClass(jt),s.default(o).removeClass(jt).trigger(s.default.Event(St,l)))}}}},e._getParentFromElement=function(e){var t,n=y.getSelectorFromElement(e);return n&&(t=document.querySelector(n)),t||e.parentNode},e._dataApiKeydownHandler=function(t){if(!(/input|textarea/i.test(t.target.tagName)?t.which===wt||t.which!==bt&&(t.which!==Et&&t.which!==Tt||s.default(t.target).closest(Wt).length):!kt.test(t.which))&&!this.disabled&&!s.default(this).hasClass(Ot)){var n=e._getParentFromElement(this),i=s.default(n).hasClass(jt);if(i||t.which!==bt){if(t.preventDefault(),t.stopPropagation(),!i||t.which===bt||t.which===wt)return t.which===bt&&s.default(n.querySelector($t)).trigger("focus"),void s.default(this).trigger("click");var r=[].slice.call(n.querySelectorAll(Ut)).filter((function(e){return s.default(e).is(":visible")}));if(0!==r.length){var o=r.indexOf(t.target);t.which===Tt&&o>0&&o--,t.which===Et&&o<r.length-1&&o++,o<0&&(o=0),r[o].focus()}}}},a(e,null,[{key:"VERSION",get:function(){return pt}},{key:"Default",get:function(){return Jt}},{key:"DefaultType",get:function(){return Zt}}]),e}();s.default(document).on(It,$t,en._dataApiKeydownHandler).on(It,Wt,en._dataApiKeydownHandler).on(Pt+" "+Lt,en._clearMenus).on(Pt,$t,(function(e){e.preventDefault(),e.stopPropagation(),en._jQueryInterface.call(s.default(this),"toggle")})).on(Pt,Bt,(function(e){e.stopPropagation()})),s.default.fn[ft]=en._jQueryInterface,s.default.fn[ft].Constructor=en,s.default.fn[ft].noConflict=function(){return s.default.fn[ft]=vt,en._jQueryInterface};var tn="modal",nn="4.6.0",sn="bs.modal",rn="."+sn,on=".data-api",an=s.default.fn[tn],ln=27,cn={backdrop:!0,keyboard:!0,focus:!0,show:!0},un={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},dn="hide"+rn,hn="hidePrevented"+rn,fn="hidden"+rn,pn="show"+rn,mn="shown"+rn,gn="focusin"+rn,yn="resize"+rn,vn="click.dismiss"+rn,bn="keydown.dismiss"+rn,wn="mouseup.dismiss"+rn,_n="mousedown.dismiss"+rn,Tn="click"+rn+on,En="modal-dialog-scrollable",Cn="modal-scrollbar-measure",kn="modal-backdrop",xn="modal-open",Sn="fade",An="show",Nn="modal-static",Dn=".modal-dialog",Pn=".modal-body",In='[data-toggle="modal"]',Ln='[data-dismiss="modal"]',On=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",jn=".sticky-top",Mn=function(){function e(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(Dn),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var t=e.prototype;return t.toggle=function(e){return this._isShown?this.hide():this.show(e)},t.show=function(e){var t=this;if(!this._isShown&&!this._isTransitioning){s.default(this._element).hasClass(Sn)&&(this._isTransitioning=!0);var n=s.default.Event(pn,{relatedTarget:e});s.default(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),s.default(this._element).on(vn,Ln,(function(e){return t.hide(e)})),s.default(this._dialog).on(_n,(function(){s.default(t._element).one(wn,(function(e){s.default(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return t._showElement(e)})))}},t.hide=function(e){var t=this;if(e&&e.preventDefault(),this._isShown&&!this._isTransitioning){var n=s.default.Event(dn);if(s.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=s.default(this._element).hasClass(Sn);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),s.default(document).off(gn),s.default(this._element).removeClass(An),s.default(this._element).off(vn),s.default(this._dialog).off(_n),i){var r=y.getTransitionDurationFromElement(this._element);s.default(this._element).one(y.TRANSITION_END,(function(e){return t._hideModal(e)})).emulateTransitionEnd(r)}else this._hideModal()}}},t.dispose=function(){[window,this._element,this._dialog].forEach((function(e){return s.default(e).off(rn)})),s.default(document).off(gn),s.default.removeData(this._element,sn),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(e){return e=l({},cn,e),y.typeCheckConfig(tn,e,un),e},t._triggerBackdropTransition=function(){var e=this,t=s.default.Event(hn);if(s.default(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(Nn);var i=y.getTransitionDurationFromElement(this._dialog);s.default(this._element).off(y.TRANSITION_END),s.default(this._element).one(y.TRANSITION_END,(function(){e._element.classList.remove(Nn),n||s.default(e._element).one(y.TRANSITION_END,(function(){e._element.style.overflowY=""})).emulateTransitionEnd(e._element,i)})).emulateTransitionEnd(i),this._element.focus()}},t._showElement=function(e){var t=this,n=s.default(this._element).hasClass(Sn),i=this._dialog?this._dialog.querySelector(Pn):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),s.default(this._dialog).hasClass(En)&&i?i.scrollTop=0:this._element.scrollTop=0,n&&y.reflow(this._element),s.default(this._element).addClass(An),this._config.focus&&this._enforceFocus();var r=s.default.Event(mn,{relatedTarget:e}),o=function(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,s.default(t._element).trigger(r)};if(n){var a=y.getTransitionDurationFromElement(this._dialog);s.default(this._dialog).one(y.TRANSITION_END,o).emulateTransitionEnd(a)}else o()},t._enforceFocus=function(){var e=this;s.default(document).off(gn).on(gn,(function(t){document!==t.target&&e._element!==t.target&&0===s.default(e._element).has(t.target).length&&e._element.focus()}))},t._setEscapeEvent=function(){var e=this;this._isShown?s.default(this._element).on(bn,(function(t){e._config.keyboard&&t.which===ln?(t.preventDefault(),e.hide()):e._config.keyboard||t.which!==ln||e._triggerBackdropTransition()})):this._isShown||s.default(this._element).off(bn)},t._setResizeEvent=function(){var e=this;this._isShown?s.default(window).on(yn,(function(t){return e.handleUpdate(t)})):s.default(window).off(yn)},t._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){s.default(document.body).removeClass(xn),e._resetAdjustments(),e._resetScrollbar(),s.default(e._element).trigger(fn)}))},t._removeBackdrop=function(){this._backdrop&&(s.default(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(e){var t=this,n=s.default(this._element).hasClass(Sn)?Sn:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=kn,n&&this._backdrop.classList.add(n),s.default(this._backdrop).appendTo(document.body),s.default(this._element).on(vn,(function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===t._config.backdrop?t._triggerBackdropTransition():t.hide())})),n&&y.reflow(this._backdrop),s.default(this._backdrop).addClass(An),!e)return;if(!n)return void e();var i=y.getTransitionDurationFromElement(this._backdrop);s.default(this._backdrop).one(y.TRANSITION_END,e).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){s.default(this._backdrop).removeClass(An);var r=function(){t._removeBackdrop(),e&&e()};if(s.default(this._element).hasClass(Sn)){var o=y.getTransitionDurationFromElement(this._backdrop);s.default(this._backdrop).one(y.TRANSITION_END,r).emulateTransitionEnd(o)}else r()}else e&&e()},t._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(e.left+e.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(On)),n=[].slice.call(document.querySelectorAll(jn));s.default(t).each((function(t,n){var i=n.style.paddingRight,r=s.default(n).css("padding-right");s.default(n).data("padding-right",i).css("padding-right",parseFloat(r)+e._scrollbarWidth+"px")})),s.default(n).each((function(t,n){var i=n.style.marginRight,r=s.default(n).css("margin-right");s.default(n).data("margin-right",i).css("margin-right",parseFloat(r)-e._scrollbarWidth+"px")}));var i=document.body.style.paddingRight,r=s.default(document.body).css("padding-right");s.default(document.body).data("padding-right",i).css("padding-right",parseFloat(r)+this._scrollbarWidth+"px")}s.default(document.body).addClass(xn)},t._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(On));s.default(e).each((function(e,t){var n=s.default(t).data("padding-right");s.default(t).removeData("padding-right"),t.style.paddingRight=n||""}));var t=[].slice.call(document.querySelectorAll(""+jn));s.default(t).each((function(e,t){var n=s.default(t).data("margin-right");void 0!==n&&s.default(t).css("margin-right",n).removeData("margin-right")}));var n=s.default(document.body).data("padding-right");s.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},t._getScrollbarWidth=function(){var e=document.createElement("div");e.className=Cn,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},e._jQueryInterface=function(t,n){return this.each((function(){var i=s.default(this).data(sn),r=l({},cn,s.default(this).data(),"object"==typeof t&&t?t:{});if(i||(i=new e(this,r),s.default(this).data(sn,i)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t](n)}else r.show&&i.show(n)}))},a(e,null,[{key:"VERSION",get:function(){return nn}},{key:"Default",get:function(){return cn}}]),e}();s.default(document).on(Tn,In,(function(e){var t,n=this,i=y.getSelectorFromElement(this);i&&(t=document.querySelector(i));var r=s.default(t).data(sn)?"toggle":l({},s.default(t).data(),s.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var o=s.default(t).one(pn,(function(e){e.isDefaultPrevented()||o.one(fn,(function(){s.default(n).is(":visible")&&n.focus()}))}));Mn._jQueryInterface.call(s.default(t),r,this)})),s.default.fn[tn]=Mn._jQueryInterface,s.default.fn[tn].Constructor=Mn,s.default.fn[tn].noConflict=function(){return s.default.fn[tn]=an,Mn._jQueryInterface};var qn=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Hn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Rn=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,Fn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function $n(e,t){var n=e.nodeName.toLowerCase();if(-1!==t.indexOf(n))return-1===qn.indexOf(n)||Boolean(e.nodeValue.match(Rn)||e.nodeValue.match(Fn));for(var i=t.filter((function(e){return e instanceof RegExp})),s=0,r=i.length;s<r;s++)if(n.match(i[s]))return!0;return!1}function Bn(e,t,n){if(0===e.length)return e;if(n&&"function"==typeof n)return n(e);for(var i=(new window.DOMParser).parseFromString(e,"text/html"),s=Object.keys(t),r=[].slice.call(i.body.querySelectorAll("*")),o=function(e,n){var i=r[e],o=i.nodeName.toLowerCase();if(-1===s.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var a=[].slice.call(i.attributes),l=[].concat(t["*"]||[],t[o]||[]);a.forEach((function(e){$n(e,l)||i.removeAttribute(e.nodeName)}))},a=0,l=r.length;a<l;a++)o(a);return i.body.innerHTML}var Wn="tooltip",Vn="4.6.0",Un="bs.tooltip",zn="."+Un,Qn=s.default.fn[Wn],Yn="bs-tooltip",Xn=new RegExp("(^|\\s)"+Yn+"\\S+","g"),Kn=["sanitize","whiteList","sanitizeFn"],Gn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},Jn={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Zn={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:Hn,popperConfig:null},ei="show",ti="out",ni={HIDE:"hide"+zn,HIDDEN:"hidden"+zn,SHOW:"show"+zn,SHOWN:"shown"+zn,INSERTED:"inserted"+zn,CLICK:"click"+zn,FOCUSIN:"focusin"+zn,FOCUSOUT:"focusout"+zn,MOUSEENTER:"mouseenter"+zn,MOUSELEAVE:"mouseleave"+zn},ii="fade",si="show",ri=".tooltip-inner",oi=".arrow",ai="hover",li="focus",ci="click",ui="manual",di=function(){function e(e,t){if(void 0===r.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var t=e.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=s.default(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),s.default(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(s.default(this.getTipElement()).hasClass(si))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),s.default.removeData(this.element,this.constructor.DATA_KEY),s.default(this.element).off(this.constructor.EVENT_KEY),s.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&s.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===s.default(this.element).css("display"))throw new Error("Please use show on visible elements");var t=s.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){s.default(this.element).trigger(t);var n=y.findShadowRoot(this.element),i=s.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!i)return;var o=this.getTipElement(),a=y.getUID(this.constructor.NAME);o.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&s.default(o).addClass(ii);var l="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,c=this._getAttachment(l);this.addAttachmentClass(c);var u=this._getContainer();s.default(o).data(this.constructor.DATA_KEY,this),s.default.contains(this.element.ownerDocument.documentElement,this.tip)||s.default(o).appendTo(u),s.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new r.default(this.element,o,this._getPopperConfig(c)),s.default(o).addClass(si),s.default(o).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&s.default(document.body).children().on("mouseover",null,s.default.noop);var d=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,s.default(e.element).trigger(e.constructor.Event.SHOWN),t===ti&&e._leave(null,e)};if(s.default(this.tip).hasClass(ii)){var h=y.getTransitionDurationFromElement(this.tip);s.default(this.tip).one(y.TRANSITION_END,d).emulateTransitionEnd(h)}else d()}},t.hide=function(e){var t=this,n=this.getTipElement(),i=s.default.Event(this.constructor.Event.HIDE),r=function(){t._hoverState!==ei&&n.parentNode&&n.parentNode.removeChild(n),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),s.default(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(s.default(this.element).trigger(i),!i.isDefaultPrevented()){if(s.default(n).removeClass(si),"ontouchstart"in document.documentElement&&s.default(document.body).children().off("mouseover",null,s.default.noop),this._activeTrigger[ci]=!1,this._activeTrigger[li]=!1,this._activeTrigger[ai]=!1,s.default(this.tip).hasClass(ii)){var o=y.getTransitionDurationFromElement(n);s.default(n).one(y.TRANSITION_END,r).emulateTransitionEnd(o)}else r();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(e){s.default(this.getTipElement()).addClass(Yn+"-"+e)},t.getTipElement=function(){return this.tip=this.tip||s.default(this.config.template)[0],this.tip},t.setContent=function(){var e=this.getTipElement();this.setElementContent(s.default(e.querySelectorAll(ri)),this.getTitle()),s.default(e).removeClass(ii+" "+si)},t.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=Bn(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?s.default(t).parent().is(e)||e.empty().append(t):e.text(s.default(t).text())},t.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},t._getPopperConfig=function(e){var t=this;return l({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:oi},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},this.config.popperConfig)},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:y.isElement(this.config.container)?s.default(this.config.container):s.default(document).find(this.config.container)},t._getAttachment=function(e){return Jn[e.toUpperCase()]},t._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach((function(t){if("click"===t)s.default(e.element).on(e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if(t!==ui){var n=t===ai?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,i=t===ai?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;s.default(e.element).on(n,e.config.selector,(function(t){return e._enter(t)})).on(i,e.config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e.element&&e.hide()},s.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||s.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),s.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?li:ai]=!0),s.default(t.getTipElement()).hasClass(si)||t._hoverState===ei?t._hoverState=ei:(clearTimeout(t._timeout),t._hoverState=ei,t.config.delay&&t.config.delay.show?t._timeout=setTimeout((function(){t._hoverState===ei&&t.show()}),t.config.delay.show):t.show())},t._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||s.default(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),s.default(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?li:ai]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=ti,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout((function(){t._hoverState===ti&&t.hide()}),t.config.delay.hide):t.hide())},t._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},t._getConfig=function(e){var t=s.default(this.element).data();return Object.keys(t).forEach((function(e){-1!==Kn.indexOf(e)&&delete t[e]})),"number"==typeof(e=l({},this.constructor.Default,t,"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),y.typeCheckConfig(Wn,e,this.constructor.DefaultType),e.sanitize&&(e.template=Bn(e.template,e.whiteList,e.sanitizeFn)),e},t._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},t._cleanTipClass=function(){var e=s.default(this.getTipElement()),t=e.attr("class").match(Xn);null!==t&&t.length&&e.removeClass(t.join(""))},t._handlePopperPlacementChange=function(e){this.tip=e.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},t._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(s.default(e).removeClass(ii),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},e._jQueryInterface=function(t){return this.each((function(){var n=s.default(this),i=n.data(Un),r="object"==typeof t&&t;if((i||!/dispose|hide/.test(t))&&(i||(i=new e(this,r),n.data(Un,i)),"string"==typeof t)){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}}))},a(e,null,[{key:"VERSION",get:function(){return Vn}},{key:"Default",get:function(){return Zn}},{key:"NAME",get:function(){return Wn}},{key:"DATA_KEY",get:function(){return Un}},{key:"Event",get:function(){return ni}},{key:"EVENT_KEY",get:function(){return zn}},{key:"DefaultType",get:function(){return Gn}}]),e}();s.default.fn[Wn]=di._jQueryInterface,s.default.fn[Wn].Constructor=di,s.default.fn[Wn].noConflict=function(){return s.default.fn[Wn]=Qn,di._jQueryInterface};var hi="popover",fi="4.6.0",pi="bs.popover",mi="."+pi,gi=s.default.fn[hi],yi="bs-popover",vi=new RegExp("(^|\\s)"+yi+"\\S+","g"),bi=l({},di.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),wi=l({},di.DefaultType,{content:"(string|element|function)"}),_i="fade",Ti="show",Ei=".popover-header",Ci=".popover-body",ki={HIDE:"hide"+mi,HIDDEN:"hidden"+mi,SHOW:"show"+mi,SHOWN:"shown"+mi,INSERTED:"inserted"+mi,CLICK:"click"+mi,FOCUSIN:"focusin"+mi,FOCUSOUT:"focusout"+mi,MOUSEENTER:"mouseenter"+mi,MOUSELEAVE:"mouseleave"+mi},xi=function(e){function t(){return e.apply(this,arguments)||this}c(t,e);var n=t.prototype;return n.isWithContent=function(){return this.getTitle()||this._getContent()},n.addAttachmentClass=function(e){s.default(this.getTipElement()).addClass(yi+"-"+e)},n.getTipElement=function(){return this.tip=this.tip||s.default(this.config.template)[0],this.tip},n.setContent=function(){var e=s.default(this.getTipElement());this.setElementContent(e.find(Ei),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(Ci),t),e.removeClass(_i+" "+Ti)},n._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},n._cleanTipClass=function(){var e=s.default(this.getTipElement()),t=e.attr("class").match(vi);null!==t&&t.length>0&&e.removeClass(t.join(""))},t._jQueryInterface=function(e){return this.each((function(){var n=s.default(this).data(pi),i="object"==typeof e?e:null;if((n||!/dispose|hide/.test(e))&&(n||(n=new t(this,i),s.default(this).data(pi,n)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},a(t,null,[{key:"VERSION",get:function(){return fi}},{key:"Default",get:function(){return bi}},{key:"NAME",get:function(){return hi}},{key:"DATA_KEY",get:function(){return pi}},{key:"Event",get:function(){return ki}},{key:"EVENT_KEY",get:function(){return mi}},{key:"DefaultType",get:function(){return wi}}]),t}(di);s.default.fn[hi]=xi._jQueryInterface,s.default.fn[hi].Constructor=xi,s.default.fn[hi].noConflict=function(){return s.default.fn[hi]=gi,xi._jQueryInterface};var Si="scrollspy",Ai="4.6.0",Ni="bs.scrollspy",Di="."+Ni,Pi=".data-api",Ii=s.default.fn[Si],Li={offset:10,method:"auto",target:""},Oi={offset:"number",method:"string",target:"(string|element)"},ji="activate"+Di,Mi="scroll"+Di,qi="load"+Di+Pi,Hi="dropdown-item",Ri="active",Fi='[data-spy="scroll"]',$i=".nav, .list-group",Bi=".nav-link",Wi=".nav-item",Vi=".list-group-item",Ui=".dropdown",zi=".dropdown-item",Qi=".dropdown-toggle",Yi="offset",Xi="position",Ki=function(){function e(e,t){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+Bi+","+this._config.target+" "+Vi+","+this._config.target+" "+zi,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,s.default(this._scrollElement).on(Mi,(function(e){return n._process(e)})),this.refresh(),this._process()}var t=e.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?Yi:Xi,n="auto"===this._config.method?t:this._config.method,i=n===Xi?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(e){var t,r=y.getSelectorFromElement(e);if(r&&(t=document.querySelector(r)),t){var o=t.getBoundingClientRect();if(o.width||o.height)return[s.default(t)[n]().top+i,r]}return null})).filter((function(e){return e})).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))},t.dispose=function(){s.default.removeData(this._element,Ni),s.default(this._scrollElement).off(Di),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(e){if("string"!=typeof(e=l({},Li,"object"==typeof e&&e?e:{})).target&&y.isElement(e.target)){var t=s.default(e.target).attr("id");t||(t=y.getUID(Si),s.default(e.target).attr("id",t)),e.target="#"+t}return y.typeCheckConfig(Si,e,Oi),e},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var s=this._offsets.length;s--;)this._activeTarget!==this._targets[s]&&e>=this._offsets[s]&&(void 0===this._offsets[s+1]||e<this._offsets[s+1])&&this._activate(this._targets[s])}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",").map((function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'})),n=s.default([].slice.call(document.querySelectorAll(t.join(","))));n.hasClass(Hi)?(n.closest(Ui).find(Qi).addClass(Ri),n.addClass(Ri)):(n.addClass(Ri),n.parents($i).prev(Bi+", "+Vi).addClass(Ri),n.parents($i).prev(Wi).children(Bi).addClass(Ri)),s.default(this._scrollElement).trigger(ji,{relatedTarget:e})},t._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(e){return e.classList.contains(Ri)})).forEach((function(e){return e.classList.remove(Ri)}))},e._jQueryInterface=function(t){return this.each((function(){var n=s.default(this).data(Ni);if(n||(n=new e(this,"object"==typeof t&&t),s.default(this).data(Ni,n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},a(e,null,[{key:"VERSION",get:function(){return Ai}},{key:"Default",get:function(){return Li}}]),e}();s.default(window).on(qi,(function(){for(var e=[].slice.call(document.querySelectorAll(Fi)),t=e.length;t--;){var n=s.default(e[t]);Ki._jQueryInterface.call(n,n.data())}})),s.default.fn[Si]=Ki._jQueryInterface,s.default.fn[Si].Constructor=Ki,s.default.fn[Si].noConflict=function(){return s.default.fn[Si]=Ii,Ki._jQueryInterface};var Gi="tab",Ji="4.6.0",Zi="bs.tab",es="."+Zi,ts=".data-api",ns=s.default.fn[Gi],is="hide"+es,ss="hidden"+es,rs="show"+es,os="shown"+es,as="click"+es+ts,ls="dropdown-menu",cs="active",us="disabled",ds="fade",hs="show",fs=".dropdown",ps=".nav, .list-group",ms=".active",gs="> li > .active",ys='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',vs=".dropdown-toggle",bs="> .dropdown-menu .active",ws=function(){function e(e){this._element=e}var t=e.prototype;return t.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&s.default(this._element).hasClass(cs)||s.default(this._element).hasClass(us))){var t,n,i=s.default(this._element).closest(ps)[0],r=y.getSelectorFromElement(this._element);if(i){var o="UL"===i.nodeName||"OL"===i.nodeName?gs:ms;n=(n=s.default.makeArray(s.default(i).find(o)))[n.length-1]}var a=s.default.Event(is,{relatedTarget:this._element}),l=s.default.Event(rs,{relatedTarget:n});if(n&&s.default(n).trigger(a),s.default(this._element).trigger(l),!l.isDefaultPrevented()&&!a.isDefaultPrevented()){r&&(t=document.querySelector(r)),this._activate(this._element,i);var c=function(){var t=s.default.Event(ss,{relatedTarget:e._element}),i=s.default.Event(os,{relatedTarget:n});s.default(n).trigger(t),s.default(e._element).trigger(i)};t?this._activate(t,t.parentNode,c):c()}}},t.dispose=function(){s.default.removeData(this._element,Zi),this._element=null},t._activate=function(e,t,n){var i=this,r=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?s.default(t).children(ms):s.default(t).find(gs))[0],o=n&&r&&s.default(r).hasClass(ds),a=function(){return i._transitionComplete(e,r,n)};if(r&&o){var l=y.getTransitionDurationFromElement(r);s.default(r).removeClass(hs).one(y.TRANSITION_END,a).emulateTransitionEnd(l)}else a()},t._transitionComplete=function(e,t,n){if(t){s.default(t).removeClass(cs);var i=s.default(t.parentNode).find(bs)[0];i&&s.default(i).removeClass(cs),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(s.default(e).addClass(cs),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),y.reflow(e),e.classList.contains(ds)&&e.classList.add(hs),e.parentNode&&s.default(e.parentNode).hasClass(ls)){var r=s.default(e).closest(fs)[0];if(r){var o=[].slice.call(r.querySelectorAll(vs));s.default(o).addClass(cs)}e.setAttribute("aria-expanded",!0)}n&&n()},e._jQueryInterface=function(t){return this.each((function(){var n=s.default(this),i=n.data(Zi);if(i||(i=new e(this),n.data(Zi,i)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}}))},a(e,null,[{key:"VERSION",get:function(){return Ji}}]),e}();s.default(document).on(as,ys,(function(e){e.preventDefault(),ws._jQueryInterface.call(s.default(this),"show")})),s.default.fn[Gi]=ws._jQueryInterface,s.default.fn[Gi].Constructor=ws,s.default.fn[Gi].noConflict=function(){return s.default.fn[Gi]=ns,ws._jQueryInterface};var _s="toast",Ts="4.6.0",Es="bs.toast",Cs="."+Es,ks=s.default.fn[_s],xs="click.dismiss"+Cs,Ss="hide"+Cs,As="hidden"+Cs,Ns="show"+Cs,Ds="shown"+Cs,Ps="fade",Is="hide",Ls="show",Os="showing",js={animation:"boolean",autohide:"boolean",delay:"number"},Ms={animation:!0,autohide:!0,delay:500},qs='[data-dismiss="toast"]',Hs=function(){function e(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var t=e.prototype;return t.show=function(){var e=this,t=s.default.Event(Ns);if(s.default(this._element).trigger(t),!t.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add(Ps);var n=function(){e._element.classList.remove(Os),e._element.classList.add(Ls),s.default(e._element).trigger(Ds),e._config.autohide&&(e._timeout=setTimeout((function(){e.hide()}),e._config.delay))};if(this._element.classList.remove(Is),y.reflow(this._element),this._element.classList.add(Os),this._config.animation){var i=y.getTransitionDurationFromElement(this._element);s.default(this._element).one(y.TRANSITION_END,n).emulateTransitionEnd(i)}else n()}},t.hide=function(){if(this._element.classList.contains(Ls)){var e=s.default.Event(Ss);s.default(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},t.dispose=function(){this._clearTimeout(),this._element.classList.contains(Ls)&&this._element.classList.remove(Ls),s.default(this._element).off(xs),s.default.removeData(this._element,Es),this._element=null,this._config=null},t._getConfig=function(e){return e=l({},Ms,s.default(this._element).data(),"object"==typeof e&&e?e:{}),y.typeCheckConfig(_s,e,this.constructor.DefaultType),e},t._setListeners=function(){var e=this;s.default(this._element).on(xs,qs,(function(){return e.hide()}))},t._close=function(){var e=this,t=function(){e._element.classList.add(Is),s.default(e._element).trigger(As)};if(this._element.classList.remove(Ls),this._config.animation){var n=y.getTransitionDurationFromElement(this._element);s.default(this._element).one(y.TRANSITION_END,t).emulateTransitionEnd(n)}else t()},t._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},e._jQueryInterface=function(t){return this.each((function(){var n=s.default(this),i=n.data(Es);if(i||(i=new e(this,"object"==typeof t&&t),n.data(Es,i)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t](this)}}))},a(e,null,[{key:"VERSION",get:function(){return Ts}},{key:"DefaultType",get:function(){return js}},{key:"Default",get:function(){return Ms}}]),e}();s.default.fn[_s]=Hs._jQueryInterface,s.default.fn[_s].Constructor=Hs,s.default.fn[_s].noConflict=function(){return s.default.fn[_s]=ks,Hs._jQueryInterface},e.Alert=P,e.Button=G,e.Carousel=Ve,e.Collapse=ht,e.Dropdown=en,e.Modal=Mn,e.Popover=xi,e.Scrollspy=Ki,e.Tab=ws,e.Toast=Hs,e.Tooltip=di,e.Util=y,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(4692),n(8851))},4692:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(i,s){"use strict";var r=[],o=Object.getPrototypeOf,a=r.slice,l=r.flat?function(e){return r.flat.call(e)}:function(e){return r.concat.apply([],e)},c=r.push,u=r.indexOf,d={},h=d.toString,f=d.hasOwnProperty,p=f.toString,m=p.call(Object),g={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},v=function(e){return null!=e&&e===e.window},b=i.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function _(e,t,n){var i,s,r=(n=n||b).createElement("script");if(r.text=e,t)for(i in w)(s=t[i]||t.getAttribute&&t.getAttribute(i))&&r.setAttribute(i,s);n.head.appendChild(r).parentNode.removeChild(r)}function T(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var E="3.6.0",C=function(e,t){return new C.fn.init(e,t)};function k(e){var t=!!e&&"length"in e&&e.length,n=T(e);return!y(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}C.fn=C.prototype={jquery:E,constructor:C,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(e){return this.pushStack(C.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(C.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:r.sort,splice:r.splice},C.extend=C.fn.extend=function(){var e,t,n,i,s,r,o=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[a]||{},a++),"object"==typeof o||y(o)||(o={}),a===l&&(o=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)i=e[t],"__proto__"!==t&&o!==i&&(c&&i&&(C.isPlainObject(i)||(s=Array.isArray(i)))?(n=o[t],r=s&&!Array.isArray(n)?[]:s||C.isPlainObject(n)?n:{},s=!1,o[t]=C.extend(c,r,i)):void 0!==i&&(o[t]=i));return o},C.extend({expando:"jQuery"+(E+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e))&&(!(t=o(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&p.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){_(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(k(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(k(Object(e))?C.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,s=e.length;i<n;i++)e[s++]=t[i];return e.length=s,e},grep:function(e,t,n){for(var i=[],s=0,r=e.length,o=!n;s<r;s++)!t(e[s],s)!==o&&i.push(e[s]);return i},map:function(e,t,n){var i,s,r=0,o=[];if(k(e))for(i=e.length;r<i;r++)null!=(s=t(e[r],r,n))&&o.push(s);else for(r in e)null!=(s=t(e[r],r,n))&&o.push(s);return l(o)},guid:1,support:g}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=r[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var x=function(e){var t,n,i,s,r,o,a,l,c,u,d,h,f,p,m,g,y,v,b,w="sizzle"+1*new Date,_=e.document,T=0,E=0,C=le(),k=le(),x=le(),S=le(),A=function(e,t){return e===t&&(d=!0),0},N={}.hasOwnProperty,D=[],P=D.pop,I=D.push,L=D.push,O=D.slice,j=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",q="[\\x20\\t\\r\\n\\f]",H="(?:\\\\[\\da-fA-F]{1,6}"+q+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+q+"*("+H+")(?:"+q+"*([*^$|!~]?=)"+q+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+q+"*\\]",F=":("+H+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",$=new RegExp(q+"+","g"),B=new RegExp("^"+q+"+|((?:^|[^\\\\])(?:\\\\.)*)"+q+"+$","g"),W=new RegExp("^"+q+"*,"+q+"*"),V=new RegExp("^"+q+"*([>+~]|"+q+")"+q+"*"),U=new RegExp(q+"|>"),z=new RegExp(F),Q=new RegExp("^"+H+"$"),Y={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+q+"*(even|odd|(([+-]|)(\\d*)n|)"+q+"*(?:([+-]|)"+q+"*(\\d+)|))"+q+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+q+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+q+"*((?:-\\d)?\\d*)"+q+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+q+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,se=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){h()},oe=we((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{L.apply(D=O.call(_.childNodes),_.childNodes),D[_.childNodes.length].nodeType}catch(e){L={apply:D.length?function(e,t){I.apply(e,O.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ae(e,t,i,s){var r,a,c,u,d,p,y,v=t&&t.ownerDocument,_=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==_&&9!==_&&11!==_)return i;if(!s&&(h(t),t=t||f,m)){if(11!==_&&(d=Z.exec(e)))if(r=d[1]){if(9===_){if(!(c=t.getElementById(r)))return i;if(c.id===r)return i.push(c),i}else if(v&&(c=v.getElementById(r))&&b(t,c)&&c.id===r)return i.push(c),i}else{if(d[2])return L.apply(i,t.getElementsByTagName(e)),i;if((r=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(i,t.getElementsByClassName(r)),i}if(n.qsa&&!S[e+" "]&&(!g||!g.test(e))&&(1!==_||"object"!==t.nodeName.toLowerCase())){if(y=e,v=t,1===_&&(U.test(e)||V.test(e))){for((v=ee.test(e)&&ye(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(ie,se):t.setAttribute("id",u=w)),a=(p=o(e)).length;a--;)p[a]=(u?"#"+u:":scope")+" "+be(p[a]);y=p.join(",")}try{return L.apply(i,v.querySelectorAll(y)),i}catch(t){S(e,!0)}finally{u===w&&t.removeAttribute("id")}}}return l(e.replace(B,"$1"),t,i,s)}function le(){var e=[];return function t(n,s){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=s}}function ce(e){return e[w]=!0,e}function ue(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),s=n.length;s--;)i.attrHandle[n[s]]=t}function he(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ce((function(t){return t=+t,ce((function(n,i){for(var s,r=e([],n.length,t),o=r.length;o--;)n[s=r[o]]&&(n[s]=!(i[s]=n[s]))}))}))}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},r=ae.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!X.test(t||n&&n.nodeName||"HTML")},h=ae.setDocument=function(e){var t,s,o=e?e.ownerDocument||e:_;return o!=f&&9===o.nodeType&&o.documentElement?(p=(f=o).documentElement,m=!r(f),_!=f&&(s=f.defaultView)&&s.top!==s&&(s.addEventListener?s.addEventListener("unload",re,!1):s.attachEvent&&s.attachEvent("onunload",re)),n.scope=ue((function(e){return p.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(f.getElementsByClassName),n.getById=ue((function(e){return p.appendChild(e).id=w,!f.getElementsByName||!f.getElementsByName(w).length})),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,i,s,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(s=t.getElementsByName(e),i=0;r=s[i++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],s=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[s++];)1===n.nodeType&&i.push(n);return i}return r},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},y=[],g=[],(n.qsa=J.test(f.querySelectorAll))&&(ue((function(e){var t;p.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+q+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+q+"*(?:value|"+M+")"),e.querySelectorAll("[id~="+w+"-]").length||g.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+q+"*name"+q+"*="+q+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+q+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=J.test(v=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),y.push("!=",F)})),g=g.length&&new RegExp(g.join("|")),y=y.length&&new RegExp(y.join("|")),t=J.test(p.compareDocumentPosition),b=t||J.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e==f||e.ownerDocument==_&&b(_,e)?-1:t==f||t.ownerDocument==_&&b(_,t)?1:u?j(u,e)-j(u,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,s=e.parentNode,r=t.parentNode,o=[e],a=[t];if(!s||!r)return e==f?-1:t==f?1:s?-1:r?1:u?j(u,e)-j(u,t):0;if(s===r)return he(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;o[i]===a[i];)i++;return i?he(o[i],a[i]):o[i]==_?-1:a[i]==_?1:0},f):f},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(h(e),n.matchesSelector&&m&&!S[t+" "]&&(!y||!y.test(t))&&(!g||!g.test(t)))try{var i=v.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){S(t,!0)}return ae(t,f,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!=f&&h(e),b(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=f&&h(e);var s=i.attrHandle[t.toLowerCase()],r=s&&N.call(i.attrHandle,t.toLowerCase())?s(e,t,!m):void 0;return void 0!==r?r:n.attributes||!m?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},ae.escape=function(e){return(e+"").replace(ie,se)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,i=[],s=0,r=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(A),d){for(;t=e[r++];)t===e[r]&&(s=i.push(r));for(;s--;)e.splice(i[s],1)}return u=null,e},s=ae.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=s(t);return n},i=ae.selectors={cacheLength:50,createPseudo:ce,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&z.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|"+q+")"+e+"("+q+"|$)"))&&C(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var s=ae.attr(i,e);return null==s?"!="===t:!t||(s+="","="===t?s===n:"!="===t?s!==n:"^="===t?n&&0===s.indexOf(n):"*="===t?n&&s.indexOf(n)>-1:"$="===t?n&&s.slice(-n.length)===n:"~="===t?(" "+s.replace($," ")+" ").indexOf(n)>-1:"|="===t&&(s===n||s.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,s){var r="nth"!==e.slice(0,3),o="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===s?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,h,f,p,m=r!==o?"nextSibling":"previousSibling",g=t.parentNode,y=a&&t.nodeName.toLowerCase(),v=!l&&!a,b=!1;if(g){if(r){for(;m;){for(h=t;h=h[m];)if(a?h.nodeName.toLowerCase()===y:1===h.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[o?g.firstChild:g.lastChild],o&&v){for(b=(f=(c=(u=(d=(h=g)[w]||(h[w]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===T&&c[1])&&c[2],h=f&&g.childNodes[f];h=++f&&h&&h[m]||(b=f=0)||p.pop();)if(1===h.nodeType&&++b&&h===t){u[e]=[T,f,b];break}}else if(v&&(b=f=(c=(u=(d=(h=t)[w]||(h[w]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===T&&c[1]),!1===b)for(;(h=++f&&h&&h[m]||(b=f=0)||p.pop())&&((a?h.nodeName.toLowerCase()!==y:1!==h.nodeType)||!++b||(v&&((u=(d=h[w]||(h[w]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[T,b]),h!==t)););return(b-=s)===i||b%i==0&&b/i>=0}}},PSEUDO:function(e,t){var n,s=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return s[w]?s(t):s.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var i,r=s(e,t),o=r.length;o--;)e[i=j(e,r[o])]=!(n[i]=r[o])})):function(e){return s(e,0,n)}):s}},pseudos:{not:ce((function(e){var t=[],n=[],i=a(e.replace(B,"$1"));return i[w]?ce((function(e,t,n,s){for(var r,o=i(e,null,s,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))})):function(e,s,r){return t[0]=e,i(t,null,r,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return ae(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||s(t)).indexOf(e)>-1}})),lang:ce((function(e){return Q.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ge((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ge((function(e,t,n){for(var i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:ge((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},i.pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=pe(t);function ve(){}function be(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function we(e,t,n){var i=t.dir,s=t.next,r=s||i,o=n&&"parentNode"===r,a=E++;return t.first?function(t,n,s){for(;t=t[i];)if(1===t.nodeType||o)return e(t,n,s);return!1}:function(t,n,l){var c,u,d,h=[T,a];if(l){for(;t=t[i];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||o)if(u=(d=t[w]||(t[w]={}))[t.uniqueID]||(d[t.uniqueID]={}),s&&s===t.nodeName.toLowerCase())t=t[i]||t;else{if((c=u[r])&&c[0]===T&&c[1]===a)return h[2]=c[2];if(u[r]=h,h[2]=e(t,n,l))return!0}return!1}}function _e(e){return e.length>1?function(t,n,i){for(var s=e.length;s--;)if(!e[s](t,n,i))return!1;return!0}:e[0]}function Te(e,t,n,i,s){for(var r,o=[],a=0,l=e.length,c=null!=t;a<l;a++)(r=e[a])&&(n&&!n(r,i,s)||(o.push(r),c&&t.push(a)));return o}function Ee(e,t,n,i,s,r){return i&&!i[w]&&(i=Ee(i)),s&&!s[w]&&(s=Ee(s,r)),ce((function(r,o,a,l){var c,u,d,h=[],f=[],p=o.length,m=r||function(e,t,n){for(var i=0,s=t.length;i<s;i++)ae(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),g=!e||!r&&t?m:Te(m,h,e,a,l),y=n?s||(r?e:p||i)?[]:o:g;if(n&&n(g,y,a,l),i)for(c=Te(y,f),i(c,[],a,l),u=c.length;u--;)(d=c[u])&&(y[f[u]]=!(g[f[u]]=d));if(r){if(s||e){if(s){for(c=[],u=y.length;u--;)(d=y[u])&&c.push(g[u]=d);s(null,y=[],c,l)}for(u=y.length;u--;)(d=y[u])&&(c=s?j(r,d):h[u])>-1&&(r[c]=!(o[c]=d))}}else y=Te(y===o?y.splice(p,y.length):y),s?s(null,o,y,l):L.apply(o,y)}))}function Ce(e){for(var t,n,s,r=e.length,o=i.relative[e[0].type],a=o||i.relative[" "],l=o?1:0,u=we((function(e){return e===t}),a,!0),d=we((function(e){return j(t,e)>-1}),a,!0),h=[function(e,n,i){var s=!o&&(i||n!==c)||((t=n).nodeType?u(e,n,i):d(e,n,i));return t=null,s}];l<r;l++)if(n=i.relative[e[l].type])h=[we(_e(h),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[w]){for(s=++l;s<r&&!i.relative[e[s].type];s++);return Ee(l>1&&_e(h),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(B,"$1"),n,l<s&&Ce(e.slice(l,s)),s<r&&Ce(e=e.slice(s)),s<r&&be(e))}h.push(n)}return _e(h)}return ve.prototype=i.filters=i.pseudos,i.setFilters=new ve,o=ae.tokenize=function(e,t){var n,s,r,o,a,l,c,u=k[e+" "];if(u)return t?0:u.slice(0);for(a=e,l=[],c=i.preFilter;a;){for(o in n&&!(s=W.exec(a))||(s&&(a=a.slice(s[0].length)||a),l.push(r=[])),n=!1,(s=V.exec(a))&&(n=s.shift(),r.push({value:n,type:s[0].replace(B," ")}),a=a.slice(n.length)),i.filter)!(s=Y[o].exec(a))||c[o]&&!(s=c[o](s))||(n=s.shift(),r.push({value:n,type:o,matches:s}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ae.error(e):k(e,l).slice(0)},a=ae.compile=function(e,t){var n,s=[],r=[],a=x[e+" "];if(!a){for(t||(t=o(e)),n=t.length;n--;)(a=Ce(t[n]))[w]?s.push(a):r.push(a);a=x(e,function(e,t){var n=t.length>0,s=e.length>0,r=function(r,o,a,l,u){var d,p,g,y=0,v="0",b=r&&[],w=[],_=c,E=r||s&&i.find.TAG("*",u),C=T+=null==_?1:Math.random()||.1,k=E.length;for(u&&(c=o==f||o||u);v!==k&&null!=(d=E[v]);v++){if(s&&d){for(p=0,o||d.ownerDocument==f||(h(d),a=!m);g=e[p++];)if(g(d,o||f,a)){l.push(d);break}u&&(T=C)}n&&((d=!g&&d)&&y--,r&&b.push(d))}if(y+=v,n&&v!==y){for(p=0;g=t[p++];)g(b,w,o,a);if(r){if(y>0)for(;v--;)b[v]||w[v]||(w[v]=P.call(l));w=Te(w)}L.apply(l,w),u&&!r&&w.length>0&&y+t.length>1&&ae.uniqueSort(l)}return u&&(T=C,c=_),b};return n?ce(r):r}(r,s)),a.selector=e}return a},l=ae.select=function(e,t,n,s){var r,l,c,u,d,h="function"==typeof e&&e,f=!s&&o(e=h.selector||e);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&i.relative[l[1].type]){if(!(t=(i.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(r=Y.needsContext.test(e)?0:l.length;r--&&(c=l[r],!i.relative[u=c.type]);)if((d=i.find[u])&&(s=d(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ye(t.parentNode)||t))){if(l.splice(r,1),!(e=s.length&&be(l)))return L.apply(n,s),n;break}}return(h||a(e,f))(s,t,!m,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=w.split("").sort(A).join("")===w,n.detectDuplicates=!!d,h(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||de(M,(function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),ae}(i);C.find=x,C.expr=x.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=x.uniqueSort,C.text=x.getText,C.isXMLDoc=x.isXML,C.contains=x.contains,C.escapeSelector=x.escape;var S=function(e,t,n){for(var i=[],s=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&C(e).is(n))break;i.push(e)}return i},A=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},N=C.expr.match.needsContext;function D(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var P=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function I(e,t,n){return y(t)?C.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?C.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?C.grep(e,(function(e){return u.call(t,e)>-1!==n})):C.filter(t,e,n)}C.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?C.find.matchesSelector(i,e)?[i]:[]:C.find.matches(e,C.grep(t,(function(e){return 1===e.nodeType})))},C.fn.extend({find:function(e){var t,n,i=this.length,s=this;if("string"!=typeof e)return this.pushStack(C(e).filter((function(){for(t=0;t<i;t++)if(C.contains(s[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)C.find(e,s[t],n);return i>1?C.uniqueSort(n):n},filter:function(e){return this.pushStack(I(this,e||[],!1))},not:function(e){return this.pushStack(I(this,e||[],!0))},is:function(e){return!!I(this,"string"==typeof e&&N.test(e)?C(e):e||[],!1).length}});var L,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var i,s;if(!e)return this;if(n=n||L,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:O.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),P.test(i[1])&&C.isPlainObject(t))for(i in t)y(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(s=b.getElementById(i[2]))&&(this[0]=s,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,L=C(b);var j=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function q(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(C.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,s=this.length,r=[],o="string"!=typeof e&&C(e);if(!N.test(e))for(;i<s;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&C.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?C.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?u.call(C(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return S(e,"parentNode")},parentsUntil:function(e,t,n){return S(e,"parentNode",n)},next:function(e){return q(e,"nextSibling")},prev:function(e){return q(e,"previousSibling")},nextAll:function(e){return S(e,"nextSibling")},prevAll:function(e){return S(e,"previousSibling")},nextUntil:function(e,t,n){return S(e,"nextSibling",n)},prevUntil:function(e,t,n){return S(e,"previousSibling",n)},siblings:function(e){return A((e.parentNode||{}).firstChild,e)},children:function(e){return A(e.firstChild)},contents:function(e){return null!=e.contentDocument&&o(e.contentDocument)?e.contentDocument:(D(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},(function(e,t){C.fn[e]=function(n,i){var s=C.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(s=C.filter(i,s)),this.length>1&&(M[e]||C.uniqueSort(s),j.test(e)&&s.reverse()),this.pushStack(s)}}));var H=/[^\x20\t\r\n\f]+/g;function R(e){return e}function F(e){throw e}function $(e,t,n,i){var s;try{e&&y(s=e.promise)?s.call(e).done(t).fail(n):e&&y(s=e.then)?s.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}C.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return C.each(e.match(H)||[],(function(e,n){t[n]=!0})),t}(e):C.extend({},e);var t,n,i,s,r=[],o=[],a=-1,l=function(){for(s=s||e.once,i=t=!0;o.length;a=-1)for(n=o.shift();++a<r.length;)!1===r[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=r.length,n=!1);e.memory||(n=!1),t=!1,s&&(r=n?[]:"")},c={add:function(){return r&&(n&&!t&&(a=r.length-1,o.push(n)),function t(n){C.each(n,(function(n,i){y(i)?e.unique&&c.has(i)||r.push(i):i&&i.length&&"string"!==T(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return C.each(arguments,(function(e,t){for(var n;(n=C.inArray(t,r,n))>-1;)r.splice(n,1),n<=a&&a--})),this},has:function(e){return e?C.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return s=o=[],r=n="",this},disabled:function(){return!r},lock:function(){return s=o=[],n||t||(r=n=""),this},locked:function(){return!!s},fireWith:function(e,n){return s||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},C.extend({Deferred:function(e){var t=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],n="pending",s={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var e=arguments;return C.Deferred((function(n){C.each(t,(function(t,i){var s=y(e[i[4]])&&e[i[4]];r[i[1]]((function(){var e=s&&s.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,s?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,s){var r=0;function o(e,t,n,s){return function(){var a=this,l=arguments,c=function(){var i,c;if(!(e<r)){if((i=n.apply(a,l))===t.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,y(c)?s?c.call(i,o(r,t,R,s),o(r,t,F,s)):(r++,c.call(i,o(r,t,R,s),o(r,t,F,s),o(r,t,R,t.notifyWith))):(n!==R&&(a=void 0,l=[i]),(s||t.resolveWith)(a,l))}},u=s?c:function(){try{c()}catch(i){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(i,u.stackTrace),e+1>=r&&(n!==F&&(a=void 0,l=[i]),t.rejectWith(a,l))}};e?u():(C.Deferred.getStackHook&&(u.stackTrace=C.Deferred.getStackHook()),i.setTimeout(u))}}return C.Deferred((function(i){t[0][3].add(o(0,i,y(s)?s:R,i.notifyWith)),t[1][3].add(o(0,i,y(e)?e:R)),t[2][3].add(o(0,i,y(n)?n:F))})).promise()},promise:function(e){return null!=e?C.extend(e,s):s}},r={};return C.each(t,(function(e,i){var o=i[2],a=i[5];s[i[1]]=o.add,a&&o.add((function(){n=a}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(i[3].fire),r[i[0]]=function(){return r[i[0]+"With"](this===r?void 0:this,arguments),this},r[i[0]+"With"]=o.fireWith})),s.promise(r),e&&e.call(r,r),r},when:function(e){var t=arguments.length,n=t,i=Array(n),s=a.call(arguments),r=C.Deferred(),o=function(e){return function(n){i[e]=this,s[e]=arguments.length>1?a.call(arguments):n,--t||r.resolveWith(i,s)}};if(t<=1&&($(e,r.done(o(n)).resolve,r.reject,!t),"pending"===r.state()||y(s[n]&&s[n].then)))return r.then();for(;n--;)$(s[n],o(n),r.reject);return r.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&B.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){i.setTimeout((function(){throw e}))};var W=C.Deferred();function V(){b.removeEventListener("DOMContentLoaded",V),i.removeEventListener("load",V),C.ready()}C.fn.ready=function(e){return W.then(e).catch((function(e){C.readyException(e)})),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==e&&--C.readyWait>0||W.resolveWith(b,[C]))}}),C.ready.then=W.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(C.ready):(b.addEventListener("DOMContentLoaded",V),i.addEventListener("load",V));var U=function(e,t,n,i,s,r,o){var a=0,l=e.length,c=null==n;if("object"===T(n))for(a in s=!0,n)U(e,t,a,n[a],!0,r,o);else if(void 0!==i&&(s=!0,y(i)||(o=!0),c&&(o?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(C(e),n)})),t))for(;a<l;a++)t(e[a],n,o?i:i.call(e[a],a,t(e[a],n)));return s?e:c?t.call(e):l?t(e[0],n):r},z=/^-ms-/,Q=/-([a-z])/g;function Y(e,t){return t.toUpperCase()}function X(e){return e.replace(z,"ms-").replace(Q,Y)}var K=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=C.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},K(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,s=this.cache(e);if("string"==typeof t)s[X(t)]=n;else for(i in t)s[X(i)]=t[i];return s},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in i?[t]:t.match(H)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||C.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!C.isEmptyObject(t)}};var J=new G,Z=new G,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}Z.set(e,t,n)}else n=void 0;return n}C.extend({hasData:function(e){return Z.hasData(e)||J.hasData(e)},data:function(e,t,n){return Z.access(e,t,n)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,n){return J.access(e,t,n)},_removeData:function(e,t){J.remove(e,t)}}),C.fn.extend({data:function(e,t){var n,i,s,r=this[0],o=r&&r.attributes;if(void 0===e){if(this.length&&(s=Z.get(r),1===r.nodeType&&!J.get(r,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(i=o[n].name).indexOf("data-")&&(i=X(i.slice(5)),ne(r,i,s[i]));J.set(r,"hasDataAttrs",!0)}return s}return"object"==typeof e?this.each((function(){Z.set(this,e)})):U(this,(function(t){var n;if(r&&void 0===t)return void 0!==(n=Z.get(r,e))||void 0!==(n=ne(r,e))?n:void 0;this.each((function(){Z.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Z.remove(this,e)}))}}),C.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=J.get(e,t),n&&(!i||Array.isArray(n)?i=J.access(e,t,C.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=C.queue(e,t),i=n.length,s=n.shift(),r=C._queueHooks(e,t);"inprogress"===s&&(s=n.shift(),i--),s&&("fx"===t&&n.unshift("inprogress"),delete r.stop,s.call(e,(function(){C.dequeue(e,t)}),r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:C.Callbacks("once memory").add((function(){J.remove(e,[t+"queue",n])}))})}}),C.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?C.queue(this[0],e):void 0===t?this:this.each((function(){var n=C.queue(this,e,t);C._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&C.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){C.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,s=C.Deferred(),r=this,o=this.length,a=function(){--i||s.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=J.get(r[o],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),s.promise(t)}});var ie=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,se=new RegExp("^(?:([+-])=|)("+ie+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],oe=b.documentElement,ae=function(e){return C.contains(e.ownerDocument,e)},le={composed:!0};oe.getRootNode&&(ae=function(e){return C.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===C.css(e,"display")};function ue(e,t,n,i){var s,r,o=20,a=i?function(){return i.cur()}:function(){return C.css(e,t,"")},l=a(),c=n&&n[3]||(C.cssNumber[t]?"":"px"),u=e.nodeType&&(C.cssNumber[t]||"px"!==c&&+l)&&se.exec(C.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;o--;)C.style(e,t,u+c),(1-r)*(1-(r=a()/l||.5))<=0&&(o=0),u/=r;u*=2,C.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,s=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=s)),s}var de={};function he(e){var t,n=e.ownerDocument,i=e.nodeName,s=de[i];return s||(t=n.body.appendChild(n.createElement(i)),s=C.css(t,"display"),t.parentNode.removeChild(t),"none"===s&&(s="block"),de[i]=s,s)}function fe(e,t){for(var n,i,s=[],r=0,o=e.length;r<o;r++)(i=e[r]).style&&(n=i.style.display,t?("none"===n&&(s[r]=J.get(i,"display")||null,s[r]||(i.style.display="")),""===i.style.display&&ce(i)&&(s[r]=he(i))):"none"!==n&&(s[r]="none",J.set(i,"display",n)));for(r=0;r<o;r++)null!=s[r]&&(e[r].style.display=s[r]);return e}C.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ce(this)?C(this).show():C(this).hide()}))}});var pe,me,ge=/^(?:checkbox|radio)$/i,ye=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i;pe=b.createDocumentFragment().appendChild(b.createElement("div")),(me=b.createElement("input")).setAttribute("type","radio"),me.setAttribute("checked","checked"),me.setAttribute("name","t"),pe.appendChild(me),g.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="<option></option>",g.option=!!pe.lastChild;var be={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function we(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&D(e,t)?C.merge([e],n):n}function _e(e,t){for(var n=0,i=e.length;n<i;n++)J.set(e[n],"globalEval",!t||J.get(t[n],"globalEval"))}be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,g.option||(be.optgroup=be.option=[1,"<select multiple='multiple'>","</select>"]);var Te=/<|&#?\w+;/;function Ee(e,t,n,i,s){for(var r,o,a,l,c,u,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((r=e[f])||0===r)if("object"===T(r))C.merge(h,r.nodeType?[r]:r);else if(Te.test(r)){for(o=o||d.appendChild(t.createElement("div")),a=(ye.exec(r)||["",""])[1].toLowerCase(),l=be[a]||be._default,o.innerHTML=l[1]+C.htmlPrefilter(r)+l[2],u=l[0];u--;)o=o.lastChild;C.merge(h,o.childNodes),(o=d.firstChild).textContent=""}else h.push(t.createTextNode(r));for(d.textContent="",f=0;r=h[f++];)if(i&&C.inArray(r,i)>-1)s&&s.push(r);else if(c=ae(r),o=we(d.appendChild(r),"script"),c&&_e(o),n)for(u=0;r=o[u++];)ve.test(r.type||"")&&n.push(r);return d}var Ce=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function xe(){return!1}function Se(e,t){return e===function(){try{return b.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,i,s,r){var o,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)Ae(e,a,n,i,t[a],r);return e}if(null==i&&null==s?(s=n,i=n=void 0):null==s&&("string"==typeof n?(s=i,i=void 0):(s=i,i=n,n=void 0)),!1===s)s=xe;else if(!s)return e;return 1===r&&(o=s,s=function(e){return C().off(e),o.apply(this,arguments)},s.guid=o.guid||(o.guid=C.guid++)),e.each((function(){C.event.add(this,t,s,i,n)}))}function Ne(e,t,n){n?(J.set(e,t,!1),C.event.add(e,t,{namespace:!1,handler:function(e){var i,s,r=J.get(this,t);if(1&e.isTrigger&&this[t]){if(r.length)(C.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=a.call(arguments),J.set(this,t,r),i=n(this,t),this[t](),r!==(s=J.get(this,t))||i?J.set(this,t,!1):s={},r!==s)return e.stopImmediatePropagation(),e.preventDefault(),s&&s.value}else r.length&&(J.set(this,t,{value:C.event.trigger(C.extend(r[0],C.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&C.event.add(e,t,ke)}C.event={global:{},add:function(e,t,n,i,s){var r,o,a,l,c,u,d,h,f,p,m,g=J.get(e);if(K(e))for(n.handler&&(n=(r=n).handler,s=r.selector),s&&C.find.matchesSelector(oe,s),n.guid||(n.guid=C.guid++),(l=g.events)||(l=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(H)||[""]).length;c--;)f=m=(a=Ce.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f&&(d=C.event.special[f]||{},f=(s?d.delegateType:d.bindType)||f,d=C.event.special[f]||{},u=C.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:s,needsContext:s&&C.expr.match.needsContext.test(s),namespace:p.join(".")},r),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,p,o)||e.addEventListener&&e.addEventListener(f,o)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),s?h.splice(h.delegateCount++,0,u):h.push(u),C.event.global[f]=!0)},remove:function(e,t,n,i,s){var r,o,a,l,c,u,d,h,f,p,m,g=J.hasData(e)&&J.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(H)||[""]).length;c--;)if(f=m=(a=Ce.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f){for(d=C.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=r=h.length;r--;)u=h[r],!s&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(r,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));o&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||C.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)C.event.remove(e,f+t[c],n,i,!0);C.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,i,s,r,o,a=new Array(arguments.length),l=C.event.fix(e),c=(J.get(this,"events")||Object.create(null))[l.type]||[],u=C.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(o=C.event.handlers.call(this,l,c),t=0;(s=o[t++])&&!l.isPropagationStopped();)for(l.currentTarget=s.elem,n=0;(r=s.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(i=((C.event.special[r.origType]||{}).handle||r.handler).apply(s.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,s,r,o,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(r=[],o={},n=0;n<l;n++)void 0===o[s=(i=t[n]).selector+" "]&&(o[s]=i.needsContext?C(s,this).index(c)>-1:C.find(s,this,null,[c]).length),o[s]&&r.push(i);r.length&&a.push({elem:c,handlers:r})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(C.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[C.expando]?e:new C.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ge.test(t.type)&&t.click&&D(t,"input")&&Ne(t,"click",ke),!1},trigger:function(e){var t=this||e;return ge.test(t.type)&&t.click&&D(t,"input")&&Ne(t,"click"),!0},_default:function(e){var t=e.target;return ge.test(t.type)&&t.click&&D(t,"input")&&J.get(t,"click")||D(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},C.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ke:xe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:xe,isPropagationStopped:xe,isImmediatePropagationStopped:xe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ke,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ke,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ke,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},C.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},(function(e,t){C.event.special[e]={setup:function(){return Ne(this,e,Se),!1},trigger:function(){return Ne(this,e),!0},_default:function(){return!0},delegateType:t}})),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){C.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,s=e.handleObj;return i&&(i===this||C.contains(this,i))||(e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t),n}}})),C.fn.extend({on:function(e,t,n,i){return Ae(this,e,t,n,i)},one:function(e,t,n,i){return Ae(this,e,t,n,i,1)},off:function(e,t,n){var i,s;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,C(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(s in e)this.off(s,t,e[s]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=xe),this.each((function(){C.event.remove(this,e,n,t)}))}});var De=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ie=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Le(e,t){return D(e,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Oe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function je(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,i,s,r,o,a;if(1===t.nodeType){if(J.hasData(e)&&(a=J.get(e).events))for(s in J.remove(t,"handle events"),a)for(n=0,i=a[s].length;n<i;n++)C.event.add(t,s,a[s][n]);Z.hasData(e)&&(r=Z.access(e),o=C.extend({},r),Z.set(t,o))}}function qe(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ge.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function He(e,t,n,i){t=l(t);var s,r,o,a,c,u,d=0,h=e.length,f=h-1,p=t[0],m=y(p);if(m||h>1&&"string"==typeof p&&!g.checkClone&&Pe.test(p))return e.each((function(s){var r=e.eq(s);m&&(t[0]=p.call(this,s,r.html())),He(r,t,n,i)}));if(h&&(r=(s=Ee(t,e[0].ownerDocument,!1,e,i)).firstChild,1===s.childNodes.length&&(s=r),r||i)){for(a=(o=C.map(we(s,"script"),Oe)).length;d<h;d++)c=s,d!==f&&(c=C.clone(c,!0,!0),a&&C.merge(o,we(c,"script"))),n.call(e[d],c,d);if(a)for(u=o[o.length-1].ownerDocument,C.map(o,je),d=0;d<a;d++)c=o[d],ve.test(c.type||"")&&!J.access(c,"globalEval")&&C.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?C._evalUrl&&!c.noModule&&C._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):_(c.textContent.replace(Ie,""),c,u))}return e}function Re(e,t,n){for(var i,s=t?C.filter(t,e):e,r=0;null!=(i=s[r]);r++)n||1!==i.nodeType||C.cleanData(we(i)),i.parentNode&&(n&&ae(i)&&_e(we(i,"script")),i.parentNode.removeChild(i));return e}C.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,s,r,o,a=e.cloneNode(!0),l=ae(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(o=we(a),i=0,s=(r=we(e)).length;i<s;i++)qe(r[i],o[i]);if(t)if(n)for(r=r||we(e),o=o||we(a),i=0,s=r.length;i<s;i++)Me(r[i],o[i]);else Me(e,a);return(o=we(a,"script")).length>0&&_e(o,!l&&we(e,"script")),a},cleanData:function(e){for(var t,n,i,s=C.event.special,r=0;void 0!==(n=e[r]);r++)if(K(n)){if(t=n[J.expando]){if(t.events)for(i in t.events)s[i]?C.event.remove(n,i):C.removeEvent(n,i,t.handle);n[J.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),C.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return U(this,(function(e){return void 0===e?C.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return He(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Le(this,e).appendChild(e)}))},prepend:function(){return He(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Le(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return He(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return He(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(we(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return C.clone(this,e,t)}))},html:function(e){return U(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!De.test(e)&&!be[(ye.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(C.cleanData(we(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return He(this,arguments,(function(t){var n=this.parentNode;C.inArray(this,e)<0&&(C.cleanData(we(this)),n&&n.replaceChild(t,this))}),e)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){C.fn[e]=function(e){for(var n,i=[],s=C(e),r=s.length-1,o=0;o<=r;o++)n=o===r?this:this.clone(!0),C(s[o])[t](n),c.apply(i,n.get());return this.pushStack(i)}}));var Fe=new RegExp("^("+ie+")(?!px)[a-z%]+$","i"),$e=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=i),t.getComputedStyle(e)},Be=function(e,t,n){var i,s,r={};for(s in t)r[s]=e.style[s],e.style[s]=t[s];for(s in i=n.call(e),t)e.style[s]=r[s];return i},We=new RegExp(re.join("|"),"i");function Ve(e,t,n){var i,s,r,o,a=e.style;return(n=n||$e(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||ae(e)||(o=C.style(e,t)),!g.pixelBoxStyles()&&Fe.test(o)&&We.test(t)&&(i=a.width,s=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=n.width,a.width=i,a.minWidth=s,a.maxWidth=r)),void 0!==o?o+"":o}function Ue(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",oe.appendChild(c).appendChild(u);var e=i.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",o=36===t(e.right),s=36===t(e.width),u.style.position="absolute",r=12===t(u.offsetWidth/3),oe.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,s,r,o,a,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,C.extend(g,{boxSizingReliable:function(){return e(),s},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),r},reliableTrDimensions:function(){var e,t,n,s;return null==a&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",oe.appendChild(e).appendChild(t).appendChild(n),s=i.getComputedStyle(t),a=parseInt(s.height,10)+parseInt(s.borderTopWidth,10)+parseInt(s.borderBottomWidth,10)===t.offsetHeight,oe.removeChild(e)),a}}))}();var ze=["Webkit","Moz","ms"],Qe=b.createElement("div").style,Ye={};function Xe(e){var t=C.cssProps[e]||Ye[e];return t||(e in Qe?e:Ye[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=ze.length;n--;)if((e=ze[n]+t)in Qe)return e}(e)||e)}var Ke=/^(none|table(?!-c[ea]).+)/,Ge=/^--/,Je={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:"0",fontWeight:"400"};function et(e,t,n){var i=se.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function tt(e,t,n,i,s,r){var o="width"===t?1:0,a=0,l=0;if(n===(i?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=C.css(e,n+re[o],!0,s)),i?("content"===n&&(l-=C.css(e,"padding"+re[o],!0,s)),"margin"!==n&&(l-=C.css(e,"border"+re[o]+"Width",!0,s))):(l+=C.css(e,"padding"+re[o],!0,s),"padding"!==n?l+=C.css(e,"border"+re[o]+"Width",!0,s):a+=C.css(e,"border"+re[o]+"Width",!0,s));return!i&&r>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-a-.5))||0),l}function nt(e,t,n){var i=$e(e),s=(!g.boxSizingReliable()||n)&&"border-box"===C.css(e,"boxSizing",!1,i),r=s,o=Ve(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(Fe.test(o)){if(!n)return o;o="auto"}return(!g.boxSizingReliable()&&s||!g.reliableTrDimensions()&&D(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===C.css(e,"display",!1,i))&&e.getClientRects().length&&(s="border-box"===C.css(e,"boxSizing",!1,i),(r=a in e)&&(o=e[a])),(o=parseFloat(o)||0)+tt(e,t,n||(s?"border":"content"),r,i,o)+"px"}function it(e,t,n,i,s){return new it.prototype.init(e,t,n,i,s)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ve(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,r,o,a=X(t),l=Ge.test(t),c=e.style;if(l||(t=Xe(a)),o=C.cssHooks[t]||C.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(s=o.get(e,!1,i))?s:c[t];"string"===(r=typeof n)&&(s=se.exec(n))&&s[1]&&(n=ue(e,t,s),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=s&&s[3]||(C.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var s,r,o,a=X(t);return Ge.test(t)||(t=Xe(a)),(o=C.cssHooks[t]||C.cssHooks[a])&&"get"in o&&(s=o.get(e,!0,n)),void 0===s&&(s=Ve(e,t,i)),"normal"===s&&t in Ze&&(s=Ze[t]),""===n||n?(r=parseFloat(s),!0===n||isFinite(r)?r||0:s):s}}),C.each(["height","width"],(function(e,t){C.cssHooks[t]={get:function(e,n,i){if(n)return!Ke.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?nt(e,t,i):Be(e,Je,(function(){return nt(e,t,i)}))},set:function(e,n,i){var s,r=$e(e),o=!g.scrollboxSize()&&"absolute"===r.position,a=(o||i)&&"border-box"===C.css(e,"boxSizing",!1,r),l=i?tt(e,t,i,a,r):0;return a&&o&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(r[t])-tt(e,t,"border",!1,r)-.5)),l&&(s=se.exec(n))&&"px"!==(s[3]||"px")&&(e.style[t]=n,n=C.css(e,t)),et(0,n,l)}}})),C.cssHooks.marginLeft=Ue(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-Be(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),C.each({margin:"",padding:"",border:"Width"},(function(e,t){C.cssHooks[e+t]={expand:function(n){for(var i=0,s={},r="string"==typeof n?n.split(" "):[n];i<4;i++)s[e+re[i]+t]=r[i]||r[i-2]||r[0];return s}},"margin"!==e&&(C.cssHooks[e+t].set=et)})),C.fn.extend({css:function(e,t){return U(this,(function(e,t,n){var i,s,r={},o=0;if(Array.isArray(t)){for(i=$e(e),s=t.length;o<s;o++)r[t[o]]=C.css(e,t[o],!1,i);return r}return void 0!==n?C.style(e,t,n):C.css(e,t)}),e,t,arguments.length>1)}}),C.Tween=it,it.prototype={constructor:it,init:function(e,t,n,i,s,r){this.elem=e,this.prop=n,this.easing=s||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(C.cssNumber[n]?"":"px")},cur:function(){var e=it.propHooks[this.prop];return e&&e.get?e.get(this):it.propHooks._default.get(this)},run:function(e){var t,n=it.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):it.propHooks._default.set(this),this}},it.prototype.init.prototype=it.prototype,it.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||!C.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}},it.propHooks.scrollTop=it.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=it.prototype.init,C.fx.step={};var st,rt,ot=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function lt(){rt&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(lt):i.setTimeout(lt,C.fx.interval),C.fx.tick())}function ct(){return i.setTimeout((function(){st=void 0})),st=Date.now()}function ut(e,t){var n,i=0,s={height:e};for(t=t?1:0;i<4;i+=2-t)s["margin"+(n=re[i])]=s["padding"+n]=e;return t&&(s.opacity=s.width=e),s}function dt(e,t,n){for(var i,s=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),r=0,o=s.length;r<o;r++)if(i=s[r].call(n,t,e))return i}function ht(e,t,n){var i,s,r=0,o=ht.prefilters.length,a=C.Deferred().always((function(){delete l.elem})),l=function(){if(s)return!1;for(var t=st||ct(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),r=0,o=c.tweens.length;r<o;r++)c.tweens[r].run(i);return a.notifyWith(e,[c,i,n]),i<1&&o?n:(o||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},n),originalProperties:t,originalOptions:n,startTime:st||ct(),duration:n.duration,tweens:[],createTween:function(t,n){var i=C.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(s)return this;for(s=!0;n<i;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,i,s,r,o;for(n in e)if(s=t[i=X(n)],r=e[n],Array.isArray(r)&&(s=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(o=C.cssHooks[i])&&"expand"in o)for(n in r=o.expand(r),delete e[i],r)n in e||(e[n]=r[n],t[n]=s);else t[i]=s}(u,c.opts.specialEasing);r<o;r++)if(i=ht.prefilters[r].call(c,e,u,c.opts))return y(i.stop)&&(C._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return C.map(u,dt,c),y(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),C.fx.timer(C.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}C.Animation=C.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,se.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(H);for(var n,i=0,s=e.length;i<s;i++)n=e[i],ht.tweeners[n]=ht.tweeners[n]||[],ht.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,s,r,o,a,l,c,u,d="width"in t||"height"in t,h=this,f={},p=e.style,m=e.nodeType&&ce(e),g=J.get(e,"fxshow");for(i in n.queue||(null==(o=C._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,h.always((function(){h.always((function(){o.unqueued--,C.queue(e,"fx").length||o.empty.fire()}))}))),t)if(s=t[i],ot.test(s)){if(delete t[i],r=r||"toggle"===s,s===(m?"hide":"show")){if("show"!==s||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||C.style(e,i)}if((l=!C.isEmptyObject(t))||!C.isEmptyObject(f))for(i in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=J.get(e,"display")),"none"===(u=C.css(e,"display"))&&(c?u=c:(fe([e],!0),c=e.style.display||c,u=C.css(e,"display"),fe([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===C.css(e,"float")&&(l||(h.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=J.access(e,"fxshow",{display:c}),r&&(g.hidden=!m),m&&fe([e],!0),h.done((function(){for(i in m||fe([e]),J.remove(e,"fxshow"),f)C.style(e,i,f[i])}))),l=dt(m?g[i]:0,i,h),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),C.speed=function(e,t,n){var i=e&&"object"==typeof e?C.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return C.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in C.fx.speeds?i.duration=C.fx.speeds[i.duration]:i.duration=C.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){y(i.old)&&i.old.call(this),i.queue&&C.dequeue(this,i.queue)},i},C.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var s=C.isEmptyObject(e),r=C.speed(t,n,i),o=function(){var t=ht(this,C.extend({},e),r);(s||J.get(this,"finish"))&&t.stop(!0)};return o.finish=o,s||!1===r.queue?this.each(o):this.queue(r.queue,o)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,s=null!=e&&e+"queueHooks",r=C.timers,o=J.get(this);if(s)o[s]&&o[s].stop&&i(o[s]);else for(s in o)o[s]&&o[s].stop&&at.test(s)&&i(o[s]);for(s=r.length;s--;)r[s].elem!==this||null!=e&&r[s].queue!==e||(r[s].anim.stop(n),t=!1,r.splice(s,1));!t&&n||C.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=J.get(this),i=n[e+"queue"],s=n[e+"queueHooks"],r=C.timers,o=i?i.length:0;for(n.finish=!0,C.queue(this,e,[]),s&&s.stop&&s.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<o;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),C.each(["toggle","show","hide"],(function(e,t){var n=C.fn[t];C.fn[t]=function(e,i,s){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ut(t,!0),e,i,s)}})),C.each({slideDown:ut("show"),slideUp:ut("hide"),slideToggle:ut("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){C.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),C.timers=[],C.fx.tick=function(){var e,t=0,n=C.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||C.fx.stop(),st=void 0},C.fx.timer=function(e){C.timers.push(e),C.fx.start()},C.fx.interval=13,C.fx.start=function(){rt||(rt=!0,lt())},C.fx.stop=function(){rt=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(e,t){return e=C.fx&&C.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var s=i.setTimeout(t,e);n.stop=function(){i.clearTimeout(s)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var ft,pt=C.expr.attrHandle;C.fn.extend({attr:function(e,t){return U(this,C.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){C.removeAttr(this,e)}))}}),C.extend({attr:function(e,t,n){var i,s,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?C.prop(e,t,n):(1===r&&C.isXMLDoc(e)||(s=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?ft:void 0)),void 0!==n?null===n?void C.removeAttr(e,t):s&&"set"in s&&void 0!==(i=s.set(e,n,t))?i:(e.setAttribute(t,n+""),n):s&&"get"in s&&null!==(i=s.get(e,t))?i:null==(i=C.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&D(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,s=t&&t.match(H);if(s&&1===e.nodeType)for(;n=s[i++];)e.removeAttribute(n)}}),ft={set:function(e,t,n){return!1===t?C.removeAttr(e,n):e.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=pt[t]||C.find.attr;pt[t]=function(e,t,i){var s,r,o=t.toLowerCase();return i||(r=pt[o],pt[o]=s,s=null!=n(e,t,i)?o:null,pt[o]=r),s}}));var mt=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function yt(e){return(e.match(H)||[]).join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function bt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(H)||[]}C.fn.extend({prop:function(e,t){return U(this,C.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[C.propFix[e]||e]}))}}),C.extend({prop:function(e,t,n){var i,s,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&C.isXMLDoc(e)||(t=C.propFix[t]||t,s=C.propHooks[t]),void 0!==n?s&&"set"in s&&void 0!==(i=s.set(e,n,t))?i:e[t]=n:s&&"get"in s&&null!==(i=s.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):mt.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){C.propFix[this.toLowerCase()]=this})),C.fn.extend({addClass:function(e){var t,n,i,s,r,o,a,l=0;if(y(e))return this.each((function(t){C(this).addClass(e.call(this,t,vt(this)))}));if((t=bt(e)).length)for(;n=this[l++];)if(s=vt(n),i=1===n.nodeType&&" "+yt(s)+" "){for(o=0;r=t[o++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");s!==(a=yt(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,s,r,o,a,l=0;if(y(e))return this.each((function(t){C(this).removeClass(e.call(this,t,vt(this)))}));if(!arguments.length)return this.attr("class","");if((t=bt(e)).length)for(;n=this[l++];)if(s=vt(n),i=1===n.nodeType&&" "+yt(s)+" "){for(o=0;r=t[o++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");s!==(a=yt(i))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):y(e)?this.each((function(n){C(this).toggleClass(e.call(this,n,vt(this),t),t)})):this.each((function(){var t,s,r,o;if(i)for(s=0,r=C(this),o=bt(e);t=o[s++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==n||((t=vt(this))&&J.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":J.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+yt(vt(n))+" ").indexOf(t)>-1)return!0;return!1}});var wt=/\r/g;C.fn.extend({val:function(e){var t,n,i,s=this[0];return arguments.length?(i=y(e),this.each((function(n){var s;1===this.nodeType&&(null==(s=i?e.call(this,n,C(this).val()):e)?s="":"number"==typeof s?s+="":Array.isArray(s)&&(s=C.map(s,(function(e){return null==e?"":e+""}))),(t=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,s,"value")||(this.value=s))}))):s?(t=C.valHooks[s.type]||C.valHooks[s.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(s,"value"))?n:"string"==typeof(n=s.value)?n.replace(wt,""):null==n?"":n:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:yt(C.text(e))}},select:{get:function(e){var t,n,i,s=e.options,r=e.selectedIndex,o="select-one"===e.type,a=o?null:[],l=o?r+1:s.length;for(i=r<0?l:o?r:0;i<l;i++)if(((n=s[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!D(n.parentNode,"optgroup"))){if(t=C(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,i,s=e.options,r=C.makeArray(t),o=s.length;o--;)((i=s[o]).selected=C.inArray(C.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),C.each(["radio","checkbox"],(function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=C.inArray(C(e).val(),t)>-1}},g.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.focusin="onfocusin"in i;var _t=/^(?:focusinfocus|focusoutblur)$/,Tt=function(e){e.stopPropagation()};C.extend(C.event,{trigger:function(e,t,n,s){var r,o,a,l,c,u,d,h,p=[n||b],m=f.call(e,"type")?e.type:e,g=f.call(e,"namespace")?e.namespace.split("."):[];if(o=h=a=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!_t.test(m+C.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[C.expando]?e:new C.Event(m,"object"==typeof e&&e)).isTrigger=s?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:C.makeArray(t,[e]),d=C.event.special[m]||{},s||!d.trigger||!1!==d.trigger.apply(n,t))){if(!s&&!d.noBubble&&!v(n)){for(l=d.delegateType||m,_t.test(l+m)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||b)&&p.push(a.defaultView||a.parentWindow||i)}for(r=0;(o=p[r++])&&!e.isPropagationStopped();)h=o,e.type=r>1?l:d.bindType||m,(u=(J.get(o,"events")||Object.create(null))[e.type]&&J.get(o,"handle"))&&u.apply(o,t),(u=c&&o[c])&&u.apply&&K(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=m,s||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!K(n)||c&&y(n[m])&&!v(n)&&((a=n[c])&&(n[c]=null),C.event.triggered=m,e.isPropagationStopped()&&h.addEventListener(m,Tt),n[m](),e.isPropagationStopped()&&h.removeEventListener(m,Tt),C.event.triggered=void 0,a&&(n[c]=a)),e.result}},simulate:function(e,t,n){var i=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(i,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each((function(){C.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}}),g.focusin||C.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){C.event.simulate(t,e.target,C.event.fix(e))};C.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,s=J.access(i,t);s||i.addEventListener(e,n,!0),J.access(i,t,(s||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,s=J.access(i,t)-1;s?J.access(i,t,s):(i.removeEventListener(e,n,!0),J.remove(i,t))}}}));var Et=i.location,Ct={guid:Date.now()},kt=/\?/;C.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||C.error("Invalid XML: "+(n?C.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var xt=/\[\]$/,St=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function Dt(e,t,n,i){var s;if(Array.isArray(t))C.each(t,(function(t,s){n||xt.test(e)?i(e,s):Dt(e+"["+("object"==typeof s&&null!=s?t:"")+"]",s,n,i)}));else if(n||"object"!==T(t))i(e,t);else for(s in t)Dt(e+"["+s+"]",t[s],n,i)}C.param=function(e,t){var n,i=[],s=function(e,t){var n=y(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,(function(){s(this.name,this.value)}));else for(n in e)Dt(n,e[n],t,s);return i.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&Nt.test(this.nodeName)&&!At.test(e)&&(this.checked||!ge.test(e))})).map((function(e,t){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,(function(e){return{name:t.name,value:e.replace(St,"\r\n")}})):{name:t.name,value:n.replace(St,"\r\n")}})).get()}});var Pt=/%20/g,It=/#.*$/,Lt=/([?&])_=[^&]*/,Ot=/^(.*?):[ \t]*([^\r\n]*)$/gm,jt=/^(?:GET|HEAD)$/,Mt=/^\/\//,qt={},Ht={},Rt="*/".concat("*"),Ft=b.createElement("a");function $t(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,s=0,r=t.toLowerCase().match(H)||[];if(y(n))for(;i=r[s++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Bt(e,t,n,i){var s={},r=e===Ht;function o(a){var l;return s[a]=!0,C.each(e[a]||[],(function(e,a){var c=a(t,n,i);return"string"!=typeof c||r||s[c]?r?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)})),l}return o(t.dataTypes[0])||!s["*"]&&o("*")}function Wt(e,t){var n,i,s=C.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((s[n]?e:i||(i={}))[n]=t[n]);return i&&C.extend(!0,e,i),e}Ft.href=Et.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Wt(Wt(e,C.ajaxSettings),t):Wt(C.ajaxSettings,e)},ajaxPrefilter:$t(qt),ajaxTransport:$t(Ht),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,s,r,o,a,l,c,u,d,h,f=C.ajaxSetup({},t),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?C(p):C.event,g=C.Deferred(),y=C.Callbacks("once memory"),v=f.statusCode||{},w={},_={},T="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(c){if(!o)for(o={};t=Ot.exec(r);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?r:null},setRequestHeader:function(e,t){return null==c&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)E.always(e[E.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||T;return n&&n.abort(t),k(0,t),this}};if(g.promise(E),f.url=((e||f.url||Et.href)+"").replace(Mt,Et.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(H)||[""],null==f.crossDomain){l=b.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Ft.protocol+"//"+Ft.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=C.param(f.data,f.traditional)),Bt(qt,f,t,E),c)return E;for(d in(u=C.event&&f.global)&&0==C.active++&&C.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!jt.test(f.type),s=f.url.replace(It,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Pt,"+")):(h=f.url.slice(s.length),f.data&&(f.processData||"string"==typeof f.data)&&(s+=(kt.test(s)?"&":"?")+f.data,delete f.data),!1===f.cache&&(s=s.replace(Lt,"$1"),h=(kt.test(s)?"&":"?")+"_="+Ct.guid+++h),f.url=s+h),f.ifModified&&(C.lastModified[s]&&E.setRequestHeader("If-Modified-Since",C.lastModified[s]),C.etag[s]&&E.setRequestHeader("If-None-Match",C.etag[s])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&E.setRequestHeader("Content-Type",f.contentType),E.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Rt+"; q=0.01":""):f.accepts["*"]),f.headers)E.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,E,f)||c))return E.abort();if(T="abort",y.add(f.complete),E.done(f.success),E.fail(f.error),n=Bt(Ht,f,t,E)){if(E.readyState=1,u&&m.trigger("ajaxSend",[E,f]),c)return E;f.async&&f.timeout>0&&(a=i.setTimeout((function(){E.abort("timeout")}),f.timeout));try{c=!1,n.send(w,k)}catch(e){if(c)throw e;k(-1,e)}}else k(-1,"No Transport");function k(e,t,o,l){var d,h,b,w,_,T=t;c||(c=!0,a&&i.clearTimeout(a),n=void 0,r=l||"",E.readyState=e>0?4:0,d=e>=200&&e<300||304===e,o&&(w=function(e,t,n){for(var i,s,r,o,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(s in a)if(a[s]&&a[s].test(i)){l.unshift(s);break}if(l[0]in n)r=l[0];else{for(s in n){if(!l[0]||e.converters[s+" "+l[0]]){r=s;break}o||(o=s)}r=r||o}if(r)return r!==l[0]&&l.unshift(r),n[r]}(f,E,o)),!d&&C.inArray("script",f.dataTypes)>-1&&C.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),w=function(e,t,n,i){var s,r,o,a,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(r=u.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(o=c[l+" "+r]||c["* "+r]))for(s in c)if((a=s.split(" "))[1]===r&&(o=c[l+" "+a[0]]||c["* "+a[0]])){!0===o?o=c[s]:!0!==c[s]&&(r=a[0],u.unshift(a[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(f,w,E,d),d?(f.ifModified&&((_=E.getResponseHeader("Last-Modified"))&&(C.lastModified[s]=_),(_=E.getResponseHeader("etag"))&&(C.etag[s]=_)),204===e||"HEAD"===f.type?T="nocontent":304===e?T="notmodified":(T=w.state,h=w.data,d=!(b=w.error))):(b=T,!e&&T||(T="error",e<0&&(e=0))),E.status=e,E.statusText=(t||T)+"",d?g.resolveWith(p,[h,T,E]):g.rejectWith(p,[E,T,b]),E.statusCode(v),v=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[E,f,d?h:b]),y.fireWith(p,[E,T]),u&&(m.trigger("ajaxComplete",[E,f]),--C.active||C.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return C.get(e,t,n,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],(function(e,t){C[t]=function(e,n,i,s){return y(n)&&(s=s||i,i=n,n=void 0),C.ajax(C.extend({url:e,type:t,dataType:s,data:n,success:i},C.isPlainObject(e)&&e))}})),C.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),C._evalUrl=function(e,t,n){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){C.globalEval(e,t,n)}})},C.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return y(e)?this.each((function(t){C(this).wrapInner(e.call(this,t))})):this.each((function(){var t=C(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=y(e);return this.each((function(n){C(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){C(this).replaceWith(this.childNodes)})),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},Ut=C.ajaxSettings.xhr();g.cors=!!Ut&&"withCredentials"in Ut,g.ajax=Ut=!!Ut,C.ajaxTransport((function(e){var t,n;if(g.cors||Ut&&!e.crossDomain)return{send:function(s,r){var o,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)a[o]=e.xhrFields[o];for(o in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest"),s)a.setRequestHeader(o,s[o]);t=function(e){return function(){t&&(t=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(Vt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),n=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout((function(){t&&n()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),C.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),C.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,s){t=C("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&s("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var zt,Qt=[],Yt=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Qt.pop()||C.expando+"_"+Ct.guid++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",(function(e,t,n){var s,r,o,a=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return s=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Yt,"$1"+s):!1!==e.jsonp&&(e.url+=(kt.test(e.url)?"&":"?")+e.jsonp+"="+s),e.converters["script json"]=function(){return o||C.error(s+" was not called"),o[0]},e.dataTypes[0]="json",r=i[s],i[s]=function(){o=arguments},n.always((function(){void 0===r?C(i).removeProp(s):i[s]=r,e[s]&&(e.jsonpCallback=t.jsonpCallback,Qt.push(s)),o&&y(r)&&r(o[0]),o=r=void 0})),"script"})),g.createHTMLDocument=((zt=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===zt.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((i=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(i)):t=b),r=!n&&[],(s=P.exec(e))?[t.createElement(s[1])]:(s=Ee([e],t,r),r&&r.length&&C(r).remove(),C.merge([],s.childNodes)));var i,s,r},C.fn.load=function(e,t,n){var i,s,r,o=this,a=e.indexOf(" ");return a>-1&&(i=yt(e.slice(a)),e=e.slice(0,a)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(s="POST"),o.length>0&&C.ajax({url:e,type:s||"GET",dataType:"html",data:t}).done((function(e){r=arguments,o.html(i?C("<div>").append(C.parseHTML(e)).find(i):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,r||[e.responseText,t,e])}))}),this},C.expr.pseudos.animated=function(e){return C.grep(C.timers,(function(t){return e===t.elem})).length},C.offset={setOffset:function(e,t,n){var i,s,r,o,a,l,c=C.css(e,"position"),u=C(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),r=C.css(e,"top"),l=C.css(e,"left"),("absolute"===c||"fixed"===c)&&(r+l).indexOf("auto")>-1?(o=(i=u.position()).top,s=i.left):(o=parseFloat(r)||0,s=parseFloat(l)||0),y(t)&&(t=t.call(e,n,C.extend({},a))),null!=t.top&&(d.top=t.top-a.top+o),null!=t.left&&(d.left=t.left-a.left+s),"using"in t?t.using.call(e,d):u.css(d)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){C.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],s={top:0,left:0};if("fixed"===C.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((s=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),s.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-s.top-C.css(i,"marginTop",!0),left:t.left-s.left-C.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||oe}))}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;C.fn[e]=function(i){return U(this,(function(e,i,s){var r;if(v(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===s)return r?r[t]:e[i];r?r.scrollTo(n?r.pageXOffset:s,n?s:r.pageYOffset):e[i]=s}),e,i,arguments.length)}})),C.each(["top","left"],(function(e,t){C.cssHooks[t]=Ue(g.pixelPosition,(function(e,n){if(n)return n=Ve(e,t),Fe.test(n)?C(e).position()[t]+"px":n}))})),C.each({Height:"height",Width:"width"},(function(e,t){C.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){C.fn[i]=function(s,r){var o=arguments.length&&(n||"boolean"!=typeof s),a=n||(!0===s||!0===r?"margin":"border");return U(this,(function(t,n,s){var r;return v(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===s?C.css(t,n,a):C.style(t,n,s,a)}),t,o?s:void 0,o)}}))})),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){C.fn[t]=function(e){return this.on(t,e)}})),C.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){C.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Xt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;C.proxy=function(e,t){var n,i,s;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return i=a.call(arguments,2),s=function(){return e.apply(t||this,i.concat(a.call(arguments)))},s.guid=e.guid=e.guid||C.guid++,s},C.holdReady=function(e){e?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=D,C.isFunction=y,C.isWindow=v,C.camelCase=X,C.type=T,C.now=Date.now,C.isNumeric=function(e){var t=C.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},C.trim=function(e){return null==e?"":(e+"").replace(Xt,"")},void 0===(n=function(){return C}.apply(t,[]))||(e.exports=n);var Kt=i.jQuery,Gt=i.$;return C.noConflict=function(e){return i.$===C&&(i.$=Gt),e&&i.jQuery===C&&(i.jQuery=Kt),C},void 0===s&&(i.jQuery=i.$=C),C}))},4330:function(e,t,n){var i=n(4692),s=n(4692);"object"==typeof navigator&&(e.exports=function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={addCSS:!0,thumbWidth:15,watch:!0};function c(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}var u=function(e){return null!=e?e.constructor:null},d=function(e,t){return!!(e&&t&&e instanceof t)},h=function(e){return null==e},f=function(e){return u(e)===Object},p=function(e){return u(e)===String},m=function(e){return Array.isArray(e)},g=function(e){return d(e,NodeList)},y=p,v=m,b=g,w=function(e){return d(e,Element)},_=function(e){return d(e,Event)},T=function(e){return h(e)||(p(e)||m(e)||g(e))&&!e.length||f(e)&&!Object.keys(e).length};function E(e,t){if(1>t){var n=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(n))}return Math.round(e/t)*t}var C=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),w(t)?this.element=t:y(t)&&(this.element=document.querySelector(t)),w(this.element)&&T(this.element.rangeTouch)&&(this.config=a({},l,{},n),this.init())}return function(e,n,i){n&&t(e.prototype,n),i&&t(e,i)}(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,n=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(e){t.element[n](e,(function(e){return t.set(e)}),!1)}))}},{key:"get",value:function(t){if(!e.enabled||!_(t))return null;var n,i=t.target,s=t.changedTouches[0],r=parseFloat(i.getAttribute("min"))||0,o=parseFloat(i.getAttribute("max"))||100,a=parseFloat(i.getAttribute("step"))||1,l=i.getBoundingClientRect(),c=100/l.width*(this.config.thumbWidth/2)/100;return 0>(n=100/l.width*(s.clientX-l.left))?n=0:100<n&&(n=100),50>n?n-=(100-2*n)*c:50<n&&(n+=2*(n-50)*c),r+E(n/100*(o-r),a)}},{key:"set",value:function(t){e.enabled&&_(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),function(e,t){if(e&&t){var n=new Event(t,{bubbles:!0});e.dispatchEvent(n)}}(t.target,"touchend"===t.type?"change":"input"))}}],[{key:"setup",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=null;if(T(t)||y(t)?i=Array.from(document.querySelectorAll(y(t)?t:'input[type="range"]')):w(t)?i=[t]:b(t)?i=Array.from(t):v(t)&&(i=t.filter(w)),T(i))return null;var s=a({},l,{},n);if(y(t)&&s.watch){var r=new MutationObserver((function(n){Array.from(n).forEach((function(n){Array.from(n.addedNodes).forEach((function(n){w(n)&&c(n,t)&&new e(n,s)}))}))}));r.observe(document.body,{childList:!0,subtree:!0})}return i.map((function(t){return new e(t,n)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}();const k=e=>null!=e?e.constructor:null,x=(e,t)=>Boolean(e&&t&&e instanceof t),S=e=>null==e,A=e=>k(e)===Object,N=e=>k(e)===String,D=e=>k(e)===Function,P=e=>Array.isArray(e),I=e=>x(e,NodeList),L=e=>S(e)||(N(e)||P(e)||I(e))&&!e.length||A(e)&&!Object.keys(e).length;var O=S,j=A,M=e=>k(e)===Number&&!Number.isNaN(e),q=N,H=e=>k(e)===Boolean,R=D,F=P,$=I,B=e=>null!==e&&"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument,W=e=>x(e,Event),V=e=>x(e,KeyboardEvent),U=e=>x(e,TextTrack)||!S(e)&&N(e.kind),z=e=>x(e,Promise)&&D(e.then),Q=e=>{if(x(e,window.URL))return!0;if(!N(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}},Y=L;const X=(()=>{const e=document.createElement("span"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n=Object.keys(t).find((t=>void 0!==e.style[t]));return!!q(n)&&t[n]})();function K(e,t){setTimeout((()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch(e){}}),t)}const G={isIE:Boolean(window.document.documentMode),isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||/(iPad|iPhone|iPod)/gi.test(navigator.platform)};function J(e,t){return t.split(".").reduce(((e,t)=>e&&e[t]),e)}function Z(e={},...t){if(!t.length)return e;const n=t.shift();return j(n)?(Object.keys(n).forEach((t=>{j(n[t])?(Object.keys(e).includes(t)||Object.assign(e,{[t]:{}}),Z(e[t],n[t])):Object.assign(e,{[t]:n[t]})})),Z(e,...t)):e}function ee(e,t){const n=e.length?e:[e];Array.from(n).reverse().forEach(((e,n)=>{const i=n>0?t.cloneNode(!0):t,s=e.parentNode,r=e.nextSibling;i.appendChild(e),r?s.insertBefore(i,r):s.appendChild(i)}))}function te(e,t){B(e)&&!Y(t)&&Object.entries(t).filter((([,e])=>!O(e))).forEach((([t,n])=>e.setAttribute(t,n)))}function ne(e,t,n){const i=document.createElement(e);return j(t)&&te(i,t),q(n)&&(i.innerText=n),i}function ie(e,t,n,i){B(t)&&t.appendChild(ne(e,n,i))}function se(e){$(e)||F(e)?Array.from(e).forEach(se):B(e)&&B(e.parentNode)&&e.parentNode.removeChild(e)}function re(e){if(!B(e))return;let{length:t}=e.childNodes;for(;t>0;)e.removeChild(e.lastChild),t-=1}function oe(e,t){return B(t)&&B(t.parentNode)&&B(e)?(t.parentNode.replaceChild(e,t),e):null}function ae(e,t){if(!q(e)||Y(e))return{};const n={},i=Z({},t);return e.split(",").forEach((e=>{const t=e.trim(),s=t.replace(".",""),r=t.replace(/[[\]]/g,"").split("="),[o]=r,a=r.length>1?r[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":q(i.class)?n.class=`${i.class} ${s}`:n.class=s;break;case"#":n.id=t.replace("#","");break;case"[":n[o]=a}})),Z(i,n)}function le(e,t){if(!B(e))return;let n=t;H(n)||(n=!e.hidden),e.hidden=n}function ce(e,t,n){if($(e))return Array.from(e).map((e=>ce(e,t,n)));if(B(e)){let i="toggle";return void 0!==n&&(i=n?"add":"remove"),e.classList[i](t),e.classList.contains(t)}return!1}function ue(e,t){return B(e)&&e.classList.contains(t)}function de(e,t){const{prototype:n}=Element;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(){return Array.from(document.querySelectorAll(t)).includes(this)}).call(e,t)}function he(e){return this.elements.container.querySelectorAll(e)}function fe(e){return this.elements.container.querySelector(e)}function pe(e=null,t=!1){B(e)&&(e.focus({preventScroll:!0}),t&&ce(e,this.config.classNames.tabFocus))}const me={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},ge={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,t,n){const i=G.isIPhone&&n&&ge.playsinline,s=ge[e]||"html5"!==t;return{api:s,ui:s&&ge.rangeInput&&("video"!==e||!G.isIPhone||i)}},pip:!(G.isIPhone||!R(ne("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||ne("video").disablePictureInPicture)),airplay:R(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(Y(e))return!1;const[t]=e.split("/");let n=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(me).includes(n)&&(n+=`; codecs="${me[e]}"`);try{return Boolean(n&&this.media.canPlayType(n).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!==X,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},ye=(()=>{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 ve(e,t,n,i=!1,s=!0,r=!1){if(!e||!("addEventListener"in e)||Y(t)||!R(n))return;const o=t.split(" ");let a=r;ye&&(a={passive:s,capture:r}),o.forEach((t=>{this&&this.eventListeners&&i&&this.eventListeners.push({element:e,type:t,callback:n,options:a}),e[i?"addEventListener":"removeEventListener"](t,n,a)}))}function be(e,t="",n,i=!0,s=!1){ve.call(this,e,t,n,!0,i,s)}function we(e,t="",n,i=!0,s=!1){ve.call(this,e,t,n,!1,i,s)}function _e(e,t="",n,i=!0,s=!1){const r=(...o)=>{we(e,t,r,i,s),n.apply(this,o)};ve.call(this,e,t,r,!0,i,s)}function Te(e,t="",n=!1,i={}){if(!B(e)||Y(t))return;const s=new CustomEvent(t,{bubbles:n,detail:{...i,plyr:this}});e.dispatchEvent(s)}function Ee(){this&&this.eventListeners&&(this.eventListeners.forEach((e=>{const{element:t,type:n,callback:i,options:s}=e;t.removeEventListener(n,i,s)})),this.eventListeners=[])}function Ce(){return new Promise((e=>this.ready?setTimeout(e,0):be.call(this,this.elements.container,"ready",e))).then((()=>{}))}function ke(e){z(e)&&e.then(null,(()=>{}))}function xe(e){return F(e)?e.filter(((t,n)=>e.indexOf(t)===n)):e}function Se(e,t){return F(e)&&e.length?e.reduce(((e,n)=>Math.abs(n-t)<Math.abs(e-t)?n:e)):null}function Ae(e){return!(!window||!window.CSS)&&window.CSS.supports(e)}const Ne=[[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,n])=>({...e,[t/n]:[t,n]})),{});function De(e){return!!(F(e)||q(e)&&e.includes(":"))&&(F(e)?e:e.split(":")).map(Number).every(M)}function Pe(e){if(!F(e)||!e.every(M))return null;const[t,n]=e,i=(e,t)=>0===t?e:i(t,e%t),s=i(t,n);return[t/s,n/s]}function Ie(e){const t=e=>De(e)?e.split(":").map(Number):null;let n=t(e);if(null===n&&(n=t(this.config.ratio)),null===n&&!Y(this.embed)&&F(this.embed.ratio)&&({ratio:n}=this.embed),null===n&&this.isHTML5){const{videoWidth:e,videoHeight:t}=this.media;n=[e,t]}return Pe(n)}function Le(e){if(!this.isVideo)return{};const{wrapper:t}=this.elements,n=Ie.call(this,e);if(!F(n))return{};const[i,s]=Pe(n),r=100/i*s;if(Ae(`aspect-ratio: ${i}/${s}`)?t.style.aspectRatio=`${i}/${s}`:t.style.paddingBottom=`${r}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const e=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),n=(e-r)/(e/50);this.fullscreen.active?t.style.paddingBottom=null:this.media.style.transform=`translateY(-${n}%)`}else this.isHTML5&&t.classList.add(this.config.classNames.videoFixedRatio);return{padding:r,ratio:n}}function Oe(e,t,n=.05){const i=e/t,s=Se(Object.keys(Ne),i);return Math.abs(s-i)<=n?Ne[s]:[e,t]}const je={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((e=>{const t=e.getAttribute("type");return!!Y(t)||ge.mime.call(this,t)})):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:je.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,Y(this.config.ratio)||Le.call(e),Object.defineProperty(e.media,"quality",{get(){const t=je.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&&R(e.config.quality.onChange))e.config.quality.onChange(t);else{const n=je.getSources.call(e).find((e=>Number(e.getAttribute("size"))===t));if(!n)return;const{currentTime:i,paused:s,preload:r,readyState:o,playbackRate:a}=e.media;e.media.src=n.getAttribute("src"),("none"!==r||o)&&(e.once("loadedmetadata",(()=>{e.speed=a,e.currentTime=i,s||ke(e.play())})),e.media.load())}Te.call(e,e.media,"qualitychange",!1,{quality:t})}}})},cancelRequests(){this.isHTML5&&(se(je.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function Me(e,...t){return Y(e)?e:e.toString().replace(/{(\d+)}/g,((e,n)=>t[n].toString()))}const qe=(e="",t="",n="")=>e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),n.toString()),He=(e="")=>e.toString().replace(/\w\S*/g,(e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()));function Re(e=""){let t=e.toString();return t=function(e=""){let t=e.toString();return t=qe(t,"-"," "),t=qe(t,"_"," "),t=He(t),qe(t," ","")}(t),t.charAt(0).toLowerCase()+t.slice(1)}function Fe(e){const t=document.createElement("div");return t.appendChild(e),t.innerHTML}const $e={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},Be={get(e="",t={}){if(Y(e)||Y(t))return"";let n=J(t.i18n,e);if(Y(n))return Object.keys($e).includes(e)?$e[e]:"";const i={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(i).forEach((([e,t])=>{n=qe(n,e,t)})),n}};class We{constructor(t){e(this,"get",(e=>{if(!We.supported||!this.enabled)return null;const t=window.localStorage.getItem(this.key);if(Y(t))return null;const n=JSON.parse(t);return q(e)&&e.length?n[e]:n})),e(this,"set",(e=>{if(!We.supported||!this.enabled)return;if(!j(e))return;let t=this.get();Y(t)&&(t={}),Z(t,e),window.localStorage.setItem(this.key,JSON.stringify(t))})),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 Ve(e,t="text"){return new Promise(((n,i)=>{try{const i=new XMLHttpRequest;if(!("withCredentials"in i))return;i.addEventListener("load",(()=>{if("text"===t)try{n(JSON.parse(i.responseText))}catch(e){n(i.responseText)}else n(i.response)})),i.addEventListener("error",(()=>{throw new Error(i.status)})),i.open("GET",e,!0),i.responseType=t,i.send()}catch(e){i(e)}}))}function Ue(e,t){if(!q(e))return;const n=q(t);let i=!1;const s=()=>null!==document.getElementById(t),r=(e,t)=>{e.innerHTML=t,n&&s()||document.body.insertAdjacentElement("afterbegin",e)};if(!n||!s()){const s=We.supported,o=document.createElement("div");if(o.setAttribute("hidden",""),n&&o.setAttribute("id",t),s){const e=window.localStorage.getItem(`cache-${t}`);if(i=null!==e,i){const t=JSON.parse(e);r(o,t.content)}}Ve(e).then((e=>{Y(e)||(s&&window.localStorage.setItem(`cache-${t}`,JSON.stringify({content:e})),r(o,e))})).catch((()=>{}))}}const ze=e=>Math.trunc(e/60/60%60,10);function Qe(e=0,t=!1,n=!1){if(!M(e))return Qe(void 0,t,n);const i=e=>`0${e}`.slice(-2);let s=ze(e);const r=(o=e,Math.trunc(o/60%60,10));var o;const a=(e=>Math.trunc(e%60,10))(e);return s=t||s>0?`${s}:`:"",`${n&&e>0?"-":""}${s}${i(r)}:${i(a)}`}const Ye={getIconUrl(){const e=new URL(this.config.iconUrl,window.location).host!==window.location.host||G.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:e}},findElements(){try{return this.elements.controls=fe.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:he.call(this,this.config.selectors.buttons.play),pause:fe.call(this,this.config.selectors.buttons.pause),restart:fe.call(this,this.config.selectors.buttons.restart),rewind:fe.call(this,this.config.selectors.buttons.rewind),fastForward:fe.call(this,this.config.selectors.buttons.fastForward),mute:fe.call(this,this.config.selectors.buttons.mute),pip:fe.call(this,this.config.selectors.buttons.pip),airplay:fe.call(this,this.config.selectors.buttons.airplay),settings:fe.call(this,this.config.selectors.buttons.settings),captions:fe.call(this,this.config.selectors.buttons.captions),fullscreen:fe.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=fe.call(this,this.config.selectors.progress),this.elements.inputs={seek:fe.call(this,this.config.selectors.inputs.seek),volume:fe.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:fe.call(this,this.config.selectors.display.buffer),currentTime:fe.call(this,this.config.selectors.display.currentTime),duration:fe.call(this,this.config.selectors.display.duration)},B(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 n="http://www.w3.org/2000/svg",i=Ye.getIconUrl.call(this),s=`${i.cors?"":i.url}#${this.config.iconPrefix}`,r=document.createElementNS(n,"svg");te(r,Z(t,{"aria-hidden":"true",focusable:"false"}));const o=document.createElementNS(n,"use"),a=`${s}-${e}`;return"href"in o&&o.setAttributeNS("http://www.w3.org/1999/xlink","href",a),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),r.appendChild(o),r},createLabel(e,t={}){const n=Be.get(e,this.config);return ne("span",{...t,class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")},n)},createBadge(e){if(Y(e))return null;const t=ne("span",{class:this.config.classNames.menu.value});return t.appendChild(ne("span",{class:this.config.classNames.menu.badge},e)),t},createButton(e,t){const n=Z({},t);let i=Re(e);const s={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((e=>{Object.keys(n).includes(e)&&(s[e]=n[e],delete n[e])})),"button"!==s.element||Object.keys(n).includes("type")||(n.type="button"),Object.keys(n).includes("class")?n.class.split(" ").some((e=>e===this.config.classNames.control))||Z(n,{class:`${n.class} ${this.config.classNames.control}`}):n.class=this.config.classNames.control,e){case"play":s.toggle=!0,s.label="play",s.labelPressed="pause",s.icon="play",s.iconPressed="pause";break;case"mute":s.toggle=!0,s.label="mute",s.labelPressed="unmute",s.icon="volume",s.iconPressed="muted";break;case"captions":s.toggle=!0,s.label="enableCaptions",s.labelPressed="disableCaptions",s.icon="captions-off",s.iconPressed="captions-on";break;case"fullscreen":s.toggle=!0,s.label="enterFullscreen",s.labelPressed="exitFullscreen",s.icon="enter-fullscreen",s.iconPressed="exit-fullscreen";break;case"play-large":n.class+=` ${this.config.classNames.control}--overlaid`,i="play",s.label="play",s.icon="play";break;default:Y(s.label)&&(s.label=i),Y(s.icon)&&(s.icon=e)}const r=ne(s.element);return s.toggle?(r.appendChild(Ye.createIcon.call(this,s.iconPressed,{class:"icon--pressed"})),r.appendChild(Ye.createIcon.call(this,s.icon,{class:"icon--not-pressed"})),r.appendChild(Ye.createLabel.call(this,s.labelPressed,{class:"label--pressed"})),r.appendChild(Ye.createLabel.call(this,s.label,{class:"label--not-pressed"}))):(r.appendChild(Ye.createIcon.call(this,s.icon)),r.appendChild(Ye.createLabel.call(this,s.label))),Z(n,ae(this.config.selectors.buttons[i],n)),te(r,n),"play"===i?(F(this.elements.buttons[i])||(this.elements.buttons[i]=[]),this.elements.buttons[i].push(r)):this.elements.buttons[i]=r,r},createRange(e,t){const n=ne("input",Z(ae(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]=n,Ye.updateRangeFill.call(this,n),C.setup(n),n},createProgress(e,t){const n=ne("progress",Z(ae(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){n.appendChild(ne("span",null,"0"));const t={played:"played",buffer:"buffered"}[e],i=t?Be.get(t,this.config):"";n.innerText=`% ${i.toLowerCase()}`}return this.elements.display[e]=n,n},createTime(e,t){const n=ae(this.config.selectors.display[e],t),i=ne("div",Z(n,{class:`${n.class?n.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":Be.get(e,this.config)}),"00:00");return this.elements.display[e]=i,i},bindMenuItemShortcuts(e,t){be.call(this,e,"keydown keyup",(n=>{if(![32,38,39,40].includes(n.which))return;if(n.preventDefault(),n.stopPropagation(),"keydown"===n.type)return;const i=de(e,'[role="menuitemradio"]');if(!i&&[32,39].includes(n.which))Ye.showMenuPanel.call(this,t,!0);else{let t;32!==n.which&&(40===n.which||i&&39===n.which?(t=e.nextElementSibling,B(t)||(t=e.parentNode.firstElementChild)):(t=e.previousElementSibling,B(t)||(t=e.parentNode.lastElementChild)),pe.call(this,t,!0))}}),!1),be.call(this,e,"keyup",(e=>{13===e.which&&Ye.focusFirstMenuItem.call(this,null,!0)}))},createMenuItem({value:e,list:t,type:n,title:i,badge:s=null,checked:r=!1}){const o=ae(this.config.selectors.inputs[n]),a=ne("button",Z(o,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${o.class?o.class:""}`.trim(),"aria-checked":r,value:e})),l=ne("span");l.innerHTML=i,B(s)&&l.appendChild(s),a.appendChild(l),Object.defineProperty(a,"checked",{enumerable:!0,get:()=>"true"===a.getAttribute("aria-checked"),set(e){e&&Array.from(a.parentNode.children).filter((e=>de(e,'[role="menuitemradio"]'))).forEach((e=>e.setAttribute("aria-checked","false"))),a.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(a,"click keyup",(t=>{if(!V(t)||32===t.which){switch(t.preventDefault(),t.stopPropagation(),a.checked=!0,n){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=parseFloat(e)}Ye.showMenuPanel.call(this,"home",V(t))}}),n,!1),Ye.bindMenuItemShortcuts.call(this,a,n),t.appendChild(a)},formatTime(e=0,t=!1){return M(e)?Qe(e,ze(this.duration)>0,t):e},updateTimeDisplay(e=null,t=0,n=!1){B(e)&&M(t)&&(e.innerText=Ye.formatTime(t,n))},updateVolume(){this.supported.ui&&(B(this.elements.inputs.volume)&&Ye.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),B(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange(e,t=0){B(e)&&(e.value=t,Ye.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!W(e))return;let t=0;const n=(e,t)=>{const n=M(t)?t:0,i=B(e)?e:this.elements.display.buffer;if(B(i)){i.value=n;const e=i.getElementsByTagName("span")[0];B(e)&&(e.childNodes[0].nodeValue=n)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":i=this.currentTime,s=this.duration,t=0===i||0===s||Number.isNaN(i)||Number.isNaN(s)?0:(i/s*100).toFixed(2),"timeupdate"===e.type&&Ye.setRange.call(this,this.elements.inputs.seek,t);break;case"playing":case"progress":n(this.elements.display.buffer,100*this.buffered)}var i,s},updateRangeFill(e){const t=W(e)?e.target:e;if(B(t)&&"range"===t.getAttribute("type")){if(de(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);const e=Ye.formatTime(this.currentTime),n=Ye.formatTime(this.duration),i=Be.get("seekLabel",this.config);t.setAttribute("aria-valuetext",i.replace("{currentTime}",e).replace("{duration}",n))}else if(de(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);G.isWebkit&&t.style.setProperty("--value",t.value/t.max*100+"%")}},updateSeekTooltip(e){if(!this.config.tooltips.seek||!B(this.elements.inputs.seek)||!B(this.elements.display.seekTooltip)||0===this.duration)return;const t=`${this.config.classNames.tooltip}--visible`,n=e=>ce(this.elements.display.seekTooltip,t,e);if(this.touch)return void n(!1);let i=0;const s=this.elements.progress.getBoundingClientRect();if(W(e))i=100/s.width*(e.pageX-s.left);else{if(!ue(this.elements.display.seekTooltip,t))return;i=parseFloat(this.elements.display.seekTooltip.style.left,10)}i<0?i=0:i>100&&(i=100),Ye.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*i),this.elements.display.seekTooltip.style.left=`${i}%`,W(e)&&["mouseenter","mouseleave"].includes(e.type)&&n("mouseenter"===e.type)},timeUpdate(e){const t=!B(this.elements.display.duration)&&this.config.invertTime;Ye.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||Ye.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return le(this.elements.display.currentTime,!0),void le(this.elements.progress,!0);B(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=B(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&Ye.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&Ye.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),Ye.updateSeekTooltip.call(this)},toggleMenuButton(e,t){le(this.elements.settings.buttons[e],!t)},updateSetting(e,t,n){const i=this.elements.settings.panels[e];let s=null,r=t;if("captions"===e)s=this.currentTrack;else{if(s=Y(n)?this[e]:n,Y(s)&&(s=this.config[e].default),!Y(this.options[e])&&!this.options[e].includes(s))return void this.debug.warn(`Unsupported value of '${s}' for ${e}`);if(!this.config[e].options.includes(s))return void this.debug.warn(`Disabled value of '${s}' for ${e}`)}if(B(r)||(r=i&&i.querySelector('[role="menu"]')),!B(r))return;this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=Ye.getLabel.call(this,e,s);const o=r&&r.querySelector(`[value="${s}"]`);B(o)&&(o.checked=!0)},getLabel(e,t){switch(e){case"speed":return 1===t?Be.get("normal",this.config):`${t}×`;case"quality":if(M(t)){const e=Be.get(`qualityLabel.${t}`,this.config);return e.length?e:`${t}p`}return He(t);case"captions":return Ge.getLabel.call(this);default:return null}},setQualityMenu(e){if(!B(this.elements.settings.panels.quality))return;const t="quality",n=this.elements.settings.panels.quality.querySelector('[role="menu"]');F(e)&&(this.options.quality=xe(e).filter((e=>this.config.quality.options.includes(e))));const i=!Y(this.options.quality)&&this.options.quality.length>1;if(Ye.toggleMenuButton.call(this,t,i),re(n),Ye.checkMenu.call(this),!i)return;const s=e=>{const t=Be.get(`qualityBadge.${e}`,this.config);return t.length?Ye.createBadge.call(this,t):null};this.options.quality.sort(((e,t)=>{const n=this.config.quality.options;return n.indexOf(e)>n.indexOf(t)?1:-1})).forEach((e=>{Ye.createMenuItem.call(this,{value:e,list:n,type:t,title:Ye.getLabel.call(this,"quality",e),badge:s(e)})})),Ye.updateSetting.call(this,t,n)},setCaptionsMenu(){if(!B(this.elements.settings.panels.captions))return;const e="captions",t=this.elements.settings.panels.captions.querySelector('[role="menu"]'),n=Ge.getTracks.call(this),i=Boolean(n.length);if(Ye.toggleMenuButton.call(this,e,i),re(t),Ye.checkMenu.call(this),!i)return;const s=n.map(((e,n)=>({value:n,checked:this.captions.toggled&&this.currentTrack===n,title:Ge.getLabel.call(this,e),badge:e.language&&Ye.createBadge.call(this,e.language.toUpperCase()),list:t,type:"language"})));s.unshift({value:-1,checked:!this.captions.toggled,title:Be.get("disabled",this.config),list:t,type:"language"}),s.forEach(Ye.createMenuItem.bind(this)),Ye.updateSetting.call(this,e,t)},setSpeedMenu(){if(!B(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 n=!Y(this.options.speed)&&this.options.speed.length>1;Ye.toggleMenuButton.call(this,e,n),re(t),Ye.checkMenu.call(this),n&&(this.options.speed.forEach((n=>{Ye.createMenuItem.call(this,{value:n,list:t,type:e,title:Ye.getLabel.call(this,"speed",n)})})),Ye.updateSetting.call(this,e,t))},checkMenu(){const{buttons:e}=this.elements.settings,t=!Y(e)&&Object.values(e).some((e=>!e.hidden));le(this.elements.settings.menu,!t)},focusFirstMenuItem(e,t=!1){if(this.elements.settings.popup.hidden)return;let n=e;B(n)||(n=Object.values(this.elements.settings.panels).find((e=>!e.hidden)));const i=n.querySelector('[role^="menuitem"]');pe.call(this,i,t)},toggleMenu(e){const{popup:t}=this.elements.settings,n=this.elements.buttons.settings;if(!B(t)||!B(n))return;const{hidden:i}=t;let s=i;if(H(e))s=e;else if(V(e)&&27===e.which)s=!1;else if(W(e)){const i=R(e.composedPath)?e.composedPath()[0]:e.target,r=t.contains(i);if(r||!r&&e.target!==n&&s)return}n.setAttribute("aria-expanded",s),le(t,!s),ce(this.elements.container,this.config.classNames.menu.open,s),s&&V(e)?Ye.focusFirstMenuItem.call(this,null,!0):s||i||pe.call(this,n,V(e))},getMenuSize(e){const t=e.cloneNode(!0);t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),e.parentNode.appendChild(t);const n=t.scrollWidth,i=t.scrollHeight;return se(t),{width:n,height:i}},showMenuPanel(e="",t=!1){const n=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!B(n))return;const i=n.parentNode,s=Array.from(i.children).find((e=>!e.hidden));if(ge.transitions&&!ge.reducedMotion){i.style.width=`${s.scrollWidth}px`,i.style.height=`${s.scrollHeight}px`;const e=Ye.getMenuSize.call(this,n),t=e=>{e.target===i&&["width","height"].includes(e.propertyName)&&(i.style.width="",i.style.height="",we.call(this,i,X,t))};be.call(this,i,X,t),i.style.width=`${e.width}px`,i.style.height=`${e.height}px`}le(s,!0),le(n,!1),Ye.focusFirstMenuItem.call(this,n,t)},setDownloadUrl(){const e=this.elements.buttons.download;B(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:t,createButton:n,createProgress:i,createRange:s,createTime:r,setQualityMenu:o,setSpeedMenu:a,showMenuPanel:l}=Ye;this.elements.controls=null,F(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(n.call(this,"play-large"));const c=ne("div",ae(this.config.selectors.controls.wrapper));this.elements.controls=c;const u={class:"plyr__controls__item"};return xe(F(this.config.controls)?this.config.controls:[]).forEach((o=>{if("restart"===o&&c.appendChild(n.call(this,"restart",u)),"rewind"===o&&c.appendChild(n.call(this,"rewind",u)),"play"===o&&c.appendChild(n.call(this,"play",u)),"fast-forward"===o&&c.appendChild(n.call(this,"fast-forward",u)),"progress"===o){const t=ne("div",{class:`${u.class} plyr__progress__container`}),n=ne("div",ae(this.config.selectors.progress));if(n.appendChild(s.call(this,"seek",{id:`plyr-seek-${e.id}`})),n.appendChild(i.call(this,"buffer")),this.config.tooltips.seek){const e=ne("span",{class:this.config.classNames.tooltip},"00:00");n.appendChild(e),this.elements.display.seekTooltip=e}this.elements.progress=n,t.appendChild(this.elements.progress),c.appendChild(t)}if("current-time"===o&&c.appendChild(r.call(this,"currentTime",u)),"duration"===o&&c.appendChild(r.call(this,"duration",u)),"mute"===o||"volume"===o){let{volume:t}=this.elements;if(B(t)&&c.contains(t)||(t=ne("div",Z({},u,{class:`${u.class} plyr__volume`.trim()})),this.elements.volume=t,c.appendChild(t)),"mute"===o&&t.appendChild(n.call(this,"mute")),"volume"===o&&!G.isIos){const n={max:1,step:.05,value:this.config.volume};t.appendChild(s.call(this,"volume",Z(n,{id:`plyr-volume-${e.id}`})))}}if("captions"===o&&c.appendChild(n.call(this,"captions",u)),"settings"===o&&!Y(this.config.settings)){const i=ne("div",Z({},u,{class:`${u.class} plyr__menu`.trim(),hidden:""}));i.appendChild(n.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const s=ne("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),r=ne("div"),o=ne("div",{id:`plyr-settings-${e.id}-home`}),a=ne("div",{role:"menu"});o.appendChild(a),r.appendChild(o),this.elements.settings.panels.home=o,this.config.settings.forEach((n=>{const i=ne("button",Z(ae(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,i,n),be.call(this,i,"click",(()=>{l.call(this,n,!1)}));const s=ne("span",null,Be.get(n,this.config)),o=ne("span",{class:this.config.classNames.menu.value});o.innerHTML=e[n],s.appendChild(o),i.appendChild(s),a.appendChild(i);const c=ne("div",{id:`plyr-settings-${e.id}-${n}`,hidden:""}),u=ne("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});u.appendChild(ne("span",{"aria-hidden":!0},Be.get(n,this.config))),u.appendChild(ne("span",{class:this.config.classNames.hidden},Be.get("menuBack",this.config))),be.call(this,c,"keydown",(e=>{37===e.which&&(e.preventDefault(),e.stopPropagation(),l.call(this,"home",!0))}),!1),be.call(this,u,"click",(()=>{l.call(this,"home",!1)})),c.appendChild(u),c.appendChild(ne("div",{role:"menu"})),r.appendChild(c),this.elements.settings.buttons[n]=i,this.elements.settings.panels[n]=c})),s.appendChild(r),i.appendChild(s),c.appendChild(i),this.elements.settings.popup=s,this.elements.settings.menu=i}if("pip"===o&&ge.pip&&c.appendChild(n.call(this,"pip",u)),"airplay"===o&&ge.airplay&&c.appendChild(n.call(this,"airplay",u)),"download"===o){const e=Z({},u,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(e.download="");const{download:t}=this.config.urls;!Q(t)&&this.isEmbed&&Z(e,{icon:`logo-${this.provider}`,label:this.provider}),c.appendChild(n.call(this,"download",e))}"fullscreen"===o&&c.appendChild(n.call(this,"fullscreen",u))})),this.isHTML5&&o.call(this,je.getQualityOptions.call(this)),a.call(this),c},inject(){if(this.config.loadSprite){const e=Ye.getIconUrl.call(this);e.cors&&Ue(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 n,i=!0;if(R(this.config.controls)&&(this.config.controls=this.config.controls.call(this,t)),this.config.controls||(this.config.controls=[]),B(this.config.controls)||q(this.config.controls)?e=this.config.controls:(e=Ye.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Ge.getLabel.call(this)}),i=!1),i&&q(this.config.controls)&&(e=(e=>{let n=e;return Object.entries(t).forEach((([e,t])=>{n=qe(n,`{${e}}`,t)})),n})(e)),q(this.config.selectors.controls.container)&&(n=document.querySelector(this.config.selectors.controls.container)),B(n)||(n=this.elements.container),n[B(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),B(this.elements.controls)||Ye.findElements.call(this),!Y(this.elements.buttons)){const e=e=>{const t=this.config.classNames.controlPressed;Object.defineProperty(e,"pressed",{enumerable:!0,get:()=>ue(e,t),set(n=!1){ce(e,t,n)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((t=>{F(t)||$(t)?Array.from(t).filter(Boolean).forEach(e):e(t)}))}if(G.isEdge&&K(n),this.config.tooltips.controls){const{classNames:e,selectors:t}=this.config,n=`${t.controls.wrapper} ${t.labels} .${e.hidden}`,i=he.call(this,n);Array.from(i).forEach((e=>{ce(e,this.config.classNames.hidden,!1),ce(e,this.config.classNames.tooltip,!0)}))}}};function Xe(e,t=!0){let n=e;if(t){const e=document.createElement("a");e.href=n,n=e.href}try{return new URL(n)}catch(e){return null}}function Ke(e){const t=new URLSearchParams;return j(e)&&Object.entries(e).forEach((([e,n])=>{t.set(e,n)})),t}const Ge={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!ge.textTracks)return void(F(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Ye.setCaptionsMenu.call(this));var e,t;if(B(this.elements.captions)||(this.elements.captions=ne("div",ae(this.config.selectors.captions)),e=this.elements.captions,t=this.elements.wrapper,B(e)&&B(t)&&t.parentNode.insertBefore(e,t.nextSibling)),G.isIE&&window.URL){const e=this.media.querySelectorAll("track");Array.from(e).forEach((e=>{const t=e.getAttribute("src"),n=Xe(t);null!==n&&n.hostname!==window.location.href.hostname&&["http:","https:"].includes(n.protocol)&&Ve(t,"blob").then((t=>{e.setAttribute("src",window.URL.createObjectURL(t))})).catch((()=>{se(e)}))}))}const n=xe((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((e=>e.split("-")[0])));let i=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===i&&([i]=n);let s=this.storage.get("captions");if(H(s)||({active:s}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:s,language:i,languages:n}),this.isHTML5){const e=this.config.captions.update?"addtrack removetrack":"removetrack";be.call(this,this.media.textTracks,e,Ge.update.bind(this))}setTimeout(Ge.update.bind(this),0)},update(){const e=Ge.getTracks.call(this,!0),{active:t,language:n,meta:i,currentTrackNode:s}=this.captions,r=Boolean(e.find((e=>e.language===n)));this.isHTML5&&this.isVideo&&e.filter((e=>!i.get(e))).forEach((e=>{this.debug.log("Track added",e),i.set(e,{default:"showing"===e.mode}),"showing"===e.mode&&(e.mode="hidden"),be.call(this,e,"cuechange",(()=>Ge.updateCues.call(this)))})),(r&&this.language!==n||!e.includes(s))&&(Ge.setLanguage.call(this,n),Ge.toggle.call(this,t&&r)),ce(this.elements.container,this.config.classNames.captions.enabled,!Y(e)),F(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Ye.setCaptionsMenu.call(this)},toggle(e,t=!0){if(!this.supported.ui)return;const{toggled:n}=this.captions,i=this.config.classNames.captions.active,s=O(e)?!n:e;if(s!==n){if(t||(this.captions.active=s,this.storage.set({captions:s})),!this.language&&s&&!t){const e=Ge.getTracks.call(this),t=Ge.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=t.language,void Ge.set.call(this,e.indexOf(t))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=s),ce(this.elements.container,i,s),this.captions.toggled=s,Ye.updateSetting.call(this,"captions"),Te.call(this,this.media,s?"captionsenabled":"captionsdisabled")}setTimeout((()=>{s&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")}))},set(e,t=!0){const n=Ge.getTracks.call(this);if(-1!==e)if(M(e))if(e in n){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const i=n[e],{language:s}=i||{};this.captions.currentTrackNode=i,Ye.updateSetting.call(this,"captions"),t||(this.captions.language=s,this.storage.set({language:s})),this.isVimeo&&this.embed.enableTextTrack(s),Te.call(this,this.media,"languagechange")}Ge.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&Ge.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else Ge.toggle.call(this,!1,t)},setLanguage(e,t=!0){if(!q(e))return void this.debug.warn("Invalid language argument",e);const n=e.toLowerCase();this.captions.language=n;const i=Ge.getTracks.call(this),s=Ge.findTrack.call(this,[n]);Ge.set.call(this,i.indexOf(s),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 n=Ge.getTracks.call(this),i=e=>Number((this.captions.meta.get(e)||{}).default),s=Array.from(n).sort(((e,t)=>i(t)-i(e)));let r;return e.every((e=>(r=s.find((t=>t.language===e)),!r))),r||(t?s[0]:void 0)},getCurrentTrack(){return Ge.getTracks.call(this)[this.currentTrack]},getLabel(e){let t=e;return!U(t)&&ge.textTracks&&this.captions.toggled&&(t=Ge.getCurrentTrack.call(this)),U(t)?Y(t.label)?Y(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(!B(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!O(e)&&!Array.isArray(e))return void this.debug.warn("updateCues: Invalid input",e);let t=e;if(!t){const e=Ge.getCurrentTrack.call(this);t=Array.from((e||{}).activeCues||[]).map((e=>e.getCueAsHTML())).map(Fe)}const n=t.map((e=>e.trim())).join("\n");if(n!==this.elements.captions.innerHTML){re(this.elements.captions);const e=ne("span",ae(this.config.selectors.caption));e.innerHTML=n,this.elements.captions.appendChild(e),Te.call(this,this.media,"cuechange")}}},Je={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.6.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:"SD"}},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",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",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"},tabFocus:"plyr__tab-focus",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"}},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}},Ze="picture-in-picture",et="inline",tt={html5:"html5",youtube:"youtube",vimeo:"vimeo"},nt="audio",it="video",st=()=>{};class rt{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):st}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):st}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):st}}class ot{constructor(t){e(this,"onChange",(()=>{if(!this.enabled)return;const e=this.player.elements.buttons.fullscreen;B(e)&&(e.pressed=this.active);const t=this.target===this.player.media?this.target:this.player.elements.container;Te.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":"",ce(this.target,this.player.config.classNames.fullscreen.fallback,e),G.isIos){let t=document.head.querySelector('meta[name="viewport"]');const n="viewport-fit=cover";t||(t=document.createElement("meta"),t.setAttribute("name","viewport"));const i=q(t.content)&&t.content.includes(n);e?(this.cleanupViewport=!i,i||(t.content+=`,${n}`)):this.cleanupViewport&&(t.content=t.content.split(",").filter((e=>e.trim()!==n)).join(","))}this.onChange()})),e(this,"trapFocus",(e=>{if(G.isIos||!this.active||"Tab"!==e.key||9!==e.keyCode)return;const t=document.activeElement,n=he.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[i]=n,s=n[n.length-1];t!==s||e.shiftKey?t===i&&e.shiftKey&&(s.focus(),e.preventDefault()):(i.focus(),e.preventDefault())})),e(this,"update",(()=>{if(this.enabled){let e;e=this.forceFallback?"Fallback (forced)":ot.native?"Native":"Fallback",this.player.debug.log(`${e} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");ce(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)})),e(this,"enter",(()=>{this.enabled&&(G.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!ot.native||this.forceFallback?this.toggleFallback(!0):this.prefix?Y(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))})),e(this,"exit",(()=>{if(this.enabled)if(G.isIos&&this.player.config.fullscreen.iosNative)this.target.webkitExitFullscreen(),ke(this.player.play());else if(!ot.native||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!Y(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=ot.prefix,this.property=ot.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:n}=Element;return(n.closest||function(){let e=this;do{if(de.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),be.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":`${this.prefix}fullscreenchange`,(()=>{this.onChange()})),be.call(this.player,this.player.elements.container,"dblclick",(e=>{B(this.player.elements.controls)&&this.player.elements.controls.contains(e.target)||this.player.listeners.proxy(e,this.toggle,"fullscreen")})),be.call(this,this.player.elements.container,"keydown",(e=>this.trapFocus(e))),this.update()}static get native(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get usingNative(){return ot.native&&!this.forceFallback}static get prefix(){if(R(document.exitFullscreen))return"";let e="";return["webkit","moz","ms"].some((t=>!(!R(document[`${t}ExitFullscreen`])&&!R(document[`${t}CancelFullScreen`])||(e=t,0)))),e}static get property(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}get enabled(){return(ot.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}get active(){if(!this.enabled)return!1;if(!ot.native||this.forceFallback)return ue(this.target,this.player.config.classNames.fullscreen.fallback);const e=this.prefix?document[`${this.prefix}${this.property}Element`]:document.fullscreenElement;return e&&e.shadowRoot?e===this.target.getRootNode().host:e===this.target}get target(){return G.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}function at(e,t=1){return new Promise(((n,i)=>{const s=new Image,r=()=>{delete s.onload,delete s.onerror,(s.naturalWidth>=t?n:i)(s)};Object.assign(s,{onload:r,onerror:r,src:e})}))}const lt={addStyleHook(){ce(this.elements.container,this.config.selectors.container.replace(".",""),!0),ce(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 lt.toggleNativeControls.call(this,!0);B(this.elements.controls)||(Ye.inject.call(this),this.listeners.controls()),lt.toggleNativeControls.call(this),this.isHTML5&&Ge.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,Ye.updateVolume.call(this),Ye.timeUpdate.call(this),lt.checkPlaying.call(this),ce(this.elements.container,this.config.classNames.pip.supported,ge.pip&&this.isHTML5&&this.isVideo),ce(this.elements.container,this.config.classNames.airplay.supported,ge.airplay&&this.isHTML5),ce(this.elements.container,this.config.classNames.isIos,G.isIos),ce(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((()=>{Te.call(this,this.media,"ready")}),0),lt.setTitle.call(this),this.poster&<.setPoster.call(this,this.poster,!1).catch((()=>{})),this.config.duration&&Ye.durationUpdate.call(this)},setTitle(){let e=Be.get("play",this.config);if(q(this.config.title)&&!Y(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach((t=>{t.setAttribute("aria-label",e)})),this.isEmbed){const e=fe.call(this,"iframe");if(!B(e))return;const t=Y(this.config.title)?"video":this.config.title,n=Be.get("frameTitle",this.config);e.setAttribute("title",n.replace("{title}",t))}},togglePoster(e){ce(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"),Ce.call(this).then((()=>at(e))).catch((t=>{throw e===this.poster&<.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:""}),lt.togglePoster.call(this,!0),e))))},checkPlaying(e){ce(this.elements.container,this.config.classNames.playing,this.playing),ce(this.elements.container,this.config.classNames.paused,this.paused),ce(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((e=>{Object.assign(e,{pressed:this.playing}),e.setAttribute("aria-label",Be.get(this.playing?"pause":"play",this.config))})),W(e)&&"timeupdate"===e.type||lt.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((()=>{ce(this.elements.container,this.config.classNames.loading,this.loading),lt.toggleControls.call(this)}),this.loading?250:0)},toggleControls(e){const{controls:t}=this.elements;if(t&&this.config.hideControls){const n=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(e||this.loading||this.paused||t.pressed||t.hover||n))}},migrateStyles(){Object.values({...this.media.style}).filter((e=>!Y(e)&&q(e)&&e.startsWith("--plyr"))).forEach((e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)})),Y(this.media.style)&&this.media.removeAttribute("style")}};class ct{constructor(t){e(this,"firstTouch",(()=>{const{player:e}=this,{elements:t}=e;e.touch=!0,ce(t.container,e.config.classNames.isTouch,!0)})),e(this,"setTabFocus",(e=>{const{player:t}=this,{elements:n}=t;if(clearTimeout(this.focusTimer),"keydown"===e.type&&9!==e.which)return;"keydown"===e.type&&(this.lastKeyDown=e.timeStamp);const i=e.timeStamp-this.lastKeyDown<=20;("focus"!==e.type||i)&&((()=>{const e=t.config.classNames.tabFocus;ce(he.call(t,`.${e}`),e,!1)})(),"focusout"!==e.type&&(this.focusTimer=setTimeout((()=>{const e=document.activeElement;n.container.contains(e)&&ce(document.activeElement,t.config.classNames.tabFocus,!0)}),10)))})),e(this,"global",((e=!0)=>{const{player:t}=this;t.config.keyboard.global&&ve.call(t,window,"keydown keyup",this.handleKey,e,!1),ve.call(t,document.body,"click",this.toggleMenu,e),_e.call(t,document.body,"touchstart",this.firstTouch),ve.call(t,document.body,"keydown focus blur focusout",this.setTabFocus,e,!1,!0)})),e(this,"container",(()=>{const{player:e}=this,{config:t,elements:n,timers:i}=e;!t.keyboard.global&&t.keyboard.focused&&be.call(e,n.container,"keydown keyup",this.handleKey,!1),be.call(e,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(t=>{const{controls:s}=n;s&&"enterfullscreen"===t.type&&(s.pressed=!1,s.hover=!1);let r=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(lt.toggleControls.call(e,!0),r=e.touch?3e3:2e3),clearTimeout(i.controls),i.controls=setTimeout((()=>lt.toggleControls.call(e,!1)),r)}));const s=()=>{if(!e.isVimeo||e.config.vimeo.premium)return;const t=n.wrapper,{active:i}=e.fullscreen,[s,r]=Ie.call(e),o=Ae(`aspect-ratio: ${s} / ${r}`);if(!i)return void(o?(t.style.width=null,t.style.height=null):(t.style.maxWidth=null,t.style.margin=null));const[a,l]=[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)],c=a/l>s/r;o?(t.style.width=c?"auto":"100%",t.style.height=c?"100%":"auto"):(t.style.maxWidth=c?l/r*s+"px":null,t.style.margin=c?"0 auto":null)},r=()=>{clearTimeout(i.resized),i.resized=setTimeout(s,50)};be.call(e,n.container,"enterfullscreen exitfullscreen",(t=>{const{target:i}=e.fullscreen;i===n.container&&(!e.isEmbed&&Y(e.config.ratio)||(s(),("enterfullscreen"===t.type?be:we).call(e,window,"resize",r)))}))})),e(this,"media",(()=>{const{player:e}=this,{elements:t}=e;if(be.call(e,e.media,"timeupdate seeking seeked",(t=>Ye.timeUpdate.call(e,t))),be.call(e,e.media,"durationchange loadeddata loadedmetadata",(t=>Ye.durationUpdate.call(e,t))),be.call(e,e.media,"ended",(()=>{e.isHTML5&&e.isVideo&&e.config.resetOnEnd&&(e.restart(),e.pause())})),be.call(e,e.media,"progress playing seeking seeked",(t=>Ye.updateProgress.call(e,t))),be.call(e,e.media,"volumechange",(t=>Ye.updateVolume.call(e,t))),be.call(e,e.media,"playing play pause ended emptied timeupdate",(t=>lt.checkPlaying.call(e,t))),be.call(e,e.media,"waiting canplay seeked playing",(t=>lt.checkLoading.call(e,t))),e.supported.ui&&e.config.clickToPlay&&!e.isAudio){const n=fe.call(e,`.${e.config.classNames.video}`);if(!B(n))return;be.call(e,t.container,"click",(i=>{([t.container,n].includes(i.target)||n.contains(i.target))&&(e.touch&&e.config.hideControls||(e.ended?(this.proxy(i,e.restart,"restart"),this.proxy(i,(()=>{ke(e.play())}),"play")):this.proxy(i,(()=>{ke(e.togglePlay())}),"play")))}))}e.supported.ui&&e.config.disableContextMenu&&be.call(e,t.wrapper,"contextmenu",(e=>{e.preventDefault()}),!1),be.call(e,e.media,"volumechange",(()=>{e.storage.set({volume:e.volume,muted:e.muted})})),be.call(e,e.media,"ratechange",(()=>{Ye.updateSetting.call(e,"speed"),e.storage.set({speed:e.speed})})),be.call(e,e.media,"qualitychange",(t=>{Ye.updateSetting.call(e,"quality",null,t.detail.quality)})),be.call(e,e.media,"ready qualitychange",(()=>{Ye.setDownloadUrl.call(e)}));const n=e.config.events.concat(["keyup","keydown"]).join(" ");be.call(e,e.media,n,(n=>{let{detail:i={}}=n;"error"===n.type&&(i=e.media.error),Te.call(e,t.container,n.type,!0,i)}))})),e(this,"proxy",((e,t,n)=>{const{player:i}=this,s=i.config.listeners[n];let r=!0;R(s)&&(r=s.call(i,e)),!1!==r&&R(t)&&t.call(i,e)})),e(this,"bind",((e,t,n,i,s=!0)=>{const{player:r}=this,o=r.config.listeners[i],a=R(o);be.call(r,e,t,(e=>this.proxy(e,n,i)),s&&!a)})),e(this,"controls",(()=>{const{player:e}=this,{elements:t}=e,n=G.isIE?"change":"input";if(t.buttons.play&&Array.from(t.buttons.play).forEach((t=>{this.bind(t,"click",(()=>{ke(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",(()=>{Te.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(),Ye.toggleMenu.call(e,t)}),null,!1),this.bind(t.buttons.settings,"keyup",(t=>{const n=t.which;[13,32].includes(n)&&(13!==n?(t.preventDefault(),t.stopPropagation(),Ye.toggleMenu.call(e,t)):Ye.focusFirstMenuItem.call(e,null,!0))}),null,!1),this.bind(t.settings.menu,"keydown",(t=>{27===t.which&&Ye.toggleMenu.call(e,t)})),this.bind(t.inputs.seek,"mousedown mousemove",(e=>{const n=t.progress.getBoundingClientRect(),i=100/n.width*(e.pageX-n.left);e.currentTarget.setAttribute("seek-value",i)})),this.bind(t.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(t=>{const n=t.currentTarget,i=t.keyCode?t.keyCode:t.which,s="play-on-seeked";if(V(t)&&39!==i&&37!==i)return;e.lastSeekTime=Date.now();const r=n.hasAttribute(s),o=["mouseup","touchend","keyup"].includes(t.type);r&&o?(n.removeAttribute(s),ke(e.play())):!o&&e.playing&&(n.setAttribute(s,""),e.pause())})),G.isIos){const t=he.call(e,'input[type="range"]');Array.from(t).forEach((e=>this.bind(e,n,(e=>K(e.target)))))}this.bind(t.inputs.seek,n,(t=>{const n=t.currentTarget;let i=n.getAttribute("seek-value");Y(i)&&(i=n.value),n.removeAttribute("seek-value"),e.currentTime=i/n.max*e.duration}),"seek"),this.bind(t.progress,"mouseenter mouseleave mousemove",(t=>Ye.updateSeekTooltip.call(e,t))),this.bind(t.progress,"mousemove touchmove",(t=>{const{previewThumbnails:n}=e;n&&n.loaded&&n.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:n}=e;n&&n.loaded&&n.startScrubbing(t)})),this.bind(t.progress,"mouseup touchend",(t=>{const{previewThumbnails:n}=e;n&&n.loaded&&n.endScrubbing(t)})),G.isWebkit&&Array.from(he.call(e,'input[type="range"]')).forEach((t=>{this.bind(t,"input",(t=>Ye.updateRangeFill.call(e,t.target)))})),e.config.toggleInvert&&!B(t.display.duration)&&this.bind(t.display.currentTime,"click",(()=>{0!==e.currentTime&&(e.config.invertTime=!e.config.invertTime,Ye.timeUpdate.call(e))})),this.bind(t.inputs.volume,n,(t=>{e.volume=t.target.value}),"volume"),this.bind(t.controls,"mouseenter mouseleave",(n=>{t.controls.hover=!e.touch&&"mouseenter"===n.type})),t.fullscreen&&Array.from(t.fullscreen.children).filter((e=>!e.contains(t.container))).forEach((n=>{this.bind(n,"mouseenter mouseleave",(n=>{t.controls.hover=!e.touch&&"mouseenter"===n.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:n,timers:i}=e;ce(t.controls,n.classNames.noTransition,!0),lt.toggleControls.call(e,!0),setTimeout((()=>{ce(t.controls,n.classNames.noTransition,!1)}),0);const s=this.touch?3e3:4e3;clearTimeout(i.controls),i.controls=setTimeout((()=>lt.toggleControls.call(e,!1)),s)})),this.bind(t.inputs.volume,"wheel",(t=>{const n=t.webkitDirectionInvertedFromDevice,[i,s]=[t.deltaX,-t.deltaY].map((e=>n?-e:e)),r=Math.sign(Math.abs(i)>Math.abs(s)?i:s);e.increaseVolume(r/50);const{volume:o}=e.media;(1===r&&o<1||-1===r&&o>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.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(e){const{player:t}=this,{elements:n}=t,i=e.keyCode?e.keyCode:e.which,s="keydown"===e.type,r=s&&i===this.lastKey;if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)&&M(i))if(s){const s=document.activeElement;if(B(s)){const{editable:i}=t.config.selectors,{seek:r}=n.inputs;if(s!==r&&de(s,i))return;if(32===e.which&&de(s,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(i)&&(e.preventDefault(),e.stopPropagation()),i){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:r||(t.currentTime=t.duration/10*(i-48));break;case 32:case 75:r||ke(t.togglePlay());break;case 38:t.increaseVolume(.1);break;case 40:t.decreaseVolume(.1);break;case 77:r||(t.muted=!t.muted);break;case 39:t.forward();break;case 37:t.rewind();break;case 70:t.fullscreen.toggle();break;case 67:r||t.toggleCaptions();break;case 76:t.loop=!t.loop}27===i&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=i}else this.lastKey=null}toggleMenu(e){Ye.toggleMenu.call(this.player,e)}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self;var ut=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports=function(){var e=function(){},t={},n={},i={};function s(e,t){e=e.push?e:[e];var s,r,o,a=[],l=e.length,c=l;for(s=function(e,n){n.length&&a.push(e),--c||t(a)};l--;)r=e[l],(o=n[r])?s(r,o):(i[r]=i[r]||[]).push(s)}function r(e,t){if(e){var s=i[e];if(n[e]=t,s)for(;s.length;)s[0](e,t),s.splice(0,1)}}function o(t,n){t.call&&(t={success:t}),n.length?(t.error||e)(n):(t.success||e)(t)}function a(t,n,i,s){var r,o,l=document,c=i.async,u=(i.numRetries||0)+1,d=i.before||e,h=t.replace(/[\?|#].*$/,""),f=t.replace(/^(css|img)!/,"");s=s||0,/(^css!|\.css$)/.test(h)?((o=l.createElement("link")).rel="stylesheet",o.href=f,(r="hideFocus"in o)&&o.relList&&(r=0,o.rel="preload",o.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(h)?(o=l.createElement("img")).src=f:((o=l.createElement("script")).src=t,o.async=void 0===c||c),o.onload=o.onerror=o.onbeforeload=function(e){var l=e.type[0];if(r)try{o.sheet.cssText.length||(l="e")}catch(e){18!=e.code&&(l="e")}if("e"==l){if((s+=1)<u)return a(t,n,i,s)}else if("preload"==o.rel&&"style"==o.as)return o.rel="stylesheet";n(t,l,e.defaultPrevented)},!1!==d(t,o)&&l.head.appendChild(o)}function l(e,t,n){var i,s,r=(e=e.push?e:[e]).length,o=r,l=[];for(i=function(e,n,i){if("e"==n&&l.push(e),"b"==n){if(!i)return;l.push(e)}--r||t(l)},s=0;s<o;s++)a(e[s],i,n)}function c(e,n,i){var s,a;if(n&&n.trim&&(s=n),a=(s?i:n)||{},s){if(s in t)throw"LoadJS";t[s]=!0}function c(t,n){l(e,(function(e){o(a,e),t&&o({success:t,error:n},e),r(s,e)}),a)}if(a.returnPromise)return new Promise(c);c()}return c.ready=function(e,t){return s(e,(function(e){o(t,e)})),c},c.done=function(e){r(e,[])},c.reset=function(){t={},n={},i={}},c.isDefined=function(e){return e in t},c}()}));function dt(e){return new Promise(((t,n)=>{ut(e,{success:t,error:n})}))}function ht(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,Te.call(this,this.media,e?"play":"pause"))}const ft={setup(){const e=this;ce(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,Le.call(e),j(window.Vimeo)?ft.ready.call(e):dt(e.config.urls.vimeo.sdk).then((()=>{ft.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:n,referrerPolicy:i,...s}=t;n&&Object.assign(s,{controls:!1,sidedock:!1});const r=Ke({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative,...s});let o=e.media.getAttribute("src");Y(o)&&(o=e.media.getAttribute(e.config.attributes.embed.id));const a=Y(l=o)?null:M(Number(l))?l:l.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:l;var l;const c=ne("iframe"),u=Me(e.config.urls.vimeo.iframe,a,r);if(c.setAttribute("src",u),c.setAttribute("allowfullscreen",""),c.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),Y(i)||c.setAttribute("referrerPolicy",i),n||!t.customControls)c.setAttribute("data-poster",e.poster),e.media=oe(c,e.media);else{const t=ne("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});t.appendChild(c),e.media=oe(t,e.media)}t.customControls||Ve(Me(e.config.urls.vimeo.api,u)).then((t=>{!Y(t)&&t.thumbnail_url&<.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=()=>(ht.call(e,!0),e.embed.play()),e.media.pause=()=>(ht.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:d}=e.media;Object.defineProperty(e.media,"currentTime",{get:()=>d,set(t){const{embed:n,media:i,paused:s,volume:r}=e,o=s&&!n.hasPlayed;i.seeking=!0,Te.call(e,i,"seeking"),Promise.resolve(o&&n.setVolume(0)).then((()=>n.setCurrentTime(t))).then((()=>o&&n.pause())).then((()=>o&&n.setVolume(r))).catch((()=>{}))}});let h=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:()=>h,set(t){e.embed.setPlaybackRate(t).then((()=>{h=t,Te.call(e,e.media,"ratechange")})).catch((()=>{e.options.speed=[1]}))}});let{volume:f}=e.config;Object.defineProperty(e.media,"volume",{get:()=>f,set(t){e.embed.setVolume(t).then((()=>{f=t,Te.call(e,e.media,"volumechange")}))}});let{muted:p}=e.config;Object.defineProperty(e.media,"muted",{get:()=>p,set(t){const n=!!H(t)&&t;e.embed.setVolume(n?0:e.config.volume).then((()=>{p=n,Te.call(e,e.media,"volumechange")}))}});let m,{loop:g}=e.config;Object.defineProperty(e.media,"loop",{get:()=>g,set(t){const n=H(t)?t:e.config.loop.active;e.embed.setLoop(n).then((()=>{g=n}))}}),e.embed.getVideoUrl().then((t=>{m=t,Ye.setDownloadUrl.call(e)})).catch((e=>{this.debug.warn(e)})),Object.defineProperty(e.media,"currentSrc",{get:()=>m}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then((t=>{const[n,i]=t;e.embed.ratio=Oe(n,i),Le.call(this)})),e.embed.setAutopause(e.config.autopause).then((t=>{e.config.autopause=t})),e.embed.getVideoTitle().then((t=>{e.config.title=t,lt.setTitle.call(this)})),e.embed.getCurrentTime().then((t=>{d=t,Te.call(e,e.media,"timeupdate")})),e.embed.getDuration().then((t=>{e.media.duration=t,Te.call(e,e.media,"durationchange")})),e.embed.getTextTracks().then((t=>{e.media.textTracks=t,Ge.setup.call(e)})),e.embed.on("cuechange",(({cues:t=[]})=>{const n=t.map((e=>function(e){const t=document.createDocumentFragment(),n=document.createElement("div");return t.appendChild(n),n.innerHTML=e,t.firstChild.innerText}(e.text)));Ge.updateCues.call(e,n)})),e.embed.on("loaded",(()=>{e.embed.getPaused().then((t=>{ht.call(e,!t),t||Te.call(e,e.media,"playing")})),B(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)})),e.embed.on("bufferstart",(()=>{Te.call(e,e.media,"waiting")})),e.embed.on("bufferend",(()=>{Te.call(e,e.media,"playing")})),e.embed.on("play",(()=>{ht.call(e,!0),Te.call(e,e.media,"playing")})),e.embed.on("pause",(()=>{ht.call(e,!1)})),e.embed.on("timeupdate",(t=>{e.media.seeking=!1,d=t.seconds,Te.call(e,e.media,"timeupdate")})),e.embed.on("progress",(t=>{e.media.buffered=t.percent,Te.call(e,e.media,"progress"),1===parseInt(t.percent,10)&&Te.call(e,e.media,"canplaythrough"),e.embed.getDuration().then((t=>{t!==e.media.duration&&(e.media.duration=t,Te.call(e,e.media,"durationchange"))}))})),e.embed.on("seeked",(()=>{e.media.seeking=!1,Te.call(e,e.media,"seeked")})),e.embed.on("ended",(()=>{e.media.paused=!0,Te.call(e,e.media,"ended")})),e.embed.on("error",(t=>{e.media.error=t,Te.call(e,e.media,"error")})),t.customControls&&setTimeout((()=>lt.build.call(e)),0)}};function pt(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,Te.call(this,this.media,e?"play":"pause"))}function mt(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}const gt={setup(){if(ce(this.elements.wrapper,this.config.classNames.embed,!0),j(window.YT)&&R(window.YT.Player))gt.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{R(e)&&e(),gt.ready.call(this)},dt(this.config.urls.youtube.sdk).catch((e=>{this.debug.warn("YouTube API failed to load",e)}))}},getTitle(e){Ve(Me(this.config.urls.youtube.api,e)).then((e=>{if(j(e)){const{title:t,height:n,width:i}=e;this.config.title=t,lt.setTitle.call(this),this.embed.ratio=Oe(i,n)}Le.call(this)})).catch((()=>{Le.call(this)}))},ready(){const e=this,t=e.config.youtube,n=e.media&&e.media.getAttribute("id");if(!Y(n)&&n.startsWith("youtube-"))return;let i=e.media.getAttribute("src");Y(i)&&(i=e.media.getAttribute(this.config.attributes.embed.id));const s=Y(r=i)?null:r.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:r;var r;const o=ne("div",{id:`${e.provider}-${Math.floor(1e4*Math.random())}`,"data-poster":t.customControls?e.poster:void 0});if(e.media=oe(o,e.media),t.customControls){const t=e=>`https://i.ytimg.com/vi/${s}/${e}default.jpg`;at(t("maxres"),121).catch((()=>at(t("sd"),121))).catch((()=>at(t("hq")))).then((t=>lt.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:s,host:mt(t),playerVars:Z({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&t.customControls?0:1,disablekb:1,playsinline:e.config.fullscreen.iosNative?0:1,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 n=t.data,i={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."}[n]||"An unknown error occured";e.media.error={code:n,message:i},Te.call(e,e.media,"error")}},onPlaybackRateChange(t){const n=t.target;e.media.playbackRate=n.getPlaybackRate(),Te.call(e,e.media,"ratechange")},onReady(n){if(R(e.media.play))return;const i=n.target;gt.getTitle.call(e,s),e.media.play=()=>{pt.call(e,!0),i.playVideo()},e.media.pause=()=>{pt.call(e,!1),i.pauseVideo()},e.media.stop=()=>{i.stopVideo()},e.media.duration=i.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:()=>Number(i.getCurrentTime()),set(t){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,Te.call(e,e.media,"seeking"),i.seekTo(t)}}),Object.defineProperty(e.media,"playbackRate",{get:()=>i.getPlaybackRate(),set(e){i.setPlaybackRate(e)}});let{volume:r}=e.config;Object.defineProperty(e.media,"volume",{get:()=>r,set(t){r=t,i.setVolume(100*r),Te.call(e,e.media,"volumechange")}});let{muted:o}=e.config;Object.defineProperty(e.media,"muted",{get:()=>o,set(t){const n=H(t)?t:o;o=n,i[n?"mute":"unMute"](),i.setVolume(100*r),Te.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:()=>i.getVideoUrl()}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration});const a=i.getAvailablePlaybackRates();e.options.speed=a.filter((t=>e.config.speed.options.includes(t))),e.supported.ui&&t.customControls&&e.media.setAttribute("tabindex",-1),Te.call(e,e.media,"timeupdate"),Te.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval((()=>{e.media.buffered=i.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBuffered<e.media.buffered)&&Te.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,1===e.media.buffered&&(clearInterval(e.timers.buffering),Te.call(e,e.media,"canplaythrough"))}),200),t.customControls&&setTimeout((()=>lt.build.call(e)),50)},onStateChange(n){const i=n.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(n.data)&&(e.media.seeking=!1,Te.call(e,e.media,"seeked")),n.data){case-1:Te.call(e,e.media,"timeupdate"),e.media.buffered=i.getVideoLoadedFraction(),Te.call(e,e.media,"progress");break;case 0:pt.call(e,!1),e.media.loop?(i.stopVideo(),i.playVideo()):Te.call(e,e.media,"ended");break;case 1:t.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(pt.call(e,!0),Te.call(e,e.media,"playing"),e.timers.playing=setInterval((()=>{Te.call(e,e.media,"timeupdate")}),50),e.media.duration!==i.getDuration()&&(e.media.duration=i.getDuration(),Te.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),pt.call(e,!1);break;case 3:Te.call(e,e.media,"waiting")}Te.call(e,e.elements.container,"statechange",!1,{code:n.data})}}})}},yt={setup(){this.media?(ce(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),ce(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&ce(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=ne("div",{class:this.config.classNames.video}),ee(this.media,this.elements.wrapper),this.elements.poster=ne("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?je.setup.call(this):this.isYouTube?gt.setup.call(this):this.isVimeo&&ft.setup.call(this)):this.debug.warn("No media element found!")}};class vt{constructor(t){e(this,"load",(()=>{this.enabled&&(j(window.google)&&j(window.google.ima)?this.ready():dt(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=ne("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=Qe(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",(()=>{Y(this.cuePoints)||this.cuePoints.forEach((e=>{if(0!==e&&-1!==e&&e<this.player.duration){const t=this.player.elements.progress;if(B(t)){const n=100/this.player.duration*e,i=ne("span",{class:this.player.config.classNames.cues});i.style.left=`${n.toString()}%`,t.appendChild(i)}}}))})),e(this,"onAdEvent",(e=>{const{container:t}=this.player.elements,n=e.getAd(),i=e.getAdData();switch((e=>{Te.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),n.isLinear()||(n.width=t.offsetWidth,n.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:i.adError&&this.player.debug.warn(`Non-fatal ad error: ${i.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;Y(this.cuePoints)||this.cuePoints.forEach(((n,i)=>{t<n&&n<e&&(this.manager.discardAdBreak(),this.cuePoints.splice(i,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,ke(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 n=this.events[e];F(n)&&n.forEach((e=>{R(e)&&e.apply(this,t)}))})),e(this,"on",((e,t)=>(F(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=>{O(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&&(!Y(e.publisherId)||Q(e.tagUrl))}get tagUrl(){const{config:e}=this;return Q(e.tagUrl)?e.tagUrl:`https://go.aniview.com/api/adserver6/vast/?${Ke({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:e.publisherId})}`}}const bt=e=>{const t=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach((e=>{const n={};e.split(/\r\n|\n|\r/).forEach((e=>{if(M(n.startTime)){if(!Y(e.trim())&&Y(n.text)){const t=e.trim().split("#xywh=");[n.text]=t,t[1]&&([n.x,n.y,n.w,n.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&&(n.startTime=60*Number(t[1]||0)*60+60*Number(t[2])+Number(t[3])+Number(`0.${t[4]}`),n.endTime=60*Number(t[6]||0)*60+60*Number(t[7])+Number(t[8])+Number(`0.${t[9]}`))}})),n.text&&t.push(n)})),t},wt=(e,t)=>{const n={};return e>t.width/t.height?(n.width=t.width,n.height=1/e*t.width):(n.height=t.height,n.width=e*t.height),n};class _t{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.loaded=!0)}))})),e(this,"getThumbnails",(()=>new Promise((e=>{const{src:t}=this.player.config.previewThumbnails;if(Y(t))throw new Error("Missing previewThumbnails.src config attribute");const n=()=>{this.thumbnails.sort(((e,t)=>e.height-t.height)),this.player.debug.log("Preview thumbnails",this.thumbnails),e()};if(R(t))t((e=>{this.thumbnails=e,n()}));else{const e=(q(t)?[t]:t).map((e=>this.getThumbnail(e)));Promise.all(e).then(n)}})))),e(this,"getThumbnail",(e=>new Promise((t=>{Ve(e).then((n=>{const i={frames:bt(n),height:null,urlPrefix:""};i.frames[0].text.startsWith("/")||i.frames[0].text.startsWith("http://")||i.frames[0].text.startsWith("https://")||(i.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));const s=new Image;s.onload=()=>{i.height=s.naturalHeight,i.width=s.naturalWidth,this.thumbnails.push(i),t()},s.src=i.urlPrefix+i.frames[0].text}))})))),e(this,"startMove",(e=>{if(this.loaded&&W(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{const t=this.player.elements.progress.getBoundingClientRect(),n=100/t.width*(e.pageX-t.left);this.seekTime=this.player.media.duration*(n/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=Qe(this.seekTime)}this.showImageAtCurrentTime()}})),e(this,"endMove",(()=>{this.toggleThumbContainer(!1,!0)})),e(this,"startScrubbing",(e=>{(O(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):_e.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=ne("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=ne("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const e=ne("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=ne("span",{},"00:00"),e.appendChild(this.elements.thumb.time),this.elements.thumb.container.appendChild(e),B(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=ne("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 n=0;this.mouseDown||this.toggleThumbContainer(t),t&&(this.thumbnails.forEach(((t,i)=>{this.loadedImages.includes(t.frames[e].text)&&(n=i)})),e!==this.showingThumb&&(this.showingThumb=e,this.loadImage(n)))})),e(this,"loadImage",((e=0)=>{const t=this.showingThumb,n=this.thumbnails[e],{urlPrefix:i}=n,s=n.frames[t],r=n.frames[t].text,o=i+r;if(this.currentImageElement&&this.currentImageElement.dataset.filename===r)this.showImage(this.currentImageElement,s,e,t,r,!1),this.currentImageElement.dataset.index=t,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const n=new Image;n.src=o,n.dataset.index=t,n.dataset.filename=r,this.showingThumbFilename=r,this.player.debug.log(`Loading image: ${o}`),n.onload=()=>this.showImage(n,s,e,t,r,!0),this.loadingImage=n,this.removeOldImages(n)}})),e(this,"showImage",((e,t,n,i,s,r=!0)=>{this.player.debug.log(`Showing thumb: ${s}. num: ${i}. qual: ${n}. newimg: ${r}`),this.setImageSizeAndOffset(e,t),r&&(this.currentImageContainer.appendChild(e),this.currentImageElement=e,this.loadedImages.includes(s)||this.loadedImages.push(s)),this.preloadNearby(i,!0).then(this.preloadNearby(i,!1)).then(this.getHigherQuality(n,e,t,s))})),e(this,"removeOldImages",(e=>{Array.from(this.currentImageContainer.children).forEach((t=>{if("img"!==t.tagName.toLowerCase())return;const n=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}`)}),n)}}))})),e(this,"preloadNearby",((e,t=!0)=>new Promise((n=>{setTimeout((()=>{const i=this.thumbnails[0].frames[e].text;if(this.showingThumbFilename===i){let s;s=t?this.thumbnails[0].frames.slice(e):this.thumbnails[0].frames.slice(0,e).reverse();let r=!1;s.forEach((e=>{const t=e.text;if(t!==i&&!this.loadedImages.includes(t)){r=!0,this.player.debug.log(`Preloading thumb filename: ${t}`);const{urlPrefix:e}=this.thumbnails[0],i=e+t,s=new Image;s.src=i,s.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${t}`),this.loadedImages.includes(t)||this.loadedImages.push(t),n()}}})),r||n()}}),300)})))),e(this,"getHigherQuality",((e,t,n,i)=>{if(e<this.thumbnails.length-1){let s=t.naturalHeight;this.usingSprites&&(s=n.h),s<this.thumbContainerHeight&&setTimeout((()=>{this.showingThumbFilename===i&&(this.player.debug.log(`Showing higher quality thumb for: ${i}`),this.loadImage(e+1))}),300)}})),e(this,"toggleThumbContainer",((e=!1,t=!1)=>{const n=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(n,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",(()=>{if(this.sizeSpecifiedInCSS){if(this.elements.thumb.imageContainer.clientHeight>20&&this.elements.thumb.imageContainer.clientWidth<20){const e=Math.floor(this.elements.thumb.imageContainer.clientHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.width=`${e}px`}else if(this.elements.thumb.imageContainer.clientHeight<20&&this.elements.thumb.imageContainer.clientWidth>20){const e=Math.floor(this.elements.thumb.imageContainer.clientWidth/this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height=`${e}px`}}else{const e=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height=`${this.thumbContainerHeight}px`,this.elements.thumb.imageContainer.style.width=`${e}px`}this.setThumbContainerPos()})),e(this,"setThumbContainerPos",(()=>{const e=this.player.elements.progress.getBoundingClientRect(),t=this.player.elements.container.getBoundingClientRect(),{container:n}=this.elements.thumb,i=t.left-e.left+10,s=t.right-e.left-n.clientWidth-10;let r=this.mousePosX-e.left-n.clientWidth/2;r<i&&(r=i),r>s&&(r=s),n.style.left=`${r}px`})),e(this,"setScrubbingContainerSize",(()=>{const{width:e,height:t}=wt(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 n=this.thumbContainerHeight/t.h;e.style.height=e.naturalHeight*n+"px",e.style.width=e.naturalWidth*n+"px",e.style.left=`-${t.x*n}px`,e.style.top=`-${t.y*n}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}=wt(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 Tt={insertElements(e,t){q(t)?ie(e,this.media,{src:t}):F(t)&&t.forEach((t=>{ie(e,this.media,t)}))},change(e){J(e,"sources.length")?(je.cancelRequests.call(this),this.destroy.call(this,(()=>{this.options.quality=[],se(this.media),this.media=null,B(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:t,type:n}=e,[{provider:i=tt.html5,src:s}]=t,r="html5"===i?n:"div",o="html5"===i?{}:{src:s};Object.assign(this,{provider:i,type:n,supported:ge.check(n,i,this.config.playsinline),media:ne(r,o)}),this.elements.container.appendChild(this.media),H(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),Y(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","")),lt.addStyleHook.call(this),this.isHTML5&&Tt.insertElements.call(this,"source",t),this.config.title=e.title,yt.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&Tt.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&<.build.call(this),this.isHTML5&&this.media.load(),Y(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 _t(this))),this.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}};class Et{constructor(t,n){if(e(this,"play",(()=>R(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then((()=>this.ads.play())).catch((()=>ke(this.media.play()))),this.media.play()):null)),e(this,"pause",(()=>this.playing&&R(this.media.pause)?this.media.pause():null)),e(this,"togglePlay",(e=>(H(e)?e:!this.playing)?this.play():this.pause())),e(this,"stop",(()=>{this.isHTML5?(this.pause(),this.restart()):R(this.media.stop)&&this.media.stop()})),e(this,"restart",(()=>{this.currentTime=0})),e(this,"rewind",(e=>{this.currentTime-=M(e)?e:this.config.seekTime})),e(this,"forward",(e=>{this.currentTime+=M(e)?e:this.config.seekTime})),e(this,"increaseVolume",(e=>{const t=this.media.muted?0:this.volume;this.volume=t+(M(e)?e:0)})),e(this,"decreaseVolume",(e=>{this.increaseVolume(-e)})),e(this,"airplay",(()=>{ge.airplay&&this.media.webkitShowPlaybackTargetPicker()})),e(this,"toggleControls",(e=>{if(this.supported.ui&&!this.isAudio){const t=ue(this.elements.container,this.config.classNames.hideControls),n=void 0===e?void 0:!e,i=ce(this.elements.container,this.config.classNames.hideControls,n);if(i&&F(this.config.controls)&&this.config.controls.includes("settings")&&!Y(this.config.settings)&&Ye.toggleMenu.call(this,!1),i!==t){const e=i?"controlshidden":"controlsshown";Te.call(this,this.media,e)}return!i}return!1})),e(this,"on",((e,t)=>{be.call(this,this.elements.container,e,t)})),e(this,"once",((e,t)=>{_e.call(this,this.elements.container,e,t)})),e(this,"off",((e,t)=>{we(this.elements.container,e,t)})),e(this,"destroy",((e,t=!1)=>{if(!this.ready)return;const n=()=>{document.body.style.overflow="",this.embed=null,t?(Object.keys(this.elements).length&&(se(this.elements.buttons.play),se(this.elements.captions),se(this.elements.controls),se(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),R(e)&&e()):(Ee.call(this),je.cancelRequests.call(this),oe(this.elements.original,this.elements.container),Te.call(this,this.elements.original,"destroyed",!0),R(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?(lt.toggleNativeControls.call(this,!0),n()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&R(this.embed.destroy)&&this.embed.destroy(),n()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(n),setTimeout(n,200))})),e(this,"supports",(e=>ge.mime.call(this,e))),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=ge.touch,this.media=t,q(this.media)&&(this.media=document.querySelectorAll(this.media)),(i&&this.media instanceof s||$(this.media)||F(this.media))&&(this.media=this.media[0]),this.config=Z({},Je,Et.defaults,n||{},(()=>{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 rt(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",ge),O(this.media)||!B(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(!ge.check().api)return void this.debug.error("Setup failed: no support");const r=this.media.cloneNode(!0);r.autoplay=!1,this.elements.original=r;const o=this.media.tagName.toLowerCase();let a=null,l=null;switch(o){case"div":if(a=this.media.querySelector("iframe"),B(a)){if(l=Xe(a.getAttribute("src")),this.provider=function(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?tt.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?tt.vimeo:null}(l.toString()),this.elements.container=this.media,this.media=a,this.elements.container.className="",l.search.length){const e=["1","true"];e.includes(l.searchParams.get("autoplay"))&&(this.config.autoplay=!0),e.includes(l.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=e.includes(l.searchParams.get("playsinline")),this.config.youtube.hl=l.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(Y(this.provider)||!Object.values(tt).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=it;break;case"video":case"audio":this.type=o,this.provider=tt.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=ge.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new ct(this),this.storage=new We(this),this.media.plyr=this,B(this.elements.container)||(this.elements.container=ne("div",{tabindex:0}),ee(this.media,this.elements.container)),lt.migrateStyles.call(this),lt.addStyleHook.call(this),yt.setup.call(this),this.config.debug&&be.call(this,this.elements.container,this.config.events.join(" "),(e=>{this.debug.log(`event: ${e.type}`)})),this.fullscreen=new ot(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&<.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new vt(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(()=>ke(this.play()))),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new _t(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===tt.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===tt.youtube}get isVimeo(){return this.provider===tt.vimeo}get isVideo(){return this.type===it}get isAudio(){return this.type===nt}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=M(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 M(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,n=M(t)&&t!==1/0?t:0;return e||n}set volume(e){let t=e;q(t)&&(t=Number(t)),M(t)||(t=this.storage.get("volume")),M(t)||({volume:t}=this.config),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!Y(e)&&this.muted&&t>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(e){let t=e;H(t)||(t=this.storage.get("muted")),H(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;M(e)&&(t=e),M(t)||(t=this.storage.get("speed")),M(t)||(t=this.config.speed.selected);const{minimumSpeed:n,maximumSpeed:i}=this;t=function(e=0,t=0,n=255){return Math.min(Math.max(e,t),n)}(t,n,i),this.config.speed.selected=t,setTimeout((()=>{this.media.playbackRate=t}),0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(e){const t=this.config.quality,n=this.options.quality;if(!n.length)return;let i=[!Y(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(M),s=!0;if(!n.includes(i)){const e=Se(n,i);this.debug.warn(`Unsupported quality option: ${i}, using ${e} instead`),i=e,s=!1}t.selected=i,this.media.quality=i,s&&this.storage.set({quality:i})}get quality(){return this.media.quality}set loop(e){const t=H(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){Tt.change.call(this,e)}get source(){return this.media.currentSrc}get download(){const{download:e}=this.config.urls;return Q(e)?e:this.source}set download(e){Q(e)&&(this.config.urls.download=e,Ye.setDownloadUrl.call(this))}set poster(e){this.isVideo?lt.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=Pe(Ie.call(this));return F(e)?e.join(":"):e}set ratio(e){this.isVideo?q(e)&&De(e)?(this.config.ratio=Pe(e),Le.call(this)):this.debug.error(`Invalid aspect ratio specified (${e})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(e){const t=H(e)?e:this.config.autoplay;this.config.autoplay=t}get autoplay(){return Boolean(this.config.autoplay)}toggleCaptions(e){Ge.toggle.call(this,e,!1)}set currentTrack(e){Ge.set.call(this,e,!1)}get currentTrack(){const{toggled:e,currentTrack:t}=this.captions;return e?t:-1}set language(e){Ge.setLanguage.call(this,e,!1)}get language(){return(Ge.getCurrentTrack.call(this)||{}).language}set pip(e){if(!ge.pip)return;const t=H(e)?e:!this.pip;R(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?Ze:et),R(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}get pip(){return ge.pip?Y(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Ze:null}static supported(e,t,n){return ge.check(e,t,n)}static loadSprite(e,t){return Ue(e,t)}static setup(e,t={}){let n=null;return q(e)?n=Array.from(document.querySelectorAll(e)):$(e)?n=Array.from(e):F(e)&&(n=e.filter(B)),Y(n)?null:n.map((e=>new Et(e,t)))}}var Ct;return Et.defaults=(Ct=Je,JSON.parse(JSON.stringify(Ct))),Et}())},8851:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>oe});var i="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,s=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(i&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var r=i&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),s))}};function o(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function l(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/(auto|scroll|overlay)/.test(n+s+i)?e:c(l(e))}function u(e){return e&&e.referenceNode?e.referenceNode:e}var d=i&&!(!window.MSInputMethodContext||!document.documentMode),h=i&&/MSIE 10/.test(navigator.userAgent);function f(e){return 11===e?d:10===e?h:d||h}function p(e){if(!e)return document.documentElement;for(var t=f(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function m(e){return null!==e.parentNode?m(e.parentNode):e}function g(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,s=n?t:e,r=document.createRange();r.setStart(i,0),r.setEnd(s,0);var o,a,l=r.commonAncestorContainer;if(e!==l&&t!==l||i.contains(s))return"BODY"===(a=(o=l).nodeName)||"HTML"!==a&&p(o.firstElementChild)!==o?p(l):l;var c=m(e);return c.host?g(c.host,t):g(e,m(t).host)}function y(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var i=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||i)[t]}return e[t]}function v(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function b(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],f(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function w(e){var t=e.body,n=e.documentElement,i=f(10)&&getComputedStyle(n);return{height:b("Height",t,n,i),width:b("Width",t,n,i)}}var _=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),T=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function C(e){return E({},e,{right:e.left+e.width,bottom:e.top+e.height})}function k(e){var t={};try{if(f(10)){t=e.getBoundingClientRect();var n=y(e,"top"),i=y(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}else t=e.getBoundingClientRect()}catch(e){}var s={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r="HTML"===e.nodeName?w(e.ownerDocument):{},o=r.width||e.clientWidth||s.width,l=r.height||e.clientHeight||s.height,c=e.offsetWidth-o,u=e.offsetHeight-l;if(c||u){var d=a(e);c-=v(d,"x"),u-=v(d,"y"),s.width-=c,s.height-=u}return C(s)}function x(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=f(10),s="HTML"===t.nodeName,r=k(e),o=k(t),l=c(e),u=a(t),d=parseFloat(u.borderTopWidth),h=parseFloat(u.borderLeftWidth);n&&s&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var p=C({top:r.top-o.top-d,left:r.left-o.left-h,width:r.width,height:r.height});if(p.marginTop=0,p.marginLeft=0,!i&&s){var m=parseFloat(u.marginTop),g=parseFloat(u.marginLeft);p.top-=d-m,p.bottom-=d-m,p.left-=h-g,p.right-=h-g,p.marginTop=m,p.marginLeft=g}return(i&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(p=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=y(t,"top"),s=y(t,"left"),r=n?-1:1;return e.top+=i*r,e.bottom+=i*r,e.left+=s*r,e.right+=s*r,e}(p,t)),p}function S(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=l(e);return!!n&&S(n)}function A(e){if(!e||!e.parentElement||f())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function N(e,t,n,i){var s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},o=s?A(e):g(e,u(t));if("viewport"===i)r=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=x(e,n),s=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:y(n),a=t?0:y(n,"left");return C({top:o-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:s,height:r})}(o,s);else{var a=void 0;"scrollParent"===i?"BODY"===(a=c(l(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===i?e.ownerDocument.documentElement:i;var d=x(a,o,s);if("HTML"!==a.nodeName||S(o))r=d;else{var h=w(e.ownerDocument),f=h.height,p=h.width;r.top+=d.top-d.marginTop,r.bottom=f+d.top,r.left+=d.left-d.marginLeft,r.right=p+d.left}}var m="number"==typeof(n=n||0);return r.left+=m?n:n.left||0,r.top+=m?n:n.top||0,r.right-=m?n:n.right||0,r.bottom-=m?n:n.bottom||0,r}function D(e,t,n,i,s){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var o=N(n,i,r,s),a={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(a).map((function(e){return E({key:e},a[e],{area:(t=a[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function P(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return x(n,i?A(t):g(t,u(n)),i)}function I(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function L(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function O(e,t,n){n=n.split("-")[0];var i=I(e),s={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),o=r?"top":"left",a=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return s[o]=t[o]+t[l]/2-i[l]/2,s[a]=n===a?t[a]-i[c]:t[L(a)],s}function j(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function M(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var i=j(e,(function(e){return e[t]===n}));return e.indexOf(i)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=C(t.offsets.popper),t.offsets.reference=C(t.offsets.reference),t=n(t,e))})),t}function q(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=P(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=D(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=O(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=M(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function H(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function R(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var s=t[i],r=s?""+s+n:e;if(void 0!==document.body.style[r])return r}return null}function F(){return this.state.isDestroyed=!0,H(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[R("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function $(e){var t=e.ownerDocument;return t?t.defaultView:window}function B(e,t,n,i){var s="BODY"===e.nodeName,r=s?e.ownerDocument.defaultView:e;r.addEventListener(t,n,{passive:!0}),s||B(c(r.parentNode),t,n,i),i.push(r)}function W(e,t,n,i){n.updateBound=i,$(e).addEventListener("resize",n.updateBound,{passive:!0});var s=c(e);return B(s,"scroll",n.updateBound,n.scrollParents),n.scrollElement=s,n.eventsEnabled=!0,n}function V(){this.state.eventsEnabled||(this.state=W(this.reference,this.options,this.state,this.scheduleUpdate))}function U(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,$(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function z(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Q(e,t){Object.keys(t).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&z(t[n])&&(i="px"),e.style[n]=t[n]+i}))}var Y=i&&/Firefox/i.test(navigator.userAgent);function X(e,t,n){var i=j(e,(function(e){return e.name===t})),s=!!i&&e.some((function(e){return e.name===n&&e.enabled&&e.order<i.order}));if(!s){var r="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return s}var K=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],G=K.slice(3);function J(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=G.indexOf(e),i=G.slice(n+1).concat(G.slice(0,n));return t?i.reverse():i}var Z="flip",ee="clockwise",te="counterclockwise";function ne(e,t,n,i){var s=[0,0],r=-1!==["right","left"].indexOf(i),o=e.split(/(\+|\-)/).map((function(e){return e.trim()})),a=o.indexOf(j(o,(function(e){return-1!==e.search(/,|\s/)})));o[a]&&-1===o[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[o.slice(0,a).concat([o[a].split(l)[0]]),[o[a].split(l)[1]].concat(o.slice(a+1))]:[o];return c=c.map((function(e,i){var s=(1===i?!r:r)?"height":"width",o=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,i){var s=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+s[1],o=s[2];if(!r)return e;if(0===o.indexOf("%")){return C("%p"===o?n:i)[t]/100*r}if("vh"===o||"vw"===o)return("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r;return r}(e,s,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,i){z(n)&&(s[t]+=n*("-"===e[i-1]?-1:1))}))})),s}var ie={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var s=e.offsets,r=s.reference,o=s.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",u={start:T({},l,r[l]),end:T({},l,r[l]+r[c]-o[c])};e.offsets.popper=E({},o,u[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,i=e.placement,s=e.offsets,r=s.popper,o=s.reference,a=i.split("-")[0],l=void 0;return l=z(+n)?[+n,0]:ne(n,r,o,a),"left"===a?(r.top+=l[0],r.left-=l[1]):"right"===a?(r.top+=l[0],r.left+=l[1]):"top"===a?(r.left+=l[0],r.top-=l[1]):"bottom"===a&&(r.left+=l[0],r.top+=l[1]),e.popper=r,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||p(e.instance.popper);e.instance.reference===n&&(n=p(n));var i=R("transform"),s=e.instance.popper.style,r=s.top,o=s.left,a=s[i];s.top="",s.left="",s[i]="";var l=N(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);s.top=r,s.left=o,s[i]=a,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),T({},e,n)},secondary:function(e){var n="right"===e?"left":"top",i=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(i=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),T({},n,i)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=E({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,s=e.placement.split("-")[0],r=Math.floor,o=-1!==["top","bottom"].indexOf(s),a=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return n[a]<r(i[l])&&(e.offsets.popper[l]=r(i[l])-n[c]),n[l]>r(i[a])&&(e.offsets.popper[l]=r(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!X(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var s=e.placement.split("-")[0],r=e.offsets,o=r.popper,l=r.reference,c=-1!==["left","right"].indexOf(s),u=c?"height":"width",d=c?"Top":"Left",h=d.toLowerCase(),f=c?"left":"top",p=c?"bottom":"right",m=I(i)[u];l[p]-m<o[h]&&(e.offsets.popper[h]-=o[h]-(l[p]-m)),l[h]+m>o[p]&&(e.offsets.popper[h]+=l[h]+m-o[p]),e.offsets.popper=C(e.offsets.popper);var g=l[h]+l[u]/2-m/2,y=a(e.instance.popper),v=parseFloat(y["margin"+d]),b=parseFloat(y["border"+d+"Width"]),w=g-e.offsets.popper[h]-v-b;return w=Math.max(Math.min(o[u]-m,w),0),e.arrowElement=i,e.offsets.arrow=(T(n={},h,Math.round(w)),T(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(H(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=N(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],s=L(i),r=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case Z:o=[i,s];break;case ee:o=J(i);break;case te:o=J(i,!0);break;default:o=t.behavior}return o.forEach((function(a,l){if(i!==a||o.length===l+1)return e;i=e.placement.split("-")[0],s=L(i);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,h="left"===i&&d(c.right)>d(u.left)||"right"===i&&d(c.left)<d(u.right)||"top"===i&&d(c.bottom)>d(u.top)||"bottom"===i&&d(c.top)<d(u.bottom),f=d(c.left)<d(n.left),p=d(c.right)>d(n.right),m=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),y="left"===i&&f||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,v=-1!==["top","bottom"].indexOf(i),b=!!t.flipVariations&&(v&&"start"===r&&f||v&&"end"===r&&p||!v&&"start"===r&&m||!v&&"end"===r&&g),w=!!t.flipVariationsByContent&&(v&&"start"===r&&p||v&&"end"===r&&f||!v&&"start"===r&&g||!v&&"end"===r&&m),_=b||w;(h||y||_)&&(e.flipped=!0,(h||y)&&(i=o[l+1]),_&&(r=function(e){return"end"===e?"start":"start"===e?"end":e}(r)),e.placement=i+(r?"-"+r:""),e.offsets.popper=E({},e.offsets.popper,O(e.instance.popper,e.offsets.reference,e.placement)),e=M(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,s=i.popper,r=i.reference,o=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return s[o?"left":"top"]=r[n]-(a?s[o?"width":"height"]:0),e.placement=L(t),e.offsets.popper=C(s),e}},hide:{order:800,enabled:!0,fn:function(e){if(!X(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=j(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,s=e.offsets.popper,r=j(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=void 0!==r?r:t.gpuAcceleration,a=p(e.instance.popper),l=k(a),c={position:s.position},u=function(e,t){var n=e.offsets,i=n.popper,s=n.reference,r=Math.round,o=Math.floor,a=function(e){return e},l=r(s.width),c=r(i.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),h=t?u||d||l%2==c%2?r:o:a,f=t?r:a;return{left:h(l%2==1&&c%2==1&&!d&&t?i.left-1:i.left),top:f(i.top),bottom:f(i.bottom),right:h(i.right)}}(e,window.devicePixelRatio<2||!Y),d="bottom"===n?"top":"bottom",h="right"===i?"left":"right",f=R("transform"),m=void 0,g=void 0;if(g="bottom"===d?"HTML"===a.nodeName?-a.clientHeight+u.bottom:-l.height+u.bottom:u.top,m="right"===h?"HTML"===a.nodeName?-a.clientWidth+u.right:-l.width+u.right:u.left,o&&f)c[f]="translate3d("+m+"px, "+g+"px, 0)",c[d]=0,c[h]=0,c.willChange="transform";else{var y="bottom"===d?-1:1,v="right"===h?-1:1;c[d]=g*y,c[h]=m*v,c.willChange=d+", "+h}var b={"x-placement":e.placement};return e.attributes=E({},b,e.attributes),e.styles=E({},c,e.styles),e.arrowStyles=E({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Q(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Q(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,s){var r=P(s,t,e,n.positionFixed),o=D(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),Q(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},se={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ie},re=function(){function e(t,n){var i=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=r(this.update.bind(this)),this.options=E({},e.Defaults,s),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(E({},e.Defaults.modifiers,s.modifiers)).forEach((function(t){i.options.modifiers[t]=E({},e.Defaults.modifiers[t]||{},s.modifiers?s.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return E({name:e},i.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&o(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return _(e,[{key:"update",value:function(){return q.call(this)}},{key:"destroy",value:function(){return F.call(this)}},{key:"enableEventListeners",value:function(){return V.call(this)}},{key:"disableEventListeners",value:function(){return U.call(this)}}]),e}();re.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,re.placements=K,re.Defaults=se;const oe=re},6713:function(e,t){var n,i,s;i=[e,t],n=function(e,t){"use strict";var n,i;function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function o(e,t){return t.indexOf(e)>=0}function a(e,t){for(var n in t)if(null==e[n]){var i=t[n];e[n]=i}return e}function l(e){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)}function c(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],i=arguments.length<=3||void 0===arguments[3]?null:arguments[3],s=void 0;return null!=document.createEvent?(s=document.createEvent("CustomEvent")).initCustomEvent(e,t,n,i):null!=document.createEventObject?(s=document.createEventObject()).eventType=e:s.eventName=e,s}function u(e,t){null!=e.dispatchEvent?e.dispatchEvent(t):t in(null!=e)?e[t]():"on"+t in(null!=e)&&e["on"+t]()}function d(e,t,n){null!=e.addEventListener?e.addEventListener(t,n,!1):null!=e.attachEvent?e.attachEvent("on"+t,n):e[t]=n}function h(e,t,n){null!=e.removeEventListener?e.removeEventListener(t,n,!1):null!=e.detachEvent?e.detachEvent("on"+t,n):delete e[t]}function f(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight}var p=window.WeakMap||window.MozWeakMap||function(){function e(){s(this,e),this.keys=[],this.values=[]}return r(e,[{key:"get",value:function(e){for(var t=0;t<this.keys.length;t++)if(this.keys[t]===e)return this.values[t]}},{key:"set",value:function(e,t){for(var n=0;n<this.keys.length;n++)if(this.keys[n]===e)return this.values[n]=t,this;return this.keys.push(e),this.values.push(t),this}}]),e}(),m=window.MutationObserver||window.WebkitMutationObserver||window.MozMutationObserver||(i=n=function(){function e(){s(this,e),"undefined"!=typeof console&&null!==console&&(console.warn("MutationObserver is not supported by your browser."),console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content."))}return r(e,[{key:"observe",value:function(){}}]),e}(),n.notSupported=!0,i),g=window.getComputedStyle||function(e){var t=/(\-([a-z]){1})/g;return{getPropertyValue:function(n){"float"===n&&(n="styleFloat"),t.test(n)&&n.replace(t,(function(e,t){return t.toUpperCase()}));var i=e.currentStyle;return(null!=i?i[n]:void 0)||null}}},y=function(){function e(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];s(this,e),this.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},this.animate="requestAnimationFrame"in window?function(e){return window.requestAnimationFrame(e)}:function(e){return e()},this.vendors=["moz","webkit"],this.start=this.start.bind(this),this.resetAnimation=this.resetAnimation.bind(this),this.scrollHandler=this.scrollHandler.bind(this),this.scrollCallback=this.scrollCallback.bind(this),this.scrolled=!0,this.config=a(t,this.defaults),null!=t.scrollContainer&&(this.config.scrollContainer=document.querySelector(t.scrollContainer)),this.animationNameCache=new p,this.wowEvent=c(this.config.boxClass)}return r(e,[{key:"init",value:function(){this.element=window.document.documentElement,o(document.readyState,["interactive","complete"])?this.start():d(document,"DOMContentLoaded",this.start),this.finished=[]}},{key:"start",value:function(){var e=this;if(this.stopped=!1,this.boxes=[].slice.call(this.element.querySelectorAll("."+this.config.boxClass)),this.all=this.boxes.slice(0),this.boxes.length)if(this.disabled())this.resetStyle();else for(var t=0;t<this.boxes.length;t++){var n=this.boxes[t];this.applyStyle(n,!0)}this.disabled()||(d(this.config.scrollContainer||window,"scroll",this.scrollHandler),d(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live&&new m((function(t){for(var n=0;n<t.length;n++)for(var i=t[n],s=0;s<i.addedNodes.length;s++){var r=i.addedNodes[s];e.doSync(r)}})).observe(document.body,{childList:!0,subtree:!0})}},{key:"stop",value:function(){this.stopped=!0,h(this.config.scrollContainer||window,"scroll",this.scrollHandler),h(window,"resize",this.scrollHandler),null!=this.interval&&clearInterval(this.interval)}},{key:"sync",value:function(){m.notSupported&&this.doSync(this.element)}},{key:"doSync",value:function(e){if(null==e&&(e=this.element),1===e.nodeType)for(var t=(e=e.parentNode||e).querySelectorAll("."+this.config.boxClass),n=0;n<t.length;n++){var i=t[n];o(i,this.all)||(this.boxes.push(i),this.all.push(i),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(i,!0),this.scrolled=!0)}}},{key:"show",value:function(e){return this.applyStyle(e),e.className=e.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(e),u(e,this.wowEvent),d(e,"animationend",this.resetAnimation),d(e,"oanimationend",this.resetAnimation),d(e,"webkitAnimationEnd",this.resetAnimation),d(e,"MSAnimationEnd",this.resetAnimation),e}},{key:"applyStyle",value:function(e,t){var n=this,i=e.getAttribute("data-wow-duration"),s=e.getAttribute("data-wow-delay"),r=e.getAttribute("data-wow-iteration");return this.animate((function(){return n.customStyle(e,t,i,s,r)}))}},{key:"resetStyle",value:function(){for(var e=0;e<this.boxes.length;e++)this.boxes[e].style.visibility="visible"}},{key:"resetAnimation",value:function(e){if(e.type.toLowerCase().indexOf("animationend")>=0){var t=e.target||e.srcElement;t.className=t.className.replace(this.config.animateClass,"").trim()}}},{key:"customStyle",value:function(e,t,n,i,s){return t&&this.cacheAnimationName(e),e.style.visibility=t?"hidden":"visible",n&&this.vendorSet(e.style,{animationDuration:n}),i&&this.vendorSet(e.style,{animationDelay:i}),s&&this.vendorSet(e.style,{animationIterationCount:s}),this.vendorSet(e.style,{animationName:t?"none":this.cachedAnimationName(e)}),e}},{key:"vendorSet",value:function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];e[""+n]=i;for(var s=0;s<this.vendors.length;s++)e[""+this.vendors[s]+n.charAt(0).toUpperCase()+n.substr(1)]=i}}},{key:"vendorCSS",value:function(e,t){for(var n=g(e),i=n.getPropertyCSSValue(t),s=0;s<this.vendors.length;s++){var r=this.vendors[s];i=i||n.getPropertyCSSValue("-"+r+"-"+t)}return i}},{key:"animationName",value:function(e){var t=void 0;try{t=this.vendorCSS(e,"animation-name").cssText}catch(n){t=g(e).getPropertyValue("animation-name")}return"none"===t?"":t}},{key:"cacheAnimationName",value:function(e){return this.animationNameCache.set(e,this.animationName(e))}},{key:"cachedAnimationName",value:function(e){return this.animationNameCache.get(e)}},{key:"scrollHandler",value:function(){this.scrolled=!0}},{key:"scrollCallback",value:function(){if(this.scrolled){this.scrolled=!1;for(var e=[],t=0;t<this.boxes.length;t++){var n=this.boxes[t];if(n){if(this.isVisible(n)){this.show(n);continue}e.push(n)}}this.boxes=e,this.boxes.length||this.config.live||this.stop()}}},{key:"offsetTop",value:function(e){for(;void 0===e.offsetTop;)e=e.parentNode;for(var t=e.offsetTop;e.offsetParent;)t+=(e=e.offsetParent).offsetTop;return t}},{key:"isVisible",value:function(e){var t=e.getAttribute("data-wow-offset")||this.config.offset,n=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,i=n+Math.min(this.element.clientHeight,f())-t,s=this.offsetTop(e),r=s+e.clientHeight;return s<=i&&r>=n}},{key:"disabled",value:function(){return!this.config.mobile&&l(navigator.userAgent)}}]),e}();t.default=y,e.exports=t.default},void 0===(s="function"==typeof n?n.apply(t,i):n)||(e.exports=s)}}]);