1!function(t){var e,n,o,s,r="mmenu",a="5.6.4";t[r]&&t[r].version>a||(t[r]=function(t,e,n){this.$menu=t,this._api=["bind","init","update","setSelected","getInstance","openPanel","closePanel","closeAllPanels"],this.opts=e,this.conf=n,this.vars={},this.cbck={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initMenu(),this._initAnchors();var o=this.$pnls.children();return this._initAddons(),this.init(o),"function"==typeof this.___debug&&this.___debug(),this},t[r].version=a,t[r].addons={},t[r].uniqueId=0,t[r].defaults={extensions:[],navbar:{add:!0,title:"Menu",titleLink:"panel"},onClick:{setSelected:!0},slidingSubmenus:!0},t[r].configuration={classNames:{divider:"Divider",inset:"Inset",panel:"Panel",selected:"Selected",spacer:"Spacer",vertical:"Vertical"},clone:!1,openingInterval:25,panelNodetype:"ul, ol, div",transitionDuration:400},t[r].prototype={init:function(t){t=t.not("."+e.nopanel),t=this._initPanels(t),this.trigger("init",t),this.trigger("update")},update:function(){this.trigger("update")},setSelected:function(t){this.$menu.find("."+e.listview).children().removeClass(e.selected),t.addClass(e.selected),this.trigger("setSelected",t)},openPanel:function(n){var o=n.parent(),s=this;if(o.hasClass(e.vertical)){var a=o.parents("."+e.subopened);if(a.length)return void this.openPanel(a.first());o.addClass(e.opened),this.trigger("openPanel",n),this.trigger("openingPanel",n),this.trigger("openedPanel",n)}else{if(n.hasClass(e.current))return;var l=this.$pnls.children("."+e.panel),c=l.filter("."+e.current);l.removeClass(e.highest).removeClass(e.current).not(n).not(c).not("."+e.vertical).addClass(e.hidden),t[r].support.csstransitions||c.addClass(e.hidden),n.hasClass(e.opened)?n.nextAll("."+e.opened).addClass(e.highest).removeClass(e.opened).removeClass(e.subopened):(n.addClass(e.highest),c.addClass(e.subopened)),n.removeClass(e.hidden).addClass(e.current),s.trigger("openPanel",n),setTimeout(function(){n.removeClass(e.subopened).addClass(e.opened),s.trigger("openingPanel",n),s.__transitionend(n,function(){s.trigger("openedPanel",n)},s.conf.transitionDuration)},this.conf.openingInterval)}},closePanel:function(t){var n=t.parent();n.hasClass(e.vertical)&&(n.removeClass(e.opened),this.trigger("closePanel",t),this.trigger("closingPanel",t),this.trigger("closedPanel",t))},closeAllPanels:function(){this.$menu.find("."+e.listview).children().removeClass(e.selected).filter("."+e.vertical).removeClass(e.opened);var t=this.$pnls.children("."+e.panel).first();this.$pnls.children("."+e.panel).not(t).removeClass(e.subopened).removeClass(e.opened).removeClass(e.current).removeClass(e.highest).addClass(e.hidden),this.openPanel(t)},togglePanel:function(t){var n=t.parent();n.hasClass(e.vertical)&&this[n.hasClass(e.opened)?"closePanel":"openPanel"](t)},getInstance:function(){return this},bind:function(t,e){this.cbck[t]=this.cbck[t]||[],this.cbck[t].push(e)},trigger:function(){var t=Array.prototype.slice.call(arguments),e=t.shift();if(this.cbck[e])for(var n=0,o=this.cbck[e].length;o>n;n++)this.cbck[e][n].apply(this,t)},_initMenu:function(){this.$menu.attr("id",this.$menu.attr("id")||this.__getUniqueId()),this.conf.clone&&(this.$menu=this.$menu.clone(!0),this.$menu.add(this.$menu.find("[id]")).filter("[id]").each(function(){t(this).attr("id",e.mm(t(this).attr("id")))})),this.$menu.contents().each(function(){3==t(this)[0].nodeType&&t(this).remove()}),this.$pnls=t('<div class="'+e.panels+'" />').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu),this.$menu.parent().addClass(e.wrapper);var n=[e.menu];this.opts.slidingSubmenus||n.push(e.vertical),this.opts.extensions=this.opts.extensions.length?"mm-"+this.opts.extensions.join(" mm-"):"",this.opts.extensions&&n.push(this.opts.extensions),this.$menu.addClass(n.join(" "))},_initPanels:function(o){var s=this,r=this.__findAddBack(o,"ul, ol");this.__refactorClass(r,this.conf.classNames.inset,"inset").addClass(e.nolistview+" "+e.nopanel),r.not("."+e.nolistview).addClass(e.listview);var a=this.__findAddBack(o,"."+e.listview).children();this.__refactorClass(a,this.conf.classNames.selected,"selected"),this.__refactorClass(a,this.conf.classNames.divider,"divider"),this.__refactorClass(a,this.conf.classNames.spacer,"spacer"),this.__refactorClass(this.__findAddBack(o,"."+this.conf.classNames.panel),this.conf.classNames.panel,"panel");
1var l=t(),c=o.add(o.find("."+e.panel)).add(this.__findAddBack(o,"."+e.listview).children().children(this.conf.panelNodetype)).not("."+e.nopanel);this.__refactorClass(c,this.conf.classNames.vertical,"vertical"),this.opts.slidingSubmenus||c.addClass(e.vertical),c.each(function(){var n=t(this),o=n;n.is("ul, ol")?(n.wrap('<div class="'+e.panel+'" />'),o=n.parent()):o.addClass(e.panel);var r=n.attr("id");n.removeAttr("id"),o.attr("id",r||s.__getUniqueId()),n.hasClass(e.vertical)&&(n.removeClass(s.conf.classNames.vertical),o.add(o.parent()).addClass(e.vertical)),l=l.add(o)});var u=t("."+e.panel,this.$menu);l.each(function(o){var r,a,l=t(this),c=l.parent(),u=c.children("a, span").first();if(c.is("."+e.panels)||(c.data(n.sub,l),l.data(n.parent,c)),c.children("."+e.next).length||c.parent().is("."+e.listview)&&(r=l.attr("id"),a=t('<a class="'+e.next+'" href="#'+r+'" data-target="#'+r+'" />').insertBefore(u),u.is("span")&&a.addClass(e.fullsubopen)),!l.children("."+e.navbar).length&&!c.hasClass(e.vertical)){c=c.parent().is("."+e.listview)?c.closest("."+e.panel):(u=c.closest("."+e.panel).find('a[href="#'+l.attr("id")+'"]').first()).closest("."+e.panel);var h=!1,d=t('<div class="'+e.navbar+'" />');if(c.length){switch(r=c.attr("id"),s.opts.navbar.titleLink){case"anchor":h=u.attr("href");break;case"panel":case"parent":h="#"+r;break;default:h=!1}d.append('<a class="'+e.btn+" "+e.prev+'" href="#'+r+'" data-target="#'+r+'" />').append(t('<a class="'+e.title+'"'+(h?' href="'+h+'"':"")+" />").text(u.text())).prependTo(l),s.opts.navbar.add&&l.addClass(e.hasnavbar)}else s.opts.navbar.title&&(d.append('<a class="'+e.title+'">'+s.opts.navbar.title+"</a>").prependTo(l),s.opts.navbar.add&&l.addClass(e.hasnavbar))}});var h=this.__findAddBack(o,"."+e.listview).children("."+e.selected).removeClass(e.selected).last().addClass(e.selected);h.add(h.parentsUntil("."+e.menu,"li")).filter("."+e.vertical).addClass(e.opened).end().each(function(){t(this).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).addClass(e.subopened)}),h.children("."+e.panel).not("."+e.vertical).addClass(e.opened).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).addClass(e.subopened);var d=u.filter("."+e.opened);return d.length||(d=l.first()),d.addClass(e.opened).last().addClass(e.current),l.not("."+e.vertical).not(d.last()).addClass(e.hidden).end().filter(function(){return!t(this).parent().hasClass(e.panels)}).appendTo(this.$pnls),l},_initAnchors:function(){var n=this;s.$body.on(o.click+"-oncanvas","a[href]",function(o){var s=t(this),a=!1,l=n.$menu.find(s).length;for(var c in t[r].addons)if(t[r].addons[c].clickAnchor.call(n,s,l)){a=!0;break}var u=s.attr("href");if(!a&&l&&u.length>1&&"#"==u.slice(0,1))try{var h=t(u,n.$menu);h.is("."+e.panel)&&(a=!0,n[s.parent().hasClass(e.vertical)?"togglePanel":"openPanel"](h))}catch(t){}if(a&&o.preventDefault(),!a&&l&&s.is("."+e.listview+" > li > a")&&!s.is('[rel="external"]')&&!s.is('[target="_blank"]')){n.__valueOrFn(n.opts.onClick.setSelected,s)&&n.setSelected(t(o.target).parent());var d=n.__valueOrFn(n.opts.onClick.preventDefault,s,"#"==u.slice(0,1));d&&o.preventDefault(),n.__valueOrFn(n.opts.onClick.close,s,d)&&n.close()}})},_initAddons:function(){var e;for(e in t[r].addons)t[r].addons[e].add.call(this),t[r].addons[e].add=function(){};for(e in t[r].addons)t[r].addons[e].setup.call(this)},_getOriginalMenuId:function(){var t=this.$menu.attr("id");return t&&t.length&&this.conf.clone&&(t=e.umm(t)),t},__api:function(){var e=this,n={};return t.each(this._api,function(t){var o=this;n[o]=function(){var t=e[o].apply(e,arguments);return void 0===t?n:t}}),n},__valueOrFn:function(t,e,n){return"function"==typeof t?t.call(e[0]):void 0===t&&void 0!==n?n:t},__refactorClass:function(t,n,o){return t.filter("."+n).removeClass(n).addClass(e[o])},__findAddBack:function(t,e){return t.find(e).add(t.filter(e))},__filterListItems:function(t){return t.not("."+e.divider).not("."+e.hidden)},__transitionend:function(t,e,n){var s=!1,r=function(){s||e.call(t[0]),s=!0};t.one(o.transitionend,r),t.one(o.webkitTransitionEnd,r),setTimeout(r,1.1*n)},__getUniqueId:function(){return e.mm(t[r].uniqueId++)}},t.fn[r]=function(a,l){return t[r].glbl||(s={$wndw:t(window),$docu:t(document),$html:t("html"),$body:t("body")},e={},n={},o={},t.each([e,n,o],function(t,e){e.add=function(t){t=t.split(" ");for(var n=0,o=t.length;o>n;n++)e[t[n]]=e.mm(t[n])}}),e.mm=function(t){return"mm-"+t},e.add("wrapper menu panels panel nopanel current highest opened subopened navbar hasnavbar title btn prev next listview nolistview inset vertical selected divider spacer hidden fullsubopen"),e.umm=function(t){return"mm-"==t.slice(0,3)&&(t=t.
1slice(3)),t},n.mm=function(t){return"mm-"+t},n.add("parent sub"),o.mm=function(t){return t+".mm"},o.add("transitionend webkitTransitionEnd click scroll keydown mousedown mouseup touchstart touchmove touchend orientationchange"),t[r]._c=e,t[r]._d=n,t[r]._e=o,t[r].glbl=s),a=t.extend(!0,{},t[r].defaults,a),l=t.extend(!0,{},t[r].configuration,l),this.each(function(){var e=t(this);if(!e.data(r)){var n=new t[r](e,a,l);n.$menu.data(r,n.__api())}})},t[r].support={touch:"ontouchstart"in window||navigator.msMaxTouchPoints||!1,csstransitions:function(){if("undefined"!=typeof Modernizr&&void 0!==Modernizr.csstransitions)return Modernizr.csstransitions;var t=(document.body||document.documentElement).style,e="transition";if("string"==typeof t[e])return!0;var n=["Moz","webkit","Webkit","Khtml","O","ms"];e=e.charAt(0).toUpperCase()+e.substr(1);for(var o=0;o<n.length;o++)if("string"==typeof t[n[o]+e])return!0;return!1}()})}(jQuery),function(t){var e,n,o,s,r="mmenu",a="offCanvas";t[r].addons[a]={setup:function(){if(this.opts[a]){var n=this.opts[a],o=this.conf[a
1];s=t[r].glbl,this._api=t.merge(this._api,["open","close","setPage"]),("top"==n.position||"bottom"==n.position)&&(n.zposition="front"),"string"!=typeof o.pageSelector&&(o.pageSelector="> "+o.pageNodetype),s.$allMenus=(s.$allMenus||t()).add(this.$menu),this.vars.opened=!1;var l=[e.offcanvas];"left"!=n.position&&l.push(e.mm(n.position)),"back"!=n.zposition&&l.push(e.mm(n.zposition)),this.$menu.addClass(l.join(" ")).parent().removeClass(e.wrapper),this.setPage(s.$page),this._initBlocker(),this["_initWindow_"+a](),this.$menu[o.menuInjectMethod+"To"](o.menuWrapperSelector);var c=window.location.hash;if(c){var u=this._getOriginalMenuId();u&&u==c.slice(1)&&this.open()}}},add:function(){e=t[r]._c,n=t[r]._d,o=t[r]._e,e.add("offcanvas slideout blocking modal background opening blocker page"),n.add("style"),o.add("resize")},clickAnchor:function(t,e){if(!this.opts[a])return!1;var n=this._getOriginalMenuId();return n&&t.is('[href="#'+n+'"]')?(this.open(),!0):s.$page?!!((n=s.$page.first().attr("id"))&&t.is('[href="#'+n+'"]'))&&(this.close(),!0):void 0}},t[r].defaults[a]={position:"left",zposition:"back",blockUI:!0,moveBackground:!0},t[r].configuration[a]={pageNodetype:"div",pageSelector:null,noPageSelector:[],wrapPageIfNeeded:!0,menuWrapperSelector:"body",menuInjectMethod:"prepend"},t[r].prototype.open=function(){if(!this.vars.opened){var t=this;this._openSetup(),setTimeout(function(){t._openFinish()},this.conf.openingInterval),this.trigger("open")}},t[r].prototype._openSetup=function(){var r=this,l=this.opts[a];this.closeAllOthers(),s.$page.each(function(){t(this).data(n.style,t(this).attr("style")||"")}),s.$wndw.trigger(o.resize+"-"+a,[!0]);var c=[e.opened];l.blockUI&&c.push(e.blocking),"modal"==l.blockUI&&c.push(e.modal),l.moveBackground&&c.push(e.background),"left"!=l.position&&c.push(e.mm(this.opts[a].position)),"back"!=l.zposition&&c.push(e.mm(this.opts[a].zposition)),this.opts.extensions&&c.push(this.opts.extensions),s.$html.addClass(c.join(" ")),setTimeout(function(){r.vars.opened=!0},this.conf.openingInterval),this.$menu.addClass(e.current+" "+e.opened)},t[r].prototype._openFinish=function(){var t=this;this.__transitionend(s.$page.first(),function(){t.trigger("opened")},this.conf.transitionDuration),s.$html.addClass(e.opening),this.trigger("opening")},t[r].prototype.close=function(){if(this.vars.opened){var o=this;this.__transitionend(s.$page.first(),function(){o.$menu.removeClass(e.current).removeClass(e.opened),s.$html.removeClass(e.opened).removeClass(e.blocking).removeClass(e.modal).removeClass(e.background).removeClass(e.mm(o.opts[a].position)).removeClass(e.mm(o.opts[a].zposition)),o.opts.extensions&&s.$html.removeClass(o.opts.extensions),s.$page.each(function(){t(this).attr("style",t(this).data(n.style))}),o.vars.opened=!1,o.trigger("closed")},this.conf.transitionDuration),s.$html.removeClass(e.opening),this.trigger("close"),this.trigger("closing")}},t[r].prototype.closeAllOthers=function(){s.$allMenus.not(this.$menu).each(function(){var e=t(this).data(r);e&&e.close&&e.close()})},t[r].prototype.setPage=function(n){var o=this,r=this.conf[a];n&&n.length||(n=s.$body.find(r.pageSelector),r.noPageSelector.length&&(n=n.not(r.noPageSelector.join(", "))),n.length>1&&r.wrapPageIfNeeded&&(n=n.wrapAll("<"+this.conf[a].pageNodetype+" />").parent())),n.each(function(){t(this).attr("id",t(this).attr("id")||o.__getUniqueId())}),n.addClass(e.page+" "+e.slideout),s.$page=n,this.trigger("setPage",n)},t[r].prototype["_initWindow_"+a]=function(){s.$wndw.off(o.keydown+"-"+a).on(o.keydown+"-"+a,function(t){return s.$html.hasClass(e.opened)&&9==t.keyCode?(t.preventDefault(),!1):void 0});var t=0;s.$wndw.off(o.resize+"-"+a).on(o.resize+"-"+a,function(n,o){if(1==s.$page.length&&(o||s.$html.hasClass(e.opened))){var r=s.$wndw.height();(o||r!=t)&&(t=r,s.$page.css("minHeight",r))}})},t[r].prototype._initBlocker=function(){var n=this;this.opts[a].blockUI&&(s.$blck||(s.$blck=t('<div id="'+e.blocker+'" class="'+e.slideout+'" />')),s.$blck.appendTo(s.$body).off(o.touchstart+"-"+a+" "+o.touchmove+"-"+a).on(o.touchstart+"-"+a+" "+o.touchmove+"-"+a,function(t){t.preventDefault(),t.stopPropagation(),s.$blck.trigger(o.mousedown+"-"+a)}).off(o.mousedown+"-"+a).on(o.mousedown+"-"+a,function(t){t.preventDefault(),s.$html.hasClass(e.modal)||(n.closeAllOthers(),n.close())}))}}(jQuery),function(t){var e,n,o,s="mmenu",r="scrollBugFix";t[s].addons[r]={setup:function(){var a=this,l=this.opts[r];if(this.conf[r],o=t[s].glbl,t[s].support.touch&&this.opts.offCanvas&&this.opts.offCanvas.blockUI&&("boolean"==typeof l&&(l={fix:l}),"object"!=typeof l&&(l={}),(l=this.opts[r]=t.extend(!0,{},t[s].defaults[r],l)).fix)){var c=this.$menu.attr("id"),u=!1;this.bind("opening",function(){this.$pnls.children("."+e.current).scrollTop(0)}),o.$docu.on(n.touchmove,function(t){a.vars.opened&&t.preventDefault()}),o.$body.on(n.touchstart,"#"+c+"> ."+e.panels+"> ."+e.current,function(t){a.vars.opened&&(u||(u=!0,0===t.currentTarget.scrollTop?t.currentTarget.scrollTop=1:t.currentTarget.scrollHeight===t.currentTarget.scrollTop+t.currentTarget.offsetHeight&&(t.currentTarget.scrollTop-=1),u=!1))}).on(n.touchmove,"#"+c+"> ."+e.panels+"> ."+e.current,function(e){a.vars.opened&&t(this)[0].scrollHeight>t(this).innerHeight()&&e.stopPropagation()}),o.$wndw.on(n.orientationchange,function(){a.$pnls.children("."+e.current).scrollTop(0).css({"-webkit-overflow-scrolling":"auto"}).css({"-webkit-overflow-scrolling":"touch"})})}},add:function(){e=t[s]._c,t[s]._d,n=t[s]._e},clickAnchor:function(t,e){}}
1,t[s].defaults[r]={fix:!0}}(jQuery),function(t){var e,n,o="mmenu",s="autoHeight";t[o].addons[s]={setup:function(){if(this.opts.offCanvas){var n=this.opts[s];if(this.conf[s],t[o].glbl,"boolean"==typeof n&&n&&(n={height:"auto"}),"string"==typeof n&&(n={height:n}),"object"!=typeof n&&(n={}),"auto"==(n=this.opts[s]=t.extend(!0,{},t[o].defaults[s],n)).height||"highest"==n.height){this.$menu.addClass(e.autoheight);var r=function(o){if(this.vars.opened){var s=parseInt(this.$pnls.css("top"),10)||0,r=parseInt(this.$pnls.css("bottom"),10)||0,a=0;this.$menu.addClass(e.measureheight),"auto"==n.height?((o=o||this.$pnls.children("."+e.current)).is("."+e.vertical)&&(o=o.parents("."+e.panel).not("."+e.vertical).first()),a=o.outerHeight()):"highest"==n.height&&this.$pnls.children().each(function(){var n=t(this);n.is("."+e.vertical)&&(n=n.parents("."+e.panel).not("."+e.vertical).first()),a=Math.max(a,n.outerHeight())}),this.$menu.height(a+s+r).removeClass(e.measureheight)}};this.bind("opening",r),"highest"==n.height&&this.bind("init",r),"auto"==n.height&&(this.bind("update",r),this.bind("openPanel",r),this.bind("closePanel",r))}}},add:function(){e=t[o]._c,t[o]._d,n=t[o]._e,e.add("autoheight measureheight"),n.add("resize")},clickAnchor:function(t,e){}},t[o].defaults[s]={height:"default"}}(jQuery),function(t){var e,n,o="mmenu",s="backButton";t[o].addons[s]={setup:function(){if(this.opts.offCanvas){var r=this,a=this.opts[s];if(this.conf[s],n=t[o].glbl,"boolean"==typeof a&&(a={close:a}),"object"!=typeof a&&(a={}),(a=t.extend(!0,{},t[o].defaults[s],a)).close){var l="#"+r.$menu.attr("id");this.bind("opened",function(t){location.hash!=l&&history.pushState(null,document.title,l)}),t(window).on("popstate",function(t){n.$html.hasClass(e.opened)?(t.stopPropagation(),r.close()):location.hash==l&&(t.stopPropagation(),r.open())})}}},add:function(){return window.history&&window.history.pushState?(e=t[o]._c,t[o]._d,void t[o]._e):void(t[o].addons[s].setup=function(){})},clickAnchor:function(t,e){}},t[o].defaults[s]={close:!1}}(jQuery),function(t){var e,n,o="mmenu",s="columns";t[o].addons[s]={setup:function(){var r=this.opts[s];if(this.conf[s],n=t[o].glbl,"boolean"==typeof r&&(r={add:r}),"number"==typeof r&&(r={add:!0,visible:r}),"object"!=typeof r&&(r={}),"number"==typeof r.visible&&(r.visible={min:r.visible,max:r.visible}),(r=this.opts[s]=t.extend(!0,{},t[o].defaults[s],r)).add){r.visible.min=Math.max(1,Math.min(6,r.visible.min)),r.visible.max=Math.max(r.visible.min,Math.min(6,r.visible.max)),this.$menu.addClass(e.columns);for(var a=this.opts.offCanvas?this.$menu.add(n.$html):this.$menu,l=[],c=0;c<=r.visible.max;c++)l.push(e.columns+"-"+c);l=l.join(" ");var u=function(){var t=this.$pnls.children("."+e.panel).filter("."+e.opened).length;t=Math.min(r.visible.max,Math.max(r.visible.min,t)),a.removeClass(l).addClass(e.columns+"-"+t)},h=function(n){this.$pnls.children("."+e.panel).removeClass(l).filter("."+e.subopened).removeClass(e.hidden).add(n).slice(-r.visible.max).each(function(n){t(this).addClass(e.columns+"-"+n)})};this.bind("open",u),this.bind("close",function(){this.opts.offCanvas&&n.$html.removeClass(l)}),this.bind("init",function(t){h.call(this,this.$pnls.children("."+e.current)),r.hideNavbars&&t.removeClass(e.hasnavbar)}),this.bind("openPanel",h),this.bind("openingPanel",u),this.bind("openedPanel",u),this.opts.offCanvas||u.call(this)}},add:function(){e=t[o]._c,t[o]._d,t[o]._e,e.add("columns")},clickAnchor:function(n,o){if(!this.opts[s].add)return!1;if(o){var r=n.attr("href");if(r.length>1&&"#"==r.slice(0,1))try{if(t(r,this.$menu).is("."+e.panel))for(var a=parseInt(n.closest("."+e.panel).attr("class").split(e.columns+"-")[1].split(" ")[0],10)+1;!1!==a;){var l=this.$pnls.children("."+e.columns+"-"+a);if(!l.length){a=!1;break}a++,l.removeClass(e.subopened).removeClass(e.opened).removeClass(e.current).removeClass(e.highest).addClass(e.hidden)}}catch(t){}}}},t[o].defaults[s]={add:!1,visible:{min:1,max:3},hideNavbars:!1}}(jQuery),function(t){var e,n,o="mmenu",s="counters";t[o].addons[s]={setup:function(){var r=this,a=this.opts[s];this.conf[s],t[o].glbl,"boolean"==typeof a&&(a={add:a,update:a}),"object"!=typeof a&&(a={}),a=this.opts[s]=t.extend(!0,{},t[o].defaults[s],a),this.bind("init",function(e){this.__refactorClass(t("em",e),this.conf.classNames[s].counter,"counter")}),a.add&&this.bind("init",function(o){var s;("panels"===a.addTo?o:o.filter(a.addTo)).each(function(){var o=t(this).data(n.parent);
1o&&(o.children("em."+e.counter).length||o.prepend(t('<em class="'+e.counter+'" />')))})}),a.update&&this.bind("update",function(){this.$pnls.children("."+e.panel).each(function(){var o=t(this),s=o.data(n.parent);if(s){var a=s.children("em."+e.counter);a.length&&(o=o.children("."+e.listview)).length&&a.html(r.__filterListItems(o.children()).length)}})})},add:function(){e=t[o]._c,n=t[o]._d,t[o]._e,e.add("counter search noresultsmsg")},clickAnchor:function(t,e){}},t[o].defaults[s]={add:!1,addTo:"panels",update:!1},t[o].configuration.classNames[s]={counter:"Counter"}}(jQuery),function(t){var e,n,o="mmenu",s="dividers";t[o].addons[s]={setup:function(){var r=this,a=this.opts[s];if(this.conf[s],t[o].glbl,"boolean"==typeof a&&(a={add:a,fixed:a}),"object"!=typeof a&&(a={}),a=this.opts[s]=t.extend(!0,{},t[o].defaults[s],a),this.bind("init",function(e){this.__refactorClass(t("li",this.$menu),this.conf.classNames[s].collapsed,"collapsed")}),a.add&&this.bind("init",function(n){var o;o="panels"===a.addTo?n:n.filter(a.addTo),t("."+e.divider,o).remove(),o.find("."+e.listview).not("."+e.vertical).each(function(){var n="";r.__filterListItems(t(this).children()).each(function(){var o=t.trim(t(this).children("a, span").text()).slice(0,1).toLowerCase();o!=n&&o.length&&(n=o,t('<li class="'+e.divider+'">'+o+"</li>").insertBefore(this))})})}),a.collapse&&this.bind("init",function(n){t("."+e.divider,n).each(function(){var n=t(this);n.nextUntil("."+e.divider,"."+e.collapsed).length&&(n.children("."+e.subopen).length||(n.wrapInner("<span />"),n.prepend('<a href="#" class="'+e.subopen+" "+e.fullsubopen+'" />')))})}),a.fixed){var l=function(n){if((n=n||this.$pnls.children("."+e.current)).find("."+e.divider).not("."+e.hidden).length){this.$menu.addClass(e.hasdividers);var o=n.scrollTop()||0,s="";n.is(":visible")&&n.find("."+e.divider).not("."+e.hidden).each(function(){t(this).position().top+o<o+1&&(s=t(this).text())}),this.$fixeddivider.text(s)}else this.$menu.removeClass(e.hasdividers)};this.$fixeddivider=t('<ul class="'+e.listview+" "+e.fixeddivider+'"><li class="'+e.divider+'"></li></ul>').prependTo(this.$pnls).children(),this.bind("openPanel",l),this.bind("update",l),this.bind("init",function(e){e.off(n.scroll+"-dividers "+n.touchmove+"-dividers").on(n.scroll+"-dividers "+n.touchmove+"-dividers",function(e){l.call(r,t(this))})})}},add:function(){e=t[o]._c,t[o]._d,n=t[o]._e,e.add("collapsed uncollapsed fixeddivider hasdividers"),n.add("scroll")},clickAnchor:function(t,n){if(this.opts[s].collapse&&n){var o=t.parent();if(o.is("."+e.divider)){var r=o.nextUntil("."+e.divider,"."+e.collapsed);return o.toggleClass(e.opened),r[o.hasClass(e.opened)?"addClass":"removeClass"](e.uncollapsed),!0}}return!1}},t[o].defaults[s]={add:!1,addTo:"panels",fixed:!1,collapse:!1},t[o].configuration.classNames[s]={collapsed:"Collapsed"}}(jQuery),function(t){function e(t,e,n){return e>t&&(t=e),t>n&&(t=n),t}var n,o,s="mmenu",r="dragOpen";t[s].addons[r]={setup:function(){if(this.opts.offCanvas){var a=this,l=this.opts[r],c=this.conf[r];if(o=t[s].glbl,"boolean"==typeof l&&(l={open:l}),"object"!=typeof l&&(l={}),(l=this.opts[r]=t.extend(!0,{},t[s].defaults[r],l)).open){var u,h,d,p,f,m={},g=0,v=!1,y=!1,_=0,b=0;switch(this.opts.offCanvas.position){case"left":case"right":m.events="panleft panright",m.typeLower="x",m.typeUpper="X",y="width";break;case"top":case"bottom":m.events="panup pandown",m.typeLower="y",m.typeUpper="Y",y="height"}switch(this.opts.offCanvas.position){case"right":case"bottom":m.negative=!0,p=function(t){t>=o.$wndw[y]()-l.maxStartPos&&(g=1)};break;default:m.negative=!1,p=function(t){t<=l.maxStartPos&&(g=1)}}switch(this.opts.offCanvas.position){case"left":m.open_dir="right",m.close_dir="left";break;case"right":m.open_dir="left",m.close_dir="right";break;case"top":m.open_dir="down",m.close_dir="up";break;case"bottom":m.open_dir="up",m.close_dir="down"}f="front"===this.opts.offCanvas.zposition?function(){return this.$menu}:function(){return t("."+n.slideout)};var w=this.__valueOrFn(l.pageNode,this.$menu,o.$page);"string"==typeof w&&(w=t(w)),new Hammer(w[0],l.vendors.hammer).on("panstart",function(t){p(t.center[m.typeLower]),o.$slideOutNodes=f(),v=m.open_dir}).on(m.events+" panend",function(t){g>0&&t.preventDefault()}).on(m.events,function(t){if(u=t["delta"+m.typeUpper],m.negative&&(u=-u),u!=_&&(v=u>=_?m.open_dir:m.close_dir),(_=u)>l.threshold&&1==g){if(o.$html.hasClass(n.opened))return;g=2,a._openSetup(),a.trigger("opening"),o.$html.addClass(n.dragging),b=e(o.$wndw[y]()*c[y].perc,c[y].min,c[y].max)}2==g&&(h=e(_,10,b)-("front"==a.opts.offCanvas.zposition?b:0),m.negative&&(h=-h),d="translate"+m.typeUpper+"("+h+"px )",o.$slideOutNodes.css({"-webkit-transform":"-webkit-"+d,transform:d}))}).on("panend",function(t){2==g&&(o.$html.removeClass(n.dragging),o.$slideOutNodes.css("transform",""),a[v==m.open_dir?"_openFinish":"close"]()),g=0})}}},add:function(){return"function"!=typeof Hammer||Hammer.VERSION<2?void(t[s].addons[r].setup=function(){}):(n=t[s]._c,t[s]._d,t[s]._e,void n.add("dragging"))},clickAnchor:function(t,e){}},t[s].defaults[r]={open:!1,maxStartPos:100,threshold:50,vendors:{hammer
1:{}}},t[s].configuration[r]={width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}}}(jQuery),function(t){var e,n,o,s,r="mmenu",a="dropdown";t[r].addons[a]={setup:function(){if(this.opts.offCanvas){var l=this,c=this.opts[a],u=this.conf[a];if(s=t[r].glbl,"boolean"==typeof c&&c&&(c={drop:c}),"object"!=typeof c&&(c={}),"string"==typeof c.position&&(c.position={of:c.position}),(c=this.opts[a]=t.extend(!0,{},t[r].defaults[a],c)).drop){if("string"!=typeof c.position.of){var h=this.$menu.attr("id");h&&h.length&&(this.conf.clone&&(h=e.umm(h)),c.position.of='[href="#'+h+'"]')}if("string"==typeof c.position.of){var d=t(c.position.of);if(d.length){this.$menu.addClass(e.dropdown),c.tip&&this.$menu.addClass(e.tip),c.event=c.event.split(" "),1==c.event.length&&(c.event[1]=c.event[0]),"hover"==c.event[0]&&d.on(o.mouseenter+"-dropdown",function(){l.open()}),"hover"==c.event[1]&&this.$menu.on(o.mouseleave+"-dropdown",function(){l.close()}),this.bind("opening",function(){this.$menu.data(n.style,this.$menu.attr("style")||""),s.$html.addClass(e.dropdown)}),this.bind("closed",function(){this.$menu.attr("style",this.$menu.data(n.style)),s.$html.removeClass(e.dropdown)});var p=function(n,o){var l,h,p=o[0],f=o[1],m="x"==n?"left":"top",g="x"==n?"right":"bottom",v="x"==n?"width":"height",y=null,_=s.$wndw["x"==n?"scrollLeft":"scrollTop"](),b=d.offset()[m]-=_,w=b+d["x"==n?"outerWidth":"outerHeight"](),x=s.$wndw[v](),T=u.offset.button[n]+u.offset.viewport[n];if(c.position[n])switch(c.position[n]){case"left":case"bottom":y="after";break;case"right":case"top":y="before"}return null===y&&(y=x/2>b+(w-b)/2?"after":"before"),"after"==y?(h=x-((l="x"==n?b:w)+T),p[m]=l+u.offset.button[n],p[g]="auto",f.push(e["x"==n?"tipleft":"tiptop"])):(h=(l="x"==n?w:b)-T,p[g]="calc( 100% - "+(l-u.offset.button[n])+"px )",p[m]="auto",f.push(e["x"==n?"tipright":"tipbottom"])),p["x"==n?"maxWidth":"maxHeight"]=Math.min(t[r].configuration[a][v].max,h),[p,f]},f=function(t){if(this.vars.opened){this.$menu.attr("style",this.$menu.data(n.style));var o=[{},[]];o=p.call(this,"y",o),o=p.call(this,"x",o),this.$menu.css(o[0]),c.tip&&this.$menu.removeClass(e.tipleft+" "+e.tipright+" "+e.tiptop+" "+e.tipbottom).addClass(o[1].join(" "))}};this.bind("opening",f),s.$wndw.on(o.resize+"-dropdown",function(t){f.call(l)}),this.opts.offCanvas.blockUI||s.$wndw.on(o.scroll+"-dropdown",function(t){f.call(l)})}}}}},add:function(){e=t[r]._c,n=t[r]._d,o=t[r]._e,e.add("dropdown tip tipleft tipright tiptop tipbottom"),o.add("mouseenter mouseleave resize scroll")},clickAnchor:function(t,e){}},t[r].defaults[a]={drop:!1,event:"click",position:{},tip:!0},t[r].configuration[a]={offset:{button:{x:-10,y:10},viewport:{x:20,y:20}},height:{max:880},width:{max:440}}}(jQuery),function(t){var e,n,o="mmenu",s="fixedElements";t[o].addons[s]={setup:function(){if(this.opts.offCanvas){var e=this.opts[s];this.conf[s],n=t[o].glbl,e=this.opts[s]=t.extend(!0,{},t[o].defaults[s],e);var r=function(t){var e=this.conf.classNames[s].fixed;this.__refactorClass(t.find("."+e),e,"slideout").appendTo(n.$body)};r.call(this,n.$page),this.bind("setPage",r)}},add:function(){e=t[o]._c,t[o]._d,t[o]._e,e.add("fixed")},clickAnchor:function(t,e){}},t[o].configuration.classNames[s]={fixed:"Fixed"}}(jQuery),function(t){var e,n="mmenu",o="iconPanels";t[n].addons[o]={setup:function(){var s=this,r=this.opts[o];if(this.conf[o],t[n].glbl,"boolean"==typeof r&&(r={add:r}),"number"==typeof r&&(r={add:!0,visible:r}),"object"!=typeof r&&(r={}),r=this.opts[o]=t.extend(!0,{},t[n].defaults[o],r),r.visible++,r.add){this.$menu.addClass(e.iconpanel);for(var a=[],l=0;l<=r.visible;l++)a.push(e.iconpanel+"-"+l);a=a.join(" ");var c=function(n){n.hasClass(e.vertical)||s.$pnls.children("."+e.panel).removeClass(a).filter("."+e.subopened).removeClass(e.hidden).add(n).not("."+e.vertical).slice(-r.visible).each(function(n){t(this).addClass(e.iconpanel+"-"+n)})};this.bind("openPanel",c),this.bind("init",function(n){c.call(s,s.$pnls.children("."+e.current)),r.hideNavbars&&n.removeClass(e.hasnavbar),n.not("."+e.vertical).each(function(){t(this).children("."+e.subblocker).length||t(this).prepend('<a href="#'+t(this).closest("."+e.panel).attr("id")+'" class="'+e.subblocker+'" />')})})}},add:function(){e=t[n]._c,t[n]._d,t[n]._e,e.add("iconpanel subblocker")},clickAnchor:function(t,e){}},t[n].defaults[o]={add:!1,visible:3,hideNavbars:!1}}(jQuery),function(t){var e,n="mmenu",o="navbars";t[n].addons[o]={setup:function(){var s=this,r=this.opts[o],a=this.conf[o];if(t[n].glbl,void 0!==r){r instanceof Array||(r=[r]);var l={};for(var c in t.each(r,function(c){var u=r[c];"boolean"==typeof u&&u&&(u={}),"object"!=typeof u&&(u={}),void 0===u.content&&(u.content=["prev","title"]),u.content instanceof Array||(u.content=[u.content]);var h=(u=t.extend(!0,{},s.opts.navbar,u)).position,d=u.height;"number"!=typeof d&&(d=1),d=Math.min(4,Math.max(1,d)),"bottom"!=h&&(h="top"),l[h]||(l[h]=0),l[h]++;var p=t("<div />").addClass(e.navbar+" "+e.navbar+"-"+h+" "+e.navbar+"-"+h+"-"+l[h]+" "+e.navbar+"-size-"+d);l[h]+=d-1;for(var f=0,m=0,g=u.content.length;g>m;m++){var v=t[n].addons[o][u.content[m]]||!1;v?f+=v.call(s,p,u,a):((v=u.content[m])instanceof t||(v=t(u.content[m])),p.append(v))}(f+=Math.ceil(p.children().not("."+e.btn).not("."+e.title+"-prev").length/d))>1&&p.addClass(e.navbar+"-content-"+f),p.children("."+e.btn).length&&p.addClass(e.hasbtns),p.prependTo(s.$menu)}),l)s.$menu.addClass(e.hasnavbar+"-"+c+"-"+l[c])}},add:function(){e=t[n]._c,t[n]._d,t[n]._e,e.add("close hasbtns")},clickAnchor:function(t,e){}},t[n].configuration[o]={breadcrumbSeparator:"/"}
1,t[n].configuration.classNames[o]={}}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.breadcrumbs=function(n,o,s){var r=t[e]._c,a=t[e]._d;r.add("breadcrumbs separator");var l=t('<span class="'+r.breadcrumbs+'" />').appendTo(n);this.bind("init",function(e){e.removeClass(r.hasnavbar).each(function(){for(var e=[],n=t(this),o=t('<span class="'+r.breadcrumbs+'"></span>'),l=t(this).children().first(),c=!0;l&&l.length;){l.is("."+r.panel)||(l=l.closest("."+r.panel));var u=l.children("."+r.navbar).children("."+r.title).text();e.unshift(c?"<span>"+u+"</span>":'<a href="#'+l.attr("id")+'">'+u+"</a>"),c=!1,l=l.data(a.parent)}o.append(e.join('<span class="'+r.separator+'">'+s.breadcrumbSeparator+"</span>")).appendTo(n.children("."+r.navbar))})});var c=function(){l.html(this.$pnls.children("."+r.current).children("."+r.navbar).children("."+r.breadcrumbs).html())};return this.bind("openPanel",c),this.bind("init",c),0}}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.close=function(n,o){var s=t[e]._c,r=t[e].glbl,a=t('<a class="'+s.close+" "+s.btn+'" href="#" />').appendTo(n),l=function(t){a.attr("href","#"+t.attr("id"))};return l.call(this,r.$page),this.bind("setPage",l),-1}}(jQuery),function(t){var e="mmenu",n="navbars";t[e].addons[n].next=function(o,s){var r,a,l=t[e]._c,c=t('<a class="'+l.next+" "+l.btn+'" href="#" />').appendTo(o),u=function(t){var e=(t=t||this.$pnls.children("."+l.current)).find("."+this.conf.classNames[n].panelNext);r=e.attr("href"),a=e.html(),c[r?"attr":"removeAttr"]("href",r),c[r||a?"removeClass":"addClass"](l.hidden),c.html(a)};return this.bind("openPanel",u),this.bind("init",function(){u.call(this)}),-1},t[e].configuration.classNames[n].panelNext="Next"}(jQuery),function(t){var e="mmenu",n="navbars";t[e].addons[n].prev=function(o,s){var r=t[e]._c,a=t('<a class="'+r.prev+" "+r.btn+'" href="#" />').appendTo(o);this.bind("init",function(t){t.removeClass(r.hasnavbar).children("."+r.navbar).addClass(r.hidden)});var l,c,u=function(t){if(!(t=t||this.$pnls.children("."+r.current)).hasClass(r.vertical)){var e=t.find("."+this.conf.classNames[n].panelPrev);e.length||(e=t.children("."+r.navbar).children("."+r.prev)),l=e.attr("href"),c=e.html(),a[l?"attr":"removeAttr"]("href",l),a[l||c?"removeClass":"addClass"](r.hidden),a.html(c)}};return this.bind("openPanel",u),this.bind("init",function(){u.call(this)}),-1},t[e].configuration.classNames[n].panelPrev="Prev"}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.searchfield=function(n,o){var s=t[e]._c,r=t('<div class="'+s.search+'" />').appendTo(n);return"object"!=typeof this.opts.searchfield&&(this.opts.searchfield={}),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=r,0}}(jQuery),function(t){var e="mmenu",n="navbars";t[e].addons[n].title=function(o,s){var r,a,l=t[e]._c,c=t('<a class="'+l.title+'" />').appendTo(o),u=function(t){if(!(t=t||this.$pnls.children("."+l.current)).hasClass(l.vertical)){var e=t.find("."+this.conf.classNames[n].panelTitle);e.length||(e=t.children("."+l.navbar).children("."+l.title)),r=e.attr("href"),a=e.html()||s.title,c[r?"attr":"removeAttr"]("href",r),c[r||a?"removeClass":"addClass"](l.hidden),c.html(a)}};return this.bind("openPanel",u),this.bind("init",function(t){u.call(this)}),0},t[e].configuration.classNames[n].panelTitle="Title"}(jQuery),function(t){function e(t,e,n){t.prop("aria-"+e,n)[n?"attr":"removeAttr"]("aria-"+e,"true")}function n(t){return'<span class="'+o.sronly+'">'+t+"</span>"}var o,s="mmenu",r="screenReader";t[s].addons[r]={setup:function(){var a=this.opts[r],l=this.conf[r];if(t[s].glbl,"boolean"==typeof a&&(a={aria:a,text:a}),"object"!=typeof a&&(a={}),(a=this.opts[r]=t.extend(!0,{},t[s].defaults[r],a)).aria){if(this.opts.offCanvas){var c=function(){e(this.$menu,"hidden",!0)};this.bind("open",function(){e(this.$menu,"hidden",!1)}),this.bind("close",c),c.call(this)}var u=function(){e(this.$menu.find("."+o.hidden),"hidden",!0),e(this.$menu.find('[aria-hidden="true"]').not("."+o.hidden),"hidden",!1)};this.bind("update",u),this.bind("openPanel",u),this.bind("openPanel",function(t){e(this.$pnls.children("."+o.panel).not(t).not("."+o.hidden),"hidden",!0),e(t,"hidden",!1)});var h=function(t){e(t.find("."+o.prev+", ."+o.next),"haspopup",!0)};this.bind("init",h),h.call(this,this.$menu.children("."+o.navbar))}if(a.text){var d=function(e){e.children("."+o.navbar).children("."+o.prev).html(n(l.text.closeSubmenu)).end().children("."+o.next).html(n(l.text.openSubmenu)).end().children("."+o.close).html(n(l.text.closeMenu)),e.is("."+o.panel)&&e.find("."+o.listview).find("."+o.next).each(function(){t(this).html(n(l.text[t(this).parent().is("."+o.vertical)?"toggleSubmenu":"openSubmenu"]))})};this.bind("init",d),d.call(this,this.$menu)}},add:function(){o=t[s]._c,t[s]._d,t[s]._e,o.add("sronly")},clickAnchor:function(t,e){}},t[s].defaults[r]={aria:!1,text:!1},t[s].configuration[r]={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}}}(jQuery),function(t){var e,n,o,s="mmenu",r="searchfield";t[s].addons[r]={setup:function(){var a=this,l=this.opts[r],c=this.conf[r];t[s].glbl,"boolean"==typeof l&&(l={add:l}),"object"!=typeof l&&(l={}),"boolean"==typeof l.resultsPanel&&(l.resultsPanel={add:l.resultsPanel}),l=this.opts[r]=t.extend(!0,{},t[s].defaults[r],l),c=this.conf[r]=t.extend(!0,{}
1,t[s].configuration[r],c),this.bind("close",function(){this.$menu.find("."+e.search).find("input").blur()}),this.bind("init",function(s){if(l.add){var u;if(("panels"===l.addTo?s:this.$menu.find(l.addTo)).each(function(){var n=t(this);if(!n.is("."+e.panel)||!n.is("."+e.vertical)){if(!n.children("."+e.search).length){var s,r=a.__valueOrFn(c.clear,n),u=a.__valueOrFn(c.form,n),h=a.__valueOrFn(c.input,n),d=a.__valueOrFn(c.submit,n),p=t("<"+(u?"form":"div")+' class="'+e.search+'" />'),f=t('<input placeholder="'+l.placeholder+'" type="text" autocomplete="off" />');if(p.append(f),h)for(s in h)f.attr(s,h[s]);if(r&&t('<a class="'+e.btn+" "+e.clear+'" href="#" />').appendTo(p).on(o.click+"-searchfield",function(t){t.preventDefault(),f.val("").trigger(o.keyup+"-searchfield")}),u){for(s in u)p.attr(s,u[s]);d&&!r&&t('<a class="'+e.btn+" "+e.next+'" href="#" />').appendTo(p).on(o.click+"-searchfield",function(t){t.preventDefault(),p.submit()})}n.hasClass(e.search)?n.replaceWith(p):n.prepend(p).addClass(e.hassearch)}if(l.noResults&&(n.closest("."+e.panel).length||(n=a.$pnls.children("."+e.panel).first()),!n.children("."+e.noresultsmsg).length)){var m=n.children("."+e.listview).first();t('<div class="'+e.noresultsmsg+" "+e.hidden+'" />').append(l.noResults)[m.length?"insertAfter":"prependTo"](m.length?m:n)}}}),l.search){if(l.resultsPanel.add){l.showSubPanels=!1;var h=this.$pnls.children("."+e.resultspanel);h.length||(h=t('<div class="'+e.panel+" "+e.resultspanel+" "+e.hidden+'" />').appendTo(this.$pnls).append('<div class="'+e.navbar+" "+e.hidden+'"><a class="'+e.title+'">'+l.resultsPanel.title+"</a></div>").append('<ul class="'+e.listview+'" />').append(this.$pnls.find("."+e.noresultsmsg).first().clone()),this.init(h))}this.$menu.find("."+e.search).each(function(){var s,c,u=t(this),d=u.closest("."+e.panel).length;d?c=s=u.closest("."+e.panel):(s=t("."+e.panel,a.$menu),c=a.$menu),l.resultsPanel.add&&(s=s.not(h));var p=u.children("input"),f=a.__findAddBack(s,"."+e.listview).children("li"),m=f.filter("."+e.divider),g=a.__filterListItems(f),v="",y=function(){var o=p.val().toLowerCase();if(o!=v){if(v=o,l.resultsPanel.add&&h.children("."+e.listview).empty(),s.scrollTop(0),g.add(m).addClass(e.hidden).find("."+e.fullsubopensearch).removeClass(e.fullsubopen+" "+e.fullsubopensearch),g.each(function(){var o=t(this),s="a";(l.showTextItems||l.showSubPanels&&o.find("."+e.next))&&(s="a, span"),(o.data(n.searchtext)||o.children(s).text()).toLowerCase().indexOf(v)>-1&&o.add(o.prevAll("."+e.divider).first()).removeClass(e.hidden)}),l.showSubPanels&&s.each(function(o){var s=t(this);a.__filterListItems(s.find("."+e.listview).children()).each(function(){var o=t(this),s=o.data(n.sub);o.removeClass(e.nosubresults),s&&s.find("."+e.listview).children().removeClass(e.hidden)})}),l.resultsPanel.add){if(""===v)this.closeAllPanels(),this.openPanel(this.$pnls.children("."+e.subopened).last());else{var r=t();s.each(function(){var n=a.__filterListItems(t(this).find("."+e.listview).children()).not("."+e.hidden).clone(!0);n.length&&(l.resultsPanel.dividers&&(r=r.add('<li class="'+e.divider+'">'+t(this).children("."+e.navbar).text()+"</li>")),r=r.add(n))}),r.find("."+e.next).remove(),h.children("."+e.listview).append(r),this.openPanel(h)}}else t(s.get().reverse()).each(function(o){var s=t(this),r=s.data(n.parent);r&&(a.__filterListItems(s.find("."+e.listview).children()).length?(r.hasClass(e.hidden)&&r.children("."+e.next).not("."+e.fullsubopen).addClass(e.fullsubopen).addClass(e.fullsubopensearch),r.removeClass(e.hidden).removeClass(e.nosubresults).prevAll("."+e.divider).first().removeClass(e.hidden)):d||(s.hasClass(e.opened)&&setTimeout(function(){a.openPanel(r.closest("."+e.panel))},(o+1)*(1.5*a.conf.openingInterval)),r.addClass(e.nosubresults)))});c.find("."+e.noresultsmsg)[g.not("."+e.hidden).length?"addClass":"removeClass"](e.hidden),this.update()}};p.off(o.keyup+"-"+r+" "+o.change+"-"+r).on(o.keyup+"-"+r,function(t){(function(t){switch(t){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:return!0}return!1})(t.keyCode)||y.call(a)}).on(o.change+"-"+r,function(t){y.call(a)});var _=u.children("."+e.btn);_.length&&p.on(o.keyup+"-"+r,function(t){_[p.val().length?"removeClass":"addClass"](e.hidden)}),p.trigger(o.keyup+"-"+r)})}}})},add:function(){e=t[s]._c,n=t[s]._d,o=t[s]._e,e.add("clear search hassearch resultspanel noresultsmsg noresults nosubresults fullsubopensearch"),n.add("searchtext"),o.add("change keyup")},clickAnchor:function(t,e){}},t[s].defaults[r]={add:!1,addTo:"panels",placeholder:"Search",noResults:"No results found.",resultsPanel:{add:!1,dividers:!0,title:"Search results"},search:!0,showTextItems:!1,showSubPanels:!0},t[s].configuration[r]={clear:!1,form:!1,input:!1,submit:!1}}(jQuery),function(t){var e,n,o="mmenu",s="sectionIndexer";t[o].addons[s]={setup:function(){var r=this,a=this.opts[s];this.conf[s],t[o].glbl,"boolean"==typeof a&&(a={add:a}),"object"!=typeof a&&(a={}),a=this.opts[s]=t.extend(!0,{}
1,t[o].defaults[s],a),this.bind("init",function(o){if(a.add){var s;("panels"===a.addTo?o:t(a.addTo,this.$menu).filter("."+e.panel)).find("."+e.divider).closest("."+e.panel).addClass(e.hasindexer)}if(!this.$indexer&&this.$pnls.children("."+e.hasindexer).length){this.$indexer=t('<div class="'+e.indexer+'" />').prependTo(this.$pnls).append('<a href="#a">a</a><a href="#b">b</a><a href="#c">c</a><a href="#d">d</a><a href="#e">e</a><a href="#f">f</a><a href="#g">g</a><a href="#h">h</a><a href="#i">i</a><a href="#j">j</a><a href="#k">k</a><a href="#l">l</a><a href="#m">m</a><a href="#n">n</a><a href="#o">o</a><a href="#p">p</a><a href="#q">q</a><a href="#r">r</a><a href="#s">s</a><a href="#t">t</a><a href="#u">u</a><a href="#v">v</a><a href="#w">w</a><a href="#x">x</a><a href="#y">y</a><a href="#z">z</a>'),this.$indexer.children().on(n.mouseover+"-sectionindexer "+e.touchstart+"-sectionindexer",function(n){var o=t(this).attr("href").slice(1),s=r.$pnls.children("."+e.current),a=s.find("."+e.listview),l=!1,c=s.scrollTop();s.scrollTop(0),a.children("."+e.divider).not("."+e.hidden).each(function(){!1===l&&o==t(this).text().slice(0,1).toLowerCase()&&(l=t(this).position().top)}),s.scrollTop(!1!==l?l:c)});var l=function(t){r.$menu[(t.hasClass(e.hasindexer)?"add":"remove")+"Class"](e.hasindexer)};this.bind("openPanel",l),l.call(this,this.$pnls.children("."+e.current))}})},add:function(){e=t[o]._c,t[o]._d,n=t[o]._e,e.add("indexer hasindexer"),n.add("mouseover touchstart")},clickAnchor:function(t,n){return!!t.parent().is("."+e.indexer)||void 0}},t[o].defaults[s]={add:!1,addTo:"panels"}}(jQuery),function(t){var e,n,o="mmenu",s="setSelected";t[o].addons[s]={setup:function(){var r=this.opts[s];if(this.conf[s],t[o].glbl,"boolean"==typeof r&&(r={hover:r,parent:r}),"object"!=typeof r&&(r={}),(r=this.opts[s]=t.extend(!0,{},t[o].defaults[s],r)).current||this.bind("init",function(t){t.find("."+e.listview).children("."+e.selected).removeClass(e.selected)}),r.hover&&this.$menu.addClass(e.hoverselected),r.parent){this.$menu.addClass(e.parentselected);var a=function(t){this.$pnls.find("."+e.listview).find("."+e.next).removeClass(e.selected);for(var o=t.data(n.parent);o&&o.length;)o=o.children("."+e.next).addClass(e.selected).closest("."+e.panel).data(n.parent)};this.bind("openedPanel",a),this.bind("init",function(t){a.call(this,this.$pnls.children("."+e.current))})}},add:function(){e=t[o]._c,n=t[o]._d,t[o]._e,e.add("hoverselected parentselected")},clickAnchor:function(t,e){}},t[o].defaults[s]={current:!0,hover:!1,parent:!1}}(jQuery),function(t){var e,n="mmenu",o="toggles";t[n].addons[o]={setup:function(){var s=this;this.opts[o],this.conf[o],t[n].glbl,this.bind("init",function(n){this.__refactorClass(t("input",n),this.conf.classNames[o].toggle,"toggle"),this.__refactorClass(t("input",n),this.conf.classNames[o].check,"check"),t("input."+e.toggle+", input."+e.check,n).each(function(){var n=t(this),o=n.closest("li"),r=n.hasClass(e.toggle)?"toggle":"check",a=n.attr("id")||s.__getUniqueId();o.children('label[for="'+a+'"]').length||(n.attr("id",a),o.prepend(n),t('<label for="'+a+'" class="'+e[r]+'"></label>').insertBefore(o.children("a, span").last()))})})},add:function(){e=t[n]._c,t[n]._d,t[n]._e,e.add("toggle check")},clickAnchor:function(t,e){}},t[n].configuration.classNames[o]={toggle:"Toggle",check:"Check"}}(jQuery),function(t){var e,n,o,s,r="mmenu",a="5.6.4";t[r]&&t[r].version>a||(t[r]=function(t,e,n){this.$menu=t,this._api=["bind","init","update","setSelected","getInstance","openPanel","closePanel","closeAllPanels"],this.opts=e,this.conf=n,this.vars={},this.cbck={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initMenu(),this._initAnchors();var o=this.$pnls.children();return this._initAddons(),this.init(o),"function"==typeof this.___debug&&this.___debug(),this},t[r].version=a,t[r].addons={},t[r].uniqueId=0,t[r].defaults={extensions:[],navbar:{add:!0,title:"Menu",titleLink:"panel"},onClick:{setSelected:!0},slidingSubmenus:!0},t[r].configuration={classNames:{divider:"Divider",inset:"Inset",panel:"Panel",selected:"Selected",spacer:"Spacer",vertical:"Vertical"},clone:!1,openingInterval:25,panelNodetype:"ul, ol, div",transitionDuration:400},t[r].prototype={init:function(t){t=t.not("."+e.nopanel),t=this._initPanels(t),this.trigger("init",t),this.trigger("update")},update:function(){this.trigger("update")},setSelected:function(t){this.$menu.find("."+e.listview).children().removeClass(e.selected),t.addClass(e.selected),this.trigger("setSelected",t)},openPanel:function(n){var o=n.parent(),s=this;if(o.hasClass(e.vertical)){var a=o.parents("."+e.subopened);
1if(a.length)return void this.openPanel(a.first());o.addClass(e.opened),this.trigger("openPanel",n),this.trigger("openingPanel",n),this.trigger("openedPanel",n)}else{if(n.hasClass(e.current))return;var l=this.$pnls.children("."+e.panel),c=l.filter("."+e.current);l.removeClass(e.highest).removeClass(e.current).not(n).not(c).not("."+e.vertical).addClass(e.hidden),t[r].support.csstransitions||c.addClass(e.hidden),n.hasClass(e.opened)?n.nextAll("."+e.opened).addClass(e.highest).removeClass(e.opened).removeClass(e.subopened):(n.addClass(e.highest),c.addClass(e.subopened)),n.removeClass(e.hidden).addClass(e.current),s.trigger("openPanel",n),setTimeout(function(){n.removeClass(e.subopened).addClass(e.opened),s.trigger("openingPanel",n),s.__transitionend(n,function(){s.trigger("openedPanel",n)},s.conf.transitionDuration)},this.conf.openingInterval)}},closePanel:function(t){var n=t.parent();n.hasClass(e.vertical)&&(n.removeClass(e.opened),this.trigger("closePanel",t),this.trigger("closingPanel",t),this.trigger("closedPanel",t))},closeAllPanels:function(){this.$menu.find("."+e.listview).children().removeClass(e.selected).filter("."+e.vertical).removeClass(e.opened);var t=this.$pnls.children("."+e.panel).first();this.$pnls.children("."+e.panel).not(t).removeClass(e.subopened).removeClass(e.opened).removeClass(e.current).removeClass(e.highest).addClass(e.hidden),this.openPanel(t)},togglePanel:function(t){var n=t.parent();n.hasClass(e.vertical)&&this[n.hasClass(e.opened)?"closePanel":"openPanel"](t)},getInstance:function(){return this},bind:function(t,e){this.cbck[t]=this.cbck[t]||[],this.cbck[t].push(e)},trigger:function(){var t=Array.prototype.slice.call(arguments),e=t.shift();if(this.cbck[e])for(var n=0,o=this.cbck[e].length;o>n;n++)this.cbck[e][n].apply(this,t)},_initMenu:function(){this.$menu.attr("id",this.$menu.attr("id")||this.__getUniqueId()),this.conf.clone&&(this.$menu=this.$menu.clone(!0),this.$menu.add(this.$menu.find("[id]")).filter("[id]").each(function(){t(this).attr("id",e.mm(t(this).attr("id")))})),this.$menu.contents().each(function(){3==t(this)[0].nodeType&&t(this).remove()}),this.$pnls=t('<div class="'+e.panels+'" />').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu),this.$menu.parent().addClass(e.wrapper);var n=[e.menu];this.opts.slidingSubmenus||n.push(e.vertical),this.opts.extensions=this.opts.extensions.length?"mm-"+this.opts.extensions.join(" mm-"):"",this.opts.extensions&&n.push(this.opts.extensions),this.$menu.addClass(n.join(" "))},_initPanels:function(o){var s=this,r=this.__findAddBack(o,"ul, ol");this.__refactorClass(r,this.conf.classNames.inset,"inset").addClass(e.nolistview+" "+e.nopanel),r.not("."+e.nolistview).addClass(e.listview);var a=this.__findAddBack(o,"."+e.listview).children();this.__refactorClass(a,this.conf.classNames.selected,"selected"),this.__refactorClass(a,this.conf.classNames.divider,"divider"),this.__refactorClass(a,this.conf.classNames.spacer,"spacer"),this.__refactorClass(this.__findAddBack(o,"."+this.conf.classNames.panel),this.conf.classNames.panel,"panel");var l=t(),c=o.add(o.find("."+e.panel)).add(this.__findAddBack(o,"."+e.listview).children().children(this.conf.panelNodetype)).not("."+e.nopanel);this.__refactorClass(c,this.conf.classNames.vertical,"vertical"),this.opts.slidingSubmenus||c.addClass(e.vertical),c.each(function(){var n=t(this),o=n;n.is("ul, ol")?(n.wrap('<div class="'+e.panel+'" />'),o=n.parent()):o.addClass(e.panel);var r=n.attr("id");n.removeAttr("id"),o.attr("id",r||s.__getUniqueId()),n.hasClass(e.vertical)&&(n.removeClass(s.conf.classNames.vertical),o.add(o.parent()).addClass(e.vertical)),l=l.add(o)});var u=t("."+e.panel,this.$menu);l.each(function(o){var r,a,l=t(this),c=l.parent(),u=c.children("a, span").first();if(c.is("."+e.panels)||(c.data(n.sub,l),l.data(n.parent,c)),c.children("."+e.next).length||c.parent().is("."+e.listview)&&(r=l.attr("id"),a=t('<a class="'+e.next+'" href="#'+r+'" data-target="#'+r+'" />').insertBefore(u),u.is("span")&&a.addClass(e.fullsubopen)),!l.children("."+e.navbar).length&&!c.hasClass(e.vertical)){c=c.parent().is("."+e.listview)?c.closest("."+e.panel):(u=c.closest("."+e.panel).find('a[href="#'+l.attr("id")+'"]').first()).closest("."+e.panel);var h=!1,d=t('<div class="'+e.navbar+'" />');if(c.length){switch(r=c.attr("id"),s.opts.navbar.titleLink){case"anchor":h=u.attr("href");break;case"panel":case"parent":h="#"+r;break;default:h=!1}d.append('<a class="'+e.btn+" "+e.prev+'" href="#'+r+'" data-target="#'+r+'" />').append(t('<a class="'+e.title+'"'+(h?' href="'+h+'"':"")+" />").text(u.text())).prependTo(l),s.opts.navbar.add&&l.addClass(e.hasnavbar)}else s.opts.navbar.title&&(d.append('<a class="'+e.title+'">'+s.opts.navbar.title+"</a>").prependTo(l),s.opts.navbar.add&&l.addClass(e.hasnavbar))}});var h=this.__findAddBack(o,"."+e.listview).children("."+e.selected).removeClass(e.selected).last(
1).addClass(e.selected);h.add(h.parentsUntil("."+e.menu,"li")).filter("."+e.vertical).addClass(e.opened).end().each(function(){t(this).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).addClass(e.subopened)}),h.children("."+e.panel).not("."+e.vertical).addClass(e.opened).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).addClass(e.subopened);var d=u.filter("."+e.opened);return d.length||(d=l.first()),d.addClass(e.opened).last().addClass(e.current),l.not("."+e.vertical).not(d.last()).addClass(e.hidden).end().filter(function(){return!t(this).parent().hasClass(e.panels)}).appendTo(this.$pnls),l},_initAnchors:function(){var n=this;s.$body.on(o.click+"-oncanvas","a[href]",function(o){var s=t(this),a=!1,l=n.$menu.find(s).length;for(var c in t[r].addons)if(t[r].addons[c].clickAnchor.call(n,s,l)){a=!0;break}var u=s.attr("href");if(!a&&l&&u.length>1&&"#"==u.slice(0,1))try{var h=t(u,n.$menu);h.is("."+e.panel)&&(a=!0,n[s.parent().hasClass(e.vertical)?"togglePanel":"openPanel"](h))}catch(t){}if(a&&o.preventDefault(),!a&&l&&s.is("."+e.listview+" > li > a")&&!s.is('[rel="external"]')&&!s.is('[target="_blank"]')){n.__valueOrFn(n.opts.onClick.setSelected,s)&&n.setSelected(t(o.target).parent());var d=n.__valueOrFn(n.opts.onClick.preventDefault,s,"#"==u.slice(0,1));d&&o.preventDefault(),n.__valueOrFn(n.opts.onClick.close,s,d)&&n.close()}})},_initAddons:function(){var e;for(e in t[r].addons)t[r].addons[e].add.call(this),t[r].addons[e].add=function(){};for(e in t[r].addons)t[r].addons[e].setup.call(this)},_getOriginalMenuId:function(){var t=this.$menu.attr("id");return t&&t.length&&this.conf.clone&&(t=e.umm(t)),t},__api:function(){var e=this,n={};return t.each(this._api,function(t){var o=this;n[o]=function(){var t=e[o].apply(e,arguments);return void 0===t?n:t}}),n},__valueOrFn:function(t,e,n){return"function"==typeof t?t.call(e[0]):void 0===t&&void 0!==n?n:t},__refactorClass:function(t,n,o){return t.filter("."+n).removeClass(n).addClass(e[o])},__findAddBack:function(t,e){return t.find(e).add(t.filter(e))},__filterListItems:function(t){return t.not("."+e.divider).not("."+e.hidden)},__transitionend:function(t,e,n){var s=!1,r=function(){s||e.call(t[0]),s=!0};t.one(o.transitionend,r),t.one(o.webkitTransitionEnd,r),setTimeout(r,1.1*n)},__getUniqueId:function(){return e.mm(t[r].uniqueId++)}},t.fn[r]=function(a,l){return t[r].glbl||(s={$wndw:t(window),$docu:t(document),$html:t("html"),$body:t("body")},e={},n={},o={},t.each([e,n,o],function(t,e){e.add=function(t){t=t.split(" ");for(var n=0,o=t.length;o>n;n++)e[t[n]]=e.mm(t[n])}}),e.mm=function(t){return"mm-"+t},e.add("wrapper menu panels panel nopanel current highest opened subopened navbar hasnavbar title btn prev next listview nolistview inset vertical selected divider spacer hidden fullsubopen"),e.umm=function(t){return"mm-"==t.slice(0,3)&&(t=t.
1slice(3)),t},n.mm=function(t){return"mm-"+t},n.add("parent sub"),o.mm=function(t){return t+".mm"},o.add("transitionend webkitTransitionEnd click scroll keydown mousedown mouseup touchstart touchmove touchend orientationchange"),t[r]._c=e,t[r]._d=n,t[r]._e=o,t[r].glbl=s),a=t.extend(!0,{},t[r].defaults,a),l=t.extend(!0,{},t[r].configuration,l),this.each(function(){var e=t(this);if(!e.data(r)){var n=new t[r](e,a,l);n.$menu.data(r,n.__api())}})},t[r].support={touch:"ontouchstart"in window||navigator.msMaxTouchPoints||!1,csstransitions:function(){if("undefined"!=typeof Modernizr&&void 0!==Modernizr.csstransitions)return Modernizr.csstransitions;var t=(document.body||document.documentElement).style,e="transition";if("string"==typeof t[e])return!0;var n=["Moz","webkit","Webkit","Khtml","O","ms"];e=e.charAt(0).toUpperCase()+e.substr(1);for(var o=0;o<n.length;o++)if("string"==typeof t[n[o]+e])return!0;return!1}()})}(jQuery),function(t){var e,n,o,s,r="mmenu",a="offCanvas";t[r].addons[a]={setup:function(){if(this.opts[a]){var n=this.opts[a],o=this.conf[a
1];s=t[r].glbl,this._api=t.merge(this._api,["open","close","setPage"]),("top"==n.position||"bottom"==n.position)&&(n.zposition="front"),"string"!=typeof o.pageSelector&&(o.pageSelector="> "+o.pageNodetype),s.$allMenus=(s.$allMenus||t()).add(this.$menu),this.vars.opened=!1;var l=[e.offcanvas];"left"!=n.position&&l.push(e.mm(n.position)),"back"!=n.zposition&&l.push(e.mm(n.zposition)),this.$menu.addClass(l.join(" ")).parent().removeClass(e.wrapper),this.setPage(s.$page),this._initBlocker(),this["_initWindow_"+a](),this.$menu[o.menuInjectMethod+"To"](o.menuWrapperSelector);var c=window.location.hash;if(c){var u=this._getOriginalMenuId();u&&u==c.slice(1)&&this.open()}}},add:function(){e=t[r]._c,n=t[r]._d,o=t[r]._e,e.add("offcanvas slideout blocking modal background opening blocker page"),n.add("style"),o.add("resize")},clickAnchor:function(t,e){if(!this.opts[a])return!1;var n=this._getOriginalMenuId();return n&&t.is('[href="#'+n+'"]')?(this.open(),!0):s.$page?!!((n=s.$page.first().attr("id"))&&t.is('[href="#'+n+'"]'))&&(this.close(),!0):void 0}},t[r].defaults[a]={position:"left",zposition:"back",blockUI:!0,moveBackground:!0},t[r].configuration[a]={pageNodetype:"div",pageSelector:null,noPageSelector:[],wrapPageIfNeeded:!0,menuWrapperSelector:"body",menuInjectMethod:"prepend"},t[r].prototype.open=function(){if(!this.vars.opened){var t=this;this._openSetup(),setTimeout(function(){t._openFinish()},this.conf.openingInterval),this.trigger("open")}},t[r].prototype._openSetup=function(){var r=this,l=this.opts[a];this.closeAllOthers(),s.$page.each(function(){t(this).data(n.style,t(this).attr("style")||"")}),s.$wndw.trigger(o.resize+"-"+a,[!0]);var c=[e.opened];l.blockUI&&c.push(e.blocking),"modal"==l.blockUI&&c.push(e.modal),l.moveBackground&&c.push(e.background),"left"!=l.position&&c.push(e.mm(this.opts[a].position)),"back"!=l.zposition&&c.push(e.mm(this.opts[a].zposition)),this.opts.extensions&&c.push(this.opts.extensions),s.$html.addClass(c.join(" ")),setTimeout(function(){r.vars.opened=!0},this.conf.openingInterval),this.$menu.addClass(e.current+" "+e.opened)},t[r].prototype._openFinish=function(){var t=this;this.__transitionend(s.$page.first(),function(){t.trigger("opened")},this.conf.transitionDuration),s.$html.addClass(e.opening),this.trigger("opening")},t[r].prototype.close=function(){if(this.vars.opened){var o=this;this.__transitionend(s.$page.first(),function(){o.$menu.removeClass(e.current).removeClass(e.opened),s.$html.removeClass(e.opened).removeClass(e.blocking).removeClass(e.modal).removeClass(e.background).removeClass(e.mm(o.opts[a].position)).removeClass(e.mm(o.opts[a].zposition)),o.opts.extensions&&s.$html.removeClass(o.opts.extensions),s.$page.each(function(){t(this).attr("style",t(this).data(n.style))}),o.vars.opened=!1,o.trigger("closed")},this.conf.transitionDuration),s.$html.removeClass(e.opening),this.trigger("close"),this.trigger("closing")}},t[r].prototype.closeAllOthers=function(){s.$allMenus.not(this.$menu).each(function(){var e=t(this).data(r);e&&e.close&&e.close()})},t[r].prototype.setPage=function(n){var o=this,r=this.conf[a];n&&n.length||(n=s.$body.find(r.pageSelector),r.noPageSelector.length&&(n=n.not(r.noPageSelector.join(", "))),n.length>1&&r.wrapPageIfNeeded&&(n=n.wrapAll("<"+this.conf[a].pageNodetype+" />").parent())),n.each(function(){t(this).attr("id",t(this).attr("id")||o.__getUniqueId())}),n.addClass(e.page+" "+e.slideout),s.$page=n,this.trigger("setPage",n)},t[r].prototype["_initWindow_"+a]=function(){s.$wndw.off(o.keydown+"-"+a).on(o.keydown+"-"+a,function(t){return s.$html.hasClass(e.opened)&&9==t.keyCode?(t.preventDefault(),!1):void 0});var t=0;s.$wndw.off(o.resize+"-"+a).on(o.resize+"-"+a,function(n,o){if(1==s.$page.length&&(o||s.$html.hasClass(e.opened))){var r=s.$wndw.height();(o||r!=t)&&(t=r,s.$page.css("minHeight",r))}})},t[r].prototype._initBlocker=function(){var n=this;this.opts[a].blockUI&&(s.$blck||(s.$blck=t('<div id="'+e.blocker+'" class="'+e.slideout+'" />')),s.$blck.appendTo(s.$body).off(o.touchstart+"-"+a+" "+o.touchmove+"-"+a).on(o.touchstart+"-"+a+" "+o.touchmove+"-"+a,function(t){t.preventDefault(),t.stopPropagation(),s.$blck.trigger(o.mousedown+"-"+a)}).off(o.mousedown+"-"+a).on(o.mousedown+"-"+a,function(t){t.preventDefault(),s.$html.hasClass(e.modal)||(n.closeAllOthers(),n.close())}))}}(jQuery),function(t){var e,n,o,s="mmenu",r="scrollBugFix";t[s].addons[r]={setup:function(){var a=this,l=this.opts[r];if(this.conf[r],o=t[s].glbl,t[s].support.touch&&this.opts.offCanvas&&this.opts.offCanvas.blockUI&&("boolean"==typeof l&&(l={fix:l}),"object"!=typeof l&&(l={}),(l=this.opts[r]=t.extend(!0,{},t[s].defaults[r],l)).fix)){var c=this.$menu.attr("id"),u=!1;this.bind("opening",function(){this.$pnls.children("."+e.current).scrollTop(0)}),o.$docu.on(n.touchmove,function(t){a.vars.opened&&t.preventDefault()}),o.$body.on(n.touchstart,"#"+c+"> ."+e.panels+"> ."+e.current,function(t){a.vars.opened&&(u||(u=!0,0===t.currentTarget.scrollTop?t.currentTarget.scrollTop=1:t.currentTarget.scrollHeight===t.currentTarget.scrollTop+t.currentTarget.offsetHeight&&(t.currentTarget.scrollTop-=1),u=!1))}).on(n.touchmove,"#"+c+"> ."+e.panels+"> ."+e.current,function(e){a.vars.opened&&t(this)[0].scrollHeight>t(this).innerHeight()&&e.stopPropagation()}),o.$wndw.on(n.orientationchange,function(){a.$pnls.children("."+e.current).scrollTop(0).css({"-webkit-overflow-scrolling":"auto"}).css({"-webkit-overflow-scrolling":"touch"})})}},add:function(){e=t[s]._c,t[s]._d,n=t[s]._e},clickAnchor:function(t,e){}}
1,t[s].defaults[r]={fix:!0}}(jQuery),function(t){var e,n,o="mmenu",s="autoHeight";t[o].addons[s]={setup:function(){if(this.opts.offCanvas){var n=this.opts[s];if(this.conf[s],t[o].glbl,"boolean"==typeof n&&n&&(n={height:"auto"}),"string"==typeof n&&(n={height:n}),"object"!=typeof n&&(n={}),"auto"==(n=this.opts[s]=t.extend(!0,{},t[o].defaults[s],n)).height||"highest"==n.height){this.$menu.addClass(e.autoheight);var r=function(o){if(this.vars.opened){var s=parseInt(this.$pnls.css("top"),10)||0,r=parseInt(this.$pnls.css("bottom"),10)||0,a=0;this.$menu.addClass(e.measureheight),"auto"==n.height?((o=o||this.$pnls.children("."+e.current)).is("."+e.vertical)&&(o=o.parents("."+e.panel).not("."+e.vertical).first()),a=o.outerHeight()):"highest"==n.height&&this.$pnls.children().each(function(){var n=t(this);n.is("."+e.vertical)&&(n=n.parents("."+e.panel).not("."+e.vertical).first()),a=Math.max(a,n.outerHeight())}),this.$menu.height(a+s+r).removeClass(e.measureheight)}};this.bind("opening",r),"highest"==n.height&&this.bind("init",r),"auto"==n.height&&(this.bind("update",r),this.bind("openPanel",r),this.bind("closePanel",r))}}},add:function(){e=t[o]._c,t[o]._d,n=t[o]._e,e.add("autoheight measureheight"),n.add("resize")},clickAnchor:function(t,e){}},t[o].defaults[s]={height:"default"}}(jQuery),function(t){var e,n,o="mmenu",s="backButton";t[o].addons[s]={setup:function(){if(this.opts.offCanvas){var r=this,a=this.opts[s];if(this.conf[s],n=t[o].glbl,"boolean"==typeof a&&(a={close:a}),"object"!=typeof a&&(a={}),(a=t.extend(!0,{},t[o].defaults[s],a)).close){var l="#"+r.$menu.attr("id");this.bind("opened",function(t){location.hash!=l&&history.pushState(null,document.title,l)}),t(window).on("popstate",function(t){n.$html.hasClass(e.opened)?(t.stopPropagation(),r.close()):location.hash==l&&(t.stopPropagation(),r.open())})}}},add:function(){return window.history&&window.history.pushState?(e=t[o]._c,t[o]._d,void t[o]._e):void(t[o].addons[s].setup=function(){})},clickAnchor:function(t,e){}},t[o].defaults[s]={close:!1}}(jQuery),function(t){var e,n,o="mmenu",s="columns";t[o].addons[s]={setup:function(){var r=this.opts[s];if(this.conf[s],n=t[o].glbl,"boolean"==typeof r&&(r={add:r}),"number"==typeof r&&(r={add:!0,visible:r}),"object"!=typeof r&&(r={}),"number"==typeof r.visible&&(r.visible={min:r.visible,max:r.visible}),(r=this.opts[s]=t.extend(!0,{},t[o].defaults[s],r)).add){r.visible.min=Math.max(1,Math.min(6,r.visible.min)),r.visible.max=Math.max(r.visible.min,Math.min(6,r.visible.max)),this.$menu.addClass(e.columns);for(var a=this.opts.offCanvas?this.$menu.add(n.$html):this.$menu,l=[],c=0;c<=r.visible.max;c++)l.push(e.columns+"-"+c);l=l.join(" ");var u=function(){var t=this.$pnls.children("."+e.panel).filter("."+e.opened).length;t=Math.min(r.visible.max,Math.max(r.visible.min,t)),a.removeClass(l).addClass(e.columns+"-"+t)},h=function(n){this.$pnls.children("."+e.panel).removeClass(l).filter("."+e.subopened).removeClass(e.hidden).add(n).slice(-r.visible.max).each(function(n){t(this).addClass(e.columns+"-"+n)})};this.bind("open",u),this.bind("close",function(){this.opts.offCanvas&&n.$html.removeClass(l)}),this.bind("init",function(t){h.call(this,this.$pnls.children("."+e.current)),r.hideNavbars&&t.removeClass(e.hasnavbar)}),this.bind("openPanel",h),this.bind("openingPanel",u),this.bind("openedPanel",u),this.opts.offCanvas||u.call(this)}},add:function(){e=t[o]._c,t[o]._d,t[o]._e,e.add("columns")},clickAnchor:function(n,o){if(!this.opts[s].add)return!1;if(o){var r=n.attr("href");if(r.length>1&&"#"==r.slice(0,1))try{if(t(r,this.$menu).is("."+e.panel))for(var a=parseInt(n.closest("."+e.panel).attr("class").split(e.columns+"-")[1].split(" ")[0],10)+1;!1!==a;){var l=this.$pnls.children("."+e.columns+"-"+a);if(!l.length){a=!1;break}a++,l.removeClass(e.subopened).removeClass(e.opened).removeClass(e.current).removeClass(e.highest).addClass(e.hidden)}}catch(t){}}}},t[o].defaults[s]={add:!1,visible:{min:1,max:3},hideNavbars:!1}}(jQuery),function(t){var e,n,o="mmenu",s="counters";t[o].addons[s]={setup:function(){var r=this,a=this.opts[s];this.conf[s],t[o].glbl,"boolean"==typeof a&&(a={add:a,update:a}),"object"!=typeof a&&(a={}),a=this.opts[s]=t.extend(!0,{},t[o].defaults[s],a),this.bind("init",function(e){this.__refactorClass(t("em",e),this.conf.classNames[s].counter,"counter")}),a.add&&this.bind("init",function(o){var s;("panels"===a.addTo?o:o.filter(a.addTo)).each(function(){var o=t(this).data(n.parent);
1o&&(o.children("em."+e.counter).length||o.prepend(t('<em class="'+e.counter+'" />')))})}),a.update&&this.bind("update",function(){this.$pnls.children("."+e.panel).each(function(){var o=t(this),s=o.data(n.parent);if(s){var a=s.children("em."+e.counter);a.length&&(o=o.children("."+e.listview)).length&&a.html(r.__filterListItems(o.children()).length)}})})},add:function(){e=t[o]._c,n=t[o]._d,t[o]._e,e.add("counter search noresultsmsg")},clickAnchor:function(t,e){}},t[o].defaults[s]={add:!1,addTo:"panels",update:!1},t[o].configuration.classNames[s]={counter:"Counter"}}(jQuery),function(t){var e,n,o="mmenu",s="dividers";t[o].addons[s]={setup:function(){var r=this,a=this.opts[s];if(this.conf[s],t[o].glbl,"boolean"==typeof a&&(a={add:a,fixed:a}),"object"!=typeof a&&(a={}),a=this.opts[s]=t.extend(!0,{},t[o].defaults[s],a),this.bind("init",function(e){this.__refactorClass(t("li",this.$menu),this.conf.classNames[s].collapsed,"collapsed")}),a.add&&this.bind("init",function(n){var o;o="panels"===a.addTo?n:n.filter(a.addTo),t("."+e.divider,o).remove(),o.find("."+e.listview).not("."+e.vertical).each(function(){var n="";r.__filterListItems(t(this).children()).each(function(){var o=t.trim(t(this).children("a, span").text()).slice(0,1).toLowerCase();o!=n&&o.length&&(n=o,t('<li class="'+e.divider+'">'+o+"</li>").insertBefore(this))})})}),a.collapse&&this.bind("init",function(n){t("."+e.divider,n).each(function(){var n=t(this);n.nextUntil("."+e.divider,"."+e.collapsed).length&&(n.children("."+e.subopen).length||(n.wrapInner("<span />"),n.prepend('<a href="#" class="'+e.subopen+" "+e.fullsubopen+'" />')))})}),a.fixed){var l=function(n){if((n=n||this.$pnls.children("."+e.current)).find("."+e.divider).not("."+e.hidden).length){this.$menu.addClass(e.hasdividers);var o=n.scrollTop()||0,s="";n.is(":visible")&&n.find("."+e.divider).not("."+e.hidden).each(function(){t(this).position().top+o<o+1&&(s=t(this).text())}),this.$fixeddivider.text(s)}else this.$menu.removeClass(e.hasdividers)};this.$fixeddivider=t('<ul class="'+e.listview+" "+e.fixeddivider+'"><li class="'+e.divider+'"></li></ul>').prependTo(this.$pnls).children(),this.bind("openPanel",l),this.bind("update",l),this.bind("init",function(e){e.off(n.scroll+"-dividers "+n.touchmove+"-dividers").on(n.scroll+"-dividers "+n.touchmove+"-dividers",function(e){l.call(r,t(this))})})}},add:function(){e=t[o]._c,t[o]._d,n=t[o]._e,e.add("collapsed uncollapsed fixeddivider hasdividers"),n.add("scroll")},clickAnchor:function(t,n){if(this.opts[s].collapse&&n){var o=t.parent();if(o.is("."+e.divider)){var r=o.nextUntil("."+e.divider,"."+e.collapsed);return o.toggleClass(e.opened),r[o.hasClass(e.opened)?"addClass":"removeClass"](e.uncollapsed),!0}}return!1}},t[o].defaults[s]={add:!1,addTo:"panels",fixed:!1,collapse:!1},t[o].configuration.classNames[s]={collapsed:"Collapsed"}}(jQuery),function(t){function e(t,e,n){return e>t&&(t=e),t>n&&(t=n),t}var n,o,s="mmenu",r="dragOpen";t[s].addons[r]={setup:function(){if(this.opts.offCanvas){var a=this,l=this.opts[r],c=this.conf[r];if(o=t[s].glbl,"boolean"==typeof l&&(l={open:l}),"object"!=typeof l&&(l={}),(l=this.opts[r]=t.extend(!0,{},t[s].defaults[r],l)).open){var u,h,d,p,f,m={},g=0,v=!1,y=!1,_=0,b=0;switch(this.opts.offCanvas.position){case"left":case"right":m.events="panleft panright",m.typeLower="x",m.typeUpper="X",y="width";break;case"top":case"bottom":m.events="panup pandown",m.typeLower="y",m.typeUpper="Y",y="height"}switch(this.opts.offCanvas.position){case"right":case"bottom":m.negative=!0,p=function(t){t>=o.$wndw[y]()-l.maxStartPos&&(g=1)};break;default:m.negative=!1,p=function(t){t<=l.maxStartPos&&(g=1)}}switch(this.opts.offCanvas.position){case"left":m.open_dir="right",m.close_dir="left";break;case"right":m.open_dir="left",m.close_dir="right";break;case"top":m.open_dir="down",m.close_dir="up";break;case"bottom":m.open_dir="up",m.close_dir="down"}f="front"===this.opts.offCanvas.zposition?function(){return this.$menu}:function(){return t("."+n.slideout)};var w=this.__valueOrFn(l.pageNode,this.$menu,o.$page);"string"==typeof w&&(w=t(w)),new Hammer(w[0],l.vendors.hammer).on("panstart",function(t){p(t.center[m.typeLower]),o.$slideOutNodes=f(),v=m.open_dir}).on(m.events+" panend",function(t){g>0&&t.preventDefault()}).on(m.events,function(t){if(u=t["delta"+m.typeUpper],m.negative&&(u=-u),u!=_&&(v=u>=_?m.open_dir:m.close_dir),(_=u)>l.threshold&&1==g){if(o.$html.hasClass(n.opened))return;g=2,a._openSetup(),a.trigger("opening"),o.$html.addClass(n.dragging),b=e(o.$wndw[y]()*c[y].perc,c[y].min,c[y].max)}2==g&&(h=e(_,10,b)-("front"==a.opts.offCanvas.zposition?b:0),m.negative&&(h=-h),d="translate"+m.typeUpper+"("+h+"px )",o.$slideOutNodes.css({"-webkit-transform":"-webkit-"+d,transform:d}))}).on("panend",function(t){2==g&&(o.$html.removeClass(n.dragging),o.$slideOutNodes.css("transform",""),a[v==m.open_dir?"_openFinish":"close"]()),g=0})}}},add:function(){return"function"!=typeof Hammer||Hammer.VERSION<2?void(t[s].addons[r].setup=function(){}):(n=t[s]._c,t[s]._d,t[s]._e,void n.add("dragging"))},clickAnchor:function(t,e){}},t[s].defaults[r]={open:!1,maxStartPos:100,threshold:50,vendors:{hammer
1:{}}},t[s].configuration[r]={width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}}}(jQuery),function(t){var e,n,o,s,r="mmenu",a="dropdown";t[r].addons[a]={setup:function(){if(this.opts.offCanvas){var l=this,c=this.opts[a],u=this.conf[a];if(s=t[r].glbl,"boolean"==typeof c&&c&&(c={drop:c}),"object"!=typeof c&&(c={}),"string"==typeof c.position&&(c.position={of:c.position}),(c=this.opts[a]=t.extend(!0,{},t[r].defaults[a],c)).drop){if("string"!=typeof c.position.of){var h=this.$menu.attr("id");h&&h.length&&(this.conf.clone&&(h=e.umm(h)),c.position.of='[href="#'+h+'"]')}if("string"==typeof c.position.of){var d=t(c.position.of);if(d.length){this.$menu.addClass(e.dropdown),c.tip&&this.$menu.addClass(e.tip),c.event=c.event.split(" "),1==c.event.length&&(c.event[1]=c.event[0]),"hover"==c.event[0]&&d.on(o.mouseenter+"-dropdown",function(){l.open()}),"hover"==c.event[1]&&this.$menu.on(o.mouseleave+"-dropdown",function(){l.close()}),this.bind("opening",function(){this.$menu.data(n.style,this.$menu.attr("style")||""),s.$html.addClass(e.dropdown)}),this.bind("closed",function(){this.$menu.attr("style",this.$menu.data(n.style)),s.$html.removeClass(e.dropdown)});var p=function(n,o){var l,h,p=o[0],f=o[1],m="x"==n?"left":"top",g="x"==n?"right":"bottom",v="x"==n?"width":"height",y=null,_=s.$wndw["x"==n?"scrollLeft":"scrollTop"](),b=d.offset()[m]-=_,w=b+d["x"==n?"outerWidth":"outerHeight"](),x=s.$wndw[v](),T=u.offset.button[n]+u.offset.viewport[n];if(c.position[n])switch(c.position[n]){case"left":case"bottom":y="after";break;case"right":case"top":y="before"}return null===y&&(y=x/2>b+(w-b)/2?"after":"before"),"after"==y?(h=x-((l="x"==n?b:w)+T),p[m]=l+u.offset.button[n],p[g]="auto",f.push(e["x"==n?"tipleft":"tiptop"])):(h=(l="x"==n?w:b)-T,p[g]="calc( 100% - "+(l-u.offset.button[n])+"px )",p[m]="auto",f.push(e["x"==n?"tipright":"tipbottom"])),p["x"==n?"maxWidth":"maxHeight"]=Math.min(t[r].configuration[a][v].max,h),[p,f]},f=function(t){if(this.vars.opened){this.$menu.attr("style",this.$menu.data(n.style));var o=[{},[]];o=p.call(this,"y",o),o=p.call(this,"x",o),this.$menu.css(o[0]),c.tip&&this.$menu.removeClass(e.tipleft+" "+e.tipright+" "+e.tiptop+" "+e.tipbottom).addClass(o[1].join(" "))}};this.bind("opening",f),s.$wndw.on(o.resize+"-dropdown",function(t){f.call(l)}),this.opts.offCanvas.blockUI||s.$wndw.on(o.scroll+"-dropdown",function(t){f.call(l)})}}}}},add:function(){e=t[r]._c,n=t[r]._d,o=t[r]._e,e.add("dropdown tip tipleft tipright tiptop tipbottom"),o.add("mouseenter mouseleave resize scroll")},clickAnchor:function(t,e){}},t[r].defaults[a]={drop:!1,event:"click",position:{},tip:!0},t[r].configuration[a]={offset:{button:{x:-10,y:10},viewport:{x:20,y:20}},height:{max:880},width:{max:440}}}(jQuery),function(t){var e,n,o="mmenu",s="fixedElements";t[o].addons[s]={setup:function(){if(this.opts.offCanvas){var e=this.opts[s];this.conf[s],n=t[o].glbl,e=this.opts[s]=t.extend(!0,{},t[o].defaults[s],e);var r=function(t){var e=this.conf.classNames[s].fixed;this.__refactorClass(t.find("."+e),e,"slideout").appendTo(n.$body)};r.call(this,n.$page),this.bind("setPage",r)}},add:function(){e=t[o]._c,t[o]._d,t[o]._e,e.add("fixed")},clickAnchor:function(t,e){}},t[o].configuration.classNames[s]={fixed:"Fixed"}}(jQuery),function(t){var e,n="mmenu",o="iconPanels";t[n].addons[o]={setup:function(){var s=this,r=this.opts[o];if(this.conf[o],t[n].glbl,"boolean"==typeof r&&(r={add:r}),"number"==typeof r&&(r={add:!0,visible:r}),"object"!=typeof r&&(r={}),r=this.opts[o]=t.extend(!0,{},t[n].defaults[o],r),r.visible++,r.add){this.$menu.addClass(e.iconpanel);for(var a=[],l=0;l<=r.visible;l++)a.push(e.iconpanel+"-"+l);a=a.join(" ");var c=function(n){n.hasClass(e.vertical)||s.$pnls.children("."+e.panel).removeClass(a).filter("."+e.subopened).removeClass(e.hidden).add(n).not("."+e.vertical).slice(-r.visible).each(function(n){t(this).addClass(e.iconpanel+"-"+n)})};this.bind("openPanel",c),this.bind("init",function(n){c.call(s,s.$pnls.children("."+e.current)),r.hideNavbars&&n.removeClass(e.hasnavbar),n.not("."+e.vertical).each(function(){t(this).children("."+e.subblocker).length||t(this).prepend('<a href="#'+t(this).closest("."+e.panel).attr("id")+'" class="'+e.subblocker+'" />')})})}},add:function(){e=t[n]._c,t[n]._d,t[n]._e,e.add("iconpanel subblocker")},clickAnchor:function(t,e){}},t[n].defaults[o]={add:!1,visible:3,hideNavbars:!1}}(jQuery),function(t){var e,n="mmenu",o="navbars";t[n].addons[o]={setup:function(){var s=this,r=this.opts[o],a=this.conf[o];if(t[n].glbl,void 0!==r){r instanceof Array||(r=[r]);var l={};for(var c in t.each(r,function(c){var u=r[c];"boolean"==typeof u&&u&&(u={}),"object"!=typeof u&&(u={}),void 0===u.content&&(u.content=["prev","title"]),u.content instanceof Array||(u.content=[u.content]);var h=(u=t.extend(!0,{},s.opts.navbar,u)).position,d=u.height;"number"!=typeof d&&(d=1),d=Math.min(4,Math.max(1,d)),"bottom"!=h&&(h="top"),l[h]||(l[h]=0),l[h]++;var p=t("<div />").addClass(e.navbar+" "+e.navbar+"-"+h+" "+e.navbar+"-"+h+"-"+l[h]+" "+e.navbar+"-size-"+d);l[h]+=d-1;for(var f=0,m=0,g=u.content.length;g>m;m++){var v=t[n].addons[o][u.content[m]]||!1;v?f+=v.call(s,p,u,a):((v=u.content[m])instanceof t||(v=t(u.content[m])),p.append(v))}(f+=Math.ceil(p.children().not("."+e.btn).not("."+e.title+"-prev").length/d))>1&&p.addClass(e.navbar+"-content-"+f),p.children("."+e.btn).length&&p.addClass(e.hasbtns),p.prependTo(s.$menu)}),l)s.$menu.addClass(e.hasnavbar+"-"+c+"-"+l[c])}},add:function(){e=t[n]._c,t[n]._d,t[n]._e,e.add("close hasbtns")},clickAnchor:function(t,e){}},t[n].configuration[o]={breadcrumbSeparator:"/"}
1,t[n].configuration.classNames[o]={}}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.breadcrumbs=function(n,o,s){var r=t[e]._c,a=t[e]._d;r.add("breadcrumbs separator");var l=t('<span class="'+r.breadcrumbs+'" />').appendTo(n);this.bind("init",function(e){e.removeClass(r.hasnavbar).each(function(){for(var e=[],n=t(this),o=t('<span class="'+r.breadcrumbs+'"></span>'),l=t(this).children().first(),c=!0;l&&l.length;){l.is("."+r.panel)||(l=l.closest("."+r.panel));var u=l.children("."+r.navbar).children("."+r.title).text();e.unshift(c?"<span>"+u+"</span>":'<a href="#'+l.attr("id")+'">'+u+"</a>"),c=!1,l=l.data(a.parent)}o.append(e.join('<span class="'+r.separator+'">'+s.breadcrumbSeparator+"</span>")).appendTo(n.children("."+r.navbar))})});var c=function(){l.html(this.$pnls.children("."+r.current).children("."+r.navbar).children("."+r.breadcrumbs).html())};return this.bind("openPanel",c),this.bind("init",c),0}}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.close=function(n,o){var s=t[e]._c,r=t[e].glbl,a=t('<a class="'+s.close+" "+s.btn+'" href="#" />').appendTo(n),l=function(t){a.attr("href","#"+t.attr("id"))};return l.call(this,r.$page),this.bind("setPage",l),-1}}(jQuery),function(t){var e="mmenu",n="navbars";t[e].addons[n].next=function(o,s){var r,a,l=t[e]._c,c=t('<a class="'+l.next+" "+l.btn+'" href="#" />').appendTo(o),u=function(t){var e=(t=t||this.$pnls.children("."+l.current)).find("."+this.conf.classNames[n].panelNext);r=e.attr("href"),a=e.html(),c[r?"attr":"removeAttr"]("href",r),c[r||a?"removeClass":"addClass"](l.hidden),c.html(a)};return this.bind("openPanel",u),this.bind("init",function(){u.call(this)}),-1},t[e].configuration.classNames[n].panelNext="Next"}(jQuery),function(t){var e="mmenu",n="navbars";t[e].addons[n].prev=function(o,s){var r=t[e]._c,a=t('<a class="'+r.prev+" "+r.btn+'" href="#" />').appendTo(o);this.bind("init",function(t){t.removeClass(r.hasnavbar).children("."+r.navbar).addClass(r.hidden)});var l,c,u=function(t){if(!(t=t||this.$pnls.children("."+r.current)).hasClass(r.vertical)){var e=t.find("."+this.conf.classNames[n].panelPrev);e.length||(e=t.children("."+r.navbar).children("."+r.prev)),l=e.attr("href"),c=e.html(),a[l?"attr":"removeAttr"]("href",l),a[l||c?"removeClass":"addClass"](r.hidden),a.html(c)}};return this.bind("openPanel",u),this.bind("init",function(){u.call(this)}),-1},t[e].configuration.classNames[n].panelPrev="Prev"}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.searchfield=function(n,o){var s=t[e]._c,r=t('<div class="'+s.search+'" />').appendTo(n);return"object"!=typeof this.opts.searchfield&&(this.opts.searchfield={}),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=r,0}}(jQuery),function(t){var e="mmenu",n="navbars";t[e].addons[n].title=function(o,s){var r,a,l=t[e]._c,c=t('<a class="'+l.title+'" />').appendTo(o),u=function(t){if(!(t=t||this.$pnls.children("."+l.current)).hasClass(l.vertical)){var e=t.find("."+this.conf.classNames[n].panelTitle);e.length||(e=t.children("."+l.navbar).children("."+l.title)),r=e.attr("href"),a=e.html()||s.title,c[r?"attr":"removeAttr"]("href",r),c[r||a?"removeClass":"addClass"](l.hidden),c.html(a)}};return this.bind("openPanel",u),this.bind("init",function(t){u.call(this)}),0},t[e].configuration.classNames[n].panelTitle="Title"}(jQuery),function(t){function e(t,e,n){t.prop("aria-"+e,n)[n?"attr":"removeAttr"]("aria-"+e,"true")}function n(t){return'<span class="'+o.sronly+'">'+t+"</span>"}var o,s="mmenu",r="screenReader";t[s].addons[r]={setup:function(){var a=this.opts[r],l=this.conf[r];if(t[s].glbl,"boolean"==typeof a&&(a={aria:a,text:a}),"object"!=typeof a&&(a={}),(a=this.opts[r]=t.extend(!0,{},t[s].defaults[r],a)).aria){if(this.opts.offCanvas){var c=function(){e(this.$menu,"hidden",!0)};this.bind("open",function(){e(this.$menu,"hidden",!1)}),this.bind("close",c),c.call(this)}var u=function(){e(this.$menu.find("."+o.hidden),"hidden",!0),e(this.$menu.find('[aria-hidden="true"]').not("."+o.hidden),"hidden",!1)};this.bind("update",u),this.bind("openPanel",u),this.bind("openPanel",function(t){e(this.$pnls.children("."+o.panel).not(t).not("."+o.hidden),"hidden",!0),e(t,"hidden",!1)});var h=function(t){e(t.find("."+o.prev+", ."+o.next),"haspopup",!0)};this.bind("init",h),h.call(this,this.$menu.children("."+o.navbar))}if(a.text){var d=function(e){e.children("."+o.navbar).children("."+o.prev).html(n(l.text.closeSubmenu)).end().children("."+o.next).html(n(l.text.openSubmenu)).end().children("."+o.close).html(n(l.text.closeMenu)),e.is("."+o.panel)&&e.find("."+o.listview).find("."+o.next).each(function(){t(this).html(n(l.text[t(this).parent().is("."+o.vertical)?"toggleSubmenu":"openSubmenu"]))})};this.bind("init",d),d.call(this,this.$menu)}},add:function(){o=t[s]._c,t[s]._d,t[s]._e,o.add("sronly")},clickAnchor:function(t,e){}},t[s].defaults[r]={aria:!1,text:!1},t[s].configuration[r]={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}}}(jQuery),function(t){var e,n,o,s="mmenu",r="searchfield";t[s].addons[r]={setup:function(){var a=this,l=this.opts[r],c=this.conf[r];t[s].glbl,"boolean"==typeof l&&(l={add:l}),"object"!=typeof l&&(l={}),"boolean"==typeof l.resultsPanel&&(l.resultsPanel={add:l.resultsPanel}),l=this.opts[r]=t.extend(!0,{},t[s].defaults[r],l),c=this.conf[r]=t.extend(!0,{}
1,t[s].configuration[r],c),this.bind("close",function(){this.$menu.find("."+e.search).find("input").blur()}),this.bind("init",function(s){if(l.add){var u;if(("panels"===l.addTo?s:this.$menu.find(l.addTo)).each(function(){var n=t(this);if(!n.is("."+e.panel)||!n.is("."+e.vertical)){if(!n.children("."+e.search).length){var s,r=a.__valueOrFn(c.clear,n),u=a.__valueOrFn(c.form,n),h=a.__valueOrFn(c.input,n),d=a.__valueOrFn(c.submit,n),p=t("<"+(u?"form":"div")+' class="'+e.search+'" />'),f=t('<input placeholder="'+l.placeholder+'" type="text" autocomplete="off" />');if(p.append(f),h)for(s in h)f.attr(s,h[s]);if(r&&t('<a class="'+e.btn+" "+e.clear+'" href="#" />').appendTo(p).on(o.click+"-searchfield",function(t){t.preventDefault(),f.val("").trigger(o.keyup+"-searchfield")}),u){for(s in u)p.attr(s,u[s]);d&&!r&&t('<a class="'+e.btn+" "+e.next+'" href="#" />').appendTo(p).on(o.click+"-searchfield",function(t){t.preventDefault(),p.submit()})}n.hasClass(e.search)?n.replaceWith(p):n.prepend(p).addClass(e.hassearch)}if(l.noResults&&(n.closest("."+e.panel).length||(n=a.$pnls.children("."+e.panel).first()),!n.children("."+e.noresultsmsg).length)){var m=n.children("."+e.listview).first();t('<div class="'+e.noresultsmsg+" "+e.hidden+'" />').append(l.noResults)[m.length?"insertAfter":"prependTo"](m.length?m:n)}}}),l.search){if(l.resultsPanel.add){l.showSubPanels=!1;var h=this.$pnls.children("."+e.resultspanel);h.length||(h=t('<div class="'+e.panel+" "+e.resultspanel+" "+e.hidden+'" />').appendTo(this.$pnls).append('<div class="'+e.navbar+" "+e.hidden+'"><a class="'+e.title+'">'+l.resultsPanel.title+"</a></div>").append('<ul class="'+e.listview+'" />').append(this.$pnls.find("."+e.noresultsmsg).first().clone()),this.init(h))}this.$menu.find("."+e.search).each(function(){var s,c,u=t(this),d=u.closest("."+e.panel).length;d?c=s=u.closest("."+e.panel):(s=t("."+e.panel,a.$menu),c=a.$menu),l.resultsPanel.add&&(s=s.not(h));var p=u.children("input"),f=a.__findAddBack(s,"."+e.listview).children("li"),m=f.filter("."+e.divider),g=a.__filterListItems(f),v="",y=function(){var o=p.val().toLowerCase();if(o!=v){if(v=o,l.resultsPanel.add&&h.children("."+e.listview).empty(),s.scrollTop(0),g.add(m).addClass(e.hidden).find("."+e.fullsubopensearch).removeClass(e.fullsubopen+" "+e.fullsubopensearch),g.each(function(){var o=t(this),s="a";(l.showTextItems||l.showSubPanels&&o.find("."+e.next))&&(s="a, span"),(o.data(n.searchtext)||o.children(s).text()).toLowerCase().indexOf(v)>-1&&o.add(o.prevAll("."+e.divider).first()).removeClass(e.hidden)}),l.showSubPanels&&s.each(function(o){var s=t(this);a.__filterListItems(s.find("."+e.listview).children()).each(function(){var o=t(this),s=o.data(n.sub);o.removeClass(e.nosubresults),s&&s.find("."+e.listview).children().removeClass(e.hidden)})}),l.resultsPanel.add){if(""===v)this.closeAllPanels(),this.openPanel(this.$pnls.children("."+e.subopened).last());else{var r=t();s.each(function(){var n=a.__filterListItems(t(this).find("."+e.listview).children()).not("."+e.hidden).clone(!0);n.length&&(l.resultsPanel.dividers&&(r=r.add('<li class="'+e.divider+'">'+t(this).children("."+e.navbar).text()+"</li>")),r=r.add(n))}),r.find("."+e.next).remove(),h.children("."+e.listview).append(r),this.openPanel(h)}}else t(s.get().reverse()).each(function(o){var s=t(this),r=s.data(n.parent);r&&(a.__filterListItems(s.find("."+e.listview).children()).length?(r.hasClass(e.hidden)&&r.children("."+e.next).not("."+e.fullsubopen).addClass(e.fullsubopen).addClass(e.fullsubopensearch),r.removeClass(e.hidden).removeClass(e.nosubresults).prevAll("."+e.divider).first().removeClass(e.hidden)):d||(s.hasClass(e.opened)&&setTimeout(function(){a.openPanel(r.closest("."+e.panel))},(o+1)*(1.5*a.conf.openingInterval)),r.addClass(e.nosubresults)))});c.find("."+e.noresultsmsg)[g.not("."+e.hidden).length?"addClass":"removeClass"](e.hidden),this.update()}};p.off(o.keyup+"-"+r+" "+o.change+"-"+r).on(o.keyup+"-"+r,function(t){(function(t){switch(t){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:return!0}return!1})(t.keyCode)||y.call(a)}).on(o.change+"-"+r,function(t){y.call(a)});var _=u.children("."+e.btn);_.length&&p.on(o.keyup+"-"+r,function(t){_[p.val().length?"removeClass":"addClass"](e.hidden)}),p.trigger(o.keyup+"-"+r)})}}})},add:function(){e=t[s]._c,n=t[s]._d,o=t[s]._e,e.add("clear search hassearch resultspanel noresultsmsg noresults nosubresults fullsubopensearch"),n.add("searchtext"),o.add("change keyup")},clickAnchor:function(t,e){}},t[s].defaults[r]={add:!1,addTo:"panels",placeholder:"Search",noResults:"No results found.",resultsPanel:{add:!1,dividers:!0,title:"Search results"},search:!0,showTextItems:!1,showSubPanels:!0},t[s].configuration[r]={clear:!1,form:!1,input:!1,submit:!1}}(jQuery),function(t){var e,n,o="mmenu",s="sectionIndexer";t[o].addons[s]={setup:function(){var r=this,a=this.opts[s];this.conf[s],t[o].glbl,"boolean"==typeof a&&(a={add:a}),"object"!=typeof a&&(a={}),a=this.opts[s]=t.extend(!0,{}
1,t[o].defaults[s],a),this.bind("init",function(o){if(a.add){var s;("panels"===a.addTo?o:t(a.addTo,this.$menu).filter("."+e.panel)).find("."+e.divider).closest("."+e.panel).addClass(e.hasindexer)}if(!this.$indexer&&this.$pnls.children("."+e.hasindexer).length){this.$indexer=t('<div class="'+e.indexer+'" />').prependTo(this.$pnls).append('<a href="#a">a</a><a href="#b">b</a><a href="#c">c</a><a href="#d">d</a><a href="#e">e</a><a href="#f">f</a><a href="#g">g</a><a href="#h">h</a><a href="#i">i</a><a href="#j">j</a><a href="#k">k</a><a href="#l">l</a><a href="#m">m</a><a href="#n">n</a><a href="#o">o</a><a href="#p">p</a><a href="#q">q</a><a href="#r">r</a><a href="#s">s</a><a href="#t">t</a><a href="#u">u</a><a href="#v">v</a><a href="#w">w</a><a href="#x">x</a><a href="#y">y</a><a href="#z">z</a>'),this.$indexer.children().on(n.mouseover+"-sectionindexer "+e.touchstart+"-sectionindexer",function(n){var o=t(this).attr("href").slice(1),s=r.$pnls.children("."+e.current),a=s.find("."+e.listview),l=!1,c=s.scrollTop();s.scrollTop(0),a.children("."+e.divider).not("."+e.hidden).each(function(){!1===l&&o==t(this).text().slice(0,1).toLowerCase()&&(l=t(this).position().top)}),s.scrollTop(!1!==l?l:c)});var l=function(t){r.$menu[(t.hasClass(e.hasindexer)?"add":"remove")+"Class"](e.hasindexer)};this.bind("openPanel",l),l.call(this,this.$pnls.children("."+e.current))}})},add:function(){e=t[o]._c,t[o]._d,n=t[o]._e,e.add("indexer hasindexer"),n.add("mouseover touchstart")},clickAnchor:function(t,n){return!!t.parent().is("."+e.indexer)||void 0}},t[o].defaults[s]={add:!1,addTo:"panels"}}(jQuery),function(t){var e,n,o="mmenu",s="setSelected";t[o].addons[s]={setup:function(){var r=this.opts[s];if(this.conf[s],t[o].glbl,"boolean"==typeof r&&(r={hover:r,parent:r}),"object"!=typeof r&&(r={}),(r=this.opts[s]=t.extend(!0,{},t[o].defaults[s],r)).current||this.bind("init",function(t){t.find("."+e.listview).children("."+e.selected).removeClass(e.selected)}),r.hover&&this.$menu.addClass(e.hoverselected),r.parent){this.$menu.addClass(e.parentselected);var a=function(t){this.$pnls.find("."+e.listview).find("."+e.next).removeClass(e.selected);for(var o=t.data(n.parent);o&&o.length;)o=o.children("."+e.next).addClass(e.selected).closest("."+e.panel).data(n.parent)};this.bind("openedPanel",a),this.bind("init",function(t){a.call(this,this.$pnls.children("."+e.current))})}},add:function(){e=t[o]._c,n=t[o]._d,t[o]._e,e.add("hoverselected parentselected")},clickAnchor:function(t,e){}},t[o].defaults[s]={current:!0,hover:!1,parent:!1}}(jQuery),function(t){var e,n="mmenu",o="toggles";t[n].addons[o]={setup:function(){var s=this;this.opts[o],this.conf[o],t[n].glbl,this.bind("init",function(n){this.__refactorClass(t("input",n),this.conf.classNames[o].toggle,"toggle"),this.__refactorClass(t("input",n),this.conf.classNames[o].check,"check"),t("input."+e.toggle+", input."+e.check,n).each(function(){var n=t(this),o=n.closest("li"),r=n.hasClass(e.toggle)?"toggle":"check",a=n.attr("id")||s.__getUniqueId();o.children('label[for="'+a+'"]').length||(n.attr("id",a),o.prepend(n),t('<label for="'+a+'" class="'+e[r]+'"></label>').insertBefore(o.children("a, span").last()))})})},add:function(){e=t[n]._c,t[n]._d,t[n]._e,e.add("toggle check")},clickAnchor:function(t,e){}},t[n].configuration.classNames[o]={toggle:"Toggle",check:"Check"}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=Array.prototype.slice,n=Array.prototype.splice,o={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:1e3},s=t(window),r=t(document),a=[],l=s.height(),c=function(){for(var e=s.scrollTop(),n=r.height(),o=n-l,c=e>o?o-e:0,u=0,h=a.length;u<h;u++){var d=a[u],p=d.stickyWrapper.offset().top-d.topSpacing-c;if(d.stickyWrapper.css("height",d.stickyElement.outerHeight()),e<=p)null!==d.currentTop&&(d.stickyElement.css({width:"",position:"",top:"","z-index":""}),d.stickyElement.parent().removeClass(d.className),d.stickyElement.trigger("sticky-end",[d]),d.currentTop=null);else{var f,m=n-d.stickyElement.outerHeight()-d.topSpacing-d.bottomSpacing-e-c;m<0?m+=d.topSpacing:m=d.topSpacing,d.currentTop!==m&&(d.getWidthFrom?f=t(d.getWidthFrom).width()||null:d.widthFromWrapper&&(f=d.stickyWrapper.width()),null==f&&(f=d.stickyElement.width()),d.stickyElement.css("width",f).css("position","fixed").css("top",m).css("z-index",d.zIndex),d.stickyElement.parent().addClass(d.className),null===d.currentTop?d.stickyElement.trigger("sticky-start",[d]):d.stickyElement.trigger("sticky-update",[d]),d.currentTop===d.topSpacing&&d.currentTop>m||null===d.currentTop&&m<d.topSpacing?d.stickyElement.trigger("sticky-bottom-reached",[d]):null!==d.currentTop&&m===d.topSpacing&&d.currentTop<m&&d.stickyElement.trigger("sticky-bottom-unreached",[d]),d.currentTop=m);var g=d.stickyWrapper.parent();d.stickyElement.offset().top+d.stickyElement.outerHeight()>=g.offset().top+g.outerHeight()&&d.stickyElement.offset().top<=d.topSpacing?d.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):d.stickyElement.css("position","fixed").css("top",m).css("bottom","").css("z-index",d.zIndex)}}},u=function(){l=s.height();for(var e=0,n=a.length;e<n;e++){var o=a[e],r=null;o.getWidthFrom?o.responsiveWidth&&(r=t(o.getWidthFrom).width()):o.widthFromWrapper&&(r=o.stickyWrapper.width()),null!=r&&o.stickyElement.css("width",r)}},h={init:function(e){var n=t.extend({},o,e);return this.each(function(){var e=t(this),s=e.attr("id"),r=s?s+"-"+o.wrapperClassName:o.wrapperClassName,l=t("<div></div>").attr("id",r).addClass(n.wrapperClassName);e.wrapAll(function(){if(0==t(this).parent("#"+r).length)return l});var c=e.parent();n.center&&c.css({width:e.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===e.css("float")&&e.css({float:"none"}).parent().css({float:"right"}),n.stickyElement=e,n.stickyWrapper=c,n.currentTop=null,a.push(n),h.setWrapperHeight(this),h.setupChangeListeners(this)})},setWrapperHeight:function(e){var n=t(e),o=n.parent();o&&o.css("height",n.outerHeight())},setupChangeListeners:function(t){window.MutationObserver?new window.MutationObserver(function(e){(e[0].addedNodes.length||e[0].removedNodes.length)&&h.setWrapperHeight(t)}).observe(t,{subtree:!0,childList:!0}):window.addEventListener?(t.addEventListener("DOMNodeInserted",function(){h.setWrapperHeight(t)},!1),t.addEventListener("DOMNodeRemoved",function(){h.setWrapperHeight(t)},!1)):window.attachEvent&&(t.attachEvent("onDOMNodeInserted",function(){h.setWrapperHeight(t)}),t.attachEvent("onDOMNodeRemoved",function(){h.setWrapperHeight(t)}))},update:c,unstick:function(e){return this.each(function(){for(var e=t
1(this),o=-1,s=a.length;s-- >0;)a[s].stickyElement.get(0)===this&&(n.call(a,s,1),o=s);-1!==o&&(e.unwrap(),e.css({width:"",position:"",top:"",float:"","z-index":""}))})}};window.addEventListener?(window.addEventListener("scroll",c,!1),window.addEventListener("resize",u,!1)):window.attachEvent&&(window.attachEvent("onscroll",c),window.attachEvent("onresize",u)),t.fn.sticky=function(n){return h[n]?h[n].apply(this,e.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.sticky"):h.init.apply(this,arguments)},t.fn.unstick=function(n){return h[n]?h[n].apply(this,e.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.sticky"):h.unstick.apply(this,arguments)},t(function(){setTimeout(c,0)})}),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,n,o,s){return jQuery.easing[jQuery.easing.def](t,e,n,o,s)},easeInQuad:function(t,e,n,o,s){return o*(e/=s)*e+n},easeOutQuad:function(t,e,n,o,s){return-o*(e/=s)*(e-2)+n},easeInOutQuad:function(t,e,n,o,s){return(e/=s/2)<1?o/2*e*e+n:-o/2*(--e*(e-2)-1)+n},easeInCubic:function(t,e,n,o,s){return o*(e/=s)*e*e+n},easeOutCubic:function(t,e,n,o,s){return o*((e=e/s-1)*e*e+1)+n},easeInOutCubic:function(t,e,n,o,s){return(e/=s/2)<1?o/2*e*e*e+n:o/2*((e-=2)*e*e+2)+n},easeInQuart:function(t,e,n,o,s){return o*(e/=s)*e*e*e+n},easeOutQuart:function(t,e,n,o,s){return-o*((e=e/s-1)*e*e*e-1)+n},easeInOutQuart:function(t,e,n,o,s){return(e/=s/2)<1?o/2*e*e*e*e+n:-o/2*((e-=2)*e*e*e-2)+n},easeInQuint:function(t,e,n,o,s){return o*(e/=s)*e*e*e*e+n},easeOutQuint:function(t,e,n,o,s){return o*((e=e/s-1)*e*e*e*e+1)+n},easeInOutQuint:function(t,e,n,o,s){return(e/=s/2)<1?o/2*e*e*e*e*e+n:o/2*((e-=2)*e*e*e*e+2)+n},easeInSine:function(t,e,n,o,s){return-o*Math.cos(e/s*(Math.PI/2))+o+n},easeOutSine:function(t,e,n,o,s){return o*Math.sin(e/s*(Math.PI/2))+n},easeInOutSine:function(t,e,n,o,s){return-o/2*(Math.cos(Math.PI*e/s)-1)+n},easeInExpo:function(t,e,n,o,s){return 0==e?n:o*Math.pow(2,10*(e/s-1))+n},easeOutExpo:function(t,e,n,o,s){return e==s?n+o:o*(-Math.pow(2,-10*e/s)+1)+n},easeInOutExpo:function(t,e,n,o,s){return 0==e?n:e==s?n+o:(e/=s/2)<1?o/2*Math.pow(2,10*(e-1))+n:o/2*(-Math.pow(2,-10*--e)+2)+n},easeInCirc:function(t,e,n,o,s){return-o*(Math.sqrt(1-(e/=s)*e)-1)+n},easeOutCirc:function(t,e,n,o,s){return o*Math.sqrt(1-(e=e/s-1)*e)+n},easeInOutCirc:function(t,e,n,o,s){return(e/=s/2)<1?-o/2*(Math.sqrt(1-e*e)-1)+n:o/2*(Math.sqrt(1-(e-=2)*e)+1)+n},easeInElastic:function(t,e,n,o,s){var r=1.70158,a=0,l=o;if(0==e)return n;if(1==(e/=s))return n+o;if(a||(a=.3*s),l<Math.abs(o)){l=o;var r=a/4}else var r=a/(2*Math.PI)*Math.asin(o/l);return-(l*Math.pow(2,10*(e-=1))*Math.sin((e*s-r)*(2*Math.PI)/a))+n},easeOutElastic:function(t,e,n,o,s){var r=1.70158,a=0,l=o;if(0==e)return n;if(1==(e/=s))return n+o;if(a||(a=.3*s),l<Math.abs(o)){l=o;var r=a/4}else var r=a/(2*Math.PI)*Math.asin(o/l);return l*Math.pow(2,-10*e)*Math.sin((e*s-r)*(2*Math.PI)/a)+o+n},easeInOutElastic:function(t,e,n,o,s){var r=1.70158,a=0,l=o;if(0==e)return n;if(2==(e/=s/2))return n+o;if(a||(a=s*(.3*1.5)),l<Math.abs(o)){l=o;var r=a/4}else var r=a/(2*Math.PI)*Math.asin(o/l);return e<1?-.5*(l*Math.pow(2,10*(e-=1))*Math.sin((e*s-r)*(2*Math.PI)/a))+n:l*Math.pow(2,-10*(e-=1))*Math.sin((e*s-r)*(2*Math.PI)/a)*.5+o+n},easeInBack:function(t,e,n,o,s,r){return void 0==r&&(r=1.70158),o*(e/=s)*e*((r+1)*e-r)+n},easeOutBack:function(t,e,n,o,s,r){return void 0==r&&(r=1.70158),o*((e=e/s-1)*e*((r+1)*e+r)+1)+n},easeInOutBack:function(t,e,n,o,s,r){return(void 0==r&&(r=1.70158),(e/=s/2)<1)?o/2*(e*e*(((r*=1.525)+1)*e-r))+n:o/2*((e-=2)*e*(((r*=1.525)+1)*e+r)+2)+n},easeInBounce:function(t,e,n,o,s){return o-jQuery.easing.easeOutBounce(t,s-e,0,o,s)+n},easeOutBounce:function(t,e,n,o,s){return(e/=s)<1/2.75?o*(7.5625*e*e)+n:e<2/2.75?o*(7.5625*(e-=1.5/2.75)*e+.75)+n:e<2.5/2.75?o*(7.5625*(e-=2.25/2.75)*e+.9375)+n:o*(7.5625*(e-=2.625/2.75)*e+.984375)+n},easeInOutBounce:function(t,e,n,o,s){return e<s/2?.5*jQuery.easing.easeInBounce(t,2*e,0,o,s)+n:.5*jQuery.easing.easeOutBounce(t,2*e-s,0,o,s)+.5*o+n}}),function(t){var e={},n={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSli
1des:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};t.fn.bxSlider=function(o){if(0==this.length)return this;if(this.length>1)return this.each(function(){t(this).bxSlider(o)}),this;var s={},r=this;e.el=this;var a=t(window).width(),l=t(window).height(),c=function(){s.settings=t.extend({},n,o),s.settings.slideWidth=parseInt(s.settings.slideWidth),s.children=r.children(s.settings.slideSelector),s.children.length<s.settings.minSlides&&(s.settings.minSlides=s.children.length),s.children.length<s.settings.maxSlides&&(s.settings.maxSlides=s.children.length),s.settings.randomStart&&(s.settings.startSlide=Math.floor(Math.random()*s.children.length)),s.active={index:s.settings.startSlide},s.carousel=s.settings.minSlides>1||s.settings.maxSlides>1,s.carousel&&(s.settings.preloadImages="all"),s.minThreshold=s.settings.minSlides*s.settings.slideWidth+(s.settings.minSlides-1)*s.settings.slideMargin,s.maxThreshold=s.settings.maxSlides*s.settings.slideWidth+(s.settings.maxSlides-1)*s.settings.slideMargin,s.working=!1,s.controls={},s.interval=null,s.animProp="vertical"==s.settings.mode?"top":"left",s.usingCSS=s.settings.useCSS&&"fade"!=s.settings.mode&&function(){var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var n in e)if(void 0!==t.style[e[n]])return s.cssPrefix=e[n].replace("Perspective","").toLowerCase(),s.animProp="-"+s.cssPrefix+"-transform",!0;return!1}(),"vertical"==s.settings.mode&&(s.settings.maxSlides=s.settings.minSlides),r.data("origStyle",r.attr("style")),r.children(s.settings.slideSelector).each(function(){t(this).data("origStyle",t(this).attr("style"))}),u()},u=function(){r.wrap('<div class="'+s.settings.wrapperClass+'"><div class="bx-viewport"></div></div>'),s.viewport=r.parent(),s.loader=t('<div class="bx-loading" />'),s.viewport.prepend(s.loader),r.css({width:"horizontal"==s.settings.mode?100*s.children.length+215+"%":"auto",position:"relative"}),s.usingCSS&&s.settings.easing?r.css("-"+s.cssPrefix+"-transition-timing-function",s.settings.easing):s.settings.easing||(s.settings.easing="swing"),g(),s.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),s.viewport.parent().css({maxWidth:f()}),s.settings.pager||s.viewport.parent().css({margin:"0 auto 0px"}),s.children.css({float:"horizontal"==s.settings.mode?"left":"none",listStyle:"none",position:"relative"}),s.children.css("width",m()),"horizontal"==s.settings.mode&&s.settings.slideMargin>0&&s.children.css("marginRight",s.settings.slideMargin),"vertical"==s.settings.mode&&s.settings.slideMargin>0&&s.children.css("marginBottom",s.settings.slideMargin),"fade"==s.settings.mode&&(s.children.css({position:"absolute",zIndex:0,display:"none"}),s.children.eq(s.settings.startSlide).css({zIndex:s.settings.slideZIndex,display:"block"})),s.controls.el=t('<div class="bx-controls" />'),s.settings.captions&&C(),s.active.last=s.settings.startSlide==v()-1,s.settings.video&&r.fitVids();var e=s.children.eq(s.settings.startSlide);"all"==s.settings.preloadImages&&(e=s.children),s.settings.ticker?s.settings.pager=!1:(s.settings.pager&&x(),s.settings.controls&&T(),s.settings.auto&&s.settings.autoControls&&k(),(s.settings.controls||s.settings.autoControls||s.settings.pager)&&s.viewport.after(s.controls.el)),h(e,d)},h=function(e,n){var o=e.find("img, iframe").length;if(0==o){n();return}var s=0;e.find("img, iframe").each(function(){t(this).one("load",function(){++s==o&&n()}).each(function(){this.complete&&t(this).load()})})},d=function(){if(s.settings.infiniteLoop&&"fade"!=s.settings.mode&&!s.settings.ticker){var e="vertical"==s.settings.mode?s.settings.minSlides:s.settings.maxSlides,n=s.children.slice(0,e).clone().addClass("bx-clone"),o=s.children.slice(-e).clone().addClass("bx-clone");r.append(n).prepend(o)}s.loader.remove(),_(),"vertical"==s.settings.mode&&(s.settings.adaptiveHeight=!0),s.viewport.height(p()),r.redrawSlider(),s.settings.onSliderLoad(s.active.index),s.initialized=!0,s.settings.responsive&&t(window).bind("resize",Z),s.settings.auto&&s.settings.autoStart&&(v()>1||s.settings.autoSlideForOnePage)&&N(),s.settings.ticker&&D(),s.settings.pager&&M(s.settings.startSlide),s.settings.controls&&z(),s.settings.touchEnabled&&!s.settings.ticker&&R()},p=function(){var e=0,n=t();if("vertical"==s.settings.mode||s.settings.adaptiveHeight){if(s.carousel){var o=1==s.settings.moveSlides?s.active.index:s.active.index*y();for(i=1,n=s.children.eq(o);i<=s.settings.maxSlides-1;i++)n=o+i>=s.children.length?n.add(s.children.eq(i-1)):n.add(s.children.eq(o+i))}else n=s.children.eq(s.active.index)}else n=s.children;return"vertical"==s.settings.mode?(n.each(function(n){e+=t(this).outerHeight()}),s.settings.slideMargin>0&&(e+=s.settings.slideMargin*(s.settings.minSlides-1))):e=Math.max.apply(Math,n.map(function(){return t(this).outerHeight(!1)}).get()),"border-box"==s.viewport.css("box-sizing")?e+=parseFloat(s.viewport.css("padding-top"))+parseFloat(s.viewport.css("padding-bottom"))+parseFloat(s.viewport.css("border-top-width"))+parseFloat(s.viewport.css("border-bottom-width")):"padding-box"==s.viewport.css("box-sizing")&&(e+=parseFloat(s.viewport.css("padding-top"))+parseFloat(s.viewport.css("padding-bottom"))),e},f=function(){var t="100%";return s.settings.slideWidth>0&&(t="horizontal"==s.settings.mode?s.settings.maxSlides*s.settings.slideWidth+(s.settings.maxSlides-1)*s.settings.slideMargin:s.settings.slideWidth),t},m=function(){var t=s.settings.slideWidth,e=s.viewport.width();return 0==s.settings.slideWidth||s.settings.slideWidth>e&&!s.carousel||"vertical"==s.settings.mode?t=e:s.settings.maxSlides>1&&"horizontal"==s.settings.mode&&(e>s.maxThreshold||e<s.minThreshold&&(t=(e-s.settings.slideMargin*(s.settings.minSlides-1))/s.settings.minSlides)),t},g=function(){var t=1;if("horizontal"==s.settings.mode&&s.settings.slideWidth>0){if(s.viewport.width()<s.minThreshold)t=s.settings.minSlides;else if(s.viewport.width()>s.maxThreshold)t=s.settings.maxSlides;else{var e=s.children.first().width()+s.settings.slideMargin;t=Math.floor((s.viewport.width()+s.settings.slideMargin)/e)}}else"vertical"==s.settings.mode&&(t=s.settings.minSlides);return t},v=function(){var t=0;if(s.settings.moveSlides>0){if(s.settings.infiniteLoop)t=Math.ceil(s.children.length/y());else for(var e=0,n=0;e<s.children.length;)++t,e=n+g(),n+=s.settings.moveSlides<=g()?s.settings.moveSlides:g()}else t=Math.ceil(s.children.length/g());return t},y=function(){return s.settings.moveSlides>0&&s.settings.moveSlides<=g()?s.settings.moveSlides:g()},_=function(){if(s.children.length>s.settings.maxSlides&&s.active.last&&!s.settings.infiniteLoop){if("horizontal"==s.settings.mode){var t=s.children.last(
1),e=t.position();b(-(e.left-(s.viewport.width()-t.outerWidth())),"reset",0)}else if("vertical"==s.settings.mode){var n=s.children.length-s.settings.minSlides,e=s.children.eq(n).position();b(-e.top,"reset",0)}}else{var e=s.children.eq(s.active.index*y()).position();s.active.index==v()-1&&(s.active.last=!0),void 0!=e&&("horizontal"==s.settings.mode?b(-e.left,"reset",0):"vertical"==s.settings.mode&&b(-e.top,"reset",0))}},b=function(t,e,n,o){if(s.usingCSS){var a="vertical"==s.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)";r.css("-"+s.cssPrefix+"-transition-duration",n/1e3+"s"),"slide"==e?(r.css(s.animProp,a),r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),A()})):"reset"==e?r.css(s.animProp,a):"ticker"==e&&(r.css("-"+s.cssPrefix+"-transition-timing-function","linear"),r.css(s.animProp,a),r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),b(o.resetValue,"reset",0),B()}))}else{var l={};l[s.animProp]=t,"slide"==e?r.animate(l,n,s.settings.easing,function(){A()}):"reset"==e?r.css(s.animProp,t):"ticker"==e&&r.animate(l,speed,"linear",function(){b(o.resetValue,"reset",0),B()})}},w=function(){for(var e="",n=v(),o=0;o<n;o++){var r="";s.settings.buildPager&&t.isFunction(s.settings.buildPager)?(r=s.settings.buildPager(o),s.pagerEl.addClass("bx-custom-pager")):(r=o+1,s.pagerEl.addClass("bx-default-pager")),e+='<div class="bx-pager-item"><a href="" data-slide-index="'+o+'" class="bx-pager-link">'+r+"</a></div>"}s.pagerEl.html(e)},x=function(){s.settings.pagerCustom?s.pagerEl=t(s.settings.pagerCustom):(s.pagerEl=t('<div class="bx-pager" />'),s.settings.pagerSelector?t(s.settings.pagerSelector).html(s.pagerEl):s.controls.el.addClass("bx-has-pager").append(s.pagerEl),w()),s.pagerEl.on("click","a",O)},T=function(){s.controls.next=t('<a class="bx-next" href="">'+s.settings.nextText+"</a>"),s.controls.prev=t('<a class="bx-prev" href="">'+s.settings.prevText+"</a>"),s.controls.next.bind("click",j),s.controls.prev.bind("click",S),s.settings.nextSelector&&t(s.settings.nextSelector).append(s.controls.next),s.settings.prevSelector&&t(s.settings.prevSelector).append(s.controls.prev),s.settings.nextSelector||s.settings.prevSelector||(s.controls.directionEl=t('<div class="bx-controls-direction" />'),s.controls.directionEl.append(s.controls.prev).append(s.controls.next),s.controls.el.addClass("bx-has-controls-direction").append(s.controls.directionEl))},k=function(){s.controls.start=t('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+s.settings.startText+"</a></div>"),s.controls.stop=t('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+s.settings.stopText+"</a></div>"),s.controls.autoEl=t('<div class="bx-controls-auto" />'),s.controls.autoEl.on("click",".bx-start",P),s.controls.autoEl.on("click",".bx-stop",E),s.settings.autoControlsCombine?s.controls.autoEl.append(s.controls.start):s.controls.autoEl.append(s.controls.start).append(s.controls.stop),s.settings.autoControlsSelector?t(s.settings.autoControlsSelector).html(s.controls.autoEl):s.controls.el.addClass("bx-has-controls-auto").append(s.controls.autoEl),I(s.settings.autoStart?"stop":"start")},C=function(){s.children.each(function(e){var n=t(this).find("img:first").attr("title");void 0!=n&&(""+n).length&&t(this).append('<div class="bx-caption"><span>'+n+"</span></div>")})},j=function(t){s.settings.auto&&r.stopAuto(),r.goToNextSlide(),t.preventDefault()},S=function(t){s.settings.auto&&r.stopAuto(),r.goToPrevSlide(),t.preventDefault()},P=function(t){r.startAuto(),t.preventDefault()},E=function(t){r.stopAuto(),t.preventDefault()},O=function(e){s.settings.auto&&r.stopAuto();var n=t(e.currentTarget);if(void 0!==n.attr("data-slide-index")){var o=parseInt(n.attr("data-slide-index"));o!=s.active.index&&r.goToSlide(o),e.preventDefault()}},M=function(e){var n=s.children.length;if("short"==s.settings.pagerType){s.settings.maxSlides>1&&(n=Math.ceil(s.children.length/s.settings.maxSlides)),s.pagerEl.html(e+1+s.settings.pagerShortSeparator+n);return}s.pagerEl.find("a").removeClass("active"),s.pagerEl.each(function(n,o){t(o).find("a").eq(e).addClass("active")})},A=function(){if(s.settings.infiniteLoop){var t="";0==s.active.index?t=s.children.eq(0).position():s.active.index==v()-1&&s.carousel?t=s.children.eq((v()-1)*y()).position():s.active.index==s.children.length-1&&(t=s.children.eq(s.children.length-1).position()),t&&("horizontal"==s.settings.mode?b(-t.left,"reset",0):"vertical"==s.settings.mode&&b(-t.top,"reset",0))}s.working=!1,s.settings.onSlideAfter(s.children.eq(s.active.index),s.oldIndex,s.active.index)},I=function(t){s.settings.autoControlsCombine?s.controls.autoEl.html(s.controls[t]):(s.controls.autoEl.find("a").removeClass("active"),s.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))}
1,z=function(){1==v()?(s.controls.prev.addClass("disabled"),s.controls.next.addClass("disabled")):!s.settings.infiniteLoop&&s.settings.hideControlOnEnd&&(0==s.active.index?(s.controls.prev.addClass("disabled"),s.controls.next.removeClass("disabled")):s.active.index==v()-1?(s.controls.next.addClass("disabled"),s.controls.prev.removeClass("disabled")):(s.controls.prev.removeClass("disabled"),s.controls.next.removeClass("disabled")))},N=function(){s.settings.autoDelay>0?setTimeout(r.startAuto,s.settings.autoDelay):r.startAuto(),s.settings.autoHover&&r.hover(function(){s.interval&&(r.stopAuto(!0),s.autoPaused=!0)},function(){s.autoPaused&&(r.startAuto(!0),s.autoPaused=null)})},D=function(){var e=0;if("next"==s.settings.autoDirection)r.append(s.children.clone().addClass("bx-clone"));else{r.prepend(s.children.clone().addClass("bx-clone"));var n=s.children.first().position();e="horizontal"==s.settings.mode?-n.left:-n.top}b(e,"reset",0),s.settings.pager=!1,s.settings.controls=!1,s.settings.autoControls=!1,s.settings.tickerHover&&!s.usingCSS&&s.viewport.hover(function(){r.stop()},function(){var e=0;s.children.each(function(n){e+="horizontal"==s.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)});var n=s.settings.speed/e,o="horizontal"==s.settings.mode?"left":"top",a=n*(e-Math.abs(parseInt(r.css(o))));B(a)}),B()},B=function(t){speed=t||s.settings.speed;var e={left:0,top:0},n={left:0,top:0};"next"==s.settings.autoDirection?e=r.find(".bx-clone").first().position():n=s.children.first().position();var o="horizontal"==s.settings.mode?-e.left:-e.top,a="horizontal"==s.settings.mode?-n.left:-n.top;b(o,"ticker",speed,{resetValue:a})},R=function(){s.touch={start:{x:0,y:0},end:{x:0,y:0}},s.viewport.bind("touchstart",F)},F=function(t){if(s.working)t.preventDefault();else{s.touch.originalPos=r.position();var e=t.originalEvent;s.touch.start.x=e.changedTouches[0].pageX,s.touch.start.y=e.changedTouches[0].pageY,s.viewport.bind("touchmove",H),s.viewport.bind("touchend",W)}},H=function(t){var e=t.originalEvent,n=Math.abs(e.changedTouches[0].pageX-s.touch.start.x),o=Math.abs(e.changedTouches[0].pageY-s.touch.start.y);if(3*n>o&&s.settings.preventDefaultSwipeX?t.preventDefault():3*o>n&&s.settings.preventDefaultSwipeY&&t.preventDefault(),"fade"!=s.settings.mode&&s.settings.oneToOneTouch){var r=0;if("horizontal"==s.settings.mode){var a=e.changedTouches[0].pageX-s.touch.start.x;r=s.touch.originalPos.left+a}else{var a=e.changedTouches[0].pageY-s.touch.start.y;r=s.touch.originalPos.top+a}b(r,"reset",0)}},W=function(t){s.viewport.unbind("touchmove",H);var e=t.originalEvent,n=0;if(s.touch.end.x=e.changedTouches[0].pageX,s.touch.end.y=e.changedTouches[0].pageY,"fade"==s.settings.mode){var o=Math.abs(s.touch.start.x-s.touch.end.x);o>=s.settings.swipeThreshold&&(s.touch.start.x>s.touch.end.x?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto())}else{var o=0;"horizontal"==s.settings.mode?(o=s.touch.end.x-s.touch.start.x,n=s.touch.originalPos.left):(o=s.touch.end.y-s.touch.start.y,n=s.touch.originalPos.top),!s.settings.infiniteLoop&&(0==s.active.index&&o>0||s.active.last&&o<0)?b(n,"reset",200):Math.abs(o)>=s.settings.swipeThreshold?(o<0?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto()):b(n,"reset",200)}s.viewport.unbind("touchend",W)},Z=function(e){if(s.initialized){var n=t(window).width(),o=t(window).height();(a!=n||l!=o)&&(a=n,l=o,r.redrawSlider(),s.settings.onSliderResize.call(r,s.active.index))}};return r.goToSlide=function(e,n){if(!s.working&&s.active.index!=e){if(s.working=!0,s.oldIndex=s.active.index,e<0?s.active.index=v()-1:e>=v()?s.active.index=0:s.active.index=e,s.settings.onSlideBefore(s.children.eq(s.active.index),s.oldIndex,s.active.index),"next"==n?s.settings.onSlideNext(s.children.eq(s.active.index),s.oldIndex,s.active.index):"prev"==n&&s.settings.onSlidePrev(s.children.eq(s.active.index),s.oldIndex,s.active.index),s.active.last=s.active.index>=v()-1,s.settings.pager&&M(s.active.index),s.settings.controls&&z(),"fade"==s.settings.mode)s.settings.adaptiveHeight&&s.viewport.height()!=p()&&s.viewport.animate({height:p()},s.settings.adaptiveHeightSpeed),s.children.filter(":visible").fadeOut(s.settings.speed).css({zIndex:0}),s.children.eq(s.active.index).css("zIndex",s.settings.slideZIndex+1).fadeIn(s.settings.speed,function(){t(this).css("zIndex",s.settings.slideZIndex),A()});
1else{s.settings.adaptiveHeight&&s.viewport.height()!=p()&&s.viewport.animate({height:p()},s.settings.adaptiveHeightSpeed);var o=0,a={left:0,top:0};if(!s.settings.infiniteLoop&&s.carousel&&s.active.last){if("horizontal"==s.settings.mode){var l=s.children.eq(s.children.length-1);a=l.position(),o=s.viewport.width()-l.outerWidth()}else{var c=s.children.length-s.settings.minSlides;a=s.children.eq(c).position()}}else if(s.carousel&&s.active.last&&"prev"==n){var u=1==s.settings.moveSlides?s.settings.maxSlides-y():(v()-1)*y()-(s.children.length-s.settings.maxSlides),l=r.children(".bx-clone").eq(u);a=l.position()}else if("next"==n&&0==s.active.index)a=r.find("> .bx-clone").eq(s.settings.maxSlides).position(),s.active.last=!1;else if(e>=0){var h=e*y();a=s.children.eq(h).position()}void 0!==a&&b("horizontal"==s.settings.mode?-(a.left-o):-a.top,"slide",s.settings.speed)}}},r.goToNextSlide=function(){if(s.settings.infiniteLoop||!s.active.last){var t=parseInt(s.active.index)+1;r.goToSlide(t,"next")}},r.goToPrevSlide=function(){if(s.settings.infiniteLoop||0!=s.active.index){var t=parseInt(s.active.index)-1;r.goToSlide(t,"prev")}},r.startAuto=function(t){!s.interval&&(s.interval=setInterval(function(){"next"==s.settings.autoDirection?r.goToNextSlide():r.goToPrevSlide()},s.settings.pause),s.settings.autoControls&&!0!=t&&I("stop"))},r.stopAuto=function(t){s.interval&&(clearInterval(s.interval),s.interval=null,s.settings.autoControls&&!0!=t&&I("start"))},r.getCurrentSlide=function(){return s.active.index},r.getCurrentSlideElement=function(){return s.children.eq(s.active.index)},r.getSlideCount=function(){return s.children.length},r.redrawSlider=function(){s.children.add(r.find(".bx-clone")).width(m()),s.viewport.css("height",p()),s.settings.ticker||_(),s.active.last&&(s.active.index=v()-1),s.active.index>=v()&&(s.active.last=!0),s.settings.pager&&!s.settings.pagerCustom&&(w(),M(s.active.index))},r.destroySlider=function(){s.initialized&&(s.initialized=!1,t(".bx-clone",this).remove(),s.children.each(function(){void 0!=t(this).data("origStyle")?t(this).attr("style",t(this).data("origStyle")):t(this).removeAttr("style")}),void 0!=t(this).data("origStyle")?this.attr("style",t(this).data("origStyle")):t(this).removeAttr("style"),t(this).unwrap().unwrap(),s.controls.el&&s.controls.el.remove(),s.controls.next&&s.controls.next.remove(),s.controls.prev&&s.controls.prev.remove(),s.pagerEl&&s.settings.controls&&s.pagerEl.remove(),t(".bx-caption",this).remove(),s.controls.autoEl&&s.controls.autoEl.remove(),clearInterval(s.interval),s.settings.responsive&&t(window).unbind("resize",Z))},r.reloadSlider=function(t){void 0!=t&&(o=t),r.destroySlider(),c()},c(),this}}(jQuery),/*! 2* FitVids 1.0 3* 4* Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com 5* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ 6* Released under the WTFPL license - http://sam.zoy.org/wtfpl/ 7* 8* Date: Thu Sept 01 18:00:00 2011 -0500 9*/function(t){"use strict";t.fn.fitVids=function(e){var n={customSelector:null},o=document.createElement("div"),s=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];return o.className="fit-vids-style",o.innerHTML="­<style> .fluid-width-video-wrapper { width: 100%; position: relative; padding: 0; } .fluid-width-video-wrapper iframe, .fluid-width-video-wrapper object, .fluid-width-video-wrapper embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } </style>",s.parentNode.insertBefore(o,s),e&&t.extend(n,e),this.each(function(){var e=["iframe[src*='player.vimeo.com']","iframe[src*='www.youtube.com']","iframe[src*='www.kickstarter.com']","object","embed"];n.customSelector&&e.push(n.customSelector),t(this).find(e.join(",")).each(function(){var e=t(this);if(("embed"!==this.tagName.toLowerCase()||!e.parent("object").length)&&!e.parent(".fluid-width-video-wrapper").length){var n="object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height(),o=isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10);e.attr("id")||e.attr("id","fitvid"+Math.floor(999999*Math.random())),e.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*(n/o)+"%"),e.removeAttr("height").removeAttr("width")}})})}}(jQuery),function(t,e,n,o){"use strict";var s=n("html"),r=n(t),a=n(e),l=n.fancybox=function(){l.open.apply(this,arguments)},c=navigator.userAgent.match(/msie/i),u=null,h=o!==e.createTouch,d=function(t){return t&&t.hasOwnProperty&&t instanceof n},p=function(t){return t&&"string"===n.type(t)},f=function(t){return p(t)&&t.indexOf("%")>0},m=function(t,e){var n=parseInt(t,10)||0;return e&&f(t)&&(n=l.getViewport()[e]/100*n),Math.ceil(n)},g=function(t,e){return m(t,e)+"px"};n.extend(l,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!
9h,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(c?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeChange:n.noop,beforeClose:n.noop,afterClose:n.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(t,e){if(t&&(n.isPlainObject(e)||(e={}),!1!==l.close(!0)))return n.isArray(t)||(t=d(t)?n(t).get():[t]),n.each(t,function(s,r){var a,c,u,h,f,m,g,v={};"object"===n.type(r)&&(r.nodeType&&(r=n(r)),d(r)?(v={href:r.data("fancybox-href")||r.attr("href"),title:r.data("fancybox-title")||r.attr("title"),isDom:!0,element:r},n.metadata&&n.extend(!0,v,r.metadata())):v=r),a=e.href||v.href||(p(r)?r:null),c=o!==e.title?e.title:v.title||"",(h=(u=e.content||v.content)?"html":e.type||v.type)||!v.isDom||(h=r.data("fancybox-type"))||(h=(f=r.prop("class").match(/fancybox\.(\w+)/))?f[1]:null),p(a)&&(!h&&(l.isImage(a)?h="image":l.isSWF(a)?h="swf":"#"===a.charAt(0)?h="inline":p(r)&&(h="html",u=r)),"ajax"===h&&(a=(m=a.split(/\s+/,2)).shift(),g=m.shift())),u||("inline"===h?a?u=n(p(a)?a.replace(/.*(?=#[^\s]+$)/,""):a):v.isDom&&(u=r):"html"===h?u=a:h||a||!v.isDom||(h="inline",u=r)),n.extend(v,{href:a,type:h,content:u,title:c,selector:g}),t[s]=v}),l.opts=n.extend(!0,{},l.defaults,e),o!==e.keys&&(l.opts.keys=!!e.keys&&n.extend({},l.defaults.keys,e.keys)),l.group=t,l._start(l.opts.index)},cancel:function(){var t=l.coming;t&&!1!==l.trigger("onCancel")&&(l.hideLoading(),l.ajaxLoad&&l.ajaxLoad.abort(),l.ajaxLoad=null,l.imgPreload&&(l.imgPreload.onload=l.imgPreload.onerror=null),t.wrap&&t.wrap.stop(!0,!0).trigger("onReset").remove(),l.coming=null,l.current||l._afterZoomOut(t))},close:function(t){l.cancel(),!1!==l.trigger("beforeClose")&&(l.unbindEvents(),l.isActive&&(l.isOpen&&!0!==t?(l.isOpen=l.isOpened=!1,l.isClosing=!0,n(".fancybox-item, .fancybox-nav").remove(),l.wrap.stop(!0,!0).removeClass("fancybox-opened"),l.transitions[l.current.closeMethod]()):(n(".fancybox-wrap").stop(!0).trigger("onReset").remove(),l._afterZoomOut())))},play:function(t){var e=function(){clearTimeout(l.player.timer)},n=function(){e(),l.current&&l.player.isActive&&(l.player.timer=setTimeout(l.next,l.current.playSpeed))},o=function(){e(),a.unbind(".player"),l.player.isActive=!1,l.trigger("onPlayEnd")}
9;!0!==t&&(l.player.isActive||!1===t)?o():l.current&&(l.current.loop||l.current.index<l.group.length-1)&&(l.player.isActive=!0,a.bind({"onCancel.player beforeClose.player":o,"onUpdate.player":n,"beforeLoad.player":e}),n(),l.trigger("onPlayStart"))},next:function(t){var e=l.current;e&&(p(t)||(t=e.direction.next),l.jumpto(e.index+1,t,"next"))},prev:function(t){var e=l.current;e&&(p(t)||(t=e.direction.prev),l.jumpto(e.index-1,t,"prev"))},jumpto:function(t,e,n){var s=l.current;s&&(t=m(t),l.direction=e||s.direction[t>=s.index?"next":"prev"],l.router=n||"jumpto",s.loop&&(t<0&&(t=s.group.length+t%s.group.length),t%=s.group.length),o!==s.group[t]&&(l.cancel(),l._start(t)))},reposition:function(t,e){var o,s=l.current,r=s?s.wrap:null;r&&(o=l._getPosition(e),t&&"scroll"===t.type?(delete o.position,r.stop(!0,!0).animate(o,200)):(r.css(o),s.pos=n.extend({},s.dim,o)))},update:function(t){var e=t&&t.type,n=!e||"orientationchange"===e;n&&(clearTimeout(u),u=null),l.isOpen&&!u&&(u=setTimeout(function(){var o=l.current;o&&!l.isClosing&&(l.wrap.removeClass("fancybox-tmp"),(n||"load"===e||"resize"===e&&o.autoResize)&&l._setDimension(),"scroll"===e&&o.canShrink||l.reposition(t),l.trigger("onUpdate"),u=null)},n&&!h?0:300))},toggle:function(t){l.isOpen&&(l.current.fitToView="boolean"===n.type(t)?t:!l.current.fitToView,h&&(l.wrap.removeAttr("style").addClass("fancybox-tmp"),l.trigger("onUpdate")),l.update())},hideLoading:function(){a.unbind(".loading"),n("#fancybox-loading").remove()},showLoading:function(){var t,e;l.hideLoading(),t=n('<div id="fancybox-loading"><div></div></div>').click(l.cancel).appendTo("body"),a.bind("keydown.loading",function(t){27===(t.which||t.keyCode)&&(t.preventDefault(),l.cancel())}),l.defaults.fixed||(e=l.getViewport(),t.css({position:"absolute",top:.5*e.h+e.y,left:.5*e.w+e.x}))},getViewport:function(){var e=l.current&&l.current.locked||!1,n={x:r.scrollLeft(),y:r.scrollTop()};return e?(n.w=e[0].clientWidth,n.h=e[0].clientHeight):(n.w=h&&t.innerWidth?t.innerWidth:r.width(),n.h=h&&t.innerHeight?t.innerHeight:r.height()),n},unbindEvents:function(){l.wrap&&d(l.wrap)&&l.wrap.unbind(".fb"),a.unbind(".fb"),r.unbind(".fb")},bindEvents:function(){var t,e=l.current;e&&(r.bind("orientationchange.fb"+(h?"":" resize.fb")+(e.autoCenter&&!e.locked?" scroll.fb":""),l.update),(t=e.keys)&&a.bind("keydown.fb",function(s){var r=s.which||s.keyCode,a=s.target||s.srcElement;if(27===r&&l.coming)return!1;s.ctrlKey||s.altKey||s.shiftKey||s.metaKey||a&&(a.type||n(a).is("[contenteditable]"))||n.each(t,function(t,a){return e.group.length>1&&o!==a[r]?(l[t](a[r]),s.preventDefault(),!1):n.inArray(r,a)>-1?(l[t](),s.preventDefault(),!1):void 0})}),n.fn.mousewheel&&e.mouseWheel&&l.wrap.bind("mousewheel.fb",function(t,o,s,r){for(var a,c=n(t.target||null),u=!1;c.length&&!(u||c.is(".fancybox-skin")||c.is(".fancybox-wrap"));)u=(a=c[0])&&!(a.style.overflow&&"hidden"===a.style.overflow)&&(a.clientWidth&&a.scrollWidth>a.clientWidth||a.clientHeight&&a.scrollHeight>a.clientHeight),c=n(c).parent();0===o||u||!(l.group.length>1)||e.canShrink||(r>0||s>0?l.prev(r>0?"down":"left"):(r<0||s<0)&&l.next(r<0?"up":"right"),t.preventDefault())}))},trigger:function(t,e){var o,s=e||l.coming||l.current;if(s){if(n.isFunction(s[t])&&(o=s[t].apply(s,Array.prototype.slice.call(arguments,1))),!1===o)return!1;s.helpers&&n.each(s.helpers,function(e,o){o&&l.helpers[e]&&n.isFunction(l.helpers[e][t])&&l.helpers[e][t](n.extend(!0,{},l.helpers[e].defaults,o),s)}),a.trigger(t)}},isImage:function(t){return p(t)&&t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(t){return p(t)&&t.match(/\.(swf)((\?|#).*)?$/i)},_start:function(t){var e,o,s,r,a,c={};if(t=m(t),!(e=l.group[t]||null))return!1;if(r=(c=n.extend(!0,{},l.opts,e)).margin,a=c.padding,"number"===n.type(r)&&(c.margin=[r,r,r,r]),"number"===n.type(a)&&(c.padding=[a,a,a,a]),c.modal&&n.extend(!0,c,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),c.autoSize&&(c.autoWidth=c.autoHeight=!0),"auto"===c.width&&(c.autoWidth=!0),"auto"===c.height&&(c.autoHeight=!0),c.group=l.group,c.index=t,l.coming=c,!1===l.trigger("beforeLoad")){l.coming=null;return}if(s=c.type,o=c.href,!s)return l.coming=null,!!l.current&&!!l.router&&"jumpto"!==l.router&&(l.current.index=t,l[l.router](l.direction));if(l.isActive=!0,("image"===s||"swf"===s)&&(c.autoHeight=c.autoWidth=!1,c.scrolling="visible"),"image"===s&&(c.aspectRatio=!0),"iframe"===s&&h&&(c.scrolling="scroll"),c.wrap=n(c.tpl.wrap).addClass("fancybox-"+(h?"mobile":"desktop")+" fancybox-type-"+s+" fancybox-tmp "+c.wrapCSS).appendTo(c.parent||"body"),n.extend(c,{skin:n(".fancybox-skin",c.wrap),outer:n(".fancybox-outer",c.wrap),inner:n(".fancybox-inner",c.wrap)}),n.each(["Top","Right","Bottom","Left"],function(t,e){c.skin.css("padding"+e,g(c.padding[t]))}),l.trigger("onReady"),"inline"===s||"html"===s){if(!c.content||!c.content.length)return l._error("content")}else if(!o)return l._error("href");"image"===s?l._loadImage():"ajax"===s?l._loadAjax():"iframe"===s?l._loadIframe():l._afterLoad()},_error:function(t){n.extend(l.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:t,content:l.coming.tpl.error}),l._afterLoad()},_loadImage:function(){var t=l.imgPreload=new Image;t.onload=function(){this.onload=this.onerror=null,l.coming.width=this.width/l.opts.pixelRatio,l.coming.height=this.height/l.opts.pixelRatio,l._afterLoad()},t.onerror=function(){this.onload=this.onerror=null,l._error("image")},t.src=l.coming.href,!0!==t.complete&&l.showLoading()},_loadAjax:function(){var t=l.coming;l.showLoading(),l.ajaxLoad=n.ajax(n.extend({},t.ajax,{url:t.href,error:function(t,e){l.coming&&"abort"!==e?l._error("ajax",t):l.hideLoading()},success:function(e,n){"success"===n&&(t.content=e,l._afterLoad())}}))},_loadIframe:function(){var t=l.coming,e=n(t.tpl.iframe.replace(/\{rnd\}
9/g,new Date().getTime())).attr("scrolling",h?"auto":t.iframe.scrolling).attr("src",t.href);n(t.wrap).bind("onReset",function(){try{n(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(t){}}),t.iframe.preload&&(l.showLoading(),e.one("load",function(){n(this).data("ready",1),h||n(this).bind("load.fb",l.update),n(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),l._afterLoad()})),t.content=e.appendTo(t.inner),t.iframe.preload||l._afterLoad()},_preloadImages:function(){var t,e,n=l.group,o=l.current,s=n.length,r=o.preload?Math.min(o.preload,s-1):0;for(e=1;e<=r;e+=1)"image"===(t=n[(o.index+e)%s]).type&&t.href&&(new Image().src=t.href)},_afterLoad:function(){var t,e,o,s,r,a=l.coming,c=l.current,u="fancybox-placeholder";if(l.hideLoading(),a&&!1!==l.isActive){if(!1===l.trigger("afterLoad",a,c)){a.wrap.stop(!0).trigger("onReset").remove(),l.coming=null;return}switch(c&&(l.trigger("beforeChange",c),c.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),l.unbindEvents(),t=a.content,e=a.type,o=a.scrolling,n.extend(l,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:c}),s=a.href,e){case"inline":case"ajax":case"html":a.selector?t=n("<div>").html(t).find(a.selector):d(t)&&(t.data(u)||t.data(u,n('<div class="'+u+'"></div>').insertAfter(t).hide()),t=t.show().detach(),a.wrap.bind("onReset",function(){n(this).find(t).length&&t.hide().replaceAll(t.data(u)).data(u,!1)}));break;case"image":t=a.tpl.image.replace("{href}",s);break;case"swf":t='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+s+'"></param>',r="",n.each(a.swf,function(e,n){t+='<param name="'+e+'" value="'+n+'"></param>',r+=" "+e+'="'+n+'"'}),t+='<embed src="'+s+'" type="application/x-shockwave-flash" width="100%" height="100%"'+r+"></embed></object>"}d(t)&&t.parent().is(a.inner)||a.inner.append(t),l.trigger("beforeShow"),a.inner.css("overflow","yes"===o?"scroll":"no"===o?"hidden":o),l._setDimension(),l.reposition(),l.isOpen=!1,l.coming=null,l.bindEvents(),l.isOpened?c.prevMethod&&l.transitions[c.prevMethod]():n(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove(),l.transitions[l.isOpened?a.nextMethod:a.openMethod](),l._preloadImages()}},_setDimension:function(){var t,e,o,s,r,a,c,u,h,d,p,v,y,_,b,w=l.getViewport(),x=0,T=!1,k=!1,C=l.wrap,j=l.skin,S=l.inner,P=l.current,E=P.width,O=P.height,M=P.minWidth,A=P.minHeight,I=P.maxWidth,z=P.maxHeight,N=P.scrolling,D=P.scrollOutside?P.scrollbarWidth:0,B=P.margin,R=m(B[1]+B[3]),F=m(B[0]+B[2]);if(C.add(j).add(S).width("auto").height("auto").removeClass("fancybox-tmp"),t=m(j.outerWidth(!0)-j.width()),e=m(j.outerHeight(!0)-j.height()),o=R+t,s=F+e,r=f(E)?(w.w-o)*m(E)/100:E,a=f(O)?(w.h-s)*m(O)/100:O,"iframe"===P.type){if(_=P.content,P.autoHeight&&1===_.data("ready"))try{_[0].contentWindow.document.location&&(S.width(r).height(9999),b=_.contents().find("body"),D&&b.css("overflow-x","hidden"),a=b.outerHeight(!0))}catch(t){}}else(P.autoWidth||P.autoHeight)&&(S.addClass("fancybox-tmp"),P.autoWidth||S.width(r),P.autoHeight||S.height(a),P.autoWidth&&(r=S.width()),P.autoHeight&&(a=S.height()),S.removeClass("fancybox-tmp"));if(E=m(r),O=m(a),h=r/a,M=m(f(M)?m(M,"w")-o:M),I=m(f(I)?m(I,"w")-o:I),A=m(f(A)?m(A,"h")-s:A),z=m(f(z)?m(z,"h")-s:z),c=I,u=z,P.fitToView&&(I=Math.min(w.w-o,I),z=Math.min(w.h-s,z)),v=w.w-R,y=w.h-F,P.aspectRatio?(E>I&&(O=m((E=I)/h)),O>z&&(E=m((O=z)*h)),E<M&&(O=m((E=M)/h)),O<A&&(E=m((O=A)*h))):(E=Math.max(M,Math.min(E,I)),P.autoHeight&&"iframe"!==P.type&&(S.width(E),O=S.height()),O=Math.max(A,Math.min(O,z))),P.fitToView){if(S.width(E).height(O),C.width(E+t),d=C.width(),p=C.height(),P.aspectRatio)for(;(d>v||p>y)&&E>M&&O>A&&!(x++>19);)(E=m((O=Math.max(A,Math.min(z,O-10)))*h))<M&&(O=m((E=M)/h)),E>I&&(O=m((E=I)/h)),S.width(E).height(O),C.width(E+t),d=C.width(),p=C.height();else E=Math.max(M,Math.min(E,E-(d-v))),O=Math.max(A,Math.min(O,O-(p-y)))}D&&"auto"===N&&O<a&&E+t+D<v&&(E+=D),S.width(E).height(O),C.width(E+t),d=C.width(),p=C.height(),T=(d>v||p>
vendor: 4,970 bytes, line 9
9y)&&E>M&&O>A,k=P.aspectRatio?E<c&&O<u&&E<r&&O<a:(E<c||O<u)&&(E<r||O<a),n.extend(P,{dim:{width:g(d),height:g(p)},origWidth:r,origHeight:a,canShrink:T,canExpand:k,wPadding:t,hPadding:e,wrapSpace:p-j.outerHeight(!0),skinSpace:j.height()-O}),!_&&P.autoHeight&&O>A&&O<z&&!k&&S.height("auto")},_getPosition:function(t){var e=l.current,n=l.getViewport(),o=e.margin,s=l.wrap.width()+o[1]+o[3],r=l.wrap.height()+o[0]+o[2],a={position:"absolute",top:o[0],left:o[3]};return e.autoCenter&&e.fixed&&!t&&r<=n.h&&s<=n.w?a.position="fixed":e.locked||(a.top+=n.y,a.left+=n.x),a.top=g(Math.max(a.top,a.top+(n.h-r)*e.topRatio)),a.left=g(Math.max(a.left,a.left+(n.w-s)*e.leftRatio)),a},_afterZoomIn:function(){var t=l.current;t&&(l.isOpen=l.isOpened=!0,l.wrap.css("overflow","visible").addClass("fancybox-opened"),l.update(),(t.closeClick||t.nextClick&&l.group.length>1)&&l.inner.css("cursor","pointer").bind("click.fb",function(e){n(e.target).is("a")||n(e.target).parent().is("a")||(e.preventDefault(),l[t.closeClick?"close":"next"]())}),t.closeBtn&&n(t.tpl.closeBtn).appendTo(l.skin).bind("click.fb",function(t){t.preventDefault(),l.close()}),t.arrows&&l.group.length>1&&((t.loop||t.index>0)&&n(t.tpl.prev).appendTo(l.outer).bind("click.fb",l.prev),(t.loop||t.index<l.group.length-1)&&n(t.tpl.next).appendTo(l.outer).bind("click.fb",l.next)),l.trigger("afterShow"),t.loop||t.index!==t.group.length-1?l.opts.autoPlay&&!l.player.isActive&&(l.opts.autoPlay=!1,l.play()):l.play(!1))},_afterZoomOut:function(t){t=t||l.current,n(".fancybox-wrap").trigger("onReset").remove(),n.extend(l,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),l.trigger("afterClose",t)}}),l.transitions={getOrigPosition:function(){var t=l.current,e=t.element,n=t.orig,o={},s=50,r=50,a=t.hPadding,c=t.wPadding,u=l.getViewport();return!n&&t.isDom&&e.is(":visible")&&!(n=e.find("img:first")).length&&(n=e),d(n)?(o=n.offset(),n.is("img")&&(s=n.outerWidth(),r=n.outerHeight())):(o.top=u.y+(u.h-r)*t.topRatio,o.left=u.x+(u.w-s)*t.leftRatio),("fixed"===l.wrap.css("position")||t.locked)&&(o.top-=u.y,o.left-=u.x),o={top:g(o.top-a*t.topRatio),left:g(o.left-c*t.leftRatio),width:g(s+c),height:g(r+a)}},step:function(t,e){var n,o,s=e.prop,r=l.current,a=r.wrapSpace,c=r.skinSpace;("width"===s||"height"===s)&&(n=e.end===e.start?1:(t-e.start)/(e.end-e.start),l.isClosing&&(n=1-n),o=t-("width"===s?r.wPadding:r.hPadding),l.skin[s](m("width"===s?o:o-a*n)),l.inner[s](m("width"===s?o:o-a*n-c*n)))},zoomIn:function(){var t=l.current,e=t.pos,o=t.openEffect,s="elastic"===o,r=n.extend({opacity:1},e);delete r.position,s?(e=this.getOrigPosition(),t.openOpacity&&(e.opacity=.1)):"fade"===o&&(e.opacity=.1),l.wrap.css(e).animate(r,{duration:"none"===o?0:t.openSpeed,easing:t.openEasing,step:s?this.step:null,complete:l._afterZoomIn})},zoomOut:function(){var t=l.current,e=t.closeEffect,n="elastic"===e,o={opacity:.1};n&&(o=this.getOrigPosition(),t.closeOpacity&&(o.opacity=.1)),l.wrap.animate(o,{duration:"none"===e?0:t.closeSpeed,easing:t.closeEasing,step:n?this.step:null,complete:l._afterZoomOut})},changeIn:function(){var t,e=l.current,n=e.nextEffect,o=e.pos,s={opacity:1},r=l.direction;o.opacity=.1,"elastic"===n&&(t="down"===r||"up"===r?"top":"left","down"===r||"right"===r?(o[t]=g(m(o[t])-200),s[t]="+=200px"):(o[t]=g(m(o[t])+200),s[t]="-=200px")),"none"===n?l._afterZoomIn():l.wrap.css(o).animate(s,{duration:e.nextSpeed,easing:e.nextEasing,complete:l._afterZoomIn})},changeOut:function(){var t=l.previous,e=t.prevEffect,o={opacity:.1},s=l.direction;"elastic"===e&&(o["down"===s||"up"===s?"top":"left"]=("up"===s||"left"===s?"-":"+")+"=200px"),t.wrap.animate(o,{duration:"none"===e?0:t.prevSpeed,easing:t.prevEasing,complete:function(){n(this).trigger("onReset").remove()}})}},l.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!h,fixed:!0},overlay:null,fixed:!1,el:n("html"),create:function(t){t=n.extend({},this.defaults,t),this.overlay&&this.close(),this.overlay=n('<div class="fancybox-overlay"></div>').appendTo(l.coming?l.coming.parent:t.parent),this.fixed=!1,t.fixed&&l.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(t){var e=this;t=n.extend({},this.defaults,t),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(t),this.fixed||(r.bind("resize.overlay",n.proxy(this.update,this)),this.update()),t.closeClick&&this.overlay.bind("click.overlay",function(t){if(n(t.target).hasClass("fancybox-overlay"))return l.isActive?l.close():e.close(),!1}),this.overlay.css(t.css).show()},close:function(){var t,e;r.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(n(".fancybox-margin").removeClass("fancybox-margin"),t=r.scrollTop(),e=r.scrollLeft(),this.el.removeClass("fancybox-lock"),r.scrollTop(t).scrollLeft(e)),n(".fancybox-overlay").remove().hide(),n.extend(this,{overlay:null,fixed:!1})},update:function(){var t,n="100%";
9this.overlay.width(n).height("100%"),c?(t=Math.max(e.documentElement.offsetWidth,e.body.offsetWidth),a.width()>t&&(n=a.width())):a.width()>r.width()&&(n=a.width()),this.overlay.width(n).height(a.height())},onReady:function(t,e){var o=this.overlay;n(".fancybox-overlay").stop(!0,!0),o||this.create(t),t.locked&&this.fixed&&e.fixed&&(o||(this.margin=a.height()>r.height()&&n("html").css("margin-right").replace("px","")),e.locked=this.overlay.append(e.wrap),e.fixed=!1),!0===t.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(t,e){var o,s;e.locked&&(!1!==this.margin&&(n("*").filter(function(){return"fixed"===n(this).css("position")&&!n(this).hasClass("fancybox-overlay")&&!n(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),o=r.scrollTop(),s=r.scrollLeft(),this.el.addClass("fancybox-lock"),r.scrollTop(o).scrollLeft(s)),this.open(t)},onUpdate:function(){this.fixed||this.update()},afterClose:function(t){this.overlay&&!l.coming&&this.overlay.fadeOut(t.speedOut,n.proxy(this.close,this))}},l.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(t){var e,o,s=l.current,r=s.title,a=t.type;if(n.isFunction(r)&&(r=r.call(s.element,s)),p(r)&&""!==n.trim(r)){switch(e=n('<div class="fancybox-title fancybox-title-'+a+'-wrap">'+r+"</div>"),a){case"inside":o=l.skin;break;case"outside":o=l.wrap;break;case"over":o=l.inner;break;default:o=l.skin,e.appendTo("body"),c&&e.width(e.width()),e.wrapInner('<span class="child"></span>'),l.current.margin[2]+=Math.abs(m(e.css("margin-bottom")))}e["top"===t.position?"prependTo":"appendTo"](o)}}},n.fn.fancybox=function(t){var e,o=n(this),s=this.selector||"",r=function(r){var a,c,u=n(this).blur(),h=e;r.ctrlKey||r.altKey||r.shiftKey||r.metaKey||u.is(".fancybox-wrap")||(a=t.groupAttr||"data-fancybox-group",(c=u.attr(a))||(a="rel",c=u.get(0)[a]),c&&""!==c&&"nofollow"!==c&&(h=(u=(u=s.length?n(s):o).filter("["+a+'="'+c+'"]')).index(this)),t.index=h,!1!==l.open(u,t)&&r.preventDefault())};return e=(t=t||{}).index||0,s&&!1!==t.live?a.undelegate(s,"click.fb-start").delegate(s+":not('.fancybox-item, .fancybox-nav')","click.fb-start",r):o.unbind("click.fb-start").bind("click.fb-start",r),this.filter("[data-fancybox-start=1]").trigger("click"),this},a.ready(function(){var e,r,a,c;o===n.scrollbarWidth&&(n.scrollbarWidth=function(){var t=n('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),e=t.children(),o=e.innerWidth()-e.height(99).innerWidth();return t.remove(),o}),o===n.support.fixedPosition&&(n.support.fixedPosition=(c=20===(a=n('<div style="position:fixed;top:20px;"></div>').appendTo("body"))[0].offsetTop||15===a[0].offsetTop,a.remove(),c)),n.extend(l.defaults,{scrollbarWidth:n.scrollbarWidth(),fixed:n.support.fixedPosition,parent:n("body")}),e=n(t).width(),s.addClass("fancybox-lock-test"),r=n(t).width(),s.removeClass("fancybox-lock-test"),n("<style type='text/css'>.fancybox-margin{margin-right:"+(r-e)+"px;}</style>").appendTo("head")})}(window,document,jQuery),function(t){t.fn.desktopDropNav=function(e){var n=t.extend({openCloseClass:"open-close",openerClass:"opener",slideClass:"slide"},e);return this.each(function(){t(this).find("ul").length&&t(this).find("ul").each(function(){var e=t(this).closest("li");e.addClass(n.openCloseClass).children("div").addClass(n.slideClass),function(e,n,o){t(e).addClass(n).appendTo(o)}("<span>",n.openerClass,e.children("a"))})})}}(jQuery),function(t){function e(e){this.options=t.extend({commentClass:".form-input-comments",commonLayoutWrapper:'<div class="contact-form-columns">',inputHolder:".form__group"},e),this.init()}e.prototype={init:function(){this.findElements(),this.wrapElements()},findElements:function(){this.holder=t(this.options.holder),this.comments=this.holder.find(this.options.commentClass),this.inputHolder=this.holder.find(this.options.inputHolder)},wrapElements:function(){this.comments.length&&(this.inputHolder.wrapAll(this.options.commonLayoutWrapper),this.comments.find("textarea").css({width:"",height:""}))},destroy:function(){this.comments.length&&this.inputHolder.unwrap(this.options.commonLayoutWrapper),this.holder.removeData("layoutContactForm")}},t.fn.layoutContactForm=function(n){return this.each(function(){void 0===t(this).data("layoutContactForm")&&t(this).data("layoutContactForm",new e(t.extend(n,{holder:this})))})}}(jQuery);var mql=window.matchMedia("(orientation: portrait)");function moreNav(){var t=$(".navigation").find("ul"),e="sublevel-";if(t.length&&t.children(".more").find("ul").parent().is("div")){var n=t.children(".more").find("ul");n.parent("div").children().unwrap(),n.each(function(){var t=$(this),n=t.parents("ul").length;n>0&&t.wrap(function(){return'<div class="'+e+n+'"></div>'})})}else t.length&&!t.children(".more").find("ul").parent().is("div")&&t.children(".more").find("ul").each(function(){var t=$(this),n=t.parents("ul").length;n>0&&t.wrap(function(){return'<div class="'+e+n+'"></div>'})});t.children(".more").on("click","> a",function(t){t.preventDefault()})}function navigationSublevelWrap(t,e){t.each(function(){var t=$(this),n=t.parents("ul").length;n>0&&t.wrap(function(){return'<div class="'+e+n+'"></div>'})})}function menuPrepare(){origMenuContent.length||(origMenuContent=menu.html()),menuHolder.css("width",menuHolderMaxWidth),allMenus.push([currentMenu.html(),Math.round(calcTotalMenuItemsWidth())]);for(var t=0;t<=menuChildrenCount;t++){moreButton.length&&moreButton.remove();var e=currentMenu.children("li:last").remove();currentMenu.append(moreButton);var n=calcTotalMenuItemsWidth();moreButton.children("ul").prepend($(e)),allMenus.push([currentMenu.html(),Math.round(n)])}menuHolder.css("width","")}function calcTotalMenuItemsWidth(){var t=0;return currentMenu.children().each(function(){t+=$(this)[0].getBoundingClientRect().width}),t}function addMoreButton(){for(var t=0;t<=menuChildrenCount;t++){if(currentMenuWidth<=allMenus[0][1]&¤tMenuWidth>=allMenus[t][1]){currentMenu.empty(),currentMenu.append(allMenus[t][0]);return}if(currentMenuWidth>allMenus[0][1]){currentMenu.empty(),currentMenu.append(origMenuContent);return}}}mql&&mql.addListener(function(t){$(window).trigger("resize")}),function(t){function e(e){this.options=t.extend({place:"",move:"inside",setClass:!1}
9,e),this.init()}e.prototype={init:function(){this.options.holder&&(this.findElements(),this.setAnchor(),this.move(),this.setClass())},findElements:function(){this.elements={holder:t(this.options.holder),place:t(this.options.place)}},setAnchor:function(){this.anchorElem=t("<span>"),this.anchorElem.attr("data-anchor-id",this.elements.holder.data("moved-id")).insertBefore(this.elements.holder).css("display","none")},move:function(){var t=this,e={after:function(){t.elements.holder.insertAfter(t.elements.place)},before:function(){t.elements.holder.insertBefore(t.elements.place)},inside:function(){t.elements.place.prepend(t.elements.holder)}};void 0!==e[this.options.move]?e[this.options.move]():e.inside()},setClass:function(){this.options.setClass&&this.elements.holder.addClass(this.options.setClass)},destroy:function(){this.elements.holder.insertAfter(this.anchorElem).removeClass(this.options.setClass).removeData("moveElement"),this.anchorElem.remove(),n=[]}},t.fn.moveElement=function(o){return this.each(function(){n.push(this),t.each(n,function(e,o){e===n.length-1&&t(o).attr("data-moved-id",e+1)}),t(this).data("moveElement",new e(t.extend(o,{holder:this})))})};var n=[]}(jQuery),function(t){t.fn.sameHeight=function(s){var r=t.extend({skipClass:"same-height-ignore",leftEdgeClass:"same-height-left",rightEdgeClass:"same-height-right",elements:">*",flexible:!1,multiLine:!1,useMinHeight:!1,biggestHeight:!1},s);return this.each(function(){var s,a,l=t(this),c=l.find(r.elements).not("."+r.skipClass);if(c.length){h();var u=function(){a||(a=!0,h(),clearTimeout(s),s=setTimeout(function(){h(),setTimeout(function(){a=!1},10)},100))};r.flexible&&t(window).bind("resize orientationchange fontresize",u),t(window).bind("load",u)}function h(){var s,a,u,h;c.css(r.useMinHeight&&e?"minHeight":"height",""),r.multiLine?(a=t(),u=0,h=c.eq(0).offset().top,c.each(function(e){var l=t(this);l.offset().top===h?a=a.add(this):(s=n(a),u=Math.max(u,o(a,s,r)),a=l,h=l.offset().top)}),a.length&&(s=n(a),u=Math.max(u,o(a,s,r))),r.biggestHeight&&c.css(r.useMinHeight&&e?"minHeight":"height",u)):o(c,l,r)}})};var e=void 0!==document.documentElement.style.maxHeight;function n(e){var n=0;return e.each(function(){n=Math.max(n,t(this).outerHeight())}),n}function o(n,o,s){var r,a="number"==typeof o?o:o.height();return n.removeClass(s.leftEdgeClass).removeClass(s.rightEdgeClass).each(function(n){var l=t(this),c=0,u="border-box"===l.css("boxSizing")||"border-box"===l.css("-moz-box-sizing")||"border-box"===l.css("-webkit-box-sizing");"number"!=typeof o&&l.parents().each(function(){var e=t(this);if(o.is(this))return!1;c+=e.outerHeight()-e.height()}
9),(r=a-c-(u?0:l.outerHeight()-l.height()))>0&&l.css(s.useMinHeight&&e?"minHeight":"height",r)}),n.filter(":first").addClass(s.leftEdgeClass),n.filter(":last").addClass(s.rightEdgeClass),r}}(jQuery),jQuery.onFontResize=function(t){var e={trigger:function(e){t(window).trigger("fontresize",[e])}};return t(function(){var n="font-resize-frame-"+Math.floor(1e3*Math.random()),o=t("<iframe>").attr("id",n).addClass("font-resize-helper");if(o.css({width:"100em",height:"10px",position:"absolute",borderWidth:0,top:"-9999px",left:"-9999px"}).appendTo("body"),window.attachEvent&&!window.addEventListener)o.bind("resize",function(){t.onFontResize.trigger(o[0].offsetWidth/100)});else{var s=o[0].contentWindow.document;s.open(),s.write('<script>window.onload = function(){var em = parent.jQuery("#'+n+'")[0];window.onresize = function(){if(parent.jQuery.onFontResize){parent.jQuery.onFontResize.trigger(em.offsetWidth / 100);}}};</script>'),s.close()}e.initialSize=o[0].offsetWidth/100}),e}(jQuery),function(t){var e=/Windows Phone/.test(navigator.userAgent)||"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch;function n(e){this.options=t.extend({heightProp:"height",recalcOnPageScroll:!1,setScrollTo:"",extraSpacing:0},e),this.init()}n.prototype={init:function(){for(var t,e=["height","max-height","maxHeight"],n=0;n<e.length;n++)e[n]===this.options.heightProp&&(t=!0);this.options.holder&&void 0!==t&&(this.findElements(),this.attachEvents(),this.setHeight())},findElements:function(){this.scrollAreaWrapper=t(this.options.holder),this.scrollArea=this.options.setScrollTo?this.scrollAreaWrapper.find(this.options.setScrollTo):this.scrollAreaWrapper},attachEvents:function(){if(!this.destroyed){var n=this,o=null;this.onResize=function(){n.setHeight()},this.onScroll=function(){clearTimeout(o),o=setTimeout(function(){n.setHeight()},2e3)},e?(t(window).on("orientationchange",this.onResize),t(window).on("touchend",this.onScroll)):(t(window).on("resize",this.onResize),this.options.recalcOnPageScroll&&t(window).on("scroll",this.onScroll))}},calcHeight:function(){var e=t(window),n=Math.round(this.scrollAreaWrapper.offset().top),o=(window.innerHeight,window.innerHeight),s=e.scrollTop();this.scrollAreaWrapperHeight=0,n>=s?this.scrollAreaWrapperHeight=o-(n-s)-this.options.extraSpacing:this.scrollAreaWrapperHeight=o-(n-this.options.extraSpacing)},setHeight:function(){this.destroyed||(this.calcHeight(),this.scrollArea.css(this.options.heightProp,this.scrollAreaWrapperHeight),this.scrollArea.css("overflow","auto"))},destroy:function(){var n=this;n.destroyed=!0,e?(t(window).off("orientationchange",this.onResize),t(window).off("touchend",this.onScroll)):(t(window).off("resize",this.onResize),this.options.recalcOnPageScroll&&t(window).off("scroll",this.onScroll)),this.scrollArea.css(this.options.heightProp,""),this.scrollArea.css("overflow",""),this.scrollAreaWrapper.removeData("scrollArea")}},t.fn.scrollArea=function(e){return this.each(function(){t(this).data("scrollArea",new n(t.extend(e,{holder:this})))})}}(jQuery),function(t){function e(e){this.options=t.extend({takeSizeFrom:".element",takeSize:"height",spacingProp:"padding-top",flexible:!0},e),this.init()}e.prototype={init:function(){for(var t,e=["left","right","top","bottom","margin","margin-top","margin-bottom","margin-left","margin-right","padding","padding-top","padding-bottom","padding-left","padding-right"],n=0;n<e.length;n++)e[n]===this.options.spacingProp&&(t=!0);if(this.options.holder&&void 0!==t&&(this.findElements(),this.setElemSpacing(),this.options.flexible))return this.attachEvents()},findElements:function(){this.elements={holder:t(this.options.holder),takeSizeFrom:t(this.options.takeSizeFrom)}},attachEvents:function(){this.bindHandlers(["onWindowResize"]),t(window).bind("resize orientationchange",this.onWindowResize)},onWindowResize:function(){this.destroyed||this.setElemSpacing()},bindHandlers:function(e){var n=this;t.each(e,function(t,e){var o=n[e];n[e]=function(){return o.apply(n,arguments)}})},setElemSpacing:function(){"width"===this.options.takeSize?this.elements.holder.css(this.options.spacingProp,this.elements.takeSizeFrom.outerWidth()):"height"===this.options.takeSize&&this.elements.holder.css(this.options.spacingProp,this.elements.takeSizeFrom.outerHeight())},destroy:function(){var e=this;e.options.flexible&&(e.destroyed=!0,t(window).unbind("resize orientationchange",e.onWindowResize)),e.elements.holder.css(this.options.spacingProp,""),e.elements.holder.removeData("setSpacing")}},t.fn.setSpacing=function(n){return this.each(function(){t(this).data("setSpacing",new e(t.extend(n,{holder:this})))})}}(jQuery),function(t){t.fn.slideAccordion=function(o){var s=t.extend({addClassBeforeAnimation:!1,allowClickWhenExpanded:!1,activeClass:"active",opener:".opener",slider:".slide",animSpeed:300,collapsible:!0,closeInactive:!1,event:"click"},o);return this.each(function(){t(this).find(":has("+s.slider+")").each(function(){var o=t(this),r=o.find(s.opener),a=o.find(s.slider);r.bind(s.event,function(t){if(!a.is(":animated")){if(o.hasClass(s.activeClass)){if(s.allowClickWhenExpanded)return;
9s.collapsible&&a.slideUp(s.animSpeed,function(){n(a),o.removeClass(s.activeClass)})}else{var r=o.siblings("."+s.activeClass),l=r.find(s.slider);o.addClass(s.activeClass),e(a).hide().slideDown(s.animSpeed),s.closeInactive&&l.slideUp(s.animSpeed,function(){r.removeClass(s.activeClass),n(l)})}}t.preventDefault()}),o.hasClass(s.activeClass)?e(a):n(a)})})};var e=function(t){return t.css({position:"",top:"",left:"",width:""})},n=function(t){return t.show().css({position:"absolute",top:-9999,left:-9999,width:t.width()})}}(jQuery),ResponsiveHelper=function(t){var e,n=[],o=t(window),s=!1;function r(){var s=o.width();s!==e&&(e=s,t.each(n,function(e,n){t.each(n.data,function(t,e){e.currentActive&&!a(e.range[0],e.range[1])&&(e.currentActive=!1,"function"==typeof e.disableCallback&&e.disableCallback())}),t.each(n.data,function(t,e){!e.currentActive&&a(e.range[0],e.range[1])&&(e.currentActive=!0,"function"==typeof e.enableCallback&&e.enableCallback())})}))}function a(t,n){var o,r="";return t>0&&(r+="(min-width: "+t+"px)"),n<1/0&&(r+=(r?" and ":"")+"(max-width: "+n+"px)"),o=r,window.matchMedia&&s?matchMedia(o).matches:window.styleMedia?styleMedia.matchMedium(o):window.media?media.matchMedium(o):e>=t&&e<=n}return window.matchMedia&&(window.Window&&window.matchMedia===Window.prototype.matchMedia?s=!0:window.matchMedia.toString().indexOf("native")>-1&&(s=!0)),o.bind("load resize orientationchange",r),{addRange:function(o){var s={data:{}};t.each(o,function(t,e){var n;s.data[t]={range:[parseInt((n=t.split(".."))[0],10)||-1/0,parseInt(n[1],10)||1/0].sort(function(t,e){return t-e}),enableCallback:e.on,disableCallback:e.off}}),n.push(s),e=null,r()}}}(jQuery),function(t,e,n,o){"use strict";var s=n("html"),r=n(t),a=n(e),l=n.fancybox=function(){l.open.apply(this,arguments)},c=navigator.userAgent.match(/msie/i),u=null,h=o!==e.createTouch,d=function(t){return t&&t.hasOwnProperty&&t instanceof n},p=function(t){return t&&"string"===n.type(t)},f=function(t){return p(t)&&t.indexOf("%")>0},m=function(t,e){var n=parseInt(t,10)||0;return e&&f(t)&&(n=l.getViewport()[e]/100*n),Math.ceil(n)},g=function(t,e){return m(t,e)+"px"};n.extend(l,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!h,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(c?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeChange:n.noop,beforeClose:n.noop,afterClose:n.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,
9skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(t,e){if(t&&(n.isPlainObject(e)||(e={}),!1!==l.close(!0)))return n.isArray(t)||(t=d(t)?n(t).get():[t]),n.each(t,function(s,r){var a,c,u,h,f,m,g,v={};"object"===n.type(r)&&(r.nodeType&&(r=n(r)),d(r)?(v={href:r.data("fancybox-href")||r.attr("href"),title:r.data("fancybox-title")||r.attr("title"),isDom:!0,element:r},n.metadata&&n.extend(!0,v,r.metadata())):v=r),a=e.href||v.href||(p(r)?r:null),c=o!==e.title?e.title:v.title||"",(h=(u=e.content||v.content)?"html":e.type||v.type)||!v.isDom||(h=r.data("fancybox-type"))||(h=(f=r.prop("class").match(/fancybox\.(\w+)/))?f[1]:null),p(a)&&(!h&&(l.isImage(a)?h="image":l.isSWF(a)?h="swf":"#"===a.charAt(0)?h="inline":p(r)&&(h="html",u=r)),"ajax"===h&&(a=(m=a.split(/\s+/,2)).shift(),g=m.shift())),u||("inline"===h?a?u=n(p(a)?a.replace(/.*(?=#[^\s]+$)/,""):a):v.isDom&&(u=r):"html"===h?u=a:h||a||!v.isDom||(h="inline",u=r)),n.extend(v,{href:a,type:h,content:u,title:c,selector:g}),t[s]=v}),l.opts=n.extend(!0,{},l.defaults,e),o!==e.keys&&(l.opts.keys=!!e.keys&&n.extend({},l.defaults.keys,e.keys)),l.group=t,l._start(l.opts.index)},cancel:function(){var t=l.coming;t&&!1!==l.trigger("onCancel")&&(l.hideLoading(),l.ajaxLoad&&l.ajaxLoad.abort(),l.ajaxLoad=null,l.imgPreload&&(l.imgPreload.onload=l.imgPreload.onerror=null),t.wrap&&t.wrap.stop(!0,!0).trigger("onReset").remove(),l.coming=null,l.current||l._afterZoomOut(t))},close:function(t){l.cancel(),!1!==l.trigger("beforeClose")&&(l.unbindEvents(),l.isActive&&(l.isOpen&&!0!==t?(l.isOpen=l.isOpened=!1,l.isClosing=!0,n(".fancybox-item, .fancybox-nav").remove(),l.wrap.stop(!0,!0).removeClass("fancybox-opened"),l.transitions[l.current.closeMethod]()):(n(".fancybox-wrap").stop(!0).trigger("onReset").remove(),l._afterZoomOut())))},play:function(t){var e=function(){clearTimeout(l.player.timer)},n=function(){e(),l.current&&l.player.isActive&&(l.player.timer=setTimeout(l.next,l.current.playSpeed))},o=function(){e(),a.unbind(".player"),l.player.isActive=!1,l.trigger("onPlayEnd")};!0!==t&&(l.player.isActive||!1===t)?o():l.current&&(l.current.loop||l.current.index<l.group.length-1)&&(l.player.isActive=!0,a.bind({"onCancel.player beforeClose.player":o,"onUpdate.player":n,"beforeLoad.player":e}),n(),l.trigger("onPlayStart"))},next:function(t){var e=l.current;e&&(p(t)||(t=e.direction.next),l.jumpto(e.index+1,t,"next"))},prev:function(t){var e=l.current;e&&(p(t)||(t=e.direction.prev),l.jumpto(e.index-1,t,"prev"))},jumpto:function(t,e,n){var s=l.current;s&&(t=m(t),l.direction=e||s.direction[t>=s.index?"next":"prev"],l.router=n||"jumpto",s.loop&&(t<0&&(t=s.group.length+t%s.group.length),t%=s.group.length),o!==s.group[t]&&(l.cancel(),l._start(t)))},reposition:function(t,e){var o,s=l.current,r=s?s.wrap:null;r&&(o=l._getPosition(e),t&&"scroll"===t.type?(delete o.position,r.stop(!0,!0).animate(o,200)):(r.css(o),s.pos=n.extend({},s.dim,o)))},update:function(t){var e=t&&t.type,n=!e||"orientationchange"===e;n&&(clearTimeout(u),u=null),l.isOpen&&!u&&(u=setTimeout(function(){var o=l.current;o&&!l.isClosing&&(l.wrap.removeClass("fancybox-tmp"),(n||"load"===e||"resize"===e&&o.autoResize)&&l._setDimension(),"scroll"===e&&o.canShrink||l.reposition(t),l.trigger("onUpdate"),u=null)},n&&!h?0:300))},toggle:function(t){l.isOpen&&(l.current.fitToView="boolean"===n.type(t)?t:!l.current.fitToView,h&&(l.wrap.removeAttr("style").addClass("fancybox-tmp"),l.trigger("onUpdate")),l.update())},hideLoading:function(){a.unbind(".loading"),n("#fancybox-loading").remove()},showLoading:function(){var t,e;l.hideLoading(),t=n('<div id="fancybox-loading"><div></div></div>').click(l.cancel).appendTo("body"),a.bind("keydown.loading",function(t){27===(t.which||t.keyCode)&&(t.preventDefault(),l.cancel())}),l.defaults.fixed||(e=l.getViewport(),t.css({position:"absolute",top:.5*e.h+e.y,left:.5*e.w+e.x}))},getViewport:function(){var e=l.current&&l.current.locked||!1,n={x:r.scrollLeft(),y:r.scrollTop()};return e?(n.w=e[0].clientWidth,n.h=e[0].clientHeight):(n.w=h&&t.innerWidth?t.innerWidth:r.width(),n.h=h&&t.innerHe
9ight?t.innerHeight:r.height()),n},unbindEvents:function(){l.wrap&&d(l.wrap)&&l.wrap.unbind(".fb"),a.unbind(".fb"),r.unbind(".fb")},bindEvents:function(){var t,e=l.current;e&&(r.bind("orientationchange.fb"+(h?"":" resize.fb")+(e.autoCenter&&!e.locked?" scroll.fb":""),l.update),(t=e.keys)&&a.bind("keydown.fb",function(s){var r=s.which||s.keyCode,a=s.target||s.srcElement;if(27===r&&l.coming)return!1;s.ctrlKey||s.altKey||s.shiftKey||s.metaKey||a&&(a.type||n(a).is("[contenteditable]"))||n.each(t,function(t,a){return e.group.length>1&&o!==a[r]?(l[t](a[r]),s.preventDefault(),!1):n.inArray(r,a)>-1?(l[t](),s.preventDefault(),!1):void 0})}),n.fn.mousewheel&&e.mouseWheel&&l.wrap.bind("mousewheel.fb",function(t,o,s,r){for(var a,c=n(t.target||null),u=!1;c.length&&!(u||c.is(".fancybox-skin")||c.is(".fancybox-wrap"));)u=(a=c[0])&&!(a.style.overflow&&"hidden"===a.style.overflow)&&(a.clientWidth&&a.scrollWidth>a.clientWidth||a.clientHeight&&a.scrollHeight>a.clientHeight),c=n(c).parent();0===o||u||!(l.group.length>1)||e.canShrink||(r>0||s>0?l.prev(r>0?"down":"left"):(r<0||s<0)&&l.next(r<0?"up":"right"),t.preventDefault())}))},trigger:function(t,e){var o,s=e||l.coming||l.current;if(s){if(n.isFunction(s[t])&&(o=s[t].apply(s,Array.prototype.slice.call(arguments,1))),!1===o)return!1;s.helpers&&n.each(s.helpers,function(e,o){o&&l.helpers[e]&&n.isFunction(l.helpers[e][t])&&l.helpers[e][t](n.extend(!0,{},l.helpers[e].defaults,o),s)}),a.trigger(t)}},isImage:function(t){return p(t)&&t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(t){return p(t)&&t.match(/\.(swf)((\?|#).*)?$/i)},_start:function(t){var e,o,s,r,a,c={};if(t=m(t),!(e=l.group[t]||null))return!1;if(r=(c=n.extend(!0,{},l.opts,e)).margin,a=c.padding,"number"===n.type(r)&&(c.margin=[r,r,r,r]),"number"===n.type(a)&&(c.padding=[a,a,a,a]),c.modal&&n.extend(!0,c,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),c.autoSize&&(c.autoWidth=c.autoHeight=!0),"auto"===c.width&&(c.autoWidth=!0),"auto"===c.height&&(c.autoHeight=!0),c.group=l.group,c.index=t,l.coming=c,!1===l.trigger("beforeLoad")){l.coming=null;return}if(s=c.type,o=c.href,!s)return l.coming=null,!!l.current&&!!l.router&&"jumpto"!==l.router&&(l.current.index=t,l[l.router](l.direction));if(l.isActive=!0,("image"===s||"swf"===s)&&(c.autoHeight=c.autoWidth=!1,c.scrolling="visible"),"image"===s&&(c.aspectRatio=!0),"iframe"===s&&h&&(c.scrolling="scroll"),c.wrap=n(c.tpl.wrap).addClass("fancybox-"+(h?"mobile":"desktop")+" fancybox-type-"+s+" fancybox-tmp "+c.wrapCSS).appendTo(c.parent||"body"),n.extend(c,{skin:n(".fancybox-skin",c.wrap),outer:n(".fancybox-outer",c.wrap),inner:n(".fancybox-inner",c.wrap)}),n.each(["Top","Right","Bottom","Left"],function(t,e){c.skin.css("padding"+e,g(c.padding[t]))}),l.trigger("onReady"),"inline"===s||"html"===s){if(!c.content||!c.content.length)return l._error("content")}else if(!o)return l._error("href");"image"===s?l._loadImage():"ajax"===s?l._loadAjax():"iframe"===s?l._loadIframe():l._afterLoad()},_error:function(t){n.extend(l.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:t,content:l.coming.tpl.error}),l._afterLoad()},_loadImage:function(){var t=l.imgPreload=new Image;t.onload=function(){this.onload=this.onerror=null,l.coming.width=this.width/l.opts.pixelRatio,l.coming.height=this.height/l.opts.pixelRatio,l._afterLoad()},t.onerror=function(){this.onload=this.onerror=null,l._error("image")},t.src=l.coming.href,!0!==t.complete&&l.showLoading()},_loadAjax:function(){var t=l.coming;l.showLoading(),l.ajaxLoad=n.ajax(n.extend({},t.ajax,{url:t.href,error:function(t,e){l.coming&&"abort"!==e?l._error("ajax",t):l.hideLoading()},success:function(e,n){"success"===n&&(t.content=e,l._afterLoad())}}))},_loadIframe:function(){var t=l.coming,e=n(t.tpl.iframe.replace(/\{rnd\}/g,new Date().getTime())).attr("scrolling",h?"auto":t.iframe.scrolling).attr("src",t.href);n(t.wrap).bind("onReset",function(){try{n(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(t){}}),t.iframe.preload&&(l.showLoading(),e.one("load",function(){n(this).data("ready",1),h||n(this).bind("load.fb",l.update),n(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),l._afterLoad()})),t.content=e.appendTo(t.inner),t.iframe.preload||l._afterLoad()},_preloadImages:function(){var t,e,n=l.group,o=l.current,s=n.length,r=o.preload?Math.min(o.preload,s-1):0;for(e=1;e<=r;e+=1)"image"===(t=n[(o.index+e)%s]).type&&t.href&&(new Image().src=t.href)},_afterLoad:function(){var t,e,o,s,r,a=l.coming,c=l.current,u="fancybox-placeholder";if(l.hideLoading(),a&&!1!==l.isActive){if(!1===l.trigger("afterLoad",a,c)){a.wrap.stop(!0).trigger("onReset").remove(),l.coming=null;return}switch(c&&(l.trigger("beforeChange",c),c.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),l.unbindEvents(),t=a.content,e=a.type,o=a.scrolling,n.extend(l,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:
vendor: 4,612 bytes, line 9
9a.inner,current:a,previous:c}),s=a.href,e){case"inline":case"ajax":case"html":a.selector?t=n("<div>").html(t).find(a.selector):d(t)&&(t.data(u)||t.data(u,n('<div class="'+u+'"></div>').insertAfter(t).hide()),t=t.show().detach(),a.wrap.bind("onReset",function(){n(this).find(t).length&&t.hide().replaceAll(t.data(u)).data(u,!1)}));break;case"image":t=a.tpl.image.replace("{href}",s);break;case"swf":t='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+s+'"></param>',r="",n.each(a.swf,function(e,n){t+='<param name="'+e+'" value="'+n+'"></param>',r+=" "+e+'="'+n+'"'}),t+='<embed src="'+s+'" type="application/x-shockwave-flash" width="100%" height="100%"'+r+"></embed></object>"}d(t)&&t.parent().is(a.inner)||a.inner.append(t),l.trigger("beforeShow"),a.inner.css("overflow","yes"===o?"scroll":"no"===o?"hidden":o),l._setDimension(),l.reposition(),l.isOpen=!1,l.coming=null,l.bindEvents(),l.isOpened?c.prevMethod&&l.transitions[c.prevMethod]():n(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove(),l.transitions[l.isOpened?a.nextMethod:a.openMethod](),l._preloadImages()}},_setDimension:function(){var t,e,o,s,r,a,c,u,h,d,p,v,y,_,b,w=l.getViewport(),x=0,T=!1,k=!1,C=l.wrap,j=l.skin,S=l.inner,P=l.current,E=P.width,O=P.height,M=P.minWidth,A=P.minHeight,I=P.maxWidth,z=P.maxHeight,N=P.scrolling,D=P.scrollOutside?P.scrollbarWidth:0,B=P.margin,R=m(B[1]+B[3]),F=m(B[0]+B[2]);if(C.add(j).add(S).width("auto").height("auto").removeClass("fancybox-tmp"),t=m(j.outerWidth(!0)-j.width()),e=m(j.outerHeight(!0)-j.height()),o=R+t,s=F+e,r=f(E)?(w.w-o)*m(E)/100:E,a=f(O)?(w.h-s)*m(O)/100:O,"iframe"===P.type){if(_=P.content,P.autoHeight&&1===_.data("ready"))try{_[0].contentWindow.document.location&&(S.width(r).height(9999),b=_.contents().find("body"),D&&b.css("overflow-x","hidden"),a=b.outerHeight(!0))}catch(t){}}else(P.autoWidth||P.autoHeight)&&(S.addClass("fancybox-tmp"),P.autoWidth||S.width(r),P.autoHeight||S.height(a),P.autoWidth&&(r=S.width()),P.autoHeight&&(a=S.height()),S.removeClass("fancybox-tmp"));if(E=m(r),O=m(a),h=r/a,M=m(f(M)?m(M,"w")-o:M),I=m(f(I)?m(I,"w")-o:I),A=m(f(A)?m(A,"h")-s:A),z=m(f(z)?m(z,"h")-s:z),c=I,u=z,P.fitToView&&(I=Math.min(w.w-o,I),z=Math.min(w.h-s,z)),v=w.w-R,y=w.h-F,P.aspectRatio?(E>I&&(O=m((E=I)/h)),O>z&&(E=m((O=z)*h)),E<M&&(O=m((E=M)/h)),O<A&&(E=m((O=A)*h))):(E=Math.max(M,Math.min(E,I)),P.autoHeight&&"iframe"!==P.type&&(S.width(E),O=S.height()),O=Math.max(A,Math.min(O,z))),P.fitToView){if(S.width(E).height(O),C.width(E+t),d=C.width(),p=C.height(),P.aspectRatio)for(;(d>v||p>y)&&E>M&&O>A&&!(x++>19);)(E=m((O=Math.max(A,Math.min(z,O-10)))*h))<M&&(O=m((E=M)/h)),E>I&&(O=m((E=I)/h)),S.width(E).height(O),C.width(E+t),d=C.width(),p=C.height();else E=Math.max(M,Math.min(E,E-(d-v))),O=Math.max(A,Math.min(O,O-(p-y)))}D&&"auto"===N&&O<a&&E+t+D<v&&(E+=D),S.width(E).height(O),C.width(E+t),d=C.width(),p=C.height(),T=(d>v||p>y)&&E>M&&O>A,k=P.aspectRatio?E<c&&O<u&&E<r&&O<a:(E<c||O<u)&&(E<r||O<a),n.extend(P,{dim:{width:g(d),height:g(p)},origWidth:r,origHeight:a,canShrink:T,canExpand:k,wPadding:t,hPadding:e,wrapSpace:p-j.outerHeight(!0),skinSpace:j.height()-O}),!_&&P.autoHeight&&O>A&&O<z&&!k&&S.height("auto")},_getPosition:function(t){var e=l.current,n=l.getViewport(),o=e.margin,s=l.wrap.width()+o[1]+o[3],r=l.wrap.height()+o[0]+o[2],a={position:"absolute",top:o[0],left:o[3]};return e.autoCenter&&e.fixed&&!t&&r<=n.h&&s<=n.w?a.position="fixed":e.locked||(a.top+=n.y,a.left+=n.x),a.top=g(Math.max(a.top,a.top+(n.h-r)*e.topRatio)),a.left=g(Math.max(a.left,a.left+(n.w-s)*e.leftRatio)),a},_afterZoomIn:function(){var t=l.current;t&&(l.isOpen=l.isOpened=!0,l.wrap.css("overflow","visible").addClass("fancybox-opened"),l.update(),(t.closeClick||t.nextClick&&l.group.length>1)&&l.inner.css("cursor","pointer").bind("click.fb",function(e){n(e.target).is("a")||n(e.target).parent().is("a")||(e.preventDefault(),l[t.closeClick?"close":"next"]())}),t.closeBtn&&n(t.tpl.closeBtn).appendTo(l.skin).bind("click.fb",function(t){t.preventDefault(),l.close()}),t.arrows&&l.group.length>1&&((t.loop||t.index>0)&&n(t.tpl.prev).appendTo(l.outer).bind("click.fb",l.prev),(t.loop||t.index<l.group.length-1)&&n(t.tpl.next).appendTo(l.outer).bind("click.fb",l.next)),l.trigger("afterShow"),t.loop||t.index!==t.group.length-1?l.opts.autoPlay&&!l.player.isActive&&(l.opts.autoPlay=!1,l.play()):l.play(!1))},_afterZoomOut:function(t){t=t||l.current,n(".fancybox-wrap").trigger("onReset").remove(),n.extend(l,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,
9skin:null,outer:null,inner:null}),l.trigger("afterClose",t)}}),l.transitions={getOrigPosition:function(){var t=l.current,e=t.element,n=t.orig,o={},s=50,r=50,a=t.hPadding,c=t.wPadding,u=l.getViewport();return!n&&t.isDom&&e.is(":visible")&&!(n=e.find("img:first")).length&&(n=e),d(n)?(o=n.offset(),n.is("img")&&(s=n.outerWidth(),r=n.outerHeight())):(o.top=u.y+(u.h-r)*t.topRatio,o.left=u.x+(u.w-s)*t.leftRatio),("fixed"===l.wrap.css("position")||t.locked)&&(o.top-=u.y,o.left-=u.x),o={top:g(o.top-a*t.topRatio),left:g(o.left-c*t.leftRatio),width:g(s+c),height:g(r+a)}},step:function(t,e){var n,o,s=e.prop,r=l.current,a=r.wrapSpace,c=r.skinSpace;("width"===s||"height"===s)&&(n=e.end===e.start?1:(t-e.start)/(e.end-e.start),l.isClosing&&(n=1-n),o=t-("width"===s?r.wPadding:r.hPadding),l.skin[s](m("width"===s?o:o-a*n)),l.inner[s](m("width"===s?o:o-a*n-c*n)))},zoomIn:function(){var t=l.current,e=t.pos,o=t.openEffect,s="elastic"===o,r=n.extend({opacity:1},e);delete r.position,s?(e=this.getOrigPosition(),t.openOpacity&&(e.opacity=.1)):"fade"===o&&(e.opacity=.1),l.wrap.css(e).animate(r,{duration:"none"===o?0:t.openSpeed,easing:t.openEasing,step:s?this.step:null,complete:l._afterZoomIn})},zoomOut:function(){var t=l.current,e=t.closeEffect,n="elastic"===e,o={opacity:.1};n&&(o=this.getOrigPosition(),t.closeOpacity&&(o.opacity=.1)),l.wrap.animate(o,{duration:"none"===e?0:t.closeSpeed,easing:t.closeEasing,step:n?this.step:null,complete:l._afterZoomOut})},changeIn:function(){var t,e=l.current,n=e.nextEffect,o=e.pos,s={opacity:1},r=l.direction;o.opacity=.1,"elastic"===n&&(t="down"===r||"up"===r?"top":"left","down"===r||"right"===r?(o[t]=g(m(o[t])-200),s[t]="+=200px"):(o[t]=g(m(o[t])+200),s[t]="-=200px")),"none"===n?l._afterZoomIn():l.wrap.css(o).animate(s,{duration:e.nextSpeed,easing:e.nextEasing,complete:l._afterZoomIn})},changeOut:function(){var t=l.previous,e=t.prevEffect,o={opacity:.1},s=l.direction;"elastic"===e&&(o["down"===s||"up"===s?"top":"left"]=("up"===s||"left"===s?"-":"+")+"=200px"),t.wrap.animate(o,{duration:"none"===e?0:t.prevSpeed,easing:t.prevEasing,complete:function(){n(this).trigger("onReset").remove()}})}},l.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!h,fixed:!0},overlay:null,fixed:!1,el:n("html"),create:function(t){t=n.extend({},this.defaults,t),this.overlay&&this.close(),this.overlay=n('<div class="fancybox-overlay"></div>').appendTo(l.coming?l.coming.parent:t.parent),this.fixed=!1,t.fixed&&l.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(t){var e=this;t=n.extend({},this.defaults,t),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(t),this.fixed||(r.bind("resize.overlay",n.proxy(this.update,this)),this.update()),t.closeClick&&this.overlay.bind("click.overlay",function(t){if(n(t.target).hasClass("fancybox-overlay"))return l.isActive?l.close():e.close(),!1}),this.overlay.css(t.css).show()},close:function(){var t,e;r.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(n(".fancybox-margin").removeClass("fancybox-margin"),t=r.scrollTop(),e=r.scrollLeft(),this.el.removeClass("fancybox-lock"),r.scrollTop(t).scrollLeft(e)),n(".fancybox-overlay").remove().hide(),n.extend(this,{overlay:null,fixed:!1})},update:function(){var t,n="100%";this.overlay.width(n).height("100%"),c?(t=Math.max(e.documentElement.offsetWidth,e.body.offsetWidth),a.width()>t&&(n=a.width())):a.width()>r.width()&&(n=a.width()),this.overlay.width(n).height(a.height())},onReady:function(t,e){var o=this.overlay;n(".fancybox-overlay").stop(!0,!0),o||this.create(t),t.locked&&this.fixed&&e.fixed&&(o||(this.margin=a.height()>r.height()&&n("html").css("margin-right").replace("px","")),e.locked=this.overlay.append(e.wrap),e.fixed=!1),!0===t.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(t,e){var o,s;e.locked&&(!1!==this.margin&&(n("*").filter(function(){return"fixed"===n(this).css("position")&&!n(this).hasClass("fancybox-overlay")&&!n(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),o=r.scrollTop(),s=r.scrollLeft(),this.el.addClass("fancybox-lock"),r.scrollTop(o).scrollLeft(s)),this.open(t)},onUpdate:function(){this.fixed||this.update()},afterClose:function(t){this.overlay&&!l.coming&&this.overlay.fadeOut(t.speedOut,n.proxy(this.close,this))}},l.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(t){var e,o,s=l.current,r=s.title,a=t.type;if(n.isFunction(r)&&(r=r.call(s.element,s)),p(r)&&""!==n.trim(r)){switch(e=n('<div class="fancybox-title fancybox-title-'+a+'-wrap">'+r+"</div>"),a){case"inside":o=l.skin;break;case"outside":o=l.wrap;break;case"over":o=l.inner;break;default:o=l.skin,e.appendTo("body"),c&&e.width(e.width()),e.wrapInner('<span class="child"></span>'),l.current.margin[2]+=Math.abs(m(e.css("margin-bottom")))}
9e["top"===t.position?"prependTo":"appendTo"](o)}}},n.fn.fancybox=function(t){var e,o=n(this),s=this.selector||"",r=function(r){var a,c,u=n(this).blur(),h=e;r.ctrlKey||r.altKey||r.shiftKey||r.metaKey||u.is(".fancybox-wrap")||(a=t.groupAttr||"data-fancybox-group",(c=u.attr(a))||(a="rel",c=u.get(0)[a]),c&&""!==c&&"nofollow"!==c&&(h=(u=(u=s.length?n(s):o).filter("["+a+'="'+c+'"]')).index(this)),t.index=h,!1!==l.open(u,t)&&r.preventDefault())};return e=(t=t||{}).index||0,s&&!1!==t.live?a.undelegate(s,"click.fb-start").delegate(s+":not('.fancybox-item, .fancybox-nav')","click.fb-start",r):o.unbind("click.fb-start").bind("click.fb-start",r),this.filter("[data-fancybox-start=1]").trigger("click"),this},a.ready(function(){var e,r,a,c;o===n.scrollbarWidth&&(n.scrollbarWidth=function(){var t=n('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),e=t.children(),o=e.innerWidth()-e.height(99).innerWidth();return t.remove(),o}),o===n.support.fixedPosition&&(n.support.fixedPosition=(c=20===(a=n('<div style="position:fixed;top:20px;"></div>').appendTo("body"))[0].offsetTop||15===a[0].offsetTop,a.remove(),c)),n.extend(l.defaults,{scrollbarWidth:n.scrollbarWidth(),fixed:n.support.fixedPosition,parent:n("body")}),e=n(t).width(),s.addClass("fancybox-lock-test"),r=n(t).width(),s.removeClass("fancybox-lock-test"),n("<style type='text/css'>.fancybox-margin{margin-right:"+(r-e)+"px;}</style>").appendTo("head")})}(window,document,jQuery),/*! 10 Colorbox 1.6.4 11 license: MIT 12 http://www.jacklmoore.com/colorbox 13*/function(t,e,n){function o(n,o,s){var r=e.createElement(n);return o&&(r.id=J+o),s&&(r.style.cssText=s),t(r)}function s(){return n.innerHeight?n.innerHeight:t(n).height()}function r(e,n){n!==Object(n)&&(n={}),this.cache={},this.el=e,this.value=function(e){var o;return void 0===this.cache[e]&&(void 0!==(o=t(this.el).attr("data-cbox-"+e))?this.cache[e]=o:void 0!==n[e]?this.cache[e]=n[e]:void 0!==K[e]&&(this.cache[e]=K[e])),this.cache[e]},this.get=function(e){var n=this.value(e);return t.isFunction(n)?n.call(this.el,this):n}}function a(t){var e=k.length,n=(W+t)%e;return 0>n?e+n:n}function l(t,e){return Math.round((/%/.test(t)?("x"===e?C.width():s())/100:1)*parseInt(t,10))}function c(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function u(t,e){return t.get("retinaUrl")&&n.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function h(t){"contains"in v[0]&&!v[0].contains(t.target)&&t.target!==g[0]&&(t.stopPropagation(),v.focus())}function d(t){d.str!==t&&(v.add(g).removeClass(d.str).addClass(t),d.str=t)}function p(n){t(e).trigger(n),ta.triggerHandler(n)}function f(s){var a;if(!q){if(a=t(s).data(X),D=new r(s,a),W=0,(f=D.get("rel"))&&!1!==f&&"nofollow"!==f?-1===(W=(k=t("."+tt).filter(function(){var e=t.data(this,X);return new r(this,e).get("rel")===f})).index(D.el))&&(W=(k=k.add(D.el)).length-1):k=t(D.el),!U){U=V=!0,d(D.get("className")),v.css({visibility:"hidden",display:"block",opacity:""}),j=o(tl,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),_.css({width:"",height:""}).append(j),B=b.height()+T.height()+_.outerHeight(!0)-_.height(),R=w.width()+x.width()+_.outerWidth(!0)-_.width(),F=j.outerHeight(!0),H=j.outerWidth(!0);var f,m=l(D.get("initialWidth"),"x"),y=l(D.get("initialHeight"),"y"),C=D.get("maxWidth"),O=D.get("maxHeight");D.w=Math.max((!1!==C?Math.min(m,l(C,"x")):m)-H-R,0),D.h=Math.max((!1!==O?Math.min(y,l(O,"y")):y)-F-B,0),j.css({width:"",height:D.h}),Q.position(),p(te),D.get("onOpen"),N.add(E).hide(),v.focus(),D.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",h,!0),ta.one(ts,function(){e.removeEventListener("focus",h,!0)})),D.get("returnFocus")&&ta.one(ts,function(){t(D.el).focus()})}var M=parseFloat(D.get("opacity"));g.css({opacity:M==M?M:"",cursor:D.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),D.get("closeButton")?z.html(D.get("close")).appendTo(_):z.appendTo("<div/>"),function(){var e,s,r,a=Q.prep,h=++tc;if(V=!0,Z=!1,p(tr),p(ti),D.get("onLoad"),D.h=D.get("height")?l(D.get("height"),"y")-F-B:D.get("innerHeight")&&l(D.get("innerHeight"),"y"),D.w=D.get("width")?l(D.get("width"),"x")-H-R:D.get("innerWidth")&&l(D.get("innerWidth"),"x"),D.mw=D.w,D.mh=D.h,D.get("maxWidth")&&(D.mw=l(D.get("maxWidth"),"x")-H-R,D.mw=D.w&&D.w<D.mw?D.w:D.mw),D.get("maxHeight")&&(D.mh=l(D.get("maxHeight"),"y")-F-B,D.mh=D.h&&D.h<D.mh?D.h:D.mh),e=D.get("href"),G=setTimeout(function(){P.show()},100),D.get("inline")){var d=t(e).eq(0);r=t("<div>").hide().insertBefore(d),ta.one(tr,function(){r.replaceWith(d)}),a(d)}else D.get("iframe")?a(" "):D.get("html")?a(D.get("html")):c(D,e)?(e=u(D,e),t(Z=D.get("createImg")).addClass(J+"Photo").bind("error."+J,function(){a(o(tl,"Error").html(D.get("imgError")))}).one("load",function(){h===tc&&setTimeout(function(){var e;D.get("retinaImage")&&n.devicePixelRatio>1&&(Z.height=Z.height/n.devicePixelRatio,Z.width=Z.width/n.devicePixelRatio),D.get("scalePhotos")&&(s=function(){Z.height-=Z.height*e,Z.width-=Z.width*e},D.mw&&Z.width>D.mw&&(e=(Z.width-D.mw)/Z.width,s()),D.mh&&Z.height>D.mh&&(e=(Z.height-D.mh)/Z.height,s())),D.h&&(Z.style.marginTop=Math.max(D.mh-Z.height,0)/2+"px"),k[1]&&(D.get("loop")||k[W+1])&&(Z.style.cursor="pointer",t(Z).bind("click."+J,function(){Q.next()})),Z.style.width=Z.width+"px",Z.style.height=Z.height+"px",a(Z)},1)}),Z.src=e):e&&S.load(e,D.get("data"),function(e,n){h===tc&&a("error"===n?o(tl,"Error").html(D.get("xhrError")):t(this).contents())})}()}}function m(){v||(Y=!1,C=t(n),v=o(tl).attr({id:X,class:!1===t.support.opacity?J+"IE":"",role:"dialog",tabindex:"-1"}).hide(),g=o(tl,"Overlay").hide(),P=t([o(tl,"LoadingOverlay")[0],o(tl,"LoadingGraphic")[0]]),y=o(tl,"Wrapper"),_=o(tl,"Content").append(E=o(tl,"Title"),O=o(tl,"Current"),I=t('<button type="button"/>').attr({id:J+"Previous"}),A=t('<button type="button"/>').attr({id:J+"Next"}),M=t('<button type="button"/>').attr({id:J+"Slideshow"}),P),z=t('<button type="button"/>').attr({id:J+"Close"}),y.append(o(tl).append(o(tl,"TopLeft"),b=o(tl,"TopCenter"),o(tl,"TopRight")),o(tl,!1,"clear:left").append(w=o(tl,"MiddleLeft"),_,x=o(tl,"MiddleRight")),o(tl,!1,"clear:left").append(o(tl,"BottomLeft"),T=o(tl,"BottomCenter"),o(tl,"BottomRight"))).find("div div").css({float:"left"}),S=o(tl,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),N=A.add(I).add(O).add(M)),e.body&&!v.parent().length&&t(e.body).append(g,v.append(y,S))}var g,v,y,_,b,w,x,T,k,C,j,S,P,E,O,M,A,I,z,N,D,B,R,F,H,W,Z,U,V,q,G,Q,Y,K={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHe
13ight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,n=t(this).data("cbox-img-attrs");return"object"==typeof n&&t.each(n,function(t,n){e[t]=n}),e},createIframe:function(){var n=e.createElement("iframe"),o=t(this).data("cbox-iframe-attrs");return"object"==typeof o&&t.each(o,function(t,e){n[t]=e}),"frameBorder"in n&&(n.frameBorder=0),"allowTransparency"in n&&(n.allowTransparency="true"),n.name=(new Date).getTime(),n.allowFullscreen=!0,n}},X="colorbox",J="cbox",tt=J+"Element",te=J+"_open",ti=J+"_load",tn=J+"_complete",to=J+"_cleanup",ts=J+"_closed",tr=J+"_purge",ta=t("<a/>"),tl="div",tc=0,tu={},th=function(){function t(){clearTimeout(a)}function e(){(D.get("loop")||k[W+1])&&(t(),a=setTimeout(Q.next,D.get("slideshowSpeed")))}function n(){M.html(D.get("slideshowStop")).unbind(c).one(c,o),ta.bind(tn,e).bind(ti,t),v.removeClass(l+"off").addClass(l+"on")}function o(){t(),ta.unbind(tn,e).unbind(ti,t),M.html(D.get("slideshowStart")).unbind(c).one(c,function(){Q.next(),n()}),v.removeClass(l+"on").addClass(l+"off")}function s(){r=!1,M.hide(),t(),ta.unbind(tn,e).unbind(ti,t),v.removeClass(l+"off "+l+"on")}var r,a,l=J+"Slideshow_",c="click."+J;return function(){r?D.get("slideshow")||(ta.unbind(to,s),s()):D.get("slideshow")&&k[1]&&(r=!0,ta.one(to,s),D.get("slideshowAuto")?n():o(),M.show())}}();t[X]||(t(m),(Q=t.fn[X]=t[X]=function(n,o){var s=this;return n=n||{},t.isFunction(s)&&(s=t("<a/>"),n.open=!0),s[0]&&(m(),function(){function n(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),f(this))}return!!v&&(Y||(Y=!0,A.click(function(){Q.next()}),I.click(function(){Q.prev()}),z.click(function(){Q.close()}),g.click(function(){D.get("overlayClose")&&Q.close()}),t(e).bind("keydown."+J,function(t){var e=t.keyCode;U&&D.get("escKey")&&27===e&&(t.preventDefault(),Q.close()),U&&D.get("arrowKey")&&k[1]&&!t.altKey&&(37===e?(t.preventDefault(),I.click()):39===e&&(t.preventDefault(),A.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+J,"."+tt,n):t("."+tt).live("click."+J,n)),!0)}()&&(o&&(n.onComplete=o),s.each(function(){var e=t.data(this,X)||{};t.data(this,X,t.extend(e,n))}).addClass(tt),new r(s[0],n).get("open")&&f(s[0]))),s}).position=function(e,n){function o(){b[0].style.width=T[0].style.width=_[0].style.width=parseInt(v[0].style.width,10)-R+"px",_[0].style.height=w[0].style.height=x[0].style.height=parseInt(v[0].style.height,10)-B+"px"}var r,a,c,u=0,h=0,d=v.offset();if(C.unbind("resize."+J),v.css({top:-9e4,left:-9e4}),a=C.scrollTop(),c=C.scrollLeft(),D.get("fixed")?(d.top-=a,d.left-=c,v.css({position:"fixed"})):(u=a,h=c,v.css({position:"absolute"})),h+=!1!==D.get("right")?Math.max(C.width()-D.w-H-R-l(D.get("right"),"x"),0):!1!==D.get("left")?l(D.get("left"),"x"):Math.round(Math.max(C.width()-D.w-H-R,0)/2),u+=!1!==D.get("bottom")?Math.max(s()-D.h-F-B-l(D.get("bottom"),"y"),0):!1!==D.get("top")?l(D.get("top"),"y"):Math.round(Math.max(s()-D.h-F-B,0)/2),v.css({top:d.top,left:d.left,visibility:"visible"}),y[0].style.width=y[0].style.height="9999px",r={width:D.w+H+R,height:D.h+F+B,top:u,left:h},e){var p=0;t.each(r,function(t){return r[t]!==tu[t]?void(p=e):void 0}),e=p}tu=r,e||v.css(r),v.dequeue().animate(r,{duration:e||0,complete:function(){o(),V=!1,y[0].style.width=D.w+H+R+"px",y[0].style.height=D.h+F+B+"px",D.get("reposition")&&setTimeout(function(){C.bind("resize."+J,Q.position)},1),t.isFunction(n)&&n()},step:o})},Q.resize=function(t){var e;U&&((t=t||{}).width&&(D.w=l(t.width,"x")-H-R),t.innerWidth&&(D.w=l(t.innerWidth,"x")),j.css({width:D.w}
13),t.height&&(D.h=l(t.height,"y")-F-B),t.innerHeight&&(D.h=l(t.innerHeight,"y")),t.innerHeight||t.height||(e=j.scrollTop(),j.css({height:"auto"}),D.h=j.height()),j.css({height:D.h}),e&&j.scrollTop(e),Q.position("none"===D.get("transition")?0:D.get("speed")))},Q.prep=function(n){if(U){var s,l="none"===D.get("transition")?0:D.get("speed");j.remove(),(j=o(tl,"LoadedContent").append(n)).hide().appendTo(S.show()).css({width:(D.w=D.w||j.width(),D.w=D.mw&&D.mw<D.w?D.mw:D.w,D.w),overflow:D.get("scrolling")?"auto":"hidden"}).css({height:(D.h=D.h||j.height(),D.h=D.mh&&D.mh<D.h?D.mh:D.h,D.h)}).prependTo(_),S.hide(),t(Z).css({float:"none"}),d(D.get("className")),s=function(){function n(){!1===t.support.opacity&&v[0].style.removeAttribute("filter")}var o,s,h=k.length;U&&(s=function(){clearTimeout(G),P.hide(),p(tn),D.get("onComplete")},E.html(D.get("title")).show(),j.show(),h>1?("string"==typeof D.get("current")&&O.html(D.get("current").replace("{current}",W+1).replace("{total}",h)).show(),A[D.get("loop")||h-1>W?"show":"hide"]().html(D.get("next")),I[D.get("loop")||W?"show":"hide"]().html(D.get("previous")),th(),D.get("preloading")&&t.each([a(-1),a(1)],function(){var n=k[this],o=new r(n,t.data(n,X)),s=o.get("href");s&&c(o,s)&&(s=u(o,s),e.createElement("img").src=s)})):N.hide(),D.get("iframe")?(o=D.get("createIframe"),D.get("scrolling")||(o.scrolling="no"),t(o).attr({src:D.get("href"),class:J+"Iframe"}).one("load",s).appendTo(j),ta.one(tr,function(){o.src="//about:blank"}),D.get("fastIframe")&&t(o).trigger("load")):s(),"fade"===D.get("transition")?v.fadeTo(l,1,n):n())},"fade"===D.get("transition")?v.fadeTo(l,0,function(){Q.position(0,s)}):Q.position(l,s)}},Q.next=function(){!V&&k[1]&&(D.get("loop")||k[W+1])&&f(k[W=a(1)])},Q.prev=function(){!V&&k[1]&&(D.get("loop")||W)&&f(k[W=a(-1)])},Q.close=function(){U&&!q&&(q=!0,U=!1,p(to),D.get("onCleanup"),C.unbind("."+J),g.fadeTo(D.get("fadeOut")||0,0),v.stop().fadeTo(D.get("fadeOut")||0,0,function(){v.hide(),g.hide(),p(tr),j.remove(),setTimeout(function(){q=!1,p(ts),D.get("onClosed")},1)}))},Q.remove=function(){v&&(v.stop(),t[X].close(),v.stop(!1,!0).remove(),g.remove(),q=!1,v=null,t("."+tt).removeData(X).removeClass(tt),t(e).unbind("click."+J).unbind("keydown."+J))},Q.element=function(){return t(D.el)},Q.settings=K)}(jQuery,document,window),function(t){"use strict";let e=t('<style type="text/css">.mm-menu.mm-offcanvas { display: none; }</style>');function n(){t("nav.mm-menu a.mm-prev").each(function(){let e=t(this).parent().find("a.mm-title").text();t(this).attr("title",e)}),t("nav.mm-menu a.mm-next").each(function(){let e=t("> a[data-title]",t(this).parent()).data("title");t(this).attr("title",e)}),t("nav.mm-menu a.mm-close").length>0&&t("nav.mm-menu a.mm-close").attr("title","Close"),function(){let e=t(".navigation-a");e.length&&t(".navigation-a > .navigation__list > .navigation__item.has-drop-down").on("mouseenter mouseleave",function(e){let n=t(this),o=n.find("> .navigation__list--sub"),s=o.find("> .navigation__item.has-drop-down > .navigation__list--sub"),r=s.find("> .navigation__item.has-drop-down > .navigation__list--sub"),a=o.outerWidth(!0),l=n.offset().left,c=0,u=0;t(s).each(function(){let e=t(this).outerWidth(!0);e>u&&(u=e)});let h=0;t(r).each(function(){let e=t(this).outerWidth(!0);e>h&&(h=e)}),c=a+u+h-n.outerWidth(!0);let d=t(document).width()-(l+n.outerWidth(!0)+60),p=d>c;p?n.removeClass("near-edge"):n.addClass("near-edge")})}()}t("html > head").append(e),t(document).ready(function(){t("[data-sticky-header]").closest(".js-sticky-nav").sticky({topSpacing:0}),t(".navigation__item.more").click(function(t){t.preventDefault()}),t(".more_nav--loading").removeClass("more_nav--loading"),n()}),t(window).load(function(){n()})}(window.jQuery),function(t){var e=function(e,n){this.$el=t(e),this.inputAttributes=n.attributes,this.options=n||{},this.config={fail:'<span class="error"><i class="la-cicon-exclamation" aria-hidden="true"></i>Oops! Upload failed</span>',notSupported:'<span class="error"><i class="la-cicon-exclamation" aria-hidden="true"></i>File type not supported</span>',maxSize:'<span class="error"><i class="la-cicon-exclamation" aria-hidden="true"></i>File exceeds max size</span>',fileSize:10485760,fileTypes:n.fileTypes,defaultLabel:""==this.options.label?this.options.label:this.options.helpText},this.itemInfo={},this.insertHTML(this.inputAttributes),this.$uploadFieldInput=this.$el.find(":file"),this.$label=this.$el.find(".labelHolder"),this.$close=this.$el.find(".la-cicon-close"),this.init(this.$el)};e.prototype.init=function(t){this.attachEvents()},e.prototype.attachEvents=function(){var e=this;e.$el.on("change",":file",function(){var e=t(this),n=e.get(0).files?e.get(0).files.length:1,o=e.val().replace(/\\/g,"/").replace(/.*\//,""),s=document.getElementById(e.attr("id")).files[0];s&&e.trigger("fileselect",[n,o,s])}),e.$uploadFieldInput.on("fileselect",function(t,n,o,s){e.validateFiles(t,n,o,s)}),e.$uploadFieldInput.on("focus",function(){e.$uploadFieldInput.addClass("has-focus")}).on("blur",function(){e.$uploadFieldInput.removeClass("has-focus")}),e.$close.on("click",function(t){t.preventDefault(),e.toggleInputState("reset"),e.uploadItems("removeLastUploaded"),e.$uploadFieldInput.val("")}
13)},e.prototype.uploadItems=function(t){"object"!=typeof t?this.$uploadFieldInput.data("item",""):(this.$uploadFieldInput.data("item",JSON.stringify(t)),this.toggleInputState("close"))},e.prototype.toggleInputState=function(t){"reset"===t&&(t="upload",this.$label.html(this.config.defaultLabel)),this.$el.find(".la-cicon-"+t).show(),this.$el.find(".la-cicon-"+t).siblings("i").hide(),"upload"===t?this.$el.find(".status-label").show():this.$el.find(".status-label").hide()},e.prototype.encodeBaseSF=function(t,e,n){var o=this,s=new FileReader,r={};s.readAsDataURL(t),s.onload=function(){return r.id=e,r.string=s.result,r.size=t.size,r.extension=o.itemInfo.extension,r.icon=o.itemInfo.icon,n(r)},s.onerror=function(t){}},e.prototype.insertHTML=function(e){this.options.required;var n='<label for="'+e.id+'"><span class="labelHolder">'+this.config.defaultLabel+'</span><span class="btnS"><span class=""><i class="la-cicon-spinner icon-pulse icon-fw icon-load" style="display:none;"></i><i class="la-cicon-upload"></i><i class="la-cicon-close" style="display:none;"></i><span class="status-label"> Browse</span></span></span></label><span class="form-input-info">Maximum file size allowed: 10MB</label>',o=t("<input>",e).addClass("fileUpload");this.$el.append(o).append(n)},e.prototype.validateFiles=function(e,n,o,s){var r=this,a=r.$label.html(),l="",c=!1;t("label",r.$el).removeClass("has-error"),t(".error_container",r.$el.parent().parent()).remove(),r.itemInfo.extension=s.name.split(".").pop().toUpperCase(),r.itemInfo.icon="other",t.each(r.options.fileTypes,function(t,e){e.ext===r.itemInfo.extension&&(c=!0,r.itemInfo.icon=e.icon)}),e.target.value&&(l=e.target.value.split("\\").pop());var u='<span class="success"><i class="la-cicon-file-'+r.itemInfo.icon+'"></i>'+l+"</span>";l?(s.size>r.config.fileSize?r.updateLabel(r.config.maxSize):c?r.encodeBaseSF(s,l,function(t){r.uploadItems(t),r.updateLabel(u)}):r.updateLabel(r.config.notSupported),r.toggleInputState("close")):(r.$label.html(a),r.toggleInputState("load"))},e.prototype.updateLabel=function(t){void 0!==t&&this.$label.html(t)}
13;var n=t.fn.uploadField;t.fn.uploadField=function(n){n=t.extend({},t(this).data(),"object"==typeof n&&n),new e(this,n)},t.fn.uploadField.Constructor=e,t.fn.uploadField.noConflict=function(){return t.fn.uploadField=n,this}}(jQuery),function(t){"use strict";t(document).ready(function(){t("body").on("SMBLeadsFormReady",function(){var e=t('[data-control="form"]');if(e.length){e.each(function(){""!=t(this).data("mhorgid")&&(t("<input>").attr({type:"hidden",name:"mh_orgId",value:t(this).data("mhorgid")}).appendTo(t("form",t(this))),t("<input>").attr({type:"hidden",name:"mh_template_id",value:t(this).data("templateId")}).appendTo(t("form",t(this))))});var n=e.find("form");n.find("input[type=submit]").on("click",function(e){var o=n.serializeArray(),s={};t.each(o,function(t,e){s[e.name]=e.value});let r=document.getElementById("error-form-dialog"),a=document.getElementById("p-error-message"),l=document.getElementById("close-dialog");l.addEventListener("click",()=>{r.close(),document.body.style.overflow="auto"}),function(t){if(!("comments"in t))return!1;var e=RegExp("((https?|ftp):\\/\\/)?([a-z0-9+!*(),;?&=$_.-]+(:[a-z0-9+!*(),;?&=$_.-]+)?@)?([a-z0-9-.]*)\\.([a-z]{2,3})(:[0-9]{2,5})?(\\/([a-z0-9+$_-]\\.?)+)*\\/?(\\?[a-z+&$_.-][a-z0-9;:@&%=+\\/$_.-]*)?(#[a-z_.-][a-z0-9+$_.-]*)?","i");return!!t.comments.match(e)}(s)&&(a.innerHTML="Error: Your message could not be delivered because it contains a link to an external website. Please review your message and try again.",r.showModal(),document.body.style.overflow="hidden",r.style.display="block",e.preventDefault())})}t(".leadForm .hasDatepicker").each(function(){t(this).attr({type:"text",readonly:"readonly"})})});var e=t(".form.isPleForm");e.length&&e.each(function(){var e=t(this).closest(".section");e.hasClass("section-form")||e.addClass("section-form")});var n=t(".section-form:not(.newsletter-2-fields):not(.newsletter-3-fields):not(.contact-us-im):not(.appointment-request):not(.exclusive-offer):not(.pet-memorial):not(.form-default)");n.length&&e.length&&n.each(function(){t(this).find(e).addClass("form-themeExtras"),t("body").on("SMBLeadsFormReady",function(){var n=t(".forms--2col-textarea:not(.newsletter-2-fields):not(.newsletter-3-fields):not(.contact-us-im):not(.appointment-request):not(.exclusive-offer):not(.pet-memorial):not(.form-default)"),o=t(".forms-option--b .leadForm .form__group:not(.checkbox__group):not(.radio__group)");n.find(e).each(function(){t(this).find(".form__group").not(".form-input-comments").wrapAll("<div class='groupWrap' />")}),o.each(function(){t(this).hasClass("hasLabel")&&t(this).addClass("optionB-enabled")})})})})}(window.jQuery),function(t){"use strict";var e=function(t,e){this.$el=t,this.$parent=t.closest(".cta"),this.options=e,this.ctaVideo="",this.initColorbox()};e.prototype.initColorbox=function(){this.$parent.find(".lb-class").each(function(){t(this).colorbox(t.extend(e.defaults,t(t(this).attr("href")).data()))}),t(document).bind("cbox_complete",{context:this},this.cboxOpenCallBack),t(document).bind("cbox_closed",{context:this},this.cboxClosedCallBack)},e.prototype.cboxOpenCallBack=function(t){t.data.context.formSizeHandler(t),t.data.context.videoLoadHandler(t)},e.prototype.cboxClosedCallBack=function(e){var n=t.colorbox.element().attr("href");t(n+" [data-setup-run]").each(function(){t(this).remove()})},e.prototype.formSizeHandler=function(e){var n=t.colorbox.element().attr("href"),o=t(n).find("form"),s=new MutationObserver(function(e){t.colorbox.resize()}),r=document.querySelector(o.selector);null!=r&&s.observe(r,{attributes:!0})},e.prototype.videoLoadHandler=function(e){var n=t.colorbox.element().attr("href");if(t(n+" [data-setup-run]").length&&(e.data.context.ctaVideo=t(n+" [data-setup-run]")[0].outerHTML,t(n+" [data-setup-run]").remove()),e.data.context.ctaVideo){t(n+" .video").append(t(e.data.context.ctaVideo));var o=t(n+" [data-setup-run]");videojs(o[0],o.data("setupRun"),function(){})}},e.defaults={inline:!0,width:"50%",transition:"fade",returnFocus:!1,className:"ctaColorBox"},t.fn.colorBoxModal=function(n){var o;return arguments,this.each(function(){var s=t(this),r=t.extend({},s.data(),"object"==typeof n&&n);if(s.data("ColorBoxModal",new e(s,r)),void 0!==o)return!1}),o||this},t.fn.colorBoxModal.Constructor=e,t.fn.colorBoxModal.noConflict=function(){return t.fn.colorBoxModal=old,this}
13,t(document).ready(function(){t('[data-control="colorbox-modal"]').colorBoxModal({})})}(window.jQuery),function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).videojs=t()}(function(){var t;return(function t(e,n,o){function s(a,l){if(!n[a]){if(!e[a]){var c="function"==typeof require&&require;if(!l&&c)return c(a,!0);if(r)return r(a,!0);var u=Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var h=n[a]={exports:{}};e[a][0].call(h.exports,function(t){return s(e[a][1][t]||t)},h,h.exports,t,e,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a<o.length;a++)s(o[a]);return s})({1:[function(t,e){(function(n){var o=void 0!==n?n:"undefined"!=typeof window?window:{},s=t("min-document");if("undefined"!=typeof document)e.exports=document;else{var r=o["__GLOBAL_DOCUMENT_CACHE@4"];r||(r=o["__GLOBAL_DOCUMENT_CACHE@4"]=s),e.exports=r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":3}],2:[function(t,e){(function(t){e.exports="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(){},{}],4:[function(t,e){var n=t("../internal/getNative")(Date,"now");e.exports=n||function(){return(new Date).getTime()}},{"../internal/getNative":20}],5:[function(t,e){var n=t("../lang/isObject"),o=t("../date/now"),s=Math.max;e.exports=function(t,e,r){function a(e,n){n&&clearTimeout(n),d=g=v=void 0,e&&(y=o(),p=t.apply(m,h),g||d||(h=m=void 0))}function l(){var t=e-(o()-f);0>=t||t>e?a(v,d):g=setTimeout(l,t)}function c(){a(b,g)}function u(){if(h=arguments,f=o(),m=this,v=b&&(g||!w),!1===_)var n=w&&!g;else{d||w||(y=f);var s=_-(f-y),r=0>=s||s>_;r?(d&&(d=clearTimeout(d)),y=f,p=t.apply(m,h)):d||(d=setTimeout(c,s))}return r&&g?g=clearTimeout(g):g||e===_||(g=setTimeout(l,e)),n&&(r=!0,p=t.apply(m,h)),!r||g||d||(h=m=void 0),p}var h,d,p,f,m,g,v,y=0,_=!1,b=!0;if("function"!=typeof t)throw TypeError("Expected a function");if(e=0>e?0:+e||0,!0===r){var w=!0;b=!1}else n(r)&&(w=!!r.leading,_="maxWait"in r&&s(+r.maxWait||0,e),b="trailing"in r?!!r.trailing:b);return u.cancel=function(){g&&clearTimeout(g),d&&clearTimeout(d),y=0,d=g=v=void 0},u}},{"../date/now":4,"../lang/isObject":33}],6:[function(t,e){var n=Math.max;e.exports=function(t,e){if("function"!=typeof t)throw TypeError("Expected a function");return e=n(void 0===e?t.length-1:+e||0,0),function(){for(var o=arguments,s=-1,r=n(o.length-e,0),a=Array(r);++s<r;)a[s]=o[e+s];switch(e){case 0:return t.call(this,a);case 1:return t.call(this,o[0],a);case 2:return t.call(this,o[0],o[1],a)}var l=Array(e+1);for(s=-1;++s<e;)l[s]=o[s];return l[e]=a,t.apply(this,l)}}},{}],7:[function(t,e){var n=t("./debounce"),o=t("../lang/isObject");e.exports=function(t,e,s){var r=!0,a=!0;if("function"!=typeof t)throw TypeError("Expected a function");return!1===s?r=!1:o(s)&&(r="leading"in s?!!s.leading:r,a="trailing"in s?!!s.trailing:a),n(t,e,{leading:r,maxWait:+e,trailing:a})}},{"../lang/isObject":33,"./debounce":5}],8:[function(t,e){e.exports=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e}},{}],9:[function(t,e){e.exports=function(t,e){for(var n=-1,o=t.length;++n<o&&!1!==e(t[n],n,t););return t}},{}],10:[function(t,e){e.exports=function(t,e,n){n||(n={});for(var o=-1,s=e.length;++o<s;){var r=e[o];n[r]=t[r]}return n}},{}],11:[function(t,e){var n=t("./createBaseFor")();e.exports=n},{"./createBaseFor":18}],12:[function(t,e){var n=t("./baseFor"),o=t("../object/keysIn");e.exports=function(t,e){return n(t,e,o)}},{"../object/keysIn":39,"./baseFor":11}],13:[function(t,e){var n=t("./arrayEach"),o=t("./baseMergeDeep"),s=t("../lang/isArray"),r=t("./isArrayLike"),a=t("../lang/isObject"),l=t("./isObjectLike"),c=t("../lang/isTypedArray"),u=t("../object/keys");e.exports=function t(e,h,d,p,f){if(!a(e))return e;var m=r(h)&&(s(h)||c(h)),g=m?void 0:u(h);return n(g||h,function(n,s){if(g&&(n=h[s=n]),l(n))p||(p=[]),f||(f=[]),o(e,h,s,t,d,p,f);else{var r=e[s],a=d?d(r,n,s,e,h):void 0,c=void 0===a;c&&(a=n),void 0===a&&(!m||s in e)||!c&&(a==a?a===r:r!=r)||(e[s]=a)}}),e}},{"../lang/isArray":30,"../lang/isObject":33,"../lang/isTypedArray":36,"../object/keys":38,"./arrayEach":9,"./baseMergeDeep":14,"./isArrayLike":21,"./isObjectLike":26}],14:[function(t,e){var n=t("./arrayCopy"),o=t("../lang/isArguments"),s=t("../lang/isArray"),r=t("./isArrayLike"),a=t("../lang/isPlainObject"),l=t("../lang/isTypedArray"),c=t("../lang/toPlainObject");e.exports=function(t,e,u,h,d,p,f){for(var m=p.length,g=e[u];m--;)if(p[m]==g)return void(t[u]=f[m]);var v=t[u],y=d?d(v,g,u,t,e):void 0,_=void 0===y;_&&(y=g,r(g)&&(s(g)||l(g))?y=s(v)?v:r(v)?n(v):[]:a(g)||o(g)?y=o(v)?c(v):a(v)?v:{}:_=!1),p.push(g),f.push(y),_?t[u]=h(y,g,d,p,f):(y==y?y!==v:v==v)&&(t[u]=y)}},{"../lang/isArguments":29,"../lang/isArray":30,"../lang/isPlainObject":34,"../lang/isTypedArray":36,"../lang/toPlainObject":37,"./arrayCopy":8,"./isArrayLike":21}],15:[function(t,e){var n=t("./toObject");e.exports=function(t){return function(e){return null==e?void 0:n(e)[t]}}},{"./toObject":28}],16:[function(t,e){var n=t("../utility/identity");
13e.exports=function(t,e,o){if("function"!=typeof t)return n;if(void 0===e)return t;switch(o){case 1:return function(n){return t.call(e,n)};case 3:return function(n,o,s){return t.call(e,n,o,s)};case 4:return function(n,o,s,r){return t.call(e,n,o,s,r)};case 5:return function(n,o,s,r,a){return t.call(e,n,o,s,r,a)}}return function(){return t.apply(e,arguments)}}},{"../utility/identity":42}],17:[function(t,e){var n=t("./bindCallback"),o=t("./isIterateeCall"),s=t("../function/restParam");e.exports=function(t){return s(function(e,s){var r=-1,a=null==e?0:s.length,l=a>2?s[a-2]:void 0,c=a>2?s[2]:void 0,u=a>1?s[a-1]:void 0;for("function"==typeof l?(l=n(l,u,5),a-=2):a-=(l="function"==typeof u?u:void 0)?1:0,c&&o(s[0],s[1],c)&&(l=3>a?void 0:l,a=1);++r<a;){var h=s[r];h&&t(e,h,l)}return e})}},{"../function/restParam":6,"./bindCallback":16,"./isIterateeCall":24}],18:[function(t,e){var n=t("./toObject");e.exports=function(t){return function(e,o,s){for(var r=n(e),a=s(e),l=a.length,c=t?l:-1;t?c--:++c<l;){var u=a[c];if(!1===o(r[u],u,r))break}return e}}},{"./toObject":28}],19:[function(t,e){var n=t("./baseProperty")("length");e.exports=n},{"./baseProperty":15}],20:[function(t,e){var n=t("../lang/isNative");e.exports=function(t,e){var o=null==t?void 0:t[e];return n(o)?o:void 0}},{"../lang/isNative":32}],21:[function(t,e){var n=t("./getLength"),o=t("./isLength");e.exports=function(t){return null!=t&&o(n(t))}},{"./getLength":19,"./isLength":25}],22:[function(t,e){e.exports=function(t){return"function"!=typeof t.toString&&"string"==typeof(t+"")}},{}],23:[function(t,e){var n=/^\d+$/;e.exports=function(t,e){return t="number"==typeof t||n.test(t)?+t:-1,e=null==e?9007199254740991:e,t>-1&&t%1==0&&e>t}},{}],24:[function(t,e){var n=t("./isArrayLike"),o=t("./isIndex"),s=t("../lang/isObject");e.exports=function(t,e,r){if(!s(r))return!1;var a=typeof e;if("number"==a?n(r)&&o(e,r.length):"string"==a&&e in r){var l=r[e];return t==t?t===l:l!=l}return!1}},{"../lang/isObject":33,"./isArrayLike":21,"./isIndex":23}],25:[function(t,e){e.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&9007199254740991>=t}},{}],26:[function(t,e){e.exports=function(t){return!!t&&"object"==typeof t}},{}],27:[function(t,e){var n=t("../lang/isArguments"),o=t("../lang/isArray"),s=t("./isIndex"),r=t("./isLength"),a=t("../lang/isString"),l=t("../object/keysIn"),c=Object.prototype.hasOwnProperty;e.exports=function(t){for(var e=l(t),u=e.length,h=u&&t.length,d=!!h&&r(h)&&(o(t)||n(t)||a(t)),p=-1,f=[];++p<u;){var m=e[p];(d&&s(m,h)||c.call(t,m))&&f.push(m)}return f}},{"../lang/isArguments":29,"../lang/isArray":30,"../lang/isString":35,"../object/keysIn":39,"./isIndex":23,"./isLength":25}],28:[function(t,e){var n=t("../lang/isObject"),o=t("../lang/isString"),s=t("../support");e.exports=function(t){if(s.unindexedChars&&o(t)){for(var e=-1,r=t.length,a=Object(t);++e<r;)a[e]=t.charAt(e);return a}return n(t)?t:Object(t)}},{"../lang/isObject":33,"../lang/isString":35,"../support":41}],29:[function(t,e){var n=t("../internal/isArrayLike"),o=t("../internal/isObjectLike"),s=Object.prototype,r=s.hasOwnProperty,a=s.propertyIsEnumerable;e.exports=function(t){return o(t)&&n(t)&&r.call(t,"callee")&&!a.call(t,"callee")}},{"../internal/isArrayLike":21,"../internal/isObjectLike":26}],30:[function(t,e){var n=t("../internal/getNative"),o=t("../internal/isLength"),s=t("../internal/isObjectLike"),r=Object.prototype.toString,a=n(Array,"isArray");e.exports=a||function(t){return s(t)&&o(t.length)&&"[object Array]"==r.call(t)}},{"../internal/getNative":20,"../internal/isLength":25,"../internal/isObjectLike":26}],31:[function(t,e){var n=t("./isObject"),o=Object.prototype.toString;e.exports=function(t){return n(t)&&"[object Function]"==o.call(t)}},{"./isObject":33}],32:[function(t,e){var n=t("./isFunction"),o=t("../internal/isHostObject"),s=t("../internal/isObjectLike"),r=/^\[object .+?Constructor\]$/,a=Object.prototype,l=Function.prototype.toString,c=a.hasOwnProperty,u=RegExp("^"+l.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(t){return null!=t&&(n(t)?u.test(l.call(t)):s(t)&&(o(t)?u:r).test(t))}}
13,{"../internal/isHostObject":22,"../internal/isObjectLike":26,"./isFunction":31}],33:[function(t,e){e.exports=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}},{}],34:[function(t,e){var n=t("../internal/baseForIn"),o=t("./isArguments"),s=t("../internal/isHostObject"),r=t("../internal/isObjectLike"),a=t("../support"),l=Object.prototype,c=l.hasOwnProperty,u=l.toString;e.exports=function(t){var e,l;return!(!r(t)||"[object Object]"!=u.call(t)||s(t)||o(t))&&(!!c.call(t,"constructor")||"function"!=typeof(e=t.constructor)||e instanceof e)&&(a.ownLast?(n(t,function(t,e,n){return l=c.call(n,e),!1}),!1!==l):(n(t,function(t,e){l=e}),void 0===l||c.call(t,l)))}},{"../internal/baseForIn":12,"../internal/isHostObject":22,"../internal/isObjectLike":26,"../support":41,"./isArguments":29}],35:[function(t,e){var n=t("../internal/isObjectLike"),o=Object.prototype.toString;e.exports=function(t){return"string"==typeof t||n(t)&&"[object String]"==o.call(t)}},{"../internal/isObjectLike":26}],36:[function(t,e){var n=t("../internal/isLength"),o=t("../internal/isObjectLike"),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;var r=Object.prototype.toString;e.exports=function(t){return o(t)&&n(t.length)&&!!s[r.call(t)]}},{"../internal/isLength":25,"../internal/isObjectLike":26}],37:[function(t,e){var n=t("../internal/baseCopy"),o=t("../object/keysIn");e.exports=function(t){return n(t,o(t))}},{"../internal/baseCopy":10,"../object/keysIn":39}],38:[function(t,e){var n=t("../internal/getNative"),o=t("../internal/isArrayLike"),s=t("../lang/isObject"),r=t("../internal/shimKeys"),a=t("../support"),l=n(Object,"keys");e.exports=l?function(t){var e=null==t?void 0:t.constructor;return"function"==typeof e&&e.prototype===t||("function"==typeof t?a.enumPrototypes:o(t))?r(t):s(t)?l(t):[]}:r},{"../internal/getNative":20,"../internal/isArrayLike":21,"../internal/shimKeys":27,"../lang/isObject":33,"../support":41}],39:[function(t,e){var n=t("../internal/arrayEach"),o=t("../lang/isArguments"),s=t("../lang/isArray"),r=t("../lang/isFunction"),a=t("../internal/isIndex"),l=t("../internal/isLength"),c=t("../lang/isObject"),u=t("../lang/isString"),h=t("../support"),d="[object Error]",p="[object Object]",f="[object String]",m=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],g=Error.prototype,v=Object.prototype,y=String.prototype,_=v.hasOwnProperty,b=v.toString,w={};w["[object Array]"]=w["[object Date]"]=w["[object Number]"]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},w["[object Boolean]"]=w[f]={constructor:!0,toString:!0,valueOf:!0},w[d]=w["[object Function]"]=w["[object RegExp]"]={constructor:!0,toString:!0},w[p]={constructor:!0},n(m,function(t){for(var e in w)if(_.call(w,e)){var n=w[e];n[t]=_.call(n,t)}}),e.exports=function(t){if(null==t)return[];c(t)||(t=Object(t));var e=t.length;e=e&&l(e)&&(s(t)||o(t)||u(t))&&e||0;for(var n=t.constructor,x=-1,T=r(n)&&n.prototype||v,k=T===t,C=Array(e),j=e>0,S=h.enumErrorProps&&(t===g||t instanceof Error),P=h.enumPrototypes&&r(t);++x<e;)C[x]=x+"";for(var E in t)P&&"prototype"==E||S&&("message"==E||"name"==E)||j&&a(E,e)||"constructor"==E&&(k||!_.call(t,E))||C.push(E);if(h.nonEnumShadows&&t!==v){var O=t===y?f:t===g?d:b.call(t),M=w[O]||w[p];for(O==p&&(T=v),e=m.length;e--;){var A=M[E=m[e]];k&&A||(A?!_.call(t,E):t[E]===T[E])||C.push(E)}}return C}},{"../internal/arrayEach":9,"../internal/isIndex":23,"../internal/isLength":25,"../lang/isArguments":29,"../lang/isArray":30,"../lang/isFunction":31,"../lang/isObject":33,"../lang/isString":35,"../support":41}],40:[function(t,e){var n=t("../internal/baseMerge"),o=t("../internal/createAssigner")(n);e.exports=o},{"../internal/baseMerge":13,"../internal/createAssigner":17}],41:[function(t,e){var n=Array.prototype,o=Error.prototype,s=Object.prototype.propertyIsEnumerable,r=n.splice,a={};(function(t){var e=function(){this.x=t},n={0:t,length:t},l=[];for(var c in e.prototype={valueOf:t,y:t},new e)l.push(c);a.enumErrorProps=s.call(o,"message")||s.call(o,"name"),a.enumPrototypes=s.call(e,"prototype"),a.nonEnumShadows=!/valueOf/.test(l),a.ownLast="x"!=l[0],a.spliceObjects=(r.call(n,0,1),!n[0]),a.unindexedChars="x"+Object("x")[0]!="xx"})(1,0),e.exports=a},{}],42:[function(t,e){e.exports=function(t){return t}},{}],43:[function(t,e){"use strict";var n=t("object-keys");e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test");
13if("string"==typeof e)return!1;for(e in t[e]=42,t)return!1;if(0!==n(t).length||"function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(t,e);if(42!==s.value||!0!==s.enumerable)return!1}return!0}},{"object-keys":50}],44:[function(t,e){"use strict";var n=t("object-keys"),o=t("function-bind"),s=t("./hasSymbols")(),r=Object,a=o.call(Function.call,Array.prototype.push),l=o.call(Function.call,Object.prototype.propertyIsEnumerable);e.exports=function(t){if(!(null!=t))throw TypeError("target must be an object");var e,o,c,u,h,d,p,f=r(t);for(e=1;e<arguments.length;++e){if(o=r(arguments[e]),u=n(o),s&&Object.getOwnPropertySymbols)for(h=Object.getOwnPropertySymbols(o),c=0;c<h.length;++c)p=h[c],l(o,p)&&a(u,p);for(c=0;c<u.length;++c)d=o[p=u[c]],l(o,p)&&(f[p]=d)}return f}},{"./hasSymbols":43,"function-bind":49,"object-keys":50}],45:[function(t,e){"use strict";var n=t("define-properties"),o=t("./implementation");n(o,{implementation:o,getPolyfill:t("./polyfill"),shim:t("./shim")}),e.exports=o},{"./implementation":44,"./polyfill":52,"./shim":53,"define-properties":46}],46:[function(t,e){"use strict";var n=t("object-keys"),o=t("foreach"),s="function"==typeof Symbol&&"symbol"==typeof Symbol(),r=Object.prototype.toString,a=Object.defineProperty&&function(){var t={};try{for(var e in Object.defineProperty(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),l=function(t,e,n,o){(!(e in t)||"function"==typeof o&&"[object Function]"===r.call(o)&&o())&&(a?Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},c=function(t,e){var r=arguments.length>2?arguments[2]:{},a=n(e);s&&(a=a.concat(Object.getOwnPropertySymbols(e))),o(a,function(n){l(t,n,e[n],r[n])})};c.supportsDescriptors=!!a,e.exports=c},{foreach:47,"object-keys":50}],47:[function(t,e){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=function(t,e,s){if("[object Function]"!==o.call(e))throw TypeError("iterator must be a function");var r=t.length;if(r===+r)for(var a=0;r>a;a++)e.call(s,t[a],a,t);else for(var l in t)n.call(t,l)&&e.call(s,t[l],l,t)}},{}],48:[function(t,e){var n=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==o.call(e))throw TypeError("Function.prototype.bind called on incompatible "+e);for(var s,r=n.call(arguments,1),a=Math.max(0,e.length-r.length),l=[],c=0;a>c;c++)l.push("$"+c);if(s=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var o=e.apply(this,r.concat(n.call(arguments)));return Object(o)===o?o:this}return e.apply(t,r.concat(n.call(arguments)))}),e.prototype){var u=function(){};u.prototype=e.prototype,s.prototype=new u,u.prototype=null}return s}},{}],49:[function(t,e){var n=t("./implementation");e.exports=Function.prototype.bind||n},{"./implementation":48}],50:[function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=Array.prototype.slice,r=t("./isArguments"),a=!({toString:null}).propertyIsEnumerable("toString"),l=(function(){}).propertyIsEnumerable("prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(t){var e=t.constructor;return e&&e.prototype===t},h={$console:!0,$frame:!0,$frameElement:!0,$frames:!0,$parent:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!h["$"+t]&&n.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{u(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),p=function(t){if("undefined"==typeof window||!d)return u(t);try{return u(t)}catch(t){return!1}},f=function(t){var e=null!==t&&"object"==typeof t,s="[object Function]"===o.call(t),u=r(t),h=e&&"[object String]"===o.call(t),d=[];if(!e&&!s&&!u)throw TypeError("Object.keys called on a non-object");var f=l&&s;if(h&&t.length>
130&&!n.call(t,0))for(var m=0;m<t.length;++m)d.push(String(m));if(u&&t.length>0)for(var g=0;g<t.length;++g)d.push(String(g));else for(var v in t)f&&"prototype"===v||!n.call(t,v)||d.push(String(v));if(a)for(var y=p(t),_=0;_<c.length;++_)y&&"constructor"===c[_]||!n.call(t,c[_])||d.push(c[_]);return d};f.shim=function(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var t=Object.keys;Object.keys=function(e){return t(r(e)?s.call(e):e)}}}else Object.keys=f;return Object.keys||f},e.exports=f},{"./isArguments":51}],51:[function(t,e){"use strict";var n=Object.prototype.toString;e.exports=function(t){var e=n.call(t),o="[object Arguments]"===e;return o||(o="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===n.call(t.callee)),o}},{}],52:[function(t,e){"use strict";var n=t("./implementation"),o=function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),n={},o=0;o<e.length;++o)n[e[o]]=e[o];var s=Object.assign({},n),r="";for(var a in s)r+=a;return t!==r},s=function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch(e){return"y"===t[1]}};e.exports=function(){return Object.assign?o()?n:s()?n:Object.assign:n}},{"./implementation":44}],53:[function(t,e){"use strict";var n=t("define-properties"),o=t("./polyfill");e.exports=function(){var t=o();return n(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t}},{"./polyfill":52,"define-properties":46}],54:[function(t,e){e.exports=function(t,e){var n,o=null;try{n=JSON.parse(t,e)}catch(t){o=t}return[o,n]}},{}],55:[function(t,e){e.exports=function(t){for(var e="",n=0;n<arguments.length;n++)e+=t[n].replace(/\n\r?\s*/g,"")+(arguments[n+1]||"");return e}},{}],56:[function(t,e){"use strict";function n(t,e,n){var o=t;return l(e)?(n=e,"string"==typeof t&&(o={uri:t})):o=u(e,{uri:t}),o.callback=n,o}function o(t,e,o){return s(e=n(t,e,o))}function s(t){function e(t){clearTimeout(d),t instanceof Error||(t=Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,s(t,r)}function n(){if(!h){clearTimeout(d);var e,n=r,o=null;0!==(e=t.useXDR&&void 0===l.status?200:1223===l.status?204:l.status)?(n={body:function(){var t=void 0;if(l.response?t=l.response:"text"!==l.responseType&&l.responseType||(t=l.responseText||l.responseXML),y)try{t=JSON.parse(t)}catch(t){}return t}(),statusCode:e,method:f,headers:{},url:p,rawRequest:l},l.getAllResponseHeaders&&(n.headers=c(l.getAllResponseHeaders()))):o=Error("Internal XMLHttpRequest Error"),s(o,n,n.body)}}var s=t.callback;if(void 0===s)throw Error("callback argument missing");s=a(s);var r={body:void 0,headers:{},statusCode:0,method:f,url:p,rawRequest:l},l=t.xhr||null;l||(l=t.cors||t.useXDR?new o.XDomainRequest:new o.XMLHttpRequest);var u,h,d,p=l.url=t.uri||t.url,f=l.method=t.method||"GET",m=t.body||t.data||null,g=l.headers=t.headers||{},v=!!t.sync,y=!1;if("json"in t&&(y=!0,g.accept||g.Accept||(g.Accept="application/json"),"GET"!==f&&"HEAD"!==f&&(g["content-type"]||g["Content-Type"]||(g["Content-Type"]="application/json"),m=JSON.stringify(t.json))),l.onreadystatechange=function(){4===l.readyState&&n()},l.onload=n,l.onerror=e,l.onprogress=function(){},l.ontimeout=e,l.open(f,p,!v,t.username,t.password),v||(l.withCredentials=!!t.withCredentials),!v&&t.timeout>0&&(d=setTimeout(function(){h=!0,l.abort("timeout");var t=Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",e(t)},t.timeout)),l.setRequestHeader)for(u in g)g.hasOwnProperty(u)&&l.setRequestHeader(u,g[u]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(l.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(l),l.send(m),l}var r=t("global/window"),a=t("once"),l=t("is-function"),c=t("parse-headers"),u=t("xtend");e.exports=o,o.XMLHttpRequest=r.XMLHttpRequest||function(){},o.XDomainRequest="withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:r.XDomainRequest,function(t,e){for(var n=0;n<t.length;n++)e(t[n])}(["get","put","post","patch","head","delete"],function(t){o["delete"===t?"del":t]=function(e,o,r){return(o=n(e,o,r)).method=t.toUpperCase(),s(o)}})},{"global/window":2,"is-function":57,once:58,"parse-headers":61,xtend:62}],57:[function(t,e){e.exports=function(t){var e=n.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var n=Object.prototype.toString},{}],58:[function(t,e){function n(t){var e=!1;return function(){return e?void 0:(e=!0,t.apply(this,arguments))}}e.exports=n,n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0})})},{}],59:[function(t,e){var n=t("is-function");e.exports=function(t,e,r){if(!n(e))throw TypeError("iterator must be a function");arguments.length<3&&(r=this),"[object Array]"===o.call(t)?function(t,e,n){for(var o=0,r=t.length;r>o;o++)s.call(t,o)&&e.call(n,t[o],o,t)}
13(t,e,r):"string"==typeof t?function(t,e,n){for(var o=0,s=t.length;s>o;o++)e.call(n,t.charAt(o),o,t)}(t,e,r):function(t,e,n){for(var o in t)s.call(t,o)&&e.call(n,t[o],o,t)}(t,e,r)};var o=Object.prototype.toString,s=Object.prototype.hasOwnProperty},{"is-function":57}],60:[function(t,e,n){(n=e.exports=function(t){return t.replace(/^\s*|\s*$/g,"")}).left=function(t){return t.replace(/^\s*/,"")},n.right=function(t){return t.replace(/\s*$/,"")}},{}],61:[function(t,e){var n=t("trim"),o=t("for-each");e.exports=function(t){if(!t)return{};var e={};return o(n(t).split("\n"),function(t){var o,s=t.indexOf(":"),r=n(t.slice(0,s)).toLowerCase(),a=n(t.slice(s+1));void 0===e[r]?e[r]=a:(o=e[r],"[object Array]"===Object.prototype.toString.call(o))?e[r].push(a):e[r]=[e[r],a]}),e}},{"for-each":59,trim:60}],62:[function(t,e){e.exports=function(){for(var t={},e=0;e<arguments.length;e++){var o=arguments[e];for(var s in o)n.call(o,s)&&(t[s]=o[s])}return t};var n=Object.prototype.hasOwnProperty},{}],63:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("./button.js")),r=o(t("./component.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-big-play-button"},e.prototype.handleClick=function(){this.player_.play()},e}(s.default);a.prototype.controlText_="Play Video",r.default.registerComponent("BigPlayButton",a),n.default=a,e.exports=n.default},{"./button.js":64,"./component.js":67}],64:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=s(t("./clickable-component.js")),a=s(t("./component")),l=(o(t("./utils/events.js")),t("./utils/fn.js")),c=s((o(l),t("./utils/log.js"))),u=(s(t("global/document")),t("object.assign")),h=s(u),d=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var t=arguments.length<=0||void 0===arguments[0]?"button":arguments[0],e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];e=h.default({className:this.buildCSSClass()},e),"button"!==t&&(c.default.warn("Creating a Button with an HTML element of "+t+" is deprecated; use ClickableComponent instead."),e=h.default({tabIndex:0},e),n=h.default({role:"button"},n)),n=h.default({type:"button","aria-live":"polite"},n);var o=a.default.prototype.createEl.call(this,t,e,n);return this.createControlTextEl(o),o},e.prototype.addChild=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=this.constructor.name;return c.default.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),a.default.prototype.addChild.call(this,t,e)},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which||t.prototype.handleKeyPress.call(this,e)},e}(r.default);a.default.registerComponent("Button",d),n.default=d,e.exports=n.default},{"./clickable-component.js":65,"./component":67,"./utils/events.js":144,"./utils/fn.js":145,"./utils/log.js":148,"global/document":1,"object.assign":45}],65:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=s(t("./component")),a=o(t("./utils/dom.js")),l=o(t("./utils/events.js")),c=o(t("./utils/fn.js")),u=s(t("./utils/log.js")),h=s(t("global/document")),d=s(t("object.assign")),p=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.emitTapEvents(),this.on("tap",this.handleClick),this.on("click",this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=arguments.length<=0||void 0===arguments[0]?"div":arguments[0],n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];n=d.default({className:this.buildCSSClass(),tabIndex:0},n),"button"===e&&u.default.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),o=d.default({role:"button","aria-live":"polite"},o);var s=t.prototype.createEl.call(this,e,n,o);return this.createControlTextEl(s),s},e.prototype.createControlTextEl=function(t){return this.controlTextEl_=a.createEl("span",{className:"vjs-control-text"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_),this.controlTextEl_},e.prototype.controlText=function(t){return t?(this.controlText_=t,this.controlTextEl_.innerHTML=this.localize(this.controlText_),this):this.controlText_||"Need Text"},e.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},e.prototype.addChild=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return t.prototype.addChild.call(this,e,n)},e.prototype.enable=function(){return this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),this},e.prototype.disable=function(){return this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),this},e.prototype.handleClick=function(){},e.prototype.handleFocus=function(){l.on(h.default,"keydown",c.bind(this,this.handleKeyPress))},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which?(e.preventDefault(),this.handleClick(e)):t.prototype.handleKeyPress&&t.prototype.handleKeyPress.call(this,e)},e.prototype.handleBlur=function(){l.off(h.default,"keydown",c.bind(this,this.handleKeyPress))},e}(r.default);r.default.registerComponent("ClickableComponent",p),n.default=p,e.exports=n.default},{"./component":67,"./utils/dom.js":143,"./utils/events.js":144,"./ut
13ils/fn.js":145,"./utils/log.js":148,"global/document":1,"object.assign":45}],66:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("./button")),r=o(t("./component")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.controlText(o&&o.controlText||this.localize("Close"))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.trigger({type:"close",bubbles:!1})},e}(s.default);r.default.registerComponent("CloseButton",a),n.default=a,e.exports=n.default},{"./button":64,"./component":67}],67:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=s(t("global/window")),a=o(t("./utils/dom.js")),l=o(t("./utils/fn.js")),c=o(t("./utils/guid.js")),u=o(t("./utils/events.js")),h=s(t("./utils/log.js")),d=s(t("./utils/to-title-case.js")),p=s(t("object.assign")),f=s(t("./utils/merge-options.js")),m=function(){function t(e,n,o){if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),this.player_=!e&&this.play?e=this:e,this.options_=f.default({},this.options_),n=this.options_=f.default(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){var s=e&&e.id&&e.id()||"no_player";this.id_=s+"_component_"+c.newGUID()}this.name_=n.name||null,n.el?this.el_=n.el:!1!==n.createEl&&(this.el_=this.createEl()),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==n.initChildren&&this.initChildren(),this.ready(o),!1!==n.reportTouchActivity&&this.enableTouchActivity()}return t.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),a.removeElData(this.el_),this.el_=null},t.prototype.player=function(){return this.player_},t.prototype.options=function(t){return h.default.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t&&(this.options_=f.default(this.options_,t)),this.options_},t.prototype.el=function(){return this.el_},t.prototype.createEl=function(t,e,n){return a.createEl(t,e,n)},t.prototype.localize=function(t){var e=this.player_.language&&this.player_.language(),n=this.player_.languages&&this.player_.languages();if(!e||!n)return t;var o=n[e];if(o&&o[t])return o[t];var s=n[e.split("-")[0]];return s&&s[t]?s[t]:t},t.prototype.contentEl=function(){return this.contentEl_||this.el_},t.prototype.id=function(){return this.id_},t.prototype.name=function(){return this.name_},t.prototype.children=function(){return this.children_},t.prototype.getChildById=function(t){return this.childIndex_[t]},t.prototype.getChild=function(t){return this.childNameIndex_[t]},t.prototype.addChild=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?this.children_.length:arguments[2],s=void 0,r=void 0;if("string"==typeof e){r=e,n||(n={}),!0===n&&(h.default.warn("Initializing a child component with `true` is deprecated. Children should be defined in an array when possible, but if necessary use an object instead of `true`."),n={});var a=n.componentClass||d.default(r);n.name=r;var l=t.getComponent(a);if(!l)throw Error("Component "+a+" does not exist");if("function"!=typeof l)return null;s=new l(this.player_||this,n)}else s=e;if(this.children_.splice(o,0,s),"function"==typeof s.id&&(this.childIndex_[s.id()]=s),(r=r||s.name&&s.name())&&(this.childNameIndex_[r]=s),"function"==typeof s.el&&s.el()){var c=this.contentEl().children[o]||null;this.contentEl().insertBefore(s.el(),c)}return s},t.prototype.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===t){e=!0,this.children_.splice(n,1);break}if(e){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var o=t.el();o&&o.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},t.prototype.initChildren=function(){var e,n,o,s=this,r=this.options_.children;r&&(e=s.options_,n=void 0,o=t.getComponent("Tech"),(n=Array.isArray(r)?r:Object.keys(r)).concat(Object.keys(s.options_).filter(function(t){return!n.some(function(e){return"string"==typeof e?t===e:t===e.name})})).map(function(t){var e=void 0,n=void 0;return"string"==typeof t?n=r[e=t]||s.options_[e]||{}:(e=t.name,n=t),{name:e,opts:n}}
13).filter(function(e){var n=t.getComponent(e.opts.componentClass||d.default(e.name));return n&&!o.isTech(n)}).forEach(function(t){var n=t.name,o=t.opts;if(void 0!==e[n]&&(o=e[n]),!1!==o){!0===o&&(o={}),o.playerOptions=s.options_.playerOptions;var r=s.addChild(n,o);r&&(s[n]=r)}}))},t.prototype.buildCSSClass=function(){return""},t.prototype.on=function(t,e,n){var o,s,r,a=this;return"string"==typeof t||Array.isArray(t)?u.on(this.el_,t,l.bind(this,e)):(o=l.bind(a,n),(s=function(){return a.off(t,e,o)}).guid=o.guid,a.on("dispose",s),(r=function(){return a.off("dispose",s)}).guid=o.guid,t.nodeName?(u.on(t,e,o),u.on(t,"dispose",r)):"function"==typeof t.on&&(t.on(e,o),t.on("dispose",r))),this},t.prototype.off=function(t,e,n){if(!t||"string"==typeof t||Array.isArray(t))u.off(this.el_,t,e);else{var o=l.bind(this,n);this.off("dispose",o),t.nodeName?(u.off(t,e,o),u.off(t,"dispose",o)):(t.off(e,o),t.off("dispose",o))}return this},t.prototype.one=function(t,e,n){var o,s,r=this,a=arguments;return"string"==typeof t||Array.isArray(t)?u.one(this.el_,t,l.bind(this,e)):(o=l.bind(r,n),(s=function n(){r.off(t,e,n),o.apply(null,a)}).guid=o.guid,r.on(t,e,s)),this},t.prototype.trigger=function(t,e){return u.trigger(this.el_,t,e),this},t.prototype.ready=function(t){var e=!(arguments.length<=1)&&void 0!==arguments[1]&&arguments[1];return t&&(this.isReady_?e?t.call(this):this.setTimeout(t,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(t))),this},t.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},t.prototype.$=function(t,e){return a.$(t,e||this.contentEl())},t.prototype.$$=function(t,e){return a.$$(t,e||this.contentEl())},t.prototype.hasClass=function(t){return a.hasElClass(this.el_,t)},t.prototype.addClass=function(t){return a.addElClass(this.el_,t),this},t.prototype.removeClass=function(t){return a.removeElClass(this.el_,t),this},t.prototype.toggleClass=function(t,e){return a.toggleElClass(this.el_,t,e),this},t.prototype.show=function(){return this.removeClass("vjs-hidden"),this},t.prototype.hide=function(){return this.addClass("vjs-hidden"),this},t.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},t.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},t.prototype.width=function(t,e){return this.dimension("width",t,e)},t.prototype.height=function(t,e){return this.dimension("height",t,e)},t.prototype.dimensions=function(t,e){return this.width(t,!0).height(e)},t.prototype.dimension=function(t,e,n){if(void 0!==e)return(null===e||e!=e)&&(e=0),this.el_.style[t]=-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?e:"auto"===e?"":e+"px",n||this.trigger("resize"),this;if(!this.el_)return 0;var o=this.el_.style[t],s=o.indexOf("px");return -1!==s?parseInt(o.slice(0,s),10):parseInt(this.el_["offset"+d.default(t)],10)},t.prototype.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw Error("currentDimension only accepts width or height value");if("function"==typeof r.default.getComputedStyle){var n=r.default.getComputedStyle(this.el_);e=n.getPropertyValue(t)||n[t]}else if(this.el_.currentStyle){var o="offset"+d.default(t);e=this.el_[o]}return parseFloat(e)},t.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.prototype.currentWidth=function(){return this.currentDimension("width")},t.prototype.currentHeight=function(){return this.currentDimension("height")},t.prototype.emitTapEvents=function(){var t=0,e=null,n=void 0;this.on("touchstart",function(o){1===o.touches.length&&(e=p.default({},o.touches[0]),t=(new Date).getTime(),n=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)n=!1;else if(e){var o=t.touches[0].pageX-e.pageX,s=t.touches[0].pageY-e.pageY;Math.sqrt(o*o+s*s)>10&&(n=!1)}});var o=function(){n=!1};this.on("touchleave",o),this.on("touchcancel",o),this.on("touchend",function(o){e=null,!0===n&&200>(new Date).getTime()-t&&(o.preventDefault(),this.trigger("tap"))})},t.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t=l.bind(this.player(),this.player().reportUserActivity),e=void 0;this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var n=function(){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.prototype.setTimeout=function(t,e){t=l.bind(this,t);var n=r.default.setTimeout(t,e),o=function(){this.clearTimeout(n)};return o.guid="vjs-timeout-"+n,this.on("dispose",o),n},t.prototype.clearTimeout=function(t){r.default.clearTimeout(t);var e=function(){};return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},t.prototype.setInterval=function(t,e){t=l.bind(this,t);var n=r.default.setInterval(t,e),o=function(){this.clearInterval(n)};return o.guid="vjs-interval-"+n,this.on("dispose",o),n},t.prototype.clearInterval=function(t){r.default.clearInterval(t);var e=function(){};return e.guid="vjs-interval-"+t,this.off("dispose",e),t},t.registerComponent=function(e,n){return t.components_||(t.components_={}),t.components_[e]=n,n},t.getComponent=function(e){return t.components_&&t.components_[e]?t.components_[e]:r.default&&r.default.videojs&&r.default.videojs[e]?(h.default.warn("The "+e+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),r.default.videojs[e]):void 0},t.extend=function(e){e=e||{},h.default.warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var n=e.init||e.init||this.prototype.init||this.prototype.init||function(){},o=function(){n.apply(this,arguments)};for(var s in o.prototype=Object.create(this.prototype),o.prototype.constructor=o,o.extend=t.extend,e)e.hasOwnProperty(s)&&(o.prototype[s]=e[s]);return o},t}();m.registerComponent("Component",m),n.default=m,e.exports=n.default}
13,{"./utils/dom.js":143,"./utils/events.js":144,"./utils/fn.js":145,"./utils/guid.js":147,"./utils/log.js":148,"./utils/merge-options.js":149,"./utils/to-title-case.js":152,"global/window":2,"object.assign":45}],68:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../track-button.js")),r=o(t("../../component.js")),a=o((function(t){if(!t||!t.__esModule){var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}}(t("../../utils/fn.js")),t("./audio-track-menu-item.js"))),l=function(t){function e(n){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),o.tracks=n.audioTracks&&n.audioTracks(),t.call(this,n,o),this.el_.setAttribute("aria-label","Audio Menu")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},e.prototype.createItems=function(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],e=this.player_.audioTracks&&this.player_.audioTracks();if(!e)return t;for(var n=0;n<e.length;n++){var o=e[n];t.push(new a.default(this.player_,{selectable:!0,track:o}))}return t},e}(s.default);r.default.registerComponent("AudioTrackButton",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../utils/fn.js":145,"../track-button.js":98,"./audio-track-menu-item.js":69}],69:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../../menu/menu-item.js")),r=o(t("../../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/fn.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var s,r=o.track,l=n.audioTracks();o.label=r.label||r.language||"Unknown",o.selected=r.enabled,t.call(this,n,o),this.track=r,l&&(s=a.bind(this,this.handleTracksChange),l.addEventListener("change",s),this.on("dispose",function(){l.removeEventListener("change",s)}))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(e){var n=this.player_.audioTracks();if(t.prototype.handleClick.call(this,e),n)for(var o=0;o<n.length;o++){var s=n[o];s===this.track&&(s.enabled=!0)}},e.prototype.handleTracksChange=function(){this.selected(this.track.enabled)},e}(s.default);r.default.registerComponent("AudioTrackMenuItem",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../menu/menu-item.js":110,"../../utils/fn.js":145}],70:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../component.js")),r=(o(t("./play-toggle.js")),t("./time-controls/current-time-display.js")),a=(o(r),t("./time-controls/duration-display.js")),l=(o(a),t("./time-controls/time-divider.js")),c=(o(l),t("./time-controls/remaining-time-display.js")),u=(o(c),t("./live-display.js")),h=(o(u),t("./progress-control/progress-control.js")),d=(o(h),t("./fullscreen-toggle.js")),p=(o(d),t("./volume-control/volume-control.js")),f=(o(p),t("./volume-menu-button.js")),m=(o(f),t("./mute-toggle.js")),g=(o(m),t("./text-track-controls/chapters-button.js")),v=(o(g),t("./text-track-controls/descriptions-button.js")),y=(o(v),t("./text-track-controls/subtitles-button.js")),_=(o(y),t("./text-track-controls/captions-button.js")),b=(o(_),t("./audio-track-controls/audio-track-button.js")),w=(o(b),t("./playback-rate-menu/playback-rate-menu-button.js")),x=(o(w),t("./spacer-control
13s/custom-control-spacer.js")),T=(o(x),function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},e}(s.default));T.prototype.options_={loadEvent:"play",children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]},s.default.registerComponent("ControlBar",T),n.default=T,e.exports=n.default},{"../component.js":67,"./audio-track-controls/audio-track-button.js":68,"./fullscreen-toggle.js":71,"./live-display.js":72,"./mute-toggle.js":73,"./play-toggle.js":74,"./playback-rate-menu/playback-rate-menu-button.js":75,"./progress-control/progress-control.js":80,"./spacer-controls/custom-control-spacer.js":83,"./text-track-controls/captions-button.js":86,"./text-track-controls/chapters-button.js":87,"./text-track-controls/descriptions-button.js":89,"./text-track-controls/subtitles-button.js":91,"./time-controls/current-time-display.js":94,"./time-controls/duration-display.js":95,"./time-controls/remaining-time-display.js":96,"./time-controls/time-divider.js":97,"./volume-control/volume-control.js":100,"./volume-menu-button.js":102}],71:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../button.js")),r=o(t("../component.js")),a=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.isFullscreen()?(this.player_.exitFullscreen(),this.controlText("Fullscreen")):(this.player_.requestFullscreen(),this.controlText("Non-Fullscreen"))},e}(s.default);a.prototype.controlText_="Fullscreen",r.default.registerComponent("FullscreenToggle",a),n.default=a,e.exports=n.default},{"../button.js":64,"../component.js":67}],72:[function(t,e,n){"use strict";n.__esModule=!0;var o,s=(o=t("../component"))&&o.__esModule?o:{default:o},r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/dom.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.updateShowing(),this.on(this.player(),"durationchange",this.updateShowing)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=r.createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"</span>"+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateShowing=function(){this.player().duration()===1/0?this.show():this.hide()},e}(s.default);s.default.registerComponent("LiveDisplay",a),n.default=a,e.exports=n.default},{"../component":67,"../utils/dom.js":143}],73:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../button")),r=o(t("../component")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/dom.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"volumechange",this.update),n.tech_&&!1===n.tech_.featuresVolumeControl&&this.addClass("vjs-hidden"),this.on(n,"loadstart",function(){this.update(),!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.muted(!this.player_.muted())},e.prototype.update=function(){var t=this.player_.volume(),e=3;0===t||this.player_.muted()?e=0:.33>t?e=1:.67>t&&(e=2);var n=this.player_.muted()?"Unmute":"Mute";this.controlText()!==n&&this.controlText(n);for(var o=0;4>o;o++)a.removeElClass(this.el_,"vjs-vol-"+o);a.addElClass(this.el_,"vjs-vol-"+e)},e}(s.default);l.prototype.controlText_="Mute",r.default.registerComponent("MuteToggle",l),n.default=l,e.exports=n.default},{"../button":64,"../component":67,"../utils/dom.js":143}],74:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../button.js")),r=o(t("../component.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"play",this.handlePlay),this.on(n,"pause",this.handlePause)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handlePlay=function(){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},e.prototype.handlePause=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},e}(s.default);a.prototype.controlText_="Play",r.default.registerComponent("PlayToggle",a),n.default=a,e.exports=n.default},{"../button.js":64,"../component.js":67}],75:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../../menu/menu-button.js")),r=o(t("../../menu/menu.js")),a=o(t("./playback-rate-menu-item.js")),l=o(t("../../component.js")),c=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/dom.js")),u=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.updateVisibility(),this.updateLabel(),this.on(n,"loadstart",this.updateVisibility),this.on(n,"ratechange",this.updateLabel)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelEl_=c.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),e.appendChild(this.labelEl_),e},e.prototype.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},e.prototype.createMenu=function(){var t=new r.default(this.player()),e=this.playbackRates();if(e)for(var n=e.length-1;n>=0;n--)t.addChild(new a.default(this.player(),{rate:e[n]+"x"}));return t},e.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},e.prototype.handleClick=function(){for(var t=this.player().playbackRate(),e=this.playbackRates(),n=e[0],o=0;o<e.length;o++)if(e[o]>t){n=e[o];break}this.player().playbackRate(n)},e.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},e.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},e.prototype.updateVisibility=function(){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},e.prototype.updateLabel=function(){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},e}(s.default);u.prototype.controlText_="Playback Rate",l.default.registerComponent("PlaybackRateMenuButton",u),n.default=u,e.exports=n.default},{"../../component.js":67,"../../menu/menu-button.js":109,"../../menu/menu.js":111,"../../utils/dom.js":143,"./playback-rate-menu-item.js":76}],76:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../../menu/menu-item.js")),r=o(t("../../component.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var s=o.rate,r=parseFloat(s,10);o.label=s,o.selected=1===r,t.call(this,n,o),this.label=s,this.rate=r,this.on(n,"ratechange",this.update)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},e.prototype.update=function(){this.selected(this.player().playbackRate()===this.rate)},e}(s.default);a.prototype.contentElType="button",r.default.registerComponent("PlaybackRateMenuItem",a),n.default=a,e.exports=n.default},{"../../component.js":67,"../../menu/menu-item.js":110}
13],77:[function(t,e,n){"use strict";n.__esModule=!0;var o,s=(o=t("../../component.js"))&&o.__esModule?o:{default:o},r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/dom.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"progress",this.update)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},e.prototype.update=function(){var t=this.player_.buffered(),e=this.player_.duration(),n=this.player_.bufferedEnd(),o=this.el_.children,s=function(t,e){var n=t/e||0;return 100*(n>=1?1:n)+"%"};this.el_.style.width=s(n,e);for(var a=0;a<t.length;a++){var l=t.start(a),c=t.end(a),u=o[a];u||(u=this.el_.appendChild(r.createEl())),u.style.left=s(l,n),u.style.width=s(c-l,n)}for(var a=o.length;a>t.length;a--)this.el_.removeChild(o[a-1])},e}(s.default);s.default.registerComponent("LoadProgressBar",a),n.default=a,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143}],78:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=s(t("global/window")),a=s(t("../../component.js")),l=o(t("../../utils/dom.js")),c=o(t("../../utils/fn.js")),u=s(t("../../utils/format-time.js")),h=s(t("lodash-compat/function/throttle")),d=function(t){function e(n,o){var s=this;(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),o.playerOptions&&o.playerOptions.controlBar&&o.playerOptions.controlBar.progressControl&&o.playerOptions.controlBar.progressControl.keepTooltipsInside&&(this.keepTooltipsInside=o.playerOptions.controlBar.progressControl.keepTooltipsInside),this.keepTooltipsInside&&(this.tooltip=l.createEl("div",{className:"vjs-time-tooltip"}),this.el().appendChild(this.tooltip),this.addClass("vjs-keep-tooltips-inside")),this.update(0,0),n.on("ready",function(){s.on(n.controlBar.progressControl.el(),"mousemove",h.default(c.bind(s,s.handleMouseMove),25))})}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},e.prototype.handleMouseMove=function(t){var e=this.player_.duration(),n=this.calculateDistance(t)*e,o=t.pageX-l.findElPosition(this.el().parentNode).left;this.update(n,o)},e.prototype.update=function(t,e){var n=u.default(t,this.player_.duration());if(this.el().style.left=e+"px",this.el().setAttribute("data-current-time",n),this.keepTooltipsInside){var o=this.clampPosition_(e),s=parseFloat(r.default.getComputedStyle(this.tooltip).width);this.tooltip.innerHTML=n,this.tooltip.style.right="-"+(s/2-(e-o+1))+"px"}},e.prototype.calculateDistance=function(t){return l.getPointerPosition(this.el().parentNode,t).x},e.prototype.clampPosition_=function(t){if(!this.keepTooltipsInside)return t;var e=parseFloat(r.default.getComputedStyle(this.player().el()).width),n=parseFloat(r.default.getComputedStyle(this.tooltip).width)/2,o=t;return n>t?o=Math.ceil(n):t>e-n&&(o=Math.floor(e-n)),o},e}(a.default);a.default.registerComponent("MouseTimeDisplay",d),n.default=d,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/fn.js":145,"../../utils/format-time.js":146,"global/window":2,"lodash-compat/function/throttle":7}],79:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=s(t("../../component.js")),a=o(t("../../utils/fn.js")),l=s((o(t("../../utils/dom.js")),t("../../utils/format-time.js"))),c=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.updateDataAttr(),this.on(n,"timeupdate",this.updateDataAttr),n.ready(a.bind(this,this.updateDataAttr)),o.playerOptions&&o.playerOptions.controlBar&&o.playerOptions.controlBar.progressControl&&o.playerOptions.controlBar.progressControl.keepTooltipsInside&&(this.keepTooltipsInside=o.playerOptions.controlBar.progressControl.keepTooltipsInside),this.keepTooltipsInside&&this.addClass("vjs-keep-tooltips-inside")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},e.prototype.updateDataAttr=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",l.default(t,this.player_.duration()))},e}(r.default);r.default.registerComponent("PlayProgressBar",c),n.default=c,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/fn.js":145,"../../utils/format-time.js":146}],80:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../../component.js")),r=(o(t("./seek-bar.js")),t("./mouse-time-display.js")),a=(o(r),function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},e}(s.default));a.prototype.options_={children:["seekBar"]},s.default.registerComponent("ProgressControl",a),n.default=a,e.exports=n.default},{"../../component.js":67,"./mouse-time-display.js":78,"./seek-bar.js":81}],81:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("global/window")),r=o(t("../../slider/slider.js")),a=o(t("../../component.js")),l=(o(t("./load-progress-bar.js")),t("./play-progress-bar.js")),c=(o(l),t("./tooltip-progress-bar.js")),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}((o(c),t("../../utils/fn.js"))),h=o(t("../../utils/format-time.js")),d=(o(t("object.assign")),function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"timeupdate",this.updateProgress),this.on(n,"ended",this.updateProgress),n.ready(u.bind(this,this.updateProgress)),o.playerOptions&&o.playerOptions.controlBar&&o.playerOptions.controlBar.progressControl&&o.playerOptions.controlBar.progressControl.keepTooltipsInside&&(this.keepTooltipsInside=o.playerOptions.controlBar.progressControl.keepTooltipsInside),this.keepTooltipsInside&&(this.tooltipProgressBar=this.addChild("TooltipProgressBar"))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},e.prototype.updateProgress=function(){if(this.updateAriaAttributes(this.el_),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_),this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var t=parseFloat(s.default.getComputedStyle(this.player().el()).width),e=parseFloat(s.default.getComputedStyle(this.tooltipProgressBar.tooltip).width),n=this.tooltipProgressBar.el().style;n.maxWidth=Math.floor(t-e/2)+"px",n.minWidth=Math.ceil(e/2)+"px",n.right="-"+e/2+"px"}},e.prototype.updateAriaAttributes=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();t.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),t.setAttribute("aria-valuetext",h.default(e,this.player_.duration()))},e.prototype.getPercent=function(){var t=this.player_.currentTime()/this.player_.duration();return t>=1?1:t},e.prototype.handleMouseDown=function(e){t.prototype.handleMouseDown.call(this,e),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause()},e.prototype.handleMouseMove=function(t){var e=this.calculateDistance(t)*this.player_.duration();e===this.player_.duration()&&(e-=.1),this.player_.currentTime(e)},e.prototype.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},e.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},e.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},e}(r.default));d.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},d.prototype.playerEvent="timeupdate",a.default.registerComponent("SeekBar",d),n.default=d,e.exports=n.default},{"../../component.js":67,"../../slider/slider.js":119,"../../utils/fn.js":145,"../../utils/format-time.js":146,"./load-progress-bar.js":77,"./play-progress-bar.js":79,"./tooltip-progress-bar.js":82,"global/window":2,"object.assign":45}],82:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=s(t("../../component.js")),a=o(t("../../utils/fn.js")),l=s((o(t("../../utils/dom.js")),t("../../utils/format-time.js"))),c=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.updateDataAttr(),this.on(n,"timeupdate",this.updateDataAttr),n.ready(a.bind(this,this.updateDataAttr))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:'<div class="vjs-time-tooltip"></div>
13\n <span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"});return this.tooltip=e.querySelector(".vjs-time-tooltip"),e},e.prototype.updateDataAttr=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),e=l.default(t,this.player_.duration());this.el_.setAttribute("data-current-time",e),this.tooltip.innerHTML=e},e}(r.default);r.default.registerComponent("TooltipProgressBar",c),n.default=c,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/fn.js":145,"../../utils/format-time.js":146}],83:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("./spacer.js")),r=o(t("../../component.js")),a=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML=" ",e},e}(s.default);r.default.registerComponent("CustomControlSpacer",a),n.default=a,e.exports=n.default},{"../../component.js":67,"./spacer.js":84}],84:[function(t,e,n){"use strict";n.__esModule=!0;var o,s=(o=t("../../component.js"))&&o.__esModule?o:{default:o},r=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e}(s.default);s.default.registerComponent("Spacer",r),n.default=r,e.exports=n.default},{"../../component.js":67}],85:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("./text-track-menu-item.js")),r=o(t("../../component.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),o.track={kind:o.kind,player:n,label:o.kind+" settings",selectable:!1,default:!1,mode:"disabled"},o.selectable=!1,t.call(this,n,o),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+o.kind+" settings dialog")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").el_.focus()},e}(s.default);r.default.registerComponent("CaptionSettingsMenuItem",a),n.default=a,e.exports=n.default},{"../../component.js":67,"./text-track-menu-item.js":93}],86:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("./text-track-button.js")),r=o(t("../../component.js")),a=o(t("./caption-settings-menu-item.js")),l=function(t){function e(n,o,s){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o,s),this.el_.setAttribute("aria-label","Captions Menu")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},e.prototype.update=function(){var e=2;t.prototype.update.call(this),this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(e=1),this.items&&this.items.length>e?this.show():this.hide()},e.prototype.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||e.push(new a.default(this.player_,{kind:this.kind_})),t.prototype.createItems.call(this,e)},e}(s.default);l.prototype.kind_="captions",l.prototype.controlText_="Captions",r.default.registerComponent("CaptionsButton",l),n.default=l,e.exports=n.default},{"../../component.js":67,"./caption-settings-menu-item.js":85,"./text-track-button.js":92}],87:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=s(t("./text-track-button.js")),a=s(t("../../component.js")),l=s(t("./text-track-menu-item.js")),c=s(t("./chapters-track-menu-item.js")),u=s(t("../../menu/menu.js")),h=o(t("../../utils/dom.js")),d=s((o(t("../../utils/fn.js")),t("../../utils/to-title-case.js"))),p=(s(t("global/window")),function(t){function e(n,o,s){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o,s),this.el_.setAttribute("aria-label","Chapters Menu")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},e.prototype.createItems=function(){var t=[],e=this.player_.textTracks();if(!e)return t;for(var n=0;n<e.length;n++){var o=e[n];o.kind===this.kind_&&t.push(new l.default(this.player_,{track:o}))}return t},e.prototype.createMenu=function(){for(var t=this,e=this.player_.textTracks()||[],n=void 0,o=this.items=[],s=0,r=e.length;r>s;s++){var a=e[s];if(a.kind===this.kind_){n=a;break}}var l=this.menu;if(void 0===l){l=new u.default(this.player_);var p=h.createEl("li",{className:"vjs-menu-title",innerHTML:d.default(this.kind_),tabIndex:-1});l.children_.unshift(p),h.insertElFirst(p,l.contentEl())}if(n&&null==n.cues){n.mode="hidden";var f=this.player_.remoteTextTrackEls().getTrackElementByTrack_(n);
13f&&f.addEventListener("load",function(){return t.update()})}if(n&&n.cues&&n.cues.length>0){for(var m=n.cues,g=void 0,s=0,v=m.length;v>s;s++){g=m[s];var y=new c.default(this.player_,{track:n,cue:g});o.push(y),l.addChild(y)}this.addChild(l)}return this.items.length>0&&this.show(),l},e}(r.default));p.prototype.kind_="chapters",p.prototype.controlText_="Chapters",a.default.registerComponent("ChaptersButton",p),n.default=p,e.exports=n.default},{"../../component.js":67,"../../menu/menu.js":111,"../../utils/dom.js":143,"../../utils/fn.js":145,"../../utils/to-title-case.js":152,"./chapters-track-menu-item.js":88,"./text-track-button.js":92,"./text-track-menu-item.js":93,"global/window":2}],88:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../../menu/menu-item.js")),r=o(t("../../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/fn.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var s=o.track,r=o.cue,l=n.currentTime();o.label=r.text,o.selected=r.startTime<=l&&l<r.endTime,t.call(this,n,o),this.track=s,this.cue=r,s.addEventListener("cuechange",a.bind(this,this.update))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(){t.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},e.prototype.update=function(){var t=this.cue,e=this.player_.currentTime();this.selected(t.startTime<=e&&e<t.endTime)},e}(s.default);r.default.registerComponent("ChaptersTrackMenuItem",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../menu/menu-item.js":110,"../../utils/fn.js":145}],89:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("./text-track-button.js")),r=o(t("../../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/fn.js")),l=function(t){function e(n,o,s){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o,s),this.el_.setAttribute("aria-label","Descriptions Menu");var r,l=n.textTracks();l&&(r=a.bind(this,this.handleTracksChange),l.addEventListener("change",r),this.on("dispose",function(){l.removeEventListener("change",r)}))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleTracksChange=function(){for(var t=this.player().textTracks(),e=!1,n=0,o=t.length;o>n;n++){var s=t[n];if(s.kind!==this.kind_&&"showing"===s.mode){e=!0;break}}e?this.disable():this.enable()},e.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},e}(s.default);l.prototype.kind_="descriptions",l.prototype.controlText_="Descriptions",r.default.registerComponent("DescriptionsButton",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../utils/fn.js":145,"./text-track-button.js":92}],90:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("./text-track-menu-item.js")),r=o(t("../../component.js")),a=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),o.track={kind:o.kind,player:n,label:o.kind+" off",default:!1,mode:"disabled"},o.selectable=!0,t.call(this,n,o),this.selected(!0)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleTracksChange=function(){for(var t=this.player().textTracks(),e=!0,n=0,o=t.length;o>n;n++){var s=t[n];if(s.kind===this.track.kind&&"showing"===s.mode){e=!1;break}}this.selected(e)},e}(s.default);r.default.registerComponent("OffTextTrackMenuItem",a),n.default=a,e.exports=n.default},{"../../component.js":67,"./text-track-menu-item.js":93}],91:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("./text-track-button.js")),r=o(t("../../component.js")),a=function(t){function e(n,o,s){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o,s),this.el_.setAttribute("aria-label","Subtitles Menu")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},e}(s.default);a.prototype.kind_="subtitles",a.prototype.controlText_="Subtitles",r.default.registerComponent("SubtitlesButton",a),n.default=a,e.exports=n.default},{"../../component.js":67,"./text-track-button.js":92}],92:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../track-button.js")),r=o(t("../../component.js")),a=o((function(t){if(!t||!t.__esMo
13dule){var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}}(t("../../utils/fn.js")),t("./text-track-menu-item.js"))),l=o(t("./off-text-track-menu-item.js")),c=function(t){function e(n){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),o.tracks=n.textTracks(),t.call(this,n,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createItems=function(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];t.push(new l.default(this.player_,{kind:this.kind_}));var e=this.player_.textTracks();if(!e)return t;for(var n=0;n<e.length;n++){var o=e[n];o.kind===this.kind_&&t.push(new a.default(this.player_,{selectable:!0,track:o}))}return t},e}(s.default);r.default.registerComponent("TextTrackButton",c),n.default=c,e.exports=n.default},{"../../component.js":67,"../../utils/fn.js":145,"../track-button.js":98,"./off-text-track-menu-item.js":90,"./text-track-menu-item.js":93}],93:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../../menu/menu-item.js")),r=o(t("../../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/fn.js")),l=o(t("global/window")),c=o(t("global/document")),u=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var s,r,u=o.track,h=n.textTracks();o.label=u.label||u.language||"Unknown",o.selected=u.default||"showing"===u.mode,t.call(this,n,o),this.track=u,h&&(s=a.bind(this,this.handleTracksChange),h.addEventListener("change",s),this.on("dispose",function(){h.removeEventListener("change",s)})),h&&void 0===h.onchange&&(r=void 0,this.on(["tap","click"],function(){if("object"!=typeof l.default.Event)try{r=new l.default.Event("change")}catch(t){}r||(r=c.default.createEvent("Event")).initEvent("change",!0,!0),h.dispatchEvent(r)}))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.handleClick=function(e){var n=this.track.kind,o=this.player_.textTracks();if(t.prototype.handleClick.call(this,e),o)for(var s=0;s<o.length;s++){var r=o[s];r.kind===n&&(r.mode=r===this.track?"showing":"disabled")}},e.prototype.handleTracksChange=function(){this.selected("showing"===this.track.mode)},e}(s.default);r.default.registerComponent("TextTrackMenuItem",u),n.default=u,e.exports=n.default},{"../../component.js":67,"../../menu/menu-item.js":110,"../../utils/fn.js":145,"global/document":1,"global/window":2}],94:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../../component.js")),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/dom.js")),a=o(t("../../utils/format-time.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"timeupdate",this.updateContent)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});return this.contentEl_=r.createEl("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>0:00'},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),e=this.localize("Current Time"),n=a.default(t,this.player_.duration());n!==this.formattedTime_&&(this.formattedTime_=n,this.contentEl_.innerHTML='<span class="vjs-control-text">'+e+"</span> "+n)},e}(s.default);s.default.registerComponent("CurrentTimeDisplay",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/format-time.js":146}],95:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../../component.js")),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/dom.js")),a=o(t("../../utils/format-time.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"timeupdate",this.updateContent),this.on(n,"loadedmetadata",this.updateContent)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=r.createEl("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"</span> 0:00"},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){var t=this.player_.duration();if(t&&this.duration_!==t){this.duration_=t;var e=this.localize("Duration Time"),n=a.default(t);this.contentEl_.innerHTML='<span class="vjs-control-text">'+e+"</span> "+n}},e}(s.default);s.default.registerComponent("DurationDisplay",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/format-time.js":146}],96:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../../component.js")),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/dom.js")),a=o(t("../../utils/format-time.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"timeupdate",this.updateContent)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=r.createEl("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"</span> -0:00"},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(){if(this.player_.duration()){var t=this.localize("Remaining Time"),e=a.default(this.player_.remainingTime());e!==this.formattedTime_&&(this.formattedTime_=e,this.contentEl_.innerHTML='<span class="vjs-control-text">'+t+"</span> -"+e)}},e}(s.default);s.default.registerComponent("RemainingTimeDisplay",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../utils/dom.js":143,"../../utils/format-time.js":146}],97:[function(t,e,n){"use strict";n.__esModule=!0;var o,s=(o=t("../../component.js"))&&o.__esModule?o:{default:o},r=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},e}(s.default);s.default.registerComponent("TimeDivider",r),n.default=r,e.exports=n.default},{"../../component.js":67}],98:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../menu/menu-button.js")),r=o(t("../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/fn.js")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var s=o.tracks;
13if(t.call(this,n,o),this.items.length<=1&&this.hide(),s){var r=a.bind(this,this.update);s.addEventListener("removetrack",r),s.addEventListener("addtrack",r),this.player_.on("dispose",function(){s.removeEventListener("removetrack",r),s.removeEventListener("addtrack",r)})}}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(s.default);r.default.registerComponent("TrackButton",l),n.default=l,e.exports=n.default},{"../component.js":67,"../menu/menu-button.js":109,"../utils/fn.js":145}],99:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../../slider/slider.js")),r=o(t("../../component.js")),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../../utils/fn.js")),l=(o(t("./volume-level.js")),function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"volumechange",this.updateARIAAttributes),n.ready(a.bind(this,this.updateARIAAttributes))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},e.prototype.handleMouseMove=function(t){this.checkMuted(),this.player_.volume(this.calculateDistance(t))},e.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},e.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},e.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},e.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},e.prototype.updateARIAAttributes=function(){var t=(100*this.player_.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},e}(s.default));l.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},l.prototype.playerEvent="volumechange",r.default.registerComponent("VolumeBar",l),n.default=l,e.exports=n.default},{"../../component.js":67,"../../slider/slider.js":119,"../../utils/fn.js":145,"./volume-level.js":101}],100:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../../component.js")),r=(o(t("./volume-bar.js")),function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),n.tech_&&!1===n.tech_.featuresVolumeControl&&this.addClass("vjs-hidden"),this.on(n,"loadstart",function(){!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},e}(s.default));r.prototype.options_={children:["volumeBar"]},s.default.registerComponent("VolumeControl",r),n.default=r,e.exports=n.default},{"../../component.js":67,"./volume-bar.js":99}],101:[function(t,e,n){"use strict";n.__esModule=!0;var o,s=(o=t("../../component.js"))&&o.__esModule?o:{default:o},r=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},e}(s.default);
13s.default.registerComponent("VolumeLevel",r),n.default=r,e.exports=n.default},{"../../component.js":67}],102:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/fn.js")),r=o(t("../component.js")),a=o(t("../popup/popup.js")),l=o(t("../popup/popup-button.js")),c=o(t("./mute-toggle.js")),u=o(t("./volume-control/volume-bar.js")),h=function(t){function e(n){function o(){n.tech_&&!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}var s=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),void 0===s.inline&&(s.inline=!0),void 0===s.vertical&&(s.vertical=!s.inline),s.volumeBar=s.volumeBar||{},s.volumeBar.vertical=!!s.vertical,t.call(this,n,s),this.on(n,"volumechange",this.volumeUpdate),this.on(n,"loadstart",this.volumeUpdate),o.call(this),this.on(n,"loadstart",o),this.on(this.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),this.on(this.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),this.on(this.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),this.on(this.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")})}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){var e="";return e=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+t.prototype.buildCSSClass.call(this)+" "+e},e.prototype.createPopup=function(){var t=new a.default(this.player_,{contentElType:"div"}),e=new u.default(this.player_,this.options_.volumeBar);return t.addChild(e),this.menuContent=t,this.volumeBar=e,this.attachVolumeBarEvents(),t},e.prototype.handleClick=function(){c.default.prototype.handleClick.call(this),t.prototype.handleClick.call(this)},e.prototype.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],s.bind(this,this.handleMouseDown))},e.prototype.handleMouseDown=function(){this.on(["mousemove","touchmove"],s.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},e.prototype.handleMouseUp=function(){this.off(["mousemove","touchmove"],s.bind(this.volumeBar,this.volumeBar.handleMouseMove))},e}(l.default);h.prototype.volumeUpdate=c.default.prototype.update,h.prototype.controlText_="Mute",r.default.registerComponent("VolumeMenuButton",h),n.default=h,e.exports=n.default},{"../component.js":67,"../popup/popup-button.js":115,"../popup/popup.js":116,"../utils/fn.js":145,"./mute-toggle.js":73,"./volume-control/volume-bar.js":99}],103:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("./component")),r=o(t("./modal-dialog")),a=o((function(t){if(!t||!t.__esModule){var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}}(t("./utils/dom")),t("./utils/merge-options"))),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.on(n,"error",this.open)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},e.prototype.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(r.default);l.prototype.options_=a.default(r.default.prototype.options_,{fillAlways:!0,temporary:!1,uncloseable:!0}),s.default.registerComponent("ErrorDisplay",l),n.default=l,e.exports=n.default},{"./component":67,"./modal-dialog":112,"./utils/dom":143,"./utils/merge-options":149}],104:[function(t,e,n){"use strict";n.__esModule=!0;var o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("./utils/events.js")),s=function(){};s.prototype.allowedEvents_={},s.prototype.on=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},o.on(this,t,e),this.addEventListener=n},s.prototype.addEventListener=s.prototype.on,s.prototype.off=function(t,e){o.off(this,t,e)},s.prototype.removeEventListener=s.prototype.off,s.prototype.one=function(t,e){var n=this.addEventListener;this.addEventListener=function(){},o.one(this,t,e),this.addEventListener=n},s.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=o.fixEvent(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),o.trigger(this,t)},s.prototype.dispatchEvent=s.prototype.trigger,n.default=s,e.exports=n.default},{"./utils/events.js":144}],105:[function(t,e,n){"use strict";n.__esModule=!0;var o,s=(o=t("./utils/log"))&&o.__esModule?o:{default:o},r=function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.super_=e)};n.default=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=function(){t.apply(this,arguments)},o={};for(var a in"object"==typeof e?("function"==typeof e.init&&(s.default.warn("Constructor logic via init() is deprecated; please use constructor() instead."),e.constructor=e.init),e.constructor!==Object.prototype.constructor&&(n=e.constructor),o=e):"function"==typeof e&&(n=e),r(n,t),o)o.hasOwnProperty(a)&&(n.prototype[a]=o[a]);return n},e.exports=n.default},{"./utils/log":148}],106:[function(t,e,n){"use strict";n.__esModule=!0;for(var o=t("global/document"),s=o&&o.__esModule?o:{default:o},r={},a=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["
13webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],l=a[0],c=void 0,u=0;u<a.length;u++)if(a[u][1]in s.default){c=a[u];break}if(c)for(var u=0;u<c.length;u++)r[l[u]]=c[u];n.default=r,e.exports=n.default},{"global/document":1}],107:[function(t,e,n){"use strict";n.__esModule=!0;var o,s=(o=t("./component"))&&o.__esModule?o:{default:o},r=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},e}(s.default);s.default.registerComponent("LoadingSpinner",r),n.default=r,e.exports=n.default},{"./component":67}],108:[function(t,e,n){"use strict";n.__esModule=!0;var o,s=(o=t("object.assign"))&&o.__esModule?o:{default:o},r=function t(e){"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:"object"==typeof e&&s.default(this,e),this.message||(this.message=t.defaultMessages[this.code]||"")};r.prototype.code=0,r.prototype.message="",r.prototype.status=null,r.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],r.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var a=0;a<r.errorTypes.length;a++)r[r.errorTypes[a]]=a,r.prototype[r.errorTypes[a]]=a;n.default=r,e.exports=n.default},{"object.assign":45}],109:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=s(t("../clickable-component.js")),a=s(t("../component.js")),l=s(t("./menu.js")),c=o(t("../utils/dom.js")),u=o(t("../utils/fn.js")),h=s(t("../utils/to-title-case.js")),d=function(t){function e(n){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.update(),this.enabled_=!0,this.el_.setAttribute("aria-haspopup","true"),this.el_.setAttribute("role","menuitem"),this.on("keydown",this.handleSubmenuKeyPress)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.update=function(){var t=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.el_.setAttribute("aria-expanded","false"),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},e.prototype.createMenu=function(){var t=new l.default(this.player_);if(this.options_.title){var e=c.createEl("li",{className:"vjs-menu-title",innerHTML:h.default(this.options_.title),tabIndex:-1});t.children_.unshift(e),c.insertElFirst(e,t.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)t.addItem(this.items[n]);return t},e.prototype.createItems=function(){},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e.prototype.buildCSSClass=function(){var e="vjs-menu-button";return"vjs-menu-button "+(e+=!0===this.options_.inline?"-inline":"-popup")+" "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.one("mouseout",u.bind(this,function(){this.menu.unlockShowing(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},e.prototype.handleKeyPress=function(e){27===e.which||9===e.which?(this.buttonPressed_&&this.unpressButton(),9!==e.which&&e.preventDefault()):38===e.which||40===e.which?this.buttonPressed_||(this.pressButton(),e.preventDefault()):t.prototype.handleKeyPress.call(this,e)},e.prototype.handleSubmenuKeyPress=function(t){(27===t.which||9===t.which)&&(this.buttonPressed_&&this.unpressButton(),9!==t.which&&t.preventDefault())},e.prototype.pressButton=function(){this.enabled_&&(this.buttonPressed_=!0,this.menu.lockShowing(),this.el_.setAttribute("aria-expanded","true"),this.menu.focus())},e.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","fal
13se"),this.el_.focus())},e.prototype.disable=function(){return this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-expanded","false"),this.enabled_=!1,t.prototype.disable.call(this)},e.prototype.enable=function(){return this.enabled_=!0,t.prototype.enable.call(this)},e}(r.default);a.default.registerComponent("MenuButton",d),n.default=d,e.exports=n.default},{"../clickable-component.js":65,"../component.js":67,"../utils/dom.js":143,"../utils/fn.js":145,"../utils/to-title-case.js":152,"./menu.js":111}],110:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../clickable-component.js")),r=o(t("../component.js")),a=o(t("object.assign")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.selectable=o.selectable,this.selected(o.selected),this.selectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitem")}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(e,n,o){return t.prototype.createEl.call(this,"li",a.default({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label),tabIndex:-1},n),o)},e.prototype.handleClick=function(){this.selected(!0)},e.prototype.selected=function(t){this.selectable&&(t?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(" ")))},e}(s.default);r.default.registerComponent("MenuItem",l),n.default=l,e.exports=n.default},{"../clickable-component.js":65,"../component.js":67,"object.assign":45}],111:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}n.__esModule=!0;var s,r=(s=t("../component.js"))&&s.__esModule?s:{default:s},a=o(t("../utils/dom.js")),l=o(t("../utils/fn.js")),c=o(t("../utils/events.js")),u=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.focusedChild_=-1,this.on("keydown",this.handleKeyPress)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",l.bind(this,function(){this.unlockShowing()}))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=a.createEl(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.setAttribute("role","presentation"),n.appendChild(this.contentEl_),c.on(n,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),n},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepForward()):(38===t.which||39===t.which)&&(t.preventDefault(),this.stepBack())},e.prototype.stepForward=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_+1),this.focus(t)},e.prototype.stepBack=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_-1),this.focus(t)},e.prototype.focus=function(){var t=arguments.length<=0||void 0===arguments[0]?0:arguments[0],e=this.children().slice();e.length&&e[0].className&&/vjs-menu-title/.test(e[0].className)&&e.shift(),e.length>0&&(0>t?t=0:t>=e.length&&(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(r.default);r.default.registerComponent("Menu",u),n.default=u,e.exports=n.default},{"../component.js":67,"../utils/dom.js":143,"../utils/events.js":144,"../utils/fn.js":145}],112:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}n.__esModule=!0;var r=s(t("./utils/dom")),a=s(t("./utils/fn")),l=(o(t("./utils/log")),t("./component")),c=o(l),u=(o(t("./close-button")),"vjs-modal-dialog"),h=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=r.createEl("div",{className:u+"-content"},{role:"document"}),this.descEl_=r.createEl("p",{className:u+"-description vjs-offscreen",id:this.el().getAttribute("aria-describedby")}),r.textContent(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},e.prototype.buildCSSClass=function(){return u+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},e.prototype.handleKeyPress=function(t){27===t.which&&this.closeable()&&this.close()},e.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},e.prototype.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},e.prototype.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,!this.options_.fillAlways&&(this.hasBeenOpened_||this.hasBeenFilled_)||this.fill(),this.wasPlaying_=!t.paused(),this.wasPlaying_&&t.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",a.bind(this,this.handleKeyPress)),t.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},e.prototype.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.opened_},e.prototype.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&t.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",a.bind(this,this.handleKeyPress)),t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},e.prototype.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,n=this.getChild("closeButton");if(e&&!n){var o=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton"),this.contentEl_=o,this.on(n,"close",this.close)}!e&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},e.prototype.fill=function(){return this.fillWith(this.content())},e.prototype.fillWith=function(t){var e=this.contentEl(),n=e.parentNode,o=e.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(e),this.empty(),r.insertContent(e,t),this.trigger("modalfill"),o?n.insertBefore(e,o):n.appendChild(e),this},e.prototype.empty=function(){return this.trigger("beforemodalempty"),r.emptyEl(this.contentEl()),this.trigger("modalempty"),this},e.prototype.content=function(t){return void 0!==t&&(this.content_=t),this.content_},e}(c.default);h.prototype.options_={temporary:!0}
13,c.default.registerComponent("ModalDialog",h),n.default=h,e.exports=n.default},{"./close-button":66,"./component":67,"./utils/dom":143,"./utils/fn":145,"./utils/log":148}],113:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=s(t("./component.js")),a=s(t("global/document")),l=s(t("global/window")),c=o(t("./utils/events.js")),u=o(t("./utils/dom.js")),h=o(t("./utils/fn.js")),d=o(t("./utils/guid.js")),p=o(t("./utils/browser.js")),f=s(t("./utils/log.js")),m=s(t("./utils/to-title-case.js")),g=t("./utils/time-ranges.js"),v=t("./utils/buffer.js"),y=o(t("./utils/stylesheet.js")),_=s(t("./fullscreen-api.js")),b=s(t("./media-error.js")),w=s(t("safe-json-parse/tuple")),x=s(t("object.assign")),T=s(t("./utils/merge-options.js")),k=s(t("./tracks/text-track-list-converter.js")),C=s(t("./tracks/audio-track-list.js")),j=s(t("./tracks/video-track-list.js")),S=(s(t("./tech/loader.js")),t("./poster-image.js")),P=(s(S),t("./tracks/text-track-display.js")),E=(s(P),t("./loading-spinner.js")),O=(s(E),t("./big-play-button.js")),M=(s(O),t("./control-bar/control-bar.js")),A=(s(M),t("./error-display.js")),I=(s(A),t("./tracks/text-track-settings.js")),z=(s(I),t("./modal-dialog")),N=s(z),D=s(t("./tech/tech.js")),B=(s(t("./tech/html5.js")),function(t){function e(n,o,s){var r,a,l=this;if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e),n.id=n.id||"vjs_video_"+d.newGUID(),(o=x.default(e.getTagSettings(n),o)).initChildren=!1,o.createEl=!1,o.reportTouchActivity=!1,t.call(this,null,o,s),!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");this.tag=n,this.tagAttributes=n&&u.getElAttributes(n),this.language(this.options_.language),o.languages?(r={},Object.getOwnPropertyNames(o.languages).forEach(function(t){r[t.toLowerCase()]=o.languages[t]}),l.languages_=r):this.languages_=e.prototype.options_.languages,this.cache_={},this.poster_=o.poster||"",this.controls_=!!o.controls,n.controls=!1,this.scrubbing_=!1,this.el_=this.createEl();var c=T.default(this.options_);o.plugins&&Object.getOwnPropertyNames(a=o.plugins).forEach(function(t){"function"==typeof this[t]?this[t](a[t]):f.default.error("Unable to find plugin:",t)},l),this.options_.playerOptions=c,this.initChildren(),this.isAudio("audio"===n.nodeName.toLowerCase()),this.addClass(this.controls()?"vjs-controls-enabled":"vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label","audio player"):this.el_.setAttribute("aria-label","video player"),this.isAudio()&&this.addClass("vjs-audio"),this.flexNotSupported_()&&this.addClass("vjs-no-flex"),p.IS_IOS||this.addClass("vjs-workinghover"),e.players[this.id_]=this,this.userActive(!0),this.reportUserActivity(),this.listenForUserActivity_(),this.on("fullscreenchange",this.handleFullscreenChange_),this.on("stageclick",this.handleStageClick_)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),e.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&this.tech_.dispose(),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var e=this.el_=t.prototype.createEl.call(this,"div"),n=this.tag;n.removeAttribute("width"),n.removeAttribute("height");var o=u.getElAttributes(n);
13if(Object.getOwnPropertyNames(o).forEach(function(t){"class"===t?e.className=o[t]:e.setAttribute(t,o[t])}),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=e.player=this,this.addClass("vjs-paused"),!0!==l.default.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=y.createStyleElement("vjs-styles-dimensions");var s=u.$(".vjs-styles-defaults"),r=u.$("head");r.insertBefore(this.styleEl_,s?s.nextSibling:r.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var a=n.getElementsByTagName("a"),c=0;c<a.length;c++){var h=a.item(c);u.addElClass(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&n.parentNode.insertBefore(e,n),u.insertElFirst(n,e),this.children_.unshift(n),this.el_=e,e},e.prototype.width=function(t){return this.dimension("width",t)},e.prototype.height=function(t){return this.dimension("height",t)},e.prototype.dimension=function(t,e){var n=t+"_";if(void 0===e)return this[n]||0;if(""===e)this[n]=void 0;else{var o=parseFloat(e);if(isNaN(o))return f.default.error('Improper value "'+e+'" supplied for for '+t),this;this[n]=o}return this.updateStyleEl_(),this},e.prototype.fluid=function(t){return void 0===t?!!this.fluid_:(this.fluid_=!!t,void(t?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid")))},e.prototype.aspectRatio=function(t){if(void 0===t)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},e.prototype.updateStyleEl_=function(){if(!0===l.default.VIDEOJS_NO_DYNAMIC_STYLE){var t="number"==typeof this.width_?this.width_:this.options_.width,e="number"==typeof this.height_?this.height_:this.options_.height,n=this.tech_&&this.tech_.el();return void(n&&(t>=0&&(n.width=t),e>=0&&(n.height=e)))}var o=void 0,s=void 0,r=void 0,a=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),c=a[1]/a[0];o=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/c:this.videoWidth()||300,s=void 0!==this.height_?this.height_:o*c,r=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(r),y.setTextContent(this.styleEl_,"\n ."+r+" {\n width: "+o+"px;\n height: "+s+"px;\n }\n\n ."+r+".vjs-fluid {\n padding-top: "+100*c+"%;\n }\n ")},e.prototype.loadTech_=function(t,e){this.tech_&&this.unloadTech_(),"Html5"!==t&&this.tag&&(D.default.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=t,this.isReady_=!1;var n=x.default({nativeControlsForTouch:this.options_.nativeControlsForTouch,source:e,playerId:this.id(),techId:this.id()+"_"+t+"_api",videoTracks:this.videoTracks_,textTracks:this.textTracks_,audioTracks:this.audioTracks_,autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),"vtt.js":this.options_["vtt.js"]},this.options_[t.toLowerCase()]);this.tag&&(n.tag=this.tag),e&&(this.currentType_=e.type,e.src===this.cache_.src&&this.cache_.currentTime>0&&(n.startTime=this.cache_.currentTime),this.cache_.src=e.src);var o=D.default.getTech(t);o||(o=r.default.getComponent(t)),this.tech_=new o(n),this.tech_.ready(h.bind(this,this.handleTechReady_),!0),k.default.jsonToTextTracks(this.textTracksJson_||[],this.tech_),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"progress",this.handleTechProgress_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"suspend",this.handleTechSuspend_),this.on(this.tech_,"abort",this.handleTechAbort_),this.on(this.tech_,"emptied",this.handleTechEmptied_),this.on(this.tech_,"stalled",this.handleTechStalled_),this.on(this.tech_,"loadedmetadata",this.handleTechLoadedMetaData_),this.on(this.tech_,"loadeddata",this.handleTechLoadedData_),this.on(this.tech_,"timeupdate",this.handleTechTimeUpdate_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.on(this.tech_,"volumechange",this.handleTechVolumeChange_),this.on(this.tech_,"texttrackchange",this.handleTechTextTrackChange_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControl
13sListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===t&&this.tag||u.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},e.prototype.unloadTech_=function(){this.videoTracks_=this.videoTracks(),this.textTracks_=this.textTracks(),this.audioTracks_=this.audioTracks(),this.textTracksJson_=k.default.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},e.prototype.tech=function(t){if(t&&t.IWillNotUseThisInPlugins)return this.tech_;var e="\n Please make sure that you are not using this inside of a plugin.\n To disable this alert and error, please pass in an object with\n `IWillNotUseThisInPlugins` to the `tech` method. See\n https://github.com/videojs/video.js/issues/2617 for more info.\n ";throw l.default.alert(e),Error(e)},e.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},e.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},e.prototype.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),this.src()&&this.tag&&this.options_.autoplay&&this.paused()&&(delete this.tag.poster,this.play())},e.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},e.prototype.hasStarted=function(t){return void 0!==t?(this.hasStarted_!==t&&(this.hasStarted_=t,t?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},e.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.prototype.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return t.removeClass("vjs-waiting")})},e.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},e.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime),this.addClass("vjs-has-started"),this.trigger("firstplay")},e.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.prototype.handleTechProgress_=function(){this.trigger("progress")},e.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},e.prototype.handleTechClick_=function(t){0===t.button&&this.controls()&&(this.paused()?this.play():this.pause())},e.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},e.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},e.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},e.prototype.handleTechTouchEnd_=function(t){t.preventDefault()},e.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e.prototype.handleStageClick_=function(){this.reportUserActivity()},e.prototype.handleTechFullscreenChange_=function(t,e){e&&this.isFullscreen(e.isFullscreen),this.trigger("fullscreenchange")},e.prototype.handleTechError_=function(){var t=this.tech_.error();this.error(t&&t.code)},e.prototype.handleTechSuspend_=function(){this.trigger("suspend")},e.prototype.handleTechAbort_=function(){this.trigger("abort")},e.prototype.handleTechEmptied_=function(){this.trigger("emptied")},e.prototype.handleTechStalled_=function(){this.trigger("stalled")},e.prototype.handleTechLoadedMetaData_=function(){this.trigger("loadedmetadata")},e.prototype.handleTechLoadedData_=function(){this.trigger("loadeddata")},e.prototype.handleTechTimeUpdate_=function(){this.trigger("timeupdate")},e.prototype.handleTechRateChange_=function(){this.trigger("ratechange")},e.prototype.handleTechVolumeChange_=function(){this.trigger("volumechange")},e.prototype.handleTechTextTrackChange_=function(){this.trigger("texttrackchange")},e.prototype.getCache=function(){return this.cache_},e.prototype.techCall_=function(t,e){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[t](e)},!0);else try{this.tech_[t](e)}catch(t){throw f.default(t),t}},e.prototype.techGet_=function(t){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[t]()}catch(e){throw void 0===this.tech_[t]?f.default("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e):"TypeError"===e.name?(f.default("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1):f.default(e),e}},e.prototype.play=function(){return this.techCall_("play"),this},e.prototype.pause=function(){return this.techCall_("pause"),this},e.prototype.paused=function(){return!1!==this.techGet_("paused")},e.prototype.scrubbing=function(t){return void 0!==t?(this.scrubbing_=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},e.prototype.currentTime=function(t){return void 0!==t?(this.techCall_("setCurrentTime",t),this):this.cache_.currentTime=this.techGet_("currentTime")||0},e.prototype.duration=function(t){return void 0===t?this.cache_.duration||0:(0>(t=parseFloat(t)||0)&&(t=1/0),t!==this.cache_.duration&&(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},e.prototype.remainingTime=function(){return this.duration()-this.currentTime()},e.prototype.buffered=function(){var t=this.techGet_("buffered");return t&&t.length||(t=g.createTimeRange(0,0)),t},e.prototype.bufferedPercent=function(){return v.bufferedPercent(this.buffered(),this.duration())},e.prototype.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),n=t.end(t.length-1);return n>e&&(n=e),n},e.prototype.volume=function(t){var e=void 0;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),this):isNaN(e=parseFloat(this.techGet_("volume")))?1:e},e.prototype.muted=function(t){return void 0!==t?(this.techCall_("setMuted",t),this):this.techGet_("muted")||!1},e.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},e.prototype.isFullscreen=function(t){return void 0!==t?(this.isFullscreen_=!!t,this):!!this.isFullscreen_},e.prototype.requestFullscreen=function(){var t=_.default;return this.isFullscreen(!0),t.requestFullscreen?(c.on(a.default,t.fullscreenchange,h.bind(this,function e(){this.isFullscreen(a.default[t.fullscreenElement]),!1===this.isFullscreen()&&c.off(a.default,t.fullscreenchange,e),this.trigger("fullscreenchange")})),this.el_[t.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},e.prototype.exitFullscreen=function(){var t=_.default;return this.isFullscreen(!1),t.requestFullscreen?a.default[t.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},e.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=a.default.documentElement.style.overflow,c.on(a.default,"keydown",h.bind(this,this.fullWindowOnEscKey)),a.default.documentElement.style.overflow="hidden",u.addElClass(a.default.body,"vjs-full-window"),this.trigger("enterFullWindow")},e.prototype.fullWindowOnEscKey=function(t){27===t.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},e.prototype.exitFullWindow=function(){this.isFullWindow=!1,c.off(a.default,"keydown",this.fullWindowOnEscKey),a.default.documentElement.style.overflow=this.docOrigOverflow,u.removeElClass(a.default.body,"vjs-full-window"),this.trigger("exitFullWindow")},e.prototype.canPlayType=function(t){for(var e=void 0,n=0,o=this.options_.techOrder;n<o.length;n++){var s=m.default(o[n]),a=D.default.getTech(s);if(a||(a=r.default.getComponent(s)),a){if(a.isSupported()&&(e=a.canPlayType(t)))return e}else f.default.error('The "'+s+'" tech is undefined. Skipped browser support check for that tech.')}return""},e.prototype.selectSource=function(t){var e=this.options_.techOrder.map(m.default).map(function(t){return[t,D.default.getTech(t)||r.default.getComponent(t)]}).filter(function(t){var e=t[0],n=t[1];return n?n.isSupported():(f.default.error('The "'+e+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),n=function(t,e,n){var o=void 0;return t.some(function(t){return e.some(function(e){return!!(o=n(t,e))||void 0})}),o},o=function(t,e){var n=t[0];return t[1].canPlaySource(e)?{source:e,tech:n}:void 0};return(this.options_.sourceOrder?n(t,e,function(t,e){return o(e,t)}):n(e,t,o))||!1},e.prototype.src=function(t){if(void 0===t)return this.techGet_("src");var e=D.default.getTech(this.techName_);return e||(e=r.default.getComponent(this.techName_)),Array.isArray(t)?this.sourceList_(t):"string"==typeof t?this.src({src:t}):t instanceof Object&&(t.type&&!e.canPlaySource(t)?this.sourceList_([t]):(this.cache_.src=t.src,this.currentType_=t.type||"",this.ready(function(){e.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),"auto"===this.options_.preload&&this.load(),this.options_.autoplay&&this.play()},!0))),this},e.prototype.sourceList_=function(t){var e=this.selectSource(t);e?e.tech===this.techName_?this.src(e.source):this.loadTech_(e.tech,e.source):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),this.triggerReady())},e.prototype.load=function(){return this.techCall_("load"),this},e.prototype.reset=function(){return this.loadTech_(m.default(this.options_.techOrder[0]),null),this.techCall_("reset"),this},e.prototype.currentSrc=function(){return this.techGet_("currentSrc")||this.cache_.src||""},e.prototype.currentType=function(){return this.currentType_||""},e.prototype.preload=function(t){return void 0!==t?(this.techCall_("setPreload",t),this.options_.preload=t,this):this.techGet_("preload")},e.prototype.autoplay=function(t){return void 0!==t?(this.techCall_("setAutoplay",t),this.options_.autoplay=t,this):this.techGet_("autoplay",t)},e.prototype.loop=function(t){return void 0!==t?(this.techCall_("setLoop",t),this.options_.loop=t,this):this.techGet_("loop")},e.prototype.poster=function(t){return void 0===t?this.poster_:(t||(t=""),this.poster_=t,this.techCall_("setPoster",t),this.trigger("posterchange"),this)},e.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},e.prototype.controls=function(t){return void 0!==t?(t=!!t,this.controls_!==t&&(this.controls_=t,this.usingNativeControls()&&this.techCall_("setControls",t),t?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControl
13sListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_())),this):!!this.controls_},e.prototype.usingNativeControls=function(t){return void 0!==t?(t=!!t,this.usingNativeControls_!==t&&(this.usingNativeControls_=t,t?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols"))),this):!!this.usingNativeControls_},e.prototype.error=function(t){return void 0===t?this.error_||null:null===t?(this.error_=t,this.removeClass("vjs-error"),this.errorDisplay.close(),this):(this.error_=t instanceof b.default?t:new b.default(t),this.addClass("vjs-error"),f.default.error("(CODE:"+this.error_.code+" "+b.default.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),this)},e.prototype.ended=function(){return this.techGet_("ended")},e.prototype.seeking=function(){return this.techGet_("seeking")},e.prototype.seekable=function(){return this.techGet_("seekable")},e.prototype.reportUserActivity=function(){this.userActivity_=!0},e.prototype.userActive=function(t){return void 0!==t?((t=!!t)!==this.userActive_&&(this.userActive_=t,t?(this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive")):(this.userActivity_=!1,this.tech_&&this.tech_.one("mousemove",function(t){t.stopPropagation(),t.preventDefault()}),this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive"))),this):this.userActive_},e.prototype.listenForUserActivity_=function(){var t=void 0,e=void 0,n=void 0,o=h.bind(this,this.reportUserActivity);this.on("mousedown",function(){o(),this.clearInterval(t),t=this.setInterval(o,250)}),this.on("mousemove",function(t){(t.screenX!==e||t.screenY!==n)&&(e=t.screenX,n=t.screenY,o())}),this.on("mouseup",function(){o(),this.clearInterval(t)}),this.on("keydown",o),this.on("keyup",o);var s=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(s);var t=this.options_.inactivityTimeout;t>0&&(s=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},t))}},250)},e.prototype.playbackRate=function(t){return void 0!==t?(this.techCall_("setPlaybackRate",t),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},e.prototype.isAudio=function(t){return void 0!==t?(this.isAudio_=!!t,this):!!this.isAudio_},e.prototype.networkState=function(){return this.techGet_("networkState")},e.prototype.readyState=function(){return this.techGet_("readyState")},e.prototype.videoTracks=function(){return this.tech_?this.tech_.videoTracks():(this.videoTracks_=this.videoTracks_||new j.default,this.videoTracks_)},e.prototype.audioTracks=function(){return this.tech_?this.tech_.audioTracks():(this.audioTracks_=this.audioTracks_||new C.default,this.audioTracks_)},e.prototype.textTracks=function(){return this.tech_&&this.tech_.textTracks()},e.prototype.remoteTextTracks=function(){return this.tech_&&this.tech_.remoteTextTracks()},e.prototype.remoteTextTrackEls=function(){return this.tech_&&this.tech_.remoteTextTrackEls()},e.prototype.addTextTrack=function(t,e,n){return this.tech_&&this.tech_.addTextTrack(t,e,n)},e.prototype.addRemoteTextTrack=function(t){return this.tech_&&this.tech_.addRemoteTextTrack(t)},e.prototype.removeRemoteTextTrack=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=t.track,n=void 0===e?arguments[0]:e;this.tech_&&this.tech_.removeRemoteTextTrack(n)},e.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},e.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},e.prototype.language=function(t){return void 0===t?this.language_:(this.language_=(""+t).toLowerCase(),this)},e.prototype.languages=function(){return T.default(e.prototype.options_.languages,this.languages_)},e.prototype.toJSON=function(){var t=T.default(this.options_),e=t.tracks;t.tracks=[];for(var n=0;n<e.length;n++){var o=e[n];(o=T.default(o)).player=void 0,t.tracks[n]=o}return t},e.prototype.createModal=function(t,e){var n=this;(e=e||{}).content=t||"";var o=new N.default(n,e);return n.addChild(o),o.on("dispose",function(){n.removeChild(o)}),o.open()},e.getTagSettings=function(t){var e={sources:[],tracks:[]},n=u.getElAttributes(t),o=n["data-setup"];if(null!==o){var s=w.default(o||"{}"),r=s[0],a=s[1];r&&f.default.error(r),x.default(n,a)}if(x.default(e,n),t.hasChildNodes())for(var l=t.childNodes,c=0,h=l.length;h>c;c++){var d=l[c],p=d.nodeName.toLowerCase();"source"===p?e.sources.push(u.getElAttributes(d)):"track"===p&&e.tracks.push(u.getElAttributes(d))}return e},e}(r.default));B.players={};var R=l.default.navigator;B.prototype.options_={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:a.default.getElementsByTagName("html")[0].getAttribute("lang")||R.languages&&R.languages[0]||R.userLanguage||R.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},B.prototype.handleLoadedMetaData_,B.prototype.handleLoadedData_,B.prototype.handleUserActive_,B.prototype.handleUserInactive_,B.prototype.handleTimeUpdate_,B.prototype.handleTechEnded_,B.prototype.handleVolumeChange_,B.prototype.handleError_,B.prototype.flexNotSupported_=function(){var t=a.default.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)}
13,r.default.registerComponent("Player",B),n.default=B,e.exports=n.default},{"./big-play-button.js":63,"./component.js":67,"./control-bar/control-bar.js":70,"./error-display.js":103,"./fullscreen-api.js":106,"./loading-spinner.js":107,"./media-error.js":108,"./modal-dialog":112,"./poster-image.js":117,"./tech/html5.js":122,"./tech/loader.js":123,"./tech/tech.js":124,"./tracks/audio-track-list.js":125,"./tracks/text-track-display.js":130,"./tracks/text-track-list-converter.js":131,"./tracks/text-track-settings.js":133,"./tracks/video-track-list.js":138,"./utils/browser.js":140,"./utils/buffer.js":141,"./utils/dom.js":143,"./utils/events.js":144,"./utils/fn.js":145,"./utils/guid.js":147,"./utils/log.js":148,"./utils/merge-options.js":149,"./utils/stylesheet.js":150,"./utils/time-ranges.js":151,"./utils/to-title-case.js":152,"global/document":1,"global/window":2,"object.assign":45,"safe-json-parse/tuple":54}],114:[function(t,e,n){"use strict";n.__esModule=!0;var o,s=(o=t("./player.js"))&&o.__esModule?o:{default:o};n.default=function(t,e){s.default.prototype[t]=e},e.exports=n.default},{"./player.js":113}],115:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=s(t("../clickable-component.js")),a=s(t("../component.js")),l=(o((s(t("./popup.js")),t("../utils/dom.js"))),t("../utils/fn.js")),c=(s((o(l),t("../utils/to-title-case.js"))),function(t){function e(n){var o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.update()}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.update=function(){var t=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=t,this.addChild(t),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},e.prototype.createPopup=function(){},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e.prototype.buildCSSClass=function(){var e="vjs-menu-button";return"vjs-menu-button "+(e+=!0===this.options_.inline?"-inline":"-popup")+" "+t.prototype.buildCSSClass.call(this)},e}(r.default));a.default.registerComponent("PopupButton",c),n.default=c,e.exports=n.default},{"../clickable-component.js":65,"../component.js":67,"../utils/dom.js":143,"../utils/fn.js":145,"../utils/to-title-case.js":152,"./popup.js":116}],116:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}n.__esModule=!0;var s,r=(s=t("../component.js"))&&s.__esModule?s:{default:s},a=o(t("../utils/dom.js")),l=o(t("../utils/fn.js")),c=o(t("../utils/events.js")),u=function(t){function e(){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.apply(this,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",l.bind(this,function(){this.unlockShowing()}))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=a.createEl(e,{className:"vjs-menu-content"});var n=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),c.on(n,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),n},e}(r.default);r.default.registerComponent("Popup",u),n.default=u,e.exports=n.default},{"../component.js":67,"../utils/dom.js":143,"../utils/events.js":144,"../utils/fn.js":145}],117:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=s(t("./clickable-component.js")),a=s(t("./component.js")),l=o(t("./utils/fn.js")),c=o(t("./utils/dom.js")),u=o(t("./utils/browser.js")),h=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.update(),n.on("posterchange",l.bind(this,this.update))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var t=c.createEl("div",{className:"vjs-poster",tabIndex:-1});
13return u.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=c.createEl("img"),t.appendChild(this.fallbackImg_)),t},e.prototype.update=function(){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},e.prototype.setSrc=function(t){if(this.fallbackImg_)this.fallbackImg_.src=t;else{var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e}},e.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},e}(r.default);a.default.registerComponent("PosterImage",h),n.default=h,e.exports=n.default},{"./clickable-component.js":65,"./component.js":67,"./utils/browser.js":140,"./utils/dom.js":143,"./utils/fn.js":145}],118:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("./utils/events.js")),r=o(t("global/document")),a=o(t("global/window")),l=!1,c=void 0,u=function(){var t=r.default.getElementsByTagName("video"),e=r.default.getElementsByTagName("audio"),n=[];if(t&&t.length>0)for(var o=0,s=t.length;s>o;o++)n.push(t[o]);if(e&&e.length>0)for(var o=0,s=e.length;s>o;o++)n.push(e[o]);if(n&&n.length>0)for(var o=0,s=n.length;s>o;o++){var a=n[o];if(!a||!a.getAttribute){h(1);break}void 0===a.player&&null!==a.getAttribute("data-setup")&&c(a)}else l||h(1)},h=function(t,e){e&&(c=e),setTimeout(u,t)};"complete"===r.default.readyState?l=!0:s.one(a.default,"load",function(){l=!0}),n.autoSetup=u,n.autoSetupTimeout=h,n.hasLoaded=function(){return l}},{"./utils/events.js":144,"global/document":1,"global/window":2}],119:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../component.js")),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/dom.js")),a=o(t("object.assign")),l=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(n,"controlsvisible",this.update),this.on(n,this.playerEvent,this.update)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];return n.className=n.className+" vjs-slider",n=a.default({tabIndex:0},n),o=a.default({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},o),t.prototype.createEl.call(this,e,n,o)},e.prototype.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;t.preventDefault(),r.blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchmove",this.handleMouseMove),this.on(e,"touchend",this.handleMouseUp),this.handleMouseMove(t)},e.prototype.handleMouseMove=function(){},e.prototype.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;r.unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.update()},e.prototype.update=function(){if(this.el_){var t=this.getPercent(),e=this.bar;if(e){("number"!=typeof t||t!=t||0>t||t===1/0)&&(t=0);var n=(100*t).toFixed(2)+"%";this.vertical()?e.el().style.height=n:e.el().style.width=n}}},e.prototype.calculateDistance=function(t){var e=r.getPointerPosition(this.el_,t);return this.vertical()?e.y:e.x},e.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepBack()):(38===t.which||39===t.which)&&(t.preventDefault(),this.stepForward())},e.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleClick=function(t){t.stopImmediatePropagation(),t.preventDefault()},e.prototype.vertical=function(t){return void 0===t?this.vertical_||!1:(this.vertical_=!!t,this.addClass(this.vertical_?"vjs-slider-vertical":"vjs-slider-horizontal"),this)},e}(s.default);s.default.registerComponent("Slider",l),n.default=l,e.exports=n.default},{"../component.js":67,"../utils/dom.js":143,"object.assign":45}],120:[function(t,e,n){"use strict";n.__esModule=!0,n.default=function(t){return t.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},t.streamFromParts=function(t,e){return t+"&"+e},t.streamToParts=function(t){var e={connection:"",stream:""};if(!t)return e;var n=t.search(/&(?!\w+=)/),o=void 0;return -1!==n?o=n+1:0===(n=o=t.lastIndexOf("/")+1)&&(n=o=t.length),e.connection=t.substring(0,n),e.stream=t.substring(o,t.length),e},t.isStreamingType=function(e){return e in t.streamingFormats},t.RTMP_RE=/^rtmp[set]?:\/\//i,t.isStreamingSrc=function(e){return t.RTMP_RE.test(e)},t.rtmpSourceHandler={},t.rtmpSourceHandler.canPlayType=function(e){return t.isStreamingType(e)?"maybe":""},t.rtmpSourceHandler.canHandleSource=function(e){return t.rtmpSourceHandler.canPlayType(e.type)||(t.isStreamingSrc(e.src)?"maybe":"")},t.rtmpSourceHandler.handleSource=function(e,n){var o=t.streamToParts(e.src);
13n.setRtmpConnection(o.connection),n.setRtmpStream(o.stream)},t.registerSourceHandler(t.rtmpSourceHandler),t},e.exports=n.default},{}],121:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}function r(t){k[t]=function(){return this.el_.vjs_getProperty(t)}}n.__esModule=!0;for(var a=t("./tech"),l=s(a),c=t("../utils/dom.js"),u=o(c),h=t("../utils/url.js"),d=o(h),p=t("../utils/time-ranges.js"),f=t("./flash-rtmp"),m=s(f),g=t("../component"),v=s(g),y=t("global/window"),_=s(y),b=t("object.assign"),w=s(b),x=_.default.navigator,T=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),n.source&&this.ready(function(){this.setSource(n.source)},!0),n.startTime&&this.ready(function(){this.load(),this.play(),this.currentTime(n.startTime)},!0),_.default.videojs=_.default.videojs||{},_.default.videojs.Flash=_.default.videojs.Flash||{},_.default.videojs.Flash.onReady=e.onReady,_.default.videojs.Flash.onEvent=e.onEvent,_.default.videojs.Flash.onError=e.onError,this.on("seeked",function(){this.lastSeekTarget_=void 0})}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var t=this.options_;t.swf||(t.swf="//vjs.zencdn.net/swf/5.0.1/video-js.swf");var n=t.techId,o=w.default({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:t.autoplay,preload:t.preload,loop:t.loop,muted:t.muted},t.flashVars),s=w.default({wmode:"opaque",bgcolor:"#000000"},t.params),r=w.default({id:n,name:n,class:"vjs-tech"},t.attributes);return this.el_=e.embed(t.swf,o,s,r),this.el_.tech=this,this.el_},e.prototype.play=function(){this.ended()&&this.setCurrentTime(0),this.el_.vjs_play()},e.prototype.pause=function(){this.el_.vjs_pause()},e.prototype.src=function(t){return void 0===t?this.currentSrc():this.setSrc(t)},e.prototype.setSrc=function(t){if(t=d.getAbsoluteURL(t),this.el_.vjs_src(t),this.autoplay()){var e=this;this.setTimeout(function(){e.play()},0)}},e.prototype.seeking=function(){return void 0!==this.lastSeekTarget_},e.prototype.setCurrentTime=function(e){var n=this.seekable();n.length&&(e=(e=e>n.start(0)?e:n.start(0))<n.end(n.length-1)?e:n.end(n.length-1),this.lastSeekTarget_=e,this.trigger("seeking"),this.el_.vjs_setProperty("currentTime",e),t.prototype.setCurrentTime.call(this))},e.prototype.currentTime=function(){return this.seeking()?this.lastSeekTarget_||0:this.el_.vjs_getProperty("currentTime")},e.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.vjs_getProperty("currentSrc")},e.prototype.load=function(){this.el_.vjs_load()},e.prototype.poster=function(){this.el_.vjs_getProperty("poster")},e.prototype.setPoster=function(){},e.prototype.seekable=function(){var t=this.duration();return 0===t?p.createTimeRange():p.createTimeRange(0,t)},e.prototype.buffered=function(){var t=this.el_.vjs_getProperty("buffered");return 0===t.length?p.createTimeRange():p.createTimeRange(t[0][0],t[0][1])},e.prototype.supportsFullScreen=function(){return!1},e.prototype.enterFullScreen=function(){return!1},e}(l.default),k=T.prototype,C="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","),j="networkState,readyState,initialTime,duration,startOffsetTime,paused,ended,videoWidth,videoHeight".split(","),S=0;S<C.length;S++)r(C[S]),function(t){k["set"+(t.charAt(0).toUpperCase()+t.slice(1))]=function(e){return this.el_.vjs_setProperty(t,e)}}(C[S]);for(var S=0;S<j.length;S++)r(j[S]);T.isSupported=function(){return T.version()[0]>=10},l.default.withSourceHandlers(T),T.nativeSourceHandler={},T.nativeSourceHandler.canPlayType=function(t){return t in T.formats?"maybe":""},T.nativeSourceHandler.canHandleSource=function(t){var e,n,o;return e=t.type?t.type.replace(/;.*/,"").toLowerCase():(n=t.src,(o=d.getFileExtension(n))?"video/"+o:""),T.nativeSourceHandler.canPlayType(e)},T.nativeSourceHandler.handleSource=function(t,e){e.setSrc(t.src)},T.nativeSourceHandler.dispose=function(){},T.registerSourceHandler(T.nativeSourceHandler),T.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},T.onReady=function(t){var e=u.getEl(t),n=e&&e.tech;n&&n.el()&&T.checkReady(n)},T.checkReady=function(t){t.el()&&(t.el().vjs_getProperty?t.triggerReady():this.setTimeout(function(){T.checkReady(t)},50))},T.onEvent=function(t,e){u.getEl(t).tech.trigger(e)},T.onError=function(t,e){var n=u.getEl(t).tech;return"srcnotfound"===e?n.error(4):void n.error("FLASH: "+e)},T.version=function(){var t="0,0,0";try{t=new _.default.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(e){try{x.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(t=(x.plugins["Shockwave Flash 2.0"]||x.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(t){}}return t.split(",")},T.embed=function(t,e,n,o){var s=T.getEmbedCode(t,e,n,o);return u.createEl("div",{innerHTML:s}).childNodes[0]},T.getEmbedCode=function(t,e,n,o){var s="",r="",a="";return e&&Object.getOwnPropertyNames(e).forEach(function(t){s+=t+"="+e[t]+"&"}),Object.getOwnPropertyNames(n=w.default({movie:t,flashvars:s,allowScriptAccess:"always",allowNetworking:"all"}
13,n)).forEach(function(t){r+='<param name="'+t+'" value="'+n[t]+'" />'}),Object.getOwnPropertyNames(o=w.default({data:t,width:"100%",height:"100%"},o)).forEach(function(t){a+=t+'="'+o[t]+'" '}),'<object type="application/x-shockwave-flash" '+a+">"+r+"</object>"},m.default(T),v.default.registerComponent("Flash",T),l.default.registerTech("Flash",T),n.default=T,e.exports=n.default},{"../component":67,"../utils/dom.js":143,"../utils/time-ranges.js":151,"../utils/url.js":153,"./flash-rtmp":120,"./tech":124,"global/window":2,"object.assign":45}],122:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r,a=((r=["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used. \n This may prevent text tracks from loading."]).raw=["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used. \n This may prevent text tracks from loading."],r),l=s(t("./tech.js")),c=s(t("../component")),u=o(t("../utils/dom.js")),h=o(t("../utils/url.js")),d=o(t("../utils/fn.js")),p=s(t("../utils/log.js")),f=s(t("tsml")),m=o((s(t("../../../src/js/tracks/text-track.js")),t("../utils/browser.js"))),g=s(t("global/document")),v=s(t("global/window")),y=s(t("object.assign")),_=s(t("../utils/merge-options.js")),b=s(t("../utils/to-title-case.js")),w=function(t){function e(n,o){var s=this;(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o);var r=n.source,l=!1;if(r&&(this.el_.currentSrc!==r.src||n.tag&&3===n.tag.initNetworkState_)?this.setSource(r):this.handleLateInit_(this.el_),this.el_.hasChildNodes()){for(var c=this.el_.childNodes,u=c.length,g=[];u--;){var v=c[u];"track"===v.nodeName.toLowerCase()&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(v),this.remoteTextTracks().addTrack_(v.track),l||this.el_.hasAttribute("crossorigin")||!h.isCrossOrigin(v.src)||(l=!0)):g.push(v))}for(var y=0;y<g.length;y++)this.el_.removeChild(g[y])}["audio","video"].forEach(function(t){var e=b.default(t);if(s["featuresNative"+e+"Tracks"]){var n=s.el()[t+"Tracks"];n&&n.addEventListener&&(n.addEventListener("change",d.bind(s,s["handle"+e+"TrackChange_"])),n.addEventListener("addtrack",d.bind(s,s["handle"+e+"TrackAdd_"])),n.addEventListener("removetrack",d.bind(s,s["handle"+e+"TrackRemove_"])))}}),this.featuresNativeTextTracks&&(l&&p.default.warn(f.default(a)),this.handleTextTrackChange_=d.bind(this,this.handleTextTrackChange),this.handleTextTrackAdd_=d.bind(this,this.handleTextTrackAdd),this.handleTextTrackRemove_=d.bind(this,this.handleTextTrackRemove),this.proxyNativeTextTracks_()),(m.TOUCH_ENABLED&&
13!0===n.nativeControlsForTouch||m.IS_IPHONE||m.IS_NATIVE_ANDROID)&&this.setControls(!0),this.triggerReady()}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.dispose=function(){var n=this;["audio","video","text"].forEach(function(t){var e=b.default(t),o=n.el_[t+"Tracks"];o&&o.removeEventListener&&(o.removeEventListener("change",n["handle"+e+"TrackChange_"]),o.removeEventListener("addtrack",n["handle"+e+"TrackAdd_"]),o.removeEventListener("removetrack",n["handle"+e+"TrackRemove_"]))}),e.disposeMediaElement(this.el_),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var t=this.options_.tag;if(!t||!1===this.movingMediaElementInDOM){if(t){var n=t.cloneNode(!0);t.parentNode.insertBefore(n,t),e.disposeMediaElement(t),t=n}else{t=g.default.createElement("video");var o=this.options_.tag&&u.getElAttributes(this.options_.tag),s=_.default({},o);
13m.TOUCH_ENABLED&&!0===this.options_.nativeControlsForTouch||delete s.controls,u.setElAttributes(t,y.default(s,{id:this.options_.techId,class:"vjs-tech"}))}}for(var r=["autoplay","preload","loop","muted"],a=r.length-1;a>=0;a--){var l=r[a],c={};void 0!==this.options_[l]&&(c[l]=this.options_[l]),u.setElAttributes(t,c)}return t},e.prototype.handleLateInit_=function(t){if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var e,n,o,s=(e=!1,n=function(){e=!0},this.on("loadstart",n),o=function(){e||this.trigger("loadstart")},this.on("loadedmetadata",o),this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",o),e||this.trigger("loadstart")}),{v:void 0});if("object"==typeof s)return s.v}var r=["loadstart"];r.push("loadedmetadata"),t.readyState>=2&&r.push("loadeddata"),t.readyState>=3&&r.push("canplay"),t.readyState>=4&&r.push("canplaythrough"),this.ready(function(){r.forEach(function(t){this.trigger(t)},this)})}},e.prototype.proxyNativeTextTracks_=function(){var t=this.el().textTracks;if(t){for(var e=0;e<t.length;e++)this.textTracks().addTrack_(t[e]);t.addEventListener&&(t.addEventListener("change",this.handleTextTrackChange_),t.addEventListener("addtrack",this.handleTextTrackAdd_),t.addEventListener("removetrack",this.handleTextTrackRemove_))}},e.prototype.handleTextTrackChange=function(){var t=this.textTracks();this.textTracks().trigger({type:"change",target:t,currentTarget:t,srcElement:t})},e.prototype.handleTextTrackAdd=function(t){this.textTracks().addTrack_(t.track)},e.prototype.handleTextTrackRemove=function(t){this.textTracks().removeTrack_(t.track)},e.prototype.handleVideoTrackChange_=function(){var t=this.videoTracks();this.videoTracks().trigger({type:"change",target:t,currentTarget:t,srcElement:t})},e.prototype.handleVideoTrackAdd_=function(t){this.videoTracks().addTrack_(t.track)},e.prototype.handleVideoTrackRemove_=function(t){this.videoTracks().removeTrack_(t.track)},e.prototype.handleAudioTrackChange_=function(){var t=this.audioTracks();this.audioTracks().trigger({type:"change",target:t,currentTarget:t,srcElement:t})},e.prototype.handleAudioTrackAdd_=function(t){this.audioTracks().addTrack_(t.track)},e.prototype.handleAudioTrackRemove_=function(t){this.audioTracks().removeTrack_(t.track)},e.prototype.play=function(){this.el_.play()},e.prototype.pause=function(){this.el_.pause()},e.prototype.paused=function(){return this.el_.paused},e.prototype.currentTime=function(){return this.el_.currentTime},e.prototype.setCurrentTime=function(t){try{this.el_.currentTime=t}catch(t){p.default(t,"Video is not ready. (Video.js)")}},e.prototype.duration=function(){return this.el_.duration||0},e.prototype.buffered=function(){return this.el_.buffered},e.prototype.volume=function(){return this.el_.volume},e.prototype.setVolume=function(t){this.el_.volume=t},e.prototype.muted=function(){return this.el_.muted},e.prototype.setMuted=function(t){this.el_.muted=t},e.prototype.width=function(){return this.el_.offsetWidth},e.prototype.height=function(){return this.el_.offsetHeight},e.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=v.default.navigator.userAgent;if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},e.prototype.enterFullScreen=function(){var t=this.el_;"webkitDisplayingFullscreen"in t&&this.one("webkitbeginfullscreen",function(){this.one("webkitendfullscreen",function(){this.trigger("fullscreenchange",{isFullscreen:!1})}),this.trigger("fullscreenchange",{isFullscreen:!0})}),t.paused&&t.networkState<=t.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){t.pause(),t.webkitEnterFullScreen()},0)):t.webkitEnterFullScreen()},e.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},e.prototype.src=function(t){return void 0===t?this.el_.src:void this.setSrc(t)},e.prototype.setSrc=function(t){this.el_.src=t},e.prototype.load=function(){this.el_.load()},e.prototype.reset=function(){e.resetMediaElement(this.el_)},e.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},e.prototype.poster=function(){return this.el_.poster},e.prototype.setPoster=function(t){this.el_.poster=t},e.prototype.preload=function(){return this.el_.preload},e.prototype.setPreload=function(t){this.el_.preload=t},e.prototype.autoplay=function(){return this.el_.autoplay},e.prototype.setAutoplay=function(t){this.el_.autoplay=t},e.prototype.controls=function(){return this.el_.controls},e.prototype.setControls=function(t){this.el_.controls=!!t},e.prototype.loop=function(){return this.el_.loop},e.prototype.setLoop=function(t){this.el_.loop=t},e.prototype.error=function(){return this.el_.error},e.prototype.seeking=function(){return this.el_.seeking},e.prototype.seekable=function(){return this.el_.seekable},e.prototype.ended=function(){return this.el_.ended},e.prototype.defaultMuted=function(){return this.el_.defaultMuted},e.prototype.playbackRate=function(){return this.el_.playbackRate},e.prototype.played=function(){return this.el_.played},e.prototype.setPlaybackRate=function(t){this.el_.playbackRate=t},e.prototype.networkState=function(){return this.el_.networkState},e.prototype.readyState=function(){return this.el_.readyState},e.prototype.videoWidth=function(){return this.el_.videoWidth},e.prototype.videoHeight=function(){return this.el_.videoHeight},e.prototype.textTracks=function(){return t.prototype.textTracks.call(this)},e.prototype.addTextTrack=function(e,n,o){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,n,o):t.prototype.addTextTrack.call(this,e,n,o)},e.prototype.addRemoteTextTrack=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(!this.featuresNativeTextTracks)return t.prototype.addRemoteTextTrack.call(this,e);var n=g.default.createElement("track");return e.kind&&(n.kind=e.kind),e.label&&(n.label=e.label),(e.language||e.srclang)&&(n.srclang=e.language||e.srclang),e.default&&(n.default=e.default),e.id&&(n.id=e.id),e.src&&(n.src=e.src),this.el().appendChild(n),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack_(n.track),n},e.prototype.removeRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return t.prototype.removeRemoteTextTrack.call(this,e);var n=void 0,o=void 0,s=this.remoteTextTrackEls().getTrackElementByTrack_(e);for(this.remoteTextTrackEls().removeTrackElement_(s),this.remoteTextTracks().removeTrack_(e),o=(n=this.$$("track")).length;o--;)(e===n[o]||e===n[o].track)&&this.el().removeChild(n[o])},e}(l.default);w.TEST_VID=g.default.createElement("video");var x=g.default.createElement("track");x.kind="captions",x.srclang="en",x.label="English",w.TEST_VID.appendChild(x),w.isSupported=function(){try{w.TEST_VID.volume=.5}catch(t){return!1}
13return!!w.TEST_VID.canPlayType},l.default.withSourceHandlers(w),w.nativeSourceHandler={},w.nativeSourceHandler.canPlayType=function(t){try{return w.TEST_VID.canPlayType(t)}catch(t){return""}},w.nativeSourceHandler.canHandleSource=function(t){var e;return t.type?w.nativeSourceHandler.canPlayType(t.type):t.src?(e=h.getFileExtension(t.src),w.nativeSourceHandler.canPlayType("video/"+e)):""},w.nativeSourceHandler.handleSource=function(t,e){e.setSrc(t.src)},w.nativeSourceHandler.dispose=function(){},w.registerSourceHandler(w.nativeSourceHandler),w.canControlVolume=function(){var t=w.TEST_VID.volume;return w.TEST_VID.volume=t/2+.1,t!==w.TEST_VID.volume},w.canControlPlaybackRate=function(){if(m.IS_ANDROID&&m.IS_CHROME)return!1;var t=w.TEST_VID.playbackRate;return w.TEST_VID.playbackRate=t/2+.1,t!==w.TEST_VID.playbackRate},w.supportsNativeTextTracks=function(){var t;return(t=!!w.TEST_VID.textTracks)&&w.TEST_VID.textTracks.length>0&&(t="number"!=typeof w.TEST_VID.textTracks[0].mode),t&&m.IS_FIREFOX&&(t=!1),!t||"onremovetrack"in w.TEST_VID.textTracks||(t=!1),t},w.supportsNativeVideoTracks=function(){return!!w.TEST_VID.videoTracks},w.supportsNativeAudioTracks=function(){return!!w.TEST_VID.audioTracks},w.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],w.prototype.featuresVolumeControl=w.canControlVolume(),w.prototype.featuresPlaybackRate=w.canControlPlaybackRate(),w.prototype.movingMediaElementInDOM=!m.IS_IOS,w.prototype.featuresFullscreenResize=!0,w.prototype.featuresProgressEvents=!0,w.prototype.featuresNativeTextTracks=w.supportsNativeTextTracks(),w.prototype.featuresNativeVideoTracks=w.supportsNativeVideoTracks(),w.prototype.featuresNativeAudioTracks=w.supportsNativeAudioTracks();var T=void 0,k=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,C=/^video\/mp4/i;w.patchCanPlayType=function(){m.ANDROID_VERSION>=4&&(T||(T=w.TEST_VID.constructor.prototype.canPlayType),w.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&k.test(t)?"maybe":T.call(this,t)}),m.IS_OLD_ANDROID&&(T||(T=w.TEST_VID.constructor.prototype.canPlayType),w.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&C.test(t)?"maybe":T.call(this,t)})},w.unpatchCanPlayType=function(){var t=w.TEST_VID.constructor.prototype.canPlayType;return w.TEST_VID.constructor.prototype.canPlayType=T,T=null,t},w.patchCanPlayType(),w.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},w.resetMediaElement=function(t){if(t){for(var e=t.querySelectorAll("source"),n=e.length;n--;)t.removeChild(e[n]);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},c.default.registerComponent("Html5",w),l.default.registerTech("Html5",w),n.default=w,e.exports=n.default},{"../../../src/js/tracks/text-track.js":134,"../component":67,"../utils/browser.js":140,"../utils/dom.js":143,"../utils/fn.js":145,"../utils/log.js":148,"../utils/merge-options.js":149,"../utils/to-title-case.js":152,"../utils/url.js":153,"./tech.js":124,"global/document":1,"global/window":2,"object.assign":45,tsml:55}],123:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../component.js")),r=o(t("./tech.js")),a=(o(t("global/window")),t("../utils/to-title-case.js")),l=o(a),c=function(t){function e(n,o,a){if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e),t.call(this,n,o,a),o.playerOptions.sources&&0!==o.playerOptions.sources.length)n.src(o.playerOptions.sources);else for(var c=0,u=o.playerOptions.techOrder;c<u.length;c++){var h=l.default(u[c]),d=r.default.getTech(h);if(h||(d=s.default.getComponent(h)),d&&d.isSupported()){n.loadTech_(h);break}}}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(s.default);s.default.registerComponent("MediaLoader",c),n.default=c,e.exports=n.default},{"../component.js":67,"../utils/to-title-case.js":152,"./tech.js":124,"global/window":2}],124:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("../component")),r=o(t("../tracks/html-track-element")),a=o(t("../tracks/html-track-element-list")),l=o(t("../utils/merge-options.js")),c=o(t("../tracks/text-track")),u=o(t("../tracks/text-track-list")),h=(o(t("../tracks/video-track")),t("../tracks/video-track-list")),d=o(h),p=o(t("../tracks/audio-track-list")),f=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}((o(t("../tracks/audio-track")),t("../utils/fn.js"))),m=o(t("../utils/log.js")),g=t("../utils/time-ranges.js"),v=t("../utils/buffer.js"),y=o(t("../media-error.js")),_=o(t("global/window")),b=
13o(t("global/document")),w=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],o=arguments.length<=1||void 0===arguments[1]?function(){}:arguments[1];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),n.reportTouchActivity=!1,t.call(this,null,n,o),this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),this.textTracks_=n.textTracks,this.videoTracks_=n.videoTracks,this.audioTracks_=n.audioTracks,this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),(!1===n.nativeCaptions||!1===n.nativeTextTracks)&&(this.featuresNativeTextTracks=!1),this.featuresNativeTextTracks||this.on("ready",this.emulateTextTracks),this.initTextTrackListeners(),this.initTrackListeners(),this.emitTapEvents()}/*! Time Tracking -------------------------------------------------------------- */return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},e.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},e.prototype.trackProgress=function(){this.stopTrackingProgress(),this.progressInterval=this.setInterval(f.bind(this,function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,1===t&&this.stopTrackingProgress()}),500)},e.prototype.onDurationChange=function(){this.duration_=this.duration()},e.prototype.buffered=function(){return g.createTimeRange(0,0)},e.prototype.bufferedPercent=function(){return v.bufferedPercent(this.buffered(),this.duration_)},e.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},e.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},e.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},e.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},e.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.dispose=function(){this.clearTracks(["audio","video","text"]),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},e.prototype.clearTracks=function(t){var e=this;(t=[].concat(t)).forEach(function(t){for(var n=e[t+"Tracks"]()||[],o=n.length;o--;){var s=n[o];"text"===t&&e.removeRemoteTextTrack(s),n.removeTrack_(s)}})},e.prototype.reset=function(){},e.prototype.error=function(t){return void 0!==t&&(this.error_=t instanceof y.default?t:new y.default(t),this.trigger("error")),this.error_},e.prototype.played=function(){return this.hasStarted_?g.createTimeRange(0,0):g.createTimeRange()},e.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.initTextTrackListeners=function(){var t=f.bind(this,function(){this.trigger("texttrackchange")}),e=this.textTracks();e&&(e.addEventListener("removetrack",t),e.addEventListener("addtrack",t),this.on("dispose",f.bind(this,function(){e.removeEventListener("removetrack",t),e.removeEventListener("addtrack",t)})))},e.prototype.initTrackListeners=function(){var t=this;["video","audio"].forEach(function(e){var n=function(){t.trigger(e+"trackchange")},o=t[e+"Tracks"]();
13o.addEventListener("removetrack",n),o.addEventListener("addtrack",n),t.on("dispose",function(){o.removeEventListener("removetrack",n),o.removeEventListener("addtrack",n)})})},e.prototype.emulateTextTracks=function(){var t=this,e=this.textTracks();if(e){_.default.WebVTT||null==this.el().parentNode||((n=b.default.createElement("script")).src=t.options_["vtt.js"]||"https://cdn.rawgit.com/gkatsev/vtt.js/vjs-v0.12.1/dist/vtt.min.js",n.onload=function(){t.trigger("vttjsloaded")},n.onerror=function(){t.trigger("vttjserror")},t.on("dispose",function(){n.onload=null,n.onerror=null}),_.default.WebVTT=!0,t.el().parentNode.appendChild(n));var n,o=function(){return t.trigger("texttrackchange")},s=function(){o();for(var t=0;t<e.length;t++){var n=e[t];n.removeEventListener("cuechange",o),"showing"===n.mode&&n.addEventListener("cuechange",o)}};s(),e.addEventListener("change",s),this.on("dispose",function(){e.removeEventListener("change",s)})}},e.prototype.videoTracks=function(){return this.videoTracks_=this.videoTracks_||new d.default,this.videoTracks_},e.prototype.audioTracks=function(){return this.audioTracks_=this.audioTracks_||new p.default,this.audioTracks_},e.prototype.textTracks=function(){return this.textTracks_=this.textTracks_||new u.default,this.textTracks_},e.prototype.remoteTextTracks=function(){return this.remoteTextTracks_=this.remoteTextTracks_||new u.default,this.remoteTextTracks_},e.prototype.remoteTextTrackEls=function(){return this.remoteTextTrackEls_=this.remoteTextTrackEls_||new a.default,this.remoteTextTrackEls_},e.prototype.addTextTrack=function(t,e,n){if(!t)throw Error("TextTrack kind is required but was not provided");return x(this,t,e,n)},e.prototype.addRemoteTextTrack=function(t){var e=l.default(t,{tech:this}),n=new r.default(e);return this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack_(n.track),this.textTracks().addTrack_(n.track),n},e.prototype.removeRemoteTextTrack=function(t){this.textTracks().removeTrack_(t);var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack_(t)},e.prototype.setPoster=function(){},e.prototype.canPlayType=function(){return""},e.isTech=function(t){return t.prototype instanceof e||t instanceof e||t===e},e.registerTech=function(t,n){if(e.techs_||(e.techs_={}),!e.isTech(n))throw Error("Tech "+t+" must be a Tech");return e.techs_[t]=n,n},e.getTech=function(t){return e.techs_&&e.techs_[t]?e.techs_[t]:_.default&&_.default.videojs&&_.default.videojs[t]?(m.default.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),_.default.videojs[t]):void 0},e}(s.default);w.prototype.textTracks_,w.prototype.audioTracks_,w.prototype.videoTracks_;var x=function(t,e,n,o){var s=arguments.length<=4||void 0===arguments[4]?{}:arguments[4],r=t.textTracks();s.kind=e,n&&(s.label=n),o&&(s.language=o),s.tech=t;var a=new c.default(s);return r.addTrack_(a),a};w.prototype.featuresVolumeControl=!0,w.prototype.featuresFullscreenResize=!1,w.prototype.featuresPlaybackRate=!1,w.prototype.featuresProgressEvents=!1,w.prototype.featuresTimeupdateEvents=!1,w.prototype.featuresNativeTextTracks=!1,w.withSourceHandlers=function(t){t.registerSourceHandler=function(e,n){var o=t.sourceHandlers;o||(o=t.sourceHandlers=[]),void 0===n&&(n=o.length),o.splice(n,0,e)},t.canPlayType=function(e){for(var n=t.sourceHandlers||[],o=void 0,s=0;s<n.length;s++)if(o=n[s].canPlayType(e))return o;return""},t.selectSourceHandler=function(e){for(var n=t.sourceHandlers||[],o=0;o<n.length;o++)if(n[o].canHandleSource(e))return n[o];return null},t.canPlaySource=function(e){var n=t.selectSourceHandler(e);return n?n.canHandleSource(e):""},["seekable","duration"].forEach(function(t){var e=this[t];"function"==typeof e&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})},t.prototype),t.prototype.setSource=function(e){var n=t.selectSourceHandler(e);return n||(t.nativeSourceHandler?n=t.nativeSourceHandler:m.default.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),n!==t.nativeSourceHandler&&(this.currentSource_=e,this.off(this.el_,"loadstart",t.prototype.firstLoadStartListener_),this.off(this.el_,"loadstart",t.prototype.successiveLoadStartListener_),this.one(this.el_,"loadstart",t.prototype.firstLoadStartListener_)),this.sourceHandler_=n.handleSource(e,this,this.options_),this.on("dispose",this.disposeSourceHandler),this},t.prototype.firstLoadStartListener_=function(){this.one(this.el_,"loadstart",t.prototype.successiveLoadStartListener_)},t.prototype.successiveLoadStartListener_=function(){this.currentSource_=null,this.disposeSourceHandler(),this.one(this.el_,"loadstart",t.prototype.successiveLoadStartListener_)},t.prototype.disposeSourceHandler=function(){this.sourceHandler_&&this.sourceHandler_.dispose&&(this.off(this.el_,"loadstart",t.prototype.firstLoadStartListener_),this.off(this.el_,"loadstart",t.prototype.successiveLoadStartListener_),this.sourceHandler_.dispose())}},s.default.registerComponent("Tech",w),s.default.registerComponent("MediaTechController",w),w.registerTech("Tech",w),n.default=w,e.exports=n.default},{"../component":67,"../media-error.js":108,"../tracks/audio-track":126,"../tracks/audio-track-list":125,"../tracks/html-track-element":128,"../tracks/html-track-element-list":127,"../tracks/text-track":134,"../tracks/text-track-list":132,"../tracks/video-track":139,"../tracks/video-track-list":138,"../utils/buffer.js":141,"../utils/fn.js":145,"../utils/log.js":148,"../utils/merge-options.js":149,"../utils/time-ranges.js":151,"global/document":1,"global/window":2}],125:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("./track-list")),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),a=o(t("global/document")),l=function(t,e){for(var n=0;n<t.length;n++)e.id!==t[n].id&&(t[n].enabled=!1)},c=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);for(var o=void 0,c=n.length-1;c>=0;c--)if(n[c].enabled){l(n,n[c]);break}if(r.IS_IE8){for(var u in o=a.default.createElement("custom"),s.default.prototype)"constructor"!==u&&(
13o[u]=s.default.prototype[u]);for(var u in e.prototype)"constructor"!==u&&(o[u]=e.prototype[u])}return(o=t.call(this,n,o)).changing_=!1,o}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addTrack_=function(e){var n=this;e.enabled&&l(this,e),t.prototype.addTrack_.call(this,e),e.addEventListener&&e.addEventListener("enabledchange",function(){n.changing_||(n.changing_=!0,l(n,e),n.changing_=!1,n.trigger("change"))})},e.prototype.addTrack=function(t){this.addTrack_(t)},e.prototype.removeTrack=function(e){t.prototype.removeTrack_.call(this,e)},e}(s.default);n.default=c,e.exports=n.default},{"../utils/browser.js":140,"./track-list":136,"global/document":1}],126:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=t("./track-enums"),r=o(t("./track")),a=o(t("../utils/merge-options")),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),c=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var o=a.default(n,{kind:s.AudioTrackKind[n.kind]||""}),r=t.call(this,o),c=!1;if(l.IS_IE8)for(var u in e.prototype)"constructor"!==u&&(r[u]=e.prototype[u]);return Object.defineProperty(r,"enabled",{get:function(){return c},set:function(t){"boolean"==typeof t&&t!==c&&(c=t,this.trigger("enabledchange"))}}),o.enabled&&(r.enabled=o.enabled),r.loaded_=!0,r}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default);n.default=c,e.exports=n.default},{"../utils/browser.js":140,"../utils/merge-options":149,"./track":137,"./track-enums":135}],127:[function(t,e,n){"use strict";n.__esModule=!0;var o,s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),r=(o=t("global/document"))&&o.__esModule?o:{default:o},a=function(){function t(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,t);var n=this;if(s.IS_IE8)for(var o in n=r.default.createElement("custom"),t.prototype)"constructor"!==o&&(n[o]=t.prototype[o]);n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var a=0,l=e.length;l>a;a++)n.addTrackElement_(e[a]);return s.IS_IE8?n:void 0}return t.prototype.addTrackElement_=function(t){this.trackElements_.push(t)},t.prototype.getTrackElementByTrack_=function(t){for(var e=void 0,n=0,o=this.trackElements_.length;o>n;n++)if(t===this.trackElements_[n].track){e=this.trackElements_[n];break}return e},t.prototype.removeTrackElement_=function(t){for(var e=0,n=this.trackElements_.length;n>e;e++)if(t===this.trackElements_[e]){this.trackElements_.splice(e,1);break}},t}();n.default=a,e.exports=n.default},{"../utils/browser.js":140,"global/document":1}],128:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),r=o(t("global/document")),a=o(t("../event-target")),l=o(t("../tracks/text-track")),c=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this);var o=void 0,a=this;if(s.IS_IE8)for(var c in a=r.default.createElement("custom"),e.prototype)"constructor"!==c&&(a[c]=e.prototype[c]);var u=new l.default(n);return a.kind=u.kind,a.src=u.src,a.srclang=u.language,a.label=u.label,a.default=u.default,Object.defineProperty(a,"readyState",{get:function(){return o}}),Object.defineProperty(a,"track",{get:function(){return u}}),o=0,u.addEventListener("loadeddata",function(){o=2,a.trigger({type:"load",target:a})}),s.IS_IE8?a:void 0}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(a.default);c.prototype.allowedEvents_={load:"load"},c.NONE=0,c.LOADING=1,c.LOADED=2,c.ERROR=3,n.default=c,e.exports=n.default},{"../event-target":104,"../tracks/text-track":134,"../utils/browser.js":140,"global/document":1}],129:[function(t,e,n){"use strict";n.__esModule=!0;var o,s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),r=(o=t("global/document"))&&o.__esModule?o:{default:o},a=function(){function t(e){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,t);var n=this;if(s.IS_IE8)for(var o in n=r.default.createElement("custom"),t.prototype)"constructor"!==o&&(n[o]=t.prototype[o]);return t.prototype.setCues_.call(n,e),Object.defineProperty(n,"length",{get:function(){return this.length_}}),s.IS_IE8?n:void 0}return t.prototype.setCues_=function(t){var e=this.length||0,n=0,o=t.length;this.cues_=t,this.length_=t.length;var s=function(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})};if(o>e)for(n=e;o>n;n++)s.call(this,n)},t.prototype.getCueById=function(t){for(var e=null,n=0,o=this.length;o>n;n++){var s=this[n];if(s.id===t){e=s;break}}return e},t}();n.default=a,e.exports=n.default},{"../utils/browser.js":140,"global/document":1}],130:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function s(t,e){return"rgba("+parseInt(t[1]+t[1],16)+","+parseInt(t[2]+t[2],16)+","+parseInt(t[3]+t[3],16)+","+e+")"}function r(t,e,n){try{t.style[e]=n}catch(t){}}n.__esModule=!0;var a=o(t("../component")),l=(o(t("../menu/menu.js")),t("../menu/menu-item.js")),c=(o(l),t("../menu/menu-button.js")),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}((o(c),t("../utils/fn.js"))),h=(o(t("global/document")),t("global/window")),d=o(h),p="#222",f="#ccc",m={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',
13script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},g=function(t){function e(n,o,s){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o,s),n.on("loadstart",u.bind(this,this.toggleDisplay)),n.on("texttrackchange",u.bind(this,this.updateDisplay)),n.ready(u.bind(this,function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)return void this.hide();n.on("fullscreenchange",u.bind(this,this.updateDisplay));for(var t=this.options_.playerOptions.tracks||[],e=0;e<t.length;e++){var o=t[e];this.player_.addRemoteTextTrack(o)}var s={captions:1,subtitles:1},r=this.player_.textTracks(),a=void 0,l=void 0;if(r){for(var e=0;e<r.length;e++){var o=r[e];o.default&&("descriptions"!==o.kind||a?o.kind in s&&!l&&(l=o):a=o)}l?l.mode="showing":a&&(a.mode="showing")}}))}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"assertive","aria-atomic":"true"})},e.prototype.clearDisplay=function(){"function"==typeof d.default.WebVTT&&d.default.WebVTT.processCues(d.default,[],this.el_)},e.prototype.updateDisplay=function(){var t=this.player_.textTracks();if(this.clearDisplay(),t){for(var e=null,n=null,o=t.length;o--;){var s=t[o];"showing"===s.mode&&("descriptions"===s.kind?e=s:n=s)}n?this.updateForTrack(n):e&&this.updateForTrack(e)}},e.prototype.updateForTrack=function(t){if("function"==typeof d.default.WebVTT&&t.activeCues){for(var e=this.player_.textTrackSettings.getValues(),n=[],o=0;o<t.activeCues.length;o++)n.push(t.activeCues[o]);d.default.WebVTT.processCues(d.default,n,this.el_);for(var a=n.length;a--;){var l=n[a];if(l){var c=l.displayState;if(e.color&&(c.firstChild.style.color=e.color),e.textOpacity&&r(c.firstChild,"color",s(e.color||"#fff",e.textOpacity)),e.backgroundColor&&(c.firstChild.style.backgroundColor=e.backgroundColor),e.backgroundOpacity&&r(c.firstChild,"backgroundColor",s(e.backgroundColor||"#000",e.backgroundOpacity)),e.windowColor&&(e.windowOpacity?r(c,"backgroundColor",s(e.windowColor,e.windowOpacity)):c.style.backgroundColor=e.windowColor),e.edgeStyle&&("dropshadow"===e.edgeStyle?c.firstChild.style.textShadow="2px 2px 3px "+p+", 2px 2px 4px "+p+", 2px 2px 5px "+p:"raised"===e.edgeStyle?c.firstChild.style.textShadow="1px 1px "+p+", 2px 2px "+p+", 3px 3px "+p:"depressed"===e.edgeStyle?c.firstChild.style.textShadow="1px 1px "+f+", 0 1px "+f+", -1px -1px "+p+", 0 -1px "+p:"uniform"===e.edgeStyle&&(c.firstChild.style.textShadow="0 0 4px "+p+", 0 0 4px "+p+", 0 0 4px "+p+", 0 0 4px "+p)),e.fontPercent&&1!==e.fontPercent){var u=d.default.parseFloat(c.style.fontSize);c.style.fontSize=u*e.fontPercent+"px",c.style.height="auto",c.style.top="auto",c.style.bottom="2px"}e.fontFamily&&"default"!==e.fontFamily&&("small-caps"===e.fontFamily?c.firstChild.style.fontVariant="small-caps":c.firstChild.style.fontFamily=m[e.fontFamily])}}}},e}(a.default);a.default.registerComponent("TextTrackDisplay",g),n.default=g,e.exports=n.default},{"../component":67,"../menu/menu-button.js":109,"../menu/menu-item.js":110,"../menu/menu.js":111,"../utils/fn.js":145,"global/document":1,"global/window":2}],131:[function(t,e,n){"use strict";n.__esModule=!0;var o=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,n){return t[n]&&(e[n]=t[n]),e},{cues:t.cues&&Array.prototype.map.call(t.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})};n.default={textTracksToJson:function(t){var e=t.$$("track"),n=Array.prototype.map.call(e,function(t){return t.track});return Array.prototype.map.call(e,function(t){var e=o(t.track);return t.src&&(e.src=t.src),e}).concat(Array.prototype.filter.call(t.textTracks(),function(t){return -1===n.indexOf(t)}).map(o))},jsonToTextTracks:function(t,e){return t.forEach(function(t){var n=e.addRemoteTextTrack(t).track;
13!t.src&&t.cues&&t.cues.forEach(function(t){return n.addCue(t)})}),e.textTracks()},trackToJson_:o},e.exports=n.default},{}],132:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=s(t("./track-list")),a=o(t("../utils/fn.js")),l=o(t("../utils/browser.js")),c=s(t("global/document")),u=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var o=void 0;if(l.IS_IE8){for(var s in o=c.default.createElement("custom"),r.default.prototype)"constructor"!==s&&(o[s]=r.default.prototype[s]);for(var s in e.prototype)"constructor"!==s&&(o[s]=e.prototype[s])}return t.call(this,n,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addTrack_=function(e){t.prototype.addTrack_.call(this,e),e.addEventListener("modechange",a.bind(this,function(){this.trigger("change")}))},e.prototype.removeTrack_=function(t){for(var e=void 0,n=0,o=this.length;o>n;n++)if(this[n]===t){(e=this[n]).off&&e.off(),this.tracks_.splice(n,1);break}e&&this.trigger({track:e,type:"removetrack"})},e.prototype.getTrackById=function(t){for(var e=null,n=0,o=this.length;o>n;n++){var s=this[n];if(s.id===t){e=s;break}}return e},e}(r.default);n.default=u,e.exports=n.default},{"../utils/browser.js":140,"../utils/fn.js":145,"./track-list":136,"global/document":1}],133:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}function r(t){var e=void 0;return t.selectedOptions?e=t.selectedOptions[0]:t.options&&(e=t.options[t.options.selectedIndex]),e.value}function a(t,e){if(e){var n=void 0;for(n=0;n<t.options.length&&t.options[n].value!==e;n++);t.selectedIndex=n}}n.__esModule=!0;var l=s(t("../component")),c=o(t("../utils/events.js")),u=o(t("../utils/fn.js")),h=s(t("../utils/log.js")),d=s(t("safe-json-parse/tuple")),p=s(t("global/window")),f=function(t){function e(n,o){(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this,n,o),this.hide(),void 0===o.persistTextTrackSettings&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),c.on(this.$(".vjs-done-button"),"click",u.bind(this,function(){this.saveSettings(),this.hide()})),c.on(this.$(".vjs-default-button"),"click",u.bind(this,function(){this.$(".vjs-fg-color > select").selectedIndex=0,this.$(".vjs-bg-color > select").selectedIndex=0,this.$(".window-color > select").selectedIndex=0,this.$(".vjs-text-opacity > select").selectedIndex=0,this.$(".vjs-bg-opacity > select").selectedIndex=0,this.$(".vjs-window-opacity > select").selectedIndex=0,this.$(".vjs-edge-style select").selectedIndex=0,this.$(".vjs-font-family select").selectedIndex=0,this.$(".vjs-font-percent select").selectedIndex=2,this.updateDisplay()})),c.on(this.$(".vjs-fg-color > select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-bg-color > select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".window-color > select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-text-opacity > select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-bg-opacity > select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-window-opacity > select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-font-percent select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-edge-style select"),"change",u.bind(this,this.updateDisplay)),c.on(this.$(".vjs-font-family select"),"change",u.bind(this,this.updateDisplay)),this.options_.persistTextTrackSettings&&this.restoreSettings()}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:'<div class="vjs-tracksettings">\n <div class="vjs-tracksettings-colors">\n <div class="vjs-fg-color vjs-tracksetting">\n <label class="vjs-label">Foreground</label>\n <select>\n <option value="">---</option>\n <option value="#FFF">White</option>\n <option value="#000">Black</option>\n <option value="#F00">Red</option>\n <option value="#0F0">Green</option>\n <option value="#00F">Blue</option>\n <option value="#FF0">Yellow</option>\n <option value="#F0F">Magenta</option>\n <option value="#0FF">Cyan</option>\n </select>
13\n <span class="vjs-text-opacity vjs-opacity">\n <select>\n <option value="">---</option>\n <option value="1">Opaque</option>\n <option value="0.5">Semi-Opaque</option>\n </select>\n </span>\n </div> <!-- vjs-fg-color -->\n <div class="vjs-bg-color vjs-tracksetting">\n <label class="vjs-label">Background</label>\n <select>\n <option value="">---</option>\n <option value="#FFF">White</option>\n <option value="#000">Black</option>\n <option value="#F00">Red</option>\n <option value="#0F0">Green</option>\n <option value="#00F">Blue</option>\n <option value="#FF0">Yellow</option>\n <option value="#F0F">Magenta</option>\n <option value="#0FF">Cyan</option>\n </select>\n <span class="vjs-bg-opacity vjs-opacity">\n <select>\n <option value="">---</option>\n <option value="1">Opaque</option>\n <option value="0.5">Semi-Transparent</option>\n <option value="0">Transparent</option>\n </select>\n </span>\n </div> <!-- vjs-bg-color -->\n <div class="window-color vjs-tracksetting">\n <label class="vjs-label">Window</label>\n <select>\n <option value="">---</option>\n <option value="#FFF">White</option>\n <option value="#000">Black</option>\n <option value="#F00">Red</option>\n <option value="#0F0">Green</option>\n <option value="#00F">Blue</option>\n <option value="#FF0">Yellow</option>\n <option value="#F0F">Magenta</option>\n <option value="#0FF">Cyan</option>\n </select>\n <span class="vjs-window-opacity vjs-opacity">\n <select>\n <option value="">---</option>\n <option value="1">Opaque</option>\n <option value="0.5">Semi-Transparent</option>\n <option value="0">Transparent</option>\n </select>\n </span>\n </div> <!-- vjs-window-color -->\n </div> <!-- vjs-tracksettings -->\n <div class="vjs-tracksettings-font">\n <div class="vjs-font-percent vjs-tracksetting">\n <label class="vjs-label">Font Size</label>\n <select>\n <option value="0.50">50%</option>\n <option value="0.75">75%</option>\n <option value="1.00" selected>100%</option>\n <option value="1.25">125%</option>\n <option value="1.50">150%</option>\n <option value="1.75">175%</option>\n <option value="2.00">200%</option>\n <option value="3.00">300%</option>\n <option value="4.00">400%</option>\n </select>\n </div> <!-- vjs-font-percent -->\n <div class="vjs-edge-style vjs-tracksetting">\n <label class="vjs-label">Text Edge Style</label>\n <select>\n <option value="none">None</option>\n <option value="raised">Raised</option>\n <option value="depressed">Depressed</option>\n <option value="uniform">Uniform</option>\n <option value="dropshadow">Dropshadow</option>\n </select>\n </div> <!-- vjs-edge-style -->\n <div class="vjs-font-family vjs-tracksetting">\n <label class="vjs-label">Font Family</label>\n <select>\n <option value="">Default</option>\n <option value="monospaceSerif">Monospace Serif</option>\n <option value="proportionalSerif">Proportional Serif</option>\n <option value="monospaceSansSerif">Monospace Sans-Serif</option>\n <option value="proportionalSansSerif">Proportional Sans-Serif</option>\n <option value="casual">Casual</option>\n <option value="script">Script</option>\n <option value="small-caps">Small Caps</option>\n </select>\n </div> <!-- vjs-font-family -->\n </div>\n </div>\n <div class="vjs-tracksettings-controls">\n <button class="vjs-default-button">Defaults</button>\n <button class="vjs-done-button">Done</button>\n </div>'})},e.prototype.getValues=function(){var t=r(this.$(".vjs-edge-style select")),e=r(this.$(".vjs-font-family select")),n=r(this.$(".vjs-fg-color > select")),o=r(this.$(".vjs-text-opacity > select")),s=r(this.$(".vjs-bg-color > select")),a=r(this.$(".vjs-bg-opacity > select")),l=r(this.$(".window-color > select")),c={backgroundOpacity:a,textOpacity:o,windowOpacity:r(this.$(".vjs-window-opacity > select")),edgeStyle:t,fontFamily:e,color:n,backgroundColor:s,windowColor:l,fontPercent:p.default.parseFloat(r(this.$(".vjs-font-percent > select")))};for(var u in c)(""===c[u]||"none"===c[u]||"fontPercent"===u&&1===c[u])&&delete c[u];return c},e.prototype.setValues=function(t){a(this.$(".vjs-edge-style select"),t.edgeStyle),a(this.$(".vjs-font-family select"),t.fontFamily),a(this.$(".vjs-fg-color > select"),t.color),a(this.$(".vjs-text-opacity > select"),t.textOpacity),a(this.$(".vjs-bg-color > select"),t.backgroundColor),a(this.$(".vjs-bg-opacity > select"),t.backgroundOpacity),a(this.$(".window-color > select"),t.windowColor),a(this.$(".vjs-window-opacity > select"),t.windowOpacity);var e=t.fontPercent;e&&(e=e.toFixed(2)),a(this.$(".vjs-font-percent > select"),e)},e.prototype.restoreSettings=function(){var t=void 0,e=void 0;try{var n=d.default(p.default.localStorage.getItem("vjs-text-track-settings"));t=n[0],e=n[1],t&&h.default.error(t)}catch(t){h.default.warn(t)}e&&this.setValues(e)},e.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.getOwnPropertyNames(t).length>0?p.default.localStorage.setItem("vjs-text-track-settings",JSON.stringify(t)):p.default.localStorage.removeItem("vjs-text-track-settings")}catch(t){h.default.warn(t)}}},e.prototype.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},e}(l.default);l.default.registerComponent("TextTrackSettings",f),n.default=f,e.exports=n.default},{"../component":67,"../utils/events.js":144,"../utils/fn.js":145,"../utils/log.js":148,"global/window":2,"safe-json-parse/tuple":54}],134:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=s(t("./text-track-cue-list")),a=o(t("../utils/fn.js")),l=t("./track-enums"),c=s(t("../utils/log.js")),u=(s(t("global/document")),t("global/window")),h=s(u),d=s(t("./track.js")),p=t("../utils/url.js"),f=s(t("xhr")),m=s(t("../utils/merge-options")),g=o(t("../utils/browser.js")),v=function(t,e){var n=new h.default.WebVTT.Parser(h.default,h.default.vttjs,h.default.WebVTT.StringDecoder()),o=[];n.oncue=function(t){e.addCue(t)},n.onparsingerror=function(t){o.push(t)},n.onflush=function(){e.trigger({type:"loadeddata",target:e})},n.parse(t),o.length>0&&o.forEach(function(t){return c.default.error(t)}),n.flush()},y=function(t,e){var n={uri:t},o=p.isCrossOrigin(t);o&&(n.cors=o),f.default(n,a.bind(this,function(t,n,o){var s;return t?c.default.error(t,n):(e.loaded_=!0,void("function"!=typeof h.default.WebVTT?e.tech_&&(s=function(){return v(o,e)},e.tech_.on("vttjsloaded",s),e.tech_.on("vttjserror",function(){c.default.error("vttjs failed to load, stopping trying to process "+e.src),e.tech_.off("vttjsloaded",s)})):v(o,e)))}))},_=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}
13(this,e),!n.tech)throw Error("A tech was not provided.");var o=m.default(n,{kind:l.TextTrackKind[n.kind]||"subtitles",language:n.language||n.srclang||""}),s=l.TextTrackMode[o.mode]||"disabled",c=o.default;("metadata"===o.kind||"chapters"===o.kind)&&(s="hidden");var u=t.call(this,o);if(u.tech_=o.tech,g.IS_IE8)for(var h in e.prototype)"constructor"!==h&&(u[h]=e.prototype[h]);u.cues_=[],u.activeCues_=[];var d=new r.default(u.cues_),p=new r.default(u.activeCues_),f=!1,v=a.bind(u,function(){this.activeCues,f&&(this.trigger("cuechange"),f=!1)});return"disabled"!==s&&u.tech_.on("timeupdate",v),Object.defineProperty(u,"default",{get:function(){return c},set:function(){}}),Object.defineProperty(u,"mode",{get:function(){return s},set:function(t){l.TextTrackMode[t]&&("showing"===(s=t)&&this.tech_.on("timeupdate",v),this.trigger("modechange"))}}),Object.defineProperty(u,"cues",{get:function(){return this.loaded_?d:null},set:function(){}}),Object.defineProperty(u,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return p;for(var t=this.tech_.currentTime(),e=[],n=0,o=this.cues.length;o>n;n++){var s=this.cues[n];s.startTime<=t&&s.endTime>=t?e.push(s):s.startTime===s.endTime&&s.startTime<=t&&s.startTime+.5>=t&&e.push(s)}if(f=!1,e.length!==this.activeCues_.length)f=!0;else for(var n=0;n<e.length;n++)-1===this.activeCues_.indexOf(e[n])&&(f=!0);return this.activeCues_=e,p.setCues_(this.activeCues_),p},set:function(){}}),o.src?(u.src=o.src,y(o.src,u)):u.loaded_=!0,u}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addCue=function(t){var e=this.tech_.textTracks();if(e)for(var n=0;n<e.length;n++)e[n]!==this&&e[n].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},e.prototype.removeCue=function(t){for(var e=!1,n=0,o=this.cues_.length;o>n;n++)this.cues_[n]===t&&(this.cues_.splice(n,1),e=!0);e&&this.cues.setCues_(this.cues_)},e}(d.default);_.prototype.allowedEvents_={cuechange:"cuechange"},n.default=_,e.exports=n.default},{"../utils/browser.js":140,"../utils/fn.js":145,"../utils/log.js":148,"../utils/merge-options":149,"../utils/url.js":153,"./text-track-cue-list":129,"./track-enums":135,"./track.js":137,"global/document":1,"global/window":2,xhr:56}],135:[function(t,e,n){"use strict";n.__esModule=!0,n.default={VideoTrackKind:{alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},AudioTrackKind:{alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},TextTrackKind:{subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},TextTrackMode:{disabled:"disabled",hidden:"hidden",showing:"showing"}},e.exports=n.default},{}],136:[function(t,e,n){"use strict";function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function s(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=s(t("../event-target")),a=(o(t("../utils/fn.js")),t("../utils/browser.js")),l=o(a),c=s(t("global/document")),u=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],o=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e),t.call(this),!o&&(o=this,l.IS_IE8))for(var s in o=c.default.createElement("custom"),e.prototype)"constructor"!==s&&(o[s]=e.prototype[s]);o.tracks_=[],Object.defineProperty(o,"length",{get:function(){return this.tracks_.length}});for(var r=0;r<n.length;r++)o.addTrack_(n[r]);return o}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addTrack_=function(t){var e=this.tracks_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.tracks_[e]}}),-1===this.tracks_.indexOf(t)&&(this.tracks_.push(t),this.trigger({track:t,type:"addtrack"}))},e.prototype.removeTrack_=function(t){for(var e=void 0,n=0,o=this.length;o>n;n++)if(this[n]===t){(e=this[n]).off&&e.off(),this.tracks_.splice(n,1);break}e&&this.trigger({track:e,type:"removetrack"})},e.prototype.getTrackById=function(t){for(var e=null,n=0,o=this.length;o>n;n++){var s=this[n];if(s.id===t){e=s;break}}return e},e}(r.default);for(var h in u.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},u.prototype.allowedEvents_)u.prototype["on"+h]=null;n.default=u,e.exports=n.default},{"../event-target":104,"../utils/browser.js":140,"../utils/fn.js":145,"global/document":1}],137:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}n.__esModule=!0;var r=s(t("../utils/browser.js")),a=o(t("global/document")),l=s(t("../utils/guid.js")),c=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e),t.call(this);var o=this;if(r.IS_IE8)for(var s in o=a.default.createElement("custom"),e.prototype)"constructor"!==s&&(o[s]=e.prototype[s]);var c={id:n.id||"vjs_track_"+l.newGUID(),kind:n.kind||"",label:n.label||"",language:n.language||""},u=function(t){Object.defineProperty(o,t,{get:function(){return c[t]},set:function(){}})};for(var h in c)u(h);return o}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(o(t("../event-target")).default);n.default=c,e.exports=n.default},{"../event-target":104,"../utils/browser.js":140,"../utils/guid.js":147,"global/document":1}],138:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("./track-list")),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),a=o(t("global/document")),l=function(t,e){for(var n=0;n<t.length;n++)e.id!==t[n].id&&(t[n].selected=!1)},c=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);for(var o=void 0,c=n.length-1;c>=0;c--)if(n[c].selected){l(n,n[c]);break}if(r.IS_IE8){for(var u in o=a.default.createElement("custom"),s.default.prototype)"constructor"!==u&&(
13o[u]=s.default.prototype[u]);for(var u in e.prototype)"constructor"!==u&&(o[u]=e.prototype[u])}return(o=t.call(this,n,o)).changing_=!1,Object.defineProperty(o,"selectedIndex",{get:function(){for(var t=0;t<this.length;t++)if(this[t].selected)return t;return -1},set:function(){}}),o}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.addTrack_=function(e){var n=this;e.selected&&l(this,e),t.prototype.addTrack_.call(this,e),e.addEventListener&&e.addEventListener("selectedchange",function(){n.changing_||(n.changing_=!0,l(n,e),n.changing_=!1,n.trigger("change"))})},e.prototype.addTrack=function(t){this.addTrack_(t)},e.prototype.removeTrack=function(e){t.prototype.removeTrack_.call(this,e)},e}(s.default);n.default=c,e.exports=n.default},{"../utils/browser.js":140,"./track-list":136,"global/document":1}],139:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=t("./track-enums"),r=o(t("./track")),a=o(t("../utils/merge-options")),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../utils/browser.js")),c=function(t){function e(){var n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];(function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")})(this,e);var o=a.default(n,{kind:s.VideoTrackKind[n.kind]||""}),r=t.call(this,o),c=!1;if(l.IS_IE8)for(var u in e.prototype)"constructor"!==u&&(r[u]=e.prototype[u]);return Object.defineProperty(r,"selected",{get:function(){return c},set:function(t){"boolean"==typeof t&&t!==c&&(c=t,this.trigger("selectedchange"))}}),o.selected&&(r.selected=o.selected),r}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default);n.default=c,e.exports=n.default},{"../utils/browser.js":140,"../utils/merge-options":149,"./track":137,"./track-enums":135}],140:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s,r,a,l,c=o(t("global/document")),u=o(t("global/window")),h=u.default.navigator.userAgent,d=/AppleWeb
13Kit\/([\d.]+)/i.exec(h),p=d?parseFloat(d.pop()):null,f=/iPad/i.test(h);n.IS_IPAD=f;var m=/iPhone/i.test(h)&&!f;n.IS_IPHONE=m;var g=/iPod/i.test(h);n.IS_IPOD=g,n.IS_IOS=m||f||g;var v=(s=h.match(/OS (\d+)_/i))&&s[1]?s[1]:void 0;n.IOS_VERSION=v;var y=/Android/i.test(h);n.IS_ANDROID=y;var _=(l=h.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i))?(r=l[1]&&parseFloat(l[1]),a=l[2]&&parseFloat(l[2]),r&&a?parseFloat(l[1]+"."+l[2]):r||null):null;n.ANDROID_VERSION=_;var b=y&&/webkit/i.test(h)&&2.3>_;n.IS_OLD_ANDROID=b,n.IS_NATIVE_ANDROID=y&&5>_&&537>p;var w=/Firefox/i.test(h);n.IS_FIREFOX=w;var x=/Edge/i.test(h);n.IS_EDGE=x;var T=!x&&/Chrome/i.test(h);n.IS_CHROME=T;var k=/MSIE\s8\.0/.test(h);n.IS_IE8=k;var C=!!("ontouchstart"in u.default||u.default.DocumentTouch&&c.default instanceof u.default.DocumentTouch);n.TOUCH_ENABLED=C;var j="backgroundSize"in c.default.createElement("video").style;n.BACKGROUND_SIZE_SUPPORTED=j},{"global/document":1,"global/window":2}],141:[function(t,e,n){"use strict";n.__esModule=!0,n.bufferedPercent=function(t,e){var n,s,r=0;if(!e)return 0;t&&t.length||(t=o.createTimeRange(0,0));for(var a=0;a<t.length;a++)n=t.start(a),(s=t.end(a))>e&&(s=e),r+=s-n;return r/e};var o=t("./time-ranges.js")},{"./time-ranges.js":151}],142:[function(t,e,n){"use strict";n.__esModule=!0;var o,s=(o=t("./log.js"))&&o.__esModule?o:{default:o},r={get:function(t,e){return t[e]},set:function(t,e,n){return t[e]=n,!0}};n.default=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if("function"==typeof Proxy){var n,o=(n={},Object.keys(e).forEach(function(t){r.hasOwnProperty(t)&&(n[t]=function(){return s.default.warn(e[t]),r[t].apply(this,arguments)})}),{v:new Proxy(t,n)});if("object"==typeof o)return o.v}return t},e.exports=n.default},{"./log.js":148}],143:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function s(t){return"string"==typeof t&&/\S/.test(t)}function r(t){if(/\s/.test(t))throw Error("class has illegal whitespace characters")}function a(t){return function(e,n){return s(e)?(s(n)&&(n=_.default.querySelector(n)),(d(n)?n:_.default)[t](e)):_.default[t](null)}}function l(t,e){return t.classList?t.classList.contains(e):(r(e),RegExp("(^|\\s)"+e+"($|\\s)").test(t.className))}function c(t,e){return t.classList?t.classList.add(e):l(t,e)||(t.className=(t.className+" "+e).trim()),t}function u(t,e){return t.classList?t.classList.remove(e):(r(e),t.className=t.className.split(/\s+/).filter(function(t){return t!==e}).join(" ")),t}function h(t){var e=void 0;if(t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var n=_.default.documentElement,o=_.default.body,s=n.clientLeft||o.clientLeft||0,r=b.default.pageXOffset||o.scrollLeft,a=e.left+r-s,l=n.clientTop||o.clientTop||0,c=b.default.pageYOffset||o.scrollTop;return{left:Math.round(a),top:Math.round(e.top+c-l)}}function d(t){return!!t&&"object"==typeof t&&1===t.nodeType}function p(t){return!!t&&"object"==typeof t&&3===t.nodeType}function f(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function m(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&&(t=t()),d(t)||p(t)?t:"string"==typeof t&&/\S/.test(t)?_.default.createTextNode(t):void 0}).filter(function(t){return t})}function g(t,e){return m(e).forEach(function(e){return t.appendChild(e)}),t}n.__esModule=!0,n.getEl=function(t){return 0===t.indexOf("#")&&(t=t.slice(1)),_.default.getElementById(t)},n.createEl=function(){var t=arguments.length<=0||void 0===arguments[0]?"div":arguments[0],e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],o=_.default.createElement(t);return Object.getOwnPropertyNames(e).forEach(function(t){var n=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(x.default.warn(T.default(y,t,n)),o.setAttribute(t,n)):o[t]=n}),Object.getOwnPropertyNames(n).forEach(function(t){n[t],o.setAttribute(t,n[t])}),o},n.textContent=function(t,e){void 0===t.textContent?t.innerText=e:t.textContent=e},n.insertElFirst=function(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)},n.getElData=function(t){var e=t[C];
13return e||(e=t[C]=w.newGUID()),k[e]||(k[e]={}),k[e]},n.hasElData=function(t){var e=t[C];return!!e&&!!Object.getOwnPropertyNames(k[e]).length},n.removeElData=function(t){var e=t[C];if(e){delete k[e];try{delete t[C]}catch(e){t.removeAttribute?t.removeAttribute(C):t[C]=null}}},n.hasElClass=l,n.addElClass=c,n.removeElClass=u,n.toggleElClass=function(t,e,n){var o=l(t,e);return"function"==typeof n&&(n=n(t,e)),"boolean"!=typeof n&&(n=!o),n!==o?(n?c(t,e):u(t,e),t):void 0},n.setElAttributes=function(t,e){Object.getOwnPropertyNames(e).forEach(function(n){var o=e[n];null==o||!1===o?t.removeAttribute(n):t.setAttribute(n,!0===o?"":o)})},n.getElAttributes=function(t){var e,n,o,s;if(e={},t&&t.attributes&&t.attributes.length>0){n=t.attributes;for(var r=n.length-1;r>=0;r--)o=n[r].name,s=n[r].value,("boolean"==typeof t[o]||-1!==",autoplay,controls,loop,muted,default,".indexOf(","+o+","))&&(s=null!==s),e[o]=s}return e},n.blockTextSelection=function(){_.default.body.focus(),_.default.onselectstart=function(){return!1}},n.unblockTextSelection=function(){_.default.onselectstart=function(){return!0}},n.findElPosition=h,n.getPointerPosition=function(t,e){var n={},o=h(t),s=t.offsetWidth,r=t.offsetHeight,a=o.top,l=o.left,c=e.pageY,u=e.pageX;return e.changedTouches&&(u=e.changedTouches[0].pageX,c=e.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(a-c+r)/r)),n.x=Math.max(0,Math.min(1,(u-l)/s)),n},n.isEl=d,n.isTextNode=p,n.emptyEl=f,n.normalizeContent=m,n.appendContent=g,n.insertContent=function(t,e){return g(f(t),e)};var v,y=((v=["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."]).raw=["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."],v),_=o(t("global/document")),b=o(t("global/window")),w=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("./guid.js")),x=o(t("./log.js")),T=o(t("tsml")),k={},C="vdata"+(new Date).getTime(),j=a("querySelector");n.$=j;var S=a("querySelectorAll");n.$$=S},{"./guid.js":147,"./log.js":148,"global/document":1,"global/window":2,tsml:55}],144:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t,e,n){if(Array.isArray(e))return u(r,t,e,n);var o=h.getElData(t);o.handlers||(o.handlers={}),o.handlers[e]||(o.handlers[e]=[]),n.guid||(n.guid=d.newGUID()),o.handlers[e].push(n),o.dispatcher||(o.disabled=!1,o.dispatcher=function(e,n){if(!o.disabled){e=l(e);var s=o.handlers[e.type];if(s)for(var r=s.slice(0),a=0,c=r.length;c>a&&!e.isImmediatePropagationStopped();a++)r[a].call(t,e,n)}}),1===o.handlers[e].length&&(t.addEventListener?t.addEventListener(e,o.dispatcher,!1):t.attachEvent&&t.attachEvent("on"+e,o.dispatcher))}function a(t,e,n){if(h.hasElData(t)){var o=h.getElData(t);if(o.handlers){if(Array.isArray(e))return u(a,t,e,n);var s=function(e){o.handlers[e]=[],c(t,e)};if(e){var r=o.handlers[e];if(r){if(!n)return void s(e);if(n.guid)for(var l=0;l<r.length;l++)r[l].guid===n.guid&&r.splice(l--,1);c(t,e)}}else for(var d in o.handlers)s(d)}}}function l(t){function e(){return!0}function n(){return!1}if(!t||!t.isPropagationStopped){var o=t||p.default.event;for(var s in t={},o)"layerX"!==s&&"layerY"!==s&&"keyLocation"!==s&&"webkitMovementX"!==s&&"webkitMovementY"!==s&&("returnValue"===s&&o.preventDefault||(t[s]=o[s]));if(t.target||(t.target=t.srcElement||f.default),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){o.preventDefault&&o.preventDefault(),t.returnValue=!1,o.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){o.stopPropagation&&o.stopPropagation(),t.cancelBubble=!0,o.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=n,t.stopImmediatePropagation=function(){o.stopImmediatePropagation&&o.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=n,null!=t.clientX){var r=f.default.documentElement,a=f.default.body;t.pageX=t.clientX+(r&&r.scrollLeft||a&&a.scrollLeft||0)-(r&&r.clientLeft||a&&a.clientLeft||0),t.pageY=t.clientY+(r&&r.scrollTop||a&&a.scrollTop||0)-(r&&r.clientTop||a&&a.clientTop||0)}t.which=t.charCode||t.keyCode,null!=t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}function c(t,e){var n=h.getElData(t);0===n.handlers[e].length&&(delete n.handlers[e],t.removeEventListener?t.removeEventListener(e,n.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&h.removeElData(t)}
13function u(t,e,n,o){n.forEach(function(n){t(e,n,o)})}n.__esModule=!0,n.on=r,n.off=a,n.trigger=function t(e,n,o){var s=h.hasElData(e)?h.getElData(e):{},r=e.parentNode||e.ownerDocument;if("string"==typeof n&&(n={type:n,target:e}),n=l(n),s.dispatcher&&s.dispatcher.call(e,n,o),r&&!n.isPropagationStopped()&&!0===n.bubbles)t.call(null,r,n,o);else if(!r&&!n.defaultPrevented){var a=h.getElData(n.target);n.target[n.type]&&(a.disabled=!0,"function"==typeof n.target[n.type]&&n.target[n.type](),a.disabled=!1)}return!n.defaultPrevented},n.one=function t(e,n,o){if(Array.isArray(n))return u(t,e,n,o);var s=function t(){a(e,n,t),o.apply(this,arguments)};s.guid=o.guid=o.guid||d.newGUID(),r(e,n,s)},n.fixEvent=l;var h=s(t("./dom.js")),d=s(t("./guid.js")),p=o(t("global/window")),f=o(t("global/document"))},{"./dom.js":143,"./guid.js":147,"global/document":1,"global/window":2}],145:[function(t,e,n){"use strict";n.__esModule=!0;var o=t("./guid.js");n.bind=function(t,e,n){e.guid||(e.guid=o.newGUID());var s=function(){return e.apply(t,arguments)};return s.guid=n?n+"_"+e.guid:e.guid,s}},{"./guid.js":147}],146:[function(t,e,n){"use strict";n.__esModule=!0,n.default=function(t){var e,n,o,s=arguments.length<=1||void 0===arguments[1]?t:arguments[1];return e=Math.floor((t=0>t?0:t)%60),n=Math.floor(t/60%60),o=Math.floor(t/3600),(isNaN(t)||t===1/0)&&(o=n=e="-"),n=(((o=o>0||Math.floor(s/3600)>0?o+":":"")||Math.floor(s/60%60)>=10)&&10>n?"0"+n:n)+":",o+n+(e=10>e?"0"+e:e)},e.exports=n.default},{}],147:[function(t,e,n){"use strict";n.__esModule=!0,n.newGUID=function(){return o++};var o=1},{}],148:[function(t,e,n){"use strict";function o(t,e){var n=Array.prototype.slice.call(e),o=function(){},s=r.default.console||{log:o,warn:o,error:o};t?n.unshift(t.toUpperCase()+":"):t="log",a.history.push(n),n.unshift("VIDEOJS:"),s[t].apply?s[t].apply(s,n):s[t](n.join(" "))}n.__esModule=!0;var s,r=(s=t("global/window"))&&s.__esModule?s:{default:s},a=function(){o(null,arguments)};a.history=[],a.error=function(){o("error",arguments)},a.warn=function(){o("warn",arguments)},n.default=a,e.exports=n.default},{"global/window":2}],149:[function(t,e,n){"use strict";function o(t){return!!t&&"object"==typeof t&&"[object Object]"===t.toString()&&t.constructor===Object}function s(){var t=Array.prototype.slice.call(arguments);return t.unshift({}),t.push(l),a.default.apply(null,t),t[0]}n.__esModule=!0,n.default=s;var r,a=(r=t("lodash-compat/object/merge"))&&r.__esModule?r:{default:r},l=function(t,e){return o(e)?o(t)?void 0:s(e):e};e.exports=n.default},{"lodash-compat/object/merge":40}],150:[function(t,e,n){"use strict";n.__esModule=!0;var o,s=(o=t("global/document"))&&o.__esModule?o:{default:o};n.createStyleElement=function(t){var e=s.default.createElement("style");return e.className=t,e},n.setTextContent=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e}},{"global/document":1}],151:[function(t,e,n){"use strict";function o(t,e){return Array.isArray(t)?s(t):void 0===t||void 0===e?s():s([[t,e]])}function s(t){return void 0===t||0===t.length?{length:0,start:function(){throw Error("This TimeRanges object is empty")},end:function(){throw Error("This TimeRanges object is empty")}}:{length:t.length,start:r.bind(null,"start",0,t),end:r.bind(null,"end",1,t)}}function r(t,e,n,o){return void 0===o&&(l.default.warn("DEPRECATED: Function '"+t+"' on 'TimeRanges' called without an index argument."),o=0),function(t,e,n){if(0>e||e>n)throw Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is greater than or equal to the maximum bound ("+n+").")}(t,o,n.length-1),n[o][e]}n.__esModule=!0,n.createTimeRanges=o;var a,l=(a=t("./log.js"))&&a.__esModule?a:{default:a};n.createTimeRange=o},{"./log.js":148}],152:[function(t,e,n){"use strict";n.__esModule=!0,n.default=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},e.exports=n.default},{}],153:[function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var s=o(t("global/document")),r=o(t("global/window")),a=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],n=s.default.createElement("a");n.href=t;
13var o=""===n.host&&"file:"!==n.protocol,r=void 0;o&&((r=s.default.createElement("div")).innerHTML='<a href="'+t+'"></a>',n=r.firstChild,r.setAttribute("style","display:none; position:absolute;"),s.default.body.appendChild(r));for(var a={},l=0;l<e.length;l++)a[e[l]]=n[e[l]];return"http:"===a.protocol&&(a.host=a.host.replace(/:80$/,"")),"https:"===a.protocol&&(a.host=a.host.replace(/:443$/,"")),o&&s.default.body.removeChild(r),a};n.parseUrl=a,n.getAbsoluteURL=function(t){if(!t.match(/^https?:\/\//)){var e=s.default.createElement("div");e.innerHTML='<a href="'+t+'">x</a>',t=e.firstChild.href}return t},n.getFileExtension=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(e)return e.pop().toLowerCase()}return""},n.isCrossOrigin=function(t){var e=r.default.location,n=a(t);return(":"===n.protocol?e.protocol:n.protocol)+n.host!==e.protocol+e.host}},{"global/document":1,"global/window":2}],154:[function(e,n,o){"use strict";function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}o.__esModule=!0;var a=r(e("global/window")),l=r(e("global/document")),c=s(e("./setup")),u=s(e("./utils/stylesheet.js")),h=r(e("./component")),d=r(e("./event-target")),p=s(e("./utils/events.js")),f=r(e("./player")),m=r(e("./plugins.js")),g=r(e("../../src/js/utils/merge-options.js")),v=s(e("./utils/fn.js")),y=r(e("./tracks/text-track.js")),_=r(e("./tracks/audio-track.js")),b=r(e("./tracks/video-track.js")),w=(r(e("object.assign")),e("./utils/time-ranges.js")),x=r(e("./utils/format-time.js")),T=r(e("./utils/log.js")),k=s(e("./utils/dom.js")),C=s(e("./utils/browser.js")),j=s(e("./utils/url.js")),S=r(e("./extend.js")),P=r(e("lodash-compat/object/merge")),E=r(e("./utils/create-deprecation-proxy.js")),O=r(e("xhr")),M=r(e("./tech/tech.js")),A=(r(e("./tech/html5.js")),e("./tech/flash.js"));r(A),"undefined"==typeof HTMLVideoElement&&(l.default.createElement("video"),l.default.createElement("audio"),l.default.createElement("track"));var I=function t(e,n,o){var s=void 0;if("string"==typeof e){if(0===e.indexOf("#")&&(e=e.slice(1)),t.getPlayers()[e])return n&&T.default.warn('Player "'+e+'" is already initialised. Options will not be applied.'),o&&t.getPlayers()[e].ready(o),t.getPlayers()[e];s=k.getEl(e)}else s=e;if(!s||!s.nodeName)throw TypeError("The element or ID supplied is not valid. (videojs)");return s.player||f.default.players[s.playerId]||new f.default(s,n,o)};if(!0!==a.default.VIDEOJS_NO_DYNAMIC_STYLE){var z=k.$(".vjs-styles-defaults");if(!z){z=u.createStyleElement("vjs-styles-defaults");var N=k.$("head");N.insertBefore(z,N.firstChild),u.setTextContent(z,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}c.autoSetupTimeout(1,I),I.VERSION="5.10.2",I.options=f.default.prototype.options_,I.getPlayers=function(){return f.default.players},I.players=E.default(f.default.players,{get:"Access to videojs.players is deprecated; use videojs.getPlayers instead",set:"Modification of videojs.players is deprecated"}),I.getComponent=h.default.getComponent,I.registerComponent=function(t,e){M.default.isTech(e)&&T.default.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),h.default.registerComponent.call(h.default,t,e)},I.getTech=M.default.getTech,I.registerTech=M.default.registerTech,I.browser=C,I.TOUCH_ENABLED=C.TOUCH_ENABLED,I.extend=S.default,I.mergeOptions=g.default,I.bind=v.bind,I.plugin=m.default,I.addLanguage=function(t,e){var n;return t=(""+t).toLowerCase(),P.default(I.options.languages,((n={})[t]=e,n))[t]},I.log=T.default,I.createTimeRange=I.createTimeRanges=w.createTimeRanges,I.formatTime=x.default,I.parseUrl=j.parseUrl,I.isCrossOrigin=j.isCrossOrigin,I.EventTarget=d.default,I.on=p.on,I.one=p.one,I.off=p.off,I.trigger=p.trigger,I.xhr=O.default,I.TextTrack=y.default,I.AudioTrack=_.default,I.VideoTrack=b.default,I.isEl=k.isEl,I.isTextNode=k.isTextNode,I.createEl=k.createEl,I.hasClass=k.hasElClass,I.addClass=k.addElClass,I.removeClass=k.removeElClass,I.toggleClass=k.toggleElClass,I.setAttributes=k.setElAttributes,I.getAttributes=k.getElAttributes,I.emptyEl=k.emptyEl,I.appendContent=k.appendContent,I.insertContent=k.insertContent,"function"==typeof t&&t.amd?t("videojs",[],function(){return I}):"object"==typeof o&&"object"==typeof n&&(n.exports=I),o.default=I,n.exports=o.default},{"../../src/js/utils/merge-options.js":149,"./component":67,"./event-target":104,"./extend.js":105,"./player":113,"./plugins.js":114,"./setup":118,"./tech/flash.js":121,"./tech/html5.js":122,"./tech/tech.js":124,"./tracks/audio-track.js":126,"./tracks/text-track.js":134,"./tracks/video-track.js":139,"./utils/browser.js":140,"./utils/create-deprecation-proxy.js":142,"./utils/dom.js":143,"./utils/events.js":144,"./ut
13ils/fn.js":145,"./utils/format-time.js":146,"./utils/log.js":148,"./utils/stylesheet.js":150,"./utils/time-ranges.js":151,"./utils/url.js":153,"global/document":1,"global/window":2,"lodash-compat/object/merge":40,"object.assign":45,xhr:56}]},{},[154])(154)}),function(t){var e=t.vttjs={},n=e.VTTCue,o=e.VTTRegion,s=t.VTTCue,r=t.VTTRegion;e.shim=function(){e.VTTCue=n,e.VTTRegion=o},e.restore=function(){e.VTTCue=s,e.VTTRegion=r}}(this),function(t,e){function n(t){return"string"==typeof t&&!!l[t.toLowerCase()]&&t.toLowerCase()}function o(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)t[o]=n[o]}return t}function s(t,e,s){var l=this,c=/MSIE\s8\.0/.test(navigator.userAgent),u={};c?l=document.createElement("custom"):u.enumerable=!0,l.hasBeenReset=!1;var h="",d=!1,p=t,f=e,m=s,g=null,v="",y=!0,_="auto",b="start",w=50,x="middle",T=50,k="middle";return Object.defineProperty(l,"id",o({},u,{get:function(){return h},set:function(t){h=""+t}})),Object.defineProperty(l,"pauseOnExit",o({},u,{get:function(){return d},set:function(t){d=!!t}})),Object.defineProperty(l,"startTime",o({},u,{get:function(){return p},set:function(t){if("number"!=typeof t)throw TypeError("Start time must be set to a number.");p=t,this.hasBeenReset=!0}})),Object.defineProperty(l,"endTime",o({},u,{get:function(){return f},set:function(t){if("number"!=typeof t)throw TypeError("End time must be set to a number.");f=t,this.hasBeenReset=!0}})),Object.defineProperty(l,"text",o({},u,{get:function(){return m},set:function(t){m=""+t,this.hasBeenReset=!0}})),Object.defineProperty(l,"region",o({},u,{get:function(){return g},set:function(t){g=t,this.hasBeenReset=!0}})),Object.defineProperty(l,"vertical",o({},u,{get:function(){return v},set:function(t){var e="string"==typeof t&&!!a[t.toLowerCase()]&&t.toLowerCase();if(!1===e)throw SyntaxError("An invalid or illegal string was specified.");v=e,this.hasBeenReset=!0}})),Object.defineProperty(l,"snapToLines",o({},u,{get:function(){return y},set:function(t){y=!!t,this.hasBeenReset=!0}})),Object.defineProperty(l,"line",o({},u,{get:function(){return _},set:function(t){if("number"!=typeof t&&t!==r)throw SyntaxError("An invalid number or illegal string was specified.");_=t,this.hasBeenReset=!0}})),Object.defineProperty(l,"lineAlign",o({},u,{get:function(){return b},set:function(t){var e=n(t);if(!e)throw SyntaxError("An invalid or illegal string was specified.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(l,"position",o({},u,{get:function(){return w},set:function(t){if(0>t||t>100)throw Error("Position must be between 0 and 100.");w=t,this.hasBeenReset=!0}})),Object.defineProperty(l,"positionAlign",o({},u,{get:function(){return x},set:function(t){var e=n(t);if(!e)throw SyntaxError("An invalid or illegal string was specified.");x=e,this.hasBeenReset=!0}})),Object.defineProperty(l,"size",o({},u,{get:function(){return T},set:function(t){if(0>t||t>100)throw Error("Size must be between 0 and 100.");T=t,this.hasBeenReset=!0}})),Object.defineProperty(l,"align",o({},u,{get:function(){return k},set:function(t){var e=n(t);if(!e)throw SyntaxError("An invalid or illegal string was specified.");k=e,this.hasBeenReset=!0}})),l.displayState=void 0,c?l:void 0}var r="auto",a={"":!0,lr:!0,rl:!0},l={start:!0,middle:!0,end:!0,left:!0,right:!0};s.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.VTTCue=t.VTTCue||s,e.VTTCue=s}(this,this.vttjs||{}),function(t,e){function n(t){return"number"==typeof t&&t>=0&&100>=t}function o(){var t=100,e=3,o=0,r=100,a=0,l=100,c="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!n(e))throw Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(t){if(!n(t))throw Error("RegionAnchorX must be between 0 and 100.");r=t}},regionAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!n(t))throw Error("RegionAnchorY must be between 0 and 100.");o=t}},viewportAnchorY:{enumerable:!0,get:function(){return l},set:function(t){if(!n(t))throw Error("ViewportAnchorY must be between 0 and 100.");l=t}},viewportAnchorX:{enumerable:!0,get:function(){return a}
13,set:function(t){if(!n(t))throw Error("ViewportAnchorX must be between 0 and 100.");a=t}},scroll:{enumerable:!0,get:function(){return c},set:function(t){var e="string"==typeof t&&!!s[t.toLowerCase()]&&t.toLowerCase();if(!1===e)throw SyntaxError("An invalid or illegal string was specified.");c=e}}})}var s={"":!0,up:!0};t.VTTRegion=t.VTTRegion||o,e.VTTRegion=o}(this,this.vttjs||{}),function(t){function e(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function n(t){function e(t,e,n,o){return 3600*(0|t)+60*(0|e)+(0|n)+(0|o)/1e3}var n=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return n?n[3]?e(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?e(n[1],n[2],0,n[4]):e(0,n[1],n[2],n[4]):null}function o(){this.values=h(null)}function s(t,e,n,o){var s=o?t.split(o):[t];for(var r in s)if("string"==typeof s[r]){var a=s[r].split(n);2===a.length&&e(a[0],a[1])}}function r(t,e){function o(t){return d[t]}for(var s,r=t.document.createElement("div"),a=r,l=[];null!==(s=function(){if(!e)return null;var t,n=e.match(/^([^<]*)(<[^>]+>?)?/);return t=n[1]?n[1]:n[2],e=e.substr(t.length),t}());)if("<"!==s[0])a.appendChild(t.document.createTextNode(function(t){for(;v=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(v[0],o);return t}(s)));else{if("/"===s[1]){l.length&&l[l.length-1]===s.substr(2).replace(">","")&&(l.pop(),a=a.parentNode);continue}var c,u,h,g=n(s.substr(1,s.length-2));if(g){h=t.document.createProcessingInstruction("timestamp",g),a.appendChild(h);continue}var v=s.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v||!(h=function(e,n){var o=p[e];if(!o)return null;var s=t.document.createElement(o);s.localName=o;var r=f[e];return r&&n&&(s[r]=n.trim()),s}(v[1],v[3]))||(c=a,m[(u=h).localName]&&m[u.localName]!==c.localName))continue;v[2]&&(h.className=v[2].substr(1).replace("."," ")),l.push(v[1]),a.appendChild(h),a=h}return r}function a(){}function l(t,e,n){var o=/MSIE\s8\.0/.test(navigator.userAgent),s="rgba(255, 255, 255, 1)",l="rgba(0, 0, 0, 0.8)";o&&(s="rgb(255, 255, 255)",l="rgb(0, 0, 0)"),a.call(this),this.cue=e,this.cueDiv=r(t,e.text);var c={color:s,backgroundColor:l,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};o||(c.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",c.unicodeBidi="plaintext"),this.applyStyles(c,this.cueDiv),this.div=t.document.createElement("div"),c={textAlign:"middle"===e.align?"center":e.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},o||(c.direction=function(t){function e(t,e){for(var n=e.childNodes.length-1;n>=0;n--)t.push(e.childNodes[n])}var n,o=[],s="";if(!t||!t.childNodes)return"ltr";for(e(o,t);s=function t(n){if(!n||!n.length)return null;var o=n.pop(),s=o.textContent||o.innerText;if(s){var r=s.match(/^.*(\n|\r)/);return r?(n.length=0,r[0]):s}return"ruby"===o.tagName?t(n):o.childNodes?(e(n,o),t(n)):void 0}(o);)for(var r=0;r<s.length;r++){n=s.charCodeAt(r);for(var a=0;a<g.length;a++)if(g[a]===n)return"rtl"}return"ltr"}(this.cueDiv),c.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(c),this.div.appendChild(this.cueDiv);var u=0;switch(e.positionAlign){case"start":u=e.position;break;case"middle":u=e.position-e.size/2;break;case"end":u=e.position-e.size}this.applyStyles(""===e.vertical?{left:this.formatStyle(u,"%"),width:this.formatStyle(e.size,"%")}:{top:this.formatStyle(u,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function c(t){var e,n,o,s,r=/MSIE\s8\.0/.test(navigator.userAgent);if(t.div){n=t.div.offsetHeight,o=t.div.offsetWidth,s=t.div.offsetTop;var a=(a=t.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();t=t.div.getBoundingClientRect(),e=a?Math.max(a[0]&&a[0].height||0,t.height/a.length):0}this.left=t.left,this.right=t.right,this.top=t.top||s,this.height=t.height||n,this.bottom=t.bottom||s+(t.height||n),this.width=t.width||o,this.lineHeight=void 0!==e?e:t.lineHeight,r&&!this.lineHeight&&(this.lineHeight=13)}function u(){}var h=Object.create||function(){function t(){}return function(e){if(1!=arguments.length)throw Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();e.prototype=h(Error.prototype),e.prototype.constructor=e,e.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,n){for(var o=0;o<n.length;++o)if(e===n[o]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e))>
13=0&&100>=e&&(this.set(t,e),!0)}};var d={"&":"&","<":"<",">":">","‎":"â","‏":"â"," ":"\xa0"},p={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},f={v:"title",lang:"lang"},m={rt:"ruby"},g
vendor: 10,850 bytes, line 13
13=[1470,1472,1475,1478,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1520,1521,1522,1523,1524,1544,1547,1549,1563,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1645,1646,1647,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1765,1766,1774,1775,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1807,1808,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1969,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2e3,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2036,2037,2042,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2074,2084,2088,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2112,2113,2114,2115,2116,2117,2118,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2142,2208,2210,2211,2212,2213,2214,2215,2216,2217,2218,2219,2220,8207,64285,64287,64288,64289,64290,64291,64292,64293,64294,64295,64296,64298,64299,64300,64301,64302,64303,64304,64305,64306,64307,64308,64309,64310,64312,64313,64314,64315,64316,64318,64320,64321,64323,64324,64326,64327,64328,64329,64330,64331,64332,64333,64334,64335,64336,64337,64338,64339,64340,64341,64342,64343,64344,64345,64346,64347,64348,64349,64350,64351,64352,64353,64354,64355,64356,64357,64358,64359,64360,64361,64362,64363,64364,64365,64366,64367,64368,64369,64370,64371,64372,64373,64374,64375,64376,64377,64378,64379,64380,64381,64382,64383,64384,64385,64386,64387,64388,64389,64390,64391,64392,64393,64394,64395,64396,64397,64398,64399,64400,64401,64402,64403,64404,64405,64406,64407,64408,64409,64410,64411,64412,64413,64414,64415,64416,64417,64418,64419,64420,64421,64422,64423,64424,64425,64426,64427,64428,64429,64430,64431,64432,64433,64434,64435,64436,64437,64438,64439,64440,64441,64442,64443,64444,64445,64446,64447,64448,64449,64467,64468,64469,64470,64471,64472,64473,64474,64475,64476,64477,64478,64479,64480,64481,64482,64483,64484,64485,64486,64487,64488,64489,64490,64491,64492,64493,64494,64495,64496,64497,64498,64499,64500,64501,64502,64503,64504,64505,64506,64507,64508,64509,64510,64511,64512,64513,64514,64515,64516,64517,64518,64519,64520,64521,64522,64523,64524,64525,64526,64527,64528,64529,64530,64531,64532,64533,64534,64535,64536,64537,64538,64539,64540,64541,64542,64543,64544,64545,64546,64547,64548,64549,64550,64551,64552,64553,64554,64555,64556,64557,64558,64559,64560,64561,64562,64563,64564,64565,64566,64567,64568,64569,64570,64571,64572,64573,64574,64575,64576,64577,64578,64579,64580,64581,64582,64583,64584,64585,64586,64587,64588,64589,64590,64591,64592,64593,64594,64595,64596,64597,64598,64599,64600,64601,64602,64603,64604,64605,64606,64607,64608,64609,64610,64611,64612,64613,64614,64615,64616,64617,64618,64619,64620,64621,64622,64623,64624,64625,64626,64627,64628,64629,64630,64631,64632,64633,64634,64635,64636,64637,64638,64639,64640,64641,64642,64643,64644,64645,64646,64647,64648,64649,64650,64651,64652,64653,64654,64655,64656,64657,64658,64659,64660,64661,64662,64663,64664,64665,64666,64667,64668,64669,64670,64671,64672,64673,64674,64675,64676,64677,64678,64679,64680,64681,64682,64683,64684,64685,64686,64687,64688,64689,64690,64691,64692,64693,64694,64695,64696,64697,64698,64699,64700,64701,64702,64703,64704,64705,64706,64707,64708,64709,64710,64711,64712,64713,64714,64715,64716,64717,64718,64719,64720,64721,64722,64723,64724,64725,64726,64727,64728,64729,64730,64731,64732,64733,64734,64735,64736,64737,64738,64739,64740,64741,64742,64743,64744,64745,64746,64747,64748,64749,64750,64751,64752,64753,64754,64755,64756,64757,64758,64759,64760,64761,64762,64763,64764,64765,64766,64767,64768,64769,64770,64771,64772,64773,64774,64775,64776,64777,64778,64779,64780,64781,64782,64783,64784,64785,64786,64787,64788,64789,64790,64791,64792,64793,64794,64795,64796,64797,64798,64799,64800,64801,64802,64803,64804,64805,64806,64807,64808,64809,64810,64811,64812,64813,64814,64815,64816,64817,64818,64819,64820,64821,64822,64823,64824,64825,64826,64827,64828,64829,64848,64849,64850,64851,64852,64853,64854,64855,64856,64857,64858,64859,64860,64861,64862,64863,64864,64865,64866,64867,64868,64869,64870,64871,64872,64873,64874,64875,64876,64877,64878,64879,64880,64881,64882,64883,64884,64885,64886,64887,64888,64889,64890,64891,64892,64893,64894,64895,64896,64897,64898,64899,64900,64901,64902,64903,64904,64905,64906,64907,64908,64909,64910,64911,64914,64915,64916,64917,64918,64919,64920,64921,64922,64923,64924,64925,64926,64927,64928,64929,64930,64931,64932,64933,64934,64935,64936,64937,64938,64939,64940,64941,64942,64943,64944,64945,64946,64947,64948,64949,64950,64951,64952,64953,64954,64955,64956,64957,64958,64959,64960,64961,64962,64963,64964,64965,64966,64967,65008,65009,65010,65011,65012,65013,65014,65015,65016,65017,65018,65019,65020,65136,65137,65138,65139,65140,65142,65143,65144,65145,65146,65147,65148,65149,65150,65151,65152,65153,65154,65155,65156,65157,65158,65159,65160,65161,65162,65163,65164,65165,65166,65167,65168,65169,65170,65171,65172,65173,65174,65175,65176,65177,65178,65179,65180,65181,65182,65183,65184,65185,65186,65187,65188,65189,65190,65191,65192,65193,65194,65195,65196,65197,65198,65199,65200,65201,65202,65203,65204,65205,65206,65207,65208,65209,65210,65211,65212,65213,65214,65215,65216,65217,65218,65219,65220,65221,65222,65223,65224,65225,65226,65227,65228,65229,65230,65231,65232,65233,65234,65235,65236,65237,65238,65239,65240,65241,65242,65243,65244,65245,65246,65247,65248,65249,65250,65251,65252,65253,65254,65255,65256,65257,65258,65259,65260,65261,65262,65263,65264,65265,65266,65267,65268,65269,65270,65271,65272,65273,65274,65275,65276,67584,67585,67586,67587,67588,67589,67592,67594,67595,67596,67597,67598,67599,67600,67601,67602,67603,67604,67605,67606,67607,67608,67609,67610,67611,67612,67613,67614,67615,67616,67617,67618,67619,67620,67621,67622,67623,67624,67625,67626,67627,67628,67629,67630,67631,67632,67633,67634,67635,67636,67637,67639,67640,67644,67647,67648,67649,67650,67651,67652,67653,67654,67655,67656,67657,67658,67659,67660,67661,67662,67663,67664,67665,67666,67667,67668,67669,67671,67672,67673,67674,67675,67676,67677,67678,67679,67840,67841,67842,67843,67844,67845,67846,67847,67848,67849,67850,67851,67852,67853,67854,67855,67856,67857,67858,67859,67860,67861,67862,67863,67864,67865,67866,67867,67872,67873,67874,67875,67876,67877,67878,67879,67880,67881,67882,67883,67884,67885,67886,67887,67888,67889,67890,67891,67892,67893,67894,67895,67896,67897,67903,67968,67969,67970,67971,67972,67973,67974,67975,67976,67977,67978,67979,67980,67981,67982,67983,67984,67985,67986,67987,67988,67989,67990,67991,67992,67993,67994,67995,67996,67997,67998,67999,68e3,68001,68002,68003,68004,68005,68006,68007,68008,68009,68010,68011,68012,68013,68014,68015,68016,68017,68018,68019,68020,68021,68022,68023,68030,68031,68096,68112,68113,68114,68115,68117,68118,68119,68121,68122,68123,68124,68125,68126,68127,68128,68129,68130,68131,68132,68133,68134,68135,68136,68137,68138,68139,68140,68141,68142,68143,68144,68145,68146,68147,68160,68161,68162,68163,68164,68165,68166,68167,68176,68177,68178,68179,68180,68181,68182,68183,68184,68192,68193,68194,68195,68196,68197,68198,68199,68200,68201,68202,68203,68204,68205,68206,68207,68208,68209,68210,68211,68212,68213,68214,68215,68216,68217,68218,68219,68220,68221,68222,68223,68352,68353,68354,68355,68356,68357,68358,68359,68360,68361,68362,68363,68364,68365,68366,68367,68368,68369,68370,68371,68372,68373,68374,68375,68376,68377,68378,68379,68380,68381,68382,68383,68384,68385,68386,68387,68388,68389,68390,68391,68392,68393,68394,68395,68396,68397,68398,68399,68400,68401,68402,68403,68404,68405,68416,68417,68418,68419,68420,68421,68422,68423,68424,68425,68426,68427,68428,68429,68430,68431,68432,68433,68434,68435,68436,68437,68440,68441,68442,68443,68444,68445,68446,68447,68448,68449,68450,68451,68452,68453,68454,68455,68456,68457,68458,68459,68460,68461,68462,68463,68464,68465,68466,68472,68473,68474,68475,68476,68477,68478,68479,68608,68609,68610,68611,68612,68613,68614,68615,68616,68617,68618,68619,68620,68621,68622,68623,68624,68625,68626,68627,68628,68629,68630,68631,68632,68633,68634,68635,68636,68637,68638,68639,68640,68641,68642,68643,68644,68645,68646,68647,68648,68649,68650,68651,68652,68653,68654,68655,68656,68657,68658,68659,68660,68661,68662,68663,68664,68665,68666,68667,68668,68669,68670,68671,68672,68673,68674,68675,68676,68677,68678,68679,68680,126464,126465,126466,126467,126469,126470,126471,126472,126473,126474,126475,126476,126477,126478,126479,126480,126481,126482,126483,126484,126485,126486,126487,126488,126489,126490,126491,126492,126493,126494,126495,126497,126498,126500,126503,126505,126506,126507,126508,126509,126510,126511,126512,126513,126514,126516,126517,126518,126519,126521,126523,126530,126535,126537,126539,126541,126542,126543,126545,126546,126548,126551,126553,126555,126557,126559,126561,126562,126564,126567,126568,126569,126570,126572,126573,126574,126575,126576,126577,126578,126580,126581,126582,126583,126585,126586,126587,126588,126590,126592,126593,126594,126595,126596,126597,126598,126599,126600,126601,126603,126604,126605,126606,126607,126608,126609,126610,126611,126612,126613,126614,126615,126616,126617,126618,126619,126625,126626,126627,126629,126630,126631,126632,126633,126635,126636,126637,126638,126639,126640,126641,126642,126643,126644,126645,126646,126647,126648,126649,126650,126651,1114109];
vendor: 2,395 bytes, line 13
13a.prototype.applyStyles=function(t,e){for(var n in e=e||this.div,t)t.hasOwnProperty(n)&&(e.style[n]=t[n])},a.prototype.formatStyle=function(t,e){return 0===t?0:t+e},l.prototype=h(a.prototype),l.prototype.constructor=l,c.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},c.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top},c.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1},c.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},c.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}},c.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},c.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},c.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,o=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||o,height:t.height||e,bottom:t.bottom||o+(t.height||e),width:t.width||n}},u.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},u.convertCueToDOMTree=function(t,e){return t&&e?r(t,e):null},u.processCues=function(t,e,n){if(!t||!e||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var o=t.document.createElement("div");if(o.style.position="absolute",o.style.left="0",o.style.right="0",o.style.top="0",o.style.bottom="0",o.style.margin="1.5%",n.appendChild(o),function(t){for(var e=0;e<t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}
13(e)){var s=[],r=c.getSimpleBoxPosition(o),a={font:Math.round(5*r.height)/100+"px sans-serif"};!function(){for(var n,u,h=0;h<e.length;h++)u=e[h],n=new l(t,u,a),o.appendChild(n.div),function(t,e,n,o){var s=new c(e),r=e.cue,a=function(t){if("number"==typeof t.line&&(t.snapToLines||t.line>=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return -1;for(var e=t.track,n=e.textTrackList,o=0,s=0;s<n.length&&n[s]!==e;s++)"showing"===n[s].mode&&o++;return -1*++o}(r),l=[];if(r.snapToLines){switch(r.vertical){case"":l=["+y","-y"],u="height";break;case"rl":l=["+x","-x"],u="width";break;case"lr":l=["-x","+x"],u="width"}var u,h=s.lineHeight,d=h*Math.round(a),p=n[u]+h,f=l[0];Math.abs(d)>p&&(d=(0>d?-1:1)*(Math.ceil(p/h)*h)),0>a&&(d+=""===r.vertical?n.height:n.width,l=l.reverse()),s.move(f,d)}else{var m=s.lineHeight/n.height*100;switch(r.lineAlign){case"middle":a-=m/2;break;case"end":a-=m}switch(r.vertical){case"":e.applyStyles({top:e.formatStyle(a,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(a,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(a,"%")})}l=["+y","-x","+x","-y"],s=new c(e)}var g=function(t,e){for(var s,r=new c(t),a=1,l=0;l<e.length;l++){for(;t.overlapsOppositeAxis(n,e[l])||t.within(n)&&t.overlapsAny(o);)t.move(e[l]);if(t.within(n))return t;var u=t.intersectPercentage(n);a>u&&(s=new c(t),a=u),t=new c(r)}return s||r}(s,l);e.move(g.toCSSCompatValues(n))}(0,n,r,s),u.displayState=n.div,s.push(c.getSimpleBoxPosition(n))}()}else for(var u=0;u<e.length;u++)o.appendChild(e[u].displayState)},u.Parser=function(t,e,n){n||(n=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},u.Parser.prototype={reportOrThrowError:function(t){if(!(t instanceof e))throw t;this.onparsingerror&&this.onparsingerror(t)},parse:function(t){function r(){for(var t=l.buffer,e=0;e<t.length&&"\r"!==t[e]&&"\n"!==t[e];)++e;var n=t.substr(0,e);return"\r"===t[e]&&++e,"\n"===t[e]&&++e,l.buffer=t.substr(e),n}var a,l=this;t&&(l.buffer+=l.decoder.decode(t,{stream:!0}));try{if("INITIAL"===l.state){if(!/\r\n|\n/.test(l.buffer))return this;var c,u=(a=r()).match(/^WEBVTT([ \t].*)?$/);if(!u||!u[0])throw new e(e.Errors.BadSignature);l.state="HEADER"}for(var h=!1;l.buffer&&/\r\n|\n/.test(l.buffer);)switch(h?h=!1:a=r(),l.state){case"HEADER":/:/.test(a)?(c=a,s(c,function(t,e){"Region"===t&&function(t){var e=new o;if(s(t,function(t,n){switch(t){case"id":e.set(t,n);break;case"width":e.percent(t,n);break;case"lines":e.integer(t,n);break;case"regionanchor":case"viewportanchor":var s=n.split(",");if(2!==s.length)break;var r=new o;if(r.percent("x",s[0]),r.percent("y",s[1]),!r.has("x")||!r.has("y"))break;e.set(t+"X",r.get("x")),e.set(t+"Y",r.get("y"));break;case"scroll":e.alt(t,n,["up"])}},/=/,/\s/),e.has("id")){var n=new(l.vttjs.VTTRegion||l.window.VTTRegion);n.width=e.get("width",100),n.lines=e.get("lines",3),n.regionAnchorX=e.get("regionanchorX",0),n.regionAnchorY=e.get("regionanchorY",100),n.viewportAnchorX=e.get("viewportanchorX",0),n.viewportAnchorY=e.get("viewportanchorY",100),n.scroll=e.get("scroll",""),l.onregion&&l.onregion(n),l.regionList.push({id:e.get("id"),region:n})}}(e)},/:/)):a||(l.state="ID");continue;case"NOTE":a||(l.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(a)){l.state="NOTE";break}if(!a)continue;if(l.cue=new(l.vttjs.VTTCue||l.window.VTTCue)(0,0,""),l.state="CUE",-1===a.indexOf("-->")){l.cue.id=a;continue}case"CUE":try{(function(t,r,a){function l(){var o=n(t);if(null===o)throw new e(e.Errors.BadTimeStamp,"Malformed timestamp: "+p);return t=t.replace(/^[^\sa-zA-Z-]+/,""),o}function c(){t=t.replace(/^\s+/,"")}var u,h,d,p=t;if(c(),r.startTime=l(),c(),"-->"!==t.substr(0,3))throw new e(e.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+p);t=t.substr(3),c(),r.endTime=l(),c(),u=t,h=r,d=new o,s(u,function(t,e){switch(t){case"region":for(var n=a.length-1;n>=0;n--)if(a[n].id===e){d.set(t,a[n].region);break}break;case"vertical":d.alt(t,e,["rl","lr"]);break;case"line":var o=e.split(","),s=o[0];d.integer(t,s),d.percent(t,s)&&d.set("snapToLines",!1),d.alt(t,s,["auto"]),2===o.length&&d.alt("lineAlign",o[1],["start","middle","end"]);break;case"position":o=e.split(","),d.percent(t,o[0]),2===o.length&&d.alt("positionAlign",o[1],["start","middle","end"]);break;case"size":d.percent(t,e);break;case"align":d.alt(t,e,["start","middle","end","left","right"])}},/:/,/\s/),h.region=d.get("region",null),h.vertical=d.get("vertical",""),h.line=d.get("line","auto"),h.lineAlign=d.get("lineAlign","start"),h.snapToLines=d.get("snapToLines",!0),h.size=d.get("size",100),h.align=d.get("align","middle"),h.position=d.get("position",{start:0,left:0,middle:50,end:100,right:100},h.align),h.positionAlign=d.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},h.align)})(a,l.cue,l.regionList)}catch(t){l.reportOrThrowError(t),l.cue=null,l.state="BADCUE";continue}l.state="CUETEXT";continue;case"CUETEXT":var d=-1!==a.indexOf("-->");if(!a||d&&(h=!0)){l.oncue&&l.oncue(l.cue),l.cue=null,l.state="ID";continue}l.cue.text&&(l.cue.text+="\n"),l.cue.text+=a;continue;case"BADCUE":a||(l.state="ID");continue}}catch(t){l.reportOrThrowError(t),"CUETEXT"===l.state&&l.cue&&l.oncue&&l.oncue(l.cue),l.cue=null,l.state="INITIAL"===l.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new e(e.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}},t.WebVTT=u}(this,this.vttjs||{}),function(t,e){"function"==typeof define&&define.amd?define(["video.js"],function(n){return t.Youtube=e(n)}):"object"==typeof module&&module.exports?module.exports=t.Youtube=e(require("video.js")):t.Youtube=e(t.videojs)}(this,function(t){"use strict";var e,n,o,s,r,a=t.getComponent("Tech"),l=t.extend(a,{constructor:function(t,e){a.call(this,t,e),this.setPoster(t.poster),this.setSrc(this.options_.source,!0),setTimeout((function(){this.el_.parentNode.className+=" vjs-youtube",c&&(this.el_.parentNode.className+=" vjs-youtube-mobile"),l.isApiReady?this.initYTPlayer():l.apiReadyQueue.push(this)}).bind(this))},dispose:function(){this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-youtube","").replace(" vjs-youtube-mobile","")},createEl:function(){var t=document.createElement("div");t.setAttribute("id",this.options_.techId),t.setAttribute("style","width:100%;height:100%;top:0;left:0;position:absolute");var e=document.createElement("div");if(e.appendChild(t),!c&&!this.options_.ytControls){var n=document.createElement("div");n.setAttribute("class","vjs-iframe-blocker"),n.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),n.onclick=(function(){this.pause()}).bind(this),e.appendChild(n)}return e},initYTPlayer:function(){var t={controls:0,modestbranding:1,rel:0,showinfo:0,loop:this.options_.loop?1:0};void 0!==this.options_.autohide&&(t.autohide=this.options_.autohide),void 0!==this.options_.cc_load_policy&&(t.cc_load_policy=this.options_.cc_load_policy),void 0!==this.options_.ytControls&&(t.controls=this.options_.ytControls),void 0!==this.options_.disablekb&&(t.disablekb=this.options_.disablekb),void 0!==this.options_.end&&(t.end=this.options_.end),void 0!==this.options_.color&&(t.color=this.options_.color),t.controls?void 0!==this.options_.fs&&
13(t.fs=this.options_.fs):t.fs=0,void 0!==this.options_.end&&(t.end=this.options_.end),void 0!==this.options_.hl?t.hl=this.options_.hl:void 0!==this.options_.language&&(t.hl=this.options_.language.substr(0,2)),void 0!==this.options_.iv_load_policy&&(t.iv_load_policy=this.options_.iv_load_policy),void 0!==this.options_.list?t.list=this.options_.list:this.url&&void 0!==this.url.listId&&(t.list=this.url.listId),void 0!==this.options_.listType&&(t.listType=this.options_.listType),void 0!==this.options_.modestbranding&&(t.modestbranding=this.options_.modestbranding),void 0!==this.options_.playlist&&(t.playlist=this.options_.playlist),void 0!==this.options_.playsinline&&(t.playsinline=this.options_.playsinline),void 0!==this.options_.rel&&(t.rel=this.options_.rel),void 0!==this.options_.showinfo&&(t.showinfo=this.options_.showinfo),void 0!==this.options_.start&&(t.start=this.options_.start),void 0!==this.options_.theme&&(t.theme=this.options_.theme),this.activeVideoId=this.url?this.url.videoId:null,this.activeList=t.list,this.ytPlayer=new YT.Player(this.options_.techId,{videoId:this.activeVideoId,playerVars:t,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onError:this.onPlayerError.bind(this)}})},onPlayerReady:function(){this.playerReady_=!0,this.triggerReady(),this.playOnReady&&this.play()},onPlayerPlaybackQualityChange:function(){},onPlayerStateChange:function(t){var e=t.data;if(e!==this.lastState){switch(e){case -1:this.trigger("loadedmetadata"),this.trigger("durationchange");break;case YT.PlayerState.ENDED:this.trigger("ended");break;case YT.PlayerState.PLAYING:this.trigger("timeupdate"),this.trigger("durationchange"),this.trigger("playing"),this.trigger("play"),this.isSeeking&&this.onSeeked();break;case YT.PlayerState.PAUSED:this.trigger("canplay"),this.isSeeking?this.onSeeked():this.trigger("pause");break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate"),this.player_.trigger("waiting")}this.lastState=e}},onPlayerError:function(t){this.errorNumber=t.data,this.trigger("error"),this.ytPlayer.stopVideo(),this.ytPlayer.destroy(),this.ytPlayer=null},error:function(){switch(this.errorNumber){case 2:case 100:return{code:"Unable to find the video"};case 5:return{code:"Error while trying to play the video"};case 101:case 150:return{code:"Playback on other Websites has been disabled by the video owner."}}return{code:"YouTube unknown error ("+this.errorNumber+")"}},src:function(t){return t&&(this.setSrc({src:t}),this.play()),this.source},poster:function(){return c?null:this.poster_},setPoster:function(t){this.poster_=t},setSrc:function(t){t&&t.src&&(this.source=t,this.url=l.parseUrl(t.src),!this.options_.poster&&this.url.videoId&&(this.poster_="https://img.youtube.com/vi/"+this.url.videoId+"/0.jpg",this.checkHighResPoster()),this.options_.autoplay&&!c&&(this.isReady_?this.play():this.playOnReady=!0))},play:function(){this.url&&this.url.videoId&&(this.isReady_?(this.url.listId&&(this.activeList===this.url.listId?this.ytPlayer.playVideo():(this.ytPlayer.loadPlaylist(this.url.listId),this.activeList=this.url.listId)),this.activeVideoId===this.url.videoId?this.ytPlayer.playVideo():(this.ytPlayer.loadVideoById(this.url.videoId),this.activeVideoId=this.url.videoId)):(this.trigger("waiting"),this.playOnReady=!0))},pause:function(){this.ytPlayer&&this.ytPlayer.pauseVideo()},paused:function(){return!this.ytPlayer||this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING},currentTime:function(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0},setCurrentTime:function(t){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime()),this.isSeeking||(this.wasPausedBeforeSeek=this.paused()),this.ytPlayer.seekTo(t,!0),this.trigger("timeupdate"),this.trigger("seeking"),this.isSeeking=!0,this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==t&&(clearInterval(this.checkSeekedInPauseInterval),this.checkSeekedInPauseInterval=setInterval((function(){this.lastState===YT.PlayerState.PAUSED&&this.isSeeking?this.currentTime()!==this.timeBeforeSeek&&(this.trigger("timeupdate"),this.onSeeked()):clearInterval(this.checkSeekedInPauseInterval)}).bind(this),250))},onSeeked:function(){clearInterval(this.checkSeekedInPauseInterval),this.trigger("seeked"),this.isSeeking=!1,this.wasPausedBeforeSeek&&this.pause()},playbackRate:function(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1},setPlaybackRate:function(t){this.ytPlayer&&(this.ytPlayer.setPlaybackRate(t),this.trigger("ratechange"))},duration:function(){return this.ytPlayer?this.ytPlayer.getDuration():0},currentSrc:function(){return this.source},ended:function(){return!!this.ytPlayer&&this.lastState===YT.PlayerState.ENDED},volume:function(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1},setVolume:function(t){this.ytPlayer&&(this.ytPlayer.setVolume(100*t),this.setTimeout(function(){this.trigger("volumechange")},50))},muted:function(){return!!this.ytPlayer&&this.ytPlayer.isMuted()},setMuted:function(t){this.ytPlayer&&(this.muted(!0),t?this.ytPlayer.mute():this.ytPlayer.unMute(),this.setTimeout(function(){this.trigger("volumechange")},50))},buffered:function(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction)return{length:0,start:function(){throw Error("This TimeRanges object is empty")},end:function(){throw Error("This TimeRanges object is empty")}};var t=this.ytPlayer.getVideoLoadedFraction()*this.ytPlayer.getDuration();return{length:1,start:function(){return 0},end:function(){return t}}},supportsFullScreen:function(){return!0},checkHighResPoster:function(){var t="https://img.youtube.com/vi/"+this.url.videoId+"/maxresdefault.jpg";try{var e=new Image;e.onload=(function(){if("naturalHeight"in e){if(e.naturalHeight<=90||e.naturalWi
13dth<=120){"function"==typeof this.onerror&&this.onerror();return}}else if(e.height<=90||e.width<=120){this.onerror();return}this.poster_=t,this.trigger("posterchange")}).bind(this),e.onerror=function(){},e.src=t}catch(t){}}});l.isSupported=function(){return!0},l.canPlaySource=function(t){return"video/youtube"===t.type};var c=/(iPad|iPhone|iPod|Android)/g.test(navigator.userAgent);l.parseUrl=function(t){var e={videoId:null},n=t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return n&&11===n[2].length&&(e.videoId=n[2]),(n=t.match(/[?&]list=([^#\&\?]+)/))&&n[1]&&(e.listId=n[1]),e},l.apiReadyQueue=[],window.onYouTubeIframeAPIReady=function(){l.isApiReady=!0;for(var t=0;t<l.apiReadyQueue.length;++t)l.apiReadyQueue[t].initYTPlayer();"function"==typeof onYouTubeIframeAPIReadyFullscreenBackground&&onYouTubeIframeAPIReadyFullscreenBackground()},window.onYouTubeIframeAPIReadyYoutube=function(){l.isApiReady=!0;for(var t=0;t<l.apiReadyQueue.length;++t)l.apiReadyQueue[t].initYTPlayer()},(e=document.createElement("script")).src="https://www.youtube.com/iframe_api",(n=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,n),o=".vjs-youtube .vjs-iframe-blocker { display: none; }.vjs-youtube.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-youtube .vjs-poster { background-size: cover; }.vjs-youtube-mobile .vjs-big-play-button { display: none; }",s=document.head||document.getElementsByTagName("head")[0],(r=document.createElement("style")).type="text/css",r.styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),s.appendChild(r),t.registerTech("Youtube",l)}),function(){"use strict";var t={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3},e=videojs.getComponent("Tech"),n=videojs.extend(e,{constructor:function(t,o){e.call(this,t,o),""!=t.poster&&this.setPoster(t.poster),this.setSrc(this.options_.source.src,!0),setTimeout((function(){this.el_.parentNode.className+=" vjs-vimeo",n.isApiReady?this.initPlayer():n.apiReadyQueue.push(this)}).bind(this))},dispose:function(){this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-vimeo","")},createEl:function(){this.vimeo={},this.vimeoInfo={},this.baseUrl="https://player.vimeo.com/video/",this.baseApiUrl="https://www.vimeo.com/api/v2/video/",this.videoId=n.parseUrl(this.options_.source.src).videoId,this.iframe=document.createElement("iframe"),this.iframe.setAttribute("id",this.options_.techId),this.iframe.setAttribute("title","Vimeo Video Player"),this.iframe.setAttribute("class","vimeoplayer"),this.iframe.setAttribute("src",this.baseUrl+this.videoId+"?api=1&player_id="+this.options_.techId),this.iframe.setAttribute("frameborder","0"),this.iframe.setAttribute("scrolling","no"),this.iframe.setAttribute("marginWidth","0"),this.iframe.setAttribute("marginHeight","0"),this.iframe.setAttribute("webkitAllowFullScreen","0"),this.iframe.setAttribute("mozallowfullscreen","0"),this.iframe.setAttribute("allowFullScreen","0"),this.options_.autoplay&&this.iframe.setAttribute("autoplay","true");var t,e=document.createElement("div");if(e.setAttribute("style","margin:0 auto;padding-bottom:56.25%;width:100%;height:0;position:relative;overflow:hidden;"),e.setAttribute("class","vimeoFrame"),e.appendChild(this.iframe),!o&&!this.options_.ytControls){var s=document.createElement("div");s.setAttribute("class","vjs-iframe-blocker"),s.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),s.onclick=(function(){this.onPause()}).bind(this),e.appendChild(s)}return""==this.options_.poster&&null!=this.videoId&&$.getJSON(this.baseApiUrl+this.videoId+".json?callback=?",{format:"json"},(t=this,function(e){t.setPoster(e[0].thumbnail_large)})),e},initPlayer:function(){var e=this;$(e.iframe).load(function(){n.parseUrl(e.options_.source.src).videoId,e.vimeo&&e.vimeo.api&&(e.vimeo.api("unload"),delete e.vimeo),e.vimeo=$f(e.iframe),e.vimeoInfo={state:t.UNSTARTED,volume:1,muted:!1,muteVolume:1,time:0,duration:0,buffered:0,url:e.baseUrl+e.videoId,error:null},e.vimeo.addEvent("ready",function(t){e.onReady(),e.vimeo.addEvent("loadProgress",function(t,n){e.onLoadProgress(t)}),e.vimeo.addEvent("playProgress",function(t,n){e.onPlayProgress(t)}),e.vimeo.addEvent("play",function(t){e.onPlay()}),e.vimeo.addEvent("pause",function(t){e.onPause()}),e.vimeo.addEvent("finish",function(t){e.onFinish()}),e.vimeo.addEvent("seek",function(t,n){e.onSeek(t)})})})},onReady:function(){this.playerReady_=!0,this.triggerReady(),this.trigger("loadedmetadata"),this.startMuted&&(this.setMuted(!0),this.startMuted=!1)},onLoadProgress:function(t){var e=!this.vimeoInfo.duration;this.vimeoInfo.duration=t.duration,this.vimeoInfo.buffered=t.percent,this.trigger("progress"),e&&this.trigger("durationchange")},onPlayProgress:function(t){this.vimeoInfo.time=t.seconds,this.trigger("timeupdate")},onPlay:function(){this.vimeoInfo.state=t.PLAYING,this.trigger("play")},onPause:function(){this.vimeoInfo.state=t.PAUSED,this.trigger("pause")},onFinish:function(){this.vimeoInfo.state=t.ENDED,this.trigger("ended")},onSeek:function(t){this.trigger("seeking"),this.vimeoInfo.time=t.seconds,this.trigger("timeupdate"),this.trigger("seeked")},onError:function(t){this.error=t,this.trigger("error")},error:function(){switch(this.errorNumber){case 2:case 100:return{code:"Unable to find the video"};case 5:return{code:"Error while trying to play the video"};case 101:case 150:return{code:"Playback on other Websites has been disabled by the video owner."}}return{code:"Vimeo unknown error ("+this.errorNumber+")"}},src:function(){return this.source},poster:function(){return this.poster_},setPoster:function(t){this.poster_=t},setSrc:function(t){if(t&&t.src){if(this.source=t,this.url=n.parseUrl(t.src),!this.options_.poster&&null!=this.url.videoId){var e;$.getJSON(this.baseApiUrl+this.videoId+".json?callback=?",{format:"json"}
13,(e=this,function(t){e.poster_=t[0].thumbnail_small})),this.checkHighResPoster()}this.options_.autoplay&&!o&&(this.isReady_?this.play():this.playOnReady=!0)}},supportsFullScreen:function(){return!0},load:function(){},play:function(){this.vimeo.api("play")},pause:function(){this.vimeo.api("pause")},paused:function(){return this.vimeoInfo.state!==t.PLAYING&&this.vimeoInfo.state!==t.BUFFERING},currentTime:function(){return this.vimeoInfo.time||0},setCurrentTime:function(t){this.vimeo.api("seekTo",t),this.player_.trigger("timeupdate")},duration:function(){return this.vimeoInfo.duration||0},buffered:function(){return videojs.createTimeRange(0,this.vimeoInfo.buffered*this.vimeoInfo.duration||0)},volume:function(){return this.vimeoInfo.muted?this.vimeoInfo.muteVolume:this.vimeoInfo.volume},setVolume:function(t){this.vimeo.api("setvolume",t),this.vimeoInfo.volume=t,this.player_.trigger("volumechange")},currentSrc:function(){return this.el_.src},muted:function(){return this.vimeoInfo.muted||!1},setMuted:function(t){t?(this.vimeoInfo.muteVolume=this.vimeoInfo.volume,this.setVolume(0)):this.setVolume(this.vimeoInfo.muteVolume),this.vimeoInfo.muted=t,this.player_.trigger("volumechange")},checkHighResPoster:function(){try{if(null!=this.url.videoId){$.getJSON(this.baseApiUrl+this.videoId+".json?callback=?",{format:"json"},function(t){t[0].thumbnail_large});var t=new Image;t.onload=(function(){if("naturalHeight"in this){if(this.naturalHeight<=90||this.naturalWidth<=120){this.onerror();return}}else if(this.height<=90||this.width<=120){this.onerror();return}this.poster_="",this.trigger("posterchange")}).bind(this),t.onerror=function(){},t.src=""}}catch(t){}}});n.isSupported=function(){return!0},n.canPlaySource=function(t){return"video/vimeo"===t.type};var o=/(iPad|iPhone|iPod|Android)/g.test(navigator.userAgent);n.parseUrl=function(t){var e={videoId:null},n=t.match(/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/);return n&&(e.videoId=n[5]),e},n.apiReadyQueue=[],function(){n.isApiReady=!0,t=".vjs-vimeo .vjs-iframe-blocker { display: none; }.vjs-vimeo.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-vimeo .vjs-poster { background-size: cover; }.vjs-vimeo { height:100%; }.vimeoplayer { width:100%; height:180%; position:absolute; left:0; top:-40%; }",e=document.head||document.getElementsByTagName("head")[0],(o=document.createElement("style")).type="text/css",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t)),e.appendChild(o);for(var t,e,o,s=0;s<n.apiReadyQueue.length;++s)n.apiReadyQueue[s].initPlayer()}(),videojs.registerTech("Vimeo",n),function(){function t(e){return new t.fn.init(e)}var e={},n=!1,o=(Array.prototype.slice,"*");function s(t,e,n){if(null==n.contentWindow||!n.contentWindow.postMessage)return!1;var s=JSON.stringify({method:t,value:e});n.contentWindow.postMessage(s,o)}function r(t){try{a=(r=JSON.parse(t.data)).event||r.method}catch(t){}if("ready"!=a||n||(n=!0),!/^https?:\/\/player.vimeo.com/.test(t.origin))return!1;"*"===o&&(o=t.origin);var s,r,a,l=r.value,c=r.data,u=""===u?null:r.player_id,h=(s=a,u&&e[u]?e[u][s]:e[s]?e[s]:void 0),d=[];return!!h&&(void 0!==l&&d.push(l),c&&d.push(c),u&&d.push(u),d.length>0?h.apply(null,d):h.call())}function a(t,n,o){o?(e[o]||(e[o]={}),e[o][t]=n):e[t]=n}function l(t){return!!(t&&t.constructor&&t.call&&t.apply)}t.fn=t.prototype={element:null,init:function(t){return"string"==typeof t&&(t=document.getElementById(t)),this.element=t,this},api:function(t,e){if(!this.element||!t)return!1;var n=this.element,o=""!==n.id?n.id:null,r=l(e)?null:e,c=l(e)?e:null;return c&&a(t,c,o),s(t,r,n),this},addEvent:function(t,e){if(!this.element)return!1;var o=this.element,r=""!==o.id?o.id:null;return a(t,e,r),"ready"!=t?s("addEventListener",t,o):"ready"==t&&n&&e.call(null,r),this},removeEvent:function(t){if(!this.element)return!1;var n=this.element,o=function(t,n){if(n&&e[n]){if(!e[n][t])return!1;e[n][t]=null}else{if(!e[t])return!1;e[t]=null}return!0}(t,""!==n.id?n.id:null);"ready"!=t&&o&&s("removeEventListener",t,n)}},t.fn.init.prototype=t.fn,window.addEventListener?window.addEventListener("message",r,!1):window.attachEvent("onmessage",r),window.Froogaloop=window.$f=t}()}(),function(t){"use strict";t(document).ready(function(){t(".youtubevid-item__media").each(function(){var e=n=t(this).find(".youtubevid-item__thumbnail"),n=t(this).find(".icon"),o=t(this).find("iframe");n.click(function(t){e.fadeOut(2e3).add().toggleClass("clicked"),o[0].src+="&autoplay=1"})})})}(window.jQuery),$(document).ready(function(){var t=$(".editable__container");t.length&&t.each(function(){var t=$(this),e=t.find(".contentExpandWrap"),n=t.find("#readMoreLink");n.length&&("SPAN"==n[0].nodeName&&(n.attr("href","#editableAnimateShowLess"),function(t,e){$(t).each(function(){var t=$(e,{html:$
13(this).html()});$.each(this.attributes,function(){t.attr(this.name,this.value)}),$(this).replaceWith(t)})}(n,"<a></a>")),e.add(n).removeClass("expand"),e.hide(),n.text("Show More"),t.on("click","#readMoreLink",function(n){n.preventDefault();var o=$(this),s=$("body .redactor-link-tooltip .redactor-link-tooltip-action:first-child");s.length&&s.parent().css("visibility","hidden"),"Show More"===o.text()?(t.removeAttr("id"),o.text("Show Less")):(t.attr("id","editableAnimateShowLess"),o.text("Show More")),e.add(o).toggleClass("expand")}))})}),(t=>{"use strict";class e{constructor(t){this.$el=t,this.init()}init(){this.bindToOffsetToAnchors()}bindToOffsetToAnchors(){this.$el.on("click",'a[href^="#"]',e=>{let n=e.target;if(!n)return;let o=decodeURI(n.hash).slice(1);if(!o)return;let s=document.getElementById(o);s&&this.animateToAnchor(t(s))})}animateToAnchor(e,n){n??=this.getStickySectionsHeight(),t("html, body").animate({scrollTop:e.offset().top-n},"slow")}getStickySectionsHeight(){return PLEStickyState?.getStickySectionsHeight()??0}static dataAttribute="linkToSection"}t(()=>{for(let n of document.querySelectorAll(".editable__container")){let o=t(n);o.data(e.dataAttribute,new e(o))}})})(window.jQuery),function(t){"use strict";var e=function(e,n){var o=this;this.$element=t(e),this.$ul=this.$element,this.$videos=t(".video-js-slider",e),this.$videoOverlays=t(".video-overlay",this.$element),this.players=[],this.clones=[],this.prevDevice=null,this.loaded=0,this.tempArrVidsPause=[],this.vidsPauseClicked=[],this.lastDevice="",this.hadInteraction=!1,this.firstPlayerRef=null,window.addEventListener("wm-defer-js",()=>{o.hadInteraction=!0,o.firstPlayerRef&&o.firstPlayerRef.paused()&&(o.$element.stopAuto(),o.firstPlayerRef.muted(!0),o.firstPlayerRef.play(),o.firstPlayerRef=null)}),this.groupSlidesByDevice(),this.options=this.parseTrueFalseOptions(n),this.auto=this.options.auto,this.muted=!1,this.options.autoplayvideo&&(this.muted=!0),this.startPaused=-1!==location.href.indexOf("slide_show_pause=1")||-1!==location.href.indexOf("screenshot_mode=1"),this.startPaused&&(this.options.auto=!1),this.options.auto&&this.options.firstSlideVideo&&this.options.autoplayvideo&&(this.change=!0,this.options.auto=!1),o.attachEvents(),o.runSlider()};e.prototype.runSlider=function(){var e,n,o=this,s=o.getDevice();if(""!=o.lastDevice){if(s==o.lastDevice)return;if(JSON.stringify(o[s+"Items"])==JSON.stringify(o[o.lastDevice+"Items"])){o.lastDevice=s;return}}o.lastDevice=s,o.destroySlider(),e=s+"Items",o.options.count=o[e].length,0!=o.options.count&&(o[e].forEach(function(t){o.$ul.append(t)}),1==o.options.count&&(o.options.infiniteLoop=!1),n=o.generateBxSliderData(),t.extend(n,o.options),o.$bxSlider=o.$ul.bxSlider(n))},e.prototype.generateBxSliderData=function(){var e=this;return{onSlideAfter:function(t,n,o){if(e.players.forEach(function(t){t.paused()||(-1==e.tempArrVidsPause.indexOf(t.id_)&&e.tempArrVidsPause.push(t.id_),t.pause())}),t.hasClass("slider__video_type")){var s=t.find("[data-item-id]").data("itemId"),r=e.findPlayerByItemId(s);r||(r=e.returnPlayer(t.find(".video-js"))),e.options.autoplayvideo&&1>r.currentTime()&&(e.$element.stopAuto(),e.hadInteraction?(r.muted(!0),r.play()):e.firstPlayerRef=r),e.muted&&r.muted(!0)}e.options.stopSlideshowAfterOneLoop&&e.options.count-1==o&&e.$element.stopAuto()},onSliderLoad:function(n){e.$element.css("visibility","visible"),e.$wrapper=e.$element.closest(".bx-wrapper"),""==e.options.easing&&(e.options.easing=null),e.options.controlsHover&&(t(".bx-controls-direction",e.$wrapper).hide(),e.$wrapper.hover(function(){t(".bx-controls-direction",t(this)).fadeIn(300)},function(){t(".bx-controls-direction",t(this)).fadeOut(300)})),e.options.autoHoverModified&&e.$wrapper.hover(function(){e.options.auto&&e.$element.stopAuto()},function(){e.options.auto&&!e.isVideoPlaying()&&(e.$element.stopAuto(),e.$element.startAuto())}),e.change&&(e.options.auto=!0),null!=e.options.easing&&(e.options.useCSS=!1),e.auto&&e.makePauseSlideshowButton(),o=e.options.count>1&&"fade"!=e.options.mode?1:0;var o,s=t("#slider").find(".bx-viewport").find("ul").children().eq(o);if(s.hasClass("slider__video_type")){var r=e.returnPlayer(s.find(".video-js"));e.options.autoplayvideo&&(e.$element.stopAuto(),e.hadInteraction?(r.muted(!0),r.play()):e.firstPlayerRef
13=r),e.muted&&r.muted(!0)}e.initializeClones(),e.initializeOverlays(),e.$element.closest(".bx-wrapper").find(".bx-controls").wrapAll("<div class='wrap__bx-controls' />"),e.$element.closest(".bx-wrapper").find(".wrap_on-off, .wrap_pause-play, .bx-pager ").wrapAll("<div class='bx-controls-buttons' />")}}},e.prototype.destroySlider=function(){this.$bxSlider&&this.$bxSlider.destroySlider(),this.$ul.html("")},e.prototype.attachEvents=function(){var e,n,o=this;t("#slider").on("click",".pause-slideshow",function(n,s){t(this).hide(),o.$element.stopAuto(),o.options.auto=!1,t("#slider .play-slideshow").fadeIn("slow",function(){void 0!==s&&t(this).focus()}),(e=o.isVideoPlaying())&&e.pause()}),t("#slider").on("click",".play-slideshow",function(e,n){t(this).hide(),o.$element.startAuto(),o.options.auto=!0,t("#slider .pause-slideshow").fadeIn("slow",function(){void 0!==n&&t(this).focus()})}),t("body").keypress(function(e){13==e.which&&(t("#slider").find(".play-slideshow").is(":focus")&&t("#slider").find(".play-slideshow").trigger("click",{kb:!0}),t("#slider").find(".pause-slideshow").is(":focus")&&t("#slider").find(".pause-slideshow").trigger("click",{kb:!0}),t("#slider").find(".sound-off").is(":focus")&&t("#slider").find(".sound-off").trigger("click",{kb:!0}),t("#slider").find(".sound-on").is(":focus")&&t("#slider").find(".sound-on").trigger("click",{kb:!0}))}),t(window).resize(function(){clearTimeout(n),n=setTimeout(function(){o.runSlider()},250)})},e.prototype.returnPlayer=function(t){var e=this,n=t.data("setupRun");return void 0!=n.techOrder&&"vimeo"==n.techOrder[0]&&(n.controls=!1),void 0!=n.techOrder&&"youtube"==n.techOrder[0]&&(n.youtube={ytControls:2},n.controls=!1),videojs(t.attr("id"),n,function(){var t,n=this;e.players.push(n),n.on("play",function(){e.showCaptionWhilePlay(this.id_,!1),e.options.auto&&e.$element.stopAuto()}),n.on("pause",function(o){e.showCaptionWhilePlay(this.id_,!0),e.options.auto&&(e.$element.stopAuto(),e.$element.startAuto()),(t=e.hasClone(n))&&(t.poster(""),t.bigPlayButton.hide(),t.currentTime(n.currentTime()))}),n.on("ended",function(){e.showCaptionWhilePlay(this.id_,!0),e.options.auto&&(e.$element.stopAuto(),e.$element.startAuto())})})},e.prototype.parseTrueFalseOptions=function(t,n){for(var o in t)t.hasOwnProperty(o)&&-1!=e.BOOLEANS.indexOf(o)&&(t[o]=!!t[o]);return t},e.prototype.isVideoPlaying=function(){var t=!1;return this.players.forEach(function(e){e.paused()||(t=e)}),t},e.prototype.initializeOverlays=function(){var e=this;e.$videoOverlays.length&&e.$videoOverlays.on("click",function(){var n=e.findPlayerByItemId(t(this).data("itemId"));n.paused()?(n.muted(!1),n.play()):n.pause()})},e.prototype.findPlayerByItemId=function(e){for(var n=0;n<this.players.length;n++){var o=this.players[n];if(t(o.el_).data("itemId")==e)return o}return!1},e.prototype.groupSlidesByDevice=function(){var e,n=this;n.desktopItems=[],n.tabletItems=[],n.mobileItems=[];var o=navigator.userAgent.indexOf("Trident")>-1||navigator.userAgent.indexOf("MSIE")>-1;n.$ul.find("li").each(function(){e=o?t(this).clone(!0,!0):t(this),t(this).data("desktop")&&n.desktopItems.push(e),t(this).data("tablet")&&n.tabletItems.push(e),t(this).data("mobile")&&n.mobileItems.push(e)})},e.prototype.makePauseSlideshowButton=function(){var e="",n="";this.options.auto?e='style="display:none"':n='style="display:none"';var o='<div class="wrap_pause-play"><div class="pause-slideshow" aria-label="icon pause" '+n+' title="Pause slideshow" tabindex="0"><span class="icon icon-pause"></span></div><div class="play-slideshow" aria-label="icon play" '+e+' title="Play slideshow" tabindex="0"><span class="icon icon-play"></span></div></div>';t("#slider").find(".bx-wrapper .bx-controls").prepend(o)},e.prototype.initializeClones=function(){var e,n=this;n.$element.find(".bx-clone").each(function(o){if((e=t(this).find("video")).attr("id",e.attr("id")+"_clone"),e.length){var s=t(e[0]).data("setupRun")?t(e[0]).data("setupRun"):t(e[0]).data("setup");void 0!=s.techOrder&&"vimeo"==s.techOrder[0]&&(s.controls=!1),void 0!=s.techOrder&&"youtube"==s.techOrder[0]&&(s.youtube={ytControls:2},s.controls=!1),videojs(e[0],s,function(){this.muted(!0),n.clones.push(this)})}})},e.prototype.hasClone=function(e){for(var n=0;n<this.clones.length;n++){var o=this.clones[n];if(t(o.el_).attr("id")==t(e.el_).attr("id")+"_clone")return o}return!1},e.prototype.showCaptionWhilePlay=function(e,n){var o=t("#"+e).parents(".slider__item").find("[data-vi
13dplay]"),s=o.data("vidplay");n&&(s=1),this.$element.find(o).css({opacity:s})},e.prototype.getDevice=function(){var t=window.innerWidth;return t<768?"mobile":t<1025?"tablet":"desktop"},e.DEFAULTS={video:!0,pager:!0,controls:!0,autoControls:!1,autoHoverModified:!1,autoHover:!1,auto:!0,infiniteLoop:!0,randomStart:!1,controlsHover:!1,responsive:!1,mode:"horizontal",speed:500,pause:4e3,autoDelay:0,easing:null,useCSS:!1,isEditor:!1},e.BOOLEANS=["pager","controls","autoControls","auto","infiniteLoop","randomStart","controlsHover","responsive","autoHoverModified"];var n=t.fn.Slider;t.fn.Slider=function(n){var o;return arguments,this.each(function(){var s=t(this),r=t.extend({},e.DEFAULTS,s.data(),"object"==typeof n&&n);if(s.data("bxslider",new e(this,r)),void 0!==o)return!1}),o||this},t.fn.Slider.Constructor=e,t.fn.Slider.noConflict=function(){return t.fn.Slider=n,this},t(function(){t('[data-control="slider"]').Slider()})}(window.jQuery),function(t){"use strict";function e(e){e.each(function(){t(this).find(".expander").each(function(){t(this).click(function(){"true"==t(this).attr("aria-expanded")?t(this).attr("aria-expanded","false"):t(this).attr("aria-expanded","true"),t(this).closest(".featuredblock__wrap").find("ul").slideToggle()})})})}t(document).ready(function(){t(".fbF_ShowMoreLess").click(function(){t(this).fadeOut(0).toggleClass("showMore").fadeIn(800),t(this).parent().find(".featuredblock.row").toggleClass("showMore")}),t(".featuredblock__description.nonPle p").addClass("featuredblock__description")}),t(window).load(function(){e(t(".featuredblocks-flyup-a")),e(t(".featuredblocks-flyup-b")),e(t(".featuredblocks-flyup-c"))})}(window.jQuery),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e(require,exports,module):t.ScrollReveal=e()}(this,function(t,e,n){return(function(){this.ScrollReveal=function(){function o(e){return window==this?new o(e):(t=this,t.tools=new n,t.tools.extend(t.defaults,e||{}),(!t.tools.isMobile()||!!t.defaults.mobile)&&(t.tools.isSupported("transform")&&t.tools.isSupported("transition")?(t.store={elements:{},containers:[]},t.history=[],t.counter=0,t.running=!1,t.initialized=!1,t):console.warn("ScrollReveal is not supported in this browser.")))}return o.prototype.defaults={origin:"bottom",distance:"20px",duration:500,delay:0,rotate:{x:0,y:0,z:0},opacity:0,scale:.9,easing:"cubic-bezier( 0.6, 0.2, 0.1, 1 )",container:null,mobile:!0,reset:!1,useDelay:"always",viewFactor:.2,viewOffset:{top:0,right:0,bottom:0,left:0},afterReveal:function(t){},afterReset:function(t){}},o.prototype.reveal=function(e,n,o){var s,r,a,l;if(r=n&&n.container?n.container:t.defaults.container?t.defaults.container:window.document.documentElement,!(s=Array.prototype.slice.call(r.querySelectorAll(e))).length)return console.warn("reveal('"+e+"') failed: no elements found."),t;for(var c=0;c<s.length;c++)a={},(l=s[c].getAttribute("data-sr-id"))?a=t.store.elements[l]:(a={id:++t.counter,domEl:s[c],seen:!1,revealed:!1}).domEl.setAttribute("data-sr-id",a.id),t.configure(a,n||{}),t.style(a),t.updateStore(a),a.revealed||a.domEl.setAttribute("style",a.styles.inline+a.styles.transform.initial);return o||(t.record(e,n),t.initTimeout&&window.clearTimeout(t.initTimeout),t.initTimeout=window.setTimeout(t.init,0)),t},o.prototype.configure=function(e,n){e.config?e.config=t.tools.extendClone(e.config,n):e.config=t.tools.extendClone(t.defaults,n),"top"===e.config.origin||"bottom"===e.config.origin?e.config.axis="Y":e.config.axis="X",("top"===e.config.origin||"left"===e.config.origin)&&(e.config.distance="-"+e.config.distance)},o.prototype.style=function(t){function e(e){parseInt(n.distance)&&(e.initial+=" translate"+n.axis+"("+n.distance+")",e.target+=" translate"+n.axis+"(0)"),n.scale&&(e.initial+=" scale("+n.scale+")",e.target+=" scale(1)"),n.rotate.x&&(e.initial+=" rotateX("+n.rotate.x+"deg)",e.target+=" rotateX(0)"),n.rotate.y&&(e.initial+=" rotateY("+n.rotate.y+"deg)",e.target+=" rotateY(0)"),n.rotate.z&&(e.initial+=" rotateZ("+n.rotate.z+"deg)",e.target+=" rotateZ(0)"),e.initial+="; opacity: "+n.opacity+";",e.target+=";
13 opacity: "+t.styles.computed.opacity+";"}var n=t.config,o=window.getComputedStyle(t.domEl);t.styles||(t.styles={transition:{},transform:{},computed:{}},t.styles.inline=t.domEl.getAttribute("style")||"",t.styles.inline+="; visibility: visible; ",t.styles.computed.opacity=o.opacity,o.transition&&"all 0s ease 0s"!=o.transition?t.styles.computed.transition=o.transition+", ":t.styles.computed.transition=""),t.styles.transition.instant="-webkit-transition: "+t.styles.computed.transition+"-webkit-transform "+n.duration/1e3+"s "+n.easing+" 0s, opacity "+n.duration/1e3+"s "+n.easing+" 0s; transition: "+t.styles.computed.transition+"transform "+n.duration/1e3+"s "+n.easing+" 0s, opacity "+n.duration/1e3+"s "+n.easing+" 0s; ",t.styles.transition.delayed="-webkit-transition: "+t.styles.computed.transition+"-webkit-transform "+n.duration/1e3+"s "+n.easing+" "+n.delay/1e3+"s, opacity "+n.duration/1e3+"s "+n.easing+" "+n.delay/1e3+"s; transition: "+t.styles.computed.transition+"transform "+n.duration/1e3+"s "+n.easing+" "+n.delay/1e3+"s, opacity "+n.duration/1e3+"s "+n.easing+" "+n.delay/1e3+"s; ",t.styles.transform.initial=" -webkit-transform:",t.styles.transform.target=" -webkit-transform:",e(t.styles.transform),t.styles.transform.initial+="transform:",t.styles.transform.target+="transform:",e(t.styles.transform)},o.prototype.updateStore=function(e){var n=e.config.container;n&&-1==t.store.containers.indexOf(n)&&t.store.containers.push(e.config.container),t.store.elements[e.id]=e},o.prototype.record=function(e,n){t.history.push({selector:e,config:n})},o.prototype.init=function(){t.animate();for(var e=0;e<t.store.containers.length;e++)t.store.containers[e].addEventListener("scroll",t.handler),t.store.containers[e].addEventListener("resize",t.handler);return t.initialized||(window.addEventListener("scroll",t.handler),window.addEventListener("resize",t.handler),t.initialized=!0),t},o.prototype.handler=function(){t.running||e(function(){t.running=!0,t.animate()})},o.prototype.animate=function(){var e,n;function o(t,e){var n=0,o=0,s="after";switch(t){case"reveal":o=e.config.duration+e.config.delay,s+="Reveal";break;case"reset":o=e.config.duration,s+="Reset"}return e.timer&&(n=Math.abs(e.timer.started-new Date),window.clearTimeout(e.timer.clock)),e.timer={started:new Date},e.timer.clock=window.setTimeout(function(){e.config[s](e.domEl),e.timer=null},o-n),"reveal"===t?e.revealed=!0:e.revealed=!1}t.tools.forOwn(t.store.elements,function(s){e=t.store.elements[s],(n=t.isElemVisible(e))&&!e.revealed?("always"!==e.config.useDelay&&("onload"!==e.config.useDelay||t.initialized)&&("once"!==e.config.useDelay||e.seen)?e.domEl.setAttribute("style",e.styles.inline+e.styles.transform.target+e.styles.transition.instant):e.domEl.setAttribute("style",e.styles.inline+e.styles.transform.target+e.styles.transition.delayed),e.seen=!0,o("reveal",e)):!n&&e.config.reset&&e.revealed&&(e.domEl.setAttribute("style",e.styles.inline+e.styles.transform.initial+e.styles.transition.instant),o("reset",e))}),t.running=!1},o.prototype.getContainer=function(t){return t||(t=window.document.documentElement),{width:t.clientWidth,height:t.clientHeight}},o.prototype.getScrolled=function(e){if(e){var n=t.getOffset(e);return{x:e.scrollLeft+n.left,y:e.scrollTop+n.top}}return{x:window.pageXOffset,y:window.pageYOffset}},o.prototype.getOffset=function(t){var e=0,n=0,o=t.offsetHeight,s=t.offsetWidth;do isNaN(t.offsetTop)||(e+=t.offsetTop),isNaN(t.offsetLeft)||(n+=t.offsetLeft);while(t=t.offsetParent);return{top:e,left:n,height:o,width:s}},o.prototype.isElemVisible=function(e){var n,o,s,r,a=t.getOffset(e.domEl),l=t.getContainer(e.config.container),c=t.getScrolled(e.config.container),u=e.config.viewFactor,h=a.height,d=a.width,p=a.top,f=a.left;return n=c.y+e.config.viewOffset.top,o=c.x+e.config.viewOffset.left,s=c.y-e.config.viewOffset.bottom+l.height,r=c.x-e.config.viewOffset.right+l.width,s>p+h*u&&p+h-h*u>n&&f+d*u>o&&r>f+d-d*u||"fixed"===window.getComputedStyle(e.domEl).position},o.prototype.sync=function(){if(t.history.length){for(var e=0;e<t.history.length;e++){var n=t.history[e];t.reveal(n.selector,n.config,!0)}t.init()}else console.warn("sync() failed: no reveals found.");return t},o}();var t,e,n=function(){function t(){}return t.prototype.isObject=function(t){return null!==t&&"object"==typeof t&&t.constructor==Object},t.prototype.forOwn=function(t,e){if(!this.isObject(t))throw TypeError("Expected 'object', but received '"+typeof t+"'.");for(var n in t)t.hasOwnProperty(n)&&e(n)},t.prototype.extend=function(t,e){return this.forOwn(e,(function(n){this.isObject(e[n])?(t[n]&&this.isObject(t[n])||(t[n]={}),this.extend(t[n],e[n])):t[n]=e[n]}).bind(this)),t},t.prototype.extendClone=function(t,e){return this.extend(this.extend({},t),e)},t.prototype.isMobile=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},t.prototype.isSupported=function(t){for(var e=document.createElement("sensor"),n=(t+"Webkit,Moz,O,".split(",").join(t+",")).split(","),o=0;o<n.length;o++)e.style[n[o]];return!0},t}(),e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame}).call(this),this.ScrollReveal}),window.sr=new ScrollReveal,function(t){"use strict";t(document).ready(function(){"list"===t(".js-featuredarticles-layout-sett
13ings").data("layout-type")&&sr.reveal(".featuredarticles__item");t(".lazyLoadImg").length&&t(".featuredarticle .lazy").lazy({effect:"fadeIn",effectTime:2e3,threshold:0})})}(window.jQuery),function(t){"use strict";var e=function(e,n){var o=this;this.$element=t(e),this.options=this.parseTrueFalseOptions(n),this.options.muted=!1,this.auto=this.options.auto,this.options.auto=!1;var s=!1;function r(){setTimeout(function(){t(window).trigger("scroll")},100)}return s=!!t(".lazyLoadImg").length,t.extend(this.options,{onSlideAfter:function(t,e,n){o.options.auto&&(o.$element.stopAuto(),o.$element.startAuto(),o.options.infinityLoop||n+1!=o.$bxSlider.getSlideCount()||(o.$element.stopAuto(),o.options.auto=!1),s&&r())},onSliderLoad:function(){o.$element.css("visibility","visible"),o.$wrapper=o.$element.closest(".bx-wrapper"),o.$viewport=o.$wrapper.find(".bx-viewport"),""==o.options.easing&&(o.options.easing=null),o.options.controlsHover&&(t(".bx-controls-direction",o.$wrapper).hide(),o.$wrapper.hover(function(){t(".bx-controls-direction",t(this)).fadeIn(300)},function(){t(".bx-controls-direction",t(this)).fadeOut(300)})),o.options.autoHoverModified&&o.$wrapper.hover(function(){o.$element.stopAuto()},function(){}),null!=o.options.easing&&(o.options.useCSS=!1),o.auto&&(o.options.auto=!0,o.$element.startAuto(),o.makePauseFeaturedArticlesSlideshowButton()),o.$element.closest(".bx-wrapper").find(".bx-controls").wrapAll("<div class='wrap__bx-controls' />"),o.$element.closest(".bx-wrapper").find(".wrap_pause-play, .wrap_on-off, .bx-pager ").wrapAll("<div class='bx-controls-buttons' />")},onSlideNext:function(){s&&r()},onSlidePrev:function(){s&&r()}}),this.attachEvents(),this.initializeSlider(),this};e.prototype.attachEvents=function(){var e=this,n=e.$element.closest(".js-featuredarticles-layout-settings");n.on("click",".featuredarticles-pause-slideshow",function(o,s){t(this).hide(),e.$element.stopAuto(),e.options.auto=!1,n.find(".featuredarticles-play-slideshow").fadeIn("slow",function(){void 0!==s&&t(this).focus()})}),n.on("click",".featuredarticles-play-slideshow",function(o,s){t(this).hide(),e.$element.startAuto(),e.options.auto=!0,n.find(".featuredarticles-pause-slideshow").fadeIn("slow",function(){void 0!==s&&t(this).focus()})}),t("body").keypress(function(t){13==t.which&&(n.find(".play-slideshow").is(":focus")&&n.find(".play-slideshow").trigger("click",{kb:!0}),n.find(".pause-slideshow").is(":focus")&&n.find(".pause-slideshow").trigger("click",{kb:!0}))})},e.prototype.parseTrueFalseOptions=function(t,n){for(var o in t)t.hasOwnProperty(o)&&-1!=e.BOOLEANS.indexOf(o)&&(t[o]=!!t[o]);return t},e.prototype.initializeSlider=function(){this.$bxSlider=this.$element.bxSlider(this.options)},e.prototype.destSlider=function(){this.$bxSlider.length&&(this.$bxSlider.destroySlider(),this.$element.closest(".js-featuredarticles-layout-settings").find(".wrap__bx-controls").remove())},e.prototype.maxHeight=function(e){var n=0;return e.each(function(){n<t(this).height()&&(n=t(this).height())}),n},e.prototype.makePauseFeaturedArticlesSlideshowButton=function(){this.$element.closest(".js-featuredarticles-layout-settings").find(".bx-wrapper .bx-controls").append('<div class="wrap_pause-play"><div class="pause-slideshow featuredarticles-pause-slideshow" aria-label="icon pause" title="Pause slideshow" tabindex="0"><span class="icon icon-pause"></span></div><div class="play-slideshow featuredarticles-play-slideshow" aria-label="icon play" style="display: none" title="Play slideshow" tabindex="0"><span class="icon icon-play"></span></div></div>')},e.DEFAULTS={pager:!0,controls:!0,autoControls:!1,autoHoverModified:!1,autoHover:!1,auto:!0,infiniteLoop:!0,randomStart:!1,controlsHover:!1,responsive:!1,mode:"horizontal",speed:500,pause:4e3,autoDelay:0,easing:null,useCSS:!1,autoPlayVideo:!0},e.BOOLEANS=["pager","controls","autoControls","auto","infiniteLoop","randomStart","controlsHover","responsive","autoHoverModified"];var n=t.fn.featuredArticlesSlideshow;t.fn.featuredArticlesSlideshow=function(n){arguments;var o=t(this),s=t.extend({},e.DEFAULTS,o.data(),"object"==typeof n&&n);return new e(this,s)},t.fn.featuredArticlesSlideshow.Constructor=e,t.fn.featuredArticlesSlideshow.noConflict=function(){t.fn.featuredArticlesSlideshow=n}
13,t(document).ready(function(){var e=t('[data-control="featuredarticles-slider"]');e.length&&e.each(function(){t(this).featuredArticlesSlideshow()})})}(window.jQuery),((t,e)=>{"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).leaflet={})})(this,function(t){let e,n,o,s=0;function r(t){return"_leaflet_id"in t||(t._leaflet_id=++s),t._leaflet_id}function a(t,e,n){let o,s;function r(){o=!1,s&&(a.apply(n,s),s=!1)}function a(...l){o?s=l:(t.apply(n,l),setTimeout(r,e),o=!0)}return a}function l(t,e,n){var o=e[1],e=e[0],s=o-e;return t===o&&n?t:((t-e)%s+s)%s+e}function c(){return!1}function u(t,e){return!1===e?t:Math.round(t*(e=10**(void 0===e?6:e)))/e}function h(t){return t.trim().split(/\s+/)}function d(t,e){for(var n in Object.hasOwn(t,"options")||(t.options=t.options?Object.create(t.options):{}),e)Object.hasOwn(e,n)&&(t.options[n]=e[n]);return t.options}let p=/\{ *([\w_ -]+) *\}/g;function f(t,e){return t.replace(p,(t,n)=>{let o=e[n];if(void 0===o)throw Error("No value provided for variable "+t);return"function"==typeof o?o(e):o})}let m="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",g={__proto__:null,emptyImageUrl:m,falseFn:c,formatNum:u,get lastId(){return s},setOptions:d,splitWords:h,stamp:r,template:f,throttle:a,wrapNum:l};class v{static extend({statics:t,includes:e,...n}){var o=class extends this{}
13,s=(Object.setPrototypeOf(o,this),this.prototype),r=o.prototype;if(t&&Object.assign(o,t),Array.isArray(e))for(var a of e)Object.assign(r,a);else e&&Object.assign(r,e);return Object.assign(r,n),r.options&&(r.options=s.options?Object.create(s.options):{},Object.assign(r.options,n.options)),r._initHooks=[],o}static include(t){var e=this.prototype.options;return Object.assign(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this}static mergeOptions(t){return this.prototype.options??={},Object.assign(this.prototype.options,t),this}static addInitHook(t,...e){return this.prototype._initHooks??=[],this.prototype._initHooks.push("function"==typeof t?t:function(){this[t].apply(this,e)}),this}constructor(...t){this._initHooksCalled=!1,d(this),this.initialize&&this.initialize(...t),this.callInitHooks()}callInitHooks(){if(!this._initHooksCalled){var t,e=[];let o=this;for(;null!==(o=Object.getPrototypeOf(o));)e.push(o);for(t of(e.reverse(),e))for(var n of t._initHooks??[])n.call(this);this._initHooksCalled=!0}}}var y={on(t,e,n){if("object"==typeof t)for(var[o,s]of Object.entries(t))this._on(o,s,e);else for(var r of h(t))this._on(r,e,n);return this},off(t,e,n){if(arguments.length){if("object"==typeof t)for(var[o,s]of Object.entries(t))this._off(o,s,e);else{var r,a=1==arguments.length;for(r of h(t))a?this._off(r):this._off(r,e,n)}}else delete this._events;return this},_on(t,e,n,o){"function"!=typeof e?console.warn("wrong listener type: "+typeof e):!1===this._listens(t,e,n)&&(e={fn:e,ctx:n=n===this?void 0:n},o&&(e.once=!0),this._events??={},this._events[t]??=[],this._events[t].push(e))},_off(t,e,n){if(this._events){let s=this._events[t];if(s){if(1==arguments.length){if(this._firingCount)for(var o of s)o.fn=c;delete this._events[t]}else"function"!=typeof e?console.warn("wrong listener type: "+typeof e):!1!==(e=this._listens(t,e,n))&&(n=s[e],this._firingCount&&(n.fn=c,this._events[t]=s=s.slice()),s.splice(e,1))}}},fire(t,e,n){if(this.listens(t,n)){var o={...e,type:t,target:this,sourceTarget:e?.sourceTarget||this};if(this._events&&(e=this._events[t])){for(var s of(this._firingCount=this._firingCount+1||1,e)){var r=s.fn;s.once&&this.off(t,r,s.ctx),r.call(s.ctx||this,o)}this._firingCount--}n&&this._propagateEvent(o)}return this},listens(t,e,n,o){"string"!=typeof t&&console.warn('"string" type argument expected');let s=e;if("function"!=typeof e&&(o=!!e,n=s=void 0),this._events?.[t]?.length&&!1!==this._listens(t,s,n))return!0;if(o){for(var r of Object.values(this._eventParents??{}))if(r.listens(t,e,n,o))return!0}return!1},_listens(t,e,n){return!!this._events&&((t=this._events[t]??[],e)?(n===this&&(n=void 0),-1!==(t=t.findIndex(t=>t.fn===e&&t.ctx===n))&&t):!!t.length)},once(t,e,n){if("object"==typeof t)for(var[o,s]of Object.entries(t))this._on(o,s,e,!0);else for(var r of h(t))this._on(r,e,n,!0);return this},addEventParent(t){return this._eventParents??={},this._eventParents[r(t)]=t,this},removeEventParent(t){return this._eventParents&&delete this._eventParents[r(t)],this},_propagateEvent(t){for(var e of Object.values(this._eventParents??{}))e.fire(t.type,{propagatedFrom:t.target,...t},!0)}},y=(y.addEventListener=y.on,y.removeEventListener=y.clearAllEventListeners=y.off,y.addOneTimeEventListener=y.once,y.fireEvent=y.fire,y.hasEventListeners=y.listens,v.extend(y));class _{constructor(t,e,n){let o,s;if(!_.validate(t,e))throw Error(`Invalid Point object: (${t}, ${e})`);if(t instanceof _)return t;s=Array.isArray(t)?(o=t[0],t[1]):"object"==typeof t&&"x"in t&&"y"in t?(o=t.x,t.y):(o=t,e),this.x=n?Math.round(o):o,this.y=n?Math.round(s):s}static validate(t,e){return!!(t instanceof _||Array.isArray(t))||!!(t&&"object"==typeof t&&"x"in t&&"y"in t)||!(!t&&0!==t||!e&&0!==e)}clone(){var t=new _(0,0);return t.x=this.x,t.y=this.y,t}add(t){return this.clone()._add(new _(t))}_add(t){return this.x+=t.x,this.y+=t.y,this}subtract(t){return this.clone()._subtract(new _(t))}_subtract(t){return this.x-=t.x,this.y-=t.y,this}divideBy(t){return this.clone()._divideBy(t)}_divideBy(t){return this.x/=t,this.y/=t,this}multiplyBy(t){return this.clone()._multiplyBy(t)}_multiplyBy(t){return this.x*=t,this.y*=t,this}scaleBy(t){return new _(this.x*t.x,this.y*t.y)}unscaleBy(t){return new _(this.x/t.x,this.y/t.y)}round(){return this.clone()._round()}_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}floor(){return this.clone()._floor()}_floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.clone()._ceil()}_ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}trunc(){return this.clone()._trunc()}_trunc(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}distanceTo(t){var e=(t=new _(t)).x-this.x,t=t.y-this.y;return Math.sqrt(e*e+t*t)}equals(t){return(t=new _(t)).x===this.x&&t.y===this.y}contains(t){return Math.abs((t=new _(t)).x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)}toString(){return`Point(${u(this.x)}, ${u(this.y)})`}}class b{constructor(t,e){if(t){var n;if(t instanceof b)return t;for(n of e?[t,e]:t)this.extend(n)}}extend(t){let e,n;if(t){if(t instanceof _||"number"==typeof t[0]||"x"in t)e=n=new _(t);else if(e=(t=new b(t)).min,n=t.max,!e||!n)return this;this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=e.clone(),this.max=n.clone())}return this}getCenter(t){return new _((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)}getBottomLeft(){return new _(this.min.x,this.max.y)}getTopRight(){return new _(this.max.x,this.min.y)}getTopLeft(){return this.min}getBottomRight(){return this.max}getSize(){return this.max.subtract(this.min)}contains(t){let e,n;return(t=new("number"==typeof t[0]||t instanceof _?_:b)(t))instanceof b?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y}intersects(t){t=new b(t);var e=this.min,n=this.max,o=t.min,t=t.max,s=t.x>=e.x&&o.x<=n.x,e=e.y<=t.y&&o.y<=n.y;return s&&e}overlaps(t){t=new b(t);var e=this.min,n=this.max,o=t.min,t=t.max,s=t.x>e.x&&o.x<n.x,e=e.y<t.y&&o.y<n.y;return s&&e}isValid(){return!(!this.min||!this.max)}pad(t){var e=this.min,n=this.max,o=Math.abs(e.x-n.x)*t,t=Math.abs(e.y-n.y)*t;return new b(new _(e.x-o,e.y-t),new _(n.x+o,n.y+t))}equals(t){return!!t&&(t=new b(t),this.min.equals(t.getTopLeft()))&&this.max.equals(t.getBottomRight())}}class w{constructor(t,e){if(t){var n;if(t instanceof w)return t;for(n of e?[t,e]:t)this.extend(n)}}extend(t){let e,n;var o=this._southWest,s=this._northEast;if(t instanceof x)e=t,n=t;else{if(!(t instanceof w))return t?x.validate(t)?this.extend(new x(t)):this.extend(new w(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return o||s?(o.lat=Math.min(e.lat,o.lat),o.lng=Math.min(e.lng,o.lng),s.lat=Math.max(n.lat,s.lat),s.lng=Math.max(n.lng,s.lng)):(this._southWest=new x(e.lat,e.lng),this._northEast=new x(n.lat,n.lng)),this}pad(t){var e=this._southWest,n=this._northEast,o=Math.abs(e.lat-n.lat)*t,t=Math.abs(e.lng-n.lng)*t;return new w(new x(e.lat-o,e.lng-t),new x(n.lat+o,n.lng+t))}getCenter(){return new x((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)}
13getSouthWest(){return this._southWest}getNorthEast(){return this._northEast}getNorthWest(){return new x(this.getNorth(),this.getWest())}getSouthEast(){return new x(this.getSouth(),this.getEast())}getWest(){return this._southWest.lng}getSouth(){return this._southWest.lat}getEast(){return this._northEast.lng}getNorth(){return this._northEast.lat}contains(t){let e,n;t=new(x.validate(t)?x:w)(t);var o=this._southWest,s=this._northEast;return t instanceof w?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=o.lat&&n.lat<=s.lat&&e.lng>=o.lng&&n.lng<=s.lng}intersects(t){t=new w(t);var e=this._southWest,n=this._northEast,o=t.getSouthWest(),t=t.getNorthEast(),s=t.lat>=e.lat&&o.lat<=n.lat,t=t.lng>=e.lng&&o.lng<=n.lng;return s&&t}overlaps(t){t=new w(t);var e=this._southWest,n=this._northEast,o=t.getSouthWest(),t=t.getNorthEast(),s=t.lat>e.lat&&o.lat<n.lat,t=t.lng>e.lng&&o.lng<n.lng;return s&&t}toBBoxString(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")}equals(t,e){return!!t&&(t=new w(t),this._southWest.equals(t.getSouthWest
13(),e))&&this._northEast.equals(t.getNorthEast(),e)}isValid(){return!(!this._southWest||!this._northEast)}}class x{constructor(t,e,n){let o,s,r;if(!x.validate(t,e,n))throw Error(`Invalid LatLng object: (${t}, ${e})`);if(t instanceof x)return t;Array.isArray(t)&&"object"!=typeof t[0]?3===t.length?(o=t[0],s=t[1],r=t[2]):2===t.length&&(o=t[0],s=t[1]):r="object"==typeof t&&"lat"in t?(o=t.lat,s="lng"in t?t.lng:t.lon,t.alt):(o=t,s=e,n),this.lat=+o,this.lng=+s,void 0!==r&&(this.alt=+r)}static validate(t,e,n){return t instanceof x||"object"==typeof t&&"lat"in t||(t&&Array.isArray(t)&&"object"!=typeof t[0]?3===t.length||2===t.length:!(!t&&0!==t||!e&&0!==e))}equals(t,e){return!!t&&(t=new x(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(e??1e-9))}toString(t){return`LatLng(${u(this.lat,t)}, ${u(this.lng,t)})`}distanceTo(t){return k.distance(this,new x(t))}wrap(){return k.wrapLatLng(this)}toBounds(t){var t=180*t/40075017,e=t/Math.cos(Math.PI/180*this.lat);return new w([this.lat-t,this.lng-e],[this.lat+t,this.lng+e])}clone(){var t=new x(0,0);return t.lat=this.lat,t.lng=this.lng,t.alt=this.alt,t}}class T{static projection=void 0;static transformation=void 0;static latLngToPoint(t,e){return t=this.projection.project(t),e=this.scale(e),this.transformation._transform(t,e)}static pointToLatLng(t,e){return e=this.scale(e),t=this.transformation.untransform(t,e),this.projection.unproject(t)}static project(t){return this.projection.project(t)}static unproject(t){return this.projection.unproject(t)}static scale(t){return 256*2**t}static zoom(t){return Math.log(t/256)/Math.LN2}static getProjectedBounds(t){var e,n;return this.infinite?null:(n=this.projection.bounds,t=this.scale(t),e=this.transformation.transform(n.min,t),n=this.transformation.transform(n.max,t),new b(e,n))}static infinite=!1;static wrapLatLng(t){var e=this.wrapLng?l(t.lng,this.wrapLng,!0):t.lng,n=this.wrapLat?l(t.lat,this.wrapLat,!0):t.lat,t=t.alt;return new x(n,e,t)}static wrapLatLngBounds(t){var e=t.getCenter(),n=this.wrapLatLng(e),o=e.lat-n.lat,e=e.lng-n.lng;
13return 0==o&&0==e?t:(n=t.getSouthWest(),t=t.getNorthEast(),n=new x(n.lat-o,n.lng-e),o=new x(t.lat-o,t.lng-e),new w(n,o))}}class k extends T{static wrapLng=[-180,180];static R=6371e3;static distance(t,e){var n=Math.PI/180,o=t.lat*n,s=e.lat*n,r=Math.sin((e.lat-t.lat)*n/2),e=Math.sin((e.lng-t.lng)*n/2),t=r*r+Math.cos(o)*Math.cos(s)*e*e,n=2*Math.atan2(Math.sqrt(t),Math.sqrt(1-t));return this.R*n}}let C={R:6378137,MAX_LATITUDE:85.0511287798,project(t){var e=Math.PI/180,n=this.MAX_LATITUDE,n=Math.max(Math.min(n,t.lat),-n),n=Math.sin(n*e);return new _(this.R*t.lng*e,this.R*Math.log((1+n)/(1-n))/2)},unproject(t){var e=180/Math.PI;return new x((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(P=6378137*Math.PI,new b([-P,-P],[P,P]))};class j{constructor(t,e,n,o){Array.isArray(t)?(this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3]):(this._a=t,this._b=e,this._c=n,this._d=o)}transform(t,e){return this._transform(t.clone(),e)}_transform(t,e){return t.x=(e||=1)*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t}untransform(t,e){return e||=1,new _((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}}class S extends k{static code="EPSG:3857";static projection=C;static transformation=(P=.5/(Math.PI*C.R),new j(P,.5,-P,.5))}var P=I("chrome"),E=!P&&I("safari"),O="undefined"!=typeof orientation||I("mobile"),M="undefined"!=typeof window&&!!window.PointerEvent,A="undefined"!=typeof window&&("ontouchstart"in window||!!window.TouchEvent);function I(t){return"undefined"!=typeof navigator&&void 0!==navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t)}var z={chrome:P,safari:E,mobile:O,pointer:M,touch:A||M,touchNative:A,retina:"undefined"!=typeof window&&void 0!==window.devicePixelRatio&&1<window.devicePixelRatio,mac:"undefined"!=typeof navigator&&void 0!==navigator.platform&&navigator.platform.startsWith("Mac"),linux:"undefined"!=typeof navigator&&void 0!==navigator.platform&&navigator.platform.startsWith("Linux")};function N(t){return"string"==typeof t?document.getElementById(t):t}function D(t,e,n){return(t=document.createElement(t)).className=e??"",n&&n.appendChild(t),t}function B(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function R(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function F(t,e,n){e=e??new _(0,0),t.style.transform=`translate3d(${e.x}px,${e.y}px,0)`+(n?` scale(${n})`:"")}let H=new WeakMap;function W(t,e){H.set(t,e),F(t,e)}function Z(t){return H.get(t)??new _(0,0)}let U="undefined"==typeof document?{}:document.documentElement.style,V=["userSelect","WebkitUserSelect"].find(t=>t in U),q;function G(){var t=U[V];"none"!==t&&(q=t,U[V]="none")}function Q(){void 0!==q&&(U[V]=q,q=void 0)}function Y(){tu(window,"dragstart",tb)}function K(){td(window,"dragstart",tb)}function X(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(J(),e=t,n=t.style.outlineStyle,t.style.outlineStyle="none",tu(window,"keydown",J))}function J(){e&&(e.style.outlineStyle=n,e=void 0,n=void 0,td(window,"keydown",J))}function tt(t){for(;!((t=t.parentNode).offsetWidth&&t.offsetHeight||t===document.body););return t}function te(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}let ti={__proto__:null,create:D,disableImageDrag:Y,disableTextSelection:G,enableImageDrag:K,enableTextSelection:Q,get:N,getPosition:Z,getScale:te,getSizedParentNode:tt,preventOutline:X,restoreOutline:J,setPosition:W,setTransform:F,toBack:R,toFront:B},tn=new Map,to=!1;function ts(){to||(to=!0,document.addEventListener("pointerdown",tr,{capture:!0}),document.addEventListener("pointermove",ta,{capture:!0}),document.addEventListener("pointerup",tl,{capture:!0}),document.addEventListener("pointercancel",tl,{capture:!0}),tn=new Map)}function tr(t){tn.set(t.pointerId,t)}function ta(t){tn.has(t.pointerId)&&tn.set(t.pointerId,t)}function tl(t){tn.delete(t.pointerId)}function tc(){return[...tn.values()]}function tu(t,e,n,o){if(e&&"object"==typeof e)for(var[s,r]of Object.entries(e))tm(t,s,r,n);else for(var a of h(e))tm(t,a,n,o);return this}P={__proto__:null,cleanupPointers:function(){tn.clear()},disablePointerDetection:function(){document.removeEventListener("pointerdown",tr,{capture:!0}),document.removeEventListener("pointermove",ta,{capture:!0}),document.removeEventListener("pointerup",tl,{capture:!0}),document.removeEventListener("pointercancel",tl,{capture:!0}),to=!1},enablePointerDetection:ts,getPointers:tc};let th="_leaflet_events";function td(t,e,n,o){if(1==arguments.length)tp(t),delete t[th];else if(e&&"object"==typeof e)for(var[s,r]of Object.entries(e))tg(t,s,r,n);else if(e=h(e),2==arguments.length)tp(t,t=>e.includes(t));else for(var a of e)tg(t,a,n,o);return this}function tp(t,e){for(var n of Object.keys(t[th]??{})){var o=n.split(/\d/)[0];e&&!e(o)||tg(t,o,null,null,n)}}let tf={pointerenter:"pointerover",pointerleave:"pointerout",wheel:"undefined"!=typeof window&&!("onwheel"in window)&&"mousewheel"};function tm(t,e,n,o){var s=e+r(n)+(o?"_"+r(o):"");if(!t[th]||!t[th][s]){let r=function(e){return n.call(o||t,e||window.event)},a=r;z.touch&&"dblclick"===e?r=function(t,e){t.addEventListener("dblclick",e);let n=0,o;function s(t){var e;let s;
131!==t.detail?o=t.detail:"mouse"===t.pointerType||t.sourceCapabilities&&!t.sourceCapabilities.firesTouchEvents||(e=tx(t)).some(t=>t instanceof HTMLLabelElement&&t.attributes.for)&&!e.some(t=>t instanceof HTMLInputElement||t instanceof HTMLSelectElement)||((e=Date.now())-n<=200?2==++o&&t.target.dispatchEvent((s={bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed,detail:2,view:t.view,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,button:t.button,buttons:t.buttons,relatedTarget:t.relatedTarget,region:t.region},new(t instanceof PointerEvent?(s={...s,pointerId:t.pointerId,width:t.width,height:t.height,pressure:t.pressure,tangentialPressure:t.tangentialPressure,tiltX:t.tiltX,tiltY:t.tiltY,twist:t.twist,pointerType:t.pointerType,isPrimary:t.isPrimary},PointerEvent):MouseEvent)("dblclick",s))):o=1,n=e)}return t.addEventListener("click",s),{dblclick:e,simDblclick:s}}(t,r):"addEventListener"in t?"wheel"===e||"mousewheel"===e?t.addEventListener(tf[e]||e,r,{passive:!1}):"pointerenter"===e||"pointerleave"===e?(r=function(e){tj(t,e??=window.event)&&a(e)},t.addEventListener(tf[e],r,!1)):t.addEventListener(e,a,!1):t.attachEvent("on"+e,r),t[th]??={},t[th][s]=r}}function tg(t,e,n,o,s){s??=e+r(n)+(o?"_"+r(o):"");var n=t[th]&&t[th][s];n&&(z.touch&&"dblclick"===e?(o=n,t.removeEventListener("dblclick",o.dblclick),t.removeEventListener("click",o.simDblclick)):"removeEventListener"in t?t.removeEventListener(tf[e]||e,n,!1):t.detachEvent("on"+e,n),t[th][s]=null)}function tv(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function ty(t){return tm(t,"wheel",tv),this}function t_(t){return tu(t,"pointerdown dblclick contextmenu",tv),t._leaflet_disable_click=!0,this}function tb(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function tw(t){return tb(t),tv(t),this}function tx(t){return t.composedPath()}function tT(t,e){var n,o;return e?(o=(n=te(e)).boundingClientRect,new _((t.clientX-o.left)/n.x-e.clientLeft,(t.clientY-o.top)/n.y-e.clientTop)):new _(t.clientX,t.clientY)}function tk(){var t=window.devicePixelRatio;return z.linux&&z.chrome?t:z.mac?3*t:0<t?2*t:1}function tC(t){return t.deltaY&&0===t.deltaMode?-t.deltaY/tk():t.deltaY&&1===t.deltaMode?-(20*t.deltaY):t.deltaY&&2===t.deltaMode?-(60*t.deltaY):(t.deltaX||t.deltaZ,0)}function tj(t,e){let n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var tS={__proto__:null,PointerEvents:P,addListener:tu,disableClickPropagation:t_,disableScrollPropagation:ty,getPointerPosition:tT,getPropagationPath:tx,getWheelDelta:tC,getWheelPxFactor:tk,isExternalTarget:tj,off:td,on:tu,preventDefault:tb,removeListener:td,stop:tw,stopPropagation:tv};let tP=y.extend({run(t,e,n,o){this.stop(),this._el=t,this._inProgress=!0,this._duration=n??.25,this._easeOutPower=1/Math.max(o??.5,.2),this._startPos=Z(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop(){this._inProgress&&(this._step(!0),this._complete())},_animate(){this._animId=requestAnimationFrame(this._animate.bind(this)),this._step()},_step(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame(t,e){t=this._startPos.add(this._offset.multiplyBy(t)),e&&t._round(),W(this._el,t),this.fire("step")},_complete(){cancelAnimationFrame(this._animId),this._inProgress=!1,this.fire("end")},_easeOut(t){return 1-(1-t)**this._easeOutPower}});E=y.extend({options:{crs:S,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize(t,e){e=d(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(new x(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=this.options.zoomAnimation,this._zoomAnimated&&this._createAnimProxy(),this._addLayers(this.options.layers)}
13,setView(t,e,n){return(e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(new x(t),e,this.options.maxBounds),n??={},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom={animate:n.animate,...n.zoom},n.pan={animate:n.animate,duration:n.duration,...n.pan}),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan)))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e,n.pan?.noMoveStart),this)},setZoom(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn(t,e){return t??=this.options.zoomDelta,this.setZoom(this._zoom+t,e)},zoomOut(t,e){return t??=this.options.zoomDelta,this.setZoom(this._zoom-t,e)},setZoomAround(t,e,n){var o=this.getZoomScale(e),s=this.getSize().divideBy(2),t=(t instanceof _?t:this.latLngToContainerPoint(t)).subtract(s).multiplyBy(1-1/o),o=this.containerPointToLatLng(s.add(t));return this.setView(o,e,{zoom:n})},_getBoundsCenterZoom(t,e){e??={},t=t.getBounds?t.getBounds():new w(t);var n=new _(e.paddingTopLeft||e.padding||[0,0]),o=new _(e.paddingBottomRight||e.padding||[0,0]),s=this.getBoundsZoom(t,!1,n.add(o));return(s="number"==typeof e.maxZoom?Math.min(e.maxZoom,s):s)===1/0?{center:t.getCenter(),zoom:s}
13:(e=o.subtract(n).divideBy(2),o=this.project(t.getSouthWest(),s),n=this.project(t.getNorthEast(),s),{center:this.unproject(o.add(n).divideBy(2).add(e),s),zoom:s})},fitBounds(t,e){if((t=new w(t)).isValid())return t=this._getBoundsCenterZoom(t,e),this.setView(t.center,t.zoom,e);throw Error("Bounds are not valid.")},fitWorld(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo(t,e){return this.setView(t,this._zoom,{pan:e})},panBy(t,e){var n;return e??={},(t=new _(t).round()).x||t.y?(!0===e.animate||this.getSize().contains(t)?(this._panAnim||(this._panAnim=new tP,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate?(this._mapPane.classList.add("leaflet-pan-anim"),n=this._getMapPanePos().subtract(t).round(),this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)):(this._rawPanBy(t),this.fire("move").fire("moveend"))):this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this):this.fire("moveend")},flyTo(t,e,n){if(!1===(n??={}).animate)return this.setView(t,e,n);this._stop();let o=this.project(this.getCenter()),s=this.project(t),r=this.getSize(),a=this._zoom,l=(t=new x(t),e=void 0===e?a:this._limitZoom(e),Math.max(r.x,r.y)),c=l*this.getZoomScale(a,e),u=s.distanceTo(o)||1;function h(t){var e=t?-1:1,t=t?c:l,e=(c*c-l*l+2.0164*e*2.0164*u*u)/(2*t*2.0164*u),t=Math.sqrt(e*e+1)-e;return t<1e-9?-18:Math.log(t)}function d(t){return(Math.exp(t)-Math.exp(-t))/2}function p(t){return(Math.exp(t)+Math.exp(-t))/2}let f=h(0),m=Date.now(),g=(h(1)-f)/1.42,v=n.duration?1e3*n.duration:1e3*g*.8;return this._moveStart(!0,n.noMoveStart),(function n(){var r,c=(Date.now()-m)/v,h=(1-(1-c)**1.5)*g;c<=1?(this._flyToFrame=requestAnimationFrame(n.bind(this)),this._move(this.unproject(o.add(s.subtract(o).multiplyBy((r=h,l*(p(f)*(d(r=f+1.42*r)/p(r))-d(f))/2.0164/u))),a),this.get
13ScaleZoom(l/(c=h,l*(p(f)/p(f+1.42*c))),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}).call(this),this},flyToBounds(t,e){return t=this._getBoundsCenterZoom(t,e),this.flyTo(t.center,t.zoom,e)},setMaxBounds(t){return t=new w(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds(t,e){this._enforcingBounds=!0;var n=this.getCenter(),t=this._limitCenter(n,this._zoom,new w(t));return n.equals(t)||this.panTo(t,e),this._enforcingBounds=!1,this},panInside(t,e){e??={};var n=new _(e.paddingTopLeft||e.padding||[0,0]),o=new _(e.paddingBottomRight||e.padding||[0,0]),s=this.project(this.getCenter()),t=this.project(t),r=this.getPixelBounds(),n=new b([r.min.add(n),r.max.subtract(o)]),r=n.getSize();return n.contains(t)||(this._enforcingBounds=!0,o=t.subtract(n.getCenter()),n=n.extend(t).getSize().subtract(r),s.x+=o.x<0?-n.x:n.x,s.y+=o.y<0?-n.y:n.y,this.panTo(this.unproject(s),e),this._enforcingBounds=!1),this},invalidateSize(t){if(!this._loaded)return this;t={animate:!1,pan:!0,...!0===t?{animate:!0}:t};var e=this.getSize(),n=(this._sizeChanged=!0,this._lastCenter=null,this.getSize()),o=e.divideBy(2).round(),s=n.divideBy(2).round(),o=o.subtract(s);return o.x||o.y?(t.animate&&t.pan?this.panBy(o):(t.pan&&this._rawPanBy(o),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(this.fire.bind(this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},stop(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate(t){var e,n;return t=this._locateOptions={timeout:1e4,watch:!1,...t},"geolocation"in navigator?(e=this._handleGeolocationResponse.bind(this),n=this._handleGeolocationError.bind(this),t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t)):this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this},stopLocate(){return navigator.geolocation?.clearWatch?.(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError(t){var e;this._container._leaflet_id&&(e=t.code,t=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout"),this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:`Geolocation error: ${t}.`}))},_handleGeolocationResponse(t){if(this._container._leaflet_id){var e,n,o=t.coords.latitude,s=t.coords.longitude,o=new x(o,s),s=o.toBounds(2*t.coords.accuracy),r=this._locateOptions,a=(r.setView&&(e=this.getBoundsZoom(s),this.setView(o,r.maxZoom?Math.min(e,r.maxZoom):e)),{latlng:o,bounds:s,timestamp:t.timestamp});for(n of Object.keys(t.coords))"number"==typeof t.coords[n]&&(a[n]=t.coords[n]);this.fire("locationfound",a)}},addHandler(t,e){return e&&(e=this[t]=new e(this),this._handlers.push(e),this.options[t])&&e.enable(),this},remove(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}for(var t of(void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),this._mapPane.remove(),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(cancelAnimationFrame(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),clearTimeout(this._transitionEndTimer),clearTimeout(this._sizeTimer),this._loaded&&this.fire("unload"),this._destroyAnimProxy(),Object.values(this._layers)))t.remove();for(var e of Object.values(this._panes))e.remove();return this._layers={},this._panes={},delete this._mapPane,delete this._renderer,this},createPane(t,e){return e=D("div","leaflet-pane"+(t?` leaflet-${t.replace("Pane","")}-pane`:""),e||this._mapPane),t&&(this._panes[t]=e),e},getCenter(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom(){return this._zoom},getBounds(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),t=this.unproject(t.getTopRight());return new w(e,t)},getMinZoom(){return this.options.minZoom??this._layersMinZoom??0}
13,getMaxZoom(){return this.options.maxZoom??this._layersMaxZoom??1/0},getBoundsZoom(t,e,n){t=new w(t),n=new _(n??[0,0]);let o=this.getZoom()??0;var s=this.getMinZoom(),r=this.getMaxZoom(),a=t.getNorthWest(),t=t.getSouthEast(),n=this.getSize().subtract(n),t=new b(this.project(t,o),this.project(a,o)).getSize(),a=this.options.zoomSnap,l=n.x/t.x,n=n.y/t.y,t=e?Math.max(l,n):Math.min(l,n);return o=this.getScaleZoom(t,o),a&&(o=Math.round(o/(a/100))*(a/100),o=e?Math.ceil(o/a)*a:Math.floor(o/a)*a),Math.max(s,Math.min(r,o))},getSize(){return this._size&&!this._sizeChanged||(this._size=new _(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds(t,e){return t=this._getTopLeftPoint(t,e),new b(t,t.add(this.getSize()))},getPixelOrigin(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds(t){return this.options.crs.getProjectedBounds(t??this.getZoom())},getPane(t){return"string"==typeof t?this._panes[t]:t},getPanes(){return this._panes},getContainer(){return this._container},getZoomScale(t,e){var n=this.options.crs;return e??=this._zoom,n.scale(t)/n.scale(e)},getScaleZoom(t,e){var n=this.options.crs,t=(e??=this._zoom,n.zoom(t*n.scale(e)));return isNaN(t)?1/0:t},project(t,e){return e??=this._zoom,this.options.crs.latLngToPoint(new x(t),e)},unproject(t,e){return e??=this._zoom,this.options.crs.pointToLatLng(new _(t),e)},layerPointToLatLng(t){return t=new _(t).add(this.getPixelOrigin()),this.unproject(t)},latLngToLayerPoint(t){return this.project(new x(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng(t){return this.options.crs.wrapLatLng(new x(t))},wrapLatLngBounds(t){return this.options.crs.wrapLatLngBounds(new w(t))},distance(t,e){return this.options.crs.distance(new x(t),new x(e))},containerPointToLayerPoint(t){return new _(t).subtract(this._getMapPanePos())},layerPointToContainerPoint(t){return new _(t).add(this._getMapPanePos())},containerPointToLatLng(t){return t=this.containerPointToLayerPoint(new _(t)),this.layerPointToLatLng(t)},latLngToContainerPoint(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(new x(t)))},pointerEventToContainerPoint(t){return tT(t,this._container)},pointerEventToLayerPoint(t){return this.containerPointToLayerPoint(this.pointerEventToContainerPoint(t))},pointerEventToLatLng(t){return this.layerPointToLatLng(this.pointerEventToLayerPoint(t))},_initContainer(t){if(!(t=this._container=N(t)))throw Error("Map container not found.");if(t._leaflet_id)throw Error("Map container is already initialized.");tu(t,"scroll",this._onScroll,this),this._containerId=r(t),ts()},_initLayout(){var t=this._container,e=(this._fadeAnimated=this.options.fadeAnimation,["leaflet-container"]),e=(z.touch&&e.push("leaflet-touch"),z.retina&&e.push("leaflet-retina"),z.safari&&e.push("leaflet-safari"),this._fadeAnimated&&e.push("leaflet-fade-anim"),t.classList.add(...e),getComputedStyle(t)).position;"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),W(this._mapPane,new _(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(t.markerPane.classList.add("leaflet-zoom-hide"),t.shadowPane.classList.add("leaflet-zoom-hide"))},_resetView(t,e,n){W(this._mapPane,new _(0,0));var o=!this._loaded,s=(this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset"),this._zoom!==e);this._moveStart(s,n)._move(t,e)._moveEnd(s),this.fire("viewreset"),o&&this.fire("load")},_moveStart(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move(t,e,n,o){void 0===e&&(e=this._zoom);var s=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),o?n?.pinch&&this.fire("zoom",n):((s||n?.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop(){return cancelAnimationFrame(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy(t){W(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded(){if(!this._loaded)throw Error("Set map center and zoom first.")},_initEvents(t){this._targets={},(t?td:tu)((this._targets[r(this._container)]=this)._container,"click dblclick pointerdown pointerup pointerover pointerout pointermove c
13ontextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&(t?this._resizeObserver.disconnect():(this._resizeObserver||(this._resizeObserver=new ResizeObserver(this._onResize.bind(this))),this._resizeObserver.observe(this._container))),this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize(){cancelAnimationFrame(this._resizeRequest),this._resizeRequest=requestAnimationFrame(()=>{this.invalidateSize({debounceMoveend:!0})})},_onScroll(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets(t,e){let n=[],o,s=t.target||t.srcElement,a=!1;for(var l="pointerout"===e||"pointerover"===e;s;){if((o=this._targets[r(s)])&&("click"===e||"preclick"===e)&&this._draggableMoved(o)){a=!0;break}if(o&&o.listens(e,!0)&&(l&&!tj(s,t)||(n.push(o),l))||s===this._container)break;s=s.parentNode}return n.length||a||l||!this.listens(e,!0)?n:[this]},_isClickDisabled(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click||!t.parentNode)return!0;t=t.parentNode}},_handleDOMEvent(t){var e,n=t.target??t.srcElement;!this._loaded||n._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(n)||("pointerdown"===(e=t.type)&&X(n),this._fireDOMEvent(t,e))},_pointerEvents:["click","dblclick","pointerover","pointerout","contextmenu"],_fireDOMEvent(t,e,n){"click"===e&&this._fireDOMEvent(t,"preclick",n);let o=this._findEventTargets(t,e);if(n&&(o=(n=n.filter(t=>t.listens(e,!0))).concat(o)),o.length){"contextmenu"===e&&tb(t);var s,r,n=o[0],a={originalEvent:t};for(r of("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type&&(s=n.getLatLng&&(!n._radius||n._radius<=10),a.containerPoint=s?this.latLngToContainerPoint(n.getLatLng()):this.pointerEventToContainerPoint(t),a.layerPoint=this.containerPointToLayerPoint(a.containerPoint),a.latlng=s?n.getLatLng():this.layerPointToLatLng(
13a.layerPoint)),o))if(r.fire(e,a,!0),a.originalEvent._stopped||!1===r.options.bubblingPointerEvents&&this._pointerEvents.includes(e))return}},_draggableMoved(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers(){for(var t of this._handlers)t.disable()},whenReady(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos(){return Z(this._mapPane)},_moved(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint(t,e,n){return n=this._getNewPixelOrigin(n,e),this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds(t,e,n){return n=this._getNewPixelOrigin(n,e),new b([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter(t,e,n){var o,s;return!n||(o=this.project(t,e),s=this.getSize().divideBy(2),s=new b(o.subtract(s),o.add(s)),1>=Math.abs((s=this._getBoundsOffset(s,n,e)).x)&&1>=Math.abs(s.y))?t:this.unproject(o.add(s),e)},_limitOffset(t,e){var n;return e?(n=this.getPixelBounds(),n=new b(n.min.add(t),n.max.add(t)),t.add(this._getBoundsOffset(n,e))):t},_getBoundsOffset(t,e,n){return n=(e=new b(this.project(e.getNorthEast(),n),this.project(e.getSouthWest
13(),n))).min.subtract(t.min),e=e.max.subtract(t.max),t=this._rebound(n.x,-e.x),n=this._rebound(n.y,-e.y),new _(t,n)},_rebound:(t,e)=>0<t+e?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e)),_limitZoom(t){var e=this.getMinZoom(),n=this.getMaxZoom(),o=this.options.zoomSnap;return o&&(t=Math.round(t/o)*o),Math.max(e,Math.min(n,t))},_onPanTransitionStep(){this.fire("move")},_onPanTransitionEnd(){this._mapPane.classList.remove("leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan(t,e){return t=this._getCenterOffset(t)._trunc(),!(!0!==e?.animate&&!this.getSize().contains(t)||(this.panBy(t,e),0))},_createAnimProxy(){this._proxy=D("div","leaflet-proxy leaflet-zoom-animated"),this._panes.mapPane.appendChild(this._proxy),this.on("zoomanim",this._animateProxyZoom,this),this.on("load moveend",this._animMoveEnd,this),tu(this._proxy,"transitionend",this._catchTransitionEnd,this)},_animateProxyZoom(t){var e=this._proxy.style.transform;F(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),e===this._proxy.style.transform&&this._animatingZoom&&this._onZoomTransitionEnd()},_animMoveEnd(){var t=this.getCenter(),e=this.getZoom();F(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_destroyAnimProxy(){this._proxy&&(td(this._proxy,"transitionend",this._catchTransitionEnd,this),this._proxy.remove(),this.off("zoomanim",this._animateProxyZoom,this),this.off("load moveend",this._animMoveEnd,this),delete this._proxy)},_catchTransitionEnd(t){this._animatingZoom&&t.propertyName.includes("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom(t,e,n){if(!this._animatingZoom){if(n??={},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var o=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/o);if(!0!==n.animate&&!this.getSize().contains(o))return!1;requestAnimationFrame(()=>{this._moveStart(!0,n.noMoveStart??!1)._animateZoom(t,e,!0)})}return!0},_animateZoom(t,e,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,this._mapPane.classList.add("leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._transitionEndTimer=setTimeout(this._onZoomTransitionEnd.bind(this),250))},_onZoomTransitionEnd(){this._animatingZoom&&(this._mapPane&&this._mapPane.classList.remove("leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});let tE=v.extend({options:{position:"topright"},initialize(t){d(this,t)},getPosition(){return this.options.position},setPosition(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer(){return this._container},addTo(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),t=t._controlCorners[n];return e.classList.add("leaflet-control"),n.includes("bottom")?t.insertBefore(e,t.firstChild):t.appendChild(e),this._map.on("unload",this.remove,this),this},remove(){return this._map&&(this._container.remove(),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap(t){this._map&&t&&(0!==t.screenX||0!==t.screenY)&&this._map.getContainer().focus()}});E.include({addControl(t){return t.addTo(this),this},removeControl(t){return t.remove(),this},_initControlPos(){let t=this._controlCorners={},e="leaflet-",n=this._controlContainer=D("div",e+"control-container",this._container);function o(o,s){t[o+s]=D("div",e+o+" "+e+s,n)}o("top","left"),o("top","right"),o("bottom","left"),o("bottom","right")},_clearControlPos(){for(var t of Object.values(this._controlCorners))t.remove();this._controlContainer.remove(),delete this._controlCorners,delete this._controlContainer}}
13),O=tE.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:(t,e,n,o)=>n<o?-1:o<n?1:0},initialize(t,e,n){for(var[o,s]of(d(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,Object.entries(t??{})))this._addLayer(s,o);for(var[r,a]of Object.entries(e??{}))this._addLayer(a,r,!0)},onAdd(t){for(var e of(this._initLayout(),this._update(),(this._map=t).on("zoomend",this._checkDisabledLayers,this),this._layers))e.layer.on("add remove",this._onLayerChange,this);return this.options.collapsed||t.on("resize",this._expandIfNotCollapsed,this),this._container},addTo(t){return tE.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove(){for(var t of(this._map.off("zoomend",this._checkDisabledLayers,this),this._layers))t.layer.off("add remove",this._onLayerChange,this);this._map.off("resize",this._expandIfNotCollapsed,this)},addBaseLayer(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer(t){return t.off("add remove",this._onLayerChange,this),(t=this._getLayer(r(t)))&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand(){this._container.classList.add("leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(this._section.classList.add("leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):this._section.classList.remove("leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse(t){return t&&("pointerleave"===t.type||"pointerout"===t.type)&&"touch"===t.pointerType||this._container.classList.remove("leaflet-control-layers-expanded"),this},_initLayout(){var t="leaflet-control-layers",e=this._container=D("div",t),n=this.options.collapsed,o=(t_(e),ty(e),this._section=D("fieldset",t+"-list")),s=(n&&(this._map.on("click",this.collapse,this),tu(e,{pointerenter:this._expandSafely,pointerleave:this.collapse},this)),this._layersLink=D("a",t+"-toggle",e));s.href="#",s.title="Layers",s.setAttribute("role","button"),tu(s,{keydown(t){"Enter"===t.code&&this._expandSafely()},click(t){tb(t),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=D("div",t+"-base",o),this._separator=D("div",t+"-separator",o),this._overlaysList=D("div",t+"-overlays",o),e.appendChild(o)},_getLayer(t){for(var e of this._layers)if(e&&r(e.layer)===t)return e},_addLayer(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort((t,e)=>this.options.sortFunction(t.layer,e.layer,t.name,e.name)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update(){if(this._container){this._baseLayersList.replaceChildren(),this._overlaysList.replaceChildren(),this._layerControlInputs=[];let e,n,o=0;for(var t of this._layers)this._addItem(t),n||=t.overlay,e||=!t.overlay,o+=t.overlay?0:1;this.options.hideSingleBase&&(e=e&&1<o,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=n&&e?"":"none"}return this},_onLayerChange(t){this._handlingClick||this._update();var e=this._getLayer(r(t.target)),t=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;t&&this._map.fire(t,e)},_createRadioElement:(t,e)=>(t=`<input type="radio" class="leaflet-control-layers-selector" name="${t}"${e?' checked="checked"':""}/>`,(e=document.createElement("div")).innerHTML=t,e.firstChild),_addItem(t){let e;var n=document.createElement("label"),o=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=o):e=this._createRadioElement("leaflet-base-layers_"+r(this),o),this._layerControlInputs.push(e),e.layerId=r(t.layer),tu(e,"click",this._onInputClick,this);var o=document.createElement("span"),s=(o.innerHTML=" "+t.name,document.createElement("span"));return n.appendChild(s),s.appendChild(e),s.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick(t){if(!this._preventClick){var e,n,o,s=this._layerControlInputs,r=[],a=[];for(e of(this._handlingClick=!0,s)){var l=this._getLayer(e.layerId).layer;(e.checked?r:(e.checked,a)).push(l)}for(n of a)this._map.hasLayer(n)&&this._map.removeLayer(n);for(o of r)this._map.hasLayer(o)||this._map.addLayer(o);this._handlingClick=!1,this._refocusOnMap(t)}},_checkDisabledLayers(){var t,e=this._layerControlInputs,n=this._map.getZoom();for(t of e){var o=this._getLayer(t.layerId).layer;t.disabled=void 0!==o.options.minZoom&&n<o.options.minZoom||void 0!==o.options.maxZoom&&n>o.options.maxZoom}},_expandIfNotCollapsed(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely(){let t=this._section;this._preventClick=!0,tu(t,"click",tb),this.expand(),setTimeout(()=>{td(t,"click",tb),this._preventClick=!1})}});let tO=tE.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd(t){var e="leaflet-control-zoom",n=D("div",e+" leaflet-bar"),o=this.options;return this._zoomInButton=this._createButton(o.zoomInText,o.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(o.zoomOutText,o.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable(){return this._disabled=!0,this._updateDisabled(),this},enable(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton(t,e,n,o,s){return(n=D("a",n,o)).innerHTML=t,n.href="#",n.title=e,n.setAttribute("role","button"),n.setAttribute("aria-label",e),t_(n),tu(n,"click",tw),tu(n,"click",s,this),tu(n,"click",this._refocusOnMap,this),n},_updateDisabled(){var t=this._map,e="leaflet-disabled";this._zoomInButton.classList.remove(e),this._zoomOutButton.classList.remove(e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(this._zoomOutButton.classList.add(e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(this._zoomInButton.classList.add(e),this._zoomInButton.setAttribute("aria-disabled","true"))}});E.mergeOptions({zoomControl:!0}),E.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new tO,this.addControl(this.zoomControl))}),M=tE.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd(t){var e="leaflet-control-scale",n=D("div",e),o=this.options;return this._addScales(o,e+"-line",n),t.on(o.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales(t,e,n){t.metric&&(this._mScale=D("div",e,n)),t.imperial&&(this._iScale=D("div",e,n))},_update(){var t=this._map,e=t.getSize().y/2,t=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(t)},_updateScales(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric(t){var e=this._getRoundNum(t);this._updateScale(this._mScale,e<1e3?e+" m":e/1e3+" km",e/t)},_updateImperial(t){var e,n,t=3.2808399*t;5280<t?(n=this._getRoundNum(e=t/5280),this._updateScale(this._iScale,n+" mi",n/e)):(n=this._getRoundNum(t),this._updateScale(this._iScale,n+" ft",n/t))},_updateScale(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum(t){var e=10**((""+Math.floor(t)).length-1),t=t/e;return e*(10<=t?10:5<=t?5:3<=t?3:2<=t?2:1)}});let tL=tE.extend({options:{position:"bottomright",prefix:'<a target="_blank" href="https://leafletjs.com" title="A JavaScript library for interactive maps"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>Leaflet</a>'},initialize(t){d(this,t),this._attributions={}}
13,onAdd(t){for(var e of((t.attributionControl=this)._container=D("div","leaflet-control-attribution"),t_(this._container),Object.values(t._layers)))e.getAttribution&&this.addAttribution(e.getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove(t){t.off("layeradd",this._addAttribution,this)},_addAttribution(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",()=>this.removeAttribution(t.layer.getAttribution())))},setPrefix(t){return this.options.prefix=t,this._update(),this},addAttribution(t){return t&&(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update()),this},removeAttribution(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update(){var t,e;this._map&&(t=Object.keys(this._attributions).filter(t=>this._attributions[t]),e=[],this.options.prefix&&e.push(this.options.prefix),t.length&&e.push(t.join(", ")),this._container.innerHTML=e.join(' <span aria-hidden="true">|</span> '))}});E.mergeOptions({attributionControl:!0}),E.addInitHook(function(){this.options.attributionControl&&(new tL).addTo(this)}),tE.Layers=O,tE.Zoom=tO,tE.Scale=M,tE.Attribution=tL,(A=v.extend({initialize(t){this._map=t},enable(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled(){return!!this._enabled}})).addTo=function(t,e){return t.addHandler(e,this),this};let tM=y.extend({options:{clickTolerance:3},initialize(t,e,n,o){d(this,o),this._element=t,this._dragStartTarget=e??t,this._preventOutline=n},enable(){this._enabled||(tu(this._dragStartTarget,"pointerdown",this._onDown,this),this._enabled=!0)},disable(){this._enabled&&(tM._dragging===this&&this.finishDrag(!0),td(this._dragStartTarget,"pointerdown",this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown(t){var e;this._enabled&&(this._moved=!1,this._element.classList.contains("leaflet-zoom-anim")||(1!==tc().length?tM._dragging===this&&this.finishDrag():tM._dragging||t.shiftKey||0!==t.button&&"touch"!==t.pointerType||((tM._dragging=this)._preventOutline&&X(this._element),Y(),G(),this._moving)||(this.fire("down"),e=tt(this._element),this._startPoint=new _(t.clientX,t.clientY),this._startPos=Z(this._element),this._parentScale=te(e),tu(document,"pointermove",this._onMove,this),tu(document,"pointerup pointercancel",this._onUp,this))))},_onMove(t){var e;this._enabled&&(1<tc().length?this._moved=!0:!(e=new _(t.clientX,t.clientY)._subtract(this._startPoint)).x&&!e.y||Math.abs(e.x)+Math.abs(e.y)<this.options.clickTolerance||(e.x/=this._parentScale.x,e.y/=this._parentScale.y,t.cancelable&&tb(t),this._moved||(this.fire("dragstart"),this._moved=!0,document.body.classList.add("leaflet-dragging"),this._lastTarget=t.target??t.srcElement,this._lastTarget.classList.add("leaflet-drag-target")),this._newPos=this._startPos.add(e),this._moving=!0,this._lastEvent=t,this._updatePosition()))},_updatePosition(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),W(this._element,this._newPos),this.fire("drag",t)},_onUp(){this._enabled&&this.finishDrag()},finishDrag(t){document.body.classList.remove("leaflet-dragging"),this._lastTarget&&(this._lastTarget.classList.remove("leaflet-drag-target"),this._lastTarget=null),td(document,"pointermove",this._onMove,this),td(document,"pointerup pointercancel",this._onUp,this),K(),Q();var e=this._moved&&this._moving;this._moving=!1,tM._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function tA(t,e,n){let o,s,r,a,l,c,u,h,d;var p=[1,4,2,8];for(s=0,u=t.length;s<u;s++)t[s]._code=tR(t[s],e);for(a=0;a<4;a++){for(h=p[a],o=[],s=0,r=(u=t.length)-1;s<u;r=s++)l=t[s],c=t[r],l._code&h?c._code&h||((d=tB(c,l,h,e,n))._code=tR(d,e),o.push(d)):(c._code&h&&((d=tB(c,l,h,e,n))._code=tR(d,e),o.push(d)),o.push(l));t=o}return t}function tI(t,e){let n,o,s,r,a,l,c,u,h;if(!t||0===t.length)throw Error("latlngs not passed");tH(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);let d=new x([0,0]);
13var p=new w(t),f=(p.getNorthWest().distanceTo(p.getSouthWest())*p.getNorthEast().distanceTo(p.getNorthWest())<1700&&(d=tz(t)),t.length),m=[];for(n=0;n<f;n++){var g=new x(t[n]);m.push(e.project(new x([g.lat-d.lat,g.lng-d.lng])))}for(l=c=u=0,n=0,o=f-1;n<f;o=n++)s=m[n],r=m[o],a=s.y*r.x-r.y*s.x,c+=(s.x+r.x)*a,u+=(s.y+r.y)*a,l+=3*a;return h=0===l?m[0]:[c/l,u/l],p=e.unproject(new _(h)),new x([p.lat+d.lat,p.lng+d.lng])}function tz(t){let e=0,n=0,o=0;for(var s of t)e+=(s=new x(s)).lat,n+=s.lng,o++;return new x([e/o,n/o])}function t$(t,e){if(e&&t.length){e*=e;{var n=t=((t,e)=>{let n=[t[0]],o=0;for(let s=1;s<t.length;s++)((t,e)=>{var n=e.x-t.x;return n*n+(e=e.y-t.y)*e})(t[s],t[o])>e&&(n.push(t[s]),o=s);return o<t.length-1&&n.push(t[t.length-1]),n})(t,e),o=n.length,s=new("undefined"!=typeof Uint8Array?Uint8Array:Array)(o);s[0]=s[o-1]=1,function t(e,n,o,s,r){let a=0,l,c,u;for(c=s+1;c<=r-1;c++)(u=tF(e[c],e[s],e[r],!0))>a&&(l=c,a=u);a>o&&(n[l]=1,t(e,n,o,s,l),t(e,n,o,l,r))}(n,s,e,0,o-1);let r,a=[];for(r=0;r<o;r++)s[r]&&a.push(n[r]);return a}}return t.slice()}function tN(t,e,n){return Math.sqrt(tF(t,e,n,!0))}function tD(t,e,n,s,r){let a=s?o:tR(t,n),l=tR(e,n),c,u,h;for(o=l;;){if(!(a|l))return[t,e];if(a&l)return!1;h=tR(u=tB(t,e,c=a||l,n,r),n),c===a?(t=u,a=h):(e=u,l=h)}}function tB(t,e,n,o,s){let r,a;var l=e.x-t.x,e=e.y-t.y,c=o.min,o=o.max;return 8&n?(r=t.x+l*(o.y-t.y)/e,a=o.y):4&n?(r=t.x+l*(c.y-t.y)/e,a=c.y):2&n?(r=o.x,a=t.y+e*(o.x-t.x)/l):1&n&&(r=c.x,a=t.y+e*(c.x-t.x)/l),new _(r,a,s)}function tR(t,e){let n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function tF(t,e,n,o){let s=e.x,r=e.y,a=n.x-s,l=n.y-r,c;return 0<(e=a*a+l*l)&&(1<(c=((t.x-s)*a+(t.y-r)*l)/e)?(s=n.x,r=n.y):0<c&&(s+=a*c,r+=l*c)),a=t.x-s,l=t.y-r,o?a*a+l*l:new _(s,r)}function tH(t){return!Array.isArray(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function tW(t,e){let n,o,s,r,a,l,c,u;if(!t||0===t.length)throw Error("latlngs not passed");tH(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);let h=new x([0,0]);
13var d=new w(t),p=(d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(h=tz(t)),t.length),f=[];for(n=0;n<p;n++){var m=new x(t[n]);f.push(e.project(new x([m.lat-h.lat,m.lng-h.lng])))}for(n=0,o=0;n<p-1;n++)o+=f[n].distanceTo(f[n+1])/2;if(0===o)u=f[0];else for(n=0,r=0;n<p-1;n++)if(a=f[n],l=f[n+1],(r+=s=a.distanceTo(l))>o){c=(r-o)/s,u=[l.x-c*(l.x-a.x),l.y-c*(l.y-a.y)];break}return d=e.unproject(new _(u)),new x([d.lat+h.lat,d.lng+h.lng])}P={__proto__:null,centroid:tz,clipPolygon:tA,polygonCenter:tI},O={__proto__:null,_getBitCode:tR,_getEdgeIntersection:tB,_sqClosestPointOnSegment:tF,clipSegment:tD,closestPointOnSegment:function(t,e,n){return tF(t,e,n)},isFlat:tH,pointToSegmentDistance:tN,polylineCenter:tW,simplify:t$},M={project:t=>new _(t.lng,t.lat),unproject:t=>new x(t.y,t.x),bounds:new b([-180,-90],[180,90])};let tZ={R:6378137,R_MINOR:6356752.314245179,bounds:new b([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project(t){var e=Math.PI/180,n=this.R,o=this.R_MINOR/n,o=Math.sqrt(1-o*o),s=t.lat*e,r=o*Math.sin(s),r=Math.tan(Math.PI/4-s/2)/((1-r)/(1+r))**(o/2),s=-n*Math.log(Math.max(r,1e-10));return new _(t.lng*e*n,s)},unproject(t){var e=180/Math.PI,n=this.R,o=this.R_MINOR/n,s=Math.sqrt(1-o*o),r=Math.exp(-t.y/n);let a=Math.PI/2-2*Math.atan(r);for(let t=0,e=.1,n;t<15&&1e-7<Math.abs(e);t++)n=s*Math.sin(a),e=Math.PI/2-2*Math.atan(r*((1-n)/(1+n))**(s/2))-a,a+=e;return new x(a*e,t.x*e/n)}},tU={__proto__:null,LonLat:M,Mercator:tZ,SphericalMercator:C};class tV extends k{static code="EPSG:3395";static projection=tZ;
13static transformation=(tQ=.5/(Math.PI*tZ.R),new j(tQ,.5,-tQ,.5))}class tq extends k{static code="EPSG:4326";static projection=M;static transformation=new j(1/180,1,-1/180,.5)}class tG extends T{static projection=M;static transformation=new j(1,0,-1,0);static scale(t){return 2**t}static zoom(t){return Math.log(t)/Math.LN2}static distance(t,e){var n=e.lng-t.lng,e=e.lat-t.lat;return Math.sqrt(n*n+e*e)}static infinite=!0}T.Earth=k,T.EPSG3395=tV,T.EPSG3857=S,T.EPSG900913=class extends S{static code="EPSG:900913"},T.EPSG4326=tq,T.Simple=tG;var tQ=y.extend({options:{pane:"overlayPane",attribution:null,bubblingPointerEvents:!0},addTo(t){return t.addLayer(this),this},remove(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom(t){return t&&t.removeLayer(this),this},getPane(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget(t){return this._map._targets[r(t)]=this},removeInteractiveTarget(t){return delete this._map._targets[r(t)],this},getAttribution(){return this.options.attribution},_layerAdd(t){let e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){let t=this.getEvents();e.on(t,this),this.once("remove",()=>e.off(t,this))}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});E.include({addLayer(t){var e;if(t._layerAdd)return e=r(t),this._layers[e]||((this._layers[e]=t)._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this;throw Error("The provided object is not a Layer.")},removeLayer(t){var e=r(t);return this._layers[e]&&(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null),this},hasLayer(t){return r(t) in this._layers},eachLayer(t,e){for(var n of Object.values(this._layers))t.call(e,n);return this},_addLayers(t){for(var e of t=t?Array.isArray(t)?t:[t]:[])this.addLayer(e)},_addZoomLimit(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[r(t)]=t,this._updateZoomLevels())}
13,_removeZoomLimit(t){t=r(t),this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels(){let t=1/0,e=-1/0;var n,o=this._getZoomSpan();for(n of Object.values(this._zoomBoundLayers)){var s=n.options;t=Math.min(t,s.minZoom??1/0),e=Math.max(e,s.maxZoom??-1/0)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,o!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});let tY=tQ.extend({initialize(t,e){for(var n of(d(this,e),this._layers={},t??[]))this.addLayer(n)},addLayer(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer(t){return t=t in this._layers?t:this.getLayerId(t),this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers(){return this.eachLayer(this.removeLayer,this)},invoke(t,...e){for(var n of Object.values(this._layers))n[t]&&n[t].apply(n,e);return this},onAdd(t){this.eachLayer(t.addLayer,t)},onRemove(t){this.eachLayer(t.removeLayer,t)},eachLayer(t,e){for(var n of Object.values(this._layers))t.call(e,n);return this},getLayer(t){return this._layers[t]},getLayers(){var t=[];return this.eachLayer(t.push,t),t},setZIndex(t){return this.invoke("setZIndex",t)},getLayerId:t=>r(t)}),tK=tY.extend({addLayer(t){return this.hasLayer(t)?this:(t.addEventParent(this),tY.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer(t){return this.hasLayer(t)?((t=t in this._layers?this._layers[t]:t).removeEventParent(this),tY.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle(t){return this.invoke("setStyle",t)},bringToFront(){return this.invoke("bringToFront")},bringToBack(){return this.invoke("bringToBack")},getBounds(){var t,e=new w;for(t of Object.values(this._layers))e.extend(t.getBounds?t.getBounds():t.getLatLng());return e}}),tX=v.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize(t){d(this,t)},createIcon(t){return this._createIcon("icon",t)},createShadow(t){return this._createIcon("shadow",t)},_createIcon(t,e){var n=this._getIconUrl(t);if(n)return n=this._createImg(n,e&&"IMG"===e.tagName?e:null),this._setIconStyles(n,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n;if("icon"===t)throw Error("iconUrl not set in Icon options (see the docs).");return null},_setIconStyles(t,e){var n=this.options;let o=n[e+"Size"];"number"==typeof o&&(o=[o,o]);var s=_.validate(o)&&new _(o),r="shadow"===e&&n.shadowAnchor||n.iconAnchor||s&&s.divideBy(2,!0),r=_.validate(r)&&new _(r);t.className=`leaflet-marker-${e} `+(n.className||""),r&&(t.style.marginLeft=-r.x+"px",t.style.marginTop=-r.y+"px"),s&&(t.style.width=s.x+"px",t.style.height=s.y+"px")},_createImg:(t,e)=>((e??=document.createElement("img")).src=t,e),_getIconUrl(t){return z.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),tJ=tX.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl(t){return tJ.imagePath||(tJ.imagePath=this._detectIconPath()),(t=tX.prototype._getIconUrl.call(this,t))?(this.options.imagePath||tJ.imagePath)+t:null},_stripUrl(t){function e(t,e,n){return(e=e.exec(t))&&e[n]}return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath(){var t=D("div","leaflet-default-icon-path",document.body),e=this._stripUrl(getComputedStyle(t).backgroundImage);return document.body.removeChild(t),e||((t=document.querySelector('link[href$="leaflet.css"]'))?t.href.substring(0,t.href.length-11-1):"")}}),t0=A.extend({initialize(t){this._marker=t},addHooks(){var t=this._marker._icon;this._draggable||(this._draggable=new tM(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),t.classList.add("leaflet-marker-draggable")},removeHooks(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&this._marker._icon.classList.remove("leaflet-marker-draggable")},moved(){return this._draggable?._moved},_adjustPan(t){var e=this._marker,n=e._map,o=this._marker.options.autoPanSpeed,s=this._marker.options.autoPanPadding,r=Z(e._icon),a=n.getPixelBounds(),l=n.getPixelOrigin(),l=new b(a.min._subtract(l).add(s),a.max._subtract(l).subtract(s));l.contains(r)||(s=new _((Math.max(l.max.x,r.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,r.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,r.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,r.
13y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(o),n.panBy(s,{animate:!1}),this._draggable._newPos._add(s),this._draggable._startPos._add(s),W(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=requestAnimationFrame(this._adjustPan.bind(this,t)))},_onDragStart(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag(t){this._marker.options.autoPan&&(cancelAnimationFrame(this._panRequest),this._panRequest=requestAnimationFrame(this._adjustPan.bind(this,t)))},_onDrag(t){var e=this._marker,n=e._shadow,o=Z(e._icon),s=e._map.layerPointToLatLng(o);n&&W(n,o),e._latlng=s,t.latlng=s,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd(t){cancelAnimationFrame(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),t1=tQ.extend({options:{icon:new tJ,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingPointerEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize(t,e){d(this,e),this._latlng=new x(t)},onAdd(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents(){return{zoom:this.update,viewreset:this.update}},getLatLng(){return this._latlng},setLatLng(t){var e=this._latlng;return this._latlng=new x(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset(t){return this.options.zIndexOffset=t,this.update()},getIcon(){return this.options.icon},setIcon(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement(){return this._icon},update(){var t;return this._icon&&this._map&&(t=this._map.latLngToLayerPoint(this._latlng).round(),this._setPos(t)),this},_initIcon(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon);let o=!1;n!==this._icon&&(this._icon&&this._removeIcon(),o=!0,t.title&&(n.title=t.title),"IMG"===n.tagName)&&(n.alt=t.alt??""),n.classList.add(e),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({pointerover:this._bringToFront,pointerout:this._resetZIndex}),this.options.autoPanOnFocus&&tu(n,"focus",this._panOnFocus,this);let s=!1;(n=t.icon.createShadow(this._shadow))!==this._shadow&&(this._removeShadow(),s=!0),n&&(n.classList.add(e),n.alt=""),this._shadow=n,t.opacity<1&&this._updateOpacity(),o&&this.getPane().appendChild(this._icon),this._initInteraction(),n&&s&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon(){this.options.riseOnHover&&this.off({pointerover:this._bringToFront,pointerout:this._resetZIndex}),this.options.autoPanOnFocus&&td(this._icon,"focus",this._panOnFocus,this),this._icon.remove(),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow(){this._shadow&&this._shadow.remove(),this._shadow=null},_setPos(t){this._icon&&W(this._icon,t),this._shadow&&W(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round(),this._setPos(t)},_initInteraction(){if(this.options.interactive&&(this._icon.classList.add("leaflet-interactive"),this.addInteractiveTarget(this._icon),t0)){let t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new t0(this),t&&this.dragging.enable()}},setOpacity(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity(){var t=this.options.opacity;this._icon&&(this._icon.style.opacity=t),this._shadow&&(this._shadow.style.opacity=t)},_bringToFront(){this._updateZIndex(this.options.riseOffset)},_resetZIndex(){this._updateZIndex(0)},_panOnFocus(){var t,e,n=this._map;n&&(t=(e=this.options.icon.options).iconSize?new _(e.iconSize):new _(0,0),e=e.iconAnchor?new _(e.iconAnchor):new _(0,0),n.panInside(this._latlng,{paddingTopLeft:e,paddingBottomRight:t.subtract(e)}))},_getPopupAnchor(){return this.options.icon.options.popupAnchor},_getTooltipAnchor(){return this.options.icon.options.tooltipAnchor}}),t6=tQ.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,f
13illRule:"evenodd",interactive:!0,bubblingPointerEvents:!0},beforeAdd(t){this._renderer=t.getRenderer(this)},onAdd(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove(){this._renderer._removePath(this)},redraw(){return this._map&&this._renderer._updatePath(this),this},setStyle(t){return d(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke)&&t&&Object.hasOwn(t,"weight")&&this._updateBounds(),this},bringToFront(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack(){return this._renderer&&this._renderer._bringToBack(this),this},getElement(){return this._path},_reset(){this._project(),this._update()},_clickTolerance(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}});var M=t6.extend({options:{fill:!0,radius:10},initialize(t,e){d(this,e),this._latlng=new x(t),this._radius=this.options.radius},setLatLng(t){var e=this._latlng;return this._latlng=new x(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng(){return this._latlng},setRadius(t){return this.options.radius=this._radius=t,this.redraw()},getRadius(){return this._radius},setStyle(t){var e=t?.radius??this._radius;return t6.prototype.setStyle.call(this,t),this.setRadius(e),this},_project(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds(){var t=this._radius,e=this._radiusY??t,n=this._clickTolerance(),t=[t+n,e+n];this._pxBounds=new b(this._point.subtract(t),this._point.add(t))},_update(){this._map&&this._updatePath()},_updatePath(){this._renderer._updateCircle(this)},_empty(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),t4=M.extend({initialize(t,e){if(d(this,e),this._latlng=new x(t),isNaN(this.options.radius))throw Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius(t){return this._mRadius=t,this.redraw()},getRadius(){return this._mRadius},getBounds(){var t=[this._radius,this._radiusY??this._radius];return new w(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:t6.prototype.setStyle,_project(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,o=n.options.crs;if(o.distance===k.distance){var s=Math.PI/180,r=this._mRadius/k.R/s,a=n.project([e+r,t]),l=n.project([e-r,t]),l=a.add(l).divideBy(2),c=n.unproject(l).lat;let o=Math.acos((Math.cos(r*s)-Math.sin(e*s)*Math.sin(c*s))/(Math.cos(e*s)*Math.cos(c*s)))/s;(isNaN(o)||0===o)&&(o=r/Math.cos(Math.PI/180*e)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(o)?0:l.x-n.project([c,t-o]).x,this._radiusY=l.y-a.y}else s=o.unproject(o.project(this._latlng).subtract([this._mRadius,0])),this._point=n.latLngToLayerPoint(this._latlng),this._radius=Math.abs(this._point.x-n.latLngToLayerPoint(s).x);this._updateBounds()}});let t2=t6.extend({options:{smoothFactor:1,noClip:!1},initialize(t,e){d(this,e),this._setLatLngs(t)},getLatLngs(){return this._latlngs},setLatLngs(t){return this._setLatLngs(t),this.redraw()},isEmpty(){return!this._latlngs.length},closestLayerPoint(t){let e=1/0,n=null,o,s;var r,a=tF;for(r of this._parts)for(let c=1,u=r.length;c<u;c++){var l=a(t,o=r[c-1],s=r[c],!0);l<e&&(e=l,n=a(t,o,s))}return n&&(n.distance=Math.sqrt(e)),n},getCenter(){if(this._map)return tW(this._defaultShape(),this._map.options.crs);throw Error("Must add layer to map before using getCenter()")},getBounds(){return this._bounds},addLatLng(t,e){return e??=this._defaultShape(),t=new x(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs(t){this._bounds=new w,this._latlngs=this._convertLatLngs(t)},_defaultShape(){return tH(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs(t){var e=[],n=tH(t);for(let o=0,s=t.length;o<s;o++)n?(e[o]=new x(t[o]),this._bounds.extend(e[o])):e[o]=this._convertLatLngs(t[o]);return e},_project(){var t=new b;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds(){var t=this._clickTolerance(),t=new _(t,t);this._rawPxBounds&&(this._pxBounds=new b([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs(t,e,n){var o;t[0]instanceof x?((o=t.map(t=>
13this._map.latLngToLayerPoint(t))).forEach(t=>n.extend(t)),e.push(o)):t.forEach(t=>this._projectLatlngs(t,e,n))},_clipPoints(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)this._parts=this._rings;else{let n,o,s,r,a,l,c;var e=this._parts;for(n=0,s=0,r=this._rings.length;n<r;n++)for(c=this._rings[n],o=0,a=c.length;o<a-1;o++)(l=tD(c[o],c[o+1],t,o,!0))&&(e[s]??=[],e[s].push(l[0]),l[1]===c[o+1]&&o!==a-2||(e[s].push(l[1]),s++))}}},_simplifyPoints(){var t=this._parts,e=this.options.smoothFactor;for(let n=0,o=t.length;n<o;n++)t[n]=t$(t[n],e)},_update(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath(){this._renderer._updatePoly(this)},_containsPoint(t,e){let n,o,s,r,a,l;var c=this._clickTolerance();if(this._pxBounds&&this._pxBounds.contains(t)){for(n=0,r=this._parts.length;n<r;n++)for(l=this._parts[n],o=0,s=(a=l.length)-1;o<a;s=o++)if((e||0!==o)&&tN(t,l[s],l[o])<=c)return!0}return!1}}),t5=t2.extend({options:{fill:!0},isEmpty(){return!this._latlngs.length||!this._latlngs[0].length},getCenter(){if(this._map)return tI(this._defaultShape(),this._map.options.crs);throw Error("Must add layer to map before using getCenter()")},_convertLatLngs(t){var t=t2.prototype._convertLatLngs.call(this,t),e=t.length;return 2<=e&&t[0]instanceof x&&t[0].equals(t[e-1])&&t.pop(),t},_setLatLngs(t){t2.prototype._setLatLngs.call(this,t),tH(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape(){return(tH(this._latlngs[0])?this._latlngs:this._latlngs[0])[0]},_clipPoints(){let t=this._renderer._bounds;var e=this.options.weight,e=new _(e,e);if(t=new b(t.min.subtract(e),t.max.add(e)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)this._parts=this._rings;else for(var n of this._rings)(n=tA(n,t,!0)).length&&this._parts.push(n)}},_updatePath(){this._renderer._updatePoly(this,!0)},_containsPoint(t){let e=!1,n,o,s,r,a,l,c,u;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(r=0,c=this._parts.length;r<c;r++)for(n=this._parts[r],a=0,l=(u=n.length)-1;a<u;l=a++)o=n[a],s=n[l],o.y>t.y!=s.y>t.y&&t.x<(s.x-o.x)*(t.y-o.y)/(s.y-o.y)+o.x&&(e=!e);return e||t2.prototype._containsPoint.call(this,t,!0)}});var t8=tK.extend({initialize(t,e){d(this,e),this._layers={},t&&this.addData(t)},addData(t){var e=Array.isArray(t)?t:t.features;if(e){for(var n of e)(n.geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var o,e=this.options;return(!e.filter||e.filter(t))&&(o=t7(t,e))?(o.feature=eo(t),o.defaultOptions=o.options,this.resetStyle(o),e.onEachFeature&&e.onEachFeature(t,o),this.addLayer(o)):this},resetStyle(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=Object.create(t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle(t){return this.eachLayer(e=>this._setLayerStyle(e,t))},_setLayerStyle(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function t7(t,e){let n,o;var s="Feature"===t.type?t.geometry:t,r=s?.coordinates,a=[],l=e?.pointToLayer,c=e?.coordsToLatLng??t9;if(!r&&!s)return null;switch(s.type){case"Point":return t3(l,t,n=c(r),e);case"MultiPoint":for(var u of r)n=c(u),a.push(t3(l,t,n,e));return new tK(a);case"LineString":case"MultiLineString":return o=et(r,"LineString"===s.type?0:1,c),new t2(o,e);case"Polygon":case"MultiPolygon":return o=et(r,"Polygon"===s.type?1:2,c),new t5(o,e);case"GeometryCollection":for(var h of s.geometries)(h=t7({geometry:h,type:"Feature",properties:t.properties},e))&&a.push(h);return new tK(a);case"FeatureCollection":for(var d of s.features)(d=t7(d,e))&&a.push(d);return new tK(a);default:throw Error("Invalid GeoJSON object.")}}function t3(t,e,n,o){return t?t(e,n):new t1(n,o?.markersInheritOptions&&o)}function t9(t){return new x(t[1],t[0],t[2])}function et(t,e,n){return t.map(t=>e?et(t,e-1,n):(n||t9)(t))}function ee(t,e){return void 0!==(t=new x(t)).alt?[u(t.lng,e),u(t.lat,e),u(t.alt,e)]:[u(t.lng,e),u(t.lat,e)]}function ei(t,e,n,o){return t=t.map(t=>e?ei(t,tH(t)?0:e-1,n,o):ee(t,o)),!e&&n&&0<t.length&&t.push(t[0].slice()),t}function en(t,e){return t.feature?{...t.feature,geometry:e}:eo(e)}function eo(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var es={toGeoJSON(t){return en(this,{type:"Point",coordinates:ee(this.getLatLng(),t)})}};t1.include(es),t4.include(es),M.include(es),t2.include({toGeoJSON(t){var e=!tH(this._latlngs);return en(this,{type:`${e?"Multi":""}LineString`,coordinates:ei(this._latlngs,e?1:0,!1,t)})}}),t5.include({toGeoJSON(t){var e=!tH(this._latlngs),n=e&&!tH(this._latlngs[0]);let o=ei(this._latlngs,n?2:e?1:0,!0,t);return en(this,{type:`${n?"Multi":""}Polygon`,coordinates:o=e?o:[o]})}}),tY.include({toMultiPoint(t){let e=[];return this.eachLayer(n=>{e.push(n.toGeoJSON(t).geometry.coordinates)}),en(this,{type:"MultiPoint",coordinates:e})},toGeoJSON(t){var e=this.feature?.geometry?.type;if("MultiPoint"===e)return this.toMultiPoint(t);let n="GeometryCollection"===e,o=[];return this.eachLayer(e=>{e.toGeoJSON&&(e=e.toGeoJSON(t),n?o.push(e.geometry):"FeatureCollection"===(e=eo(e)).type?o.push.apply(o,e.features):o.push(e))}),n?en(this,{geometries:o,type:"GeometryCollection"}):{type:"FeatureCollection",features:o}}});let er=tQ.extend({options:{padding:.1,continuous:!1},initialize(t){d(this,t)},onAdd(){this._container||(this._initContainer(),this._container.classList.add("leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._resizeContainer(),this._onMoveEnd()},onRemove(){this._destroyContainer()},getEvents(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._onMoveEnd,zoomend:this._onZoomEnd,resize:this._resizeContainer};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),this.options.continuous&&(t.move=this._onMoveEnd),t},_onAnimZoom(t){this._updateTransform(t.center,t.zoom)},_onZoom(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform(t,e){var n=this._map.getZoomScale(e,this._zoom),o=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,e),o=o.multiplyBy(-n).add(s).subtract(this._map._getNewPixelOrigin(t,e));F(this._container,o,n)},_onMoveEnd(t){var e=this.options.padding,n=this._map.getSize(),o=this._map.containerPointToLayerPoint(n.multiplyBy(-e)).round();this._bounds=new b(o,o.add(n.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom(),this._updateTransform(this._center,this._zoom),this._onSettled(t)},_reset(){this._onSettled(),this._updateTransform(this._center,this._zoom),this._onViewReset()},_initContainer(){this._container=D("div")},_destroyContainer(){td(this._container),this._container.remove(),delete this._container},_resizeContainer(){var t=this.options.padding,t=this._map.getSize().multiplyBy(1+2*t).round();return this._container.style.width=t.x+"px",this._container.style.height=t.y+"px",t},_onZoomEnd:c,_onViewReset:c,_onSettled:c});var es=tQ.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:"",decoding:"auto"},initialize(t,e,n){this._url=t,this._bounds=new w(e),d(this,n)},onAdd(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(this._image.classList.add("leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove(){this._image.remove(),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront(){return this._map&&B(this._image),this},bringToBack(){return this._map&&R(this._image),this},setUrl(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds(t){return this._bounds=new w(t),this._map&&this._reset(),this},getEvents(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds(){return this._bounds},getElement(){return this._image},_initImage(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:D("img");e.classList.add("leaflet-image-layer"),this._zoomAnimated&&e.classList.add("leaflet-zoom-animated"),this.options.className&&e.classList.add(...h(this.options.className)),e.onselectstart=c,e.onpointermove=c,e.onload=this.fire.bind(this,"load"),e.onerror=this._overlayOnError.bind(this),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),e.decoding=this.options.decoding,this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom(t){var e=this._map.getZoomScale(t.zoom),t=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;F(this._image,t,e)},_reset(){var t=this._image,e=new b(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();W(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity(){this._image.style.opacity=this.options.opacity},_updateZIndex(){this._image&&null!=this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter(){return this._bounds.getCenter()}}),ea=es.extend({options:{autoplay:!0,controls:!1,loop:!0,keepAspectRatio:!0,muted:!1,playsInl
13ine:!0},_initImage(){var t,e="VIDEO"===this._url.tagName;let n=this._image=e?this._url:D("video");if(n.classList.add("leaflet-image-layer"),this._zoomAnimated&&n.classList.add("leaflet-zoom-animated"),this.options.className&&n.classList.add(...h(this.options.className)),tu(n,"pointerdown",t=>{n.controls&&tv(t)}),n.onloadeddata=this.fire.bind(this,"load"),e)t=(e=n.getElementsByTagName("source")).map(t=>t.src),this._url=0<e.length?t:[n.src];else for(var o of(Array.isArray(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.hasOwn(n.style,"objectFit")&&(n.style.objectFit="fill"),n.autoplay=!!this.options.autoplay,n.controls=!!this.options.controls,n.loop=!!this.options.loop,n.muted=!!this.options.muted,n.playsInline=!!this.options.playsInline,this._url)){var s=D("source");s.src=o,n.appendChild(s)}}}),el=es.extend({_initImage(){var t=this._image=this._url;t.classList.add("leaflet-image-layer"),this._zoomAnimated&&t.classList.add("leaflet-zoom-animated"),this.options.className&&t.classList.add(...h(this.options.className)),t.onselectstart=c,t.onpointermove=c}});let ec=tQ.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize(t,e){t instanceof x||Array.isArray(t)?(this._latlng=new x(t),d(this,e)):(d(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close(){return this._map&&this._map.removeLayer(this),this},toggle(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&(this._container.style.opacity=0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&(this._container.style.opacity=1),this.bringToFront(),this.options.interactive&&(this._container.classList.add("leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove(t){t._fadeAnimated?(this._container.style.opacity=0,this._removeTimeout=setTimeout(()=>this._container.remove(),200)):this._container.remove(),this.options.interactive&&(this._container.classList.remove("leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng(){return this._latlng},setLatLng(t){return this._latlng=new x(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent(){return this._content},setContent(t){return this._content=t,this.update(),this},getElement(){return this._container},update(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen(){return!!this._map&&this._map.hasLayer(this)},bringToFront(){return this._map&&B(this._container),this},bringToBack(){return this._map&&R(this._container),this},_prepareOpen(t){let e=this._source;if(!e._map)return!1;if(e instanceof tK){for(var n of(e=null,Object.values(this._source._layers)))if(n._map){e=n;break}if(!e)return!1;this._source=e}if(!t){if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source??this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=this._getAnchor();let n=new _(this.options.offset);this._zoomAnimated?W(this._container,t.add(e)):n=n.add(t).add(e),t=this._containerBottom=-n.y,e=this._containerLeft=-Math.round(this._containerWidth/2)+n.x,this._container.style.bottom=t+"px",this._container.style.left=e+"px"}},_getAnchor:()=>[0,0]}),eu=(E.include({_initOverlay(t,e,n,o){let s=e;return s instanceof t||(s=new t(o).setContent(e)),n&&s.setLatLng(n),s}}),tQ.include({_initOverlay(t,e,n,o){let s=n;return s instanceof t?(d(s,o),s._source=this):(s=e&&!o?e:new t(o,this)).setContent(n),s}}),ec.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,closeButtonLabel:"Close popup",autoClose:!0,closeOnEscapeKey:!0,className:"",trackResize:!0},openOn(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,ec.prototype.openOn.call(this,t)},onAdd(t){ec.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof t6||this._source.on("preclick",tv))},onRemove(t){ec.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof t6||this._source.off("preclick",tv))},getEvents(){var t=ec.prototype.getEvents.call(this);return(this.options.closeOnClick??this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&
13(t.moveend=this._adjustPan),t},_initLayout(){var t="leaflet-popup",e=this._container=D("div",t+` ${this.options.className||""} leaflet-zoom-animated`),n=this._wrapper=D("div",t+"-content-wrapper",e);this._contentNode=D("div",t+"-content",n),t_(e),ty(this._contentNode),tu(e,"contextmenu",tv),this._tipContainer=D("div",t+"-tip-container",e),this._tip=D("div",t+"-tip",this._tipContainer),this.options.closeButton&&((n=this._closeButton=D("a",t+"-close-button",e)).setAttribute("role","button"),n.setAttribute("aria-label",this.options.closeButtonLabel),n.href="#close",n.innerHTML='<span aria-hidden="true">×</span>',tu(n,"click",t=>{tb(t),this.close()})),this.options.trackResize&&(this._resizeObserver=new ResizeObserver(t=>{this._map&&(this._containerWidth=t[0]?.contentRect?.width,this._containerHeight=t[0]?.contentRect?.height,this._updateLayout(),this._updatePosition(),this._adjustPan())}),this._resizeObserver.observe(this._contentNode))},_updateLayout(){var t=this._contentNode,e=t.style,n=(e.width="",e.whiteSpace="nowrap",e.maxWidth=this.options.maxWidth+"px",e.minWidth=this.options.minWidth+"px",e.whiteSpace="",e.height="",this._containerHeight??t.offsetHeight),o=this.options.maxHeight,s="leaflet-popup-scrolled";o&&o<n?(e.height=o+"px",t.classList.add(s)):t.classList.remove(s),this._containerWidth=this._container.offsetWidth,this._containerHeight=this._container.offsetHeight},_animateZoom(t){var t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),e=this._getAnchor();W(this._container,t.add(e))},_adjustPan(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(getComputedStyle(this._container).marginBottom,10)||0,e=this._containerHeight+e,n=this._containerWidth,o=new _(this._containerLeft,-e-this._containerBottom),o=(o._add(Z(this._container)),t.layerPointToContainerPoint(o)),s=new _(this.options.autoPanPadding),r=new _(this.options.autoPanPaddingTopLeft??s),s=new _(this.options.autoPanPaddingBottomRight??s),a=t.getSize();let l=0,c=0;o.x+n+s.x>a.x&&(l=o.x+n-a.x+s.x),o.x-l-r.x<0&&(l=o.x-r.x),o.y+e+s.y>a.y&&(c=o.y+e-a.y+s.y),o.y-c-r.y<0&&(c=o.y-r.y),(l||c)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([l,c]))}}},_getAnchor(){return new _(this._source?._getPopupAnchor?this._source._getPopupAnchor():[0,0])}})),eh=(E.mergeOptions({closePopupOnClick:!0}),E.include({openPopup(t,e,n){return this._initOverlay(eu,t,e,n).openOn(this),this},closePopup(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),tQ.include({bindPopup(t,e){return this._popup=this._initOverlay(eu,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup(t){return this._popup&&(this instanceof tK||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng))&&this._popup.openOn(this._map),this},closePopup(){return this._popup&&this._popup.close(),this},togglePopup(){return this._popup&&this._popup.toggle(this),this},isPopupOpen(){return!!this._popup&&this._popup.isOpen()},setPopupContent(t){return this._popup&&this._popup.setContent(t),this},getPopup(){return this._popup},_openPopup(t){var e;this._popup&&this._map&&(tw(t),e=t.propagatedFrom??t.target,this._popup._source!==e||e instanceof t6?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng))},_movePopup(t){this._popup.setLatLng(t.latlng)},_onKeyPress(t){"Enter"===t.originalEvent.code&&this._openPopup(t)}}),ec.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd(t){ec.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove(t){ec.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents(){var t=ec.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout(){var t=`leaflet-tooltip ${this.options.className||""} leaflet-zoom-`+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=D("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+r(this))},_updateLayout(){},_adjustPan(){},_setPosition(t){let e,n,o=this.options.direction;var s=this._map,r=this._container,a=s.latLngToContainerPoint(s.getCenter()),s=s.layerPointToContainerPoint(t),l=r.offsetWidth,c=r.offsetHeight,u=new _(this.options.offset),h=this._getAnchor();n="top"===o?(e=l/2,c):"bottom"===o?(e=l/2,0):(e="center"===o?l/2:"right"===o?0:"left"===o?l:s.x<a.x?(o="right",0):(o="left",l+2*(u.x+h.x)),c/2),t=t.subtract(new _(e,n,!0)).add(u).add(h),r.classList.remove("leaflet-tooltip-right","leaflet-tooltip-left","leaflet-tooltip-top","leaflet-tooltip-bottom"),r.classList.add("leaflet-tooltip-"+o),W(r,t)},_updatePosition(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity(t){this.options.opacity=t,this._container&&(this._container.style.opacity=t)},_animateZoom(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),this._setPosition(t)},_getAnchor(){return new _(this._source?._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}));E.include({openTooltip(t,e,n){return this._initOverlay(eh,t,e,n).openOn(this),this},closeTooltip(t){return t.close(),this}}),tQ.include({bindTooltip(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(eh,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions(t){var e;!t&&this._tooltipHandlersAdded||(e={remove:this.closeTooltip,move:this._moveTooltip},this._tooltip.options.permanent?e.add=this._openTooltip:(e.pointerover=this._openTooltip,e.pointerout=this.closeTooltip,e.click=this._openTooltip,this._map?this._addFocusListeners(t):e.add=()=>this._addFocusListeners(t)),this._tooltip.options.sticky&&(e.pointermove=this._moveTooltip),this[t?"off":"on"](e),this._tooltipHandlersAdded=!t)},openTooltip(t){return this._tooltip&&(this instanceof tK||(this._tooltip._source=this),this._tooltip._prepareOpen(t))&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this)),this},closeTooltip(){if(this._tooltip)return this._tooltip.close()},toggleTooltip(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen(){return this._tooltip.isOpen()},setTooltipContent(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip(){return this._tooltip},_addFocusListeners(t){this.getElement?this._addFocusListenersOnLayer(this,t):this.eachLayer&&this.eachLayer(e=>this._addFocusListenersOnLayer(e,t),this)},_addFocusListenersOnLayer(t,e){var n,o="function"==typeof t.getElement&&t.getElement();o&&(n=e?"off":"on",e||(o._leaflet_focus_handler&&td(o,"focus",o._leaflet_focus_handler,this),o._leaflet_focus_handler=()=>{this._tooltip&&(this._tooltip._source=t,this.openTooltip())}),o._leaflet_focus_handler&&tS[n](o,"focus",o._leaflet_focus_handler,this),tS[n](o,"blur",this.closeTooltip,this),e)&&delete o._leaflet_focus_handler},_setAriaDescribedByOnLayer(t){(t="function"==typeof t.getElement&&t.getElement())&&t.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip(t){this._tooltip&&this._map&&(this._map.dragging&&this._map.dragging.moving()?"add"!==t.type||this._moveEndOpensTooltip||(this._moveEndOpensTooltip=!0,this._map.once("moveend",()=>{this._moveEndOpensTooltip=!1,this._openTooltip(t)})):(this._tooltip._source=t.propagatedFrom??t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)))},_moveTooltip(t){let e=t.latlng,n,o;this._tooltip.options.sticky&&t.originalEvent&&(n=this._map.pointerEventToContainerPoint(t.originalEvent),o=this._map.containerPointToLayerPoint(n),e=this._map.layerPointToLatLng(o)),this._tooltip.setLatLng(e)}});var ed=tX.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon(t){var t=t&&"DIV"===t.tagName?t:document.createElement("div"),e=this.options;return e.html instanceof Element?(t.replaceChildren(),t.appendChild(e.html)):t.innerHTML=!1!==e.html?e.html:"",e.bgPos&&(e=new _(e.bgPos),t.style.backgroundPosition=-e.x+`px ${-e.y}px`),this._setIconStyles(t,"icon"),t},createShadow:()=>null});tX.Default=tJ;let ep=tQ.extend({options:{tileSize:256,opacity:1,updateWhenIdle:z.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize(t){d(this,t)},onAdd(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd(t){t._addZoomLimit(this)},onRemove(t){this._removeAllTiles(),this._container.remove(),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0,clearTimeout(this._pruneTimeout)},bringToFront(){return this._map&&(B(this._container),this._setAutoZIndex(Math.max)),this},bringToBack(){return this._map&&(R(this._container),this._setAutoZIndex(Math.min)),this},getContainer(){return this._container},setOpacity(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading(){return this._loading},redraw(){var t;return this._map&&(this._removeAllTiles(),(t=this._clampZoom(this._map.getZoom()))!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()),this},getEvents(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:()=>document.createElement("div"),getTileSize(){var t=this.options.tileSize;return t instanceof _?t:new _(t,t)},_updateZIndex(){this._container&&null!=this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex(t){var e,n=this.getPane().children;let o=-t(-1/0,1/0);for(e of n){var s=e.style.zIndex;e!==this._container&&s&&(o=t(o,+s))}
13isFinite(o)&&(this.options.zIndex=o+t(-1,1),this._updateZIndex())},_updateOpacity(){if(this._map){this._container.style.opacity=this.options.opacity;var t,e,n=+new Date;let o=!1,s=!1;for(t of Object.values(this._tiles??{}))t.current&&t.loaded&&(e=Math.min(1,(n-t.loaded)/200),(t.el.style.opacity=e)<1?o=!0:(t.active?s=!0:this._onOpaqueTile(t),t.active=!0));s&&!this._noPrune&&this._pruneTiles(),o&&(cancelAnimationFrame(this._fadeFrame),this._fadeFrame=requestAnimationFrame(this._updateOpacity.bind(this)))}},_onOpaqueTile:c,_initContainer(){this._container||(this._container=D("div","leaflet-layer "+(this.options.className??"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var n of Object.keys(this._levels))n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(this._levels[n].el.remove(),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);let s=this._levels[t];var o=this._map;return s||((s=this._levels[t]={}).el=D("div","leaflet-tile-container leaflet-zoom-animated",this._container),s.el.style.zIndex=e,s.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),s.zoom=t,this._setZoomTransform(s,o.getCenter(),o.getZoom()),s.el.offsetWidth,this._onCreateLevel(s)),this._level=s}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles(){if(this._map){var t=this._map.getZoom();if(t>this.options.maxZoom||t<this.options.minZoom)this._removeAllTiles();else{for(var e of Object.values(this._tiles))e.retain=e.current;for(var n of Object.values(this._tiles))n.current&&!n.active&&(n=n.coords,this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2));for(var[o,s]of Object.entries(this._tiles))s.retain||this._removeTile(o)}}},_removeTilesAtZoom(t){for(var[e,n]of Object.entries(this._tiles))n.coords.z===t&&this._removeTile(e)},_removeAllTiles(){for(var t of Object.keys(this._tiles))this._removeTile(t)},_invalidateAll(){for(var t of Object.keys(this._levels))this._levels[t].el.remove(),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent(t,e,n,o){var t=Math.floor(t/2),e=Math.floor(e/2),n=n-1,s=new _(+t,+e),s=(s.z=n,this._tileCoordsToKey(s)),s=this._tiles[s];return s?.active?s.retain=!0:(s?.loaded&&(s.retain=!0),o<n&&this._retainParent(t,e,n,o))},_retainChildren(t,e,n,o){for(let r=2*t;r<2*t+2;r++)for(let t=2*e;t<2*e+2;t++){var s=new _(r,t),s=(s.z=n+1,this._tileCoordsToKey(s)),s=this._tiles[s];s?.active?s.retain=!0:(s?.loaded&&(s.retain=!0),n+1<o&&this._retainChildren(r,t,n+1,o))}},_resetView(t){t=t&&(t.pinch||t.flyTo),this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView(t,e,n,o){let s=Math.round(e);s=void 0!==this.options.maxZoom&&s>this.options.maxZoom||void 0!==this.options.minZoom&&s<this.options.minZoom?void 0:this._clampZoom(s);var r=this.options.updateWhenZooming&&s!==this._tileZoom;o&&!r||(this._tileZoom=s,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==s&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms(t,e){for(var n of Object.values(this._levels))this._setZoomTransform(n,t,e)},_setZoomTransform(t,e,n){var o=this._map.getZoomScale(n,t.zoom),e=t.origin.multiplyBy(o).subtract(this._map._getNewPixelOrigin(e,n)).round();F(t.el,e,o)},_resetGrid(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),o=this._tileZoom,s=this._map.getPixelWorldBounds(this._tileZoom);s&&(this._globalTileRange=this._pxBoundsToTileRange(s)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],o).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],o).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],o).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],o).y/n.y)]},_onMoveEnd(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(n,this._tileZoom),t=e.project(t,this._tileZoom).floor(),e=e.getSize().divideBy(2*n);return new b(t.subtract(e),t.add(e))},_update(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){let e=this._getTiledPixelBounds(t),u=this._pxBoundsToTileRange(e),h=u.getCenter(),d=[],p=this.options.keepBuffer,f=new b(u.getBottomLeft().subtract([p,-p]),u.getTopRight().add([p,-p]));if(!(isFinite(u.min.x)&&isFinite(u.min.y)&&isFinite(u.max.x)&&isFinite(u.max.y)))throw Error("Attempted to load an infinite number of tiles");for(var o of Object.values(this._tiles)){var s=o.coords;s.z===this._tileZoom&&f.contains(new _(s.x,s.y))||(o.current=!1)}
13if(1<Math.abs(n-this._tileZoom))this._setView(t,n);else{for(let t=u.min.y;t<=u.max.y;t++)for(let e=u.min.x;e<=u.max.x;e++){var r,a=new _(e,t);a.z=this._tileZoom,this._isValidTile(a)&&((r=this._tiles[this._tileCoordsToKey(a)])?r.current=!0:d.push(a))}if(d.sort((t,e)=>t.distanceTo(h)-e.distanceTo(h)),0!==d.length){this._loading||(this._loading=!0,this.fire("loading"));var l,c=document.createDocumentFragment();for(l of d)this._addTile(l,c);this._level.el.appendChild(c)}}}}},_isValidTile(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}return!this.options.bounds||(e=this._tileCoordsToBounds(t),new w(this.options.bounds).overlaps(e))},_keyToBounds(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe(t){var e=this._map,n=this.getTileSize(),o=t.scaleBy(n),n=o.add(n);return[e.unproject(o,t.z),e.unproject(n,t.z)]},_tileCoordsToBounds(t){t=this._tileCoordsToNwSe(t);let e=new w(t[0],t[1]);return this.options.noWrap?e:this._map.wrapLatLngBounds(e)},_tileCoordsToKey:t=>t.x+`:${t.y}:`+t.z,_keyToTileCoords(t){var t=t.split(":"),e=new _(+t[0],+t[1]);return e.z=+t[2],e},_removeTile(t){var e=this._tiles[t];e&&(e.el.remove(),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile(t){t.classList.add("leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=c,t.onpointermove=c},_addTile(t,e){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),this._tileReady.bind(this,t));this._initTile(s),this.createTile.length<2&&requestAnimationFrame(this._tileReady.bind(this,t,null,s)),W(s,n),this._tiles[o]={el:s,coords:t,current:!0},e.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})},_tileReady(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var o=this._tileCoordsToKey(t);(n=this._tiles[o])&&(n.loaded=+new Date,this._map._fadeAnimated?(n.el.style.opacity=0,cancelAnimationFrame(this._fadeFrame),this._fadeFrame=requestAnimationFrame(this._updateOpacity.bind(this))):(n.active=!0,this._pruneTiles()),e||(n.el.classList.add("leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad())&&(this._loading=!1,this.fire("load"),this._map._fadeAnimated?this._pruneTimeout=setTimeout(this._pruneTiles.bind(this),250):requestAnimationFrame(this._pruneTiles.bind(this)))},_getTilePos(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords(t){var e=new _(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange(t){var e=this.getTileSize();return new b(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad(){return Object.values(this._tiles).every(t=>t.loaded)}}),ef=ep.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize(t,e){if(this._url=t,null===(e=d(this,e)).attribution&&URL.canParse(t)){let n=new URL(t).hostname;["tile.openstreetmap.org","tile.osm.org"].some(t=>n.endsWith(t))&&(e.attribution='© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors')}e.detectRetina&&z.retina&&0<e.maxZoom?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile(t,e){var n=document.createElement("img");return tu(n,"load",this._tileOnLoad.bind(this,e,n)),tu(n,"error",this._tileOnError.bind(this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl(t){var e={...this.options,r:z.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(t=this._globalTileRange.max.y-t.y,this.options.tms&&(e.y=t),e["-y"]=t),f(this._url,e)},_tileOnLoad(t,e){t(null,e)},_tileOnError(t,e,n){var o=this.options.errorTileUrl;o&&e.getAttribute("src")!==o&&(e.src=o),t(n,e)},_onTileRemove(t){t.tile.onload=null},_getZoomForUrl(){let t=this._tileZoom;var e=this.options.maxZoom,n=this.options.zoomReverse,o=this.options.zoomOffset;return(t=n?e-t:t)+o},_getSubdomain(t){return t=Math.abs(t.x+t.y)%this.options.subdomains.length,this.options.subdomains[t]},_abortLoading(){let t,e;
13for(t of Object.keys(this._tiles)){var n;this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=c,e.onerror=c,e.complete||(e.src=m,n=this._tiles[t].coords,e.remove(),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})))}},_removeTile(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",m),ep.prototype._removeTile.call(this,t)},_tileReady(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==m))return ep.prototype._tileReady.call(this,t,e,n)},_clampZoom(t){return Math.round(ep.prototype._clampZoom.call(this,t))}});var em=ef.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize(t,e){this._url=t;var n,o={...this.defaultWmsParams};for(n of Object.keys(e))n in this.options||(o[n]=e[n]);var t=(e=d(this,e)).detectRetina&&z.retina?2:1,s=this.getTileSize();o.width=s.x*t,o.height=s.y*t,this.wmsParams=o},onAdd(t){this._crs=this.options.crs??t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[e]=this._crs.code,ef.prototype.onAdd.call(this,t)},getTileUrl(t){var e,n,o=this._tileCoordsToNwSe(t),s=this._crs,s=new b(s.project(o[0]),s.project(o[1])),o=s.min,s=s.max,o=(1.3<=this._wmsVersion&&this._crs===tq?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),r=new URL(ef.prototype.getTileUrl.call(this,t));for([e,n]of Object.entries({...this.wmsParams,bbox:o}))r.searchParams.append(this.options.uppercase?e.toUpperCase():e,n);return r.toString()},setParams(t,e){return Object.assign(this.wmsParams,t),e||this.redraw(),this}});ef.WMS=em;let eg=er.extend({initialize(t){d(this,{...t,continuous:!1}),r(this),this._layers??={}},onAdd(t){er.prototype.onAdd.call(this,t),this.on("update",this._updatePaths,this)},onRemove(){er.prototype.onRemove.call(this),this.off("update",this._updatePaths,this)},_onZoomEnd(){for(var t of Object.values(this._layers))t._project()},_updatePaths(){for(var t of Object.values(this._layers))t._update()},_onViewReset(){for(var t of Object.values(this._layers))t._reset()},_onSettled(){this._update()},_update:c}),ev=eg.extend({options:{tolerance:0},getEvents(){var t=eg.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset(){this._postponeUpdatePaths=!0},onAdd(t){eg.prototype.onAdd.call(this,t),this._draw()},onRemove(){eg.prototype.onRemove.call(this),clearTimeout(this._pointerHoverThrottleTimeout)}
13,_initContainer(){var t=this._container=document.createElement("canvas");tu(t,"pointermove",this._onPointerMove,this),tu(t,"click dblclick pointerdown pointerup contextmenu",this._onClick,this),tu(t,"pointerout",this._handlePointerOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer(){cancelAnimationFrame(this._redrawRequest),this._redrawRequest=null,delete this._ctx,eg.prototype._destroyContainer.call(this)},_resizeContainer(){var t=eg.prototype._resizeContainer.call(this),e=this._ctxScale=window.devicePixelRatio;this._container.width=e*t.x,this._container.height=e*t.y},_updatePaths(){if(!this._postponeUpdatePaths){for(var t of(this._redrawBounds=null,Object.values(this._layers)))t._update();this._redraw()}},_update(){var t,e;this._map._animatingZoom&&this._bounds||(t=this._bounds,e=this._ctxScale,this._ctx.setTransform(e,0,0,e,-t.min.x*e,-t.min.y*e),this.fire("update"))},_reset(){eg.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath(t){this._updateDashArray(t),t=(this._layers[r(t)]=t)._order={layer:t,prev:this._drawLast,next:null},this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst??=this._drawLast},_addPath(t){this._requestRedraw(t)},_removePath(t){var e=t._order,n=e.next,e=e.prev;n?n.prev=e:this._drawLast=e,e?e.next=n:this._drawFirst=n,delete t._order,delete this._layers[r(t)],this._requestRedraw(t)},_updatePath(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray(t){var e;"string"==typeof t.options.dashArray?(e=t.options.dashArray.split(/[, ]+/),t.options._dashArray=e.map(t=>Number(t)).filter(t=>!isNaN(t))):t.options._dashArray=t.options.dashArray},_requestRedraw(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest??=requestAnimationFrame(this._redraw.bind(this)))},_extendRedrawBounds(t){var e;t._pxBounds&&(e=(t.options.weight??0)+1,this._redrawBounds??=new b,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e])))},_redraw(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear(){var t,e=this._redrawBounds;e?(t=e.getSize(),this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)):(this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore())},_draw(){var t,e,n=this._redrawBounds;this._ctx.save(),n&&(e=n.getSize(),this._ctx.beginPath(),this._ctx.rect(n.min.x,n.min.y,e.x,e.y),this._ctx.clip()),this._drawing=!0;for(let e=this._drawFirst;e;e=e.next)t=e.layer,(!n||t._pxBounds&&t._pxBounds.intersects(n))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly(t,e){if(this._drawing){let n=t._parts,o=this._ctx;n.length&&(o.beginPath(),n.forEach(t=>{t.forEach((t,e)=>{o[e?"lineTo":"moveTo"](t.x,t.y)}),e&&o.closePath()}),this._fillStroke(o,t))}},_updateCircle(t){var e,n,o,s;this._drawing&&!t._empty()&&(e=t._point,n=this._ctx,o=Math.max(Math.round(t._radius),1),1!=(s=(Math.max(Math.round(t._radiusY),1)||o)/o)&&(n.save(),n.scale(1,s)),n.beginPath(),n.arc(e.x,e.y/s,o,0,2*Math.PI,!1),1!=s&&n.restore(),this._fillStroke(n,t))},_fillStroke(t,e){(e=e.options).fill&&(t.globalAlpha=e.fillOpacity,t.fillStyle=e.fillColor??e.color,t.fill(e.fillRule||"evenodd")),e.stroke&&0!==e.weight&&(t.setLineDash&&(t.lineDashOffset=Number(e.dashOffset??0),t.setLineDash(e._dashArray??[])),t.globalAlpha=e.opacity,t.lineWidth=e.weight,t.strokeStyle=e.color,t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.stroke())},_onClick(t){let e,n;var o=this._map.pointerEventToLayerPoint(t);for(let s=this._drawFirst;s;s=s.next)(e=s.layer).options.interactive&&e._containsPoint(o)&&(("click"===t.type||"preclick"===t.type)&&this._map._draggableMoved(e)||(n=e));this._fireEvent(!!n&&[n],t)},_onPointerMove(t){var e;!this._map||this._map.dragging.moving()||this._map._animatingZoom||(e=this._map.pointerEventToLayerPoint(t),this._handlePointerHover(t,e))},_handlePointerOut(t){var e=this._hoveredLayer;e&&(this._container.classList.remove("leaflet-interactive"),this._fireEvent([e],t,"pointerout"),this._hoveredLayer=null,this._pointerHoverThrottled=!1)},_handlePointerHover(t,e){if(!this._pointerHoverThrottled){let n,o;for(let t=this._drawFirst;t;t=t.next)(n=t.layer).options.interactive&&n._containsPoint(e)&&(o=n);o!==this._hoveredLayer&&(this._handlePointerOut(t),o)&&(this._container.classList.add("leaflet-interactive"),this._fireEvent([o],t,"pointerover"),this._hoveredLayer=o),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._pointerHoverThrottled=!0,this._pointerHoverThrottleTimeout=setTimeout(()=>{this._pointerHoverThrottled=!1},32)}},_fireEvent(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront(t){var e,n,o=t._order;o&&(e=o.next,n=o.prev,e)&&((e.prev=n)?n.next=e:e&&(this._drawFirst=e),o.prev=this._drawLast,(this._drawLast.next=o).next=null,this._drawLast=o,this._requestRedraw(t))},_bringToBack(t){var e,n,o=t._order;o&&(e=o.next,n=o.prev)&&((n.next=e)?e.prev=n:n&&(this._drawLast=n),o.prev=null,o.next=this._drawFirst,this._drawFirst.prev=o,this._drawFirst=o,this._requestRedraw(t))}});function ey(t,e){return t.flatMap(t=>[...t.map((t,e)=>(e?"L":"M")+t.x+" "+t.y),e?"z":""]).join("")||"M0 0"}let e_=function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)},eb=eg.extend({_initContainer(){this._container=e_("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=e_("g"),this._container.appendChild(this._rootGroup)},_destroyContainer(){eg.prototype._destroyContainer.call(this),delete this._rootGroup,delete this._svgSize},_resizeContainer(){var t=eg.prototype._resizeContainer.call(this);this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,this._container.setAttribute("width",t.x),this._container.setAttribute("height",t.y))},_update(){var t,e;this._map._animatingZoom&&this._bounds||(e=(t=this._bounds).getSize(),this._container.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update"))},_initPath(t){var e=t._path=e_("path");t.options.className&&e.classList.add(...h(t.options.className)),t.options.interactive&&e.classList.add("leaflet-interactive"),this._updateStyle(t),this._layers[r(t)]=t},_addPath(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath(t){t._path.remove(),t.removeInteractiveTarget(t._path),delete this._layers[r(t)]},_updatePath(t){t._project(),t._update()},_updateStyle(t){var e=t._path,t=t.options;e&&(t.stroke?(e.setAttribute("stroke",t.color),e.setAttribute("stroke-opacity",t.opacity),e.setAttribute("stroke-width",t.weight),e.setAttribute("stroke-linecap",t.lineCap),e.setAttribute("stroke-linejoin",t.lineJoin),t.dashArray?e.setAttribute("stroke-dasharray",t.dashArray):e.removeAttribute("stroke-dasharray"),t.dashOffset?e.setAttribute("stroke-dashoffset",t.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),t.fill?(e.setAttribute("fill",t.fillColor||t.color),e.setAttribute("fill-opacity",t.fillOpacity),e.setAttribute("fill-rule",t.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly(t,e){this._setPath(t,ey(t._parts,e))}
13,_updateCircle(t){var e=t._point,n=Math.max(Math.round(t._radius),1),o=`a${n},${Math.max(Math.round(t._radiusY),1)||n} 0 1,0 `,e=t._empty()?"M0 0":`M${e.x-n},${e.y}${o}${2*n},0 ${o}${-(2*n)},0 `;this._setPath(t,e)},_setPath(t,e){t._path.setAttribute("d",e)},_bringToFront(t){B(t._path)},_bringToBack(t){R(t._path)}});E.include({getRenderer(t){let e=t.options.renderer??this._getPaneRenderer(t.options.pane)??this.options.renderer??this._renderer;return e=e||(this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer(t){if("overlayPane"!==t&&void 0!==t){let e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e}},_createRenderer(t){return this.options.preferCanvas&&new ev(t)||new eb(t)}});var em=t5.extend({initialize(t,e){t5.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:t=>[(t=new w(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}),ew=(eb.create=e_,eb.pointsToPath=ey,t8.geometryToLayer=t7,t8.coordsToLatLng=t9,t8.coordsToLatLngs=et,t8.latLngToCoords=ee,t8.latLngsToCoords=ei,t8.getFeature=en,t8.asFeature=eo,E.mergeOptions({boxZoom:!0}),A.extend({initialize(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks(){tu(this._container,"pointerdown",this._onPointerDown,this)},removeHooks(){td(this._container,"pointerdown",this._onPointerDown,this)},moved(){return this._moved},_destroy(){this._pane.remove(),delete this._pane},_resetState(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onPointerDown(t){if(!t.shiftKey||0!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),G(),Y(),this._startPoint=this._map.pointerEventToContainerPoint(t),tu(document,{contextmenu:tw,pointermove:this._onPointerMove,pointerup:this._onPointerUp,keydown:this._onKeyDown},this)},_onPointerMove(t){this._moved||(this._moved=!0,this._box=D("div","leaflet-zoom-box",this._container),this._container.classList.add("leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.pointerEventToContainerPoint(t);var t=new b(this._point,this._startPoint),e=t.getSize();W(this._box,t.min),this._box.style.width=e.x+"px",this._box.style.height=e.y+"px"},_finish(){this._moved&&(this._box.remove(),this._container.classList.remove("leaflet-crosshair")),Q(),K(),td(document,{contextmenu:tw,pointermove:this._onPointerMove,pointerup:this._onPointerUp,keydown:this._onKeyDown},this)},_onPointerUp(t){0===t.button&&(this._finish(),this._moved)&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(this._resetState.bind(this),0),t=new w(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t}))},_onKeyDown(t){"Escape"===t.code&&(this._finish(),this._clearDeferredResetState(),this._resetState())}})),ex=(E.addInitHook("addHandler","boxZoom",ew),E.mergeOptions({doubleClickZoom:!0}),A.extend({addHooks(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick(t){var e=this._map,n=e.getZoom(),o=e.options.zoomDelta,n=t.originalEvent.shiftKey?n-o:n+o;"center"===e.options.doubleClickZoom?e.setZoom(n):e.setZoomAround(t.containerPoint,n)}})),eT=(E.addInitHook("addHandler","doubleClickZoom",ex),E.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0}),A.extend({addHooks(){var t;this._draggable||(t=this._map,this._draggable=new tM(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))),this._map._container.classList.add("leaflet-grab","leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks(){this._map._container.classList.remove("leaflet-grab","leaflet-touch-drag"),this._draggable.disable()},moved(){return this._draggable?._moved}
13,moving(){return this._draggable?._moving},_onDragStart(){var t,e=this._map;e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(t=new w(this._map.options.maxBounds),this._offsetLimit=new b(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag(t){var e,n;this._map.options.inertia&&(e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(n),this._times.push(e),this._prunePositions(e)),this._map.fire("move",t).fire("drag",t)},_prunePositions(t){for(;1<this._positions.length&&50<t-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit(){var t,e;this._viscosity&&this._offsetLimit&&(t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit,t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t))},_onPreDragWrap(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,o=this._draggable._newPos.x,s=(o-e+n)%t+e-n,o=(o+e+n)%t-e-n,t=Math.abs(s+n)<Math.abs(o+n)?s:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=t},_onDragEnd(t){let e=this._map,n=e.options,o=!n.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),o)e.fire("moveend");else{this._prunePositions(+new Date);let t=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,s=n.easeLinearity,r=t.multiplyBy(s/o),a=r.distanceTo([0,0]),l=Math.min(n.inertiaMaxSpeed,a),c=r.multiplyBy(l/a),u=l/(n.inertiaDeceleration*s),h=c.multiplyBy(-u/2).round();h.x||h.y?(h=e._limitOffset(h,e.options.maxBounds),requestAnimationFrame(()=>{e.panBy(h,{duration:u,easeLinearity:s,noMoveStart:!0,animate:!0})})):e.fire("moveend")}}})),ek=(E.addInitHook("addHandler","dragging",eT),E.mergeOptions({keyboard:!0,keyboardPanDelta:80}),A.extend({keyCodes:{left:["ArrowLeft"],right:["ArrowRight"],down:["ArrowDown"],up:["ArrowUp"],zoomIn:["Equal","NumpadAdd","BracketRight"],zoomOut:["Minus","NumpadSubtract","Digit6","Slash"]},initialize(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),t.ariaKeyShortcuts=Object.values(this.keyCodes).flat().join(" "),tu(t,{focus:this._onFocus,blur:this._onBlur,pointerdown:this._onPointerDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks(){this._removeHooks(),td(this._map._container,{focus:this._onFocus,blur:this._onBlur,pointerdown:this._onPointerDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onPointerDown(){var t,e,n;this._focused||(n=document.body,t=document.documentElement,e=n.scrollTop||t.scrollTop,n=n.scrollLeft||t.scrollLeft,this._map._container.focus(),window.scrollTo(n,e))},_onFocus(){this._focused=!0,this._map.fire("focus")},_onBlur(){this._focused=!1,this._map.fire("blur")},_setPanDelta(t){var e,n,o,s,r=this._panKeys={},a=this.keyCodes;for(e of a.left)r[e]=[-1*t,0];for(n of a.right)r[n]=[t,0];for(o of a.down)r[o]=[0,t];for(s of a.up)r[s]=[0,-1*t]},_setZoomDelta(t){var e,n,o=this._zoomKeys={},s=this.keyCodes;for(e of s.zoomIn)o[e]=t;for(n of s.zoomOut)o[n]=-t},_addHooks(){tu(document,"keydown",this._onKeyDown,this)},_removeHooks(){td(document,"keydown",this._onKeyDown,this)},_onKeyDown(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){let s;var e,n=t.code,o=this._map;if(n in this._panKeys)o._panAnim&&o._panAnim._inProgress||(s=this._panKeys[n],t.shiftKey&&(s=new _(s).multiplyBy(3)),o.options.maxBounds&&(s=o._limitOffset(new _(s),o.options.maxBounds)),o.options.worldCopyJump?(e=o.wrapLatLng(o.unproject(o.project(o.getCenter()).add(s))),o.panTo(e)):o.panBy(s));else if(n in this._zoomKeys)o.setZoom(o.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if("Escape"!==n||!o._popup||!o._popup.options.closeOnEscapeKey)return;o.closePopup()}tw(t)}}}
13)),eC=(E.addInitHook("addHandler","keyboard",ek),E.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60}),A.extend({addHooks(){tu(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks(){td(this._map._container,"wheel",this._onWheelScroll,this),clearTimeout(this._timer)},_onWheelScroll(t){var e=tC(t),n=this._map.options.wheelDebounceTime,e=(this._delta+=e,this._lastMousePos=this._map.pointerEventToContainerPoint(t),this._startTime||(this._startTime=+new Date),Math.max(n-(+new Date-this._startTime),0));clearTimeout(this._timer),this._timer=setTimeout(this._performZoom.bind(this),e),tw(t)},_performZoom(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap??0,o=(t._stop(),this._delta/(4*this._map.options.wheelPxPerZoomLevel)),o=4*Math.log(2/(1+Math.exp(-Math.abs(o))))/Math.LN2,n=n?Math.ceil(o/n)*n:o,o=t._limitZoom(e+(0<this._delta?n:-n))-e;this._delta=0,this._startTime=null,o&&("center"===t.options.scrollWheelZoom?t.setZoom(e+o):t.setZoomAround(this._lastMousePos,e+o))}}));E.addInitHook("addHandler","scrollWheelZoom",eC),E.mergeOptions({tapHold:z.touchNative&&z.safari&&z.mobile,tapTolerance:15});var ej=A.extend({addHooks(){tu(this._map._container,"pointerdown",this._onDown,this)},removeHooks(){td(this._map._container,"pointerdown",this._onDown,this),clearTimeout(this._holdTimeout)},_onDown(t){clearTimeout(this._holdTimeout),1===tc().length&&"mouse"!==t.pointerType&&(this._startPos=this._newPos=new _(t.clientX,t.clientY),this._holdTimeout=setTimeout(()=>{this._cancel(),this._isTapValid()&&(tu(document,"pointerup",tb),tu(document,"pointerup pointercancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))},600),tu(document,"pointerup pointercancel contextmenu",this._cancel,this),tu(document,"pointermove",this._onMove,this))},_cancelClickPrevent:function t(){td(document,"pointerup",tb),td(document,"pointerup pointercancel",t)},_cancel(){clearTimeout(this._holdTimeout),td(document,"pointerup pointercancel contextmenu",this._cancel,this),td(document,"pointermove",this._onMove,this)},_onMove(t){this._newPos=new _(t.clientX,t.clientY)},_isTapValid(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent(t,e){(t=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY}))._simulated=!0,e.target.dispatchEvent(t)}}),eS=(E.addInitHook("addHandler","tapHold",ej),E.mergeOptions({pinchZoom:z.touch,bounceAtZoomLimits:!0}),A.extend({addHooks(){this._map._container.classList.add("leaflet-touch-zoom"),tu(this._map._container,"pointerdown",this._onPointerStart,this)},removeHooks(){this._map._container.classList.remove("leaflet-touch-zoom"),td(this._map._container,"pointerdown",this._onPointerStart,this)},_onPointerStart(t){var e,n=this._map,o=tc();2!==o.length||n._animatingZoom||this._zooming||(e=n.pointerEventToContainerPoint(o[0]),o=n.pointerEventToContainerPoint(o[1]),this._centerPoint=n.getSize()._divideBy(2),this._startLatLng=n.containerPointToLatLng(this._centerPoint),"center"!==n.options.pinchZoom&&(this._pinchStartLatLng=n.containerPointToLatLng(e.add(o)._divideBy(2))),this._startDist=e.distanceTo(o),this._startZoom=n.getZoom(),this._moved=!1,this._zooming=!0,n._stop(),tu(document,"pointermove",this._onPointerMove,this),tu(document,"pointerup pointercancel",this._onPointerEnd,this),tb(t))},_onPointerMove(t){var e=tc();if(2===e.length&&this._zooming){var n=this._map,o=n.pointerEventToContainerPoint(e[0]),e=n.pointerEventToContainerPoint(e[1]),s=o.distanceTo(e)/this._startDist;if(this._zoom=n.getScaleZoom(s,this._startZoom),!n.options.bounceAtZoomLimits&&(this._zoom<n.getMinZoom()&&s<1||this._zoom>n.getMaxZoom()&&1<s)&&(this._zoom=n._limitZoom(this._zoom)),"center"===n.options.pinchZoom){if(this._center=this._startLatLng,1==s)return}else{if(o=o._add(e)._divideBy(2)._subtract(this._centerPoint),1==s&&0===o.x&&0===o.y)return;this._center=n.unproject(n.project(this._pinchStartLatLng,this._zoom).subtract(o),this._zoom)}this._moved||(n._moveStart(!0,!1),this._moved=!0),cancelAnimationFrame(this._animRequest),e=n._move.bind(n,this._center,this._zoom,{pinch:!0,round:!1},void 0),this._animRequest=requestAnimationFrame(e.bind(this)),tb(t)}},_onPointerEnd(){this._moved&&this._zooming?(this._zooming=!1,cancelAnimationFrame(this._animRequest),td(document,"pointermove",this._onPointerMove,this),td(document,"pointerup pointercancel",this._onPointerEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}})),ew=(E.addInitHook("addHandler","pinchZoom",eS),E.addInitHook(function(){this.touchZoom=this.pinchZoom,void 0!==this.options.touchZoom&&(console.warn("Map: touchZoom option is deprecated and will be removed in future versions. Use pinchZoom instead."),this.options.pinchZoom=this.options.touchZoom,delete this.options.touchZoom),this.options.pinchZoom?this.pinchZoom.enable():this.pinchZoom.disable()}),E.BoxZoom=ew,E.DoubleClickZoom=ex,E.Drag=eT,E.Keyboard=ek,E.ScrollWheelZoom=eC,E.TapHold=ej,E.PinchZoom=eS,E.TouchZoom=eS,"2.0.0-alpha"),ex={__proto__:null,BlanketOverlay:er,Bounds:b,Browser:z,CRS:T,Canvas:ev,Circle:t4,CircleMarker:M,Class:v,Control:tE,DivIcon:ed,DivOverlay:ec,DomEvent:tS,DomUtil:ti,Draggable:tM,Evented:y,FeatureGroup:tK,GeoJSON:t8,GridLayer:ep,Handler:A,Icon:tX,ImageOverlay:es,LatLng:x,LatLngBounds:w,Layer:tQ,LayerGroup:tY,LineUtil:O,Map:E,Marker:t1,Path:t6,Point:_,PolyUtil:P,Polygon:t5,Polyline:t2,Popup:eu,PosAnimation:tP,Projection:tU,Rectangle:em,Renderer:eg,SVG:eb,SVGOverlay:el,TileLayer:ef,Tooltip:eh,Transformation:j,Util:g,VideoOverlay:ea,version:ew};let eP=eE().L;function eE(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("Unable to locate global object.")}eE().L=ex,eE().L.noConflict=function(){return eE().L=eP,this},t.BlanketOverlay=er,t.Bounds=b,t.Browser=z,t.CRS=T,t.Canvas=ev,t.Circle=t4,t.CircleMarker=M,t.Class=v,t.Control=tE,t.DivIcon=ed,t.DivOverlay=ec,t.DomEvent=tS,t.DomUtil=ti,t.Draggable=tM,t.Evented=y,t.FeatureGroup=tK,t.GeoJSON=t8,t.GridLayer=ep,t.Handler=A,t.Icon=tX,t.ImageOverlay=es,t.LatLng=x,t.LatLngBounds=w,t.Layer=tQ,t.LayerGroup=tY,t.LineUtil=O,t.Map=E,t.Marker=t1,t.Path=t6,t.Point=_,t.PolyUtil=P,t.Polygon=t5,t.Polyline=t2,t.Popup=eu,t.PosAnimation=tP,t.Projection=tU,t.Rectangle=em,t.Renderer=eg,t.SVG=eb,t.SVGOverlay=el,t.TileLayer=ef,t.Tooltip=eh,t.Transformation=j,t.Util=g,t.VideoOverlay=ea,t.default=ex,t.version=ew}),function(t){"use strict";var e=function(){this.confData={},this.selfCount={},this.mapInstance={},this.mapMarkers={},this.activeMap=null,t(".js-mapComponent").length&&this.initialize()};e.prototype.getAddressForPostcode=function(t,e,n){for(var o="",s=this.confData[t].locations,r=0;r<s.length;r++)if(-1!==s[r].address.indexOf(e)){if(null!==n){if(-1!==s[r].address.indexOf(n)){o=s[r].address;break}}else{o=s[r].address;break}}return o},e.prototype.initialize=function(){var e=this;"undefined"!=typeof L&&L&&(!L.map&&L.Map&&(L.map=(t,e)=>new L.Map(t,e)),!L.tileLayer&&L.TileLayer&&(L.tileLayer=(t,e)=>new L.TileLayer(t,e)),!L.marker&&L.Marker&&(L.marker=(t,e)=>new L.Marker(t,e)),!L.polygon&&L.Polygon&&(L.polygon=(t,e)=>new L.Polygon(t,e)),!L.polyline&&L.Polyline&&(L.polyline=(t,e)=>new L.Polyline(t,e)),!L.circle&&L.Circle&&(L.circle=(t,e,n)=>new L.Circle(t,e,n)),!L.circleMarker&&L.CircleMarker&&(L.circleMarker=(t,e)=>new L.CircleMarker(t,e)),!L.rectangle&&L.Rectangle&&(L.rectangle=(t,e)=>new L.Rectangle(t,e)),!L.featureGroup&&L.FeatureGroup&&(L.featureGroup=t=>new L.FeatureGroup(t)),!L.layerGroup&&L.LayerGroup&&(L.layerGroup=t=>new L.LayerGroup(t)),!L.geoJSON&&L.GeoJSON&&(L.geoJSON=(t,e)=>new L.GeoJSON(t,e)),!L.imageOverlay&&L.ImageOverlay&&(L.imageOverlay=(t,e,n)=>new L.ImageOverlay(t,e,n)),!L.videoOverlay&&L.VideoOverlay&&(L.videoOverlay=(t,e,n)=>new L.VideoOverlay(t,e,n)),!L.svgOverlay&&L.SVGOverlay&&(L.svgOverlay=(t,e,n)=>new L.SVGOverlay(t,e,n)),!L.icon&&L.Icon&&(L.icon=t=>new L.Icon(t)),!L.divIcon&&L.DivIcon&&(L.divIcon=t=>new L.DivIcon(t)),L.control=L.control||{},!L.control.zoom&&L.Control?.Zoom&&(L.control.zoom=t=>new L.Control.Zoom(t)),!L.control.layers&&L.Control?.Layers&&(L.control.layers=(t,e,n)=>new L.Control.Layers(t,e,n)),!L.control.scale&&L.Control?.Scale&&(L.control.scale=t=>new L.Control.Scale(t)),!L.control.attribution&&L.Control?.Attribution&&(L.control.attribution=t=>new L.Control.Attribution(t)),!L.popup&&L.Popup&&(L.popup=(t,e)=>new L.Popup(t,e)),!L.tooltip&&L.Tooltip&&(L.tooltip=(t,e)=>new L.Tooltip(t,e)),!L.latLng&&L.LatLng&&(L.latLng=(t,e)=>Array.isArray(t)?new L.LatLng(t[0],t[1],t[2]):new L.LatLng(t,e)),!L.latLngBounds&&L.LatLngBounds&&(L.latLngBounds=(t,e)=>Array.isArray(t)?new L.LatLngBounds(t[0],t[1]??t[0]):new L.LatLngBounds(t,e)),!L.point&&L.Point&&(L.point=(t,e,n)=>Array.isArray(t)?new L.Point(t[0],t[1],e):new L.Point(t,e,n)),!L.bounds&&L.Bounds&&(L.bounds=(t,e)=>Array.isArray(t)?new L.Bounds(t[0],t[1]??t[0]):new L.Bounds(t,e)));var n=t(".js-mapComponent");window.mapPopupTriggered=!1,n.each(function(){var n=t(this).closest("[data-component-name]").data("c
13omponentName");e.mapInstance[n]=L.map(this),L.tileLayer("//smbmaps.ibsrv.net/world_tiles/{z}/{x}/{y}.png",{attribution:'Map data provided by <a href="http://www.internetbrands.com/">Internet Brands</a>',maxZoom:18}).addTo(e.mapInstance[n]),e.mapInstance[n].scrollWheelZoom.disable(),e.confData[n]=JSON.parse(t(this).closest("[data-component-name]").find("input[type=hidden]").val()),e.setupMap(e.mapInstance[n],e.confData[n]),e.mapSize(this,e.confData[n],n),e.attachEvents(this,e.confData[n],n),e.searchByZipCode(this,e.confData[n],e.mapInstance[n],n,!1);var o=e.confData[n].locations;o.length>1&&!e.confData[n].fitBounds&&(o=o.reverse());for(var s=0;s<o.length;s++)if(null!=o[s].cta&&(2==o[s].cta.buttonStyle&&(o[s].cta.iconHtm='\n<span aria-label="'+o[s].cta.iconClass.replace(/-/g," ")+'">\n<span class="'+o[s].cta.iconClass+' icon" aria-hidden="true"></span>\n</span>\n'),3==o[s].cta.buttonStyle&&(o[s].cta.iconHtm='\n<span class="'+o[s].cta.iconClass+' icon" aria-hidden="true"></span>\n'+o[s].cta.buttonText+"\n")),null!=o[s].latitude&&null!=o[s].longitude){var r=[{lat:o[s].latitude,lon:o[s].longitude,address:{name:o[s].address}}];e.applyData(r,n,this,s)}else e.geolocateLocation(o[s],n,this);var a=e.confData[n].xaxis,l=e.confData[n].yaxis;t(window).width()>768&&(0!=a||0!=l)&&e.mapInstance[n].panBy([a,l])}),t("body").click(function(n){if(t(n.target).hasClass("js-mapComponent")){var o=t(n.target).closest("[data-component-name]").data("componentName");null!==e.activeMap&&e.mapInstance[e.activeMap].scrollWheelZoom.disable(),e.activeMap=o,e.confData[o].zoomControl&&e.mapInstance[o].scrollWheelZoom.enable()}else null!==e.activeMap&&(e.mapInstance[e.activeMap].scrollWheelZoom.disable(),e.activeMap=null)})},e.prototype.attachEvents=function(e,n,o){var s,r=this;t(window).resize(function(){r.mapSize(e,n,o),clearTimeout(s),s=setTimeout(function(){if(r.mapMarkers[o].length>1&&r.confData[o].fitBounds){var t=L.featureGroup(r.mapMarkers[o]);r.mapCenter(o,t)}},250)})}
13,e.prototype.setupMap=function(e,n){n.zoomControl||(e.boxZoom.disable(),e.doubleClickZoom.disable(),e.keyboard.disable(),e.scrollWheelZoom.disable(),e.tap&&e.tap.disable(),e.touchZoom.disable(),t(".leaflet-control-zoom").css("visibility","hidden"))},e.prototype.mapCenter=function(t,e){this.mapInstance[t].fitBounds(e.getBounds().pad(.5)),this.confData[t].alwaysShowInfoWindow&&this.mapMarkers[t][this.mapMarkers[t].length-1].isPopupOpen()&&!window.mapPopupTriggered&&(this.mapMarkers[t][this.mapMarkers[t].length-1].closePopup(),this.mapMarkers[t][this.mapMarkers[t].length-1].openPopup(),window.mapPopupTriggered=!0)},e.prototype.mapSize=function(e,n,o){var s=t(e).parent();if(n.autoFit){this.confData[o].isPle?a=s.find(".map__wrap").outerHeight(!0):r=s.children(".component__title-caption-wrap").outerHeight(!0),s.css("height","100%");var r,a,l=s.height();this.confData[o].isPle||null===r?768>=t(window).width()&&null!==a&&(l-=a):l-=r,t(e).css({width:s.width(),height:l}),t(e).trigger("map.resize")}else t(e).css({width:n.width,height:n.height})},e.prototype.geocodeURL="https://nominatim.openstreetmap.org/search?[QUERY]&format=json&polygon=1&addressdetails=1&limit=1",e.prototype.geolocateLocation=function(e,n,o){var s=this,r=this.geocodeURL;r=r.replace("[QUERY]",e.query),t.ajax({url:r,dataType:"jsonp",jsonp:"json_callback",success:function(t){s.applyData(t,n,o)}})},e.prototype.searchByZipCode=function(e,n,o,s,r){var a=this,l=this.geocodeURL;t("#location-zip").submit(function(e){e.preventDefault();var c=t("#location-search").val();if(!c||"Enter your zip code and state"==c){alert("Please enter your current city or ZIP code.");return}l="https://nominatim.openstreetmap.org/search?q="+c+"&format=json",t.ajax({url:l,dataType:"jsonp",jsonp:"json_callback",success:function(t){a.getDistance(t,n,o,s,r)}})})},e.prototype.getDistance=function(e,n,o,s,r){var a=this;if(a.markerTemp,0!==Object.keys(e).length){var l=n.locations,c=e[0].lat,u=e[0].lon,h=new L.Icon({iconUrl:n.assetsPath+"css/images/marker-icon-green.png",shadowUrl:n.assetsPath+"images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]}),d=L.marker([c,u],{icon:h});d.addTo(o),void 0!==a.markerTemp&&(a.markerTemp.removeFrom(o),this.mapMarkers[s].pop(d)),null!=d&&(a.markerTemp=d),this.mapMarkers[s].push(d),o.closePopup();var p=L.featureGroup(this.mapMarkers[s]).addTo(o);o.fitBounds(p.getBounds().pad(.5));for(var f=0;f<l.length;f++)if(null!=l[f].latitude&&null!=l[f].longitude)for(var m=Math.round(621371e-9*L.latLng([l[f].latitude,l[f].longitude]).distanceTo([c,u])),g=t(".gmap-location b"),v=t(".gmap-location .gmap-distance"),y=0;y<g.length;y++)-1!==g[y].innerText.indexOf(l[f].title)&&(t(g[y]).closest(".gmap-location").data("distanceMiles",m),m=m.toLocaleString(),v.show(),v[y].innerHTML=m+" mi");t(".gmap-location-list li").sort(function(e,n){return t(n).data("distanceMiles")<t(e).data("distanceMiles")?1:-1}).appendTo(".gmap-location-list"),r=!0,t(".gmap-location-list li").first().children().trigger("click",[r])}else{for(var g=t(".gmap-location b"),_=t(".map-search__location-distance > b"),v=t(".gmap-location .gmap-distance"),f=0;f<v.length;f++)v.show(),v[f].innerHTML=" -- mi";for(var f=0;f<_.length;f++)_.show(),_[f].innerHTML=" -- mi";for(var f=0;f<g.length;f++)t(g[f]).closest(".gmap-location").data("distanceMiles","--")}},e.prototype.applyData=function(e,n,o,s){var r=this;if(e.length>0){r.selfCount[n]=r.selfCount[n]||0;var a=e[0],l=a.lat,c=a.lon;r.mapInstance[n].setView([l,c],r.confData[n].zoom,{animation:!0}),r.selfCount[n]++;var u=[];u.alt="Map Marker";var h=r.confData[n].assetsPath;if(r.confData[n].iconUrl){var d=r.confData[n].iconUrl,p=new L.Icon({iconUrl:d,shadowUrl:h+"images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]});u.icon=p}var f=L.marker([l,c],u);if(r.confData[n].alwaysShowInfoWindow||r.confData[n].showAddressOnHover){var m=a.display_name||null,g=null;if("postcode"in a.address){var v="house_number"in a.address?a.address.house_number:null;m=""!=(g=r.getAddressForPostcode(n,a.address.postcode,v))?g:m}else a.address.name&&(m=a.address.name);m&&f.bindPopup(m)}if(r.mapMarkers[n]=r.mapMarkers[n]||[],r.mapMarkers[n].push(f),r.confData[n].hue){var y=r.confData[n].hue.stylers,_=(y[0].gama,y[1].lightness,y[2].hue);"none"!==_&&(t(o).css("background-color",_),t("div.leaflet-tile-pane",o).css("opacity","0.9"))}if(r.selfCount[n]>=r.confData[n].locations.length){var b=L.featureGroup(r.mapMarkers[n]).addTo(r.mapInstance[n]);r.mapMarkers[n].length>1&&r.confData[n].fitBounds&&r.mapCenter(n,b),r.confData[n].alwaysShowInfoWindow&&(r.mapMarkers[n][r.mapMarkers[n].length-1].closePopup(),r.mapMarkers[n][r.mapMarkers[n].length-1].openPopup())}}else console.log("No data found.")},t(document).ready(function(){if(window.webManagerMap=new e,t(".map-a").length>0){var n;n=[{selector:".map-search__location-distance h3 b",property:"title",type:"text"},{selector:".map-search__location-address p",property:"address_format",type:"text"},{selector:".map-search__location-phone",property:"phone",type:"text"},{selector:".map-search__location-phone2",property:"phone2",type:"text"},{selector:".map-search__location-fax",property:"fax",type:"text"},{selector:".map-search__location-directions a",property:["cta","buttonText"],type:"text"},{selector:".map-search__location-directions a",property:["cta","linkPage"],type:"href"},{selector:".map-search__email",property:"email",type:"text"}],t("#gmap-location-list").on("click",".gmap-location a",function(e,o){e.preventDefault();
13var s=t(this).closest("[data-component-name]").data("componentName"),r=window.webManagerMap.confData[s].locations,a=t(this).parent().attr("id"),l=r.find(function(t){return t.ID===a}),c=window.webManagerMap.mapMarkers[s].find(function(t){return t._latlng.lat==l.latitude&&t._latlng.lng==l.longitude});if(void 0===o){let t=window.webManagerMap.mapInstance[s],e=window.webManagerMap.confData[s],n=[l.latitude,l.longitude],o=e.xaxis,r=e.yaxis;function u(){c&&c.openPopup()}o>-140&&(o=-140),t.invalidateSize(),t.stop(),window.innerWidth>768?(t.setView(n,e.zoom,{animate:!1}),t.panBy([o,r],{animate:!0}),t.once("moveend",function(){u()})):(t.setView(n,e.zoom,{animate:!1}),u())}var h=t(this).closest(".gmap-location").data("distanceMiles"),d=t(".map-search__location-distance > b");void 0!==h?(d.show(),h=h.toLocaleString(),d[0].innerHTML=h+" mi"):d[0].innerHTML=" -- mi",n.forEach(function(e,n){var o={},s=e.property;if(".map-search__location-directions a"==e.selector){for(var r="",n=0;n<=3;n++)if(l.cta.buttonStyle==n){switch(l.cta.buttonStyle){case"0":r="cta__link component__link--";break;case"1":r="cta__button component__button--";break;case"2":r="cta__link--icon ";break;case"3":r="cta__button--icon component__button--"}2==l.cta.buttonStyle||3==l.cta.buttonStyle?t(e.selector).html(l.cta.iconHtm):t(e.selector).text(l.cta.buttonText),t(e.selector).removeClass().addClass(r+l.cta.displayStyle),2==l.cta.linkType?t(e.selector).attr("href","#"):1==l.cta.linkType?t(e.selector).attr("href",l.cta.linkUrl):t(e.selector).attr("href",l.cta.linkPage),l.cta.openInNew?t(e.selector).attr("target","_blank"):t(e.selector).attr("target",""),l.cta.openInNew&&1==l.cta.linkType?t(e.selector).attr("rel","noopener"):t(e.selector).attr("rel","")}}else{if("string"==typeof s||s instanceof String)o=l[s];else{var a=l;s.forEach(function(t){a=a[t]}),o=a}if("string"==typeof o||o instanceof String)"text"===e.type?(t(e.selector).text(o),(".map-search__location-phone"==e.selector||".map-search__location-phone2"==e.selector)&&t(e.selector).attr("href","tel:"+o)):"href"===e.type&&t(e.selector).attr("href",o),o.length>0?t(e.selector).show():t(e.selector).hide();else{var c=Object.values(Object.keys(l[s]).map(function(t){return l[s][t]}));t(e.selector).html(c.join("<br>"))}}})})}})}(window.jQuery),function(t){"use strict";var e=function(e,n){var o=!1;function s(){setTimeout(function(){t(window).trigger("scroll")},100)}o=!!t(".lazyLoadImg").length,this.$element=t(e),this.options=this.parseTrueFalseOptions(n);var r=this;r.options.autoplay=r.options.auto,r.options.auto=!1,t.extend(this.options,{onSlideAfter:function(){r.options.auto&&(r.$element.stopAuto(),r.$element.startAuto()),o&&s()},onSliderLoad:function(){if(""==r.options.easing&&(r.options.easing=null),r.options.controlsHover){var e=r.$element.closest(".bx-wrapper");t(".bx-controls-direction",e).hide(),e.hover(function(){t(".bx-controls-direction",t(this)).fadeIn(300)},function(){t(".bx-controls-direction",t(this)).fadeOut(300)})}if(r.options.autoHover){var e=r.$element.closest(".bx-wrapper");e.hover(function(){r.options.auto&&r.$element.stopAuto()},function(){console.log(r.options.auto),r.options.auto&&r.$element.startAuto()})}null!=r.options.easing&&(r.options.useCSS=!1),r.options.autoplay&&(r.makePauseSlideshowButton(),setTimeout(function(){r.$element.startAuto(),r.options.auto=!0},r.options.autoDelay)),r.$element.closest(".bx-wrapper").find(".bx-controls").wrapAll("<div class='wrap__bx-controls' />"),r.$element.closest(".bx-wrapper").find(".wrap_on-off, .wrap_pause-play, .bx-pager ").wrapAll("<div class='bx-controls-buttons' />"),r.attachEvents()},onSlideNext:function(){o&&s()},onSlidePrev:function(){o&&s()}}),this.run()};e.prototype.attachEvents=function(){var e=this,n=e.$element.closest(".bx-wrapper").find(".bx-controls");n.on("click",".pause-slideshow",function(o,s){t(this).hide(),e.$element.stopAuto(),e.options.auto=!1,n.find(".play-slideshow").fadeIn("slow",function(){void 0!==s&&t(this).focus()})}),n.on("click",".play-slideshow",function(o,s){t(this).hide(),e.$element.startAuto(),e.options.auto=!0,n.find(".pause-slideshow").fadeIn("slow",function(){void 0!==s&&t(this).focus()})}),t("body").keypress(function(t){13==t.which&&(n.find(".play-slideshow").is(":focus")&&n.find(".play-slideshow").trigger("click",{kb:!0}),n.find(".pause-slideshow").is(":focus")&&n.find(".pause-slideshow").trigger("click",{kb:!0}))})},e.prototype.makePauseSlideshowButton=function(){this.$element.closest(".bx-wrapper").find(".bx-controls").append('<div class="wrap_pause-play">
13<div class="pause-slideshow" aria-label="icon pause" title="Pause slideshow" tabindex="0"><span class="icon icon-pause"></span></div><div class="play-slideshow" aria-label="icon play" style="display: none" title="Play slideshow" tabindex="0"><span class="icon icon-play"></span></div></div>')},e.prototype.parseTrueFalseOptions=function(t,n){for(var o in t)t.hasOwnProperty(o)&&-1!=e.BOOLEANS.indexOf(o)&&(t[o]=!!t[o]);return t},e.prototype.run=function(){var e=this;t(window).load(function(){e.$bxSlider=e.$element.bxSlider(e.options),e.$bxSlider.redrawSlider()})},e.DEFAULTS={pager:!0,controls:!0,autoControls:!1,auto:!0,infiniteLoop:!0,randomStart:!1,controlsHover:!1,responsive:!1,mode:"horizontal",speed:500,pause:4e3,autoDelay:0,easing:null,useCSS:!1},e.BOOLEANS=["pager","controls","autoControls","auto","infiniteLoop","randomStart","controlsHover","responsive"];var n=t.fn.BXSlider;t.fn.BXSlider=function(n){var o;return arguments,this.each(function(){var s=t(this),r=t.extend({},e.DEFAULTS,s.data(),"object"==typeof n&&n);if(s.data("bxslider",new e(this,r)),void 0!==o)return!1}),o||this},t.fn.BXSlider.Constructor=e,t.fn.BXSlider.noConflict=function(){return t.fn.BXSlider=n,this},t(function(){t('[data-control="bx-slider"]').BXSlider()})}(window.jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(n),n}:t(jQuery)}(function(t){"use strict";t.fn.imageScale=function(n){return this.each(function(){var o=this,s=t(this),r=s.data("imageScale"),a="IMG"===this.tagName?s:s.find("img");if(r)"string"==typeof n?r[n]():"object"==typeof n?r[n.method||"scale"](!1,n):r.scale();else{var l=a[0].complete,c=t.extend({},t.fn.imageScale.defaults,"object"==typeof n&&n),u=function(){s.data("imageScale",r=new e(o,c)),r.scale(!0,c)};l?u.apply(s[0]):a.on("load",u).attr("src",a.attr("src"))}})},t.fn.imageScale.defaults={scale:"best-fill",align:"center",parent:null,hideParentOverflow:!0,fadeInDuration:0,rescaleOnResize:!1,didScale:function(t,e){},logLevel:0};var e=function(e,n){var o=this;o.options=n,o.element=e;var s=o.$element=t(e),r=o.$img="IMG"===e.tagName?s:s.find("img"),a=o.img=r[0];o.src=r.attr("src"),o.imgWidth=a.naturalWidth||a.width,o.imgHeight=a.naturalHeight||a.height;var l=o.$parent=n.parent?n.parent:t(s.parent()[0]);o.parent=l[0],"static"===l.css("position")&&l.css("position","relative"),n.rescaleOnResize&&t(window).resize(function(t){o.scheduleScale()})};t.fn.imageScale.Constructor=e,e.prototype={NONE:"none",FILL:"fill",BEST_FILL:"best-fill",BEST_FIT:"best-fit",BEST_FIT_DOWN_ONLY:"best-fit-down",ALIGN_LEFT:"left",ALIGN_RIGHT:"right",ALIGN_CENTER:"center",ALIGN_TOP:"top",ALIGN_BOTTOM:"bottom",ALIGN_TOP_LEFT:"top-left",ALIGN_TOP_RIGHT:"top-right",ALIGN_BOTTOM_LEFT:"bottom-left",ALIGN_BOTTOM_RIGHT:"bottom-right",constructor:e,element:null,options:null,scale:function(t,e){if(!this._isDestroyed&&!1!==this._canScale){var n=this,o=this.options,s=this.$parent,r=this.element,a=this.$element,l=(this.img,this.$img);if(t)o.hideParentOverflow&&s.css({overflow:"hidden"});else if(this.src!==l.attr("src")){this.destroy(),a.data("imageScale",null),a.imageScale(o);return}if(this._didScheduleScale=!1,!o.rescaleOnResize||e||this._needUpdate(this.parent)){var c=(e=e||{}).transition;c&&(this._canScale=!1,a.css("transition","all "+c+"ms"),setTimeout(function(){n._canScale=null,a.css("transition","null")},c));var u=e.destWidth?e.destWidth:s.outerWidth(),h=e.destHeight?e.destHeight:s.outerHeight(),d=e.destWidth?e.destWidth:s.innerWidth(),p=e.destHeight?e.destHeight:s.innerHeight(),f=u-d,m=h-p,g=a.attr("data-scale"),v=a.attr("data-align"),y=g||o.scale,_=v||o.align,b=o.fadeInDuration;if(!y){o.logLevel>2&&console.log("imageScale - DEBUG NOTICE: The scale property is null.",r);return}this._cacheDestWidth===u&&this._cacheDestHeight===h&&o.logLevel>2&&console.log("imageScale - DEBUG NOTICE: The parent size hasn't changed: dest width: '"+u+"' - dest height: '"+h+"'.",r);var w=this.imgWidth,x=this.imgHeight;if(!(u&&h&&w&&x)){o.logLevel>
130&&console.error("imageScale - DEBUG ERROR: The dimensions are incorrect: source width: '"+w+"' - source height: '"+x+"' - dest width: '"+u+"' - dest height: '"+h+"'.",r);return}this._cacheDestWidth=u,this._cacheDestHeight=h;var T=this._innerFrameForSize(y,_,w,x,u,h);f&&(T.x-=f/2),m&&(T.y-=m/2),a.css({position:"absolute",top:T.y+"px",left:T.x+"px",width:T.width+"px",height:T.height+"px","max-width":"none"}),t&&b&&(a.css({display:"none"}),a.fadeIn(b)),o.didScale.call(this,t,e)}}},destroy:function(){this._isDestroyed=!0,this.$element.removeData("imageScale")},_innerFrameForSize:function(t,e,n,o,s,r){var a,l,c;if(c={x:0,y:0,width:s,height:r},t===this.FILL)return c;switch(a=s/n,l=r/o,t){case this.BEST_FIT_DOWN_ONLY:t!==this.BEST_FIT_DOWN_ONLY&&this.options.logLevel>1&&console.warn("imageScale - DEBUG WARNING: The scale '"+t+"' was not understood."),t=n>s||o>r?a<l?a:l:1;break;case this.BEST_FIT:t=a<l?a:l;break;case this.NONE:t=1;break;default:t=a>l?a:l}switch(n*=t,o*=t,c.width=Math.round(n),c.height=Math.round(o),e){case this.ALIGN_LEFT:c.x=0,c.y=r/2-o/2;break;case this.ALIGN_RIGHT:c.x=s-n,c.y=r/2-o/2;break;case this.ALIGN_TOP:c.x=s/2-n/2,c.y=0;break;case this.ALIGN_BOTTOM:c.x=s/2-n/2,c.y=r-o;break;case this.ALIGN_TOP_LEFT:c.x=0,c.y=0;break;case this.ALIGN_TOP_RIGHT:c.x=s-n,c.y=0;break;case this.ALIGN_BOTTOM_LEFT:c.x=0,c.y=r-o;break;case this.ALIGN_BOTTOM_RIGHT:c.x=s-n,c.y=r-o;break;default:e!==this.ALIGN_CENTER&&this.options.logLevel>1&&console.warn("imageScale - DEBUG WARNING: The align '"+e+"' was not understood."),c.x=s/2-n/2,c.y=r/2-o/2}return c},_needUpdate:function(t){var e=t.clientHeight+" "+t.clientWidth;return this._lastParentSize!==e&&(this._lastParentSize=e,!0)},scheduleScale:function(){if(!this._didScheduleScale){if(window.requestAnimationFrame){var t=this;this._didScheduleScale=!0,requestAnimationFrame(function(){setTimeout(function(){t.scale()},0)})}else this.scale()}}}}),function(t){"use strict";var e=function(e,n){var o=this;return this.$element=t(e),this.options=this.parseTrueFalseOptions(n),this.options.muted=!1,this.auto=this.options.auto,this.options.auto=!1,1==this.options.numSlides&&(this.auto=!1,this.options.infiniteLoop=!1),1==o.options.autoHover&&(o.options.autoHoverModified=!0),t.extend(this.options,{onSlideAfter:function(){o.options.auto&&(o.$element.stopAuto(),o.$element.startAuto())},onSliderLoad:function(){o.$element.css("visibility","visible"),o.$wrapper=o.$element.closest(".bx-wrapper"),o.$viewport=o.$wrapper.find(".bx-viewport"),""==o.options.easing&&(o.options.easing=null),o.options.controlsHover&&(t(".bx-controls-direction",o.$wrapper).hide(),o.$wrapper.hover(function(){t(".bx-controls-direction",t(this)).fadeIn(300)},function(){t(".bx-controls-direction",t(this)).fadeOut(300)})),o.options.autoHoverModified&&o.$wrapper.hover(function(){o.$element.stopAuto()},function(){o.$element.startAuto()}),null!=o.options.easing&&(o.options.useCSS=!1),o.auto&&(o.options.auto=!0,o.$element.startAuto(),o.makePauseTestimonialsSlideshowButton()),o.$element.closest(".bx-wrapper").find(".bx-controls").wrapAll("<div class='wrap__bx-controls' />"),o.$element.closest(".bx-wrapper").find(".wrap_pause-play, .wrap_on-off, .bx-pager ").wrapAll("<div class='bx-controls-buttons' />")}}),this.attachEvents(),this.initializeSlider(),this.maxHeightListItem(this.$element),this};e.prototype.attachEvents=function(){var e,n=this;t(".js-testimonials-layout-settings").on("click",".testimonials-pause-slideshow",function(e,o){t(this).hide(),n.$element.stopAuto(),n.options.auto=!1,t(".js-testimonials-layout-settings .testimonials-play-slideshow").fadeIn("slow",function(){void 0!==o&&t(this).focus()})}),t(".js-testimonials-layout-settings").on("click",".testimonials-play-slideshow",function(e,o){t(this).hide(),n.$element.startAuto(),n.options.auto=!0,t(".js-testimonials-layout-settings .testimonials-pause-slideshow").fadeIn("slow",function(){void 0!==o&&t(this).focus()})}),t("body").keypress(function(e){13==e.which&&(t(".js-testimonials-layout-settings").find(".play-slideshow").is(":focus")&&t(".js-testimonials-layout-settings").find(".play-slideshow").trigger("click",{kb:!0}
13),t(".js-testimonials-layout-settings").find(".pause-slideshow").is(":focus")&&t(".js-testimonials-layout-settings").find(".pause-slideshow").trigger("click",{kb:!0}))}),t(".testimonials-slider").off("click").on("click",".expand",function(e){var o=t(this).closest(".testimonials-slider");o.closest(".bx-viewport").height(n.maxHeightListItem(o))}),t(window).resize(function(){clearTimeout(e),e=setTimeout(function(){n.maxHeightListItem(n.$element)},250)})},e.prototype.maxHeightListItem=function(e){var n,o=this.$element,s=0;o.each(function(){n=t(this).find(".testimonials-item")}),n.closest("li").height("auto"),"fade"==this.options.mode?n.each(function(){var e,n=t(this).closest("li");"none"==n.css("display")?(n.css({display:"block"}),e=t(this).outerHeight(!0),n.css({display:"none"})):e=t(this).outerHeight(!0),e>s&&(s=e)}):s=this.maxHeight(n),s+=this.getElemOuterDistance(o.find(".testimonials-items-wrap")).heightDistance,n.closest("li").height(s),this.drawSlider();var r=o.find("li.items-container:not(.bx-clone)").width(),a=o.find("li.items-container:not(.bx-clone)").height(),l=o.find("li.bx-clone");if(l.width(r),l.height(a),l.length>0)switch(this.options.mode){case"horizontal":"0px"==o.css("left")&&o.css({left:-r+"px"});break;case"vertical":"0px"==o.css("top")&&o.css({top:-a+"px"})}return s},e.prototype.parseTrueFalseOptions=function(t,n){for(var o in t)t.hasOwnProperty(o)&&-1!=e.BOOLEANS.indexOf(o)&&(t[o]=!!t[o]);return t},e.prototype.initializeSlider=function(){this.$bxSlider=this.$element.bxSlider(this.options)},e.prototype.drawSlider=function(){this.$bxSlider.redrawSlider()},e.prototype.destSlider=function(){this.$bxSlider.length&&(this.$bxSlider.destroySlider(),t(".js-testimonials-layout-settings .wrap__bx-controls").remove())},e.prototype.maxHeight=function(e){var n=0;return e.each(function(){n<t(this).outerHeight(!0)&&(n=t(this).outerHeight(!0))}),n},e.prototype.getElemOuterDistance=function(t){return{heightDistance:t.outerHeight(!0)-t.height(),widthDistance:t.outerWidth(!0)-t.width()}},e.prototype.makePauseTestimonialsSlideshowButton=function(){t(".js-testimonials-layout-settings").find(".bx-wrapper .bx-controls").append('<div class="wrap_pause-play"><div class="pause-slideshow testimonials-pause-slideshow" aria-label="icon pause" title="Pause slideshow" tabindex="0"><span class="icon icon-pause"></span></div><div class="play-slideshow testimonials-play-slideshow" aria-label="icon play" style="display: none" title="Play slideshow" tabindex="0"><span class="icon icon-play"></span></div></div>')},e.DEFAULTS={pager:!0,controls:!0,autoControls:!1,autoHoverModified:!1,autoHover:!1,auto:!0,infiniteLoop:!0,randomStart:!1,controlsHover:!1,responsive:!1,mode:"horizontal",speed:500,pause:4e3,autoDelay:0,easing:null,useCSS:!1,autoPlayVideo:!0},e.BOOLEANS=["pager","controls","autoControls","auto","infiniteLoop","randomStart","controlsHover","responsive","autoHoverModified"];var n=t.fn.testimonialSlideshow;t.fn.testimonialSlideshow=function(n){arguments;var o=t(this),s=t.extend({},e.DEFAULTS,o.data(),"object"==typeof n&&n);return new e(this,s)},t.fn.testimonialSlideshow.Constructor=e,t.fn.testimonialSlideshow.noConflict=function(){t.fn.testimonialSlideshow=n}}(window.jQuery),function(t){"use strict";var e=function(e,n){var o=this;return o.$element=t(e),o.options=n,"fade"===o.options.animation&&1==o.options.smoothHeight&&o.$element.css({overflow:"hidden"}),1==o.options.randomOrder&&(o.options.randomize=!0),t.extend(o.options,{start:function(e){"vertical"===o.options.direction&&(o.fixVerticalSlideHeight(),t(e).resize(),o.fixVerticalSlideSmoothHeight(e))},after:function(t){o.fixVerticalSlideSmoothHeight(t)}}),o.initializeSlider(),o.attachEvents(),o};e.prototype.attachEvents=function(){var e=this,n=t(window),o=e.$element;"vertical"===e.options.direction&&n.resize(e.fixVerticalSlideHeight()),o.off("click").on("click",".expand",function(){"slide"==e.options.animation?("vertical"===e.options.direction&&e.fixSlideExpand(o),o.resize()):e.fixFadeExpand(o)})},e.prototype.initializeSlider=function(){var t=this;t.$bxSlider=t.$element.flexslider(t.options),"vertical"===t.options.direction&&t.fixVerticalSlideHeight()},e.prototype.fixVerticalSlideHeight=function(){var e=0,n=this.$element.find(".slides");n.children().height("auto").each(function(){e=Math.max(e,t(this).outerHeight(!0))}).height(e),n.height(e)},e.prototype.fixVerticalSlideSmoothHeight=function(e){if("vertical"===this.options.direction&&1==this.options.smoothHeight){var n=t(e).find(".flex-active-slide > div").outerHeight(!0);t(e).find(".flex-viewport").height(n)}},e.prototype.fixSlideExpand=function(t){1!=this.options.smoothHeight&&t.find(".flex-viewport").css({transition:"none"}),this.fixVerticalSlideHeight(t)},e.prototype.fixFadeExpand=function(t){var e=t.find(".slides"),n=t.height();t.css({transition:"all 1s ease","max-height":n}),t.resize();var o=e.height();t.css({"max-height":o})},e.DEFAULTS={adaptiveHeight:!0,easing:null,useCSS:!1,randomize:!1};var n=t.fn.TestimonialsFlexSlide;t.fn.TestimonialsFlexSlide=function(n){arguments;var o=t(this),s=t.extend({},e.DEFAULTS,o.data(),"object"==typeof n&&n);return new e(this,s)},t.fn.TestimonialsFlexSlide.Constructor=e,t.fn.TestimonialsFlexSlide.noConflict=function(){t.fn.TestimonialsFlexSlide=n},t(window).load(function(){var e=t(".flexslider-d, .testimonials .flexslider");e.length&&e.each(function(){t(this).TestimonialsFlexSlide()})})}(window.jQuery),function(t){"use strict";var e=function(t,e){this.$el=t,this.$gridContainer=this.$el.find(".testimonials-grid"),this.$sliderContainer=this.$el.find(".testimonials-slider"),this.options=e,this.prevDevice=null,this.$items=this.$el.find(".testimonials-item").
13clone(),this.processDeviceColumns(),this.attachEvents()};e.prototype.attachEvents=function(){var e=this,n=e.getDevice();if(t(window).resize(function(){var t=e.getDevice();n!=t&&(e.processDeviceColumns(),e.readMoreExpand(),n=t)}),e.options.readMore&&e.readMoreExpand(),-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>0){var o=document.createEvent("UIEvents");o.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(o)}else window.dispatchEvent(new Event("resize"))},e.prototype.readMoreExpand=function(){var e=this;e.$el.find(".testimonials__content").each(function(){e.breakHtmlContent(t(this))}),e.options.readMore&&"lightbox"==e.options.action&&this.$el.find(".lightbox").fancybox({titlePosition:"inside",transitionIn:"none",transitionOut:"none"}),e.options.readMore&&"expand"==e.options.action&&this.$el.off("click").on("click",".expand",function(){var e=t(this).attr("id"),n=e.replace("href_","span_"),o=e.replace("href_","fs_"),s=t("."+n),r=t("."+o),a=t("."+n).closest(".bx-clone").find("#"+e);s.hasClass("hidden")?(t(this).add(a).html("Show Less").removeClass("closed").addClass("opened"),s.removeClass("hidden"),r.hide()):(t(this).add(a).html("Show More").removeClass("opened").addClass("closed"),s.addClass("hidden"),r.show())})},e.prototype.breakHtmlContent=function(e){var n=e;if(!(n.find("iframe").length>0)){for(var o,s,r=n.html().trim().replace(/ /gi," "),a=/<(?:.|\n)*?>/gm,l=r.match(a),c=this.options.readMoreLimit,u=0,h='<span class="quotemark">"</span>',d=[],p=[],f=[];s=a.exec(r);)d.push(s.index);if(!t.isEmptyObject(l)){for(var m=0;m<l.length;m++)p.push(d[m]+l[m].length);for(var m=0;m<l.length;m++)f.push(l[m],r.substring(p[m],d[m+1]))}if(this.options.readMore){for(var m=0;m<f.length;m++)if(null==f[m].match(a)){var g=f[m].length;if(u+g>=c){var v=c-u;f[m]=f[m].substring(0,v)+"<span><!--breakPoint--></span>"+f[m].substring(v,g);break}u+=g}}for(var m=0;m<f.length;m++)if(null==f[m].match(a)&&f[m].length>0||-1!==f[m].indexOf("<!--breakPoint-->")||-1!==f[m].indexOf('class="quotemark"')){f[m]=h+f[m];break}for(var m=f.length-1;m>0;m--)if(null==f[m].match(a)&&f[m].length>0&&"..."!=f[m]||-1!==f[m].indexOf("<!--breakPoint-->")||-1!==f[m].indexOf('class="quotemark"')){f[m]=f[m]+h;break}o=f.join(""),n[0].innerHTML=o;var y=document.createNodeIterator(n[0],NodeFilter.SHOW_COMMENT,null,!0).nextNode();if(null!=y)for(var _=y.parentNode;n[0]!=_;_=w){for(var b=_.cloneNode(!1);y.nextSibling;)b.appendChild(y.nextSibling);var w=_.parentNode;w.insertBefore(b,_.nextSibling),w.insertBefore(y,b)}var x,T=n.find('[class^="span_testimonial"]');this.options.readMore&&(n.contents().each(function(e){"#comment"==t(this).get(0).nodeName&&(x=e,t(this).remove())}),n.contents().each(function(e,n){e>=x&&!1==t(n).is('[class^="fs_testimonial"]')&&!1==t(n).hasClass("quotemark")&&!1==t(n).is('[class^="span_testimonial"]')&&T.append(n)}))}},e.prototype.processDeviceColumns=function(){"grid_1"==this.options.layoutType||"grid_2"==this.options.layoutType||"grid_3"==this.options.layoutType?this.doGrid():("slider_1"==this.options.layoutType||"slider_2"==this.options.layoutType||"slider_3"==this.options.layoutType)&&this.doSlideshow()},e.prototype.doGrid=function(){var e=this.getDevice(),n=this.options[e+"Columns"];if(this.prevDevice&&this.options[this.prevDevice+"Columns"],this.prevDevice!=e&&n!=this.prevDeviceColumns){this.prevDevice=e,this.resetGridHTML(),this.$items.each(function(){t(this).removeClass(function(t,e){return(e.match(/\btestimonials-grid--columns\S+/g)||[]).join(" ")})}),this.$items.each(function(){t(this).addClass("testimonials-grid--columns-"+n)}),this.$gridContainer.removeClass("initialBlockHide");for(var o=Math.ceil(this.$items.length/n),s=1;s<=o;s++){var r=t('<div class="testimonials-row"></div>');this.$gridContainer.append(r);for(var a=(s-1)*n;a<s*n;a++)void 0!==this.$items[a]&&r.append(t(this.$items[a]).clone())}}},e.prototype.doSlideshow=function(){var e=this.getDevice(),n=this.options[e+"Columns"];if(this.prevDevice&&this.options[this.prevDevice+"Columns"],"horizontal"!=this.options.mode||this.prevDevice!=e&&n!=this.prevDeviceColumns){this.prevDevice=e,void 0!=this.Slider&&(t(this.$el.find(".testimonials-slider > li")).each(function(){t(this).hasClass("bx-clone")&&t(this).remove()}),this.Slider.destSlider()),this.resetSlideshowHTML(),this.$items.each(function(){t(this).removeClass(function(t,e){return(e.match(/\btestimonials-grid--columns\S+/g)||[]).join(" ")})}),this.$items.each(function(){t(this).addClass("testimonials-grid--columns-"+n)}),this.$sliderContainer.removeClass("initialBlockHide");for(var o=Math.ceil(this.$items.length/n),s=1;s<=o;s++){var r=t('<li class="items-container"></li>'),a=t('<div class="testimonials-items-wrap"></div>');this.$sliderContainer.append(r),r.append(a);for(var l=(s-1)*n;l<s*n;l++)void 0!==this.$items[l]&&(t(this.$items[l]),a.append(t(this.$items[l]).clone()))}window.testimonialSlider=this.Slider=this.$sliderContainer.testimonialSlideshow({numSlides:o})}},e.prototype.resetGridHTML=function(){this.$gridContainer.html("")},e.prototype.resetSlideshowHTML=function(){this.$sliderContainer.html("")},e.prototype.getDevice=function(){var t=window.innerWidth;return t<768?"mobile":t<1025?"tablet":"desktop"};var n=t.fn.TestimonialsComposer;t.fn.testimonialsComposer=function(n){var o;return arguments,this.each(function(){var s=t(this),r=t.extend({},s.data(),"object"==typeof n&&n);if(s.data("TestimonialsComposer",new e(s,r)),void 0!==o)return!1}),o||this},t.fn.testimonialsComposer.Constructor=e,t.fn.testimonialsComposer.noConflict=function(){return t.fn.testimonialsComposer=n,this}
13,t(window).on("load",function(){t('[data-control="testimonials-composer"]').testimonialsComposer()})}(window.jQuery),$(window).load(function(){var t=$(".testimonials-grid-a .testimonial-grid");t.length&&(t.masonry({itemSelector:".testimonial-grid__item",gutter:30,transitionDuration:"0.2s"}),t.off("click").on("click",".expand",function(){t.masonry()}))}),function(t){"use strict";var e,n,o,s,r,a,l,c=!0,u="",h=0,d="",p=null,f="",m=!1,g={resize:1,click:1},v=!0,y=1,_="bodyOffset",b=_,w=!0,x="",T={},k=32,C=null,j=!1,S="[iFrameSizer]",P=S.length,E="",O={max:1,min:1,bodyScroll:1,documentElementScroll:1},M="child",A=!0,I=t.parent,z="*",N=0,D=!1,B=null,R=16,F=1,H="scroll",W=H,Z=t,U=function(){tt("MessageCallback function not defined")},V=function(){},q=function(){};function G(e,n,o){"addEventListener"in t?e.addEventListener(n,o,!1):"attachEvent"in t&&e.attachEvent("on"+n,o)}function Q(e,n,o){"removeEventListener"in t?e.removeEventListener(n,o,!1):"detachEvent"in t&&e.detachEvent("on"+n,o)}function Y(t){return t.charAt(0).toUpperCase()+t.slice(1)}var K=Date.now||function(){return new Date().getTime()};function X(t){return S+"["+E+"] "+t}function J(e){j&&"object"==typeof t.console&&console.log(X(e))}function tt(e){"object"==typeof t.console&&console.warn(X(e))}function te(t,e){void 0!==e&&""!==e&&"null"!==e&&(document.body.style[t]=e,J("Body "+t+' set to "'+e+'"'))}function ti(e){function n(){ty(e.eventName,e.eventType)}var o={add:function(e){G(t,e,n)},remove:function(e){Q(t,e,n)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(o[e.method])):o[e.method](e.eventName),J(Y(e.method)+" event listener: "+e.eventType)}function tn(t){ti({method:t,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),ti({method:t,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),ti({method:t,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),ti({method:t,eventType:"Input",eventName:"input"}),ti({method:t,eventType:"Mouse Up",eventName:"mouseup"}),ti({method:t,eventType:"Mouse Down",eventName:"mousedown"}),ti({method:t,eventType:"Orientation Change",eventName:"orientationchange"}),ti({method:t,eventType:"Print",eventName:["afterprint","beforeprint"]}),ti({method:t,eventType:"Ready State Change",eventName:"readystatechange"}),ti({method:t,eventType:"Touch Start",eventName:"touchstart"}),ti({method:t,eventType:"Touch End",eventName:"touchend"}),ti({method:t,eventType:"Touch Cancel",eventName:"touchcancel"}),ti({method:t,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),ti({method:t,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),ti({method:t,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===M&&ti({method:t,eventType:"IFrame Resized",eventName:"resize"})}function to(t,e,n,o){return e!==t&&(t in n||(tt(t+" is not a valid option for "+o+"CalculationMethod."),t=e),J(o+' calculation method set to "'+t+'"')),t}function ts(){b=to(b,_,tm,"height")}function tr(){W=to(W,H,tg,"width")}function ta(){var e;!0===c?(tn("add"),e=0>k,t.MutationObserver||t.WebKitMutationObserver?e?tc():p=function(){function e(t){function e(t){!1===t.complete&&(J("Attach listeners to "+t.src),t.addEventListener("load",s,!1),t.addEventListener("error",r,!1),l.push(t))}"attributes"===t.type&&"src"===t.attributeName?e(t.target):"childList"===t.type&&Array.prototype.forEach.call(t.target.querySelectorAll("img"),e)}function n(t){J("Remove listeners from "+t.src),t.removeEventListener("load",s,!1),t.removeEventListener("error",r,!1),l.splice(l.indexOf(t),1)}function o(t,e,o){n(t.target),ty(e,o+": "+t.target.src,void 0,void 0)}function s(t){o(t,"imageLoad","Image loaded")}function r(t){o(t,"imageLoadFailed","Image load failed")}var a,l=[],c=t.MutationObserver||t.WebKitMutationObserver,u=(a=document.querySelector("body"),u=new c(function(t){ty("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}),J("Create body MutationObserver"),u.observe(a,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),u);return{disconnect:function(){"disconnect"in u&&(J("Disconnect body MutationObserver"),u.disconnect(),l.forEach(n))}}}():(J("MutationObserver not supported in this browser!"),tc())):J("Auto Re
13size disabled")}function tl(){tn("remove"),null!==p&&p.disconnect(),clearInterval(C)}function tc(){0!==k&&(J("setInterval: "+k+"ms"),C=setInterval(function(){ty("interval","setInterval: "+k)},Math.abs(k)))}function tu(t,e){var n=0;return e=e||document.body,parseInt(n="defaultView"in document&&"getComputedStyle"in document.defaultView?null!==(n=document.defaultView.getComputedStyle(e,null))?n[t]:0:function(t){if(/^\d+(px)?$/i.test(t))return parseInt(t,10);var n=e.style.left,o=e.runtimeStyle.left;return e.runtimeStyle.left=e.currentStyle.left,e.style.left=t||0,t=e.style.pixelLeft,e.style.left=n,e.runtimeStyle.left=o,t}(e.currentStyle[t]),10)}function th(t,e){for(var n,o=e.length,s=0,r=0,a=Y(t),l=K(),c=0;c<o;c++)(s=e[c].getBoundingClientRect()[t]+tu("margin"+a,e[c]))>r&&(r=s);return l=K()-l,J("Parsed "+o+" HTML elements"),J("Element position calculated in "+l+"ms"),(n=l)>R/2&&J("Event throttle increased to "+(R=2*n)+"ms"),r}function td(t){return[t.bodyOffset(),t.bodyScroll(),t.documentElementOffset(),t.documentElementScroll()]}function tp(t,e){var n=document.querySelectorAll("["+e+"]");return 0===n.length?(tt("No tagged elements ("+e+") found on page"),y):th(t,n)}function tf(){return document.querySelectorAll("body *")}var tm={bodyOffset:function(){return document.body.offsetHeight+tu("marginTop")+tu("marginBottom")},offset:function(){return tm.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,td(tm))},min:function(){return Math.min.apply(null,td(tm))},grow:function(){return tm.max()},lowestElement:function(){return Math.max(tm.bodyOffset(),th("bottom",tf()))},taggedElement:function(){return tp("bottom","data-iframe-height")}},tg={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(tg.bodyScroll(),tg.documentElementScroll())},max:function(){return Math.max.apply(null,td(tg))},min:function(){return Math.min.apply(null,td(tg))},rightMostElement:function(){return th("right",tf())},taggedElement:function(){return tp("right","data-iframe-width")}},tv=(e=function(t,e,n,o){var s,r;(function(){function t(t,e){return!(Math.abs(t-e)<=N)}return s=void 0!==n?n:tm[b](),r=void 0!==o?o:tg[W](),t(y,s)||m&&t(F,r)})()||"init"===t?(t_(),tx(y=s,F=r,t)):!(t in{init:1,interval:1,size:1})&&(b in O||m&&W in O)?tw(e):t in{interval:1}||J("No change in size detected")},r=null,a=0,l=function(){a=K(),r=null,s=e.apply(n,o),r||(n=o=null)},function(){var t=K();a||(a=t);var c=R-(t-a);return n=this,o=arguments,c<=0||c>R?(r&&(clearTimeout(r),r=null),a=t,s=e.apply(n,o),r||(n=o=null)):r||(r=setTimeout(l,c)),s});function ty(t,e,n,o){D&&t in g?J("Trigger event cancelled: "+t):(t in{reset:1,resetPage:1,init:1}||J("Trigger event: "+e),tv(t,e,n,o))}function t_(){D||(D=!0,J("Trigger event lock on")),clearTimeout(B),B=setTimeout(function(){D=!1,J("Trigger event lock off"),J("--")},128)}function tb(t){y=tm[b](),F=tg[W](),tx(y,F,t)}function tw(t){var e=b;b=_,J("Reset trigger event: "+t),t_(),tb("reset"),b=e}function tx(t,e,n,o,s){if(!0===A){var r;void 0===s?s=z:J("Message targetOrigin: "+s),J("Sending message to host page ("+(r=E+":"+t+":"+e+":"+n+(void 0!==o?":"+o:""))+")"),I.postMessage(S+r,s)}}G(t,"message",function e(n){var o,s;function r(){return n.data.split("]")[1].split(":")[0]}function a(){return n.data.substr(n.data.indexOf(":")+1)}function l(){return n.data.split(":")[2]in{true:1,false:1}}S===(""+n.data).substr(0,P)&&(!1===v?function(){var e,o,s;switch(r()){case"reset":w?J("Page reset ignored by init"):(J("Page size reset by host page"),tb("resetPage"));break;case"resize":ty("resizeParent","Parent window requested size check");break;case"moveToAnchor":e=a(),T.findTarget(e);break;case"message":J("MessageCallback called from parent: "+(o=a())),U(JSON.parse(o)),J(" --");break;case"pageInfo":J("PageInfoFromParent called from parent: "+(s=a())
13),q(JSON.parse(s)),J(" --");break;default:"iFrameResize"in t||l()||tt("Unexpected message ("+n.data+")")}}():l()?(x=n.data,I=n.source,function(){function t(t){return"true"===t}var e=x.substr(P).split(":");E=e[0],h=void 0!==e[1]?Number(e[1]):h,m=void 0!==e[2]?t(e[2]):m,j=void 0!==e[3]?t(e[3]):j,k=void 0!==e[4]?Number(e[4]):k,c=void 0!==e[6]?t(e[6]):c,d=e[7],b=void 0!==e[8]?e[8]:b,u=e[9],f=e[10],N=void 0!==e[11]?Number(e[11]):N,T.enable=void 0!==e[12]&&t(e[12]),M=void 0!==e[13]?e[13]:M,W=void 0!==e[14]?e[14]:W}(),J("Initialising iFrame ("+location.href+")"),function(){if("iFrameResizer"in t&&Object===t.iFrameResizer.constructor){var e;J("Reading data from page: "+JSON.stringify(e=t.iFrameResizer)),U="messageCallback"in e?e.messageCallback:U,V="readyCallback"in e?e.readyCallback:V,z="targetOrigin"in e?e.targetOrigin:z,b="heightCalculationMethod"in e?e.heightCalculationMethod:b,W="widthCalculationMethod"in e?e.widthCalculationMethod:W}J("TargetOrigin for parent set to: "+z)}(),void 0===d&&(d=h+"px"),te("margin",(-1!==(o=d).indexOf("-")&&(tt("Negative CSS value ignored for margin"),o=""),o)),te("background",u),te("padding",f),(s=document.createElement("div")).style.clear="both",s.style.display="block",document.body.appendChild(s),ts(),tr(),document.documentElement.style.height="",document.body.style.height="",J('HTML & body height set to "auto"'),J("Enable public methods"),Z.parentIFrame={autoResize:function(t){return!0===t&&!1===c?(c=!0,ta()):!1===t&&!0===c&&(c=!1,tl()),c},close:function(){tx(0,0,"close"),J("Disable outgoing messages"),A=!1,J("Remove event listener: Message"),Q(t,"message",e),!0===c&&tl()},getId:function(){return E},getPageInfo:function(t){"function"==typeof t?(q=t,tx(0,0,"pageInfo")):(q=function(){},tx(0,0,"pageInfoStop"))},moveToAnchor:function(t){T.findTarget(t)},reset:function(){tw("parentIFrame.reset")},scrollTo:function(t,e){tx(e,t,"scrollTo")},scrollToOffset:function(t,e){tx(e,t,"scrollToOffset")},sendMessage:function(t,e){tx(0,0,"message",JSON.stringify(t),e)},setHeightCalculationMethod:function(t){b=t,ts()},setWidthCalculationMethod:function(t){W=t,tr()},setTargetOrigin:function(t){J("Set targetOrigin: "+t),z=t},size:function(t,e){ty("size","parentIFrame.size("+(t||"")+(e?","+e:"")+")",t,e)}},ta(),T=function(){function e(e){var n,o,s,r=e.split("#")[1]||e,a=decodeURIComponent(r),l=document.getElementById(a)||document.getElementsByName(a)[0];void 0!==l?(n=l.getBoundingClientRect(),o={x:void 0!==t.pageXOffset?t.pageXOffset:document.documentElement.scrollLeft,y:void 0!==t.pageYOffset?t.pageYOffset:document.documentElement.scrollTop},J("Moving to in page link (#"+r+") at x: "+(s={x:parseInt(n.left,10)+parseInt(o.x,10),y:parseInt(n.top,10)+parseInt(o.y,10)}).x+" y: "+s.y),tx(s.y,s.x,"scrollToOffset")):(J("In page link (#"+r+") not found in iFrame, so sending to parent"),tx(0,0,"inPageLink","#"+r))}function n(){""!==location.hash&&"#"!==location.hash&&e(location.href)}return T.enable?Array.prototype.forEach&&document.querySelectorAll?(J("Setting up location.hash handlers"),Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),function(t){"#"!==t.getAttribute("href")&&G(t,"click",function(t){t.preventDefault(),e(this.getAttribute("href"))})}),G(t,"hashchange",n),setTimeout(n,128)):tt("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):J("In page linking not enabled"),{findTarget:e}}(),ty("init","Init message from host page"),V(),v=!1,setTimeout(function(){w=!1},128)):J('Ignored message of type "'+r()+'". Received before initialization.'))}),"loading"!==document.readyState&&t.parent.postMessage("[iFrameResizerChild]Ready","*")}(window||{}),$(document).ready(function(){window.menuHolder=$(".navigation").not(".mm-menu"),window.menuHolderMaxWidth=100,window.menu=$(".more_nav").not(".mm-listview"),window.currentMenu=menu,window.currentMenuWidth=window.menuHolder.outerWidth(),window.menuChildrenCount=currentMenu.children().length,window.origMenuContent="",window.moreButton=$('<li class="navigation__item has-child more"> <a href="#">More</a> <ul class="navigation__list--sub"></ul> </li>'),window.allMenus=[]}),function(t){var e=!1;if("function"==typeof define&&define.amd&&(define(t),e=!0),"object"==typeof exports&&(module.exports=t(),e=!0),!e){var n=window.Cookies,o=window.Cookies=t();o.noConflict=function(){return window.Cookies=n,o}}}(function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}return function e(n){function o(e,s,r){if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(r=t({path:"/"},o.defaults,r)).expires){var a,l=new Date;l.setMilliseconds(l.getMilliseconds()+864e5*r.expires),r.expires=l}try{a=JSON.stringify(s),/^[\{\[]/.test(a)&&(s=a)}catch(t){}return s=n.write?n.write(s,e):encodeURIComponent(String(s)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decode
13URIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[e,"=",s,r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}e||(a={});for(var c=document.cookie?document.cookie.split("; "):[],u=/(%[0-9A-Z]{2})+/g,h=0;h<c.length;h++){var d=c[h].split("="),p=d.slice(1).join("=");'"'===p.charAt(0)&&(p=p.slice(1,-1));try{var f=d[0].replace(u,decodeURIComponent);if(p=n.read?n.read(p,f):n(p,f)||p.replace(u,decodeURIComponent),this.json)try{p=JSON.parse(p)}catch(t){}if(e===f){a=p;break}e||(a[f]=p)}catch(t){}}return a}}return o.set=o,o.get=function(t){return o.call(o,t)},o.getJSON=function(){return o.apply({json:!0},[].slice.call(arguments))},o.defaults={},o.remove=function(e,n){o(e,"",t(n,{expires:-1}))},o.withConverter=e,o}(function(){})}),$(()=>{"use strict";let t=document.querySelectorAll("#shapePnl a"),e=({currentTarget:t})=>{let e=t.classList.item(0),n=t.parentElement.querySelectorAll(":scope > .selected");for(let t of n)t.classList.remove("selected");t.classList.add("selected");let o=document.querySelectorAll("#facePnl");for(let t of o)t.setAttribute("class",e);let s=document.querySelectorAll(`#infoPnl div.${e}`);for(let t of s)for(let e of t.parentElement.children)e.style.display=e===t?"block":"none"};for(let n of t)n.addEventListener("click",e);let n=document.querySelectorAll('#framePnl span[class*="frm"]'),o=({currentTarget:t})=>{let e=t.getAttribute("class"),n=document.querySelectorAll("#framePnl a.selected");for(let t of n)t.classList.remove("selected");t.parentElement.classList.add("selected");let o=document.querySelectorAll("#lrgFrame");for(let t of o)t.setAttribute("class",e)};for(let t of n)t.addEventListener("click",o);let s=1,r=document.querySelectorAll("ul#frameSets li").length,a=document.querySelectorAll("a.prvSet"),l=t=>{t.stopPropagation(),t.preventDefault();let e=$("ul#frameSets li");if(s>1){e.animate({left:"+=720px"},500),s-=1;return}e.animate({left:`-${(r-1)*720}px`},500),s=r};for(let t of a)t.addEventListener("click",l);let c=document.querySelectorAll("a.nxtSet"),u=t=>{t.stopPropagation(),t.preventDefault();let e=$("ul#frameSets li");if(s<r){e.animate({left:"-=720px"},500),s+=1;return}e.animate({left:"0px"},500),s=1};for(let t of c)t.addEventListener("click",u);let h=document.querySelectorAll("a.lnchFrmSlctr"),d=t=>{t.preventDefault(),t.stopPropagation(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"815",height:"508"})};for(let t of h)t.addEventListener("click",d);let p=document.querySelectorAll("button.lnch3dspine"),f=t=>{t.stopPropagation(),t.preventDefault(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"902",height:"833"})};for(let t of p)t.addEventListener("click",f);let m=document.querySelectorAll("button.lnchpetselector"),g=t=>{t.preventDefault(),t.stopPropagation(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"940",height:"750"})};for(let t of m)t.addEventListener("click",g)});var siteApp=siteApp||{};function disableLinks(t){$(t).each(function(){("#"===$(this).attr("href")||"javascript.void(0)"===$(this).attr("href"))&&$(this).click(function(t){t.preventDefault()})})}jQuery(function(){jQuery(".preview_iframe").height(jQuery(window).height()),siteApp.initNavMmenu(),siteApp.initMoreNav(),$('div[id*="redactor-tool-bar"]').length&&$('div[id*="redactor-tool-bar"]').each(function(){$(this).moveElement({place:"body"})})}),jQuery(window).load(function(){siteApp.contactInfoHeadings(),siteApp.setFormElementsWrapper(),!$(".wrap__slider").hasClass("text-only")&&$(".slider__image").length&&$(".slider__image").css("background-image").length&&!$(".slider__image--fixed").length&&$(".slider__image").each(function(){var t=$(this),e=t.css("background-image").replace(/(url\(|\)|'|")/gi,"");$(this).css("background-image","none"),t.prepend('<div class="slider__image--fixed" style="background-image: url('+e+')">')})}),siteApp.initMoreNav=function(){!function(t){var e=t(".navigation").not(".mm-menu");function n(){window.currentMenuWidth=window.menuHolder.outerWidth(),addMoreButton(),moreNav(),t(".navigation:not(.mm-menu) .navigation__list>li>div>ul").desktopDropNav(),t(".navigation:not(.mm-menu)").slideAccordion({activeClass:"open-close--active",opener:">a span.opener",slider:">div.slide",animSpeed:300}),t(".navigation:not(.mm-menu) .sublevel-1").each(function(){t(this).scrollArea({heightProp:"maxHeight",setScrollTo:"> .navigation__list--sub"})})}1===t(".navigation").not(".mm-menu").data("more-button")&&(window.moreButton=t('
13<li class="navigation__item has-child more"> <a href="#">More</a> <ul class="navigation__list--sub"></ul> </li>')),navigationSublevelWrap(e.find("ul"),"sublevel-"),ResponsiveHelper.addRange({"1024..":{on:function(){1===t(".navigation").not(".mm-menu").data("more-button")&&(menuPrepare(),window.currentMenuWidth=window.menuHolder.outerWidth(),addMoreButton(),moreNav(),t(window).on("resize orientationchange",n)),t(".navigation:not(.mm-menu) .navigation__list>li>div>ul").desktopDropNav(),t(".navigation:not(.mm-menu)").slideAccordion({activeClass:"open-close--active",opener:">a span.opener",slider:">div.slide",animSpeed:300}),t("#mm-navigation_header").data("mmenu").close(),t(".navigation:not(.mm-menu) .sublevel-1").each(function(){t(this).scrollArea({heightProp:"maxHeight",setScrollTo:"> .navigation__list--sub"})})},off:function(){1===t(".navigation").not(".mm-menu").data("more-button")&&t(window).off("resize orientationchange",n),setTimeout(function(){t(".navigation:not(.mm-menu) .sublevel-1").each(function(){void 0!==t(this).data("scrollArea")&&t(this).data("scrollArea").destroy()})},100)}}})}(jQuery)},siteApp.initNavMmenu=function(){var t,e,n,o,s,r;r=(s=(t=jQuery)("#navigation_header").clone()).find(".navigation__list").find("ul"),s.attr("id","mm-"+s.attr("id")),r.each(function(e,n){var o=t(n),s=o.parents(".has-child").length+1;o.addClass("navigation__list--level-"+s),o.wrap("<div></div>"),o.parent().addClass("panel--level-"+s).attr("data-level",s)}),s.mmenu({extensions:["pagedim-black","multiline"],offCanvas:{zposition:"front"},navbar:{},navbars:[{position:"top",content:["prev","title","close"]}],scrollBugFix:{fix:!0}}),o=(e=t("#mm-navigation_header")).data("mmenu"),(n=e.find(".mm-navbar-top")).find(".mm-title"),o.bind("openPanel",function(){var t=e.find(".mm-current").data("level");n.attr("data-current",void 0!==t?t:1)})},siteApp.setFormElementsWrapper=function(){var t;t=jQuery,ResponsiveHelper.addRange({"1025..":{on:function(){t(".form").length&&(t("body").on("SMBLeadsFormReady",function(){t(".wrap__contact .leadForm, .wrap__form.contact .leadForm, .wrap__form.appointment .leadForm").layoutContactForm()}),t(".wrap__contact .leadForm, .wrap__form.contact .leadForm, .wrap__form.appointment .leadForm").layoutContactForm())},off:function(){t(".wrap__contact .leadForm, .wrap__form.contact .leadForm, .wrap__form.appointment .leadForm").each(function(){void 0!==t(this).data("layoutContactForm")&&t(this).data("layoutContactForm").destroy()})}}})},siteApp.contactInfoHeadings=function(){var t,e,n,o;t=jQuery,n=".component__title-caption-wrap",(o=t(e=".wrap__contact-info")).length&&(o.sameHeight({elements:n,useMinHeight:!0,flexible:!0,multiLine:!0}),o.find(".map__display").setSpacing({takeSizeFrom:e+" .map "+n,takeSize:"height",spacingProp:"top"}))},$(document).ready(function(){disableLinks(".wrap__page-content a, .wrap__editable-content a"),$(".form").length&&$("body").on("SMBLeadsFormReady",function(){void 0!==$("body").data("FixedScrollBlock")&&$("body").data("FixedScrollBlock").refresh()}),setTimeout(function(){$("body").removeClass("mm-slideout mm-page")},1e3),$("a.dd-lightbox").fancybox()});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.