(function(){
"use strict";
var requestAnimationFrame=trx_addons_request_animation_frame();
var mouseX=null, mouseY=null,
realX=null, realY=null,
destX=[0,0,0,0,0,0,0,0,0,0],
destY=[0,0,0,0,0,0,0,0,0,0];
var mouse_helper_timeout=0,
mouse_helper_target=null,
mouse_helper_last_target=null,
mouse_helper_action='',
mouse_helper_last_action='',
mouse_helper_callback='',
mouse_helper_axis='xy',
mouse_helper_delay=1,
mouse_helper_smooth=true;
var mouse_helper_original_styles=[ {}, {}, {}, {}, {}, {}, {}, {}, {}, {} ];
var $window=jQuery(window),
$document=jQuery(document),
$body=jQuery('body'),
$mouse_helper=jQuery('.trx_addons_mouse_helper');
if($mouse_helper.eq(0).hasClass('trx_addons_mouse_helper_smooth') ){
mouse_helper_smooth=true;
}
var $mouse_helper_targets,
$mouse_helper_magnets;
$document.on('action.got_ajax_response', update_jquery_links);
$document.on('action.init_hidden_elements', update_jquery_links);
var first_run=true;
function update_jquery_links(e){
if(first_run&&e && e.namespace=='init_hidden_elements'){
first_run=false;
return;
}
$mouse_helper_targets=jQuery('[data-mouse-helper]');
$mouse_helper_magnets=jQuery('[data-mouse-helper-magnet]:not([data-mouse-helper-magnet="0"])');
}
update_jquery_links();
$document.on('action.init_trx_addons', function(){
if(TRX_ADDONS_STORAGE['mouse_helper'] > 0&&$mouse_helper.length > 0&&requestAnimationFrame){
$mouse_helper.each(function(idx){
mouse_helper_original_styles[ idx ]={
blend_mode:	$mouse_helper.eq(idx).css('mix-blend-mode'),
color:		$mouse_helper.eq(idx).css('color'),
bg_color:	$mouse_helper.eq(idx).css('background-color'),
bd_color:	$mouse_helper.eq(idx).css('border-color'),
bd_width:	$mouse_helper.eq(idx).css('border-width'),
bd_style:	$mouse_helper.eq(idx).css('border-style')
};});
mouse_helper_delay=TRX_ADDONS_STORAGE['mouse_helper_delay'];
var pointermove_allowed=false;
$document
.on('mousemove pointermove', function(e){
if(e.originalEvent.type=='pointermove'){
pointermove_allowed=true;
}
if(e.originalEvent.type=='mousemove'&&pointermove_allowed){
return;
}
trx_addons_mouse_helper_get_state(e);
if(mouse_helper_callback&&typeof window[mouse_helper_callback]=='function'){
window[mouse_helper_callback]('mousemove', $mouse_helper, mouse_helper_target, e);
}else if(typeof window['trx_addons_mouse_helper_callback_' + mouse_helper_action]=='function'){
window['trx_addons_mouse_helper_callback_' + mouse_helper_action]('mousemove', $mouse_helper, mouse_helper_target, e);
}
if(mouse_helper_action=='highlight'&&mouse_helper_target){
var targetOffset=mouse_helper_target.offset(),
targetX=targetOffset.left - trx_addons_window_scroll_left(),
targetY=targetOffset.top - trx_addons_window_scroll_top(),
size=parseFloat(mouse_helper_target.css('background-size').split(' ')[0]) / 2;
mouse_helper_target.css('background-position',(mouseX - targetX - size) + 'px ' +(mouseY - targetY - size) + 'px');
}
if(trx_addons_window_width() >=TRX_ADDONS_STORAGE['mobile_breakpoint_mousehelper_off']){
if(mouse_helper_delay < 2){
destX.fill(mouseX);
destY.fill(mouseY);
$mouse_helper.css("transform", "translate(" + destX[0] + "px," + destY[0] + "px)");
}
if(mouseX > trx_addons_window_width() - 100){
if(! $mouse_helper.hasClass('trx_addons_mouse_helper_left') ){
$mouse_helper.addClass('trx_addons_mouse_helper_left');
}}else{
if($mouse_helper.hasClass('trx_addons_mouse_helper_left') ){
$mouse_helper.removeClass('trx_addons_mouse_helper_left');
}}
if(mouseY > trx_addons_window_height() - 100){
if(! $mouse_helper.hasClass('trx_addons_mouse_helper_top') ){
$mouse_helper.addClass('trx_addons_mouse_helper_top');
}}else{
if($mouse_helper.hasClass('trx_addons_mouse_helper_top') ){
$mouse_helper.removeClass('trx_addons_mouse_helper_top');
}}
trx_addons_mouse_helper_check_magnets();
}})
.on("mouseenter", '[data-mouse-helper]', function(e){
e.stopPropagation();
var $self=jQuery(this).addClass('trx_addons_mouse_helper_over');
mouse_helper_target=mouse_helper_last_target=$self;
mouse_helper_action=mouse_helper_last_action=$self.data('mouse-helper');
if(trx_addons_window_width() >=TRX_ADDONS_STORAGE['mobile_breakpoint_mousehelper_off']){
mouse_helper_reset();
if(mouse_helper_timeout){
clearTimeout(mouse_helper_timeout);
mouse_helper_timeout=0;
}}
mouse_helper_callback=$self.data('mouse-helper-callback');
if(mouse_helper_callback===undefined){
mouse_helper_callback='';
}
if(mouse_helper_callback&&typeof window[mouse_helper_callback]=='function'){
window[mouse_helper_callback]('mouseenter', $mouse_helper, $self, e);
}else if(typeof window['trx_addons_mouse_helper_callback_' + mouse_helper_action]=='function'){
window['trx_addons_mouse_helper_callback_' + mouse_helper_action]('mouseenter', $mouse_helper, $self, e);
}
mouse_helper_axis=$self.data('mouse-helper-axis');
if(mouse_helper_axis===undefined){
mouse_helper_axis='xy';
}
mouse_helper_delay=$self.data('mouse-helper-delay');
if(mouse_helper_delay===undefined){
mouse_helper_delay=TRX_ADDONS_STORAGE['mouse_helper_delay'];
}
trx_addons_mouse_helper_get_state(e);
if(trx_addons_window_width() >=TRX_ADDONS_STORAGE['mobile_breakpoint_mousehelper_off']){
var hide=$self.data("mouse-helper-hide-helper")||'';
if(hide){
$mouse_helper.addClass('trx_addons_mouse_helper_hide');
}
var pos=(TRX_ADDONS_STORAGE['mouse_helper_centered'] > 0&&($self.data("mouse-helper-centered")===undefined||$self.data("mouse-helper-centered")==='') )
|| $self.data("mouse-helper-centered") > 0
|| '';
$mouse_helper.toggleClass('trx_addons_mouse_helper_centered', pos > 0);
var mode=$self.data("mouse-helper-mode")||'';
if(mode){
$mouse_helper.css('mix-blend-mode', mode);
}
var color=$self.data("mouse-helper-color")||'';
if(color){
$mouse_helper.css('color', color);
}
var bg_color=$self.data("mouse-helper-bg-color")||'';
if(bg_color){
$mouse_helper.css('background-color', bg_color);
}
var bd_color=$self.data("mouse-helper-bd-color")||'';
if(bd_color){
$mouse_helper.css('border-color', bd_color);
}
var bd_width=$self.data("mouse-helper-bd-width");
if(bd_width===undefined){
bd_width='';
}
if(bd_width!==''&&bd_width >=0){
$mouse_helper.css({
'border-width': bd_width + 'px',
'border-style': bd_width > 0 ? 'solid':'none'
});
}
var img=$self.data("mouse-helper-image")||'';
if(img){
$mouse_helper.eq(0)
.find('.trx_addons_mouse_helper_image').remove();
$mouse_helper.eq(0)
.append('<span class="trx_addons_mouse_helper_image" style="background-image:url(' + img + ');"></span>')
.addClass("trx_addons_mouse_helper_with_image");
}
var icon=$self.data("mouse-helper-icon")||'';
if(icon&&icon!='none'){
var icon_color=$self.data("mouse-helper-icon-color")||'',
icon_size=$self.data("mouse-helper-icon-size")||'';
$mouse_helper.eq(0)
.find('.trx_addons_mouse_helper_icon').remove().end()
.append('<span class="trx_addons_mouse_helper_icon ' + icon + '"'
+ ' style="'
+(icon_color ? 'color: ' + icon_color + ';':'')
+(icon_size ? 'font-size: ' + icon_size + 'em;':'')
+ '"'
+'></span>')
.addClass('trx_addons_mouse_helper_with_icon');
}
var text=$self.data("mouse-helper-text")||'',
text_round=$self.data("mouse-helper-text-round") > 0||false,
text_size=$self.data("mouse-helper-text-size")||'';
if(text){
$mouse_helper.eq(0)
.find('.trx_addons_mouse_helper_text').remove().end()
.append('<span class="trx_addons_mouse_helper_text' +(text_round ? ' trx_addons_mouse_helper_text_round':'') + '"'
+(text_size ? ' style="font-size:' + text_size + 'em;"':'')
+ '>'
+(text_round ? trx_addons_wrap_chars(text, '<span class="trx_addons_mouse_helper_text_round_item">', '</span>'):text)
+ '</span>')
.addClass('trx_addons_mouse_helper_with_text' +(text_round ? ' trx_addons_mouse_helper_with_text_round':'') );
if(text_round){
var rtl=$body.hasClass('rtl');
setTimeout(function(){
var text_wrap=$mouse_helper.eq(0).find('.trx_addons_mouse_helper_text'),
items=text_wrap.find('.trx_addons_mouse_helper_text_round_item');
if(items.length > 0){
var r=Math.ceil(text_wrap.width() / 2),
a=0,
hide=false;
items.each(function(idx){
if(hide){
items.eq(idx).hide();
}else{
if(a >=(rtl ? 310:330) ){
items.eq(idx).html('&hellip;');
hide=true;
}
var x=r + r * Math.sin(a / 180 * Math.PI),
y=r - r * Math.cos(a / 180 * Math.PI),
css={
'transform': 'rotate(' +(rtl ? -a:a) + 'deg)',
'top':  y + 'px'
};
if(rtl){
css.right=x + 'px';
}else{
css.left=x + 'px';
}
items.eq(idx).css(css);
a +=2 * Math.asin(( items.eq(idx).width() +(rtl ? 3:3) ) /(2 * r) ) * 180 / Math.PI;
}});
}}, 350);
}}
var layout=$self.data("mouse-helper-layout")||'';
if(layout){
$mouse_helper.eq(0)
.find('.trx_addons_mouse_helper_layout').remove().end()
.append('<span class="trx_addons_mouse_helper_layout">' + layout + '</span>')
.addClass('trx_addons_mouse_helper_with_layout');
}
var obj_type=$self.data('element_type')||'';
if(obj_type==='widget'){
obj_type=$self.data('widget_type')||'';
}
if(obj_type===''){
if($self.hasClass('slider_container') ){
obj_type='slider';
}}else{
obj_type=obj_type.split('.')[0];
}
if(obj_type!==''){
$mouse_helper.eq(0).addClass('trx_addons_mouse_helper_over_element_' + obj_type);
}
$mouse_helper.addClass("trx_addons_mouse_helper_active trx_addons_mouse_helper_action_" + mouse_helper_action);
}})
.on("mouseleave", '[data-mouse-helper]', function(e){
e.stopPropagation();
if(mouse_helper_callback&&typeof window[mouse_helper_callback]=='function'){
window[mouse_helper_callback]('mouseleave', $mouse_helper, mouse_helper_target, e);
mouse_helper_callback='';
}else if(typeof window['trx_addons_mouse_helper_callback_' + mouse_helper_action]=='function'){
window['trx_addons_mouse_helper_callback_' + mouse_helper_action]('mouseleave', $mouse_helper, mouse_helper_target, e);
}
$mouse_helper.removeClass('trx_addons_mouse_helper_click'
+ ' trx_addons_mouse_helper_action_' + mouse_helper_action
);
if(mouse_helper_target){
mouse_helper_target.removeClass('trx_addons_mouse_helper_over');
}
mouse_helper_target=null;
mouse_helper_action='';
mouse_helper_axis='xy';
mouse_helper_delay=TRX_ADDONS_STORAGE['mouse_helper_delay'];
if(trx_addons_window_width() >=TRX_ADDONS_STORAGE['mobile_breakpoint_mousehelper_off']){
mouse_helper_timeout=setTimeout(function(){
mouse_helper_reset();
}, mouse_helper_smooth ? 10:0);
}
if(e.relatedTarget){
var newTarget=jQuery(e.relatedTarget);
if(! newTarget.data('mouse-helper')){
newTarget=newTarget.parents('[data-mouse-helper]').eq(0);
}
if(newTarget.length > 0&&newTarget.data('mouse-helper')){
setTimeout(function(){
newTarget.trigger('mouseenter');
}, 0);
}}
})
.on("mousedown swiper_touch_start", '[data-mouse-helper]', function(e){
var $self=jQuery(this);
$mouse_helper.addClass('trx_addons_mouse_helper_click');
mouse_helper_callback=$self.data('mouse-helper-callback');
if(mouse_helper_callback===undefined){
mouse_helper_callback='';
}
if(mouse_helper_callback&&typeof window[mouse_helper_callback]=='function'){
window[mouse_helper_callback]('mousedown', $mouse_helper, $self, e);
}else if(typeof window['trx_addons_mouse_helper_callback_' + mouse_helper_action]=='function'){
window['trx_addons_mouse_helper_callback_' + mouse_helper_action]('mousedown', $mouse_helper, $self, e);
}})
.on("mouseup swiper_touch_end", '[data-mouse-helper]', function(e){
var $self=jQuery(this);
$mouse_helper.removeClass('trx_addons_mouse_helper_click');
mouse_helper_callback=$self.data('mouse-helper-callback');
if(mouse_helper_callback===undefined){
mouse_helper_callback='';
}
if(mouse_helper_callback&&typeof window[mouse_helper_callback]=='function'){
window[mouse_helper_callback]('mouseup', $mouse_helper, $self, e);
}else if(typeof window['trx_addons_mouse_helper_callback_' + mouse_helper_action]=='function'){
window['trx_addons_mouse_helper_callback_' + mouse_helper_action]('mouseup', $mouse_helper, $self, e);
}});
var mouse_helper_links=trx_addons_apply_filters(
'trx_addons_filter_mouse_helper_links',
'a,button,input[type="button"],input[type="submit"],input[type="reset"]'
);
$document
.on("mouseenter", mouse_helper_links, function(e){
$mouse_helper.addClass("trx_addons_mouse_helper_over_link");
})
.on("mouseleave", mouse_helper_links, function(e){
$mouse_helper.removeClass("trx_addons_mouse_helper_over_link");
});
var mouse_helper_reset=function(){
$mouse_helper.eq(0).addClass('trx_addons_mouse_helper_reset');
setTimeout(function(){
$mouse_helper.eq(0).removeClass('trx_addons_mouse_helper_reset');
},     $mouse_helper.eq(0).hasClass('trx_addons_mouse_helper_with_icon')
|| $mouse_helper.eq(0).hasClass('trx_addons_mouse_helper_with_text')
|| $mouse_helper.eq(0).hasClass('trx_addons_mouse_helper_with_image')
|| $mouse_helper.eq(0).hasClass('trx_addons_mouse_helper_with_layout')
||(mouse_helper_target&&(
mouse_helper_target.data('mouse-helper-icon')
|| mouse_helper_target.data('mouse-helper-text')
|| mouse_helper_target.data('mouse-helper-image')
|| mouse_helper_target.data('mouse-helper-layout')
))
?(mouse_helper_smooth ? 500:0)
:(mouse_helper_smooth ? 50:0)
);
$mouse_helper.eq(0)
.attr('class', trx_addons_chg_class_by_prefix($mouse_helper.attr('class'), 'trx_addons_mouse_helper_over_element_', '') );
var $inner_elements=$mouse_helper.eq(0).find('.trx_addons_mouse_helper_image,.trx_addons_mouse_helper_text,.trx_addons_mouse_helper_icon,.trx_addons_mouse_helper_layout');
if($inner_elements.length > 0){
if(true){
$inner_elements.remove();
}else{
$inner_elements
.addClass('trx_addons_mouse_helper_reset_item')
.animate({
opacity: 0,
height: 0,
width: 0
},
mouse_helper_smooth ? 500:0,
function(){
var $self=jQuery(this);
if($self.hasClass('trx_addons_mouse_helper_reset_item')){
$self.remove();
}});
}}
$mouse_helper
.removeClass('trx_addons_mouse_helper_active'
+ ' trx_addons_mouse_helper_hide'
+ ' trx_addons_mouse_helper_with_icon'
+ ' trx_addons_mouse_helper_with_text'
+ ' trx_addons_mouse_helper_with_text_round'
+ ' trx_addons_mouse_helper_with_image'
+ ' trx_addons_mouse_helper_with_layout'
)
.toggleClass('trx_addons_mouse_helper_centered', TRX_ADDONS_STORAGE['mouse_helper_centered'] > 0);
$mouse_helper.each(function(idx){
$mouse_helper.eq(idx).css({
'mix-blend-mode': mouse_helper_original_styles[idx].blend_mode,
'color': mouse_helper_original_styles[idx].color,
'background-color': mouse_helper_original_styles[idx].bg_color,
'border-color': mouse_helper_original_styles[idx].bd_color,
'border-width': mouse_helper_original_styles[idx].bd_width,
'border-style': mouse_helper_original_styles[idx].bd_style
});
});
if(mouse_helper_callback&&typeof window[mouse_helper_callback]=='function'){
window[mouse_helper_callback]('reset', $mouse_helper, mouse_helper_last_target, null);
mouse_helper_callback='';
}else if(typeof window['trx_addons_mouse_helper_callback_' + mouse_helper_last_action]=='function'){
window['trx_addons_mouse_helper_callback_' + mouse_helper_last_action]('reset', $mouse_helper, mouse_helper_last_target, e);
}};
var mouse_helper_move=function(){
cancelAnimationFrame(mouse_helper_move);
if(trx_addons_window_width() >=TRX_ADDONS_STORAGE['mobile_breakpoint_mousehelper_off']&&null!==mouseX&&mouse_helper_delay > 1){
$mouse_helper.each(function(idx){
if(destX[idx]!=mouseX||destY[idx]!=mouseY){
if($mouse_helper.eq(idx).hasClass('trx_addons_mouse_helper_permanent')||$mouse_helper.eq(idx).hasClass('trx_addons_mouse_helper_active') ){
var delay=($mouse_helper.eq(idx).data('delay')||0) * 1 + mouse_helper_delay * 1;
destX[idx] +=(mouseX - destX[idx]) / delay;
destY[idx] +=(mouseY - destY[idx]) / delay;
}else{
destX[idx]=mouseX;
destY[idx]=mouseY;
}
$mouse_helper.eq(idx).css("transform", "translate(" + destX[idx] + "px," + destY[idx] + "px)");
}});
}
requestAnimationFrame(mouse_helper_move);
};
requestAnimationFrame(mouse_helper_move);
function trx_addons_mouse_helper_get_state(e){
if(e.clientX===undefined) return;
realX=e.clientX + trx_addons_window_scroll_left();
realY=e.clientY + trx_addons_window_scroll_top();
if(mouse_helper_axis.indexOf('x')!=-1) mouseX=e.clientX;
if(mouse_helper_axis.indexOf('y')!=-1) mouseY=e.clientY;
}
function trx_addons_mouse_helper_check_magnets(){
$mouse_helper_magnets.each(function(){
var item=jQuery(this),
inner=item.children(),
koef=item.data('mouse-helper-magnet-velocity') ? item.data('mouse-helper-magnet-velocity'):1,
delta=item.data('mouse-helper-magnet') * koef;
var data, cx, cy, iw, ih, ix, iy, near;
requestAnimationFrame(control_item);
function control_item(){
var off=item.offset();
cx=realX;
cy=realY;
iw=item.width();
ih=item.height();
ix=off.left + iw / 2;
iy=off.top + ih / 2;
near=Math.abs(ix - cx) < iw * koef&&Math.abs(iy - cy) < ih * koef;
if(near){
! item.hasClass('trx_addons_mouse_helper_near')&&move_item();
requestAnimationFrame(control_item);
}else{
item.hasClass('trx_addons_mouse_helper_near')&&reset_item();
}}
function move_item(){
item.addClass('trx_addons_mouse_helper_near');
var d=get_closest_position(),
dx=d.x,
dy=d.y,
nx=0,
ny=0;
transform_item();
function transform_item(){
var d=get_closest_position();
nx +=(d.x - dx) / 5;
ny +=(d.y - dy) / 5;
nx.toFixed(2)!==dx.toFixed(2) &&
inner.css({
'transition': 'none',
'transform':  'translate3d(' + nx + 'px, ' + ny + 'px, 0)'
});
dx=nx;
dy=ny;
requestAnimationFrame(function (){
near&&transform_item();
});
}
function get_closest_position(){
return {
x: Math.abs(cx - ix) < delta ? cx - ix:delta * (cx - ix) / Math.abs(cx - ix),
y: Math.abs(cy - iy) < delta ? cy - iy:delta * (cy - iy) / Math.abs(cy - iy)
};}}
function reset_item(){
item.removeClass('trx_addons_mouse_helper_near');
inner
.css({
'transition': 'transform 0.5s',
'transform':  'translate3d(0px, 0px, 0px)'
})
.one(typeof window.trx_addons_transition_end!='undefined' ? trx_addons_transition_end():'transitionend', function (){
inner.css({
'transition': 'none'
});
});
}});
}}
});
$document.on('action.build_page_toc', function(){
jQuery('#toc_menu .toc_menu_item').each(function(){
if(trx_addons_apply_filters('trx_addons_filter_mouse_helper_on_toc', TRX_ADDONS_STORAGE['mouse_helper'] > 0) ){
var $self=jQuery(this),
title=$self.attr('title')||$self.find('.toc_menu_description_title').text();
$self.attr({
'data-mouse-helper': 'hover',
'data-mouse-helper-axis': 'y',
'data-mouse-helper-text': TRX_ADDONS_STORAGE['msg_mouse_helper_anchor'] +(title ? ' ' + title:'')
});
}});
});
})();
;!function(a,b){"use strict";var c=function(){var c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},d=function(){var b=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return b&&a("html").css("cursor","pointer").on("click",a.noop),b}(),e=function(){var a=document.documentElement.style;return"behavior"in a&&"fill"in a&&/iemobile/i.test(navigator.userAgent)}(),f=function(){return!!b.PointerEvent}(),g=function(a,b,d){var e,f=c.menuClass;b.cssArrows&&(f+=" "+c.menuArrowClass),e=d?"addClass":"removeClass",a[e](f)},h=function(b,d){return b.find("li."+d.pathClass).slice(0,d.pathLevels).addClass(d.hoverClass+" "+c.bcClass).filter(function(){return a(this).children(d.popUpSelector).hide().show().length}).removeClass(d.pathClass)},i=function(a,b){var d=b?"addClass":"removeClass";a.children("a")[d](c.anchorClass)},j=function(a){var b=a.css("ms-touch-action"),c=a.css("touch-action");c=c||b,c="pan-y"===c?"auto":"pan-y",a.css({"ms-touch-action":c,"touch-action":c})},k=function(a){return a.closest("."+c.menuClass)},l=function(a){return k(a).data("sfOptions")},m=function(){var b=a(this),c=l(b);clearTimeout(c.sfTimer),b.siblings().superfish("hide").end().superfish("show")},n=function(b){b.retainPath=a.inArray(this[0],b.$path)>-1,this.superfish("hide"),this.parents("."+b.hoverClass).length||(b.onIdle.call(k(this)),b.$path.length&&a.proxy(m,b.$path)())},o=function(){var b=a(this),c=l(b);d?a.proxy(n,b,c)():(clearTimeout(c.sfTimer),c.sfTimer=setTimeout(a.proxy(n,b,c),c.delay))},p=function(b){var c=a(this),d=l(c),e=c.siblings(b.data.popUpSelector);return d.onHandleTouch.call(e)===!1?this:void(e.length>0&&e.is(":hidden")&&(c.one("click.superfish",!1),"MSPointerDown"===b.type||"pointerdown"===b.type?c.trigger("focus"):a.proxy(m,c.parent("li"))()))},q=function(b,c){var g="li:has("+c.popUpSelector+")";a.fn.hoverIntent&&!c.disableHI?b.hoverIntent(m,o,g):b.on("mouseenter.superfish",g,m).on("mouseleave.superfish",g,o);var h="MSPointerDown.superfish";f&&(h="pointerdown.superfish"),d||(h+=" touchend.superfish"),e&&(h+=" mousedown.superfish"),b.on("focusin.superfish","li",m).on("focusout.superfish","li",o).on(h,"a",c,p)};return{hide:function(b){if(this.length){var c=this,d=l(c);if(!d)return this;var e=d.retainPath===!0?d.$path:"",f=c.find("li."+d.hoverClass).add(this).not(e).removeClass(d.hoverClass).children(d.popUpSelector),g=d.speedOut;if(b&&(f.show(),g=0),d.retainPath=!1,d.onBeforeHide.call(f)===!1)return this;f.stop(!0,!0).animate(d.animationOut,g,function(){var b=a(this);d.onHide.call(b)})}return this},show:function(){var a=l(this);if(!a)return this;var b=this.addClass(a.hoverClass),c=b.children(a.popUpSelector);return a.onBeforeShow.call(c)===!1?this:(c.stop(!0,!0).animate(a.animation,a.speed,function(){a.onShow.call(c)}),this)},destroy:function(){return this.each(function(){var b,d=a(this),e=d.data("sfOptions");return!!e&&(b=d.find(e.popUpSelector).parent("li"),clearTimeout(e.sfTimer),g(d,e),i(b),j(d),d.off(".superfish").off(".hoverIntent"),b.children(e.popUpSelector).attr("style",function(a,b){if("undefined"!=typeof b)return b.replace(/display[^;]+;?/g,"")}),e.$path.removeClass(e.hoverClass+" "+c.bcClass).addClass(e.pathClass),d.find("."+e.hoverClass).removeClass(e.hoverClass),e.onDestroy.call(d),void d.removeData("sfOptions"))})},init:function(b){return this.each(function(){var d=a(this);if(d.data("sfOptions"))return!1;var e=a.extend({},a.fn.superfish.defaults,b),f=d.find(e.popUpSelector).parent("li");e.$path=h(d,e),d.data("sfOptions",e),g(d,e,!0),i(f,!0),j(d),q(d,e),f.not("."+c.bcClass).superfish("hide",!0),e.onInit.call(this)})}}}();a.fn.superfish=function(b,d){return c[b]?c[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?a.error("Method "+b+" does not exist on jQuery.fn.superfish"):c.init.apply(this,arguments)},a.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:a.noop,onBeforeShow:a.noop,onShow:a.noop,onBeforeHide:a.noop,onHide:a.noop,onIdle:a.noop,onDestroy:a.noop,onHandleTouch:a.noop}}(jQuery,window);
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t){return"string"==typeof t}function s(t){return"function"==typeof t}function t(t){return"number"==typeof t}function u(t){return void 0===t}function v(t){return"object"==typeof t}function w(t){return!1!==t}function x(){return"undefined"!=typeof window}function y(t){return s(t)||r(t)}function P(t){return(i=yt(t,ot))&&Ce}function Q(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function R(t,e){return!e&&console.warn(t)}function S(t,e){return t&&(ot[t]=e)&&i&&(i[t]=e)||ot}function T(){return 0}function ea(t){var e,r,i=t[0];if(v(i)||s(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=gt.length;r--&&!gt[r].targetTest(i););e=gt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new jt(t[r],e)))||t.splice(r,1);return t}function fa(t){return t._gsap||ea(Ot(t))[0]._gsap}function ga(t,e,r){return(r=t[e])&&s(r)?t[e]():u(r)&&t.getAttribute&&t.getAttribute(e)||r}function ha(t,e){return(t=t.split(",")).forEach(e)||t}function ia(t){return Math.round(1e5*t)/1e5||0}function ja(t){return Math.round(1e7*t)/1e7||0}function ka(t,e){var r=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+i:"-"===r?t-i:"*"===r?t*i:t/i}function la(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r}function ma(){var t,e,r=ct.length,i=ct.slice(0);for(dt={},t=ct.length=0;t<r;t++)(e=i[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}function na(t,e,r,i){ct.length&&ma(),t.render(e,r,i||B&&e<0&&(t._initted||t._startAt)),ct.length&&ma()}function oa(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(at).length<2?e:r(t)?t.trim():t}function pa(t){return t}function qa(t,e){for(var r in e)r in t||(t[r]=e[r]);return t}function ta(t,e){for(var r in e)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(t[r]=v(e[r])?ta(t[r]||(t[r]={}),e[r]):e[r]);return t}function ua(t,e){var r,i={};for(r in t)r in e||(i[r]=t[r]);return i}function va(t){var e=t.parent||L,r=t.keyframes?function _setKeyframeDefaults(i){return function(t,e){for(var r in e)r in t||"duration"===r&&i||"ease"===r||(t[r]=e[r])}}($(t.keyframes)):qa;if(w(t.inherit))for(;e;)r(t,e.vars.defaults),e=e.parent||e._dp;return t}function xa(t,e,r,i,n){void 0===r&&(r="_first"),void 0===i&&(i="_last");var a,s=t[i];if(n)for(a=e[n];s&&s[n]>a;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=s,e.parent=e._dp=t,e}function ya(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,a=e._next;n?n._next=a:t[r]===e&&(t[r]=a),a?a._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null}function za(t,e){!t.parent||e&&!t.parent.autoRemoveChildren||t.parent.remove(t),t._act=0}function Aa(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t}function Ca(t,e,r,i){return t._startAt&&(B?t._startAt.revert(ht):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))}function Ea(t){return t._repeat?Tt(t._tTime,t=t.duration()+t._rDelay)*t:0}function Ga(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function Ha(t){return t._end=ja(t._start+(t._tDur/Math.abs(t._ts||t._rts||V)||0))}function Ia(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=ja(r._time-(0<t._ts?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Ha(t),r._dirty||Aa(r,t)),t}function Ja(t,e){var r;if((e._time||e._initted&&!e._dur)&&(r=Ga(t.rawTime(),e),(!e._dur||kt(0,e.totalDuration(),r)-e._tTime>V)&&e.render(r,!0)),Aa(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)0<=r.rawTime()&&r.totalTime(r._tTime),r=r._dp;t._zTime=-V}}function Ka(e,r,i,n){return r.parent&&za(r),r._start=ja((t(i)?i:i||e!==L?xt(e,i,r):e._time)+r._delay),r._end=ja(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),xa(e,r,"_first","_last",e._sort?"_start":0),bt(r)||(e._recent=r),n||Ja(e,r),e._ts<0&&Ia(e,e._tTime),e}function La(t,e){return(ot.ScrollTrigger||Q("scrollTrigger",e))&&ot.ScrollTrigger.create(e,t)}function Ma(t,e,r,i,n){return Ht(t,e,n),t._initted?!r&&t._pt&&!B&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&f!==Et.frame?(ct.push(t),t._lazy=[n,i],1):void 0:1}function Ra(t,e,r,i){var n=t._repeat,a=ja(e)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=a/t._dur),t._dur=a,t._tDur=n?n<0?1e10:ja(a*(n+1)+t._rDelay*n):a,0<s&&!i&&Ia(t,t._tTime=t._tDur*s),t.parent&&Ha(t),r||Aa(t.parent,t),t}function Sa(t){return t instanceof Ut?Aa(t):Ra(t,t._dur)}function Va(e,r,i){var n,a,s=t(r[1]),o=(s?2:1)+(e<2?0:1),u=r[o];if(s&&(u.duration=r[1]),u.parent=i,e){for(n=u,a=i;a&&!("immediateRender"in n);)n=a.vars.defaults||{},a=w(a.vars.inherit)&&a.parent;u.immediateRender=w(n.immediateRender),e<2?u.runBackwards=1:u.startAt=r[o-1]}return new Gt(r[0],u,r[1+o])}function Wa(t,e){return t||0===t?e(t):e}function Ya(t,e){return r(t)&&(e=st.exec(t))?e[1]:""}function _a(t,e){return t&&v(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&v(t[0]))&&!t.nodeType&&t!==h}function cb(r){return r=Ot(r)[0]||R("Invalid scope")||{},function(t){var e=r.current||r.nativeElement||r;return Ot(t,e.querySelectorAll?e:e===r?R("Invalid scope")||a.createElement("div"):r)}}function db(t){return t.sort(function(){return.5-Math.random()})}function eb(t){if(s(t))return t;var p=v(t)?t:{each:t},_=Yt(p.ease),m=p.from||0,g=parseFloat(p.base)||0,y={},e=0<m&&m<1,T=isNaN(m)||e,b=p.axis,w=m,x=m;return r(m)?w=x={center:.5,edges:.5,end:1}[m]||0:!e&&T&&(w=m[0],x=m[1]),function(t,e,r){var i,n,a,s,o,u,h,l,f,c=(r||p).length,d=y[c];if(!d){if(!(f="auto"===p.grid?0:(p.grid||[1,U])[1])){for(h=-U;h<(h=r[f++].getBoundingClientRect().left)&&f<c;);f--}for(d=y[c]=[],i=T?Math.min(f,c)*w-.5:m%f,n=f===U?0:T?c*x/f-.5:m/f|0,l=U,u=h=0;u<c;u++)a=u%f-i,s=n-(u/f|0),d[u]=o=b?Math.abs("y"===b?s:a):K(a*a+s*s),h<o&&(h=o),o<l&&(l=o);"random"===m&&db(d),d.max=h-l,d.min=l,d.v=c=(parseFloat(p.amount)||parseFloat(p.each)*(c<f?c-1:b?"y"===b?c/f:f:Math.max(f,c/f))||0)*("edges"===m?-1:1),d.b=c<0?g-c:g,d.u=Ya(p.amount||p.each)||0,_=_&&c<0?Lt(_):_}return c=(d[t]-d.min)/d.max||0,ja(d.b+(_?_(c):c)*d.v)+d.u}}function fb(i){var n=Math.pow(10,((i+"").split(".")[1]||"").length);return function(e){var r=ja(Math.round(parseFloat(e)/i)*i*n);return(r-r%1)/n+(t(e)?0:Ya(e))}}function gb(h,e){var l,f,r=$(h);return!r&&v(h)&&(l=r=h.radius||U,h.values?(h=Ot(h.values),(f=!t(h[0]))&&(l*=l)):h=fb(h.increment)),Wa(e,r?s(h)?function(t){return f=h(t),Math.abs(f-t)<=l?f:t}:function(e){for(var r,i,n=parseFloat(f?e.x:e),a=parseFloat(f?e.y:0),s=U,o=0,u=h.length;u--;)(r=f?(r=h[u].x-n)*r+(i=h[u].y-a)*i:Math.abs(h[u]-n))<s&&(s=r,o=u);return o=!l||s<=l?h[o]:e,f||o===e||t(e)?o:o+Ya(e)}:fb(h))}function hb(t,e,r,i){return Wa($(t)?!e:!0===r?!!(r=0):!i,function(){return $(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*i)/i})}function lb(e,r,t){return Wa(t,function(t){return e[~~r(t)]})}function ob(t){for(var e,r,i,n,a=0,s="";~(e=t.indexOf("random(",a));)i=t.indexOf(")",e),n="["===t.charAt(e+7),r=t.substr(e+7,i-e-7).match(n?at:tt),s+=t.substr(a,e-a)+hb(n?r:+r[0],n?0:+r[1],+r[2]||1e-5),a=i+1;return s+t.substr(a,t.length-a)}function rb(t,e,r){var i,n,a,s=t.labels,o=U;for(i in s)(n=s[i]-e)<0==!!r&&n&&o>(n=Math.abs(n))&&(a=i,o=n);return a}function tb(t){return za(t),t.scrollTrigger&&t.scrollTrigger.kill(!!B),t.progress()<1&&Ct(t,"onInterrupt"),t}function yb(t,e,r){return(6*(t+=t<0?1:1<t?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*At+.5|0}function zb(e,r,i){var n,a,s,o,u,h,l,f,c,d,p=e?t(e)?[e>>16,e>>8&At,e&At]:0:St.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),St[e])p=St[e];else if("#"===e.charAt(0)){if(e.length<6&&(e="#"+(n=e.charAt(1))+n+(a=e.charAt(2))+a+(s=e.charAt(3))+s+(5===e.length?e.charAt(4)+e.charAt(4):"")),9===e.length)return[(p=parseInt(e.substr(1,6),16))>>16,p>>8&At,p&At,parseInt(e.substr(7),16)/255];p=[(e=parseInt(e.substr(1),16))>>16,e>>8&At,e&At]}else if("hsl"===e.substr(0,3))if(p=d=e.match(tt),r){if(~e.indexOf("="))return p=e.match(et),i&&p.length<4&&(p[3]=1),p}else o=+p[0]%360/360,u=p[1]/100,n=2*(h=p[2]/100)-(a=h<=.5?h*(u+1):h+u-h*u),3<p.length&&(p[3]*=1),p[0]=yb(o+1/3,n,a),p[1]=yb(o,n,a),p[2]=yb(o-1/3,n,a);else p=e.match(tt)||St.transparent;p=p.map(Number)}return r&&!d&&(n=p[0]/At,a=p[1]/At,s=p[2]/At,h=((l=Math.max(n,a,s))+(f=Math.min(n,a,s)))/2,l===f?o=u=0:(c=l-f,u=.5<h?c/(2-l-f):c/(l+f),o=l===n?(a-s)/c+(a<s?6:0):l===a?(s-n)/c+2:(n-a)/c+4,o*=60),p[0]=~~(o+.5),p[1]=~~(100*u+.5),p[2]=~~(100*h+.5)),i&&p.length<4&&(p[3]=1),p}function Ab(t){var r=[],i=[],n=-1;return t.split(Rt).forEach(function(t){var e=t.match(rt)||[];r.push.apply(r,e),i.push(n+=e.length+1)}),r.c=i,r}function Bb(t,e,r){var i,n,a,s,o="",u=(t+o).match(Rt),h=e?"hsla(":"rgba(",l=0;if(!u)return t;if(u=u.map(function(t){return(t=zb(t,e,1))&&h+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(a=Ab(t),(i=r.c).join(o)!==a.c.join(o)))for(s=(n=t.replace(Rt,"1").split(rt)).length-1;l<s;l++)o+=n[l]+(~i.indexOf(l)?u.shift()||h+"0,0,0,0)":(a.length?a:u.length?u:r).shift());if(!n)for(s=(n=t.split(Rt)).length-1;l<s;l++)o+=n[l]+u[l];return o+n[s]}function Eb(t){var e,r=t.join(" ");if(Rt.lastIndex=0,Rt.test(r))return e=Dt.test(r),t[1]=Bb(t[1],e),t[0]=Bb(t[0],e,Ab(t[1])),!0}function Nb(t){var e=(t+"").split("("),r=Ft[e[0]];return r&&1<e.length&&r.config?r.config.apply(null,~t.indexOf("{")?[function _parseObjectInString(t){for(var e,r,i,n={},a=t.substr(1,t.length-3).split(":"),s=a[0],o=1,u=a.length;o<u;o++)r=a[o],e=o!==u-1?r.lastIndexOf(","):r.length,i=r.substr(0,e),n[s]=isNaN(i)?i.replace(Bt,"").trim():+i,s=r.substr(e+1).trim();return n}(e[1])]:function _valueInParentheses(t){var e=t.indexOf("(")+1,r=t.indexOf(")"),i=t.indexOf("(",e);return t.substring(e,~i&&i<r?t.indexOf(")",r+1):r)}(t).split(",").map(oa)):Ft._CE&&It.test(t)?Ft._CE("",t):r}function Pb(t,e){for(var r,i=t._first;i;)i instanceof Ut?Pb(i,e):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===e||(i.timeline?Pb(i.timeline,e):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=e)),i=i._next}function Rb(t,e,r,i){void 0===r&&(r=function easeOut(t){return 1-e(1-t)}),void 0===i&&(i=function easeInOut(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var n,a={easeIn:e,easeOut:r,easeInOut:i};return ha(t,function(t){for(var e in Ft[t]=ot[t]=a,Ft[n=t.toLowerCase()]=r,a)Ft[n+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Ft[t+"."+e]=a[e]}),a}function Sb(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}}function Tb(r,t,e){function Hm(t){return 1===t?1:i*Math.pow(2,-10*t)*G((t-a)*n)+1}var i=1<=t?t:1,n=(e||(r?.3:.45))/(t<1?t:1),a=n/W*(Math.asin(1/i)||0),s="out"===r?Hm:"in"===r?function(t){return 1-Hm(1-t)}:Sb(Hm);return n=W/n,s.config=function(t,e){return Tb(r,t,e)},s}function Ub(e,r){function Pm(t){return t?--t*t*((r+1)*t+r)+1:0}void 0===r&&(r=1.70158);var t="out"===e?Pm:"in"===e?function(t){return 1-Pm(1-t)}:Sb(Pm);return t.config=function(t){return Ub(e,t)},t}var I,B,l,L,h,n,a,i,o,f,c,d,p,_,m,g,b,k,M,O,C,A,D,E,z,F,Y,N,j={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},q={duration:.5,overwrite:!1,delay:0},U=1e8,V=1/U,W=2*Math.PI,X=W/4,H=0,K=Math.sqrt,Z=Math.cos,G=Math.sin,J="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},$=Array.isArray,tt=/(?:-?\.?\d|\.)+/gi,et=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,rt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,it=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,nt=/[+-]=-?[.\d]+/,at=/[^,'"\[\]\s]+/gi,st=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ot={},ut={suppressEvents:!0,isStart:!0,kill:!1},ht={suppressEvents:!0,kill:!1},lt={suppressEvents:!0},ft={},ct=[],dt={},pt={},_t={},mt=30,gt=[],vt="",yt=function _merge(t,e){for(var r in e)t[r]=e[r];return t},Tt=function _animationCycle(t,e){var r=Math.floor(t/=e);return t&&r===t?r-1:r},bt=function _isFromOrFromStart(t){var e=t.data;return"isFromStart"===e||"isStart"===e},wt={_start:0,endTime:T,totalDuration:T},xt=function _parsePosition(t,e,i){var n,a,s,o=t.labels,u=t._recent||wt,h=t.duration()>=U?u.endTime(!1):t._dur;return r(e)&&(isNaN(e)||e in o)?(a=e.charAt(0),s="%"===e.substr(-1),n=e.indexOf("="),"<"===a||">"===a?(0<=n&&(e=e.replace(/=/,"")),("<"===a?u._start:u.endTime(0<=u._repeat))+(parseFloat(e.substr(1))||0)*(s?(n<0?u:i).totalDuration()/100:1)):n<0?(e in o||(o[e]=h),o[e]):(a=parseFloat(e.charAt(n-1)+e.substr(n+1)),s&&i&&(a=a/100*($(i)?i[0]:i).totalDuration()),1<n?_parsePosition(t,e.substr(0,n-1),i)+a:h+a)):null==e?h:+e},kt=function _clamp(t,e,r){return r<t?t:e<r?e:r},Mt=[].slice,Ot=function toArray(t,e,i){return l&&!e&&l.selector?l.selector(t):!r(t)||i||!n&&zt()?$(t)?function _flatten(t,e,i){return void 0===i&&(i=[]),t.forEach(function(t){return r(t)&&!e||_a(t,1)?i.push.apply(i,Ot(t)):i.push(t)})||i}(t,i):_a(t)?Mt.call(t,0):t?[t]:[]:Mt.call((e||a).querySelectorAll(t),0)},Pt=function mapRange(e,t,r,i,n){var a=t-e,s=i-r;return Wa(n,function(t){return r+((t-e)/a*s||0)})},Ct=function _callback(t,e,r){var i,n,a,s=t.vars,o=s[e],u=l,h=t._ctx;if(o)return i=s[e+"Params"],n=s.callbackScope||t,r&&ct.length&&ma(),h&&(l=h),a=i?o.apply(n,i):o.call(n),l=u,a},At=255,St={aqua:[0,At,At],lime:[0,At,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,At],navy:[0,0,128],white:[At,At,At],olive:[128,128,0],yellow:[At,At,0],orange:[At,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[At,0,0],pink:[At,192,203],cyan:[0,At,At],transparent:[At,At,At,0]},Rt=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in St)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Dt=/hsl[a]?\(/,Et=(M=Date.now,O=500,C=33,A=M(),D=A,z=E=1e3/240,g={time:0,frame:0,tick:function tick(){wl(!0)},deltaRatio:function deltaRatio(t){return b/(1e3/(t||60))},wake:function wake(){o&&(!n&&x()&&(h=n=window,a=h.document||{},ot.gsap=Ce,(h.gsapVersions||(h.gsapVersions=[])).push(Ce.version),P(i||h.GreenSockGlobals||!h.gsap&&h||{}),m=h.requestAnimationFrame),p&&g.sleep(),_=m||function(t){return setTimeout(t,z-1e3*g.time+1|0)},d=1,wl(2))},sleep:function sleep(){(m?h.cancelAnimationFrame:clearTimeout)(p),d=0,_=T},lagSmoothing:function lagSmoothing(t,e){O=t||1e8,C=Math.min(e,O,0)},fps:function fps(t){E=1e3/(t||240),z=1e3*g.time+E},add:function add(n,t,e){var a=t?function(t,e,r,i){n(t,e,r,i),g.remove(a)}:n;return g.remove(n),F[e?"unshift":"push"](a),zt(),a},remove:function remove(t,e){~(e=F.indexOf(t))&&F.splice(e,1)&&e<=k&&k--},_listeners:F=[]}),zt=function _wake(){return!d&&Et.wake()},Ft={},It=/^[\d.\-M][\d.\-,\s]/,Bt=/["']/g,Lt=function _invertEase(e){return function(t){return 1-e(1-t)}},Yt=function _parseEase(t,e){return t&&(s(t)?t:Ft[t]||Nb(t))||e};function wl(t){var e,r,i,n,a=M()-D,s=!0===t;if(O<a&&(A+=a-C),(0<(e=(i=(D+=a)-A)-z)||s)&&(n=++g.frame,b=i-1e3*g.time,g.time=i/=1e3,z+=e+(E<=e?4:E-e),r=1),s||(p=_(wl)),r)for(k=0;k<F.length;k++)F[k](i,b,n,t)}function en(t){return t<N?Y*t*t:t<.7272727272727273?Y*Math.pow(t-1.5/2.75,2)+.75:t<.9090909090909092?Y*(t-=2.25/2.75)*t+.9375:Y*Math.pow(t-2.625/2.75,2)+.984375}ha("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;Rb(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2})}),Ft.Linear.easeNone=Ft.none=Ft.Linear.easeIn,Rb("Elastic",Tb("in"),Tb("out"),Tb()),Y=7.5625,N=1/2.75,Rb("Bounce",function(t){return 1-en(1-t)},en),Rb("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),Rb("Circ",function(t){return-(K(1-t*t)-1)}),Rb("Sine",function(t){return 1===t?1:1-Z(t*X)}),Rb("Back",Ub("in"),Ub("out"),Ub()),Ft.SteppedEase=Ft.steps=ot.SteppedEase={config:function config(t,e){void 0===t&&(t=1);var r=1/t,i=t+(e?0:1),n=e?1:0;return function(t){return((i*kt(0,.99999999,t)|0)+n)*r}}},q.ease=Ft["quad.out"],ha("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return vt+=t+","+t+"Params,"});var Nt,jt=function GSCache(t,e){this.id=H++,(t._gsap=this).target=t,this.harness=e,this.get=e?e.get:ga,this.set=e?e.getSetter:re},qt=((Nt=Animation.prototype).delay=function delay(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},Nt.duration=function duration(t){return arguments.length?this.totalDuration(0<this._repeat?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},Nt.totalDuration=function totalDuration(t){return arguments.length?(this._dirty=0,Ra(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},Nt.totalTime=function totalTime(t,e){if(zt(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Ia(this,t),!r._dp||r.parent||Ja(r,this);r&&r.parent;)r.parent._time!==r._start+(0<=r._ts?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(0<this._ts&&t<this._tDur||this._ts<0&&0<t||!this._tDur&&!t)&&Ka(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===V||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),na(this,t,e)),this},Nt.time=function time(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Ea(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},Nt.totalProgress=function totalProgress(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},Nt.progress=function progress(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Ea(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},Nt.iteration=function iteration(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?Tt(this._tTime,r)+1:1},Nt.timeScale=function timeScale(t){if(!arguments.length)return this._rts===-V?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?Ga(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-V?0:this._rts,this.totalTime(kt(-this._delay,this._tDur,e),!0),Ha(this),function _recacheAncestors(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},Nt.paused=function paused(t){return arguments.length?(this._ps!==t&&((this._ps=t)?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(zt(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==V&&(this._tTime-=V)))),this):this._ps},Nt.startTime=function startTime(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return!e||!e._sort&&this.parent||Ka(e,this,t-this._delay),this}return this._start},Nt.endTime=function endTime(t){return this._start+(w(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},Nt.rawTime=function rawTime(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ga(e.rawTime(t),this):this._tTime:this._tTime},Nt.revert=function revert(t){void 0===t&&(t=lt);var e=B;return B=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),B=e,this},Nt.globalTime=function globalTime(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(e._ts||1),e=e._dp;return!this.parent&&this.vars.immediateRender?-1:r},Nt.repeat=function repeat(t){return arguments.length?(this._repeat=t===1/0?-2:t,Sa(this)):-2===this._repeat?1/0:this._repeat},Nt.repeatDelay=function repeatDelay(t){if(arguments.length){var e=this._time;return this._rDelay=t,Sa(this),e?this.time(e):this}return this._rDelay},Nt.yoyo=function yoyo(t){return arguments.length?(this._yoyo=t,this):this._yoyo},Nt.seek=function seek(t,e){return this.totalTime(xt(this,t),w(e))},Nt.restart=function restart(t,e){return this.play().totalTime(t?-this._delay:0,w(e))},Nt.play=function play(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},Nt.reverse=function reverse(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},Nt.pause=function pause(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},Nt.resume=function resume(){return this.paused(!1)},Nt.reversed=function reversed(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-V:0)),this):this._rts<0},Nt.invalidate=function invalidate(){return this._initted=this._act=0,this._zTime=-V,this},Nt.isActive=function isActive(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t<this.endTime(!0)-V))},Nt.eventCallback=function eventCallback(t,e,r){var i=this.vars;return 1<arguments.length?(e?(i[t]=e,r&&(i[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},Nt.then=function then(t){var i=this;return new Promise(function(e){function zo(){var t=i.then;i.then=null,s(r)&&(r=r(i))&&(r.then||r===i)&&(i.then=t),e(r),i.then=t}var r=s(t)?t:pa;i._initted&&1===i.totalProgress()&&0<=i._ts||!i._tTime&&i._ts<0?zo():i._prom=zo})},Nt.kill=function kill(){tb(this)},Animation);function Animation(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Ra(this,+t.duration,1,1),this.data=t.data,l&&(this._ctx=l).data.push(this),d||Et.wake()}qa(qt.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-V,_prom:0,_ps:!1,_rts:1});var Ut=function(i){function Timeline(t,e){var r;return void 0===t&&(t={}),(r=i.call(this,t)||this).labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=w(t.sortChildren),L&&Ka(t.parent||L,_assertThisInitialized(r),e),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&La(_assertThisInitialized(r),t.scrollTrigger),r}_inheritsLoose(Timeline,i);var e=Timeline.prototype;return e.to=function to(t,e,r){return Va(0,arguments,this),this},e.from=function from(t,e,r){return Va(1,arguments,this),this},e.fromTo=function fromTo(t,e,r,i){return Va(2,arguments,this),this},e.set=function set(t,e,r){return e.duration=0,e.parent=this,va(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Gt(t,e,xt(this,r),1),this},e.call=function call(t,e,r){return Ka(this,Gt.delayedCall(0,t,e),r)},e.staggerTo=function staggerTo(t,e,r,i,n,a,s){return r.duration=e,r.stagger=r.stagger||i,r.onComplete=a,r.onCompleteParams=s,r.parent=this,new Gt(t,r,xt(this,n)),this},e.staggerFrom=function staggerFrom(t,e,r,i,n,a,s){return r.runBackwards=1,va(r).immediateRender=w(r.immediateRender),this.staggerTo(t,e,r,i,n,a,s)},e.staggerFromTo=function staggerFromTo(t,e,r,i,n,a,s,o){return i.startAt=r,va(i).immediateRender=w(i.immediateRender),this.staggerTo(t,e,i,n,a,s,o)},e.render=function render(t,e,r){var i,n,a,s,o,u,h,l,f,c,d,p,_=this._time,m=this._dirty?this.totalDuration():this._tDur,g=this._dur,v=t<=0?0:ja(t),y=this._zTime<0!=t<0&&(this._initted||!g);if(this!==L&&m<v&&0<=t&&(v=m),v!==this._tTime||r||y){if(_!==this._time&&g&&(v+=this._time-_,t+=this._time-_),i=v,f=this._start,u=!(l=this._ts),y&&(g||(_=this._zTime),!t&&e||(this._zTime=t)),this._repeat){if(d=this._yoyo,o=g+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,r);if(i=ja(v%o),v===m?(s=this._repeat,i=g):((s=~~(v/o))&&s===v/o&&(i=g,s--),g<i&&(i=g)),c=Tt(this._tTime,o),!_&&this._tTime&&c!==s&&(c=s),d&&1&s&&(i=g-i,p=1),s!==c&&!this._lock){var T=d&&1&c,b=T===(d&&1&s);if(s<c&&(T=!T),_=T?0:g,this._lock=1,this.render(_||(p?0:ja(s*o)),e,!g)._lock=0,this._tTime=v,!e&&this.parent&&Ct(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),_&&_!==this._time||u!=!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(g=this._dur,m=this._tDur,b&&(this._lock=2,_=T?g:-1e-4,this.render(_,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;Pb(this,p)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=function _findNextPauseTween(t,e,r){var i;if(e<r)for(i=t._first;i&&i._start<=r;){if("isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("isPause"===i.data&&i._start<e)return i;i=i._prev}}(this,ja(_),ja(i)))&&(v-=i-(i=h._start)),this._tTime=v,this._time=i,this._act=!l,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,_=0),!_&&i&&!e&&(Ct(this,"onStart"),this._tTime!==v))return this;if(_<=i&&0<=t)for(n=this._first;n;){if(a=n._next,(n._act||i>=n._start)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0<n._ts?(i-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(i-n._start)*n._ts,e,r),i!==this._time||!this._ts&&!u){h=0,a&&(v+=this._zTime=-V);break}}n=a}else{n=this._last;for(var w=t<0?t:i;n;){if(a=n._prev,(n._act||w<=n._end)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0<n._ts?(w-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(w-n._start)*n._ts,e,r||B&&(n._initted||n._startAt)),i!==this._time||!this._ts&&!u){h=0,a&&(v+=this._zTime=w?-V:V);break}}n=a}}if(h&&!e&&(this.pause(),h.render(_<=i?0:-V)._zTime=_<=i?1:-1,this._ts))return this._start=f,Ha(this),this.render(t,e,r);this._onUpdate&&!e&&Ct(this,"onUpdate",!0),(v===m&&this._tTime>=this.totalDuration()||!v&&_)&&(f!==this._start&&Math.abs(l)===Math.abs(this._ts)||this._lock||(!t&&g||!(v===m&&0<this._ts||!v&&this._ts<0)||za(this,1),e||t<0&&!_||!v&&!_&&m||(Ct(this,v===m&&0<=t?"onComplete":"onReverseComplete",!0),!this._prom||v<m&&0<this.timeScale()||this._prom())))}return this},e.add=function add(e,i){var n=this;if(t(i)||(i=xt(this,i,e)),!(e instanceof qt)){if($(e))return e.forEach(function(t){return n.add(t,i)}),this;if(r(e))return this.addLabel(e,i);if(!s(e))return this;e=Gt.delayedCall(0,e)}return this!==e?Ka(this,e,i):this},e.getChildren=function getChildren(t,e,r,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===i&&(i=-U);for(var n=[],a=this._first;a;)a._start>=i&&(a instanceof Gt?e&&n.push(a):(r&&n.push(a),t&&n.push.apply(n,a.getChildren(!0,e,r)))),a=a._next;return n},e.getById=function getById(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},e.remove=function remove(t){return r(t)?this.removeLabel(t):s(t)?this.killTweensOf(t):(ya(this,t),t===this._recent&&(this._recent=this._last),Aa(this))},e.totalTime=function totalTime(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ja(Et.time-(0<this._ts?t/this._ts:(this.totalDuration()-t)/-this._ts))),i.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},e.addLabel=function addLabel(t,e){return this.labels[t]=xt(this,e),this},e.removeLabel=function removeLabel(t){return delete this.labels[t],this},e.addPause=function addPause(t,e,r){var i=Gt.delayedCall(0,e||T,r);return i.data="isPause",this._hasPause=1,Ka(this,i,xt(this,t))},e.removePause=function removePause(t){var e=this._first;for(t=xt(this,t);e;)e._start===t&&"isPause"===e.data&&za(e),e=e._next},e.killTweensOf=function killTweensOf(t,e,r){for(var i=this.getTweensOf(t,r),n=i.length;n--;)Vt!==i[n]&&i[n].kill(t,e);return this},e.getTweensOf=function getTweensOf(e,r){for(var i,n=[],a=Ot(e),s=this._first,o=t(r);s;)s instanceof Gt?la(s._targets,a)&&(o?(!Vt||s._initted&&s._ts)&&s.globalTime(0)<=r&&s.globalTime(s.totalDuration())>r:!r||s.isActive())&&n.push(s):(i=s.getTweensOf(a,r)).length&&n.push.apply(n,i),s=s._next;return n},e.tweenTo=function tweenTo(t,e){e=e||{};var r,i=this,n=xt(i,t),a=e.startAt,s=e.onStart,o=e.onStartParams,u=e.immediateRender,h=Gt.to(i,qa({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale())||V,onStart:function onStart(){if(i.pause(),!r){var t=e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale());h._dur!==t&&Ra(h,t,0,1).render(h._time,!0,!0),r=1}s&&s.apply(h,o||[])}},e));return u?h.render(0):h},e.tweenFromTo=function tweenFromTo(t,e,r){return this.tweenTo(e,qa({startAt:{time:xt(this,t)}},r))},e.recent=function recent(){return this._recent},e.nextLabel=function nextLabel(t){return void 0===t&&(t=this._time),rb(this,xt(this,t))},e.previousLabel=function previousLabel(t){return void 0===t&&(t=this._time),rb(this,xt(this,t),1)},e.currentLabel=function currentLabel(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+V)},e.shiftChildren=function shiftChildren(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,a=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in a)a[i]>=r&&(a[i]+=t);return Aa(this)},e.invalidate=function invalidate(t){var e=this._first;for(this._lock=0;e;)e.invalidate(t),e=e._next;return i.prototype.invalidate.call(this,t)},e.clear=function clear(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Aa(this)},e.totalDuration=function totalDuration(t){var e,r,i,n=0,a=this,s=a._last,o=U;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(i=a.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),o<(r=s._start)&&a._sort&&s._ts&&!a._lock?(a._lock=1,Ka(a,s,r-s._delay,1)._lock=0):o=r,r<0&&s._ts&&(n-=r,(!i&&!a._dp||i&&i.smoothChildTiming)&&(a._start+=r/a._ts,a._time-=r,a._tTime-=r),a.shiftChildren(-r,!1,-Infinity),o=0),s._end>n&&s._ts&&(n=s._end),s=e;Ra(a,a===L&&a._time>n?a._time:n,1,1),a._dirty=0}return a._tDur},Timeline.updateRoot=function updateRoot(t){if(L._ts&&(na(L,Ga(t,L)),f=Et.frame),Et.frame>=mt){mt+=j.autoSleep||120;var e=L._first;if((!e||!e._ts)&&j.autoSleep&&Et._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Et.sleep()}}},Timeline}(qt);qa(Ut.prototype,{_lock:0,_hasPause:0,_forcing:0});function _b(t,e,i,n,a,o){var u,h,l,f;if(pt[t]&&!1!==(u=new pt[t]).init(a,u.rawVars?e[t]:function _processVars(t,e,i,n,a){if(s(t)&&(t=Qt(t,a,e,i,n)),!v(t)||t.style&&t.nodeType||$(t)||J(t))return r(t)?Qt(t,a,e,i,n):t;var o,u={};for(o in t)u[o]=Qt(t[o],a,e,i,n);return u}(e[t],n,a,o,i),i,n,o)&&(i._pt=h=new pe(i._pt,a,t,0,1,u.render,u,0,u.priority),i!==c))for(l=i._ptLookup[i._targets.indexOf(a)],f=u._props.length;f--;)l[u._props[f]]=h;return u}function fc(t,r,e,i){var n,a,s=r.ease||i||"power1.inOut";if($(r))a=e[t]||(e[t]=[]),r.forEach(function(t,e){return a.push({t:e/(r.length-1)*100,v:t,e:s})});else for(n in r)a=e[n]||(e[n]=[]),"ease"===n||a.push({t:parseFloat(t),v:r[n],e:s})}var Vt,Wt,Xt=function _addPropTween(t,e,i,n,a,o,u,h,l,f){s(n)&&(n=n(a||0,t,o));var c,d=t[e],p="get"!==i?i:s(d)?l?t[e.indexOf("set")||!s(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():d,_=s(d)?l?ee:$t:Jt;if(r(n)&&(~n.indexOf("random(")&&(n=ob(n)),"="===n.charAt(1)&&(!(c=ka(p,n)+(Ya(p)||0))&&0!==c||(n=c))),!f||p!==n||Wt)return isNaN(p*n)||""===n?(d||e in t||Q(e,n),function _addComplexStringPropTween(t,e,r,i,n,a,s){var o,u,h,l,f,c,d,p,_=new pe(this._pt,t,e,0,1,se,null,n),m=0,g=0;for(_.b=r,_.e=i,r+="",(d=~(i+="").indexOf("random("))&&(i=ob(i)),a&&(a(p=[r,i],t,e),r=p[0],i=p[1]),u=r.match(it)||[];o=it.exec(i);)l=o[0],f=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===f.substr(-5)&&(h=1),l!==u[g++]&&(c=parseFloat(u[g-1])||0,_._pt={_next:_._pt,p:f||1===g?f:",",s:c,c:"="===l.charAt(1)?ka(c,l)-c:parseFloat(l)-c,m:h&&h<4?Math.round:0},m=it.lastIndex);return _.c=m<i.length?i.substring(m,i.length):"",_.fp=s,(nt.test(i)||d)&&(_.e=0),this._pt=_}.call(this,t,e,p,n,_,h||j.stringFilter,l)):(c=new pe(this._pt,t,e,+p||0,n-(p||0),"boolean"==typeof d?ae:ne,0,_),l&&(c.fp=l),u&&c.modifier(u,this,t),this._pt=c)},Ht=function _initTween(t,e,r){var i,n,a,s,o,u,h,l,f,c,d,p,_,m=t.vars,g=m.ease,v=m.startAt,y=m.immediateRender,T=m.lazy,b=m.onUpdate,x=m.onUpdateParams,k=m.callbackScope,M=m.runBackwards,O=m.yoyoEase,P=m.keyframes,C=m.autoRevert,A=t._dur,S=t._startAt,R=t._targets,D=t.parent,E=D&&"nested"===D.data?D.vars.targets:R,z="auto"===t._overwrite&&!I,F=t.timeline;if(!F||P&&g||(g="none"),t._ease=Yt(g,q.ease),t._yEase=O?Lt(Yt(!0===O?g:O,q.ease)):0,O&&t._yoyo&&!t._repeat&&(O=t._yEase,t._yEase=t._ease,t._ease=O),t._from=!F&&!!m.runBackwards,!F||P&&!m.stagger){if(p=(l=R[0]?fa(R[0]).harness:0)&&m[l.prop],i=ua(m,ft),S&&(S._zTime<0&&S.progress(1),e<0&&M&&y&&!C?S.render(-1,!0):S.revert(M&&A?ht:ut),S._lazy=0),v){if(za(t._startAt=Gt.set(R,qa({data:"isStart",overwrite:!1,parent:D,immediateRender:!0,lazy:w(T),startAt:null,delay:0,onUpdate:b,onUpdateParams:x,callbackScope:k,stagger:0},v))),e<(t._startAt._dp=0)&&(B||!y&&!C)&&t._startAt.revert(ht),y&&A&&e<=0&&r<=0)return void(e&&(t._zTime=e))}else if(M&&A&&!S)if(e&&(y=!1),a=qa({overwrite:!1,data:"isFromStart",lazy:y&&w(T),immediateRender:y,stagger:0,parent:D},i),p&&(a[l.prop]=p),za(t._startAt=Gt.set(R,a)),e<(t._startAt._dp=0)&&(B?t._startAt.revert(ht):t._startAt.render(-1,!0)),t._zTime=e,y){if(!e)return}else _initTween(t._startAt,V,V);for(t._pt=t._ptCache=0,T=A&&w(T)||T&&!A,n=0;n<R.length;n++){if(h=(o=R[n])._gsap||ea(R)[n]._gsap,t._ptLookup[n]=c={},dt[h.id]&&ct.length&&ma(),d=E===R?n:E.indexOf(o),l&&!1!==(f=new l).init(o,p||i,t,d,E)&&(t._pt=s=new pe(t._pt,o,f.name,0,1,f.render,f,0,f.priority),f._props.forEach(function(t){c[t]=s}),f.priority&&(u=1)),!l||p)for(a in i)pt[a]&&(f=_b(a,i,t,d,o,E))?f.priority&&(u=1):c[a]=s=Xt.call(t,o,a,"get",i[a],d,E,0,m.stringFilter);t._op&&t._op[n]&&t.kill(o,t._op[n]),z&&t._pt&&(Vt=t,L.killTweensOf(o,c,t.globalTime(e)),_=!t.parent,Vt=0),t._pt&&T&&(dt[h.id]=1)}u&&de(t),t._onInit&&t._onInit(t)}t._onUpdate=b,t._initted=(!t._op||t._pt)&&!_,P&&e<=0&&F.render(U,!0,!0)},Qt=function _parseFuncOrString(t,e,i,n,a){return s(t)?t.call(e,i,n,a):r(t)&&~t.indexOf("random(")?ob(t):t},Kt=vt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Zt={};ha(Kt+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return Zt[t]=1});var Gt=function(z){function Tween(e,r,i,n){var a;"number"==typeof r&&(i.duration=r,r=i,i=null);var s,o,u,h,l,f,c,d,p=(a=z.call(this,n?r:va(r))||this).vars,_=p.duration,m=p.delay,g=p.immediateRender,T=p.stagger,b=p.overwrite,x=p.keyframes,k=p.defaults,M=p.scrollTrigger,O=p.yoyoEase,P=r.parent||L,C=($(e)||J(e)?t(e[0]):"length"in r)?[e]:Ot(e);if(a._targets=C.length?ea(C):R("GSAP target "+e+" not found. https://greensock.com",!j.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=b,x||T||y(_)||y(m)){if(r=a.vars,(s=a.timeline=new Ut({data:"nested",defaults:k||{},targets:P&&"nested"===P.data?P.vars.targets:C})).kill(),s.parent=s._dp=_assertThisInitialized(a),s._start=0,T||y(_)||y(m)){if(h=C.length,c=T&&eb(T),v(T))for(l in T)~Kt.indexOf(l)&&((d=d||{})[l]=T[l]);for(o=0;o<h;o++)(u=ua(r,Zt)).stagger=0,O&&(u.yoyoEase=O),d&&yt(u,d),f=C[o],u.duration=+Qt(_,_assertThisInitialized(a),o,f,C),u.delay=(+Qt(m,_assertThisInitialized(a),o,f,C)||0)-a._delay,!T&&1===h&&u.delay&&(a._delay=m=u.delay,a._start+=m,u.delay=0),s.to(f,u,c?c(o,f,C):0),s._ease=Ft.none;s.duration()?_=m=0:a.timeline=0}else if(x){va(qa(s.vars.defaults,{ease:"none"})),s._ease=Yt(x.ease||r.ease||"none");var A,S,D,E=0;if($(x))x.forEach(function(t){return s.to(C,t,">")}),s.duration();else{for(l in u={},x)"ease"===l||"easeEach"===l||fc(l,x[l],u,x.easeEach);for(l in u)for(A=u[l].sort(function(t,e){return t.t-e.t}),o=E=0;o<A.length;o++)(D={ease:(S=A[o]).e,duration:(S.t-(o?A[o-1].t:0))/100*_})[l]=S.v,s.to(C,D,E),E+=D.duration;s.duration()<_&&s.to({},{duration:_-s.duration()})}}_||a.duration(_=s.duration())}else a.timeline=0;return!0!==b||I||(Vt=_assertThisInitialized(a),L.killTweensOf(C),Vt=0),Ka(P,_assertThisInitialized(a),i),r.reversed&&a.reverse(),r.paused&&a.paused(!0),(g||!_&&!x&&a._start===ja(P._time)&&w(g)&&function _hasNoPausedAncestors(t){return!t||t._ts&&_hasNoPausedAncestors(t.parent)}(_assertThisInitialized(a))&&"nested"!==P.data)&&(a._tTime=-V,a.render(Math.max(0,-m)||0)),M&&La(_assertThisInitialized(a),M),a}_inheritsLoose(Tween,z);var e=Tween.prototype;return e.render=function render(t,e,r){var i,n,a,s,o,u,h,l,f,c=this._time,d=this._tDur,p=this._dur,_=t<0,m=d-V<t&&!_?d:t<V?0:t;if(p){if(m!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=_){if(i=m,l=this.timeline,this._repeat){if(s=p+this._rDelay,this._repeat<-1&&_)return this.totalTime(100*s+t,e,r);if(i=ja(m%s),m===d?(a=this._repeat,i=p):((a=~~(m/s))&&a===m/s&&(i=p,a--),p<i&&(i=p)),(u=this._yoyo&&1&a)&&(f=this._yEase,i=p-i),o=Tt(this._tTime,s),i===c&&!r&&this._initted)return this._tTime=m,this;a!==o&&(l&&this._yEase&&Pb(l,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=r=1,this.render(ja(s*a),!0).invalidate()._lock=0))}if(!this._initted){if(Ma(this,_?t:i,r,e,m))return this._tTime=0,this;if(c!==this._time)return this;if(p!==this._dur)return this.render(t,e,r)}if(this._tTime=m,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(f||this._ease)(i/p),this._from&&(this.ratio=h=1-h),i&&!c&&!e&&(Ct(this,"onStart"),this._tTime!==m))return this;for(n=this._pt;n;)n.r(h,n.d),n=n._next;l&&l.render(t<0?t:!i&&u?-V:l._dur*l._ease(i/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(_&&Ca(this,t,0,r),Ct(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!e&&this.parent&&Ct(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(_&&!this._onUpdate&&Ca(this,t,0,!0),!t&&p||!(m===this._tDur&&0<this._ts||!m&&this._ts<0)||za(this,1),e||_&&!c||!(m||c||u)||(Ct(this,m===d?"onComplete":"onReverseComplete",!0),!this._prom||m<d&&0<this.timeScale()||this._prom()))}}else!function _renderZeroDurationTween(t,e,r,i){var n,a,s,o=t.ratio,u=e<0||!e&&(!t._start&&function _parentPlayheadIsBeforeStart(t){var e=t.parent;return e&&e._ts&&e._initted&&!e._lock&&(e.rawTime()<0||_parentPlayheadIsBeforeStart(e))}(t)&&(t._initted||!bt(t))||(t._ts<0||t._dp._ts<0)&&!bt(t))?0:1,h=t._rDelay,l=0;if(h&&t._repeat&&(l=kt(0,t._tDur,e),a=Tt(l,h),t._yoyo&&1&a&&(u=1-u),a!==Tt(t._tTime,h)&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==o||B||i||t._zTime===V||!e&&t._zTime){if(!t._initted&&Ma(t,e,i,r,l))return;for(s=t._zTime,t._zTime=e||(r?V:0),r=r||e&&!s,t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=l,n=t._pt;n;)n.r(u,n.d),n=n._next;e<0&&Ca(t,e,0,!0),t._onUpdate&&!r&&Ct(t,"onUpdate"),l&&t._repeat&&!r&&t.parent&&Ct(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&za(t,1),r||B||(Ct(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},e.targets=function targets(){return this._targets},e.invalidate=function invalidate(t){return t&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),z.prototype.invalidate.call(this,t)},e.resetTo=function resetTo(t,e,r,i){d||Et.wake(),this._ts||this.play();var n,a=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Ht(this,a),n=this._ease(a/this._dur),function _updatePropTweens(t,e,r,i,n,a,s){var o,u,h,l,f=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!f)for(f=t._ptCache[e]=[],h=t._ptLookup,l=t._targets.length;l--;){if((o=h[l][e])&&o.d&&o.d._pt)for(o=o.d._pt;o&&o.p!==e&&o.fp!==e;)o=o._next;if(!o)return Wt=1,t.vars[e]="+=0",Ht(t,s),Wt=0,1;f.push(o)}for(l=f.length;l--;)(o=(u=f[l])._pt||u).s=!i&&0!==i||n?o.s+(i||0)+a*o.c:i,o.c=r-o.s,u.e&&(u.e=ia(r)+Ya(u.e)),u.b&&(u.b=o.s+Ya(u.b))}(this,t,e,r,i,n,a)?this.resetTo(t,e,r,i):(Ia(this,0),this.parent||xa(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},e.kill=function kill(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?tb(this):this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Vt&&!0!==Vt.vars.overwrite)._first||tb(this),this.parent&&i!==this.timeline.totalDuration()&&Ra(this,this._dur*this.timeline._tDur/i,0,1),this}var n,a,s,o,u,h,l,f=this._targets,c=t?Ot(t):f,d=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function _arraysMatch(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(f,c))return"all"===e&&(this._pt=0),tb(this);for(n=this._op=this._op||[],"all"!==e&&(r(e)&&(u={},ha(e,function(t){return u[t]=1}),e=u),e=function _addAliasesToVars(t,e){var r,i,n,a,s=t[0]?fa(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(i in r=yt({},e),o)if(i in r)for(n=(a=o[i].split(",")).length;n--;)r[a[n]]=r[i];return r}(f,e)),l=f.length;l--;)if(~c.indexOf(f[l]))for(u in a=d[l],"all"===e?(n[l]=e,o=a,s={}):(s=n[l]=n[l]||{},o=e),o)(h=a&&a[u])&&("kill"in h.d&&!0!==h.d.kill(u)||ya(this,h,"_pt"),delete a[u]),"all"!==s&&(s[u]=1);return this._initted&&!this._pt&&p&&tb(this),this},Tween.to=function to(t,e,r){return new Tween(t,e,r)},Tween.from=function from(t,e){return Va(1,arguments)},Tween.delayedCall=function delayedCall(t,e,r,i){return new Tween(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},Tween.fromTo=function fromTo(t,e,r){return Va(2,arguments)},Tween.set=function set(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new Tween(t,e)},Tween.killTweensOf=function killTweensOf(t,e,r){return L.killTweensOf(t,e,r)},Tween}(qt);qa(Gt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ha("staggerTo,staggerFrom,staggerFromTo",function(r){Gt[r]=function(){var t=new Ut,e=Mt.call(arguments,0);return e.splice("staggerFromTo"===r?5:4,0,0),t[r].apply(t,e)}});function nc(t,e,r){return t.setAttribute(e,r)}function vc(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)}var Jt=function _setterPlain(t,e,r){return t[e]=r},$t=function _setterFunc(t,e,r){return t[e](r)},ee=function _setterFuncWithParam(t,e,r,i){return t[e](i.fp,r)},re=function _getSetter(t,e){return s(t[e])?$t:u(t[e])&&t.setAttribute?nc:Jt},ne=function _renderPlain(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},ae=function _renderBoolean(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},se=function _renderComplexString(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},oe=function _renderPropTweens(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},le=function _addPluginModifier(t,e,r,i){for(var n,a=this._pt;a;)n=a._next,a.p===i&&a.modifier(t,e,r),a=n},fe=function _killPropTweensOf(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?ya(this,i,"_pt"):i.dep||(e=1),i=r;return!e},de=function _sortPropTweensByPriority(t){for(var e,r,i,n,a=t._pt;a;){for(e=a._next,r=i;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:n)?a._prev._next=a:i=a,(a._next=r)?r._prev=a:n=a,a=e}t._pt=i},pe=(PropTween.prototype.modifier=function modifier(t,e,r){this.mSet=this.mSet||this.set,this.set=vc,this.m=t,this.mt=r,this.tween=e},PropTween);function PropTween(t,e,r,i,n,a,s,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=a||ne,this.d=s||this,this.set=o||Jt,this.pr=u||0,(this._next=t)&&(t._prev=this)}ha(vt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return ft[t]=1}),ot.TweenMax=ot.TweenLite=Gt,ot.TimelineLite=ot.TimelineMax=Ut,L=new Ut({sortChildren:!1,defaults:q,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),j.stringFilter=Eb;function Cc(t){return(Te[t]||we).map(function(t){return t()})}function Dc(){var t=Date.now(),o=[];2<t-xe&&(Cc("matchMediaInit"),ye.forEach(function(t){var e,r,i,n,a=t.queries,s=t.conditions;for(r in a)(e=h.matchMedia(a[r]).matches)&&(i=1),e!==s[r]&&(s[r]=e,n=1);n&&(t.revert(),i&&o.push(t))}),Cc("matchMediaRevert"),o.forEach(function(t){return t.onMatch(t)}),xe=t,Cc("matchMedia"))}var _e,ye=[],Te={},we=[],xe=0,ke=((_e=Context.prototype).add=function add(t,i,n){function Cw(){var t,e=l,r=a.selector;return e&&e!==a&&e.data.push(a),n&&(a.selector=cb(n)),l=a,t=i.apply(a,arguments),s(t)&&a._r.push(t),l=e,a.selector=r,a.isReverted=!1,t}s(t)&&(n=i,i=t,t=s);var a=this;return a.last=Cw,t===s?Cw(a):t?a[t]=Cw:Cw},_e.ignore=function ignore(t){var e=l;l=null,t(this),l=e},_e.getTweens=function getTweens(){var e=[];return this.data.forEach(function(t){return t instanceof Context?e.push.apply(e,t.getTweens()):t instanceof Gt&&!(t.parent&&"nested"===t.parent.data)&&e.push(t)}),e},_e.clear=function clear(){this._r.length=this.data.length=0},_e.kill=function kill(e,t){var r=this;if(e){var i=this.getTweens();this.data.forEach(function(t){"isFlip"===t.data&&(t.revert(),t.getChildren(!0,!0,!1).forEach(function(t){return i.splice(i.indexOf(t),1)}))}),i.map(function(t){return{g:t.globalTime(0),t:t}}).sort(function(t,e){return e.g-t.g||-1}).forEach(function(t){return t.t.revert(e)}),this.data.forEach(function(t){return!(t instanceof qt)&&t.revert&&t.revert(e)}),this._r.forEach(function(t){return t(e,r)}),this.isReverted=!0}else this.data.forEach(function(t){return t.kill&&t.kill()});if(this.clear(),t){var n=ye.indexOf(this);~n&&ye.splice(n,1)}},_e.revert=function revert(t){this.kill(t||{})},Context);function Context(t,e){this.selector=e&&cb(e),this.data=[],this._r=[],this.isReverted=!1,t&&this.add(t)}var Me,Oe=((Me=MatchMedia.prototype).add=function add(t,e,r){v(t)||(t={matches:t});var i,n,a,s=new ke(0,r||this.scope),o=s.conditions={};for(n in this.contexts.push(s),e=s.add("onMatch",e),s.queries=t)"all"===n?a=1:(i=h.matchMedia(t[n]))&&(ye.indexOf(s)<0&&ye.push(s),(o[n]=i.matches)&&(a=1),i.addListener?i.addListener(Dc):i.addEventListener("change",Dc));return a&&e(s),this},Me.revert=function revert(t){this.kill(t||{})},Me.kill=function kill(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},MatchMedia);function MatchMedia(t){this.contexts=[],this.scope=t}var Pe={registerPlugin:function registerPlugin(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(t){return function _createPlugin(t){var e=(t=!t.name&&t.default||t).name,r=s(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:T,render:oe,add:Xt,kill:fe,modifier:le,rawVars:0},a={targetTest:0,get:0,getSetter:re,aliases:{},register:0};if(zt(),t!==i){if(pt[e])return;qa(i,qa(ua(t,n),a)),yt(i.prototype,yt(n,ua(t,a))),pt[i.prop=e]=i,t.targetTest&&(gt.push(i),ft[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}S(e,i),t.register&&t.register(Ce,i,pe)}(t)})},timeline:function timeline(t){return new Ut(t)},getTweensOf:function getTweensOf(t,e){return L.getTweensOf(t,e)},getProperty:function getProperty(i,t,e,n){r(i)&&(i=Ot(i)[0]);var a=fa(i||{}).get,s=e?pa:oa;return"native"===e&&(e=""),i?t?s((pt[t]&&pt[t].get||a)(i,t,e,n)):function(t,e,r){return s((pt[t]&&pt[t].get||a)(i,t,e,r))}:i},quickSetter:function quickSetter(r,e,i){if(1<(r=Ot(r)).length){var n=r.map(function(t){return Ce.quickSetter(t,e,i)}),a=n.length;return function(t){for(var e=a;e--;)n[e](t)}}r=r[0]||{};var s=pt[e],o=fa(r),u=o.harness&&(o.harness.aliases||{})[e]||e,h=s?function(t){var e=new s;c._pt=0,e.init(r,i?t+i:t,c,0,[r]),e.render(1,e),c._pt&&oe(1,c)}:o.set(r,u);return s?h:function(t){return h(r,u,i?t+i:t,o,1)}},quickTo:function quickTo(t,i,e){function Ux(t,e,r){return n.resetTo(i,t,e,r)}var r,n=Ce.to(t,yt(((r={})[i]="+=0.1",r.paused=!0,r),e||{}));return Ux.tween=n,Ux},isTweening:function isTweening(t){return 0<L.getTweensOf(t,!0).length},defaults:function defaults(t){return t&&t.ease&&(t.ease=Yt(t.ease,q.ease)),ta(q,t||{})},config:function config(t){return ta(j,t||{})},registerEffect:function registerEffect(t){var i=t.name,n=t.effect,e=t.plugins,a=t.defaults,r=t.extendTimeline;(e||"").split(",").forEach(function(t){return t&&!pt[t]&&!ot[t]&&R(i+" effect requires "+t+" plugin.")}),_t[i]=function(t,e,r){return n(Ot(t),qa(e||{},a),r)},r&&(Ut.prototype[i]=function(t,e,r){return this.add(_t[i](t,v(e)?e:(r=e)&&{},this),r)})},registerEase:function registerEase(t,e){Ft[t]=Yt(e)},parseEase:function parseEase(t,e){return arguments.length?Yt(t,e):Ft},getById:function getById(t){return L.getById(t)},exportRoot:function exportRoot(t,e){void 0===t&&(t={});var r,i,n=new Ut(t);for(n.smoothChildTiming=w(t.smoothChildTiming),L.remove(n),n._dp=0,n._time=n._tTime=L._time,r=L._first;r;)i=r._next,!e&&!r._dur&&r instanceof Gt&&r.vars.onComplete===r._targets[0]||Ka(n,r,r._start-r._delay),r=i;return Ka(L,n,0),n},context:function context(t,e){return t?new ke(t,e):l},matchMedia:function matchMedia(t){return new Oe(t)},matchMediaRefresh:function matchMediaRefresh(){return ye.forEach(function(t){var e,r,i=t.conditions;for(r in i)i[r]&&(i[r]=!1,e=1);e&&t.revert()})||Dc()},addEventListener:function addEventListener(t,e){var r=Te[t]||(Te[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function removeEventListener(t,e){var r=Te[t],i=r&&r.indexOf(e);0<=i&&r.splice(i,1)},utils:{wrap:function wrap(e,t,r){var i=t-e;return $(e)?lb(e,wrap(0,e.length),t):Wa(r,function(t){return(i+(t-e)%i)%i+e})},wrapYoyo:function wrapYoyo(e,t,r){var i=t-e,n=2*i;return $(e)?lb(e,wrapYoyo(0,e.length-1),t):Wa(r,function(t){return e+(i<(t=(n+(t-e)%n)%n||0)?n-t:t)})},distribute:eb,random:hb,snap:gb,normalize:function normalize(t,e,r){return Pt(t,e,0,1,r)},getUnit:Ya,clamp:function clamp(e,r,t){return Wa(t,function(t){return kt(e,r,t)})},splitColor:zb,toArray:Ot,selector:cb,mapRange:Pt,pipe:function pipe(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce(function(t,e){return e(t)},t)}},unitize:function unitize(e,r){return function(t){return e(parseFloat(t))+(r||Ya(t))}},interpolate:function interpolate(e,i,t,n){var a=isNaN(e+i)?0:function(t){return(1-t)*e+t*i};if(!a){var s,o,u,h,l,f=r(e),c={};if(!0===t&&(n=1)&&(t=null),f)e={p:e},i={p:i};else if($(e)&&!$(i)){for(u=[],h=e.length,l=h-2,o=1;o<h;o++)u.push(interpolate(e[o-1],e[o]));h--,a=function func(t){t*=h;var e=Math.min(l,~~t);return u[e](t-e)},t=i}else n||(e=yt($(e)?[]:{},e));if(!u){for(s in i)Xt.call(c,e,s,"get",i[s]);a=function func(t){return oe(t,c)||(f?e.p:e)}}}return Wa(t,a)},shuffle:db},install:P,effects:_t,ticker:Et,updateRoot:Ut.updateRoot,plugins:pt,globalTimeline:L,core:{PropTween:pe,globals:S,Tween:Gt,Timeline:Ut,Animation:qt,getCache:fa,_removeLinkedListItem:ya,reverting:function reverting(){return B},context:function context(t){return t&&l&&(l.data.push(t),t._ctx=l),l},suppressOverwrites:function suppressOverwrites(t){return I=t}}};ha("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Pe[t]=Gt[t]}),Et.add(Ut.updateRoot),c=Pe.to({},{duration:0});function Hc(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r}function Jc(t,a){return{name:t,rawVars:1,init:function init(t,n,e){e._onInit=function(t){var e,i;if(r(n)&&(e={},ha(n,function(t){return e[t]=1}),n=e),a){for(i in e={},n)e[i]=a(n[i]);n=e}!function _addModifiers(t,e){var r,i,n,a=t._targets;for(r in e)for(i=a.length;i--;)(n=(n=t._ptLookup[i][r])&&n.d)&&(n._pt&&(n=Hc(n,r)),n&&n.modifier&&n.modifier(e[r],t,a[i],r))}(t,n)}}}}var Ce=Pe.registerPlugin({name:"attr",init:function init(t,e,r,i,n){var a,s,o;for(a in this.tween=r,e)o=t.getAttribute(a)||"",(s=this.add(t,"setAttribute",(o||0)+"",e[a],i,n,0,0,a)).op=a,s.b=o,this._props.push(a)},render:function render(t,e){for(var r=e._pt;r;)B?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",init:function init(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},Jc("roundProps",fb),Jc("modifiers"),Jc("snap",gb))||Pe;Gt.version=Ut.version=Ce.version="3.11.3",o=1,x()&&zt();function td(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function ud(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function vd(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)}function wd(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)}function xd(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)}function yd(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)}function zd(t,e,r){return t.style[e]=r}function Ad(t,e,r){return t.style.setProperty(e,r)}function Bd(t,e,r){return t._gsap[e]=r}function Cd(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r}function Dd(t,e,r,i,n){var a=t._gsap;a.scaleX=a.scaleY=r,a.renderTransform(n,a)}function Ed(t,e,r,i,n){var a=t._gsap;a[e]=r,a.renderTransform(n,a)}function Hd(t,e){var r=this,i=this.target,n=i.style;if(t in rr){if(this.tfm=this.tfm||{},"transform"!==t&&(~(t=hr[t]||t).indexOf(",")?t.split(",").forEach(function(t){return r.tfm[t]=mr(i,t)}):this.tfm[t]=i._gsap.x?i._gsap[t]:mr(i,t)),0<=this.props.indexOf(lr))return;i._gsap.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(fr,e,"")),t=lr}(n||e)&&this.props.push(t,e,n[t])}function Id(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))}function Jd(){var t,e,r=this.props,i=this.target,n=i.style,a=i._gsap;for(t=0;t<r.length;t+=3)r[t+1]?i[r[t]]=r[t+2]:r[t+2]?n[r[t]]=r[t+2]:n.removeProperty(r[t].replace(sr,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)a[e]=this.tfm[e];a.svg&&(a.renderTransform(),i.setAttribute("data-svg-origin",this.svgo||"")),!(t=Fe())||t.isStart||n[lr]||(Id(n),a.uncache=1)}}function Kd(t,e){var r={target:t,props:[],revert:Jd,save:Hd};return e&&e.split(",").forEach(function(t){return r.save(t)}),r}function Md(t,e){var r=Se.createElementNS?Se.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Se.createElement(t);return r.style?r:Se.createElement(t)}function Nd(t,e,r){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(sr,"-$1").toLowerCase())||i.getPropertyValue(e)||!r&&Nd(t,dr(e)||e,1)||""}function Qd(){(function _windowExists(){return"undefined"!=typeof window})()&&window.document&&(Ae=window,Se=Ae.document,Re=Se.documentElement,Ee=Md("div")||{style:{}},Md("div"),lr=dr(lr),fr=lr+"Origin",Ee.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Ie=!!dr("perspective"),Fe=Ce.core.reverting,De=1)}function Rd(t){var e,r=Md("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,n=this.nextSibling,a=this.style.cssText;if(Re.appendChild(r),r.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=Rd}catch(t){}else this._gsapBBox&&(e=this._gsapBBox());return i&&(n?i.insertBefore(this,n):i.appendChild(this)),Re.removeChild(r),this.style.cssText=a,e}function Sd(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])}function Td(e){var r;try{r=e.getBBox()}catch(t){r=Rd.call(e,!0)}return r&&(r.width||r.height)||e.getBBox===Rd||(r=Rd.call(e,!0)),!r||r.width||r.x||r.y?r:{x:+Sd(e,["x","cx","x1"])||0,y:+Sd(e,["y","cy","y1"])||0,width:0,height:0}}function Ud(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Td(t))}function Vd(t,e){if(e){var r=t.style;e in rr&&e!==fr&&(e=lr),r.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty(e.replace(sr,"-$1").toLowerCase())):r.removeAttribute(e)}}function Wd(t,e,r,i,n,a){var s=new pe(t._pt,e,r,0,1,a?yd:xd);return(t._pt=s).b=i,s.e=n,t._props.push(r),s}function Zd(t,e,r,i){var n,a,s,o,u=parseFloat(r)||0,h=(r+"").trim().substr((u+"").length)||"px",l=Ee.style,f=or.test(e),c="svg"===t.tagName.toLowerCase(),d=(c?"client":"offset")+(f?"Width":"Height"),p="px"===i,_="%"===i;return i===h||!u||pr[i]||pr[h]?u:("px"===h||p||(u=Zd(t,e,r,"px")),o=t.getCTM&&Ud(t),!_&&"%"!==h||!rr[e]&&!~e.indexOf("adius")?(l[f?"width":"height"]=100+(p?h:i),a=~e.indexOf("adius")||"em"===i&&t.appendChild&&!c?t:t.parentNode,o&&(a=(t.ownerSVGElement||{}).parentNode),a&&a!==Se&&a.appendChild||(a=Se.body),(s=a._gsap)&&_&&s.width&&f&&s.time===Et.time&&!s.uncache?ia(u/s.width*100):(!_&&"%"!==h||_r[Nd(a,"display")]||(l.position=Nd(t,"position")),a===t&&(l.position="static"),a.appendChild(Ee),n=Ee[d],a.removeChild(Ee),l.position="absolute",f&&_&&((s=fa(a)).time=Et.time,s.width=a[d]),ia(p?n*u/100:n&&u?100/n*u:0))):(n=o?t.getBBox()[f?"width":"height"]:t[d],ia(_?u/n*100:u/100*n)))}function _d(t,e,r,i){if(!r||"none"===r){var n=dr(e,t,1),a=n&&Nd(t,n,1);a&&a!==r?(e=n,r=a):"borderColor"===e&&(r=Nd(t,"borderTopColor"))}var s,o,u,h,l,f,c,d,p,_,m,g=new pe(this._pt,t.style,e,0,1,se),v=0,y=0;if(g.b=r,g.e=i,r+="","auto"===(i+="")&&(t.style[e]=i,i=Nd(t,e)||i,t.style[e]=r),Eb(s=[r,i]),i=s[1],u=(r=s[0]).match(rt)||[],(i.match(rt)||[]).length){for(;o=rt.exec(i);)c=o[0],p=i.substring(v,o.index),l?l=(l+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(l=1),c!==(f=u[y++]||"")&&(h=parseFloat(f)||0,m=f.substr((h+"").length),"="===c.charAt(1)&&(c=ka(h,c)+m),d=parseFloat(c),_=c.substr((d+"").length),v=rt.lastIndex-_.length,_||(_=_||j.units[e]||m,v===i.length&&(i+=_,g.e+=_)),m!==_&&(h=Zd(t,e,f,_)||0),g._pt={_next:g._pt,p:p||1===y?p:",",s:h,c:d-h,m:l&&l<4||"zIndex"===e?Math.round:0});g.c=v<i.length?i.substring(v,i.length):""}else g.r="display"===e&&"none"===i?yd:xd;return nt.test(i)&&(g.e=0),this._pt=g}function be(t){var e=t.split(" "),r=e[0],i=e[1]||"50%";return"top"!==r&&"bottom"!==r&&"left"!==i&&"right"!==i||(t=r,r=i,i=t),e[0]=gr[r]||r,e[1]=gr[i]||i,e.join(" ")}function ce(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,i,n,a=e.t,s=a.style,o=e.u,u=a._gsap;if("all"===o||!0===o)s.cssText="",i=1;else for(n=(o=o.split(",")).length;-1<--n;)r=o[n],rr[r]&&(i=1,r="transformOrigin"===r?fr:lr),Vd(a,r);i&&(Vd(a,lr),u&&(u.svg&&a.removeAttribute("transform"),br(a,1),u.uncache=1,Id(s)))}}function ge(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t}function he(t){var e=Nd(t,lr);return ge(e)?yr:e.substr(7).match(et).map(ia)}function ie(t,e){var r,i,n,a,s=t._gsap||fa(t),o=t.style,u=he(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(n=t.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?yr:u:(u!==yr||t.offsetParent||t===Re||s.svg||(n=o.display,o.display="block",(r=t.parentNode)&&t.offsetParent||(a=1,i=t.nextElementSibling,Re.appendChild(t)),u=he(t),n?o.display=n:Vd(t,"display"),a&&(i?r.insertBefore(t,i):r?r.appendChild(t):Re.removeChild(t))),e&&6<u.length?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)}function je(t,e,r,i,n,a){var s,o,u,h=t._gsap,l=n||ie(t,!0),f=h.xOrigin||0,c=h.yOrigin||0,d=h.xOffset||0,p=h.yOffset||0,_=l[0],m=l[1],g=l[2],v=l[3],y=l[4],T=l[5],b=e.split(" "),w=parseFloat(b[0])||0,x=parseFloat(b[1])||0;r?l!==yr&&(o=_*v-m*g)&&(u=w*(-m/o)+x*(_/o)-(_*T-m*y)/o,w=w*(v/o)+x*(-g/o)+(g*T-v*y)/o,x=u):(w=(s=Td(t)).x+(~b[0].indexOf("%")?w/100*s.width:w),x=s.y+(~(b[1]||b[0]).indexOf("%")?x/100*s.height:x)),i||!1!==i&&h.smooth?(y=w-f,T=x-c,h.xOffset=d+(y*_+T*g)-y,h.yOffset=p+(y*m+T*v)-T):h.xOffset=h.yOffset=0,h.xOrigin=w,h.yOrigin=x,h.smooth=!!i,h.origin=e,h.originIsAbsolute=!!r,t.style[fr]="0px 0px",a&&(Wd(a,h,"xOrigin",f,w),Wd(a,h,"yOrigin",c,x),Wd(a,h,"xOffset",d,h.xOffset),Wd(a,h,"yOffset",p,h.yOffset)),t.setAttribute("data-svg-origin",w+" "+x)}function me(t,e,r){var i=Ya(e);return ia(parseFloat(e)+parseFloat(Zd(t,"x",r+"px",i)))+i}function te(t,e,i,n,a){var s,o,u=360,h=r(a),l=parseFloat(a)*(h&&~a.indexOf("rad")?ir:1)-n,f=n+l+"deg";return h&&("short"===(s=a.split("_")[1])&&(l%=u)!==l%180&&(l+=l<0?u:-u),"cw"===s&&l<0?l=(l+36e9)%u-~~(l/u)*u:"ccw"===s&&0<l&&(l=(l-36e9)%u-~~(l/u)*u)),t._pt=o=new pe(t._pt,e,i,n,l,ud),o.e=f,o.u="deg",t._props.push(i),o}function ue(t,e){for(var r in e)t[r]=e[r];return t}function ve(t,e,r){var i,n,a,s,o,u,h,l=ue({},r._gsap),f=r.style;for(n in l.svg?(a=r.getAttribute("transform"),r.setAttribute("transform",""),f[lr]=e,i=br(r,1),Vd(r,lr),r.setAttribute("transform",a)):(a=getComputedStyle(r)[lr],f[lr]=e,i=br(r,1),f[lr]=a),rr)(a=l[n])!==(s=i[n])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)<0&&(o=Ya(a)!==(h=Ya(s))?Zd(r,n,a,h):parseFloat(a),u=parseFloat(s),t._pt=new pe(t._pt,i,n,o,u-o,td),t._pt.u=h||0,t._props.push(n));ue(i,l)}var Ae,Se,Re,De,Ee,ze,Fe,Ie,Be=Ft.Power0,Le=Ft.Power1,Ye=Ft.Power2,Ne=Ft.Power3,qe=Ft.Power4,Ue=Ft.Linear,Ve=Ft.Quad,We=Ft.Cubic,Xe=Ft.Quart,He=Ft.Quint,Qe=Ft.Strong,Ke=Ft.Elastic,Ze=Ft.Back,Ge=Ft.SteppedEase,Je=Ft.Bounce,$e=Ft.Sine,tr=Ft.Expo,er=Ft.Circ,rr={},ir=180/Math.PI,nr=Math.PI/180,ar=Math.atan2,sr=/([A-Z])/g,or=/(left|right|width|margin|padding|x)/i,ur=/[\s,\(]\S/,hr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},lr="transform",fr=lr+"Origin",cr="O,Moz,ms,Ms,Webkit".split(","),dr=function _checkPropPrefix(t,e,r){var i=(e||Ee).style,n=5;if(t in i&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);n--&&!(cr[n]+t in i););return n<0?null:(3===n?"ms":0<=n?cr[n]:"")+t},pr={deg:1,rad:1,turn:1},_r={grid:1,flex:1},mr=function _get(t,e,r,i){var n;return De||Qd(),e in hr&&"transform"!==e&&~(e=hr[e]).indexOf(",")&&(e=e.split(",")[0]),rr[e]&&"transform"!==e?(n=br(t,i),n="transformOrigin"!==e?n[e]:n.svg?n.origin:wr(Nd(t,fr))+" "+n.zOrigin+"px"):(n=t.style[e])&&"auto"!==n&&!i&&!~(n+"").indexOf("calc(")||(n=vr[e]&&vr[e](t,e,r)||Nd(t,e)||ga(t,e)||("opacity"===e?1:0)),r&&!~(n+"").trim().indexOf(" ")?Zd(t,e,n,r)+r:n},gr={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},vr={clearProps:function clearProps(t,e,r,i,n){if("isFromStart"!==n.data){var a=t._pt=new pe(t._pt,e,r,0,0,ce);return a.u=i,a.pr=-10,a.tween=n,t._props.push(r),1}}},yr=[1,0,0,1,0,0],Tr={},br=function _parseTransform(t,e){var r=t._gsap||new jt(t);if("x"in r&&!e&&!r.uncache)return r;var i,n,a,s,o,u,h,l,f,c,d,p,_,m,g,v,y,T,b,w,x,k,M,O,P,C,A,S,R,D,E,z,F=t.style,I=r.scaleX<0,B="deg",L=getComputedStyle(t),Y=Nd(t,fr)||"0";return i=n=a=u=h=l=f=c=d=0,s=o=1,r.svg=!(!t.getCTM||!Ud(t)),L.translate&&("none"===L.translate&&"none"===L.scale&&"none"===L.rotate||(F[lr]=("none"!==L.translate?"translate3d("+(L.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==L.rotate?"rotate("+L.rotate+") ":"")+("none"!==L.scale?"scale("+L.scale.split(" ").join(",")+") ":"")+("none"!==L[lr]?L[lr]:"")),F.scale=F.rotate=F.translate="none"),m=ie(t,r.svg),r.svg&&(O=r.uncache?(P=t.getBBox(),Y=r.xOrigin-P.x+"px "+(r.yOrigin-P.y)+"px",""):!e&&t.getAttribute("data-svg-origin"),je(t,O||Y,!!O||r.originIsAbsolute,!1!==r.smooth,m)),p=r.xOrigin||0,_=r.yOrigin||0,m!==yr&&(T=m[0],b=m[1],w=m[2],x=m[3],i=k=m[4],n=M=m[5],6===m.length?(s=Math.sqrt(T*T+b*b),o=Math.sqrt(x*x+w*w),u=T||b?ar(b,T)*ir:0,(f=w||x?ar(w,x)*ir+u:0)&&(o*=Math.abs(Math.cos(f*nr))),r.svg&&(i-=p-(p*T+_*w),n-=_-(p*b+_*x))):(z=m[6],D=m[7],A=m[8],S=m[9],R=m[10],E=m[11],i=m[12],n=m[13],a=m[14],h=(g=ar(z,R))*ir,g&&(O=k*(v=Math.cos(-g))+A*(y=Math.sin(-g)),P=M*v+S*y,C=z*v+R*y,A=k*-y+A*v,S=M*-y+S*v,R=z*-y+R*v,E=D*-y+E*v,k=O,M=P,z=C),l=(g=ar(-w,R))*ir,g&&(v=Math.cos(-g),E=x*(y=Math.sin(-g))+E*v,T=O=T*v-A*y,b=P=b*v-S*y,w=C=w*v-R*y),u=(g=ar(b,T))*ir,g&&(O=T*(v=Math.cos(g))+b*(y=Math.sin(g)),P=k*v+M*y,b=b*v-T*y,M=M*v-k*y,T=O,k=P),h&&359.9<Math.abs(h)+Math.abs(u)&&(h=u=0,l=180-l),s=ia(Math.sqrt(T*T+b*b+w*w)),o=ia(Math.sqrt(M*M+z*z)),g=ar(k,M),f=2e-4<Math.abs(g)?g*ir:0,d=E?1/(E<0?-E:E):0),r.svg&&(O=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!ge(Nd(t,lr)),O&&t.setAttribute("transform",O))),90<Math.abs(f)&&Math.abs(f)<270&&(I?(s*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,f+=f<=0?180:-180)),e=e||r.uncache,r.x=i-((r.xPercent=i&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-i)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+"px",r.y=n-((r.yPercent=n&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-n)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+"px",r.z=a+"px",r.scaleX=ia(s),r.scaleY=ia(o),r.rotation=ia(u)+B,r.rotationX=ia(h)+B,r.rotationY=ia(l)+B,r.skewX=f+B,r.skewY=c+B,r.transformPerspective=d+"px",(r.zOrigin=parseFloat(Y.split(" ")[2])||0)&&(F[fr]=wr(Y)),r.xOffset=r.yOffset=0,r.force3D=j.force3D,r.renderTransform=r.svg?Cr:Ie?Pr:xr,r.uncache=0,r},wr=function _firstTwoOnly(t){return(t=t.split(" "))[0]+" "+t[1]},xr=function _renderNon3DTransforms(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Pr(t,e)},kr="0deg",Mr="0px",Or=") ",Pr=function _renderCSSTransforms(t,e){var r=e||this,i=r.xPercent,n=r.yPercent,a=r.x,s=r.y,o=r.z,u=r.rotation,h=r.rotationY,l=r.rotationX,f=r.skewX,c=r.skewY,d=r.scaleX,p=r.scaleY,_=r.transformPerspective,m=r.force3D,g=r.target,v=r.zOrigin,y="",T="auto"===m&&t&&1!==t||!0===m;if(v&&(l!==kr||h!==kr)){var b,w=parseFloat(h)*nr,x=Math.sin(w),k=Math.cos(w);w=parseFloat(l)*nr,b=Math.cos(w),a=me(g,a,x*b*-v),s=me(g,s,-Math.sin(w)*-v),o=me(g,o,k*b*-v+v)}_!==Mr&&(y+="perspective("+_+Or),(i||n)&&(y+="translate("+i+"%, "+n+"%) "),!T&&a===Mr&&s===Mr&&o===Mr||(y+=o!==Mr||T?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+Or),u!==kr&&(y+="rotate("+u+Or),h!==kr&&(y+="rotateY("+h+Or),l!==kr&&(y+="rotateX("+l+Or),f===kr&&c===kr||(y+="skew("+f+", "+c+Or),1===d&&1===p||(y+="scale("+d+", "+p+Or),g.style[lr]=y||"translate(0, 0)"},Cr=function _renderSVGTransforms(t,e){var r,i,n,a,s,o=e||this,u=o.xPercent,h=o.yPercent,l=o.x,f=o.y,c=o.rotation,d=o.skewX,p=o.skewY,_=o.scaleX,m=o.scaleY,g=o.target,v=o.xOrigin,y=o.yOrigin,T=o.xOffset,b=o.yOffset,w=o.forceCSS,x=parseFloat(l),k=parseFloat(f);c=parseFloat(c),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),c+=p),c||d?(c*=nr,d*=nr,r=Math.cos(c)*_,i=Math.sin(c)*_,n=Math.sin(c-d)*-m,a=Math.cos(c-d)*m,d&&(p*=nr,s=Math.tan(d-p),n*=s=Math.sqrt(1+s*s),a*=s,p&&(s=Math.tan(p),r*=s=Math.sqrt(1+s*s),i*=s)),r=ia(r),i=ia(i),n=ia(n),a=ia(a)):(r=_,a=m,i=n=0),(x&&!~(l+"").indexOf("px")||k&&!~(f+"").indexOf("px"))&&(x=Zd(g,"x",l,"px"),k=Zd(g,"y",f,"px")),(v||y||T||b)&&(x=ia(x+v-(v*r+y*n)+T),k=ia(k+y-(v*i+y*a)+b)),(u||h)&&(s=g.getBBox(),x=ia(x+u/100*s.width),k=ia(k+h/100*s.height)),s="matrix("+r+","+i+","+n+","+a+","+x+","+k+")",g.setAttribute("transform",s),w&&(g.style[lr]=s)};ha("padding,margin,Width,Radius",function(e,r){var t="Right",i="Bottom",n="Left",o=(r<3?["Top",t,i,n]:["Top"+n,"Top"+t,i+t,i+n]).map(function(t){return r<2?e+t:"border"+t+e});vr[1<r?"border"+e:e]=function(e,t,r,i,n){var a,s;if(arguments.length<4)return a=o.map(function(t){return mr(e,t,r)}),5===(s=a.join(" ")).split(a[0]).length?a[0]:s;a=(i+"").split(" "),s={},o.forEach(function(t,e){return s[t]=a[e]=a[e]||a[(e-1)/2|0]}),e.init(t,s,n)}});var Ar,Sr,Rr,Dr={name:"css",register:Qd,targetTest:function targetTest(t){return t.style&&t.nodeType},init:function init(t,e,i,n,a){var s,o,u,h,l,f,c,d,p,_,m,g,v,y,T,b,w=this._props,x=t.style,k=i.vars.startAt;for(c in De||Qd(),this.styles=this.styles||Kd(t),b=this.styles.props,this.tween=i,e)if("autoRound"!==c&&(o=e[c],!pt[c]||!_b(c,e,i,n,t,a)))if(l=typeof o,f=vr[c],"function"===l&&(l=typeof(o=o.call(i,n,t,a))),"string"===l&&~o.indexOf("random(")&&(o=ob(o)),f)f(this,t,c,o,i)&&(T=1);else if("--"===c.substr(0,2))s=(getComputedStyle(t).getPropertyValue(c)+"").trim(),o+="",Rt.lastIndex=0,Rt.test(s)||(d=Ya(s),p=Ya(o)),p?d!==p&&(s=Zd(t,c,s,p)+p):d&&(o+=d),this.add(x,"setProperty",s,o,n,a,0,0,c),w.push(c),b.push(c,0,x[c]);else if("undefined"!==l){if(k&&c in k?(s="function"==typeof k[c]?k[c].call(i,n,t,a):k[c],r(s)&&~s.indexOf("random(")&&(s=ob(s)),Ya(s+"")||(s+=j.units[c]||Ya(mr(t,c))||""),"="===(s+"").charAt(1)&&(s=mr(t,c))):s=mr(t,c),h=parseFloat(s),(_="string"===l&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),u=parseFloat(o),c in hr&&("autoAlpha"===c&&(1===h&&"hidden"===mr(t,"visibility")&&u&&(h=0),b.push("visibility",0,x.visibility),Wd(this,x,"visibility",h?"inherit":"hidden",u?"inherit":"hidden",!u)),"scale"!==c&&"transform"!==c&&~(c=hr[c]).indexOf(",")&&(c=c.split(",")[0])),m=c in rr)if(this.styles.save(c),g||((v=t._gsap).renderTransform&&!e.parseTransform||br(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new pe(this._pt,x,lr,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===c)this._pt=new pe(this._pt,v,"scaleY",h,(_?ka(h,_+u):u)-h||0,td),this._pt.u=0,w.push("scaleY",c),c+="X";else{if("transformOrigin"===c){b.push(fr,0,x[fr]),o=be(o),v.svg?je(t,o,0,y,0,this):((p=parseFloat(o.split(" ")[2])||0)!==v.zOrigin&&Wd(this,v,"zOrigin",v.zOrigin,p),Wd(this,x,c,wr(s),wr(o)));continue}if("svgOrigin"===c){je(t,o,1,y,0,this);continue}if(c in Tr){te(this,v,c,h,_?ka(h,_+o):o);continue}if("smoothOrigin"===c){Wd(this,v,"smooth",v.smooth,o);continue}if("force3D"===c){v[c]=o;continue}if("transform"===c){ve(this,o,t);continue}}else c in x||(c=dr(c)||c);if(m||(u||0===u)&&(h||0===h)&&!ur.test(o)&&c in x)u=u||0,(d=(s+"").substr((h+"").length))!==(p=Ya(o)||(c in j.units?j.units[c]:d))&&(h=Zd(t,c,s,p)),this._pt=new pe(this._pt,m?v:x,c,h,(_?ka(h,_+u):u)-h,m||"px"!==p&&"zIndex"!==c||!1===e.autoRound?td:wd),this._pt.u=p||0,d!==p&&"%"!==p&&(this._pt.b=s,this._pt.r=vd);else if(c in x)_d.call(this,t,c,s,_?_+o:o);else{if(!(c in t)){Q(c,o);continue}this.add(t,c,s||t[c],_?_+o:o,n,a)}m||(c in x?b.push(c,0,x[c]):b.push(c,1,s||t[c])),w.push(c)}T&&de(this)},render:function render(t,e){if(e.tween._time||!Fe())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:mr,aliases:hr,getSetter:function getSetter(t,e,r){var i=hr[e];return i&&i.indexOf(",")<0&&(e=i),e in rr&&e!==fr&&(t._gsap.x||mr(t,"x"))?r&&ze===r?"scale"===e?Cd:Bd:(ze=r||{})&&("scale"===e?Dd:Ed):t.style&&!u(t.style[e])?zd:~e.indexOf("-")?Ad:re(t,e)},core:{_removeProperty:Vd,_getMatrix:ie}};Ce.utils.checkPrefix=dr,Ce.core.getStyleSaver=Kd,Rr=ha((Ar="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Sr="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){rr[t]=1}),ha(Sr,function(t){j.units[t]="deg",Tr[t]=1}),hr[Rr[13]]=Ar+","+Sr,ha("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");hr[e[1]]=Rr[e[0]]}),ha("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){j.units[t]="px"}),Ce.registerPlugin(Dr);var Er=Ce.registerPlugin(Dr)||Ce,zr=Er.core.Tween;e.Back=Ze,e.Bounce=Je,e.CSSPlugin=Dr,e.Circ=er,e.Cubic=We,e.Elastic=Ke,e.Expo=tr,e.Linear=Ue,e.Power0=Be,e.Power1=Le,e.Power2=Ye,e.Power3=Ne,e.Power4=qe,e.Quad=Ve,e.Quart=Xe,e.Quint=He,e.Sine=$e,e.SteppedEase=Ge,e.Strong=Qe,e.TimelineLite=Ut,e.TimelineMax=Ut,e.TweenLite=Gt,e.TweenMax=zr,e.default=Er,e.gsap=Er;if(typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})}else{delete e.default}});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function k(){return"undefined"!=typeof window}function l(){return u||k()&&(u=window.gsap)&&u.registerPlugin&&u}function m(e){return"string"==typeof e}function n(e){return"function"==typeof e}function o(e,t){var o="x"===t?"Width":"Height",n="scroll"+o,r="client"+o;return e===T||e===i||e===c?Math.max(i[n],c[n])-(T["inner"+o]||i[r]||c[r]):e[n]-e["offset"+o]}function p(e,t){var o="scroll"+("x"===t?"Left":"Top");return e===T&&(null!=e.pageXOffset?o="page"+t.toUpperCase()+"Offset":e=null!=i[o]?i:c),function(){return e[o]}}function r(e,t){if(!(e=f(e)[0])||!e.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var o=e.getBoundingClientRect(),n=!t||t===T||t===c,r=n?{top:i.clientTop-(T.pageYOffset||i.scrollTop||c.scrollTop||0),left:i.clientLeft-(T.pageXOffset||i.scrollLeft||c.scrollLeft||0)}:t.getBoundingClientRect(),l={x:o.left-r.left,y:o.top-r.top};return!n&&t&&(l.x+=p(t,"x")(),l.y+=p(t,"y")()),l}function s(e,t,n,l,s){return isNaN(e)||"object"==typeof e?m(e)&&"="===e.charAt(1)?parseFloat(e.substr(2))*("-"===e.charAt(0)?-1:1)+l-s:"max"===e?o(t,n)-s:Math.min(o(t,n),r(e,t)[n]-s):parseFloat(e)-s}function t(){u=l(),k()&&u&&document.body&&(T=window,c=document.body,i=document.documentElement,f=u.utils.toArray,u.config({autoKillThreshold:7}),v=u.config(),a=1)}var u,a,T,i,c,f,v,y={version:"3.11.3",name:"scrollTo",rawVars:1,register:function register(e){u=e,t()},init:function init(e,o,r,l,i){a||t();var c=this,f=u.getProperty(e,"scrollSnapType");c.isWin=e===T,c.target=e,c.tween=r,o=function _clean(e,t,o,r){if(n(e)&&(e=e(t,o,r)),"object"!=typeof e)return m(e)&&"max"!==e&&"="!==e.charAt(1)?{x:e,y:e}:{y:e};if(e.nodeType)return{y:e,x:e};var l,s={};for(l in e)s[l]="onAutoKill"!==l&&n(e[l])?e[l](t,o,r):e[l];return s}(o,l,e,i),c.vars=o,c.autoKill=!!o.autoKill,c.getX=p(e,"x"),c.getY=p(e,"y"),c.x=c.xPrev=c.getX(),c.y=c.yPrev=c.getY(),"smooth"===u.getProperty(e,"scrollBehavior")&&u.set(e,{scrollBehavior:"auto"}),f&&"none"!==f&&(c.snap=1,c.snapInline=e.style.scrollSnapType,e.style.scrollSnapType="none"),null!=o.x?(c.add(c,"x",c.x,s(o.x,e,"x",c.x,o.offsetX||0),l,i),c._props.push("scrollTo_x")):c.skipX=1,null!=o.y?(c.add(c,"y",c.y,s(o.y,e,"y",c.y,o.offsetY||0),l,i),c._props.push("scrollTo_y")):c.skipY=1},render:function render(e,t){for(var n,r,l,s,i,p=t._pt,c=t.target,f=t.tween,u=t.autoKill,a=t.xPrev,y=t.yPrev,d=t.isWin,x=t.snap,g=t.snapInline;p;)p.r(e,p.d),p=p._next;n=d||!t.skipX?t.getX():a,l=(r=d||!t.skipY?t.getY():y)-y,s=n-a,i=v.autoKillThreshold,t.x<0&&(t.x=0),t.y<0&&(t.y=0),u&&(!t.skipX&&(i<s||s<-i)&&n<o(c,"x")&&(t.skipX=1),!t.skipY&&(i<l||l<-i)&&r<o(c,"y")&&(t.skipY=1),t.skipX&&t.skipY&&(f.kill(),t.vars.onAutoKill&&t.vars.onAutoKill.apply(f,t.vars.onAutoKillParams||[]))),d?T.scrollTo(t.skipX?n:t.x,t.skipY?r:t.y):(t.skipY||(c.scrollTop=t.y),t.skipX||(c.scrollLeft=t.x)),!x||1!==e&&0!==e||(r=c.scrollTop,n=c.scrollLeft,g?c.style.scrollSnapType=g:c.style.removeProperty("scroll-snap-type"),c.scrollTop=r+1,c.scrollLeft=n+1,c.scrollTop=r,c.scrollLeft=n),t.xPrev=t.x,t.yPrev=t.y},kill:function kill(e){var t="scrollTo"===e;!t&&"scrollTo_x"!==e||(this.skipX=1),!t&&"scrollTo_y"!==e||(this.skipY=1)}};y.max=o,y.getOffset=r,y.buildGetter=p,l()&&u.registerPlugin(y),e.ScrollToPlugin=y,e.default=y;if(typeof(window)==="undefined"||window!==e){Object.defineProperty(e,"__esModule",{value:!0})}else{delete e.default}});
(function(){ "use strict"; var ua=navigator.userAgent.toLowerCase(); if(( ua.indexOf('webkit') > -1||ua.indexOf('opera') > -1||ua.indexOf('msie') > -1)&&document.getElementById&&window.addEventListener){ window.addEventListener('hashchange', function(){ var element=document.getElementById(location.hash.substring(1) ); if(element){ if(! /^(?:a|select|input|button|textarea)$/i.test(element.nodeName) ){ element.tabIndex=-1; } element.focus(); }}, false); }})(); (function(){ "use strict"; var $window=jQuery(window), $document=jQuery(document), $adminbar=jQuery('#wpadminbar'), $body=jQuery('body'); if(typeof ABELLE_STORAGE=='undefined'){ window.ABELLE_STORAGE={};} window.abelle_storage_get=function(var_name){ return abelle_isset(ABELLE_STORAGE[var_name]) ? ABELLE_STORAGE[var_name]:''; }; window.abelle_storage_set=function(var_name, value){ ABELLE_STORAGE[var_name]=value; }; window.abelle_storage_inc=function(var_name){ var value=arguments[1]===undefined ? 1:arguments[1]; ABELLE_STORAGE[var_name] +=value; }; window.abelle_storage_concat=function(var_name, value){ ABELLE_STORAGE[var_name] +='' + value; }; window.abelle_storage_get_array=function(var_name, key){ return abelle_isset(ABELLE_STORAGE[var_name][key]) ? ABELLE_STORAGE[var_name][key]:''; }; window.abelle_storage_set_array=function(var_name, key, value){ if(! abelle_isset(ABELLE_STORAGE[var_name])){ ABELLE_STORAGE[var_name]={};} ABELLE_STORAGE[var_name][key]=value; }; window.abelle_storage_inc_array=function(var_name, key){ var value=arguments[2]===undefined ? 1:arguments[2]; ABELLE_STORAGE[var_name][key] +=value; }; window.abelle_storage_concat_array=function(var_name, key, value){ ABELLE_STORAGE[var_name][key] +='' + value; }; window.abelle_isset=function(obj){ return typeof(obj)!='undefined'; }; window.abelle_empty=function(obj){ return typeof(obj)=='undefined'||(typeof(obj)=='object'&&obj===null)||(typeof(obj)=='array'&&obj.length===0)||(typeof(obj)=='string'&&abelle_alltrim(obj)==='')||obj===0; }; window.abelle_is_array=function(obj){ return typeof(obj)=='array'; }; window.abelle_is_object=function(obj){ return typeof(obj)=='object'; }; window.abelle_clone_object=function(obj){ if(obj===null||typeof(obj)!='object'){ return obj; } var temp={}; for (var key in obj){ temp[key]=abelle_clone_object(obj[key]); } return temp; }; window.abelle_merge_objects=function(obj1, obj2){ for (var i in obj2){ obj1[i]=obj2[i]; } return obj1; }; window.abelle_array_merge=function(a1, a2){ for (var i in a2){ a1[i]=a2[i]; } return a1; }; window.abelle_array_first_key=function(arr){ var rez=null; for (var i in arr){ rez=i; break; } return rez; }; window.abelle_array_first_value=function(arr){ var rez=null; for (var i in arr){ rez=arr[i]; break; } return rez; }; window.abelle_serialize=function(mixed_val){ var obj_to_array=arguments.length==1||argument[1]===true; switch (typeof(mixed_val)){ case "number": if(isNaN(mixed_val)||! isFinite(mixed_val)){ return false; }else{ return (Math.floor(mixed_val)==mixed_val ? "i":"d") + ":" + mixed_val + ";"; } case "string": return "s:" + mixed_val.length + ":\"" + mixed_val + "\";"; case "boolean": return "b:" + (mixed_val ? "1":"0") + ";"; case "object": if(mixed_val==null){ return "N;"; }else if(mixed_val instanceof Array){ var idxobj={ idx: -1 }; var map=[]; for (var i=0; i < mixed_val.length; i++){ idxobj.idx++; var ser=abelle_serialize(mixed_val[i]); if(ser){ map.push(abelle_serialize(idxobj.idx) + ser); }} return "a:" + mixed_val.length + ":{" + map.join("") + "}"; }else{ var class_name=abelle_get_class(mixed_val); if(class_name==undefined){ return false; } var props=new Array(); for (var prop in mixed_val){ var ser=abelle_serialize(mixed_val[prop]); if(ser){ props.push(abelle_serialize(prop) + ser); }} if(obj_to_array){ return "a:" + props.length + ":{" + props.join("") + "}"; }else{ return "O:" + class_name.length + ":\"" + class_name + "\":" + props.length + ":{" + props.join("") + "}"; }} case "undefined": return "N;"; } return false; };(function($){ var b64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", a256='', r64=[256], r256=[256], i=0; var UTF8={ encode: function(strUni){ var strUtf=strUni .replace(/[\u0080-\u07ff]/g, function(c){ var cc=c.charCodeAt(0); return String.fromCharCode(0xc0 | cc >> 6, 0x80 | cc & 0x3f); }) .replace(/[\u0800-\uffff]/g, function(c){ var cc=c.charCodeAt(0); return String.fromCharCode(0xe0 | cc >> 12, 0x80 | cc >> 6 & 0x3F, 0x80 | cc & 0x3f); }); return strUtf; }, decode: function(strUtf){ var strUni=strUtf .replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g, function(c){ var cc=((c.charCodeAt(0) & 0x0f) << 12) | ((c.charCodeAt(1) & 0x3f) << 6) | (c.charCodeAt(2) & 0x3f); return String.fromCharCode(cc); }) .replace(/[\u00c0-\u00df][\u0080-\u00bf]/g, function(c){ var cc=(c.charCodeAt(0) & 0x1f) << 6 | c.charCodeAt(1) & 0x3f; return String.fromCharCode(cc); }); return strUni; }}; while(i < 256){ var c=String.fromCharCode(i); a256 +=c; r256[i]=i; r64[i]=b64.indexOf(c); ++i; } function code(s, discard, alpha, beta, w1, w2){ s=String(s); var buffer=0, i=0, length=s.length, result='', bitsInBuffer=0; while (i < length){ var c=s.charCodeAt(i); c=c < 256 ? alpha[c]:-1; buffer=(buffer << w1) + c; bitsInBuffer +=w1; while (bitsInBuffer >=w2){ bitsInBuffer -=w2; var tmp=buffer >> bitsInBuffer; result +=beta.charAt(tmp); buffer ^=tmp << bitsInBuffer; } ++i; } if(! discard&&bitsInBuffer > 0){ result +=beta.charAt(buffer << (w2 - bitsInBuffer)); } return result; } var Plugin=$.abelle_encoder=function(dir, input, encode){ return input ? Plugin[dir](input, encode):dir ? null:this; }; Plugin.btoa=Plugin.encode=function(plain, utf8encode){ plain=Plugin.raw===false||Plugin.utf8encode||utf8encode ? UTF8.encode(plain):plain; plain=code(plain, false, r256, b64, 8, 6); return plain + '===='.slice((plain.length % 4)||4); }; Plugin.atob=Plugin.decode=function(coded, utf8decode){ coded=String(coded).split('='); var i=coded.length; do { --i; coded[i]=code(coded[i], true, r64, a256, 6, 8); } while (i > 0); coded=coded.join(''); return Plugin.raw===false||Plugin.utf8decode||utf8decode ? UTF8.decode(coded):coded; };}(jQuery)); window.abelle_get_class=function(obj){ if(obj instanceof Object&&! (obj instanceof Array)&&! (obj instanceof Function)&&obj.constructor){ var arr=obj.constructor.toString().match(/function\s*(\w+)/); if(arr&&arr.length==2){ return arr[1]; }} return false; }; window.abelle_debounce=function(func, wait){ var timeout; return function (){ var context=this, args=arguments; var later=function later(){ timeout=null; func.apply(context, args); }; var callNow = !timeout; clearTimeout(timeout); timeout=setTimeout(later, wait); if(callNow){ func.apply(context, args); }};}; window.abelle_throttle=function(func, wait, debounce){ var timeout; return function (){ var context=this, args=arguments; var throttler=function (){ timeout=null; func.apply(context, args); }; if(debounce) clearTimeout(timeout); if(debounce||!timeout) timeout=setTimeout(throttler, wait); };}; var abelle_observers={}; window.abelle_create_observer=function(id, obj, callback, args){ if(typeof window.trx_addons_create_observer!='undefined'){ return trx_addons_create_observer(id, obj, callback, args); }else if(typeof window.MutationObserver!=='undefined'&&obj.length > 0){ if(typeof abelle_observers[ id ]=='undefined'){ var defa={ attributes: false, childList: true, subtree: true }; if(args){ defa=abelle_object_merge(defa, args); } abelle_observers[ id ]={ observer: new MutationObserver(callback), obj: obj.get(0) }; abelle_observers[ id ].observer.observe(abelle_observers[ id ].obj, defa); } return true; } return false; }; window.abelle_remove_observer=function(id){ if(typeof window.trx_addons_remove_observer!='undefined'){ return trx_addons_remove_observer(id); }else if(typeof window.MutationObserver!=='undefined'){ if(typeof abelle_observers[ id ]!=='undefined'){ abelle_observers[ id ].observer.disconnect(abelle_observers[ id ].obj); delete abelle_observers[ id ]; } return true; } return false; }; var filters={}; window.abelle_add_filter=function(filter, callback, priority){ if(typeof window.trx_addons_add_filter!='undefined'){ trx_addons_add_filter(filter, callback, priority); }else if(typeof wp!='undefined'&&typeof wp.hooks!='undefined'){ wp.hooks.addFilter(filter, 'abelle', callback, priority==undefined ? 10:priority); }else{ if(! filters[filter]) filters[filter]={}; if(! filters[filter][priority]) filters[filter][priority]=[]; filters[filter][priority].push(callback); }}; window.abelle_apply_filters=function(filter, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9){ if(typeof window.trx_addons_apply_filters!='undefined'){ arg1=trx_addons_apply_filters(filter, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); }else if(typeof wp!='undefined'&&typeof wp.hooks!='undefined'&&typeof wp.hooks.applyFilters!='undefined'){ arg1=wp.hooks.applyFilters(filter, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); }else if(typeof filters[filter]=='object'){ var keys=Object.keys(filters[filter]).sort(); for (var i=0; i < keys.length; i++){ for (var j=0; j < filters[filter][keys[i]].length; j++){ if(typeof filters[filter][keys[i]][j]=='function'){ arg1=filters[filter][keys[i]][j](arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); }} }} return arg1; }; window.abelle_add_action=function(action, callback, priority){ if(typeof window.trx_addons_add_action!='undefined'){ trx_addons_add_action(action, callback, priority); }else if(typeof wp!='undefined'&&typeof wp.hooks!='undefined'){ wp.hooks.addAction(action, 'abelle', callback, priority==undefined ? 10:priority); }else{ abelle_add_filter(action, callback, priority); }}; window.abelle_do_action=function(action, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9){ if(typeof window.trx_addons_do_action!='undefined'){ trx_addons_do_action(action, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); }else if(typeof wp!='undefined'&&typeof wp.hooks!='undefined'&&typeof wp.hooks.doActions!='undefined'){ wp.hooks.doActions(action, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); }else{ abelle_apply_filters(action, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); }}; window.abelle_in_list=function(str, list){ var delim=arguments[2]!==undefined ? arguments[2]:'|'; var icase=arguments[3]!==undefined ? arguments[3]:true; var retval=false; if(icase){ if(typeof(str)=='string'){ str=str.toLowerCase(); } list=list.toLowerCase(); } var parts=list.split(delim); for (var i=0; i < parts.length; i++){ if(parts[i]==str){ retval=true; break; }} return retval; }; window.abelle_alltrim=function(str){ var dir=arguments[1]!==undefined ? arguments[1]:'a'; var rez=''; var i, start=0, end=str.length - 1; if(dir=='a'||dir=='l'){ for (i=0; i < str.length; i++){ if(str.substr(i, 1)!=' '){ start=i; break; }} } if(dir=='a'||dir=='r'){ for (i=str.length - 1; i >=0; i--){ if(str.substr(i, 1)!=' '){ end=i; break; }} } return str.substring(start, end + 1); }; window.abelle_ltrim=function(str){ return abelle_alltrim(str, 'l'); }; window.abelle_rtrim=function(str){ return abelle_alltrim(str, 'r'); }; window.abelle_padl=function(str, len){ var ch=arguments[2]!==undefined ? arguments[2]:' '; var rez=str.substr(0, len); if(rez.length < len){ for (var i=0; i < len - str.length; i++){ rez +=ch; }} return rez; }; window.abelle_padr=function(str, len){ var ch=arguments[2]!==undefined ? arguments[2]:' '; var rez=str.substr(0, len); if(rez.length < len){ for (var i=0; i < len - str.length; i++){ rez=ch + rez; }} return rez; }; window.abelle_padc=function(str, len){ var ch=arguments[2]!==undefined ? arguments[2]:' '; var rez=str.substr(0, len); if(rez.length < len){ for (var i=0; i < Math.floor((len - str.length) / 2); i++){ rez=ch + rez + ch; }} return rez + (rez.length < len ? ch:''); }; window.abelle_replicate=function(str, num){ var rez=''; for (var i=0; i < num; i++){ rez +=str; } return rez; }; window.abelle_prepare_macros=function(str){ return str .replace(/\{\{/g, "<i>") .replace(/\}\}/g, "</i>") .replace(/\(\(/g, "<b>") .replace(/\)\)/g, "</b>") .replace(/\|\|/g, "<br>"); }; window.abelle_round_number=function(num){ var precision=arguments[1]!==undefined ? arguments[1]:0; var p=Math.pow(10, precision); return Math.round(num * p) / p; }; window.abelle_clear_number=function(num){ var precision=arguments[1]!==undefined ? arguments[1]:0; var defa=arguments[2]!==undefined ? arguments[2]:0; var res=''; var decimals=-1; num="" + num; if(num==""){ num="" + defa; } for (var i=0; i < num.length; i++){ if(decimals==0){ break; }else if(decimals > 0){ decimals--; } var ch=num.substr(i,1); if(ch=='.'){ if(precision > 0){ res +=ch; } decimals=precision; }else if((ch >=0&&ch <=9)||(ch=='-'&&i==0)){ res +=ch; }} if(precision > 0&&decimals!=0){ if(decimals==-1){ res +='.'; decimals=precision; } for (i=decimals; i > 0; i--){ res +='0'; }} return res; }; window.abelle_dec2hex=function(n){ return Number(n).toString(16); }; window.abelle_hex2dec=function(hex){ return parseInt(hex,16); }; window.abelle_in_array=function(val, thearray){ var rez=false; for (var i=0; i < thearray.length - 1; i++){ if(thearray[i]==val){ rez=true; break; }} return rez; }; window.abelle_sort_array=function(thearray){ var caseSensitive=arguments[1]!==undefined ? arguments[1]:false; var tmp=''; for (var x=0; x < thearray.length - 1; x++){ for (var y=(x + 1); y < thearray.length; y++){ if(caseSensitive){ if(thearray[x] > thearray[y]){ tmp=thearray[x]; thearray[x]=thearray[y]; thearray[y]=tmp; }}else{ if(thearray[x].toLowerCase() > thearray[y].toLowerCase()){ tmp=thearray[x]; thearray[x]=thearray[y]; thearray[y]=tmp; }} }} return thearray; }; window.abelle_parse_date=function(dt){ dt=dt.replace(/\//g, '-').replace(/\./g, '-').replace(/T/g, ' ').split('+')[0]; var dt2=dt.split(' '); var d=dt2[0].split('-'); var t=dt2[1].split(':'); d.push(t[0], t[1], t[2]); return d; }; window.abelle_get_date_difference=function(dt1){ var dt2=arguments[1]!==undefined ? arguments[1]:''; var short_date=arguments[2]!==undefined ? arguments[2]:true; var sec=arguments[3]!==undefined ? arguments[3]:false; var a1=abelle_parse_date(dt1); dt1=Date.UTC(a1[0], a1[1], a1[2], a1[3], a1[4], a1[5]); if(dt2==''){ dt2=new Date(); var a2=[dt2.getFullYear(), dt2.getMonth() + 1, dt2.getDate(), dt2.getHours(), dt2.getMinutes(), dt2.getSeconds()]; }else{ var a2=abelle_parse_date(dt2); } dt2=Date.UTC(a2[0], a2[1], a2[2], a2[3], a2[4], a2[5]); var diff=Math.round((dt2 - dt1) / 1000); var days=Math.floor(diff / (24 * 3600)); diff -=days * 24 * 3600; var hours=Math.floor(diff / 3600); diff -=hours * 3600; var minutes=Math.floor(diff / 60); diff -=minutes * 60; var rez=''; if(days > 0){ rez +=(rez!=='' ? ' ':'') + days + ' day' + (days > 1 ? 's':''); } if((! short_date||rez=='')&&hours > 0){ rez +=(rez!=='' ? ' ':'') + hours + ' hour' + (hours > 1 ? 's':''); } if((! short_date||rez=='')&&minutes > 0){ rez +=(rez!=='' ? ' ':'') + minutes + ' minute' + (minutes > 1 ? 's':''); } if(sec||rez==''){ rez +=rez!==''||sec ? (' ' + diff + ' second' + (diff > 1 ? 's':'')):'less then minute'; } return rez; }; window.abelle_hex2rgb=function(hex){ hex=parseInt(((hex.indexOf('#') > -1) ? hex.substring(1):hex), 16); return {r: hex >> 16, g: (hex & 0x00FF00) >> 8, b: (hex & 0x0000FF)};}; window.abelle_hex2rgba=function(hex, alpha){ var rgb=abelle_hex2rgb(hex); return 'rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ',' + alpha + ')'; }; window.abelle_rgb2hex=function(color){ var aRGB; color=color.replace(/\s/g,"").toLowerCase(); if(color=='rgba(0,0,0,0)'||color=='rgba(0%,0%,0%,0%)'){ color='transparent'; } if(color.indexOf('rgba(')==0){ aRGB=color.match(/^rgba\((\d{1,3}[%]?),(\d{1,3}[%]?),(\d{1,3}[%]?),(\d{1,3}[%]?)\)$/i); }else{ aRGB=color.match(/^rgb\((\d{1,3}[%]?),(\d{1,3}[%]?),(\d{1,3}[%]?)\)$/i); } if(aRGB){ color=''; for (var i=1; i <=3; i++){ color +=Math.round((aRGB[i][aRGB[i].length - 1]=="%" ? 2.55:1) * parseInt(aRGB[i]) ).toString(16).replace(/^(.)$/,'0$1'); }}else{ color=color.replace(/^#?([\da-f])([\da-f])([\da-f])$/i, '$1$1$2$2$3$3'); } return (color.substr(0,1)!='#' ? '#':'') + color; }; window.abelle_components2hex=function(r,g,b){ return '#' + Number(r).toString(16).toUpperCase().replace(/^(.)$/,'0$1') + Number(g).toString(16).toUpperCase().replace(/^(.)$/,'0$1') + Number(b).toString(16).toUpperCase().replace(/^(.)$/,'0$1'); }; window.abelle_rgb2components=function(color){ color=abelle_rgb2hex(color); var matches=color.match(/^#?([\dabcdef]{2})([\dabcdef]{2})([\dabcdef]{2})$/i); if(! matches){ return false; } for (var i=1, rgb=new Array(3); i <=3; i++){ rgb[i - 1]=parseInt(matches[i],16); } return rgb; }; window.abelle_hex2hsb=function(hex){ var h=arguments[1]!==undefined ? arguments[1]:0; var s=arguments[2]!==undefined ? arguments[2]:0; var b=arguments[3]!==undefined ? arguments[3]:0; var hsb=abelle_rgb2hsb(abelle_hex2rgb(hex) ); hsb.h=Math.min(359, Math.max(0, hsb.h + h) ); hsb.s=Math.min(100, Math.max(0, hsb.s + s) ); hsb.b=Math.min(100, Math.max(0, hsb.b + b) ); return hsb; }; window.abelle_hsb2hex=function(hsb){ var rgb=abelle_hsb2rgb(hsb); return abelle_components2hex(rgb.r, rgb.g, rgb.b); }; window.abelle_rgb2hsb=function(rgb){ var hsb={}; hsb.b=Math.max(Math.max(rgb.r,rgb.g),rgb.b); hsb.s=(hsb.b <=0) ? 0:Math.round(100 * (hsb.b - Math.min(Math.min(rgb.r,rgb.g),rgb.b)) / hsb.b); hsb.b=Math.round((hsb.b / 255) * 100); if((rgb.r==rgb.g)&&(rgb.g==rgb.b)){ hsb.h=0; }else if(rgb.r >=rgb.g&&rgb.g >=rgb.b){ hsb.h=60 * (rgb.g - rgb.b) / (rgb.r - rgb.b); }else if(rgb.g >=rgb.r&&rgb.r >=rgb.b){ hsb.h=60 + 60 * (rgb.g - rgb.r) / (rgb.g - rgb.b); }else if(rgb.g >=rgb.b&&rgb.b >=rgb.r){ hsb.h=120 + 60 * (rgb.b - rgb.r) / (rgb.g - rgb.r); }else if(rgb.b >=rgb.g&&rgb.g >=rgb.r){ hsb.h=180 + 60 * (rgb.b - rgb.g) / (rgb.b - rgb.r); }else if(rgb.b >=rgb.r&&rgb.r >=rgb.g){ hsb.h=240 + 60 * (rgb.r - rgb.g) / (rgb.b - rgb.g); }else if(rgb.r >=rgb.b&&rgb.b >=rgb.g){ hsb.h=300 + 60 * (rgb.r - rgb.b) / (rgb.r - rgb.g); }else{ hsb.h=0; } hsb.h=Math.round(hsb.h); return hsb; }; window.abelle_hsb2rgb=function(hsb){ var rgb={}; var h=Math.round(hsb.h); var s=Math.round(hsb.s * 255 / 100); var v=Math.round(hsb.b * 255 / 100); if(s==0){ rgb.r=rgb.g=rgb.b=v; }else{ var t1=v; var t2=(255 - s) * v / 255; var t3=(t1 - t2) * (h % 60) / 60; if(h==360){ h=0; } if(h < 60){ rgb.r=t1; rgb.b=t2; rgb.g=t2 + t3; }else if(h < 120){ rgb.g=t1; rgb.b=t2; rgb.r=t1 - t3; }else if(h < 180){ rgb.g=t1; rgb.r=t2; rgb.b=t2 + t3; }else if(h < 240){ rgb.b=t1; rgb.r=t2; rgb.g=t1 - t3; }else if(h < 300){ rgb.b=t1; rgb.g=t2; rgb.r=t2 + t3; }else if(h < 360){ rgb.r=t1; rgb.g=t2; rgb.b=t1 - t3; }else{ rgb.r=0; rgb.g=0; rgb.b=0; }} return { r:Math.round(rgb.r), g:Math.round(rgb.g), b:Math.round(rgb.b) };}; window.abelle_color_picker=function(){ var id=arguments[0]!==undefined ? arguments[0]:"iColorPicker" + Math.round(Math.random() * 1000); var colors=arguments[1]!==undefined ? arguments[1]:'#f00,#ff0,#0f0,#0ff,#00f,#f0f,#fff,#ebebeb,#e1e1e1,#d7d7d7,#cccccc,#c2c2c2,#b7b7b7,#acacac,#a0a0a0,#959595,' + '#ee1d24,#fff100,#00a650,#00aeef,#2f3192,#ed008c,#898989,#7d7d7d,#707070,#626262,#555,#464646,#363636,#262626,#111,#000,' + '#f7977a,#fbad82,#fdc68c,#fff799,#c6df9c,#a4d49d,#81ca9d,#7bcdc9,#6ccff7,#7ca6d8,#8293ca,#8881be,#a286bd,#bc8cbf,#f49bc1,#f5999d,' + '#f16c4d,#f68e54,#fbaf5a,#fff467,#acd372,#7dc473,#39b778,#16bcb4,#00bff3,#438ccb,#5573b7,#5e5ca7,#855fa8,#a763a9,#ef6ea8,#f16d7e,' + '#ee1d24,#f16522,#f7941d,#fff100,#8fc63d,#37b44a,#00a650,#00a99e,#00aeef,#0072bc,#0054a5,#2f3192,#652c91,#91278f,#ed008c,#ee105a,' + '#9d0a0f,#a1410d,#a36209,#aba000,#588528,#197b30,#007236,#00736a,#0076a4,#004a80,#003370,#1d1363,#450e61,#62055f,#9e005c,#9d0039,' + '#790000,#7b3000,#7c4900,#827a00,#3e6617,#045f20,#005824,#005951,#005b7e,#003562,#002056,#0c004b,#30004a,#4b0048,#7a0045,#7a0026'; var colorsList=colors.split(','); var tbl='<table class="colorPickerTable"><thead>'; for (var i=0; i < colorsList.length; i++){ if(i % 16==0){ tbl +=(i > 0 ? '</tr>':'') + '<tr>'; } tbl +='<td style="background-color:' + colorsList[i] + '">&nbsp;</td>'; } tbl +='</tr></thead><tbody>' + '<tr style="height:60px;">' + '<td colspan="8" id="' + id + '_colorPreview" style="vertical-align:middle;text-align:center;border:1px solid #000;background:#fff;">' + '<input style="width:55px;color:#000;border:1px solid rgb(0, 0, 0);padding:5px;background-color:#fff;font:11px Arial, Helvetica, sans-serif;" maxlength="7" />' + '<a href="#" id="' + id + '_moreColors" class="iColorPicker_moreColors"></a>' + '</td>' + '<td colspan="8" id="' + id + '_colorOriginal" style="vertical-align:middle;text-align:center;border:1px solid #000;background:#fff;">' + '<input style="width:55px;color:#000;border:1px solid rgb(0, 0, 0);padding:5px;background-color:#fff;font:11px Arial, Helvetica, sans-serif;" readonly="readonly" />' + '</td>' + '</tr></tbody></table>'; jQuery(document.createElement("div") ) .attr("id", id) .css('display','none') .html(tbl) .appendTo("body") .addClass("iColorPickerTable") .on('mouseover', 'thead td', function(){ var aaa=abelle_rgb2hex(jQuery(this).css('background-color') ); jQuery('#' + id + '_colorPreview').css('background',aaa); jQuery('#' + id + '_colorPreview input').val(aaa); }) .on('keypress', '#' + id + '_colorPreview input', function(key){ var aaa=jQuery(this).val(); if(aaa.length < 7&&((key.which >=48&&key.which <=57)||(key.which >=97&&key.which <=102)||(key.which===35||aaa.length===0))){ aaa +=String.fromCharCode(key.which); }else if(key.which==8&&aaa.length > 0){ aaa=aaa.substring(0, aaa.length - 1); }else if(key.which===13&&(aaa.length===4||aaa.length===7)){ var fld=jQuery('#' + id).data('field'); var func=jQuery('#' + id).data('func'); if(func!==null&&func!='undefined'){ func(fld, aaa); }else{ fld.val(aaa).css('backgroundColor', aaa).trigger('change'); } jQuery('#' + id + '_Bg').fadeOut(500); jQuery('#' + id).fadeOut(500); }else{ key.preventDefault(); return false; } if(aaa.substr(0,1)==='#'&&(aaa.length===4||aaa.length===7)){ jQuery('#' + id + '_colorPreview').css('background',aaa); } return true; }) .on('click', 'thead td', function(e){ var fld=jQuery('#' + id).data('field'); var func=jQuery('#' + id).data('func'); var aaa=abelle_rgb2hex(jQuery(this).css('background-color') ); if(func!==null&&func!='undefined'){ func(fld, aaa); }else{ fld.val(aaa).css('backgroundColor', aaa).trigger('change'); } jQuery('#' + id + '_Bg').fadeOut(500); jQuery('#' + id).fadeOut(500); e.preventDefault(); return false; }) .on('click', 'tbody .iColorPicker_moreColors', function(e){ var thead=jQuery(this).parents('table').find('thead'); var out=''; if(thead.hasClass('more_colors')){ for (var i=0; i < colorsList.length; i++){ if(i % 16==0){ out +=(i > 0 ? '</tr>':'') + '<tr>'; } out +='<td style="background-color:' + colorsList[i] + '">&nbsp;</td>'; } thead.removeClass('more_colors').empty().html(out + '</tr>'); jQuery('#' + id + '_colorPreview').attr('colspan', 8); jQuery('#' + id + '_colorOriginal').attr('colspan', 8); }else{ var rgb=[0,0,0], i=0, j=-1; while (rgb[0] < 0xF||rgb[1] < 0xF||rgb[2] < 0xF){ if(i % 18===0){ out +=(i > 0 ? '</tr>':'') + '<tr>'; } i++; out +='<td style="background-color:' + abelle_components2hex(rgb[0] * 16 + rgb[0],rgb[1] * 16 + rgb[1],rgb[2] * 16 + rgb[2]) + '">&nbsp;</td>'; rgb[2] +=3; if(rgb[2] > 0xF){ rgb[1] +=3; if(rgb[1] > (j===0 ? 6:0xF)){ rgb[0] +=3; if(rgb[0] > 0xF){ if(j===0){ j=1; rgb[0]=0; rgb[1]=9; rgb[2]=0; }else{ break; }}else{ rgb[1]=(j < 1 ? 0:9); rgb[2]=0; }}else{ rgb[2]=0; }} } thead.addClass('more_colors').empty().html(out + '<td style="background-color:#ffffff" colspan="8">&nbsp;</td></tr>'); jQuery('#' + id + '_colorPreview').attr('colspan', 9); jQuery('#' + id + '_colorOriginal').attr('colspan', 9); } jQuery('#' + id + ' table.colorPickerTable thead td') .css({ 'width':'12px', 'height':'14px', 'border':'1px solid #000', 'cursor':'pointer' }); e.preventDefault(); return false; }); jQuery(document.createElement("div") ) .attr("id", id + "_Bg") .on('click', function(e){ jQuery("#" + id + "_Bg").fadeOut(500); jQuery("#" + id).fadeOut(500); e.preventDefault(); return false; }) .appendTo("body"); jQuery('#' + id + ' table.colorPickerTable thead td') .css({ 'width':'12px', 'height':'14px', 'border':'1px solid #000', 'cursor':'pointer' }); jQuery('#' + id + ' table.colorPickerTable') .css({'border-collapse':'collapse'}); jQuery('#' + id) .css({ 'border':'1px solid #ccc', 'background':'#333', 'padding':'5px', 'color':'#fff' }); jQuery('#' + id + '_colorPreview') .css({'height':'50px'}); return id; }; window.abelle_color_picker_show=function(id, fld, func){ if(id===null||id===''){ id=jQuery('.iColorPickerTable').attr('id'); } var eICP=fld.offset(); var w=jQuery('#' + id).width(); var h=jQuery('#' + id).height(); var l=eICP.left + w < $window.width() - 10 ? eICP.left:$window.width() - 10 - w; var t=eICP.top + fld.outerHeight() + h < $window.scrollTop() + $window.height() - 10 ? eICP.top + fld.outerHeight():eICP.top - h - 13; jQuery("#" + id) .data({field: fld, func: func}) .css({ 'top':t + "px", 'left':l + "px", 'position':'absolute', 'z-index':999999 }) .fadeIn(500); jQuery("#" + id + "_Bg") .css({ 'position':'fixed', 'z-index':999998, 'top':0, 'left':0, 'width':'100%', 'height':'100%' }) .fadeIn(500); var def=fld.val().substr(0, 1)=='#' ? fld.val():abelle_rgb2hex(fld.css('backgroundColor') ); jQuery('#' + id + '_colorPreview input,#' + id + '_colorOriginal input').val(def); jQuery('#' + id + '_colorPreview,#' + id + '_colorOriginal').css('background',def); }; window.abelle_get_load_fonts_family_string=function(name, family){ var parts=[ name ]; if(abelle_alltrim(family)!=''){ parts=parts.concat(family.split(',') ); } for(var i=0; i < parts.length; i++){ parts[ i ]=abelle_alltrim(parts[ i ]); if(parts[ i ].indexOf('"') < 0&&parts[ i ].indexOf(' ') >=0){ parts[ i ]='"' + parts[ i ] + '"'; }} return parts.join(','); }; window.abelle_get_class_by_prefix=function(classes, prefix){ var rez=''; if(classes){ classes=classes.split(' '); for (var i=0; i < classes.length; i++){ if(classes[i].indexOf(prefix) >=0){ rez=classes[i].replace(/[\s]+/g, ''); break; }} } return rez; }; window.abelle_chg_class_by_prefix=function(classes, prefix, new_value){ var chg=false; if(! classes) classes=''; classes=classes.replace(/[\s]+/g, ' ').split(' '); new_value=new_value.replace(/[\s]+/g, ''); if(typeof prefix=='string'){ prefix=[prefix]; } for (var i=0; i < classes.length; i++){ for (var j=0; j < prefix.length; j++){ if(classes[i].indexOf(prefix[j]) >=0){ classes[i]=new_value; chg=true; break; }} if(chg) break; } if(! chg&&new_value){ if(classes.length==1&&classes[0]==='') classes[0]=new_value; else classes.push(new_value); } return classes.join(' '); }; window.abelle_import_inline_styles=function(response){ var selectors=abelle_apply_filters('abelle_filter_spa_inline_css_selectors', [ 'abelle-inline-styles-inline-css', 'trx_addons-inline-styles-inline-css', 'woocommerce-inline-inline-css', 'elementor-frontend-inline-css' ]); var p1, p2, inline_css, $inline_css_tag; for(var i=0; i < selectors.length; i++){ p1=response.indexOf(selectors[i]); if(p1 > 0){ p1=response.indexOf('>', p1) + 1; p2=response.indexOf('</style>', p1), inline_css=response.substring(p1, p2), $inline_css_tag=jQuery('#' + selectors[i]); if($inline_css_tag.length===0){ $body.append('<style id="' + selectors[i] + '" type="text/css">' + inline_css + '</style>'); }else{ $inline_css_tag.append(inline_css); }} }}; window.abelle_import_tags_link=function(response){ var links=response.match(/<link[^>]*rel=['"]stylesheet['"][^>]*id=['"]([^'"]+)['"][^>]*>/g); if(links){ var $head=jQuery('head'); for(var i=0; i < links.length; i++){ var matches=links[i].match(/<link[^>]*rel=['"]stylesheet['"][^>]*id=['"]([^'"]+)['"][^>]*>/); if(matches&&matches.length&&matches.length > 1&&matches[1]){ if(jQuery('#' + matches[1].replace('.', '\\.')).length===0){ $head.prepend(links[i]); }} }} }; window.abelle_get_cookie=function(name){ var defa=arguments[1]!==undefined ? arguments[1]:null; var start=document.cookie.indexOf(name + '='); var len=start + name.length + 1; if((! start)&&(name!=document.cookie.substring(0, name.length))){ return defa; } if(start==-1){ return defa; } var end=document.cookie.indexOf(';', len); if(end==-1){ end=document.cookie.length; } return unescape(document.cookie.substring(len, end) ); }; window.abelle_set_cookie=function(name, value){ var expires=arguments[2]!==undefined ? arguments[2]:0; var path=arguments[3]!==undefined ? arguments[3]:'/'; var domain=arguments[4]!==undefined ? arguments[4]:''; var secure=arguments[5]!==undefined ? arguments[5]:''; var samesite=arguments[6]!==undefined ? arguments[6]:'strict'; var today=new Date(); today.setTime(today.getTime()); var expires_date=new Date(today.getTime() + (expires * 1)); document.cookie=encodeURIComponent(name) + '=' + encodeURIComponent(value) + (expires ? ';expires=' + expires_date.toGMTString():'') + (path ? ';path=' + path:'') + (domain ? ';domain=' + domain:'') + (secure ? ';secure':'') + (samesite ? ';samesite=' + samesite:''); }; window.abelle_del_cookie=function(name){ var path=arguments[1]!==undefined ? arguments[1]:'/'; var domain=arguments[2]!==undefined ? arguments[2]:''; var secure=arguments[3]!==undefined ? arguments[3]:''; var samesite=arguments[4]!==undefined ? arguments[4]:'strict'; if(abelle_get_cookie(name) ){ document.cookie=name + '=' + ';expires=Thu, 01-Jan-1970 00:00:01 GMT' + (path ? ';path=' + path:'') + (domain ? ';domain=' + domain:'') + (secure ? ';secure':'') + (samesite ? ';samesite=' + samesite:''); }}; window.abelle_is_local_storage_exists=function(){ try { return 'localStorage' in window&&window['localStorage']!==null; } catch (e){ return false; }}; window.abelle_get_storage=function(name){ var defa=arguments[1]!==undefined ? arguments[1]:null; var val=null; if(abelle_is_local_storage_exists()){ val=window['localStorage'].getItem(name); if(val===null) val=defa; }else{ val=abelle_get_cookie(name, defa); } return val; }; window.abelle_set_storage=function(name, value){ if(abelle_is_local_storage_exists()) window['localStorage'].setItem(name, value); else abelle_set_cookie(name, value, 365 * 24 * 60 * 60 * 1000); }; window.abelle_del_storage=function(name){ if(abelle_is_local_storage_exists()) window['localStorage'].removeItem(name); else abelle_del_cookie(name); }; window.abelle_clear_storage=function(){ if(abelle_is_local_storage_exists()) window['localStorage'].clear(); }; window.abelle_clear_listbox=function(box){ for (var i=box.options.length - 1; i >=0; i--){ box.options[i]=null; }}; window.abelle_add_listbox_item=function(box, val, text){ var item=new Option(); item.value=val; item.text=text; box.options.add(item); }; window.abelle_del_listbox_item_by_value=function(box, val){ for (var i=0; i < box.options.length; i++){ if(box.options[i].value==val){ box.options[i]=null; break; }} }; window.abelle_del_listbox_item_by_text=function(box, txt){ for (var i=0; i < box.options.length; i++){ if(box.options[i].text==txt){ box.options[i]=null; break; }} }; window.abelle_find_listbox_item_by_value=function(box, val){ var idx=-1; for (var i=0; i < box.options.length; i++){ if(box.options[i].value==val){ idx=i; break; }} return idx; }; window.abelle_find_listbox_item_by_text=function(box, txt){ var idx=-1; for (var i=0; i < box.options.length; i++){ if(box.options[i].text==txt){ idx=i; break; }} return idx; }; window.abelle_select_listbox_item_by_value=function(box, val){ for (var i=0; i < box.options.length; i++){ box.options[i].selected=(val==box.options[i].value); }}; window.abelle_select_listbox_item_by_text=function(box, txt){ for (var i=0; i < box.options.length; i++){ box.options[i].selected=(txt==box.options[i].text); }}; window.abelle_get_listbox_values=function(box){ var delim=arguments[1]!==undefined ? arguments[1]:','; var str=''; for (var i=0; i < box.options.length; i++){ str +=(str ? delim:'') + box.options[i].value; } return str; }; window.abelle_get_listbox_texts=function(box){ var delim=arguments[1]!==undefined ? arguments[1]:','; var str=''; for (var i=0; i < box.options.length; i++){ str +=(str ? delim:'') + box.options[i].text; } return str; }; window.abelle_sort_listbox=function(box){ var temp_opts=new Array(), temp=new Option(), i, x, y; for (i=0; i < box.options.length; i++){ temp_opts[i]=box.options[i].clone(); } for (x=0; x < temp_opts.length - 1; x++){ for (y=(x + 1); y < temp_opts.length; y++){ if(temp_opts[x].text > temp_opts[y].text){ temp=temp_opts[x]; temp_opts[x]=temp_opts[y]; temp_opts[y]=temp; }} } for (i=0; i < box.options.length; i++){ box.options[i]=temp_opts[i].clone(); }}; window.abelle_get_listbox_selected_index=function(box){ for (var i=0; i < box.options.length; i++){ if(box.options[i].selected){ return i; }} return -1; }; window.abelle_get_listbox_selected_value=function(box){ for (var i=0; i < box.options.length; i++){ if(box.options[i].selected){ return box.options[i].value; }} return null; }; window.abelle_get_listbox_selected_text=function(box){ for (var i=0; i < box.options.length; i++){ if(box.options[i].selected){ return box.options[i].text; }} return null; }; window.abelle_get_listbox_selected_option=function(box){ for (var i=0; i < box.options.length; i++){ if(box.options[i].selected){ return box.options[i]; }} return null; }; window.abelle_get_radio_value=function(radioGroupObj){ for (var i=0; i < radioGroupObj.length; i++){ if(radioGroupObj[i].checked){ return radioGroupObj[i].value; }} return null; }; window.abelle_set_radio_checked_by_num=function(radioGroupObj, num){ for (var i=0; i < radioGroupObj.length; i++){ if(radioGroupObj[i].checked&&i!=num){ radioGroupObj[i].checked=false; }else if(i==num){ radioGroupObj[i].checked=true; }} }; window.abelle_set_radio_checked_by_value=function(radioGroupObj, val){ for (var i=0; i < radioGroupObj.length; i++){ if(radioGroupObj[i].checked&&radioGroupObj[i].value!=val){ radioGroupObj[i].checked=false; }else if(radioGroupObj[i].value==val){ radioGroupObj[i].checked=true; }} }; window.abelle_form_validate=function(form, opt){ var error_msg=''; form.find(":input").each(function(){ if(error_msg!==''&&opt.exit_after_first_error){ return; } for (var i=0; i < opt.rules.length; i++){ if(jQuery(this).attr("name")==opt.rules[i].field){ var val=jQuery(this).val(); var error=false; if(typeof(opt.rules[i].min_length)=='object'){ if(opt.rules[i].min_length.value > 0&&val.length < opt.rules[i].min_length.value){ if(error_msg==''){ jQuery(this).get(0).focus(); } error_msg +='<p class="error_item">' + (typeof(opt.rules[i].min_length.message)!='undefined' ? opt.rules[i].min_length.message:opt.error_message_text) + '</p>'; error=true; }} if((! error||! opt.exit_after_first_error)&&typeof(opt.rules[i].max_length)=='object'){ if(opt.rules[i].max_length.value > 0&&val.length > opt.rules[i].max_length.value){ if(error_msg==''){ jQuery(this).get(0).focus(); } error_msg +='<p class="error_item">' + (typeof(opt.rules[i].max_length.message)!='undefined' ? opt.rules[i].max_length.message:opt.error_message_text) + '</p>'; error=true; }} if((! error||! opt.exit_after_first_error)&&typeof(opt.rules[i].mask)=='object'){ if(opt.rules[i].mask.value!==''){ var regexp=new RegExp(opt.rules[i].mask.value); if(! regexp.test(val)){ if(error_msg==''){ jQuery(this).get(0).focus(); } error_msg +='<p class="error_item">' + (typeof(opt.rules[i].mask.message)!='undefined' ? opt.rules[i].mask.message:opt.error_message_text) + '</p>'; error=true; }} } if((! error||! opt.exit_after_first_error)&&typeof(opt.rules[i].state)=='object'){ if(opt.rules[i].state.value=='checked'&&! jQuery(this).get(0).checked){ if(error_msg==''){ jQuery(this).get(0).focus(); } error_msg +='<p class="error_item">' + (typeof(opt.rules[i].state.message)!='undefined' ? opt.rules[i].state.message:opt.error_message_text) + '</p>'; error=true; }} if((! error||! opt.exit_after_first_error)&&typeof(opt.rules[i].equal_to)=='object'){ if(opt.rules[i].equal_to.value!==''&&val!=jQuery(jQuery(this).get(0).form[opt.rules[i].equal_to.value]).val()){ if(error_msg==''){ jQuery(this).get(0).focus(); } error_msg +='<p class="error_item">' + (typeof(opt.rules[i].equal_to.message)!='undefined' ? opt.rules[i].equal_to.message:opt.error_message_text) + '</p>'; error=true; }} if(opt.error_fields_class!==''){ jQuery(this).toggleClass(opt.error_fields_class, error); }} }}); if(error_msg!==''&&opt.error_message_show){ var error_message_box=form.find(".result"); if(error_message_box.length==0){ error_message_box=form.parent().find(".result"); } if(error_message_box.length==0){ form.append('<div class="result"></div>'); error_message_box=form.find(".result"); } if(opt.error_message_class){ error_message_box.toggleClass(opt.error_message_class, true); } error_message_box.html(error_msg).fadeIn(); setTimeout(function(){ error_message_box.fadeOut(); }, opt.error_message_time); } return error_msg!==''; }; window.trx_addons_document_animate_to_busy=false; window.abelle_document_animate_to=function(id){ var split_animation=true; var speed=arguments.length > 1 ? arguments[1]:-1; var callback=arguments.length > 2 ? arguments[2]:undefined; var oft = ! isNaN(id) ? Number(id):0, oft2=-1; if(isNaN(id)){ if(id.substring(0, 1)!='#'&&id.substring(0, 1)!='.'){ id='#' + id; } var obj=jQuery(id).eq(0); if(obj.length===0){ return; } oft=split_animation ? obj.offset().top:Math.max(0, obj.offset().top - abelle_fixed_rows_height()); if(split_animation){ oft2=Math.max(0, oft - abelle_fixed_rows_height()); }} if(speed < 0){ speed=Math.min(1000, Math.max(300, Math.round(Math.abs(( oft2 < 0 ? oft:oft2) - $window.scrollTop()) / $window.height() * 300) )); } if(oft2 >=0){ setTimeout(function(){ if(isNaN(id)){ oft=obj.offset().top; } oft2=Math.max(0, oft - abelle_fixed_rows_height()); jQuery('body,html').stop(true).animate({scrollTop: oft2}, Math.floor(speed / 2), 'linear', function(){ _window_scroll_top=$window.scrollTop(); window.trx_addons_document_animate_to_busy=false; if(callback) callback(id, speed); }); }, Math.floor(speed / 2) ); }else{ oft2=oft; } if(speed > 0){ jQuery('body,html').stop(true).animate({ scrollTop: oft2 }, speed, 'linear', function(){ _window_scroll_top=$window.scrollTop(); window.trx_addons_document_animate_to_busy=false; if(callback) callback(id, speed); }); }else{ jQuery('body,html').stop(true).scrollTop(oft2); _window_scroll_top=$window.scrollTop(); window.trx_addons_document_animate_to_busy=false; if(callback) callback(id, speed); }}; var _window_width=$window.width(), _window_height=$window.height(), _window_scroll_top=$window.scrollTop(), _window_scroll_left=$window.scrollLeft(); $window.on('resize', function(){ _window_width=$window.width(); _window_height=$window.height(); _window_scroll_top=$window.scrollTop(); _window_scroll_left=$window.scrollLeft(); }); $window.on('scroll', function(){ _window_scroll_top=$window.scrollTop(); _window_scroll_left=$window.scrollLeft(); }); window.abelle_window_width=function(val){ if(val) _window_width=val; return _window_width; }; window.abelle_window_height=function(val){ if(val) _window_height=val; return _window_height; }; window.abelle_window_scroll_top=function(){ return _window_scroll_top; }; window.abelle_window_scroll_left=function(){ return _window_scroll_left; }; var _document_height; var _document_height_first_run=true; var _update_document_height=function(e){ if(typeof window.trx_addons_document_height=='undefined'){ if(_document_height_first_run&&e && e.namespace=='init_hidden_elements'){ _document_height_first_run=false; return; } _document_height=$document.height(); }}; $document.ready(_update_document_height); $document.on('action.init_hidden_elements action.got_ajax_response', _update_document_height); $window.on('resize', _update_document_height); window.abelle_document_height=function(){ return typeof window.trx_addons_document_height!='undefined' ? trx_addons_document_height():_document_height; }; var _adminbar_height=0; var _update_adminbar_height=function(){ if(typeof window.trx_addons_adminbar_height=='undefined'){ _adminbar_height=abelle_adminbar_height_calc(); document.querySelector('html').style.setProperty('--fixed-rows-height', _adminbar_height + 'px'); }}; $document.ready(_update_adminbar_height); $window.on('resize', _update_adminbar_height); window.abelle_adminbar_height_calc=function(){ return abelle_apply_filters('abelle_filter_adminbar_height', $adminbar.length===0||$adminbar.css('display')=='none'||$adminbar.css('position')=='absolute' ? 0:$adminbar.height()); }; window.abelle_adminbar_height=function(){ return typeof window.trx_addons_adminbar_height!='undefined' ? trx_addons_adminbar_height():_adminbar_height; }; window.abelle_fixed_rows_height=function(){ var with_admin_bar=arguments.length > 0 ? arguments[0]:true, with_fixed_rows=arguments.length > 1 ? arguments[1]:true; return typeof trx_addons_fixed_rows_height!='undefined' ? trx_addons_fixed_rows_height(with_admin_bar, with_fixed_rows):(with_admin_bar ? abelle_adminbar_height():0); }; window.abelle_document_set_location=function(curLoc, state){ try { history.pushState(state ? state:{ url: curLoc }, null, curLoc); return; } catch(e){} location.href=curLoc; }; window.abelle_add_to_url=function(loc, prm){ var ignore_empty=arguments[2]!==undefined ? arguments[2]:true; var q=loc.indexOf('?'); var attr={}; if(q > 0){ var qq=loc.substr(q + 1).split('&'); var parts=''; for (var i=0; i < qq.length; i++){ var parts=qq[i].split('='); attr[parts[0]]=parts.length > 1 ? parts[1]:''; }} for (var p in prm){ attr[p]=prm[p]; } loc=(q > 0 ? loc.substr(0, q):loc) + '?'; var i=0; for (p in attr){ if(ignore_empty&&attr[p]==''){ continue; } loc +=(i++ > 0 ? '&':'') + p + '=' + attr[p]; } return loc; }; window.abelle_is_local_link=function(url){ var rez=url!==undefined; if(rez){ var url_pos=url.indexOf('#'); if(url_pos==0&&url.length==1){ rez=false; }else{ if(url_pos < 0){ url_pos=url.length; } var loc=window.location.href; var loc_pos=loc.indexOf('#'); if(loc_pos > 0){ loc=loc.substring(0, loc_pos); } rez=url_pos==0; if(! rez){ rez=loc==url.substring(0, url_pos); }} } return rez; }; window.abelle_is_url=function(url){ return url.indexOf('//')===0||url.indexOf('://') > 0; }; window.abelle_browser_is_mobile=function(){ var check=false; (function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm(os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s)|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(|\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(|\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v)|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v)|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|)|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4) )){ check=true}})(navigator.userAgent||navigator.vendor||window.opera); return check; }; window.abelle_browser_is_ios=function(){ return navigator.userAgent.match(/iPad|iPhone|iPod/i)!=null; }; window.abelle_is_retina=function(){ var mediaQuery='(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)'; return (window.devicePixelRatio > 1)||(window.matchMedia&&window.matchMedia(mediaQuery).matches); }; window.abelle_get_file_name=function(path){ path=path.replace(/\\/g, '/'); var pos=path.lastIndexOf('/'); if(pos >=0){ path=path.substr(pos + 1); } return path; }; window.abelle_get_file_ext=function(path){ var pos=path.lastIndexOf('.'); path=pos >=0 ? path.substr(pos + 1):''; return path; }; window.abelle_is_images_loaded=function(cont){ var complete=true; cont.find('img').each(function(){ if(! complete){ return; } var img=jQuery(this).get(0); if(typeof img.complete=='boolean'){ complete=img.complete; }else if(typeof img.naturalWidth=='number'&&typeof img.naturalHeight=='number'){ complete = ! (this.naturalWidth==0&&this.naturalHeight==0); }}); return complete; }; window.abelle_when_images_loaded=function(cont, callback, max_delay){ if(max_delay===undefined){ max_delay=3000; } if(max_delay <=0||abelle_is_images_loaded(cont)){ callback(); }else{ setTimeout(function(){ abelle_when_images_loaded(cont, callback, max_delay - 100); }, 100); }}; window.dcl===undefined&&(window.dcl=function(s){ console.log(s); }); window.dcs===undefined&&(window.dcs=function(){ console.trace(); }); window.dcts===undefined&&(window.dcts=function(name){ console.time(name ? name:'timer'); }); window.dctl===undefined&&(window.dctl=function(name){ console.timeLog(name ? name:'timer'); }); window.dcte===undefined&&(window.dcte=function(name){ console.timeEnd(name ? name:'timer'); }); })(); jQuery(document).ready(function(){ "use strict"; var ready_busy=true; var theme_init_counter=0; var $window=jQuery(window), $document=jQuery(document), $body=jQuery('body'); var $body_wrap, $page_wrap, $header, $footer, $menu_side_wrap, $menu_side_logo; var _header_height=0, _footer_height=0; var $page_content_wrap, $content, $sidebar, $cur_page_title_tag, $single_nav_links_fixed, $single_post_info_fixed, $single_post_scrollers, $stretch_width; var $nav_link_infinite; $document.on('action.new_post_added', update_jquery_links); $document.on('action.got_ajax_response', update_jquery_links); $document.on('action.init_hidden_elements', update_jquery_links); var first_run=true; function update_jquery_links(e){ if(first_run&&e && e.namespace=='init_hidden_elements'){ first_run=false; return; } $body_wrap=jQuery('.body_wrap'), $page_wrap=jQuery('.page_wrap'), $header=jQuery('.top_panel'), _header_height=$header.length===0 ? 0:$header.height(), $footer=jQuery('.footer_wrap'), _footer_height=$footer.length===0 ? 0:$footer.height(), $menu_side_wrap=jQuery('.menu_side_wrap'), $menu_side_logo=$menu_side_wrap.find('.sc_layouts_logo'); $page_content_wrap=jQuery('.page_content_wrap'); $content=jQuery('.content'); $sidebar=jQuery('.sidebar:not(.sidebar_fixed_placeholder)'); $cur_page_title_tag=jQuery('.sc_layouts_title_caption, head title').eq(0); $nav_link_infinite=jQuery('.nav-links-infinite'); $single_nav_links_fixed=jQuery('.nav-links-single.nav-links-fixed'); $single_post_info_fixed=jQuery('.post_info_vertical.post_info_vertical_fixed'); $single_post_scrollers=jQuery('.nav-links-single-scroll'); $stretch_width=jQuery('.trx-stretch-width'); } update_jquery_links(); abelle_intersection_observer_init(); abelle_init_actions(); function abelle_init_actions(){ if(ABELLE_STORAGE['vc_edit_mode']&&jQuery('.vc_empty-placeholder').length===0&&theme_init_counter++ < 30){ setTimeout(abelle_init_actions, 200); return; } $window.on('resize', function(){ abelle_resize_actions(); }); ABELLE_STORAGE['scroll_busy']=true; $window.on('scroll', function(){ if(window.requestAnimationFrame){ if(! ABELLE_STORAGE['scroll_busy']){ window.requestAnimationFrame(function(){ abelle_scroll_actions(); });ABELLE_STORAGE['scroll_busy']=true; }}else{ abelle_scroll_actions(); }}); document.documentElement.className=document.documentElement.className.replace(/\bno-js\b/,'js'); if(document.documentElement.className.indexOf(ABELLE_STORAGE['site_scheme'])==-1){ document.documentElement.className +=' ' + ABELLE_STORAGE['site_scheme']; } abelle_ready_actions(); abelle_resize_actions(); abelle_scroll_actions(); } function abelle_ready_actions(){ $body .on('focus', 'a.abelle_skip_link', function(){ if(! $body.hasClass('show_outline') ){ $body.addClass('show_outline'); }}) .on('click', 'a.abelle_skip_link', function(){ var id=jQuery(this).attr('href'); jQuery(id).focus(); }); $body.on('keydown', 'a,input,textarea,select,span[tabindex]', function(e){ if(9==e.which){ if(! $body.hasClass('show_outline') ){ $body.addClass('show_outline'); }} }); $document .on('keyup', function(e){ if(e.keyCode==27){ if(jQuery('.menu_mobile.opened').length==1){ abelle_mobile_menu_close(); e.preventDefault(); return false; }} }) .on('action.trx_addons_inner_links_click', function(e, link_obj, original_e){ if($body.hasClass('menu_mobile_opened') ){ $body.removeClass('menu_mobile_opened'); abelle_mobile_menu_close(); }}); $document.on('action.scroll_abelle', function(e){ abelle_infinite_scroll_in_blog(); }); $document.on('action.scroll_abelle', function(e){ abelle_infinite_scroll_in_single(); }); if($body.hasClass('single')){ abelle_add_to_read_list(jQuery('.content > article[data-post-id]').data('post-id')); } $document.on('action.init_hidden_elements', function(e, cont){ var read_list=abelle_get_storage('abelle_post_read'); if(read_list&&read_list.charAt(0)=='['){ read_list=JSON.parse(read_list); for (var p=0; p<read_list.length; p++){ var read_post=cont.find('[data-post-id="'+read_list[p]+'"]'); if(!read_post.addClass('full_post_read')&&!read_post.parent().hasClass('content')){ read_post.addClass('full_post_read'); }} }}); if(location.hash=='#comments'||location.hash=='#respond'){ var $show_comments_button=jQuery('.show_comments_button'); if($show_comments_button.length==1&&! $show_comments_button.hasClass('opened') ){ $show_comments_button.trigger('click'); abelle_document_animate_to(location.hash); }} $document.trigger('action.ready_abelle'); $document.trigger('action.prepare_stretch_width'); $stretch_width=jQuery('.trx-stretch-width'); $stretch_width.wrap('<div class="trx-stretch-width-wrap"></div>'); $stretch_width.after('<div class="trx-stretch-width-original"></div>'); abelle_stretch_width(); $document.on('action.init_hidden_elements', abelle_init_post_formats); $document.on('action.init_hidden_elements', abelle_add_toc_to_sidemenu); $document.trigger('action.init_hidden_elements', [$body.eq(0)]); } function abelle_init_post_formats(e, cont){ abelle_init_menus(cont); abelle_add_select_container(cont); abelle_init_bg_video(cont); abelle_init_tabs(cont); abelle_init_accordion(cont); abelle_init_sidebar_control(cont); abelle_init_masonry(cont); abelle_init_load_more(cont); abelle_init_load_single_post(cont); abelle_init_media_elements(cont); abelle_init_video_play_button(cont); abelle_init_comments_button(cont); abelle_init_comments_links(cont); abelle_init_checkbox_i_agree(cont); } function abelle_add_select_container(cont){ var selector=abelle_apply_filters('abelle_filter_select_container_selector', 'select:not(.esg-sorting-select):not([class*="trx_addons_attrib_"]):not([size])'); if(selector){ cont.find(selector).each(function(){ var $self=jQuery(this); if($self.css('display')!='none'&&$self.parents('.select_container').length===0&&! $self.next().hasClass('select2')&&! $self.hasClass('select2-hidden-accessible')&&! $self.hasClass('components-select-control__input') ){ $self.wrap('<div class="select_container"></div>'); if($self.parents(abelle_apply_filters('abelle_filter_bubble_submit_form', '.widget_categories') ).length > 0){ $self.parent().get(0).submit=function(){ jQuery(this).closest('form').eq(0).submit(); };}} }); }} $document.on('ajaxComplete', function(e){ setTimeout(function(){ abelle_add_select_container($body); }, 100); }); function abelle_init_bg_video(cont){ var $top_panel_with_bg_video=cont.find('.top_panel.with_bg_video:not(.inited)').addClass('inited'); if(ABELLE_STORAGE['background_video']&&$top_panel_with_bg_video.length > 0&&window.Bideo){ setTimeout(function(){ $top_panel_with_bg_video.prepend('<video id="background_video" loop muted></video>'); var bv=new Bideo(); bv.init({ videoEl: document.querySelector('#background_video'), container: document.querySelector('.top_panel'), resize: true, isMobile: window.matchMedia('(max-width: 768px)').matches, playButton: document.querySelector('#background_video_play'), pauseButton: document.querySelector('#background_video_pause'), src: [ { src: ABELLE_STORAGE['background_video'], type: 'video/' + abelle_get_file_ext(ABELLE_STORAGE['background_video']) } ], onLoad: function (){ }}); }, 10); }else if(jQuery.fn.tubular){ cont.find('#background_video:not(.inited)').each(function(){ var $self=jQuery(this).addClass('inited'); var youtube_code=$self.data('youtube-code'); if(youtube_code){ $self.tubular({ videoId: youtube_code }); jQuery('#tubular-player').appendTo($self).show(); jQuery('#tubular-container,#tubular-shield').remove(); }}); }} ABELLE_STORAGE['mejs_attempts']=0; function abelle_init_media_elements(cont){ var audio_selector=abelle_apply_filters('abelle_filter_mediaelements_audio_selector', 'audio:not(.inited)'), video_selector=abelle_apply_filters('abelle_filter_mediaelements_video_selector', 'video:not(.inited):not([nocontrols]):not([controls="0"]):not([controls="false"]):not([controls="no"])'), media_selector=audio_selector +(audio_selector&&video_selector ? ',':'') + video_selector; if(ABELLE_STORAGE['use_mediaelements']&&cont.find(media_selector).length > 0){ if(window.mejs){ if(window.mejs.MepDefaults){ window.mejs.MepDefaults.enableAutosize=true; } if(window.mejs.MediaElementDefaults){ window.mejs.MediaElementDefaults.enableAutosize=true; } cont.find('video.wp-video-shortcode[autoplay],' + 'video.wp-video-shortcode[nocontrols],' + 'video.wp-video-shortcode[controls="0"],' + 'video.wp-video-shortcode[controls="false"],' + 'video.wp-video-shortcode[controls="no"],' + '.wp-block-video > video[autoplay],' + '.wp-block-video > video[nocontrols],' + '.wp-block-video > video[controls="0"],' + '.wp-block-video > video[controls="false"],' + '.wp-block-video > video[controls="no"]') .removeClass('wp-video-shortcode'); cont.find(media_selector).each(function(){ var $self=jQuery(this); if($self.parents('div:hidden,section:hidden,article:hidden').length > 0){ return; } if($self.addClass('inited').parents('.mejs-mediaelement').length===0&&$self.parents('.wp-block-video').length===0&&! $self.hasClass('wp-block-cover__video-background')&&$self.parents('.elementor-background-video-container').length===0&&$self.parents('.elementor-widget-video').length===0&&$self.parents('.sc_layouts_title').length===0&&(ABELLE_STORAGE['init_all_mediaelements']||(! $self.hasClass('wp-audio-shortcode')&&! $self.hasClass('wp-video-shortcode')&&! $self.parent().hasClass('wp-playlist') )) ){ var media_cont=$self.parents('.post_video,.video_frame').eq(0); if(media_cont.length===0){ media_cont=$self.parent(); } var cont_w=media_cont.length > 0 ? media_cont.width():-1, cont_h=media_cont.length > 0 ? Math.floor(cont_w / 16 * 9):-1, settings={ enableAutosize: true, videoWidth: cont_w, videoHeight: cont_h, audioWidth: '100%', audioHeight: 40, success: function(mejs){ if(mejs.pluginType&&'flash'===mejs.pluginType&&mejs.attributes){ mejs.attributes.autoplay&&'false'!==mejs.attributes.autoplay&&mejs.addEventListener('canplay', function (){ mejs.play(); }, false); mejs.attributes.loop&&'false'!==mejs.attributes.loop&&mejs.addEventListener('ended', function (){ mejs.play(); }, false); }} }; $self.mediaelementplayer(settings); }}); }else if(ABELLE_STORAGE['mejs_attempts']++ < 5){ setTimeout(function(){ abelle_init_media_elements(cont); }, 400); }} setTimeout(function(){ ABELLE_STORAGE['init_all_mediaelements']=true; }, 1000); } function abelle_init_video_play_button(cont){ cont.find('.post_featured.with_thumb .post_video_hover:not(.post_video_hover_popup):not(.inited)') .addClass('inited') .on('click', function(e){ var $self=jQuery(this), $post_featured=$self.parents('.post_featured').eq(0); $post_featured .addClass('post_video_play') .find('.post_video').html($self.data('video') ); $document.trigger('action.init_hidden_elements', [ $post_featured ]); $window.trigger('resize'); e.preventDefault(); return false; }) .parents('.post_featured') .on('click', function(e){ var $self=jQuery(this); if(! $self.hasClass('post_video_play')&&! jQuery(e.target).is('a')){ jQuery(this).find('.post_video_hover').trigger('click'); e.preventDefault(); return false; }}); } function abelle_init_accordion(cont){ if(jQuery.ui&&jQuery.ui.accordion){ cont.find('.abelle_accordion:not(.inited)').each(function (){ var $self=jQuery(this); var headers=$self.data('headers')||'.abelle_accordion_title'; var height_style=$self.data('height-style')||'content'; var collapsible=$self.data('collapsible')||false; var init=$self.data('active'); var active=false; if(isNaN(init) ){ init=0; active=$self.find(headers + '[data-active="true"]').eq(0); if(active.length > 0){ while(! active.parent().hasClass('abelle_accordion') ){ active=active.parent(); } init=active.index(); if(isNaN(init)||init < 0) init=0; }}else{ init=Math.max(0, init); } $self.addClass('inited').accordion({ 'active': init, 'collapsible': collapsible, 'header': headers, 'heightStyle': height_style, 'create': function(event, ui){ if(ui.panel.length > 0&&! ready_busy){ $document.trigger('action.create_accordion', [ui.panel]); $document.trigger('action.init_hidden_elements', [ui.panel]); }else if(active!==false&&active.length > 0){ active.find('>' + headers).trigger('click'); }}, 'activate': function(event, ui){ if(ui.oldPanel.length > 0&&! ready_busy){ $document.trigger('action.deactivate_accordion', [ui.oldPanel]); } if(ui.newPanel.length > 0&&! ready_busy){ $document.trigger('action.activate_accordion', [ui.newPanel]); $document.trigger('action.init_hidden_elements', [ui.newPanel]); $window.trigger('resize'); }} }); }); }} function abelle_init_tabs(cont){ if(jQuery.ui&&jQuery.ui.tabs){ cont.find('.abelle_tabs:not(.inited)').each(function (){ var $self=jQuery(this); var init=$self.data('active'); if(isNaN(init) ){ init=0; var active=$self.find('> ul > li[data-active="true"]').eq(0); if(active.length > 0){ init=active.index(); if(isNaN(init)||init < 0){ init=0; }} }else{ init=Math.max(0, init); } $self.addClass('inited').tabs({ active: init, show: { effect: 'fadeIn', duration: 300 }, hide: { effect: 'fadeOut', duration: 300 }, create: function(event, ui){ if(ui.panel.length > 0&&! ready_busy){ $document.trigger('action.create_tab', [ui.panel]); $document.trigger('action.init_hidden_elements', [ui.panel]); }}, activate: function(event, ui){ if(ui.oldPanel.length > 0&&! ready_busy){ $document.trigger('action.deactivate_tab', [ui.oldPanel]); } if(ui.newPanel.length > 0&&! ready_busy){ $document.trigger('action.activate_tab', [ui.newPanel]); $document.trigger('action.init_hidden_elements', [ui.newPanel]); $window.trigger('resize'); }} }); if($self.hasClass('abelle_tabs_ajax') ){ $self.on('tabsbeforeactivate', function(event, ui){ if(ui.newPanel.data('need-content') ){ abelle_tabs_ajax_content_loader(ui.newPanel, 1, ui.oldPanel); }}); $self.on('click', '.nav-links a', function(e){ var $self=jQuery(this); var panel=$self.parents('.abelle_tabs_content'); var page=1; var href=$self.attr('href'); var pos=-1; if(( pos=href.lastIndexOf('/page/') )!=-1){ page=Number(href.substr(pos + 6).replace("/", "") ); if(! isNaN(page)){ page=Math.max(1, page); }} abelle_tabs_ajax_content_loader(panel, page); e.preventDefault(); return false; }); }}); }} function abelle_tabs_ajax_content_loader(panel, page, oldPanel){ if(panel.html().replace(/\s/g, '')===''){ var height=oldPanel===undefined ? panel.height():oldPanel.height(); if(isNaN(height)||height < 100){ height=100; } panel.html('<div class="abelle_tab_holder" style="min-height:' + height + 'px;"></div>'); }else{ panel.find('> *').addClass('abelle_tab_content_remove'); } panel.data('need-content', false).addClass('abelle_loading'); jQuery.post(ABELLE_STORAGE['ajax_url'], { nonce: ABELLE_STORAGE['ajax_nonce'], action: 'abelle_ajax_get_posts', blog_template: panel.data('blog-template'), blog_style: panel.data('blog-style'), posts_per_page: panel.data('posts-per-page'), cat: panel.data('cat'), parent_cat: panel.data('parent-cat'), post_type: panel.data('post-type'), taxonomy: panel.data('taxonomy'), page: page }).done(function(response){ panel.removeClass('abelle_loading'); var rez={}; try { rez=JSON.parse(response); } catch (e){ rez={ error: ABELLE_STORAGE['msg_ajax_error'] }; console.log(response); } if(rez.error!==''){ panel.html('<div class="abelle_error">' + rez.error + '</div>'); }else{ if(rez.css!==''){ abelle_import_inline_styles('<style id="abelle-inline-styles-inline-css">' + rez.css + '</style>'); } panel .find('.abelle_tab_holder,.abelle_tab_content_remove').remove().end() .prepend(rez.data).fadeIn(function(){ abelle_document_animate_to('#content_skip_link_anchor'); $document.trigger('action.init_hidden_elements', [panel]); $window.trigger('scroll'); }); $document.trigger('action.after_add_content', [panel]); } $document.trigger('action.got_ajax_response', { action: 'abelle_ajax_get_posts', result: rez, panel: panel }); }); } function abelle_init_load_more(cont){ cont.find('.nav-load-more:not(.inited)') .addClass('inited') .on('click', function(e){ var more=jQuery(this); if(more.data('load_more_link_busy') ){ return false; } var page=Number(more.data('page') ); var max_page=Number(more.data('max-page') ); if(page >=max_page){ more.parent().addClass('all_items_loaded').hide(); return false; } more.data('load_more_link_busy', true) .parent().addClass('loading'); var panel=more.parents('.abelle_tabs_content'); if(panel.length===0){ jQuery.get(location.href, { paged: page + 1 }).done(function(response){ abelle_import_inline_styles(response); abelle_import_tags_link(response); var $response=jQuery(response); var $response_posts_container=$response.find('.content .posts_container'); if($response_posts_container.length===0){ $response_posts_container=$response.find('.posts_container'); } if($response_posts_container.length > 0){ abelle_loadmore_add_items($content.find('.posts_container').eq(0), $response_posts_container.find('> .masonry_item,' + '> div[class*="column-"],' + '> article') ); } $document.trigger('action.got_ajax_response', { action: 'load_more_next_page', result: response });}); }else{ jQuery.post(ABELLE_STORAGE['ajax_url'], { nonce: ABELLE_STORAGE['ajax_nonce'], action: 'abelle_ajax_get_posts', blog_template: panel.data('blog-template'), blog_style: panel.data('blog-style'), posts_per_page: panel.data('posts-per-page'), cat: panel.data('cat'), parent_cat: panel.data('parent-cat'), post_type: panel.data('post-type'), taxonomy: panel.data('taxonomy'), page: page + 1 }).done(function(response){ var rez={}; try { rez=JSON.parse(response); } catch (e){ rez={ error: ABELLE_STORAGE['msg_ajax_error'] }; console.log(response); } if(rez.error!==''){ panel.html('<div class="abelle_error">' + rez.error + '</div>'); }else{ if(rez.css!==''){ abelle_import_inline_styles('<style id="abelle-inline-styles-inline-css">' + rez.css + '</style>'); } abelle_loadmore_add_items(panel.find('.posts_container'), jQuery(rez.data).find('> .masonry_item,' + '> div[class*="column-"],' + '> article') ); } $document.trigger('action.got_ajax_response', { action: 'abelle_ajax_get_posts', result: rez, panel: panel });}); } function abelle_loadmore_add_items(container, items){ if(container.length > 0&&items.length > 0){ items.addClass('just_loaded_items'); container.append(items); $document.trigger('action.after_add_content', [container]); var just_loaded_items=container.find('.just_loaded_items'); if(container.hasClass('masonry_wrap') ){ just_loaded_items.addClass('hidden'); abelle_when_images_loaded(just_loaded_items, function(){ just_loaded_items.removeClass('hidden'); container.masonry('appended', items).masonry(); jQuery('#toc_menu').remove(); ABELLE_STORAGE['init_all_mediaelements']=true; $document.trigger('action.init_hidden_elements', [container.parent()]); }); }else{ just_loaded_items.removeClass('just_loaded_items hidden'); jQuery('#toc_menu').remove(); ABELLE_STORAGE['init_all_mediaelements']=true; $document.trigger('action.init_hidden_elements', [container.parent()]); } more.data('page', page + 1).parent().removeClass('loading'); } if(page + 1 >=max_page){ more.parent().addClass('all_items_loaded').hide(); } more.data('load_more_link_busy', false); $window.trigger('resize'); $window.trigger('scroll'); } e.preventDefault(); return false; }); } function abelle_init_load_single_post(cont){ cont.find('.posts_container:not(.inited_open_full_post),.sc_blogger_content.sc_item_posts_container:not(.inited_open_full_post)') .addClass('inited_open_full_post') .on('click', 'a', function(e){ var link=jQuery(this), link_url=link.attr('href'), post=link.parents('.post_item,.sc_blogger_item').eq(0), post_url=post.find('.post_title > a,.entry-title > a').attr('href'), posts_container=post.parents('.posts_container,.sc_item_posts_container').eq(0); if(link_url&&post_url&&link_url==post_url&&(posts_container.hasClass('open_full_post')||ABELLE_STORAGE['open_full_post'])&&! posts_container.hasClass('no_open_full_post')&&! posts_container.hasClass('columns_wrap')&&! posts_container.hasClass('masonry_wrap')&&posts_container.find('.sc_blogger_grid_wrap').length===0&&posts_container.find('.masonry_wrap').length===0&&posts_container.parents('.wp-block-columns').length===0&&(posts_container.parents('.wpb_column').length===0||posts_container.parents('.wpb_column').eq(0).hasClass('vc_col-sm-12'))&&(posts_container.parents('.elementor-column').length===0||posts_container.parents('.elementor-column').eq(0).hasClass('elementor-col-100')) ){ posts_container.find('.full_post_opened').removeClass('full_post_opened').show(); posts_container.find('.full_post_content').remove(); post.addClass('full_post_loading'); jQuery.get(abelle_add_to_url(post_url, { 'action': 'full_post_loading' }) ).done(function(response){ if(response){ var $response=jQuery(response); var post_content=$response.find('.content'); if(post_content.length > 0){ var inline_styles=response.match(/<style[^>]*id="trx_addons-inline-styles-inline-css"[^>]*>([^<]*)<\/style>/); if(inline_styles){ jQuery('#trx_addons-inline-styles-inline-css').append(inline_styles[1]); } abelle_import_tags_link(response); var cs=post.offset().top -(post.parents('.posts_container').length > 0 ? 100:200); abelle_document_animate_to(cs); post.after('<div class="full_post_content">' + '<button class="full_post_close" data-post-url="' + post_url + '"></button>' + post_content.html() + '</div>') .removeClass('full_post_loading') .addClass('full_post_opened') .hide() .next().slideDown('slow', function(){ ABELLE_STORAGE['init_all_mediaelements']=true; $document.trigger('action.init_hidden_elements', [posts_container]); $window.trigger('resize'); }); abelle_full_post_read_change_state(); post.next().find('.full_post_close') .on('click', function(e){ var content=jQuery(this).parent(), cs=content.offset().top - (content.parents('.posts_container').length > 0 ? 100:200), post=content.prev(); content.remove(); abelle_full_post_read_change_state(); post .removeClass('full_post_opened') .slideDown(); abelle_document_animate_to(cs, 0); e.preventDefault(); return false; }); jQuery('#toc_menu').remove(); } $document.trigger('action.got_ajax_response', { action: 'full_post_loading', result: response }); }}); e.preventDefault(); return false; }}); } function abelle_infinite_scroll_in_blog(){ if(! $nav_link_infinite||$nav_link_infinite.length===0||$nav_link_infinite.hasClass('all_items_loaded') ){ return; } var container=$content.find('> .posts_container,> .blog_archive > .posts_container,> .abelle_tabs > .abelle_tabs_content:visible > .posts_container').eq(0); if(container.length==1&&container.offset().top + container.height() < abelle_window_scroll_top() + abelle_window_height() * 1.5){ $nav_link_infinite.find('a').trigger('click'); }} function abelle_infinite_scroll_in_single(){ if($single_post_scrollers.length===0){ return; } var container=ABELLE_STORAGE['which_block_load']=='article' ? $content.eq(0):$page_content_wrap.eq(0), cur_page_link=location.href, cur_page_title=$cur_page_title_tag.length ? $cur_page_title_tag.length:''; $single_post_scrollers.each(function(){ var inf=jQuery(this), link=inf.data('post-link'), off=inf.offset().top, st=abelle_window_scroll_top(), wh=abelle_window_height(); if(inf.hasClass('nav-links-single-scroll-loaded')){ if(link&&off < st + wh / 2){ cur_page_link=link; cur_page_title=inf.data('post-title'); }}else if(! inf.hasClass('abelle_loading')&&link&&off < st + wh * 2){ abelle_add_to_read_list(container.find('.previous_post_content:last-child > article[data-post-id]').data('post-id')); inf.addClass('abelle_loading'); jQuery.get(abelle_add_to_url(link, { 'action': 'prev_post_loading' }) ).done(function(response){ abelle_import_inline_styles(response); abelle_import_tags_link(response); var $response=jQuery(response), $response_page_content_wrap=$response.find('.page_content_wrap'), $response_content=$response.find('.content'), $response_sidebar=$response.find('.sidebar'), $response_post_content=ABELLE_STORAGE['which_block_load']=='article' ? $response_content:$response_page_content_wrap; if($response_post_content.length > 0){ var html=$response_post_content.html(), response_body_classes=ABELLE_STORAGE['which_block_load']=='article' ? null:response.match(/<body[^>]*class="([^"]*)"/); if(ABELLE_STORAGE['which_block_load']=='wrapper'){ if($response_sidebar.length===0&&! response_body_classes&&! $body.hasClass('expand_content')&&! $body.hasClass('narrow_content') ){ $response_post_content.find('.content').width('100%'); html=$response_post_content.html(); }else if($response_sidebar.length > 0&&$body.hasClass('narrow_content') ){ $response_post_content.find('.post_item_single.post_type_post').width('100%'); html=$response_post_content.html(); }} container.append('<div class="previous_post_content' +(response_body_classes ? ' ' + response_body_classes[1]:'') +($response_page_content_wrap.attr('data-single-style')!==undefined ? ' single_style_' + $response_page_content_wrap.attr('data-single-style'):'') + '">' + html + '</div>'); inf.removeClass('abelle_loading').addClass('nav-links-single-scroll-loaded'); jQuery('#toc_menu').remove(); ABELLE_STORAGE['init_all_mediaelements']=true; $document .trigger('action.new_post_added', [container]) .trigger('action.init_hidden_elements', [container]); $window.trigger('resize'); } $document.trigger('action.got_ajax_response', { action: 'prev_post_loading', result: response });}); }}); if(cur_page_link!=location.href){ abelle_document_set_location(cur_page_link); jQuery('.sc_layouts_title_caption,head title').html(cur_page_title); }} function abelle_init_menus(cont){ if($body.hasClass('menu_side_present')&&$menu_side_logo.length&&! $menu_side_logo.hasClass('inited_stretch') ){ $menu_side_logo.addClass('inited_stretch'); if(! abelle_is_images_loaded($menu_side_logo) ){ abelle_when_images_loaded($menu_side_logo, function(){ abelle_stretch_sidemenu(); }); }} var $menus=cont.find('.sc_layouts_menu:not(.inited_kbd)').addClass('inited_kbd'); $menus .on('keydown', 'li > a', function(e){ var handled=false, link=jQuery(this), li=link.parent(), ul=li.parent(), li_parent=ul.parent().prop('tagName')=='LI' ? ul.parent():false, item=false; if(32==e.which){ link.trigger('click'); handled=true; }else if(27==e.which){ if(li_parent){ item=li_parent.find('> a'); if(item.length > 0){ item.get(0).focus(); }} handled=true; }else if(37==e.which){ if(li_parent){ item=li_parent.find('> a'); if(item.length > 0){ item.get(0).focus(); }}else if(li.index() > 0){ item=li.prev().find('> a'); if(item.length > 0){ item.eq(0).focus(); }} handled=true; }else if(38==e.which){ if(li.index() > 0){ item=li.prev().find('> a'); if(item.length > 0){ item.get(0).focus(); }}else if(li_parent){ item=li_parent.find('> a'); if(item.length > 0){ item.get(0).focus(); }} handled=true; }else if(39==e.which){ if(li_parent){ if(li.find('> ul').length==1){ item=li.find('> ul > li:first-child a'); if(item.length > 0){ item.get(0).focus(); }} }else if(li.next().prop('tagName')=='LI'){ item=li.next().find('> a'); if(item.length > 0){ item.get(0).focus(); }} handled=true; }else if(40==e.which){ if(li_parent||li.find('> ul').length===0){ if(li.next().prop('tagName')=='LI'){ item=li.next().find('> a'); if(item.length > 0){ item.get(0).focus(); }} }else if(li.find('> ul').length==1){ item=li.find('> ul > li:first-child a'); if(item.length > 0){ item.get(0).focus(); }} handled=true; } if(handled){ if(! $body.hasClass('show_outline') ){ $body.addClass('show_outline'); } e.preventDefault(); return false; } return true; }); $menus.find('li[class*="image-"]').each(function(){ var $self=jQuery(this); var classes=$self.attr('class').split(' '); var icon=''; for (var i=0; i < classes.length; i++){ if(classes[i].indexOf('image-') >=0){ icon=classes[i].replace('image-', ''); break; }} if(icon){ $self.find('>a').css('background-image', 'url(' + ABELLE_STORAGE['theme_url'] + 'trx_addons/css/icons.png/' + icon + '.png'); }}); cont.find('.menu_side_button:not(.inited)') .addClass('inited') .on('click', function(e){ jQuery(this).parent().toggleClass('opened'); e.preventDefault(); return false; }); cont.find('.menu_mobile:not(.inited_arrows),.sc_layouts_menu_dir_vertical:not(.inited_arrows)') .addClass('inited_arrows') .find('.menu-item-has-children > a') .append('<span class="open_child_menu"></span>'); function abelle_mobile_menu_open(){ var $menu=cont.find('.menu_mobile'); $menu .addClass('opened') .prev('.menu_mobile_overlay').fadeIn(); $body.addClass('menu_mobile_opened'); $document .trigger('action.stop_wheel_handlers') .trigger('action.mobile_menu_open', [$menu]); } function abelle_mobile_menu_close(){ var $menu=cont.find('.menu_mobile'); $document.trigger('action.mobile_menu_close', [$menu]); setTimeout(function(){ $menu .removeClass('opened') .prev('.menu_mobile_overlay').fadeOut(); $body.removeClass('menu_mobile_opened'); $document.trigger('action.start_wheel_handlers'); }, abelle_apply_filters('abelle_filter_mobile_menu_close_timeout', 0, $menu) ); } cont.find('.sc_layouts_menu_mobile_button > a:not(.inited_click),.menu_mobile_button:not(.inited_click),.menu_mobile_description:not(.inited_click)') .addClass('inited_click') .on('click', function(e){ var $self=jQuery(this); if($self.parent().hasClass('sc_layouts_menu_mobile_button_burger')&&$self.next().hasClass('sc_layouts_menu_popup') ){ return; } abelle_mobile_menu_open(); e.preventDefault(); return false; }); cont.find('.menu_mobile_overlay:not(.inited_click)') .addClass('inited_click') .on('click', function(e){ abelle_mobile_menu_close(); e.preventDefault(); return false; }); cont.find('.menu_mobile_close:not(.inited_click)') .addClass('inited_click') .on('click', function(e){ abelle_mobile_menu_close(); e.preventDefault(); return false; }) .on('keyup', function(e){ if(e.keyCode==13){ if(jQuery('.menu_mobile.opened').length==1){ abelle_mobile_menu_close(); e.preventDefault(); return false; }} }) .on('focus', function(){ if(! $body.hasClass('menu_mobile_opened') ){ jQuery('#content_skip_link_anchor').focus(); }}); cont.find('.menu_mobile:not(.inited_click),.sc_layouts_menu_dir_vertical:not([class*="sc_layouts_submenu_"]):not(.inited_click),.sc_layouts_menu.sc_layouts_submenu_dropdown:not(.inited_click)') .addClass('inited_click') .on('click', 'li a, li a .open_child_menu', function(e){ var $self=jQuery(this); var $a=$self.hasClass('open_child_menu') ? $self.parent():$self; if($a.parent().hasClass('menu-item-has-children')){ if($a.attr('href')=='#'||$self.hasClass('open_child_menu')){ if($a.siblings('ul:visible').length > 0){ $a.siblings('ul').slideUp().parent().removeClass('opened'); }else{ $self.parents('li').eq(0).siblings('li').find('ul.sub-menu:visible,ul.sc_layouts_submenu:visible').slideUp().parent().removeClass('opened'); $a.siblings('ul').slideDown(function(){ var $self=jQuery(this); if(! $self.hasClass('layouts_inited')&&$self.parents('.menu_mobile').length > 0){ $self.addClass('layouts_inited'); $document.trigger('action.init_hidden_elements', [$self]); }}).parent().addClass('opened'); }} } if(! $self.hasClass('open_child_menu')&&$self.parents('.menu_mobile').length > 0&&abelle_is_local_link($a.attr('href') )){ jQuery('.menu_mobile_close').trigger('click'); } if($self.hasClass('open_child_menu')||$a.attr('href')=='#'){ e.preventDefault(); return false; }}) .on('keyup', 'li a', function(e){ if(e.keyCode==9){ jQuery(this).find('.open_child_menu').trigger('click'); }}); if(! ABELLE_STORAGE['trx_addons_exist']||jQuery('.top_panel.top_panel_default .sc_layouts_menu_default').length > 0){ abelle_init_sfmenu('.sc_layouts_menu:not(.inited):not(.sc_layouts_submenu_dropdown) > ul:not(.inited)'); jQuery('.sc_layouts_menu:not(.inited)').each(function(){ var $self=jQuery(this); if($self.find('>ul.inited').length==1){ $self.addClass('inited'); }}); $window.trigger('scroll'); }} function abelle_init_sfmenu(selector){ jQuery(selector).show().each(function(){ var $self=jQuery(this); if($self.addClass('inited').parents('.menu_mobile').length > 0){ return; } var animation_in=$self.parent().data('animation_in'); if(animation_in==undefined){ animation_in="none"; } var animation_out=$self.parent().data('animation_out'); if(animation_out==undefined){ animation_out="none"; } $self.superfish({ delay: 300, animation: { opacity: 'show' }, animationOut: { opacity: 'hide' }, speed: animation_in!='none' ? 500:200, speedOut: animation_out!='none' ? 300:200, autoArrows: false, dropShadows: false, onBeforeShow: function(ul){ var $self=jQuery(this), $ul=$self.parents("ul"); var par_offset=0, par_width=0, ul_width=0, ul_height=0; if($ul.length > 1){ var w=$page_wrap.width(); par_offset=$ul.eq(0).offset().left; par_width=$ul.eq(0).outerWidth(); ul_width=$self.outerWidth(); if(par_offset + par_width + ul_width > w - 20&&par_offset - ul_width > 0){ $self.addClass('submenu_left'); }else{ $self.removeClass('submenu_left'); }} if($self.parents('.top_panel').length > 0){ ul_height=$self.outerHeight(); par_offset=0; var w_height=abelle_window_height(), row=$self.parents('.sc_layouts_row').eq(0), row_offset=0, row_height=0, par=$self.parent(); while (row.length > 0){ row_offset +=row.outerHeight(); if(row.hasClass('sc_layouts_row_fixed_on')){ break; } row=row.prev(); } while (par.length > 0){ par_offset +=par.position().top + par.parent().position().top; row_height=par.outerHeight(); if(par.position().top===0){ break; } par=par.parents('li').eq(0); } if(row_offset + par_offset + ul_height > w_height){ if(par_offset > ul_height){ $self.css({ 'top': 'auto', 'bottom': '-1.4em' }); }else{ $self.css({ 'top': '-' + (par_offset - row_height - 2) + 'px', 'bottom': 'auto' }); }} } if(animation_in!='none'){ $self.removeClass('animated faster ' + animation_out); $self.addClass('animated fast ' + animation_in); }}, onBeforeHide: function(ul){ if(animation_out!='none'){ var $self=jQuery(this); $self.removeClass('animated fast ' + animation_in); $self.addClass('animated faster ' + animation_out); }}, onShow: function(ul){ var $self=jQuery(this); if(! $self.hasClass('layouts_inited')){ $self.addClass('layouts_inited'); $document.trigger('action.init_hidden_elements', [$self]); }} }); }); } function abelle_add_toc_to_sidemenu(){ if(jQuery('.menu_side_inner').length > 0&&jQuery('#toc_menu').length > 0){ jQuery('#toc_menu').appendTo('.menu_side_inner'); abelle_stretch_sidemenu(); }} function abelle_init_sidebar_control(cont){ cont.find('.sidebar_control:not(.inited)') .addClass('inited') .on('click', function(e){ var $self=jQuery(this), $parent=$self.parent(); $parent.toggleClass('opened'); if($body.hasClass('sidebar_small_screen_above') ){ var $next=$self.next(); $next.slideToggle(); if($parent.hasClass('opened') ){ setTimeout(function(){ $document.trigger('action.init_hidden_elements', [$next]); }, 310); }} e.preventDefault(); return false; }); } function abelle_init_masonry(cont){ cont.find(abelle_apply_filters('abelle_filter_masonry_wrap', '.masonry_wrap') ).each(function(){ var masonry_wrap=jQuery(this); if(masonry_wrap.parents('div:hidden,article:hidden').length > 0) return; if(! masonry_wrap.hasClass('inited') ){ masonry_wrap.addClass('inited'); abelle_when_images_loaded(masonry_wrap, function(){ setTimeout(function(){ masonry_wrap.masonry({ itemSelector: abelle_apply_filters('abelle_filter_masonry_item', '.masonry_item'), columnWidth: abelle_apply_filters('abelle_filter_masonry_item', '.masonry_item'), percentPosition: true }); $window.trigger('resize'); $window.trigger('scroll'); }, abelle_apply_filters('abelle_filter_masonry_init', 10) ); });}else{ setTimeout(function(){ masonry_wrap.masonry(); }, abelle_apply_filters('abelle_filter_masonry_reinit', 510) ); }}); } function abelle_init_comments_button(cont){ cont.find('.show_comments_button:not(.inited)') .addClass('inited') .on('click', function(e){ var bt=jQuery(this); if(bt.attr('href')=='#'){ bt.toggleClass('opened').text(bt.data(bt.hasClass('opened') ? 'hide':'show') ); var $comments_wrap=bt.parent().next(); $comments_wrap.slideToggle(function(){ $comments_wrap.toggleClass('opened'); $window.trigger('scroll'); });e.preventDefault(); return false; }}); } function abelle_init_comments_links(cont){ cont.find('a[href$="#comments"]:not(.inited),a[href$="#respond"]:not(.inited)') .addClass('inited') .on('click', function(e){ var $self=jQuery(this); if(abelle_is_local_link($self.attr('href')) ){ var $prev_post_content=$self.parents('.previous_post_content'), $comments_wrap=$prev_post_content.length ? $prev_post_content.find('.comments_wrap').eq(0):jQuery('.comments_wrap').eq(0), $show_comments_button=$comments_wrap.prev().find('.show_comments_button '); if($comments_wrap.length){ if($comments_wrap.css('display')=='none'){ if($show_comments_button.length){ $show_comments_button.trigger('click'); }} if($show_comments_button.length){ abelle_document_animate_to($show_comments_button.offset().top); }} }}); } function abelle_init_checkbox_i_agree(cont){ var $i_agree=cont.find('input[type="checkbox"][name="i_agree_privacy_policy"]:not(.inited)' + ',input[type="checkbox"][name="gdpr_terms"]:not(.inited)' + ',input[type="checkbox"][name="wpgdprc"]:not(.inited)' + ',input[type="checkbox"][name="AGREE_TO_TERMS"]:not(.inited)' + ',input[type="checkbox"][name="acceptance"]:not(.inited)'); if($i_agree.length > 0){ if(true){ $i_agree.each(function(){ var chk=jQuery(this), form=chk.parents('form'); chk.addClass('inited'); form.find('button,input[type="submit"]').on('click', function(e){ if(! chk.get(0).checked){ form.find('.trx_addons_message_box').remove(); form.append('<div class="trx_addons_message_box trx_addons_message_box_error">' + ABELLE_STORAGE['msg_i_agree_error'] + '</div>'); var error_msg=form.find('.trx_addons_message_box'); error_msg.fadeIn(); setTimeout(function(){ error_msg.fadeOut(function(){ error_msg.remove(); }); }, 3000); e.preventDefault(); return false; }}); }); }else{ $i_agree .addClass('inited') .on('change', function(e){ var $self=jQuery(this), $bt=$self.parents('form').find('button,input[type="submit"]'); if($self.get(0).checked){ $bt.removeAttr('disabled'); }else{ $bt.attr('disabled', 'disabled'); }}) .trigger('change'); }} } function abelle_intersection_observer_init(){ if(typeof IntersectionObserver!='undefined'){ if(typeof ABELLE_STORAGE['intersection_observer']=='undefined'){ ABELLE_STORAGE['intersection_observer']=new IntersectionObserver(function(entries){ entries.forEach(function(entry){ abelle_intersection_observer_in_out(jQuery(entry.target), entry.isIntersecting||entry.intersectionRatio > 0 ? 'in':'out', entry); }); }, { root: null, rootMargin: '1px', threshold: 0 }); }}else{ $window.on('scroll', function(){ if(typeof ABELLE_STORAGE['intersection_observer_items']!='undefined'){ for(var i in ABELLE_STORAGE['intersection_observer_items']){ if(! ABELLE_STORAGE['intersection_observer_items'][i]||ABELLE_STORAGE['intersection_observer_items'][i].length===0){ continue; } var item=ABELLE_STORAGE['intersection_observer_items'][i], item_top=item.offset().top, item_height=item.height(); abelle_intersection_observer_in_out(item, item_top + item_height > abelle_window_scroll_top()&&item_top < abelle_window_scroll_top() + abelle_window_height() ? 'in':'out'); }} }); } window.abelle_intersection_observer_in_out=function(item, state, entry){ var callback=null; if(state=='in'){ if(! item.hasClass('abelle_in_viewport') ){ item.addClass('abelle_in_viewport'); callback=item.data('trx-addons-intersection-callback'); if(callback){ callback(item, true, entry); }} }else{ if(item.hasClass('abelle_in_viewport') ){ item.removeClass('abelle_in_viewport'); callback=item.data('trx-addons-intersection-callback'); if(callback){ callback(item, false, entry); }} }}; window.abelle_intersection_observer_add=function(items, callback){ items.each(function(){ var $self=jQuery(this), id=$self.attr('id'); if(! $self.hasClass('abelle_intersection_inited') ){ if(! id){ id='io-' +('' + Math.random()).replace('.', ''); $self.attr('id', id); } $self.addClass('abelle_intersection_inited'); if(callback){ $self.data('trx-addons-intersection-callback', callback); } if(typeof ABELLE_STORAGE['intersection_observer_items']=='undefined'){ ABELLE_STORAGE['intersection_observer_items']={};} ABELLE_STORAGE['intersection_observer_items'][id]=$self; if(typeof ABELLE_STORAGE['intersection_observer']!=='undefined'){ ABELLE_STORAGE['intersection_observer'].observe($self.get(0)); }} }); }; window.abelle_intersection_observer_remove=function(items){ items.each(function(){ var $self=jQuery(this), id=$self.attr('id'); if($self.hasClass('abelle_intersection_inited') ){ $self.removeClass('abelle_intersection_inited'); delete ABELLE_STORAGE['intersection_observer_items'][id]; if(typeof ABELLE_STORAGE['intersection_observer']!=='undefined'){ ABELLE_STORAGE['intersection_observer'].unobserve($self.get(0)); }} }); };} function abelle_scroll_actions(){ $document.trigger('action.scroll_abelle'); abelle_fix_sidebar(); abelle_fix_nav_links(); abelle_fix_share_links(); abelle_shift_under_panels(); abelle_full_post_reading(); ABELLE_STORAGE['scroll_busy']=false; } function abelle_add_to_read_list(post_id){ if(post_id > 0){ var read_list=abelle_get_storage('abelle_post_read'); if(read_list&&read_list.charAt(0)=='['){ read_list=JSON.parse(read_list); }else{ read_list=[]; } if(read_list.indexOf(post_id)==-1){ read_list.push(post_id); } abelle_set_storage('abelle_post_read', JSON.stringify(read_list)); }} var fpr_bt, fpr_cont, fpr_cs, fpr_ch, fpr_pw; function abelle_full_post_read_change_state(){ fpr_bt=jQuery('.full_post_close'); if(fpr_bt.length==1){ fpr_cont=fpr_bt.parent(); fpr_cs=fpr_cont.offset().top; fpr_ch=fpr_cont.height(); fpr_pw=fpr_bt.find('.full_post_progress'); }} function abelle_full_post_reading(){ if(typeof fpr_bt=='undefined'){ abelle_full_post_read_change_state(); } if(fpr_bt.length==1){ var ws=abelle_window_scroll_top(), wh=abelle_window_height(); if(ws > fpr_cs){ if(fpr_pw.length===0){ fpr_bt.append('<span class="full_post_progress">' + '<svg viewBox="0 0 50 50">' + '<circle class="full_post_progress_bar" cx="25" cy="25" r="22"></circle>' + '</svg>' + '</span>'); fpr_pw=fpr_bt.find('.full_post_progress'); } var bar=fpr_pw.find('.full_post_progress_bar'), bar_max=parseFloat(bar.css('stroke-dasharray')); if(fpr_cs + fpr_ch > ws + wh){ var now=fpr_cs + fpr_ch -(ws + wh), delta=bar.data('delta'); if(delta==undefined){ delta=now; bar.data('delta', delta); } bar.css('stroke-dashoffset', Math.min(1, now / delta) * bar_max); if(now / delta < 0.5){ var post=fpr_cont.prev(), post_id=post.data('post-id'); post.addClass('full_post_read'); abelle_add_to_read_list(post_id); }}else if(! fpr_bt.hasClass('full_post_read_complete')){ fpr_bt.addClass('full_post_read_complete'); }else if(fpr_cs + fpr_ch + wh / 3 < ws + wh){ fpr_bt.trigger('click'); }}else{ if(fpr_pw.length!==0){ fpr_pw.remove(); }} }} function abelle_shift_under_panels(){ if($body.hasClass('header_position_under')&&! abelle_browser_is_mobile()){ if($body.hasClass('mobile_layout') ){ if($header.css('position')=='fixed'){ $header.css({ 'position': 'relative', 'left': 'auto', 'top': 'auto', 'width': 'auto', 'transform': 'none', 'zIndex': 3 }); $header.find('.top_panel_mask').hide(); $page_content_wrap.css({ 'marginTop': 0, 'marginBottom': 0, 'zIndex': 2 }); $footer.css({ 'position': 'relative', 'left': 'auto', 'bottom': 'auto', 'width': 'auto', 'transform': 'none', 'zIndex': 1 }); $footer.find('.top_panel_mask').hide(); } return; } var delta=50; var scroll_offset=abelle_window_scroll_top(); var header_height=_header_height; var shift = ! (/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor))||$header.find('.slider_engine_revo').length===0 ? 0:0; var mask=$header.find('.top_panel_mask'); var mask_opacity=0; var css={}; if(mask.length===0){ $header.append('<div class="top_panel_mask"></div>'); mask=$header.find('.top_panel_mask'); } if($header.css('position')!=='fixed'){ $page_content_wrap.css({ 'zIndex': 5, 'marginTop': header_height + 'px' }); $header.css({ 'position': 'fixed', 'left': 0, 'top': abelle_adminbar_height() + 'px', 'width': '100%', 'zIndex': 3 }); }else{ $page_content_wrap.css('marginTop', header_height + 'px'); } if(scroll_offset > 0){ var offset=scroll_offset; if(offset <=header_height){ mask_opacity=Math.max(0, Math.min(0.8, (offset - delta) / header_height) ); if(shift){ $header.css('transform', 'translate3d(0px, ' + (-Math.round(offset / shift)) + 'px, 0px)'); } mask.css({ 'opacity': mask_opacity, 'display': offset===0 ? 'none':'block' }); }else{ if(shift){ $header.css('transform', 'translate3d(0px, ' + (-Math.round(offset / shift)) + 'px, 0px)'); }} }else{ if(shift){ $header.css('transform', 'none'); } if(mask.css('display')!='none'){ mask.css({ 'opacity': 0, 'display': 'none' }); }} var footer_height=Math.min(_footer_height, abelle_window_height()); var footer_visible=(scroll_offset + abelle_window_height()) -($header.outerHeight() + $page_content_wrap.outerHeight()); if($footer.css('position')!=='fixed'){ $page_content_wrap.css({ 'marginBottom': footer_height + 'px' }); $footer.css({ 'position': 'fixed', 'left': 0, 'bottom': 0, 'width': '100%', 'zIndex': 2 }); }else{ $page_content_wrap.css('marginBottom', footer_height + 'px'); } if(footer_visible > 0){ if($footer.css('zIndex')==2){ $footer.css('zIndex', 4); } mask=$footer.find('.top_panel_mask'); if(mask.length===0){ $footer.append('<div class="top_panel_mask"></div>'); mask=$footer.find('.top_panel_mask'); } if(footer_visible <=footer_height){ mask_opacity=Math.max(0, Math.min(0.8, (footer_height - footer_visible) / footer_height) ); if(shift){ $footer.css('transform', 'translate3d(0px, ' + Math.round((footer_height - footer_visible) / shift) + 'px, 0px)'); } mask.css({ 'opacity': mask_opacity, 'display': footer_height - footer_visible <=0 ? 'none':'block' }); }else{ if(shift){ $footer.css('transform', 'none'); } if(mask.css('display')!='none'){ mask.css({ 'opacity': 0, 'display': 'none' }); }} }else{ if($footer.css('zIndex')==4){ $footer.css('zIndex', 2); }} }} function abelle_fix_footer(){ if($body.hasClass('header_position_under')&&! abelle_browser_is_mobile()){ if($footer.length > 0){ var ft_height=$footer.outerHeight(false), pc=$page_content_wrap, pc_offset=pc.offset().top, pc_height=pc.height(); if(pc_offset + pc_height + ft_height < abelle_window_height()){ if($footer.css('position')!='absolute'){ $footer.css({ 'position': 'absolute', 'left': 0, 'bottom': 0, 'width' :'100%' }); }}else{ if($footer.css('position')!='relative'){ $footer.css({ 'position': 'relative', 'left': 'auto', 'bottom': 'auto' }); }} }} } function abelle_fix_sidebar(force){ if($body.hasClass('fixed_blocks_sticky') ){ return; } $sidebar.each(function(){ var sb=jQuery(this); var content=sb.siblings('.content'); var old_style=''; if(content.length==0){ return; } if(content.css('float')=='none'){ old_style=sb.data('old_style'); if(old_style!==undefined){ sb.attr('style', old_style).removeAttr('data-old_style'); }}else{ var sb_height=sb.outerHeight(); var sb_shift=30; var content_height=content.outerHeight(); var content_top=content.offset().top; var content_shift=content.position().top; if(sb_height < content_height&&abelle_window_scroll_top() + abelle_fixed_rows_height() > content_top){ var sb_init={ 'position': 'undefined', 'float': 'none', 'top': 'auto', 'bottom': 'auto', 'marginLeft': '0', 'marginRight': '0' }; if(typeof ABELLE_STORAGE['scroll_offset_last']=='undefined'){ ABELLE_STORAGE['sb_top_last']=content_top; ABELLE_STORAGE['scroll_offset_last']=abelle_window_scroll_top(); ABELLE_STORAGE['scroll_dir_last']=1; } var scroll_dir=abelle_window_scroll_top() - ABELLE_STORAGE['scroll_offset_last']; if(scroll_dir===0){ scroll_dir=ABELLE_STORAGE['scroll_dir_last']; }else{ scroll_dir=scroll_dir > 0 ? 1:-1; } var sb_big=sb_height + sb_shift >=abelle_window_height() - abelle_fixed_rows_height(), sb_top=sb.offset().top; if(sb_top < 0){ sb_top=ABELLE_STORAGE['sb_top_last']; } if(sb_big){ if(scroll_dir!=ABELLE_STORAGE['scroll_dir_last']&&sb.css('position')=='fixed'){ sb_init.position='absolute'; sb_init.top=sb_top + content_shift - content_top; }else if(scroll_dir > 0){ if(abelle_window_scroll_top() + abelle_window_height() >=content_top + content_height){ sb_init.position='absolute'; sb_init.bottom=0; }else if(abelle_window_scroll_top() + abelle_window_height() >=(sb.css('position')=='absolute' ? sb_top:content_top) + sb_height + sb_shift){ sb_init.position='fixed'; sb_init.bottom=sb_shift; }}else{ if(abelle_window_scroll_top() + abelle_fixed_rows_height() <=sb_top){ sb_init.position='fixed'; sb_init.top=abelle_fixed_rows_height(); }} }else{ if(abelle_window_scroll_top() + abelle_fixed_rows_height() >=content_top + content_height - sb_height){ sb_init.position='absolute'; sb_init.bottom=0; }else{ sb_init.position='fixed'; sb_init.top=abelle_fixed_rows_height(); }} if(force&&sb_init.position=='undefined'&&sb.css('position')=='absolute'){ sb_init.position='absolute'; if(sb.css('top')!='auto'){ sb_init.top=sb.css('top'); }else{ sb_init.bottom=sb.css('bottom'); }} if(sb_init.position=='absolute'||sb_init.position=='undefined'){ if(sb_init.top=='auto'&&sb_init.bottom=='auto'){ sb_init.top=sb.offset().top; } if(sb_init.top!='auto'){ if(sb_init.top + sb_height > content_height){ sb_init.position='absolute'; sb_init.top=content_shift + content_height - sb_height; force=true; } if(sb_init.top + sb_height <=content_shift + content_height&&sb_init.top >=abelle_window_scroll_top() + abelle_window_height()){ sb_init.position='fixed'; sb_init.top='auto'; sb_init.bottom=sb_shift; force=true; }} }else if(sb_init.position=='fixed'){ if(sb_init.top=='auto'&&sb_init.bottom=='auto'&&sb.css('top')!='auto'){ sb_init.top=parseFloat(sb.css('top')); } if(sb_init.top!='auto'&&abelle_window_scroll_top() + sb_init.top + sb_height > content_top + content_height){ sb_init.position='absolute'; sb_init.top=content_shift + content_height - sb_height; force=true; }} if(sb_init.position!='undefined'){ var style=sb.attr('style'); if(!style) style=''; if(!sb.prev().hasClass('sidebar_fixed_placeholder')){ sb.css(sb_init); ABELLE_STORAGE['scroll_dir_last']=0; sb.before('<div class="sidebar_fixed_placeholder '+sb.attr('class')+'"' + (sb.data('sb') ? ' data-sb="' + sb.data('sb') + '"':'') + '></div>'); } sb_init.left=sb_init.position=='fixed'||$body.hasClass('body_style_fullwide')||$body.hasClass('body_style_fullscreen') ? sb.prev().offset().left:sb.prev().position().left; sb_init.right='auto'; sb_init.width=sb.prev().width() + parseFloat(sb.prev().css('paddingLeft')) + parseFloat(sb.prev().css('paddingRight')); if(force||sb.css('position')!=sb_init.position||ABELLE_STORAGE['scroll_dir_last']!=scroll_dir||sb.width()!=sb_init.width){ if(sb.data('old_style')===undefined){ sb.attr('data-old_style', style); } sb.css(sb_init); }} ABELLE_STORAGE['sb_top_last']=sb_top; ABELLE_STORAGE['scroll_offset_last']=abelle_window_scroll_top(); ABELLE_STORAGE['scroll_dir_last']=scroll_dir; }else{ old_style=sb.data('old_style'); if(old_style!==undefined){ sb.attr('style', old_style).removeAttr('data-old_style'); if(sb.prev().hasClass('sidebar_fixed_placeholder')){ sb.prev().remove(); }} }} }); } function abelle_fix_nav_links(){ if($single_nav_links_fixed.length > 0&&$single_nav_links_fixed.css('position')=='fixed'){ var window_bottom=abelle_window_scroll_top() + abelle_window_height(), article=jQuery('.post_item_single'), article_top=article.length > 0 ? article.offset().top:abelle_window_height(), article_bottom=article_top +(article.length > 0 ? article.height() * 2 / 3:0), footer_top=$footer.length > 0 ? $footer.offset().top:100000; if(article_bottom < window_bottom&&footer_top > window_bottom){ if(! $single_nav_links_fixed.hasClass('nav-links-visible')){ $single_nav_links_fixed.addClass('nav-links-visible'); }}else{ if($single_nav_links_fixed.hasClass('nav-links-visible')){ $single_nav_links_fixed.removeClass('nav-links-visible'); }} }} function abelle_fix_share_links(){ if($single_post_info_fixed.length > 0){ var frh=abelle_fixed_rows_height() + 10, st=abelle_window_scroll_top() + frh; $single_post_info_fixed.each(function(){ var share_links=jQuery(this), share_links_top=share_links.offset().top, share_links_left=share_links.offset().left, share_links_height=share_links.height(), share_links_position=share_links.css('position'), article=share_links.parents('.post_content'), article_top=article.offset().top, article_bottom=article_top + article.height(); if(share_links_position=='absolute'){ if(st >=article_top&&st + share_links_height < article_bottom){ share_links .data('abs-pos', { 'left': share_links.css('left'), 'top': share_links.css('top')}) .addClass('post_info_vertical_fixed_on') .css({ 'top': frh, 'left': share_links_left });}}else if(share_links_position=='fixed'){ if(st < article_top){ if(share_links.hasClass('post_info_vertical_fixed_on') ){ var abs_pos=share_links.data('abs-pos'); share_links .removeClass('post_info_vertical_fixed_on') .css({ 'top': abs_pos.top, 'left': abs_pos.left });}}else if(st + share_links_height >=article_bottom){ share_links.fadeOut(); }else if(share_links.css('display')=='none'){ share_links.fadeIn(); }} });}} function abelle_resize_actions(cont){ _header_height=$header.length===0 ? 0:$header.height(); _footer_height=$footer.length===0 ? 0:$footer.height(); abelle_check_layout(); abelle_fix_sidebar(true); abelle_fix_footer(); abelle_fix_nav_links(); abelle_stretch_width(cont); abelle_stretch_bg_video(); abelle_vc_row_fullwidth_to_boxed(cont); abelle_stretch_sidemenu(); abelle_resize_video(cont); abelle_shift_under_panels(); $document.trigger('action.resize_abelle', [cont]); } function abelle_stretch_sidemenu(){ var toc_items=$menu_side_wrap.find('.toc_menu_item'); if(toc_items.length===0){ return; } var toc_items_height=abelle_window_height() - abelle_adminbar_height() - $menu_side_logo.outerHeight() - toc_items.length; var th=Math.floor(toc_items_height / toc_items.length); var th_add=toc_items_height - th * toc_items.length; if(ABELLE_STORAGE['menu_side_stretch']&&toc_items.length >=5&&th >=30){ toc_items.find(".toc_menu_description,.toc_menu_icon").css({ 'height': th + 'px', 'lineHeight': th + 'px' }); toc_items.eq(0).find(".toc_menu_description,.toc_menu_icon").css({ 'height': (th + th_add) + 'px', 'lineHeight': (th + th_add) + 'px' }); }} $document.on('action.toc_menu_item_active', function(){ var toc_menu=$menu_side_wrap.find('#toc_menu'); if(toc_menu.length===0){ return; } var toc_items=toc_menu.find('.toc_menu_item'); if(toc_items.length===0){ return; } var th=toc_items.eq(0).height(), toc_menu_pos=parseFloat(toc_menu.css('top') ), toc_items_height=toc_items.length * th, menu_side_height=abelle_window_height() - abelle_adminbar_height() - $menu_side_logo.outerHeight() - $menu_side_logo.next('.toc_menu_item').outerHeight(); if(toc_items_height > menu_side_height){ var toc_item_active=$menu_side_wrap.find('.toc_menu_item_active').eq(0); if(toc_item_active.length==1){ var toc_item_active_pos=(toc_item_active.index() + 1) * th; if(toc_menu_pos + toc_item_active_pos > menu_side_height - th){ toc_menu.css('top', Math.max(-toc_item_active_pos + 3 * th, menu_side_height - toc_items_height) ); }else if(toc_menu_pos < 0&&toc_item_active_pos < -toc_menu_pos + 2 * th){ toc_menu.css('top', Math.min(-toc_item_active_pos + 3 * th, 0) ); }} }else if(toc_menu_pos < 0){ toc_menu.css('top', 0); }}); function abelle_check_layout(){ var resize=true; if($body.hasClass('no_layout') ){ $body.removeClass('no_layout'); resize=false; } var w=window.innerWidth; if(w==undefined){ w=abelle_window_width() +(abelle_window_height() < abelle_document_height()||abelle_window_scroll_top() > 0 ? 16:0); } if(w < ABELLE_STORAGE['mobile_layout_width']){ if(! $body.hasClass('mobile_layout')){ $body.removeClass('desktop_layout').addClass('mobile_layout'); $document.trigger('action.switch_to_mobile_layout'); if(resize){ $window.trigger('resize'); }} }else{ if(! $body.hasClass('desktop_layout')){ $body.removeClass('mobile_layout').addClass('desktop_layout'); jQuery('.menu_mobile').removeClass('opened'); jQuery('.menu_mobile_overlay').hide(); $document.trigger('action.switch_to_desktop_layout'); if(resize){ $window.trigger('resize'); }} } if(ABELLE_STORAGE['mobile_device']||abelle_browser_is_mobile()){ $body.addClass('mobile_device'); }} function abelle_stretch_width(cont){ if(cont===undefined){ cont=$body; } $stretch_width.each(function(){ var $el=jQuery(this); var $el_cont=$el.parents('.page_wrap'); var $el_cont_offset=0; if($el_cont.length===0){ $el_cont=$window; }else{ $el_cont_offset=$el_cont.offset().left; } var $el_full=$el.next('.trx-stretch-width-original'); var el_margin_left=parseInt($el.css('margin-left'), 10); var el_margin_right=parseInt($el.css('margin-right'), 10); var offset=$el_cont_offset - $el_full.offset().left - el_margin_left; var width=$el_cont.width(); if(! $el.hasClass('inited')){ $el.addClass('inited invisible'); $el.css({ 'position': 'relative', 'box-sizing': 'border-box' }); } $el.css({ 'left': offset, 'width': $el_cont.width() }); if(! $el.hasClass('trx-stretch-content') ){ var padding=Math.max(0, -1 * offset); var paddingRight=Math.max(0, width - padding - $el_full.width() + el_margin_left + el_margin_right); $el.css({ 'padding-left': padding + 'px', 'padding-right': paddingRight + 'px' }); } $el.removeClass('invisible'); }); } function abelle_resize_video(cont){ if(cont===undefined){ cont=$body; } cont.find('video').each(function(){ var $self=jQuery(this); if(( ! ABELLE_STORAGE['resize_tag_video']&&$self.parents('.mejs-mediaelement').length===0)||$self.hasClass('trx_addons_resize')||$self.hasClass('trx_addons_noresize')||$self.parents('div:hidden,section:hidden,article:hidden').length > 0){ return; } var video=$self.addClass('abelle_resize').eq(0); var ratio=(video.data('ratio')!==undefined ? video.data('ratio').split(':'):[16,9]); ratio=ratio.length!=2||ratio[0]===0||ratio[1]===0 ? 16 / 9:ratio[0] / ratio[1]; var mejs_cont=video.parents('.mejs-video').eq(0); var mfp_cont=video.parents('.mfp-content').eq(0); var w_attr=video.data('width'); var h_attr=video.data('height'); if(! w_attr||! h_attr){ w_attr=video.attr('width'); h_attr=video.attr('height'); if(! w_attr||! h_attr){ return; } video.data({'width': w_attr, 'height': h_attr}); } var percent=('' + w_attr).substr(-1)=='%'; w_attr=parseInt(w_attr, 10); h_attr=parseInt(h_attr, 10); var w_real=Math.ceil(mejs_cont.length > 0 ? Math.min(percent ? 10000:w_attr, mejs_cont.parents('div,article').eq(0).width()):Math.min(percent ? 10000:w_attr, video.parents('div,article').eq(0).width()) ); if(mfp_cont.length > 0){ w_real=Math.max(mfp_cont.width(), w_real); } var h_real=Math.ceil(percent ? w_real / ratio:w_real / w_attr * h_attr); if(parseInt(video.attr('data-last-width'), 10)==w_real){ return; } if(percent){ video.height(h_real); }else if(video.parents('.wp-video-playlist').length > 0){ if(mejs_cont.length===0){ video.attr({'width': w_real, 'height': h_real}); }}else{ video.attr({'width': w_real, 'height': h_real}).css({'width': w_real + 'px', 'height': h_real + 'px'}); if(mejs_cont.length > 0){ abelle_set_mejs_player_dimensions(video, w_real, h_real); }} video.attr('data-last-width', w_real); }); if(ABELLE_STORAGE['resize_tag_iframe']){ cont.find('.video_frame iframe,iframe').each(function(){ var $self=jQuery(this); if($self.hasClass('trx_addons_resize')||$self.hasClass('trx_addons_noresize')||$self.addClass('abelle_resize').parents('div:hidden,section:hidden,article:hidden').length > 0){ return; } var iframe=$self.eq(0); if(iframe.length===0||iframe.attr('src')===undefined||iframe.attr('src').indexOf('soundcloud') > 0){ return; } var ratio=(iframe.data('ratio')!==undefined ? iframe.data('ratio').split(':'):(iframe.parent().data('ratio')!==undefined ? iframe.parent().data('ratio').split(':'):(iframe.find('[data-ratio]').length > 0 ? iframe.find('[data-ratio]').data('ratio').split(':'):(iframe.attr('width')&&iframe.attr('height') ? [iframe.attr('width'), iframe.attr('height')]:[16, 9]) )) ); ratio=ratio.length!=2||ratio[0]===0||ratio[1]===0 ? 16 / 9:ratio[0] / ratio[1]; var w_attr=iframe.attr('width'); var h_attr=iframe.attr('height'); if(! w_attr||! h_attr){ return; } var percent=('' + w_attr).substr(-1)=='%'; w_attr=parseInt(w_attr, 10); h_attr=parseInt(h_attr, 10); var par=iframe.parents('div,section').eq(0), contains=iframe.data('contains-in-parent')=='1'||iframe.hasClass('contains-in-parent'), nostretch=iframe.data('no-stretch-to-parent')=='1'||iframe.hasClass('no-stretch-to-parent'), pw=Math.ceil(par.width()), ph=Math.ceil(par.height()), w_real=nostretch ? Math.min(w_attr, pw):pw, h_real=Math.ceil(percent ? w_real / ratio:w_real / w_attr * h_attr); if(contains&&par.css('position')=='absolute'&&h_real > ph){ h_real=ph; w_real=Math.ceil(percent ? h_real * ratio:h_real * w_attr / h_attr); } if(parseInt(iframe.attr('data-last-width'), 10)==w_real){ return; } iframe.css({'width': w_real + 'px', 'height': h_real + 'px'}); iframe.attr('data-last-width', w_real); }); }} function abelle_set_mejs_player_dimensions(video, w, h){ if(mejs){ for (var pl in mejs.players){ if(mejs.players[pl].media.src==video.attr('src')){ if(mejs.players[pl].media.setVideoSize){ mejs.players[pl].media.setVideoSize(w, h); }else if(mejs.players[pl].media.setSize){ mejs.players[pl].media.setSize(w, h); } mejs.players[pl].setPlayerSize(w, h); mejs.players[pl].setControlsSize(); }} }} function abelle_stretch_bg_video(){ var video_wrap=jQuery('div#background_video,.tourmaster-background-video'); if(video_wrap.length===0){ return; } var cont=video_wrap.hasClass('tourmaster-background-video') ? video_wrap.parent():video_wrap, w=cont.width(), h=cont.height(), video=video_wrap.find('>iframe,>video'); if(w / h < 16 / 9){ w=h / 9 * 16; }else{ h=w / 16 * 9; } video .attr({'width': w, 'height': h}) .css({'width': w, 'height': h}); } $document.on('vc-full-width-row action.before_resize_trx_addons', function(e, container){ abelle_vc_row_fullwidth_to_boxed(jQuery(container)); });function abelle_vc_row_fullwidth_to_boxed(cont){ if($body.hasClass('body_style_boxed')||$body.hasClass('menu_side_present')||parseInt($page_wrap.css('paddingLeft'), 10) > 0){ if(cont===undefined||! cont.hasClass('.vc_row')||! cont.data('vc-full-width')){ cont=jQuery('.vc_row[data-vc-full-width="true"]'); } var rtl=jQuery('html').attr('dir')=='rtl'; var page_wrap_pl=parseInt($page_wrap.css('paddingLeft'), 10); if(isNaN(page_wrap_pl) ){ page_wrap_pl=0; } var page_wrap_pr=parseInt($page_wrap.css('paddingRight'), 10); if(isNaN(page_wrap_pr) ){ page_wrap_pr=0; } var page_wrap_width=$page_wrap.outerWidth() - page_wrap_pl - page_wrap_pr; var content_wrap=$page_content_wrap.find('.content_wrap'); var content_wrap_width=content_wrap.width(); var indent=(page_wrap_width - content_wrap_width) / 2; cont.each(function(){ var $self=jQuery(this); var mrg=parseInt($self.css('marginLeft'), 10); var stretch_content=$self.attr('data-vc-stretch-content'); var stretch_row=$self.attr('data-vc-full-width'); var in_content=$self.parents('.content_wrap').length > 0; $self.css({ 'width': in_content&&! stretch_content&&! stretch_row ? Math.min(page_wrap_width, content_wrap_width):page_wrap_width, 'left': rtl ? 'auto':(in_content ? -indent:0) - mrg, 'right': ! rtl ? 'auto':(n_content ? -indent:0) - mrg, 'padding-left': stretch_content ? 0:indent + mrg, 'padding-right': stretch_content ? 0:indent + mrg }); }); }} ready_busy=false; }); jQuery(document).on('action.init_hidden_elements', function(e, cont){ "use strict"; if(ABELLE_STORAGE['button_hover']&&ABELLE_STORAGE['button_hover']!='default'){ jQuery('button:not(.search_submit):not(.full_post_close):not([class*="sc_button_hover_"]),' + '.sc_form_field button:not([class*="sc_button_hover_"]),' + '.theme_button:not([class*="sc_button_hover_"]),' + '.sc_button:not([class*="sc_button_simple"]):not([class*="sc_button_bordered"]):not([class*="sc_button_hover_"]),' + '.abelle_tabs .abelle_tabs_titles li a:not([class*="sc_button_hover_"]),' + '.post_item .more-link:not([class*="sc_button_hover_"]),' + '.trx_addons_hover_content .trx_addons_hover_links a:not([class*="sc_button_hover_"]),' + '#buddypress a.button:not([class*="sc_button_hover_"])' + '.mptt-navigation-tabs li a:not([class*="sc_button_hover_style_"]),' + '.edd_download_purchase_form .button:not([class*="sc_button_hover_style_"]),' + '.edd-submit.button:not([class*="sc_button_hover_style_"]),' + '.widget_edd_cart_widget .edd_checkout a:not([class*="sc_button_hover_style_"]),' + '.hover_shop_buttons .icons a:not([class*="sc_button_hover_style_"]),' + '.woocommerce #respond input#submit:not([class*="sc_button_hover_"]),' + '.woocommerce .button:not([class*="shop_"]):not([class*="view"]):not([class*="sc_button_hover_"]),' + '.woocommerce-page .button:not([class*="shop_"]):not([class*="view"]):not([class*="sc_button_hover_"])').addClass('sc_button_hover_just_init sc_button_hover_' + ABELLE_STORAGE['button_hover']); if(ABELLE_STORAGE['button_hover']!='arrow'){ jQuery('input[type="submit"]:not([class*="sc_button_hover_"]),' + 'input[type="button"]:not([class*="sc_button_hover_"]),' + '.tagcloud > a:not([class*="sc_button_hover_"]),' + '.vc_tta-accordion .vc_tta-panel-heading .vc_tta-controls-icon:not([class*="sc_button_hover_"]),' + '.vc_tta-color-grey.vc_tta-style-classic .vc_tta-tab > a:not([class*="sc_button_hover_"]),' + '.woocommerce nav.woocommerce-pagination ul li a:not([class*="sc_button_hover_"]),' + '.tribe-events-button:not([class*="sc_button_hover_"]),' + '#tribe-bar-views .tribe-bar-views-list .tribe-bar-views-option a:not([class*="sc_button_hover_"]),' + '.tribe-bar-mini #tribe-bar-views .tribe-bar-views-list .tribe-bar-views-option a:not([class*="sc_button_hover_"]),' + '.tribe-events-cal-links a:not([class*="sc_button_hover_"]),' + '.tribe-events-sub-nav li a:not([class*="sc_button_hover_"]),' + '.isotope_filters_button:not([class*="sc_button_hover_"]),' + '.trx_addons_scroll_to_top:not([class*="sc_button_hover_"]),' + '.sc_promo_modern .sc_promo_link2:not([class*="sc_button_hover_"]),' + '.slider_container .slider_prev:not([class*="sc_button_hover_"]),' + '.slider_container .slider_next:not([class*="sc_button_hover_"]),' + '.sc_slider_controller_titles .slider_controls_wrap > a:not([class*="sc_button_hover_"])').addClass('sc_button_hover_just_init sc_button_hover_' + ABELLE_STORAGE['button_hover']); } jQuery('.sc_slider_controller_titles .slider_controls_wrap > a:not([class*="sc_button_hover_style_"])').addClass('sc_button_hover_just_init sc_button_hover_style_default'); jQuery('.trx_addons_hover_content .trx_addons_hover_links a:not([class*="sc_button_hover_style_"]),' + '.single-product ul.products li.product .post_data .button:not([class*="sc_button_hover_style_"])').addClass('sc_button_hover_just_init sc_button_hover_style_inverse'); jQuery('.post_item_single .post_content .post_meta .post_share .socials_type_block .social_item .social_icon:not([class*="sc_button_hover_style_"]),' + '.woocommerce #respond input#submit.alt:not([class*="sc_button_hover_style_"]),' + '.woocommerce a.button.alt:not([class*="sc_button_hover_style_"]),' + '.woocommerce button.button.alt:not([class*="sc_button_hover_style_"]),' + '.woocommerce input.button.alt:not([class*="sc_button_hover_style_"])').addClass('sc_button_hover_just_init sc_button_hover_style_hover'); jQuery('.woocommerce .woocommerce-message .button:not([class*="sc_button_hover_style_"]),' + '.woocommerce .woocommerce-info .button:not([class*="sc_button_hover_style_"])').addClass('sc_button_hover_just_init sc_button_hover_style_alter'); jQuery('.sidebar .trx_addons_tabs .trx_addons_tabs_titles li a:not([class*="sc_button_hover_style_"]),' + '.abelle_tabs .abelle_tabs_titles li a:not([class*="sc_button_hover_style_"]),' + '.widget_tag_cloud a:not([class*="sc_button_hover_style_"]),' + '.widget_product_tag_cloud a:not([class*="sc_button_hover_style_"])').addClass('sc_button_hover_just_init sc_button_hover_style_alterbd'); jQuery('.vc_tta-accordion .vc_tta-panel-heading .vc_tta-controls-icon:not([class*="sc_button_hover_style_"]),' + '.vc_tta-color-grey.vc_tta-style-classic .vc_tta-tab > a:not([class*="sc_button_hover_style_"]),' + '.single-product div.product > .woocommerce-tabs .wc-tabs li a:not([class*="sc_button_hover_style_"]),' + '.sc_button.color_style_dark:not([class*="sc_button_simple"]):not([class*="sc_button_hover_style_"]),' + '.slider_prev:not([class*="sc_button_hover_style_"]),' + '.slider_next:not([class*="sc_button_hover_style_"]),' + '.trx_addons_video_player.with_cover .video_hover:not([class*="sc_button_hover_style_"]),' + '.trx_addons_tabs .trx_addons_tabs_titles li a:not([class*="sc_button_hover_style_"])').addClass('sc_button_hover_just_init sc_button_hover_style_dark'); jQuery('.sc_price_item_link:not([class*="sc_button_hover_style_"])').addClass('sc_button_hover_just_init sc_button_hover_style_extra'); jQuery('.sc_button.color_style_link2:not([class*="sc_button_simple"]):not([class*="sc_button_hover_style_"])').addClass('sc_button_hover_just_init sc_button_hover_style_link2'); jQuery('.sc_button.color_style_link3:not([class*="sc_button_simple"]):not([class*="sc_button_hover_style_"])').addClass('sc_button_hover_just_init sc_button_hover_style_link3'); jQuery('.mejs-controls button,' + '.mfp-close,' + '.sc_button_bg_image,' + '.sc_layouts_row_type_narrow .sc_button,' + '.tribe-common-c-btn-icon,' + '.tribe-events-c-top-bar__datepicker-button,' + '.tribe-events-calendar-list-nav button,' + '.tribe-events-cal-links .tribe-events-button,' + '.hover_shop_buttons a,' + 'button.pswp__button,' + '.woocommerce-orders-table__cell-order-actions .button').removeClass('sc_button_hover_' + ABELLE_STORAGE['button_hover']); setTimeout(function(){ jQuery('.sc_button_hover_just_init').removeClass('sc_button_hover_just_init'); }, 500); } jQuery('.sc_icons_simple .sc_icons_item_description a:not(.underline_hover),' + '.sc_icons_plate .sc_icons_item a.sc_icons_item_more_link:not(.underline_hover),' + '.sc_layouts_title_breadcrumbs .breadcrumbs a:not(.underline_hover)').addClass('underline_hover'); jQuery('.sc_icons_plain .sc_icons_item .sc_icons_item_more_link:not(.underline_hover_reverse),' + '.sc_icons_bordered .sc_icons_item_description a:not(.underline_hover_reverse)').addClass('underline_hover_reverse'); jQuery(window).scroll(function(){ jQuery('.underline_anim:not(.underline_do_hover)').each(function(){ var item=jQuery(this); if(item.offset().top < jQuery(window).scrollTop() + jQuery(window).height() - 80){ item.addClass('underline_do_hover'); }}); });}); (function(){ "use strict"; jQuery(document) .on('action.add_googlemap_styles', abelle_trx_addons_add_googlemap_styles) .on('action.init_hidden_elements', abelle_trx_addons_init); function abelle_trx_addons_add_googlemap_styles(e){ if(typeof TRX_ADDONS_STORAGE=='undefined') return; TRX_ADDONS_STORAGE['googlemap_styles']['dark']=[{"featureType":"all","elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#333333"},{"lightness":40}]},{"featureType":"all","elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#ffffff"},{"lightness":16}]},{"featureType":"all","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#fefefe"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#fefefe"},{"lightness":17},{"weight":1.2}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"lightness":20},{"color":"#13162b"}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#13162b"},{"lightness":21}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#5fc6ca"},{"lightness":21}]},{"featureType":"road","elementType":"all","stylers":[{"visibility":"simplified"},{"color":"#cccdd2"}]},{"featureType":"road","elementType":"geometry","stylers":[{"color":"#13162b"}]},{"featureType":"road","elementType":"geometry.fill","stylers":[{"color":"#ff0000"}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#13162b"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#ffffff"},{"lightness":29},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#13162b"},{"lightness":18}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#13162b"},{"lightness":16}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#13162b"},{"lightness":19}]},{"featureType":"water","elementType":"geometry","stylers":[{"color":"#f4f9fc"},{"lightness":17}]}]; } function abelle_trx_addons_init(e, container){ if(arguments.length < 2){ var container=jQuery('body'); } if(container===undefined||container.length===undefined||container.length==0){ return; } container.find('.sc_countdown_item canvas:not(.inited)').addClass('inited').attr('data-color', ABELLE_STORAGE['alter_link_color']); }})();
window.addComment=function(v){var I,C,h,E=v.document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=v.MutationObserver||v.WebKitMutationObserver||v.MozMutationObserver,r="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){d(),e&&new e(o).observe(E.body,{childList:!0,subtree:!0})}function d(e){if(r&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){I.addEventListener("touchstart",l),I.addEventListener("click",l);function t(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode&&"a"!==E.activeElement.tagName.toLowerCase())return C.removeEventListener("keydown",t),e.preventDefault(),C.submit.click(),!1}C&&C.addEventListener("keydown",t);for(var n,d=function(e){var t=b.commentReplyClass;e&&e.childNodes||(e=E);e=E.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t);return e}(e),o=0,i=d.length;o<i;o++)(n=d[o]).addEventListener("touchstart",a),n.addEventListener("click",a)}}function l(e){var t,n,d=g(b.temporaryFormId);d&&h&&(g(b.parentIdFieldId).value="0",t=d.textContent,d.parentNode.replaceChild(h,d),this.style.display="none",n=(d=(d=g(b.commentReplyTitleId))&&d.firstChild)&&d.nextSibling,d&&d.nodeType===Node.TEXT_NODE&&t&&(n&&"A"===n.nodeName&&n.id!==b.cancelReplyId&&(n.style.display=""),d.textContent=t),e.preventDefault())}function a(e){var t=g(b.commentReplyTitleId),t=t&&t.firstChild.textContent,n=this,d=m(n,"belowelement"),o=m(n,"commentid"),i=m(n,"respondelement"),r=m(n,"postid"),n=m(n,"replyto")||t;d&&o&&i&&r&&!1===v.addComment.moveForm(d,o,i,r,n)&&e.preventDefault()}function o(e){for(var t=e.length;t--;)if(e[t].addedNodes.length)return void d()}function m(e,t){return n?e.dataset[t]:e.getAttribute("data-"+t)}function g(e){return E.getElementById(e)}return r&&"loading"!==E.readyState?t():r&&v.addEventListener("DOMContentLoaded",t,!1),{init:d,moveForm:function(e,t,n,d,o){var i,r,l,a,m,c,s,e=g(e),n=(h=g(n),g(b.parentIdFieldId)),y=g(b.postIdFieldId),p=g(b.commentReplyTitleId),u=(p=p&&p.firstChild)&&p.nextSibling;if(e&&h&&n){void 0===o&&(o=p&&p.textContent),a=h,m=b.temporaryFormId,c=g(m),s=(s=g(b.commentReplyTitleId))?s.firstChild.textContent:"",c||((c=E.createElement("div")).id=m,c.style.display="none",c.textContent=s,a.parentNode.insertBefore(c,a)),d&&y&&(y.value=d),n.value=t,I.style.display="",e.parentNode.insertBefore(h,e.nextSibling),p&&p.nodeType===Node.TEXT_NODE&&(u&&"A"===u.nodeName&&u.id!==b.cancelReplyId&&(u.style.display="none"),p.textContent=o),I.onclick=function(){return!1};try{for(var f=0;f<C.elements.length;f++)if(i=C.elements[f],r=!1,"getComputedStyle"in v?l=v.getComputedStyle(i):E.documentElement.currentStyle&&(l=i.currentStyle),(i.offsetWidth<=0&&i.offsetHeight<=0||"hidden"===l.visibility)&&(r=!0),"hidden"!==i.type&&!i.disabled&&!r){i.focus();break}}catch(e){}return!1}}}}(window);
!function r(a,s,l){function d(n,e){if(!s[n]){if(!a[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(u)return u(n,!0);var o=new Error("Cannot find module '"+n+"'");throw o.code="MODULE_NOT_FOUND",o}var i=s[n]={exports:{}};a[n][0].call(i.exports,function(e){var t=a[n][1][e];return d(t||e)},i,i.exports,r,a,s,l)}return s[n].exports}for(var u="function"==typeof require&&require,e=0;e<l.length;e++)d(l[e]);return d}({1:[function(e,t,n){},{}],2:[function(i,r,e){(function(e){var t,n=void 0!==e?e:"undefined"!=typeof window?window:{},o=i(1);"undefined"!=typeof document?t=document:(t=n["__GLOBAL_DOCUMENT_CACHE@4"])||(t=n["__GLOBAL_DOCUMENT_CACHE@4"]=o),r.exports=t}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{1:1}],3:[function(e,n,t){(function(e){var t;t="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},n.exports=t}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(e,n,t){!function(e){var t=setTimeout;function o(){}function r(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function i(n,o){for(;3===n._state;)n=n._value;0!==n._state?(n._handled=!0,r._immediateFn(function(){var e=1===n._state?o.onFulfilled:o.onRejected;if(null!==e){var t;try{t=e(n._value)}catch(e){return void s(o.promise,e)}a(o.promise,t)}else(1===n._state?a:s)(o.promise,n._value)})):n._deferreds.push(o)}function a(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof r)return t._state=3,t._value=e,void l(t);if("function"==typeof n)return void d((o=n,i=e,function(){o.apply(i,arguments)}),t)}t._state=1,t._value=e,l(t)}catch(e){s(t,e)}var o,i}function s(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&r._immediateFn(function(){e._handled||r._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)i(e,e._deferreds[t]);e._deferreds=null}function d(e,t){var n=!1;try{e(function(e){n||(n=!0,a(t,e))},function(e){n||(n=!0,s(t,e))})}catch(e){if(n)return;n=!0,s(t,e)}}r.prototype.catch=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var n=new this.constructor(o);return i(this,new function(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}(e,t,n)),n},r.all=function(e){var s=Array.prototype.slice.call(e);return new r(function(o,i){if(0===s.length)return o([]);var r=s.length;function a(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},i)}s[t]=e,0==--r&&o(s)}catch(e){i(e)}}for(var e=0;e<s.length;e++)a(e,s[e])})},r.resolve=function(t){return t&&"object"==typeof t&&t.constructor===r?t:new r(function(e){e(t)})},r.reject=function(n){return new r(function(e,t){t(n)})},r.race=function(i){return new r(function(e,t){for(var n=0,o=i.length;n<o;n++)i[n].then(e,t)})},r._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){t(e,0)},r._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},r._setImmediateFn=function(e){r._immediateFn=e},r._setUnhandledRejectionFn=function(e){r._unhandledRejectionFn=e},void 0!==n&&n.exports?n.exports=r:e.Promise||(e.Promise=r)}(this)},{}],5:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=e(7),r=(o=i)&&o.__esModule?o:{default:o},s=e(15),l=e(27);var d={lang:"en",en:s.EN,language:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(null!=t&&t.length){if("string"!=typeof t[0])throw new TypeError("Language code must be a string value");if(!/^[a-z]{2,3}((\-|_)[a-z]{2})?$/i.test(t[0]))throw new TypeError("Language code must have format 2-3 letters and. optionally, hyphen, underscore followed by 2 more letters");d.lang=t[0],void 0===d[t[0]]?(t[1]=null!==t[1]&&void 0!==t[1]&&"object"===a(t[1])?t[1]:{},d[t[0]]=(0,l.isObjectEmpty)(t[1])?s.EN:t[1]):null!==t[1]&&void 0!==t[1]&&"object"===a(t[1])&&(d[t[0]]=t[1])}return d.lang},t:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e&&e.length){var n=void 0,o=void 0,i=d.language(),r=function(e,t,n){return"object"!==(void 0===e?"undefined":a(e))||"number"!=typeof t||"number"!=typeof n?e:[function(){return arguments.length<=1?void 0:arguments[1]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 0===(arguments.length<=0?void 0:arguments[0])||1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:0!==(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])||11===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])||12===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:2<(arguments.length<=0?void 0:arguments[0])&&(arguments.length<=0?void 0:arguments[0])<20?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:0===(arguments.length<=0?void 0:arguments[0])||0<(arguments.length<=0?void 0:arguments[0])%100&&(arguments.length<=0?void 0:arguments[0])%100<20?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:2<=(arguments.length<=0?void 0:arguments[0])%10&&((arguments.length<=0?void 0:arguments[0])%100<10||20<=(arguments.length<=0?void 0:arguments[0])%100)?arguments.length<=2?void 0:arguments[2]:[3]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:2<=(arguments.length<=0?void 0:arguments[0])%10&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||20<=(arguments.length<=0?void 0:arguments[0])%100)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2<=(arguments.length<=0?void 0:arguments[0])&&(arguments.length<=0?void 0:arguments[0])<=4?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2<=(arguments.length<=0?void 0:arguments[0])%10&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||20<=(arguments.length<=0?void 0:arguments[0])%100)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])%100==1?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])%100==2?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])%100==3||(arguments.length<=0?void 0:arguments[0])%100==4?arguments.length<=4?void 0:arguments[4]:arguments.length<=1?void 0:arguments[1]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:2<(arguments.length<=0?void 0:arguments[0])&&(arguments.length<=0?void 0:arguments[0])<7?arguments.length<=3?void 0:arguments[3]:6<(arguments.length<=0?void 0:arguments[0])&&(arguments.length<=0?void 0:arguments[0])<11?arguments.length<=4?void 0:arguments[4]:arguments.length<=5?void 0:arguments[5]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:3<=(arguments.length<=0?void 0:arguments[0])%100&&(arguments.length<=0?void 0:arguments[0])%100<=10?arguments.length<=4?void 0:arguments[4]:11<=(arguments.length<=0?void 0:arguments[0])%100?arguments.length<=5?void 0:arguments[5]:arguments.length<=6?void 0:arguments[6]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:0===(arguments.length<=0?void 0:arguments[0])||1<(arguments.length<=0?void 0:arguments[0])%100&&(arguments.length<=0?void 0:arguments[0])%100<11?arguments.length<=2?void 0:arguments[2]:10<(arguments.length<=0?void 0:arguments[0])%100&&(arguments.length<=0?void 0:arguments[0])%100<20?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10==2?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 11!==(arguments.length<=0?void 0:arguments[0])&&(arguments.length<=0?void 0:arguments[0])%10==1?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2<=(arguments.length<=0?void 0:arguments[0])%10&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||20<=(arguments.length<=0?void 0:arguments[0])%100)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:8!==(arguments.length<=0?void 0:arguments[0])&&11!==(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:3===(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]}][n].apply(null,[t].concat(e))};return void 0!==d[i]&&(n=d[i][e],null!==t&&"number"==typeof t&&(o=d[i]["mejs.plural-form"],n=r.apply(null,[n,t,o]))),!n&&d.en&&(n=d.en[e],null!==t&&"number"==typeof t&&(o=d.en["mejs.plural-form"],n=r.apply(null,[n,t,o]))),n=n||e,null!==t&&"number"==typeof t&&(n=n.replace("%1",t)),(0,l.escapeHTML)(n)}return e}};r.default.i18n=d,"undefined"!=typeof mejsL10n&&r.default.i18n.language(mejsL10n.language,mejsL10n.strings),n.default=d},{15:15,27:27,7:7}],6:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F=o(e(3)),j=o(e(2)),I=o(e(7)),M=e(27),O=e(28),D=e(8),R=e(25);function o(e){return e&&e.__esModule?e:{default:e}}var i=function e(t,n,o){var c=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var f=this;o=Array.isArray(o)?o:null,f.defaults={renderers:[],fakeNodeName:"mediaelementwrapper",pluginPath:"build/",shimScriptAccess:"sameDomain"},n=Object.assign(f.defaults,n),f.mediaElement=j.default.createElement(n.fakeNodeName);var i=t,r=!1;if("string"==typeof t?f.mediaElement.originalNode=j.default.getElementById(t):i=(f.mediaElement.originalNode=t).id,void 0===f.mediaElement.originalNode||null===f.mediaElement.originalNode)return null;f.mediaElement.options=n,i=i||"mejs_"+Math.random().toString().slice(2),f.mediaElement.originalNode.setAttribute("id",i+"_from_mejs");var a=f.mediaElement.originalNode.tagName.toLowerCase();-1<["video","audio"].indexOf(a)&&!f.mediaElement.originalNode.getAttribute("preload")&&f.mediaElement.originalNode.setAttribute("preload","none"),f.mediaElement.originalNode.parentNode.insertBefore(f.mediaElement,f.mediaElement.originalNode),f.mediaElement.appendChild(f.mediaElement.originalNode);var s=function(t,e){if("https:"===F.default.location.protocol&&0===t.indexOf("http:")&&R.IS_IOS&&-1<I.default.html5media.mediaTypes.indexOf(e)){var n=new XMLHttpRequest;n.onreadystatechange=function(){if(4===this.readyState&&200===this.status){var e=(F.default.URL||F.default.webkitURL).createObjectURL(this.response);return f.mediaElement.originalNode.setAttribute("src",e),e}return t},n.open("GET",t),n.responseType="blob",n.send()}return t},l=void 0;if(null!==o)l=o;else if(null!==f.mediaElement.originalNode)switch(l=[],f.mediaElement.originalNode.nodeName.toLowerCase()){case"iframe":l.push({type:"",src:f.mediaElement.originalNode.getAttribute("src")});break;case"audio":case"video":var d=f.mediaElement.originalNode.children.length,u=f.mediaElement.originalNode.getAttribute("src");if(u){var p=f.mediaElement.originalNode,m=(0,O.formatType)(u,p.getAttribute("type"));l.push({type:m,src:s(u,m)})}for(var h=0;h<d;h++){var v=f.mediaElement.originalNode.children[h];if("source"===v.tagName.toLowerCase()){var g=v.getAttribute("src"),y=(0,O.formatType)(g,v.getAttribute("type"));l.push({type:y,src:s(g,y)})}}}f.mediaElement.id=i,f.mediaElement.renderers={},f.mediaElement.events={},f.mediaElement.promises=[],f.mediaElement.renderer=null,f.mediaElement.rendererName=null,f.mediaElement.changeRenderer=function(e,t){var n=c,o=2<Object.keys(t[0]).length?t[0]:t[0].src;if(void 0!==n.mediaElement.renderer&&null!==n.mediaElement.renderer&&n.mediaElement.renderer.name===e)return n.mediaElement.renderer.pause(),n.mediaElement.renderer.stop&&n.mediaElement.renderer.stop(),n.mediaElement.renderer.show(),n.mediaElement.renderer.setSrc(o),!0;void 0!==n.mediaElement.renderer&&null!==n.mediaElement.renderer&&(n.mediaElement.renderer.pause(),n.mediaElement.renderer.stop&&n.mediaElement.renderer.stop(),n.mediaElement.renderer.hide());var i=n.mediaElement.renderers[e],r=null;if(null!=i)return i.show(),i.setSrc(o),n.mediaElement.renderer=i,n.mediaElement.rendererName=e,!0;for(var a=n.mediaElement.options.renderers.length?n.mediaElement.options.renderers:D.renderer.order,s=0,l=a.length;s<l;s++){var d=a[s];if(d===e){r=D.renderer.renderers[d];var u=Object.assign(r.options,n.mediaElement.options);return(i=r.create(n.mediaElement,u,t)).name=e,n.mediaElement.renderers[r.name]=i,n.mediaElement.renderer=i,n.mediaElement.rendererName=e,i.show(),!0}}return!1},f.mediaElement.setSize=function(e,t){void 0!==f.mediaElement.renderer&&null!==f.mediaElement.renderer&&f.mediaElement.renderer.setSize(e,t)},f.mediaElement.generateError=function(e,t){e=e||"",t=Array.isArray(t)?t:[];var n=(0,M.createEvent)("error",f.mediaElement);n.message=e,n.urls=t,f.mediaElement.dispatchEvent(n),r=!0};var E=I.default.html5media.properties,b=I.default.html5media.methods,S=function(t,e,n,o){var i=t[e];Object.defineProperty(t,e,{get:function(){return n.apply(t,[i])},set:function(e){return i=o.apply(t,[e])}})},x=function(e){if("src"!==e){var t=""+e.substring(0,1).toUpperCase()+e.substring(1),n=function(){return void 0!==f.mediaElement.renderer&&null!==f.mediaElement.renderer&&"function"==typeof f.mediaElement.renderer["get"+t]?f.mediaElement.renderer["get"+t]():null},o=function(e){void 0!==f.mediaElement.renderer&&null!==f.mediaElement.renderer&&"function"==typeof f.mediaElement.renderer["set"+t]&&f.mediaElement.renderer["set"+t](e)};S(f.mediaElement,e,n,o),f.mediaElement["get"+t]=n,f.mediaElement["set"+t]=o}},w=function(){return void 0!==f.mediaElement.renderer&&null!==f.mediaElement.renderer?f.mediaElement.renderer.getSrc():null},P=function(e){var t=[];if("string"==typeof e)t.push({src:e,type:e?(0,O.getTypeFromFile)(e):""});else if("object"===(void 0===e?"undefined":L(e))&&void 0!==e.src){var n=(0,O.absolutizeUrl)(e.src),o=e.type,i=Object.assign(e,{src:n,type:""!==o&&null!=o||!n?o:(0,O.getTypeFromFile)(n)});t.push(i)}else if(Array.isArray(e))for(var r=0,a=e.length;r<a;r++){var s=(0,O.absolutizeUrl)(e[r].src),l=e[r].type,d=Object.assign(e[r],{src:s,type:""!==l&&null!=l||!s?l:(0,O.getTypeFromFile)(s)});t.push(d)}var u=D.renderer.select(t,f.mediaElement.options.renderers.length?f.mediaElement.options.renderers:[]),c=void 0;if(f.mediaElement.paused||null==f.mediaElement.src||""===f.mediaElement.src||(f.mediaElement.pause(),c=(0,M.createEvent)("pause",f.mediaElement),f.mediaElement.dispatchEvent(c)),f.mediaElement.originalNode.src=t[0].src||"",null!==u||!t[0].src)return!(null==t[0].src||""===t[0].src)?f.mediaElement.changeRenderer(u.rendererName,t):null;f.mediaElement.generateError("No renderer found",t)},T=function(e,t){try{if("play"!==e||"native_dash"!==f.mediaElement.rendererName&&"native_hls"!==f.mediaElement.rendererName&&"vimeo_iframe"!==f.mediaElement.rendererName)f.mediaElement.renderer[e](t);else{var n=f.mediaElement.renderer[e](t);n&&"function"==typeof n.then&&n.catch(function(){f.mediaElement.paused&&setTimeout(function(){var e=f.mediaElement.renderer.play();void 0!==e&&e.catch(function(){f.mediaElement.renderer.paused||f.mediaElement.renderer.pause()})},150)})}}catch(e){f.mediaElement.generateError(e,l)}},C=function(o){f.mediaElement[o]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return void 0!==f.mediaElement.renderer&&null!==f.mediaElement.renderer&&"function"==typeof f.mediaElement.renderer[o]&&(f.mediaElement.promises.length?Promise.all(f.mediaElement.promises).then(function(){T(o,t)}).catch(function(e){f.mediaElement.generateError(e,l)}):T(o,t)),null}};S(f.mediaElement,"src",w,P),f.mediaElement.getSrc=w,f.mediaElement.setSrc=P;for(var k=0,_=E.length;k<_;k++)x(E[k]);for(var N=0,A=b.length;N<A;N++)C(b[N]);return f.mediaElement.addEventListener=function(e,t){f.mediaElement.events[e]=f.mediaElement.events[e]||[],f.mediaElement.events[e].push(t)},f.mediaElement.removeEventListener=function(e,t){if(!e)return f.mediaElement.events={},!0;var n=f.mediaElement.events[e];if(!n)return!0;if(!t)return f.mediaElement.events[e]=[],!0;for(var o=0;o<n.length;o++)if(n[o]===t)return f.mediaElement.events[e].splice(o,1),!0;return!1},f.mediaElement.dispatchEvent=function(e){var t=f.mediaElement.events[e.type];if(t)for(var n=0;n<t.length;n++)t[n].apply(null,[e])},f.mediaElement.destroy=function(){var e=f.mediaElement.originalNode.cloneNode(!0),t=f.mediaElement.parentElement;e.removeAttribute("id"),e.remove(),f.mediaElement.remove(),t.appendChild(e)},l.length&&(f.mediaElement.src=l),f.mediaElement.promises.length?Promise.all(f.mediaElement.promises).then(function(){f.mediaElement.options.success&&f.mediaElement.options.success(f.mediaElement,f.mediaElement.originalNode)}).catch(function(){r&&f.mediaElement.options.error&&f.mediaElement.options.error(f.mediaElement,f.mediaElement.originalNode)}):(f.mediaElement.options.success&&f.mediaElement.options.success(f.mediaElement,f.mediaElement.originalNode),r&&f.mediaElement.options.error&&f.mediaElement.options.error(f.mediaElement,f.mediaElement.originalNode)),f.mediaElement};F.default.MediaElement=i,I.default.MediaElement=i,n.default=i},{2:2,25:25,27:27,28:28,3:3,7:7,8:8}],7:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,i=e(3);var r={version:"4.2.17",html5media:{properties:["volume","src","currentTime","muted","duration","paused","ended","buffered","error","networkState","readyState","seeking","seekable","currentSrc","preload","bufferedBytes","bufferedTime","initialTime","startOffsetTime","defaultPlaybackRate","playbackRate","played","autoplay","loop","controls"],readOnlyProperties:["duration","paused","ended","buffered","error","networkState","readyState","seeking","seekable"],methods:["load","play","pause","canPlayType"],events:["loadstart","durationchange","loadedmetadata","loadeddata","progress","canplay","canplaythrough","suspend","abort","error","emptied","stalled","play","playing","pause","waiting","seeking","seeked","timeupdate","ended","ratechange","volumechange"],mediaTypes:["audio/mp3","audio/ogg","audio/oga","audio/wav","audio/x-wav","audio/wave","audio/x-pn-wav","audio/mpeg","audio/mp4","video/mp4","video/webm","video/ogg","video/ogv"]}};((o=i)&&o.__esModule?o:{default:o}).default.mejs=r,n.default=r},{3:3}],8:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.renderer=void 0;var o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}}(),a=e(7),s=(o=a)&&o.__esModule?o:{default:o};var l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.renderers={},this.order=[]}return r(e,[{key:"add",value:function(e){if(void 0===e.name)throw new TypeError("renderer must contain at least `name` property");this.renderers[e.name]=e,this.order.push(e.name)}},{key:"select",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=t.length;if(t=t.length?t:this.order,!n){var o=[/^(html5|native)/i,/^flash/i,/iframe$/i],i=function(e){for(var t=0,n=o.length;t<n;t++)if(o[t].test(e))return t;return o.length};t.sort(function(e,t){return i(e)-i(t)})}for(var r=0,a=t.length;r<a;r++){var s=t[r],l=this.renderers[s];if(null!=l)for(var d=0,u=e.length;d<u;d++)if("function"==typeof l.canPlayType&&"string"==typeof e[d].type&&l.canPlayType(e[d].type))return{rendererName:l.name,src:e[d].src}}return null}},{key:"order",set:function(e){if(!Array.isArray(e))throw new TypeError("order must be an array of strings.");this._order=e},get:function(){return this._order}},{key:"renderers",set:function(e){if(null!==e&&"object"!==(void 0===e?"undefined":i(e)))throw new TypeError("renderers must be an array of objects.");this._renderers=e},get:function(){return this._renderers}}]),e}(),d=n.renderer=new l;s.default.Renderers=d},{7:7}],9:[function(e,t,n){"use strict";var f=a(e(3)),p=a(e(2)),i=a(e(5)),o=e(16),r=a(o),m=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}}(e(25)),h=e(27),v=e(26),g=e(28);function a(e){return e&&e.__esModule?e:{default:e}}Object.assign(o.config,{usePluginFullScreen:!0,fullscreenText:null,useFakeFullscreen:!1}),Object.assign(r.default.prototype,{isFullScreen:!1,isNativeFullScreen:!1,isInIframe:!1,isPluginClickThroughCreated:!1,fullscreenMode:"",containerSizeTimeout:null,buildfullscreen:function(n){if(n.isVideo){n.isInIframe=f.default.location!==f.default.parent.location,n.detectFullscreenMode();var o=this,e=(0,h.isString)(o.options.fullscreenText)?o.options.fullscreenText:i.default.t("mejs.fullscreen"),t=p.default.createElement("div");if(t.className=o.options.classPrefix+"button "+o.options.classPrefix+"fullscreen-button",t.innerHTML='<button type="button" aria-controls="'+o.id+'" title="'+e+'" aria-label="'+e+'" tabindex="0"></button>',o.addControlElement(t,"fullscreen"),t.addEventListener("click",function(){m.HAS_TRUE_NATIVE_FULLSCREEN&&m.IS_FULLSCREEN||n.isFullScreen?n.exitFullScreen():n.enterFullScreen()}),n.fullscreenBtn=t,o.options.keyActions.push({keys:[70],action:function(e,t,n,o){o.ctrlKey||void 0!==e.enterFullScreen&&(e.isFullScreen?e.exitFullScreen():e.enterFullScreen())}}),o.exitFullscreenCallback=function(e){var t=e.which||e.keyCode||0;o.options.enableKeyboard&&27===t&&(m.HAS_TRUE_NATIVE_FULLSCREEN&&m.IS_FULLSCREEN||o.isFullScreen)&&n.exitFullScreen()},o.globalBind("keydown",o.exitFullscreenCallback),o.normalHeight=0,o.normalWidth=0,m.HAS_TRUE_NATIVE_FULLSCREEN){n.globalBind(m.FULLSCREEN_EVENT_NAME,function(){n.isFullScreen&&(m.isFullScreen()?(n.isNativeFullScreen=!0,n.setControlsSize()):(n.isNativeFullScreen=!1,n.exitFullScreen()))})}}},cleanfullscreen:function(e){e.exitFullScreen(),e.globalUnbind("keydown",e.exitFullscreenCallback)},detectFullscreenMode:function(){var e=null!==this.media.rendererName&&/(native|html5)/i.test(this.media.rendererName),t="";return m.HAS_TRUE_NATIVE_FULLSCREEN&&e?t="native-native":m.HAS_TRUE_NATIVE_FULLSCREEN&&!e?t="plugin-native":this.usePluginFullScreen&&m.SUPPORT_POINTER_EVENTS&&(t="plugin-click"),this.fullscreenMode=t},enterFullScreen:function(){var o=this,e=null!==o.media.rendererName&&/(html5|native)/i.test(o.media.rendererName),t=getComputedStyle(o.getElement(o.container));if(o.isVideo)if(!1===o.options.useFakeFullscreen&&(m.IS_IOS||m.IS_SAFARI)&&m.HAS_IOS_FULLSCREEN&&"function"==typeof o.media.originalNode.webkitEnterFullscreen&&o.media.originalNode.canPlayType((0,g.getTypeFromFile)(o.media.getSrc())))o.media.originalNode.webkitEnterFullscreen();else{if((0,v.addClass)(p.default.documentElement,o.options.classPrefix+"fullscreen"),(0,v.addClass)(o.getElement(o.container),o.options.classPrefix+"container-fullscreen"),o.normalHeight=parseFloat(t.height),o.normalWidth=parseFloat(t.width),"native-native"!==o.fullscreenMode&&"plugin-native"!==o.fullscreenMode||(m.requestFullScreen(o.getElement(o.container)),o.isInIframe&&setTimeout(function e(){if(o.isNativeFullScreen){var t=f.default.innerWidth||p.default.documentElement.clientWidth||p.default.body.clientWidth,n=screen.width;.002*n<Math.abs(n-t)?o.exitFullScreen():setTimeout(e,500)}},1e3)),o.getElement(o.container).style.width="100%",o.getElement(o.container).style.height="100%",o.containerSizeTimeout=setTimeout(function(){o.getElement(o.container).style.width="100%",o.getElement(o.container).style.height="100%",o.setControlsSize()},500),e)o.node.style.width="100%",o.node.style.height="100%";else for(var n=o.getElement(o.container).querySelectorAll("embed, object, video"),i=n.length,r=0;r<i;r++)n[r].style.width="100%",n[r].style.height="100%";o.options.setDimensions&&"function"==typeof o.media.setSize&&o.media.setSize(screen.width,screen.height);for(var a=o.getElement(o.layers).children,s=a.length,l=0;l<s;l++)a[l].style.width="100%",a[l].style.height="100%";o.fullscreenBtn&&((0,v.removeClass)(o.fullscreenBtn,o.options.classPrefix+"fullscreen"),(0,v.addClass)(o.fullscreenBtn,o.options.classPrefix+"unfullscreen")),o.setControlsSize(),o.isFullScreen=!0;var d=Math.min(screen.width/o.width,screen.height/o.height),u=o.getElement(o.container).querySelector("."+o.options.classPrefix+"captions-text");u&&(u.style.fontSize=100*d+"%",u.style.lineHeight="normal",o.getElement(o.container).querySelector("."+o.options.classPrefix+"captions-position").style.bottom=(screen.height-o.normalHeight)/2-o.getElement(o.controls).offsetHeight/2+d+15+"px");var c=(0,h.createEvent)("enteredfullscreen",o.getElement(o.container));o.getElement(o.container).dispatchEvent(c)}},exitFullScreen:function(){var e=this,t=null!==e.media.rendererName&&/(native|html5)/i.test(e.media.rendererName);if(e.isVideo){if(clearTimeout(e.containerSizeTimeout),m.HAS_TRUE_NATIVE_FULLSCREEN&&(m.IS_FULLSCREEN||e.isFullScreen)&&m.cancelFullScreen(),(0,v.removeClass)(p.default.documentElement,e.options.classPrefix+"fullscreen"),(0,v.removeClass)(e.getElement(e.container),e.options.classPrefix+"container-fullscreen"),e.options.setDimensions){if(e.getElement(e.container).style.width=e.normalWidth+"px",e.getElement(e.container).style.height=e.normalHeight+"px",t)e.node.style.width=e.normalWidth+"px",e.node.style.height=e.normalHeight+"px";else for(var n=e.getElement(e.container).querySelectorAll("embed, object, video"),o=n.length,i=0;i<o;i++)n[i].style.width=e.normalWidth+"px",n[i].style.height=e.normalHeight+"px";"function"==typeof e.media.setSize&&e.media.setSize(e.normalWidth,e.normalHeight);for(var r=e.getElement(e.layers).children,a=r.length,s=0;s<a;s++)r[s].style.width=e.normalWidth+"px",r[s].style.height=e.normalHeight+"px"}e.fullscreenBtn&&((0,v.removeClass)(e.fullscreenBtn,e.options.classPrefix+"unfullscreen"),(0,v.addClass)(e.fullscreenBtn,e.options.classPrefix+"fullscreen")),e.setControlsSize(),e.isFullScreen=!1;var l=e.getElement(e.container).querySelector("."+e.options.classPrefix+"captions-text");l&&(l.style.fontSize="",l.style.lineHeight="",e.getElement(e.container).querySelector("."+e.options.classPrefix+"captions-position").style.bottom="");var d=(0,h.createEvent)("exitedfullscreen",e.getElement(e.container));e.getElement(e.container).dispatchEvent(d)}}})},{16:16,2:2,25:25,26:26,27:27,28:28,3:3,5:5}],10:[function(e,t,n){"use strict";var c=r(e(2)),o=e(16),i=r(o),f=r(e(5)),p=e(27),m=e(26);function r(e){return e&&e.__esModule?e:{default:e}}Object.assign(o.config,{playText:null,pauseText:null}),Object.assign(i.default.prototype,{buildplaypause:function(e,t,n,o){var i=this,r=i.options,a=(0,p.isString)(r.playText)?r.playText:f.default.t("mejs.play"),s=(0,p.isString)(r.pauseText)?r.pauseText:f.default.t("mejs.pause"),l=c.default.createElement("div");l.className=i.options.classPrefix+"button "+i.options.classPrefix+"playpause-button "+i.options.classPrefix+"play",l.innerHTML='<button type="button" aria-controls="'+i.id+'" title="'+a+'" aria-label="'+s+'" tabindex="0"></button>',l.addEventListener("click",function(){i.paused?i.play():i.pause()});var d=l.querySelector("button");function u(e){"play"===e?((0,m.removeClass)(l,i.options.classPrefix+"play"),(0,m.removeClass)(l,i.options.classPrefix+"replay"),(0,m.addClass)(l,i.options.classPrefix+"pause"),d.setAttribute("title",s),d.setAttribute("aria-label",s)):((0,m.removeClass)(l,i.options.classPrefix+"pause"),(0,m.removeClass)(l,i.options.classPrefix+"replay"),(0,m.addClass)(l,i.options.classPrefix+"play"),d.setAttribute("title",a),d.setAttribute("aria-label",a))}i.addControlElement(l,"playpause"),u("pse"),o.addEventListener("loadedmetadata",function(){-1===o.rendererName.indexOf("flash")&&u("pse")}),o.addEventListener("play",function(){u("play")}),o.addEventListener("playing",function(){u("play")}),o.addEventListener("pause",function(){u("pse")}),o.addEventListener("ended",function(){e.options.loop||((0,m.removeClass)(l,i.options.classPrefix+"pause"),(0,m.removeClass)(l,i.options.classPrefix+"play"),(0,m.addClass)(l,i.options.classPrefix+"replay"),d.setAttribute("title",a),d.setAttribute("aria-label",a))})}})},{16:16,2:2,26:26,27:27,5:5}],11:[function(e,t,n){"use strict";var p=r(e(2)),o=e(16),i=r(o),m=r(e(5)),y=e(25),E=e(30),b=e(26);function r(e){return e&&e.__esModule?e:{default:e}}Object.assign(o.config,{enableProgressTooltip:!0,useSmoothHover:!0,forceLive:!1}),Object.assign(i.default.prototype,{buildprogress:function(h,s,e,d){var u=0,v=!1,c=!1,g=this,t=h.options.autoRewind,n=h.options.enableProgressTooltip?'<span class="'+g.options.classPrefix+'time-float"><span class="'+g.options.classPrefix+'time-float-current">00:00</span><span class="'+g.options.classPrefix+'time-float-corner"></span></span>':"",o=p.default.createElement("div");o.className=g.options.classPrefix+"time-rail",o.innerHTML='<span class="'+g.options.classPrefix+"time-total "+g.options.classPrefix+'time-slider"><span class="'+g.options.classPrefix+'time-buffering"></span><span class="'+g.options.classPrefix+'time-loaded"></span><span class="'+g.options.classPrefix+'time-current"></span><span class="'+g.options.classPrefix+'time-hovered no-hover"></span><span class="'+g.options.classPrefix+'time-handle"><span class="'+g.options.classPrefix+'time-handle-content"></span></span>'+n+"</span>",g.addControlElement(o,"progress"),g.options.keyActions.push({keys:[37,227],action:function(e){if(!isNaN(e.duration)&&0<e.duration){e.isVideo&&(e.showControls(),e.startControlsTimer());var t=e.getElement(e.container).querySelector("."+g.options.classPrefix+"time-total");t&&t.focus();var n=Math.max(e.currentTime-e.options.defaultSeekBackwardInterval(e),0);e.paused||e.pause(),setTimeout(function(){e.setCurrentTime(n)},0),setTimeout(function(){e.play()},0)}}},{keys:[39,228],action:function(e){if(!isNaN(e.duration)&&0<e.duration){e.isVideo&&(e.showControls(),e.startControlsTimer());var t=e.getElement(e.container).querySelector("."+g.options.classPrefix+"time-total");t&&t.focus();var n=Math.min(e.currentTime+e.options.defaultSeekForwardInterval(e),e.duration);e.paused||e.pause(),setTimeout(function(){e.setCurrentTime(n)},0),setTimeout(function(){e.play()},0)}}}),g.rail=s.querySelector("."+g.options.classPrefix+"time-rail"),g.total=s.querySelector("."+g.options.classPrefix+"time-total"),g.loaded=s.querySelector("."+g.options.classPrefix+"time-loaded"),g.current=s.querySelector("."+g.options.classPrefix+"time-current"),g.handle=s.querySelector("."+g.options.classPrefix+"time-handle"),g.timefloat=s.querySelector("."+g.options.classPrefix+"time-float"),g.timefloatcurrent=s.querySelector("."+g.options.classPrefix+"time-float-current"),g.slider=s.querySelector("."+g.options.classPrefix+"time-slider"),g.hovered=s.querySelector("."+g.options.classPrefix+"time-hovered"),g.buffer=s.querySelector("."+g.options.classPrefix+"time-buffering"),g.newTime=0,g.forcedHandlePause=!1,g.setTransformStyle=function(e,t){e.style.transform=t,e.style.webkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t},g.buffer.style.display="none";var i=function(e){var t=getComputedStyle(g.total),n=(0,b.offset)(g.total),o=g.total.offsetWidth,i=void 0!==t.webkitTransform?"webkitTransform":void 0!==t.mozTransform?"mozTransform ":void 0!==t.oTransform?"oTransform":void 0!==t.msTransform?"msTransform":"transform",r="WebKitCSSMatrix"in window?"WebKitCSSMatrix":"MSCSSMatrix"in window?"MSCSSMatrix":"CSSMatrix"in window?"CSSMatrix":void 0,a=0,s=0,l=0,d=void 0;if(d=e.originalEvent&&e.originalEvent.changedTouches?e.originalEvent.changedTouches[0].pageX:e.changedTouches?e.changedTouches[0].pageX:e.pageX,g.getDuration()){if(d<n.left?d=n.left:d>o+n.left&&(d=o+n.left),a=(l=d-n.left)/o,g.newTime=a*g.getDuration(),v&&null!==g.getCurrentTime()&&g.newTime.toFixed(4)!==g.getCurrentTime().toFixed(4)&&(g.setCurrentRailHandle(g.newTime),g.updateCurrent(g.newTime)),!y.IS_IOS&&!y.IS_ANDROID){if(l<0&&(l=0),g.options.useSmoothHover&&null!==r&&void 0!==window[r]){var u=new window[r](getComputedStyle(g.handle)[i]).m41,c=l/parseFloat(getComputedStyle(g.total).width)-u/parseFloat(getComputedStyle(g.total).width);g.hovered.style.left=u+"px",g.setTransformStyle(g.hovered,"scaleX("+c+")"),g.hovered.setAttribute("pos",l),0<=c?(0,b.removeClass)(g.hovered,"negative"):(0,b.addClass)(g.hovered,"negative")}if(g.timefloat){var f=g.timefloat.offsetWidth/2,p=mejs.Utils.offset(g.getElement(g.container)),m=getComputedStyle(g.timefloat);s=d-p.left<g.timefloat.offsetWidth?f:d-p.left>=g.getElement(g.container).offsetWidth-f?g.total.offsetWidth-f:l,(0,b.hasClass)(g.getElement(g.container),g.options.classPrefix+"long-video")&&(s+=parseFloat(m.marginLeft)/2+g.timefloat.offsetWidth/2),g.timefloat.style.left=s+"px",g.timefloatcurrent.innerHTML=(0,E.secondsToTimeCode)(g.newTime,h.options.alwaysShowHours,h.options.showTimecodeFrameCount,h.options.framesPerSecond,h.options.secondsDecimalLength,h.options.timeFormat),g.timefloat.style.display="block"}}}else y.IS_IOS||y.IS_ANDROID||!g.timefloat||(s=g.timefloat.offsetWidth+o>=g.getElement(g.container).offsetWidth?g.timefloat.offsetWidth/2:0,g.timefloat.style.left=s+"px",g.timefloat.style.left=s+"px",g.timefloat.style.display="block")},f=function(){1e3<=new Date-u&&g.play()};g.slider.addEventListener("focus",function(){h.options.autoRewind=!1}),g.slider.addEventListener("blur",function(){h.options.autoRewind=t}),g.slider.addEventListener("keydown",function(e){if(1e3<=new Date-u&&(c=g.paused),g.options.enableKeyboard&&g.options.keyActions.length){var t=e.which||e.keyCode||0,n=g.getDuration(),o=h.options.defaultSeekForwardInterval(d),i=h.options.defaultSeekBackwardInterval(d),r=g.getCurrentTime(),a=g.getElement(g.container).querySelector("."+g.options.classPrefix+"volume-slider");if(38===t||40===t){a&&(a.style.display="block"),g.isVideo&&(g.showControls(),g.startControlsTimer());var s=38===t?Math.min(g.volume+.1,1):Math.max(g.volume-.1,0),l=s<=0;return g.setVolume(s),void g.setMuted(l)}switch(a&&(a.style.display="none"),t){case 37:g.getDuration()!==1/0&&(r-=i);break;case 39:g.getDuration()!==1/0&&(r+=o);break;case 36:r=0;break;case 35:r=n;break;case 13:case 32:return void(y.IS_FIREFOX&&(g.paused?g.play():g.pause()));default:return}r=r<0||isNaN(r)?0:n<=r?n:Math.floor(r),u=new Date,c||h.pause(),setTimeout(function(){g.setCurrentTime(r)},0),r<g.getDuration()&&!c&&setTimeout(f,1100),h.showControls(),e.preventDefault(),e.stopPropagation()}});var r=["mousedown","touchstart"];g.slider.addEventListener("dragstart",function(){return!1});for(var a=0,l=r.length;a<l;a++)g.slider.addEventListener(r[a],function(e){if(g.forcedHandlePause=!1,g.getDuration()!==1/0&&(1===e.which||0===e.which)){g.paused||(g.pause(),g.forcedHandlePause=!0),v=!0,i(e);for(var t=["mouseup","touchend"],n=0,o=t.length;n<o;n++)g.getElement(g.container).addEventListener(t[n],function(e){var t=e.target;(t===g.slider||t.closest("."+g.options.classPrefix+"time-slider"))&&i(e)});g.globalBind("mouseup.dur touchend.dur",function(){v&&null!==g.getCurrentTime()&&g.newTime.toFixed(4)!==g.getCurrentTime().toFixed(4)&&(g.setCurrentTime(g.newTime),g.setCurrentRailHandle(g.newTime),g.updateCurrent(g.newTime)),g.forcedHandlePause&&(g.slider.focus(),g.play()),g.forcedHandlePause=!1,v=!1,g.timefloat&&(g.timefloat.style.display="none")})}},!(!y.SUPPORT_PASSIVE_EVENT||"touchstart"!==r[a])&&{passive:!0});g.slider.addEventListener("mouseenter",function(e){e.target===g.slider&&g.getDuration()!==1/0&&(g.getElement(g.container).addEventListener("mousemove",function(e){var t=e.target;(t===g.slider||t.closest("."+g.options.classPrefix+"time-slider"))&&i(e)}),!g.timefloat||y.IS_IOS||y.IS_ANDROID||(g.timefloat.style.display="block"),g.hovered&&!y.IS_IOS&&!y.IS_ANDROID&&g.options.useSmoothHover&&(0,b.removeClass)(g.hovered,"no-hover"))}),g.slider.addEventListener("mouseleave",function(){g.getDuration()!==1/0&&(v||(g.timefloat&&(g.timefloat.style.display="none"),g.hovered&&g.options.useSmoothHover&&(0,b.addClass)(g.hovered,"no-hover")))}),g.broadcastCallback=function(e){var t,n,o,i,r=s.querySelector("."+g.options.classPrefix+"broadcast");if(g.options.forceLive||g.getDuration()===1/0){if(!r&&g.options.forceLive){var a=p.default.createElement("span");a.className=g.options.classPrefix+"broadcast",a.innerText=m.default.t("mejs.live-broadcast"),g.slider.style.display="none",g.rail.appendChild(a)}}else r&&(g.slider.style.display="",r.remove()),h.setProgressRail(e),g.forcedHandlePause||h.setCurrentRail(e),t=g.getCurrentTime(),n=m.default.t("mejs.time-slider"),o=(0,E.secondsToTimeCode)(t,h.options.alwaysShowHours,h.options.showTimecodeFrameCount,h.options.framesPerSecond,h.options.secondsDecimalLength,h.options.timeFormat),i=g.getDuration(),g.slider.setAttribute("role","slider"),g.slider.tabIndex=0,d.paused?(g.slider.setAttribute("aria-label",n),g.slider.setAttribute("aria-valuemin",0),g.slider.setAttribute("aria-valuemax",isNaN(i)?0:i),g.slider.setAttribute("aria-valuenow",t),g.slider.setAttribute("aria-valuetext",o)):(g.slider.removeAttribute("aria-label"),g.slider.removeAttribute("aria-valuemin"),g.slider.removeAttribute("aria-valuemax"),g.slider.removeAttribute("aria-valuenow"),g.slider.removeAttribute("aria-valuetext"))},d.addEventListener("progress",g.broadcastCallback),d.addEventListener("timeupdate",g.broadcastCallback),d.addEventListener("play",function(){g.buffer.style.display="none"}),d.addEventListener("playing",function(){g.buffer.style.display="none"}),d.addEventListener("seeking",function(){g.buffer.style.display=""}),d.addEventListener("seeked",function(){g.buffer.style.display="none"}),d.addEventListener("pause",function(){g.buffer.style.display="none"}),d.addEventListener("waiting",function(){g.buffer.style.display=""}),d.addEventListener("loadeddata",function(){g.buffer.style.display=""}),d.addEventListener("canplay",function(){g.buffer.style.display="none"}),d.addEventListener("error",function(){g.buffer.style.display="none"}),g.getElement(g.container).addEventListener("controlsresize",function(e){g.getDuration()!==1/0&&(h.setProgressRail(e),g.forcedHandlePause||h.setCurrentRail(e))})},cleanprogress:function(e,t,n,o){o.removeEventListener("progress",e.broadcastCallback),o.removeEventListener("timeupdate",e.broadcastCallback),e.rail&&e.rail.remove()},setProgressRail:function(e){var t=this,n=void 0!==e?e.detail.target||e.target:t.media,o=null;n&&n.buffered&&0<n.buffered.length&&n.buffered.end&&t.getDuration()?o=n.buffered.end(n.buffered.length-1)/t.getDuration():n&&void 0!==n.bytesTotal&&0<n.bytesTotal&&void 0!==n.bufferedBytes?o=n.bufferedBytes/n.bytesTotal:e&&e.lengthComputable&&0!==e.total&&(o=e.loaded/e.total),null!==o&&(o=Math.min(1,Math.max(0,o)),t.loaded&&t.setTransformStyle(t.loaded,"scaleX("+o+")"))},setCurrentRailHandle:function(e){this.setCurrentRailMain(this,e)},setCurrentRail:function(){this.setCurrentRailMain(this)},setCurrentRailMain:function(e,t){if(void 0!==e.getCurrentTime()&&e.getDuration()){var n=void 0===t?e.getCurrentTime():t;if(e.total&&e.handle){var o=parseFloat(getComputedStyle(e.total).width),i=Math.round(o*n/e.getDuration()),r=i-Math.round(e.handle.offsetWidth/2);if(r=r<0?0:r,e.setTransformStyle(e.current,"scaleX("+i/o+")"),e.setTransformStyle(e.handle,"translateX("+r+"px)"),e.options.useSmoothHover&&!(0,b.hasClass)(e.hovered,"no-hover")){var a=parseInt(e.hovered.getAttribute("pos"),10),s=(a=isNaN(a)?0:a)/o-r/o;e.hovered.style.left=r+"px",e.setTransformStyle(e.hovered,"scaleX("+s+")"),0<=s?(0,b.removeClass)(e.hovered,"negative"):(0,b.addClass)(e.hovered,"negative")}}}}})},{16:16,2:2,25:25,26:26,30:30,5:5}],12:[function(e,t,n){"use strict";var a=r(e(2)),o=e(16),i=r(o),s=e(30),l=e(26);function r(e){return e&&e.__esModule?e:{default:e}}Object.assign(o.config,{duration:0,timeAndDurationSeparator:"<span> | </span>"}),Object.assign(i.default.prototype,{buildcurrent:function(e,t,n,o){var i=this,r=a.default.createElement("div");r.className=i.options.classPrefix+"time",r.setAttribute("role","timer"),r.setAttribute("aria-live","off"),r.innerHTML='<span class="'+i.options.classPrefix+'currenttime">'+(0,s.secondsToTimeCode)(0,e.options.alwaysShowHours,e.options.showTimecodeFrameCount,e.options.framesPerSecond,e.options.secondsDecimalLength,e.options.timeFormat)+"</span>",i.addControlElement(r,"current"),e.updateCurrent(),i.updateTimeCallback=function(){i.controlsAreVisible&&e.updateCurrent()},o.addEventListener("timeupdate",i.updateTimeCallback)},cleancurrent:function(e,t,n,o){o.removeEventListener("timeupdate",e.updateTimeCallback)},buildduration:function(e,t,n,o){var i=this;if(t.lastChild.querySelector("."+i.options.classPrefix+"currenttime"))t.querySelector("."+i.options.classPrefix+"time").innerHTML+=i.options.timeAndDurationSeparator+'<span class="'+i.options.classPrefix+'duration">'+(0,s.secondsToTimeCode)(i.options.duration,i.options.alwaysShowHours,i.options.showTimecodeFrameCount,i.options.framesPerSecond,i.options.secondsDecimalLength,i.options.timeFormat)+"</span>";else{t.querySelector("."+i.options.classPrefix+"currenttime")&&(0,l.addClass)(t.querySelector("."+i.options.classPrefix+"currenttime").parentNode,i.options.classPrefix+"currenttime-container");var r=a.default.createElement("div");r.className=i.options.classPrefix+"time "+i.options.classPrefix+"duration-container",r.innerHTML='<span class="'+i.options.classPrefix+'duration">'+(0,s.secondsToTimeCode)(i.options.duration,i.options.alwaysShowHours,i.options.showTimecodeFrameCount,i.options.framesPerSecond,i.options.secondsDecimalLength,i.options.timeFormat)+"</span>",i.addControlElement(r,"duration")}i.updateDurationCallback=function(){i.controlsAreVisible&&e.updateDuration()},o.addEventListener("timeupdate",i.updateDurationCallback)},cleanduration:function(e,t,n,o){o.removeEventListener("timeupdate",e.updateDurationCallback)},updateCurrent:function(){var e=this,t=e.getCurrentTime();isNaN(t)&&(t=0);var n=(0,s.secondsToTimeCode)(t,e.options.alwaysShowHours,e.options.showTimecodeFrameCount,e.options.framesPerSecond,e.options.secondsDecimalLength,e.options.timeFormat);5<n.length?(0,l.addClass)(e.getElement(e.container),e.options.classPrefix+"long-video"):(0,l.removeClass)(e.getElement(e.container),e.options.classPrefix+"long-video"),e.getElement(e.controls).querySelector("."+e.options.classPrefix+"currenttime")&&(e.getElement(e.controls).querySelector("."+e.options.classPrefix+"currenttime").innerText=n)},updateDuration:function(){var e=this,t=e.getDuration();void 0!==e.media&&(isNaN(t)||t===1/0||t<0)&&(e.media.duration=e.options.duration=t=0),0<e.options.duration&&(t=e.options.duration);var n=(0,s.secondsToTimeCode)(t,e.options.alwaysShowHours,e.options.showTimecodeFrameCount,e.options.framesPerSecond,e.options.secondsDecimalLength,e.options.timeFormat);5<n.length?(0,l.addClass)(e.getElement(e.container),e.options.classPrefix+"long-video"):(0,l.removeClass)(e.getElement(e.container),e.options.classPrefix+"long-video"),e.getElement(e.controls).querySelector("."+e.options.classPrefix+"duration")&&0<t&&(e.getElement(e.controls).querySelector("."+e.options.classPrefix+"duration").innerHTML=n)}})},{16:16,2:2,26:26,30:30}],13:[function(e,t,n){"use strict";var L=r(e(2)),d=r(e(7)),F=r(e(5)),o=e(16),i=r(o),m=e(30),j=e(27),I=e(26);function r(e){return e&&e.__esModule?e:{default:e}}Object.assign(o.config,{startLanguage:"",tracksText:null,chaptersText:null,tracksAriaLive:!1,hideCaptionsButtonWhenEmpty:!0,toggleCaptionsButtonWhenOnlyOne:!1,slidesSelector:""}),Object.assign(i.default.prototype,{hasChapters:!1,buildtracks:function(o,e,t,n){if(this.findTracks(),o.tracks.length||o.trackFiles&&0!==!o.trackFiles.length){var i=this,r=i.options.tracksAriaLive?' role="log" aria-live="assertive" aria-atomic="false"':"",a=(0,j.isString)(i.options.tracksText)?i.options.tracksText:F.default.t("mejs.captions-subtitles"),s=(0,j.isString)(i.options.chaptersText)?i.options.chaptersText:F.default.t("mejs.captions-chapters"),l=null===o.trackFiles?o.tracks.length:o.trackFiles.length;if(i.domNode.textTracks)for(var d=i.domNode.textTracks.length-1;0<=d;d--)i.domNode.textTracks[d].mode="hidden";i.cleartracks(o),o.captions=L.default.createElement("div"),o.captions.className=i.options.classPrefix+"captions-layer "+i.options.classPrefix+"layer",o.captions.innerHTML='<div class="'+i.options.classPrefix+"captions-position "+i.options.classPrefix+'captions-position-hover"'+r+'><span class="'+i.options.classPrefix+'captions-text"></span></div>',o.captions.style.display="none",t.insertBefore(o.captions,t.firstChild),o.captionsText=o.captions.querySelector("."+i.options.classPrefix+"captions-text"),o.captionsButton=L.default.createElement("div"),o.captionsButton.className=i.options.classPrefix+"button "+i.options.classPrefix+"captions-button",o.captionsButton.innerHTML='<button type="button" aria-controls="'+i.id+'" title="'+a+'" aria-label="'+a+'" tabindex="0"></button><div class="'+i.options.classPrefix+"captions-selector "+i.options.classPrefix+'offscreen"><ul class="'+i.options.classPrefix+'captions-selector-list"><li class="'+i.options.classPrefix+'captions-selector-list-item"><input type="radio" class="'+i.options.classPrefix+'captions-selector-input" name="'+o.id+'_captions" id="'+o.id+'_captions_none" value="none" checked disabled><label class="'+i.options.classPrefix+"captions-selector-label "+i.options.classPrefix+'captions-selected" for="'+o.id+'_captions_none">'+F.default.t("mejs.none")+"</label></li></ul></div>",i.addControlElement(o.captionsButton,"tracks"),o.captionsButton.querySelector("."+i.options.classPrefix+"captions-selector-input").disabled=!1,o.chaptersButton=L.default.createElement("div"),o.chaptersButton.className=i.options.classPrefix+"button "+i.options.classPrefix+"chapters-button",o.chaptersButton.innerHTML='<button type="button" aria-controls="'+i.id+'" title="'+s+'" aria-label="'+s+'" tabindex="0"></button><div class="'+i.options.classPrefix+"chapters-selector "+i.options.classPrefix+'offscreen"><ul class="'+i.options.classPrefix+'chapters-selector-list"></ul></div>';for(var u=0,c=0;c<l;c++){var f=o.tracks[c].kind;o.tracks[c].src.trim()&&("subtitles"===f||"captions"===f?u++:"chapters"!==f||e.querySelector("."+i.options.classPrefix+"chapter-selector")||o.captionsButton.parentNode.insertBefore(o.chaptersButton,o.captionsButton))}o.trackToLoad=-1,o.selectedTrack=null,o.isLoadingTrack=!1;for(var p=0;p<l;p++){var m=o.tracks[p].kind;!o.tracks[p].src.trim()||"subtitles"!==m&&"captions"!==m||o.addTrackButton(o.tracks[p].trackId,o.tracks[p].srclang,o.tracks[p].label)}o.loadNextTrack();var h=["mouseenter","focusin"],v=["mouseleave","focusout"];if(i.options.toggleCaptionsButtonWhenOnlyOne&&1===u)o.captionsButton.addEventListener("click",function(e){var t="none";null===o.selectedTrack&&(t=o.tracks[0].trackId);var n=e.keyCode||e.which;o.setTrack(t,void 0!==n)});else{for(var g=o.captionsButton.querySelectorAll("."+i.options.classPrefix+"captions-selector-label"),y=o.captionsButton.querySelectorAll("input[type=radio]"),E=0,b=h.length;E<b;E++)o.captionsButton.addEventListener(h[E],function(){(0,I.removeClass)(this.querySelector("."+i.options.classPrefix+"captions-selector"),i.options.classPrefix+"offscreen")});for(var S=0,x=v.length;S<x;S++)o.captionsButton.addEventListener(v[S],function(){(0,I.addClass)(this.querySelector("."+i.options.classPrefix+"captions-selector"),i.options.classPrefix+"offscreen")});for(var w=0,P=y.length;w<P;w++)y[w].addEventListener("click",function(e){var t=e.keyCode||e.which;o.setTrack(this.value,void 0!==t)});for(var T=0,C=g.length;T<C;T++)g[T].addEventListener("click",function(e){var t=(0,I.siblings)(this,function(e){return"INPUT"===e.tagName})[0],n=(0,j.createEvent)("click",t);t.dispatchEvent(n),e.preventDefault()});o.captionsButton.addEventListener("keydown",function(e){e.stopPropagation()})}for(var k=0,_=h.length;k<_;k++)o.chaptersButton.addEventListener(h[k],function(){this.querySelector("."+i.options.classPrefix+"chapters-selector-list").children.length&&(0,I.removeClass)(this.querySelector("."+i.options.classPrefix+"chapters-selector"),i.options.classPrefix+"offscreen")});for(var N=0,A=v.length;N<A;N++)o.chaptersButton.addEventListener(v[N],function(){(0,I.addClass)(this.querySelector("."+i.options.classPrefix+"chapters-selector"),i.options.classPrefix+"offscreen")});o.chaptersButton.addEventListener("keydown",function(e){e.stopPropagation()}),o.options.alwaysShowControls?(0,I.addClass)(o.getElement(o.container).querySelector("."+i.options.classPrefix+"captions-position"),i.options.classPrefix+"captions-position-hover"):(o.getElement(o.container).addEventListener("controlsshown",function(){(0,I.addClass)(o.getElement(o.container).querySelector("."+i.options.classPrefix+"captions-position"),i.options.classPrefix+"captions-position-hover")}),o.getElement(o.container).addEventListener("controlshidden",function(){n.paused||(0,I.removeClass)(o.getElement(o.container).querySelector("."+i.options.classPrefix+"captions-position"),i.options.classPrefix+"captions-position-hover")})),n.addEventListener("timeupdate",function(){o.displayCaptions()}),""!==o.options.slidesSelector&&(o.slidesContainer=L.default.querySelectorAll(o.options.slidesSelector),n.addEventListener("timeupdate",function(){o.displaySlides()}))}},cleartracks:function(e){e&&(e.captions&&e.captions.remove(),e.chapters&&e.chapters.remove(),e.captionsText&&e.captionsText.remove(),e.captionsButton&&e.captionsButton.remove(),e.chaptersButton&&e.chaptersButton.remove())},rebuildtracks:function(){var e=this;e.findTracks(),e.buildtracks(e,e.getElement(e.controls),e.getElement(e.layers),e.media)},findTracks:function(){var e=this,t=null===e.trackFiles?e.node.querySelectorAll("track"):e.trackFiles,n=t.length;e.tracks=[];for(var o=0;o<n;o++){var i=t[o],r=i.getAttribute("srclang").toLowerCase()||"",a=e.id+"_track_"+o+"_"+i.getAttribute("kind")+"_"+r;e.tracks.push({trackId:a,srclang:r,src:i.getAttribute("src"),kind:i.getAttribute("kind"),label:i.getAttribute("label")||"",entries:[],isLoaded:!1})}},setTrack:function(e,t){for(var n=this,o=n.captionsButton.querySelectorAll('input[type="radio"]'),i=n.captionsButton.querySelectorAll("."+n.options.classPrefix+"captions-selected"),r=n.captionsButton.querySelector('input[value="'+e+'"]'),a=0,s=o.length;a<s;a++)o[a].checked=!1;for(var l=0,d=i.length;l<d;l++)(0,I.removeClass)(i[l],n.options.classPrefix+"captions-selected");r.checked=!0;for(var u=(0,I.siblings)(r,function(e){return(0,I.hasClass)(e,n.options.classPrefix+"captions-selector-label")}),c=0,f=u.length;c<f;c++)(0,I.addClass)(u[c],n.options.classPrefix+"captions-selected");if("none"===e)n.selectedTrack=null,(0,I.removeClass)(n.captionsButton,n.options.classPrefix+"captions-enabled");else for(var p=0,m=n.tracks.length;p<m;p++){var h=n.tracks[p];if(h.trackId===e){null===n.selectedTrack&&(0,I.addClass)(n.captionsButton,n.options.classPrefix+"captions-enabled"),n.selectedTrack=h,n.captions.setAttribute("lang",n.selectedTrack.srclang),n.displayCaptions();break}}var v=(0,j.createEvent)("captionschange",n.media);v.detail.caption=n.selectedTrack,n.media.dispatchEvent(v),t||setTimeout(function(){n.getElement(n.container).focus()},500)},loadNextTrack:function(){var e=this;e.trackToLoad++,e.trackToLoad<e.tracks.length?(e.isLoadingTrack=!0,e.loadTrack(e.trackToLoad)):(e.isLoadingTrack=!1,e.checkForTracks())},loadTrack:function(e){var t=this,n=t.tracks[e];void 0===n||void 0===n.src&&""===n.src||(0,I.ajax)(n.src,"text",function(e){n.entries="string"==typeof e&&/<tt\s+xml/gi.exec(e)?d.default.TrackFormatParser.dfxp.parse(e):d.default.TrackFormatParser.webvtt.parse(e),n.isLoaded=!0,t.enableTrackButton(n),t.loadNextTrack(),"slides"===n.kind?t.setupSlides(n):"chapters"!==n.kind||t.hasChapters||(t.drawChapters(n),t.hasChapters=!0)},function(){t.removeTrackButton(n.trackId),t.loadNextTrack()})},enableTrackButton:function(e){var t=this,n=e.srclang,o=L.default.getElementById(""+e.trackId);if(o){var i=e.label;""===i&&(i=F.default.t(d.default.language.codes[n])||n),o.disabled=!1;for(var r=(0,I.siblings)(o,function(e){return(0,I.hasClass)(e,t.options.classPrefix+"captions-selector-label")}),a=0,s=r.length;a<s;a++)r[a].innerHTML=i;if(t.options.startLanguage===n){o.checked=!0;var l=(0,j.createEvent)("click",o);o.dispatchEvent(l)}}},removeTrackButton:function(e){var t=L.default.getElementById(""+e);if(t){var n=t.closest("li");n&&n.remove()}},addTrackButton:function(e,t,n){var o=this;""===n&&(n=F.default.t(d.default.language.codes[t])||t),o.captionsButton.querySelector("ul").innerHTML+='<li class="'+o.options.classPrefix+'captions-selector-list-item"><input type="radio" class="'+o.options.classPrefix+'captions-selector-input" name="'+o.id+'_captions" id="'+e+'" value="'+e+'" disabled><label class="'+o.options.classPrefix+'captions-selector-label"for="'+e+'">'+n+" (loading)</label></li>"},checkForTracks:function(){var e=this,t=!1;if(e.options.hideCaptionsButtonWhenEmpty){for(var n=0,o=e.tracks.length;n<o;n++){var i=e.tracks[n].kind;if(("subtitles"===i||"captions"===i)&&e.tracks[n].isLoaded){t=!0;break}}e.captionsButton.style.display=t?"":"none",e.setControlsSize()}},displayCaptions:function(){if(void 0!==this.tracks){var e=this,t=e.selectedTrack;if(null!==t&&t.isLoaded){var n=e.searchTrackPosition(t.entries,e.media.currentTime);if(-1<n){var o=t.entries[n].text;return"function"==typeof e.options.captionTextPreprocessor&&(o=e.options.captionTextPreprocessor(o)),e.captionsText.innerHTML=function(e){var t=L.default.createElement("div");t.innerHTML=e;for(var n=t.getElementsByTagName("script"),o=n.length;o--;)n[o].remove();for(var i=t.getElementsByTagName("*"),r=0,a=i.length;r<a;r++)for(var s=i[r].attributes,l=Array.prototype.slice.call(s),d=0,u=l.length;d<u;d++)l[d].name.startsWith("on")||l[d].value.startsWith("javascript")?i[r].remove():"style"===l[d].name&&i[r].removeAttribute(l[d].name);return t.innerHTML}(o),e.captionsText.className=e.options.classPrefix+"captions-text "+(t.entries[n].identifier||""),e.captions.style.display="",void(e.captions.style.height="0px")}e.captions.style.display="none"}else e.captions.style.display="none"}},setupSlides:function(e){this.slides=e,this.slides.entries.imgs=[this.slides.entries.length],this.showSlide(0)},showSlide:function(e){var i=this,r=this;if(void 0!==r.tracks&&void 0!==r.slidesContainer){var t=r.slides.entries[e].text,n=r.slides.entries[e].imgs;if(void 0===n||void 0===n.fadeIn){var a=L.default.createElement("img");a.src=t,a.addEventListener("load",function(){var e=i,t=(0,I.siblings)(e,function(e){return t(e)});e.style.display="none",r.slidesContainer.innerHTML+=e.innerHTML,(0,I.fadeIn)(r.slidesContainer.querySelector(a));for(var n=0,o=t.length;n<o;n++)(0,I.fadeOut)(t[n],400)}),r.slides.entries[e].imgs=n=a}else if(!(0,I.visible)(n)){var o=(0,I.siblings)(self,function(e){return o(e)});(0,I.fadeIn)(r.slidesContainer.querySelector(n));for(var s=0,l=o.length;s<l;s++)(0,I.fadeOut)(o[s])}}},displaySlides:function(){if(void 0!==this.slides){var e=this.slides,t=this.searchTrackPosition(e.entries,this.media.currentTime);-1<t&&this.showSlide(t)}},drawChapters:function(e){var r=this,t=e.entries.length;if(t){r.chaptersButton.querySelector("ul").innerHTML="";for(var n=0;n<t;n++)r.chaptersButton.querySelector("ul").innerHTML+='<li class="'+r.options.classPrefix+'chapters-selector-list-item" role="menuitemcheckbox" aria-live="polite" aria-disabled="false" aria-checked="false"><input type="radio" class="'+r.options.classPrefix+'captions-selector-input" name="'+r.id+'_chapters" id="'+r.id+"_chapters_"+n+'" value="'+e.entries[n].start+'" disabled><label class="'+r.options.classPrefix+'chapters-selector-label"for="'+r.id+"_chapters_"+n+'">'+e.entries[n].text+"</label></li>";for(var o=r.chaptersButton.querySelectorAll('input[type="radio"]'),i=r.chaptersButton.querySelectorAll("."+r.options.classPrefix+"chapters-selector-label"),a=0,s=o.length;a<s;a++)o[a].disabled=!1,o[a].checked=!1,o[a].addEventListener("click",function(e){var t=r.chaptersButton.querySelectorAll("li"),n=(0,I.siblings)(this,function(e){return(0,I.hasClass)(e,r.options.classPrefix+"chapters-selector-label")})[0];this.checked=!0,this.parentNode.setAttribute("aria-checked",!0),(0,I.addClass)(n,r.options.classPrefix+"chapters-selected"),(0,I.removeClass)(r.chaptersButton.querySelector("."+r.options.classPrefix+"chapters-selected"),r.options.classPrefix+"chapters-selected");for(var o=0,i=t.length;o<i;o++)t[o].setAttribute("aria-checked",!1);void 0===(e.keyCode||e.which)&&setTimeout(function(){r.getElement(r.container).focus()},500),r.media.setCurrentTime(parseFloat(this.value)),r.media.paused&&r.media.play()});for(var l=0,d=i.length;l<d;l++)i[l].addEventListener("click",function(e){var t=(0,I.siblings)(this,function(e){return"INPUT"===e.tagName})[0],n=(0,j.createEvent)("click",t);t.dispatchEvent(n),e.preventDefault()})}},searchTrackPosition:function(e,t){for(var n=0,o=e.length-1,i=void 0,r=void 0,a=void 0;n<=o;){if(r=e[i=n+o>>1].start,a=e[i].stop,r<=t&&t<a)return i;r<t?n=i+1:t<r&&(o=i-1)}return-1}}),d.default.language={codes:{af:"mejs.afrikaans",sq:"mejs.albanian",ar:"mejs.arabic",be:"mejs.belarusian",bg:"mejs.bulgarian",ca:"mejs.catalan",zh:"mejs.chinese","zh-cn":"mejs.chinese-simplified","zh-tw":"mejs.chines-traditional",hr:"mejs.croatian",cs:"mejs.czech",da:"mejs.danish",nl:"mejs.dutch",en:"mejs.english",et:"mejs.estonian",fl:"mejs.filipino",fi:"mejs.finnish",fr:"mejs.french",gl:"mejs.galician",de:"mejs.german",el:"mejs.greek",ht:"mejs.haitian-creole",iw:"mejs.hebrew",hi:"mejs.hindi",hu:"mejs.hungarian",is:"mejs.icelandic",id:"mejs.indonesian",ga:"mejs.irish",it:"mejs.italian",ja:"mejs.japanese",ko:"mejs.korean",lv:"mejs.latvian",lt:"mejs.lithuanian",mk:"mejs.macedonian",ms:"mejs.malay",mt:"mejs.maltese",no:"mejs.norwegian",fa:"mejs.persian",pl:"mejs.polish",pt:"mejs.portuguese",ro:"mejs.romanian",ru:"mejs.russian",sr:"mejs.serbian",sk:"mejs.slovak",sl:"mejs.slovenian",es:"mejs.spanish",sw:"mejs.swahili",sv:"mejs.swedish",tl:"mejs.tagalog",th:"mejs.thai",tr:"mejs.turkish",uk:"mejs.ukrainian",vi:"mejs.vietnamese",cy:"mejs.welsh",yi:"mejs.yiddish"}},d.default.TrackFormatParser={webvtt:{pattern:/^((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,parse:function(e){for(var t=e.split(/\r?\n/),n=[],o=void 0,i=void 0,r=void 0,a=0,s=t.length;a<s;a++){if((o=this.pattern.exec(t[a]))&&a<t.length){for(0<=a-1&&""!==t[a-1]&&(r=t[a-1]),i=t[++a],a++;""!==t[a]&&a<t.length;)i=i+"\n"+t[a],a++;i=null===i?"":i.trim().replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,"<a href='$1' target='_blank'>$1</a>"),n.push({identifier:r,start:0===(0,m.convertSMPTEtoSeconds)(o[1])?.2:(0,m.convertSMPTEtoSeconds)(o[1]),stop:(0,m.convertSMPTEtoSeconds)(o[3]),text:i,settings:o[5]})}r=""}return n}},dfxp:{parse:function(e){var t=L.default.adoptNode((new DOMParser).parseFromString(e,"application/xml").documentElement).querySelector("div"),n=t.querySelectorAll("p"),o=L.default.getElementById(t.getAttribute("style")),i=[],r=void 0;if(o){o.removeAttribute("id");var a=o.attributes;if(a.length){r={};for(var s=0,l=a.length;s<l;s++)r[a[s].name.split(":")[1]]=a[s].value}}for(var d=0,u=n.length;d<u;d++){var c=void 0,f={start:null,stop:null,style:null,text:null};if(n[d].getAttribute("begin")&&(f.start=(0,m.convertSMPTEtoSeconds)(n[d].getAttribute("begin"))),!f.start&&n[d-1].getAttribute("end")&&(f.start=(0,m.convertSMPTEtoSeconds)(n[d-1].getAttribute("end"))),n[d].getAttribute("end")&&(f.stop=(0,m.convertSMPTEtoSeconds)(n[d].getAttribute("end"))),!f.stop&&n[d+1].getAttribute("begin")&&(f.stop=(0,m.convertSMPTEtoSeconds)(n[d+1].getAttribute("begin"))),r)for(var p in c="",r)c+=p+": "+r[p]+";";c&&(f.style=c),0===f.start&&(f.start=.2),f.text=n[d].innerHTML.trim().replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_| !:, .; ]*[-A-Z0-9+&@#\/%=~_|])/gi,"<a href='$1' target='_blank'>$1</a>"),i.push(f)}return i}}}},{16:16,2:2,26:26,27:27,30:30,5:5,7:7}],14:[function(e,t,n){"use strict";var x=r(e(2)),o=e(16),i=r(o),w=r(e(5)),P=e(25),T=e(27),C=e(26);function r(e){return e&&e.__esModule?e:{default:e}}Object.assign(o.config,{muteText:null,unmuteText:null,allyVolumeControlText:null,hideVolumeOnTouchDevices:!0,audioVolume:"horizontal",videoVolume:"vertical",startVolume:.8}),Object.assign(i.default.prototype,{buildvolume:function(e,t,n,o){if(!P.IS_ANDROID&&!P.IS_IOS||!this.options.hideVolumeOnTouchDevices){var a=this,s=a.isVideo?a.options.videoVolume:a.options.audioVolume,r=(0,T.isString)(a.options.muteText)?a.options.muteText:w.default.t("mejs.mute"),l=(0,T.isString)(a.options.unmuteText)?a.options.unmuteText:w.default.t("mejs.unmute"),i=(0,T.isString)(a.options.allyVolumeControlText)?a.options.allyVolumeControlText:w.default.t("mejs.volume-help-text"),d=x.default.createElement("div");if(d.className=a.options.classPrefix+"button "+a.options.classPrefix+"volume-button "+a.options.classPrefix+"mute",d.innerHTML="horizontal"===s?'<button type="button" aria-controls="'+a.id+'" title="'+r+'" aria-label="'+r+'" tabindex="0"></button>':'<button type="button" aria-controls="'+a.id+'" title="'+r+'" aria-label="'+r+'" tabindex="0"></button><a href="javascript:void(0);" class="'+a.options.classPrefix+'volume-slider" aria-label="'+w.default.t("mejs.volume-slider")+'" aria-valuemin="0" aria-valuemax="100" role="slider" aria-orientation="vertical"><span class="'+a.options.classPrefix+'offscreen">'+i+'</span><div class="'+a.options.classPrefix+'volume-total"><div class="'+a.options.classPrefix+'volume-current"></div><div class="'+a.options.classPrefix+'volume-handle"></div></div></a>',a.addControlElement(d,"volume"),a.options.keyActions.push({keys:[38],action:function(e){var t=e.getElement(e.container).querySelector("."+a.options.classPrefix+"volume-slider");t&&t.matches(":focus")&&(t.style.display="block"),e.isVideo&&(e.showControls(),e.startControlsTimer());var n=Math.min(e.volume+.1,1);e.setVolume(n),0<n&&e.setMuted(!1)}},{keys:[40],action:function(e){var t=e.getElement(e.container).querySelector("."+a.options.classPrefix+"volume-slider");t&&(t.style.display="block"),e.isVideo&&(e.showControls(),e.startControlsTimer());var n=Math.max(e.volume-.1,0);e.setVolume(n),n<=.1&&e.setMuted(!0)}},{keys:[77],action:function(e){var t=e.getElement(e.container).querySelector("."+a.options.classPrefix+"volume-slider");t&&(t.style.display="block"),e.isVideo&&(e.showControls(),e.startControlsTimer()),e.media.muted?e.setMuted(!1):e.setMuted(!0)}}),"horizontal"===s){var u=x.default.createElement("a");u.className=a.options.classPrefix+"horizontal-volume-slider",u.href="javascript:void(0);",u.setAttribute("aria-label",w.default.t("mejs.volume-slider")),u.setAttribute("aria-valuemin",0),u.setAttribute("aria-valuemax",100),u.setAttribute("aria-valuenow",100),u.setAttribute("role","slider"),u.innerHTML+='<span class="'+a.options.classPrefix+'offscreen">'+i+'</span><div class="'+a.options.classPrefix+'horizontal-volume-total"><div class="'+a.options.classPrefix+'horizontal-volume-current"></div><div class="'+a.options.classPrefix+'horizontal-volume-handle"></div></div>',d.parentNode.insertBefore(u,d.nextSibling)}var c=!1,f=!1,p=!1,m="vertical"===s?a.getElement(a.container).querySelector("."+a.options.classPrefix+"volume-slider"):a.getElement(a.container).querySelector("."+a.options.classPrefix+"horizontal-volume-slider"),h="vertical"===s?a.getElement(a.container).querySelector("."+a.options.classPrefix+"volume-total"):a.getElement(a.container).querySelector("."+a.options.classPrefix+"horizontal-volume-total"),v="vertical"===s?a.getElement(a.container).querySelector("."+a.options.classPrefix+"volume-current"):a.getElement(a.container).querySelector("."+a.options.classPrefix+"horizontal-volume-current"),g="vertical"===s?a.getElement(a.container).querySelector("."+a.options.classPrefix+"volume-handle"):a.getElement(a.container).querySelector("."+a.options.classPrefix+"horizontal-volume-handle"),y=function(e){if(null!==e&&!isNaN(e)&&void 0!==e){if(e=Math.max(0,e),0===(e=Math.min(e,1))){(0,C.removeClass)(d,a.options.classPrefix+"mute"),(0,C.addClass)(d,a.options.classPrefix+"unmute");var t=d.firstElementChild;t.setAttribute("title",l),t.setAttribute("aria-label",l)}else{(0,C.removeClass)(d,a.options.classPrefix+"unmute"),(0,C.addClass)(d,a.options.classPrefix+"mute");var n=d.firstElementChild;n.setAttribute("title",r),n.setAttribute("aria-label",r)}var o=100*e+"%",i=getComputedStyle(g);"vertical"===s?(v.style.bottom=0,v.style.height=o,g.style.bottom=o,g.style.marginBottom=-parseFloat(i.height)/2+"px"):(v.style.left=0,v.style.width=o,g.style.left=o,g.style.marginLeft=-parseFloat(i.width)/2+"px")}},E=function(e){var t=(0,C.offset)(h),n=getComputedStyle(h);p=!0;var o=null;if("vertical"===s){var i=parseFloat(n.height);if(o=(i-(e.pageY-t.top))/i,0===t.top||0===t.left)return}else{var r=parseFloat(n.width);o=(e.pageX-t.left)/r}o=Math.max(0,o),o=Math.min(o,1),y(o),a.setMuted(0===o),a.setVolume(o),e.preventDefault(),e.stopPropagation()},b=function(){a.muted?(y(0),(0,C.removeClass)(d,a.options.classPrefix+"mute"),(0,C.addClass)(d,a.options.classPrefix+"unmute")):(y(o.volume),(0,C.removeClass)(d,a.options.classPrefix+"unmute"),(0,C.addClass)(d,a.options.classPrefix+"mute"))};e.getElement(e.container).addEventListener("keydown",function(e){!!e.target.closest("."+a.options.classPrefix+"container")||"vertical"!==s||(m.style.display="none")}),d.addEventListener("mouseenter",function(e){e.target===d&&(m.style.display="block",f=!0,e.preventDefault(),e.stopPropagation())}),d.addEventListener("focusin",function(){m.style.display="block",f=!0}),d.addEventListener("focusout",function(e){e.relatedTarget&&(!e.relatedTarget||e.relatedTarget.matches("."+a.options.classPrefix+"volume-slider"))||"vertical"!==s||(m.style.display="none")}),d.addEventListener("mouseleave",function(){f=!1,c||"vertical"!==s||(m.style.display="none")}),d.addEventListener("focusout",function(){f=!1}),d.addEventListener("keydown",function(e){if(a.options.enableKeyboard&&a.options.keyActions.length){var t=e.which||e.keyCode||0,n=o.volume;switch(t){case 38:n=Math.min(n+.1,1);break;case 40:n=Math.max(0,n-.1);break;default:return!0}c=!1,y(n),o.setVolume(n),e.preventDefault(),e.stopPropagation()}}),d.querySelector("button").addEventListener("click",function(){o.setMuted(!o.muted);var e=(0,T.createEvent)("volumechange",o);o.dispatchEvent(e)}),m.addEventListener("dragstart",function(){return!1}),m.addEventListener("mouseover",function(){f=!0}),m.addEventListener("focusin",function(){m.style.display="block",f=!0}),m.addEventListener("focusout",function(){f=!1,c||"vertical"!==s||(m.style.display="none")}),m.addEventListener("mousedown",function(e){E(e),a.globalBind("mousemove.vol",function(e){var t=e.target;c&&(t===m||t.closest("vertical"===s?"."+a.options.classPrefix+"volume-slider":"."+a.options.classPrefix+"horizontal-volume-slider"))&&E(e)}),a.globalBind("mouseup.vol",function(){c=!1,f||"vertical"!==s||(m.style.display="none")}),c=!0,e.preventDefault(),e.stopPropagation()}),o.addEventListener("volumechange",function(e){var t;c||b(),t=Math.floor(100*o.volume),m.setAttribute("aria-valuenow",t),m.setAttribute("aria-valuetext",t+"%")});var S=!1;o.addEventListener("rendererready",function(){p||setTimeout(function(){S=!0,(0===e.options.startVolume||o.originalNode.muted)&&o.setMuted(!0),o.setVolume(e.options.startVolume),a.setControlsSize()},250)}),o.addEventListener("loadedmetadata",function(){setTimeout(function(){p||S||((0===e.options.startVolume||o.originalNode.muted)&&o.setMuted(!0),0===e.options.startVolume&&(e.options.startVolume=0),o.setVolume(e.options.startVolume),a.setControlsSize()),S=!1},250)}),(0===e.options.startVolume||o.originalNode.muted)&&(o.setMuted(!0),0===e.options.startVolume&&(e.options.startVolume=0),b()),a.getElement(a.container).addEventListener("controlsresize",function(){b()})}}})},{16:16,2:2,25:25,26:26,27:27,5:5}],15:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.EN={"mejs.plural-form":1,"mejs.download-file":"Download File","mejs.install-flash":"You are using a browser that does not have Flash player enabled or installed. Please turn on your Flash player plugin or download the latest version from https://get.adobe.com/flashplayer/","mejs.fullscreen":"Fullscreen","mejs.play":"Play","mejs.pause":"Pause","mejs.time-slider":"Time Slider","mejs.time-help-text":"Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.","mejs.live-broadcast":"Live Broadcast","mejs.volume-help-text":"Use Up/Down Arrow keys to increase or decrease volume.","mejs.unmute":"Unmute","mejs.mute":"Mute","mejs.volume-slider":"Volume Slider","mejs.video-player":"Video Player","mejs.audio-player":"Audio Player","mejs.captions-subtitles":"Captions/Subtitles","mejs.captions-chapters":"Chapters","mejs.none":"None","mejs.afrikaans":"Afrikaans","mejs.albanian":"Albanian","mejs.arabic":"Arabic","mejs.belarusian":"Belarusian","mejs.bulgarian":"Bulgarian","mejs.catalan":"Catalan","mejs.chinese":"Chinese","mejs.chinese-simplified":"Chinese (Simplified)","mejs.chinese-traditional":"Chinese (Traditional)","mejs.croatian":"Croatian","mejs.czech":"Czech","mejs.danish":"Danish","mejs.dutch":"Dutch","mejs.english":"English","mejs.estonian":"Estonian","mejs.filipino":"Filipino","mejs.finnish":"Finnish","mejs.french":"French","mejs.galician":"Galician","mejs.german":"German","mejs.greek":"Greek","mejs.haitian-creole":"Haitian Creole","mejs.hebrew":"Hebrew","mejs.hindi":"Hindi","mejs.hungarian":"Hungarian","mejs.icelandic":"Icelandic","mejs.indonesian":"Indonesian","mejs.irish":"Irish","mejs.italian":"Italian","mejs.japanese":"Japanese","mejs.korean":"Korean","mejs.latvian":"Latvian","mejs.lithuanian":"Lithuanian","mejs.macedonian":"Macedonian","mejs.malay":"Malay","mejs.maltese":"Maltese","mejs.norwegian":"Norwegian","mejs.persian":"Persian","mejs.polish":"Polish","mejs.portuguese":"Portuguese","mejs.romanian":"Romanian","mejs.russian":"Russian","mejs.serbian":"Serbian","mejs.slovak":"Slovak","mejs.slovenian":"Slovenian","mejs.spanish":"Spanish","mejs.swahili":"Swahili","mejs.swedish":"Swedish","mejs.tagalog":"Tagalog","mejs.thai":"Thai","mejs.turkish":"Turkish","mejs.ukrainian":"Ukrainian","mejs.vietnamese":"Vietnamese","mejs.welsh":"Welsh","mejs.yiddish":"Yiddish"}},{}],16:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.config=void 0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}}(),S=r(e(3)),x=r(e(2)),f=r(e(7)),d=r(e(6)),i=r(e(17)),u=r(e(5)),w=e(25),m=e(27),c=e(30),p=e(28),P=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}}(e(26));function r(e){return e&&e.__esModule?e:{default:e}}f.default.mepIndex=0,f.default.players={};var s=n.config={poster:"",showPosterWhenEnded:!1,showPosterWhenPaused:!1,defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,defaultAudioWidth:400,defaultAudioHeight:40,defaultSeekBackwardInterval:function(e){return.05*e.getDuration()},defaultSeekForwardInterval:function(e){return.05*e.getDuration()},setDimensions:!0,audioWidth:-1,audioHeight:-1,loop:!1,autoRewind:!0,enableAutosize:!0,timeFormat:"",alwaysShowHours:!1,showTimecodeFrameCount:!1,framesPerSecond:25,alwaysShowControls:!1,hideVideoControlsOnLoad:!1,hideVideoControlsOnPause:!1,clickToPlayPause:!0,controlsTimeoutDefault:1500,controlsTimeoutMouseEnter:2500,controlsTimeoutMouseLeave:1e3,iPadUseNativeControls:!1,iPhoneUseNativeControls:!1,AndroidUseNativeControls:!1,features:["playpause","current","progress","duration","tracks","volume","fullscreen"],useDefaultControls:!1,isVideo:!0,stretching:"auto",classPrefix:"mejs__",enableKeyboard:!0,pauseOtherPlayers:!0,secondsDecimalLength:0,customError:null,keyActions:[{keys:[32,179],action:function(e){w.IS_FIREFOX||(e.paused||e.ended?e.play():e.pause())}}]};f.default.MepDefaults=s;var l=function(){function r(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var n=this,o="string"==typeof e?x.default.getElementById(e):e;if(!(n instanceof r))return new r(o,t);if(n.node=n.media=o,n.node){if(n.media.player)return n.media.player;if(n.hasFocus=!1,n.controlsAreVisible=!0,n.controlsEnabled=!0,n.controlsTimer=null,n.currentMediaTime=0,n.proxy=null,void 0===t){var i=n.node.getAttribute("data-mejsoptions");t=i?JSON.parse(i):{}}return n.options=Object.assign({},s,t),n.options.loop&&!n.media.getAttribute("loop")?(n.media.loop=!0,n.node.loop=!0):n.media.loop&&(n.options.loop=!0),n.options.timeFormat||(n.options.timeFormat="mm:ss",n.options.alwaysShowHours&&(n.options.timeFormat="hh:mm:ss"),n.options.showTimecodeFrameCount&&(n.options.timeFormat+=":ff")),(0,c.calculateTimeFormat)(0,n.options,n.options.framesPerSecond||25),n.id="mep_"+f.default.mepIndex++,(f.default.players[n.id]=n).init(),n}}return o(r,[{key:"getElement",value:function(e){return e}},{key:"init",value:function(){var n=this,e=Object.assign({},n.options,{success:function(e,t){n._meReady(e,t)},error:function(e){n._handleError(e)}}),t=n.node.tagName.toLowerCase();if(n.isDynamic="audio"!==t&&"video"!==t&&"iframe"!==t,n.isVideo=n.isDynamic?n.options.isVideo:"audio"!==t&&n.options.isVideo,n.mediaFiles=null,n.trackFiles=null,w.IS_IPAD&&n.options.iPadUseNativeControls||w.IS_IPHONE&&n.options.iPhoneUseNativeControls)n.node.setAttribute("controls",!0),w.IS_IPAD&&n.node.getAttribute("autoplay")&&n.play();else if(!n.isVideo&&(n.isVideo||!n.options.features.length&&!n.options.useDefaultControls)||w.IS_ANDROID&&n.options.AndroidUseNativeControls)n.isVideo||n.options.features.length||n.options.useDefaultControls||(n.node.style.display="none");else{n.node.removeAttribute("controls");var o=n.isVideo?u.default.t("mejs.video-player"):u.default.t("mejs.audio-player"),i=x.default.createElement("span");if(i.className=n.options.classPrefix+"offscreen",i.innerText=o,n.media.parentNode.insertBefore(i,n.media),n.container=x.default.createElement("div"),n.getElement(n.container).id=n.id,n.getElement(n.container).className=n.options.classPrefix+"container "+n.options.classPrefix+"container-keyboard-inactive "+n.media.className,n.getElement(n.container).tabIndex=0,n.getElement(n.container).setAttribute("role","application"),n.getElement(n.container).setAttribute("aria-label",o),n.getElement(n.container).innerHTML='<div class="'+n.options.classPrefix+'inner"><div class="'+n.options.classPrefix+'mediaelement"></div><div class="'+n.options.classPrefix+'layers"></div><div class="'+n.options.classPrefix+'controls"></div></div>',n.getElement(n.container).addEventListener("focus",function(e){if(!n.controlsAreVisible&&!n.hasFocus&&n.controlsEnabled){n.showControls(!0);var t=(0,m.isNodeAfter)(e.relatedTarget,n.getElement(n.container))?"."+n.options.classPrefix+"controls ."+n.options.classPrefix+"button:last-child > button":"."+n.options.classPrefix+"playpause-button > button";n.getElement(n.container).querySelector(t).focus()}}),n.node.parentNode.insertBefore(n.getElement(n.container),n.node),n.options.features.length||n.options.useDefaultControls||(n.getElement(n.container).style.background="transparent",n.getElement(n.container).querySelector("."+n.options.classPrefix+"controls").style.display="none"),n.isVideo&&"fill"===n.options.stretching&&!P.hasClass(n.getElement(n.container).parentNode,n.options.classPrefix+"fill-container")){n.outerContainer=n.media.parentNode;var r=x.default.createElement("div");r.className=n.options.classPrefix+"fill-container",n.getElement(n.container).parentNode.insertBefore(r,n.getElement(n.container)),r.appendChild(n.getElement(n.container))}w.IS_ANDROID&&P.addClass(n.getElement(n.container),n.options.classPrefix+"android"),w.IS_IOS&&P.addClass(n.getElement(n.container),n.options.classPrefix+"ios"),w.IS_IPAD&&P.addClass(n.getElement(n.container),n.options.classPrefix+"ipad"),w.IS_IPHONE&&P.addClass(n.getElement(n.container),n.options.classPrefix+"iphone"),P.addClass(n.getElement(n.container),n.isVideo?n.options.classPrefix+"video":n.options.classPrefix+"audio"),n.getElement(n.container).querySelector("."+n.options.classPrefix+"mediaelement").appendChild(n.node),(n.media.player=n).controls=n.getElement(n.container).querySelector("."+n.options.classPrefix+"controls"),n.layers=n.getElement(n.container).querySelector("."+n.options.classPrefix+"layers");var a=n.isVideo?"video":"audio",s=a.substring(0,1).toUpperCase()+a.substring(1);0<n.options[a+"Width"]||-1<n.options[a+"Width"].toString().indexOf("%")?n.width=n.options[a+"Width"]:""!==n.node.style.width&&null!==n.node.style.width?n.width=n.node.style.width:n.node.getAttribute("width")?n.width=n.node.getAttribute("width"):n.width=n.options["default"+s+"Width"],0<n.options[a+"Height"]||-1<n.options[a+"Height"].toString().indexOf("%")?n.height=n.options[a+"Height"]:""!==n.node.style.height&&null!==n.node.style.height?n.height=n.node.style.height:n.node.getAttribute("height")?n.height=n.node.getAttribute("height"):n.height=n.options["default"+s+"Height"],n.initialAspectRatio=n.height>=n.width?n.width/n.height:n.height/n.width,n.setPlayerSize(n.width,n.height),e.pluginWidth=n.width,e.pluginHeight=n.height}if(f.default.MepDefaults=e,new d.default(n.media,e,n.mediaFiles),void 0!==n.getElement(n.container)&&n.options.features.length&&n.controlsAreVisible&&!n.options.hideVideoControlsOnLoad){var l=(0,m.createEvent)("controlsshown",n.getElement(n.container));n.getElement(n.container).dispatchEvent(l)}}},{key:"showControls",value:function(e){var i=this;if(e=void 0===e||e,!i.controlsAreVisible&&i.isVideo){if(e)!function(){P.fadeIn(i.getElement(i.controls),200,function(){P.removeClass(i.getElement(i.controls),i.options.classPrefix+"offscreen");var e=(0,m.createEvent)("controlsshown",i.getElement(i.container));i.getElement(i.container).dispatchEvent(e)});for(var n=i.getElement(i.container).querySelectorAll("."+i.options.classPrefix+"control"),e=function(e,t){P.fadeIn(n[e],200,function(){P.removeClass(n[e],i.options.classPrefix+"offscreen")})},t=0,o=n.length;t<o;t++)e(t)}();else{P.removeClass(i.getElement(i.controls),i.options.classPrefix+"offscreen"),i.getElement(i.controls).style.display="",i.getElement(i.controls).style.opacity=1;for(var t=i.getElement(i.container).querySelectorAll("."+i.options.classPrefix+"control"),n=0,o=t.length;n<o;n++)P.removeClass(t[n],i.options.classPrefix+"offscreen"),t[n].style.display="";var r=(0,m.createEvent)("controlsshown",i.getElement(i.container));i.getElement(i.container).dispatchEvent(r)}i.controlsAreVisible=!0,i.setControlsSize()}}},{key:"hideControls",value:function(e,t){var i=this;if(e=void 0===e||e,!0===t||!(!i.controlsAreVisible||i.options.alwaysShowControls||i.paused&&4===i.readyState&&(!i.options.hideVideoControlsOnLoad&&i.currentTime<=0||!i.options.hideVideoControlsOnPause&&0<i.currentTime)||i.isVideo&&!i.options.hideVideoControlsOnLoad&&!i.readyState||i.ended)){if(e)!function(){P.fadeOut(i.getElement(i.controls),200,function(){P.addClass(i.getElement(i.controls),i.options.classPrefix+"offscreen"),i.getElement(i.controls).style.display="";var e=(0,m.createEvent)("controlshidden",i.getElement(i.container));i.getElement(i.container).dispatchEvent(e)});for(var n=i.getElement(i.container).querySelectorAll("."+i.options.classPrefix+"control"),e=function(e,t){P.fadeOut(n[e],200,function(){P.addClass(n[e],i.options.classPrefix+"offscreen"),n[e].style.display=""})},t=0,o=n.length;t<o;t++)e(t)}();else{P.addClass(i.getElement(i.controls),i.options.classPrefix+"offscreen"),i.getElement(i.controls).style.display="",i.getElement(i.controls).style.opacity=0;for(var n=i.getElement(i.container).querySelectorAll("."+i.options.classPrefix+"control"),o=0,r=n.length;o<r;o++)P.addClass(n[o],i.options.classPrefix+"offscreen"),n[o].style.display="";var a=(0,m.createEvent)("controlshidden",i.getElement(i.container));i.getElement(i.container).dispatchEvent(a)}i.controlsAreVisible=!1}}},{key:"startControlsTimer",value:function(e){var t=this;e=void 0!==e?e:t.options.controlsTimeoutDefault,t.killControlsTimer("start"),t.controlsTimer=setTimeout(function(){t.hideControls(),t.killControlsTimer("hide")},e)}},{key:"killControlsTimer",value:function(){null!==this.controlsTimer&&(clearTimeout(this.controlsTimer),delete this.controlsTimer,this.controlsTimer=null)}},{key:"disableControls",value:function(){this.killControlsTimer(),this.controlsEnabled=!1,this.hideControls(!1,!0)}},{key:"enableControls",value:function(){this.controlsEnabled=!0,this.showControls(!1)}},{key:"_setDefaultPlayer",value:function(){var e=this;e.proxy&&e.proxy.pause(),e.proxy=new i.default(e),e.media.addEventListener("loadedmetadata",function(){0<e.getCurrentTime()&&0<e.currentMediaTime&&(e.setCurrentTime(e.currentMediaTime),w.IS_IOS||w.IS_ANDROID||e.play())})}},{key:"_meReady",value:function(e,t){var n=this,o=t.getAttribute("autoplay"),i=!(null==o||"false"===o),r=null!==e.rendererName&&/(native|html5)/i.test(e.rendererName);if(n.getElement(n.controls)&&n.enableControls(),n.getElement(n.container)&&n.getElement(n.container).querySelector("."+n.options.classPrefix+"overlay-play")&&(n.getElement(n.container).querySelector("."+n.options.classPrefix+"overlay-play").style.display=""),!n.created){if(n.created=!0,n.media=e,n.domNode=t,!(w.IS_ANDROID&&n.options.AndroidUseNativeControls||w.IS_IPAD&&n.options.iPadUseNativeControls||w.IS_IPHONE&&n.options.iPhoneUseNativeControls)){if(!n.isVideo&&!n.options.features.length&&!n.options.useDefaultControls)return i&&r&&n.play(),void(n.options.success&&("string"==typeof n.options.success?S.default[n.options.success](n.media,n.domNode,n):n.options.success(n.media,n.domNode,n)));if(n.featurePosition={},n._setDefaultPlayer(),n.buildposter(n,n.getElement(n.controls),n.getElement(n.layers),n.media),n.buildkeyboard(n,n.getElement(n.controls),n.getElement(n.layers),n.media),n.buildoverlays(n,n.getElement(n.controls),n.getElement(n.layers),n.media),n.options.useDefaultControls){var a=["playpause","current","progress","duration","tracks","volume","fullscreen"];n.options.features=a.concat(n.options.features.filter(function(e){return-1===a.indexOf(e)}))}n.buildfeatures(n,n.getElement(n.controls),n.getElement(n.layers),n.media);var s=(0,m.createEvent)("controlsready",n.getElement(n.container));n.getElement(n.container).dispatchEvent(s),n.setPlayerSize(n.width,n.height),n.setControlsSize(),n.isVideo&&(n.clickToPlayPauseCallback=function(){if(n.options.clickToPlayPause){var e=n.getElement(n.container).querySelector("."+n.options.classPrefix+"overlay-button"),t=e.getAttribute("aria-pressed");n.paused&&t?n.pause():n.paused?n.play():n.pause(),e.setAttribute("aria-pressed",!t),n.getElement(n.container).focus()}},n.createIframeLayer(),n.media.addEventListener("click",n.clickToPlayPauseCallback),!w.IS_ANDROID&&!w.IS_IOS||n.options.alwaysShowControls?(n.getElement(n.container).addEventListener("mouseenter",function(){n.controlsEnabled&&(n.options.alwaysShowControls||(n.killControlsTimer("enter"),n.showControls(),n.startControlsTimer(n.options.controlsTimeoutMouseEnter)))}),n.getElement(n.container).addEventListener("mousemove",function(){n.controlsEnabled&&(n.controlsAreVisible||n.showControls(),n.options.alwaysShowControls||n.startControlsTimer(n.options.controlsTimeoutMouseEnter))}),n.getElement(n.container).addEventListener("mouseleave",function(){n.controlsEnabled&&(n.paused||n.options.alwaysShowControls||n.startControlsTimer(n.options.controlsTimeoutMouseLeave))})):n.node.addEventListener("touchstart",function(){n.controlsAreVisible?n.hideControls(!1):n.controlsEnabled&&n.showControls(!1)},!!w.SUPPORT_PASSIVE_EVENT&&{passive:!0}),n.options.hideVideoControlsOnLoad&&n.hideControls(!1),n.options.enableAutosize&&n.media.addEventListener("loadedmetadata",function(e){var t=void 0!==e?e.detail.target||e.target:n.media;n.options.videoHeight<=0&&!n.domNode.getAttribute("height")&&!n.domNode.style.height&&null!==t&&!isNaN(t.videoHeight)&&(n.setPlayerSize(t.videoWidth,t.videoHeight),n.setControlsSize(),n.media.setSize(t.videoWidth,t.videoHeight))})),n.media.addEventListener("play",function(){for(var e in n.hasFocus=!0,f.default.players)if(f.default.players.hasOwnProperty(e)){var t=f.default.players[e];t.id===n.id||!n.options.pauseOtherPlayers||t.paused||t.ended||!0===t.options.ignorePauseOtherPlayersOption||(t.pause(),t.hasFocus=!1)}w.IS_ANDROID||w.IS_IOS||n.options.alwaysShowControls||!n.isVideo||n.hideControls()}),n.media.addEventListener("ended",function(){if(n.options.autoRewind)try{n.setCurrentTime(0),setTimeout(function(){var e=n.getElement(n.container).querySelector("."+n.options.classPrefix+"overlay-loading");e&&e.parentNode&&(e.parentNode.style.display="none")},20)}catch(e){}"function"==typeof n.media.renderer.stop?n.media.renderer.stop():n.pause(),n.setProgressRail&&n.setProgressRail(),n.setCurrentRail&&n.setCurrentRail(),n.options.loop?n.play():!n.options.alwaysShowControls&&n.controlsEnabled&&n.showControls()}),n.media.addEventListener("loadedmetadata",function(){(0,c.calculateTimeFormat)(n.getDuration(),n.options,n.options.framesPerSecond||25),n.updateDuration&&n.updateDuration(),n.updateCurrent&&n.updateCurrent(),n.isFullScreen||(n.setPlayerSize(n.width,n.height),n.setControlsSize())});var l=null;n.media.addEventListener("timeupdate",function(){isNaN(n.getDuration())||l===n.getDuration()||(l=n.getDuration(),(0,c.calculateTimeFormat)(l,n.options,n.options.framesPerSecond||25),n.updateDuration&&n.updateDuration(),n.updateCurrent&&n.updateCurrent(),n.setControlsSize())}),n.getElement(n.container).addEventListener("click",function(e){P.addClass(e.currentTarget,n.options.classPrefix+"container-keyboard-inactive")}),n.getElement(n.container).addEventListener("focusin",function(e){P.removeClass(e.currentTarget,n.options.classPrefix+"container-keyboard-inactive"),!n.isVideo||w.IS_ANDROID||w.IS_IOS||!n.controlsEnabled||n.options.alwaysShowControls||(n.killControlsTimer("enter"),n.showControls(),n.startControlsTimer(n.options.controlsTimeoutMouseEnter))}),n.getElement(n.container).addEventListener("focusout",function(e){setTimeout(function(){e.relatedTarget&&n.keyboardAction&&!e.relatedTarget.closest("."+n.options.classPrefix+"container")&&(n.keyboardAction=!1,!n.isVideo||n.options.alwaysShowControls||n.paused||n.startControlsTimer(n.options.controlsTimeoutMouseLeave))},0)}),setTimeout(function(){n.setPlayerSize(n.width,n.height),n.setControlsSize()},0),n.globalResizeCallback=function(){n.isFullScreen||w.HAS_TRUE_NATIVE_FULLSCREEN&&x.default.webkitIsFullScreen||n.setPlayerSize(n.width,n.height),n.setControlsSize()},n.globalBind("resize",n.globalResizeCallback)}i&&r&&n.play(),n.options.success&&("string"==typeof n.options.success?S.default[n.options.success](n.media,n.domNode,n):n.options.success(n.media,n.domNode,n))}}},{key:"_handleError",value:function(e,t,n){var o=this,i=o.getElement(o.layers).querySelector("."+o.options.classPrefix+"overlay-play");i&&(i.style.display="none"),o.options.error&&o.options.error(e,t,n),o.getElement(o.container).querySelector("."+o.options.classPrefix+"cannotplay")&&o.getElement(o.container).querySelector("."+o.options.classPrefix+"cannotplay").remove();var r=x.default.createElement("div");r.className=o.options.classPrefix+"cannotplay",r.style.width="100%",r.style.height="100%";var a="function"==typeof o.options.customError?o.options.customError(o.media,o.media.originalNode):o.options.customError,s="";if(!a){var l=o.media.originalNode.getAttribute("poster");if(l&&(s='<img src="'+l+'" alt="'+f.default.i18n.t("mejs.download-file")+'">'),e.message&&(a="<p>"+e.message+"</p>"),e.urls)for(var d=0,u=e.urls.length;d<u;d++){var c=e.urls[d];a+='<a href="'+c.src+'" data-type="'+c.type+'"><span>'+f.default.i18n.t("mejs.download-file")+": "+c.src+"</span></a>"}}a&&o.getElement(o.layers).querySelector("."+o.options.classPrefix+"overlay-error")&&(r.innerHTML=a,o.getElement(o.layers).querySelector("."+o.options.classPrefix+"overlay-error").innerHTML=""+s+r.outerHTML,o.getElement(o.layers).querySelector("."+o.options.classPrefix+"overlay-error").parentNode.style.display="block"),o.controlsEnabled&&o.disableControls()}},{key:"setPlayerSize",value:function(e,t){var n=this;if(!n.options.setDimensions)return!1;switch(void 0!==e&&(n.width=e),void 0!==t&&(n.height=t),n.options.stretching){case"fill":n.isVideo?n.setFillMode():n.setDimensions(n.width,n.height);break;case"responsive":n.setResponsiveMode();break;case"none":n.setDimensions(n.width,n.height);break;default:!0===n.hasFluidMode()?n.setResponsiveMode():n.setDimensions(n.width,n.height)}}},{key:"hasFluidMode",value:function(){var e=this;return-1!==e.height.toString().indexOf("%")||e.node&&e.node.style.maxWidth&&"none"!==e.node.style.maxWidth&&e.node.style.maxWidth!==e.width||e.node&&e.node.currentStyle&&"100%"===e.node.currentStyle.maxWidth}},{key:"setResponsiveMode",value:function(){var o=this,e=function(){for(var t=void 0,n=o.getElement(o.container);n;){try{if(w.IS_FIREFOX&&"html"===n.tagName.toLowerCase()&&S.default.self!==S.default.top&&null!==S.default.frameElement)return S.default.frameElement;t=n.parentElement}catch(e){t=n.parentElement}if(t&&P.visible(t))return t;n=t}return null}(),t=e?getComputedStyle(e,null):getComputedStyle(x.default.body,null),n=o.isVideo?o.node.videoWidth&&0<o.node.videoWidth?o.node.videoWidth:o.node.getAttribute("width")?o.node.getAttribute("width"):o.options.defaultVideoWidth:o.options.defaultAudioWidth,i=o.isVideo?o.node.videoHeight&&0<o.node.videoHeight?o.node.videoHeight:o.node.getAttribute("height")?o.node.getAttribute("height"):o.options.defaultVideoHeight:o.options.defaultAudioHeight,r=function(){if(!o.options.enableAutosize)return o.initialAspectRatio;var e=1;return o.isVideo&&(e=o.node.videoWidth&&0<o.node.videoWidth&&o.node.videoHeight&&0<o.node.videoHeight?o.height>=o.width?o.node.videoWidth/o.node.videoHeight:o.node.videoHeight/o.node.videoWidth:o.initialAspectRatio,(isNaN(e)||e<.01||100<e)&&(e=1)),e}(),a=parseFloat(t.height),s=void 0,l=parseFloat(t.width);if(s=o.isVideo?"100%"===o.height?parseFloat(l*i/n,10):o.height>=o.width?parseFloat(l/r,10):parseFloat(l*r,10):i,isNaN(s)&&(s=a),0<o.getElement(o.container).parentNode.length&&"body"===o.getElement(o.container).parentNode.tagName.toLowerCase()&&(l=S.default.innerWidth||x.default.documentElement.clientWidth||x.default.body.clientWidth,s=S.default.innerHeight||x.default.documentElement.clientHeight||x.default.body.clientHeight),s&&l){o.getElement(o.container).style.width=l+"px",o.getElement(o.container).style.height=s+"px",o.node.style.width="100%",o.node.style.height="100%",o.isVideo&&o.media.setSize&&o.media.setSize(l,s);for(var d=o.getElement(o.layers).children,u=0,c=d.length;u<c;u++)d[u].style.width="100%",d[u].style.height="100%"}}},{key:"setFillMode",value:function(){var e=this,t=S.default.self!==S.default.top&&null!==S.default.frameElement,n=function(){for(var t=void 0,n=e.getElement(e.container);n;){try{if(w.IS_FIREFOX&&"html"===n.tagName.toLowerCase()&&S.default.self!==S.default.top&&null!==S.default.frameElement)return S.default.frameElement;t=n.parentElement}catch(e){t=n.parentElement}if(t&&P.visible(t))return t;n=t}return null}(),o=n?getComputedStyle(n,null):getComputedStyle(x.default.body,null);"none"!==e.node.style.height&&e.node.style.height!==e.height&&(e.node.style.height="auto"),"none"!==e.node.style.maxWidth&&e.node.style.maxWidth!==e.width&&(e.node.style.maxWidth="none"),"none"!==e.node.style.maxHeight&&e.node.style.maxHeight!==e.height&&(e.node.style.maxHeight="none"),e.node.currentStyle&&("100%"===e.node.currentStyle.height&&(e.node.currentStyle.height="auto"),"100%"===e.node.currentStyle.maxWidth&&(e.node.currentStyle.maxWidth="none"),"100%"===e.node.currentStyle.maxHeight&&(e.node.currentStyle.maxHeight="none")),t||parseFloat(o.width)||(n.style.width=e.media.offsetWidth+"px"),t||parseFloat(o.height)||(n.style.height=e.media.offsetHeight+"px"),o=getComputedStyle(n);var i=parseFloat(o.width),r=parseFloat(o.height);e.setDimensions("100%","100%");var a=e.getElement(e.container).querySelector("."+e.options.classPrefix+"poster>img");a&&(a.style.display="");for(var s=e.getElement(e.container).querySelectorAll("object, embed, iframe, video"),l=e.height,d=e.width,u=i,c=l*i/d,f=d*r/l,p=r,m=i<f==!1,h=m?Math.floor(u):Math.floor(f),v=m?Math.floor(c):Math.floor(p),g=m?i+"px":h+"px",y=m?v+"px":r+"px",E=0,b=s.length;E<b;E++)s[E].style.height=y,s[E].style.width=g,e.media.setSize&&e.media.setSize(g,y),s[E].style.marginLeft=Math.floor((i-h)/2)+"px",s[E].style.marginTop=0}},{key:"setDimensions",value:function(e,t){var n=this;e=(0,m.isString)(e)&&-1<e.indexOf("%")?e:parseFloat(e)+"px",t=(0,m.isString)(t)&&-1<t.indexOf("%")?t:parseFloat(t)+"px",n.getElement(n.container).style.width=e,n.getElement(n.container).style.height=t;for(var o=n.getElement(n.layers).children,i=0,r=o.length;i<r;i++)o[i].style.width=e,o[i].style.height=t}},{key:"setControlsSize",value:function(){var t=this;if(P.visible(t.getElement(t.container)))if(t.rail&&P.visible(t.rail)){for(var e=t.total?getComputedStyle(t.total,null):null,n=e?parseFloat(e.marginLeft)+parseFloat(e.marginRight):0,o=getComputedStyle(t.rail),i=parseFloat(o.marginLeft)+parseFloat(o.marginRight),r=0,a=P.siblings(t.rail,function(e){return e!==t.rail}),s=a.length,l=0;l<s;l++)r+=a[l].offsetWidth;r+=n+(0===n?2*i:i)+1,t.getElement(t.container).style.minWidth=r+"px";var d=(0,m.createEvent)("controlsresize",t.getElement(t.container));t.getElement(t.container).dispatchEvent(d)}else{for(var u=t.getElement(t.controls).children,c=0,f=0,p=u.length;f<p;f++)c+=u[f].offsetWidth;t.getElement(t.container).style.minWidth=c+"px"}}},{key:"addControlElement",value:function(e,t){var n=this;if(void 0!==n.featurePosition[t]){var o=n.getElement(n.controls).children[n.featurePosition[t]-1];o.parentNode.insertBefore(e,o.nextSibling)}else{n.getElement(n.controls).appendChild(e);for(var i=n.getElement(n.controls).children,r=0,a=i.length;r<a;r++)if(e===i[r]){n.featurePosition[t]=r;break}}}},{key:"createIframeLayer",value:function(){var t=this;if(t.isVideo&&null!==t.media.rendererName&&-1<t.media.rendererName.indexOf("iframe")&&!x.default.getElementById(t.media.id+"-iframe-overlay")){var e=x.default.createElement("div"),n=x.default.getElementById(t.media.id+"_"+t.media.rendererName);e.id=t.media.id+"-iframe-overlay",e.className=t.options.classPrefix+"iframe-overlay",e.addEventListener("click",function(e){t.options.clickToPlayPause&&(t.paused?t.play():t.pause(),e.preventDefault(),e.stopPropagation())}),n.parentNode.insertBefore(e,n)}}},{key:"resetSize",value:function(){var e=this;setTimeout(function(){e.setPlayerSize(e.width,e.height),e.setControlsSize()},50)}},{key:"setPoster",value:function(e){var t=this;if(t.getElement(t.container)){var n=t.getElement(t.container).querySelector("."+t.options.classPrefix+"poster");n||((n=x.default.createElement("div")).className=t.options.classPrefix+"poster "+t.options.classPrefix+"layer",t.getElement(t.layers).appendChild(n));var o=n.querySelector("img");!o&&e&&((o=x.default.createElement("img")).className=t.options.classPrefix+"poster-img",o.width="100%",o.height="100%",n.style.display="",n.appendChild(o)),e?(o.setAttribute("src",e),n.style.backgroundImage='url("'+e+'")',n.style.display=""):o?(n.style.backgroundImage="none",n.style.display="none",o.remove()):n.style.display="none"}else(w.IS_IPAD&&t.options.iPadUseNativeControls||w.IS_IPHONE&&t.options.iPhoneUseNativeControls||w.IS_ANDROID&&t.options.AndroidUseNativeControls)&&(t.media.originalNode.poster=e)}},{key:"changeSkin",value:function(e){var t=this;t.getElement(t.container).className=t.options.classPrefix+"container "+e,t.setPlayerSize(t.width,t.height),t.setControlsSize()}},{key:"globalBind",value:function(e,n){var o=this.node?this.node.ownerDocument:x.default;if((e=(0,m.splitEvents)(e,this.id)).d)for(var t=e.d.split(" "),i=0,r=t.length;i<r;i++)t[i].split(".").reduce(function(e,t){return o.addEventListener(t,n,!1),t},"");if(e.w)for(var a=e.w.split(" "),s=0,l=a.length;s<l;s++)a[s].split(".").reduce(function(e,t){return S.default.addEventListener(t,n,!1),t},"")}},{key:"globalUnbind",value:function(e,n){var o=this.node?this.node.ownerDocument:x.default;if((e=(0,m.splitEvents)(e,this.id)).d)for(var t=e.d.split(" "),i=0,r=t.length;i<r;i++)t[i].split(".").reduce(function(e,t){return o.removeEventListener(t,n,!1),t},"");if(e.w)for(var a=e.w.split(" "),s=0,l=a.length;s<l;s++)a[s].split(".").reduce(function(e,t){return S.default.removeEventListener(t,n,!1),t},"")}},{key:"buildfeatures",value:function(e,t,n,o){for(var i=0,r=this.options.features.length;i<r;i++){var a=this.options.features[i];if(this["build"+a])try{this["build"+a](e,t,n,o)}catch(e){console.error("error building "+a,e)}}}},{key:"buildposter",value:function(e,t,n,o){var i=this,r=x.default.createElement("div");r.className=i.options.classPrefix+"poster "+i.options.classPrefix+"layer",n.appendChild(r);var a=o.originalNode.getAttribute("poster");""!==e.options.poster&&(a&&w.IS_IOS&&o.originalNode.removeAttribute("poster"),a=e.options.poster),a?i.setPoster(a):null!==i.media.renderer&&"function"==typeof i.media.renderer.getPosterUrl?i.setPoster(i.media.renderer.getPosterUrl()):r.style.display="none",o.addEventListener("play",function(){r.style.display="none"}),o.addEventListener("playing",function(){r.style.display="none"}),e.options.showPosterWhenEnded&&e.options.autoRewind&&o.addEventListener("ended",function(){r.style.display=""}),o.addEventListener("error",function(){r.style.display="none"}),e.options.showPosterWhenPaused&&o.addEventListener("pause",function(){e.ended||(r.style.display="")})}},{key:"buildoverlays",value:function(t,e,n,o){if(t.isVideo){var i=this,r=x.default.createElement("div"),a=x.default.createElement("div"),s=x.default.createElement("div");r.style.display="none",r.className=i.options.classPrefix+"overlay "+i.options.classPrefix+"layer",r.innerHTML='<div class="'+i.options.classPrefix+'overlay-loading"><span class="'+i.options.classPrefix+'overlay-loading-bg-img"></span></div>',n.appendChild(r),a.style.display="none",a.className=i.options.classPrefix+"overlay "+i.options.classPrefix+"layer",a.innerHTML='<div class="'+i.options.classPrefix+'overlay-error"></div>',n.appendChild(a),s.className=i.options.classPrefix+"overlay "+i.options.classPrefix+"layer "+i.options.classPrefix+"overlay-play",s.innerHTML='<div class="'+i.options.classPrefix+'overlay-button" role="button" tabindex="0" aria-label="'+u.default.t("mejs.play")+'" aria-pressed="false"></div>',s.addEventListener("click",function(){if(i.options.clickToPlayPause){var e=i.getElement(i.container).querySelector("."+i.options.classPrefix+"overlay-button"),t=e.getAttribute("aria-pressed");i.paused?i.play():i.pause(),e.setAttribute("aria-pressed",!!t),i.getElement(i.container).focus()}}),s.addEventListener("keydown",function(e){var t=e.keyCode||e.which||0;if(13===t||w.IS_FIREFOX&&32===t){var n=(0,m.createEvent)("click",s);return s.dispatchEvent(n),!1}}),n.appendChild(s),null!==i.media.rendererName&&(/(youtube|facebook)/i.test(i.media.rendererName)&&!(i.media.originalNode.getAttribute("poster")||t.options.poster||"function"==typeof i.media.renderer.getPosterUrl&&i.media.renderer.getPosterUrl())||w.IS_STOCK_ANDROID||i.media.originalNode.getAttribute("autoplay"))&&(s.style.display="none");var l=!1;o.addEventListener("play",function(){s.style.display="none",r.style.display="none",a.style.display="none",l=!1}),o.addEventListener("playing",function(){s.style.display="none",r.style.display="none",a.style.display="none",l=!1}),o.addEventListener("seeking",function(){s.style.display="none",r.style.display="",l=!1}),o.addEventListener("seeked",function(){s.style.display=i.paused&&!w.IS_STOCK_ANDROID?"":"none",r.style.display="none",l=!1}),o.addEventListener("pause",function(){r.style.display="none",w.IS_STOCK_ANDROID||l||(s.style.display=""),l=!1}),o.addEventListener("waiting",function(){r.style.display="",l=!1}),o.addEventListener("loadeddata",function(){r.style.display="",w.IS_ANDROID&&(o.canplayTimeout=setTimeout(function(){if(x.default.createEvent){var e=x.default.createEvent("HTMLEvents");return e.initEvent("canplay",!0,!0),o.dispatchEvent(e)}},300)),l=!1}),o.addEventListener("canplay",function(){r.style.display="none",clearTimeout(o.canplayTimeout),l=!1}),o.addEventListener("error",function(e){i._handleError(e,i.media,i.node),r.style.display="none",s.style.display="none",l=!0}),o.addEventListener("loadedmetadata",function(){i.controlsEnabled||i.enableControls()}),o.addEventListener("keydown",function(e){i.onkeydown(t,o,e),l=!1})}}},{key:"buildkeyboard",value:function(o,e,t,i){var r=this;r.getElement(r.container).addEventListener("keydown",function(){r.keyboardAction=!0}),r.globalKeydownCallback=function(e){var t=x.default.activeElement.closest("."+r.options.classPrefix+"container"),n=r.media.closest("."+r.options.classPrefix+"container");return r.hasFocus=!(!t||!n||t.id!==n.id),r.onkeydown(o,i,e)},r.globalClickCallback=function(e){r.hasFocus=!!e.target.closest("."+r.options.classPrefix+"container")},r.globalBind("keydown",r.globalKeydownCallback),r.globalBind("click",r.globalClickCallback)}},{key:"onkeydown",value:function(e,t,n){if(e.hasFocus&&e.options.enableKeyboard)for(var o=0,i=e.options.keyActions.length;o<i;o++)for(var r=e.options.keyActions[o],a=0,s=r.keys.length;a<s;a++)if(n.keyCode===r.keys[a])return r.action(e,t,n.keyCode,n),n.preventDefault(),void n.stopPropagation();return!0}},{key:"play",value:function(){this.proxy.play()}},{key:"pause",value:function(){this.proxy.pause()}},{key:"load",value:function(){this.proxy.load()}},{key:"setCurrentTime",value:function(e){this.proxy.setCurrentTime(e)}},{key:"getCurrentTime",value:function(){return this.proxy.currentTime}},{key:"getDuration",value:function(){return this.proxy.duration}},{key:"setVolume",value:function(e){this.proxy.volume=e}},{key:"getVolume",value:function(){return this.proxy.getVolume()}},{key:"setMuted",value:function(e){this.proxy.setMuted(e)}},{key:"setSrc",value:function(e){this.controlsEnabled||this.enableControls(),this.proxy.setSrc(e)}},{key:"getSrc",value:function(){return this.proxy.getSrc()}},{key:"canPlayType",value:function(e){return this.proxy.canPlayType(e)}},{key:"remove",value:function(){var l=this,d=l.media.rendererName,u=l.media.originalNode.src;for(var e in l.options.features){var t=l.options.features[e];if(l["clean"+t])try{l["clean"+t](l,l.getElement(l.layers),l.getElement(l.controls),l.media)}catch(e){console.error("error cleaning "+t,e)}}var n=l.node.getAttribute("width"),o=l.node.getAttribute("height");if(n?-1===n.indexOf("%")&&(n+="px"):n="auto",o?-1===o.indexOf("%")&&(o+="px"):o="auto",l.node.style.width=n,l.node.style.height=o,l.setPlayerSize(0,0),l.isDynamic?l.getElement(l.container).parentNode.insertBefore(l.node,l.getElement(l.container)):function(){l.node.setAttribute("controls",!0),l.node.setAttribute("id",l.node.getAttribute("id").replace("_"+d,"").replace("_from_mejs",""));var e=l.getElement(l.container).querySelector("."+l.options.classPrefix+"poster>img");(e&&l.node.setAttribute("poster",e.src),delete l.node.autoplay,l.node.setAttribute("src",""),""!==l.media.canPlayType((0,p.getTypeFromFile)(u))&&l.node.setAttribute("src",u),d&&-1<d.indexOf("iframe"))&&x.default.getElementById(l.media.id+"-iframe-overlay").remove();var i=l.node.cloneNode();if(i.style.display="",l.getElement(l.container).parentNode.insertBefore(i,l.getElement(l.container)),l.node.remove(),l.mediaFiles)for(var t=0,n=l.mediaFiles.length;t<n;t++){var o=x.default.createElement("source");o.setAttribute("src",l.mediaFiles[t].src),o.setAttribute("type",l.mediaFiles[t].type),i.appendChild(o)}if(l.trackFiles)for(var r=function(e,t){var n=l.trackFiles[e],o=x.default.createElement("track");o.kind=n.kind,o.label=n.label,o.srclang=n.srclang,o.src=n.src,i.appendChild(o),o.addEventListener("load",function(){this.mode="showing",i.textTracks[e].mode="showing"})},a=0,s=l.trackFiles.length;a<s;a++)r(a);delete l.node,delete l.mediaFiles,delete l.trackFiles}(),l.media.renderer&&"function"==typeof l.media.renderer.destroy&&l.media.renderer.destroy(),delete f.default.players[l.id],"object"===a(l.getElement(l.container))){var i=l.getElement(l.container).parentNode.querySelector("."+l.options.classPrefix+"offscreen");i&&i.remove(),l.getElement(l.container).remove()}l.globalUnbind("resize",l.globalResizeCallback),l.globalUnbind("keydown",l.globalKeydownCallback),l.globalUnbind("click",l.globalClickCallback),delete l.media.player}},{key:"paused",get:function(){return this.proxy.paused}},{key:"muted",get:function(){return this.proxy.muted},set:function(e){this.setMuted(e)}},{key:"ended",get:function(){return this.proxy.ended}},{key:"readyState",get:function(){return this.proxy.readyState}},{key:"currentTime",set:function(e){this.setCurrentTime(e)},get:function(){return this.getCurrentTime()}},{key:"duration",get:function(){return this.getDuration()}},{key:"volume",set:function(e){this.setVolume(e)},get:function(){return this.getVolume()}},{key:"src",set:function(e){this.setSrc(e)},get:function(){return this.getSrc()}}]),r}();S.default.MediaElementPlayer=l,f.default.MediaElementPlayer=l,n.default=l},{17:17,2:2,25:25,26:26,27:27,28:28,3:3,30:30,5:5,6:6,7:7}],17:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,i=function(){function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}}(),r=e(3),a=(o=r)&&o.__esModule?o:{default:o};var s=function(){function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.media=t.media,this.isVideo=t.isVideo,this.classPrefix=t.options.classPrefix,this.createIframeLayer=function(){return t.createIframeLayer()},this.setPoster=function(e){return t.setPoster(e)},this}return i(e,[{key:"play",value:function(){this.media.play()}},{key:"pause",value:function(){this.media.pause()}},{key:"load",value:function(){this.isLoaded||this.media.load(),this.isLoaded=!0}},{key:"setCurrentTime",value:function(e){this.media.setCurrentTime(e)}},{key:"getCurrentTime",value:function(){return this.media.currentTime}},{key:"getDuration",value:function(){var e=this.media.getDuration();return e===1/0&&this.media.seekable&&this.media.seekable.length&&(e=this.media.seekable.end(0)),e}},{key:"setVolume",value:function(e){this.media.setVolume(e)}},{key:"getVolume",value:function(){return this.media.getVolume()}},{key:"setMuted",value:function(e){this.media.setMuted(e)}},{key:"setSrc",value:function(e){var t=this,n=document.getElementById(t.media.id+"-iframe-overlay");n&&n.remove(),t.media.setSrc(e),t.createIframeLayer(),null!==t.media.renderer&&"function"==typeof t.media.renderer.getPosterUrl&&t.setPoster(t.media.renderer.getPosterUrl())}},{key:"getSrc",value:function(){return this.media.getSrc()}},{key:"canPlayType",value:function(e){return this.media.canPlayType(e)}},{key:"paused",get:function(){return this.media.paused}},{key:"muted",set:function(e){this.setMuted(e)},get:function(){return this.media.muted}},{key:"ended",get:function(){return this.media.ended}},{key:"readyState",get:function(){return this.media.readyState}},{key:"currentTime",set:function(e){this.setCurrentTime(e)},get:function(){return this.getCurrentTime()}},{key:"duration",get:function(){return this.getDuration()}},{key:"remainingTime",get:function(){return this.getDuration()-this.currentTime()}},{key:"volume",set:function(e){this.setVolume(e)},get:function(){return this.getVolume()}},{key:"src",set:function(e){this.setSrc(e)},get:function(){return this.getSrc()}}]),e}();n.default=s,a.default.DefaultPlayer=s},{3:3}],18:[function(e,t,n){"use strict";a(e(3));var o,i=a(e(7)),r=a(e(16));function a(e){return e&&e.__esModule?e:{default:e}}"undefined"!=typeof jQuery?i.default.$=jQuery:"undefined"!=typeof Zepto?i.default.$=Zepto:"undefined"!=typeof ender&&(i.default.$=ender),void 0!==(o=i.default.$)&&(o.fn.mediaelementplayer=function(e){return!1===e?this.each(function(){var e=o(this).data("mediaelementplayer");e&&e.remove(),o(this).removeData("mediaelementplayer")}):this.each(function(){o(this).data("mediaelementplayer",new r.default(this,e))}),this},o(document).ready(function(){o("."+i.default.MepDefaults.classPrefix+"player").mediaelementplayer()}))},{16:16,3:3,7:7}],19:[function(e,t,n){"use strict";var b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S=a(e(3)),x=a(e(7)),w=e(8),P=e(27),o=e(28),i=e(25),r=e(26);function a(e){return e&&e.__esModule?e:{default:e}}var T={promise:null,load:function(e){return"undefined"!=typeof dashjs?T.promise=new Promise(function(e){e()}).then(function(){T._createPlayer(e)}):(e.options.path="string"==typeof e.options.path?e.options.path:"https://cdn.dashjs.org/latest/dash.all.min.js",T.promise=T.promise||(0,r.loadScript)(e.options.path),T.promise.then(function(){T._createPlayer(e)})),T.promise},_createPlayer:function(e){var t=dashjs.MediaPlayer().create();return S.default["__ready__"+e.id](t),t}},s={name:"native_dash",options:{prefix:"native_dash",dash:{path:"https://cdn.dashjs.org/latest/dash.all.min.js",debug:!1,drm:{},robustnessLevel:""}},canPlayType:function(e){return i.HAS_MSE&&-1<["application/dash+xml"].indexOf(e.toLowerCase())},create:function(s,l,e){var t=s.originalNode,r=s.id+"_"+l.prefix,a=t.autoplay,n=t.children,d=null,u=null;t.removeAttribute("type");for(var o=0,i=n.length;o<i;o++)n[o].removeAttribute("type");d=t.cloneNode(!0),l=Object.assign(l,s.options);for(var c=x.default.html5media.properties,f=x.default.html5media.events.concat(["click","mouseover","mouseout"]).filter(function(e){return"error"!==e}),p=function(e){var t=(0,P.createEvent)(e.type,s);s.dispatchEvent(t)},m=function(i){var e=""+i.substring(0,1).toUpperCase()+i.substring(1);d["get"+e]=function(){return null!==u?d[i]:null},d["set"+e]=function(e){if(-1===x.default.html5media.readOnlyProperties.indexOf(i))if("src"===i){var t="object"===(void 0===e?"undefined":b(e))&&e.src?e.src:e;if(d[i]=t,null!==u){u.reset();for(var n=0,o=f.length;n<o;n++)d.removeEventListener(f[n],p);u=T._createPlayer({options:l.dash,id:r}),e&&"object"===(void 0===e?"undefined":b(e))&&"object"===b(e.drm)&&(u.setProtectionData(e.drm),(0,P.isString)(l.dash.robustnessLevel)&&l.dash.robustnessLevel&&u.getProtectionController().setRobustnessLevel(l.dash.robustnessLevel)),u.attachSource(t),a&&u.play()}}else d[i]=e}},h=0,v=c.length;h<v;h++)m(c[h]);if(S.default["__ready__"+r]=function(e){s.dashPlayer=u=e;for(var t,n=dashjs.MediaPlayer.events,o=0,i=f.length;o<i;o++)"loadedmetadata"===(t=f[o])&&(u.initialize(),u.attachView(d),u.setAutoPlay(!1),"object"!==b(l.dash.drm)||x.default.Utils.isObjectEmpty(l.dash.drm)||(u.setProtectionData(l.dash.drm),(0,P.isString)(l.dash.robustnessLevel)&&l.dash.robustnessLevel&&u.getProtectionController().setRobustnessLevel(l.dash.robustnessLevel)),u.attachSource(d.getSrc())),d.addEventListener(t,p);var r=function(e){if("error"===e.type.toLowerCase())s.generateError(e.message,d.src),console.error(e);else{var t=(0,P.createEvent)(e.type,s);t.data=e,s.dispatchEvent(t)}};for(var a in n)n.hasOwnProperty(a)&&u.on(n[a],function(e){return r(e)})},e&&0<e.length)for(var g=0,y=e.length;g<y;g++)if(w.renderer.renderers[l.prefix].canPlayType(e[g].type)){d.setAttribute("src",e[g].src),void 0!==e[g].drm&&(l.dash.drm=e[g].drm);break}d.setAttribute("id",r),t.parentNode.insertBefore(d,t),t.autoplay=!1,t.style.display="none",d.setSize=function(e,t){return d.style.width=e+"px",d.style.height=t+"px",d},d.hide=function(){return d.pause(),d.style.display="none",d},d.show=function(){return d.style.display="",d},d.destroy=function(){null!==u&&u.reset()};var E=(0,P.createEvent)("rendererready",d);return s.dispatchEvent(E),s.promises.push(T.load({options:l.dash,id:r})),d}};o.typeChecks.push(function(e){return~e.toLowerCase().indexOf(".mpd")?"application/dash+xml":null}),w.renderer.add(s)},{25:25,26:26,27:27,28:28,3:3,7:7,8:8}],20:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PluginDetector=void 0;var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C=o(e(3)),k=o(e(2)),_=o(e(7)),N=o(e(5)),A=e(8),L=e(27),F=e(25),j=e(28);function o(e){return e&&e.__esModule?e:{default:e}}var r=n.PluginDetector={plugins:[],hasPluginVersion:function(e,t){var n=r.plugins[e];return t[1]=t[1]||0,t[2]=t[2]||0,n[0]>t[0]||n[0]===t[0]&&n[1]>t[1]||n[0]===t[0]&&n[1]===t[1]&&n[2]>=t[2]},addPlugin:function(e,t,n,o,i){r.plugins[e]=r.detectPlugin(t,n,o,i)},detectPlugin:function(e,t,n,o){var i=[0,0,0],r=void 0,a=void 0;if(null!==F.NAV.plugins&&void 0!==F.NAV.plugins&&"object"===d(F.NAV.plugins[e])){if((r=F.NAV.plugins[e].description)&&(void 0===F.NAV.mimeTypes||!F.NAV.mimeTypes[t]||F.NAV.mimeTypes[t].enabledPlugin))for(var s=0,l=(i=r.replace(e,"").replace(/^\s+/,"").replace(/\sr/gi,".").split(".")).length;s<l;s++)i[s]=parseInt(i[s].match(/\d+/),10)}else if(void 0!==C.default.ActiveXObject)try{(a=new ActiveXObject(n))&&(i=o(a))}catch(e){}return i}};r.addPlugin("flash","Shockwave Flash","application/x-shockwave-flash","ShockwaveFlash.ShockwaveFlash",function(e){var t=[],n=e.GetVariable("$version");return n&&(n=n.split(" ")[1].split(","),t=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]),t});var i={create:function(e,t,n){var r={},o=!1;r.options=t,r.id=e.id+"_"+r.options.prefix,r.mediaElement=e,r.flashState={},r.flashApi=null,r.flashApiStack=[];for(var i=_.default.html5media.properties,a=function(t){r.flashState[t]=null;var e=""+t.substring(0,1).toUpperCase()+t.substring(1);r["get"+e]=function(){if(null!==r.flashApi){if("function"==typeof r.flashApi["get_"+t]){var e=r.flashApi["get_"+t]();return"buffered"===t?{start:function(){return 0},end:function(){return e},length:1}:e}return null}return null},r["set"+e]=function(e){if("src"===t&&(e=(0,j.absolutizeUrl)(e)),null!==r.flashApi&&void 0!==r.flashApi["set_"+t])try{r.flashApi["set_"+t](e)}catch(e){}else r.flashApiStack.push({type:"set",propName:t,value:e})}},s=0,l=i.length;s<l;s++)a(i[s]);var d=_.default.html5media.methods,u=function(e){r[e]=function(){if(o)if(null!==r.flashApi){if(r.flashApi["fire_"+e])try{r.flashApi["fire_"+e]()}catch(e){}}else r.flashApiStack.push({type:"call",methodName:e})}};d.push("stop");for(var c=0,f=d.length;c<f;c++)u(d[c]);for(var p=["rendererready"],m=0,h=p.length;m<h;m++){var v=(0,L.createEvent)(p[m],r);e.dispatchEvent(v)}C.default["__ready__"+r.id]=function(){if(r.flashReady=!0,r.flashApi=k.default.getElementById("__"+r.id),r.flashApiStack.length)for(var e=0,t=r.flashApiStack.length;e<t;e++){var n=r.flashApiStack[e];if("set"===n.type){var o=n.propName,i=""+o.substring(0,1).toUpperCase()+o.substring(1);r["set"+i](n.value)}else"call"===n.type&&r[n.methodName]()}},C.default["__event__"+r.id]=function(e,t){var n=(0,L.createEvent)(e,r);if(t)try{n.data=JSON.parse(t),n.details.data=JSON.parse(t)}catch(e){n.message=t}r.mediaElement.dispatchEvent(n)},r.flashWrapper=k.default.createElement("div"),-1===["always","sameDomain"].indexOf(r.options.shimScriptAccess)&&(r.options.shimScriptAccess="sameDomain");var g=e.originalNode.autoplay,y=["uid="+r.id,"autoplay="+g,"allowScriptAccess="+r.options.shimScriptAccess,"preload="+(e.originalNode.getAttribute("preload")||"")],E=null!==e.originalNode&&"video"===e.originalNode.tagName.toLowerCase(),b=E?e.originalNode.height:1,S=E?e.originalNode.width:1;e.originalNode.getAttribute("src")&&y.push("src="+e.originalNode.getAttribute("src")),!0===r.options.enablePseudoStreaming&&(y.push("pseudostreamstart="+r.options.pseudoStreamingStartQueryParam),y.push("pseudostreamtype="+r.options.pseudoStreamingType)),r.options.streamDelimiter&&y.push("streamdelimiter="+encodeURIComponent(r.options.streamDelimiter)),r.options.proxyType&&y.push("proxytype="+r.options.proxyType),e.appendChild(r.flashWrapper),e.originalNode.style.display="none";var x=[];if(F.IS_IE||F.IS_EDGE){var w=k.default.createElement("div");r.flashWrapper.appendChild(w),x=F.IS_EDGE?['type="application/x-shockwave-flash"','data="'+r.options.pluginPath+r.options.filename+'"','id="__'+r.id+'"','width="'+S+'"','height="'+b+"'\""]:['classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"','codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"','id="__'+r.id+'"','width="'+S+'"','height="'+b+'"'],E||x.push('style="clip: rect(0 0 0 0); position: absolute;"'),w.outerHTML="<object "+x.join(" ")+'><param name="movie" value="'+r.options.pluginPath+r.options.filename+"?x="+new Date+'" /><param name="flashvars" value="'+y.join("&amp;")+'" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="'+r.options.shimScriptAccess+'" /><param name="allowFullScreen" value="true" /><div>'+N.default.t("mejs.install-flash")+"</div></object>"}else x=['id="__'+r.id+'"','name="__'+r.id+'"','play="true"','loop="false"','quality="high"','bgcolor="#000000"','wmode="transparent"','allowScriptAccess="'+r.options.shimScriptAccess+'"','allowFullScreen="true"','type="application/x-shockwave-flash"','pluginspage="//www.macromedia.com/go/getflashplayer"','src="'+r.options.pluginPath+r.options.filename+'"','flashvars="'+y.join("&")+'"'],E?(x.push('width="'+S+'"'),x.push('height="'+b+'"')):x.push('style="position: fixed; left: -9999em; top: -9999em;"'),r.flashWrapper.innerHTML="<embed "+x.join(" ")+">";if(r.flashNode=r.flashWrapper.lastChild,r.hide=function(){o=!1,E&&(r.flashNode.style.display="none")},r.show=function(){o=!0,E&&(r.flashNode.style.display="")},r.setSize=function(e,t){r.flashNode.style.width=e+"px",r.flashNode.style.height=t+"px",null!==r.flashApi&&"function"==typeof r.flashApi.fire_setSize&&r.flashApi.fire_setSize(e,t)},r.destroy=function(){r.flashNode.remove()},n&&0<n.length)for(var P=0,T=n.length;P<T;P++)if(A.renderer.renderers[t.prefix].canPlayType(n[P].type)){r.setSrc(n[P].src);break}return r}};if(r.hasPluginVersion("flash",[10,0,0])){j.typeChecks.push(function(e){return(e=e.toLowerCase()).startsWith("rtmp")?~e.indexOf(".mp3")?"audio/rtmp":"video/rtmp":/\.og(a|g)/i.test(e)?"audio/ogg":~e.indexOf(".m3u8")?"application/x-mpegURL":~e.indexOf(".mpd")?"application/dash+xml":~e.indexOf(".flv")?"video/flv":null});var a={name:"flash_video",options:{prefix:"flash_video",filename:"mediaelement-flash-video.swf",enablePseudoStreaming:!1,pseudoStreamingStartQueryParam:"start",pseudoStreamingType:"byte",proxyType:"",streamDelimiter:""},canPlayType:function(e){return~["video/mp4","video/rtmp","audio/rtmp","rtmp/mp4","audio/mp4","video/flv","video/x-flv"].indexOf(e.toLowerCase())},create:i.create};A.renderer.add(a);var s={name:"flash_hls",options:{prefix:"flash_hls",filename:"mediaelement-flash-video-hls.swf"},canPlayType:function(e){return~["application/x-mpegurl","application/vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].indexOf(e.toLowerCase())},create:i.create};A.renderer.add(s);var l={name:"flash_dash",options:{prefix:"flash_dash",filename:"mediaelement-flash-video-mdash.swf"},canPlayType:function(e){return~["application/dash+xml"].indexOf(e.toLowerCase())},create:i.create};A.renderer.add(l);var u={name:"flash_audio",options:{prefix:"flash_audio",filename:"mediaelement-flash-audio.swf"},canPlayType:function(e){return~["audio/mp3"].indexOf(e.toLowerCase())},create:i.create};A.renderer.add(u);var c={name:"flash_audio_ogg",options:{prefix:"flash_audio_ogg",filename:"mediaelement-flash-audio-ogg.swf"},canPlayType:function(e){return~["audio/ogg","audio/oga","audio/ogv"].indexOf(e.toLowerCase())},create:i.create};A.renderer.add(c)}},{2:2,25:25,27:27,28:28,3:3,5:5,7:7,8:8}],21:[function(e,t,n){"use strict";var y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E=a(e(3)),b=a(e(7)),S=e(8),x=e(27),o=e(25),i=e(28),r=e(26);function a(e){return e&&e.__esModule?e:{default:e}}var w={promise:null,load:function(e){return"undefined"!=typeof flvjs?w.promise=new Promise(function(e){e()}).then(function(){w._createPlayer(e)}):(e.options.path="string"==typeof e.options.path?e.options.path:"https://cdn.jsdelivr.net/npm/flv.js@latest",w.promise=w.promise||(0,r.loadScript)(e.options.path),w.promise.then(function(){w._createPlayer(e)})),w.promise},_createPlayer:function(e){flvjs.LoggingControl.enableDebug=e.options.debug,flvjs.LoggingControl.enableVerbose=e.options.debug;var t=flvjs.createPlayer(e.options,e.configs);return E.default["__ready__"+e.id](t),t}},s={name:"native_flv",options:{prefix:"native_flv",flv:{path:"https://cdn.jsdelivr.net/npm/flv.js@latest",cors:!0,debug:!1}},canPlayType:function(e){return o.HAS_MSE&&-1<["video/x-flv","video/flv"].indexOf(e.toLowerCase())},create:function(s,a,e){var t=s.originalNode,l=s.id+"_"+a.prefix,d=null,u=null;d=t.cloneNode(!0),a=Object.assign(a,s.options);for(var n=b.default.html5media.properties,c=b.default.html5media.events.concat(["click","mouseover","mouseout"]).filter(function(e){return"error"!==e}),f=function(e){var t=(0,x.createEvent)(e.type,s);s.dispatchEvent(t)},o=function(r){var e=""+r.substring(0,1).toUpperCase()+r.substring(1);d["get"+e]=function(){return null!==u?d[r]:null},d["set"+e]=function(e){if(-1===b.default.html5media.readOnlyProperties.indexOf(r))if("src"===r){if(d[r]="object"===(void 0===e?"undefined":y(e))&&e.src?e.src:e,null!==u){var t={type:"flv"};t.url=e,t.cors=a.flv.cors,t.debug=a.flv.debug,t.path=a.flv.path;var n=a.flv.configs;u.destroy();for(var o=0,i=c.length;o<i;o++)d.removeEventListener(c[o],f);(u=w._createPlayer({options:t,configs:n,id:l})).attachMediaElement(d),u.load()}}else d[r]=e}},i=0,r=n.length;i<r;i++)o(n[i]);if(E.default["__ready__"+l]=function(e){s.flvPlayer=u=e;for(var t,i=flvjs.Events,n=0,o=c.length;n<o;n++)"loadedmetadata"===(t=c[n])&&(u.unload(),u.detachMediaElement(),u.attachMediaElement(d),u.load()),d.addEventListener(t,f);var r=function(o){i.hasOwnProperty(o)&&u.on(i[o],function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t){if("error"===e){var n=t[0]+": "+t[1]+" "+t[2].msg;s.generateError(n,d.src)}else{var o=(0,x.createEvent)(e,s);o.data=t,s.dispatchEvent(o)}}(i[o],t)})};for(var a in i)r(a)},e&&0<e.length)for(var p=0,m=e.length;p<m;p++)if(S.renderer.renderers[a.prefix].canPlayType(e[p].type)){d.setAttribute("src",e[p].src);break}d.setAttribute("id",l),t.parentNode.insertBefore(d,t),t.autoplay=!1,t.style.display="none";var h={type:"flv"};h.url=d.src,h.cors=a.flv.cors,h.debug=a.flv.debug,h.path=a.flv.path;var v=a.flv.configs;d.setSize=function(e,t){return d.style.width=e+"px",d.style.height=t+"px",d},d.hide=function(){return null!==u&&u.pause(),d.style.display="none",d},d.show=function(){return d.style.display="",d},d.destroy=function(){null!==u&&u.destroy()};var g=(0,x.createEvent)("rendererready",d);return s.dispatchEvent(g),s.promises.push(w.load({options:h,configs:v,id:l})),d}};i.typeChecks.push(function(e){return~e.toLowerCase().indexOf(".flv")?"video/flv":null}),S.renderer.add(s)},{25:25,26:26,27:27,28:28,3:3,7:7,8:8}],22:[function(e,t,n){"use strict";var y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E=a(e(3)),b=a(e(7)),S=e(8),x=e(27),o=e(25),i=e(28),r=e(26);function a(e){return e&&e.__esModule?e:{default:e}}var w={promise:null,load:function(e){return"undefined"!=typeof Hls?w.promise=new Promise(function(e){e()}).then(function(){w._createPlayer(e)}):(e.options.path="string"==typeof e.options.path?e.options.path:"https://cdn.jsdelivr.net/npm/hls.js@latest",w.promise=w.promise||(0,r.loadScript)(e.options.path),w.promise.then(function(){w._createPlayer(e)})),w.promise},_createPlayer:function(e){var t=new Hls(e.options);return E.default["__ready__"+e.id](t),t}},s={name:"native_hls",options:{prefix:"native_hls",hls:{path:"https://cdn.jsdelivr.net/npm/hls.js@latest",autoStartLoad:!1,debug:!1}},canPlayType:function(e){return o.HAS_MSE&&-1<["application/x-mpegurl","application/vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].indexOf(e.toLowerCase())},create:function(d,i,u){var e=d.originalNode,r=d.id+"_"+i.prefix,t=e.getAttribute("preload"),n=e.autoplay,c=null,f=null,p=0,m=u.length;f=e.cloneNode(!0),(i=Object.assign(i,d.options)).hls.autoStartLoad=t&&"none"!==t||n;for(var o=b.default.html5media.properties,h=b.default.html5media.events.concat(["click","mouseover","mouseout"]).filter(function(e){return"error"!==e}),v=function(e){var t=(0,x.createEvent)(e.type,d);d.dispatchEvent(t)},a=function(o){var e=""+o.substring(0,1).toUpperCase()+o.substring(1);f["get"+e]=function(){return null!==c?f[o]:null},f["set"+e]=function(e){if(-1===b.default.html5media.readOnlyProperties.indexOf(o))if("src"===o){if(f[o]="object"===(void 0===e?"undefined":y(e))&&e.src?e.src:e,null!==c){c.destroy();for(var t=0,n=h.length;t<n;t++)f.removeEventListener(h[t],v);(c=w._createPlayer({options:i.hls,id:r})).loadSource(e),c.attachMedia(f)}}else f[o]=e}},s=0,l=o.length;s<l;s++)a(o[s]);if(E.default["__ready__"+r]=function(e){d.hlsPlayer=c=e;for(var i=Hls.Events,t=function(e){if("loadedmetadata"===e){var t=d.originalNode.src;c.detachMedia(),c.loadSource(t),c.attachMedia(f)}f.addEventListener(e,v)},n=0,o=h.length;n<o;n++)t(h[n]);var s=void 0,l=void 0,r=function(o){i.hasOwnProperty(o)&&c.on(i[o],function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t){if("hlsError"===e&&(console.warn(t),(t=t[1]).fatal))switch(t.type){case"mediaError":var n=(new Date).getTime();if(!s||3e3<n-s)s=(new Date).getTime(),c.recoverMediaError();else if(!l||3e3<n-l)l=(new Date).getTime(),console.warn("Attempting to swap Audio Codec and recover from media error"),c.swapAudioCodec(),c.recoverMediaError();else{var o="Cannot recover, last media error recovery failed";d.generateError(o,f.src),console.error(o)}break;case"networkError":if("manifestLoadError"===t.details)if(p<m&&void 0!==u[p+1])f.setSrc(u[p++].src),f.load(),f.play();else{var i="Network error";d.generateError(i,u),console.error(i)}else{var r="Network error";d.generateError(r,u),console.error(r)}break;default:c.destroy()}else{var a=(0,x.createEvent)(e,d);a.data=t,d.dispatchEvent(a)}}(i[o],t)})};for(var a in i)r(a)},0<m)for(;p<m;p++)if(S.renderer.renderers[i.prefix].canPlayType(u[p].type)){f.setAttribute("src",u[p].src);break}"auto"===t||n||(f.addEventListener("play",function(){null!==c&&c.startLoad()}),f.addEventListener("pause",function(){null!==c&&c.stopLoad()})),f.setAttribute("id",r),e.parentNode.insertBefore(f,e),e.autoplay=!1,e.style.display="none",f.setSize=function(e,t){return f.style.width=e+"px",f.style.height=t+"px",f},f.hide=function(){return f.pause(),f.style.display="none",f},f.show=function(){return f.style.display="",f},f.destroy=function(){null!==c&&(c.stopLoad(),c.destroy())};var g=(0,x.createEvent)("rendererready",f);return d.dispatchEvent(g),d.promises.push(w.load({options:i.hls,id:r})),f}};i.typeChecks.push(function(e){return~e.toLowerCase().indexOf(".m3u8")?"application/x-mpegURL":null}),S.renderer.add(s)},{25:25,26:26,27:27,28:28,3:3,7:7,8:8}],23:[function(e,t,n){"use strict";var o=r(e(3)),g=r(e(2)),y=r(e(7)),E=e(8),b=e(27),i=e(25);function r(e){return e&&e.__esModule?e:{default:e}}var a={name:"html5",options:{prefix:"html5"},canPlayType:function(e){var t=g.default.createElement("video");return i.IS_ANDROID&&/\/mp(3|4)$/i.test(e)||~["application/x-mpegurl","vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].indexOf(e.toLowerCase())&&i.SUPPORTS_NATIVE_HLS?"yes":t.canPlayType?t.canPlayType(e.toLowerCase()).replace(/no/,""):""},create:function(n,e,t){var o=n.id+"_"+e.prefix,i=!1,r=null;void 0===n.originalNode||null===n.originalNode?(r=g.default.createElement("audio"),n.appendChild(r)):r=n.originalNode,r.setAttribute("id",o);for(var a=y.default.html5media.properties,s=function(t){var e=""+t.substring(0,1).toUpperCase()+t.substring(1);r["get"+e]=function(){return r[t]},r["set"+e]=function(e){-1===y.default.html5media.readOnlyProperties.indexOf(t)&&(r[t]=e)}},l=0,d=a.length;l<d;l++)s(a[l]);for(var u,c=y.default.html5media.events.concat(["click","mouseover","mouseout"]).filter(function(e){return"error"!==e}),f=0,p=c.length;f<p;f++)u=c[f],r.addEventListener(u,function(e){if(i){var t=(0,b.createEvent)(e.type,e.target);n.dispatchEvent(t)}});r.setSize=function(e,t){return r.style.width=e+"px",r.style.height=t+"px",r},r.hide=function(){return i=!1,r.style.display="none",r},r.show=function(){return i=!0,r.style.display="",r};var m=0,h=t.length;if(0<h)for(;m<h;m++)if(E.renderer.renderers[e.prefix].canPlayType(t[m].type)){r.setAttribute("src",t[m].src);break}r.addEventListener("error",function(e){e&&e.target&&e.target.error&&4===e.target.error.code&&i&&(m<h&&void 0!==t[m+1]?(r.src=t[m++].src,r.load(),r.play()):n.generateError("Media error: Format(s) not supported or source(s) not found",t))});var v=(0,b.createEvent)("rendererready",r);return n.dispatchEvent(v),r}};o.default.HtmlMediaElement=y.default.HtmlMediaElement=a,E.renderer.add(a)},{2:2,25:25,27:27,3:3,7:7,8:8}],24:[function(e,t,n){"use strict";var w=a(e(3)),P=a(e(2)),T=a(e(7)),o=e(8),C=e(27),i=e(28),r=e(26);function a(e){return e&&e.__esModule?e:{default:e}}var k={isIframeStarted:!1,isIframeLoaded:!1,iframeQueue:[],enqueueIframe:function(e){k.isLoaded="undefined"!=typeof YT&&YT.loaded,k.isLoaded?k.createIframe(e):(k.loadIframeApi(),k.iframeQueue.push(e))},loadIframeApi:function(){k.isIframeStarted||((0,r.loadScript)("https://www.youtube.com/player_api"),k.isIframeStarted=!0)},iFrameReady:function(){for(k.isLoaded=!0,k.isIframeLoaded=!0;0<k.iframeQueue.length;){var e=k.iframeQueue.pop();k.createIframe(e)}},createIframe:function(e){return new YT.Player(e.containerId,e)},getYouTubeId:function(e){var t="";return 0<e.indexOf("?")?""===(t=k.getYouTubeIdFromParam(e))&&(t=k.getYouTubeIdFromUrl(e)):t=k.getYouTubeIdFromUrl(e),(t=t.substring(t.lastIndexOf("/")+1).split("?"))[0]},getYouTubeIdFromParam:function(e){if(null==e||!e.trim().length)return null;for(var t=e.split("?")[1].split("&"),n="",o=0,i=t.length;o<i;o++){var r=t[o].split("=");if("v"===r[0]){n=r[1];break}}return n},getYouTubeIdFromUrl:function(e){return null!=e&&e.trim().length?(e=e.split("?")[0]).substring(e.lastIndexOf("/")+1):null},getYouTubeNoCookieUrl:function(e){if(null==e||!e.trim().length||-1===e.indexOf("//www.youtube"))return e;var t=e.split("/");return t[2]=t[2].replace(".com","-nocookie.com"),t.join("/")}},s={name:"youtube_iframe",options:{prefix:"youtube_iframe",youtube:{autoplay:0,controls:0,disablekb:1,end:0,loop:0,modestbranding:0,playsinline:0,rel:0,showinfo:0,start:0,iv_load_policy:3,nocookie:!1,imageQuality:null}},canPlayType:function(e){return~["video/youtube","video/x-youtube"].indexOf(e.toLowerCase())},create:function(m,n,o){var h={},v=[],g=null,r=!0,a=!1,y=null;h.options=n,h.id=m.id+"_"+n.prefix,h.mediaElement=m;for(var e=T.default.html5media.properties,t=function(i){var e=""+i.substring(0,1).toUpperCase()+i.substring(1);h["get"+e]=function(){if(null!==g){switch(i){case"currentTime":return g.getCurrentTime();case"duration":return g.getDuration();case"volume":return g.getVolume()/100;case"playbackRate":return g.getPlaybackRate();case"paused":return r;case"ended":return a;case"muted":return g.isMuted();case"buffered":var e=g.getVideoLoadedFraction(),t=g.getDuration();return{start:function(){return 0},end:function(){return e*t},length:1};case"src":return g.getVideoUrl();case"readyState":return 4}return null}return null},h["set"+e]=function(e){if(null!==g)switch(i){case"src":var t="string"==typeof e?e:e[0].src,n=k.getYouTubeId(t);m.originalNode.autoplay?g.loadVideoById(n):g.cueVideoById(n);break;case"currentTime":g.seekTo(e);break;case"muted":e?g.mute():g.unMute(),setTimeout(function(){var e=(0,C.createEvent)("volumechange",h);m.dispatchEvent(e)},50);break;case"volume":e,g.setVolume(100*e),setTimeout(function(){var e=(0,C.createEvent)("volumechange",h);m.dispatchEvent(e)},50);break;case"playbackRate":g.setPlaybackRate(e),setTimeout(function(){var e=(0,C.createEvent)("ratechange",h);m.dispatchEvent(e)},50);break;case"readyState":var o=(0,C.createEvent)("canplay",h);m.dispatchEvent(o)}else v.push({type:"set",propName:i,value:e})}},i=0,s=e.length;i<s;i++)t(e[i]);for(var l=T.default.html5media.methods,d=function(e){h[e]=function(){if(null!==g)switch(e){case"play":return r=!1,g.playVideo();case"pause":return r=!0,g.pauseVideo();case"load":return null}else v.push({type:"call",methodName:e})}},u=0,c=l.length;u<c;u++)d(l[u]);var f=P.default.createElement("div");f.id=h.id,h.options.youtube.nocookie&&(m.originalNode.src=k.getYouTubeNoCookieUrl(o[0].src)),m.originalNode.parentNode.insertBefore(f,m.originalNode),m.originalNode.style.display="none";var p="audio"===m.originalNode.tagName.toLowerCase(),E=p?"1":m.originalNode.height,b=p?"1":m.originalNode.width,S=k.getYouTubeId(o[0].src),x={id:h.id,containerId:f.id,videoId:S,height:E,width:b,host:h.options.youtube&&h.options.youtube.nocookie?"https://www.youtube-nocookie.com":void 0,playerVars:Object.assign({controls:0,rel:0,disablekb:1,showinfo:0,modestbranding:0,html5:1,iv_load_policy:3},h.options.youtube),origin:w.default.location.host,events:{onReady:function(e){if(m.youTubeApi=g=e.target,m.youTubeState={paused:!0,ended:!1},v.length)for(var t=0,n=v.length;t<n;t++){var o=v[t];if("set"===o.type){var i=o.propName,r=""+i.substring(0,1).toUpperCase()+i.substring(1);h["set"+r](o.value)}else"call"===o.type&&h[o.methodName]()}y=g.getIframe(),m.originalNode.muted&&g.mute();for(var a=["mouseover","mouseout"],s=function(e){var t=(0,C.createEvent)(e.type,h);m.dispatchEvent(t)},l=0,d=a.length;l<d;l++)y.addEventListener(a[l],s,!1);for(var u=["rendererready","loadedmetadata","loadeddata","canplay"],c=0,f=u.length;c<f;c++){var p=(0,C.createEvent)(u[c],h);m.dispatchEvent(p)}},onStateChange:function(e){var t=[];switch(e.data){case-1:t=["loadedmetadata"],r=!0,a=!1;break;case 0:t=["ended"],r=!1,a=!h.options.youtube.loop,h.options.youtube.loop||h.stopInterval();break;case 1:t=["play","playing"],a=r=!1,h.startInterval();break;case 2:t=["pause"],r=!0,a=!1,h.stopInterval();break;case 3:t=["progress"],a=!1;break;case 5:t=["loadeddata","loadedmetadata","canplay"],r=!0,a=!1}for(var n=0,o=t.length;n<o;n++){var i=(0,C.createEvent)(t[n],h);m.dispatchEvent(i)}},onError:function(e){return function(e){var t="";switch(e.data){case 2:t="The request contains an invalid parameter value. Verify that video ID has 11 characters and that contains no invalid characters, such as exclamation points or asterisks.";break;case 5:t="The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.";break;case 100:t="The video requested was not found. Either video has been removed or has been marked as private.";break;case 101:case 105:t="The owner of the requested video does not allow it to be played in embedded players.";break;default:t="Unknown error."}m.generateError("Code "+e.data+": "+t,o)}(e)}}};return(p||m.originalNode.hasAttribute("playsinline"))&&(x.playerVars.playsinline=1),m.originalNode.controls&&(x.playerVars.controls=1),m.originalNode.autoplay&&(x.playerVars.autoplay=1),m.originalNode.loop&&(x.playerVars.loop=1),(x.playerVars.loop&&1===parseInt(x.playerVars.loop,10)||-1<m.originalNode.src.indexOf("loop="))&&!x.playerVars.playlist&&-1===m.originalNode.src.indexOf("playlist=")&&(x.playerVars.playlist=k.getYouTubeId(m.originalNode.src)),k.enqueueIframe(x),h.onEvent=function(e,t,n){null!=n&&(m.youTubeState=n)},h.setSize=function(e,t){null!==g&&g.setSize(e,t)},h.hide=function(){h.stopInterval(),h.pause(),y&&(y.style.display="none")},h.show=function(){y&&(y.style.display="")},h.destroy=function(){g.destroy()},h.interval=null,h.startInterval=function(){h.interval=setInterval(function(){var e=(0,C.createEvent)("timeupdate",h);m.dispatchEvent(e)},250)},h.stopInterval=function(){h.interval&&clearInterval(h.interval)},h.getPosterUrl=function(){var e=n.youtube.imageQuality,t=k.getYouTubeId(m.originalNode.src);return e&&-1<["default","hqdefault","mqdefault","sddefault","maxresdefault"].indexOf(e)&&t?"https://img.youtube.com/vi/"+t+"/"+e+".jpg":""},h}};w.default.onYouTubePlayerAPIReady=function(){k.iFrameReady()},i.typeChecks.push(function(e){return/\/\/(www\.youtube|youtu\.?be)/i.test(e)?"video/x-youtube":null}),o.renderer.add(s)},{2:2,26:26,27:27,28:28,3:3,7:7,8:8}],25:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.cancelFullScreen=n.requestFullScreen=n.isFullScreen=n.FULLSCREEN_EVENT_NAME=n.HAS_NATIVE_FULLSCREEN_ENABLED=n.HAS_TRUE_NATIVE_FULLSCREEN=n.HAS_IOS_FULLSCREEN=n.HAS_MS_NATIVE_FULLSCREEN=n.HAS_MOZ_NATIVE_FULLSCREEN=n.HAS_WEBKIT_NATIVE_FULLSCREEN=n.HAS_NATIVE_FULLSCREEN=n.SUPPORTS_NATIVE_HLS=n.SUPPORT_PASSIVE_EVENT=n.SUPPORT_POINTER_EVENTS=n.HAS_MSE=n.IS_STOCK_ANDROID=n.IS_SAFARI=n.IS_FIREFOX=n.IS_CHROME=n.IS_EDGE=n.IS_IE=n.IS_ANDROID=n.IS_IOS=n.IS_IPOD=n.IS_IPHONE=n.IS_IPAD=n.UA=n.NAV=void 0;var i=a(e(3)),r=a(e(2)),o=a(e(7));function a(e){return e&&e.__esModule?e:{default:e}}for(var s=n.NAV=i.default.navigator,l=n.UA=s.userAgent.toLowerCase(),d=n.IS_IPAD=/ipad/i.test(l)&&!i.default.MSStream,u=n.IS_IPHONE=/iphone/i.test(l)&&!i.default.MSStream,c=n.IS_IPOD=/ipod/i.test(l)&&!i.default.MSStream,f=(n.IS_IOS=/ipad|iphone|ipod/i.test(l)&&!i.default.MSStream,n.IS_ANDROID=/android/i.test(l)),p=n.IS_IE=/(trident|microsoft)/i.test(s.appName),m=(n.IS_EDGE="msLaunchUri"in s&&!("documentMode"in r.default)),h=n.IS_CHROME=/chrome/i.test(l),v=n.IS_FIREFOX=/firefox/i.test(l),g=n.IS_SAFARI=/safari/i.test(l)&&!h,y=n.IS_STOCK_ANDROID=/^mozilla\/\d+\.\d+\s\(linux;\su;/i.test(l),E=(n.HAS_MSE="MediaSource"in i.default),b=n.SUPPORT_POINTER_EVENTS=function(){var e=r.default.createElement("x"),t=r.default.documentElement,n=i.default.getComputedStyle;if(!("pointerEvents"in e.style))return!1;e.style.pointerEvents="auto",e.style.pointerEvents="x",t.appendChild(e);var o=n&&"auto"===(n(e,"")||{}).pointerEvents;return e.remove(),!!o}(),S=n.SUPPORT_PASSIVE_EVENT=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});i.default.addEventListener("test",null,t)}catch(e){}return e}(),x=["source","track","audio","video"],w=void 0,P=0,T=x.length;P<T;P++)w=r.default.createElement(x[P]);var C=n.SUPPORTS_NATIVE_HLS=g||p&&/edge/i.test(l),k=void 0!==w.webkitEnterFullscreen,_=void 0!==w.requestFullscreen;k&&/mac os x 10_5/i.test(l)&&(k=_=!1);var N=void 0!==w.webkitRequestFullScreen,A=void 0!==w.mozRequestFullScreen,L=void 0!==w.msRequestFullscreen,F=N||A||L,j=F,I="",M=void 0,O=void 0,D=void 0;A?j=r.default.mozFullScreenEnabled:L&&(j=r.default.msFullscreenEnabled),h&&(k=!1),F&&(N?I="webkitfullscreenchange":A?I="fullscreenchange":L&&(I="MSFullscreenChange"),n.isFullScreen=M=function(){return A?r.default.mozFullScreen:N?r.default.webkitIsFullScreen:L?null!==r.default.msFullscreenElement:void 0},n.requestFullScreen=O=function(e){N?e.webkitRequestFullScreen():A?e.mozRequestFullScreen():L&&e.msRequestFullscreen()},n.cancelFullScreen=D=function(){N?r.default.webkitCancelFullScreen():A?r.default.mozCancelFullScreen():L&&r.default.msExitFullscreen()});var R=n.HAS_NATIVE_FULLSCREEN=_,V=n.HAS_WEBKIT_NATIVE_FULLSCREEN=N,H=n.HAS_MOZ_NATIVE_FULLSCREEN=A,U=n.HAS_MS_NATIVE_FULLSCREEN=L,q=n.HAS_IOS_FULLSCREEN=k,B=n.HAS_TRUE_NATIVE_FULLSCREEN=F,z=n.HAS_NATIVE_FULLSCREEN_ENABLED=j,W=n.FULLSCREEN_EVENT_NAME=I;n.isFullScreen=M,n.requestFullScreen=O,n.cancelFullScreen=D,o.default.Features=o.default.Features||{},o.default.Features.isiPad=d,o.default.Features.isiPod=c,o.default.Features.isiPhone=u,o.default.Features.isiOS=o.default.Features.isiPhone||o.default.Features.isiPad,o.default.Features.isAndroid=f,o.default.Features.isIE=p,o.default.Features.isEdge=m,o.default.Features.isChrome=h,o.default.Features.isFirefox=v,o.default.Features.isSafari=g,o.default.Features.isStockAndroid=y,o.default.Features.hasMSE=E,o.default.Features.supportsNativeHLS=C,o.default.Features.supportsPointerEvents=b,o.default.Features.supportsPassiveEvent=S,o.default.Features.hasiOSFullScreen=q,o.default.Features.hasNativeFullscreen=R,o.default.Features.hasWebkitNativeFullScreen=V,o.default.Features.hasMozNativeFullScreen=H,o.default.Features.hasMsNativeFullScreen=U,o.default.Features.hasTrueNativeFullScreen=B,o.default.Features.nativeFullScreenEnabled=z,o.default.Features.fullScreenEventName=W,o.default.Features.isFullScreen=M,o.default.Features.requestFullScreen=O,o.default.Features.cancelFullScreen=D},{2:2,3:3,7:7}],26:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.removeClass=n.addClass=n.hasClass=void 0,n.loadScript=a,n.offset=s,n.toggleClass=h,n.fadeOut=v,n.fadeIn=g,n.siblings=y,n.visible=E,n.ajax=b;var l=r(e(3)),i=r(e(2)),o=r(e(7));function r(e){return e&&e.__esModule?e:{default:e}}function a(o){return new Promise(function(e,t){var n=i.default.createElement("script");n.src=o,n.async=!0,n.onload=function(){n.remove(),e()},n.onerror=function(){n.remove(),t()},i.default.head.appendChild(n)})}function s(e){var t=e.getBoundingClientRect(),n=l.default.pageXOffset||i.default.documentElement.scrollLeft,o=l.default.pageYOffset||i.default.documentElement.scrollTop;return{top:t.top+o,left:t.left+n}}var d=void 0,u=void 0,c=void 0;"classList"in i.default.documentElement?(d=function(e,t){return void 0!==e.classList&&e.classList.contains(t)},u=function(e,t){return e.classList.add(t)},c=function(e,t){return e.classList.remove(t)}):(d=function(e,t){return new RegExp("\\b"+t+"\\b").test(e.className)},u=function(e,t){f(e,t)||(e.className+=" "+t)},c=function(e,t){e.className=e.className.replace(new RegExp("\\b"+t+"\\b","g"),"")});var f=n.hasClass=d,p=n.addClass=u,m=n.removeClass=c;function h(e,t){f(e,t)?m(e,t):p(e,t)}function v(i){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:400,a=arguments[2];i.style.opacity||(i.style.opacity=1);var s=null;l.default.requestAnimationFrame(function e(t){var n=t-(s=s||t),o=parseFloat(1-n/r,2);i.style.opacity=o<0?0:o,r<n?a&&"function"==typeof a&&a():l.default.requestAnimationFrame(e)})}function g(i){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:400,a=arguments[2];i.style.opacity||(i.style.opacity=0);var s=null;l.default.requestAnimationFrame(function e(t){var n=t-(s=s||t),o=parseFloat(n/r,2);i.style.opacity=1<o?1:o,r<n?a&&"function"==typeof a&&a():l.default.requestAnimationFrame(e)})}function y(e,t){var n=[];for(e=e.parentNode.firstChild;t&&!t(e)||n.push(e),e=e.nextSibling;);return n}function E(e){return void 0!==e.getClientRects&&"function"===e.getClientRects?!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length):!(!e.offsetWidth&&!e.offsetHeight)}function b(e,t,n,o){var i=l.default.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),r="application/x-www-form-urlencoded; charset=UTF-8",a=!1,s="*/".concat("*");switch(t){case"text":r="text/plain";break;case"json":r="application/json, text/javascript";break;case"html":r="text/html";break;case"xml":r="application/xml, text/xml"}"application/x-www-form-urlencoded"!==r&&(s=r+", */*; q=0.01"),i&&(i.open("GET",e,!0),i.setRequestHeader("Accept",s),i.onreadystatechange=function(){if(!a&&4===i.readyState)if(200===i.status){a=!0;var e=void 0;switch(t){case"json":e=JSON.parse(i.responseText);break;case"xml":e=i.responseXML;break;default:e=i.responseText}n(e)}else"function"==typeof o&&o(i.status)},i.send())}o.default.Utils=o.default.Utils||{},o.default.Utils.offset=s,o.default.Utils.hasClass=f,o.default.Utils.addClass=p,o.default.Utils.removeClass=m,o.default.Utils.toggleClass=h,o.default.Utils.fadeIn=g,o.default.Utils.fadeOut=v,o.default.Utils.siblings=y,o.default.Utils.visible=E,o.default.Utils.ajax=b,o.default.Utils.loadScript=a},{2:2,3:3,7:7}],27:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.escapeHTML=a,n.debounce=s,n.isObjectEmpty=l,n.splitEvents=d,n.createEvent=u,n.isNodeAfter=c,n.isString=f;var o,i=e(7),r=(o=i)&&o.__esModule?o:{default:o};function a(e){if("string"!=typeof e)throw new Error("Argument passed must be a string");var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};return e.replace(/[&<>"]/g,function(e){return t[e]})}function s(o,i){var r=this,a=arguments,s=2<arguments.length&&void 0!==arguments[2]&&arguments[2];if("function"!=typeof o)throw new Error("First argument must be a function");if("number"!=typeof i)throw new Error("Second argument must be a numeric value");var l=void 0;return function(){var e=r,t=a,n=s&&!l;clearTimeout(l),l=setTimeout(function(){l=null,s||o.apply(e,t)},i),n&&o.apply(e,t)}}function l(e){return Object.getOwnPropertyNames(e).length<=0}function d(e,n){var o=/^((after|before)print|(before)?unload|hashchange|message|o(ff|n)line|page(hide|show)|popstate|resize|storage)\b/,i={d:[],w:[]};return(e||"").split(" ").forEach(function(e){var t=e+(n?"."+n:"");t.startsWith(".")?(i.d.push(t),i.w.push(t)):i[o.test(e)?"w":"d"].push(t)}),i.d=i.d.join(" "),i.w=i.w.join(" "),i}function u(e,t){if("string"!=typeof e)throw new Error("Event name must be a string");var n=e.match(/([a-z]+\.([a-z]+))/i),o={target:t};return null!==n&&(e=n[1],o.namespace=n[2]),new window.CustomEvent(e,{detail:o})}function c(e,t){return!!(e&&t&&2&e.compareDocumentPosition(t))}function f(e){return"string"==typeof e}r.default.Utils=r.default.Utils||{},r.default.Utils.escapeHTML=a,r.default.Utils.debounce=s,r.default.Utils.isObjectEmpty=l,r.default.Utils.splitEvents=d,r.default.Utils.createEvent=u,r.default.Utils.isNodeAfter=c,r.default.Utils.isString=f},{7:7}],28:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.typeChecks=void 0,n.absolutizeUrl=l,n.formatType=d,n.getMimeFromType=u,n.getTypeFromFile=c,n.getExtension=f,n.normalizeExtension=p;var o,i=e(7),r=(o=i)&&o.__esModule?o:{default:o},a=e(27);var s=n.typeChecks=[];function l(e){if("string"!=typeof e)throw new Error("`url` argument must be a string");var t=document.createElement("div");return t.innerHTML='<a href="'+(0,a.escapeHTML)(e)+'">x</a>',t.firstChild.href}function d(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return e&&!t?c(e):t}function u(e){if("string"!=typeof e)throw new Error("`type` argument must be a string");return e&&-1<e.indexOf(";")?e.substr(0,e.indexOf(";")):e}function c(e){if("string"!=typeof e)throw new Error("`url` argument must be a string");for(var t=0,n=s.length;t<n;t++){var o=s[t](e);if(o)return o}var i=p(f(e)),r="video/mp4";return i&&(~["mp4","m4v","ogg","ogv","webm","flv","mpeg"].indexOf(i)?r="video/"+i:"mov"===i?r="video/quicktime":~["mp3","oga","wav","mid","midi"].indexOf(i)&&(r="audio/"+i)),r}function f(e){if("string"!=typeof e)throw new Error("`url` argument must be a string");var t=e.split("?")[0].split("\\").pop().split("/").pop();return~t.indexOf(".")?t.substring(t.lastIndexOf(".")+1):""}function p(e){if("string"!=typeof e)throw new Error("`extension` argument must be a string");switch(e){case"mp4":case"m4v":return"mp4";case"webm":case"webma":case"webmv":return"webm";case"ogg":case"oga":case"ogv":return"ogg";default:return e}}r.default.Utils=r.default.Utils||{},r.default.Utils.typeChecks=s,r.default.Utils.absolutizeUrl=l,r.default.Utils.formatType=d,r.default.Utils.getMimeFromType=u,r.default.Utils.getTypeFromFile=c,r.default.Utils.getExtension=f,r.default.Utils.normalizeExtension=p},{27:27,7:7}],29:[function(e,t,n){"use strict";var o,i=a(e(2)),r=a(e(4));function a(e){return e&&e.__esModule?e:{default:e}}if([Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})}),function(){if("function"==typeof window.CustomEvent)return;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=i.default.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,o=arguments.length;n<o;n++){var i=arguments[n];if(null!==i)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}),String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length-1;0<=--n&&t.item(n)!==this;);return-1<n}),window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t=(this.document||this.ownerDocument).querySelectorAll(e),n=void 0,o=this;do{for(n=t.length;0<=--n&&t.item(n)!==o;);}while(n<0&&(o=o.parentElement));return o}),function(){for(var i=0,e=["ms","moz","webkit","o"],t=0;t<e.length&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[e[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[t]+"CancelAnimationFrame"]||window[e[t]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-i)),o=window.setTimeout(function(){e(t+n)},n);return i=t+n,o}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}(),/firefox/i.test(navigator.userAgent)){var s=window.getComputedStyle;window.getComputedStyle=function(e,t){var n=s(e,t);return null===n?{getPropertyValue:function(){}}:n}}window.Promise||(window.Promise=r.default),(o=window.Node||window.Element)&&o.prototype&&null===o.prototype.children&&Object.defineProperty(o.prototype,"children",{get:function(){for(var e=0,t=void 0,n=this.childNodes,o=[];t=n[e++];)1===t.nodeType&&o.push(t);return o}})},{2:2,4:4}],30:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isDropFrame=C,n.secondsToTimeCode=a,n.timeCodeToSeconds=s,n.calculateTimeFormat=l,n.convertSMPTEtoSeconds=d;var o,i=e(7),r=(o=i)&&o.__esModule?o:{default:o};function C(){return!((0<arguments.length&&void 0!==arguments[0]?arguments[0]:25)%1==0)}function a(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:25,i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:"hh:mm:ss";e=!e||"number"!=typeof e||e<0?0:e;var a=Math.round(.066666*o),s=Math.round(o),l=24*Math.round(3600*o),d=Math.round(600*o),u=C(o)?";":":",c=void 0,f=void 0,p=void 0,m=void 0,h=Math.round(e*o);if(C(o)){h<0&&(h=l+h);var v=(h%=l)%d;h+=9*a*Math.floor(h/d),a<v&&(h+=a*Math.floor((v-a)/Math.round(60*s-a)));var g=Math.floor(h/s);c=Math.floor(Math.floor(g/60)/60),f=Math.floor(g/60)%60,p=n?g%60:Math.floor(h/s%60).toFixed(i)}else c=Math.floor(e/3600)%24,f=Math.floor(e/60)%60,p=n?Math.floor(e%60):Math.floor(e%60).toFixed(i);c=c<=0?0:c,p=60===(p=p<=0?0:p)?0:p,f=60===(f=f<=0?0:f)?0:f;for(var y=r.split(":"),E={},b=0,S=y.length;b<S;++b){for(var x="",w=0,P=y[b].length;w<P;w++)x.indexOf(y[b][w])<0&&(x+=y[b][w]);~["f","s","m","h"].indexOf(x)&&(E[x]=y[b].length)}var T=t||0<c?(c<10&&1<E.h?"0"+c:c)+":":"";return T+=(f<10&&1<E.m?"0"+f:f)+":",T+=""+(p<10&&1<E.s?"0"+p:p),n&&(T+=(m=(m=(h%s).toFixed(0))<=0?0:m)<10&&E.f?u+"0"+m:""+u+m),T}function s(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:25;if("string"!=typeof e)throw new TypeError("Time must be a string");if(0<e.indexOf(";")&&(e=e.replace(";",":")),!/\d{2}(\:\d{2}){0,3}/i.test(e))throw new TypeError("Time code must have the format `00:00:00`");var n=e.split(":"),o=void 0,i=0,r=0,a=0,s=0,l=0,d=Math.round(.066666*t),u=Math.round(t),c=3600*u,f=60*u;switch(n.length){default:case 1:a=parseInt(n[0],10);break;case 2:r=parseInt(n[0],10),a=parseInt(n[1],10);break;case 3:i=parseInt(n[0],10),r=parseInt(n[1],10),a=parseInt(n[2],10);break;case 4:i=parseInt(n[0],10),r=parseInt(n[1],10),a=parseInt(n[2],10),s=parseInt(n[3],10)}return o=C(t)?c*i+f*r+u*a+s-d*((l=60*i+r)-Math.floor(l/10)):(c*i+f*r+t*a+s)/t,parseFloat(o.toFixed(3))}function l(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:25;e=!e||"number"!=typeof e||e<0?0:e;for(var o=Math.floor(e/3600)%24,i=Math.floor(e/60)%60,r=Math.floor(e%60),a=[[Math.floor((e%1*n).toFixed(3)),"f"],[r,"s"],[i,"m"],[o,"h"]],s=t.timeFormat,l=s[1]===s[0],d=l?2:1,u=s.length<d?s[d]:":",c=s[0],f=!1,p=0,m=a.length;p<m;p++)if(~s.indexOf(a[p][1]))f=!0;else if(f){for(var h=!1,v=p;v<m;v++)if(0<a[v][0]){h=!0;break}if(!h)break;l||(s=c+s),s=a[p][1]+u+s,l&&(s=a[p][1]+s),c=a[p][1]}t.timeFormat=s}function d(e){if("string"!=typeof e)throw new TypeError("Argument must be a string value");for(var t=~(e=e.replace(",",".")).indexOf(".")?e.split(".")[1].length:0,n=0,o=1,i=0,r=(e=e.split(":").reverse()).length;i<r;i++)o=1,0<i&&(o=Math.pow(60,i)),n+=Number(e[i])*o;return Number(n.toFixed(t))}r.default.Utils=r.default.Utils||{},r.default.Utils.secondsToTimeCode=a,r.default.Utils.timeCodeToSeconds=s,r.default.Utils.calculateTimeFormat=l,r.default.Utils.convertSMPTEtoSeconds=d},{7:7}]},{},[29,6,5,15,23,20,19,21,22,24,16,18,17,9,10,11,12,13,14]);
!function(a){void 0===mejs.plugins&&(mejs.plugins={},mejs.plugins.silverlight=[],mejs.plugins.silverlight.push({types:[]})),mejs.HtmlMediaElementShim=mejs.HtmlMediaElementShim||{getTypeFromFile:mejs.Utils.getTypeFromFile},void 0===mejs.MediaFeatures&&(mejs.MediaFeatures=mejs.Features),void 0===mejs.Utility&&(mejs.Utility=mejs.Utils);var e=MediaElementPlayer.prototype.init,t=(MediaElementPlayer.prototype.init=function(){this.options.classPrefix="mejs-",this.$media=this.$node=a(this.node),e.call(this)},MediaElementPlayer.prototype._meReady);MediaElementPlayer.prototype._meReady=function(){this.container=a(this.container),this.controls=a(this.controls),this.layers=a(this.layers),t.apply(this,arguments)},MediaElementPlayer.prototype.getElement=function(e){return void 0!==a&&e instanceof a?e[0]:e},MediaElementPlayer.prototype.buildfeatures=function(e,t,i,s){for(var l=["playpause","current","progress","duration","tracks","volume","fullscreen"],r=0,n=this.options.features.length;r<n;r++){var o=this.options.features[r];if(this["build"+o])try{-1===l.indexOf(o)?this["build"+o](e,a(t),a(i),s):this["build"+o](e,t,i,s)}catch(e){console.error("error building "+o,e)}}}}((window,jQuery));
!function(e,n){e.wp=e.wp||{},e.wp.mediaelement=new function(){var t={};return{initialize:function(){var e=[];(t="undefined"!=typeof _wpmejsSettings?n.extend(!0,{},_wpmejsSettings):t).classPrefix="mejs-",t.success=t.success||function(e){var t,n;e.rendererName&&-1!==e.rendererName.indexOf("flash")&&(t=e.attributes.autoplay&&"false"!==e.attributes.autoplay,n=e.attributes.loop&&"false"!==e.attributes.loop,t&&e.addEventListener("canplay",function(){e.play()},!1),n)&&e.addEventListener("ended",function(){e.play()},!1)},t.customError=function(e,t){if(-1!==e.rendererName.indexOf("flash")||-1!==e.rendererName.indexOf("flv"))return'<a href="'+t.src+'">'+mejsL10n.strings["mejs.download-file"]+"</a>"},void 0!==t.videoShortcodeLibrary&&"mediaelement"!==t.videoShortcodeLibrary||e.push(".wp-video-shortcode"),void 0!==t.audioShortcodeLibrary&&"mediaelement"!==t.audioShortcodeLibrary||e.push(".wp-audio-shortcode"),e.length&&n(e.join(", ")).not(".mejs-container").filter(function(){return!n(this).parent().hasClass("mejs-mediaelement")}).mediaelementplayer(t)}}},n(e.wp.mediaelement.initialize)}(window,jQuery);
(function(){
"use strict";
function abelle_skin_post_header_init(){
var header=jQuery('.post_header_wrap_style_style-1.with_featured_image, .post_header_wrap_style_style-2.with_featured_image');
header.find('.post_featured').css('min-height', 0);
if(jQuery(header).find('.post_featured.with_gallery').length > 0){
return;
}
if(jQuery(header).find('.post_featured.with_thumb.post_featured_bg.with_video').length > 0){
return;
}
header.each(function(){
var self=jQuery(this);
var image_h=self.find('.post_featured').outerHeight();
var info_h=self.find('.post_header').outerHeight();
var x=180;
if(jQuery('body').hasClass('mobile_layout')){
x=100;
}
info_h=info_h + x;
if(info_h >=image_h){
self.find('.post_featured').css('min-height', info_h);
}});
}
abelle_add_filter('trx_addons_filter_skills_pie_options', function(opt){
opt.animateScale=false;
return opt;
});
if(typeof TRX_ADDONS_STORAGE!='undefined'&&TRX_ADDONS_STORAGE['mouse_helper'] > 0){
if(jQuery('body').find('.slider_container.slider_swiper:not(.go)').length > 0){
jQuery('body').find('.slider_container.slider_swiper:not(.go)').each(function (){
jQuery(this).addClass('go');
jQuery(this).attr('data-mouse-helper-hide-cursor', '1');
jQuery(this).attr('data-mouse-helper', 'hover');
jQuery(this).attr('data-mouse-helper-centered', '1');
jQuery(this).attr('data-mouse-helper-magnet', '0');
jQuery(this).attr('data-mouse-helper-bg-color', 'rgba(0, 0, 0, 1)');
jQuery(this).attr('data-mouse-helper-mode', 'normal');
jQuery(this).attr('data-mouse-helper-axis', 'xy');
jQuery(this).attr('data-mouse-helper-delay', '8');
jQuery(this).attr('data-mouse-helper-text-round', '0');
jQuery(this).attr('data-mouse-helper-layout', '<div class=custom-helper><span></span></div>');
});
}}
function skin_blogger_controls_title(){
if(jQuery('body').find('.sc_slider_controls:not(.go)').length > 0){
jQuery('body').find('.sc_slider_controls:not(.go)')
.each(function (){
var controls=jQuery(this).addClass('go'),
slider_id=controls.data('slider-id'),
pagination_style=controls.data('pagination-style');
if(!slider_id) return;
slider_id=jQuery('#' + slider_id + ' .slider_swiper').attr('id');
if(!slider_id) return;
var s=typeof TRX_ADDONS_STORAGE['swipers']!='undefined'&&typeof TRX_ADDONS_STORAGE['swipers'][slider_id]!='undefined' ? TRX_ADDONS_STORAGE['swipers'][slider_id]:false,
slides=jQuery('#' + slider_id + ' .swiper-slide'),
spv=s
? (s.params.loop
? s.loopedSlides
: 0
)
: 0;
if(pagination_style=='title'){
var html='';
slides.each(function (idx){
var slide=jQuery(this);
if(idx < spv||idx >=slides.length - spv) return;
var title=(slide.data('title')
? slide.data('title')
: slide.find('[class*="_item_title"]').text()
);
html +='<span class="slider_pagination_bullet swiper-pagination-bullet" data-slide-number="' + (s ? jQuery(this).data('slide-number'):idx) + '">' + title + '</span>';
});
controls.find('.slider_pagination_wrap').html(html);
jQuery('#' + slider_id).on('slider_init slide_change_start', function (e){
if(TRX_ADDONS_STORAGE['swipers'][slider_id]){
var s=TRX_ADDONS_STORAGE['swipers'][slider_id];
var current=jQuery(s.slides[s.activeIndex]).data('slide-number') + 1,
total=s.params.loop ? Math.ceil((s.slides.length - s.loopedSlides * 2) / s.params.slidesPerGroup):s.snapGrid.length;
if(total > 0){
controls.find('.slider_pagination_bullet')
.removeClass('slider_pagination_bullet_active swiper-pagination-bullet-active')
.eq(current - 1)
.addClass('slider_pagination_bullet_active swiper-pagination-bullet-active');
}}
});
}});
}}
abelle_add_filter('trx_addons_filter_slider_init_args', function($param, $init){
if($init.parents('.slider_width_auto').length > 0&&($init.parents('.sc_portfolio_extra').length > 0||$init.parents('.sc_portfolio_default').length > 0) ){
$param.slidesPerView='auto';
}
return $param;
});
function skin_blogger_toggle_filter_add_element(){
if(jQuery('.content').find(".sc_style_toggle").length > 0){
jQuery(" .sc_style_toggle").each(function(){
var toggle_title=ABELLE_STORAGE['toggle_title'];
jQuery(this).find('.sc_item_filters').append('<div class="title_wrap"><span class="toggle_title"></span><span class="active_tab"></span></div>');
jQuery(this).find('.sc_item_filters .sc_item_filters_tabs').wrap('<div class="list_wrap"></div>');
jQuery(this).find('.sc_item_filters .toggle_title').text(toggle_title);
jQuery(this).find('span.active_tab')
.mouseenter(function(){
jQuery(this).parents('.sc_item_filters').find('.sc_item_filters_tabs').addClass('active');
}
);
jQuery(this).find('.sc_blogger_filters')
.mouseleave(function(){
jQuery(this).find('.sc_item_filters_tabs').removeClass('active');
}
);
})
}}
function skin_blogger_toggle_filter_upd_value(){
if(jQuery('.content').find(".sc_style_toggle").length > 0){
jQuery(" .sc_style_toggle").each(function(){
var text=jQuery(this).find('.sc_item_filters .sc_item_filters_tabs .sc_item_filters_tabs_active a').text();
jQuery(this).find('.sc_item_filters .active_tab').text(text);
})
}}
function skin_add_custom_width_filter_list(){
if(jQuery('.content').find(".sc_style_toggle").length > 0){
jQuery('.sc_style_toggle .sc_item_filters_wrap .sc_item_filters').each(function(){
var check_element=jQuery(this).find('.list_wrap');
var width=jQuery(this).find('.title_wrap').outerWidth();
jQuery(check_element).css('width', 'calc(100% - ' + (width + 10) + 'px)');
})
}}
function mousemove_for_portfolio_small(){
if(jQuery(window).width() > 1279){
if(jQuery('.content').find(".sc_blogger_lay_portfolio_grid_grid_style_7").length > 0){
jQuery(".sc_blogger_lay_portfolio_grid_grid_style_7 .sc_blogger_item").each(function(){
let $Target=jQuery(this);
let $TargetInner=$Target.find('.post_info_bl');
$Target.mousemove(function(event){
let y=event.pageY - $Target.offset().top + 20;
let x=event.pageX - $Target.offset().left + 20;
$TargetInner.css({'top': y,'left': x,'bottom': "auto",'right': "auto",'opacity': 1});
})
.mouseleave(function(){
$TargetInner.css({'top': 'auto','left': 30,'bottom': 30,'right': "auto",'opacity': 0});
});
});
}}
}
function add_portfolio_image_wrap(){
if(jQuery('.content').find(".sc_blogger_lay_portfolio_grid_grid_style_7").length > 0){
let $NewTarget=jQuery(".sc_blogger_lay_portfolio_grid_grid_style_7 .sc_blogger_item");
let $ImageInner=$NewTarget.find('.bg_in');
jQuery($ImageInner).wrap('<div class="bg_in_wrap"></div>');
}
if(jQuery('.content').find(".sc_blogger_lay_portfolio_grid_grid_style_9").length > 0){
let $NewTarget2=jQuery(".sc_blogger_lay_portfolio_grid_grid_style_9 .sc_blogger_item");
let $ImageInner2=$NewTarget2.find('.bg_in');
jQuery($ImageInner2).wrap('<div class="bg_in_wrap"></div>');
}}
function mousemove_for_portfolio_large(){
if(jQuery(window).width() > 1279){
if(jQuery('.content').find(".sc_blogger_lay_portfolio_grid_grid_style_9").length > 0){
jQuery(".sc_blogger_lay_portfolio_grid_grid_style_9 .sc_blogger_item").each(function(){
let $Target=jQuery(this);
let $TargetInner=$Target.find('.post_info_bl');
$Target.mousemove(function(event){
let y=event.pageY - $Target.offset().top + 20;
let x=event.pageX - $Target.offset().left + 20;
$TargetInner.css({'top': y,'left': x,'bottom': "auto",'right': "auto",'opacity': 1 });
})
.mouseleave(function(){
$TargetInner.css({'top': "auto",'left': 30,'bottom': 30,'right': "auto",'opacity': 0 });
});
});
}}
}
function background_image_portfolio_stretch(){
if(jQuery('.content').find(".sc_blogger_portmodern").length > 0){
jQuery(".sc_blogger_portmodern .sc_blogger_item .sc_blogger_item_title").on('mouseover', function(){
jQuery(this).addClass('active_item');
}).on('mouseleave', function(){
jQuery(this).removeClass('active_item');
});
if(jQuery(window).width() > 1279){
jQuery(".sc_blogger_portmodern .sc_blogger_item:not(.inited_item)").each(function(){
let $Target=jQuery(this).addClass('inited_item');
let $TargetInner=$Target.find('.sc_blogger_item_title');
let $TargetInnerId=$TargetInner.data('item-id');
let $TargetInnerImg=$TargetInner.data('item-image');
if($TargetInnerImg){
var obj=new Image();
obj.src=$TargetInnerImg;
}
let $WrapImage=jQuery(this).parents(".sc_blogger_portmodern").find(".decor_image_wrap");
if(jQuery($WrapImage).find('#' + $TargetInnerId).length <=0){
jQuery($WrapImage).append('<div id="' + $TargetInnerId + '" class="image_item" ></div>');
jQuery($TargetInner).on('mouseover', function(){
let $NewTarget=jQuery(this).parents(".sc_blogger_portmodern").find(".decor_image_wrap");
jQuery($NewTarget).find('div#' + $TargetInnerId + '').css({'background-image': 'url(' + $TargetInnerImg + ')'});
})
}});
}
jQuery(".sc_blogger_portmodern .sc_blogger_item").each(function(){
let $Target=jQuery(this);
let $TargetInner=$Target.find('.sc_blogger_item_title');
let $TargetInnerId=$TargetInner.data('item-id');
let $WrapImage=jQuery(this).parents(".sc_blogger_portmodern").find(".decor_image_wrap");
jQuery($TargetInner).on('mouseover', function(){
jQuery($WrapImage).find('div#' + $TargetInnerId + '').addClass('active_image')
}).on('mouseleave', function(){
let $WrapImage=jQuery(this).parents(".sc_blogger_portmodern").find(".image_item");
jQuery($WrapImage).removeClass('active_image');
});
});
jQuery(".sc_blogger_portmodern .sc_blogger_item").each(function(){
jQuery(this).find(".sc_blogger_item_title").on('click', function(){
let $eachTitleItem=jQuery(this).parents(".sc_blogger_portmodern").find(".sc_blogger_item").find(".sc_blogger_item_title");
let $WrapPreview=jQuery(this).parents(".sc_blogger_portmodern").find(".portfolio_preview");
let $PreviewDescription=jQuery($WrapPreview).find(".portfolio_description");
let $PreviewImage=jQuery($WrapPreview).find(".portfolio_image");
let $PreviewClose=jQuery($WrapPreview).find(".close");
let $TargetInnerDetails=jQuery(this).data('details');
let $TargetInnerImg=jQuery(this).data('item-image');
$PreviewImage.css({'background-image': 'url(' + $TargetInnerImg + ')'});
$PreviewDescription.html($TargetInnerDetails);
jQuery($eachTitleItem).addClass('anim_fade');
jQuery($WrapPreview).addClass('portfolio_preview_show');
if($WrapPreview.hasClass('portfolio_preview_show')){
jQuery('html').addClass('portfolio_preview_opened');
$PreviewClose.on('click', function(){
jQuery('html').removeClass('portfolio_preview_opened');
jQuery($eachTitleItem).removeClass('anim_fade');
jQuery($WrapPreview).removeClass('portfolio_preview_show');
jQuery($PreviewDescription).empty();
});
jQuery(window).on('keyup', function(e){
if(e.keyCode===27){
jQuery('html').removeClass('portfolio_preview_opened');
jQuery($WrapPreview).removeClass('portfolio_preview_show');
jQuery($eachTitleItem).removeClass('anim_fade');
jQuery($PreviewDescription).empty();
}});
}
var $share_items=$PreviewDescription.find('.socials_share .social_items:not(.inited)');
if($share_items.length > 0){
$share_items
.addClass('inited')
.on('click', '.social_item_popup', function(e){
var url=jQuery(this).data('link');
window.open(url, '_blank', 'scrollbars=0, resizable=1, menubar=0, left=100, top=100, width=480, height=400, toolbar=0, status=0');
e.preventDefault();
return false;
})
.on('click', '.social_item[data-copy-link-url]', function(e){
var $self=jQuery(this),
url=$self.data('copy-link-url');
if(url!=''){
trx_addons_copy_to_clipboard(url);
var msg=$self.data('message') ? $self.data('message'):ABELLE_STORAGE['msg_copied'];
if(msg){
$self.attr('data-tooltip-text', msg);
setTimeout(function(){
$self.removeAttr('data-tooltip-text');
}, 3000);
}}
e.preventDefault();
return false;
});
}});
});
}}
function abelle_skin_audio_init(){
jQuery('[class*="single_style_style-"]:not(.single_style_style-1):not(.single_style_style-3) .post_header_wrap_in_header .post_featured.with_audio.with_thumb:not(.audio_inited)').addClass('audio_inited').each(function(){
var featured=jQuery(this);
var audio_wrap=featured.find('.post_audio');
var btn=jQuery('<div class="post_audio_btn"></div>');
featured.prepend(btn);
btn.on('click', function(){
audio_wrap.toggleClass('show');
audio_wrap.find('.mejs-playpause-button').click();
});
});
}
jQuery(window).load(function(){
abelle_skin_audio_init();
skin_add_custom_width_filter_list();
background_image_portfolio_stretch();
abelle_skin_post_header_init();
});
jQuery(document).on('action.ready_abelle', function(){
extra_margin_top_video_popup_button();
mousemove_for_portfolio_large();
mousemove_for_portfolio_small();
skin_blogger_toggle_filter_add_element();
skin_blogger_controls_title();
if(typeof window.TweenMax!='undefined'){
if(jQuery('.post_item_404').length > 0){
var $layer_1=jQuery('.post_item_404 .svg-1'),
$layer_2=jQuery('.post_item_404 .svg-2'),
$layer_3=jQuery('.post_item_404 .svg-3'),
$layer_4=jQuery('.post_item_404 .svg-4'),
$container=jQuery('.error404 .page_content_wrap'),
container_w=$container.width(),
container_h=$container.height();
jQuery(window).on('mousemove.parallax', function (event){
var pos_x=event.pageX,
pos_y=event.pageY,
left=0,
top=0;
left=container_w / 2 - pos_x;
top=container_h / 2 - pos_y;
TweenMax.to($layer_1,
1,
{
css: {
transform: 'translateX(' + left / 25 + 'px) translateY(' + top / 25 + 'px)'
},
ease: Power2.easeOut,
overwrite: 'all' //'none'
});
TweenMax.to($layer_2,
1,
{
css: {
transform: 'translateX(' + left / 35 + 'px) translateY(' + top / 35 + 'px)'
},
ease: Power2.easeOut,
overwrite: 'all'
});
TweenMax.to($layer_3,
1,
{
css: {
transform: 'translateX(' + left / 55 + 'px) translateY(' + top / 55 + 'px)'
},
ease: Power2.easeOut,
overwrite: 'all' //'none'
});
TweenMax.to($layer_4,
1,
{
css: {
transform: 'translateX(' + left / 70 + 'px) translateY(' + top / 70 + 'px)'
},
ease: Power2.easeOut,
overwrite: 'all' //'none'
});
});
}}
if(jQuery('.woocommerce-product-gallery__wrapper > .tinv-wraper').length > 0){
var tinv=jQuery('.woocommerce-product-gallery__wrapper > .tinv-wraper');
jQuery('.woocommerce-product-gallery__wrapper').after(tinv);
}
if(jQuery('.VanillaTiltHover').length > 0){
VanillaTilt.init(document.querySelectorAll('.VanillaTiltHover'), {
max: 8,
speed: 1000,
scale: 1.05,
transition: true,
easing: 'cubic-bezier(.03,.98,.52,.99)',
perspective: 1200,
});
}
if(jQuery('.start-inner-3d').length > 0){
VanillaTilt.init(document.querySelectorAll('.start-inner-3d'), {
max: 5,
speed: 1000,
scale: 1,
transition: true,
easing: 'cubic-bezier(.03,.98,.52,.99)',
perspective: 1500,
});
}
if(jQuery('.tilt_action').length > 0){
VanillaTilt.init(document.querySelectorAll('.tilt_action'), {
max: 8,
speed: 1000,
scale: 1.05,
transition: true,
easing: 'cubic-bezier(.03,.98,.52,.99)',
perspective: 1400,
});
}
if(jQuery('.tilt_action_cat_list').length > 0){
VanillaTilt.init(document.querySelectorAll('.tilt_action_cat_list'), {
max: 8,
speed: 1500,
scale: 1.02,
transition: true,
easing: 'cubic-bezier(.03,.98,.52,.99)',
perspective: 2400,
});
}
jQuery('.tribe-events-view').on('beforeAjaxComplete.tribeEvents beforeAjaxSuccess.tribeEvents beforeAjaxError.tribeEvents', abelle_tribe_events_after_ajax);
function abelle_tribe_events_after_ajax(jqXHR, textStatus){
setTimeout(function(){
jQuery('.tribe-events-view').on('beforeAjaxComplete.tribeEvents beforeAjaxSuccess.tribeEvents beforeAjaxError.tribeEvents', abelle_tribe_events_after_ajax);
}, 10);
}
jQuery('.wpcf7-submit').wrap("<span class='wpcf7-submit-style'></span>").after("<span class='submit-style-in'></span>");
if(jQuery('div.wpcf7 .style-line .wpcf7-form-control-wrap').length > 0){
jQuery('div.wpcf7 .style-line .wpcf7-form-control-wrap').each(function (){
jQuery(this).append('<span class="line"></span>');
}
);
}
function textarea_auto_height(txt){
var hiddenDiv=jQuery(document.createElement('div')),
content=null;
txt.addClass('noscroll');
hiddenDiv.addClass('hiddendiv');
txt.after(hiddenDiv);
if(txt.val()){
hiddenDiv.html(txt.val());
txt.animate({ 'height':hiddenDiv.outerHeight()
},800);
}
txt.bind('keyup', function(){
content=txt.val();
content=content.replace(/\n/g, '<br>');
hiddenDiv.html(content);
txt.animate({ 'height':hiddenDiv.outerHeight()
},50);
});
}
if(jQuery('div.wpcf7 .form-style-2 textarea').length > 0){
jQuery('div.wpcf7 .form-style-2 textarea').each(function (){
textarea_auto_height(jQuery(this));
});
}
if(jQuery('.mc4wp-form-fields').length > 0){
var count_mc4wp=1;
jQuery('.mc4wp-form-fields').each(function (){
jQuery(this).find('input[type="checkbox"]').each(function (){
var id=jQuery(this).attr('id');
if(id){}else{
id='go';
}
jQuery(this).attr('id', id + count_mc4wp);
jQuery(this).next('label').attr('for', id + count_mc4wp);
count_mc4wp++;
});
});
}
function mc4wpGO(form){
jQuery(form).each(function (){
var form=jQuery(this),
btn=form.find('button, input[type="submit"], input[type="button"]');
var $i_agree=form.find('input[type="checkbox"][name="i_agree_privacy_policy"]:not(.inited)'
+ ',input[type="checkbox"][name="gdpr_terms"]:not(.inited)'
+ ',input[type="checkbox"][name="wpgdprc"]:not(.inited)'
+ ',input[type="checkbox"][name="AGREE_TO_TERMS"]:not(.inited)'
);
form.addClass('inited_validation');
if($i_agree.length > 0){
$i_agree.addClass('inited');
}
btn.on('click', function(e){
form.find('.trx_addons_message_box').remove();
if($i_agree.length > 0){
if(! $i_agree.get(0).checked){
form.append('<div class="trx_addons_message_box trx_addons_message_box_error">' + ABELLE_STORAGE['msg_i_agree_error'] + '</div>');
var error_msg=form.find('.trx_addons_message_box');
error_msg.fadeIn(600);
setTimeout(function(){
error_msg.fadeOut(600, function(){error_msg=form.find('.trx_addons_message_box');
error_msg.remove();
});
}, 3000);
e.preventDefault();
return false;
}}
var rez=abelle_form_validate(form, {
error_message_show: true,
error_message_time: 3000,
error_message_class: 'trx_addons_message_box trx_addons_message_box_error',
error_message_text: 'Global error text',
error_fields_class: 'mc4wp_error_field',
exit_after_first_error: true,
rules: [
{
field: 'EMAIL',
min_length: {value: 7, message: ABELLE_STORAGE['mc4wp_msg_email_min']},
max_length: {value: 60, message: ABELLE_STORAGE['mc4wp_msg_email_max']},
mask: {
value: '^([a-zA-Z0-9_\\-]+\\.)*[a-zA-Z0-9_\\-]+@[a-zA-Z0-9_\\-]+(\\.[a-zA-Z0-9_\\-]+)*\\.[a-zA-Z]{2,6}$',
message: 'Invalid email address'
}},
]
});
if(!rez){
jQuery(form).submit();
}else{
e.preventDefault();
return rez;
}});
});
}
mc4wpGO(jQuery(".mc4wp-form:not(.inited_validation)"));
var $document=jQuery(document),
body=jQuery('body');
$document.on('action.mobile_menu_open', function(e, $menu){
$menu.find('.menu_mobile_widgets_area a[href*="mailto"]').addClass('underline_anim');
setTimeout(
function(){
$menu.find('.menu_mobile_widgets_area a[href*="mailto"]').addClass('underline_do_hover');
}, 600
);
});
$document.on('action.mobile_menu_close', function(e, $menu){
$menu.addClass('out_anim');
setTimeout(function (){
$menu.removeClass('out_anim');
jQuery('.menu_mobile_widgets_area a[href*="mailto"]').removeClass('underline_do_hover');
}, 1000);
});
abelle_add_filter('abelle_filter_mobile_menu_close_timeout', function(timeout, $menu){
return 1000;
});
body.find('.sc_layouts_panel_menu:not(.inited)').each(function(){
var self=jQuery(this),
id=self.attr('id');
if(!id) return;
var link=jQuery('a[href="#'+id+'"]');
if(link.length===0){
body.append('<a href="#'+id+'" class="trx_addons_hidden"></a>');
link=jQuery('a[href="#'+id+'"]');
}
link.addClass('trx_addons_panel_menu_link');
});
function abelle_skin_open_panel(id){
var $panel=jQuery('#' + id).addClass('opened');
$panel.prev('.sc_layouts_panel_menu_overlay').fadeIn();
$panel.find('[class*="trx_addons_title_with_link"] > a:not(.underline_anim)').addClass('underline_anim');
setTimeout(
function(){
$panel.find('[class*="trx_addons_title_with_link"] > a.underline_anim').addClass('underline_do_hover');
}, 600
);
body.addClass('sc_layouts_panel_menu_opened');
$document.trigger('action.stop_wheel_handlers');
}
jQuery('.trx_addons_panel_menu_link:not(.panel_inited)')
.addClass('panel_inited')
.on('click', function(e){
abelle_skin_open_panel(jQuery(this).attr('href').substring(1));
e.preventDefault();
return false;
});
function abelle_skin_close_panel(){
var $panel=jQuery('.sc_layouts_panel_menu.opened').addClass('out_anim');
jQuery('.sc_layouts_panel_menu_close').parents('sc_layouts_panel_menu').addClass('out_anim');
setTimeout(function (){
$panel.prev('.sc_layouts_panel_menu_overlay').fadeOut();
$panel.removeClass('out_anim').removeClass('opened');
$panel.find('[class*="trx_addons_title_with_link"] > a.underline_anim').removeClass('underline_do_hover');
body.removeClass('sc_layouts_panel_menu_opened');
$document.trigger('action.start_wheel_handlers');
}, 1000);
}
$document
.on('keyup', function(e){
var $panel=jQuery('.sc_layouts_panel_menu.opened');
if(e.keyCode===27){
if($panel.length===1){
abelle_skin_close_panel();
e.preventDefault();
return false;
}}
}
);
jQuery('.sc_layouts_panel_menu_close, .sc_layouts_panel_menu_overlay')
.on('click', function(e){
abelle_skin_close_panel();
e.preventDefault();
return false;
}
);
jQuery('.sc_layouts_panel_menu_close')
.on('keyup', function(e){
var $panel=jQuery('.sc_layouts_panel_menu.opened');
if(e.keyCode===13){
if($panel.length===1){
abelle_skin_close_panel();
e.preventDefault();
return false;
}}
})
.on('focus', function(){
if(! body.hasClass('sc_layouts_panel_menu_opened') ){
jQuery('#content_skip_link_anchor').focus();
}});
}
);
var $search_wrap=jQuery('.search_modern .search_wrap:not(.inited)');
if($search_wrap.length > 0){
jQuery($search_wrap.each(function(){
var $body=jQuery('body'),
$search_wrap_init=jQuery(this).addClass('inited'),
search_field=$search_wrap_init.find('.search_field'),
ajax_timer=null;
search_field.on('keyup', function(e){
if(e.keyCode===27){
search_field.val('');
$body.addClass('search_out_anim');
setTimeout(function (){
abelle_search_close($search_wrap_init);
$body.removeClass('search_open_anim');
$body.removeClass('search_out_anim');
$search_wrap_init.next('.search_overlay').fadeOut();
e.preventDefault();
return false;
}, 800);
setTimeout(function (){
$search_wrap_init.parent().removeClass('search_active');
$body.removeClass('search_active');
}, 1200);
}
if($search_wrap_init.hasClass('search_ajax')){
var s=search_field.val();
if(ajax_timer){
clearTimeout(ajax_timer);
ajax_timer=null;
}
if(s.length >=4){
ajax_timer=setTimeout(function (){
$search_wrap_init.addClass('search_progress');
jQuery.post(TRX_ADDONS_STORAGE['ajax_url'], {
action: 'ajax_search',
nonce: TRX_ADDONS_STORAGE['ajax_nonce'],
text: s,
post_types: $search_wrap_init.find('input[name="post_types"]').val()
}).done(function (response){
clearTimeout(ajax_timer);
ajax_timer=null;
var rez={};
if(response==''||response==0){
rez={error: TRX_ADDONS_STORAGE['msg_search_error']};}else{
try {
rez=JSON.parse(response);
} catch (e){
rez={error: TRX_ADDONS_STORAGE['msg_search_error']};
console.log(response);
}}
var msg=rez.error==='' ? rez.data:rez.error;
$search_wrap_init.removeClass('search_progress');
search_field.parents('.search_ajax').find('.search_results_content').empty().append(msg);
search_field.parents('.search_ajax').find('.search_results').fadeIn();
jQuery(document).trigger('action.got_ajax_response', {
action: 'ajax_search',
result: rez
});
});
}, 500);
}}
});
var  $search=$search_wrap_init.prev('.search_submit');
$search.on('click', function(e){
$search_wrap_init.parent().addClass('search_active');
$body.addClass('search_active');
if(!$search_wrap_init.hasClass('search_opened')){
$search_wrap_init.addClass('search_opened');
$body.addClass('search_open_anim');
$search_wrap_init.next('.search_overlay').fadeIn();
setTimeout(function(){ search_field.get(0).focus(); }, 500);
}else if(search_field.val()===''){
if($search_wrap_init.hasClass('search_opened'))
abelle_search_close($search_wrap_init);
else
search_field.get(0).focus();
}else{
$search_wrap_init.addClass('search_progress');
$search_wrap_init.find('form').get(0).submit();
}
e.preventDefault();
return false;
});
$search_wrap_init.find('.search_close').add($search_wrap_init.next('.search_overlay')
).on('click', function(e){
$body.addClass('search_out_anim');
setTimeout(function (){
abelle_search_close($search_wrap_init);
$body.removeClass('search_open_anim');
$body.removeClass('search_out_anim');
$search_wrap_init.next('.search_overlay').fadeOut();
e.preventDefault();
return false;
}, 800);
setTimeout(function (){
$search_wrap_init.parent().removeClass('search_active');
$body.removeClass('search_active');
}, 1200);
});
$search_wrap_init.find('.search_results_close').on('click', function(e){
jQuery(this).parent().fadeOut();
e.preventDefault();
return false;
});
$search_wrap_init.on('click', '.search_more', function(e){
if(search_field.val()!=='')
$search_wrap_init.find('form').get(0).submit();
e.preventDefault();
return false;
});
}));
}
function abelle_search_close($search_wrap_init){
$search_wrap_init.removeClass('search_opened');
$search_wrap_init.find('.search_results').fadeOut();
}
jQuery(document).on('action.add_googlemap_styles', function(e){
if(typeof TRX_ADDONS_STORAGE=='undefined') return;
TRX_ADDONS_STORAGE['googlemap_styles']['extra']=[{"featureType": "water", "elementType": "geometry", "stylers": [{"color": "#e9e9e9"}, {"lightness": 17}]}, {"featureType": "landscape", "elementType": "geometry", "stylers": [{"color": "#f5f5f5"}, {"lightness": 20}]}, {"featureType": "road.highway", "elementType": "geometry.fill", "stylers": [{"color": "#ffffff"}, {"lightness": 17}]}, {"featureType": "road.highway", "elementType": "geometry.stroke", "stylers": [{"color": "#ffffff"}, {"lightness": 29}, {"weight": 0.2}]}, {"featureType": "road.arterial", "elementType": "geometry", "stylers": [{"color": "#ffffff"}, {"lightness": 18}]}, {"featureType": "road.local", "elementType": "geometry", "stylers": [{"color": "#ffffff"}, {"lightness": 16}]}, {"featureType": "poi", "elementType": "geometry", "stylers": [{"color": "#f5f5f5"}, {"lightness": 21}]}, {"featureType": "poi.park", "elementType": "geometry", "stylers": [{"color": "#dedede"}, {"lightness": 21}]}, {"elementType": "labels.text.stroke", "stylers": [{"visibility": "on"}, {"color": "#ffffff"}, {"lightness": 16}]}, {"elementType": "labels.text.fill", "stylers": [{"saturation": 36}, {"color": "#333333"}, {"lightness": 40}]}, {"elementType": "labels.icon", "stylers": [{"visibility": "off"}]}, {"featureType": "transit", "elementType": "geometry", "stylers": [{"color": "#f2f2f2"}, {"lightness": 19}]}, {"featureType": "administrative", "elementType": "geometry.fill", "stylers": [{"color": "#fefefe"}, {"lightness": 20}]}, {"featureType": "administrative", "elementType": "geometry.stroke", "stylers": [{"color": "#fefefe"}, {"lightness": 17}, {"weight": 1.2}]}];
});
jQuery(document).on('action.init_hidden_elements', function(){
skin_blogger_toggle_filter_upd_value();
skin_add_custom_width_filter_list();
mousemove_for_portfolio_large();
mousemove_for_portfolio_small();
add_portfolio_image_wrap();
background_image_portfolio_stretch();
skin_blogger_controls_title();
}
);
jQuery(document).on('action.scroll_abelle', function(){
}
);
jQuery(document).on('action.resize_abelle', function(){
extra_margin_top_video_popup_button();
abelle_skin_post_header_init();
skin_add_custom_width_filter_list();
}
);
function extra_margin_top_video_popup_button(){
if(jQuery('.single-format-video .post_header_wrap_style_style-1 .post_featured.with_video.with_thumb.post_featured_bg + .post_header').length > 0){
var alter_height=jQuery('.single-format-video .post_header_wrap_style_style-1 .post_featured.with_video.with_thumb.post_featured_bg + .post_header').height();
jQuery('.single-format-video .post_header_wrap_style_style-1 .post_featured.with_video.with_thumb.post_featured_bg .post_video_hover_popup').css({"margin-top": (- alter_height / 2 + 'px'), "opacity":1});
}}
jQuery('.abelle_woocommerce_filters_button,.sidebar > .sidebar_close,.sidebar_overlay').on('click', function(e){
var sidebar_float=jQuery('.sidebar.sidebar_float');
sidebar_float.addClass('float_anim');
setTimeout(function (){
sidebar_float.removeClass('float_anim');
e.preventDefault();
return false;
}, 400);
});
})();
(function(){
var supportsPassive=false;
try {
var opts=Object.defineProperty({}, 'passive', {
get:function(){
supportsPassive=true;
}});
window.addEventListener('testPassive', null, opts);
window.removeEventListener('testPassive', null, opts);
} catch(e){}
function init(){
var input_begin='';
var keydowns={};
var lastKeyup=null;
var lastKeydown=null;
var keypresses=[];
var modifierKeys=[];
var correctionKeys=[];
var lastMouseup=null;
var lastMousedown=null;
var mouseclicks=[];
var mouseclickCoordinates=[];
var mousemoveTimer=null;
var lastMousemoveX=null;
var lastMousemoveY=null;
var mousemoveStart=null;
var mousemoves=[];
var touchmoveCountTimer=null;
var touchmoveCount=0;
var lastTouchEnd=null;
var lastTouchStart=null;
var touchEvents=[];
var scrollCountTimer=null;
var scrollCount=0;
var correctionKeyCodes=[ 'Backspace', 'Delete', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Home', 'End', 'PageUp', 'PageDown' ];
var modifierKeyCodes=[ 'Shift', 'CapsLock' ];
var forms=document.querySelectorAll('form[method=post]');
for(var i=0; i < forms.length; i++){
var form=forms[i];
var formAction=form.getAttribute('action');
if(formAction){
if(formAction.indexOf('http://')==0||formAction.indexOf('https://')==0){
if(formAction.indexOf('http://' + window.location.hostname + '/')!=0&&formAction.indexOf('https://' + window.location.hostname + '/')!=0){
continue;
}}
}
form.addEventListener('submit', function (){
var ak_bkp=prepare_array_for_request(keypresses);
var ak_bmc=prepare_array_for_request(mouseclicks);
var ak_bte=prepare_array_for_request(touchEvents);
var ak_bmm=prepare_array_for_request(mousemoves);
var ak_bcc=prepare_array_for_request(mouseclickCoordinates);
var input_fields={
'bib': input_begin,
'bfs': Date.now(),
'bkpc': keypresses.length,
'bkp': ak_bkp,
'bmc': ak_bmc,
'bmcc': mouseclicks.length,
'bmk': modifierKeys.join(';'),
'bck': correctionKeys.join(';'),
'bmmc': mousemoves.length,
'btmc': touchmoveCount,
'bsc': scrollCount,
'bte': ak_bte,
'btec':touchEvents.length,
'bmm':ak_bmm,
'bcc':ak_bcc
};
var akismet_field_prefix='ak_';
if(this.getElementsByClassName){
var possible_akismet_containers=this.getElementsByClassName('akismet-fields-container');
for(var containerIndex=0; containerIndex < possible_akismet_containers.length; containerIndex++){
var container=possible_akismet_containers.item(containerIndex);
if(container.getAttribute('data-prefix') ){
akismet_field_prefix=container.getAttribute('data-prefix');
break;
}}
}
for(var field_name in input_fields){
var field=document.createElement('input');
field.setAttribute('type', 'hidden');
field.setAttribute('name', akismet_field_prefix + field_name);
field.setAttribute('value', input_fields[ field_name ]);
this.appendChild(field);
}}, supportsPassive ? { passive: true }:false);
form.addEventListener('keydown', function(e){
if(e.key in keydowns){
return;
}
var keydownTime=(new Date()).getTime();
keydowns[ e.key ]=[ keydownTime ];
if(! input_begin){
input_begin=keydownTime;
}
var lastKeyEvent=Math.max(lastKeydown, lastKeyup);
if(lastKeyEvent){
keydowns[ e.key ].push(keydownTime - lastKeyEvent);
}
lastKeydown=keydownTime;
}, supportsPassive ? { passive: true }:false);
form.addEventListener('keyup', function(e){
if(!(e.key in keydowns) ){
return;
}
var keyupTime=(new Date()).getTime();
if('TEXTAREA'===e.target.nodeName||'INPUT'===e.target.nodeName){
if(-1!==modifierKeyCodes.indexOf(e.key) ){
modifierKeys.push(keypresses.length - 1);
}else if(-1!==correctionKeyCodes.indexOf(e.key) ){
correctionKeys.push(keypresses.length - 1);
}else{
var keydownTime=keydowns[ e.key ][0];
var keypress=[];
keypress.push(keyupTime - keydownTime);
if(keydowns[ e.key ].length > 1){
keypress.push(keydowns[ e.key ][1]);
}
keypresses.push(keypress);
}}
delete keydowns[ e.key ];
lastKeyup=keyupTime;
}, supportsPassive ? { passive: true }:false);
form.addEventListener("focusin", function(e){
lastKeydown=null;
lastKeyup=null;
keydowns={};}, supportsPassive ? { passive: true }:false);
form.addEventListener("focusout", function(e){
lastKeydown=null;
lastKeyup=null;
keydowns={};}, supportsPassive ? { passive: true }:false);
}
document.addEventListener('mousedown', function(e){
lastMousedown=(new Date()).getTime();
var mouseclickCoordinate=[];
var rect=e.target.getBoundingClientRect();
var relativeX=e.clientX - rect.left;
var relativeY=e.clientY - rect.top;
mouseclickCoordinate.push(Math.round(relativeX) );
mouseclickCoordinate.push(Math.round(relativeY) );
mouseclickCoordinate.push(rect.width > 0 ? Math.round(relativeX / rect.width * 100):0);
mouseclickCoordinate.push(rect.height > 0 ? Math.round(relativeY / rect.height * 100):0);
mouseclickCoordinates.push(mouseclickCoordinate);
}, supportsPassive ? { passive: true }:false);
document.addEventListener('mouseup', function(e){
if(! lastMousedown){
return;
}
var now=(new Date()).getTime();
var mouseclick=[];
mouseclick.push(now - lastMousedown);
if(lastMouseup){
mouseclick.push(lastMousedown - lastMouseup);
}
mouseclicks.push(mouseclick);
lastMouseup=now;
lastKeydown=null;
lastKeyup=null;
keydowns={};}, supportsPassive ? { passive: true }:false);
document.addEventListener('mousemove', function(e){
if(mousemoveTimer){
clearTimeout(mousemoveTimer);
mousemoveTimer=null;
}else{
mousemoveStart=(new Date()).getTime();
lastMousemoveX=e.offsetX;
lastMousemoveY=e.offsetY;
}
mousemoveTimer=setTimeout(function(theEvent, originalMousemoveStart){
var now=(new Date()).getTime() - 500;
var mousemove=[];
mousemove.push(now - originalMousemoveStart);
mousemove.push(Math.round(Math.sqrt(Math.pow(theEvent.offsetX - lastMousemoveX, 2) +
Math.pow(theEvent.offsetY - lastMousemoveY, 2)
)
)
);
if(mousemove[1] > 0){
mousemoves.push(mousemove);
}
mousemoveStart=null;
mousemoveTimer=null;
}, 500, e, mousemoveStart);
}, supportsPassive ? { passive: true }:false);
document.addEventListener('touchmove', function(e){
if(touchmoveCountTimer){
clearTimeout(touchmoveCountTimer);
}
touchmoveCountTimer=setTimeout(function (){
touchmoveCount++;
}, 500);
}, supportsPassive ? { passive: true }:false);
document.addEventListener('touchstart', function(e){
lastTouchStart=(new Date()).getTime();
}, supportsPassive ? { passive: true }:false);
document.addEventListener('touchend', function(e){
if(! lastTouchStart){
return;
}
var now=(new Date()).getTime();
var touchEvent=[];
touchEvent.push(now - lastTouchStart);
if(lastTouchEnd){
touchEvent.push(lastTouchStart - lastTouchEnd);
}
touchEvents.push(touchEvent);
lastTouchEnd=now;
lastKeydown=null;
lastKeyup=null;
keydowns={};}, supportsPassive ? { passive: true }:false);
document.addEventListener('scroll', function(e){
if(scrollCountTimer){
clearTimeout(scrollCountTimer);
}
scrollCountTimer=setTimeout(function (){
scrollCount++;
}, 500);
}, supportsPassive ? { passive: true }:false);
}
function prepare_array_for_request(a, limit){
if(! limit){
limit=100;
}
var rv='';
if(a.length > 0){
var random_starting_point=Math.max(0, Math.floor(Math.random() * a.length - limit) );
for(var i=0; i < limit&&i < a.length; i++){
var entry=a[ random_starting_point + i ];
rv +=entry.join(',') + ';';
}}
return rv;
}
if(document.readyState!=='loading'){
init();
}else{
document.addEventListener('DOMContentLoaded', init);
}})();
USR_PREFS_CK_NAME="undefined"!=typeof USR_PREFS_CK_NAME?USR_PREFS_CK_NAME:"lwaio_consent_preferences",ACTED_CONSENT_CK_NAME="undefined"!=typeof ACTED_CONSENT_CK_NAME?ACTED_CONSENT_CK_NAME:"lwaio_consent_acted",EXP_CK_NAME="undefined"!=typeof EXP_CK_NAME?EXP_CK_NAME:"1 Year",function(e){"use strict";let t={set:function(e,t,o,i=""){let s="";if(o){let e=new Date;e.setTime(e.getTime()+24*o*60*60*1e3),s="; expires="+e.toGMTString()}i&&(i="; domain="+i),document.cookie=e+"="+t+s+"; path=/"+i},read:function(e){let t=e+"=",o=document.cookie.split(";"),i=o.length;for(let e=0;e<i;e++){let i=o[e];for(;" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null},exists:function(e){return null!==this.read(e)},getallcookies:function(){let e=document.cookie.split(";"),t={},o=e.length;for(let i=0;i<o;i++){let o=e[i].split("=");t[(o[0]+"").trim()]=unescape(o[1])}return t},erase:function(e,t){t?this.set(e,"",-10,t):this.set(e,"",-10)}},o={bar_config:{},show_config:{},allowed_categories:[],set:function(e){if("function"!=typeof JSON.parse)return void console.log("LWAIOCookieConsent requires JSON.parse but your browser doesn't support it");this.settings=JSON.parse(e.settings),EXP_CK_NAME=this.settings.cookie_expiry,this.bar_elm=jQuery(this.settings.notify_div_id),this.show_again_elm=jQuery(this.settings.show_again_div_id),this.details_elm=this.bar_elm.find(".lwaio_messagebar_detail"),this.main_button=jQuery("#cookie_action_accept"),this.main_link=jQuery("#cookie_action_link"),this.reject_button=jQuery("#cookie_action_reject"),this.settings_button=jQuery("#cookie_action_settings"),this.save_button=jQuery("#cookie_action_save"),this.confirm_button=jQuery("#cookie_action_confirm"),this.cancel_button=jQuery("#cookie_action_cancel"),this.accept_all_button=jQuery("#cookie_action_accept_all"),this.configBar(),this.toggleBar(),this.attachEvents(),this.configButtons(),this.settings.auto_scroll&&window.addEventListener("scroll",o.acceptOnScroll,!1);let i=JSON.parse(t.read(USR_PREFS_CK_NAME)),s=t.read(ACTED_CONSENT_CK_NAME),n="";n=new CustomEvent("LwAioCookieConsentOnLoad",{detail:{lwaio_consent_preferences:i,lwaio_consent_acted:s}}),window.dispatchEvent(n)},attachEvents:function(){jQuery(".lwaio_action_button").click(function(e){e.preventDefault();let i="",s="",n="",a="",c=jQuery(this).attr("data-lwaio_action");if("accept_all"==c)o.enableAllCookies(),o.accept_all_close(),s=JSON.parse(t.read(USR_PREFS_CK_NAME)),n=JSON.stringify(s),a=t.read(ACTED_CONSENT_CK_NAME),t.set(USR_PREFS_CK_NAME,n,EXP_CK_NAME),i=new CustomEvent("LwAioCookieConsentOnAcceptAll",{detail:{lwaio_consent_preferences:s,lwaio_consent_acted:a}}),window.dispatchEvent(i),o.logConsent(c);else if("accept"==c)o.accept_close(),s=JSON.parse(t.read(USR_PREFS_CK_NAME)),n=JSON.stringify(s),a=t.read(ACTED_CONSENT_CK_NAME),t.set(USR_PREFS_CK_NAME,n,EXP_CK_NAME),i=new CustomEvent("LwAioCookieConsentOnAccept",{detail:{lwaio_consent_preferences:s,lwaio_consent_acted:a}}),window.dispatchEvent(i),o.logConsent(c);else if("reject"==c){o.reject_close(),s=JSON.parse(t.read(USR_PREFS_CK_NAME)),a=t.read(ACTED_CONSENT_CK_NAME),t.erase(USR_PREFS_CK_NAME),i=new CustomEvent("LwAioCookieConsentOnReject",{detail:{lwaio_consent_preferences:s,lwaio_consent_acted:a}}),window.dispatchEvent(i);let e=t.getallcookies();"object"==typeof e&&null!==e&&jQuery.each(e,function(e,o){e!=ACTED_CONSENT_CK_NAME&&t.erase(e,"."+window.location.host)}),o.logConsent(c)}else"settings"==c?(o.bar_elm.slideUp(o.settings.animate_speed_hide),o.show_again_elm.slideUp(o.settings.animate_speed_hide)):"close"==c?o.displayHeader():"show_settings"==c?o.show_details():"hide_settings"==c?o.hide_details():"close_banner"==c&&(o.hideHeader(),o.accept_close(),"yes"!=(a=t.read(ACTED_CONSENT_CK_NAME))&&(s=JSON.parse(t.read(USR_PREFS_CK_NAME)),n=JSON.stringify(s),t.set(USR_PREFS_CK_NAME,n,EXP_CK_NAME),i=new CustomEvent("LwAioCookieConsentOnAccept",{detail:{lwaio_consent_preferences:s,lwaio_consent_acted:a}}),window.dispatchEvent(i)))}),jQuery(".group-switch-buttons input").each(function(){let e=jQuery(this).val(),i={},s="";if(t.read(USR_PREFS_CK_NAME)&&(i=JSON.parse(t.read(USR_PREFS_CK_NAME))),"necessary"==e||jQuery(this).is(":checked"))i[e]="yes",o.allowed_categories.push(e);else{i[e]="no";let t=o.allowed_categories.length;for(let i=0;i<t;i++)o.allowed_categories[i]==e&&o.allowed_categories.splice(i,1)}s=JSON.stringify(i),t.set(USR_PREFS_CK_NAME,s,EXP_CK_NAME)}),jQuery(document).on("click","#lwaio-consent-show-again",function(t){t.preventDefault(),jQuery(o.settings.notify_div_id).find("p.lwaio").show(),jQuery(o.settings.notify_div_id).find(".lwaio.group-description-buttons").show(),o.displayHeader(),e(this).hide()}),jQuery(document).on("click",".group-switch-buttons input",function(){let e=jQuery(this).val(),i={},s="";if(t.read(USR_PREFS_CK_NAME)&&(i=JSON.parse(t.read(USR_PREFS_CK_NAME))),jQuery(this).is(":checked"))i[e]="yes",o.allowed_categories.push(e);else{i[e]="no";let t=o.allowed_categories.length;for(let i=0;i<t;i++)o.allowed_categories[i]==e&&o.allowed_categories.splice(i,1)}s=JSON.stringify(i),t.set(USR_PREFS_CK_NAME,s,EXP_CK_NAME)}),jQuery(document).on("click","#lwaio_consent_tabs_overview",function(e){e.preventDefault();let t=jQuery(this);jQuery("#lwaio_consent_tabs").find("a").removeClass("tab_selected"),t.addClass("tab_selected"),t.css("border-bottom-color",o.settings.border_active_color),t.css("background-color",o.settings.background_active_color),jQuery("#lwaio_consent_tabs_about").css("border-bottom-color",o.settings.border_color),jQuery("#lwaio_consent_tabs_about").css("background-color",o.settings.background_color),jQuery("#lwaio_consent_about").hide(),jQuery("#lwaio_consent_overview").show()}),jQuery(document).on("click","#lwaio_consent_tabs_about",function(e){e.preventDefault();let t=jQuery(this);jQuery("#lwaio_consent_tabs").find("a").removeClass("tab_selected"),t.addClass("tab_selected"),t.css("border-bottom-color",o.settings.border_active_color),t.css("background-color",o.settings.background_active_color),jQuery("#lwaio_consent_tabs_overview").css("border-bottom-color",o.settings.border_color),jQuery("#lwaio_consent_tabs_overview").css("background-color",o.settings.background_color),jQuery("#lwaio_consent_overview").hide(),jQuery("#lwaio_consent_about").show()}),jQuery(document).on("click","#lwaio_consent_overview_cookie_container_types a",function(e){e.preventDefault();let t=jQuery(this),i=t.parent();i.find("a").removeClass("lwaio_consent_overview_cookie_container_type_selected"),i.find("a").css("border-right-color",o.settings.border_color),i.find("a").css("background-color",o.settings.background_color),t.addClass("lwaio_consent_overview_cookie_container_type_selected"),t.css("border-right-color",o.settings.border_active_color),t.css("background-color",o.settings.background_active_color);let s=jQuery(this).attr("data-target"),n=i.siblings("#lwaio_consent_overview_cookie_container_type_details");n.find(".lwaio_consent_cookie_type_details").hide(),n.find("#"+s).show()})},configButtons:function(){this.settings_button.attr("style",`color: ${this.settings.button_link_color} !important; background-color: ${this.settings.secondary_color} !important`),this.main_button.css("color",this.settings.button_link_color),this.main_button.css("background-color",this.settings.primary_color),this.accept_all_button.css("color",this.settings.button_link_color),this.accept_all_button.css("background-color",this.settings.primary_color),this.confirm_button.css("color",this.settings.button_link_color),this.confirm_button.css("background-color",this.settings.primary_color),this.main_link.css("color",this.settings.secondary_color),this.reject_button.css("display","inline-block"),this.reject_button.attr("style",`color: ${this.settings.button_link_color} !important; background-color: ${this.settings.secondary_color} !important`),this.cancel_button.css("color",this.settings.button_link_color),this.cancel_button.css("display","inline-block"),this.cancel_button.css("background-color",this.settings.secondary_color),this.save_button.css("color",this.settings.button_link_color),this.save_button.css("background-color",this.settings.primary_color),this.details_elm.find("table.lwaio_consent_cookie_type_table tr").css("border-color",o.settings.border_color),this.details_elm.find(".lwaio_consent_cookie_type_intro").css("border-color",o.settings.border_color),this.details_elm.find("a").each(function(){jQuery(this).css("border-color",o.settings.border_color),jQuery(this).css("background-color",o.settings.background_color)}),this.details_elm.find("a.lwaio_consent_overview_cookie_container_type_selected").css("border-right-color",o.settings.border_active_color),this.details_elm.find("a.lwaio_consent_overview_cookie_container_type_selected").css("background-color",o.settings.background_active_color),this.details_elm.find("#lwaio_consent").css("border-color",o.settings.border_color),this.details_elm.find("#lwaio_consent_tabs").css("border-color",o.settings.border_color),this.details_elm.find("#lwaio_consent_tabs .tab_selected").css("border-bottom-color",o.settings.border_active_color),this.details_elm.find("#lwaio_consent_tabs .tab_selected").css("background-color",o.settings.background_active_color)},configBar:function(){this.bar_config={"background-color":this.settings.background,color:this.settings.text,"border-top":"1px solid "+this.settings.secondary_color},this.show_config={width:"auto","background-color":this.settings.background,color:this.settings.text,position:"fixed",opacity:this.settings.opacity,bottom:"0","border-top":"1px solid "+this.settings.secondary_color},"right"==this.settings.show_again_position?this.show_config.right=this.settings.show_again_margin+"%":this.show_config.left=this.settings.show_again_margin+"%",this.bar_config.position="fixed",this.bar_config.opacity=this.settings.opacity,this.bar_elm.find(".lwaio_messagebar_content").css("max-width","800px"),"bottom"==this.settings.banner_position?this.bar_config.bottom="0":this.bar_config.top="0",this.bar_elm.css(this.bar_config).hide(),this.show_again_elm.css(this.show_config).hide()},toggleBar:function(){t.exists(ACTED_CONSENT_CK_NAME)?this.hideHeader():(this.displayHeader(),this.settings.auto_hide&&setTimeout(function(){o.accept_close()},this.settings.auto_hide_delay))},accept_close:function(){return t.set(ACTED_CONSENT_CK_NAME,"yes",EXP_CK_NAME),this.settings.notify_animate_hide?this.bar_elm.slideUp(this.settings.animate_speed_hide,i.runScripts):this.bar_elm.hide(i.runScripts),this.show_again_elm.slideDown(this.settings.animate_speed_hide),1==this.settings.accept_reload&&window.location.reload(!0),!1},accept_all_close:function(){return t.set(ACTED_CONSENT_CK_NAME,"yes",EXP_CK_NAME),this.settings.notify_animate_hide?this.bar_elm.slideUp(this.settings.animate_speed_hide,i.runScripts):this.bar_elm.hide(i.runScripts),this.show_again_elm.slideDown(this.settings.animate_speed_hide),1==this.settings.accept_reload&&window.location.reload(!0),!1},reject_close:function(){return t.set(ACTED_CONSENT_CK_NAME,"yes",EXP_CK_NAME),o.disableAllCookies(),this.settings.notify_animate_hide?this.bar_elm.slideUp(this.settings.animate_speed_hide,i.runScripts):this.bar_elm.hide(i.runScripts),this.show_again_elm.slideDown(this.settings.animate_speed_hide),1==this.settings.decline_reload&&window.location.reload(!0),!1},logConsent:function(e){this.settings.logging_on&&jQuery.ajax({url:log_obj.ajax_url,type:"POST",data:{action:"lwaio_log_consent_action",lwaio_user_action:e,cookie_list:t.getallcookies()},success:function(e){}})},disableAllCookies:function(){let i={},s="";t.read(USR_PREFS_CK_NAME)&&(i=JSON.parse(t.read(USR_PREFS_CK_NAME)),jQuery.each(i,function(t,s){if("necessary"!=t){i[t]="no",e('.group-switch-buttons input[value="'+t+'"]').prop("checked",!1);let s=o.allowed_categories.length;for(let e=0;e<s;e++)o.allowed_categories[e]==t&&o.allowed_categories.splice(e,1)}}),s=JSON.stringify(i),t.set(USR_PREFS_CK_NAME,s,EXP_CK_NAME))},enableAllCookies:function(){let i={},s="";t.read(USR_PREFS_CK_NAME)&&(i=JSON.parse(t.read(USR_PREFS_CK_NAME)),jQuery.each(i,function(t,s){if("necessary"!=t){i[t]="yes",e('.group-switch-buttons input[value="'+t+'"]').prop("checked",!0);let s=o.allowed_categories.length;for(let e=0;e<s;e++)o.allowed_categories[e]==t&&o.allowed_categories.splice(e,1)}}),s=JSON.stringify(i),t.set(USR_PREFS_CK_NAME,s,EXP_CK_NAME))},show_details:function(){this.details_elm.show(),this.bar_elm.css("opacity",1),this.details_elm.css("border-top-color",o.settings.border_color),this.settings_button.attr("data-lwaio_action","hide_settings")},hide_details:function(){this.details_elm.hide(),this.bar_elm.css("opacity",o.settings.opacity),this.settings_button.attr("data-lwaio_action","show_settings")},displayHeader:function(e,t){this.bar_elm.show(),e&&(jQuery(o.settings.notify_div_id).find("p.lwaio").hide(),jQuery(o.settings.notify_div_id).find(".lwaio.group-description-buttons").hide()),this.show_again_elm.slideUp(this.settings.animate_speed_hide)},hideHeader:function(e){this.bar_elm.slideUp(this.settings.animate_speed_hide),e||this.show_again_elm.slideDown(this.settings.animate_speed_hide)},acceptOnScroll:function(){let i=e(window).scrollTop()/(e(document).height()-e(window).height());Math.round(100*i)>o.settings.auto_scroll_offset&&!t.exists(ACTED_CONSENT_CK_NAME)&&(o.accept_close(),window.removeEventListener("scroll",o.acceptOnScroll,!1),1==o.settings.auto_scroll_reload&&window.location.reload())}},i={blockingStatus:!0,scriptsLoaded:!1,set:function(e){"function"==typeof JSON.parse?this.cookies=JSON.parse(e.cookies):console.log("LWAIOCookieConsent requires JSON.parse but your browser doesn't support it")},removeCookieByCategory:function(){if(1==i.blockingStatus)for(let e in i.cookies){let s=i.cookies[e],n=s.lwaio_category_slug;if(-1===o.allowed_categories.indexOf(n)){let e=s.data;if(e&&0!=e.length)for(let o in e){let i=e[o];t.erase(i.name)}}}},runScripts:function(){let e=["iframe","IFRAME","EMBED","embed","OBJECT","object","IMG","img"],s=function(e){n.renderScripts(),a.renderSrcElement(),e(),i.scriptsLoaded=!0},n={scriptsDone:function(){let e=document.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),window.document.dispatchEvent(e)},seq:function(e,t,o){void 0===o&&(o=0),e[o](function(){++o===e.length?t():n.seq(e,t,o)})},insertScript:function(e,s){let n=["data-wpl-class","data-wpl-label","data-wpl-placeholder","data-wpl-script-type","data-wpl-src"],a=e.getAttribute("data-wpl-script-type"),c=e.getAttribute("data-wpl-element-position"),r=e.getAttribute("data-wpl-block"),l=document.createElement("script");l.type="text/plain",e.async&&(l.async=e.async),e.defer&&(l.defer=e.defer),e.src?(l.onload=s,l.onerror=s,l.src=e.src):l.textContent=e.innerText;let _=jQuery(e).prop("attributes"),d=_.length;for(let e=0;e<d;++e)"id"!==_[e].nodeName&&-1!==n.indexOf(_[e].nodeName)&&l.setAttribute(_[e].nodeName,_[e].value);!0===i.blockingStatus?("yes"==t.read(ACTED_CONSENT_CK_NAME)&&-1!==o.allowed_categories.indexOf(a)||null==t.read(ACTED_CONSENT_CK_NAME)&&"false"===r)&&(l.setAttribute("data-wpl-consent","accepted"),l.type="text/javascript"):l.type="text/javascript",e.type!=l.type&&("head"===c?(document.head.appendChild(l),e.src||s(),e.parentNode.removeChild(e)):(document.body.appendChild(l),e.src||s(),e.parentNode.removeChild(e)))},renderScripts:function(){let e=document.querySelectorAll('script[data-wpl-class="wpl-blocker-script"]');if(e.length>0){let t,o=[];Array.prototype.forEach.call(e,function(e){t=e.getAttribute("type");e.tagName;o.push(function(t){n.insertScript(e,t)})}),n.seq(o,n.scriptsDone)}}},a={renderSrcElement:function(){let s=document.querySelectorAll('[data-wpl-class="wpl-blocker-script"]'),n=s.length;for(let a=0;a<n;a++){let n=s[a],c=n.tagName;if(-1!==e.indexOf(c)){let e=n.getAttribute("data-wpl-script-type"),s=n.getAttribute("data-wpl-block");!0===i.blockingStatus?"yes"==t.read(ACTED_CONSENT_CK_NAME)&&-1!==o.allowed_categories.indexOf(e)||null!=t.read(ACTED_CONSENT_CK_NAME)&&"false"===s?this.replaceSrc(n):this.addPlaceholder(n):this.replaceSrc(n)}}},addPlaceholder:function(e){if(0===jQuery(e).prev(".wpl-iframe-placeholder").length){let t=e.getAttribute("data-wpl-placeholder"),o=e.getAttribute("width"),i=e.getAttribute("height");null==o&&(o=e.offsetWidth),null==i&&(i=e.offsetHeight);let s=/px/,n='<div style="width:'+(o=s.test(o)?o:o+"px")+"; height:"+(i=s.test(i)?i:i+"px")+';" class="wpl-iframe-placeholder"><div class="wpl-inner-text">'+t+"</div></div>";"IMG"!==e.tagName&&jQuery(n).insertBefore(e),e.removeAttribute("src"),e.style.display="none"}},replaceSrc:function(e){if(!e.hasAttribute("src")){let t=e.getAttribute("data-wpl-src");e.setAttribute("src",t),jQuery(e).prev(".wpl-iframe-placeholder").length>0&&jQuery(e).prev(".wpl-iframe-placeholder").remove(),e.style.display="block"}}};(function(){jQuery(document).on("click",".wpl_manage_current_consent",function(){o.displayHeader()})})(),s(i.removeCookieByCategory)}};e(document).ready(function(){"undefined"!=typeof lwaiobar_settings&&o.set({settings:lwaiobar_settings}),"undefined"!=typeof lwaios_list&&(i.set({cookies:lwaios_list}),i.runScripts())}),e(document).ready(function(){e(".lwaio-column").click(function(){e(".lwaio-column",this),e(this).children(".lwaio-columns").hasClass("active-group")||(e(".lwaio-columns").removeClass("active-group"),e(this).children(".lwaio-columns").addClass("active-group")),e(this).siblings(".description-container").hasClass("hide")&&(e(".description-container").addClass("hide"),e(this).siblings(".description-container").removeClass("hide"))})})}(jQuery);