/*!
 * jQuery Mousewheel 3.1.13
 *
 * Copyright 2015 jQuery Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
! function(a) {
    "function" == typeof define && define.amd ? define(["jquery"], a) : "object" == typeof exports ? module.exports = a : a(jQuery)
}(function(a) {
    function b(b) {
        var g = b || window.event,
            h = i.call(arguments, 1),
            j = 0,
            l = 0,
            m = 0,
            n = 0,
            o = 0,
            p = 0;
        if (b = a.event.fix(g), b.type = "mousewheel", "detail" in g && (m = -1 * g.detail), "wheelDelta" in g && (m = g.wheelDelta), "wheelDeltaY" in g && (m = g.wheelDeltaY), "wheelDeltaX" in g && (l = -1 * g.wheelDeltaX), "axis" in g && g.axis === g.HORIZONTAL_AXIS && (l = -1 * m, m = 0), j = 0 === m ? l : m, "deltaY" in g && (m = -1 * g.deltaY, j = m), "deltaX" in g && (l = g.deltaX, 0 === m && (j = -1 * l)), 0 !== m || 0 !== l) {
            if (1 === g.deltaMode) {
                var q = a.data(this, "mousewheel-line-height");
                j *= q, m *= q, l *= q
            } else if (2 === g.deltaMode) {
                var r = a.data(this, "mousewheel-page-height");
                j *= r, m *= r, l *= r
            }
            if (n = Math.max(Math.abs(m), Math.abs(l)), (!f || f > n) && (f = n, d(g, n) && (f /= 40)), d(g, n) && (j /= 40, l /= 40, m /= 40), j = Math[j >= 1 ? "floor" : "ceil"](j / f), l = Math[l >= 1 ? "floor" : "ceil"](l / f), m = Math[m >= 1 ? "floor" : "ceil"](m / f), k.settings.normalizeOffset && this.getBoundingClientRect) {
                var s = this.getBoundingClientRect();
                o = b.clientX - s.left, p = b.clientY - s.top
            }
            return b.deltaX = l, b.deltaY = m, b.deltaFactor = f, b.offsetX = o, b.offsetY = p, b.deltaMode = 0, h.unshift(b, j, l, m), e && clearTimeout(e), e = setTimeout(c, 200), (a.event.dispatch || a.event.handle).apply(this, h)
        }
    }

    function c() {
        f = null
    }

    function d(a, b) {
        return k.settings.adjustOldDeltas && "mousewheel" === a.type && b % 120 === 0
    }
    var e, f, g = ["wheel", "mousewheel", "DOMMouseScroll", "MozMousePixelScroll"],
        h = "onwheel" in document || document.documentMode >= 9 ? ["wheel"] : ["mousewheel", "DomMouseScroll", "MozMousePixelScroll"],
        i = Array.prototype.slice;
    if (a.event.fixHooks)
        for (var j = g.length; j;) a.event.fixHooks[g[--j]] = a.event.mouseHooks;
    var k = a.event.special.mousewheel = {
        version: "3.1.12",
        setup: function() {
            if (this.addEventListener)
                for (var c = h.length; c;) this.addEventListener(h[--c], b, !1);
            else this.onmousewheel = b;
            a.data(this, "mousewheel-line-height", k.getLineHeight(this)), a.data(this, "mousewheel-page-height", k.getPageHeight(this))
        },
        teardown: function() {
            if (this.removeEventListener)
                for (var c = h.length; c;) this.removeEventListener(h[--c], b, !1);
            else this.onmousewheel = null;
            a.removeData(this, "mousewheel-line-height"), a.removeData(this, "mousewheel-page-height")
        },
        getLineHeight: function(b) {
            var c = a(b),
                d = c["offsetParent" in a.fn ? "offsetParent" : "parent"]();
            return d.length || (d = a("body")), parseInt(d.css("fontSize"), 10) || parseInt(c.css("fontSize"), 10) || 16
        },
        getPageHeight: function(b) {
            return a(b).height()
        },
        settings: {
            adjustOldDeltas: !0,
            normalizeOffset: !0
        }
    };
    a.fn.extend({
        mousewheel: function(a) {
            return a ? this.bind("mousewheel", a) : this.trigger("mousewheel")
        },
        unmousewheel: function(a) {
            return this.unbind("mousewheel", a)
        }
    })
});
(function($){'use strict';jQuery.each(hugeit_gen_resp_lightbox_obj,function(index,value){if(value.indexOf('true')>-1||value.indexOf('false')>-1)
hugeit_gen_resp_lightbox_obj[index]=value=="true"});function Lightbox(element,options){this.el=element;this.$element=$(element);this.$body=$('body');this.objects={};this.lightboxModul={};this.$item='';this.$cont='';this.$items=this.$body.find('a.responsive_lightbox');this.settings=$.extend({},this.constructor.defaults,options);this.init();return this}
Lightbox.defaults={idPrefix:'rwd-',classPrefix:'rwd-',attrPrefix:'data-',slideAnimationType:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_slideAnimationType,lightboxView:hugeit_resp_lightbox_obj.hugeit_lightbox_lightboxView,speed:hugeit_resp_lightbox_obj.hugeit_lightbox_speed_new,width:hugeit_resp_lightbox_obj.hugeit_lightbox_width_new+'%',height:hugeit_resp_lightbox_obj.hugeit_lightbox_height_new+'%',videoMaxWidth:'700',sizeFix:!0,overlayDuration:+hugeit_gen_resp_lightbox_obj.hugeit_lightbox_overlayDuration,slideAnimation:!0,overlayClose:hugeit_resp_lightbox_obj.hugeit_lightbox_overlayClose_new,loop:hugeit_resp_lightbox_obj.hugeit_lightbox_loop_new,escKey:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_escKey_new,keyPress:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_keyPress_new,arrows:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_arrows,mouseWheel:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_mouseWheel,download:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_download,showTitle:hugeit_resp_lightbox_obj.hugeit_lightbox_showTitle==='true',showDesc:hugeit_resp_lightbox_obj.hugeit_lightbox_showDesc==='true',showBorder:hugeit_resp_lightbox_obj.hugeit_lightbox_showBorder==='true',showCounter:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_showCounter,defaultTitle:'',preload:10,showAfterLoad:!0,nextHtml:'',prevHtml:'',sequence_info:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_sequence_info,sequenceInfo:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_sequenceInfo,slideshow:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_slideshow_new,slideshowAuto:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_slideshow_auto_new,slideshowSpeed:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_slideshow_speed_new,slideshowStart:'',slideshowStop:'',hideControlOnEnd:!1,watermark:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_watermark,socialSharing:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_socialSharing,titlePos:hugeit_resp_lightbox_obj.hugeit_lightbox_title_pos,fullwidth:hugeit_resp_lightbox_obj.hugeit_lightbox_fullwidth_effect==='true',zoomLogo:hugeit_resp_lightbox_obj.hugeit_lightbox_zoomlogo,wURL:hugeit_resp_lightbox_obj.hugeit_lightbox_watermark_link,watermarkURL:hugeit_resp_lightbox_obj.hugeit_lightbox_watermark_url,wURLnewTab:hugeit_resp_lightbox_obj.hugeit_lightbox_watermark_url_new_tab,openCloseType:hugeit_resp_lightbox_obj.lightbox_open_close_effect,thumbnail:hugeit_resp_lightbox_obj.hugeit_lightbox_thumbs==='true',share:{facebookButton:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_facebookButton,twitterButton:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_twitterButton,googleplusButton:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_googleplusButton,pinterestButton:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_pinterestButton,linkedinButton:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_linkedinButton,tumblrButton:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_tumblrButton,redditButton:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_redditButton,bufferButton:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_bufferButton,diggButton:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_diggButton,vkButton:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_vkButton,yummlyButton:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_yummlyButton}};Lightbox.prototype.init=function(){var $object=this,$hash,$openCloseType;switch(this.settings.openCloseType){case '0':$openCloseType={0:'open_0',1:'close_0'};break;case '1':$openCloseType={0:'open_1',1:'close_1'};break;case '2':$openCloseType={0:'open_1_r',1:'close_1_r'};break;case '3':$openCloseType={0:'open_2',1:'close_2'};break;case '4':$openCloseType={0:'open_2_r',1:'close_2_r'};break;case '5':$openCloseType={0:'open_3',1:'close_3'};break;case '6':$openCloseType={0:'open_3_r',1:'close_3_r'};break;case '7':$openCloseType={0:'open_4',1:'close_4'};break;case '8':$openCloseType={0:'open_4_r',1:'close_4_r'};break;case '9':$openCloseType={0:'open_5',1:'close_5'};break;case '10':$openCloseType={0:'open_5_r',1:'close_5_r'};break}
if(this.settings.lightboxView!=='view7'){this.settings.openCloseType=$openCloseType}else{this.settings.openCloseType={0:'open_1',1:'close_1'};this.settings.slideAnimationType='effect_2'}
$hash=window.location.hash;($object.settings.watermark&&$('.watermark').watermark());if($hash.indexOf('lightbox&')>0){$object.index=parseInt($hash.split('&slide=')[1],10)-1;$object.$body.addClass('rwd-share');if(!$object.$body.hasClass('rwd-on')){setTimeout(function(){$object.build($object.index)},900);$object.$body.addClass('rwd-on')}}
if(($object.settings.preload<=$object.$items.length)&&($object.settings.preload=$object.$items.length)){$object.settings.preload=$object.$items.length}
$object.$items.on('click.rwdcustom',function(event){event=event||window.event;event.preventDefault?event.preventDefault():(event.returnValue=!1);$object.index=$object.$items.index(this);if(!$object.$body.hasClass($object.settings.classPrefix+'on')){$object.build($object.index);$object.$body.addClass($object.settings.classPrefix+'on')}});$object.$body.on('click',function(){$object.$_y_=window.pageYOffset});switch(this.settings.zoomLogo){case '1':$object.$body.addClass('rwd-zoomGlass');break;case '2':$object.$body.addClass('rwd-zoomHand');break}};Lightbox.prototype.build=function(index){var $object=this;$object.structure(index);$object.lightboxModul.modul=new $.fn.lightbox.lightboxModul.modul($object.el);$object.slide(index,!1,!1);($object.settings.keyPress&&$object.addKeyEvents());if($object.$items.length>1){$object.arrow();($object.settings.mouseWheel&&$object.mousewheel());($object.settings.slideshow&&$object.slideShow())}
$object.counter();$object.closeGallery();$object.$cont.on('click.rwd-container',function(){$object.$cont.removeClass($object.settings.classPrefix+'hide-items')});$('.shareLook').on('click.rwd-container',function(){$(this).css({'display':'none'});$('.rwd-share-buttons').css({'display':'block'});setTimeout(function(){$('.shareLook').css({'display':'block'});$('.rwd-share-buttons').css({'display':'none'})},9000)});if(!this.settings.thumbnail){$object.calculateDimensions(index)}else{setTimeout(function(){$object.calculateDimensions(index)},800)}
if(this.settings.lightboxView==='view7'){setTimeout(function(){$('.view7_share, .rwd-close-bar, .rwd-toolbar').css({visibility:'visible',opacity:'1'});$object.calculateDimensions(index)},1100);jQuery('.rwd-close').hover(function(){$('.rwd-cont').addClass('close_hover_on')},function(){$('.rwd-cont').removeClass('close_hover_on')});var $w,$l;if($('.rwd-container').width()>768){$('.rwd-view7-title').width($('.rwd-container').width()*0.2-46);$('.rwd-view7-desc').width($('.rwd-container').width()*0.2-36);setTimeout(function(){$('.rwd-view7-desc').height($('.view7_inner').height()-79)},200);$w=256;$l=$('.tool_bar .rwd-icon:not(.zoom_cont)').length;if(hugeit_resp_lightbox_obj.hugeit_lightbox_zoom&&hugeit_resp_lightbox_obj.hugeit_lightbox_zoomtype==='1'){$('.zoom_cont').css({'max-width':'220px'});$w=220}else{$('.zoom_cont').css({'max-width':'145px'});$w=145}
$('.tool_bar').width(50*$l+$w)}else{$('.tool_bar').css('width','80%')}}};Lightbox.prototype.structure=function(index){var $object=this,list='',controls='',i,subHtmlCont1='',subHtmlCont2='',subHtmlCont3='',close1='',close2='',close3='',socialIcons='',template,$arrows,$next,$prev,$_next,$_prev,$close_bg,$download_bg,$download_bg_,$contInner,$view;$view=(this.settings.lightboxView==='view6')?'rwd-view6':'';this.$body.append(this.objects.overlay=$('<div class="'+this.settings.classPrefix+'overlay '+$view+'"></div>'));this.objects.overlay.css('transition-duration',this.settings.overlayDuration+'ms');var $wURL='',$target='';if($object.settings.watermark&&$object.settings.wURL&&hugeit_resp_lightbox_obj.hugeit_lightbox_watermark_text){if($object.settings.wURLnewTab){$target='target="_blank"'}
$wURL='<a href="'+$object.settings.watermarkURL+'" class="w_url" '+$target+'></a>'}
for(i=0;i<this.$items.length;i++){list+='<div class="'+this.settings.classPrefix+'item">'+$wURL+'</div>'}
$close_bg='<svg class="close_bg" width="16px" height="16px" fill="#999" viewBox="-341 343.4 15.6 15.6">'+'<path d="M-332.1,351.2l6.5-6.5c0.3-0.3,0.3-0.8,0-1.1s-0.8-0.3-1.1,0l-6.5,6.5l-6.5-6.5c-0.3-0.3-0.8-0.3-1.1,0s-0.3,0.8,0,1.1l6.5,6.5l-6.5,6.5c-0.3,0.3-0.3,0.8,0,1.1c0.1,0.1,0.3,0.2,0.5,0.2s0.4-0.1,0.5-0.2l6.5-6.5l6.5,6.5c0.1,0.1,0.3,0.2,0.5,0.2s0.4-0.1,0.5-0.2c0.3-0.3,0.3-0.8,0-1.1L-332.1,351.2z"/>'+'</svg>';switch(this.settings.lightboxView){case 'view1':default:$_next='<svg class="next_bg" width="22px" height="22px" fill="#999" viewBox="-333 335.5 31.5 31.5" >'+'<path d="M-311.8,340.5c-0.4-0.4-1.1-0.4-1.6,0c-0.4,0.4-0.4,1.1,0,1.6l8,8h-26.6c-0.6,0-1.1,0.5-1.1,1.1s0.5,1.1,1.1,1.1h26.6l-8,8c-0.4,0.4-0.4,1.2,0,1.6c0.4,0.4,1.2,0.4,1.6,0l10-10c0.4-0.4,0.4-1.1,0-1.6L-311.8,340.5z"/>'+'</svg>';$_prev='<svg class="prev_bg" width="22px" height="22px" fill="#999" viewBox="-333 335.5 31.5 31.5" >'+'<path d="M-322.7,340.5c0.4-0.4,1.1-0.4,1.6,0c0.4,0.4,0.4,1.1,0,1.6l-8,8h26.6c0.6,0,1.1,0.5,1.1,1.1c0,0.6-0.5,1.1-1.1,1.1h-26.6l8,8c0.4,0.4,0.4,1.2,0,1.6c-0.4,0.4-1.1,0.4-1.6,0l-10-10c-0.4-0.4-0.4-1.1,0-1.6L-322.7,340.5z"/>'+'</svg>';if(this.settings.showTitle){subHtmlCont1='<div class="'+this.settings.classPrefix+'title"></div>'}
close1='<span class="'+this.settings.classPrefix+'close '+$object.settings.classPrefix+'icon">'+$close_bg+'</span>';break;case 'view2':$_next='<svg class="next_bg" width="22px" height="22px" fill="#999" viewBox="-123 125.2 451.8 451.8" >'+'<g><path d="M222.4,373.4L28.2,567.7c-12.4,12.4-32.4,12.4-44.8,0c-12.4-12.4-12.4-32.4,0-44.7l171.9-171.9L-16.6,179.2c-12.4-12.4-12.4-32.4,0-44.7c12.4-12.4,32.4-12.4,44.8,0l194.3,194.3c6.2,6.2,9.3,14.3,9.3,22.4C231.7,359.2,228.6,367.3,222.4,373.4z"/></g>'+'</svg>';$_prev='<svg class="prev_bg" width="22px" height="22px" fill="#999" viewBox="-123 125.2 451.8 451.8" >'+'<g><path d="M-25.9,351.1c0-8.1,3.1-16.2,9.3-22.4l194.3-194.3c12.4-12.4,32.4-12.4,44.8,0c12.4,12.4,12.4,32.4,0,44.7L50.5,351.1L222.4,523c12.4,12.4,12.4,32.4,0,44.7c-12.4,12.4-32.4,12.4-44.7,0L-16.6,373.4C-22.8,367.3-25.9,359.2-25.9,351.1z"/></g>'+'</svg>';if(this.settings.showTitle){subHtmlCont2='<div class="'+this.settings.classPrefix+'title"></div>'}
close2='<div class="barCont"></div><span class="'+this.settings.classPrefix+'close '+$object.settings.classPrefix+'icon">'+$close_bg+'</span>';break;case 'view3':$_next='<svg class="next_bg" width="22px" height="22px" fill="#999" viewBox="-104 105.6 490.4 490.4" >'+'<g><g><path d="M141.2,596c135.2,0,245.2-110,245.2-245.2s-110-245.2-245.2-245.2S-104,215.6-104,350.8S6,596,141.2,596z M141.2,130.1c121.7,0,220.7,99,220.7,220.7s-99,220.7-220.7,220.7s-220.7-99-220.7-220.7S19.5,130.1,141.2,130.1z"/>'+'<path d="M34.7,363.1h183.4l-48,48c-4.8,4.8-4.8,12.5,0,17.3c2.4,2.4,5.5,3.6,8.7,3.6s6.3-1.2,8.7-3.6l68.9-68.9c4.8-4.8,4.8-12.5,0-17.3l-68.9-68.9c-4.8-4.8-12.5-4.8-17.3,0s-4.8,12.5,0,17.3l48,48H34.7c-6.8,0-12.3,5.5-12.3,12.3C22.4,357.7,27.9,363.1,34.7,363.1z"/></g></g>'+'</svg>';$_prev='<svg class="prev_bg" width="22px" height="22px" fill="#999" viewBox="-104 105.6 490.4 490.4" >'+'<g><g><path d="M141.2,596c135.2,0,245.2-110,245.2-245.2s-110-245.2-245.2-245.2S-104,215.6-104,350.8S6,596,141.2,596z M141.2,130.1c121.7,0,220.7,99,220.7,220.7s-99,220.7-220.7,220.7s-220.7-99-220.7-220.7S19.5,130.1,141.2,130.1z"/>'+'<path d="M94.9,428.4c2.4,2.4,5.5,3.6,8.7,3.6s6.3-1.2,8.7-3.6c4.8-4.8,4.8-12.5,0-17.3l-48-48h183.4c6.8,0,12.3-5.5,12.3-12.3c0-6.8-5.5-12.3-12.3-12.3H64.3l48-48c4.8-4.8,4.8-12.5,0-17.3c-4.8-4.8-12.5-4.8-17.3,0l-68.9,68.9c-4.8,4.8-4.8,12.5,0,17.3L94.9,428.4z"/></g></g>'+'</svg>';if(this.settings.showTitle){subHtmlCont1='<div class="'+this.settings.classPrefix+'title"></div>'}
close1='<span class="'+this.settings.classPrefix+'close '+$object.settings.classPrefix+'icon">'+$close_bg+'</span>';break;case 'view4':$_next='<svg class="next_bg" width="22px" height="22px" fill="#999" viewBox="-123 125.2 451.8 451.8" >'+'<g><path d="M222.4,373.4L28.2,567.7c-12.4,12.4-32.4,12.4-44.8,0c-12.4-12.4-12.4-32.4,0-44.7l171.9-171.9L-16.6,179.2c-12.4-12.4-12.4-32.4,0-44.7c12.4-12.4,32.4-12.4,44.8,0l194.3,194.3c6.2,6.2,9.3,14.3,9.3,22.4C231.7,359.2,228.6,367.3,222.4,373.4z"/></g>'+'</svg>';$_prev='<svg class="prev_bg" width="22px" height="22px" fill="#999" viewBox="-123 125.2 451.8 451.8" >'+'<g><path d="M-25.9,351.1c0-8.1,3.1-16.2,9.3-22.4l194.3-194.3c12.4-12.4,32.4-12.4,44.8,0c12.4,12.4,12.4,32.4,0,44.7L50.5,351.1L222.4,523c12.4,12.4,12.4,32.4,0,44.7c-12.4,12.4-32.4,12.4-44.7,0L-16.6,373.4C-22.8,367.3-25.9,359.2-25.9,351.1z"/></g>'+'</svg>';$close_bg='<svg class="close_bg" width="16px" height="16px" fill="#999" viewBox="-341 343.4 15.6 15.6">'+'<path d="M-332.1,351.2l6.5-6.5c0.3-0.3,0.3-0.8,0-1.1s-0.8-0.3-1.1,0l-6.5,6.5l-6.5-6.5c-0.3-0.3-0.8-0.3-1.1,0s-0.3,0.8,0,1.1l6.5,6.5l-6.5,6.5c-0.3,0.3-0.3,0.8,0,1.1c0.1,0.1,0.3,0.2,0.5,0.2s0.4-0.1,0.5-0.2l6.5-6.5l6.5,6.5c0.1,0.1,0.3,0.2,0.5,0.2s0.4-0.1,0.5-0.2c0.3-0.3,0.3-0.8,0-1.1L-332.1,351.2z"/>'+'</svg>';if(this.settings.showTitle){subHtmlCont2='<div class="'+this.settings.classPrefix+'title"></div>'}
close1='<span class="'+this.settings.classPrefix+'close '+$object.settings.classPrefix+'icon">'+$close_bg+'</span>';break;case 'view5':case 'view6':$_next='<svg class="next_bg" width="22px" height="44px" fill="#999" x="0px" y="0px"'+'viewBox="0 0 40 70" style="enable-background:new 0 0 40 70;" xml:space="preserve">'+'<path id="XMLID_2_" class="st0" d="M3.3,1.5L1.8,2.9l31.8,31.8c0.5,0.5,0.5,0.9,0,1.4L1.8,67.9l1.5,1.4c0.3,0.5,0.9,0.5,1.4,0'+'l33.2-33.2c0.3-0.5,0.3-0.9,0-1.4L4.7,1.5C4.3,1,3.6,1,3.3,1.5L3.3,1.5z"/>'+'</svg>';$_prev='<svg class="prev_bg" width="22px" height="44px" fill="#999" x="0px" y="0px"'+'viewBox="0 0 40 70" style="enable-background:new 0 0 40 70;" xml:space="preserve">'+'<path id="XMLID_2_" class="st0" d="M37.1,68.9l1.5-1.4L6.8,35.7c-0.3-0.5-0.3-0.9,0-1.4L38.6,2.5l-1.5-1.4c-0.3-0.5-0.9-0.5-1.2,0'+'L2.5,34.3c-0.3,0.5-0.3,0.9,0,1.4l33.4,33.2C36.2,69.4,36.8,69.4,37.1,68.9L37.1,68.9z"/>'+'</svg>';$close_bg='<svg class="close_bg" width="16px" height="16px" fill="#999" viewBox="-341 343.4 15.6 15.6">'+'<path d="M-332.1,351.2l6.5-6.5c0.3-0.3,0.3-0.8,0-1.1s-0.8-0.3-1.1,0l-6.5,6.5l-6.5-6.5c-0.3-0.3-0.8-0.3-1.1,0s-0.3,0.8,0,1.1l6.5,6.5l-6.5,6.5c-0.3,0.3-0.3,0.8,0,1.1c0.1,0.1,0.3,0.2,0.5,0.2s0.4-0.1,0.5-0.2l6.5-6.5l6.5,6.5c0.1,0.1,0.3,0.2,0.5,0.2s0.4-0.1,0.5-0.2c0.3-0.3,0.3-0.8,0-1.1L-332.1,351.2z"/>'+'</svg>';if(this.settings.showTitle){subHtmlCont3+='<div class="'+this.settings.classPrefix+'title"></div>'}
if(this.settings.showDesc){subHtmlCont3+='<div class="'+this.settings.classPrefix+'description"></div>'}
close1='<span class="'+this.settings.classPrefix+'close '+$object.settings.classPrefix+'icon">'+$close_bg+'</span>';break;case 'view7':$_next='<svg class="next_bg" width="22px" height="22px" fill="#999" viewBox="0 0 43 70.8">'+'<path id="XMLID_133_" d="M40,33L9.4,2.4c-1.3-1.3-3.5-1.3-4.7,0L1.9,5.2L29.7,33c1.3,1.4,1.3,3.5,0,4.7L1.9,65.5'+'l2.8,2.8c1.3,1.4,3.5,1.4,4.7,0L40,37.7C41.3,36.5,41.3,34.4,40,33L40,33z"/>'+'<path id="XMLID_132_" d="M4.1,3.2L3.8,3.5l31.4,31.2c0.3,0.4,0.3,1,0,1.3L3.8,67.4l0.3,0.1c0.3,0.4,0.9,0.4,1.3,0'+'L36.9,36c0.3-0.3,0.3-0.9,0-1.3L5.5,3.2C5,2.9,4.4,2.9,4.1,3.2L4.1,3.2z"/>'+'</svg>';$_prev='<svg class="prev_bg" width="22px" height="22px" fill="#999" x="0px" y="0px" viewBox="0 0 43 70.8">'+'<path id="XMLID_133_" d="M2.9,37.8l30.6,30.6c1.3,1.3,3.5,1.3,4.7,0l2.8-2.8L13.2,37.8c-1.3-1.4-1.3-3.5,0-4.7L41,5.3'+'l-2.8-2.8c-1.3-1.4-3.5-1.4-4.7,0L2.9,33.1C1.6,34.3,1.6,36.4,2.9,37.8L2.9,37.8z"/>'+'<path id="XMLID_132_" d="M38.8,67.5l0.3-0.3L7.7,36.1c-0.3-0.4-0.3-1,0-1.3L39.1,3.4l-0.3-0.1c-0.3-0.4-0.9-0.4-1.3,0'+'L6,34.8c-0.3,0.3-0.3,0.9,0,1.3l31.4,31.5C37.9,67.8,38.5,67.8,38.8,67.5L38.8,67.5z"/>'+'</svg>';$close_bg='<svg id="close_hover" class="close_bg" viewBox="0 0 24.3 23.8" style="enable-background:new 0 0 24.3 23.8;" xml:space="preserve">'+'<style type="text/css">.st0{opacity:0.3;}.st2{fill:#FFFFFF;}.st3{fill:#010101;}.st4{fill:#231F20;}</style>'+'<g id="XMLID_248_" class="st0"><g id="XMLID_249_"><g id="XMLID_250_"><defs><rect id="XMLID_137_" x="1.3" y="0.5" width="22.5" height="22.8"/></defs>'+'<clipPath id="XMLID_140_"><use xlink:href="#XMLID_137_"  style="overflow:visible;"/></clipPath><g id="XMLID_251_" class="st1"><g id="XMLID_252_">'+'<path id="XMLID_132_" class="st2" d="M14.4,11.7l9-9c0.5-0.5,0.5-1.3,0-1.9c-0.5-0.5-1.3-0.5-1.9,0l-9,9l-9-9'+'C3,0.3,2.2,0.3,1.7,0.8c-0.5,0.5-0.5,1.3,0,1.9l9,9l-9,9c-0.5,0.5-0.5,1.3,0,1.9C2,22.9,2.3,23,2.6,23s0.7-0.1,0.9-0.4l9-9l9,9'+'c0.3,0.3,0.6,0.4,0.9,0.4s0.7-0.1,0.9-0.4c0.5-0.5,0.5-1.3,0-1.9L14.4,11.7z"/>'+'</g></g></g></g></g><g id="XMLID_142_" class="st0"><line id="XMLID_135_" class="st3" x1="1.9" y1="1.1" x2="23.1" y2="22.3"/>'+'<rect id="XMLID_136_" x="-2.5" y="11.2" transform="matrix(0.7077 0.7066 -0.7066 0.7077 11.918 -5.4355)" class="st4" width="30" height="1"/>'+'</g><g id="XMLID_139_" class="st0"><line id="XMLID_133_" class="st3" x1="23.4" y1="1" x2="2.2" y2="22.2"/>'+'<rect id="XMLID_134_" x="12.3" y="-3.4" transform="matrix(0.7071 0.7071 -0.7071 0.7071 11.9598 -5.6442)" class="st4" width="1" height="30"/>'+'</g></svg>'+'<svg id="close_hover_on" class="close_bg" viewBox="0 0 24.3 23.8" style="enable-background:new 0 0 24.3 23.8;" xml:space="preserve">'+'<style type="text/css">.st0{opacity:0.7;}.st2{fill:#FFFFFF;}.st3{opacity:1;}.st4{fill:#010101;}.st5{fill:#231F20;}</style>'+'<g id="XMLID_248_" class="st0"><g id="XMLID_249_"><g id="XMLID_250_"><defs><rect id="XMLID_137_" x="0.6" y="0.5" width="23" height="23.2"/></defs>'+'<clipPath id="XMLID_140_"><use xlink:href="#XMLID_137_"  style="overflow:visible;"/></clipPath><g id="XMLID_251_" class="st1"><g id="XMLID_252_">'+'<path id="XMLID_132_" class="st2" d="M14.1,12l9.2-9.2c0.5-0.5,0.5-1.4,0-1.9c-0.5-0.5-1.4-0.5-1.9,0L12.1,10L2.9,0.8'+'C2.4,0.3,1.6,0.3,1,0.8C0.5,1.4,0.5,2.2,1,2.8l9.2,9.2l-9.2,9.2c-0.5,0.5-0.5,1.4,0,1.9c0.3,0.3,0.6,0.4,1,0.4s0.7-0.1,1-0.4'+'l9.2-9.2l9.2,9.2c0.3,0.3,0.6,0.4,1,0.4c0.3,0,0.7-0.1,1-0.4c0.5-0.5,0.5-1.4,0-1.9L14.1,12z"/>'+'</g></g></g></g></g><g id="XMLID_142_" class="st3"><line id="XMLID_135_" class="st4" x1="1.3" y1="1.1" x2="22.9" y2="22.7"/>'+'<rect id="XMLID_136_" x="-3.2" y="11.4" transform="matrix(0.7077 0.7066 -0.7066 0.7077 11.9668 -5.0772)" class="st5" width="30.6" height="1"/>'+'</g><g id="XMLID_139_" class="st3"><line id="XMLID_133_" class="st4" x1="23.2" y1="1" x2="1.6" y2="22.7"/>'+'<rect id="XMLID_134_" x="11.9" y="-3.5" transform="matrix(0.7072 0.707 -0.707 0.7072 12.0069 -5.2896)" class="st5" width="1" height="30.6"/>'+'</g></svg>';close3='<div class="'+this.settings.classPrefix+'close-bar">'+'<span class="'+this.settings.classPrefix+'close '+$object.settings.classPrefix+'icon">'+$close_bg+'</span>'+'</div>';break}
if(this.settings.arrows&&this.$items.length>1){controls='<div class="'+this.settings.classPrefix+'arrows">'+'<div class="'+this.settings.classPrefix+'prev '+$object.settings.classPrefix+'icon">'+$_prev+this.settings.prevHtml+'</div>'+'<div class="'+this.settings.classPrefix+'next '+$object.settings.classPrefix+'icon">'+$_next+this.settings.nextHtml+'</div>'+'</div>'}
if(this.settings.socialSharing&&(this.settings.lightboxView!=='view5'||this.settings.lightboxView!=='view6')){socialIcons='<div class="'+this.settings.classPrefix+'socialIcons"><button class="shareLook">share</button></div>'}
$contInner=(this.settings.lightboxView==='view5'||this.settings.lightboxView==='view6')?'<div class="contInner">'+subHtmlCont3+'</div>':'';var arrowHE=(this.settings.lightboxView!=='view2'&&this.settings.lightboxView!=='view3')?this.settings.arrowsHoverEffect:'',$up='<svg class="rwd-up" width="15px" height="12px" viewBox="0 0 26.5 21" style="enable-background:new 0 0 26.5 21;">'+'<g id="Shape_1"><g>'+'<path class="st0" d="M23.7,15.3l-9.2-9.2c-0.4-0.4-1-0.4-1.4,0L3.7,15c-0.4,0.4-0.4,1,0,1.4l0.9,0.9l8.6-8.1'+'c0.4-0.4,1.1-0.4,1.4,0l8.3,8.3l0.9-0.8C24.1,16.3,24.1,15.7,23.7,15.3z"/>'+'</g></g></svg>',$down='<svg class="rwd-down" width="15px" height="12px" viewBox="0 0 26.5 21" style="enable-background:new 0 0 26.5 21;">'+'<g id="Shape_1"><g>'+'<path class="st0" d="M23.8,6.8l-0.9-0.8l-8.5,8.2c-0.4,0.4-1.1,0.4-1.4,0L4.6,5.8L3.7,6.7C3.3,7,3.3,7.7,3.7,8l9.3,9.1'+'c0.4,0.4,1,0.4,1.4,0l9.4-9C24.2,7.8,24.2,7.1,23.8,6.8z"/>'+'</g></g></svg>',$toggle_bar=(this.settings.lightboxView==='view7')?'<div class="toggle_bar">'+$up+$down+'</div>':'',nw='',nh='',$lens;if(this.settings.lightboxView==='view7'){nw=$object.$items.eq(index).find('img').prop('naturalWidth');nh=$object.$items.eq(index).find('img').prop('naturalHeight')}
$lens=(this.settings.lightboxView==='view7')?'<div class="tool_bar"><div class="zoom_cont rwd-icon"><div class="zoom_size"></div><div class="img_size">'+nw+'px &times; '+nh+'px</div></div></div>':'';template='<div class="'+this.settings.classPrefix+'cont ">'+'<div class="rwd-container rwd-'+this.settings.lightboxView+' rwd-arrows_hover_effect-'+arrowHE+'">'+'<div class="cont-inner">'+list+'</div>'+$contInner+'<div class="'+this.settings.classPrefix+'toolbar group">'+close1+subHtmlCont2+$toggle_bar+$lens+'</div>'+close3+controls+'<div class="'+this.settings.classPrefix+'bar">'+close2+subHtmlCont1+socialIcons+'</div>'+'</div>'+'</div>';switch($object.settings.openCloseType[0]){case 'open_1':case 'open_2':case 'open_3':case 'open_4':case 'open_5':case 'open_1_r':case 'open_2_r':case 'open_3_r':case 'open_4_r':case 'open_5_r':setTimeout(function(){$object.$cont.addClass('rwd-visible');$('.rwd-container').addClass($object.settings.openCloseType[0])},0);break;default:$('.rwd-container').addClass($object.settings.openCloseType[0]);setTimeout(function(){$object.$cont.addClass('rwd-visible')},this.settings.overlayDuration);break}
if($object.settings.socialSharing){setTimeout(function(){$object.socialShare()},50)}
this.$body.append(template);this.$cont=$('.'+$object.settings.classPrefix+'cont');this.$item=this.$cont.find('.'+$object.settings.classPrefix+'item');if(!this.settings.slideAnimation){this.$cont.addClass(this.settings.classPrefix+'animation');this.settings.slideAnimationType=this.settings.classPrefix+'slide'}else{this.$cont.addClass(this.settings.classPrefix+'use')}
$object.calculateDimensions(index);this.$item.eq(this.index).addClass(this.settings.classPrefix+'current');if(this.effectsSupport()){this.$cont.addClass(this.settings.classPrefix+'support')}else{this.$cont.addClass(this.settings.classPrefix+'noSupport');this.settings.speed=0}
this.$cont.addClass(this.settings.slideAnimationType);((this.settings.showAfterLoad)&&(this.$cont.addClass(this.settings.classPrefix+'show-after-load')));if(this.effectsSupport()){var $inner=this.$cont.find('.cont-inner');$inner.css('transition-timing-function','ease');$inner.css('transition-duration',this.settings.speed+'ms')}
switch($object.settings.lightboxView){case 'view1':case 'view2':case 'view3':$inner.css({height:'calc(100% - 92px)',top:'47px'});break;case 'view4':$inner.css({height:'calc(100% - 92px)',top:'45px'});break;case 'view5':jQuery('.cont-inner').css({width:'60%'});break;case 'view6':jQuery('.cont-inner').css({width:'80%'});break;case 'view7':$('.toggle_bar').on('click',function(){$('.rwd-container').toggleClass('rwd_toggle_bar');if(jQuery('.rwd-toolbar').height()===40){jQuery('.rwd-toolbar').animate({height:'',top:jQuery('.rwd-toolbar').position().top+40+'px'},1000);jQuery('.tool_bar > *').css('display','none')}else{jQuery('.rwd-toolbar').animate({height:'40px',top:jQuery('.rwd-toolbar').position().top-40+'px'},1000);setTimeout(function(){jQuery('.tool_bar > *').css('display','block')},1000)}});break}
$object.objects.overlay.addClass('in');setTimeout(function(){$object.$cont.addClass($object.settings.classPrefix+'visible')},this.settings.overlayDuration);if(this.settings.download){$download_bg='<svg class="download_bg" width="20px" height="20px" stroke="#999" fill="#999"  viewBox="-328 330.3 41.7 41.7" >'+'<path class="st0" d="M-296.4,352.1c0.4-0.4,0.4-1.1,0-1.6c-0.4-0.4-1.1-0.4-1.6,0l-8,8V332c0-0.6-0.5-1.1-1.1-1.1c-0.6,0-1.1,0.5-1.1,1.1v26.5l-8-8c-0.4-0.4-1.2-0.4-1.6,0c-0.4,0.4-0.4,1.1,0,1.6l10,10c0.4,0.4,1.1,0.4,1.6,0L-296.4,352.1zM-288.5,359.4c0-0.6,0.5-1.1,1.1-1.1c0.6,0,1.1,0.5,1.1,1.1v10.9c0,0.6-0.5,1.1-1.1,1.1h-39.5c-0.6,0-1.1-0.5-1.1-1.1v-10.9c0-0.6,0.5-1.1,1.1-1.1c0.6,0,1.1,0.5,1.1,1.1v9.8h37.2V359.4z"/>'+'</svg>';$download_bg_='<svg class="download_bg" width="36px" height="34px" stroke="#999" fill="#999" x="0px" y="0px"'+'viewBox="0 0 90 90" style="enable-background:new 0 0 90 90;" xml:space="preserve">'+'<path id="XMLID_2_" class="st0" d="M61.3,31.8L45.5,47.7c-0.2,0.2-0.5,0.2-0.7,0l-16-15.9c-0.2-0.2-0.2-0.5,0-0.7l2.1-2.1l12.6,12.6'+'V7.4c0-0.9,0.7-1.7,1.7-1.7s1.8,0.8,1.8,1.7v34l12.2-12.3l2.1,2.1C61.5,31.3,61.5,31.6,61.3,31.8L61.3,31.8z"/>'+'<path id="XMLID_3_" class="st0" d="M25.6,50.7L25.6,50.7h38.7c1.6,0,2.8,1.2,2.8,2.7v1.5c0,1.6-1.2,2.9-2.8,2.9H25.6'+'c-1.5,0-2.8-1.3-2.8-2.9v-1.5C22.9,51.9,24.1,50.7,25.6,50.7L25.6,50.7z"/>'+'</svg>';switch(this.settings.lightboxView){case 'view1':default:this.$cont.find('.'+$object.settings.classPrefix+'toolbar').append('<a id="'+$object.settings.classPrefix+'download" target="_blank" download class="'+this.settings.classPrefix+'download '+$object.settings.classPrefix+'icon">'+$download_bg+'</a>');break;case 'view2':this.$cont.find('.'+$object.settings.classPrefix+'bar').append('<a id="'+$object.settings.classPrefix+'download" target="_blank" download class="'+this.settings.classPrefix+'download '+$object.settings.classPrefix+'icon">'+$download_bg+'</a>');break;case 'view4':$('<a id="'+$object.settings.classPrefix+'download" target="_blank" download class="'+this.settings.classPrefix+'download '+$object.settings.classPrefix+'icon">'+$download_bg+'</a>').insertBefore($('.rwd-title'));break;case 'view5':case 'view6':$('.rwd-toolbar').append('<a id="'+$object.settings.classPrefix+'download" target="_blank" download class="'+this.settings.classPrefix+'download '+$object.settings.classPrefix+'icon">'+$download_bg_+'</a>');break;case 'view7':$('.tool_bar').append('<a id="'+$object.settings.classPrefix+'download" target="_blank" download class="'+this.settings.classPrefix+'download '+$object.settings.classPrefix+'icon">'+$download_bg_+'</a>');break}}
if(this.settings.lightboxView==='view7'&&hugeit_resp_lightbox_obj.hugeit_lightbox_view_info==='true'){var $info='<svg id="rwd-view7-info" width="20" height="20" stroke="#999" fill="#999" viewBox="0 0 543.906 543.906" style="enable-background:new 0 0 543.906 543.906;">'+'<g><path d="M271.953,0C121.759,0,0,121.759,0,271.953s121.759,271.953,271.953,271.953'+'s271.953-121.759,271.953-271.953S422.148,0,271.953,0z M316.994,76.316c1.055-0.049,2.138-0.06,3.231,0'+'c14.724-0.484,27.533,10.622,29.578,24.987c6.576,27.581-22.719,55.228-49.631,44.192'+'C268.032,130.576,284.224,77.909,316.994,76.316z M303.739,196.318c20.875-1.327,24.519,22.964,18.014,47.592'+'c-12.695,56.583-32.455,111.403-43.175,168.442c5.178,22.523,33.575-3.312,45.721-11.558c10.329-8.213,12.124,2.083,15.637,10.71'+'c-25.776,18.058-51.687,36.447-80.395,50.991c-26.972,16.361-49.049-9.072-42.321-37.394'+'c11.128-52.841,25.776-104.882,37.736-157.564c3.737-28.468-33.728,0.511-44.872,7.136c-8.985,11.292-13.25,3.051-16.997-7.136'+'c29.871-21.816,60.325-48.593,93.313-65.949C293.138,198.238,298.92,196.622,303.739,196.318z"/>'+'</g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></svg>';$('.tool_bar').append('<span class="info_show_hide rwd-icon">'+$info+'</span>')}
$arrows=$('.rwd-arrows .rwd-next, .rwd-arrows .rwd-prev');$next=$('.rwd-arrows .rwd-next');$prev=$('.rwd-arrows .rwd-prev');var title_text=$('.rwd-title');switch(this.settings.titlePos){case 'left':title_text.css({'text-align':'left'});break;case 'center':title_text.css({'text-align':'center'});break;case 'right':title_text.css({'text-align':'right'});break}
switch(this.settings.lightboxView){case 'view1':default:$arrows.css({'top':'50%'});$next.css({'right':'20px'});$prev.css({'left':'20px'});break;case 'view2':$arrows.css({'bottom':'0'});$next.css({'right':'40%'});$prev.css({'left':'40%'});break;case 'view3':$arrows.css({'top':'14px','z-index':'1090'});$next.css({'right':'20px'});$prev.css({'right':'55px'});title_text.css({'text-align':'left','border-top':'1px solid #999'});$('.rwd-close').css({'margin-right':'45%'});$('.rwd-overlay, .rwd-toolbar, .rwd-title, .rwd-next, .rwd-prev').css({'background':'rgba(255, 255, 255, 1)'});$('.rwd-title, .shareLook').css({'color':'#999'});$('.rwd-toolbar').css({'border-bottom':'1px solid #999'});$('.rwd-toolbar .rwd-icon, .rwd-arrows .rwd-icon').addClass('rwd-icon0');break}
this.prevScrollTop=$(window).scrollTop();$object.objects.content=$('.rwd-container');$object.objects.content.css({'width':$object.settings.width,'height':$object.settings.height});if($(window).width()<768&&this.settings.lightboxView==='view7'){$object.objects.content.css({'width':'100%','height':'100%'})}
var $color,$zoomTop=(document.documentElement.clientHeight-$object.objects.content.height())/2;switch(this.settings.lightboxView){case 'view3':$color='rgba(255,255,255,.9)';break;default:$color='rgba(0,0,0,.9)';break}
if(hugeit_resp_lightbox_obj.hugeit_lightbox_rightclick_protection==='true'){setTimeout(function(){$('.rwd-container').bind('contextmenu',function(){return!1})},50)}
if(this.settings.showBorder){$('.rwd-container').css({border:'2px solid #999'})}};Lightbox.prototype.calculateDimensions=function(index){var $object=this,$width;$width=$('.'+$object.settings.classPrefix+'current').height()*16/9;if($width>$object.settings.videoMaxWidth){$width=$object.settings.videoMaxWidth}
$('.'+$object.settings.classPrefix+'video-cont ').css({'max-width':$width+'px'});if(this.settings.lightboxView==='view7'){var $img,$video,$_inner,$_width,$_height,$_wrap,$wrapHeight,$_top,$top,$left,$_left=0,$t,$length,$k;setTimeout(function(){$img=document.querySelector('.rwd-item:nth-child('+(index+1)+') img');$video=document.querySelector('.rwd-item:nth-child('+(index+1)+') .rwd-video-cont');$_inner=document.querySelector('.rwd-item:nth-child('+(index+1)+') .view7_inner');if($img&&$(window).width()>768){$k=$object.$item.eq(index).find('img').prop('naturalWidth')/$object.$item.eq(index).find('img').prop('naturalHeight');if($object.$item.eq(index).find('img').prop('naturalWidth')>$object.$item.eq(index).find('img').prop('naturalHeight')&&$k>2){if($object.$item.eq(index).find('img').prop('naturalWidth')<500){$object.$item.eq(index).find('img').css({minWidth:'70%'})}}else{if($object.$item.eq(index).find('img').prop('naturalHeight')<500){$object.$item.eq(index).find('img').css({minHeight:'70%'})}}}
$_width=parseFloat(window.getComputedStyle($img||$video,null).width);$_height=parseFloat(window.getComputedStyle($img||$video,null).height);switch($img||$video){case $img:$_wrap=document.querySelector('.rwd-item:nth-child('+(index+1)+') .rwd-img-wrap');break;case $video:$_wrap=document.querySelector('.rwd-item:nth-child('+(index+1)+')');break}
$wrapHeight=parseFloat(window.getComputedStyle($_wrap,null).height);$top=($wrapHeight-$_height)/2+$_height-40;$_top=($wrapHeight-$_height)/2;$left=($('.rwd-container').width()-(parseFloat(window.getComputedStyle($_inner,null).width)+$_width))/2;$t=($object.settings.thumbnail)?47:0;if($('.rwd-container').width()>768){$('.rwd-view7-title').eq(index).width($('.rwd-container').width()*0.2-46);$('.rwd-view7-desc').eq(index).width($('.rwd-container').width()*0.2-36);setTimeout(function(){$('.rwd-view7-desc').height($('.view7_inner').height()-($object.settings.showTitle?120:9))},200);$_left=($_inner.classList.contains('is_close'))?0:$('.rwd-container').width()*0.1;$('.rwd-toolbar').css({width:$_width+1+'px',top:$top+$t+($('.rwd-container').hasClass('rwd_toggle_bar')?40:0)+1+'px',left:$left+'px'});$('.rwd-close-bar').css({top:$_top+$t+'px',left:$left+$_width-25+'px'});($img||$video).style.left=-$_left+($object.settings.showBorder?$object.settings.borderSize:0);$('.view7_inner').eq(index).css({top:$_top+'px',left:$_left+$left+$_width+'px',height:$_height+1+'px'});$('.view7_share').css({top:$_top+$t+12+'px',right:2*$_left+$_width+$left+5+'px'});$length=$('.view7_share li').length+1;$('.view7_share, .view7_share > div').width(($_height-42)/$length).height(($_height-42)/$length);$('.view7_share li').width(($_height-42)/$length).height(($_height-42)/$length)}else{$('.rwd-toolbar').css({width:$(window).width()+'px',top:'0'});$('.rwd-toolbar .rwd-icon, .view7_share').width($(window).width()*0.2);$('.view7_share').css({'top':'0','z-index':'999999999','left':($(window).width()*0.2-40)*0.5+'px'});$('.rwd-share-buttons').css({height:$(window).height()+'px',width:$(window).width()+'px',left:-($(window).width()*0.2-40)*0.5+'px'});$('.rwd-share-buttons li').css({width:($(window).width()-($object.settings.showBorder?8:0))*0.2+'px',maxWidth:'none'});$('.rwd-share-buttons li a').css({marginLeft:$(window).width()*0.1-20+'px'});$('.rwd-close-bar').css({top:$_top+$t+5+'px',left:($(window).width()-$_width)/2+$_width-30+'px'})}},0)}};Lightbox.prototype.innerOpenClose=function(){var $object=this;$('.info_show_hide').off('click');$('.info_show_hide').on('click',function(){var $view7_inner=$('.rwd-item.rwd-current').find('.view7_inner'),$toolbar=$('.rwd-toolbar'),$closebar=$('.rwd-close-bar'),$imgcont=$('.rwd-item.rwd-current').find('img'),$videoCont=$('.rwd-item.rwd-current').find('.rwd-video-cont '),$zoomcont=$('.zoomContainer'),$view7_share=$('.view7_share');if($('.rwd-container').width()>768){if($('.rwd-item.rwd-current').hasClass('isImg')){if(!$view7_inner.hasClass('is_close')){$view7_inner.addClass('is_close');$view7_inner.animate({width:'0',left:parseFloat($view7_inner.css('left'))+'px'},1000);$toolbar.animate({width:parseFloat($toolbar.css('width'))+1+'px',left:parseFloat($toolbar.css('left'))+parseFloat($view7_inner.css('width'))/2+'px'},1000);$closebar.animate({left:parseFloat($closebar.css('left'))+parseFloat($view7_inner.css('width'))/2+'px'},1000);$imgcont.animate({left:parseFloat($imgcont.css('left'))+parseFloat($view7_inner.css('width'))/2+'px'},1000);$zoomcont.animate({left:parseFloat($imgcont.css('left'))+parseFloat($view7_inner.css('width'))/2+'px'},1000);$view7_share.animate({left:parseFloat($view7_share.css('left'))+parseFloat($view7_inner.css('width'))/2+'px'},1000)}else{$view7_inner.removeClass('is_close');$view7_inner.animate({width:$('.rwd-container').width()*0.2+'px',left:parseFloat($view7_inner.css('left'))+'px'},1000);$toolbar.animate({width:parseFloat($toolbar.css('width'))-1+'px',left:parseFloat($toolbar.css('left'))-$('.rwd-container').width()*0.1+'px'},1000);$closebar.animate({left:parseFloat($closebar.css('left'))-$('.rwd-container').width()*0.1+'px'},1000);$imgcont.animate({left:parseFloat($imgcont.css('left'))-$('.rwd-container').width()*0.1+'px'},1000);$zoomcont.animate({left:parseFloat($imgcont.css('left'))-$('.rwd-container').width()*0.1+'px'},1000);$view7_share.animate({left:parseFloat($view7_share.css('left'))-$('.rwd-container').width()*0.1+'px'},1000)}}else if($('.rwd-item.rwd-current').hasClass('isVideo')){if(!$view7_inner.hasClass('is_close')){$view7_inner.addClass('is_close');$view7_inner.animate({width:'0',left:parseFloat($view7_inner.css('left'))+'px'},1000);$toolbar.animate({left:parseFloat($toolbar.css('left'))+parseFloat($view7_inner.css('width'))/2+0.5+'px'},1000);$closebar.animate({left:parseFloat($closebar.css('left'))+parseFloat($view7_inner.css('width'))/2+'px'},1000);$videoCont.animate({left:parseFloat($videoCont.css('left'))+parseFloat($view7_inner.css('width'))/2+'px'},1000);$view7_share.animate({left:parseFloat($view7_share.css('left'))+parseFloat($view7_inner.css('width'))/2+'px'},1000)}else{$view7_inner.removeClass('is_close');$view7_inner.animate({width:$('.rwd-container').width()*0.2+'px',left:parseFloat($view7_inner.css('left'))+'px'},1000);$toolbar.animate({left:parseFloat($toolbar.css('left'))-$('.rwd-container').width()*0.1-0.5+'px'},1000);$closebar.animate({left:parseFloat($closebar.css('left'))-$('.rwd-container').width()*0.1+'px'},1000);$videoCont.animate({left:parseFloat($videoCont.css('left'))-$('.rwd-container').width()*0.1+'px'},1000);$view7_share.animate({left:parseFloat($view7_share.css('left'))-$('.rwd-container').width()*0.1+'px'},1000)}}}else{if(!$view7_inner.hasClass('is_open')){$view7_inner.addClass('is_open');if($('.rwd-share-buttons').css('display')==='block'){$('.rwd-share-buttons').css({'display':'none'})}
$('.rwd-close-bar,.rwd-arrows .rwd-next, .rwd-arrows .rwd-prev').css({zIndex:'1'});if(!$object.settings.thumbnail){$view7_inner.css({top:'40px'})}
if($object.settings.thumbnail&&hugeit_resp_lightbox_obj.hugeit_lightbox_thumbs_position==='1'){$view7_inner.css({top:-(+hugeit_resp_lightbox_obj.hugeit_lightbox_thumbs_height)+'px'})}
$view7_inner.animate({height:$(window).height()+'px'},1000)}else{$view7_inner.removeClass('is_open');$('.rwd-close-bar,.rwd-arrows .rwd-next, .rwd-arrows .rwd-prev').animate({zIndex:'999999999'},700);$view7_inner.animate({height:'0'},1000)}}})};Lightbox.prototype.effectsSupport=function(){var transition,root,support;support=function(){transition=['transition','MozTransition','WebkitTransition','OTransition','msTransition','KhtmlTransition'];root=document.documentElement;for(var i=0;i<transition.length;i++){if(transition[i]in root.style){return transition[i]in root.style}}};return support()};Lightbox.prototype.isVideo=function(src,index){var youtube,vimeo,dailymotion;youtube=src.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i);vimeo=src.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i);dailymotion=src.match(/^.+dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/);if(youtube){return{youtube:youtube}}else if(vimeo){return{vimeo:vimeo}}else if(dailymotion){return{dailymotion:dailymotion}}};Lightbox.prototype.counter=function(){if(this.settings.showCounter){switch(this.settings.lightboxView){case 'view1':default:$('.'+this.settings.classPrefix+'toolbar').append(this.objects.counter=$('<div id="'+this.settings.idPrefix+'counter"></div>'));$('#rwd-counter').css({'padding-left':'23px'});break;case 'view2':case 'view4':case 'view7':$('.'+this.settings.classPrefix+'bar').append('<div class="barCont"></div>').append(this.objects.counter=$('<div id="'+this.settings.idPrefix+'counter"></div>'));break;case 'view5':case 'view6':$('.contInner').append(this.objects.counter=$('<div id="'+this.settings.idPrefix+'counter"></div>'));break}
this.objects.counter.append(this.objects.current=$('<div>'+this.settings.sequence_info+' <span id="'+this.settings.idPrefix+'counter-current">'+(parseInt(this.index,10)+1)+'</span> '+this.settings.sequenceInfo+' <span id="'+this.settings.idPrefix+'counter-all">'+this.$items.length+'</span></div>'))}};Lightbox.prototype.setTitle=function(index){var $object=this,$title,$currentElement;$currentElement=this.$items.eq(index);$title=$currentElement.find('img').attr('alt')||$currentElement.find('img').attr('title')||this.settings.defaultTitle||'';this.$cont.find('.'+this.settings.classPrefix+'title').html('<div class="rwd-title-text">'+$title+'</div>');(($object.settings.lightboxView==='view2')&&$('.rwd-title-text').css({'width':'100%'}));if($object.settings.lightboxView!=='view1'&&$object.settings.lightboxView!=='view3'&&$object.settings.lightboxView!=='view4'){($title===''&&$object.settings.socialSharing)?this.$cont.find('.'+this.settings.classPrefix+'title').hide():this.$cont.find('.'+this.settings.classPrefix+'title').show()}
if($object.settings.lightboxView==='view7'){if(this.settings.showTitle){$('.rwd-view7-title').eq(index).html($title);setTimeout(function(){$('.rwd-view7-title').eq(index).html($title)},200)}}};Lightbox.prototype.setDescription=function(index){var $object=this,$description,$currentElement;$currentElement=this.$items.eq(index);$description=$currentElement.find('img').attr('data-description')||'';this.$cont.find('.'+this.settings.classPrefix+'description').html('<div class="rwd-description-text" title="'+$description+'">'+$description+'</div>');if($object.settings.lightboxView==='view7'){if(this.settings.showDesc){setTimeout(function(){$('.rwd-view7-desc').eq(index).html($description);$('.rwd-view7-desc').eq(index).attr('title',$description)},200)}}};Lightbox.prototype.preload=function(index){for(var i=1;i<=this.settings.preload;i++){if(i>=this.$items.length-index){break}
this.loadContent(index+i,!1,0)}
for(var j=1;j<=this.settings.preload;j++){if(index-j<0){break}
this.loadContent(index-j,!1,0)}};Lightbox.prototype.socialShare=function(){var $object=this,shareButtons;if(this.settings.lightboxView!=='view7'){shareButtons='<ul class="rwd-share-buttons">';shareButtons+=$object.settings.share.facebookButton?'<li><a title="Facebook" id="rwd-share-facebook" target="_blank"></a></li>':'';shareButtons+=$object.settings.share.twitterButton?'<li><a title="Twitter" id="rwd-share-twitter" target="_blank"></a></li>':'';shareButtons+=$object.settings.share.googleplusButton?'<li><a title="Google Plus" id="rwd-share-googleplus" target="_blank"></a></li>':'';shareButtons+=$object.settings.share.pinterestButton?'<li><a title="Pinterest" id="rwd-share-pinterest" target="_blank"></a></li>':'';shareButtons+=$object.settings.share.linkedinButton?'<li><a title="Linkedin" id="rwd-share-linkedin" target="_blank"></a></li>':'';shareButtons+=$object.settings.share.tumblrButton?'<li><a title="Tumblr" id="rwd-share-tumblr" target="_blank"></a></li>':'';shareButtons+=$object.settings.share.redditButton?'<li><a title="Reddit" id="rwd-share-reddit" target="_blank"></a></li>':'';shareButtons+=$object.settings.share.bufferButton?'<li><a title="Buffer" id="rwd-share-buffer" target="_blank"></a></li>':'';shareButtons+=$object.settings.share.diggButton?'<li><a title="Digg" id="rwd-share-digg" target="_blank"></a></li>':'';shareButtons+=$object.settings.share.vkButton?'<li><a title="VK" id="rwd-share-vk" target="_blank"></a></li>':'';shareButtons+=$object.settings.share.yummlyButton?'<li><a title="Yummly" id="rwd-share-yummly" target="_blank"></a></li>':'';shareButtons+='</ul>'}else{var $fb='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 34.5"'+'style="enable-background:new 0 0 30 34.5;" xml:space="preserve"><style type="text/css">.st0 {fill-rule: evenodd;clip-rule: evenodd;fill: #FFFFFF;</style>'+'<g id="Shape_3"> <g id="XMLID_84_"> <path id="XMLID_85_" class="st0"'+'d="M16.8,12.8V11c0-0.9,0.6-1.1,1.1-1.1c0.4,0,2.7,0,2.7,0V6l-3.7,0c-4.1,0-5.1,2.9-5.1,4.8v2.1H9.4v4.6h2.4c0,5.2,0,11.4,0,11.4h4.8c0,0,0-6.3,0-11.4h3.6l0.2-1.8l0.3-2.8H16.8z"></path>'+'</g> </g></svg>';var $gp='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 34.5"'+'style="enable-background:new 0 0 30 34.5;" xml:space="preserve"><style type="text/css">.st0 {fill: #FFFFFF;}</style>'+'<g id="Shape_4"> <g id="XMLID_99_"> <path id="XMLID_100_" class="st0"'+'d="M23.4,16.1v-0.4c0-0.6,0-1.1,0-1.7c0-0.1-0.1-0.3-0.2-0.3c-0.5,0-1,0-1.6,0v2.3h-2.4c0,0.2,0,0.3,0,0.4c0,0.4,0,0.8,0.1,1.3c0.4,0,0.8,0,1.3,0c0.4,0,0.7,0,1.1,0v2.3h1.7v-2.3h2.4v-1.7H23.4z M17.1,15.9c-1.5,0-3,0-4.5,0c-0.4,0-0.9,0-1.3,0c-0.1,0-0.2,0.1-0.2,0.2c0,0.8,0,1.7,0,2.5h3.7c0,0.2-0.1,0.3-0.1,0.4c-0.6,1.6-2.3,2.4-4.1,2.1c-2.3-0.4-3.7-2.4-3.3-4.6c0.1-0.3,0.2-0.6,0.3-0.9c0.8-1.6,2.6-2.6,4.5-2.2c0.7,0.1,1.2,0.5,1.7,0.9c0.7-0.7,1.3-1.3,2-2c0,0-0.1-0.1-0.2-0.1c-1.6-1.3-3.5-1.8-5.5-1.5c-3,0.5-5.1,2.8-5.6,5.4c-0.2,1.1-0.1,2.3,0.4,3.5c1.1,2.8,4.1,4.6,7.2,4.2c1.5-0.2,2.9-0.7,4-1.8c1.6-1.6,2-3.6,1.7-5.7C17.6,15.9,17.4,15.9,17.1,15.9z"></path>'+'</g> </g></svg>';var $twitter='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 34.5"'+'style="enable-background:new 0 0 30 34.5;" xml:space="preserve"><style type="text/css">.st0 {fill-rule: evenodd;clip-rule: evenodd;fill: #FFFFFF;}</style> <g id="Shape_5"> <g id="XMLID_84_"> <path id="XMLID_85_" class="st0"'+'d="M27,11.9c-0.8,0.4-1.6,0.6-2.5,0.7c0.9-0.6,1.6-1.5,1.9-2.5c-0.9,0.5-1.8,0.9-2.8,1.1c-0.8-0.9-2-1.4-3.2-1.4c-2.4,0-4.4,2-4.4,4.6c0,0.4,0,0.7,0.1,1c-3.7-0.2-6.9-2-9.1-4.8c-0.4,0.7-0.6,1.5-0.6,2.3c0,1.6,0.8,3,2,3.8c-0.7,0-1.4-0.2-2-0.6v0.1c0,0.6,0.1,1.1,0.3,1.7c0.5,1.4,1.8,2.5,3.2,2.8c-0.4,0.1-0.8,0.2-1.2,0.2c-0.3,0-0.6,0-0.8-0.1c0.6,1.8,2.2,3.1,4.1,3.2c-1.5,1.2-3.4,2-5.5,2c-0.4,0-0.7,0-1.1-0.1c2,1.3,4.3,2,6.8,2c6.9,0,11.2-5,12.3-10.2c0.2-0.9,0.3-1.8,0.3-2.8c0-0.2,0-0.4,0-0.6C25.6,13.6,26.4,12.8,27,11.9z"></path>'+'</g> </g></svg>';var $vk='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 34.5"'+'style="enable-background:new 0 0 30 34.5;" xml:space="preserve"><style type="text/css">.st0 {fill-rule: evenodd;clip-rule: evenodd;fill: #FFFFFF;}</style> <g id="Shape_12"> <g id="XMLID_86_"> <path id="XMLID_87_" class="st0"'+'d="M26,23.7c-0.4-0.7-1.1-1.6-2.2-2.7l0,0l0,0l0,0h0c-0.5-0.5-0.8-0.8-0.9-1c-0.2-0.3-0.3-0.7-0.2-1c0.1-0.3,0.4-0.8,1.1-1.6c0.3-0.4,0.6-0.8,0.8-1c1.3-1.9,1.9-3.1,1.8-3.6l-0.1-0.1c0-0.1-0.2-0.1-0.4-0.2c-0.2-0.1-0.4-0.1-0.7,0l-3.4,0c-0.1,0-0.1,0-0.2,0c-0.1,0-0.2,0-0.2,0l-0.1,0l0,0c0,0-0.1,0.1-0.1,0.1c0,0.1-0.1,0.1-0.1,0.2c-0.4,1-0.8,1.9-1.3,2.7c-0.3,0.5-0.6,0.9-0.8,1.3c-0.2,0.4-0.4,0.6-0.6,0.8c-0.2,0.2-0.3,0.3-0.4,0.4c-0.1,0.1-0.2,0.1-0.3,0.1c-0.1,0-0.1,0-0.2,0c-0.1-0.1-0.2-0.2-0.3-0.3c-0.1-0.1-0.1-0.3-0.1-0.5c0-0.2,0-0.4,0-0.5c0-0.1,0-0.3,0-0.6c0-0.3,0-0.4,0-0.5c0-0.3,0-0.6,0-1c0-0.4,0-0.6,0-0.9s0-0.4,0-0.7c0-0.2,0-0.4,0-0.6c0-0.1-0.1-0.3-0.1-0.4c-0.1-0.1-0.1-0.2-0.2-0.3c-0.1-0.1-0.2-0.1-0.4-0.2c-0.4-0.1-0.9-0.1-1.6-0.2c-1.5,0-2.4,0.1-2.8,0.3c-0.2,0.1-0.3,0.2-0.4,0.4c-0.1,0.2-0.2,0.3-0.1,0.3c0.5,0.1,0.8,0.2,1,0.5l0.1,0.1c0.1,0.1,0.1,0.3,0.2,0.6c0.1,0.3,0.1,0.6,0.1,0.9c0,0.6,0,1.1,0,1.5c0,0.4-0.1,0.7-0.1,1c0,0.2-0.1,0.4-0.2,0.6c-0.1,0.1-0.1,0.2-0.1,0.3c0,0,0,0.1-0.1,0.1c-0.1,0-0.2,0.1-0.3,0.1c-0.1,0-0.2-0.1-0.4-0.2c-0.2-0.1-0.3-0.3-0.5-0.5c-0.2-0.2-0.4-0.5-0.6-0.8c-0.2-0.4-0.4-0.8-0.7-1.3l-0.2-0.4c-0.1-0.2-0.3-0.6-0.5-1c-0.2-0.4-0.4-0.9-0.5-1.3c-0.1-0.2-0.2-0.3-0.3-0.4l-0.1,0c0,0-0.1-0.1-0.2-0.1c-0.1,0-0.2-0.1-0.3-0.1l-3.2,0c-0.3,0-0.5,0.1-0.7,0.2l0,0.1c0,0,0,0.1,0,0.2c0,0.1,0,0.2,0.1,0.3c0.5,1.1,1,2.2,1.5,3.3c0.5,1.1,1,1.9,1.4,2.6C7.2,19.8,7.6,20.4,8,21c0.4,0.6,0.7,0.9,0.8,1.1c0.1,0.2,0.2,0.3,0.3,0.4l0.3,0.3c0.2,0.2,0.5,0.4,0.8,0.7c0.4,0.3,0.8,0.5,1.2,0.8c0.4,0.3,1,0.5,1.5,0.6c0.6,0.2,1.2,0.2,1.7,0.2h1.3c0.3,0,0.5-0.1,0.6-0.3l0-0.1c0,0,0.1-0.1,0.1-0.2c0-0.1,0-0.2,0-0.3c0-0.3,0-0.7,0.1-0.9c0.1-0.3,0.1-0.5,0.2-0.6c0.1-0.1,0.2-0.3,0.3-0.4c0.1-0.1,0.2-0.2,0.2-0.2c0,0,0.1,0,0.1,0c0.2-0.1,0.4,0,0.7,0.2c0.3,0.2,0.5,0.4,0.7,0.7c0.2,0.3,0.5,0.6,0.8,0.9c0.3,0.3,0.6,0.6,0.8,0.8l0.2,0.1c0.2,0.1,0.4,0.2,0.6,0.3c0.2,0.1,0.5,0.1,0.7,0.1l3,0c0.3,0,0.5-0.1,0.7-0.2c0.2-0.1,0.3-0.2,0.3-0.3c0-0.1,0-0.3,0-0.4c0-0.2-0.1-0.3-0.1-0.3C26.1,23.8,26.1,23.8,26,23.7z"></path> </g> </g></svg>';var $pinterest='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 34.5"style="enable-background:new 0 0 30 34.5;" xml:space="preserve"><style type="text/css">.st0 {fill-rule: evenodd;clip-rule: evenodd;fill: #FFFFFF;}</style> <g id="Shape_7"> <g id="XMLID_84_"> <path id="XMLID_85_" class="st0"d="M16.6,4.4c-6.9,0-10.4,5-10.4,9.2c0,0.8,0.1,1.5,0.3,2.2c0.4,1.6,1.3,2.8,2.7,3.4c0.3,0.1,0.6,0,0.7-0.4c0.1-0.3,0.2-0.9,0.3-1.2c0.1-0.4,0.1-0.5-0.2-0.8c-0.4-0.4-0.6-0.9-0.8-1.5C9.1,15,9,14.5,9,14c0-3.7,2.8-7.1,7.2-7.1c3.9,0,6.1,2.4,6.1,5.6c0,1-0.1,1.9-0.3,2.7c-0.6,3-2.2,5.1-4.4,5.1c-1.5,0-2.7-1.3-2.3-2.8c0.2-0.9,0.5-1.8,0.8-2.7c0.3-1,0.5-1.8,0.5-2.5c0-1.2-0.6-2.2-2-2.2c-1.6,0-2.8,1.6-2.8,3.8c0,0.4,0,0.8,0.1,1.1c0.1,0.8,0.4,1.2,0.4,1.2s-1.6,6.8-1.9,8c-0.6,2.4-0.1,5.3,0,5.6c0,0.2,0.2,0.2,0.3,0.1c0.1-0.2,2-2.5,2.6-4.8c0.2-0.7,1-4,1-4c0.5,1,2,1.8,3.6,1.8c3.8,0,6.6-2.9,7.5-7c0.2-1,0.3-2,0.3-3C25.8,8.5,22.2,4.4,16.6,4.4z"></path> </g> </g></svg>';var $linkedin='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 34.5"style="enable-background:new 0 0 30 34.5;" xml:space="preserve"><style type="text/css">.st0 {fill: #FFFFFF;}</style> <g id="Shape_8"> <g id="XMLID_107_"> <path id="XMLID_108_" class="st0"d="M9.8,12.5l-4.6,0l0,3.5l0,9.8l4.6,0l0-10.5L9.8,12.5z M7.5,10.5c1.3,0,2.3-1,2.3-2.3c0-1.3-1-2.3-2.3-2.3c-1.3,0-2.3,1-2.3,2.3C5.2,9.5,6.2,10.5,7.5,10.5z M24.8,18.5L24.8,18.5c0-0.7,0-1.3-0.1-1.9c-0.3-2.5-1.4-4.1-4.8-4.1c-2,0-3.3,0.7-3.8,1.8l-0.1,0l0-1.8l-3.6,0l0,2.5l0,10.7l3.8,0l0-6.6c0-1.7,0.3-3.4,2.4-3.4c2.1,0,2.3,2,2.3,3.5l0,6.5l3.9,0L24.8,18.5z"></path> </g> </g></svg>';var $tumblr=' <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" viewBox="0 0 30.101 30.102" style="enable-background:new 0 0 30.101 30.102;" xml:space="preserve"><g> <path d="M24.313,28.246c0,0.154-0.041,0.23-0.187,0.301c-2.326,1.117-4.771,1.661-7.354,1.537 c-1.592-0.077-3.122-0.395-4.528-1.182c-0.612-0.344-1.158-0.772-1.653-1.271c-0.884-0.884-1.327-1.962-1.421-3.192c-0.043-0.57-0.073-1.144-0.074-1.715c-0.007-3.347-0.003-6.695-0.003-10.042c0-0.101,0-0.202,0-0.342c-1.113,0-2.19,0-3.287,0c-0.005-0.098-0.013-0.174-0.013-0.251c0-1.277,0.002-2.556-0.004-3.833c0-0.146,0.035-0.222,0.183-0.273 c3.151-1.107,5.005-3.342,5.688-6.583c0.049-0.229,0.094-0.461,0.133-0.692C11.832,0.478,11.863,0.245,11.9,0 c1.414,0,2.822,0,4.26,0c0,2.526,0,5.053,0,7.602c2.393,0,4.756,0,7.141,0c0,1.585,0,3.147,0,4.732c-2.365,0-4.729,0-7.108,0c-0.013,0.079-0.021,0.139-0.021,0.198c0.002,2.837-0.004,5.677,0.012,8.515c0.004,0.617,0.07,1.234,0.139,1.852 c0.082,0.741,0.475,1.295,1.107,1.687c0.938,0.577,1.963,0.698,3.033,0.592c1.297-0.13,2.475-0.601,3.575-1.278  c0.076-0.048,0.156-0.094,0.271-0.162c0,0.092,0,0.151,0,0.211C24.308,25.377,24.306,26.811,24.313,28.246z"fill="#FFFFFF"></path> </g> <g></g> <g></g> <g></g> <g></g> <g></g> <g></g> <g></g> <g></g> <g></g> <g></g> <g></g> <g></g> <g></g> <g></g> <g></g></svg>';var $reddit=' <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 34.5" style="enable-background:new 0 0 30 34.5;" xml:space="preserve"><style type="text/css">.st0 {fill-rule: evenodd;clip-rule: evenodd;fill: #FFFFFF;}</style> <g id="Shape_25"> <g id="XMLID_146_"> <path id="XMLID_147_" class="st0"d="M26.7,16.2L26.7,16.2L26.7,16.2L26.7,16.2c-0.1-0.7-0.3-1.4-0.7-1.9c-0.4-0.5-1-0.9-1.6-1.1c0,0,0,0,0,0l0,0h0c-0.3-0.1-0.5-0.1-0.8-0.1c-0.6,0-1.2,0.2-1.7,0.6c-0.1,0.1-0.3,0.2-0.4,0.3c-0.1,0-0.1-0.1-0.1-0.1l0,0h0c-1.7-1.1-3.6-1.6-5.4-1.7c0-0.9,0.1-1.7,0.4-2.4v0c0.2-0.5,0.7-0.8,1.2-0.9h0c0.1,0,0.2,0,0.3,0c0.7,0,1.3,0.3,1.9,0.6c0,0,0,0.1,0,0.1c0,0.8,0.3,1.5,0.7,2c0.5,0.5,1.1,0.9,1.7,0.9c0.1,0,0.2,0,0.3,0c0.7,0,1.3-0.3,1.8-0.8c0.5-0.5,0.9-1.2,0.9-2v0l0,0c0-0.1,0-0.2,0-0.3c0-0.6-0.2-1.2-0.5-1.7s-0.7-0.9-1.2-1.1c0,0,0,0,0,0c0,0,0,0,0,0v0c-0.3-0.2-0.7-0.2-1.1-0.2c-0.3,0-0.7,0.1-1,0.2l0,0l0,0c-0.6,0.2-1,0.7-1.4,1.2c-0.7-0.3-1.5-0.5-2.4-0.5c-0.3,0-0.6,0-0.9,0.1h0l0,0C16,7.5,15.4,8.2,15,9c-0.5,1-0.6,2.1-0.6,3.1c-1.9,0.1-3.9,0.6-5.6,1.7c-0.1,0-0.2,0.1-0.3,0.2c-0.3-0.2-0.6-0.4-0.9-0.6h0l0,0c-0.4-0.2-0.8-0.2-1.1-0.2c-0.1,0-0.2,0-0.2,0h0c-0.8,0-1.5,0.4-2,1c-0.5,0.6-0.9,1.4-0.9,2.3v0c0,0.6,0.2,1.2,0.5,1.7c0.3,0.5,0.7,0.9,1.1,1.1c0,0.3,0,0.5,0,0.8c0,1.1,0.3,2.3,0.8,3.2c1,1.8,2.6,3,4.2,3.8h0v0c1.6,0.7,3.3,1.1,5.1,1.1c1.2,0,2.3-0.2,3.4-0.5l0,0c2.1-0.6,4.2-1.8,5.6-3.8h0v0c0.7-1.1,1.2-2.4,1.2-3.8c0-0.3,0-0.5,0-0.8c0.5-0.3,0.8-0.7,1.1-1.2c0.3-0.5,0.5-1.1,0.5-1.8C26.7,16.3,26.7,16.3,26.7,16.2z M21.4,8.4c0.2-0.2,0.4-0.4,0.7-0.5l0,0h0c0.1,0,0.2-0.1,0.3-0.1c0.3,0,0.7,0.2,0.9,0.4c0.2,0.3,0.4,0.6,0.4,1c0,0,0,0.1,0,0.1v0c0,0.4-0.2,0.7-0.4,1c-0.2,0.3-0.6,0.4-0.9,0.4c0,0,0,0-0.1,0h0c-0.3,0-0.6-0.2-0.9-0.4c-0.2-0.3-0.4-0.6-0.4-1v0c0,0,0-0.1,0-0.1C21.1,9,21.3,8.7,21.4,8.4z M5.4,17.7c-0.1-0.1-0.3-0.3-0.3-0.5c-0.1-0.2-0.2-0.5-0.2-0.8c0,0,0-0.1,0-0.1l0,0v0c0-0.4,0.2-0.8,0.5-1.1c0.3-0.3,0.7-0.5,1-0.5l0,0h0c0,0,0.1,0,0.1,0c0.3,0,0.5,0.1,0.8,0.2C6.5,15.7,5.8,16.6,5.4,17.7z M23.6,20.9L23.6,20.9c-0.1,0.7-0.4,1.3-0.8,1.9c-0.4,0.6-0.8,1.1-1.3,1.5v0c-1.6,1.3-3.5,2-5.5,2.1c-0.3,0-0.7,0-1,0c-1.9,0-3.9-0.5-5.6-1.5c-0.1-0.1-0.3-0.2-0.4-0.3c-0.6-0.4-1.1-0.9-1.6-1.5c-0.5-0.6-0.8-1.3-1-2l0,0c-0.1-0.3-0.1-0.7-0.1-1c0-0.9,0.3-1.9,0.8-2.7v0c1-1.5,2.5-2.5,4.1-3.1c1.2-0.4,2.5-0.6,3.8-0.6c0.9,0,1.9,0.1,2.8,0.4c0.3,0.1,0.6,0.2,0.9,0.3l0,0c1.6,0.6,3.1,1.6,4.1,3.1c0.5,0.8,0.8,1.7,0.8,2.7C23.7,20.4,23.6,20.7,23.6,20.9z M25,17.2c-0.1,0.2-0.2,0.4-0.4,0.5c-0.4-1.1-1.1-2-1.9-2.7c0.2-0.1,0.5-0.2,0.8-0.2c0.3,0,0.6,0.1,0.9,0.2c0.3,0.2,0.5,0.4,0.6,0.7l0,0l0,0c0.1,0.2,0.1,0.4,0.1,0.7C25.2,16.7,25.1,16.9,25,17.2z M10.9,20.3C10.9,20.3,10.9,20.3,10.9,20.3c0.2,0.1,0.3,0.1,0.5,0.1c0.4,0,0.7-0.2,1-0.5c0.3-0.3,0.5-0.7,0.5-1.1v0c0,0,0,0,0-0.1c0-0.5-0.2-0.9-0.5-1.1c-0.3-0.3-0.6-0.5-1-0.5c-0.1,0-0.2,0-0.3,0c0,0,0,0,0,0h0c-0.5,0.1-0.9,0.5-1.1,1.1c0,0,0,0,0,0c0,0.2-0.1,0.3-0.1,0.5c0,0.4,0.1,0.7,0.3,1C10.3,20,10.6,20.2,10.9,20.3C10.9,20.3,10.9,20.3,10.9,20.3z M19.1,22.4c-0.1-0.1-0.3-0.1-0.4-0.1c-0.1,0-0.2,0-0.4,0.1c-1,0.7-2.2,1.1-3.5,1.1c-0.9,0-1.8-0.2-2.6-0.7l0,0l0,0c-0.1-0.1-0.3-0.2-0.4-0.3c-0.1-0.1-0.2-0.1-0.2-0.2c-0.1,0-0.2-0.1-0.3-0.1c-0.1,0-0.2,0-0.3,0.1c0,0,0,0,0,0c-0.1,0.1-0.3,0.2-0.3,0.3c-0.1,0.1-0.1,0.3-0.1,0.5c0,0.1,0,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.3,0.3c1.2,0.9,2.5,1.3,3.9,1.3c1.2,0,2.5-0.3,3.6-0.9l0,0l0,0c0.1-0.1,0.3-0.2,0.5-0.3c0.1-0.1,0.2-0.1,0.3-0.2c0.1-0.1,0.1-0.2,0.2-0.4c0-0.1,0-0.1,0-0.2c0-0.1,0-0.2-0.1-0.3C19.3,22.7,19.2,22.5,19.1,22.4z M20,18.2C20,18.2,20,18.2,20,18.2C20,18.2,20,18.2,20,18.2c-0.1-0.4-0.3-0.6-0.6-0.8c-0.3-0.2-0.6-0.3-0.9-0.3c-0.2,0-0.3,0-0.5,0.1c0,0,0,0,0,0c0,0,0,0,0,0c-0.3,0.1-0.5,0.3-0.7,0.6c-0.2,0.3-0.3,0.6-0.3,0.9c0,0.1,0,0.2,0,0.3h0c0,0,0,0,0,0v0c0.1,0.4,0.3,0.7,0.5,1c0.3,0.2,0.6,0.4,0.9,0.4c0.1,0,0.3,0,0.4-0.1h0c0,0,0,0,0,0h0c0.3-0.1,0.6-0.3,0.7-0.6c0.2-0.3,0.3-0.6,0.3-1C20.1,18.6,20.1,18.4,20,18.2L20,18.2z"></path> </g> </g></svg>';var $digg='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 34.5" style="enable-background:new 0 0 30 34.5;" xml:space="preserve"><style type="text/css">.st0 {fill-rule: evenodd;clip-rule: evenodd;fill: #FFFFFF;}</style> <g id="Shape_11"> <g id="XMLID_158_"> <path id="XMLID_159_" class="st0" d="M20.2,14.4v8.1h4v1.8h-4v2.3h6V14.4H20.2z M24.2,20.5h-1.7v-4h1.7V20.5z M13.8,22.5h3.7v1.8h-3.7v2.3h6V14.4h-6V22.5z M16,16.4h1.5v4H16V16.4z M7.8,14.4h-4v8.1H10V10.4H7.8V14.4z M7.8,20.5H6v-4h1.7V20.5z M10.5,22.5h2.2v-8.1h-2.2V22.5z M10.5,12.7h2.2v-2.3h-2.2V12.7z"></path> </g> </g></svg>';var $buffer='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 34.5" style="enable-background:new 0 0 30 34.5;" xml:space="preserve"><style type="text/css">.st0 {fill: #FFFFFF;}</style> <g id="Shape_13"> <g id="XMLID_104_"> <path id="XMLID_105_" class="st0"d="M4.5,13l10.3,5.2c0.1,0.1,0.3,0.1,0.4,0L25.5,13c0.3-0.2,0.3-0.7,0-0.8L15.2,7C15.1,7,14.9,7,14.8,7L4.5,12.2C4.1,12.3,4.1,12.8,4.5,13z M25.5,18.4l-2.2-1.1l-6.9,3.5C16,21,15.5,21.1,15,21.1c-0.5,0-1-0.1-1.4-0.3l-6.9-3.5l-2.2,1.1c-0.3,0.2-0.3,0.7,0,0.8l10.3,5.2c0.1,0.1,0.3,0.1,0.4,0l10.3-5.2C25.8,19.1,25.8,18.6,25.5,18.4z M25.5,24.7l-2.2-1.1l-6.9,3.5c-0.4,0.2-0.9,0.3-1.4,0.3c-0.5,0-1-0.1-1.4-0.3l-6.9-3.5l-2.2,1.1c-0.3,0.2-0.3,0.7,0,0.8l10.3,5.2c0.1,0.1,0.3,0.1,0.4,0l10.3-5.2C25.8,25.3,25.8,24.9,25.5,24.7z"></path> </g> </g></svg>';var $yummly=' <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 34.5" style="enable-background:new 0 0 30 34.5;" xml:space="preserve"><image style="overflow:visible;" width="36" height="14" id="Layer_3_copy_xA0_Image" xlink:href="data:image/png;base64, " transform="matrix(0.7857 0 0 0.7857 0.8557 11.75)"></image></svg>';shareButtons='<ul class="rwd-share-buttons">';shareButtons+=$object.settings.share.facebookButton?'<li><a title="Facebook" id="rwd-share-facebook" class="view7" target="_blank">'+$fb+'</a></li>':'';shareButtons+=$object.settings.share.googleplusButton?'<li><a title="Google Plus" id="rwd-share-googleplus" class="view7" target="_blank">'+$gp+'</a></li>':'';shareButtons+=$object.settings.share.twitterButton?'<li><a title="Twitter" id="rwd-share-twitter" class="view7" target="_blank">'+$twitter+'</a></li>':'';shareButtons+=$object.settings.share.vkButton?'<li><a title="VK" id="rwd-share-vk" class="view7" target="_blank">'+$vk+'</a></li>':'';shareButtons+=$object.settings.share.pinterestButton?'<li><a title="Pinterest" id="rwd-share-pinterest" class="view7" target="_blank">'+$pinterest+'</a></li>':'';shareButtons+=$object.settings.share.linkedinButton?'<li><a title="Linkedin" id="rwd-share-linkedin" class="view7" target="_blank">'+$linkedin+'</a></li>':'';shareButtons+=$object.settings.share.tumblrButton?'<li><a title="Tumblr" id="rwd-share-tumblr" class="view7" target="_blank">'+$tumblr+'</a></li>':'';shareButtons+=$object.settings.share.redditButton?'<li><a title="Reddit" id="rwd-share-reddit" class="view7" target="_blank">'+$reddit+'</a></li>':'';shareButtons+=$object.settings.share.diggButton?'<li><a title="Digg" id="rwd-share-digg" class="view7" target="_blank">'+$digg+'</a></li>':'';shareButtons+=$object.settings.share.bufferButton?'<li><a title="Buffer" id="rwd-share-buffer" class="view7" target="_blank">'+$buffer+'</a></li>':'';shareButtons+=$object.settings.share.yummlyButton?'<li><a title="Yummly" id="rwd-share-yummly" class="view7" target="_blank">'+$yummly+'</a></li>':'';shareButtons+='</ul>'}
switch(this.settings.lightboxView){case 'view5':case 'view6':$('.contInner').append(shareButtons);break;case 'view7':var $view7_share='',$share='',socialIcons_='',$m_share_event='';$m_share_event="if(!this.classList.contains('share_open')){this.classList.add('share_open');document.querySelector('.rwd-share-buttons').style.visibility = 'visible';document.querySelector('.rwd-share-buttons').style.opacity = '1';document.querySelector('.rwd-share-buttons').style.display = 'block';if(document.querySelector('.rwd-current .view7_inner').classList.contains('is_open')){document.querySelector('.rwd-current .view7_inner').classList.remove('is_open');document.querySelector('.rwd-current .view7_inner').style.height = 0;document.querySelector('.rwd-close-bar').style.zIndex = 999999999;document.querySelector('.rwd-next').style.zIndex = 999999999;document.querySelector('.rwd-prev').style.zIndex = 999999999;}} else {this.classList.remove('share_open');document.querySelector('.rwd-share-buttons').style.visibility = 'hidden';document.querySelector('.rwd-share-buttons').style.opacity = '0';}";$share='<svg onclick="'+$m_share_event+'" class="rwd-share" version="1.1" id="Layer_1"'+'xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"'+'viewBox="0 0 30 34.5" style="enable-background:new 0 0 30 34.5;" xml:space="preserve">'+'<style type="text/css">.st0 {fill-rule: evenodd;clip-rule: evenodd;fill: #999;}</style><g id="Shape_2">'+'<g id="XMLID_84_"> <path id="XMLID_85_" class="st0"'+'d="M22.1,20.3c-1.3,0-2.5,0.6-3.2,1.6l-7-3.6C12,18,12,17.6,12,17.2c0-0.4-0.1-0.8-0.2-1.2l7-3.6c0.8,1,1.9,1.7,3.3,1.7c2.3,0,4.1-1.9,4.1-4.2c0-2.3-1.8-4.2-4.1-4.2C19.8,5.9,18,7.7,18,10c0,0.4,0.1,0.7,0.2,1.1l-7,3.6c-0.8-1-1.9-1.6-3.2-1.6c-2.3,0-4.1,1.9-4.1,4.2c0,2.3,1.8,4.2,4.1,4.2c1.4,0,2.5-0.7,3.3-1.7l7,3.6c-0.1,0.4-0.2,0.8-0.2,1.2c0,2.3,1.8,4.2,4.1,4.2c2.3,0,4.1-1.9,4.1-4.2C26.2,22.2,24.4,20.3,22.1,20.3z"></path>'+'</g> </g></svg>';socialIcons_='<div class="share_open_close rwd-icon">'+$share+'</div>';var $share_event='';if($(window).width()>768){$share_event='onmouseover="document.querySelector(\'.share_open_close\').style.background = \'rgba(0,0,0,.85)\'; document.querySelector(\'.rwd-share-buttons\').style.visibility = \'visible\'; document.querySelector(\'.rwd-share-buttons\').style.opacity = \'1\'; document.querySelector(\'.rwd-share-buttons\').style.transition = \'visibility 0s, opacity 0.5s linear\'" '+'onmouseout="document.querySelector(\'.share_open_close\').style.background = \'\'; document.querySelector(\'.rwd-share-buttons\').style.visibility = \'hidden\'; document.querySelector(\'.rwd-share-buttons\').style.opacity = \'0\'; document.querySelector(\'.rwd-share-buttons\').style.transition = \'visibility 0.5s, opacity 0.5s linear\'"'}
$view7_share='<div class="view7_share"'+$share_event+'>'+socialIcons_+shareButtons+'</div>';$('.rwd-container').append($view7_share);break;default:$('.'+this.settings.classPrefix+'socialIcons').append(shareButtons);break}
setTimeout(function(){$('#rwd-share-facebook').attr('href','https://www.facebook.com/sharer/sharer.php?u='+(encodeURIComponent(window.location.href)));$('#rwd-share-twitter').attr('href','https://twitter.com/intent/tweet?text=&url='+(encodeURIComponent(window.location.href)));$('#rwd-share-googleplus').attr('href','https://plus.google.com/share?url='+(encodeURIComponent(window.location.href)));$('#rwd-share-pinterest').attr('href','https://www.pinterest.com/pin/create/button/?url='+(encodeURIComponent(window.location.href)));$('#rwd-share-linkedin').attr('href','https://www.linkedin.com/shareArticle?mini=true&amp;url='+(encodeURIComponent(window.location.href)));$('#rwd-share-tumblr').attr('href','https://www.tumblr.com/share/link?url='+(encodeURIComponent(window.location.href)));$('#rwd-share-reddit').attr('href','https://reddit.com/submit?url='+(encodeURIComponent(window.location.href)));$('#rwd-share-buffer').attr('href','https://bufferapp.com/add?url='+(encodeURIComponent(window.location.href)));$('#rwd-share-digg').attr('href','https://www.digg.com/submit?url='+(encodeURIComponent(window.location.href)));$('#rwd-share-vk').attr('href','https://vkontakte.ru/share.php?url='+(encodeURIComponent(window.location.href)));$('#rwd-share-yummly').attr('href','https://www.yummly.com/urb/verify?url='+(encodeURIComponent(window.location.href)))},200)};Lightbox.prototype.changeHash=function(index){var $object=this;(($object.settings.socialSharing)&&(window.location.hash='/lightbox&slide='+(index+1)))};Lightbox.prototype.loadContent=function(index,rec,delay){var $object,src,isVideo;$object=this;function isImg(){src=$object.$items.eq(index).attr('href');return src.match(/\.(jpg|png|gif)\b/)}
if($object.settings.watermark){if(isImg()){src=$object.$items.eq(index).find('img').attr('data-src')}}else{src=$object.$items.eq(index).attr('href')}
var $view7_inner='';if(this.settings.lightboxView==='view7'){if(this.settings.showTitle){var $t='<div class="rwd-view7-title"></div>'}
if(this.settings.showDesc){var $d='<div class="rwd-view7-desc"></div>'}
$view7_inner='<div class="view7_inner is_close">'+$t+$d+'</div>'}
isVideo=$object.isVideo(src,index);if(!$object.$item.eq(index).hasClass($object.settings.classPrefix+'loaded')){if(isVideo){$object.$item.eq(index).addClass('isVideo');$object.$item.eq(index).prepend('<div class="'+this.settings.classPrefix+'video-cont "><div class="'+this.settings.classPrefix+'video"></div></div>'+$view7_inner);$object.$element.trigger('hasVideo.rwd-container',[index,src])}else{$object.$item.eq(index).addClass('isImg');$object.$item.eq(index).prepend('<div class="'+this.settings.classPrefix+'img-wrap">'+'<img class="'+this.settings.classPrefix+'object '+$object.settings.classPrefix+'image watermark lightbox_zoom" src="'+src+'" data-zoom-image="'+src+'" />'+$view7_inner+'</div>')}
$object.$element.trigger('onAferAppendSlide.rwd-container',[index]);$object.$item.eq(index).addClass($object.settings.classPrefix+'loaded')}
$object.$item.eq(index).find('.'+$object.settings.classPrefix+'object').on('load.rwd-container error.rwd-container',function(){var speed=0;if(delay){speed=delay}
setTimeout(function(){$object.$item.eq(index).addClass($object.settings.classPrefix+'complete')},speed)});if(rec===!0){if(!$object.$item.eq(index).hasClass($object.settings.classPrefix+'complete')){$object.$item.eq(index).find('.'+$object.settings.classPrefix+'object').on('load.rwd-container error.rwd-container',function(){$object.preload(index)})}else{$object.preload(index)}}
if(this.settings.lightboxView!=='view7'&&hugeit_resp_lightbox_obj.hugeit_lightbox_imageframe!=='frame_0'){$('.rwd-image').css({borderColor:'#f4be52',borderStyle:'inset',borderWidth:'60px'});if(hugeit_resp_lightbox_obj.hugeit_lightbox_imageframe!=='frame_8'){$('.rwd-image').css({borderImage:'url("'+hugeit_resp_lightbox_plugins_url+hugeit_resp_lightbox_obj.hugeit_lightbox_imageframe+'.png") 90 95 95 90 stretch stretch'})}else{$('.rwd-image').css({borderImage:'url("'+hugeit_resp_lightbox_plugins_url+hugeit_resp_lightbox_obj.hugeit_lightbox_imageframe+'.png") 90 123 85 129 stretch stretch'})}}};Lightbox.prototype.slide=function(index,fromSlide,fromThumb){var $object,prevIndex;$object=this;prevIndex=this.$cont.find('.'+$object.settings.classPrefix+'current').index();if(this.settings.lightboxView==='view7'){this.innerOpenClose();setTimeout(function(){var nw,nh;if($('.rwd-current').hasClass('isImg')){nw=document.querySelector('.rwd-current img').naturalWidth;nh=document.querySelector('.rwd-current img').naturalHeight}else if($('.rwd-current').hasClass('isVideo')){nw=$('.rwd-current iframe').width();nh=$('.rwd-current iframe').height()}
$('.img_size').html(nw+'px &times; '+nh+'px')},200)}
var length=this.$item.length,time=0,next=!1,prev=!1;if(this.settings.download){var src;if(!this.settings.watermark){src=$object.$items.eq(index).attr('data-download-url')!=='false'&&($object.$items.eq(index).attr('data-download-url')||$object.$items.eq(index).attr('href'))}else{src=$object.$items.eq(index).find('img').attr('data-src')}
if(src){$('#'+$object.settings.classPrefix+'download').attr('href',src);$object.$cont.removeClass($object.settings.classPrefix+'hide-download');$object.$cont.removeClass($object.settings.classPrefix+'hide-actual-size');$object.$cont.removeClass($object.settings.classPrefix+'hide-fullwidth');$object.$cont.removeClass($object.settings.classPrefix+'hide-zoom-in');$object.$cont.removeClass($object.settings.classPrefix+'hide-zoom-out')}else{$object.$cont.addClass($object.settings.classPrefix+'hide-download');$object.$cont.addClass($object.settings.classPrefix+'hide-actual-size');$object.$cont.addClass($object.settings.classPrefix+'hide-fullwidth');$object.$cont.addClass($object.settings.classPrefix+'hide-zoom-in');$object.$cont.addClass($object.settings.classPrefix+'hide-zoom-out')}}else{if(this.$cont.find('.'+$object.settings.classPrefix+'item').eq(index).find('iframe').length){$object.$cont.addClass($object.settings.classPrefix+'hide-download');$object.$cont.addClass($object.settings.classPrefix+'hide-actual-size');$object.$cont.addClass($object.settings.classPrefix+'hide-fullwidth');$object.$cont.addClass($object.settings.classPrefix+'hide-zoom-in');$object.$cont.addClass($object.settings.classPrefix+'hide-zoom-out')}else{$object.$cont.removeClass($object.settings.classPrefix+'hide-download');$object.$cont.removeClass($object.settings.classPrefix+'hide-actual-size');$object.$cont.removeClass($object.settings.classPrefix+'hide-fullwidth');$object.$cont.removeClass($object.settings.classPrefix+'hide-zoom-in');$object.$cont.removeClass($object.settings.classPrefix+'hide-zoom-out')}}
this.$element.trigger('onBeforeSlide.rwd-container',[prevIndex,index,fromSlide,fromThumb]);setTimeout(function(){$object.setTitle(index)},time);if($object.settings.lightboxView==='view5'||$object.settings.lightboxView==='view6'||$object.settings.lightboxView==='view7'){setTimeout(function(){$object.setDescription(index)},time)}
this.arrowDisable(index);$object.$cont.addClass($object.settings.classPrefix+'no-trans');this.$item.removeClass($object.settings.classPrefix+'prev-slide '+$object.settings.classPrefix+'next-slide');if(!fromSlide){if(index<prevIndex){prev=!0;if((index===0)&&(prevIndex===length-1)&&!fromThumb){prev=!1;next=!0}}else if(index>prevIndex){next=!0;if((index===length-1)&&(prevIndex===0)&&!fromThumb){prev=!0;next=!1}}
if(prev){this.$item.eq(index).addClass($object.settings.classPrefix+'prev-slide');this.$item.eq(prevIndex).addClass($object.settings.classPrefix+'next-slide')}else if(next){this.$item.eq(index).addClass($object.settings.classPrefix+'next-slide');this.$item.eq(prevIndex).addClass($object.settings.classPrefix+'prev-slide')}
setTimeout(function(){$object.$item.removeClass($object.settings.classPrefix+'current');$object.$item.eq(index).addClass($object.settings.classPrefix+'current');$object.$cont.removeClass($object.settings.classPrefix+'no-trans')},50)}else{var slidePrev=index-1;var slideNext=index+1;if((index===0)&&(prevIndex===length-1)){slideNext=0;slidePrev=length-1}else if((index===length-1)&&(prevIndex===0)){slideNext=0;slidePrev=length-1}
this.$item.removeClass($object.settings.classPrefix+'prev-slide '+$object.settings.classPrefix+'current '+$object.settings.classPrefix+'next-slide');$object.$item.eq(slidePrev).addClass($object.settings.classPrefix+'prev-slide');$object.$item.eq(slideNext).addClass($object.settings.classPrefix+'next-slide');$object.$item.eq(index).addClass($object.settings.classPrefix+'current')}
$object.loadContent(index,!0,$object.settings.overlayDuration);$object.$element.trigger('onAfterSlide.rwd-container',[prevIndex,index,fromSlide,fromThumb]);if(this.settings.showCounter){$('#'+$object.settings.classPrefix+'counter-current').text(index+1)}
if(this.settings.socialSharing){$object.changeHash(index)}
var $top,$left,$wWidth,$wHeight,$imgWidth,$imgHeight,$wmWidth,$wmHeight,$pos,$item;$item=$('.rwd-item.rwd-current');$pos=+hugeit_resp_lightbox_obj.hugeit_lightbox_watermark_margin;$wWidth=+hugeit_resp_lightbox_obj.hugeit_lightbox_watermark_containerWidth;$wHeight=+hugeit_resp_lightbox_obj.hugeit_lightbox_watermark_textFontSize;$imgWidth=$object.$item.eq(index).find('img').width();$imgHeight=$object.$item.eq(index).find('img').height();$wmWidth=$item.width();$wmHeight=$item.height();switch('pos'+hugeit_resp_lightbox_obj.hugeit_lightbox_watermark_position_new){case 'pos1':$top=($wmHeight-$imgHeight)/2+$pos;$left=($wmWidth-$imgWidth)/2+$pos;break;case 'pos2':$top=($wmHeight-$imgHeight)/2+$pos;$left=($wmWidth-$wWidth)/2;break;case 'pos3':$top=($wmHeight-$imgHeight)/2+$pos;$left=($wmWidth+$imgWidth)/2-$wWidth-$pos;break;case 'pos4':$top=($wmHeight-$wHeight)/2;$left=($wmWidth-$imgWidth)/2+$pos;break;case 'pos5':$top=($wmHeight-$wHeight)/2;$left=($wmWidth-$wWidth)/2;break;case 'pos6':$top=($wmHeight-$wHeight)/2;$left=($wmWidth+$imgWidth)/2-$wWidth-$pos;break;case 'pos7':$top=($wmHeight+$imgHeight)/2-$wHeight-$pos;$left=($wmWidth-$imgWidth)/2+$pos;break;case 'pos8':$top=($wmHeight+$imgHeight)/2-$wHeight-$pos;$left=($wmWidth-$wWidth)/2;break;case 'pos9':$top=($wmHeight+$imgHeight)/2-$wHeight-$pos;$left=($wmWidth+$imgWidth)/2-$wWidth-$pos;break;default:$top=($wmHeight-$wHeight)/2;$left=($wmWidth-$wWidth)/2}
$('.w_url').css({position:'absolute',width:$wWidth+'px',height:$wHeight+'px',top:$top+'px',left:$left+'px'});$object.calculateDimensions(index);$('.rwd-container .rwd-thumb-item img').css({opacity:1-10/100});$('.rwd-container .rwd-thumb-item.active img').css({opacity:1});if(this.settings.lightboxView==='view7'){this.$element.on('onBeforeSlide.rwd-container',function(){$('.view7_share, .rwd-close-bar, .rwd-toolbar').css({visibility:'hidden',opacity:'0',transition:'visibility 0s, opacity 0.5s linear'})});this.$element.on('onAfterSlide.rwd-container',function(){setTimeout(function(){$('.view7_share, .rwd-close-bar, .rwd-toolbar').css({visibility:'visible',opacity:'1'})},450)})}
$(window).on('resize.rwd-container orientationchange.rwd-container',function(){var $t=($object.settings.lightboxView!=='view7')?100:0;setTimeout(function(){$object.calculateDimensions(index)},$t)})};Lightbox.prototype.goToNextSlide=function(fromSlide){var $object=this,$cont=$('.rwd-cont'),$imageObject,k;if(($object.index+1)<$object.$item.length){$object.index++;$object.slide($object.index,fromSlide,!1)}else{if($object.settings.loop==='true'){$object.index=0;$object.slide($object.index,fromSlide,!1)}}
if($object.settings.fullwidth&&$cont.hasClass('rwd-fullwidth-on')){$imageObject=$cont.find('.rwd-image').eq($object.index);k=$imageObject.width()/$imageObject.height();if($imageObject.width()>$imageObject.height()&&k>2){$imageObject.css({'min-width':'100%'})}else{$imageObject.css({'min-height':'100%'})}}};Lightbox.prototype.goToPrevSlide=function(fromSlide){var $object=this,$cont=$('.rwd-cont'),$imageObject,k;if($object.index>0){$object.index--;$object.slide($object.index,fromSlide,!1)}else{if($object.settings.loop==='true'){$object.index=$object.$items.length-1;$object.slide($object.index,fromSlide,!1)}}
if($object.settings.fullwidth&&$cont.hasClass('rwd-fullwidth-on')){$imageObject=$cont.find('.rwd-image').eq($object.index);k=$imageObject.width()/$imageObject.height();if($imageObject.width()>$imageObject.height()&&k>2){$imageObject.css({'min-width':'100%'})}else{$imageObject.css({'min-height':'100%'})}}};Lightbox.prototype.slideShow=function(){var $object=this,$toolbar,$play_bg,$pause_bg;$play_bg='<svg class="play_bg" width="20px" height="20px" fill="#999" viewBox="-192 193.9 314.1 314.1">'+'<g><g id="_x33_56._Play"><g><path d="M101,272.5C57.6,197.4-38.4,171.6-113.5,215c-75.1,43.4-100.8,139.4-57.5,214.5c43.4,75.1,139.4,100.8,214.5,57.5C118.6,443.6,144.4,347.6,101,272.5z M27.8,459.7c-60.1,34.7-136.9,14.1-171.6-46c-34.7-60.1-14.1-136.9,46-171.6c60.1-34.7,136.9-14.1,171.6,46C108.5,348.2,87.9,425,27.8,459.7z M21.6,344.6l-82.2-47.9c-7.5-4.4-13.5-0.9-13.5,7.8l0.4,95.2c0,8.7,6.2,12.2,13.7,7.9l81.6-47.1C29,356,29,349,21.6,344.6z"/></g></g></g>'+'</svg>';$pause_bg='<svg class="pause_bg" width="20px" height="20px" fill="#999" viewBox="-94 96 510 510" >'+'<g><g id="pause-circle-outline"><path d="M84.5,453h51V249h-51V453z M161,96C20.8,96-94,210.8-94,351S20.8,606,161,606s255-114.8,255-255S301.3,96,161,96zM161,555C48.8,555-43,463.2-43,351s91.8-204,204-204s204,91.8,204,204S273.2,555,161,555z M186.5,453h51V249h-51V453z"/></g></g>'+'</svg>';$toolbar=$('.'+$object.settings.classPrefix+'toolbar');switch(this.settings.lightboxView){case 'view1':default:$toolbar.append('<span class="'+$object.settings.classPrefix+'autoplay-button '+$object.settings.classPrefix+'icon">'+$play_bg+$pause_bg+'</span>');break;case 'view2':$('.'+$object.settings.classPrefix+'bar').append('<span class="'+$object.settings.classPrefix+'autoplay-button '+$object.settings.classPrefix+'icon">'+$play_bg+$pause_bg+'</span>');break;case 'view3':$toolbar.append('<span class="'+$object.settings.classPrefix+'autoplay-button '+$object.settings.classPrefix+'icon">'+$play_bg+$pause_bg+'</span>');$('.rwd-toolbar .rwd-icon').addClass('rwd-icon0');break;case 'view4':$('<span class="'+$object.settings.classPrefix+'autoplay-button '+$object.settings.classPrefix+'icon">'+$play_bg+$pause_bg+'</span>').insertBefore($('.rwd-title'));$('.rwd-toolbar .rwd-icon').addClass('rwd-icon0');break;case 'view7':$('.tool_bar').append('<span class="'+$object.settings.classPrefix+'autoplay-button '+$object.settings.classPrefix+'icon">'+$play_bg+$pause_bg+'</span>');break}
if($object.settings.slideshowAuto){$object.slideshowAuto()}
$object.$cont.find('.'+$object.settings.classPrefix+'autoplay-button').on('click.rwd-container',function(){!$($object.$cont).hasClass($object.settings.classPrefix+'show-autoplay')?$object.startSlide():$object.stopSlide()})};Lightbox.prototype.slideshowAuto=function(){var $object=this;$object.$cont.addClass(''+$object.settings.classPrefix+'show-autoplay');$object.startSlide()};Lightbox.prototype.startSlide=function(){var $object=this;$object.$cont.addClass(''+$object.settings.classPrefix+'show-autoplay');$('.rwd-autoplay-button > .pause_bg').css({'display':'inline-block'});$('.rwd-autoplay-button > .play_bg').css({'display':'none'});$object.interval=setInterval(function(){$object.goToNextSlide()},$object.settings.slideshowSpeed)};Lightbox.prototype.stopSlide=function(){clearInterval(this.interval);this.$cont.removeClass(this.settings.classPrefix+'show-autoplay');$('.rwd-thumb').removeClass('thumb_move');$('.rwd-autoplay-button > .pause_bg').css({'display':'none'});$('.rwd-autoplay-button > .play_bg').css({'display':'inline-block'})};Lightbox.prototype.addKeyEvents=function(){var $object=this;if(this.$items.length>1){$(window).on('keyup.rwd-container',function(e){if($object.$items.length>1){if(e.keyCode===37){e.preventDefault();$object.goToPrevSlide()}
if(e.keyCode===39){e.preventDefault();$object.goToNextSlide()}}})}
$(window).on('keydown.rwd-container',function(e){if($object.settings.escKey===!0&&e.keyCode===27){e.preventDefault();if(!$object.$cont.hasClass($object.settings.classPrefix+'thumb-open')){$object.destroy()}else{$object.$cont.removeClass($object.settings.classPrefix+'thumb-open')}}})};Lightbox.prototype.arrow=function(){var $object=this;this.$cont.find('.'+$object.settings.classPrefix+'prev').on('click.rwd-container',function(){$object.goToPrevSlide()});this.$cont.find('.'+$object.settings.classPrefix+'next').on('click.rwd-container',function(){$object.goToNextSlide()})};Lightbox.prototype.arrowDisable=function(index){if(!this.settings.loop==='true'&&this.settings.hideControlOnEnd){if((index+1)<this.$item.length){this.$cont.find('.'+this.settings.classPrefix+'next').removeAttr('disabled').removeClass('disabled')}else{this.$cont.find('.'+this.settings.classPrefix+'next').attr('disabled','disabled').addClass('disabled')}
if(index>0){this.$cont.find('.'+this.settings.classPrefix+'prev').removeAttr('disabled').removeClass('disabled')}else{this.$cont.find('.'+this.settings.classPrefix+'prev').attr('disabled','disabled').addClass('disabled')}}};Lightbox.prototype.mousewheel=function(){var $object=this,delta;$object.$cont.on('mousewheel',function(e){e=e||window.event;delta=e.deltaY||e.detail||e.wheelDelta;(delta>0)?$object.goToNextSlide():$object.goToPrevSlide();e.preventDefault?e.preventDefault():(e.returnValue=!1)})};Lightbox.prototype.closeGallery=function(){var $object=this,mousedown=!1;this.$cont.find('.'+$object.settings.classPrefix+'close').on('click.rwd-container',function(){$object.destroy()});if($object.settings.overlayClose==='true'){$object.$cont.on('mousedown.rwd-container',function(e){mousedown=($(e.target).is('.'+$object.settings.classPrefix+'cont')||$(e.target).is('.'+$object.settings.classPrefix+'item ')||$(e.target).is('.'+$object.settings.classPrefix+'img-wrap'))});$object.$cont.on('mouseup.rwd-container',function(e){if($(e.target).is('.contInner')||$(e.target).is('.'+$object.settings.classPrefix+'cont')||$(e.target).is('.'+$object.settings.classPrefix+'item ')||$(e.target).is('.'+$object.settings.classPrefix+'img-wrap')&&mousedown){if(!$object.$cont.hasClass($object.settings.classPrefix+'dragEvent')){$object.destroy()}}})}};Lightbox.prototype.destroy=function(d){var $object=this,$time;$('.rwd-container').removeClass(this.settings.openCloseType[0]).addClass(this.settings.openCloseType[1]);switch(this.settings.openCloseType[1]){case 'close_1':case 'close_1_r':$time=1000;break;case 'close_2':case 'close_2_r':$time=300;break;case 'close_3':case 'close_4':case 'close_3_r':case 'close_4_r':$time=340;break;case 'close_5':case 'close_5_r':$time=250;break}
$('html, body').on('mousewheel',function(){return!1});setTimeout(function(){clearInterval($object.interval);$object.$body.removeClass($object.settings.classPrefix+'on');$(window).scrollTop($object.prevScrollTop);if(d){$.removeData($object.el,'lightbox')}($object.settings.socialSharing&&(window.location.hash=''));$object.$element.off('.rwd-container');$(window).off('.rwd-container');if($object.$cont){$object.$cont.removeClass($object.settings.classPrefix+'visible')}
$object.objects.overlay.removeClass('in');setTimeout(function(){if($object.$cont){$object.$cont.remove()}
$object.objects.overlay.remove()},$object.settings.overlayDuration+50);window.scrollTo(0,$object.$_y_);$.fn.lightbox.lightboxModul.modul.prototype.destroy();$('html, body').off('mousewheel')},$time)};$.fn.lightbox=function(options){return this.each(function(){if(!$.data(this,'lightbox')){$.data(this,'lightbox',new Lightbox(this,options))}})};$.fn.lightbox.lightboxModul={};var Modul=function(element){this.dataL=$(element).data('lightbox');this.$element=$(element);this.dataL.modulSettings=$.extend({},this.constructor.defaultsModul);this.init();if(this.dataL.modulSettings.zoom&&this.dataL.effectsSupport()){if(hugeit_resp_lightbox_obj.hugeit_lightbox_lightboxView!=='view7'&&this.dataL.modulSettings.zoomType==='0'){this.initZoom();this.zoomabletimeout=!1;this.pageX=$(window).width()/2;this.pageY=($(window).height()/2)+$(window).scrollTop()}}
if(hugeit_resp_lightbox_obj.hugeit_lightbox_lightboxView!=='view7'&&this.dataL.modulSettings.fullwidth&&this.dataL.effectsSupport()){this.initFullWidth()}
this.$el=$(element);this.$thumbCont=null;this.thumbContWidth=0;this.thumbTotalWidth=(this.dataL.$items.length*(this.dataL.modulSettings.thumbsWidth+this.dataL.modulSettings.thumbMargin));this.thumbIndex=this.dataL.index;this.left=0;if(hugeit_resp_lightbox_obj.hugeit_lightbox_thumbs==='true'){this.initThumbs()}
if(this.dataL.modulSettings.fullscreen){this.initFullscreen()}
return this};Modul.defaultsModul={idPrefix:'rwd-',classPrefix:'rwd-',attrPrefix:'data-',videoMaxWidth:'700',fullwidth:hugeit_resp_lightbox_obj.hugeit_lightbox_fullwidth_effect==='true',zoom:hugeit_resp_lightbox_obj.hugeit_lightbox_zoom,scale:+hugeit_resp_lightbox_obj.hugeit_lightbox_zoomsize/10,thumbnail:hugeit_resp_lightbox_obj.hugeit_lightbox_thumbs,thumbsWidth:100,thumbsHeight:100,thumbMargin:5,showByDefault:!0,toogleThumb:!1,thumbPosition:'0',thumbsOverlayColor:'black',thumbsOverlayOpacity:10,fullscreen:hugeit_resp_lightbox_obj.hugeit_lightbox_fullscreen_effect==='true'};Modul.prototype.init=function(){var $object=this;$object.dataL.$element.on('hasVideo.rwd-container',function(event,index,src){$object.dataL.$item.eq(index).find('.'+$object.dataL.modulSettings.classPrefix+'video').append($object.loadVideo(src,''+$object.dataL.modulSettings.classPrefix+'object',index))});$object.dataL.$element.on('onAferAppendSlide.rwd-container',function(event,index){$object.dataL.$item.eq(index).find('.'+$object.dataL.settings.classPrefix+'video-cont').css({'max-width':$object.dataL.modulSettings.videoMaxWidth+'px'})});$object.dataL.$element.on('onBeforeSlide.rwd-container',function(event,prevIndex,index){var $videoSlide=$object.dataL.$item.eq(prevIndex),youtubePlayer=$videoSlide.find('.rwd-youtube').get(0),vimeoPlayer=$videoSlide.find('.rwd-vimeo').get(0),dailymotionPlayer=$videoSlide.find('.rwd-dailymotion').get(0);if(youtubePlayer){youtubePlayer.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}','*')}else if(vimeoPlayer){try{$f(vimeoPlayer).api('pause')}catch(e){console.error('Make sure you have included froogaloop2 js')}}else if(dailymotionPlayer){dailymotionPlayer.contentWindow.postMessage('pause','*')}
var src;src=$object.dataL.$items.eq(index).attr('href');var isVideo=$object.dataL.isVideo(src,index)||{};if(isVideo.youtube||isVideo.vimeo||isVideo.dailymotion){$object.dataL.$cont.addClass($object.dataL.modulSettings.classPrefix+'hide-download');$object.dataL.$cont.addClass($object.dataL.modulSettings.classPrefix+'hide-actual-size');$object.dataL.$cont.addClass($object.dataL.modulSettings.classPrefix+'hide-fullwidth');$object.dataL.$cont.addClass($object.dataL.modulSettings.classPrefix+'hide-zoom-in');$object.dataL.$cont.addClass($object.dataL.modulSettings.classPrefix+'hide-zoom-out')}});$object.dataL.$element.on('onAfterSlide.rwd-container',function(event,prevIndex){$object.dataL.$item.eq(prevIndex).removeClass($object.dataL.modulSettings.classPrefix+'video-playing')})};Modul.prototype.loadVideo=function(src,addClass,index){var video='',autoplay=0,a='',isVideo=this.dataL.isVideo(src,index)||{};if(isVideo.youtube){a='?wmode=opaque&autoplay='+autoplay+'&enablejsapi=1';video='<iframe class="'+this.dataL.modulSettings.classPrefix+'video-object '+this.dataL.modulSettings.classPrefix+'youtube '+addClass+'" width="560" height="315" src="//www.youtube.com/embed/'+isVideo.youtube[1]+a+'" frameborder="0" allowfullscreen></iframe>'}else if(isVideo.vimeo){a='?autoplay='+autoplay+'&api=1';video='<iframe class="'+this.dataL.modulSettings.classPrefix+'video-object '+this.dataL.modulSettings.classPrefix+'vimeo '+addClass+'" width="560" height="315"  src="//player.vimeo.com/video/'+isVideo.vimeo[1]+a+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'}else if(isVideo.dailymotion){a='?wmode=opaque&autoplay='+autoplay+'&api=postMessage';video='<iframe class="rwd-video-object rwd-dailymotion '+addClass+'" width="560" height="315" src="//www.dailymotion.com/embed/video/'+isVideo.dailymotion[2]+a+'" frameborder="0" allowfullscreen></iframe>'}
return video};Modul.prototype.initFullscreen=function(){var fullScreen='';if(this.dataL.modulSettings.fullscreen){if(!document.fullscreenEnabled&&!document.webkitFullscreenEnabled&&!document.mozFullScreenEnabled&&!document.msFullscreenEnabled){return}else{fullScreen='<span class="rwd-fullscreen rwd-icon">'+'<svg id="rwd-fullscreen-on" width="20px" height="20px" stroke="#999" fill="#999" x="0px" y="0px" viewBox="134 -133 357 357" style="enable-background:new 134 -133 357 357;">'+'<g><g id="fullscreen"><path d="M165,96.5h-31V224h127.5v-31H165V96.5z M134-5.5h31V-82h96.5v-31H134V-5.5z M440,193h-76.5v31H491V96.5h-31V192z M363.5-103v21H460v76.5h31V-113H363.5z"></path>'+'</g></g></svg>'+'<svg id="rwd-fullscreen-off" width="20px" height="20px" stroke="#999" fill="#999" x="0px" y="0px" viewBox="134 -133 357 357" style="enable-background:new 134 -133 357 357;">'+'<g><g id="fullscreen-exit"><path d="M134, 127.5h 96.5V 224h 31V 96.5H 114V 147.5z M210.5 -36.5H 134v 31h 127.5V -133h -31V -36.5z M363.5, 224h 31v -96.5H 491v -31H 363.5V 224z M394.5 -56.5V -133h -31V -5.5H 491v -31H 395.5z"></path>'+'</g></g></svg>'+'</span>';switch(hugeit_resp_lightbox_obj.hugeit_lightbox_lightboxView){case 'view1':default:$('.rwd-cont').find('.rwd-toolbar').append(fullScreen);break;case 'view2':$('.rwd-cont').find('.rwd-bar').append(fullScreen);break;case 'view4':$(fullScreen).insertBefore('.rwd-title');break;case 'view7':$('.tool_bar').append(fullScreen);break}
this.fullScreen()}}};Modul.prototype.requestFullscreen=function(){var el=document.documentElement;if(el.requestFullscreen){el.requestFullscreen()}else if(el.msRequestFullscreen){el.msRequestFullscreen()}else if(el.mozRequestFullScreen){el.mozRequestFullScreen()}else if(el.webkitRequestFullscreen){el.webkitRequestFullscreen()}};Modul.prototype.exitFullscreen=function(){if(document.exitFullscreen){document.exitFullscreen()}else if(document.msExitFullscreen){document.msExitFullscreen()}else if(document.mozCancelFullScreen){document.mozCancelFullScreen()}else if(document.webkitExitFullscreen){document.webkitExitFullscreen()}};Modul.prototype.fullScreen=function(){var $object=this;$(document).on('fullscreenchange.rwd-container webkitfullscreenchange.rwd-container mozfullscreenchange.rwd-container MSFullscreenChange.rwd-container',function(){$('.rwd-cont').toggleClass('rwd-fullscreen-on')});$('.rwd-cont').find('.rwd-fullscreen').on('click.rwd-container',function(){if(!document.fullscreenElement&&!document.mozFullScreenElement&&!document.webkitFullscreenElement&&!document.msFullscreenElement){$object.requestFullscreen()}else{$object.exitFullscreen()}});$(window).on('keydown',function(e){if(e.keyCode===27){console.log(1)}})};Modul.prototype.initFullWidth=function(){var $object=this,$fullWidth,$fullWidthOn;$fullWidth='<svg id="rwd-fullwidth" width="50px" height="25px" stroke="#999" fill="#999" x="0px" y="0px" viewBox="0 0 960 500" style="enable-background:new 0 0 960 560;">'+'<g><path d="M769.4,280L651.7,397.6l0.1-90.5L543.1,307l0-54.3l108.6,0.1l0.1-90.5L769.4,280z M416.4,306.9l-108.6-0.1l-0.1,90.5'+'L190.2,279.6L307.9,162l-0.1,90.5l108.6,0.1L416.4,306.9z M416.4,306.9"/></g></svg>';$fullWidthOn='<svg  id="rwd-fullwidth_on" width="50px" height="25px" stroke="#999" fill="#999" x="0px" y="0px" viewBox="0 0 960 500" style="enable-background:new 0 0 960 560;">'+'<path d="M516,280.3l117.3-118l0.3,90.5l108.6-0.3l0.2,54.3l-108.6,0.3l0.3,90.5L516,280.3z M217.3,252.8l108.6-0.3l-0.2-90.5'+'l117.9,117.4l-117.4,118l-0.2-90.5l-108.6,0.3L217.3,252.8z M416.4,306.9"/></svg>';if(this.dataL.modulSettings.fullwidth){var fullwidth='<span class="rwd-fullwidth rwd-icon">'+$fullWidth+$fullWidthOn+'</span>';switch(hugeit_resp_lightbox_obj.hugeit_lightbox_lightboxView){case 'view1':default:this.dataL.$cont.find('.rwd-toolbar').append(fullwidth);break;case 'view2':this.dataL.$cont.find('.rwd-bar').append(fullwidth);break;case 'view4':$(fullwidth).insertBefore('.rwd-title');break}}
if(this.dataL.modulSettings.fullwidth){$('.rwd-fullwidth').on('click.rwd-container',function(){!$('.rwd-cont').hasClass('rwd-fullwidth-on')?$object.onFullWidth():$object.offFullWidth()})}};Modul.prototype.onFullWidth=function(){var $imageObject=this.dataL.$cont.find('.rwd-current .rwd-image');$('#rwd-fullwidth').css({'display':'none'});$('#rwd-fullwidth_on').css({'display':'inline-block'});$('.rwd-cont').addClass('rwd-fullwidth-on');$('.rwd-container').css({width:'100%',height:'100%'});var k=$imageObject.width()/$imageObject.height();if($imageObject.width()>$imageObject.height()&&k>2){$imageObject.css({'min-width':'100%'})}else{$imageObject.css({'min-height':'100%'})}};Modul.prototype.offFullWidth=function(){var $imageObject=this.dataL.$cont.find('.rwd-current .rwd-image');$('#rwd-fullwidth').css({'display':'inline-block'});$('#rwd-fullwidth_on').css({'display':'none'});$('.rwd-cont').removeClass('rwd-fullwidth-on');$('.rwd-container').css({width:hugeit_resp_lightbox_obj.hugeit_lightbox_width_new+'%',height:hugeit_resp_lightbox_obj.hugeit_lightbox_height_new+'%'});$imageObject.css({'min-width':'','min-height':''})};Modul.prototype.initZoom=function(){var $object=this,zoomIcons,$zoomIn,$zoomOut,scale;$zoomIn='<svg id="zoom_in" width="20px" height="20px" stroke="#999" fill="#999" x="0px" y="0px" viewBox="-18 19 53 53" style="enable-background:new -18 19 53 53;">'+'<g><path d="M11,39H5v-6c0-0.6-0.4-1-1-1s-1,0.4-1,1v6h-6c-0.6,0-1,0.4-1,1s0.4,1,1,1h6v6c0,0.6,0.4,1,1,1s1-0.4,1-1v-6h6'+'c0.6,0,1-0.4,1-1S11.5,39,11,39z"/>'+'<path d="M33.7,70.3L18.8,54.9c3.8-3.8,6.1-9,6.1-14.8c0-11.6-9.4-21-21-21s-21,9.4-21,21s9.4,21,21,21c5.1,0,9.7-1.8,13.4-4.8'+'l14.9,15.5c0.2,0.2,0.5,0.3,0.7,0.3c0.3,0,0.5-0.1,0.7-0.3C34.1,71.3,34.1,70.7,33.7,70.3z M-15,40c0-10.5,8.5-19,19-19'+'s19,8.5,19,19S14.5,59,4,59S-15,50.5-15,40z"/></g>'+'</svg>';$zoomOut='<svg id="zoom_out" width="20px" height="20px" stroke="#999" fill="#999" x="0px" y="0px" x="0px" y="0px" viewBox="-18 19 53 53" style="enable-background:new -18 19 53 53;">'+'<g><path d="M11,39H-3c-0.6,0-1,0.4-1,1s0.4,1,1,1h14c0.6,0,1-0.4,1-1S11.5,39,11,39z"/>'+'<path d="M33.7,70.3L18.8,54.9c3.8-3.8,6.1-9,6.1-14.8c0-11.6-9.4-21-21-21s-21,9.4-21,21s9.4,21,21,21c5.1,0,9.7-1.8,13.4-4.8'+'l14.9,15.5c0.2,0.2,0.5,0.3,0.7,0.3c0.3,0,0.5-0.1,0.7-0.3C34.1,71.3,34.1,70.7,33.7,70.3z M-15,40c0-10.5,8.5-19,19-19'+'s19,8.5,19,19S14.5,59,4,59S-15,50.5-15,40z"/></g>'+'</svg>';zoomIcons='<span id="rwd-zoom-out" class="rwd-icon">'+$zoomOut+'</span><span id="rwd-zoom-in" class="rwd-icon">'+$zoomIn+'</span>';switch(hugeit_resp_lightbox_obj.hugeit_lightbox_lightboxView){case 'view1':default:this.dataL.$cont.find('.rwd-toolbar').append(zoomIcons);break;case 'view2':this.dataL.$cont.find('.rwd-bar').append(zoomIcons);break;case 'view4':$(zoomIcons).insertBefore('.rwd-title');break}
scale=1;function zoom(scaleVal){var $imageObject,_x,_y,offsetX,offsetY,x,y;$imageObject=$object.dataL.$cont.find('.rwd-current .rwd-image');offsetX=($(window).width()-$imageObject.width())/2;offsetY=(($(window).height()-$imageObject.height())/2)+$(window).scrollTop();_x=$object.pageX-offsetX;_y=$object.pageY-offsetY;x=_x;y=_y;$imageObject.css('transform','scale3d('+scaleVal+', '+scaleVal+', 1)').attr('data-scale',scaleVal);$imageObject.parent().css({transform:'translate3d(0, '+ -y+'px, 0)'}).attr('data-y',-y)}
function callScale(){if(scale>1){$object.dataL.$cont.addClass('rwd-zoomed')}else{$object.dataL.$cont.removeClass('rwd-zoomed')}
if(scale<1){scale=1}
zoom(scale)}
$(window).on('resize.rwd-container.zoom scroll.rwd-container.zoom orientationchange.rwd-container.zoom',function(){$object.pageX=$(window).width()/2;$object.pageY=($(window).height()/2)+$(window).scrollTop();zoom(scale)});$('#rwd-zoom-out').on('click.rwd-container',function(){if($object.dataL.$cont.find('.rwd-current .rwd-image').length){scale-=$object.dataL.modulSettings.scale;callScale()}});$('#rwd-zoom-in').on('click.rwd-container',function(){if($object.dataL.$cont.find('.rwd-current .rwd-image').length){scale+=$object.dataL.modulSettings.scale;callScale()}});if(hugeit_resp_lightbox_obj.hugeit_lightbox_zoomlogo!=='0'){$object.dataL.$cont.dblclick(function(){if(!$object.dataL.$cont.hasClass('dbl-zoomed')){$object.dataL.$cont.addClass('dbl-zoomed');if($object.dataL.$cont.find('.rwd-current .rwd-image').length){scale+=$object.dataL.modulSettings.scale;callScale()}}else{$object.dataL.$cont.removeClass('dbl-zoomed');if($object.dataL.$cont.find('.rwd-current .rwd-image').length){scale-=$object.dataL.modulSettings.scale;callScale()}}})}
if(!('ontouchstart' in document.documentElement)){$object.zoomDrag()}
if(('ontouchstart' in document.documentElement)){$object.zoomSwipe()}};Modul.prototype.touchendZoom=function(startCoords,endCoords,abscissa,ordinate){var $object=this,_$el,$imageObject,distanceX,distanceY,maxX,maxY;_$el=$object.dataL.$item.eq($object.dataL.index).find('.rwd-img-wrap');$imageObject=$object.dataL.$item.eq($object.dataL.index).find('.rwd-object');maxX=Math.abs($imageObject.outerWidth()*Math.abs($imageObject.attr('data-scale'))-$object.dataL.$cont.find('.rwd-container').width())/2;maxY=Math.abs($imageObject.outerHeight()*Math.abs($imageObject.attr('data-scale'))-$object.dataL.$cont.find('.rwd-container').height())/2+$(window).scrollTop();if(_$el.attr('data-x')){distanceX=+_$el.attr('data-x')+(endCoords.x-startCoords.x)}else{distanceX=endCoords.x-startCoords.x}
distanceY=+_$el.attr('data-y')+(endCoords.y-startCoords.y);if((Math.abs(endCoords.x-startCoords.x)>15)||(Math.abs(endCoords.y-startCoords.y)>15)){if(abscissa){if(endCoords.x-startCoords.x<0){if(distanceX<=-maxX){distanceX=-maxX}}else{if(distanceX>=maxX){distanceX=maxX}}
_$el.attr('data-x',distanceX)}
if(ordinate){if(endCoords.y-startCoords.y<0){if(distanceY<=-(maxY+($object.pageY-($(window).height()-$imageObject.height())/2))+2*$(window).scrollTop()){distanceY=-(maxY+($object.pageY-($(window).height()-$imageObject.height())/2))+2*$(window).scrollTop()}}else{if(distanceY>=maxY-($object.pageY-($(window).height()-$imageObject.height())/2)){distanceY=maxY-($object.pageY-($(window).height()-$imageObject.height())/2)}}
_$el.attr('data-y',distanceY)}
_$el.css({transform:'translate3d('+distanceX+'px, '+distanceY+'px, 0)'})}};Modul.prototype.zoomDrag=function(){var $object=this,startCoords={},endCoords={},isDraging=!1,isMoved=!1,abscissa=!1,ordinate=!1;$object.dataL.$item.on('mousedown.rwd-container.zoom',function(e){var $imageObject=$object.dataL.$item.eq($object.dataL.index).find('.rwd-object');ordinate=$imageObject.outerHeight()*$imageObject.attr('data-scale')>$object.dataL.$cont.find('.rwd-container').height();abscissa=$imageObject.outerWidth()*$imageObject.attr('data-scale')>$object.dataL.$cont.find('.rwd-container').width();if($object.dataL.$cont.hasClass('rwd-zoomed')){if($(e.target).hasClass('rwd-object')&&(abscissa||ordinate)){e.preventDefault();startCoords={x:e.pageX,y:e.pageY};isDraging=!0;$object.dataL.$cont.scrollLeft+=1;$object.dataL.$cont.scrollLeft-=1}}});$(window).on('mousemove.rwd-container.zoom',function(e){if(isDraging){var _$el=$object.dataL.$item.eq($object.dataL.index).find('.rwd-img-wrap');var distanceX;var distanceY;isMoved=!0;endCoords={x:e.pageX,y:e.pageY};if(_$el.attr('data-x')){distanceX=+_$el.attr('data-x')+(endCoords.x-startCoords.x)}else{distanceX=endCoords.x-startCoords.x}
if(ordinate){distanceY=+_$el.attr('data-y')+(endCoords.y-startCoords.y)}
_$el.css({transform:'translate3d('+distanceX+'px, '+distanceY+'px, 0)'})}});$(window).on('mouseup.rwd-container.zoom',function(e){if(isDraging){isDraging=!1;if(isMoved&&((startCoords.x!==endCoords.x)||(startCoords.y!==endCoords.y))){endCoords={x:e.pageX,y:e.pageY};$object.touchendZoom(startCoords,endCoords,abscissa,ordinate)}
isMoved=!1}})};Modul.prototype.zoomSwipe=function(){var $object=this,startCoords={},endCoords={},isMoved=!1,abscissa=!1,ordinate=!1;$object.dataL.$item.on('touchstart.rwd-container',function(e){if($object.dataL.$cont.hasClass('rwd-zoomed')){var $imageObject=$object.dataL.$item.eq($object.dataL.index).find('.rwd-object');ordinate=$imageObject.outerHeight()*$imageObject.attr('data-scale')>$object.dataL.$cont.find('.rwd-container').height();abscissa=$imageObject.outerWidth()*$imageObject.attr('data-scale')>$object.dataL.$cont.find('.rwd-container').width();if((abscissa||ordinate)){e.preventDefault();startCoords={x:e.originalEvent.targetTouches[0].pageX,y:e.originalEvent.targetTouches[0].pageY}}}});$object.dataL.$item.on('touchmove.rwd-container',function(e){if($object.dataL.$cont.hasClass('rwd-zoomed')){var _$el=$object.dataL.$item.eq($object.dataL.index).find('.rwd-img-wrap');var distanceX;var distanceY;e.preventDefault();isMoved=!0;endCoords={x:e.originalEvent.targetTouches[0].pageX,y:e.originalEvent.targetTouches[0].pageY};if(_$el.attr('data-x')){distanceX=+_$el.attr('data-x')+(endCoords.x-startCoords.x)}else{distanceX=endCoords.x-startCoords.x}
if(ordinate){distanceY=+_$el.attr('data-y')+(endCoords.y-startCoords.y)}
if((Math.abs(endCoords.x-startCoords.x)>15)||(Math.abs(endCoords.y-startCoords.y)>15)){_$el.css({transform:'translate3d('+distanceX+'px, '+distanceY+'px, 0)'})}}});$object.dataL.$item.on('touchend.rwd-container',function(){if($object.dataL.$cont.hasClass('rwd-zoomed')){if(isMoved){isMoved=!1;$object.touchendZoom(startCoords,endCoords,abscissa,ordinate)}}})};Modul.prototype.initThumbs=function(){var $object=this;if(this.dataL.modulSettings.thumbnail==='true'&&this.dataL.$items.length>1){if(this.dataL.modulSettings.showByDefault){setTimeout(function(){$object.dataL.$cont.addClass('rwd-thumb-open')},100)}
this.buildThumbs();this.dataL.effectsSupport()&&this.enableThumbDrag();this.activatedThumbs=!1;if($object.dataL.modulSettings.toogleThumb){$object.$thumbCont.append('<span class="rwd-toggle-thumb rwd-icon"></span>');$object.dataL.$cont.find('.rwd-toggle-thumb').on('click.rwd-container',function(){$object.dataL.$cont.toggleClass('rwd-thumb-open')})}}
$('.rwd-container .rwd-thumb-item').css({background:'#'+this.dataL.modulSettings.thumbsOverlayColor});$('.rwd-container .rwd-thumb-item img').css({opacity:1- +this.dataL.modulSettings.thumbsOverlayOpacity/100});$('.rwd-thumb-cont').css({bottom:-$object.dataL.modulSettings.thumbsHeight+'px'});if(this.dataL.modulSettings.showByDefault){var $cont_=$('.cont-inner'),$thumb_=$('.rwd-thumb-cont'),$toolbar_=$('.rwd-toolbar');setTimeout(function(){switch(hugeit_resp_lightbox_obj.hugeit_lightbox_lightboxView){case 'view1':switch($object.dataL.modulSettings.thumbPosition){case '0':$cont_.css({height:'calc(100% - '+($object.dataL.modulSettings.thumbsHeight+92)+'px)',top:'47px'});$thumb_.css({bottom:'0',backgroundColor:'rgba(0,0,0,.9)'});$('.rwd-bar > *').css({bottom:$object.dataL.modulSettings.thumbsHeight+'px'});break;case '1':$cont_.css({height:'calc(100% - '+($object.dataL.modulSettings.thumbsHeight+92)+'px)',top:$object.dataL.modulSettings.thumbsHeight+47+'px'});$thumb_.css({top:'47px',backgroundColor:'rgba(0,0,0,.9)'});break}
break;case 'view2':switch($object.dataL.modulSettings.thumbPosition){case '0':$cont_.css({height:'calc(100% - '+($object.dataL.modulSettings.thumbsHeight+92)+'px)',top:'45px'});$thumb_.css({bottom:'45px',backgroundColor:'rgba(0,0,0,.9)'});break;case '1':$cont_.css({height:'calc(100% - '+($object.dataL.modulSettings.thumbsHeight+92)+'px)',top:$object.dataL.modulSettings.thumbsHeight+45+'px'});$thumb_.css({top:'0',backgroundColor:'rgba(0,0,0,.9)'});$toolbar_.css({top:$object.dataL.modulSettings.thumbsHeight+'px'});break}
break;case 'view3':switch($object.dataL.modulSettings.thumbPosition){case '0':$cont_.css({height:'calc(100% - '+($object.dataL.modulSettings.thumbsHeight+92)+'px)',top:'47px'});$thumb_.css({bottom:'0',backgroundColor:'white'});$('.rwd-title').css({bottom:$object.dataL.modulSettings.thumbsHeight+'px'});break;case '1':$cont_.css({height:'calc(100% - '+($object.dataL.modulSettings.thumbsHeight+93)+'px)',top:($object.dataL.modulSettings.thumbsHeight+48)+'px'});$thumb_.css({top:'48px',backgroundColor:'white'});break}
break;case 'view4':case 'view7':switch($object.dataL.modulSettings.thumbPosition){case '0':$cont_.css({height:'calc(100% - '+($object.dataL.modulSettings.thumbsHeight+92)+'px)'});$thumb_.css({bottom:'0',backgroundColor:'none'});$('.rwd-socialIcons').css({bottom:($object.dataL.modulSettings.thumbsHeight-10)+'px'});$('.barCont').css({bottom:$object.dataL.modulSettings.thumbsHeight+'px'});$('#rwd-counter').css({bottom:($object.dataL.modulSettings.thumbsHeight+5)+'px'});$('.rwd-item').css({top:'47px'});break;case '1':$cont_.css({height:'calc(100% - '+($object.dataL.modulSettings.thumbsHeight+90)+'px)',top:$object.dataL.modulSettings.thumbsHeight+45+'px'});$thumb_.css({top:'45px',backgroundColor:'none'});break}
break;case 'view5':case 'view6':switch($object.dataL.modulSettings.thumbPosition){case '0':$cont_.css({height:'calc(100% - '+$object.dataL.modulSettings.thumbsHeight+'px)'});$thumb_.css({bottom:'0'});break;case '1':$cont_.css({height:'calc(100% - '+$object.dataL.modulSettings.thumbsHeight+'px)',top:$object.dataL.modulSettings.thumbsHeight+'px'});$thumb_.css({top:'0'});break}
break}},100)}};Modul.prototype.buildThumbs=function(){var $object=this,thumbList='',$thumb,html='<div class="rwd-thumb-cont"><div class="rwd-thumb group"></div></div>';$object.dataL.$cont.addClass('rwd-has-thumb');$object.dataL.$cont.find('.rwd-container').append(html);$object.$thumbCont=$object.dataL.$cont.find('.rwd-thumb-cont');$object.thumbContWidth=$object.$thumbCont.width();$object.dataL.$cont.find('.rwd-thumb').css({width:$object.thumbTotalWidth+'px',position:'relative'});$object.$thumbCont.css('height',$object.dataL.modulSettings.thumbsHeight+'px');function getThumb(src,thumb,index){var isVideo=$object.dataL.isVideo(src,index)||{};var thumbImg;var vimeoId='';if(isVideo.youtube||isVideo.vimeo||isVideo.dailymotion){if(isVideo.youtube){thumbImg='//img.youtube.com/vi/'+isVideo.youtube[1]+'/1.jpg'}else if(isVideo.vimeo){thumbImg='//i.vimeocdn.com/video/error_100x75.jpg';vimeoId=isVideo.vimeo[1]}else if(isVideo.dailymotion){thumbImg='//www.dailymotion.com/thumbnail/video/'+isVideo.dailymotion[2]}}else{thumbImg=thumb}
thumbList+='<div data-vimeo-id="'+vimeoId+'" class="rwd-thumb-item" style="width:'+$object.dataL.modulSettings.thumbsWidth+'px; margin-right: '+$object.dataL.modulSettings.thumbMargin+'px"><img src="'+thumbImg+'" /></div>';vimeoId=''}
$object.dataL.$items.each(function(i){getThumb($(this).attr('href')||$(this).attr('data-src'),$(this).find('img').attr('src'),i)});$object.dataL.$cont.find('.rwd-thumb').html(thumbList);$thumb=$object.dataL.$cont.find('.rwd-thumb-item');$thumb.each(function(){var $this=$(this);var vimeoVideoId=$this.attr('data-vimeo-id');if(vimeoVideoId){$.getJSON('//www.vimeo.com/api/v2/video/'+vimeoVideoId+'.json?callback=?',{format:'json'},function(data){$this.find('img').attr('src',data[0].thumbnail_small)})}});$thumb.eq($object.dataL.index).addClass('active');$object.dataL.$element.on('onBeforeSlide.rwd-container',function(){$thumb.removeClass('active');$thumb.eq($object.dataL.index).addClass('active')});$thumb.on('click.rwd-container touchend.rwd-container',function(){var _$this=$(this);setTimeout(function(){if($object.activatedThumbs||!$object.dataL.effectsSupport()){$object.dataL.index=_$this.index();$object.dataL.slide($object.dataL.index,!1,!0);$('.rwd-thumb').removeClass('thumb_move')}},50)});$object.dataL.$element.on('onBeforeSlide.rwd-container',function(){$object.animateThumb($object.dataL.index)});$(window).on('resize.rwd-container.thumb orientationchange.rwd-container.thumb',function(){setTimeout(function(){$object.animateThumb($object.dataL.index);$object.thumbContWidth=$object.$thumbCont.width()},200)})};Modul.prototype.animateThumb=function(index){var $thumb=this.dataL.$cont.find('.rwd-thumb'),position=(this.thumbContWidth/2)-(this.dataL.modulSettings.thumbsWidth/2);this.left=((this.dataL.modulSettings.thumbsWidth+this.dataL.modulSettings.thumbMargin)*index-1)-position;if(this.left>(this.thumbTotalWidth-this.thumbContWidth)){this.left=this.thumbTotalWidth-this.thumbContWidth}
if(this.left<0){this.left=0}
if(!$thumb.hasClass('on')){this.dataL.$cont.find('.rwd-thumb').css('transition-duration',this.dataL.modulSettings.speed+'ms')}
if(!this.dataL.effectsSupport()){$thumb.animate({left:-this.left+'px'},this.dataL.modulSettings.speed)}
if(!$('.rwd-thumb').hasClass('thumb_move')){this.dataL.$cont.find('.rwd-thumb').css({transform:'translate3d(-'+(this.left)+'px, 0px, 0px)'})}};Modul.prototype.enableThumbDrag=function(){var $object=this,startCoords=0,endCoords=0,isDraging=!1,isMoved=!1,tempLeft=0,$left_=((this.dataL.modulSettings.thumbsWidth+this.dataL.modulSettings.thumbMargin)*$object.dataL.index-1)-(this.thumbContWidth/2)-(this.dataL.modulSettings.thumbsWidth/2);$('.rwd-thumb').attr('data-left',$left_);$object.dataL.$cont.find('.rwd-thumb').on('mousedown.rwd-container.thumb',function(e){if($object.thumbTotalWidth>$object.thumbContWidth){e.preventDefault();startCoords=e.pageX;isDraging=!0;$object.dataL.$cont.scrollLeft+=1;$object.dataL.$cont.scrollLeft-=1;$object.activatedThumbs=!1}});$(window).on('mousemove.rwd-container.thumb',function(e){if(isDraging){tempLeft=+$('.rwd-thumb').attr('data-left');isMoved=!0;endCoords=e.pageX;if(Math.abs(endCoords-startCoords)>0&&$('.rwd-cont').hasClass('rwd-show-autoplay')){$('.rwd-thumb').addClass('thumb_move')}
tempLeft=tempLeft-(endCoords-startCoords);if(tempLeft>($object.thumbTotalWidth-$object.thumbContWidth)){tempLeft=$object.thumbTotalWidth-$object.thumbContWidth}
if(tempLeft<0){tempLeft=0}
$object.dataL.$cont.find('.rwd-thumb').css({transform:'translate3d(-'+(tempLeft)+'px, 0px, 0px)'})}});$(window).on('mouseup.rwd-container.thumb',function(){if(isMoved){isMoved=!1;$('.rwd-thumb').attr('data-left',tempLeft)}else{$object.activatedThumbs=!0}
if(isDraging){isDraging=!1}})};Modul.prototype.destroy=function(){var $object=this;$(window).off('.rwd-container.zoom');$('.rwd-cont').removeClass('rwd-zoomed');clearTimeout($object.zoomabletimeout);$object.zoomabletimeout=!1;if(hugeit_resp_lightbox_obj.hugeit_lightbox_thumbs==='true'){$(window).off('resize.rwd-container.thumb orientationchange.rwd-container.thumb keydown.rwd-container.thumb');$('.rwd-cont').removeClass('rwd-has-thumb');$('.cont-inner').css({height:'100%'})}
$object.exitFullscreen();$(document).off('fullscreenchange.rwd-container webkitfullscreenchange.rwd-container mozfullscreenchange.rwd-container MSFullscreenChange.rwd-container')};$.fn.lightbox.lightboxModul.modul=Modul;var WaterMark=function(element){this.element=element;this.settings=$.extend({},this.constructor.defaults);this.init()};WaterMark.defaults={imgSrc:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_watermark_img_src_new,text:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_watermark_text,textColor:'#'+hugeit_gen_resp_lightbox_obj.hugeit_lightbox_watermark_textColor,textFontSize:+hugeit_gen_resp_lightbox_obj.hugeit_lightbox_watermark_textFontSize,containerBackground:hugeit_gen_resp_lightbox_obj.hugeit_lightbox_watermark_container_bg_color,containerWidth:+hugeit_gen_resp_lightbox_obj.hugeit_lightbox_watermark_containerWidth,position:'pos'+hugeit_gen_resp_lightbox_obj.hugeit_lightbox_watermark_position_new,opacity:+hugeit_gen_resp_lightbox_obj.hugeit_lightbox_watermark_opacity/100,margin:+hugeit_gen_resp_lightbox_obj.hugeit_lightbox_watermark_margin,done:function(imgURL){this.dataset.src=imgURL}};WaterMark.prototype.init=function(){var $object=this,$elem=$object.element,$settings=$object.settings,wmData={},imageData={};var WatermarkImage=jQuery('<img />');WatermarkImage.attr('src',$object.settings.imgSrc);WatermarkImage.css('display','none').attr('id','huge_it_watermark_img_sample');if(!jQuery('body').find('#huge_it_watermark_img_sample').length){jQuery('body').append(WatermarkImage)}
wmData={imgurl:$settings.imgSrc,type:'jpeg'};imageData={imgurl:$elem.dataset.imgsrc};var defer=$.Deferred();$.when(defer).done(function(imgObj){imageData.$wmObject=imgObj;$object.imgurltodata(imageData,function(dataURL){$settings.done.call($elem,dataURL)})});if($settings.text!==''){wmData.imgurl=$object.textwatermark()}
$object.imgurltodata(wmData,function(imgObj){defer.resolve(imgObj)})};WaterMark.prototype.textwatermark=function(){var $object=this,$settings,canvas,context,$width,$height;$settings=$object.settings;canvas=document.createElement('canvas');context=canvas.getContext('2d');$width=$settings.containerWidth;$height=$settings.textFontSize;canvas.width=$width;canvas.height=$height;context.fillStyle=$settings.containerBackground;context.fillRect(0,0,$width,$height);context.fillStyle=$settings.textColor;context.textAlign='center';context.font='500 '+$settings.textFontSize+'px Sans-serif';context.fillText($settings.text,($width/2),($height-5));return canvas.toDataURL()};WaterMark.prototype.imgurltodata=function(data,callback){var $object=this,$settings=$object.settings,img;img=new Image();img.setAttribute('crossOrigin','anonymous');img.onload=function(){var canvas=document.createElement('canvas'),context=canvas.getContext('2d'),$imgWidth=this.width,$imgHeight=this.height;if(data.$wmObject){if(data.width!=='auto'&&data.height==='auto'&&data.width<$imgWidth){$imgHeight=$imgHeight/$imgWidth*data.width;$imgWidth=data.width}else if(data.width==='auto'&&data.height!=='auto'&&data.height<$imgHeight){$imgWidth=$imgWidth/$imgHeight*data.height;$imgHeight=data.height}else if(data.width!=='auto'&&data.height!=='auto'&&data.width<$imgWidth&&data.height<$imgHeight){$imgWidth=data.width;$imgHeight=data.height}}
canvas.width=$imgWidth;canvas.height=$imgHeight;context.drawImage(this,0,0,$imgWidth,$imgHeight);if(data.$wmObject){var $opacity=+hugeit_gen_resp_lightbox_obj.hugeit_lightbox_watermark_containerOpacity/100;if($opacity>=0&&$opacity<=1){context.globalAlpha=$opacity}
var $wmWidth,$wmHeight,pos=$settings.margin,$x,$y;if($settings.text!==''){$wmWidth=data.$wmObject.width;$wmHeight=data.$wmObject.height}else{$wmWidth=$settings.containerWidth;$wmHeight=(jQuery('img#huge_it_watermark_img_sample').prop('naturalHeight')*$wmWidth)/jQuery('img#huge_it_watermark_img_sample').prop('naturalWidth')}
switch($settings.position){case 'pos1':$x=pos;$y=pos;break;case 'pos2':$x=$imgWidth/2-$wmWidth/2;$y=pos;break;case 'pos3':$x=$imgWidth-$wmWidth-pos;$y=pos;break;case 'pos4':$x=pos;$y=$imgHeight/2-$wmHeight/2;break;case 'pos5':$x=$imgWidth/2-$wmWidth/2;$y=$imgHeight/2-$wmHeight/2;break;case 'pos6':$x=$imgWidth-$wmWidth-pos;$y=$imgHeight/2-$wmHeight/2;break;case 'pos7':$x=pos;$y=$imgHeight-$wmHeight-pos;break;case 'pos8':$x=$imgWidth/2-$wmWidth/2;$y=$imgHeight-$wmHeight-pos;break;case 'pos9':$x=$imgWidth-$wmWidth-pos;$y=$imgHeight-$wmHeight-pos;break;default:$x=$imgWidth-$wmWidth-pos;$y=$imgHeight-$wmHeight-pos}
context.drawImage(data.$wmObject,$x,$y,$wmWidth,$wmHeight)}
var dataURL=canvas.toDataURL('image/'+data.type);if(typeof callback==='function'){if(data.$wmObject){callback(dataURL)}else{var $wmNew=new Image();$wmNew.src=dataURL;callback($wmNew)}}
canvas=null};img.src=data.imgurl};$.fn.watermark=function(){return this.each(function(){if(!$.data(this,'watermark')){$.data(this,'watermark',new WaterMark(this))}})}})(jQuery);
jQuery(document).ready(function(){if(lightbox_type=='old_type'){var img=jQuery('a').filter(function(){var href=jQuery(this).attr('href');if(typeof href!=='undefined'){href=href.toLowerCase();return href.substr(-4)=='.jpg'||href.substr(-5)=='.jpeg'||href.substr(-4)=='.png'||href.substr(-4)=='.gif'}});img.addClass('group1');jQuery("body a[href$='.jpg'], body a[href$='.jpeg'], body a[href$='.png'], body a[href$='.gif']").addClass('group1');jQuery("body a[class*='catalog_group']").removeClass('group1');jQuery("body a[class*='catalog_slider_group']").removeClass('group1');jQuery("body a[class*='cboxElement']").removeClass('group1');jQuery('a[href*="youtube.com"],a[href*="youtu.bebe"]').not('a[href*="/channel/"]').not('a[href*="/user/"]').not('.huge_it_gallery_item').not('.huge_it_videogallery_item').not('.huge_it_portfolio_item').each(function(){jQuery(this).addClass('youtube').addClass('group1');var url=jQuery(this).attr('href');var videoid=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);if(videoid){jQuery(this).attr('href','https://www.youtube.com/embed/'+videoid[1])}});jQuery('a[href*="vimeo.com"]').not('a[href$="vimeo.com"]').not('a[href*="/channels/"]').not('.huge_it_gallery_item').not('.huge_it_videogallery_item').each(function(){var href=jQuery(this).attr("href").split("/");if(Number(href[href.length-1])==Number(href[href.length-1])){jQuery(this).addClass('vimeo').addClass('group1');var vimeourl=jQuery(this).attr('href');var vimeoid=vimeourl.substring(vimeourl.lastIndexOf("/")+1,vimeourl.length);jQuery(this).attr('href','https://player.vimeo.com/video/'+vimeoid)}});jQuery(".group1").colorbox({rel:'group1'});jQuery(".group2").colorbox({rel:'group2',transition:"fade"});jQuery(".group3").colorbox({rel:'group3',transition:"none",width:"75%",height:"75%"});jQuery(".group4").colorbox({rel:'group4',slideshow:!0});jQuery(".ajax").colorbox();jQuery("a.youtube").colorbox({iframe:!0,innerWidth:640,innerHeight:390});jQuery("a.vimeo").colorbox({iframe:!0,innerWidth:500,innerHeight:409});jQuery(".iframe").colorbox({iframe:!0,width:"80%",height:"80%"});jQuery(".inline").colorbox({inline:!0,width:"50%"});jQuery(".callbacks").colorbox({onOpen:function(){alert('onOpen: colorbox is about to open')},onLoad:function(){alert('onLoad: colorbox has started to load the targeted content')},onComplete:function(){alert('onComplete: colorbox has displayed the loaded content')},onCleanup:function(){alert('onCleanup: colorbox has begun the close process')},onClosed:function(){alert('onClosed: colorbox has completely closed')}});jQuery('.non-retina').colorbox({rel:'group5',transition:'none'});jQuery('.retina').colorbox({rel:'group5',transition:'none',retinaImage:!0,retinaUrl:!0})}else if(lightbox_type=='new_type'){var img=jQuery('a').filter(function(){var href=jQuery(this).attr('href');if(typeof href!=='undefined'){href=href.toLowerCase();return href.substr(-4)=='.jpg'||href.substr(-5)=='.jpeg'||href.substr(-4)=='.png'||href.substr(-4)=='.gif'}});jQuery('a[href*="youtube.com"],a[href*="youtu.bebe"]').not('a[href*="/channel/"]').not('a[href*="/user/"]').not('.huge_it_gallery_item').not('.huge_it_videogallery_item').not('.huge_it_portfolio_item').each(function(){jQuery(this).addClass('youtube').addClass('responsive_lightbox');var url=jQuery(this).attr('href');var videoid=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);if(videoid){jQuery(this).attr('href','https://www.youtube.com/embed/'+videoid[1])}});jQuery('a[href*="vimeo.com"]').not('a[href$="vimeo.com"]').not('a[href*="/channels/"]').not('.huge_it_gallery_item').not('.huge_it_videogallery_item').each(function(){var href=jQuery(this).attr("href").split("/");if(Number(href[href.length-1])==Number(href[href.length-1])){jQuery(this).addClass('vimeo').addClass('responsive_lightbox')}});jQuery('a[href*="dailymotion.com"]').each(function(){jQuery(this).addClass('dailymotion').addClass('responsive_lightbox')});img.removeClass('cboxElement').addClass('responsive_lightbox');jQuery("body a[href$='.jpg'], body a[href$='.jpeg'], body a[href$='.png'], body a[href$='.gif']").addClass('responsive_lightbox');jQuery('.portfolio-gallery-content a').removeClass('responsive_lightbox');jQuery('.huge_it_portfolio_popup_list a').removeClass('responsive_lightbox');jQuery('.gallery-img-content a').removeClass('responsive_lightbox');jQuery('.gallery-video-content a').removeClass('responsive_lightbox');jQuery('.huge_it_catalog_container a').removeClass('responsive_lightbox');jQuery('section[id^="huge_it_catalog_content_"] a, div[id^="main-slider_"] a').removeClass('responsive_lightbox');jQuery('.soliloquy-item a').removeClass('responsive_lightbox')}});jQuery(window).load(function(){var urls=[];jQuery("body a[href$='.jpg'] > img, body a[href$='.jpeg'] > img, body a[href$='.png'] > img, body a[href$='.gif'] > img, body a[href*='www.youtube.com'] > img, body a[href*='vimeo.com'] > img").each(function(){urls.push(jQuery(this).attr('src'))});var data={action:'lightbox_description',urls:urls};jQuery.post(ajaxUrl,data,function(response){if(response){response=JSON.parse(response);for(var i=0;i<jQuery("a.responsive_lightbox").length;i++){jQuery("a.responsive_lightbox").eq(i).find('img').attr('data-description',response[i])}}});jQuery('.responsive_lightbox').lightbox()});
jQuery(document).ready(function($){$('.mpp-gutenberg-tab').on('click',function(e){$('.mpp-author-tabs li').removeClass('active');$(this).addClass('active');var $tabs=$('.mpp-tab').removeClass('mpp-tab-active');var new_tab=$(this).data('tab');$('.'+new_tab).addClass('mpp-tab-active')})});
/* Page scroll to id - version 1.6.6 */
!function(x,O,i,e){var n,I,a,s,l,o,r,c,u,h,t,f,g="mPageScroll2id",y="mPS2id",d={scrollSpeed:1e3,autoScrollSpeed:!0,scrollEasing:"easeInOutQuint",scrollingEasing:"easeOutQuint",pageEndSmoothScroll:!0,layout:"vertical",offset:0,highlightSelector:!1,clickedClass:y+"-clicked",targetClass:y+"-target",highlightClass:y+"-highlight",forceSingleHighlight:!1,keepHighlightUntilNext:!1,highlightByNextTarget:!1,disablePluginBelow:!1,clickEvents:!0,appendHash:!1,onStart:function(){},onComplete:function(){},defaultSelector:!1,live:!0,liveSelector:!1,excludeSelectors:!1},p=0,_={init:function(e){e=x.extend(!0,{},d,e);if(x(i).data(y,e),I=x(i).data(y),!this.selector){var t="__"+y;this.each(function(){var e=x(this);e.hasClass(t)||e.addClass(t)}),this.selector="."+t}I.liveSelector&&(this.selector+=","+I.liveSelector),n=n?n+","+this.selector:this.selector,I.defaultSelector&&("object"==typeof x(n)&&0!==x(n).length||(n=".m_PageScroll2id,a[rel~='m_PageScroll2id'],.page-scroll-to-id,a[rel~='page-scroll-to-id'],._ps2id")),I.clickEvents&&x(i).undelegate("."+y).delegate(n,"click."+y,function(e){if(S._isDisabled.call(null))S._removeClasses.call(null);else{var t=x(this),n=t.attr("href"),a=t.prop("href").baseVal||t.prop("href");I.excludeSelectors&&t.is(I.excludeSelectors)||n&&-1!==n.indexOf("#/")||(S._reset.call(null),h=t.data("ps2id-offset")||0,S._isValid.call(null,n,a)&&S._findTarget.call(null,n)&&(e.preventDefault(),s="selector",l=t,S._setClasses.call(null,!0),S._scrollTo.call(null)))}}),x(O).unbind("."+y).bind("scroll."+y+" resize."+y,function(){if(S._isDisabled.call(null))S._removeClasses.call(null);else{var s=x("._"+y+"-t");s.each(function(e){var t=x(this),n=t.attr("id"),a=S._findHighlight.call(null,n);S._setClasses.call(null,!1,t,a),e==s.length-1&&S._extendClasses.call(null)})}}),a=!0,S._setup.call(null),S._live.call(null)},scrollTo:function(e,t){if(S._isDisabled.call(null))S._removeClasses.call(null);else if(e&&void 0!==e){S._isInit.call(null);var n={layout:I.layout,offset:I.offset,clicked:!1};t=x.extend(!0,{},n,t);S._reset.call(null),c=t.layout,u=t.offset,e=-1!==e.indexOf("#")?e:"#"+e,S._isValid.call(null,e)&&S._findTarget.call(null,e)&&(s="scrollTo",(l=t.clicked)&&S._setClasses.call(null,!0),S._scrollTo.call(null))}},destroy:function(){x(O).unbind("."+y),x(i).undelegate("."+y).removeData(y),x("._"+y+"-t").removeData(y),S._removeClasses.call(null,!0)}},S={_isDisabled:function(){var e=O,t="inner",n=I.disablePluginBelow instanceof Array?[I.disablePluginBelow[0]||0,I.disablePluginBelow[1]||0]:[I.disablePluginBelow||0,0];return"innerWidth"in O||(t="client",e=i.documentElement||i.body),e[t+"Width"]<=n[0]||e[t+"Height"]<=n[1]},_isValid:function(e,t){if(e){var n=-1!==(t=t||e).indexOf("#/")?t.split("#/")[0]:t.split("#")[0],a=O.location.toString().split("#")[0];return"#"!==e&&-1!==e.indexOf("#")&&(""===n||decodeURIComponent(n)===decodeURIComponent(a))}},_setup:function(){var l=S._highlightSelector(),o=1,r=0;return x(l).each(function(){var e=x(this),t=e.attr("href"),n=e.prop("href").baseVal||e.prop("href");if(S._isValid.call(null,t,n)){if(I.excludeSelectors&&e.is(I.excludeSelectors))return;var a=-1!==t.indexOf("#/")?t.split("#/")[1]:t.split("#")[1],s=x("#"+a);if(0<s.length){I.highlightByNextTarget&&s!==r&&(r?r.data(y,{tn:s}):s.data(y,{tn:"0"}),r=s),s.hasClass("_"+y+"-t")||s.addClass("_"+y+"-t"),s.data(y,{i:o}),e.hasClass("_"+y+"-h")||e.addClass("_"+y+"-h");var i=S._findHighlight.call(null,a);S._setClasses.call(null,!1,s,i),p=o,++o==x(l).length&&S._extendClasses.call(null)}}})},_highlightSelector:function(){return I.highlightSelector&&""!==I.highlightSelector?I.highlightSelector:n},_findTarget:function(e){var t=-1!==e.indexOf("#/")?e.split("#/")[1]:e.split("#")[1],n=x("#"+t);if(n.length<1||"fixed"===n.css("position")){if("top"!==t)return;n=x("body")}return o=n,c||(c=I.layout),u=S._setOffset.call(null),(r=[(n.offset().top-u[0]).toString(),(n.offset().left-u[1]).toString()])[0]=r[0]<0?0:r[0],r[1]=r[1]<0?0:r[1],r},_setOffset:function(){var e,t,n,a;switch(u||(u=I.offset?I.offset:0),h&&(u=h),typeof u){case"object":case"string":0<(t=[(e=[u.y?u.y:u,u.x?u.x:u])[0]instanceof jQuery?e[0]:x(e[0]),e[1]instanceof jQuery?e[1]:x(e[1])])[0].length?(n=t[0].height(),"fixed"===t[0].css("position")&&(n+=t[0][0].offsetTop)):n=!isNaN(parseFloat(e[0]))&&isFinite(e[0])?parseInt(e[0]):0,0<t[1].length?(a=t[1].width(),"fixed"===t[1].css("position")&&(a+=t[1][0].offsetLeft)):a=!isNaN(parseFloat(e[1]))&&isFinite(e[1])?parseInt(e[1]):0;break;case"function":(e=u.call(null))instanceof Array?(n=e[0],a=e[1]):n=a=e;break;default:n=a=parseInt(u)}return[n,a]},_findHighlight:function(e){var t=O.location,n=t.toString().split("#")[0],a=t.pathname;return-1!==n.indexOf("'")&&(n=n.replace("'","\\'")),-1!==a.indexOf("'")&&(a=a.replace("'","\\'")),n=decodeURIComponent(n),a=decodeURIComponent(a),x("._"+y+"-h[href='#"+e+"'],._"+y+"-h[href='"+n+"#"+e+"'],._"+y+"-h[href='"+a+"#"+e+"'],._"+y+"-h[href='#/"+e+"'],._"+y+"-h[href='"+n+"#/"+e+"'],._"+y+"-h[href='"+a+"#/"+e+"']")},_setClasses:function(e,t,n){var a=I.clickedClass,s=I.targetClass,i=I.highlightClass;e&&a&&""!==a?(x("."+a).removeClass(a),l.addClass(a)):t&&s&&""!==s&&n&&i&&""!==i&&(S._currentTarget.call(null,t)?(t.addClass(s),n.addClass(i)):(!I.keepHighlightUntilNext||1<x("."+i).length)&&(t.removeClass(s),n.removeClass(i)))},_extendClasses:function(){var e=I.targetClass,t=I.highlightClass,n=x("."+e),a=x("."+t),s=e+"-first",i=e+"-last",l=t+"-first",o=t+"-last";x("._"+y+"-t").removeClass(s+" "+i),x("._"+y+"-h").removeClass(l+" "+o),I.forceSingleHighlight?I.keepHighlightUntilNext&&1<n.length?(n.slice(0,1).removeClass(e),a.slice(0,1).removeClass(t)):(n.slice(1).removeClass(e),a.slice(1).removeClass(t)):(n.slice(0,1).addClass(s).end().slice(-1).addClass(i),a.slice(0,1).addClass(l).end().slice(-1).addClass(o))},_removeClasses:function(e){x("."+I.clickedClass).removeClass(I.clickedClass),x("."+I.targetClass).removeClass(I.targetClass+" "+I.targetClass+"-first "+I.targetClass+"-last"),x("."+I.highlightClass).removeClass(I.highlightClass+" "+I.highlightClass+"-first "+I.highlightClass+"-last"),e&&(x("._"+y+"-t").removeClass("_"+y+"-t"),x("._"+y+"-h").removeClass("_"+y+"-h"))},_currentTarget:function(e){var t=I["target_"+e.data(y).i],n=e.data("ps2id-target"),a=n&&x(n)[0]?x(n)[0].getBoundingClientRect():e[0].getBoundingClientRect();if(void 0!==t){var s=e.offset().top,i=e.offset().left,l=t.from?t.from+s:s,o=t.to?t.to+s:s,r=t.fromX?t.fromX+i:i,c=t.toX?t.toX+i:i;return a.top>=o&&a.top<=l&&a.left>=c&&a.left<=r}var u=x(O).height(),h=x(O).width(),f=n?x(n).height():e.height(),g=n?x(n).width():e.width(),d=1+f/u,p=d,_=f<u?d*(u/f):d,S=1+g/h,m=S,v=g<h?S*(h/g):S,C=[a.top<=u/p,a.bottom>=u/_,a.left<=h/m,a.right>=h/v];if(I.highlightByNextTarget){var w=e.data(y).tn;if(w){var b=w[0].getBoundingClientRect();"vertical"===I.layout?C=[a.top<=u/2,b.top>u/2,1,1]:"horizontal"===I.layout&&(C=[1,1,a.left<=h/2,b.left>h/2])}}return C[0]&&C[1]&&C[2]&&C[3]},_scrollTo:function(){f=S._scrollSpeed.call(null),r=I.pageEndSmoothScroll?S._pageEndSmoothScroll.call(null):r;var e=x("html,body"),t=I.autoScrollSpeed?S._autoScrollSpeed.call(null):f,n=e.is(":animated")?I.scrollingEasing:I.scrollEasing,a=x(O).scrollTop(),s=x(O).scrollLeft();switch(c){case"horizontal":s!=r[1]&&(S._callbacks.call(null,"onStart"),e.stop().animate({scrollLeft:r[1]},t,n).promise().then(function(){S._callbacks.call(null,"onComplete")}));break;case"auto":var i;if(a!=r[0]||s!=r[1])if(S._callbacks.call(null,"onStart"),navigator.userAgent.match(/(iPod|iPhone|iPad|Android)/))e.stop().animate({pageYOffset:r[0],pageXOffset:r[1]},{duration:t,easing:n,step:function(e,t){"pageXOffset"==t.prop?i=e:"pageYOffset"==t.prop&&O.scrollTo(i,e)}}).promise().then(function(){S._callbacks.call(null,"onComplete")});else e.stop().animate({scrollTop:r[0],scrollLeft:r[1]},t,n).promise().then(function(){S._callbacks.call(null,"onComplete")});break;default:a!=r[0]&&(S._callbacks.call(null,"onStart"),e.stop().animate({scrollTop:r[0]},t,n).promise().then(function(){S._callbacks.call(null,"onComplete")}))}},_pageEndSmoothScroll:function(){var e=x(i).height(),t=x(i).width(),n=x(O).height(),a=x(O).width();return[e-r[0]<n?e-n:r[0],t-r[1]<a?t-a:r[1]]},_scrollSpeed:function(){var a=I.scrollSpeed;return l&&l.length&&l.add(l.parent()).each(function(){var e=x(this);if(e.attr("class")){var t=e.attr("class").split(" ");for(var n in t)if(String(t[n]).match(/^ps2id-speed-\d+$/)){a=t[n].split("ps2id-speed-")[1];break}}}),parseInt(a)},_autoScrollSpeed:function(){var e=x(O).scrollTop(),t=x(O).scrollLeft(),n=x(i).height(),a=x(i).width(),s=[f+f*Math.floor(Math.abs(r[0]-e)/n*100)/100,f+f*Math.floor(Math.abs(r[1]-t)/a*100)/100];return Math.max.apply(Math,s)},_callbacks:function(e){if(I)switch(this[y]={trigger:s,clicked:l,target:o,scrollTo:{y:r[0],x:r[1]}},e){case"onStart":if(I.appendHash&&O.history&&O.history.pushState&&l&&l.length){var t="#"+l.attr("href").split("#")[1];t!==O.location.hash&&history.pushState("","",t)}I.onStart.call(null,this[y]);break;case"onComplete":I.onComplete.call(null,this[y])}},_reset:function(){c=u=h=!1},_isInit:function(){a||_.init.apply(this)},_live:function(){t=setTimeout(function(){I.live?x(S._highlightSelector()).length!==p&&S._setup.call(null):t&&clearTimeout(t),S._live.call(null)},1e3)},_easing:function(){function t(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375}x.easing.easeInQuad=x.easing.easeInQuad||function(e){return e*e},x.easing.easeOutQuad=x.easing.easeOutQuad||function(e){return 1-(1-e)*(1-e)},x.easing.easeInOutQuad=x.easing.easeInOutQuad||function(e){return e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2},x.easing.easeInCubic=x.easing.easeInCubic||function(e){return e*e*e},x.easing.easeOutCubic=x.easing.easeOutCubic||function(e){return 1-Math.pow(1-e,3)},x.easing.easeInOutCubic=x.easing.easeInOutCubic||function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},x.easing.easeInQuart=x.easing.easeInQuart||function(e){return e*e*e*e},x.easing.easeOutQuart=x.easing.easeOutQuart||function(e){return 1-Math.pow(1-e,4)},x.easing.easeInOutQuart=x.easing.easeInOutQuart||function(e){return e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2},x.easing.easeInQuint=x.easing.easeInQuint||function(e){return e*e*e*e*e},x.easing.easeOutQuint=x.easing.easeOutQuint||function(e){return 1-Math.pow(1-e,5)},x.easing.easeInOutQuint=x.easing.easeInOutQuint||function(e){return e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2},x.easing.easeInExpo=x.easing.easeInExpo||function(e){return 0===e?0:Math.pow(2,10*e-10)},x.easing.easeOutExpo=x.easing.easeOutExpo||function(e){return 1===e?1:1-Math.pow(2,-10*e)},x.easing.easeInOutExpo=x.easing.easeInOutExpo||function(e){return 0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2},x.easing.easeInSine=x.easing.easeInSine||function(e){return 1-Math.cos(e*Math.PI/2)},x.easing.easeOutSine=x.easing.easeOutSine||function(e){return Math.sin(e*Math.PI/2)},x.easing.easeInOutSine=x.easing.easeInOutSine||function(e){return-(Math.cos(Math.PI*e)-1)/2},x.easing.easeInCirc=x.easing.easeInCirc||function(e){return 1-Math.sqrt(1-Math.pow(e,2))},x.easing.easeOutCirc=x.easing.easeOutCirc||function(e){return Math.sqrt(1-Math.pow(e-1,2))},x.easing.easeInOutCirc=x.easing.easeInOutCirc||function(e){return e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2},x.easing.easeInElastic=x.easing.easeInElastic||function(e){return 0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*(2*Math.PI/3))},x.easing.easeOutElastic=x.easing.easeOutElastic||function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*(2*Math.PI/3))+1},x.easing.easeInOutElastic=x.easing.easeInOutElastic||function(e){return 0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*(2*Math.PI/4.5))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*(2*Math.PI/4.5))/2+1},x.easing.easeInBack=x.easing.easeInBack||function(e){return 2.70158*e*e*e-1.70158*e*e},x.easing.easeOutBack=x.easing.easeOutBack||function(e){return 1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2)},x.easing.easeInOutBack=x.easing.easeInOutBack||function(e){return e<.5?Math.pow(2*e,2)*(7.189819*e-2.5949095)/2:(Math.pow(2*e-2,2)*(3.5949095*(2*e-2)+2.5949095)+2)/2},x.easing.easeInBounce=x.easing.easeInBounce||function(e){return 1-t(1-e)},x.easing.easeOutBounce=x.easing.easeOutBounce||t,x.easing.easeInOutBounce=x.easing.easeInOutBounce||function(e){return e<.5?(1-t(1-2*e))/2:(1+t(2*e-1))/2}}};S._easing.call(),x.fn[g]=function(e){return _[e]?_[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void x.error("Method "+e+" does not exist"):_.init.apply(this,arguments)},x[g]=function(e){return _[e]?_[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void x.error("Method "+e+" does not exist"):_.init.apply(this,arguments)},x[g].defaults=d}(jQuery,window,document),function(l){var o="mPS2id",r=mPS2id_params,c=r.shortcode_class,u=location.hash||null,h=function(e,t){try{l(e)}catch(e){return!1}return l(e).length&&(t||l("a[href*='"+e+"']").filter(function(){return 1==l(this).data(o+"Element")}).length)},f=function(e){if(-1===e.indexOf(","))return e;var t=e.split(",");return{y:t[0]||"0",x:t[1]||"0"}},g=function(e){if(-1===e.indexOf(","))return e;var t=e.split(",");return[t[0]||"0",t[1]||"0"]},d=function(e){"horizontal"!==e&&l(window).scrollTop(0),"vertical"!==e&&l(window).scrollLeft(0)},p=function(e,t){for(var n=e.click.length-1;0<=n;n--){var a=e.click[n];a&&"mPS2id"!=a.namespace&&('a[href*="#"]'===a.selector?a.selector='a[href*="#"]:not(._mPS2id-h)':"a[href*=#]:not([href=#])"===a.selector?a.selector="a[href*=#]:not([href=#]):not(._mPS2id-h)":a.selector&&-1!==a.selector.indexOf("mobmenu")?t.off("click"):t.off("click",a.handler))}},_="a[data-ps2id-api='true'][href*='#'],.ps2id > a[href*='#'],a.ps2id[href*='#']";l(document).ready(function(){for(var e=0;e<r.total_instances;e++){var t=l("[class*='ps2id-id-']");if(t.length&&t.each(function(){var e,t=l(this),n=t.attr("class").split(" ");if(!t.attr("id"))for(var a in n)if(String(n[a]).match(/^ps2id-id-\S+$/)){e=n[a].split("ps2id-id-")[1],l("#"+e).length||t.attr("id",e);break}}),"true"===r.instances[o+"_instance_"+e].scrollToHash&&u&&(l(r.instances[o+"_instance_"+e].selector+",."+c+","+_).not(r.instances[o+"_instance_"+e].excludeSelector).each(function(){l(this).data(o+"Element",!0)}),h(u,"true"===r.instances[o+"_instance_"+e].scrollToHashForAll))){var n="true"===r.instances[o+"_instance_"+e].scrollToHashRemoveUrlHash?window.location.href.replace(/#.*$/,""):window.location.href.replace(/#.*$/,"#");d(r.instances[o+"_instance_"+e].layout),window.history&&window.history.replaceState?window.history.replaceState("","",n):window.location.href=n}}}),l(window).on("load",function(){for(var e=0;e<r.total_instances;e++){var n=l(r.instances[o+"_instance_"+e].selector+",."+c+","+_),t=r.instances[o+"_instance_"+e].autoCorrectScroll,a=0;if(n.mPageScroll2id({scrollSpeed:r.instances[o+"_instance_"+e].scrollSpeed,autoScrollSpeed:"true"===r.instances[o+"_instance_"+e].autoScrollSpeed,scrollEasing:r.instances[o+"_instance_"+e].scrollEasing,scrollingEasing:r.instances[o+"_instance_"+e].scrollingEasing,pageEndSmoothScroll:"true"===r.instances[o+"_instance_"+e].pageEndSmoothScroll,layout:r.instances[o+"_instance_"+e].layout,offset:f(r.instances[o+"_instance_"+e].offset.toString()),highlightSelector:r.instances[o+"_instance_"+e].highlightSelector,clickedClass:r.instances[o+"_instance_"+e].clickedClass,targetClass:r.instances[o+"_instance_"+e].targetClass,highlightClass:r.instances[o+"_instance_"+e].highlightClass,forceSingleHighlight:"true"===r.instances[o+"_instance_"+e].forceSingleHighlight,keepHighlightUntilNext:"true"===r.instances[o+"_instance_"+e].keepHighlightUntilNext,highlightByNextTarget:"true"===r.instances[o+"_instance_"+e].highlightByNextTarget,disablePluginBelow:g(r.instances[o+"_instance_"+e].disablePluginBelow.toString()),appendHash:"true"===r.instances[o+"_instance_"+e].appendHash,onStart:function(){"true"===t&&"selector"===mPS2id.trigger&&a++},onComplete:function(){1==a&&(mPS2id.clicked.length&&mPS2id.clicked.trigger("click.mPS2id"),a=0)},excludeSelectors:r.instances[o+"_instance_"+e].excludeSelector}),"true"===r.instances[o+"_instance_"+e].scrollToHash&&u&&h(u,"true"===r.instances[o+"_instance_"+e].scrollToHashForAll)){d(r.instances[o+"_instance_"+e].layout);var s=r.instances[o+"_instance_"+e].scrollToHashUseElementData,i=l("a._mPS2id-h[href$='"+u+"'][data-ps2id-offset]:not([data-ps2id-offset=''])").last();setTimeout(function(){"true"===s&&i.length?i.trigger("click.mPS2id"):l.mPageScroll2id("scrollTo",u),-1!==window.location.href.indexOf("#")&&(window.history&&window.history.replaceState?window.history.replaceState("","",u):window.location.hash=u)},r.instances[o+"_instance_"+e].scrollToHashDelay)}"true"===r.instances[o+"_instance_"+e].unbindUnrelatedClickEvents&&setTimeout(function(){var e=n.length?l._data(n[0],"events"):null,t=n.length?l._data(l(document)[0],"events"):null;e&&p(e,n),t&&p(t,n)},300),"true"===r.instances[o+"_instance_"+e].normalizeAnchorPointTargets&&l("a._mPS2id-t[id]:empty").css({display:"inline-block","line-height":0,width:0,height:0,border:"none"}),"true"===r.instances[o+"_instance_"+e].stopScrollOnUserAction&&l(document).on("mousewheel DOMMouseScroll touchmove",function(){var e=l("html,body");e.is(":animated")&&e.stop()})}}),l.extend(l.expr[":"],{absolute:l.expr[":"].absolute||function(e){return"absolute"===l(e).css("position")},relative:l.expr[":"].relative||function(e){return"relative"===l(e).css("position")},static:l.expr[":"].static||function(e){return"static"===l(e).css("position")},fixed:l.expr[":"].fixed||function(e){return"fixed"===l(e).css("position")},width:l.expr[":"].width||function(e,t,n){var a=n[3].replace("&lt;","<").replace("&gt;",">");return!!a&&(">"===a.substr(0,1)?l(e).width()>a.substr(1):"<"===a.substr(0,1)?l(e).width()<a.substr(1):l(e).width()===parseInt(a))},height:l.expr[":"].height||function(e,t,n){var a=n[3].replace("&lt;","<").replace("&gt;",">");return!!a&&(">"===a.substr(0,1)?l(e).height()>a.substr(1):"<"===a.substr(0,1)?l(e).height()<a.substr(1):l(e).height()===parseInt(a))}})}(jQuery);
/*!
 * SelectWoo 1.0.6
 * https://github.com/woocommerce/selectWoo
 *
 * Released under the MIT license
 * https://github.com/woocommerce/selectWoo/blob/master/LICENSE.md
 */
!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return t===undefined&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(i){var e=function(){if(i&&i.fn&&i.fn.select2&&i.fn.select2.amd)var e=i.fn.select2.amd;var t,o,c,n;return e&&e.requirejs||(e?o=e:e={},function(h){var s,r,f,g,m={},v={},y={},w={},n=Object.prototype.hasOwnProperty,i=[].slice,_=/\.js$/;function $(e,t){return n.call(e,t)}function a(e,t){var n,i,o,s,r,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(r=(e=e.split("/")).length-1,y.nodeIdCompat&&_.test(e[r])&&(e[r]=e[r].replace(_,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),u-=1;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;u-=1){if(i=n.slice(0,u).join("/"),h)for(d=h.length;0<d;d-=1)if((o=f[h.slice(0,d).join("/")])&&(o=o[i])){s=o,a=u;break}if(s)break;!l&&g&&g[i]&&(l=g[i],c=u)}!s&&l&&(s=l,a=c),s&&(n.splice(0,a,s),e=n.join("/"))}return e}function b(t,n){return function(){var e=i.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),r.apply(h,e.concat([t,n]))}}function x(t){return function(e){m[t]=e}}function A(e){if($(v,e)){var t=v[e];delete v[e],w[e]=!0,s.apply(h,t)}if(!$(m,e)&&!$(w,e))throw new Error("No "+e);return m[e]}function l(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function C(e){return e?l(e):[]}f=function(e,t){var n,i=l(e),o=i[0],s=t[1];return e=i[1],o&&(n=A(o=a(o,s))),o?e=n&&n.normalize?n.normalize(e,function r(t){return function(e){return a(e,t)}}(s)):a(e,s):(o=(i=l(e=a(e,s)))[0],e=i[1],o&&(n=A(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},g={require:function(e){return b(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:function t(e){return function(){return y&&y.config&&y.config[e]||{}}}(e)}}},s=function(e,t,n,i){var o,s,r,a,l,c,u,d=[],p=typeof n;if(c=C(i=i||e),"undefined"==p||"function"==p){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(s=(a=f(t[l],c)).f))d[l]=g.require(e);else if("exports"===s)d[l]=g.exports(e),u=!0;else if("module"===s)o=d[l]=g.module(e);else if($(m,s)||$(v,s)||$(w,s))d[l]=A(s);else{if(!a.p)throw new Error(e+" missing "+s);a.p.load(a.n,b(i,!0),x(s),{}),d[l]=m[s]}r=n?n.apply(m[e],d):undefined,e&&(o&&o.exports!==h&&o.exports!==m[e]?m[e]=o.exports:r===h&&u||(m[e]=r))}else e&&(m[e]=n)},t=o=r=function(e,t,n,i,o){if("string"==typeof e)return g[e]?g[e](t):A(f(e,C(t)).f);if(!e.splice){if((y=e).deps&&r(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=i,i=o),i?s(h,e,t,n):setTimeout(function(){s(h,e,t,n)},4),r},r.config=function(e){return r(e)},t._defined=m,(c=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),$(m,e)||$(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0}}(),e.requirejs=t,e.require=o,e.define=c),e.define("almond",function(){}),e.define("jquery",[],function(){var e=i||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(s){var e={};function d(e){var t=e.prototype,n=[];for(var i in t){"function"==typeof t[i]&&("constructor"!==i&&n.push(i))}return n}e.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},e.Decorate=function(i,o){var e=d(o),t=d(i);function s(){var e=Array.prototype.unshift,t=o.prototype.constructor.length,n=i.prototype.constructor;0<t&&(e.call(arguments,i.prototype.constructor),n=o.prototype.constructor),n.apply(this,arguments)}o.displayName=i.displayName,s.prototype=new function u(){this.constructor=s};for(var n=0;n<t.length;n++){var r=t[n];s.prototype[r]=i.prototype[r]}for(var a=function(e){var t=function(){};e in s.prototype&&(t=s.prototype[e]);var n=o.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}},l=0;l<e.length;l++){var c=e[l];s.prototype[c]=a(c)}return s};var t=function(){this.listeners={}};return t.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},t.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},t.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},e.Observable=t,e.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},e.bind=function(e,t){return function(){e.apply(t,arguments)}},e._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var o=0;o<n.length;o++){var s=n[o];(s=s.substring(0,1).toLowerCase()+s.substring(1))in i||(i[s]={}),o==n.length-1&&(i[s]=e[t]),i=i[s]}delete e[t]}}return e},e.hasScroll=function(e,t){var n=s(t),i=t.style.overflowX,o=t.style.overflowY;return(i!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===i||"scroll"===o||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},e.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},e.appendMany=function(e,t){if("1.7"===s.fn.jquery.substr(0,3)){var n=s();s.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},e.isTouchscreen=function(){return"undefined"==typeof e._isTouchscreenCache&&(e._isTouchscreenCache="ontouchstart"in document.documentElement),e._isTouchscreenCache},e}),e.define("select2/results",["jquery","./utils"],function(h,e){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=h('<ul class="select2-results__options" role="listbox" tabindex="-1"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],o=this.option(i);t.push(o)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(e,t){t.find(".select2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[data-selected]"),t=e.filter("[data-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(e){var i=h.map(e,function(e){return e.id.toString()});t.$results.find(".select2-results__option[data-selected]").each(function(){var e=h(this),t=h.data(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<h.inArray(n,i)?e.attr("data-selected","true"):e.attr("data-selected","false")})})},i.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"option","data-selected":"false",tabindex:-1};for(var i in e.disabled&&(delete n["data-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["data-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n["aria-label"]=e.text,delete n["data-selected"]),n){var o=n[i];t.setAttribute(i,o)}if(e.children){var s=h(t),r=document.createElement("strong");r.className="select2-results__group";var a=h(r);this.template(e,r),a.attr("role","presentation");for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],d=this.option(u);l.push(d)}var p=h("<ul></ul>",{"class":"select2-results__options select2-results__options--nested",role:"listbox"});p.append(l),s.attr("role","list"),s.append(r),s.append(p)}else this.template(e,t);return h.data(t,"data",e),t},i.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("data-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[data-selected]"),n=t.index(e);if(0!==n){var i=n-1;0===e.length&&(i=0);var o=t.eq(i);o.trigger("mouseenter");var s=l.$results.offset().top,r=o.offset().top,a=l.$results.scrollTop()+(r-s);0===i?l.$results.scrollTop(0):r-s<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[data-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var o=l.$results.offset().top+l.$results.outerHeight(!1),s=i.offset().top+i.outerHeight(!1),r=l.$results.scrollTop()+s-o;0===n?l.$results.scrollTop(0):o<s&&l.$results.scrollTop(r)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted").attr("aria-selected","true"),l.$results.attr("aria-activedescendant",e.element.attr("id"))}),t.on("results:message",function(e){l.displayMessage(e)}),h.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,i=0<e.deltaY&&t-e.deltaY<=0,o=e.deltaY<0&&n<=l.$results.height();i?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):o&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[data-selected]",function(e){var t=h(this),n=t.data("data");"true"!==t.attr("data-selected")?l.trigger("select",{originalEvent:e,data:n}):l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[data-selected]",function(e){var t=h(this).data("data");l.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),l.trigger("results:focus",{data:t,element:h(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[data-selected]").index(e),n=this.$results.offset().top,i=e.offset().top,o=this.$results.scrollTop()+(i-n),s=i-n;o-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(o)}},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),o=n(e,t);null==o?t.style.display="none":"string"==typeof o?t.innerHTML=i(o):h(t).append(o)},i}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(i,e,o){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=i('<span class="select2-selection"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e},n.prototype.bind=function(e,t){var n=this,i=(e.id,e.id+"-results");this.options.get("minimumResultsForSearch"),Infinity;this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===o.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),window.setTimeout(function(){n.$selection.focus()},1),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex)}),e.on("disable",function(){n.$selection.attr("tabindex","-1")})},n.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||i.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},n.prototype._attachCloseHandler=function(e){i(document.body).on("mousedown.select2."+e.id,function(e){var t=i(e.target),n=t.closest(".select2");i(".select2.select2-container--open").each(function(){var e=i(this);this!=n[0]&&(e.data("element").select2("close"),setTimeout(function(){e.find("*:focus").blur(),t.focus()},1))})})},n.prototype._detachCloseHandler=function(e){i(document.body).off("mousedown.select2."+e.id)},n.prototype.position=function(e,t){t.find(".selection").append(e)},n.prototype.destroy=function(){this._detachCloseHandler(this.container)},n.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},n}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function o(){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,t),o.prototype.render=function(){var e=o.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},o.prototype.bind=function(t,e){var n=this;o.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.attr("role","combobox"),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("keydown",function(e){!t.isOpen()&&48<=e.which&&e.which<=90&&t.open()}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.focus()}),t.on("selection:update",function(e){n.update(e.data)})},o.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return e("<span></span>")},o.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i),n.prop("title",t.title||t.text)}else this.clear()},o}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,a){function o(e,t){o.__super__.constructor.apply(this,arguments)}return a.Extend(o,e),o.prototype.render=function(){var e=o.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered" aria-live="polite" aria-relevant="additions removals" aria-atomic="true"></ul>'),e},o.prototype.bind=function(t,e){var n=this;o.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!n.options.get("disabled")){var t=i(this).parent().data("data");n.trigger("unselect",{originalEvent:e,data:t})}}),this.$selection.on("keydown",function(e){!t.isOpen()&&48<=e.which&&e.which<=90&&t.open()}),t.on("focus",function(){n.focusOnSearch()})},o.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return i('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation" aria-hidden="true">&times;</span></li>')},o.prototype.focusOnSearch=function(){var e=this;"undefined"!=typeof e.$search&&setTimeout(function(){e._keyUpPrevented=!0,e.$search.focus()},1)},o.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n],o=this.selectionContainer(),s=this.display(i,o);"string"==typeof s&&(s=s.trim()),o.append(s),o.prop("title",i.title||i.text),o.data("data",i),t.push(o)}var r=this.$selection.find(".select2-selection__rendered");a.appendMany(r,t)}},o}),e.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},t}),e.define("select2/selection/allowClear",["jquery","../keys"],function(i,o){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();for(var i=n.data("data"),o=0;o<i.length;o++){var s={data:i[o]};if(this.trigger("unselect",s),s.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=o.DELETE&&t.which!=o.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2-selection__placeholder").length||0===t.length)){var n=i('<span class="select2-selection__clear">&times;</span>');n.data("data",t),this.$selection.find(".select2-selection__rendered").prepend(n)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(i,e,a){function t(e,t,n){e.call(this,t,n)}return t.prototype.render=function(e){var t=i('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="text" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},t.prototype.bind=function(e,i,t){var o=this,n=i.id+"-results";e.call(this,i,t),i.on("open",function(){o.$search.attr("aria-owns",n),o.$search.trigger("focus")}),i.on("close",function(){o.$search.val(""),o.$search.removeAttr("aria-activedescendant"),o.$search.removeAttr("aria-owns"),o.$search.trigger("focus")}),i.on("enable",function(){o.$search.prop("disabled",!1),o._transferTabIndex()}),i.on("disable",function(){o.$search.prop("disabled",!0)}),i.on("focus",function(e){o.$search.trigger("focus")}),i.on("results:focus",function(e){o.$search.attr("aria-activedescendant",e.data._resultId)}),this.$selection.on("focusin",".select2-search--inline",function(e){o.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){o._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented(),e.which===a.BACKSPACE&&""===o.$search.val()){var t=o.$searchContainer.prev(".select2-selection__choice");if(0<t.length){var n=t.data("data");o.searchRemoveChoice(n),e.preventDefault()}}else e.which===a.ENTER&&(i.open(),e.preventDefault())});var s=document.documentMode,r=s&&s<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){r?o.$selection.off("input.search input.searchcheck"):o.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(r&&"input"===e.type)o.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=a.SHIFT&&t!=a.CTRL&&t!=a.ALT&&t!=a.TAB&&o.handleSearch(e)}})},t.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},t.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},t.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},t.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},t.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},t.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2-selection__rendered").innerWidth():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},t}),e.define("select2/selection/eventRelay",["jquery"],function(r){function e(){}return e.prototype.bind=function(e,t,n){var i=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting"],s=["opening","closing","selecting","unselecting"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==r.inArray(e,o)){t=t||{};var n=r.Event("select2:"+e,{params:t});i.$element.trigger(n),-1!==r.inArray(e,s)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){if(!(e in i._cache)){var t=n(e);i._cache[e]=t}return new i(i._cache[e])},i}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),e.define("select2/data/base",["../utils"],function(i){function n(e,t){n.__super__.constructor.call(this)}return i.Extend(n,i.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n="";return n+=null!=e?e.id:i.generateChars(4),n+="-result-",n+=i.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+i.generateChars(4),n},n}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,t,a){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,e),n.prototype.current=function(e){var n=[],i=this;this.$element.find(":selected").each(function(){var e=a(this),t=i.item(e);n.push(t)}),e(n)},n.prototype.select=function(o){var s=this;if(o.selected=!0,a(o.element).is("option"))return o.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(o=[o]).push.apply(o,e);for(var n=0;n<o.length;n++){var i=o[n].id;-1===a.inArray(i,t)&&t.push(i)}s.$element.val(t),s.$element.trigger("change")});else{var e=o.id;this.$element.val(e),this.$element.trigger("change")}},n.prototype.unselect=function(o){var s=this;if(this.$element.prop("multiple")){if(o.selected=!1,a(o.element).is("option"))return o.element.selected=!1,void this.$element.trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n].id;i!==o.id&&-1===a.inArray(i,t)&&t.push(i)}s.$element.val(t),s.$element.trigger("change")})}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.removeData(this,"data")})},n.prototype.query=function(i,e){var o=[],s=this;this.$element.children().each(function(){var e=a(this);if(e.is("option")||e.is("optgroup")){var t=s.item(e),n=s.matches(i,t);null!==n&&o.push(n)}}),e({results:o})},n.prototype.addOptions=function(e){t.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:(t=document.createElement("option")).textContent!==undefined?t.textContent=e.text:t.innerText=e.text,e.id!==undefined&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=a(t),i=this._normalizeItem(e);return i.element=t,a.data(t,"data",i),n},n.prototype.item=function(e){var t={};if(null!=(t=a.data(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),i=[],o=0;o<n.length;o++){var s=a(n[o]),r=this.item(s);i.push(r)}t.children=i}return(t=this._normalizeItem(t)).element=e[0],a.data(e[0],"data",t),t},n.prototype._normalizeItem=function(e){a.isPlainObject(e)||(e={id:e,text:e});return null!=(e=a.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&(e._resultId=this.generateResultId(this.container,e)),a.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,f,g){function i(e,t){var n=t.get("data")||[];i.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return f.Extend(i,e),i.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),i.__super__.select.call(this,n)},i.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),i=n.map(function(){return t.item(g(this)).id}).get(),o=[];function s(e){return function(){return g(this).val()==e.id}}for(var r=0;r<e.length;r++){var a=this._normalizeItem(e[r]);if(0<=g.inArray(a.id,i)){var l=n.filter(s(a)),c=this.item(l),u=g.extend(!0,{},a,c),d=this.option(u);l.replaceWith(d)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);f.appendMany(p,h)}o.push(p)}}return o},i}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,s){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return s.extend({},e,{q:e.term})},transport:function(e,t,n){var i=s.ajax(e);return i.then(t),i.fail(n),i}};return s.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,i){var o=this;null!=this._request&&(s.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=s.extend({type:"GET"},this.ajaxOptions);function e(){var e=t.transport(t,function(e){var t=o.processResults(e,n);o.options.get("debug")&&window.console&&console.error&&(t&&t.results&&s.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),i(t),o.container.focusOnActiveElement()},function(){e.status&&"0"===e.status||o.trigger("results:message",{message:"errorLoading"})});o._request=e}"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(u){function e(e,t,n){var i=n.get("tags"),o=n.get("createTag");o!==undefined&&(this.createTag=o);var s=n.get("insertTag");if(s!==undefined&&(this.insertTag=s),e.call(this,t,n),u.isArray(i))for(var r=0;r<i.length;r++){var a=i[r],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,l,c){var u=this;this._removeOldTags(),null!=l.term&&null==l.page?e.call(this,l,function d(e,t){for(var n=e.results,i=0;i<n.length;i++){var o=n[i],s=null!=o.children&&!d({results:o.children},!0);if((o.text||"").toUpperCase()===(l.term||"").toUpperCase()||s)return!t&&(e.data=n,void c(e))}if(t)return!0;var r=u.createTag(l);if(null!=r){var a=u.option(r);a.attr("data-select2-tag",!0),u.addOptions([a]),u.insertTag(n,r)}e.results=n,c(e)}):e.call(this,l,c)},e.prototype.createTag=function(e,t){var n=u.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this._lastTag;this.$element.find("option[data-select2-tag]").each(function(){this.selected||u(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(d){function e(e,t,n){var i=n.get("tokenizer");i!==undefined&&(this.tokenizer=i),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var o=this;t.term=t.term||"";var i=this.tokenizer(t,this.options,function s(e){var t=o._normalizeItem(e);if(!o.$element.find("option").filter(function(){return d(this).val()===t.id}).length){var n=o.option(t);n.attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([n])}!function i(e){o.trigger("select",{data:e})}(t)});i.term!==t.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.focus()),t.term=i.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,i){for(var o=n.get("tokenSeparators")||[],s=t.term,r=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};r<s.length;){var l=s[r];if(-1!==d.inArray(l,o)){var c=s.substr(0,r),u=a(d.extend({},t,{term:c}));null!=u?(i(u),s=s.substr(r+1)||"",r=0):r++}else r++}return{term:s}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(n,i,o){var s=this;this.current(function(e){var t=null!=e?e.length:0;0<s.maximumSelectionLength&&t>=s.maximumSelectionLength?s.trigger("results:message",{message:"maximumSelected",args:{maximum:s.maximumSelectionLength}}):n.call(s,i,o)})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(s,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=s('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="text" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="combobox" aria-autocomplete="list" aria-expanded="true" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var i=this,o=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){s(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search.attr("tabindex",0),i.$search.attr("aria-owns",o),i.$search.focus(),window.setTimeout(function(){i.$search.focus()},0)}),t.on("close",function(){i.$search.attr("tabindex",-1),i.$search.removeAttr("aria-activedescendant"),i.$search.removeAttr("aria-owns"),i.$search.val("")}),t.on("focus",function(){t.isOpen()||i.$search.focus()}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){i.$search.attr("aria-activedescendant",e.data._resultId)})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var o=t[i];this.placeholder.id===o.id&&n.splice(i,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(o){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",function(){var e=o.contains(document.documentElement,i.$loadingMore[0]);if(!i.loading&&e){var t=i.$results.offset().top+i.$results.outerHeight(!1);i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1)<=t+50&&i.loadMore()}})},e.prototype.loadMore=function(){this.loading=!0;var e=o.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=o('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=n.get("dropdownParent")||f(document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this,o=!1;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),o||(o=!0,t.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}))}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.select2."+t.id,o="resize.select2."+t.id,s="orientationchange.select2."+t.id,r=this.$container.parents().filter(a.hasScroll);r.each(function(){f(this).data("select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),r.on(i,function(e){var t=f(this).data("select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(i+" "+o+" "+s,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,i="resize.select2."+t.id,o="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+i+" "+o)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),i=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=o.top,s.bottom=o.top+s.height;var r=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<o.top-r,u=l>o.bottom+r,d={left:o.left,top:s.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h=p.offset();d.top-=h.top,d.left-=h.left,t||n||(i="below"),u||!c||t?!c&&u&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(d.top=s.top-h.top-r),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=Infinity),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function o(e){for(var t=0,n=0;n<e.length;n++){var i=e[n];i.children?t+=o(i.children):t++}return t}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var o=i.data("data");null!=o.element&&o.element.selected||null==o.element&&o.selected||this.trigger("select",{data:o})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(m,v,y,w,_,$,b,x,A,C,S,n,O,E,D,T,q,j,L,k,P,I,M,R,z,H,U,N,e){function t(){this.reset()}return t.prototype.apply=function(e){if(null==(e=m.extend(!0,{},this.defaults,e)).dataAdapter){if(null!=e.ajax?e.dataAdapter=D:null!=e.data?e.dataAdapter=E:e.dataAdapter=O,0<e.minimumInputLength&&(e.dataAdapter=C.Decorate(e.dataAdapter,j)),0<e.maximumInputLength&&(e.dataAdapter=C.Decorate(e.dataAdapter,L)),0<e.maximumSelectionLength&&(e.dataAdapter=C.Decorate(e.dataAdapter,k)),e.tags&&(e.dataAdapter=C.Decorate(e.dataAdapter,T)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=C.Decorate(e.dataAdapter,q)),null!=e.query){var t=v(e.amdBase+"compat/query");e.dataAdapter=C.Decorate(e.dataAdapter,t)}if(null!=e.initSelection){var n=v(e.amdBase+"compat/initSelection");e.dataAdapter=C.Decorate(e.dataAdapter,n)}}if(null==e.resultsAdapter&&(e.resultsAdapter=y,null!=e.ajax&&(e.resultsAdapter=C.Decorate(e.resultsAdapter,R)),null!=e.placeholder&&(e.resultsAdapter=C.Decorate(e.resultsAdapter,M)),e.selectOnClose&&(e.resultsAdapter=C.Decorate(e.resultsAdapter,U))),null==e.dropdownAdapter){if(e.multiple)e.dropdownAdapter=P;else{var i=C.Decorate(P,I);e.dropdownAdapter=i}if(0!==e.minimumResultsForSearch&&(e.dropdownAdapter=C.Decorate(e.dropdownAdapter,H)),e.closeOnSelect&&(e.dropdownAdapter=C.Decorate(e.dropdownAdapter,N)),null!=e.dropdownCssClass||null!=e.dropdownCss||null!=e.adaptDropdownCssClass){var o=v(e.amdBase+"compat/dropdownCss");e.dropdownAdapter=C.Decorate(e.dropdownAdapter,o)}e.dropdownAdapter=C.Decorate(e.dropdownAdapter,z)}if(null==e.selectionAdapter){if(e.multiple?e.selectionAdapter=_:e.selectionAdapter=w,null!=e.placeholder&&(e.selectionAdapter=C.Decorate(e.selectionAdapter,$)),e.allowClear&&(e.selectionAdapter=C.Decorate(e.selectionAdapter,b)),e.multiple&&(e.selectionAdapter=C.Decorate(e.selectionAdapter,x)),null!=e.containerCssClass||null!=e.containerCss||null!=e.adaptContainerCssClass){var s=v(e.amdBase+"compat/containerCss");e.selectionAdapter=C.Decorate(e.selectionAdapter,s)}e.selectionAdapter=C.Decorate(e.selectionAdapter,A)}if("string"==typeof e.language)if(0<e.language.indexOf("-")){var r=e.language.split("-")[0];e.language=[e.language,r]}else e.language=[e.language];if(m.isArray(e.language)){var a=new S;e.language.push("en");for(var l=e.language,c=0;c<l.length;c++){var u=l[c],d={};try{d=S.loadPath(u)}catch(f){try{u=this.defaults.amdLanguageBase+u,d=S.loadPath(u)}catch(g){e.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+u+'" could not be automatically loaded. A fallback will be used instead.');continue}}a.extend(d)}e.translations=a}else{var p=S.loadPath(this.defaults.amdLanguageBase+"en"),h=new S(e.language);h.extend(p),e.translations=h}return e},t.prototype.reset=function(){function r(e){return e.replace(/[^\u0000-\u007E]/g,function t(e){return n[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:C.escapeMarkup,language:e,matcher:function a(e,t){if(""===m.trim(e.term))return t;if(t.children&&0<t.children.length){for(var n=m.extend(!0,{},t),i=t.children.length-1;0<=i;i--)null==a(e,t.children[i])&&n.children.splice(i,1);return 0<n.children.length?n:a(e,n)}var o=r(t.text).toUpperCase(),s=r(e.term).toUpperCase();return-1<o.indexOf(s)?t:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},t.prototype.set=function(e,t){var n={};n[m.camelCase(e)]=t;var i=C._convertData(n);m.extend(this.defaults,i)},new t}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(i,s,o,r){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),this.options=o.apply(this.options),t&&t.is("input")){var n=i(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),e.data("data",e.data("select2Tags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var n={};n=s.fn.jquery&&"1."==s.fn.jquery.substr(0,2)&&e[0].dataset?s.extend(!0,{},e[0].dataset,e.data()):e.data();var i=s.extend(!0,{},n);for(var o in i=r._convertData(i))-1<s.inArray(o,t)||(s.isPlainObject(this.options[o])?s.extend(this.options[o],i[o]):this.options[o]=i[o]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(o,c,n,s){var u=function(e,t){null!=e.data("select2")&&e.data("select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),u.__super__.constructor.call(this);var n=e.attr("tabindex")||0;e.data("old-tabindex",n),e.attr("tabindex","-1");var i=this.options.get("dataAdapter");this.dataAdapter=new i(e,this.options);var o=this.render();this._placeContainer(o);var s=this.options.get("selectionAdapter");this.selection=new s(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,o);var r=this.options.get("dropdownAdapter");this.dropdown=new r(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,o);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2",this)};return n.Extend(u,n.Observable),u.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},u.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},u.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var o=e.outerWidth(!1);return o<=0?"auto":o+"px"}if("style"!=t)return t;var s=e.attr("style");if("string"!=typeof s)return null;for(var r=s.split(";"),a=0,l=r.length;a<l;a+=1){var c=r[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},u.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},u.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){o.each(e,t._syncA),o.each(e,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},u.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},u.prototype._registerSelectionEvents=function(){var n=this,i=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===o.inArray(e,i)&&n.trigger(e,t)})},u.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},u.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},u.prototype._registerEvents=function(){var i=this;this.on("open",function(){i.$container.addClass("select2-container--open")}),this.on("close",function(){i.$container.removeClass("select2-container--open")}),this.on("enable",function(){i.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){i.$container.addClass("select2-container--disabled")}),this.on("blur",function(){i.$container.removeClass("select2-container--focus")}),this.on("query",function(t){i.isOpen()||i.trigger("open",{}),this.dataAdapter.query(t,function(e){i.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){i.trigger("results:append",{data:e,query:t})})}),this.on("open",function(){setTimeout(function(){i.focusOnActiveElement()},1)}),o(document).on("keydown",function(e){var t=e.which;if(i.isOpen()){t===s.ESC||t===s.UP&&e.altKey?(i.close(),e.preventDefault()):t===s.ENTER||t===s.TAB?(i.trigger("results:select",{}),e.preventDefault()):t===s.SPACE&&e.ctrlKey?(i.trigger("results:toggle",{}),e.preventDefault()):t===s.UP?(i.trigger("results:previous",{}),e.preventDefault()):t===s.DOWN&&(i.trigger("results:next",{}),e.preventDefault());var n=i.$dropdown.find(".select2-search__field");n.length||(n=i.$container.find(".select2-search__field")),t===s.DOWN||t===s.UP?i.focusOnActiveElement():(n.focus(),setTimeout(function(){i.focusOnActiveElement()},1e3))}else i.hasFocus()&&(t!==s.ENTER&&t!==s.SPACE&&t!==s.DOWN||(i.open(),e.preventDefault()))})},u.prototype.focusOnActiveElement=function(){this.isOpen()&&!n.isTouchscreen()&&this.$results.find("li.select2-results__option--highlighted").focus()},u.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},u.prototype._syncSubtree=function(e,t){var n=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var o=0;o<t.addedNodes.length;o++){t.addedNodes[o].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})}},u.prototype.trigger=function(e,t){var n=u.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(t===undefined&&(t={}),e in i){var o=i[e],s={prevented:!1,name:e,args:t};if(n.call(this,o,s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},u.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},u.prototype.open=function(){this.isOpen()||this.trigger("query",{})},u.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},u.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},u.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},u.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},u.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},u.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},u.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];o.isArray(t)&&(t=o.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("change")},u.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},u.prototype.render=function(){var e=o('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),e.data("element",this.$element),e},u}),e.define("select2/compat/utils",["jquery"],function(r){return{syncCssClasses:function a(e,t,n){var i,o,s=[];(i=r.trim(e.attr("class")))&&r((i=""+i).split(/\s+/)).each(function(){0===this.indexOf("select2-")&&s.push(this)}),(i=r.trim(t.attr("class")))&&r((i=""+i).split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(o=n(this))&&s.push(o)}),e.attr("class",s.join(" "))}}}),e.define("select2/compat/containerCss",["jquery","./utils"],function(r,a){function l(e){return null}function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("containerCssClass")||"";r.isFunction(n)&&(n=n(this.$element));var i=this.options.get("adaptContainerCssClass");if(i=i||l,-1!==n.indexOf(":all:")){n=n.replace(":all:","");var o=i;i=function(e){var t=o(e);return null!=t?t+" "+e:e}}var s=this.options.get("containerCss")||{};return r.isFunction(s)&&(s=s(this.$element)),a.syncCssClasses(t,this.$element,i),t.css(s),t.addClass(n),t},e}),e.define("select2/compat/dropdownCss",["jquery","./utils"],function(r,a){function l(e){return null}function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("dropdownCssClass")||"";r.isFunction(n)&&(n=n(this.$element));var i=this.options.get("adaptDropdownCssClass");if(i=i||l,-1!==n.indexOf(":all:")){n=n.replace(":all:","");var o=i;i=function(e){var t=o(e);return null!=t?t+" "+e:e}}var s=this.options.get("dropdownCss")||{};return r.isFunction(s)&&(s=s(this.$element)),a.syncCssClasses(t,this.$element,i),t.css(s),t.addClass(n),t},e}),e.define("select2/compat/initSelection",["jquery"],function(i){function e(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=n.get("initSelection"),this._isInitialized=!1,e.call(this,t,n)}return e.prototype.current=function(e,t){var n=this;this._isInitialized?e.call(this,t):this.initSelection.call(null,this.$element,function(e){n._isInitialized=!0,i.isArray(e)||(e=[e]),t(e)})},e}),e.define("select2/compat/inputData",["jquery"],function(r){function e(e,t,n){this._currentData=[],this._valueSeparator=n.get("valueSeparator")||",","hidden"===t.prop("type")&&n.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),e.call(this,t,n)}return e.prototype.current=function(e,t){function i(e,t){var n=[];return e.selected||-1!==r.inArray(e.id,t)?(e.selected=!0,n.push(e)):e.selected=!1,e.children&&n.push.apply(n,i(e.children,t)),n}for(var n=[],o=0;o<this._currentData.length;o++){var s=this._currentData[o];n.push.apply(n,i(s,this.$element.val().split(this._valueSeparator)))}t(n)},e.prototype.select=function(e,t){if(this.options.get("multiple")){var n=this.$element.val();n+=this._valueSeparator+t.id,this.$element.val(n),this.$element.trigger("change")}else this.current(function(e){r.map(e,function(e){e.selected=!1})}),this.$element.val(t.id),this.$element.trigger("change")},e.prototype.unselect=function(e,o){var s=this;o.selected=!1,this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];o.id!=i.id&&t.push(i.id)}s.$element.val(t.join(s._valueSeparator)),s.$element.trigger("change")})},e.prototype.query=function(e,t,n){for(var i=[],o=0;o<this._currentData.length;o++){var s=this._currentData[o],r=this.matches(t,s);null!==r&&i.push(r)}n({results:i})},e.prototype.addOptions=function(e,t){var n=r.map(t,function(e){return r.data(e[0],"data")});this._currentData.push.apply(this._currentData,n)},e}),e.define("select2/compat/matcher",["jquery"],function(a){return function e(s){return function r(e,t){var n=a.extend(!0,{},t);if(null==e.term||""===a.trim(e.term))return n;if(t.children){for(var i=t.children.length-1;0<=i;i--){var o=t.children[i];s(e.term,o.text,o)||n.children.splice(i,1)}if(0<n.children.length)return n}return s(e.term,t.text,t)?n:null}}}),e.define("select2/compat/query",[],function(){function e(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.callback=n,this.options.get("query").call(null,t)},e}),e.define("select2/dropdown/attachContainer",[],function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(".dropdown-wrapper").append(t),t.addClass("select2-dropdown--below"),n.addClass("select2-container--below")},e}),e.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),e.define("select2/selection/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),
/*!
 * jQuery Mousewheel 3.1.13
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 */
n=function(p){var h,f,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],g=Array.prototype.slice;if(p.event.fixHooks)for(var n=e.length;n;)p.event.fixHooks[e[--n]]=p.event.mouseHooks;var m=p.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=t.length;e;)this.addEventListener(t[--e],i,!1);else this.onmousewheel=i;p.data(this,"mousewheel-line-height",m.getLineHeight(this)),p.data(this,"mousewheel-page-height",m.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=t.length;e;)this.removeEventListener(t[--e],i,!1);else this.onmousewheel=null;p.removeData(this,"mousewheel-line-height"),p.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=p(e),n=t["offsetParent"in p.fn?"offsetParent":"parent"]();return n.length||(n=p("body")),parseInt(n.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return p(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function i(e){var t,n=e||window.event,i=g.call(arguments,1),o=0,s=0,r=0,a=0,l=0;if((e=p.event.fix(n)).type="mousewheel","detail"in n&&(r=-1*n.detail),"wheelDelta"in n&&(r=n.wheelDelta),"wheelDeltaY"in n&&(r=n.wheelDeltaY),"wheelDeltaX"in n&&(s=-1*n.wheelDeltaX),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(s=-1*r,r=0),o=0===r?s:r,"deltaY"in n&&(o=r=-1*n.deltaY),"deltaX"in n&&(s=n.deltaX,0===r&&(o=-1*s)),0!==r||0!==s){if(1===n.deltaMode){var c=p.data(this,"mousewheel-line-height");o*=c,r*=c,s*=c}else if(2===n.deltaMode){var u=p.data(this,"mousewheel-page-height");o*=u,r*=u,s*=u}if(t=Math.max(Math.abs(r),Math.abs(s)),(!f||t<f)&&y(n,f=t)&&(f/=40),y(n,t)&&(o/=40,s/=40,r/=40),o=Math[1<=o?"floor":"ceil"](o/f),s=Math[1<=s?"floor":"ceil"](s/f),r=Math[1<=r?"floor":"ceil"](r/f),m.settings.normalizeOffset&&this.getBoundingClientRect){var d=this.getBoundingClientRect();a=e.clientX-d.left,l=e.clientY-d.top}return e.deltaX=s,e.deltaY=r,e.deltaFactor=f,e.offsetX=a,e.offsetY=l,e.deltaMode=0,i.unshift(e,o,s,r),h&&clearTimeout(h),h=setTimeout(v,200),(p.event.dispatch||p.event.handle).apply(this,i)}}function v(){f=null}function y(e,t){return m.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}p.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof e.define&&e.define.amd?e.define("jquery-mousewheel",["jquery"],n):"object"==typeof exports?module.exports=n:n(i),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(o,e,s,t){if(null==o.fn.selectWoo){var r=["open","close","destroy"];o.fn.selectWoo=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=o.extend(!0,{},t);new s(o(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=o(this).data("select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,i)}),-1<o.inArray(t,r)?this:n}}return null!=o.fn.select2&&null!=o.fn.select2.defaults&&(o.fn.selectWoo.defaults=o.fn.select2.defaults),null==o.fn.selectWoo.defaults&&(o.fn.selectWoo.defaults=t),o.fn.select2=o.fn.select2||o.fn.selectWoo,s}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return i.fn.select2.amd=e,i.fn.selectWoo.amd=e,t});
window.wp=window.wp||{},function(l){wp.passwordStrength={meter:function(n,e,t){return l.isArray(e)||(e=[e.toString()]),n!=t&&t&&0<t.length?5:void 0===window.zxcvbn?-1:zxcvbn(n,e).score},userInputBlacklist:function(){var n,e,t,r,i=[],o=[],a=["user_login","first_name","last_name","nickname","display_name","email","url","description","weblog_title","admin_email"];for(i.push(document.title),i.push(document.URL),e=a.length,n=0;n<e;n++)0!==(r=l("#"+a[n])).length&&(i.push(r[0].defaultValue),i.push(r.val()));for(t=i.length,n=0;n<t;n++)i[n]&&(o=o.concat(i[n].replace(/\W/g," ").split(" ")));return o=l.grep(o,function(n,e){return!(""===n||n.length<4)&&l.inArray(n,o)===e})}},window.passwordStrength=wp.passwordStrength.meter}(jQuery);
!function(d){"use strict";var n={init:function(){d(document.body).on("keyup change","form.register #reg_password, form.checkout #account_password, form.edit-account #password_1, form.lost_reset_password #password_1",this.strengthMeter),d("form.checkout #createaccount").change()},strengthMeter:function(){var s,r=d("form.register, form.checkout, form.edit-account, form.lost_reset_password"),e=d('button[type="submit"]',r),t=d("#reg_password, #account_password, #password_1",r),o=t.val(),a=!r.is("form.checkout");n.includeMeter(r,t),s=n.checkPasswordStrength(r,t),wc_password_strength_meter_params.stop_checkout&&(a=!0),0<o.length&&s<wc_password_strength_meter_params.min_password_strength&&-1!==s&&a?e.attr("disabled","disabled").addClass("disabled"):e.removeAttr("disabled","disabled").removeClass("disabled")},includeMeter:function(s,r){var e=s.find(".woocommerce-password-strength");""===r.val()?(e.hide(),d(document.body).trigger("wc-password-strength-hide")):0===e.length?(r.after('<div class="woocommerce-password-strength" aria-live="polite"></div>'),d(document.body).trigger("wc-password-strength-added")):(e.show(),d(document.body).trigger("wc-password-strength-show"))},checkPasswordStrength:function(s,r){var e=s.find(".woocommerce-password-strength"),t=s.find(".woocommerce-password-hint"),o='<small class="woocommerce-password-hint">'+wc_password_strength_meter_params.i18n_password_hint+"</small>",a=wp.passwordStrength.meter(r.val(),wp.passwordStrength.userInputBlacklist()),d="";if(e.removeClass("short bad good strong"),t.remove(),e.is(":hidden"))return a;switch(a<wc_password_strength_meter_params.min_password_strength&&(d=" - "+wc_password_strength_meter_params.i18n_password_error),a){case 0:e.addClass("short").html(pwsL10n["short"]+d),e.after(o);break;case 1:case 2:e.addClass("bad").html(pwsL10n.bad+d),e.after(o);break;case 3:e.addClass("good").html(pwsL10n.good+d);break;case 4:e.addClass("strong").html(pwsL10n.strong+d);break;case 5:e.addClass("short").html(pwsL10n.mismatch)}return a}};n.init()}(jQuery);
/*!
 * jQuery blockUI plugin
 * Version 2.70.0-2014.11.23
 * Requires jQuery v1.7 or later
 *
 * Examples at: https://malsup.com/jquery/block/
 * Copyright (c) 2007-2013 M. Alsup
 * Dual licensed under the MIT and GPL licenses:
 * https://www.opensource.org/licenses/mit-license.php
 * https://www.gnu.org/licenses/gpl.html
 *
 * Thanks to Amir-Hossein Sobhi for some excellent contributions!
 */
!function(){"use strict";function e(e){function t(t,n){var s,h,k=t==window,y=n&&n.message!==undefined?n.message:undefined;if(!(n=e.extend({},e.blockUI.defaults,n||{})).ignoreIfBlocked||!e(t).data("blockUI.isBlocked")){if(n.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,n.overlayCSS||{}),s=e.extend({},e.blockUI.defaults.css,n.css||{}),n.onOverlayClick&&(n.overlayCSS.cursor="pointer"),h=e.extend({},e.blockUI.defaults.themedCSS,n.themedCSS||{}),y=y===undefined?n.message:y,k&&p&&o(window,{fadeOut:0}),y&&"string"!=typeof y&&(y.parentNode||y.jquery)){var m=y.jquery?y[0]:y,g={};e(t).data("blockUI.history",g),g.el=m,g.parent=m.parentNode,g.display=m.style.display,g.position=m.style.position,g.parent&&g.parent.removeChild(m)}e(t).data("blockUI.onUnblock",n.onUnblock);var v,I,w,U,x=n.baseZ;v=e(r||n.forceIframe?'<iframe class="blockUI" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+n.iframeSrc+'"></iframe>':'<div class="blockUI" style="display:none"></div>'),I=e(n.theme?'<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+x+++';display:none"></div>':'<div class="blockUI blockOverlay" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),n.theme&&k?(U='<div class="blockUI '+n.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:fixed">',n.title&&(U+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(n.title||"&nbsp;")+"</div>"),U+='<div class="ui-widget-content ui-dialog-content"></div>',U+="</div>"):n.theme?(U='<div class="blockUI '+n.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:absolute">',n.title&&(U+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(n.title||"&nbsp;")+"</div>"),U+='<div class="ui-widget-content ui-dialog-content"></div>',U+="</div>"):U=k?'<div class="blockUI '+n.blockMsgClass+' blockPage" style="z-index:'+(x+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+n.blockMsgClass+' blockElement" style="z-index:'+(x+10)+';display:none;position:absolute"></div>',w=e(U),y&&(n.theme?(w.css(h),w.addClass("ui-widget-content")):w.css(s)),n.theme||I.css(n.overlayCSS),I.css("position",k?"fixed":"absolute"),(r||n.forceIframe)&&v.css("opacity",0);var C=[v,I,w],S=e(k?"body":t);e.each(C,function(){this.appendTo(S)}),n.theme&&n.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var O=f&&(!e.support.boxModel||e("object,embed",k?null:t).length>0);if(u||O){if(k&&n.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(u||!e.support.boxModel)&&!k)var E=a(t,"borderTopWidth"),T=a(t,"borderLeftWidth"),M=E?"(0 - "+E+")":0,B=T?"(0 - "+T+")":0;e.each(C,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)k?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+n.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),k?o.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),B&&o.setExpression("left",B),M&&o.setExpression("top",M);else if(n.centerY)k&&o.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),o.marginTop=0;else if(!n.centerY&&k){var i="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(n.css&&n.css.top?parseInt(n.css.top,10):0)+') + "px"';o.setExpression("top",i)}})}if(y&&(n.theme?w.find(".ui-widget-content").append(y):w.append(y),(y.jquery||y.nodeType)&&e(y).show()),(r||n.forceIframe)&&n.showOverlay&&v.show(),n.fadeIn){var j=n.onBlock?n.onBlock:c,H=n.showOverlay&&!y?j:c,z=y?j:c;n.showOverlay&&I._fadeIn(n.fadeIn,H),y&&w._fadeIn(n.fadeIn,z)}else n.showOverlay&&I.show(),y&&w.show(),n.onBlock&&n.onBlock.bind(w)();if(i(1,t,n),k?(p=w[0],b=e(n.focusableElements,p),n.focusInput&&setTimeout(l,20)):d(w[0],n.centerX,n.centerY),n.timeout){var W=setTimeout(function(){k?e.unblockUI(n):e(t).unblock(n)},n.timeout);e(t).data("blockUI.timeout",W)}}}function o(t,o){var s,l=t==window,d=e(t),a=d.data("blockUI.history"),c=d.data("blockUI.timeout");c&&(clearTimeout(c),d.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),i(0,t,o),null===o.onUnblock&&(o.onUnblock=d.data("blockUI.onUnblock"),d.removeData("blockUI.onUnblock"));var r;r=l?e(document.body).children().filter(".blockUI").add("body > .blockUI"):d.find(">.blockUI"),o.cursorReset&&(r.length>1&&(r[1].style.cursor=o.cursorReset),r.length>2&&(r[2].style.cursor=o.cursorReset)),l&&(p=b=null),o.fadeOut?(s=r.length,r.stop().fadeOut(o.fadeOut,function(){0==--s&&n(r,a,o,t)})):n(r,a,o,t)}function n(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function i(t,o,n){var i=o==window,l=e(o);if((t||(!i||p)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(d,n,s):e(document).unbind(d,s)}}function s(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&p&&t.data.constrainTabKey){var o=b,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){l(i)},10),!1}var s=t.data,d=e(t.target);return d.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),d.parents("div."+s.blockMsgClass).length>0||0===d.parents().children().filter("div.blockUI").length}function l(e){if(b){var t=b[!0===e?b.length-1:0];t&&t.focus()}}function d(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-a(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-a(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0"),o&&(i.top=l>0?l+"px":"0")}function a(t,o){return parseInt(e.css(t,o),10)||0}e.fn._fadeIn=e.fn.fadeIn;var c=e.noop||function(){},r=/MSIE/.test(navigator.userAgent),u=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),f=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){t(window,e)},e.unblockUI=function(e){o(window,e)},e.growlUI=function(t,o,n,i){var s=e('<div class="growlUI"></div>');t&&s.append("<h1>"+t+"</h1>"),o&&s.append("<h2>"+o+"</h2>"),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.mouseover(function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(o){if(this[0]===window)return e.blockUI(o),this;var n=e.extend({},e.blockUI.defaults,o||{});return this.each(function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,t(this,o)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){o(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var p=null,b=[]}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}();
/*!
 * JavaScript Cookie v2.1.4
 * https://github.com/js-cookie/js-cookie
 *
 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
 * Released under the MIT license
 */
!function(e){var n=!1;if("function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),!n){var o=window.Cookies,t=window.Cookies=e();t.noConflict=function(){return window.Cookies=o,t}}}(function(){function e(){for(var e=0,n={};e<arguments.length;e++){var o=arguments[e];for(var t in o)n[t]=o[t]}return n}function n(o){function t(n,r,i){var c;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(i=e({path:"/"},t.defaults,i)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*i.expires),i.expires=a}i.expires=i.expires?i.expires.toUTCString():"";try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(m){}r=o.write?o.write(r,n):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=(n=(n=encodeURIComponent(String(n))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var f="";for(var s in i)i[s]&&(f+="; "+s,!0!==i[s]&&(f+="="+i[s]));return document.cookie=n+"="+r+f}n||(c={});for(var p=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,u=0;u<p.length;u++){var l=p[u].split("="),C=l.slice(1).join("=");'"'===C.charAt(0)&&(C=C.slice(1,-1));try{var g=l[0].replace(d,decodeURIComponent);if(C=o.read?o.read(C,g):o(C,g)||C.replace(d,decodeURIComponent),this.json)try{C=JSON.parse(C)}catch(m){}if(n===g){c=C;break}n||(c[g]=C)}catch(m){}}return c}}return t.set=t,t.get=function(e){return t.call(t,e)},t.getJSON=function(){return t.apply({json:!0},[].slice.call(arguments))},t.defaults={},t.remove=function(n,o){t(n,"",e(o,{expires:-1}))},t.withConverter=n,t}return n(function(){})});
jQuery(function(i){i(".woocommerce-ordering").on("change","select.orderby",function(){i(this).closest("form").submit()}),i("input.qty:not(.product-quantity input.qty)").each(function(){var e=parseFloat(i(this).attr("min"));0<=e&&parseFloat(i(this).val())<e&&i(this).val(e)});var o="store_notice"+(i(".woocommerce-store-notice").data("notice-id")||"");"hidden"===Cookies.get(o)?i(".woocommerce-store-notice").hide():i(".woocommerce-store-notice").show(),i(".woocommerce-store-notice__dismiss-link").click(function(e){Cookies.set(o,"hidden",{path:"/"}),i(".woocommerce-store-notice").hide(),e.preventDefault()}),i(document.body).on("click",function(){i(".woocommerce-input-wrapper span.description:visible").prop("aria-hidden",!0).slideUp(250)}),i(".woocommerce-input-wrapper").on("click",function(e){e.stopPropagation()}),i(".woocommerce-input-wrapper :input").on("keydown",function(e){var o=i(this).parent().find("span.description");if(27===e.which&&o.length&&o.is(":visible"))return o.prop("aria-hidden",!0).slideUp(250),e.preventDefault(),!1}).on("click focus",function(){var e=i(this).parent(),o=e.find("span.description");e.addClass("currentTarget"),i(".woocommerce-input-wrapper:not(.currentTarget) span.description:visible").prop("aria-hidden",!0).slideUp(250),o.length&&o.is(":hidden")&&o.prop("aria-hidden",!1).slideDown(250),e.removeClass("currentTarget")}),i.scroll_to_notices=function(e){e.length&&i("html, body").animate({scrollTop:e.offset().top-100},1e3)}});
jQuery(function(t){t(".lost_reset_password").on("submit",function(){t('button[type="submit"]',this).attr("disabled","disabled")})});
jQuery(function(r){if("undefined"==typeof wc_cart_fragments_params)return!1;var t=!0,o=wc_cart_fragments_params.cart_hash_key;try{t="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc"),window.localStorage.setItem("wc","test"),window.localStorage.removeItem("wc")}catch(f){t=!1}function a(){t&&sessionStorage.setItem("wc_cart_created",(new Date).getTime())}function s(e){t&&(localStorage.setItem(o,e),sessionStorage.setItem(o,e))}var e={url:wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%","get_refreshed_fragments"),type:"POST",data:{time:(new Date).getTime()},timeout:wc_cart_fragments_params.request_timeout,success:function(e){e&&e.fragments&&(r.each(e.fragments,function(e,t){r(e).replaceWith(t)}),t&&(sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(e.fragments)),s(e.cart_hash),e.cart_hash&&a()),r(document.body).trigger("wc_fragments_refreshed"))},error:function(){r(document.body).trigger("wc_fragments_ajax_error")}};function n(){r.ajax(e)}if(t){var i=null;r(document.body).on("wc_fragment_refresh updated_wc_div",function(){n()}),r(document.body).on("added_to_cart removed_from_cart",function(e,t,r){var n=sessionStorage.getItem(o);null!==n&&n!==undefined&&""!==n||a(),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(t)),s(r)}),r(document.body).on("wc_fragments_refreshed",function(){clearTimeout(i),i=setTimeout(n,864e5)}),r(window).on("storage onstorage",function(e){o===e.originalEvent.key&&localStorage.getItem(o)!==sessionStorage.getItem(o)&&n()}),r(window).on("pageshow",function(e){e.originalEvent.persisted&&(r(".widget_shopping_cart_content").empty(),r(document.body).trigger("wc_fragment_refresh"))});try{var c=r.parseJSON(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),_=sessionStorage.getItem(o),g=Cookies.get("woocommerce_cart_hash"),m=sessionStorage.getItem("wc_cart_created");if(null!==_&&_!==undefined&&""!==_||(_=""),null!==g&&g!==undefined&&""!==g||(g=""),_&&(null===m||m===undefined||""===m))throw"No cart_created";if(m){var d=1*m+864e5,w=(new Date).getTime();if(d<w)throw"Fragment expired";i=setTimeout(n,d-w)}if(!c||!c["div.widget_shopping_cart_content"]||_!==g)throw"No fragment";r.each(c,function(e,t){r(e).replaceWith(t)}),r(document.body).trigger("wc_fragments_loaded")}catch(f){n()}}else n();0<Cookies.get("woocommerce_items_in_cart")?r(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():r(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide(),r(document.body).on("adding_to_cart",function(){r(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show()}),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){n()})});



		jQuery( 'body' ).bind( 'wc_fragments_refreshed', function() {
			jQuery( 'body' ).trigger( 'jetpack-lazy-images-load' );
		} );
	!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){var b=Array.prototype.slice,c=Array.prototype.splice,d={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:"auto"},e=a(window),f=a(document),g=[],h=e.height(),i=function(){for(var b=e.scrollTop(),c=f.height(),d=c-h,i=b>d?d-b:0,j=0,k=g.length;j<k;j++){var l=g[j],m=l.stickyWrapper.offset().top,n=m-l.topSpacing-i;if(l.stickyWrapper.css("height",l.stickyElement.outerHeight()),b<=n)null!==l.currentTop&&(l.stickyElement.css({width:"",position:"",top:"","z-index":""}),l.stickyElement.parent().removeClass(l.className),l.stickyElement.trigger("sticky-end",[l]),l.currentTop=null);else{var o=c-l.stickyElement.outerHeight()-l.topSpacing-l.bottomSpacing-b-i;if(o<0?o+=l.topSpacing:o=l.topSpacing,l.currentTop!==o){var p;l.getWidthFrom?p=a(l.getWidthFrom).width()||null:l.widthFromWrapper&&(p=l.stickyWrapper.width()),null==p&&(p=l.stickyElement.width()),l.stickyElement.css("width",p).css("position","fixed").css("top",o).css("z-index",l.zIndex),l.stickyElement.parent().addClass(l.className),null===l.currentTop?l.stickyElement.trigger("sticky-start",[l]):l.stickyElement.trigger("sticky-update",[l]),l.currentTop===l.topSpacing&&l.currentTop>o||null===l.currentTop&&o<l.topSpacing?l.stickyElement.trigger("sticky-bottom-reached",[l]):null!==l.currentTop&&o===l.topSpacing&&l.currentTop<o&&l.stickyElement.trigger("sticky-bottom-unreached",[l]),l.currentTop=o}var q=l.stickyWrapper.parent(),r=l.stickyElement.offset().top+l.stickyElement.outerHeight()>=q.offset().top+q.outerHeight()&&l.stickyElement.offset().top<=l.topSpacing;r?l.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):l.stickyElement.css("position","fixed").css("top",o).css("bottom","").css("z-index",l.zIndex)}}},j=function(){h=e.height();for(var b=0,c=g.length;b<c;b++){var d=g[b],f=null;d.getWidthFrom?d.responsiveWidth&&(f=a(d.getWidthFrom).width()):d.widthFromWrapper&&(f=d.stickyWrapper.width()),null!=f&&d.stickyElement.css("width",f)}},k={init:function(b){return this.each(function(){var c=a.extend({},d,b),e=a(this),f=e.attr("id"),h=f?f+"-"+d.wrapperClassName:d.wrapperClassName,i=a("<div></div>").attr("id",h).addClass(c.wrapperClassName);e.wrapAll(function(){if(0==a(this).parent("#"+h).length)return i});var j=e.parent();c.center&&j.css({width:e.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===e.css("float")&&e.css({"float":"none"}).parent().css({"float":"right"}),c.stickyElement=e,c.stickyWrapper=j,c.currentTop=null,g.push(c),k.setWrapperHeight(this),k.setupChangeListeners(this)})},setWrapperHeight:function(b){var c=a(b),d=c.parent();d&&d.css("height",c.outerHeight())},setupChangeListeners:function(a){if(window.MutationObserver){var b=new window.MutationObserver(function(b){(b[0].addedNodes.length||b[0].removedNodes.length)&&k.setWrapperHeight(a)});b.observe(a,{subtree:!0,childList:!0})}else window.addEventListener?(a.addEventListener("DOMNodeInserted",function(){k.setWrapperHeight(a)},!1),a.addEventListener("DOMNodeRemoved",function(){k.setWrapperHeight(a)},!1)):window.attachEvent&&(a.attachEvent("onDOMNodeInserted",function(){k.setWrapperHeight(a)}),a.attachEvent("onDOMNodeRemoved",function(){k.setWrapperHeight(a)}))},update:i,unstick:function(b){return this.each(function(){for(var b=this,d=a(b),e=-1,f=g.length;f-- >0;)g[f].stickyElement.get(0)===b&&(c.call(g,f,1),e=f);e!==-1&&(d.unwrap(),d.css({width:"",position:"",top:"","float":"","z-index":""}))})}};window.addEventListener?(window.addEventListener("scroll",i,!1),window.addEventListener("resize",j,!1)):window.attachEvent&&(window.attachEvent("onscroll",i),window.attachEvent("onresize",j)),a.fn.sticky=function(c){return k[c]?k[c].apply(this,b.call(arguments,1)):"object"!=typeof c&&c?void a.error("Method "+c+" does not exist on jQuery.sticky"):k.init.apply(this,arguments)},a.fn.unstick=function(c){return k[c]?k[c].apply(this,b.call(arguments,1)):"object"!=typeof c&&c?void a.error("Method "+c+" does not exist on jQuery.sticky"):k.unstick.apply(this,arguments)},a(function(){setTimeout(i,0)})});
!function(a,b,c,d){"use strict";function e(b,c){this.element=b,this.$el=a(b),this.options=a.extend({},g,c),this._defaults=g,this._name=f,this.moveInterval,this.state=0,this.paused=0,this.moving=0,this.$el.is("ul, ol")&&this.init()}var f="newsTicker",g={row_height:20,max_rows:3,speed:400,duration:2500,direction:"up",autostart:1,pauseOnHover:1,nextButton:null,prevButton:null,startButton:null,stopButton:null,hasMoved:function(){},movingUp:function(){},movingDown:function(){},start:function(){},stop:function(){},pause:function(){},unpause:function(){}};e.prototype={init:function(){this.$el.height(this.options.row_height*this.options.max_rows).css({overflow:"hidden"}),this.checkSpeed(),this.options.nextButton&&"undefined"!=typeof this.options.nextButton[0]&&this.options.nextButton.click(function(a){this.moveNext(),this.resetInterval()}.bind(this)),this.options.prevButton&&"undefined"!=typeof this.options.prevButton[0]&&this.options.prevButton.click(function(a){this.movePrev(),this.resetInterval()}.bind(this)),this.options.stopButton&&"undefined"!=typeof this.options.stopButton[0]&&this.options.stopButton.click(function(a){this.stop()}.bind(this)),this.options.startButton&&"undefined"!=typeof this.options.startButton[0]&&this.options.startButton.click(function(a){this.start()}.bind(this)),this.options.pauseOnHover&&this.$el.hover(function(){this.state&&this.pause()}.bind(this),function(){this.state&&this.unpause()}.bind(this)),this.options.autostart&&this.start()},start:function(){this.state||(this.state=1,this.resetInterval(),this.options.start())},stop:function(){this.state&&(clearInterval(this.moveInterval),this.state=0,this.options.stop())},resetInterval:function(){this.state&&(clearInterval(this.moveInterval),this.moveInterval=setInterval(function(){this.move()}.bind(this),this.options.duration))},move:function(){this.paused||this.moveNext()},moveNext:function(){"down"===this.options.direction?this.moveDown():"up"===this.options.direction&&this.moveUp()},movePrev:function(){"down"===this.options.direction?this.moveUp():"up"===this.options.direction&&this.moveDown()},pause:function(){this.paused||(this.paused=1),this.options.pause()},unpause:function(){this.paused&&(this.paused=0),this.options.unpause()},moveDown:function(){this.moving||(this.moving=1,this.options.movingDown(),this.$el.children("li:last").detach().prependTo(this.$el).css("marginTop","-"+this.options.row_height+"px").animate({marginTop:"0px"},this.options.speed,function(){this.moving=0,this.options.hasMoved()}.bind(this)))},moveUp:function(){if(!this.moving){this.moving=1,this.options.movingUp();var a=this.$el.children("li:first");a.animate({marginTop:"-"+this.options.row_height+"px"},this.options.speed,function(){a.detach().css("marginTop","0").appendTo(this.$el),this.moving=0,this.options.hasMoved()}.bind(this))}},updateOption:function(a,b){"undefined"!=typeof this.options[a]&&(this.options[a]=b,"duration"!=a&&"speed"!=a||(this.checkSpeed(),this.resetInterval()))},add:function(b){this.$el.append(a("<li>").html(b))},getState:function(){return paused?2:this.state},checkSpeed:function(){this.options.duration<this.options.speed+25&&(this.options.speed=this.options.duration-25)},destroy:function(){this._destroy()}},a.fn[f]=function(b){var c=arguments;return this.each(function(){var d=a(this),g=a.data(this,"plugin_"+f),h="object"==typeof b&&b;g||d.data("plugin_"+f,g=new e(this,h)),"string"==typeof b&&g[b].apply(g,Array.prototype.slice.call(c,1))})}}(jQuery,window,document);
!function(){function a(){for(var a=this;-1===a.className.indexOf("nav-menu");)"li"===a.tagName.toLowerCase()&&(-1!==a.className.indexOf("focus")?a.className=a.className.replace(" focus",""):a.className+=" focus"),a=a.parentElement}var b,c,d,e,f,g;if(b=document.getElementById("site-navigation"),b&&(c=b.getElementsByClassName("menu-toggle")[0],"undefined"!=typeof c)){if(d=b.getElementsByTagName("ul")[0],"undefined"==typeof d)return void(c.style.display="none");for(d.setAttribute("aria-expanded","false"),-1===d.className.indexOf("nav-menu")&&(d.className+="nav-menu"),c.onclick=function(){-1!==b.className.indexOf("main-small-navigation")?(b.className=b.className.replace("main-small-navigation","main-navigation"),c.setAttribute("aria-expanded","false"),d.setAttribute("aria-expanded","false")):(b.className=b.className.replace("main-navigation","main-small-navigation"),c.setAttribute("aria-expanded","true"),d.setAttribute("aria-expanded","true"))},e=d.getElementsByTagName("a"),f=0,g=e.length;f<g;f++)e[f].addEventListener("focus",a,!0),e[f].addEventListener("blur",a,!0);!function(a){var b,c,d=a.querySelectorAll(".menu-item-has-children > a, .page_item_has_children > a");if("ontouchstart"in window&&window.matchMedia("(min-width: 768px)").matches)for(b=function(a){var b,c=this.parentNode;if(c.classList.contains("focus"))c.classList.remove("focus");else{for(a.preventDefault(),b=0;b<c.parentNode.children.length;++b)c!==c.parentNode.children[b]&&c.parentNode.children[b].classList.remove("focus");c.classList.add("focus")}},c=0;c<d.length;++c)d[c].addEventListener("touchstart",b,!1)}(b)}}();
/*!
* FitVids 1.1
*
* Copyright 2013, Chris Coyier - https://css-tricks.com + Dave Rupert - https://daverupert.com
* Credit to Thierry Koblentz - https://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
* Released under the WTFPL license - https://sam.zoy.org/wtfpl/
*
*/
!function(a){"use strict";a.fn.fitVids=function(b){var c={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var d=document.head||document.getElementsByTagName("head")[0],e=".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",f=document.createElement("div");f.innerHTML='<p>x</p><style id="fit-vids-style">'+e+"</style>",d.appendChild(f.childNodes[1])}return b&&a.extend(c,b),this.each(function(){var b=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];c.customSelector&&b.push(c.customSelector);var d=".fitvidsignore";c.ignore&&(d=d+", "+c.ignore);var e=a(this).find(b.join(","));e=e.not("object object"),e=e.not(d),e.each(function(){var b=a(this);if(!(b.parents(d).length>0||"embed"===this.tagName.toLowerCase()&&b.parent("object").length||b.parent(".fluid-width-video-wrapper").length)){b.css("height")||b.css("width")||!isNaN(b.attr("height"))&&!isNaN(b.attr("width"))||(b.attr("height",9),b.attr("width",16));var c="object"===this.tagName.toLowerCase()||b.attr("height")&&!isNaN(parseInt(b.attr("height"),10))?parseInt(b.attr("height"),10):b.height(),e=isNaN(parseInt(b.attr("width"),10))?b.width():parseInt(b.attr("width"),10),f=c/e;if(!b.attr("name")){var g="fitvid"+a.fn.fitVids._count;b.attr("name",g),a.fn.fitVids._count++}b.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*f+"%"),b.removeAttr("height").removeAttr("width")}})})},a.fn.fitVids._count=0}(window.jQuery||window.Zepto);
/*!
 *  Sharrre.com - Make your sharing widget!
 *  Version: beta 1.3.5
 *  Author: Julien Hany
 *  License: MIT https://en.wikipedia.org/wiki/MIT_License or GPLv2 https://en.wikipedia.org/wiki/GNU_General_Public_License
 */
!function(a,b,c,d){function f(b,c){this.element=b,this.options=a.extend(!0,{},h,c),this.options.share=c.share,this._defaults=h,this._name=g,this.init()}var g="sharrre",h={className:"sharrre",share:{googlePlus:!1,facebook:!1,twitter:!1,digg:!1,delicious:!1,stumbleupon:!1,linkedin:!1,pinterest:!1},shareTotal:0,template:"",title:"",url:c.location.href,text:c.title,urlCurl:"sharrre.php",count:{},total:0,shorterTotal:!0,enableHover:!0,enableCounter:!0,enableTracking:!1,hover:function(){},hide:function(){},click:function(){},render:function(){},buttons:{googlePlus:{url:"",urlCount:!1,size:"medium",lang:"en-US",annotation:""},facebook:{url:"",urlCount:!1,action:"like",layout:"button_count",width:"",send:"false",faces:"false",colorscheme:"",font:"",lang:"en_US"},twitter:{url:"",urlCount:!1,count:"horizontal",hashtags:"",via:"",related:"",lang:"en"},digg:{url:"",urlCount:!1,type:"DiggCompact"},delicious:{url:"",urlCount:!1,size:"medium"},stumbleupon:{url:"",urlCount:!1,layout:"1"},linkedin:{url:"",urlCount:!1,counter:""},pinterest:{url:"",media:"",description:"",layout:"horizontal"}}},i={googlePlus:"",facebook:"https://graph.facebook.com/fql?q=SELECT%20url,%20normalized_url,%20share_count,%20like_count,%20comment_count,%20total_count,commentsbox_count,%20comments_fbid,%20click_count%20FROM%20link_stat%20WHERE%20url=%27{url}%27&callback=?",twitter:"https://cdn.api.twitter.com/1/urls/count.json?url={url}&callback=?",digg:"https://services.digg.com/2.0/story.getInfo?links={url}&type=javascript&callback=?",delicious:"https://feeds.delicious.com/v2/json/urlinfo/data?url={url}&callback=?",stumbleupon:"",linkedin:"https://www.linkedin.com/countserv/count/share?format=jsonp&url={url}&callback=?",pinterest:"https://api.pinterest.com/v1/urls/count.json?url={url}&callback=?"},j={googlePlus:function(d){var e=d.options.buttons.googlePlus;a(d.element).find(".buttons").append('<div class="button googleplus"><div class="g-plusone" data-size="'+e.size+'" data-href="'+(""!==e.url?e.url:d.options.url)+'" data-annotation="'+e.annotation+'"></div></div>'),b.___gcfg={lang:d.options.buttons.googlePlus.lang};var f=0;"undefined"==typeof gapi&&0==f?(f=1,function(){var a=c.createElement("script");a.type="text/javascript",a.async=!0,a.src="//apis.google.com/js/plusone.js";var b=c.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}()):gapi.plusone.go()},facebook:function(b){var d=b.options.buttons.facebook;a(b.element).find(".buttons").append('<div class="button facebook"><div id="fb-root"></div><div class="fb-like" data-href="'+(""!==d.url?d.url:b.options.url)+'" data-send="'+d.send+'" data-layout="'+d.layout+'" data-width="'+d.width+'" data-show-faces="'+d.faces+'" data-action="'+d.action+'" data-colorscheme="'+d.colorscheme+'" data-font="'+d.font+'" data-via="'+d.via+'"></div></div>');var e=0;"undefined"==typeof FB&&0==e?(e=1,function(a,b,c){var e,f=a.getElementsByTagName(b)[0];a.getElementById(c)||(e=a.createElement(b),e.id=c,e.src="//connect.facebook.net/"+d.lang+"/all.js#xfbml=1",f.parentNode.insertBefore(e,f))}(c,"script","facebook-jssdk")):FB.XFBML.parse()},twitter:function(b){var d=b.options.buttons.twitter;a(b.element).find(".buttons").append('<div class="button twitter"><a href="https://twitter.com/share" class="twitter-share-button" data-url="'+(""!==d.url?d.url:b.options.url)+'" data-count="'+d.count+'" data-text="'+b.options.text+'" data-via="'+d.via+'" data-hashtags="'+d.hashtags+'" data-related="'+d.related+'" data-lang="'+d.lang+'">Tweet</a></div>');var e=0;"undefined"==typeof twttr&&0==e?(e=1,function(){var a=c.createElement("script");a.type="text/javascript",a.async=!0,a.src="//platform.twitter.com/widgets.js";var b=c.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}()):a.ajax({url:"//platform.twitter.com/widgets.js",dataType:"script",cache:!0})},digg:function(b){var d=b.options.buttons.digg;a(b.element).find(".buttons").append('<div class="button digg"><a class="DiggThisButton '+d.type+'" rel="nofollow external" href="https://digg.com/submit?url='+encodeURIComponent(""!==d.url?d.url:b.options.url)+'"></a></div>');var e=0;"undefined"==typeof __DBW&&0==e&&(e=1,function(){var a=c.createElement("SCRIPT"),b=c.getElementsByTagName("SCRIPT")[0];a.type="text/javascript",a.async=!0,a.src="//widgets.digg.com/buttons.js",b.parentNode.insertBefore(a,b)}())},delicious:function(b){if("tall"==b.options.buttons.delicious.size)var c="width:50px;",d="height:35px;width:50px;font-size:15px;line-height:35px;",e="height:18px;line-height:18px;margin-top:3px;";else var c="width:93px;",d="float:right;padding:0 3px;height:20px;width:26px;line-height:20px;",e="float:left;height:20px;line-height:20px;";var f=b.shorterTotal(b.options.count.delicious);"undefined"==typeof f&&(f=0),a(b.element).find(".buttons").append('<div class="button delicious"><div style="'+c+'font:12px Arial,Helvetica,sans-serif;cursor:pointer;color:#666666;display:inline-block;float:none;height:20px;line-height:normal;margin:0;padding:0;text-indent:0;vertical-align:baseline;"><div style="'+d+'background-color:#fff;margin-bottom:5px;overflow:hidden;text-align:center;border:1px solid #ccc;border-radius:3px;">'+f+'</div><div style="'+e+'display:block;padding:0;text-align:center;text-decoration:none;width:50px;background-color:#7EACEE;border:1px solid #40679C;border-radius:3px;color:#fff;"><img src="https://www.delicious.com/static/img/delicious.small.gif" height="10" width="10" alt="Delicious" /> Add</div></div></div>'),a(b.element).find(".delicious").on("click",function(){b.openPopup("delicious")})},stumbleupon:function(d){var e=d.options.buttons.stumbleupon;a(d.element).find(".buttons").append('<div class="button stumbleupon"><su:badge layout="'+e.layout+'" location="'+(""!==e.url?e.url:d.options.url)+'"></su:badge></div>');var f=0;"undefined"==typeof STMBLPN&&0==f?(f=1,function(){var a=c.createElement("script");a.type="text/javascript",a.async=!0,a.src="//platform.stumbleupon.com/1/widgets.js";var b=c.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}(),s=b.setTimeout(function(){"undefined"!=typeof STMBLPN&&(STMBLPN.processWidgets(),clearInterval(s))},500)):STMBLPN.processWidgets()},linkedin:function(d){var e=d.options.buttons.linkedin;a(d.element).find(".buttons").append('<div class="button linkedin"><script type="in/share" data-url="'+(""!==e.url?e.url:d.options.url)+'" data-counter="'+e.counter+'"></script></div>');var f=0;"undefined"==typeof b.IN&&0==f?(f=1,function(){var a=c.createElement("script");a.type="text/javascript",a.async=!0,a.src="//platform.linkedin.com/in.js";var b=c.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}()):b.IN.init()},pinterest:function(b){var d=b.options.buttons.pinterest;a(b.element).find(".buttons").append('<div class="button pinterest"><a href="https://pinterest.com/pin/create/button/?url='+(""!==d.url?d.url:b.options.url)+"&media="+d.media+"&description="+d.description+'" class="pin-it-button" count-layout="'+d.layout+'">Pin It</a></div>'),function(){var a=c.createElement("script");a.type="text/javascript",a.async=!0,a.src="//assets.pinterest.com/js/pinit.js";var b=c.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}()}},k={googlePlus:function(){},facebook:function(){fb=b.setInterval(function(){"undefined"!=typeof FB&&(FB.Event.subscribe("edge.create",function(a){_gaq.push(["_trackSocial","facebook","like",a])}),FB.Event.subscribe("edge.remove",function(a){_gaq.push(["_trackSocial","facebook","unlike",a])}),FB.Event.subscribe("message.send",function(a){_gaq.push(["_trackSocial","facebook","send",a])}),clearInterval(fb))},1e3)},twitter:function(){tw=b.setInterval(function(){"undefined"!=typeof twttr&&(twttr.events.bind("tweet",function(a){a&&_gaq.push(["_trackSocial","twitter","tweet"])}),clearInterval(tw))},1e3)},digg:function(){},delicious:function(){},stumbleupon:function(){},linkedin:function(){},pinterest:function(){}},l={googlePlus:function(a){b.open("https://plus.google.com/share?hl="+a.buttons.googlePlus.lang+"&url="+encodeURIComponent(""!==a.buttons.googlePlus.url?a.buttons.googlePlus.url:a.url),"","toolbar=0, status=0, width=900, height=500")},facebook:function(a){b.open("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(""!==a.buttons.facebook.url?a.buttons.facebook.url:a.url)+"&t="+a.text,"","toolbar=0, status=0, width=900, height=500")},twitter:function(a){b.open("https://twitter.com/intent/tweet?text="+encodeURIComponent(a.text)+"&url="+encodeURIComponent(""!==a.buttons.twitter.url?a.buttons.twitter.url:a.url)+(""!==a.buttons.twitter.via?"&via="+a.buttons.twitter.via:""),"","toolbar=0, status=0, width=650, height=360")},digg:function(a){b.open("https://digg.com/tools/diggthis/submit?url="+encodeURIComponent(""!==a.buttons.digg.url?a.buttons.digg.url:a.url)+"&title="+a.text+"&related=true&style=true","","toolbar=0, status=0, width=650, height=360")},delicious:function(a){b.open("https://www.delicious.com/save?v=5&noui&jump=close&url="+encodeURIComponent(""!==a.buttons.delicious.url?a.buttons.delicious.url:a.url)+"&title="+a.text,"delicious","toolbar=no,width=550,height=550")},stumbleupon:function(a){b.open("https://www.stumbleupon.com/badge/?url="+encodeURIComponent(""!==a.buttons.stumbleupon.url?a.buttons.stumbleupon.url:a.url),"stumbleupon","toolbar=no,width=550,height=550")},linkedin:function(a){b.open("https://www.linkedin.com/cws/share?url="+encodeURIComponent(""!==a.buttons.linkedin.url?a.buttons.linkedin.url:a.url)+"&token=&isFramed=true","linkedin","toolbar=no,width=550,height=550")},pinterest:function(a){b.open("https://pinterest.com/pin/create/button/?url="+encodeURIComponent(""!==a.buttons.pinterest.url?a.buttons.pinterest.url:a.url)+"&media="+encodeURIComponent(a.buttons.pinterest.media)+"&description="+a.buttons.pinterest.description,"pinterest","toolbar=no,width=700,height=300")}};f.prototype.init=function(){var b=this;""!==this.options.urlCurl&&(i.googlePlus=this.options.urlCurl+"?url={url}&type=googlePlus",i.stumbleupon=this.options.urlCurl+"?url={url}&type=stumbleupon"),a(this.element).addClass(this.options.className),"undefined"!=typeof a(this.element).data("title")&&(this.options.title=a(this.element).attr("data-title")),"undefined"!=typeof a(this.element).data("url")&&(this.options.url=a(this.element).data("url")),"undefined"!=typeof a(this.element).data("text")&&(this.options.text=a(this.element).data("text")),a.each(this.options.share,function(a,c){c===!0&&b.options.shareTotal++}),b.options.enableCounter===!0?a.each(this.options.share,function(a,c){if(c===!0)try{b.getSocialJson(a)}catch(d){}}):""!==b.options.template?this.options.render(this,this.options):this.loadButtons(),a(this.element).hover(function(){0===a(this).find(".buttons").length&&b.options.enableHover===!0&&b.loadButtons(),b.options.hover(b,b.options)},function(){b.options.hide(b,b.options)}),a(this.element).click(function(){return b.options.click(b,b.options),!1})},f.prototype.loadButtons=function(){var b=this;a(this.element).append('<div class="buttons"></div>'),a.each(b.options.share,function(a,c){1==c&&(j[a](b),b.options.enableTracking===!0&&k[a]())})},f.prototype.getSocialJson=function(b){var c=this,d=0,e=i[b].replace("{url}",encodeURIComponent(this.options.url));this.options.buttons[b].urlCount===!0&&""!==this.options.buttons[b].url&&(e=i[b].replace("{url}",this.options.buttons[b].url)),""!=e&&""!==c.options.urlCurl?a.getJSON(e,function(a){if("undefined"!=typeof a.count){var e=a.count+"";e=e.replace("Â ",""),d+=parseInt(e,10)}else a.data&&a.data.length>0&&"undefined"!=typeof a.data[0].total_count?d+=parseInt(a.data[0].total_count,10):"undefined"!=typeof a[0]?d+=parseInt(a[0].total_posts,10):"undefined"!=typeof a[0];c.options.count[b]=d,c.options.total+=d,c.renderer(),c.rendererPerso()}).error(function(){c.options.count[b]=0,c.rendererPerso()}):(c.renderer(),c.options.count[b]=0,c.rendererPerso())},f.prototype.rendererPerso=function(){var a=0;for(e in this.options.count)a++;a===this.options.shareTotal&&this.options.render(this,this.options)},f.prototype.renderer=function(){var b=this.options.total,c=this.options.template;this.options.shorterTotal===!0&&(b=this.shorterTotal(b)),""!==c?(c=c.replace("{total}",b),a(this.element).html(c)):a(this.element).html('<div class="box"><a class="count" href="#">'+b+"</a>"+(""!==this.options.title?'<a class="share" href="#">'+this.options.title+"</a>":"")+"</div>")},f.prototype.shorterTotal=function(a){return a>=1e6?a=(a/1e6).toFixed(2)+"M":a>=1e3&&(a=(a/1e3).toFixed(1)+"k"),a},f.prototype.openPopup=function(a){if(l[a](this.options),this.options.enableTracking===!0){var b={googlePlus:{site:"Google",action:"+1"},facebook:{site:"facebook",action:"like"},twitter:{site:"twitter",action:"tweet"},digg:{site:"digg",action:"add"},delicious:{site:"delicious",action:"add"},stumbleupon:{site:"stumbleupon",action:"add"},linkedin:{site:"linkedin",action:"share"},pinterest:{site:"pinterest",action:"pin"}};_gaq.push(["_trackSocial",b[a].site,b[a].action])}},f.prototype.simulateClick=function(){var b=a(this.element).html();a(this.element).html(b.replace(this.options.total,this.options.total+1))},f.prototype.update=function(a,b){""!==a&&(this.options.url=a),""!==b&&(this.options.text=b)},a.fn[g]=function(b){var c=arguments;return b===d||"object"==typeof b?this.each(function(){a.data(this,"plugin_"+g)||a.data(this,"plugin_"+g,new f(this,b))}):"string"==typeof b&&"_"!==b[0]&&"init"!==b?this.each(function(){var d=a.data(this,"plugin_"+g);d instanceof f&&"function"==typeof d[b]&&d[b].apply(d,Array.prototype.slice.call(c,1))}):void 0}}(jQuery,window,document);
/*!
 * Theia Sticky Sidebar v1.7.0
 * https://github.com/WeCodePixels/theia-sticky-sidebar
 *
 * Glues your website's sidebars, making them permanently visible while scrolling.
 *
 * Copyright 2013-2016 WeCodePixels and other contributors
 * Released under the MIT license
 */
!function(a){a.fn.theiaStickySidebar=function(b){function c(b,c){var e=d(b,c);e||(console.log("TSS: Body width smaller than options.minWidth. Init is delayed."),a(document).on("scroll."+b.namespace,function(b,c){return function(e){var f=d(b,c);f&&a(this).unbind(e)}}(b,c)),a(window).on("resize."+b.namespace,function(b,c){return function(e){var f=d(b,c);f&&a(this).unbind(e)}}(b,c)))}function d(b,c){return b.initialized===!0||!(a("body").width()<b.minWidth)&&(e(b,c),!0)}function e(b,c){b.initialized=!0;var d=a("#theia-sticky-sidebar-stylesheet-"+b.namespace);0===d.length&&a("head").append(a('<style id="theia-sticky-sidebar-stylesheet-'+b.namespace+'">.theiaStickySidebar:after {content: ""; display: table; clear: both;}</style>')),c.each(function(){function c(){e.fixedScrollTop=0,e.sidebar.css({"min-height":"1px"}),e.stickySidebar.css({position:"static",width:"",transform:"none"})}function d(b){var c=b.height();return b.children().each(function(){c=Math.max(c,a(this).height())}),c}var e={};if(e.sidebar=a(this),e.options=b||{},e.container=a(e.options.containerSelector),0==e.container.length&&(e.container=e.sidebar.parent()),e.sidebar.parents().css("-webkit-transform","none"),e.sidebar.css({position:e.options.defaultPosition,overflow:"visible","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","box-sizing":"border-box"}),e.stickySidebar=e.sidebar.find(".theiaStickySidebar"),0==e.stickySidebar.length){var g=/(?:text|application)\/(?:x-)?(?:javascript|ecmascript)/i;e.sidebar.find("script").filter(function(a,b){return 0===b.type.length||b.type.match(g)}).remove(),e.stickySidebar=a("<div>").addClass("theiaStickySidebar").append(e.sidebar.children()),e.sidebar.append(e.stickySidebar)}e.marginBottom=parseInt(e.sidebar.css("margin-bottom")),e.paddingTop=parseInt(e.sidebar.css("padding-top")),e.paddingBottom=parseInt(e.sidebar.css("padding-bottom"));var h=e.stickySidebar.offset().top,i=e.stickySidebar.outerHeight();e.stickySidebar.css("padding-top",1),e.stickySidebar.css("padding-bottom",1),h-=e.stickySidebar.offset().top,i=e.stickySidebar.outerHeight()-i-h,0==h?(e.stickySidebar.css("padding-top",0),e.stickySidebarPaddingTop=0):e.stickySidebarPaddingTop=1,0==i?(e.stickySidebar.css("padding-bottom",0),e.stickySidebarPaddingBottom=0):e.stickySidebarPaddingBottom=1,e.previousScrollTop=null,e.fixedScrollTop=0,c(),e.onScroll=function(e){if(e.stickySidebar.is(":visible")){if(a("body").width()<e.options.minWidth)return void c();if(e.options.disableOnResponsiveLayouts){var g=e.sidebar.outerWidth("none"==e.sidebar.css("float"));if(g+50>e.container.width())return void c()}var h=a(document).scrollTop(),i="static";if(h>=e.sidebar.offset().top+(e.paddingTop-e.options.additionalMarginTop)){var j,k=e.paddingTop+b.additionalMarginTop,l=e.paddingBottom+e.marginBottom+b.additionalMarginBottom,m=e.sidebar.offset().top,n=e.sidebar.offset().top+d(e.container),o=0+b.additionalMarginTop,p=e.stickySidebar.outerHeight()+k+l<a(window).height();j=p?o+e.stickySidebar.outerHeight():a(window).height()-e.marginBottom-e.paddingBottom-b.additionalMarginBottom;var q=m-h+e.paddingTop,r=n-h-e.paddingBottom-e.marginBottom,s=e.stickySidebar.offset().top-h,t=e.previousScrollTop-h;"fixed"==e.stickySidebar.css("position")&&"modern"==e.options.sidebarBehavior&&(s+=t),"stick-to-top"==e.options.sidebarBehavior&&(s=b.additionalMarginTop),"stick-to-bottom"==e.options.sidebarBehavior&&(s=j-e.stickySidebar.outerHeight()),s=t>0?Math.min(s,o):Math.max(s,j-e.stickySidebar.outerHeight()),s=Math.max(s,q),s=Math.min(s,r-e.stickySidebar.outerHeight());var u=e.container.height()==e.stickySidebar.outerHeight();i=(u||s!=o)&&(u||s!=j-e.stickySidebar.outerHeight())?h+s-e.sidebar.offset().top-e.paddingTop<=b.additionalMarginTop?"static":"absolute":"fixed"}if("fixed"==i){var v=a(document).scrollLeft();e.stickySidebar.css({position:"fixed",width:f(e.stickySidebar)+"px",transform:"translateY("+s+"px)",left:e.sidebar.offset().left+parseInt(e.sidebar.css("padding-left"))-v+"px",top:"0px"})}else if("absolute"==i){var w={};"absolute"!=e.stickySidebar.css("position")&&(w.position="absolute",w.transform="translateY("+(h+s-e.sidebar.offset().top-e.stickySidebarPaddingTop-e.stickySidebarPaddingBottom)+"px)",w.top="0px"),w.width=f(e.stickySidebar)+"px",w.left="",e.stickySidebar.css(w)}else"static"==i&&c();"static"!=i&&1==e.options.updateSidebarHeight&&e.sidebar.css({"min-height":e.stickySidebar.outerHeight()+e.stickySidebar.offset().top-e.sidebar.offset().top+e.paddingBottom}),e.previousScrollTop=h}},e.onScroll(e),a(document).on("scroll."+e.options.namespace,function(a){return function(){a.onScroll(a)}}(e)),a(window).on("resize."+e.options.namespace,function(a){return function(){a.stickySidebar.css({position:"static"}),a.onScroll(a)}}(e)),"undefined"!=typeof ResizeSensor&&new ResizeSensor(e.stickySidebar[0],function(a){return function(){a.onScroll(a)}}(e))})}function f(a){var b;try{b=a[0].getBoundingClientRect().width}catch(c){}return"undefined"==typeof b&&(b=a.width()),b}var g={containerSelector:"",additionalMarginTop:0,additionalMarginBottom:0,updateSidebarHeight:!0,minWidth:0,disableOnResponsiveLayouts:!0,sidebarBehavior:"modern",defaultPosition:"relative",namespace:"TSS"};return b=a.extend(g,b),b.additionalMarginTop=parseInt(b.additionalMarginTop)||0,b.additionalMarginBottom=parseInt(b.additionalMarginBottom)||0,c(b,this),this}}(jQuery);
!function(){var a=function(b,c){function d(){this.q=[],this.add=function(a){this.q.push(a)};var a,b;this.call=function(){for(a=0,b=this.q.length;a<b;a++)this.q[a].call()}}function e(a,b){return a.currentStyle?a.currentStyle[b]:window.getComputedStyle?window.getComputedStyle(a,null).getPropertyValue(b):a.style[b]}function f(a,b){if(a.resizedAttached){if(a.resizedAttached)return void a.resizedAttached.add(b)}else a.resizedAttached=new d,a.resizedAttached.add(b);a.resizeSensor=document.createElement("div"),a.resizeSensor.className="resize-sensor";var c="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;",f="position: absolute; left: 0; top: 0; transition: 0s;";a.resizeSensor.style.cssText=c,a.resizeSensor.innerHTML='<div class="resize-sensor-expand" style="'+c+'"><div style="'+f+'"></div></div><div class="resize-sensor-shrink" style="'+c+'"><div style="'+f+' width: 200%; height: 200%"></div></div>',a.appendChild(a.resizeSensor),{fixed:1,absolute:1}[e(a,"position")]||(a.style.position="relative");var g,h,i=a.resizeSensor.childNodes[0],j=i.childNodes[0],k=a.resizeSensor.childNodes[1],l=(k.childNodes[0],function(){j.style.width=i.offsetWidth+10+"px",j.style.height=i.offsetHeight+10+"px",i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,k.scrollLeft=k.scrollWidth,k.scrollTop=k.scrollHeight,g=a.offsetWidth,h=a.offsetHeight});l();var m=function(){a.resizedAttached&&a.resizedAttached.call()},n=function(a,b,c){a.attachEvent?a.attachEvent("on"+b,c):a.addEventListener(b,c)},o=function(){a.offsetWidth==g&&a.offsetHeight==h||m(),l()};n(i,"scroll",o),n(k,"scroll",o)}var g=Object.prototype.toString.call(b),h="[object Array]"===g||"[object NodeList]"===g||"[object HTMLCollection]"===g||"undefined"!=typeof jQuery&&b instanceof jQuery||"undefined"!=typeof Elements&&b instanceof Elements;if(h)for(var i=0,j=b.length;i<j;i++)f(b[i],c);else f(b,c);this.detach=function(){if(h)for(var c=0,d=b.length;c<d;c++)a.detach(b[c]);else a.detach(b)}};a.detach=function(a){a.resizeSensor&&(a.removeChild(a.resizeSensor),delete a.resizeSensor,delete a.resizedAttached)},"undefined"!=typeof module&&"undefined"!=typeof module.exports?module.exports=a:window.ResizeSensor=a}();
!function(){var a=/(trident|msie)/i.test(navigator.userAgent);a&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var a,b=location.hash.substring(1);/^[A-z0-9_-]+$/.test(b)&&(a=document.getElementById(b),a&&(/^(?:a|select|input|button|textarea)$/i.test(a.tagName)||(a.tabIndex=-1),a.focus()))},!1)}();
jQuery(document).ready(function(){function a(a){a.find(".player-frame").each(function(){var a=jQuery(this),b=jQuery("[data-id='"+a.attr("id")+"']");a.addVideoEvent("play",function(a,c,d){b.removeClass("is-paused").addClass("is-playing")}),a.addVideoEvent("pause",function(a,c,d){b.removeClass("is-playing").addClass("is-paused")}),a.addVideoEvent("finish",function(a,c,d){b.removeClass("is-paused is-playing")})})}function b(){var a=parseFloat(colormag_google_maps_widget_settings.longitude),b=parseFloat(colormag_google_maps_widget_settings.latitude),c=parseInt(colormag_google_maps_widget_settings.zoom_size),d={lat:b,lng:a},e=new google.maps.Map(document.getElementById("GoogleMaps"),{zoom:c,center:d});new google.maps.Marker({position:d,map:e})}var c=function(){jQuery("#masthead .search-form-top").removeClass("show")};if(jQuery(".search-top").click(function(){jQuery(this).next("#masthead .search-form-top").toggleClass("show"),setTimeout(function(){jQuery("#masthead .search-form-top input").focus()},200),jQuery(document).on("keyup",function(a){27===a.keyCode&&jQuery("#masthead .search-form-top").hasClass("show")&&c()}),jQuery(document).on("click.outEvent",function(a){a.target.closest(".top-search-wrap")||(c(),jQuery(document).off("click.outEvent"))})}),jQuery(".menu-primary-container .menu-item-has-children").append('<span class="sub-toggle"> <i class="fa fa-angle-right"></i> </span>'),jQuery(".menu-primary-container .sub-toggle").click(function(){jQuery(this).parent(".menu-item-has-children").children("ul.sub-menu").first().slideToggle("1000"),jQuery(this).children(".fa-angle-right").first().toggleClass("fa-angle-down")}),jQuery("#scroll-up").hide(),jQuery(window).scroll(function(){jQuery(this).scrollTop()>1e3?jQuery("#scroll-up").fadeIn():jQuery("#scroll-up").fadeOut()}),jQuery("a#scroll-up").click(function(){return jQuery("body,html").animate({scrollTop:0},800),!1}),"undefined"!=typeof jQuery.fn.sticky){var d=jQuery("#wpadminbar");d.length?jQuery("#site-navigation").sticky({topSpacing:d.height(),zIndex:999}):jQuery("#site-navigation").sticky({topSpacing:0,zIndex:999})}if("undefined"!=typeof jQuery.fn.easytabs&&jQuery(".tabbed-widget").easytabs(),"undefined"!=typeof jQuery.fn.fitVids&&jQuery(".fitvids-video").fitVids(),"undefined"!=typeof jQuery.fn.magnificPopup&&(jQuery(".image-popup").magnificPopup({type:"image"}),jQuery(".gallery").find('a[href*=".jpg"], a[href*=".jpeg"], a[href*=".png"], a[href*=".gif"], a[href*=".ico"]').magnificPopup({type:"image",gallery:{enabled:!0}}),jQuery(".colormag-ticker-news-popup-link").magnificPopup({type:"ajax",callbacks:{parseAjax:function(a){var b=jQuery.magnificPopup.instance,c=jQuery(b.currItem.el[0]),d=c.data("fragment");a.data=jQuery(a.data).find(d)}}})),"undefined"!=typeof jQuery.fn.newsTicker){if("undefined"!=typeof colormag_ticker_settings){var e=colormag_ticker_settings.breaking_news_slide_effect,f=parseInt(colormag_ticker_settings.breaking_news_duration,10),g=parseInt(colormag_ticker_settings.breaking_news_speed,10);jQuery(".newsticker").newsTicker({row_height:20,max_rows:1,direction:e,speed:g,duration:f,autostart:1,pauseOnHover:1,start:function(){jQuery(".newsticker").css("visibility","visible")}})}var h=function(a,b,c,d,e,f,g){jQuery(a).newsTicker({row_height:f,max_rows:g,duration:e,direction:d,prevButton:jQuery(b),nextButton:jQuery(c),start:function(){jQuery(".breaking-news-widget-slide").css("visibility","visible")}})},i=jQuery(".breaking_news_widget_inner_wrap");jQuery(i).each(function(){var a=jQuery(this).children(".breaking-news-widget-slide"),b=jQuery(this).children(".fa-arrow-up"),c=jQuery(this).children(".fa-arrow-down"),d=jQuery(this).children(".breaking-news-widget-slide").data("direction"),e=jQuery(this).children(".breaking-news-widget-slide").data("duration"),f=jQuery(this).children(".breaking-news-widget-slide").data("rowheight"),g=jQuery(this).children(".breaking-news-widget-slide").data("maxrows");h(a,b,c,d,e,f,g)})}if("undefined"!=typeof jQuery.fn.bxSlider){var j=function(a,b,c,d,e,f){jQuery(a).bxSlider({mode:b,speed:c,auto:e,pause:d,autoHover:f,adaptiveHeight:!0,nextText:'<div class="category-slide-next"><i class="fa fa-angle-right"></i></div>',prevText:'<div class="category-slide-prev"><i class="fa fa-angle-left"></i></div>',pager:!1,tickerHover:!0,onSliderLoad:function(){jQuery(".widget_slider_area_rotate").css("visibility","visible"),jQuery(".widget_slider_area_rotate").css("height","auto")}})},k=jQuery(".widget_featured_slider_inner_wrap");jQuery(k).each(function(){var a=jQuery(this).children(".widget_slider_area_rotate"),b=jQuery(this).children(".widget_slider_area_rotate").data("mode"),c=jQuery(this).children(".widget_slider_area_rotate").data("speed"),d=jQuery(this).children(".widget_slider_area_rotate").data("pause"),e=jQuery(this).children(".widget_slider_area_rotate").data("auto"),f=jQuery(this).children(".widget_slider_area_rotate").data("hover");j(a,b,c,d,e,f)});var l=function(a,b,c,d,e){jQuery(a).bxSlider({minSlides:1,maxSlides:2,slideWidth:390,slideMargin:20,speed:b,pause:c,auto:d,autoHover:e,adaptiveHeight:!0,nextText:'<div class="slide-next"><i class="fa fa-angle-right"></i></div>',prevText:'<div class="slide-prev"><i class="fa fa-angle-left"></i></div>',pager:!1,captions:!1,onSliderLoad:function(){jQuery(".widget_block_picture_news .widget_highlighted_post_area").css("visibility","visible"),jQuery(".widget_block_picture_news .widget_highlighted_post_area").css("height","auto")}})},m=jQuery(".widget_block_picture_news_inner_wrap");jQuery(m).each(function(){var a=jQuery(this).children(".widget_block_picture_news .widget_highlighted_post_area"),b=jQuery(this).children(".widget_block_picture_news .widget_highlighted_post_area").data("speed"),c=jQuery(this).children(".widget_block_picture_news .widget_highlighted_post_area").data("pause"),d=jQuery(this).children(".widget_block_picture_news .widget_highlighted_post_area").data("auto"),e=jQuery(this).children(".widget_block_picture_news .widget_highlighted_post_area").data("hover");l(a,b,c,d,e)});var n=function(a,b,c,d,e,f,g){jQuery(a).bxSlider({mode:c,speed:d,pause:e,auto:f,pagerCustom:b,autoHover:g,controls:!1,nextText:"",prevText:"",nextSelector:"",prevSelector:"",captions:!1,onSliderLoad:function(){jQuery(".thumbnail-big-sliders").css("visibility","visible"),jQuery(".thumbnail-big-sliders").css("height","auto")}})},o=jQuery(".thumbnail-slider-news");jQuery(o).each(function(){var a=jQuery(this).children(".thumbnail-big-sliders"),b=jQuery(this).children(".thumbnail-slider"),c=jQuery(this).children(".thumbnail-big-sliders").data("mode"),d=jQuery(this).children(".thumbnail-big-sliders").data("speed"),e=jQuery(this).children(".thumbnail-big-sliders").data("pause"),f=jQuery(this).children(".thumbnail-big-sliders").data("auto"),g=jQuery(this).children(".thumbnail-big-sliders").data("hover");n(a,b,c,d,e,f,g)});var p=function(a,b){jQuery(a).bxSlider({minSlides:5,maxSlides:8,slideWidth:150,slideMargin:12,ticker:!0,speed:b,tickerHover:!0,useCSS:!1,onSliderLoad:function(){jQuery(".image-ticker-news").css("visibility","visible"),jQuery(".image-ticker-news").css("height","auto")}})},q=jQuery(".widget_ticker_news_colormag");jQuery(q).each(function(){var a=jQuery(this).children(".image-ticker-news"),b=jQuery(this).children(".image-ticker-news").data("speed");p(a,b)}),jQuery(".blog .gallery-images, .archive .gallery-images, .search .gallery-images, .single-post .gallery-images").bxSlider({mode:"fade",speed:1500,auto:!0,pause:3e3,adaptiveHeight:!0,nextText:"",prevText:"",nextSelector:".slide-next",prevSelector:".slide-prev",pager:!1}),jQuery(".related-post-carousel").bxSlider({minSlides:1,maxSlides:2,auto:!0,slideWidth:390,slideMargin:20,moveSlides:1,shrinkItems:!0,speed:3e3,autoHover:!0,nextText:'<div class="slide-next"><i class="fa fa-angle-right"></i></div>',prevText:'<div class="slide-prev"><i class="fa fa-angle-left"></i></div>',pager:!1,captions:!1,onSliderLoad:function(){jQuery(".related-post-carousel").css("visibility","visible"),jQuery(".related-post-carousel").css("height","auto")}})}if("undefined"!=typeof jQuery.fn.theiaStickySidebar&&"undefined"!=typeof ResizeSensor){var r=jQuery("#site-navigation-sticky-wrapper").outerHeight();null===r&&(r=0),jQuery("#primary, #secondary").theiaStickySidebar({additionalMarginTop:40+r})}if("undefined"!=typeof jQuery.fn.headroom){var s,d=jQuery("#wpadminbar"),t=jQuery(".main-navigation").width();s=d.length?d.height()+jQuery("#site-navigation").offset().top:jQuery("#site-navigation").offset().top,jQuery(".main-navigation").headroom({offset:s,tolerance:0,onPin:function(){d.length?jQuery(".main-navigation").css({top:d.height(),position:"fixed",width:t}):jQuery(".main-navigation").css({top:0,position:"fixed",width:t})},onTop:function(){jQuery(".main-navigation").css({top:0,position:"relative"})}})}jQuery(".video-player").each(function(b){var c=jQuery(this),d="video-playlist-item-"+b,e=jQuery(this).find(".player-frame");c.attr("id",d),e.video(),a(c),e.addVideoEvent("ready",function(){e.css("visibility","visible").fadeIn()}),c.on("click",".video-playlist-item",function(){var b=jQuery(this),d=b.data("id"),e=jQuery("#"+d),f=b.data("src");c.find(".player-frame").each(function(){jQuery(this).pauseVideo().hide()}),e.length?e.playVideo():(c.find(".video-frame").append('<iframe id="'+d+'" class="player-frame" src="'+f+'" frameborder="0" width="100%" height="434" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'),e=jQuery("#"+d),e.video(),e.addVideoEvent("ready",function(a,b,c){e.playVideo()})),e.css("visibility","visible").fadeIn(),a(c)})}),"undefined"!=typeof jQuery.fn.prognroll&&jQuery("body").prognroll({height:5,color:colormag_progress_bar_bgcolor.bg_color,custom:!1}),"undefined"!=typeof google&&"undefined"!=typeof colormag_google_maps_widget_settings&&(b(),jQuery("#GoogleMaps").css({height:colormag_google_maps_widget_settings.height})),jQuery(window).load(function(){if(window.matchMedia("(max-width: 768px)").matches&&jQuery("#masthead .sticky-wrapper, #masthead .headroom").length>=1){var a=jQuery(window).height(),b=a-88,c=jQuery("#site-navigation").find("ul").first();c.css("max-height",b),c.addClass("menu-scrollbar")}}),"undefined"!=typeof jQuery.fn.readingTime&&jQuery(".readingtime").each(function(){jQuery(this).readingTime({readingTimeAsNumber:!0,wordsPerMinute:200,round:!0,remotePath:jQuery(this).attr("data-file"),remoteTarget:jQuery(this).attr("data-target"),readingTimeTarget:jQuery(this).find(".eta")})})}),jQuery(document).on("click","#site-navigation ul li.menu-item-has-children > a",function(a){var b=jQuery(this).parent(".menu-item-has-children");!b.hasClass("focus")&&jQuery(window).width()<=768&&(b.addClass("focus"),a.preventDefault(),b.children(".sub-menu").css({display:"block"}))}),jQuery(function(){function a(){var a=(jQuery("#primary").outerHeight(),jQuery(this).scrollTop()+jQuery(this).height()),c=jQuery(document).height()-a;a>c?b.addClass("flyout"):b.removeClass("flyout")}var b=jQuery("#related-posts-wrapper-flyout");jQuery(window).on("scroll",a),jQuery("#flyout-related-post-close").click(function(){b.removeClass("flyout"),jQuery(window).off("scroll",a)})});
jQuery(document).ready(function(){var a=function(a,b,c,d,e,f,g,h,i,j){var k=1,l=colormag_script_vars.no_more_posts,m=b,n=d,o=c,p=e,q=f,r=g,s=h;jQuery(a).on("click",function(){k++,jQuery(j).show(),jQuery(a).attr("disabled",!0);var b={action:"get_ajax_results",tg_nonce:colormag_load_more.tg_nonce,tg_pagenumber:k,tg_category:m,tg_number:n,tg_random:o,tg_child_category:p,tg_tag:q,tg_author:r,tg_type:s};return jQuery.post(colormag_load_more.ajax_url,b,function(b){var c=jQuery(b);c.length?(jQuery(i).append(c),jQuery(j).hide(),jQuery(a).attr("disabled",!1)):(jQuery(j).hide(),jQuery(a).attr("disabled",!0),jQuery(a).html("<p>"+l+"</p>"))}),!1})},b=jQuery(".tg-ajax-btn-wrapper");jQuery(b).each(function(){var b="#"+jQuery(this).children(".tg-front-post-load-more").attr("id"),c=jQuery(this).children(".tg-front-post-load-more").data("category"),d=jQuery(this).children(".tg-front-post-load-more").data("random"),e=jQuery(this).children(".tg-front-post-load-more").data("number"),f=jQuery(this).children(".tg-front-post-load-more").data("child_category"),g=jQuery(this).children(".tg-front-post-load-more").data("tag"),h=jQuery(this).children(".tg-front-post-load-more").data("author"),i=jQuery(this).children(".tg-front-post-load-more").data("type"),j="#"+jQuery(this).children(".tg-append-ajax-datas").attr("id"),k="#"+jQuery(this).find(".waiting").attr("id");a(b,c,d,e,f,g,h,i,j,k)})});
jQuery(document).ready(function(){wp_gallery_custom_links_setup();function addLoadEvent(func){var oldOnload=window.onload;if(typeof window.onload!='function'){window.onload=func}else{window.onload=function(){oldOnload();func()}}}
addLoadEvent(wp_gallery_custom_links_setup)});function wp_gallery_custom_links_setup(){if(jQuery.fn.off){jQuery('.no-lightbox, .no-lightbox img').off('click')}else{jQuery('.no-lightbox, .no-lightbox img').unbind('click')}
jQuery('a.no-lightbox').click(wp_gallery_custom_links_click);if(jQuery.fn.off){jQuery('a.set-target').off('click')}else{jQuery('a.set-target').unbind('click')}
jQuery('a.set-target').click(wp_gallery_custom_links_click)}
function wp_gallery_custom_links_click(){if(!this.target||this.target==''||this.target=='_self')
window.location=this.href;else window.open(this.href,this.target);return!1};
/*!
 * jQuery UI Core 1.11.4
 * https://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 * https://api.jqueryui.com/category/ui-core/
 */
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(a){var e,t,n,i;function r(e,t){var n,i,r,o=e.nodeName.toLowerCase();return"area"===o?(i=(n=e.parentNode).name,!(!e.href||!i||"map"!==n.nodeName.toLowerCase())&&(!!(r=a("img[usemap='#"+i+"']")[0])&&s(r))):(/^(input|select|textarea|button|object)$/.test(o)?!e.disabled:"a"===o&&e.href||t)&&s(e)}function s(e){return a.expr.filters.visible(e)&&!a(e).parents().addBack().filter(function(){return"hidden"===a.css(this,"visibility")}).length}a.ui=a.ui||{},a.extend(a.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),a.fn.extend({scrollParent:function(e){var t=this.css("position"),n="absolute"===t,i=e?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter(function(){var e=a(this);return(!n||"static"!==e.css("position"))&&i.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==t&&r.length?r:a(this[0].ownerDocument||document)},uniqueId:(e=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&a(this).removeAttr("id")})}}),a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(t){return function(e){return!!a.data(e,t)}}):function(e,t,n){return!!a.data(e,n[3])},focusable:function(e){return r(e,!isNaN(a.attr(e,"tabindex")))},tabbable:function(e){var t=a.attr(e,"tabindex"),n=isNaN(t);return(n||0<=t)&&r(e,!n)}}),a("<a>").outerWidth(1).jquery||a.each(["Width","Height"],function(e,n){var r="Width"===n?["Left","Right"]:["Top","Bottom"],i=n.toLowerCase(),o={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};function s(e,t,n,i){return a.each(r,function(){t-=parseFloat(a.css(e,"padding"+this))||0,n&&(t-=parseFloat(a.css(e,"border"+this+"Width"))||0),i&&(t-=parseFloat(a.css(e,"margin"+this))||0)}),t}a.fn["inner"+n]=function(e){return void 0===e?o["inner"+n].call(this):this.each(function(){a(this).css(i,s(this,e)+"px")})},a.fn["outer"+n]=function(e,t){return"number"!=typeof e?o["outer"+n].call(this,e):this.each(function(){a(this).css(i,s(this,e,!0,t)+"px")})}}),a.fn.addBack||(a.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),a("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(a.fn.removeData=(t=a.fn.removeData,function(e){return arguments.length?t.call(this,a.camelCase(e)):t.call(this)})),a.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),a.fn.extend({focus:(i=a.fn.focus,function(t,n){return"number"==typeof t?this.each(function(){var e=this;setTimeout(function(){a(e).focus(),n&&n.call(e)},t)}):i.apply(this,arguments)}),disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.bind(n+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var t,n,i=a(this[0]);i.length&&i[0]!==document;){if(("absolute"===(t=i.css("position"))||"relative"===t||"fixed"===t)&&(n=parseInt(i.css("zIndex"),10),!isNaN(n)&&0!==n))return n;i=i.parent()}return 0}}),a.ui.plugin={add:function(e,t,n){var i,r=a.ui[e].prototype;for(i in n)r.plugins[i]=r.plugins[i]||[],r.plugins[i].push([t,n[i]])},call:function(e,t,n,i){var r,o=e.plugins[t];if(o&&(i||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(r=0;r<o.length;r++)e.options[o[r][0]]&&o[r][1].apply(e.element,n)}}});
/*!
 * jQuery UI Position 1.11.4
 * https://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 * https://api.jqueryui.com/position/
 */
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(I){return function(){I.ui=I.ui||{};var n,H,x=Math.max,T=Math.abs,L=Math.round,o=/left|center|right/,l=/top|center|bottom/,f=/[\+\-]\d+(\.[\d]+)?%?/,s=/^\w+/,h=/%$/,i=I.fn.position;function P(t,i,e){return[parseFloat(t[0])*(h.test(t[0])?i/100:1),parseFloat(t[1])*(h.test(t[1])?e/100:1)]}function D(t,i){return parseInt(I.css(t,i),10)||0}I.position={scrollbarWidth:function(){if(void 0!==n)return n;var t,i,e=I("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=e.children()[0];return I("body").append(e),t=o.offsetWidth,e.css("overflow","scroll"),t===(i=o.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),e=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),o="scroll"===i||"auto"===i&&t.width<t.element[0].scrollWidth;return{width:"scroll"===e||"auto"===e&&t.height<t.element[0].scrollHeight?I.position.scrollbarWidth():0,height:o?I.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=I(t||window),e=I.isWindow(i[0]),o=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:e,isDocument:o,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:e||o?i.width():i.outerWidth(),height:e||o?i.height():i.outerHeight()}}},I.fn.position=function(c){if(!c||!c.of)return i.apply(this,arguments);c=I.extend({},c);var d,a,g,u,m,t,w=I(c.of),W=I.position.getWithinInfo(c.within),v=I.position.getScrollInfo(W),y=(c.collision||"flip").split(" "),b={};return t=function(t){var i=t[0];return 9===i.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:I.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}(w),w[0].preventDefault&&(c.at="left top"),a=t.width,g=t.height,u=t.offset,m=I.extend({},u),I.each(["my","at"],function(){var t,i,e=(c[this]||"").split(" ");1===e.length&&(e=o.test(e[0])?e.concat(["center"]):l.test(e[0])?["center"].concat(e):["center","center"]),e[0]=o.test(e[0])?e[0]:"center",e[1]=l.test(e[1])?e[1]:"center",t=f.exec(e[0]),i=f.exec(e[1]),b[this]=[t?t[0]:0,i?i[0]:0],c[this]=[s.exec(e[0])[0],s.exec(e[1])[0]]}),1===y.length&&(y[1]=y[0]),"right"===c.at[0]?m.left+=a:"center"===c.at[0]&&(m.left+=a/2),"bottom"===c.at[1]?m.top+=g:"center"===c.at[1]&&(m.top+=g/2),d=P(b.at,a,g),m.left+=d[0],m.top+=d[1],this.each(function(){var e,t,f=I(this),s=f.outerWidth(),h=f.outerHeight(),i=D(this,"marginLeft"),o=D(this,"marginTop"),n=s+i+D(this,"marginRight")+v.width,l=h+o+D(this,"marginBottom")+v.height,r=I.extend({},m),p=P(b.my,f.outerWidth(),f.outerHeight());"right"===c.my[0]?r.left-=s:"center"===c.my[0]&&(r.left-=s/2),"bottom"===c.my[1]?r.top-=h:"center"===c.my[1]&&(r.top-=h/2),r.left+=p[0],r.top+=p[1],H||(r.left=L(r.left),r.top=L(r.top)),e={marginLeft:i,marginTop:o},I.each(["left","top"],function(t,i){I.ui.position[y[t]]&&I.ui.position[y[t]][i](r,{targetWidth:a,targetHeight:g,elemWidth:s,elemHeight:h,collisionPosition:e,collisionWidth:n,collisionHeight:l,offset:[d[0]+p[0],d[1]+p[1]],my:c.my,at:c.at,within:W,elem:f})}),c.using&&(t=function(t){var i=u.left-r.left,e=i+a-s,o=u.top-r.top,n=o+g-h,l={target:{element:w,left:u.left,top:u.top,width:a,height:g},element:{element:f,left:r.left,top:r.top,width:s,height:h},horizontal:e<0?"left":0<i?"right":"center",vertical:n<0?"top":0<o?"bottom":"middle"};a<s&&T(i+e)<a&&(l.horizontal="center"),g<h&&T(o+n)<g&&(l.vertical="middle"),x(T(i),T(e))>x(T(o),T(n))?l.important="horizontal":l.important="vertical",c.using.call(this,t,l)}),f.offset(I.extend(r,{using:t}))})},I.ui.position={fit:{left:function(t,i){var e,o=i.within,n=o.isWindow?o.scrollLeft:o.offset.left,l=o.width,f=t.left-i.collisionPosition.marginLeft,s=n-f,h=f+i.collisionWidth-l-n;i.collisionWidth>l?0<s&&h<=0?(e=t.left+s+i.collisionWidth-l-n,t.left+=s-e):t.left=0<h&&s<=0?n:h<s?n+l-i.collisionWidth:n:0<s?t.left+=s:0<h?t.left-=h:t.left=x(t.left-f,t.left)},top:function(t,i){var e,o=i.within,n=o.isWindow?o.scrollTop:o.offset.top,l=i.within.height,f=t.top-i.collisionPosition.marginTop,s=n-f,h=f+i.collisionHeight-l-n;i.collisionHeight>l?0<s&&h<=0?(e=t.top+s+i.collisionHeight-l-n,t.top+=s-e):t.top=0<h&&s<=0?n:h<s?n+l-i.collisionHeight:n:0<s?t.top+=s:0<h?t.top-=h:t.top=x(t.top-f,t.top)}},flip:{left:function(t,i){var e,o,n=i.within,l=n.offset.left+n.scrollLeft,f=n.width,s=n.isWindow?n.scrollLeft:n.offset.left,h=t.left-i.collisionPosition.marginLeft,r=h-s,p=h+i.collisionWidth-f-s,c="left"===i.my[0]?-i.elemWidth:"right"===i.my[0]?i.elemWidth:0,d="left"===i.at[0]?i.targetWidth:"right"===i.at[0]?-i.targetWidth:0,a=-2*i.offset[0];r<0?((e=t.left+c+d+a+i.collisionWidth-f-l)<0||e<T(r))&&(t.left+=c+d+a):0<p&&(0<(o=t.left-i.collisionPosition.marginLeft+c+d+a-s)||T(o)<p)&&(t.left+=c+d+a)},top:function(t,i){var e,o,n=i.within,l=n.offset.top+n.scrollTop,f=n.height,s=n.isWindow?n.scrollTop:n.offset.top,h=t.top-i.collisionPosition.marginTop,r=h-s,p=h+i.collisionHeight-f-s,c="top"===i.my[1]?-i.elemHeight:"bottom"===i.my[1]?i.elemHeight:0,d="top"===i.at[1]?i.targetHeight:"bottom"===i.at[1]?-i.targetHeight:0,a=-2*i.offset[1];r<0?((o=t.top+c+d+a+i.collisionHeight-f-l)<0||o<T(r))&&(t.top+=c+d+a):0<p&&(0<(e=t.top-i.collisionPosition.marginTop+c+d+a-s)||T(e)<p)&&(t.top+=c+d+a)}},flipfit:{left:function(){I.ui.position.flip.left.apply(this,arguments),I.ui.position.fit.left.apply(this,arguments)},top:function(){I.ui.position.flip.top.apply(this,arguments),I.ui.position.fit.top.apply(this,arguments)}}},function(){var t,i,e,o,n,l=document.getElementsByTagName("body")[0],f=document.createElement("div");for(n in t=document.createElement(l?"div":"body"),e={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},l&&I.extend(e,{position:"absolute",left:"-1000px",top:"-1000px"}),e)t.style[n]=e[n];t.appendChild(f),(i=l||document.documentElement).insertBefore(t,i.firstChild),f.style.cssText="position: absolute; left: 10.7432222px;",o=I(f).offset().left,H=10<o&&o<11,t.innerHTML="",i.removeChild(t)}()}(),I.ui.position});
var PUM,PUM_Accessibility,PUM_Analytics,pm_cookie,pm_cookie_json,pm_remove_cookie;!function(s){"use strict";void 0===s.fn.on&&(s.fn.on=function(e,o,t){return this.delegate(o,e,t)}),void 0===s.fn.off&&(s.fn.off=function(e,o,t){return this.undelegate(o,e,t)}),void 0===s.fn.bindFirst&&(s.fn.bindFirst=function(e,o){var t,n,i=s(this);i.unbind(e,o),i.bind(e,o),(n=(t=s._data(i[0]).events)[e]).unshift(n.pop()),t[e]=n}),void 0===s.fn.outerHtml&&(s.fn.outerHtml=function(){var e=s(this).clone();return s("<div/>").append(e).html()}),void 0===Date.now&&(Date.now=function(){return(new Date).getTime()})}(jQuery),function(p,s,r){"use strict";window.pum_vars=window.pum_vars||{default_theme:"0",home_url:"/",version:1.7,ajaxurl:"",restapi:!1,rest_nonce:null,debug_mode:!1,disable_tracking:!0,message_position:"top",core_sub_forms_enabled:!0,popups:{}},window.pum_popups=window.pum_popups||{},window.pum_vars.popups=window.pum_popups,PUM={get:new function(){var i={},e=function(e,o,t){"boolean"==typeof o&&(t=o,o=!1);var n=o?o.selector+" "+e:e;return(r===i[n]||t)&&(i[n]=o?o.find(e):jQuery(e)),i[n]};return e.elementCache=i,e},getPopup:function(e){var o;return(o=function(e){return!isNaN(e)&&parseInt(Number(e))===parseInt(e)&&!isNaN(parseInt(e,10))}(e)?PUM.get("#pum-"+e):"current"===e?PUM.get(".pum-overlay.pum-active:eq(0)",!0):"open"===e?PUM.get(".pum-overlay.pum-active",!0):"closed"===e?PUM.get(".pum-overlay:not(.pum-active)",!0):e instanceof jQuery?e:p(e)).hasClass("pum-overlay")?o:o.hasClass("popmake")?o.parents(".pum-overlay"):o.parents(".pum-overlay").length?o.parents(".pum-overlay"):p()},open:function(e,o){PUM.getPopup(e).popmake("open",o)},close:function(e,o){PUM.getPopup(e).popmake("close",o)},preventOpen:function(e){PUM.getPopup(e).addClass("preventOpen")},getSettings:function(e){return PUM.getPopup(e).popmake("getSettings")},getSetting:function(e,o,t){var n=function(e,o){function t(e,o,t){return o?e[o.slice(0,t?-1:o.length)]:e}return o.split(".").reduce(function(e,o){return o?o.split("[").reduce(t,e):e},e)}(PUM.getSettings(e),o);return void 0!==n?n:t!==r?t:null},checkConditions:function(e){return PUM.getPopup(e).popmake("checkConditions")},getCookie:function(e){return p.pm_cookie(e)},getJSONCookie:function(e){return p.pm_cookie_json(e)},setCookie:function(e,o){PUM.getPopup(e).popmake("setCookie",jQuery.extend({name:"pum-"+PUM.getSetting(e,"id"),expires:"+30 days"},o))},clearCookie:function(e,o){p.pm_remove_cookie(e),"function"==typeof o&&o()},clearCookies:function(e,o){var t,n=PUM.getPopup(e).popmake("getSettings").cookies;if(n!==r&&n.length)for(t=0;n.length>t;t+=1)p.pm_remove_cookie(n[t].settings.name);"function"==typeof o&&o()},getClickTriggerSelector:function(e,o){var t=PUM.getPopup(e),n=PUM.getSettings(e),i=[".popmake-"+n.id,".popmake-"+decodeURIComponent(n.slug),'a[href$="#popmake-'+n.id+'"]'];return o.extra_selectors&&""!==o.extra_selectors&&i.push(o.extra_selectors),(i=pum.hooks.applyFilters("pum.trigger.click_open.selectors",i,o,t)).join(", ")},disableClickTriggers:function(e,o){if(e!==r)if(o!==r){var t=PUM.getClickTriggerSelector(e,o);p(t).removeClass("pum-trigger"),p(s).off("click.pumTrigger click.popmakeOpen",t)}else{var n=PUM.getSetting(e,"triggers",[]);if(n.length)for(var i=0;n.length>i;i++)if(-1!==pum.hooks.applyFilters("pum.disableClickTriggers.clickTriggerTypes",["click_open"]).indexOf(n[i].type)){t=PUM.getClickTriggerSelector(e,n[i].settings);p(t).removeClass("pum-trigger"),p(s).off("click.pumTrigger click.popmakeOpen",t)}}}},p.fn.popmake=function(e){return p.fn.popmake.methods[e]?(p(s).trigger("pumMethodCall",arguments),p.fn.popmake.methods[e].apply(this,Array.prototype.slice.call(arguments,1))):"object"!=typeof e&&e?void(window.console&&console.warn("Method "+e+" does not exist on $.fn.popmake")):p.fn.popmake.methods.init.apply(this,arguments)},p.fn.popmake.methods={init:function(){return this.each(function(){var e=PUM.getPopup(this),o=e.popmake("getSettings");return o.theme_id<=0&&(o.theme_id=pum_vars.default_theme),o.disable_reposition!==r&&o.disable_reposition||p(window).on("resize",function(){(e.hasClass("pum-active")||e.find(".popmake.active").length)&&p.fn.popmake.utilities.throttle(setTimeout(function(){e.popmake("reposition")},25),500,!1)}),e.find(".pum-container").data("popmake",o),e.data("popmake",o).trigger("pumInit"),this})},getOverlay:function(){return PUM.getPopup(this)},getContainer:function(){return PUM.getPopup(this).find(".pum-container")},getTitle:function(){return PUM.getPopup(this).find(".pum-title")||null},getContent:function(){return PUM.getPopup(this).find(".pum-content")||null},getClose:function(){return PUM.getPopup(this).find(".pum-content + .pum-close")||null},getSettings:function(){var e=PUM.getPopup(this);return p.extend(!0,{},p.fn.popmake.defaults,e.data("popmake")||{},"object"==typeof pum_popups&&void 0!==pum_popups[e.attr("id")]?pum_popups[e.attr("id")]:{})},state:function(e){var o=PUM.getPopup(this);if(r!==e)switch(e){case"isOpen":return o.hasClass("pum-open")||o.popmake("getContainer").hasClass("active");case"isClosed":return!o.hasClass("pum-open")&&!o.popmake("getContainer").hasClass("active")}},open:function(e){var o=PUM.getPopup(this),t=o.popmake("getContainer"),n=o.popmake("getClose"),i=o.popmake("getSettings"),s=p("html");return o.trigger("pumBeforeOpen"),o.hasClass("preventOpen")||t.hasClass("preventOpen")?(console.log("prevented"),o.removeClass("preventOpen").removeClass("pum-active").trigger("pumOpenPrevented")):(i.stackable||o.popmake("close_all"),o.addClass("pum-active"),0<i.close_button_delay&&n.fadeOut(0),s.addClass("pum-open"),i.overlay_disabled?s.addClass("pum-open-overlay-disabled"):s.addClass("pum-open-overlay"),i.position_fixed?s.addClass("pum-open-fixed"):s.addClass("pum-open-scrollable"),o.popmake("setup_close").popmake("reposition").popmake("animate",i.animation_type,function(){0<i.close_button_delay&&setTimeout(function(){n.fadeIn()},i.close_button_delay),o.trigger("pumAfterOpen"),p(window).trigger("resize"),p.fn.popmake.last_open_popup=o,e!==r&&e()})),this},setup_close:function(){var t=PUM.getPopup(this),e=t.popmake("getClose"),o=t.popmake("getSettings");return(e=e.add(p(".popmake-close, .pum-close",t).not(e))).off("click.pum").on("click.pum",function(e){var o=p(this);o.hasClass("pum-do-default")||o.data("do-default")!==r&&o.data("do-default")||e.preventDefault(),p.fn.popmake.last_close_trigger="Close Button",t.popmake("close")}),(o.close_on_esc_press||o.close_on_f4_press)&&p(window).off("keyup.popmake").on("keyup.popmake",function(e){27===e.keyCode&&o.close_on_esc_press&&(p.fn.popmake.last_close_trigger="ESC Key",t.popmake("close")),115===e.keyCode&&o.close_on_f4_press&&(p.fn.popmake.last_close_trigger="F4 Key",t.popmake("close"))}),o.close_on_overlay_click&&(t.on("pumAfterOpen",function(){p(s).on("click.pumCloseOverlay",function(e){p(e.target).closest(".pum-container").length||(p.fn.popmake.last_close_trigger="Overlay Click",t.popmake("close"))})}),t.on("pumAfterClose",function(){p(s).off("click.pumCloseOverlay")})),t.trigger("pumSetupClose"),this},close:function(n){return this.each(function(){var e=PUM.getPopup(this),o=e.popmake("getContainer"),t=e.popmake("getClose");return t=t.add(p(".popmake-close, .pum-close",e).not(t)),e.trigger("pumBeforeClose"),e.hasClass("preventClose")||o.hasClass("preventClose")?e.removeClass("preventClose").trigger("pumClosePrevented"):o.fadeOut("fast",function(){e.is(":visible")&&e.fadeOut("fast"),p(window).off("keyup.popmake"),e.off("click.popmake"),t.off("click.popmake"),1===p(".pum-active").length&&p("html").removeClass("pum-open").removeClass("pum-open-scrollable").removeClass("pum-open-overlay").removeClass("pum-open-overlay-disabled").removeClass("pum-open-fixed"),e.removeClass("pum-active").trigger("pumAfterClose"),o.find("iframe").filter('[src*="youtube"],[src*="vimeo"]').each(function(){var e=p(this),o=e.attr("src"),t=o.replace("autoplay=1","1=1");t!==o&&(o=t),e.prop("src",o)}),o.find("video").each(function(){this.pause()}),n!==r&&n()}),this})},close_all:function(){return p(".pum-active").popmake("close"),this},reposition:function(e){var o=PUM.getPopup(this).trigger("pumBeforeReposition"),t=o.popmake("getContainer"),n=o.popmake("getSettings"),i=n.location,s={my:"",at:"",of:window,collision:"none",using:"function"==typeof e?e:p.fn.popmake.callbacks.reposition_using},r={overlay:null,container:null},a=null;try{a=p(p.fn.popmake.last_open_trigger)}catch(e){a=p()}return n.position_from_trigger&&a.length?(s.of=a,0<=i.indexOf("left")&&(s.my+=" right",s.at+=" left"+(0!==n.position_left?"-"+n.position_left:"")),0<=i.indexOf("right")&&(s.my+=" left",s.at+=" right"+(0!==n.position_right?"+"+n.position_right:"")),0<=i.indexOf("center")&&(s.my="center"===i?"center":s.my+" center",s.at="center"===i?"center":s.at+" center"),0<=i.indexOf("top")&&(s.my+=" bottom",s.at+=" top"+(0!==n.position_top?"-"+n.position_top:"")),0<=i.indexOf("bottom")&&(s.my+=" top",s.at+=" bottom"+(0!==n.position_bottom?"+"+n.position_bottom:""))):(0<=i.indexOf("left")&&(s.my+=" left"+(0!==n.position_left?"+"+n.position_left:""),s.at+=" left"),0<=i.indexOf("right")&&(s.my+=" right"+(0!==n.position_right?"-"+n.position_right:""),s.at+=" right"),0<=i.indexOf("center")&&(s.my="center"===i?"center":s.my+" center",s.at="center"===i?"center":s.at+" center"),0<=i.indexOf("top")&&(s.my+=" top"+(0!==n.position_top?"+"+(p("body").hasClass("admin-bar")?parseInt(n.position_top,10)+32:n.position_top):""),s.at+=" top"),0<=i.indexOf("bottom")&&(s.my+=" bottom"+(0!==n.position_bottom?"-"+n.position_bottom:""),s.at+=" bottom")),s.my=p.trim(s.my),s.at=p.trim(s.at),o.is(":hidden")&&(r.overlay=o.css("opacity"),o.css({opacity:0}).show(0)),t.is(":hidden")&&(r.container=t.css("opacity"),t.css({opacity:0}).show(0)),n.position_fixed&&t.addClass("fixed"),"custom"===n.size?t.css({width:n.custom_width,height:n.custom_height_auto?"auto":n.custom_height}):"auto"!==n.size&&t.addClass("responsive").css({minWidth:""!==n.responsive_min_width?n.responsive_min_width:"auto",maxWidth:""!==n.responsive_max_width?n.responsive_max_width:"auto"}),o.trigger("pumAfterReposition"),t.addClass("custom-position").position(s).trigger("popmakeAfterReposition"),r.overlay&&o.css({opacity:r.overlay}).hide(0),r.container&&t.css({opacity:r.container}).hide(0),this},animation_origin:function(e){var o=PUM.getPopup(this).popmake("getContainer"),t={my:"",at:""};switch(e){case"top":t={my:"left+"+o.offset().left+" bottom-100",at:"left top"};break;case"bottom":t={my:"left+"+o.offset().left+" top+100",at:"left bottom"};break;case"left":t={my:"right top+"+o.offset().top,at:"left top"};break;case"right":t={my:"left top+"+o.offset().top,at:"right top"};break;default:0<=e.indexOf("left")&&(t={my:t.my+" right",at:t.at+" left"}),0<=e.indexOf("right")&&(t={my:t.my+" left",at:t.at+" right"}),0<=e.indexOf("center")&&(t={my:t.my+" center",at:t.at+" center"}),0<=e.indexOf("top")&&(t={my:t.my+" bottom-100",at:t.at+" top"}),0<=e.indexOf("bottom")&&(t={my:t.my+" top+100",at:t.at+" bottom"}),t.my=p.trim(t.my),t.at=p.trim(t.at)}return t.of=window,t.collision="none",t}}}(jQuery,document),function(s,t,e){"use strict";var n,i,r,a="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",o=".pum:not(.pum-accessibility-disabled)";PUM_Accessibility={forceFocus:function(e){r&&r.length&&!r[0].contains(e.target)&&(e.stopPropagation(),PUM_Accessibility.setFocusToFirstItem())},trapTabKey:function(e){if(9===e.keyCode){var o=r.find(".pum-container *").filter(a).filter(":visible"),t=s(":focus"),n=o.length,i=o.index(t);e.shiftKey?0===i&&(o.get(n-1).focus(),e.preventDefault()):i===n-1&&(o.get(0).focus(),e.preventDefault())}},setFocusToFirstItem:function(){r.find(".pum-container *").filter(a).filter(":visible").filter(":not(.pum-close)").first().focus()}},s(t).on("pumInit",o,function(){PUM.getPopup(this).find("[tabindex]").each(function(){var e=s(this);e.data("tabindex",e.attr("tabindex")).prop("tabindex","0")})}).on("pumBeforeOpen",o,function(){var e=PUM.getPopup(this),o=s(":focus");e.has(o).length||(i=o),r=e.on("keydown.pum_accessibility",PUM_Accessibility.trapTabKey).attr("aria-hidden","false"),(n=s("body > *").filter(":visible").not(r)).attr("aria-hidden","true"),s(t).one("focusin.pum_accessibility",PUM_Accessibility.forceFocus),PUM_Accessibility.setFocusToFirstItem()}).on("pumAfterOpen",o,function(){}).on("pumBeforeClose",o,function(){}).on("pumAfterClose",o,function(){PUM.getPopup(this).off("keydown.pum_accessibility").attr("aria-hidden","true"),n&&(n.attr("aria-hidden","false"),n=null),void 0!==i&&i.length&&i.focus(),r=null,s(t).off("focusin.pum_accessibility")}).on("pumSetupClose",o,function(){}).on("pumOpenPrevented",o,function(){}).on("pumClosePrevented",o,function(){}).on("pumBeforeReposition",o,function(){})}(jQuery,document),function(s){"use strict";s.fn.popmake.last_open_trigger=null,s.fn.popmake.last_close_trigger=null,s.fn.popmake.conversion_trigger=null;var r=!(void 0===pum_vars.restapi||!pum_vars.restapi);PUM_Analytics={beacon:function(e,o){var t=new Image,n=r?pum_vars.restapi:pum_vars.ajaxurl,i={route:"/analytics/",data:s.extend({event:"open",pid:null,_cache:+new Date},e),callback:"function"==typeof o?o:function(){}};r?n+=i.route:i.data.action="pum_analytics",n&&(s(t).on("error success load done",i.callback),t.src=n+"?"+s.param(i.data))}},void 0!==pum_vars.disable_tracking&&pum_vars.disable_tracking||s(document).on("pumAfterOpen.core_analytics",".pum",function(){var e=PUM.getPopup(this),o={pid:parseInt(e.popmake("getSettings").id,10)||null};0<o.pid&&!s("body").hasClass("single-popup")&&PUM_Analytics.beacon(o)})}(jQuery),function(n,e,r){"use strict";n.fn.popmake.methods.animate_overlay=function(e,o,t){return PUM.getPopup(this).popmake("getSettings").overlay_disabled?n.fn.popmake.overlay_animations.none.apply(this,[o,t]):n.fn.popmake.overlay_animations[e]?n.fn.popmake.overlay_animations[e].apply(this,[o,t]):(window.console&&console.warn("Animation style "+e+" does not exist."),this)},n.fn.popmake.methods.animate=function(e){return n.fn.popmake.animations[e]?n.fn.popmake.animations[e].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Animation style "+e+" does not exist."),this)},n.fn.popmake.animations={none:function(e){var o=PUM.getPopup(this);return o.popmake("getContainer").css({opacity:1,display:"block"}),o.popmake("animate_overlay","none",0,function(){e!==r&&e()}),this},slide:function(o){var e=PUM.getPopup(this),t=e.popmake("getContainer"),n=e.popmake("getSettings"),i=n.animation_speed/2,s=e.popmake("animation_origin",n.animation_origin);return e.css({display:"block"}),t.css({display:"block"}).position(s).css({opacity:1}),e.popmake("animate_overlay","fade",i,function(){t.popmake("reposition",function(e){t.animate(e,i,"swing",function(){o!==r&&o()})})}),this},fade:function(e){var o=PUM.getPopup(this),t=o.popmake("getContainer").css({opacity:0,display:"block"}),n=o.popmake("getSettings").animation_speed/2;return o.popmake("animate_overlay","fade",n,function(){t.animate({opacity:1},n,"swing",function(){e!==r&&e()})}),this},fadeAndSlide:function(o){var e=PUM.getPopup(this),t=e.popmake("getContainer"),n=e.popmake("getSettings"),i=n.animation_speed/2,s=e.popmake("animation_origin",n.animation_origin);return e.css({display:"block"}),t.css({display:"block"}).position(s),e.popmake("animate_overlay","fade",i,function(){t.popmake("reposition",function(e){t.css({opacity:0}),e.opacity=1,t.animate(e,i,"swing",function(){o!==r&&o()})})}),this},grow:function(e){return n.fn.popmake.animations.fade.apply(this,arguments)},growAndSlide:function(e){return n.fn.popmake.animations.fadeAndSlide.apply(this,arguments)}},n.fn.popmake.overlay_animations={none:function(e,o){PUM.getPopup(this).css({opacity:1,display:"block"}),"function"==typeof o&&o()},fade:function(e,o){PUM.getPopup(this).css({opacity:0,display:"block"}).animate({opacity:1},e,"swing",o)},slide:function(e,o){PUM.getPopup(this).slideDown(e,o)}}}(jQuery,document),function(e,o,t){"use strict";e(o).on("pumInit",".pum",function(){e(this).popmake("getContainer").trigger("popmakeInit")}).on("pumBeforeOpen",".pum",function(){e(this).popmake("getContainer").addClass("active").trigger("popmakeBeforeOpen")}).on("pumAfterOpen",".pum",function(){e(this).popmake("getContainer").trigger("popmakeAfterOpen")}).on("pumBeforeClose",".pum",function(){e(this).popmake("getContainer").trigger("popmakeBeforeClose")}).on("pumAfterClose",".pum",function(){e(this).popmake("getContainer").removeClass("active").trigger("popmakeAfterClose")}).on("pumSetupClose",".pum",function(){e(this).popmake("getContainer").trigger("popmakeSetupClose")}).on("pumOpenPrevented",".pum",function(){e(this).popmake("getContainer").removeClass("preventOpen").removeClass("active")}).on("pumClosePrevented",".pum",function(){e(this).popmake("getContainer").removeClass("preventClose")}).on("pumBeforeReposition",".pum",function(){e(this).popmake("getContainer").trigger("popmakeBeforeReposition")})}(jQuery,document),function(o,e,t){"use strict";o.fn.popmake.callbacks={reposition_using:function(e){o(this).css(e)}}}(jQuery,document),function(p,e,o){"use strict";var t,u=function(){return void 0===t&&(t="undefined"!=typeof MobileDetect?new MobileDetect(window.navigator.userAgent):{phone:function(){return!1},tablet:function(){return!1}}),t};p.extend(p.fn.popmake.methods,{checkConditions:function(){var e,o,t,n,i,s=PUM.getPopup(this),r=s.popmake("getSettings"),a=!0;if(r.disable_on_mobile&&u().phone())return!1;if(r.disable_on_tablet&&u().tablet())return!1;if(r.conditions.length)for(o=0;r.conditions.length>o;o++){for(n=r.conditions[o],e=!1,t=0;n.length>t&&(!(i=p.extend({},{not_operand:!1},n[t])).not_operand&&s.popmake("checkCondition",i)?e=!0:i.not_operand&&!s.popmake("checkCondition",i)&&(e=!0),p(this).trigger("pumCheckingCondition",[e,i]),!e);t++);e||(a=!1)}return a},checkCondition:function(e){var o=e.target||null;e.settings;return o?p.fn.popmake.conditions[o]?p.fn.popmake.conditions[o].apply(this,[e]):window.console?(console.warn("Condition "+o+" does not exist."),!0):void 0:(console.warn("Condition type not set."),!1)}}),p.fn.popmake.conditions={}}(jQuery,document),function(d){"use strict";d.extend(d.fn.popmake,{cookie:function(c){function m(e,o,t){var n,i=new Date;if("undefined"!=typeof document){if(1<arguments.length){switch(typeof(t=d.extend({path:pum_vars.home_url},m.defaults,t)).expires){case"number":i.setMilliseconds(i.getMilliseconds()+864e5*t.expires),t.expires=i;break;case"string":i.setTime(1e3*d.fn.popmake.utilities.strtotime("+"+t.expires)),t.expires=i}try{n=JSON.stringify(o),/^[\{\[]/.test(n)&&(o=n)}catch(e){}return o=c.write?c.write(o,e):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[e,"=",o,t.expires?"; expires="+t.expires.toUTCString():"",t.path?"; path="+t.path:"",t.domain?"; domain="+t.domain:"",t.secure?"; secure":""].join("")}e||(n={});for(var s=document.cookie?document.cookie.split("; "):[],r=/(%[0-9A-Z]{2})+/g,a=0;a<s.length;a++){var p=s[a].split("="),u=p.slice(1).join("=");'"'===u.charAt(0)&&(u=u.slice(1,-1));try{var l=p[0].replace(r,decodeURIComponent);if(u=c.read?c.read(u,l):c(u,l)||u.replace(r,decodeURIComponent),this.json)try{u=JSON.parse(u)}catch(e){}if(e===l){n=u;break}e||(n[l]=u)}catch(e){}}return n}}return void 0===c&&(c=function(){}),(m.set=m).get=function(e){return m.call(m,e)},m.getJSON=function(){return m.apply({json:!0},[].slice.call(arguments))},m.defaults={},m.remove=function(e,o){m(e,"",d.extend({},o,{expires:-1,path:""})),m(e,"",d.extend({},o,{expires:-1}))},m.process=function(e,o,t,n){return 3<arguments.length&&"object"!=typeof t&&void 0!==o?m.apply(m,[e,o,{expires:t,path:n}]):m.apply(m,[].slice.call(arguments,[0,2]))},m.withConverter=d.fn.popmake.cookie,m}()}),pm_cookie=d.pm_cookie=d.fn.popmake.cookie.process,pm_cookie_json=d.pm_cookie_json=d.fn.popmake.cookie.getJSON,pm_remove_cookie=d.pm_remove_cookie=d.fn.popmake.cookie.remove}(jQuery),function(n,e,i){"use strict";n.extend(n.fn.popmake.methods,{addCookie:function(e){return pum.hooks.doAction("popmake.addCookie",arguments),n.fn.popmake.cookies[e]?n.fn.popmake.cookies[e].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Cookie type "+e+" does not exist."),this)},setCookie:function(e){n.pm_cookie(e.name,!0,e.session?null:e.time,e.path?pum_vars.home_url||"/":null),pum.hooks.doAction("popmake.setCookie",e)},checkCookies:function(e){var o,t=!1;if(e.cookie_name===i||null===e.cookie_name||""===e.cookie_name)return!1;switch(typeof e.cookie_name){case"object":case"array":for(o=0;e.cookie_name.length>o;o+=1)n.pm_cookie(e.cookie_name[o])!==i&&(t=!0);break;case"string":n.pm_cookie(e.cookie_name)!==i&&(t=!0)}return pum.hooks.doAction("popmake.checkCookies",e,t),t}}),n.fn.popmake.cookies=n.fn.popmake.cookies||{},n.extend(n.fn.popmake.cookies,{on_popup_open:function(e){var o=PUM.getPopup(this);o.on("pumAfterOpen",function(){o.popmake("setCookie",e)})},on_popup_close:function(e){var o=PUM.getPopup(this);o.on("pumBeforeClose",function(){o.popmake("setCookie",e)})},manual:function(e){var o=PUM.getPopup(this);o.on("pumSetCookie",function(){o.popmake("setCookie",e)})},form_success:function(e){var o=PUM.getPopup(this);o.on("pumFormSuccess",function(){o.popmake("setCookie",e)})},pum_sub_form_success:function(e){var o=PUM.getPopup(this);o.find("form.pum-sub-form").on("success",function(){o.popmake("setCookie",e)})},pum_sub_form_already_subscribed:function(e){var o=PUM.getPopup(this);o.find("form.pum-sub-form").on("success",function(){o.popmake("setCookie",e)})},ninja_form_success:function(e){return n.fn.popmake.cookies.form_success.apply(this,arguments)},cf7_form_success:function(e){return n.fn.popmake.cookies.form_success.apply(this,arguments)},gforms_form_success:function(e){return n.fn.popmake.cookies.form_success.apply(this,arguments)}}),n(e).on("pumInit",".pum",function(){var e,o=PUM.getPopup(this),t=o.popmake("getSettings").cookies||[],n=null;if(t.length)for(e=0;t.length>e;e+=1)n=t[e],o.popmake("addCookie",n.event,n.settings)})}(jQuery,document);var pum_debug,pum_debug_mode=!1;!function(r,e){if(e=window.pum_vars||{debug_mode:!1},(pum_debug_mode=void 0!==e.debug_mode&&e.debug_mode)||-1===window.location.href.indexOf("pum_debug")||(pum_debug_mode=!0),pum_debug_mode){var a=!1,t=!1,p=window.pum_debug_vars||{debug_mode_enabled:"Popup Maker: Debug Mode Enabled",debug_started_at:"Debug started at:",debug_more_info:"For more information on how to use this information visit https://docs.wppopupmaker.com/?utm_medium=js-debug-info&utm_campaign=ContextualHelp&utm_source=browser-console&utm_content=more-info",global_info:"Global Information",localized_vars:"Localized variables",popups_initializing:"Popups Initializing",popups_initialized:"Popups Initialized",single_popup_label:"Popup: #",theme_id:"Theme ID: ",label_method_call:"Method Call:",label_method_args:"Method Arguments:",label_popup_settings:"Settings",label_triggers:"Triggers",label_cookies:"Cookies",label_delay:"Delay:",label_conditions:"Conditions",label_cookie:"Cookie:",label_settings:"Settings:",label_selector:"Selector:",label_mobile_disabled:"Mobile Disabled:",label_tablet_disabled:"Tablet Disabled:",label_event:"Event: %s",triggers:[],cookies:[]};pum_debug={odump:function(e){return r.extend({},e)},logo:function(){console.log(" -------------------------------------------------------------\n|  ____                           __  __       _              |\n| |  _ \\ ___  _ __  _   _ _ __   |  \\/  | __ _| | _____ _ __  |\n| | |_) / _ \\| '_ \\| | | | '_ \\  | |\\/| |/ _` | |/ / _ \\ '__| |\n| |  __/ (_) | |_) | |_| | |_) | | |  | | (_| |   <  __/ |    |\n| |_|   \\___/| .__/ \\__,_| .__/  |_|  |_|\\__,_|_|\\_\\___|_|    |\n|            |_|         |_|                                  |\n -------------------------------------------------------------")},initialize:function(){a=!0,pum_debug.logo(),console.debug(p.debug_mode_enabled),console.log(p.debug_started_at,new Date),console.info(p.debug_more_info),pum_debug.divider(p.global_info),console.groupCollapsed(p.localized_vars),console.log("pum_vars:",pum_debug.odump(e)),r(document).trigger("pum_debug_initialize_localized_vars"),console.groupEnd(),r(document).trigger("pum_debug_initialize")},popup_event_header:function(e){var o=e.popmake("getSettings");t!==o.id&&(t=o.id,pum_debug.divider(p.single_popup_label+o.id+" - "+o.slug))},divider:function(e){var o=62,t=0,n=" "+new Array(63).join("-")+" ";"string"==typeof e?(o=62-e.length,(t={left:Math.floor(o/2),right:Math.floor(o/2)}).left+t.right===o-1&&t.right++,t.left=new Array(t.left+1).join(" "),t.right=new Array(t.right+1).join(" "),console.log(n+"\n|"+t.left+e+t.right+"|\n"+n)):console.log(n)},click_trigger:function(e,o){var t,n=e.popmake("getSettings"),i=[".popmake-"+n.id,".popmake-"+decodeURIComponent(n.slug),'a[href$="#popmake-'+n.id+'"]'];o.extra_selectors&&""!==o.extra_selectors&&i.push(o.extra_selectors),t=(i=pum.hooks.applyFilters("pum.trigger.click_open.selectors",i,o,e)).join(", "),console.log(p.label_selector,t)},trigger:function(e,o){if("string"==typeof p.triggers[o.type]){switch(console.groupCollapsed(p.triggers[o.type]),o.type){case"auto_open":console.log(p.label_delay,o.settings.delay),console.log(p.label_cookie,o.settings.cookie_name);break;case"click_open":pum_debug.click_trigger(e,o.settings),console.log(p.label_cookie,o.settings.cookie_name)}r(document).trigger("pum_debug_render_trigger",e,o),console.groupEnd()}},cookie:function(e,o){if("string"==typeof p.cookies[o.event]){switch(console.groupCollapsed(p.cookies[o.event]),o.event){case"on_popup_open":case"on_popup_close":case"manual":case"ninja_form_success":console.log(p.label_cookie,pum_debug.odump(o.settings))}r(document).trigger("pum_debug_render_trigger",e,o),console.groupEnd()}}},r(document).on("pumInit",".pum",function(){var e=PUM.getPopup(r(this)),o=e.popmake("getSettings"),t=o.triggers||[],n=o.cookies||[],i=o.conditions||[],s=0;if(a||(pum_debug.initialize(),pum_debug.divider(p.popups_initializing)),console.groupCollapsed(p.single_popup_label+o.id+" - "+o.slug),console.log(p.theme_id,o.theme_id),t.length){for(console.groupCollapsed(p.label_triggers),s=0;t.length>s;s++)pum_debug.trigger(e,t[s]);console.groupEnd()}if(n.length){for(console.groupCollapsed(p.label_cookies),s=0;n.length>s;s+=1)pum_debug.cookie(e,n[s]);console.groupEnd()}i.length&&(console.groupCollapsed(p.label_conditions),console.log(i),console.groupEnd()),console.groupCollapsed(p.label_popup_settings),console.log(p.label_mobile_disabled,!1!==o.disable_on_mobile),console.log(p.label_tablet_disabled,!1!==o.disable_on_tablet),console.log(p.label_display_settings,pum_debug.odump(o)),e.trigger("pum_debug_popup_settings"),console.groupEnd(),console.groupEnd()}).on("pumBeforeOpen",".pum",function(){var e=PUM.getPopup(r(this)),o=r.fn.popmake.last_open_trigger;pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumBeforeOpen"));try{o=(o=r(r.fn.popmake.last_open_trigger)).length?o:r.fn.popmake.last_open_trigger.toString()}catch(e){o=""}finally{console.log(p.label_triggers,[o])}console.groupEnd()}).on("pumOpenPrevented",".pum",function(){var e=PUM.getPopup(r(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumOpenPrevented")),console.groupEnd()}).on("pumAfterOpen",".pum",function(){var e=PUM.getPopup(r(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumAfterOpen")),console.groupEnd()}).on("pumSetupClose",".pum",function(){var e=PUM.getPopup(r(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumSetupClose")),console.groupEnd()}).on("pumClosePrevented",".pum",function(){var e=PUM.getPopup(r(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumClosePrevented")),console.groupEnd()}).on("pumBeforeClose",".pum",function(){var e=PUM.getPopup(r(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumBeforeClose")),console.groupEnd()}).on("pumAfterClose",".pum",function(){var e=PUM.getPopup(r(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumAfterClose")),console.groupEnd()}).on("pumBeforeReposition",".pum",function(){var e=PUM.getPopup(r(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumBeforeReposition")),console.groupEnd()}).on("pumAfterReposition",".pum",function(){var e=PUM.getPopup(r(this));pum_debug.popup_event_header(e),console.groupCollapsed(p.label_event.replace("%s","pumAfterReposition")),console.groupEnd()}).on("pumCheckingCondition",".pum",function(e,o,t){var n=PUM.getPopup(r(this));pum_debug.popup_event_header(n),console.groupCollapsed(p.label_event.replace("%s","pumCheckingCondition")),console.log((t.not_operand?"(!) ":"")+t.target+": "+o,t),console.groupEnd()})}}(jQuery),function(e,o,t){"use strict";e.fn.popmake.defaults={id:null,slug:"",theme_id:null,cookies:[],triggers:[],conditions:[],mobile_disabled:null,tablet_disabled:null,custom_height_auto:!1,scrollable_content:!1,position_from_trigger:!1,position_fixed:!1,overlay_disabled:!1,stackable:!1,disable_reposition:!1,close_on_overlay_click:!1,close_on_esc_press:!1,close_on_f4_press:!1,disable_on_mobile:!1,disable_on_tablet:!1,size:"medium",responsive_min_width:"0%",responsive_max_width:"100%",custom_width:"640px",custom_height:"380px",animation_type:"fade",animation_speed:"350",animation_origin:"center top",location:"center top",position_top:"100",position_bottom:"0",position_left:"0",position_right:"0",zindex:"1999999999",close_button_delay:"0",meta:{display:{stackable:!1,overlay_disabled:!1,size:"medium",responsive_max_width:"100",responsive_max_width_unit:"%",responsive_min_width:"0",responsive_min_width_unit:"%",custom_width:"640",custom_width_unit:"px",custom_height:"380",custom_height_unit:"px",custom_height_auto:!1,location:"center top",position_top:100,position_left:0,position_bottom:0,position_right:0,position_fixed:!1,animation_type:"fade",animation_speed:350,animation_origin:"center top",scrollable_content:!1,disable_reposition:!1,position_from_trigger:!1,overlay_zindex:!1,zindex:"1999999999"},close:{overlay_click:!1,esc_press:!1,f4_press:!1,text:"",button_delay:0},click_open:[]},container:{active_class:"active",attr:{class:"popmake"}},title:{attr:{class:"popmake-title"}},content:{attr:{class:"popmake-content"}},close:{close_speed:0,attr:{class:"popmake-close"}},overlay:{attr:{id:"popmake-overlay",class:"popmake-overlay"}}}}(jQuery,document),function(s){"use strict";var r={openpopup:!1,openpopup_id:0,closepopup:!1,closedelay:0,redirect_enabled:!1,redirect:"",cookie:!1};window.PUM=window.PUM||{},window.PUM.forms=window.PUM.forms||{},s.extend(window.PUM.forms,{form:{validation:{errors:[]},responseHandler:function(e,o){var t=o.data;o.success?window.PUM.forms.form.success(e,t):window.PUM.forms.form.errors(e,t)},display_errors:function(e,o){window.PUM.forms.messages.add(e,o||this.validation.errors,"error")},beforeAjax:function(e){var o=e.find('[type="submit"]'),t=o.find(".pum-form__loader");window.PUM.forms.messages.clear_all(e),t.length||(t=s('<span class="pum-form__loader"></span>'),""!==o.attr("value")?t.insertAfter(o):o.append(t)),o.prop("disabled",!0),t.show(),e.addClass("pum-form--loading").removeClass("pum-form--errors")},afterAjax:function(e){var o=e.find('[type="submit"]'),t=o.find(".pum-form__loader");o.prop("disabled",!1),t.hide(),e.removeClass("pum-form--loading")},success:function(e,o){void 0!==o.message&&""!==o.message&&window.PUM.forms.messages.add(e,[{message:o.message}]),e.trigger("success",[o]),!e.data("noredirect")&&void 0!==e.data("redirect_enabled")&&o.redirect&&(""!==o.redirect?window.location=o.redirect:window.location.reload(!0))},errors:function(e,o){void 0!==o.errors&&o.errors.length&&(console.log(o.errors),window.PUM.forms.form.display_errors(e,o.errors),window.PUM.forms.messages.scroll_to_first(e),e.addClass("pum-form--errors").trigger("errors",[o]))},submit:function(e){var o=s(this),t=o.pumSerializeObject();e.preventDefault(),e.stopPropagation(),window.PUM.forms.form.beforeAjax(o),s.ajax({type:"POST",dataType:"json",url:pum_vars.ajaxurl,data:{action:"pum_form",values:t}}).always(function(){window.PUM.forms.form.afterAjax(o)}).done(function(e){window.PUM.forms.form.responseHandler(o,e)}).error(function(e,o,t){console.log("Error: type of "+o+" with message of "+t)})}},messages:{add:function(e,o,t){var n=e.find(".pum-form__messages"),i=0;if(t=t||"success",o=o||[],!n.length)switch(n=s('<div class="pum-form__messages">').hide(),pum_vars.message_position){case"bottom":e.append(n.addClass("pum-form__messages--bottom"));break;case"top":e.prepend(n.addClass("pum-form__messages--top"))}if(0<=["bottom","top"].indexOf(pum_vars.message_position))for(;o.length>i;i++)this.add_message(n,o[i].message,t);else for(;o.length>i;i++)void 0!==o[i].field?this.add_field_error(e,o[i]):this.add_message(n,o[i].message,t);n.is(":hidden")&&s(".pum-form__message",n).length&&n.slideDown()},add_message:function(e,o,t){var n=s('<p class="pum-form__message">').html(o);t=t||"success",n.addClass("pum-form__message--"+t),e.append(n),e.is(":visible")&&n.hide().slideDown()},add_field_error:function(e,o){var t=s('[name="'+o.field+'"]',e).parents(".pum-form__field").addClass("pum-form__field--error");this.add_message(t,o.message,"error")},clear_all:function(e,o){var t=e.find(".pum-form__messages"),n=t.find(".pum-form__message"),i=e.find(".pum-form__field.pum-form__field--error");o=o||!1,t.length&&n.slideUp("fast",function(){s(this).remove(),o&&t.hide()}),i.length&&i.removeClass("pum-form__field--error").find("p.pum-form__message").remove()},scroll_to_first:function(e){window.PUM.utilities.scrollTo(s(".pum-form__field.pum-form__field--error",e).eq(0))}},success:function(e,o){if(o=s.extend({},r,o)){var t=PUM.getPopup(e),n={},i=function(){o.openpopup&&PUM.getPopup(o.openpopup_id).length?PUM.open(o.openpopup_id):o.redirect_enabled&&(""!==o.redirect?window.location=o.redirect:window.location.reload(!0))};t.length&&(t.trigger("pumFormSuccess"),o.cookie&&(n=s.extend({name:"pum-"+PUM.getSetting(t,"id"),expires:"+1 year"},"object"==typeof o.cookie?o.cookie:{}),PUM.setCookie(t,n))),t.length&&o.closepopup?setTimeout(function(){t.popmake("close",i)},1e3*parseInt(o.closedelay)):i()}}})}(jQuery),function(e,o){"use strict";e.pum=e.pum||{},e.pum.hooks=e.pum.hooks||new function(){var t=Array.prototype.slice,i={removeFilter:function(e,o){return"string"==typeof e&&n("filters",e,o),i},applyFilters:function(){var e=t.call(arguments),o=e.shift();return"string"!=typeof o?i:r("filters",o,e)},addFilter:function(e,o,t,n){return"string"==typeof e&&"function"==typeof o&&(t=parseInt(t||10,10),s("filters",e,o,t,n)),i},removeAction:function(e,o){return"string"==typeof e&&n("actions",e,o),i},doAction:function(){var e=t.call(arguments),o=e.shift();return"string"==typeof o&&r("actions",o,e),i},addAction:function(e,o,t,n){return"string"==typeof e&&"function"==typeof o&&(t=parseInt(t||10,10),s("actions",e,o,t,n)),i}},a={actions:{},filters:{}};function n(e,o,t,n){var i,s,r;if(a[e][o])if(t)if(i=a[e][o],n)for(r=i.length;r--;)(s=i[r]).callback===t&&s.context===n&&i.splice(r,1);else for(r=i.length;r--;)i[r].callback===t&&i.splice(r,1);else a[e][o]=[]}function s(e,o,t,n,i){var s={callback:t,priority:n,context:i},r=a[e][o];r=r?(r.push(s),function(e){for(var o,t,n,i=1,s=e.length;i<s;i++){for(o=e[i],t=i;(n=e[t-1])&&n.priority>o.priority;)e[t]=e[t-1],--t;e[t]=o}return e}(r)):[s],a[e][o]=r}function r(e,o,t){var n,i,s=a[e][o];if(!s)return"filters"===e&&t[0];if(i=s.length,"filters"===e)for(n=0;n<i;n++)t[0]=s[n].callback.apply(s[n].context,t);else for(n=0;n<i;n++)s[n].callback.apply(s[n].context,t);return"filters"!==e||t[0]}return i}}(window),function(r){"use strict";var i={},e=!1;r(document).ready(function(){!1===e&&"undefined"!=typeof Marionette&&"undefined"!=typeof nfRadio&&(e=Marionette.Object.extend({initialize:function(){this.listenTo(nfRadio.channel("forms"),"submit:response",this.popupMaker)},popupMaker:function(e,o,t,n){var i=r("#nf-form-"+n+"-cont"),s={};e.errors.length||(void 0!==e.data.actions&&(s.openpopup=void 0!==e.data.actions.openpopup,s.openpopup_id=s.openpopup?parseInt(e.data.actions.openpopup):0,s.closepopup=void 0!==e.data.actions.closepopup,s.closedelay=s.closepopup?parseInt(e.data.actions.closepopup):0,s.closepopup&&e.data.actions.closedelay&&(s.closedelay=parseInt(e.data.actions.closedelay))),window.PUM.forms.success(i,s))}})),!1!==e&&new e,r(".gform_wrapper > form").each(function(){var e=r(this),o=e.attr("id").replace("gform_",""),t=e.find("input.gforms-pum"),n=!!t.length&&JSON.parse(t.val());n&&"object"==typeof n&&("object"==typeof n&&void 0!==n.closedelay&&3<=n.closedelay.toString().length&&(n.closedelay=n.closedelay/1e3),i[o]=n)})}).on("gform_confirmation_loaded",function(e,o){var t=r("#gform_confirmation_wrapper_"+o+",#gforms_confirmation_message_"+o),n=i[o]||!1;window.PUM.forms.success(t,n)}).on("wpcf7:mailsent",".wpcf7",function(e){var o=r(e.target),t=o.find("input.wpcf7-pum"),n=!!t.length&&JSON.parse(t.val());"object"==typeof n&&void 0!==n.closedelay&&3<=n.closedelay.toString().length&&(n.closedelay=n.closedelay/1e3),window.PUM.forms.success(o,n)})}(jQuery),function(i){"use strict";pum_vars&&void 0!==pum_vars.core_sub_forms_enabled&&!pum_vars.core_sub_forms_enabled||(window.PUM=window.PUM||{},window.PUM.newsletter=window.PUM.newsletter||{},i.extend(window.PUM.newsletter,{form:i.extend({},window.PUM.forms.form,{submit:function(e){var o=i(this),t=o.pumSerializeObject();e.preventDefault(),e.stopPropagation(),window.PUM.newsletter.form.beforeAjax(o),i.ajax({type:"POST",dataType:"json",url:pum_vars.ajaxurl,data:{action:"pum_sub_form",values:t}}).always(function(){window.PUM.newsletter.form.afterAjax(o)}).done(function(e){window.PUM.newsletter.form.responseHandler(o,e)}).error(function(e,o,t){console.log("Error: type of "+o+" with message of "+t)})}})}),i(document).on("submit","form.pum-sub-form",window.PUM.newsletter.form.submit).on("success","form.pum-sub-form",function(e,o){var t=i(e.target),n=t.data("settings")||{};t.trigger("pumNewsletterSuccess",[o]).addClass("pum-newsletter-success"),t[0].reset(),window.pum.hooks.doAction("pum-sub-form.success",o,t),"string"==typeof n.redirect&&""!==n.redirect&&(n.redirect=atob(n.redirect)),window.PUM.forms.success(t,n)}).on("error","form.pum-sub-form",function(e,o){var t=i(e.target);t.trigger("pumNewsletterError",[o]),window.pum.hooks.doAction("pum-sub-form.errors",o,t)}))}(jQuery),function(s,r,e){"use strict";s.extend(s.fn.popmake.methods,{addTrigger:function(e){return s.fn.popmake.triggers[e]?s.fn.popmake.triggers[e].apply(this,Array.prototype.slice.call(arguments,1)):(window.console&&console.warn("Trigger type "+e+" does not exist."),this)}}),s.fn.popmake.triggers={auto_open:function(e){var o=PUM.getPopup(this);setTimeout(function(){o.popmake("state","isOpen")||!o.popmake("checkCookies",e)&&o.popmake("checkConditions")&&(s.fn.popmake.last_open_trigger="Auto Open - Delay: "+e.delay,o.popmake("open"))},e.delay)},click_open:function(n){var e,i=PUM.getPopup(this),o=i.popmake("getSettings"),t=[".popmake-"+o.id,".popmake-"+decodeURIComponent(o.slug),'a[href$="#popmake-'+o.id+'"]'];n.extra_selectors&&""!==n.extra_selectors&&t.push(n.extra_selectors),e=(t=pum.hooks.applyFilters("pum.trigger.click_open.selectors",t,n,i)).join(", "),s(e).addClass("pum-trigger").css({cursor:"pointer"}),s(r).on("click.pumTrigger",e,function(e){var o=s(this),t=n.do_default||!1;0<i.has(o).length||i.popmake("state","isOpen")||!i.popmake("checkCookies",n)&&i.popmake("checkConditions")&&(o.data("do-default")?t=o.data("do-default"):(o.hasClass("do-default")||o.hasClass("popmake-do-default")||o.hasClass("pum-do-default"))&&(t=!0),e.ctrlKey||pum.hooks.applyFilters("pum.trigger.click_open.do_default",t,i,o)||(e.preventDefault(),e.stopPropagation()),s.fn.popmake.last_open_trigger=o,i.popmake("open"))})},admin_debug:function(){PUM.getPopup(this).popmake("open")}},s(r).on("pumInit",".pum",function(){var e,o=PUM.getPopup(this),t=o.popmake("getSettings").triggers||[],n=null;if(t.length)for(e=0;t.length>e;e+=1)n=t[e],o.popmake("addTrigger",n.type,n.settings)})}(jQuery,document),function(p,e,o){"use strict";var n="color,date,datetime,datetime-local,email,hidden,month,number,password,range,search,tel,text,time,url,week".split(","),i="select,textarea".split(","),s=/\[([^\]]*)\]/g;Array.prototype.indexOf||(Array.prototype.indexOf=function(e){if(null==this)throw new TypeError;var o=Object(this),t=o.length>>>0;if(0==t)return-1;var n=0;if(0<arguments.length&&((n=Number(arguments[1]))!=n?n=0:0!==n&&n!==1/0&&n!==-1/0&&(n=(0<n||-1)*Math.floor(Math.abs(n)))),t<=n)return-1;for(var i=0<=n?n:Math.max(t-Math.abs(n),0);i<t;i++)if(i in o&&o[i]===e)return i;return-1}),p.fn.popmake.utilities={scrollTo:function(e,o){var t=p(e)||p();t.length&&p("html, body").animate({scrollTop:t.offset().top-100},1e3,"swing",function(){var e=t.find(':input:not([type="button"]):not([type="hidden"]):not(button)').eq(0);e.hasClass("wp-editor-area")?tinyMCE.execCommand("mceFocus",!1,e.attr("id")):e.focus(),"function"==typeof o&&o()})},inArray:function(e,o){return!!~o.indexOf(e)},convert_hex:function(e,o){return e=e.replace("#",""),"rgba("+parseInt(e.substring(0,2),16)+","+parseInt(e.substring(2,4),16)+","+parseInt(e.substring(4,6),16)+","+o/100+")"},debounce:function(t,n){var i;return function(){var e=this,o=arguments;window.clearTimeout(i),i=window.setTimeout(function(){t.apply(e,o)},n)}},throttle:function(e,o){var t=!1,n=function(){t=!1};return function(){t||(e.apply(this,arguments),window.setTimeout(n,o),t=!0)}},getXPath:function(e){var t,n,i,s,r,a=[];return p.each(p(e).parents(),function(e,o){if(t=p(o),n=t.attr("id")||"",i=t.attr("class")||"",s=t.get(0).tagName.toLowerCase(),r=t.parent().children(s).index(t),"body"===s)return!1;0<i.length&&(i=(i=i.split(" "))[0]),a.push(s+(0<n.length?"#"+n:0<i.length?"."+i.split(" ").join("."):":eq("+r+")"))}),a.reverse().join(" > ")},strtotime:function(e,o){var t,n,i,s,r,a,p,u,l,c;if(!e)return!1;if((n=(e=e.replace(/^\s+|\s+$/g,"").replace(/\s{2,}/g," ").replace(/[\t\r\n]/g,"").toLowerCase()).match(/^(\d{1,4})([\-\.\/\:])(\d{1,2})([\-\.\/\:])(\d{1,4})(?:\s(\d{1,2}):(\d{2})?:?(\d{2})?)?(?:\s([A-Z]+)?)?$/))&&n[2]===n[4])if(1901<n[1])switch(n[2]){case"-":return!(12<n[3]||31<n[5])&&new Date(n[1],parseInt(n[3],10)-1,n[5],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3;case".":return!1;case"/":return!(12<n[3]||31<n[5])&&new Date(n[1],parseInt(n[3],10)-1,n[5],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3}else if(1901<n[5])switch(n[2]){case"-":case".":return!(12<n[3]||31<n[1])&&new Date(n[5],parseInt(n[3],10)-1,n[1],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3;case"/":return!(12<n[1]||31<n[3])&&new Date(n[5],parseInt(n[1],10)-1,n[3],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3}else switch(n[2]){case"-":return!(12<n[3]||31<n[5]||n[1]<70&&38<n[1])&&(s=0<=n[1]&&n[1]<=38?+n[1]+2e3:n[1],new Date(s,parseInt(n[3],10)-1,n[5],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3);case".":return 70<=n[5]?!(12<n[3]||31<n[1])&&new Date(n[5],parseInt(n[3],10)-1,n[1],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3:n[5]<60&&!n[6]&&(!(23<n[1]||59<n[3])&&(i=new Date,new Date(i.getFullYear(),i.getMonth(),i.getDate(),n[1]||0,n[3]||0,n[5]||0,n[9]||0)/1e3));case"/":return!(12<n[1]||31<n[3]||n[5]<70&&38<n[5])&&(s=0<=n[5]&&n[5]<=38?+n[5]+2e3:n[5],new Date(s,parseInt(n[1],10)-1,n[3],n[6]||0,n[7]||0,n[8]||0,n[9]||0)/1e3);case":":return!(23<n[1]||59<n[3]||59<n[5])&&(i=new Date,new Date(i.getFullYear(),i.getMonth(),i.getDate(),n[1]||0,n[3]||0,n[5]||0)/1e3)}if("now"===e)return null===o||isNaN(o)?(new Date).getTime()/1e3||0:o||0;if(t=Date.parse(e),!isNaN(t))return t/1e3||0;function m(e){var o=e.split(" "),t=o[0],n=o[1].substring(0,3),i=/\d+/.test(t),s=("last"===t?-1:1)*("ago"===o[2]?-1:1);if(i&&(s*=parseInt(t,10)),p.hasOwnProperty(n)&&!o[1].match(/^mon(day|\.)?$/i))return r["set"+p[n]](r["get"+p[n]]()+s);if("wee"===n)return r.setDate(r.getDate()+7*s);if("next"===t||"last"===t)!function(e,o,t){var n,i=a[o];void 0!==i&&(0==(n=i-r.getDay())?n=7*t:0<n&&"last"===e?n-=7:n<0&&"next"===e&&(n+=7),r.setDate(r.getDate()+n))}(t,n,s);else if(!i)return!1;return!0}if(r=o?new Date(1e3*o):new Date,a={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},p={yea:"FullYear",mon:"Month",day:"Date",hou:"Hours",min:"Minutes",sec:"Seconds"},"([+-]?\\d+\\s"+(l="(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?)")+"|(last|next)\\s"+l+")(\\sago)?",!(n=e.match(new RegExp("([+-]?\\d+\\s(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?)|(last|next)\\s(years?|months?|weeks?|days?|hours?|minutes?|min|seconds?|sec|sunday|sun\\.?|monday|mon\\.?|tuesday|tue\\.?|wednesday|wed\\.?|thursday|thu\\.?|friday|fri\\.?|saturday|sat\\.?))(\\sago)?","gi"))))return!1;for(c=0,u=n.length;c<u;c+=1)if(!m(n[c]))return!1;return r.getTime()/1e3},serializeObject:function(e){p.extend({},e);var o={},t=p.extend(!0,{include:[],exclude:[],includeByClass:""},e);return this.find(":input").each(function(){var e;!this.name||this.disabled||window.PUM.utilities.inArray(this.name,t.exclude)||t.include.length&&!window.PUM.utilities.inArray(this.name,t.include)||-1===this.className.indexOf(t.includeByClass)||(e=this.name.replace(s,"[$1").split("["))[0]&&(this.checked||window.PUM.utilities.inArray(this.type,n)||window.PUM.utilities.inArray(this.nodeName.toLowerCase(),i))&&("checkbox"===this.type&&e.push(""),function e(o,t,n){var i=t[0];1<t.length?(o[i]||(o[i]=t[1]?{}:[]),e(o[i],t.slice(1),n)):(i||(i=o.length),o[i]=n)}(o,e,p(this).val()))}),o}},p.fn.popmake.utilies=p.fn.popmake.utilities,window.PUM=window.PUM||{},window.PUM.utilities=window.PUM.utilities||{},window.PUM.utilities=p.extend(window.PUM.utilities,p.fn.popmake.utilities)}(jQuery,document),function(e,t){if("function"==typeof define&&define.amd)define(["exports","jquery"],function(e,o){return t(e,o)});else if("undefined"!=typeof exports){var o=require("jquery");t(exports,o)}else t(e,e.jQuery||e.Zepto||e.ender||e.$)}(this,function(e,a){var p={validate:/^[a-z_][a-z0-9_]*(?:\[(?:\d*|[a-z0-9_]+)\])*$/i,key:/[a-z0-9_]+|(?=\[\])/gi,push:/^$/,fixed:/^\d+$/,named:/^[a-z0-9_]+$/i};function o(n,t){var i={},s={};function r(e,o,t){return e[o]=t,e}function e(){return i}this.addPair=function(e){if(!p.validate.test(e.name))return this;var o=function(e,o){var t,n,i=e.match(p.key);try{o=JSON.parse(o)}catch(e){}for(;void 0!==(t=i.pop());)p.push.test(t)?o=r([],(n=e.replace(/\[\]$/,""),void 0===s[n]&&(s[n]=0),s[n]++),o):p.fixed.test(t)?o=r([],t,o):p.named.test(t)&&(o=r({},t,o));return o}(e.name,function(e){switch(a('[name="'+e.name+'"]',t).attr("type")){case"checkbox":return"1"===e.value||e.value;default:return e.value}}(e));return i=n.extend(!0,i,o),this},this.addPairs=function(e){if(!n.isArray(e))throw new Error("formSerializer.addPairs expects an Array");for(var o=0,t=e.length;o<t;o++)this.addPair(e[o]);return this},this.serialize=e,this.serializeJSON=function(){return JSON.stringify(e())}}return o.patterns=p,o.serializeObject=function(){var e;return e=this.is("form")?this.serializeArray():this.find(":input").serializeArray(),new o(a,this).addPairs(e).serialize()},o.serializeJSON=function(){var e;return e=this.is("form")?this.serializeArray():this.find(":input").serializeArray(),new o(a,this).addPairs(e).serializeJSON()},void 0!==a.fn&&(a.fn.pumSerializeObject=o.serializeObject,a.fn.pumSerializeJSON=o.serializeJSON),e.FormSerializer=o}),function(e,o,t){"use strict";e.fn.popmake.version=1.8,e.fn.popmake.last_open_popup=null,e(void 0).ready(function(){e(".pum").popmake(),e(void 0).trigger("pumInitialized"),"object"==typeof pum_vars.form_success&&(pum_vars.form_success=e.extend({popup_id:null,settings:{}}),PUM.forms.success(pum_vars.form_success.popup_id,pum_vars.form_success.settings))}),e(".pum").on("pumInit",function(){var e=PUM.getPopup(this),o=PUM.getSetting(e,"id"),t=e.find("form");t.length&&t.append('<input type="hidden" name="pum_form_popup_id" value="'+o+'" />')})}(jQuery);
/* Lazy Load XT 1.1.0 | MIT License */
!function(m,y,e,o){var p="lazyLoadXT",w="lazied",z="load error",t="lazy-hidden",C=e.documentElement||e.body,b={autoInit:!0,selector:"img[data-src]",blankImage:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",throttle:99,forceLoad:y.onscroll===o||!!y.operamini||!C.getBoundingClientRect,loadEvent:"pageshow",updateEvent:"load orientationchange resize scroll touchmove focus",forceEvent:"lazyloadall",oninit:{removeClass:"lazy"},onshow:{addClass:t},onload:{removeClass:t,addClass:"lazy-loaded"},onerror:{removeClass:t},checkDuplicates:!0},n={srcAttr:"data-src",edgeX:0,edgeY:0,visibleOnly:!0},a=m(y),E=m.isFunction,d=m.extend,T=m.data||function(e,t){return m(e).data(t)},L=[],I=0,r=0;function c(e,t){return e[t]===o?b[t]:e[t]}function X(){var e=y.pageYOffset;return e===o?C.scrollTop:e}function B(e,t){var o=b["on"+e];o&&(E(o)?o.call(t[0]):(o.addClass&&t.addClass(o.addClass),o.removeClass&&t.removeClass(o.removeClass))),t.trigger("lazy"+e,[t]),u()}function k(e){B(e.type,m(this).off(z,k))}function i(e){if(L.length){e=e||b.forceLoad,I=1/0;var t,o,n=X(),a=y.innerHeight||C.clientHeight,r=y.innerWidth||C.clientWidth;for(t=0,o=L.length;t<o;t++){var i,s=L[t],l=s[0],d=s[p],c=!1,u=e||T(l,w)<0;if(m.contains(C,l)){if(e||!d.visibleOnly||l.offsetWidth||l.offsetHeight){if(!u){var f=l.getBoundingClientRect(),h=d.edgeX,v=d.edgeY;u=(i=f.top+n-v-a)<=n&&f.bottom>-v&&f.left<=r+h&&f.right>-h}if(u){s.on(z,k),B("show",s);var A=d.srcAttr,g=E(A)?A(s):l.getAttribute(A);g&&(l.src=g),c=!0}else i<I&&(I=i)}}else c=!0;c&&(L.splice(t--,1),o--)}o||B("complete",m(C))}}function s(){1<r?(r=1,i(),setTimeout(s,b.throttle)):r=0}function u(e){L.length&&(e&&"scroll"===e.type&&e.currentTarget===y&&I>=X()||(r||setTimeout(s,0),r=2))}function l(){a.lazyLoadXT()}function f(){i(!0)}m[p]=d(b,n,m[p]),m.fn[p]=function(a){var e,r=c(a=a||{},"blankImage"),i=c(a,"checkDuplicates"),t=c(a,"scrollContainer"),s=c(a,"show"),l={};for(e in m(t).on("scroll",u),n)l[e]=c(a,e);return this.each(function(e,t){if(t===y)m(b.selector).lazyLoadXT(a);else{var o=i&&T(t,w),n=m(t).data(w,s?-1:1);if(o)return void u();r&&"IMG"===t.tagName&&!t.src&&(t.src=r),n[p]=d({},l),B("init",n),L.push(n),u()}})},m(e).ready(function(){B("start",a),a.on(b.updateEvent,u).on(b.forceEvent,f),m(e).on(b.updateEvent,u),b.autoInit&&(a.on(b.loadEvent,l),l())})}(window.jQuery||window.Zepto||window.$,window,document),function(s){var o=s.lazyLoadXT;o.selector+=",video,iframe[data-src],embed[data-src]",o.videoPoster="data-poster",s(document).on("lazyshow","video",function(e,t){var a=t.lazyLoadXT.srcAttr,r=s.isFunction(a),i=!1;t.attr("poster",t.attr(o.videoPoster)),t.children("source,track").each(function(e,t){var o=s(t),n=r?a(o):o.attr(a);n&&(o.attr("src",n),i=!0)}),i&&void 0!==s(this).attr("preload")&&"none"!=s(this).attr("preload")&&this.load(),s(this).removeClass("lazy-hidden")}),s(document).on("lazyshow","embed",function(e,t){s(this).removeClass("lazy-hidden")})}(window.jQuery||window.Zepto||window.$);
/* Lazy Load XT 1.1.0 | MIT License */
!function(c,i,o,t){var d,u,l=c.lazyLoadXT,n="srcset"in new Image,x=/^\s*(\S*)/,w=/\S\s+(\d+)w/,f=/\S\s+(\d+)h/,h=/\S\s+([\d\.]+)x/,p=[0,1/0],m=[0,1],e={srcsetAttr:"data-srcset",srcsetExtended:!0,srcsetBaseAttr:"data-srcset-base",srcsetExtAttr:"data-srcset-ext"},g={w:0,h:0,x:0};for(d in e)void 0===l[d]&&(l[d]=e[d]);function A(t,e){return Math[e].apply(null,c.map(t,function(t){return t[d]}))}function v(t){return t[d]>=g[d]||t[d]===u}function E(t){return t[d]===u}function s(t){var e=t.attr(l.srcsetAttr);if(!e)return!1;var r=c.map(e.replace(/(\s[\d.]+[whx]),/g,"$1 @,@ ").split(" @,@ "),function(t){return{url:x.exec(t)[1],w:parseFloat((w.exec(t)||p)[1]),h:parseFloat((f.exec(t)||p)[1]),x:parseFloat((h.exec(t)||m)[1])}});if(!r.length)return!1;var n,s,a=o.documentElement;for(n in g={w:i.innerWidth||a.clientWidth,h:i.innerHeight||a.clientHeight,x:i.devicePixelRatio||1})d=n,u=A(r,"max"),r=c.grep(r,v);for(n in g)d=n,u=A(r,"min"),r=c.grep(r,E);return s=r[0].url,l.srcsetExtended&&(s=(t.attr(l.srcsetBaseAttr)||"")+s+(t.attr(l.srcsetExtAttr)||"")),s}l.selector+=",img["+l.srcsetAttr+"]",c(o).on("lazyshow","img",function(t,e){var r=e.attr(l.srcsetAttr);r&&(!l.srcsetExtended&&n?(e.attr("srcset",r),e.attr("data-srcset","")):e.lazyLoadXT.srcAttr=s)})}(window.jQuery||window.Zepto||window.$,window,document);
jQuery.lazyLoadXT.updateEvent='load orientationchange resize scroll touchmove focus click customlazyloadxtevent';jQuery.lazyLoadXT.edgeY=a3_lazyload_extend_params.edgeY;jQuery.lazyLoadXT.srcsetExtended=!1;jQuery(document).ready(function($){jQuery(document).on('mouseenter','.site-header-cart',function(){jQuery(document).trigger('customlazyloadxtevent')});jQuery(document).on('mouseenter','.widget_shopping_cart',function(){jQuery(document).trigger('customlazyloadxtevent')});jQuery(document).on('mouseover','#wp-admin-bar-top-secondary',function(){jQuery(document).trigger('customlazyloadxtevent')})});jQuery(window).on('ajaxComplete',function(){setTimeout(function(){jQuery(window).lazyLoadXT()},1000)});
!function($){"use strict";var escape=/["\\\x00-\x1f\x7f-\x9f]/g,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},hasOwn=Object.prototype.hasOwnProperty;$.toJSON="object"==typeof JSON&&JSON.stringify?JSON.stringify:function(t){if(null===t)return"null";var e,r,n,o,i=$.type(t);if("undefined"!==i){if("number"===i||"boolean"===i)return String(t);if("string"===i)return $.quoteString(t);if("function"==typeof t.toJSON)return $.toJSON(t.toJSON());if("date"===i){var f=t.getUTCMonth()+1,u=t.getUTCDate(),s=t.getUTCFullYear(),a=t.getUTCHours(),l=t.getUTCMinutes(),c=t.getUTCSeconds(),p=t.getUTCMilliseconds();return f<10&&(f="0"+f),u<10&&(u="0"+u),a<10&&(a="0"+a),l<10&&(l="0"+l),c<10&&(c="0"+c),p<100&&(p="0"+p),p<10&&(p="0"+p),'"'+s+"-"+f+"-"+u+"T"+a+":"+l+":"+c+"."+p+'Z"'}if(e=[],$.isArray(t)){for(r=0;r<t.length;r++)e.push($.toJSON(t[r])||"null");return"["+e.join(",")+"]"}if("object"==typeof t){for(r in t)if(hasOwn.call(t,r)){if("number"===(i=typeof r))n='"'+r+'"';else{if("string"!==i)continue;n=$.quoteString(r)}"function"!==(i=typeof t[r])&&"undefined"!==i&&(o=$.toJSON(t[r]),e.push(n+":"+o))}return"{"+e.join(",")+"}"}}},$.evalJSON="object"==typeof JSON&&JSON.parse?JSON.parse:function(str){return eval("("+str+")")},$.secureEvalJSON="object"==typeof JSON&&JSON.parse?JSON.parse:function(str){var filtered=str.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(filtered))return eval("("+str+")");throw new SyntaxError("Error parsing JSON, source is not valid.")},$.quoteString=function(t){return t.match(escape)?'"'+t.replace(escape,function(t){var e=meta[t];return"string"==typeof e?e:(e=t.charCodeAt(),"\\u00"+Math.floor(e/16).toString(16)+(e%16).toString(16))})+'"':'"'+t+'"'}}(jQuery);
