var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); !function(e,t,i,n){var o=i("html"),a=i(e),r=i(t),l=i.fancybox=function(){l.open.apply(this,arguments)},s=navigator.userAgent.match(/msie/i),c=null,d=t.createTouch!==n,p=function(e){return e&&e.hasOwnProperty&&e instanceof i},h=function(e){return e&&"string"===i.type(e)},f=function(e){return h(e)&&0<e.indexOf("%")},u=function(e,t){var i=parseInt(e,10)||0;return t&&f(e)&&(i*=l.getViewport()[t]/100),Math.ceil(i)},g=function(e,t){return u(e,t)+"px"};i.extend(l,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!d,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(s?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeChange:i.noop,beforeClose:i.noop,afterClose:i.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(e,t){if(e&&(i.isPlainObject(t)||(t={}),!1!==l.close(!0)))return i.isArray(e)||(e=p(e)?i(e).get():[e]),i.each(e,function(o,a){var r,s,c,d,f,u={};"object"===i.type(a)&&(a.nodeType&&(a=i(a)),p(a)?(u={href:a.data("fancybox-href")||a.attr("href"),title:a.data("fancybox-title")||a.attr("title"),isDom:!0,element:a},i.metadata&&i.extend(!0,u,a.metadata())):u=a),r=t.href||u.href||(h(a)?a:null),s=t.title!==n?t.title:u.title||"",!(d=(c=t.content||u.content)?"html":t.type||u.type)&&u.isDom&&((d=a.data("fancybox-type"))||(d=(d=a.prop("class").match(/fancybox\.(\w+)/))?d[1]:null)),h(r)&&(d||(l.isImage(r)?d="image":l.isSWF(r)?d="swf":"#"===r.charAt(0)?d="inline":h(a)&&(d="html",c=a)),"ajax"===d&&(f=r.split(/\s+/,2),r=f.shift(),f=f.shift())),c||("inline"===d?r?c=i(h(r)?r.replace(/.*(?=#[^\s]+$)/,""):r):u.isDom&&(c=a):"html"===d?c=r:!d&&!r&&u.isDom&&(d="inline",c=a)),i.extend(u,{href:r,type:d,content:c,title:s,selector:f}),e[o]=u}),l.opts=i.extend(!0,{},l.defaults,t),t.keys!==n&&(l.opts.keys=!!t.keys&&i.extend({},l.defaults.keys,t.keys)),l.group=e,l._start(l.opts.index)},cancel:function(){var e=l.coming;e&&!1!==l.trigger("onCancel")&&(l.hideLoading(),l.ajaxLoad&&l.ajaxLoad.abort(),l.ajaxLoad=null,l.imgPreload&&(l.imgPreload.onload=l.imgPreload.onerror=null),e.wrap&&e.wrap.stop(!0,!0).trigger("onReset").remove(),l.coming=null,l.current||l._afterZoomOut(e))},close:function(e){l.cancel(),!1!==l.trigger("beforeClose")&&(l.unbindEvents(),l.isActive&&(l.isOpen&&!0!==e?(l.isOpen=l.isOpened=!1,l.isClosing=!0,i(".fancybox-item, .fancybox-nav").remove(),l.wrap.stop(!0,!0).removeClass("fancybox-opened"),l.transitions[l.current.closeMethod]()):(i(".fancybox-wrap").stop(!0).trigger("onReset").remove(),l._afterZoomOut())))},play:function(e){var t=function(){clearTimeout(l.player.timer)},i=function(){t(),l.current&&l.player.isActive&&(l.player.timer=setTimeout(l.next,l.current.playSpeed))},n=function(){t(),r.unbind(".player"),l.player.isActive=!1,l.trigger("onPlayEnd")};!0===e||!l.player.isActive&&!1!==e?l.current&&(l.current.loop||l.current.index<l.group.length-1)&&(l.player.isActive=!0,r.bind({"onCancel.player beforeClose.player":n,"onUpdate.player":i,"beforeLoad.player":t}),i(),l.trigger("onPlayStart")):n()},next:function(e){var t=l.current;t&&(h(e)||(e=t.direction.next),l.jumpto(t.index+1,e,"next"))},prev:function(e){var t=l.current;t&&(h(e)||(e=t.direction.prev),l.jumpto(t.index-1,e,"prev"))},jumpto:function(e,t,i){var o=l.current;o&&(e=u(e),l.direction=t||o.direction[e>=o.index?"next":"prev"],l.router=i||"jumpto",o.loop&&(0>e&&(e=o.group.length+e%o.group.length),e%=o.group.length),o.group[e]!==n&&(l.cancel(),l._start(e)))},reposition:function(e,t){var n,o=l.current,a=o?o.wrap:null;a&&(n=l._getPosition(t),e&&"scroll"===e.type?(delete n.position,a.stop(!0,!0).animate(n,200)):(a.css(n),o.pos=i.extend({},o.dim,n)))},update:function(e){var t=e&&e.type,i=!t||"orientationchange"===t;i&&(clearTimeout(c),c=null),l.isOpen&&!c&&(c=setTimeout(function(){var n=l.current;n&&!l.isClosing&&(l.wrap.removeClass("fancybox-tmp"),(i||"load"===t||"resize"===t&&n.autoResize)&&l._setDimension(),"scroll"===t&&n.canShrink||l.reposition(e),l.trigger("onUpdate"),c=null)},i&&!d?0:300))},toggle:function(e){l.isOpen&&(l.current.fitToView="boolean"===i.type(e)?e:!l.current.fitToView,d&&(l.wrap.removeAttr("style").addClass("fancybox-tmp"),l.trigger("onUpdate")),l.update())},hideLoading:function(){r.unbind(".loading"),i("#fancybox-loading").remove()},showLoading:function(){var e,t;l.hideLoading(),e=i('<div id="fancybox-loading"><div></div></div>').click(l.cancel).appendTo("body"),r.bind("keydown.loading",function(e){27===(e.which||e.keyCode)&&(e.preventDefault(),l.cancel())}),l.defaults.fixed||(t=l.getViewport(),e.css({position:"absolute",top:.5*t.h+t.y,left:.5*t.w+t.x}))},getViewport:function(){var t=l.current&&l.current.locked||!1,i={x:a.scrollLeft(),y:a.scrollTop()};return t?(i.w=t[0].clientWidth,i.h=t[0].clientHeight):(i.w=d&&e.innerWidth?e.innerWidth:a.width(),i.h=d&&e.innerHeight?e.innerHeight:a.height()),i},unbindEvents:function(){l.wrap&&p(l.wrap)&&l.wrap.unbind(".fb"),r.unbind(".fb"),a.unbind(".fb")},bindEvents:function(){var e,t=l.current;t&&(a.bind("orientationchange.fb"+(d?"":" resize.fb")+(t.autoCenter&&!t.locked?" scroll.fb":""),l.update),(e=t.keys)&&r.bind("keydown.fb",function(o){var a=o.which||o.keyCode,r=o.target||o.srcElement;if(27===a&&l.coming)return!1;!o.ctrlKey&&!o.altKey&&!o.shiftKey&&!o.metaKey&&(!r||!r.type&&!i(r).is("[contenteditable]"))&&i.each(e,function(e,r){return 1<t.group.length&&r[a]!==n?(l[e](r[a]),o.preventDefault(),!1):-1<i.inArray(a,r)?(l[e](),o.preventDefault(),!1):void 0})}),i.fn.mousewheel&&t.mouseWheel&&l.wrap.bind("mousewheel.fb",function(e,n,o,a){for(var r=i(e.target||null),s=!1;r.length&&!s&&!r.is(".fancybox-skin")&&!r.is(".fancybox-wrap");)s=r[0]&&!(r[0].style.overflow&&"hidden"===r[0].style.overflow)&&(r[0].clientWidth&&r[0].scrollWidth>r[0].clientWidth||r[0].clientHeight&&r[0].scrollHeight>r[0].clientHeight),r=i(r).parent();0!==n&&!s&&1<l.group.length&&!t.canShrink&&(0<a||0<o?l.prev(0<a?"down":"left"):(0>a||0>o)&&l.next(0>a?"up":"right"),e.preventDefault())}))},trigger:function(e,t){var n,o=t||l.coming||l.current;if(o){if(i.isFunction(o[e])&&(n=o[e].apply(o,Array.prototype.slice.call(arguments,1))),!1===n)return!1;o.helpers&&i.each(o.helpers,function(t,n){n&&l.helpers[t]&&i.isFunction(l.helpers[t][e])&&l.helpers[t][e](i.extend(!0,{},l.helpers[t].defaults,n),o)}),r.trigger(e)}},isImage:function(e){return h(e)&&e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(e){return h(e)&&e.match(/\.(swf)((\?|#).*)?$/i)},_start:function(e){var t,n,o={};if(e=u(e),!(t=l.group[e]||null))return!1;if(t=(o=i.extend(!0,{},l.opts,t)).margin,n=o.padding,"number"===i.type(t)&&(o.margin=[t,t,t,t]),"number"===i.type(n)&&(o.padding=[n,n,n,n]),o.modal&&i.extend(!0,o,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),o.autoSize&&(o.autoWidth=o.autoHeight=!0),"auto"===o.width&&(o.autoWidth=!0),"auto"===o.height&&(o.autoHeight=!0),o.group=l.group,o.index=e,l.coming=o,!1===l.trigger("beforeLoad"))l.coming=null;else{if(n=o.type,t=o.href,!n)return l.coming=null,!(!l.current||!l.router||"jumpto"===l.router)&&(l.current.index=e,l[l.router](l.direction));if(l.isActive=!0,"image"!==n&&"swf"!==n||(o.autoHeight=o.autoWidth=!1,o.scrolling="visible"),"image"===n&&(o.aspectRatio=!0),"iframe"===n&&d&&(o.scrolling="scroll"),o.wrap=i(o.tpl.wrap).addClass("fancybox-"+(d?"mobile":"desktop")+" fancybox-type-"+n+" fancybox-tmp "+o.wrapCSS).appendTo(o.parent||"body"),i.extend(o,{skin:i(".fancybox-skin",o.wrap),outer:i(".fancybox-outer",o.wrap),inner:i(".fancybox-inner",o.wrap)}),i.each(["Top","Right","Bottom","Left"],function(e,t){o.skin.css("padding"+t,g(o.padding[e]))}),l.trigger("onReady"),"inline"===n||"html"===n){if(!o.content||!o.content.length)return l._error("content")}else if(!t)return l._error("href");"image"===n?l._loadImage():"ajax"===n?l._loadAjax():"iframe"===n?l._loadIframe():l._afterLoad()}},_error:function(e){i.extend(l.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:e,content:l.coming.tpl.error}),l._afterLoad()},_loadImage:function(){var e=l.imgPreload=new Image;e.onload=function(){this.onload=this.onerror=null,l.coming.width=this.width/l.opts.pixelRatio,l.coming.height=this.height/l.opts.pixelRatio,l._afterLoad()},e.onerror=function(){this.onload=this.onerror=null,l._error("image")},e.src=l.coming.href,!0!==e.complete&&l.showLoading()},_loadAjax:function(){var e=l.coming;l.showLoading(),l.ajaxLoad=i.ajax(i.extend({},e.ajax,{url:e.href,error:function(e,t){l.coming&&"abort"!==t?l._error("ajax",e):l.hideLoading()},success:function(t,i){"success"===i&&(e.content=t,l._afterLoad())}}))},_loadIframe:function(){var e=l.coming,t=i(e.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",d?"auto":e.iframe.scrolling).attr("src",e.href);i(e.wrap).bind("onReset",function(){try{i(this).find("iframe").hide().attr("src","//webcf.waybackmachine.org/web/20220331213512/https://about:blank").end().empty()}catch(e){}}),e.iframe.preload&&(l.showLoading(),t.one("load",function(){i(this).data("ready",1),d||i(this).bind("load.fb",l.update),i(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),l._afterLoad()})),e.content=t.appendTo(e.inner),e.iframe.preload||l._afterLoad()},_preloadImages:function(){var e,t,i=l.group,n=l.current,o=i.length,a=n.preload?Math.min(n.preload,o-1):0;for(t=1;t<=a;t+=1)"image"===(e=i[(n.index+t)%o]).type&&e.href&&((new Image).src=e.href)},_afterLoad:function(){var e,t,n,o,a,r=l.coming,s=l.current;if(l.hideLoading(),r&&!1!==l.isActive)if(!1===l.trigger("afterLoad",r,s))r.wrap.stop(!0).trigger("onReset").remove(),l.coming=null;else{switch(s&&(l.trigger("beforeChange",s),s.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),l.unbindEvents(),e=r.content,t=r.type,n=r.scrolling,i.extend(l,{wrap:r.wrap,skin:r.skin,outer:r.outer,inner:r.inner,current:r,previous:s}),o=r.href,t){case"inline":case"ajax":case"html":r.selector?e=i("<div>").html(e).find(r.selector):p(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",i('<div class="fancybox-placeholder"></div>').insertAfter(e).hide()),e=e.show().detach(),r.wrap.bind("onReset",function(){i(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case"image":e=r.tpl.image.replace("{href}",o);break;case"swf":e='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+o+'"></param>',a="",i.each(r.swf,function(t,i){e+='<param name="'+t+'" value="'+i+'"></param>',a+=" "+t+'="'+i+'"'}),e+='<embed src="'+o+'" type="application/x-shockwave-flash" width="100%" height="100%"'+a+"></embed></object>"}(!p(e)||!e.parent().is(r.inner))&&r.inner.append(e),l.trigger("beforeShow"),r.inner.css("overflow","yes"===n?"scroll":"no"===n?"hidden":n),l._setDimension(),l.reposition(),l.isOpen=!1,l.coming=null,l.bindEvents(),l.isOpened?s.prevMethod&&l.transitions[s.prevMethod]():i(".fancybox-wrap").not(r.wrap).stop(!0).trigger("onReset").remove(),l.transitions[l.isOpened?r.nextMethod:r.openMethod](),l._preloadImages()}},_setDimension:function(){var e,t,n,o,a,r,s,c,d,p=l.getViewport(),h=0,m=!1,y=!1,x=(m=l.wrap,l.skin),v=l.inner,w=l.current,b=(y=w.width,w.height),k=w.minWidth,C=w.minHeight,O=w.maxWidth,W=w.maxHeight,_=w.scrolling,S=w.scrollOutside?w.scrollbarWidth:0,T=w.margin,L=u(T[1]+T[3]),E=u(T[0]+T[2]);if(m.add(x).add(v).width("auto").height("auto").removeClass("fancybox-tmp"),t=L+(T=u(x.outerWidth(!0)-x.width())),n=E+(e=u(x.outerHeight(!0)-x.height())),o=f(y)?(p.w-t)*u(y)/100:y,a=f(b)?(p.h-n)*u(b)/100:b,"iframe"===w.type){if(d=w.content,w.autoHeight&&1===d.data("ready"))try{d[0].contentWindow.document.location&&(v.width(o).height(9999),r=d.contents().find("body"),S&&r.css("overflow-x","hidden"),a=r.outerHeight(!0))}catch(e){}}else(w.autoWidth||w.autoHeight)&&(v.addClass("fancybox-tmp"),w.autoWidth||v.width(o),w.autoHeight||v.height(a),w.autoWidth&&(o=v.width()),w.autoHeight&&(a=v.height()),v.removeClass("fancybox-tmp"));if(y=u(o),b=u(a),c=o/a,k=u(f(k)?u(k,"w")-t:k),O=u(f(O)?u(O,"w")-t:O),C=u(f(C)?u(C,"h")-n:C),r=O,s=W=u(f(W)?u(W,"h")-n:W),w.fitToView&&(O=Math.min(p.w-t,O),W=Math.min(p.h-n,W)),t=p.w-L,E=p.h-E,w.aspectRatio?(y>O&&(b=u((y=O)/c)),b>W&&(y=u((b=W)*c)),y<k&&(b=u((y=k)/c)),b<C&&(y=u((b=C)*c))):(y=Math.max(k,Math.min(y,O)),w.autoHeight&&"iframe"!==w.type&&(v.width(y),b=v.height()),b=Math.max(C,Math.min(b,W))),w.fitToView)if(v.width(y).height(b),m.width(y+T),p=m.width(),L=m.height(),w.aspectRatio)for(;(p>t||L>E)&&y>k&&b>C&&!(19<h++);)b=Math.max(C,Math.min(W,b-10)),(y=u(b*c))<k&&(b=u((y=k)/c)),y>O&&(b=u((y=O)/c)),v.width(y).height(b),m.width(y+T),p=m.width(),L=m.height();else y=Math.max(k,Math.min(y,y-(p-t))),b=Math.max(C,Math.min(b,b-(L-E)));S&&"auto"===_&&b<a&&y+T+S<t&&(y+=S),v.width(y).height(b),m.width(y+T),p=m.width(),L=m.height(),m=(p>t||L>E)&&y>k&&b>C,y=w.aspectRatio?y<r&&b<s&&y<o&&b<a:(y<r||b<s)&&(y<o||b<a),i.extend(w,{dim:{width:g(p),height:g(L)},origWidth:o,origHeight:a,canShrink:m,canExpand:y,wPadding:T,hPadding:e,wrapSpace:L-x.outerHeight(!0),skinSpace:x.height()-b}),!d&&w.autoHeight&&b>C&&b<W&&!y&&v.height("auto")},_getPosition:function(e){var t=l.current,i=l.getViewport(),n=t.margin,o=l.wrap.width()+n[1]+n[3],a=l.wrap.height()+n[0]+n[2];n={position:"absolute",top:n[0],left:n[3]};return t.autoCenter&&t.fixed&&!e&&a<=i.h&&o<=i.w?n.position="fixed":t.locked||(n.top+=i.y,n.left+=i.x),n.top=g(Math.max(n.top,n.top+(i.h-a)*t.topRatio)),n.left=g(Math.max(n.left,n.left+(i.w-o)*t.leftRatio)),n},_afterZoomIn:function(){var e=l.current;e&&(l.isOpen=l.isOpened=!0,l.wrap.css("overflow","visible").addClass("fancybox-opened"),l.update(),(e.closeClick||e.nextClick&&1<l.group.length)&&l.inner.css("cursor","pointer").bind("click.fb",function(t){!i(t.target).is("a")&&!i(t.target).parent().is("a")&&(t.preventDefault(),l[e.closeClick?"close":"next"]())}),e.closeBtn&&i(e.tpl.closeBtn).appendTo(l.skin).bind("click.fb",function(e){e.preventDefault(),l.close()}),e.arrows&&1<l.group.length&&((e.loop||0<e.index)&&i(e.tpl.prev).appendTo(l.outer).bind("click.fb",l.prev),(e.loop||e.index<l.group.length-1)&&i(e.tpl.next).appendTo(l.outer).bind("click.fb",l.next)),l.trigger("afterShow"),e.loop||e.index!==e.group.length-1?l.opts.autoPlay&&!l.player.isActive&&(l.opts.autoPlay=!1,l.play()):l.play(!1))},_afterZoomOut:function(e){e=e||l.current,i(".fancybox-wrap").trigger("onReset").remove(),i.extend(l,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),l.trigger("afterClose",e)}}),l.transitions={getOrigPosition:function(){var e=l.current,t=e.element,i=e.orig,n={},o=50,a=50,r=e.hPadding,s=e.wPadding,c=l.getViewport();return!i&&e.isDom&&t.is(":visible")&&((i=t.find("img:first")).length||(i=t)),p(i)?(n=i.offset(),i.is("img")&&(o=i.outerWidth(),a=i.outerHeight())):(n.top=c.y+(c.h-a)*e.topRatio,n.left=c.x+(c.w-o)*e.leftRatio),("fixed"===l.wrap.css("position")||e.locked)&&(n.top-=c.y,n.left-=c.x),{top:g(n.top-r*e.topRatio),left:g(n.left-s*e.leftRatio),width:g(o+s),height:g(a+r)}},step:function(e,t){var i,n,o=t.prop,a=(n=l.current).wrapSpace,r=n.skinSpace;"width"!==o&&"height"!==o||(i=t.end===t.start?1:(e-t.start)/(t.end-t.start),l.isClosing&&(i=1-i),n=e-(n="width"===o?n.wPadding:n.hPadding),l.skin[o](u("width"===o?n:n-a*i)),l.inner[o](u("width"===o?n:n-a*i-r*i)))},zoomIn:function(){var e=l.current,t=e.pos,n=e.openEffect,o="elastic"===n,a=i.extend({opacity:1},t);delete a.position,o?(t=this.getOrigPosition(),e.openOpacity&&(t.opacity=.1)):"fade"===n&&(t.opacity=.1),l.wrap.css(t).animate(a,{duration:"none"===n?0:e.openSpeed,easing:e.openEasing,step:o?this.step:null,complete:l._afterZoomIn})},zoomOut:function(){var e=l.current,t=e.closeEffect,i="elastic"===t,n={opacity:.1};i&&(n=this.getOrigPosition(),e.closeOpacity&&(n.opacity=.1)),l.wrap.animate(n,{duration:"none"===t?0:e.closeSpeed,easing:e.closeEasing,step:i?this.step:null,complete:l._afterZoomOut})},changeIn:function(){var e,t=l.current,i=t.nextEffect,n=t.pos,o={opacity:1},a=l.direction;n.opacity=.1,"elastic"===i&&(e="down"===a||"up"===a?"top":"left","down"===a||"right"===a?(n[e]=g(u(n[e])-200),o[e]="+=200px"):(n[e]=g(u(n[e])+200),o[e]="-=200px")),"none"===i?l._afterZoomIn():l.wrap.css(n).animate(o,{duration:t.nextSpeed,easing:t.nextEasing,complete:l._afterZoomIn})},changeOut:function(){var e=l.previous,t=e.prevEffect,n={opacity:.1},o=l.direction;"elastic"===t&&(n["down"===o||"up"===o?"top":"left"]=("up"===o||"left"===o?"-":"+")+"=200px"),e.wrap.animate(n,{duration:"none"===t?0:e.prevSpeed,easing:e.prevEasing,complete:function(){i(this).trigger("onReset").remove()}})}},l.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!d,fixed:!0},overlay:null,fixed:!1,el:i("html"),create:function(e){e=i.extend({},this.defaults,e),this.overlay&&this.close(),this.overlay=i('<div class="fancybox-overlay"></div>').appendTo(l.coming?l.coming.parent:e.parent),this.fixed=!1,e.fixed&&l.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(e){var t=this;e=i.extend({},this.defaults,e),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(e),this.fixed||(a.bind("resize.overlay",i.proxy(this.update,this)),this.update()),e.closeClick&&this.overlay.bind("click.overlay",function(e){if(i(e.target).hasClass("fancybox-overlay"))return l.isActive?l.close():t.close(),!1}),this.overlay.css(e.css).show()},close:function(){var e,t;a.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(i(".fancybox-margin").removeClass("fancybox-margin"),e=a.scrollTop(),t=a.scrollLeft(),this.el.removeClass("fancybox-lock"),a.scrollTop(e).scrollLeft(t)),i(".fancybox-overlay").remove().hide(),i.extend(this,{overlay:null,fixed:!1})},update:function(){var e,i="100%";this.overlay.width(i).height("100%"),s?(e=Math.max(t.documentElement.offsetWidth,t.body.offsetWidth),r.width()>e&&(i=r.width())):r.width()>a.width()&&(i=r.width()),this.overlay.width(i).height(r.height())},onReady:function(e,t){var n=this.overlay;i(".fancybox-overlay").stop(!0,!0),n||this.create(e),e.locked&&this.fixed&&t.fixed&&(n||(this.margin=r.height()>a.height()&&i("html").css("margin-right").replace("px","")),t.locked=this.overlay.append(t.wrap),t.fixed=!1),!0===e.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(e,t){var n,o;t.locked&&(!1!==this.margin&&(i("*").filter(function(){return"fixed"===i(this).css("position")&&!i(this).hasClass("fancybox-overlay")&&!i(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),n=a.scrollTop(),o=a.scrollLeft(),this.el.addClass("fancybox-lock"),a.scrollTop(n).scrollLeft(o)),this.open(e)},onUpdate:function(){this.fixed||this.update()},afterClose:function(e){this.overlay&&!l.coming&&this.overlay.fadeOut(e.speedOut,i.proxy(this.close,this))}},l.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(e){var t=l.current,n=t.title,o=e.type;if(i.isFunction(n)&&(n=n.call(t.element,t)),h(n)&&""!==i.trim(n)){switch(t=i('<div class="fancybox-title fancybox-title-'+o+'-wrap">'+n+"</div>"),o){case"inside":o=l.skin;break;case"outside":o=l.wrap;break;case"over":o=l.inner;break;default:o=l.skin,t.appendTo("body"),s&&t.width(t.width()),t.wrapInner('<span class="child"></span>'),l.current.margin[2]+=Math.abs(u(t.css("margin-bottom")))}t["top"===e.position?"prependTo":"appendTo"](o)}}},i.fn.fancybox=function(e){var t,n=i(this),o=this.selector||"",a=function(a){var r,s,c=i(this).blur(),d=t;!a.ctrlKey&&!a.altKey&&!a.shiftKey&&!a.metaKey&&!c.is(".fancybox-wrap")&&(r=e.groupAttr||"data-fancybox-group",(s=c.attr(r))||(r="rel",s=c.get(0)[r]),s&&""!==s&&"nofollow"!==s&&(d=(c=(c=o.length?i(o):n).filter("["+r+'="'+s+'"]')).index(this)),e.index=d,!1!==l.open(c,e)&&a.preventDefault())};return t=(e=e||{}).index||0,o&&!1!==e.live?r.undelegate(o,"click.fb-start").delegate(o+":not('.fancybox-item, .fancybox-nav')","click.fb-start",a):n.unbind("click.fb-start").bind("click.fb-start",a),this.filter("[data-fancybox-start=1]").trigger("click"),this},r.ready(function(){var t,a;if(i.scrollbarWidth===n&&(i.scrollbarWidth=function(){var e=i('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),t=(t=e.children()).innerWidth()-t.height(99).innerWidth();return e.remove(),t}),i.support.fixedPosition===n){t=i.support;var r=20===(a=i('<div style="position:fixed;top:20px;"></div>').appendTo("body"))[0].offsetTop||15===a[0].offsetTop;a.remove(),t.fixedPosition=r}i.extend(l.defaults,{scrollbarWidth:i.scrollbarWidth(),fixed:i.support.fixedPosition,parent:i("body")}),t=i(e).width(),o.addClass("fancybox-lock-test"),a=i(e).width(),o.removeClass("fancybox-lock-test"),i("<style type='text/css'>.fancybox-margin{margin-right:"+(a-t)+"px;}</style>").appendTo("head")})}(window,document,jQuery);;!function(){"use strict";var t,e=[];function n(){for(;e.length;)e[0](),e.shift()}function i(t){this.a=o,this.b=void 0,this.f=[];var e=this;try{t(function(t){!function t(e,n){if(e.a==o){if(n==e)throw new TypeError;var i=!1;try{var r=n&&n.then;if(null!=n&&"object"==typeof n&&"function"==typeof r)return void r.call(n,function(n){i||t(e,n),i=!0},function(t){i||s(e,t),i=!0})}catch(t){return void(i||s(e,t))}e.a=0,e.b=n,c(e)}}(e,t)},function(t){s(e,t)})}catch(t){s(e,t)}}t=function(){setTimeout(n)};var o=2;function r(t){return new i(function(e){e(t)})}function s(t,e){if(t.a==o){if(e==t)throw new TypeError;t.a=1,t.b=e,c(t)}}function c(n){!function(n){e.push(n),1==e.length&&t()}(function(){if(n.a!=o)for(;n.f.length;){var t=(r=n.f.shift())[0],e=r[1],i=r[2],r=r[3];try{0==n.a?i("function"==typeof t?t.call(void 0,n.b):n.b):1==n.a&&("function"==typeof e?i(e.call(void 0,n.b)):r(n.b))}catch(t){r(t)}}})}i.prototype.g=function(t){return this.c(void 0,t)},i.prototype.c=function(t,e){var n=this;return new i(function(i,o){n.f.push([t,e,i,o]),c(n)})},window.Promise||(window.Promise=i,window.Promise.resolve=r,window.Promise.reject=function(t){return new i(function(e,n){n(t)})},window.Promise.race=function(t){return new i(function(e,n){for(var i=0;i<t.length;i+=1)r(t[i]).c(e,n)})},window.Promise.all=function(t){return new i(function(e,n){function i(n){return function(i){s[n]=i,(o+=1)==t.length&&e(s)}}var o=0,s=[];0==t.length&&e(s);for(var c=0;c<t.length;c+=1)r(t[c]).c(i(c),n)})},window.Promise.prototype.then=i.prototype.c,window.Promise.prototype.catch=i.prototype.g)}(),function(){"use strict";var t=!!document.addEventListener;function e(e,n){t?e.addEventListener("scroll",n,!1):e.attachEvent("scroll",n)}function n(t){this.a=document.createElement("div"),this.a.setAttribute("aria-hidden","true"),this.a.appendChild(document.createTextNode(t)),this.b=document.createElement("span"),this.c=document.createElement("span"),this.h=document.createElement("span"),this.f=document.createElement("span"),this.g=-1,this.b.style.cssText="display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.c.style.cssText="display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.f.style.cssText="display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;",this.b.appendChild(this.h),this.c.appendChild(this.f),this.a.appendChild(this.b),this.a.appendChild(this.c)}function i(t,e){t.a.style.cssText="min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;left:-999px;white-space:nowrap;font:"+e+";"}function o(t){var e=t.a.offsetWidth,n=e+100;return t.f.style.width=n+"px",t.c.scrollLeft=n,t.b.scrollLeft=t.b.scrollWidth+100,t.g!==e&&(t.g=e,!0)}function r(t,n){function i(){var t=r;o(t)&&null!==t.a.parentNode&&n(t.g)}var r=t;e(t.b,i),e(t.c,i),o(t)}function s(t,e){var n=e||{};this.family=t,this.style=n.style||"normal",this.weight=n.weight||"normal",this.stretch=n.stretch||"normal"}var c=null,a=null,f=!!window.FontFace;function l(){if(null===a){var t=document.createElement("div");try{t.style.font="condensed 100px sans-serif"}catch(t){}a=""!==t.style.font}return a}function d(t,e){return[t.style,t.weight,l()?t.stretch:"","100px",e].join(" ")}s.prototype.a=function(e,o){var s=this,a=e||"BESbswy",l=o||3e3,u=(new Date).getTime();return new Promise(function(e,o){if(f){var h=function(){(new Date).getTime()-u>=l?o(s):document.fonts.load(d(s,s.family),a).then(function(t){1<=t.length?e(s):setTimeout(h,25)},function(){o(s)})};h()}else!function(e){document.body?e():t?document.addEventListener("DOMContentLoaded",e):document.onreadystatechange=function(){"interactive"==document.readyState&&e()}}(function(){function t(){var t;(t=-1!=w&&-1!=m||-1!=w&&-1!=v||-1!=m&&-1!=v)&&((t=w!=m&&w!=v&&m!=v)||(null===c&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),c=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))),t=c&&(w==y&&m==y&&v==y||w==b&&m==b&&v==b||w==g&&m==g&&v==g)),t=!t),t&&(null!==x.parentNode&&x.parentNode.removeChild(x),clearTimeout(T),e(s))}var f=new n(a),h=new n(a),p=new n(a),w=-1,m=-1,v=-1,y=-1,b=-1,g=-1,x=document.createElement("div"),T=0;x.dir="ltr",i(f,d(s,"sans-serif")),i(h,d(s,"serif")),i(p,d(s,"monospace")),x.appendChild(f.a),x.appendChild(h.a),x.appendChild(p.a),document.body.appendChild(x),y=f.a.offsetWidth,b=h.a.offsetWidth,g=p.a.offsetWidth,function e(){if((new Date).getTime()-u>=l)null!==x.parentNode&&x.parentNode.removeChild(x),o(s);else{var n=document.hidden;!0!==n&&void 0!==n||(w=f.a.offsetWidth,m=h.a.offsetWidth,v=p.a.offsetWidth,t()),T=setTimeout(e,50)}}(),r(f,function(e){w=e,t()}),i(f,d(s,'"'+s.family+'",sans-serif')),r(h,function(e){m=e,t()}),i(h,d(s,'"'+s.family+'",serif')),r(p,function(e){v=e,t()}),i(p,d(s,'"'+s.family+'",monospace'))})})},window.FontFaceObserver=s,window.FontFaceObserver.prototype.check=s.prototype.a,"undefined"!=typeof module&&(module.exports=window.FontFaceObserver)}();;!function(e){void 0===e.fn.each2&&e.extend(e.fn,{each2:function(t){for(var s=e([0]),i=-1,n=this.length;++i<n&&(s.context=s[0]=this[i])&&!1!==t.call(s[0],i,s););return this}})}(jQuery),function(e,t){"use strict";function s(e){var t,s,i,n;if(!e||e.length<1)return e;for(t="",s=0,i=e.length;i>s;s++)n=e.charAt(s),t+=H[n]||n;return t}function i(e,t){for(var s=0,i=t.length;i>s;s+=1)if(n(e,t[s]))return s;return-1}function n(e,s){return e===s||e!==t&&s!==t&&(null!==e&&null!==s&&(e.constructor===String?e+""==s+"":s.constructor===String&&s+""==e+""))}function o(t,s){var i,n,o;if(null===t||t.length<1)return[];for(n=0,o=(i=t.split(s)).length;o>n;n+=1)i[n]=e.trim(i[n]);return i}function a(e){return e.outerWidth(!1)-e.width()}function c(s){var i="keyup-change-value";s.on("keydown",function(){e.data(s,i)===t&&e.data(s,i,s.val())}),s.on("keyup",function(){var n=e.data(s,i);n!==t&&s.val()!==n&&(e.removeData(s,i),s.trigger("keyup-change"))})}function r(s){s.on("mousemove",function(s){var i=P;(i===t||i.x!==s.pageX||i.y!==s.pageY)&&e(s.target).trigger("mousemove-filtered",s)})}function l(e,s,i){var n;return i=i||t,function(){var t=arguments;window.clearTimeout(n),n=window.setTimeout(function(){s.apply(i,t)},e)}}function h(t){var s=0,i=0;if("selectionStart"in(t=e(t)[0]))s=t.selectionStart,i=t.selectionEnd-s;else if("selection"in document){t.focus();var n=document.selection.createRange();i=document.selection.createRange().text.length,n.moveStart("character",-t.value.length),s=n.text.length-i}return{offset:s,length:i}}function d(e){e.preventDefault(),e.stopPropagation()}function u(t){if(!k){var s=t[0].currentStyle||window.getComputedStyle(t[0],null);(k=e(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:s.fontSize,fontFamily:s.fontFamily,fontStyle:s.fontStyle,fontWeight:s.fontWeight,letterSpacing:s.letterSpacing,textTransform:s.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),e("body").append(k)}return k.text(t.val()),k.width()}function p(t,s,i){var n,o,a=[];(n=t.attr("class"))&&e((n=""+n).split(" ")).each2(function(){0===this.indexOf("select2-")&&a.push(this)}),(n=s.attr("class"))&&e((n=""+n).split(" ")).each2(function(){0!==this.indexOf("select2-")&&((o=i(this))&&a.push(o))}),t.attr("class",a.join(" "))}function f(e,t,i,n){var o=s(e.toUpperCase()).indexOf(s(t.toUpperCase())),a=t.length;return 0>o?void i.push(n(e)):(i.push(n(e.substring(0,o))),i.push("<span class='select2-match'>"),i.push(n(e.substring(o,o+a))),i.push("</span>"),void i.push(n(e.substring(o+a,e.length))))}function g(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function m(s){var i,n=null,o=s.quietMillis||100,a=s.url,c=this;return function(r){window.clearTimeout(i),i=window.setTimeout(function(){var i=s.data,o=a,l=s.transport||e.fn.select2.ajaxDefaults.transport,h={type:s.type||"GET",cache:s.cache||!1,jsonpCallback:s.jsonpCallback||t,dataType:s.dataType||"json"},d=e.extend({},e.fn.select2.ajaxDefaults.params,h);i=i?i.call(c,r.term,r.page,r.context):null,o="function"==typeof o?o.call(c,r.term,r.page,r.context):o,n&&n.abort(),s.params&&(e.isFunction(s.params)?e.extend(d,s.params.call(c)):e.extend(d,s.params)),e.extend(d,{url:o,dataType:s.dataType,data:i,success:function(e){var t=s.results(e,r.page);r.callback(t)}}),n=l.call(c,d)},o)}}function v(t){var s,i,n=t,o=function(e){return""+e.text};e.isArray(n)&&(n={results:i=n}),!1===e.isFunction(n)&&(i=n,n=function(){return i});var a=n();return a.text&&(o=a.text,e.isFunction(o)||(s=a.text,o=function(e){return e[s]})),function(t){var s,i=t.term,a={results:[]};return""===i?void t.callback(n()):(s=function(n,a){var c,r;if((n=n[0]).children){for(r in c={},n)n.hasOwnProperty(r)&&(c[r]=n[r]);c.children=[],e(n.children).each2(function(e,t){s(t,c.children)}),(c.children.length||t.matcher(i,o(c),n))&&a.push(c)}else t.matcher(i,o(n),n)&&a.push(n)},e(n().results).each2(function(e,t){s(t,a.results)}),void t.callback(a))}}function w(s){var i=e.isFunction(s);return function(n){var o=n.term,a={results:[]};e(i?s():s).each(function(){var e=this.text!==t,s=e?this.text:this;(""===o||n.matcher(o,s))&&a.results.push(e?this:{id:this,text:this})}),n.callback(a)}}function C(t,s){if(e.isFunction(t))return!0;if(!t)return!1;throw new Error(s+" must be a function or a falsy value")}function b(t){return e.isFunction(t)?t():t}function S(t){var s=0;return e.each(t,function(e,t){t.children?s+=S(t.children):s++}),s}function y(t,s){var i=function(){};return(i.prototype=new t).constructor=i,i.prototype.parent=t.prototype,i.prototype=e.extend(i.prototype,s),i}if(window.Select2===t){var E,x,T,O,k,I,A,P={x:0,y:0},R={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which?e.which:e){case R.LEFT:case R.RIGHT:case R.UP:case R.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case R.SHIFT:case R.CTRL:case R.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&123>=e}},D="<div class='select2-measure-scrollbar'></div>",H={"Ⓐ":"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","Ɓ":"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","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"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","Ꝼ":"F","Ⓖ":"G","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","Ⓘ":"I","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","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","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","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","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","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","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","Ꝣ":"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","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","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","ꝺ":"d","dz":"dz","dž":"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","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","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","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","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","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"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","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","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","ẛ":"s","ⓣ":"t","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","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","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","ꝣ":"z"};I=e(document),O=function(){var e=1;return function(){return e++}}(),I.on("mousemove",function(e){P.x=e.pageX,P.y=e.pageY}),E=y(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(s){var n,o,a=".select2-results";this.opts=s=this.prepareOpts(s),this.id=s.id,s.element.data("select2")!==t&&null!==s.element.data("select2")&&s.element.data("select2").destroy(),this.container=this.createContainer(),this.containerId="s2id_"+(s.element.attr("id")||"autogen"+O()),this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.body=function(e){var t,s=!1;return function(){return!1===s&&(t=e(),s=!0),t}}(function(){return s.element.closest("body")}),p(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",s.element.attr("style")),this.container.css(b(s.containerCss)),this.container.addClass(b(s.containerCssClass)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",d),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),p(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(b(s.dropdownCssClass)),this.dropdown.data("select2",this),this.dropdown.on("click",d),this.results=n=this.container.find(a),this.search=o=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",d),r(this.results),this.dropdown.on("mousemove-filtered touchstart touchmove touchend",a,this.bind(this.highlightUnderEvent)),function(e,t){var s=l(e,function(e){t.trigger("scroll-debounced",e)});t.on("scroll",function(e){i(e.target,t.get())>=0&&s(e)})}(80,this.results),this.dropdown.on("scroll-debounced",a,this.bind(this.loadMoreIfNeeded)),e(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),e(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),e.fn.mousewheel&&n.mousewheel(function(e,t,s,i){var o=n.scrollTop();i>0&&0>=o-i?(n.scrollTop(0),d(e)):0>i&&n.get(0).scrollHeight-n.scrollTop()+i<=n.height()&&(n.scrollTop(n.get(0).scrollHeight-n.height()),d(e))}),c(o),o.on("keyup-change input paste",this.bind(this.updateResults)),o.on("focus",function(){o.addClass("select2-focused")}),o.on("blur",function(){o.removeClass("select2-focused")}),this.dropdown.on("mouseup",a,this.bind(function(t){e(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))})),this.dropdown.on("click mouseup mousedown",function(e){e.stopPropagation()}),e.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==s.maximumInputLength&&this.search.attr("maxlength",s.maximumInputLength);var h=s.element.prop("disabled");h===t&&(h=!1),this.enable(!h);var u=s.element.prop("readonly");u===t&&(u=!1),this.readonly(u),A=A||function(){var t=e(D);t.appendTo("body");var s={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),s}(),this.autofocus=s.element.prop("autofocus"),s.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.nextSearchTerm=t},destroy:function(){var e=this.opts.element,s=e.data("select2");this.close(),this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),s!==t&&(s.container.remove(),s.dropdown.remove(),e.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:n(e.attr("locked"),"locked")||n(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(s){var i,a,c,r,l=this;if("select"===(i=s.element).get(0).tagName.toLowerCase()&&(this.select=a=s.element),a&&e.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in s)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),"function"!=typeof(s=e.extend({},{populateResults:function(i,n,o){var a,c=this.opts.id;(a=function(i,n,r){var h,d,u,p,f,g,m,v,w,C;for(h=0,d=(i=s.sortResults(i,n,o)).length;d>h;h+=1)p=!(f=!0===(u=i[h]).disabled)&&c(u)!==t,g=u.children&&u.children.length>0,(m=e("<li></li>")).addClass("select2-results-dept-"+r),m.addClass("select2-result"),m.addClass(p?"select2-result-selectable":"select2-result-unselectable"),f&&m.addClass("select2-disabled"),g&&m.addClass("select2-result-with-children"),m.addClass(l.opts.formatResultCssClass(u)),(v=e(document.createElement("div"))).addClass("select2-result-label"),(C=s.formatResult(u,v,o,l.opts.escapeMarkup))!==t&&v.html(C),m.append(v),g&&((w=e("<ul></ul>")).addClass("select2-result-sub"),a(u.children,w,r+1),m.append(w)),m.data("select2-data",u),n.append(m)})(n,i,0)}},e.fn.select2.defaults,s)).id&&(c=s.id,s.id=function(e){return e[c]}),e.isArray(s.element.data("select2Tags"))){if("tags"in s)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+s.element.attr("id");s.tags=s.element.data("select2Tags")}if(a?(s.query=this.bind(function(e){var s,n,o,a={results:[],more:!1},c=e.term;o=function(t,s){var i;t.is("option")?e.matcher(c,t.text(),t)&&s.push(l.optionToData(t)):t.is("optgroup")&&(i=l.optionToData(t),t.children().each2(function(e,t){o(t,i.children)}),i.children.length>0&&s.push(i))},s=i.children(),this.getPlaceholder()!==t&&s.length>0&&((n=this.getPlaceholderOption())&&(s=s.not(n))),s.each2(function(e,t){o(t,a.results)}),e.callback(a)}),s.id=function(e){return e.id},s.formatResultCssClass=function(e){return e.css}):"query"in s||("ajax"in s?((r=s.element.data("ajax-url"))&&r.length>0&&(s.ajax.url=r),s.query=m.call(s.element,s.ajax)):"data"in s?s.query=v(s.data):"tags"in s&&(s.query=w(s.tags),s.createSearchChoice===t&&(s.createSearchChoice=function(t){return{id:e.trim(t),text:e.trim(t)}}),s.initSelection===t&&(s.initSelection=function(t,i){var a=[];e(o(t.val(),s.separator)).each(function(){var t={id:this,text:this},i=s.tags;e.isFunction(i)&&(i=i()),e(i).each(function(){return n(this.id,t.id)?(t=this,!1):void 0}),a.push(t)}),i(a)}))),"function"!=typeof s.query)throw"query function not defined for Select2 "+s.element.attr("id");return s},monitorSource:function(){var e,s,i=this.opts.element;i.on("change.select2",this.bind(function(){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),e=this.bind(function(){var e=i.prop("disabled");e===t&&(e=!1),this.enable(!e);var s=i.prop("readonly");s===t&&(s=!1),this.readonly(s),p(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(b(this.opts.containerCssClass)),p(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(b(this.opts.dropdownCssClass))}),i.on("propertychange.select2",e),this.mutationCallback===t&&(this.mutationCallback=function(t){t.forEach(e)}),(s=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new s(this.mutationCallback),this.propertyObserver.observe(i.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var s=e.Event("select2-selecting",{val:this.id(t),object:t});return this.opts.element.trigger(s),!s.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=e.extend({},t,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(t),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly,t=!e;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",t),this.close(),this.enabledInterface=e,!0)},enable:function(e){e===t&&(e=!0),this._enabled!==e&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){return e===t&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface(),!0)},opened:function(){return this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var t,s,i,n,o,a=this.dropdown,c=this.container.offset(),r=this.container.outerHeight(!1),l=this.container.outerWidth(!1),h=a.outerHeight(!1),d=e(window),u=d.width(),p=d.height(),f=d.scrollLeft()+u,g=d.scrollTop()+p,m=c.top+r,v=c.left,w=g>=m+h,C=c.top-h>=this.body().scrollTop(),S=a.outerWidth(!1),y=f>=v+S;a.hasClass("select2-drop-above")?(s=!0,!C&&w&&(i=!0,s=!1)):(s=!1,!w&&C&&(i=!0,s=!0)),i&&(a.hide(),c=this.container.offset(),r=this.container.outerHeight(!1),l=this.container.outerWidth(!1),h=a.outerHeight(!1),f=d.scrollLeft()+u,g=d.scrollTop()+p,m=c.top+r,y=f>=(v=c.left)+(S=a.outerWidth(!1)),a.show()),this.opts.dropdownAutoWidth?(o=e(".select2-results",a)[0],a.addClass("select2-drop-auto-width"),a.css("width",""),(S=a.outerWidth(!1)+(o.scrollHeight===o.clientHeight?0:A.width))>l?l=S:S=l,y=f>=v+S):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body().css("position")&&(m-=(t=this.body().offset()).top,v-=t.left),y||(v=c.left+l-S),n={left:v,width:l},s?(n.bottom=p-c.top,n.top="auto",this.container.addClass("select2-drop-above"),a.addClass("select2-drop-above")):(n.top=m,n.bottom="auto",this.container.removeClass("select2-drop-above"),a.removeClass("select2-drop-above")),n=e.extend(n,b(this.opts.dropdownCss)),a.css(n)},shouldOpen:function(){var t;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(t=e.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),!0)},opening:function(){var t,s=this.containerId,i="scroll."+s,n="resize."+s,o="orientationchange."+s;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body().children().last()[0]&&this.dropdown.detach().appendTo(this.body()),0==(t=e("#select2-drop-mask")).length&&((t=e(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body()),t.on("mousedown touchstart click",function(t){var s,i=e("#select2-drop");i.length>0&&((s=i.data("select2")).opts.selectOnBlur&&s.selectHighlighted({noFocus:!0}),s.close({focus:!0}),t.preventDefault(),t.stopPropagation())})),this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t),e("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),t.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var a=this;this.container.parents().add(window).each(function(){e(this).on(n+" "+i+" "+o,function(){a.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerId,s="scroll."+t,i="resize."+t,n="orientationchange."+t;this.container.parents().add(window).each(function(){e(this).off(s).off(i).off(n)}),this.clearDropdownAlignmentPreference(),e("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(e.Event("select2-close"))}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return b(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var t,s,i,n,o,a,c,r=this.results;if(!(0>(s=this.highlight()))){if(0==s)return void r.scrollTop(0);t=this.findHighlightableChoices().find(".select2-result-label"),n=(i=e(t[s])).offset().top+i.outerHeight(!0),s===t.length-1&&((c=r.find("li.select2-more-results")).length>0&&(n=c.offset().top+c.outerHeight(!0))),n>(o=r.offset().top+r.outerHeight(!0))&&r.scrollTop(r.scrollTop()+(n-o)),0>(a=i.offset().top-r.offset().top)&&"none"!=i.css("display")&&r.scrollTop(r.scrollTop()+a)}},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled, .select2-selected)")},moveHighlight:function(t){for(var s=this.findHighlightableChoices(),i=this.highlight();i>-1&&i<s.length;){var n=e(s[i+=t]);if(n.hasClass("select2-result-selectable")&&!n.hasClass("select2-disabled")&&!n.hasClass("select2-selected")){this.highlight(i);break}}},highlight:function(t){var s,n,o=this.findHighlightableChoices();return 0===arguments.length?i(o.filter(".select2-highlighted")[0],o.get()):(t>=o.length&&(t=o.length-1),0>t&&(t=0),this.removeHighlight(),(s=e(o[t])).addClass("select2-highlighted"),this.ensureHighlightVisible(),void((n=s.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(n),choice:n})))},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var s=e(t.target).closest(".select2-result-selectable");if(s.length>0&&!s.is(".select2-highlighted")){var i=this.findHighlightableChoices();this.highlight(i.index(s))}else 0==s.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var e=this.results,t=e.find("li.select2-more-results"),s=this.resultsPage+1,i=this,n=this.search.val(),o=this.context;0!==t.length&&(t.offset().top-e.offset().top-e.height()<=this.opts.loadMorePadding&&(t.addClass("select2-active"),this.opts.query({element:this.opts.element,term:n,page:s,context:o,matcher:this.opts.matcher,callback:this.bind(function(a){i.opened()&&(i.opts.populateResults.call(this,e,a.results,{term:n,page:s,context:o}),i.postprocessResults(a,!1,!1),!0===a.more?(t.detach().appendTo(e).text(i.opts.formatLoadMore(s+1)),window.setTimeout(function(){i.loadMoreIfNeeded()},10)):t.remove(),i.positionDropdown(),i.resultsPage=s,i.context=a.context,this.opts.element.trigger({type:"select2-loaded",items:a}))})})))},tokenize:function(){},updateResults:function(s){function i(){l.removeClass("select2-active"),u.positionDropdown()}function o(e){h.html(e),i()}var a,c,r,l=this.search,h=this.results,d=this.opts,u=this,p=l.val(),f=e.data(this.container,"select2-last-term");if((!0===s||!f||!n(p,f))&&(e.data(this.container,"select2-last-term",p),!0===s||!1!==this.showSearchInput&&this.opened())){r=++this.queryCount;var g=this.getMaximumSelectionSize();if(g>=1&&(a=this.data(),e.isArray(a)&&a.length>=g&&C(d.formatSelectionTooBig,"formatSelectionTooBig")))return void o("<li class='select2-selection-limit'>"+d.formatSelectionTooBig(g)+"</li>");if(l.val().length<d.minimumInputLength)return C(d.formatInputTooShort,"formatInputTooShort")?o("<li class='select2-no-results'>"+d.formatInputTooShort(l.val(),d.minimumInputLength)+"</li>"):o(""),void(s&&this.showSearch&&this.showSearch(!0));if(d.maximumInputLength&&l.val().length>d.maximumInputLength)return void(C(d.formatInputTooLong,"formatInputTooLong")?o("<li class='select2-no-results'>"+d.formatInputTooLong(l.val(),d.maximumInputLength)+"</li>"):o(""));d.formatSearching&&0===this.findHighlightableChoices().length&&o("<li class='select2-searching'>"+d.formatSearching()+"</li>"),l.addClass("select2-active"),this.removeHighlight(),(c=this.tokenize())!=t&&null!=c&&l.val(c),this.resultsPage=1,d.query({element:d.element,term:l.val(),page:this.resultsPage,context:null,matcher:d.matcher,callback:this.bind(function(a){var c;if(r==this.queryCount){if(!this.opened())return void this.search.removeClass("select2-active");if(this.context=a.context===t?null:a.context,this.opts.createSearchChoice&&""!==l.val()&&((c=this.opts.createSearchChoice.call(u,l.val(),a.results))!==t&&null!==c&&u.id(c)!==t&&null!==u.id(c)&&0===e(a.results).filter(function(){return n(u.id(this),u.id(c))}).length&&a.results.unshift(c)),0===a.results.length&&C(d.formatNoMatches,"formatNoMatches"))return void o("<li class='select2-no-results'>"+d.formatNoMatches(l.val())+"</li>");h.empty(),u.opts.populateResults.call(this,h,a.results,{term:l.val(),page:this.resultsPage,context:null}),!0===a.more&&C(d.formatLoadMore,"formatLoadMore")&&(h.append("<li class='select2-more-results'>"+u.opts.escapeMarkup(d.formatLoadMore(this.resultsPage))+"</li>"),window.setTimeout(function(){u.loadMoreIfNeeded()},10)),this.postprocessResults(a,s),i(),this.opts.element.trigger({type:"select2-loaded",items:a})}})})}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var e;(e=this.search)[0]!==document.activeElement&&window.setTimeout(function(){var t,s=e[0],i=e.val().length;e.focus(),e.is(":visible")&&s===document.activeElement&&(s.setSelectionRange?s.setSelectionRange(i,i):s.createTextRange&&((t=s.createTextRange()).collapse(!1),t.select()))},0)},selectHighlighted:function(e){var t=this.highlight(),s=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");s?(this.highlight(t),this.onSelect(s,e)):e&&e.noFocus&&this.close()},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==t?e.text():t)},getPlaceholderOption:function(){if(this.select){var e=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&e||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===e.text()&&""===e.val())return e}},initContainerWidth:function(){var s=function(){var s,i,n,o,a;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if((s=this.opts.element.attr("style"))!==t)for(o=0,a=(i=s.split(";")).length;a>o;o+=1)if(null!==(n=i[o].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&n.length>=1)return n[1];return"resolve"===this.opts.width?(s=this.opts.element.css("width")).indexOf("%")>0?s:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}return e.isFunction(this.opts.width)?this.opts.width():this.opts.width}.call(this);null!==s&&this.container.css("width",s)}}),x=y(E,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' onclick='return false;' class='select2-choice' tabindex='-1'>"," <span class='select2-chosen'> </span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow'><b></b></span>","</a>","<input class='select2-focusser select2-offscreen' type='text'/>","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'/>"," </div>"," <ul class='select2-results'>"," </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var s,i,n;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.search.focus(),(s=this.search.get(0)).createTextRange?((i=s.createTextRange()).collapse(!1),i.select()):s.setSelectionRange&&(n=this.search.val().length,s.setSelectionRange(n,n)),""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.Event("select2-open"))},close:function(e){this.opened()&&(this.parent.close.apply(this,arguments),e=e||{focus:!0},this.focusser.removeAttr("disabled"),e.focus&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.removeAttr("disabled"),this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.removeAttr("disabled"),this.focusser.focus()},destroy:function(){e("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var t,s=this.container,i=this.dropdown;this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=s.find(".select2-choice"),this.focusser=s.find(".select2-focusser"),this.focusser.attr("id","s2id_autogen"+O()),e("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.focusser.attr("id")),this.focusser.attr("tabindex",this.elementTabIndex),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()){if(e.which===R.PAGE_UP||e.which===R.PAGE_DOWN)return void d(e);switch(e.which){case R.UP:case R.DOWN:return this.moveHighlight(e.which===R.UP?-1:1),void d(e);case R.ENTER:return this.selectHighlighted(),void d(e);case R.TAB:return void this.selectHighlighted({noFocus:!0});case R.ESC:return this.cancel(e),void d(e)}}})),this.search.on("blur",this.bind(function(){document.activeElement===this.body().get(0)&&window.setTimeout(this.bind(function(){this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==R.TAB&&!R.isControl(e)&&!R.isFunctionKey(e)&&e.which!==R.ESC){if(!1===this.opts.openOnEnter&&e.which===R.ENTER)return void d(e);if(e.which==R.DOWN||e.which==R.UP||e.which==R.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;return this.open(),void d(e)}return e.which==R.DELETE||e.which==R.BACKSPACE?(this.opts.allowClear&&this.clear(),void d(e)):void 0}})),c(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){if(this.opts.minimumResultsForSearch>=0){if(e.stopPropagation(),this.opened())return;this.open()}})),t.on("mousedown","abbr",this.bind(function(e){this.isInterfaceEnabled()&&(this.clear(),function(e){e.preventDefault(),e.stopImmediatePropagation()}(e),this.close(),this.selection.focus())})),t.on("mousedown",this.bind(function(t){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),d(t)})),i.on("mousedown",this.bind(function(){this.search.focus()})),t.on("focus",this.bind(function(e){d(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(e.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(t){var s=this.selection.data("select2-data");if(s){var i=e.Event("select2-clearing");if(this.opts.element.trigger(i),i.isDefaultPrevented())return;var n=this.getPlaceholderOption();this.opts.element.val(n?n.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==t&&(this.opts.element.trigger({type:"select2-removed",val:this.id(s),choice:s}),this.triggerChange({removed:s}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var e=this;this.opts.initSelection.call(null,this.opts.element,function(s){s!==t&&null!==s&&(e.updateSelection(s),e.close(),e.setPlaceholder())})}},isPlaceholderOptionSelected:function(){var e;return!!this.getPlaceholder()&&((e=this.getPlaceholderOption())!==t&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val())},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),s=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var i=e.find("option").filter(function(){return this.selected});t(s.optionToData(i))}:"data"in t&&(t.initSelection=t.initSelection||function(s,i){var o=s.val(),a=null;t.query({matcher:function(e,s,i){var c=n(o,t.id(i));return c&&(a=i),c},callback:e.isFunction(i)?function(){i(a)}:e.noop})}),t},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===t?t:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&e!==t){if(this.select&&this.getPlaceholderOption()===t)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(e,t,s){var i=0,o=this;if(this.findHighlightableChoices().each2(function(e,t){return n(o.id(t.data("select2-data")),o.opts.element.val())?(i=e,!1):void 0}),!1!==s&&(!0===t&&i>=0?this.highlight(i):this.highlight(0)),!0===t){var a=this.opts.minimumResultsForSearch;a>=0&&this.showSearch(S(e.results)>=a)}},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),e(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(e,t){if(this.triggerSelect(e)){var s=this.opts.element.val(),i=this.data();this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.close(),t&&t.noFocus||this.focusser.focus(),n(s,this.id(e))||this.triggerChange({added:e,removed:i})}},updateSelection:function(e){var s,i,n=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),n.empty(),null!==e&&(s=this.opts.formatSelection(e,n,this.opts.escapeMarkup)),s!==t&&n.append(s),(i=this.opts.formatSelectionCssClass(e,n))!==t&&n.addClass(i),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var e,s=!1,i=null,n=this,o=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(s=arguments[1]),this.select)this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return i=n.optionToData(t),!1}),this.updateSelection(i),this.setPlaceholder(),s&&this.triggerChange({added:i,removed:o});else{if(!e&&0!==e)return void this.clear(s);if(this.opts.initSelection===t)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){n.opts.element.val(e?n.id(e):""),n.updateSelection(e),n.setPlaceholder(),s&&n.triggerChange({added:e,removed:o})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var s,i=!1;return 0===arguments.length?((s=this.selection.data("select2-data"))==t&&(s=null),s):(arguments.length>1&&(i=arguments[1]),void(e?(s=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),i&&this.triggerChange({added:e,removed:s})):this.clear(i)))}}),T=y(E,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>"," <li class='select2-search-field'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>"," <ul class='select2-results'>"," </ul>","</div>"].join(""))},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),s=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var i=[];e.find("option").filter(function(){return this.selected}).each2(function(e,t){i.push(s.optionToData(t))}),t(i)}:"data"in t&&(t.initSelection=t.initSelection||function(s,i){var a=o(s.val(),t.separator),c=[];t.query({matcher:function(s,i,o){var r=e.grep(a,function(e){return n(e,t.id(o))}).length;return r&&c.push(o),r},callback:e.isFunction(i)?function(){for(var e=[],s=0;s<a.length;s++)for(var o=a[s],r=0;r<c.length;r++){var l=c[r];if(n(o,t.id(l))){e.push(l),c.splice(r,1);break}}i(e)}:e.noop})}),t},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){e("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var t,s=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=t=this.container.find(s);var i=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",function(){i.search[0].focus(),i.selectChoice(e(this))}),this.search.attr("id","s2id_autogen"+O()),e("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.search.attr("id")),this.search.on("input paste",this.bind(function(){this.isInterfaceEnabled()&&(this.opened()||this.open())})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()){++this.keydowns;var s=t.find(".select2-search-choice-focus"),i=s.prev(".select2-search-choice:not(.select2-locked)"),n=s.next(".select2-search-choice:not(.select2-locked)"),o=h(this.search);if(s.length&&(e.which==R.LEFT||e.which==R.RIGHT||e.which==R.BACKSPACE||e.which==R.DELETE||e.which==R.ENTER)){var a=s;return e.which==R.LEFT&&i.length?a=i:e.which==R.RIGHT?a=n.length?n:null:e.which===R.BACKSPACE?(this.unselect(s.first()),this.search.width(10),a=i.length?i:n):e.which==R.DELETE?(this.unselect(s.first()),this.search.width(10),a=n.length?n:null):e.which==R.ENTER&&(a=null),this.selectChoice(a),d(e),void(a&&a.length||this.open())}if((e.which===R.BACKSPACE&&1==this.keydowns||e.which==R.LEFT)&&0==o.offset&&!o.length)return this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),void d(e);if(this.selectChoice(null),this.opened())switch(e.which){case R.UP:case R.DOWN:return this.moveHighlight(e.which===R.UP?-1:1),void d(e);case R.ENTER:return this.selectHighlighted(),void d(e);case R.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case R.ESC:return this.cancel(e),void d(e)}if(e.which!==R.TAB&&!R.isControl(e)&&!R.isFunctionKey(e)&&e.which!==R.BACKSPACE&&e.which!==R.ESC){if(e.which===R.ENTER){if(!1===this.opts.openOnEnter)return;if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return}this.open(),(e.which===R.PAGE_UP||e.which===R.PAGE_DOWN)&&d(e),e.which===R.ENTER&&d(e)}}})),this.search.on("keyup",this.bind(function(){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(t){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),t.stopImmediatePropagation(),this.opts.element.trigger(e.Event("select2-blur"))})),this.container.on("click",s,this.bind(function(t){this.isInterfaceEnabled()&&(e(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault()))})),this.container.on("focus",s,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var e=this;this.opts.initSelection.call(null,this.opts.element,function(s){s!==t&&null!==s&&(e.updateSelection(s),e.close(),e.clearSearch())})}},clearSearch:function(){var e=this.getPlaceholder(),s=this.getMaxSearchWidth();e!==t&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).addClass("select2-default"),this.search.width(s>0?s:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.updateResults(!0),this.search.focus(),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(t){var s=[],n=[],o=this;e(t).each(function(){i(o.id(this),s)<0&&(s.push(o.id(this)),n.push(this))}),t=n,this.selection.find(".select2-search-choice").remove(),e(t).each(function(){o.addSelectedChoice(this)}),o.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&e!=t&&(this.search.val(e),e.length>0&&this.open())},onSelect:function(e,t){this.triggerSelect(e)&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),(this.select||!this.opts.closeOnSelect)&&this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()&&this.updateResults(!0),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(s){var i,n,o=!s.locked,a=e("<li class='select2-search-choice'> <div></div> <a href='#' onclick='return false;' class='select2-search-choice-close' tabindex='-1'></a></li>"),c=e("<li class='select2-search-choice select2-locked'><div></div></li>"),r=o?a:c,l=this.id(s),h=this.getVal();(i=this.opts.formatSelection(s,r.find("div"),this.opts.escapeMarkup))!=t&&r.find("div").replaceWith("<div>"+i+"</div>"),(n=this.opts.formatSelectionCssClass(s,r.find("div")))!=t&&r.addClass(n),o&&r.find(".select2-search-choice-close").on("mousedown",d).on("click dblclick",this.bind(function(t){this.isInterfaceEnabled()&&(e(t.target).closest(".select2-search-choice").fadeOut("fast",this.bind(function(){this.unselect(e(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),this.close(),this.focusSearch()})).dequeue(),d(t))})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),r.data("select2-data",s),r.insertBefore(this.searchContainer),h.push(l),this.setVal(h)},unselect:function(t){var s,n,o=this.getVal();if(0===(t=t.closest(".select2-search-choice")).length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(s=t.data("select2-data")){for(;(n=i(this.id(s),o))>=0;)o.splice(n,1),this.setVal(o),this.select&&this.postprocessResults();var a=e.Event("select2-removing");a.val=this.id(s),a.choice=s,this.opts.element.trigger(a),a.isDefaultPrevented()||(t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(s),choice:s}),this.triggerChange({removed:s}))}},postprocessResults:function(e,t,s){var n=this.getVal(),o=this.results.find(".select2-result"),a=this.results.find(".select2-result-with-children"),c=this;o.each2(function(e,t){i(c.id(t.data("select2-data")),n)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),a.each2(function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")}),-1==this.highlight()&&!1!==s&&c.highlight(0),!this.opts.createSearchChoice&&!o.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&C(c.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+c.opts.formatNoMatches(c.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-a(this.search)},resizeSearch:function(){var e,t,s,i,n=a(this.search);e=u(this.search)+10,t=this.search.offset().left,e>(i=(s=this.selection.width())-(t-this.selection.offset().left)-n)&&(i=s-n),40>i&&(i=s-n),0>=i&&(i=e),this.search.width(Math.floor(i))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:o(e=this.opts.element.val(),this.opts.separator)},setVal:function(t){var s;this.select?this.select.val(t):(s=[],e(t).each(function(){i(this,s)<0&&s.push(this)}),this.opts.element.val(0===s.length?"":s.join(this.opts.separator)))},buildChangeDetails:function(e,t){t=t.slice(0),e=e.slice(0);for(var s=0;s<t.length;s++)for(var i=0;i<e.length;i++)n(this.opts.id(t[s]),this.opts.id(e[i]))&&(t.splice(s,1),s>0&&s--,e.splice(i,1),i--);return{added:t,removed:e}},val:function(s,i){var n,o=this;if(0===arguments.length)return this.getVal();if((n=this.data()).length||(n=[]),!s&&0!==s)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(i&&this.triggerChange({added:this.data(),removed:n}));if(this.setVal(s),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),i&&this.triggerChange(this.buildChangeDetails(n,this.data()));else{if(this.opts.initSelection===t)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(t){var s=e.map(t,o.id);o.setVal(s),o.updateSelection(t),o.clearSearch(),i&&o.triggerChange(o.buildChangeDetails(n,o.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var t=[],s=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){t.push(s.opts.id(e(this).data("select2-data")))}),this.setVal(t),this.triggerChange()},data:function(t,s){var i,n,o=this;return 0===arguments.length?this.selection.find(".select2-search-choice").map(function(){return e(this).data("select2-data")}).get():(n=this.data(),t||(t=[]),i=e.map(t,function(e){return o.opts.id(e)}),this.setVal(i),this.updateSelection(t),this.clearSearch(),void(s&&this.triggerChange(this.buildChangeDetails(n,this.data()))))}}),e.fn.select2=function(){var s,n,o,a,c,r=Array.prototype.slice.call(arguments,0),l=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],h=["opened","isFocused","container","dropdown"],d=["val","data"],u={search:"externalSearch"};return this.each(function(){if(0===r.length||"object"==typeof r[0])(s=0===r.length?{}:e.extend({},r[0])).element=e(this),"select"===s.element.get(0).tagName.toLowerCase()?c=s.element.prop("multiple"):(c=s.multiple||!1,"tags"in s&&(s.multiple=c=!0)),(n=c?new T:new x).init(s);else{if("string"!=typeof r[0])throw"Invalid arguments to select2 plugin: "+r;if(i(r[0],l)<0)throw"Unknown method: "+r[0];if(a=t,(n=e(this).data("select2"))===t)return;if("container"===(o=r[0])?a=n.container:"dropdown"===o?a=n.dropdown:(u[o]&&(o=u[o]),a=n[o].apply(n,r.slice(1))),i(r[0],h)>=0||i(r[0],d)&&1==r.length)return!1}}),a===t?this:a},e.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,s,i){var n=[];return f(e.text,s.term,n,i),n.join("")},formatSelection:function(e,s,i){return e?i(e.text):t},sortResults:function(e){return e},formatResultCssClass:function(){return t},formatSelectionCssClass:function(){return t},formatNoMatches:function(){return"Совпадений не найдено"},formatInputTooShort:function(e,t){return"В этом поле должно быть более "+(t-e.length)+" символов"},formatInputTooLong:function(e,t){var s=e.length-t;return"Пожалуйста, введите на "+s+" символ"+(1==s?"":s>1&&s<5?"а":"ов")+" меньше"},formatSelectionTooBig:function(e){return"Вы можете выбрать не более "+limit+" элемент"+(1==limit?"а":"ов")},formatLoadMore:function(){return"Загрузка данных..."},formatSearching:function(){return"Поиск..."},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e.id},matcher:function(e,t){return s(""+t).toUpperCase().indexOf(s(""+e).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:function(e,s,i,o){var a,c,r,l,h,d=e,u=!1;if(!o.createSearchChoice||!o.tokenSeparators||o.tokenSeparators.length<1)return t;for(;;){for(c=-1,r=0,l=o.tokenSeparators.length;l>r&&(h=o.tokenSeparators[r],!((c=e.indexOf(h))>=0));r++);if(0>c)break;if(a=e.substring(0,c),e=e.substring(c+h.length),a.length>0&&(a=o.createSearchChoice.call(this,a,s))!==t&&null!==a&&o.id(a)!==t&&null!==o.id(a)){for(u=!1,r=0,l=s.length;l>r;r++)if(n(o.id(a),o.id(s[r]))){u=!0;break}u||i(a)}}return d!==e?e:void 0},escapeMarkup:g,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(){return null},nextSearchTerm:function(){return t}},e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:m,local:v,tags:w},util:{debounce:l,markMatch:f,escapeMarkup:g,stripDiacritics:s},class:{abstract:E,single:x,multi:T}}}}(jQuery);;!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";function t(t){return!t.nodeName||-1!==e.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])}function o(t){return e.isFunction(t)||e.isPlainObject(t)?t:{top:t,left:t}}var n=e.scrollTo=function(t,o,n){return e(window).scrollTo(t,o,n)};return n.defaults={axis:"xy",duration:0,limit:!0},e.fn.scrollTo=function(r,i,s){"object"==typeof i&&(s=i,i=0),"function"==typeof s&&(s={onAfter:s}),"max"===r&&(r=9e9),s=e.extend({},n.defaults,s),i=i||s.duration;var a=s.queue&&1<s.axis.length;return a&&(i/=2),s.offset=o(s.offset),s.over=o(s.over),this.each(function(){function u(t){var o=e.extend({},s,{queue:!0,duration:i,complete:t&&function(){t.call(l,m,s)}});d.animate(p,o)}if(null!==r){var f,c=t(this),l=c?this.contentWindow||window:this,d=e(l),m=r,p={};switch(typeof m){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(m)){m=o(m);break}m=c?e(m):e(m,l);case"object":if(0===m.length)return;(m.is||m.style)&&(f=(m=e(m)).offset())}var h=e.isFunction(s.offset)&&s.offset(l,m)||s.offset;e.each(s.axis.split(""),function(e,t){var o="x"===t?"Left":"Top",r=o.toLowerCase(),i="scroll"+o,x=d[i](),v=n.max(l,t);f?(p[i]=f[r]+(c?0:x-d.offset()[r]),s.margin&&(p[i]-=parseInt(m.css("margin"+o),10)||0,p[i]-=parseInt(m.css("border"+o+"Width"),10)||0),p[i]+=h[r]||0,s.over[r]&&(p[i]+=m["x"===t?"width":"height"]()*s.over[r])):(o=m[r],p[i]=o.slice&&"%"===o.slice(-1)?parseFloat(o)/100*v:o),s.limit&&/^\d+$/.test(p[i])&&(p[i]=0>=p[i]?0:Math.min(p[i],v)),!e&&1<s.axis.length&&(x===p[i]?p={}:a&&(u(s.onAfterFirst),p={}))}),u(s.onAfter)}})},n.max=function(o,n){var r="scroll"+(i="x"===n?"Width":"Height");if(!t(o))return o[r]-e(o)[i.toLowerCase()]();var i="client"+i,s=(a=o.ownerDocument||o.document).documentElement,a=a.body;return Math.max(s[r],a[r])-Math.min(s[i],a[i])},e.Tween.propHooks.scrollLeft=e.Tween.propHooks.scrollTop={get:function(t){return e(t.elem)[t.prop]()},set:function(t){var o=this.get(t);if(t.options.interrupt&&t._last&&t._last!==o)return e(t.elem).stop();var n=Math.round(t.now);o!==n&&(e(t.elem)[t.prop](n),t._last=this.get(t))}},n});;!function(t){var e,n=t.fn.domManip,l="_tmplitem",a=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,r={},p={},i={key:0,data:{}},o=0,u=0,c=[];function f(e,n,l,a){var i={data:a||(n?n.data:{}),_wrap:n?n._wrap:null,tmpl:null,parent:n||null,nodes:[],calls:_,nest:g,wrap:v,html:w,update:T};return e&&t.extend(i,e,{nodes:[],parent:n}),l&&(i.tmpl=l,i._ctnt=i._ctnt||i.tmpl(t,i),i.key=++o,(c.length?p:r)[o]=i),i}function m(e,n,a){var r,p=a?t.map(a,function(t){return"string"==typeof t?e.key?t.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+l+'="'+e.key+'" $2'):t:m(t,e,t._ctnt)}):e;return n?p:((p=p.join("")).replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(e,n,l,a){y(r=t(l).get()),n&&(r=s(n).concat(r)),a&&(r=r.concat(s(a)))}),r||s(p))}function s(e){var n=document.createElement("div");return n.innerHTML=e,t.makeArray(n.childNodes)}function d(e){return new Function("jQuery","$item","var $=jQuery,call,_=[],$data=$item.data;with($data){_.push('"+t.trim(e).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,function(e,n,l,a,r,p,i){var o,u,c,f=t.tmpl.tag[l];if(!f)throw"Template command not found: "+l;return o=f._default||[],p&&!/\w$/.test(r)&&(r+=p,p=""),r?(r=h(r),i=i?","+h(i)+")":p?")":"",u=p?r.indexOf(".")>-1?r+p:"("+r+").call($item"+i:r,c=p?u:"(typeof("+r+")==='function'?("+r+").call($item):("+r+"))"):c=u=o.$1||"null",a=h(a),"');"+f[n?"close":"open"].split("$notnull_1").join(r?"typeof("+r+")!=='undefined' && ("+r+")!=null":"true").split("$1a").join(c).split("$1").join(u).split("$2").join(a?a.replace(/\s*([^\(]+)\s*(\((.*?)\))?/g,function(t,e,n,l){return(l=l?","+l+")":n?")":"")?"("+e+").call($item"+l:t}):o.$2||"")+"_.push('"})+"');}return _;")}function $(e,n){e._wrap=m(e,!0,t.isArray(n)?n:[a.test(n)?n:t(n).html()]).join("")}function h(t){return t?t.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function y(e){var n,a,i,c,m,s="_"+u,d={};for(i=0,c=e.length;i<c;i++)if(1===(n=e[i]).nodeType){for(m=(a=n.getElementsByTagName("*")).length-1;m>=0;m--)$(a[m]);$(n)}function $(e){var n,a,i,c,m=e;if(c=e.getAttribute(l)){for(;m.parentNode&&1===(m=m.parentNode).nodeType&&!(n=m.getAttribute(l)););n!==c&&(m=m.parentNode?11===m.nodeType?0:m.getAttribute(l)||0:0,(i=r[c])||((i=f(i=p[c],r[m]||p[m],null,!0)).key=++o,r[o]=i),u&&$(c)),e.removeAttribute(l)}else u&&(i=t.data(e,"tmplItem"))&&($(i.key),r[i.key]=i,m=(m=t.data(e.parentNode,"tmplItem"))?m.key:0);if(i){for(a=i;a&&a.key!=m;)a.nodes.push(e),a=a.parent;delete i._ctnt,delete i._wrap,t.data(e,"tmplItem",i)}function $(t){i=d[t+=s]=d[t]||f(i,r[i.parent.key+s]||i.parent,null,!0)}}}function _(t,e,n,l){if(!t)return c.pop();c.push({_:t,tmpl:e,item:this,data:n,options:l})}function g(e,n,l){return t.tmpl(t.template(e),n,l,this)}function v(e,n){var l=e.options||{};return l.wrapped=n,t.tmpl(t.template(e.tmpl),e.data,l,e.item)}function w(e,n){var l=this._wrap;return t.map(t(t.isArray(l)?l.join(""):l).filter(e||"*"),function(t){return n?t.innerText||t.textContent:t.outerHTML||function(t){var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t)})}function T(){var e=this.nodes;t.tmpl(null,null,null,this).insertBefore(e[0]),t(e).remove()}t.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,l){t.fn[n]=function(a){var p,i,o,c,f=[],m=t(a),s=1===this.length&&this[0].parentNode;if(e=r||{},s&&11===s.nodeType&&1===s.childNodes.length&&1===m.length)m[l](this[0]),f=this;else{for(i=0,o=m.length;i<o;i++)u=i,p=(i>0?this.clone(!0):this).get(),t.fn[l].apply(t(m[i]),p),f=f.concat(p);u=0,f=this.pushStack(f,n,m.selector)}return c=e,e=null,t.tmpl.complete(c),f}}),t.fn.extend({tmpl:function(e,n,l){return t.tmpl(this[0],e,n,l)},tmplItem:function(){return t.tmplItem(this[0])},template:function(e){return t.template(e,this[0])},domManip:function(l,a,p){if(l[0]&&l[0].nodeType){for(var i,o=t.makeArray(arguments),c=l.length,f=0;f<c&&!(i=t.data(l[f++],"tmplItem")););c>1&&(o[0]=[t.makeArray(l)]),i&&u&&(o[2]=function(e){t.tmpl.afterManip(this,e,p)}),n.apply(this,o)}else n.apply(this,arguments);return u=0,!e&&t.tmpl.complete(r),this}}),t.extend({tmpl:function(e,n,l,a){var o,u=!a;if(u)a=i,e=t.template[e]||t.template(null,e),p={};else if(!e)return e=a.tmpl,r[a.key]=a,a.nodes=[],a.wrapped&&$(a,a.wrapped),t(m(a,null,a.tmpl(t,a)));return e?("function"==typeof n&&(n=n.call(a||{})),l&&l.wrapped&&$(l,l.wrapped),o=t.isArray(n)?t.map(n,function(t){return t?f(l,a,e,t):null}):[f(l,a,e,n)],u?t(m(a,null,o)):o):[]},tmplItem:function(e){var n;for(e instanceof t&&(e=e[0]);e&&1===e.nodeType&&!(n=t.data(e,"tmplItem"))&&(e=e.parentNode););return n||i},template:function(e,n){return n?("string"==typeof n?n=d(n):n instanceof t&&(n=n[0]||{}),n.nodeType&&(n=t.data(n,"tmpl")||t.data(n,"tmpl",d(n.innerHTML))),"string"==typeof e?t.template[e]=n:n):e?"string"!=typeof e?t.template(null,e):t.template[e]||t.template(null,a.test(e)?e:t(e)):null},encode:function(t){return(""+t).split("<").join("<").split(">").join(">").split('"').join(""").split("'").join("'")}}),t.extend(t.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){_=_.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(_,$1,$2);_=[];",close:"call=$item.calls();_=call._.concat($item.wrap(call,_));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},if:{open:"if(($notnull_1) && $1a){",close:"}"},else:{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){_.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){_.push($.encode($1a));}"},"!":{open:""}},complete:function(){r={}},afterManip:function(e,n,l){var a=11===n.nodeType?t.makeArray(n.childNodes):1===n.nodeType?[n]:[];l.call(e,n),y(a),u++}})}(jQuery);;!function(e){"function"==typeof define&&define.amd?define([],e):"undefined"!=typeof module&&null!==module&&module.exports?module.exports=e:e()}(function(){var e=Object.assign||window.jQuery&&jQuery.extend,t=8,n=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){return window.setTimeout(function(){e()},25)};!function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}();var o={textarea:!0,input:!0,select:!0,button:!0},i={move:"mousemove",cancel:"mouseup dragstart",end:"mouseup"},a={move:"touchmove",cancel:"touchend",end:"touchend"},u=/\s+/,c={bubbles:!0,cancelable:!0},r="function"==typeof Symbol?Symbol("events"):{};function d(e){return e[r]||(e[r]={})}function m(e,t,n,o,i){t=t.split(u);var a,c=d(e),r=t.length;function m(e){n(e,o)}for(;r--;)(c[a=t[r]]||(c[a]=[])).push([n,m]),e.addEventListener(a,m)}function f(e,t,n,o){t=t.split(u);var i,a,c,r=d(e),m=t.length;if(r)for(;m--;)if(a=r[i=t[m]])for(c=a.length;c--;)a[c][0]===n&&(e.removeEventListener(i,a[c][1]),a.splice(c,1))}function v(t,n,o){var i=function(e){return new CustomEvent(e,c)}(n);o&&e(i,o),t.dispatchEvent(i)}function s(e){var t=e,o=!1,i=!1;function a(e){o?(t(),n(a),i=!0,o=!1):i=!1}this.kick=function(e){o=!0,i||a()},this.end=function(e){var n=t;e&&(i?(t=o?function(){n(),e()}:e,o=!0):e())}}function l(){}function p(e){e.preventDefault()}function g(e,t){var n,o;if(e.identifiedTouch)return e.identifiedTouch(t);for(n=-1,o=e.length;++n<o;)if(e[n].identifier===t)return e[n]}function h(e,t){var n=g(e.changedTouches,t.identifier);if(n&&(n.pageX!==t.pageX||n.pageY!==t.pageY))return n}function X(e,t){b(e,t,e,y)}function Y(e,t){y()}function y(){f(document,i.move,X),f(document,i.cancel,Y)}function w(e){f(document,a.move,e.touchmove),f(document,a.cancel,e.touchend)}function b(e,n,o,i){var a=o.pageX-n.pageX,u=o.pageY-n.pageY;a*a+u*u<t*t||function(e,t,n,o,i,a){var u=e.targetTouches,c=e.timeStamp-t.timeStamp,r={altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,startX:t.pageX,startY:t.pageY,distX:o,distY:i,deltaX:o,deltaY:i,pageX:n.pageX,pageY:n.pageY,velocityX:o/c,velocityY:i/c,identifier:t.identifier,targetTouches:u,finger:u?u.length:1,enableMove:function(){this.moveEnabled=!0,this.enableMove=l,e.preventDefault()}};v(t.target,"movestart",r),a(t)}(e,n,o,a,u,i)}function T(e,t){var n=t.timer;t.touch=e,t.timeStamp=e.timeStamp,n.kick()}function E(e,t){var n=t.target,o=t.event,a=t.timer;f(document,i.move,T),f(document,i.end,E),k(n,o,a,function(){setTimeout(function(){f(n,"click",p)},0)})}function S(e,t){var n=t.target,o=t.event,i=t.timer;g(e.changedTouches,o.identifier)&&(!function(e){f(document,a.move,e.activeTouchmove),f(document,a.end,e.activeTouchend)}(t),k(n,o,i))}function k(e,t,n,o){n.end(function(){return v(e,"moveend",t),o&&o()})}if(m(document,"mousedown",function(e){(function(e){return 1===e.which&&!e.ctrlKey&&!e.altKey})(e)&&(function(e){return!!o[e.target.tagName.toLowerCase()]}(e)||(m(document,i.move,X,e),m(document,i.cancel,Y,e)))}),m(document,"touchstart",function(e){if(!o[e.target.tagName.toLowerCase()]){var t=e.changedTouches[0],n={target:t.target,pageX:t.pageX,pageY:t.pageY,identifier:t.identifier,touchmove:function(e,t){!function(e,t){var n=h(e,t);n&&b(e,t,n,w)}(e,t)},touchend:function(e,t){!function(e,t){g(e.changedTouches,t.identifier)&&w(t)}(e,t)}};m(document,a.move,n.touchmove,n),m(document,a.cancel,n.touchend,n)}}),m(document,"movestart",function(e){if(!e.defaultPrevented&&e.moveEnabled){var t={startX:e.startX,startY:e.startY,pageX:e.pageX,pageY:e.pageY,distX:e.distX,distY:e.distY,deltaX:e.deltaX,deltaY:e.deltaY,velocityX:e.velocityX,velocityY:e.velocityY,identifier:e.identifier,targetTouches:e.targetTouches,finger:e.finger},n={target:e.target,event:t,timer:new s(function(e){(function(e,t,n){var o=n-e.timeStamp;e.distX=t.pageX-e.startX,e.distY=t.pageY-e.startY,e.deltaX=t.pageX-e.pageX,e.deltaY=t.pageY-e.pageY,e.velocityX=.3*e.velocityX+.7*e.deltaX/o,e.velocityY=.3*e.velocityY+.7*e.deltaY/o,e.pageX=t.pageX,e.pageY=t.pageY})(t,n.touch,n.timeStamp),v(n.target,"move",t)}),touch:void 0,timeStamp:e.timeStamp};void 0===e.identifier?(m(e.target,"click",p),m(document,i.move,T,n),m(document,i.end,E,n)):(n.activeTouchmove=function(e,t){!function(e,t){var n=t.event,o=t.timer,i=h(e,n);i&&(e.preventDefault(),n.targetTouches=e.targetTouches,t.touch=i,t.timeStamp=e.timeStamp,o.kick())}(e,t)},n.activeTouchend=function(e,t){S(e,t)},m(document,a.move,n.activeTouchmove,n),m(document,a.end,n.activeTouchend,n))}}),window.jQuery){var K="startX startY pageX pageY distX distY deltaX deltaY velocityX velocityY".split(" ");jQuery.event.special.movestart={setup:function(){return m(this,"movestart",j),!1},teardown:function(){return f(this,"movestart",j),!1},add:q},jQuery.event.special.move={setup:function(){return m(this,"movestart",C),!1},teardown:function(){return f(this,"movestart",C),!1},add:q},jQuery.event.special.moveend={setup:function(){return m(this,"movestart",Q),!1},teardown:function(){return f(this,"movestart",Q),!1},add:q}}function j(e){e.enableMove()}function C(e){e.enableMove()}function Q(e){e.enableMove()}function q(e){var t=e.handler;e.handler=function(e){for(var n,o=K.length;o--;)e[n=K[o]]=e.originalEvent[n];t.apply(this,arguments)}}});;!function(t){t.fn.twentytwenty=function(e){e=t.extend({default_offset_pct:.5,orientation:"horizontal",before_label:"Было",after_label:"Стало",no_overlay:!1,move_slider_on_hover:!1,move_with_handle_only:!0,click_to_move:!1},e);return this.each(function(){var n=e.default_offset_pct,a=t(this),i=e.orientation,o="vertical"===i?"down":"left",s="vertical"===i?"up":"right";if(a.wrap("<div class='twentytwenty-wrapper twentytwenty-"+i+"'></div>"),!e.no_overlay){a.append("<div class='twentytwenty-overlay'></div>");var c=a.find(".twentytwenty-overlay");c.append("<div class='twentytwenty-before-label' data-content='"+e.before_label+"'></div>"),c.append("<div class='twentytwenty-after-label' data-content='"+e.after_label+"'></div>")}var l=a.find("img:first"),r=a.find("img:last");a.append("<div class='twentytwenty-handle'></div>");var d=a.find(".twentytwenty-handle");d.append("<span class='twentytwenty-"+o+"-arrow'></span>"),d.append("<span class='twentytwenty-"+s+"-arrow'></span>"),a.addClass("twentytwenty-container"),l.addClass("twentytwenty-before"),r.addClass("twentytwenty-after");var w=function(t){var e,n,o,s=(e=t,n=l.width(),o=l.height(),{w:n+"px",h:o+"px",cw:e*n+"px",ch:e*o+"px"});d.css("vertical"===i?"top":"left","vertical"===i?s.ch:s.cw),function(t){"vertical"===i?(l.css("clip","rect(0,"+t.w+","+t.ch+",0)"),r.css("clip","rect("+t.ch+","+t.w+","+t.h+",0)")):(l.css("clip","rect(0,"+t.cw+","+t.h+",0)"),r.css("clip","rect(0,"+t.w+","+t.h+","+t.cw+")")),a.css("height",t.h)}(s)},v=function(t,e){var n,a,o;return n="vertical"===i?(e-p)/h:(t-f)/y,a=0,o=1,Math.max(a,Math.min(o,n))};t(window).on("resize.twentytwenty",function(t){w(n)});var f=0,p=0,y=0,h=0,u=function(t){(t.distX>t.distY&&t.distX<-t.distY||t.distX<t.distY&&t.distX>-t.distY)&&"vertical"!==i?t.preventDefault():(t.distX<t.distY&&t.distX<-t.distY||t.distX>t.distY&&t.distX>-t.distY)&&"vertical"===i&&t.preventDefault(),a.addClass("active"),f=a.offset().left,p=a.offset().top,y=l.width(),h=l.height()},_=function(t){a.hasClass("active")&&(n=v(t.pageX,t.pageY),w(n))},m=function(){a.removeClass("active")},g=e.move_with_handle_only?d:a;g.on("movestart",u),g.on("move",_),g.on("moveend",m),e.move_slider_on_hover&&(a.on("mouseenter",u),a.on("mousemove",_),a.on("mouseleave",m)),d.on("touchmove",function(t){t.preventDefault()}),a.find("img").on("mousedown",function(t){t.preventDefault()}),e.click_to_move&&a.on("click",function(t){f=a.offset().left,p=a.offset().top,y=l.width(),h=l.height(),n=v(t.pageX,t.pageY),w(n)}),t(window).trigger("resize.twentytwenty")})}}(jQuery);;!function(e){var i=function(i,t){this.container=i,this.appsInfoUrl="https://webcf.waybackmachine.org/web/20220331213512/https://itunes.apple.com/lookup?id={appId}&callback=?",this.origHtmlMargin=parseFloat(e("html").css("margin-top"));var n={devices:["ipad","iphone"],styleFile:"/css/smart-app-banner.css",wrapClass:"smart_banner",closeCookie:{enabled:!0,name:"iosAppBanner_closed",path:"/",expires:7}};this.options=e.extend(n,t||{}),this.init()};i.prototype={init:function(){this.initBanner()},initBanner:function(){var i=this,t=this.options,n=navigator.userAgent;if(!this.options.closeCookie.enabled||!i.getClosedCookie()){var a=e("meta[name=apple-itunes-app]").attr("content");if(a){var s=/app-id=([0-9]+)/.exec(a)[1];this.isValidDevice(n,t.devices)&&null==n.match(/Version.*Mobile.*Safari|Safari.*Mobile/i)&&e.getJSON(i.appsInfoUrl.replace("{appId}",s),function(e){e&&"undefined"!=e.results&&e.results.length&&i.showBanner(e.results[0])})}}},showBanner:function(i){var t=this,n="."+this.options.wrapClass;this.loadStyles();var a=t.buildBannerHtml(i);t.container.append(a),e(n).stop().animate({top:0},300),e("html").animate({marginTop:t.origHtmlMargin+78},300),e(n+" .close_btn").click(function(i){i.preventDefault(),t.setClosedCookie(),e(n).stop().animate({top:"-82px"},300),e("html").animate({marginTop:t.origHtmlMargin},300)})},isValidDevice:function(e,i){for(var t={ipad:/iPad/i,iphone:/iPhone/i,ipod:/iPod/i,firefox:/Firefox/i},n=!1,a=0;a<i.length;a++){var s=t[i[a]];if(void 0!==s&&e.match(s)){n=!0;break}}return n},buildBannerHtml:function(e){null==e.averageUserRating&&(e.averageUserRating=0);var i=e.averageUserRating.toString().replace(".",""),t=e.trackViewUrl.replace("https://","itmss://");return'<div class="'+this.options.wrapClass+'"><a href="#" class="close_btn"></a><img src="'+e.artworkUrl60+'" alt="" class="smart_glossy_icon" /><div class="info_bl"><strong>'+e.trackCensoredName+"</strong><span>"+e.artistName+'</span><span class="rating_static rating_'+i+'"></span><span>'+e.formattedPrice+'</span></div><a href="'+t+'" class="view_btn">Смотреть</a></div>'},loadStyles:function(){e("head").append(e('<link rel="stylesheet" type="text/css" />').attr("href",this.options.styleFile))},getClosedCookie:function(){return e.cookie(this.options.closeCookie.name)},setClosedCookie:function(){var i=this.options.closeCookie;i.enabled&&e.cookie(i.name,"1",{expires:i.expires,path:i.path})}},e.fn.iosAppBanner=function(e){var t=this.data("iosAppBanner"),n=t?t.obj:new i(this,e);if(t||this.data("iosAppBanner",{obj:n}),"object"!=typeof e&&n[e]){var a=Array.prototype.slice.call(arguments,1);return n[e].apply(n,a)}return this}}(jQuery),$(document).ready(function(){$("head").append($('<link rel="stylesheet" type="text/css" />').attr("href","https://webcf.waybackmachine.org/web/20220331213512/https://fonts.googleapis.com/css?family=Open+Sans:400,600&subset=latin,cyrillic")),new FontFaceObserver("Open Sans").check(null,3e3).then(function(){$("body").iosAppBanner({devices:["iphone","ipod","ipad"]})},function(){$("body").iosAppBanner({devices:["iphone","ipod","ipad"]})})});;!function(t){t.fn.elementCharCounterForm=function(a,e){var r=a||this.data("limit"),i=t(this).attr("value"),n=(i=e||".char_counter",Math.max(i?r-i.length:r,0));void 0===t(this).data("limit")&&t(this).attr("limit",r),t(this).attr("data-original-title","Осталось символов "+n),t(this).keypress(function(){var a=t(this);a.val().length>r&&a.val(a.val().substring(0,r))}),t(this).keyup(function(){var a=t(this);a.val().length>r&&a.val(a.val().substring(0,r));var i=a.attr("limit")||a.data("limit"),n=Math.max(i-a.val().length,0);a.attr("data-original-title","Осталось символов "+n),0!=a.val().length?t(e).text("Осталось символов "+n):t(e).text("")})}}(jQuery),$(document).ready(function(t){t("#ask_text").elementCharCounterForm(1500,"#ask_text_box"),t("#topic").elementCharCounterForm(150,"#topic_box"),t("#textarea_comments").elementCharCounterForm(t("#textarea_comments").data("max-chars"),"#textarea_comments_box"),t("#offer_text").elementCharCounterForm(1500,"#offer_text_box")});;!function(o){function n(n,i){this.element=o(n),this.options=o.extend({content:""},i),this.block=o('<div class="oveloloading"> <div class="center_box"> <div class="loading_text"></div> <div class="loading_box"></div> </div> </div>'),this.open(this.options)}n.prototype={open:function(n){this.options=o.extend(this.options,n),this._addOverBlock(this.options.content),this.block.show()},close:function(){o(".oveloloading").hide().remove()},_addOverBlock:function(o){0===this.element.find(".oveloloading").length&&this.element.prepend(this.block),this.block.find(".loading_text").text(o)}},o.fn.overloading=function(i,t){return this.each(function(){var e;(e=o.data(this,"plugin_overloading")?o.data(this,"plugin_overloading"):o.data(this,"plugin_overloading",new n(this,i)))[i]?e[i].call(e,t):"object"!=typeof i&&i?o.error("Метод "+i+" в adminMessage не существует"):e.open.apply(e,arguments)})},o.overloading=function(n){var i={content:n};o("body").overloading("open",i)},o.overloading.close=function(){o("body").overloading("close")}}(jQuery);;!function(r,t,e){var o=function(t,e){this.container=r(t),this.options=r.extend({},n,e),this._defaults=n,this.init()};o.prototype={init:function(){var r=this,t=this.container.find(".submit_form_ajax_b_js");t.on("click",function(t){t.preventDefault(),r.submitForm()}),t.removeAttr("disabled")},submitForm:function(){var t=this,e=this.container,o=t.prepareData();this.clearFormErrors(),r.ajax({url:e.attr("action"),async:!0,dataType:"json",type:e.attr("method"),data:o,beforeSend:function(){t.progressStart()},success:function(r){r&&"ok"==r.result?t.onFormSuccess(r):t.onFormError(r)},error:function(r){t.onFormError(r)},complete:function(){t.progressStop()}})},prepareData:function(){this.container;var r={},t=this.container.serializeArray();for(var e in t)/\[\]$/.test(t[e].name)?(r[t[e].name]||(r[t[e].name]=[]),r[t[e].name].push(t[e].value)):r[t[e].name]=t[e].value;return r},progressStart:function(){r.overloading("Обработка запроса ...")},progressStop:function(){r.overloading.close()},showMessage:function(r){alert(r)},onFormSuccess:function(r){this.showMessage("Данные успешно сохранены!"),location.reload()},onFormError:function(t){try{if(Object.keys(t.data.errors).length){for(var e in t.data.errors){var o=t.data.errors[e];r(".field-error-"+e,this.container).text(o)}return}}catch(r){}t.message?this.showMessage(t.message):this.showMessage("Ошибка сохранения данных, попробуй повторить позже!")},clearFormErrors:function(){r(".field-error").text("")}};var n={};r.fn.pluginInit("formManager",o)}(jQuery,window);;!function(i){var t=function(t,s){this.container=i(t),this.options=i.extend({},n,s),this._defaults=n,this.input=this.container.find('input[type="password"]'),this.init()};t.prototype={init:function(){var i=this;this.container.find("."+this.options.showLinkClass).on("click",function(t){t.preventDefault(),i.setVisible()}),this.container.find("."+this.options.hideLinkClass).on("click",function(t){t.preventDefault(),i.setHidden()})},setVisible:function(){this.input.attr("type","text"),this.container.find("."+this.options.hideLinkClass).show(),this.container.find("."+this.options.showLinkClass).hide()},setHidden:function(){this.input.attr("type","password"),this.container.find("."+this.options.hideLinkClass).hide(),this.container.find("."+this.options.showLinkClass).show()},isVisible:function(){return"password"===this.input.attr("type")}};var n={showLinkClass:"show_js",hideLinkClass:"hide_js"};i.fn.pluginInit("passwordHideShow",t)}(jQuery);;!function(t){var i=function(i,e){this.container=t(i),this.options=t.extend({},n,e),this._defaults=n,this.overlay=t(".overlay"),this.opened=!1,this.init()};i.prototype={init:function(){var t=this;this.appendCloser(),this.closer.on("click",function(i){i.preventDefault(),t.close()}),this.overlay.off("click"),this.overlay.on("click",function(i){i.preventDefault(),t.close()}),this.options.autoOpen&&this.show(),this.options.title&&this.setTitle(this.options.title),this.options.content&&this.setContent(this.options.content),t.resize()},show:function(){this.container.addClass("show"),this.overlay.addClass("show"),this.container.trigger("popup:opened"),this.container.hasClass("poll_item_popup")&&(this.resize(),this.setHeight())},close:function(){this.container.removeClass("show"),this.overlay.removeClass("show"),this.container.trigger("popup:closed"),t(window).off("popup.resize"),this.container.hasClass("poll_item_popup")&&this.container.height("auto")},setContent:function(i){var n=this.container.find(".inner_js");n.length||(n=t('<div class="inner inner_js"></div>').appendTo(this.container)),n.html(i)},setTitle:function(i){var n=this.container.find("h2");n.length||(n=t("<h2></h2>").appendTo(this.container)),n.html(i)},appendCloser:function(){var i=this.container.find(".closer_js");i.length||(i=t('<a href="#" class="closer closer_js"></a>').appendTo(this.container)),this.closer=i},isOpened:function(){return this.opened},setHeight:function(){var t=this.container.outerHeight();this.container.outerHeight(t)},resize:function(){var i=this;t(window).on("popup.resize",function(){i.isOpened&&i.setHeight()}),t(window).on("resize",function(){t(window).trigger("popup.resize")})}};var n={autoOpen:!0,content:null,title:null};t.fn.pluginInit("aifPopup",i)}(jQuery);;!function(n){var t=function(t,o){this.container=n(t),this.options=n.extend({},i,o),this._defaults=i,this.init()};t.prototype={init:function(){var t=this;n(window).on("scroll",function(){n(this).scrollTop()>100?t.container.fadeIn():t.container.fadeOut()}),n(this.container).click(function(t){t.preventDefault(),n("body,html").animate({scrollTop:0},800)})}};var i={};n.fn.pluginInit("scrollToTop",t)}(jQuery);;function Auth(){var t;return(Auth=function(){return t}).prototype=this,(t=new Auth).constructor=Auth,t.init(),t.userData={},t}function AuthPanel(){var t;return(AuthPanel=function(){return t}).prototype=this,(t=new AuthPanel).constructor=AuthPanel,t.init(),t}function uloginCallbackFromHeader(t){(new AuthPanel).ulogin(t)}function AuthForm(t){this.container=t,this.form=t.find("form"),this.init()}Auth.prototype={init:function(){this.actionsUrls={login:"/auth",ulogin:"/ulogin",logout:"/logout",recovery:"/recovery",register:"/registration"}},login:function(t,n){this.sendRequest("login",$.extend(n,{data:t}))},logout:function(t){this.sendRequest("logout",t)},recovery:function(t,n){this.sendRequest("recovery",$.extend(n,{data:t}))},register:function(t,n){this.sendRequest("register",$.extend(n,{data:t}))},ulogin:function(t,n){this.sendRequest("ulogin",$.extend(n,{data:{token:t}}))},sendRequest:function(t,n){var e=$.extend({},{url:this.actionsUrls[t],dataType:"json",type:"POST",data:{},success:function(t){console.dir(t)},error:function(){console.dir(response)}},n||{});$.ajax(e)},user:function(){return this.userData}},AuthPanel.prototype={init:function(){this.options={defBlock:"login",panelContentUrl:"/siteuser/index/authform"},this.panelCont=null,this.blocks={},this.ajaxProcess=!1,this.reloadUrl=null,this.initBinds(),null!=currentUser&¤tUser.is_logged&&this.showAuthUserStatus()},initBinds:function(){var t=this;$(document).on("click",".auth_open_js",function(n){n.preventDefault(),n.stopPropagation();var e=$(this).data("auth-reload-hash"),o=location.href;e?(e="#"+e,-1!=o.indexOf("#")?t.reloadUrl=o.replace(location.hash,e):t.reloadUrl=o+e):t.reloadUrl=null;var s=$(this).data("block-name");s||(s=t.options.defBlock),t.showPanel(s)})},login:function(){var t=new Auth,n=this.getActiveBlock().form.getForm();t.login(n.serialize(),this.getAuthAjaxParams(!0,1e3))},ulogin:function(t){(new Auth).ulogin(t,this.getAuthAjaxParams(!0,1e3))},recovery:function(){var t=new Auth,n=this.getActiveBlock().form.getForm();t.recovery(n.serialize(),this.getAuthAjaxParams())},registration:function(){var t=new Auth,n=this.getActiveBlock().form.getForm();t.register(n.serialize(),this.getAuthAjaxParams())},logout:function(){(new Auth).logout(this.getAuthAjaxParams(!0))},showAuthUserStatus:function(){var t=this;$(".header .cont_center").addClass("authorized"),$(".auth_user_status_js").each(function(){var n=$(this);n.find(".auth_link_profile_js").show(),n.find(".auth_link_login_js").hide(),n.find(".auth_link_registration_js").hide(),n.find(".auth_link_logout_js").show().on("click",function(n){n.preventDefault(),t.reloadUrl=null,t.logout()})})},showPanel:function(t){if(t||(t=this.options.defBlock),null==this.panelCont)return this.loadPanelContent(t);this.setActiveBlock(t),this.panelCont&&this.panelCont.aifPopup("isOpened")||this.openPopup()},loadPanelContent:function(t){var n=this;$.ajax({url:n.options.panelContentUrl,dataType:"json",type:"GET",async:!1,beforeSend:function(t,n){},success:function(e){e&&"ok"==e.result?(n.setPanelContent(e.data),n.showPanel(t)):alert("Ошибка загрузки данных. Пожалуйста, повторите попытку позднее.")},complete:function(){}})},setPanelContent:function(t){var n=this;$("body").append(t),n.panelCont=$(".auth_popup_js"),n.blocks={},n.panelCont.find(".panel_block_js").each(function(){n.blocks[$(this).data("block-name")]={block:$(this),form:new AuthForm($(this))}}),n.panelCont.find(".password_hide_show_js").each(function(){n.addPasswordHideShowLinks($(this))}),n.panelCont.aifPopup({autoOpen:!1})},initPanelContainerBinds:function(){var t=this,n=t.panelCont;n.find(".show_block_link_js").on("click",function(n){n.preventDefault(),t.setActiveBlock($(this).data("block-name"))}),n.find(".submit_link_js").on("click",function(n){if(n.preventDefault(),t.getActiveBlock().form.clearErrorMessages(),!t.ajaxProcess){var e=t.getActiveBlock().form.validate();if(e.valid){var o=$(this).data("action"),s={login:t.login,recovery:t.recovery,ulogin:t.ulogin,registration:t.registration};"function"==typeof s[o]&&s[o].call(t)}else t.displayErrors(e.errors)}}),n.find("form").on("submit",function(t){t.preventDefault(),$(this).find(".submit_link_js").trigger("click")})},openPopup:function(){this.panelCont.find("."+this.options.blockResultClass).hide(),this.panelCont.find("."+this.options.blockContentClass).show(),this.initPanelContainerBinds(),this.panelCont.aifPopup("show")},getActiveBlock:function(){return this.blocks[this.activeBlock]},setActiveBlock:function(t){for(var n in this.activeBlock=t,this.blocks){var e=this.blocks[n].block;n==t?e.addClass("show"):e.removeClass("show")}this.getActiveBlock().form.clearErrorMessages(),this.getActiveBlock().form.reset()},getAuthAjaxParams:function(t,n){var e=this;return{beforeSend:function(){e.ajaxProcess=!0},success:function(o){if(grecaptcha&&$("#authRecaptchaId").length&&grecaptcha.reset($("#authRecaptchaId").val()),"ok"==o.result){if(void 0!==o.messages&&e.getActiveBlock().form.displaySuccessMsg(o.messages[0]),t){var s=function(){null!=e.reloadUrl&&e.reloadUrl!=location.href&&(location.href=e.reloadUrl),window.location.reload(!0)};n?setTimeout(s,n):s()}}else"error"==o.result&&e.displayErrors(o.messages);e.ajaxProcess=!1},error:function(){e.ajaxProcess=!1,alert("Произошла ошибка при обработке запроса, пожалуйста повторите Ваш запрос позднее")}}},displayErrors:function(t){this.getActiveBlock().form.displayErrors(t)},getPanelContainer:function(){return $(".auth_popup_js")},addPasswordHideShowLinks:function(t){t.find("label").append('<a href="#" class="hide_show_pass_js"><i class="blue_eye"></i> <span class="seePass show_js">Показать пароль</span> <span class="seeDots hide_js">Скрыть пароль</span></a>'),t.passwordHideShow()}},AuthForm.prototype={init:function(){this.options={errorClass:"error_box",successClass:"succesfull_text",blockResultClass:"block_result",blockContentClass:"block_inner"},this.initBinds()},initBinds:function(){},displayErrors:function(t){var n=this;n.clearErrorMessages(),$.each(t,function(t,e){var o=[];for(var s in o="string"==typeof e?[e]:e){var i=$("<div></div>").addClass(n.options.errorClass).html(o[s]);n.container.find("input[name="+t+"]:first").closest("div").append(i)}})},displaySuccessMsg:function(t){var n=$("<div></div>").addClass(this.options.successClass).html(t);this.container.find("."+this.options.blockResultClass).html(n),this.container.find("."+this.options.blockResultClass).show(),this.container.find("."+this.options.blockContentClass).hide()},clearErrorMessages:function(){this.container.find("."+this.options.errorClass).remove()},validate:function(){var t=!0,n={},e="Поле не может быть пустым",o="Проверьте правильность ввода email",s=function(t,e){void 0===n[t]&&(n[t]=[]),n[t].push(e)};return this.container.find("input:text, input:password").not(".select2-input, .subscrRegSelect").each(function(){var n=$(this),i=n.attr("name"),a=n.val();if(n.is(":visible")){if(""==$.trim(a))return s(i,e),void(t=!1);var r=[],l=n.data("validators");if(l&&(r=-1!=l.indexOf(";")?l.split(";"):[l]),r.length)for(var c=0;c<r.length;c++)switch(r[c]){case"email":/\S+@\S+\.\S+/.test(a)||(s(i,o),t=!1)}}}),{valid:t,errors:n}},reset:function(){this.getForm().get(0).reset()},getForm:function(){return this.form}},$(document).ready(function(){new AuthPanel});;!function(o){var t=function(t,a){this.container=o(t),this.options=o.extend({},n,a),this._defaults=n,this.init()};t.prototype={init:function(){if(this.options.tabs.length>0)for(var o=0;o<this.options.tabs.length;o++)null==this.options.tabs[o].is_load_more_on_open&&(this.options.tabs[o].is_load_more_on_open=0!=o),this.options.tabs[o].index=o,this.initTab(this.options.tabs[o]);null!=this.options.open_tab_index&&this.openTabByIndex(this.options.open_tab_index)},initTab:function(t){var n=this;if(null==t.open_button&&(t.open_button=this.container.find(".aiftab:eq("+t.index+")")),null==t.content_container){var a=o(t.open_button).data("container");t.content_container=o("#"+a)}null==t.load_more_button&&(t.load_more_button=o(".load_more",t.content_container)),o(t.open_button).click(function(o){o.preventDefault(),o.stopPropagation(),n.openTab(t)}),t.load_more_options&&null==t.load_more_options.listSelector&&(t.load_more_options.listSelector=o(".list_data:first",t.content_container));var e=o.extend({callbackSuccess:this.options.onLoadTab},t.load_more_options);t.load_more_options&&o(t.load_more_button).loadMore(e),0==t.index&&1==t.is_load_more_on_open&&(t.is_load_more_on_open=!1,o(t.load_more_button).trigger("click"))},openTab:function(t){if(this.options.tabs.length>0)for(var n=0;n<this.options.tabs.length;n++)o(this.options.tabs[n].open_button).removeClass(this.options.activeClass),o(this.options.tabs[n].content_container).hide();o(t.open_button).addClass(this.options.activeClass),o(t.content_container).show(),t.is_load_more_on_open&&(t.is_load_more_on_open=!1,o(t.load_more_button).trigger("click")),null!=t.onOpen&&"function"==typeof t.onOpen&&t.onOpen(t)},openTabByIndex:function(o){var t=this.getTabByIndex(o);null!=t&&this.openTab(t)},getTabs:function(){return this.options.tabs},getTabByIndex:function(o){return tab=null,this.options.tabs[o]&&(tab=this.options.tabs[o]),tab},getActiveTab:function(){for(var o=this.getTabs(),t=null,n=0;n<o.length;n++)if(o[n].open_button.hasClass(this.options.activeClass)){t=o[n];break}return t},updateLoadParams:function(o){for(var t=this.getTabs(),n=0;n<t.length;n++){var a=t[n].load_more_button;a.loadMore("updateLoadParams",o),a.loadMore("setPage",1),t[n].open_button.hasClass(this.options.activeClass)||(t[n].is_load_more_on_open=!0,a.loadMore("clearList"))}},updateLoadParamsAndReloadContent:function(o){this.updateLoadParams(o);var t=this.getActiveTab().load_more_button;t.loadMore("clearList"),t.loadMore("loadContent")}};var n={tabs:[],open_tab_index:null,onLoadTab:function(o){},activeClass:"active"};o.fn.pluginInit("aiftabs",t)}(jQuery);;!function(t,a,e){var s=function(a,e){this.container=t(a),this.options=t.extend({},i,e),this._defaults=i,this.playlist=[],this.player=null,this.currentTrackNum=0;var s=this.container;this.el={playPauseBtn:s.find(".player_play_pause_js"),tracksCounter:s.find(".tracks_counter_js"),seekbar:s.find(".player_seekbar_js"),prevBtn:s.find(".player_prev_js"),nextBtn:s.find(".player_next_js"),curTrackNumber:s.find(".track_cur_number_js"),tracksCount:s.find(".tracks_total_js")};var l=this;this.el.playPauseBtn.on("click",function(t){t.preventDefault(),l.onPlayPauseClick()}),this.options.playlist&&this.options.playlist.length&&this.setPlaylist(this.options.playlist),l.gaPush("AudioPlayer","view")};s.prototype={onPlayPauseClick:function(){this.playlist.length&&(this.player?this.playPause():this.initPlayer())},initPlayer:function(){this.playerElement=t(".player_container_js"),this.player=this.playerElement.get(0),this.gaPush("AudioPlayer","play"),this.afterPlayerInit()},afterPlayerInit:function(){var t=this;this.container;t.player.addEventListener("timeupdate",function(a){t.onChangeTrackPosition()}),t.player.addEventListener("ended",function(){t.changeTrack(1)}),this.el.prevBtn.on("click",function(a){a.preventDefault(),t.changeTrack(-1)}),this.el.nextBtn.on("click",function(a){a.preventDefault(),t.changeTrack(1)}),t.setPlayerTrack(),t.playPause()},setPlaylist:function(t){this.playlist=t},getTrack:function(t){if(this.playlist.length&&!(t>=this.playlist.length))return this.playlist[t]},isPlayerPlaying:function(){return!this.player.paused},isPlayerPaused:function(){return this.player.paused},playPause:function(){if(this.playlist.length){var t="play";this.isPlayerPlaying()&&(t="pause"),"play"===t&&this.gaPush("AudioPlayer","play"),this.player[t](),this.updateState()}},updateState:function(){var t=this.options.pauseClass,a=this.options.hideClass;this.isPlayerPlaying()?(this.el.playPauseBtn.addClass(t),this.el.tracksCounter.show(),this.el.seekbar.removeClass(a),this.el.curTrackNumber.html(this.currentTrackNum+1),this.el.tracksCount.html(this.playlist.length)):this.isPlayerPaused()?this.el.playPauseBtn.removeClass(t):(this.el.playPauseBtn.removeClass(t),this.el.tracksCounter.hide(),this.el.seekbar.addClass(a))},onChangeTrackPosition:function(){var t=Math.ceil(this.player.currentTime/this.player.duration*100);t||(t=0),100===t&&this.currentTrackNum===this.playlist.length-1&&this.updateState(),this.el.seekbar.css("width",t?t+"%":0)},changeTrack:function(t){var a=this.playlist.length;if(a){var e=this.currentTrackNum+t;e<0||e>=a||(this.currentTrackNum=e,this.setPlayerTrack(),this.playPause())}},setPlayerTrack:function(t){t||(t=this.currentTrackNum);var a=this.getTrack(t);a&&(this.player.src=a.url,this.player.load())},gaPush:function(t,e){a.aifGaWrapper.trackEvent(t,e)}};var i={pauseClass:"pause",hideClass:"hide",playlistLoadHandler:null,playError:"Ошибка воспроизведения, пожалуйста повторите попытку через некоторое время или свяжитесь с нами"};t.fn.pluginInit("aifPlayer",s)}(jQuery,window);;!function(i,t){var n=function(t,n){this.options=i.extend({},o,n),this._defaults=o,this._name=s,this.container=i(t),this.init()};n.prototype={init:function(){this.initPlugins(),this.initWidgets()},initPlugins:function(){this.options.initial?i(document).bannersHitsStat():this.container.bannersHitsStat()},initWidgets:function(){this.container.find(".subscription_widget_js, .subscription_item_widget_js").each(function(t){i(this).subscriptionItemWidget()}),this.container.find(".popul_comment_js").each(function(){i(this).tabsFooAp()}),this.container.find(".most_popular_js, .most_comment_js").each(function(){i(this).tabsFooAp2()}),this.container.find(".owl-carousel").each(function(){initWidgetOwlCarousel(this)}),this.container.AifScripts("gallery")}};var s="contentContainerInit",o={initial:!1,reloadBanners:!1};i.fn.pluginInit(s,n)}(jQuery,window);;!function(i){var t=function(t,s){if(this.container=i(t),this.options=i.extend({},o,s),this._defaults=o,this.url=this.options.url,!this.url)throw new Error("Url for subject list must be specified");this.list=this.container.find(".content_list_js"),this.virtualLoadMoreLink=this.container.find(".load_more_virtual_js"),this.loadMoreLink=this.container.find(".more_btn_js"),this.publishedAscToggle=this.container.find(".published_asc_toggle_js"),this.list.length&&this.init()};t.prototype={init:function(){var i=this;this.loadMoreLink.length&&this.loadMoreLink.loadMore({ajax:{url:this.url},listSelector:".content_list_js"}),this.virtualLoadMoreLink.loadMore({ajax:{url:this.url},listSelector:".content_list_js",callbackSuccess:function(){i.loadMoreLink.length&&(i.loadMoreLink.loadMore("setPage",2),i.loadMoreLink.loadMore("updateLoadParams",{published_asc:i.isPublishedAsc()}),i.loadMoreLink.show())}}),this.publishedAscToggle.on("click",function(){i.virtualLoadMoreLink.loadMore("clearList"),i.virtualLoadMoreLink.loadMore("updateLoadParams",{published_asc:i.isPublishedAsc()}),i.virtualLoadMoreLink.loadMore("setPage",1),i.virtualLoadMoreLink.trigger("click")})},isPublishedAsc:function(){return this.publishedAscToggle.prop("checked")?1:0}};var o={};i.fn.pluginInit("subjectContentList",t)}(jQuery);;!function(t){var i=function(i,e){if(this.container=t(i),this.options=t.extend({},o,e),this._defaults=o,this.url=this.options.url,!this.url)throw new Error("Url for subject list must be specified");this.list=this.container.find(".content_list_js"),this.virtualLoadMoreLink=this.container.find(".load_more_virtual_js"),this.loadMoreLink=this.container.find(".more_btn_js"),this.form=this.container.find("form"),this.list.length&&this.init()};i.prototype={init:function(){var i=this,o=this.container.find(".datepicker_js"),e=this.container.find(".only_title_js");o.datepicker({dateFormat:"yy-mm-dd"}),o.on("change",function(){i.updateList()}),this.container.find("select").on("change",function(){i.updateList()}),e.on("click",function(){i.toggleOnlyTitle(t(this).prop("checked"))}),this.loadMoreLink.length&&this.loadMoreLink.loadMore({ajax:{url:this.url},listSelector:".content_list_js",callbackSuccess:function(){e.prop("checked")&&i.toggleOnlyTitle(!0)}}),this.virtualLoadMoreLink.loadMore({ajax:{url:this.url},listSelector:".content_list_js",callbackSuccess:function(){i.loadMoreLink.length&&(i.loadMoreLink.loadMore("setPage",2),i.loadMoreLink.loadMore("updateLoadParams",i.getFormData()),i.loadMoreLink.show()),i.container.find(".only_title_js").prop("checked",!1),i.toggleOnlyTitle(!1)}})},toggleOnlyTitle:function(t){var i=this.list.find(this.options.notTitleSelector);t?i.hide():i.show()},updateList:function(){this.virtualLoadMoreLink.loadMore("clearList"),this.virtualLoadMoreLink.loadMore("updateLoadParams",this.getFormData()),this.virtualLoadMoreLink.loadMore("setPage",1),this.virtualLoadMoreLink.trigger("click")},getFormData:function(){var t=this.form.serializeArray(),i={};for(var o in t)i[t[o].name]=t[o].value;return i}};var o={notTitleSelector:".rubric_link, .img_box, .text_box span"};t.fn.pluginInit("allContentList",i)}(jQuery);;!function(t){var e=function(e,n){this.container=t(e),this.options=t.extend({},s,n),this._defaults=s,this.itemId=null,this.itemType=null,this.lastUserCommentId=null,this.currentUserId=!(!currentUser||!currentUser.id)&¤tUser.id,this.degug=this.options.debug,this.degug&&console.log("Init updates widget"),this.comentsListWrapper=this.container.find(".comments_list_wrapper_js"),this.comentsList=this.comentsListWrapper.find(".comments_list_js"),this.noItemsMsg=this.container.find(".no_items_js"),this.preloader=this.container.find(".preloader"),this.newCommentWrapper=this.container.find(".new_comment_wrapper_js"),this.errorContainer=this.container.find(".error_box_js"),this.successContainer=this.container.find(".success_box_js"),this.loading=!1,this.resetStat(),this.init();var o=this.options.content;o&&o.itemId&&o.itemType&&this.setContent(o.itemId,o.itemType),this.options.closed||this.show()};e.prototype={init:function(){var e=this,s=this.container;this.container.aifPopup({autoOpen:!1}),this.container.on("popup:closed",function(){t("html, body").removeClass("noscroll")}),this.comentsListWrapper.on("scroll",function(){!e.stat.allLoaded&&!e.loading&&e.stat.offset>0&&0===t(this).get(0).scrollTop&&(e.lastUserCommentId=null,e.loadComments())}),s.find(".comment_post_js").on("click",function(t){t.preventDefault(),e.postComment()}),s.find(".widget_closer_js").on("click",function(t){t.preventDefault(),e.close()}),s.on("click",".toggle_collapse_comment_js",function(s){s.preventDefault(),e.collapseComment(t(this).closest(".comment_item_js"))});var n=s.find(".rules_js");s.find(".rules_close_js").on("click",function(t){t.preventDefault(),n.aifPopup("close")});var o=this.newCommentWrapper.find("textarea");o.elementCharCounterForm(o.data("max-chars"),".comments_char_counter_js"),s.on("click",".reply_to_js",function(s){s.preventDefault(),e.replyComment(parseInt(t(this).data("comment-id")),t(this).data("user"))}),this.newCommentWrapper.find("textarea").on("change",function(){t(this).val()||e.newCommentWrapper.find(".reply_to_js").val("")}),s.on("click",".quote_comment_js",function(s){s.preventDefault(),e.quoteComment(parseInt(t(this).data("comment-id")),t(this).data("user"))}),s.find(".quote_close_js").on("click",function(t){t.preventDefault(),e.resetNewCommentBlock()}),s.find(".comments_reload_js").on("click",function(t){t.preventDefault(),e.lastUserCommentId=null,e.refreshCommentsList()}),this.hideShowBlocksDependAuth()},show:function(){this.container.aifPopup("show"),this.refreshCommentsList(),initRecaptchaScripts(),this.captchaReset(),t("html, body").addClass("noscroll")},close:function(){this.container.aifPopup("close"),this.lastUserCommentId=null,t("html, body").removeClass("noscroll")},setContent:function(t,e){this.itemId=t,this.itemType=e,this.lastUserCommentId=null},isContentSet:function(){return this.itemId&&this.itemType},refreshCommentsList:function(){this.isContentSet()&&(this.resetStat(),this.resetNewCommentBlock(),this.comentsList.html(""),this.loadComments())},resetStat:function(){this.stat={offset:0,allLoaded:!1,lastCommentId:null}},resetNewCommentBlock:function(){this.newCommentWrapper.find("textarea").val(""),this.newCommentWrapper.find(".quote_input_text_js").val(""),this.newCommentWrapper.find(".quote_text_js").html(""),this.newCommentWrapper.find(".quote_container_js").hide(),this.newCommentWrapper.find(".reply_to_js").val(""),this.newCommentWrapper.find(".comments_char_counter_js").empty(),this.clearErrors(),this.showSuccess("")},loadComments:function(){if(this.isContentSet()&&!this.loading){var e=this;t.ajax({url:this.options.loadCommentsUrl,method:"post",data:{item_id:e.itemId,item_type_id:e.itemType,offset:e.stat.offset,max_comment_id:e.stat.lastCommentId},beforeSend:function(){t.overloading("Загрузка данных по комментариям"),e.loading=!0},success:function(t){t&&t.data?e.processCommentsData(t.data):t.message?e.showError(t.message):e.showError("Ошибка загрузки данных по комментариям")},complete:function(){t.overloading.close(),e.loading=!1}})}},processCommentsData:function(t){var e=this.comentsList.find(".comment_item_js:first");0===this.stat.offset&&(t.count?this.noItemsMsg.hide():this.noItemsMsg.show(),this.stat.lastCommentId=t.lastId),t.count&&(0===this.stat.offset?this.comentsList.html(t.html):this.comentsList.prepend(t.html)),this.lastUserCommentId?this.comentsListWrapper.scrollTo("#comment_"+this.lastUserCommentId):0===this.stat.offset&&t.count?this.comentsListWrapper.scrollTop(this.comentsListWrapper.get(0).scrollHeight):e.length&&0!==t.count&&this.comentsListWrapper.scrollTo("#"+e.attr("id")),this.stat.offset+=t.perPage,0===t.count&&(this.stat.allLoaded=!0)},postComment:function(){if(this.isContentSet()&&!this.loading){var e=this,s=this.newCommentWrapper.find("form"),n=s.serializeArray(),o={item_id:e.itemId,item_type:e.itemType};for(var i in n)o[n[i].name]=n[i].value;o.body&&t.trim(o.body)?t.ajax({url:s.attr("action"),method:"post",data:o,beforeSend:function(){t.overloading("Отправка комментария"),e.loading=!0},success:function(t){reloadRecaptcha(e.container.find(".recaptcha_js")),e.loading=!1,"ok"===t.result?(t.data&&t.data.id&&(e.lastUserCommentId=parseInt(t.data.id)),e.refreshCommentsList(),e.showSuccess(t.message)):"undefined_commented"===t.result||"on_moderation"===t.result?(e.resetNewCommentBlock(),e.showSuccess(t.message)):t.message?e.showError(t.message):e.showError("Ошибка сохранения данных по комментарию")},complete:function(){t.overloading.close(),e.loading=!1,e.captchaReset()}}):e.showError("Введите текст комментария")}},collapseComment:function(t){t.removeClass(this.options.collapsedCommentClass),t.find(".comment_item_js").removeClass(this.options.collapsedCommentClass),t.parents(".comment_item_js").removeClass(this.options.collapsedCommentClass)},replyComment:function(t,e){this.resetNewCommentBlock(),this.newCommentWrapper.find(".reply_to_js").val(t),this.newCommentWrapper.find("textarea").val(e+": ").focus()},quoteComment:function(t,e){this.resetNewCommentBlock();var s=this.comentsListWrapper.find("#comment_"+t+" .comment_content_js").html();this.newCommentWrapper.find(".quote_text_js").html(e+": "+s),this.newCommentWrapper.find(".quote_input_text_js").val(s),this.newCommentWrapper.find(".quote_container_js").show()},showError:function(t){this.errorContainer.html(t)},clearErrors:function(){this.errorContainer.html("")},showSuccess:function(t){this.successContainer.html(t)},captchaReset:function(){var t=this.container.find("#commentsRecaptchaId");"undefined"!=typeof grecaptcha&&t.length&&grecaptcha.reset(t.val())},hideShowBlocksDependAuth:function(){var t=this.container.find(".not_auth_js"),e=this.container.find(".new_comment_wrapper_js");null!=currentUser&¤tUser.is_logged?(t.hide(),e.show()):(t.show(),e.hide())}};var s={debug:!1,loadCommentsUrl:"/comments/index/getwidgetcomments",content:null,closed:!0,collapsedCommentClass:"collapsed_comment"};t.fn.pluginInit("commentsWidget",e)}(jQuery);;!function(t){var e=function(e,o){this.container=t(e),this.options=t.extend({},n,o),this._defaults=n,this.options.scrollContent?(this.scrollContent=this.options.scrollContent,this.scrollContentCount=this.scrollContent.length,this.loading=!1,this.currentElementIndex=0,this.containerOffsetTop=this.container.offset().top,this.lastCountersUpdated=0,this.init()):console.log("Scroll content not passed")};e.prototype={init:function(){var e=this,n=this.getElement(0);n.data("url",window.location.href),n.data("title",document.title),this.getCurrentElement().data("index",this.currentElementIndex),t(window).on("scroll",throttle(function(){e.onContainerScroll()},2e3)),this.container.on("click",e.options.toNextContentLinkSelector,function(t){t.preventDefault(),e.scrollToNextElement()})},onContainerScroll:function(){var e=this,n=t(window).scrollTop(),o=n+t(window).height(),i=n-this.containerOffsetTop,r=this.container.height();i+this.options.loadNextScrollHeightThreshold>r&&!1===this.loading&&this.loadNext();var l=this.getScrolledElementIndex(),s=this.getElement(l);s.data("url")!=window.location.href&&(window.history.replaceState(null,null,s.data("url")),document.title=s.data("title"),window.EventObserver&&window.EventObserver.broadcast("reload_banners")),this.getScrollContent(this.currentElementIndex)?(this.getElements().each(function(n){var i=t(this).find(e.options.toNextContentLinkSelector);if(n==l){var r=i.closest(".to_next_content_wrap_js");o>=r.offset().top?i.addClass("fixed"):i.removeClass("fixed"),o>=t(this).find(".content_end_js").offset().top&&i.removeClass("fixed")}else i.removeClass("fixed")}),window.disableSidebarCut||this.adjustElementHeight(this.getScrolledElement()),this.getScrolledElementIndex()>this.lastCountersUpdated&&(t(window).countersUpdate("update"),this.lastCountersUpdated+=1)):this.getCurrentElement().find(e.options.toNextContentLinkSelector).hide()},loadNext:function(){var e=this.getScrollContent(this.currentElementIndex);if(e){this.loading=!0;var n=this,o=e.url,i={json:1,index:n.currentElementIndex>0?"from_second":""};void 0!==window.disableSidebarCut&&0===window.disableSidebarCut&&(i.enable_sidebar_cut=1),window.bannerDebugMode&&1===window.bannerDebugMode&&(i.banner_debug=1),t.ajax({url:o,dataType:"json",data:i,type:"GET",success:function(t){"ok"==t.result?n.addElement(t.data):n.showError(t.message||n.options.loadErrorText)},error:function(t){404===t.status?(n.currentElementIndex+=1,n.getCurrentElement().data("index",n.currentElementIndex),n.loadNext()):(n.showError(n.options.loadErrorText),n.loading=!1)}})}},addElement:function(t){this.currentElementIndex+=1,this.container.append(t.html);var e=this.getCurrentElement();e.data("index",this.currentElementIndex),e.contentContainerInit({reloadBanners:!0}),this.loading=!1},getElement:function(t){return this.getElements().eq(t)},getElements:function(){return this.container.find(this.options.containerSelector)},getCurrentElement:function(){return this.getElement(this.currentElementIndex)},getScrolledElement:function(){return this.getElement(this.getScrolledElementIndex())},getScrolledElementIndex:function(){var e=t(window).scrollTop(),n=0,o=0;return this.getElements().each(function(i){if(n+=t(this).height(),e<=n)return o=i,!1}),o},getScrollContent:function(t){if(!(t>=this.scrollContentCount))return this.scrollContent[t]},showError:function(t){console.log(t)},adjustElementHeight:function(t){var e=t.find(".content").height(),n=t.find(".right_column");n.height()>e&&(n.css("height",e),t.data("size-adjusted",1));var o=this;console.log("test adjustElementHeight"),setTimeout(function(){o.deleteNotFittedElements(n,t)},5e3)},deleteNotFittedElements:function(e,n){console.log("test deleteNotFittedElements");var o,i=n.find(".content").height(),r=Math.max(e.height(),i),l=0;e.children().each(function(e,n){var i=t(n);"tizer"===i.attr("class")?i.find(".adv_content").children().each(function(e,n){var i=t(n);o=i.hasClass("bannerhide")?i.data("bannerhide-height"):i.outerHeight(),l+o>r?(i.addClass("bannerhide"),i.data("bannerhide-height",o)):(i.removeClass("bannerhide"),l+=o)}):(o=i.hasClass("bannerhide")?i.data("bannerhide-height"):i.outerHeight(),l+o>r?(i.addClass("bannerhide"),i.data("bannerhide-height",o)):(i.removeClass("bannerhide"),l+=o))})},scrollToNextElement:function(){var e=this.getScrolledElementIndex(),n=this.getElement(e+1);if(n.length){if(window.isMobileBrowser){var o=n.parent(this.options.itemAjaxSelector);if(o.length)return void t(window).scrollTo(o.offset().top-100)}t(window).scrollTo(n.offset().top-100)}}};var n={loadNextScrollHeightThreshold:3e3,containerSelector:".content_container_js",itemAjaxSelector:".item_ajax_container_js",toNextContentLinkSelector:".to_next_content_js",loadErrorText:"Ошибка загрузки следующего материала"};t.fn.pluginInit("contentInfinityScroll",e)}(jQuery);;!function(s,t){var o=function(t,o){this.options=s.extend({},n,o),this._defaults=n,this._name=i,this.container=s(t),this.init()};o.prototype={init:function(){s(this.container).addClass("right_column__sticky-box"),s(this.container).addClass("sticky-box_stuck_js");var o=!0,i=this.container,n=s(".right_column").not(".right_column_in_ajax_container");s(t).on("scroll",function(){var c,a,e,_,r;c=s(t).scrollTop(),a=2*s(t).height(),e=n.offset().top-72,_=i.offset().top,i[0].offsetTop,r=_-c,c<=a&&c<e&&r>72&&o&&(i.removeClass("sticky-box_stuck_js").css("top","0"),o=!1),c<=a&&r<=72&&!o&&(i.addClass("sticky-box_stuck_js").css("top","72px"),o=!0),c>a&&o&&(i.removeClass("sticky-box_stuck_js").css("top",c-e),o=!1),c>a&&c>e&&r>72&&!o&&(i.addClass("sticky-box_stuck_js").css("top","72px"),o=!0),c<=a&&c>e&&r>72&&!o&&(i.addClass("sticky-box_stuck_js").css("top","72px"),o=!0),c<=a&&c<=e&&r<=72&&o&&(i.removeClass("sticky-box_stuck_js").css("top","0"),o=!1)})}};var i="contentStickyColumn",n={initial:!1,reloadBanners:!1};s.fn.pluginInit(i,o)}(jQuery,window);;var CMessage=function(s){this.options=s};CMessage.prototype={show:function(s){s&&$.ajax({url:"/ajax/index/jmessage",async:!0,dataType:"json",type:"POST",data:{id:s},success:function(s){"ok"==s.result&&$.aifPopupMessages(s.message)}})}};var jmessages=new CMessage;;!function(t){var i=function(i,e){if(this.container=t(i),this.options=t.extend({},n,e),this._defaults=n,this.url=this.options.url,!this.url)throw new Error("Url for subject list must be specified");this.list=this.container.find(".content_list_js"),this.loadMoreLink=this.container.find(".more_btn_js"),this.form=this.container.find("form"),this.list.length&&this.init()};i.prototype={init:function(){var i=this,n=this.container.find(".datepicker_js"),e=this.container.find(".only_title_js");n.datepicker({dateFormat:"yy-mm-dd"}),e.on("click",function(){i.toggleOnlyTitle(t(this).prop("checked"))}),this.loadMoreLink.length&&this.loadMoreLink.loadMore({ajax:{url:this.url},listSelector:".content_list_js",callbackSuccess:function(){e.prop("checked")&&i.toggleOnlyTitle(!0)}})},toggleOnlyTitle:function(t){var i=this.list.find(this.options.notTitleSelector);t?i.hide():i.show()}};var n={notTitleSelector:".rubric_link, .img_box, .text_box span"};t.fn.pluginInit("searchList",i)}(jQuery);;var Rating=function(t,e){this.options=$.extend({voteUrl:"/ratings/index/vote",resultUrl:"/ratings/index/result"},e||{}),this.cookiePrefix=t,this.cookieName="ratings_"+t,this.ajaxSended=!1,this.init()};Rating.prototype={init:function(){},vote:function(t,e,i,o,n){this.processRequest(this.options.voteUrl,{id:t,type:e,rating:i,prefix:this.cookiePrefix},o,n)},loadResult:function(t,e,i,o){this.processRequest(this.options.resultUrl,{id:t,type:e},i,o)},processRequest:function(t,e,i,o){var n=this;n.ajaxSended||$.ajax({url:t,data:e,type:"POST",dataType:"json",beforeSend:function(t,e){n.ajaxSended=!0},success:function(t){"ok"==t.result?"function"==typeof i&&i(t.data):"function"==typeof o&&o(t.message)},error:function(t){"function"==typeof o&&o(t)},complete:function(){n.ajaxSended=!1}})},checkIsVoted:function(t,e){var i=t+"_"+e,o=$.cookie(this.cookieName),n=jQuery.parseJSON(o);return n&&1==n[i]}};;!function(e){var t=function(t,i){this.block=t,this.options=e.extend({},i||{}),this.selectedValues="",null!=i&&i.selectedValues&&(this.selectedValues=i.selectedValues),this.init()};t.prototype={init:function(){e(this.block).select2({placeholder:"Введите название ингредиента",minimumInputLength:2,multiple:!0,ajax:{url:"/food/search/get_ingredients",dataType:"json",quietMillis:100,data:function(e){return{term:e}},results:function(e){return{results:e.data}}},formatResult:function(e){return e.title},formatSelection:function(e){return"<input type='hidden' name='ingredients[]' value='"+e.id+"' />"+e.title}}),""!=this.selectedValues&&e(this.block).select2("data",this.selectedValues)}},e.fn.kitchenIngredientsField=function(e){var i=this.data("kitchenIngredientsField"),n=i?i.obj:new t(this,e);if(i||this.data("kitchenIngredientsField",{obj:n}),"object"!=typeof e&&n[e]){var s=Array.prototype.slice.call(arguments,1);return n[e].apply(n,s)}return this}}(jQuery);;!function(t){var n={saveUrl:"/banners_hits_stat.php"},a=function(a,s){this.container=t(a),this.options=t.extend({},n,s),this._defaults=n,this._name="bannersHitsStat",this.bannersConts=this.container.find(".adv_content"),this.statSavedCount=0,this.init()};a.prototype={init:function(){var n=this;this.saveHitsStat(),t(window).on("orientationchange resize",function(){n.saveHitsStat()})},saveHitsStat:function(){var n=this.getHitsStat();n.length&&t.ajax({url:this.options.saveUrl,dataType:"json",type:"POST",data:{stat:n}})},getHitsStat:function(){var n=this,a=[];return n.statSavedCount==this.bannersConts.length?a:(this.bannersConts.each(function(){var s=t(this),i=s.find(".banner_params"),e=s.data("stat-collected");if(s.is(":visible")&&i.length&&void 0===e){var o=i.data("params");void 0!==o&&(a.push(o),n.statSavedCount++,s.data("stat-collected",1))}}),a)}},t.fn.bannersHitsStat=function(n){return this.each(function(){t.data(this,"plugin_bannersHitsStat")||t.data(this,"plugin_bannersHitsStat",new a(this,n))})}}(jQuery,window);;!function(){function n(){null==window.banner_header?setTimeout(n,1e3):function(n){if("adfox_brend"==n){$("#container").addClass("bg_and_top_adv");var e=$('<a class="trigger_link" href="#" target="_blank"></a>');$(".top_line").after(e),$("body > a[style]").each(function(){e.attr("href",$(this).attr("href")),e.css("height","180px")}),$("<style>body > a[style] { position:fixed !important; }.trigger_link{ height: 180px; }#container.bg_and_top_adv, .container.bg_and_top_adv{ margin-top: 180px !important; }</style>").appendTo(document.head)}}(window.banner_header)}function e(){null==window.banner_article?setTimeout(e,1e3):"adfox"==window.banner_article&&$("article div[class*=adv_content]").addClass("article-ad")}e(),n(),window.EventObserver&&window.EventObserver.subscribe("reload_banners",function(){e(),n()})}();;!function(t){var i=function(i,o){if(this.container=t(i),this.list=this.container.find(".list_js"),this.options=t.extend({},s,o),this._defaults=s,this.url=this.options.url,!this.url)throw new Error("Url options is required");this.loading=!1,this.page=2,this.allLoaded=!1,this.init()};i.prototype={init:function(){var t=this;this.list.on("scroll",function(){t.onListScroll()})},onListScroll:function(){this.loading||this.allLoaded||(this.list.get(0).scrollHeight-this.list.height()-this.list.scrollTop()>this.options.loadNextScrollHeightThreshold||this.loadNextPage())},loadNextPage:function(){var i=this,s=this.list.children(":first").data("itemPublishedUtc");this.loading=!0,t.ajax({url:i.url,dataType:"json",data:{page:i.page,published_to:s},type:"POST",success:function(t){"ok"==t.result?i.processNextPageResp(t.data):i.showError(t.message||i.options.loadErrorText)},error:function(){i.showError(i.options.loadErrorText),i.loading=!1}})},processNextPageResp:function(i){this.page+=1;var s=this,o=t("<ul>").append(i);t(o).find("li").each(function(){var i=t(this).data("itemId");0==s.list.children("li[data-item-id="+i+"]").length&&s.list.append(this)}),this.loading=!1},showError:function(t){console.log(t)}};var s={loadNextScrollHeightThreshold:200,loadErrorText:"Ошибка загрузки данных"};t.fn.pluginInit("aifNewsList",i)}(jQuery);;!function(e,o,t){var n=function(o,t){this.container=e(o),this.options=e.extend({},i,t),this._defaults=i,this.init()};n.prototype={init:function(){this.container;this.isCompleted()||this.requestRegion()},showPopup:function(t,n){var i=this,r=this.container;o.aifGaWrapper.trackEvent(i.options.onShowPopupTrigger.category,i.options.onShowPopupTrigger.action,i.options.onShowPopupTrigger.optLabel),r.html(t),linkYes=r.find(".btn_yes"),linkNo=r.find(".btn_no"),e(linkYes).on("click",function(t){t.preventDefault();var i=e(this).data("event_category"),r=e(this).data("event_action"),a=e(this).data("event_opt_label");o.aifGaWrapper.trackEvent(i,r,a),o.location.href=n}),e(linkNo).on("click",function(t){t.preventDefault();var n=e(this).data("event_category"),r=e(this).data("event_action"),a=e(this).data("event_opt_label");o.aifGaWrapper.trackEvent(n,r,a),e(".region_informer_overlay_js").remove(),e(i.container).removeClass("show")}),e(document.body).append('<div class="region_informer_overlay_js overlay show"></div>'),e(i.container).addClass("show")},requestRegion:function(){var o=this;e.ajax(o.options.requestRegion.url,{method:o.options.requestRegion.method,success:function(e){"ok"==e.result&&e.current_region_id!=e.region_id&&Math.random()<=.15&&o.showPopup(e.view,e.region_url)},complete:function(){o.complete()}})},complete:function(){e.cookie("aif_region_informer_complete",1)},isCompleted:function(){return e.cookie("aif_region_informer_complete")}};var i={onShowPopupTrigger:{category:"Piter_popup",action:"view",optLabel:"Piter Show"},requestRegion:{method:"POST",url:"/geoip/index/region"}};e.fn.pluginInit("regionInformer",n)}(jQuery,window);;!function(i,t,r){var e=function(t){this.c=i(t),this.init(),this.bind()};e.prototype={init:function(){this.widget=i(this.c).data("widget"),this.nameField=this.c.find("#name"),this.emailField=this.c.find("#email"),this.submit=this.c.find(".subscription_item_submit"),this.confidecial=this.c.find(".confidecial"),this.form=this.c.find(".form"),this.errorBox=this.c.find(".error_box"),null!=currentUser&¤tUser.is_logged&&(this.setFormEmailValue(currentUser.email),this.setFormNameValue(currentUser.name)),this.userSubscribedAll()&&("sidebar"==this.widget?(i(".form_box",this.c).hide(),i(".form_box.already_subscribed_js",this.c).show()):"content"==this.widget&&i(this.c).hide())},bind:function(){var t=this;t.submit.on("click",function(r){r.preventDefault(),t.gaEvent(r.target),i.overloading("Обработка запроса ..."),i.post("/subscription/register",t.form.serialize()).done(function(i){"ok"==i.result?t.success():t.showErrors(i.msgs)}).always(function(){i.overloading.close()})}),t.confidecial.on("click",function(i){i.preventDefault(),showPrivacyPolicyPopup()})},success:function(){this.c.find(".form_box").html("<p>На ваш почтовый ящик отправлено письмо с ссылкой для подтверждения email</p></br>")},showErrors:function(i){return this.clearErrors(),i.subscription?this.addError('Необходимо поставить галочку "Хочу получать рассылки"'):(i.name&&this.addErrors("Имя: ",i.name,this.nameField),i.email&&this.addErrors("Email: ",i.email,this.emailField),i.subscription_id?this.addError("Необходимо выбрать рассылки"):void 0)},clearErrors:function(){this.errorBox.html(""),this.nameField.removeClass("red"),this.emailField.removeClass("red")},addError:function(i){this.errorBox.append(i+"<br/>")},addErrors:function(t,r,e){var s=this;e.addClass("red"),i.each(r,function(i,r){s.addError(t+r)})},setFormEmailValue:function(t){i(this.emailField).val(t)},setFormNameValue:function(t){i(this.nameField).val(t)},userSubscribedAll:function(){return 1==i.cookie("subscription_user_subscribed_all")},gaEvent:function(r){var e=i(r).data("gaEventCategory"),s=i(r).data("gaEventAction"),n=i(r).data("gaEventLabel");null!=e&&null!=s&&null!=n&&t.aifGaWrapper.trackEvent(e,s,n)}},i.fn.subscriptionItemWidget=function(){new e(this)}}(jQuery,window);;!function(t,e,i){var o=function(e,i){this.container=t(e),this.options=t.extend({},n,i),this.init()};o.prototype={init:function(){if(!this.hasSubscription()){this.hasState()||(this.hasMinState()||this.setMinState("view1"),this.setState(this.getMinState(),this.getDateWithAppend(600)));var t=this.getState();this.processState(t)}},getDateWithAppend:function(t){return new Date((new Date).getTime()+1e3*t)},debug:function(t){},hasSubscription:function(){return null!=t.cookie(this.options.cookie.subscriptionUser)},hasState:function(){return null!=t.cookie(this.options.cookie.subscriptionPopupState)},setState:function(e,i){i||(i=3650);var o=this.options.states[e],n=this.options.cookie.subscriptionPopupState,s=JSON.stringify({key:e,timeout:"function"==typeof o.timeout?o.timeout.apply(this):o.timeout}),p={expires:i,path:"/"};t.cookie(n,s,p)},getState:function(){var e=t.cookie(this.options.cookie.subscriptionPopupState);return JSON.parse(e)},setMinState:function(e){var i=this.options.cookie.subscriptionPopupMinState,o={expires:3650,path:"/"};t.cookie(i,e,o)},getMinState:function(){return t.cookie(this.options.cookie.subscriptionPopupMinState)},hasMinState:function(){return null!=t.cookie(this.options.cookie.subscriptionPopupMinState)},processState:function(t){if((new Date).getTime()>t.timeout){var e=this.options.states[t.key];e&&"function"==typeof e.trigger&&e.trigger.apply(this)}},popup:{container:null,form:null,fieldEmail:null,fieldName:null,buttonSubmit:null,buttonCancel:null,show:function(e){var i;switch(e){case"popup2":i=t("#subscription_popup2_tpl_js");break;case"popup3":i=t("#subscription_popup3_tpl_js");break;default:i=t("#subscription_popup1_tpl_js")}i.aifPopup("show"),this.onShow(i)},onShow:function(e){var i=this;this.container=e,this.form=t("form",e),this.contentBox=t(".popup_content_box",e),this.errorBox=t(".error_box",e),this.fieldName=t("#name",e),this.fieldEmail=t("#email",e),this.buttonSubmit=t(".submit_link",e),this.buttonCancel=t(".sub_closer",e),t(this.buttonCancel).on("click",function(e){e.preventDefault(),t(i.container).aifPopup("close")}),t(this.buttonSubmit).on("click",function(e){e.preventDefault(),t.overloading("Обработка запроса ...");var o=t(i.form).serialize();t.post("/subscription/register",o).done(function(e){"ok"==e.result?(i.showSuccess(),t(i.container).aifPopup("close")):i.showErrors(e.msgs)}).always(function(){t.overloading.close()})})},showSuccess:function(){alert("На ваш почтовый ящик отправлено письмо с ссылкой для подтверждения email")},showErrors:function(t){if(this.clearErrors(),t.subscription)return this.addError('Необходимо поставить галочку "Хочу получать рассылки"');t.name&&this.addErrors("Имя: ",t.name,this.fieldName),t.email&&this.addErrors("E-mail: ",t.email,this.fieldEmail)},addErrors:function(e,i,o){var n=this;o.addClass("red"),t.each(i,function(t,i){n.addError(e+i)})},addError:function(t){this.errorBox.append(t+"<br/>")},clearErrors:function(){this.errorBox.html(""),this.fieldName.removeClass("red"),this.fieldEmail.removeClass("red")}}};var n={cookie:{subscriptionUser:"subscription_user_token",subscriptionPopupState:"subscription_popup_state",subscriptionPopupMinState:"subscription_popup_min_state"},states:{view1:{timeout:0,trigger:function(){this.setState("view2",this.getDateWithAppend(600)),this.setMinState("view1")}},view2:{timeout:0,trigger:function(){this.setState("view3",this.getDateWithAppend(600)),this.setMinState("view1")}},view3:{timeout:0,trigger:function(){var t=this;setTimeout(function(){var e=t.options.popupName?t.options.popupName:"popup1";t.popup.show(e),t.setState("week_view1"),t.setMinState("week_view1")},15e3)}},week_view1:{timeout:function(){return(new Date).getTime()+6048e5},trigger:function(){this.setState("week_view2",this.getDateWithAppend(600)),this.setMinState("week_view1")}},week_view2:{timeout:0,trigger:function(){this.setState("week_view3",this.getDateWithAppend(600)),this.setMinState("week_view1")}},week_view3:{timeout:0,trigger:function(){var t=this;setTimeout(function(){var e=t.options.popupName?t.options.popupName:"popup1";t.popup.show(e),t.setState("week2_view1"),t.setMinState("week2_view1")},15e3)}},week2_view1:{timeout:function(){return(new Date).getTime()+12096e5},trigger:function(){this.setState("week2_view2",this.getDateWithAppend(600)),this.setMinState("week2_view1")}},week2_view2:{timeout:0,trigger:function(){this.setState("week2_view3",this.getDateWithAppend(600)),this.setMinState("week2_view1")}},week2_view3:{timeout:0,trigger:function(){var t=this;setTimeout(function(){var e=t.options.popupName?t.options.popupName:"popup2";t.popup.show(e),t.setState("month_view1"),t.setMinState("month_view1")},15e3)}},month_view1:{timeout:function(){return(new Date).getTime()+2592e6},trigger:function(){this.setState("month_view2",this.getDateWithAppend(600)),this.setMinState("month_view1")}},month_view2:{timeout:0,trigger:function(){this.setState("week_view3",this.getDateWithAppend(600)),this.setMinState("month_view1")}},month_view3:{timeout:0,trigger:function(){var t=this;setTimeout(function(){var e=t.options.popupName?t.options.popupName:"popup2";t.popup.show(e),t.setState("month_view1"),t.setMinState("month_view1")},15e3)}}}};t.fn.pluginInit("subscriptionPopup",o)}(jQuery,window);;!function(e,t,n){var i="interviewSendShow",s=(t.document,{showVotesCount:0,hideTotal:0,sendButton:".vote_js",recaptcha:""});function a(t,n){this.element=e(t),this.id=this.element.data("poll"),this.revoteAfterSeconds=this.element.data("poll-revote"),this.options=e.extend({sendData:{id:0,answers_list:[],recaptcha:null}},s,n);var a=this.element.data("widget");this.options.recaptcha="#poll"+this.id+"_"+a+"Recaptcha",this._defaults=s,this._name=i,this.init()}a.prototype={init:function(){var t=this;t.element.data("init")||(t.element.data("init","init"),e(t.options.recaptcha).hide(),t.element.find("input").click(function(n){t.element.find("input:checked").length>0?e(t.options.recaptcha).show():e(t.options.recaptcha).hide()}),t.element.find(t.options.sendButton).click(function(e){e.preventDefault(),t.processAnswers()}),t.testIsVoted()&&t.loadResults())},collectSendData:function(){var t=this;t.options.sendData.id=t.id,t.options.sendData.answers_list=[],t.element.find("input:checked").each(function(){var n=e(this).data("answer-id");t.options.sendData.answers_list.push(n)}),t.options.sendData.recaptcha=t.element.find(".g-recaptcha-response").val(),t.options.sendData.params=t.getParams()},testIsVoted:function(){var e=!1,t=this.getCookieData();if(t&&"object"==typeof t){var n=t[this.id];if(n)if(this.revoteAfterSeconds){var i=this.getCurrentTimestamp();n+this.revoteAfterSeconds-i>0&&(e=!0)}else e=!0}return e},markAnswerExist:function(){var t=this.getCookieData();t[this.id]=this.getCurrentTimestamp(),e.cookie("interview",JSON.stringify(t),{expires:30,path:"/"})},processAnswers:function(){var t=this,n=!0;t.element.find(".question_js").each(function(t){if(!e(this).find("input:checked").length)return alert("Необходимо выбрать один из вариантов ответа для вопроса "+(t+1)),n=!1,!1}),n&&(t.collectSendData(),e.ajax({type:"post",url:"/polls/index/rating",data:t.options.sendData,success:function(e){"error"!==e.result&&t.markAnswerExist(),t.processResponse(e)},error:function(){alert("Ошибка обработки данных. Пожалуйста, обновите страницу и проголосуйте заново")}}))},loadResults:function(){var t=this;e.ajax({type:"post",url:"/polls/index/results",data:{id:t.id,params:t.getParams()},success:function(e){t.processResponse(e)},error:function(){alert("Ошибка загрузки результатов опроса")}})},getParams:function(){return this.element.data("params")},processResponse:function(e){"error"!==e.result?this.renderResults(e.html):"voted"==e.code?(alert("Вы уже проголосовали в данном опросе"),this.renderResults(e.html)):"wrong_data"==e.code&&(e.message?alert(e.message):alert("Произошла ошибка. Пожалуйста, обратитесь на karaul1@aif.ru"))},renderResults:function(e){this.element.replaceWith(e)},getCurrentTimestamp:function(){return Math.floor(Date.now()/1e3)},getCookieData:function(){var t={},n=e.cookie("interview");try{var i=JSON.parse(n);i&&"object"==typeof i&&(t=i)}catch(e){console.log("Error parse interview cookie value",n)}return t}},e.fn.pluginInit(i,a)}(jQuery,window),$(document).ready(function(){$(".js_interview").interviewSendShow(),$(".poll_widget_js").each(function(){var e=$(this),t=e.find(".show_results_link_js"),n=e.find(".show_vote_link_js"),i=e.data("item-id"),s=$('.poll_widget_popup_js[data-item-id="'+i+'"] .js_interview');!s.length||s.interviewSendShow("testIsVoted")?(t.show(),n.hide()):(t.hide(),n.show())})});;!function(t,a,r){var s={page:1},o=function(a,r){if(this.container=t(a),this.options=t.extend({},i,r),this._defaults=i,!this.options.extraformId)throw new Error("Empty extraform ID");this.loadParams=t.extend({},this.options.loadParams,s),this.loadParams.id=this.options.extraformId,this.init()};o.prototype={init:function(){var a=this,r=this.container;this.listWrapper=this.container.find("."+this.options.listWrapperClass),this.listWrapper.length||this.updateList(),r.on("click",".paging_js",function(r){r.preventDefault(),a.updateLoadParam("page",t(r.target).data("page")),t(this).closest(".bottom_pagination_js").length&&a.container[0].scrollIntoView(!0),a.updateList()}),r.on("click",".list_order_js",function(r){r.preventDefault(),a.updateLoadParam("order_type",t(r.target).data("order-type")),a.updateLoadParam("order_dir",t(r.target).data("order-dir")),a.updateLoadParam("page",1),a.updateList()})},updateList:function(){var a=this;t.ajax({url:this.options.url,async:!0,dataType:"json",data:this.getLoadParams(),beforeSend:function(){a.progressStart()},success:function(t){t&&"ok"==t.result?a.container.html(t.data):a.showMessage(t.message||"Ошибка загрузки данных по участникам")},error:function(t){a.showMessage(t.message||"Ошибка загрузки данных по участникам")},complete:function(){a.progressStop()}})},getLoadParams:function(){return this.loadParams},updateLoadParam:function(t,a){this.loadParams[t]=a},resetLoadParams:function(){this.loadParams.page=this.options.loadParams,this.loadParams.order_type="",this.loadParams.order_dir=""},progressStart:function(){},progressStop:function(){},showMessage:function(t){alert(t)}};var i={url:"/dosug/extraform/participants",listWrapperClass:"participants_list_wrapper_js",loadParams:{}};t.fn.pluginInit("extraformParticipantsList",o)}(jQuery,window);;!function(r,t,s){var o=function(t,s){this.container=r(t),this.options=r.extend({},a,s),this._defaults=a,this.form=this.container.find("form"),this.init()};o.prototype={init:function(){var t=this;this.container;this.form.on("submit",function(r){r.preventDefault(),t.processData()}),this.form.find("#submit").on("click",function(r){r.preventDefault(),t.processData()}),this.form.find(".radio_group_js br").remove(),this.form.find(".radio_group_js label").each(function(){var t=r(this),s=t.text(),o=t.find("input:radio");o.addClass("radio"),t.html(""),t.append(o),t.append('<span class="radio_custom"></span><span class="label">'+s+"</span>")})},processData:function(){var t=this;r.ajax({url:this.form.attr("action"),type:"post",async:!0,dataType:"json",data:this.form.serialize(),beforeSend:function(){t.progressStart()},success:function(r){r&&"ok"==r.result?t.onSuccessVote(r):r.data&&r.data.errors?(t.clearFormErrors(),t.showFormErors(r.data.errors)):r.message&&alert(r.message)},error:function(r){t.showMessage("Ошибка отправки данных"),t.progressStop()},complete:function(){t.progressStop(),grecaptcha.reset(r("#recaptchaRecaptcharId").val())}})},progressStart:function(){r.overloading("Обработка запроса ...")},progressStop:function(){r.overloading.close()},showFormErors:function(r){var t;for(var s in r){var o=this.container.find("."+s+"_element_js");if(o.length)for(var a in t||(t=o),r[s])o.append('<div style="color:red;" class="'+this.options.errorMsgClass+'">'+r[s][a]+"</div>")}t&&-1!==t.attr("class").indexOf("_question_")&&t[0].scrollIntoView(!0)},clearFormErrors:function(){this.form.find("."+this.options.errorMsgClass).remove()},onSuccessVote:function(r){this.clearFormErrors(),this.form[0].reset(),alert("Спасибо за участие!"),this.container.find(".aiftabjs_js").aiftabs("openTabByIndex",1);var t=this.container.find(".extraform_participants_js");t.extraformParticipantsList("resetLoadParams"),t.extraformParticipantsList("updateList"),t.get(0).scrollIntoView(!0)}};var a={errorMsgClass:"error"};r.fn.pluginInit("extraformVote",o)}(jQuery,window);;!function(t,i,n){i.document;var a={},e=function(i,n){this.container=t(i),this.options=t.extend({},a,n),this._defaults=a,this._name="dontknowRating",this.itemData={id:this.container.data("id"),type:this.container.data("type")},this.itemData.id&&this.itemData.type&&(this.rating=new Rating("dontknow"),this.init())};e.prototype={init:function(){this.initBinds()},initBinds:function(){var i=this;this.container.find(".comment_like_counter").on("click",function(n){n.preventDefault(),i.vote(t(this).data("rating"))})},vote:function(t){var i=this;i.rating.checkIsVoted(i.itemData.id,i.itemData.type)?alert("Вы уже проголосовали за этот материал"):i.rating.vote(i.itemData.id,i.itemData.type,t,function(t){i.successCallback.apply(i,[t])},function(t){i.errorCallback.apply(i,[t])})},successCallback:function(t){this.container.find(".comment_like_number").html(t.total_rating)},errorCallback:function(t){"string"==typeof t?alert(t):alert("Ошибка")}},t.fn.dontknowRating=function(i){return this.each(function(){t.data(this,"plugin_dontknowRating")||t.data(this,"plugin_dontknowRating",new e(this,i))})}}(jQuery,window);;!function(s,t,e){var i=function(t,e){if(this.container=s(t),this.options=s.extend({},r,e),this._defaults=r,!this.options.correctAnswers||s.isEmptyObject(this.options.correctAnswers))throw new Error('Option "correctAnswers" is required');var i=this,n=this.container;this.el={description:n.find(".simpletest_desc_js"),questions:n.find(".simpletest_questions_js"),questionsList:n.find(".simpletest_question_js"),results:n.find(".simpletest_results_js"),resultsList:n.find(".simpletest_result_js"),resultsCommentList:n.find(".simpletest_result_comment_js"),startBtn:n.find(".start_simpletest_js"),restartBtn:n.find(".restart_simpletest_js"),shareLinks:n.find(".simpletest_share_bnt_js"),nextAnswerBtn:n.find(".simpletest_next_answer_btn_js"),progressBar:n.find(".simpletest_progress_js"),questionNumLabel:n.find(".simpletest_question_num_js")},this.answers=[],this.currentQuestion=0,this.questionsCount=this.el.questionsList.length,this.questionProgressWidth=100/this.questionsCount,this.resultsHashMap={},this.container.find(".simpletest_result_js").each(function(t){var e=s(this);i.resultsHashMap[e.data("hash")]=[e.data("min-correct"),e.data("max-correct")]}),this.init()};i.prototype={init:function(){var t=this;this.el.startBtn.on("click",function(s){s.preventDefault(),t.startTest()}),this.el.restartBtn.on("click",function(s){s.preventDefault(),t.restartTest()}),this.el.nextAnswerBtn.on("click",function(s){s.preventDefault(),t.showNextQuestion()}),this.el.questions.on("change","input:radio",function(e){t.answerSubmit(s(this).data("question"),s(this).val())})},startTest:function(){this.el.description.hide(),this.el.results.hide(),this.el.questions.show(),this.el.startBtn.hide()},restartTest:function(){var s=this.container;this.answers=[],this.currentQuestion=0,this.el.results.hide(),this.el.resultsList.hide(),this.el.resultsCommentList.hide(),s.find(".simpletest_answer_js").removeClass(this.options.correctAnswerClass).removeClass(this.options.incorrectAnswerClass).removeClass(this.options.showCorrectAnswerClass).find("input:radio").prop("disabled",!1).prop("checked",!1),s.find(".simpletest_correct_answer_text_js").html(""),this.el.progressBar.html(""),this.el.questions.show(),this.el.questionsList.hide(),this.el.questionNumLabel.html(this.currentQuestion+1),this.el.questionsList.eq(this.currentQuestion).show(),this.el.restartBtn.hide()},answerSubmit:function(e,i){var r=this,n=this.el.questionsList.filter('[data-question-id="'+e+'"]'),o=this.getCorrectAnswers(e),h=-1!==s.inArray(i,Object.keys(o));n.find("input:radio").prop("disabled",!0),n.find(".simpletest_answer_js").each(function(t){var e=s(this),n=e.data("id");if(r.options.hideCorrectAnswers)n==i&&e.addClass(r.options.correctAnswerClass);else for(var h in o)h==n?(e.addClass(r.options.correctAnswerClass),e.find(".simpletest_correct_answer_text_js").html(o[h].text),i!=n&&e.addClass(r.options.showCorrectAnswerClass)):e.addClass(r.options.incorrectAnswerClass)}),this.answers.push(h),this.addQuestionProgress(h),r.options.hideCorrectAnswers?t.setTimeout(function(){r.showNextQuestion()},300):r.el.nextAnswerBtn.show()},showNextQuestion:function(){this.el.questionsList.eq(this.currentQuestion).hide(),this.currentQuestion===this.questionsCount-1?this.showResult(this.getResultHashByCorrectAnswersCount(this.getCorrectAnswersCount())):(this.currentQuestion++,this.el.questionNumLabel.html(this.currentQuestion+1),this.el.questionsList.eq(this.currentQuestion).show()),this.el.nextAnswerBtn.hide()},getResultHashByCorrectAnswersCount:function(s){var t=null;for(var e in this.resultsHashMap){var i=this.resultsHashMap[e][0],r=this.resultsHashMap[e][1];if(s>=i&&s<=r){t=e;break}}return t},getCorrectAnswersCount:function(){for(var s=0,t=0;t<this.answers.length;t++)!0===this.answers[t]&&s++;return s},showResult:function(t){var e=this.getCorrectAnswersCount();this.el.description.hide(),this.el.questions.hide(),this.el.resultsList.hide(),this.el.resultsCommentList.hide();var i=this.el.resultsList.filter('[data-hash="'+t+'"]');i.show(),this.el.resultsCommentList.filter('[data-hash="'+t+'"]').show(),this.el.results.show(),i.find(".result_img_js").hide(),i.find(".result_img_"+e+"_js").show(),this.el.startBtn.hide(),this.el.restartBtn.show(),t+=e,this.el.shareLinks.each(function(){var e=s(this).data("url-template").replace("__hash__",t);s(this).attr("href",e)});var r=s(i).data("resultId");this.saveResultScore(r)},addQuestionProgress:function(t){this.options.hideCorrectAnswers&&(t=!0);var e=t?this.options.progressItemCorrectClass:this.options.progressItemIncorrectClass,i=s("<div></div>").addClass(this.options.progressItemClass).addClass(e);i.css("width",this.questionProgressWidth+"%"),this.el.progressBar.append(i)},getCorrectAnswers:function(s){return this.options.correctAnswers[s]},saveResultScore:function(t){s.post("/simpletest/index/score",{result_id:t})}};var r={correctAnswers:null,hideCorrectAnswers:!1,progressItemClass:"test_inj__progress-item",progressItemCorrectClass:"test_inj__progress-item_right",progressItemIncorrectClass:"test_inj__progress-item_wrong",correctAnswerClass:"correct",incorrectAnswerClass:"incorrect",showCorrectAnswerClass:"show-correct-answer"};s.fn.pluginInit("aifSimpletest",i)}(jQuery,window);;!function(s,r,o){var e=function(r,o){if(this.container=s(r),this.options=s.extend({},t,o),this._defaults=t,!this.options.scheme||s.isEmptyObject(this.options.scheme))throw new Error('Option "scheme" is required');this.el={field:this.container.find(this.options.selectorField).get(0),clues:this.container.find(this.options.selectorClue),submit:this.container.find(this.options.selectorSubmit).get(0)},this.init()};e.prototype={init:function(){this.createCrosswordModel(),this.handleCrosswordClueSelect(),this.handleCrosswordSubmit()},createCrosswordModel(){this.crossword=CrosswordsJS.compileCrossword(this.options.scheme),this.crosswordDom=new CrosswordsJS.CrosswordDOM(r,this.crossword,this.el.field)},handleCrosswordClueSelect(){var r=this;s(this.el.clues).click(function(o){o.preventDefault(),o.stopPropagation();var e=s(o.target).data("clueNumber"),t=r.findClueByNumber(e);null!=t&&r.crosswordDom.selectClue(t)})},handleCrosswordSubmit(){var r=this;s(this.el.submit).click(function(s){s.preventDefault(),s.stopPropagation(),r.crosswordSubmit()})},findClueByNumber(s){for(var r=0;r<this.crossword.acrossClues.length;r++)if(this.crossword.acrossClues[r].code===s)return this.crossword.acrossClues[r];for(var o=0;o<this.crossword.downClues.length;o++)if(this.crossword.downClues[o].code===s)return this.crossword.downClues[o];return null},prepareCrosswordData(){var s={};return this.crossword.acrossClues.forEach(function(r){s[r.code]=r.answer}),this.crossword.downClues.forEach(function(r){s[r.code]=r.answer}),{values:s}},crosswordSubmit(){var r=this;this.hideClueErrors(),s.ajax({url:this.options.validateUrl,data:this.prepareCrosswordData(),type:"POST",dataType:"json",success:function(s){r.checkSchemeValid(s.scheme)},error:function(s){console.log(s)}})},checkSchemeValid(s){var r=this,o=!0;s.acrossClues.forEach(function(s){s.valid||(r.showClueError(s),o=!1)}),s.downClues.forEach(function(s){s.valid||(r.showClueError(s),o=!1)}),o?alert("Кроссворд разгадан верно!!!"):alert("Кроссворд разгадан не верно")},hideClueErrors(){s(this.container).find(".crossword_clue_error_js").hide()},showClueError(r){for(var o=0;o<this.el.clues.length;o++){var e=this.el.clues[o];if(s(e).data("clueNumber")===r.number){s(e).find(".crossword_clue_error_js").show();break}}}};var t={scheme:null,validateUrl:"/crossword/index/validate",selectorClue:".crossword_clue_js",selectorField:"#crossword_field_js",selectorSubmit:"#crossword_submit_js"};s.fn.pluginInit("aifCrossword",e)}(jQuery,window);;$(document).ready(function(){$(window).countersUpdate(),$(".content_container_js").contentContainerInit({initial:!0}),$(".dontknow_rating").dontknowRating(),$(".dontknow_answer_rating").dontknowRating()});;!function(e,n,s){function o(n){this.element=e(n),this.init()}e.extend(o.prototype,{init:function(){return this.burger(),this.regions(),this.searchOpen(),this.onScroll(),!0},burger:function(){var n=this.element,s=n.find(".regions_box");n.find(".openCloser").on("click",function(o){o.preventDefault(),n.hasClass("showMenu")?(n.removeClass("showMenu"),setTimeout(function(){s.removeClass("show")},300),e("body").removeClass("menuOpened")):(n.addClass("showMenu"),setTimeout(function(){s.removeClass("show")},300),e("body").addClass("menuOpened"))})},regions:function(){var n=this.element,s=n.find(".regions_box");n.find(".regionOpenCloser").on("click",function(o){o.preventDefault(),s.hasClass("show")?(s.removeClass("show"),n.removeClass("showRegionMenu"),setTimeout(function(){n.removeClass("showMenu")},300),e("body").removeClass("menuOpened")):(s.addClass("show"),n.addClass("showRegionMenu"),setTimeout(function(){n.removeClass("showMenu")},300),e("body").addClass("menuOpened"))})},searchOpen:function(){this.element.find(".search_box").each(function(n,s){var o=e(s),t=o.find(".search_input");o.find(".searchOpener").on("click",function(e){e.preventDefault(),o.hasClass("showSearch")?t.find("input[type=text]").val().length>0?t.find("form").submit():o.removeClass("showSearch"):o.addClass("showSearch")})})},onScroll:function(){var n=this.element,o=n.find(".fixed_menu");e(s).on("scroll",function(){var t=n.offset().top;e(s).scrollTop()>=t+56?o.addClass("fixed"):o.removeClass("fixed")})}}),e.fn.headerJs=function(n){return this.each(function(){e.data(this,"plugin_headerJs")||e.data(this,"plugin_headerJs",new o(this,n))}),this}}(jQuery,window,document);;!function(t){var s=function(s,i){this.container=t(s),this.options=t.extend({},e,i),this._defaults=e,this.mainMenu=this.container.find(".main_menu_js"),this.staticSubmenu=this.container.find(".static_submenu_js"),this.mobileMode=window.matchMedia(this.options.mobileModeQuery).matches,this.selectMenuItemTimer=null,this.unselectMenuItemTimer=null,this.init()};s.prototype={init:function(){var s=this;this.setDefaultActiveItem(),this.initStaticSubmenu(),this.isMobileMode()?this.mainMenu.on("click","."+this.options.topLevelItemClass,function(e){var i=t(e.target).parent();if(!i.hasClass(s.options.topLevelItemClass)||i.hasClass(s.options.showClass)||!t(this).find("."+s.options.submenuClass).length)return!0;e.preventDefault(),s.onItemClick(t(this))}):(this.mainMenu.on("mouseenter","."+this.options.topLevelItemClass,function(){s.onItemMouseEnter(t(this))}),this.mainMenu.on("mouseleave","."+this.options.topLevelItemClass,function(){s.onItemMouseLeave(t(this))}))},onItemMouseEnter:function(t){var s=this;this.selectMenuItemTimer&&clearTimeout(this.selectMenuItemTimer),this.selectMenuItemTimer=setTimeout(function(){s.showSubmenu(t)},200)},onItemMouseLeave:function(t){var s=this;this.selectMenuItemTimer&&clearTimeout(this.selectMenuItemTimer),this.unselectMenuItemTimer&&clearTimeout(this.unselectMenuItemTimer),this.unselectMenuItemTimer=setTimeout(function(){t.removeClass(s.options.showClass),t.find("."+s.options.submenuClass).removeClass(s.options.showClass),s.staticSubmenu.removeClass(s.options.hideClass)},200)},onItemClick:function(t){this.mainMenu.find("."+this.options.activeItemClass).removeClass(this.options.activeItemClass),t.addClass(this.options.activeItemClass),this.showSubmenu(t)},showSubmenu:function(t){t&&(this.mainMenu.find("."+this.options.showClass).removeClass(this.options.showClass),t.find("."+this.options.submenuClass).addClass(this.options.showClass),t.addClass(this.options.showClass),this.staticSubmenu.addClass(this.options.hideClass))},setDefaultActiveItem:function(){var t=this.getActiveItem();t.length||window.isIndexPage||this.mainMenu.find("."+this.options.topLevelItemClass+":first").addClass(this.options.activeItemClass),this.showSubmenu(t)},initStaticSubmenu:function(){var t=this.getActiveItem();!this.isMobileMode()&&t.length&&this.staticSubmenu.html(t.find("."+this.options.submenuClass+" ul").html())},isMobileMode:function(){return this.mobileMode},getActiveItem:function(){return this.mainMenu.find("."+this.options.activeItemClass)}};var e={activeItemClass:"active",topLevelItemClass:"top_level_item_js",showClass:"show",hideClass:"hide",submenuClass:"submenu_js",mobileModeQuery:"(max-width: 1023px)"};t.fn.pluginInit("mainMenu",s)}(jQuery),$(document).ready(function(){$(".main_menu_wrapper_js").mainMenu()});;function initWidgetOwlCarousel(t){var e,i=$.Deferred();function a(t){var a=t.find(".owl-item .carousel_img_container img"),n=[];a.each(function(t,e){var i=$(e).width()/$(e).height()>=1;$(e).width()>0&&$(e).height()>0&&i&&n.push($(e).height())}),e=Math.max.apply(Math,n),t.find(".carousel_img_container").height(e),i.resolve()}function n(t){t.find(".owl-item .carousel_img_container img").each(function(t,i){$(i).height()>e&&$(i).height(e).width("auto")})}$(".owl-carousel").owlCarousel({stagePadding:110,margin:16,items:1,loop:!0,center:!0,nav:!0,smartSpeed:500,autoHeight:!0,slideTransition:"linear",onInitialized:function(t){$(t.target).after("<div class='article_owl_box__slide-text'></div>");var e=$(t.target).find(".owl-item.active .img_source").html();$(t.target).siblings(".article_owl_box__slide-text").append(e),$(window).outerWidth()>640&&(a($(t.target)),i.done(function(){n($(t.target))}))},onTranslate:function(t){$(t.target).siblings(".article_owl_box__slide-text").empty()},onTranslated:function(t){var e=$(t.target).find(".owl-item.active .img_source").html();$(t.target).siblings(".article_owl_box__slide-text").append(e)},onResized:function(t){var e=$(window).outerWidth(),o=$(t.target),r=$(".owl-carousel");e<=640?(o.find(".carousel_img_container").height("auto"),o.find(".owl-item .carousel_img_container img").each(function(t,e){$(e).height("auto").width("100%")})):(a($(t.target)),i.done(function(){n($(t.target))}));r.trigger("refresh.owl.carousel")},responsive:{0:{stagePadding:0,autoHeight:!0},640:{stagePadding:110}}})};!function(i,e,s){function t(e){this.element=i(e),this.init()}i.extend(t.prototype,{setup:{mobW:640,isMobile:!1},init:function(){return i(e).outerWidth()<=this.setup.mobW&&(this.setup.isMobile=!0),this.articleCarousel(),this.articleSlider(),this.articleSharings(),this.gallery(),this.wfSlider(),this.newspaperCarousel(),this.extraForm(),this.interscrollerFixes(),this.fancybox(),this.covidTabs(),!0},topToDown:function(){var s=this.element.find(".topToDownPoint"),t=this.element.find(".topToDown"),o=this.element.find(".right_column");t.height();0!=s.length&&0!=t.length&&0!=o.length&&i(e).on("scroll",function(){var n=s.offset().top,a=i(e).scrollTop(),l=t.height();windowHeight=i(e).height(),a>=n-windowHeight?(t.addClass("fixed"),t.css("top",n-a),o.css("padding-top",l+16)):t.hasClass("fixed")&&(t.removeClass("fixed"),o.css("padding-top",0)),a>=n-72&&t.css("top",72),a+l+82>=i(".endTopToDown_js").offset().top&&(t.removeClass("fixed"),o.css("padding-top",0))})},articleCarousel:function(){var s=this;function t(){var e=i(".slick-current").find(".carousel_img_box > img")[0].src;i(".slick-arrow.slick-prev").css({background:"url("+e+") no-repeat 0 0","background-size":"cover",transform:"none"}),i(".slick-arrow.slick-next").css({background:"url("+e+") no-repeat 100% 0","background-size":"cover",transform:"none"})}function o(){i(".slick-current").find(".carousel_img_box > img")[0].src;i(".slick-arrow").css({background:"none"})}function n(){var e=i(".article_carousel_box .carousel_img_box > img"),s=i(".article_carousel_box").width()-2*(i(".slick-arrow").width()+20),t=e.width()/e.height();e.width(s);var o=s/t;i(".slick-arrow").height(o)}function a(){var e=i(".article_carousel_box .carousel_img_box > img"),s=i(".article_carousel_box").width();e.width(s)}i(".articleCarousel").on("init",function(l){i(e).outerWidth()>s.setup.mobW?(t(),n()):(o(),a())}),i(".articleCarousel").slick({centerMode:!0,adaptiveHeight:!0,variableWidth:!0,slidesToShow:1,variableWidth:!0,responsive:[{breakpoint:640,settings:{centerMode:!1,variableWidth:!1}}]}),i(".articleCarousel").on("afterChange",function(o,n,a,l){i(e).outerWidth()>s.setup.mobW&&t()}),i(e).on("resize",function(){var l=i(e).outerWidth();l<=s.setup.mobW?(a(),0==s.setup.isMobile&&(s.setup.isMobile=!0,o())):l>s.setup.mobW&&(n(),1==s.setup.isMobile&&(s.setup.isMobile=!1,t()))})},articleSlider:function(){i(".owl-carousel").each(function(){initWidgetOwlCarousel(this)})},articleSharings:function(){var i=this.element.find(".article_sharings"),e=i.find(".allSharingsBox");i.find(".openCloser").on("click",function(i){i.preventDefault(),e.hasClass("show")?e.removeClass("show"):e.addClass("show")})},gallery:function(){var s=i(".overlay");i(".galleryMain_js").each(function(){if(!i(this).data("gallery-initialized")){i(this).data("gallery-initialized",!0);var t=i(this),o=i(this).closest(".gallery_box"),n=o.find(".galleryNav_js"),a=o.find(".gallery_full"),l=o.find(".galleryFull_js"),r=o.find(".fullScreenOpener_js"),c=o.find(".closer");t.on("init",function(e){var s=i(e.target).find(".slick-slide.slick-active").find(".src").html(),t=i('<div class="slick-slider__slide-description">').append(s);i(e.target).after(t)}),t.slick({slidesToShow:1,slidesToScroll:1,arrows:!0,adaptiveHeight:!0,asNavFor:o.find(".galleryNav_js, .galleryFull_js")}),t.on("beforeChange",function(e){i(e.target).find(".slick-slide.slick-active");o.find(".fullScreenOpener_js").hide(),o.find(".slick-slider__slide-description").fadeOut().empty()}),t.on("afterChange",function(e){var s=i(e.target).find(".slick-slide.slick-active").find(".src").html();o.find(".fullScreenOpener_js").fadeIn(),o.find(".slick-slider__slide-description").fadeIn().append(s)}),n.length>0&&n.slick({slidesToShow:6,slidesToScroll:1,asNavFor:o.find(".galleryMain_js, .galleryFull_js"),focusOnSelect:!0,variableWidth:!0,arrows:!1,responsive:[{breakpoint:640,settings:{slidesToShow:4}},{breakpoint:460,settings:{slidesToShow:3}}]}),l.slick({slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,arrows:!0,asNavFor:o.find(".galleryMain_js, .galleryNav_js")}),l.on("afterChange",function(s,t,o,n){i(e).countersUpdate("update")}),r.on("click",function(){s.addClass("show"),a.addClass("show")}),s.on("click",function(){s.removeClass("show"),a.removeClass("show")}),c.on("click",function(){s.removeClass("show"),a.removeClass("show")})}})},wfSlider:function(){i(".fwSlider_js").slick({slidesToShow:1,responsive:[{breakpoint:1e3,settings:{dots:!0,arrows:!1}}]})},newspaperCarousel:function(){i(".nespaperCarousel_js").slick({centerMode:!0,slidesToShow:1,variableWidth:!0}),i(e).outerWidth()>960&&(i(".nespaperCarousel_js").on("beforeChange",function(e,s,t){i(e.currentTarget).find(".slick-list").css("z-index",20)}),i(".nespaperCarousel_js").on("afterChange",function(e,s,t){i(e.currentTarget).find(".slick-list").css("z-index","auto")}),i(".nespaperCarousel_js").on("swipe",function(e,s,t){console.log("swlip"),i(s.currentTarget).find(".slick-list").css("z-index",20)}))},extraForm:function(){var e=this.element.find(".switcher_js"),s=e.find(".switchList_js");s.find("a").on("click",function(t){t.preventDefault(),s.find("li").removeClass("active"),i(this).parents("li").addClass("active");var o=i(this).attr("href");e.find(".switch_block").removeClass("show"),e.find(o).addClass("show")})},interscrollerFixes:function(){i(e).on("scroll",throttle(function(){var e=i(".adv_content .interscroller");if(e.length>0){var t=i(s).scrollTop(),o=e.offset().top,n=e.height(),a=i(".fixed_menu").outerHeight();t>o-a-a&&t<o+n+a?i(".fixed_menu").css("opacity",0):i(".fixed_menu").css("opacity",1)}},1e3))},fancybox:function(){i(".numb_foto, .zoom_js, .zoom").fancybox({padding:0,helpers:{overlay:{locked:!1}}}),i(".zoom_js_article").fancybox({padding:0,fitToView:!1,maxWidth:"1000px",helpers:{overlay:{locked:!1}}})},covidTabs:function(){i("body").on("click",".covidjet__tab-link",function(e){e.preventDefault();var s=i(this).data("tab");i(".covidjet__tab-link").removeClass("active"),i(".covidjet__tab-link[data-tab="+s+"]").addClass("active"),i(".covidjet").find(".covidjet__tab").hide(),i(".covidjet").find(".covidjet__tab[id="+s+"]").show()})}}),i.fn.AifScripts=function(e){return this.each(function(){i.data(this,"plugin_AifScripts")||i.data(this,"plugin_AifScripts",new t(this,e))}),this}}(jQuery,window,document);;$(document).ready(function(){$(".top_print_button").click(function(t){t.preventDefault(),window.print()}),$(".popupOpener_js").on("click",function(t){t.preventDefault();var n=$(this).attr("href"),p=$(n);p.length&&(p.data("plugin_aifPopup")?p.aifPopup("show"):p.aifPopup())})});;!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).SimpleBar=e()}(this,function(){"use strict";var t=function(t){return"object"==typeof t?null!==t:"function"==typeof t},e=function(e){if(!t(e))throw TypeError(e+" is not an object!");return e},i=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},r=function(t){return Object(i(t))},n=Math.ceil,o=Math.floor,s=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)},a=Math.min,l=function(t){return t>0?a(s(t),9007199254740991):0},c=function(t){return function(e,r){var n,o,a=String(i(e)),l=s(r),c=a.length;return l<0||l>=c?t?"":void 0:(n=a.charCodeAt(l))<55296||n>56319||l+1===c||(o=a.charCodeAt(l+1))<56320||o>57343?t?a.charAt(l):n:t?a.slice(l,l+2):o-56320+(n-55296<<10)+65536}},u=c(!0),h=function(t,e,i){return e+(i?u(t,e).length:1)},f={}.toString,d=function(t){return f.call(t).slice(8,-1)},p="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(t,e){return t(e={exports:{}},e.exports),e.exports}var y,b,g=v(function(t){var e=t.exports={version:"2.6.2"};"number"==typeof __e&&(__e=e)}),m=(g.version,v(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)})),x=v(function(t){var e=m["__core-js_shared__"]||(m["__core-js_shared__"]={});(t.exports=function(t,i){return e[t]||(e[t]=void 0!==i?i:{})})("versions",[]).push({version:g.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),E=0,w=Math.random(),_=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++E+w).toString(36))},O=v(function(t){var e=x("wks"),i=m.Symbol,r="function"==typeof i;(t.exports=function(t){return e[t]||(e[t]=r&&i[t]||(r?i:_)("Symbol."+t))}).store=e}),S=O("toStringTag"),k="Arguments"==d(function(){return arguments}()),A=function(t){var e,i,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),S))?i:k?d(e):"Object"==(r=d(e))&&"function"==typeof e.callee?"Arguments":r},M=RegExp.prototype.exec,L=function(t,e){var i=t.exec;if("function"==typeof i){var r=i.call(t,e);if("object"!=typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==A(t))throw new TypeError("RegExp#exec called on incompatible receiver");return M.call(t,e)},T=RegExp.prototype.exec,j=String.prototype.replace,R=T,N=(y=/a/,b=/b*/g,T.call(y,"a"),T.call(b,"a"),0!==y.lastIndex||0!==b.lastIndex),W=void 0!==/()??/.exec("")[1];(N||W)&&(R=function(t){var i,r,n,o,s=this;return W&&(r=new RegExp("^"+s.source+"$(?!\\s)",function(){var t=e(this),i="";return t.global&&(i+="g"),t.ignoreCase&&(i+="i"),t.multiline&&(i+="m"),t.unicode&&(i+="u"),t.sticky&&(i+="y"),i}.call(s))),N&&(i=s.lastIndex),n=T.call(s,t),N&&n&&(s.lastIndex=s.global?n.index+n[0].length:i),W&&n&&n.length>1&&j.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)}),n});var C=R,z=function(t){try{return!!t()}catch(t){return!0}},D=!z(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),V=m.document,B=t(V)&&t(V.createElement),P=function(t){return B?V.createElement(t):{}},F=!D&&!z(function(){return 7!=Object.defineProperty(P("div"),"a",{get:function(){return 7}}).a}),I=Object.defineProperty,H={f:D?Object.defineProperty:function(i,r,n){if(e(i),r=function(e,i){if(!t(e))return e;var r,n;if(i&&"function"==typeof(r=e.toString)&&!t(n=r.call(e)))return n;if("function"==typeof(r=e.valueOf)&&!t(n=r.call(e)))return n;if(!i&&"function"==typeof(r=e.toString)&&!t(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")}(r,!0),e(n),F)try{return I(i,r,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(i[r]=n.value),i}},q=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},$=D?function(t,e,i){return H.f(t,e,q(1,i))}:function(t,e,i){return t[e]=i,t},X={}.hasOwnProperty,Y=function(t,e){return X.call(t,e)},G=v(function(t){var e=_("src"),i=Function.toString,r=(""+i).split("toString");g.inspectSource=function(t){return i.call(t)},(t.exports=function(t,i,n,o){var s="function"==typeof n;s&&(Y(n,"name")||$(n,"name",i)),t[i]!==n&&(s&&(Y(n,e)||$(n,e,t[i]?""+t[i]:r.join(String(i)))),t===m?t[i]=n:o?t[i]?t[i]=n:$(t,i,n):(delete t[i],$(t,i,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[e]||i.call(this)})}),U=function(t,e,i){if(function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!")}(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,r){return t.call(e,i,r)};case 3:return function(i,r,n){return t.call(e,i,r,n)}}return function(){return t.apply(e,arguments)}},J=function(t,e,i){var r,n,o,s,a=t&J.F,l=t&J.G,c=t&J.S,u=t&J.P,h=t&J.B,f=l?m:c?m[e]||(m[e]={}):(m[e]||{}).prototype,d=l?g:g[e]||(g[e]={}),p=d.prototype||(d.prototype={});for(r in l&&(i=e),i)o=((n=!a&&f&&void 0!==f[r])?f:i)[r],s=h&&n?U(o,m):u&&"function"==typeof o?U(Function.call,o):o,f&&G(f,r,o,t&J.U),d[r]!=o&&$(d,r,s),u&&p[r]!=o&&(p[r]=o)};m.core=g,J.F=1,J.G=2,J.S=4,J.P=8,J.B=16,J.W=32,J.U=64,J.R=128;var K=J;K({target:"RegExp",proto:!0,forced:C!==/./.exec},{exec:C});var Q=O("species"),Z=!z(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),tt=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}(),et=function(t,e,r){var n=O(t),o=!z(function(){var e={};return e[n]=function(){return 7},7!=""[t](e)}),s=o?!z(function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[Q]=function(){return i}),i[n](""),!e}):void 0;if(!o||!s||"replace"===t&&!Z||"split"===t&&!tt){var a=/./[n],l=r(i,n,""[t],function(t,e,i,r,n){return e.exec===C?o&&!n?{done:!0,value:a.call(e,i,r)}:{done:!0,value:t.call(i,e,r)}:{done:!1}}),c=l[0],u=l[1];G(String.prototype,t,c),$(RegExp.prototype,n,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)})}},it=Math.max,rt=Math.min,nt=Math.floor,ot=/\$([$&`']|\d\d?|<[^>]*>)/g,st=/\$([$&`']|\d\d?)/g;et("replace",2,function(t,i,n,o){return[function(e,r){var o=t(this),s=null==e?void 0:e[i];return void 0!==s?s.call(e,o,r):n.call(String(o),e,r)},function(t,i){var r=o(n,t,this,i);if(r.done)return r.value;var c=e(t),u=String(this),f="function"==typeof i;f||(i=String(i));var d=c.global;if(d){var p=c.unicode;c.lastIndex=0}for(var v=[];;){var y=L(c,u);if(null===y)break;if(v.push(y),!d)break;""===String(y[0])&&(c.lastIndex=h(u,l(c.lastIndex),p))}for(var b,g="",m=0,x=0;x<v.length;x++){y=v[x];for(var E=String(y[0]),w=it(rt(s(y.index),u.length),0),_=[],O=1;O<y.length;O++)_.push(void 0===(b=y[O])?b:String(b));var S=y.groups;if(f){var k=[E].concat(_,w,u);void 0!==S&&k.push(S);var A=String(i.apply(void 0,k))}else A=a(E,u,w,_,S,i);w>=m&&(g+=u.slice(m,w)+A,m=w+E.length)}return g+u.slice(m)}];function a(t,e,i,o,s,a){var l=i+t.length,c=o.length,u=st;return void 0!==s&&(s=r(s),u=ot),n.call(a,u,function(r,n){var a;switch(n.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(l);case"<":a=s[n.slice(1,-1)];break;default:var u=+n;if(0===u)return r;if(u>c){var h=nt(u/10);return 0===h?r:h<=c?void 0===o[h-1]?n.charAt(1):o[h-1]+n.charAt(1):r}a=o[u-1]}return void 0===a?"":a})}});var at=H.f,lt=Function.prototype,ct=/^\s*function ([^ (]*)/;"name"in lt||D&&at(lt,"name",{configurable:!0,get:function(){try{return(""+this).match(ct)[1]}catch(t){return""}}}),et("match",1,function(t,i,r,n){return[function(e){var r=t(this),n=null==e?void 0:e[i];return void 0!==n?n.call(e,r):new RegExp(e)[i](String(r))},function(t){var i=n(r,t,this);if(i.done)return i.value;var o=e(t),s=String(this);if(!o.global)return L(o,s);var a=o.unicode;o.lastIndex=0;for(var c,u=[],f=0;null!==(c=L(o,s));){var d=String(c[0]);u[f]=d,""===d&&(o.lastIndex=h(s,l(o.lastIndex),a)),f++}return 0===f?null:u}]});var ut=O("unscopables"),ht=Array.prototype;null==ht[ut]&&$(ht,ut,{});var ft,dt=function(t){ht[ut][t]=!0},pt=function(t,e){return{value:e,done:!!t}},vt={},yt=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==d(t)?t.split(""):Object(t)},bt=function(t){return yt(i(t))},gt=Math.max,mt=Math.min,xt=x("keys"),Et=function(t){return xt[t]||(xt[t]=_(t))},wt=(ft=!1,function(t,e,i){var r,n=bt(t),o=l(n.length),a=function(t,e){return(t=s(t))<0?gt(t+e,0):mt(t,e)}(i,o);if(ft&&e!=e){for(;o>a;)if((r=n[a++])!=r)return!0}else for(;o>a;a++)if((ft||a in n)&&n[a]===e)return ft||a||0;return!ft&&-1}),_t=Et("IE_PROTO"),Ot="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),St=Object.keys||function(t){return function(t,e){var i,r=bt(t),n=0,o=[];for(i in r)i!=_t&&Y(r,i)&&o.push(i);for(;e.length>n;)Y(r,i=e[n++])&&(~wt(o,i)||o.push(i));return o}(t,Ot)},kt=D?Object.defineProperties:function(t,i){e(t);for(var r,n=St(i),o=n.length,s=0;o>s;)H.f(t,r=n[s++],i[r]);return t},At=m.document,Mt=At&&At.documentElement,Lt=Et("IE_PROTO"),Tt=function(){},jt=function(){var t,e=P("iframe"),i=Ot.length;for(e.style.display="none",Mt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),jt=t.F;i--;)delete jt.prototype[Ot[i]];return jt()},Rt=Object.create||function(t,i){var r;return null!==t?(Tt.prototype=e(t),r=new Tt,Tt.prototype=null,r[Lt]=t):r=jt(),void 0===i?r:kt(r,i)},Nt=H.f,Wt=O("toStringTag"),Ct=function(t,e,i){t&&!Y(t=i?t:t.prototype,Wt)&&Nt(t,Wt,{configurable:!0,value:e})},zt={};$(zt,O("iterator"),function(){return this});var Dt=function(t,e,i){t.prototype=Rt(zt,{next:q(1,i)}),Ct(t,e+" Iterator")},Vt=Et("IE_PROTO"),Bt=Object.prototype,Pt=Object.getPrototypeOf||function(t){return t=r(t),Y(t,Vt)?t[Vt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Bt:null},Ft=O("iterator"),It=!([].keys&&"next"in[].keys()),Ht=function(){return this},qt=function(t,e,i,r,n,o,s){Dt(i,e,r);var a,l,c,u=function(t){if(!It&&t in p)return p[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},h=e+" Iterator",f="values"==n,d=!1,p=t.prototype,v=p[Ft]||p["@@iterator"]||n&&p[n],y=v||u(n),b=n?f?u("entries"):y:void 0,g="Array"==e&&p.entries||v;if(g&&(c=Pt(g.call(new t)))!==Object.prototype&&c.next&&(Ct(c,h,!0),"function"!=typeof c[Ft]&&$(c,Ft,Ht)),f&&v&&"values"!==v.name&&(d=!0,y=function(){return v.call(this)}),(It||d||!p[Ft])&&$(p,Ft,y),vt[e]=y,vt[h]=Ht,n)if(a={values:f?y:u("values"),keys:o?y:u("keys"),entries:b},s)for(l in a)l in p||G(p,l,a[l]);else K(K.P+K.F*(It||d),e,a);return a},$t=qt(Array,"Array",function(t,e){this._t=bt(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,pt(1)):pt(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])},"values");vt.Arguments=vt.Array,dt("keys"),dt("values"),dt("entries");for(var Xt=O("iterator"),Yt=O("toStringTag"),Gt=vt.Array,Ut={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},Jt=St(Ut),Kt=0;Kt<Jt.length;Kt++){var Qt,Zt=Jt[Kt],te=Ut[Zt],ee=m[Zt],ie=ee&&ee.prototype;if(ie&&(ie[Xt]||$(ie,Xt,Gt),ie[Yt]||$(ie,Yt,Zt),vt[Zt]=Gt,te))for(Qt in $t)ie[Qt]||G(ie,Qt,$t[Qt],!0)}var re=c(!0);qt(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=re(e,i),this._i+=t.length,{value:t,done:!1})});var ne=function(t,i,r,n){try{return n?i(e(r)[0],r[1]):i(r)}catch(i){var o=t.return;throw void 0!==o&&e(o.call(t)),i}},oe=O("iterator"),se=Array.prototype,ae=function(t,e,i){e in t?H.f(t,e,q(0,i)):t[e]=i},le=O("iterator"),ce=g.getIteratorMethod=function(t){if(null!=t)return t[le]||t["@@iterator"]||vt[A(t)]},ue=O("iterator"),he=!1;try{[7][ue]().return=function(){he=!0}}catch(t){}function fe(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function de(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function pe(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},r=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable}))),r.forEach(function(e){de(t,e,i[e])})}return t}K(K.S+K.F*!function(t,e){if(!e&&!he)return!1;var i=!1;try{var r=[7],n=r[ue]();n.next=function(){return{done:i=!0}},r[ue]=function(){return n},t(r)}catch(t){}return i}(function(t){}),"Array",{from:function(t){var e,i,n,o,s,a=r(t),c="function"==typeof this?this:Array,u=arguments.length,h=u>1?arguments[1]:void 0,f=void 0!==h,d=0,p=ce(a);if(f&&(h=U(h,u>2?arguments[2]:void 0,2)),null!=p&&(c!=Array||(void 0===(s=p)||vt.Array!==s&&se[oe]!==s)))for(o=p.call(a),i=new c;!(n=o.next()).done;d++)ae(i,d,f?ne(o,h,[n.value,d],!0):n.value);else for(i=new c(e=l(a.length));e>d;d++)ae(i,d,f?h(a[d],d):a[d]);return i.length=d,i}});var ve=v(function(t,e){t.exports=function(){if("undefined"==typeof document)return 0;var t,e=document.body,i=document.createElement("div"),r=i.style;return r.position="absolute",r.top=r.left="-9999px",r.width=r.height="100px",r.overflow="scroll",e.appendChild(i),t=i.offsetWidth-i.clientWidth,e.removeChild(i),t}}),ye="Expected a function",be=NaN,ge="[object Symbol]",me=/^\s+|\s+$/g,xe=/^[-+]0x[0-9a-f]+$/i,Ee=/^0b[01]+$/i,we=/^0o[0-7]+$/i,_e=parseInt,Oe="object"==typeof p&&p&&p.Object===Object&&p,Se="object"==typeof self&&self&&self.Object===Object&&self,ke=Oe||Se||Function("return this")(),Ae=Object.prototype.toString,Me=Math.max,Le=Math.min,Te=function(){return ke.Date.now()};function je(t,e,i){var r,n,o,s,a,l,c=0,u=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError(ye);function d(e){var i=r,o=n;return r=n=void 0,c=e,s=t.apply(o,i)}function p(t){var i=t-l;return void 0===l||i>=e||i<0||h&&t-c>=o}function v(){var t=Te();if(p(t))return y(t);a=setTimeout(v,function(t){var i=e-(t-l);return h?Le(i,o-(t-c)):i}(t))}function y(t){return a=void 0,f&&r?d(t):(r=n=void 0,s)}function b(){var t=Te(),i=p(t);if(r=arguments,n=this,l=t,i){if(void 0===a)return function(t){return c=t,a=setTimeout(v,e),u?d(t):s}(l);if(h)return a=setTimeout(v,e),d(l)}return void 0===a&&(a=setTimeout(v,e)),s}return e=Ne(e)||0,Re(i)&&(u=!!i.leading,o=(h="maxWait"in i)?Me(Ne(i.maxWait)||0,e):o,f="trailing"in i?!!i.trailing:f),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=n=a=void 0},b.flush=function(){return void 0===a?s:y(Te())},b}function Re(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Ne(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&Ae.call(t)==ge}(t))return be;if(Re(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Re(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(me,"");var i=Ee.test(t);return i||we.test(t)?_e(t.slice(2),i?2:8):xe.test(t)?be:+t}var We=function(t,e,i){var r=!0,n=!0;if("function"!=typeof t)throw new TypeError(ye);return Re(i)&&(r="leading"in i?!!i.leading:r,n="trailing"in i?!!i.trailing:n),je(t,e,{leading:r,maxWait:e,trailing:n})},Ce="Expected a function",ze=NaN,De="[object Symbol]",Ve=/^\s+|\s+$/g,Be=/^[-+]0x[0-9a-f]+$/i,Pe=/^0b[01]+$/i,Fe=/^0o[0-7]+$/i,Ie=parseInt,He="object"==typeof p&&p&&p.Object===Object&&p,qe="object"==typeof self&&self&&self.Object===Object&&self,$e=He||qe||Function("return this")(),Xe=Object.prototype.toString,Ye=Math.max,Ge=Math.min,Ue=function(){return $e.Date.now()};function Je(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Ke(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&Xe.call(t)==De}(t))return ze;if(Je(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Je(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Ve,"");var i=Pe.test(t);return i||Fe.test(t)?Ie(t.slice(2),i?2:8):Be.test(t)?ze:+t}var Qe=function(t,e,i){var r,n,o,s,a,l,c=0,u=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError(Ce);function d(e){var i=r,o=n;return r=n=void 0,c=e,s=t.apply(o,i)}function p(t){var i=t-l;return void 0===l||i>=e||i<0||h&&t-c>=o}function v(){var t=Ue();if(p(t))return y(t);a=setTimeout(v,function(t){var i=e-(t-l);return h?Ge(i,o-(t-c)):i}(t))}function y(t){return a=void 0,f&&r?d(t):(r=n=void 0,s)}function b(){var t=Ue(),i=p(t);if(r=arguments,n=this,l=t,i){if(void 0===a)return function(t){return c=t,a=setTimeout(v,e),u?d(t):s}(l);if(h)return a=setTimeout(v,e),d(l)}return void 0===a&&(a=setTimeout(v,e)),s}return e=Ke(e)||0,Je(i)&&(u=!!i.leading,o=(h="maxWait"in i)?Ye(Ke(i.maxWait)||0,e):o,f="trailing"in i?!!i.trailing:f),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=n=a=void 0},b.flush=function(){return void 0===a?s:y(Ue())},b},Ze="Expected a function",ti="__lodash_hash_undefined__",ei="[object Function]",ii="[object GeneratorFunction]",ri=/^\[object .+?Constructor\]$/,ni="object"==typeof p&&p&&p.Object===Object&&p,oi="object"==typeof self&&self&&self.Object===Object&&self,si=ni||oi||Function("return this")();var ai,li=Array.prototype,ci=Function.prototype,ui=Object.prototype,hi=si["__core-js_shared__"],fi=(ai=/[^.]+$/.exec(hi&&hi.keys&&hi.keys.IE_PROTO||""))?"Symbol(src)_1."+ai:"",di=ci.toString,pi=ui.hasOwnProperty,vi=ui.toString,yi=RegExp("^"+di.call(pi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bi=li.splice,gi=ki(si,"Map"),mi=ki(Object,"create");function xi(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}function Ei(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}function wi(t){var e=-1,i=t?t.length:0;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}function _i(t,e){for(var i,r,n=t.length;n--;)if((i=t[n][0])===(r=e)||i!=i&&r!=r)return n;return-1}function Oi(t){return!(!Mi(t)||(e=t,fi&&fi in e))&&(function(t){var e=Mi(t)?vi.call(t):"";return e==ei||e==ii}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?yi:ri).test(function(t){if(null!=t){try{return di.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function Si(t,e){var i,r,n=t.__data__;return("string"==(r=typeof(i=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?n["string"==typeof e?"string":"hash"]:n.map}function ki(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return Oi(i)?i:void 0}function Ai(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(Ze);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s),s};return i.cache=new(Ai.Cache||wi),i}function Mi(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}xi.prototype.clear=function(){this.__data__=mi?mi(null):{}},xi.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},xi.prototype.get=function(t){var e=this.__data__;if(mi){var i=e[t];return i===ti?void 0:i}return pi.call(e,t)?e[t]:void 0},xi.prototype.has=function(t){var e=this.__data__;return mi?void 0!==e[t]:pi.call(e,t)},xi.prototype.set=function(t,e){return this.__data__[t]=mi&&void 0===e?ti:e,this},Ei.prototype.clear=function(){this.__data__=[]},Ei.prototype.delete=function(t){var e=this.__data__,i=_i(e,t);return!(i<0||(i==e.length-1?e.pop():bi.call(e,i,1),0))},Ei.prototype.get=function(t){var e=this.__data__,i=_i(e,t);return i<0?void 0:e[i][1]},Ei.prototype.has=function(t){return _i(this.__data__,t)>-1},Ei.prototype.set=function(t,e){var i=this.__data__,r=_i(i,t);return r<0?i.push([t,e]):i[r][1]=e,this},wi.prototype.clear=function(){this.__data__={hash:new xi,map:new(gi||Ei),string:new xi}},wi.prototype.delete=function(t){return Si(this,t).delete(t)},wi.prototype.get=function(t){return Si(this,t).get(t)},wi.prototype.has=function(t){return Si(this,t).has(t)},wi.prototype.set=function(t,e){return Si(this,t).set(t,e),this},Ai.Cache=wi;var Li=Ai,Ti=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var i=-1;return t.some(function(t,r){return t[0]===e&&(i=r,!0)}),i}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var i=t(this.__entries__,e),r=this.__entries__[i];return r&&r[1]},e.prototype.set=function(e,i){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=i:this.__entries__.push([e,i])},e.prototype.delete=function(e){var i=this.__entries__,r=t(i,e);~r&&i.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,r=this.__entries__;i<r.length;i++){var n=r[i];t.call(e,n[1],n[0])}},e}()}(),ji="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Ri="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Ni="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Ri):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},Wi=2;var Ci=20,zi=["top","right","bottom","left","width","height","size","weight"],Di="undefined"!=typeof MutationObserver,Vi=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var i=!1,r=!1,n=0;function o(){i&&(i=!1,t()),r&&a()}function s(){Ni(o)}function a(){var t=Date.now();if(i){if(t-n<Wi)return;r=!0}else i=!0,r=!1,setTimeout(s,e);n=t}return a}(this.refresh.bind(this),Ci)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,i=e.indexOf(t);~i&&e.splice(i,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},t.prototype.connect_=function(){ji&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Di?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){ji&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,i=void 0===e?"":e;zi.some(function(t){return!!~i.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Bi=function(t,e){for(var i=0,r=Object.keys(e);i<r.length;i++){var n=r[i];Object.defineProperty(t,n,{value:e[n],enumerable:!1,writable:!1,configurable:!0})}return t},Pi=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||Ri},Fi=Yi(0,0,0,0);function Ii(t){return parseFloat(t)||0}function Hi(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return e.reduce(function(e,i){return e+Ii(t["border-"+i+"-width"])},0)}function qi(t){var e=t.clientWidth,i=t.clientHeight;if(!e&&!i)return Fi;var r=Pi(t).getComputedStyle(t),n=function(t){for(var e={},i=0,r=["top","right","bottom","left"];i<r.length;i++){var n=r[i],o=t["padding-"+n];e[n]=Ii(o)}return e}(r),o=n.left+n.right,s=n.top+n.bottom,a=Ii(r.width),l=Ii(r.height);if("border-box"===r.boxSizing&&(Math.round(a+o)!==e&&(a-=Hi(r,"left","right")+o),Math.round(l+s)!==i&&(l-=Hi(r,"top","bottom")+s)),!function(t){return t===Pi(t).document.documentElement}(t)){var c=Math.round(a+o)-e,u=Math.round(l+s)-i;1!==Math.abs(c)&&(a-=c),1!==Math.abs(u)&&(l-=u)}return Yi(n.left,n.top,a,l)}var $i="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof Pi(t).SVGGraphicsElement}:function(t){return t instanceof Pi(t).SVGElement&&"function"==typeof t.getBBox};function Xi(t){return ji?$i(t)?function(t){var e=t.getBBox();return Yi(0,0,e.width,e.height)}(t):qi(t):Fi}function Yi(t,e,i,r){return{x:t,y:e,width:i,height:r}}var Gi=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Yi(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=Xi(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),Ui=function(){return function(t,e){var i,r,n,o,s,a,l,c=(r=(i=e).x,n=i.y,o=i.width,s=i.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(a.prototype),Bi(l,{x:r,y:n,width:o,height:s,top:n,right:r+o,bottom:s+n,left:r}),l);Bi(this,{target:t,contentRect:c})}}(),Ji=function(){function t(t,e,i){if(this.activeObservations_=[],this.observations_=new Ti,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=i}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Pi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new Gi(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Pi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new Ui(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),Ki="undefined"!=typeof WeakMap?new WeakMap:new Ti,Qi=function(){return function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=Vi.getInstance(),r=new Ji(e,i,this);Ki.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(t){Qi.prototype[t]=function(){var e;return(e=Ki.get(this))[t].apply(e,arguments)}});var Zi=void 0!==Ri.ResizeObserver?Ri.ResizeObserver:Qi,tr=!("undefined"==typeof window||!window.document||!window.document.createElement),er=function(){function t(e,i){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.onScroll=function(){r.scrollXTicking||(window.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(window.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0)},this.scrollX=function(){r.axis.x.isOverflowing&&(r.showScrollbar("x"),r.positionScrollbar("x")),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&(r.showScrollbar("y"),r.positionScrollbar("y")),r.scrollYTicking=!1},this.onMouseEnter=function(){r.showScrollbar("x"),r.showScrollbar("y")},this.onMouseMove=function(t){r.mouseX=t.clientX,r.mouseY=t.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this.onWindowResize=function(){r.scrollbarWidth=ve(),r.hideNativeScrollbar()},this.hideScrollbars=function(){r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.track.rect)||(r.axis.y.scrollbar.el.classList.remove(r.classNames.visible),r.axis.y.isVisible=!1),r.isWithinBounds(r.axis.x.track.rect)||(r.axis.x.scrollbar.el.classList.remove(r.classNames.visible),r.axis.x.isVisible=!1)},this.onPointerEvent=function(t){var e,i;r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(i=r.isWithinBounds(r.axis.x.scrollbar.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(e=r.isWithinBounds(r.axis.y.scrollbar.rect)),(e||i)&&(t.preventDefault(),t.stopPropagation(),"mousedown"===t.type&&(e&&r.onDragStart(t,"y"),i&&r.onDragStart(t,"x")))},this.drag=function(e){var i=r.axis[r.draggedAxis].track,n=i.rect[r.axis[r.draggedAxis].sizeAttr],o=r.axis[r.draggedAxis].scrollbar;e.preventDefault(),e.stopPropagation();var s=(("y"===r.draggedAxis?e.pageY:e.pageX)-i.rect[r.axis[r.draggedAxis].offsetAttr]-r.axis[r.draggedAxis].dragOffset)/i.rect[r.axis[r.draggedAxis].sizeAttr]*r.contentEl[r.axis[r.draggedAxis].scrollSizeAttr];"x"===r.draggedAxis&&(s=r.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?s-(n+o.size):s,s=r.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-s:s),r.contentEl[r.axis[r.draggedAxis].scrollOffsetAttr]=s},this.onEndDrag=function(t){t.preventDefault(),t.stopPropagation(),r.el.classList.remove(r.classNames.dragging),document.removeEventListener("mousemove",r.drag),document.removeEventListener("mouseup",r.onEndDrag)},this.el=e,this.flashTimeout,this.contentEl,this.offsetEl,this.maskEl,this.globalObserver,this.mutationObserver,this.resizeObserver,this.scrollbarWidth,this.minScrollbarWidth=20,this.options=pe({},t.defaultOptions,i),this.classNames=pe({},t.defaultOptions.classNames,this.options.classNames),this.isRtl,this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.recalculate=We(this.recalculate.bind(this),64),this.onMouseMove=We(this.onMouseMove.bind(this),64),this.hideScrollbars=Qe(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=Qe(this.onWindowResize.bind(this),64,{leading:!0}),t.getRtlHelpers=Li(t.getRtlHelpers),this.getContentElement=this.getScrollElement,this.init()}var e,i,r;return e=t,r=[{key:"getRtlHelpers",value:function(){var e=document.createElement("div");e.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var i=e.firstElementChild;document.body.appendChild(i);var r=i.firstElementChild;i.scrollLeft=0;var n=t.getOffset(i),o=t.getOffset(r);i.scrollLeft=999;var s=t.getOffset(r);return{isRtlScrollingInverted:n.left!==o.left&&o.left-s.left!=0,isRtlScrollbarInverted:n.left!==o.left}}},{key:"initHtmlApi",value:function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(function(e){e.forEach(function(e){Array.from(e.addedNodes).forEach(function(e){1===e.nodeType&&(e.hasAttribute("data-simplebar")?!e.SimpleBar&&new t(e,t.getElOptions(e)):Array.from(e.querySelectorAll("[data-simplebar]")).forEach(function(e){!e.SimpleBar&&new t(e,t.getElOptions(e))}))}),Array.from(e.removedNodes).forEach(function(t){1===t.nodeType&&(t.hasAttribute("data-simplebar")?t.SimpleBar&&t.SimpleBar.unMount():Array.from(t.querySelectorAll("[data-simplebar]")).forEach(function(t){t.SimpleBar&&t.SimpleBar.unMount()}))})})}),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))}},{key:"getElOptions",value:function(t){return Array.from(t.attributes).reduce(function(t,e){var i=e.name.match(/data-simplebar-(.+)/);if(i){var r=i[1].replace(/\W+(.)/g,function(t,e){return e.toUpperCase()});switch(e.value){case"true":t[r]=!0;break;case"false":t[r]=!1;break;case void 0:t[r]=!0;break;default:t[r]=e.value}}return t},{})}},{key:"removeObserver",value:function(){this.globalObserver.disconnect()}},{key:"initDOMLoadedElements",value:function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.from(document.querySelectorAll("[data-simplebar]")).forEach(function(e){e.SimpleBar||new t(e,t.getElOptions(e))})}},{key:"getOffset",value:function(t){var e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft)}}}],(i=[{key:"init",value:function(){this.el.SimpleBar=this,tr&&(this.initDOM(),this.scrollbarWidth=ve(),this.recalculate(),this.initListeners())}},{key:"initDOM",value:function(){var t=this;if(Array.from(this.el.children).filter(function(e){return e.classList.contains(t.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector(".".concat(this.classNames.wrapper)),this.contentEl=this.el.querySelector(".".concat(this.classNames.content)),this.offsetEl=this.el.querySelector(".".concat(this.classNames.offset)),this.maskEl=this.el.querySelector(".".concat(this.classNames.mask)),this.placeholderEl=this.el.querySelector(".".concat(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(".".concat(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(".".concat(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.el.querySelector(".".concat(this.classNames.track,".").concat(this.classNames.horizontal)),this.axis.y.track.el=this.el.querySelector(".".concat(this.classNames.track,".").concat(this.classNames.vertical));else{for(this.wrapperEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentEl.classList.add(this.classNames.content),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.offsetEl.appendChild(this.contentEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var e=document.createElement("div"),i=document.createElement("div");e.classList.add(this.classNames.track),i.classList.add(this.classNames.scrollbar),e.appendChild(i),this.axis.x.track.el=e.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=e.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector(".".concat(this.classNames.scrollbar)),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector(".".concat(this.classNames.scrollbar)),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")}},{key:"initListeners",value:function(){var t=this;this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick","touchstart","touchend","touchmove"].forEach(function(e){t.el.addEventListener(e,t.onPointerEvent,!0)}),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentEl.addEventListener("scroll",this.onScroll),window.addEventListener("resize",this.onWindowResize),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver(function(e){e.forEach(function(e){(e.target===t.contentEl||t.isChildNode(e.target)||e.addedNodes.length||e.removedNodes.length)&&t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this.resizeObserver=new Zi(this.recalculate),this.resizeObserver.observe(this.el)}},{key:"recalculate",value:function(){var t=this.heightAutoObserverEl.offsetHeight<=1;this.elStyles=window.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction,this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.contentEl.style.height=t?"auto":"100%",this.placeholderEl.style.width="".concat(this.contentEl.scrollWidth,"px"),this.placeholderEl.style.height="".concat(this.contentEl.scrollHeight,"px"),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft),this.axis.x.track.rect=this.axis.x.track.el.getBoundingClientRect(),this.axis.y.track.rect=this.axis.y.track.el.getBoundingClientRect(),this.axis.x.isOverflowing=(this.scrollbarWidth?this.contentEl.scrollWidth:this.contentEl.scrollWidth-this.minScrollbarWidth)>Math.ceil(this.axis.x.track.rect.width),this.axis.y.isOverflowing=(this.scrollbarWidth?this.contentEl.scrollHeight:this.contentEl.scrollHeight-this.minScrollbarWidth)>Math.ceil(this.axis.y.track.rect.height),this.axis.x.isOverflowing="hidden"!==this.elStyles.overflowX&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==this.elStyles.overflowY&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px"),this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px"),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y"),this.hideNativeScrollbar()}},{key:"getScrollbarSize",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",i=this.scrollbarWidth?this.contentEl[this.axis[e].scrollSizeAttr]:this.contentEl[this.axis[e].scrollSizeAttr]-this.minScrollbarWidth,r=this.axis[e].track.rect[this.axis[e].sizeAttr];if(this.axis[e].isOverflowing){var n=r/i;return t=Math.max(~~(n*r),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(t=Math.min(t,this.options.scrollbarMaxSize)),t}}},{key:"positionScrollbar",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",i=this.contentEl[this.axis[e].scrollSizeAttr],r=this.axis[e].track.rect[this.axis[e].sizeAttr],n=parseInt(this.elStyles[this.axis[e].sizeAttr],10),o=this.axis[e].scrollbar,s=this.contentEl[this.axis[e].scrollOffsetAttr],a=(s="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollingInverted?-s:s)/(i-n),l=~~((r-o.size)*a);l="x"===e&&this.isRtl&&t.getRtlHelpers().isRtlScrollbarInverted?l+(r-o.size):l,o.el.style.transform="x"===e?"translate3d(".concat(l,"px, 0, 0)"):"translate3d(0, ".concat(l,"px, 0)")}},{key:"toggleTrackVisibility",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",e=this.axis[t].track.el,i=this.axis[t].scrollbar.el;this.axis[t].isOverflowing||this.axis[t].forceVisible?(e.style.visibility="visible",this.contentEl.style[this.axis[t].overflowAttr]="scroll"):(e.style.visibility="hidden",this.contentEl.style[this.axis[t].overflowAttr]="hidden"),this.axis[t].isOverflowing?i.style.visibility="visible":i.style.visibility="hidden"}},{key:"hideNativeScrollbar",value:function(){if(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth||this.minScrollbarWidth,"px"):0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth||this.minScrollbarWidth,"px"):0,!this.scrollbarWidth){var t=[this.isRtl?"paddingLeft":"paddingRight"];this.contentEl.style[t]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"calc(".concat(this.elStyles[t]," + ").concat(this.minScrollbarWidth,"px)"):this.elStyles[t],this.contentEl.style.paddingBottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"calc(".concat(this.elStyles.paddingBottom," + ").concat(this.minScrollbarWidth,"px)"):this.elStyles.paddingBottom}}},{key:"onMouseMoveForAxis",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.axis[t].track.rect=this.axis[t].track.el.getBoundingClientRect(),this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis[t].scrollbar.rect)?this.axis[t].scrollbar.el.classList.add(this.classNames.hover):this.axis[t].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[t].track.rect)?(this.showScrollbar(t),this.axis[t].track.el.classList.add(this.classNames.hover)):this.axis[t].track.el.classList.remove(this.classNames.hover)}},{key:"onMouseLeaveForAxis",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.axis[t].track.el.classList.remove(this.classNames.hover),this.axis[t].scrollbar.el.classList.remove(this.classNames.hover)}},{key:"showScrollbar",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",e=this.axis[t].scrollbar.el;this.axis[t].isVisible||(e.classList.add(this.classNames.visible),this.axis[t].isVisible=!0),this.options.autoHide&&this.hideScrollbars()}},{key:"onDragStart",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",i=this.axis[e].scrollbar.el,r="y"===e?t.pageY:t.pageX;this.axis[e].dragOffset=r-i.getBoundingClientRect()[this.axis[e].offsetAttr],this.draggedAxis=e,this.el.classList.add(this.classNames.dragging),document.addEventListener("mousemove",this.drag),document.addEventListener("mouseup",this.onEndDrag)}},{key:"getScrollElement",value:function(){return this.contentEl}},{key:"removeListeners",value:function(){var t=this;this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick","touchstart","touchend","touchmove"].forEach(function(e){t.el.removeEventListener(e,t.onPointerEvent)}),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentEl.removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()}},{key:"unMount",value:function(){this.removeListeners(),this.el.SimpleBar=null}},{key:"isChildNode",value:function(t){return null!==t&&(t===this.el||this.isChildNode(t.parentNode))}},{key:"isWithinBounds",value:function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height}}])&&fe(e.prototype,i),r&&fe(e,r),t}();return er.defaultOptions={autoHide:!0,forceVisible:!1,classNames:{content:"simplebar-content",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3},tr&&er.initHtmlApi(),er});;!function(t){var e=function(e,n){this.container=t(e),this.options=t.extend({},r,n),this._defaults=r,this.counters={},this.url={}};e.prototype={update:function(t){this.setUrl(t),console.log("Update counters",this.url),this.updateCounterGA(),this.updateCounterMetrika(),this.updateCounterLi(),this.updateCounterTns(),this.updateCounterRambler()},updateCounterGA:function(){window.aifGaWrapper.trackPageview(this.getFullUrlPath())},updateCounterLi:function(){this.addCounterImage("//webcf.waybackmachine.org/web/20220331213512/https://counter.yadro.ru/hit;AIF?u"+escape(this.getFullUrl())+";"+Math.random())},updateCounterTns:function(){this.addCounterImage("https://webcf.waybackmachine.org/web/20220331213512/https://www.tns-counter.ru/V13a***R>"+document.referrer.replace(/\*/g,"%2a")+"*aif_ru/ru/UTF-8/tmsec=aif_total/"+Math.round(1e9*Math.random()))},updateCounterRambler:function(){"undefined"!=typeof _top100q&&_top100q.push(["trackPageviewByLogo",document.getElementById("top100counter_bottom")])},updateCounterMetrika:function(){if(void 0===this.counters.metrika){var t=[];for(var e in window)0===e.indexOf("yaCounter")&&t.push(window[e]);this.counters.metrika=t}for(var r=0;r<this.counters.metrika.length;r++)this.counters.metrika[r].hit(this.getFullUrlPath())},addCounterImage:function(t){(new Image).src=t},setUrl:function(t){t||(t=window.location.href);var e=document.createElement("a");e.href=t;var r=e.href.replace(e.protocol+"//"+e.host,"");this.url={full:t,path:r}},getFullUrl:function(){return this.url.full},getFullUrlPath:function(){return this.url.path}};var r={};t.fn.pluginInit("countersUpdate",e)}(jQuery);;function AifGaWrapperGa(){}function AifGaWrapperAnalytics(){}function AifGaWrapperGtag(){}function AifGaWrapperTest(){}function AifGaWrapper(){this.wrappersClasses={test:AifGaWrapperTest,ga:AifGaWrapperGa,analytics:AifGaWrapperAnalytics,gtag:AifGaWrapperGtag},this.wrappers={}}AifGaWrapperGa.prototype.trackEvent=function(a,e,t,r){var p=["_trackEvent",a,e];t&&p.push(t),r&&p.push(r),_gaq.push(p)},AifGaWrapperGa.prototype.trackPageview=function(a){_gaq.push(["_trackPageview",a])},AifGaWrapperAnalytics.prototype.trackEvent=function(a,e,t,r){var p={eventCategory:a,eventAction:e};t&&(p.eventLabel=t),r&&(p.eventValue=r),ga("send","event",p)},AifGaWrapperAnalytics.prototype.trackPageview=function(a){ga("send","pageview",a)},AifGaWrapperGtag.prototype.trackEvent=function(a,e,t,r){var p={event_category:a};t&&(p.event_label=t),r&&(p.value=r),gtag("event",e,p)},AifGaWrapperGtag.prototype.trackPageview=function(a){gtag("event","page_view",{page_path:a})},AifGaWrapperTest.prototype.trackEvent=function(a,e,t,r){console.log("GA track event",a,e,t,r)},AifGaWrapperTest.prototype.trackPageview=function(a){console.log("GA track url",a)},AifGaWrapper.prototype.getWrapper=function(){var a="test";return"undefined"!=typeof gtag?a="gtag":"undefined"!=typeof ga?a="analytics":"undefined"!=typeof _gaq&&(a="ga"),void 0===this.wrappers[a]&&(this.wrappers[a]=new this.wrappersClasses[a]),this.wrappers[a]},AifGaWrapper.prototype.trackEvent=function(a,e,t,r){console.log("use GA wrapper with params",this.getWrapper(),a,e,t,r),this.getWrapper().trackEvent(a,e,t,r)},AifGaWrapper.prototype.trackPageview=function(a){this.getWrapper().trackPageview(a)},window.aifGaWrapper=new AifGaWrapper; } /* FILE ARCHIVED ON 21:35:12 Mar 31, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 22:47:14 Nov 18, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.754 exclusion.robots: 0.043 exclusion.robots.policy: 0.031 esindex: 0.015 cdx.remote: 13.266 LoadShardBlock: 184.531 (3) PetaboxLoader3.datanode: 157.052 (5) PetaboxLoader3.resolve: 130.986 (3) load_resource: 208.24 loaddict: 118.736 */