Modificare il file:
\res\x5engine.deferrable.js
/*minified*/ !function(e,i){"use strict";e.extend(i,{imAccess:{showLogout:function(){var t=e(".imLogout");0!==t.length&&(t.empty(),i.utils.isOnline()?null!==e.imCookie("im_access_cookie_uid")&&""!==e.imCookie("im_access_cookie_uid")&&t.append('<a class="imLogoutLink" href="'+i.settings.currentPath+'res/imlogout.php">'+i.l10n.get("private_area_logout")+"</a>"):t.append('<a class="imLogoutLink" href="#">'+i.l10n.get("private_area_logout")+"</a>"))}}})}(_jq,x5engine);class SliderMultithumb{constructor(t,e,i,n,o,a){this.isMoving=!1,this.movingSliderNode=!1,this.domNode=t,this.rtl=x5engine.utils.isRTL(t),this.onValueChanged=o,this.onValueChangedTimeout=null,this.onFormatValue=a,this.svgNode=t.querySelector("svg"),this.svgPoint=this.svgNode.createSVGPoint(),this.railNode=t.querySelector(".rail rect"),this.rangeNode=t.querySelector(".range rect"),this.minSliderPosition=0,this.maxSliderPosition=0,this.minSliderNode=t.querySelector("[role=slider].minimum"),this.maxSliderNode=t.querySelector("[role=slider].maximum"),this.minSliderValueNode=this.minSliderNode.querySelector(".value"),this.maxSliderValueNode=this.maxSliderNode.querySelector(".value"),this.minValueNode=t.querySelector(".values .min"),this.medValueNode=t.querySelector(".values .med"),this.maxValueNode=t.querySelector(".values .max"),this.showFocusRing=n,this.showFocusRing&&(this.minSliderFocusNode=this.minSliderNode.querySelector(".focus-ring"),this.maxSliderFocusNode=this.maxSliderNode.querySelector(".focus-ring")),this.minSliderThumbNode=this.minSliderNode.querySelector(".thumb"),this.maxSliderThumbNode=this.maxSliderNode.querySelector(".thumb"),this.svgWidth=e,this.svgHeight=i,this.valueTop=24,this.valueHeight=this.minSliderValueNode.getBoundingClientRect().height,this.railHeight=6,this.railWidth=e-40,this.railY=42,this.railX=10,this.thumbTop=31,this.thumbHeight=18,this.thumbWidth=18,this.thumb2Width=2*this.thumbWidth,this.thumbMiddle=this.thumbTop+this.thumbHeight/2,this.thumbBottom=this.thumbTop+this.thumbHeight,this.svgNode.setAttribute("width",this.svgWidth),this.svgNode.setAttribute("height",this.svgHeight),this.focusOffset=8,this.showFocusRing&&(this.focusY=this.valueTop-this.valueHeight-this.focusOffset+2,this.focusWidth=this.thumbWidth+2*this.focusOffset,this.focusHeight=this.thumbBottom-this.focusY+this.focusOffset+2,this.focusRadius=this.focusWidth/8,this.minSliderFocusNode.setAttribute("y",this.focusY),this.maxSliderFocusNode.setAttribute("y",this.focusY),this.minSliderFocusNode.setAttribute("width",this.focusWidth),this.maxSliderFocusNode.setAttribute("width",this.focusWidth),this.minSliderFocusNode.setAttribute("height",this.focusHeight),this.maxSliderFocusNode.setAttribute("height",this.focusHeight),this.minSliderFocusNode.setAttribute("rx",this.focusRadius),this.maxSliderFocusNode.setAttribute("rx",this.focusRadius)),this.minSliderValueNode.setAttribute("y",this.valueTop),this.maxSliderValueNode.setAttribute("y",this.valueTop),this.railNode.setAttribute("y",this.railY),this.railNode.setAttribute("x",this.railX),this.railNode.setAttribute("height",this.railHeight),this.railNode.setAttribute("width",this.railWidth+this.thumbWidth),this.railNode.setAttribute("rx",this.railHeight/2),this.rangeNode.setAttribute("y",this.railY),this.rangeNode.setAttribute("x",this.railX/2),this.rangeNode.setAttribute("height",this.railHeight),this.rangeNode.setAttribute("width",0),this.sliderMinValue=this.getValueMin(this.minSliderNode),this.sliderMaxValue=this.getValueMax(this.maxSliderNode),this.sliderDiffValue=this.sliderMaxValue-this.sliderMinValue,this.minSliderRight=0,this.maxSliderLeft=this.railWidth,this.minSliderNode.addEventListener("keydown",this.onSliderKeydown.bind(this)),this.minSliderNode.addEventListener("pointerdown",this.onSliderPointerdown.bind(this)),this.minSliderNode.addEventListener("focus",this.onSliderFocus.bind(this)),this.minSliderNode.addEventListener("blur",this.onSliderBlur.bind(this)),this.maxSliderNode.addEventListener("keydown",this.onSliderKeydown.bind(this)),this.maxSliderNode.addEventListener("pointerdown",this.onSliderPointerdown.bind(this)),document.addEventListener("pointermove",this.onPointermove.bind(this)),document.addEventListener("pointerup",this.onPointerup.bind(this)),this.maxSliderNode.addEventListener("focus",this.onSliderFocus.bind(this)),this.maxSliderNode.addEventListener("blur",this.onSliderBlur.bind(this)),this.railNode.addEventListener("click",this.onRailClick.bind(this)),this.moveSliderTo(this.minSliderNode,this.getValue(this.minSliderNode),!0),this.moveSliderTo(this.maxSliderNode,this.getValue(this.maxSliderNode),!0)}getSVGPoint(t){return this.svgPoint.x=t.clientX,this.svgPoint.y=t.clientY,this.svgPoint.matrixTransform(this.svgNode.getScreenCTM().inverse())}getValue(t){return parseFloat(t.getAttribute("aria-valuenow"))}getValueMin(t){return parseFloat(t.getAttribute("aria-valuemin"))}getValueMax(t){return parseFloat(t.getAttribute("aria-valuemax"))}isMinSlider(t){return this.minSliderNode===t}isInRange(t,e){var i=this.getValueMin(t);return e<=this.getValueMax(t)&&i<=e}isOutOfRange(t){var e=this.getValueMin(this.minSliderNode);return this.getValueMax(this.maxSliderNode)<t||t<e}getXFromThumb(t){return parseFloat(t.getAttribute("cx"))}moveSliderTo(t,e,i){let n,o,a,r,s;n=this.isMinSlider(t)?(o=this.getValueMin(this.minSliderNode),this.getValueMax(this.minSliderNode)):(o=this.getValueMin(this.maxSliderNode),this.getValueMax(this.maxSliderNode)),e=Math.min(Math.max(e,o),n),t.setAttribute("aria-valuenow",e);var l=this.onFormatValue&&"function"==typeof this.onFormatValue?this.onFormatValue(e):e;a=this.rtl?this.railX+this.railWidth-this.thumbWidth:this.railX,this.sliderMaxValue==this.sliderMinValue?this.isMinSlider(t)||(a+=(this.railWidth-this.thumbWidth)*(this.rtl?-1:1)):a+=Math.round((e-this.sliderMinValue)*(this.railWidth-this.thumbWidth)/(this.sliderMaxValue-this.sliderMinValue))*(this.rtl?-1:1),this.isMinSlider(t)?(this.minSliderPosition=a,this.minSliderValueNode.textContent=l,this.maxSliderNode.setAttribute("aria-valuemin",e),r=a+(this.rtl?this.thumbWidth+1:-1)-this.focusOffset,this.showFocusRing&&this.minSliderFocusNode.setAttribute("x",r),this.minSliderThumbNode.setAttribute("cx",r+this.thumbWidth),s=this.minSliderValueNode.getBoundingClientRect().width,this.rtl?(a+=this.thumbWidth+s+(this.thumbWidth-s)/2,(a=Math.min(a,this.svgWidth))-s<this.maxSliderLeft+2&&(a=this.maxSliderLeft+s+2)):(a+=(this.thumbWidth-s)/2)+s>this.maxSliderLeft-2&&(a=this.maxSliderLeft-s-2),this.minSliderValueNode.setAttribute("x",Math.max(a,0)),this.minSliderRight=a):(this.maxSliderPosition=a,this.maxSliderValueNode.textContent=l,this.minSliderNode.setAttribute("aria-valuemax",e),r=a+(this.rtl?-1:this.thumbWidth+1)-this.focusOffset,this.showFocusRing&&this.maxSliderFocusNode.setAttribute("x",r),this.maxSliderThumbNode.setAttribute("cx",r+this.thumbWidth),s=Math.max(0,this.maxSliderValueNode.getBoundingClientRect().width),this.rtl?(a+=s+(this.thumbWidth-s)/2,(a=Math.max(a,s))+s>this.minSliderLeft-2&&(a=this.minSliderLeft-s-2)):(a+=this.thumbWidth+(this.thumbWidth-s)/2)-s<this.minSliderRight+2&&(a=this.minSliderRight+s+2),this.maxSliderValueNode.setAttribute("x",Math.min(a,this.svgWidth-s)),this.maxSliderLeft=a),r=this.getXFromThumb(this.rtl?this.maxSliderThumbNode:this.minSliderThumbNode)+this.thumbWidth/2*(this.rtl?-1:1),s=Math.max(this.getXFromThumb(this.rtl?this.minSliderThumbNode:this.maxSliderThumbNode)-r+this.thumbWidth/2*(this.rtl?-1:1),0),this.rangeNode.setAttribute("x",r),this.rangeNode.setAttribute("width",s),!i&&this.onValueChanged&&"function"==typeof this.onValueChanged&&(this.onValueChangedTimeout&&clearTimeout(this.onValueChangedTimeout),this.onValueChangedTimeout=setTimeout(this.onValueChanged,500))}onSliderKeydown(t){let e=!1;var i=t.currentTarget,n=this.getValue(i),o=this.getValueMin(i),a=this.getValueMax(i);switch(t.key){case"ArrowLeft":case"ArrowDown":this.moveSliderTo(i,n-(this.rtl?-1:1)),e=!0;break;case"ArrowRight":case"ArrowUp":this.moveSliderTo(i,n+(this.rtl?-1:1)),e=!0;break;case"PageDown":this.moveSliderTo(i,n-10),e=!0;break;case"PageUp":this.moveSliderTo(i,n+10),e=!0;break;case"Home":this.moveSliderTo(i,o),e=!0;break;case"End":this.moveSliderTo(i,a),e=!0}e&&(t.preventDefault(),t.stopPropagation())}onSliderFocus(t){t.currentTarget.classList.add("focus"),this.svgNode.classList.add("active")}onSliderBlur(t){t.currentTarget.classList.remove("focus"),this.svgNode.classList.remove("active")}onSliderPointerdown(t){this.isMoving=!0,this.movingSliderNode=t.currentTarget,this.isMinSliderMoving=this.isMinSlider(t.currentTarget),t.preventDefault(),t.stopPropagation(),this.movingSliderNode.focus()}onPointermove(e){if(this.isMoving&&this.movingSliderNode&&this.domNode.contains(e.target)){let t=this.getSVGPoint(e).x-this.railX;t=!this.rtl&&this.isMinSliderMoving||this.rtl&&!this.isMinSliderMoving?Math.max(0,t-this.thumbWidth/3):Math.max(0,t-5*this.thumbWidth/3),t=Math.min(t,this.railWidth-this.thumbWidth);var i=(this.rtl?this.railWidth-this.thumbWidth-t:t)*this.sliderDiffValue/(this.railWidth-this.thumbWidth)+this.sliderMinValue,i=this.sliderMaxValue-i<1?this.sliderMaxValue:Math.round(i);this.moveSliderTo(this.movingSliderNode,i),e.preventDefault(),e.stopPropagation()}}onPointerup(){this.isMoving=!1,this.movingSliderNode=!1}onRailClick(t){var e=this.getSVGPoint(t).x-this.railX,i=e-(this.rtl?this.maxSliderPosition:this.minSliderPosition)-3*this.thumbWidth/2,n=(this.rtl?this.minSliderPosition:this.maxSliderPosition)-e,i=(e<(this.rtl?this.maxSliderPosition:this.minSliderPosition)||i<n)&&e<(this.rtl?this.minSliderPosition:this.maxSliderPosition)?this.minSliderNode:this.maxSliderNode,n=Math.max(0,e-this.thumbWidth),n=Math.min(n,this.railWidth-this.thumbWidth),e=Math.round(n*this.sliderDiffValue/(this.railWidth-this.thumbWidth));this.moveSliderTo(i,e),t.preventDefault(),t.stopPropagation()}update(t,e,i,n){this.sliderMinValue=t,this.sliderMaxValue=e,this.sliderDiffValue=this.sliderMaxValue-this.sliderMinValue,this.minSliderNode.setAttribute("aria-valuemin",t),this.minSliderNode.setAttribute("aria-valuemax",n||e),this.maxSliderNode.setAttribute("aria-valuemin",i||t),this.maxSliderNode.setAttribute("aria-valuemax",e),this.moveSliderTo(this.minSliderNode,i||t,!0),this.moveSliderTo(this.maxSliderNode,n||e,!0),this.onFormatValue&&"function"==typeof this.onFormatValue?(this.minValueNode.textContent=this.onFormatValue(t),this.medValueNode.textContent=this.onFormatValue(t+(e-t)/2),this.maxValueNode.textContent=this.onFormatValue(e)):(this.minValueNode.textContent=t,this.medValueNode.textContent=t+(e-t)/2,this.maxValueNode.textContent=e)}}!function(l,c){"use strict";l.extend(c,{imAccessibleSlider:function(t){t=l.extend({containerSelector:".slider-multithumb",width:180,height:80,valueMin:0,valueMax:100,labelMin:"Minimum value",labelMax:"Maximum value",showFocusRing:!1,onValueChanged:null,onFormatValue:null},t);var e,i,n=l("body").find(t.containerSelector),o=null,a=!1,r=c.utils.isRTL(n[0]),s=t.onFormatValue&&"function"==typeof t.onFormatValue?(e=t.onFormatValue(t.valueMin),i=t.onFormatValue(t.valueMin+(t.valueMax-t.valueMin)/2),t.onFormatValue(t.valueMax)):(e=t.valueMin,i=t.valueMin+(t.valueMax-t.valueMin)/2,t.valueMax);return n.html('<svg role="none" class="slider-group" width="'+t.width+'" height="'+t.height+'"> <g aria-hidden="true" class="rail"> <rect height="0" width="0"></rect> </g> <g aria-hidden="true" class="range"> <rect height="0" width="0"></rect> </g> <g class="minimum" role="slider" tabindex="0" aria-valuemin="'+t.valueMin+'" aria-valuenow="'+t.valueMin+'" aria-valuemax="'+t.valueMax+'" aria-label="'+t.labelMin+'"> <text class="value">0</text>'+(t.showFocusRing?' <rect class="focus-ring" height="0" width="0"></rect>':"")+' <circle class="thumb" cx="9" cy="45" r="9" /> </g> <g class="maximum" role="slider" tabindex="0" aria-valuemin="'+t.valueMin+'" aria-valuenow="'+t.valueMax+'" aria-valuemax="'+t.valueMax+'" aria-label="'+t.labelMax+'"> <text class="value">0</text>'+(t.showFocusRing?' <rect class="focus-ring" height="0" width="0"></rect>':"")+' <circle class="thumb" cx="9" cy="45" r="9" /> </g> <g aria-hidden="true" class="values"> <text class="min" x="'+(r?t.width:0)+'" y="70">'+e+'</text> <text class="med" x="'+t.width/2+'" y="70" text-anchor="middle">'+i+'</text> <text class="max" x="'+(r?0:t.width)+'" y="70" text-anchor="end">'+s+"</text> </g> </svg>"),o=new SliderMultithumb(n[0],t.width,t.height,t.showFocusRing,t.onValueChanged,t.onFormatValue),{getSliderMin:function(){return t.valueMin},getSliderMax:function(){return t.valueMax},getValueMin:function(){var t=parseFloat(n.find(".minimum").attr("aria-valuenow"));return t==o.sliderMinValue?void 0:t},getValueMax:function(){var t=parseFloat(n.find(".maximum").attr("aria-valuenow"));return t==o.sliderMaxValue?void 0:t},update:function(t){t.from<t.min?t.from=t.min:t.from>t.max&&(t.from=t.max),t.to>t.max?t.to=t.max:t.to<t.min&&(t.to=t.min),a||(t.from=t.min,t.to=t.max,a=!0),o.update(t.min,t.max,t.from,t.to)}}}})}(_jq,x5engine),!function(u,h){"use strict";u.extend(h,{imAdv:{showAdv:function(t){var e=new Date,e=new Date(e.getTime()+6e4*e.getTimezoneOffset());u.extend(!0,{start:new Date(e.getTime()-1),end:new Date(e.getTime()+1),delay:0,callback:null},t);return e>t.start&&e<t.end&&u.isFunction(t.callback)?setTimeout(t.callback,t.delay):-1},showCorner:function(t){var o=u.extend(!0,{position:"right-top",attentionSeeker:{media:null,effect:"",interval:1e3},sound:null,message:{media:null,effect:""},margin:20},h.settings.imAdv,t),a=null,r=null,s=h.responsive,l=o.attentionSeeker.media.load,c=u("body"),d=u(window),a=new h.mediaObject(u.extend(o.attentionSeeker.media,{load:function(t){var e=u('<button type="button" id="adv-attention-seeker" class="clear-button-style" style="overflow: hidden; cursor: pointer;" onclick=\'$("#adv-attention-seeker").trigger("mouseenter");\'/>'),i=!1;switch(o.position){case"right-top":e.css({position:"absolute",top:o.margin,"inset-inline-end":o.margin});break;case"right-bottom":e.css({position:"absolute",bottom:o.margin,"inset-inline-end":o.margin});break;case"left-top":e.css({position:"absolute",top:o.margin,"inset-inline-start":o.margin});break;case"left-bottom":e.css({position:"absolute",bottom:o.margin,"inset-inline-start":o.margin})}c.prepend(e),e.width(t.Width()).height(t.Height()),t.AppendTo(e,function(){e.add(t.DOMObject()).css("zIndex",h.settings.zIndex.popup),t.DOMObject().height(t.Height()).width(t.Width()),e.addClass(o.attentionSeeker.effect),e.on("mouseenter",function(){i||(r=setTimeout(function(){i=!0,e.fadeOut(),h.imShowBox({media:[o.message.media],effect:"custom",customEffect:o.message.effect,sound:o.sound,fullScreenEnabled:!1,zoomEnabled:!1,showThumbs:!1,onClose:function(){e.fadeIn(250,function(){i=!1})}})},250))}).on("mouseleave",function(){clearTimeout(r)}),u.isFunction(l)&&l(t)});function n(){var t=s.getCurrentBreakPoint();!s.isDesktopMode()&&t&&t.start<a.Width()?e.hide(0):e.show(0)}n(),d.on("resize",n)}}))}}})}(_jq,x5engine),!function(s,r){"use strict";s.extend(r,{imAdvertising:{cookieId:"",clUnroll:"",clClose:"",delay:0,timerClose:null,showPopup:function(e){e=s.extend({id:"imAdvertisingPopup",offlineTimeStamp:0,delay:5e3,position:"right",priority:0,text:"",acceptButton:!1,textButton:"",actionButton:"",effect:"bounce",margin:10,backgroundColor:"#37474f",textColor:"#fff"},e),r.imAdvertising.clUnroll="unroll-"+e.position,r.imAdvertising.clClose="close-"+e.position,r.imAdvertising.delay=e.delay,r.imAdvertising.cookieId="imAdvertising_pop_up_yes"+(r.utils.isOnline()?"":"_"+e.offlineTimeStamp),r.imAdvertising.createContainer(e);function t(t){t?setTimeout(function(){t?s("#"+e.id+" #"+e.id+"-child .contText span").addClass("hid"):s("#"+e.id+" #"+e.id+"-child .contText span").removeClass("hid")},100):s("#"+e.id+" #"+e.id+"-child .contText span").removeClass("hid")}function i(){n.removeClass(r.imAdvertising.clUnroll).addClass(e.effect),t(!0)}var n=s("#"+e.id),o=s("#"+e.id+" #"+e.id+"-child"),a=(n.addClass(r.imAdvertising.clClose),n.css({zIndex:r.settings.zIndex.advertising+e.priority,transition:e.position+" .3s cubic-bezier(.4,0,.2,1)"}),Math.min(o.outerWidth()+2*e.margin,s(window).width()),Math.min(o.outerWidth()+2*e.margin,s(window).width()-60)),o=(n.css("width",60),o.css({width:a,color:e.textColor,background:e.backgroundColor}),document.createElement("style"));o.innerHTML="#"+e.id+"."+r.imAdvertising.clUnroll+" { "+e.position+": "+(a-60)+"px; }",document.getElementsByTagName("head")[0].appendChild(o);n.mouseenter(function(){t(!1),s(this).addClass(r.imAdvertising.clUnroll).removeClass(e.effect),window.clearTimeout(r.imAdvertising.timerClose)}),n.mouseleave(function(){r.imAdvertising.timerClose=window.setTimeout(i,r.imAdvertising.delay)}),setTimeout(function(){var t=r.imAdvertising.alreadyVisited();t||(s("#"+e.id+" #"+e.id+"-child .contText span").removeClass("hid"),n.addClass("unroll-"+e.position),s.imCookie(r.imAdvertising.cookieId,1,{expires:365,path:"/"}),r.imAdvertising.activateScripts()),r.imAdvertising.timerClose=window.setTimeout(i,t?0:5e3)},5e3)},createContainer:function(t){var e=s('<div id="'+t.id+'">'),i=s('<div id="'+t.id+'-child"></div>'),n=s('<div class="contIcon"></div>'),o=s('<svg xmlns="http://www.w3.org/2000/svg" width="30px" height="30px" viewBox="0 0 114.98 114.98"> <defs> <style> .a { fill: #f1f1f1; } .b { fill: #232323; } </style> </defs> <circle class="a" cx="57.49" cy="57.49" r="57.49" /> <path class="b" d="M96.34,38.74a3.29,3.29,0,0,0,0-6.58H80.7a3,3,0,0,0-.67.07l-.16,0-.14,0-.21.08-.09,0-.2.09-.09,0-.16.09-.11.07-.13.09-.13.1a.39.39,0,0,1-.1.08l-.14.14a.46.46,0,0,0-.07.07l-.15.16a.56.56,0,0,0-.05.08,1.15,1.15,0,0,0-.14.17.75.75,0,0,1-.07.12l-.09.15a3.38,3.38,0,0,0-.26.62L73.33,48.05a3.29,3.29,0,0,0,2.17,4.12l.08,0a3.49,3.49,0,0,0,1.08.17h.21a13.11,13.11,0,0,1,12.64,9.76,13.31,13.31,0,0,1,.43,3.34,13.09,13.09,0,0,1-9.75,12.64,13.06,13.06,0,0,1-15.76-8.58c0-.15-11.7-35.1-11.7-35.1l0-.07-.06-.16L52.57,34a.91.91,0,0,0-.07-.14l-.08-.15a1,1,0,0,0-.08-.11,1,1,0,0,0-.1-.15l-.09-.11L52,33.23a1.14,1.14,0,0,1-.11-.11L51.81,33l-.13-.11-.11-.09-.15-.1-.11-.07-.15-.09L51,32.48l-.15-.06-.16-.07-.07,0-.07,0-.18-.05-.14,0-.17,0-.15,0h-.65l-.15,0-.18,0-.14,0-.18.05-.07,0-.06,0-.17.06-.14.06-.14.08-.15.08-.12.08-.15.1-.11.09-.13.11-.11.11-.11.11-.11.13-.09.11-.1.15-.08.12-.08.15a.91.91,0,0,0-.07.14.61.61,0,0,1-.07.14l-.06.17a.14.14,0,0,0,0,.07L34.17,71.63,21.77,34.41a3.29,3.29,0,0,0-6.24,2.08L31.06,83.1l0,.07a1.22,1.22,0,0,0,.07.17l.06.14s.05.09.07.14l.09.15.07.12.1.15.09.11.11.13a1.14,1.14,0,0,1,.11.11l.12.11.13.11.11.09.15.1.11.08a.8.8,0,0,0,.16.08l.13.07.15.07.16.06.07,0,.07,0,.18.05.14,0,.17,0,.15,0h.65l.15,0,.18,0,.14,0,.18,0,.06,0,.07,0,.17-.07L35.6,85l.14-.07.15-.09L36,84.8l.15-.1.11-.09.13-.12a1.14,1.14,0,0,0,.11-.11l.11-.11.11-.13.09-.11.1-.15.08-.11a1.19,1.19,0,0,0,.08-.16.83.83,0,0,0,.07-.13l.07-.15.06-.16,0-.07L49.62,45.87l8.22,24.58h0a19.66,19.66,0,0,0,38.68-5,19.77,19.77,0,0,0-.65-5A19.7,19.7,0,0,0,80.8,46.18l2.31-7.44Z" /> </svg>'),a=s('<div class="contText"></div>'),r=s('<span class="hid">'+t.text+"</span>");i.append(n.append(o)).append(a.append(r)),1==t.acceptButton&&a.append(s("<button onclick=\"window.open('"+t.actionButton+"','_blank');\" >"+t.textButton+"</button>")),e.append(i).appendTo("body")},activateScripts:function(){s("#imContent").trigger("x5ActivateCookieScripts")},alreadyVisited:function(){return!!s.imCookie(r.imAdvertising.cookieId)}}})}(_jq,x5engine),!function(k,S){"use strict";k.extend(S,{alertBox:function(i){function n(){i.sound&&i.sound&&new Audio(i.sound).play()}function o(){i.link&&(S.utils.makeClickableWithKeyboard(u.find(".target-image, .mediaTarget")),u.find(".target-image, .mediaTarget").click(function(){k.isFunction(i.link)?i.link.call(this):location.href=i.link}).css("cursor","pointer"))}function a(){i.cookie&&k.imCookie(C,"true",{expires:0,path:"/"})}function t(t){27==t.keyCode&&p()}var e,r,s,l,c='<img aria-hidden="true" class="imCloseInn" src="'+S.settings.currentPath+'res/imClose.png" style="width: 20px;" />',d=(i=k.extend(!0,{id:"",effect:"",link:"",priority:0,cookie:!1,position:"top",text:"",image:"",media:null,sound:"",acceptButton:!1,elementClose:c,onClose:null,offlineTimeStamp:0},i)).id,u=null,h=null,p=null,g=k("body"),m=null,f=null,b=null,v=null,w=0,y=null,x=null,C="cookie-"+i.id+(!S.utils.isOnline()&&i.offlineTimeStamp?"_"+i.offlineTimeStamp:""),c='<div id="'+d+'" class="alertbox" data-position="'+i.position+'" data-priority="'+i.priority+'" role="dialog"><div class="message-container"><div class="wrapper-content">'+i.text+(i.image?'<img class="target-image" alt="" />':"")+(i.media?'<div class="mediaTarget" />':"")+"</div></div>";""!==i.elementClose&&(c+='<button type="button" class="clear-button-style close-button close" aria-label="'+S.l10n.get("showbox_tip_close","Close")+'">'+i.elementClose+"</button>"),c+="</div>";return g.keydown(t),(!i.cookie||"true"!=k.imCookie(C))&&("top"==i.position?(w=1e6,k('[data-priority][data-position="top"]').each(function(){var t=+k(this).attr("data-priority");!isNaN(t)&&t>i.priority&&t<w&&(v=k(this),w=t)}),v?v.after(c):g.prepend(c),m=k("#"+d+" .target-image"),0<(u=k("#"+d)).length&&(u.slideUp(0),S.utils.findFocusableElements(u).first().focus(),e=k("#imHeaderBg"),r=function(){},p=function(){a(),g.off("keydown",t),k.isFunction(i.onClose)&&i.onClose(),b&&b.Stop(),u.slideUp({duration:500,step:r,complete:function(){u.remove(),+e.css("margin-top").replace(/px/g,"")<2&&e.css("margin-top",0)}})},h=function(t){var e;u.css({position:"fixed",top:0,"inset-inline":0,"border-top-width":0,zIndex:S.settings.zIndex.popup}),i.effect&&"fromtop"==i.effect&&(e={"inset-inline-start":0,top:0},u.css({top:-k(window).height()+u.height()}),u.fadeIn(0),u.animate(e,{duration:500,complete:t})),n(),o(),u.slideDown({duration:500,step:r,complete:function(){u.outerHeight(!0),k.isFunction(t)&&t()}})},m&&m.length?(m.one("load",h),m.mouseenter(function(){m.attr("src",i.image).mouseleave(function(){m.attr("src",i.image).off("mouseleave")})}).attr("src",i.image)):i.media?(x=i.media.load,y=new S.mediaObject(k.extend(i.media,{load:function(t){t.AppendTo(k(".mediaTarget")),t.DOMObject().css("position","").height(t.Height()),h(function(){k.isFunction(x)&&x(t)})}}))):h(),u.find(".close").click(p))):"bottom"==i.position&&((s=k("#bottom-alertbox-container")).length||(s=k('<div id="bottom-alertbox-container" />').css({position:"fixed",bottom:0,"inset-inline":0,"z-index":S.settings.zIndex.popup}),g.append(s)),w=0,s.find("[data-priority]").each(function(){var t=+k(this).attr("data-priority");!isNaN(t)&&t<i.priority&&w<=t&&(v=k(this),w=t)}),v?v.before(c):s.append(c),u=k("#"+d),m=u.find(".target-image"),f=u.find(".message-container"),0<u.length)&&(u.css({position:"relative",zIndex:S.settings.zIndex.splashBox}),h=function(t){i.sound&&(b=S.mediaPlayer({url:i.sound,target:u.find(".alertbox-mediaplayer"),type:"audio",width:1,height:1,loop:!0,autoplay:!0})),u.css({bottom:i.image?-k("#"+d+" img").outerHeight():y?-y.Height():"auto","border-bottom-width":0});var e=0<m.length?m.outerHeight():y?y.Height():"auto";f.css({height:e}),u.stop(!0,!0).animate({bottom:0,height:e},{duration:500,complete:t}),i.effect&&"frombottom"==i.effect&&(e={"inset-inline-start":0,top:0},u.css({top:k(window).height()-u.height()}),u.fadeIn(0),u.animate(e,{duration:500,complete:t})),n(),o(),a()},p=function(){k.isFunction(i.onClose)&&i.onClose(),b&&b.Stop(),u.slideUp(500,function(){u.remove()}),a()},l=function(){m.off("load mouseleave").attr("src",i.image),k([f,u]).animate({height:m.outerHeight()})},m&&m.length?(m.one("load",h),i.img_big&&m.mouseenter(function(){m.one("load",function(){k([f,u]).stop(!1,!1).animate({height:m.outerHeight()}),m.mouseleave(l)}).attr("src",i.img_big)}),m.attr("src",i.image)):i.media?(x=i.media.load,y=new S.mediaObject(k.extend(i.media,{load:function(t){t.AppendTo(k(".mediaTarget")),t.DOMObject().css("position","").width("auto").height("auto").fadeIn(0),h(function(){k.isFunction(x)&&x(t)})}}))):h(),u.find(".close").click(p)),{close:function(){k.isFunction(p)&&p()}})}})}(_jq,x5engine),!function(s,t,l){"use strict";s.extend(t,{analytics:{setPageView:function(t){t=s.extend(!0,{cookie:{name:"wsx5analytics",expiration:1800},postUrl:"analytics/wsx5analytics.php"},t);var i,e=l.imStorage,n=t.cookie.name,o=e.getItem(n),a=+e.getItem(n+"ex"),r=new Date;(!o||a<r.getTime())&&(i=(new Date).getTime(),o="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(i+16*Math.random())%16|0;return i=Math.floor(i/16),("x"==t?e:3&e|8).toString(16)})),e.setItem(n,o),e.setItem(n+"ex",r.setTime(r.getTime()+1e3*t.cookie.expiration)),"/"==(a=location.pathname).charAt(a.length-1)&&-1==a.indexOf("/index.html")&&(a+="index.html"),s.ajax({url:t.postUrl,type:"POST",data:{uid:o,url:a,lang:navigator.language||navigator.userLanguage}})}}})}(_jq,x5engine,window),!function(a){"use strict";var r="x5enginepause",s=1,l={},c=a.fn.animate;function d(){return(new Date).getTime()}a.fn.animate=function(e,t,i,n){var o=a.speed(t,i,n);return o.complete=o.old,this.each(function(){this[r]||(this[r]=s++);var t=a.extend({},o);c.apply(a(this),[e,t]),l[this[r]]={start:d(),run:!0,opt:t,prop:e,done:0}})},a.fn.pauseAnim=function(){return this.each(function(){this[r]||(this[r]=s++);var t=l[this[r]];t&&t.run&&(t.done+=d()-t.start,t.done>t.opt.duration?delete l[this[r]]:(a(this).stop(),t.run=!1))})},a.fn.resAnim=function(){return this.each(function(){this[r]||(this[r]=s++);var t=l[this[r]];t&&!t.run&&(t.opt.duration-=t.done,t.done=0,t.run=!0,t.start=d(),c.apply(a(this),[t.prop,t.opt]))})}}(_jq),!function(p,g){"use strict";p.extend(g,{bgStretch:function(t,e,i){i=p('<div id="imFixedDivBg" />').css({position:"fixed",inset:0,"z-index":i});p("body").prepend(i),g.divBgStretch(i,t,!1,"top")},divBgStretch:function(e,t,i,n){var o,a,r,s=0,l=0,c=0,d=0,u=0,h=0;i=null==i||i,n=n||"center",g.utils.supportsCSS("backgroundSize")&&!/(iPad|iPhone|android)/i.test(navigator.userAgent)||(e=p(e),(o=p("<div />").css("overflow","hidden")).css("display",g.responsive.isDesktopMode()?"block":"none"),p("#imContent").on("breakpointChanged",function(){o.css("display",g.responsive.isDesktopMode()?"block":"none")}),a=p("<img />").css({position:"absolute",top:-1e4}),p("body").append(a),a.one("load",function(){c=e.width(),d=e.height(),h=c,u=d,r=a.height()/a.width(),a.detach(),e.prepend(o),o.append(a),function t(){"static"==e.css("position")&&e.css("position","relative"),e.children().each(function(){var t=p(this);"static"==t.css("position")&&t.css("position","relative")}),o.width(h).height(u).css({position:"absolute",top:0,"inset-inline-start":0}),i?a.css({top:0,"inset-inline-start":0}).width(h).height(u):((l=(s=h)*r)<u&&(s=(l=u)/r),a.width(s).height(l).css({top:"top"==n?0:(u-l)/2,"inset-inline-start":(h-s)/2}),setTimeout(function(){h=e.width(),u=e.height(),h==c&&u==d||(t(),c=h,d=u)},250))}()}).attr("src",t))},eventBinder:function(a,r,n,o,s){var l=!1;p(a).each(function(){var e=p(this),i=function(t){if(isNaN(t.clientX)||isNaN(t.clientY)||0===t.clientX&&0===t.clientY)return!1;for(var e=document.elementsFromPoint(t.clientX,t.clientY),i=!1,n=!1,o=0;o<e.length&&!i&&!n;o++)p(e[o]).is(a)&&(i=!0),r&&(p(e[o]).is(r)||p(t.target).is(r))&&(n=!0);return i&&!n};n&&e.on("click",function(t){i(t)&&(p.isFunction(n)?n.apply(e):"string"==typeof n&&0===n.indexOf("http")&&(location.href=n))}),(o||s)&&p("body").on("mousemove",function(t){i(t)?l||(l=!0,p.isFunction(o)?o.apply(e):"string"==typeof o&&0===o.indexOf("http")&&(location.href=o)):l&&(l=!1,p.isFunction(s))&&s()})})}})}(_jq,x5engine),!function(o,t,e){"use strict";function i(){d=[],o(".imBlogHighlightedCards").each(function(){var t,e=o(this),i=e.find(".imBlogPostCard"),n=i.length||0;0!=n&&(t=e.width(),e=e.width()*(n-1),d.push({cards:i,current:0,step:t,end:e}),o.each(i,function(t,e){o(e).css("transform","translateX(0px)")}))})}function n(){o.each(d,function(t,i){i.current==i.end?i.current=0:i.current+=i.step,o.each(i.cards,function(t,e){o(e).css("transform","translateX(-"+i.current+"px)")})}),c()}function a(){o.each(d,function(t,i){0==i.current?i.current=i.end:i.current-=i.step,o.each(i.cards,function(t,e){o(e).css("transform","translateX(-"+i.current+"px)")})}),c()}function r(t){p=!1,1==t.touches.length&&(p=g={x:t.touches[0].pageX,y:t.touches[0].pageY})}function s(t){var e,i;1==t.touches.length&&(e=t.touches[0].pageX-p.x,i=t.touches[0].pageY-p.y,g=Math.abs(i)>Math.abs(e)?p=!1:{x:t.touches[0].pageX,y:t.touches[0].pageY})}function l(t){var e,i;p&&g&&(e=g.x-p.x,i=g.y-p.y,0!=e&&Math.abs(i)<Math.abs(e)&&(t.preventDefault(),(0<e?a:n)()),p=g=!1)}function c(){u&&clearTimeout(u),u=setTimeout(function(){n()},h)}var d,u,h,p,g;o.extend(t,{blogHighlightedSlideshow:(d=[],u=null,g=p=!(h=5e3),{start:function(t){h=t||5e3,i(),0<d.length&&(o(e).resize(i),o("html").hasClass("touchevents")?(o(".imBlogHighlightedCards").on("touchstart",r),o(".imBlogHighlightedCards").on("touchmove",s),o(".imBlogHighlightedCards").on("touchend",l),o(".imBlogHighlightedBefore").css("display","none"),o(".imBlogHighlightedAfter").css("display","none")):(o(".imBlogHighlightedBefore").click(a),o(".imBlogHighlightedAfter").click(n)),c())}})})}(_jq,x5engine,window),!function(t,e){"use strict";t.extend(e,{captcha:{instance:null}})}(_jq,x5engine),!function(a,t){"use strict";a.extend(!0,t,{captcha:{recaptcha:function(o){o=a.extend({sitekey:""},o),this.create=function(t){var e=a(t).find(".recaptcha"),i=-1;if(!e.length)return!1;!function t(){"undefined"==typeof grecaptcha||void 0===grecaptcha.render?setTimeout(t,50):i=grecaptcha.render(e[0],{sitekey:o.sitekey})}();function n(t){"console"in window&&console.log(t)}return{remove:function(){e.empty()},reset:function(){"number"==typeof i&&grecaptcha.reset(i)},check:function(){var t,e;return"number"==typeof i&&!!(t=grecaptcha.getResponse(i))&&(!x5engine.utils.isOnline()||(e=!1,a.ajax({url:x5engine.settings.currentPath+o.phpfile,async:!1,type:"POST",data:{rsp:t},dataType:"json",success:function(t){e=t.success,!t.success&&t["error-codes"]&&t["error-codes"].length&&n("reCaptcha error: "+t["error-codes"][0])},error:function(t,e,i){n("reCatpcha error: "+e+i)}}),e))},getCaptchaField:function(){return e}}}}}})}(_jq,x5engine),!function(n,t){"use strict";n.extend(!0,t,{captcha:{recaptchav3:function(i){i=n.extend({sitekey:""},i),this.create=function(t){return{remove:function(){},reset:function(){},check:function(){return!0},canSubmit:async function(){var t=await grecaptcha.execute(i.sitekey,{action:"submit"}),e=!1;return n.ajax({url:x5engine.settings.currentPath+i.phpfile,async:!1,type:"POST",data:{rsp:t},dataType:"json",success:function(t){e=t.success},error:function(t,e,i){console.log("errorThrown"),console.log(i)}}),e},getCaptchaField:function(){return null}}}}}})}(_jq,x5engine),!function(u,t){"use strict";u.extend(!0,t,{captcha:{x5captcha:function(d){d=u.extend({length:5,phpfile:"captcha/5captcha.php",offlineCodes:[]},d),this.create=function(t){function e(){for(c.val(""),o=n="",a=0;a<s;a++){for(var t;t=parseInt(9*Math.random(),10),-1<n.indexOf(t););n+=t}if(x5engine.utils.isOnline())l=u('<iframe class="captcha-container" src="'+r+d.phpfile+"?action=show&code="+n+'" frameborder="0" marginwidth="0" marginheight="0" width="120" height="24" scrolling="no"></iframe>'),c.before(l);else{var e='<div class="captcha-container">';for(a=0;a<n.length;a++)e+='<img src="'+r+d.offlineCodes[parseInt(n.charAt(a),10)].path+'" alt="" />';for(l=u(e+="</div>"),c.before(l),a=0;a<n.length;a++)o+=d.offlineCodes[parseInt(n.charAt(a),10)].letter}u("#imContent").change()}function i(){l&&l.remove()}var n,o,a,r=x5engine.settings.currentPath,s=d.length,l=null,c=u(t).find(".imCpt");return!!c.length&&(e(),{remove:i,reset:function(){i(),e()},check:function(){var t=c.val(),e=!1;return x5engine.utils.isOnline()?u.ajax({url:r+d.phpfile+"?action=check&code="+n+"&ans="+t,async:!1,cache:!1,success:function(t){e="-1"!=t}}):e=t.toLowerCase()==o.toLowerCase()||x5engine.settings.rtl&&t.toLowerCase().split("").reverse().join("")==o.toLowerCase(),e},getCaptchaField:function(){return c}})}}}})}(_jq,x5engine),!function(y,x){"use strict";y.extend(x,{cms:{initialize:function(e,i){var t=y(e);i=y.extend({autoGrow:!1,css:"style/style.css",imageuploadurl:"res/imageupload.php"},i),t.css("cursor","pointer").one("click",function(t){y(t.target).is("a")||x.cms.edit(e,i)}).hover(function(){t.css({border:"1px dashed gray",overflow:x.utils.imHasScrollBar(t)?"auto":"hidden"}).width(t.width()-2).height(t.height()-2)},function(){t.css({border:"none",overflow:"auto"}).width("auto").height(i.autoGrow?"auto":t.height()+2)})},edit:function(t,e){var i=y(t),n=i.find("form"),t=i.find(".dynamicText"),o=i.find(".staticText"),a=t.find("textarea");i.css({border:"none",cursor:"auto",overflow:""}).off("mouseenter mouseleave"),e.autoGrow&&(i.height("auto"),a.height(Math.max(i.height(),200))),o.hide(0),t.show(0),e.autoGrow=!1,a.html(a.html().replace(/imCssLink/g,"")),n.one("submit",function(t){t.preventDefault();t=a.wysiwyg("getContent"),t=y("<div />").html(t);t.find("a").addClass("imCssLink"),a.after('<textarea name="'+a.attr("name")+'" style="display:none;">'+t.html()+"</textarea>"),a.attr("name","donotuse"),n.submit()}),e.autoGrow||i.on("ready.jwysiwyg",function(){var t=i.find(".wysiwyg").find(".toolbar").outerHeight(),t=(t+=i.find(".wysiwyg-buttons").outerHeight())+ +i.find(".wysiwyg").css("margin-bottom").replace(/px/g,"")+2;i.find(".wysiwyg").find("iframe").height(i.height()-t),i.css("width","100%")}),a.wysiwyg(e)}}});var a=window.console||{log:y.noop,error:function(t){y.error(t)}},t="prop"in y.fn&&"removeProp"in y.fn,n=x.l10n.get,C=/MSIE/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/MSHTML/i.test(navigator.userAgent),s=/opera/i.test(navigator.userAgent),r=/firefox/i.test(navigator.userAgent),k=/safari/i.test(navigator.userAgent)&&!/chrome/i.test(navigator.userAgent);function o(){this.controls={bold:{groupIndex:1,visible:!0,tags:["b","strong"],css:{fontWeight:"bold"},tooltip:n("wysiwyg_bold","Bold"),hotkey:{ctrl:1,key:66}},copy:{groupIndex:0,visible:!1,hasState:!1,tooltip:n("wysiwyg_copy","Copy")},createLink:{groupIndex:6,visible:!0,exec:function(){var t=this;y.wysiwyg.controls&&y.wysiwyg.controls.link?y.wysiwyg.controls.link.init(this):y.wysiwyg.autoload?y.wysiwyg.autoload.control("wysiwyg.link.js",function(){t.controls.createLink.exec.apply(t)}):a.error("$.wysiwyg.controls.link not defined. You need to include wysiwyg.link.js file")},tags:["a"],tooltip:n("wysiwyg_add_link","Create link")},unLink:{groupIndex:6,hasState:!1,visible:!0,exec:function(){this.editorDoc.execCommand("unlink",!1,null)},tooltip:n("wysiwyg_remove_link","Remove link")},cut:{groupIndex:0,visible:!1,hasState:!1,tooltip:n("wysiwyg_cut","Cut")},decreaseFontSize:{groupIndex:9,visible:!1,hasState:!1,tags:["small"],tooltip:"Decrease font size",exec:function(){this.decreaseFontSize()}},h1:{groupIndex:7,visible:!1,className:"h1",command:C||k?"FormatBlock":"heading",arguments:C||k?"<h1>":"h1",tags:["h1"],tooltip:"Header 1"},h2:{groupIndex:7,visible:!1,className:"h2",command:C||k?"FormatBlock":"heading",arguments:C||k?"<h2>":"h2",tags:["h2"],tooltip:"Header 2"},h3:{groupIndex:7,visible:!1,className:"h3",command:C||k?"FormatBlock":"heading",arguments:C||k?"<h3>":"h3",tags:["h3"],tooltip:"Header 3"},highlight:{tooltip:"Highlight",className:"highlight",groupIndex:1,visible:!1,css:{backgroundColor:"rgb(255, 255, 102)"},exec:function(){var t,e,i=C||k?"backcolor":"hilitecolor";if(C)t=this.getInternalRange().parentElement();else for(t=(e=this.getInternalSelection()).extentNode||e.focusNode;void 0===t.style;)if((t=t.parentNode).tagName&&"body"===t.tagName.toLowerCase())return;e="rgb(255, 255, 102)"===t.style.backgroundColor||"#ffff66"===t.style.backgroundColor?"#ffffff":"#ffff66",this.editorDoc.execCommand(i,!1,e)}},html:{groupIndex:10,visible:!0,exec:function(){var t;this.options.resizeOptions&&y.fn.resizable&&(t=this.element.height()),this.viewHTML?(this.setContent(this.original.value),y(this.original).hide(),this.editor.show(),this.options.resizeOptions&&y.fn.resizable&&(t===this.element.height()&&this.element.height(t+this.editor.height()),this.element.resizable(y.extend(!0,{alsoResize:this.editor},this.options.resizeOptions))),this.ui.toolbar.find("li").each(function(){var t=y(this);t.hasClass("html")||t.removeClass("disabled")})):(this.saveContent(),y(this.original).css({width:this.element.outerWidth()-6,height:this.element.height()-this.ui.toolbar.height()-10,resize:"none"}).show(),this.editor.hide(),this.options.resizeOptions&&y.fn.resizable&&(t===this.element.height()&&this.element.height(this.ui.toolbar.height()),this.element.resizable("destroy")),this.ui.toolbar.find("li").each(function(){var t=y(this);t.hasClass("html")||!1!==t.hasClass("fullscreen")||t.removeClass("active").addClass("disabled")})),this.viewHTML=!this.viewHTML},tooltip:"View source code"},increaseFontSize:{groupIndex:9,visible:!1,hasState:!1,tags:["big"],tooltip:"Increase font size",exec:function(){this.increaseFontSize()}},indent:{groupIndex:2,hasState:!1,visible:!1,tooltip:"Indent"},insertHorizontalRule:{groupIndex:6,visible:!1,hasState:!1,tags:["hr"],tooltip:"Insert Horizontal Rule"},insertImage:{groupIndex:6,hasState:!1,visible:!0,exec:function(){var t=this;y.wysiwyg.controls&&y.wysiwyg.controls.image?y.wysiwyg.controls.image.init(this):y.wysiwyg.autoload?y.wysiwyg.autoload.control("wysiwyg.image.js",function(){t.controls.insertImage.exec.apply(t)}):a.error("$.wysiwyg.controls.image not defined. You need to include wysiwyg.image.js file")},tags:["img"],tooltip:n("wysiwyg_image","Insert image")},insertOrderedList:{groupIndex:5,visible:!0,tags:["ol"],tooltip:n("wysiwyg_ol","Insert Ordered List")},insertTable:{groupIndex:6,hasState:!1,visible:!1,exec:function(){var t=this;y.wysiwyg.controls&&y.wysiwyg.controls.table?y.wysiwyg.controls.table(this):y.wysiwyg.autoload?y.wysiwyg.autoload.control("wysiwyg.table.js",function(){t.controls.insertTable.exec.apply(t)}):a.error("$.wysiwyg.controls.table not defined. You need to include wysiwyg.table.js file")},tags:["table"],tooltip:"Insert table"},insertUnorderedList:{groupIndex:5,visible:!0,tags:["ul"],tooltip:n("wysiwyg_ul","Insert Unordered List")},italic:{groupIndex:1,visible:!0,tags:["i","em"],css:{fontStyle:"italic"},tooltip:n("wysiwyg_italic","Italic"),hotkey:{ctrl:1,key:73}},justifyCenter:{groupIndex:2,visible:!0,exclusive:!0,tags:["center"],css:{textAlign:"center"},tooltip:n("wysiwyg_justify_center","Justify Center")},justifyFull:{groupIndex:2,visible:!0,exclusive:!0,css:{textAlign:"justify"},tooltip:n("wysiwyg_justify_full","Justify Full")},justifyLeft:{visible:!0,groupIndex:2,exclusive:!0,css:{textAlign:"left"},tooltip:n("wysiwyg_justify_left","Justify Left")},justifyRight:{groupIndex:2,visible:!0,exclusive:!0,css:{textAlign:"right"},tooltip:n("wysiwyg_justify_right","Justify Right")},ltr:{groupIndex:10,visible:!1,exec:function(){var t=this.dom.getElement("p");return!!t&&(y(t).attr("dir","ltr"),!0)},tooltip:"Left to Right"},outdent:{groupIndex:2,visible:!1,tooltip:"Outdent"},paragraph:{groupIndex:7,visible:!1,className:"paragraph",command:"FormatBlock",arguments:C||k?"<p>":"p",tags:["p"],tooltip:"Paragraph"},paste:{groupIndex:0,hasState:!1,visible:!1,tooltip:n("wysiwyg_paste","Paste")},undo:{groupIndex:3,hasState:!1,visible:!0,tooltip:n("wysiwyg_undo","Undo")},redo:{groupIndex:3,hasState:!1,visible:!0,tooltip:n("wysiwyg_redo","Redo")},removeFormat:{groupIndex:10,visible:!0,exec:function(){this.removeFormat()},tooltip:n("wysiwyg_reset","Remove formatting")},rtl:{groupIndex:10,visible:!1,exec:function(){var t=this.dom.getElement("p");return!!t&&(y(t).attr("dir","rtl"),!0)},tooltip:"Right to Left"},strikeThrough:{groupIndex:1,visible:!0,tags:["s","strike"],css:{textDecoration:"line-through"},tooltip:n("wysiwyg_strike","Strike-through")},subscript:{groupIndex:3,visible:!1,tags:["sub"],tooltip:"Subscript"},superscript:{groupIndex:3,visible:!1,tags:["sup"],tooltip:"Superscript"},underline:{groupIndex:1,visible:!0,tags:["u"],css:{textDecoration:"underline"},tooltip:n("wysiwyg_underline","Underline"),hotkey:{ctrl:1,key:85}},code:{visible:!1,groupIndex:6,tooltip:"Code snippet",exec:function(){var t=this.getInternalRange(),e=y(t.commonAncestorContainer),t=t.commonAncestorContainer.nodeName.toLowerCase();e.parent("code").length?e.unwrap():"body"!==t&&e.wrap("<code/>")}},cssWrap:{visible:!1,groupIndex:6,tooltip:"CSS Wrapper",exec:function(){y.wysiwyg.controls.cssWrap.init(this)}}},this.defaults={html:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" style="margin:0;background-image:none;"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body style="margin:0;">INITIAL_CONTENT</body></html>',debug:!1,controls:{},availableFonts:[],defaultFontFamily:"Tahoma",defaultFontSize:10,css:{},events:{},autoGrow:!1,autoSave:!0,brIE:!1,formHeight:270,formWidth:440,iFrameClass:null,initialContent:"<p>"+n("wysiwyg_default_text","Click here to edit this text!")+"</p>",maxHeight:1e4,maxLength:0,messages:{nonSelection:"Select the text you wish to link"},toolbarHtml:'<ul role="menu" class="toolbar"></ul>',removeHeadings:!1,replaceDivWithP:!1,resizeOptions:!1,rmUnusedControls:!1,rmUnwantedBr:!0,tableFiller:"Lorem ipsum",initialMinHeight:null,controlImage:{forceRelativeUrls:!1},controlLink:{forceRelativeUrls:!1},plugins:{autoload:!1,i18n:!1,rmFormat:{rmMsWordMarkup:!1}},dialog:"default"},this.availableControlProperties=["arguments","callback","className","command","hasState","exclusive","css","custom","exec","groupIndex","hotkey","icon","tags","tooltip","visible"],this.editor=null,this.editorDoc=null,this.element=null,this.options={},this.original=null,this.savedRange=null,this.timers=[],this.validKeyCodes=[8,9,13,16,17,18,19,20,27,33,34,35,36,37,38,39,40,45,46],this.isDestroyed=!1,this.dom={ie:{parent:null},w3c:{parent:null}},(this.dom.parent=this).dom.ie.parent=this.dom,this.dom.w3c.parent=this.dom,this.ui={},(this.ui.self=this).ui.toolbar=null;var t,e,i=this.ui.initialHeight=null;window.getSelection?(t=function(t){var e=t.getSelection(),i=[];if(e.rangeCount)for(var n=0,o=e.rangeCount;n<o;++n)i.push(e.getRangeAt(n));return i},e=function(t,e){var i=t.getSelection();i.removeAllRanges();for(var n=0,o=e.length;n<o;++n)i.addRange(e[n])}):document.selection&&document.selection.createRange&&(t=function(t){t=t.document.selection;return"None"!=t.type?t.createRange():null},e=function(t,e){e&&e.select()}),this.saveSelection=function(){i=t(this.editor[0].contentWindow)},this.restoreSelection=function(){i&&e(this.editor[0].contentWindow,i)},this.dom.getAncestor=function(t,e){for(e=e.toLowerCase();t&&void 0!==t.tagName&&"body"!==t.tagName.toLowerCase();){if(e===t.tagName.toLowerCase())return t;t=t.parentNode}if(!t.tagName&&(t.previousSibling||t.nextSibling)){if(t.previousSibling&&t.previousSibling.tagName.toLowerCase()==e)return t.previousSibling;if(t.nextSibling&&t.nextSibling.tagName.toLowerCase()==e)return t.nextSibling}return null},this.dom.getElement=function(t){return t=t.toLowerCase(),(window.getSelection?this.w3c:this.ie).getElement(t)},this.dom.ie.getElement=function(t){var e,i=this.parent,n=i.parent.getInternalSelection(),o=n.createRange();if("Control"===n.type){if(1!==o.length)return null;e=o.item(0)}else e=o.parentElement();return i.getAncestor(e,t)},this.dom.w3c.getElement=function(t){var e,i=this.parent,n=i.parent.getInternalRange();if(!n)return null;if(!(e=3===(e=n.commonAncestorContainer).nodeType?e.parentNode:e))return null;if(!(e=e===n.startContainer?e.childNodes[n.startOffset]:e))return null;if(!e.tagName&&(e.previousSibling||e.nextSibling)){if(e.previousSibling&&e.previousSibling.tagName.toLowerCase()==t)return e.previousSibling;if(e.nextSibling&&e.nextSibling.tagName.toLowerCase()==t)return e.nextSibling}return i.getAncestor(e,t)},this.ui.addHoverClass=function(){y(this).addClass("wysiwyg-button-hover")},this.ui.appendControls=function(){function t(t,e){e.visible&&(s!=e.groupIndex&&a&&(i.appendItemSeparator(),a=!1),s=e.groupIndex,a=!0,e.custom?i.appendItemCustom(t,e):i.appendItem(t,e))}var i=this,r=this.self,e=r.parseControls(),n=[],o={},a=!1,s=-1;for(y.each(e,function(t,e){var i="empty";void 0!==e.groupIndex&&(i=""===e.groupIndex?"empty":e.groupIndex),void 0===o[i]&&(n.push(i),o[i]={}),o[i][t]=e}),n.sort(function(t,e){return"number"==typeof t&&typeof t==typeof e?t-e:(t=t.toString(),(e=e.toString())<t?1:t===e?0:-1)}),0<n.length&&(s=n[0]),g=0;g<n.length;g+=1)y.each(o[n[g]],t);a&&i.appendItemSeparator();function l(t,e,i){function n(){a&&a.hidePicker(),o&&o.remove()}var o=y('<input id="colorPickerInput" style="visibility: hidden; width: 1px; height: 100%;"/>').appendTo(t),a=(x.jscolor.dir="images/",new x.jscolor.color(document.getElementById("colorPickerInput"),{}));"string"==(typeof e).toLowerCase()?a.fromString(e):"object"==(typeof e).toLowerCase()&&a.fromRGB(e.r,e.g,e.b),a.showPicker(),setTimeout(function(){y(x.jscolor.picker.box).on("click",function(t){t.stopPropagation()}),y("body").add(r.editorDoc).one("click",function(t){a&&n()}).one("keydown",function(t){!a||27!=t.keyCode&&13!=t.keyCode||(t.preventDefault(),t.stopPropagation(),n())})},100),i&&y.isFunction(i)&&o.on("change",function(){i(o.val())})}function c(t){return t?0===t.indexOf("#")?t.substring(1):0===t.indexOf("rgb(")?{r:+(t=(t=(t=t.substring(4)).substring(0,t.length-1)).split(","))[0].trim()/255,g:+t[1].trim()/255,b:+t[2].trim()/255}:void 0:"000000"}var d,u,h=i.appendItemCustom("fontFamily",{event:"change",onControlAppended:function(t){t.parent("ul").find("li.bold").before(t.detach())},exec:function(){d=h.find("select").val(),r.editorDoc.execCommand("fontname",!1,d)}});if(h.append('<select unselectable="on" id="font-family" style="width:100px;" />').css("text-indent",0).width(100).parent("li").width("auto"),r.options.availableFonts.length)for(var p=h.find("select"),g=0;g<r.options.availableFonts.length;g++)p.append('<option value="'+r.options.availableFonts[g]+'">'+r.options.availableFonts[g]+"</option>");var m=i.appendItemCustom("fontSize",{event:"change",onControlAppended:function(t){t.parent("ul").find("li.bold").before(t.detach())},exec:function(){u=m.find("select").val(),C||r.editorDoc.execCommand("styleWithCSS",!1,!0),r.editorDoc.execCommand("fontSize",!1,1),C||r.editorDoc.execCommand("styleWithCSS",!1,!1),y(r.editorDoc).find("[style*=small] span, [size=1] span").css("font-size",""),y(r.editorDoc).find("[style*=small]").css("font-size",u+"pt"),y(r.editorDoc).triggerHandler("mouseup")}}),f=(m.after('<li role="separator" class="separator"></li>'),m.append('<select id="font-family" style="width:40px;" />').css("text-indent",0).width(40).parent("li").width("auto"),m.find("select")),b=[8,9,10,12,14,16,18,20,22,24,26,28,36,42,48,54,60,66,72];for(g=0;g<b.length;g++)f.append('<option value="'+b[g]+'">'+b[g]+"</option>");var v=i.appendItemCustom("colorpicker",{onControlAppended:function(t){t.parent("ul").find("li.underline").after(t.detach())},exec:function(){v.css("text-indent",0);var t=r.getInternalSelection(),e="000000";t.focusNode&&t.focusNode.parentNode&&(e=c(y(t.focusNode.parentNode).css("color"))),l(v,e,function(t){C||r.editorDoc.execCommand("styleWithCSS",!1,!0),r.editorDoc.execCommand("foreColor",!1,"#"+t),C||r.editorDoc.execCommand("styleWithCSS",!1,!1)})}}),w=i.appendItemCustom("highlight",{onControlAppended:function(t){t.parent("ul").find("li.colorpicker").after(t.detach())},exec:function(){w.css("text-indent",0);var t=r.getInternalSelection(),e="000000";t.focusNode&&t.focusNode.parentNode&&(e=c(y(t.focusNode.parentNode).css("background-color"))),l(w,e,function(t){var e=C||k?"backcolor":"hilitecolor";C||r.editorDoc.execCommand("styleWithCSS",!1,!0),r.editorDoc.execCommand(e,!1,"#"+t),C||r.editorDoc.execCommand("styleWithCSS",!1,!1)})}});y(r.element).on("initFrame.wysiwyg",function(){y(r.editorDoc).on("keydown mouseout mouseup",function(){var t;r.editorDoc.queryCommandValue&&(y(r.editorDoc).find("font").each(function(){var t=y(this),e=t.attr("style")||"";t.attr("face")&&(e+="font-family: '"+t.attr("face")+"';"),t.attr("color")&&(e+="color: "+t.attr("color")+";"),t.attr("size")&&u&&(e+="font-size: "+u+"pt;"),t.wrap('<span style="'+e+'" />'),t.contents().unwrap()}),r.options.availableFonts.length&&(t=r.getInternalSelection())&&(0<(t=(t=y(t.focusNode)).is("span")?t:t.parent("span")).length?p.val(t.css("font-family").replace(/['"]/g,"")):p.val(r.options.defaultFontFamily)),t=r.getInternalSelection())&&(0<(t=(t=y(t.focusNode)).is("span")?t:t.parent("span")).length?f.val((parseFloat(t.css("font-size").replace("pt","").replace("px",""))/1.3333).toFixed(0)):f.val(r.options.defaultFontSize))})})},this.ui.appendItem=function(n,o){var a=this.self,t=o.className||o.command||n||"empty",r=!("hasState"in o)||o.hasState,s="exclusive"in o&&o.exclusive,e=o.tooltip||o.command||n||"";return y('<li role="menuitem" unselectable="on">'+t+"</li>").addClass(t).attr("title",e).hover(this.addHoverClass,this.removeHoverClass).on("click",function(t){if(y(this).hasClass("disabled"))return!1;a.triggerControl.apply(a,[n,o]);var e,i=y(t.target);for(e in a.controls)s&&r&&a.controls[e].groupIndex==o.groupIndex&&a.ui.toolbar.find("."+e).removeClass("active"),i.hasClass(e)&&(r&&a.ui.toolbar.find("."+e).toggleClass("active"),a.editorDoc.rememberCommand=!0);return this.blur(),a.ui.returnRange(),a.ui.focus(),!0}).on("selectstart mousedown",function(){return!1}).appendTo(a.ui.toolbar)},this.ui.appendItemCustom=function(t,e){var i=this.self,n=e.tooltip||e.command||t||"",n=(e.event||(e.event="click"),e.callback&&y(window).on("trigger-"+t+".wysiwyg",e.callback),y('<li role="menuitem" unselectable="on" '+(e.icon?"style=\"background: url('"+e.icon+"') no-repeat;\")":"")+"></li>").addClass("custom-command-"+t).addClass("wysiwyg-custom-command").addClass(t).attr("title",n).hover(this.addHoverClass,this.removeHoverClass).on(e.event,function(){return!y(this).hasClass("disabled")&&(i.triggerControl.apply(i,[t,e]),C||(this.blur(),i.ui.returnRange(),i.ui.focus()),i.triggerControlCallback(t),!0)}).appendTo(i.ui.toolbar));return e.onControlAppended&&y.isFunction(e.onControlAppended)&&e.onControlAppended(n),n},this.ui.appendItemSeparator=function(){var t=this.self;return y('<li role="separator" class="separator"></li>').appendTo(t.ui.toolbar)},this.autoSaveFunction=function(){this.saveContent()},this.ui.checkTargets=function(s){var l=this.self;y.each(l.options.controls,function(t,e){var i,n,o,a,r=e.className||e.command||t||"empty";if("fullscreen"!==r&&l.ui.toolbar.find("."+r).removeClass("active"),e.tags||e.options&&e.options.tags)for(i=e.tags||e.options&&e.options.tags,n=s;n&&1===n.nodeType;)-1!==y.inArray(n.tagName.toLowerCase(),i)&&l.ui.toolbar.find("."+r).addClass("active"),n=n.parentNode;if(e.css||e.options&&e.options.css)for(o=e.css||e.options&&e.options.css,a=y(s);a&&1===a[0].nodeType;)!function(t){var i=0,n=0;y.each(t,function(t,e){"function"==typeof e?e.apply(l,[a.css(t).toString().toLowerCase(),l])&&(i+=1):a.css(t).toString().toLowerCase()===e&&(i+=1),n+=1}),n===i&&l.ui.toolbar.find("."+r).addClass("active")}(o),a=a.parent()})},this.ui.designMode=function(){var e=this.self,i=function(t){if("on"===e.editorDoc.designMode)e.timers.designMode&&window.clearTimeout(e.timers.designMode),e.innerDocument()!==e.editorDoc&&e.ui.initFrame();else{try{e.editorDoc.designMode="on"}catch(t){}0<--t&&(e.timers.designMode=window.setTimeout(function(){i(t)},100))}};i(3)},this.destroy=function(){this.isDestroyed=!0;for(var t=this.element.closest("form"),e=0;e<this.timers.length;e+=1)window.clearTimeout(this.timers[e]);return t.off(".wysiwyg"),this.element.remove(),y.removeData(this.original,"wysiwyg"),y(this.original).show(),this},this.getRangeText=function(){var t=this.getInternalRange();if(t)return t.toString?t=t.toString():t.text&&(t=t.text),t},this.execute=function(t,e){this.editorDoc.execCommand(t,!1,e=void 0===e?null:e)},this.extendOptions=function(e){var i={};return"object"==typeof e.controls&&(i=e.controls,delete e.controls),(e=y.extend(!0,{},this.defaults,e)).controls=y.extend(!0,{},i,this.controls,i),e.rmUnusedControls&&y.each(e.controls,function(t){i[t]||delete e.controls[t]}),e},this.ui.focus=function(){var t=this.self;return t.editor.get(0).contentWindow.focus(),t},this.ui.returnRange=function(){var t,e=this.self;if(null!==e.savedRange){if(window.getSelection){0<(t=window.getSelection()).rangeCount&&t.removeAllRanges();try{t.addRange(e.savedRange)}catch(t){a.error(t)}}else window.document.createRange?window.getSelection().addRange(e.savedRange):window.document.selection&&e.savedRange.select();e.savedRange=null}},this.increaseFontSize=function(){var t,e,i,n,o;r||s?this.editorDoc.execCommand("increaseFontSize",!1,null):k?(t=this.getInternalRange(),e=this.getInternalSelection(),i=this.editorDoc.createElement("big"),!0===t.collapsed&&3===t.commonAncestorContainer.nodeType?(n=(o=t.commonAncestorContainer.nodeValue.toString()).lastIndexOf(" ",t.startOffset)+1,o=-1===o.indexOf(" ",t.startOffset)?o:o.indexOf(" ",t.startOffset),t.setStart(t.commonAncestorContainer,n),t.setEnd(t.commonAncestorContainer,o),t.surroundContents(i)):(t.surroundContents(i),e.removeAllRanges()),e.addRange(t)):a.error("Internet Explorer?")},this.decreaseFontSize=function(){var t,e,i,n,o;r||s?this.editorDoc.execCommand("decreaseFontSize",!1,null):k?(t=this.getInternalRange(),e=this.getInternalSelection(),i=this.editorDoc.createElement("small"),!0===t.collapsed&&3===t.commonAncestorContainer.nodeType?(n=(o=t.commonAncestorContainer.nodeValue.toString()).lastIndexOf(" ",t.startOffset)+1,o=-1===o.indexOf(" ",t.startOffset)?o:o.indexOf(" ",t.startOffset),t.setStart(t.commonAncestorContainer,n),t.setEnd(t.commonAncestorContainer,o),t.surroundContents(i)):(t.surroundContents(i),e.removeAllRanges()),e.addRange(t)):a.error("Internet Explorer?")},this.getContent=function(){return this.viewHTML&&this.setContent(this.original.value),this.events.filter("getContent",this.editorDoc.body.innerHTML)},this.events={_events:{},bind:function(t,e){"object"!=typeof this._events.eventName&&(this._events[t]=[]),this._events[t].push(e)},trigger:function(t,i){var n;"object"==typeof this._events.eventName&&(n=this.editor,y.each(this._events[t],function(t,e){"function"==typeof e&&e.apply(n,i)}))},filter:function(t,i){var n,o;return"object"==typeof this._events[t]&&(n=this.editor,o=Array.prototype.slice.call(arguments,1),y.each(this._events[t],function(t,e){"function"==typeof e&&(i=e.apply(n,o))})),i}},this.getElementByAttributeValue=function(t,e,i){for(var n,o=this.editorDoc.getElementsByTagName(t),a=0;a<o.length;a+=1)if(n=o[a].getAttribute(e),(n=C?n.substr(n.length-i.length):n)===i)return o[a];return!1},this.getInternalRange=function(){var t=this.getInternalSelection();return t?t.rangeCount&&0<t.rangeCount?t.getRangeAt(0):t.createRange?t.createRange():null:null},this.getInternalSelection=function(){if(this.editor.get(0).contentWindow){if(this.editor.get(0).contentWindow.getSelection)return this.editor.get(0).contentWindow.getSelection();if(this.editor.get(0).contentWindow.selection)return this.editor.get(0).contentWindow.selection}return this.editorDoc.getSelection?this.editorDoc.getSelection():this.editorDoc.selection||null},this.getRange=function(){var t=this.getSelection();if(t)if(t.rangeCount&&0<t.rangeCount)t.getRangeAt(0);else if(t.createRange)return t.createRange();return null},this.getSelection=function(){return window.getSelection?window.getSelection():window.document.selection},this.ui.grow=function(){var t=this.self,e=y(t.editorDoc.body),i=C?e[0].scrollHeight:e.height()+2+20,n=t.ui.initialHeight,i=Math.max(i,n),i=Math.min(i,t.options.maxHeight);return t.editor.attr("scrolling",i<t.options.maxHeight?"no":"auto"),e.css("overflow",i<t.options.maxHeight?"hidden":""),t.editor.get(0).height=i,t},this.init=function(t,e){var i=this,n=y(t).closest("form"),o=t.width||t.clientWidth||0,a=t.height||t.clientHeight||0;this.options=this.extendOptions(e),this.original=t,this.ui.toolbar=y(this.options.toolbarHtml),0===o&&t.cols&&t.cols,0===a&&t.rows&&(a=16*t.rows+16),this.editor=y("https:"===window.location.protocol?'<iframe src="javascript:false;"></iframe>':"<iframe></iframe>").attr("frameborder","0"),this.options.iFrameClass?this.editor.addClass(this.options.iFrameClass):this.editor.css({minHeight:(a-6).toString()+"px"}),t.id&&(e=t.id+"-wysiwyg-iframe",document.getElementById(e)||this.editor.attr("id",e)),this.editor.attr("tabindex",y(t).attr("tabindex")),this.element=y("<div/>").addClass("wysiwyg"),y(t).hide().before(this.element),this.viewHTML=!1,this.initialContent=y(t).val(),this.ui.initFrame(),this.options.resizeOptions&&y.fn.resizable&&this.element.resizable(y.extend(!0,{alsoResize:this.editor},this.options.resizeOptions)),this.options.autoSave&&n.on("submit.wysiwyg",function(){i.autoSaveFunction()}),n.on("reset.wysiwyg",function(){i.resetFunction()})},this.ui.initFrame=function(){var e,t,r=this.self;if(r.ui.appendControls(),r.element.append(r.ui.toolbar).append(y("<div>\x3c!-- --\x3e</div>").css({clear:"both"})).append(r.editor),r.editorDoc=r.innerDocument(),r.isDestroyed)return null;r.ui.designMode(),r.editorDoc.open(),r.editorDoc.write(r.options.html.replace(/INITIAL_CONTENT/,function(){return r.wrapInitialContent()})),r.editorDoc.close(),y.wysiwyg.plugin.bind(r),y(r.editorDoc).add(r.element).trigger("initFrame.wysiwyg"),y(r.editorDoc).on("click.wysiwyg",function(t){r.ui.checkTargets(t.target||t.srcElement)}),setInterval(function(){var t=null;try{var e=r.getInternalRange();e&&(t={range:e,parent:"endContainer"in e?e.endContainer.parentNode:e.parentElement(),width:("startOffset"in e?e.startOffset-e.endOffset:e.boundingWidth)||0})}catch(t){a.error(t)}t&&0===t.width&&!r.editorDoc.rememberCommand&&r.ui.checkTargets(t.parent)},400),y(r.original).focus(function(){0===y(this).filter(":visible").length||s||r.ui.focus()}),y(r.editorDoc).keydown(function(t){return 8===t.keyCode&&/^<([\w]+)[^>]*>(<br\/?>)?<\/\1>$/.test(r.getContent())?(t.stopPropagation(),!1):!(r.editorDoc.rememberCommand=!1)}),C||y(r.editorDoc).keydown(function(t){var e,i;if(t.ctrlKey||t.metaKey)for(e in r.options.controls)if((i=r.options.controls[e]).hotkey&&i.hotkey.ctrl&&t.keyCode===i.hotkey.key)return r.triggerControl.apply(r,[e,i]),!1;return!0}),r.options.brIE&&y(r.editorDoc).keydown(function(t){if(13!==t.keyCode)return!0;if(C||s){t=r.getRange();t?(t.pasteHTML("<br/>"),t.collapse(!1),t.select()):r.insertHtml("<br/>")}else{t=r.editorDoc.getSelection();if(!(t&&t.getRangeAt&&t.rangeCount))return!0;var e=t.getRangeAt(0);if(!e)return!0;e.deleteContents();for(var i,n,o=document.createElement("div"),a=(o.innerHTML="<br/>",document.createDocumentFragment());i=o.firstChild;)n=a.appendChild(i);e.insertNode(a),n&&((e=e.cloneRange()).setStartAfter(n),e.collapse(!0),t.removeAllRanges(),t.addRange(e))}return!1}),r.options.plugins.rmFormat.rmMsWordMarkup&&y(r.editorDoc).on("keyup.wysiwyg",function(t){(t.ctrlKey||t.metaKey)&&86===t.keyCode&&y.wysiwyg.rmFormat&&("object"==typeof r.options.plugins.rmFormat.rmMsWordMarkup?y.wysiwyg.rmFormat.run(r,{rules:{msWordMarkup:r.options.plugins.rmFormat.rmMsWordMarkup}}):y.wysiwyg.rmFormat.run(r,{rules:{msWordMarkup:{enabled:!0}}}))}),r.options.autoSave&&y(r.editorDoc).keydown(function(){r.autoSaveFunction()}).keyup(function(){r.autoSaveFunction()}).mousedown(function(){r.autoSaveFunction()}).on(y.support.noCloneEvent?"input.wysiwyg":"paste.wysiwyg",function(){r.autoSaveFunction()}),r.options.autoGrow?(null!==r.options.initialMinHeight?r.ui.initialHeight=r.options.initialMinHeight:r.ui.initialHeight=y(r.editorDoc).height(),y(r.editorDoc.body).css("border","1px solid white"),t=function(){r.ui.grow()},y(r.editorDoc).keyup(t),y(r.editorDoc).on("editorRefresh.wysiwyg",t),r.ui.grow()):(t=y(r.editor).parents(".dynamicText").parent(),t=y(r.editor).height()-(t.find(".toolbar").outerHeight(!0)-21),y(r.editor).css("min-height",t+"px").height(t));function i(t){if(C)try{e=r.editorDoc.createStyleSheet(t),y(e).attr({media:"all"})}catch(t){}else e=y("<link/>").attr({href:t,media:"all",rel:"stylesheet"}),y(r.editorDoc).find("head").append(e)}var n;if(r.options.css)if(String===r.options.css.constructor)i(r.options.css);else if("[object Array]"===Object.prototype.toString.call(r.options.css))for(var o=0;o<r.options.css.length;o++)i(r.options.css[o]);else r.timers.initFrame_Css=window.setTimeout(function(){y(r.editorDoc.body).css(r.options.css)},0);0===r.initialContent.length&&("function"==typeof r.options.initialContent?r.setContent(r.options.initialContent()):r.setContent(r.options.initialContent)),0<r.options.maxLength&&y(r.editorDoc).keydown(function(t){y(r.editorDoc).text().length>=r.options.maxLength&&-1===y.inArray(t.which,r.validKeyCodes)&&t.preventDefault()}),y.each(r.options.events,function(t,e){y(r.editorDoc).on(t+".wysiwyg",function(t){e.apply(r.editorDoc,[t,r])})}),C?y(r.editorDoc).on("beforedeactivate.wysiwyg",function(){r.savedRange=r.getInternalRange()}):y(r.editorDoc).on("blur.wysiwyg",function(){r.savedRange=r.getInternalRange()}),y(r.editorDoc.body).addClass("wysiwyg"),r.options.events&&r.options.events.save&&(t=r.options.events.save,y(r.editorDoc).on("keyup.wysiwyg",t),y(r.editorDoc).on("change.wysiwyg",t),y.support.noCloneEvent?y(r.editorDoc).on("input.wysiwyg",t):(y(r.editorDoc).on("paste.wysiwyg",t),y(r.editorDoc).on("cut.wysiwyg",t))),r.options.xhtml5&&r.options.unicode&&(n={ne:8800,le:8804,para:182,xi:958,darr:8595,nu:957,oacute:243,Uacute:218,omega:969,prime:8242,pound:163,igrave:236,thorn:254,forall:8704,emsp:8195,lowast:8727,brvbar:166,alefsym:8501,nbsp:160,delta:948,clubs:9827,lArr:8656,Omega:937,Auml:196,cedil:184,and:8743,plusmn:177,ge:8805,raquo:187,uml:168,equiv:8801,laquo:171,rdquo:8221,Epsilon:917,divide:247,fnof:402,chi:967,Dagger:8225,iacute:237,rceil:8969,sigma:963,Oslash:216,acute:180,frac34:190,lrm:8206,upsih:978,Scaron:352,part:8706,exist:8707,nabla:8711,image:8465,prop:8733,zwj:8205,omicron:959,aacute:225,Yuml:376,Yacute:221,weierp:8472,rsquo:8217,otimes:8855,kappa:954,thetasym:977,harr:8596,Ouml:214,Iota:921,ograve:242,sdot:8901,copy:169,oplus:8853,acirc:226,sup:8835,zeta:950,Iacute:205,Oacute:211,crarr:8629,Nu:925,bdquo:8222,lsquo:8216,apos:39,Beta:914,eacute:233,egrave:232,lceil:8968,Kappa:922,piv:982,Ccedil:199,ldquo:8220,Xi:926,cent:162,uarr:8593,hellip:8230,Aacute:193,ensp:8194,sect:167,Ugrave:217,aelig:230,ordf:170,curren:164,sbquo:8218,macr:175,Phi:934,Eta:919,rho:961,Omicron:927,sup2:178,euro:8364,aring:229,Theta:920,mdash:8212,uuml:252,otilde:245,eta:951,uacute:250,rArr:8658,nsub:8836,agrave:224,notin:8713,ndash:8211,Psi:936,Ocirc:212,sube:8838,szlig:223,micro:181,not:172,sup1:185,middot:183,iota:953,ecirc:234,lsaquo:8249,thinsp:8201,sum:8721,ntilde:241,scaron:353,cap:8745,atilde:227,lang:10216,__replacement:65533,isin:8712,gamma:947,Euml:203,ang:8736,upsilon:965,Ntilde:209,hearts:9829,Alpha:913,Tau:932,spades:9824,dagger:8224,THORN:222,int:8747,lambda:955,Eacute:201,Uuml:220,infin:8734,rlm:8207,Aring:197,ugrave:249,Egrave:200,Acirc:194,rsaquo:8250,ETH:208,oslash:248,alpha:945,Ograve:210,Prime:8243,mu:956,ni:8715,real:8476,bull:8226,beta:946,icirc:238,eth:240,prod:8719,larr:8592,ordm:186,perp:8869,Gamma:915,reg:174,ucirc:251,Pi:928,psi:968,tilde:732,asymp:8776,zwnj:8204,Agrave:192,deg:176,AElig:198,times:215,Delta:916,sim:8764,Otilde:213,Mu:924,uArr:8657,circ:710,theta:952,Rho:929,sup3:179,diams:9830,tau:964,Chi:935,frac14:188,oelig:339,shy:173,or:8744,dArr:8659,phi:966,iuml:239,Lambda:923,rfloor:8971,iexcl:161,cong:8773,ccedil:231,Icirc:206,frac12:189,loz:9674,rarr:8594,cup:8746,radic:8730,frasl:8260,euml:235,OElig:338,hArr:8660,Atilde:195,Upsilon:933,there4:8756,ouml:246,oline:8254,Ecirc:202,yacute:253,auml:228,permil:8240,sigmaf:962,iquest:191,empty:8709,pi:960,Ucirc:219,supe:8839,Igrave:204,yen:165,rang:10217,trade:8482,lfloor:8970,minus:8722,Zeta:918,sub:8834,epsilon:949,yuml:255,Sigma:931,Iuml:207,ocirc:244},r.events.on("getContent",function(t){return t.replace(/&(?:amp;)?(?!amp|lt|gt|quot)([a-z][a-z0-9]*);/gi,function(t,e){return n[e]||(e=e.toLowerCase(),n[e])||(e="__replacement"),String.fromCharCode(n[e])})})),y(r.original).trigger("ready.jwysiwyg",[r.editorDoc,r])},this.innerDocument=function(){var t=this.editor.get(0);if("iframe"===t.nodeName.toLowerCase()){if(t.contentDocument)return t.contentDocument;if(t.contentWindow)return t.contentWindow.document;if(this.isDestroyed)return null;a.error("Unexpected error in innerDocument")}return t},this.insertHtml=function(t){var e;return t&&0!==t.length&&(C?(this.ui.focus(),this.editorDoc.execCommand("insertImage",!1,"http://images.com/image.jpg"),(e=this.getElementByAttributeValue("img","src","http://images.com/image.jpg"))&&y(e).replaceWith(t)):r?1===y(t).length?((e=this.getInternalRange()).deleteContents(),e.insertNode(y(t).get(0))):this.editorDoc.execCommand("insertHTML",!1,t):this.editorDoc.execCommand("insertHTML",!1,t)||(this.editor.focus(),this.editorDoc.execCommand("insertHTML",!1,t)),this.saveContent()),this},this.parseControls=function(){var i=this;return y.each(this.options.controls,function(e,t){y.each(t,function(t){if(-1===y.inArray(t,i.availableControlProperties))throw e+'["'+t+'"]: property "'+t+'" not exists in Wysiwyg.availableControlProperties'})}),this.options.parseControls?this.options.parseControls.call(this):this.options.controls},this.removeFormat=function(){return C&&this.ui.focus(),this.options.removeHeadings&&this.editorDoc.execCommand("formatBlock",!1,"<p>"),this.editorDoc.execCommand("removeFormat",!1,null),this.editorDoc.execCommand("unlink",!1,null),y.wysiwyg.rmFormat&&y.wysiwyg.rmFormat.enabled&&("object"==typeof this.options.plugins.rmFormat.rmMsWordMarkup?y.wysiwyg.rmFormat.run(this,{rules:{msWordMarkup:this.options.plugins.rmFormat.rmMsWordMarkup}}):y.wysiwyg.rmFormat.run(this,{rules:{msWordMarkup:{enabled:!0}}})),this},this.ui.removeHoverClass=function(){y(this).removeClass("wysiwyg-button-hover")},this.resetFunction=function(){this.setContent(this.initialContent)},this.saveContent=function(){var t,e;if(!this.viewHTML)return this.original&&(e=this.getContent(),this.options.rmUnwantedBr&&(e=e.replace(/<br\/?>$/,"")),this.options.replaceDivWithP&&((t=y("<div/>").addClass("temp").append(e)).children("div").each(function(){var t,e=y(this),i=e.find("p");if(0===i.length){if(i=y("<p></p>"),0<this.attributes.length)for(t=0;t<this.attributes.length;t+=1)i.attr(this.attributes[t].name,e.attr(this.attributes[t].name));i.append(e.html()),e.replaceWith(i)}}),e=t.html()),y(this.original).val(e).change(),this.options.events)&&this.options.events.save&&this.options.events.save.call(this),this},this.setContent=function(t){return this.editorDoc.body.innerHTML=t,this.saveContent(),this},this.triggerControl=function(t,e){var t=e.command||t,i=e.arguments||[];if(e.exec)e.exec.apply(this);else{this.ui.focus(),this.ui.withoutCss();try{this.editorDoc.execCommand(t,!1,i)}catch(t){a.error(t)}}this.options.autoSave&&this.autoSaveFunction()},this.triggerControlCallback=function(t){y(window).trigger("trigger-"+t+".wysiwyg",[this])},this.ui.withoutCss=function(){var e=this.self;if(r)try{e.editorDoc.execCommand("styleWithCSS",!1,!1)}catch(t){try{e.editorDoc.execCommand("useCSS",!1,!0)}catch(t){}}return e},this.wrapInitialContent=function(){return this.initialContent}}y.wysiwyg={messages:{noObject:"Something goes wrong, check object"},addControl:function(t,i,n){return t.each(function(){var t=y(this).data("wysiwyg"),e={};if(!t)return this;e[i]=y.extend(!0,{visible:!0,custom:!0},n),y.extend(!0,t.options.controls,e),e=y(t.options.toolbarHtml),t.ui.toolbar.replaceWith(e),t.ui.toolbar=e,t.ui.appendControls()})},clear:function(t){return t.each(function(){var t=y(this).data("wysiwyg");if(!t)return this;t.setContent("")})},console:a,destroy:function(t){return t.each(function(){var t=y(this).data("wysiwyg");if(!t)return this;t.destroy()})},document:function(t){t=t.data("wysiwyg");if(t)return y(t.editorDoc)},focus:function(t){var e=t.data("wysiwyg");if(e)return e.ui.focus(),t},getContent:function(t){t=t.data("wysiwyg");if(t)return t.getContent()},getSelection:function(t){t=t.data("wysiwyg");if(t)return t.getRangeText()},init:function(t,i){return t.each(function(){var t,e=y.extend(!0,{},i);"textarea"!==this.nodeName.toLowerCase()||y(this).data("wysiwyg")||((t=new o).init(this,e),y.data(this,"wysiwyg",t),y(t.editorDoc).trigger("afterInit.wysiwyg"))})},insertHtml:function(t,e){return t.each(function(){var t=y(this).data("wysiwyg");if(!t)return this;t.insertHtml(e)})},plugin:{listeners:{},bind:function(o){var a=this;y.each(this.listeners,function(t,e){for(var i,n=0;n<e.length;n+=1)i=a.parseName(e[n]),y(o.editorDoc).on(t+".wysiwyg",{plugin:i},function(t){y.wysiwyg[t.data.plugin.name][t.data.plugin.method].apply(y.wysiwyg[t.data.plugin.name],[o])})})},exists:function(t){return"string"==typeof t&&(t=this.parseName(t),!(!y.wysiwyg[t.name]||!y.wysiwyg[t.name][t.method]))},listen:function(t,e){var i=this.parseName(e);return!(!y.wysiwyg[i.name]||!y.wysiwyg[i.name][i.method]||(this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e),0))},parseName:function(t){return"string"==typeof t&&!((t=t.split(".")).length<2)&&{name:t[0],method:t[1]}},register:function(e){return e.name||a.error("Plugin name missing"),y.each(y.wysiwyg,function(t){t===e.name&&a.error("Plugin with name '"+e.name+"' was already registered")}),y.wysiwyg[e.name]=e,!0}},removeFormat:function(t){return t.each(function(){var t=y(this).data("wysiwyg");if(!t)return this;t.removeFormat()})},save:function(t){return t.each(function(){var t=y(this).data("wysiwyg");if(!t)return this;t.saveContent()})},selectAll:function(t){var e,t=t.data("wysiwyg");if(!t)return this;e=t.editorDoc.body,window.getSelection?t.getInternalSelection().selectAllChildren(e):((t=e.createTextRange()).moveToElementText(e),t.select())},setContent:function(t,e){return t.each(function(){var t=y(this).data("wysiwyg");if(!t)return this;t.setContent(e)})},triggerControl:function(t,e){return t.each(function(){var t=y(this).data("wysiwyg");if(!t)return this;t.controls[e]||a.error("Control '"+e+"' not exists"),t.triggerControl.apply(t,[e,t.controls[e]])})},support:{prop:t},utils:{extraSafeEntities:[["<",">","'",'"'," "],[32]],encodeEntities:function(t){var i,n=this,o=[];return 0===this.extraSafeEntities[1].length&&y.each(this.extraSafeEntities[0],function(t,e){n.extraSafeEntities[1].push(e.charCodeAt(0))}),i=t.split(""),y.each(i,function(t){var e=i[t].charCodeAt(0);y.inArray(e,n.extraSafeEntities[1])&&(e<65||127<e||90<e&&e<97)?o.push("&#"+e+";"):o.push(i[t])}),o.join("")}}},y.wysiwyg.dialog=function(e,t){var i=e&&e.options&&e.options.dialog?e.options.dialog:t.theme||"default",n=new y.wysiwyg.dialog.createDialog(i),o=this,a=y(o);return this.options={modal:!0,draggable:!0,title:"Title",content:"Content",width:"auto",height:"auto",zIndex:x.settings.zIndex.popup,open:!1,close:!1},this.isOpen=!1,y.extend(this.options,t),this.object=n,this.open=function(){this.isOpen=!0,n.init.apply(o,[]);var t=n.show.apply(o,[]);a.trigger("afterOpen",[t])},this.show=function(){this.isOpen=!0,a.trigger("beforeShow");n.show.apply(o,[]);a.trigger("afterShow")},this.hide=function(){this.isOpen=!1,a.trigger("beforeHide");var t=n.hide.apply(o,[]);a.trigger("afterHide",[t])},this.close=function(){this.isOpen=!1;var t=n.hide.apply(o,[]);a.trigger("beforeClose",[t]),n.destroy.apply(o,[]),a.trigger("afterClose",[t]),e.ui.focus()},this.options.open&&a.on("afterOpen",this.options.open),this.options.close&&a.on("afterClose",this.options.close),this},y.extend(!0,y.wysiwyg.dialog,{_themes:{},_theme:"",register:function(t,e){y.wysiwyg.dialog._themes[t]=e},deregister:function(t){delete y.wysiwyg.dialog._themes[t]},createDialog:function(t){return new y.wysiwyg.dialog._themes[t]},getDimensions:function(){var t=document.body.scrollWidth,e=document.body.scrollHeight;return[t,e=s?Math.max(y(document).height(),y(window).height(),document.documentElement.clientHeight):e]}}),y(function(){y.ui&&y.wysiwyg.dialog.register("jqueryui",function(){var i=this;this._$dialog=null,this.init=function(){var t=this.options.content,t=("object"==typeof t&&("function"==typeof t.html?t=t.html():"function"==typeof t.toString&&(t=t.toString())),i._$dialog=y("<div></div>").attr("title",this.options.title).html(t),"auto"==this.options.height?300:this.options.height),e="auto"==this.options.width?450:this.options.width;return i._$dialog.dialog({modal:this.options.modal,draggable:this.options.draggable,height:t,width:e}),i._$dialog},this.show=function(){return i._$dialog.dialog("open"),i._$dialog},this.hide=function(){return i._$dialog.dialog("close"),i._$dialog},this.destroy=function(){return i._$dialog.dialog("destroy"),i._$dialog}}),y.wysiwyg.dialog.register("default",function(){var o=this;this._$dialog=null,this.init=function(){var t=this,e=this.options.content,i=("object"==typeof e&&("function"==typeof e.html?e=e.html():"function"==typeof e.toString&&(e=e.toString())),o._$dialog=y('<div class="wysiwyg-dialog"></div>').css({"z-index":this.options.zIndex}),y('<div class="wysiwyg-dialog-topbar"><div class="wysiwyg-dialog-close-wrapper"></div><div class="wysiwyg-dialog-title">'+this.options.title+"</div></div>")),n=y('<a href="#" class="wysiwyg-dialog-close-button">X</a>'),n=(n.click(function(){t.close()}),i.find(".wysiwyg-dialog-close-wrapper").prepend(n),y('<div class="wysiwyg-dialog-content">'+e+"</div>")),e=(o._$dialog.append(i).append(n),"auto"==this.options.height?300:this.options.height),i="auto"==this.options.width?450:this.options.width;return o._$dialog.hide().css({width:i,height:e,left:(y(window).width()-i)/2,top:(y(window).height()-e)/3}),y("body").append(o._$dialog),o._$dialog},this.show=function(){var t,a;return this.options.modal&&(t=y.wysiwyg.dialog.getDimensions(),t=y('<div class="wysiwyg-dialog-modal-div"></div>').css({width:t[0],height:t[1]}),o._$dialog.wrap(t)),this.options.draggable&&(a=!1,o._$dialog.find("div.wysiwyg-dialog-topbar").on("mousedown",function(t){t.preventDefault(),y(this).css({cursor:"move"});var e=y(this),i=y(this).parents(".wysiwyg-dialog"),n=t.pageX-parseInt(i.css("left"),10),o=t.pageY-parseInt(i.css("top"),10);a=!0,y(this).css({cursor:"move"}),y(document).on("mousemove",function(t){t.preventDefault(),a&&i.css({top:t.pageY-o,left:t.pageX-n})}).on("mouseup",function(t){t.preventDefault(),a=!1,e.css({cursor:"auto"}),y(document).off("mousemove").off("mouseup")})})),o._$dialog.show(),o._$dialog},this.hide=function(){return o._$dialog.hide(),o._$dialog},this.destroy=function(){return this.options.modal&&o._$dialog.unwrap(),this.options.draggable&&o._$dialog.find("div.wysiwyg-dialog-topbar").off("mousedown"),o._$dialog.remove(),o._$dialog}})}),y.fn.wysiwyg=function(t){var e,i=arguments;return void 0!==y.wysiwyg[t]?(i=Array.prototype.concat.call([i[0]],[this],Array.prototype.slice.call(i,1)),y.wysiwyg[t].apply(y.wysiwyg,Array.prototype.slice.call(i,1))):"object"!=typeof t&&t?y.wysiwyg.plugin.exists(t)?(e=y.wysiwyg.plugin.parseName(t),i=Array.prototype.concat.call([i[0]],[this],Array.prototype.slice.call(i,1)),y.wysiwyg[e.name][e.method].apply(y.wysiwyg[e.name],Array.prototype.slice.call(i,1))):void a.error("Method '"+t+"' does not exist on jQuery.wysiwyg.\nTry to include some extra controls or plugins"):(Array.prototype.unshift.call(i,this),y.wysiwyg.init.apply(y.wysiwyg,i))},y.fn.getWysiwyg=function(){return this.data("wysiwyg")}}(_jq,x5engine),!function(u){"use strict";if(void 0===u.wysiwyg)throw"wysiwyg.link.js depends on $.wysiwyg";u.wysiwyg.controls||(u.wysiwyg.controls={});var h=x5engine.l10n.get,p=/MSIE/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/MSHTML/i.test(navigator.userAgent);/opera/i.test(navigator.userAgent),/firefox/i.test(navigator.userAgent),/safari/i.test(navigator.userAgent)&&/chrome/i.test(navigator.userAgent);u.wysiwyg.controls.link={init:function(o){var t,a,r,e,i,n,s,l=x5engine.utils.trim,c={legend:l(h("wysiwyg_add_link","Insert Link")," :"),url:"URL",title:l(h("wysiwyg_image_title","Title")," :"),target:"Target",submit:l(h("wysiwyg_add_link","Insert Link")," :"),reset:l(h("dynamicobj_cancel","Cancel")," :")},d='<form class="wysiwyg"><fieldset><div class="form-row"><label for="linkhref">{url}:</label><div class="form-row-value"><input type="text" name="linkhref" value=""/></div></div><div class="form-row"><label for="linkhref">{title}:</label><div class="form-row-value"><input type="text" name="linktitle" value=""/></div></div><div class="form-row"><label for="linkhref">{target}:</label><div class="form-row-value"><input type="text" name="linktarget" value=""/></div></div><div class="form-row" style="text-align: center;"><input type="submit" class="button" value="{submit}"/> <input type="reset" value="{reset}"/></fieldset></form></div>';for(e in c)u.wysiwyg.i18n&&((i=u.wysiwyg.i18n.t(c[e],"dialogs.link"))===c[e]&&(i=u.wysiwyg.i18n.t(c[e],"dialogs")),c[e]=i),i=new RegExp("{"+e+"}","g"),d=d.replace(i,c[e]);(a={self:o.dom.getElement("a"),href:"http://",title:"",target:""}).self&&(a.href=a.self.href||a.href,a.title=a.self.title||"",a.target=a.self.target||""),u.wysiwyg.dialog?(s=new u.wysiwyg.dialog(o,{title:c.legend,content:d}),p&&o.saveSelection(),u(s).on("afterOpen",function(t,e){var i=u("form.wysiwyg");i.find("input[name=linkhref]").val(a.href),i.find("input[name=linktitle]").val(a.title),i.find("input[name=linktarget]").val(a.target),i.find("[type=submit]").click(function(t){p&&o.restoreSelection(),t.preventDefault();var e,t=u('form.wysiwyg input[name="linkhref"]').val(),i=u('form.wysiwyg input[name="linktitle"]').val(),n=u('form.wysiwyg input[name="linktarget"]').val();return o.options.controlLink.forceRelativeUrls&&(e=window.location.protocol+"//"+window.location.hostname,0===t.indexOf(e))&&(t=t.substr(e.length)),a.self?"string"==typeof t&&(0<t.length?u(a.self).attr("href",t).attr("title",i).attr("target",n):u(a.self).replaceWith(a.self.innerHTML)):(p&&o.ui.returnRange(),r=o.getRangeText(),e=o.dom.getElement("img"),r&&0<r.length||e?(p&&o.ui.focus(),"string"==typeof t&&(0<t.length?o.editorDoc.execCommand("createLink",!1,t):o.editorDoc.execCommand("unlink",!1,null)),a.self=o.dom.getElement("a"),u(a.self).attr("href",t).attr("title",i),u(a.self).attr("target",n)):o.options.messages.nonSelection&&window.alert(o.options.messages.nonSelection)),o.saveContent(),s.close(),!1}),u("form.wysiwyg").find("[type=reset]").click(function(){s.close()})}),s.open()):(a.self?(t=window.prompt("URL",a.href),"string"==typeof(t=o.options.controlLink.forceRelativeUrls&&(n=window.location.protocol+"//"+window.location.hostname,0===t.indexOf(n))?t.substr(n.length):t)&&(0<t.length?u(a.self).attr("href",t):u(a.self).replaceWith(a.self.innerHTML))):(r=o.getRangeText(),l=o.dom.getElement("img"),r&&0<r.length||l?p?(o.ui.focus(),o.editorDoc.execCommand("createLink",!0,null)):(t=window.prompt(c.url,a.href),"string"==typeof(t=o.options.controlLink.forceRelativeUrls&&(n=window.location.protocol+"//"+window.location.hostname,0===t.indexOf(n))?t.substr(n.length):t)&&(0<t.length?o.editorDoc.execCommand("createLink",!1,t):o.editorDoc.execCommand("unlink",!1,null))):o.options.messages.nonSelection&&window.alert(o.options.messages.nonSelection)),o.saveContent()),u(o.editorDoc).trigger("editorRefresh.wysiwyg")}},u.wysiwyg.createLink=function(t,o,a){return t.each(function(){var t,e,i,n=u(this).data("wysiwyg");return n&&o&&0!==o.length&&(t=n.getRangeText(),e=!1,(i=n.getInternalRange())&&i.extractContents&&null!==(i=i.cloneContents())&&i.childNodes&&0<i.childNodes.length&&(e=!0),t&&0<t.length||e?(p&&n.ui.focus(),n.editorDoc.execCommand("unlink",!1,null),n.editorDoc.execCommand("createLink",!1,o)):a?n.insertHtml('<a href="'+o+'">'+a+"</a>"):n.options.messages.nonSelection&&window.alert(n.options.messages.nonSelection)),this})}}(_jq),!function(v,w){"use strict";if(void 0===v.wysiwyg)throw"wysiwyg.image.js depends on $.wysiwyg";v.wysiwyg.controls||(v.wysiwyg.controls={});var c=w.l10n.get,d=/MSIE/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/MSHTML/i.test(navigator.userAgent);/opera/i.test(navigator.userAgent),/firefox/i.test(navigator.userAgent),/safari/i.test(navigator.userAgent)&&/chrome/i.test(navigator.userAgent);v.wysiwyg.controls.image={groupIndex:6,visible:!0,exec:function(){v.wysiwyg.controls.image.init(this)},tags:["img"],tooltip:"Insert image",init:function(i){var n,t,e,o=this,a=w.utils.trim,r={alt:"",self:i.dom?i.dom.getElement("img"):null,src:"http://",title:""},s={legend:a(c("wysiwyg_image","Insert Image")," :"),preview:a(c("wysiwyg_preview","Preview")," :"),url:a(c("wysiwyg_image_url","URL")," :"),local_file:a(c("wysiwyg_local_file","Local file")," :"),title:a(c("wysiwyg_image_title","Title")," :"),description:a(c("wysiwyg_image_description","Description")," :"),width:a(c("wysiwyg_image_width","Width")," :"),height:a(c("wysiwyg_image_height","Height")," :"),original:a(c("wysiwyg_image_original","Original W x H")," :"),float:a(c("wysiwyg_image_float","Float")," :"),floatNone:a(c("wysiwyg_image_float_none","None")," :"),floatLeft:a(c("wysiwyg_image_float_left","Left")," :"),floatRight:a(c("wysiwyg_image_float_right","Right")," :"),submit:a(c("form_submit")," :"),reset:a(c("form_reset")," :"),fileManagerIcon:"Select file from server"},l='<form class="wysiwyg" id="wysiwyg-addImage"><fieldset><div class="form-row"><label for="file_type_local"><input type="radio" name="file_type" id="file_type_local" value="local" checked/>{local_file}:</label><div class="form-row-value"><input type="file" name="file" id="file"/></div></div><div class="form-row"><label for="file_type_remote"><input type="radio" name="file_type" id="file_type_remote" value="remote" />{url}:</label><div class="form-row-value"><input type="text" name="src" value="" disabled/></div></div><div class="form-row"><label for="name">{title}:</label><div class="form-row-value"><input type="text" name="imgtitle" value=""/></div></div><div class="form-row"><label for="description">{description}:</label><div class="form-row-value"><input type="text" name="description" value=""/></div></div><div class="form-row"><label for="width">{width} x {height}:</label><div class="form-row-value"><input type="text" name="width" value="" class="width-small"/> x <input type="text" name="height" value="" class="width-small"/></div></div><div class="form-row"><label for="name">{float}:</label><div class="form-row-value"><select name="float"><option value="">{floatNone}</option><option value="left">{floatLeft}</option><option value="right">{floatRight}</option></select></div></div><div class="form-row form-row-last"><label for="name"></label><div class="form-row-value"><input type="submit" class="button" value="{submit}"/> <input type="reset" value="{reset}"/></div></div></fieldset></form>';for(t in s)v.wysiwyg.i18n&&((e=v.wysiwyg.i18n.t(s[t],"dialogs.image"))===s[t]&&(e=v.wysiwyg.i18n.t(s[t],"dialogs")),s[t]=e),e=new RegExp("{"+t+"}","g"),l=l.replace(e,s[t]);r.self&&(r.src=r.self.src||"",r.alt=r.self.alt||"",r.title=r.self.title||"",r.width=r.self.width||"",r.height=r.self.height||"",r.styleFloat=v(r.self).css("float")),n=new v.wysiwyg.dialog(i,{title:s.legend,content:l,width:650}),d&&i.saveSelection(),v(n).on("afterOpen",function(t,e){e.find("form#wysiwyg-addImage").submit(function(t){return d&&i.restoreSelection(),t.preventDefault(),o.processInsert(e.container,i,r),n.close(),!1}),v.wysiwyg.fileManager&&v("div.wysiwyg-fileManager").on("click",function(){v.wysiwyg.fileManager.init(function(t){e.find("input[name=src]").val(t),e.find("input[name=src]").trigger("change")})}),v("input:reset",e).click(function(t){return n.close(),!1}),v("fieldset",e).click(function(t){t.stopPropagation()}),o.makeForm(e,r)}),n.open(),v(i.editorDoc).trigger("editorRefresh.wysiwyg")},processInsert:function(t,e,i){function n(t){i.self?(v(i.self).attr("src",t).attr("title",d).attr("alt",u).css("float",g),h.toString().match(/^[0-9]+(px|%)?$/)?v(i.self).css("width",h):v(i.self).css("width",""),p.toString().match(/^[0-9]+(px|%)?$/)?v(i.self).css("height",p):v(i.self).css("height",""),e.saveContent()):((o=h.toString().match(/^[0-9]+(px|%)?$/))&&(o[1]?f.push("width: "+h+";"):f.push("width: "+h+"px;")),(o=p.toString().match(/^[0-9]+(px|%)?$/))&&(o[1]?f.push("height: "+p+";"):f.push("height: "+p+"px;")),0<g.length&&f.push("float: "+g+";"),0<f.length&&(b=' style="'+f.join(" ")+'"'),o="<img src='"+t+"' title='"+d+"' alt='"+u+"'"+b+"/>",e.insertHtml(o))}var o,a,r,s,l,c=v('input[name="src"]',t).val(),d=v('input[name="imgtitle"]',t).val(),u=v('input[name="description"]',t).val(),h=v('input[name="width"]',t).val(),p=v('input[name="height"]',t).val(),g=v('select[name="float"]',t).val(),m=v('input[name="file"]',t),f=[],b="";v("#file_type_local",t).prop("checked")?e.options.imageuploadurl?window.FileReader?((a=new FileReader).onload=function(){n(a.result)},a.readAsDataURL(m.get(0).files[0])):w.settings.islocal?alert(w.l10n.get("blog_offline_message")):(l=m.val(),r=v('<iframe id="upload_iframe" />'),s=!1,"jpeg"!=(l="jpg"==(l=l.substr(l.lastIndexOf(".")+1))?"jpeg":l)&&"png"!=l&&"gif"!=l&&"bmp"!=l?alert("Cannot upload the image: unsupported format."):(l="image/"+l,r.load(function(){var t;s?((t=r.contents().find("body").text()).length&&n("data:"+l+";base64,"+t),r.remove()):(t=v('<form enctype="multipart/form-data" method="post" action="'+e.options.imageuploadurl+'" />'),r.contents().find("body").append(t),t.append(m).submit(function(){s=!0}).submit())}),v("body").append(r),r.attr("src","#"))):alert("Cannot upload the image: upload url not found."):v("#file_type_remote",t).prop("checked")&&n(c)},makeForm:function(t,e){return t.find("input[name=src]").val(e.src),t.find("input[name=imgtitle]").val(e.title),t.find("input[name=description]").val(e.alt),t.find('input[name="width"]').val(e.width),t.find('input[name="height"]').val(e.height),t.find('select[name="float"]').val(e.styleFloat),t.find("img").attr("src",e.src),t.find("input[type=radio]").click(function(){("local"==v(this).attr("value")?(t.find('[name="file"]').removeAttr("disabled"),t.find('[name="src"]')):(t.find('[name="src"]').removeAttr("disabled").focus(),t.find('[name="file"]'))).attr("disabled","true")}),t}},v.wysiwyg.insertImage=function(t,n,o){return t.each(function(){var t,e,i=v(this).data("wysiwyg");if(i&&n&&0!==n.length){if(d&&i.ui.focus(),o){if(i.editorDoc.execCommand("insertImage",!1,"http://emptyvalue"),t=i.getElementByAttributeValue("img","src","http://emptyvalue"))for(e in t.src=n,o)o.hasOwnProperty(e)&&t.setAttribute(e,o[e])}else i.editorDoc.execCommand("insertImage",!1,n);i.saveContent(),v(i.editorDoc).trigger("editorRefresh.wysiwyg")}return this})}}(_jq,x5engine),!function(B,H){"use strict";function R(t,e){for(var i=t.classList,n=0;n<e.length;n++)i.add(e[n])}function N(t,e){for(var i=t.classList,n=0;n<e.length;n++)i.remove(e[n])}function a(o){function e(t){a.classList.toggle("restore-visibility",!t),a.classList.toggle("screen-reader-only",t),a.classList.toggle("screen-reader-only-focused",!t)}function t(t){t.addEventListener("focus",function(){e(!1)}),t.addEventListener("blur",function(){e(!0)})}var n=o.getElementsByClassName(W.classes.slide),i=o.getElementsByClassName(W.classes.container)[0],a=o.getElementsByClassName(W.classes.ctrlContainer)[0],r=!!a&&a.getElementsByClassName(W.classes.radioBar)[0],s=!!a&&a.getElementsByClassName(W.classes.radioBarNext)[0],l=!!a&&a.getElementsByClassName(W.classes.radioBarPrev)[0],c=!!a&&a.getElementsByClassName(W.classes.btnNext)[0],d=!!a&&a.getElementsByClassName(W.classes.btnPrev)[0],u=!!a&&a.getElementsByClassName(W.classes.radioSlide),h=(W.radio.visibleNumber-1)/2,p=n.length-h-1,g=!!o.getElementsByClassName(W.classes.noElementEffect).length;i.addEventListener("mouseenter",function(){a.classList.toggle("screen-reader-only",!1),c&&c.classList.toggle("screen-reader-only",!1),d&&d.classList.toggle("screen-reader-only",!1)}),i.addEventListener("mouseleave",function(){a.classList.toggle("screen-reader-only",!0),c&&c.classList.toggle("screen-reader-only",!0),d&&d.classList.toggle("screen-reader-only",!0)});if(c&&t(c),d&&t(d),u)for(var m=0;m<u.length;m++)t(u[m]);function f(t,e,i){N(n[t.last],[W.classes.slideOut,W.classes.slideOut+W.classes.prev,W.classes.slideOut+W.classes.next]),N(n[t.current],[W.classes.defaultSlide,W.classes.slideIn,W.classes.slideIn+W.classes.prev,W.classes.slideIn+W.classes.next]),t.last=t.current,t.current=e,i=i||function(t,e){e-=t;return 0<e^Math.abs(e)>n.length/2?W.classes.next:W.classes.prev}(t.last,t.current),R(n[t.last],[W.classes.slideOut,W.classes.slideOut+i]),R(n[t.current],[W.classes.slideIn,W.classes.slideIn+i]),B(n[t.current]).css("visibility","visible")}function b(t,e){W.config.radioSliding&&W.config.radioSliding.enabled&&n.length>W.radio.visibleNumber&&(e=I(e))!==t.radioBarIndex&&(t.radioBarIndex=e,M(t))}function v(t){return 0==(t=(h-t)*W.radio.size)?t:t+"px"}function w(t,e){(e?O:T)(t)}function y(){E||(D&&(clearTimeout(D),D=null),!W.config.ctrlHidingDuringAnimations||!W.config.ctrlHidingDuringAnimations.enabled||W.config.ctrlHidingDuringAnimations.animations&&W.config.ctrlHidingDuringAnimations.animations.length&&!A(W.config.ctrlHidingDuringAnimations.animations)||T(a),E=!0)}function x(t){P(L.next)}function C(t){var e;return!g&&0<(e=t.getElementsByClassName(W.classes.animated)).length?e[e.length-1]:t}var k,S,_,M=function(t){r&&(t.vertical?(r.style.top=v(t.radioBarIndex),r.style.left=0):(r.style.top=0,r.style.left=v(t.radioBarIndex))),w(s,t.radioBarIndex<p),w(l,t.radioBarIndex>h)},I=function(t){return Math.max(h,Math.min(p,t))},T=function(t){t&&t.classList.remove(W.classes.ctrlVisible)},O=function(t){t&&t.classList.add(W.classes.ctrlVisible)},A=function(t){for(var e=!1,i=0;!e&&i<t.length;i++)var n=o.getElementsByClassName(t[i]),e=n&&n.length;return!!e},E=!1,F=0,D=null,P=function(t){y(),0<F&&(D=setTimeout(t,F)),O(a),E=!1},L=(k=function(t){0<t?L.prev():L.next()},(i=o).addEventListener("touchstart",function(t){S=t.changedTouches[0].pageX,_=(new Date).getTime()},!1),i.addEventListener("touchend",function(t){t=t.changedTouches[0].pageX-S;(new Date).getTime()-_<=W.swipe.maxTime&&Math.abs(t)>=W.swipe.requiredDistance&&k(t)},!1),{current:0,last:0,vertical:!1,radioBarIndex:h,goTo:function(t,e){var i,t=function(t,e){for(;t<0;)t+=e;return t%e}(t,n.length);t!=L.current&&(y(),f(L,t,e),C(n[(t=L).last]).removeEventListener("animationend",x),C(n[t.current]).addEventListener("animationend",x),i=L,B("#"+o.id+" ."+W.classes.radioSlide).each(function(){var t=B(this),e=parseInt(t.attr("data-num"));e==i.current?t.attr("aria-label",H.l10n.get("content_slider_current_slide","Current slide:")+" "+(e+1)).addClass(W.classes.radioSlideSelected):t.attr("aria-label",H.l10n.get("content_slider_go_to_slide","Show slide:")+" "+(e+1)).removeClass(W.classes.radioSlideSelected)}),B(n[i.current]).one("animationend",function(){B(n[i.last]).css("visibility","hidden")}),b(i,i.current))},next:function(){return L.goTo(L.current+1,W.classes.next)},prev:function(){return L.goTo(L.current-1,W.classes.prev)},autoplay:function(t){F=t,P(L.next)},radioBarNext:function(){b(L,L.radioBarIndex+W.radio.slideBarGap)},radioBarPrev:function(){b(L,L.radioBarIndex-W.radio.slideBarGap)}});return L}var W,r;B.extend(H,{contentSlider:(W={swipe:{requiredDistance:150,maxTime:300}},r={init:function(t){B.extend(!0,W,t||{});for(var e=H.responsive.isMobileDevice(),t="Apple Safari"===H.utils.getCurrentBrowser(),i=document.getElementsByClassName(W.classes.root),n=0;n<i.length;n++)r[i[n].id]=a(i[n]),e&&i[n].classList.add(W.classes.ctrlVisibleOnMobile);if(t)for(var o=document.getElementsByClassName(W.classes.container),n=0;n<o.length;n++)o[n].classList.contains(W.classes.cubeEffect)&&(o[n].classList.remove(W.classes.cubeEffect),o[n].classList.add(W.classes.fadeEffect));return 0<i.length}})})}(_jq,x5engine,window),!function(s,l){"use strict";s(".imMnMnTxt img").css("position");var c=null,d=s(window),u=s("#imContent"),h=s("#imFooPad"),t=u.css("padding-bottom"),p=t?+t.replace(/px/g,""):0;s.extend(l,{content:{getContentHeight:function(){c=(h.length?h:u).height()},setNewHeight:function(){var t=s("#imContentContainer"),e=s("#imMnMn"),i=s("#imPgMn"),n=s("#imBtMnContainer"),o=0,a=0,r=0;e.attr("data-verticalscroll")&&(o+=+e.children("ul").css("margin-top").replace(/px/g,""),d.one("scroll",l.content.setNewHeight)),e.find("ul").length&&"fixed"!=e.children("ul").css("position")&&(a=o+e.outerHeight()),i.length&&(r=i.outerHeight(!0),r=(r+=+i.css("padding-top").replace(/px/g,""))+ +i.css("margin-top").replace(/px/g,"")),o=Math.max(c,a,r,u.outerHeight(!0)),e=!!h.length&&!!n.length&&a>u.outerHeight(!0),t.css("min-height",o+"px"),e&&h.height(o-n.outerHeight(!0)-2*p)}}}),l.settings.autoHeight.enabled&&(u.on("change breakpointChangedOrFluid",function(){u.add(h).height(""),s("#imContentContainer").css("min-height",""),setTimeout(function(){l.content.getContentHeight(),l.content.setNewHeight()},200)}),u.trigger("change"))}(_jq,x5engine),!function(d,u){"use strict";d.imCookie=function(t,e,i){var n=u.settings.siteId+"_"+t;if(null==e){var o=null;if(document.cookie&&""!==document.cookie)for(var a=document.cookie.split(";"),r=0;r<a.length;r++){var s=d.trim(a[r]);if(s.substring(0,n.length+1)==n+"="){o=decodeURIComponent(s.substring(n.length+1));break}}return o}null!==(i=i||{}).expires&&void 0!==i.expires||(i.expires=60),null===e&&(e="",i.expires=-1);var t="",l=(i.expires&&("number"==typeof i.expires||i.expires.toUTCString)&&("number"==typeof i.expires?(l=new Date).setTime(l.getTime()+24*i.expires*60*60*1e3):l=i.expires,t="; expires="+l.toUTCString()),i.path?"; path="+i.path:""),c=i.domain?"; domain="+i.domain:";",i=i.secure?"; secure":"";document.cookie=[n,"=",encodeURIComponent(e),t,l,c,i].join("")}}(_jq,x5engine),!function(n,o){"use strict";n.extend(o,{cookielaw:{cookieId:"",showBanner:function(t){var e;if(t=n.extend({id:"cookiebanner",offlineTimeStamp:0,bannerStyle:"bar",position:"top",texts:[],acceptButton:!1,priority:2,acceptOnScroll:!1,elementClose:'<svg aria-hidden="true" class="svgClose imCloseInn" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1490 1322q0 40-28 68l-136 136q-28 28-68 28t-68-28l-294-294-294 294q-28 28-68 28t-68-28l-136-136q-28-28-28-68t28-68l294-294-294-294q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294 294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68l-294 294 294 294q28 28 28 68z"/></svg>',effect:"fade",margin:10},t),o.cookielaw.cookieId="cookie_law_yes"+(o.utils.isOnline()?"":"_"+t.offlineTimeStamp),t.onClose=function(){n.imCookie(o.cookielaw.cookieId,1,{expires:365,path:"/"}),o.cookielaw.activateScripts()},o.cookielaw.accepted())o.cookielaw.activateScripts();else{switch(t.position){case"bottom":t.effect="frombottom";break;case"center":case"top":t.effect="fromtop";break;case"center-right":case"bottom-right":case"top-right":t.effect="fromright";break;case"center-left":case"bottom-left":case"top-left":t.effect="fromleft"}t.text="";for(var i=0;i<t.texts.length&&!t.text;i++)t.texts[i].basepath==o.settings.currentPath&&(t.text=t.texts[i].text);t.acceptButton&&(t.text="box"==t.bannerStyle?t.text+="</br>":t.text,t.text+='<button type="button" class="imClose close clear-button-style"><div class="imCloseInn">'+o.l10n.get("privacy_button_agree")+"</div></button>",t.elementClose=""),e="box"==t.bannerStyle?o.imSplashBox(t):o.alertBox(t),t.acceptOnScroll&&n(window).one("scroll",function(){e.close()})}},activateScripts:function(){n("#imContent").trigger("x5ActivateCookieScripts")},accepted:function(){return!!n.imCookie(o.cookielaw.cookieId)}}})}(_jq,x5engine),!function(c,d){"use strict";c.extend(d,{imCover:function(e){e=c.extend(!0,{id:"cover",cookie:!1,priority:0,link:"",scrollImage:"",onClose:null,offlineTimeStamp:0},e);var i,n,o,a,t,r=1e3,s="cookie-"+e.id+(!d.utils.isOnline()&&e.offlineTimeStamp?"_"+e.offlineTimeStamp:""),l=c(window);return(!e.cookie||"true"!=c.imCookie(s))&&(o=function(t){c.isFunction(e.onClose)&&e.onClose(),i.animate({top:"-100%"},r,function(){i.remove()}),a.animate({opacity:"0"},r,function(){a.remove()}),t&&t.stopPropagation()},a=c('<div id="im-cover-overlay"></div>'),c("body").append(a),t='<div id="'+e.id+'" class="im-cover '+(""!==e.link?"im-cover-clickable":"")+'" style="" role="dialog">',t=(t+=d.settings.imLoadingAnimation)+(e.scrollImage?'<img class="scroll-image close-element" alt="'+d.l10n.get("cover_scroll_down","Scroll down")+'" src="'+e.scrollImage+'"></div>':"")+"</div>\n",c("body").prepend(t),i=c("#"+e.id).css({zIndex:d.settings.zIndex.cover+e.priority}),e.media?(e.media.load,new d.mediaObject(c.extend(e.media,{load:function(t){setTimeout(function(){"image"==e.media.type&&(n=c('<img src="'+e.media.url+'" alt="'+(e.media.alt||"")+'" '+(e.media.title?'title="'+e.media.title+'" ':"")+'class="cover-bg" style="filter: blur(10px); transition: filter 500ms ease-out;"></img>')),i.find(".imLoadAnim").remove(),n.appendTo(i),setTimeout(function(){n.css({filter:"blur(0)"})},50),d.utils.makeClickableWithKeyboard(i.find(".close-element"),"button"),i.find(".close-element").click(function(t){t.stopPropagation(),o()}),l.one("scroll",o),i.one("mousewheel touchmove",o),e.link&&(d.utils.makeClickableWithKeyboard(i),i.click(function(){c.isFunction(e.link)?e.link.call(i):location.href=e.link})),d.utils.findFocusableElements(i).first().focus(),e.cookie&&c.imCookie(s,"true",{expires:0,path:"/"})},100)}}))):o(),{close:function(){c.isFunction(o)&&o()}})}})}(_jq,x5engine),!function(w,y){"use strict";w.extend(y,{imDatePicker:function(t,u){function e(t,e){(i=s())&&(u.date.setFullYear(i.getFullYear()),u.date.setMonth(i.getMonth()),u.date.setDate(i.getDate()),c.setFullYear(i.getFullYear()),c.setMonth(i.getMonth()),c.setDate(i.getDate()));var i='<div class="date-picker date-picker-popup">',i=(u.vDay,u.vMonths,(i=(i+='<div class="header"><div class="year"></div><div class="date"></div></div>')+'<div class="container month-container"><span class="arrow">⟨</span><span class="month-text"></span><span class="arrow">⟩</span></div>'+'<div class="container year-container"><span class="arrow">⟨</span><span class="year-text"></span><span class="arrow">⟩</span></div>')+('<div class="calendar">'+l()+"</div>")+"</div>");w("body").append('<div class="date-picker-background"></div>'),(n=w(".date-picker-background")).css({position:"fixed",width:w(window).width(),height:w(window).height(),top:0,"inset-inline-start":0,zIndex:y.settings.zIndex.datePicker+1}).on("click",v),w("body").append(i),o=w(".date-picker.date-picker-popup"),b(),o.find(".month-container .arrow").first().on("click",function(){m(-1)}),o.find(".month-container .arrow").last().on("click",function(){m(1)}),o.find(".year-container .arrow").first().on("click",function(){f(-1)}),o.find(".year-container .arrow").last().on("click",function(){f(1)}),w(".day").on("click",g),r&&(t-=o.width()),t+o.width()>w(window).width()+w(window).scrollLeft()&&(t=w(window).width()-o.outerWidth()-5+w(window).scrollLeft()),e+o.height()>w(window).height()+w(window).scrollTop()&&(e=w(window).height()-o.outerHeight()-5+w(window).scrollTop()),o.fadeOut(0).css({top:e,left:t,zIndex:y.settings.zIndex.datePicker+2}).fadeIn(200)}function i(t){0<o.length?o.fadeOut(200,function(){o.remove(),e(t.pageX,t.pageY)}):e(t.pageX,t.pageY)}var c,n=w(),o=w(),h=w(t),a=y.l10n.get("date_full_months"),d=y.l10n.get("date_days"),r=y.utils.isRTL(h[0]),p=function(t,e){for(var i,n=[],o=!1,a=0;!o&&a<e.length;)-1!=t.indexOf(e.charAt(a))&&(o=!0),a++;if(!o||0===e.length)return[t];for(i=t.split(e.charAt(0)),a=0;a<i.length;a++)n=n.concat(p(i[a],e.substring(1)));return n},s=function(){var t,e=h.val(),i=u.format;if(""===e)return!1;if(t=i.replace(/\//g,"\\/").replace(/\s/g,"\\s+").replace(/\-/g,"\\-").replace(/\./g,"\\.").replace(/\,/g,"\\,").replace(/dddd/g,"[\\wìòà ùèé']+").replace(/ddd/g,"[\\wìòà ùèé']+").replace(/d{1,2}/g,"\\d{1,2}").replace(/yyyy/g,"\\d{4}").replace(/yy/g,"\\d{2}").replace(/MMMM/g,"[\\wìòà ùèé']+").replace(/MMM/g,"[\\wìòà ùèé']+").replace(/MM/g,"\\d{2}").replace(/M/g,"\\d{1,2}"),!new RegExp("^"+t+"$").test(e))return!1;for(var n,o,i=i.replaceAll("yy","").replaceAll("M","").replaceAll("d",""),a=p(u.format,i),r=p(e,i),s="",l="",c="",d=0;d<a.length;d++)switch(a[d]){case"yyyy":c=r[d];break;case"yy":c="20"+r[d];break;case"MMMM":for(n=y.l10n.get("date_full_months"),o=0;o<n.length;o++)n[o].toLowerCase()==r[d].toLowerCase()&&(s=o+1);break;case"MMM":for(n=y.l10n.get("date_months"),o=0;o<n.length;o++)n[o].toLowerCase()==r[d].toLowerCase()&&(s=o+1);break;case"MM":case"M":s=r[d];break;case"dd":case"d":l=r[d]}return new Date(c,s-1,l)},l=function(){var t,e="<table>";e+="<tr>";for(var i=0;i<d.length;i++)6<(t=i+u.start)&&(t-=7),e+='<td class="table-header">'+d[t]+"</td>";e+="</tr>";for(var n=new Date(u.date.getYear(),u.date.getMonth(),u.date.getDate()),o=(n.setFullYear(u.date.getFullYear()),n.setDate(1),parseInt(n.getDay(),10)),a=((o-=u.start)<=0&&(o+=7),parseInt(n.getMonth(),10)),r=0;n.getMonth()==a;){for(e+="<tr>",i=1;i<=7;i++){var s,l="day";o<=i+7*r&&n.getMonth()==a?((s=i-o+1+7*r)==c.getDate()&&n.getMonth()==c.getMonth()&&(l+=" selDay"),e+='<td class="'+l+'">'+s+"</td>",n.setDate(n.getDate()+1)):e+="<td></td>"}e+="</tr>",r++}return e+="</table>"},g=function(t,e,i){"boolean"!=typeof i&&(i=!0),e?(u.date.setFullYear(e.getFullYear()),u.date.setMonth(e.getMonth()),u.date.setDate(e.getDate()),c.setFullYear(e.getFullYear()),c.setMonth(e.getMonth()),c.setDate(e.getDate())):(u.date.setDate(w(this).text()),c.setFullYear(u.date.getFullYear()),c.setMonth(u.date.getMonth()),c.setDate(w(this).text()));e=y.utils.formatDate(u.date,!1,u.format);h.val(e),h.data("data-was-set",!0),v(),i&&w.isFunction(u.onChange)&&u.onChange()},m=function(t){u.date.setDate(1),u.date.setMonth(u.date.getMonth()+t),b()},f=function(t){u.date.setFullYear(u.date.getFullYear()+t),b()},b=function(){var t;o.find(".calendar").empty().append(l()),o.find(".month-text").empty().append(a[parseInt(u.date.getMonth(),10)]),o.find(".year-text").empty().append(u.date.getFullYear().toString()),o.find(".header .year").html(u.date.getFullYear().toString()),"toLocaleDateString"in u.date?(t=u.date.toLocaleDateString(y.l10n.get("lang_code"),{weekday:"long",month:"short",day:"numeric"}),o.find(".header .date").html(t)):o.find(".header .date").html(u.date.toDateString().replace(u.date.getFullYear().toString(),"")),o.find(".day").click(g)},v=function(){n.remove(),o.fadeOut(200,function(){o.remove()})};return(u=w.extend({icon:!0,start:0,float:"left",format:y.l10n.get("date_format"),date:null,setInitial:!1,onChange:null},u)).start<0&&(u.start=Math.abs(u.start)%7),u.date?"string"==typeof u.date&&(u.date=new Date(u.date.substring(6),parseInt(u.date.substring(3,5),10)-1,u.date.substring(0,2))):u.date=new Date,c=new Date(u.date.getFullYear(),u.date.getMonth(),u.date.getDate()),(u.icon?h.next(".imDatePickerIcon"):h).click(i),h.on("change",function(){var t=s();!1!==t&&(g(null,t),w.isFunction(u.onChange))&&u.onChange()}),h.click(function(){w(this).removeClass(y.imForm.constants.mark)}),u.setInitial&&g(null,u.date,!1),{date:function(){return u.date}}}})}(_jq,x5engine),!function(o,a){"use strict";o.extend(a,{setupDateTime:function(){var t=a.dateTime;t(o(".imHour"),"hour"),t(o(".imNow"),"now")},dateTime:function(i,t){i=o(i);var e,n=a.utils.imFormatInt;if("hour"!=t&&"now"!=t)i.html(t);else switch(t){case"hour":!function t(){var e=new Date;i.html(n(e.getHours())+":"+n(e.getMinutes())+":"+n(e.getSeconds())+" "),setTimeout(t,1e3)}();break;case"now":!function t(){e=a.utils.formatDate(new Date,!0),i.html(e),setTimeout(t,6e4)}()}}})}(_jq,x5engine),!function(g,m){"use strict";g.fn.loudStop=function(t,e){return g(this).trigger("loudStop").stop(t,e),this},g.extend(g.easing,{iOsSwing:function(t,e,i,n,o){return e==o?i+n:n*(1-Math.pow(2,-10*e/o))+i},elasticIn:function(t,e,i,n,o){var a=1.70158,r=0,s=n;return 0===e?i:1==(e/=o)?i+n:(r=r||.3*o,a=s<Math.abs(n)?(s=n,r/4):r/(2*Math.PI)*Math.asin(n/s),s*Math.pow(2,-11*e)*Math.sin((e*o-a)*(2*Math.PI)/r)+n+i)},elasticOut:function(t,e,i,n,o){var a=1.70158,r=0,s=n;return 0===e?i:1==(e/=o)?i+n:(r=r||.3*o,a=s<Math.abs(n)?(s=n,r/4):r/(2*Math.PI)*Math.asin(n/s),-(s*Math.pow(2,11*--e)*Math.sin((e*o-a)*(2*Math.PI)/r))+i)},bounceIn:function(t,e,i,n,o){return n-g.easing.bounceOut(t,o-e,0,n,o)+i},bounceOut:function(t,e,i,n,o){return(e/=o)<1/2.75?n*(7.5625*e*e)+i:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+i:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+i:n*(7.5625*(e-=2.625/2.75)*e+.984375)+i},easeInOutSwing:function(t,e,i,n,o){return 0===e?i:e==o?i+n:(e/=o/2)<1?n/2*Math.pow(2,10*(e-1))+i:n/2*(2-Math.pow(2,-10*--e))+i},imBounce:function(t,e,i,n,o){return(e/=o)<1/2.75?n*(7.5625*e*e)+i:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+i:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+i:n*(7.5625*(e-=2.625/2.75)*e+.984375)+i}}),g.extend(!0,m,{effects:{none:{animateIn:function(t,e,i,n,o){t.DOMObject().width(e.width).height(e.height).css({position:"absolute",top:e.y,left:e.x}).loudStop(!1,!1).show(0),g.isFunction(n)&&n(t)},animateOut:function(t,e,i,n){t.DOMObject().loudStop(!1,!1).hide(0),g.isFunction(i)&&i(t)}},fade:{animateIn:function(t,e,i,n,o){i=g(i),t.DOMObject().width(e.width).height(e.height).css({position:"absolute",top:e.y,left:e.x,display:"none"}).loudStop(!1,!1).fadeIn(500,function(){g.isFunction(n)&&n(t)})},animateOut:function(t,e,i,n){t.DOMObject().loudStop(!1,!1).fadeOut(500,function(){g.isFunction(i)&&i(t)})}},horizontalSlide:{animateIn:function(t,e,i,n,o){i=g(i),t.DOMObject().width(e.width).height(e.height).css({position:"absolute",top:e.y,"inset-inline-start":o?-e.width:i.width()}).show(0).loudStop(!1,!1).animate({"inset-inline-start":e.x},{duration:500,complete:function(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({"inset-inline-start":n?e.width():-o.width()},{duration:500,complete:function(){g.isFunction(i)&&i(t)}})}},horizontalSlideSwing:{animateIn:function(t,e,i,n,o){t.DOMObject();i=g(i),t.DOMObject().width(e.width).height(e.height).css({position:"absolute",top:e.y,"inset-inline-start":o?-e.width:i.width()}).show(0).loudStop(!1,!1).animate({"inset-inline-start":e.x},{duration:2e3,easing:"easeInOutSwing",complete:function(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({"inset-inline-start":n?e.width():-o.width()},{duration:2e3,easing:"easeInOutSwing",complete:function(){g.isFunction(i)&&i(t)}})}},verticalSlide:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(i),a.width(e.width).height(e.height),a.css({position:"absolute",left:e.x,top:o?i.height():-e.height}),a.show(0),a.loudStop(!1,!1).animate({top:e.y},{duration:500,complete:function(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({top:n?-t.Height():e.height()},{duration:500,complete:function(){g.isFunction(i)&&i(t)}})}},verticalSlideSwing:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(i),a.width(e.width).height(e.height),a.css({position:"absolute",left:e.x,top:o?i.height():-e.height}),a.show(0),a.loudStop(!1,!1).animate({top:e.y},{duration:2e3,easing:"easeInOutSwing",complete:function(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({top:n?-t.Height():e.height()},{duration:2e3,easing:"easeInOutSwing",complete:function(){g.isFunction(i)&&i(t)}})}},zoom:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(i),a.css({position:"absolute",top:i.height()/2,left:i.width()/2}).width(10).height(10),a.fadeIn(0),a.loudStop(!1,!1).animate({top:e.y,left:e.x,width:e.width,height:e.height},{duration:500,complete:function(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({top:e.height()/2,left:e.width()/2,width:1,height:1},{duration:500,complete:function(){g.isFunction(i)&&i(t)}})}},elasticFromTop:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(i),a.width(e.width).height(e.height),a.css({position:"absolute",left:e.x,top:o?i.height():-e.height}),a.show(0),a.loudStop(!1,!1).animate({top:e.y},{easing:"elasticIn",duration:1500,complete:function(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).fadeOut(500,function(){g.isFunction(i)&&i(t)})}},elasticFromBottom:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(i),a.width(e.width).height(e.height),a.css({position:"absolute",left:e.x,top:o?-e.height:i.height()}),a.show(0),a.loudStop(!1,!1).animate({top:e.y},{easing:"elasticIn",duration:500,complete:function(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).fadeOut(500,function(){g.isFunction(i)&&i(t)})}},elasticFromLeft:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(i),a.width(e.width).height(e.height),a.css({position:"absolute",top:e.y,"inset-inline-start":o?i.width():-e.width}),a.show(0),a.loudStop(!1,!1).animate({"inset-inline-start":e.x},{duration:1500,easing:"elasticIn",complete:function(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({"inset-inline-start":n?-o.width():e.width()},{duration:1500,easing:"elasticIn",complete:function(){g.isFunction(i)&&i(t)}})}},elasticFromRight:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(i),a.width(e.width).height(e.height),a.css({position:"absolute",top:e.y,"inset-inline-start":o?-e.width:i.width()}),a.show(0),a.loudStop(!1,!1).animate({"inset-inline-start":e.x},{duration:1500,easing:"elasticIn",complete:function(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({"inset-inline-start":n?e.width():-o.width()},{duration:1500,easing:"elasticIn",complete:function(){g.isFunction(i)&&i(t)}})}},bounceFromRight:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(i),a.width(e.width).height(e.height),a.css({position:"absolute",top:e.y,"inset-inline-start":o?-e.width:i.width()}),a.show(0),a.loudStop(!1,!1).animate({"inset-inline-start":e.x},{duration:1e3,easing:"bounceOut",complete:function(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({"inset-inline-start":n?e.width():-o.width()},{duration:1e3,easing:"bounceOut",complete:function(){g.isFunction(i)&&i(t)}})}},bounceFromLeft:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(i),a.width(e.width).height(e.height),a.css({position:"absolute",top:e.y,"inset-inline-start":o?i.width():-e.width}),a.show(0),a.loudStop(!1,!1).animate({"inset-inline-start":e.x},{duration:1e3,easing:"bounceOut",complete:function(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({"inset-inline-start":n?-o.width():e.width()},{duration:1e3,easing:"bounceOut",complete:function(){g.isFunction(i)&&i(t)}})}},bounceFromTop:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(i),a.width(e.width).height(e.height),a.css({position:"absolute",left:e.x,top:o?i.height():-e.height}),a.show(0),a.loudStop(!1,!1).animate({top:e.y},{easing:"bounceOut",duration:1500,complete:function(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({top:n?-o.height():e.height()},{duration:1500,easing:"bounceOut",complete:function(){g.isFunction(i)&&i(t)}})}},bounceFromBottom:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(i),a.width(e.width).height(e.height),a.css({position:"absolute",left:e.x,top:o?-e.height:i.height()}),a.show(0),a.loudStop(!1,!1).animate({top:e.y},{easing:"bounceOut",duration:1500,complete:function(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({top:n?e.height():-o.height()},{duration:1500,easing:"bounceOut",complete:function(){g.isFunction(i)&&i(t)}})}},rotateLinear:{animateIn:function(t,e,i,n,o){var a,r=t.DOMObject(),s=m.utils.supportsCSS("transform"),l=m.utils.supportsCSS("transformOrigin");s&&l?(r.loudStop(!1,!1).css({top:e.y,left:e.x,"-my-anim-step":0}).width(e.width).height(e.height),a=o?-90:90,r.css(l,"0% 0%").fadeIn(0),r.animate({"-my-anim-step":100},{step:function(t,e){r.css(s,"rotate("+Math.floor(a-a*t/100)+"deg)")},complete:function(){g.isFunction(n)&&n(t)}})):m.effects.fade.animateIn(t,e,i,n,o)},animateOut:function(t,e,i,n){var o,a=t.DOMObject(),r=m.utils.supportsCSS("transform"),s=m.utils.supportsCSS("transformOrigin");r&&s?(a.loudStop(!1,!1).css("-my-anim-step",0),o=n?90:-90,a.css(s,"0% 0%").fadeIn(0),a.animate({"-my-anim-step":100},{step:function(t,e){a.css(r,"rotate("+Math.floor(o*t/100)+"deg)")},complete:function(){g.isFunction(i)&&i(t)}})):m.effects.fade.animateOut(t,e,i,n)}},rotateZoom:{animateIn:function(t,e,i,n,o){var a=t.DOMObject(),r=m.utils.supportsCSS("transform");r?(a.css({position:"absolute",top:i.height()/2,left:i.width()/2,"-my-anim-step":0}).width(10).height(10).fadeIn(0),a.loudStop(!1,!1).animate({top:e.y,left:e.x,width:e.width,height:e.height,"-my-anim-step":100},{duration:500,step:function(t,e){a.css(r,"rotate("+Math.floor(-280- -280*t/100)+"deg)")},complete:function(){g.isFunction(n)&&n(t)}})):m.effects.zoom.animateIn(t,e,i,n,o)},animateOut:function(t,e,i,n){var o=t.DOMObject(),a=m.utils.supportsCSS("transform");a?(o.css("-my-anim-step",0),o.loudStop(!1,!1).animate({top:e.height()/2,left:e.width()/2,width:1,height:1,"-my-anim-step":100},{duration:500,step:function(t,e){o.css(a,"rotate("+Math.floor(280*t/100)+"deg)")},complete:function(){g.isFunction(i)&&i(t)}})):m.effects.zoom.animateOut(t,e,i,n)}},carousel:{animateIn:function(t,e,i,n,o){var a,r=t.DOMObject(),s=m.utils.supportsCSS("transform"),l=m.utils.supportsCSS("transformOrigin");s&&l?(r.loudStop(!1,!1).css({top:e.y,left:e.x,"-my-anim-step":0}).width(e.width).height(e.height),a=o?90:-90,r.fadeIn(0),r.css(l,(r.width()-i.width())/2+"px 50%"),r.animate({"-my-anim-step":100},{step:function(t,e){r.css(s,"perspective(600px) rotateY("+Math.floor(a-a*t/100)+"deg)")},complete:function(){g.isFunction(n)&&n(t)}})):m.effects.fade.animateIn(t,e,i,n,o)},animateOut:function(t,e,i,n){var o,a=t.DOMObject(),r=m.utils.supportsCSS("transform"),s=m.utils.supportsCSS("transformOrigin");r&&s?(a.loudStop(!1,!1).css("-my-anim-step",0),o=n?-90:90,a.fadeIn(0),a.css(s,(a.width()-e.width())/2+"px 50%"),a.animate({"-my-anim-step":100},{step:function(t,e){a.css(r,"perspective(600px) rotateY("+Math.floor(o*t/100)+"deg)")},complete:function(){g.isFunction(i)&&i(t)}})):m.effects.fade.animateOut(t,e,i,n)}},verticalSlices:{animateIn:function(e,i,n,o,a){if("image"!=e.Type())m.effects.fade.animateIn(e,i,n,o,a);else{var r=e.DOMObject(),s=g(null),t=e.Width()/5,l=r.attr("src");r.loudStop(!1,!1).one("loudStop",function(){s.stop(!1,!1).remove(),s=g(null)});for(var c=0;c<5;c++)s=s.add(g("<div />").css({position:"absolute",top:i.y+n.height()*(a?1:-1),left:i.x+t*c,"background-image":'url("'+l+'")',"background-position":-t*c+"px 0px","background-size":5*t+"px "+e.Height()+"px",opacity:0}).width(t).height(e.Height()));r.hide(0).after(s),s.each(function(t){g(this).delay(80*t).animate({top:i.y},{duration:400,step:function(t,e){"top"==e.prop&&g(this).css("opacity",1+t/n.height()*(a?-1:1))},complete:function(){4==t&&0<s.length&&(r.css({position:"absolute",top:i.y,left:i.x}).width(i.width).height(i.height).show(0),s.remove(),o(e))}})})}},animateOut:function(e,i,n,o){if("image"!=e.Type())m.effects.fade.animateOut(e,i,n,o);else{var t=e.DOMObject(),a=g(null),r=e.Width()/5,s={x:+t.css("left").replace(/px/,""),y:+t.css("top").replace(/px/,"")},l=t.attr("src");t.loudStop(!1,!1).hide(0).one("loudStop",function(){a.stop(!1,!1).remove(),a=g(null)});for(var c=0;c<5;c++)a=a.add(g("<div />").css({position:"absolute",top:s.y,left:s.x+r*c,"background-image":'url("'+l+'")',"background-position":-r*c+"px 0px","background-size":5*r+"px "+e.Height()+"px"}).width(r).height(e.Height()));t.after(a),a.each(function(t){g(this).delay(80*t).animate({top:s.y+i.height()*(o?-1:1)},{duration:400,step:function(t,e){"top"==e.prop&&g(this).css("opacity",1-t/i.height()*(o?-1:1))},complete:function(){4==t&&0<a.length&&(a.remove(),n(e))}})}),n(e)}}},scramble:{animateIn:function(n,t,e,o,i){if("image"!=n.Type())m.effects.fade.animateIn(n,t,e,o,i);else{for(var a=n.DOMObject(),r=n.Width()/4,s=n.Height()/4,l=a.attr("src"),c=(a.loudStop(!1,!1).css({position:"absolute",top:t.y,left:t.x}).width(t.width).height(t.height).hide(0).one("loudStop",function(){c.stop(!1,!1).remove(),c=g(null)}),g(null)),d=0;d<4;d++)for(var u=0;u<4;u++)var h=0<=Math.random()-.5?e.width()+Math.random()*r:-Math.random()*r-r,p=0<=Math.random()-.5?e.height()+Math.random()*r:-Math.random()*s-s,c=c.add(g("<div />").css({position:"absolute",top:p,left:h,"background-image":'url("'+l+'")',"background-position":-r*u+"px -"+s*d+"px","background-size":4*r+"px "+4*s+"px"}).width(r).height(s).data("endposx",t.x+r*u).data("endposy",t.y+s*d));a.after(c),c.each(function(t,e){var i=g(this);i.animate({top:+i.data("endposy"),left:+i.data("endposx")},{duration:1e3,complete:function(){t==c.length-1&&0<c.length&&(a.show(0),c.remove(),o(n))}})})}},animateOut:function(o,a,r,t){if("image"!=o.Type())m.effects.fade.animateOut(o,a,r,t);else{for(var s=o.DOMObject(),l=o.Width()/4,c=o.Height()/4,e=s.attr("src"),i=+s.css("left").replace(/px/,""),n=+s.css("top").replace(/px/,""),d=(s.loudStop(!1,!1).hide(0).one("loudStop",function(){d.stop(!1,!1).remove(),d=g(null)}),g(null)),u=0;u<4;u++)for(var h=0;h<4;h++)d=d.add(g("<div />").css({position:"absolute",top:n+c*u,left:i+l*h,"background-image":'url("'+e+'")',"background-position":-l*h+"px -"+c*u+"px","background-size":4*l+"px "+4*c+"px"}).width(l).height(c));s.after(d),d.each(function(t,e){var i=0<=Math.random()-.5?a.width()+Math.random()*l:-Math.random()*l-l,n=0<=Math.random()-.5?a.height()+Math.random()*l:-Math.random()*c-c;g(this).animate({top:i,left:n},{duration:800,complete:function(){t==d.length-1&&0<d.length&&(s.hide(0),d.remove(),r(o))}})})}}},squares:{animateIn:function(e,t,i,n,o){if("image"!=e.Type())m.effects.fade.animateIn(e,t,i,n,o);else{var a=e.DOMObject(),r=e.Width()/4,s=e.Height()/4,l=a.attr("src"),c=g(null);a.loudStop(!1,!1).css({position:"absolute",top:t.y,left:t.x}).width(t.width).height(t.height).hide(0).one("loudStop",function(){c.stop(!1,!1).remove(),c=g(null)});for(var d=0;d<4;d++)for(var u=0;u<4;u++)c=c.add(g("<div />").css({position:"absolute",top:t.y+s*d,left:t.x+r*u,"background-image":'url("'+l+'")',"background-position":-r*u+"px -"+s*d+"px","background-size":4*r+"px "+4*s+"px",display:"none"}).width(r).height(s));a.after(c),c.each(function(t){g(this).delay(50*t).fadeIn(150,function(){t==c.length-1&&0<c.length&&(a.fadeIn(0),c.remove(),n(e))})})}},animateOut:function(e,t,i,n){if("image"!=e.Type())m.effects.fade.animateOut(e,t,i,n);else{var t=e.DOMObject(),o=e.Width()/4,a=e.Height()/4,r=t.attr("src"),s=+t.css("left").replace(/px/,""),l=+t.css("top").replace(/px/,""),c=g(null);t.loudStop(!1,!1).one("loudStop",function(){c.stop(!1,!1).remove(),c=g(null)});for(var d=0;d<4;d++)for(var u=0;u<4;u++)c=c.add(g("<div />").css({position:"absolute",top:l+a*d,left:s+o*u,"background-image":'url("'+r+'")',"background-position":-o*u+"px -"+a*d+"px","background-size":4*o+"px "+4*a+"px"}).width(o).height(a));t.after(c).hide(0),c.each(function(t){g(this).delay(50*t).fadeOut(150,function(){t==c.length-1&&0<c.length&&(c.remove(),i(e))})})}}},flip:{animateIn:function(t,e,i,n,o){var a,r=t.DOMObject(),s=m.utils.supportsCSS("transform"),l=m.utils.supportsCSS("transformOrigin");s&&l&&"image"==t.Type()?(r.loudStop(!1,!1).css({top:e.y,left:e.x,"-my-anim-step":0}).width(e.width).height(e.height),a=o?180:-180,r.fadeIn(0).css(l,"50% 50%"),r.animate({"-my-anim-step":100},{step:function(t,e){r.css(s,"perspective(600px) rotateY("+Math.floor(a-a*t/100)+"deg)"),r.css("opacity",50<t?(t-50)/50:0)},complete:function(){g.isFunction(n)&&n(t)}})):m.effects.fade.animateIn(t,e,i,n,o)},animateOut:function(t,e,i,n){var o,a=t.DOMObject(),r=m.utils.supportsCSS("transform"),s=m.utils.supportsCSS("transformOrigin");r&&s&&"image"==t.Type()?(a.loudStop(!1,!1).css("-my-anim-step",0),o=n?-180:180,a.fadeIn(0).css(s,"50% 50%"),a.animate({"-my-anim-step":100},{step:function(t,e){a.css(r,"perspective(600px) rotateY("+Math.floor(o*t/100)+"deg)"),a.css("opacity",50<t?0:(50-t)/50)},complete:function(){g.isFunction(i)&&i(t)}})):m.effects.fade.animateOut(t,e,i,n)}}}})}(_jq,x5engine),!function(s,n,o,i){"use strict";i.settings.fallback.animFrame&&(n.requestAnimFrame=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.oRequestAnimationFrame||n.msRequestAnimationFrame||function(t){return n.setTimeout(function(){t((new Date).getTime())},1e3/60)},n.cancelAnimFrame=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.mozCancelAnimationFrame||n.oCancelAnimationFrame||n.msCancelAnimationFrame||function(t){n.clearTimeout(t)}),"onhashchange"in n||!i.settings.fallback.onhashchange||function t(e){var i=n.top.location.hash;i!=e&&o(n).triggerHandler("hashchange"),n.setTimeout(function(){t(i)},200)}(n.top.location.hash),i.settings.fallback.json&&("undefined"==typeof JSON&&(this.JSON={}),"function"!=typeof JSON.stringify&&(JSON.stringify=function(t){var e=typeof t;if("object"!=e||null===t)return"string"==e&&(t='"'+t+'"'),String(t);var i,n,o=[],a=t&&t.constructor==Array;for(i in t)"string"==(e=typeof(n=t[i]))?n='"'+n+'"':"object"==e&&null!==n&&(n=JSON.stringify(n)),o.push((a?"":'"'+i+'":')+String(n));return(a?"[":"{")+String(o)+(a?"]":"}")}),"function"!=typeof JSON.parse)&&(JSON.parse=function(t){if(null===t)return null;if("string"==typeof t&&(t=o.trim(t))&&/^[\],:{}\s]*$/.test(t.replace(/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,"@").replace(/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return new Function("return "+t)();throw"Invalid JSON: "+t}),!function(){try{var t;if("localStorage"in n&&n.localStorage)return(t=n.sessionStorage).setItem("test","1"),t.removeItem("test"),1}catch(t){}}()?n.imStorage={setItem:function(t,e){o.imCookie(t,e,{path:"/"})},getItem:function(t){t=o.imCookie(t);return t||null},removeItem:function(t){o.imCookie(t,"",{path:"/"})}}:n.imStorage={setItem:function(t,e){n.localStorage.setItem(i.settings.siteId+"_"+t,e)},getItem:function(t){return n.localStorage.getItem(i.settings.siteId+"_"+t)},removeItem:function(t){n.localStorage.removeItem(i.settings.siteId+"_"+t)}},"function"!=typeof s.elementsFromPoint&&(s.elementsFromPoint=function(t,e){for(var i,n,o,a=[],r=[];(i=s.elementFromPoint(t,e))&&-1===a.indexOf(i)&&null!==i;)a.push(i),r.push({value:i.style.getPropertyValue("pointer-events"),priority:i.style.getPropertyPriority("pointer-events")}),i.style.setProperty("pointer-events","none","important");for(n=r.length-1;0<=n;n--)a[n].style.setProperty("pointer-events",(o=r[n]).value||"",o.priority);return a})}(document,window,$,x5engine),!function(m,f){"use strict";m.extend(f,{imForm:{constants:{mark:"imFormMark"},initForm:function(t,e,i){e=e||!1,i=m.extend(!0,{base:"",offlineMessage:"",feedbackMode:"showPage",messageBackground:"black",messageBackgroundBlur:!1,jsid:""},i);var n=m(t);n.append('<input type="hidden" value="'+i.jsid+'" name="imJsCheck" />'),n.find("img").not(".imDatePickerIcon").each(function(){m(this).on("mouseover focus",function(){f.imTip.Show(m(this),{position:"top"})})}),e&&n.find(":input").each(function(){var t=m(this),e=m("#"+t.attr("id")+"_tip");0<e.length&&t.on("focus click",function(){e.triggerHandler("mouseover"),t.one("blur",function(){e.triggerHandler("mouseout")})})}),n.find(".datePicker").each(function(){var t=m(this).attr("data-format");t&&f.imDatePicker(m(this),{format:t,icon:"true"==m(this).attr("data-showicon")})}),m("[class*=valMaxLength], [class*=valLength]").each(function(){m(this).attr("class").match(/Length\[([0-9]+)\]/g);var t=RegExp.$1;m(this).keyup(function(){m(this).val(m(this).val().substring(0,t))})}),m("[class*=valDate]").keypress(function(t){t=t.charCode||t.keyCode;return 8==t||37==t||39==t||46==t||9==t||/^[0-9\/\.]+$/g.test(m(this).val()+String.fromCharCode(t))}),m("[class*=valTelephone]").keypress(function(t){t=t.charCode||t.keyCode;return 8==t||37==t||39==t||46==t||9==t||43==t||/^[0-9\s\-\+\(\)]+$/g.test(m(this).val()+String.fromCharCode(t))}),f.imForm.setPagination(t,i),f.imForm.lockCopyPaste(t),f.utils.switchFocus(t),f.imForm.showCaptcha(t)},activeFocusPasswordPolicy:function(e){m("input[type=password].requirePolicy").each(function(){var t=m(this);t.on("focus",function(){f.imForm.showPasswordPolicy(t,e)})})},showPasswordPolicy:function(t,e){t=m(t);if(t.addClass(f.imForm.constants.mark).attr("aria-invalid","true"),null!=e){var i="";if(Array.isArray(e)){for(var n=0;n<=e.length;n++)var o=f.l10n.get(e[n]),i=i+(o="form_password_length"==e[n]&&-1!==o.indexOf("{0}")?o.replace("{0}",f.passwordpolicy.getMinimumCharacters()):o)+"<br>";"<br><br>"==i.substring(i.length-8)&&(i=i.substring(0,i.length-8))}else i=f.l10n.get(e);null!=t&&(t.removeClass(f.imTip.constants.locked),f.imTip.Show(t,{position:"right",text:i,unique:!1,classes:"textLeft",persistant:!0,hideOnFocus:!1,hideOnBlur:!0}))}},showCaptcha:function(t){var e;(t=m(t)).length&&(!1!==(e=f.captcha.instance.create(t))?t.data("cpt-res",e):t.removeData("cpt-res"))},resetCaptcha:function(t){t=t.data("cpt-res");t&&t.reset()},checkCaptcha:function(t){return!!(t=m(t)).length&&(!(t=t.data("cpt-res"))||t.check())},captchaCanSubmit:async function(t){return!!(t=m(t)).length&&(!(t=t.data("cpt-res"))||!t.canSubmit||t.canSubmit())},getCaptchaField:function(t){if((t=m(t)).length){t=t.data("cpt-res");if(t)return t.getCaptchaField()}return m()},setPagination:function(r,e){function i(e,i,n){var t=m(r+"_next"),o=m(r+"_prev"),a=m(r+"_submit");n=n||400,t.add(o).attr("disabled",!1),m("."+f.imTip.constants.classId).remove(),m("."+f.imForm.constants.mark).removeClass(f.imForm.constants.mark).removeAttr("aria-invalid"),1==e?(o.add(a).hide(0),t.show(0)):0===h.find("[pageCount="+(e+1)+"]").length?(o.add(a).show(0),t.hide(0)):(o.add(a).hide(0),o.add(t).show(0)),h.find("fieldset").each(function(){var t=m(this);parseInt(t.attr("pageCount"),10)==e?(t.css({display:"block",height:"auto"}).children("div").slideDown(n),i&&f.utils.findFocusableElements(t).first().focus()):t.children("div").slideUp(n,function(){t.height(0).css("display","none")})}),m(r+"_pageCounter").val(e)}function t(){var t=parseInt(m(r+"_pageCounter").val(),10);!0===f.imForm.validate(h.find("fieldset[pageCount="+t+"]"),{showAll:!0,paginate:!0,type:u})&&(0<h.find("[pageCount="+ ++t+"]").length?i(t,!0):f.imForm.submit(r,e))}var n,o,a,s,l,c,d=0,u=(e=e||{}).type||"tip",h=m(r),p=!1,g="";h.find("fieldset").each(function(){var t=m(this);!t.hasClass("newPage")&&0!==d||d++,t.attr("pageCount",d)}),n=1<d?((a=h.find("input[type=submit]"))&&(s=f.utils.htmlspecialchars(a.attr("aria-label")),l=f.utils.htmlspecialchars(a.attr("title")),c=a.attr("role"),a.data("submitValue"))&&(g=a.data("submitValue")),o=(s?' aria-label="'+s+'"':"")+(l?' title="'+l+'"':"")+(c?' role="'+c+'"':""),h.append('<input type="hidden" name="'+r.replace("#","")+'_pageCounter" id="'+r.replace("#","")+'_pageCounter" value="1" />'),h.children("div:last").append('<input type="button" id="'+r.replace("#","")+'_prev" value="'+f.l10n.get("cart_goback")+'"'+o+"/>"),h.children("div:last").append('<input type="button" id="'+r.replace("#","")+'_next" value="'+f.l10n.get("cart_gonext")+'"'+o+"/>"),g=f.l10n.get("form_submit"),a&&a.remove(),h.children("div:last").append('<input type="button" id="'+r.replace("#","")+'_submit" value="'+g+'"'+o+"/>"),h.find(r+"_submit").fadeOut(0).css("margin-inline-end","4px"),m(r+"_prev").click(function(){var t=parseInt(m(r+"_pageCounter").val(),10);0<--t&&(m(r+"_pageCounter").attr("value",t),i(t,!0))}).css("margin-inline-end","4px"),m(r+"_next").click(t).css("margin-inline-end","4px"),i(1,!1,1),function(){t()}):(g=(a=h.find("input[type=submit]")).attr("value"),s=f.utils.htmlspecialchars(a.attr("aria-label")),l=f.utils.htmlspecialchars(a.attr("title")),c=a.attr("role"),a.after('<input type="button" id="'+r.replace("#","")+'_submit" value="'+g+'"'+(s?' aria-label="'+s+'"':"")+(l?' title="'+l+'"':"")+(c?' role="'+c+'"':"")+"/>"),a.remove(),function(){f.imForm.submit(r,e)}),m(r+"_submit").click(function(){f.imForm.submit(r,e)}),h.submit(function(){return p=!1,n(),!1}),h.find("input").keypress(function(t){40==t.keyCode?p=!0:13==t.which&&(p||n(),p=!1)}).focus(function(){p=!1})},lockCopyPaste:function(t){m(t).find("input[class*=equalTo]").each(function(){for(var t,e=m(this).attr("class").split(" "),i=function(t){return t.preventDefault(),!1},n=0;n<e.length;n++)"equalTo"==e[n].substring(0,7)&&(t=e[n].substring(8,e[n].length-1),m("#"+t).on("contextmenu cut copy paste",i))}),m(t).find("input[class*=equalTo]").on("contextmenu cut copy paste",function(t){return t.preventDefault(),!1})},validate:function(o,c){function a(t,e){if(null!==t){var i=m(t).is("input[type=radio]")?((r=m(t).parent().parent().parent().parent().find("label").find("span").clone()).find("span[aria-hidden]").remove(),r.html()):0<m("label[for="+m(t).attr("id")+"] span:not([aria-hidden='true'])").length?((r=m("label[for="+m(t).attr("id")+"] span:not([aria-hidden='true'])").clone()).find("span[aria-hidden]").remove(),r.html()):0<m("label[for="+m(t).attr("id")+"]").length?((r=m("label[for="+m(t).attr("id")+"]").clone()).find("span[aria-hidden]").remove(),r.html()):m(t[0]).hasClass("label_option")?((r=m(t[0]).clone()).find("span[aria-hidden]").remove(),r.html()):m(t).attr("placeholder");if(m(t).addClass(f.imForm.constants.mark).attr("aria-invalid","true"),m(t).is(":radio")&&m(t).css("border","none"),null!=e&&"form_mandatory"==e&&m(t).addClass("mandatoryInvalid"),null!=e&&"form_captcha"==e&&m(t).addClass("captchaInvalid"),null!=e&&(!u||c.showAll)){u=!0;var n="";if(Array.isArray(e)){"form_password"==e[0]&&(null==c.classes?c.classes="textLeft":c.classes=c.classes+=" textLeft");for(var o=0;o<=e.length;o++)var a=f.l10n.get(e[o]),n=n+(a="form_password_length"==e[o]&&-1!==a.indexOf("{0}")?a.replace("{0}",f.passwordpolicy.getMinimumCharacters()):a)+"<br>";"<br><br>"==n.substring(n.length-8)&&(n=n.substring(0,n.length-8))}else n=f.l10n.get(e);if(null!=i){for(var r,s,l=!0;":"==i.charAt(i.length-1)||"*"==i.charAt(i.length-1)||" "==i.charAt(i.length-1);)i=i.substr(0,i.length-1);try{n=n.replace(/\[FIELD\]/g,"'"+i+"'")}catch(t){}switch(m(t).is(":radio")&&!m(t).attr("id").endsWith("_0")||(0<(r=m("#"+m(t).attr("id")+"-validation-mark")).length?r.text(r.text()+". "+n):(m(t).after('<span id="'+m(t).attr("id")+'-validation-mark" class="screen-reader-only-even-focused form-field-validation-mark">'+n+"</span>"),m(t).attr("aria-errormessage",m(t).attr("id")+"-validation-mark"))),c.type){case"alert":alert(n);break;case"popup":f.utils.popup({text:n,width:"30%",isError:!0});break;default:m(t).attr("class")&&m(t).attr("class").match(/datePicker\[(.*),([\d]{1})\]/)&&0!=m(t).next("span").find("img.imDatePickerIcon").is("img")?s=m(t).next("span").find(".imDatePickerIcon"):m(t).is("input[type=radio]")?(m(t).one("click",function(){m("[tiptarget="+m(this).attr("id").substring(0,m(this).attr("id").lastIndexOf("_"))+"_target]").remove(),m("label[for="+m(t).attr("id").substring(0,m(t).attr("id").lastIndexOf("_"))+"] span").removeClass(f.imTip.constants.locked).attr("id","")}),(s=m(t).parent().parent().parent()).attr("id",m(t).attr("id").substring(0,m(t).attr("id").lastIndexOf("_"))+"_target"),0<m("[tiptarget="+m(t).attr("id").substring(0,m(t).attr("id").lastIndexOf("_"))+"_target]").length&&(s=null)):s=m(t).next("img").is("img")?(l=m(t),m(t).next("img")):m(t).nextAll("iframe.imFrame\\["+m(t).attr("id")+"\\]").is("iframe")?(l=m(t),m(t).nextAll("iframe.imFrame\\["+m(t).attr("id")+"\\]")):m(t),null!=s&&(s.removeClass(f.imTip.constants.locked),f.imTip.Show(s,{position:"right",text:n,unique:!1,classes:c.classes,persistant:!0,hideOnFocus:l,hideOnBlur:!1}))}}}d=!1}}var t,e,d=!0,u=!1,i=m(o).attr("id");"popup"!=(c=m.extend(!0,{type:"tip",showAll:!1,paginate:!1},c)).type&&"alert"!=c.type||(c.showAll=!1),(o=m(o)).find("*").removeClass(f.imForm.constants.mark).removeAttr("aria-invalid").removeAttr("aria-errormessage"),o.find(".form-field-validation-mark").each(function(){var t=m(this).attr("id");o.find("[aria-describedby]").each(function(){m(this).attr("aria-describedby",m(this).attr("aria-describedby").replace(t,""))}),m(this).remove()});return"tip"==c.type&&m("."+f.imTip.constants.classId).remove(),0<o.find("[type=submit]").length&&(t=m(o).find("[type=submit]").attr("value"),o.find("input[type=submit]").attr("disabled",!0).attr("value",f.l10n.get("form_validating"))),0<o.find(i+"_fakebutton2").length&&(e=o.find(id+"_fakebutton2").attr("value"),o.find(i+"_fakebutton2").attr("disabled",!0).attr("value",f.l10n.get("form_validating"))),o.find(".mandatory").removeClass("mandatoryInvalid").removeAttr("aria-invalid"),o.find("[class*=striptags]").each(function(){for(var t=m(this).attr("class").split(" "),e=0;e<t.length;e++)"striptags"==t[e].substring(0,9)&&m(this).val(m(this).val().replace(/(<([^>]+)>)/gi,""))}),o.find("[class*=trim]").each(function(){for(var t=m(this).attr("class").split(" "),e=0;e<t.length;e++)"trim"==t[e].substring(0,4)&&m(this).val(m.trim(m(this).val()))}),o.find(".mandatory").not(":checkbox").not(":radio").each(function(){var t=m(this).val();t||0===t||a(this,"form_mandatory")}),o.find(".mandatory:checkbox").each(function(){0==this.checked&&a(this,"form_mandatory")}),o.find(".mandatory:radio").each(function(){0==m(".mandatory[name="+m(this).attr("name")+"]:checked").length&&a(this,"form_mandatory")}),o.find("[class*=equalTo]").each(function(){for(var t,e=m(this).attr("class").split(" "),i=0;i<e.length;i++)"equalTo"==e[i].substring(0,7)&&(t=e[i].substring(8,e[i].length-1),m(this).val()!=m("#"+t).val())&&a(this,"form_equal")}),o.find("[class*=valMinLength]").each(function(){for(var t,e=m(this).attr("class").split(" "),i=0;i<e.length;i++)"valMinLength"==e[i].substring(0,12)&&(t=parseInt(e[i].substring(13,e[i].length-1)),m(this).val().length<t)&&a(this,"form_length")}),o.find("[class*=valLength]").each(function(){for(var t,e=m(this).attr("class").split(" "),i=0;i<e.length;i++)"valLength"==e[i].substring(0,9)&&(t=parseInt(e[i].substring(10,e[i].length-1)),m(this).val().length!=t)&&a(this,"form_length")}),o.find(".valChars").each(function(){""!=m(this).val()&&0==/^\D*$/.test(m(this).val())&&a(this,"form_characters")}),o.find(".valGenTelephone").each(function(){""!=m(this).val()&&0==/^[0-9\-\.\/\(\)\s]*$/.test(m(this).val())&&a(this,"form_telephone")}),o.find(".valTelephone").each(function(){""!=m(this).val()&&0==/^[0-9 \-\+\.\/]*$/.test(m(this).val())&&a(this,"form_telephone")}),o.find(".valUSTelephone").each(function(){""!=m(this).val()&&0==/^\([1-9]\d{2}\)\s?\d{3}\-\d{4}$/.test(m(this).val())&&a(this,"form_telephone")}),o.find(".valDate").each(function(){""!=m(this).val()&&0==/^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{2}$/.test(m(this).val())&&a(this,"form_date")}),o.find(".valDate2").each(function(){""!=m(this).val()&&0==/^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{2,4}$/.test(m(this).val())&&a(this,"form_date")}),o.find(".valUSDate").each(function(){""!=m(this).val()&&0==/^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{4}$/.test(m(this).val())&&a(this,"form_date")}),o.find("[class*=datePicker]").each(function(){var t=m(this),e=(t.attr("class").match(/datePicker\[(.*),([\d]{1})\]/),m(this).attr("data-format"));""!=t.val()&&""!=e&&(e="^"+(e=e.replace(/\//g,"\\/").replace(/\s/g,"\\s+").replace(/\-/g,"\\-").replace(/\./g,"\\.").replace(/\,/g,"\\,").replace(/dddd/g,"[^\\§]+").replace(/ddd/g,"[^\\§]+").replace(/d{1,2}/g,"\\d{1,2}").replace(/§/g,"d").replace(/yyyy/g,"\\d{4}").replace(/yy/g,"\\d{2}").replace(/MMMM/g,"[^\\d]+").replace(/MMM/g,"[^\\d]+").replace(/MM/g,"\\d{2}").replace(/M/g,"\\d{1,2}"))+"$",new RegExp(e).test(m(this).val())||a(this,"form_date"))}),o.find("[class*=valCDate]").each(function(){for(var t,e=m(this).attr("class").split(" "),i=0;i<e.length;i++)""!=m(this).val()&&"valCDate"==e[i].substring(0,8)&&(t="^"+(t=(t=e[i].substring(9,e[i].length-1)).replace(/\_/g,"\\s").replace(/\//g,"\\/").replace(/\-/g,"\\-").replace(/\./g,"\\.").replace(/\,/g,"\\,").replace(/dddd/g,"[^\\d]+").replace(/ddd/g,"[^\\d]+").replace(/d{1,2}/g,"\\d{1,2}").replace(/yyyy/g,"\\d{4}").replace(/yy/g,"\\d{2}").replace(/MMMM/g,"[^\\d]+").replace(/MMM/g,"[^\\d]+").replace(/MM/g,"\\d{2}").replace(/M/g,"\\d{1,2}"))+"$",new RegExp(t).test(m(this).val())||a(this,"form_date"))}),o.find(".valEmail").each(function(){var t=m(this).val();0<t.length&&!f.utils.isValidEmail(t)&&a(this,"form_email")}),o.find(".valPassword").each(function(){var t=m(this),e=t.val();0<e.length&&t.hasClass("requirePolicy")&&!f.passwordpolicy.isValidPassword(e)&&a(this,f.passwordpolicy.getPolicy())}),o.find(".valCF").each(function(){m(this).val(m(this).val().toUpperCase()),""!=m(this).val()&&0==/^[A-Z]{6}(\d{2}[A-Z](\d{2}[A-Z](\d{3}|\d{2}[A-Z]|\d[A-Z]{2}|[A-Z]{3})|\d[A-Z]{5}|[A-Z]{6})|\d[A-Z]{8}|[A-Z]{9})[A-Z]$/.test(m(this).val())&&0==/^[0-9]+$/.test(m(this).val())&&a(this,"form_CF")}),o.find(".valURL").each(function(){""!=m(this).val()&&0==/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(m(this).val())&&a(this,"form_URL")}),o.find(".valUSZIP").each(function(){m(this).val(m(this).val().toUpperCase()),""!=m(this).val()&&0==/(^\d{5}$)|(^\d{5}-\d{4}$)/.test(m(this).val())&&a(this,"form_format")}),o.find("[class*=valCustom]").each(function(){for(var t,e=m(this).attr("class").split(" "),i=0;i<e.length;i++)""!=m(this).val()&&"valCustom"==e[i].substring(0,9)&&(t=function(t){for(var e="",i=0;i<t.length;i++)switch(t.charAt(i)){case"N":e+="[0-9]{1}";break;case"F":e+="[0-9]{0,1}";break;case"A":e+="[a-zA-Z]{1}";break;case"Z":e+="[a-zA-Z]{0,1}";break;default:e+=("[]_\\(){}-.+*?".indexOf(t.charAt(i))?"\\":"")+t.charAt(i)}return e="^"+e+"$",new RegExp(e)}(t=e[i].substring(10,e[i].length-1)),""!=m(this).val())&&""!=m(this).val()&&0==t.test(m(this).val())&&a(this,"form_format")}),o.find("[class*=valVAT]").each(function(){return!0}),o.find("input.valDisclaimer").each(function(){this.checked||a(m(this),"form_err_disclaimer")}),o.find("input[data-extensions]").each(function(){var t,e,i=m(this),n=!1,o=i.val(),i=i.attr("data-extensions");if(i&&o){for(t=i.split(","),e=0;e<t.length;e++)o.endsWith("."+t[e])&&(n=!0);n||a(m(this),"form_format")}}),f.imForm.checkCaptcha(o)||(f.imForm.resetCaptcha(o),a(f.imForm.getCaptchaField(o),"form_captcha")),o.find("input[type=submit]").attr("disabled",!1).attr("value",t),o.find(i+"_fakebutton2").attr("disabled",!1).attr("value",e),o.find("[class*=valQuestion]").each(function(){var n,t=m(this),e=t.attr("class"),i="showPage"===c.feedbackMode?m(o).attr("action"):c.phpAction;e.match(/valQuestion\[([A-Za-z0-9]+)\]/),f.utils.isOnline()?""!=RegExp.$1&&(n=t,m.ajax({type:"POST",url:i,data:{action:"check_answer",id:RegExp.$1,answer:n.val()},async:!1,cache:!1,success:function(t,e,i){"0"===t&&a(m(n),"form_question")}})):t.attr("data-answer").replace(/\"/g,"'").replace(/\</g,"<").replace(/\>/g,">")!=t.val().replace(/\"/g,"'").replace(/\</g,"<").replace(/\>/g,">")&&a(t,"form_question")}),d},submit:function(e,i){var n=m(e),o=m(e+"_submit");f.imForm.validate(n,i)&&(f.utils.isOnline()?f.imForm.captchaCanSubmit(n).then(function(t){t&&(o.attr("disabled",!0),"showPage"==i.feedbackMode?n.off("submit").submit():f.imForm.ajaxSubmit(e,i))}):f.utils.showOfflineMessage(i.offlineMessage))},ajaxSubmit:function(t,i){var n=m(t),o=m(t+"_submit");return m.ajax({type:"POST",url:i.phpAction,data:new FormData(document.querySelector(t)),cache:!1,contentType:!1,processData:!1}).done(function(t){var e,t=JSON.parse(t);t.status?f.utils.popup({text:f.l10n.get("form_message_submit"),graphics:!0,background:i.messageBackground,backgroundBlur:i.messageBackgroundBlur,width:"30%"}):(e=f.l10n.get("cmn_generic_error"),t.err&&""!=t&&(e+="<br />"+t.err),f.utils.popup({text:e,graphics:!0,background:i.messageBackground,backgroundBlur:i.messageBackgroundBlur,width:"30%",isError:!0})),n[0].reset(),o.attr("disabled",!1)}),!1}}})}(_jq,x5engine),!function(l,c){"use strict";function r(){function t(t){I&&t.preventDefault()}l.each(k,function(){var t=l(this);t.on("rowEntersInViewport",function(){u(t[0])})}),l("body").on("touchstart",function(){M=!0}),l("body").on("touchend",function(){M=!1,b&&u(b)});var e=!!c.utils.isAddEventListenerPassiveOptionSupported()&&{passive:!1};window.addEventListener("wheel",t,e),window.addEventListener("mousewheel",t,e),window.addEventListener("DOMMouseScroll",t,e),window.addEventListener("MozMousePixelScroll",t,e)}function s(){void 0!==v&&clearInterval(v),v=setInterval(d,500),_||l("#imPageRowScrollButton").fadeOut()}function d(){l("#imPageRowScrollButton").is(":hover")||l("#imPageRowScrollButton").fadeOut()}function u(t,e){if(e=e||!1,M)b=t;else if(void 0!==b&&f===b)b=void 0;else{var i=(document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset,n=window.innerHeight,o=t.offsetHeight,a=l(t).offset().top,r=a+o,s=i;if(T||Math.round(a-i)<-1&&1<Math.round(r-(i+n)))return;if(0<i||e){if(s=!(Math.round(i-a)<-1)&&1<Math.round(o-n)?o+a-n:a,Math.abs(O-s)<1||null!=x&&x!=t)return C=t;x=t,O=s;r={duration:h.autoscroll.autoscrollDuration,start:function(){l("body").trigger("fullHeightRowsAutoscrollAnimationInProgress",t)},complete:function(){l("body").trigger("fullHeightRowsAutoscrollAnimationCompleted",t)}};c.utils.scrollTo(s,r)}}}var h,p,g,m,f,b,v,w,y,x,C,k,S,_,M,I,T,O;l.extend(c,{fullHeightRows:(k=[],T=I=M=_=!(S=[]),O=-1,{start:function(t){if(h=l.extend(!0,{scrollingEffect:"none",autoscroll:{active:!1,autoscrollDuration:1e3},scrollButton:{show:!1,url:null,type:"visible",width:20,height:20,distanceBottom:10},bullets:{show:!1,url:null,size:22,position:"right",distanceLeft:10,distanceRight:10}},t),p=l("#imContent"),m=l(".imPageRow:visible:last").offset().top,l(".imPageRow").each(function(){var n=l(this);n.on("rowEntersInViewport",function(){var t,e,i;g=n,h.scrollButton.show&&(t=l("<button />"),e=h.scrollButton,i=(document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset,0==l("#imPageRowScrollButton").length&&(t.attr("id","imPageRowScrollButton").attr("type","button").attr("class","clear-button-style").attr("aria-label",c.l10n.get("cover_scroll_down","Scroll down")).width(e.width).height(e.height).css({position:"fixed","z-index":5e3,bottom:e.distanceBottom,"inset-inline-start":"calc(50% - "+e.width/2+"px)","background-image":'url("'+e.url+'")',"background-repeat":"no-repeat",cursor:"pointer","background-position":"0 0",display:"none"}),p.append(t)),t.click(function(){O=-1;var t=0<g.nextAll(".imPageRow:first").length?g.nextAll(".imPageRow:first"):null,e=(document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset,i=g.offset().top;1<Math.round(i-e)?u(g[0],!0):null!=t&&(u(t[0],!0),g=t)}),"visibleonmousemove"!=h.scrollButton.type&&(0<m-i&&(_=!0,l("#imPageRowScrollButton").fadeIn()),l(".imPageRow:visible:last").on("rowFillsViewport",function(){_=!1,l("#imPageRowScrollButton").fadeOut()})),_=!n.is(l(".imPageRow:visible:last"))||0!=S.length,"visibleonmousemove"==h.scrollButton.type)&&s(),-1==S.indexOf(n)&&S.push(n)}),k.push(n)}),l(".imPageRow:visible:last").on("rowFillsViewport",function(){h.scrollButton.show&&(_=!1,"visibleonmousemove"==h.scrollButton.type)&&s()}),l("body").on("fullHeightRowsAutoscrollAnimationInProgress",function(t,e){I=!0}),l("body").on("fullHeightRowsAutoscrollAnimationCompleted",function(t,e){x=void 0,I=!1,C==(f=e)?C=void 0:null!=C&&u(C)}),l("body").on("pageToTopAnimationInProgress scrollToAnchorAnimationInProgress",function(){O=-1,T=!0}),l("body").on("pageToTopAnimationCompleted scrollToAnchorAnimationCompleted",function(){T=!1}),!c.responsive.isMobileDevice()&&h.autoscroll.active&&r(),h.scrollButton.show&&"visibleonmousemove"==h.scrollButton.type&&l(window).mousemove(function(t){!_||w===t.clientX&&y===t.clientY||(clearInterval(v),v=setInterval(d,500),l("#imPageRowScrollButton").is(":hidden")&&l("#imPageRowScrollButton").fadeIn()),w=t.clientX,y=t.clientY}),h.bullets.show){var e=k.length,i=l("<div />"),n="",o=h.bullets,t=o.position;i.attr("id","imPageRowBullets").width(o.size).height(o.size*e).css({position:"fixed","z-index":5e3,top:"calc(50% - "+o.size*e/2+"px)","inset-inline-start":"right"==t?"auto":o.distanceLeft,"inset-inline-end":"left"==t?"auto":o.distanceRight,display:"none"}),p.append(i);for(var a=0;a<e;a++)n+='<button type="button" class="clear-button-style" aria-label="'+c.l10n.get("scroll_to_row","Scroll to row:")+" "+(a+1)+'" data-row-num="'+a+'" data-row="'+k[a].attr("id")+'"></button>';i.html(n).find("button").css({display:"block","background-image":'url("'+o.url+'")',"background-repeat":"no-repeat",cursor:"pointer","background-position":"0 0"}).width(o.size).height(o.size).click(function(t){t=l("#"+l(t.target).data("row"));u(t[0],!0)}),i.fadeIn(),l.each(k,function(){var t=l(this);t.on("rowFillsHalfViewport",function(){i.find("button").each(function(){l(this).css("background-position","0 0").attr("aria-label",c.l10n.get("scroll_to_row","Scroll to row:")+" "+(parseInt(l(this).attr("data-row-num"))+1))}),i.find('[data-row="'+t.attr("id")+'"]').css("background-position",-o.size+"px 0").attr("aria-label",function(){return c.l10n.get("scroll_current_row","Current row:")+" "+(parseInt(l(this).attr("data-row-num"))+1)})})})}c.pageRowsObserver.start()}})})}(_jq,x5engine),!function(yt,xt){"use strict";yt.extend(xt,{gallery:function(t){function B(){var t=u;(++t>=d.length||null===d[t]||void 0===d[t])&&(t=0),J(t,(p||i)&&(null==v||"none"==v.css("display")||v.hasClass("screen-reader-only")&&!v.hasClass("screen-reader-only-focus")),!1,!0)}function H(){var t=u;(--t<0||null===d[t]||void 0===d[t])&&(t=d.length-1),J(t,(p||i)&&(null==v||"none"==v.css("display")||v.hasClass("screen-reader-only")&&!v.hasClass("screen-reader-only-focus")),!0,!0)}function R(){if(!i){if(i=!0,ut!==null)ut.Play();_.trigger(Z)}n=setTimeout(function(){B(),null!==n&&(clearTimeout(n),n=null),R()},d[u].AutoplayTime())}function a(){null!==ut&&ut.Pause(),null!==n&&(clearTimeout(n),n=null,d[u].Stop()),i=!1,_.trigger(K)}function N(i){var e,t,n;void 0===l.media[i]||null===l.media[i]?(null!==h&&(h.remove(),h=null),"bottom"===l.thumbs.position||"top"===l.thumbs.position?T.width(d.length*s):"embed"!==l.thumbs.position&&"none"!==l.thumbs.position&&T.height(d.length*s)):(0===i&&M.prepend(xt.settings.imLoadingAnimation),e=d.length,t=l.media[i].width,n=l.media[i].height,t>l.width&&(n=l.width/t*n,t=l.width),n>l.height&&(t=l.height/n*t,n=l.height),new xt.mediaObject(yt.extend(l.media[i],{showControls:l.media[i].showControls||p,touchDevice:p,ignoreVerticalScroll:!0,contentWidth:o().width,contentHeight:o().height,width:t,height:n,load:function(t){d[e]=t,e===l.startFrom&&(M.find(".imLoadAnim").remove(),null===h&&null!=T&&(h=yt("<div />").addClass("float-start").width(l.thumbs.size).height(l.thumbs.size).prepend(xt.settings.imLoadingAnimation),T.append(h)),J(l.startFrom),!0===l.autoplay)&&R();var n=t.GetThumb();n.css({display:"none",cursor:"pointer"}).addClass("float-start").width(l.thumbs.size).height(l.thumbs.size),"bottom"==l.thumbs.position||"top"==l.thumbs.position?n.css({"margin-block":"0","margin-inline":Math.floor(r)+"px "+Math.ceil(r)+"px"}):"left"!=l.thumbs.position&&"right"!=l.thumbs.position||n.css({"margin-block":Math.ceil(r)+"px "+Math.floor(r)+"px","margin-inline":"0"}),"embed"==l.thumbs.position&&n.mouseenter(function(){yt(".im-big-thumb").remove();var e=n.offset().left-M.offset().left,i=yt("<img />").addClass("im-big-thumb");M.append(i),i.one("load",function(){var t=Math.min(o().width-i.width(),Math.max(0,e+(l.thumbs.size-i.width())/2));i.css("left",t).fadeIn(250)}).css({position:"absolute",display:"none",bottom:l.controlBar.height}).attr("src",n.attr("src")).attr("alt",""),n.off("mouseleave").mouseleave(function(){null!==i&&i.stop(!1,!1).fadeOut(250,function(){i.remove()})})}),"bottom"!==l.thumbs.position&&"top"!==l.thumbs.position||T.width((d.length+1)*s),h?h.before(n):T&&T.append(n),n.wrap('<button type="button" class="clear-button-style" aria-label="'+xt.l10n.get("gallery_go_to_img","Show image:")+" "+(i+1)+'" style="margin: 0;"></button>'),n.fadeIn(),n.parent().click(function(){a(),J(e,("embed"!==l.thumbs.position||p)&&(!v||"none"==v.css("display")||v.hasClass("screen-reader-only")&&!v.hasClass("screen-reader-only-focus")))}),"outside"!==l.controlBar.show&&n.parent().on("focus",function(){v.addClass("screen-reader-only-focus")}).on("blur",function(){v.removeClass("screen-reader-only-focus")}),p&&!l.disableTouch&&d[e].AfterMove(function(t,e){t.preventDefault(),l.controlBar.show&&1<l.media.length&&(b.html(u+1),V.html(d.length),m.stop(!1,!1).fadeIn(),z&&(clearTimeout(z),z=null),z=setTimeout(function(){m.fadeOut()},2e3)),S&&("false"==S.attr("data-hide")?S.attr("data-hide","true"):S.stop(!1,!1).fadeOut(),X&&(clearTimeout(X),X=null),X=setTimeout(function(){S.stop(!1,!1).fadeIn()},7e3)),a(),((Math.abs(e.offsetX)>Math.abs(e.offsetY)?e.offsetX:e.offsetY)<0?B:H)()}),null!==b&&(b.html(u+1),V.html(d.length)),N(i+1)},error:function(t,e){N(i+1)}})))}function o(){return{width:"right"==l.thumbs.position||"left"==l.thumbs.position?l.width-l.thumbs.size:l.width,height:"top"==l.thumbs.position||"bottom"==l.thumbs.position?l.height-l.thumbs.size:l.height}}var r,s,e,W,j,l=yt.extend(!0,{target:"",media:[],startFrom:0,width:400,height:400,backgroundColor:"#f7f7f7",helperBg:"black",swipeImage:"res/imSwipe.png",thumbsArrowLImage:"res/imArrL.png",thumbsArrowRImage:"res/imArrR.png",thumbsArrowUImage:"res/imArrT.png",thumbsArrowDImage:"res/imArrB.png",description:{backgroundColor:"#444",color:"white",alpha:.8,alignment:"center",fontFamily:"Arial",fontSize:14,fontStyle:"normal",fontWeight:"normal"},thumbs:{position:"none",number:4,size:20},disableTouch:!1,autoplay:!1,music:null,controlBar:{show:!1,height:28,color:"#f7f7f7",alpha:1,image:null},buttons:{playImage:"",pauseImage:"",nextImage:"",prevImage:""},random:!1,fullScreen:!1,slideshow:{active:!1,nextPrevMode:"hover",buttonPrev:{url:"",x:0,y:0,width:0,height:0},buttonNext:{url:"",x:0,y:0,width:0,height:0}},bullets:{show:!1,url:null,size:22,positionX:"center",positionY:"bottom",distanceTop:30,distanceBottom:30,distanceLeft:10,distanceRight:10}},t),c=yt(l.target),d=[],u=null,h=null,p=yt("html").hasClass("touchevents"),g=null,i=!1,n=null,m=null,z=null,f=0,q=0,b=null,V=null,v=null,$=null,Y=null,w=null,y=null,x=null,C=null,k=xt.utils.hex2rgb(l.controlBar.color,-50,-50,-50),t=xt.utils.hex2rgb(l.controlBar.color,-20,-20,-20,!0),U=yt.Callbacks(),S=null,X=null,G=xt.utils.isRTL(c[0]),Z="autoplay_start",K="autoplay_stop",J=("top"===l.thumbs.position||"bottom"===l.thumbs.position?l.thumbs.number=Math.floor(l.width/l.thumbs.size):l.thumbs.number=Math.floor(l.height/l.thumbs.size),l.thumbs.number=Math.min(l.thumbs.number,l.media.length),r=("bottom"==l.thumbs.position||"top"==l.thumbs.position?l.width:l.height)%(l.thumbs.number*l.thumbs.size),r=Math.round(r/l.thumbs.number/2),s=l.thumbs.size+2*r,function(t,e,i,n){if(u===t||null==t||null===d[t]||void 0===d[t])return!1;null==e&&(e=!0),null==i&&(i=!1),null==n&&(n=!1),d[t].DOMObject().css("display","none"),null!=u?(d[u].DOMObject().after(d[t].DOMObject()),d[u].AnimateOut(M,function(t){t.DOMObject().detach()},i)):M.prepend(d[t].DOMObject()),d[u=t].AnimateIn(M,function(){n&&Q(u),U.fire(u)},i),null!==b&&(b.html(u+1),V.html(d.length));var o=d[u].GetDescription();null!=o&&""!==o?(null===g&&(g=yt("<div />").attr("id",c.attr("id")+"_description").css({position:"absolute","inset-inline":0,bottom:0,"background-color":l.description.backgroundColor,display:"none",color:l.description.color,"text-align":"left"==l.description.alignment?"start":"right"==l.description.alignment?"end":l.description.alignment,padding:2,"font-family":l.description.fontFamily,"font-size":l.description.fontSize,"font-style":l.description.fontStyle,"font-weight":l.description.fontWeight}),M.append(g)),g.stop(!1,!1).fadeOut(250,function(){g.html(o.replace(/\n/g,"<br />")),e&&g.stop(!1,!1).fadeTo(250,l.description.alpha)}),p||c.mouseenter(function(){null!==g&&g.stop(!1,!1).fadeOut(250)}).mouseleave(function(){null!==g&&g.stop(!1,!1).fadeTo(250,l.description.alpha)})):null!==g&&g.stop(!1,!1).fadeOut(250,function(){g.detach(),g=null})}),Q=function(t){var e;return!("embed"!=l.thumbs.position&&"none"!=l.thumbs.position&&l.thumbs.number>=d.length||"embed"==l.thumbs.position&&q/l.thumbs.size>=d.length)&&(t=Math.max(0,Math.min(t,d.length)),void(null!=T&&(t=t,e="embed"!=l.thumbs.position?(t="top"==l.thumbs.position||"bottom"==l.thumbs.position?s*(t+1)-I.width()/2:s*(t+1)-I.height()/2,Math.abs(t%s)):(t=l.thumbs.size*(t+1)-I.width()/2,Math.abs(t%l.thumbs.size)),s/2<e?t-=e:t+=e,"top"==l.thumbs.position||"bottom"==l.thumbs.position||"embed"==l.thumbs.position?T.stop(!1,!1).animate({"inset-inline-start":Math.min(0,Math.max(-t,-T.width()+I.width()))}):T.stop(!1,!1).animate({top:Math.min(0,Math.max(-t,-T.height()+I.height()))}))))},_=yt("<div />").css({position:"relative","background-color":l.backgroundColor,margin:"0 auto"}).width(l.width).height(l.height),M=yt("<div />").css({overflow:"hidden",position:"absolute",top:"top"!==l.thumbs.position?"0":"auto",bottom:"bottom"!==l.thumbs.position?"0":"auto","inset-inline-start":"left"!==l.thumbs.position?"0":"auto","inset-inline-end":"right"!==l.thumbs.position?"0":"auto",margin:"0 auto"}).width(o().width).height(o().height),I=yt("<div />"),T=(_.append(M),"embed"!==l.thumbs.position&&_.append(I),c.empty().append(_),"static"==c.css("position")&&c.css("position","relative"),!0!==l.controlBar.show&&"outside"!==l.controlBar.show||p||(v=yt("<div />").css({position:"absolute",top:"auto",bottom:0,"inset-inline":0,"background-color":l.controlBar.color}).height(l.controlBar.height),null===l.controlBar.image||void 0===l.controlBar.image||""===l.controlBar.image?v.css("background-image",xt.utils.cssPropertyPrefix("linear-gradient(bottom, "+xt.utils.hex2rgb(l.controlBar.color,-50,-50,-50,!0)+" 0%, "+l.controlBar.color+" 50%, "+xt.utils.hex2rgb(l.controlBar.color,50,50,50,!0)+" 100%)")):v.css("background-image",""!==l.controlBar.image&&void 0!==l.controlBar.image&&null!==l.controlBar.image?"url('"+l.controlBar.image+"')":"none"),"outside"===l.controlBar.show?M.after(v):M.append(v),e=function(){var t=null;""===l.buttons.playImage||void 0===l.buttons.playImage||null===l.buttons.playImage?(t=yt("<div />").css({"background-color":"transparent","border-style":"solid"}),i?t.css({position:"static",margin:(x.height()-16)/2+"px "+x.height()/3+"px","border-width":"0 3px","border-color":k,"border-radius":0}).width(4).height(16):t.css({margin:(x.height()-20)/2+"px "+x.height()/3+"px","border-width":10,"border-color":"transparent transparent transparent "+k,"border-radius":3}).width(1).height(1)):t=yt("<img />").attr("src",i?l.buttons.pauseImage:l.buttons.playImage),x.attr("aria-label",i?xt.l10n.get("gallery_pause","Pause"):xt.l10n.get("gallery_play","Play")),x.empty().append(t)},(x=null===l.buttons.playImage||void 0===l.buttons.playImage||""===l.buttons.playImage?yt('<button type="button" class="clear-button-style" />').css({cursor:"pointer","border-inline-end":"1px solid "+t,direction:"ltr"}).addClass("float-start").width(l.controlBar.height-1).height(l.controlBar.height):yt('<button type="button" class="clear-button-style" />').css({cursor:"pointer"}).addClass("float-start")).click(function(t){t.preventDefault(),(i?a:R)()}),e(),_.on(Z,e).on(K,e),v.append(x),e=yt("<span />").html(l.media.length+"/"+l.media.length),v.append(e),L=e.width()+(l.slideshow.active?14:54),e.remove(),e=null,m=yt("<div />").css({color:k,"line-height":l.controlBar.height+"px","font-family":"Arial",position:"absolute","inset-inline-end":0,top:0,"border-inline-start":"1px solid "+t,"text-align":"center",overflow:"hidden"}).height(l.controlBar.height).width(L),v.append(m),m.append(b=yt("<div />").css({"font-size":"11pt",display:"inline-block"})).append(yt("<div>/</div>").css({"font-size":"11pt",display:"inline-block"})).append(V=yt("<div>"+l.media.length+"</div>").css({"font-size":"11pt",display:"inline-block"})),l.slideshow.active||(w=""===l.buttons.prevImage||null===l.buttons.prevImage||void 0===l.buttons.prevImage?yt('<button type="button" class="clear-button-style" aria-label="'+xt.l10n.get("cmn_pagination_prev","Previous")+'" />').css({color:k,cursor:"pointer","font-size":l.controlBar.height-5,"padding-block":"0","padding-inline":"5px 0"}).addClass("float-start").html("<"):yt('<button type="button" class="clear-button-style" aria-label="'+xt.l10n.get("cmn_pagination_prev","Previous")+'" ><img src="'+l.buttons.prevImage+'"/></button>').css({cursor:"pointer"}),m.prepend(w.click(function(t){return t.preventDefault(),a(),H(),!1}).on("selectstart mousedown",function(){return!1})),y=""===l.buttons.nextImage||null===l.buttons.nextImage||void 0===l.buttons.nextImage?yt('<button type="button" class="clear-button-style" aria-label="'+xt.l10n.get("cmn_pagination_next","Next")+'" />').css({color:k,cursor:"pointer","font-size":l.controlBar.height-5,"padding-block":"0","padding-inline":"0 5px"}).addClass("float-end").html(">"):yt('<button type="button" class="clear-button-style" aria-label="'+xt.l10n.get("cmn_pagination_next","Next")+'" ><img src="'+l.buttons.nextImage+'"/></button>').css({cursor:"pointer"}),m.append(y.click(function(t){return t.preventDefault(),a(),B(),!1}).on("selectstart mousedown",function(){return!1}))),l.fullScreen&&(C=yt('<button type="button" class="clear-button-style" />').css({position:"absolute",top:0,"inset-inline-end":L,"border-inline-start":"1px solid "+t,cursor:"pointer"}).width(l.controlBar.height).height(l.controlBar.height).attr("aria-label",xt.l10n.get("showbox_tip_fs_enter","Enter full screen")).click(function(){for(var t=l.thumbs.position,e=l.media,i=(a(),[]),n=0;n<e.length;n++){var o=d[n].GetDescription();i[n]={url:null!==e[n].hiresUrl&&""!==e[n].hiresUrl&&void 0!==e[n].hiresUrl?e[n].hiresUrl:e[n].url,type:e[n].type,width:e[n].hiresWidth,height:e[n].hiresHeight,thumbUrl:e[n].thumbUrl,description:null!=o?o:"",alt:d[n].GetAlt(),title:d[n].GetTitle()}}xt.imShowBox({showThumbs:"none"!=t,media:i},u,yt(l.target))}),m.before(C),e=yt("<div />"),L=yt("<div />"),t=yt("<div />"),pt=yt("<div />"),C.append(e.add(L).add(t).add(pt).css({"border-color":k,"border-style":"solid",position:"absolute"}).width(3).height(3)),e.css({top:6,"inset-inline-start":6,"border-block-width":"2px 0","border-inline-width":"2px 0"}),L.css({top:6,"inset-inline-end":6,"border-block-width":"2px 0","border-inline-width":"0 2px"}),t.css({bottom:6,"inset-inline-end":6,"border-block-width":"0 2px","border-inline-width":"0 2px"}),pt.css({bottom:6,"inset-inline-start":6,"border-block-width":"0 2px","border-inline-width":"2px 0"})),f=v.width()-x.outerWidth()-m.outerWidth()-(C?C.outerWidth():0),"outside"!==l.controlBar.show&&(v.addClass("screen-reader-only").on("blur",function(){c.trigger("mouseleave")}),c.mouseenter(function(){v.stop(!1,!1).css("display","none").removeClass("screen-reader-only").fadeTo(250,l.controlBar.alpha)}).mouseleave(function(){v.stop(!1,!1).fadeOut(250,function(){yt(this).addClass("screen-reader-only").css("display","block")})}),e=x.add(C),null!=w&&(e=e.add(w)),(e=null!=y?e.add(y):e).on("focus",function(){v.addClass("screen-reader-only-focus")}).on("blur",function(){v.removeClass("screen-reader-only-focus")}))),null);switch(l.thumbs.position){case"top":case"bottom":case"left":case"right":I.css({overflow:"hidden",position:"absolute",top:"bottom"!==l.thumbs.position?0:"auto",bottom:"top"!==l.thumbs.position?0:"auto","inset-inline-start":"right"!==l.thumbs.position?0:"auto","inset-inline-end":"left"!==l.thumbs.position?0:"auto"}),I.width("bottom"===l.thumbs.position||"top"===l.thumbs.position?l.width:l.thumbs.size),I.height("bottom"===l.thumbs.position||"top"===l.thumbs.position?l.thumbs.size:l.height),T=yt("<div />"),I.append(T),"bottom"!==l.thumbs.position&&"top"!==l.thumbs.position?T.width(l.thumbs.size):"bottom"!==l.thumbs.position&&"top"!==l.thumbs.position||T.height(l.thumbs.size),T.css({position:"absolute",top:0,"inset-inline-start":0});I.offset();var tt,et,it,nt,O,ot,at,rt,A,E,F,st,D,lt=I.width(),ct=I.height(),dt=l.thumbs.number*s;p?l.disableTouch||(it=!1,nt=et=tt=null,I[O=0].addEventListener("touchstart",function(t){T.stop(!0,!1),1==t.touches.length&&(t.preventDefault(),nt=t.target,ot=Math.round(+T.css("inset-inline-start").replace(/px/g,"")),at=Math.round(+T.css("top").replace(/px/g,"")),tt=t.touches[0].pageX,et=t.touches[0].pageY),it=!1}),I[0].addEventListener("touchmove",function(t){t.preventDefault();var e=null;1==t.touches.length&&(t=t.touches[0],it=!0,T.stop(!0,!1),"top"==l.thumbs.position||"bottom"==l.thumbs.position?(O=tt-t.pageX,(0<ot-O||ot-O<-T.width()+lt)&&(O/=2),window.cancelAnimFrame(e),ot-=O,e=window.requestAnimFrame(function(){T.css({"inset-inline-start":ot})}),tt=t.pageX):(O=et-t.pageY,(0<at-O||at-O<-T.height()+ct)&&(O/=2),window.cancelAnimFrame(e),at-=O,e=window.requestAnimFrame(function(){T.css({top:at})}),et=t.pageY))}),I[0].addEventListener("touchend",function(t){var e,i;it?(T.stop(!0,!1),"top"===l.thumbs.position||"bottom"===l.thumbs.position?(i=0,d.length>l.thumbs.number&&(i=+T.css("inset-inline-start").replace(/px/g,""),i=Math.max(-T.width()+lt,Math.min(0,i-10*O))),i!==-T.width()+lt&&0!==i&&(e=Math.abs(i%s),s/2<e?i-=s-e:i+=e),T.animate({"inset-inline-start":i},{duration:1e3,easing:"iOsSwing"})):(i=0,d.length>l.thumbs.number&&(i=+T.css("top").replace(/px/g,""),i=Math.max(-T.height()+ct,Math.min(0,i-10*O))),i!==-T.height()+ct&&0!==i&&(e=Math.abs(i%s),s/2<e?i-=s-e:i+=e),T.animate({top:i},{duration:1e3,easing:"iOsSwing"})),O=0):null!==nt&&(yt(nt).click(),nt=null)})):l.media.length>l.thumbs.number&&("top"===l.thumbs.position||"bottom"===l.thumbs.position?(rt=I.height(),A=yt("<img />").width(22).one("load",function(){(A=yt('<button type="button" class="clear-button-style" aria-label="'+xt.l10n.get("cmn_pagination_prev","Previous")+'" />').append(yt(this))).css({cursor:"pointer","inset-inline-start":0,position:"absolute",display:"none"}).click(function(){var t=+T.css("inset-inline-start").replace(/px/g,"");t-=t%s,T.stop(!1,!1).animate({"inset-inline-start":Math.min(0,t+dt)})}),I.append(A),A.css("top",(rt-A.height())/2)}).attr("src",l.thumbsArrowLImage),E=yt("<img />").width(22).one("load",function(){(E=yt('<button type="button" class="clear-button-style" aria-label="'+xt.l10n.get("cmn_pagination_next","Next")+'" />').append(yt(this))).css({cursor:"pointer","inset-inline-end":0,position:"absolute",display:"none"}).click(function(){var t=+T.css("inset-inline-start").replace(/px/g,"");t-=t%s,T.stop(!1,!1).animate({"inset-inline-start":Math.max(-T.width()+lt,t-dt)})}),I.append(E),E.css("top",(rt-E.height())/2)}).attr("src",l.thumbsArrowRImage),I.mouseenter(function(){A.add(E).stop(!1,!1).fadeTo(250,.925)}).mouseleave(function(){A.add(E).stop(!1,!1).fadeOut(250)})):(F=yt("<img />"),st=I.width(),I.append(F),F.height(22).one("load",function(){(F=yt('<button type="button" class="clear-button-style" aria-label="'+xt.l10n.get("cmn_pagination_prev","Previous")+'" />').append(yt(this))).css({cursor:"pointer",top:0,position:"absolute",display:"none"}).click(function(){var t=+T.css("top").replace(/px/g,"");t-=t%s,T.animate({top:Math.min(0,t+dt)})}),I.append(F),F.css("inset-inline-start",(st-F.width())/2)}).attr("src",l.thumbsArrowUImage),D=yt("<img />"),I.append(D),D.height(22).one("load",function(){(D=yt('<button type="button" class="clear-button-style" aria-label="'+xt.l10n.get("cmn_pagination_next","Next")+'" />').append(yt(this))).css({cursor:"pointer",bottom:0,position:"absolute",display:"none"}).click(function(){var t=+T.css("top").replace(/px/g,"");t-=t%s,T.animate({top:Math.max(-T.height()+ct,t-dt)})}),I.append(D),D.css("inset-inline-start",(st-D.width())/2)}).attr("src",l.thumbsArrowDImage),I.mouseenter(function(){F.add(D).stop(!1,!1).fadeTo(250,.925)}).mouseleave(function(){F.add(D).stop(!1,!1).fadeOut(250)})));break;case"embed":l.controlBar.show&&!p&&(W=!1,j=0,q=l.width-(l.slideshow.active?110:180),(W=(q-=q%l.thumbs.size)/l.thumbs.size<l.media.length&&!p)&&(f-=46),f-=f%l.thumbs.size,j=l.width-f-(W?46:0)-(null!==x?x.width():0)-(null!==C?C.width():0)-(null!==m?m.width():0),j/=2,0<q)&&(I.css({position:"relative",overflow:"hidden","margin-top":(l.controlBar.height-l.thumbs.size)/2,"background-color":"#444"}).addClass("float-start").width(f).height(l.thumbs.size),x.after(I),T=yt("<div />").css({position:"absolute",top:0,"inset-inline-start":0}).width(l.thumbs.size*l.media.length),I.append(T),W?(I.before($=yt("<div />")),$.css({"margin-top":(l.controlBar.height-l.thumbs.size)/2+2,"margin-inline-end":3,"margin-inline-start":j,height:0,"border-width":l.thumbs.size/2-2,"border-block-color":"transparent","border-inline-color":"transparent "+k,"border-style":"solid",width:0,cursor:"pointer","border-radius":3}).addClass("float-start").click(function(){var t=+T.css("inset-inline-start").replace(/px/g,"");T.animate({"inset-inline-start":Math.min(0,t+I.width())})}),I.after(Y=yt("<div />")),Y.css({"margin-top":(l.controlBar.height-l.thumbs.size)/2+2,"margin-inline-start":3,height:0,"border-width":l.thumbs.size/2-2,"border-block-color":"transparent","border-inline-color":k+" transparent","border-style":"solid",width:0,cursor:"pointer","border-radius":3}).addClass("float-start").click(function(){var t=+T.css("inset-inline-start").replace(/px/g,"");T.animate({"inset-inline-start":Math.max(-T.width()+I.width(),t-I.width())})})):I.css("margin-inline-start",j))}l.slideshow.active&&"none"!=l.slideshow.nextPrevMode&&!p&&(yt("<img />").one("load",function(){var t=yt(this);w=yt('<button type="button" class="clear-button-style" aria-label="'+xt.l10n.get("cmn_pagination_prev")+'" />'),M.after(w.append(t)),w.css({position:"absolute",top:(o().height-l.slideshow.buttonPrev.height)/2+l.slideshow.buttonPrev.y,"inset-inline-start":l.slideshow.buttonPrev.x,cursor:"pointer"}).click(function(t){t.preventDefault(),a(),H()}),G&&w.css("transform","scaleX(-1)"),"hover"==l.slideshow.nextPrevMode&&w.addClass("screen-reader-only")}).attr("src",l.slideshow.buttonPrev.url).attr("aria-hidden","true"),yt("<img />").one("load",function(){var t=yt(this);y=yt('<button type="button" class="clear-button-style" aria-label="'+xt.l10n.get("cmn_pagination_next")+'" />'),_.append(y.append(t)),y.css({position:"absolute",top:(o().height-l.slideshow.buttonNext.height)/2+l.slideshow.buttonNext.y,"inset-inline-end":l.slideshow.buttonNext.x,cursor:"pointer"}).click(function(t){t.preventDefault(),a(),B()}),G&&y.css("transform","scaleX(-1)"),"hover"==l.slideshow.nextPrevMode&&y.addClass("screen-reader-only")}).attr("src",l.slideshow.buttonNext.url).attr("aria-hidden","true"),"hover"==l.slideshow.nextPrevMode)&&c.mouseenter(function(){w.add(y).stop(!1,!1).css("display","none").removeClass("screen-reader-only").fadeTo(250,.999)}).mouseleave(function(){w.add(y).stop(!1,!1).fadeOut(250,function(){yt(this).addClass("screen-reader-only").css("display","block")})}),!l.disableTouch&&p&&1<l.media.length&&(S=yt('<div data-hide="false" />').css({position:"absolute",bottom:0,"inset-inline-end":0}).width(30).height(30).append(yt("<div />").css({background:l.helperBg,"border-start-start-radius":5,position:"absolute",inset:0,"z-index":10}).fadeTo(0,.75)).append(yt("<div />").css({background:"transparent url('"+l.swipeImage+"') no-repeat center center",position:"absolute",inset:0,"z-index":10})).attr("data-hide","true"),M.append(S),m=yt("<div />").css({color:k,"line-height":l.controlBar.height+"px","font-family":"Arial",position:"absolute",bottom:0,"inset-inline-end":0,display:"none","z-index":10}).width(30).height(30).append(yt("<div />").css({background:l.helperBg,"border-start-start-radius":5,position:"absolute",inset:0,"z-index":10}).fadeTo(0,.75)).append(b=yt("<div>1</div>").css({"font-size":"11pt",padding:"0 5px",display:"inline-block"})).append(yt("<div>/</div>").css({"font-size":"11pt",padding:"0 5px",display:"inline-block"})).append(V=yt("<div>"+l.media.length+"</div>").css({"font-size":"11pt",padding:"0 5px",display:"inline-block"})),M.append(m));var ut=null;if(null!==l.music&&void 0!==l.music&&(ut=new xt.mediaObject({type:"audio",url:l.music})),l.bullets.show&&l.bullets.url&&1<l.media.length){var ht=yt("<div />"),P=l.bullets,L=P.positionX,t=P.positionY,pt=l.media.length*P.size;if(xt.responsive.isDesktopMode()||pt<o().width){ht.width(pt).height(P.size).css({position:"absolute",top:"top"==t?l.bullets.distanceTop:"center"==t?o().height/2-P.size/2:"auto",bottom:"bottom"==t?l.bullets.distanceBottom:"auto","inset-inline-start":"left"==L?l.bullets.distanceLeft:"center"==L?o().width/2-pt/2:"auto","inset-inline-end":"right"==L?l.bullets.distanceRight:"auto"}),M.append(ht);for(var gt="",mt=0;mt<l.media.length;mt++)gt+='<button type="button" class="clear-button-style" aria-label="'+xt.l10n.get("gallery_go_to_img","Show image:")+" "+(mt+1)+'" data-num="'+mt+'"></div>';ht.html(gt).find("button").css({display:"inline-block","background-image":"url('"+P.url+"')","background-repeat":"no-repeat",cursor:"pointer","background-position":"0 0"}).width(P.size).height(P.size).click(function(){J(+yt(this).attr("data-num"))}),U.add(function(i){ht.find("button").each(function(){var t=yt(this),e=parseInt(t.attr("data-num"));e==i?t.attr("aria-label",xt.l10n.get("gallery_current_img","Current image:")+" "+(e+1)).css("background-position",-P.size+"px 0"):t.attr("aria-label",xt.l10n.get("gallery_go_to_img","Show image:")+" "+(e+1)).css("background-position","0 0")})})}}if(l.random){for(var ft,bt,vt=l.media,wt=vt.length;wt;ft=Math.round(Math.random()*wt),bt=vt[--wt],vt[wt]=vt[ft],vt[ft]=bt);l.medias=vt}return N(0),{currentItemIndex:function(){return u},onShowMedia:function(t){return U.add(t),this},showNext:function(){return B(),this},showPrev:function(){return H(),this},stopAutoplay:function(){return a(),this},showMedia:function(t){return J(t,!0,!1,!0),this}}}})}(_jq,x5engine),!function(u,h){"use strict";u.extend(h,{imGrid:{cell:function(i){function t(){var t=i.offset();n=t.top,o=n+i.outerHeight()}function e(){var t=i.offset();a=t.left,r=a+i.outerWidth()}var n,o,a,r,s,l,c=!1;i=u(i);this.height=function(t){if(null==t)return i.height();i.height(t-(i.outerHeight()-i.height()))},this.pushY=function(t){i.css("top").match(/^([0-9]+)[a-z]*$/);var e=+RegExp.$1;i.css("top",(e+=t)+"px")},this.html=function(t){if(null==t)return i.html();i.html(t)},this.isAbsolute=function(t){if(null==t)return c;c=t},this.sy=function(){return t(),n},this.ey=function(){return t(),o},this.sx=function(){return e(),a},this.ex=function(){return e(),r},i.offset().top,s=i.css("height"),i.css("height","auto"),l=i.height(),0<i.find("[class*=imCpt]").not("iframe").length&&(l+=30),i.css("height",s),s=l,i.height()<s&&i.height(s)},init:function(){if(h.settings.imGrid.enabled){var t,e,i,n,o=[],a=[],r=u("#imFooPad"),s=0;for(0<r.length&&(i=(n=r.offset().top)+r.innerHeight()),u("[class*=imGrid]").each(function(){var t,e,i=u(this).attr("class");/imGrid\[[0-9]+,\s*[0-9]+[,]*\s*[0-9]*\]/.test(i)&&(i.match(/imGrid\[([0-9]+),\s*([0-9]+)[,]?\s*([0-9]*)\]/),i=+RegExp.$1,t=+RegExp.$2,null==o[t]&&(o[t]=[]),null==a[i]&&(a[i]=[]),(e=new h.imGrid.cell(this)).isAbsolute(1==+RegExp.$3),o[t][o[t].length]=e,a[i][a[i].length]=e)}),t=0;t<o.length;t++)if(null!=o[t]){for(e=s=0;e<o[t].length;e++){if(o[t][e].isAbsolute()&&0!==t)for(var l=0;l<o[t-1].length;l++){var c=o[t-1][l],d=o[t][e];c.ey()>d.sy()&&(c.sx()<d.ex()||c.ex()>d.sx())&&d.pushY(c.ey()-d.sy())}o[t][e].ey()>s&&(s=o[t][e].ey())}for(e=0;e<o[t].length;e++)o[t][e].height(s-o[t][e].sy())}0<r.length&&(i<s?r.remove():r.height(i-n-s-(0<u("#imBtMn").length?u("#imBtMn").outerHeight():0)))}}}})}(_jq,x5engine),!function(s,t,o){"use strict";function i(){l=[];var a=s(o).height(),r=s("#imPageExtContainer").height();s(".imImageSequence").each(function(){var t,e,i,n,o=s(this);"scroll"==(o.data("sequenceType")||"time")&&(t=o.data("sequencePosition")||0,e=o.data("sequenceCount")||1,(i=o.offset().top-a)<0&&(i=0),n=o.offset().top+o.height(),r-a<n&&(n=r-a),n=Math.abs(n-i)/e,l.push({image:o,begin:i+n*t,end:t==e-1?r:i+n*(t+1)}))}),n()}function n(){o.requestAnimationFrame(function(){var i=s(o).scrollTop();s.each(l,function(t,e){e.begin<=i&&e.end>=i?e.image.css("opacity",""):e.image.css("opacity","0")})})}function r(t,e){var i,n;setTimeout(function(){r((t+1)%e.length,e)},e[t].delay),i=t,n=e,o.requestAnimationFrame(function(){s.each(n,function(t,e){t==i?(e.image.removeClass("hidden"),e.image.removeClass("out"),e.image.addClass("in")):e.image.hasClass("in")?(e.image.removeClass("in"),e.image.addClass("out")):(e.image.removeClass("out"),e.image.addClass("hidden"))})})}var l;s.extend(t,{imageSequence:(l=[],{start:function(){i(),0<l.length&&(s(o).resize(i),s(o).scroll(n));a={},s(".imImageSequence").each(function(){var t,e,i,n,o=s(this);"time"==(o.data("sequenceType")||"time")&&(t=o.data("sequenceId")||"",e=o.data("sequencePosition")||0,i=o.data("sequenceElementDelay")||6e3,(n=a[t]||[])[e]={image:o,delay:i},a[t]=n)});var a,t,e=a;for(t in e)r(0,e[t])}})})}(_jq,x5engine,window),!function(C,k){"use strict";window.requestAnimFrame,window.cancelAnimFrame;var S=k.utils,m=k.settings;C.extend(k,{imagefx:{opacityIn:function(t,e){C(t).mouseenter(function(){C(this).stop(!1,!1).fadeTo(null,1)}).mouseleave(function(){C(this).stop(!1,!1).fadeTo(null,e)}).fadeTo(0,e)},opacityOut:function(t,e){C(t).mouseleave(function(){C(this).stop(!1,!1).fadeTo(null,1)}).mouseenter(function(){C(this).stop(!1,!1).fadeTo(null,e)})},border:function(t,i,e){function n(t,e){o.css(a,"0 0 0 "+t+"px "+i)}var o=C(t),a=S.supportsCSS("boxShadow");(o=o.parents(".template-object-wrapper").length?o.parents(".template-object-wrapper").first():o).on("mouseenter",function(){o.stop(!1,!1).animate({"fake-property":e},{step:n})}).on("mouseleave",function(t){o.stop(!1,!1).animate({"fake-property":0},{step:n})})},glow:function(t,e,i){i=i||"#FF9900",e=e||5;function n(t,e){o.css(a,"0 0 "+t+"px 0 "+i)}var o=C(t),a=S.supportsCSS("boxShadow");(o=o.parents(".template-object-wrapper").length?o.parents(".template-object-wrapper").first():o).on("mouseenter",function(){o.stop(!1,!1).animate({"fake-property":e},{step:n})}).on("mouseleave",function(t){o.stop(!1,!1).animate({"fake-property":0},{step:n})})},jump:function(i,t,e,n){n=!!n,i=C(i),t=C(t);function o(){!u&&i.is(":visible")&&(d=i.position(),i.css({position:"absolute",top:d.top,left:d.left,width:i.width(),height:i.height()}),u=!0),r=i.height(),s=r+ +t.css("padding-top").replace(/px/g,"")+ +t.css("padding-bottom").replace(/px/g,""),t.css("min-height",s+"px")}function a(){i.stop(!1,!1).animate({top:d.top,left:d.left},{duration:100,complete:function(){c.css({overflow:"hidden","z-index":l})}})}var r,s,l,c,d={top:0,left:0},u=!1,h=(i.one("load",o),i.parents("[id*=imCell_]").on("imObjectAnimationEnd",o),null),p=0,g=!0;k.utils.onElementResize(t.parent()[0],function(t,e){g||p==t.width?g=g&&!1:(p=t.width,h&&clearTimeout(h),h=setTimeout(function(){u=!1,i.css({position:"",top:"",left:"",width:"",height:""}),o()},50))}),i.parents("[id*=imCell_]").hasClass("animable")||o(),c=i.parents("[id*='imCell']"),l=c.css("z-index"),i.mouseover(function(){c.css({overflow:"visible","z-index":m.zIndex.menuCell+1}),i.stop(!1,!1).animate({top:d.top-r*e/100},{duration:100,complete:function(){n||a()}})}).mouseleave(function(){n&&a()})},rotate:function(t,e,i,n){n=n||.25;var o,a,e=C(e),r=S.supportsCSS("transform"),s=S.supportsCSS("transition"),l=null;t=C(t).css(s,"all "+n+"s ease-in-out 0s").css(r,"none"),r&&s&&(a=t.parents("[id*='imCell']"),o=a.css("z-index"),e.mouseover(function(){a.css({overflow:"visible","z-index":m.zIndex.menuCell+1}),l&&clearTimeout(l),l=setTimeout(function(){t.css(r,"rotate("+i+"deg)")},10)}).mouseleave(function(){t.css(r,"rotate(0deg)"),l&&clearTimeout(l),l=setTimeout(function(){a.css({overflow:"hidden","z-index":o})},1e3*n)}))},overlay:function(t,e,i,n){function o(){r=p.position(),s=p.height(),h=p.width(),u=n.substring(n.indexOf("-")+1),l=n.substring(0,n.indexOf("-")),a.css({width:"",height:""}),c=a[0].width,d=a[0].height,h<c&&(d=Math.ceil(h/c*d),c=h),s<d&&(c=Math.ceil(s/d*c),d=s),u=r.left+("center"==u?(h-c)/2:"right"==u?h-c:0),h=r.top+("center"==l?(s-d)/2:"bottom"==l?s-d:0),a.css({position:"absolute",top:h,left:u,"z-index":3}).width(c).height(d)}var a,r,s,l,c,d,u,h,p=C(t),e=C(e),g=(C("<img />").one("load",function(){a=C("<img />").css("display","none").one("load",function(){p.after(a),o(),a.on("mouseenter",function(){p.triggerHandler("mouseenter")}).on("mouseleave",function(){p.triggerHandler("mouseleave")}),e.on("mouseenter",function(){a.stop(!1,!0).fadeIn(250)}).on("mouseleave",function(){a.stop(!1,!0).fadeOut(250)})}).attr("src",k.settings.currentPath+i)}).attr("src",p.attr("src")),p.parents("[id*=imCell_]").on("imObjectAnimationEnd",o),null),m=0,f=!0;k.utils.onElementResize(e[0],function(t,e){f||m==t.width?f=f&&!1:(m=t.width,g&&clearTimeout(g),g=setTimeout(function(){o()},50))})},innerZoom:function(o,t,a,r,s){null==s&&(s=!0),r=C.extend({family:"tahoma",size:"8pt",color:"black",style:"normal",weight:"normal"},r),o=C(o),t=C(t);S.supportsCSS("opacity");function i(){e=o.width(),u=o.height(),m=o.attr("style")}function l(){s||(f.css("overflow","visible"),f.parent().css("overflow-y","visible"))}function c(){o.stop(!1,!1).animate({width:e*(s?2:1.5),height:u*(s?2:1.5),top:-u/(s?2:3),left:-e/(s?2:3),opacity:0},{complete:function(){v(),o.css("display","none")}})}function d(){o.css("display","block"),o.stop(!1,!1).animate({width:e,height:u,top:0,left:0,opacity:1},{complete:function(){v()}})}function n(){var t,e,i,n;o.parent().is("a")||o.wrap("<div />"),p=o.parent().css({display:"inline-block",position:"relative"}).width(o.width()).height(o.height()-4),g=p.attr("style"),h=C("<span />").css({position:"absolute",top:0,left:0,"font-family":r.family,color:r.color,"font-style":r.style,"font-weight":r.weight,"font-size":r.size,overflow:s?"hidden":"visible","text-align":"center",display:"block",width:"100%","line-height":"normal"}).html(S.htmlspecialchars_decode(a)),p.prepend(h),o.css({position:"absolute",top:0,left:0,"max-width":"none"}),p.is("a")&&p.find("a").length&&p.find("a").click(function(t){t.stopImmediatePropagation()}),"touchstart"in document||"ontouchstart"in document?function t(){p.one("click",function(){return c(),!1}).one("mouseleave.innerZoom",function(){l(),d(),t()})}():(t=o.css(k.utils.cssPropertyPrefix("clip-path")))&&0===t.indexOf("inset")&&t.match(/([\-0-9\.]+)%/g)&&0<+RegExp.$1?(e=(100-+RegExp.$1)/100*Math.max(b.height(),o.height()),i=f.offset(),n=!1,f.on("mousemove.pathInnerZoom",function(t){!n&&t.clientY-i.top<e?(l(),c(),n=!0):n&&t.clientY-i.top>e&&(l(),d(),n=!1)}).on("mouseleave.pathInnerZoom",function(){l(),d(),n=!1})):p.on("mouseenter.normalInnerZoom",function(){l(),c()}).on("mouseleave.normalInnerZoom",function(){l(),d()})}var e,u,h,p=null,g=null,m=null,f=o.parents("[id*='imCell_']"),b=o.parents(".template-object-wrapper"),v=(C("body"),function(){s||(f.css("overflow",""),f.parent().css("overflow-y",""))}),w=(o.parents("[id*=imCell_]").hasClass("animable")||i(),null),y=0,x=!0;k.utils.onElementResize(t[0],function(t,e){x||y==t.width?x=x&&!1:(y=t.width,w&&clearTimeout(w),w=setTimeout(function(){p.off("click.normalInnerZoom mouseleave.normalInnerZoom"),f.off("mousemove.pathInnerZoom mouseleave.pathInnerZoom"),p.is("a")||o.unwrap(),h&&(h.remove(),h=null),o.add(p).removeAttr("style"),m&&o.attr("style",m),g&&p&&(p.attr("style",g),p.is("a"))&&p.css({width:"100%"}),i(),n()},50))}),o.parents("[id*=imCell_]").on("imObjectAnimationEnd",function(){i(),n()}),s&&o.parent().css("overflow","hidden"),e&&u?n():o.one("load",function(){i(),n()})},pulse:function(t,e,i,n){null==n&&(n=!0),t=C(t),e=C(e);function o(){d.css("height",""),d.css("width",""),e.css("min-height",""),r=e.innerWidth()-+e.css("padding-left").replace(/px/g,"")-+e.css("padding-right").replace(/px/g,""),s=e.innerHeight()-+e.css("padding-top").replace(/px/g,"")-+e.css("padding-bottom").replace(/px/g,""),l=t.position(),d.innerWidth(r),s<=0&&(s=d.height()),e.css("min-height",e.innerHeight()+"px")}function a(){t.off("mouseover").on("mouseover",function(){c||(c=!0,t.css({position:"absolute",top:l.top,left:l.left}),n&&u.css("overflow","hidden"),t.stop(!1,!1).animate({width:Math.round(r*(1+i)),height:Math.round(s*(1+i)),top:l.top-s*(i/2),left:l.left-r*(i/2)},{duration:100,complete:function(){t.stop(!1,!1).animate({width:r,height:s,top:l.top,left:l.left},{duration:100,complete:function(){c=!1,u.css("overflow","visible"),t.css({position:"",top:"",left:"",height:"",width:""})}})}}))})}var r,s,l,c=!1,d=t.is("img")?t:t.find("img").first(),u=t.parents("[id*='imCell_'], [id*='imHeader_imCell_'], [id*='imFooter_imCell_'], .template-object-wrapper"),h=(C("body"),0<d.width()&&0<d.height()&&d.attr("src")&&!t.parents("[id*=imCell_]").hasClass("animable")?(o(),a()):d.one("load",function(){o(),a()}),t.parents("[id*=imCell_]").on("imObjectAnimationEnd",function(){o(),a()}),null),p=0,g=!0;k.utils.onElementResize(e[0],function(t,e){g||p==t.width?g=g&&!1:(p=t.width,h&&clearTimeout(h),h=setTimeout(function(){o()},50))})}}})}(_jq,x5engine),!function(){"use strict";var u,e;function l(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||o(),this.isIntersecting=!!t.intersectionRect;var t=this.boundingClientRect,t=t.width*t.height,e=this.intersectionRect,e=e.width*e.height;this.intersectionRatio=t?Number((e/t).toFixed(4)):this.isIntersecting?1:0}function t(t,e){var i,n,o,e=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(e.root&&1!=e.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(i=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,o=null,function(){o=o||setTimeout(function(){i(),o=null},n)}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(e.rootMargin),this.thresholds=this._initThresholds(e.threshold),this.root=e.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function i(t,e,i,n){"function"==typeof t.addEventListener?t.addEventListener(e,i,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,i)}function n(t,e,i,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,i,n||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,i)}function h(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?e.width&&e.height?e:{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}:o()}function o(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function a(t,e){for(var i=e;i;){if(i==t)return!0;i=p(i)}return!1}function p(t){t=t.parentNode;return t&&11==t.nodeType&&t.host?t.host:t&&t.assignedSlot?t.assignedSlot.parentNode:t}"object"==typeof window&&("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return 0<this.intersectionRatio}}):(u=window.document,e=[],t.prototype.THROTTLE_TIMEOUT=100,t.prototype.POLL_INTERVAL=null,t.prototype.USE_MUTATION_OBSERVER=!0,t.prototype.observe=function(e){var t=this._observationTargets.some(function(t){return t.element==e});if(!t){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},t.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},t.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},t.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},t.prototype._initThresholds=function(t){t=t||[0];return(t=Array.isArray(t)?t:[t]).sort().filter(function(t,e,i){if("number"!=typeof t||isNaN(t)||t<0||1<t)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==i[e-1]})},t.prototype._parseRootMargin=function(t){t=(t||"0px").split(/\s+/).map(function(t){t=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(t)return{value:parseFloat(t[1]),unit:t[2]};throw new Error("rootMargin must be specified in pixels or percent")});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},t.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(i(window,"resize",this._checkForIntersections,!0),i(u,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(u,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},t.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,n(window,"resize",this._checkForIntersections,!0),n(u,"scroll",this._checkForIntersections,!0),this._domObserver)&&(this._domObserver.disconnect(),this._domObserver=null)},t.prototype._checkForIntersections=function(){var r=this._rootIsInDom(),s=r?this._getRootRect():o();this._observationTargets.forEach(function(t){var e=t.element,i=h(e),n=this._rootContainsTarget(e),o=t.entry,a=r&&n&&this._computeTargetAndRootIntersection(e,s),t=t.entry=new l({time:window.performance&&performance.now&&performance.now(),target:e,boundingClientRect:i,rootBounds:s,intersectionRect:a});o?r&&n?this._hasCrossedThreshold(o,t)&&this._queuedEntries.push(t):o&&o.isIntersecting&&this._queuedEntries.push(t):this._queuedEntries.push(t)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},t.prototype._computeTargetAndRootIntersection=function(t,e){if("none"!=window.getComputedStyle(t).display){for(var i,n,o,a,r=h(t),s=p(t),l=!1;!l;){var c=null,d=1==s.nodeType?window.getComputedStyle(s):{};if("none"==d.display)return;if(s==this.root||s==u?(l=!0,c=e):s!=u.body&&s!=u.documentElement&&"visible"!=d.overflow&&(c=h(s)),c&&(d=c,c=r,a=o=n=i=void 0,i=Math.max(d.top,c.top),n=Math.min(d.bottom,c.bottom),o=Math.max(d.left,c.left),d=Math.min(d.right,c.right),a=n-i,!(r=0<=(c=d-o)&&0<=a&&{top:i,bottom:n,left:o,right:d,width:c,height:a})))break;s=p(s)}return r}},t.prototype._getRootRect=function(){var t,e;return e=this.root?h(this.root):(e=u.documentElement,t=u.body,{top:0,left:0,right:e.clientWidth||t.clientWidth,width:e.clientWidth||t.clientWidth,bottom:e.clientHeight||t.clientHeight,height:e.clientHeight||t.clientHeight}),this._expandRectByRootMargin(e)},t.prototype._expandRectByRootMargin=function(i){var t=this._rootMarginValues.map(function(t,e){return"px"==t.unit?t.value:t.value*(e%2?i.width:i.height)/100}),t={top:i.top-t[0],right:i.right+t[1],bottom:i.bottom+t[2],left:i.left-t[3]};return t.width=t.right-t.left,t.height=t.bottom-t.top,t},t.prototype._hasCrossedThreshold=function(t,e){var i=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(i!==n)for(var o=0;o<this.thresholds.length;o++){var a=this.thresholds[o];if(a==i||a==n||a<i!=a<n)return!0}},t.prototype._rootIsInDom=function(){return!this.root||a(u,this.root)},t.prototype._rootContainsTarget=function(t){return a(this.root||u,t)},t.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},t.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=t,window.IntersectionObserverEntry=l))}(),!function(l,t){var T={dir:"",bindClass:"color",binding:!0,preloading:!0,install:function(){T.addEvent(window,"load",T.init)},init:function(){T.binding&&T.bind(),T.preloading&&T.preload()},getDir:function(){var t;return T.dir||(t=T.detectDir(),T.dir=!1!==t?t:"jscolor/"),T.dir},detectDir:function(){for(var t,e=location.href,i=document.getElementsByTagName("base"),n=0;n<i.length;n+=1)i[n].href&&(e=i[n].href);for(i=document.getElementsByTagName("script"),n=0;n<i.length;n+=1)if(i[n].src&&/(^|\/)jscolor\.js([?#].*)?$/i.test(i[n].src))return(t=new T.URI(i[n].src).toAbsolute(e)).path=t.path.replace(/[^\/]+$/,""),t.query=null,t.fragment=null,t.toString();return!1},bind:function(){for(var t,e=new RegExp("(^|\\s)("+T.bindClass+")(\\s*(\\{[^}]*\\})|\\s|$)","i"),i=document.getElementsByTagName("input"),n=0;n<i.length;n+=1)if(!i[n].color&&i[n].className&&(t=i[n].className.match(e))){var o={};if(t[4])try{o=new Function("return ("+t[4]+")")()}catch(t){}i[n].color=new T.color(i[n],o)}},preload:function(){for(var t in T.imgRequire)T.imgRequire.hasOwnProperty(t)&&T.loadImage(t)},images:{pad:[181,101],sld:[16,101],cross:[15,15],arrow:[7,11]},imgRequire:{},imgLoaded:{},requireImage:function(t){T.imgRequire[t]=!0},loadImage:function(t){T.imgLoaded[t]||(T.imgLoaded[t]=new Image,T.imgLoaded[t].src=T.getDir()+t)},fetchElement:function(t){return"string"==typeof t?document.getElementById(t):t},addEvent:function(t,e,i){t.addEventListener?t.addEventListener(e,i,!1):t.attachEvent&&t.attachEvent("on"+e,i)},fireEvent:function(t,e){var i;t&&(document.createEvent?((i=document.createEvent("HTMLEvents")).initEvent(e,!0,!0),t.dispatchEvent(i)):document.createEventObject?(i=document.createEventObject(),t.fireEvent("on"+e,i)):t["on"+e]&&t["on"+e]())},getElementPos:function(t){var e=t,i=t,n=0,o=0;if(e.offsetParent)for(;n+=e.offsetLeft,o+=e.offsetTop,e=e.offsetParent;);for(;(i=i.parentNode)&&"BODY"!==i.nodeName.toUpperCase();)n-=i.scrollLeft,o-=i.scrollTop;return[n,o]},getElementSize:function(t){return[t.offsetWidth,t.offsetHeight]},getRelMousePos:function(t){var e=0,i=0;return"number"==typeof(t=t||window.event).offsetX?(e=t.offsetX,i=t.offsetY):"number"==typeof t.layerX&&(e=t.layerX,i=t.layerY),{x:e,y:i}},getViewPos:function(){return"number"==typeof window.pageYOffset?[window.pageXOffset,window.pageYOffset]:document.body&&(document.body.scrollLeft||document.body.scrollTop)?[document.body.scrollLeft,document.body.scrollTop]:document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)?[document.documentElement.scrollLeft,document.documentElement.scrollTop]:[0,0]},getViewSize:function(){return"number"==typeof window.innerWidth?[window.innerWidth,window.innerHeight]:document.body&&(document.body.clientWidth||document.body.clientHeight)?[document.body.clientWidth,document.body.clientHeight]:document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?[document.documentElement.clientWidth,document.documentElement.clientHeight]:[0,0]},URI:function(t){function n(t){for(var e,i="";t;)"../"===t.substr(0,3)||"./"===t.substr(0,2)?t=t.replace(/^\.+/,"").substr(1):"/./"===t.substr(0,3)||"/."===t?t="/"+t.substr(3):"/../"===t.substr(0,4)||"/.."===t?(t="/"+t.substr(4),i=i.replace(/\/?[^\/]*$/,"")):"."===t||".."===t?t="":(e=t.match(/^\/?[^\/]*/)[0],t=t.substr(e.length),i+=e);return i}this.scheme=null,this.authority=null,this.path="",this.query=null,this.fragment=null,this.parse=function(t){t=t.match(/^(([A-Za-z][0-9A-Za-z+.-]*)(:))?((\/\/)([^\/?#]*))?([^?#]*)((\?)([^#]*))?((#)(.*))?/);return this.scheme=t[3]?t[2]:null,this.authority=t[5]?t[6]:null,this.path=t[7],this.query=t[9]?t[10]:null,this.fragment=t[12]?t[13]:null,this},this.toString=function(){var t="";return null!==this.scheme&&(t=t+this.scheme+":"),null!==this.authority&&(t=t+"//"+this.authority),null!==this.path&&(t+=this.path),null!==this.query&&(t=t+"?"+this.query),t=null!==this.fragment?t+"#"+this.fragment:t},this.toAbsolute=function(t){var t=new T.URI(t),e=this,i=new T.URI;return null!==t.scheme&&(null!==e.scheme&&e.scheme.toLowerCase()===t.scheme.toLowerCase()&&(e.scheme=null),null!==e.scheme?(i.scheme=e.scheme,i.authority=e.authority,i.path=n(e.path),i.query=e.query):(null!==e.authority?(i.authority=e.authority,i.path=n(e.path),i.query=e.query):(""===e.path?(i.path=t.path,null!==e.query?i.query=e.query:i.query=t.query):("/"===e.path.substr(0,1)?i.path=n(e.path):(null!==t.authority&&""===t.path?i.path="/"+e.path:i.path=t.path.replace(/[^\/]+$/,"")+e.path,i.path=n(i.path)),i.query=e.query),i.authority=t.authority),i.scheme=t.scheme),i.fragment=e.fragment,i)},t&&this.parse(t)},color:function(p,t){for(var e in this.required=!0,this.adjust=!0,this.hash=!1,this.caps=!0,this.slider=!0,this.valueElement=p,this.styleElement=p,this.onImmediateChange=null,this.hsv=[0,0,1],this.rgb=[1,1,1],this.minH=0,this.maxH=6,this.minS=0,this.maxS=1,this.minV=0,this.maxV=1,this.pickerOnfocus=!0,this.pickerMode="HSV",this.pickerPosition="bottom",this.pickerSmartPosition=!0,this.pickerButtonHeight=20,this.pickerClosable=!1,this.pickerCloseText="Close",this.pickerButtonColor="ButtonText",this.pickerFace=10,this.pickerFaceColor="ThreeDFace",this.pickerBorder=1,this.pickerBorderColor="ThreeDHighlight ThreeDShadow ThreeDShadow ThreeDHighlight",this.pickerInset=1,this.pickerInsetColor="ThreeDShadow ThreeDHighlight ThreeDHighlight ThreeDShadow",this.pickerZIndex=1e4,t)t.hasOwnProperty(e)&&(this[e]=t[e]);function c(t,e,i){if(null===t)return[i,i,i];var n=Math.floor(t),o=i*(1-e),a=i*(1-e*(n%2?t-n:1-(t-n)));switch(n){case 6:case 0:return[i,a,o];case 1:return[a,i,o];case 2:return[o,i,a];case 3:return[o,a,i];case 4:return[a,o,i];case 5:return[i,o,a]}}function g(t){return[2*t.pickerInset+2*t.pickerFace+T.images.pad[0]+(t.slider?2*t.pickerInset+2*T.images.arrow[0]+T.images.sld[0]:0),t.pickerClosable?4*t.pickerInset+3*t.pickerFace+T.images.pad[1]+t.pickerButtonHeight:2*t.pickerInset+2*t.pickerFace+T.images.pad[1]]}function m(){switch(C){case 0:var t=1;break;case 1:t=2}var e=Math.round(x.hsv[0]/6*(T.images.pad[0]-1)),i=Math.round((1-x.hsv[t])*(T.images.pad[1]-1)),n=(T.picker.padM.style.backgroundPosition=x.pickerFace+x.pickerInset+e-Math.floor(T.images.cross[0]/2)+"px "+(x.pickerFace+x.pickerInset+i-Math.floor(T.images.cross[1]/2))+"px",T.picker.sld.childNodes);switch(C){case 0:for(var o=c(x.hsv[0],x.hsv[1],1),a=0;a<n.length;a+=1)n[a].style.backgroundColor="rgb("+o[0]*(1-a/n.length)*100+"%,"+o[1]*(1-a/n.length)*100+"%,"+o[2]*(1-a/n.length)*100+"%)";break;case 1:var r,s=[x.hsv[2],0,0],l=(a=Math.floor(x.hsv[0]))%2?x.hsv[0]-a:1-(x.hsv[0]-a);switch(a){case 6:case 0:o=[0,1,2];break;case 1:o=[1,0,2];break;case 2:o=[2,0,1];break;case 3:o=[2,1,0];break;case 4:o=[1,2,0];break;case 5:o=[0,2,1]}for(a=0;a<n.length;a+=1)r=1-1/(n.length-1)*a,s[1]=s[0]*(1-r*l),s[2]=s[0]*(1-r),n[a].style.backgroundColor="rgb("+100*s[o[0]]+"%,"+100*s[o[1]]+"%,"+100*s[o[2]]+"%)"}}function f(){switch(C){case 0:var t=2;break;case 1:t=1}var e=Math.round((1-x.hsv[t])*(T.images.sld[1]-1));T.picker.sldM.style.backgroundPosition="0 "+(x.pickerFace+x.pickerInset+e-Math.floor(T.images.arrow[1]/2))+"px"}function b(){return T.picker&&T.picker.owner===x}function v(t){var t=T.getRelMousePos(t),e=t.x-x.pickerFace-x.pickerInset,i=t.y-x.pickerFace-x.pickerInset;switch(C){case 0:x.fromHSV(e*(6/(T.images.pad[0]-1)),1-i/(T.images.pad[1]-1),null,s);break;case 1:x.fromHSV(e*(6/(T.images.pad[0]-1)),null,1-i/(T.images.pad[1]-1),s)}}function w(t){var e=T.getRelMousePos(t).y-x.pickerFace-x.pickerInset;switch(C){case 0:x.fromHSV(null,null,1-e/(T.images.sld[1]-1),r);break;case 1:x.fromHSV(null,1-e/(T.images.sld[1]-1),null,r)}}function y(){x.onImmediateChange&&("string"==typeof x.onImmediateChange?new Function(x.onImmediateChange):x.onImmediateChange).call(x)}this.hidePicker=function(){b()&&(delete T.picker.owner,document.getElementsByTagName("body")[0].removeChild(T.picker.boxB))},this.showPicker=function(){if(!b()){var t,e,i,n=T.getElementPos(p),o=T.getElementSize(p),a=T.getViewPos(),r=T.getViewSize(),s=g(this);switch(this.pickerPosition.toLowerCase()){case"left":e=0,i=-(t=1);break;case"right":e=0,i=t=1;break;case"top":t=0,i=-(e=1);break;default:t=0,i=e=1}var l=(o[e]+s[e])/2,a=(s=this.pickerSmartPosition?[-a[t]+n[t]+s[t]>r[t]&&-a[t]+n[t]+o[t]/2>r[t]/2&&0<=n[t]+o[t]-s[t]?n[t]+o[t]-s[t]:n[t],-a[e]+n[e]+o[e]+s[e]-l+l*i>r[e]?-a[e]+n[e]+o[e]/2>r[e]/2&&0<=n[e]+o[e]-l-l*i?n[e]+o[e]-l-l*i:n[e]+o[e]-l+l*i:0<=n[e]+o[e]-l+l*i?n[e]+o[e]-l+l*i:n[e]+o[e]-l-l*i]:[n[t],n[e]+o[e]-l+l*i])[t],r=s[e];if(!T.picker){T.picker={box:document.createElement("div"),boxB:document.createElement("div"),pad:document.createElement("div"),padB:document.createElement("div"),padM:document.createElement("div"),sld:document.createElement("div"),sldB:document.createElement("div"),sldM:document.createElement("div"),btn:document.createElement("div"),btnS:document.createElement("span"),btnT:document.createTextNode(x.pickerCloseText)};for(var c=0;c<T.images.sld[1];c+=4){var d=document.createElement("div");d.style.height="4px",d.style.fontSize="1px",d.style.lineHeight="0",T.picker.sld.appendChild(d)}T.picker.sldB.appendChild(T.picker.sld),T.picker.box.appendChild(T.picker.sldB),T.picker.box.appendChild(T.picker.sldM),T.picker.padB.appendChild(T.picker.pad),T.picker.box.appendChild(T.picker.padB),T.picker.box.appendChild(T.picker.padM),T.picker.btnS.appendChild(T.picker.btnT),T.picker.btn.appendChild(T.picker.btnS),T.picker.box.appendChild(T.picker.btn),T.picker.boxB.appendChild(T.picker.box)}var n=T.picker,u=(n.box.onmouseup=n.box.onmouseout=function(){p.focus()},n.box.onmousedown=function(){k=!0},n.box.onmousemove=function(t){(_||M)&&(_&&v(t),M&&w(t),document.selection?document.selection.empty():window.getSelection&&window.getSelection().removeAllRanges(),y())},"ontouchstart"in window&&(u=function(t){var e={offsetX:t.touches[0].pageX-I.X,offsetY:t.touches[0].pageY-I.Y};(_||M)&&(_&&v(e),M&&w(e),y()),t.stopPropagation(),t.preventDefault()},n.box.removeEventListener("touchmove",u,!1),n.box.addEventListener("touchmove",u,!1)),n.padM.onmouseup=n.padM.onmouseout=function(){_&&(_=!1,T.fireEvent(S,"change"))},n.padM.onmousedown=function(t){switch(C){case 0:0===x.hsv[2]&&x.fromHSV(null,null,1);break;case 1:0===x.hsv[1]&&x.fromHSV(null,1,null)}_=!(M=!1),v(t),y()},"ontouchstart"in window&&n.padM.addEventListener("touchstart",function(t){I={X:t.target.offsetParent.offsetLeft,Y:t.target.offsetParent.offsetTop},this.onmousedown({offsetX:t.touches[0].pageX-I.X,offsetY:t.touches[0].pageY-I.Y})}),n.sldM.onmouseup=n.sldM.onmouseout=function(){M&&(M=!1,T.fireEvent(S,"change"))},n.sldM.onmousedown=function(t){M=!(_=!1),w(t),y()},"ontouchstart"in window&&n.sldM.addEventListener("touchstart",function(t){I={X:t.target.offsetParent.offsetLeft,Y:t.target.offsetParent.offsetTop},this.onmousedown({offsetX:t.touches[0].pageX-I.X,offsetY:t.touches[0].pageY-I.Y})}),g(x));n.box.style.width=u[0]+"px",n.box.style.height=u[1]+"px",n.boxB.style.position="absolute",n.boxB.style.clear="both",n.boxB.style.left=a+"px",n.boxB.style.top=r+"px",n.boxB.style.zIndex=x.pickerZIndex,n.boxB.style.border=x.pickerBorder+"px solid",n.boxB.style.borderColor=x.pickerBorderColor,n.boxB.style.background=x.pickerFaceColor,n.pad.style.width=T.images.pad[0]+"px",n.pad.style.height=T.images.pad[1]+"px",n.padB.style.position="absolute",n.padB.style.left=x.pickerFace+"px",n.padB.style.top=x.pickerFace+"px",n.padB.style.border=x.pickerInset+"px solid",n.padB.style.borderColor=x.pickerInsetColor,n.padM.style.position="absolute",n.padM.style.left="0",n.padM.style.top="0",n.padM.style.width=x.pickerFace+2*x.pickerInset+T.images.pad[0]+T.images.arrow[0]+"px",n.padM.style.height=n.box.style.height,n.padM.style.cursor="crosshair",n.sld.style.overflow="hidden",n.sld.style.width=T.images.sld[0]+"px",n.sld.style.height=T.images.sld[1]+"px",n.sldB.style.display=x.slider?"block":"none",n.sldB.style.position="absolute",n.sldB.style.right=x.pickerFace+"px",n.sldB.style.top=x.pickerFace+"px",n.sldB.style.border=x.pickerInset+"px solid",n.sldB.style.borderColor=x.pickerInsetColor,n.sldM.style.display=x.slider?"block":"none",n.sldM.style.position="absolute",n.sldM.style.right="0",n.sldM.style.top="0",n.sldM.style.width=T.images.sld[0]+T.images.arrow[0]+x.pickerFace+2*x.pickerInset+"px",n.sldM.style.height=n.box.style.height;try{n.sldM.style.cursor="pointer"}catch(t){n.sldM.style.cursor="hand"}n.btn.style.display=x.pickerClosable?"block":"none",n.btn.style.position="absolute",n.btn.style.left=x.pickerFace+"px",n.btn.style.bottom=x.pickerFace+"px",n.btn.style.padding="0 15px",n.btn.style.height="18px",n.btn.style.border=x.pickerInset+"px solid";o=(o=x.pickerInsetColor.split(/\s+/)).length<2?o[0]:o[1]+" "+o[0]+" "+o[0]+" "+o[1];n.btn.style.borderColor=o,n.btn.style.color=x.pickerButtonColor,n.btn.style.font="12px sans-serif",n.btn.style.textAlign="center";try{n.btn.style.cursor="pointer"}catch(t){n.btn.style.cursor="hand"}switch(n.btn.onmousedown=function(){x.hidePicker()},n.btnS.style.lineHeight=n.btn.style.height,C){case 0:var h="hs.png";break;case 1:h="hv.png"}n.padM.style.backgroundImage="url('"+T.getDir()+"cross.gif')",n.padM.style.backgroundRepeat="no-repeat",n.sldM.style.backgroundImage="url('"+T.getDir()+"arrow.gif')",n.sldM.style.backgroundRepeat="no-repeat",n.pad.style.backgroundImage="url('"+T.getDir()+h+"')",n.pad.style.backgroundRepeat="no-repeat",n.pad.style.backgroundPosition="0 0",m(),f(),T.picker.owner=x,document.getElementsByTagName("body")[0].appendChild(n.boxB),T.fireEvent(p,"pickerReady")}},this.importColor=function(){S?this.adjust?!this.required&&/^\s*$/.test(S.value)?(S.value="",n.style.backgroundImage=n.jscStyle.backgroundImage,n.style.backgroundColor=n.jscStyle.backgroundColor,n.style.color=n.jscStyle.color,this.exportColor(o|a)):this.fromString(S.value)||this.exportColor():this.fromString(S.value,o)||(n.style.backgroundImage=n.jscStyle.backgroundImage,n.style.backgroundColor=n.jscStyle.backgroundColor,n.style.color=n.jscStyle.color,this.exportColor(o|a)):this.exportColor()},this.exportColor=function(t){var e;t&o||!S||(e=this.toString(),this.caps&&(e=e.toUpperCase()),this.hash&&(e="#"+e),S.value=e,l(S).triggerHandler("change")),t&a||!n||(n.style.backgroundImage="none",n.style.backgroundColor="#"+this.toString(),n.style.color=.213*this.rgb[0]+.715*this.rgb[1]+.072*this.rgb[2]<.5?"#FFF":"#000"),t&r||!b()||m(),t&s||!b()||f()},this.fromHSV=function(t,e,i,n){null!==t&&(t=Math.max(0,this.minH,Math.min(6,this.maxH,t))),null!==e&&(e=Math.max(0,this.minS,Math.min(1,this.maxS,e))),null!==i&&(i=Math.max(0,this.minV,Math.min(1,this.maxV,i))),this.rgb=c(null===t?this.hsv[0]:this.hsv[0]=t,null===e?this.hsv[1]:this.hsv[1]=e,null===i?this.hsv[2]:this.hsv[2]=i),this.exportColor(n)},this.fromRGB=function(t,e,i,n){null!==t&&(t=Math.max(0,Math.min(1,t))),null!==e&&(e=Math.max(0,Math.min(1,e))),null!==i&&(i=Math.max(0,Math.min(1,i)));t=function(t,e,i){var n=Math.min(Math.min(t,e),i),o=Math.max(Math.max(t,e),i),a=o-n;if(0==a)return[null,0,o];n=t===n?3+(i-e)/a:e===n?5+(t-i)/a:1+(e-t)/a;return[6==n?0:n,a/o,o]}(null===t?this.rgb[0]:t,null===e?this.rgb[1]:e,null===i?this.rgb[2]:i),null!==t[0]&&(this.hsv[0]=Math.max(0,this.minH,Math.min(6,this.maxH,t[0]))),0!==t[2]&&(this.hsv[1]=null===t[1]?null:Math.max(0,this.minS,Math.min(1,this.maxS,t[1]))),this.hsv[2]=null===t[2]?null:Math.max(0,this.minV,Math.min(1,this.maxV,t[2])),e=c(this.hsv[0],this.hsv[1],this.hsv[2]);this.rgb[0]=e[0],this.rgb[1]=e[1],this.rgb[2]=e[2],this.exportColor(n)},this.fromString=function(t,e){t=t.match(/^\W*([0-9A-F]{3}([0-9A-F]{3})?)\W*$/i);return!!t&&(6===t[1].length?this.fromRGB(parseInt(t[1].substr(0,2),16)/255,parseInt(t[1].substr(2,2),16)/255,parseInt(t[1].substr(4,2),16)/255,e):this.fromRGB(parseInt(t[1].charAt(0)+t[1].charAt(0),16)/255,parseInt(t[1].charAt(1)+t[1].charAt(1),16)/255,parseInt(t[1].charAt(2)+t[1].charAt(2),16)/255,e),!0)},this.toString=function(){return(256|Math.round(255*this.rgb[0])).toString(16).substr(1)+(256|Math.round(255*this.rgb[1])).toString(16).substr(1)+(256|Math.round(255*this.rgb[2])).toString(16).substr(1)};var i,x=this,C="hvs"===this.pickerMode.toLowerCase()?1:0,k=!1,S=T.fetchElement(this.valueElement),n=T.fetchElement(this.styleElement),_=!1,M=!1,I={},o=1,a=2,r=4,s=8;switch(T.addEvent(p,"focus",function(){x.pickerOnfocus&&x.showPicker()}),T.addEvent(p,"blur",function(){k?k=!1:window.setTimeout(function(){k||(S===p&&x.importColor(),x.pickerOnfocus&&x.hidePicker()),k=!1},0)}),S&&(T.addEvent(S,"keyup",i=function(){x.fromString(S.value,o),y()}),T.addEvent(S,"input",i),T.addEvent(S,"blur",function(){S!==p&&x.importColor()}),S.setAttribute("autocomplete","off")),n&&(n.jscStyle={backgroundImage:n.style.backgroundImage,backgroundColor:n.style.backgroundColor,color:n.style.color}),C){case 0:T.requireImage("hs.png");break;case 1:T.requireImage("hv.png")}T.requireImage("cross.gif"),T.requireImage("arrow.gif"),this.importColor()}};l.extend(t,{jscolor:T}),T.install()}(_jq,x5engine),!function(V,$,Y){"use strict";V.extend($,{mediaObject:function(t){function n(t){function e(){E=V("<img />"),O.thumb?E.attr("src",O.thumb):"string"!=typeof O.url||null===O.url||-1==O.url.indexOf(".gif")&&-1==O.url.indexOf(".png")&&-1==O.url.indexOf(".jpg")&&-1==O.url.indexOf(".jpeg")||E.attr("src",O.url),E.css("cursor","pointer"),E.attr("alt",O.alt||""),O.title&&E.attr("title",O.title),"random"!=O.effect&&(D=$.effects[O.effect]||(!$.effects[O.effect]&&$.effects.fade?$.effects.fade:{animateIn:function(t,e,i,n,o){t=t.DOMObject();i=V(i),t.css({position:"absolute",top:0,"inset-inline-start":0}),i.append(t),t.show(0),V.isFunction(n)&&n()},animateOut:function(t,e,i,n){V(t.DOMObject()).detach(),V.isFunction(i)&&i()}})),O.touchDevice&&"html"!=O.type&&A.on("animate_in_start",function(){A.parent().off("touchstart").on("touchstart",R),A.parent().off("touchmove").on("touchmove",N),A.parent().off("touchend").on("touchend",W),A.off("gesturestart").on("gesturestart",j),A.off("gesturechange").on("gesturechange",z),A.off("gestureend").on("gestureend",q)}),V.isFunction(t)&&t(F)}A&&(A.remove(),A=null);var i="",n=null,o=0,a={},r=!1,s="",l="";switch(O.type){case"video":var c,d,u,h,p,g,m,f,b,v,r=!1;if("string"==typeof O.url&&(O.url=[{src:O.url}]),"object"==typeof O.url)for(o=0;o<O.url.length&&!r;o++)r|=0<O.url[o].src.search(/\.(mp4|webm|ogg|flac)/gi);d=O.width&&O.contentWidth?Math.min(O.width,O.contentWidth):Math.max(O.width,O.contentWidth),u=O.height&&O.contentHeight?Math.min(O.height,O.contentHeight):Math.max(O.height,O.contentHeight),A=V("<div />").width("100%").attr({"data-width":d,"data-height":u}),r?(h=null,p=function(){v("play")},g=function(){v("pause")},A.on("animate_out_start",function(){null!==h&&(!0!==h.paused&&h.pause(),h.removeEventListener("play",p),h.removeEventListener("pause",g))}),A.on("animate_in_end",function(){if(A.empty(),c=V("<video />").width("100%").attr({width:"100%",height:"100%",controls:!0,controlsList:"nodownload"}),$.utils.isOnline()&&c.attr("preload","metadata"),O.alt&&c.attr("aria-label",O.alt),O.title&&c.attr("title",O.title),1<O.url.length)for(var t in O.url)c.append(V("<source />").attr("src",O.url[t].src));else{for(var e in O.url)c.attr("src",O.url[e].src);c.on("error",function(t){var e=V('<div class="object-generic-error"><div><div>'+$.l10n.get("error_notsupported_video")+"</div></div></div>");e.css({height:u,width:d,"max-height":"100%","max-width":"100%"}),c.replaceWith(e)})}A.css({height:u,width:d,"max-height":"100%","max-width":"100%"}).attr({cursor:"pointer"}).append(c),h=c.get(0);function i(){var t=(A.width()-c.outerWidth())/2,e=(A.height()-c.outerHeight())/2;c.css({margin:e+"px "+t+"px"})}h.addEventListener("loadeddata",i),h.addEventListener("play",function(){i(),p()}),h.addEventListener("pause",g)}),m=function(){4!=h.readyState&&(h.removeEventListener("load",F.Play,!1),h.addEventListener("load",F.Play,!1),h.removeEventListener("canplaythrough",F.Play,!1),h.addEventListener("canplaythrough",F.Play,!1))},f="pause",b=null,v=function(t){t!=f&&(f=t,A.triggerHandler("status_change",[f]),null!==b&&clearInterval(b),"play"==t)&&(b=setInterval(function(){A.triggerHandler("playing",[h.currentTime])},500))},F.Play=function(){return void 0!==h.play&&(h.removeEventListener("onreadystatechange",m,!1),h.addEventListener("onreadystatechange",m,!1),h.play(),m(),v("play"),!0)},F.Pause=function(){return!!h.pause&&(h.pause(),v("pause"),!0)},F.Stop=function(){return F.Pause()},F.Volume=function(t){return null!=t?h.volume=t:h.volume},F.CurrentPosition=function(t){return null!=t?h.currentTime=t:h.currentTime},F.Duration=function(){return h.duration},F.Progress=function(){return h.buffered?h.buffered.length:0},F.FullScreen=function(){}):A=void 0!==a["video/mov"]||void 0!==a["video/aiff"]||void 0!==a["video/m4a"]?(I='<object width="'+d+'" height="'+u+'" type="application/quicktime">\n',I=(I=(I=(I+='\t<param name="codebase" value="http://www.apple.com/qtactivex/qtplugin.cab">\n')+'\t<param name="src" value="'+(_=a["video/mov"]||a["video/aiff"]||a["video/m4a"])+'">\n\t<param name="autoplay" value="'+(O.autoPlay?"true":"false")+'">\n')+'\t<param name="controller" value="'+(O.showVideoControls?"true":"false")+'">\n')+'\t<embed src="'+_+'" width="'+d+'" height="'+u+'" autoplay="'+(O.autoPlay?"true":"false")+'" controller="'+(O.showVideoControls?"true":"false")+'" pluginspage="http://www.apple.com/quicktime/download/" />',V(I+="</object>")):(_="",/MSIE/.test(navigator.userAgent)&&(_=(_=(_=(_+='\t<object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="'+d+'" height="'+u+'">\n')+'\t\t<param name="url" value="'+a[0]+'" />\n\t\t<param name="ShowControls" value="'+(O.showVideoControls?"1":"0")+'" />\n')+'\t\t<param name="uiMode" value="'+(O.showVideoControls?"full":"none")+'" />\n')+'\t\t<param name="autostart" value="'+(O.autoPlay?"true":"false")+'" />\n\t\t<param name="ShowDisplay" value="false">\n\t\t<param name="ShowStatusBar" value="false">\n\t\t<param name="ShowDisplay" value="false">\n'),_=(_=(_=(_=(_=(_+='<object width="'+d+'" height="'+u+'" type="application/x-mplayer2">\n')+'\t<param name="url" value="'+a[0]+'" />\n\t<param name="ShowControls" value="'+(O.showVideoControls?"1":"0")+'" />\n')+'\t<param name="uiMode" value="'+(O.showVideoControls?"full":"none")+'" />\n')+'\t<param name="autostart" value="'+(O.autoPlay?"true":"false")+'" />\n\t<param name="ShowDisplay" value="false">\n\t<param name="ShowStatusBar" value="false">\n')+'\t<param name="ShowDisplay" value="false">\n\t<embed type="application/x-mplayer2" src="'+a[0]+'" id="MediaPlayer" width="'+d+'" height="'+u+'" ShowControls="'+(O.showVideoControls?"1":"0")+'" ShowStatusBar="0" ShowDisplay="0" autostart="0" />\n')+'</object>\n<div style="position: absolute; width: 100%; top: '+(u/2+20)+'px; text-align: center;"><a target="_blank" style="color: black; text-decoration: none; font-family: Arial, sans;" href="http://windows.microsoft.com/en-US/windows/downloads/windows-media-player">Install Media Player Plugin</a></div>\n',/MSIE/.test(navigator.userAgent)&&(_+="\t</object>\n"),V(_)),e();break;case"audio":case"sound":if(i="imaudioplayer_"+Math.round(1e8*Math.random()),A=V('<audio controls controlsList="nodownload" id="'+i+'"/>').attr({"data-width":O.width,"data-height":O.height}),r=!1,"string"==typeof O.url&&(O.url=[{src:O.url}]),"object"==typeof O.url)for(o=0;o<O.url.length&&!r;o++)r|=0<O.url[o].src.search(/\.(mp3|aac|wav)/gi);if(r){for(s in $.utils.isOnline()&&A.attr("preload","metadata"),O.loop&&A.prop("loop",!0),O.alt&&A.attr("aria-label",O.alt),O.title&&A.attr("title",O.title),O.url)A.append(V("<source />").attr("src",O.url[s].src));var w=!1;setInterval(function(){w&&A.triggerHandler("playing",[F.CurrentPosition()])},200),F.Play=function(){A.get(0).play(),w=!0,A.triggerHandler("status_change",["play"])},F.Pause=function(){A.get(0).pause(),w=!1,A.triggerHandler("status_change",["pause"])},F.Stop=function(){return F.Pause()},F.Volume=function(t){return"number"==typeof t?A.get(0).volume=t:A.get(0).volume},F.CurrentPosition=function(t){return"number"==typeof t?A.get(0).currentTime=t:A.get(0).currentTime},F.Duration=function(){return A.get(0).duration},F.Progress=function(){return A.get(0).buffered?1:0}}e();break;case"youtube":P=!1,A=V("<div />").css({"background-color":"black"}),O.alt&&A.attr("aria-label",O.alt),O.title&&A.attr("title",O.title),n=null,i="imytplayer_"+Math.round(1e8*Math.random(),10),A.append(V("<div />").attr("id",i)),O.autoplay&&!O.showVideoControls&&(A.append(V(B(i))),A.find("#"+i+"_video-unmute").on("click",function(){n.unMute(),V("#"+i+"_video-unmute").hide()}));var l=(l=(l=O.url.replace(/https?\:\/\/[w]*\.?youtube\.com\/watch\?v=/g,"")).replace(/https?\:\/\/[w]*\.?youtube\.com\/shorts\//g,"")).replace(/https?\:\/\/youtu\.be\/?/g,""),y=(y=l.match(/[&?]t=([0-9]+)[s]*/))&&2==y.length?parseInt(y[1]):0,x=(-1!=l.indexOf("&")&&(l=l.substring(0,l.indexOf("&"))),0===V("#ytjsapi").length&&(I=V("<script />").attr({id:"ytjsapi",src:"//www.youtube.com/iframe_api"}),V("head").append(I),Y.onYouTubeIframeAPIReady=function(){$.youtube.jsApiIsLoaded=!0,V("body").triggerHandler($.youtube.apiLoadedEventName)}),k=O.width&&O.contentWidth?Math.min(O.width,O.contentWidth):Math.max(O.width,O.contentWidth),S=O.height&&O.contentHeight?Math.min(O.height,O.contentHeight):Math.max(O.height,O.contentHeight),A.width(k).height(S).attr({"data-width":k,"data-height":S}),!1),C=function(){k=O.width&&O.contentWidth?Math.min(O.width,O.contentWidth):Math.max(O.width,O.contentWidth),S=O.height&&O.contentHeight?Math.min(O.height,O.contentHeight):Math.max(O.height,O.contentHeight),A.children("div").attr({"data-width":k,"data-height":S}),A.find("#"+i).width(k).height(S),$.youtube.jsApiIsLoaded?n=new Y.YT.Player(i,{height:S,width:k,videoId:l,events:{onReady:function(){x=!0},onStateChange:function(t,e){e==YT.PlayerState.PLAYING&&n.isMuted()&&!O.showVideoControls&&V("#"+i+"_video-unmute").show()},onError:function(t){var e="";switch(t.data){case 2:e="The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.";break;case 100:e="The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.";break;case 101:case 150:e="The owner of the requested video does not allow it to be played in embedded players."}A.empty().append(e)}},playerVars:{controls:O.showVideoControls?"1":"0",wmode:"opaque",modestbranding:"1",rel:0,start:y}}):V("body").one($.youtube.apiLoadedEventName,C)};F.Play=function(t){x?(t&&n.mute(),O.poster&&(O.poster.hide(),O.target.show()),n.playVideo()):(L&&clearTimeout(L),L=setTimeout(F.Play,1e3,t))},F.Pause=function(){x?n.pauseVideo():(L&&clearTimeout(L),L=setTimeout(F.Pause,1e3))},F.Stop=function(){x?n.stopVideo&&"stopVideo"in n?n.stopVideo():"pauseVideo"in n&&n.pauseVideo():(L&&clearTimeout(L),L=setTimeout(F.Stop,1e3))},A.on("animate_in_end",C),e();break;case"vimeo":P=!1,A=V("<div />").css("background-color","black").width(O.width).height(O.height),O.alt&&A.attr("aria-label",O.alt),O.title&&A.attr("title",O.title),n=null,i="imvimeoplayer_"+Math.round(1e8*Math.random(),10),A.append(V("<div />").attr("id",i)),O.showVideoControls||(O.autoplay&&(A.append(V(B(i))),A.find("#"+i+"_video-unmute").on("click",function(){n.setVolume(.7),V("#"+i+"_video-unmute").hide()})),A.css("display","grid"),A.append(V('<button type="button" class="clear-button-style" id="'+i+'_video-placeholder" style="width: 100%; height: 100%; position: absolute; z-index: 4; display: grid; justify-items: center; align-items: center;"><svg width="64px" height="64px" viewBox="0 0 715 715" aria-labelledby="'+i+'_play_button" role="img" style="cursor: pointer; fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 2;'+(1==O.autoplay?" display: none;":"")+'"><title id="'+i+'_play_button">'+$.l10n.get("video_play_button","Play video")+'</title><g transform="matrix(1,0,0,1,-138,-26)"><g transform="matrix(43.4179,0,0,43.4179,148,36)"><path d="M8,0C3.582,0 0,3.582 0,8C0,12.418 3.582,16 8,16C12.418,16 16,12.418 16,8C16,3.582 12.418,0 8,0ZM8,14.5C4.41,14.5 1.5,11.59 1.5,8C1.5,4.41 4.41,1.5 8,1.5C11.59,1.5 14.5,4.41 14.5,8C14.5,11.59 11.59,14.5 8,14.5ZM6,4.5L12,8L6,11.5L6,4.5Z" style="fill:white;fill-rule:nonzero;stroke:rgb(51,51,51);stroke-width:0.46px;"/></g></g></svg></button>'))),l=O.url.replace(/[w\.]*vimeo\.com\/?/g,"").replace(/https?\:\/\//g,"").replace(/http?\:\/\//g,""),k=O.width&&O.contentWidth?Math.min(O.width,O.contentWidth):Math.max(O.width,O.contentWidth),S=O.height&&O.contentHeight?Math.min(O.height,O.contentHeight):Math.max(O.height,O.contentHeight),A.width(k).height(S).attr({"data-width":k,"data-height":S});var k,S,_,C=function(){k=O.width&&O.contentWidth?Math.min(O.width,O.contentWidth):Math.max(O.width,O.contentWidth),S=O.height&&O.contentHeight?Math.min(O.height,O.contentHeight):Math.max(O.height,O.contentHeight),A.children("div").attr({"data-width":k,"data-height":S}),A.find("#"+i).width(k).height(S),Y.vimeoPlayerReady&&(n=new Vimeo.Player(A.find("#"+i)[0],{id:l,width:k,height:S,controls:O.showVideoControls,muted:O.autoplay}),O.showVideoControls||(n.on("play",function(){V("#"+i+"_video-placeholder > svg").fadeOut(100),0==n.getVolume()&&V("#"+i+"_video-unmute").show()}),A.find("#"+i+"_video-placeholder").on("click",function(t){t.target.id.endsWith("_video-unmute")||n.getPaused().then(function(t){t?n.play():n.pause()})}),n.on("pause",function(){V("#"+i+"_video-placeholder > svg").fadeIn(100)}),n.on("error",function(){V("#"+i+"_video-placeholder").remove()})))};0===V("#vimeojsapi").length?((_=document.createElement("script")).setAttribute("id","vimeojsapi"),_.setAttribute("src","https://player.vimeo.com/api/player.js"),_.onload=()=>{Y.vimeoPlayerReady=!0,C()},document.body.appendChild(_)):Y.vimeoPlayerReady?C():V("#vimeojsapi").on("load",()=>{Y.vimeoPlayerReady=!0,C()}),F.Play=function(){n?(O.poster&&(O.poster.hide(),O.target.show()),n.play()):setTimeout(F.Play,500)},F.Pause=function(){n.pause()},F.Stop=function(){n.pause()},e();break;case"code":case"html":(A=V("<div />")).html($.utils.htmlspecialchars_decode(O.html)).width(O.width).height(O.height).attr({"data-width":O.width,"data-height":O.height}),e();break;case"base64html":(A=V("<div />")).html(atob(O.html)).width(O.width).height(O.height).attr({"data-width":O.width,"data-height":O.height}),e();break;case"swf":var M="swfplayer_"+Math.round(1e3*Math.random());(A=V("<div />").html('<div id="'+M+'"></div>').attr({"data-width":O.width,"data-height":O.height})).on("animate_in_end",function(){var t={},e={quality:"high",bgcolor:"#ffffff",play:"true",loop:"false",wmode:"transparent",scale:"noscale",menu:"true",devicefont:"false",salign:"lt",allowscriptaccess:"always",allowFullScreen:"true"},i={id:M,name:M,align:"middle",allowscriptaccess:"always"};$.utils.loadSwfObject(function(){Y.swfobject.embedSWF(O.url,M,O.width,O.height,"10.0.0","res/expressInstall.swf",t,e,i)})}),e();break;case"dom":A=V(O.url).width(O.width).height(O.height).attr({"data-width":O.width,"data-height":O.height}),e();break;case"iframe":case"url":A=V("<iframe />",{allowFrameTransparency:O.allowFrameTransparency?"true":"false",src:O.url,border:"0",frameborder:"0",marginwidth:"0",marginheight:"0","data-width":O.width,"data-height":O.height}).width(O.width).height(O.height),e();break;default:var I,T=function(){var t=H(O.width,O.height,O.contentWidth,O.contentHeight,!0);if(A.css({position:"absolute","inset-inline-start":t.x,top:t.y}),O.touchDevice&&A.css("-webkit-backface-visibility","hidden"),A.width(t.width).height(t.height),O.onclick&&(V.isFunction(O.onclick)?($.utils.makeClickableWithKeyboard(A,"button"),A.click(O.onclick).css("cursor","pointer")):0===O.onclick.indexOf("http")&&(A.css("cursor","pointer"),Y.location.href=O.onclick)),O.protect){var n,o,a=A;A=V("<canvas />"),O.alt&&(A.attr("aria-label",O.alt),A.attr("role","img")),O.title&&A.attr("title",O.title);try{A.get(0).getContext&&A.get(0).getContext("2d")?(a.removeAttr("style"),V("body").append(a),n={width:a.width(),height:a.height()},a.detach(),A.attr({"data-width":O.width,"data-height":O.height}).width("100%").height("100%").on("dragstart",function(t){return t.preventDefault(),!1}),o=A.get(0).getContext("2d"),function t(){var e,i;A.parent().length?(i=n.height,(e=n.width)>O.width&&(i=O.width/e*i,e=O.width,i*=1.2,e*=1.2),o.canvas.width=e,o.canvas.height=i,o.clearRect(0,0,e,i),o.drawImage(a[0],0,0,e,i),V("#imContent").one("breakpointChangedOrFluid",t),A.one("image.change",t)):setTimeout(t,100)}()):A=a}catch(t){A=a}A.on("contextmenu",function(t){return!1})}e()};A=V("<img />").attr("src",O.url).attr("alt",O.alt||""),O.title&&A.attr("title",O.title),O.width&&O.height?(A.attr({"data-width":O.width,"data-height":O.height}),T()):(I=V("<img />").css({position:"absolute",top:-1e4,left:-1e4}).one("load",function(){var t=V(this);O.width=t.width(),O.height=t.height(),A.attr({"data-width":O.width,"data-height":O.height}),t.remove(),T()}),V("body").prepend(I),I.attr("src",A.attr("src")))}O.selectable||A.attr("unselectable","on").css("user-select","none")}var O=V.extend({width:null,height:null,contentWidth:null,contentHeight:null,type:"image",url:null,alt:"",title:null,thumbUrl:null,html:"",effect:"fade",onclick:null,description:"",thumb:null,autoplayTime:5e3,loop:!1,touchDevice:!1,ignoreVerticalScroll:!1,selectable:!1,allowFrameTransparency:!1,protect:!1,deferredCaching:!1,load:null,attached:null,error:null,baseUrl:""},t),t=V(Y),A=(V(document),null),E=null,F=this,D=null,e="id"+Math.round(1e8*Math.random()),a=/(iPad|iPhone)/i.test(navigator.userAgent),o=(t.imageCache=[],t.imageCache[e]=[]),P=!0,r=null,s=null,l=null,c=null,i=null,d=null,u=null,h=null,p=!1,g=!1,m=!1,L=null,B=function(t){return'<button type="button" class="clear-button-style" id="'+t+'_video-unmute" ><svg width="48px" height="48px" viewBox="0 0 705 659" aria-labelledby="'+t+'_unmute_button" role="img" style="cursor: pointer; position: absolute; inset-inline-end: 30px; bottom: 30px; fill: white; fill-rule: nonzero; stroke: #333; stroke-width: 0.4px; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 2; z-index: 5;"><title id="'+t+'_unmute_button">'+$.l10n.get("video_unmute_button","Unmute video")+'</title><g transform="matrix(1,0,0,1,-143,-58.8218)"><g transform="matrix(46.3125,0,0,46.3125,-1750.82,-9106.06)"><path d="M41,202L43.485,202L46.453,199L47,199.016L47,211.016L46.525,211.016L43.485,208L41,208L41,202Z"/><path d="M56,205C56,202.186 55,199.828 53.415,198L52,198L52,199.481C53.265,201 54,202.7 54,205C54,207.3 53.221,209 52,210.519L52,212L53.381,212C54.847,210.36 56,207.814 56,205Z"/><path d="M53,205C53,202.834 52.261,200.98 51,200L50,200L50,202C50.607,202.789 51,203.759 51,205C51,206.241 50.607,207.22 50,208L50,210L51,210C52.223,209.005 53,207.127 53,205Z"/><path d="M50,205C50,203.743 49.689,202.784 49,202L48,202L48,208L49,208C49.672,207.163 50,206.258 50,205Z"/></g></g></svg></button>'},H=function(t,e,i,n,o){return t=t||0,e=e||0,i=i||t,n=n||e,(o=!!o)&&"dom"!=O.type&&"html"!=O.type&&(i<t&&(e*=i/t,t=i),n<e)&&(t*=n/e,e=n),{x:(i-t)/2,y:(n-e)/2,width:t,height:e}},R=function(t){V.isFunction(i)&&1==t.touches.length&&i(t),p=!1,g=2==(u=t).touches.length,m=2<t.touches.length},N=function(t){var e,i,n,o;!c&&(r&&1==t.touches.length||s&&2==t.touches.length||l&&2<t.touches.length)&&(!O.ignoreVerticalScroll||1!=t.touches.length||(e=a?u:u.touches[0],n=(i=a?t:t.touches[0]).pageX-e.pageX,o=i.pageY-e.pageY,Math.abs(n)>Math.abs(o)))&&t.preventDefault(),V.isFunction(c)&&1==t.touches.length&&(e=a?u:u.touches[0],n=(i=a?t:t.touches[0]).pageX-e.pageX,o=i.pageY-e.pageY,!O.ignoreVerticalScroll||Math.abs(n)>Math.abs(o))&&c(t,{startX:e.pageX,startY:e.pageY,offsetX:n,offsetY:o}),p=!0,h=t},W=function(t){var e,i,n;p?V.isFunction(r)&&h&&1==u.touches.length&&(e=a?u:u.touches[0],i=(n=a?h:h.touches[0]).pageX-e.pageX,n=n.pageY-e.pageY,!O.ignoreVerticalScroll||Math.abs(i)>Math.abs(n))&&r(t,{startX:e.pageX,startY:e.pageY,offsetX:i,offsetY:n}):A.click()},j=function(t){(m&&l||g&&s)&&t.preventDefault()},z=function(t){m&&l&&t.preventDefault(),g&&s&&!d&&t.preventDefault(),d&&V.isFunction(d)&&d(t)},q=function(t){m&&V.isFunction(l)?l(t):g&&V.isFunction(s)&&s(t)};this.Cache=function(e){switch(V.extend({load:null,error:null},e),O.type){case"image":/^[0-9]+$/.test(O.url)&&(O.url=$.utils.yaKnowWhatToDo(O.url)),o[o.length]=new Image;var i=V(o[o.length-1]);i.one("load",function(){var t;O.width||O.height||(t=i.clone(),V("body").append(t),t.css({width:"auto",height:"auto",position:"absolute",top:-1e4,left:-1e4}),O.width=t.width(),O.height=t.height(),t.remove()),O.thumb?(o[o.length]=new Image,(i=V(o[o.length-1])).one("load",function(){n(e.load)}).on("error",function(){O.thumb=null,n(e.load)}),i.attr("src",O.thumb)):n(e.load)}).on("error",function(){V.isFunction(e.error)&&e.error(F,404)}),i.attr("src",O.url);break;case"video":case"youtube":case"vimeo":O.thumb?(o[o.length]=new Image,(i=V(o[o.length-1])).one("load",function(){n(e.load)}).on("error",function(){O.thumb=null,n(e.load)}),i.attr("src",O.thumb)):n(e.load);break;default:n(e.load)}},this.TriggerAnimationInStart=function(){return A.triggerHandler("animate_in_start"),F},this.TriggerAnimationInEnd=function(){return A.triggerHandler("animate_in_end"),F},this.TriggerAnimationOutStart=function(){return A.triggerHandler("animate_out_start"),F},this.TriggerAnimationOutEnd=function(){return A.triggerHandler("animate_out_end"),F},this.AnimateIn=function(t,i,e){A.find("embed, object, iframe").css("display","none");var n,o=null,a=H(A.attr("data-width"),A.attr("data-height"),O.contentWidth,O.contentHeight,!0);A.css("position","absolute"),o="dom"!=O.type&&"html"!=O.type?{y:a.y,x:a.x,width:a.width,height:a.height}:{y:0,x:0,width:a.width,height:a.height},A.trigger("animate_in_start"),"random"==O.effect&&(a=["fade","horizontalSlide","verticalSlide","zoom","elasticFromTop","elasticFromBottom","elasticFromRight","elasticFromLeft","bounceFromTop","bounceFromBottom","bounceFromLeft","bounceFromRight","rotateLinear"],n=Math.max(0,Math.floor(Math.random()*a.length)),D=$.effects[a[n]]||$.effects.fade),D?(a=$.utils.supportsCSS("transformOrigin"),n=$.utils.supportsCSS("transform"),a&&A.css(a,"50% 50%"),n&&A.css(n,"none"),D.animateIn(F,o,t,function(t){var e=t.DOMObject();e.find("embed, object, iframe").css("display","block"),e.trigger("animate_in_end"),V.isFunction(i)&&i(t)},e)):A.trigger("animate_in_end")},this.AnimateOut=function(t,e,i){A.find("embed, object, iframe").css("display","none");var n,o;"random"==O.effect&&(n=["fade","horizontalSlide","verticalSlide","zoom","elasticFromTop","elasticFromBottom","elasticFromRight","elasticFromLeft","bounceFromTop","bounceFromBottom","bounceFromLeft","bounceFromRight","rotateLinear"],o=Math.max(0,Math.floor(Math.random()*n.length)),D=$.effects[n[o]]),A.trigger("animate_out_start"),null!=D?D.animateOut(F,t,function(t){t.DOMObject().trigger("animate_out_end"),V.isFunction(e)&&e(t)},i):A.trigger("animate_out_end")},this.ChangeAnimation=function(t){$.effects[t]&&(D=$.effects[t])},this.DOMObject=function(){return A},this.GetThumb=function(){return E},this.Type=function(){return O.type},this.Play=function(){return!1},this.Pause=function(){return!1},this.Stop=function(){return!1},this.Volume=function(t){return 0},this.CurrentPosition=function(t){return 0},this.Duration=function(){return 0},this.GetDescription=function(){return $.utils.htmlspecialchars_decode(O.description)},this.GetAlt=function(){return O.alt},this.GetTitle=function(){return O.title},this.AutoplayTime=function(){return O.autoplayTime},this.OnPlaying=function(t){A.on("playing",t)},this.OnStatusChange=function(t){A.on("status_change",t)},this.Width=function(){return null!==O.width?O.width:A.attr("data-width")},this.Height=function(){return null!==O.height?O.height:A.attr("data-height")},this.ContentHeight=function(t){if(null==t)return O.contentHeight;O.contentHeight=t},this.ContentWidth=function(t){if(null==t)return O.contentWidth;O.contentWidth=t},this.Overlay=function(){return P},this.AfterPinch=function(t){return s=t,F},this.Pinch=function(t){return d=t,F},this.Gesture=function(t){return l=t,F},this.Move=function(t){return c=t,F},this.AfterMove=function(t){return r=t,F},this.BeforeMove=function(t){return i=t,F},this.FullScreen=function(){return!1},this.AppendTo=function(t,e){return t.append(A),V.isFunction(O.attached)?O.attached(this,e):V.isFunction(e)&&e(this),this},O.deferredCaching||this.Cache({load:O.load,error:O.error})}})}(_jq,x5engine,window),!function(o,a){"use strict";o.extend(a,{mediaPlayer:function(e){var i=null!=(e=o.extend({url:"",alt:"",title:"",type:"audio",width:400,height:400,showVideoControls:!0,poster:null,target:"body",autoplay:!1,loop:!1,baseUrl:"",controlsHeight:0},e)).poster?o(e.poster):null,n=o(e.target);new a.mediaObject({url:e.url,alt:e.alt,title:e.title,type:e.type,autoplay:e.autoplay,showVideoControls:e.showVideoControls,poster:i,target:n,effect:"none",width:e.width,height:e.height-(e.autoHideControls||"youtube"==e.type||"vimeo"==e.type?0:e.controlsHeight),baseUrl:e.baseUrl,load:function(t){return i&&(i.width(e.width).height(e.height),i.click(function(){t.Play()})),n.append(t.DOMObject()).css({"background-color":"audio"!=e.type?e.bgColor:"transparent",position:"relative",margin:"0 auto"}).width(e.width).height(e.height),t.AnimateIn(),!0===e.autoplay?t.Play(!0):"onscreen"==e.autoplay?a.utils.onElementInViewPort((i||[])[0]||n[0],function(){t.Play(!0)}):"onmouseover"==e.autoplay&&o((i||[])[0]||n[0]).one("mouseover",function(){t.Play(!0)}),{Stop:function(){t&&t.Stop()},Play:function(){t&&t.Play()}}}})}})}(_jq,x5engine),!function(d,u){"use strict";d.extend(u,{initMenu:function(t){function a(t){t.add(t.find("ul")).toggleClass("open-right").toggleClass("open-left")}var t=d.extend(!0,{menuId:"",responsiveMenuEffect:"none",responsiveMenuLevelOpenEvent:"mouseover",animationDuration:1e3},t),e=d("body"),r=t.menuId,i="responsive-menu-effect-"+t.responsiveMenuEffect,o=t.responsiveMenuLevelOpenEvent,n=t.animationDuration,s=("push"==t.responsiveMenuEffect&&(c(),d("#imContent").on("breakpointChanged",function(){c()})),d("#"+r+" li").each(function(){function t(t){t&&i.add(r).parents("ul").find("."+n).removeClass(n).each(function(){d(this).removeAttr("aria-label")}),i.add(i.add(r).parents("li")).add(r).addClass(n).each(function(){d(this).attr("aria-label",d(this).hasClass("imLevel")?u.l10n.get("cmn_pagination_current_level","Current level:"):u.l10n.get("cmn_pagination_current_page","Current page:"))})}var e,i=d(this),n="imMnMnCurrent",o=i.attr("data-link-anchor"),a=i.attr("data-link-hash"),r=d("[data-link-hash="+a+"]"),a=i.attr("data-link-paths");o&&i.on("click",function(){t(!0)}),a?(e=a.substring(0,1),a=a.substring(1),u.utils.isCurrentPage(a.split(e),o)&&t()):i.on("click",function(t){t.stopPropagation()}),i.children(".label-wrapper").find("a").attr("aria-expanded","false")}),d("#"+r+" .hamburger-button").on("click",function(){var t;0<d("#"+r+"-menu-opened").length||(d(this).css("visibility","hidden"),d("<div id='"+r+"-menu-opened'></div>").appendTo("body"),d("<div id='"+r+"_container-menu-opened'></div>").appendTo("#"+r+"-menu-opened"),d("#"+r+"_container > *:not(.hamburger-button)").clone(!0).removeClass("hidden").appendTo("#"+r+"_container-menu-opened"),t=d("#"+r+"-menu-opened").find(".multiple-column"),d(t).css("width",""),d(t).css("left",""),0!==d(t).find("ul").length?d(t).children("ul").css({height:"",overflow:"",display:""}):0!==d("#"+r+"-menu-opened").find(".imLevel").find("ul").length&&d("#"+r+"-menu-opened").find(".imLevel").children("ul").css({height:"",overflow:"",display:""}),d("#"+r+"-menu-opened ul li").each(function(){var n=d(this),i=0;n.on("mouseover",function(){clearTimeout(i)}).on(o,function(t){n.children("ul, .multiple-column").stop(!1,!1).show();var e=n.children(".label-wrapper").find(".label"),i=n.children(".label-wrapper").find("button");e.attr("aria-expanded","true"),i.attr("aria-expanded","true").attr("aria-label",u.l10n.get("menu_close_submenu","Close submenu for")+" "+e.text()).text("â–²")}).on("mouseleave",function(){i=setTimeout(function(){n.children("ul, .multiple-column").stop(!1,!1).hide()},500);var t=n.children(".label-wrapper").find(".label"),e=n.children(".label-wrapper").find("button");t.attr("aria-expanded","false"),e.attr("aria-expanded","false").attr("aria-label",u.l10n.get("menu_open_submenu","Open submenu for")+" "+t.text()).text("â–¼")})}),d("#"+r+"-menu-opened .hamburger-menu-close-button").add("#"+r+"-menu-opened .imLevel[data-link-paths]").one("click",function(){e.addClass("menu-"+r+"-towards-closing"),e.removeClass("menu-"+r+"-opened"),d("#"+r+"-menu-opened").removeClass("animated"),e.addClass("menu-"+r+"-closing"),d("#imPageExtContainer").off("click.close-menu-event"),d("#imContent").off("breakpointChanged.close-menu-event"),setTimeout(function(){e.removeClass("menu-"+r+"-towards-closing"),d("#"+r).find(".label-wrapper-over").remove(),d("#"+r+"-menu-opened").remove(),e.removeClass("menu-"+r+"-closing").removeClass("im-menu-opened").removeClass(i)},n+50),d("#"+r+" .hamburger-button").css("visibility","")}),d("#imPageExtContainer").on("click.close-menu-event",function(t){e.hasClass("menu-"+r+"-opened")&&(t.stopPropagation(),d("#"+r+"-menu-opened .hamburger-menu-close-button").click())}),d("#imContent").on("breakpointChanged.close-menu-event",function(t){e.hasClass("menu-"+r+"-opened")&&d("#"+r+"-menu-opened .hamburger-menu-close-button").click()}),d("#"+r+"-menu-opened .imMnMnCurrent").each(function(){d(this).parents("ul, .multiple-column").show(0),(0==d(this).has("ul").length||0<d(this).has(".imMnMnCurrent").length)&&d(this).closest(".imLevel").find("> .label-wrapper > .label-inner-wrapper > a").data("linkLevelOpened",1)}),d("#"+r+"-menu-opened #"+r+"_container-menu-opened ul > .imLevel").each(function(){var e=d(this),t=e.find("> .label-wrapper > .label-inner-wrapper > a");0<t.length&&0<d(this).children("ul, .multiple-column").length&&t.on("touchend",function(t){"1"==d(this).data("linkLevelOpened")?d(this).data("linkLevelOpened",0):(t.preventDefault(),d(this).data("linkLevelOpened",1),e.children("ul, .multiple-column").stop(!1,!1).show())})}),setTimeout(function(){e.addClass("menu-"+r+"-opened").addClass("im-menu-opened").addClass(i),d("#"+r+"-menu-opened").addClass("animated"),d("#"+r+"-menu-opened ul.menu-mobile-animated li").first().find("a, button").first().focus()},10))}),d("#"+r)),l=d(window);function c(){("fixed"==d("#imPageExtContainer").css("background-attachment")?(d("#imPageIntContainer").addClass("responsive-menu-effect-push-container"),d("#imPageExtContainer")):(d("#imPageExtContainer").addClass("responsive-menu-effect-push-container"),d("#imPageIntContainer"))).removeClass("responsive-menu-effect-push-container")}s.find(".imLevel").on("mouseenter",function(t){if(t.originalEvent){var e=d(this),i=e.find(".multiple-column");if(!(0<e.parents("#"+r+"-menu-opened").length)){if(i.length||"right"==s.css("float")||"inline-end"==s.css("float"))i.length&&(i.css("left",""),0<(o=(n=e.offset()).left+i.outerWidth(!0)-d(window).width()))&&i.css("left",-Math.min(o,n.left));else{if(e.find("li").first().is(":visible"))return;var n=e.offset(),i=e.children("ul"),o=(e.parents("ul").first(),e.parents(".imLevel").length||i.add(i.find("ul")).each(function(){d(this).removeClass("open-right").removeClass("open-left").addClass(d(this).attr("data-original-position"))}),i.attr("data-computed-width")||(o=i.clone(),s.append(o),o.show(0).css({position:"absolute",top:-1e3,width:"",height:"",display:"block"}),i.attr("data-computed-width",o.find("li").outerWidth()),o.remove()),+i.attr("data-computed-width"));i.hasClass("open-right")&&n.left+e.outerWidth()+o>l.width()+l.scrollLeft()&&a(i),i.hasClass("open-left")&&n.left-o<l.scrollLeft()&&a(i)}e=d(t.target).children(".label-wrapper"),n=e.find(".label"),o=e.find("button");n.attr("aria-expanded","true"),o.attr("aria-expanded","true").attr("aria-label",u.l10n.get("menu_close_submenu","Close submenu for")+" "+n.text()).text("â–²")}}else t.stopImmediatePropagation(),t.preventDefault()}).on("mouseleave",function(t){var e=d(t.target).children(".label-wrapper"),i=e.find(".label"),e=e.find("button");i.attr("aria-expanded","false"),e.attr("aria-expanded","false").attr("aria-label",u.l10n.get("menu_open_submenu","Open submenu for")+" "+i.text()).text("â–¼"),null!=t.originalEvent&&null!=t.originalEvent.currentTarget&&t.originalEvent.currentTarget.classList.contains("toggle-submenu")&&t.stopPropagation()})}})}(_jq,x5engine),!function(w,y,x){"use strict";function e(){var e=w("#imHeader"),i=0;return w("#imHeader [id^=imHeader_imMenuObject_]:not(.template-object-wrapper):visible").each(function(t){w(this).offset().top+w(this).outerHeight()>i&&(e=w(this),i=e.offset().top+e.outerHeight())}),e}function i(i){i=w.extend({target:null,trigger:null,triggerPartialHide:!0,appear:!1,enabledBreakpoints:null,forceFixed:!0,forceTop:!1,forceLeft:!1,noLeft:!1,useTranslateZ:!1,alwaysVisible:!1},i);var n,o,t,a,r,s,e,l=!1,c=!1,d=w(x),u=!1,h=!1,p=(w("#imFooter"),function(){l=!0,t="function"==typeof i.trigger?i.trigger():w(i.trigger),n=t.offset().top+(i.triggerPartialHide?0:t.outerHeight()),function t(e){e&&e.target!=e.currentTarget||(r=o.parent().offset().left,"fixed"!=o.css("position")&&(a=o.position().left),i.forceFixed&&(g(),v())),w("#imContent").one("change",t)}()}),g=function(){l&&(i.appear?o.stop(!1,!1).animate({top:-o.outerHeight(!0)},{duration:200,complete:function(){o.css({visibility:"hidden",overflow:"hidden"})}}):(o.stop().css({"margin-top":"",left:"",top:"","z-index":""}),i.forceFixed&&o.css("position","")),u=!1)},m=function(){return i.noLeft?"":-d.scrollLeft()+a+r},f=function(){o.css({"margin-top":0,left:m(),bottom:"auto","z-index":y.settings.zIndex.stickyBar+(i.forceTop?1:0)}),i.forceFixed&&o.css("position","fixed"),i.useTranslateZ&&o.css("-webkit-transform","translateZ(0)")},b=function(t,e){var i=Math.floor(w("#imContent").offset().top+w("#imContent").outerHeight(!0));e+o.outerHeight(!0)>=i-t&&(e=i-t-o.outerHeight(!0)),o.css("top",e)},v=function(){var t,e;c&&(l||p(),Math.floor(w("#imContent").offset().top+w("#imContent").outerHeight(!0))<=Math.floor(n+o.outerHeight(!0)+parseInt(w("#imContent").css("padding-bottom")))||(t=d.scrollTop(),e=w("#imStickyBarContainer:visible"),e=i.forceTop||0===e.length?0:e.height(),n-e<t||i.alwaysVisible?(u||(i.appear?(f(),h=!0,o.stop(!1,!1).show().css({top:-o.outerHeight(!0),visibility:"visible",overflow:"visible"}).animate({top:0},{duration:500},"swing",function(){h=!1})):f(),u=!0),h||b(t,e)):u&&g(),i.forceLeft&&o.css("left",0)))};this.enable=function(){c=!0,v()},this.disable=function(){var t=c;c=!1,t&&g()},0!==(o=w(i.target)).length&&(i.alwaysVisible||d.scroll(v),d.resize(function(){r=o.parent().offset().left,u&&o.css("left",m()),v()}),s=this,e=y.responsive.getCurrentBreakPoint(),-1!=i.enabledBreakpoints.indexOf(e.hash)&&s.enable(),w("#imContent").on("beforeBreakpointChanged.sidebarscroll",function(){s.disable()}).on("breakpointChanged.sidebarscroll",function(t,e){-1!=i.enabledBreakpoints.indexOf(e.hash)&&(l=!1,s.enable())}))}w.extend(y,{sidebarScroll:function(t){new i(t=w.extend({target:"#imSideBarObjects",trigger:"#imSideBarObjects",appear:!1,enabledBreakpoints:null,noLeft:!0},t))},blogSidebarScroll:function(t){new i(t=w.extend({target:"#imBlogSidebar",trigger:"#imBlogSidebar",appear:!1,enabledBreakpoints:null},t))},stickyBar:function(t){t=w.extend({target:"#imStickyBarContainer",trigger:e,triggerPartialHide:!1,appear:!0,enabledBreakpoints:null,forceFixed:!1,forceTop:!0,forceLeft:!0,useTranslateZ:!0,alwaysVisible:!1},t),0==w("header").height()&&(t.alwaysVisible=!0);new i(t)}})}(_jq,x5engine,window),!function(c,e){"use strict";function o(){for(var t=c(window).height(),o=[],a=[],r=[],e=[.01,.5,.99],s={},i=0;i<u.length;i++){var n=c(u[i]).height(),l=t/n;s[u[i].id]={start:.01*l,half:.5*l,full:.99*l},t!=n&&e.push(s[u[i].id].half,s[u[i].id].full)}for(d=new IntersectionObserver(function(t){for(var e=0;e<t.length;e++){var i=t[e],n=s[i.target.id];-1==o.indexOf(i.target.id)&&i.intersectionRatio>=n.start&&(o.push(i.target.id),c(i.target).trigger("rowEntersInViewport")),-1<o.indexOf(i.target.id)&&i.intersectionRatio<n.start&&(o.splice(o.indexOf(i.target.id),1),c(i.target).trigger("rowExitsFromViewport")),-1==a.indexOf(i.target.id)&&i.intersectionRatio>=n.half&&(a.push(i.target.id),c(i.target).trigger("rowFillsHalfViewport")),-1<a.indexOf(i.target.id)&&i.intersectionRatio<n.half&&(a.splice(a.indexOf(i.target.id),1),c(i.target).trigger("rowNoFillsHalfViewport")),-1==r.indexOf(i.target.id)&&i.intersectionRatio>=n.full&&(r.push(i.target.id),c(i.target).trigger("rowFillsViewport")),-1<r.indexOf(i.target.id)&&i.intersectionRatio<n.full&&(r.splice(r.indexOf(i.target.id),1),c(i.target).trigger("rowNoFillsViewport"))}},{threshold:e}),i=0;i<u.length;i++)d.observe(u[i])}function a(){t&&(clearTimeout(t),t=void 0),t=setTimeout(function(){d.disconnect(),o(),t=void 0},100)}var t,d,u;c.extend(e,{pageRowsObserver:(u=document.querySelectorAll(".imPageRow"),{start:function(){o(),c(window).resize(a);for(var t=0;t<u.length;t++){var i=0,n=0;e.utils.onElementResize(u[t],function(t,e){i==t.width&&n==t.height||(i=t.width,n=t.height,a())})}}})})}(_jq,x5engine),!function(o,a){"use strict";o.extend(a,{imPageToTop:{constants:{id:"imPageToTop",visibleClass:"page-to-top-visible"},initializeButton:function(i){var t=a.imPageToTop.constants,e=a.settings.imPageToTop;i=o.extend(!0,{speed:e.speed,appearAt:e.appearAt,imageFile:e.imageFile},i);a.imPageToTop.createButton(i),o(window).on("ready scroll",function(){var e=o("#"+t.id);o(window).scrollTop()>i.appearAt?e.hasClass(t.visibleClass)||(e.addClass(t.visibleClass),e.fadeIn(1e3),e.one("click.scroll-to-top",function(){var t={duration:i.speed,easing:"swing",start:function(){o("body").trigger("pageToTopAnimationInProgress")},complete:function(){o("body").trigger("pageToTopAnimationCompleted")}};a.utils.scrollTo(0,t),e.off("click.scroll-to-top"),e.fadeOut(1e3)})):e.hasClass(t.visibleClass)&&(e.removeClass(t.visibleClass),e.fadeOut(1e3))})},createButton:function(t){var e=a.imPageToTop.constants,i=o(document.createElement("div")),n=(i.attr("id",e.id),o(document.createElement("img")));n.attr("src",a.settings.currentPath+t.imageFile).attr("alt",a.l10n.get("page_to_top","Scroll to top")).attr("id",e.id+"_img"),o("body").append(i.append(n))}}})}(_jq,x5engine),!function(L,B){"use strict";L.extend(B,{panAndZoom:function(t){function m(){function t(t){return n=!1,e(t)}function e(t){return t.preventDefault(),!1}var i=Math.min(x.height(),170)-40-20,n=!1,o=(c=L("<div />").css({position:"absolute","inset-inline-end":10,top:10}).mousemove(function(t){n&&(l.css("top",o(t.pageY-s.offset().top)),t=1-(t.pageY-s.offset().top)/(i-10),P(t*(1-T)+T,null,null,!1))}).mouseleave(t).mouseup(t).on("selectstart mousedown",e),function(t){return Math.min(Math.max(t-10,0),i-20)}),a={position:"absolute",color:"#aaa",border:"1px solid #ccc",background:O,cursor:"pointer","text-align":"center"},r=L('<button type="button" class="clear-button-style" aria-label="'+B.l10n.get("showbox_tip_zoom_in","Zoom in")+'" />').width(20).height(20).css(a).css({top:0,"border-start-start-radius":"5px","border-start-end-radius":"5px","border-end-start-radius":"0","border-end-end-radius":"0"}).text("+").click(function(t){return t.preventDefault(),P(I+.1),!1}).dblclick(e).on("selectstart mousedown",e),a=L('<button type="button" class="clear-button-style" aria-label="'+B.l10n.get("showbox_tip_zoom_out","Zoom out")+'" />').width(20).height(20).css(a).css({bottom:0,"border-start-start-radius":"0","border-start-end-radius":"0","border-end-start-radius":"5px","border-end-end-radius":"5px"}).text("-").click(function(t){return t.preventDefault(),P(I-.1),!1}).dblclick(e).on("selectstart mousedown",e),s=L("<div />").css({margin:"20px 9px",background:O,border:"1px solid #ccc"}).width(2).height(Math.min(i,b.targetHeight-20)),l=L("<div />").css({"border-radius":5,position:"absolute",margin:"25px 0",bottom:0,"inset-inline-start":5,border:"1px solid #aaa",background:O,cursor:"pointer"}).width(10).height(10).mousedown(function(t){n=!0}).mouseup(function(t){n=!1}).on("dragstart",e).on("selectstart mousedown",e);x.append(c.append(s.append(l)).append(r).append(a)),w.on("image.change",function(t,e){n||(e=(e-T)/(1-T),l.css("top",o((1-e)*i)))})}function f(t){b.enableZoom&&(t.preventDefault(),t=0<(t.originalEvent.detail||t.originalEvent.wheelDelta)?-.2:.2,t*=/(Chrome|IE)/gi.test(navigator.userAgent)?-1:1,P(I+t))}var b=L.extend({target:"",url:"",alt:"",title:null,targetWidth:null,targetHeight:null,autoMove:!0,animate:!1,enableZoom:!1,showZoomControl:!1,showNavigator:!1,protect:!1,freedom:"both",handImage:"res/move.png",lensImage:"res/imsearch.png",helperBg:"black",navigatorSize:30},t),v=null,w=null,y=null,c=null,x=null,C=L("html").hasClass("touchevents"),k=null,S=null,_=0,M=0,I=0,T=0,O="#eee",A=null,E=(Math.random()-.5<0?-1:1)*(100+Math.round(20*Math.random()-10)),F=(Math.random()-.5<0?-1:1)*(100+Math.round(20*Math.random()-10)),D=!1,P=function(t,i,n,e){var o;t=Math.max(Math.min(t,1),T),null!==w&&t!=I&&(null==e&&(e=!0),w.stop(!1,!1),null==i&&(i=(_-b.targetWidth/2)*t/I+b.targetWidth/2),null==n&&(n=(M-b.targetHeight/2)*t/I+b.targetHeight/2),_=i=Math.min(Math.max(i,-k*t+b.targetWidth),0),M=n=Math.min(Math.max(n,-S*t+b.targetHeight),0),o={width:k*t,height:S*t,left:i,top:n},e?w.animate(o,{step:function(t,e){switch(e.prop){case"width":I=t/k;break;case"left":_=i=t;break;case"top":M=n=t}w.triggerHandler("image.change",[I,i,n])},complete:function(){I=t,w.triggerHandler("image.change",[I,i,n])}}):(I=t,window.requestAnimFrame(function(){w.css(o).width(k*t).height(S*t).triggerHandler("image.change",[I,i,n])})))};if(0===(x=L(b.target)).length)return!1;x.css({position:"relative",overflow:"hidden"}).width(b.targetWidth).height(b.targetHeight).prepend(B.settings.imLoadingAnimation),v=new B.mediaObject({url:b.url,alt:b.alt,title:b.title,effect:"fade",contentWidth:b.targetWidth,contentHeight:b.targetHeight,touchDevice:C,protect:b.protect,load:function(t){var e,i,n,o,a,r,s,l,c,d,u,h={x:0,y:0},p={x:0,y:0},g=null;(w=t.DOMObject()).css({display:"none",position:"absolute","inset-inline-start":""}),"ver"==b.freedom?(k=b.targetWidth,S=b.targetWidth*w.attr("data-height")/w.attr("data-width")):k="hor"==b.freedom?(S=b.targetHeight,b.targetHeight*w.attr("data-width")/w.attr("data-height")):(S=w.attr("data-height"),w.attr("data-width")),x.empty().prepend(w),(T=b.targetWidth/k)*S>b.targetHeight&&(T=b.targetHeight/S),b.enableZoom?(P(Math.min(b.targetWidth,b.targetHeight)/Math.max(S,k),(-k+b.targetWidth)/2,(-S+b.targetHeight)/2,!1),b.showZoomControl&&m()):P(1,(-k+b.targetWidth)/2,(-S+b.targetHeight)/2,!1),C?(e=I,a=o=n=i=null,t.BeforeMove(function(t){t.preventDefault(),e=I,w.stop(!1,!1),h={x:t.touches[0].pageX,y:t.touches[0].pageY},p={x:_,y:M},i=n=null,D=!0}).Move(function(t){D&&(t.preventDefault(),o=i,a=n,M=n=p.y-(h.y-t.touches[0].pageY),_=i=p.x-(h.x-t.touches[0].pageX),(n<-S*I+b.targetHeight||0<n)&&(M=n=p.y-(h.y-t.touches[0].pageY)/2),(i<-k*I+b.targetWidth||0<i)&&(_=p.x-(h.x-t.touches[0].pageX)/2),w.css("top",n),w.css("left",i),h={x:t.touches[0].pageX,y:t.touches[0].pageY},p={x:_,y:M})}).AfterMove(function(t){t.preventDefault(),null!==i&&null!==n&&(null!==o&&null!==a&&(i+=6*(i-o),n+=6*(n-a)),w.stop(!1,!1).animate({top:Math.min(Math.max(n,-S*I+b.targetHeight),0),left:Math.min(Math.max(i,-k*I+b.targetWidth),0)},{duration:1e3,easing:"iOsSwing",step:function(t,e){"top"==e.prop&&(M=t),"left"==e.prop&&(_=t)}})),D=!1}),b.enableZoom&&v.Pinch(function(t){D=!1,t.preventDefault(),P(t.scale*e,null,null,!1)})):(b.showNavigator&&(r={x:0,y:0},s={x:0,y:0},l=b.targetWidth/k*S,c=b.targetWidth,d=null,l>b.targetHeight&&(c=b.targetHeight/S*k,l=b.targetHeight),c=c*b.navigatorSize/100,l=l*b.navigatorSize/100,(u=new B.mediaObject({url:b.url,effect:"none",width:c,height:l,contentWidth:c,contentHeight:l,touchDevice:!1,deferredCaching:!0,protect:b.protect})).Cache({load:function(){var t=null,o=(y=L("<div />").css({position:"absolute",top:-c-10,"inset-inline-start":10,background:O,border:"1px solid "+O}).width(c).height(l).mousedown(function(t){D=!0,r={x:t.pageX,y:t.pageY},s={x:-1*o.css("border-left-width").replace(/px/g,""),y:-1*o.css("border-top-width").replace(/px/g,"")}}).mouseup(function(t){D=!1}).mouseleave(function(t){D=!1}).mousemove(function(t){D&&(t.preventDefault(),_=(s.x+(r.x-t.pageX))/c*k,M=(s.y+(r.y-t.pageY))/l*S,_=Math.min(Math.max(_,-k*I+b.targetWidth),0),M=Math.min(Math.max(M,-S*I+b.targetHeight),0),w.css({top:M,left:_}).triggerHandler("image.change",[I,_,M]))}).on("dragstart",function(t){return t.preventDefault(),!1}),L("<div />").css({position:"absolute",inset:0,border:"0px solid "+O,background:"transparent"}).fadeTo(0,.75));w.on("image.change",function(t,e,i,n){null!==d&&window.cancelAnimFrame(d),d=window.requestAnimFrame(function(){o.css({"border-top-width":-n/e/S*l,"border-bottom-width":l- -n/e/S*l-b.targetHeight*l/(S*e),"border-left-width":-i/e/k*c,"border-right-width":c- -i/e/k*c-b.targetWidth*c/(k*e)})})}),x.append(y.append(u.DOMObject()).append(o)).mouseleave(function(){t=setTimeout(function(){y.stop(!1,!1).animate({top:-y.height()-20})},1e3)}).mouseenter(function(){null!==t&&(clearTimeout(t),t=null),y.stop(!1,!1).animate({top:10})}),y.on("mousewheel DOMMouseScroll",f)}})),w.mousedown(function(t){1!=t.which||b.autoMove||(w.stop(!1,!1).css("cursor","move"),D=!0,h={x:t.pageX,y:t.pageY},p={x:w.position().left,y:w.position().top})}).mouseup(function(){b.autoMove||(D=!1,w.css("cursor","auto"))}).mouseleave(function(){D=!1,w.css("cursor","auto"),null!==g&&window.cancelAnimFrame(g)}).mousemove(function(t){var o,a,e,i;t.preventDefault(),b.autoMove?(D=!0,o=t.pageX-x.offset().left-b.targetWidth/2,a=t.pageY-x.offset().top-b.targetHeight/2,e=Math.abs(o/a),i="","ver"==b.freedom?i+="ns":"hor"==b.freedom?i+="ew":e<1.5&&.5<e?i=i+(a<0?"n":"s")+(o<0?"w":"e"):1<e?i+=o<0?"w":"e":e<1&&(i+=a<0?"n":"s"),w.css("cursor",i+"-resize"),null!==g&&window.cancelAnimFrame(g),function t(e){var i=o*I*e/400,e=a*I*e/400,n=(D&&(M=Math.min(Math.max(M-e,-S*I+b.targetHeight),0),_=Math.min(Math.max(_-i,-k*I+b.targetWidth),0),w.css({top:M,left:_}).triggerHandler("image.change",[I,_,M])),new Date);g=window.requestAnimFrame(function(){t(new Date-n)})}(0)):D&&(_=Math.min(Math.max(p.x-(h.x-t.pageX),-k*I+b.targetWidth),0),M=Math.min(Math.max(p.y-(h.y-t.pageY),-S*I+b.targetHeight),0),w.css({top:M,left:_}).triggerHandler("image.change",[I,_,M]))}),b.enableZoom&&w.dblclick(function(t){P(1!=I?1:T)}),w.on("mousewheel DOMMouseScroll",f).on("dragstart",function(){return!1}),x.append(A=L("<div />").css({position:"absolute",bottom:0,"inset-inline-end":0}).width(30).height(30).append(L("<div />").css({background:b.helperBg,"border-start-start-radius":5,position:"absolute",inset:0}).fadeTo(0,.75)).append(L("<div />").css({background:"transparent url('"+(b.enableZoom?b.lensImage:b.handImage)+"') no-repeat center center",position:"absolute",inset:0}))).mouseenter(function(){A.stop(!1,!1).animate({"inset-inline-end":-30,bottom:-30})}).mouseleave(function(){A.stop(!1,!1).animate({"inset-inline-end":0,bottom:0})})),v.TriggerAnimationInStart(),w.fadeIn(),b.animate&&function t(e){!D&&T+.05<I&&(_+=e/1e3*E*I,((M+=e/1e3*F*I)<-S*I+b.targetHeight||0<M)&&(F*=-1,M=Math.min(Math.max(M,-S*I+b.targetHeight),0)),(_<-k*I+b.targetWidth||0<_)&&(E*=-1,_=Math.min(Math.max(_,-k*I+b.targetWidth),0)),w.css({top:M,left:_}).triggerHandler("image.change",[I,_,M]));var i=new Date;window.requestAnimFrame(function(){t(new Date-i)})}(0)}})}})}(_jq,x5engine),!function(s,e,i){"use strict";function n(){i.requestAnimationFrame(function(){l=[],c=s(i).height(),a=-1;var r=e.utils.getCurrentBrowser();s(".imParallax").each(function(){var t=s(this),e=t.find(".imParallaxBackground");if(0!=e.length){var i=e.data("parallaxDirection")||"down";if("down"!=i||"Microsoft Edge"!=r&&"Microsoft Internet Explorer"!=r){if("fixed"==i)return n=Math.round((c-t.height())/2),e.css("top",(0<n?-n:0)+"px"),e.css("bottom",(0<n?-n:0)+"px"),e.css("visibility","visible"),"Microsoft Internet Explorer"==r?void 0:void e.css("background-attachment","fixed");var n=t.offset().top+t.height()/2,o=c/2+t.height()/2,a=e.data("parallaxZoom")||0,a=(Math.round(t.height()*(1+a/100))-t.height())/2;l.push({background:e,focusPoint:n,maxDistance:o,hidden:!0,direction:i,translateYMax:a}),e.css("will-change","transform")}else e.css("visibility","visible")}}),o((document.documentElement||document.body.parentNode||document.body).scrollTop||i.pageYOffset)})}function o(t){var i=t+c/2;a!=i&&(a=i,s.each(l,function(t,o){var e=o.focusPoint-i,a=(e>o.maxDistance?e=o.maxDistance:e<-o.maxDistance&&(e=-o.maxDistance),Math.round(e*o.translateYMax/o.maxDistance));"up"!=o.direction&&(a=-a),o.background.each(function(t){var e,i=s(this),n=i.data("parallaxLevels")||1;1<n&&"fixed"!=o.direction?(e=i.data("parallaxLevel")||0,e=("down"==o.direction?n-e:e+1)/n,i.css("transform","translate3d(0, "+Math.round(a*e)+"px, 0")):i.css("transform","translate3d(0, "+a+"px, 0)")}),o.hidden&&(o.background.css("visibility","visible"),o.hidden=!1)}))}var l,c,a,r;s.extend(e,{parallax:(l=[],c=0,r=!(a=-1),{start:function(){var t;r||(r=!0,e.responsive.isAnyMobileDevice()?i.requestAnimationFrame(function(){c=s(i).height(),s(".imParallax").each(function(){var t=s(this),e=t.find(".imParallaxBackground");0!=e.length&&("fixed"==(e.data("parallaxDirection")||"down")&&(t=Math.round((c-t.height())/2),e.css("top",(0<t?-t:0)+"px"),e.css("bottom",(0<t?-t:0)+"px")),e.css("visibility","visible"))})}):(n(),t=document.getElementById("imContent"),e.utils.onElementResize(t,function(t,e){n()}),e.utils.scroll.observe(e.utils.scrollHelper().always(),o)))}})})}(_jq,x5engine,window),!function(e,o){"use strict";e.extend(o,{passwordpolicy:{requiredPolicy:!1,minimumCharacters:6,includeUppercase:!1,includeNumeric:!1,includeSpecial:!1,init:function(t){t=e.extend({requiredPolicy:!1,minimumCharacters:6,includeUppercase:!1,includeNumeric:!1,includeSpecial:!1},t),o.passwordpolicy.requiredPolicy="true"==t.requiredPolicy,o.passwordpolicy.minimumCharacters=parseInt(t.minimumCharacters),o.passwordpolicy.includeUppercase="true"==t.includeUppercase,o.passwordpolicy.includeNumeric="true"==t.includeNumeric,o.passwordpolicy.includeSpecial="true"==t.includeSpecial,"true"==t.requiredPolicy&&o.imForm.activeFocusPasswordPolicy(o.passwordpolicy.getPolicy())},getMinimumCharacters:function(){return o.passwordpolicy.minimumCharacters},getPolicy:function(){var t=["form_password"];return t.push("form_password_length"),o.passwordpolicy.includeUppercase&&t.push("form_password_upper"),o.passwordpolicy.includeNumeric&&t.push("form_password_numeric"),o.passwordpolicy.includeSpecial&&t.push("form_password_special"),t},isValidPassword:function(t){var e,i,n;return o.passwordpolicy.requiredPolicy?(e=!o.passwordpolicy.includeUppercase||o.passwordpolicy.includeUppercase&&/[A-Z]/.test(t),i=!o.passwordpolicy.includeNumeric||o.passwordpolicy.includeNumeric&&/[0-9]/.test(t),n=!o.passwordpolicy.includeSpecial||o.passwordpolicy.includeSpecial&&/[!?<>#$%&*@()]/.test(t),t.length>=o.passwordpolicy.minimumCharacters&&e&&i&&n):0<t.length}}})}(_jq,x5engine),!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.ResizeObserver=e()}(this,function(){"use strict";var t,n="undefined"!=typeof Map?Map:((t={size:{configurable:!0}}).size.get=function(){return this.__entries__.length},e.prototype.get=function(t){t=o(this.__entries__,t),t=this.__entries__[t];return t&&t[1]},e.prototype.set=function(t,e){var i=o(this.__entries__,t);~i?this.__entries__[i][1]=e:this.__entries__.push([t,e])},e.prototype.delete=function(t){var e=this.__entries__,t=o(e,t);~t&&e.splice(t,1)},e.prototype.has=function(t){return!!~o(this.__entries__,t)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,n=this.__entries__;i<n.length;i+=1){var o=n[i];t.call(e,o[1],o[0])}},Object.defineProperties(e.prototype,t),e);function e(){this.__entries__=[]}function o(t,i){var n=-1;return t.some(function(t,e){return t[0]===i&&(n=e,!0)}),n}function i(){function t(){a&&(a=!1,n()),r&&i()}function e(){l(t)}function i(){var t=Date.now();if(a){if(t-s<c)return;r=!0}else r=!(a=!0),setTimeout(e,o);s=t}var n,o,a,r,s;this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=(n=this.refresh.bind(this),r=a=!(o=20),s=0,i)}var a="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,r="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),l="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},c=2,s=["top","right","bottom","left","width","height","size","weight"],d="undefined"!=typeof MutationObserver,u=(i.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},i.prototype.removeObserver=function(t){var e=this.observers_,t=e.indexOf(t);~t&&e.splice(t,1),!e.length&&this.connected_&&this.disconnect_()},i.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},i.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),0<t.length},i.prototype.connect_=function(){a&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d?(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)},i.prototype.disconnect_=function(){a&&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)},i.prototype.onTransitionEnd_=function(t){var e=t.propertyName;void 0===e&&(e=""),s.some(function(t){return!!~e.indexOf(t)})&&this.refresh()},i.getInstance=function(){return this.instance_||(this.instance_=new i),this.instance_},i.instance_=null,function(t,e){for(var i=0,n=Object.keys(e);i<n.length;i+=1){var o=n[i];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t}),h=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||r},p=w(0,0,0,0);function g(t){return parseFloat(t)||0}function m(i){for(var t=[],e=arguments.length-1;0<e--;)t[e]=arguments[e+1];return t.reduce(function(t,e){return t+g(i["border-"+e+"-width"])},0)}function f(t){var e,i,n,o,a,r,s=t.clientWidth,l=t.clientHeight;return s||l?(i=(e=function(t){for(var e={},i=0,n=["top","right","bottom","left"];i<n.length;i+=1){var o=n[i],a=t["padding-"+o];e[o]=g(a)}return e}(r=h(t).getComputedStyle(t))).left+e.right,n=e.top+e.bottom,o=g(r.width),a=g(r.height),"border-box"===r.boxSizing&&(Math.round(o+i)!==s&&(o-=m(r,"left","right")+i),Math.round(a+n)!==l)&&(a-=m(r,"top","bottom")+n),t!==h(t).document.documentElement&&(r=Math.round(o+i)-s,t=Math.round(a+n)-l,1!==Math.abs(r)&&(o-=r),1!==Math.abs(t))&&(a-=t),w(e.left,e.top,o,a)):p}var b="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof h(t).SVGGraphicsElement}:function(t){return t instanceof h(t).SVGElement&&"function"==typeof t.getBBox};function v(t){var e;return a?b(t)?w(0,0,(e=(e=t).getBBox()).width,e.height):f(t):p}function w(t,e,i,n){return{x:t,y:e,width:i,height:n}}function y(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=w(0,0,0,0),this.target=t}function x(t,e){i=(e=e).x,n=e.y,a=e.width,e=e.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(o.prototype),u(o,{x:i,y:n,width:a,height:e,top:n,right:i+a,bottom:e+n,left:i});var i,n,o,a=o;u(this,{target:t,contentRect:a})}function C(t,e,i){if(this.activeObservations_=[],this.observations_=new n,"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}y.prototype.isActive=function(){var t=v(this.target);return(this.contentRect_=t).width!==this.broadcastWidth||t.height!==this.broadcastHeight},y.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};function k(t){if(!(this instanceof k))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=i.getInstance(),t=new C(t,e,this);S.set(this,t)}C.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 h(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new y(t)),this.controller_.addObserver(this),this.controller_.refresh())}},C.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 h(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))}},C.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},C.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},C.prototype.broadcastActive=function(){var t,e;this.hasActive()&&(t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new x(t.target,t.broadcastRect())}),this.callback_.call(t,e,t),this.clearActive())},C.prototype.clearActive=function(){this.activeObservations_.splice(0)},C.prototype.hasActive=function(){return 0<this.activeObservations_.length};var S=new("undefined"!=typeof WeakMap?WeakMap:n);return["observe","unobserve","disconnect"].forEach(function(e){k.prototype[e]=function(){return(t=S.get(this))[e].apply(t,arguments);var t}}),void 0!==r.ResizeObserver?r.ResizeObserver:k}),!function(o,a){"use strict";o.extend(!0,a,{responsive:{interfaceName:"media-query-to-js",init:function(){var t,e,i=o(window).width();a.settings.breakPoints&&a.settings.breakPoints.length&&(o("body").append('<div id="'+a.responsive.interfaceName+'" />'),t=null,e=a.responsive.getCurrentBreakPoint(),o(window).on("resize",function(){t&&clearTimeout(t),t=setTimeout(function(){var t;a.utils.isInFullScreenMode()||o(window).width()!=i&&(i=o(window).width(),t=a.responsive.getCurrentBreakPoint())&&e&&(e.hash!=t.hash?(o("#imContent").trigger("beforeBreakpointChanged",t).trigger("breakpointChanged",t).trigger("breakpointChangedOrFluid",t),e=t):t.fluid&&o("#imContent").trigger("breakpointChangedOrFluid",t))},50)}))},getCurrentBreakPoint:function(){for(var t=o("#"+a.responsive.interfaceName).width(),e=a.settings.breakPoints,i=0;i<e.length;i++)if(e[i].end<=t)return e[i];throw"Breakpoint not found!"},isDesktopMode:function(){return a.settings.breakPoints.length<2||a.responsive.getCurrentBreakPoint().hash==a.settings.breakPoints[0].hash},isMobileDevice:function(){var t;return!(a.settings.breakPoints.length<3)&&(t=a.settings.breakPoints[a.settings.breakPoints.length-2],o(window).width()<=t.start)&&Modernizr.touchevents},isAnyMobileDevice:function(){var t;return void 0!==window.orientation||!(!(t=window.matchMedia("(pointer: coarse)"))||!t.matches)},resolutionRedirect:function(t){t=o.extend({execute:!0,defaultUrl:"",rules:[]},t);var e=o("#"+a.responsive.interfaceName),i=(e.length&&0<e.innerWidth()?e:o(window)).innerWidth();if(0<i)for(var n=0;n<t.rules.length;n++)if(t.rules[n].min<=i&&i<t.rules[n].max)return t.execute&&(location.href=t.rules[n].url),t.rules[n].url;return t.defaultUrl?(t.execute&&(location.href=t.defaultUrl),t.defaultUrl):""},touchHelper:function(){var t=!1,e="touchstart"in document||"ontouchstart"in document;o("body").one("mousemove",function(){t=!0}),this.isTouch=function(){return e},this.isTouchOnly=function(){return this.isTouch()&&!t}}}}),a.boot.push(a.responsive.init,!1,"first")}(_jq,x5engine),!function(h,t){"use strict";h.extend(t,{imRollover:function(n){n=h.extend({id:null,movement:"ALTERNATE",direction:"UP",effect:"LINEAR",autostart:!1},n);var o,a=h(n.id),r=null,s=(n.time,null),l=0,i={top:+a.css("padding-top").replace(/px/,""),right:+a.css("padding-inline-end").replace(/px/,""),bottom:+a.css("padding-bottom").replace(/px/,""),left:+a.css("padding-inline-start").replace(/px/,"")};switch(n.effect){case"SWING":o="swing";break;case"BOUNCE":o="imBounce";break;default:o="linear"}void 0!==a.attr("id")&&null!==a.attr("id")||a.attr("id","rollover_"+Math.round(1e3*Math.random()));function c(t){var e,i;if((t=h.extend({tick:!1,reset:!0},t)).reset)switch(h(n.id).parent().height()<n.height&&h(n.id).parent().height(n.height),n.movement){case"CONTINUE":switch(n.direction){case"UP":s.css({"inset-inline-start":0,top:n.height});break;case"BOTTOM":s.css({"inset-inline-start":0,top:-s.height()});break;case"LEFT":s.css("inset-inline-start",a.width()).width(u(s.html()));break;case"RIGHT":l=u(s.html()),s.css("inset-inline-start",-Math.abs(l)).width(l)}break;case"PAGINATE":switch(n.direction){case"BOTTOM":s.css({"inset-inline-start":0,top:-s.height()+n.height});break;case"UP":s.css({"inset-inline-start":0,top:0});break;case"RIGHT":l=u(s.html()),s.css("inset-inline-start",-l+a.width()).width(l);break;case"LEFT":s.css("inset-inline-start",0).width(u(s.html()))}break;default:switch(n.direction){case"UP":s.css({"inset-inline-start":0,top:-s.height()+n.height});break;case"BOTTOM":s.css({"inset-inline-start":0,top:0});break;case"LEFT":l=u(s.html()),s.css("inset-inline-start",-l+a.width()).width(l);break;case"RIGHT":l=u(s.html()),s.css("inset-inline-end",-l+a.width()).width(l)}}switch(n.movement){case"PAGINATE":switch(n.direction){case"UP":i=s.css("top").replace("px",""),(i=isNaN(parseInt(i,10))?0:parseInt(i,10))>n.height-s.outerHeight()?s.animate({top:i-n.height},{duration:"medium",complete:function(){r=setTimeout(function(){c({reset:!1})},1e3*n.time)},easing:o}):s.animate({top:0},{duration:"medium",complete:function(){r=setTimeout(function(){c({reset:!1})},1e3*n.time)},easing:o});break;case"BOTTOM":i=s.css("top").replace("px",""),(i=isNaN(parseInt(i,10))?0:parseInt(i,10))<=0?s.animate({top:i+n.height},{duration:"medium",complete:function(){r=setTimeout(function(){c({reset:!1})},1e3*n.time)},easing:o}):s.animate({top:n.height-s.height()},{duration:"medium",complete:function(){r=setTimeout(function(){c({reset:!1})},1e3*n.time)},easing:o});break;case"LEFT":e=s.css("inset-inline-start").replace("px",""),(e=isNaN(parseInt(e,10))?0:parseInt(e,10))>-s.width()+a.width()?s.animate({"inset-inline-start":e-a.width()},{duration:"medium",complete:function(){r=setTimeout(function(){c({reset:!1})},1e3*n.time)},easing:o}):s.animate({"inset-inline-start":0},{duration:"medium",complete:function(){r=setTimeout(function(){c({reset:!1})},1e3*n.time)},easing:o});break;case"RIGHT":e=s.css("inset-inline-start").replace("px",""),(e=isNaN(parseInt(e,10))?0:parseInt(e,10))<0?s.animate({"inset-inline-start":e+a.width()},{duration:"medium",complete:function(){setTimeout(function(){c({reset:!1})},1e3*n.time)},easing:o}):s.animate({"inset-inline-start":-s.width()+a.width()},{duration:"medium",complete:function(){setTimeout(function(){c({reset:!1})},1e3*n.time)},easing:o})}break;case"CONTINUE":switch(n.direction){case"UP":s.animate({top:-s.outerHeight()},{duration:1e3*n.time,complete:function(){s.css({top:n.outerHeight}),c()},easing:o});break;case"BOTTOM":s.animate({top:n.height},{duration:1e3*n.time,complete:function(){s.css({top:-s.height()}),c()},easing:o});break;case"LEFT":s.animate({"inset-inline-start":-s.width()},{duration:1e3*n.time,complete:function(){s.css({left:a.width()}),c()},easing:o});break;case"RIGHT":s.animate({"inset-inline-start":a.width()},{duration:1e3*n.time,complete:function(){s.css({left:-s.width()}),c()},easing:o})}break;case"SINGLE":switch(n.direction){case"UP":s.animate({top:0},{duration:1e3*n.time,easing:o});break;case"BOTTOM":s.animate({top:-s.height()+n.height},{duration:1e3*n.time,easing:o});break;case"RIGHT":l=u(s.html()),s.animate({"inset-inline-start":-l+a.width()},{duration:1e3*n.time,easing:o});break;case"LEFT":s.animate({"inset-inline-start":0},{duration:1e3*n.time,easing:o})}break;default:switch(n.direction){case"UP":s.animate({top:0},{duration:1e3*n.time,complete:function(){n.direction="BOTTOM",c()},easing:o});break;case"BOTTOM":s.animate({top:-s.height()+n.height},{duration:1e3*n.time,complete:function(){n.direction="UP",c()},easing:o});break;case"RIGHT":l=u(s.html()),s.animate({"inset-inline-start":-l+a.outerWidth()},{duration:1e3*n.time,complete:function(){n.direction="LEFT",c()},easing:o});break;case"LEFT":s.animate({"inset-inline-start":0},{duration:1e3*n.time,complete:function(){n.direction="RIGHT",c()},easing:o})}}}function e(){"PAGINATE"!=n.movement?c():r=setTimeout(function(){c()},1e3*n.time)}function d(){s.stop()}var u=function(t){var t=h("<div><div>"+t+"</div></div>").css({position:"absolute",top:-1e3}).width(5e7),e=t.children().css({width:"auto","white-space":"UP"==n.direction||"BOTTOM"==n.direction?"normal":"nowrap",display:"inline-block","padding-top":i.top,"padding-bottom":i.bottom,"padding-inline-end":i.right,"padding-inline-start":i.left,"max-width":"100%"});return a.append(t),e=e.outerWidth(!0)+30,t.remove(),e};!function t(){a.is(":visible")?(a.height(n.height).css({position:"relative",overflow:"hidden"}),h("#"+a.attr("id")+"_runner").length<1&&a.wrapInner('<div id="'+a.attr("id")+'_runner">'),s=h("#"+a.attr("id")+"_runner").css({position:"absolute","padding-top":i.top,"padding-bottom":i.bottom,"padding-inline-end":i.right,"padding-inline-start":i.left,"white-space":"UP"==n.direction||"BOTTOM"==n.direction?"normal":"nowrap","max-width":"UP"==n.direction||"BOTTOM"==n.direction?"100%":"none",width:"100%","box-sizing":"border-box","inset-inline-start":0,top:0}),n.mouselock&&("PAGINATE"!=n.movement?a.mouseenter(function(){s.pauseAnim()}).mouseleave(function(){s.resAnim()}):a.mouseover(function(){null!==r&&clearTimeout(r)}).mouseleave(function(){r=setTimeout(function(){c({reset:!1})},1e3*n.time)})),n.autostart&&e(),a.data("imRollover",{start:function(){e()},stop:function(){d()},disable:function(){d(),h(s.eq(0).contents()).unwrap(),a.height("auto")}})):setTimeout(t,300)}()}})}(_jq,x5engine),!function(Yt,Ut){"use strict";Yt.extend(Ut,{imShowBox:function(u,r,a){var B=/(iPad|iPhone)/i.test(navigator.userAgent);if(B&&u.media&&0<u.media.length&&u.media[0].url){var t=u.media[0].url;if(t.endsWith(".pdf"))return void window.open(t)}t=Yt("html").hasClass("touchevents")?{innerBorder:0,borderWidth:{left:0,right:0,top:0,bottom:0},windowPadding:0}:{};if((u=Yt.extend({},Ut.settings.imShowBox,u,t)).borderColor.startsWith("rgb"))for(var e=u.borderColor.trim().split(") "),H=0;H<e.length-1;H++)e[H]+=")";else e=u.borderColor.trim().split(" ");1==e.length?(u.borderBlockColor=e[0],u.borderInlineColor=e[0]):2==e.length?(u.borderBlockColor=e[0],u.borderInlineColor=e[1]):3==e.length?(u.borderBlockColor=e[0]+" "+e[2],u.borderInlineColor=e[1]):4==e.length&&(u.borderBlockColor=e[0]+" "+e[2],u.borderInlineColor=e[3]+" "+e[1]);function R(t,e){var i,n,o;u.showThumbs&&void 0!==u.media[t]&&null!==u.media[t]&&((i=Yt("<button type='button' class='clear-button-style im-showbox-thumb' aria-label='"+O("gallery_go_to_image","Show image:")+" "+(u.media[t].alt||t+1)+"' data-index='"+t+"'>")).css({"background-position":"center center","background-repeat":"no-repeat","background-size":"cover",width:u.thumbSize,height:u.thumbSize,display:"none",cursor:"pointer","box-shadow":"0 0 2px "+u.background}),o="",n=u.media[t].type,o=void 0===u.media[t].thumbUrl?-1!=["video","youtube","vimeo"].indexOf(n)?u.media[t].previewUrl||Ut.settings.currentPath+"res/video_thumb.svg":"image"==n?u.media[t].url:Ut.settings.currentPath+"res/impage.png":u.media[t].thumbUrl,Yt("<img/>").on("load",function(){i.css("background-image",'url("'+o+'")'),Yt.isFunction(e)&&e(t,i)}).attr("src",o),R(t+1,e))}function N(i){y.find(".im-showbox-thumb").each(function(){var t=Yt(this),e=parseInt(t.attr("data-index"));e==i?t.css("opacity",.6).attr("aria-label",O("gallery_current_img","Current image:")+" "+(u.media[e].alt||e+1)):t.css("opacity",1).attr("aria-label",O("gallery_go_to_img","Show image:")+" "+(u.media[e].alt||e+1))});var t=u.thumbSize+20,t=C.width()/2-(i*t+t/2);y.css("inset-inline-start",t),xt&&(y.animate({bottom:0},500),xt=!1)}function W(t){l=Yt(document.createElement("div")),k.append(l),l.addClass("showbox-bg"),t&&l.prepend(Ut.settings.imLoadingAnimation),l.css({position:"fixed","background-color":u.background,inset:0,display:"none","z-index":Ut.settings.zIndex.showBox}).fadeTo(x,1),u.backgroundBlur&&((o=null===o?Yt("#imPageExtContainer"):o).css("transition","filter .2s"),o.css("filter","blur(3px)")),0<(t=Yt("body > [role=dialog]")).length?t.last().after(s):k.prepend(s),s.show(),ht?s.on("click",qt):h.on("showboxReady",()=>{s.on("click",qt)}),u.radialBg&&(/Firefox/i.test(navigator.userAgent)?l.css({"background-image":"-moz-radial-gradient(center 45deg, ellipse farthest-corner, "+Ut.utils.hex2rgb(u.background,80,80,80)+" 0%, "+Ut.utils.hex2rgb(u.background,40,40,40)+" 40%, "+Ut.utils.hex2rgb(u.background)+" 100%)"}):/Chrome/i.test(navigator.userAgent)&&l.css({background:"-webkit-gradient(radial, 50% 50%, 0, 50% 50%, 500, from("+Ut.utils.hex2rgb(u.background,80,80,80)+"), to("+Ut.utils.hex2rgb(u.background)+"))"}))}function j(t){var e=g[t].Width()/g[t].Height(),i=g[t].Width()+A,n=g[t].Height()+E,o=M?C.width():C.width()-2*u.windowPadding-(c.outerWidth()+d.outerWidth()),a=M?C.height():C.height()-2*u.windowPadding-Math.max(v.outerHeight(),f.outerHeight(),b.outerHeight())-w.outerHeight(),r=g[t].GetDescription(),s=null,r=(r&&((s=p.clone()).css({position:"absolute",top:-1e3,"inset-inline":"auto",bottom:"auto"}).width(i).html(r),k.append(s),n+=s.outerHeight()),o<i&&(n=(o-A)/e+E,i=o,s)&&(s.width(i),n+=s.outerHeight()),a<n&&(i=(a-A)*e+A,r=n=a,s)&&(s.width(i),r-=o=s.outerHeight(),e=s.width(),a=Math.round(g[t].Width()*r/g[t].Height()),s.width(a),s.outerHeight()<=o?i=Math.round(a):s.width(e)),0);return s&&(r=s.outerHeight(),s.remove()),{width:i,height:n,dHeight:r}}function z(t){u.showProgress&&1<u.media.length&&(ot.html(t+1),at.show(),rt.html(u.media.length))}function q(){return u.zoomEnabled&&wt&&T<6&&(I=!0,T++,Ht()),!1}function V(){return u.zoomEnabled&&wt&&1<T&&(1==--T&&(I=!1),Ht()),!1}function $(t){var e=Ut.utils.fullScreenElement();e&&e!==s.get(0)||(I&&Bt(),g[S].DOMObject().is("iframe")&&-1!=navigator.userAgent.indexOf("X5"))||P(S,null,null,!0)}function Y(t){switch(t.keyCode){case 37:case 40:t.preventDefault(),zt();break;case 39:case 38:t.preventDefault(),jt();break;case 27:t.preventDefault(),(M?Ft:qt)()}}function U(t){Tt||(_t=s[0].contains(t.target)?t.target:(Tt=!0,Mt[0].focus(),_t==document.activeElement&&It[0].focus(),Tt=!1,document.activeElement))}function X(){pt=setTimeout(function(){jt(),pt=null,X()},u.autoplayTime)}function G(){null!==pt&&clearTimeout(pt)}function Z(){var t=Ut.utils.findFocusableElements(s);Mt=t.first(),It=t.last(),s[0].contains(document.activeElement)&&document.activeElement!=f[0]||Mt.focus(),u.buttons&&(t={cursor:"pointer",position:"absolute"},1<u.media.length&&(d.stop(!0,!0).css(t).css({top:(C.height()-d.height())/2,"inset-inline-start":0}).fadeIn(x),c.stop(!0,!0).css(t).css({top:(C.height()-c.height())/2,"inset-inline-end":0}).fadeIn(x)),u.fullScreenEnabled&&b.stop(!0,!0).css(t).css({top:0,display:"block","inset-inline-end":f.outerWidth()}),Rt())}function K(){u.sound&&(lt=new Audio(u.sound)).play()}var J,t=u.borderRadius.trim().split(" "),Q=(1==t.length?(u.borderStartStartRadius=t[0],u.borderStartEndRadius=t[0],u.borderEndStartRadius=t[0],u.borderEndEndRadius=t[0]):2==t.length?(u.borderStartStartRadius=t[0],u.borderStartEndRadius=t[1],u.borderEndEndRadius=t[0],u.borderEndStartRadius=t[1]):3==t.length?(u.borderStartStartRadius=t[0],u.borderStartEndRadius=t[1],u.borderEndEndRadius=t[2],u.borderEndStartRadius=t[1]):4==t.length&&(u.borderStartStartRadius=t[0],u.borderStartEndRadius=t[1],u.borderEndEndRadius=t[2],u.borderEndStartRadius=t[3]),r=r||0,a=Yt(a),r),tt=(a.width()&&a.height()&&!a.children("img").length||((t=a.children("img")).length?a=t:(J=!1,a.children().each(function(){var t=Yt(this);J||0===t.width()||0===t.height()||(a=t,J=!0)}))),Yt("html").hasClass("touchevents")),g=[],o=null,h=null,s=null,p=null,m=null,et=null,l=null,c=null,d=null,f=null,b=null,n=null,it=null,nt=null,v=null,ot=null,at=null,rt=null,w=null,y=null,x="fade"!=u.effect&&"custom"!=u.effect?250:2,st="fade"!=u.effect?250:2,i=null,C=Yt(window),k=Yt("body"),t=Yt("head"),lt=null,S=null,ct=a.css("visibility"),dt=a.width(),ut=a.height(),ht=!1,pt=null,_=null,gt=null,mt=null,ft=null,bt=null,vt=null,M=!1,I=!1,T=1,wt=!1,yt=!0,xt=!0,O=Ut.l10n.get,A=2*u.innerBorder+u.borderWidth.left+u.borderWidth.right,E=2*u.innerBorder+u.borderWidth.top+u.borderWidth.bottom,Ct=0,kt=0,St=null,_t=null,Mt=null,It=null,Tt=!1,F=function(){for(var t={forceStop:!1},e=0;e<u.media.length;e++)t[e]={loadStarted:!1,loadEnded:!1};return t}(),D=function(t,i,n){u.media[t]&&Ot(t,function(t,e){n?D(t+n,i,n):(D(t+1,i,1),D(t-1,i,-1)),i(t,e)})},Ot=function(e,i){var n;F.forceStop||F[e].loadStarted||(F[e].loadStarted=!0,n=u.media[e].load,void 0!==u.media[e].effect&&null!==u.media[e].effect||(u.media[e].effect=u.transitionEffect),new Ut.mediaObject(Yt.extend({},u.media[e],{touchDevice:tt,android:!1,allowFrameTransparency:u.allowFrameTransparency,load:function(t){g[e]=t,Yt.isFunction(i)&&i(e,t);tt&&t.AfterMove(function(t,e){t.preventDefault(),I||((Math.abs(e.offsetX)>Math.abs(e.offsetY)?e.offsetX:e.offsetY)<0?jt:zt)()}).Gesture(function(t){t.preventDefault(),t.scale<.9&&qt()}).AfterPinch(function(t){t.preventDefault(),I?(t.scale<1?V:q)():t.scale<.9&&qt()}),Yt.isFunction(n)&&n(t),F[e].loadEnded=!0}})))},At=function(){et.css("box-shadow",u.shadow)},Et=function(){et.css("box-shadow","")},Ft=function(){if(u.fullScreenEnabled&&Ut.utils.isFullScreenNativelySupported())if(M)Dt();else{if(Ct=window.pageXOffset,kt=window.pageYOffset,M=true,Ut.utils.enterFullScreen(s.get(0)),b.html(u.buttonExitFS).attr("aria-label",O("showbox_tip_fs_exit","Exit FullScreen")).children().attr("aria-hidden","true"),Yt(document).on("imFullScreenClose",Dt),i!=null)clearTimeout(i);i=setTimeout($t,4e3),Yt(document).on("mousemove",Lt),Yt("#imShowBox").on("click",Lt)}return!1},Dt=function(){M&&(M=!1,Ut.utils.exitFullScreen(),Pt()),b.html(u.buttonEnterFS).attr("aria-label",O("showbox_tip_fs_enter","Enter FullScreen")).children().attr("aria-hidden","true"),Yt(document).off("imFullScreenClose",Dt),Yt(document).off("mousemove",Lt),Yt("#imShowBox").off("click",Lt),null!=i?(clearTimeout(i),i=null):Vt()},Pt=function(){(0<Ct||0<kt)&&setTimeout(function(){window.scrollTo(Ct,kt),kt=Ct=0},100)},Lt=function(){null!=i?(clearTimeout(i),i=null):Vt(),i=setTimeout($t,4e3)},Bt=function(){return u.zoomEnabled&&wt&&I&&(I=!(T=1),Ht()),!1},Ht=function(){var t;ht?((t=g[S].DOMObject()).css({transform:"scale3d("+T+", "+T+", 1)","transform-origin":"50% 50% 0","transition-property":"transform","transition-duration":I?"300ms":"0"}),(I?(t.addClass("grabbable"),v.fadeOut(),p.fadeOut(),h.css({backgroundColor:"transparent",borderColor:"transparent"}),Et):(t.removeClass("grabbable"),v.fadeIn(),p.fadeIn(),h.css({backgroundColor:u.boxColor,"border-block-color":u.borderBlockColor,"border-inline-color":u.borderInlineColor}),At))(),t.parent().css({overflow:I?"visible":"hidden",transform:"translate3d(0, 0, 0)"}).attr("data-x",0).attr("data-y",0),Nt(),Rt()):h.on("showboxReady",Ht)},Rt=function(){var t,e,i;u.zoomEnabled&&(t={cursor:"pointer",position:"absolute",top:"0"},e=u.fullScreenEnabled?b.outerWidth():0,wt?(i=0,n.css(t).css({display:"block","inset-inline-end":i+=f.outerWidth()+e}),T<6?n.children().removeClass("disabled"):n.children().addClass("disabled"),it.css(t).css({display:I?"block":"none","inset-inline-end":i+=n.outerWidth()}),nt.css(t).css({display:I?"block":"none","inset-inline-end":i+=it.outerWidth()})):(1==u.media.length?n.css("display","none"):n.css(t).css({display:"block","inset-inline-end":f.outerWidth()+e}).children().addClass("disabled"),it.css("display","none"),nt.css("display","none")))},Nt=function(){var r=g[S].DOMObject(),s=r.parent(),l={},c={},d=!1,u=!1,h=!1,p=!1;m.off("mousedown.zoom touchstart.zoom").on("mousedown.zoom touchstart.zoom",function(t){I&&(p=r.outerHeight()*T>C.height(),(h=r.outerWidth()*T>C.width())||p)&&(t.preventDefault(),l="mousedown"==t.type?{x:t.pageX,y:t.pageY}:{x:t.originalEvent.targetTouches[0].pageX,y:t.originalEvent.targetTouches[0].pageY},r.removeClass("grabbable").addClass("grabbing"),u=!0)}),C.off("mousemove.zoom touchmove.zoom").on("mousemove.zoom touchmove.zoom",function(t){var e;u&&(d=!0,c="mousemove"==t.type?{x:t.pageX,y:t.pageY}:{x:t.originalEvent.targetTouches[0].pageX,y:t.originalEvent.targetTouches[0].pageY},t=p?parseInt(s.attr("data-y"))+(c.y-l.y):s.attr("data-y"),e=h?parseInt(s.attr("data-x"))+(c.x-l.x):s.attr("data-x"),s.css("transform","translate3d("+e+"px, "+t+"px, 0)"))}),C.off("mouseup.zoom touchend.zoom").on("mouseup.zoom touchend.zoom",function(t){var e,i,n,o,a;u&&(u=!1,r.removeClass("grabbing").addClass("grabbable"),!d||l.x===c.x&&l.y===c.y||("mouseup"==t.type&&(c={x:t.pageX,y:t.pageY}),t=l,e=c,i=h,n=p,o=parseInt(s.attr("data-x"))+(e.x-t.x),e=parseInt(s.attr("data-y"))+(e.y-t.y),t=(r.outerHeight()*T-C.height())/2,a=(r.outerWidth()*T-C.width())/2,n&&(e<=-t?e=-t:t<=e&&(e=t)),i&&(o<=-a?o=-a:a<=o&&(o=a)),n?s.attr("data-y",e):e=s.attr("data-y"),i?s.attr("data-x",o):o=s.attr("data-x"),s.css("transform","translate3d("+o+"px, "+e+"px, 0)")),d=!1)})},P=function(i,n,o,a){F[i].loadEnded?Wt(i,n,o,a):F[i].loadStarted?setTimeout(function(){P(i,n,o,a)},100):D(r=i,function(t,e){t==i&&Wt(i,n,o,a)})},Wt=function(e,i,t,n){function o(e){null!==S?(p.stop(!1,!1).fadeOut(x/2),g[S].AnimateOut(m,function(t){t.DOMObject().detach(),Yt.isFunction(e)&&e()},i)):Yt.isFunction(e)&&e()}function a(){g[e].AppendTo(m),m.width(s.width-A).height(s.height-s.dHeight-E),g[e].ContentWidth(s.width-A),g[e].ContentHeight(s.height-s.dHeight-E);var t=null;yt&&(t=u.media[e].effect,g[e].ChangeAnimation("none"),yt=!1),g[e].AnimateIn(m,function(){""!==g[e].GetDescription()&&p.html(g[e].GetDescription()).fadeIn(x),null!==t&&g[e].ChangeAnimation(t),B&&g[e].DOMObject().is("iframe")?m.css({overflow:"scroll","-webkit-overflow-scrolling":"touch"}):m.css({overflow:"hidden","-webkit-overflow-scrolling":""}),ht=!0,h.trigger("showboxReady")},i)}function r(){var t;S=e,d||n?(t=function(){a()},u.shadow&&Et(),h.stop(!1,!1).animate({width:s.width-A,height:s.height-E,"inset-inline-start":(C.width()-s.width)/2,top:c()},{duration:32<h.width()?st:x,complete:function(){h.css("overflow","visible").trigger("showboxReady"),u.shadow&&At(),Yt.isFunction(t)&&t()}})):a()}var s=j(e),l=null!==S?j(S):{width:0,height:0},c=(i=i||!1,t=t||!1,ht=!1,wt="image"==u.media[e].type,z(e),N(e),function(){var t=(C.height()-s.height)/2,e=Math.max(v.outerHeight(),f.outerHeight(),b.outerHeight())+u.windowPadding,i=w.outerHeight()+u.windowPadding;if(!M){if(t<e)return e;if(t<i)return t-(i-t)}return t}),d=l.width!=s.width||l.height!=s.height;t||!d?(o(),r()):o(r)},jt=function(){return I&&Bt(),G(),S+1<g.length?P(S+1):P(0),!1},zt=function(){return I&&Bt(),G(),P(S-1<0?g.length-1:S-1,!0),!1},qt=function(){function t(){return!!_&&(_.attr("content",ft+", maximum-scale=4, user-scalable=yes"),C.scrollLeft(gt),C.scrollTop(mt),!0)}switch(s.off("click"),k.off("keydown",Y),document.removeEventListener("focus",U,!0),St.focus(),C.off("resize",$),bt?(navigator.virtualKeyboard.removeEventListener("geometrychange",bt),bt=null):vt&&(window.visualViewport.removeEventListener("resize",vt),vt=null),l.stop(!1,!1).fadeOut(x,function(){l.remove()}),u.backgroundBlur&&(o=null===o?Yt("#imPageExtContainer"):o).css("filter","none"),null!==S&&g[S].Stop(),pt&&clearTimeout(pt),"zoom"!=u.effect&&"hide"!=u.effect||S==Q||(a.css("visibility",ct),u.effect="fade"),Yt.isFunction(u.onClose)&&u.onClose(),lt&<.pause(),u.effect){case"fade":h.stop(!1,!1).fadeOut(x,function(){s.remove(),!t()&&u.fullScreenEnabled&&Ut.utils.isFullScreenNativelySupported()&&Pt()});break;case"move":h.stop(!1,!1).animate({top:-h.outerHeight()},{duration:x,complete:function(){s.remove(),!t()&&u.fullScreenEnabled&&Ut.utils.isFullScreenNativelySupported()&&Pt()}});break;case"zoom":case"hide":var e,i=a.offset(),n=(i.left-=C.scrollLeft(),i.top-=C.scrollTop(),g[S].DOMObject());p.fadeOut(x),a.find("img");a.is("img")&&(e=a.clone().css({width:"100%",height:"100%",visibility:"visible"}).fadeIn(0),n.before(e)),n.css({width:"100%",height:"100%"}).fadeOut(x),m.animate({width:dt,height:ut},{duration:x}),""!==u.shadow&&Et(),h.animate({top:i.top,left:i.left,width:dt,height:ut,padding:0},{duration:x,complete:function(){"hide"==u.effect&&a.css("visibility",ct),s.remove(),!t()&&u.fullScreenEnabled&&Ut.utils.isFullScreenNativelySupported()&&Pt()}});break;default:s.remove(),l.stop().remove(),!t()&&u.fullScreenEnabled&&Ut.utils.isFullScreenNativelySupported()&&Pt()}F.forceStop=!0},Vt=function(){s.removeClass("imHideShowBoxControls")},$t=function(){s.addClass("imHideShowBoxControls"),i=null},h=Yt('<div id="imShowBox"/>'),s=Yt('<div id="imShowBoxWrapper" role="dialog"/>'),m=Yt("<div />"),p=Yt("<div />"),f=Yt('<button id="imShowBoxClose" type="button" class="clear-button-style"/>').html(u.buttonClose),c=Yt('<button id="imShowBoxNext" type="button" class="clear-button-style"/>').html(u.buttonRight),d=Yt('<button id="imShowBoxPrev" type="button" class="clear-button-style"/>').html(u.buttonLeft),b=Yt('<button id="imShowBoxFullScreenToggle" type="button" class="clear-button-style"/>').html(u.buttonEnterFS),n=Yt('<button id="imShowBoxZoomIn" type="button" class="clear-button-style"/>').html(u.buttonZoomIn),it=Yt('<button id="imShowBoxZoomOut" type="button" class="clear-button-style"/>').html(u.buttonZoomOut),nt=Yt('<button id="imShowBoxZoomRestore" type="button" class="clear-button-style"/>').html(u.buttonZoomRestore),v=Yt('<div id="imShowBoxProgress"/>'),ot=Yt('<div id="imShowBoxProgressCur"/>'),at=Yt("<span>/</span>"),rt=Yt('<div id="imShowBoxProgressTot"/>'),w=Yt('<div id="imShowBoxThumbs"/>'),y=Yt('<div id="imShowBoxThumbsDragger"/>');switch(c.css({display:"none"}).click(jt).attr("aria-label",O("showbox_tip_next","Next")).on("selectstart mousedown",function(){return!1}).children().attr("aria-hidden","true"),d.css({display:"none"}).click(zt).attr("aria-label",O("showbox_tip_prev","Previous")).on("selectstart mousedown",function(){return!1}).children().attr("aria-hidden","true"),m.addClass(u.boxClass).css({position:"relative",height:"100%",overflow:"hidden"}),p.css({"font-family":u.fontFamily,"font-size":u.fontSize,color:u.textColor,"padding-top":0,"padding-inline":u.innerBorder,"padding-bottom":u.innerBorder,"text-align":"left"==u.textAlignment?"start":"right"==u.textAlignment?"end":u.textAlignment,"font-style":u.fontStyle,"font-weight":u.fontWeight,"line-height":1.4,position:"absolute","inset-inline":0,bottom:0}),f.css({position:"absolute","inset-inline-end":0,top:0,cursor:"pointer",display:"block"}).click(qt).attr("aria-label",O("showbox_tip_close","Close")).children().attr("aria-hidden","true"),b.css({display:"none"}).click(Ft).attr("aria-label",O(Ut.utils.isFullScreenNativelySupported()?"showbox_tip_fs_enter":"showbox_tip_fs_unavailable"),Ut.utils.isFullScreenNativelySupported()?"Enter FullScreen":"FullScreen unavailable").children().addClass(Ut.utils.isFullScreenNativelySupported()?"":"disabled").attr("aria-hidden","true"),n.css({display:"none"}).click(q).attr("aria-label",O("showbox_tip_zoom_in","Zoom In")).children().attr("aria-hidden","true"),it.css({display:"none"}).click(V).attr("aria-label",O("showbox_tip_zoom_out","Zoom Out")).children().attr("aria-hidden","true"),nt.css({display:"none"}).click(Bt).attr("aria-label",O("showbox_tip_zoom_restore","Zoom Restore")).children().attr("aria-hidden","true"),v.css({position:"absolute",padding:10,top:0,"inset-inline-start":0,"text-shadow":"0 0 2px "+u.background}).addClass("im-common-button-text-style"),ot.css({display:"inline-block"}),rt.css({display:"inline-block"}),w.css({position:"absolute",bottom:0,"inset-inline-start":0,width:"100%",display:"none"}),y.css({position:"absolute",bottom:-(u.thumbSize+20),"inset-inline-start":0,width:u.media.length*(u.thumbSize+20),"transition-duration":"200ms"}),w.append(y),h.click(function(t){t.stopPropagation()}),at.hide(),s.append(h).append(w).append(nt).append(it).append(n).append(b).append(f).append(v.append(ot).append(at).append(rt)).css({position:"fixed",inset:0,display:"none","z-index":Ut.settings.zIndex.showBox+1}),tt||s.append(d).append(c),h.append(m).append(p).append(Ut.settings.imLoadingAnimation).css({position:"fixed","background-position":"center center","background-repeat":"no-repeat","border-start-start-radius":u.borderStartStartRadius,"border-start-end-radius":u.borderStartEndRadius,"border-end-start-radius":u.borderEndStartRadius,"border-end-end-radius":u.borderEndEndRadius,"z-index":Ut.settings.zIndex.showBox+2,overflow:"visible"}),[f,d,c,b,n,it,nt,v,w].map(function(t){t.css("z-index",Ut.settings.zIndex.showBox+3)}),St=document.activeElement,ht?Z():h.on("showboxReady",Z),et="transparent"==u.boxColor&&(0===u.borderWidth.top&&0===u.borderWidth.bottom&&0===u.borderWidth.left&&0===u.borderWidth.right||"transparent transparent transparent transparent"==u.borderColor)?m:h,tt&&(mt=C.scrollTop(),gt=C.scrollLeft(),(_=t.find('meta[name="viewport"]')).length||(_=Yt('<meta name="viewport" content="initial-scale=1" />'),t.append(_)),ft=_.attr("content"),_.attr("content",ft+", user-scalable=no, maximum-scale=1, interactive-widget=overlays-content"),navigator.virtualKeyboard?(bt=t=>{var e=Yt("#imShowBox");0<e.length&&e.css("top",Math.max((window.outerHeight-t.target.boundingRect.height-e[0].clientHeight)/2,0)+"px")},navigator.virtualKeyboard.addEventListener("geometrychange",bt)):(vt=()=>{var t=Yt("#imShowBox");0<t.length&&t.css("top",Math.max((window.outerHeight-t[0].clientHeight)/2,0)+"px")},window.visualViewport.addEventListener("resize",vt))),u.autoplay&&h.one("showboxReady",X),u.showThumbs&&(w.css({display:"block",height:u.thumbSize+20}),R(0,function(t,e){!function(t,e){if(e.css({margin:"10px"}).addClass("float-start"),0<t)for(var i,n=t-1;0<=n;n--)if(0<(i=y.find("[data-index="+n+"]")).length)return i.after(e);y.prepend(e)}(t,e),e.fadeIn(x).click(function(){return P(t),!1})})),u.effect){case"none":case"fade":case"move":W(),h.css({width:32,height:32,"inset-inline-start":(C.width()-32)/2,"background-color":u.boxColor,top:"move"!=u.effect?(C.height()-32)/2:-50,padding:u.innerBorder,"border-top-width":u.borderWidth.top,"border-inline-end-width":u.borderWidth.right,"border-bottom-width":u.borderWidth.bottom,"border-inline-start-width":u.borderWidth.left,"border-style":"solid","border-block-color":u.borderBlockColor,"border-inline-color":u.borderInlineColor,display:"move"!=u.effect?"none":"block"});var L=function(){D(r,function(t,e){t===r&&(h.find(".imLoadAnim").remove(),P(r,!1,!1),K())}),k.keydown(Y),document.addEventListener("focus",U,!0),C.resize($)};"move"!=u.effect?h.fadeIn(x,L):(h.animate({top:(C.height()-32)/2},{duration:x}),L());break;case"zoom":case"hide":L=a.offset();L.left-=C.scrollLeft(),L.top-=C.scrollTop(),W(),h.css({width:a.width(),height:a.height(),left:L.left,top:L.top,padding:0,"background-color":"transparent","border-width":0,display:"none"}).fadeIn(x),D(r,function(t,e){var i,n,o;t===r&&(S=t,wt="image"==u.media[t].type,z(t),i=null,a.is("img")&&(i=a.clone().css({width:"100%",height:"100%"}),m.append(i)),"hide"==u.effect&&a.css("visibility","hidden"),h.find(".imLoadAnim").remove(),n=j(t),(o=e.DOMObject()).css({top:0,"inset-inline-start":0,width:"100%",height:"100%",display:"none"}),m.append(o),m.stop(!0,!0).animate({width:n.width-A,height:n.height-n.dHeight-E},{duration:x}),e.TriggerAnimationInStart(),h.css({"background-color":u.boxColor,"border-width":0,"border-style":"solid","border-block-color":u.borderBlockColor,"border-inline-color":u.borderInlineColor}).stop(!0,!0).animate({padding:u.innerBorder,width:n.width-A,height:n.height-E,"border-top-width":u.borderWidth.top,"border-inline-end-width":u.borderWidth.right,"border-bottom-width":u.borderWidth.bottom,"border-inline-start-width":u.borderWidth.left,top:(C.height()-n.height)/2,"inset-inline-start":(C.width()-n.width)/2},{duration:x,complete:function(){N(t),ht=!0,h.trigger("showboxReady"),o.width(n.width-A).height(n.height-n.dHeight-E),P(t),""!==u.shadow&&At(),e.TriggerAnimationInEnd()}}),i&&i.fadeOut(function(){i.remove()}),o.fadeIn(x),p.empty().fadeOut(x),K(),k.keydown(Y),document.addEventListener("focus",U,!0),C.resize($))});break;case"custom":u.customEffect&&(W(!0),h.css({width:32,height:32,"inset-inline-start":(C.width()-32)/2,"background-color":u.boxColor,top:"move"!=u.effect?(C.height()-32)/2:-50,padding:u.innerBorder,"border-top-width":u.borderWidth.top,"border-inline-end-width":u.borderWidth.right,"border-bottom-width":u.borderWidth.bottom,"border-inline-start-width":u.borderWidth.left,"border-style":"solid","border-block-color":u.borderBlockColor,"border-inline-color":u.borderInlineColor,display:"none"}),D(r,function(t,e){t===r&&(l.find(".imLoadAnim").remove(),h.fadeIn(x,function(){h.find(".imLoadAnim").remove(),P(r,!1,!1);function t(){h.addClass(u.customEffect)}-1<navigator.userAgent.indexOf("MS IE")?setTimeout(t,2):t(),K()}))}),k.keydown(Y),document.addEventListener("focus",U,!0),C.resize($))}return!1}})}(_jq,x5engine),!function(g,m){"use strict";g.extend(m,{imSlider:{Horizontal:function(t,e){var i,s,l,n=g(t),c=m.utils.isRTL(n[0]),o=0,d=n.find(".imGlContent"),u=n.find(".imRunner"),h=0,a=g("html").hasClass("touchevents"),r=null,p=g.extend({helperBg:"black",swipeImage:"res/move.png",visibleImagesCount:0},e);a?(n.find(".imLeftArrow").add(n.find(".imRightArrow")).css("visibility","hidden"),u.css("inset-inline-start",""),s=u.find("img").outerWidth(!0),l=null,new m.mediaObject({type:"dom",url:t+" .imRunner",width:u.width(),height:u.height(),effect:"none",touchDevice:!0,load:function(t){var e,i,n,o,a=u.width(),r=d.width();t.TriggerAnimationInStart().TriggerAnimationInEnd().BeforeMove(function(t){u.stop(!1,!1),n=t.touches[0].pageX,o=h,s=u.find("img").outerWidth(!0),e=null}).Move(function(t){t.preventDefault(),i=e,h=e=o-(n-t.touches[0].pageX),(e<-a+r||0<e)&&(h=o-(n-t.touches[0].pageX)/2),window.cancelAnimFrame(l),l=window.requestAnimFrame(function(){u.css("left",h)}),n=t.touches[0].pageX,o=h}).AfterMove(function(t){t.preventDefault(),e&&(i&&(e+=6*(e-i)),t=Math.abs(e%s),e=s/2<t?c?e+(s-t):e-(s-t):c?e-t:e+t,u.stop(!1,!1).animate({left:c?Math.max(Math.min(e,a-r),0):Math.min(Math.max(e,-a+r),0)},{duration:1e3,easing:"iOsSwing",step:function(t,e){"left"==e.prop&&(h=t)}}))})}}),r=g('<div data-hide="false" />').css({position:"absolute",bottom:0,"inset-inline-end":0}).width(30).height(30).append(g("<div />").css({background:p.helperBg,"border-start-start-radius":5,position:"absolute",inset:0}).fadeTo(0,.75)).append(g("<div />").css({background:"transparent url('"+p.swipeImage+"') no-repeat center center",position:"absolute",inset:0})),d.append(r)):(i=u.find("img").length,n.find(".imLeftArrow").not(".hiddenArrow").off("click").on("click",function(){o=0===o?i-p.visibleImagesCount:(o-=p.visibleImagesCount,Math.max(o,0)),h=c?-(u[0].getBoundingClientRect().right-u.find("img").eq(o)[0].getBoundingClientRect().right):-u.find("img").eq(o).position().left,u.stop(!1,!1).animate({"inset-inline-start":h})}),n.find(".imRightArrow").not(".hiddenArrow").off("click").on("click",function(){var t=i-p.visibleImagesCount;o=t<=o?0:(o+=p.visibleImagesCount,Math.min(o,t)),h=c?-(u[0].getBoundingClientRect().right-u.find("img").eq(o)[0].getBoundingClientRect().right):-u.find("img").eq(o).position().left,u.stop(!1,!1).animate({"inset-inline-start":h})}))},Vertical:function(t,e){var i,s,l,n=g(t),o=0,c=n.find(".imGlContent"),d=n.find(".imRunner").on("dragstart",function(){return!1}),u=0,a=g("html").hasClass("touchevents"),r=null,h=g.extend({helperBg:"black",swipeImage:"res/move.png",visibleImagesCount:0},e);a?(n.find(".imTopArrow").add(n.find(".imBottomArrow")).css("visibility","hidden"),s=0,l=null,new m.mediaObject({type:"dom",url:t+" .imRunner",width:d.width(),height:d.height(),effect:"none",touchDevice:!0,load:function(t){var e,i,n,o,a=d.height(),r=c.height();t.TriggerAnimationInStart().TriggerAnimationInEnd().BeforeMove(function(t){d.stop(!1,!1),n=t.touches[0].pageY,o=u,s=d.find("img").outerHeight(!0),e=null}).Move(function(t){t.preventDefault(),i=e,u=e=o-(n-t.touches[0].pageY),(e<-a+r||0<e)&&(u=o-(n-t.touches[0].pageY)/2),window.cancelAnimFrame(l),l=window.requestAnimFrame(function(){d.css("top",u)}),n=t.touches[0].pageY,o=u}).AfterMove(function(t){t.preventDefault(),e&&(i&&(e+=6*(e-i)),t=Math.abs(e%s),s/2<t?e-=s-t:e+=t,d.stop(!1,!1).animate({top:Math.min(Math.max(e,-a+r),0)},{duration:1e3,easing:"iOsSwing",step:function(t,e){"top"==e.prop&&(u=t)}}))})}}),r=g('<div data-hide="false" />').css({position:"absolute",bottom:0,"inset-inline-end":0}).width(30).height(30).append(g("<div />").css({background:h.helperBg,"border-start-start-radius":5,position:"absolute",inset:0}).fadeTo(0,.75)).append(g("<div />").css({background:"transparent url('"+h.swipeImage+"') no-repeat center center",position:"absolute",inset:0})),c.append(r)):(i=d.find("img").length,n.find(".imTopArrow").off("click").on("click",function(){o=0===o?i-h.visibleImagesCount:(o-=h.visibleImagesCount,Math.max(o,0)),u=-d.find("img").eq(o).position().top,d.stop(!1,!1).animate({top:u})}),n.find(".imBottomArrow").off("click").on("click",function(){var t=i-h.visibleImagesCount;o=t<=o?0:(o+=h.visibleImagesCount,Math.min(o,t)),u=-d.find("img").eq(o).position().top,d.stop(!1,!1).animate({top:u})}))},Page:function(t,e){var i,r=g(t),s=m.utils.isRTL(r[0]),n=g(t+" .imSPage"),l=g(t+" .imRunner").on("dragstart",function(){return!1}),c=0,o=g("html").hasClass("touchevents"),d=n.width(),u=n.length*d,n=null,a=g.extend({helperBg:"black",swipeImage:"res/move.png"},e);1==e.fluidMode?l.width("auto"):(l.width(u),o?(l.css("inset-inline-start",""),new m.mediaObject({type:"dom",url:t+" .imRunner",width:u,height:l.height(),effect:"none",touchDevice:!0,load:function(t){var i,n,e,o,a=r.width();t.TriggerAnimationInStart().TriggerAnimationInEnd().BeforeMove(function(t){l.stop(!1,!1),e=t.touches[0].pageX,o=c,i=null}).Move(function(t){t.preventDefault(),n=i,c=i=o-(e-t.touches[0].pageX),(i<-u+a||0<i)&&(c=o-(e-t.touches[0].pageX)/2),l.css("left",c),e=t.touches[0].pageX,o=c}).AfterMove(function(t,e){t.preventDefault(),i&&(t=Math.abs(i%d),s?i-=t:i+=t,30<Math.abs(e.offsetX)&&(s?i-=i-t-n<0?-d:d:i+=i-t-n<0?-d:d),l.stop(!1,!1).animate({left:s?Math.max(Math.min(i,u-a),0):Math.min(Math.max(i,-u+a),0)},{duration:1e3,easing:"iOsSwing",step:function(t,e){"left"==e.prop&&(c=t)}}))})}}),n=g('<div data-hide="false" />').css({position:"absolute",bottom:0,"inset-inline-end":0}).width(30).height(30).append(g("<div />").css({background:a.helperBg,"border-start-start-radius":5,position:"absolute",inset:0}).fadeTo(0,.75)).append(g("<div />").css({background:"transparent url('"+a.swipeImage+"') no-repeat center center",position:"absolute",inset:0})),r.append(n)):((i=g(t+" .imSControls")).length&&i.remove(),r.append('<div class="imSControls"><button type="button" class="clear-button-style imPPrev" aria-label="'+m.l10n.get("cmn_pagination_prev","Previous")+'"><</button><button type="button" class="clear-button-style imPNext" aria-label="'+m.l10n.get("cmn_pagination_next","Next")+'">></button></div>'),i.css({"border-start-start-radius":"10px ","border-start-end-radius":"10px ","border-end-start-radius":"0","border-end-end-radius":"0",color:"black",bottom:-i.height()-50}),l.find(".imSPage:not(:first-child)").children().attr("aria-hidden","true").attr("tabindex","-1"),g(t+" .imPPrev").off("click").on("click",function(){0<c+d?c=-u+d:c+=d;var t=-c/d;l.animate({"inset-inline-start":c},{complete:function(){l.find(".imSPage").children().attr("aria-hidden","true").attr("tabindex","-1"),l.find(".imSPage:nth-child("+(1+t)+")").children().attr("aria-hidden","false").attr("tabindex","0")}})}),g(t+" .imPNext").off("click").on("click",function(){Math.round(100*(c-d+Number.EPSILON))<Math.round(100*(-u+d+Number.EPSILON))?c=0:c-=d;var t=-c/d;l.animate({"inset-inline-start":c},{complete:function(){l.find(".imSPage").children().attr("aria-hidden","true").attr("tabindex","-1"),l.find(".imSPage:nth-child("+(1+t)+")").children().attr("aria-hidden","false").attr("tabindex","0")}})}),r.mouseleave(function(){i.stop(!0,!0).animate({bottom:-i.height()-50})}).mouseover(function(){i.stop(!0,!0).animate({bottom:0})})))}}})}(_jq,x5engine),!function(v,w){"use strict";v.extend(w,{imSplashBox:function(n){var o,a,r,s,l,c,d,e,i,u,h,t='<img aria-hidden="true" class="imCloseInn" src="'+w.settings.currentPath+'res/imClose.png" />',p=null,g=v(),m=v(window),f=v("body"),b="im_splash"+(n=v.extend(!0,{id:"splash",effect:"fade",position:"center",modal:!1,shadow:!0,margin:10,cookie:!1,priority:0,link:"",media:null,text:"",sound:"",onClose:null,elementClose:t,offlineTimeStamp:0,desiredWidth:-1,desiredHeight:-1,labelId:null,descriptionId:null,closeOnBack:!1},n)).id+(!w.utils.isOnline()&&n.offlineTimeStamp?"_"+n.offlineTimeStamp:"");return(!n.cookie||"true"!=v.imCookie(b))&&(l=function(){var t,e;switch(s=h?(g=h.DOMObject(),o.add(g).css({width:"",height:"","inset-inline-end":"",bottom:""}),r=h.Width(),h.Height()):(r=-1<n.desiredWidth?n.desiredWidth:o.width(),-1<n.desiredHeight?n.desiredHeight:o.height()),t=m.width()-40,e=m.height()-40,t<r?(r=t,o.add(g).outerWidth(r),s=o.outerHeight()):o.add(g).outerWidth(r),g.length&&e<s&&(r*=e/s,s=e,o.add(g).outerHeight(s).outerWidth(r)),n.position){case"center":n.modal||(a={"inset-inline-start":(m.width()-r)/2,top:(m.height()-s)/2});break;case"center-left":a={"inset-inline-start":n.margin,top:(m.height()-s)/2};break;case"center-right":a={"inset-inline-start":m.width()-r-n.margin,top:(m.height()-s)/2};break;case"bottom":a={"inset-inline-start":(m.width()-r)/2,top:m.height()-s-n.margin};break;case"bottom-right":a={"inset-inline-start":m.width()-r-n.margin,top:m.height()-s-n.margin};break;case"bottom-left":a={"inset-inline-start":n.margin,top:m.height()-s-n.margin};break;case"top":a={"inset-inline-start":(m.width()-r)/2,top:n.margin};break;case"top-right":a={"inset-inline-start":m.width()-r-n.margin,top:n.margin};break;case"top-left":a={"inset-inline-start":n.margin,top:n.margin}}n.modal||(a.margin=0),a&&o.css(a)},c=function(t){n.cookie&&v.imCookie(b,"true",{expires:0,path:"/"}),v.isFunction(n.onClose)&&n.onClose(),o.fadeOut(200,function(){o[0].close(),o.remove(),p&&p.pause()}),f.off("keydown",e),t&&t.stopPropagation()},d=function(t){l(t),h&&h.AppendTo(v(".mediaTarget"))},t='<dialog id="'+n.id+'" class="splashbox"'+(n.labelId?' aria-labelledby="'+n.labelId+'"':"")+(n.descriptionId?' aria-describedby="'+n.descriptionId+'"':"")+">",""!==n.elementClose&&(t+='<div style="text-align: end; "><button type="button" class="imClose close clear-button-style" aria-label="'+w.l10n.get("showbox_tip_close","Close")+'">'+n.elementClose+"</button></div>"),n.text&&(t+='<div class="splashContent" style="overflow: hidden;">'+n.text+"</div>"),t=t+(n.media?'<div class="splashContent mediaTarget" style="overflow: hidden;"></div>':"")+"</dialog>",v("body").prepend(t),o=v("#"+n.id).fadeOut(0).css({zIndex:w.settings.zIndex.splashBox+n.priority}),n.shadow&&o.css("box-shadow","0px 3px 7px #000"),e=function(t){27==t.keyCode&&c(t)},f.keydown(e),i=function(e){var i=h?h.DOMObject():o.find(".splashContent");setTimeout(function(){var t;switch(l(),m.resize(function(){clearTimeout(t),t=setTimeout(d,100)}),o.find(".close").click(c),n.link&&(w.utils.makeClickableWithKeyboard(i),i.click(function(){v.isFunction(n.link)?n.link.call(o):location.href=n.link})),n.modal?o[0].showModal():o[0].show(),n.closeOnBack&&"CloseWatcher"in window&&(new CloseWatcher(o[0]).onclose=()=>{c()}),n.effect){case"fromtop":o.css({top:-v(window).height()-s}),o.fadeIn(0),o.animate(a,{duration:500,complete:e});break;case"frombottom":o.css({top:v(window).height()+s}),o.fadeIn(0),o.animate(a,{duration:500,complete:e});break;case"fromleft":o.css({"inset-inline-start":-r}),o.fadeIn(0),o.animate(a,{duration:500,complete:e});break;case"fromright":o.css({"inset-inline-start":r+m.width()}),o.fadeIn(0),o.animate(a,{duration:500,complete:e});break;case"fade":o.fadeIn(500,e);break;default:o.css("display",""),o.addClass(n.effect),v.isFunction(e)&&e()}n.sound&&n.sound&&(p=new Audio(n.sound)).play()},500)},n.media?(u=n.media.load,h=new w.mediaObject(v.extend(n.media,{load:function(t){setTimeout(function(){i(function(){t.AppendTo(v(".mediaTarget")),t.DOMObject().css("position",""),l(),v.isFunction(u)&&u(t)})},100)}}))):i(),{close:function(){v.isFunction(c)&&c()}})}})}(_jq,x5engine),!function(V,$){"use strict";V.extend($,{textTabs:function(l){if(null!==(l=V.extend({target:null,width:0,height:0,effect:"horizontalSlide",tabPosition:"top",autoplay:!1,interval:5e3,setTabScrollWidth:!1,setContainerHeight:!1,setDynamicHeight:!1,enableFixedHeight:!1,fixedHeight:200,cleanCssContent:!1,slideshow:{active:!1,nextPrevMode:"hover",buttonPrev:{url:"",x:0,y:0},buttonNext:{url:"",x:0,y:0}}},l)).target){var c,d,a=V(l.target),r=a.find(".tab").not(".tab-scroller"),u=a.find(".tab-scroller"),i=a.find(".text-tabs-outer"),h=a.find(".text-tabs-inner"),p=a.find("[id*="+a.attr("id")+"]"),g=a.find(".text-container"),s=[],m=0,t=V("html").hasClass("touchevents"),f=0,e=null,b=r.height()+1,v=h.height(),w=h.width(),n=null,o=null,y=null,x=0,C=!0,B=-1,k=$.utils.isRTL(a[0]),S=(l.setTabScrollWidth&&0<u.filter(":visible").length?i.css({maxWidth:g.width()-u.eq(0).outerWidth(!0)-u.eq(1).outerWidth(!0)}):i.css({maxWidth:""}),c=i.height(),d=i.width(),V("#"+a[0].id+"_tab0").find(".text-tab-content.text-inner.grid-prop.current-tab"));if(!0!==l.enableFixedHeight||t)if(!0===l.setContainerHeight){0<S.length&&0==m&&S.css("height","auto");var _=0,M=0;for(g.height("auto"),p.height("auto").width(g.width()),M=0;M<p.length;M++)_=Math.max(p.eq(M).outerHeight(!0),_);for(M=0;M<p.length;M++)p.eq(M).height(_);0<S.length&&0==m&&(T=parseInt(V("#"+a[0].id+" .text-container").css("min-height"))-parseInt(V(S).css("padding-top"))-parseInt(V(S).css("padding-bottom"))+"px",S.css("height",T)),g.height(_)}else!0===l.setDynamicHeight?(T=p.eq(0)&&1==p.eq(0).find(".text-inner").length?p.eq(0).find(".text-inner").outerHeight(!0):"",g.css("height",T)):g.css("height","");else g.height(l.fixedHeight);if(0<S.length&&0==m)try{S.data("imRollover").start()}catch(t){}t||V("#"+a[0].id+" .tab").addClass("not-mobile"),(window.navigator.userAgent.match(/iPad/i)||window.navigator.userAgent.match(/iPhone/i))&&a.css("-webkit-text-size-adjust","none"),$.utils.onElementResize(a[0],function(t,e){e=V(e).find(".text-tabs").width();e&&e!=B&&i&&(B=e,i[0].scrollWidth-2>e?(i.css("max-width",e-2*i.height()-3),u.show()):(i.css("max-width",""),u.hide()),d=i.width())});var I,T,O,A,E,F=function(e,t,i,n){var o;e!=m&&(z(e),(o=s[m].DOMObject().find(".text-inner").data("imRollover"))&&(null!=n&&n?o.disable():o.stop()),g.css("overflow-x","hidden"),s[e].DOMObject().wrapInner('<div class="temp-wrapper" style="overflow-x: hidden; width: '+g.width()+'px;" />'),s[m].AnimateOut(g,function(t){t.DOMObject().hide(0),setTimeout(function(){q(e)},100)},t),s[e].AnimateIn(g,function(t){t.DOMObject().find(".temp-wrapper").contents().unwrap(),g.css("overflow-x","");t=t.DOMObject().find(".text-inner").data("imRollover");t&&t.start()},t),r.parent(".tab-border").removeClass("selected-tab-border"),r.removeClass("selected-text-tab").attr("aria-selected","false").attr("tabindex","-1").eq(e).addClass("selected-text-tab").attr("aria-selected","true").attr("tabindex","0").parent(".tab-border").addClass("selected-tab-border"),i&&H(e),m=e)},D=function(t){t=!!t,L(),F((m+1)%s.length,!1,t)},P=function(t){t=!!t,L(),F(m-1<0?s.length-1:m-1,!0,t)},H=function(t,e){var i,n,o,a,r,s;if(0!=h.length)return e=null!=e,n=(i="bottom"==l.tabPosition||"top"==l.tabPosition)?w:v,o=i?d:c,a=i?k?h[0].getBoundingClientRect().right-h.children(".tab:nth-child("+(t+1)+"), .tab-border:nth-child("+(t+1)+")")[0].getBoundingClientRect().right:h.children(".tab:nth-child("+(t+1)+"), .tab-border:nth-child("+(t+1)+")")[0].offsetLeft:t*b,r=i?a+h.children(".tab:nth-child("+(t+1)+"), .tab-border:nth-child("+(t+1)+")")[0].offsetWidth:(t+1)*b,s=f+a<o/2,!0===l.setDynamicHeight&&(t=p.eq(t)&&1==p.eq(t).find(".text-inner").length?p.eq(t).find(".text-inner").outerHeight(!0):"",g.css("height",t)),2==u.length&&!(!e&&-a<=f&&f<=-r+o)&&(t=s?-a:o-r,f=Math.min(0,Math.max(-n+o+3,t)),h.stop(!1,!1),void(i?h.animate({"inset-inline-start":f}):h.animate({top:f})))},R=function(){null!==e&&clearTimeout(e),e=setTimeout(function(){D(!0),R()},l.interval)},N=function(){null!==e&&clearTimeout(e)},W=function(t){t.TriggerAnimationInStart().TriggerAnimationInEnd().AfterMove(function(t,e){t.preventDefault(),(Math.abs(e.offsetX)>Math.abs(e.offsetY)?e.offsetX:e.offsetY)<-50?D(!0):50<(Math.abs(e.offsetX)>Math.abs(e.offsetY)?e.offsetX:e.offsetY)&&P(!0)})},L=function(){var t=g.get(0).scrollWidth==g.get(0).clientWidth;s=[];for(var e=0;e<p.length;e++)s[s.length]=new $.mediaObject({url:"#"+p.eq(e).attr("id"),type:"dom",effect:l.effect,width:l.width,height:p.eq(e).height(),contentWidth:g.width(),contentHeight:p.eq(e).height(),touchDevice:t,ignoreVerticalScroll:!0,load:W,selectable:!0})},j=(h.on("keydown",function(t){var e;"ArrowRight"!=t.key&&"ArrowLeft"!=t.key||(e=parseInt(h.find(".selected-text-tab").attr("data-index")),"ArrowRight"==t.key?e=(e+1)%r.length:"ArrowLeft"==t.key&&--e<0&&(e=r.length-1),h.find("[data-index="+e+"]").focus(),j(e))}),r.off("click").on("click",function(t){t.preventDefault();t=+V(this).attr("data-index");return j(t),!1}).css("inset-inline-start",0),function(t){0!=C&&null!==t&&!1!==t&&(L(),N(),F(t,t<m,!0))}),z=function(t){var e;C=!1,V("#"+a[0].id+" .text-container").append(V('<div class="grid-prop text-tab-content-place-holder">')),V("#"+a[0].id+" .grid-prop.text-tab-content-place-holder").css("min-height",g.height()),V("#"+a[0].id+" .grid-prop.text-tab-content-place-holder").css("height","100%"),V("#"+a[0].id+" .text-tab-content.current-tab").css("display","block"),V("#"+a[0].id+" .text-tab-content").css("position","").addClass("detach"),V("#"+a[0].id+" .text-tab-content").removeClass("current-tab grid-prop").attr("hidden","true").css("opacity",""),"horizontalSlide"!=l.effect&&"bounceFromLeft"!=l.effect&&"elasticFromLeft"!=l.effect&&"elasticFromRight"!=l.effect||(e=-1*V("#"+a[0].id+" .text-container").width(),V("#"+a[0].id+"_tab"+t).css("inset-inline-start",e))},q=function(t){V("#"+a[0].id+" .text-tab-content").removeClass("detach"),V("#"+a[0].id+" .text-tab-content").addClass("grid-prop"),V("#"+a[0].id+" .grid-prop").removeClass("current-tab").attr("hidden","true"),V("#"+a[0].id+" .text-container").find("[data-index='"+t+"']").addClass("current-tab").removeAttr("hidden");for(var e=!!window.MSInputMethodContext&&!!document.documentMode,i=0;i<p.length;i++){var n=V("#"+a[0].id+"_tab"+i);l.cleanCssContent?(n.css({display:"","transform-origin":"",transform:"","inset-inline-start":0,top:0,height:"100%",width:"100%"}),e||n.css("position",""),V("#"+a[0].id+"_tab"+i+" div").hasClass("text-tab-content")&&(V("#"+a[0].id+"_tab"+i+" .text-tab-content").css({display:"","transform-origin":"",transform:"","inset-inline-start":0,top:0,height:"100%",width:"100%"}),e||V("#"+a[0].id+"_tab"+i+" .text-tab-content").css("position",""))):(n.css("height","100%"),e||n.css("position",""),V("#"+a[0].id+"_tab"+i+" div").hasClass("text-tab-content")&&(V("#"+a[0].id+"_tab"+i+" .text-tab-content").css("height","100%"),e||V("#"+a[0].id+"_tab"+i+" .text-tab-content").css("position","")))}V("#"+a[0].id+"_tab"+t).css("opacity","").addClass("current-tab").removeAttr("hidden");var o,t=V("#"+a[0].id+"_tab"+t).find(".text-tab-content.text-inner.grid-prop.current-tab");0<t.length&&(o=parseInt(V("#"+a[0].id+" .text-container").css("min-height"))-parseInt(V(t).css("padding-top"))-parseInt(V(t).css("padding-bottom"))+"px",V(t).css("position","relative"),"Desktop"==$.responsive.getCurrentBreakPoint().name)&&V(t).css("height",o),V("#"+a[0].id+" .text-tab-content-place-holder").remove(),C=!0};return l.slideshow.active&&"none"!=l.slideshow.nextPrevMode&&(I=null!=(I=V(l.target).css("padding-top"))?parseFloat(I):0,V("<img />").one("load",function(){(n=V('<button type="button" class="clear-button-style" aria-label="'+$.l10n.get("text_tab_prev","Previous tab")+'" />').append(V(this))).css({position:"absolute",top:-1e3}),g.after(n),n.css({top:(g.height()-n.height())/2+l.slideshow.buttonPrev.y+I,"inset-inline-start":0,cursor:"pointer","z-index":1e3}).click(function(t){t.preventDefault(),N(),P()}),k&&n.css("transform","scaleX(-1)"),"hover"==l.slideshow.nextPrevMode&&n.addClass("screen-reader-only").on("blur",function(){V(this).parent().trigger("mouseleave")})}).attr("src",l.slideshow.buttonPrev.url).attr("aria-hidden","true"),V("<img />").one("load",function(){(o=V('<button type="button" class="clear-button-style" aria-label="'+$.l10n.get("text_tab_next","Next tab")+'" />').append(V(this))).css({position:"absolute",top:-1e3}),g.parent().append(o),o.css({top:(g.height()-o.height())/2+l.slideshow.buttonNext.y+I,"inset-inline-end":0,cursor:"pointer","z-index":1e3}).click(function(t){t.preventDefault(),N(),D()}),k&&o.css("transform","scaleX(-1)"),"hover"==l.slideshow.nextPrevMode&&o.addClass("screen-reader-only").on("blur",function(){V(this).parent().trigger("mouseleave")})}).attr("src",l.slideshow.buttonNext.url).attr("aria-hidden","true"),"hover"==l.slideshow.nextPrevMode)&&g.parent().mouseenter(function(){null!==y&&(clearTimeout(y),y=null),null!==o&&null!==n&&n.add(o).stop(!1,!1).css("display","none").removeClass("screen-reader-only").fadeTo(250,.999)}).mouseleave(function(){null!==o&&null!==n&&(null!==y&&clearTimeout(y),y=setTimeout(function(){o.add(n).stop(!1,!1).fadeOut(250,function(){V(this).addClass("screen-reader-only").css("display","block")})},50))}),2==u.length&&(u.eq(1).off("click").on("click",function(){var e,t=$.responsive.getCurrentBreakPoint();"top"==l.tabPosition||"bottom"==l.tabPosition||t&&0===t.end?-w+d<f&&(e=h[0].getBoundingClientRect().right,h.children(".tab, .tab-border").each(function(){var t=(k?e-this.getBoundingClientRect().right:this.offsetLeft)+f;t<d+5&&t+this.offsetWidth>d&&(x=t+this.offsetWidth-d)}),f=Math.max(-w+d+3,f-x),h.stop(!1,!1).animate({"inset-inline-start":f+1})):f>-h.height()+i.height()&&(x=Math.abs((f-c)%b),f=Math.max(-v+c,f-b+x),h.stop(!1,!1).animate({top:f+1}))}),u.eq(0).off("click").on("click",function(){var i,t=$.responsive.getCurrentBreakPoint();"top"==l.tabPosition||"bottom"==l.tabPosition||t&&0===t.end?f<0&&(i=h[0].getBoundingClientRect().right,h.children(".tab, .tab-border").each(function(t){var e=(k?i-this.getBoundingClientRect().right:this.offsetLeft)+f;e<0&&-5<e+this.scrollWidth&&(x=e)}),f=Math.min(0,f-x),h.stop(!1,!1).animate({"inset-inline-start":f-1})):f<0&&(x=f%b!=0?b-Math.abs(f%b):0,f=Math.min(0,f+b-x),h.stop(!1,!1).animate({top:f-1}))}),t)&&(T=g.get(0).scrollWidth==g.get(0).clientWidth,E=A=O=0,new $.mediaObject({type:"dom",url:h,effect:"none",touchDevice:T,load:function(t){t.TriggerAnimationInStart()}}).BeforeMove(function(){O=f}).Move(function(t,e){t.preventDefault(),A="bottom"==l.tabPosition||"top"==l.tabPosition?(f=Math.max(-w+d,Math.min(0,O+e.offsetX)),h.stop(!1,!1).css("inset-inline-start",f),E=e.offsetX-A,e.offsetX):(f=Math.max(-v+c,Math.min(0,O+e.offsetY)),h.stop(!1,!1).css("top",f),E=e.offsetY-A,e.offsetY)}).AfterMove(function(t,e){var i;t.preventDefault(),"bottom"==l.tabPosition||"top"==l.tabPosition?10<Math.abs(A)&&(i=f+10*E,h.children(".tab, .tab-border").each(function(t){this.offsetLeft+i<0&&0<this.offsetLeft+i+this.scrollWidth&&(i=Math.abs(this.offsetLeft+i)>this.offsetLeft+i+this.scrollWidth?-this.offsetLeft-this.scrollWidth:-this.offsetLeft)}),h.stop(!1,!1).animate({"inset-inline-start":Math.max(-w+d,Math.min(0,i))},{step:function(t,e){f=t},duration:1e3,easing:"iOsSwing"})):10<Math.abs(A)&&(t=f+10*E,t+=E<0?Math.abs((t-c)%b):Math.abs(t%b),h.stop(!1,!1).animate({top:Math.max(-v+c,Math.min(0,t))},{step:function(t,e){f=t},duration:1e3,easing:"iOsSwing"}))})),L(),l.autoplay&&R(),{disable:function(){F(0,!1,!1),r&&(H(0,!1),r.eq(0).click(),u.off("click"),r.off("click")),n&&n.remove(),o&&o.remove(),H=function(){},D=function(){},P=function(){},q(0)}}}}})}(_jq,x5engine),!function(I,T){"use strict";I.extend(T,{imTip:{constants:{locked:"imFixedTip",classId:"imTip",arrowClassId:"imTipArrow",borderClassId:"imTipArrowBorder",visibleClassId:"imTipVisible",topClassId:"imTipTop",bottomClassId:"imTipBottom",leftClassId:"imTipLeft",rightClassId:"imTipRight"},Show:function(i,d){function u(){return!(!T.settings.imTip.showArrow||!T.settings.imTip.showArrowOnVertex)}function e(){clearTimeout(t),o&&(i.removeClass(v),a)&&(a.find("object, embed").remove(),a.removeClass(h.constants.visibleClassId),setTimeout(function(){y&&y.remove(),s=!1,i.attr("title",w)},r))}var t=null,n=T.settings.imTip,o=!1,a=null,r=200,s=!1,h=T.imTip,l=T.utils,c=T.imForm,p=h.constants.classId,g=l.createId(p),m=h.constants.arrowClassId,f=h.constants.borderClassId,b=c.constants.mark,v=h.constants.locked,w="",y=null,x=I(window),c=(i=I(i),d=I.extend(!0,{classes:n.classes,arrow:n.arrow,position:n.position,effect:n.effect,showTail:n.showTail,hideOnFocus:!1,hideOnBlur:!0,persistant:n.persistant,unique:n.unique,text:"",width:0,target:i},d),i.attr("id")||i.attr("id",l.createId(p+"_target")),w=i.attr("title"),i.attr("title",""),"text"in d&&d.text&&(d.text=d.text.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')),function(){return`<script> $(".imTipArrow").load("`+T.settings.currentPath+T.settings.imTip.arrowFilePath+`"); </script>`}),C=function(t,e,i){if(T.utils.isRTL(e[0]))switch(t){case"left":t="right";break;case"right":t="left";break;case"topleft":t="topright";break;case"topright":t="topleft";break;case"bottomleft":t="bottomright";break;case"bottomright":t="bottomleft"}var n=t,o=e;switch(o.removeClass(h.constants.topClassId),o.removeClass(h.constants.bottomClassId),o.removeClass(h.constants.leftClassId),o.removeClass(h.constants.rightClassId),o.removeClass("imTipTopLeft"),o.removeClass("imTipTopRight"),o.removeClass("imTipBottomLeft"),o.removeClass("imTipBottomRight"),n){case"top":o.addClass(h.constants.topClassId);break;case"bottom":o.addClass(h.constants.bottomClassId);break;case"left":o.addClass(h.constants.leftClassId);break;case"right":o.addClass(h.constants.rightClassId);break;case"topleft":o.addClass(h.constants.topClassId),o.addClass("imTipTopLeft");break;case"topright":o.addClass(h.constants.topClassId),o.addClass("imTipTopRight");break;case"bottomleft":o.addClass(h.constants.bottomClassId),o.addClass("imTipBottomLeft");break;case"bottomright":o.addClass(h.constants.bottomClassId),o.addClass("imTipBottomRight")}var a,r,n=d.target.offset(),s=0,l=(void 0===n?n={top:0,left:0,bottom:0,right:0}:(n.top-=d.target.scrollTop(),n.left-=d.target.scrollLeft()),i=i||0,T.settings.imTip.showArrow?{h:T.settings.imTip.arrowHeight,w:T.settings.imTip.arrowWidth}:{h:0,w:0}),c=T.settings.imTip.showArrow?{vx:T.settings.imTip.vertexX,vy:T.settings.imTip.vertexY}:{vx:0,vy:0},s=+e.css("borderWidth").replace(/(\d+)px/,"$1");if(isNaN(s)&&(s=0),"top"==t){if(i<3&&n.top-e.outerHeight()-s-l.h-x.scrollTop()<0)return C("bottom",e,i+1);r=n.left+(d.target.outerWidth()-e.outerWidth())/2-(c.vx-l.w/2),a=n.top-e.outerHeight()-s-c.vy,(r=Math.max(r,10))+e.outerWidth()>x.width()&&(r=x.width()+x.scrollLeft()-e.outerWidth()-10)}else if("bottom"==t){if(i<3&&n.top+d.target.outerHeight()+s+l.h-x.scrollTop()>x.height())return C("left",e,i+1);r=n.left+(d.target.outerWidth()-e.outerWidth())/2+(c.vx-l.w/2),a=n.top+d.target.outerHeight()+s+c.vy,(r=Math.max(r,10))+e.outerWidth()>x.width()&&(r=x.width()+x.scrollLeft()-e.outerWidth()-10)}else if("left"==t){if(i<3&&n.left-e.outerWidth()-x.scrollLeft()<0)return C("top",e,i+1);if(r=n.left-e.outerWidth()-s-c.vy,(a=n.top+(d.target.outerHeight()-e.outerHeight())/2+(c.vx-l.w/2))-x.scrollTop()<0)return C("bottom",e,i+1);if(a+e.outerHeight()-x.scrollTop()>x.height())return C("top",e,i+1)}else if("right"==t){if(i<3&&n.left+d.target.outerWidth()+e.outerWidth()-x.scrollLeft()>x.width())return C("top",e,i+1);if(r=n.left+d.target.outerWidth()+s+c.vy,(a=n.top+(d.target.outerHeight()-e.outerHeight())/2-(c.vx-l.w/2))-x.scrollTop()<0)return C("bottom",e,i+1);if(a+e.outerHeight()-x.scrollTop()>x.height())return C("top",e,i+1)}else if("topleft"==t){if(i<3&&n.left-e.outerWidth()-x.scrollLeft()<0)return C("top",e,i+1);a=n.top-e.outerHeight()-s-c.vy,r=n.left-e.outerWidth()-s+l.w-(c.vx-l.w/2),u()||(r+=40),r+e.outerWidth()>x.width()&&(r=x.width()+x.scrollLeft()-e.outerWidth()-10)}else if("topright"==t){if(i<3&&n.left+d.target.outerWidth()+e.outerWidth()-x.scrollLeft()>x.width())return C("top",e,i+1);a=n.top-e.outerHeight()-s-c.vy,r=n.left+d.target.outerWidth()+s-l.w-(c.vx-l.w/2),u()||(r-=40),r+e.outerWidth()>x.width()&&(r=x.width()+x.scrollLeft()-e.outerWidth()-10)}else if("bottomleft"==t){if(i<3&&n.left-e.outerWidth()-x.scrollLeft()<0)return C("bottom",e,i+1);a=n.top+d.target.outerHeight()+s+c.vy,r=n.left-e.outerWidth()-s+l.w+(c.vx-l.w/2),u()||(r+=40),r+e.outerWidth()>x.width()&&(r=x.width()+x.scrollLeft()-e.outerWidth()-10)}else if("bottomright"==t){if(i<3&&n.left+d.target.outerWidth()+e.outerWidth()-x.scrollLeft()>x.width())return C("bottom",e,i+1);a=n.top+d.target.outerHeight()+s+c.vy,r=n.left+d.target.outerWidth()+s-l.w+(c.vx-l.w/2),u()||(r-=40),r+e.outerWidth()>x.width()&&(r=x.width()+x.scrollLeft()-e.outerWidth()-10)}return[Math.max(a,0),Math.max(r,0)]},k=function(t,e){i.hasClass(v)&&(e.css({top:t[0],left:t[1]}),e.addClass(h.constants.visibleClassId))},n=function(){clearTimeout(t),o=!1},l=function(){d.persistant||(clearTimeout(t),t=setTimeout(e,250),o=!0)},S=I("[tiptarget="+i.attr("id")+"]");if((0===S.length||0<S.length&&-1==S.html().indexOf(d.text))&&(d.unique&&0<I("."+p).length&&(I("."+p).remove(),r=0),i.addClass(v),o=!1,!s)){var _,M,S=I("[tiptarget="+i.attr("id")+"]");S.length?null!==S&&-1==S.html().indexOf(d.text)&&S.find("."+f).before("<br />"+d.text):(y=I('<div style="position: absolute; top: 0; left: 0;" />'),S='<div tiptarget="'+i.attr("id")+'" class="'+T.imTip.constants.classId+" "+d.classes+'" id="'+g+'" role="tooltip" >',T.settings.imTip.showArrow&&(S=S+'<div class="'+T.imTip.constants.borderClassId+'" ></div><div class="'+T.imTip.constants.arrowClassId+'" >',_=c(),S=S+_+"</div>"),_=I(S+="</div>"),I("body").append(y.append(_)),_.append('<div class="imTipContent"'+(0<d.width?' style="width: 100%;"':"")+">"+d.text+"</div>"),i.attr("aria-describedby",g),i.attr("aria-owns",g),a=I("#"+g).css({zIndex:T.settings.zIndex.tip}),s=!0,0<d.width?a.width(d.width):(a.find("."+m).outerWidth(),a.find("."+f).outerWidth()),d.arrow||(a.find("."+m).fadeOut(),a.find("."+f).fadeOut()),a.add(i).mouseleave(l).mouseenter(n),clearTimeout(t),o=!1,0<a.find("img").length?(S=a.find("img"),p=S.attr("src"),S.removeAttr("src").one("load",function(){"topcenter"==d.position?d.position="top":"bottomcenter"==d.position?d.position="bottom":"middleleft"==d.position?d.position="left":"middleright"==d.position&&(d.position="right");var t=C(d.position,a);setTimeout(function(){k(t,a)},100)}).attr("src",p)):("topcenter"==d.position?d.position="top":"bottomcenter"==d.position?d.position="bottom":"middleleft"==d.position?d.position="left":"middleright"==d.position&&(d.position="right"),M=C(d.position,a),setTimeout(function(){k(M,a)},100)))}return!0===d.hideOnFocus?i.hasClass("imDatePickerIcon")?(i.parent().prev("input[type=text]").focus(function(){o=!0,i.removeClass(b),e()}),i.click(function(){i.parent().prev("input[type=text]").focus()})):i.on("click focus",function(){o=!0,i.removeClass(b),e()}):"object"!=typeof d.hideOnFocus&&"string"!=typeof d.hideOnFocus||(I(d.hideOnFocus).click(function(){o=!0,I(d.hideOnFocus).removeClass(b),i.removeClass(b),e()}),i.click(function(){o=!0,i.removeClass(b),I(d.hideOnFocus).removeClass(b),e()})),!0===d.hideOnBlur&&i.on("blur",function(){o=!0,i.removeClass(b),e()}),i.on("keydown",function(t){"Escape"!=t.key&&27!==(t.keyCode||t.which)||(o=!0,i.removeClass(b),e())}),g}}})}(_jq,x5engine),!function(a,r){"use strict";a.extend(r,{topicSendAbuse:function(e){e=a.extend(!0,{postUrl:"#",text:"",target:""},e),a.ajax({url:e.postUrl,type:"GET"}).done(function(t){e.text&&r.imTip.Show(e.target,{target:a(e.target),text:e.text})})},topicCommentsMultipleColumnsBuild:function(t,e){for(var i=a(t).find(".topic-comments.multiple-columns"),n=(i.removeClass("visible"),"");250*e>a(t).width()&&1<e;)e--;var o=15*(e-1);1<o&&(n+="calc("),n+=100/e+"%",1<o&&(n+=" - "+o/e+"px)"),i.find(".topic-comment").css("width",n),i.masonry({initLayout:!1,itemSelector:"#"+t.id+" .topic-comment",columnWidth:"#"+t.id+" .topic-comment",fitWidth:!0,horizontalOrder:!1,transitionDuration:0,gutter:15}),i.on("layoutComplete",function(t,e){i.addClass("visible")}),i.masonry()},topicCommentsMultipleColumnsResize:function(t,i){var n=null,o=0;r.utils.onElementResize(document.getElementById(t),function(t,e){o!=t.width&&(o=t.width,n&&clearTimeout(n),n=setTimeout(function(){r.topicCommentsMultipleColumnsBuild(e,i)},50))})},topic:function(t){var t=a.extend({target:null},t),o=a(t.target);o.length&&(o.find(".variable-star-rating").each(function(){var i=a(this),n=i.attr("data-url");i.children(".topic-star-label").on("click",function(t){var e=parseInt(a(t.target).closest(".topic-star-label").prev("input").attr("value"));void 0!==n?r.utils.isOnline()&&a.ajax({url:n,type:"POST",data:{x5topicid:i.attr("data-id"),rating:e,imJsCheck:"jsactive"},success:function(){r.utils.isOnline()&&a.imCookie("vtd"+i.attr("data-id"),e,{path:"/"}),window.top.location.reload()}}):(i.parent().find("input[type=hidden]").remove(),i.after('<input type="hidden" name="rating" value="'+e+'">'),o.find('input[name="star-full"]').val("full"),i.attr("aria-label",r.l10n.get("comments_and_ratings_selected_rate")+" "+e),i.parents(".topic-summary").hasClass("star")&&r.utils.showOfflineMessage(r.l10n.get("cmn_only_when_online")))}),i.children("input[type=radio]").on("click",function(t){t=parseInt(a(t.target).attr("value"));i.children(".topic-star-label[for=star"+t+"]").trigger("click")})}),o.find(".topic-add-review-btn").on("click",function(){var t=o.find(".topic-form");t.hasClass("visible")?(t.one("transitionend",function(){t.css("display","none")}),t.removeClass("visible")):(t.css("display","block"),setTimeout(function(){t.addClass("visible"),setTimeout(function(){r.utils.scrollToPoint(o,"fast",!1,void 0,0)},100)},100))}))}})}(_jq,x5engine),!function(t,e){t.extend(e.utils,{yaKnowWhatToDo:function(t){var e,i,n="jaD9sD3AW423lka25_uncz2j3n9N-2na9HWB23'N@22d23",o="";try{for(i=e=0;e<t.length;e+=3,i++)o+=String.fromCharCode(parseInt(t.substring(e,e+3),10)-n.charCodeAt(i%n.length));return o}catch(t){return""}},encrypt:function(t,e){for(var i="",n=0;n<t.length;n++)i+=String.fromCharCode(t.charCodeAt(n)+e.charCodeAt(n%e.length));return escape(i)},decrypt:function(t,e){var i="";t=unescape(t);for(var n=0;n<t.length;n++)i+=String.fromCharCode(t.charCodeAt(n)-e.charCodeAt(n%e.length));return unescape(i)},encrypt2:function(t,e){for(var i="",n=0;n<t.length;n++)i+=String.fromCharCode(t.charCodeAt(n)+e[n%e.length]);return(i=encodeURIComponent(i)).replace(/%2F/g,"*-*slash*.*")},decrypt2:function(t,e){var i="";t=t.replace(/\*-\*slash\*\.\*/g,"%2F"),t=decodeURIComponent(t);for(var n=0;n<t.length;n++)i+=String.fromCharCode(t.charCodeAt(n)-e[n%e.length]);return i}})}(_jq,x5engine),!function(t,l){"use strict";t.extend(l.utils,{getCurrentDate:function(t,e,i){t=null!=t?t:"date";var n=l.utils.imFormatInt,o=new Date,a="";switch(t){case"hour":a=n(o.getHours())+":"+n(o.getMinutes()),a+=e?":"+n(o.getSeconds()):"";break;case"date":a=this.formatDate(o,i)}return a},formatDate:function(t,e,i){i=i||(e?l.settings.dateFormatExt:l.settings.dateFormat);var e=l.l10n.get,n=e("date_full_months"),o=e("date_months"),a=e("date_full_days"),e=e("date_days"),r=t.getMonth()+1,s=t.getDay()-1;return-1==s&&(s=6),i.replace("yyyy",t.getFullYear()).replace("yy",t.getFullYear()%100).replace("MMMM","££££").replace("MMM","£££").replace("MM",r.toString().padStart(2,"0")).replace("M",r).replace("dddd","§§§§").replace("ddd","§§§").replace("dd",t.getDate().toString().padStart(2,"0")).replace("d",t.getDate()).replace("££££",n[r-1]).replace("£££",o[r-1]).replace("§§§§",a[s]).replace("§§§",e[s])}})}(_jq,x5engine),!function($,x5engine){"use strict";var resizeObserver={observer:null,callbacks:{}};$.extend(x5engine.utils,{checkBrowserCompatibility:function(){var t,e=$('<div style="display: none;" class="media-test" />'),i=!!$.imCookie("browser-check-proceed"),n=$("body"),o=(n.append(e),"absolute"==e.css("position"));return(o=(o=o&&("justify"==e.css("text-align")||!!window.MSInputMethodContext&&!!document.documentMode))&&"Microsoft Internet Explorer"!==x5engine.utils.getCurrentBrowser())||i?(e.remove(),!0):(i=(o=x5engine.l10n).get("browser_compat_1","Your browser is too old and does not provide the features needed to view this website."),e=o.get("browser_compat_2","Stay up to date and [1]download a modern browser[/1] or [2]proceed anyway[/2]."),o=o.get("browser_compat_link","http://outdatedbrowser.com/"),e=e.replace(/\[1\]/g,'<a href="'+o+'" target="blank">').replace(/\[2\]/g,'<a href="#" class="proceed-button">').replace(/\[\/[0-9]+\]/g,"</a>"),t=$('<div class="browser-comp-message"><div><p>'+i+"</p><p>"+e+"</p></div></div>"),n.append(t),t.find(".proceed-button").on("click",function(){$.imCookie("browser-check-proceed","true",{path:"/"}),t.remove()}),!1)},getCurrentBrowser:function(){var t=navigator.userAgent,t=-1<t.indexOf("Firefox")?"Mozilla Firefox":-1<t.indexOf("Opera")||-1<t.indexOf("OPR")?"Opera":-1<t.indexOf("Trident")?"Microsoft Internet Explorer":-1<t.indexOf("Edge")?"Microsoft Edge":-1<t.indexOf("Edg")?"Chromium Edge":-1<t.indexOf("Chrome")?"Google Chrome or Chromium":-1<t.indexOf("Safari")?"Apple Safari":"unknown";return t},isAddEventListenerPassiveOptionSupported:function(){var e=!1;try{var t={get passive(){e=!0}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){e=!1}return e},isElementInViewport:function(t,e){(e=void 0===e?0:e)>$(t).outerHeight()&&(e=$(t).outerHeight()-1);var i=$(window),n={top:i.scrollTop(),left:i.scrollLeft()},i=(n.right=n.left+i.width(),n.bottom=n.top+i.height(),{top:$(t).offset().top,left:$(t).offset().left});return i.right=i.left+$(t).outerWidth(),i.bottom=i.top+$(t).outerHeight(),!(n.right<i.left||i.right<n.left||n.bottom-e<i.top||i.bottom<n.top+e)},onElementInViewPort:function(t,e,i){var n;$.isFunction(e)&&(x5engine.utils.isElementInViewport(t,i)?e():(n=function(){x5engine.utils.isElementInViewport(t,i)&&(e(),$(window).off("scroll",n))},$(window).on("scroll",n)))},onLazyLoadedElement:function(t,e){var i;$.isFunction(e)&&(i=function(){$(t).off("imLazyLoadingEnd",".imlazyloading",i),e()},$(t).on("imLazyLoadingEnd",".imlazyloading",i))},onElementResize:function(t,e,i=""){$.isFunction(e)&&t&&""!=t.id&&(null==resizeObserver.observer&&(resizeObserver.observer=new ResizeObserver(function(t,e){for(var i=0;i<t.length;i++){var n=t[i];if(n.target.id in resizeObserver.callbacks){var o,a=resizeObserver.callbacks[n.target.id];for(o in a)a[o](n.contentRect,n.target)}}})),void 0===resizeObserver.callbacks[t.id]&&(resizeObserver.callbacks[t.id]={}),resizeObserver.callbacks[t.id][i]=e,resizeObserver.observer.observe(t))},revealObject:function(t){var e,i,n=$(t),o=$("#imContent");x5engine.utils.supportAnimation(t)?(e=$("#imPage"),i=(n[0].id||"without-id")+"_animation-in-progress",n.on("webkitAnimationEnd oanimationend msAnimationEnd animationend",function(t){n.off("webkitAnimationEnd oanimationend msAnimationEnd animationend"),n.trigger("imObjectAnimationEnd"),e.removeClass(i),o.trigger("change")}),n.addClass("animated"),n.trigger("imObjectAnimationStart"),e.addClass(i)):n.trigger("imObjectAnimationStart").trigger("imObjectAnimationEnd"),o.trigger("change")},supportAnimation:function(t){return!$("html").hasClass("no-cssanimations")},isRTL:function(t){return"rtl"==window.getComputedStyle(t).direction},imPreloadImages:function(t){for(var e=$(window),i=(e.x5ImageCache=[],e.x5ImageCache),n=0;n<t.length;n++)i[n]=new Image,i[n].src=t[n]},imHasScrollBar:function(t){t=$(t)[0];return t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth},imGetLayer:function(t){return $(t)},imCodeProtection:function(t){var i=!1;$(document).keyup(function(t){17==t.keyCode&&(i=!1)}),$(document).keydown(function(t){var e=t.keyCode;if(17==e&&(i=!0),(67==e||88==e)&&!0===i)return t.preventDefault(),!1}),document.oncontextmenu=function(){return window.alert("Copyright "+t+". All rights reserved."),!1}},imFocus:function(t,e){$(t).css("background-color",e)},findFocusableElements:function(t){return $(t).find('button, a, input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])').filter(function(){return"none"!=$(this).css("display")})},makeClickableWithKeyboard:function(t,e){t.attr("role",e||"link").attr("tabindex","0").on("keypress",function(t){"Enter"!=t.key&&" "!=t.key||$(this).trigger("click")})},supportsCSS:function(t){var e=document.createElement("div"),i=["Khtml","Ms","O","Moz","Webkit"],n=5;if(t in e.style)return t;for(t=t.replace(/^[a-z]/,function(t){return t.toUpperCase()});n--;)if(i[n]+t in e.style)return i[n]+t;return!1},cssPropertyPrefix:function(t){return/Firefox/i.test(navigator.userAgent)?"-moz-"+t:/Chrome/i.test(navigator.userAgent)||/Safari/i.test(navigator.userAgent)||/Incomedia/i.test(navigator.userAgent)?"-webkit-"+t:/MSIE (7|8|9)/i.test(navigator.userAgent)?"-ms-"+t:/Opera/i.test(navigator.userAgent)?"-o-"+t:t},scrollTo:function(t,e){var i;$.isFunction(e)&&(i=e,e={complete:function(){i()}}),"number"!=typeof t&&(t=(t=$(t)).length&&(t=t[0]).getClientRects().length?t.getBoundingClientRect().top+t.ownerDocument.defaultView.pageYOffset:0),$("html, body").stop().animate({scrollTop:t},e)},scrollToPoint:function(t,e,i,n,o){var a,e=e||"fast";$.isFunction(n)&&(a=n,n={complete:function(){a()}}),"number"!=typeof t&&(t=(t=$(t)).length&&(t=t[0]).getClientRects().length?t.getBoundingClientRect().top+t.ownerDocument.defaultView.pageYOffset:0),i||0<(i=0<$("#imStickyBarContainer:visible").length?$("#imStickyBarContainer:visible").height():0)&&i<t&&(t-=i),o&&(t-=o),$("html, body").stop().animate({scrollTop:t},e,n)},autoHeight:function(){$(".autoHeight").height("auto")},offset:function(t){var e=$("body"),t=$(t).offset();return"relative"==e.css("position")&&(t.top-=e.offset().top),t},imPopUpWin:function(t,e,i,n,o,a){return a=a||1,e=e||"",i=i||-1,n=n||-1,i=!0===(o=o||!1)?"":-1==i||-1==n?"width="+screen.width+",height="+screen.height+",top=0,left=0,scrollbars="+a+",location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no":(o=screen.width?(screen.width-i)/2:100,"width="+i+",height="+n+",top="+(screen.height?(screen.height-n)/2:100)+",left="+o+",scrollbars="+a+",location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no"),window.open(t,e,i).focus(),!1},switchFocus:function(t){$(t).find(":input").each(function(){var t=$(this).attr("type");"button"!=t&&"submit"!=t&&"reset"!=t&&($(this).focus(function(){$(this).addClass("imFormFocus")}),$(this).blur(function(){$(this).removeClass("imFormFocus")}))})},popup:function(t){(new x5engine.utils.Gui).showPopUp(t)},loadedPageGo:function(){setTimeout(function(){eval(atob("aWYoJCgiI2dvLW1lc3NhZ2UiKS5sZW5ndGggPCAxKXt2YXIgdHh0ID0gImEiO3doaWxlKDEpe3R4dCA9IHR4dCArPSAiYSI7fX0="))},6e3)},loadSwfObject:function(e){$("[src*=swfobject]").length||$("body").find("script").last().after('<script src="'+x5engine.settings.currentPath+'res/swfobject.js"><\/script>'),function t(){"object"==typeof window.swfobject&&$.isFunction(window.swfobject.embedSWF)?$.isFunction(e)&&e():setTimeout(t,500)}()},isInFullScreenMode:function(){return!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)},setupPage:function(t){setTimeout(function(){var setupDm=atob("eDVlbmdpbmUuaW1TcGxhc2hCb3goe3Bvc2l0aW9uOiAiYm90dG9tLWxlZnQiLCB0ZXh0OiBbVEVYVF0sIGlkOiAiZG0tbWVzc2FnZSIsIGVsZW1lbnRDbG9zZTogIlgifSk=");eval(setupDm.replace("[TEXT]",decodeURIComponent(atob(t))))},5e3)},linkHtml:function(t,e){var i,n=e.content||"";return t?(t=x5engine.settings.islocal?t.html.offline:t.html.upload,(i={})[x5engine.settings.links.htmlPlaceholder]=n,i[x5engine.settings.links.cssPlaceholder]=e.cssClass||"",i[x5engine.settings.links.baseUrlPlaceholder]=e.baseUrl||"",x5engine.utils.replaceMap(t,i)):n},linkJs:function(t,e){return t?(t=x5engine.settings.islocal?t.js.offline:t.js.upload,t=e.jsonly?t.jsonly:t.complete,x5engine.utils.replaceAll(t,x5engine.settings.links.baseUrlPlaceholder,e.baseUrl||"")):""},paginate:function(t){for(var e=$("#"+t),i=parseInt(e.attr("data-start")),n=e.attr("data-page-size"),o=parseInt(e.attr("data-count")),a=n.split(","),r=!1,s=0;s<a.length&&!r;s++){var l,c=a[s].replace("(max-width:","").trim();-1<c.indexOf(")")?(l=c.split(")"),parseFloat(l[0].trim())>=document.body.clientWidth?n=parseInt(l[1].trim()):r=!0):n=parseInt(c)}var d=Math.ceil(o/n);if(d<2)$("#"+t+" x5engine-card").css("display","grid"),$("#"+t+" .imObjPagination").remove();else{x5engine.utils.showCardsInRange(t,i,n);for(var u='<div class="imObjPagination pagination-container">',h=x5engine.l10n.get,p=i/n+1,g=(0<i&&(u+="<a onclick=\"$('#"+t+"').attr('data-start', "+(i-n)+"); x5engine.utils.paginate('"+t+"');\" onkeypress=\"if (event.key == 'Enter' || event.key == ' ') $(this).trigger('click');\" class=\"page\" tabindex=\"0\">"+h("cmn_pagination_prev")+"</a>"),!1),m=!1,s=1;s<=d;s++)d<7||1==s||s==d||p-1<=s&&s<=1+p?u+='<a class="page'+(s==p?" current":"")+'" onclick="$(\'#'+t+"').attr('data-start', "+n*(s-1)+"); x5engine.utils.paginate('"+t+"');\" onkeypress=\"if (event.key == 'Enter' || event.key == ' ') $(this).trigger('click');\" tabindex=\"0\"><span class=\"screen-reader-only-even-focused\">"+(s==p?h("cmn_pagination_current_page","Current page:"):h("cmn_pagination_go_to_page","Go to page:"))+"</span>"+s+"</a>":s<p-1&&!g?(u+='<span class="dots-page">...</span>',g=!0):1+p<s&&!m&&(u+='<span class="dots-page">...</span>',m=!0);i+n<o&&(u+="<a onclick=\"$('#"+t+"').attr('data-start', "+(i+n)+"); x5engine.utils.paginate('"+t+"');\" onkeypress=\"if (event.key == 'Enter' || event.key == ' ') $(this).trigger('click');\" class=\"page\" tabindex=\"0\">"+h("cmn_pagination_next")+"</a>"),u+="</div>",$("#"+t+" .imObjPagination").remove(),e.append(u)}},randomSortCards:function(t){t=document.getElementById(t);let e=t.getElementsByTagName("x5engine-cardlayout")[0];var i=(e=e||t.getElementsByClassName("swiper-wrapper")[0]).getElementsByTagName("x5engine-card");for(let t=0;t<2*i.length;t++){var n=e.removeChild(i[Math.floor(Math.random()*i.length)]);e.appendChild(n)}},showCardsInRange:function(t,e,i){var n=document.getElementById(t).getElementsByTagName("x5engine-cardlayout")[0].getElementsByTagName("x5engine-card");for(let t=0;t<n.length;t++)t>=e&&t<e+i?n[t].style.display="grid":n[t].style.display="none"}})}(_jq,x5engine),!function(o,t){o.extend(t.utils,{enterFullScreen:function(t){l.isFullScreen()||l.open(t,{toggleClass:"im-fullscreen-entered",styles:{overflow:"hidden"}})},exitFullScreen:function(){l.isFullScreen()&&l.exit()},isFullScreen:function(){return l.isFullScreen()},fullScreenElement:function(){return l.element()},isFullScreenNativelySupported:function(){var t=navigator.userAgent.match(/Android.*Chrome\/(\d+)\./);return!(t&&parseInt(t[1])<37)&&(t=r("fullscreenEnabled"),s(r("fullscreenElement")))&&(!s(t)||!0===t)}});function e(t,e,i){function n(){}n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t,e.prototype.constructor=e,t._super=e.prototype,i&&o.extend(t.prototype,i)}function i(){this.__options=null,this._fullScreenElement=null,this.__savedStyles={}}function n(){n._super.constructor.apply(this,arguments),this.exit=o.proxy(r("exitFullscreen"),document),this._DEFAULT_OPTIONS=o.extend(!0,{},this._DEFAULT_OPTIONS,{styles:{width:"100%",height:"100%"}}),o(document).bind(this._prefixedString("fullscreenchange")+" MSFullscreenChange",o.proxy(this._fullScreenChange,this)).bind(this._prefixedString("fullscreenerror")+" MSFullscreenError",o.proxy(this._fullScreenError,this))}function a(){a._super.constructor.apply(this,arguments),this._DEFAULT_OPTIONS=o.extend({},this._DEFAULT_OPTIONS,{styles:{position:"fixed",zIndex:"2147483647",left:0,top:0,bottom:0,right:0,backgroundColor:"black"}}),this.__delegateKeydownHandler()}var s=function(t){return void 0!==t},r=function(t,e){var i,n=[["",""],["exit","cancel"],["screen","Screen"]],o=["","o","ms","moz","webkit","webkitCurrent"];"string"==typeof t&&(e=t,t=document);for(var a=0;a<n.length;++a){e=e.replace(n[a][0],n[a][1]);for(var r=0;r<o.length;++r)if(i=o[r],i+=0===r?e:e.charAt(0).toUpperCase()+e.substr(1),s(t[i]))return t[i]}},l=(i.prototype={native:r,_DEFAULT_OPTIONS:{styles:{boxSizing:"border-box",MozBoxSizing:"border-box",WebkitBoxSizing:"border-box"},toggleClass:null},__documentOverflow:"",__htmlOverflow:"",_preventDocumentScroll:function(){this.__documentOverflow=document.body.style.overflow,this.__htmlOverflow=document.documentElement.style.overflow,o(this._fullScreenElement).is("body, html")||o("body, html").css("overflow","hidden")},_allowDocumentScroll:function(){document.body.style.overflow=this.__documentOverflow,document.documentElement.style.overflow=this.__htmlOverflow},_fullScreenChange:function(){this.__options&&(this.isFullScreen()?(this._preventDocumentScroll(),this._triggerEvents()):(this._allowDocumentScroll(),this._revertStyles(),this._triggerEvents(),this._fullScreenElement=null))},_fullScreenError:function(t){this.__options&&(this._revertStyles(),this._fullScreenElement=null,t)&&o(document).trigger("imFullScreenError",[t])},_triggerEvents:function(){o(this._fullScreenElement).trigger(this.isFullScreen()?"imFullScreenOpen":"imFullScreenClose"),o(document).trigger("imFullScreenChange",[this.isFullScreen(),this._fullScreenElement])},_saveAndApplyStyles:function(){var t,e=o(this._fullScreenElement);for(t in this.__savedStyles={},this.__options.styles)this.__savedStyles[t]=this._fullScreenElement.style[t],this._fullScreenElement.style[t]=this.__options.styles[t];e.is("body")&&(document.documentElement.style.overflow=this.__options.styles.overflow),this.__options.toggleClass&&e.addClass(this.__options.toggleClass)},_revertStyles:function(){0<=navigator.userAgent.indexOf("Edge")&&o("#imPageExtContainer, .showbox-bg").show();var t,e=o(this._fullScreenElement);for(t in this.__options.styles)this._fullScreenElement.style[t]=this.__savedStyles[t];e.is("body")&&(document.documentElement.style.overflow=this.__savedStyles.overflow),this.__options.toggleClass&&e.removeClass(this.__options.toggleClass)},open:function(t,e){0<=navigator.userAgent.indexOf("Edge")&&o("#imPageExtContainer, .showbox-bg").hide(),t!==this._fullScreenElement&&(this.isFullScreen()&&this.exit(),this._fullScreenElement=t,this.__options=o.extend(!0,{},this._DEFAULT_OPTIONS,e),this._saveAndApplyStyles())},exit:null,isFullScreen:null,isNativelySupported:function(){return t.utils.isFullScreenNativelySupported()}},e(n,i,{VENDOR_PREFIXES:["","o","moz","webkit"],_prefixedString:function(e){return o.map(this.VENDOR_PREFIXES,function(t){return t+e}).join(" ")},open:function(t,e){n._super.open.apply(this,arguments),r(t,"requestFullscreen").call(t)},exit:o.noop,isFullScreen:function(){return null!==r("fullscreenElement")},element:function(){return r("fullscreenElement")}}),e(a,i,{__isFullScreen:!1,__delegateKeydownHandler:function(){o(document).delegate("*","keydown.fullscreen",o.proxy(this.__keydownHandler,this));var t=o._data(document).events.keydown;t.splice(0,0,t.splice(t.delegateCount-1,1)[0])},__keydownHandler:function(t){return!this.isFullScreen()||27!==t.which||(this.exit(),!1)},_revertStyles:function(){a._super._revertStyles.apply(this,arguments),this._fullScreenElement.offsetHeight},open:function(t){a._super.open.apply(this,arguments),this.__isFullScreen=!0,this._fullScreenChange()},exit:function(){this.__isFullScreen&&(this.__isFullScreen=!1,this._fullScreenChange())},isFullScreen:function(){return this.__isFullScreen},element:function(){return this.__isFullScreen?this._fullScreenElement:null}}),new(t.utils.isFullScreenNativelySupported()?n:a))}(_jq,x5engine),!function(c,d){"use strict";c.extend(d.utils,{Gui:function(){function o(t,e){r.add(a).fadeOut(t,function(){e&&(s=null===s?c("#imPageExtContainer"):s).css("filter","none"),a[0].close(),c(this).remove()})}var t=d.settings.imPopUp,a=null,r=null,s=null,l=c("body");c(window),c(document);this.showPopUp=function(i){var n;(i=c.extend(!0,{width:t.width,borderRadius:t.borderRadius,backGround:t.background,backgroundBlur:t.backgroundBlur,effect:t.effect,textColor:t.textColor,boxColor:t.boxColor,opacity:t.opacity,shadow:t.shadow,graphics:!0,isError:!1},i)).text=i.text.replace(/&/g,"&").replace(/"/g,'"').replace(/\>/g,">").replace(/\</g,"<"),i.graphics?(n="none"!=i.effect?200:0,a&&r&&a.add(r).remove(),r=c('<div id="imGuiPopUpBg"></div>').css("z-index",d.settings.zIndex.popup).click(function(){o(n,i.backgroundBlur)}).fadeOut(1,function(){c(this).fadeTo(n,i.opacity)}),a=c('<dialog id="imGuiPopUp" aria-labelledby="imGuiPopUpText"><span id="imGuiPopUpText">'+i.text+'</span><button type="button" id="imCloseButton" class="clear-button-style imGuiButton">OK</button></dialog>').css({zIndex:d.settings.zIndex.popup+1,"border-radius":i.borderRadius+"px","box-shadow":""!==i.shadow?i.shadow:"0"}).hide(0),i.isError&&a.attr("role","alertdialog"),a.find(".imGuiButton").css("border-radius",i.borderRadius+"px").click(function(){o(n,i.backgroundBlur)}),l.append(r,a),a[0].showModal(),a.fadeIn(n),i.backgroundBlur&&((s=null===s?c("#imPageExtContainer"):s).css("transition","filter .2s"),s.css("filter","blur(3px)")),l.keydown(function t(e){switch(e.keyCode){case 13:case 27:case 32:e.preventDefault(),o(n,i.backgroundBlur)}l.off("keydown",t)})):window.alert(i.text.replace(/<br[\s]*\/>/g,"\n").replace(/<([A-Z][A-Z0-9]*)\b[^>]*\/?>/g,""))},this.removeLabels=function(){c(".imGuiLabel").remove()},this.showLabel=function(t){var e,i,n=c("<div class='imGuiLabel'>"+t.text+"</div>").css({"box-shadow":t.shadow,"border-radius":"3px"});c("body").append(n),null!==t.object?(e=(t=c(t.object)).offset(),i=Math.max(0,e.top+Math.floor((t.outerHeight()-n.outerHeight())/2)),n.css({position:"absolute",top:i,left:e.left+t.outerWidth()+10})):(n.css({width:200,height:50,padding:10}),i=n.outerHeight(),n.css({position:"fixed",bottom:-i,right:30,overflow:"hidden",cursor:"pointer"}).animate({bottom:10})),n.fadeTo(300,.8).click(function(){n.fadeOut(100,function(){n.remove()})})}},makeAllButCurrentSlideInert:function(){const i=this.slides[this.realIndex];this.slides.each((t,e)=>{t!==i?t.setAttribute("inert",""):t.removeAttribute("inert")})},getSwiperConfig:function(t,e){return e?(c.extend(!0,t,{on:{init(){d.utils.makeAllButCurrentSlideInert.call(this)},slideChange(){d.utils.makeAllButCurrentSlideInert.call(this)}}}),t.autoplay||(t.on.slideChangeTransitionEnd=function(){var t=this.slides[this.realIndex];t.setAttribute("tabindex","-1"),t.focus()})):c.extend(!0,t,{on:{init(){var i=this;i.el.addEventListener("keydown",function(t){"Tab"!==t.key||null==(t=document.activeElement.closest(".swiper-slide"))||t.classList.contains("swiper-slide-active")||(t=Array.prototype.indexOf.call(t.parentNode.children,t),i.el.scrollLeft=0,i.slideTo(t))}),i.slides.each((t,e)=>{t.addEventListener("focusin",function(t){i.el.scrollLeft=0,i.slideTo(e)})})}}}),t}})}(_jq,x5engine),!function(i,a){"use strict";i.extend(a.utils,{imFormatInt:function(t){return t=t<10?"0"+t:t},hex2rgb:function(t,e,i,n,o){return a.utils.shiftColor(t,e,i,n,o)},shiftColor:function(t,e,i,n,o){var a,r;if(o|=!1,"transparent"===t)return"rgba(0,0,0,0)";if(0===t.indexOf("#"))for(a=t.replace("#","").match(/(.{2})/g),r=0;r<a.length;r++)a[r]=parseInt(a[r],16);else if(0===t.indexOf("rgb"))for(a=t.match(/[0-9]+/gi),r=0;r<a.length;r++)a[r]=parseInt(a[r]);for(a.length<4&&(a[3]=255),e&&(a[0]+=e),i&&(a[1]+=i),n&&(a[2]+=n),r=0;r<3;r++)255<a[r]&&(o?a[r]=255:a[r]-=255),a[r]<0&&(o?a[r]=0:a[r]+=255);return"rgba("+a.join(", ")+")"},rgb2hex:function(t){return(t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):""},rgbDiff:function(t,e,i,n,o,a){var r,s,l,c=1;return null!=a?(r=(a=a.replace(/[^\d,]/g,"").split(","))[0],s=a[1],l=a[2],4==a.length&&(c=a[3])):(r=t,s=e,l=i,null!=n&&(c=n)),127<o&&(o=127),"rgba("+(r+=127<r?-o:o)+","+(s+=127<s?-o:o)+","+(l+=127<l?-o:o)+","+c+")"},createId:function(t){t=t||"imObj";for(var e=0;0<i("#"+t+e).length;)e++;return t+e},imHash:function(t){return a.utils.sha256.hex(t)},round:function(t,e){return e=e||0,(Math.round(t*Math.pow(10,e))/Math.pow(10,e)).toFixed(e)},isOdd:function(t){return 0==isNaN(t)?t%2==1:null},shuffleArray:function(t){let e=t.length,i;for(;0<e;)i=Math.floor(Math.random()*e),e--,[t[e],t[i]]=[t[i],t[e]];return t}})}(_jq,x5engine),!function(t,c){$.extend(t.utils,{scroll:function(){let o=[],a=c.innerWidth,r=c.innerHeight,s=-1;function l(t,e,i){let n=t(e,i);return"function"==typeof n?n:()=>n}return c.addEventListener("resize",function(){c.requestAnimationFrame(()=>{a!==c.innerWidth&&r!==c.innerHeight&&(a=c.innerWidth,r=c.innerHeight,s=(document.documentElement||document.body.parentNode||document.body).scrollTop||c.pageYOffset,o.forEach(t=>{t.filter=l(t.resize,a,r),t.filter(s)&&t.update(s)}))})}),c.addEventListener("scroll",function(){c.requestAnimationFrame(()=>{var t=(document.documentElement||document.body.parentNode||document.body).scrollTop||c.pageYOffset;s!==t&&(s=t,o.filter(t=>t.filter(s)).forEach(t=>t.update(s)))})},function(){let t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});c.addEventListener("test",null,e)}catch(t){}return t}()),{observe:function(t,e,i){let n={resize:t,filter:l(t,a,r),update:e};void 0!==i&&(n.id=i),o.push(n),c.requestAnimationFrame(()=>{n.filter(s)&&n.update(s)})},unobserve:function(e){o=o.filter(t=>t.id!==e)}}}(),scrollHelper:function(t){let o=t,a=null;function r(i){return(t,e)=>(a=e,i(t,e))}return{always:function(){return r((t,e)=>!0)},inViewport:function(t,e){let i=t||0,n=e||0===e?e:i;return r((t,e)=>t=>{if(void 0!==o){var e=o.getBoundingClientRect();if(void 0!==e)return e.top-i<a&&0<e.top+e.height+n}})},focalPoint:function(e){return t=>{null!=a&&e(t+a/2)}},objectFocalPoint:function(n){return t=>{var e,i;null!=a&&void 0!==o&&void 0!==(i=o.getBoundingClientRect())&&(e=a/2,i=i.top+i.height/2,n(i-e))}},percentiageScrolled:function(e){return t=>{null!==a&&e(100*(a+t)/document.body.scrollHeight)}},objectPercentiageScrolled:function(i){return t=>{var e;void 0!==o&&void 0!==(e=o.getBoundingClientRect())&&i(Math.max(0,Math.min(100*(a-e.top)/e.height,100)))}}}}})}(x5engine,window),!function(t,e){"use strict";function i(t){return s(a(d(t)))}function n(t,e){return l(r(d(t),d(e)))}function o(t,e,i){return c(r(d(t),d(e)),i)}function a(t){return h(p(u(t),8*t.length))}function r(t,e){for(var i=u(t),n=(16<i.length&&(i=p(i,8*t.length)),Array(16)),o=Array(16),a=0;a<16;a++)n[a]=909522486^i[a],o[a]=1549556828^i[a];t=p(n.concat(u(e)),512+8*e.length);return h(p(o.concat(t),768))}function s(t){for(var e,i=g?"0123456789ABCDEF":"0123456789abcdef",n="",o=0;o<t.length;o++)e=t.charCodeAt(o),n+=i.charAt(e>>>4&15)+i.charAt(15&e);return n}function l(t){for(var e="",i=t.length,n=0;n<i;n+=3)for(var o=t.charCodeAt(n)<<16|(n+1<i?t.charCodeAt(n+1)<<8:0)|(n+2<i?t.charCodeAt(n+2):0),a=0;a<4;a++)8*n+6*a>8*t.length?e+=m:e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(o>>>6*(3-a)&63);return e}function c(t,e){for(var i,n,o,a=e.length,r=Array(),s=Array(Math.ceil(t.length/2)),l=0;l<s.length;l++)s[l]=t.charCodeAt(2*l)<<8|t.charCodeAt(2*l+1);for(;0<s.length;){for(o=Array(),l=n=0;l<s.length;l++)n=(n<<16)+s[l],n-=(i=Math.floor(n/a))*a,(0<o.length||0<i)&&(o[o.length]=i);r[r.length]=n,s=o}var c="";for(l=r.length-1;0<=l;l--)c+=e.charAt(r[l]);var d=Math.ceil(8*t.length/(Math.log(e.length)/Math.log(2)));for(l=c.length;l<d;l++)c=e[0]+c;return c}function d(t){for(var e,i,n="",o=-1;++o<t.length;)e=t.charCodeAt(o),i=o+1<t.length?t.charCodeAt(o+1):0,55296<=e&&e<=56319&&56320<=i&&i<=57343&&(e=65536+((1023&e)<<10)+(1023&i),o++),e<=127?n+=String.fromCharCode(e):e<=2047?n+=String.fromCharCode(192|e>>>6&31,128|63&e):e<=65535?n+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|63&e):e<=2097151&&(n+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|63&e));return n}function u(t){for(var e=Array(t.length>>2),i=0;i<e.length;i++)e[i]=0;for(i=0;i<8*t.length;i+=8)e[i>>5]|=(255&t.charCodeAt(i/8))<<24-i%32;return e}function h(t){for(var e="",i=0;i<32*t.length;i+=8)e+=String.fromCharCode(t[i>>5]>>>24-i%32&255);return e}function f(t,e){return t>>>e|t<<32-e}function p(t,e){var i,n,o,a,r,s,l,c,d,u,h,p,g=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),m=new Array(64);for(t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e,d=0;d<t.length;d+=16){for(i=g[0],n=g[1],o=g[2],a=g[3],r=g[4],s=g[5],l=g[6],c=g[7],u=0;u<64;u++)m[u]=u<16?t[u+d]:b(b(b(f(p=m[u-2],17)^f(p,19)^p>>>10,m[u-7]),f(p=m[u-15],7)^f(p,18)^p>>>3),m[u-16]),p=b(b(b(b(c,f(r,6)^f(r,11)^f(r,25)),r&s^~r&l),v[u]),m[u]),h=b(f(i,2)^f(i,13)^f(i,22),i&n^i&o^n&o),c=l,l=s,s=r,r=b(a,p),a=o,o=n,n=i,i=b(p,h);g[0]=b(i,g[0]),g[1]=b(n,g[1]),g[2]=b(o,g[2]),g[3]=b(a,g[3]),g[4]=b(r,g[4]),g[5]=b(s,g[5]),g[6]=b(l,g[6]),g[7]=b(c,g[7])}return g}function b(t,e){var i=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(i>>16)<<16|65535&i}var g,m,v;t.extend(e.utils,{sha256:(g=0,m="",v=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998),{hex:i,b64:n,any:o,hex_hmac:function(t,e){return s(r(d(t),d(e)))},b64_hmac:n,any_hmac:o})})}(_jq,x5engine),!function(t,l){"use strict";t.extend(l.utils,{htmlspecialchars:function(t){return t?t.replace(/\"/g,"''").replace(/</g,"<").replace(/>/g,">"):""},htmlspecialchars_decode:function(t){return t?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'"):""},escapeRegExp:function(t){return t.replace(/[-.*+?^${}()|[\]\/\\]/g,"\\$&")},htmlDecode:function(t){var e=document.createElement("div");return e.innerHTML=t,0===e.childNodes.length?"":e.childNodes[0].nodeValue},emailTo:function(t,e,i,n){for(var o="",a=[],r=0;r<t.length;r++){var s=parseInt(t.charAt(r),10),l=e.substring(0,s);e=e.substring(s),o=l+o}i&&a.push("subject="+i),n&&a.push("body="+n),location.href="mailto:"+o+(a.length?"?"+a.join("&"):"")},trim:function(t,i){for(var e=function(t){for(var e=0;e<i.length;e++)if(t==i.charAt(e))return!0;return!1};t.length&&e(t.charAt(0));)t=t.substring(1);for(;t.length&&e(t.charAt(t.length-1));)t=t.substring(0,t.length-1);return t},isValidEmail:function(t){var e,i;return!!t&&-1!=(i=t.indexOf("@"))&&i==t.lastIndexOf("@")&&!(/[/\\\?\^\$]+/g.test(t)||(e=t.substring(0,i),t=t.substring(i+1),!e.length)||!t.length||"."==t.charAt(0)||"."==t.charAt(t.length-1)||-1==t.indexOf(".")||"."==e.charAt(0)||"."==e.charAt(e.length-1))},isNullOrEmpty:function(t){return null==t||""==t},replaceAll:function(t,e,i){return t.replace(new RegExp(l.utils.escapeRegExp(e),"g"),i)},replaceMap:function(t,e){for(var i in e)t=l.utils.replaceAll(t,i,e[i]);return t},occurrences:function(t,e,i){if(t+="",(e+="").length<=0)return 0;for(var n=0,o=0,a=i?1:e.length;t.length>o;){if((o=t.indexOf(e,o))<0)return n;++n,o+=a}},splitWordByText:function(t,e,i){if(t=t.trim(),i&&l.utils.isOdd(l.utils.occurrences(t,i)))return l.utils.splitWordByText(t,e);for(var n,o=[],a="",r=!1,s=0;s<t.length;s++)n=t.charAt(s),i&&n==i&&(r=!r),n==e&&!r||n==i||(a+=n),(n!=e||r)&&s!=t.length-1||(o.push(a),a="");return o}})}(_jq,x5engine),!function(s,l){"use strict";s.extend(l.utils,{getParam:function(t){var e,i="",n=0;return t+="=",0<(i=0!==window.location.search?window.decodeURI(window.location.search):i).length&&-1!=(e=i.indexOf(t))?(e+=t.length,-1==(n=i.indexOf("&",e))&&(n=i.length),i.substring(e,n)):null},imOpenLocation:function(t){document.location=t},isOnline:function(){return!l.settings.islocal},location:function(t,e,i,n){var o,a="",e=e||l.utils.currentPagePath,r=-1!=(o=t.indexOf("#"))?t.substring(o):"";if(void 0===i&&(i=!0),void 0===n&&(n=window),-1==t.indexOf("../")&&0!==t.indexOf("/")){a=r?t.replace(r,""):t;if((a=(e=-1!=(o=e.indexOf("#"))?e.substring(0,o):e)!=a&&(0!==a.indexOf("http")&&(e=e.substring(e.lastIndexOf("/")+1)),-1!=(o=a.indexOf("/")))?a.substring(0,o):a)==e||""===a)return l.utils.scrollTo(r||0,{start:function(){s("body").trigger("scrollToAnchorAnimationInProgress")},complete:function(){i&&(n.location.hash=r),s("body").trigger("scrollToAnchorAnimationCompleted")}}),!1}return n.location.href=t,!0},isCurrentPage:function(t,e){if(t)for(var i=0;i<t.length;i++)if(t[i]==location.pathname)return!e||e===location.hash.replace(/^#/g,"");return!1},queryStringToObject:function(){var t=window.location.search.substring(1);if(""==t)return null;for(var e=t.split("&"),i={},n=0;n<e.length;n++){var o=e[n].split("="),a=decodeURIComponent(o[0]),o=decodeURIComponent(o[1]);void 0===i[a]?i[a]=o:"string"==typeof i[a]?i[a]=[i[a],o]:i[a].push(o)}return i}})}(_jq,x5engine),!function(t,e){t.extend(e,{youtube:{jsApiIsLoaded:!1,apiLoadedEventName:"youtube_api_loaded"}})}(_jq,x5engine),!function t(){x5engine.l10n.loaded()&&x5engine.settings.loaded&&x5engine.cart.loaded?x5engine.boot.run():setTimeout(t,250)}();
[
Íàçàä
]